From d33eaea7caedd5993ada34ec83c999ed7a45fad4 Mon Sep 17 00:00:00 2001 From: tombuildsstuff Date: Tue, 29 Oct 2019 12:16:41 +0100 Subject: [PATCH] r/signalr_service: fixing the assertion --- azurerm/resource_arm_signalr_service_test.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/azurerm/resource_arm_signalr_service_test.go b/azurerm/resource_arm_signalr_service_test.go index 39f59042a4a4..394878ef4a10 100644 --- a/azurerm/resource_arm_signalr_service_test.go +++ b/azurerm/resource_arm_signalr_service_test.go @@ -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"), @@ -487,8 +487,8 @@ resource "azurerm_signalr_service" "test" { cors { allowed_origins = [ - "www.contoso.com", - "contoso.com", + "https://example.com", + "https://contoso.com", ] } }