Skip to content

Commit

Permalink
r/signalr_service: fixing the assertion
Browse files Browse the repository at this point in the history
  • Loading branch information
tombuildsstuff committed Oct 29, 2019
1 parent 2188ae4 commit d33eaea
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions azurerm/resource_arm_signalr_service_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -390,8 +390,8 @@ func TestAccAzureRMSignalRService_cors(t *testing.T) {
Config: testAccAzureRMSignalRService_withCors(ri, testLocation()),
Check: resource.ComposeTestCheckFunc(
testCheckAzureRMSignalRServiceExists(resourceName),
resource.TestCheckResourceAttr(resourceName, "site_config.0.cors.#", "1"),
resource.TestCheckResourceAttr(resourceName, "site_config.0.cors.0.allowed_origins.#", "2"),
resource.TestCheckResourceAttr(resourceName, "cors.#", "1"),
resource.TestCheckResourceAttr(resourceName, "cors.0.allowed_origins.#", "2"),
resource.TestCheckResourceAttrSet(resourceName, "hostname"),
resource.TestCheckResourceAttrSet(resourceName, "ip_address"),
resource.TestCheckResourceAttrSet(resourceName, "public_port"),
Expand Down Expand Up @@ -487,8 +487,8 @@ resource "azurerm_signalr_service" "test" {
cors {
allowed_origins = [
"www.contoso.com",
"contoso.com",
"https://example.com",
"https://contoso.com",
]
}
}
Expand Down

0 comments on commit d33eaea

Please sign in to comment.