Fix failing acceptance tests by using case insensitive diff function.

Some resource fail due to resource_group_name always being stored as
lowercase. For those resources we add the case insensitive diff
function.
This commit is contained in:
Andreas Kyrris 2016-09-28 14:12:00 +01:00
parent da2bb09a32
commit 409ec88157
3 changed files with 12 additions and 9 deletions

View File

@ -26,9 +26,10 @@ func resourceArmDnsZone() *schema.Resource {
}, },
"resource_group_name": &schema.Schema{ "resource_group_name": &schema.Schema{
Type: schema.TypeString, Type: schema.TypeString,
Required: true, Required: true,
ForceNew: true, ForceNew: true,
DiffSuppressFunc: resourceAzurermResourceGroupNameDiffSuppress,
}, },
"number_of_record_sets": &schema.Schema{ "number_of_record_sets": &schema.Schema{

View File

@ -86,9 +86,10 @@ func resourceArmTrafficManagerEndpoint() *schema.Resource {
}, },
"resource_group_name": { "resource_group_name": {
Type: schema.TypeString, Type: schema.TypeString,
Required: true, Required: true,
ForceNew: true, ForceNew: true,
DiffSuppressFunc: resourceAzurermResourceGroupNameDiffSuppress,
}, },
}, },
} }

View File

@ -93,9 +93,10 @@ func resourceArmTrafficManagerProfile() *schema.Resource {
}, },
"resource_group_name": { "resource_group_name": {
Type: schema.TypeString, Type: schema.TypeString,
Required: true, Required: true,
ForceNew: true, ForceNew: true,
DiffSuppressFunc: resourceAzurermResourceGroupNameDiffSuppress,
}, },
"tags": tagsSchema(), "tags": tagsSchema(),