Skip to content

Commit

Permalink
Properties should be Computed
Browse files Browse the repository at this point in the history
  • Loading branch information
tombuildsstuff committed Aug 22, 2017
1 parent 42629cc commit de57078
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions azurerm/resource_arm_app_service_plan.go
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ func resourceArmAppServicePlan() *schema.Resource {
"properties": {
Type: schema.TypeList,
Optional: true,
Computed: true,
MaxItems: 1,
Elem: &schema.Resource{
Schema: map[string]*schema.Schema{
Expand Down
3 changes: 2 additions & 1 deletion azurerm/resource_arm_app_service_plan_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,9 @@ func TestAccAzureRMAppServicePlan_complete(t *testing.T) {
Config: config,
Check: resource.ComposeTestCheckFunc(
testCheckAzureRMAppServicePlanExists(resourceName),
resource.TestCheckResourceAttr(resourceName, "properties.0.maximum_number_of_workers", "3"),
resource.TestCheckResourceAttr(resourceName, "properties.0.maximum_number_of_workers", "10"),
resource.TestCheckResourceAttr(resourceName, "properties.0.per_site_scaling", "true"),
resource.TestCheckResourceAttr(resourceName, "properties.0.reserved", "false"),
),
},
},
Expand Down

0 comments on commit de57078

Please sign in to comment.