-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
62 changed files
with
4,705 additions
and
305 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
terraform { | ||
required_providers { | ||
codefresh = { | ||
source = "registry.terraform.io/codefresh-io/codefresh" | ||
version = "~> 0.1" | ||
} | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
terraform { | ||
required_providers { | ||
codefresh = { | ||
source = "registry.terraform.io/codefresh-io/codefresh" | ||
version = "~> 0.1" | ||
} | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
terraform { | ||
required_providers { | ||
codefresh = { | ||
source = "registry.terraform.io/codefresh-io/codefresh" | ||
version = "~> 0.1" | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,3 @@ | ||
# variable api_url { | ||
# type = string | ||
# } | ||
|
||
# variable token { | ||
# type = string | ||
# default = "" | ||
# } | ||
|
||
# teams map[team_name]usersList | ||
# { | ||
# developers = ["user1", "user3"] | ||
# managers = ["user3", "user2"] | ||
# } | ||
variable teams { | ||
type = map(any) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
terraform { | ||
required_providers { | ||
codefresh = { | ||
source = "registry.terraform.io/codefresh-io/codefresh" | ||
version = "~> 0.1" | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,3 @@ | ||
api_url = "https://my-codefresh-example.com/api" | ||
|
||
accounts = [ | ||
"acc1", "acc2" | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
43 changes: 43 additions & 0 deletions
43
testing/equivalence/results/opentofu/test_account_user_associations/plan
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
|
||
Warning: Provider development overrides are in effect | ||
|
||
The following provider development overrides are set in the CLI | ||
configuration: | ||
- codefresh-io/codefresh in /Users/yonatankoren/software/codefresh-io/tofu-provider-codefresh | ||
|
||
The behavior may therefore not match any released version of the provider and | ||
applying changes may cause the state to become incompatible with published | ||
releases. | ||
|
||
OpenTofu used the selected providers to generate the following execution plan. | ||
Resource actions are indicated with the following symbols: | ||
+ create | ||
|
||
OpenTofu will perform the following actions: | ||
|
||
# module.test.codefresh_account_user_association.admin will be created | ||
+ resource "codefresh_account_user_association" "admin" { | ||
+ admin = true | ||
+ email = "[email protected]" | ||
+ id = (known after apply) | ||
+ status = (known after apply) | ||
+ username = (known after apply) | ||
} | ||
|
||
# module.test.codefresh_account_user_association.user will be created | ||
+ resource "codefresh_account_user_association" "user" { | ||
+ admin = false | ||
+ email = "[email protected]" | ||
+ id = (known after apply) | ||
+ status = (known after apply) | ||
+ username = (known after apply) | ||
} | ||
|
||
Plan: 2 to add, 0 to change, 0 to destroy. | ||
|
||
───────────────────────────────────────────────────────────────────────────── | ||
|
||
Saved the plan to: equivalence_test_plan | ||
|
||
To perform exactly these actions, run the following command to apply: | ||
tofu apply "equivalence_test_plan" |
141 changes: 141 additions & 0 deletions
141
testing/equivalence/results/opentofu/test_account_user_associations/plan.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,141 @@ | ||
{ | ||
"configuration": { | ||
"provider_config": { | ||
"module.test:codefresh": { | ||
"full_name": "registry.terraform.io/codefresh-io/codefresh", | ||
"module_address": "module.test", | ||
"name": "codefresh" | ||
} | ||
}, | ||
"root_module": { | ||
"module_calls": { | ||
"test": { | ||
"module": { | ||
"resources": [ | ||
{ | ||
"address": "codefresh_account_user_association.admin", | ||
"expressions": { | ||
"admin": { | ||
"constant_value": true | ||
}, | ||
"email": { | ||
"constant_value": "[email protected]" | ||
} | ||
}, | ||
"mode": "managed", | ||
"name": "admin", | ||
"provider_config_key": "module.test:codefresh", | ||
"schema_version": 0, | ||
"type": "codefresh_account_user_association" | ||
}, | ||
{ | ||
"address": "codefresh_account_user_association.user", | ||
"expressions": { | ||
"email": { | ||
"constant_value": "[email protected]" | ||
} | ||
}, | ||
"mode": "managed", | ||
"name": "user", | ||
"provider_config_key": "module.test:codefresh", | ||
"schema_version": 0, | ||
"type": "codefresh_account_user_association" | ||
} | ||
] | ||
}, | ||
"source": "../../../../examples/account_user_associations" | ||
} | ||
} | ||
} | ||
}, | ||
"format_version": "1.2", | ||
"planned_values": { | ||
"root_module": { | ||
"child_modules": [ | ||
{ | ||
"address": "module.test", | ||
"resources": [ | ||
{ | ||
"address": "module.test.codefresh_account_user_association.admin", | ||
"mode": "managed", | ||
"name": "admin", | ||
"provider_name": "registry.terraform.io/codefresh-io/codefresh", | ||
"schema_version": 0, | ||
"sensitive_values": {}, | ||
"type": "codefresh_account_user_association", | ||
"values": { | ||
"admin": true, | ||
"email": "[email protected]" | ||
} | ||
}, | ||
{ | ||
"address": "module.test.codefresh_account_user_association.user", | ||
"mode": "managed", | ||
"name": "user", | ||
"provider_name": "registry.terraform.io/codefresh-io/codefresh", | ||
"schema_version": 0, | ||
"sensitive_values": {}, | ||
"type": "codefresh_account_user_association", | ||
"values": { | ||
"admin": false, | ||
"email": "[email protected]" | ||
} | ||
} | ||
] | ||
} | ||
] | ||
} | ||
}, | ||
"resource_changes": [ | ||
{ | ||
"address": "module.test.codefresh_account_user_association.admin", | ||
"change": { | ||
"actions": [ | ||
"create" | ||
], | ||
"after": { | ||
"admin": true, | ||
"email": "[email protected]" | ||
}, | ||
"after_sensitive": {}, | ||
"after_unknown": { | ||
"id": true, | ||
"status": true, | ||
"username": true | ||
}, | ||
"before": null, | ||
"before_sensitive": false | ||
}, | ||
"mode": "managed", | ||
"module_address": "module.test", | ||
"name": "admin", | ||
"provider_name": "registry.terraform.io/codefresh-io/codefresh", | ||
"type": "codefresh_account_user_association" | ||
}, | ||
{ | ||
"address": "module.test.codefresh_account_user_association.user", | ||
"change": { | ||
"actions": [ | ||
"create" | ||
], | ||
"after": { | ||
"admin": false, | ||
"email": "[email protected]" | ||
}, | ||
"after_sensitive": {}, | ||
"after_unknown": { | ||
"id": true, | ||
"status": true, | ||
"username": true | ||
}, | ||
"before": null, | ||
"before_sensitive": false | ||
}, | ||
"mode": "managed", | ||
"module_address": "module.test", | ||
"name": "user", | ||
"provider_name": "registry.terraform.io/codefresh-io/codefresh", | ||
"type": "codefresh_account_user_association" | ||
} | ||
] | ||
} |
1 change: 1 addition & 0 deletions
1
testing/equivalence/results/opentofu/test_account_user_associations/state
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
No state. |
3 changes: 3 additions & 0 deletions
3
testing/equivalence/results/opentofu/test_account_user_associations/state.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"format_version": "1.0" | ||
} |
Oops, something went wrong.