Skip to content

Commit

Permalink
update tests for schema changes
Browse files Browse the repository at this point in the history
  • Loading branch information
jackofallops committed Nov 15, 2022
1 parent 7a733b2 commit 0131ed2
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
12 changes: 6 additions & 6 deletions internal/services/containerapps/container_app_resource_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -329,7 +329,7 @@ resource "azurerm_container_app" "test" {
transport = "http"
traffic_weight {
latest_revision = true
weight = 100
percentage = 100
}
}
Expand Down Expand Up @@ -426,7 +426,7 @@ resource "azurerm_container_app" "test" {
transport = "http"
traffic_weight {
latest_revision = true
weight = 100
percentage = 100
}
}
Expand Down Expand Up @@ -530,12 +530,12 @@ resource "azurerm_container_app" "test" {
traffic_weight {
latest_revision = true
weight = 20
percentage = 20
}
traffic_weight {
revision_suffix = "rev1"
weight = 80
percentage = 80
}
}
Expand Down Expand Up @@ -650,12 +650,12 @@ resource "azurerm_container_app" "test" {
traffic_weight {
latest_revision = true
weight = 20
percentage = 20
}
traffic_weight {
revision_suffix = "rev1"
weight = 80
percentage = 80
}
}
Expand Down
2 changes: 1 addition & 1 deletion internal/services/containerapps/helpers/container_apps.go
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,7 @@ func ContainerAppIngressTrafficWeight() *pluginsdk.Schema {
Type: pluginsdk.TypeInt,
Required: true,
ValidateFunc: validation.IntBetween(0, 100), // TODO - this may just be multiples of 10?
Description: "The weight (%) of traffic to send to this revision.",
Description: "The percentage of traffic to send to this revision.",
},
},
},
Expand Down

0 comments on commit 0131ed2

Please sign in to comment.