-
-
Notifications
You must be signed in to change notification settings - Fork 154
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add workspace validation test #140
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Triggering pull_request_review event...
Terraform plan in tests/plan/plan_12 Plan: 1 to add, 0 to change, 0 to destroy.An execution plan has been generated and is shown below.
Resource actions are indicated with the following symbols:
+ create
Terraform will perform the following actions:
# random_string.my_string will be created
+ resource "random_string" "my_string" {
+ id = (known after apply)
+ length = 11
+ lower = true
+ min_lower = 0
+ min_numeric = 0
+ min_special = 0
+ min_upper = 0
+ number = true
+ result = (known after apply)
+ special = true
+ upper = true
}
Plan: 1 to add, 0 to change, 0 to destroy. 📝 Plan generated in Test terraform-plan #285 |
Terraform plan in tests/plan/plan_13 Plan: 1 to add, 0 to change, 0 to destroy.An execution plan has been generated and is shown below.
Resource actions are indicated with the following symbols:
+ create
Terraform will perform the following actions:
# random_string.my_string will be created
+ resource "random_string" "my_string" {
+ id = (known after apply)
+ length = 11
+ lower = true
+ min_lower = 0
+ min_numeric = 0
+ min_special = 0
+ min_upper = 0
+ number = true
+ result = (known after apply)
+ special = true
+ upper = true
}
Plan: 1 to add, 0 to change, 0 to destroy. 📝 Plan generated in Test terraform-plan #285 |
Terraform plan in tests/plan/error Error: Incorrect attribute value type
❌ Failed to generate plan in Test terraform-plan #285 |
Terraform plan in tests/plan/no_changes No changes. Your infrastructure matches the configuration.
📝 Plan generated in Test terraform-plan #285 |
Terraform plan for pull_request_target Plan: 1 to add, 0 to change, 0 to destroy. Changes to Outputs.Terraform used the selected providers to generate the following execution
plan. Resource actions are indicated with the following symbols:
+ create
Terraform will perform the following actions:
# random_string.my_string will be created
+ resource "random_string" "my_string" {
+ id = (known after apply)
+ length = 11
+ lower = true
+ min_lower = 0
+ min_numeric = 0
+ min_special = 0
+ min_upper = 0
+ number = true
+ result = (known after apply)
+ special = true
+ upper = true
}
Plan: 1 to add, 0 to change, 0 to destroy.
Changes to Outputs:
+ output_string = "the_string" ✅ Plan applied in pull_request_target test #204 |
Terraform plan in tests/plan/plan_15_4 Plan: 1 to add, 0 to change, 0 to destroy. Changes to Outputs.Terraform used the selected providers to generate the following execution
plan. Resource actions are indicated with the following symbols:
+ create
Terraform will perform the following actions:
# random_string.my_string will be created
+ resource "random_string" "my_string" {
+ id = (known after apply)
+ length = 11
+ lower = true
+ min_lower = 0
+ min_numeric = 0
+ min_special = 0
+ min_upper = 0
+ number = true
+ result = (known after apply)
+ special = true
+ upper = true
}
Plan: 1 to add, 0 to change, 0 to destroy.
Changes to Outputs:
+ s = "string" 📝 Plan generated in Test terraform-plan #285 |
Terraform plan in tests/plan/plan Plan: 1 to add, 0 to change, 0 to destroy. Changes to Outputs.Terraform used the selected providers to generate the following execution
plan. Resource actions are indicated with the following symbols:
+ create
Terraform will perform the following actions:
# random_string.my_string will be created
+ resource "random_string" "my_string" {
+ id = (known after apply)
+ length = 11
+ lower = true
+ min_lower = 0
+ min_numeric = 0
+ min_special = 0
+ min_upper = 0
+ number = true
+ result = (known after apply)
+ special = true
+ upper = true
}
Plan: 1 to add, 0 to change, 0 to destroy.
Changes to Outputs:
+ s = "string" 📝 Plan generated in Test terraform-plan #285 |
Terraform plan in tests/plan/plan_15 Plan: 1 to add, 0 to change, 0 to destroy. Changes to Outputs.Terraform used the selected providers to generate the following execution
plan. Resource actions are indicated with the following symbols:
+ create
Terraform will perform the following actions:
# random_string.my_string will be created
+ resource "random_string" "my_string" {
+ id = (known after apply)
+ length = 11
+ lower = true
+ min_lower = 0
+ min_numeric = 0
+ min_special = 0
+ min_upper = 0
+ number = true
+ result = (known after apply)
+ special = true
+ upper = true
}
Plan: 1 to add, 0 to change, 0 to destroy.
Changes to Outputs:
+ s = "string" 📝 Plan generated in Test terraform-plan #285 |
Terraform plan in tests/plan/plan_14 Plan: 1 to add, 0 to change, 0 to destroy. Changes to Outputs.An execution plan has been generated and is shown below.
Resource actions are indicated with the following symbols:
+ create
Terraform will perform the following actions:
# random_string.my_string will be created
+ resource "random_string" "my_string" {
+ id = (known after apply)
+ length = 11
+ lower = true
+ min_lower = 0
+ min_numeric = 0
+ min_special = 0
+ min_upper = 0
+ number = true
+ result = (known after apply)
+ special = true
+ upper = true
}
Plan: 1 to add, 0 to change, 0 to destroy.
Changes to Outputs:
+ s = "string" 📝 Plan generated in Test terraform-plan #285 |
Terraform plan in tests/plan/plan_11 Plan: 1 to add, 0 to change, 0 to destroy.An execution plan has been generated and is shown below.
Resource actions are indicated with the following symbols:
+ create
Terraform will perform the following actions:
+ random_string.my_string
id: <computed>
length: "11"
lower: "true"
min_lower: "0"
min_numeric: "0"
min_special: "0"
min_upper: "0"
number: "true"
result: <computed>
special: "true"
upper: "true"
Plan: 1 to add, 0 to change, 0 to destroy. 📝 Plan generated in Test terraform-plan #285 |
Terraform plan for Optional path Plan: 1 to add, 0 to change, 0 to destroy. Changes to Outputs.Terraform used the selected providers to generate the following execution
plan. Resource actions are indicated with the following symbols:
+ create
Terraform will perform the following actions:
# random_string.my_string will be created
+ resource "random_string" "my_string" {
+ id = (known after apply)
+ length = 11
+ lower = true
+ min_lower = 0
+ min_numeric = 0
+ min_special = 0
+ min_upper = 0
+ number = true
+ result = (known after apply)
+ special = true
+ upper = true
}
Plan: 1 to add, 0 to change, 0 to destroy.
Changes to Outputs:
+ s = "string" 📝 Plan generated in Test terraform-plan #285 |
Terraform plan in tests/apply/vars Plan: 1 to add, 0 to change, 0 to destroy. Changes to Outputs.Terraform used the selected providers to generate the following execution
plan. Resource actions are indicated with the following symbols:
+ create
Terraform will perform the following actions:
# random_string.my_string will be created
+ resource "random_string" "my_string" {
+ id = (known after apply)
+ length = 11
+ lower = true
+ min_lower = 0
+ min_numeric = 0
+ min_special = 0
+ min_upper = 0
+ number = true
+ result = (known after apply)
+ special = true
+ upper = true
}
Plan: 1 to add, 0 to change, 0 to destroy.
Changes to Outputs:
+ complex_output = "8300:8300:tcp"
+ from_var = "single"
+ from_varfile = "monkey"
+ output_string = "the_string" 📝 Plan generated in Test terraform-plan #285 |
Terraform plan for Single registry Changes to Outputs
✅ Plan applied in Test registry #145 |
Terraform plan for Multiple registries Changes to Outputs
✅ Plan applied in Test registry #145 |
Terraform plan for change_then_no_changes No changes. Your infrastructure matches the configuration.
✅ Plan applied in Test changes-only PR comment #171 |
Terraform plan for apply_when_plan_has_changed Plan: 1 to add, 0 to change, 0 to destroy.Terraform used the selected providers to generate the following execution
plan. Resource actions are indicated with the following symbols:
+ create
Terraform will perform the following actions:
# random_string.the_string[0] will be created
+ resource "random_string" "the_string" {
+ id = (known after apply)
+ length = 5
+ lower = true
+ min_lower = 0
+ min_numeric = 0
+ min_special = 0
+ min_upper = 0
+ number = true
+ result = (known after apply)
+ special = true
+ upper = true
}
Plan: 1 to add, 0 to change, 0 to destroy. ❌ Plan not applied in Test changes-only PR comment #171 (Plan has changed) |
Terraform plan for SSH Module Changes to Outputs
✅ Plan applied in Test SSH Keys #197 |
Terraform plan for No targeted changes No changes. Your infrastructure matches the configuration.
📝 Plan generated in Test plan target and replace #49 |
Terraform plan in tests/target Plan: 1 to add, 0 to change, 0 to destroy. Changes to Outputs.Terraform used the selected providers to generate the following execution
plan. Resource actions are indicated with the following symbols:
+ create
Terraform will perform the following actions:
# random_string.count[0] will be created
+ resource "random_string" "count" {
+ id = (known after apply)
+ length = 5
+ lower = true
+ min_lower = 0
+ min_numeric = 0
+ min_special = 0
+ min_upper = 0
+ number = true
+ result = (known after apply)
+ special = false
+ upper = true
}
Plan: 1 to add, 0 to change, 0 to destroy.
Changes to Outputs:
+ count = (known after apply)
Warning: Resource targeting is in effect
You are creating a plan with the -target option, which means that the result
of this plan may not represent all of the changes requested by the current
configuration.
The -target option is not for routine use, and is provided only for
exceptional situations such as recovering from errors or mistakes, or when
Terraform specifically suggests to use it as part of an error message. ✅ Plan applied in Test plan target and replace #49 |
Terraform plan for pull_request_review Plan: 1 to add, 0 to change, 0 to destroy. Changes to Outputs.Terraform used the selected providers to generate the following execution
plan. Resource actions are indicated with the following symbols:
+ create
Terraform will perform the following actions:
# random_string.my_string will be created
+ resource "random_string" "my_string" {
+ id = (known after apply)
+ length = 11
+ lower = true
+ min_lower = 0
+ min_numeric = 0
+ min_special = 0
+ min_upper = 0
+ number = true
+ result = (known after apply)
+ special = true
+ upper = true
}
Plan: 1 to add, 0 to change, 0 to destroy.
Changes to Outputs:
+ output_string = "the_string" ✅ Plan applied in pull_request_review test #189 |
Terraform plan in tests/target Plan: 1 to add, 0 to change, 0 to destroy. Changes to Outputs.Terraform used the selected providers to generate the following execution
plan. Resource actions are indicated with the following symbols:
+ create
Terraform will perform the following actions:
# random_string.foreach["hello"] will be created
+ resource "random_string" "foreach" {
+ id = (known after apply)
+ length = 6
+ lower = true
+ min_lower = 0
+ min_numeric = 0
+ min_special = 0
+ min_upper = 0
+ number = true
+ result = (known after apply)
+ special = false
+ upper = true
}
Plan: 1 to add, 0 to change, 0 to destroy.
Changes to Outputs:
+ foreach = (known after apply)
Warning: Resource targeting is in effect
You are creating a plan with the -target option, which means that the result
of this plan may not represent all of the changes requested by the current
configuration.
The -target option is not for routine use, and is provided only for
exceptional situations such as recovering from errors or mistakes, or when
Terraform specifically suggests to use it as part of an error message. ✅ Plan applied in Test plan target and replace #49 |
Terraform plan in tests/target Plan: 1 to add, 0 to change, 1 to destroy. Changes to Outputs.Terraform used the selected providers to generate the following execution
plan. Resource actions are indicated with the following symbols:
-/+ destroy and then create replacement
Terraform will perform the following actions:
# random_string.foreach["hello"] will be replaced, as requested
-/+ resource "random_string" "foreach" {
~ id = "**********" -> (known after apply)
~ result = "**********" -> (known after apply)
# (9 unchanged attributes hidden)
}
Plan: 1 to add, 0 to change, 1 to destroy.
Changes to Outputs:
~ foreach = "tDBragtMGS" -> (known after apply)
Warning: Resource targeting is in effect
You are creating a plan with the -target option, which means that the result
of this plan may not represent all of the changes requested by the current
configuration.
The -target option is not for routine use, and is provided only for
exceptional situations such as recovering from errors or mistakes, or when
Terraform specifically suggests to use it as part of an error message. ✅ Plan applied in Test plan target and replace #49 |
Terraform plan in tests/target Plan: 2 to add, 0 to change, 2 to destroy. Changes to Outputs.Terraform used the selected providers to generate the following execution
plan. Resource actions are indicated with the following symbols:
-/+ destroy and then create replacement
Terraform will perform the following actions:
# random_string.count[0] will be replaced, as requested
-/+ resource "random_string" "count" {
~ id = "**********" -> (known after apply)
~ result = "**********" -> (known after apply)
# (9 unchanged attributes hidden)
}
# random_string.foreach["hello"] will be replaced, as requested
-/+ resource "random_string" "foreach" {
~ id = "**********" -> (known after apply)
~ result = "**********" -> (known after apply)
# (9 unchanged attributes hidden)
}
Plan: 2 to add, 0 to change, 2 to destroy.
Changes to Outputs:
~ count = "1YtJRh8jnH" -> (known after apply)
~ foreach = "aOCdLBNoy2" -> (known after apply) ✅ Plan applied in Test plan target and replace #49 |
Terraform plan in tests/target in the workspace-eval workspace Plan: 1 to add, 0 to change, 0 to destroy. Changes to Outputs.Terraform used the selected providers to generate the following execution
plan. Resource actions are indicated with the following symbols:
+ create
Terraform will perform the following actions:
# random_string.count[0] will be created
+ resource "random_string" "count" {
+ id = (known after apply)
+ length = 5
+ lower = true
+ min_lower = 0
+ min_numeric = 0
+ min_special = 0
+ min_upper = 0
+ number = true
+ result = (known after apply)
+ special = false
+ upper = true
}
Plan: 1 to add, 0 to change, 0 to destroy.
Changes to Outputs:
+ count = (known after apply)
╷
│ Warning: Resource targeting is in effect
│
│ You are creating a plan with the -target option, which means that the
│ result of this plan may not represent all of the changes requested by the
│ current configuration.
│
│ The -target option is not for routine use, and is provided only for
│ exceptional situations such as recovering from errors or mistakes, or when
│ Terraform specifically suggests to use it as part of an error message.
╵ ✅ Plan applied in Test plan target and replace #49 |
Terraform plan in tests/terraform-cloud in the workspace-eval-2 workspace Plan: 1 to add, 0 to change, 0 to destroy.An execution plan has been generated and is shown below.
Resource actions are indicated with the following symbols:
+ create
Terraform will perform the following actions:
# random_id.the_id will be created
+ resource "random_id" "the_id" {
+ b64_std = (known after apply)
+ b64_url = (known after apply)
+ byte_length = 5
+ dec = (known after apply)
+ hex = (known after apply)
+ id = (known after apply)
}
Plan: 1 to add, 0 to change, 0 to destroy. ✅ Plan applied in Test remote backend #277 |
Terraform plan in tests/target in the workspace-eval workspace Plan: 1 to add, 0 to change, 0 to destroy. Changes to Outputs.Terraform used the selected providers to generate the following execution
plan. Resource actions are indicated with the following symbols:
+ create
Terraform will perform the following actions:
# random_string.foreach["hello"] will be created
+ resource "random_string" "foreach" {
+ id = (known after apply)
+ length = 6
+ lower = true
+ min_lower = 0
+ min_numeric = 0
+ min_special = 0
+ min_upper = 0
+ number = true
+ result = (known after apply)
+ special = false
+ upper = true
}
Plan: 1 to add, 0 to change, 0 to destroy.
Changes to Outputs:
+ foreach = (known after apply)
╷
│ Warning: Resource targeting is in effect
│
│ You are creating a plan with the -target option, which means that the
│ result of this plan may not represent all of the changes requested by the
│ current configuration.
│
│ The -target option is not for routine use, and is provided only for
│ exceptional situations such as recovering from errors or mistakes, or when
│ Terraform specifically suggests to use it as part of an error message.
╵ ✅ Plan applied in Test plan target and replace #49 |
Terraform plan in tests/target in the workspace-eval workspace Plan: 1 to add, 0 to change, 1 to destroy. Changes to Outputs.Terraform used the selected providers to generate the following execution
plan. Resource actions are indicated with the following symbols:
-/+ destroy and then create replacement
Terraform will perform the following actions:
# random_string.foreach["hello"] will be replaced, as requested
-/+ resource "random_string" "foreach" {
~ id = "**********" -> (known after apply)
~ result = "**********" -> (known after apply)
# (9 unchanged attributes hidden)
}
Plan: 1 to add, 0 to change, 1 to destroy.
Changes to Outputs:
~ foreach = "RHCpirjcHk" -> (known after apply)
╷
│ Warning: Resource targeting is in effect
│
│ You are creating a plan with the -target option, which means that the
│ result of this plan may not represent all of the changes requested by the
│ current configuration.
│
│ The -target option is not for routine use, and is provided only for
│ exceptional situations such as recovering from errors or mistakes, or when
│ Terraform specifically suggests to use it as part of an error message.
╵ ✅ Plan applied in Test plan target and replace #49 |
Terraform plan in tests/target in the workspace-eval workspace Plan: 2 to add, 0 to change, 2 to destroy. Changes to Outputs.Terraform used the selected providers to generate the following execution
plan. Resource actions are indicated with the following symbols:
-/+ destroy and then create replacement
Terraform will perform the following actions:
# random_string.count[0] will be replaced, as requested
-/+ resource "random_string" "count" {
~ id = "**********" -> (known after apply)
~ result = "**********" -> (known after apply)
# (9 unchanged attributes hidden)
}
# random_string.foreach["hello"] will be replaced, as requested
-/+ resource "random_string" "foreach" {
~ id = "**********" -> (known after apply)
~ result = "**********" -> (known after apply)
# (9 unchanged attributes hidden)
}
Plan: 2 to add, 0 to change, 2 to destroy.
Changes to Outputs:
~ count = "fouzGjspwv" -> (known after apply)
~ foreach = "YHgFTiloc0" -> (known after apply) ✅ Plan applied in Test plan target and replace #49 |
`terraform.workspace` may be evaluated during a validate, even though it won't be initialized. The workspace input allows setting it for the validate operation.
402616c
to
f54173c
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Triggering pull_request_review event...
No description provided.