Skip to content

Commit

Permalink
Update scripts.
Browse files Browse the repository at this point in the history
  • Loading branch information
korenyoni committed Oct 17, 2023
1 parent 2cb11c1 commit 65e1923
Show file tree
Hide file tree
Showing 19 changed files with 427 additions and 4 deletions.
5 changes: 5 additions & 0 deletions testing/equivalence/test_cases/test_account_tokens/main.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# DO NOT EDIT
# This file is automatically generated by update-test-cases.sh
module test {
source = "../../../../examples/account_tokens"
}
42 changes: 42 additions & 0 deletions testing/equivalence/test_cases/test_account_tokens/spec.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
{
"ignore_fields": {
"plan.json": ["errored"]
},
"commands": [
{
"name": "init",
"arguments": ["init", "-plugin-dir=../../.plugins"],
"capture_output": false
},
{
"name": "plan",
"arguments": ["plan", "-out=equivalence_test_plan", "-no-color"],
"capture_output": true,
"output_file_name": "plan",
"has_json_output": false
},
{
"name": "state",
"arguments": ["show", "-no-color"],
"capture_output": true,
"output_file_name": "state",
"has_json_output": false
},
{
"name": "show_state",
"arguments": ["show", "-json"],
"capture_output": true,
"output_file_name": "state.json",
"has_json_output": true,
"streams_json_output": false
},
{
"name": "show_plan",
"arguments": ["show", "-json", "equivalence_test_plan"],
"capture_output": true,
"output_file_name": "plan.json",
"has_json_output": true,
"streams_json_output": false
}
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# DO NOT EDIT
# This file is automatically generated by update-test-cases.sh
module test {
source = "../../../../examples/account_user_associations"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
{
"ignore_fields": {
"plan.json": ["errored"]
},
"commands": [
{
"name": "init",
"arguments": ["init", "-plugin-dir=../../.plugins"],
"capture_output": false
},
{
"name": "plan",
"arguments": ["plan", "-out=equivalence_test_plan", "-no-color"],
"capture_output": true,
"output_file_name": "plan",
"has_json_output": false
},
{
"name": "state",
"arguments": ["show", "-no-color"],
"capture_output": true,
"output_file_name": "state",
"has_json_output": false
},
{
"name": "show_state",
"arguments": ["show", "-json"],
"capture_output": true,
"output_file_name": "state.json",
"has_json_output": true,
"streams_json_output": false
},
{
"name": "show_plan",
"arguments": ["show", "-json", "equivalence_test_plan"],
"capture_output": true,
"output_file_name": "plan.json",
"has_json_output": true,
"streams_json_output": false
}
]
}
5 changes: 5 additions & 0 deletions testing/equivalence/test_cases/test_accounts_users/main.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# DO NOT EDIT
# This file is automatically generated by update-test-cases.sh
module test {
source = "../../../../examples/accounts_users"
}
42 changes: 42 additions & 0 deletions testing/equivalence/test_cases/test_accounts_users/spec.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
{
"ignore_fields": {
"plan.json": ["errored"]
},
"commands": [
{
"name": "init",
"arguments": ["init", "-plugin-dir=../../.plugins"],
"capture_output": false
},
{
"name": "plan",
"arguments": ["plan", "-out=equivalence_test_plan", "-no-color"],
"capture_output": true,
"output_file_name": "plan",
"has_json_output": false
},
{
"name": "state",
"arguments": ["show", "-no-color"],
"capture_output": true,
"output_file_name": "state",
"has_json_output": false
},
{
"name": "show_state",
"arguments": ["show", "-json"],
"capture_output": true,
"output_file_name": "state.json",
"has_json_output": true,
"streams_json_output": false
},
{
"name": "show_plan",
"arguments": ["show", "-json", "equivalence_test_plan"],
"capture_output": true,
"output_file_name": "plan.json",
"has_json_output": true,
"streams_json_output": false
}
]
}
5 changes: 5 additions & 0 deletions testing/equivalence/test_cases/test_permissions/main.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# DO NOT EDIT
# This file is automatically generated by update-test-cases.sh
module test {
source = "../../../../examples/permissions"
}
42 changes: 42 additions & 0 deletions testing/equivalence/test_cases/test_permissions/spec.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
{
"ignore_fields": {
"plan.json": ["errored"]
},
"commands": [
{
"name": "init",
"arguments": ["init", "-plugin-dir=../../.plugins"],
"capture_output": false
},
{
"name": "plan",
"arguments": ["plan", "-out=equivalence_test_plan", "-no-color"],
"capture_output": true,
"output_file_name": "plan",
"has_json_output": false
},
{
"name": "state",
"arguments": ["show", "-no-color"],
"capture_output": true,
"output_file_name": "state",
"has_json_output": false
},
{
"name": "show_state",
"arguments": ["show", "-json"],
"capture_output": true,
"output_file_name": "state.json",
"has_json_output": true,
"streams_json_output": false
},
{
"name": "show_plan",
"arguments": ["show", "-json", "equivalence_test_plan"],
"capture_output": true,
"output_file_name": "plan.json",
"has_json_output": true,
"streams_json_output": false
}
]
}
5 changes: 5 additions & 0 deletions testing/equivalence/test_cases/test_pipelines/main.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# DO NOT EDIT
# This file is automatically generated by update-test-cases.sh
module test {
source = "../../../../examples/pipelines"
}
42 changes: 42 additions & 0 deletions testing/equivalence/test_cases/test_pipelines/spec.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
{
"ignore_fields": {
"plan.json": ["errored"]
},
"commands": [
{
"name": "init",
"arguments": ["init", "-plugin-dir=../../.plugins"],
"capture_output": false
},
{
"name": "plan",
"arguments": ["plan", "-out=equivalence_test_plan", "-no-color"],
"capture_output": true,
"output_file_name": "plan",
"has_json_output": false
},
{
"name": "state",
"arguments": ["show", "-no-color"],
"capture_output": true,
"output_file_name": "state",
"has_json_output": false
},
{
"name": "show_state",
"arguments": ["show", "-json"],
"capture_output": true,
"output_file_name": "state.json",
"has_json_output": true,
"streams_json_output": false
},
{
"name": "show_plan",
"arguments": ["show", "-json", "equivalence_test_plan"],
"capture_output": true,
"output_file_name": "plan.json",
"has_json_output": true,
"streams_json_output": false
}
]
}
5 changes: 5 additions & 0 deletions testing/equivalence/test_cases/test_registries/main.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# DO NOT EDIT
# This file is automatically generated by update-test-cases.sh
module test {
source = "../../../../examples/registries"
}
42 changes: 42 additions & 0 deletions testing/equivalence/test_cases/test_registries/spec.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
{
"ignore_fields": {
"plan.json": ["errored"]
},
"commands": [
{
"name": "init",
"arguments": ["init", "-plugin-dir=../../.plugins"],
"capture_output": false
},
{
"name": "plan",
"arguments": ["plan", "-out=equivalence_test_plan", "-no-color"],
"capture_output": true,
"output_file_name": "plan",
"has_json_output": false
},
{
"name": "state",
"arguments": ["show", "-no-color"],
"capture_output": true,
"output_file_name": "state",
"has_json_output": false
},
{
"name": "show_state",
"arguments": ["show", "-json"],
"capture_output": true,
"output_file_name": "state.json",
"has_json_output": true,
"streams_json_output": false
},
{
"name": "show_plan",
"arguments": ["show", "-json", "equivalence_test_plan"],
"capture_output": true,
"output_file_name": "plan.json",
"has_json_output": true,
"streams_json_output": false
}
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# DO NOT EDIT
# This file is automatically generated by update-test-cases.sh
module test {
source = "../../../../examples/storage_integration"
}
42 changes: 42 additions & 0 deletions testing/equivalence/test_cases/test_storage_integration/spec.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
{
"ignore_fields": {
"plan.json": ["errored"]
},
"commands": [
{
"name": "init",
"arguments": ["init", "-plugin-dir=../../.plugins"],
"capture_output": false
},
{
"name": "plan",
"arguments": ["plan", "-out=equivalence_test_plan", "-no-color"],
"capture_output": true,
"output_file_name": "plan",
"has_json_output": false
},
{
"name": "state",
"arguments": ["show", "-no-color"],
"capture_output": true,
"output_file_name": "state",
"has_json_output": false
},
{
"name": "show_state",
"arguments": ["show", "-json"],
"capture_output": true,
"output_file_name": "state.json",
"has_json_output": true,
"streams_json_output": false
},
{
"name": "show_plan",
"arguments": ["show", "-json", "equivalence_test_plan"],
"capture_output": true,
"output_file_name": "plan.json",
"has_json_output": true,
"streams_json_output": false
}
]
}
5 changes: 5 additions & 0 deletions testing/equivalence/test_cases/test_teams/main.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# DO NOT EDIT
# This file is automatically generated by update-test-cases.sh
module test {
source = "../../../../examples/teams"
}
42 changes: 42 additions & 0 deletions testing/equivalence/test_cases/test_teams/spec.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
{
"ignore_fields": {
"plan.json": ["errored"]
},
"commands": [
{
"name": "init",
"arguments": ["init", "-plugin-dir=../../.plugins"],
"capture_output": false
},
{
"name": "plan",
"arguments": ["plan", "-out=equivalence_test_plan", "-no-color"],
"capture_output": true,
"output_file_name": "plan",
"has_json_output": false
},
{
"name": "state",
"arguments": ["show", "-no-color"],
"capture_output": true,
"output_file_name": "state",
"has_json_output": false
},
{
"name": "show_state",
"arguments": ["show", "-json"],
"capture_output": true,
"output_file_name": "state.json",
"has_json_output": true,
"streams_json_output": false
},
{
"name": "show_plan",
"arguments": ["show", "-json", "equivalence_test_plan"],
"capture_output": true,
"output_file_name": "plan.json",
"has_json_output": true,
"streams_json_output": false
}
]
}
5 changes: 5 additions & 0 deletions testing/equivalence/test_cases/test_triggers/main.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# DO NOT EDIT
# This file is automatically generated by update-test-cases.sh
module test {
source = "../../../../examples/triggers"
}
Loading

0 comments on commit 65e1923

Please sign in to comment.