Skip to content

Commit

Permalink
fix acc test TestAccAzureRMDnsAAAARecord_RecordsToAlias (#18693)
Browse files Browse the repository at this point in the history
  • Loading branch information
liuwuliuyun authored Oct 11, 2022
1 parent 6967d62 commit b806896
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions internal/services/dns/dns_aaaa_record_resource_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -136,8 +136,10 @@ func TestAccAzureRMDnsAAAARecord_RecordsToAlias(t *testing.T) {
Config: r.AliasToRecords(data),
Check: acceptance.ComposeTestCheckFunc(
check.That(data.ResourceName).ExistsInAzure(r),
acceptance.TestCheckResourceAttrPair(data.ResourceName, "target_resource_id", targetResourceName, "id"),
acceptance.TestCheckNoResourceAttr(data.ResourceName, "records"),
check.That(data.ResourceName).Key("target_resource_id").MatchesOtherKey(
check.That(targetResourceName).Key("id"),
),
check.That(data.ResourceName).Key("records.#").HasValue("0"),
),
},
data.ImportStep(),
Expand Down

0 comments on commit b806896

Please sign in to comment.