From 821e1ddaf7c19d6e94a59aab9586bfe49a9566a4 Mon Sep 17 00:00:00 2001 From: kt Date: Tue, 30 Jul 2019 16:56:02 -0700 Subject: [PATCH 1/8] azurerm_batch_certificate - fix thumbprint casing in tests --- azurerm/resource_arm_batch_certificate_test.go | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/azurerm/resource_arm_batch_certificate_test.go b/azurerm/resource_arm_batch_certificate_test.go index eeff78cc23f1..3ba4203c5842 100644 --- a/azurerm/resource_arm_batch_certificate_test.go +++ b/azurerm/resource_arm_batch_certificate_test.go @@ -34,7 +34,7 @@ func TestAccAzureRMBatchCertificate_Pfx(t *testing.T) { Check: resource.ComposeTestCheckFunc( resource.TestCheckResourceAttr(resourceName, "id", certificateID), resource.TestCheckResourceAttr(resourceName, "format", "Pfx"), - resource.TestCheckResourceAttr(resourceName, "thumbprint", "42C107874FD0E4A9583292A2F1098E8FE4B2EDDA"), + resource.TestCheckResourceAttr(resourceName, "thumbprint", "42c107874fd0e4a9583292a2f1098e8fe4b2edda"), resource.TestCheckResourceAttr(resourceName, "thumbprint_algorithm", "SHA1"), ), }, @@ -84,7 +84,7 @@ func TestAccAzureRMBatchCertificate_Cer(t *testing.T) { resource.TestCheckResourceAttr(resourceName, "id", certificateID), resource.TestCheckResourceAttr(resourceName, "format", "Cer"), - resource.TestCheckResourceAttr(resourceName, "thumbprint", "312D31A79FA0CEF49C00F769AFC2B73E9F4EDF34"), + resource.TestCheckResourceAttr(resourceName, "thumbprint", "312d31a79fa0cef49c00f769afc2b73e9f4edf34"), resource.TestCheckResourceAttr(resourceName, "thumbprint_algorithm", "SHA1"), ), }, @@ -132,7 +132,7 @@ resource "azurerm_batch_certificate" "test" { certificate = "${filebase64("testdata/batch_certificate.pfx")}" format = "Pfx" password = "terraform" - thumbprint = "42C107874FD0E4A9583292A2F1098E8FE4B2EDDA" + thumbprint = "42c107874fd0e4a9583292a2f1098e8fe4b2edda" thumbprint_algorithm = "SHA1" } `, rInt, location, batchAccountSuffix) @@ -157,7 +157,7 @@ resource "azurerm_batch_certificate" "test" { account_name = "${azurerm_batch_account.test.name}" certificate = "${filebase64("testdata/batch_certificate.pfx")}" format = "Pfx" - thumbprint = "42C107874FD0E4A9583292A2F1098E8FE4B2EDDA" + thumbprint = "42c107874fd0e4a9583292a2f1098e8fe4b2edda" thumbprint_algorithm = "SHA1" } `, rInt, location, batchAccountSuffix) @@ -181,7 +181,7 @@ resource "azurerm_batch_certificate" "test" { account_name = "${azurerm_batch_account.test.name}" certificate = "${filebase64("testdata/batch_certificate.cer")}" format = "Cer" - thumbprint = "312D31A79FA0CEF49C00F769AFC2B73E9F4EDF34" + thumbprint = "312d31a79fa0cef49c00f769afc2b73e9f4edf34" thumbprint_algorithm = "SHA1" } `, rInt, location, batchAccountSuffix) @@ -206,7 +206,7 @@ resource "azurerm_batch_certificate" "test" { certificate = "${filebase64("testdata/batch_certificate.cer")}" format = "Cer" password = "should not have a password for Cer" - thumbprint = "312D31A79FA0CEF49C00F769AFC2B73E9F4EDF34" + thumbprint = "312d31a79fa0cef49c00f769afc2b73e9f4edf34" thumbprint_algorithm = "SHA1" } `, rInt, location, batchAccountSuffix) From 7c69f720cd9e915657b91e94d9fab3f667629cf1 Mon Sep 17 00:00:00 2001 From: kt Date: Tue, 30 Jul 2019 17:03:17 -0700 Subject: [PATCH 2/8] missed uppercase --- azurerm/resource_arm_batch_certificate_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/azurerm/resource_arm_batch_certificate_test.go b/azurerm/resource_arm_batch_certificate_test.go index 3ba4203c5842..537c70577daa 100644 --- a/azurerm/resource_arm_batch_certificate_test.go +++ b/azurerm/resource_arm_batch_certificate_test.go @@ -20,7 +20,7 @@ func TestAccAzureRMBatchCertificate_Pfx(t *testing.T) { location := testLocation() subscriptionID := os.Getenv("ARM_SUBSCRIPTION_ID") - certificateID := fmt.Sprintf("/subscriptions/%s/resourceGroups/testaccbatch%d/providers/Microsoft.Batch/batchAccounts/testaccbatch%s/certificates/SHA1-42C107874FD0E4A9583292A2F1098E8FE4B2EDDA", subscriptionID, ri, rs) + certificateID := fmt.Sprintf("/subscriptions/%s/resourceGroups/testaccbatch%d/providers/Microsoft.Batch/batchAccounts/testaccbatch%s/certificates/sha1-42c107874fd0e4a9583292a2f1098e8fe4b2edda", subscriptionID, ri, rs) config := testAccAzureRMBatchCertificatePfx(ri, rs, location) @@ -69,7 +69,7 @@ func TestAccAzureRMBatchCertificate_Cer(t *testing.T) { location := testLocation() subscriptionID := os.Getenv("ARM_SUBSCRIPTION_ID") - certificateID := fmt.Sprintf("/subscriptions/%s/resourceGroups/testaccbatch%d/providers/Microsoft.Batch/batchAccounts/testaccbatch%s/certificates/SHA1-312D31A79FA0CEF49C00F769AFC2B73E9F4EDF34", subscriptionID, ri, rs) + certificateID := fmt.Sprintf("/subscriptions/%s/resourceGroups/testaccbatch%d/providers/Microsoft.Batch/batchAccounts/testaccbatch%s/certificates/sha1-312d31a79fa0cef49c00f769afc2b73e9f4edf34", subscriptionID, ri, rs) config := testAccAzureRMBatchCertificateCer(ri, rs, location) From a2f24a9badb3ba8c8e68e701b33dfafbefc71f0d Mon Sep 17 00:00:00 2001 From: kt Date: Wed, 31 Jul 2019 07:22:25 -0700 Subject: [PATCH 3/8] fix more batch cert test casing --- azurerm/data_source_batch_certificate_test.go | 12 ++++++------ azurerm/data_source_batch_pool_test.go | 2 +- azurerm/resource_arm_batch_certificate.go | 1 + azurerm/resource_arm_batch_certificate_test.go | 4 ++-- 4 files changed, 10 insertions(+), 9 deletions(-) diff --git a/azurerm/data_source_batch_certificate_test.go b/azurerm/data_source_batch_certificate_test.go index 1230299c6080..509054b7c7e2 100644 --- a/azurerm/data_source_batch_certificate_test.go +++ b/azurerm/data_source_batch_certificate_test.go @@ -9,12 +9,12 @@ import ( "github.com/terraform-providers/terraform-provider-azurerm/azurerm/helpers/tf" ) -func TestAccDataSourceAzureRMBatchCertificate(t *testing.T) { +func TestAccDataSourceAzureRMBatchCertificate_basic(t *testing.T) { dataSourceName := "data.azurerm_batch_certificate.test" ri := tf.AccRandTimeInt() rs := acctest.RandString(4) location := testLocation() - config := testAccDataSourceAzureRMBatchCertificate(ri, rs, location) + config := testAccDataSourceAzureRMBatchCertificate_basic(ri, rs, location) resource.ParallelTest(t, resource.TestCase{ PreCheck: func() { testAccPreCheck(t) }, @@ -23,11 +23,11 @@ func TestAccDataSourceAzureRMBatchCertificate(t *testing.T) { { Config: config, Check: resource.ComposeTestCheckFunc( - resource.TestCheckResourceAttr(dataSourceName, "name", "SHA1-42C107874FD0E4A9583292A2F1098E8FE4B2EDDA"), + resource.TestCheckResourceAttr(dataSourceName, "name", "sha1-42c107874fd0e4a9583292a2f1098e8fe4b2edda"), resource.TestCheckResourceAttr(dataSourceName, "account_name", fmt.Sprintf("testaccbatch%s", rs)), resource.TestCheckResourceAttr(dataSourceName, "format", "Pfx"), resource.TestCheckResourceAttr(dataSourceName, "public_data", "MIIFqzCCA5OgAwIBAgIJAMs4jwMPq7T1MA0GCSqGSIb3DQEBCwUAMGwxCzAJBgNVBAYTAlVTMRMwEQYDVQQIDApTb21lLVN0YXRlMRgwFgYDVQQKDA9UZXJyYWZvcm0gVGVzdHMxDjAMBgNVBAsMBUF6dXJlMR4wHAYDVQQDDBVUZXJyYWZvcm0gQXBwIEdhdGV3YXkwHhcNMTYxMTAxMTcxOTEyWhcNMjYxMDMwMTcxOTEyWjBsMQswCQYDVQQGEwJVUzETMBEGA1UECAwKU29tZS1TdGF0ZTEYMBYGA1UECgwPVGVycmFmb3JtIFRlc3RzMQ4wDAYDVQQLDAVBenVyZTEeMBwGA1UEAwwVVGVycmFmb3JtIEFwcCBHYXRld2F5MIICIjANBgkqhkiG9w0BAQEFAAOCAg8AMIICCgKCAgEA49HW2pYIlW/mlaadLA1AsXiV48xVhXAvGVk3DEl1ffjp5bN8rap5WV1D83uMg1Ii7CJM8yNHkRkvN8n5WXFng4R5V1jPxGOTAj+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+Q9MK1jVSOSxC7qoQkRoNy9SKpqylunXZb+K6F3HfBkDQvn3OwsxYiSOcX9JaWpQAInNIZVg+WrJ1PXm8PFIaVPJfMgP3GOdm9vRAMjOM5Bc9iqGr2spimFd5h0GmgLvh35B3jHHWF4i3NupJQ6hUvHQZtYZOxfwxnY0/LVBTyLTVlniFA7dGSI+5Uexm+Pjh7IMGI532jTONlfNm9Bz/jdf1o0FlOclzG6Eif22gml3GM3xCUVlaElylYNAjO2lfvZuRVo5GKdMwtV9acNl0OwSx+0zbMYY2Ni3jQCI4kOL5Csctryf0rHXTlCCvnzBYVDPKmFJPna61T"), - resource.TestCheckResourceAttr(dataSourceName, "thumbprint", "42C107874FD0E4A9583292A2F1098E8FE4B2EDDA"), + resource.TestCheckResourceAttr(dataSourceName, "thumbprint", "42c107874fd0e4a9583292a2f1098e8fe4b2edda"), resource.TestCheckResourceAttr(dataSourceName, "thumbprint_algorithm", "SHA1"), ), }, @@ -35,7 +35,7 @@ func TestAccDataSourceAzureRMBatchCertificate(t *testing.T) { }) } -func testAccDataSourceAzureRMBatchCertificate(rInt int, rString string, location string) string { +func testAccDataSourceAzureRMBatchCertificate_basic(rInt int, rString string, location string) string { return fmt.Sprintf(` resource "azurerm_resource_group" "test" { name = "testaccbatch%d" @@ -55,7 +55,7 @@ resource "azurerm_batch_certificate" "test" { certificate = "${filebase64("testdata/batch_certificate.pfx")}" format = "Pfx" password = "terraform" - thumbprint = "42C107874FD0E4A9583292A2F1098E8FE4B2EDDA" + thumbprint = "42c107874fd0e4a9583292a2f1098e8fe4b2edda" thumbprint_algorithm = "SHA1" } diff --git a/azurerm/data_source_batch_pool_test.go b/azurerm/data_source_batch_pool_test.go index 1d91f1f7d330..5745a7f21457 100644 --- a/azurerm/data_source_batch_pool_test.go +++ b/azurerm/data_source_batch_pool_test.go @@ -93,7 +93,7 @@ resource "azurerm_batch_certificate" "test" { certificate = "${filebase64("testdata/batch_certificate.pfx")}" format = "Pfx" password = "terraform" - thumbprint = "42C107874FD0E4A9583292A2F1098E8FE4B2EDDA" + thumbprint = "42c107874fd0e4a9583292a2f1098e8fe4b2edda" thumbprint_algorithm = "SHA1" } diff --git a/azurerm/resource_arm_batch_certificate.go b/azurerm/resource_arm_batch_certificate.go index 2f9fc5a003cc..8be3f65883e9 100644 --- a/azurerm/resource_arm_batch_certificate.go +++ b/azurerm/resource_arm_batch_certificate.go @@ -70,6 +70,7 @@ func resourceArmBatchCertificate() *schema.Resource { DiffSuppressFunc: suppress.CaseDifference, }, + "thumbprint_algorithm": { Type: schema.TypeString, Required: true, diff --git a/azurerm/resource_arm_batch_certificate_test.go b/azurerm/resource_arm_batch_certificate_test.go index 537c70577daa..7b1354693180 100644 --- a/azurerm/resource_arm_batch_certificate_test.go +++ b/azurerm/resource_arm_batch_certificate_test.go @@ -35,7 +35,7 @@ func TestAccAzureRMBatchCertificate_Pfx(t *testing.T) { resource.TestCheckResourceAttr(resourceName, "id", certificateID), resource.TestCheckResourceAttr(resourceName, "format", "Pfx"), resource.TestCheckResourceAttr(resourceName, "thumbprint", "42c107874fd0e4a9583292a2f1098e8fe4b2edda"), - resource.TestCheckResourceAttr(resourceName, "thumbprint_algorithm", "SHA1"), + resource.TestCheckResourceAttr(resourceName, "thumbprint_algorithm", "sha1"), ), }, }, @@ -85,7 +85,7 @@ func TestAccAzureRMBatchCertificate_Cer(t *testing.T) { resource.TestCheckResourceAttr(resourceName, "id", certificateID), resource.TestCheckResourceAttr(resourceName, "format", "Cer"), resource.TestCheckResourceAttr(resourceName, "thumbprint", "312d31a79fa0cef49c00f769afc2b73e9f4edf34"), - resource.TestCheckResourceAttr(resourceName, "thumbprint_algorithm", "SHA1"), + resource.TestCheckResourceAttr(resourceName, "thumbprint_algorithm", "sha1"), ), }, }, From 6a4995e085176b2bfac576fc66737e1a7750fe0a Mon Sep 17 00:00:00 2001 From: kt Date: Wed, 31 Jul 2019 07:24:20 -0700 Subject: [PATCH 4/8] final casing change? --- azurerm/resource_arm_batch_pool_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/azurerm/resource_arm_batch_pool_test.go b/azurerm/resource_arm_batch_pool_test.go index 3b516850f1cc..1dcc311b2ffe 100644 --- a/azurerm/resource_arm_batch_pool_test.go +++ b/azurerm/resource_arm_batch_pool_test.go @@ -935,7 +935,7 @@ resource "azurerm_batch_certificate" "testpfx" { certificate = "${filebase64("testdata/batch_certificate.pfx")}" format = "Pfx" password = "terraform" - thumbprint = "42C107874FD0E4A9583292A2F1098E8FE4B2EDDA" + thumbprint = "42c107874fd0e4a9583292a2f1098e8fe4b2edda" thumbprint_algorithm = "SHA1" } From ff4100574ce73356bc52a6b21dc49336b3928703 Mon Sep 17 00:00:00 2001 From: kt Date: Wed, 31 Jul 2019 07:31:11 -0700 Subject: [PATCH 5/8] make fmt --- azurerm/resource_arm_batch_certificate.go | 1 - 1 file changed, 1 deletion(-) diff --git a/azurerm/resource_arm_batch_certificate.go b/azurerm/resource_arm_batch_certificate.go index 8be3f65883e9..2f9fc5a003cc 100644 --- a/azurerm/resource_arm_batch_certificate.go +++ b/azurerm/resource_arm_batch_certificate.go @@ -70,7 +70,6 @@ func resourceArmBatchCertificate() *schema.Resource { DiffSuppressFunc: suppress.CaseDifference, }, - "thumbprint_algorithm": { Type: schema.TypeString, Required: true, From 494225f9025d08cd26fd5347098efdbde5a1ce1b Mon Sep 17 00:00:00 2001 From: kt Date: Sat, 3 Aug 2019 17:25:34 -0700 Subject: [PATCH 6/8] ignore algo case difference --- azurerm/resource_arm_batch_certificate.go | 9 +++++---- azurerm/resource_arm_batch_certificate_test.go | 12 ++++++++++++ 2 files changed, 17 insertions(+), 4 deletions(-) diff --git a/azurerm/resource_arm_batch_certificate.go b/azurerm/resource_arm_batch_certificate.go index 2f9fc5a003cc..0df50eccb86c 100644 --- a/azurerm/resource_arm_batch_certificate.go +++ b/azurerm/resource_arm_batch_certificate.go @@ -71,10 +71,11 @@ func resourceArmBatchCertificate() *schema.Resource { }, "thumbprint_algorithm": { - Type: schema.TypeString, - Required: true, - ForceNew: true, - ValidateFunc: validation.StringInSlice([]string{"SHA1"}, false), + Type: schema.TypeString, + Required: true, + ForceNew: true, + ValidateFunc: validation.StringInSlice([]string{"SHA1"}, false), + DiffSuppressFunc: suppress.CaseDifference, }, "public_data": { diff --git a/azurerm/resource_arm_batch_certificate_test.go b/azurerm/resource_arm_batch_certificate_test.go index 7b1354693180..aaabdaddb3c7 100644 --- a/azurerm/resource_arm_batch_certificate_test.go +++ b/azurerm/resource_arm_batch_certificate_test.go @@ -38,6 +38,12 @@ func TestAccAzureRMBatchCertificate_Pfx(t *testing.T) { resource.TestCheckResourceAttr(resourceName, "thumbprint_algorithm", "sha1"), ), }, + { + ResourceName: resourceName, + ImportState: true, + ImportStateVerify: true, + ImportStateVerifyIgnore: []string{"certificate"}, + }, }, }) } @@ -88,6 +94,12 @@ func TestAccAzureRMBatchCertificate_Cer(t *testing.T) { resource.TestCheckResourceAttr(resourceName, "thumbprint_algorithm", "sha1"), ), }, + { + ResourceName: resourceName, + ImportState: true, + ImportStateVerify: true, + ImportStateVerifyIgnore: []string{"certificate"}, + }, }, }) } From 53a909c1e2e3b6aea320a3c1c119f609522c1be7 Mon Sep 17 00:00:00 2001 From: kt Date: Sat, 3 Aug 2019 18:04:03 -0700 Subject: [PATCH 7/8] add missing batch client reg --- azurerm/config.go | 1 + 1 file changed, 1 insertion(+) diff --git a/azurerm/config.go b/azurerm/config.go index 4bfced4e7a79..e4231bd3d0bb 100644 --- a/azurerm/config.go +++ b/azurerm/config.go @@ -341,6 +341,7 @@ func getArmClient(c *authentication.Config, skipProviderRegistration bool, partn client.appInsights = applicationinsights.BuildClient(o) client.automation = automation.BuildClient(o) client.authorization = authorization.BuildClient(o) + client.batch = batch.BuildClient(o) client.cdn = cdn.BuildClient(o) client.cognitive = cognitive.BuildClient(o) client.containers = containers.BuildClient(o) From 98cd863a8ef879da252dd253657b441aedc70e50 Mon Sep 17 00:00:00 2001 From: kt Date: Sat, 3 Aug 2019 18:18:21 -0700 Subject: [PATCH 8/8] fix test checks --- azurerm/data_source_batch_certificate_test.go | 2 +- azurerm/resource_arm_batch_certificate_test.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/azurerm/data_source_batch_certificate_test.go b/azurerm/data_source_batch_certificate_test.go index 509054b7c7e2..904f1d3516e9 100644 --- a/azurerm/data_source_batch_certificate_test.go +++ b/azurerm/data_source_batch_certificate_test.go @@ -28,7 +28,7 @@ func TestAccDataSourceAzureRMBatchCertificate_basic(t *testing.T) { resource.TestCheckResourceAttr(dataSourceName, "format", "Pfx"), resource.TestCheckResourceAttr(dataSourceName, "public_data", "MIIFqzCCA5OgAwIBAgIJAMs4jwMPq7T1MA0GCSqGSIb3DQEBCwUAMGwxCzAJBgNVBAYTAlVTMRMwEQYDVQQIDApTb21lLVN0YXRlMRgwFgYDVQQKDA9UZXJyYWZvcm0gVGVzdHMxDjAMBgNVBAsMBUF6dXJlMR4wHAYDVQQDDBVUZXJyYWZvcm0gQXBwIEdhdGV3YXkwHhcNMTYxMTAxMTcxOTEyWhcNMjYxMDMwMTcxOTEyWjBsMQswCQYDVQQGEwJVUzETMBEGA1UECAwKU29tZS1TdGF0ZTEYMBYGA1UECgwPVGVycmFmb3JtIFRlc3RzMQ4wDAYDVQQLDAVBenVyZTEeMBwGA1UEAwwVVGVycmFmb3JtIEFwcCBHYXRld2F5MIICIjANBgkqhkiG9w0BAQEFAAOCAg8AMIICCgKCAgEA49HW2pYIlW/mlaadLA1AsXiV48xVhXAvGVk3DEl1ffjp5bN8rap5WV1D83uMg1Ii7CJM8yNHkRkvN8n5WXFng4R5V1jPxGOTAj+xLybvEASi++GZelWdpOuMk8/nAoKPMbQ5NyKFy5WzlOduMldR7Awt2pwdId3akqm1i9ITG9Js+4P4nYXM8vfJCajILqi4YfhEoCNvS1EUgvlpSFE7pfNhc2W+zsfUWxWmB2SpWwX9MgQ1D4OmdKp+Eo+b6vzst3XArKMHMadPTUAk8H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TyLTVlniFA7dGSI+5Uexm+Pjh7IMGI532jTONlfNm9Bz/jdf1o0FlOclzG6Eif22gml3GM3xCUVlaElylYNAjO2lfvZuRVo5GKdMwtV9acNl0OwSx+0zbMYY2Ni3jQCI4kOL5Csctryf0rHXTlCCvnzBYVDPKmFJPna61T"), resource.TestCheckResourceAttr(dataSourceName, "thumbprint", "42c107874fd0e4a9583292a2f1098e8fe4b2edda"), - resource.TestCheckResourceAttr(dataSourceName, "thumbprint_algorithm", "SHA1"), + resource.TestCheckResourceAttr(dataSourceName, "thumbprint_algorithm", "sha1"), // api now always returns this as lowercase ), }, }, diff --git a/azurerm/resource_arm_batch_certificate_test.go b/azurerm/resource_arm_batch_certificate_test.go index b99412e12806..daa42d594d40 100644 --- a/azurerm/resource_arm_batch_certificate_test.go +++ b/azurerm/resource_arm_batch_certificate_test.go @@ -42,7 +42,7 @@ func TestAccAzureRMBatchCertificate_Pfx(t *testing.T) { ResourceName: resourceName, ImportState: true, ImportStateVerify: true, - ImportStateVerifyIgnore: []string{"certificate"}, + ImportStateVerifyIgnore: []string{"certificate", "password"}, }, }, })