Skip to content

Commit

Permalink
Update fixture for failing tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Thirukumaran Vaseeharan committed Oct 18, 2022
1 parent 66e45b4 commit 37eba01
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
2 changes: 1 addition & 1 deletion examples/mig/autoscaler/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ group with an autoscaler.

| Name | Description | Type | Default | Required |
|------|-------------|------|---------|:--------:|
| autoscaling\_cpu | Autoscaling, cpu utilization policy block as single element array. https://www.terraform.io/docs/providers/google/r/compute_autoscaler.html#cpu_utilization | `list(map(number))` | n/a | yes |
| autoscaling\_cpu | Autoscaling, cpu utilization policy block as single element array. https://registry.terraform.io/providers/hashicorp/google/latest/docs/resources/compute_autoscaler#cpu_utilization | <pre>list(object({<br> target = number<br> predictive_method = string<br> }))</pre> | n/a | yes |
| autoscaling\_enabled | Creates an autoscaler for the managed instance group | `any` | n/a | yes |
| min\_replicas | The minimum number of replicas that the autoscaler can scale down to. This cannot be less than 0. | `any` | n/a | yes |
| project\_id | The GCP project to use for integration tests | `string` | n/a | yes |
Expand Down
7 changes: 5 additions & 2 deletions examples/mig/autoscaler/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,10 @@ variable "min_replicas" {


variable "autoscaling_cpu" {
description = "Autoscaling, cpu utilization policy block as single element array. https://www.terraform.io/docs/providers/google/r/compute_autoscaler.html#cpu_utilization"
type = list(map(number))
description = "Autoscaling, cpu utilization policy block as single element array. https://registry.terraform.io/providers/hashicorp/google/latest/docs/resources/compute_autoscaler#cpu_utilization"
type = list(object({
target = number
predictive_method = string
}))
}

3 changes: 2 additions & 1 deletion test/fixtures/mig/autoscaler/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@ module "mig_autoscaler" {

autoscaling_cpu = [
{
target = 0.6
target = 0.6,
predictive_method = null,
},
]
}
Expand Down

0 comments on commit 37eba01

Please sign in to comment.