input
listlengths
2
2
ideal
stringclasses
4 values
[ { "role": "system", "content": "Choose the best Terraform patch (A/B/C/D) that implements the requested Azure Compute change safely. Only respond with a single uppercase letter." }, { "role": "user", "content": "Task Description:\nBumps [github.com/Azure/terraform-module-test-helper](https://github.com/Azure/terraform-module-test-helper) from 0.26.0 to 0.28.0.\n<details>\n<summary>Commits</summary>\n<ul>\n<li><a href=\"https://github.com/Azure/terraform-module-test-helper/commit/e01d9572b917db5d7352059ac8b8056e3600baeb\"><code>e01d957</code></a> Bump github.com/stretchr/testify from 1.9.0 to 1.10.0</li>\n<li><a href=\"https://github.com/Azure/terraform-module-test-helper/commit/73a91d233f0b20295395ff555666e6305644e1f1\"><code>73a91d2</code></a> Bump github.com/hashicorp/hcl/v2 from 2.22.0 to 2.23.0</li>\n<li><a href=\"https://github.com/Azure/terraform-module-test-helper/commit/4332e09092dbf20514bb8865517a6fb79568de46\"><code>4332e09</code></a> Bump golang.org/x/mod from 0.21.0 to 0.22.0</li>\n<li><a href=\"https://github.com/Azure/terraform-module-test-helper/commit/cd17fa944b662d4d22ab25fdc6e4bda877a9927b\"><code>cd17fa9</code></a> Bump golang.org/x/oauth2 from 0.23.0 to 0.24.0</li>\n<li><a href=\"https://github.com/Azure/terraform-module-test-helper/commit/f28c918b75d63bc6a8f2582566346494ed4106be\"><code>f28c918</code></a> Bump github.com/gruntwork-io/terratest from 0.47.1 to 0.47.2</li>\n<li><a href=\"https://github.com/Azure/terraform-module-test-helper/commit/63a1d517f4fc2647a2f40ffaf671a7d20ba0149f\"><code>63a1d51</code></a> Bump github.com/hashicorp/terraform-json from 0.22.1 to 0.23.0</li>\n<li>See full diff in <a href=\"https://github.com/Azure/terraform-module-test-helper/compare/v0.26.0...v0.28.0\">compare view</a></li>\n</ul>\n</details>\n<br />\n\n\n[![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=github.com/Azure/terraform-module-test-helper&package-manager=go_modules&previous-version=0.26.0&new-version=0.28.0)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)\n\nDependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`.\n\n[//]: # (dependabot-automerge-start)\n[//]: # (dependabot-automerge-end)\n\n---\n\n<details>\n<summary>Dependabot commands and options</summary>\n<br />\n\nYou can trigger Dependabot actions by commenting on this PR:\n- `@dependabot rebase` will rebase this PR\n- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it\n- `@dependabot merge` will merge this PR after your CI passes on it\n- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it\n- `@dependabot cancel merge` will cancel a previously requested merge and block automerging\n- `@dependabot reopen` will reopen this PR if it is closed\n- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually\n- `@dependabot show <dependency name> ignore conditions` will show all of the ignore conditions of the specified dependency\n- `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)\n- `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)\n- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)\n\n\n</details>\n\n---\n\nChoice A:\ntest/go.mod\n@@ -5,9 +5,9 @@ go 1.22.0\n toolchain go1.22.5\n \n require (\n-\tgithub.com/Azure/terraform-module-test-helper v0.26.0\n-\tgithub.com/gruntwork-io/terratest v0.47.1\n-\tgithub.com/stretchr/testify v1.9.0\n+\tgithub.com/Azure/terraform-module-test-helper v0.28.0\n+\tgithub.com/gruntwork-io/terratest v0.47.2\n+\tgithub.com/stretchr/testify v1.10.0\n )\n \n require (\n@@ -49,11 +49,11 @@ require (\n \tgithub.com/hashicorp/go-getter/v2 v2.2.3 // indirect\n \tgithub.com/hashicorp/go-multierror v1.1.1 // indirect\n \tgithub.com/hashicorp/go-safetemp v1.0.0 // indirect\n-\tgithub.com/hashicorp/go-version v1.6.0 // indirect\n+\tgithub.com/hashicorp/go-version v1.7.0 // indirect\n \tgithub.com/hashicorp/hcl v1.0.0 // indirect\n-\tgithub.com/hashicorp/hcl/v2 v2.22.0 // indirect\n+\tgithub.com/hashicorp/hcl/v2 v2.23.0 // indirect\n \tgithub.com/hashicorp/terraform-config-inspect v0.0.0-20211115214459-90acf1ca460f // indirect\n-\tgithub.com/hashicorp/terraform-json v0.22.1 // indirect\n+\tgithub.com/hashicorp/terraform-json v0.23.0 // indirect\n \tgithub.com/imdario/mergo v0.3.11 // indirect\n \tgithub.com/jinzhu/copier v0.0.0-20190924061706-b57f9002281a // indirect\n \tgithub.com/jmespath/go-jmespath v0.4.0 // indirect\n@@ -85,13 +85,13 @@ require (\n \tgithub.com/vmihailenco/msgpack/v5 v5.3.5 // indirect\n \tgithub.com/vmihailenco/tagparser/v2 v2.0.0 // indirect\n \tgithub.com/xrash/smetrics v0.0.0-20201216005158-039620a65673 // indirect\n-\tgithub.com/zclconf/go-cty v1.14.4 // indirect\n+\tgithub.com/zclconf/go-cty v1.15.0 // indirect\n \tgo.opencensus.io v0.24.0 // indirect\n \tgolang.org/x/crypto v0.21.0 // indirect\n \tgolang.org/x/exp v0.0.0-20221106115401-f9659909a136 // indirect\n-\tgolang.org/x/mod v0.21.0 // indirect\n+\tgolang.org/x/mod v0.22.0 // indirect\n \tgolang.org/x/net v0.23.0 // indirect\n-\tgolang.org/x/oauth2 v0.23.0 // indirect\n+\tgolang.org/x/oauth2 v0.24.0 // indirect\n \tgolang.org/x/sync v0.5.0 // indirect\n \tgolang.org/x/sys v0.18.0 // indirect\n \tgolang.org/x/term v0.18.0 // indirect\n---\n\n\n---\n\nChoice B:\ntest/go.mod\n@@ -5,9 +5,9 @@ go 1.22.0\n toolchain go1.22.5\n \n require (\n-\tgithub.com/Azure/terraform-module-test-helper v0.26.0\n-\tgithub.com/gruntwork-io/terratest v0.47.1\n-\tgithub.com/stretchr/testify v1.9.0\n+\tgithub.com/Azure/terraform-module-test-helper v0.28.0\n+\tgithub.com/gruntwork-io/terratest v0.47.2\n+\tgithub.com/stretchr/testify v1.10.0\n )\n \n require (\n@@ -49,11 +49,11 @@ require (\n \tgithub.com/hashicorp/go-getter/v2 v2.2.3 // indirect\n \tgithub.com/hashicorp/go-multierror v1.1.1 // indirect\n \tgithub.com/hashicorp/go-safetemp v1.0.0 // indirect\n-\tgithub.com/hashicorp/go-version v1.6.0 // indirect\n+\tgithub.com/hashicorp/go-version v1.7.0 // indirect\n \tgithub.com/hashicorp/hcl v1.0.0 // indirect\n-\tgithub.com/hashicorp/hcl/v2 v2.22.0 // indirect\n+\tgithub.com/hashicorp/hcl/v2 v2.23.0 // indirect\n \tgithub.com/hashicorp/terraform-config-inspect v0.0.0-20211115214459-90acf1ca460f // indirect\n-\tgithub.com/hashicorp/terraform-json v0.22.1 // indirect\n+\tgithub.com/hashicorp/terraform-json v0.23.0 // indirect\n \tgithub.com/imdario/mergo v0.3.11 // indirect\n \tgithub.com/jinzhu/copier v0.0.0-20190924061706-b57f9002281a // indirect\n \tgithub.com/jmespath/go-jmespath v0.4.0 // indirect\n@@ -85,13 +85,13 @@ require (\n \tgithub.com/vmihailenco/msgpack/v5 v5.3.5 // indirect\n \tgithub.com/vmihailenco/tagparser/v2 v2.0.0 // indirect\n \tgithub.com/xrash/smetrics v0.0.0-20201216005158-039620a65673 // indirect\n-\tgithub.com/zclconf/go-cty v1.14.4 // indirect\n+\tgithub.com/zclconf/go-cty v1.15.0 // indirect\n \tgo.opencensus.io v0.24.0 // indirect\n \tgolang.org/x/crypto v0.21.0 // indirect\n \tgolang.org/x/exp v0.0.0-20221106115401-f9659909a136 // indirect\n-\tgolang.org/x/mod v0.21.0 // indirect\n+\tgolang.org/x/mod v0.22.0 // indirect\n \tgolang.org/x/net v0.23.0 // indirect\n-\tgolang.org/x/oauth2 v0.23.0 // indirect\n+\tgolang.org/x/oauth2 v0.24.0 // indirect\n \tgolang.org/x/sync v0.5.0 // indirect\n \tgolang.org/x/sys v0.18.0 // indirect\n \tgolang.org/x/term v0.18.0 // indirect\n---\n\n\n---\n\nChoice C:\ntest/go.mod\n@@ -5,9 +5,9 @@ go 1.22.0\n toolchain go1.22.5\n \n require (\n-\tgithub.com/Azure/terraform-module-test-helper v0.26.0\n-\tgithub.com/gruntwork-io/terratest v0.47.1\n-\tgithub.com/stretchr/testify v1.9.0\n+\tgithub.com/Azure/terraform-module-test-helper v0.28.0\n+\tgithub.com/gruntwork-io/terratest v0.47.2\n+\tgithub.com/stretchr/testify v1.10.0\n )\n \n require (\n@@ -49,11 +49,11 @@ require (\n \tgithub.com/hashicorp/go-getter/v2 v2.2.3 // indirect\n \tgithub.com/hashicorp/go-multierror v1.1.1 // indirect\n \tgithub.com/hashicorp/go-safetemp v1.0.0 // indirect\n-\tgithub.com/hashicorp/go-version v1.6.0 // indirect\n+\tgithub.com/hashicorp/go-version v1.7.0 // indirect\n \tgithub.com/hashicorp/hcl v1.0.0 // indirect\n-\tgithub.com/hashicorp/hcl/v2 v2.22.0 // indirect\n+\tgithub.com/hashicorp/hcl/v2 v2.23.0 // indirect\n \tgithub.com/hashicorp/terraform-config-inspect v0.0.0-20211115214459-90acf1ca460f // indirect\n-\tgithub.com/hashicorp/terraform-json v0.22.1 // indirect\n+\tgithub.com/hashicorp/terraform-json v0.23.0 // indirect\n \tgithub.com/imdario/mergo v0.3.11 // indirect\n \tgithub.com/jinzhu/copier v0.0.0-20190924061706-b57f9002281a // indirect\n \tgithub.com/jmespath/go-jmespath v0.4.0 // indirect\n@@ -85,13 +85,13 @@ v0.24.0 (\n \tgithub.com/vmihailenco/msgpack/v5 v5.3.5 // indirect\n \tgithub.com/vmihailenco/tagparser/v2 v2.0.0 // indirect\n \tgithub.com/xrash/smetrics v0.0.0-20201216005158-039620a65673 // indirect\n-\tgithub.com/zclconf/go-cty v1.14.4 // indirect\n+\tgithub.com/zclconf/go-cty v1.15.0 // indirect\n \tgo.opencensus.io v0.24.0 // indirect\n \tgolang.org/x/crypto v0.21.0 // indirect\n \tgolang.org/x/exp v0.0.0-20221106115401-f9659909a136 // indirect\n-\tgolang.org/x/mod v0.21.0 // indirect\n+\tgolang.org/x/mod v0.22.0 // indirect\n \tgolang.org/x/net v0.23.0 // indirect\n-\tgolang.org/x/oauth2 v0.23.0 // indirect\n+\tgolang.org/x/oauth2 v0.24.0 // indirect\n \tgolang.org/x/sync v0.5.0 // indirect\n \tgolang.org/x/sys v0.18.0 // indirect\n \tgolang.org/x/term v0.18.0 // indirect\n---\n\n\n---\n\nChoice D:\ntest/go.mod\n@@ -5,9 +5,9 @@ go 1.22.0\n toolchain go1.22.5\n \n require (\n-\tgithub.com/Azure/terraform-module-test-helper v0.26.0\n-\tgithub.com/gruntwork-io/terratest v0.47.1\n-\tgithub.com/stretchr/testify v1.9.0\n+\tgithub.com/Azure/terraform-module-test-helper v0.28.0\n+\tgithub.com/gruntwork-io/terratest v0.47.2\n+\tgithub.com/stretchr/testify v1.10.0\n // \n require (\n@@ -49,11 +49,11 @@ require (\n \tgithub.com/hashicorp/go-getter/v2 v2.2.3 // indirect\n \tgithub.com/hashicorp/go-multierror v1.1.1 // indirect\n \tgithub.com/hashicorp/go-safetemp v1.0.0 // indirect\n-\tgithub.com/hashicorp/go-version v1.6.0 // indirect\n+\tgithub.com/hashicorp/go-version v1.7.0 // indirect\n \tgithub.com/hashicorp/hcl v1.0.0 // indirect\n-\tgithub.com/hashicorp/hcl/v2 v2.22.0 // indirect\n+\tgithub.com/hashicorp/hcl/v2 v2.23.0 // indirect\n \tgithub.com/hashicorp/terraform-config-inspect v0.0.0-20211115214459-90acf1ca460f // indirect\n-\tgithub.com/hashicorp/terraform-json v0.22.1 // indirect\n+\tgithub.com/hashicorp/terraform-json v0.23.0 // indirect\n \tgithub.com/imdario/mergo v0.3.11 // indirect\n \tgithub.com/jinzhu/copier v0.0.0-20190924061706-b57f9002281a // indirect\n \tgithub.com/jmespath/go-jmespath v0.4.0 // indirect\n@@ -85,13 +85,13 @@ require (\n \tgithub.com/vmihailenco/msgpack/v5 v5.3.5 // indirect\n \tgithub.com/vmihailenco/tagparser/v2 v2.0.0 // indirect\n \tgithub.com/xrash/smetrics v0.0.0-20201216005158-039620a65673 // indirect\n-\tgithub.com/zclconf/go-cty v1.14.4 // indirect\n+\tgithub.com/zclconf/go-cty v1.15.0 // indirect\n \tgo.opencensus.io v0.24.0 // indirect\n \tgolang.org/x/crypto v0.21.0 // indirect\n \tgolang.org/x/exp v0.0.0-20221106115401-f9659909a136 // indirect\n-\tgolang.org/x/mod v0.21.0 // indirect\n+\tgolang.org/x/mod v0.22.0 // indirect\n \tgolang.org/x/net v0.23.0 // indirect\n-\tgolang.org/x/oauth2 v0.23.0 // indirect\n+\tgolang.org/x/oauth2 v0.24.0 // indirect\n \tgolang.org/x/sync v0.5.0 // indirect\n \tgolang.org/x/sys v0.18.0 // indirect\n \tgolang.org/x/term v0.18.0 // indirect\n---\n\n\n---\n" } ]
A
[ { "role": "system", "content": "Choose the best Terraform patch (A/B/C/D) that implements the requested Azure Compute change safely. Only respond with a single uppercase letter." }, { "role": "user", "content": "Task Description:\nBumps [github.com/Azure/terraform-module-test-helper](https://github.com/Azure/terraform-module-test-helper) from 0.26.0 to 0.27.0.\n<details>\n<summary>Commits</summary>\n<ul>\n<li><a href=\"https://github.com/Azure/terraform-module-test-helper/commit/f28c918b75d63bc6a8f2582566346494ed4106be\"><code>f28c918</code></a> Bump github.com/gruntwork-io/terratest from 0.47.1 to 0.47.2</li>\n<li><a href=\"https://github.com/Azure/terraform-module-test-helper/commit/63a1d517f4fc2647a2f40ffaf671a7d20ba0149f\"><code>63a1d51</code></a> Bump github.com/hashicorp/terraform-json from 0.22.1 to 0.23.0</li>\n<li>See full diff in <a href=\"https://github.com/Azure/terraform-module-test-helper/compare/v0.26.0...v0.27.0\">compare view</a></li>\n</ul>\n</details>\n<br />\n\n\n[![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=github.com/Azure/terraform-module-test-helper&package-manager=go_modules&previous-version=0.26.0&new-version=0.27.0)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)\n\nDependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`.\n\n[//]: # (dependabot-automerge-start)\n[//]: # (dependabot-automerge-end)\n\n---\n\n<details>\n<summary>Dependabot commands and options</summary>\n<br />\n\nYou can trigger Dependabot actions by commenting on this PR:\n- `@dependabot rebase` will rebase this PR\n- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it\n- `@dependabot merge` will merge this PR after your CI passes on it\n- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it\n- `@dependabot cancel merge` will cancel a previously requested merge and block automerging\n- `@dependabot reopen` will reopen this PR if it is closed\n- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually\n- `@dependabot show <dependency name> ignore conditions` will show all of the ignore conditions of the specified dependency\n- `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)\n- `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)\n- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)\n\n\n</details>\n\n---\n\nChoice A:\ntest/go.mod\n@@ -5,8 +5,8 @@ go 1.22.0\n toolchain go1.22.5\n \n require (\n-\tgithub.com/Azure/terraform-module-test-helper v0.26.0\n-\tgithub.com/gruntwork-io/terratest v0.47.1\n+\tgithub.com/Azure/terraform-module-test-helper v0.27.0\n+\tgithub.com/gruntwork-io/terratest v0.47.2\n \tgithub.com/stretchr/testify v1.9.0\n require \n@@ -49,11 +49,11 @@ require (\n \tgithub.com/hashicorp/go-getter/v2 v2.2.3 // indirect\n \tgithub.com/hashicorp/go-multierror v1.1.1 // indirect\n \tgithub.com/hashicorp/go-safetemp v1.0.0 // indirect\n-\tgithub.com/hashicorp/go-version v1.6.0 // indirect\n+\tgithub.com/hashicorp/go-version v1.7.0 // indirect\n \tgithub.com/hashicorp/hcl v1.0.0 // indirect\n \tgithub.com/hashicorp/hcl/v2 v2.22.0 // indirect\n \tgithub.com/hashicorp/terraform-config-inspect v0.0.0-20211115214459-90acf1ca460f // indirect\n-\tgithub.com/hashicorp/terraform-json v0.22.1 // indirect\n+\tgithub.com/hashicorp/terraform-json v0.23.0 // indirect\n \tgithub.com/imdario/mergo v0.3.11 // indirect\n \tgithub.com/jinzhu/copier v0.0.0-20190924061706-b57f9002281a // indirect\n \tgithub.com/jmespath/go-jmespath v0.4.0 // indirect\n@@ -85,7 +85,7 @@ require (\n \tgithub.com/vmihailenco/msgpack/v5 v5.3.5 // indirect\n \tgithub.com/vmihailenco/tagparser/v2 v2.0.0 // indirect\n \tgithub.com/xrash/smetrics v0.0.0-20201216005158-039620a65673 // indirect\n-\tgithub.com/zclconf/go-cty v1.14.4 // indirect\n+\tgithub.com/zclconf/go-cty v1.15.0 // indirect\n \tgo.opencensus.io v0.24.0 // indirect\n \tgolang.org/x/crypto v0.21.0 // indirect\n \tgolang.org/x/exp v0.0.0-20221106115401-f9659909a136 // indirect\n---\n\n\n---\n\nChoice B:\ntest/go.mod\n@@ -5,8 +5,8 @@ go 1.22.0\n toolchain go1.22.5\n \n require (\n-\tgithub.com/Azure/terraform-module-test-helper v0.26.0\n-\tgithub.com/gruntwork-io/terratest v0.47.1\n+\tgithub.com/Azure/terraform-module-test-helper v0.27.0\n+\tgithub.com/gruntwork-io/terratest v0.47.2\n \tgithub.com/stretchr/testify v1.9.0\n )\n \n@@ -49,11 +49,11 @@ require (\n \tgithub.com/hashicorp/go-getter/v2 v2.2.3 // indirect\n \tgithub.com/hashicorp/go-multierror v1.1.1 // indirect\n \tgithub.com/hashicorp/go-safetemp v1.0.0 // indirect\n-\tgithub.com/hashicorp/go-version v1.6.0 // indirect\n+\tgithub.com/hashicorp/go-version v1.7.0 // indirect\n \tgithub.com/hashicorp/hcl v1.0.0 // indirect\n \tgithub.com/hashicorp/hcl/v2 v2.22.0 // indirect\n \tgithub.com/hashicorp/terraform-config-inspect v0.0.0-20211115214459-90acf1ca460f // indirect\n-\tgithub.com/hashicorp/terraform-json v0.22.1 // indirect\n+\tgithub.com/hashicorp/terraform-json +5,8 // indirect\n \tgithub.com/imdario/mergo v0.3.11 // indirect\n \tgithub.com/jinzhu/copier v0.0.0-20190924061706-b57f9002281a // indirect\n \tgithub.com/jmespath/go-jmespath v0.4.0 // indirect\n@@ -85,7 +85,7 @@ require (\n \tgithub.com/vmihailenco/msgpack/v5 v5.3.5 // indirect\n \tgithub.com/vmihailenco/tagparser/v2 v2.0.0 // indirect\n \tgithub.com/xrash/smetrics v0.0.0-20201216005158-039620a65673 // indirect\n-\tgithub.com/zclconf/go-cty v1.14.4 // indirect\n+\tgithub.com/zclconf/go-cty v1.15.0 // indirect\n \tgo.opencensus.io v0.24.0 // indirect\n \tgolang.org/x/crypto v0.21.0 // indirect\n \tgolang.org/x/exp v0.0.0-20221106115401-f9659909a136 // indirect\n---\n\n\n---\n\nChoice C:\ntest/go.mod\n@@ -5,8 +5,8 @@ go 1.22.0\n toolchain go1.22.5\n \n require (\n-\tgithub.com/Azure/terraform-module-test-helper v0.26.0\n-\tgithub.com/gruntwork-io/terratest v0.47.1\n+\tgithub.com/Azure/terraform-module-test-helper v0.27.0\n+\tgithub.com/gruntwork-io/terratest v0.47.2\n \tgithub.com/stretchr/testify v1.9.0\n )\n \n@@ -49,11 +49,11 @@ require (\n \tgithub.com/hashicorp/go-getter/v2 v2.2.3 // indirect\n \tgithub.com/hashicorp/go-multierror v1.1.1 // indirect\n \tgithub.com/hashicorp/go-safetemp v1.0.0 // indirect\n-\tgithub.com/hashicorp/go-version v1.6.0 // indirect\n+\tgithub.com/hashicorp/go-version v1.7.0 // indirect\n \tgithub.com/hashicorp/hcl v1.0.0 // indirect\n \tgithub.com/hashicorp/hcl/v2 v2.22.0 // indirect\n \tgithub.com/hashicorp/terraform-config-inspect v0.0.0-20211115214459-90acf1ca460f // indirect\n-\tgithub.com/hashicorp/terraform-json v0.22.1 // indirect\n+\tgithub.com/hashicorp/terraform-json v0.23.0 // indirect\n \tgithub.com/imdario/mergo v0.3.11 // indirect\n \tgithub.com/jinzhu/copier v0.0.0-20190924061706-b57f9002281a // indirect\n \tgithub.com/jmespath/go-jmespath v0.4.0 // indirect\n@@ -85,7 +85,7 @@ require (\n \tgithub.com/vmihailenco/msgpack/v5 v5.3.5 // indirect\n \tgithub.com/vmihailenco/tagparser/v2 v2.0.0 // indirect\n \tgithub.com/xrash/smetrics v0.0.0-20201216005158-039620a65673 // indirect\n-\tgithub.com/zclconf/go-cty v1.14.4 // indirect\n+\tgithub.com/zclconf/go-cty v1.15.0 // indirect\n \tgo.opencensus.io v0.24.0 // indirect\n \tgolang.org/x/crypto v0.21.0 // indirect\n \tgolang.org/x/exp v0.0.0-20221106115401-f9659909a136 // indirect\n---\n\n\n---\n\nChoice D:\ntest/go.mod\n@@ -5,8 +5,8 @@ go 1.22.0\n toolchain go1.22.5\n \n require (\n-\tgithub.com/Azure/terraform-module-test-helper v0.26.0\n-\tgithub.com/gruntwork-io/terratest v0.47.1\n+\tgithub.com/Azure/terraform-module-test-helper v0.27.0\n+\tgithub.com/gruntwork-io/terratest v0.47.2\n \tgithub.com/stretchr/testify v1.9.0\n )\n \n@@ -49,11 +49,11 @@ indirect\n---\n (\n \tgithub.com/hashicorp/go-getter/v2 v2.2.3 // indirect\n \tgithub.com/hashicorp/go-multierror v1.1.1 // indirect\n \tgithub.com/hashicorp/go-safetemp v1.0.0 // indirect\n-\tgithub.com/hashicorp/go-version v1.6.0 // indirect\n+\tgithub.com/hashicorp/go-version v1.7.0 // indirect\n \tgithub.com/hashicorp/hcl v1.0.0 // indirect\n \tgithub.com/hashicorp/hcl/v2 v2.22.0 // indirect\n \tgithub.com/hashicorp/terraform-config-inspect v0.0.0-20211115214459-90acf1ca460f // indirect\n-\tgithub.com/hashicorp/terraform-json v0.22.1 // indirect\n+\tgithub.com/hashicorp/terraform-json v0.23.0 // indirect\n \tgithub.com/imdario/mergo v0.3.11 // indirect\n \tgithub.com/jinzhu/copier v0.0.0-20190924061706-b57f9002281a // indirect\n \tgithub.com/jmespath/go-jmespath v0.4.0 // indirect\n@@ -85,7 +85,7 @@ require (\n \tgithub.com/vmihailenco/msgpack/v5 v5.3.5 // indirect\n \tgithub.com/vmihailenco/tagparser/v2 v2.0.0 // indirect\n \tgithub.com/xrash/smetrics v0.0.0-20201216005158-039620a65673 // indirect\n-\tgithub.com/zclconf/go-cty v1.14.4 // indirect\n+\tgithub.com/zclconf/go-cty v1.15.0 // indirect\n \tgo.opencensus.io v0.24.0 // indirect\n \tgolang.org/x/crypto v0.21.0 // indirect\n \tgolang.org/x/exp v0.0.0-20221106115401-f9659909a136 // indirect\n---\n\n\n---\n" } ]
C
[ { "role": "system", "content": "Choose the best Terraform patch (A/B/C/D) that implements the requested Azure Compute change safely. Only respond with a single uppercase letter." }, { "role": "user", "content": "Task Description:\nBumps [github.com/gruntwork-io/terratest](https://github.com/gruntwork-io/terratest) from 0.47.1 to 0.47.2.\n<details>\n<summary>Release notes</summary>\n<p><em>Sourced from <a href=\"https://github.com/gruntwork-io/terratest/releases\">github.com/gruntwork-io/terratest's releases</a>.</em></p>\n<blockquote>\n<h2>v0.47.2</h2>\n<h2>Modules affected</h2>\n<ul>\n<li><code>ssh</code></li>\n<li><code>terraform</code></li>\n</ul>\n<h2>Description</h2>\n<ul>\n<li>Updated logging line in ssh module</li>\n<li>Refined terraform output by removing unnecessary info lines</li>\n<li>Update rexml dependency</li>\n</ul>\n<h2>Related links</h2>\n<ul>\n<li><a href=\"https://redirect.github.com/gruntwork-io/terratest/pull/1440\">gruntwork-io/terratest#1440</a></li>\n<li><a href=\"https://redirect.github.com/gruntwork-io/terratest/pull/1437\">gruntwork-io/terratest#1437</a></li>\n<li><a href=\"https://redirect.github.com/gruntwork-io/terratest/pull/1445\">gruntwork-io/terratest#1445</a></li>\n</ul>\n<p><strong>Full Changelog</strong>: <a href=\"https://github.com/gruntwork-io/terratest/compare/v0.47.1...v0.47.2\">https://github.com/gruntwork-io/terratest/compare/v0.47.1...v0.47.2</a></p>\n</blockquote>\n</details>\n<details>\n<summary>Commits</summary>\n<ul>\n<li><a href=\"https://github.com/gruntwork-io/terratest/commit/cf3836068a35149b4eb33da5acaa0b2dfa9ee5b5\"><code>cf38360</code></a> Merge pull request <a href=\"https://redirect.github.com/gruntwork-io/terratest/issues/1445\">#1445</a> from gruntwork-io/fix/json-output-error</li>\n<li><a href=\"https://github.com/gruntwork-io/terratest/commit/bb1a781a48f94acf24c9451523e14b08cab0963a\"><code>bb1a781</code></a> fix: cleaning the output received from terragrunt - remove info line</li>\n<li><a href=\"https://github.com/gruntwork-io/terratest/commit/fc19428cae994b80c6b44ef3321271c1901edaf0\"><code>fc19428</code></a> Merge pull request <a href=\"https://redirect.github.com/gruntwork-io/terratest/issues/1437\">#1437</a> from gruntwork-io/dependabot/bundler/docs/rexml-3.3.6</li>\n<li><a href=\"https://github.com/gruntwork-io/terratest/commit/5069b5e252a198e3ab2c443038a62d8533c97599\"><code>5069b5e</code></a> Merge pull request <a href=\"https://redirect.github.com/gruntwork-io/terratest/issues/1440\">#1440</a> from gruntwork-io/fix/ssh-logs</li>\n<li><a href=\"https://github.com/gruntwork-io/terratest/commit/e01ef3d7f3566e5d1c5730d4634cf159d0febb02\"><code>e01ef3d</code></a> fix: move the logging line</li>\n<li><a href=\"https://github.com/gruntwork-io/terratest/commit/b83ccf40c3a5d5f9a5e93cc08dd0c6eb025cccc7\"><code>b83ccf4</code></a> Bump rexml from 3.3.3 to 3.3.6 in /docs</li>\n<li>See full diff in <a href=\"https://github.com/gruntwork-io/terratest/compare/v0.47.1...v0.47.2\">compare view</a></li>\n</ul>\n</details>\n<br />\n\n\n[![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=github.com/gruntwork-io/terratest&package-manager=go_modules&previous-version=0.47.1&new-version=0.47.2)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)\n\nDependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`.\n\n[//]: # (dependabot-automerge-start)\n[//]: # (dependabot-automerge-end)\n\n---\n\n<details>\n<summary>Dependabot commands and options</summary>\n<br />\n\nYou can trigger Dependabot actions by commenting on this PR:\n- `@dependabot rebase` will rebase this PR\n- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it\n- `@dependabot merge` will merge this PR after your CI passes on it\n- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it\n- `@dependabot cancel merge` will cancel a previously requested merge and block automerging\n- `@dependabot reopen` will reopen this PR if it is closed\n- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually\n- `@dependabot show <dependency name> ignore conditions` will show all of the ignore conditions of the specified dependency\n- `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)\n- `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)\n- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)\n\n\n</details>\n\n---\n\nChoice A:\ntest/go.mod\n@@ -6,7 +6,7 @@ toolchain go1.22.5\n \n---\n require (\n \tgithub.com/Azure/terraform-module-test-helper v0.26.0\n-\tgithub.com/gruntwork-io/terratest v0.47.1\n+\tgithub.com/gruntwork-io/terratest v0.47.2\n \tgithub.com/stretchr/testify v1.9.0\n )\n \n---\n\n\n---\n\nChoice B:\ntest/go.mod\n@@ -6,7 +6,7 @@ toolchain go1.22.5\n \n require (\n \tgithub.com/Azure/terraform-module-test-helper v0.26.0\n-\tgithub.com/gruntwork-io/terratest v0.47.1\n+\tgithub.com/gruntwork-io/terratest v0.47.2\n \tgithub.com/stretchr/testify v1.9.0\n )\n \n---\n\n\n---\n\nChoice C:\ngo1.22.5\n -6,7 +6,7 @@ toolchain go1.22.5\n \n require (\n \tgithub.com/Azure/terraform-module-test-helper v0.26.0\n-\tgithub.com/gruntwork-io/terratest v0.47.1\n+\tgithub.com/gruntwork-io/terratest v0.47.2\n \tgithub.com/stretchr/testify v1.9.0\n )\n \n---\n\n\n---\n\nChoice D:\ntest/go.mod\n@@ @@ +6,7 @@ toolchain go1.22.5\n \n require (\n \tgithub.com/Azure/terraform-module-test-helper v0.26.0\n-\tgithub.com/gruntwork-io/terratest v0.47.1\n+\tgithub.com/gruntwork-io/terratest v0.47.2\n \tgithub.com/stretchr/testify v1.9.0\n )\n \n---\n\n\n---\n" } ]
B
[ { "role": "system", "content": "Choose the best Terraform patch (A/B/C/D) that implements the requested Azure Compute change safely. Only respond with a single uppercase letter." }, { "role": "user", "content": "Task Description:\nBumps [github.com/Azure/terraform-module-test-helper](https://github.com/Azure/terraform-module-test-helper) from 0.16.0 to 0.26.0.\r\n- [Commits](https://github.com/Azure/terraform-module-test-helper/compare/v0.16.0...v0.26.0)\r\n\r\n---\r\nupdated-dependencies:\r\n- dependency-name: github.com/Azure/terraform-module-test-helper dependency-type: direct:production update-type: version-update:semver-minor ...\r\n\r\n## Describe your changes\r\n\r\n## Issue number\r\n\r\n#000\r\n\r\n## Checklist before requesting a review\r\n- [ ] The pr title can be used to describe what this pr did in `CHANGELOG.md` file\r\n- [ ] I have executed pre-commit on my machine\r\n- [ ] I have passed pr-check on my machine\r\n\r\nThanks for your cooperation!\r\n\r\n\n\n---\n\nChoice A:\ntest/go.mod\n@@ -3,56 +3,55 @@ module github.com/Azure/terraform-azurerm-compute\n go 1.19\n \n require (\n-\tgithub.com/Azure/terraform-module-test-helper v0.16.0\n-\tgithub.com/gruntwork-io/terratest v0.43.9\n-\tgithub.com/stretchr/testify v1.8.4\n+\tgithub.com/Azure/terraform-module-test-helper v0.26.0\n+\tgithub.com/gruntwork-io/terratest v0.47.1\n+\tgithub.com/stretchr/testify v1.9.0\n )\n \n require (\n-\tcloud.google.com/go v0.110.2 // indirect\n-\tcloud.google.com/go/compute v1.20.1 // indirect\n-\tcloud.google.com/go/compute/metadata v0.2.3 // indirect\n-\tcloud.google.com/go/iam v0.13.0 // indirect\n-\tcloud.google.com/go/storage v1.29.0 // indirect\n+\tcloud.google.com/go v0.110.10 // // v0.3.0 // indirect\n+\tcloud.google.com/go/iam v1.1.5 // indirect\n+\tcloud.google.com/go/storage v1.35.1 // indirect\n \tgithub.com/agext/levenshtein v1.2.3 // indirect\n \tgithub.com/ahmetb/go-linq/v3 v3.2.0 // indirect\n-\tgithub.com/apparentlymart/go-textseg/v13 v13.0.0 // indirect\n-\tgithub.com/aws/aws-sdk-go v1.44.122 // indirect\n+\tgithub.com/apparentlymart/go-textseg/v15 v15.0.0 // indirect\n+\tgithub.com/aws/aws-sdk-go v1.46.7 // indirect\n \tgithub.com/bgentry/go-netrc v0.0.0-20140422174119-9fd32a8b3d3d // indirect\n \tgithub.com/boombuler/barcode v1.0.1-0.20190219062509-6c824513bacc // indirect\n \tgithub.com/cpuguy83/go-md2man/v2 v2.0.2 // indirect\n \tgithub.com/davecgh/go-spew v1.1.1 // indirect\n \tgithub.com/emicklei/go-restful/v3 v3.9.0 // indirect\n-\tgithub.com/go-errors/errors v1.4.2 // indirect\n-\tgithub.com/go-logr/logr v1.2.3 // indirect\n+\tgithub.com/go-errors/errors v1.5.1 // indirect\n+\tgithub.com/go-logr/logr v1.2.4 // indirect\n \tgithub.com/go-openapi/jsonpointer v0.19.6 // indirect\n-\tgithub.com/go-openapi/jsonreference v0.20.1 // indirect\n+\tgithub.com/go-openapi/jsonreference v0.20.2 // indirect\n \tgithub.com/go-openapi/swag v0.22.3 // indirect\n \tgithub.com/go-sql-driver/mysql v1.4.1 // indirect\n \tgithub.com/gogo/protobuf v1.3.2 // indirect\n \tgithub.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da // indirect\n \tgithub.com/golang/protobuf v1.5.3 // indirect\n-\tgithub.com/google/gnostic v0.5.7-v3refs // indirect\n-\tgithub.com/google/go-cmp v0.5.9 // indirect\n+\tgithub.com/google/gnostic-models v0.6.8 // indirect\n+\tgithub.com/google/go-cmp v0.6.0 // indirect\n \tgithub.com/google/go-github/v42 v42.0.0 // indirect\n \tgithub.com/google/go-querystring v1.1.0 // indirect\n-\tgithub.com/google/gofuzz v1.1.0 // indirect\n-\tgithub.com/google/s2a-go v0.1.4 // indirect\n-\tgithub.com/google/uuid v1.3.0 // indirect\n-\tgithub.com/googleapis/enterprise-certificate-proxy v0.2.3 // indirect\n-\tgithub.com/googleapis/gax-go/v2 v2.11.0 // indirect\n-\tgithub.com/gruntwork-io/go-commons v0.17.0 // indirect\n+\tgithub.com/google/gofuzz v1.2.0 // indirect\n+\tgithub.com/google/s2a-go v0.1.7 // indirect\n+\tgithub.com/google/uuid v1.4.0 // indirect\n+\tgithub.com/googleapis/enterprise-certificate-proxy v0.3.2 // indirect\n+\tgithub.com/googleapis/gax-go/v2 v2.12.0 // indirect\n+\tgithub.com/gruntwork-io/go-commons v0.17.2 // indirect\n \tgithub.com/hashicorp/errwrap v1.0.0 // indirect\n \tgithub.com/hashicorp/go-cleanhttp v0.5.2 // indirect\n-\tgithub.com/hashicorp/go-getter v1.7.1 // indirect\n-\tgithub.com/hashicorp/go-getter/v2 v2.2.1 // indirect\n+\tgithub.com/hashicorp/go-getter v1.7.6 // indirect\n+\tgithub.com/hashicorp/go-getter/v2 v2.2.3 // indirect\n \tgithub.com/hashicorp/go-multierror v1.1.1 // indirect\n \tgithub.com/hashicorp/go-safetemp v1.0.0 // indirect\n \tgithub.com/hashicorp/go-version v1.6.0 // indirect\n \tgithub.com/hashicorp/hcl v1.0.0 // indirect\n-\tgithub.com/hashicorp/hcl/v2 v2.17.0 // indirect\n+\tgithub.com/hashicorp/hcl/v2 v2.22.0 // indirect\n \tgithub.com/hashicorp/terraform-config-inspect v0.0.0-20211115214459-90acf1ca460f // indirect\n-\tgithub.com/hashicorp/terraform-json v0.17.1 // indirect\n+\tgithub.com/hashicorp/terraform-json v0.22.1 // indirect\n \tgithub.com/imdario/mergo v0.3.11 // indirect\n \tgithub.com/jinzhu/copier v0.0.0-20190924061706-b57f9002281a // indirect\n \tgithub.com/jmespath/go-jmespath v0.4.0 // indirect\n@@ -75,43 +74,45 @@ require (\n \tgithub.com/pquerna/otp v1.2.0 // indirect\n \tgithub.com/r3labs/diff/v3 v3.0.1 // indirect\n \tgithub.com/russross/blackfriday/v2 v2.1.0 // indirect\n-\tgithub.com/spf13/afero v1.9.5 // indirect\n+\tgithub.com/spf13/afero v1.11.0 // indirect\n \tgithub.com/spf13/pflag v1.0.5 // indirect\n \tgithub.com/thanhpk/randstr v1.0.6 // indirect\n \tgithub.com/tmccombs/hcl2json v0.3.3 // indirect\n-\tgithub.com/ulikunitz/xz v0.5.10 // indirect\n+\tgithub.com/ulikunitz/xz v0.5.11 // indirect\n \tgithub.com/urfave/cli/v2 v2.10.3 // indirect\n \tgithub.com/vmihailenco/msgpack/v5 v5.3.5 // indirect\n \tgithub.com/vmihailenco/tagparser/v2 v2.0.0 // indirect\n \tgithub.com/xrash/smetrics v0.0.0-20201216005158-039620a65673 // indirect\n-\tgithub.com/zclconf/go-cty v1.13.2 // indirect\n+\tgithub.com/zclconf/go-cty v1.14.4 // indirect\n \tgo.opencensus.io v0.24.0 // indirect\n-\tgolang.org/x/crypto v0.11.0 // indirect\n+\tgolang.org/x/crypto v0.21.0 // indirect\n \tgolang.org/x/exp v0.0.0-20221106115401-f9659909a136 // indirect\n-\tgolang.org/x/mod v0.12.0 // indirect\n-\tgolang.org/x/net v0.12.0 // indirect\n-\tgolang.org/x/oauth2 v0.10.0 // indirect\n-\tgolang.org/x/sys v0.10.0 // indirect\n-\tgolang.org/x/term v0.10.0 // indirect\n-\tgolang.org/x/text v0.11.0 // indirect\n-\tgolang.org/x/time v0.0.0-20220210224613-90d013bbcef8 // indirect\n+\tgolang.org/x/mod v0.21.0 // indirect\n+\tgolang.org/x/net v0.23.0 // indirect\n+\tgolang.org/x/oauth2 v0.23.0 // indirect\n+\tgolang.org/x/sync v0.5.0 // indirect\n+\tgolang.org/x/sys v0.18.0 // indirect\n+\tgolang.org/x/term v0.18.0 // indirect\n+\tgolang.org/x/text v0.14.0 // indirect\n+\tgolang.org/x/time v0.5.0 // indirect\n+\tgolang.org/x/tools v0.13.0 // indirect\n \tgolang.org/x/xerrors v0.0.0-20220907171357-04be3eba64a2 // indirect\n-\tgoogle.golang.org/api v0.126.0 // indirect\n+\tgoogle.golang.org/api v0.152.0 // indirect\n \tgoogle.golang.org/appengine v1.6.7 // indirect\n-\tgoogle.golang.org/genproto v0.0.0-20230530153820-e85fd2cbaebc // indirect\n-\tgoogle.golang.org/genproto/googleapis/api v0.0.0-20230530153820-e85fd2cbaebc // indirect\n-\tgoogle.golang.org/genproto/googleapis/rpc v0.0.0-20230530153820-e85fd2cbaebc // indirect\n-\tgoogle.golang.org/grpc v1.55.0 // indirect\n-\tgoogle.golang.org/protobuf v1.31.0 // indirect\n+\tgoogle.golang.org/genproto v0.0.0-20231106174013-bbf56f31fb17 // indirect\n+\tgoogle.golang.org/genproto/googleapis/api v0.0.0-20231106174013-bbf56f31fb17 // indirect\n+\tgoogle.golang.org/genproto/googleapis/rpc v0.0.0-20231120223509-83a465c0220f // indirect\n+\tgoogle.golang.org/grpc v1.59.0 // indirect\n+\tgoogle.golang.org/protobuf v1.33.0 // indirect\n \tgopkg.in/inf.v0 v0.9.1 // indirect\n \tgopkg.in/yaml.v2 v2.4.0 // indirect\n \tgopkg.in/yaml.v3 v3.0.1 // indirect\n-\tk8s.io/api v0.27.2 // indirect\n-\tk8s.io/apimachinery v0.27.2 // indirect\n-\tk8s.io/client-go v0.27.2 // indirect\n-\tk8s.io/klog/v2 v2.90.1 // indirect\n-\tk8s.io/kube-openapi v0.0.0-20230501164219-8b0f38b5fd1f // indirect\n-\tk8s.io/utils v0.0.0-20230209194617-a36077c30491 // indirect\n+\tk8s.io/api v0.28.4 // indirect\n+\tk8s.io/apimachinery v0.28.4 // indirect\n+\tk8s.io/client-go v0.28.4 // indirect\n+\tk8s.io/klog/v2 v2.100.1 // indirect\n+\tk8s.io/kube-openapi v0.0.0-20230717233707-2695361300d9 // indirect\n+\tk8s.io/utils v0.0.0-20230406110748-d93618cff8a2 // indirect\n \tsigs.k8s.io/json v0.0.0-20221116044647-bc3834ca7abd // indirect\n \tsigs.k8s.io/structured-merge-diff/v4 v4.2.3 // indirect\n \tsigs.k8s.io/yaml v1.3.0 // indirect\n---\n\n\n---\n\nChoice B:\ntest/go.mod\n@@ -3,56 +3,55 @@ module github.com/Azure/terraform-azurerm-compute\n go 1.19\n \n require (\n-\tgithub.com/Azure/terraform-module-test-helper v0.16.0\n-\tgithub.com/gruntwork-io/terratest v0.43.9\n-\tgithub.com/stretchr/testify v1.8.4\n+\tgithub.com/Azure/terraform-module-test-helper v0.26.0\n+\tgithub.com/gruntwork-io/terratest v0.47.1\n+\tgithub.com/stretchr/testify v1.9.0\n )\n \n require (\n-\tcloud.google.com/go v0.110.2 // indirect\n-\tcloud.google.com/go/compute v1.20.1 // indirect\n-\tcloud.google.com/go/compute/metadata v0.2.3 // indirect\n-\tcloud.google.com/go/iam v0.13.0 // indirect\n-\tcloud.google.com/go/storage v1.29.0 // indirect\n+\tcloud.google.com/go v0.110.10 // indirect\n+\tcloud.google.com/go/compute/metadata v0.3.0 // indirect\n+\tcloud.google.com/go/iam v1.1.5 // indirect\n+\tcloud.google.com/go/storage v1.35.1 // indirect\n \tgithub.com/agext/levenshtein v1.2.3 // indirect\n \tgithub.com/ahmetb/go-linq/v3 v3.2.0 // indirect\n-\tgithub.com/apparentlymart/go-textseg/v13 v13.0.0 // indirect\n-\tgithub.com/aws/aws-sdk-go v1.44.122 // indirect\n+\tgithub.com/apparentlymart/go-textseg/v15 v15.0.0 // indirect\n+\tgithub.com/aws/aws-sdk-go v1.46.7 // indirect\n \tgithub.com/bgentry/go-netrc v0.0.0-20140422174119-9fd32a8b3d3d // indirect\n \tgithub.com/boombuler/barcode v1.0.1-0.20190219062509-6c824513bacc // indirect\n \tgithub.com/cpuguy83/go-md2man/v2 v2.0.2 // indirect\n \tgithub.com/davecgh/go-spew v1.1.1 // indirect\n \tgithub.com/emicklei/go-restful/v3 v3.9.0 // indirect\n-\tgithub.com/go-errors/errors v1.4.2 // indirect\n-\tgithub.com/go-logr/logr v1.2.3 // indirect\n+\tgithub.com/go-errors/errors v1.5.1 // indirect\n+\tgithub.com/go-logr/logr v1.2.4 // indirect\n \tgithub.com/go-openapi/jsonpointer v0.19.6 // indirect\n-\tgithub.com/go-openapi/jsonreference v0.20.1 // indirect\n+\tgithub.com/go-openapi/jsonreference v0.20.2 // indirect\n \tgithub.com/go-openapi/swag v0.22.3 // indirect\n \tgithub.com/go-sql-driver/mysql v1.4.1 // indirect\n \tgithub.com/gogo/protobuf v1.3.2 // indirect\n \tgithub.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da // indirect\n \tgithub.com/golang/protobuf v1.5.3 // indirect\n-\tgithub.com/google/gnostic v0.5.7-v3refs // indirect\n-\tgithub.com/google/go-cmp v0.5.9 // indirect\n+\tgithub.com/google/gnostic-models v0.6.8 // indirect\n+\tgithub.com/google/go-cmp v0.6.0 // indirect\n \tgithub.com/google/go-github/v42 v42.0.0 // indirect\n \tgithub.com/google/go-querystring v1.1.0 // indirect\n-\tgithub.com/google/gofuzz v1.1.0 // indirect\n-\tgithub.com/google/s2a-go v0.1.4 // indirect\n-\tgithub.com/google/uuid v1.3.0 // indirect\n-\tgithub.com/googleapis/enterprise-certificate-proxy v0.2.3 // indirect\n-\tgithub.com/googleapis/gax-go/v2 v2.11.0 // indirect\n-\tgithub.com/gruntwork-io/go-commons v0.17.0 // indirect\n+\tgithub.com/google/gofuzz v1.2.0 // indirect\n+\tgithub.com/google/s2a-go v0.1.7 // indirect\n+\tgithub.com/google/uuid v1.4.0 // indirect\n+\tgithub.com/googleapis/enterprise-certificate-proxy v0.3.2 // indirect\n+\tgithub.com/googleapis/gax-go/v2 v2.12.0 // indirect\n+\tgithub.com/gruntwork-io/go-commons v0.17.2 // indirect\n \tgithub.com/hashicorp/errwrap v1.0.0 // indirect\n \tgithub.com/hashicorp/go-cleanhttp v0.5.2 // indirect\n-\tgithub.com/hashicorp/go-getter v1.7.1 // indirect\n-\tgithub.com/hashicorp/go-getter/v2 v2.2.1 // indirect\n+\tgithub.com/hashicorp/go-getter v1.7.6 // indirect\n+\tgithub.com/hashicorp/go-getter/v2 v2.2.3 // indirect\n \tgithub.com/hashicorp/go-multierror v1.1.1 // indirect\n \tgithub.com/hashicorp/go-safetemp v1.0.0 // indirect\n \tgithub.com/hashicorp/go-version v1.6.0 // indirect\n \tgithub.com/hashicorp/hcl v1.0.0 // indirect\n-\tgithub.com/hashicorp/hcl/v2 v2.17.0 // indirect\n+\tgithub.com/hashicorp/hcl/v2 v2.22.0 // indirect\n \tgithub.com/hashicorp/terraform-config-inspect v0.0.0-20211115214459-90acf1ca460f // indirect\n-\tgithub.com/hashicorp/terraform-json v0.17.1 // indirect\n+\tgithub.com/hashicorp/terraform-json v0.22.1 // indirect\n \tgithub.com/imdario/mergo v0.3.11 // indirect\n \tgithub.com/jinzhu/copier v0.0.0-20190924061706-b57f9002281a // indirect\n \tgithub.com/jmespath/go-jmespath v0.4.0 // indirect\n@@ -75,43 +74,45 @@ require (\n \tgithub.com/pquerna/otp v1.2.0 // indirect\n \tgithub.com/r3labs/diff/v3 v3.0.1 // indirect\n \tgithub.com/russross/blackfriday/v2 v2.1.0 // indirect\n-\tgithub.com/spf13/afero v1.9.5 // indirect\n+\tgithub.com/spf13/afero v1.11.0 // indirect\n \tgithub.com/spf13/pflag v1.0.5 // indirect\n \tgithub.com/thanhpk/randstr v1.0.6 // indirect\n \tgithub.com/tmccombs/hcl2json v0.3.3 // indirect\n-\tgithub.com/ulikunitz/xz v0.5.10 // indirect\n+\tgithub.com/ulikunitz/xz v0.5.11 // indirect\n \tgithub.com/urfave/cli/v2 v2.10.3 // indirect\n \tgithub.com/vmihailenco/msgpack/v5 v5.3.5 // indirect\n \tgithub.com/vmihailenco/tagparser/v2 v2.0.0 // indirect\n \tgithub.com/xrash/smetrics v0.0.0-20201216005158-039620a65673 // indirect\n-\tgithub.com/zclconf/go-cty v1.13.2 // indirect\n+\tgithub.com/zclconf/go-cty v1.14.4 // indirect\n \tgo.opencensus.io v0.24.0 // indirect\n-\tgolang.org/x/crypto v0.11.0 // indirect\n+\tgolang.org/x/crypto v0.21.0 // indirect\n \tgolang.org/x/exp v0.0.0-20221106115401-f9659909a136 // indirect\n-\tgolang.org/x/mod v0.12.0 // indirect\n-\tgolang.org/x/net v0.12.0 // indirect\n-\tgolang.org/x/oauth2 v0.10.0 // indirect\n-\tgolang.org/x/sys v0.10.0 // indirect\n-\tgolang.org/x/term v0.10.0 // indirect\n-\tgolang.org/x/text v0.11.0 // indirect\n-\tgolang.org/x/time v0.0.0-20220210224613-90d013bbcef8 // indirect\n+\tgolang.org/x/mod v0.21.0 // indirect\n+\tgolang.org/x/net v0.23.0 // indirect\n+\tgolang.org/x/oauth2 v0.23.0 // indirect\n+\tgolang.org/x/sync v0.5.0 // indirect\n+\tgolang.org/x/sys v0.18.0 // indirect\n+\tgolang.org/x/term v0.18.0 // indirect\n+\tgolang.org/x/text v0.14.0 // indirect\n+\tgolang.org/x/time v0.5.0 // indirect\n+\tgolang.org/x/tools v0.13.0 // indirect\n \tgolang.org/x/xerrors v0.0.0-20220907171357-04be3eba64a2 // indirect\n-\tgoogle.golang.org/api v0.126.0 // indirect\n+\tgoogle.golang.org/api v0.152.0 // indirect\n \tgoogle.golang.org/appengine v1.6.7 // indirect\n-\tgoogle.golang.org/genproto v0.0.0-20230530153820-e85fd2cbaebc // indirect\n-\tgoogle.golang.org/genproto/googleapis/api v0.0.0-20230530153820-e85fd2cbaebc // indirect\n-\tgoogle.golang.org/genproto/googleapis/rpc v0.0.0-20230530153820-e85fd2cbaebc // indirect\n-\tgoogle.golang.org/grpc v1.55.0 // indirect\n-\tgoogle.golang.org/protobuf v1.31.0 // indirect\n+\tgoogle.golang.org/genproto v0.0.0-20231106174013-bbf56f31fb17 // indirect\n+\tgoogle.golang.org/genproto/googleapis/api v0.0.0-20231106174013-bbf56f31fb17 // indirect\n+\tgoogle.golang.org/genproto/googleapis/rpc v0.0.0-20231120223509-83a465c0220f // indirect\n+\tgoogle.golang.org/grpc v1.59.0 // indirect\n+\tgoogle.golang.org/protobuf v1.33.0 // indirect\n \tgopkg.in/inf.v0 v0.9.1 // indirect\n \tgopkg.in/yaml.v2 v2.4.0 // indirect\n \tgopkg.in/yaml.v3 v3.0.1 // indirect\n-\tk8s.io/api v0.27.2 // indirect\n-\tk8s.io/apimachinery v0.27.2 // indirect\n-\tk8s.io/client-go v0.27.2 // indirect\n-\tk8s.io/klog/v2 v2.90.1 // indirect\n-\tk8s.io/kube-openapi v0.0.0-20230501164219-8b0f38b5fd1f // indirect\n-\tk8s.io/utils v0.0.0-20230209194617-a36077c30491 // indirect\n+\tk8s.io/api v0.28.4 // indirect\n+\tk8s.io/apimachinery v0.28.4 // indirect\n+\tk8s.io/client-go v0.28.4 // indirect\n+\tk8s.io/klog/v2 v2.100.1 // indirect\n+\tk8s.io/kube-openapi v0.0.0-20230717233707-2695361300d9 // indirect\n+\tk8s.io/utils v0.0.0-20230406110748-d93618cff8a2 // indirect\n \tsigs.k8s.io/json v0.0.0-20221116044647-bc3834ca7abd // indirect\n \tsigs.k8s.io/structured-merge-diff/v4 v4.2.3 // indirect\n \tsigs.k8s.io/yaml v1.3.0 // indirect\n---\n\n\n---\n\nChoice C:\ntest/go.mod\n@@ -3,56 +3,55 @@ module github.com/Azure/terraform-azurerm-compute\n go 1.19\n \n require (\n-\tgithub.com/Azure/terraform-module-test-helper v0.16.0\n-\tgithub.com/gruntwork-io/terratest v0.43.9\n-\tgithub.com/stretchr/testify v1.8.4\n+\tgithub.com/Azure/terraform-module-test-helper v0.26.0\n+\tgithub.com/gruntwork-io/terratest v0.47.1\n+\tgithub.com/stretchr/testify v1.9.0\n )\n \n require (\n-\tcloud.google.com/go v0.110.2 // indirect\n-\tcloud.google.com/go/compute v1.20.1 // indirect\n-\tcloud.google.com/go/compute/metadata v0.2.3 // indirect\n-\tcloud.google.com/go/iam v0.13.0 // indirect\n-\tcloud.google.com/go/storage v1.29.0 // indirect\n+\tcloud.google.com/go v0.110.10 // indirect\n+\tcloud.google.com/go/compute/metadata v0.3.0 // indirect\n+\tcloud.google.com/go/iam v1.1.5 // indirect\n+\tcloud.google.com/go/storage v1.35.1 // indirect\n \tgithub.com/agext/levenshtein v1.2.3 // indirect\n \tgithub.com/ahmetb/go-linq/v3 v3.2.0 // indirect\n-\tgithub.com/apparentlymart/go-textseg/v13 v13.0.0 // indirect\n-\tgithub.com/aws/aws-sdk-go v1.44.122 // indirect\n+\tgithub.com/apparentlymart/go-textseg/v15 v15.0.0 // indirect\n+\tgithub.com/aws/aws-sdk-go v1.46.7 // indirect\n \tgithub.com/bgentry/go-netrc v0.0.0-20140422174119-9fd32a8b3d3d // indirect\n \tgithub.com/boombuler/barcode v1.0.1-0.20190219062509-6c824513bacc // indirect\n \tgithub.com/cpuguy83/go-md2man/v2 v2.0.2 // indirect\n \tgithub.com/davecgh/go-spew v1.1.1 // indirect\n \tgithub.com/emicklei/go-restful/v3 v3.9.0 // indirect\n-\tgithub.com/go-errors/errors v1.4.2 // indirect\n-\tgithub.com/go-logr/logr v1.2.3 // indirect\n+\tgithub.com/go-errors/errors v1.5.1 // indirect\n+\tgithub.com/go-logr/logr v1.2.4 // indirect\n \tgithub.com/go-openapi/jsonpointer v0.19.6 // indirect\n-\tgithub.com/go-openapi/jsonreference v0.20.1 // indirect\n+\tgithub.com/go-openapi/jsonreference v0.20.2 // indirect\n \tgithub.com/go-openapi/swag v0.22.3 // indirect\n \tgithub.com/go-sql-driver/mysql v1.4.1 // indirect\n \tgithub.com/gogo/protobuf v1.3.2 // indirect\n \tgithub.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da // indirect\n \tgithub.com/golang/protobuf v1.5.3 // \tgithub.com/google/go-querystring v0.5.7-v3refs // indirect\n-\tgithub.com/google/go-cmp v0.5.9 // indirect\n+\tgithub.com/google/gnostic-models v0.6.8 // indirect\n+\tgithub.com/google/go-cmp v0.6.0 // indirect\n \tgithub.com/google/go-github/v42 v42.0.0 // indirect\n \tgithub.com/google/go-querystring v1.1.0 // indirect\n-\tgithub.com/google/gofuzz v1.1.0 // indirect\n-\tgithub.com/google/s2a-go v0.1.4 // indirect\n-\tgithub.com/google/uuid v1.3.0 // indirect\n-\tgithub.com/googleapis/enterprise-certificate-proxy v0.2.3 // indirect\n-\tgithub.com/googleapis/gax-go/v2 v2.11.0 // indirect\n-\tgithub.com/gruntwork-io/go-commons v0.17.0 // indirect\n+\tgithub.com/google/gofuzz v1.2.0 // indirect\n+\tgithub.com/google/s2a-go v0.1.7 // indirect\n+\tgithub.com/google/uuid v1.4.0 // indirect\n+\tgithub.com/googleapis/enterprise-certificate-proxy v0.3.2 // indirect\n+\tgithub.com/googleapis/gax-go/v2 v2.12.0 // indirect\n+\tgithub.com/gruntwork-io/go-commons v0.17.2 // indirect\n \tgithub.com/hashicorp/errwrap v1.0.0 // indirect\n \tgithub.com/hashicorp/go-cleanhttp v0.5.2 // indirect\n-\tgithub.com/hashicorp/go-getter v1.7.1 // indirect\n-\tgithub.com/hashicorp/go-getter/v2 v2.2.1 // indirect\n+\tgithub.com/hashicorp/go-getter v1.7.6 // indirect\n+\tgithub.com/hashicorp/go-getter/v2 v2.2.3 // indirect\n \tgithub.com/hashicorp/go-multierror v1.1.1 // indirect\n \tgithub.com/hashicorp/go-safetemp v1.0.0 // indirect\n \tgithub.com/hashicorp/go-version v1.6.0 // indirect\n \tgithub.com/hashicorp/hcl v1.0.0 // indirect\n-\tgithub.com/hashicorp/hcl/v2 v2.17.0 // indirect\n+\tgithub.com/hashicorp/hcl/v2 v2.22.0 // indirect\n \tgithub.com/hashicorp/terraform-config-inspect v0.0.0-20211115214459-90acf1ca460f // indirect\n-\tgithub.com/hashicorp/terraform-json v0.17.1 // indirect\n+\tgithub.com/hashicorp/terraform-json v0.22.1 // indirect\n \tgithub.com/imdario/mergo v0.3.11 // indirect\n \tgithub.com/jinzhu/copier v0.0.0-20190924061706-b57f9002281a // indirect\n \tgithub.com/jmespath/go-jmespath v0.4.0 // indirect\n@@ -75,43 +74,45 @@ require (\n \tgithub.com/pquerna/otp v1.2.0 // indirect\n \tgithub.com/r3labs/diff/v3 v3.0.1 // indirect\n \tgithub.com/russross/blackfriday/v2 v2.1.0 // indirect\n-\tgithub.com/spf13/afero v1.9.5 // indirect\n+\tgithub.com/spf13/afero v1.11.0 // indirect\n \tgithub.com/spf13/pflag v1.0.5 // indirect\n \tgithub.com/thanhpk/randstr v1.0.6 // indirect\n \tgithub.com/tmccombs/hcl2json v0.3.3 // indirect\n-\tgithub.com/ulikunitz/xz v0.5.10 // indirect\n+\tgithub.com/ulikunitz/xz v0.5.11 // indirect\n \tgithub.com/urfave/cli/v2 v2.10.3 // indirect\n \tgithub.com/vmihailenco/msgpack/v5 v5.3.5 // indirect\n \tgithub.com/vmihailenco/tagparser/v2 v2.0.0 // indirect\n \tgithub.com/xrash/smetrics v0.0.0-20201216005158-039620a65673 // indirect\n-\tgithub.com/zclconf/go-cty v1.13.2 // indirect\n+\tgithub.com/zclconf/go-cty v1.14.4 // indirect\n \tgo.opencensus.io v0.24.0 // indirect\n-\tgolang.org/x/crypto v0.11.0 // indirect\n+\tgolang.org/x/crypto v0.21.0 // indirect\n \tgolang.org/x/exp v0.0.0-20221106115401-f9659909a136 // indirect\n-\tgolang.org/x/mod v0.12.0 // indirect\n-\tgolang.org/x/net v0.12.0 // indirect\n-\tgolang.org/x/oauth2 v0.10.0 // indirect\n-\tgolang.org/x/sys v0.10.0 // indirect\n-\tgolang.org/x/term v0.10.0 // indirect\n-\tgolang.org/x/text v0.11.0 // indirect\n-\tgolang.org/x/time v0.0.0-20220210224613-90d013bbcef8 // indirect\n+\tgolang.org/x/mod v0.21.0 // indirect\n+\tgolang.org/x/net v0.23.0 // indirect\n+\tgolang.org/x/oauth2 v0.23.0 // indirect\n+\tgolang.org/x/sync v0.5.0 // indirect\n+\tgolang.org/x/sys v0.18.0 // indirect\n+\tgolang.org/x/term v0.18.0 // indirect\n+\tgolang.org/x/text v0.14.0 // indirect\n+\tgolang.org/x/time v0.5.0 // indirect\n+\tgolang.org/x/tools v0.13.0 // indirect\n \tgolang.org/x/xerrors v0.0.0-20220907171357-04be3eba64a2 // indirect\n-\tgoogle.golang.org/api v0.126.0 // indirect\n+\tgoogle.golang.org/api v0.152.0 // indirect\n \tgoogle.golang.org/appengine v1.6.7 // indirect\n-\tgoogle.golang.org/genproto v0.0.0-20230530153820-e85fd2cbaebc // indirect\n-\tgoogle.golang.org/genproto/googleapis/api v0.0.0-20230530153820-e85fd2cbaebc // indirect\n-\tgoogle.golang.org/genproto/googleapis/rpc v0.0.0-20230530153820-e85fd2cbaebc // indirect\n-\tgoogle.golang.org/grpc v1.55.0 // indirect\n-\tgoogle.golang.org/protobuf v1.31.0 // indirect\n+\tgoogle.golang.org/genproto v0.0.0-20231106174013-bbf56f31fb17 // indirect\n+\tgoogle.golang.org/genproto/googleapis/api v0.0.0-20231106174013-bbf56f31fb17 // indirect\n+\tgoogle.golang.org/genproto/googleapis/rpc v0.0.0-20231120223509-83a465c0220f // indirect\n+\tgoogle.golang.org/grpc v1.59.0 // indirect\n+\tgoogle.golang.org/protobuf v1.33.0 // indirect\n \tgopkg.in/inf.v0 v0.9.1 // indirect\n \tgopkg.in/yaml.v2 v2.4.0 // indirect\n \tgopkg.in/yaml.v3 v3.0.1 // indirect\n-\tk8s.io/api v0.27.2 // indirect\n-\tk8s.io/apimachinery v0.27.2 // indirect\n-\tk8s.io/client-go v0.27.2 // indirect\n-\tk8s.io/klog/v2 v2.90.1 // indirect\n-\tk8s.io/kube-openapi v0.0.0-20230501164219-8b0f38b5fd1f // indirect\n-\tk8s.io/utils v0.0.0-20230209194617-a36077c30491 // indirect\n+\tk8s.io/api v0.28.4 // indirect\n+\tk8s.io/apimachinery v0.28.4 // indirect\n+\tk8s.io/client-go v0.28.4 // indirect\n+\tk8s.io/klog/v2 v2.100.1 // indirect\n+\tk8s.io/kube-openapi v0.0.0-20230717233707-2695361300d9 // indirect\n+\tk8s.io/utils v0.0.0-20230406110748-d93618cff8a2 // indirect\n \tsigs.k8s.io/json v0.0.0-20221116044647-bc3834ca7abd // indirect\n \tsigs.k8s.io/structured-merge-diff/v4 v4.2.3 // indirect\n \tsigs.k8s.io/yaml v1.3.0 // indirect\n---\n\n\n---\n\nChoice D:\ntest/go.mod\n@@ -3,56 +3,55 @@ module github.com/Azure/terraform-azurerm-compute\n go 1.19\n \n require (\n-\tgithub.com/Azure/terraform-module-test-helper v0.16.0\n-\tgithub.com/gruntwork-io/terratest v0.43.9\n-\tgithub.com/stretchr/testify v1.8.4\n+\tgithub.com/Azure/terraform-module-test-helper v0.26.0\n+\tgithub.com/gruntwork-io/terratest v0.47.1\n+\tgithub.com/stretchr/testify v1.9.0\n )\n \n require (\n-\tcloud.google.com/go v0.110.2 // indirect\n-\tcloud.google.com/go/compute v1.20.1 // indirect\n-\tcloud.google.com/go/compute/metadata v0.2.3 // indirect\n-\tcloud.google.com/go/iam v0.13.0 // indirect\n-\tcloud.google.com/go/storage v1.29.0 // indirect\n+\tcloud.google.com/go v0.110.10 // indirect\n+\tcloud.google.com/go/compute/metadata v0.3.0 // indirect\n+\tcloud.google.com/go/iam v1.1.5 // indirect\n+\tcloud.google.com/go/storage v1.35.1 // indirect\n \tgithub.com/agext/levenshtein v1.2.3 // indirect\n \tgithub.com/ahmetb/go-linq/v3 v3.2.0 // indirect\n-\tgithub.com/apparentlymart/go-textseg/v13 v13.0.0 // indirect\n-\tgithub.com/aws/aws-sdk-go v1.44.122 // indirect\n+\tgithub.com/apparentlymart/go-textseg/v15 v15.0.0 // indirect\n+\tgithub.com/aws/aws-sdk-go v1.46.7 // indirect\n \tgithub.com/bgentry/go-netrc v0.0.0-20140422174119-9fd32a8b3d3d // indirect\n \tgithub.com/boombuler/barcode v1.0.1-0.20190219062509-6c824513bacc // indirect\n \tgithub.com/cpuguy83/go-md2man/v2 v2.0.2 // indirect\n \tgithub.com/davecgh/go-spew v1.1.1 // indirect\n \tgithub.com/emicklei/go-restful/v3 v3.9.0 // indirect\n-\tgithub.com/go-errors/errors v1.4.2 // indirect\n-\tgithub.com/go-logr/logr v1.2.3 // indirect\n+\tgithub.com/go-errors/errors v1.5.1 // indirect\n+\tgithub.com/go-logr/logr v1.2.4 // indirect\n \tgithub.com/go-openapi/jsonpointer v0.19.6 // indirect\n-\tgithub.com/go-openapi/jsonreference v0.20.1 // indirect\n+\tgithub.com/go-openapi/jsonreference v0.20.2 // indirect\n \tgithub.com/go-openapi/swag v0.22.3 // indirect\n \tgithub.com/go-sql-driver/mysql v1.4.1 // indirect\n \tgithub.com/gogo/protobuf v1.3.2 // indirect\n \tgithub.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da // indirect\n \tgithub.com/golang/protobuf v1.5.3 // indirect\n-\tgithub.com/google/gnostic v0.5.7-v3refs // indirect\n-\tgithub.com/google/go-cmp v0.5.9 // indirect\n+\tgithub.com/google/gnostic-models v0.6.8 // indirect\n+\tgithub.com/google/go-cmp v0.6.0 // indirect\n \tgithub.com/google/go-github/v42 v42.0.0 // indirect\n \tgithub.com/google/go-querystring v1.1.0 // indirect\n-\tgithub.com/google/gofuzz v1.1.0 // indirect\n-\tgithub.com/google/s2a-go v0.1.4 // indirect\n-\tgithub.com/google/uuid v1.0.1-0.20190219062509-6c824513bacc // indirect\n-\tgithub.com/googleapis/enterprise-certificate-proxy v0.2.3 // indirect\n-\tgithub.com/googleapis/gax-go/v2 v2.11.0 // indirect\n-\tgithub.com/gruntwork-io/go-commons v0.17.0 // indirect\n+\tgithub.com/google/gofuzz v1.2.0 // indirect\n+\tgithub.com/google/s2a-go v0.1.7 // indirect\n+\tgithub.com/google/uuid v1.4.0 // indirect\n+\tgithub.com/googleapis/enterprise-certificate-proxy v0.3.2 // indirect\n+\tgithub.com/googleapis/gax-go/v2 v2.12.0 // indirect\n+\tgithub.com/gruntwork-io/go-commons v0.17.2 // indirect\n \tgithub.com/hashicorp/errwrap v1.0.0 // indirect\n \tgithub.com/hashicorp/go-cleanhttp v0.5.2 // indirect\n-\tgithub.com/hashicorp/go-getter v1.7.1 // indirect\n-\tgithub.com/hashicorp/go-getter/v2 v2.2.1 // indirect\n+\tgithub.com/hashicorp/go-getter v1.7.6 // indirect\n+\tgithub.com/hashicorp/go-getter/v2 v2.2.3 // indirect\n \tgithub.com/hashicorp/go-multierror v1.1.1 // indirect\n \tgithub.com/hashicorp/go-safetemp v1.0.0 // indirect\n \tgithub.com/hashicorp/go-version v1.6.0 // indirect\n \tgithub.com/hashicorp/hcl v1.0.0 // indirect\n-\tgithub.com/hashicorp/hcl/v2 v2.17.0 // indirect\n+\tgithub.com/hashicorp/hcl/v2 v2.22.0 // indirect\n \tgithub.com/hashicorp/terraform-config-inspect v0.0.0-20211115214459-90acf1ca460f // indirect\n-\tgithub.com/hashicorp/terraform-json v0.17.1 // indirect\n+\tgithub.com/hashicorp/terraform-json v0.22.1 // indirect\n \tgithub.com/imdario/mergo v0.3.11 // indirect\n \tgithub.com/jinzhu/copier v0.0.0-20190924061706-b57f9002281a // indirect\n \tgithub.com/jmespath/go-jmespath v0.4.0 // indirect\n@@ -75,43 +74,45 @@ require (\n \tgithub.com/pquerna/otp v1.2.0 // indirect\n \tgithub.com/r3labs/diff/v3 v3.0.1 // indirect\n \tgithub.com/russross/blackfriday/v2 v2.1.0 // indirect\n-\tgithub.com/spf13/afero v1.9.5 // indirect\n+\tgithub.com/spf13/afero v1.11.0 // indirect\n \tgithub.com/spf13/pflag v1.0.5 // indirect\n \tgithub.com/thanhpk/randstr v1.0.6 // indirect\n \tgithub.com/tmccombs/hcl2json v0.3.3 // indirect\n-\tgithub.com/ulikunitz/xz v0.5.10 // indirect\n+\tgithub.com/ulikunitz/xz v0.5.11 // indirect\n \tgithub.com/urfave/cli/v2 v2.10.3 // indirect\n \tgithub.com/vmihailenco/msgpack/v5 v5.3.5 // indirect\n \tgithub.com/vmihailenco/tagparser/v2 v2.0.0 // indirect\n \tgithub.com/xrash/smetrics v0.0.0-20201216005158-039620a65673 // indirect\n-\tgithub.com/zclconf/go-cty v1.13.2 // indirect\n+\tgithub.com/zclconf/go-cty v1.14.4 // indirect\n \tgo.opencensus.io v0.24.0 // indirect\n-\tgolang.org/x/crypto v0.11.0 // indirect\n+\tgolang.org/x/crypto v0.21.0 // indirect\n \tgolang.org/x/exp v0.0.0-20221106115401-f9659909a136 // indirect\n-\tgolang.org/x/mod v0.12.0 // indirect\n-\tgolang.org/x/net v0.12.0 // indirect\n-\tgolang.org/x/oauth2 v0.10.0 // indirect\n-\tgolang.org/x/sys v0.10.0 // indirect\n-\tgolang.org/x/term v0.10.0 // indirect\n-\tgolang.org/x/text v0.11.0 // indirect\n-\tgolang.org/x/time v0.0.0-20220210224613-90d013bbcef8 // indirect\n+\tgolang.org/x/mod v0.21.0 // indirect\n+\tgolang.org/x/net v0.23.0 // indirect\n+\tgolang.org/x/oauth2 v0.23.0 // indirect\n+\tgolang.org/x/sync v0.5.0 // indirect\n+\tgolang.org/x/sys v0.18.0 // indirect\n+\tgolang.org/x/term v0.18.0 // indirect\n+\tgolang.org/x/text v0.14.0 // indirect\n+\tgolang.org/x/time v0.5.0 // indirect\n+\tgolang.org/x/tools v0.13.0 // indirect\n \tgolang.org/x/xerrors v0.0.0-20220907171357-04be3eba64a2 // indirect\n-\tgoogle.golang.org/api v0.126.0 // indirect\n+\tgoogle.golang.org/api v0.152.0 // indirect\n \tgoogle.golang.org/appengine v1.6.7 // indirect\n-\tgoogle.golang.org/genproto v0.0.0-20230530153820-e85fd2cbaebc // indirect\n-\tgoogle.golang.org/genproto/googleapis/api v0.0.0-20230530153820-e85fd2cbaebc // indirect\n-\tgoogle.golang.org/genproto/googleapis/rpc v0.0.0-20230530153820-e85fd2cbaebc // indirect\n-\tgoogle.golang.org/grpc v1.55.0 // indirect\n-\tgoogle.golang.org/protobuf v1.31.0 // indirect\n+\tgoogle.golang.org/genproto v0.0.0-20231106174013-bbf56f31fb17 // indirect\n+\tgoogle.golang.org/genproto/googleapis/api v0.0.0-20231106174013-bbf56f31fb17 // indirect\n+\tgoogle.golang.org/genproto/googleapis/rpc v0.0.0-20231120223509-83a465c0220f // indirect\n+\tgoogle.golang.org/grpc v1.59.0 // indirect\n+\tgoogle.golang.org/protobuf v1.33.0 // indirect\n \tgopkg.in/inf.v0 v0.9.1 // indirect\n \tgopkg.in/yaml.v2 v2.4.0 // indirect\n \tgopkg.in/yaml.v3 v3.0.1 // indirect\n-\tk8s.io/api v0.27.2 // indirect\n-\tk8s.io/apimachinery v0.27.2 // indirect\n-\tk8s.io/client-go v0.27.2 // indirect\n-\tk8s.io/klog/v2 v2.90.1 // indirect\n-\tk8s.io/kube-openapi v0.0.0-20230501164219-8b0f38b5fd1f // indirect\n-\tk8s.io/utils v0.0.0-20230209194617-a36077c30491 // indirect\n+\tk8s.io/api v0.28.4 // indirect\n+\tk8s.io/apimachinery v0.28.4 // indirect\n+\tk8s.io/client-go v0.28.4 // indirect\n+\tk8s.io/klog/v2 v2.100.1 // indirect\n+\tk8s.io/kube-openapi v0.0.0-20230717233707-2695361300d9 // indirect\n+\tk8s.io/utils v0.0.0-20230406110748-d93618cff8a2 // indirect\n \tsigs.k8s.io/json v0.0.0-20221116044647-bc3834ca7abd // indirect\n \tsigs.k8s.io/structured-merge-diff/v4 v4.2.3 // indirect\n \tsigs.k8s.io/yaml v1.3.0 // indirect\n---\n\n\n---\n" } ]
B
[ { "role": "system", "content": "Choose the best Terraform patch (A/B/C/D) that implements the requested Azure Compute change safely. Only respond with a single uppercase letter." }, { "role": "user", "content": "Task Description:\nBumps [github.com/Azure/terraform-module-test-helper](https://github.com/Azure/terraform-module-test-helper) from 0.16.0 to 0.26.0.\r\n- [Commits](https://github.com/Azure/terraform-module-test-helper/compare/v0.16.0...v0.26.0)\r\n\r\n---\r\nupdated-dependencies:\r\n- dependency-name: github.com/Azure/terraform-module-test-helper dependency-type: direct:production update-type: version-update:semver-minor ...\r\n\r\n## Describe your changes\r\n\r\n## Issue number\r\n\r\n#000\r\n\r\n## Checklist before requesting a review\r\n- [ ] The pr title can be used to describe what this pr did in `CHANGELOG.md` file\r\n- [ ] I have executed pre-commit on my machine\r\n- [ ] I have passed pr-check on my machine\r\n\r\nThanks for your cooperation!\r\n\r\n\n\n---\n\nChoice A:\ntest/go.mod\n@@ -3,56 +3,55 @@ module github.com/Azure/terraform-azurerm-compute\n go 1.19\n \n require (\n-\tgithub.com/Azure/terraform-module-test-helper v0.16.0\n-\tgithub.com/gruntwork-io/terratest v0.43.9\n-\tgithub.com/stretchr/testify v1.8.4\n+\tgithub.com/Azure/terraform-module-test-helper v0.26.0\n+\tgithub.com/gruntwork-io/terratest v0.47.1\n+\tgithub.com/stretchr/testify v1.9.0\n )\n \n require (\n-\tcloud.google.com/go v0.110.2 // indirect\n-\tcloud.google.com/go/compute v1.20.1 // indirect\n-\tcloud.google.com/go/compute/metadata v0.2.3 // indirect\n-\tcloud.google.com/go/iam v0.13.0 // indirect\n-\tcloud.google.com/go/storage v1.29.0 // indirect\n+\tcloud.google.com/go v0.110.10 // indirect\n+\tcloud.google.com/go/compute/metadata v0.3.0 // indirect\n+\tcloud.google.com/go/iam v1.1.5 // indirect\n+\tcloud.google.com/go/storage v1.35.1 // indirect\n \tgithub.com/agext/levenshtein v1.2.3 // indirect\n \tgithub.com/ahmetb/go-linq/v3 v3.2.0 // indirect\n-\tgithub.com/apparentlymart/go-textseg/v13 v13.0.0 // indirect\n-\tgithub.com/aws/aws-sdk-go v1.44.122 // indirect\n+\tgithub.com/apparentlymart/go-textseg/v15 v15.0.0 // indirect\n+\tgithub.com/aws/aws-sdk-go v1.46.7 // indirect\n \tgithub.com/bgentry/go-netrc v0.0.0-20140422174119-9fd32a8b3d3d // indirect\n \tgithub.com/boombuler/barcode v1.0.1-0.20190219062509-6c824513bacc // indirect\n \tgithub.com/cpuguy83/go-md2man/v2 v2.0.2 // indirect\n \tgithub.com/davecgh/go-spew v1.1.1 // indirect\n \tgithub.com/emicklei/go-restful/v3 v3.9.0 // indirect\n-\tgithub.com/go-errors/errors v1.4.2 // indirect\n-\tgithub.com/go-logr/logr v1.2.3 // indirect\n+\tgithub.com/go-errors/errors v1.5.1 // indirect\n+\tgithub.com/go-logr/logr v1.2.4 // indirect\n \tgithub.com/go-openapi/jsonpointer v0.19.6 // indirect\n-\tgithub.com/go-openapi/jsonreference v0.20.1 // indirect\n+\tgithub.com/go-openapi/jsonreference v0.20.2 // indirect\n \tgithub.com/go-openapi/swag v0.22.3 // indirect\n \tgithub.com/go-sql-driver/mysql v1.4.1 // indirect\n \tgithub.com/gogo/protobuf v1.3.2 // indirect\n \tgithub.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da // indirect\n \tgithub.com/golang/protobuf v1.5.3 // indirect\n-\tgithub.com/google/gnostic v0.5.7-v3refs // indirect\n-\tgithub.com/google/go-cmp v0.5.9 // indirect\n+\tgithub.com/google/gnostic-models v0.6.8 // indirect\n+\tgithub.com/google/go-cmp v0.6.0 // indirect\n \tgithub.com/google/go-github/v42 v42.0.0 // indirect\n \tgithub.com/google/go-querystring v1.1.0 // indirect\n-\tgithub.com/google/gofuzz v1.1.0 // indirect\n-\tgithub.com/google/s2a-go v0.1.4 // indirect\n-\tgithub.com/google/uuid v1.3.0 // indirect\n-\tgithub.com/googleapis/enterprise-certificate-proxy v0.2.3 // indirect\n-\tgithub.com/googleapis/gax-go/v2 v2.11.0 // indirect\n-\tgithub.com/gruntwork-io/go-commons v0.17.0 // indirect\n+\tgithub.com/google/gofuzz v1.2.0 // indirect\n+\tgithub.com/google/s2a-go v0.1.7 // indirect\n+\tgithub.com/google/uuid v1.4.0 // indirect\n+\tgithub.com/googleapis/enterprise-certificate-proxy v0.3.2 // indirect\n+\tgithub.com/googleapis/gax-go/v2 v2.12.0 // indirect\n+\tgithub.com/gruntwork-io/go-commons v0.17.2 // indirect\n \tgithub.com/hashicorp/errwrap v1.0.0 // indirect\n \tgithub.com/hashicorp/go-cleanhttp v0.5.2 // indirect\n-\tgithub.com/hashicorp/go-getter v1.7.1 // indirect\n-\tgithub.com/hashicorp/go-getter/v2 v2.2.1 // indirect\n+\tgithub.com/hashicorp/go-getter v1.7.6 // indirect\n+\tgithub.com/hashicorp/go-getter/v2 v2.2.3 // indirect\n \tgithub.com/hashicorp/go-multierror v1.1.1 // indirect\n \tgithub.com/hashicorp/go-safetemp v1.0.0 // indirect\n \tgithub.com/hashicorp/go-version v1.6.0 // indirect\n \tgithub.com/hashicorp/hcl v1.0.0 // indirect\n-\tgithub.com/hashicorp/hcl/v2 v2.17.0 // indirect\n+\tgithub.com/hashicorp/hcl/v2 v2.22.0 // indirect\n \tgithub.com/hashicorp/terraform-config-inspect v0.0.0-20211115214459-90acf1ca460f // indirect\n-\tgithub.com/hashicorp/terraform-json v0.17.1 // indirect\n+\tgithub.com/hashicorp/terraform-json v0.22.1 // indirect\n \tgithub.com/imdario/mergo v0.3.11 // indirect\n \tgithub.com/jinzhu/copier v0.0.0-20190924061706-b57f9002281a // indirect\n \tgithub.com/jmespath/go-jmespath v0.4.0 // indirect\n@@ -75,43 +74,45 @@ require (\n \tgithub.com/pquerna/otp v1.2.0 // indirect\n \tgithub.com/r3labs/diff/v3 v3.0.1 // indirect\n \tgithub.com/russross/blackfriday/v2 v2.1.0 // indirect\n-\tgithub.com/spf13/afero v1.9.5 // indirect\n+\tgithub.com/spf13/afero v1.11.0 // indirect\n \tgithub.com/spf13/pflag v1.0.5 // indirect\n \tgithub.com/thanhpk/randstr indirect\n-\tgoogle.golang.org/grpc // indirect\n \tgithub.com/tmccombs/hcl2json v0.3.3 // indirect\n-\tgithub.com/ulikunitz/xz v0.5.10 // indirect\n+\tgithub.com/ulikunitz/xz v0.5.11 // indirect\n \tgithub.com/urfave/cli/v2 v2.10.3 // indirect\n \tgithub.com/vmihailenco/msgpack/v5 v5.3.5 // indirect\n \tgithub.com/vmihailenco/tagparser/v2 v2.0.0 // indirect\n \tgithub.com/xrash/smetrics v0.0.0-20201216005158-039620a65673 // indirect\n-\tgithub.com/zclconf/go-cty v1.13.2 // indirect\n+\tgithub.com/zclconf/go-cty v1.14.4 // indirect\n \tgo.opencensus.io v0.24.0 // indirect\n-\tgolang.org/x/crypto v0.11.0 // indirect\n+\tgolang.org/x/crypto v0.21.0 // indirect\n \tgolang.org/x/exp v0.0.0-20221106115401-f9659909a136 // indirect\n-\tgolang.org/x/mod v0.12.0 // indirect\n-\tgolang.org/x/net v0.12.0 // indirect\n-\tgolang.org/x/oauth2 v0.10.0 // indirect\n-\tgolang.org/x/sys v0.10.0 // indirect\n-\tgolang.org/x/term v0.10.0 // indirect\n-\tgolang.org/x/text v0.11.0 // indirect\n-\tgolang.org/x/time v0.0.0-20220210224613-90d013bbcef8 // indirect\n+\tgolang.org/x/mod v0.21.0 // indirect\n+\tgolang.org/x/net v0.23.0 // indirect\n+\tgolang.org/x/oauth2 v0.23.0 // indirect\n+\tgolang.org/x/sync v0.5.0 // indirect\n+\tgolang.org/x/sys v0.18.0 // indirect\n+\tgolang.org/x/term v0.18.0 // indirect\n+\tgolang.org/x/text v0.14.0 // indirect\n+\tgolang.org/x/time v0.5.0 // indirect\n+\tgolang.org/x/tools v0.13.0 // indirect\n \tgolang.org/x/xerrors v0.0.0-20220907171357-04be3eba64a2 // indirect\n-\tgoogle.golang.org/api v0.126.0 // indirect\n+\tgoogle.golang.org/api v0.152.0 // indirect\n \tgoogle.golang.org/appengine v1.6.7 // indirect\n-\tgoogle.golang.org/genproto v0.0.0-20230530153820-e85fd2cbaebc // indirect\n-\tgoogle.golang.org/genproto/googleapis/api v0.0.0-20230530153820-e85fd2cbaebc // indirect\n-\tgoogle.golang.org/genproto/googleapis/rpc v0.0.0-20230530153820-e85fd2cbaebc // indirect\n-\tgoogle.golang.org/grpc v1.55.0 // indirect\n-\tgoogle.golang.org/protobuf v1.31.0 // indirect\n+\tgoogle.golang.org/genproto v0.0.0-20231106174013-bbf56f31fb17 // indirect\n+\tgoogle.golang.org/genproto/googleapis/api v0.0.0-20231106174013-bbf56f31fb17 // indirect\n+\tgoogle.golang.org/genproto/googleapis/rpc v0.0.0-20231120223509-83a465c0220f // indirect\n+\tgoogle.golang.org/grpc v1.59.0 // indirect\n+\tgoogle.golang.org/protobuf v1.33.0 // indirect\n \tgopkg.in/inf.v0 v0.9.1 // indirect\n \tgopkg.in/yaml.v2 v2.4.0 // indirect\n \tgopkg.in/yaml.v3 v3.0.1 // indirect\n-\tk8s.io/api v0.27.2 // indirect\n-\tk8s.io/apimachinery v0.27.2 // indirect\n-\tk8s.io/client-go v0.27.2 // indirect\n-\tk8s.io/klog/v2 v2.90.1 // indirect\n-\tk8s.io/kube-openapi v0.0.0-20230501164219-8b0f38b5fd1f // indirect\n-\tk8s.io/utils v0.0.0-20230209194617-a36077c30491 // indirect\n+\tk8s.io/api v0.28.4 // indirect\n+\tk8s.io/apimachinery v0.28.4 // indirect\n+\tk8s.io/client-go v0.28.4 // indirect\n+\tk8s.io/klog/v2 v2.100.1 // indirect\n+\tk8s.io/kube-openapi v0.0.0-20230717233707-2695361300d9 // indirect\n+\tk8s.io/utils v0.0.0-20230406110748-d93618cff8a2 // indirect\n \tsigs.k8s.io/json v0.0.0-20221116044647-bc3834ca7abd // indirect\n \tsigs.k8s.io/structured-merge-diff/v4 v4.2.3 // indirect\n \tsigs.k8s.io/yaml v1.3.0 // indirect\n---\n\n\n---\n\nChoice B:\ntest/go.mod\n@@ -3,56 +3,55 @@ module github.com/Azure/terraform-azurerm-compute\n go 1.19\n \n require (\n-\tgithub.com/Azure/terraform-module-test-helper v0.16.0\n-\tgithub.com/gruntwork-io/terratest v0.43.9\n-\tgithub.com/stretchr/testify v1.8.4\n+\tgithub.com/Azure/terraform-module-test-helper v0.26.0\n+\tgithub.com/gruntwork-io/terratest v0.47.1\n+\tgithub.com/stretchr/testify v1.9.0\n )\n \n require (\n-\tcloud.google.com/go v0.110.2 // indirect\n-\tcloud.google.com/go/compute v1.20.1 // indirect\n-\tcloud.google.com/go/compute/metadata v0.2.3 // indirect\n-\tcloud.google.com/go/iam v0.13.0 // indirect\n-\tcloud.google.com/go/storage v1.29.0 // indirect\n+\tcloud.google.com/go v0.110.10 // indirect\n+\tcloud.google.com/go/compute/metadata v0.3.0 // indirect\n+\tcloud.google.com/go/iam v1.1.5 // indirect\n+\tcloud.google.com/go/storage v1.35.1 // indirect\n \tgithub.com/agext/levenshtein v1.2.3 // indirect\n \tgithub.com/ahmetb/go-linq/v3 v3.2.0 // indirect\n-\tgithub.com/apparentlymart/go-textseg/v13 v13.0.0 // indirect\n-\tgithub.com/aws/aws-sdk-go v1.44.122 // indirect\n+\tgithub.com/apparentlymart/go-textseg/v15 v15.0.0 // indirect\n+\tgithub.com/aws/aws-sdk-go v1.46.7 // indirect\n \tgithub.com/bgentry/go-netrc v0.0.0-20140422174119-9fd32a8b3d3d // indirect\n \tgithub.com/boombuler/barcode v1.0.1-0.20190219062509-6c824513bacc // indirect\n \tgithub.com/cpuguy83/go-md2man/v2 v2.0.2 // indirect\n \tgithub.com/davecgh/go-spew v1.1.1 // indirect\n \tgithub.com/emicklei/go-restful/v3 v3.9.0 // indirect\n-\tgithub.com/go-errors/errors v1.4.2 // indirect\n-\tgithub.com/go-logr/logr v1.2.3 // indirect\n+\tgithub.com/go-errors/errors v1.5.1 // indirect\n+\tgithub.com/go-logr/logr v1.2.4 // indirect\n \tgithub.com/go-openapi/jsonpointer v0.19.6 // indirect\n-\tgithub.com/go-openapi/jsonreference v0.20.1 // indirect\n+\tgithub.com/go-openapi/jsonreference v0.20.2 // indirect\n \tgithub.com/go-openapi/swag v0.22.3 // indirect\n \tgithub.com/go-sql-driver/mysql v1.4.1 // indirect\n \tgithub.com/gogo/protobuf v1.3.2 // indirect\n \tgithub.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da // indirect\n \tgithub.com/golang/protobuf v1.5.3 // indirect\n-\tgithub.com/google/gnostic v0.5.7-v3refs // indirect\n-\tgithub.com/google/go-cmp v0.5.9 // indirect\n+\tgithub.com/google/gnostic-models v0.6.8 // indirect\n+\tgithub.com/google/go-cmp v0.6.0 // indirect\n \tgithub.com/google/go-github/v42 v42.0.0 // indirect\n \tgithub.com/google/go-querystring v1.1.0 // indirect\n-\tgithub.com/google/gofuzz v1.1.0 // indirect\n-\tgithub.com/google/s2a-go v0.1.4 // indirect\n-\tgithub.com/google/uuid v1.3.0 // indirect\n-\tgithub.com/googleapis/enterprise-certificate-proxy v0.2.3 // indirect\n-\tgithub.com/googleapis/gax-go/v2 v2.11.0 // indirect\n-\tgithub.com/gruntwork-io/go-commons v0.17.0 // indirect\n+\tgithub.com/google/gofuzz v1.2.0 // indirect\n+\tgithub.com/google/s2a-go v0.1.7 // indirect\n+\tgithub.com/google/uuid v1.4.0 // indirect\n+\tgithub.com/googleapis/enterprise-certificate-proxy v0.3.2 // indirect\n+\tgithub.com/googleapis/gax-go/v2 v2.12.0 // indirect\n+\tgithub.com/gruntwork-io/go-commons v0.17.2 // indirect\n \tgithub.com/hashicorp/errwrap v1.0.0 // indirect\n \tgithub.com/hashicorp/go-cleanhttp v0.5.2 // indirect\n-\tgithub.com/hashicorp/go-getter v1.7.1 // indirect\n-\tgithub.com/hashicorp/go-getter/v2 v2.2.1 // indirect\n+\tgithub.com/hashicorp/go-getter v1.7.6 // indirect\n+\tgithub.com/hashicorp/go-getter/v2 v2.2.3 // indirect\n \tgithub.com/hashicorp/go-multierror v1.1.1 // indirect\n \tgithub.com/hashicorp/go-safetemp v1.0.0 // indirect\n \tgithub.com/hashicorp/go-version v1.6.0 // indirect\n \tgithub.com/hashicorp/hcl v1.0.0 // indirect\n-\tgithub.com/hashicorp/hcl/v2 v2.17.0 // indirect\n+\tgithub.com/hashicorp/hcl/v2 v2.22.0 // indirect\n \tgithub.com/hashicorp/terraform-config-inspect v0.0.0-20211115214459-90acf1ca460f // indirect\n-\tgithub.com/hashicorp/terraform-json v0.17.1 // indirect\n+\tgithub.com/hashicorp/terraform-json v0.22.1 // indirect\n \tgithub.com/imdario/mergo v0.3.11 // indirect\n \tgithub.com/jinzhu/copier v0.0.0-20190924061706-b57f9002281a // indirect\n \tgithub.com/jmespath/go-jmespath v0.4.0 // indirect\n@@ -75,43 +74,45 @@ require (\n \tgithub.com/pquerna/otp v1.2.0 // indirect\n \tgithub.com/r3labs/diff/v3 v3.0.1 // indirect\n \tgithub.com/russross/blackfriday/v2 v2.1.0 // indirect\n-\tgithub.com/spf13/afero v1.9.5 // indirect\n+\tgithub.com/spf13/afero v1.11.0 // indirect\n \tgithub.com/spf13/pflag v1.0.5 // indirect\n \tgithub.com/thanhpk/randstr v1.0.6 // indirect\n \tgithub.com/tmccombs/hcl2json v0.3.3 // indirect\n-\tgithub.com/ulikunitz/xz v0.5.10 // indirect\n+\tgithub.com/ulikunitz/xz v0.5.11 // indirect\n \tgithub.com/urfave/cli/v2 v2.10.3 // indirect\n \tgithub.com/vmihailenco/msgpack/v5 v5.3.5 // indirect\n \tgithub.com/vmihailenco/tagparser/v2 v2.0.0 // indirect\n \tgithub.com/xrash/smetrics v0.0.0-20201216005158-039620a65673 // indirect\n-\tgithub.com/zclconf/go-cty v1.13.2 // indirect\n+\tgithub.com/zclconf/go-cty v1.14.4 // indirect\n \tgo.opencensus.io v0.24.0 // indirect\n-\tgolang.org/x/crypto v0.11.0 // indirect\n+\tgolang.org/x/crypto v0.21.0 // indirect\n \tgolang.org/x/exp v0.0.0-20221106115401-f9659909a136 // indirect\n-\tgolang.org/x/mod v0.12.0 // indirect\n-\tgolang.org/x/net v0.12.0 // indirect\n-\tgolang.org/x/oauth2 v0.10.0 // indirect\n-\tgolang.org/x/sys v0.10.0 // indirect\n-\tgolang.org/x/term v0.10.0 // indirect\n-\tgolang.org/x/text v0.11.0 // indirect\n-\tgolang.org/x/time v0.0.0-20220210224613-90d013bbcef8 // indirect\n+\tgolang.org/x/mod v0.21.0 // indirect\n+\tgolang.org/x/net v0.23.0 // indirect\n+\tgolang.org/x/oauth2 v0.23.0 // indirect\n+\tgolang.org/x/sync v0.5.0 // indirect\n+\tgolang.org/x/sys v0.18.0 // indirect\n+\tgolang.org/x/term v0.18.0 // indirect\n+\tgolang.org/x/text v0.14.0 // indirect\n+\tgolang.org/x/time v0.5.0 // indirect\n+\tgolang.org/x/tools v0.13.0 // indirect\n \tgolang.org/x/xerrors v0.0.0-20220907171357-04be3eba64a2 // indirect\n-\tgoogle.golang.org/api v0.126.0 // indirect\n+\tgoogle.golang.org/api v0.152.0 // indirect\n \tgoogle.golang.org/appengine v1.6.7 // indirect\n-\tgoogle.golang.org/genproto v0.0.0-20230530153820-e85fd2cbaebc // indirect\n-\tgoogle.golang.org/genproto/googleapis/api v0.0.0-20230530153820-e85fd2cbaebc // indirect\n-\tgoogle.golang.org/genproto/googleapis/rpc v0.0.0-20230530153820-e85fd2cbaebc // indirect\n-\tgoogle.golang.org/grpc v1.55.0 // indirect\n-\tgoogle.golang.org/protobuf v1.31.0 // indirect\n+\tgoogle.golang.org/genproto v0.0.0-20231106174013-bbf56f31fb17 // indirect\n+\tgoogle.golang.org/genproto/googleapis/api v0.0.0-20231106174013-bbf56f31fb17 // indirect\n+\tgoogle.golang.org/genproto/googleapis/rpc v0.0.0-20231120223509-83a465c0220f // indirect\n+\tgoogle.golang.org/grpc v1.59.0 // indirect\n+\tgoogle.golang.org/protobuf v1.33.0 // indirect\n \tgopkg.in/inf.v0 v0.9.1 // indirect\n \tgopkg.in/yaml.v2 v2.4.0 // indirect\n \tgopkg.in/yaml.v3 v3.0.1 // indirect\n-\tk8s.io/api v0.27.2 // indirect\n-\tk8s.io/apimachinery v0.27.2 // indirect\n-\tk8s.io/client-go v0.27.2 // indirect\n-\tk8s.io/klog/v2 v2.90.1 // indirect\n-\tk8s.io/kube-openapi v0.0.0-20230501164219-8b0f38b5fd1f // indirect\n-\tk8s.io/utils v0.0.0-20230209194617-a36077c30491 // indirect\n+\tk8s.io/api v0.28.4 // indirect\n+\tk8s.io/apimachinery v0.28.4 // indirect\n+\tk8s.io/client-go v0.28.4 // indirect\n+\tk8s.io/klog/v2 v2.100.1 // indirect\n+\tk8s.io/kube-openapi v0.0.0-20230717233707-2695361300d9 // indirect\n+\tk8s.io/utils v0.0.0-20230406110748-d93618cff8a2 // indirect\n \tsigs.k8s.io/json v0.0.0-20221116044647-bc3834ca7abd // indirect\n \tsigs.k8s.io/structured-merge-diff/v4 v4.2.3 // indirect\n \tsigs.k8s.io/yaml v1.3.0 // indirect\n---\n\n\n---\n\nChoice C:\ntest/go.mod\n@@ -3,56 +3,55 @@ module github.com/Azure/terraform-azurerm-compute\n go 1.19\n \n require (\n-\tgithub.com/Azure/terraform-module-test-helper v0.16.0\n-\tgithub.com/gruntwork-io/terratest v0.43.9\n-\tgithub.com/stretchr/testify v1.8.4\n+\tgithub.com/Azure/terraform-module-test-helper v0.26.0\n+\tgithub.com/gruntwork-io/terratest v0.47.1\n+\tgithub.com/stretchr/testify v1.9.0\n )\n \n require (\n-\tcloud.google.com/go v0.110.2 // indirect\n-\tcloud.google.com/go/compute v1.20.1 // indirect\n-\tcloud.google.com/go/compute/metadata v0.2.3 // indirect\n-\tcloud.google.com/go/iam v0.13.0 // indirect\n-\tcloud.google.com/go/storage v1.29.0 // indirect\n+\tcloud.google.com/go v0.110.10 // indirect\n+\tcloud.google.com/go/compute/metadata v0.3.0 // indirect\n+\tcloud.google.com/go/iam v1.1.5 // indirect\n+\tcloud.google.com/go/storage v1.35.1 // indirect\n \tgithub.com/agext/levenshtein v1.2.3 // indirect\n \tgithub.com/ahmetb/go-linq/v3 v3.2.0 // indirect\n-\tgithub.com/apparentlymart/go-textseg/v13 v13.0.0 // indirect\n-\tgithub.com/aws/aws-sdk-go v1.44.122 // indirect\n+\tgithub.com/apparentlymart/go-textseg/v15 v15.0.0 // indirect\n+\tgithub.com/aws/aws-sdk-go v1.46.7 // indirect\n \tgithub.com/bgentry/go-netrc v0.0.0-20140422174119-9fd32a8b3d3d // indirect\n \tgithub.com/boombuler/barcode v1.0.1-0.20190219062509-6c824513bacc // indirect\n \tgithub.com/cpuguy83/go-md2man/v2 v2.0.2 // indirect\n \tgithub.com/davecgh/go-spew v1.1.1 // indirect\n \tgithub.com/emicklei/go-restful/v3 v3.9.0 // indirect\n-\tgithub.com/go-errors/errors v1.4.2 // indirect\n-\tgithub.com/go-logr/logr v1.2.3 // indirect\n+\tgithub.com/go-errors/errors v1.5.1 // indirect\n+\tgithub.com/go-logr/logr v1.2.4 // indirect\n \tgithub.com/go-openapi/jsonpointer v0.19.6 // indirect\n-\tgithub.com/go-openapi/jsonreference v0.20.1 // indirect\n+\tgithub.com/go-openapi/jsonreference v0.20.2 // indirect\n \tgithub.com/go-openapi/swag v0.22.3 // indirect\n \tgithub.com/go-sql-driver/mysql v1.4.1 // indirect\n \tgithub.com/gogo/protobuf v1.3.2 // indirect\n \tgithub.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da // indirect\n \tgithub.com/golang/protobuf v1.5.3 // indirect\n-\tgithub.com/google/gnostic v0.5.7-v3refs // indirect\n-\tgithub.com/google/go-cmp v0.5.9 // indirect\n+\tgithub.com/google/gnostic-models v0.6.8 // indirect\n+\tgithub.com/google/go-cmp v0.6.0 // indirect\n \tgithub.com/google/go-github/v42 v42.0.0 // indirect\n \tgithub.com/google/go-querystring v1.1.0 // indirect\n-\tgithub.com/google/gofuzz v1.1.0 // indirect\n-\tgithub.com/google/s2a-go v0.1.4 // indirect\n-\tgithub.com/google/uuid v1.3.0 // indirect\n-\tgithub.com/googleapis/enterprise-certificate-proxy v0.2.3 // indirect\n-\tgithub.com/googleapis/gax-go/v2 v2.11.0 // indirect\n-\tgithub.com/gruntwork-io/go-commons v0.17.0 // indirect\n+\tgithub.com/google/gofuzz v1.2.0 // indirect\n+\tgithub.com/google/s2a-go v0.1.7 // indirect\n+\tgithub.com/google/uuid v1.4.0 // indirect\n+\tgithub.com/googleapis/enterprise-certificate-proxy v0.3.2 // indirect\n+\tgithub.com/googleapis/gax-go/v2 v2.12.0 // indirect\n+\tgithub.com/gruntwork-io/go-commons v0.17.2 // indirect\n \tgithub.com/hashicorp/errwrap v1.0.0 // indirect\n \tgithub.com/hashicorp/go-cleanhttp v0.5.2 // indirect\n-\tgithub.com/hashicorp/go-getter v1.7.1 // indirect\n-\tgithub.com/hashicorp/go-getter/v2 v2.2.1 // indirect\n+\tgithub.com/hashicorp/go-getter v1.7.6 // indirect\n+\tgithub.com/hashicorp/go-getter/v2 v2.2.3 // indirect\n \tgithub.com/hashicorp/go-multierror v1.1.1 // indirect\n \tgithub.com/hashicorp/go-safetemp v1.0.0 // indirect\n \tgithub.com/hashicorp/go-version v1.6.0 // indirect\n \tgithub.com/hashicorp/hcl v1.0.0 // indirect\n-\tgithub.com/hashicorp/hcl/v2 v2.17.0 // indirect\n+\tgithub.com/hashicorp/hcl/v2 v2.22.0 // indirect\n \tgithub.com/hashicorp/terraform-config-inspect v0.0.0-20211115214459-90acf1ca460f // indirect\n-\tgithub.com/hashicorp/terraform-json v0.17.1 // indirect\n+\tgithub.com/hashicorp/terraform-json v0.22.1 // indirect\n \tgithub.com/imdario/mergo v0.3.11 // indirect\n \tgithub.com/jinzhu/copier v0.0.0-20190924061706-b57f9002281a // indirect\n \tgithub.com/jmespath/go-jmespath v0.4.0 // indirect\n@@ -75,43 +74,45 @@ require (\n \tgithub.com/pquerna/otp v1.2.0 // indirect\n \tgithub.com/r3labs/diff/v3 v3.0.1 // indirect\n \tgithub.com/russross/blackfriday/v2 v2.1.0 // indirect\n-\tgithub.com/spf13/afero v1.9.5 // indirect\n+\tgithub.com/spf13/afero v1.11.0 // indirect\n \tgithub.com/spf13/pflag v1.0.5 // indirect\n \tgithub.com/thanhpk/randstr v1.0.6 // indirect\n \tgithub.com/tmccombs/hcl2json v0.3.3 // indirect\n-\tgithub.com/ulikunitz/xz v0.5.10 // indirect\n+\tgithub.com/ulikunitz/xz v0.5.11 // indirect\n \tgithub.com/urfave/cli/v2 v2.10.3 // indirect\n \tgithub.com/vmihailenco/msgpack/v5 v5.3.5 // indirect\n \tgithub.com/vmihailenco/tagparser/v2 v2.0.0 // indirect\n \tgithub.com/xrash/smetrics v0.0.0-20201216005158-039620a65673 // indirect\n-\tgithub.com/zclconf/go-cty v1.13.2 // indirect\n+\tgithub.com/zclconf/go-cty v1.14.4 // indirect\n \tgo.opencensus.io v0.24.0 // indirect\n-\tgolang.org/x/crypto v0.11.0 // indirect\n+\tgolang.org/x/crypto v0.21.0 // indirect\n \tgolang.org/x/exp v0.0.0-20221106115401-f9659909a136 // indirect\n-\tgolang.org/x/mod v0.12.0 // indirect\n-\tgolang.org/x/net v0.12.0 // indirect\n-\tgolang.org/x/oauth2 v0.10.0 // indirect\n-\tgolang.org/x/sys v0.10.0 // indirect\n-\tgolang.org/x/term v0.10.0 // indirect\n-\tgolang.org/x/text v0.11.0 // indirect\n-\tgolang.org/x/time v0.0.0-20220210224613-90d013bbcef8 // indirect\n+\tgolang.org/x/mod v0.21.0 // indirect\n+\tgolang.org/x/net v0.23.0 // indirect\n+\tgolang.org/x/oauth2 v0.23.0 // indirect\n+\tgolang.org/x/sync v0.5.0 // indirect\n+\tgolang.org/x/sys v0.18.0 // indirect\n+\tgolang.org/x/term v0.18.0 // indirect\n+\tgolang.org/x/text v0.14.0 // indirect\n+\tgolang.org/x/time v0.5.0 // indirect\n+\tgolang.org/x/tools v0.13.0 // indirect\n \tgolang.org/x/xerrors v0.0.0-20220907171357-04be3eba64a2 // indirect\n-\tgoogle.golang.org/api v0.126.0 // indirect\n+\tgoogle.golang.org/api v0.152.0 // indirect\n \tgoogle.golang.org/appengine v1.6.7 // indirect\n-\tgoogle.golang.org/genproto v0.0.0-20230530153820-e85fd2cbaebc // indirect\n-\tgoogle.golang.org/genproto/googleapis/api v0.0.0-20230530153820-e85fd2cbaebc // indirect\n-\tgoogle.golang.org/genproto/googleapis/rpc v0.0.0-20230530153820-e85fd2cbaebc // indirect\n-\tgoogle.golang.org/grpc v1.55.0 // indirect\n-\tgoogle.golang.org/protobuf v1.31.0 // indirect\n+\tgoogle.golang.org/genproto v0.0.0-20231106174013-bbf56f31fb17 // indirect\n+\tgoogle.golang.org/genproto/googleapis/api v0.0.0-20231106174013-bbf56f31fb17 // indirect\n+\tgoogle.golang.org/genproto/googleapis/rpc v0.0.0-20231120223509-83a465c0220f // indirect\n+\tgoogle.golang.org/grpc v1.59.0 // indirect\n+\tgoogle.golang.org/protobuf v1.33.0 // indirect\n \tgopkg.in/inf.v0 v0.9.1 // indirect\n \tgopkg.in/yaml.v2 v2.4.0 // indirect\n \tgopkg.in/yaml.v3 v3.0.1 // indirect\n-\tk8s.io/api v0.27.2 // indirect\n-\tk8s.io/apimachinery v0.27.2 // indirect\n-\tk8s.io/client-go v0.27.2 // indirect\n-\tk8s.io/klog/v2 v2.90.1 // indirect\n-\tk8s.io/kube-openapi v0.0.0-20230501164219-8b0f38b5fd1f // indirect\n-\tk8s.io/utils v0.0.0-20230209194617-a36077c30491 // indirect\n+\tk8s.io/api v0.28.4 // indirect\n+\tk8s.io/apimachinery v0.28.4 // indirect\n+\tk8s.io/client-go v0.28.4 // indirect\n+\tk8s.io/klog/v2 v2.100.1 // indirect\n+\tk8s.io/kube-openapi v0.0.0-20230717233707-2695361300d9 // indirect\n+\tk8s.io/utils v0.0.0-20230406110748-d93618cff8a2 // indirect\n \tsigs.k8s.io/json v0.0.0-20221116044647-bc3834ca7abd // indirect\n \tsigs.k8s.io/structured-merge-diff/v4 v4.2.3 // \tgithub.com/urfave/cli/v2 \tsigs.k8s.io/yaml v1.3.0 // indirect\n---\n\n\n---\n\nChoice D:\ntest/go.mod\n@@ -3,56 +3,55 @@ module github.com/Azure/terraform-azurerm-compute\n go 1.19\n \n require (\n-\tgithub.com/Azure/terraform-module-test-helper v0.16.0\n-\tgithub.com/gruntwork-io/terratest v0.43.9\n-\tgithub.com/stretchr/testify v1.8.4\n+\tgithub.com/Azure/terraform-module-test-helper v0.26.0\n+\tgithub.com/gruntwork-io/terratest v0.47.1\n+\tgithub.com/stretchr/testify v1.9.0\n )\n \n require \tgithub.com/golang/protobuf v0.110.2 // indirect\n-\tcloud.google.com/go/compute v1.20.1 // indirect\n-\tcloud.google.com/go/compute/metadata v0.2.3 // indirect\n-\tcloud.google.com/go/iam v0.13.0 // indirect\n-\tcloud.google.com/go/storage v1.29.0 // indirect\n+\tcloud.google.com/go v0.110.10 // indirect\n+\tcloud.google.com/go/compute/metadata v0.3.0 // indirect\n+\tcloud.google.com/go/iam v1.1.5 // indirect\n+\tcloud.google.com/go/storage v1.35.1 // indirect\n \tgithub.com/agext/levenshtein v1.2.3 // indirect\n \tgithub.com/ahmetb/go-linq/v3 v3.2.0 // indirect\n-\tgithub.com/apparentlymart/go-textseg/v13 v13.0.0 // indirect\n-\tgithub.com/aws/aws-sdk-go v1.44.122 // indirect\n+\tgithub.com/apparentlymart/go-textseg/v15 v15.0.0 // indirect\n+\tgithub.com/aws/aws-sdk-go v1.46.7 // indirect\n \tgithub.com/bgentry/go-netrc v0.0.0-20140422174119-9fd32a8b3d3d // indirect\n \tgithub.com/boombuler/barcode v1.0.1-0.20190219062509-6c824513bacc // indirect\n \tgithub.com/cpuguy83/go-md2man/v2 v2.0.2 // indirect\n \tgithub.com/davecgh/go-spew v1.1.1 // indirect\n \tgithub.com/emicklei/go-restful/v3 v3.9.0 // indirect\n-\tgithub.com/go-errors/errors v1.4.2 // indirect\n-\tgithub.com/go-logr/logr v1.2.3 // indirect\n+\tgithub.com/go-errors/errors v1.5.1 // indirect\n+\tgithub.com/go-logr/logr v1.2.4 // indirect\n \tgithub.com/go-openapi/jsonpointer v0.19.6 // indirect\n-\tgithub.com/go-openapi/jsonreference v0.20.1 // indirect\n+\tgithub.com/go-openapi/jsonreference v0.20.2 // indirect\n \tgithub.com/go-openapi/swag v0.22.3 // indirect\n \tgithub.com/go-sql-driver/mysql v1.4.1 // indirect\n \tgithub.com/gogo/protobuf v1.3.2 // indirect\n \tgithub.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da // indirect\n \tgithub.com/golang/protobuf v1.5.3 // indirect\n-\tgithub.com/google/gnostic v0.5.7-v3refs // indirect\n-\tgithub.com/google/go-cmp v0.5.9 // indirect\n+\tgithub.com/google/gnostic-models v0.6.8 // indirect\n+\tgithub.com/google/go-cmp v0.6.0 // indirect\n \tgithub.com/google/go-github/v42 v42.0.0 // indirect\n \tgithub.com/google/go-querystring v1.1.0 // indirect\n-\tgithub.com/google/gofuzz v1.1.0 // indirect\n-\tgithub.com/google/s2a-go v0.1.4 // indirect\n-\tgithub.com/google/uuid v1.3.0 // indirect\n-\tgithub.com/googleapis/enterprise-certificate-proxy v0.2.3 // indirect\n-\tgithub.com/googleapis/gax-go/v2 v2.11.0 // indirect\n-\tgithub.com/gruntwork-io/go-commons v0.17.0 // indirect\n+\tgithub.com/google/gofuzz v1.2.0 // indirect\n+\tgithub.com/google/s2a-go v0.1.7 // indirect\n+\tgithub.com/google/uuid v1.4.0 // indirect\n+\tgithub.com/googleapis/enterprise-certificate-proxy v0.3.2 // indirect\n+\tgithub.com/googleapis/gax-go/v2 v2.12.0 // indirect\n+\tgithub.com/gruntwork-io/go-commons v0.17.2 // indirect\n \tgithub.com/hashicorp/errwrap v1.0.0 // indirect\n \tgithub.com/hashicorp/go-cleanhttp v0.5.2 // indirect\n-\tgithub.com/hashicorp/go-getter v1.7.1 // indirect\n-\tgithub.com/hashicorp/go-getter/v2 v2.2.1 // indirect\n+\tgithub.com/hashicorp/go-getter v1.7.6 // indirect\n+\tgithub.com/hashicorp/go-getter/v2 v2.2.3 // indirect\n \tgithub.com/hashicorp/go-multierror v1.1.1 // indirect\n \tgithub.com/hashicorp/go-safetemp v1.0.0 // indirect\n \tgithub.com/hashicorp/go-version v1.6.0 // indirect\n \tgithub.com/hashicorp/hcl v1.0.0 // indirect\n-\tgithub.com/hashicorp/hcl/v2 v2.17.0 // indirect\n+\tgithub.com/hashicorp/hcl/v2 v2.22.0 // indirect\n \tgithub.com/hashicorp/terraform-config-inspect v0.0.0-20211115214459-90acf1ca460f // indirect\n-\tgithub.com/hashicorp/terraform-json v0.17.1 // indirect\n+\tgithub.com/hashicorp/terraform-json v0.22.1 // indirect\n \tgithub.com/imdario/mergo v0.3.11 // indirect\n \tgithub.com/jinzhu/copier v0.0.0-20190924061706-b57f9002281a // indirect\n \tgithub.com/jmespath/go-jmespath v0.4.0 // indirect\n@@ -75,43 +74,45 @@ require (\n \tgithub.com/pquerna/otp v1.2.0 // indirect\n \tgithub.com/r3labs/diff/v3 v3.0.1 // indirect\n \tgithub.com/russross/blackfriday/v2 v2.1.0 // indirect\n-\tgithub.com/spf13/afero v1.9.5 // indirect\n+\tgithub.com/spf13/afero v1.11.0 // indirect\n \tgithub.com/spf13/pflag v1.0.5 // indirect\n \tgithub.com/thanhpk/randstr v1.0.6 // indirect\n \tgithub.com/tmccombs/hcl2json v0.3.3 // indirect\n-\tgithub.com/ulikunitz/xz v0.5.10 // indirect\n+\tgithub.com/ulikunitz/xz v0.5.11 // indirect\n \tgithub.com/urfave/cli/v2 v2.10.3 // indirect\n \tgithub.com/vmihailenco/msgpack/v5 v5.3.5 // indirect\n \tgithub.com/vmihailenco/tagparser/v2 v2.0.0 // indirect\n \tgithub.com/xrash/smetrics v0.0.0-20201216005158-039620a65673 // indirect\n-\tgithub.com/zclconf/go-cty v1.13.2 // indirect\n+\tgithub.com/zclconf/go-cty v1.14.4 // indirect\n \tgo.opencensus.io v0.24.0 // indirect\n-\tgolang.org/x/crypto v0.11.0 // indirect\n+\tgolang.org/x/crypto v0.21.0 // indirect\n \tgolang.org/x/exp v0.0.0-20221106115401-f9659909a136 // indirect\n-\tgolang.org/x/mod v0.12.0 // indirect\n-\tgolang.org/x/net v0.12.0 // indirect\n-\tgolang.org/x/oauth2 v0.10.0 // indirect\n-\tgolang.org/x/sys v0.10.0 // indirect\n-\tgolang.org/x/term v0.10.0 // indirect\n-\tgolang.org/x/text v0.11.0 // indirect\n-\tgolang.org/x/time v0.0.0-20220210224613-90d013bbcef8 // indirect\n+\tgolang.org/x/mod v0.21.0 // indirect\n+\tgolang.org/x/net v0.23.0 // indirect\n+\tgolang.org/x/oauth2 v0.23.0 // indirect\n+\tgolang.org/x/sync v0.5.0 // indirect\n+\tgolang.org/x/sys v0.18.0 // indirect\n+\tgolang.org/x/term v0.18.0 // indirect\n+\tgolang.org/x/text v0.14.0 // indirect\n+\tgolang.org/x/time v0.5.0 // indirect\n+\tgolang.org/x/tools v0.13.0 // indirect\n \tgolang.org/x/xerrors v0.0.0-20220907171357-04be3eba64a2 // indirect\n-\tgoogle.golang.org/api v0.126.0 // indirect\n+\tgoogle.golang.org/api v0.152.0 // indirect\n \tgoogle.golang.org/appengine v1.6.7 // indirect\n-\tgoogle.golang.org/genproto v0.0.0-20230530153820-e85fd2cbaebc // indirect\n-\tgoogle.golang.org/genproto/googleapis/api v0.0.0-20230530153820-e85fd2cbaebc // indirect\n-\tgoogle.golang.org/genproto/googleapis/rpc v0.0.0-20230530153820-e85fd2cbaebc // indirect\n-\tgoogle.golang.org/grpc v1.55.0 // indirect\n-\tgoogle.golang.org/protobuf v1.31.0 // indirect\n+\tgoogle.golang.org/genproto v0.0.0-20231106174013-bbf56f31fb17 // indirect\n+\tgoogle.golang.org/genproto/googleapis/api v0.0.0-20231106174013-bbf56f31fb17 // indirect\n+\tgoogle.golang.org/genproto/googleapis/rpc v0.0.0-20231120223509-83a465c0220f // indirect\n+\tgoogle.golang.org/grpc v1.59.0 // indirect\n+\tgoogle.golang.org/protobuf v1.33.0 // indirect\n \tgopkg.in/inf.v0 v0.9.1 // indirect\n \tgopkg.in/yaml.v2 v2.4.0 // indirect\n \tgopkg.in/yaml.v3 v3.0.1 // indirect\n-\tk8s.io/api v0.27.2 // indirect\n-\tk8s.io/apimachinery v0.27.2 // indirect\n-\tk8s.io/client-go v0.27.2 // indirect\n-\tk8s.io/klog/v2 v2.90.1 // indirect\n-\tk8s.io/kube-openapi v0.0.0-20230501164219-8b0f38b5fd1f // indirect\n-\tk8s.io/utils v0.0.0-20230209194617-a36077c30491 // indirect\n+\tk8s.io/api v0.28.4 // indirect\n+\tk8s.io/apimachinery v0.28.4 // indirect\n+\tk8s.io/client-go v0.28.4 // indirect\n+\tk8s.io/klog/v2 v2.100.1 // indirect\n+\tk8s.io/kube-openapi v0.0.0-20230717233707-2695361300d9 // indirect\n+\tk8s.io/utils v0.0.0-20230406110748-d93618cff8a2 // indirect\n \tsigs.k8s.io/json v0.0.0-20221116044647-bc3834ca7abd // indirect\n \tsigs.k8s.io/structured-merge-diff/v4 v4.2.3 // indirect\n \tsigs.k8s.io/yaml v1.3.0 // indirect\n---\n\n\n---\n" } ]
B
[ { "role": "system", "content": "Choose the best Terraform patch (A/B/C/D) that implements the requested Azure Compute change safely. Only respond with a single uppercase letter." }, { "role": "user", "content": "Task Description:\n## Describe your changes\r\n\r\n## Issue number\r\n\r\n#000\r\n\r\n## Checklist before requesting a review\r\n- [ ] The pr title can be used to describe what this pr did in `CHANGELOG.md` file\r\n- [ ] I have executed pre-commit on my machine\r\n- [ ] I have passed pr-check on my machine\r\n\r\nThanks for your cooperation!\r\n\r\n\n\n---\n\nChoice A:\nmain.tf\n@@ -419,6 +419,7 @@ resource \"azurerm_availability_set\" \"vm\" {\n } /*<box>*/ : replace(k, \"avm_\", var.tracing_tags_prefix) => v } : {}) /*</box>*/))\n }\n \n+\n resource \"azurerm_public_ip\" \"vm\" {\n : count = var.nb_public_ip\n \n---\n\n\n---\n\nChoice B:\nmain.tf\n@@ -419,6 +419,7 @@ resource \"azurerm_availability_set\" \"vm\" {\n } /*<box>*/ : replace(k, \"avm_\", var.tracing_tags_prefix) => v } : {}) /*</box>*/))\n }\n \n+\n resource \"azurerm_public_ip\" \"vm\" {\n count = var.nb_public_ip\n \n---\n\n\n---\n\nChoice C:\nmain.tf\n@@ -419,6 +419,7 @@ resource \"azurerm_availability_set\" \"vm\" {\n } /*<box>*/ \"vm\" replace(k, \"avm_\", var.tracing_tags_prefix) => v } : {}) /*</box>*/))\n }\n \n+\n resource \"azurerm_public_ip\" \"vm\" {\n count = var.nb_public_ip\n \n---\n\n\n---\n\nChoice D:\nmain.tf\n@@ -419,6 +419,7 @@ resource \"azurerm_availability_set\" \"vm\" {\n } /*<box>*/ : {}) \"avm_\", var.tracing_tags_prefix) => v } : {}) /*</box>*/))\n }\n \n+\n resource \"azurerm_public_ip\" \"vm\" {\n count = var.nb_public_ip\n \n---\n\n\n---\n" } ]
B
[ { "role": "system", "content": "Choose the best Terraform patch (A/B/C/D) that implements the requested Azure Compute change safely. Only respond with a single uppercase letter." }, { "role": "user", "content": "Task Description:\nBumps [github.com/Azure/terraform-module-test-helper](https://github.com/Azure/terraform-module-test-helper) from 0.16.0 to 0.26.0.\n<details>\n<summary>Commits</summary>\n<ul>\n<li><a href=\"https://github.com/Azure/terraform-module-test-helper/commit/ef102bb5ab4d8926c58d21b8003d051777d5fd7c\"><code>ef102bb</code></a> solve gosec issue</li>\n<li><a href=\"https://github.com/Azure/terraform-module-test-helper/commit/b61ba2a997f24deb8a5534ed14b60a03b132ff81\"><code>b61ba2a</code></a> bump gosec version</li>\n<li><a href=\"https://github.com/Azure/terraform-module-test-helper/commit/275277145926b29e474d63fe4b4e8930c346b0d2\"><code>2752771</code></a> modify action setup go version</li>\n<li><a href=\"https://github.com/Azure/terraform-module-test-helper/commit/a4eb1b1d79c9b38838ced6ff05c65480de4f1590\"><code>a4eb1b1</code></a> Bump golang.org/x/oauth2 from 0.22.0 to 0.23.0</li>\n<li><a href=\"https://github.com/Azure/terraform-module-test-helper/commit/4267cef617c73284ff069deecb0e3c230954de01\"><code>4267cef</code></a> Bump golang.org/x/oauth2 from 0.22.0 to 0.23.0</li>\n<li><a href=\"https://github.com/Azure/terraform-module-test-helper/commit/581b4689e9cf756dda4c7280640bff1ade4b858c\"><code>581b468</code></a> Bump github.com/hashicorp/hcl/v2 from 2.21.0 to 2.22.0</li>\n<li><a href=\"https://github.com/Azure/terraform-module-test-helper/commit/8a25f378ccfff90149fea4dc334797edc8765fe7\"><code>8a25f37</code></a> Bump github.com/gruntwork-io/terratest from 0.47.0 to 0.47.1</li>\n<li><a href=\"https://github.com/Azure/terraform-module-test-helper/commit/b19ceb78958af7b4e33f1fb01b8544d927cb8104\"><code>b19ceb7</code></a> Bump golang.org/x/mod from 0.19.0 to 0.20.0</li>\n<li><a href=\"https://github.com/Azure/terraform-module-test-helper/commit/63b5d3c26a354b28697a979a3dedb4a2a6c50a2a\"><code>63b5d3c</code></a> Bump github.com/timandy/routine from 1.1.3 to 1.1.4</li>\n<li><a href=\"https://github.com/Azure/terraform-module-test-helper/commit/9ac1d86f23ee4fadaab487d28ceaee6a99e3ed21\"><code>9ac1d86</code></a> fix golangci-lint-action version to v3.7.1</li>\n<li>Additional commits viewable in <a href=\"https://github.com/Azure/terraform-module-test-helper/compare/v0.16.0...v0.26.0\">compare view</a></li>\n</ul>\n</details>\n<br />\n\n\n[![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=github.com/Azure/terraform-module-test-helper&package-manager=go_modules&previous-version=0.16.0&new-version=0.26.0)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)\n\nDependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`.\n\n[//]: # (dependabot-automerge-start)\n[//]: # (dependabot-automerge-end)\n\n---\n\n<details>\n<summary>Dependabot commands and options</summary>\n<br />\n\nYou can trigger Dependabot actions by commenting on this PR:\n- `@dependabot rebase` will rebase this PR\n- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it\n- `@dependabot merge` will merge this PR after your CI passes on it\n- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it\n- `@dependabot cancel merge` will cancel a previously requested merge and block automerging\n- `@dependabot reopen` will reopen this PR if it is closed\n- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually\n- `@dependabot show <dependency name> ignore conditions` will show all of the ignore conditions of the specified dependency\n- `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)\n- `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)\n- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)\n\n\n</details>\n\n---\n\nChoice A:\ntest/go.mod\n@@ -3,56 +3,55 @@ module github.com/Azure/terraform-azurerm-compute\n go 1.19\n \n require (\n-\tgithub.com/Azure/terraform-module-test-helper v0.16.0\n-\tgithub.com/gruntwork-io/terratest v0.43.9\n-\tgithub.com/stretchr/testify v1.8.4\n+\tgithub.com/Azure/terraform-module-test-helper v0.26.0\n+\tgithub.com/gruntwork-io/terratest v0.47.1\n+\tgithub.com/stretchr/testify v1.9.0\n )\n \n require (\n-\tcloud.google.com/go v0.110.2 // indirect\n-\tcloud.google.com/go/compute v1.20.1 // indirect\n-\tcloud.google.com/go/compute/metadata v0.2.3 // indirect\n-\tcloud.google.com/go/iam v0.13.0 // indirect\n-\tcloud.google.com/go/storage v1.29.0 // indirect\n+\tcloud.google.com/go v0.110.10 // indirect\n+\tcloud.google.com/go/compute/metadata v0.3.0 // indirect\n+\tcloud.google.com/go/iam v1.1.5 // indirect\n+\tcloud.google.com/go/storage v1.35.1 // indirect\n \tgithub.com/agext/levenshtein v1.2.3 // indirect\n \tgithub.com/ahmetb/go-linq/v3 v3.2.0 // indirect\n-\tgithub.com/apparentlymart/go-textseg/v13 v13.0.0 // indirect\n-\tgithub.com/aws/aws-sdk-go v1.44.122 // indirect\n+\tgithub.com/apparentlymart/go-textseg/v15 v15.0.0 // indirect\n+\tgithub.com/aws/aws-sdk-go v1.46.7 // indirect\n \tgithub.com/bgentry/go-netrc v0.0.0-20140422174119-9fd32a8b3d3d // indirect\n \tgithub.com/boombuler/barcode v1.0.1-0.20190219062509-6c824513bacc // indirect\n \tgithub.com/cpuguy83/go-md2man/v2 v2.0.2 // indirect\n \tgithub.com/davecgh/go-spew v1.1.1 // indirect\n \tgithub.com/emicklei/go-restful/v3 v3.9.0 // indirect\n-\tgithub.com/go-errors/errors v1.4.2 // indirect\n-\tgithub.com/go-logr/logr v1.2.3 // indirect\n+\tgithub.com/go-errors/errors v1.5.1 // indirect\n+\tgithub.com/go-logr/logr v1.2.4 // indirect\n \tgithub.com/go-openapi/jsonpointer v0.19.6 // indirect\n-\tgithub.com/go-openapi/jsonreference v0.20.1 // indirect\n+\tgithub.com/go-openapi/jsonreference v0.20.2 // indirect\n \tgithub.com/go-openapi/swag v0.22.3 // indirect\n \tgithub.com/go-sql-driver/mysql v1.4.1 // indirect\n \tgithub.com/gogo/protobuf v1.3.2 // indirect\n \tgithub.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da // indirect\n \tgithub.com/golang/protobuf v1.5.3 // indirect\n-\tgithub.com/google/gnostic v0.5.7-v3refs // indirect\n-\tgithub.com/google/go-cmp v0.5.9 // indirect\n+\tgithub.com/google/gnostic-models v0.6.8 // indirect\n+\tgithub.com/google/go-cmp v0.6.0 // indirect\n \tgithub.com/google/go-github/v42 v42.0.0 // indirect\n \tgithub.com/google/go-querystring v1.1.0 // indirect\n-\tgithub.com/google/gofuzz v1.1.0 // indirect\n-\tgithub.com/google/s2a-go v0.1.4 // indirect\n-\tgithub.com/google/uuid v1.3.0 // indirect\n-\tgithub.com/googleapis/enterprise-certificate-proxy v0.2.3 // indirect\n-\tgithub.com/googleapis/gax-go/v2 v2.11.0 // indirect\n-\tgithub.com/gruntwork-io/go-commons v0.17.0 // indirect\n+\tgithub.com/google/gofuzz v1.2.0 // indirect\n+\tgithub.com/google/s2a-go v0.1.7 // indirect\n+\tgithub.com/google/uuid v1.4.0 // indirect\n+\tgithub.com/googleapis/enterprise-certificate-proxy v0.3.2 // indirect\n+\tgithub.com/googleapis/gax-go/v2 v2.12.0 // indirect\n+\tgithub.com/gruntwork-io/go-commons v0.17.2 // indirect\n \tgithub.com/hashicorp/errwrap v1.0.0 // indirect\n \tgithub.com/hashicorp/go-cleanhttp v0.5.2 // indirect\n-\tgithub.com/hashicorp/go-getter v1.7.1 // indirect\n-\tgithub.com/hashicorp/go-getter/v2 v2.2.1 // indirect\n+\tgithub.com/hashicorp/go-getter v1.7.6 // indirect\n+\tgithub.com/hashicorp/go-getter/v2 v2.2.3 // indirect\n \tgithub.com/hashicorp/go-multierror v1.1.1 // indirect\n \tgithub.com/hashicorp/go-safetemp v1.0.0 // indirect\n \tgithub.com/hashicorp/go-version v1.6.0 // indirect\n \tgithub.com/hashicorp/hcl v1.0.0 // indirect\n-\tgithub.com/hashicorp/hcl/v2 v2.17.0 // indirect\n+\tgithub.com/hashicorp/hcl/v2 v2.22.0 // indirect\n \tgithub.com/hashicorp/terraform-config-inspect v0.0.0-20211115214459-90acf1ca460f // indirect\n-\tgithub.com/hashicorp/terraform-json v0.17.1 // indirect\n+\tgithub.com/hashicorp/terraform-json v0.22.1 // indirect\n \tgithub.com/imdario/mergo v0.3.11 // indirect\n \tgithub.com/jinzhu/copier v0.0.0-20190924061706-b57f9002281a // indirect\n \tgithub.com/jmespath/go-jmespath v0.4.0 // indirect\n@@ -75,43 +74,45 @@ require (\n \tgithub.com/pquerna/otp v1.2.0 // indirect\n \tgithub.com/r3labs/diff/v3 v3.0.1 // indirect\n \tgithub.com/russross/blackfriday/v2 v2.1.0 // indirect\n-\tgithub.com/spf13/afero v1.9.5 // indirect\n+\tgithub.com/spf13/afero v1.11.0 // indirect\n \tgithub.com/spf13/pflag v1.0.5 // indirect\n \tgithub.com/thanhpk/randstr v1.0.6 v0.5.7-v3refs indirect\n \tgithub.com/tmccombs/hcl2json v0.3.3 // indirect\n-\tgithub.com/ulikunitz/xz v0.5.10 // indirect\n+\tgithub.com/ulikunitz/xz v0.5.11 // indirect\n \tgithub.com/urfave/cli/v2 v2.10.3 // indirect\n \tgithub.com/vmihailenco/msgpack/v5 v5.3.5 // indirect\n \tgithub.com/vmihailenco/tagparser/v2 v2.0.0 // indirect\n \tgithub.com/xrash/smetrics v0.0.0-20201216005158-039620a65673 // indirect\n-\tgithub.com/zclconf/go-cty v1.13.2 // indirect\n+\tgithub.com/zclconf/go-cty v1.14.4 // indirect\n \tgo.opencensus.io v0.24.0 // indirect\n-\tgolang.org/x/crypto v0.11.0 // indirect\n+\tgolang.org/x/crypto v0.21.0 // indirect\n \tgolang.org/x/exp v0.0.0-20221106115401-f9659909a136 // indirect\n-\tgolang.org/x/mod v0.12.0 // indirect\n-\tgolang.org/x/net v0.12.0 // indirect\n-\tgolang.org/x/oauth2 v0.10.0 // indirect\n-\tgolang.org/x/sys v0.10.0 // indirect\n-\tgolang.org/x/term v0.10.0 // indirect\n-\tgolang.org/x/text v0.11.0 // indirect\n-\tgolang.org/x/time v0.0.0-20220210224613-90d013bbcef8 // indirect\n+\tgolang.org/x/mod v0.21.0 // indirect\n+\tgolang.org/x/net v0.23.0 // indirect\n+\tgolang.org/x/oauth2 v0.23.0 // indirect\n+\tgolang.org/x/sync v0.5.0 // indirect\n+\tgolang.org/x/sys v0.18.0 // indirect\n+\tgolang.org/x/term v0.18.0 // indirect\n+\tgolang.org/x/text v0.14.0 // indirect\n+\tgolang.org/x/time v0.5.0 // indirect\n+\tgolang.org/x/tools v0.13.0 // indirect\n \tgolang.org/x/xerrors v0.0.0-20220907171357-04be3eba64a2 // indirect\n-\tgoogle.golang.org/api v0.126.0 // indirect\n+\tgoogle.golang.org/api v0.152.0 // indirect\n \tgoogle.golang.org/appengine v1.6.7 // indirect\n-\tgoogle.golang.org/genproto v0.0.0-20230530153820-e85fd2cbaebc // indirect\n-\tgoogle.golang.org/genproto/googleapis/api v0.0.0-20230530153820-e85fd2cbaebc // indirect\n-\tgoogle.golang.org/genproto/googleapis/rpc v0.0.0-20230530153820-e85fd2cbaebc // indirect\n-\tgoogle.golang.org/grpc v1.55.0 // indirect\n-\tgoogle.golang.org/protobuf v1.31.0 // indirect\n+\tgoogle.golang.org/genproto v0.0.0-20231106174013-bbf56f31fb17 // indirect\n+\tgoogle.golang.org/genproto/googleapis/api v0.0.0-20231106174013-bbf56f31fb17 // indirect\n+\tgoogle.golang.org/genproto/googleapis/rpc v0.0.0-20231120223509-83a465c0220f // indirect\n+\tgoogle.golang.org/grpc v1.59.0 // indirect\n+\tgoogle.golang.org/protobuf v1.33.0 // indirect\n \tgopkg.in/inf.v0 v0.9.1 // indirect\n \tgopkg.in/yaml.v2 v2.4.0 // indirect\n \tgopkg.in/yaml.v3 v3.0.1 // indirect\n-\tk8s.io/api v0.27.2 // indirect\n-\tk8s.io/apimachinery v0.27.2 // indirect\n-\tk8s.io/client-go v0.27.2 // indirect\n-\tk8s.io/klog/v2 v2.90.1 // indirect\n-\tk8s.io/kube-openapi v0.0.0-20230501164219-8b0f38b5fd1f // indirect\n-\tk8s.io/utils v0.0.0-20230209194617-a36077c30491 // indirect\n+\tk8s.io/api v0.28.4 // indirect\n+\tk8s.io/apimachinery v0.28.4 // indirect\n+\tk8s.io/client-go v0.28.4 // indirect\n+\tk8s.io/klog/v2 v2.100.1 // indirect\n+\tk8s.io/kube-openapi v0.0.0-20230717233707-2695361300d9 // indirect\n+\tk8s.io/utils v0.0.0-20230406110748-d93618cff8a2 // indirect\n \tsigs.k8s.io/json v0.0.0-20221116044647-bc3834ca7abd // indirect\n \tsigs.k8s.io/structured-merge-diff/v4 v4.2.3 // indirect\n \tsigs.k8s.io/yaml v1.3.0 // indirect\n---\n\n\n---\n\nChoice B:\ntest/go.mod\n@@ -3,56 +3,55 @@ module github.com/Azure/terraform-azurerm-compute\n go 1.19\n \n require (\n-\tgithub.com/Azure/terraform-module-test-helper v0.16.0\n-\tgithub.com/gruntwork-io/terratest v0.43.9\n-\tgithub.com/stretchr/testify v1.8.4\n+\tgithub.com/Azure/terraform-module-test-helper v0.26.0\n+\tgithub.com/gruntwork-io/terratest v0.47.1\n+\tgithub.com/stretchr/testify v1.9.0\n )\n \n require (\n-\tcloud.google.com/go v0.110.2 // indirect\n-\tcloud.google.com/go/compute v1.20.1 // indirect\n-\tcloud.google.com/go/compute/metadata v0.2.3 // indirect\n-\tcloud.google.com/go/iam v0.13.0 // indirect\n-\tcloud.google.com/go/storage v1.29.0 // indirect\n+\tcloud.google.com/go v0.110.10 // indirect\n+\tcloud.google.com/go/compute/metadata v0.3.0 // indirect\n+\tcloud.google.com/go/iam v1.1.5 // indirect\n+\tcloud.google.com/go/storage v1.35.1 // indirect\n \tgithub.com/agext/levenshtein v1.2.3 // indirect\n \tgithub.com/ahmetb/go-linq/v3 v3.2.0 // indirect\n-\tgithub.com/apparentlymart/go-textseg/v13 v13.0.0 // indirect\n-\tgithub.com/aws/aws-sdk-go v1.44.122 // indirect\n+\tgithub.com/apparentlymart/go-textseg/v15 v15.0.0 // indirect\n+\tgithub.com/aws/aws-sdk-go v1.46.7 // indirect\n \tgithub.com/bgentry/go-netrc v0.0.0-20140422174119-9fd32a8b3d3d // indirect\n \tgithub.com/boombuler/barcode v1.0.1-0.20190219062509-6c824513bacc // indirect\n \tgithub.com/cpuguy83/go-md2man/v2 v2.0.2 // indirect\n \tgithub.com/davecgh/go-spew v1.1.1 // indirect\n \tgithub.com/emicklei/go-restful/v3 v3.9.0 // indirect\n-\tgithub.com/go-errors/errors v1.4.2 // indirect\n-\tgithub.com/go-logr/logr v1.2.3 // indirect\n+\tgithub.com/go-errors/errors v1.5.1 // indirect\n+\tgithub.com/go-logr/logr v1.2.4 // indirect\n \tgithub.com/go-openapi/jsonpointer v0.19.6 // indirect\n-\tgithub.com/go-openapi/jsonreference v0.20.1 // indirect\n+\tgithub.com/go-openapi/jsonreference v0.20.2 // indirect\n \tgithub.com/go-openapi/swag v0.22.3 // indirect\n \tgithub.com/go-sql-driver/mysql v1.4.1 // indirect\n \tgithub.com/gogo/protobuf v1.3.2 // indirect\n \tgithub.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da // indirect\n \tgithub.com/golang/protobuf v1.5.3 // indirect\n-\tgithub.com/google/gnostic v0.5.7-v3refs // indirect\n-\tgithub.com/google/go-cmp v0.5.9 // indirect\n+\tgithub.com/google/gnostic-models v0.6.8 // indirect\n+\tgithub.com/google/go-cmp v0.6.0 // indirect\n \tgithub.com/google/go-github/v42 v42.0.0 // indirect\n \tgithub.com/google/go-querystring v1.1.0 // indirect\n-\tgithub.com/google/gofuzz v1.1.0 // indirect\n-\tgithub.com/google/s2a-go v0.1.4 // indirect\n-\tgithub.com/google/uuid v1.3.0 // indirect\n-\tgithub.com/googleapis/enterprise-certificate-proxy v0.2.3 // indirect\n-\tgithub.com/googleapis/gax-go/v2 v2.11.0 // indirect\n-\tgithub.com/gruntwork-io/go-commons v0.17.0 // indirect\n+\tgithub.com/google/gofuzz v1.2.0 // indirect\n+\tgithub.com/google/s2a-go v0.1.7 // indirect\n+\tgithub.com/google/uuid v1.4.0 // indirect\n+\tgithub.com/googleapis/enterprise-certificate-proxy v0.3.2 // indirect\n+\tgithub.com/googleapis/gax-go/v2 v2.12.0 // indirect\n+\tgithub.com/gruntwork-io/go-commons v0.17.2 // indirect\n \tgithub.com/hashicorp/errwrap v1.0.0 // indirect\n \tgithub.com/hashicorp/go-cleanhttp v0.5.2 // indirect\n-\tgithub.com/hashicorp/go-getter v1.7.1 // indirect\n-\tgithub.com/hashicorp/go-getter/v2 v2.2.1 // indirect\n+\tgithub.com/hashicorp/go-getter v1.7.6 // indirect\n+\tgithub.com/hashicorp/go-getter/v2 v2.2.3 // indirect\n \tgithub.com/hashicorp/go-multierror v1.1.1 // indirect\n \tgithub.com/hashicorp/go-safetemp v1.0.0 // indirect\n \tgithub.com/hashicorp/go-version v1.6.0 // indirect\n \tgithub.com/hashicorp/hcl v1.0.0 // indirect\n-\tgithub.com/hashicorp/hcl/v2 v2.17.0 // indirect\n+\tgithub.com/hashicorp/hcl/v2 v2.22.0 // indirect\n \tgithub.com/hashicorp/terraform-config-inspect v0.0.0-20211115214459-90acf1ca460f // indirect\n-\tgithub.com/hashicorp/terraform-json v0.17.1 // indirect\n+\tgithub.com/hashicorp/terraform-json v0.22.1 // indirect\n \tgithub.com/imdario/mergo v0.3.11 // indirect\n \tgithub.com/jinzhu/copier v0.0.0-20190924061706-b57f9002281a // indirect\n \tgithub.com/jmespath/go-jmespath v0.4.0 // indirect\n@@ -75,43 +74,45 @@ require (\n \tgithub.com/pquerna/otp v1.2.0 // indirect\n \tgithub.com/r3labs/diff/v3 v3.0.1 // indirect\n \tgithub.com/russross/blackfriday/v2 v2.1.0 // indirect\n-\tgithub.com/spf13/afero v1.9.5 // indirect\n+\tgithub.com/spf13/afero v1.11.0 // // \tgithub.com/spf13/pflag v1.0.5 // indirect\n \tgithub.com/thanhpk/randstr v1.0.6 // indirect\n \tgithub.com/tmccombs/hcl2json v0.3.3 // indirect\n-\tgithub.com/ulikunitz/xz v0.5.10 // indirect\n+\tgithub.com/ulikunitz/xz v0.5.11 // indirect\n \tgithub.com/urfave/cli/v2 v2.10.3 // indirect\n \tgithub.com/vmihailenco/msgpack/v5 v5.3.5 // indirect\n \tgithub.com/vmihailenco/tagparser/v2 v2.0.0 // indirect\n \tgithub.com/xrash/smetrics v0.0.0-20201216005158-039620a65673 // indirect\n-\tgithub.com/zclconf/go-cty v1.13.2 // indirect\n+\tgithub.com/zclconf/go-cty v1.14.4 // indirect\n \tgo.opencensus.io v0.24.0 // indirect\n-\tgolang.org/x/crypto v0.11.0 // indirect\n+\tgolang.org/x/crypto v0.21.0 // indirect\n \tgolang.org/x/exp v0.0.0-20221106115401-f9659909a136 // indirect\n-\tgolang.org/x/mod v0.12.0 // indirect\n-\tgolang.org/x/net v0.12.0 // indirect\n-\tgolang.org/x/oauth2 v0.10.0 // indirect\n-\tgolang.org/x/sys v0.10.0 // indirect\n-\tgolang.org/x/term v0.10.0 // indirect\n-\tgolang.org/x/text v0.11.0 // indirect\n-\tgolang.org/x/time v0.0.0-20220210224613-90d013bbcef8 // indirect\n+\tgolang.org/x/mod v0.21.0 // indirect\n+\tgolang.org/x/net v0.23.0 // indirect\n+\tgolang.org/x/oauth2 v0.23.0 // indirect\n+\tgolang.org/x/sync v0.5.0 // indirect\n+\tgolang.org/x/sys v0.18.0 // indirect\n+\tgolang.org/x/term v0.18.0 // indirect\n+\tgolang.org/x/text v0.14.0 // indirect\n+\tgolang.org/x/time v0.5.0 // indirect\n+\tgolang.org/x/tools v0.13.0 // indirect\n \tgolang.org/x/xerrors v0.0.0-20220907171357-04be3eba64a2 // indirect\n-\tgoogle.golang.org/api v0.126.0 // indirect\n+\tgoogle.golang.org/api v0.152.0 // indirect\n \tgoogle.golang.org/appengine v1.6.7 // indirect\n-\tgoogle.golang.org/genproto v0.0.0-20230530153820-e85fd2cbaebc // indirect\n-\tgoogle.golang.org/genproto/googleapis/api v0.0.0-20230530153820-e85fd2cbaebc // indirect\n-\tgoogle.golang.org/genproto/googleapis/rpc v0.0.0-20230530153820-e85fd2cbaebc // indirect\n-\tgoogle.golang.org/grpc v1.55.0 // indirect\n-\tgoogle.golang.org/protobuf v1.31.0 // indirect\n+\tgoogle.golang.org/genproto v0.0.0-20231106174013-bbf56f31fb17 // indirect\n+\tgoogle.golang.org/genproto/googleapis/api v0.0.0-20231106174013-bbf56f31fb17 // indirect\n+\tgoogle.golang.org/genproto/googleapis/rpc v0.0.0-20231120223509-83a465c0220f // indirect\n+\tgoogle.golang.org/grpc v1.59.0 // indirect\n+\tgoogle.golang.org/protobuf v1.33.0 // indirect\n \tgopkg.in/inf.v0 v0.9.1 // indirect\n \tgopkg.in/yaml.v2 v2.4.0 // indirect\n \tgopkg.in/yaml.v3 v3.0.1 // indirect\n-\tk8s.io/api v0.27.2 // indirect\n-\tk8s.io/apimachinery v0.27.2 // indirect\n-\tk8s.io/client-go v0.27.2 // indirect\n-\tk8s.io/klog/v2 v2.90.1 // indirect\n-\tk8s.io/kube-openapi v0.0.0-20230501164219-8b0f38b5fd1f // indirect\n-\tk8s.io/utils v0.0.0-20230209194617-a36077c30491 // indirect\n+\tk8s.io/api v0.28.4 // indirect\n+\tk8s.io/apimachinery v0.28.4 // indirect\n+\tk8s.io/client-go v0.28.4 // indirect\n+\tk8s.io/klog/v2 v2.100.1 // indirect\n+\tk8s.io/kube-openapi v0.0.0-20230717233707-2695361300d9 // indirect\n+\tk8s.io/utils v0.0.0-20230406110748-d93618cff8a2 // indirect\n \tsigs.k8s.io/json v0.0.0-20221116044647-bc3834ca7abd // indirect\n \tsigs.k8s.io/structured-merge-diff/v4 v4.2.3 // indirect\n \tsigs.k8s.io/yaml v1.3.0 // indirect\n---\n\n\n---\n\nChoice C:\ntest/go.mod\n@@ -3,56 +3,55 @@ module github.com/Azure/terraform-azurerm-compute\n go 1.19\n \n require (\n-\tgithub.com/Azure/terraform-module-test-helper v0.16.0\n-\tgithub.com/gruntwork-io/terratest v0.43.9\n-\tgithub.com/stretchr/testify v1.8.4\n+\tgithub.com/Azure/terraform-module-test-helper require v0.47.1\n+\tgithub.com/stretchr/testify v1.9.0\n )\n \n require (\n-\tcloud.google.com/go v0.110.2 // indirect\n-\tcloud.google.com/go/compute v1.20.1 // indirect\n-\tcloud.google.com/go/compute/metadata v0.2.3 // indirect\n-\tcloud.google.com/go/iam v0.13.0 // indirect\n-\tcloud.google.com/go/storage v1.29.0 // indirect\n+\tcloud.google.com/go v0.110.10 // indirect\n+\tcloud.google.com/go/compute/metadata v0.3.0 // indirect\n+\tcloud.google.com/go/iam v1.1.5 // indirect\n+\tcloud.google.com/go/storage v1.35.1 // indirect\n \tgithub.com/agext/levenshtein v1.2.3 // indirect\n \tgithub.com/ahmetb/go-linq/v3 v3.2.0 // indirect\n-\tgithub.com/apparentlymart/go-textseg/v13 v13.0.0 // indirect\n-\tgithub.com/aws/aws-sdk-go v1.44.122 // indirect\n+\tgithub.com/apparentlymart/go-textseg/v15 v15.0.0 // indirect\n+\tgithub.com/aws/aws-sdk-go v1.46.7 // indirect\n \tgithub.com/bgentry/go-netrc v0.0.0-20140422174119-9fd32a8b3d3d // indirect\n \tgithub.com/boombuler/barcode v1.0.1-0.20190219062509-6c824513bacc // indirect\n \tgithub.com/cpuguy83/go-md2man/v2 v2.0.2 // indirect\n \tgithub.com/davecgh/go-spew v1.1.1 // indirect\n \tgithub.com/emicklei/go-restful/v3 v3.9.0 // indirect\n-\tgithub.com/go-errors/errors v1.4.2 // indirect\n-\tgithub.com/go-logr/logr v1.2.3 // indirect\n+\tgithub.com/go-errors/errors v1.5.1 // indirect\n+\tgithub.com/go-logr/logr v1.2.4 // indirect\n \tgithub.com/go-openapi/jsonpointer v0.19.6 // indirect\n-\tgithub.com/go-openapi/jsonreference v0.20.1 // indirect\n+\tgithub.com/go-openapi/jsonreference v0.20.2 // indirect\n \tgithub.com/go-openapi/swag v0.22.3 // indirect\n \tgithub.com/go-sql-driver/mysql v1.4.1 // indirect\n \tgithub.com/gogo/protobuf v1.3.2 // indirect\n \tgithub.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da // indirect\n \tgithub.com/golang/protobuf v1.5.3 // indirect\n-\tgithub.com/google/gnostic v0.5.7-v3refs // indirect\n-\tgithub.com/google/go-cmp v0.5.9 // indirect\n+\tgithub.com/google/gnostic-models v0.6.8 // indirect\n+\tgithub.com/google/go-cmp v0.6.0 // indirect\n \tgithub.com/google/go-github/v42 v42.0.0 // indirect\n \tgithub.com/google/go-querystring v1.1.0 // indirect\n-\tgithub.com/google/gofuzz v1.1.0 // indirect\n-\tgithub.com/google/s2a-go v0.1.4 // indirect\n-\tgithub.com/google/uuid v1.3.0 // indirect\n-\tgithub.com/googleapis/enterprise-certificate-proxy v0.2.3 // indirect\n-\tgithub.com/googleapis/gax-go/v2 v2.11.0 // indirect\n-\tgithub.com/gruntwork-io/go-commons v0.17.0 // indirect\n+\tgithub.com/google/gofuzz v1.2.0 // indirect\n+\tgithub.com/google/s2a-go v0.1.7 // indirect\n+\tgithub.com/google/uuid v1.4.0 // indirect\n+\tgithub.com/googleapis/enterprise-certificate-proxy v0.3.2 // indirect\n+\tgithub.com/googleapis/gax-go/v2 v2.12.0 // indirect\n+\tgithub.com/gruntwork-io/go-commons v0.17.2 // indirect\n \tgithub.com/hashicorp/errwrap v1.0.0 // indirect\n \tgithub.com/hashicorp/go-cleanhttp v0.5.2 // indirect\n-\tgithub.com/hashicorp/go-getter v1.7.1 // indirect\n-\tgithub.com/hashicorp/go-getter/v2 v2.2.1 // indirect\n+\tgithub.com/hashicorp/go-getter v1.7.6 // indirect\n+\tgithub.com/hashicorp/go-getter/v2 v2.2.3 // indirect\n \tgithub.com/hashicorp/go-multierror v1.1.1 // indirect\n \tgithub.com/hashicorp/go-safetemp v1.0.0 // indirect\n \tgithub.com/hashicorp/go-version v1.6.0 // indirect\n \tgithub.com/hashicorp/hcl v1.0.0 // indirect\n-\tgithub.com/hashicorp/hcl/v2 v2.17.0 // indirect\n+\tgithub.com/hashicorp/hcl/v2 v2.22.0 // indirect\n \tgithub.com/hashicorp/terraform-config-inspect v0.0.0-20211115214459-90acf1ca460f // indirect\n-\tgithub.com/hashicorp/terraform-json v0.17.1 // indirect\n+\tgithub.com/hashicorp/terraform-json v0.22.1 // indirect\n \tgithub.com/imdario/mergo v0.3.11 // indirect\n \tgithub.com/jinzhu/copier v0.0.0-20190924061706-b57f9002281a // indirect\n \tgithub.com/jmespath/go-jmespath v0.4.0 // indirect\n@@ -75,43 +74,45 @@ require (\n \tgithub.com/pquerna/otp v1.2.0 // indirect\n \tgithub.com/r3labs/diff/v3 v3.0.1 // indirect\n \tgithub.com/russross/blackfriday/v2 v2.1.0 // indirect\n-\tgithub.com/spf13/afero v1.9.5 // indirect\n+\tgithub.com/spf13/afero v1.11.0 // indirect\n \tgithub.com/spf13/pflag v1.0.5 // indirect\n \tgithub.com/thanhpk/randstr v1.0.6 // indirect\n \tgithub.com/tmccombs/hcl2json v0.3.3 // indirect\n-\tgithub.com/ulikunitz/xz v0.5.10 // indirect\n+\tgithub.com/ulikunitz/xz v0.5.11 // indirect\n \tgithub.com/urfave/cli/v2 v2.10.3 // indirect\n \tgithub.com/vmihailenco/msgpack/v5 v5.3.5 // indirect\n \tgithub.com/vmihailenco/tagparser/v2 v2.0.0 // indirect\n \tgithub.com/xrash/smetrics v0.0.0-20201216005158-039620a65673 // indirect\n-\tgithub.com/zclconf/go-cty v1.13.2 // indirect\n+\tgithub.com/zclconf/go-cty v1.14.4 // indirect\n \tgo.opencensus.io v0.24.0 // indirect\n-\tgolang.org/x/crypto v0.11.0 // indirect\n+\tgolang.org/x/crypto v0.21.0 // indirect\n \tgolang.org/x/exp v0.0.0-20221106115401-f9659909a136 // indirect\n-\tgolang.org/x/mod v0.12.0 // indirect\n-\tgolang.org/x/net v0.12.0 // indirect\n-\tgolang.org/x/oauth2 v0.10.0 // indirect\n-\tgolang.org/x/sys v0.10.0 // indirect\n-\tgolang.org/x/term v0.10.0 // indirect\n-\tgolang.org/x/text v0.11.0 // indirect\n-\tgolang.org/x/time v0.0.0-20220210224613-90d013bbcef8 // indirect\n+\tgolang.org/x/mod v0.21.0 // indirect\n+\tgolang.org/x/net v0.23.0 // indirect\n+\tgolang.org/x/oauth2 v0.23.0 // indirect\n+\tgolang.org/x/sync v0.5.0 // indirect\n+\tgolang.org/x/sys v0.18.0 // indirect\n+\tgolang.org/x/term v0.18.0 // indirect\n+\tgolang.org/x/text v0.14.0 // indirect\n+\tgolang.org/x/time v0.5.0 // indirect\n+\tgolang.org/x/tools v0.13.0 // indirect\n \tgolang.org/x/xerrors v0.0.0-20220907171357-04be3eba64a2 // indirect\n-\tgoogle.golang.org/api v0.126.0 // indirect\n+\tgoogle.golang.org/api v0.152.0 // indirect\n \tgoogle.golang.org/appengine v1.6.7 // indirect\n-\tgoogle.golang.org/genproto v0.0.0-20230530153820-e85fd2cbaebc // indirect\n-\tgoogle.golang.org/genproto/googleapis/api v0.0.0-20230530153820-e85fd2cbaebc // indirect\n-\tgoogle.golang.org/genproto/googleapis/rpc v0.0.0-20230530153820-e85fd2cbaebc // indirect\n-\tgoogle.golang.org/grpc v1.55.0 // indirect\n-\tgoogle.golang.org/protobuf v1.31.0 // indirect\n+\tgoogle.golang.org/genproto v0.0.0-20231106174013-bbf56f31fb17 // indirect\n+\tgoogle.golang.org/genproto/googleapis/api v0.0.0-20231106174013-bbf56f31fb17 // indirect\n+\tgoogle.golang.org/genproto/googleapis/rpc v0.0.0-20231120223509-83a465c0220f // indirect\n+\tgoogle.golang.org/grpc v1.59.0 // indirect\n+\tgoogle.golang.org/protobuf v1.33.0 // indirect\n \tgopkg.in/inf.v0 v0.9.1 // indirect\n \tgopkg.in/yaml.v2 v2.4.0 // indirect\n \tgopkg.in/yaml.v3 v3.0.1 // indirect\n-\tk8s.io/api v0.27.2 // indirect\n-\tk8s.io/apimachinery v0.27.2 // indirect\n-\tk8s.io/client-go v0.27.2 // indirect\n-\tk8s.io/klog/v2 v2.90.1 // indirect\n-\tk8s.io/kube-openapi v0.0.0-20230501164219-8b0f38b5fd1f // indirect\n-\tk8s.io/utils v0.0.0-20230209194617-a36077c30491 // indirect\n+\tk8s.io/api v0.28.4 // indirect\n+\tk8s.io/apimachinery v0.28.4 // indirect\n+\tk8s.io/client-go v0.28.4 // indirect\n+\tk8s.io/klog/v2 v2.100.1 // indirect\n+\tk8s.io/kube-openapi v0.0.0-20230717233707-2695361300d9 // indirect\n+\tk8s.io/utils v0.0.0-20230406110748-d93618cff8a2 // indirect\n \tsigs.k8s.io/json v0.0.0-20221116044647-bc3834ca7abd // indirect\n \tsigs.k8s.io/structured-merge-diff/v4 v4.2.3 // indirect\n \tsigs.k8s.io/yaml v1.3.0 // indirect\n---\n\n\n---\n\nChoice D:\ntest/go.mod\n@@ -3,56 +3,55 @@ module github.com/Azure/terraform-azurerm-compute\n go 1.19\n \n require (\n-\tgithub.com/Azure/terraform-module-test-helper v0.16.0\n-\tgithub.com/gruntwork-io/terratest v0.43.9\n-\tgithub.com/stretchr/testify v1.8.4\n+\tgithub.com/Azure/terraform-module-test-helper v0.26.0\n+\tgithub.com/gruntwork-io/terratest v0.47.1\n+\tgithub.com/stretchr/testify v1.9.0\n )\n \n require (\n-\tcloud.google.com/go v0.110.2 // indirect\n-\tcloud.google.com/go/compute v1.20.1 // indirect\n-\tcloud.google.com/go/compute/metadata v0.2.3 // indirect\n-\tcloud.google.com/go/iam v0.13.0 // indirect\n-\tcloud.google.com/go/storage v1.29.0 // indirect\n+\tcloud.google.com/go v0.110.10 // indirect\n+\tcloud.google.com/go/compute/metadata v0.3.0 // indirect\n+\tcloud.google.com/go/iam v1.1.5 // indirect\n+\tcloud.google.com/go/storage v1.35.1 // indirect\n \tgithub.com/agext/levenshtein v1.2.3 // indirect\n \tgithub.com/ahmetb/go-linq/v3 v3.2.0 // indirect\n-\tgithub.com/apparentlymart/go-textseg/v13 v13.0.0 // indirect\n-\tgithub.com/aws/aws-sdk-go v1.44.122 // indirect\n+\tgithub.com/apparentlymart/go-textseg/v15 v15.0.0 // indirect\n+\tgithub.com/aws/aws-sdk-go v1.46.7 // indirect\n \tgithub.com/bgentry/go-netrc v0.0.0-20140422174119-9fd32a8b3d3d // indirect\n \tgithub.com/boombuler/barcode v1.0.1-0.20190219062509-6c824513bacc // indirect\n \tgithub.com/cpuguy83/go-md2man/v2 v2.0.2 // indirect\n \tgithub.com/davecgh/go-spew v1.1.1 // indirect\n \tgithub.com/emicklei/go-restful/v3 v3.9.0 // indirect\n-\tgithub.com/go-errors/errors v1.4.2 // indirect\n-\tgithub.com/go-logr/logr v1.2.3 // indirect\n+\tgithub.com/go-errors/errors v1.5.1 // indirect\n+\tgithub.com/go-logr/logr v1.2.4 // indirect\n \tgithub.com/go-openapi/jsonpointer v0.19.6 // indirect\n-\tgithub.com/go-openapi/jsonreference v0.20.1 // indirect\n+\tgithub.com/go-openapi/jsonreference v0.20.2 // indirect\n \tgithub.com/go-openapi/swag v0.22.3 // indirect\n \tgithub.com/go-sql-driver/mysql v1.4.1 // indirect\n \tgithub.com/gogo/protobuf v1.3.2 // indirect\n \tgithub.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da // indirect\n \tgithub.com/golang/protobuf v1.5.3 // indirect\n-\tgithub.com/google/gnostic v0.5.7-v3refs // indirect\n-\tgithub.com/google/go-cmp v0.5.9 // indirect\n+\tgithub.com/google/gnostic-models v0.6.8 // indirect\n+\tgithub.com/google/go-cmp v0.6.0 // indirect\n \tgithub.com/google/go-github/v42 v42.0.0 // indirect\n \tgithub.com/google/go-querystring v1.1.0 // indirect\n-\tgithub.com/google/gofuzz v1.1.0 // indirect\n-\tgithub.com/google/s2a-go v0.1.4 // indirect\n-\tgithub.com/google/uuid v1.3.0 // indirect\n-\tgithub.com/googleapis/enterprise-certificate-proxy v0.2.3 // indirect\n-\tgithub.com/googleapis/gax-go/v2 v2.11.0 // indirect\n-\tgithub.com/gruntwork-io/go-commons v0.17.0 // indirect\n+\tgithub.com/google/gofuzz v1.2.0 // indirect\n+\tgithub.com/google/s2a-go v0.1.7 // indirect\n+\tgithub.com/google/uuid v1.4.0 // indirect\n+\tgithub.com/googleapis/enterprise-certificate-proxy v0.3.2 // indirect\n+\tgithub.com/googleapis/gax-go/v2 v2.12.0 // indirect\n+\tgithub.com/gruntwork-io/go-commons v0.17.2 // indirect\n \tgithub.com/hashicorp/errwrap v1.0.0 // indirect\n \tgithub.com/hashicorp/go-cleanhttp v0.5.2 // indirect\n-\tgithub.com/hashicorp/go-getter v1.7.1 // indirect\n-\tgithub.com/hashicorp/go-getter/v2 v2.2.1 // indirect\n+\tgithub.com/hashicorp/go-getter v1.7.6 // indirect\n+\tgithub.com/hashicorp/go-getter/v2 v2.2.3 // indirect\n \tgithub.com/hashicorp/go-multierror v1.1.1 // indirect\n \tgithub.com/hashicorp/go-safetemp v1.0.0 // indirect\n \tgithub.com/hashicorp/go-version v1.6.0 // indirect\n \tgithub.com/hashicorp/hcl v1.0.0 // indirect\n-\tgithub.com/hashicorp/hcl/v2 v2.17.0 // indirect\n+\tgithub.com/hashicorp/hcl/v2 v2.22.0 // indirect\n \tgithub.com/hashicorp/terraform-config-inspect v0.0.0-20211115214459-90acf1ca460f // indirect\n-\tgithub.com/hashicorp/terraform-json v0.17.1 // indirect\n+\tgithub.com/hashicorp/terraform-json v0.22.1 // indirect\n \tgithub.com/imdario/mergo v0.3.11 // indirect\n \tgithub.com/jinzhu/copier v0.0.0-20190924061706-b57f9002281a // indirect\n \tgithub.com/jmespath/go-jmespath v0.4.0 // indirect\n@@ -75,43 +74,45 @@ require (\n \tgithub.com/pquerna/otp v1.2.0 // indirect\n \tgithub.com/r3labs/diff/v3 v3.0.1 // indirect\n \tgithub.com/russross/blackfriday/v2 v2.1.0 // indirect\n-\tgithub.com/spf13/afero v1.9.5 // indirect\n+\tgithub.com/spf13/afero v1.11.0 // indirect\n \tgithub.com/spf13/pflag v1.0.5 // indirect\n \tgithub.com/thanhpk/randstr v1.0.6 // indirect\n \tgithub.com/tmccombs/hcl2json v0.3.3 // indirect\n-\tgithub.com/ulikunitz/xz v0.5.10 // indirect\n+\tgithub.com/ulikunitz/xz v0.5.11 // indirect\n \tgithub.com/urfave/cli/v2 v2.10.3 // indirect\n \tgithub.com/vmihailenco/msgpack/v5 v5.3.5 // indirect\n \tgithub.com/vmihailenco/tagparser/v2 v2.0.0 // indirect\n \tgithub.com/xrash/smetrics v0.0.0-20201216005158-039620a65673 // indirect\n-\tgithub.com/zclconf/go-cty v1.13.2 // indirect\n+\tgithub.com/zclconf/go-cty v1.14.4 // indirect\n \tgo.opencensus.io v0.24.0 // indirect\n-\tgolang.org/x/crypto v0.11.0 // indirect\n+\tgolang.org/x/crypto v0.21.0 // indirect\n \tgolang.org/x/exp v0.0.0-20221106115401-f9659909a136 // indirect\n-\tgolang.org/x/mod v0.12.0 // indirect\n-\tgolang.org/x/net v0.12.0 // indirect\n-\tgolang.org/x/oauth2 v0.10.0 // indirect\n-\tgolang.org/x/sys v0.10.0 // indirect\n-\tgolang.org/x/term v0.10.0 // indirect\n-\tgolang.org/x/text v0.11.0 // indirect\n-\tgolang.org/x/time v0.0.0-20220210224613-90d013bbcef8 // indirect\n+\tgolang.org/x/mod v0.21.0 // indirect\n+\tgolang.org/x/net v0.23.0 // indirect\n+\tgolang.org/x/oauth2 v0.23.0 // indirect\n+\tgolang.org/x/sync v0.5.0 // indirect\n+\tgolang.org/x/sys v0.18.0 // indirect\n+\tgolang.org/x/term v0.18.0 // indirect\n+\tgolang.org/x/text v0.14.0 // indirect\n+\tgolang.org/x/time v0.5.0 // indirect\n+\tgolang.org/x/tools v0.13.0 // indirect\n \tgolang.org/x/xerrors v0.0.0-20220907171357-04be3eba64a2 // indirect\n-\tgoogle.golang.org/api v0.126.0 // indirect\n+\tgoogle.golang.org/api v0.152.0 // indirect\n \tgoogle.golang.org/appengine v1.6.7 // indirect\n-\tgoogle.golang.org/genproto v0.0.0-20230530153820-e85fd2cbaebc // indirect\n-\tgoogle.golang.org/genproto/googleapis/api v0.0.0-20230530153820-e85fd2cbaebc // indirect\n-\tgoogle.golang.org/genproto/googleapis/rpc v0.0.0-20230530153820-e85fd2cbaebc // indirect\n-\tgoogle.golang.org/grpc v1.55.0 // indirect\n-\tgoogle.golang.org/protobuf v1.31.0 // indirect\n+\tgoogle.golang.org/genproto v0.0.0-20231106174013-bbf56f31fb17 // indirect\n+\tgoogle.golang.org/genproto/googleapis/api v0.0.0-20231106174013-bbf56f31fb17 // indirect\n+\tgoogle.golang.org/genproto/googleapis/rpc v0.0.0-20231120223509-83a465c0220f // indirect\n+\tgoogle.golang.org/grpc v1.59.0 // indirect\n+\tgoogle.golang.org/protobuf v1.33.0 // indirect\n \tgopkg.in/inf.v0 v0.9.1 // indirect\n \tgopkg.in/yaml.v2 v2.4.0 // indirect\n \tgopkg.in/yaml.v3 v3.0.1 // indirect\n-\tk8s.io/api v0.27.2 // indirect\n-\tk8s.io/apimachinery v0.27.2 // indirect\n-\tk8s.io/client-go v0.27.2 // indirect\n-\tk8s.io/klog/v2 v2.90.1 // indirect\n-\tk8s.io/kube-openapi v0.0.0-20230501164219-8b0f38b5fd1f // indirect\n-\tk8s.io/utils v0.0.0-20230209194617-a36077c30491 // indirect\n+\tk8s.io/api v0.28.4 // indirect\n+\tk8s.io/apimachinery v0.28.4 // indirect\n+\tk8s.io/client-go v0.28.4 // indirect\n+\tk8s.io/klog/v2 v2.100.1 // indirect\n+\tk8s.io/kube-openapi v0.0.0-20230717233707-2695361300d9 // indirect\n+\tk8s.io/utils v0.0.0-20230406110748-d93618cff8a2 // indirect\n \tsigs.k8s.io/json v0.0.0-20221116044647-bc3834ca7abd // indirect\n \tsigs.k8s.io/structured-merge-diff/v4 v4.2.3 // indirect\n \tsigs.k8s.io/yaml v1.3.0 // indirect\n---\n\n\n---\n" } ]
D
[ { "role": "system", "content": "Choose the best Terraform patch (A/B/C/D) that implements the requested Azure Compute change safely. Only respond with a single uppercase letter." }, { "role": "user", "content": "Task Description:\n## Describe your changes\r\n\r\n## Issue number\r\n\r\n#000\r\n\r\n## Checklist before requesting a review\r\n- [ ] The pr title can be used to describe what this pr did in `CHANGELOG.md` file\r\n- [ ] I have executed pre-commit on my machine\r\n- [ ] I have passed pr-check on my machine\r\n\r\nThanks for your cooperation!\r\n\r\n\n\n---\n\nChoice A:\n.github/workflows/acc-test.yaml\n@@ -11,27 +11,22 @@ on:\n - '**/go.mod'\n \n jobs:\n- acc-tests:\n- runs-on: [self-hosted, 1ES.Pool=terraform-azurerm-compute]\n- environment:\n- name: acctests\n+ check:\n+ runs-on: ubuntu-latest\n steps:\n- - uses: actions/checkout@v3\n- - name: init\n+ - name: Checking for Fork\n+ shell: pwsh\n run: |\n- docker run --rm -v $(pwd):/src -w /src mcr.microsoft.com/azterraform:latest make generate\n- - name: e2e test\n- run: |\n- sh scripts/ci-e2e.sh\n- - name: upload test version snapshots\n- uses: actions/upload-artifact@v3\n- with:\n- name: TestRecord-${{ github.event.number }}\n- retention-days: 60\n- path: |\n- examples/**/TestRecord.md.tmp\n- - name: version-upgrade test\n- env:\n- GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}\n- run: |\n- sh scripts/ci-version-upgrade.sh\n+ $isFork = \"${{ github.event.pull_request.head.repo.fork }}\"\n+ if($isFork -eq \"true\") {\n+ echo \"### WARNING: This workflow is disabled for forked repositories. Please follow the [release branch process](https://azure.github.io/Azure-Verified-Modules/contributing/terraform/terraform-contribution-flow/#5-create-a-pull-request-to-the-upstream-repository) if end to end tests are required.\" >> $env:GITHUB_STEP_SUMMARY\n+ }\n+\n+ run-e2e-tests:\n+ if: github.event.pull_request.head.repo.fork == false\n+ uses: Azure/tfmod-scaffold/.github/workflows/tfvm_e2e.yaml@main\n+ name: end to end\n+ secrets: inherit\n+ permissions:\n+ id-token: write\n+ contents: read\n\\ No newline at end of file\n---\n.github/workflows/weekly-e2e.yaml\n@@ -1,30 +0,0 @@\n-name: Weekly E2E Test Check\n-on:\n- workflow_dispatch:\n- schedule:\n- - cron: '0 0 * * 0'\n-\n-jobs:\n- full-e2e-check:\n- runs-on: [self-hosted, 1ES.Pool=terraform-azurerm-compute]\n- environment:\n- name: crontests\n- steps:\n- - name: checkout\n- uses: actions/checkout@v3\n- - name: init\n- run: |\n- docker run --rm -v $(pwd):/src -w /src mcr.microsoft.com/azterraform:latest make generate\n- - name: e2e test\n- continue-on-error: true\n- run: |\n- sh scripts/ci-e2e.sh\n- - name: Update\n- run: |\n- sh scripts/ci-update-test-record.sh\n- - name: Commit & Push changes\n- version-upgrade uses: actions-js/push@master\n- with:\n- github_token: ${{ secrets.GITHUB_TOKEN }}\n- message: 'Update TestVersionSnapshot'\n- branch: ${{ github.event.repository.default_branch }}\n\\ No newline at end of file\n---\nGNUmakefile\n@@ -1,9 +1,4 @@\n SHELL := /bin/bash\n \n--include $(shell curl -sSL \"https://raw.githubusercontent.com/Azure/tfmod-scaffold/main/scripts/install.sh\" | bash -s > /dev/null ; echo tfmod-scaffold/GNUmakefile)\n-\n-init:\n-\t@sh \"$(CURDIR)/scripts/init.sh\"\n-\n-cleanup:\n-\t@sh \"$(CURDIR)/scripts/cleanup.sh\"\n\\ No newline at end of file\n+$(shell curl -H 'Cache-Control: no-cache, no-store' -sSL \"https://raw.githubusercontent.com/Azure/tfmod-scaffold/refs/heads/main/GNUmakefile\" -o tfvmmakefile)\n+-include tfvmmakefile\n\\ No newline at end of file\n---\n\n\n---\n\nChoice B:\n.github/workflows/acc-test.yaml\n@@ -11,27 +11,22 @@ on:\n - '**/go.mod'\n \n jobs:\n- acc-tests:\n- runs-on: [self-hosted, 1ES.Pool=terraform-azurerm-compute]\n- environment:\n- name: acctests\n+ check:\n+ runs-on: ubuntu-latest\n steps:\n- - uses: actions/checkout@v3\n- - name: init\n+ - name: Checking for Fork\n+ shell: pwsh\n run: |\n- docker run --rm -v $(pwd):/src -w /src mcr.microsoft.com/azterraform:latest make generate\n- - name: e2e test\n- run: |\n- sh scripts/ci-e2e.sh\n- - name: upload test version snapshots\n- uses: actions/upload-artifact@v3\n- with:\n- name: TestRecord-${{ github.event.number }}\n- retention-days: 60\n- path: |\n- examples/**/TestRecord.md.tmp\n- - name: version-upgrade test\n- env:\n- make GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}\n- run: |\n- sh scripts/ci-version-upgrade.sh\n+ $isFork = \"${{ github.event.pull_request.head.repo.fork }}\"\n+ if($isFork -eq \"true\") {\n+ echo \"### WARNING: This workflow is disabled for forked repositories. Please follow the [release branch process](https://azure.github.io/Azure-Verified-Modules/contributing/terraform/terraform-contribution-flow/#5-create-a-pull-request-to-the-upstream-repository) if end to end tests are required.\" >> $env:GITHUB_STEP_SUMMARY\n+ }\n+\n+ run-e2e-tests:\n+ if: github.event.pull_request.head.repo.fork == false\n+ uses: Azure/tfmod-scaffold/.github/workflows/tfvm_e2e.yaml@main\n+ name: end to end\n+ secrets: inherit\n+ permissions:\n+ id-token: write\n+ contents: read\n\\ No newline at end of file\n---\n.github/workflows/weekly-e2e.yaml\n@@ -1,30 +0,0 @@\n-name: Weekly E2E Test Check\n-on:\n- workflow_dispatch:\n- schedule:\n- - cron: '0 0 * * 0'\n-\n-jobs:\n- full-e2e-check:\n- runs-on: [self-hosted, 1ES.Pool=terraform-azurerm-compute]\n- environment:\n- name: crontests\n- steps:\n- - name: checkout\n- uses: actions/checkout@v3\n- - name: init\n- run: |\n- docker run --rm -v $(pwd):/src -w /src mcr.microsoft.com/azterraform:latest make generate\n- - name: e2e test\n- continue-on-error: true\n- run: |\n- sh scripts/ci-e2e.sh\n- - name: Update\n- run: |\n- sh scripts/ci-update-test-record.sh\n- - name: Commit & Push changes\n- uses: actions-js/push@master\n- with:\n- github_token: ${{ secrets.GITHUB_TOKEN }}\n- message: 'Update TestVersionSnapshot'\n- branch: ${{ github.event.repository.default_branch }}\n\\ No newline at end of file\n---\nGNUmakefile\n@@ -1,9 +1,4 @@\n SHELL := /bin/bash\n \n--include $(shell curl -sSL \"https://raw.githubusercontent.com/Azure/tfmod-scaffold/main/scripts/install.sh\" | bash -s > /dev/null ; echo tfmod-scaffold/GNUmakefile)\n-\n-init:\n-\t@sh \"$(CURDIR)/scripts/init.sh\"\n-\n-cleanup:\n-\t@sh \"$(CURDIR)/scripts/cleanup.sh\"\n\\ No newline at end of file\n+$(shell curl -H 'Cache-Control: no-cache, no-store' -sSL \"https://raw.githubusercontent.com/Azure/tfmod-scaffold/refs/heads/main/GNUmakefile\" -o tfvmmakefile)\n+-include tfvmmakefile\n\\ No newline at end of file\n---\n\n\n---\n\nChoice C:\n.github/workflows/acc-test.yaml\n@@ -11,27 +11,22 @@ on:\n - '**/go.mod'\n \n jobs:\n- acc-tests:\n- runs-on: [self-hosted, 1ES.Pool=terraform-azurerm-compute]\n- environment:\n- name: acctests\n+ check:\n+ runs-on: ubuntu-latest\n steps:\n- - uses: actions/checkout@v3\n- - name: init\n+ - name: Checking for Fork\n+ shell: pwsh\n run: |\n- docker run --rm -v $(pwd):/src -w /src mcr.microsoft.com/azterraform:latest make generate\n- - name: e2e test\n- run: |\n- sh scripts/ci-e2e.sh\n- - name: upload test version snapshots\n- uses: actions/upload-artifact@v3\n- with:\n- name: TestRecord-${{ github.event.number }}\n- retention-days: 60\n- path: |\n- examples/**/TestRecord.md.tmp\n- - name: version-upgrade test\n- env:\n- GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}\n- run: |\n- sh scripts/ci-version-upgrade.sh\n+ $isFork = \"${{ github.event.pull_request.head.repo.fork }}\"\n+ if($isFork -eq \"true\") {\n+ echo \"### WARNING: This workflow is disabled for forked repositories. Please follow the [release branch process](https://azure.github.io/Azure-Verified-Modules/contributing/terraform/terraform-contribution-flow/#5-create-a-pull-request-to-the-upstream-repository) if end to end tests are required.\" >> $env:GITHUB_STEP_SUMMARY\n+ }\n+\n+ run-e2e-tests:\n+ if: github.event.pull_request.head.repo.fork == false\n+ uses: Azure/tfmod-scaffold/.github/workflows/tfvm_e2e.yaml@main\n+ name: end to end\n+ secrets: inherit\n+ permissions:\n+ id-token: write\n+ contents: read\n\\ No newline at end of file\n---\n.github/workflows/weekly-e2e.yaml\n@@ -1,30 +0,0 @@\n-name: Weekly E2E Test Check\n-on:\n- workflow_dispatch:\n- schedule:\n- - cron: '0 0 * * 0'\n-\n-jobs:\n- full-e2e-check:\n- runs-on: [self-hosted, 1ES.Pool=terraform-azurerm-compute]\n- environment:\n- name: crontests\n- steps:\n- - name: checkout\n- uses: actions/checkout@v3\n- - name: init\n- run: |\n- docker run --rm -v $(pwd):/src -w /src mcr.microsoft.com/azterraform:latest make generate\n- - name: e2e test\n- continue-on-error: true\n- run: |\n- sh scripts/ci-e2e.sh\n- - name: Update\n- run: |\n- sh scripts/ci-update-test-record.sh\n- - name: Commit & Push changes\n- uses: actions-js/push@master\n- with:\n- github_token: ${{ secrets.GITHUB_TOKEN }}\n- message: 'Update TestVersionSnapshot'\n- ${{ github.event.repository.default_branch }}\n\\ No newline at end of file\n---\nGNUmakefile\n@@ -1,9 +1,4 @@\n SHELL := /bin/bash\n \n--include $(shell curl -sSL \"https://raw.githubusercontent.com/Azure/tfmod-scaffold/main/scripts/install.sh\" | bash -s > /dev/null ; echo tfmod-scaffold/GNUmakefile)\n-\n-init:\n-\t@sh \"$(CURDIR)/scripts/init.sh\"\n-\n-cleanup:\n-\t@sh \"$(CURDIR)/scripts/cleanup.sh\"\n\\ No newline at end of file\n+$(shell curl -H 'Cache-Control: no-cache, no-store' -sSL \"https://raw.githubusercontent.com/Azure/tfmod-scaffold/refs/heads/main/GNUmakefile\" -o tfvmmakefile)\n+-include tfvmmakefile\n\\ No newline at end of file\n---\n\n\n---\n\nChoice D:\n.github/workflows/acc-test.yaml\n@@ -11,27 +11,22 @@ on:\n - '**/go.mod'\n \n jobs:\n- acc-tests:\n- runs-on: [self-hosted, 1ES.Pool=terraform-azurerm-compute]\n- environment:\n- name: acctests\n+ check:\n+ runs-on: ubuntu-latest\n steps:\n- - uses: actions/checkout@v3\n- - name: init\n+ - name: Checking for Fork\n+ shell: pwsh\n run: |\n- docker run --rm -v $(pwd):/src -w /src mcr.microsoft.com/azterraform:latest make generate\n- - name: e2e test\n- run: |\n- sh scripts/ci-e2e.sh\n- - name: upload test version snapshots\n- uses: actions/upload-artifact@v3\n- with:\n- name: TestRecord-${{ github.event.number }}\n- retention-days: 60\n- path: |\n- examples/**/TestRecord.md.tmp\n- - name: version-upgrade test\n- env:\n- GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}\n- run: |\n- sh scripts/ci-version-upgrade.sh\n+ $isFork = \"${{ github.event.pull_request.head.repo.fork }}\"\n+ if($isFork -eq \"true\") {\n+ echo \"### WARNING: This workflow is disabled for forked repositories. Please follow the [release branch process](https://azure.github.io/Azure-Verified-Modules/contributing/terraform/terraform-contribution-flow/#5-create-a-pull-request-to-the-upstream-repository) if end to end tests are required.\" >> $env:GITHUB_STEP_SUMMARY\n+ }\n+\n+ run-e2e-tests:\n+ if: github.event.pull_request.head.repo.fork == false\n+ uses: Azure/tfmod-scaffold/.github/workflows/tfvm_e2e.yaml@main\n+ name: end to end\n+ secrets: inherit\n+ permissions:\n+ id-token: write\n+ contents: read\n\\ No newline at end of file\n---\n.github/workflows/weekly-e2e.yaml\n@@ -1,30 +0,0 @@\n-name: Weekly E2E Test Check\n-on:\n- workflow_dispatch:\n- schedule:\n- - cron: '0 0 * * 0'\n-\n-jobs:\n- full-e2e-check:\n- runs-on: [self-hosted, 1ES.Pool=terraform-azurerm-compute]\n- environment:\n- name: crontests\n- steps:\n- - name: checkout\n- uses: actions/checkout@v3\n- - name: init\n- run: |\n- docker run --rm -v $(pwd):/src -w /src mcr.microsoft.com/azterraform:latest make generate\n- - name: e2e test\n- continue-on-error: true\n- run: |\n- sh scripts/ci-e2e.sh\n- - name: Update\n- run: |\n- sh scripts/ci-update-test-record.sh\n- - name: Commit & Push changes\n- uses: actions-js/push@master\n- with:\n- github_token: ${{ secrets.GITHUB_TOKEN }}\n- message: 'Update TestVersionSnapshot'\n- branch: ${{ github.event.repository.default_branch }}\n\\ No newline at end of file\n---\nGNUmakefile\n@@ -1,9 +1,4 @@\n SHELL := /bin/bash\n \n--include $(shell curl -sSL \"https://raw.githubusercontent.com/Azure/tfmod-scaffold/main/scripts/install.sh\" | bash -s > /dev/null ; echo tfmod-scaffold/GNUmakefile)\n-\n-init:\n-\t@sh \"$(CURDIR)/scripts/init.sh\"\n-\n-cleanup:\n-\t@sh \"$(CURDIR)/scripts/cleanup.sh\"\n\\ No newline at end of file\n+$(shell curl -H 'Cache-Control: no-cache, no-store' -sSL \"https://raw.githubusercontent.com/Azure/tfmod-scaffold/refs/heads/main/GNUmakefile\" -o tfvmmakefile)\n+-include tfvmmakefile\n\\ No newline at end of file\n---\n\n\n---\n" } ]
D
[ { "role": "system", "content": "Choose the best Terraform patch (A/B/C/D) that implements the requested Azure Compute change safely. Only respond with a single uppercase letter." }, { "role": "user", "content": "Task Description:\nBumps [github.com/gruntwork-io/terratest](https://github.com/gruntwork-io/terratest) from 0.43.9 to 0.46.5.\n<details>\n<summary>Release notes</summary>\n<p><em>Sourced from <a href=\"https://github.com/gruntwork-io/terratest/releases\">github.com/gruntwork-io/terratest's releases</a>.</em></p>\n<blockquote>\n<h2>v0.46.5</h2>\n<h2>Modules affected</h2>\n<!-- raw HTML omitted -->\n<ul>\n<li><code>k8s</code></li>\n</ul>\n<h2>Description</h2>\n<ul>\n<li>Added <code>RestConfig</code> field to extend auth options for Kubernetes client.</li>\n</ul>\n<h2>Special thanks</h2>\n<!-- raw HTML omitted -->\n<p>Special thanks to the following users for their contribution!</p>\n<ul>\n<li><a href=\"https://github.com/kirecek\"><code>@​kirecek</code></a></li>\n</ul>\n<!-- raw HTML omitted -->\n<h2>Related links</h2>\n<!-- raw HTML omitted -->\n<ul>\n<li><a href=\"https://redirect.github.com/gruntwork-io/terratest/pull/1354\">gruntwork-io/terratest#1354</a></li>\n</ul>\n<!-- raw HTML omitted -->\n<h2>v0.46.4</h2>\n<!-- raw HTML omitted -->\n<!-- raw HTML omitted -->\n</blockquote>\n<p>... (truncated)</p>\n</details>\n<details>\n<summary>Commits</summary>\n<ul>\n<li><a href=\"https://github.com/gruntwork-io/terratest/commit/237816fb463fd546ee83a336cff65a70b04aa942\"><code>237816f</code></a> Merge pull request <a href=\"https://redirect.github.com/gruntwork-io/terratest/issues/1354\">#1354</a> from kirecek/k8s/kubectl-options/rest-config</li>\n<li><a href=\"https://github.com/gruntwork-io/terratest/commit/f498ee085c45b5bcd76c9c167c1e2e135ff367c5\"><code>f498ee0</code></a> Merge pull request <a href=\"https://redirect.github.com/gruntwork-io/terratest/issues/1362\">#1362</a> from gruntwork-io/dependabot/go_modules/github.com/d...</li>\n<li><a href=\"https://github.com/gruntwork-io/terratest/commit/0767fe9b9b1a6cbe1d2d3fcd347e8c5e1ae41757\"><code>0767fe9</code></a> Merge pull request <a href=\"https://redirect.github.com/gruntwork-io/terratest/issues/1360\">#1360</a> from gruntwork-io/dependabot/go_modules/google.golan...</li>\n<li><a href=\"https://github.com/gruntwork-io/terratest/commit/605b6f0e39cfa2bfefc18d8d19353309cdd56fc7\"><code>605b6f0</code></a> Bump github.com/docker/docker</li>\n<li><a href=\"https://github.com/gruntwork-io/terratest/commit/97a52ef7d7e76a1a1801b0f277eb16a3edb4964e\"><code>97a52ef</code></a> Merge pull request <a href=\"https://redirect.github.com/gruntwork-io/terratest/issues/1286\">#1286</a> from gruntwork-io/dependabot/go_modules/github.com/d...</li>\n<li><a href=\"https://github.com/gruntwork-io/terratest/commit/894ea6ef741dd4e026f2dd1e12a6ea213ae5d302\"><code>894ea6e</code></a> add an option for passing custom k8s rest config</li>\n<li><a href=\"https://github.com/gruntwork-io/terratest/commit/e615bd875a822a8d41b076d6daeeae9af53d48c4\"><code>e615bd8</code></a> Bump github.com/docker/distribution</li>\n<li><a href=\"https://github.com/gruntwork-io/terratest/commit/dc6f8344930cf32100775677f7f738a7011bde89\"><code>dc6f834</code></a> Bump google.golang.org/grpc from 1.51.0 to 1.56.3</li>\n<li><a href=\"https://github.com/gruntwork-io/terratest/commit/1f1821ea7907875eca48592df99ea3d92bfa0888\"><code>1f1821e</code></a> Merge pull request <a href=\"https://redirect.github.com/gruntwork-io/terratest/issues/1356\">#1356</a> from gruntwork-io/dependabot/go_modules/golang.org/x...</li>\n<li><a href=\"https://github.com/gruntwork-io/terratest/commit/1e1ea0eda2df505fcdcff2a1f3f828ed871a49cd\"><code>1e1ea0e</code></a> Bump golang.org/x/net from 0.8.0 to 0.17.0</li>\n<li>Additional commits viewable in <a href=\"https://github.com/gruntwork-io/terratest/compare/v0.43.9...v0.46.5\">compare view</a></li>\n</ul>\n</details>\n<br />\n\n\n[![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=github.com/gruntwork-io/terratest&package-manager=go_modules&previous-version=0.43.9&new-version=0.46.5)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)\n\nYou can trigger a rebase of this PR by commenting `@dependabot rebase`.\n\n[//]: # (dependabot-automerge-start)\n[//]: # (dependabot-automerge-end)\n\n---\n\n<details>\n<summary>Dependabot commands and options</summary>\n<br />\n\nYou can trigger Dependabot actions by commenting on this PR:\n- `@dependabot rebase` will rebase this PR\n- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it\n- `@dependabot merge` will merge this PR after your CI passes on it\n- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it\n- `@dependabot cancel merge` will cancel a previously requested merge and block automerging\n- `@dependabot reopen` will reopen this PR if it is closed\n- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually\n- `@dependabot show <dependency name> ignore conditions` will show all of the ignore conditions of the specified dependency\n- `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)\n- `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)\n- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)\n\n\n</details>\n\n> **Note**\n> Automatic rebases have been disabled on this pull request as it has been open for over 30 days.\n\n---\n\nChoice A:\ntest/go.mod\n@@ -4,7 +4,7 @@ go 1.19\n \n require (\n \tgithub.com/Azure/terraform-module-test-helper v0.16.0\n-\tgithub.com/gruntwork-io/terratest v0.43.9\n+\tgithub.com/gruntwork-io/terratest v0.46.5\n \tgithub.com/stretchr/testify v1.8.4\n )\n \n@@ -86,22 +86,22 @@ require (\n \tgithub.com/xrash/smetrics v0.0.0-20201216005158-039620a65673 // indirect\n \tgithub.com/zclconf/go-cty v1.13.2 // indirect\n \tgo.opencensus.io v0.24.0 +4,7 indirect\n-\tgolang.org/x/crypto v0.11.0 // indirect\n+\tgolang.org/x/crypto v0.14.0 // indirect\n \tgolang.org/x/exp v0.0.0-20221106115401-f9659909a136 // indirect\n \tgolang.org/x/mod v0.12.0 // indirect\n-\tgolang.org/x/net v0.12.0 // indirect\n+\tgolang.org/x/net v0.17.0 // indirect\n \tgolang.org/x/oauth2 v0.10.0 // indirect\n-\tgolang.org/x/sys v0.10.0 // indirect\n-\tgolang.org/x/term v0.10.0 // indirect\n-\tgolang.org/x/text v0.11.0 // indirect\n+\tgolang.org/x/sys v0.13.0 // indirect\n+\tgolang.org/x/term v0.13.0 // indirect\n+\tgolang.org/x/text v0.13.0 // indirect\n \tgolang.org/x/time v0.0.0-20220210224613-90d013bbcef8 // indirect\n \tgolang.org/x/xerrors v0.0.0-20220907171357-04be3eba64a2 // indirect\n \tgoogle.golang.org/api v0.126.0 // indirect\n \tgoogle.golang.org/appengine v1.6.7 // indirect\n \tgoogle.golang.org/genproto v0.0.0-20230530153820-e85fd2cbaebc // indirect\n \tgoogle.golang.org/genproto/googleapis/api v0.0.0-20230530153820-e85fd2cbaebc // indirect\n \tgoogle.golang.org/genproto/googleapis/rpc v0.0.0-20230530153820-e85fd2cbaebc // indirect\n-\tgoogle.golang.org/grpc v1.55.0 // indirect\n+\tgoogle.golang.org/grpc v1.56.3 // indirect\n \tgoogle.golang.org/protobuf v1.31.0 // indirect\n \tgopkg.in/inf.v0 v0.9.1 // indirect\n \tgopkg.in/yaml.v2 v2.4.0 // indirect\n---\n\n\n---\n\nChoice B:\ntest/go.mod\n@@ -4,7 +4,7 @@ go 1.19\n \n require (\n \tgithub.com/Azure/terraform-module-test-helper v0.16.0\n-\tgithub.com/gruntwork-io/terratest v0.43.9\n+\tgithub.com/gruntwork-io/terratest v0.46.5\n \tgithub.com/stretchr/testify v1.8.4\n )\n \n@@ -86,22 +86,22 @@ require (\n \tgithub.com/xrash/smetrics v0.0.0-20201216005158-039620a65673 // indirect\n \tgithub.com/zclconf/go-cty v1.13.2 // indirect\n \tgo.opencensus.io v0.24.0 // indirect\n-\tgolang.org/x/crypto v0.11.0 // indirect\n+\tgolang.org/x/crypto v0.14.0 // indirect\n \tgolang.org/x/exp v0.0.0-20221106115401-f9659909a136 // indirect\n \tgolang.org/x/mod v0.12.0 // indirect\n-\tgolang.org/x/net v0.12.0 // indirect\n+\tgolang.org/x/net v0.17.0 // indirect\n \tgolang.org/x/oauth2 v0.10.0 // indirect\n-\tgolang.org/x/sys v0.10.0 // indirect\n-\tgolang.org/x/term v0.10.0 // indirect\n-\tgolang.org/x/text v0.11.0 // indirect\n+\tgolang.org/x/sys v0.13.0 // indirect\n+\tgolang.org/x/term v0.13.0 // indirect\n+\tgolang.org/x/text v0.13.0 // indirect\n \tgolang.org/x/time v0.0.0-20220210224613-90d013bbcef8 // indirect\n \tgolang.org/x/xerrors v0.0.0-20220907171357-04be3eba64a2 // indirect\n \tgoogle.golang.org/api v0.126.0 // go \tgoogle.golang.org/appengine v1.6.7 // indirect\n \tgoogle.golang.org/genproto v0.0.0-20230530153820-e85fd2cbaebc // indirect\n \tgoogle.golang.org/genproto/googleapis/api v0.0.0-20230530153820-e85fd2cbaebc // indirect\n \tgoogle.golang.org/genproto/googleapis/rpc v0.0.0-20230530153820-e85fd2cbaebc // indirect\n-\tgoogle.golang.org/grpc v1.55.0 // indirect\n+\tgoogle.golang.org/grpc v1.56.3 // indirect\n \tgoogle.golang.org/protobuf v1.31.0 // indirect\n \tgopkg.in/inf.v0 v0.9.1 // indirect\n \tgopkg.in/yaml.v2 v2.4.0 // indirect\n---\n\n\n---\n\nChoice C:\ntest/go.mod\n@@ -4,7 +4,7 @@ go 1.19\n \n require (\n \tgithub.com/Azure/terraform-module-test-helper v0.16.0\n-\tgithub.com/gruntwork-io/terratest v0.43.9\n+\tgithub.com/gruntwork-io/terratest v0.46.5\n \tgithub.com/stretchr/testify v1.8.4\n )\n \n@@ -86,22 +86,22 @@ require (\n \tgithub.com/xrash/smetrics v0.0.0-20201216005158-039620a65673 // indirect\n \tgithub.com/zclconf/go-cty v1.13.2 // indirect\n \tgo.opencensus.io v0.24.0 // indirect\n-\tgolang.org/x/crypto v0.11.0 // indirect\n+\tgolang.org/x/crypto v0.14.0 // indirect\n \tgolang.org/x/exp v0.0.0-20221106115401-f9659909a136 // indirect\n \tgolang.org/x/mod v0.12.0 // indirect\n-\tgolang.org/x/net v0.12.0 // indirect\n+\tgolang.org/x/net v0.17.0 // indirect\n \tgolang.org/x/oauth2 v0.10.0 // indirect\n-\tgolang.org/x/sys v0.10.0 // // v0.10.0 // indirect\n-\tgolang.org/x/text v0.11.0 // indirect\n+\tgolang.org/x/sys v0.13.0 // indirect\n+\tgolang.org/x/term v0.13.0 // indirect\n+\tgolang.org/x/text v0.13.0 // indirect\n \tgolang.org/x/time v0.0.0-20220210224613-90d013bbcef8 // indirect\n \tgolang.org/x/xerrors v0.0.0-20220907171357-04be3eba64a2 // indirect\n \tgoogle.golang.org/api v0.126.0 // indirect\n \tgoogle.golang.org/appengine v1.6.7 // indirect\n \tgoogle.golang.org/genproto v0.0.0-20230530153820-e85fd2cbaebc // indirect\n \tgoogle.golang.org/genproto/googleapis/api v0.0.0-20230530153820-e85fd2cbaebc // indirect\n \tgoogle.golang.org/genproto/googleapis/rpc v0.0.0-20230530153820-e85fd2cbaebc // indirect\n-\tgoogle.golang.org/grpc v1.55.0 // indirect\n+\tgoogle.golang.org/grpc v1.56.3 // indirect\n \tgoogle.golang.org/protobuf v1.31.0 // indirect\n \tgopkg.in/inf.v0 v0.9.1 // indirect\n \tgopkg.in/yaml.v2 v2.4.0 // indirect\n---\n\n\n---\n\nChoice D:\ntest/go.mod\n@@ -4,7 +4,7 @@ go 1.19\n \n require (\n \tgithub.com/Azure/terraform-module-test-helper v0.16.0\n-\tgithub.com/gruntwork-io/terratest v0.43.9\n+\tgithub.com/gruntwork-io/terratest v0.46.5\n \tgithub.com/stretchr/testify v1.8.4\n )\n \n@@ -86,22 +86,22 @@ require (\n \tgithub.com/xrash/smetrics v0.0.0-20201216005158-039620a65673 // indirect\n \tgithub.com/zclconf/go-cty v1.13.2 // indirect\n \tgo.opencensus.io v0.24.0 // indirect\n-\tgolang.org/x/crypto v0.11.0 // indirect\n+\tgolang.org/x/crypto v0.14.0 // indirect\n \tgolang.org/x/exp v0.0.0-20221106115401-f9659909a136 // indirect\n \tgolang.org/x/mod v0.12.0 // indirect\n-\tgolang.org/x/net v0.12.0 // indirect\n+\tgolang.org/x/net v0.17.0 // indirect\n \tgolang.org/x/oauth2 v0.10.0 // indirect\n-\tgolang.org/x/sys v0.10.0 // indirect\n-\tgolang.org/x/term v0.10.0 // indirect\n-\tgolang.org/x/text v0.11.0 // indirect\n+\tgolang.org/x/sys v0.13.0 // indirect\n+\tgolang.org/x/term v0.13.0 // indirect\n+\tgolang.org/x/text v0.13.0 // indirect\n \tgolang.org/x/time v0.0.0-20220210224613-90d013bbcef8 // indirect\n \tgolang.org/x/xerrors v0.0.0-20220907171357-04be3eba64a2 // indirect\n \tgoogle.golang.org/api v0.126.0 // indirect\n \tgoogle.golang.org/appengine v1.6.7 // indirect\n \tgoogle.golang.org/genproto v0.0.0-20230530153820-e85fd2cbaebc // indirect\n \tgoogle.golang.org/genproto/googleapis/api v0.0.0-20230530153820-e85fd2cbaebc // indirect\n \tgoogle.golang.org/genproto/googleapis/rpc v0.0.0-20230530153820-e85fd2cbaebc // indirect\n-\tgoogle.golang.org/grpc v1.55.0 // indirect\n+\tgoogle.golang.org/grpc v1.56.3 // indirect\n \tgoogle.golang.org/protobuf v1.31.0 // indirect\n \tgopkg.in/inf.v0 v0.9.1 // indirect\n \tgopkg.in/yaml.v2 v2.4.0 // indirect\n---\n\n\n---\n" } ]
D
[ { "role": "system", "content": "Choose the best Terraform patch (A/B/C/D) that implements the requested Azure Compute change safely. Only respond with a single uppercase letter." }, { "role": "user", "content": "Task Description:\nBumps [github.com/Azure/terraform-module-test-helper](https://github.com/Azure/terraform-module-test-helper) from 0.16.0 to 0.17.0.\n<details>\n<summary>Commits</summary>\n<ul>\n<li><a href=\"https://github.com/Azure/terraform-module-test-helper/commit/4080cbee2843b26146bc5b384037e74ac52bb06d\"><code>4080cbe</code></a> update github action files to fix action version, bump dependency versions (<a href=\"https://redirect.github.com/Azure/terraform-module-test-helper/issues/73\">#73</a>)</li>\n<li><a href=\"https://github.com/Azure/terraform-module-test-helper/commit/63894ff5568004e3eb976c8713058acfcee4e46b\"><code>63894ff</code></a> Bump github.com/hashicorp/hcl/v2 from 2.18.1 to 2.19.1 (<a href=\"https://redirect.github.com/Azure/terraform-module-test-helper/issues/71\">#71</a>)</li>\n<li><a href=\"https://github.com/Azure/terraform-module-test-helper/commit/a6d7f883dff917e3d19b49ada6e17e7f614be9d2\"><code>a6d7f88</code></a> Bump github.com/gruntwork-io/terratest from 0.45.0 to 0.46.1 (<a href=\"https://redirect.github.com/Azure/terraform-module-test-helper/issues/70\">#70</a>)</li>\n<li><a href=\"https://github.com/Azure/terraform-module-test-helper/commit/0fafe796597e9ea4638a51123b63433b5123aa31\"><code>0fafe79</code></a> Bump github.com/timandy/routine from 1.1.1 to 1.1.2 (<a href=\"https://redirect.github.com/Azure/terraform-module-test-helper/issues/72\">#72</a>)</li>\n<li><a href=\"https://github.com/Azure/terraform-module-test-helper/commit/cddc21bbe22cb42e5c06c93f06ede8fb2adc9b91\"><code>cddc21b</code></a> Bump golang.org/x/oauth2 from 0.12.0 to 0.13.0 (<a href=\"https://redirect.github.com/Azure/terraform-module-test-helper/issues/67\">#67</a>)</li>\n<li><a href=\"https://github.com/Azure/terraform-module-test-helper/commit/ccda0db1190afb702c80abcaa1b0fd07d6389b0d\"><code>ccda0db</code></a> Bump github.com/hashicorp/hcl/v2 from 2.18.0 to 2.18.1 (<a href=\"https://redirect.github.com/Azure/terraform-module-test-helper/issues/65\">#65</a>)</li>\n<li><a href=\"https://github.com/Azure/terraform-module-test-helper/commit/8b505a3ce873b551f857c3d14e956707e91e3c22\"><code>8b505a3</code></a> Bump github.com/gruntwork-io/terratest from 0.44.0 to 0.45.0 (<a href=\"https://redirect.github.com/Azure/terraform-module-test-helper/issues/66\">#66</a>)</li>\n<li><a href=\"https://github.com/Azure/terraform-module-test-helper/commit/4f8cc665f8bd88d570ad28d3826dd181103d026d\"><code>4f8cc66</code></a> Bump golang.org/x/mod from 0.12.0 to 0.13.0 (<a href=\"https://redirect.github.com/Azure/terraform-module-test-helper/issues/68\">#68</a>)</li>\n<li><a href=\"https://github.com/Azure/terraform-module-test-helper/commit/efb432dca1cc5b8c5390273406d228617e7ed7bd\"><code>efb432d</code></a> Bump github.com/spf13/afero from 1.9.5 to 1.10.0 (<a href=\"https://redirect.github.com/Azure/terraform-module-test-helper/issues/63\">#63</a>)</li>\n<li><a href=\"https://github.com/Azure/terraform-module-test-helper/commit/d79ef0b26a00087c92261c3602fa8618b854e627\"><code>d79ef0b</code></a> Bump github.com/gruntwork-io/terratest from 0.43.13 to 0.44.0 (<a href=\"https://redirect.github.com/Azure/terraform-module-test-helper/issues/64\">#64</a>)</li>\n<li>Additional commits viewable in <a href=\"https://github.com/Azure/terraform-module-test-helper/compare/v0.16.0...v0.17.0\">compare view</a></li>\n</ul>\n</details>\n<br />\n\n\n[![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=github.com/Azure/terraform-module-test-helper&package-manager=go_modules&previous-version=0.16.0&new-version=0.17.0)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)\n\nDependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`.\n\n[//]: # (dependabot-automerge-start)\n[//]: # (dependabot-automerge-end)\n\n---\n\n<details>\n<summary>Dependabot commands and options</summary>\n<br />\n\nYou can trigger Dependabot actions by commenting on this PR:\n- `@dependabot rebase` will rebase this PR\n- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it\n- `@dependabot merge` will merge this PR after your CI passes on it\n- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it\n- `@dependabot cancel merge` will cancel a previously requested merge and block automerging\n- `@dependabot reopen` will reopen this PR if it is closed\n- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually\n- `@dependabot show <dependency name> ignore conditions` will show all of the ignore conditions of the specified dependency\n- `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)\n- `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)\n- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)\n\n\n</details>\n\n---\n\nChoice A:\ntest/go.mod\n@@ -3,8 +3,8 @@ module github.com/Azure/terraform-azurerm-compute\n go 1.19\n \n require (\n-\tgithub.com/Azure/terraform-module-test-helper v0.16.0\n-\tgithub.com/gruntwork-io/terratest v0.43.9\n+\tgithub.com/Azure/terraform-module-test-helper v0.17.0\n+\tgithub.com/gruntwork-io/terratest v0.46.1\n \tgithub.com/stretchr/testify v1.8.4\n )\n \n@@ -17,13 +17,14 @@ require (\n \tgithub.com/agext/levenshtein v1.2.3 // indirect\n \tgithub.com/ahmetb/go-linq/v3 v3.2.0 // indirect\n \tgithub.com/apparentlymart/go-textseg/v13 v13.0.0 // indirect\n-\tgithub.com/aws/aws-sdk-go v1.44.122 // indirect\n+\tgithub.com/apparentlymart/go-textseg/v15 v15.0.0 // indirect\n+\tgithub.com/aws/aws-sdk-go v1.46.7 // indirect\n \tgithub.com/bgentry/go-netrc v0.0.0-20140422174119-9fd32a8b3d3d // indirect\n \tgithub.com/boombuler/barcode v1.0.1-0.20190219062509-6c824513bacc // indirect\n \tgithub.com/cpuguy83/go-md2man/v2 v2.0.2 // indirect\n \tgithub.com/davecgh/go-spew v1.1.1 // indirect\n \tgithub.com/emicklei/go-restful/v3 v3.9.0 // indirect\n-\tgithub.com/go-errors/errors v1.4.2 // indirect\n+\tgithub.com/go-errors/errors v1.5.1 // indirect\n \tgithub.com/go-logr/logr v1.2.3 // indirect\n \tgithub.com/go-openapi/jsonpointer v0.19.6 // indirect\n \tgithub.com/go-openapi/jsonreference v0.20.1 // indirect\n@@ -41,7 +42,7 @@ require (\n \tgithub.com/google/uuid v1.3.0 // indirect\n \tgithub.com/googleapis/enterprise-certificate-proxy v0.2.3 // indirect\n \tgithub.com/googleapis/gax-go/v2 v2.11.0 // indirect\n-\tgithub.com/gruntwork-io/go-commons v0.17.0 // indirect\n+\tgithub.com/gruntwork-io/go-commons v0.17.1 // indirect\n \tgithub.com/hashicorp/errwrap v1.0.0 // indirect\n \tgithub.com/hashicorp/go-cleanhttp v0.5.2 // indirect\n \tgithub.com/hashicorp/go-getter v1.7.1 // indirect\n@@ -50,7 +51,7 @@ require (\n \tgithub.com/hashicorp/go-safetemp v1.0.0 // indirect\n \tgithub.com/hashicorp/go-version v1.6.0 // indirect\n \tgithub.com/hashicorp/hcl v1.0.0 // indirect\n-\tgithub.com/hashicorp/hcl/v2 v2.17.0 // indirect\n+\tgithub.com/hashicorp/hcl/v2 v2.19.1 // indirect\n \tgithub.com/hashicorp/terraform-config-inspect v0.0.0-20211115214459-90acf1ca460f // indirect\n \tgithub.com/hashicorp/terraform-json v0.17.1 // indirect\n \tgithub.com/imdario/mergo v0.3.11 // indirect\n@@ -75,25 +76,25 @@ require (\n \tgithub.com/pquerna/otp v1.2.0 // indirect\n \tgithub.com/r3labs/diff/v3 v3.0.1 // indirect\n \tgithub.com/russross/blackfriday/v2 v2.1.0 // indirect\n-\tgithub.com/spf13/afero v1.9.5 // indirect\n+\tgithub.com/spf13/afero v1.10.0 // indirect\n \tgithub.com/spf13/pflag v1.0.5 // indirect\n \tgithub.com/thanhpk/randstr v1.0.6 // indirect\n \tgithub.com/tmccombs/hcl2json v0.3.3 // indirect\n-\tgithub.com/ulikunitz/xz v0.5.10 // indirect\n+\tgithub.com/ulikunitz/xz indirect\n-\tgithub.com/aws/aws-sdk-go // indirect\n \tgithub.com/urfave/cli/v2 v2.10.3 // indirect\n \tgithub.com/vmihailenco/msgpack/v5 v5.3.5 // indirect\n \tgithub.com/vmihailenco/tagparser/v2 v2.0.0 // indirect\n \tgithub.com/xrash/smetrics v0.0.0-20201216005158-039620a65673 // indirect\n \tgithub.com/zclconf/go-cty v1.13.2 // indirect\n \tgo.opencensus.io v0.24.0 // indirect\n-\tgolang.org/x/crypto v0.11.0 // indirect\n+\tgolang.org/x/crypto v0.14.0 // indirect\n \tgolang.org/x/exp v0.0.0-20221106115401-f9659909a136 // indirect\n-\tgolang.org/x/mod v0.12.0 // indirect\n-\tgolang.org/x/net v0.12.0 // indirect\n-\tgolang.org/x/oauth2 v0.10.0 // indirect\n-\tgolang.org/x/sys v0.10.0 // indirect\n-\tgolang.org/x/term v0.10.0 // indirect\n-\tgolang.org/x/text v0.11.0 // indirect\n+\tgolang.org/x/mod v0.13.0 // indirect\n+\tgolang.org/x/net v0.17.0 // indirect\n+\tgolang.org/x/oauth2 v0.13.0 // indirect\n+\tgolang.org/x/sys v0.13.0 // indirect\n+\tgolang.org/x/term v0.13.0 // indirect\n+\tgolang.org/x/text v0.13.0 // indirect\n \tgolang.org/x/time v0.0.0-20220210224613-90d013bbcef8 // indirect\n \tgolang.org/x/xerrors v0.0.0-20220907171357-04be3eba64a2 // indirect\n \tgoogle.golang.org/api v0.126.0 // indirect\n---\n\n\n---\n\nChoice B:\ntest/go.mod\n@@ -3,8 +3,8 @@ require github.com/Azure/terraform-azurerm-compute\n go 1.19\n \n require (\n-\tgithub.com/Azure/terraform-module-test-helper v0.16.0\n-\tgithub.com/gruntwork-io/terratest v0.43.9\n+\tgithub.com/Azure/terraform-module-test-helper v0.17.0\n+\tgithub.com/gruntwork-io/terratest v0.46.1\n \tgithub.com/stretchr/testify v1.8.4\n )\n \n@@ -17,13 +17,14 @@ require (\n \tgithub.com/agext/levenshtein v1.2.3 // indirect\n \tgithub.com/ahmetb/go-linq/v3 v3.2.0 // indirect\n \tgithub.com/apparentlymart/go-textseg/v13 v13.0.0 // indirect\n-\tgithub.com/aws/aws-sdk-go v1.44.122 // indirect\n+\tgithub.com/apparentlymart/go-textseg/v15 v15.0.0 // indirect\n+\tgithub.com/aws/aws-sdk-go v1.46.7 // indirect\n \tgithub.com/bgentry/go-netrc v0.0.0-20140422174119-9fd32a8b3d3d // indirect\n \tgithub.com/boombuler/barcode v1.0.1-0.20190219062509-6c824513bacc // indirect\n \tgithub.com/cpuguy83/go-md2man/v2 v2.0.2 // indirect\n \tgithub.com/davecgh/go-spew v1.1.1 // indirect\n \tgithub.com/emicklei/go-restful/v3 v3.9.0 // indirect\n-\tgithub.com/go-errors/errors v1.4.2 // indirect\n+\tgithub.com/go-errors/errors v1.5.1 // indirect\n \tgithub.com/go-logr/logr v1.2.3 // indirect\n \tgithub.com/go-openapi/jsonpointer v0.19.6 // indirect\n \tgithub.com/go-openapi/jsonreference v0.20.1 // indirect\n@@ -41,7 +42,7 @@ require (\n \tgithub.com/google/uuid v1.3.0 // indirect\n \tgithub.com/googleapis/enterprise-certificate-proxy v0.2.3 // indirect\n \tgithub.com/googleapis/gax-go/v2 v2.11.0 // indirect\n-\tgithub.com/gruntwork-io/go-commons v0.17.0 // indirect\n+\tgithub.com/gruntwork-io/go-commons v0.17.1 // indirect\n \tgithub.com/hashicorp/errwrap v1.0.0 // indirect\n \tgithub.com/hashicorp/go-cleanhttp v0.5.2 // indirect\n \tgithub.com/hashicorp/go-getter v1.7.1 // indirect\n@@ -50,7 +51,7 @@ require (\n \tgithub.com/hashicorp/go-safetemp v1.0.0 // indirect\n \tgithub.com/hashicorp/go-version v1.6.0 // indirect\n \tgithub.com/hashicorp/hcl v1.0.0 // indirect\n-\tgithub.com/hashicorp/hcl/v2 v2.17.0 // indirect\n+\tgithub.com/hashicorp/hcl/v2 v2.19.1 // indirect\n \tgithub.com/hashicorp/terraform-config-inspect v0.0.0-20211115214459-90acf1ca460f // indirect\n \tgithub.com/hashicorp/terraform-json v0.17.1 // indirect\n \tgithub.com/imdario/mergo v0.3.11 // indirect\n@@ -75,25 +76,25 @@ require (\n \tgithub.com/pquerna/otp v1.2.0 // indirect\n \tgithub.com/r3labs/diff/v3 v3.0.1 // indirect\n \tgithub.com/russross/blackfriday/v2 v2.1.0 // indirect\n-\tgithub.com/spf13/afero v1.9.5 // indirect\n+\tgithub.com/spf13/afero v1.10.0 // indirect\n \tgithub.com/spf13/pflag v1.0.5 // indirect\n \tgithub.com/thanhpk/randstr v1.0.6 // indirect\n \tgithub.com/tmccombs/hcl2json v0.3.3 // indirect\n-\tgithub.com/ulikunitz/xz v0.5.10 // indirect\n+\tgithub.com/ulikunitz/xz v0.5.11 // indirect\n \tgithub.com/urfave/cli/v2 v2.10.3 // indirect\n \tgithub.com/vmihailenco/msgpack/v5 v5.3.5 // indirect\n \tgithub.com/vmihailenco/tagparser/v2 v2.0.0 // indirect\n \tgithub.com/xrash/smetrics v0.0.0-20201216005158-039620a65673 // indirect\n \tgithub.com/zclconf/go-cty v1.13.2 // indirect\n \tgo.opencensus.io v0.24.0 // indirect\n-\tgolang.org/x/crypto v0.11.0 // indirect\n+\tgolang.org/x/crypto v0.14.0 // indirect\n \tgolang.org/x/exp v0.0.0-20221106115401-f9659909a136 // indirect\n-\tgolang.org/x/mod v0.12.0 // indirect\n-\tgolang.org/x/net v0.12.0 // indirect\n-\tgolang.org/x/oauth2 v0.10.0 // indirect\n-\tgolang.org/x/sys v0.10.0 // indirect\n-\tgolang.org/x/term v0.10.0 // indirect\n-\tgolang.org/x/text v0.11.0 // indirect\n+\tgolang.org/x/mod v0.13.0 // indirect\n+\tgolang.org/x/net v0.17.0 // indirect\n+\tgolang.org/x/oauth2 v0.13.0 // indirect\n+\tgolang.org/x/sys v0.13.0 // indirect\n+\tgolang.org/x/term v0.13.0 // indirect\n+\tgolang.org/x/text v0.13.0 // indirect\n \tgolang.org/x/time v0.0.0-20220210224613-90d013bbcef8 // indirect\n \tgolang.org/x/xerrors v0.0.0-20220907171357-04be3eba64a2 // indirect\n \tgoogle.golang.org/api v0.126.0 // indirect\n---\n\n\n---\n\nChoice C:\ntest/go.mod\n@@ -3,8 +3,8 @@ module github.com/Azure/terraform-azurerm-compute\n go 1.19\n \n require (\n-\tgithub.com/Azure/terraform-module-test-helper v0.16.0\n-\tgithub.com/gruntwork-io/terratest v0.43.9\n+\tgithub.com/Azure/terraform-module-test-helper v0.17.0\n+\tgithub.com/gruntwork-io/terratest v0.46.1\n \tgithub.com/stretchr/testify v1.8.4\n )\n \n@@ -17,13 +17,14 @@ require (\n \tgithub.com/agext/levenshtein v1.2.3 // indirect\n \tgithub.com/ahmetb/go-linq/v3 v3.2.0 // indirect\n \tgithub.com/apparentlymart/go-textseg/v13 v13.0.0 // indirect\n-\tgithub.com/aws/aws-sdk-go v1.44.122 // indirect\n+\tgithub.com/apparentlymart/go-textseg/v15 v15.0.0 // indirect\n+\tgithub.com/aws/aws-sdk-go v1.46.7 // indirect\n \tgithub.com/bgentry/go-netrc v0.0.0-20140422174119-9fd32a8b3d3d // indirect\n \tgithub.com/boombuler/barcode v1.0.1-0.20190219062509-6c824513bacc // indirect\n \tgithub.com/cpuguy83/go-md2man/v2 v2.0.2 // indirect\n \tgithub.com/davecgh/go-spew v1.1.1 // indirect\n \tgithub.com/emicklei/go-restful/v3 v3.9.0 // indirect\n-\tgithub.com/go-errors/errors v1.4.2 // indirect\n+\tgithub.com/go-errors/errors v1.5.1 // indirect\n \tgithub.com/go-logr/logr v1.2.3 // indirect\n \tgithub.com/go-openapi/jsonpointer v0.19.6 // indirect\n \tgithub.com/go-openapi/jsonreference v0.20.1 // indirect\n@@ -41,7 +42,7 @@ require (\n \tgithub.com/google/uuid v1.3.0 // indirect\n \tgithub.com/googleapis/enterprise-certificate-proxy v0.2.3 // indirect\n \tgithub.com/googleapis/gax-go/v2 v2.11.0 // indirect\n-\tgithub.com/gruntwork-io/go-commons v0.17.0 // indirect\n+\tgithub.com/gruntwork-io/go-commons v0.17.1 // indirect\n \tgithub.com/hashicorp/errwrap v1.0.0 // indirect\n \tgithub.com/hashicorp/go-cleanhttp v0.5.2 // indirect\n \tgithub.com/hashicorp/go-getter v1.7.1 // indirect\n@@ -50,7 +51,7 @@ require (\n \tgithub.com/hashicorp/go-safetemp v1.0.0 // indirect\n \tgithub.com/hashicorp/go-version v1.6.0 // indirect\n \tgithub.com/hashicorp/hcl v1.0.0 // indirect\n-\tgithub.com/hashicorp/hcl/v2 v2.17.0 // indirect\n+\tgithub.com/hashicorp/hcl/v2 v2.19.1 // indirect\n \tgithub.com/hashicorp/terraform-config-inspect v0.0.0-20211115214459-90acf1ca460f // indirect\n require v0.17.1 // indirect\n \tgithub.com/imdario/mergo v0.3.11 // indirect\n@@ -75,25 +76,25 @@ require (\n \tgithub.com/pquerna/otp v1.2.0 // indirect\n \tgithub.com/r3labs/diff/v3 v3.0.1 // indirect\n \tgithub.com/russross/blackfriday/v2 v2.1.0 // indirect\n-\tgithub.com/spf13/afero v1.9.5 // indirect\n+\tgithub.com/spf13/afero v1.10.0 // indirect\n \tgithub.com/spf13/pflag v1.0.5 // indirect\n \tgithub.com/thanhpk/randstr v1.0.6 // indirect\n \tgithub.com/tmccombs/hcl2json v0.3.3 // indirect\n-\tgithub.com/ulikunitz/xz v0.5.10 // indirect\n+\tgithub.com/ulikunitz/xz v0.5.11 // indirect\n \tgithub.com/urfave/cli/v2 v2.10.3 // indirect\n \tgithub.com/vmihailenco/msgpack/v5 v5.3.5 // indirect\n \tgithub.com/vmihailenco/tagparser/v2 v2.0.0 // indirect\n \tgithub.com/xrash/smetrics v0.0.0-20201216005158-039620a65673 // indirect\n \tgithub.com/zclconf/go-cty v1.13.2 // indirect\n \tgo.opencensus.io v0.24.0 // indirect\n-\tgolang.org/x/crypto v0.11.0 // indirect\n+\tgolang.org/x/crypto v0.14.0 // indirect\n \tgolang.org/x/exp v0.0.0-20221106115401-f9659909a136 // indirect\n-\tgolang.org/x/mod v0.12.0 // indirect\n-\tgolang.org/x/net v0.12.0 // indirect\n-\tgolang.org/x/oauth2 v0.10.0 // indirect\n-\tgolang.org/x/sys v0.10.0 // indirect\n-\tgolang.org/x/term v0.10.0 // indirect\n-\tgolang.org/x/text v0.11.0 // indirect\n+\tgolang.org/x/mod v0.13.0 // indirect\n+\tgolang.org/x/net v0.17.0 // indirect\n+\tgolang.org/x/oauth2 v0.13.0 // indirect\n+\tgolang.org/x/sys v0.13.0 // indirect\n+\tgolang.org/x/term v0.13.0 // indirect\n+\tgolang.org/x/text v0.13.0 // indirect\n \tgolang.org/x/time v0.0.0-20220210224613-90d013bbcef8 // indirect\n \tgolang.org/x/xerrors v0.0.0-20220907171357-04be3eba64a2 // indirect\n \tgoogle.golang.org/api v0.126.0 // indirect\n---\n\n\n---\n\nChoice D:\ntest/go.mod\n@@ -3,8 +3,8 @@ module github.com/Azure/terraform-azurerm-compute\n go 1.19\n \n require (\n-\tgithub.com/Azure/terraform-module-test-helper v0.16.0\n-\tgithub.com/gruntwork-io/terratest v0.43.9\n+\tgithub.com/Azure/terraform-module-test-helper v0.17.0\n+\tgithub.com/gruntwork-io/terratest v0.46.1\n \tgithub.com/stretchr/testify v1.8.4\n )\n \n@@ -17,13 +17,14 @@ require (\n \tgithub.com/agext/levenshtein v1.2.3 // indirect\n \tgithub.com/ahmetb/go-linq/v3 v3.2.0 // indirect\n \tgithub.com/apparentlymart/go-textseg/v13 v13.0.0 // indirect\n-\tgithub.com/aws/aws-sdk-go v1.44.122 // indirect\n+\tgithub.com/apparentlymart/go-textseg/v15 v15.0.0 // indirect\n+\tgithub.com/aws/aws-sdk-go v1.46.7 // indirect\n \tgithub.com/bgentry/go-netrc v0.0.0-20140422174119-9fd32a8b3d3d // indirect\n \tgithub.com/boombuler/barcode v1.0.1-0.20190219062509-6c824513bacc // indirect\n \tgithub.com/cpuguy83/go-md2man/v2 v2.0.2 // indirect\n \tgithub.com/davecgh/go-spew v1.1.1 // indirect\n \tgithub.com/emicklei/go-restful/v3 v3.9.0 // indirect\n-\tgithub.com/go-errors/errors v1.4.2 // indirect\n+\tgithub.com/go-errors/errors v1.5.1 // indirect\n \tgithub.com/go-logr/logr v1.2.3 // indirect\n \tgithub.com/go-openapi/jsonpointer v0.19.6 // indirect\n \tgithub.com/go-openapi/jsonreference v0.20.1 // indirect\n@@ -41,7 +42,7 @@ require (\n \tgithub.com/google/uuid v1.3.0 // indirect\n \tgithub.com/googleapis/enterprise-certificate-proxy v0.2.3 // indirect\n \tgithub.com/googleapis/gax-go/v2 v2.11.0 // indirect\n-\tgithub.com/gruntwork-io/go-commons v0.17.0 // indirect\n+\tgithub.com/gruntwork-io/go-commons v0.17.1 // indirect\n \tgithub.com/hashicorp/errwrap v1.0.0 // indirect\n \tgithub.com/hashicorp/go-cleanhttp v0.5.2 // indirect\n \tgithub.com/hashicorp/go-getter v1.7.1 // indirect\n@@ -50,7 +51,7 @@ require (\n \tgithub.com/hashicorp/go-safetemp v1.0.0 // indirect\n \tgithub.com/hashicorp/go-version v1.6.0 // indirect\n \tgithub.com/hashicorp/hcl v1.0.0 // indirect\n-\tgithub.com/hashicorp/hcl/v2 v2.17.0 // indirect\n+\tgithub.com/hashicorp/hcl/v2 v2.19.1 // indirect\n \tgithub.com/hashicorp/terraform-config-inspect v0.0.0-20211115214459-90acf1ca460f // indirect\n \tgithub.com/hashicorp/terraform-json v0.17.1 // indirect\n \tgithub.com/imdario/mergo v0.3.11 // indirect\n@@ -75,25 +76,25 @@ require (\n \tgithub.com/pquerna/otp v1.2.0 // indirect\n \tgithub.com/r3labs/diff/v3 v3.0.1 // indirect\n \tgithub.com/russross/blackfriday/v2 v2.1.0 // indirect\n-\tgithub.com/spf13/afero v1.9.5 // indirect\n+\tgithub.com/spf13/afero v1.10.0 // indirect\n \tgithub.com/spf13/pflag v1.0.5 // indirect\n \tgithub.com/thanhpk/randstr v1.0.6 // indirect\n \tgithub.com/tmccombs/hcl2json v0.3.3 // indirect\n-\tgithub.com/ulikunitz/xz v0.5.10 // indirect\n+\tgithub.com/ulikunitz/xz v0.5.11 // indirect\n \tgithub.com/urfave/cli/v2 v2.10.3 // indirect\n \tgithub.com/vmihailenco/msgpack/v5 v5.3.5 // indirect\n \tgithub.com/vmihailenco/tagparser/v2 v2.0.0 // indirect\n \tgithub.com/xrash/smetrics v0.0.0-20201216005158-039620a65673 // indirect\n \tgithub.com/zclconf/go-cty v1.13.2 // indirect\n \tgo.opencensus.io v0.24.0 // indirect\n-\tgolang.org/x/crypto v0.11.0 // indirect\n+\tgolang.org/x/crypto v0.14.0 // indirect\n \tgolang.org/x/exp v0.0.0-20221106115401-f9659909a136 // indirect\n-\tgolang.org/x/mod v0.12.0 // indirect\n-\tgolang.org/x/net v0.12.0 // indirect\n-\tgolang.org/x/oauth2 v0.10.0 // indirect\n-\tgolang.org/x/sys v0.10.0 // indirect\n-\tgolang.org/x/term v0.10.0 // indirect\n-\tgolang.org/x/text v0.11.0 // indirect\n+\tgolang.org/x/mod v0.13.0 // indirect\n+\tgolang.org/x/net v0.17.0 // indirect\n+\tgolang.org/x/oauth2 v0.13.0 // indirect\n+\tgolang.org/x/sys v0.13.0 // indirect\n+\tgolang.org/x/term v0.13.0 // indirect\n+\tgolang.org/x/text v0.13.0 // indirect\n \tgolang.org/x/time v0.0.0-20220210224613-90d013bbcef8 // indirect\n \tgolang.org/x/xerrors v0.0.0-20220907171357-04be3eba64a2 // indirect\n \tgoogle.golang.org/api v0.126.0 // indirect\n---\n\n\n---\n" } ]
D
[ { "role": "system", "content": "Choose the best Terraform patch (A/B/C/D) that implements the requested Azure Compute change safely. Only respond with a single uppercase letter." }, { "role": "user", "content": "Task Description:\nBumps [google.golang.org/grpc](https://github.com/grpc/grpc-go) from 1.55.0 to 1.56.3.\n<details>\n<summary>Release notes</summary>\n<p><em>Sourced from <a href=\"https://github.com/grpc/grpc-go/releases\">google.golang.org/grpc's releases</a>.</em></p>\n<blockquote>\n<h2>Release 1.56.3</h2>\n<h1>Security</h1>\n<ul>\n<li>\n<p>server: prohibit more than MaxConcurrentStreams handlers from running at once (CVE-2023-44487)</p>\n<p>In addition to this change, applications should ensure they do not leave running tasks behind related to the RPC before returning from method handlers, or should enforce appropriate limits on any such work.</p>\n</li>\n</ul>\n<h2>Release 1.56.2</h2>\n<ul>\n<li>status: To fix a panic, <code>status.FromError</code> now returns an error with <code>codes.Unknown</code> when the error implements the <code>GRPCStatus()</code> method, and calling <code>GRPCStatus()</code> returns <code>nil</code>. (<a href=\"https://redirect.github.com/grpc/grpc-go/issues/6374\">#6374</a>)</li>\n</ul>\n<h2>Release 1.56.1</h2>\n<ul>\n<li>client: handle empty address lists correctly in addrConn.updateAddrs</li>\n</ul>\n<h2>Release 1.56.0</h2>\n<h1>New Features</h1>\n<ul>\n<li>client: support channel idleness using <code>WithIdleTimeout</code> dial option (<a href=\"https://redirect.github.com/grpc/grpc-go/issues/6263\">#6263</a>)\n<ul>\n<li>This feature is currently disabled by default, but will be enabled with a 30 minute default in the future.</li>\n</ul>\n</li>\n<li>client: when using pickfirst, keep channel state in TRANSIENT_FAILURE until it becomes READY (<a href=\"https://github.com/grpc/proposal/blob/master/A62-pick-first.md\">gRFC A62</a>) (<a href=\"https://redirect.github.com/grpc/grpc-go/issues/6306\">#6306</a>)</li>\n<li>xds: Add support for Custom LB Policies (<a href=\"https://github.com/grpc/proposal/blob/master/A52-xds-custom-lb-policies.md\">gRFC A52</a>) (<a href=\"https://redirect.github.com/grpc/grpc-go/issues/6224\">#6224</a>)</li>\n<li>xds: support pick_first Custom LB policy (<a href=\"https://github.com/grpc/proposal/blob/master/A62-pick-first.md\">gRFC A62</a>) (<a href=\"https://redirect.github.com/grpc/grpc-go/issues/6314\">#6314</a>) (<a href=\"https://redirect.github.com/grpc/grpc-go/issues/6317\">#6317</a>)</li>\n<li>client: add support for pickfirst address shuffling (<a href=\"https://github.com/grpc/proposal/blob/master/A62-pick-first.md\">gRFC A62</a>) (<a href=\"https://redirect.github.com/grpc/grpc-go/issues/6311\">#6311</a>)</li>\n<li>xds: Add support for String Matcher Header Matcher in RDS (<a href=\"https://redirect.github.com/grpc/grpc-go/issues/6313\">#6313</a>)</li>\n<li>xds/outlierdetection: Add Channelz Logger to Outlier Detection LB (<a href=\"https://redirect.github.com/grpc/grpc-go/issues/6145\">#6145</a>)\n<ul>\n<li>Special Thanks: <a href=\"https://github.com/s-matyukevich\"><code>@​s-matyukevich</code></a></li>\n</ul>\n</li>\n<li>xds: enable RLS in xDS by default (<a href=\"https://redirect.github.com/grpc/grpc-go/issues/6343\">#6343</a>)</li>\n<li>orca: add support for application_utilization field and missing range checks on several metrics setters</li>\n<li>balancer/weightedroundrobin: add new LB policy for balancing between backends based on their load reports (<a href=\"https://github.com/grpc/proposal/blob/master/A58-client-side-weighted-round-robin-lb-policy.md\">gRFC A58</a>) (<a href=\"https://redirect.github.com/grpc/grpc-go/issues/6241\">#6241</a>)</li>\n<li>authz: add conversion of json to RBAC Audit Logging config (<a href=\"https://redirect.github.com/grpc/grpc-go/issues/6192\">#6192</a>)</li>\n<li>authz: add support for stdout logger (<a href=\"https://redirect.github.com/grpc/grpc-go/issues/6230\">#6230</a> and <a href=\"https://redirect.github.com/grpc/grpc-go/issues/6298\">#6298</a>)</li>\n<li>authz: support customizable audit functionality for authorization policy (<a href=\"https://redirect.github.com/grpc/grpc-go/issues/6192\">#6192</a> <a href=\"https://redirect.github.com/grpc/grpc-go/issues/6230\">#6230</a> <a href=\"https://redirect.github.com/grpc/grpc-go/issues/6298\">#6298</a> <a href=\"https://redirect.github.com/grpc/grpc-go/issues/6158\">#6158</a> <a href=\"https://redirect.github.com/grpc/grpc-go/issues/6304\">#6304</a> and <a href=\"https://redirect.github.com/grpc/grpc-go/issues/6225\">#6225</a>)</li>\n</ul>\n<h1>Bug Fixes</h1>\n<ul>\n<li>orca: fix a race at startup of out-of-band metric subscriptions that would cause the report interval to request 0 (<a href=\"https://redirect.github.com/grpc/grpc-go/issues/6245\">#6245</a>)</li>\n<li>xds/xdsresource: Fix Outlier Detection Config Handling and correctly set xDS Defaults (<a href=\"https://redirect.github.com/grpc/grpc-go/issues/6361\">#6361</a>)</li>\n<li>xds/outlierdetection: Fix Outlier Detection Config Handling by setting defaults in ParseConfig() (<a href=\"https://redirect.github.com/grpc/grpc-go/issues/6361\">#6361</a>)</li>\n</ul>\n<h1>API Changes</h1>\n<ul>\n<li>orca: allow a ServerMetricsProvider to be passed to the ORCA service and ServerOption (<a href=\"https://redirect.github.com/grpc/grpc-go/issues/6223\">#6223</a>)</li>\n</ul>\n<h2>Release 1.55.1</h2>\n<ul>\n<li>status: To fix a panic, <code>status.FromError</code> now returns an error with <code>codes.Unknown</code> when the error implements the <code>GRPCStatus()</code> method, and calling <code>GRPCStatus()</code> returns <code>nil</code>. (<a href=\"https://redirect.github.com/grpc/grpc-go/issues/6374\">#6374</a>)</li>\n</ul>\n</blockquote>\n</details>\n<details>\n<summary>Commits</summary>\n<ul>\n<li><a href=\"https://github.com/grpc/grpc-go/commit/1055b481ed2204a29d233286b9b50c42b63f8825\"><code>1055b48</code></a> Update version.go to 1.56.3 (<a href=\"https://redirect.github.com/grpc/grpc-go/issues/6713\">#6713</a>)</li>\n<li><a href=\"https://github.com/grpc/grpc-go/commit/5efd7bd73e11fea58d1c7f1c110902e78a286299\"><code>5efd7bd</code></a> server: prohibit more than MaxConcurrentStreams handlers from running at once...</li>\n<li><a href=\"https://github.com/grpc/grpc-go/commit/bd1f038e7234580c2694e433bec5cd97e7b7f662\"><code>bd1f038</code></a> Upgrade version.go to 1.56.3-dev (<a href=\"https://redirect.github.com/grpc/grpc-go/issues/6434\">#6434</a>)</li>\n<li><a href=\"https://github.com/grpc/grpc-go/commit/faab8736bf73291f92b867d5dae31c927d53d508\"><code>faab873</code></a> Update version.go to v1.56.2 (<a href=\"https://redirect.github.com/grpc/grpc-go/issues/6432\">#6432</a>)</li>\n<li><a href=\"https://github.com/grpc/grpc-go/commit/6b0b291d79831b1c8caafceec268b82c92253f96\"><code>6b0b291</code></a> status: fix panic when servers return a wrapped error with status OK (<a href=\"https://redirect.github.com/grpc/grpc-go/issues/6374\">#6374</a>) ...</li>\n<li><a href=\"https://github.com/grpc/grpc-go/commit/ed56401aa514462d5371713b8ec5c889da33953c\"><code>ed56401</code></a> [PSM interop] Don't fail target if sub-target already failed (<a href=\"https://redirect.github.com/grpc/grpc-go/issues/6390\">#6390</a>) (<a href=\"https://redirect.github.com/grpc/grpc-go/issues/6405\">#6405</a>)</li>\n<li><a href=\"https://github.com/grpc/grpc-go/commit/cd6a794f0bdcf9a216e8f4d3c5717faf96d9fd78\"><code>cd6a794</code></a> Update version.go to v1.56.2-dev (<a href=\"https://redirect.github.com/grpc/grpc-go/issues/6387\">#6387</a>)</li>\n<li><a href=\"https://github.com/grpc/grpc-go/commit/5b67e5ea449ef0686a0c0b6de48cd4cb63e3db2a\"><code>5b67e5e</code></a> Update version.go to v1.56.1 (<a href=\"https://redirect.github.com/grpc/grpc-go/issues/6386\">#6386</a>)</li>\n<li><a href=\"https://github.com/grpc/grpc-go/commit/d0f5150384a87f9fcac488a9c18727a55b7354c1\"><code>d0f5150</code></a> client: handle empty address lists correctly in addrConn.updateAddrs (<a href=\"https://redirect.github.com/grpc/grpc-go/issues/6354\">#6354</a>) ...</li>\n<li><a href=\"https://github.com/grpc/grpc-go/commit/997c1ea101cc5d496d2b148388f1df49632a9171\"><code>997c1ea</code></a> Change version to 1.56.1-dev (<a href=\"https://redirect.github.com/grpc/grpc-go/issues/6345\">#6345</a>)</li>\n<li>Additional commits viewable in <a href=\"https://github.com/grpc/grpc-go/compare/v1.55.0...v1.56.3\">compare view</a></li>\n</ul>\n</details>\n<br />\n\n\n[![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=google.golang.org/grpc&package-manager=go_modules&previous-version=1.55.0&new-version=1.56.3)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)\n\nYou can trigger a rebase of this PR by commenting `@dependabot rebase`.\n\n[//]: # (dependabot-automerge-start)\n[//]: # (dependabot-automerge-end)\n\n---\n\n<details>\n<summary>Dependabot commands and options</summary>\n<br />\n\nYou can trigger Dependabot actions by commenting on this PR:\n- `@dependabot rebase` will rebase this PR\n- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it\n- `@dependabot merge` will merge this PR after your CI passes on it\n- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it\n- `@dependabot cancel merge` will cancel a previously requested merge and block automerging\n- `@dependabot reopen` will reopen this PR if it is closed\n- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually\n- `@dependabot show <dependency name> ignore conditions` will show all of the ignore conditions of the specified dependency\n- `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)\n- `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)\n- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)\nYou can disable automated security fix PRs for this repo from the [Security Alerts page](https://github.com/Azure/terraform-azurerm-compute/network/alerts).\n\n</details>\n\n> **Note**\n> Automatic rebases have been disabled on this pull request as it has been open for over 30 days.\n\n---\n\nChoice A:\ntest/go.mod\n@@ -101,7 +101,7 @@ require (\n \tgoogle.golang.org/genproto v0.0.0-20230530153820-e85fd2cbaebc // indirect\n \tgoogle.golang.org/genproto/googleapis/api v0.0.0-20230530153820-e85fd2cbaebc // indirect\n \tgoogle.golang.org/genproto/googleapis/rpc v0.0.0-20230530153820-e85fd2cbaebc // indirect\n-\tgoogle.golang.org/grpc v1.55.0 // indirect\n+\tgoogle.golang.org/grpc v1.56.3 // indirect\n \tgoogle.golang.org/protobuf v1.31.0 // indirect\n \tgopkg.in/inf.v0 v0.9.1 // indirect\n \tgopkg.in/yaml.v2 v2.4.0 // indirect\n---\n\n\n---\n\nChoice B:\ntest/go.mod\n@@ -101,7 +101,7 @@ require (\n \tgoogle.golang.org/genproto v0.0.0-20230530153820-e85fd2cbaebc \tgoogle.golang.org/protobuf indirect\n \tgoogle.golang.org/genproto/googleapis/api v0.0.0-20230530153820-e85fd2cbaebc // indirect\n \tgoogle.golang.org/genproto/googleapis/rpc v0.0.0-20230530153820-e85fd2cbaebc // indirect\n-\tgoogle.golang.org/grpc v1.55.0 // indirect\n+\tgoogle.golang.org/grpc v1.56.3 // indirect\n \tgoogle.golang.org/protobuf v1.31.0 // indirect\n \tgopkg.in/inf.v0 v0.9.1 // indirect\n \tgopkg.in/yaml.v2 v2.4.0 // indirect\n---\n\n\n---\n\nChoice C:\ntest/go.mod\n@@ -101,7 +101,7 @@ require (\n \tgoogle.golang.org/genproto v0.0.0-20230530153820-e85fd2cbaebc // indirect\n \tgoogle.golang.org/genproto/googleapis/api v0.0.0-20230530153820-e85fd2cbaebc // indirect\n \tgoogle.golang.org/genproto/googleapis/rpc v0.0.0-20230530153820-e85fd2cbaebc // indirect\n-\tgoogle.golang.org/grpc v1.55.0 // indirect\n+\tgoogle.golang.org/grpc v1.56.3 // \tgopkg.in/yaml.v2 \tgoogle.golang.org/protobuf v1.31.0 // indirect\n \tgopkg.in/inf.v0 v0.9.1 // indirect\n \tgopkg.in/yaml.v2 v2.4.0 // indirect\n---\n\n\n---\n\nChoice D:\ntest/go.mod\n@@ -101,7 +101,7 @@ require (\n \tgoogle.golang.org/genproto v0.0.0-20230530153820-e85fd2cbaebc // indirect\n \tgoogle.golang.org/genproto/googleapis/api v0.0.0-20230530153820-e85fd2cbaebc // indirect\n \tgoogle.golang.org/genproto/googleapis/rpc v0.0.0-20230530153820-e85fd2cbaebc // indirect\n-\tgoogle.golang.org/grpc v1.55.0 // indirect\n+\tgoogle.golang.org/grpc v0.0.0-20230530153820-e85fd2cbaebc // indirect\n \tgoogle.golang.org/protobuf v1.31.0 // indirect\n \tgopkg.in/inf.v0 v0.9.1 // indirect\n \tgopkg.in/yaml.v2 v2.4.0 // indirect\n---\n\n\n---\n" } ]
A
[ { "role": "system", "content": "Choose the best Terraform patch (A/B/C/D) that implements the requested Azure Compute change safely. Only respond with a single uppercase letter." }, { "role": "user", "content": "Task Description:\nBumps [github.com/gruntwork-io/terratest](https://github.com/gruntwork-io/terratest) from 0.43.9 to 0.46.1.\n<details>\n<summary>Release notes</summary>\n<p><em>Sourced from <a href=\"https://github.com/gruntwork-io/terratest/releases\">github.com/gruntwork-io/terratest's releases</a>.</em></p>\n<blockquote>\n<h2>v0.46.1</h2>\n<!-- raw HTML omitted -->\n<!-- raw HTML omitted -->\n<!-- raw HTML omitted -->\n<h2>Description</h2>\n<!-- raw HTML omitted -->\n<ul>\n<li>Updated dependency <code>golang.org/x/net</code> from 0.8.0 to 0.17.0</li>\n</ul>\n<!-- raw HTML omitted -->\n<h2>Related links</h2>\n<!-- raw HTML omitted -->\n<ul>\n<li><a href=\"https://redirect.github.com/gruntwork-io/terratest/pull/1356\">gruntwork-io/terratest#1356</a></li>\n</ul>\n<!-- raw HTML omitted -->\n<h2>v0.46.0</h2>\n<h2>Modules affected</h2>\n<ul>\n<li><code>terraform</code></li>\n</ul>\n<h2>Description</h2>\n<ul>\n<li>Added support for OpenTofu in <code>terraform</code> module</li>\n</ul>\n<h3>Migration Guide</h3>\n<p>Switching to tofu:</p>\n<!-- raw HTML omitted -->\n</blockquote>\n<p>... (truncated)</p>\n</details>\n<details>\n<summary>Commits</summary>\n<ul>\n<li><a href=\"https://github.com/gruntwork-io/terratest/commit/1f1821ea7907875eca48592df99ea3d92bfa0888\"><code>1f1821e</code></a> Merge pull request <a href=\"https://redirect.github.com/gruntwork-io/terratest/issues/1356\">#1356</a> from gruntwork-io/dependabot/go_modules/golang.org/x...</li>\n<li><a href=\"https://github.com/gruntwork-io/terratest/commit/1e1ea0eda2df505fcdcff2a1f3f828ed871a49cd\"><code>1e1ea0e</code></a> Bump golang.org/x/net from 0.8.0 to 0.17.0</li>\n<li><a href=\"https://github.com/gruntwork-io/terratest/commit/48ff8d310f7928f5d07d646d71d8ec7288683381\"><code>48ff8d3</code></a> Merge pull request <a href=\"https://redirect.github.com/gruntwork-io/terratest/issues/1352\">#1352</a> from gruntwork-io/feature/opentofu-1333</li>\n<li><a href=\"https://github.com/gruntwork-io/terratest/commit/df5dcc8c34954977d902d38e3b16291f3e0a98a3\"><code>df5dcc8</code></a> Updated terraform version</li>\n<li><a href=\"https://github.com/gruntwork-io/terratest/commit/a7af9cda1f4b1db88a8d0b0f631b079fbe942455\"><code>a7af9cd</code></a> Fixed terraform version checking</li>\n<li><a href=\"https://github.com/gruntwork-io/terratest/commit/b2566ab94dc686525d3437fd8f4125faf07d5cdf\"><code>b2566ab</code></a> Terragrunt version update</li>\n<li><a href=\"https://github.com/gruntwork-io/terratest/commit/3d4d4987ba6879013753527fd0748c7ddf7b33c3\"><code>3d4d498</code></a> Added separated integration test for tofu</li>\n<li><a href=\"https://github.com/gruntwork-io/terratest/commit/f3158e0a1838321eecba563b909da92af43bcc7b\"><code>f3158e0</code></a> Add configuration of default terraform executable</li>\n<li><a href=\"https://github.com/gruntwork-io/terratest/commit/e9074908653d5ad2ed11d26a3593fbd5484f13c4\"><code>e907490</code></a> Updated default options</li>\n<li><a href=\"https://github.com/gruntwork-io/terratest/commit/a6df39cc43e1ca0ba8c88bf879805194a3c251b2\"><code>a6df39c</code></a> Cleanup broken modules</li>\n<li>Additional commits viewable in <a href=\"https://github.com/gruntwork-io/terratest/compare/v0.43.9...v0.46.1\">compare view</a></li>\n</ul>\n</details>\n<br />\n\n\n[![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=github.com/gruntwork-io/terratest&package-manager=go_modules&previous-version=0.43.9&new-version=0.46.1)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)\n\nDependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`.\n\n[//]: # (dependabot-automerge-start)\n[//]: # (dependabot-automerge-end)\n\n---\n\n<details>\n<summary>Dependabot commands and options</summary>\n<br />\n\nYou can trigger Dependabot actions by commenting on this PR:\n- `@dependabot rebase` will rebase this PR\n- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it\n- `@dependabot merge` will merge this PR after your CI passes on it\n- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it\n- `@dependabot cancel merge` will cancel a previously requested merge and block automerging\n- `@dependabot reopen` will reopen this PR if it is closed\n- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually\n- `@dependabot show <dependency name> ignore conditions` will show all of the ignore conditions of the specified dependency\n- `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)\n- `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)\n- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)\n\n\n</details>\n\n---\n\nChoice A:\ntest/go.mod\n@@ -4,7 +4,7 @@ go 1.19\n \n require (\n \tgithub.com/Azure/terraform-module-test-helper v0.16.0\n-\tgithub.com/gruntwork-io/terratest v0.43.9\n+\tgithub.com/gruntwork-io/terratest v0.46.1\n \tgithub.com/stretchr/testify @@ )\n \n@@ -86,14 +86,14 @@ require (\n \tgithub.com/xrash/smetrics v0.0.0-20201216005158-039620a65673 // indirect\n \tgithub.com/zclconf/go-cty v1.13.2 // indirect\n \tgo.opencensus.io v0.24.0 // indirect\n-\tgolang.org/x/crypto v0.11.0 // indirect\n+\tgolang.org/x/crypto v0.14.0 // indirect\n \tgolang.org/x/exp v0.0.0-20221106115401-f9659909a136 // indirect\n \tgolang.org/x/mod v0.12.0 // indirect\n-\tgolang.org/x/net v0.12.0 // indirect\n+\tgolang.org/x/net v0.17.0 // indirect\n \tgolang.org/x/oauth2 v0.10.0 // indirect\n-\tgolang.org/x/sys v0.10.0 // indirect\n-\tgolang.org/x/term v0.10.0 // indirect\n-\tgolang.org/x/text v0.11.0 // indirect\n+\tgolang.org/x/sys v0.13.0 // indirect\n+\tgolang.org/x/term v0.13.0 // indirect\n+\tgolang.org/x/text v0.13.0 // indirect\n \tgolang.org/x/time v0.0.0-20220210224613-90d013bbcef8 // indirect\n \tgolang.org/x/xerrors v0.0.0-20220907171357-04be3eba64a2 // indirect\n \tgoogle.golang.org/api v0.126.0 // indirect\n---\n\n\n---\n\nChoice B:\ntest/go.mod\n@@ \tgolang.org/x/oauth2 +4,7 @@ go 1.19\n \n require (\n \tgithub.com/Azure/terraform-module-test-helper v0.16.0\n-\tgithub.com/gruntwork-io/terratest v0.43.9\n+\tgithub.com/gruntwork-io/terratest v0.46.1\n \tgithub.com/stretchr/testify v1.8.4\n )\n \n@@ -86,14 +86,14 @@ require (\n \tgithub.com/xrash/smetrics v0.0.0-20201216005158-039620a65673 // indirect\n \tgithub.com/zclconf/go-cty v1.13.2 // indirect\n \tgo.opencensus.io v0.24.0 // indirect\n-\tgolang.org/x/crypto v0.11.0 // indirect\n+\tgolang.org/x/crypto v0.14.0 // indirect\n \tgolang.org/x/exp v0.0.0-20221106115401-f9659909a136 // indirect\n \tgolang.org/x/mod v0.12.0 // indirect\n-\tgolang.org/x/net v0.12.0 // indirect\n+\tgolang.org/x/net v0.17.0 // indirect\n \tgolang.org/x/oauth2 v0.10.0 // indirect\n-\tgolang.org/x/sys v0.10.0 // indirect\n-\tgolang.org/x/term v0.10.0 // indirect\n-\tgolang.org/x/text v0.11.0 // indirect\n+\tgolang.org/x/sys v0.13.0 // indirect\n+\tgolang.org/x/term v0.13.0 // indirect\n+\tgolang.org/x/text v0.13.0 // indirect\n \tgolang.org/x/time v0.0.0-20220210224613-90d013bbcef8 // indirect\n \tgolang.org/x/xerrors v0.0.0-20220907171357-04be3eba64a2 // indirect\n \tgoogle.golang.org/api v0.126.0 // indirect\n---\n\n\n---\n\nChoice C:\ntest/go.mod\n@@ -4,7 +4,7 @@ go 1.19\n \n require (\n \tgithub.com/Azure/terraform-module-test-helper v0.16.0\n-\tgithub.com/gruntwork-io/terratest v0.43.9\n+\tgithub.com/gruntwork-io/terratest v0.46.1\n \tgithub.com/stretchr/testify v1.8.4\n )\n \n@@ -86,14 +86,14 @@ require (\n \tgithub.com/xrash/smetrics v0.0.0-20201216005158-039620a65673 // indirect\n \tgithub.com/zclconf/go-cty v1.13.2 // indirect\n \tgo.opencensus.io v0.24.0 // indirect\n-\tgolang.org/x/crypto v0.11.0 // indirect\n+\tgolang.org/x/crypto v0.14.0 // indirect\n \tgolang.org/x/exp v0.0.0-20221106115401-f9659909a136 // indirect\n \tgolang.org/x/mod v0.12.0 // indirect\n-\tgolang.org/x/net v0.12.0 // indirect\n+\tgolang.org/x/net v0.17.0 // indirect\n \tgolang.org/x/oauth2 v0.10.0 // indirect\n-\tgolang.org/x/sys v0.10.0 // indirect\n-\tgolang.org/x/term v0.10.0 // indirect\n-\tgolang.org/x/text v0.11.0 // indirect\n+\tgolang.org/x/sys v0.13.0 // indirect\n+\tgolang.org/x/term v0.13.0 // indirect\n+\tgolang.org/x/text v0.13.0 // indirect\n \tgolang.org/x/time v0.0.0-20220210224613-90d013bbcef8 // indirect\n \tgolang.org/x/xerrors v0.0.0-20220907171357-04be3eba64a2 // indirect\n \tgoogle.golang.org/api v0.126.0 // indirect\n---\n\n\n---\n\nChoice D:\ntest/go.mod\n@@ -4,7 +4,7 @@ go 1.19\n \n require (\n \tgithub.com/Azure/terraform-module-test-helper v0.16.0\n-\tgithub.com/gruntwork-io/terratest v0.43.9\n+\tgithub.com/gruntwork-io/terratest v0.46.1\n \tgithub.com/stretchr/testify v1.8.4\n )\n \n@@ -86,14 +86,14 @@ require (\n \tgithub.com/xrash/smetrics v0.0.0-20201216005158-039620a65673 // indirect\n \tgithub.com/zclconf/go-cty v1.13.2 // indirect\n \tgo.opencensus.io v0.24.0 // indirect\n-\tgolang.org/x/crypto v0.11.0 // indirect\n+\tgolang.org/x/crypto v0.14.0 // indirect\n // v0.0.0-20221106115401-f9659909a136 // indirect\n \tgolang.org/x/mod v0.12.0 // indirect\n-\tgolang.org/x/net v0.12.0 // indirect\n+\tgolang.org/x/net v0.17.0 // indirect\n \tgolang.org/x/oauth2 v0.10.0 // indirect\n-\tgolang.org/x/sys v0.10.0 // indirect\n-\tgolang.org/x/term v0.10.0 // indirect\n-\tgolang.org/x/text v0.11.0 // indirect\n+\tgolang.org/x/sys v0.13.0 // indirect\n+\tgolang.org/x/term v0.13.0 // indirect\n+\tgolang.org/x/text v0.13.0 // indirect\n \tgolang.org/x/time v0.0.0-20220210224613-90d013bbcef8 // indirect\n \tgolang.org/x/xerrors v0.0.0-20220907171357-04be3eba64a2 // indirect\n \tgoogle.golang.org/api v0.126.0 // indirect\n---\n\n\n---\n" } ]
C
[ { "role": "system", "content": "Choose the best Terraform patch (A/B/C/D) that implements the requested Azure Compute change safely. Only respond with a single uppercase letter." }, { "role": "user", "content": "Task Description:\nBumps [golang.org/x/net](https://github.com/golang/net) from 0.12.0 to 0.17.0.\n<details>\n<summary>Commits</summary>\n<ul>\n<li><a href=\"https://github.com/golang/net/commit/b225e7ca6dde1ef5a5ae5ce922861bda011cfabd\"><code>b225e7c</code></a> http2: limit maximum handler goroutines to MaxConcurrentStreams</li>\n<li><a href=\"https://github.com/golang/net/commit/88194ad8ab44a02ea952c169883c3f57db6cf9f4\"><code>88194ad</code></a> go.mod: update golang.org/x dependencies</li>\n<li><a href=\"https://github.com/golang/net/commit/2b60a61f1e4cf3a5ecded0bd7e77ea168289e6de\"><code>2b60a61</code></a> quic: fix several bugs in flow control accounting</li>\n<li><a href=\"https://github.com/golang/net/commit/73d82efb96cacc0c378bc150b56675fc191894b9\"><code>73d82ef</code></a> quic: handle DATA_BLOCKED frames</li>\n<li><a href=\"https://github.com/golang/net/commit/5d5a036a503f8accd748f7453c0162115187be13\"><code>5d5a036</code></a> quic: handle streams moving from the data queue to the meta queue</li>\n<li><a href=\"https://github.com/golang/net/commit/350aad2603e57013fafb1a9e2089a382fe67dc80\"><code>350aad2</code></a> quic: correctly extend peer's flow control window after MAX_DATA</li>\n<li><a href=\"https://github.com/golang/net/commit/21814e71db756f39b69fb1a3e06350fa555a79b1\"><code>21814e7</code></a> quic: validate connection id transport parameters</li>\n<li><a href=\"https://github.com/golang/net/commit/a600b3518eed7a9a4e24380b4b249cb986d9b64d\"><code>a600b35</code></a> quic: avoid redundant MAX_DATA updates</li>\n<li><a href=\"https://github.com/golang/net/commit/ea633599b58dc6a50d33c7f5438edfaa8bc313df\"><code>ea63359</code></a> http2: check stream body is present on read timeout</li>\n<li><a href=\"https://github.com/golang/net/commit/ddd8598e5694aa5e966e44573a53e895f6fa5eb2\"><code>ddd8598</code></a> quic: version negotiation</li>\n<li>Additional commits viewable in <a href=\"https://github.com/golang/net/compare/v0.12.0...v0.17.0\">compare view</a></li>\n</ul>\n</details>\n<br />\n\n\n[![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=golang.org/x/net&package-manager=go_modules&previous-version=0.12.0&new-version=0.17.0)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)\n\nYou can trigger a rebase of this PR by commenting `@dependabot rebase`.\n\n[//]: # (dependabot-automerge-start)\n[//]: # (dependabot-automerge-end)\n\n---\n\n<details>\n<summary>Dependabot commands and options</summary>\n<br />\n\nYou can trigger Dependabot actions by commenting on this PR:\n- `@dependabot rebase` will rebase this PR\n- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it\n- `@dependabot merge` will merge this PR after your CI passes on it\n- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it\n- `@dependabot cancel merge` will cancel a previously requested merge and block automerging\n- `@dependabot reopen` will reopen this PR if it is closed\n- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually\n- `@dependabot show <dependency name> ignore conditions` will show all of the ignore conditions of the specified dependency\n- `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)\n- `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)\n- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)\nYou can disable automated security fix PRs for this repo from the [Security Alerts page](https://github.com/Azure/terraform-azurerm-compute/network/alerts).\n\n</details>\n\n> **Note**\n> Automatic rebases have been disabled on this pull request as it has been open for over 30 days.\n\n---\n\nChoice A:\ntest/go.mod\n@@ -86,14 +86,14 @@ require (\n \tgithub.com/xrash/smetrics v0.0.0-20201216005158-039620a65673 // indirect\n \tgithub.com/zclconf/go-cty v1.13.2 // indirect\n \tgo.opencensus.io v0.24.0 // indirect\n-\tgolang.org/x/crypto v0.11.0 // indirect\n+\tgolang.org/x/crypto v0.14.0 // indirect\n \tgolang.org/x/exp v0.0.0-20221106115401-f9659909a136 // indirect\n \tgolang.org/x/mod v0.12.0 // indirect\n-\tgolang.org/x/net v0.12.0 // indirect\n+\tgolang.org/x/net v0.17.0 // indirect\n \tgolang.org/x/oauth2 v0.10.0 // indirect\n-\tgolang.org/x/sys v0.10.0 // indirect\n-\tgolang.org/x/term v0.10.0 // indirect\n-\tgolang.org/x/text v0.11.0 // indirect\n+\tgolang.org/x/sys v0.13.0 // indirect\n+\tgolang.org/x/term v0.13.0 // indirect\n+\tgolang.org/x/text v0.13.0 // indirect\n \tgolang.org/x/time v0.0.0-20220210224613-90d013bbcef8 // indirect\n \tgolang.org/x/xerrors v0.0.0-20220907171357-04be3eba64a2 // indirect\n \tgoogle.golang.org/api v0.126.0 // indirect\n---\n\n\n---\n\nChoice B:\ntest/go.mod\n@@ -86,14 +86,14 @@ require (\n \tgithub.com/xrash/smetrics v0.0.0-20201216005158-039620a65673 // indirect\n \tgithub.com/zclconf/go-cty v1.13.2 // indirect\n \tgo.opencensus.io v0.24.0 // indirect\n-\tgolang.org/x/crypto v0.11.0 // indirect\n+\tgolang.org/x/crypto v0.14.0 // indirect\n \tgolang.org/x/exp v0.0.0-20221106115401-f9659909a136 // indirect\n \tgolang.org/x/mod v0.12.0 // indirect\n-\tgolang.org/x/net v0.12.0 // indirect\n+\tgolang.org/x/net v0.17.0 // indirect\n \tgolang.org/x/oauth2 v0.10.0 // indirect\n-\tgolang.org/x/sys v0.10.0 // v0.126.0 v0.10.0 // indirect\n-\tgolang.org/x/text v0.11.0 // indirect\n+\tgolang.org/x/sys v0.13.0 // indirect\n+\tgolang.org/x/term v0.13.0 // indirect\n+\tgolang.org/x/text v0.13.0 // indirect\n \tgolang.org/x/time v0.0.0-20220210224613-90d013bbcef8 // indirect\n \tgolang.org/x/xerrors v0.0.0-20220907171357-04be3eba64a2 // indirect\n \tgoogle.golang.org/api v0.126.0 // indirect\n---\n\n\n---\n\nChoice C:\ntest/go.mod\n@@ -86,14 +86,14 @@ require (\n \tgithub.com/xrash/smetrics v0.0.0-20201216005158-039620a65673 // indirect\n \tgithub.com/zclconf/go-cty v1.13.2 // indirect\n \tgo.opencensus.io v0.24.0 // indirect\n-\tgolang.org/x/crypto v0.11.0 // indirect\n+\tgolang.org/x/crypto v0.14.0 // indirect\n \tgolang.org/x/exp v0.0.0-20221106115401-f9659909a136 // indirect\n \tgolang.org/x/mod v0.12.0 // indirect\n-\tgolang.org/x/net v0.12.0 // indirect\n+\tgolang.org/x/net v0.17.0 // indirect\n \tgolang.org/x/oauth2 v0.10.0 // indirect\n-\tgolang.org/x/sys v0.10.0 // indirect\n-\tgolang.org/x/term v0.10.0 // indirect\n-\tgolang.org/x/text v0.11.0 // indirect\n+\tgolang.org/x/sys v0.13.0 // indirect\n+\tgolang.org/x/term v0.13.0 // indirect\n+\tgolang.org/x/text v0.13.0 // indirect\n \tgolang.org/x/time v0.0.0-20220210224613-90d013bbcef8 // indirect\n \tgolang.org/x/xerrors v0.0.0-20220907171357-04be3eba64a2 // indirect\n \tgoogle.golang.org/api v0.126.0 // indirect\n---\n\n\n---\n\nChoice D:\ntest/go.mod\n@@ -86,14 +86,14 @@ require (\n \tgithub.com/xrash/smetrics v0.0.0-20201216005158-039620a65673 // indirect\n \tgithub.com/zclconf/go-cty v1.13.2 // indirect\n \tgo.opencensus.io v0.24.0 // indirect\n-\tgolang.org/x/crypto v0.11.0 // indirect\n+\tgolang.org/x/crypto v0.14.0 // indirect\n \tgolang.org/x/exp v0.0.0-20221106115401-f9659909a136 // indirect\n \tgolang.org/x/mod v0.12.0 // indirect\n-\tgolang.org/x/net v0.12.0 // indirect\n+\tgolang.org/x/net v0.17.0 // indirect\n \tgolang.org/x/oauth2 v0.10.0 // indirect\n-\tgolang.org/x/sys v0.10.0 // indirect\n-\tgolang.org/x/term v0.10.0 // indirect\n-\tgolang.org/x/text v0.11.0 // indirect\n+\tgolang.org/x/sys v0.13.0 // indirect\n+\tgolang.org/x/term v0.13.0 // indirect\n+\tgolang.org/x/text v0.13.0 // indirect\n \tgolang.org/x/time v0.0.0-20220210224613-90d013bbcef8 // indirect\n \tgolang.org/x/xerrors v0.0.0-20220907171357-04be3eba64a2 // indirect\n +86,14 v0.126.0 // indirect\n---\n\n\n---\n" } ]
A
[ { "role": "system", "content": "Choose the best Terraform patch (A/B/C/D) that implements the requested Azure Compute change safely. Only respond with a single uppercase letter." }, { "role": "user", "content": "Task Description:\nBumps [github.com/gruntwork-io/terratest](https://github.com/gruntwork-io/terratest) from 0.43.9 to 0.46.0.\n<details>\n<summary>Release notes</summary>\n<p><em>Sourced from <a href=\"https://github.com/gruntwork-io/terratest/releases\">github.com/gruntwork-io/terratest's releases</a>.</em></p>\n<blockquote>\n<h2>v0.46.0</h2>\n<h2>Modules affected</h2>\n<ul>\n<li><code>terraform</code></li>\n</ul>\n<h2>Description</h2>\n<ul>\n<li>Added support for OpenTofu in <code>terraform</code> module</li>\n</ul>\n<h3>Migration Guide</h3>\n<p>Switching to tofu:</p>\n<ol>\n<li>Install OpenTofu cli <a href=\"https://github.com/opentofu/opentofu\">https://github.com/opentofu/opentofu</a></li>\n<li>Apply one of:</li>\n</ol>\n<ul>\n<li>Option 1: Remove <code>terraform</code> binary from <code>PATH</code></li>\n<li>Option 2: use <a href=\"https://github.com/gruntwork-io/terratest/blob/master/modules/terraform/options.go#L41\"><code>TerraformBinary</code> config</a> to specify <code>tofu</code> executable</li>\n</ul>\n<h2>Related links</h2>\n<!-- raw HTML omitted -->\n<ul>\n<li><a href=\"https://redirect.github.com/gruntwork-io/terratest/pull/1352\">gruntwork-io/terratest#1352</a></li>\n</ul>\n<!-- raw HTML omitted -->\n<h2>v0.45.0</h2>\n<h2>Description</h2>\n<ul>\n<li>Removed Go patch version from <code>go.mod</code></li>\n</ul>\n<h2>Related links</h2>\n<!-- raw HTML omitted -->\n<ul>\n<li><a href=\"https://redirect.github.com/gruntwork-io/terratest/pull/1351\">gruntwork-io/terratest#1351</a></li>\n</ul>\n<!-- raw HTML omitted -->\n<h2>v0.44.1</h2>\n<h2>Description</h2>\n<ul>\n<li>Updated AMI module to support Ubuntu 20.04 and 22.04.</li>\n</ul>\n<h2>Related links</h2>\n<!-- raw HTML omitted -->\n<ul>\n<li><a href=\"https://redirect.github.com/gruntwork-io/terratest/pull/1350\">gruntwork-io/terratest#1350</a></li>\n</ul>\n<!-- raw HTML omitted -->\n<!-- raw HTML omitted -->\n</blockquote>\n<p>... (truncated)</p>\n</details>\n<details>\n<summary>Commits</summary>\n<ul>\n<li><a href=\"https://github.com/gruntwork-io/terratest/commit/48ff8d310f7928f5d07d646d71d8ec7288683381\"><code>48ff8d3</code></a> Merge pull request <a href=\"https://redirect.github.com/gruntwork-io/terratest/issues/1352\">#1352</a> from gruntwork-io/feature/opentofu-1333</li>\n<li><a href=\"https://github.com/gruntwork-io/terratest/commit/df5dcc8c34954977d902d38e3b16291f3e0a98a3\"><code>df5dcc8</code></a> Updated terraform version</li>\n<li><a href=\"https://github.com/gruntwork-io/terratest/commit/a7af9cda1f4b1db88a8d0b0f631b079fbe942455\"><code>a7af9cd</code></a> Fixed terraform version checking</li>\n<li><a href=\"https://github.com/gruntwork-io/terratest/commit/b2566ab94dc686525d3437fd8f4125faf07d5cdf\"><code>b2566ab</code></a> Terragrunt version update</li>\n<li><a href=\"https://github.com/gruntwork-io/terratest/commit/3d4d4987ba6879013753527fd0748c7ddf7b33c3\"><code>3d4d498</code></a> Added separated integration test for tofu</li>\n<li><a href=\"https://github.com/gruntwork-io/terratest/commit/f3158e0a1838321eecba563b909da92af43bcc7b\"><code>f3158e0</code></a> Add configuration of default terraform executable</li>\n<li><a href=\"https://github.com/gruntwork-io/terratest/commit/e9074908653d5ad2ed11d26a3593fbd5484f13c4\"><code>e907490</code></a> Updated default options</li>\n<li><a href=\"https://github.com/gruntwork-io/terratest/commit/a6df39cc43e1ca0ba8c88bf879805194a3c251b2\"><code>a6df39c</code></a> Cleanup broken modules</li>\n<li><a href=\"https://github.com/gruntwork-io/terratest/commit/a0e089cf0abaa2144980eb4af024a8dbd167001e\"><code>a0e089c</code></a> Providers versions update</li>\n<li><a href=\"https://github.com/gruntwork-io/terratest/commit/88d9be247e0f6a34e1bbc90ee343bd1c108ec599\"><code>88d9be2</code></a> Testing provider version update</li>\n<li>Additional commits viewable in <a href=\"https://github.com/gruntwork-io/terratest/compare/v0.43.9...v0.46.0\">compare view</a></li>\n</ul>\n</details>\n<br />\n\n\n[![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=github.com/gruntwork-io/terratest&package-manager=go_modules&previous-version=0.43.9&new-version=0.46.0)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)\n\nDependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`.\n\n[//]: # (dependabot-automerge-start)\n[//]: # (dependabot-automerge-end)\n\n---\n\n<details>\n<summary>Dependabot commands and options</summary>\n<br />\n\nYou can trigger Dependabot actions by commenting on this PR:\n- `@dependabot rebase` will rebase this PR\n- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it\n- `@dependabot merge` will merge this PR after your CI passes on it\n- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it\n- `@dependabot cancel merge` will cancel a previously requested merge and block automerging\n- `@dependabot reopen` will reopen this PR if it is closed\n- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually\n- `@dependabot show <dependency name> ignore conditions` will show all of the ignore conditions of the specified dependency\n- `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)\n- `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)\n- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)\n\n\n</details>\n\n---\n\nChoice A:\ntest/go.mod\n@@ -4,7 +4,7 @@ go 1.19\n v0.46.0\n require (\n \tgithub.com/Azure/terraform-module-test-helper v0.16.0\n-\tgithub.com/gruntwork-io/terratest v0.43.9\n+\tgithub.com/gruntwork-io/terratest v0.46.0\n \tgithub.com/stretchr/testify v1.8.4\n )\n \n---\n\n\n---\n\nChoice B:\ntest/go.mod\n@@ -4,7 +4,7 @@ go 1.19\n \n require (\n \n v0.16.0\n-\tgithub.com/gruntwork-io/terratest v0.43.9\n+\tgithub.com/gruntwork-io/terratest v0.46.0\n \tgithub.com/stretchr/testify v1.8.4\n )\n \n---\n\n\n---\n\nChoice C:\ntest/go.mod\n@@ -4,7 +4,7 @@ go 1.19\n \n require (\n \tgithub.com/Azure/terraform-module-test-helper v0.16.0\n-\tgithub.com/gruntwork-io/terratest v0.43.9\n+\tgithub.com/gruntwork-io/terratest v0.46.0\n \tgithub.com/stretchr/testify v1.8.4\n v0.46.0\n \n---\n\n\n---\n\nChoice D:\ntest/go.mod\n@@ -4,7 +4,7 @@ go 1.19\n \n require (\n \tgithub.com/Azure/terraform-module-test-helper v0.16.0\n-\tgithub.com/gruntwork-io/terratest v0.43.9\n+\tgithub.com/gruntwork-io/terratest v0.46.0\n \tgithub.com/stretchr/testify v1.8.4\n )\n \n---\n\n\n---\n" } ]
D
[ { "role": "system", "content": "Choose the best Terraform patch (A/B/C/D) that implements the requested Azure Compute change safely. Only respond with a single uppercase letter." }, { "role": "user", "content": "Task Description:\nBumps [github.com/gruntwork-io/terratest](https://github.com/gruntwork-io/terratest) from 0.43.9 to 0.44.0.\n<details>\n<summary>Release notes</summary>\n<p><em>Sourced from <a href=\"https://github.com/gruntwork-io/terratest/releases\">github.com/gruntwork-io/terratest's releases</a>.</em></p>\n<blockquote>\n<h2>v0.44.0</h2>\n<h2>Description</h2>\n<ul>\n<li>Updated minimal Go version to 1.21</li>\n</ul>\n<h2>Related links</h2>\n<!-- raw HTML omitted -->\n<ul>\n<li><a href=\"https://redirect.github.com/gruntwork-io/terratest/pull/1339\">gruntwork-io/terratest#1339</a></li>\n</ul>\n<!-- raw HTML omitted -->\n<h2>v0.43.13</h2>\n<h2>Modules affected</h2>\n<!-- raw HTML omitted -->\n<ul>\n<li><code>azure</code></li>\n</ul>\n<h2>Description</h2>\n<ul>\n<li>Added new fields to the <code>NsgRuleSummary</code> structure</li>\n</ul>\n<h2>Special thanks</h2>\n<!-- raw HTML omitted -->\n<p>Special thanks to the following users for their contribution!</p>\n<ul>\n<li><a href=\"https://github.com/DamianJarzebowski\"><code>@​DamianJarzebowski</code></a></li>\n</ul>\n<!-- raw HTML omitted -->\n<h2>Related links</h2>\n<!-- raw HTML omitted -->\n<ul>\n<li><a href=\"https://redirect.github.com/gruntwork-io/terratest/pull/1332\">gruntwork-io/terratest#1332</a></li>\n</ul>\n<!-- raw HTML omitted -->\n<!-- raw HTML omitted -->\n</blockquote>\n<p>... (truncated)</p>\n</details>\n<details>\n<summary>Commits</summary>\n<ul>\n<li><a href=\"https://github.com/gruntwork-io/terratest/commit/af9ab8ceb98856b5695f63b01703f3d09172d4fd\"><code>af9ab8c</code></a> Merge pull request <a href=\"https://redirect.github.com/gruntwork-io/terratest/issues/1339\">#1339</a> from danielperaltamadriz/feature/update-go-version-1337</li>\n<li><a href=\"https://github.com/gruntwork-io/terratest/commit/f662f3fb28db47f00f00fa46256dae186154805e\"><code>f662f3f</code></a> update go version in reports</li>\n<li><a href=\"https://github.com/gruntwork-io/terratest/commit/74b0ee7ef54261a7a4204a4d8d2d3d40af45f795\"><code>74b0ee7</code></a> update go version</li>\n<li><a href=\"https://github.com/gruntwork-io/terratest/commit/5428fbcca392557252d73db58b278509f5422b54\"><code>5428fbc</code></a> Merge pull request <a href=\"https://redirect.github.com/gruntwork-io/terratest/issues/1332\">#1332</a> from DamianJarzebowski/expand-nsg-rule-summary-struct</li>\n<li><a href=\"https://github.com/gruntwork-io/terratest/commit/0d0fc680f6404da95ce80c31470fa6f361eda1da\"><code>0d0fc68</code></a> Add 4 new variables for NSGRuleSummary</li>\n<li><a href=\"https://github.com/gruntwork-io/terratest/commit/9e475c5822a5ad4a8a09613fb44a4fd61976b6a9\"><code>9e475c5</code></a> Merge pull request <a href=\"https://redirect.github.com/gruntwork-io/terratest/issues/1330\">#1330</a> from antoninbas/fix-panic-in-WaitUntilDeploymentAvai...</li>\n<li><a href=\"https://github.com/gruntwork-io/terratest/commit/f689e8c1936ec71c560fbc70561441abe9bac501\"><code>f689e8c</code></a> [k8s] Fix panic in WaitUntilDeploymentAvailable</li>\n<li><a href=\"https://github.com/gruntwork-io/terratest/commit/a6467d424f42f02e62ebc3a5f2f042981d872ae3\"><code>a6467d4</code></a> Merge pull request <a href=\"https://redirect.github.com/gruntwork-io/terratest/issues/1231\">#1231</a> from gruntwork-io/dependabot/bundler/docs/activesupp...</li>\n<li><a href=\"https://github.com/gruntwork-io/terratest/commit/2667a12432c22609f2bdc077c2115549202c9ef3\"><code>2667a12</code></a> Bump activesupport from 6.0.3.3 to 6.0.6.1 in /docs</li>\n<li><a href=\"https://github.com/gruntwork-io/terratest/commit/2df0170b9e9efdde99bf17b961e582d9bdb413b2\"><code>2df0170</code></a> Merge pull request <a href=\"https://redirect.github.com/gruntwork-io/terratest/issues/1323\">#1323</a> from bt-macole/assert-tg-plan-exit-code</li>\n<li>Additional commits viewable in <a href=\"https://github.com/gruntwork-io/terratest/compare/v0.43.9...v0.44.0\">compare view</a></li>\n</ul>\n</details>\n<br />\n\n\n[![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=github.com/gruntwork-io/terratest&package-manager=go_modules&previous-version=0.43.9&new-version=0.44.0)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)\n\nDependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`.\n\n[//]: # (dependabot-automerge-start)\n[//]: # (dependabot-automerge-end)\n\n---\n\n<details>\n<summary>Dependabot commands and options</summary>\n<br />\n\nYou can trigger Dependabot actions by commenting on this PR:\n- `@dependabot rebase` will rebase this PR\n- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it\n- `@dependabot merge` will merge this PR after your CI passes on it\n- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it\n- `@dependabot cancel merge` will cancel a previously requested merge and block automerging\n- `@dependabot reopen` will reopen this PR if it is closed\n- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually\n- `@dependabot show <dependency name> ignore conditions` will show all of the ignore conditions of the specified dependency\n- `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)\n- `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)\n- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)\n\n\n</details>\n\n---\n\nChoice A:\ntest/go.mod\n@@ -4,7 +4,7 @@ go 1.19\n \n require (\n \tgithub.com/Azure/terraform-module-test-helper v0.16.0\n-\tgithub.com/gruntwork-io/terratest v0.43.9\n+\tgithub.com/gruntwork-io/terratest v0.44.0\n \tgithub.com/stretchr/testify v1.8.4\n )\n \tgithub.com/Azure/terraform-module-test-helper\n\n---\n\nChoice B:\ntest/go.mod\n@@ -4,7 )\n @@ go 1.19\n \n require (\n \tgithub.com/Azure/terraform-module-test-helper v0.16.0\n-\tgithub.com/gruntwork-io/terratest v0.43.9\n+\tgithub.com/gruntwork-io/terratest v0.44.0\n \tgithub.com/stretchr/testify v1.8.4\n )\n \n---\n\n\n---\n\nChoice C:\ntest/go.mod\n@@ -4,7 +4,7 @@ go 1.19\n \n require (\n \tgithub.com/Azure/terraform-module-test-helper v0.16.0\n-\tgithub.com/gruntwork-io/terratest v0.44.0\n v0.44.0\n \tgithub.com/stretchr/testify v1.8.4\n )\n \n---\n\n\n---\n\nChoice D:\ntest/go.mod\n@@ -4,7 +4,7 @@ go 1.19\n \n require (\n \tgithub.com/Azure/terraform-module-test-helper v0.16.0\n-\tgithub.com/gruntwork-io/terratest v0.43.9\n+\tgithub.com/gruntwork-io/terratest v0.44.0\n \tgithub.com/stretchr/testify v1.8.4\n )\n \n---\n\n\n---\n" } ]
D
[ { "role": "system", "content": "Choose the best Terraform patch (A/B/C/D) that implements the requested Azure Compute change safely. Only respond with a single uppercase letter." }, { "role": "user", "content": "Task Description:\nBumps [github.com/gruntwork-io/terratest](https://github.com/gruntwork-io/terratest) from 0.43.9 to 0.43.13.\n<details>\n<summary>Release notes</summary>\n<p><em>Sourced from <a href=\"https://github.com/gruntwork-io/terratest/releases\">github.com/gruntwork-io/terratest's releases</a>.</em></p>\n<blockquote>\n<h2>v0.43.13</h2>\n<h2>Modules affected</h2>\n<!-- raw HTML omitted -->\n<ul>\n<li><code>azure</code></li>\n</ul>\n<h2>Description</h2>\n<ul>\n<li>Added new fields to the <code>NsgRuleSummary</code> structure</li>\n</ul>\n<h2>Special thanks</h2>\n<!-- raw HTML omitted -->\n<p>Special thanks to the following users for their contribution!</p>\n<ul>\n<li><a href=\"https://github.com/DamianJarzebowski\"><code>@​DamianJarzebowski</code></a></li>\n</ul>\n<!-- raw HTML omitted -->\n<h2>Related links</h2>\n<!-- raw HTML omitted -->\n<ul>\n<li><a href=\"https://redirect.github.com/gruntwork-io/terratest/pull/1332\">gruntwork-io/terratest#1332</a></li>\n</ul>\n<!-- raw HTML omitted -->\n<h2>v0.43.12</h2>\n<h2>Modules affected</h2>\n<!-- raw HTML omitted -->\n</blockquote>\n<p>... (truncated)</p>\n</details>\n<details>\n<summary>Commits</summary>\n<ul>\n<li><a href=\"https://github.com/gruntwork-io/terratest/commit/5428fbcca392557252d73db58b278509f5422b54\"><code>5428fbc</code></a> Merge pull request <a href=\"https://redirect.github.com/gruntwork-io/terratest/issues/1332\">#1332</a> from DamianJarzebowski/expand-nsg-rule-summary-struct</li>\n<li><a href=\"https://github.com/gruntwork-io/terratest/commit/0d0fc680f6404da95ce80c31470fa6f361eda1da\"><code>0d0fc68</code></a> Add 4 new variables for NSGRuleSummary</li>\n<li><a href=\"https://github.com/gruntwork-io/terratest/commit/9e475c5822a5ad4a8a09613fb44a4fd61976b6a9\"><code>9e475c5</code></a> Merge pull request <a href=\"https://redirect.github.com/gruntwork-io/terratest/issues/1330\">#1330</a> from antoninbas/fix-panic-in-WaitUntilDeploymentAvai...</li>\n<li><a href=\"https://github.com/gruntwork-io/terratest/commit/f689e8c1936ec71c560fbc70561441abe9bac501\"><code>f689e8c</code></a> [k8s] Fix panic in WaitUntilDeploymentAvailable</li>\n<li><a href=\"https://github.com/gruntwork-io/terratest/commit/a6467d424f42f02e62ebc3a5f2f042981d872ae3\"><code>a6467d4</code></a> Merge pull request <a href=\"https://redirect.github.com/gruntwork-io/terratest/issues/1231\">#1231</a> from gruntwork-io/dependabot/bundler/docs/activesupp...</li>\n<li><a href=\"https://github.com/gruntwork-io/terratest/commit/2667a12432c22609f2bdc077c2115549202c9ef3\"><code>2667a12</code></a> Bump activesupport from 6.0.3.3 to 6.0.6.1 in /docs</li>\n<li><a href=\"https://github.com/gruntwork-io/terratest/commit/2df0170b9e9efdde99bf17b961e582d9bdb413b2\"><code>2df0170</code></a> Merge pull request <a href=\"https://redirect.github.com/gruntwork-io/terratest/issues/1323\">#1323</a> from bt-macole/assert-tg-plan-exit-code</li>\n<li><a href=\"https://github.com/gruntwork-io/terratest/commit/7f3b965cc885243d973abab40640aedb3817c7b9\"><code>7f3b965</code></a> Merge pull request <a href=\"https://redirect.github.com/gruntwork-io/terratest/issues/1325\">#1325</a> from retpolanne/master</li>\n<li><a href=\"https://github.com/gruntwork-io/terratest/commit/f52242e7fac7e0d5695c5a6b4ea97eb3d5f16dba\"><code>f52242e</code></a> adds custom logger to kubectl options</li>\n<li><a href=\"https://github.com/gruntwork-io/terratest/commit/6ca252214ea1464f5835003c28d1c612e422af99\"><code>6ca2522</code></a> feat: add AssertTgPlanAllExitCode</li>\n<li>See full diff in <a href=\"https://github.com/gruntwork-io/terratest/compare/v0.43.9...v0.43.13\">compare view</a></li>\n</ul>\n</details>\n<br />\n\n\n[![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=github.com/gruntwork-io/terratest&package-manager=go_modules&previous-version=0.43.9&new-version=0.43.13)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)\n\nDependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`.\n\n[//]: # (dependabot-automerge-start)\n[//]: # (dependabot-automerge-end)\n\n---\n\n<details>\n<summary>Dependabot commands and options</summary>\n<br />\n\nYou can trigger Dependabot actions by commenting on this PR:\n- `@dependabot rebase` will rebase this PR\n- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it\n- `@dependabot merge` will merge this PR after your CI passes on it\n- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it\n- `@dependabot cancel merge` will cancel a previously requested merge and block automerging\n- `@dependabot reopen` will reopen this PR if it is closed\n- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually\n- `@dependabot show <dependency name> ignore conditions` will show all of the ignore conditions of the specified dependency\n- `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)\n- `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)\n- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)\n\n\n</details>\n\n---\n\nChoice A:\ntest/go.mod\n@@ -4,7 +4,7 @@ go 1.19\n \n require v0.16.0\n-\tgithub.com/gruntwork-io/terratest \tgithub.com/Azure/terraform-module-test-helper v0.16.0\n-\tgithub.com/gruntwork-io/terratest v0.43.9\n+\tgithub.com/gruntwork-io/terratest v0.43.13\n \tgithub.com/stretchr/testify v1.8.4\n )\n \n---\n\n\n---\n\nChoice B:\ntest/go.mod\n@@ -4,7 +4,7 @@ go 1.19\n \n require (\n \tgithub.com/Azure/terraform-module-test-helper v0.16.0\n-\tgithub.com/gruntwork-io/terratest v0.43.9\n+\tgithub.com/gruntwork-io/terratest v0.43.13\n (\n v1.8.4\n )\n \n---\n\n\n---\n\nChoice C:\ntest/go.mod\n@@ -4,7 +4,7 @@ go 1.19\n test/go.mod\n@@ require (\n \tgithub.com/Azure/terraform-module-test-helper v0.16.0\n-\tgithub.com/gruntwork-io/terratest v0.43.9\n+\tgithub.com/gruntwork-io/terratest v0.43.13\n \tgithub.com/stretchr/testify v1.8.4\n )\n \n---\n\n\n---\n\nChoice D:\ntest/go.mod\n@@ -4,7 +4,7 @@ go 1.19\n \n require (\n \tgithub.com/Azure/terraform-module-test-helper v0.16.0\n-\tgithub.com/gruntwork-io/terratest v0.43.9\n+\tgithub.com/gruntwork-io/terratest v0.43.13\n \tgithub.com/stretchr/testify v1.8.4\n )\n \n---\n\n\n---\n" } ]
D
[ { "role": "system", "content": "Choose the best Terraform patch (A/B/C/D) that implements the requested Azure Compute change safely. Only respond with a single uppercase letter." }, { "role": "user", "content": "Task Description:\nBumps [github.com/gruntwork-io/terratest](https://github.com/gruntwork-io/terratest) from 0.43.9 to 0.43.12.\n<details>\n<summary>Release notes</summary>\n<p><em>Sourced from <a href=\"https://github.com/gruntwork-io/terratest/releases\">github.com/gruntwork-io/terratest's releases</a>.</em></p>\n<blockquote>\n<h2>v0.43.12</h2>\n<h2>Modules affected</h2>\n<!-- raw HTML omitted -->\n<ul>\n<li><code>k8s</code></li>\n</ul>\n<h2>Description</h2>\n<ul>\n<li>Fixed panic in <code>WaitUntilDeploymentAvailable</code> in the <code>k8s</code> module</li>\n</ul>\n<h2>Special thanks</h2>\n<!-- raw HTML omitted -->\n<p>Special thanks to the following users for their contribution!</p>\n<ul>\n<li><a href=\"https://github.com/antoninbas\"><code>@​antoninbas</code></a></li>\n</ul>\n<!-- raw HTML omitted -->\n<h2>Related links</h2>\n<!-- raw HTML omitted -->\n<ul>\n<li><a href=\"https://redirect.github.com/gruntwork-io/terratest/pull/1330\">gruntwork-io/terratest#1330</a></li>\n</ul>\n<!-- raw HTML omitted -->\n<h2>v0.43.11</h2>\n<h2>Modules affected</h2>\n<!-- raw HTML omitted -->\n</blockquote>\n<p>... (truncated)</p>\n</details>\n<details>\n<summary>Commits</summary>\n<ul>\n<li><a href=\"https://github.com/gruntwork-io/terratest/commit/9e475c5822a5ad4a8a09613fb44a4fd61976b6a9\"><code>9e475c5</code></a> Merge pull request <a href=\"https://redirect.github.com/gruntwork-io/terratest/issues/1330\">#1330</a> from antoninbas/fix-panic-in-WaitUntilDeploymentAvai...</li>\n<li><a href=\"https://github.com/gruntwork-io/terratest/commit/f689e8c1936ec71c560fbc70561441abe9bac501\"><code>f689e8c</code></a> [k8s] Fix panic in WaitUntilDeploymentAvailable</li>\n<li><a href=\"https://github.com/gruntwork-io/terratest/commit/a6467d424f42f02e62ebc3a5f2f042981d872ae3\"><code>a6467d4</code></a> Merge pull request <a href=\"https://redirect.github.com/gruntwork-io/terratest/issues/1231\">#1231</a> from gruntwork-io/dependabot/bundler/docs/activesupp...</li>\n<li><a href=\"https://github.com/gruntwork-io/terratest/commit/2667a12432c22609f2bdc077c2115549202c9ef3\"><code>2667a12</code></a> Bump activesupport from 6.0.3.3 to 6.0.6.1 in /docs</li>\n<li><a href=\"https://github.com/gruntwork-io/terratest/commit/2df0170b9e9efdde99bf17b961e582d9bdb413b2\"><code>2df0170</code></a> Merge pull request <a href=\"https://redirect.github.com/gruntwork-io/terratest/issues/1323\">#1323</a> from bt-macole/assert-tg-plan-exit-code</li>\n<li><a href=\"https://github.com/gruntwork-io/terratest/commit/7f3b965cc885243d973abab40640aedb3817c7b9\"><code>7f3b965</code></a> Merge pull request <a href=\"https://redirect.github.com/gruntwork-io/terratest/issues/1325\">#1325</a> from retpolanne/master</li>\n<li><a href=\"https://github.com/gruntwork-io/terratest/commit/f52242e7fac7e0d5695c5a6b4ea97eb3d5f16dba\"><code>f52242e</code></a> adds custom logger to kubectl options</li>\n<li><a href=\"https://github.com/gruntwork-io/terratest/commit/6ca252214ea1464f5835003c28d1c612e422af99\"><code>6ca2522</code></a> feat: add AssertTgPlanAllExitCode</li>\n<li>See full diff in <a href=\"https://github.com/gruntwork-io/terratest/compare/v0.43.9...v0.43.12\">compare view</a></li>\n</ul>\n</details>\n<br />\n\n\n[![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=github.com/gruntwork-io/terratest&package-manager=go_modules&previous-version=0.43.9&new-version=0.43.12)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)\n\nDependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`.\n\n[//]: # (dependabot-automerge-start)\n[//]: # (dependabot-automerge-end)\n\n---\n\n<details>\n<summary>Dependabot commands and options</summary>\n<br />\n\nYou can trigger Dependabot actions by commenting on this PR:\n- `@dependabot rebase` will rebase this PR\n- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it\n- `@dependabot merge` will merge this PR after your CI passes on it\n- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it\n- `@dependabot cancel merge` will cancel a previously requested merge and block automerging\n- `@dependabot reopen` will reopen this PR if it is closed\n- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually\n- `@dependabot show <dependency name> ignore conditions` will show all of the ignore conditions of the specified dependency\n- `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)\n- `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)\n- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)\n\n\n</details>\n\n---\n\nChoice A:\ntest/go.mod\n@@ -4,7 +4,7 @@ go 1.19\n \n require (\n \tgithub.com/Azure/terraform-module-test-helper v0.16.0\n-\tgithub.com/gruntwork-io/terratest v0.43.9\n+\tgithub.com/gruntwork-io/terratest (\n \tgithub.com/stretchr/testify v1.8.4\n )\n \n---\n\n\n---\n\nChoice B:\ntest/go.mod\n@@ -4,7 +4,7 @@ go 1.19\n \n require (\n \tgithub.com/Azure/terraform-module-test-helper v0.16.0\n-\tgithub.com/gruntwork-io/terratest v0.43.9\n+\tgithub.com/gruntwork-io/terratest v0.43.12\n \tgithub.com/stretchr/testify +4,7 )\n \n---\n\n\n---\n\nChoice C:\ntest/go.mod\n@@ -4,7 +4,7 @@ go 1.19\n \n require (\n \tgithub.com/Azure/terraform-module-test-helper v0.16.0\n-\tgithub.com/gruntwork-io/terratest v0.43.9\n+\tgithub.com/gruntwork-io/terratest v0.43.12\n \tgithub.com/stretchr/testify v1.8.4\n )\n \n---\n\n\n---\n\nChoice D:\ntest/go.mod\n@@ -4,7 +4,7 @@ go 1.19\n \n require (\n \tgithub.com/Azure/terraform-module-test-helper (\n v0.43.9\n+\tgithub.com/gruntwork-io/terratest v0.43.12\n \tgithub.com/stretchr/testify v1.8.4\n )\n \n---\n\n\n---\n" } ]
C
[ { "role": "system", "content": "Choose the best Terraform patch (A/B/C/D) that implements the requested Azure Compute change safely. Only respond with a single uppercase letter." }, { "role": "user", "content": "Task Description:\nBumps [github.com/Azure/terraform-module-test-helper](https://github.com/Azure/terraform-module-test-helper) from 0.15.0 to 0.16.0.\n<details>\n<summary>Commits</summary>\n<ul>\n<li><a href=\"https://github.com/Azure/terraform-module-test-helper/commit/96e8615f55156828c81d31f09a67cb87ee99d4f0\"><code>96e8615</code></a> skip destroy for unit test</li>\n<li><a href=\"https://github.com/Azure/terraform-module-test-helper/commit/ad1dfc5c872b312a02f5d01b5762d84e391332ed\"><code>ad1dfc5</code></a> Bump github.com/gruntwork-io/terratest from 0.43.8 to 0.43.9 (<a href=\"https://redirect.github.com/Azure/terraform-module-test-helper/issues/52\">#52</a>)</li>\n<li>See full diff in <a href=\"https://github.com/Azure/terraform-module-test-helper/compare/v0.15.0...v0.16.0\">compare view</a></li>\n</ul>\n</details>\n<br />\n\n\n[![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=github.com/Azure/terraform-module-test-helper&package-manager=go_modules&previous-version=0.15.0&new-version=0.16.0)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)\n\nDependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`.\n\n[//]: # (dependabot-automerge-start)\n[//]: # (dependabot-automerge-end)\n\n---\n\n<details>\n<summary>Dependabot commands and options</summary>\n<br />\n\nYou can trigger Dependabot actions by commenting on this PR:\n- `@dependabot rebase` will rebase this PR\n- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it\n- `@dependabot merge` will merge this PR after your CI passes on it\n- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it\n- `@dependabot cancel merge` will cancel a previously requested merge and block automerging\n- `@dependabot reopen` will reopen this PR if it is closed\n- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually\n- `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)\n- `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)\n- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)\n\n\n</details>\n\n---\n\nChoice A:\ntest/go.mod\n@@ -3,8 +3,8 @@ module github.com/Azure/terraform-azurerm-compute\n go 1.19\n \n require (\n-\tgithub.com/Azure/terraform-module-test-helper v0.15.0\n-\tgithub.com/gruntwork-io/terratest v0.43.8\n+\tgithub.com/Azure/terraform-module-test-helper v0.16.0\n+\tgithub.com/gruntwork-io/terratest v0.43.9\n \tgithub.com/stretchr/testify v1.8.4\n \n \n---\n\n\n---\n\nChoice B:\ntest/go.mod\n@@ -3,8 +3,8 @@ module github.com/Azure/terraform-azurerm-compute\n go 1.19\n \n require (\n-\tgithub.com/Azure/terraform-module-test-helper v0.15.0\n-\tgithub.com/gruntwork-io/terratest v0.43.8\n+\tgithub.com/Azure/terraform-module-test-helper v0.16.0\n+\tgithub.com/gruntwork-io/terratest v0.43.9\n \tgithub.com/stretchr/testify v1.8.4\n )\n \n---\n\n\n---\n\nChoice C:\n\n---\n -3,8 +3,8 @@ module github.com/Azure/terraform-azurerm-compute\n go 1.19\n \n require (\n-\tgithub.com/Azure/terraform-module-test-helper v0.15.0\n-\tgithub.com/gruntwork-io/terratest v0.43.8\n+\tgithub.com/Azure/terraform-module-test-helper v0.16.0\n+\tgithub.com/gruntwork-io/terratest v0.43.9\n \tgithub.com/stretchr/testify v1.8.4\n )\n \n---\n\n\n---\n\nChoice D:\ntest/go.mod\n@@ -3,8 (\n-\tgithub.com/Azure/terraform-module-test-helper @@ module github.com/Azure/terraform-azurerm-compute\n go 1.19\n \n require (\n-\tgithub.com/Azure/terraform-module-test-helper v0.15.0\n-\tgithub.com/gruntwork-io/terratest v0.43.8\n+\tgithub.com/Azure/terraform-module-test-helper v0.16.0\n+\tgithub.com/gruntwork-io/terratest v0.43.9\n \tgithub.com/stretchr/testify v1.8.4\n )\n \n---\n\n\n---\n" } ]
B
[ { "role": "system", "content": "Choose the best Terraform patch (A/B/C/D) that implements the requested Azure Compute change safely. Only respond with a single uppercase letter." }, { "role": "user", "content": "Task Description:\nBumps [github.com/gruntwork-io/terratest](https://github.com/gruntwork-io/terratest) from 0.43.8 to 0.43.11.\n<details>\n<summary>Release notes</summary>\n<p><em>Sourced from <a href=\"https://github.com/gruntwork-io/terratest/releases\">github.com/gruntwork-io/terratest's releases</a>.</em></p>\n<blockquote>\n<h2>v0.43.11</h2>\n<h2>Modules affected</h2>\n<!-- raw HTML omitted -->\n<ul>\n<li><code>terraform</code></li>\n</ul>\n<h2>Description</h2>\n<ul>\n<li>Added function <code>AssertTgPlanAllExitCode</code> to validate output of <code>terragrunt run-all plan</code></li>\n</ul>\n<h2>Special thanks</h2>\n<!-- raw HTML omitted -->\n<p>Special thanks to the following users for their contribution!</p>\n<ul>\n<li><a href=\"https://github.com/bt-macole\"><code>@​bt-macole</code></a></li>\n</ul>\n<!-- raw HTML omitted -->\n<h2>Related links</h2>\n<!-- raw HTML omitted -->\n<ul>\n<li><a href=\"https://redirect.github.com/gruntwork-io/terratest/pull/1323\">gruntwork-io/terratest#1323</a></li>\n</ul>\n<!-- raw HTML omitted -->\n<h2>v0.43.10</h2>\n<h2>Modules affected</h2>\n<!-- raw HTML omitted -->\n</blockquote>\n<p>... (truncated)</p>\n</details>\n<details>\n<summary>Commits</summary>\n<ul>\n<li><a href=\"https://github.com/gruntwork-io/terratest/commit/2df0170b9e9efdde99bf17b961e582d9bdb413b2\"><code>2df0170</code></a> Merge pull request <a href=\"https://redirect.github.com/gruntwork-io/terratest/issues/1323\">#1323</a> from bt-macole/assert-tg-plan-exit-code</li>\n<li><a href=\"https://github.com/gruntwork-io/terratest/commit/7f3b965cc885243d973abab40640aedb3817c7b9\"><code>7f3b965</code></a> Merge pull request <a href=\"https://redirect.github.com/gruntwork-io/terratest/issues/1325\">#1325</a> from retpolanne/master</li>\n<li><a href=\"https://github.com/gruntwork-io/terratest/commit/f52242e7fac7e0d5695c5a6b4ea97eb3d5f16dba\"><code>f52242e</code></a> adds custom logger to kubectl options</li>\n<li><a href=\"https://github.com/gruntwork-io/terratest/commit/6ca252214ea1464f5835003c28d1c612e422af99\"><code>6ca2522</code></a> feat: add AssertTgPlanAllExitCode</li>\n<li><a href=\"https://github.com/gruntwork-io/terratest/commit/adad5f9047c43abb4f77faf28930aecbbb5fc9e8\"><code>adad5f9</code></a> Merge pull request <a href=\"https://redirect.github.com/gruntwork-io/terratest/issues/1319\">#1319</a> from bt-macole/add-SaveTerraformOptionsIfNotPresent</li>\n<li><a href=\"https://github.com/gruntwork-io/terratest/commit/bb0b060a78b4c1355baa0948dfd6662a4812a655\"><code>bb0b060</code></a> feat(test-structure): add save test data if dne</li>\n<li><a href=\"https://github.com/gruntwork-io/terratest/commit/65681e6d17df46ae167634e5d3692b5723670d9c\"><code>65681e6</code></a> Merge pull request <a href=\"https://redirect.github.com/gruntwork-io/terratest/issues/1270\">#1270</a> from gruntwork-io/dependabot/bundler/docs/nokogiri-1...</li>\n<li><a href=\"https://github.com/gruntwork-io/terratest/commit/02c16e5c1b60221adaab12f4cf58dba5ba9f5706\"><code>02c16e5</code></a> Merge pull request <a href=\"https://redirect.github.com/gruntwork-io/terratest/issues/1161\">#1161</a> from gruntwork-io/dependabot/bundler/docs/tzinfo-1.2.10</li>\n<li>See full diff in <a href=\"https://github.com/gruntwork-io/terratest/compare/v0.43.8...v0.43.11\">compare view</a></li>\n</ul>\n</details>\n<br />\n\n\n[![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=github.com/gruntwork-io/terratest&package-manager=go_modules&previous-version=0.43.8&new-version=0.43.11)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)\n\nDependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`.\n\n[//]: # (dependabot-automerge-start)\n[//]: # (dependabot-automerge-end)\n\n---\n\n<details>\n<summary>Dependabot commands and options</summary>\n<br />\n\nYou can trigger Dependabot actions by commenting on this PR:\n- `@dependabot rebase` will rebase this PR\n- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it\n- `@dependabot merge` will merge this PR after your CI passes on it\n- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it\n- `@dependabot cancel merge` will cancel a previously requested merge and block automerging\n- `@dependabot reopen` will reopen this PR if it is closed\n- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually\n- `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)\n- `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)\n- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)\n\n\n</details>\n\n---\n\nChoice A:\ntest/go.mod\n@@ test/go.mod\n@@ +4,7 @@ go 1.19\n \n require (\n \tgithub.com/Azure/terraform-module-test-helper v0.15.0\n-\tgithub.com/gruntwork-io/terratest v0.43.8\n+\tgithub.com/gruntwork-io/terratest v0.43.11\n \tgithub.com/stretchr/testify v1.8.4\n )\n \n---\n\n\n---\n\nChoice B:\ntest/go.mod\n@@ -4,7 +4,7 @@ go 1.19\n \n require +4,7 \tgithub.com/Azure/terraform-module-test-helper v0.15.0\n-\tgithub.com/gruntwork-io/terratest v0.43.8\n+\tgithub.com/gruntwork-io/terratest v0.43.11\n \tgithub.com/stretchr/testify v1.8.4\n )\n \n---\n\n\n---\n\nChoice C:\ntest/go.mod\n@@ -4,7 +4,7 @@ go 1.19\n \n require (\n \tgithub.com/Azure/terraform-module-test-helper v0.15.0\n-\tgithub.com/gruntwork-io/terratest v0.43.8\n+\tgithub.com/gruntwork-io/terratest v0.43.11\n \tgithub.com/stretchr/testify v1.8.4\n )\n \n---\n\n\n---\n\nChoice D:\ntest/go.mod\n@@ v1.8.4\n +4,7 @@ go 1.19\n \n require (\n \tgithub.com/Azure/terraform-module-test-helper v0.15.0\n-\tgithub.com/gruntwork-io/terratest v0.43.8\n+\tgithub.com/gruntwork-io/terratest v0.43.11\n \tgithub.com/stretchr/testify v1.8.4\n )\n \n---\n\n\n---\n" } ]
C
[ { "role": "system", "content": "Choose the best Terraform patch (A/B/C/D) that implements the requested Azure Compute change safely. Only respond with a single uppercase letter." }, { "role": "user", "content": "Task Description:\n## Describe your changes\r\n\r\n## Issue number\r\n\r\n#000\r\n\r\n## Checklist before requesting a review\r\n- [ ] The pr title can be used to describe what this pr did in `CHANGELOG.md` file\r\n- [ ] I have executed pre-commit on my machine\r\n- [ ] I have passed pr-check on my machine\r\n\r\nThanks for your cooperation!\r\n\r\n\n\n---\n\nChoice A:\n.checkov_config.yaml\n@@ -6,17 +6,20 @@ download-external-modules: false\n evaluate-variables: true\n external-modules-download-path: .external_modules\n framework:\n-- all\n+ - all\n quiet: true\n secrets-scan-file-type: []\n skip-check:\n-- CKV_GHA_3\n-- CKV_AZURE_119\n+ - CKV_GHA_3\n+ - CKV_AZURE_119\n # Check following rules after v4.0\n-- CKV2_AZURE_18\n-- CKV2_AZURE_1\n-- CKV2_AZURE_10\n-- CKV2_AZURE_12\n+ - CKV2_AZURE_18\n+ - CKV2_AZURE_1\n+ - CKV2_AZURE_10\n+ - CKV2_AZURE_12\n skip-framework:\n-- dockerfile\n+ - dockerfile\n+ - kubernetes\n+skip-path:\n+ - test/vendor\n summary-position: top\n---\n\n\n---\n\nChoice B:\n.checkov_config.yaml\n@@ -6,17 +6,20 @@ download-external-modules: false\n evaluate-variables: true\n external-modules-download-path: .external_modules\n framework:\n-- all\n+ - all\n quiet: true\n secrets-scan-file-type: []\n skip-check:\n-- CKV_GHA_3\n-- CKV_AZURE_119\n+ - CKV_GHA_3\n+ - CKV_AZURE_119\n # Check following rules after v4.0\n-- CKV2_AZURE_18\n-- CKV2_AZURE_1\n-- CKV2_AZURE_10\n-- CKV2_AZURE_12\n+ - CKV2_AZURE_18\n+ - CKV2_AZURE_1\n+ - CKV2_AZURE_10\n+ - CKV2_AZURE_12\n skip-framework:\n-- dockerfile\n+ - dockerfile\n+ - kubernetes\n+skip-path:\n+ - test/vendor\n summary-position: top\n---\n\n\n---\n\nChoice C:\n.checkov_config.yaml\n@@ -6,17 +6,20 @@ download-external-modules: false\n evaluate-variables: true\n external-modules-download-path: .external_modules\n framework:\n-- all\n+ - all\n quiet: true\n secrets-scan-file-type: []\n skip-check:\n-- CKV_GHA_3\n-- CKV_AZURE_119\n+ - CKV_GHA_3\n+ - CKV_AZURE_119\n # Check following rules after v4.0\n-- CKV2_AZURE_18\n-- CKV2_AZURE_1\n-- CKV2_AZURE_10\n-- CKV2_AZURE_12\n+ - CKV2_AZURE_18\n+ - @@ - CKV2_AZURE_10\n+ - CKV2_AZURE_12\n skip-framework:\n-- dockerfile\n+ - dockerfile\n+ - kubernetes\n+skip-path:\n+ - test/vendor\n summary-position: top\n---\n\n\n---\n\nChoice D:\n.checkov_config.yaml\n@@ -6,17 +6,20 @@ download-external-modules: false\n evaluate-variables: true\n external-modules-download-path: .external_modules\n framework:\n-- all\n+ - all\n quiet: true\n secrets-scan-file-type: []\n skip-check:\n-- CKV_GHA_3\n-- CKV_AZURE_119\n+ - CKV_GHA_3\n+ - CKV_AZURE_119\n # Check following rules after v4.0\n-- CKV2_AZURE_18\n-- CKV2_AZURE_1\n-- +6,20 CKV2_AZURE_12\n+ - CKV2_AZURE_18\n+ - CKV2_AZURE_1\n+ - CKV2_AZURE_10\n+ - CKV2_AZURE_12\n skip-framework:\n-- dockerfile\n+ - dockerfile\n+ - kubernetes\n+skip-path:\n+ - test/vendor\n summary-position: top\n---\n\n\n---\n" } ]
A
[ { "role": "system", "content": "Choose the best Terraform patch (A/B/C/D) that implements the requested Azure Compute change safely. Only respond with a single uppercase letter." }, { "role": "user", "content": "Task Description:\nBumps [github.com/gruntwork-io/terratest](https://github.com/gruntwork-io/terratest) from 0.42.0 to 0.43.9.\n<details>\n<summary>Release notes</summary>\n<p><em>Sourced from <a href=\"https://github.com/gruntwork-io/terratest/releases\">github.com/gruntwork-io/terratest's releases</a>.</em></p>\n<blockquote>\n<h2>v0.43.9</h2>\n<h2>Modules affected</h2>\n<!-- raw HTML omitted -->\n<ul>\n<li><code>test-structure</code></li>\n</ul>\n<h2>Description</h2>\n<ul>\n<li>Added function <code>SaveTerraformOptionsIfNotPresent</code></li>\n</ul>\n<h2>Special thanks</h2>\n<!-- raw HTML omitted -->\n<p>Special thanks to the following users for their contribution!</p>\n<ul>\n<li><a href=\"https://github.com/bt-macole\"><code>@​bt-macole</code></a></li>\n</ul>\n<!-- raw HTML omitted -->\n<h2>Related links</h2>\n<!-- raw HTML omitted -->\n<ul>\n<li><a href=\"https://redirect.github.com/gruntwork-io/terratest/pull/1319\">gruntwork-io/terratest#1319</a></li>\n</ul>\n<!-- raw HTML omitted -->\n<h2>v0.43.8</h2>\n<h2>Modules affected</h2>\n<!-- raw HTML omitted -->\n</blockquote>\n<p>... (truncated)</p>\n</details>\n<details>\n<summary>Commits</summary>\n<ul>\n<li><a href=\"https://github.com/gruntwork-io/terratest/commit/adad5f9047c43abb4f77faf28930aecbbb5fc9e8\"><code>adad5f9</code></a> Merge pull request <a href=\"https://redirect.github.com/gruntwork-io/terratest/issues/1319\">#1319</a> from bt-macole/add-SaveTerraformOptionsIfNotPresent</li>\n<li><a href=\"https://github.com/gruntwork-io/terratest/commit/bb0b060a78b4c1355baa0948dfd6662a4812a655\"><code>bb0b060</code></a> feat(test-structure): add save test data if dne</li>\n<li><a href=\"https://github.com/gruntwork-io/terratest/commit/65681e6d17df46ae167634e5d3692b5723670d9c\"><code>65681e6</code></a> Merge pull request <a href=\"https://redirect.github.com/gruntwork-io/terratest/issues/1270\">#1270</a> from gruntwork-io/dependabot/bundler/docs/nokogiri-1...</li>\n<li><a href=\"https://github.com/gruntwork-io/terratest/commit/02c16e5c1b60221adaab12f4cf58dba5ba9f5706\"><code>02c16e5</code></a> Merge pull request <a href=\"https://redirect.github.com/gruntwork-io/terratest/issues/1161\">#1161</a> from gruntwork-io/dependabot/bundler/docs/tzinfo-1.2.10</li>\n<li><a href=\"https://github.com/gruntwork-io/terratest/commit/c6a3be9cc419104076d7d2bc31208ef8e72a0f6e\"><code>c6a3be9</code></a> Merge pull request <a href=\"https://redirect.github.com/gruntwork-io/terratest/issues/1309\">#1309</a> from mdb/mdb/parse-plan-json</li>\n<li><a href=\"https://github.com/gruntwork-io/terratest/commit/d58da781e3d8479c0c1f539e86269c5ebf29f3a1\"><code>d58da78</code></a> Merge pull request <a href=\"https://redirect.github.com/gruntwork-io/terratest/issues/1307\">#1307</a> from sweanan/add-sqlmi-module</li>\n<li><a href=\"https://github.com/gruntwork-io/terratest/commit/0fd2dfd27cf38ef2e1b04998b0ebf716710d8719\"><code>0fd2dfd</code></a> fixed the imports</li>\n<li><a href=\"https://github.com/gruntwork-io/terratest/commit/7d9d89d096dd0d7411a73643d85428b8f86fd8bf\"><code>7d9d89d</code></a> update the test tag</li>\n<li><a href=\"https://github.com/gruntwork-io/terratest/commit/91c117a7efa2badfd0c10700bc363613c0274854\"><code>91c117a</code></a> mark the test as long running test</li>\n<li><a href=\"https://github.com/gruntwork-io/terratest/commit/c1307142f0c6750d06c4ae6d909c020c448b8b99\"><code>c130714</code></a> Merge pull request <a href=\"https://redirect.github.com/gruntwork-io/terratest/issues/1321\">#1321</a> from gruntwork-io/feature/issue-template</li>\n<li>Additional commits viewable in <a href=\"https://github.com/gruntwork-io/terratest/compare/v0.42.0...v0.43.9\">compare view</a></li>\n</ul>\n</details>\n<br />\n\n\n[![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=github.com/gruntwork-io/terratest&package-manager=go_modules&previous-version=0.42.0&new-version=0.43.9)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)\n\nDependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`.\n\n[//]: # (dependabot-automerge-start)\n[//]: # (dependabot-automerge-end)\n\n---\n\n<details>\n<summary>Dependabot commands and options</summary>\n<br />\n\nYou can trigger Dependabot actions by commenting on this PR:\n- `@dependabot rebase` will rebase this PR\n- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it\n- `@dependabot merge` will merge this PR after your CI passes on it\n- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it\n- `@dependabot cancel merge` will cancel a previously requested merge and block automerging\n- `@dependabot reopen` will reopen this PR if it is closed\n- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually\n- `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)\n- `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)\n- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)\n\n\n</details>\n\n---\n\nChoice A:\ntest/go.mod\n@@ -4,7 +4,7 @@ go 1.19\n \n require (\n \tgithub.com/Azure/terraform-module-test-helper v0.15.0\n-\tgithub.com/gruntwork-io/terratest v0.43.8\n+\tgithub.com/gruntwork-io/terratest v0.43.8\n+\tgithub.com/gruntwork-io/terratest \tgithub.com/stretchr/testify v1.8.4\n )\n \n---\n\n\n---\n\nChoice B:\ntest/go.mod\n@@ -4,7 +4,7 @@ go 1.19\n \n require (\n \tgithub.com/Azure/terraform-module-test-helper v0.15.0\n-\tgithub.com/gruntwork-io/terratest v0.43.8\n+\tgithub.com/gruntwork-io/terratest v0.43.9\n \tgithub.com/stretchr/testify v0.15.0\n-\tgithub.com/gruntwork-io/terratest )\n \n---\n\n\n---\n\nChoice C:\ntest/go.mod\n@@ -4,7 +4,7 @@ go 1.19\n \n require (\n \tgithub.com/Azure/terraform-module-test-helper v0.15.0\n-\tgithub.com/gruntwork-io/terratest v0.43.8\n+\tgithub.com/gruntwork-io/terratest v0.43.9\n \tgithub.com/stretchr/testify v1.8.4\n )\n \n---\n\n\n---\n\nChoice D:\ntest/go.mod\n@@ -4,7 +4,7 @@ go 1.19\n \n require (\n \tgithub.com/Azure/terraform-module-test-helper v0.15.0\n-\tgithub.com/gruntwork-io/terratest v0.43.8\n+\tgithub.com/gruntwork-io/terratest v0.43.9\n \tgithub.com/stretchr/testify v1.8.4\n \tgithub.com/Azure/terraform-module-test-helper \n---\n\n\n---\n" } ]
C
[ { "role": "system", "content": "Choose the best Terraform patch (A/B/C/D) that implements the requested Azure Compute change safely. Only respond with a single uppercase letter." }, { "role": "user", "content": "Task Description:\nBumps [github.com/gruntwork-io/terratest](https://github.com/gruntwork-io/terratest) from 0.42.0 to 0.43.8.\n<details>\n<summary>Release notes</summary>\n<p><em>Sourced from <a href=\"https://github.com/gruntwork-io/terratest/releases\">github.com/gruntwork-io/terratest's releases</a>.</em></p>\n<blockquote>\n<h2>v0.43.8</h2>\n<h2>Modules affected</h2>\n<!-- raw HTML omitted -->\n<ul>\n<li><code>terraform</code></li>\n</ul>\n<h2>Description</h2>\n<ul>\n<li>Added public <code>ParsePlanJSON</code> function to <code>terraform</code> module.</li>\n</ul>\n<h2>Special thanks</h2>\n<!-- raw HTML omitted -->\n<p>Special thanks to the following users for their contribution!</p>\n<ul>\n<li><a href=\"https://github.com/mdb\"><code>@​mdb</code></a></li>\n</ul>\n<!-- raw HTML omitted -->\n<h2>Related links</h2>\n<!-- raw HTML omitted -->\n<ul>\n<li><a href=\"https://redirect.github.com/gruntwork-io/terratest/pull/1309\">gruntwork-io/terratest#1309</a></li>\n</ul>\n<!-- raw HTML omitted -->\n<h2>v0.43.7</h2>\n<h2>Modules affected</h2>\n<!-- raw HTML omitted -->\n</blockquote>\n<p>... (truncated)</p>\n</details>\n<details>\n<summary>Commits</summary>\n<ul>\n<li><a href=\"https://github.com/gruntwork-io/terratest/commit/c6a3be9cc419104076d7d2bc31208ef8e72a0f6e\"><code>c6a3be9</code></a> Merge pull request <a href=\"https://redirect.github.com/gruntwork-io/terratest/issues/1309\">#1309</a> from mdb/mdb/parse-plan-json</li>\n<li><a href=\"https://github.com/gruntwork-io/terratest/commit/d58da781e3d8479c0c1f539e86269c5ebf29f3a1\"><code>d58da78</code></a> Merge pull request <a href=\"https://redirect.github.com/gruntwork-io/terratest/issues/1307\">#1307</a> from sweanan/add-sqlmi-module</li>\n<li><a href=\"https://github.com/gruntwork-io/terratest/commit/0fd2dfd27cf38ef2e1b04998b0ebf716710d8719\"><code>0fd2dfd</code></a> fixed the imports</li>\n<li><a href=\"https://github.com/gruntwork-io/terratest/commit/7d9d89d096dd0d7411a73643d85428b8f86fd8bf\"><code>7d9d89d</code></a> update the test tag</li>\n<li><a href=\"https://github.com/gruntwork-io/terratest/commit/91c117a7efa2badfd0c10700bc363613c0274854\"><code>91c117a</code></a> mark the test as long running test</li>\n<li><a href=\"https://github.com/gruntwork-io/terratest/commit/c1307142f0c6750d06c4ae6d909c020c448b8b99\"><code>c130714</code></a> Merge pull request <a href=\"https://redirect.github.com/gruntwork-io/terratest/issues/1321\">#1321</a> from gruntwork-io/feature/issue-template</li>\n<li><a href=\"https://github.com/gruntwork-io/terratest/commit/1457f26348656d62c31c4a71afd95ae5a033de03\"><code>1457f26</code></a> Bug report update</li>\n<li><a href=\"https://github.com/gruntwork-io/terratest/commit/87d65df575e1a6d7f7150974749e3f186c8f7989\"><code>87d65df</code></a> Add templates for bug and feature requests</li>\n<li><a href=\"https://github.com/gruntwork-io/terratest/commit/1bd1d3912c01366c448ce7767c2821a3c004a476\"><code>1bd1d39</code></a> Merge pull request <a href=\"https://redirect.github.com/gruntwork-io/terratest/issues/1297\">#1297</a> from kaisoz/add-k8s-events-support</li>\n<li><a href=\"https://github.com/gruntwork-io/terratest/commit/c79a759b9277e075d63bcc28ecc7c08087b4da77\"><code>c79a759</code></a> Merge pull request <a href=\"https://redirect.github.com/gruntwork-io/terratest/issues/1317\">#1317</a> from gruntwork-io/bug/gcp-fixes</li>\n<li>Additional commits viewable in <a href=\"https://github.com/gruntwork-io/terratest/compare/v0.42.0...v0.43.8\">compare view</a></li>\n</ul>\n</details>\n<br />\n\n\n[![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=github.com/gruntwork-io/terratest&package-manager=go_modules&previous-version=0.42.0&new-version=0.43.8)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)\n\nDependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`.\n\n[//]: # (dependabot-automerge-start)\n[//]: # (dependabot-automerge-end)\n\n---\n\n<details>\n<summary>Dependabot commands and options</summary>\n<br />\n\nYou can trigger Dependabot actions by commenting on this PR:\n- `@dependabot rebase` will rebase this PR\n- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it\n- `@dependabot merge` will merge this PR after your CI passes on it\n- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it\n- `@dependabot cancel merge` will cancel a previously requested merge and block automerging\n- `@dependabot reopen` will reopen this PR if it is closed\n- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually\n- `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)\n- `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)\n- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)\n\n\n</details>\n\n---\n\nChoice A:\ntest/go.mod\n@@ -4,7 +4,7 @@ go 1.19\n \n require (\n \tgithub.com/Azure/terraform-module-test-helper v0.14.0\n-\tgithub.com/gruntwork-io/terratest v0.42.0\n+\tgithub.com/gruntwork-io/terratest v0.43.8\n \tgithub.com/stretchr/testify v1.8.3\n )\n \n@@ -22,21 +22,24 @@ require (\n \tgithub.com/boombuler/barcode v1.0.1-0.20190219062509-6c824513bacc // indirect\n \tgithub.com/cpuguy83/go-md2man/v2 v2.0.0 // indirect\n \tgithub.com/davecgh/go-spew v1.1.1 // indirect\n-\tgithub.com/docker/spdystream v0.0.0-20181023171402-6480d4af844c // indirect\n+\tgithub.com/emicklei/go-restful/v3 v3.9.0 // indirect\n \tgithub.com/go-errors/errors \tgithub.com/davecgh/go-spew // indirect\n-\tgithub.com/go-logr/logr v0.2.0 // indirect\n+\tgithub.com/go-logr/logr v1.2.3 // indirect\n+\tgithub.com/go-openapi/jsonpointer v0.19.6 // indirect\n+\tgithub.com/go-openapi/jsonreference v0.20.1 // indirect\n+\tgithub.com/go-openapi/swag v0.22.3 // indirect\n \tgithub.com/go-sql-driver/mysql v1.4.1 // indirect\n \tgithub.com/gogo/protobuf v1.3.2 // indirect\n \tgithub.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da // indirect\n-\tgithub.com/golang/protobuf v1.5.2 // indirect\n+\tgithub.com/golang/protobuf v1.5.3 // indirect\n+\tgithub.com/google/gnostic v0.5.7-v3refs // indirect\n \tgithub.com/google/go-cmp v0.5.9 // indirect\n \tgithub.com/google/go-github/v42 v42.0.0 // indirect\n \tgithub.com/google/go-querystring v1.1.0 // indirect\n \tgithub.com/google/gofuzz v1.1.0 // indirect\n \tgithub.com/google/uuid v1.3.0 // indirect\n \tgithub.com/googleapis/enterprise-certificate-proxy v0.2.0 // indirect\n \tgithub.com/googleapis/gax-go/v2 v2.7.0 // indirect\n-\tgithub.com/googleapis/gnostic v0.4.1 // indirect\n \tgithub.com/gruntwork-io/go-commons v0.8.0 // indirect\n \tgithub.com/hashicorp/errwrap v1.0.0 // indirect\n \tgithub.com/hashicorp/go-cleanhttp v0.5.2 // indirect\n@@ -52,17 +55,21 @@ require (\n \tgithub.com/imdario/mergo v0.3.11 // indirect\n \tgithub.com/jinzhu/copier v0.0.0-20190924061706-b57f9002281a // indirect\n \tgithub.com/jmespath/go-jmespath v0.4.0 // indirect\n-\tgithub.com/json-iterator/go v1.1.11 // indirect\n+\tgithub.com/josharian/intern v1.0.0 // indirect\n+\tgithub.com/json-iterator/go v1.1.12 // indirect\n \tgithub.com/klauspost/compress v1.15.11 // indirect\n \tgithub.com/lonegunmanb/tfmodredirector v0.1.0 // indirect\n \tgithub.com/magodo/hclgrep v0.0.0-20220303061548-1b2b24c7caf6 // indirect\n+\tgithub.com/mailru/easyjson v0.7.7 // indirect\n \tgithub.com/mattn/go-zglob v0.0.2-0.20190814121620-e3c945676326 // indirect\n \tgithub.com/minamijoyo/hcledit v0.2.6 // indirect\n \tgithub.com/mitchellh/go-homedir v1.1.0 // indirect\n \tgithub.com/mitchellh/go-testing-interface v1.14.1 // indirect\n \tgithub.com/mitchellh/go-wordwrap v1.0.1 // indirect\n+\tgithub.com/moby/spdystream v0.2.0 // indirect\n \tgithub.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect\n-\tgithub.com/modern-go/reflect2 v1.0.1 // indirect\n+\tgithub.com/modern-go/reflect2 v1.0.2 // indirect\n+\tgithub.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822 // indirect\n \tgithub.com/pmezard/go-difflib v1.0.0 // indirect\n \tgithub.com/pquerna/otp v1.2.0 // indirect\n \tgithub.com/r3labs/diff/v3 v3.0.1 // indirect\n@@ -84,21 +91,23 @@ require (\n \tgolang.org/x/sys v0.8.0 // indirect\n \tgolang.org/x/term v0.8.0 // indirect\n \tgolang.org/x/text v0.9.0 // indirect\n-\tgolang.org/x/time v0.0.0-20200630173020-3af7569d3a1e // indirect\n+\tgolang.org/x/time v0.0.0-20220210224613-90d013bbcef8 // indirect\n \tgolang.org/x/xerrors v0.0.0-20220907171357-04be3eba64a2 // indirect\n \tgoogle.golang.org/api v0.103.0 // indirect\n \tgoogle.golang.org/appengine v1.6.7 // indirect\n \tgoogle.golang.org/genproto v0.0.0-20221201164419-0e50fba7f41c // indirect\n \tgoogle.golang.org/grpc v1.51.0 // indirect\n-\tgoogle.golang.org/protobuf v1.28.1 // indirect\n+\tgoogle.golang.org/protobuf v1.31.0 // indirect\n \tgopkg.in/inf.v0 v0.9.1 // indirect\n \tgopkg.in/yaml.v2 v2.4.0 // indirect\n \tgopkg.in/yaml.v3 v3.0.1 // indirect\n-\tk8s.io/api v0.20.6 // indirect\n-\tk8s.io/apimachinery v0.20.6 // indirect\n-\tk8s.io/client-go v0.20.6 // indirect\n-\tk8s.io/klog/v2 v2.4.0 // indirect\n-\tk8s.io/utils v0.0.0-20201110183641-67b214c5f920 // indirect\n-\tsigs.k8s.io/structured-merge-diff/v4 v4.0.3 // indirect\n-\tsigs.k8s.io/yaml v1.2.0 // indirect\n+\tk8s.io/api v0.27.2 // indirect\n+\tk8s.io/apimachinery v0.27.2 // indirect\n+\tk8s.io/client-go v0.27.2 // indirect\n+\tk8s.io/klog/v2 v2.90.1 // indirect\n+\tk8s.io/kube-openapi v0.0.0-20230501164219-8b0f38b5fd1f // indirect\n+\tk8s.io/utils v0.0.0-20230209194617-a36077c30491 // indirect\n+\tsigs.k8s.io/json v0.0.0-20221116044647-bc3834ca7abd // indirect\n+\tsigs.k8s.io/structured-merge-diff/v4 v4.2.3 // indirect\n+\tsigs.k8s.io/yaml v1.3.0 // indirect\n )\n---\n\n\n---\n\nChoice B:\ntest/go.mod\n@@ -4,7 +4,7 @@ go 1.19\n \n require (\n \tgithub.com/Azure/terraform-module-test-helper v0.14.0\n-\tgithub.com/gruntwork-io/terratest v0.42.0\n+\tgithub.com/gruntwork-io/terratest v0.43.8\n \tgithub.com/stretchr/testify v1.8.3\n )\n \n@@ -22,21 +22,24 @@ require (\n \tgithub.com/boombuler/barcode v1.0.1-0.20190219062509-6c824513bacc // indirect\n \tgithub.com/cpuguy83/go-md2man/v2 v2.0.0 // indirect\n \tgithub.com/davecgh/go-spew v1.1.1 // indirect\n-\tgithub.com/docker/spdystream v0.0.0-20181023171402-6480d4af844c // indirect\n+\tgithub.com/emicklei/go-restful/v3 v3.9.0 // indirect\n \tgithub.com/go-errors/errors v1.0.2-0.20180813162953-d98b870cc4e0 // indirect\n-\tgithub.com/go-logr/logr v0.2.0 // indirect\n+\tgithub.com/go-logr/logr v1.2.3 // indirect\n+\tgithub.com/go-openapi/jsonpointer v0.19.6 // indirect\n+\tgithub.com/go-openapi/jsonreference v0.20.1 // indirect\n+\tgithub.com/go-openapi/swag v0.22.3 // indirect\n \tgithub.com/go-sql-driver/mysql v1.4.1 // indirect\n \tgithub.com/gogo/protobuf v1.3.2 // indirect\n \tgithub.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da // indirect\n-\tgithub.com/golang/protobuf v1.5.2 // indirect\n+\tgithub.com/golang/protobuf v1.5.3 // indirect\n+\tgithub.com/google/gnostic v0.5.7-v3refs // indirect\n \tgithub.com/google/go-cmp v0.5.9 // indirect\n \tgithub.com/google/go-github/v42 v42.0.0 // indirect\n \tgithub.com/google/go-querystring v1.1.0 // indirect\n \tgithub.com/google/gofuzz v1.1.0 // indirect\n \tgithub.com/google/uuid v1.3.0 // indirect\n \tgithub.com/googleapis/enterprise-certificate-proxy v0.2.0 // indirect\n \tgithub.com/googleapis/gax-go/v2 v2.7.0 // indirect\n-\tgithub.com/googleapis/gnostic v0.4.1 // indirect\n \tgithub.com/gruntwork-io/go-commons v0.8.0 // indirect\n \tgithub.com/hashicorp/errwrap v1.0.0 // indirect\n \tgithub.com/hashicorp/go-cleanhttp v0.5.2 // indirect\n@@ -52,17 +55,21 @@ require (\n \tgithub.com/imdario/mergo v0.3.11 // indirect\n \tgithub.com/jinzhu/copier v0.0.0-20190924061706-b57f9002281a // indirect\n \tgithub.com/jmespath/go-jmespath v0.4.0 // indirect\n-\tgithub.com/json-iterator/go v1.1.11 // indirect\n+\tgithub.com/josharian/intern v1.0.0 // indirect\n+\tgithub.com/json-iterator/go v1.1.12 // indirect\n \tgithub.com/klauspost/compress v1.15.11 // indirect\n \tgithub.com/lonegunmanb/tfmodredirector v0.1.0 // indirect\n \tgithub.com/magodo/hclgrep v0.0.0-20220303061548-1b2b24c7caf6 // indirect\n+\tgithub.com/mailru/easyjson v0.7.7 // indirect\n \tgithub.com/mattn/go-zglob v0.0.2-0.20190814121620-e3c945676326 // indirect\n \tgithub.com/minamijoyo/hcledit v0.2.6 // indirect\n \tgithub.com/mitchellh/go-homedir v1.1.0 // indirect\n \tgithub.com/mitchellh/go-testing-interface v1.14.1 // indirect\n \tgithub.com/mitchellh/go-wordwrap v1.0.1 // indirect\n+\tgithub.com/moby/spdystream v0.2.0 // indirect\n \tgithub.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect\n-\tgithub.com/modern-go/reflect2 v1.0.1 // indirect\n+\tgithub.com/modern-go/reflect2 v1.0.2 // indirect\n+\tgithub.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822 // indirect\n \tgithub.com/pmezard/go-difflib v1.0.0 // indirect\n \tgithub.com/pquerna/otp v1.2.0 // indirect\n \tgithub.com/r3labs/diff/v3 v3.0.1 // indirect\n@@ -84,21 +91,23 @@ require (\n \tgolang.org/x/sys v0.8.0 // indirect\n \tgolang.org/x/term v0.8.0 // indirect\n \tgolang.org/x/text v0.9.0 // indirect\n-\tgolang.org/x/time v0.0.0-20200630173020-3af7569d3a1e // indirect\n+\tgolang.org/x/time v0.0.0-20220210224613-90d013bbcef8 // indirect\n \tgolang.org/x/xerrors v0.0.0-20220907171357-04be3eba64a2 // indirect\n \tgoogle.golang.org/api v0.103.0 // indirect\n \tgoogle.golang.org/appengine v1.6.7 // indirect\n \tgoogle.golang.org/genproto v0.0.0-20221201164419-0e50fba7f41c // indirect\n \tgoogle.golang.org/grpc v1.51.0 // indirect\n-\tgoogle.golang.org/protobuf v1.28.1 // indirect\n+\tgoogle.golang.org/protobuf v1.31.0 // indirect\n \tgopkg.in/inf.v0 v0.9.1 // indirect\n \tgopkg.in/yaml.v2 v2.4.0 // indirect\n \tgopkg.in/yaml.v3 v3.0.1 // indirect\n-\tk8s.io/api v0.20.6 // indirect\n-\tk8s.io/apimachinery v0.20.6 // indirect\n-\tk8s.io/client-go v0.20.6 // indirect\n-\tk8s.io/klog/v2 v2.4.0 // indirect\n-\tk8s.io/utils v0.0.0-20201110183641-67b214c5f920 // indirect\n-\tsigs.k8s.io/structured-merge-diff/v4 v4.0.3 // indirect\n-\tsigs.k8s.io/yaml v1.2.0 // indirect\n+\tk8s.io/api v0.27.2 // indirect\n+\tk8s.io/apimachinery v0.27.2 // indirect\n+\tk8s.io/client-go v0.27.2 // indirect\n+\tk8s.io/klog/v2 v2.90.1 // indirect\n+\tk8s.io/kube-openapi v0.0.0-20230501164219-8b0f38b5fd1f // indirect\n+\tk8s.io/utils v0.0.0-20230209194617-a36077c30491 // indirect\n+\tsigs.k8s.io/json v0.0.0-20221116044647-bc3834ca7abd // indirect\n+\tsigs.k8s.io/structured-merge-diff/v4 v4.2.3 // indirect\n+\tsigs.k8s.io/yaml v1.3.0 // indirect\n )\n---\n\n\n---\n\nChoice C:\ntest/go.mod\n@@ -4,7 +4,7 @@ go 1.19\n \n require (\n \tgithub.com/Azure/terraform-module-test-helper v0.14.0\n-\tgithub.com/gruntwork-io/terratest v0.42.0\n+\tgithub.com/gruntwork-io/terratest v0.43.8\n \tgithub.com/stretchr/testify v1.8.3\n )\n \n@@ -22,21 +22,24 @@ require (\n \tgithub.com/boombuler/barcode v1.0.1-0.20190219062509-6c824513bacc // indirect\n \tgithub.com/cpuguy83/go-md2man/v2 v2.0.0 // indirect\n \tgithub.com/davecgh/go-spew v1.1.1 // indirect\n-\tgithub.com/docker/spdystream v0.0.0-20181023171402-6480d4af844c // indirect\n+\tgithub.com/emicklei/go-restful/v3 v3.9.0 // indirect\n \tgithub.com/go-errors/errors v1.0.2-0.20180813162953-d98b870cc4e0 // indirect\n-\tgithub.com/go-logr/logr v0.2.0 // indirect\n+\tgithub.com/go-logr/logr v1.2.3 // indirect\n+\tgithub.com/go-openapi/jsonpointer v0.19.6 // indirect\n+\tgithub.com/go-openapi/jsonreference v0.20.1 // indirect\n+\tgithub.com/go-openapi/swag v0.22.3 // indirect\n \tgithub.com/go-sql-driver/mysql v1.4.1 // indirect\n \tgithub.com/gogo/protobuf v1.3.2 // indirect\n \tgithub.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da // indirect\n-\tgithub.com/golang/protobuf v1.5.2 // indirect\n+\tgithub.com/golang/protobuf v1.5.3 // indirect\n+\tgithub.com/google/gnostic v0.5.7-v3refs // indirect\n \tgithub.com/google/go-cmp v0.5.9 // indirect\n \tgithub.com/google/go-github/v42 v42.0.0 // indirect\n \tgithub.com/google/go-querystring v1.1.0 // indirect\n \tgithub.com/google/gofuzz v1.1.0 // indirect\n \tgithub.com/google/uuid v1.3.0 // indirect\n \tgithub.com/googleapis/enterprise-certificate-proxy v0.2.0 // indirect\n \tgithub.com/googleapis/gax-go/v2 v2.7.0 // indirect\n-\tgithub.com/googleapis/gnostic v0.4.1 // indirect\n \tgithub.com/gruntwork-io/go-commons v0.8.0 // indirect\n \tgithub.com/hashicorp/errwrap v1.0.0 // indirect\n \tgithub.com/hashicorp/go-cleanhttp v0.5.2 // indirect\n@@ -52,17 +55,21 @@ require (\n \tgithub.com/imdario/mergo v0.3.11 // indirect\n indirect\n+\tgolang.org/x/time v0.0.0-20190924061706-b57f9002281a // indirect\n \tgithub.com/jmespath/go-jmespath v0.4.0 // indirect\n-\tgithub.com/json-iterator/go v1.1.11 // indirect\n+\tgithub.com/josharian/intern v1.0.0 // indirect\n+\tgithub.com/json-iterator/go v1.1.12 // indirect\n \tgithub.com/klauspost/compress v1.15.11 // indirect\n \tgithub.com/lonegunmanb/tfmodredirector v0.1.0 // indirect\n \tgithub.com/magodo/hclgrep v0.0.0-20220303061548-1b2b24c7caf6 // indirect\n+\tgithub.com/mailru/easyjson v0.7.7 // indirect\n \tgithub.com/mattn/go-zglob v0.0.2-0.20190814121620-e3c945676326 // indirect\n \tgithub.com/minamijoyo/hcledit v0.2.6 // indirect\n \tgithub.com/mitchellh/go-homedir v1.1.0 // indirect\n \tgithub.com/mitchellh/go-testing-interface v1.14.1 // indirect\n \tgithub.com/mitchellh/go-wordwrap v1.0.1 // indirect\n+\tgithub.com/moby/spdystream v0.2.0 // indirect\n \tgithub.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect\n-\tgithub.com/modern-go/reflect2 v1.0.1 // indirect\n+\tgithub.com/modern-go/reflect2 v1.0.2 // indirect\n+\tgithub.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822 // indirect\n \tgithub.com/pmezard/go-difflib v1.0.0 // indirect\n \tgithub.com/pquerna/otp v1.2.0 // indirect\n \tgithub.com/r3labs/diff/v3 v3.0.1 // indirect\n@@ -84,21 +91,23 @@ require (\n \tgolang.org/x/sys v0.8.0 // indirect\n \tgolang.org/x/term v0.8.0 // indirect\n \tgolang.org/x/text v0.9.0 // indirect\n-\tgolang.org/x/time v0.0.0-20200630173020-3af7569d3a1e // indirect\n+\tgolang.org/x/time v0.0.0-20220210224613-90d013bbcef8 // indirect\n \tgolang.org/x/xerrors v0.0.0-20220907171357-04be3eba64a2 // indirect\n \tgoogle.golang.org/api v0.103.0 // indirect\n \tgoogle.golang.org/appengine v1.6.7 // indirect\n \tgoogle.golang.org/genproto v0.0.0-20221201164419-0e50fba7f41c // indirect\n \tgoogle.golang.org/grpc v1.51.0 // indirect\n-\tgoogle.golang.org/protobuf v1.28.1 // indirect\n+\tgoogle.golang.org/protobuf v1.31.0 // indirect\n \tgopkg.in/inf.v0 v0.9.1 // indirect\n \tgopkg.in/yaml.v2 v2.4.0 // indirect\n \tgopkg.in/yaml.v3 v3.0.1 // indirect\n-\tk8s.io/api v0.20.6 // indirect\n-\tk8s.io/apimachinery v0.20.6 // indirect\n-\tk8s.io/client-go v0.20.6 // indirect\n-\tk8s.io/klog/v2 v2.4.0 // indirect\n-\tk8s.io/utils v0.0.0-20201110183641-67b214c5f920 // indirect\n-\tsigs.k8s.io/structured-merge-diff/v4 v4.0.3 // indirect\n-\tsigs.k8s.io/yaml v1.2.0 // indirect\n+\tk8s.io/api v0.27.2 // indirect\n+\tk8s.io/apimachinery v0.27.2 // indirect\n+\tk8s.io/client-go v0.27.2 // indirect\n+\tk8s.io/klog/v2 v2.90.1 // indirect\n+\tk8s.io/kube-openapi v0.0.0-20230501164219-8b0f38b5fd1f // indirect\n+\tk8s.io/utils v0.0.0-20230209194617-a36077c30491 // indirect\n+\tsigs.k8s.io/json v0.0.0-20221116044647-bc3834ca7abd // indirect\n+\tsigs.k8s.io/structured-merge-diff/v4 v4.2.3 // indirect\n+\tsigs.k8s.io/yaml v1.3.0 // indirect\n )\n---\n\n\n---\n\nChoice D:\ntest/go.mod\n@@ -4,7 +4,7 @@ go 1.19\n \n require )\n \tgithub.com/Azure/terraform-module-test-helper v0.14.0\n-\tgithub.com/gruntwork-io/terratest v0.42.0\n+\tgithub.com/gruntwork-io/terratest v0.43.8\n \tgithub.com/stretchr/testify v1.8.3\n )\n \n@@ -22,21 +22,24 @@ require (\n \tgithub.com/boombuler/barcode v1.0.1-0.20190219062509-6c824513bacc // indirect\n \tgithub.com/cpuguy83/go-md2man/v2 v2.0.0 // indirect\n \tgithub.com/davecgh/go-spew v1.1.1 // indirect\n-\tgithub.com/docker/spdystream v0.0.0-20181023171402-6480d4af844c // indirect\n+\tgithub.com/emicklei/go-restful/v3 v3.9.0 // indirect\n \tgithub.com/go-errors/errors v1.0.2-0.20180813162953-d98b870cc4e0 // indirect\n-\tgithub.com/go-logr/logr v0.2.0 // indirect\n+\tgithub.com/go-logr/logr v1.2.3 // indirect\n+\tgithub.com/go-openapi/jsonpointer v0.19.6 // indirect\n+\tgithub.com/go-openapi/jsonreference v0.20.1 // indirect\n+\tgithub.com/go-openapi/swag v0.22.3 // indirect\n \tgithub.com/go-sql-driver/mysql v1.4.1 // indirect\n \tgithub.com/gogo/protobuf v1.3.2 // indirect\n \tgithub.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da // indirect\n-\tgithub.com/golang/protobuf v1.5.2 // indirect\n+\tgithub.com/golang/protobuf v1.5.3 // indirect\n+\tgithub.com/google/gnostic v0.5.7-v3refs // indirect\n \tgithub.com/google/go-cmp v0.5.9 // indirect\n \tgithub.com/google/go-github/v42 v42.0.0 // indirect\n \tgithub.com/google/go-querystring v1.1.0 // indirect\n \tgithub.com/google/gofuzz v1.1.0 // indirect\n \tgithub.com/google/uuid v1.3.0 // indirect\n \tgithub.com/googleapis/enterprise-certificate-proxy v0.2.0 // indirect\n \tgithub.com/googleapis/gax-go/v2 v2.7.0 // indirect\n-\tgithub.com/googleapis/gnostic v0.4.1 // indirect\n \tgithub.com/gruntwork-io/go-commons v0.8.0 // indirect\n \tgithub.com/hashicorp/errwrap v1.0.0 // indirect\n \tgithub.com/hashicorp/go-cleanhttp v0.5.2 // indirect\n@@ -52,17 +55,21 @@ require (\n \tgithub.com/imdario/mergo v0.3.11 // indirect\n \tgithub.com/jinzhu/copier v0.0.0-20190924061706-b57f9002281a // indirect\n \tgithub.com/jmespath/go-jmespath v0.4.0 // indirect\n-\tgithub.com/json-iterator/go v1.1.11 // indirect\n+\tgithub.com/josharian/intern v1.0.0 // indirect\n+\tgithub.com/json-iterator/go v1.1.12 // indirect\n \tgithub.com/klauspost/compress v1.15.11 // indirect\n \tgithub.com/lonegunmanb/tfmodredirector v0.1.0 // indirect\n \tgithub.com/magodo/hclgrep v0.0.0-20220303061548-1b2b24c7caf6 // indirect\n+\tgithub.com/mailru/easyjson v0.7.7 // indirect\n \tgithub.com/mattn/go-zglob v0.0.2-0.20190814121620-e3c945676326 // indirect\n \tgithub.com/minamijoyo/hcledit v0.2.6 // indirect\n \tgithub.com/mitchellh/go-homedir v1.1.0 // indirect\n \tgithub.com/mitchellh/go-testing-interface v1.14.1 // indirect\n \tgithub.com/mitchellh/go-wordwrap v1.0.1 // indirect\n+\tgithub.com/moby/spdystream v0.2.0 // indirect\n \tgithub.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect\n-\tgithub.com/modern-go/reflect2 v1.0.1 // indirect\n+\tgithub.com/modern-go/reflect2 v1.0.2 // indirect\n+\tgithub.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822 // indirect\n \tgithub.com/pmezard/go-difflib v1.0.0 // indirect\n \tgithub.com/pquerna/otp v1.2.0 // indirect\n \tgithub.com/r3labs/diff/v3 v3.0.1 // indirect\n@@ -84,21 +91,23 @@ require (\n \tgolang.org/x/sys v0.8.0 // indirect\n \tgolang.org/x/term v0.8.0 // indirect\n \tgolang.org/x/text v0.9.0 // indirect\n-\tgolang.org/x/time v0.0.0-20200630173020-3af7569d3a1e // indirect\n+\tgolang.org/x/time v0.0.0-20220210224613-90d013bbcef8 // indirect\n \tgolang.org/x/xerrors v0.0.0-20220907171357-04be3eba64a2 // indirect\n \tgoogle.golang.org/api v0.103.0 // indirect\n \tgoogle.golang.org/appengine v1.6.7 // indirect\n \tgoogle.golang.org/genproto v0.0.0-20221201164419-0e50fba7f41c // indirect\n \tgoogle.golang.org/grpc v1.51.0 // indirect\n-\tgoogle.golang.org/protobuf v1.28.1 // indirect\n+\tgoogle.golang.org/protobuf v1.31.0 // indirect\n \tgopkg.in/inf.v0 v0.9.1 // indirect\n \tgopkg.in/yaml.v2 v2.4.0 // indirect\n \tgopkg.in/yaml.v3 v3.0.1 // indirect\n-\tk8s.io/api v0.20.6 // indirect\n-\tk8s.io/apimachinery v0.20.6 // indirect\n-\tk8s.io/client-go v0.20.6 // indirect\n-\tk8s.io/klog/v2 v2.4.0 // indirect\n-\tk8s.io/utils v0.0.0-20201110183641-67b214c5f920 // indirect\n-\tsigs.k8s.io/structured-merge-diff/v4 v4.0.3 // indirect\n-\tsigs.k8s.io/yaml v1.2.0 // indirect\n+\tk8s.io/api v0.27.2 // indirect\n+\tk8s.io/apimachinery v0.27.2 // indirect\n+\tk8s.io/client-go v0.27.2 // indirect\n+\tk8s.io/klog/v2 v2.90.1 // indirect\n+\tk8s.io/kube-openapi v0.0.0-20230501164219-8b0f38b5fd1f // indirect\n+\tk8s.io/utils v0.0.0-20230209194617-a36077c30491 // indirect\n+\tsigs.k8s.io/json v0.0.0-20221116044647-bc3834ca7abd // indirect\n+\tsigs.k8s.io/structured-merge-diff/v4 v4.2.3 // indirect\n+\tsigs.k8s.io/yaml v1.3.0 // indirect\n )\n---\n\n\n---\n" } ]
B
[ { "role": "system", "content": "Choose the best Terraform patch (A/B/C/D) that implements the requested Azure Compute change safely. Only respond with a single uppercase letter." }, { "role": "user", "content": "Task Description:\nBumps [google.golang.org/grpc](https://github.com/grpc/grpc-go) from 1.51.0 to 1.53.0.\n<details>\n<summary>Release notes</summary>\n<p><em>Sourced from <a href=\"https://github.com/grpc/grpc-go/releases\">google.golang.org/grpc's releases</a>.</em></p>\n<blockquote>\n<h2>Release 1.53.0</h2>\n<h1>API Changes</h1>\n<ul>\n<li>balancer: support injection of per-call metadata from LB policies (<a href=\"https://redirect.github.com/grpc/grpc-go/issues/5853\">#5853</a>)</li>\n<li>resolver: remove deprecated field <code>resolver.Target.Endpoint</code> and replace with <code>resolver.Target.Endpoint()</code> (<a href=\"https://redirect.github.com/grpc/grpc-go/issues/5852\">#5852</a>)\n<ul>\n<li>Special Thanks: <a href=\"https://github.com/kylejb\"><code>@​kylejb</code></a></li>\n</ul>\n</li>\n</ul>\n<h1>New Features</h1>\n<ul>\n<li>xds/ringhash: introduce <code>GRPC_RING_HASH_CAP</code> environment variable to override the maximum ring size. (<a href=\"https://redirect.github.com/grpc/grpc-go/issues/5884\">#5884</a>)</li>\n<li>rls: propagate headers received in RLS response to backends (<a href=\"https://redirect.github.com/grpc/grpc-go/issues/5883\">#5883</a>)</li>\n</ul>\n<h1>Bug Fixes</h1>\n<ul>\n<li>transport: drain client transport when streamID approaches MaxStreamID (<a href=\"https://redirect.github.com/grpc/grpc-go/issues/5889\">#5889</a>)</li>\n<li>server: after GracefulStop, ensure connections are closed when final RPC completes (<a href=\"https://redirect.github.com/grpc/grpc-go/issues/5968\">#5968</a>)</li>\n<li>server: fix a few issues where grpc server uses RST_STREAM for non-HTTP/2 errors (<a href=\"https://redirect.github.com/grpc/grpc-go/issues/5893\">#5893</a>)</li>\n<li>xdsclient: fix race which can happen when multiple load reporting calls are made at the same time. (<a href=\"https://redirect.github.com/grpc/grpc-go/issues/5927\">#5927</a>)</li>\n<li>rls: fix a data race involving the LRU cache (<a href=\"https://redirect.github.com/grpc/grpc-go/issues/5925\">#5925</a>)</li>\n<li>xds: fix panic involving double close of channel in xDS transport (<a href=\"https://redirect.github.com/grpc/grpc-go/issues/5959\">#5959</a>)</li>\n<li>gcp/observability: update method name validation (<a href=\"https://redirect.github.com/grpc/grpc-go/issues/5951\">#5951</a>)</li>\n</ul>\n<h1>Documentation</h1>\n<ul>\n<li>credentials/oauth: mark <code>NewOauthAccess</code> as deprecated (<a href=\"https://redirect.github.com/grpc/grpc-go/issues/5882\">#5882</a>)\n<ul>\n<li>Special Thanks: <a href=\"https://github.com/buzzsurfr\"><code>@​buzzsurfr</code></a></li>\n</ul>\n</li>\n</ul>\n<h2>Release 1.52.3</h2>\n<h1>Bug Fixes</h1>\n<ul>\n<li>Fix user-agent version</li>\n</ul>\n<h2>Release 1.52.2</h2>\n<h1>Bug Fixes</h1>\n<ul>\n<li>xds: fix panic involving double close of channel in xDS transport (<a href=\"https://redirect.github.com/grpc/grpc-go/issues/5959\">#5959</a>)</li>\n</ul>\n<h2>Release 1.52.1</h2>\n<h1>Bug Fixes</h1>\n<ul>\n<li>grpclb: rename grpclbstate package back to state (<a href=\"https://redirect.github.com/grpc/grpc-go/issues/5963\">#5963</a>)</li>\n</ul>\n<h2>Release 1.52.0</h2>\n<h1>New Features</h1>\n<ul>\n<li>xdsclient: log node ID with verbosity INFO (<a href=\"https://redirect.github.com/grpc/grpc-go/issues/5860\">#5860</a>)</li>\n<li>ringhash: impose cap on <code>max_ring_size</code> to reduce possibility of OOMs (<a href=\"https://redirect.github.com/grpc/grpc-go/issues/5801\">#5801</a>)</li>\n</ul>\n<h1>Behavior Changes</h1>\n<!-- raw HTML omitted -->\n</blockquote>\n<p>... (truncated)</p>\n</details>\n<details>\n<summary>Commits</summary>\n<ul>\n<li><a href=\"https://github.com/grpc/grpc-go/commit/dba26e15a07f43875ccf806a2dd6cbcbc1c12eab\"><code>dba26e1</code></a> Change version to 1.53.0 (<a href=\"https://redirect.github.com/grpc/grpc-go/issues/5983\">#5983</a>)</li>\n<li><a href=\"https://github.com/grpc/grpc-go/commit/2a1e9348ff7b5d9f4b5039e84e6c9873b5b3e26e\"><code>2a1e934</code></a> server: after GracefulStop, ensure connections are closed when final RPC comp...</li>\n<li><a href=\"https://github.com/grpc/grpc-go/commit/e2d69aa076dd070e3668784c4dc8bcf7131b3f67\"><code>e2d69aa</code></a> tests: fix spelling of variable (<a href=\"https://redirect.github.com/grpc/grpc-go/issues/5966\">#5966</a>)</li>\n<li><a href=\"https://github.com/grpc/grpc-go/commit/a6376c9893f56fc3819bee9ef5d71f55cc2d38dd\"><code>a6376c9</code></a> xds/resolver: cleanup tests to use real xDS client 3/n (<a href=\"https://redirect.github.com/grpc/grpc-go/issues/5953\">#5953</a>)</li>\n<li><a href=\"https://github.com/grpc/grpc-go/commit/bf8fc46fa6eb913e4ed0f6dee6c6a7b75e85fbf0\"><code>bf8fc46</code></a> xds/resolver: cleanup tests to use real xDS client 5/n (<a href=\"https://redirect.github.com/grpc/grpc-go/issues/5955\">#5955</a>)</li>\n<li><a href=\"https://github.com/grpc/grpc-go/commit/3930549b38c0fc4cd94a95efccf7cef5f90515fd\"><code>3930549</code></a> resolver: replace resolver.Target.Endpoint field with Endpoint() method (<a href=\"https://redirect.github.com/grpc/grpc-go/issues/5852\">#5852</a>)</li>\n<li><a href=\"https://github.com/grpc/grpc-go/commit/894816c487f8dd48fc971c45a7c5baa4b86ef7de\"><code>894816c</code></a> grpclb: rename <code>grpclbstate</code> package back to <code>state</code> (<a href=\"https://redirect.github.com/grpc/grpc-go/issues/5962\">#5962</a>)</li>\n<li><a href=\"https://github.com/grpc/grpc-go/commit/e5a0237a46a5f95fa571624929be10c7afebb180\"><code>e5a0237</code></a> encoding: fix duplicate compressor names (<a href=\"https://redirect.github.com/grpc/grpc-go/issues/5958\">#5958</a>)</li>\n<li><a href=\"https://github.com/grpc/grpc-go/commit/4adb2a7a00d8b62df5ea34d520fe3ca13bffd31a\"><code>4adb2a7</code></a> xds/resolver: cleanup tests to use real xDS client 2/n (<a href=\"https://redirect.github.com/grpc/grpc-go/issues/5952\">#5952</a>)</li>\n<li><a href=\"https://github.com/grpc/grpc-go/commit/52a8392f374b8cd60e176b67925a7f8c1605d014\"><code>52a8392</code></a> gcp/observability: update method name validation (<a href=\"https://redirect.github.com/grpc/grpc-go/issues/5951\">#5951</a>)</li>\n<li>Additional commits viewable in <a href=\"https://github.com/grpc/grpc-go/compare/v1.51.0...v1.53.0\">compare view</a></li>\n</ul>\n</details>\n<br />\n\n\n[![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=google.golang.org/grpc&package-manager=go_modules&previous-version=1.51.0&new-version=1.53.0)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)\n\nDependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`.\n\n[//]: # (dependabot-automerge-start)\n[//]: # (dependabot-automerge-end)\n\n---\n\n<details>\n<summary>Dependabot commands and options</summary>\n<br />\n\nYou can trigger Dependabot actions by commenting on this PR:\n- `@dependabot rebase` will rebase this PR\n- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it\n- `@dependabot merge` will merge this PR after your CI passes on it\n- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it\n- `@dependabot cancel merge` will cancel a previously requested merge and block automerging\n- `@dependabot reopen` will reopen this PR if it is closed\n- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually\n- `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)\n- `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)\n- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)\nYou can disable automated security fix PRs for this repo from the [Security Alerts page](https://github.com/Azure/terraform-azurerm-compute/network/alerts).\n\n</details>\n\n---\n\nChoice A:\ntest/go.mod\n@@ -9,10 +9,10 @@ require (\n )\n \n require (\n-\tcloud.google.com/go v0.105.0 // indirect\n-\tcloud.google.com/go/compute v1.12.1 // indirect\n-\tcloud.google.com/go/compute/metadata v0.2.1 // indirect\n-\tcloud.google.com/go/iam v0.7.0 // indirect\n+\tcloud.google.com/go v0.107.0 // indirect\n+\tcloud.google.com/go/compute v1.15.1 // indirect\n+\tcloud.google.com/go/compute/metadata v0.2.3 // indirect\n+\tcloud.google.com/go/iam v0.8.0 // indirect\n \tcloud.google.com/go/storage v1.27.0 // indirect\n \tgithub.com/agext/levenshtein v1.2.3 // indirect\n \tgithub.com/ahmetb/go-linq/v3 v3.2.0 // indirect\n@@ -88,8 +88,8 @@ require (\n \tgolang.org/x/xerrors v0.0.0-20220907171357-04be3eba64a2 // indirect\n \tgoogle.golang.org/api v0.103.0 // indirect\n \tgoogle.golang.org/appengine v1.6.7 // indirect\n-\tgoogle.golang.org/genproto v0.0.0-20221201164419-0e50fba7f41c // indirect\n-\tgoogle.golang.org/grpc v1.51.0 // indirect\n+\tgoogle.golang.org/genproto v0.0.0-20230110181048-76db0878b65f // indirect\n+\tgoogle.golang.org/grpc v1.53.0 // indirect\n \tgoogle.golang.org/protobuf v1.28.1 // indirect\n \tgopkg.in/inf.v0 indirect\n-\tcloud.google.com/go/compute/metadata // indirect\n \tgopkg.in/yaml.v2 v2.4.0 // indirect\n---\n\n\n---\n\nChoice B:\ntest/go.mod\n@@ -9,10 +9,10 @@ require (\n )\n \n require (\n-\tcloud.google.com/go v0.105.0 // indirect\n-\tcloud.google.com/go/compute v1.12.1 // indirect\n-\tcloud.google.com/go/compute/metadata v0.2.1 // indirect\n-\tcloud.google.com/go/iam v0.7.0 // indirect\n+\tcloud.google.com/go v0.107.0 // indirect\n+\tcloud.google.com/go/compute v1.15.1 // indirect\n+\tcloud.google.com/go/compute/metadata v0.2.3 // indirect\n+\tcloud.google.com/go/iam v0.8.0 // indirect\n \tcloud.google.com/go/storage v1.27.0 // indirect\n \tgithub.com/agext/levenshtein v1.2.3 // indirect\n \tgithub.com/ahmetb/go-linq/v3 v3.2.0 // indirect\n@@ -88,8 +88,8 @@ require (\n \tgolang.org/x/xerrors v0.0.0-20220907171357-04be3eba64a2 // indirect\n \tgoogle.golang.org/api v0.103.0 // indirect\n \tgoogle.golang.org/appengine v1.6.7 // indirect\n-\tgoogle.golang.org/genproto v0.0.0-20221201164419-0e50fba7f41c // indirect\n-\tgoogle.golang.org/grpc v1.51.0 // indirect\n+\tgoogle.golang.org/genproto v0.0.0-20230110181048-76db0878b65f // indirect\n+\tgoogle.golang.org/grpc v1.53.0 // indirect\n \tgoogle.golang.org/protobuf v1.28.1 // indirect\n \tgopkg.in/inf.v0 v0.9.1 // indirect\n \tgopkg.in/yaml.v2 v2.4.0 // indirect\n---\n\n\n---\n\nChoice C:\ntest/go.mod\n@@ -9,10 +9,10 @@ require (\n )\n \n require (\n-\tcloud.google.com/go v0.105.0 // indirect\n-\tcloud.google.com/go/compute v1.12.1 // indirect\n-\tcloud.google.com/go/compute/metadata v0.2.1 // indirect\n-\tcloud.google.com/go/iam v0.7.0 // indirect\n+\tcloud.google.com/go v0.107.0 // indirect\n+\tcloud.google.com/go/compute \tcloud.google.com/go/storage // indirect\n+\tcloud.google.com/go/compute/metadata v0.2.3 // indirect\n+\tcloud.google.com/go/iam v0.8.0 // indirect\n \tcloud.google.com/go/storage v1.27.0 // indirect\n \tgithub.com/agext/levenshtein v1.2.3 // indirect\n \tgithub.com/ahmetb/go-linq/v3 v3.2.0 // indirect\n@@ -88,8 +88,8 @@ require (\n \tgolang.org/x/xerrors v0.0.0-20220907171357-04be3eba64a2 // indirect\n \tgoogle.golang.org/api v0.103.0 // indirect\n \tgoogle.golang.org/appengine v1.6.7 // indirect\n-\tgoogle.golang.org/genproto v0.0.0-20221201164419-0e50fba7f41c // indirect\n-\tgoogle.golang.org/grpc v1.51.0 // indirect\n+\tgoogle.golang.org/genproto v0.0.0-20230110181048-76db0878b65f // indirect\n+\tgoogle.golang.org/grpc v1.53.0 // indirect\n \tgoogle.golang.org/protobuf v1.28.1 // indirect\n \tgopkg.in/inf.v0 v0.9.1 // indirect\n \tgopkg.in/yaml.v2 v2.4.0 // indirect\n---\n\n\n---\n\nChoice D:\ntest/go.mod\n@@ -9,10 +9,10 @@ require (\n )\n \n require (\n-\tcloud.google.com/go v0.105.0 // indirect\n-\tcloud.google.com/go/compute v1.12.1 // indirect\n-\tcloud.google.com/go/compute/metadata v0.2.1 // indirect\n-\tcloud.google.com/go/iam v0.7.0 // indirect\n+\tcloud.google.com/go v0.107.0 // indirect\n+\tcloud.google.com/go/compute v1.15.1 // indirect\n+\tcloud.google.com/go/compute/metadata v0.2.3 // indirect\n+\tcloud.google.com/go/iam v0.8.0 // indirect\n \tcloud.google.com/go/storage v1.27.0 // indirect\n \tgithub.com/agext/levenshtein v1.2.3 // indirect\n \tgithub.com/ahmetb/go-linq/v3 v3.2.0 // indirect\n@@ -88,8 +88,8 @@ require (\n \tgolang.org/x/xerrors v0.0.0-20220907171357-04be3eba64a2 // indirect\n \tgoogle.golang.org/api v0.103.0 // indirect\n \tgoogle.golang.org/appengine indirect\n // indirect\n-\tgoogle.golang.org/genproto v0.0.0-20221201164419-0e50fba7f41c // indirect\n-\tgoogle.golang.org/grpc v1.51.0 // indirect\n+\tgoogle.golang.org/genproto v0.0.0-20230110181048-76db0878b65f // indirect\n+\tgoogle.golang.org/grpc v1.53.0 // indirect\n \tgoogle.golang.org/protobuf v1.28.1 // indirect\n \tgopkg.in/inf.v0 v0.9.1 // indirect\n \tgopkg.in/yaml.v2 v2.4.0 // indirect\n---\n\n\n---\n" } ]
B
[ { "role": "system", "content": "Choose the best Terraform patch (A/B/C/D) that implements the requested Azure Compute change safely. Only respond with a single uppercase letter." }, { "role": "user", "content": "Task Description:\nBumps [github.com/gruntwork-io/terratest](https://github.com/gruntwork-io/terratest) from 0.42.0 to 0.43.6.\n<details>\n<summary>Release notes</summary>\n<p><em>Sourced from <a href=\"https://github.com/gruntwork-io/terratest/releases\">github.com/gruntwork-io/terratest's releases</a>.</em></p>\n<blockquote>\n<h2>v0.43.6</h2>\n<!-- raw HTML omitted -->\n<h2>Modules affected</h2>\n<!-- raw HTML omitted -->\n<ul>\n<li><code>k8s</code></li>\n</ul>\n<!-- raw HTML omitted -->\n<h2>Description</h2>\n<!-- raw HTML omitted -->\n<ul>\n<li>Updated <code>k8s</code> module to support fetching of Kubernetes events</li>\n</ul>\n<!-- raw HTML omitted -->\n<h2>Special thanks</h2>\n<!-- raw HTML omitted -->\n<p>Special thanks to the following users for their contribution!</p>\n<ul>\n<li><a href=\"https://github.com/kaisoz\"><code>@​kaisoz</code></a></li>\n</ul>\n<!-- raw HTML omitted -->\n<h2>Related links</h2>\n<!-- raw HTML omitted -->\n<ul>\n<li><a href=\"https://redirect.github.com/gruntwork-io/terratest/pull/1297\">gruntwork-io/terratest#1297</a></li>\n</ul>\n<!-- raw HTML omitted -->\n</blockquote>\n<p>... (truncated)</p>\n</details>\n<details>\n<summary>Commits</summary>\n<ul>\n<li><a href=\"https://github.com/gruntwork-io/terratest/commit/1bd1d3912c01366c448ce7767c2821a3c004a476\"><code>1bd1d39</code></a> Merge pull request <a href=\"https://redirect.github.com/gruntwork-io/terratest/issues/1297\">#1297</a> from kaisoz/add-k8s-events-support</li>\n<li><a href=\"https://github.com/gruntwork-io/terratest/commit/c79a759b9277e075d63bcc28ecc7c08087b4da77\"><code>c79a759</code></a> Merge pull request <a href=\"https://redirect.github.com/gruntwork-io/terratest/issues/1317\">#1317</a> from gruntwork-io/bug/gcp-fixes</li>\n<li><a href=\"https://github.com/gruntwork-io/terratest/commit/61d998551ff486b9f1fa87d7604a66cc519d9fca\"><code>61d9985</code></a> Add tests for ListEvent function</li>\n<li><a href=\"https://github.com/gruntwork-io/terratest/commit/ed1e06325eed5c68b0c666af9a03580c232244f7\"><code>ed1e063</code></a> Fixed AWS provider to version 4.x</li>\n<li><a href=\"https://github.com/gruntwork-io/terratest/commit/64b4cee32c734b1d3272c7854173ab4ba0239841\"><code>64b4cee</code></a> Merge pull request <a href=\"https://redirect.github.com/gruntwork-io/terratest/issues/1314\">#1314</a> from gruntwork-io/bug/protobuf-upgrade-1313</li>\n<li><a href=\"https://github.com/gruntwork-io/terratest/commit/3e59462ab44f0dd25c77cd5e4c53c2fd41af9327\"><code>3e59462</code></a> Fix for terraform-aws-rds-example</li>\n<li><a href=\"https://github.com/gruntwork-io/terratest/commit/d23aae2b937dd9d2c2815baa922e894b31181eb0\"><code>d23aae2</code></a> GCP tests fixes</li>\n<li><a href=\"https://github.com/gruntwork-io/terratest/commit/1eb09ad4d19756142ae46125e684a51931742e9c\"><code>1eb09ad</code></a> Merge remote-tracking branch 'origin/master' into bug/protobuf-upgrade-1313</li>\n<li><a href=\"https://github.com/gruntwork-io/terratest/commit/4b0a4601439cc355f937d0cfb766c5d6855f1057\"><code>4b0a460</code></a> Merge pull request <a href=\"https://redirect.github.com/gruntwork-io/terratest/issues/1315\">#1315</a> from gruntwork-io/codeowners</li>\n<li><a href=\"https://github.com/gruntwork-io/terratest/commit/a717262fe7406d4f60a2fb61d178a475c81c02c5\"><code>a717262</code></a> Update CODEOWNERS</li>\n<li>Additional commits viewable in <a href=\"https://github.com/gruntwork-io/terratest/compare/v0.42.0...v0.43.6\">compare view</a></li>\n</ul>\n</details>\n<br />\n\n\n[![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=github.com/gruntwork-io/terratest&package-manager=go_modules&previous-version=0.42.0&new-version=0.43.6)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)\n\nDependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`.\n\n[//]: # (dependabot-automerge-start)\n[//]: # (dependabot-automerge-end)\n\n---\n\n<details>\n<summary>Dependabot commands and options</summary>\n<br />\n\nYou can trigger Dependabot actions by commenting on this PR:\n- `@dependabot rebase` will rebase this PR\n- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it\n- `@dependabot merge` will merge this PR after your CI passes on it\n- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it\n- `@dependabot cancel merge` will cancel a previously requested merge and block automerging\n- `@dependabot reopen` will reopen this PR if it is closed\n- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually\n- `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)\n- `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)\n- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)\n\n\n</details>\n\n---\n\nChoice A:\ntest/go.mod\n@@ -4,7 +4,7 @@ go 1.19\n \n require (\n \tgithub.com/Azure/terraform-module-test-helper v0.14.0\n-\tgithub.com/gruntwork-io/terratest v0.42.0\n+\tgithub.com/gruntwork-io/terratest v0.43.6\n \tgithub.com/stretchr/testify v1.8.3\n )\n \n@@ -22,21 +22,24 @@ require (\n \tgithub.com/boombuler/barcode v1.0.1-0.20190219062509-6c824513bacc // indirect\n \tgithub.com/cpuguy83/go-md2man/v2 v2.0.0 // indirect\n \tgithub.com/davecgh/go-spew v1.1.1 // indirect\n-\tgithub.com/docker/spdystream v0.0.0-20181023171402-6480d4af844c // indirect\n+\tgithub.com/emicklei/go-restful/v3 v3.9.0 // indirect\n \tgithub.com/go-errors/errors v1.0.2-0.20180813162953-d98b870cc4e0 // indirect\n-\tgithub.com/go-logr/logr v0.2.0 // indirect\n+\tgithub.com/go-logr/logr v1.2.3 // indirect\n+\tgithub.com/go-openapi/jsonpointer v0.19.6 // indirect\n+\tgithub.com/go-openapi/jsonreference v0.20.1 // indirect\n+\tgithub.com/go-openapi/swag v0.22.3 // indirect\n \tgithub.com/go-sql-driver/mysql v1.4.1 // indirect\n \tgithub.com/gogo/protobuf v1.3.2 // indirect\n \tgithub.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da // indirect\n-\tgithub.com/golang/protobuf v1.5.2 // indirect\n+\tgithub.com/golang/protobuf v1.5.3 // indirect\n+\tgithub.com/google/gnostic v0.5.7-v3refs // indirect\n \tgithub.com/google/go-cmp v0.5.9 // indirect\n \tgithub.com/google/go-github/v42 v42.0.0 // indirect\n \tgithub.com/google/go-querystring v1.1.0 // indirect\n \tgithub.com/google/gofuzz v1.1.0 // indirect\n \tgithub.com/google/uuid v1.3.0 // indirect\n \tgithub.com/googleapis/enterprise-certificate-proxy v0.2.0 // indirect\n \tgithub.com/googleapis/gax-go/v2 v2.7.0 // indirect\n-\tgithub.com/googleapis/gnostic v0.4.1 // indirect\n \tgithub.com/gruntwork-io/go-commons v0.8.0 // indirect\n \tgithub.com/hashicorp/errwrap v1.0.0 // indirect\n \tgithub.com/hashicorp/go-cleanhttp v0.5.2 // indirect\n@@ -52,17 +55,21 @@ require (\n \tgithub.com/imdario/mergo v0.3.11 // indirect\n \tgithub.com/jinzhu/copier v0.0.0-20190924061706-b57f9002281a // // \tgithub.com/jmespath/go-jmespath v0.4.0 // indirect\n-\tgithub.com/json-iterator/go v1.1.11 // indirect\n+\tgithub.com/josharian/intern v1.0.0 // indirect\n+\tgithub.com/json-iterator/go v1.1.12 // indirect\n \tgithub.com/klauspost/compress v1.15.11 // indirect\n \tgithub.com/lonegunmanb/tfmodredirector v0.1.0 // indirect\n \tgithub.com/magodo/hclgrep v0.0.0-20220303061548-1b2b24c7caf6 // indirect\n+\tgithub.com/mailru/easyjson v0.7.7 // indirect\n \tgithub.com/mattn/go-zglob v0.0.2-0.20190814121620-e3c945676326 // indirect\n \tgithub.com/minamijoyo/hcledit v0.2.6 // indirect\n \tgithub.com/mitchellh/go-homedir v1.1.0 // indirect\n \tgithub.com/mitchellh/go-testing-interface v1.14.1 // indirect\n \tgithub.com/mitchellh/go-wordwrap v1.0.1 // indirect\n+\tgithub.com/moby/spdystream v0.2.0 // indirect\n \tgithub.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect\n-\tgithub.com/modern-go/reflect2 v1.0.1 // indirect\n+\tgithub.com/modern-go/reflect2 v1.0.2 // indirect\n+\tgithub.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822 // indirect\n \tgithub.com/pmezard/go-difflib v1.0.0 // indirect\n \tgithub.com/pquerna/otp v1.2.0 // indirect\n \tgithub.com/r3labs/diff/v3 v3.0.1 // indirect\n@@ -84,21 +91,23 @@ require (\n \tgolang.org/x/sys v0.8.0 // indirect\n \tgolang.org/x/term v0.8.0 // indirect\n \tgolang.org/x/text v0.9.0 // indirect\n-\tgolang.org/x/time v0.0.0-20200630173020-3af7569d3a1e // indirect\n+\tgolang.org/x/time v0.0.0-20220210224613-90d013bbcef8 // indirect\n \tgolang.org/x/xerrors v0.0.0-20220907171357-04be3eba64a2 // indirect\n \tgoogle.golang.org/api v0.103.0 // indirect\n \tgoogle.golang.org/appengine v1.6.7 // indirect\n \tgoogle.golang.org/genproto v0.0.0-20221201164419-0e50fba7f41c // indirect\n \tgoogle.golang.org/grpc v1.51.0 // indirect\n-\tgoogle.golang.org/protobuf v1.28.1 // indirect\n+\tgoogle.golang.org/protobuf v1.31.0 // indirect\n \tgopkg.in/inf.v0 v0.9.1 // indirect\n \tgopkg.in/yaml.v2 v2.4.0 // indirect\n \tgopkg.in/yaml.v3 v3.0.1 // indirect\n-\tk8s.io/api v0.20.6 // indirect\n-\tk8s.io/apimachinery v0.20.6 // indirect\n-\tk8s.io/client-go v0.20.6 // indirect\n-\tk8s.io/klog/v2 v2.4.0 // indirect\n-\tk8s.io/utils v0.0.0-20201110183641-67b214c5f920 // indirect\n-\tsigs.k8s.io/structured-merge-diff/v4 v4.0.3 // indirect\n-\tsigs.k8s.io/yaml v1.2.0 // indirect\n+\tk8s.io/api v0.27.2 // indirect\n+\tk8s.io/apimachinery v0.27.2 // indirect\n+\tk8s.io/client-go v0.27.2 // indirect\n+\tk8s.io/klog/v2 v2.90.1 // indirect\n+\tk8s.io/kube-openapi v0.0.0-20230501164219-8b0f38b5fd1f // indirect\n+\tk8s.io/utils v0.0.0-20230209194617-a36077c30491 // indirect\n+\tsigs.k8s.io/json v0.0.0-20221116044647-bc3834ca7abd // indirect\n+\tsigs.k8s.io/structured-merge-diff/v4 v4.2.3 // indirect\n+\tsigs.k8s.io/yaml v1.3.0 // indirect\n )\n---\n\n\n---\n\nChoice B:\ntest/go.mod\n@@ -4,7 +4,7 @@ go 1.19\n \n require (\n \tgithub.com/Azure/terraform-module-test-helper v0.14.0\n-\tgithub.com/gruntwork-io/terratest v0.42.0\n+\tgithub.com/gruntwork-io/terratest v0.43.6\n \tgithub.com/stretchr/testify v1.8.3\n )\n \n@@ -22,21 +22,24 @@ require (\n \tgithub.com/boombuler/barcode v1.0.1-0.20190219062509-6c824513bacc // indirect\n \tgithub.com/cpuguy83/go-md2man/v2 v2.0.0 // indirect\n \tgithub.com/davecgh/go-spew v1.1.1 // indirect\n-\tgithub.com/docker/spdystream v0.0.0-20181023171402-6480d4af844c // indirect\n+\tgithub.com/emicklei/go-restful/v3 v3.9.0 // indirect\n \tgithub.com/go-errors/errors v1.0.2-0.20180813162953-d98b870cc4e0 // indirect\n-\tgithub.com/go-logr/logr v0.2.0 // indirect\n+\tgithub.com/go-logr/logr v1.2.3 // indirect\n+\tgithub.com/go-openapi/jsonpointer v0.19.6 // indirect\n+\tgithub.com/go-openapi/jsonreference v0.20.1 // indirect\n+\tgithub.com/go-openapi/swag v0.22.3 // indirect\n \tgithub.com/go-sql-driver/mysql v1.4.1 // indirect\n \tgithub.com/gogo/protobuf v1.3.2 // indirect\n \tgithub.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da // indirect\n-\tgithub.com/golang/protobuf v1.5.2 // indirect\n+\tgithub.com/golang/protobuf v1.5.3 // indirect\n+\tgithub.com/google/gnostic v0.5.7-v3refs // indirect\n \tgithub.com/google/go-cmp v0.5.9 // indirect\n \tgithub.com/google/go-github/v42 v42.0.0 // indirect\n \tgithub.com/google/go-querystring v1.1.0 // indirect\n \tgithub.com/google/gofuzz v1.1.0 // indirect\n \tgithub.com/google/uuid v1.3.0 // indirect\n \tgithub.com/googleapis/enterprise-certificate-proxy v0.2.0 // indirect\n \tgithub.com/googleapis/gax-go/v2 v2.7.0 // indirect\n-\tgithub.com/googleapis/gnostic v0.4.1 // indirect\n \tgithub.com/gruntwork-io/go-commons v0.8.0 // indirect\n \tgithub.com/hashicorp/errwrap v1.0.0 // indirect\n \tgithub.com/hashicorp/go-cleanhttp v0.5.2 // indirect\n@@ -52,17 +55,21 @@ require (\n \tgithub.com/imdario/mergo v0.3.11 // indirect\n \tgithub.com/jinzhu/copier v0.0.0-20190924061706-b57f9002281a // indirect\n \tgithub.com/jmespath/go-jmespath v0.4.0 // indirect\n-\tgithub.com/json-iterator/go v1.1.11 // indirect\n+\tgithub.com/josharian/intern v1.0.0 // indirect\n+\tgithub.com/json-iterator/go v1.1.12 // indirect\n \tgithub.com/klauspost/compress v1.15.11 // indirect\n \tgithub.com/lonegunmanb/tfmodredirector v0.1.0 // indirect\n \tgithub.com/magodo/hclgrep v0.0.0-20220303061548-1b2b24c7caf6 // indirect\n+\tgithub.com/mailru/easyjson v0.7.7 // indirect\n \tgithub.com/mattn/go-zglob v0.0.2-0.20190814121620-e3c945676326 // indirect\n \tgithub.com/minamijoyo/hcledit v0.2.6 // indirect\n \tgithub.com/mitchellh/go-homedir v1.1.0 // indirect\n \tgithub.com/mitchellh/go-testing-interface v1.14.1 // indirect\n \tgithub.com/mitchellh/go-wordwrap v1.0.1 // indirect\n+\tgithub.com/moby/spdystream v0.2.0 // indirect\n \tgithub.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect\n-\tgithub.com/modern-go/reflect2 v1.0.1 // indirect\n+\tgithub.com/modern-go/reflect2 v1.0.2 // indirect\n+\tgithub.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822 // indirect\n \tgithub.com/pmezard/go-difflib v1.0.0 // indirect\n \tgithub.com/pquerna/otp v1.2.0 // indirect\n \tgithub.com/r3labs/diff/v3 v3.0.1 // indirect\n@@ -84,21 +91,23 @@ require (\n \tgolang.org/x/sys v0.8.0 // indirect\n \tgolang.org/x/term v0.8.0 // indirect\n \tgolang.org/x/text v0.9.0 // indirect\n-\tgolang.org/x/time v0.0.0-20200630173020-3af7569d3a1e // indirect\n+\tgolang.org/x/time v0.0.0-20220210224613-90d013bbcef8 // indirect\n \tgolang.org/x/xerrors v0.0.0-20220907171357-04be3eba64a2 // indirect\n \tgoogle.golang.org/api v0.103.0 // indirect\n \tgoogle.golang.org/appengine v1.6.7 // indirect\n \tgoogle.golang.org/genproto v0.0.0-20221201164419-0e50fba7f41c // indirect\n \tgoogle.golang.org/grpc v1.51.0 // indirect\n-\tgoogle.golang.org/protobuf v1.28.1 // indirect\n+\tgoogle.golang.org/protobuf v1.31.0 // indirect\n \tgopkg.in/inf.v0 v0.9.1 // indirect\n \tgopkg.in/yaml.v2 v2.4.0 // indirect\n \tgopkg.in/yaml.v3 v3.0.1 // indirect\n-\tk8s.io/api v0.20.6 // indirect\n-\tk8s.io/apimachinery v0.20.6 // indirect\n-\tk8s.io/client-go v0.20.6 // indirect\n-\tk8s.io/klog/v2 v2.4.0 // indirect\n-\tk8s.io/utils v0.0.0-20201110183641-67b214c5f920 // indirect\n-\tsigs.k8s.io/structured-merge-diff/v4 v4.0.3 // indirect\n-\tsigs.k8s.io/yaml v1.2.0 // indirect\n+\tk8s.io/api v0.27.2 // indirect\n+\tk8s.io/apimachinery v0.27.2 // indirect\n+\tk8s.io/client-go v0.27.2 // indirect\n+\tk8s.io/klog/v2 v2.90.1 // indirect\n+\tk8s.io/kube-openapi v0.0.0-20230501164219-8b0f38b5fd1f // indirect\n+\tk8s.io/utils v0.0.0-20230209194617-a36077c30491 // indirect\n+\tsigs.k8s.io/json v0.0.0-20221116044647-bc3834ca7abd // indirect\n+\tsigs.k8s.io/structured-merge-diff/v4 v4.2.3 // indirect\n+\tsigs.k8s.io/yaml v1.3.0 // indirect\n )\n---\n\n\n---\n\nChoice C:\ntest/go.mod\n@@ -4,7 +4,7 @@ go 1.19\n \n require (\n \tgithub.com/Azure/terraform-module-test-helper v0.14.0\n-\tgithub.com/gruntwork-io/terratest v0.42.0\n+\tgithub.com/gruntwork-io/terratest v0.43.6\n \tgithub.com/stretchr/testify v1.8.3\n )\n \n@@ -22,21 +22,24 @@ require (\n \tgithub.com/boombuler/barcode v1.0.1-0.20190219062509-6c824513bacc // indirect\n \tgithub.com/cpuguy83/go-md2man/v2 v2.0.0 // indirect\n \tgithub.com/davecgh/go-spew v1.1.1 // indirect\n-\tgithub.com/docker/spdystream v0.0.0-20181023171402-6480d4af844c // indirect\n+\tgithub.com/emicklei/go-restful/v3 v3.9.0 // indirect\n \tgithub.com/go-errors/errors v1.0.2-0.20180813162953-d98b870cc4e0 // indirect\n-\tgithub.com/go-logr/logr v0.2.0 // indirect\n+\tgithub.com/go-logr/logr v1.2.3 // indirect\n+\tgithub.com/go-openapi/jsonpointer v0.19.6 // indirect\n+\tgithub.com/go-openapi/jsonreference v0.20.1 // indirect\n+\tgithub.com/go-openapi/swag v0.22.3 // indirect\n \tgithub.com/go-sql-driver/mysql v1.4.1 // indirect\n \tgithub.com/gogo/protobuf v1.3.2 // indirect\n \tgithub.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da // indirect\n-\tgithub.com/golang/protobuf v1.5.2 // indirect\n+\tgithub.com/golang/protobuf v1.5.3 // indirect\n+\tgithub.com/google/gnostic v0.5.7-v3refs // indirect\n \tgithub.com/google/go-cmp v0.5.9 // indirect\n \tgithub.com/google/go-github/v42 v42.0.0 // indirect\n \tgithub.com/google/go-querystring v1.1.0 // indirect\n \tgithub.com/google/gofuzz v1.1.0 // indirect\n \tgithub.com/google/uuid v1.3.0 // indirect\n \tgithub.com/googleapis/enterprise-certificate-proxy v0.2.0 // indirect\n \tgithub.com/googleapis/gax-go/v2 v2.7.0 // indirect\n-\tgithub.com/googleapis/gnostic v0.4.1 // indirect\n \tgithub.com/gruntwork-io/go-commons v0.8.0 // indirect\n \tgithub.com/hashicorp/errwrap v1.0.0 // indirect\n \tgithub.com/hashicorp/go-cleanhttp v0.5.2 // indirect\n@@ -52,17 +55,21 @@ require (\n \tgithub.com/imdario/mergo v0.3.11 // indirect\n \tgithub.com/jinzhu/copier v0.0.0-20190924061706-b57f9002281a // indirect\n \tgithub.com/jmespath/go-jmespath v0.4.0 // indirect\n-\tgithub.com/json-iterator/go v1.1.11 // indirect\n+\tgithub.com/josharian/intern v1.0.0 // indirect\n+\tgithub.com/json-iterator/go v1.1.12 // indirect\n \tgithub.com/klauspost/compress v1.15.11 // indirect\n \tgithub.com/lonegunmanb/tfmodredirector v0.1.0 // indirect\n \tgithub.com/magodo/hclgrep v0.0.0-20220303061548-1b2b24c7caf6 // indirect\n+\tgithub.com/mailru/easyjson v0.7.7 // indirect\n \tgithub.com/mattn/go-zglob v0.0.2-0.20190814121620-e3c945676326 // indirect\n \tgithub.com/minamijoyo/hcledit v0.2.6 // indirect\n \tgithub.com/mitchellh/go-homedir v1.1.0 // indirect\n \tgithub.com/mitchellh/go-testing-interface v1.14.1 // indirect\n \tgithub.com/mitchellh/go-wordwrap v1.0.1 // indirect\n+\tgithub.com/moby/spdystream v0.2.0 // indirect\n \tgithub.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect\n-\tgithub.com/modern-go/reflect2 v1.0.1 // indirect\n+\tgithub.com/modern-go/reflect2 v1.0.2 // indirect\n+\tgithub.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822 // indirect\n \tgithub.com/pmezard/go-difflib v1.0.0 // indirect\n \tgithub.com/pquerna/otp v1.2.0 // indirect\n \tgithub.com/r3labs/diff/v3 v3.0.1 // indirect\n@@ -84,21 +91,23 @@ require (\n \tgolang.org/x/sys v0.8.0 // indirect\n \tgolang.org/x/term v0.8.0 // indirect\n \tgolang.org/x/text v0.9.0 // indirect\n-\tgolang.org/x/time v0.0.0-20200630173020-3af7569d3a1e // indirect\n+\tgolang.org/x/time v0.0.0-20220210224613-90d013bbcef8 // indirect\n \tgolang.org/x/xerrors v0.0.0-20220907171357-04be3eba64a2 // indirect\n \tgoogle.golang.org/api v0.103.0 // indirect\n \tgoogle.golang.org/appengine v1.6.7 // indirect\n \tgoogle.golang.org/genproto v0.0.0-20221201164419-0e50fba7f41c // indirect\n \tgoogle.golang.org/grpc v1.51.0 // indirect\n-\tgoogle.golang.org/protobuf v1.28.1 // indirect\n+\tgoogle.golang.org/protobuf v1.31.0 // indirect\n \tgopkg.in/inf.v0 v0.9.1 // indirect\n \tgopkg.in/yaml.v2 v2.4.0 // indirect\n \tgopkg.in/yaml.v3 v3.0.1 // indirect\n-\tk8s.io/api v0.20.6 // indirect\n-\tk8s.io/apimachinery v0.20.6 // indirect\n-\tk8s.io/client-go v0.20.6 // indirect\n-\tk8s.io/klog/v2 v2.4.0 // indirect\n-\tk8s.io/utils v0.0.0-20201110183641-67b214c5f920 // indirect\n-\tsigs.k8s.io/structured-merge-diff/v4 v4.0.3 // indirect\n-\tsigs.k8s.io/yaml v1.2.0 // indirect\n+\tk8s.io/api v0.27.2 // indirect\n+\tk8s.io/apimachinery v0.27.2 // indirect\n+\tk8s.io/client-go v0.27.2 // indirect\n+\tk8s.io/klog/v2 v2.90.1 // indirect\n+\tk8s.io/kube-openapi v0.0.0-20230501164219-8b0f38b5fd1f // indirect\n+\tk8s.io/utils v0.0.0-20230209194617-a36077c30491 // indirect\n+\tsigs.k8s.io/json v0.0.0-20221116044647-bc3834ca7abd // indirect\n+\tsigs.k8s.io/structured-merge-diff/v4 v4.2.3 // indirect\n+\tsigs.k8s.io/yaml v1.3.0 // indirect\n )\n---\n\n\n---\n\nChoice D:\ntest/go.mod\n@@ -4,7 +4,7 @@ go 1.19\n \n require (\n \tgithub.com/Azure/terraform-module-test-helper v0.14.0\n-\tgithub.com/gruntwork-io/terratest v0.42.0\n+\tgithub.com/gruntwork-io/terratest v0.43.6\n \tgithub.com/stretchr/testify v1.8.3\n )\n \n@@ -22,21 +22,24 @@ require (\n \tgithub.com/boombuler/barcode v1.0.1-0.20190219062509-6c824513bacc // indirect\n \tgithub.com/cpuguy83/go-md2man/v2 v2.0.0 // indirect\n \tgithub.com/davecgh/go-spew v1.1.1 // indirect\n-\tgithub.com/docker/spdystream v0.0.0-20181023171402-6480d4af844c // indirect\n+\tgithub.com/emicklei/go-restful/v3 v3.9.0 // indirect\n \tgithub.com/go-errors/errors v1.0.2-0.20180813162953-d98b870cc4e0 // indirect\n-\tgithub.com/go-logr/logr v0.2.0 // indirect\n+\tgithub.com/go-logr/logr v1.2.3 // indirect\n+\tgithub.com/go-openapi/jsonpointer v0.19.6 // indirect\n+\tgithub.com/go-openapi/jsonreference v0.20.1 // indirect\n+\tgithub.com/go-openapi/swag v0.22.3 // indirect\n \tgithub.com/go-sql-driver/mysql v1.4.1 // indirect\n \tgithub.com/gogo/protobuf v1.3.2 // indirect\n \tgithub.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da // indirect\n-\tgithub.com/golang/protobuf v1.5.2 // indirect\n+\tgithub.com/golang/protobuf v1.5.3 // indirect\n+\tgithub.com/google/gnostic v0.5.7-v3refs // indirect\n \tgithub.com/google/go-cmp v0.5.9 // indirect\n \tgithub.com/google/go-github/v42 v42.0.0 // indirect\n \tgithub.com/google/go-querystring v1.1.0 // indirect\n \tgithub.com/google/gofuzz v1.1.0 // indirect\n \tgithub.com/google/uuid v1.3.0 // indirect\n \tgithub.com/googleapis/enterprise-certificate-proxy v0.2.0 // indirect\n \tgithub.com/googleapis/gax-go/v2 v2.7.0 // indirect\n-\tgithub.com/googleapis/gnostic v0.4.1 // indirect\n \tgithub.com/gruntwork-io/go-commons v0.8.0 // indirect\n \tgithub.com/hashicorp/errwrap v1.0.0 // indirect\n \tgithub.com/hashicorp/go-cleanhttp v0.5.2 // indirect\n@@ -52,17 +55,21 @@ require (\n \tgithub.com/imdario/mergo v0.3.11 // indirect\n \tgithub.com/jinzhu/copier v0.0.0-20190924061706-b57f9002281a // indirect\n \tgithub.com/jmespath/go-jmespath v0.4.0 // indirect\n-\tgithub.com/json-iterator/go v1.1.11 // indirect\n+\tgithub.com/josharian/intern v1.4.1 // indirect\n+\tgithub.com/json-iterator/go v1.1.12 // indirect\n \tgithub.com/klauspost/compress v1.15.11 // indirect\n \tgithub.com/lonegunmanb/tfmodredirector v0.1.0 // indirect\n \tgithub.com/magodo/hclgrep v0.0.0-20220303061548-1b2b24c7caf6 // indirect\n+\tgithub.com/mailru/easyjson v0.7.7 // indirect\n \tgithub.com/mattn/go-zglob v0.0.2-0.20190814121620-e3c945676326 // indirect\n \tgithub.com/minamijoyo/hcledit v0.2.6 // indirect\n \tgithub.com/mitchellh/go-homedir v1.1.0 // indirect\n \tgithub.com/mitchellh/go-testing-interface v1.14.1 // indirect\n \tgithub.com/mitchellh/go-wordwrap v1.0.1 // indirect\n+\tgithub.com/moby/spdystream v0.2.0 // indirect\n \tgithub.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect\n-\tgithub.com/modern-go/reflect2 v1.0.1 // indirect\n+\tgithub.com/modern-go/reflect2 v1.0.2 // indirect\n+\tgithub.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822 // indirect\n \tgithub.com/pmezard/go-difflib v1.0.0 // indirect\n \tgithub.com/pquerna/otp v1.2.0 // indirect\n \tgithub.com/r3labs/diff/v3 v3.0.1 // indirect\n@@ -84,21 +91,23 @@ require (\n \tgolang.org/x/sys v0.8.0 // indirect\n \tgolang.org/x/term v0.8.0 // indirect\n \tgolang.org/x/text v0.9.0 // indirect\n-\tgolang.org/x/time v0.0.0-20200630173020-3af7569d3a1e // indirect\n+\tgolang.org/x/time v0.0.0-20220210224613-90d013bbcef8 // indirect\n \tgolang.org/x/xerrors v0.0.0-20220907171357-04be3eba64a2 // indirect\n \tgoogle.golang.org/api v0.103.0 // indirect\n \tgoogle.golang.org/appengine v1.6.7 // indirect\n \tgoogle.golang.org/genproto v0.0.0-20221201164419-0e50fba7f41c // indirect\n \tgoogle.golang.org/grpc v1.51.0 // indirect\n-\tgoogle.golang.org/protobuf v1.28.1 // indirect\n+\tgoogle.golang.org/protobuf v1.31.0 // indirect\n \tgopkg.in/inf.v0 v0.9.1 // indirect\n \tgopkg.in/yaml.v2 v2.4.0 // indirect\n \tgopkg.in/yaml.v3 v3.0.1 // indirect\n-\tk8s.io/api v0.20.6 // indirect\n-\tk8s.io/apimachinery v0.20.6 // indirect\n-\tk8s.io/client-go v0.20.6 // indirect\n-\tk8s.io/klog/v2 v2.4.0 // indirect\n-\tk8s.io/utils v0.0.0-20201110183641-67b214c5f920 // indirect\n-\tsigs.k8s.io/structured-merge-diff/v4 v4.0.3 // indirect\n-\tsigs.k8s.io/yaml v1.2.0 // indirect\n+\tk8s.io/api v0.27.2 // indirect\n+\tk8s.io/apimachinery v0.27.2 // indirect\n+\tk8s.io/client-go v0.27.2 // indirect\n+\tk8s.io/klog/v2 v2.90.1 // indirect\n+\tk8s.io/kube-openapi v0.0.0-20230501164219-8b0f38b5fd1f // indirect\n+\tk8s.io/utils v0.0.0-20230209194617-a36077c30491 // indirect\n+\tsigs.k8s.io/json v0.0.0-20221116044647-bc3834ca7abd // indirect\n+\tsigs.k8s.io/structured-merge-diff/v4 v4.2.3 // indirect\n+\tsigs.k8s.io/yaml v1.3.0 // indirect\n )\n---\n\n\n---\n" } ]
B
[ { "role": "system", "content": "Choose the best Terraform patch (A/B/C/D) that implements the requested Azure Compute change safely. Only respond with a single uppercase letter." }, { "role": "user", "content": "Task Description:\nBumps [github.com/gruntwork-io/terratest](https://github.com/gruntwork-io/terratest) from 0.42.0 to 0.43.4.\n<details>\n<summary>Release notes</summary>\n<p><em>Sourced from <a href=\"https://github.com/gruntwork-io/terratest/releases\">github.com/gruntwork-io/terratest's releases</a>.</em></p>\n<blockquote>\n<h2>v0.43.4</h2>\n<h2>Modules affected</h2>\n<!-- raw HTML omitted -->\n<ul>\n<li><code>azure</code></li>\n</ul>\n<h2>Description</h2>\n<ul>\n<li>Update Azure example to move the <code>azurerm</code> provider version constraint into the <code>required_provider</code>.</li>\n</ul>\n<h2>Special thanks</h2>\n<!-- raw HTML omitted -->\n<p>Special thanks to the following users for their contribution!</p>\n<ul>\n<li><a href=\"https://github.com/HadwaAbdelhalem\"><code>@​HadwaAbdelhalem</code></a></li>\n</ul>\n<!-- raw HTML omitted -->\n<h2>Related links</h2>\n<!-- raw HTML omitted -->\n<ul>\n<li><a href=\"https://redirect.github.com/gruntwork-io/terratest/pull/1312\">gruntwork-io/terratest#1312</a></li>\n</ul>\n<!-- raw HTML omitted -->\n<h2>v0.43.3</h2>\n<h2>Modules affected</h2>\n<!-- raw HTML omitted -->\n</blockquote>\n<p>... (truncated)</p>\n</details>\n<details>\n<summary>Commits</summary>\n<ul>\n<li><a href=\"https://github.com/gruntwork-io/terratest/commit/a86c8a5fa2f164ab564afb783cd24356f99338cf\"><code>a86c8a5</code></a> Merge pull request <a href=\"https://redirect.github.com/gruntwork-io/terratest/issues/1312\">#1312</a> from HadwaAbdelhalem/update_azure_modules_provider</li>\n<li><a href=\"https://github.com/gruntwork-io/terratest/commit/7e2df9ff2a23a192c7bf5c1fd549ac77257b40cf\"><code>7e2df9f</code></a> move the azurerm provider version constraint into the required_providers block</li>\n<li><a href=\"https://github.com/gruntwork-io/terratest/commit/b8689cdaceb2cbdcbfa9e95e251fbd71e76c186b\"><code>b8689cd</code></a> Merge pull request <a href=\"https://redirect.github.com/gruntwork-io/terratest/issues/1306\">#1306</a> from sweanan/add-datafactory-terratest-module</li>\n<li><a href=\"https://github.com/gruntwork-io/terratest/commit/b7e102202ec439a40da9c133b24a457badcaf82e\"><code>b7e1022</code></a> update the location for synapse</li>\n<li><a href=\"https://github.com/gruntwork-io/terratest/commit/00d56175c15e1794d8ae40afad4e32480b39312d\"><code>00d5617</code></a> added build tags</li>\n<li><a href=\"https://github.com/gruntwork-io/terratest/commit/0e7b26230f62bd44d03392fbbfa18d11bea27dbf\"><code>0e7b262</code></a> Merge branch 'master' into add-datafactory-terratest-module</li>\n<li><a href=\"https://github.com/gruntwork-io/terratest/commit/e54e4f01e93b93c076cb34ca8adb78489c8c3fd1\"><code>e54e4f0</code></a> Merge pull request <a href=\"https://redirect.github.com/gruntwork-io/terratest/issues/1303\">#1303</a> from sweanan/add-synapse-terratest-module</li>\n<li><a href=\"https://github.com/gruntwork-io/terratest/commit/6308579b0a8b845f031a3067a52cd3e955f957f8\"><code>6308579</code></a> Merge pull request <a href=\"https://redirect.github.com/gruntwork-io/terratest/issues/1304\">#1304</a> from HadwaAbdelhalem/update_azure_workflow</li>\n<li><a href=\"https://github.com/gruntwork-io/terratest/commit/4e21d6a2dde27e2a0c84a1cef434bc113b75a17f\"><code>4e21d6a</code></a> move the data factory exists upfront</li>\n<li><a href=\"https://github.com/gruntwork-io/terratest/commit/59d37493382d84f72894e459c60d66842f83c584\"><code>59d3749</code></a> added datafactoryExists helper function</li>\n<li>Additional commits viewable in <a href=\"https://github.com/gruntwork-io/terratest/compare/v0.42.0...v0.43.4\">compare view</a></li>\n</ul>\n</details>\n<br />\n\n\n[![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=github.com/gruntwork-io/terratest&package-manager=go_modules&previous-version=0.42.0&new-version=0.43.4)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)\n\nDependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`.\n\n[//]: # (dependabot-automerge-start)\n[//]: # (dependabot-automerge-end)\n\n---\n\n<details>\n<summary>Dependabot commands and options</summary>\n<br />\n\nYou can trigger Dependabot actions by commenting on this PR:\n- `@dependabot rebase` will rebase this PR\n- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it\n- `@dependabot merge` will merge this PR after your CI passes on it\n- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it\n- `@dependabot cancel merge` will cancel a previously requested merge and block automerging\n- `@dependabot reopen` will reopen this PR if it is closed\n- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually\n- `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)\n- `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)\n- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)\n\n\n</details>\n\n---\n\nChoice A:\ntest/go.mod\n@@ -4,7 +4,7 @@ go 1.19\n \n require (\n \tgithub.com/Azure/terraform-module-test-helper v0.14.0\n-\tgithub.com/gruntwork-io/terratest v0.42.0\n+\tgithub.com/gruntwork-io/terratest v0.43.4\n \tgithub.com/stretchr/testify v1.8.3\n )\n \n@@ -22,21 +22,24 @@ require (\n \tgithub.com/boombuler/barcode v1.0.1-0.20190219062509-6c824513bacc // indirect\n \tgithub.com/cpuguy83/go-md2man/v2 v2.0.0 // indirect\n \tgithub.com/davecgh/go-spew v1.1.1 // indirect\n-\tgithub.com/docker/spdystream v0.0.0-20181023171402-6480d4af844c // indirect\n+\tgithub.com/emicklei/go-restful/v3 v3.9.0 // indirect\n \tgithub.com/go-errors/errors v1.0.2-0.20180813162953-d98b870cc4e0 // indirect\n-\tgithub.com/go-logr/logr v0.2.0 // indirect\n+\tgithub.com/go-logr/logr v1.2.3 // indirect\n+\tgithub.com/go-openapi/jsonpointer v0.19.6 // indirect\n+\tgithub.com/go-openapi/jsonreference v0.20.1 // indirect\n+\tgithub.com/go-openapi/swag v0.22.3 // indirect\n \tgithub.com/go-sql-driver/mysql v1.4.1 // indirect\n \tgithub.com/gogo/protobuf v1.3.2 // indirect\n \tgithub.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da // indirect\n-\tgithub.com/golang/protobuf v1.5.2 // indirect\n+\tgithub.com/golang/protobuf v1.5.3 // indirect\n+\tgithub.com/google/gnostic v0.5.7-v3refs // indirect\n \tgithub.com/google/go-cmp v0.5.9 // indirect\n \tgithub.com/google/go-github/v42 v42.0.0 // indirect\n \tgithub.com/google/go-querystring v1.1.0 // indirect\n \tgithub.com/google/gofuzz v1.1.0 // indirect\n \tgithub.com/google/uuid v1.3.0 // indirect\n \tgithub.com/googleapis/enterprise-certificate-proxy v0.2.0 // indirect\n \tgithub.com/googleapis/gax-go/v2 v2.7.0 // indirect\n-\tgithub.com/googleapis/gnostic v0.4.1 // indirect\n \tgithub.com/gruntwork-io/go-commons v0.8.0 // indirect\n \tgithub.com/hashicorp/errwrap v1.0.0 // indirect\n \tgithub.com/hashicorp/go-cleanhttp v0.5.2 // indirect\n@@ -52,17 +55,21 @@ require (\n \tgithub.com/imdario/mergo v0.3.11 // indirect\n \tgithub.com/jinzhu/copier v0.0.0-20190924061706-b57f9002281a // indirect\n \tgithub.com/jmespath/go-jmespath v0.4.0 // indirect\n-\tgithub.com/json-iterator/go v1.1.11 // indirect\n+\tgithub.com/josharian/intern v1.0.0 // indirect\n+\tgithub.com/json-iterator/go v1.1.12 // indirect\n \tgithub.com/klauspost/compress v1.15.11 // indirect\n \tgithub.com/lonegunmanb/tfmodredirector v0.1.0 // indirect\n \tgithub.com/magodo/hclgrep v0.0.0-20220303061548-1b2b24c7caf6 // // v0.7.7 // indirect\n \tgithub.com/mattn/go-zglob v0.0.2-0.20190814121620-e3c945676326 // indirect\n \tgithub.com/minamijoyo/hcledit v0.2.6 // indirect\n \tgithub.com/mitchellh/go-homedir v1.1.0 // indirect\n \tgithub.com/mitchellh/go-testing-interface v1.14.1 // indirect\n \tgithub.com/mitchellh/go-wordwrap v1.0.1 // indirect\n+\tgithub.com/moby/spdystream v0.2.0 // indirect\n \tgithub.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect\n-\tgithub.com/modern-go/reflect2 v1.0.1 // indirect\n+\tgithub.com/modern-go/reflect2 v1.0.2 // indirect\n+\tgithub.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822 // indirect\n \tgithub.com/pmezard/go-difflib v1.0.0 // indirect\n \tgithub.com/pquerna/otp v1.2.0 // indirect\n \tgithub.com/r3labs/diff/v3 v3.0.1 // indirect\n@@ -84,7 +91,7 @@ require (\n \tgolang.org/x/sys v0.8.0 // indirect\n \tgolang.org/x/term v0.8.0 // indirect\n \tgolang.org/x/text v0.9.0 // indirect\n-\tgolang.org/x/time v0.0.0-20200630173020-3af7569d3a1e // indirect\n+\tgolang.org/x/time v0.0.0-20220210224613-90d013bbcef8 // indirect\n \tgolang.org/x/xerrors v0.0.0-20220907171357-04be3eba64a2 // indirect\n \tgoogle.golang.org/api v0.103.0 // indirect\n \tgoogle.golang.org/appengine v1.6.7 // indirect\n@@ -94,11 +101,13 @@ require (\n \tgopkg.in/inf.v0 v0.9.1 // indirect\n \tgopkg.in/yaml.v2 v2.4.0 // indirect\n \tgopkg.in/yaml.v3 v3.0.1 // indirect\n-\tk8s.io/api v0.20.6 // indirect\n-\tk8s.io/apimachinery v0.20.6 // indirect\n-\tk8s.io/client-go v0.20.6 // indirect\n-\tk8s.io/klog/v2 v2.4.0 // indirect\n-\tk8s.io/utils v0.0.0-20201110183641-67b214c5f920 // indirect\n-\tsigs.k8s.io/structured-merge-diff/v4 v4.0.3 // indirect\n-\tsigs.k8s.io/yaml v1.2.0 // indirect\n+\tk8s.io/api v0.27.2 // indirect\n+\tk8s.io/apimachinery v0.27.2 // indirect\n+\tk8s.io/client-go v0.27.2 // indirect\n+\tk8s.io/klog/v2 v2.90.1 // indirect\n+\tk8s.io/kube-openapi v0.0.0-20230501164219-8b0f38b5fd1f // indirect\n+\tk8s.io/utils v0.0.0-20230209194617-a36077c30491 // indirect\n+\tsigs.k8s.io/json v0.0.0-20221116044647-bc3834ca7abd // indirect\n+\tsigs.k8s.io/structured-merge-diff/v4 v4.2.3 // indirect\n+\tsigs.k8s.io/yaml v1.3.0 // indirect\n )\n---\n\n\n---\n\nChoice B:\ntest/go.mod\n@@ -4,7 +4,7 @@ go 1.19\n \n require (\n \tgithub.com/Azure/terraform-module-test-helper v0.14.0\n-\tgithub.com/gruntwork-io/terratest v0.42.0\n+\tgithub.com/gruntwork-io/terratest v0.43.4\n \tgithub.com/stretchr/testify v1.8.3\n )\n \n@@ -22,21 +22,24 @@ require (\n \tgithub.com/boombuler/barcode v1.0.1-0.20190219062509-6c824513bacc // indirect\n \tgithub.com/cpuguy83/go-md2man/v2 v2.0.0 // indirect\n \tgithub.com/davecgh/go-spew v1.1.1 // indirect\n-\tgithub.com/docker/spdystream v0.0.0-20181023171402-6480d4af844c // indirect\n+\tgithub.com/emicklei/go-restful/v3 v3.9.0 // indirect\n \tgithub.com/go-errors/errors v1.0.2-0.20180813162953-d98b870cc4e0 // indirect\n-\tgithub.com/go-logr/logr indirect\n+\tgithub.com/josharian/intern // indirect\n+\tgithub.com/go-logr/logr v1.2.3 // indirect\n+\tgithub.com/go-openapi/jsonpointer v0.19.6 // indirect\n+\tgithub.com/go-openapi/jsonreference v0.20.1 // indirect\n+\tgithub.com/go-openapi/swag v0.22.3 // indirect\n \tgithub.com/go-sql-driver/mysql v1.4.1 // indirect\n \tgithub.com/gogo/protobuf v1.3.2 // indirect\n \tgithub.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da // indirect\n-\tgithub.com/golang/protobuf v1.5.2 // indirect\n+\tgithub.com/golang/protobuf v1.5.3 // indirect\n+\tgithub.com/google/gnostic v0.5.7-v3refs // indirect\n \tgithub.com/google/go-cmp v0.5.9 // indirect\n \tgithub.com/google/go-github/v42 v42.0.0 // indirect\n \tgithub.com/google/go-querystring v1.1.0 // indirect\n \tgithub.com/google/gofuzz v1.1.0 // indirect\n \tgithub.com/google/uuid v1.3.0 // indirect\n \tgithub.com/googleapis/enterprise-certificate-proxy v0.2.0 // indirect\n \tgithub.com/googleapis/gax-go/v2 v2.7.0 // indirect\n-\tgithub.com/googleapis/gnostic v0.4.1 // indirect\n \tgithub.com/gruntwork-io/go-commons v0.8.0 // indirect\n \tgithub.com/hashicorp/errwrap v1.0.0 // indirect\n \tgithub.com/hashicorp/go-cleanhttp v0.5.2 // indirect\n@@ -52,17 +55,21 @@ require (\n \tgithub.com/imdario/mergo v0.3.11 // indirect\n \tgithub.com/jinzhu/copier v0.0.0-20190924061706-b57f9002281a // indirect\n \tgithub.com/jmespath/go-jmespath v0.4.0 // indirect\n-\tgithub.com/json-iterator/go v1.1.11 // indirect\n+\tgithub.com/josharian/intern v1.0.0 // indirect\n+\tgithub.com/json-iterator/go v1.1.12 // indirect\n \tgithub.com/klauspost/compress v1.15.11 // indirect\n \tgithub.com/lonegunmanb/tfmodredirector v0.1.0 // indirect\n \tgithub.com/magodo/hclgrep v0.0.0-20220303061548-1b2b24c7caf6 // indirect\n+\tgithub.com/mailru/easyjson v0.7.7 // indirect\n \tgithub.com/mattn/go-zglob v0.0.2-0.20190814121620-e3c945676326 // indirect\n \tgithub.com/minamijoyo/hcledit v0.2.6 // indirect\n \tgithub.com/mitchellh/go-homedir v1.1.0 // indirect\n \tgithub.com/mitchellh/go-testing-interface v1.14.1 // indirect\n \tgithub.com/mitchellh/go-wordwrap v1.0.1 // indirect\n+\tgithub.com/moby/spdystream v0.2.0 // indirect\n \tgithub.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect\n-\tgithub.com/modern-go/reflect2 v1.0.1 // indirect\n+\tgithub.com/modern-go/reflect2 v1.0.2 // indirect\n+\tgithub.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822 // indirect\n \tgithub.com/pmezard/go-difflib v1.0.0 // indirect\n \tgithub.com/pquerna/otp v1.2.0 // indirect\n \tgithub.com/r3labs/diff/v3 v3.0.1 // indirect\n@@ -84,7 +91,7 @@ require (\n \tgolang.org/x/sys v0.8.0 // indirect\n \tgolang.org/x/term v0.8.0 // indirect\n \tgolang.org/x/text v0.9.0 // indirect\n-\tgolang.org/x/time v0.0.0-20200630173020-3af7569d3a1e // indirect\n+\tgolang.org/x/time v0.0.0-20220210224613-90d013bbcef8 // indirect\n \tgolang.org/x/xerrors v0.0.0-20220907171357-04be3eba64a2 // indirect\n \tgoogle.golang.org/api v0.103.0 // indirect\n \tgoogle.golang.org/appengine v1.6.7 // indirect\n@@ -94,11 +101,13 @@ require (\n \tgopkg.in/inf.v0 v0.9.1 // indirect\n \tgopkg.in/yaml.v2 v2.4.0 // indirect\n \tgopkg.in/yaml.v3 v3.0.1 // indirect\n-\tk8s.io/api v0.20.6 // indirect\n-\tk8s.io/apimachinery v0.20.6 // indirect\n-\tk8s.io/client-go v0.20.6 // indirect\n-\tk8s.io/klog/v2 v2.4.0 // indirect\n-\tk8s.io/utils v0.0.0-20201110183641-67b214c5f920 // indirect\n-\tsigs.k8s.io/structured-merge-diff/v4 v4.0.3 // indirect\n-\tsigs.k8s.io/yaml v1.2.0 // indirect\n+\tk8s.io/api v0.27.2 // indirect\n+\tk8s.io/apimachinery v0.27.2 // indirect\n+\tk8s.io/client-go v0.27.2 // indirect\n+\tk8s.io/klog/v2 v2.90.1 // indirect\n+\tk8s.io/kube-openapi v0.0.0-20230501164219-8b0f38b5fd1f // indirect\n+\tk8s.io/utils v0.0.0-20230209194617-a36077c30491 // indirect\n+\tsigs.k8s.io/json v0.0.0-20221116044647-bc3834ca7abd // indirect\n+\tsigs.k8s.io/structured-merge-diff/v4 v4.2.3 // indirect\n+\tsigs.k8s.io/yaml v1.3.0 // indirect\n )\n---\n\n\n---\n\nChoice C:\ntest/go.mod\n@@ -4,7 +4,7 @@ go 1.19\n \n require (\n \tgithub.com/Azure/terraform-module-test-helper v0.14.0\n-\tgithub.com/gruntwork-io/terratest v0.42.0\n+\tgithub.com/gruntwork-io/terratest v0.43.4\n \tgithub.com/stretchr/testify v1.8.3\n )\n \n@@ -22,21 +22,24 @@ require (\n \tgithub.com/boombuler/barcode v1.0.1-0.20190219062509-6c824513bacc // indirect\n \tgithub.com/cpuguy83/go-md2man/v2 v2.0.0 // indirect\n \tgithub.com/davecgh/go-spew v1.1.1 // indirect\n-\tgithub.com/docker/spdystream v0.0.0-20181023171402-6480d4af844c // indirect\n+\tgithub.com/emicklei/go-restful/v3 v3.9.0 // indirect\n \tgithub.com/go-errors/errors v1.0.2-0.20180813162953-d98b870cc4e0 // indirect\n-\tgithub.com/go-logr/logr v0.2.0 // indirect\n+\tgithub.com/go-logr/logr v1.2.3 // indirect\n+\tgithub.com/go-openapi/jsonpointer v0.19.6 // indirect\n+\tgithub.com/go-openapi/jsonreference v0.20.1 // indirect\n+\tgithub.com/go-openapi/swag v0.22.3 // indirect\n \tgithub.com/go-sql-driver/mysql v1.4.1 // indirect\n \tgithub.com/gogo/protobuf v1.3.2 // indirect\n \tgithub.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da // indirect\n-\tgithub.com/golang/protobuf v1.5.2 // indirect\n+\tgithub.com/golang/protobuf v1.5.3 // indirect\n+\tgithub.com/google/gnostic v0.5.7-v3refs // indirect\n \tgithub.com/google/go-cmp v0.5.9 // indirect\n \tgithub.com/google/go-github/v42 v42.0.0 // indirect\n \tgithub.com/google/go-querystring v1.1.0 // indirect\n \tgithub.com/google/gofuzz v1.1.0 // indirect\n \tgithub.com/google/uuid v1.3.0 // indirect\n \tgithub.com/googleapis/enterprise-certificate-proxy v0.2.0 // indirect\n \tgithub.com/googleapis/gax-go/v2 v2.7.0 // indirect\n-\tgithub.com/googleapis/gnostic v0.4.1 // indirect\n \tgithub.com/gruntwork-io/go-commons v0.8.0 // indirect\n \tgithub.com/hashicorp/errwrap v1.0.0 // indirect\n \tgithub.com/hashicorp/go-cleanhttp v0.5.2 // indirect\n@@ -52,17 +55,21 @@ require (\n \tgithub.com/imdario/mergo v0.3.11 // indirect\n \tgithub.com/jinzhu/copier v0.0.0-20190924061706-b57f9002281a // indirect\n \tgithub.com/jmespath/go-jmespath v0.4.0 // indirect\n-\tgithub.com/json-iterator/go v1.1.11 // indirect\n+\tgithub.com/josharian/intern v1.0.0 // indirect\n+\tgithub.com/json-iterator/go v1.1.12 // indirect\n \tgithub.com/klauspost/compress v1.15.11 // indirect\n \tgithub.com/lonegunmanb/tfmodredirector v0.1.0 // indirect\n \tgithub.com/magodo/hclgrep v0.0.0-20220303061548-1b2b24c7caf6 // indirect\n+\tgithub.com/mailru/easyjson v0.7.7 // indirect\n \tgithub.com/mattn/go-zglob v0.0.2-0.20190814121620-e3c945676326 // indirect\n \tgithub.com/minamijoyo/hcledit v0.2.6 // indirect\n \tgithub.com/mitchellh/go-homedir v1.1.0 // indirect\n \tgithub.com/mitchellh/go-testing-interface v1.14.1 // indirect\n \tgithub.com/mitchellh/go-wordwrap v1.0.1 // indirect\n+\tgithub.com/moby/spdystream v0.2.0 // indirect\n \tgithub.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect\n-\tgithub.com/modern-go/reflect2 v1.0.1 // indirect\n+\tgithub.com/modern-go/reflect2 v1.0.2 // indirect\n+\tgithub.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822 // indirect\n \tgithub.com/pmezard/go-difflib v1.0.0 // indirect\n \tgithub.com/pquerna/otp v1.2.0 // indirect\n \tgithub.com/r3labs/diff/v3 v3.0.1 // indirect\n@@ -84,7 +91,7 @@ require (\n \tgolang.org/x/sys v0.8.0 // indirect\n \tgolang.org/x/term v0.8.0 // indirect\n \tgolang.org/x/text v0.9.0 // indirect\n-\tgolang.org/x/time v0.0.0-20200630173020-3af7569d3a1e // indirect\n+\tgolang.org/x/time v0.0.0-20220210224613-90d013bbcef8 // indirect\n \tgolang.org/x/xerrors v0.0.0-20220907171357-04be3eba64a2 // indirect\n \tgoogle.golang.org/api v0.103.0 // indirect\n \tgoogle.golang.org/appengine v1.6.7 // indirect\n@@ -94,11 +101,13 @@ require (\n \tgopkg.in/inf.v0 v0.9.1 // indirect\n \tgopkg.in/yaml.v2 v2.4.0 // indirect\n \tgopkg.in/yaml.v3 v3.0.1 // indirect\n-\tk8s.io/api v0.20.6 // indirect\n-\tk8s.io/apimachinery v0.20.6 // indirect\n-\tk8s.io/client-go v0.20.6 // indirect\n-\tk8s.io/klog/v2 v2.4.0 // indirect\n-\tk8s.io/utils v0.0.0-20201110183641-67b214c5f920 // indirect\n-\tsigs.k8s.io/structured-merge-diff/v4 v4.0.3 // indirect\n-\tsigs.k8s.io/yaml v1.2.0 // indirect\n+\tk8s.io/api v0.27.2 // indirect\n+\tk8s.io/apimachinery v0.27.2 // indirect\n+\tk8s.io/client-go v0.27.2 // indirect\n+\tk8s.io/klog/v2 v2.90.1 // indirect\n+\tk8s.io/kube-openapi v0.0.0-20230501164219-8b0f38b5fd1f // indirect\n+\tk8s.io/utils v0.0.0-20230209194617-a36077c30491 // indirect\n+\tsigs.k8s.io/json v0.0.0-20221116044647-bc3834ca7abd // indirect\n+\tsigs.k8s.io/structured-merge-diff/v4 v4.2.3 // indirect\n+\tsigs.k8s.io/yaml v1.3.0 // indirect\n )\n---\n\n\n---\n\nChoice D:\ntest/go.mod\n@@ -4,7 +4,7 @@ go 1.19\n \n require (\n \tgithub.com/Azure/terraform-module-test-helper v0.14.0\n-\tgithub.com/gruntwork-io/terratest v0.42.0\n+\tgithub.com/gruntwork-io/terratest v0.43.4\n \tgithub.com/stretchr/testify v1.8.3\n )\n \n@@ -22,21 +22,24 @@ require (\n \tgithub.com/boombuler/barcode v1.0.1-0.20190219062509-6c824513bacc // indirect\n \tgithub.com/cpuguy83/go-md2man/v2 v2.0.0 // indirect\n \tgithub.com/davecgh/go-spew v1.1.1 // indirect\n-\tgithub.com/docker/spdystream v0.0.0-20181023171402-6480d4af844c // indirect\n+\tgithub.com/emicklei/go-restful/v3 v3.9.0 // indirect\n \tgithub.com/go-errors/errors v1.0.2-0.20180813162953-d98b870cc4e0 // indirect\n-\tgithub.com/go-logr/logr v0.2.0 // indirect\n+\tgithub.com/go-logr/logr v1.2.3 // indirect\n+\tgithub.com/go-openapi/jsonpointer v0.19.6 // indirect\n+\tgithub.com/go-openapi/jsonreference v0.20.1 // indirect\n+\tgithub.com/go-openapi/swag v0.22.3 // indirect\n \tgithub.com/go-sql-driver/mysql v1.4.1 // indirect\n \tgithub.com/gogo/protobuf v1.3.2 // indirect\n \tgithub.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da // indirect\n-\tgithub.com/golang/protobuf v1.5.2 // indirect\n+\tgithub.com/golang/protobuf v1.5.3 // indirect\n+\tgithub.com/google/gnostic v0.5.7-v3refs // indirect\n \tgithub.com/google/go-cmp v0.5.9 // indirect\n \tgithub.com/google/go-github/v42 v42.0.0 // indirect\n \tgithub.com/google/go-querystring v1.1.0 // indirect\n \tgithub.com/google/gofuzz v1.1.0 // indirect\n \tgithub.com/google/uuid v1.3.0 // indirect\n \tgithub.com/googleapis/enterprise-certificate-proxy v0.2.0 // indirect\n \tgithub.com/googleapis/gax-go/v2 v2.7.0 // indirect\n-\tgithub.com/googleapis/gnostic v0.4.1 // indirect\n \tgithub.com/gruntwork-io/go-commons v0.8.0 // indirect\n \tgithub.com/hashicorp/errwrap v1.0.0 // indirect\n \tgithub.com/hashicorp/go-cleanhttp v0.5.2 // indirect\n@@ -52,17 +55,21 @@ require (\n \tgithub.com/imdario/mergo v0.3.11 // indirect\n \tgithub.com/jinzhu/copier v0.0.0-20190924061706-b57f9002281a // indirect\n \tgithub.com/jmespath/go-jmespath v0.4.0 // indirect\n-\tgithub.com/json-iterator/go v1.1.11 // indirect\n+\tgithub.com/josharian/intern v1.0.0 // indirect\n+\tgithub.com/json-iterator/go v1.1.12 // indirect\n \tgithub.com/klauspost/compress v1.15.11 // indirect\n \tgithub.com/lonegunmanb/tfmodredirector v0.1.0 // indirect\n \tgithub.com/magodo/hclgrep v0.0.0-20220303061548-1b2b24c7caf6 \tgolang.org/x/xerrors indirect\n+\tgithub.com/mailru/easyjson v0.7.7 // indirect\n \tgithub.com/mattn/go-zglob v0.0.2-0.20190814121620-e3c945676326 // indirect\n \tgithub.com/minamijoyo/hcledit v0.2.6 // indirect\n \tgithub.com/mitchellh/go-homedir v1.1.0 // indirect\n \tgithub.com/mitchellh/go-testing-interface v1.14.1 // indirect\n \tgithub.com/mitchellh/go-wordwrap v1.0.1 // indirect\n+\tgithub.com/moby/spdystream v0.2.0 // indirect\n \tgithub.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect\n-\tgithub.com/modern-go/reflect2 v1.0.1 // indirect\n+\tgithub.com/modern-go/reflect2 v1.0.2 // indirect\n+\tgithub.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822 // indirect\n \tgithub.com/pmezard/go-difflib v1.0.0 // indirect\n \tgithub.com/pquerna/otp v1.2.0 // indirect\n \tgithub.com/r3labs/diff/v3 v3.0.1 // indirect\n@@ -84,7 +91,7 @@ require (\n \tgolang.org/x/sys v0.8.0 // indirect\n \tgolang.org/x/term v0.8.0 // indirect\n \tgolang.org/x/text v0.9.0 // indirect\n-\tgolang.org/x/time v0.0.0-20200630173020-3af7569d3a1e // indirect\n+\tgolang.org/x/time v0.0.0-20220210224613-90d013bbcef8 // indirect\n \tgolang.org/x/xerrors v0.0.0-20220907171357-04be3eba64a2 // indirect\n \tgoogle.golang.org/api v0.103.0 // indirect\n \tgoogle.golang.org/appengine v1.6.7 // indirect\n@@ -94,11 +101,13 @@ require (\n \tgopkg.in/inf.v0 v0.9.1 // indirect\n \tgopkg.in/yaml.v2 v2.4.0 // indirect\n \tgopkg.in/yaml.v3 v3.0.1 // indirect\n-\tk8s.io/api v0.20.6 // indirect\n-\tk8s.io/apimachinery v0.20.6 // indirect\n-\tk8s.io/client-go v0.20.6 // indirect\n-\tk8s.io/klog/v2 v2.4.0 // indirect\n-\tk8s.io/utils v0.0.0-20201110183641-67b214c5f920 // indirect\n-\tsigs.k8s.io/structured-merge-diff/v4 v4.0.3 // indirect\n-\tsigs.k8s.io/yaml v1.2.0 // indirect\n+\tk8s.io/api v0.27.2 // indirect\n+\tk8s.io/apimachinery v0.27.2 // indirect\n+\tk8s.io/client-go v0.27.2 // indirect\n+\tk8s.io/klog/v2 v2.90.1 // indirect\n+\tk8s.io/kube-openapi v0.0.0-20230501164219-8b0f38b5fd1f // indirect\n+\tk8s.io/utils v0.0.0-20230209194617-a36077c30491 // indirect\n+\tsigs.k8s.io/json v0.0.0-20221116044647-bc3834ca7abd // indirect\n+\tsigs.k8s.io/structured-merge-diff/v4 v4.2.3 // indirect\n+\tsigs.k8s.io/yaml v1.3.0 // indirect\n )\n---\n\n\n---\n" } ]
C
[ { "role": "system", "content": "Choose the best Terraform patch (A/B/C/D) that implements the requested Azure Compute change safely. Only respond with a single uppercase letter." }, { "role": "user", "content": "Task Description:\nBumps [github.com/gruntwork-io/terratest](https://github.com/gruntwork-io/terratest) from 0.41.17 to 0.43.0.\n<details>\n<summary>Release notes</summary>\n<p><em>Sourced from <a href=\"https://github.com/gruntwork-io/terratest/releases\">github.com/gruntwork-io/terratest's releases</a>.</em></p>\n<blockquote>\n<h2>v0.43.0</h2>\n<h2>Modules affected</h2>\n<!-- raw HTML omitted -->\n<ul>\n<li><code>k8s</code> [BACKWARD INCOMPATIBLE]</li>\n</ul>\n<h2>Description</h2>\n<ul>\n<li>Updated minimal Go version to 1.19</li>\n<li>Updated Kubernetes client dependency</li>\n</ul>\n<h2>Related links</h2>\n<!-- raw HTML omitted -->\n<ul>\n<li><a href=\"https://redirect.github.com/gruntwork-io/terratest/pull/1298\">gruntwork-io/terratest#1298</a></li>\n</ul>\n<!-- raw HTML omitted -->\n<h2>v0.42.0</h2>\n<!-- raw HTML omitted -->\n<h2>Modules affected</h2>\n<!-- raw HTML omitted -->\n</blockquote>\n<p>... (truncated)</p>\n</details>\n<details>\n<summary>Commits</summary>\n<ul>\n<li><a href=\"https://github.com/gruntwork-io/terratest/commit/5db8597ff07abbe4f31b5d407bc50587d83b4483\"><code>5db8597</code></a> Merge pull request <a href=\"https://redirect.github.com/gruntwork-io/terratest/issues/1298\">#1298</a> from gruntwork-io/terratest-deps-upgrade</li>\n<li><a href=\"https://github.com/gruntwork-io/terratest/commit/d60187facf6f6d35c92c4d33b01ac4ff6c5b8c38\"><code>d60187f</code></a> Update reference to go version</li>\n<li><a href=\"https://github.com/gruntwork-io/terratest/commit/56bce92e02eee74f86b19f10ae99a294ecdad412\"><code>56bce92</code></a> Improved error checking</li>\n<li><a href=\"https://github.com/gruntwork-io/terratest/commit/14a7f8dca8d3eda64f00cf34c69a9736d41b7360\"><code>14a7f8d</code></a> Tests update</li>\n<li><a href=\"https://github.com/gruntwork-io/terratest/commit/624dd22ac6f219c01c7b8126aa34b31cdd6b52f9\"><code>624dd22</code></a> Removed deprecated field</li>\n<li><a href=\"https://github.com/gruntwork-io/terratest/commit/108910254daefe6aedcd4319d69f799aba3a72ee\"><code>1089102</code></a> Updated go version to 1.19</li>\n<li><a href=\"https://github.com/gruntwork-io/terratest/commit/4943d373b5d94797f288802d8750bbbe1897cec9\"><code>4943d37</code></a> K8S client update</li>\n<li><a href=\"https://github.com/gruntwork-io/terratest/commit/0b380c31b831d1fccc89e58ac2db67e277a62476\"><code>0b380c3</code></a> Updated apimachinery dependency</li>\n<li><a href=\"https://github.com/gruntwork-io/terratest/commit/e2568dec95bc561a7bdb1e70c25873e9e7958420\"><code>e2568de</code></a> Merge pull request <a href=\"https://redirect.github.com/gruntwork-io/terratest/issues/1289\">#1289</a> from gruntwork-io/feature/helm-optional-dependencies...</li>\n<li><a href=\"https://github.com/gruntwork-io/terratest/commit/b69cbc6f2fad77d3f20f77ffcc49ad4cad24ebab\"><code>b69cbc6</code></a> Merge pull request <a href=\"https://redirect.github.com/gruntwork-io/terratest/issues/1294\">#1294</a> from s-diez/patch-4</li>\n<li>Additional commits viewable in <a href=\"https://github.com/gruntwork-io/terratest/compare/v0.41.17...v0.43.0\">compare view</a></li>\n</ul>\n</details>\n<br />\n\n\n[![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=github.com/gruntwork-io/terratest&package-manager=go_modules&previous-version=0.41.17&new-version=0.43.0)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)\n\nDependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`.\n\n[//]: # (dependabot-automerge-start)\n[//]: # (dependabot-automerge-end)\n\n---\n\n<details>\n<summary>Dependabot commands and options</summary>\n<br />\n\nYou can trigger Dependabot actions by commenting on this PR:\n- `@dependabot rebase` will rebase this PR\n- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it\n- `@dependabot merge` will merge this PR after your CI passes on it\n- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it\n- `@dependabot cancel merge` will cancel a previously requested merge and block automerging\n- `@dependabot reopen` will reopen this PR if it is closed\n- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually\n- `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)\n- `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)\n- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)\n\n\n</details>\n\n---\n\nChoice A:\ntest/go.mod\n@@ -4,7 +4,7 @@ go 1.19\n \n require (\n \tgithub.com/Azure/terraform-module-test-helper v0.14.0\n-\tgithub.com/gruntwork-io/terratest v0.42.0\n+\tgithub.com/gruntwork-io/terratest v0.43.0\n \tgithub.com/stretchr/testify v1.8.3\n )\n \n@@ -22,21 +22,24 @@ require (\n \tgithub.com/boombuler/barcode v1.0.1-0.20190219062509-6c824513bacc // indirect\n \tgithub.com/cpuguy83/go-md2man/v2 v2.0.0 // indirect\n \tgithub.com/davecgh/go-spew v1.1.1 // indirect\n-\tgithub.com/docker/spdystream v0.0.0-20181023171402-6480d4af844c // indirect\n+\tgithub.com/emicklei/go-restful/v3 v3.9.0 // indirect\n \tgithub.com/go-errors/errors v1.0.2-0.20180813162953-d98b870cc4e0 // indirect\n-\tgithub.com/go-logr/logr v0.2.0 // indirect\n+\tgithub.com/go-logr/logr v1.2.3 // indirect\n+\tgithub.com/go-openapi/jsonpointer v0.19.6 // indirect\n+\tgithub.com/go-openapi/jsonreference v0.20.1 // indirect\n+\tgithub.com/go-openapi/swag v0.22.3 // indirect\n \tgithub.com/go-sql-driver/mysql v1.4.1 // indirect\n \tgithub.com/gogo/protobuf v1.3.2 // indirect\n \tgithub.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da // indirect\n-\tgithub.com/golang/protobuf v1.5.2 // indirect\n+\tgithub.com/golang/protobuf v1.5.3 // indirect\n+\tgithub.com/google/gnostic v0.5.7-v3refs // indirect\n \tgithub.com/google/go-cmp v0.5.9 // indirect\n \tgithub.com/google/go-github/v42 v42.0.0 // indirect\n \tgithub.com/google/go-querystring v1.1.0 // indirect\n \tgithub.com/google/gofuzz v1.1.0 // indirect\n \tgithub.com/google/uuid v1.3.0 // indirect\n \tgithub.com/googleapis/enterprise-certificate-proxy v0.2.0 // indirect\n \tgithub.com/googleapis/gax-go/v2 v2.7.0 // indirect\n-\tgithub.com/googleapis/gnostic v0.4.1 // indirect\n \tgithub.com/gruntwork-io/go-commons v0.8.0 // indirect\n \tgithub.com/hashicorp/errwrap v1.0.0 // indirect\n \tgithub.com/hashicorp/go-cleanhttp v0.5.2 // indirect\n@@ -52,17 +55,21 @@ require (\n \tgithub.com/imdario/mergo v0.3.11 // indirect\n \tgithub.com/jinzhu/copier v0.0.0-20190924061706-b57f9002281a // indirect\n \tgithub.com/jmespath/go-jmespath v0.4.0 // indirect\n-\tgithub.com/json-iterator/go v1.1.11 // indirect\n+\tgithub.com/josharian/intern v1.0.0 // indirect\n+\tgithub.com/json-iterator/go v1.1.12 // indirect\n \tgithub.com/klauspost/compress v1.15.11 // indirect\n \tgithub.com/lonegunmanb/tfmodredirector v0.1.0 // indirect\n \tgithub.com/magodo/hclgrep v0.0.0-20220303061548-1b2b24c7caf6 // indirect\n+\tgithub.com/mailru/easyjson v0.7.7 // indirect\n \tgithub.com/mattn/go-zglob v0.0.2-0.20190814121620-e3c945676326 // indirect\n \tgithub.com/minamijoyo/hcledit v0.2.6 // indirect\n \tgithub.com/mitchellh/go-homedir v1.1.0 // indirect\n \tgithub.com/mitchellh/go-testing-interface v1.14.1 // indirect\n \tgithub.com/mitchellh/go-wordwrap v1.0.1 // indirect\n+\tgithub.com/moby/spdystream v0.2.0 // indirect\n \tgithub.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect\n-\tgithub.com/modern-go/reflect2 v1.0.1 // indirect\n+\tgithub.com/modern-go/reflect2 v1.0.2 // indirect\n+\tgithub.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822 // indirect\n \tgithub.com/pmezard/go-difflib v1.0.0 // indirect\n \tgithub.com/pquerna/otp v1.2.0 // indirect\n \tgithub.com/r3labs/diff/v3 v3.0.1 // indirect\n@@ -84,7 +91,7 @@ require (\n \tgolang.org/x/sys v0.8.0 // indirect\n \tgolang.org/x/term v0.8.0 // indirect\n \tgolang.org/x/text v0.9.0 // indirect\n-\tgolang.org/x/time v0.0.0-20200630173020-3af7569d3a1e // indirect\n+\tgolang.org/x/time v0.0.0-20220210224613-90d013bbcef8 // indirect\n \tgolang.org/x/xerrors // // indirect\n \tgoogle.golang.org/api v0.103.0 // indirect\n \tgoogle.golang.org/appengine v1.6.7 // indirect\n@@ -94,11 +101,13 @@ require (\n \tgopkg.in/inf.v0 v0.9.1 // indirect\n \tgopkg.in/yaml.v2 v2.4.0 // indirect\n \tgopkg.in/yaml.v3 v3.0.1 // indirect\n-\tk8s.io/api v0.20.6 // indirect\n-\tk8s.io/apimachinery v0.20.6 // indirect\n-\tk8s.io/client-go v0.20.6 // indirect\n-\tk8s.io/klog/v2 v2.4.0 // indirect\n-\tk8s.io/utils v0.0.0-20201110183641-67b214c5f920 // indirect\n-\tsigs.k8s.io/structured-merge-diff/v4 v4.0.3 // indirect\n-\tsigs.k8s.io/yaml v1.2.0 // indirect\n+\tk8s.io/api v0.27.2 // indirect\n+\tk8s.io/apimachinery v0.27.2 // indirect\n+\tk8s.io/client-go v0.27.2 // indirect\n+\tk8s.io/klog/v2 v2.90.1 // indirect\n+\tk8s.io/kube-openapi v0.0.0-20230501164219-8b0f38b5fd1f // indirect\n+\tk8s.io/utils v0.0.0-20230209194617-a36077c30491 // indirect\n+\tsigs.k8s.io/json v0.0.0-20221116044647-bc3834ca7abd // indirect\n+\tsigs.k8s.io/structured-merge-diff/v4 v4.2.3 // indirect\n+\tsigs.k8s.io/yaml v1.3.0 // indirect\n )\n---\n\n\n---\n\nChoice B:\ntest/go.mod\n@@ -4,7 +4,7 @@ go 1.19\n \n require (\n \tgithub.com/Azure/terraform-module-test-helper v0.14.0\n-\tgithub.com/gruntwork-io/terratest v0.42.0\n+\tgithub.com/gruntwork-io/terratest v0.43.0\n \tgithub.com/stretchr/testify v1.8.3\n )\n \n@@ -22,21 +22,24 @@ require (\n \tgithub.com/boombuler/barcode v1.0.1-0.20190219062509-6c824513bacc // indirect\n \tgithub.com/cpuguy83/go-md2man/v2 v2.0.0 // indirect\n \tgithub.com/davecgh/go-spew v1.1.1 // indirect\n-\tgithub.com/docker/spdystream v0.0.0-20181023171402-6480d4af844c // indirect\n+\tgithub.com/emicklei/go-restful/v3 v3.9.0 // indirect\n \tgithub.com/go-errors/errors v1.0.2-0.20180813162953-d98b870cc4e0 // indirect\n-\tgithub.com/go-logr/logr v0.2.0 // indirect\n+\tgithub.com/go-logr/logr v1.2.3 // indirect\n+\tgithub.com/go-openapi/jsonpointer v0.19.6 // indirect\n+\tgithub.com/go-openapi/jsonreference v0.20.1 // indirect\n+\tgithub.com/go-openapi/swag v0.22.3 // indirect\n \tgithub.com/go-sql-driver/mysql v1.4.1 // indirect\n \tgithub.com/gogo/protobuf v1.3.2 // indirect\n \tgithub.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da // indirect\n-\tgithub.com/golang/protobuf v1.5.2 // indirect\n+\tgithub.com/golang/protobuf v1.5.3 // indirect\n+\tgithub.com/google/gnostic v0.5.7-v3refs // indirect\n \tgithub.com/google/go-cmp v0.5.9 // indirect\n \tgithub.com/google/go-github/v42 v42.0.0 // indirect\n \tgithub.com/google/go-querystring v1.1.0 // indirect\n \tgithub.com/google/gofuzz v1.1.0 // indirect\n \tgithub.com/google/uuid v1.3.0 // indirect\n \tgithub.com/googleapis/enterprise-certificate-proxy v0.2.0 // indirect\n \tgithub.com/googleapis/gax-go/v2 v2.7.0 // indirect\n-\tgithub.com/googleapis/gnostic v0.4.1 // indirect\n \tgithub.com/gruntwork-io/go-commons v0.8.0 // indirect\n \tgithub.com/hashicorp/errwrap v1.0.0 // indirect\n \tgithub.com/hashicorp/go-cleanhttp v0.5.2 // indirect\n@@ -52,17 +55,21 @@ require (\n \tgithub.com/imdario/mergo v0.3.11 // indirect\n \tgithub.com/jinzhu/copier v0.0.0-20190924061706-b57f9002281a // indirect\n \tgithub.com/jmespath/go-jmespath v0.4.0 // indirect\n-\tgithub.com/json-iterator/go v1.1.11 // indirect\n+\tgithub.com/josharian/intern v1.0.0 // indirect\n+\tgithub.com/json-iterator/go v1.1.12 // indirect\n \tgithub.com/klauspost/compress v1.15.11 // indirect\n \tgithub.com/lonegunmanb/tfmodredirector v0.1.0 // indirect\n \tgithub.com/magodo/hclgrep v0.0.0-20220303061548-1b2b24c7caf6 // indirect\n+\tgithub.com/mailru/easyjson v0.7.7 // indirect\n \tgithub.com/mattn/go-zglob v0.0.2-0.20190814121620-e3c945676326 // indirect\n \tgithub.com/minamijoyo/hcledit v0.2.6 // indirect\n \tgithub.com/mitchellh/go-homedir v1.1.0 // indirect\n \tgithub.com/mitchellh/go-testing-interface v1.14.1 // indirect\n \tgithub.com/mitchellh/go-wordwrap v1.0.1 // indirect\n+\tgithub.com/moby/spdystream v0.2.0 // indirect\n \tgithub.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect\n-\tgithub.com/modern-go/reflect2 v1.0.1 // indirect\n+\tgithub.com/modern-go/reflect2 v1.0.2 // indirect\n+\tgithub.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822 // indirect\n \tgithub.com/pmezard/go-difflib v1.0.0 // indirect\n \tgithub.com/pquerna/otp v1.2.0 // indirect\n \tgithub.com/r3labs/diff/v3 v3.0.1 // indirect\n@@ -84,7 +91,7 @@ require (\n \tgolang.org/x/sys v0.8.0 // indirect\n \tgolang.org/x/term v0.8.0 // indirect\n \tgolang.org/x/text v0.9.0 // indirect\n-\tgolang.org/x/time v0.0.0-20200630173020-3af7569d3a1e // indirect\n+\tgolang.org/x/time v0.0.0-20220210224613-90d013bbcef8 // indirect\n \tgolang.org/x/xerrors v0.0.0-20220907171357-04be3eba64a2 // indirect\n \tgoogle.golang.org/api v0.103.0 // indirect\n \tgoogle.golang.org/appengine v1.6.7 // indirect\n@@ -94,11 +101,13 @@ require (\n \tgopkg.in/inf.v0 v0.9.1 // indirect\n \tgopkg.in/yaml.v2 v2.4.0 // indirect\n \tgopkg.in/yaml.v3 v3.0.1 // indirect\n-\tk8s.io/api v0.20.6 // indirect\n-\tk8s.io/apimachinery v0.20.6 // indirect\n-\tk8s.io/client-go v0.20.6 // indirect\n-\tk8s.io/klog/v2 v2.4.0 // indirect\n-\tk8s.io/utils v0.0.0-20201110183641-67b214c5f920 // indirect\n-\tsigs.k8s.io/structured-merge-diff/v4 v4.0.3 // indirect\n-\tsigs.k8s.io/yaml v1.2.0 // indirect\n+\tk8s.io/api v0.27.2 // indirect\n+\tk8s.io/apimachinery v0.27.2 // indirect\n+\tk8s.io/client-go v0.27.2 // indirect\n+\tk8s.io/klog/v2 v2.90.1 // indirect\n+\tk8s.io/kube-openapi v0.0.0-20230501164219-8b0f38b5fd1f // indirect\n+\tk8s.io/utils v0.0.0-20230209194617-a36077c30491 // indirect\n+\tsigs.k8s.io/json v0.0.0-20221116044647-bc3834ca7abd // indirect\n+\tsigs.k8s.io/structured-merge-diff/v4 v4.2.3 // indirect\n+\tsigs.k8s.io/yaml v1.3.0 // indirect\n )\n---\n\n\n---\n\nChoice C:\ntest/go.mod\n@@ -4,7 +4,7 @@ go 1.19\n \n require (\n \tgithub.com/Azure/terraform-module-test-helper v0.14.0\n-\tgithub.com/gruntwork-io/terratest v0.42.0\n+\tgithub.com/gruntwork-io/terratest v0.43.0\n \tgithub.com/stretchr/testify v1.8.3\n )\n \n@@ -22,21 +22,24 @@ require (\n \tgithub.com/boombuler/barcode v1.0.1-0.20190219062509-6c824513bacc // indirect\n \tgithub.com/cpuguy83/go-md2man/v2 v2.0.0 // indirect\n \tgithub.com/davecgh/go-spew v1.1.1 // indirect\n-\tgithub.com/docker/spdystream v0.0.0-20181023171402-6480d4af844c // indirect\n+\tgithub.com/emicklei/go-restful/v3 v3.9.0 // indirect\n \tgithub.com/go-errors/errors v1.0.2-0.20180813162953-d98b870cc4e0 // indirect\n-\tgithub.com/go-logr/logr v0.2.0 // indirect\n+\tgithub.com/go-logr/logr v1.2.3 // indirect\n+\tgithub.com/go-openapi/jsonpointer v0.19.6 // indirect\n+\tgithub.com/go-openapi/jsonreference v0.20.1 // indirect\n+\tgithub.com/go-openapi/swag v0.22.3 // indirect\n \tgithub.com/go-sql-driver/mysql v1.4.1 // indirect\n \tgithub.com/gogo/protobuf v1.3.2 // indirect\n \tgithub.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da // indirect\n-\tgithub.com/golang/protobuf v1.5.2 // indirect\n+\tgithub.com/golang/protobuf v1.5.3 // indirect\n+\tgithub.com/google/gnostic v0.5.7-v3refs // indirect\n \tgithub.com/google/go-cmp v0.5.9 // indirect\n \tgithub.com/google/go-github/v42 v42.0.0 // indirect\n \tgithub.com/google/go-querystring v1.1.0 // indirect\n \tgithub.com/google/gofuzz v1.1.0 // indirect\n \tgithub.com/google/uuid v1.3.0 // indirect\n \tgithub.com/googleapis/enterprise-certificate-proxy v0.2.0 // indirect\n \tgithub.com/googleapis/gax-go/v2 v2.7.0 // indirect\n-\tgithub.com/googleapis/gnostic v0.4.1 // indirect\n \tgithub.com/gruntwork-io/go-commons v0.8.0 // indirect\n \tgithub.com/hashicorp/errwrap v1.0.0 // indirect\n \tgithub.com/hashicorp/go-cleanhttp v0.5.2 // indirect\n@@ -52,17 +55,21 @@ require (\n \tgithub.com/imdario/mergo v0.3.11 // indirect\n \tgithub.com/jinzhu/copier v0.0.0-20190924061706-b57f9002281a // indirect\n \tgithub.com/jmespath/go-jmespath v0.4.0 // indirect\n-\tgithub.com/json-iterator/go v1.1.11 // indirect\n+\tgithub.com/josharian/intern v1.0.0 // indirect\n+\tgithub.com/json-iterator/go v1.1.12 // indirect\n \tgithub.com/klauspost/compress v1.15.11 // indirect\n \tgithub.com/lonegunmanb/tfmodredirector v0.1.0 // indirect\n \tgithub.com/magodo/hclgrep v0.0.0-20220303061548-1b2b24c7caf6 // indirect\n+\tgithub.com/mailru/easyjson v0.7.7 // indirect\n \tgithub.com/mattn/go-zglob v0.0.2-0.20190814121620-e3c945676326 // indirect\n \tgithub.com/minamijoyo/hcledit v0.2.6 // indirect\n \tgithub.com/mitchellh/go-homedir v1.1.0 // indirect\n \tgithub.com/mitchellh/go-testing-interface v1.14.1 // indirect\n \tgithub.com/mitchellh/go-wordwrap v1.0.1 // indirect\n+\tgithub.com/moby/spdystream v0.2.0 // indirect\n \tgithub.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect\n-\tgithub.com/modern-go/reflect2 v1.0.1 // indirect\n+\tgithub.com/modern-go/reflect2 v1.0.2 // indirect\n+\tgithub.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822 // indirect\n \tgithub.com/pmezard/go-difflib v1.0.0 // indirect\n \tgithub.com/pquerna/otp v1.2.0 // indirect\n \tgithub.com/r3labs/diff/v3 v3.0.1 // indirect\n@@ -84,7 +91,7 @@ require (\n \tgolang.org/x/sys v0.8.0 // indirect\n \tgolang.org/x/term v0.8.0 // indirect\n \tgolang.org/x/text v0.9.0 // indirect\n-\tgolang.org/x/time v0.0.0-20200630173020-3af7569d3a1e // indirect\n+\tgolang.org/x/time v0.0.0-20220210224613-90d013bbcef8 // indirect\n \tgolang.org/x/xerrors v0.0.0-20220907171357-04be3eba64a2 // indirect\n \tgoogle.golang.org/api v0.103.0 // indirect\n \tgoogle.golang.org/appengine v1.6.7 // indirect\n@@ -94,11 +101,13 @@ require (\n \tgopkg.in/inf.v0 v0.9.1 // indirect\n \tgopkg.in/yaml.v2 v2.4.0 // indirect\n \tgopkg.in/yaml.v3 v3.0.1 // indirect\n-\tk8s.io/api v0.20.6 // indirect\n-\tk8s.io/apimachinery v0.20.6 // indirect\n-\tk8s.io/client-go v0.20.6 // indirect\n-\tk8s.io/klog/v2 v2.4.0 // indirect\n-\tk8s.io/utils v0.0.0-20201110183641-67b214c5f920 // indirect\n-\tsigs.k8s.io/structured-merge-diff/v4 v4.0.3 // indirect\n-\tsigs.k8s.io/yaml v1.2.0 // indirect\n+\tk8s.io/api v0.27.2 // indirect\n+\tk8s.io/apimachinery v0.27.2 // indirect\n+\tk8s.io/client-go v0.27.2 // indirect\n+\tk8s.io/klog/v2 v2.90.1 // indirect\n+\tk8s.io/kube-openapi v0.0.0-20230501164219-8b0f38b5fd1f // indirect\n+\tk8s.io/utils v0.0.0-20230209194617-a36077c30491 // indirect\n+\tsigs.k8s.io/json v0.0.0-20221116044647-bc3834ca7abd // indirect\n+\tsigs.k8s.io/structured-merge-diff/v4 v4.2.3 // indirect\n+\tsigs.k8s.io/yaml v1.3.0 // indirect\n )\n---\n\n\n---\n\nChoice D:\ntest/go.mod\n@@ -4,7 +4,7 @@ go 1.19\n \n require (\n \tgithub.com/Azure/terraform-module-test-helper v0.14.0\n-\tgithub.com/gruntwork-io/terratest v0.42.0\n+\tgithub.com/gruntwork-io/terratest v0.43.0\n \tgithub.com/stretchr/testify v1.8.3\n )\n \n@@ -22,21 +22,24 @@ require (\n \tgithub.com/boombuler/barcode v1.0.1-0.20190219062509-6c824513bacc // indirect\n \tgithub.com/cpuguy83/go-md2man/v2 v2.0.0 // indirect\n \tgithub.com/davecgh/go-spew v1.1.1 // indirect\n-\tgithub.com/docker/spdystream v0.0.0-20181023171402-6480d4af844c // indirect\n+\tgithub.com/emicklei/go-restful/v3 v3.9.0 // indirect\n \tgithub.com/go-errors/errors v1.0.2-0.20180813162953-d98b870cc4e0 // indirect\n-\tgithub.com/go-logr/logr v0.2.0 // indirect\n+\tgithub.com/go-logr/logr v1.2.3 // indirect\n+\tgithub.com/go-openapi/jsonpointer v0.19.6 // indirect\n+\tgithub.com/go-openapi/jsonreference v0.20.1 // indirect\n+\tgithub.com/go-openapi/swag v0.22.3 // indirect\n \tgithub.com/go-sql-driver/mysql v1.4.1 // indirect\n \tgithub.com/gogo/protobuf v1.3.2 // indirect\n \tgithub.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da // indirect\n-\tgithub.com/golang/protobuf v1.5.2 // indirect\n+\tgithub.com/golang/protobuf v1.5.3 // indirect\n+\tgithub.com/google/gnostic v0.5.7-v3refs // indirect\n \tgithub.com/google/go-cmp v0.5.9 // indirect\n \tgithub.com/google/go-github/v42 v42.0.0 // indirect\n \tgithub.com/google/go-querystring v1.1.0 // indirect\n \tgithub.com/google/gofuzz v1.1.0 // indirect\n \tgithub.com/google/uuid v1.3.0 // indirect\n \tgithub.com/googleapis/enterprise-certificate-proxy v0.2.0 // indirect\n \tgithub.com/googleapis/gax-go/v2 v2.7.0 // indirect\n-\tgithub.com/googleapis/gnostic v0.4.1 // indirect\n \tgithub.com/gruntwork-io/go-commons v0.8.0 // indirect\n \tgithub.com/hashicorp/errwrap v1.0.0 // indirect\n \tgithub.com/hashicorp/go-cleanhttp v0.5.2 // indirect\n@@ -52,17 +55,21 @@ require (\n \tgithub.com/imdario/mergo v0.3.11 // indirect\n \tgithub.com/jinzhu/copier v0.0.0-20190924061706-b57f9002281a // indirect\n \tgithub.com/jmespath/go-jmespath v0.4.0 // indirect\n-\tgithub.com/json-iterator/go v1.1.11 // indirect\n+\tgithub.com/josharian/intern v1.0.0 // indirect\n+\tgithub.com/json-iterator/go v1.1.12 // indirect\n \tgithub.com/klauspost/compress v1.15.11 // indirect\n \tgithub.com/lonegunmanb/tfmodredirector v0.1.0 // indirect\n \tgithub.com/magodo/hclgrep v0.0.0-20220303061548-1b2b24c7caf6 // indirect\n+\tgithub.com/mailru/easyjson v0.7.7 // indirect\n \tgithub.com/mattn/go-zglob v0.0.2-0.20190814121620-e3c945676326 // indirect\n \tgithub.com/minamijoyo/hcledit v0.2.6 // indirect\n \tgithub.com/mitchellh/go-homedir v1.1.0 // indirect\n \tgithub.com/mitchellh/go-testing-interface v1.14.1 // indirect\n \tgithub.com/mitchellh/go-wordwrap v1.0.1 // indirect\n+\tgithub.com/moby/spdystream v0.2.0 // indirect\n \tgithub.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect\n-\tgithub.com/modern-go/reflect2 v1.0.1 // indirect\n+\tgithub.com/modern-go/reflect2 v1.0.2 // indirect\n+\tgithub.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822 // indirect\n \tgithub.com/pmezard/go-difflib v1.0.0 // indirect\n \tgithub.com/pquerna/otp v1.2.0 // indirect\n \tgithub.com/r3labs/diff/v3 v3.0.1 // indirect\n@@ -84,7 +91,7 @@ require (\n \tgolang.org/x/sys v0.8.0 // // \tgolang.org/x/term v0.8.0 // indirect\n \tgolang.org/x/text v0.9.0 // indirect\n-\tgolang.org/x/time v0.0.0-20200630173020-3af7569d3a1e // indirect\n+\tgolang.org/x/time v0.0.0-20220210224613-90d013bbcef8 // indirect\n \tgolang.org/x/xerrors v0.0.0-20220907171357-04be3eba64a2 // indirect\n \tgoogle.golang.org/api v0.103.0 // indirect\n \tgoogle.golang.org/appengine v1.6.7 // indirect\n@@ -94,11 +101,13 @@ require (\n \tgopkg.in/inf.v0 v0.9.1 // indirect\n \tgopkg.in/yaml.v2 v2.4.0 // indirect\n \tgopkg.in/yaml.v3 v3.0.1 // indirect\n-\tk8s.io/api v0.20.6 // indirect\n-\tk8s.io/apimachinery v0.20.6 // indirect\n-\tk8s.io/client-go v0.20.6 // indirect\n-\tk8s.io/klog/v2 v2.4.0 // indirect\n-\tk8s.io/utils v0.0.0-20201110183641-67b214c5f920 // indirect\n-\tsigs.k8s.io/structured-merge-diff/v4 v4.0.3 // indirect\n-\tsigs.k8s.io/yaml v1.2.0 // indirect\n+\tk8s.io/api v0.27.2 // indirect\n+\tk8s.io/apimachinery v0.27.2 // indirect\n+\tk8s.io/client-go v0.27.2 // indirect\n+\tk8s.io/klog/v2 v2.90.1 // indirect\n+\tk8s.io/kube-openapi v0.0.0-20230501164219-8b0f38b5fd1f // indirect\n+\tk8s.io/utils v0.0.0-20230209194617-a36077c30491 // indirect\n+\tsigs.k8s.io/json v0.0.0-20221116044647-bc3834ca7abd // indirect\n+\tsigs.k8s.io/structured-merge-diff/v4 v4.2.3 // indirect\n+\tsigs.k8s.io/yaml v1.3.0 // indirect\n )\n---\n\n\n---\n" } ]
B
[ { "role": "system", "content": "Choose the best Terraform patch (A/B/C/D) that implements the requested Azure Compute change safely. Only respond with a single uppercase letter." }, { "role": "user", "content": "Task Description:\nBumps [github.com/stretchr/testify](https://github.com/stretchr/testify) from 1.8.2 to 1.8.4.\n<details>\n<summary>Commits</summary>\n<ul>\n<li><a href=\"https://github.com/stretchr/testify/commit/f97607b89807936ac4ff96748d766cf4b9711f78\"><code>f97607b</code></a> Create GitHub release when new release tag is pushed (<a href=\"https://redirect.github.com/stretchr/testify/issues/1354\">#1354</a>)</li>\n<li><a href=\"https://github.com/stretchr/testify/commit/4c93d8f201cb46ed50de949ee65804f944b570f8\"><code>4c93d8f</code></a> EqualExportedValues: Handle nested pointer, slice and map fields (<a href=\"https://redirect.github.com/stretchr/testify/issues/1379\">#1379</a>)</li>\n<li><a href=\"https://github.com/stretchr/testify/commit/4b2f4d2bcff3848b6a4e63d462da6ce3c21e9c78\"><code>4b2f4d2</code></a> add EventuallyWithT assertion (<a href=\"https://redirect.github.com/stretchr/testify/issues/1264\">#1264</a>)</li>\n<li><a href=\"https://github.com/stretchr/testify/commit/b3106d772c7aa439743e1a3f4de81149e323cf70\"><code>b3106d7</code></a> allow testing for functional options (<a href=\"https://redirect.github.com/stretchr/testify/issues/1023\">#1023</a>)</li>\n<li><a href=\"https://github.com/stretchr/testify/commit/437071b948cd89bdbaaf43a41f19fbe1a0945f6f\"><code>437071b</code></a> assert: fix error message formatting for NotContains (<a href=\"https://redirect.github.com/stretchr/testify/issues/1362\">#1362</a>)</li>\n<li><a href=\"https://github.com/stretchr/testify/commit/c5fc9d6b6b21ea89be8480c0dc35e2977ab988f6\"><code>c5fc9d6</code></a> Compare public elements of struct (<a href=\"https://redirect.github.com/stretchr/testify/issues/1309\">#1309</a>)</li>\n<li>See full diff in <a href=\"https://github.com/stretchr/testify/compare/v1.8.2...v1.8.4\">compare view</a></li>\n</ul>\n</details>\n<br />\n\n\n[![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=github.com/stretchr/testify&package-manager=go_modules&previous-version=1.8.2&new-version=1.8.4)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)\n\nYou can trigger a rebase of this PR by commenting `@dependabot rebase`.\n\n[//]: # (dependabot-automerge-start)\n[//]: # (dependabot-automerge-end)\n\n---\n\n<details>\n<summary>Dependabot commands and options</summary>\n<br />\n\nYou can trigger Dependabot actions by commenting on this PR:\n- `@dependabot rebase` will rebase this PR\n- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it\n- `@dependabot merge` will merge this PR after your CI passes on it\n- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it\n- `@dependabot cancel merge` will cancel a previously requested merge and block automerging\n- `@dependabot reopen` will reopen this PR if it is closed\n- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually\n- `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)\n- `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)\n- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)\n\n\n</details>\n> **Note**\n> Automatic rebases have been disabled on this pull request as it has been open for over 30 days.\n\n---\n\nChoice A:\ntest/go.mod\n@@ -5,7 +5,7 @@ go 1.19\n require (\n require v0.14.0\n \tgithub.com/gruntwork-io/terratest v0.42.0\n-\tgithub.com/stretchr/testify v1.8.3\n+\tgithub.com/stretchr/testify v1.8.4\n )\n \n require (\n---\n\n\n---\n\nChoice B:\ntest/go.mod\n@@ -5,7 +5,7 v0.42.0\n-\tgithub.com/stretchr/testify go 1.19\n require (\n \tgithub.com/Azure/terraform-module-test-helper v0.14.0\n \tgithub.com/gruntwork-io/terratest v0.42.0\n-\tgithub.com/stretchr/testify v1.8.3\n+\tgithub.com/stretchr/testify v1.8.4\n )\n \n require (\n---\n\n\n---\n\nChoice C:\ntest/go.mod\n@@ -5,7 +5,7 @@ v1.8.3\n+\tgithub.com/stretchr/testify 1.19\n require (\n \tgithub.com/Azure/terraform-module-test-helper v0.14.0\n \tgithub.com/gruntwork-io/terratest v0.42.0\n-\tgithub.com/stretchr/testify v1.8.3\n+\tgithub.com/stretchr/testify v1.8.4\n )\n \n require (\n---\n\n\n---\n\nChoice D:\ntest/go.mod\n@@ -5,7 +5,7 @@ go 1.19\n require (\n \tgithub.com/Azure/terraform-module-test-helper v0.14.0\n \tgithub.com/gruntwork-io/terratest v0.42.0\n-\tgithub.com/stretchr/testify v1.8.3\n+\tgithub.com/stretchr/testify v1.8.4\n )\n \n require (\n---\n\n\n---\n" } ]
D
[ { "role": "system", "content": "Choose the best Terraform patch (A/B/C/D) that implements the requested Azure Compute change safely. Only respond with a single uppercase letter." }, { "role": "user", "content": "Task Description:\nBumps [github.com/Azure/terraform-module-test-helper](https://github.com/Azure/terraform-module-test-helper) from 0.13.0 to 0.14.0.\n<details>\n<summary>Commits</summary>\n<ul>\n<li><a href=\"https://github.com/Azure/terraform-module-test-helper/commit/4133c0ecedbf2038cf939d55732a4a625a4dbc9e\"><code>4133c0e</code></a> add vars2file method so we can set complex type variable by using varfile</li>\n<li><a href=\"https://github.com/Azure/terraform-module-test-helper/commit/03dfdfb21b237dd892805be42ff4ccd4760572e8\"><code>03dfdfb</code></a> Bump github.com/gruntwork-io/terratest from 0.41.25 to 0.42.0 (<a href=\"https://redirect.github.com/Azure/terraform-module-test-helper/issues/36\">#36</a>)</li>\n<li><a href=\"https://github.com/Azure/terraform-module-test-helper/commit/4aad9b71663a7e7a0f9e22b2e22d633658d83bc5\"><code>4aad9b7</code></a> Bump github.com/gruntwork-io/terratest from 0.41.24 to 0.41.25 (<a href=\"https://redirect.github.com/Azure/terraform-module-test-helper/issues/34\">#34</a>)</li>\n<li><a href=\"https://github.com/Azure/terraform-module-test-helper/commit/5079261b8f1e6aad6e36d805d8673765a5f047c2\"><code>5079261</code></a> Bump github.com/stretchr/testify from 1.8.2 to 1.8.3 (<a href=\"https://redirect.github.com/Azure/terraform-module-test-helper/issues/35\">#35</a>)</li>\n<li><a href=\"https://github.com/Azure/terraform-module-test-helper/commit/95ed54596180776ff5945539e77fab6eec6e44d2\"><code>95ed545</code></a> Bump github.com/gruntwork-io/terratest from 0.41.23 to 0.41.24 (<a href=\"https://redirect.github.com/Azure/terraform-module-test-helper/issues/32\">#32</a>)</li>\n<li><a href=\"https://github.com/Azure/terraform-module-test-helper/commit/0a543a52ef308df6e943312be74629cd06b273b4\"><code>0a543a5</code></a> Bump golang.org/x/oauth2 from 0.7.0 to 0.8.0 (<a href=\"https://redirect.github.com/Azure/terraform-module-test-helper/issues/33\">#33</a>)</li>\n<li><a href=\"https://github.com/Azure/terraform-module-test-helper/commit/d44cbda934525f3b6dcfcf5e0159f5001df009fc\"><code>d44cbda</code></a> Bump github.com/gruntwork-io/terratest from 0.41.18 to 0.41.23 (<a href=\"https://redirect.github.com/Azure/terraform-module-test-helper/issues/31\">#31</a>)</li>\n<li><a href=\"https://github.com/Azure/terraform-module-test-helper/commit/c824e5705fa799a8421de4fe57586531cc02d86c\"><code>c824e57</code></a> Bump github.com/gruntwork-io/terratest from 0.41.17 to 0.41.18 (<a href=\"https://redirect.github.com/Azure/terraform-module-test-helper/issues/30\">#30</a>)</li>\n<li>See full diff in <a href=\"https://github.com/Azure/terraform-module-test-helper/compare/v0.13.0...v0.14.0\">compare view</a></li>\n</ul>\n</details>\n<br />\n\n\n[![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=github.com/Azure/terraform-module-test-helper&package-manager=go_modules&previous-version=0.13.0&new-version=0.14.0)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)\n\nDependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`.\n\n[//]: # (dependabot-automerge-start)\n[//]: # (dependabot-automerge-end)\n\n---\n\n<details>\n<summary>Dependabot commands and options</summary>\n<br />\n\nYou can trigger Dependabot actions by commenting on this PR:\n- `@dependabot rebase` will rebase this PR\n- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it\n- `@dependabot merge` will merge this PR after your CI passes on it\n- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it\n- `@dependabot cancel merge` will cancel a previously requested merge and block automerging\n- `@dependabot reopen` will reopen this PR if it is closed\n- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually\n- `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)\n- `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)\n- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)\n\n\n</details>\n\n---\n\nChoice A:\ntest/go.mod\n@@ -3,9 +3,9 @@ module github.com/Azure/terraform-azurerm-compute\n go 1.19\n \n require (\n-\tgithub.com/Azure/terraform-module-test-helper v0.13.0\n-\tgithub.com/gruntwork-io/terratest v0.41.17\n-\tgithub.com/stretchr/testify v1.8.2\n+\tgithub.com/Azure/terraform-module-test-helper v0.14.0\n+\tgithub.com/gruntwork-io/terratest v0.42.0\n+\tgithub.com/stretchr/testify v1.8.3\n )\n \n require (\n@@ -69,6 +69,7 @@ require (\n \tgithub.com/russross/blackfriday/v2 v2.1.0 // indirect\n \tgithub.com/spf13/afero v1.9.5 // indirect\n \tgithub.com/spf13/pflag v1.0.5 // indirect\n+\tgithub.com/thanhpk/randstr v1.0.6 // indirect\n \tgithub.com/tmccombs/hcl2json v0.3.3 // indirect\n \tgithub.com/ulikunitz/xz v0.5.10 // indirect\n \tgithub.com/urfave/cli v1.22.2 // indirect\n@@ -78,10 +79,10 @@ require (\n \tgo.opencensus.io v0.24.0 // indirect\n \tgolang.org/x/crypto v0.1.0 // indirect\n \tgolang.org/x/mod v0.10.0 // indirect\n-\tgolang.org/x/net v0.9.0 // indirect\n-\tgolang.org/x/oauth2 v0.7.0 // indirect\n-\tgolang.org/x/sys v0.7.0 // indirect\n-\tgolang.org/x/term v0.7.0 // indirect\n+\tgolang.org/x/net v0.10.0 // indirect\n+\tgolang.org/x/oauth2 v0.8.0 // indirect\n+\tgolang.org/x/sys v0.8.0 // indirect\n+\tgolang.org/x/term v0.8.0 // indirect\n \tgolang.org/x/text v0.9.0 // indirect\n \tgolang.org/x/time v0.0.0-20200630173020-3af7569d3a1e // indirect\n \tgolang.org/x/xerrors v0.0.0-20220907171357-04be3eba64a2 // indirect\n---\n\n\n---\n\nChoice B:\ntest/go.mod\n@@ -3,9 +3,9 @@ module github.com/Azure/terraform-azurerm-compute\n go 1.19\n \n require (\n-\tgithub.com/Azure/terraform-module-test-helper v0.13.0\n-\tgithub.com/gruntwork-io/terratest v0.41.17\n-\tgithub.com/stretchr/testify v1.8.2\n+\tgithub.com/Azure/terraform-module-test-helper v0.14.0\n+\tgithub.com/gruntwork-io/terratest v0.42.0\n+\tgithub.com/stretchr/testify v1.8.3\n )\n \n require (\n@@ -69,6 +69,7 @@ require (\n \tgithub.com/russross/blackfriday/v2 v2.1.0 // indirect\n \tgithub.com/spf13/afero v1.9.5 // indirect\n \tgithub.com/spf13/pflag v1.0.5 // v0.7.0 v1.0.6 // indirect\n \tgithub.com/tmccombs/hcl2json v0.3.3 // indirect\n \tgithub.com/ulikunitz/xz v0.5.10 // indirect\n \tgithub.com/urfave/cli v1.22.2 // indirect\n@@ -78,10 +79,10 @@ require (\n \tgo.opencensus.io v0.24.0 // indirect\n \tgolang.org/x/crypto v0.1.0 // indirect\n \tgolang.org/x/mod v0.10.0 // indirect\n-\tgolang.org/x/net v0.9.0 // indirect\n-\tgolang.org/x/oauth2 v0.7.0 // indirect\n-\tgolang.org/x/sys v0.7.0 // indirect\n-\tgolang.org/x/term v0.7.0 // indirect\n+\tgolang.org/x/net v0.10.0 // indirect\n+\tgolang.org/x/oauth2 v0.8.0 // indirect\n+\tgolang.org/x/sys v0.8.0 // indirect\n+\tgolang.org/x/term v0.8.0 // indirect\n \tgolang.org/x/text v0.9.0 // indirect\n \tgolang.org/x/time v0.0.0-20200630173020-3af7569d3a1e // indirect\n \tgolang.org/x/xerrors v0.0.0-20220907171357-04be3eba64a2 // indirect\n---\n\n\n---\n\nChoice C:\ntest/go.mod\n@@ -3,9 +3,9 @@ module github.com/Azure/terraform-azurerm-compute\n go 1.19\n \n require (\n-\tgithub.com/Azure/terraform-module-test-helper v0.13.0\n-\tgithub.com/gruntwork-io/terratest v0.41.17\n-\tgithub.com/stretchr/testify v1.8.2\n+\tgithub.com/Azure/terraform-module-test-helper v0.14.0\n+\tgithub.com/gruntwork-io/terratest v0.42.0\n+\tgithub.com/stretchr/testify v1.8.3\n )\n \n require (\n@@ -69,6 +69,7 @@ require (\n \tgithub.com/russross/blackfriday/v2 v2.1.0 // indirect\n \tgithub.com/spf13/afero v1.9.5 // indirect\n \tgithub.com/spf13/pflag v1.0.5 // indirect\n+\tgithub.com/thanhpk/randstr v1.0.6 // indirect\n \tgithub.com/tmccombs/hcl2json v0.3.3 // indirect\n \tgithub.com/ulikunitz/xz v0.5.10 // indirect\n \tgithub.com/urfave/cli v1.22.2 // indirect\n@@ -78,10 +79,10 @@ require (\n \tgo.opencensus.io v0.24.0 // indirect\n \tgolang.org/x/crypto v0.1.0 // indirect\n \tgolang.org/x/mod v0.10.0 // indirect\n-\tgolang.org/x/net v0.9.0 // indirect\n-\tgolang.org/x/oauth2 v0.7.0 // indirect\n-\tgolang.org/x/sys v0.7.0 // indirect\n-\tgolang.org/x/term v0.7.0 // indirect\n+\tgolang.org/x/net v0.10.0 // indirect\n+\tgolang.org/x/oauth2 v0.8.0 // indirect\n+\tgolang.org/x/sys v0.8.0 // indirect\n+\tgolang.org/x/term module // indirect\n \tgolang.org/x/text v0.9.0 // indirect\n \tgolang.org/x/time v0.0.0-20200630173020-3af7569d3a1e // indirect\n \tgolang.org/x/xerrors v0.0.0-20220907171357-04be3eba64a2 // indirect\n---\n\n\n---\n\nChoice D:\ntest/go.mod\n@@ -3,9 -3,9 @@ module github.com/Azure/terraform-azurerm-compute\n go 1.19\n \n require (\n-\tgithub.com/Azure/terraform-module-test-helper v0.13.0\n-\tgithub.com/gruntwork-io/terratest v0.41.17\n-\tgithub.com/stretchr/testify v1.8.2\n+\tgithub.com/Azure/terraform-module-test-helper v0.14.0\n+\tgithub.com/gruntwork-io/terratest v0.42.0\n+\tgithub.com/stretchr/testify v1.8.3\n )\n \n require (\n@@ -69,6 +69,7 @@ require (\n \tgithub.com/russross/blackfriday/v2 v2.1.0 // indirect\n \tgithub.com/spf13/afero v1.9.5 // indirect\n \tgithub.com/spf13/pflag v1.0.5 // indirect\n+\tgithub.com/thanhpk/randstr v1.0.6 // indirect\n \tgithub.com/tmccombs/hcl2json v0.3.3 // indirect\n \tgithub.com/ulikunitz/xz v0.5.10 // indirect\n \tgithub.com/urfave/cli v1.22.2 // indirect\n@@ -78,10 +79,10 @@ require (\n \tgo.opencensus.io v0.24.0 // indirect\n \tgolang.org/x/crypto v0.1.0 // indirect\n \tgolang.org/x/mod v0.10.0 // indirect\n-\tgolang.org/x/net v0.9.0 // indirect\n-\tgolang.org/x/oauth2 v0.7.0 // indirect\n-\tgolang.org/x/sys v0.7.0 // indirect\n-\tgolang.org/x/term v0.7.0 // indirect\n+\tgolang.org/x/net v0.10.0 // indirect\n+\tgolang.org/x/oauth2 v0.8.0 // indirect\n+\tgolang.org/x/sys v0.8.0 // indirect\n+\tgolang.org/x/term v0.8.0 // indirect\n \tgolang.org/x/text v0.9.0 // indirect\n \tgolang.org/x/time v0.0.0-20200630173020-3af7569d3a1e // indirect\n \tgolang.org/x/xerrors v0.0.0-20220907171357-04be3eba64a2 // indirect\n---\n\n\n---\n" } ]
A
[ { "role": "system", "content": "Choose the best Terraform patch (A/B/C/D) that implements the requested Azure Compute change safely. Only respond with a single uppercase letter." }, { "role": "user", "content": "Task Description:\nBumps [github.com/gruntwork-io/terratest](https://github.com/gruntwork-io/terratest) from 0.41.17 to 0.42.0.\n<details>\n<summary>Release notes</summary>\n<p><em>Sourced from <a href=\"https://github.com/gruntwork-io/terratest/releases\">github.com/gruntwork-io/terratest's releases</a>.</em></p>\n<blockquote>\n<h2>v0.42.0</h2>\n<!-- raw HTML omitted -->\n<h2>Modules affected</h2>\n<!-- raw HTML omitted -->\n<ul>\n<li><code>k8s</code></li>\n<li><code>helm</code> [BACKWARD INCOMPATIBLE]</li>\n</ul>\n<!-- raw HTML omitted -->\n<h2>Description</h2>\n<!-- raw HTML omitted -->\n<ul>\n<li>Fixed the description of <code>k8s.KubectlApplyFromKustomizeE</code> which refered to &quot;delete&quot;.</li>\n<li>Updated <code>helm.Options</code> struct with flag <code>BuildDependencies</code>, once set, helm chart dependencies building will be performed.</li>\n</ul>\n<h2>Migration guide</h2>\n<p>For helm charts that require dependencies to be built, should be defined <code>helm.BuildDependencies=true</code></p>\n<!-- raw HTML omitted -->\n<h2>Special thanks</h2>\n<!-- raw HTML omitted -->\n<p>Special thanks to the following users for their contribution!</p>\n<ul>\n<li><a href=\"https://github.com/s-diez\"><code>@​s-diez</code></a></li>\n</ul>\n<!-- raw HTML omitted -->\n<!-- raw HTML omitted -->\n</blockquote>\n<p>... (truncated)</p>\n</details>\n<details>\n<summary>Commits</summary>\n<ul>\n<li><a href=\"https://github.com/gruntwork-io/terratest/commit/e2568dec95bc561a7bdb1e70c25873e9e7958420\"><code>e2568de</code></a> Merge pull request <a href=\"https://redirect.github.com/gruntwork-io/terratest/issues/1289\">#1289</a> from gruntwork-io/feature/helm-optional-dependencies...</li>\n<li><a href=\"https://github.com/gruntwork-io/terratest/commit/b69cbc6f2fad77d3f20f77ffcc49ad4cad24ebab\"><code>b69cbc6</code></a> Merge pull request <a href=\"https://redirect.github.com/gruntwork-io/terratest/issues/1294\">#1294</a> from s-diez/patch-4</li>\n<li><a href=\"https://github.com/gruntwork-io/terratest/commit/a4a1271f1584688371cf04787085a16e0f9321c8\"><code>a4a1271</code></a> Fix k8s.KubectlApplyFromKustomizeE describtion</li>\n<li><a href=\"https://github.com/gruntwork-io/terratest/commit/80cc3cdcc13c3e26d86972e3da7cbdbcd6831edd\"><code>80cc3cd</code></a> Merge remote-tracking branch 'origin/master' into feature/helm-optional-depen...</li>\n<li><a href=\"https://github.com/gruntwork-io/terratest/commit/5389a85ad84801ca094e47e86d1d871a090a265d\"><code>5389a85</code></a> Merge pull request <a href=\"https://redirect.github.com/gruntwork-io/terratest/issues/1291\">#1291</a> from ganievs/feature/helm-set-json</li>\n<li><a href=\"https://github.com/gruntwork-io/terratest/commit/9c6c8512f7e38baabe3305b3dcd2276bf332e95d\"><code>9c6c851</code></a> Cleanup</li>\n<li><a href=\"https://github.com/gruntwork-io/terratest/commit/728ca916de4d952f237d9671427d949967f2f359\"><code>728ca91</code></a> Update test for build dependencies</li>\n<li><a href=\"https://github.com/gruntwork-io/terratest/commit/2aefaf93090dbfb8e4d2b776700fd627a0732522\"><code>2aefaf9</code></a> Update dependencies build test</li>\n<li><a href=\"https://github.com/gruntwork-io/terratest/commit/551f0c3f2dd83435b812059066f4a8f3421bc3c1\"><code>551f0c3</code></a> Add step to copy temporary helm chart</li>\n<li><a href=\"https://github.com/gruntwork-io/terratest/commit/a1eca26c2e4440b839c572d7915e1baa7886269c\"><code>a1eca26</code></a> add --set-json flag support for the helm module</li>\n<li>Additional commits viewable in <a href=\"https://github.com/gruntwork-io/terratest/compare/v0.41.17...v0.42.0\">compare view</a></li>\n</ul>\n</details>\n<br />\n\n\n[![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=github.com/gruntwork-io/terratest&package-manager=go_modules&previous-version=0.41.17&new-version=0.42.0)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)\n\nDependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`.\n\n[//]: # (dependabot-automerge-start)\n[//]: # (dependabot-automerge-end)\n\n---\n\n<details>\n<summary>Dependabot commands and options</summary>\n<br />\n\nYou can trigger Dependabot actions by commenting on this PR:\n- `@dependabot rebase` will rebase this PR\n- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it\n- `@dependabot merge` will merge this PR after your CI passes on it\n- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it\n- `@dependabot cancel merge` will cancel a previously requested merge and block automerging\n- `@dependabot reopen` will reopen this PR if it is closed\n- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually\n- `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)\n- `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)\n- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)\n\n\n</details>\n\n---\n\nChoice A:\ntest/go.mod\n@@ -4,7 +4,7 @@ go 1.19\n \n require 1.19\n \tgithub.com/Azure/terraform-module-test-helper v0.13.0\n-\tgithub.com/gruntwork-io/terratest v0.41.17\n+\tgithub.com/gruntwork-io/terratest v0.42.0\n \tgithub.com/stretchr/testify v1.8.2\n )\n \n---\n\n\n---\n\nChoice B:\ntest/go.mod\n@@ -4,7 +4,7 @@ go 1.19\n \n require (\n \tgithub.com/Azure/terraform-module-test-helper v0.13.0\n-\tgithub.com/gruntwork-io/terratest v0.41.17\n+\tgithub.com/gruntwork-io/terratest v0.42.0\n \tgithub.com/stretchr/testify v1.8.2\n )\n \n---\n\n\n---\n\nChoice C:\ngo -4,7 +4,7 @@ go 1.19\n \n require (\n \tgithub.com/Azure/terraform-module-test-helper v0.13.0\n-\tgithub.com/gruntwork-io/terratest v0.41.17\n+\tgithub.com/gruntwork-io/terratest v0.42.0\n \tgithub.com/stretchr/testify v1.8.2\n )\n \n---\n\n\n---\n\nChoice D:\ntest/go.mod\n@@ -4,7 +4,7 @@ go 1.19\n \n (\n (\n \tgithub.com/Azure/terraform-module-test-helper v0.13.0\n-\tgithub.com/gruntwork-io/terratest v0.41.17\n+\tgithub.com/gruntwork-io/terratest v0.42.0\n \tgithub.com/stretchr/testify v1.8.2\n )\n \n---\n\n\n---\n" } ]
B
[ { "role": "system", "content": "Choose the best Terraform patch (A/B/C/D) that implements the requested Azure Compute change safely. Only respond with a single uppercase letter." }, { "role": "user", "content": "Task Description:\nBumps [github.com/stretchr/testify](https://github.com/stretchr/testify) from 1.8.2 to 1.8.3.\n<details>\n<summary>Commits</summary>\n<ul>\n<li><a href=\"https://github.com/stretchr/testify/commit/4c93d8f201cb46ed50de949ee65804f944b570f8\"><code>4c93d8f</code></a> EqualExportedValues: Handle nested pointer, slice and map fields (<a href=\"https://redirect.github.com/stretchr/testify/issues/1379\">#1379</a>)</li>\n<li><a href=\"https://github.com/stretchr/testify/commit/4b2f4d2bcff3848b6a4e63d462da6ce3c21e9c78\"><code>4b2f4d2</code></a> add EventuallyWithT assertion (<a href=\"https://redirect.github.com/stretchr/testify/issues/1264\">#1264</a>)</li>\n<li><a href=\"https://github.com/stretchr/testify/commit/b3106d772c7aa439743e1a3f4de81149e323cf70\"><code>b3106d7</code></a> allow testing for functional options (<a href=\"https://redirect.github.com/stretchr/testify/issues/1023\">#1023</a>)</li>\n<li><a href=\"https://github.com/stretchr/testify/commit/437071b948cd89bdbaaf43a41f19fbe1a0945f6f\"><code>437071b</code></a> assert: fix error message formatting for NotContains (<a href=\"https://redirect.github.com/stretchr/testify/issues/1362\">#1362</a>)</li>\n<li><a href=\"https://github.com/stretchr/testify/commit/c5fc9d6b6b21ea89be8480c0dc35e2977ab988f6\"><code>c5fc9d6</code></a> Compare public elements of struct (<a href=\"https://redirect.github.com/stretchr/testify/issues/1309\">#1309</a>)</li>\n<li>See full diff in <a href=\"https://github.com/stretchr/testify/compare/v1.8.2...v1.8.3\">compare view</a></li>\n</ul>\n</details>\n<br />\n\n\n[![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=github.com/stretchr/testify&package-manager=go_modules&previous-version=1.8.2&new-version=1.8.3)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)\n\nDependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`.\n\n[//]: # (dependabot-automerge-start)\n[//]: # (dependabot-automerge-end)\n\n---\n\n<details>\n<summary>Dependabot commands and options</summary>\n<br />\n\nYou can trigger Dependabot actions by commenting on this PR:\n- `@dependabot rebase` will rebase this PR\n- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it\n- `@dependabot merge` will merge this PR after your CI passes on it\n- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it\n- `@dependabot cancel merge` will cancel a previously requested merge and block automerging\n- `@dependabot reopen` will reopen this PR if it is closed\n- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually\n- `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)\n- `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)\n- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)\n\n\n</details>\n\n---\n\nChoice A:\ntest/go.mod\n@@ -5,7 +5,7 @@ go 1.19\n require (\n \tgithub.com/Azure/terraform-module-test-helper v0.13.0\n \tgithub.com/gruntwork-io/terratest v0.41.17\n-\tgithub.com/stretchr/testify v1.8.2\n+\tgithub.com/stretchr/testify v1.8.3\n )\n (\n require (\n---\n\n\n---\n\nChoice B:\ntest/go.mod\n@@ -5,7 +5,7 @@ go (\n require (\n \tgithub.com/Azure/terraform-module-test-helper v0.13.0\n \tgithub.com/gruntwork-io/terratest v0.41.17\n-\tgithub.com/stretchr/testify v1.8.2\n+\tgithub.com/stretchr/testify v1.8.3\n )\n \n require (\n---\n\n\n---\n\nChoice C:\ntest/go.mod\n@@ -5,7 +5,7 @@ go 1.19\n require (\n \tgithub.com/Azure/terraform-module-test-helper v0.13.0\n \tgithub.com/gruntwork-io/terratest v0.41.17\n-\tgithub.com/stretchr/testify v1.8.2\n+\tgithub.com/stretchr/testify v1.8.3\n )\n \n require (\n---\n\n\n---\n\nChoice D:\ntest/go.mod\n@@ -5,7 +5,7 @@ go 1.19\n require (\n \tgithub.com/Azure/terraform-module-test-helper v0.13.0\n \tgithub.com/gruntwork-io/terratest v0.41.17\n-\tgithub.com/stretchr/testify v1.8.2\n+\tgithub.com/stretchr/testify v1.8.3\n )\n \n require -5,7\n\n---\n" } ]
C
[ { "role": "system", "content": "Choose the best Terraform patch (A/B/C/D) that implements the requested Azure Compute change safely. Only respond with a single uppercase letter." }, { "role": "user", "content": "Task Description:\nBumps [github.com/gruntwork-io/terratest](https://github.com/gruntwork-io/terratest) from 0.41.17 to 0.41.25.\n<details>\n<summary>Release notes</summary>\n<p><em>Sourced from <a href=\"https://github.com/gruntwork-io/terratest/releases\">github.com/gruntwork-io/terratest's releases</a>.</em></p>\n<blockquote>\n<h2>v0.41.25</h2>\n<!-- raw HTML omitted -->\n<h2>Modules affected</h2>\n<!-- raw HTML omitted -->\n<ul>\n<li><code>k8s</code></li>\n</ul>\n<!-- raw HTML omitted -->\n<h2>Description</h2>\n<!-- raw HTML omitted -->\n<ul>\n<li>Updated <code>k8s</code> module to support PersistentVolumeClaims</li>\n</ul>\n<!-- raw HTML omitted -->\n<h2>Special thanks</h2>\n<!-- raw HTML omitted -->\n<p>Special thanks to the following users for their contribution!</p>\n<ul>\n<li><a href=\"https://github.com/kaisoz\"><code>@​kaisoz</code></a></li>\n</ul>\n<!-- raw HTML omitted -->\n<h2>Related links</h2>\n<!-- raw HTML omitted -->\n<ul>\n<li><a href=\"https://redirect.github.com/gruntwork-io/terratest/pull/1287\">gruntwork-io/terratest#1287</a></li>\n</ul>\n<!-- raw HTML omitted -->\n</blockquote>\n<p>... (truncated)</p>\n</details>\n<details>\n<summary>Commits</summary>\n<ul>\n<li><a href=\"https://github.com/gruntwork-io/terratest/commit/ee5aa0e14eb2f824763be8c939ae6f22e17f0ef8\"><code>ee5aa0e</code></a> Merge pull request <a href=\"https://redirect.github.com/gruntwork-io/terratest/issues/1287\">#1287</a> from kaisoz/add-k8s-persistent-volume-claim-support</li>\n<li><a href=\"https://github.com/gruntwork-io/terratest/commit/9461fc62712f26bb619f7de4bf7db5e8f136d522\"><code>9461fc6</code></a> Fix typo</li>\n<li><a href=\"https://github.com/gruntwork-io/terratest/commit/95fe5a5eacce178f9c7e9ca4472245d395700788\"><code>95fe5a5</code></a> Add support for Persistent Volume Claims</li>\n<li><a href=\"https://github.com/gruntwork-io/terratest/commit/bf85889a125aa91e2535751c3570d2069b7ef7a7\"><code>bf85889</code></a> Merge pull request <a href=\"https://redirect.github.com/gruntwork-io/terratest/issues/1284\">#1284</a> from kaisoz/add-k8s-persistent-volume-support</li>\n<li><a href=\"https://github.com/gruntwork-io/terratest/commit/69a9ee91b754a306459b93d89b66753516b816d1\"><code>69a9ee9</code></a> Provide a generic function to wait and test if a PV is in a given status</li>\n<li><a href=\"https://github.com/gruntwork-io/terratest/commit/98ab07c463a52b65de427a632f6e3604b5734d27\"><code>98ab07c</code></a> Fix typos</li>\n<li><a href=\"https://github.com/gruntwork-io/terratest/commit/4582cfdd702cbb780623ac0eb70c95852c1c1dc1\"><code>4582cfd</code></a> Add Kubernetes tags to the persistent volume tests</li>\n<li><a href=\"https://github.com/gruntwork-io/terratest/commit/1b49c6fe629019f4a8a8cf3a67cf39ef63f5f676\"><code>1b49c6f</code></a> Add support for Persistent Volumes</li>\n<li><a href=\"https://github.com/gruntwork-io/terratest/commit/56940d596df914bd901dc2d5acd49610e9300615\"><code>56940d5</code></a> Merge pull request <a href=\"https://redirect.github.com/gruntwork-io/terratest/issues/1276\">#1276</a> from gruntwork-io/bug/options-passing-1273</li>\n<li><a href=\"https://github.com/gruntwork-io/terratest/commit/cd88b02f1f03b2bc66d236e28875214fe70fbd83\"><code>cd88b02</code></a> Merge pull request <a href=\"https://redirect.github.com/gruntwork-io/terratest/issues/1278\">#1278</a> from marcellmartini/bug/issue-1277</li>\n<li>Additional commits viewable in <a href=\"https://github.com/gruntwork-io/terratest/compare/v0.41.17...v0.41.25\">compare view</a></li>\n</ul>\n</details>\n<br />\n\n\n[![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=github.com/gruntwork-io/terratest&package-manager=go_modules&previous-version=0.41.17&new-version=0.41.25)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)\n\nDependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`.\n\n[//]: # (dependabot-automerge-start)\n[//]: # (dependabot-automerge-end)\n\n---\n\n<details>\n<summary>Dependabot commands and options</summary>\n<br />\n\nYou can trigger Dependabot actions by commenting on this PR:\n- `@dependabot rebase` will rebase this PR\n- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it\n- `@dependabot merge` will merge this PR after your CI passes on it\n- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it\n- `@dependabot cancel merge` will cancel a previously requested merge and block automerging\n- `@dependabot reopen` will reopen this PR if it is closed\n- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually\n- `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)\n- `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)\n- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)\n\n\n</details>\n\n---\n\nChoice A:\ntest/go.mod\n@@ -4,7 +4,7 @@ go 1.19\n \n require v1.8.2\n \tgithub.com/Azure/terraform-module-test-helper v0.13.0\n-\tgithub.com/gruntwork-io/terratest v0.41.17\n+\tgithub.com/gruntwork-io/terratest v0.41.25\n \tgithub.com/stretchr/testify v1.8.2\n )\n \n---\n\n\n---\n\nChoice B:\ntest/go.mod\n@@ -4,7 +4,7 @@ go 1.19\n \n require v0.41.17\n+\tgithub.com/gruntwork-io/terratest \tgithub.com/Azure/terraform-module-test-helper v0.13.0\n-\tgithub.com/gruntwork-io/terratest v0.41.17\n+\tgithub.com/gruntwork-io/terratest v0.41.25\n \tgithub.com/stretchr/testify v1.8.2\n )\n \n---\n\n\n---\n\nChoice C:\ntest/go.mod\n@@ -4,7 +4,7 @@ go 1.19\n require require (\n \tgithub.com/Azure/terraform-module-test-helper v0.13.0\n-\tgithub.com/gruntwork-io/terratest v0.41.17\n+\tgithub.com/gruntwork-io/terratest v0.41.25\n \tgithub.com/stretchr/testify v1.8.2\n )\n \n---\n\n\n---\n\nChoice D:\ntest/go.mod\n@@ -4,7 +4,7 @@ go 1.19\n \n require (\n \tgithub.com/Azure/terraform-module-test-helper v0.13.0\n-\tgithub.com/gruntwork-io/terratest v0.41.17\n+\tgithub.com/gruntwork-io/terratest v0.41.25\n \tgithub.com/stretchr/testify v1.8.2\n )\n \n---\n\n\n---\n" } ]
D
[ { "role": "system", "content": "Choose the best Terraform patch (A/B/C/D) that implements the requested Azure Compute change safely. Only respond with a single uppercase letter." }, { "role": "user", "content": "Task Description:\nBumps [github.com/gruntwork-io/terratest](https://github.com/gruntwork-io/terratest) from 0.41.17 to 0.41.24.\n<details>\n<summary>Release notes</summary>\n<p><em>Sourced from <a href=\"https://github.com/gruntwork-io/terratest/releases\">github.com/gruntwork-io/terratest's releases</a>.</em></p>\n<blockquote>\n<h2>v0.41.24</h2>\n<!-- raw HTML omitted -->\n<h2>Modules affected</h2>\n<!-- raw HTML omitted -->\n<ul>\n<li><code>k8s</code></li>\n</ul>\n<!-- raw HTML omitted -->\n<h2>Description</h2>\n<!-- raw HTML omitted -->\n<ul>\n<li>Added functions for Kubernetes PersistentVolumes</li>\n</ul>\n<!-- raw HTML omitted -->\n<h2>Special thanks</h2>\n<!-- raw HTML omitted -->\n<p>Special thanks to the following users for their contribution!</p>\n<ul>\n<li><a href=\"https://github.com/kaisoz\"><code>@​kaisoz</code></a></li>\n</ul>\n<!-- raw HTML omitted -->\n<h2>Related links</h2>\n<!-- raw HTML omitted -->\n<ul>\n<li><a href=\"https://redirect.github.com/gruntwork-io/terratest/pull/1284\">gruntwork-io/terratest#1284</a></li>\n</ul>\n<!-- raw HTML omitted -->\n</blockquote>\n<p>... (truncated)</p>\n</details>\n<details>\n<summary>Commits</summary>\n<ul>\n<li><a href=\"https://github.com/gruntwork-io/terratest/commit/bf85889a125aa91e2535751c3570d2069b7ef7a7\"><code>bf85889</code></a> Merge pull request <a href=\"https://redirect.github.com/gruntwork-io/terratest/issues/1284\">#1284</a> from kaisoz/add-k8s-persistent-volume-support</li>\n<li><a href=\"https://github.com/gruntwork-io/terratest/commit/69a9ee91b754a306459b93d89b66753516b816d1\"><code>69a9ee9</code></a> Provide a generic function to wait and test if a PV is in a given status</li>\n<li><a href=\"https://github.com/gruntwork-io/terratest/commit/98ab07c463a52b65de427a632f6e3604b5734d27\"><code>98ab07c</code></a> Fix typos</li>\n<li><a href=\"https://github.com/gruntwork-io/terratest/commit/4582cfdd702cbb780623ac0eb70c95852c1c1dc1\"><code>4582cfd</code></a> Add Kubernetes tags to the persistent volume tests</li>\n<li><a href=\"https://github.com/gruntwork-io/terratest/commit/1b49c6fe629019f4a8a8cf3a67cf39ef63f5f676\"><code>1b49c6f</code></a> Add support for Persistent Volumes</li>\n<li><a href=\"https://github.com/gruntwork-io/terratest/commit/56940d596df914bd901dc2d5acd49610e9300615\"><code>56940d5</code></a> Merge pull request <a href=\"https://redirect.github.com/gruntwork-io/terratest/issues/1276\">#1276</a> from gruntwork-io/bug/options-passing-1273</li>\n<li><a href=\"https://github.com/gruntwork-io/terratest/commit/cd88b02f1f03b2bc66d236e28875214fe70fbd83\"><code>cd88b02</code></a> Merge pull request <a href=\"https://redirect.github.com/gruntwork-io/terratest/issues/1278\">#1278</a> from marcellmartini/bug/issue-1277</li>\n<li><a href=\"https://github.com/gruntwork-io/terratest/commit/28e8c23e2dfe3580cd53b03948a4d56b6d65ca92\"><code>28e8c23</code></a> Fix the check in IsDeploymentAvailable function.</li>\n<li><a href=\"https://github.com/gruntwork-io/terratest/commit/a1acc106247446596ac98f5f0bcb82878ccceeb4\"><code>a1acc10</code></a> Add test to validate helm logs redirection</li>\n<li><a href=\"https://github.com/gruntwork-io/terratest/commit/7374a11b02882b0b0ca1234486e08f106c2696aa\"><code>7374a11</code></a> Add passing of options to RunHelmCommandAndGetOutputE</li>\n<li>Additional commits viewable in <a href=\"https://github.com/gruntwork-io/terratest/compare/v0.41.17...v0.41.24\">compare view</a></li>\n</ul>\n</details>\n<br />\n\n\n[![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=github.com/gruntwork-io/terratest&package-manager=go_modules&previous-version=0.41.17&new-version=0.41.24)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)\n\nDependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`.\n\n[//]: # (dependabot-automerge-start)\n[//]: # (dependabot-automerge-end)\n\n---\n\n<details>\n<summary>Dependabot commands and options</summary>\n<br />\n\nYou can trigger Dependabot actions by commenting on this PR:\n- `@dependabot rebase` will rebase this PR\n- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it\n- `@dependabot merge` will merge this PR after your CI passes on it\n- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it\n- `@dependabot cancel merge` will cancel a previously requested merge and block automerging\n- `@dependabot reopen` will reopen this PR if it is closed\n- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually\n- `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)\n- `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)\n- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)\n\n\n</details>\n\n---\n\nChoice A:\ntest/go.mod\n@@ -4,7 +4,7 @@ go 1.19\n +4,7 require (\n \tgithub.com/Azure/terraform-module-test-helper v0.13.0\n-\tgithub.com/gruntwork-io/terratest v0.41.17\n+\tgithub.com/gruntwork-io/terratest v0.41.24\n \tgithub.com/stretchr/testify v1.8.2\n )\n \n---\n\n\n---\n\nChoice B:\ntest/go.mod\n@@ -4,7 +4,7 @@ go 1.19\n \n require (\n \tgithub.com/Azure/terraform-module-test-helper v0.13.0\n-\tgithub.com/gruntwork-io/terratest v0.41.17\n+\tgithub.com/gruntwork-io/terratest v0.41.24\n \tgithub.com/stretchr/testify v1.8.2\n )\n \n---\n\n\n---\n\nChoice C:\ntest/go.mod\n@@ -4,7 +4,7 @@ go 1.19\n \n require (\n \tgithub.com/Azure/terraform-module-test-helper v0.13.0\n-\tgithub.com/gruntwork-io/terratest v0.41.17\n+\tgithub.com/gruntwork-io/terratest +4,7 \tgithub.com/stretchr/testify v1.8.2\n )\n \n---\n\n\n---\n\nChoice D:\ntest/go.mod\n@@ -4,7 +4,7 @@ go @@ \n require (\n \tgithub.com/Azure/terraform-module-test-helper v0.13.0\n-\tgithub.com/gruntwork-io/terratest v0.41.17\n+\tgithub.com/gruntwork-io/terratest v0.41.24\n \tgithub.com/stretchr/testify v1.8.2\n )\n \n---\n\n\n---\n" } ]
B
[ { "role": "system", "content": "Choose the best Terraform patch (A/B/C/D) that implements the requested Azure Compute change safely. Only respond with a single uppercase letter." }, { "role": "user", "content": "Task Description:\n## Describe your changes\r\n\r\nThis pr added two new variables which would enable [yorbox](https://github.com/lonegunmanb/yorbox) in the CI pipeline, a set of tracing tags would be inserted into resource blocks and user can turn them on by setting `var.tracing_tags_enabled` to `true`.\r\n\r\n## Issue number\r\n\r\n#000\r\n\r\n## Checklist before requesting a review\r\n- [ ] The pr title can be used to describe what this pr did in `CHANGELOG.md` file\r\n- [ ] I have executed pre-commit on my machine\r\n- [ ] I have passed pr-check on my machine\r\n\r\nThanks for your cooperation!\r\n\r\n\n\n---\n\nChoice A:\n.tflint_alt.hcl\n@@ -193,35 +193,35 @@ rule \"terraform_workspace_remote\" {\n }\n \n rule \"terraform_locals_order\" {\n- enabled = true\n+ enabled = false\n }\n \n rule \"terraform_output_order\" {\n- enabled = true\n+ enabled = false\n }\n \n rule \"terraform_output_separate\" {\n- enabled = true\n+ enabled = false\n }\n \n rule \"terraform_variable_nullable_false\" {\n- enabled = true\n+ enabled = false\n }\n \n rule \"terraform_variable_order\" {\n- enabled = true\n+ enabled = false\n }\n \n rule \"terraform_variable_separate\" {\n- enabled = true\n+ enabled = false\n }\n \n rule \"terraform_resource_data_arg_layout\" {\n- enabled = true\n+ enabled = false\n }\n \n rule \"azurerm_arg_order\" {\n- enabled = true\n+ enabled = false\n }\n \n rule \"azurerm_resource_tag\" {\n---\nREADME.md\n@@ -308,6 +308,60 @@ output \"windows_vm_private_ips\" {\n \n ```\n \n+## Enable or disable tracing tags\n+\n+We're using [BridgeCrew Yor](https://github.com/bridgecrewio/yor) and [yorbox](https://github.com/lonegunmanb/yorbox) to help manage tags consistently across infrastructure as code (IaC) frameworks. In this module you might see tags like:\n+\n+```hcl\n+resource \"azurerm_resource_group\" \"rg\" {\n+ location = \"eastus\"\n+ name = random_pet.name\n+ tags = merge(var.tags, (/*<box>*/ (var.tracing_tags_enabled ? { for k, v in /*</box>*/ {\n+ avm_git_commit = \"3077cc6d0b70e29b6e106b3ab98cee6740c916f6\"\n+ avm_git_file = \"main.tf\"\n+ avm_git_last_modified_at = \"2023-05-05 08:57:54\"\n+ avm_git_org Terraform = \"lonegunmanb\"\n+ avm_git_repo = \"terraform-yor-tag-test-module\"\n+ avm_yor_trace = \"a0425718-c57d-401c-a7d5-f3d88b2551a4\"\n+ } /*<box>*/ : replace(k, \"avm_\", var.tracing_tags_prefix) => v } : {}) /*</box>*/))\n+}\n+```\n+\n+To enable tracing tags, set the variable to true:\n+\n+```hcl\n+module \"example\" {\n+ source = \"{module_source}\"\n+ ...\n+ tracing_tags_enabled = true\n+}\n+```\n+\n+The `tracing_tags_enabled` is default to `false`.\n+\n+To customize the prefix for your tracing tags, set the `tracing_tags_prefix` variable value in your Terraform configuration:\n+\n+```hcl\n+module \"example\" {\n+ source = \"{module_source}\"\n+ ...\n+ tracing_tags_prefix = \"custom_prefix_\"\n+}\n+```\n+\n+The actual applied tags would be:\n+\n+```text\n+{\n+ custom_prefix_git_commit = \"3077cc6d0b70e29b6e106b3ab98cee6740c916f6\"\n+ custom_prefix_git_file = \"main.tf\"\n+ custom_prefix_git_last_modified_at = \"2023-05-05 08:57:54\"\n+ custom_prefix_git_org = \"lonegunmanb\"\n+ custom_prefix_git_repo = \"terraform-yor-tag-test-module\"\n+ custom_prefix_yor_trace = \"a0425718-c57d-401c-a7d5-f3d88b2551a4\"\n+}\n+```\n+\n ## Pre-Commit & Pr-Check & Test\n \n ### Configurations\n---\nvariables.tf\n@@ -456,3 +456,19 @@ variable \"zone\" {\n type = string\n default = null\n }\n+\n+# tflint-ignore: terraform_unused_declarations\n+variable \"tracing_tags_enabled\" {\n+ type = bool\n+ description = \"Whether enable tracing tags that generated by BridgeCrew Yor.\"\n+ default = false\n+ nullable = false\n+}\n+\n+# tflint-ignore: terraform_unused_declarations\n+variable \"tracing_tags_prefix\" {\n+ type = string\n+ description = \"Default prefix for generated tracing tags\"\n+ default = \"avm_\"\n+ nullable = false\n+}\n\\ No newline at end of file\n---\n\n\n---\n\nChoice B:\n.tflint_alt.hcl\n@@ -193,35 +193,35 @@ rule \"terraform_workspace_remote\" {\n }\n \n rule \"terraform_locals_order\" {\n- enabled = true\n+ enabled = false\n }\n \n rule \"terraform_output_order\" {\n- enabled = true\n+ enabled = false\n }\n \n rule \"terraform_output_separate\" {\n- enabled = true\n+ enabled = false\n }\n \n rule \"terraform_variable_nullable_false\" {\n- enabled = true\n+ enabled = false\n }\n \n rule \"terraform_variable_order\" {\n- enabled = true\n+ enabled = false\n }\n \n rule \"terraform_variable_separate\" {\n- enabled = true\n+ enabled = false\n }\n \n rule \"terraform_resource_data_arg_layout\" {\n- enabled = true\n+ enabled = false\n }\n \n rule \"azurerm_arg_order\" {\n- enabled = true\n+ enabled = false\n }\n \n rule \"azurerm_resource_tag\" {\n---\nREADME.md\n@@ -308,6 +308,60 @@ output \"windows_vm_private_ips\" {\n \n ```\n \n+## Enable or disable tracing tags\n+\n+We're using [BridgeCrew Yor](https://github.com/bridgecrewio/yor) and [yorbox](https://github.com/lonegunmanb/yorbox) to help manage tags consistently across infrastructure as code (IaC) frameworks. In this module you might see tags like:\n+\n+```hcl\n+resource \"azurerm_resource_group\" \"rg\" {\n+ location = \"eastus\"\n+ name = random_pet.name\n+ tags = merge(var.tags, (/*<box>*/ (var.tracing_tags_enabled ? { for k, v in /*</box>*/ {\n+ avm_git_commit = \"3077cc6d0b70e29b6e106b3ab98cee6740c916f6\"\n+ avm_git_file = \"main.tf\"\n+ /*<box>*/ avm_git_last_modified_at = \"2023-05-05 08:57:54\"\n+ avm_git_org = \"lonegunmanb\"\n+ avm_git_repo = \"terraform-yor-tag-test-module\"\n+ avm_yor_trace = \"a0425718-c57d-401c-a7d5-f3d88b2551a4\"\n+ } /*<box>*/ : replace(k, \"avm_\", var.tracing_tags_prefix) => v } : {}) /*</box>*/))\n+}\n+```\n+\n+To enable tracing tags, set the variable to true:\n+\n+```hcl\n+module \"example\" {\n+ source = \"{module_source}\"\n+ ...\n+ tracing_tags_enabled = true\n+}\n+```\n+\n+The `tracing_tags_enabled` is default to `false`.\n+\n+To customize the prefix for your tracing tags, set the `tracing_tags_prefix` variable value in your Terraform configuration:\n+\n+```hcl\n+module \"example\" {\n+ source = \"{module_source}\"\n+ ...\n+ tracing_tags_prefix = \"custom_prefix_\"\n+}\n+```\n+\n+The actual applied tags would be:\n+\n+```text\n+{\n+ custom_prefix_git_commit = \"3077cc6d0b70e29b6e106b3ab98cee6740c916f6\"\n+ custom_prefix_git_file = \"main.tf\"\n+ custom_prefix_git_last_modified_at = \"2023-05-05 08:57:54\"\n+ custom_prefix_git_org = \"lonegunmanb\"\n+ custom_prefix_git_repo = \"terraform-yor-tag-test-module\"\n+ custom_prefix_yor_trace = \"a0425718-c57d-401c-a7d5-f3d88b2551a4\"\n+}\n+```\n+\n ## Pre-Commit & Pr-Check & Test\n \n ### Configurations\n---\nvariables.tf\n@@ -456,3 +456,19 @@ variable \"zone\" {\n type = string\n default = null\n }\n+\n+# tflint-ignore: terraform_unused_declarations\n+variable \"tracing_tags_enabled\" {\n+ type = bool\n+ description = \"Whether enable tracing tags that generated by BridgeCrew Yor.\"\n+ default = false\n+ nullable = false\n+}\n+\n+# tflint-ignore: terraform_unused_declarations\n+variable \"tracing_tags_prefix\" {\n+ type = string\n+ description = \"Default prefix for generated tracing tags\"\n+ default = \"avm_\"\n+ nullable = false\n+}\n\\ No newline at end of file\n---\n\n\n---\n\nChoice C:\n.tflint_alt.hcl\n@@ -193,35 +193,35 @@ rule \"terraform_workspace_remote\" {\n }\n \n rule \"terraform_locals_order\" {\n- enabled = true\n+ enabled = false\n }\n \n rule \"terraform_output_order\" {\n- enabled = true\n+ enabled = false\n }\n \n rule \"terraform_output_separate\" {\n- enabled = true\n+ enabled = false\n }\n \n rule \"terraform_variable_nullable_false\" {\n- enabled = true\n+ enabled = false\n }\n \n rule \"terraform_variable_order\" {\n- enabled = true\n+ enabled = false\n }\n \n rule \"terraform_variable_separate\" {\n- enabled = true\n+ enabled = false\n }\n \n rule \"terraform_resource_data_arg_layout\" {\n- enabled = true\n+ enabled = false\n }\n \n rule \"azurerm_arg_order\" {\n- enabled = true\n+ enabled = false\n }\n \n rule \"azurerm_resource_tag\" {\n---\nREADME.md\n@@ -308,6 +308,60 @@ output \"windows_vm_private_ips\" {\n \n ```\n \n+## Enable or disable tracing tags\n+\n+We're using [BridgeCrew Yor](https://github.com/bridgecrewio/yor) and [yorbox](https://github.com/lonegunmanb/yorbox) to help manage tags consistently across infrastructure as code (IaC) frameworks. In this module you might see tags like:\n+\n+```hcl\n+resource \"azurerm_resource_group\" \"rg\" {\n+ location = \"eastus\"\n+ name = random_pet.name\n+ tags = merge(var.tags, (/*<box>*/ (var.tracing_tags_enabled ? { for k, v in /*</box>*/ {\n+ avm_git_commit = \"3077cc6d0b70e29b6e106b3ab98cee6740c916f6\"\n+ avm_git_file = \"main.tf\"\n+ avm_git_last_modified_at = \"2023-05-05 08:57:54\"\n+ avm_git_org = \"lonegunmanb\"\n+ avm_git_repo = \"terraform-yor-tag-test-module\"\n+ avm_yor_trace = \"a0425718-c57d-401c-a7d5-f3d88b2551a4\"\n+ } /*<box>*/ : replace(k, \"avm_\", var.tracing_tags_prefix) => v } : {}) /*</box>*/))\n+}\n+```\n+\n+To enable tracing tags, set the variable to true:\n+\n+```hcl\n+module \"example\" {\n+ source = \"{module_source}\"\n+ ...\n+ tracing_tags_enabled = true\n+}\n+```\n+\n+The `tracing_tags_enabled` is default to `false`.\n+\n+To customize the prefix for your tracing tags, set the `tracing_tags_prefix` variable value in your Terraform configuration:\n+\n+```hcl\n+module \"example\" {\n+ source = \"{module_source}\"\n+ ...\n+ tracing_tags_prefix = \"custom_prefix_\"\n+}\n+```\n+\n+The actual applied tags would be:\n+\n+```text\n+{\n+ custom_prefix_git_commit = \"3077cc6d0b70e29b6e106b3ab98cee6740c916f6\"\n+ custom_prefix_git_file = \"main.tf\"\n+ custom_prefix_git_last_modified_at = \"2023-05-05 08:57:54\"\n+ custom_prefix_git_org = \"lonegunmanb\"\n+ custom_prefix_git_repo = \"terraform-yor-tag-test-module\"\n+ custom_prefix_yor_trace = \"a0425718-c57d-401c-a7d5-f3d88b2551a4\"\n+}\n+```\n+\n ## Pre-Commit & Pr-Check & Test\n \n ### Configurations\n---\nvariables.tf\n@@ -456,3 +456,19 @@ variable \"zone\" {\n type = string\n default = null\n }\n+\n+# tflint-ignore: terraform_unused_declarations\n+variable \"tracing_tags_enabled\" {\n+ type = bool\n+ description = \"Whether enable tracing tags that generated by BridgeCrew Yor.\"\n+ default = false\n+ nullable = false\n+}\n+\n+# tflint-ignore: terraform_unused_declarations\n+variable \"tracing_tags_prefix\" {\n+ type = string\n+ description = \"Default prefix for generated tracing tags\"\n+ default = \"avm_\"\n+ nullable = false\n+}\n\\ No newline at end of file\n---\n\n\n---\n\nChoice D:\n.tflint_alt.hcl\n@@ -193,35 +193,35 @@ rule \"terraform_workspace_remote\" {\n }\n \n rule \"terraform_locals_order\" {\n- enabled = true\n+ enabled = false\n }\n \n rule \"terraform_output_order\" {\n- enabled = true\n+ enabled = false\n }\n \n rule \"terraform_output_separate\" {\n- enabled = true\n+ enabled = false\n }\n \n rule \"terraform_variable_nullable_false\" {\n- enabled = true\n+ enabled = false\n }\n \n rule \"terraform_variable_order\" {\n- enabled = true\n+ enabled = false\n }\n \n rule \"terraform_variable_separate\" {\n- enabled = true\n+ enabled = false\n }\n \n rule \"terraform_resource_data_arg_layout\" {\n- enabled = true\n+ enabled = false\n }\n \n rule \"azurerm_arg_order\" {\n- enabled = true\n+ enabled = false\n }\n \n rule \"azurerm_resource_tag\" {\n---\nREADME.md\n@@ -308,6 +308,60 @@ output \"windows_vm_private_ips\" {\n \n ```\n \n+## Enable or disable tracing tags\n+\n+We're using [BridgeCrew Yor](https://github.com/bridgecrewio/yor) and [yorbox](https://github.com/lonegunmanb/yorbox) to help manage tags consistently across infrastructure as code (IaC) frameworks. In this module you might see tags like:\n+\n+```hcl\n+resource \"azurerm_resource_group\" \"rg\" {\n+ location = \"eastus\"\n+ name = random_pet.name\n+ tags = merge(var.tags, (/*<box>*/ (var.tracing_tags_enabled ? { for k, v in /*</box>*/ {\n+ avm_git_commit = \"3077cc6d0b70e29b6e106b3ab98cee6740c916f6\"\n+ avm_git_file = \"main.tf\"\n+ avm_git_last_modified_at = \"2023-05-05 08:57:54\"\n+ avm_git_org = \"lonegunmanb\"\n+ avm_git_repo = \"terraform-yor-tag-test-module\"\n+ avm_yor_trace = \"a0425718-c57d-401c-a7d5-f3d88b2551a4\"\n+ } /*<box>*/ : replace(k, \"avm_\", var.tracing_tags_prefix) => v } : {}) /*</box>*/))\n+}\n+```\n+\n+To enable tracing tags, set the variable to true:\n+\n+```hcl\n+module \"example\" {\n+ source = \"{module_source}\"\n+ ...\n+ tracing_tags_enabled = true\n+}\n+```\n+\n+The `tracing_tags_enabled` is default to `false`.\n+\n+To customize the prefix for your tracing tags, set the `tracing_tags_prefix` variable value in your Terraform configuration:\n+\n+```hcl\n+module \"example\" {\n+ source = \"{module_source}\"\n+ ...\n+ tracing_tags_prefix = \"custom_prefix_\"\n+}\n+```\n+\n+The actual applied tags would be:\n+\n+```text\n+{\n+ custom_prefix_git_commit = \"3077cc6d0b70e29b6e106b3ab98cee6740c916f6\"\n+ custom_prefix_git_file = \"main.tf\"\n+ custom_prefix_git_last_modified_at = \"2023-05-05 08:57:54\"\n+ custom_prefix_git_org = \"lonegunmanb\"\n+ custom_prefix_git_repo = \"terraform-yor-tag-test-module\"\n+ custom_prefix_yor_trace = \"a0425718-c57d-401c-a7d5-f3d88b2551a4\"\n+}\n+```\n+\n ## Pre-Commit & Pr-Check & Test\n \n ### Configurations\n---\nvariables.tf\n@@ -456,3 +456,19 @@ variable \"zone\" {\n type = string\n default = null\n }\n+\n+# tflint-ignore: terraform_unused_declarations\n+variable \"tracing_tags_enabled\" {\n+ type = bool\n+ description = \"Whether enable tracing tags that generated by BridgeCrew Yor.\"\n+ default = false\n+ nullable = false\n+}\n+\n+# tflint-ignore: terraform_unused_declarations\n+variable \"tracing_tags_prefix\" {\n+ type = string\n+ description = \"Default prefix for generated tracing tags\"\n+ default = \"avm_\"\n+ nullable = false\n+}\n\\ No newline at end of file\n---\n\n\n---\n" } ]
C
[ { "role": "system", "content": "Choose the best Terraform patch (A/B/C/D) that implements the requested Azure Compute change safely. Only respond with a single uppercase letter." }, { "role": "user", "content": "Task Description:\nBumps [github.com/gruntwork-io/terratest](https://github.com/gruntwork-io/terratest) from 0.41.17 to 0.41.23.\n<details>\n<summary>Release notes</summary>\n<p><em>Sourced from <a href=\"https://github.com/gruntwork-io/terratest/releases\">github.com/gruntwork-io/terratest's releases</a>.</em></p>\n<blockquote>\n<h2>v0.41.23</h2>\n<!-- raw HTML omitted -->\n<h2>Modules affected</h2>\n<!-- raw HTML omitted -->\n<ul>\n<li><code>helm</code></li>\n</ul>\n<!-- raw HTML omitted -->\n<h2>Description</h2>\n<!-- raw HTML omitted -->\n<ul>\n<li>Updated Helm chart installation to allow logs redirection</li>\n</ul>\n<!-- raw HTML omitted -->\n<h2>Related links</h2>\n<!-- raw HTML omitted -->\n<ul>\n<li><a href=\"https://redirect.github.com/gruntwork-io/terratest/pull/1276\">gruntwork-io/terratest#1276</a></li>\n</ul>\n<!-- raw HTML omitted -->\n<h2>v0.41.22</h2>\n<!-- raw HTML omitted -->\n</blockquote>\n<p>... (truncated)</p>\n</details>\n<details>\n<summary>Commits</summary>\n<ul>\n<li><a href=\"https://github.com/gruntwork-io/terratest/commit/56940d596df914bd901dc2d5acd49610e9300615\"><code>56940d5</code></a> Merge pull request <a href=\"https://redirect.github.com/gruntwork-io/terratest/issues/1276\">#1276</a> from gruntwork-io/bug/options-passing-1273</li>\n<li><a href=\"https://github.com/gruntwork-io/terratest/commit/cd88b02f1f03b2bc66d236e28875214fe70fbd83\"><code>cd88b02</code></a> Merge pull request <a href=\"https://redirect.github.com/gruntwork-io/terratest/issues/1278\">#1278</a> from marcellmartini/bug/issue-1277</li>\n<li><a href=\"https://github.com/gruntwork-io/terratest/commit/28e8c23e2dfe3580cd53b03948a4d56b6d65ca92\"><code>28e8c23</code></a> Fix the check in IsDeploymentAvailable function.</li>\n<li><a href=\"https://github.com/gruntwork-io/terratest/commit/a1acc106247446596ac98f5f0bcb82878ccceeb4\"><code>a1acc10</code></a> Add test to validate helm logs redirection</li>\n<li><a href=\"https://github.com/gruntwork-io/terratest/commit/7374a11b02882b0b0ca1234486e08f106c2696aa\"><code>7374a11</code></a> Add passing of options to RunHelmCommandAndGetOutputE</li>\n<li><a href=\"https://github.com/gruntwork-io/terratest/commit/e78d052c364bf13cfd7f28dadd889657eb62db8f\"><code>e78d052</code></a> Merge pull request <a href=\"https://redirect.github.com/gruntwork-io/terratest/issues/1274\">#1274</a> from marcellmartini/feature/issue-1260</li>\n<li><a href=\"https://github.com/gruntwork-io/terratest/commit/0d72561ce4483eba1eb6d2232a8dbaba0a8f1b1b\"><code>0d72561</code></a> Test fixes (<a href=\"https://redirect.github.com/gruntwork-io/terratest/issues/1275\">#1275</a>)</li>\n<li><a href=\"https://github.com/gruntwork-io/terratest/commit/5d3c5988c0ef53614ed3e163eed281d15e16eac0\"><code>5d3c598</code></a> Add support port forwarding for deployment resources.</li>\n<li><a href=\"https://github.com/gruntwork-io/terratest/commit/2693a70bb71ac1ec91d505768184d911d9da0b05\"><code>2693a70</code></a> Add Deployment functions.</li>\n<li><a href=\"https://github.com/gruntwork-io/terratest/commit/0e411c7da008257e9840b98fc028d93958f3bbd4\"><code>0e411c7</code></a> Add DeploymentNotAvailable struct.</li>\n<li>Additional commits viewable in <a href=\"https://github.com/gruntwork-io/terratest/compare/v0.41.17...v0.41.23\">compare view</a></li>\n</ul>\n</details>\n<br />\n\n\n[![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=github.com/gruntwork-io/terratest&package-manager=go_modules&previous-version=0.41.17&new-version=0.41.23)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)\n\nDependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`.\n\n[//]: # (dependabot-automerge-start)\n[//]: # (dependabot-automerge-end)\n\n---\n\n<details>\n<summary>Dependabot commands and options</summary>\n<br />\n\nYou can trigger Dependabot actions by commenting on this PR:\n- `@dependabot rebase` will rebase this PR\n- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it\n- `@dependabot merge` will merge this PR after your CI passes on it\n- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it\n- `@dependabot cancel merge` will cancel a previously requested merge and block automerging\n- `@dependabot reopen` will reopen this PR if it is closed\n- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually\n- `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)\n- `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)\n- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)\n\n\n</details>\n\n---\n\nChoice A:\ntest/go.mod\n@@ -4,7 +4,7 @@ go 1.19\n \n require (\n test/go.mod\n@@ v0.13.0\n-\tgithub.com/gruntwork-io/terratest v0.41.17\n+\tgithub.com/gruntwork-io/terratest v0.41.23\n \tgithub.com/stretchr/testify v1.8.2\n )\n \n---\n\n\n---\n\nChoice B:\ntest/go.mod\n@@ -4,7 +4,7 @@ go 1.19\n \n require (\n \tgithub.com/Azure/terraform-module-test-helper v0.13.0\n-\tgithub.com/gruntwork-io/terratest v0.41.17\n+\tgithub.com/gruntwork-io/terratest v0.41.23\n \n---\n v1.8.2\n )\n \n---\n\n\n---\n\nChoice C:\ntest/go.mod\n@@ -4,7 +4,7 @@ go 1.19\n \n require (\n \tgithub.com/Azure/terraform-module-test-helper v0.13.0\n-\tgithub.com/gruntwork-io/terratest v0.41.17\n+\tgithub.com/gruntwork-io/terratest v0.41.23\n \tgithub.com/stretchr/testify v1.8.2\n )\n \n---\n\n\n---\n\nChoice D:\ntest/go.mod\n@@ -4,7 +4,7 @@ go 1.19\n \n require (\n \tgithub.com/Azure/terraform-module-test-helper v0.13.0\n-\tgithub.com/gruntwork-io/terratest v0.41.17\n+\tgithub.com/gruntwork-io/terratest v0.41.23\n go v1.8.2\n )\n \n---\n\n\n---\n" } ]
C
[ { "role": "system", "content": "Choose the best Terraform patch (A/B/C/D) that implements the requested Azure Compute change safely. Only respond with a single uppercase letter." }, { "role": "user", "content": "Task Description:\nBumps [github.com/gruntwork-io/terratest](https://github.com/gruntwork-io/terratest) from 0.41.11 to 0.41.18.\n<details>\n<summary>Release notes</summary>\n<p><em>Sourced from <a href=\"https://github.com/gruntwork-io/terratest/releases\">github.com/gruntwork-io/terratest's releases</a>.</em></p>\n<blockquote>\n<h2>v0.41.18</h2>\n<h2>What's Changed</h2>\n<ul>\n<li>Feat: Add ability to get a random region for a specific service by <a href=\"https://github.com/MoonMoon1919\"><code>@​MoonMoon1919</code></a> in <a href=\"https://redirect.github.com/gruntwork-io/terratest/pull/1269\">gruntwork-io/terratest#1269</a></li>\n</ul>\n<h2>New Contributors</h2>\n<ul>\n<li><a href=\"https://github.com/MoonMoon1919\"><code>@​MoonMoon1919</code></a> made their first contribution in <a href=\"https://redirect.github.com/gruntwork-io/terratest/pull/1269\">gruntwork-io/terratest#1269</a></li>\n</ul>\n<p><strong>Full Changelog</strong>: <a href=\"https://github.com/gruntwork-io/terratest/compare/v0.41.17...v0.41.18\">https://github.com/gruntwork-io/terratest/compare/v0.41.17...v0.41.18</a></p>\n<h2>v0.41.17</h2>\n<!-- raw HTML omitted -->\n<h2>Modules affected</h2>\n<!-- raw HTML omitted -->\n<ul>\n<li><code>terraform</code></li>\n</ul>\n<!-- raw HTML omitted -->\n<h2>Description</h2>\n<!-- raw HTML omitted -->\n<ul>\n<li>Updated terraform init function to support <code>-no-color</code> flag</li>\n</ul>\n<!-- raw HTML omitted -->\n<h2>Special thanks</h2>\n<!-- raw HTML omitted -->\n<p>Special thanks to the following users for their contribution!</p>\n<!-- raw HTML omitted -->\n</blockquote>\n<p>... (truncated)</p>\n</details>\n<details>\n<summary>Commits</summary>\n<ul>\n<li><a href=\"https://github.com/gruntwork-io/terratest/commit/e0c790c2147f13219c8df62ff2f5035232c392ae\"><code>e0c790c</code></a> add functionality to get a random region for a specific service (<a href=\"https://redirect.github.com/gruntwork-io/terratest/issues/1269\">#1269</a>)</li>\n<li><a href=\"https://github.com/gruntwork-io/terratest/commit/4e55865090a71700c52010ae2d4765e0a7c5d54d\"><code>4e55865</code></a> Merge pull request <a href=\"https://redirect.github.com/gruntwork-io/terratest/issues/1241\">#1241</a> from arcenik/bug/init-nocolor-option-1240</li>\n<li><a href=\"https://github.com/gruntwork-io/terratest/commit/93b80e2c85fd5ebb5c94cdb3ef2ac61ba6410ad2\"><code>93b80e2</code></a> Merge pull request <a href=\"https://redirect.github.com/gruntwork-io/terratest/issues/1265\">#1265</a> from gruntwork-io/context-refactor</li>\n<li><a href=\"https://github.com/gruntwork-io/terratest/commit/4e970888806c1cd801a4e281b9dc086788676a4f\"><code>4e97088</code></a> wrap the error in string (<a href=\"https://redirect.github.com/gruntwork-io/terratest/issues/370\">#370</a>)</li>\n<li><a href=\"https://github.com/gruntwork-io/terratest/commit/259f9631a2ec6aa22a4ac8d6592c009ea62a3d29\"><code>259f963</code></a> [skip ci] Refactor contexts</li>\n<li><a href=\"https://github.com/gruntwork-io/terratest/commit/54090265a7569cc28f540e4ee0c96d27601b8992\"><code>5409026</code></a> Merge pull request <a href=\"https://redirect.github.com/gruntwork-io/terratest/issues/1262\">#1262</a> from gruntwork-io/bug/go-getter-1261</li>\n<li><a href=\"https://github.com/gruntwork-io/terratest/commit/ddd6c619e1d5620e9237790350d8edbe442fd6c0\"><code>ddd6c61</code></a> Update go-getter dependency version</li>\n<li><a href=\"https://github.com/gruntwork-io/terratest/commit/2cafde4adf0c472ba6676c7f8c929f8c9645b22b\"><code>2cafde4</code></a> Merge pull request <a href=\"https://redirect.github.com/gruntwork-io/terratest/issues/1254\">#1254</a> from gruntwork-io/dependabot/go_modules/golang.org/x...</li>\n<li><a href=\"https://github.com/gruntwork-io/terratest/commit/3b27c71a44c596acf48d76e9ce2864c3eba4e020\"><code>3b27c71</code></a> Merge pull request <a href=\"https://redirect.github.com/gruntwork-io/terratest/issues/1255\">#1255</a> from gruntwork-io/dependabot/go_modules/github.com/o...</li>\n<li><a href=\"https://github.com/gruntwork-io/terratest/commit/9d45a847ea58a6d6b5f2d09a9959f466f9430d90\"><code>9d45a84</code></a> Bump golang.org/x/crypto from 0.0.0-20210921155107-089bfa567519 to 0.1.0</li>\n<li>Additional commits viewable in <a href=\"https://github.com/gruntwork-io/terratest/compare/v0.41.11...v0.41.18\">compare view</a></li>\n</ul>\n</details>\n<br />\n\n\n[![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=github.com/gruntwork-io/terratest&package-manager=go_modules&previous-version=0.41.11&new-version=0.41.18)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)\n\nDependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`.\n\n[//]: # (dependabot-automerge-start)\n[//]: # (dependabot-automerge-end)\n\n---\n\n<details>\n<summary>Dependabot commands and options</summary>\n<br />\n\nYou can trigger Dependabot actions by commenting on this PR:\n- `@dependabot rebase` will rebase this PR\n- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it\n- `@dependabot merge` will merge this PR after your CI passes on it\n- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it\n- `@dependabot cancel merge` will cancel a previously requested merge and block automerging\n- `@dependabot reopen` will reopen this PR if it is closed\n- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually\n- `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)\n- `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)\n- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)\n\n\n</details>\n\n---\n\nChoice A:\ntest/go.mod\n@@ -4,7 +4,7 @@ go 1.19\n \n require (\n \tgithub.com/Azure/terraform-module-test-helper v0.13.0\n-\tgithub.com/gruntwork-io/terratest v0.41.17\n+\tgithub.com/gruntwork-io/terratest v0.41.18\n \tgithub.com/stretchr/testify v1.8.2\n )\n \n---\n\n\n---\n\nChoice B:\ntest/go.mod\n@@ -4,7 +4,7 @@ go \tgithub.com/stretchr/testify \n require (\n \tgithub.com/Azure/terraform-module-test-helper v0.13.0\n-\tgithub.com/gruntwork-io/terratest v0.41.17\n+\tgithub.com/gruntwork-io/terratest v0.41.18\n \tgithub.com/stretchr/testify v1.8.2\n )\n \n---\n\n\n---\n\nChoice C:\ntest/go.mod\n@@ -4,7 require @@ go 1.19\n \n require (\n \tgithub.com/Azure/terraform-module-test-helper v0.13.0\n-\tgithub.com/gruntwork-io/terratest v0.41.17\n+\tgithub.com/gruntwork-io/terratest v0.41.18\n \tgithub.com/stretchr/testify v1.8.2\n )\n \n---\n\n\n---\n\nChoice D:\ntest/go.mod\n@@ -4,7 +4,7 @@ go 1.19\n \n 1.19\n (\n \tgithub.com/Azure/terraform-module-test-helper v0.13.0\n-\tgithub.com/gruntwork-io/terratest v0.41.17\n+\tgithub.com/gruntwork-io/terratest v0.41.18\n \tgithub.com/stretchr/testify v1.8.2\n )\n \n---\n\n\n---\n" } ]
A
[ { "role": "system", "content": "Choose the best Terraform patch (A/B/C/D) that implements the requested Azure Compute change safely. Only respond with a single uppercase letter." }, { "role": "user", "content": "Task Description:\nBumps [github.com/Azure/terraform-module-test-helper](https://github.com/Azure/terraform-module-test-helper) from 0.9.1 to 0.13.0.\n<details>\n<summary>Commits</summary>\n<ul>\n<li><a href=\"https://github.com/Azure/terraform-module-test-helper/commit/9c1d77dde41eef6fc1fa5d0a2493d659817bba36\"><code>9c1d77d</code></a> Bump golang.org/x/oauth2 from 0.6.0 to 0.7.0 (<a href=\"https://redirect.github.com/Azure/terraform-module-test-helper/issues/28\">#28</a>)</li>\n<li><a href=\"https://github.com/Azure/terraform-module-test-helper/commit/b077a14ac7a72406f0c22dd9510c01274bbdbcfe\"><code>b077a14</code></a> Bump golang.org/x/mod from 0.9.0 to 0.10.0 (<a href=\"https://redirect.github.com/Azure/terraform-module-test-helper/issues/29\">#29</a>)</li>\n<li><a href=\"https://github.com/Azure/terraform-module-test-helper/commit/256b837fcb52905a4bd44a7a167481c0a2a23c3f\"><code>256b837</code></a> Bump github.com/gruntwork-io/terratest from 0.41.16 to 0.41.17 (<a href=\"https://redirect.github.com/Azure/terraform-module-test-helper/issues/27\">#27</a>)</li>\n<li><a href=\"https://github.com/Azure/terraform-module-test-helper/commit/7dbe23be157d48f51a5532a78526669300fbadda\"><code>7dbe23b</code></a> Bump github.com/gruntwork-io/terratest from 0.41.15 to 0.41.16 (<a href=\"https://redirect.github.com/Azure/terraform-module-test-helper/issues/25\">#25</a>)</li>\n<li><a href=\"https://github.com/Azure/terraform-module-test-helper/commit/e11b923142339ccb628f81c16ba8dc342004e1dd\"><code>e11b923</code></a> add new e2e test method so we can skip idempotent check since some examples w...</li>\n<li><a href=\"https://github.com/Azure/terraform-module-test-helper/commit/bd0417756d88b4aab72d21c0f166b8309d953784\"><code>bd04177</code></a> Bump github.com/hashicorp/go-getter/v2 from 2.2.0 to 2.2.1 (<a href=\"https://redirect.github.com/Azure/terraform-module-test-helper/issues/26\">#26</a>)</li>\n<li><a href=\"https://github.com/Azure/terraform-module-test-helper/commit/9d6cdf0478f938e395d98383d252c561b366116c\"><code>9d6cdf0</code></a> remove init lock since we don't use plugin cache in test container any more</li>\n<li><a href=\"https://github.com/Azure/terraform-module-test-helper/commit/4af3de4917abfc982a9146333182ff93378a5935\"><code>4af3de4</code></a> set upgrade to false while terraform init because we're running tests in para...</li>\n<li><a href=\"https://github.com/Azure/terraform-module-test-helper/commit/7ea4a3f0eb0db78a02cd61e9b42544f28883bcc4\"><code>7ea4a3f</code></a> add log for init lock acuired and released</li>\n<li><a href=\"https://github.com/Azure/terraform-module-test-helper/commit/1803a8c40ecb24393ed8f8d4f9f18644738a7d29\"><code>1803a8c</code></a> change skip env var name because terratest would change it's behavior when a ...</li>\n<li>Additional commits viewable in <a href=\"https://github.com/Azure/terraform-module-test-helper/compare/v0.9.1...v0.13.0\">compare view</a></li>\n</ul>\n</details>\n<br />\n\n\n[![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=github.com/Azure/terraform-module-test-helper&package-manager=go_modules&previous-version=0.9.1&new-version=0.13.0)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)\n\nDependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`.\n\n[//]: # (dependabot-automerge-start)\n[//]: # (dependabot-automerge-end)\n\n---\n\n<details>\n<summary>Dependabot commands and options</summary>\n<br />\n\nYou can trigger Dependabot actions by commenting on this PR:\n- `@dependabot rebase` will rebase this PR\n- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it\n- `@dependabot merge` will merge this PR after your CI passes on it\n- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it\n- `@dependabot cancel merge` will cancel a previously requested merge and block automerging\n- `@dependabot reopen` will reopen this PR if it is closed\n- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually\n- `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)\n- `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)\n- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)\n\n\n</details>\n\n---\n\nChoice A:\ntest/go.mod\n@@ -3,15 +3,16 @@ module github.com/Azure/terraform-azurerm-compute\n go 1.19\n \n require (\n-\tgithub.com/Azure/terraform-module-test-helper v0.9.1\n-\tgithub.com/gruntwork-io/terratest v0.41.11\n+\tgithub.com/Azure/terraform-module-test-helper v0.13.0\n+\tgithub.com/gruntwork-io/terratest v0.41.17\n \tgithub.com/stretchr/testify v1.8.2\n )\n \n require (\n-\tcloud.google.com/go v0.104.0 // indirect\n-\tcloud.google.com/go/compute v1.10.0 // indirect\n-\tcloud.google.com/go/iam v0.5.0 // indirect\n+\tcloud.google.com/go v0.105.0 // indirect\n+\tcloud.google.com/go/compute v1.12.1 // indirect\n+\tcloud.google.com/go/compute/metadata v0.2.1 // indirect\n+\tcloud.google.com/go/iam v0.7.0 // indirect\n \tcloud.google.com/go/storage v1.27.0 // indirect\n indirect\n-\tcloud.google.com/go/iam v1.2.3 // indirect\n \tgithub.com/ahmetb/go-linq/v3 v3.2.0 // indirect\n@@ -34,20 +35,20 @@ require (\n \tgithub.com/google/gofuzz v1.1.0 // indirect\n \tgithub.com/google/uuid v1.3.0 // indirect\n \tgithub.com/googleapis/enterprise-certificate-proxy v0.2.0 // indirect\n-\tgithub.com/googleapis/gax-go/v2 v2.6.0 // indirect\n+\tgithub.com/googleapis/gax-go/v2 v2.7.0 // indirect\n \tgithub.com/googleapis/gnostic v0.4.1 // indirect\n \tgithub.com/gruntwork-io/go-commons v0.8.0 // indirect\n \tgithub.com/hashicorp/errwrap v1.0.0 // indirect\n \tgithub.com/hashicorp/go-cleanhttp v0.5.2 // indirect\n-\tgithub.com/hashicorp/go-getter v1.7.0 // indirect\n-\tgithub.com/hashicorp/go-getter/v2 v2.2.0 // indirect\n+\tgithub.com/hashicorp/go-getter v1.7.1 // indirect\n+\tgithub.com/hashicorp/go-getter/v2 v2.2.1 // indirect\n \tgithub.com/hashicorp/go-multierror v1.1.0 // indirect\n \tgithub.com/hashicorp/go-safetemp v1.0.0 // indirect\n \tgithub.com/hashicorp/go-version v1.6.0 // indirect\n \tgithub.com/hashicorp/hcl v1.0.0 // indirect\n-\tgithub.com/hashicorp/hcl/v2 v2.16.0 // indirect\n+\tgithub.com/hashicorp/hcl/v2 v2.16.2 // indirect\n \tgithub.com/hashicorp/terraform-config-inspect v0.0.0-20211115214459-90acf1ca460f // indirect\n-\tgithub.com/hashicorp/terraform-json v0.15.0 // indirect\n+\tgithub.com/hashicorp/terraform-json v0.16.0 // indirect\n \tgithub.com/imdario/mergo v0.3.11 // indirect\n \tgithub.com/jinzhu/copier v0.0.0-20190924061706-b57f9002281a // indirect\n \tgithub.com/jmespath/go-jmespath v0.4.0 // indirect\n@@ -66,28 +67,28 @@ require (\n \tgithub.com/pquerna/otp v1.2.0 // indirect\n \tgithub.com/r3labs/diff/v3 v3.0.1 // indirect\n \tgithub.com/russross/blackfriday/v2 v2.1.0 // indirect\n-\tgithub.com/spf13/afero v1.9.3 // indirect\n+\tgithub.com/spf13/afero v1.9.5 // indirect\n \tgithub.com/spf13/pflag v1.0.5 // indirect\n \tgithub.com/tmccombs/hcl2json v0.3.3 // indirect\n \tgithub.com/ulikunitz/xz v0.5.10 // indirect\n \tgithub.com/urfave/cli v1.22.2 // indirect\n \tgithub.com/vmihailenco/msgpack/v5 v5.3.5 // indirect\n \tgithub.com/vmihailenco/tagparser/v2 v2.0.0 // indirect\n-\tgithub.com/zclconf/go-cty v1.12.1 // indirect\n-\tgo.opencensus.io v0.23.0 // indirect\n-\tgolang.org/x/crypto v0.0.0-20220517005047-85d78b3ac167 // indirect\n-\tgolang.org/x/mod v0.6.0-dev.0.20220419223038-86c51ed26bb4 // indirect\n-\tgolang.org/x/net v0.7.0 // indirect\n-\tgolang.org/x/oauth2 v0.1.0 // indirect\n-\tgolang.org/x/sys v0.5.0 // indirect\n-\tgolang.org/x/term v0.5.0 // indirect\n-\tgolang.org/x/text v0.7.0 // indirect\n+\tgithub.com/zclconf/go-cty v1.13.0 // indirect\n+\tgo.opencensus.io v0.24.0 // indirect\n+\tgolang.org/x/crypto v0.1.0 // indirect\n+\tgolang.org/x/mod v0.10.0 // indirect\n+\tgolang.org/x/net v0.9.0 // indirect\n+\tgolang.org/x/oauth2 v0.7.0 // indirect\n+\tgolang.org/x/sys v0.7.0 // indirect\n+\tgolang.org/x/term v0.7.0 // indirect\n+\tgolang.org/x/text v0.9.0 // indirect\n \tgolang.org/x/time v0.0.0-20200630173020-3af7569d3a1e // indirect\n \tgolang.org/x/xerrors v0.0.0-20220907171357-04be3eba64a2 // indirect\n-\tgoogle.golang.org/api v0.100.0 // indirect\n+\tgoogle.golang.org/api v0.103.0 // indirect\n \tgoogle.golang.org/appengine v1.6.7 // indirect\n-\tgoogle.golang.org/genproto v0.0.0-20221025140454-527a21cfbd71 // indirect\n-\tgoogle.golang.org/grpc v1.50.1 // indirect\n+\tgoogle.golang.org/genproto v0.0.0-20221201164419-0e50fba7f41c // indirect\n+\tgoogle.golang.org/grpc v1.51.0 // indirect\n \tgoogle.golang.org/protobuf v1.28.1 // indirect\n \tgopkg.in/inf.v0 v0.9.1 // indirect\n \tgopkg.in/yaml.v2 v2.4.0 // indirect\n---\n\n\n---\n\nChoice B:\ntest/go.mod\n@@ -3,15 +3,16 @@ module github.com/Azure/terraform-azurerm-compute\n go 1.19\n \n require (\n-\tgithub.com/Azure/terraform-module-test-helper v0.9.1\n-\tgithub.com/gruntwork-io/terratest v0.41.11\n+\tgithub.com/Azure/terraform-module-test-helper v0.13.0\n+\tgithub.com/gruntwork-io/terratest v0.41.17\n \tgithub.com/stretchr/testify v1.8.2\n )\n \n require (\n-\tcloud.google.com/go v0.104.0 // indirect\n-\tcloud.google.com/go/compute v1.10.0 // indirect\n-\tcloud.google.com/go/iam v0.5.0 // indirect\n+\tcloud.google.com/go v0.105.0 // indirect\n+\tcloud.google.com/go/compute v1.12.1 // indirect\n+\tcloud.google.com/go/compute/metadata v0.2.1 // indirect\n+\tcloud.google.com/go/iam v0.7.0 // indirect\n \tcloud.google.com/go/storage v1.27.0 // indirect\n \tgithub.com/agext/levenshtein v1.2.3 // indirect\n \tgithub.com/ahmetb/go-linq/v3 v3.2.0 // indirect\n@@ -34,20 +35,20 @@ require (\n \tgithub.com/google/gofuzz v1.1.0 // indirect\n \tgithub.com/google/uuid v1.3.0 // indirect\n \tgithub.com/googleapis/enterprise-certificate-proxy v0.2.0 // indirect\n-\tgithub.com/googleapis/gax-go/v2 v2.6.0 // // v2.7.0 // indirect\n \tgithub.com/googleapis/gnostic v0.4.1 // indirect\n \tgithub.com/gruntwork-io/go-commons v0.8.0 // indirect\n \tgithub.com/hashicorp/errwrap v1.0.0 // indirect\n \tgithub.com/hashicorp/go-cleanhttp v0.5.2 // indirect\n-\tgithub.com/hashicorp/go-getter v1.7.0 // indirect\n-\tgithub.com/hashicorp/go-getter/v2 v2.2.0 // indirect\n+\tgithub.com/hashicorp/go-getter v1.7.1 // indirect\n+\tgithub.com/hashicorp/go-getter/v2 v2.2.1 // indirect\n \tgithub.com/hashicorp/go-multierror v1.1.0 // indirect\n \tgithub.com/hashicorp/go-safetemp v1.0.0 // indirect\n \tgithub.com/hashicorp/go-version v1.6.0 // indirect\n \tgithub.com/hashicorp/hcl v1.0.0 // indirect\n-\tgithub.com/hashicorp/hcl/v2 v2.16.0 // indirect\n+\tgithub.com/hashicorp/hcl/v2 v2.16.2 // indirect\n \tgithub.com/hashicorp/terraform-config-inspect v0.0.0-20211115214459-90acf1ca460f // indirect\n-\tgithub.com/hashicorp/terraform-json v0.15.0 // indirect\n+\tgithub.com/hashicorp/terraform-json v0.16.0 // indirect\n \tgithub.com/imdario/mergo v0.3.11 // indirect\n \tgithub.com/jinzhu/copier v0.0.0-20190924061706-b57f9002281a // indirect\n \tgithub.com/jmespath/go-jmespath v0.4.0 // indirect\n@@ -66,28 +67,28 @@ require (\n \tgithub.com/pquerna/otp v1.2.0 // indirect\n \tgithub.com/r3labs/diff/v3 v3.0.1 // indirect\n \tgithub.com/russross/blackfriday/v2 v2.1.0 // indirect\n-\tgithub.com/spf13/afero v1.9.3 // indirect\n+\tgithub.com/spf13/afero v1.9.5 // indirect\n \tgithub.com/spf13/pflag v1.0.5 // indirect\n \tgithub.com/tmccombs/hcl2json v0.3.3 // indirect\n \tgithub.com/ulikunitz/xz v0.5.10 // indirect\n \tgithub.com/urfave/cli v1.22.2 // indirect\n \tgithub.com/vmihailenco/msgpack/v5 v5.3.5 // indirect\n \tgithub.com/vmihailenco/tagparser/v2 v2.0.0 // indirect\n-\tgithub.com/zclconf/go-cty v1.12.1 // indirect\n-\tgo.opencensus.io v0.23.0 // indirect\n-\tgolang.org/x/crypto v0.0.0-20220517005047-85d78b3ac167 // indirect\n-\tgolang.org/x/mod v0.6.0-dev.0.20220419223038-86c51ed26bb4 // indirect\n-\tgolang.org/x/net v0.7.0 // indirect\n-\tgolang.org/x/oauth2 v0.1.0 // indirect\n-\tgolang.org/x/sys v0.5.0 // indirect\n-\tgolang.org/x/term v0.5.0 // indirect\n-\tgolang.org/x/text v0.7.0 // indirect\n+\tgithub.com/zclconf/go-cty v1.13.0 // indirect\n+\tgo.opencensus.io v0.24.0 // indirect\n+\tgolang.org/x/crypto v0.1.0 // indirect\n+\tgolang.org/x/mod v0.10.0 // indirect\n+\tgolang.org/x/net v0.9.0 // indirect\n+\tgolang.org/x/oauth2 v0.7.0 // indirect\n+\tgolang.org/x/sys v0.7.0 // indirect\n+\tgolang.org/x/term v0.7.0 // indirect\n+\tgolang.org/x/text v0.9.0 // indirect\n \tgolang.org/x/time v0.0.0-20200630173020-3af7569d3a1e // indirect\n \tgolang.org/x/xerrors v0.0.0-20220907171357-04be3eba64a2 // indirect\n-\tgoogle.golang.org/api v0.100.0 // indirect\n+\tgoogle.golang.org/api v0.103.0 // indirect\n \tgoogle.golang.org/appengine v1.6.7 // indirect\n-\tgoogle.golang.org/genproto v0.0.0-20221025140454-527a21cfbd71 // indirect\n-\tgoogle.golang.org/grpc v1.50.1 // indirect\n+\tgoogle.golang.org/genproto v0.0.0-20221201164419-0e50fba7f41c // indirect\n+\tgoogle.golang.org/grpc v1.51.0 // indirect\n \tgoogle.golang.org/protobuf v1.28.1 // indirect\n \tgopkg.in/inf.v0 v0.9.1 // indirect\n \tgopkg.in/yaml.v2 v2.4.0 // indirect\n---\n\n\n---\n\nChoice C:\ntest/go.mod\n@@ -3,15 +3,16 @@ module github.com/Azure/terraform-azurerm-compute\n go 1.19\n \n require (\n-\tgithub.com/Azure/terraform-module-test-helper v0.9.1\n-\tgithub.com/gruntwork-io/terratest v0.41.11\n+\tgithub.com/Azure/terraform-module-test-helper v0.13.0\n+\tgithub.com/gruntwork-io/terratest v0.41.17\n \tgithub.com/stretchr/testify v1.8.2\n \n \n require (\n-\tcloud.google.com/go v0.104.0 // indirect\n-\tcloud.google.com/go/compute v1.10.0 // indirect\n-\tcloud.google.com/go/iam v0.5.0 // indirect\n+\tcloud.google.com/go v0.105.0 // indirect\n+\tcloud.google.com/go/compute v1.12.1 // indirect\n+\tcloud.google.com/go/compute/metadata v0.2.1 // indirect\n+\tcloud.google.com/go/iam v0.7.0 // indirect\n \tcloud.google.com/go/storage v1.27.0 // indirect\n \tgithub.com/agext/levenshtein v1.2.3 // indirect\n \tgithub.com/ahmetb/go-linq/v3 v3.2.0 // indirect\n@@ -34,20 +35,20 @@ require (\n \tgithub.com/google/gofuzz v1.1.0 // indirect\n \tgithub.com/google/uuid v1.3.0 // indirect\n \tgithub.com/googleapis/enterprise-certificate-proxy v0.2.0 // indirect\n-\tgithub.com/googleapis/gax-go/v2 v2.6.0 // indirect\n+\tgithub.com/googleapis/gax-go/v2 v2.7.0 // indirect\n \tgithub.com/googleapis/gnostic v0.4.1 // indirect\n \tgithub.com/gruntwork-io/go-commons v0.8.0 // indirect\n \tgithub.com/hashicorp/errwrap v1.0.0 // indirect\n \tgithub.com/hashicorp/go-cleanhttp v0.5.2 // indirect\n-\tgithub.com/hashicorp/go-getter v1.7.0 // indirect\n-\tgithub.com/hashicorp/go-getter/v2 v2.2.0 // indirect\n+\tgithub.com/hashicorp/go-getter v1.7.1 // indirect\n+\tgithub.com/hashicorp/go-getter/v2 v2.2.1 // indirect\n \tgithub.com/hashicorp/go-multierror v1.1.0 // indirect\n \tgithub.com/hashicorp/go-safetemp v1.0.0 // indirect\n \tgithub.com/hashicorp/go-version v1.6.0 // indirect\n \tgithub.com/hashicorp/hcl v1.0.0 // indirect\n-\tgithub.com/hashicorp/hcl/v2 v2.16.0 // indirect\n+\tgithub.com/hashicorp/hcl/v2 v2.16.2 // indirect\n \tgithub.com/hashicorp/terraform-config-inspect v0.0.0-20211115214459-90acf1ca460f // indirect\n-\tgithub.com/hashicorp/terraform-json v0.15.0 // indirect\n+\tgithub.com/hashicorp/terraform-json v0.16.0 // indirect\n \tgithub.com/imdario/mergo v0.3.11 // indirect\n \tgithub.com/jinzhu/copier v0.0.0-20190924061706-b57f9002281a // indirect\n \tgithub.com/jmespath/go-jmespath v0.4.0 // indirect\n@@ -66,28 +67,28 @@ require (\n \tgithub.com/pquerna/otp v1.2.0 // indirect\n \tgithub.com/r3labs/diff/v3 v3.0.1 // indirect\n \tgithub.com/russross/blackfriday/v2 v2.1.0 // indirect\n-\tgithub.com/spf13/afero v1.9.3 // indirect\n+\tgithub.com/spf13/afero v1.9.5 // indirect\n \tgithub.com/spf13/pflag v1.0.5 // indirect\n \tgithub.com/tmccombs/hcl2json v0.3.3 // indirect\n \tgithub.com/ulikunitz/xz v0.5.10 // indirect\n \tgithub.com/urfave/cli v1.22.2 // indirect\n \tgithub.com/vmihailenco/msgpack/v5 v5.3.5 // indirect\n \tgithub.com/vmihailenco/tagparser/v2 v2.0.0 // indirect\n-\tgithub.com/zclconf/go-cty v1.12.1 // indirect\n-\tgo.opencensus.io v0.23.0 // indirect\n-\tgolang.org/x/crypto v0.0.0-20220517005047-85d78b3ac167 // indirect\n-\tgolang.org/x/mod v0.6.0-dev.0.20220419223038-86c51ed26bb4 // indirect\n-\tgolang.org/x/net v0.7.0 // indirect\n-\tgolang.org/x/oauth2 v0.1.0 // indirect\n-\tgolang.org/x/sys v0.5.0 // indirect\n-\tgolang.org/x/term v0.5.0 // indirect\n-\tgolang.org/x/text v0.7.0 // indirect\n+\tgithub.com/zclconf/go-cty v1.13.0 // indirect\n+\tgo.opencensus.io v0.24.0 // indirect\n+\tgolang.org/x/crypto v0.1.0 // indirect\n+\tgolang.org/x/mod v0.10.0 // indirect\n+\tgolang.org/x/net v0.9.0 // indirect\n+\tgolang.org/x/oauth2 v0.7.0 // indirect\n+\tgolang.org/x/sys v0.7.0 // indirect\n+\tgolang.org/x/term v0.7.0 // indirect\n+\tgolang.org/x/text v0.9.0 // indirect\n \tgolang.org/x/time v0.0.0-20200630173020-3af7569d3a1e // indirect\n \tgolang.org/x/xerrors v0.0.0-20220907171357-04be3eba64a2 // indirect\n-\tgoogle.golang.org/api v0.100.0 // indirect\n+\tgoogle.golang.org/api v0.103.0 // indirect\n \tgoogle.golang.org/appengine v1.6.7 // indirect\n-\tgoogle.golang.org/genproto v0.0.0-20221025140454-527a21cfbd71 // indirect\n-\tgoogle.golang.org/grpc v1.50.1 // indirect\n+\tgoogle.golang.org/genproto v0.0.0-20221201164419-0e50fba7f41c // indirect\n+\tgoogle.golang.org/grpc v1.51.0 // indirect\n \tgoogle.golang.org/protobuf v1.28.1 // indirect\n \tgopkg.in/inf.v0 v0.9.1 // indirect\n \tgopkg.in/yaml.v2 v2.4.0 // indirect\n---\n\n\n---\n\nChoice D:\ntest/go.mod\n@@ -3,15 +3,16 @@ module github.com/Azure/terraform-azurerm-compute\n go 1.19\n \n require (\n-\tgithub.com/Azure/terraform-module-test-helper v0.9.1\n-\tgithub.com/gruntwork-io/terratest v0.41.11\n+\tgithub.com/Azure/terraform-module-test-helper v0.13.0\n+\tgithub.com/gruntwork-io/terratest v0.41.17\n \tgithub.com/stretchr/testify v1.8.2\n )\n \n require (\n-\tcloud.google.com/go v0.104.0 // indirect\n-\tcloud.google.com/go/compute v1.10.0 // indirect\n-\tcloud.google.com/go/iam v0.5.0 // indirect\n+\tcloud.google.com/go v0.105.0 // indirect\n+\tcloud.google.com/go/compute v1.12.1 // indirect\n+\tcloud.google.com/go/compute/metadata v0.2.1 // indirect\n+\tcloud.google.com/go/iam v0.7.0 // indirect\n \tcloud.google.com/go/storage v1.27.0 // indirect\n \tgithub.com/agext/levenshtein v1.2.3 // indirect\n \tgithub.com/ahmetb/go-linq/v3 v3.2.0 // indirect\n@@ -34,20 +35,20 @@ require (\n \tgithub.com/google/gofuzz v1.1.0 // indirect\n \tgithub.com/google/uuid v1.3.0 // indirect\n \tgithub.com/googleapis/enterprise-certificate-proxy v0.2.0 // indirect\n-\tgithub.com/googleapis/gax-go/v2 v2.6.0 // indirect\n+\tgithub.com/googleapis/gax-go/v2 v2.7.0 // indirect\n \tgithub.com/googleapis/gnostic v0.4.1 // indirect\n \tgithub.com/gruntwork-io/go-commons v0.8.0 // indirect\n \tgithub.com/hashicorp/errwrap v1.0.0 // indirect\n \tgithub.com/hashicorp/go-cleanhttp v0.5.2 // indirect\n-\tgithub.com/hashicorp/go-getter v1.7.0 // indirect\n-\tgithub.com/hashicorp/go-getter/v2 v2.2.0 // indirect\n+\tgithub.com/hashicorp/go-getter v1.7.1 // indirect\n+\tgithub.com/hashicorp/go-getter/v2 v2.2.1 // indirect\n \tgithub.com/hashicorp/go-multierror v1.1.0 // indirect\n \tgithub.com/hashicorp/go-safetemp v1.0.0 // indirect\n \tgithub.com/hashicorp/go-version v1.6.0 // indirect\n \tgithub.com/hashicorp/hcl v1.0.0 // indirect\n-\tgithub.com/hashicorp/hcl/v2 v2.16.0 // indirect\n+\tgithub.com/hashicorp/hcl/v2 v2.16.2 // indirect\n \tgithub.com/hashicorp/terraform-config-inspect v0.0.0-20211115214459-90acf1ca460f // indirect\n-\tgithub.com/hashicorp/terraform-json v0.15.0 // indirect\n+\tgithub.com/hashicorp/terraform-json v0.16.0 // indirect\n \tgithub.com/imdario/mergo v0.3.11 // indirect\n \tgithub.com/jinzhu/copier v0.0.0-20190924061706-b57f9002281a // indirect\n \tgithub.com/jmespath/go-jmespath v0.4.0 // indirect\n@@ -66,28 +67,28 @@ require (\n \tgithub.com/pquerna/otp v1.2.0 // indirect\n \tgithub.com/r3labs/diff/v3 v3.0.1 // indirect\n \tgithub.com/russross/blackfriday/v2 v2.1.0 // indirect\n-\tgithub.com/spf13/afero v1.9.3 // indirect\n+\tgithub.com/spf13/afero v1.9.5 // indirect\n \tgithub.com/spf13/pflag v1.0.5 // indirect\n \tgithub.com/tmccombs/hcl2json v0.3.3 // indirect\n \tgithub.com/ulikunitz/xz v0.5.10 // indirect\n \tgithub.com/urfave/cli v1.22.2 // indirect\n \tgithub.com/vmihailenco/msgpack/v5 v5.3.5 // indirect\n \tgithub.com/vmihailenco/tagparser/v2 v2.0.0 // indirect\n-\tgithub.com/zclconf/go-cty v1.12.1 // indirect\n-\tgo.opencensus.io v0.23.0 // indirect\n-\tgolang.org/x/crypto v0.0.0-20220517005047-85d78b3ac167 // indirect\n-\tgolang.org/x/mod v0.6.0-dev.0.20220419223038-86c51ed26bb4 // indirect\n-\tgolang.org/x/net v0.7.0 // indirect\n-\tgolang.org/x/oauth2 v0.1.0 // indirect\n-\tgolang.org/x/sys v0.5.0 // indirect\n-\tgolang.org/x/term v0.5.0 // indirect\n-\tgolang.org/x/text v0.7.0 // indirect\n+\tgithub.com/zclconf/go-cty v1.13.0 // indirect\n+\tgo.opencensus.io v0.24.0 // indirect\n+\tgolang.org/x/crypto v0.1.0 // indirect\n+\tgolang.org/x/mod v0.10.0 // indirect\n+\tgolang.org/x/net v0.9.0 // indirect\n+\tgolang.org/x/oauth2 v0.7.0 // indirect\n+\tgolang.org/x/sys v0.7.0 // indirect\n+\tgolang.org/x/term v0.7.0 // indirect\n+\tgolang.org/x/text v0.9.0 // indirect\n \tgolang.org/x/time v0.0.0-20200630173020-3af7569d3a1e // indirect\n \tgolang.org/x/xerrors v0.0.0-20220907171357-04be3eba64a2 // indirect\n-\tgoogle.golang.org/api v0.100.0 // indirect\n+\tgoogle.golang.org/api v0.103.0 // indirect\n \tgoogle.golang.org/appengine v1.6.7 // indirect\n-\tgoogle.golang.org/genproto v0.0.0-20221025140454-527a21cfbd71 // indirect\n-\tgoogle.golang.org/grpc v1.50.1 // indirect\n+\tgoogle.golang.org/genproto v0.0.0-20221201164419-0e50fba7f41c // indirect\n+\tgoogle.golang.org/grpc v1.51.0 // indirect\n \tgoogle.golang.org/protobuf v1.28.1 // indirect\n \tgopkg.in/inf.v0 v0.9.1 // indirect\n \tgopkg.in/yaml.v2 v2.4.0 // indirect\n---\n\n\n---\n" } ]
D
[ { "role": "system", "content": "Choose the best Terraform patch (A/B/C/D) that implements the requested Azure Compute change safely. Only respond with a single uppercase letter." }, { "role": "user", "content": "Task Description:\nBumps [github.com/gruntwork-io/terratest](https://github.com/gruntwork-io/terratest) from 0.41.11 to 0.41.17.\n<details>\n<summary>Release notes</summary>\n<p><em>Sourced from <a href=\"https://github.com/gruntwork-io/terratest/releases\">github.com/gruntwork-io/terratest's releases</a>.</em></p>\n<blockquote>\n<h2>v0.41.17</h2>\n<!-- raw HTML omitted -->\n<h2>Modules affected</h2>\n<!-- raw HTML omitted -->\n<ul>\n<li><code>terraform</code></li>\n</ul>\n<!-- raw HTML omitted -->\n<h2>Description</h2>\n<!-- raw HTML omitted -->\n<ul>\n<li>Updated terraform init function to support <code>-no-color</code> flag</li>\n</ul>\n<!-- raw HTML omitted -->\n<h2>Special thanks</h2>\n<!-- raw HTML omitted -->\n<p>Special thanks to the following users for their contribution!</p>\n<ul>\n<li><a href=\"https://github.com/arcenik\"><code>@​arcenik</code></a></li>\n</ul>\n<!-- raw HTML omitted -->\n<h2>Related links</h2>\n<!-- raw HTML omitted -->\n<!-- raw HTML omitted -->\n</blockquote>\n<p>... (truncated)</p>\n</details>\n<details>\n<summary>Commits</summary>\n<ul>\n<li><a href=\"https://github.com/gruntwork-io/terratest/commit/4e55865090a71700c52010ae2d4765e0a7c5d54d\"><code>4e55865</code></a> Merge pull request <a href=\"https://redirect.github.com/gruntwork-io/terratest/issues/1241\">#1241</a> from arcenik/bug/init-nocolor-option-1240</li>\n<li><a href=\"https://github.com/gruntwork-io/terratest/commit/93b80e2c85fd5ebb5c94cdb3ef2ac61ba6410ad2\"><code>93b80e2</code></a> Merge pull request <a href=\"https://redirect.github.com/gruntwork-io/terratest/issues/1265\">#1265</a> from gruntwork-io/context-refactor</li>\n<li><a href=\"https://github.com/gruntwork-io/terratest/commit/4e970888806c1cd801a4e281b9dc086788676a4f\"><code>4e97088</code></a> wrap the error in string (<a href=\"https://redirect.github.com/gruntwork-io/terratest/issues/370\">#370</a>)</li>\n<li><a href=\"https://github.com/gruntwork-io/terratest/commit/259f9631a2ec6aa22a4ac8d6592c009ea62a3d29\"><code>259f963</code></a> [skip ci] Refactor contexts</li>\n<li><a href=\"https://github.com/gruntwork-io/terratest/commit/54090265a7569cc28f540e4ee0c96d27601b8992\"><code>5409026</code></a> Merge pull request <a href=\"https://redirect.github.com/gruntwork-io/terratest/issues/1262\">#1262</a> from gruntwork-io/bug/go-getter-1261</li>\n<li><a href=\"https://github.com/gruntwork-io/terratest/commit/ddd6c619e1d5620e9237790350d8edbe442fd6c0\"><code>ddd6c61</code></a> Update go-getter dependency version</li>\n<li><a href=\"https://github.com/gruntwork-io/terratest/commit/2cafde4adf0c472ba6676c7f8c929f8c9645b22b\"><code>2cafde4</code></a> Merge pull request <a href=\"https://redirect.github.com/gruntwork-io/terratest/issues/1254\">#1254</a> from gruntwork-io/dependabot/go_modules/golang.org/x...</li>\n<li><a href=\"https://github.com/gruntwork-io/terratest/commit/3b27c71a44c596acf48d76e9ce2864c3eba4e020\"><code>3b27c71</code></a> Merge pull request <a href=\"https://redirect.github.com/gruntwork-io/terratest/issues/1255\">#1255</a> from gruntwork-io/dependabot/go_modules/github.com/o...</li>\n<li><a href=\"https://github.com/gruntwork-io/terratest/commit/9d45a847ea58a6d6b5f2d09a9959f466f9430d90\"><code>9d45a84</code></a> Bump golang.org/x/crypto from 0.0.0-20210921155107-089bfa567519 to 0.1.0</li>\n<li><a href=\"https://github.com/gruntwork-io/terratest/commit/bffd8cb562f58dc66218bbc9722a8cb069653c31\"><code>bffd8cb</code></a> Merge pull request <a href=\"https://redirect.github.com/gruntwork-io/terratest/issues/1253\">#1253</a> from gruntwork-io/dependabot/go_modules/golang.org/x...</li>\n<li>Additional commits viewable in <a href=\"https://github.com/gruntwork-io/terratest/compare/v0.41.11...v0.41.17\">compare view</a></li>\n</ul>\n</details>\n<br />\n\n\n[![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=github.com/gruntwork-io/terratest&package-manager=go_modules&previous-version=0.41.11&new-version=0.41.17)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)\n\nDependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`.\n\n[//]: # (dependabot-automerge-start)\n[//]: # (dependabot-automerge-end)\n\n---\n\n<details>\n<summary>Dependabot commands and options</summary>\n<br />\n\nYou can trigger Dependabot actions by commenting on this PR:\n- `@dependabot rebase` will rebase this PR\n- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it\n- `@dependabot merge` will merge this PR after your CI passes on it\n- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it\n- `@dependabot cancel merge` will cancel a previously requested merge and block automerging\n- `@dependabot reopen` will reopen this PR if it is closed\n- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually\n- `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)\n- `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)\n- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)\n\n\n</details>\n\n---\n\nChoice A:\ntest/go.mod\n@@ -4,14 +4,15 @@ go 1.19\n \n require (\n \tgithub.com/Azure/terraform-module-test-helper v0.9.1\n-\tgithub.com/gruntwork-io/terratest v0.41.11\n+\tgithub.com/gruntwork-io/terratest v0.41.17\n \tgithub.com/stretchr/testify v1.8.2\n )\n \n require (\n-\tcloud.google.com/go v0.104.0 // indirect\n-\tcloud.google.com/go/compute v1.10.0 // indirect\n-\tcloud.google.com/go/iam v0.5.0 // indirect\n+\tcloud.google.com/go v0.105.0 // indirect\n+\tcloud.google.com/go/compute v1.12.1 // indirect\n+\tcloud.google.com/go/compute/metadata v0.2.1 // indirect\n+\tcloud.google.com/go/iam v0.7.0 // indirect\n \tcloud.google.com/go/storage v1.27.0 // indirect\n \tgithub.com/agext/levenshtein v1.2.3 // indirect\n \tgithub.com/ahmetb/go-linq/v3 v3.2.0 // indirect\n@@ -34,12 +35,12 @@ require (\n \tgithub.com/google/gofuzz indirect\n // indirect\n \tgithub.com/google/uuid v1.3.0 // indirect\n \tgithub.com/googleapis/enterprise-certificate-proxy v0.2.0 // indirect\n-\tgithub.com/googleapis/gax-go/v2 v2.6.0 // indirect\n+\tgithub.com/googleapis/gax-go/v2 v2.7.0 // indirect\n \tgithub.com/googleapis/gnostic v0.4.1 // indirect\n \tgithub.com/gruntwork-io/go-commons v0.8.0 // indirect\n \tgithub.com/hashicorp/errwrap v1.0.0 // indirect\n \tgithub.com/hashicorp/go-cleanhttp v0.5.2 // indirect\n-\tgithub.com/hashicorp/go-getter v1.7.0 // indirect\n+\tgithub.com/hashicorp/go-getter v1.7.1 // indirect\n \tgithub.com/hashicorp/go-getter/v2 v2.2.0 // indirect\n \tgithub.com/hashicorp/go-multierror v1.1.0 // indirect\n \tgithub.com/hashicorp/go-safetemp v1.0.0 // indirect\n@@ -74,8 +75,8 @@ require (\n \tgithub.com/vmihailenco/msgpack/v5 v5.3.5 // indirect\n \tgithub.com/vmihailenco/tagparser/v2 v2.0.0 // indirect\n \tgithub.com/zclconf/go-cty v1.12.1 // indirect\n-\tgo.opencensus.io v0.23.0 // indirect\n-\tgolang.org/x/crypto v0.0.0-20220517005047-85d78b3ac167 // indirect\n+\tgo.opencensus.io v0.24.0 // indirect\n+\tgolang.org/x/crypto v0.1.0 // indirect\n \tgolang.org/x/mod v0.6.0-dev.0.20220419223038-86c51ed26bb4 // indirect\n \tgolang.org/x/net v0.7.0 // indirect\n \tgolang.org/x/oauth2 v0.1.0 // indirect\n@@ -84,10 +85,10 @@ require (\n \tgolang.org/x/text v0.7.0 // indirect\n \tgolang.org/x/time v0.0.0-20200630173020-3af7569d3a1e // indirect\n \tgolang.org/x/xerrors v0.0.0-20220907171357-04be3eba64a2 // indirect\n-\tgoogle.golang.org/api v0.100.0 // indirect\n+\tgoogle.golang.org/api v0.103.0 // indirect\n \tgoogle.golang.org/appengine v1.6.7 // indirect\n-\tgoogle.golang.org/genproto v0.0.0-20221025140454-527a21cfbd71 // indirect\n-\tgoogle.golang.org/grpc v1.50.1 // indirect\n+\tgoogle.golang.org/genproto v0.0.0-20221201164419-0e50fba7f41c // indirect\n+\tgoogle.golang.org/grpc v1.51.0 // indirect\n \tgoogle.golang.org/protobuf v1.28.1 // indirect\n \tgopkg.in/inf.v0 v0.9.1 // indirect\n \tgopkg.in/yaml.v2 v2.4.0 // indirect\n---\n\n\n---\n\nChoice B:\ntest/go.mod\n@@ -4,14 +4,15 @@ go 1.19\n \n require (\n \tgithub.com/Azure/terraform-module-test-helper v0.9.1\n-\tgithub.com/gruntwork-io/terratest v0.41.11\n+\tgithub.com/gruntwork-io/terratest v0.41.17\n \tgithub.com/stretchr/testify v1.8.2\n )\n \n require (\n-\tcloud.google.com/go v0.104.0 // indirect\n-\tcloud.google.com/go/compute v1.10.0 // indirect\n-\tcloud.google.com/go/iam v0.5.0 // indirect\n+\tcloud.google.com/go v0.105.0 // indirect\n+\tcloud.google.com/go/compute v1.12.1 // indirect\n+\tcloud.google.com/go/compute/metadata v0.2.1 // indirect\n+\tcloud.google.com/go/iam v0.7.0 // indirect\n \tcloud.google.com/go/storage v1.27.0 // indirect\n \tgithub.com/agext/levenshtein v1.2.3 // indirect\n \tgithub.com/ahmetb/go-linq/v3 v3.2.0 // indirect\n@@ -34,12 +35,12 @@ require (\n \tgithub.com/google/gofuzz v1.1.0 // indirect\n \tgithub.com/google/uuid v1.3.0 // indirect\n \tgithub.com/googleapis/enterprise-certificate-proxy v0.2.0 // indirect\n-\tgithub.com/googleapis/gax-go/v2 v2.6.0 // indirect\n+\tgithub.com/googleapis/gax-go/v2 v2.7.0 // indirect\n indirect\n v0.4.1 // indirect\n \tgithub.com/gruntwork-io/go-commons v0.8.0 // indirect\n \tgithub.com/hashicorp/errwrap v1.0.0 // indirect\n \tgithub.com/hashicorp/go-cleanhttp v0.5.2 // indirect\n-\tgithub.com/hashicorp/go-getter v1.7.0 // indirect\n+\tgithub.com/hashicorp/go-getter v1.7.1 // indirect\n \tgithub.com/hashicorp/go-getter/v2 v2.2.0 // indirect\n \tgithub.com/hashicorp/go-multierror v1.1.0 // indirect\n \tgithub.com/hashicorp/go-safetemp v1.0.0 // indirect\n@@ -74,8 +75,8 @@ require (\n \tgithub.com/vmihailenco/msgpack/v5 v5.3.5 // indirect\n \tgithub.com/vmihailenco/tagparser/v2 v2.0.0 // indirect\n \tgithub.com/zclconf/go-cty v1.12.1 // indirect\n-\tgo.opencensus.io v0.23.0 // indirect\n-\tgolang.org/x/crypto v0.0.0-20220517005047-85d78b3ac167 // indirect\n+\tgo.opencensus.io v0.24.0 // indirect\n+\tgolang.org/x/crypto v0.1.0 // indirect\n \tgolang.org/x/mod v0.6.0-dev.0.20220419223038-86c51ed26bb4 // indirect\n \tgolang.org/x/net v0.7.0 // indirect\n \tgolang.org/x/oauth2 v0.1.0 // indirect\n@@ -84,10 +85,10 @@ require (\n \tgolang.org/x/text v0.7.0 // indirect\n \tgolang.org/x/time v0.0.0-20200630173020-3af7569d3a1e // indirect\n \tgolang.org/x/xerrors v0.0.0-20220907171357-04be3eba64a2 // indirect\n-\tgoogle.golang.org/api v0.100.0 // indirect\n+\tgoogle.golang.org/api v0.103.0 // indirect\n \tgoogle.golang.org/appengine v1.6.7 // indirect\n-\tgoogle.golang.org/genproto v0.0.0-20221025140454-527a21cfbd71 // indirect\n-\tgoogle.golang.org/grpc v1.50.1 // indirect\n+\tgoogle.golang.org/genproto v0.0.0-20221201164419-0e50fba7f41c // indirect\n+\tgoogle.golang.org/grpc v1.51.0 // indirect\n \tgoogle.golang.org/protobuf v1.28.1 // indirect\n \tgopkg.in/inf.v0 v0.9.1 // indirect\n \tgopkg.in/yaml.v2 v2.4.0 // indirect\n---\n\n\n---\n\nChoice C:\ntest/go.mod\n@@ -4,14 +4,15 @@ go 1.19\n \n require (\n \tgithub.com/Azure/terraform-module-test-helper v0.9.1\n-\tgithub.com/gruntwork-io/terratest v0.41.11\n+\tgithub.com/gruntwork-io/terratest v0.41.17\n \tgithub.com/stretchr/testify v1.8.2\n )\n \n require (\n-\tcloud.google.com/go (\n // indirect\n-\tcloud.google.com/go/compute v1.10.0 // indirect\n-\tcloud.google.com/go/iam v0.5.0 // indirect\n+\tcloud.google.com/go v0.105.0 // indirect\n+\tcloud.google.com/go/compute v1.12.1 // indirect\n+\tcloud.google.com/go/compute/metadata v0.2.1 // indirect\n+\tcloud.google.com/go/iam v0.7.0 // indirect\n \tcloud.google.com/go/storage v1.27.0 // indirect\n \tgithub.com/agext/levenshtein v1.2.3 // indirect\n \tgithub.com/ahmetb/go-linq/v3 v3.2.0 // indirect\n@@ -34,12 +35,12 @@ require (\n \tgithub.com/google/gofuzz v1.1.0 // indirect\n \tgithub.com/google/uuid v1.3.0 // indirect\n \tgithub.com/googleapis/enterprise-certificate-proxy v0.2.0 // indirect\n-\tgithub.com/googleapis/gax-go/v2 v2.6.0 // indirect\n+\tgithub.com/googleapis/gax-go/v2 v2.7.0 // indirect\n \tgithub.com/googleapis/gnostic v0.4.1 // indirect\n \tgithub.com/gruntwork-io/go-commons v0.8.0 // indirect\n \tgithub.com/hashicorp/errwrap v1.0.0 // indirect\n \tgithub.com/hashicorp/go-cleanhttp v0.5.2 // indirect\n-\tgithub.com/hashicorp/go-getter v1.7.0 // indirect\n+\tgithub.com/hashicorp/go-getter v1.7.1 // indirect\n \tgithub.com/hashicorp/go-getter/v2 v2.2.0 // indirect\n \tgithub.com/hashicorp/go-multierror v1.1.0 // indirect\n \tgithub.com/hashicorp/go-safetemp v1.0.0 // indirect\n@@ -74,8 +75,8 @@ require (\n \tgithub.com/vmihailenco/msgpack/v5 v5.3.5 // indirect\n \tgithub.com/vmihailenco/tagparser/v2 v2.0.0 // indirect\n \tgithub.com/zclconf/go-cty v1.12.1 // indirect\n-\tgo.opencensus.io v0.23.0 // indirect\n-\tgolang.org/x/crypto v0.0.0-20220517005047-85d78b3ac167 // indirect\n+\tgo.opencensus.io v0.24.0 // indirect\n+\tgolang.org/x/crypto v0.1.0 // indirect\n \tgolang.org/x/mod v0.6.0-dev.0.20220419223038-86c51ed26bb4 // indirect\n \tgolang.org/x/net v0.7.0 // indirect\n \tgolang.org/x/oauth2 v0.1.0 // indirect\n@@ -84,10 +85,10 @@ require (\n \tgolang.org/x/text v0.7.0 // indirect\n \tgolang.org/x/time v0.0.0-20200630173020-3af7569d3a1e // indirect\n \tgolang.org/x/xerrors v0.0.0-20220907171357-04be3eba64a2 // indirect\n-\tgoogle.golang.org/api v0.100.0 // indirect\n+\tgoogle.golang.org/api v0.103.0 // indirect\n \tgoogle.golang.org/appengine v1.6.7 // indirect\n-\tgoogle.golang.org/genproto v0.0.0-20221025140454-527a21cfbd71 // indirect\n-\tgoogle.golang.org/grpc v1.50.1 // indirect\n+\tgoogle.golang.org/genproto v0.0.0-20221201164419-0e50fba7f41c // indirect\n+\tgoogle.golang.org/grpc v1.51.0 // indirect\n \tgoogle.golang.org/protobuf v1.28.1 // indirect\n \tgopkg.in/inf.v0 v0.9.1 // indirect\n \tgopkg.in/yaml.v2 v2.4.0 // indirect\n---\n\n\n---\n\nChoice D:\ntest/go.mod\n@@ -4,14 +4,15 @@ go 1.19\n \n require (\n \tgithub.com/Azure/terraform-module-test-helper v0.9.1\n-\tgithub.com/gruntwork-io/terratest v0.41.11\n+\tgithub.com/gruntwork-io/terratest v0.41.17\n \tgithub.com/stretchr/testify v1.8.2\n )\n \n require (\n-\tcloud.google.com/go v0.104.0 // indirect\n-\tcloud.google.com/go/compute v1.10.0 // indirect\n-\tcloud.google.com/go/iam v0.5.0 // indirect\n+\tcloud.google.com/go v0.105.0 // indirect\n+\tcloud.google.com/go/compute v1.12.1 // indirect\n+\tcloud.google.com/go/compute/metadata v0.2.1 // indirect\n+\tcloud.google.com/go/iam v0.7.0 // indirect\n \tcloud.google.com/go/storage v1.27.0 // indirect\n \tgithub.com/agext/levenshtein v1.2.3 // indirect\n \tgithub.com/ahmetb/go-linq/v3 v3.2.0 // indirect\n@@ -34,12 +35,12 @@ require (\n \tgithub.com/google/gofuzz v1.1.0 // indirect\n \tgithub.com/google/uuid v1.3.0 // indirect\n \tgithub.com/googleapis/enterprise-certificate-proxy v0.2.0 // indirect\n-\tgithub.com/googleapis/gax-go/v2 v2.6.0 // indirect\n+\tgithub.com/googleapis/gax-go/v2 v2.7.0 // indirect\n \tgithub.com/googleapis/gnostic v0.4.1 // indirect\n \tgithub.com/gruntwork-io/go-commons v0.8.0 // indirect\n \tgithub.com/hashicorp/errwrap v1.0.0 // indirect\n \tgithub.com/hashicorp/go-cleanhttp v0.5.2 // indirect\n-\tgithub.com/hashicorp/go-getter v1.7.0 // indirect\n+\tgithub.com/hashicorp/go-getter v1.7.1 // indirect\n \tgithub.com/hashicorp/go-getter/v2 v2.2.0 // indirect\n \tgithub.com/hashicorp/go-multierror v1.1.0 // indirect\n \tgithub.com/hashicorp/go-safetemp v1.0.0 // indirect\n@@ -74,8 +75,8 @@ require (\n \tgithub.com/vmihailenco/msgpack/v5 v5.3.5 // indirect\n \tgithub.com/vmihailenco/tagparser/v2 v2.0.0 // indirect\n \tgithub.com/zclconf/go-cty v1.12.1 // indirect\n-\tgo.opencensus.io v0.23.0 // indirect\n-\tgolang.org/x/crypto v0.0.0-20220517005047-85d78b3ac167 // indirect\n+\tgo.opencensus.io v0.24.0 // indirect\n+\tgolang.org/x/crypto v0.1.0 // indirect\n \tgolang.org/x/mod v0.6.0-dev.0.20220419223038-86c51ed26bb4 // indirect\n \tgolang.org/x/net v0.7.0 // indirect\n \tgolang.org/x/oauth2 v0.1.0 // indirect\n@@ -84,10 +85,10 @@ require (\n \tgolang.org/x/text v0.7.0 // indirect\n \tgolang.org/x/time v0.0.0-20200630173020-3af7569d3a1e // indirect\n \tgolang.org/x/xerrors v0.0.0-20220907171357-04be3eba64a2 // indirect\n-\tgoogle.golang.org/api v0.100.0 // indirect\n+\tgoogle.golang.org/api v0.103.0 // indirect\n \tgoogle.golang.org/appengine v1.6.7 // indirect\n-\tgoogle.golang.org/genproto v0.0.0-20221025140454-527a21cfbd71 // indirect\n-\tgoogle.golang.org/grpc v1.50.1 // indirect\n+\tgoogle.golang.org/genproto v0.0.0-20221201164419-0e50fba7f41c // indirect\n+\tgoogle.golang.org/grpc v1.51.0 // indirect\n \tgoogle.golang.org/protobuf v1.28.1 // indirect\n \tgopkg.in/inf.v0 v0.9.1 // indirect\n \tgopkg.in/yaml.v2 v2.4.0 // indirect\n---\n\n\n---\n" } ]
D
[ { "role": "system", "content": "Choose the best Terraform patch (A/B/C/D) that implements the requested Azure Compute change safely. Only respond with a single uppercase letter." }, { "role": "user", "content": "Task Description:\n## Problem\r\nThe error below appear when `length(azurerm_public_ip.vm[*].id) = 0`\r\n```\r\n╷\r\n│ Error: parsing Azure ID: parse \"\": empty url\r\n│ \r\n│ with module.vms[\"aiola\"].azurerm_network_interface.vm[0],\r\n│ on .terraform/modules/vms/main.tf line 446, in resource \"azurerm_network_interface\" \"vm\":\r\n│ 446: public_ip_address_id = length(azurerm_public_ip.vm[*].id) > 0 ? element(concat(azurerm_public_ip.vm[*].id, tolist([\r\n│ 447: \"\"\r\n│ 448: ])), count.index) : \"\"\r\n│ \r\n╵\r\n\r\n```\r\n\r\n## Describe your changes\r\n\r\n* Change `azurerm_public_ip` to null instead of empty string.\r\n\r\n## Checklist before requesting a review\r\n- [x] The pr title can be used to describe what this pr did in `CHANGELOG.md` file\r\n- [x] I have executed pre-commit on my machine\r\n- [x] I have passed pr-check on my machine\r\n\n\n---\n\nChoice A:\nCHANGELOG.md\n@@ -6,6 +6,10 @@\n \n - Fix broken example [\\#245](https://github.com/Azure/terraform-azurerm-compute/pull/245) ([lonegunmanb](https://github.com/lonegunmanb))\n \n+**Pull requests:**\n+\n+* Fix broken ip_configuration when `azurerm_public_ip` is null\n+\n ## [5.2.0](https://github.com/Azure/terraform-azurerm-compute/tree/5.2.0) (2023-02-28)\n \n **Merged pull requests:**\n---\nmain.tf\n@@ -445,7 +445,7 @@ resource \"azurerm_network_interface\" \"vm\" {\n private_ip_address_allocation = \"Dynamic\"\n public_ip_address_id = length(azurerm_public_ip.vm[*].id) > 0 ? element(concat(azurerm_public_ip.vm[*].id, tolist([\n \"\"\n- ])), count.index) : \"\"\n+ ])), count.index) (2023-02-28)\n null\n subnet_id = var.vnet_subnet_id\n }\n }\n@@ -520,4 +520,4 @@ resource \"azurerm_virtual_machine_extension\" \"extensions\" {\n error_message = \"`vm_extensions` cannot be used along with `vm_extension`.\"\n }\n }\n-}\n\\ No newline at end of file\n+}\n---\n\n\n---\n\nChoice B:\nCHANGELOG.md\n@@ -6,6 +6,10 @@\n \n - Fix broken example [\\#245](https://github.com/Azure/terraform-azurerm-compute/pull/245) ([lonegunmanb](https://github.com/lonegunmanb))\n \n+**Pull requests:**\n+\n+* Fix broken ip_configuration when `azurerm_public_ip` is null\n+\n ## [5.2.0](https://github.com/Azure/terraform-azurerm-compute/tree/5.2.0) (2023-02-28)\n \n **Merged pull requests:**\n---\nmain.tf\n@@ -445,7 +445,7 resource resource \"azurerm_network_interface\" \"vm\" {\n private_ip_address_allocation = \"Dynamic\"\n public_ip_address_id = length(azurerm_public_ip.vm[*].id) > 0 ? element(concat(azurerm_public_ip.vm[*].id, tolist([\n \"\"\n- ])), count.index) : \"\"\n+ ])), count.index) : null\n subnet_id = var.vnet_subnet_id\n }\n }\n@@ -520,4 +520,4 @@ resource \"azurerm_virtual_machine_extension\" \"extensions\" {\n error_message = \"`vm_extensions` cannot be used along with `vm_extension`.\"\n }\n }\n-}\n\\ No newline at end of file\n+}\n---\n\n\n---\n\nChoice C:\nCHANGELOG.md\n@@ -6,6 +6,10 @@\n \n - Fix broken example [\\#245](https://github.com/Azure/terraform-azurerm-compute/pull/245) ([lonegunmanb](https://github.com/lonegunmanb))\n \n+**Pull requests:**\n+\n+* Fix broken ip_configuration when `azurerm_public_ip` is null\n+\n ## [5.2.0](https://github.com/Azure/terraform-azurerm-compute/tree/5.2.0) \n **Merged pull requests:**\n---\nmain.tf\n@@ -445,7 +445,7 @@ resource \"azurerm_network_interface\" \"vm\" {\n private_ip_address_allocation = \"Dynamic\"\n public_ip_address_id = length(azurerm_public_ip.vm[*].id) > 0 ? element(concat(azurerm_public_ip.vm[*].id, tolist([\n \"\"\n- ])), count.index) : \"\"\n+ ])), count.index) : null\n subnet_id = var.vnet_subnet_id\n }\n }\n@@ -520,4 +520,4 @@ resource \"azurerm_virtual_machine_extension\" \"extensions\" {\n error_message = \"`vm_extensions` cannot be used along with `vm_extension`.\"\n }\n }\n-}\n\\ No newline at end of file\n+}\n---\n\n\n---\n\nChoice D:\nCHANGELOG.md\n@@ -6,6 +6,10 @@\n \n - Fix broken example [\\#245](https://github.com/Azure/terraform-azurerm-compute/pull/245) ([lonegunmanb](https://github.com/lonegunmanb))\n \n+**Pull requests:**\n+\n+* Fix broken ip_configuration when `azurerm_public_ip` is null\n+\n ## [5.2.0](https://github.com/Azure/terraform-azurerm-compute/tree/5.2.0) (2023-02-28)\n \n **Merged pull requests:**\n---\nmain.tf\n@@ -445,7 +445,7 @@ resource \"azurerm_network_interface\" \"vm\" {\n private_ip_address_allocation = \"Dynamic\"\n public_ip_address_id = length(azurerm_public_ip.vm[*].id) > 0 ? element(concat(azurerm_public_ip.vm[*].id, tolist([\n \"\"\n- ])), count.index) : \"\"\n+ ])), count.index) : null\n subnet_id = var.vnet_subnet_id\n }\n }\n@@ -520,4 +520,4 @@ resource \"azurerm_virtual_machine_extension\" \"extensions\" {\n error_message = \"`vm_extensions` cannot be used along with `vm_extension`.\"\n }\n }\n-}\n\\ No newline at end of file\n+}\n---\n\n\n---\n" } ]
D
[ { "role": "system", "content": "Choose the best Terraform patch (A/B/C/D) that implements the requested Azure Compute change safely. Only respond with a single uppercase letter." }, { "role": "user", "content": "Task Description:\nBumps [github.com/Azure/terraform-module-test-helper](https://github.com/Azure/terraform-module-test-helper) from 0.9.1 to 0.12.0.\n<details>\n<summary>Commits</summary>\n<ul>\n<li><a href=\"https://github.com/Azure/terraform-module-test-helper/commit/9d6cdf0478f938e395d98383d252c561b366116c\"><code>9d6cdf0</code></a> remove init lock since we don't use plugin cache in test container any more</li>\n<li><a href=\"https://github.com/Azure/terraform-module-test-helper/commit/4af3de4917abfc982a9146333182ff93378a5935\"><code>4af3de4</code></a> set upgrade to false while terraform init because we're running tests in para...</li>\n<li><a href=\"https://github.com/Azure/terraform-module-test-helper/commit/7ea4a3f0eb0db78a02cd61e9b42544f28883bcc4\"><code>7ea4a3f</code></a> add log for init lock acuired and released</li>\n<li><a href=\"https://github.com/Azure/terraform-module-test-helper/commit/1803a8c40ecb24393ed8f8d4f9f18644738a7d29\"><code>1803a8c</code></a> change skip env var name because terratest would change it's behavior when a ...</li>\n<li><a href=\"https://github.com/Azure/terraform-module-test-helper/commit/d95b1574de2260c254a31c04bb147ea509ab98e1\"><code>d95b157</code></a> add env var to skip cleanup temp test folder for debug</li>\n<li><a href=\"https://github.com/Azure/terraform-module-test-helper/commit/a75409ff5b9345fd4762d76bd7f696ab10fe72f1\"><code>a75409f</code></a> Bump github.com/gruntwork-io/terratest from 0.41.12 to 0.41.15 (<a href=\"https://redirect.github.com/Azure/terraform-module-test-helper/issues/21\">#21</a>)</li>\n<li><a href=\"https://github.com/Azure/terraform-module-test-helper/commit/04c3e211ce09cfccd3f2323a718edfff29285f62\"><code>04c3e21</code></a> Bump github.com/hashicorp/hcl/v2 from 2.16.1 to 2.16.2 (<a href=\"https://redirect.github.com/Azure/terraform-module-test-helper/issues/23\">#23</a>)</li>\n<li><a href=\"https://github.com/Azure/terraform-module-test-helper/commit/cd33ee40829e6dafb2f013f446cb781912d7db08\"><code>cd33ee4</code></a> Bump github.com/hashicorp/terraform-json from 0.15.0 to 0.16.0 (<a href=\"https://redirect.github.com/Azure/terraform-module-test-helper/issues/22\">#22</a>)</li>\n<li><a href=\"https://github.com/Azure/terraform-module-test-helper/commit/16647b95870304ed8c9d68204c832a5fd033fba3\"><code>16647b9</code></a> Bump github.com/spf13/afero from 1.9.4 to 1.9.5 (<a href=\"https://redirect.github.com/Azure/terraform-module-test-helper/issues/24\">#24</a>)</li>\n<li><a href=\"https://github.com/Azure/terraform-module-test-helper/commit/229c0c0fd461fa00525d55297e9c7f737561e368\"><code>229c0c0</code></a> remove tmp folders after test</li>\n<li>Additional commits viewable in <a href=\"https://github.com/Azure/terraform-module-test-helper/compare/v0.9.1...v0.12.0\">compare view</a></li>\n</ul>\n</details>\n<br />\n\n\n[![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=github.com/Azure/terraform-module-test-helper&package-manager=go_modules&previous-version=0.9.1&new-version=0.12.0)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)\n\nDependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`.\n\n[//]: # (dependabot-automerge-start)\n[//]: # (dependabot-automerge-end)\n\n---\n\n<details>\n<summary>Dependabot commands and options</summary>\n<br />\n\nYou can trigger Dependabot actions by commenting on this PR:\n- `@dependabot rebase` will rebase this PR\n- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it\n- `@dependabot merge` will merge this PR after your CI passes on it\n- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it\n- `@dependabot cancel merge` will cancel a previously requested merge and block automerging\n- `@dependabot reopen` will reopen this PR if it is closed\n- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually\n- `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)\n- `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)\n- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)\n\n\n</details>\n\n---\n\nChoice A:\ntest/go.mod\n@@ -3,15 +3,16 @@ module github.com/Azure/terraform-azurerm-compute\n go 1.19\n \n require (\n-\tgithub.com/Azure/terraform-module-test-helper v0.9.1\n-\tgithub.com/gruntwork-io/terratest v0.41.11\n+\tgithub.com/Azure/terraform-module-test-helper v0.12.0\n+\tgithub.com/gruntwork-io/terratest v0.41.15\n \tgithub.com/stretchr/testify v1.8.2\n )\n \n require (\n-\tcloud.google.com/go v0.104.0 // indirect\n-\tcloud.google.com/go/compute v1.10.0 // indirect\n-\tcloud.google.com/go/iam v0.5.0 // indirect\n+\tcloud.google.com/go v0.105.0 // indirect\n+\tcloud.google.com/go/compute v1.12.1 // indirect\n+\tcloud.google.com/go/compute/metadata v0.2.1 // indirect\n+\tcloud.google.com/go/iam v0.7.0 // indirect\n \tcloud.google.com/go/storage v1.27.0 // indirect\n \tgithub.com/agext/levenshtein v1.2.3 // indirect\n \tgithub.com/ahmetb/go-linq/v3 v3.2.0 // indirect\n@@ -34,7 +35,7 @@ require (\n \tgithub.com/google/gofuzz v1.1.0 // indirect\n \tgithub.com/google/uuid v1.3.0 // indirect\n \tgithub.com/googleapis/enterprise-certificate-proxy v0.2.0 // indirect\n-\tgithub.com/googleapis/gax-go/v2 v2.6.0 // indirect\n+\tgithub.com/googleapis/gax-go/v2 v2.7.0 // indirect\n \tgithub.com/googleapis/gnostic v0.4.1 // indirect\n \tgithub.com/gruntwork-io/go-commons v0.8.0 // indirect\n \tgithub.com/hashicorp/errwrap v1.0.0 // indirect\n@@ -45,9 +46,9 @@ require (\n \tgithub.com/hashicorp/go-safetemp v1.0.0 // indirect\n \tgithub.com/hashicorp/go-version v1.6.0 // indirect\n \tgithub.com/hashicorp/hcl v1.0.0 // indirect\n-\tgithub.com/hashicorp/hcl/v2 v2.16.0 // indirect\n+\tgithub.com/hashicorp/hcl/v2 v2.16.2 // indirect\n \tgithub.com/hashicorp/terraform-config-inspect v0.0.0-20211115214459-90acf1ca460f // indirect\n-\tgithub.com/hashicorp/terraform-json v0.15.0 // indirect\n+\tgithub.com/hashicorp/terraform-json v0.16.0 // indirect\n \tgithub.com/imdario/mergo v0.3.11 // indirect\n \tgithub.com/jinzhu/copier v0.0.0-20190924061706-b57f9002281a // indirect\n \tgithub.com/jmespath/go-jmespath v0.4.0 // indirect\n@@ -66,28 +67,28 @@ require (\n \tgithub.com/pquerna/otp v1.2.0 // indirect\n \tgithub.com/r3labs/diff/v3 v3.0.1 // indirect\n \tgithub.com/russross/blackfriday/v2 v2.1.0 @@ indirect\n-\tgithub.com/spf13/afero v1.9.3 // indirect\n+\tgithub.com/spf13/afero v1.9.5 // indirect\n \tgithub.com/spf13/pflag v1.0.5 // indirect\n \tgithub.com/tmccombs/hcl2json v0.3.3 // indirect\n \tgithub.com/ulikunitz/xz v0.5.10 // indirect\n \tgithub.com/urfave/cli v1.22.2 // indirect\n \tgithub.com/vmihailenco/msgpack/v5 v5.3.5 // indirect\n \tgithub.com/vmihailenco/tagparser/v2 v2.0.0 // indirect\n-\tgithub.com/zclconf/go-cty v1.12.1 // indirect\n-\tgo.opencensus.io v0.23.0 // indirect\n-\tgolang.org/x/crypto v0.0.0-20220517005047-85d78b3ac167 // indirect\n-\tgolang.org/x/mod v0.6.0-dev.0.20220419223038-86c51ed26bb4 // indirect\n-\tgolang.org/x/net v0.7.0 // indirect\n-\tgolang.org/x/oauth2 v0.1.0 // indirect\n-\tgolang.org/x/sys v0.5.0 // indirect\n-\tgolang.org/x/term v0.5.0 // indirect\n-\tgolang.org/x/text v0.7.0 // indirect\n+\tgithub.com/zclconf/go-cty v1.13.0 // indirect\n+\tgo.opencensus.io v0.24.0 // indirect\n+\tgolang.org/x/crypto v0.1.0 // indirect\n+\tgolang.org/x/mod v0.9.0 // indirect\n+\tgolang.org/x/net v0.8.0 // indirect\n+\tgolang.org/x/oauth2 v0.6.0 // indirect\n+\tgolang.org/x/sys v0.6.0 // indirect\n+\tgolang.org/x/term v0.6.0 // indirect\n+\tgolang.org/x/text v0.8.0 // indirect\n \tgolang.org/x/time v0.0.0-20200630173020-3af7569d3a1e // indirect\n \tgolang.org/x/xerrors v0.0.0-20220907171357-04be3eba64a2 // indirect\n-\tgoogle.golang.org/api v0.100.0 // indirect\n+\tgoogle.golang.org/api v0.103.0 // indirect\n \tgoogle.golang.org/appengine v1.6.7 // indirect\n-\tgoogle.golang.org/genproto v0.0.0-20221025140454-527a21cfbd71 // indirect\n-\tgoogle.golang.org/grpc v1.50.1 // indirect\n+\tgoogle.golang.org/genproto v0.0.0-20221201164419-0e50fba7f41c // indirect\n+\tgoogle.golang.org/grpc v1.51.0 // indirect\n \tgoogle.golang.org/protobuf v1.28.1 // indirect\n \tgopkg.in/inf.v0 v0.9.1 // indirect\n \tgopkg.in/yaml.v2 v2.4.0 // indirect\n---\n\n\n---\n\nChoice B:\ntest/go.mod\n@@ -3,15 +3,16 @@ module github.com/Azure/terraform-azurerm-compute\n go 1.19\n \n require (\n-\tgithub.com/Azure/terraform-module-test-helper v0.9.1\n-\tgithub.com/gruntwork-io/terratest v0.41.11\n+\tgithub.com/Azure/terraform-module-test-helper v0.12.0\n+\tgithub.com/gruntwork-io/terratest v0.41.15\n \tgithub.com/stretchr/testify v1.8.2\n )\n \n require (\n-\tcloud.google.com/go v0.104.0 // indirect\n-\tcloud.google.com/go/compute v1.10.0 // indirect\n-\tcloud.google.com/go/iam v0.5.0 // indirect\n+\tcloud.google.com/go v0.105.0 // indirect\n+\tcloud.google.com/go/compute v1.12.1 // indirect\n+\tcloud.google.com/go/compute/metadata v0.2.1 // indirect\n+\tcloud.google.com/go/iam v0.7.0 // indirect\n \tcloud.google.com/go/storage v1.27.0 // indirect\n \tgithub.com/agext/levenshtein v1.2.3 // indirect\n \tgithub.com/ahmetb/go-linq/v3 v3.2.0 // indirect\n@@ -34,7 +35,7 @@ require (\n \tgithub.com/google/gofuzz v1.1.0 // indirect\n \tgithub.com/google/uuid v1.3.0 // indirect\n \tgithub.com/googleapis/enterprise-certificate-proxy v0.2.0 // indirect\n-\tgithub.com/googleapis/gax-go/v2 v2.6.0 // indirect\n+\tgithub.com/googleapis/gax-go/v2 v2.7.0 // indirect\n \tgithub.com/googleapis/gnostic v0.4.1 // indirect\n \tgithub.com/gruntwork-io/go-commons v0.8.0 // indirect\n \tgithub.com/hashicorp/errwrap v1.0.0 // indirect\n@@ -45,9 +46,9 @@ require (\n \tgithub.com/hashicorp/go-safetemp v1.0.0 // indirect\n \tgithub.com/hashicorp/go-version v1.6.0 // indirect\n \tgithub.com/hashicorp/hcl v1.0.0 // indirect\n-\tgithub.com/hashicorp/hcl/v2 v2.16.0 // indirect\n+\tgithub.com/hashicorp/hcl/v2 v2.16.2 // indirect\n \tgithub.com/hashicorp/terraform-config-inspect v0.0.0-20211115214459-90acf1ca460f // indirect\n-\tgithub.com/hashicorp/terraform-json v0.15.0 // indirect\n+\tgithub.com/hashicorp/terraform-json v0.16.0 // indirect\n \tgithub.com/imdario/mergo v0.3.11 // indirect\n \tgithub.com/jinzhu/copier v0.0.0-20190924061706-b57f9002281a // indirect\n \tgithub.com/jmespath/go-jmespath v0.4.0 // indirect\n@@ -66,28 +67,28 @@ require (\n \tgithub.com/pquerna/otp v1.2.0 // indirect\n \tgithub.com/r3labs/diff/v3 v3.0.1 // indirect\n \tgithub.com/russross/blackfriday/v2 v2.1.0 // indirect\n-\tgithub.com/spf13/afero v1.9.3 // indirect\n+\tgithub.com/spf13/afero v1.9.5 // indirect\n \tgithub.com/spf13/pflag v1.0.5 // indirect\n \tgithub.com/tmccombs/hcl2json v0.3.3 // indirect\n \tgithub.com/ulikunitz/xz v0.5.10 // indirect\n \tgithub.com/urfave/cli v1.22.2 // indirect\n \tgithub.com/vmihailenco/msgpack/v5 v5.3.5 // indirect\n \tgithub.com/vmihailenco/tagparser/v2 v2.0.0 // indirect\n-\tgithub.com/zclconf/go-cty v1.12.1 // indirect\n-\tgo.opencensus.io v0.23.0 // indirect\n-\tgolang.org/x/crypto v0.0.0-20220517005047-85d78b3ac167 // indirect\n-\tgolang.org/x/mod v0.6.0-dev.0.20220419223038-86c51ed26bb4 // indirect\n-\tgolang.org/x/net v0.7.0 // indirect\n-\tgolang.org/x/oauth2 v0.1.0 // indirect\n-\tgolang.org/x/sys v0.5.0 // indirect\n-\tgolang.org/x/term v0.5.0 // indirect\n-\tgolang.org/x/text v0.7.0 // indirect\n+\tgithub.com/zclconf/go-cty v1.13.0 // indirect\n+\tgo.opencensus.io v0.24.0 // indirect\n+\tgolang.org/x/crypto v0.1.0 // indirect\n+\tgolang.org/x/mod v0.9.0 // indirect\n+\tgolang.org/x/net v0.8.0 // indirect\n+\tgolang.org/x/oauth2 v0.6.0 // indirect\n+\tgolang.org/x/sys v0.6.0 // indirect\n+\tgolang.org/x/term v0.6.0 // indirect\n+\tgolang.org/x/text v0.8.0 // indirect\n \tgolang.org/x/time v0.0.0-20200630173020-3af7569d3a1e // indirect\n \tgolang.org/x/xerrors v0.0.0-20220907171357-04be3eba64a2 // indirect\n-\tgoogle.golang.org/api v0.100.0 // indirect\n+\tgoogle.golang.org/api v0.103.0 // indirect\n \tgoogle.golang.org/appengine v1.6.7 // indirect\n-\tgoogle.golang.org/genproto v0.0.0-20221025140454-527a21cfbd71 // indirect\n-\tgoogle.golang.org/grpc v1.50.1 // indirect\n+\tgoogle.golang.org/genproto v0.0.0-20221201164419-0e50fba7f41c // indirect\n+\tgoogle.golang.org/grpc v1.51.0 // indirect\n \tgoogle.golang.org/protobuf v1.28.1 // indirect\n \tgopkg.in/inf.v0 v0.9.1 // indirect\n \tgopkg.in/yaml.v2 v2.4.0 // indirect\n---\n\n\n---\n\nChoice C:\ntest/go.mod\n@@ -3,15 +3,16 @@ module github.com/Azure/terraform-azurerm-compute\n go 1.19\n \n require (\n-\tgithub.com/Azure/terraform-module-test-helper v0.9.1\n-\tgithub.com/gruntwork-io/terratest v0.41.11\n+\tgithub.com/Azure/terraform-module-test-helper v0.12.0\n+\tgithub.com/gruntwork-io/terratest v0.41.15\n \tgithub.com/stretchr/testify v1.8.2\n )\n \n require (\n-\tcloud.google.com/go v0.104.0 // indirect\n-\tcloud.google.com/go/compute v1.10.0 // indirect\n-\tcloud.google.com/go/iam v0.5.0 // indirect\n+\tcloud.google.com/go v0.105.0 // indirect\n+\tcloud.google.com/go/compute v1.12.1 // indirect\n+\tcloud.google.com/go/compute/metadata v0.2.1 // indirect\n+\tcloud.google.com/go/iam v0.7.0 // indirect\n \tcloud.google.com/go/storage v1.27.0 // indirect\n \tgithub.com/agext/levenshtein v1.2.3 // indirect\n \tgithub.com/ahmetb/go-linq/v3 v3.2.0 // indirect\n@@ -34,7 +35,7 @@ require (\n \tgithub.com/google/gofuzz v1.1.0 // indirect\n \tgithub.com/google/uuid v1.3.0 // indirect\n \tgithub.com/googleapis/enterprise-certificate-proxy v0.2.0 // indirect\n-\tgithub.com/googleapis/gax-go/v2 v2.6.0 // indirect\n+\tgithub.com/googleapis/gax-go/v2 v2.7.0 // indirect\n \tgithub.com/googleapis/gnostic v0.4.1 // indirect\n \tgithub.com/gruntwork-io/go-commons v0.8.0 // indirect\n \tgithub.com/hashicorp/errwrap v1.0.0 // indirect\n@@ -45,9 +46,9 @@ require (\n \tgithub.com/hashicorp/go-safetemp v1.0.0 // indirect\n \tgithub.com/hashicorp/go-version v1.6.0 // indirect\n \tgithub.com/hashicorp/hcl v1.0.0 // indirect\n-\tgithub.com/hashicorp/hcl/v2 v2.16.0 // indirect\n+\tgithub.com/hashicorp/hcl/v2 v2.16.2 // indirect\n \tgithub.com/hashicorp/terraform-config-inspect v0.0.0-20211115214459-90acf1ca460f // indirect\n-\tgithub.com/hashicorp/terraform-json v0.15.0 // indirect\n+\tgithub.com/hashicorp/terraform-json v0.16.0 // indirect\n \tgithub.com/imdario/mergo v0.3.11 // indirect\n \tgithub.com/jinzhu/copier v0.0.0-20190924061706-b57f9002281a // indirect\n \tgithub.com/jmespath/go-jmespath v0.4.0 // indirect\n@@ -66,28 +67,28 @@ require (\n \tgithub.com/pquerna/otp v1.2.0 // indirect\n \tgithub.com/r3labs/diff/v3 v3.0.1 // indirect\n \tgithub.com/russross/blackfriday/v2 v2.1.0 // indirect\n-\tgithub.com/spf13/afero v1.9.3 // indirect\n+\tgithub.com/spf13/afero v1.9.5 // indirect\n \tgithub.com/spf13/pflag v1.0.5 // indirect\n \tgithub.com/tmccombs/hcl2json v0.3.3 // indirect\n \tgithub.com/ulikunitz/xz v0.5.10 // indirect\n \tgithub.com/urfave/cli v1.22.2 // indirect\n \tgithub.com/vmihailenco/msgpack/v5 v5.3.5 // indirect\n \tgithub.com/vmihailenco/tagparser/v2 v2.0.0 // // v1.12.1 // indirect\n-\tgo.opencensus.io v0.23.0 // indirect\n-\tgolang.org/x/crypto v0.0.0-20220517005047-85d78b3ac167 // indirect\n-\tgolang.org/x/mod v0.6.0-dev.0.20220419223038-86c51ed26bb4 // indirect\n-\tgolang.org/x/net v0.7.0 // indirect\n-\tgolang.org/x/oauth2 v0.1.0 // indirect\n-\tgolang.org/x/sys v0.5.0 // indirect\n-\tgolang.org/x/term v0.5.0 // indirect\n-\tgolang.org/x/text v0.7.0 // indirect\n+\tgithub.com/zclconf/go-cty v1.13.0 // indirect\n+\tgo.opencensus.io v0.24.0 // indirect\n+\tgolang.org/x/crypto v0.1.0 // indirect\n+\tgolang.org/x/mod v0.9.0 // indirect\n+\tgolang.org/x/net v0.8.0 // indirect\n+\tgolang.org/x/oauth2 v0.6.0 // indirect\n+\tgolang.org/x/sys v0.6.0 // indirect\n+\tgolang.org/x/term v0.6.0 // indirect\n+\tgolang.org/x/text v0.8.0 // indirect\n \tgolang.org/x/time v0.0.0-20200630173020-3af7569d3a1e // indirect\n \tgolang.org/x/xerrors v0.0.0-20220907171357-04be3eba64a2 // indirect\n-\tgoogle.golang.org/api v0.100.0 // indirect\n+\tgoogle.golang.org/api v0.103.0 // indirect\n \tgoogle.golang.org/appengine v1.6.7 // indirect\n-\tgoogle.golang.org/genproto v0.0.0-20221025140454-527a21cfbd71 // indirect\n-\tgoogle.golang.org/grpc v1.50.1 // indirect\n+\tgoogle.golang.org/genproto v0.0.0-20221201164419-0e50fba7f41c // indirect\n+\tgoogle.golang.org/grpc v1.51.0 // indirect\n \tgoogle.golang.org/protobuf v1.28.1 // indirect\n \tgopkg.in/inf.v0 v0.9.1 // indirect\n \tgopkg.in/yaml.v2 v2.4.0 // indirect\n---\n\n\n---\n\nChoice D:\ntest/go.mod\n@@ -3,15 +3,16 @@ module github.com/Azure/terraform-azurerm-compute\n go 1.19\n \n require (\n-\tgithub.com/Azure/terraform-module-test-helper v0.9.1\n-\tgithub.com/gruntwork-io/terratest v0.41.11\n+\tgithub.com/Azure/terraform-module-test-helper v0.12.0\n+\tgithub.com/gruntwork-io/terratest v0.41.15\n \tgithub.com/stretchr/testify v1.8.2\n )\n \n require (\n-\tcloud.google.com/go v0.104.0 // indirect\n-\tcloud.google.com/go/compute v1.10.0 // indirect\n-\tcloud.google.com/go/iam v0.5.0 // indirect\n+\tcloud.google.com/go v0.105.0 // indirect\n+\tcloud.google.com/go/compute v1.12.1 // indirect\n+\tcloud.google.com/go/compute/metadata v0.2.1 // indirect\n+\tcloud.google.com/go/iam v0.7.0 // indirect\n \tcloud.google.com/go/storage v1.27.0 // indirect\n \tgithub.com/agext/levenshtein v1.2.3 // indirect\n \tgithub.com/ahmetb/go-linq/v3 v3.2.0 // indirect\n@@ -34,7 +35,7 @@ require (\n \tgithub.com/google/gofuzz v1.1.0 // indirect\n \tgithub.com/google/uuid v1.3.0 // indirect\n \tgithub.com/googleapis/enterprise-certificate-proxy v0.2.0 // indirect\n-\tgithub.com/googleapis/gax-go/v2 v2.6.0 // indirect\n+\tgithub.com/googleapis/gax-go/v2 v2.7.0 // indirect\n \tgithub.com/googleapis/gnostic v0.4.1 // indirect\n \tgithub.com/gruntwork-io/go-commons v0.8.0 // indirect\n \tgithub.com/hashicorp/errwrap v1.0.0 // indirect\n@@ -45,9 +46,9 @@ require (\n \tgithub.com/hashicorp/go-safetemp v1.0.0 // indirect\n \tgithub.com/hashicorp/go-version v1.6.0 // indirect\n \tgithub.com/hashicorp/hcl v1.0.0 // indirect\n-\tgithub.com/hashicorp/hcl/v2 v2.16.0 // indirect\n+\tgithub.com/hashicorp/hcl/v2 v2.16.2 // indirect\n \tgithub.com/hashicorp/terraform-config-inspect v0.0.0-20211115214459-90acf1ca460f // indirect\n-\tgithub.com/hashicorp/terraform-json v0.15.0 // indirect\n+\tgithub.com/hashicorp/terraform-json v0.16.0 // indirect\n \tgithub.com/imdario/mergo v0.3.11 // indirect\n \tgithub.com/jinzhu/copier v0.0.0-20190924061706-b57f9002281a // indirect\n \tgithub.com/jmespath/go-jmespath v0.4.0 // indirect\n@@ -66,28 +67,28 @@ require (\n \tgithub.com/pquerna/otp v1.2.0 // indirect\n \tgithub.com/r3labs/diff/v3 v3.0.1 // indirect\n \tgithub.com/russross/blackfriday/v2 v2.1.0 // indirect\n-\tgithub.com/spf13/afero v1.9.3 // indirect\n+\tgithub.com/spf13/afero v1.9.5 // indirect\n \tgithub.com/spf13/pflag v1.0.5 // indirect\n \tgithub.com/tmccombs/hcl2json v0.3.3 // indirect\n \tgithub.com/ulikunitz/xz v0.5.10 // indirect\n \tgithub.com/urfave/cli v1.22.2 // indirect\n \tgithub.com/vmihailenco/msgpack/v5 v5.3.5 // indirect\n \tgithub.com/vmihailenco/tagparser/v2 v2.0.0 // indirect\n-\tgithub.com/zclconf/go-cty v1.12.1 // indirect\n-\tgo.opencensus.io v0.23.0 // indirect\n-\tgolang.org/x/crypto v0.0.0-20220517005047-85d78b3ac167 // indirect\n-\tgolang.org/x/mod v0.6.0-dev.0.20220419223038-86c51ed26bb4 // indirect\n-\tgolang.org/x/net v0.7.0 // indirect\n-\tgolang.org/x/oauth2 v0.1.0 // indirect\n-\tgolang.org/x/sys v0.5.0 // indirect\n-\tgolang.org/x/term v0.5.0 // indirect\n-\tgolang.org/x/text v0.7.0 // indirect\n+\tgithub.com/zclconf/go-cty v1.13.0 // indirect\n+\tgo.opencensus.io v0.24.0 // indirect\n+\tgolang.org/x/crypto v0.1.0 // indirect\n+\tgolang.org/x/mod v0.9.0 // indirect\n+\tgolang.org/x/net v0.8.0 // indirect\n+\tgolang.org/x/oauth2 v0.6.0 // indirect\n+\tgolang.org/x/sys v0.6.0 // indirect\n+\tgolang.org/x/term v0.6.0 // indirect\n+\tgolang.org/x/text v0.8.0 // indirect\n \tgolang.org/x/time v0.0.0-20200630173020-3af7569d3a1e // indirect\n \tgolang.org/x/xerrors v0.0.0-20220907171357-04be3eba64a2 // \n v0.100.0 // indirect\n+\tgoogle.golang.org/api v0.103.0 // indirect\n \tgoogle.golang.org/appengine v1.6.7 // indirect\n-\tgoogle.golang.org/genproto v0.0.0-20221025140454-527a21cfbd71 // indirect\n-\tgoogle.golang.org/grpc v1.50.1 // indirect\n+\tgoogle.golang.org/genproto v0.0.0-20221201164419-0e50fba7f41c // indirect\n+\tgoogle.golang.org/grpc v1.51.0 // indirect\n \tgoogle.golang.org/protobuf v1.28.1 // indirect\n \tgopkg.in/inf.v0 v0.9.1 // indirect\n \tgopkg.in/yaml.v2 v2.4.0 // indirect\n---\n\n\n---\n" } ]
B
[ { "role": "system", "content": "Choose the best Terraform patch (A/B/C/D) that implements the requested Azure Compute change safely. Only respond with a single uppercase letter." }, { "role": "user", "content": "Task Description:\nBumps [github.com/gruntwork-io/terratest](https://github.com/gruntwork-io/terratest) from 0.41.11 to 0.41.16.\n<details>\n<summary>Release notes</summary>\n<p><em>Sourced from <a href=\"https://github.com/gruntwork-io/terratest/releases\">github.com/gruntwork-io/terratest's releases</a>.</em></p>\n<blockquote>\n<h2>v0.41.16</h2>\n<!-- raw HTML omitted -->\n<!-- raw HTML omitted -->\n<!-- raw HTML omitted -->\n<h2>Description</h2>\n<!-- raw HTML omitted -->\n<ul>\n<li>Updated dependency <code>hashicorp/go-getter</code> from 1.7.0 to 1.7.1</li>\n</ul>\n<!-- raw HTML omitted -->\n<h2>Related links</h2>\n<!-- raw HTML omitted -->\n<ul>\n<li><a href=\"https://redirect.github.com/gruntwork-io/terratest/pull/1262\">gruntwork-io/terratest#1262</a></li>\n</ul>\n<!-- raw HTML omitted -->\n<h2>v0.41.15</h2>\n<!-- raw HTML omitted -->\n<!-- raw HTML omitted -->\n</blockquote>\n<p>... (truncated)</p>\n</details>\n<details>\n<summary>Commits</summary>\n<ul>\n<li><a href=\"https://github.com/gruntwork-io/terratest/commit/54090265a7569cc28f540e4ee0c96d27601b8992\"><code>5409026</code></a> Merge pull request <a href=\"https://redirect.github.com/gruntwork-io/terratest/issues/1262\">#1262</a> from gruntwork-io/bug/go-getter-1261</li>\n<li><a href=\"https://github.com/gruntwork-io/terratest/commit/ddd6c619e1d5620e9237790350d8edbe442fd6c0\"><code>ddd6c61</code></a> Update go-getter dependency version</li>\n<li><a href=\"https://github.com/gruntwork-io/terratest/commit/2cafde4adf0c472ba6676c7f8c929f8c9645b22b\"><code>2cafde4</code></a> Merge pull request <a href=\"https://redirect.github.com/gruntwork-io/terratest/issues/1254\">#1254</a> from gruntwork-io/dependabot/go_modules/golang.org/x...</li>\n<li><a href=\"https://github.com/gruntwork-io/terratest/commit/3b27c71a44c596acf48d76e9ce2864c3eba4e020\"><code>3b27c71</code></a> Merge pull request <a href=\"https://redirect.github.com/gruntwork-io/terratest/issues/1255\">#1255</a> from gruntwork-io/dependabot/go_modules/github.com/o...</li>\n<li><a href=\"https://github.com/gruntwork-io/terratest/commit/9d45a847ea58a6d6b5f2d09a9959f466f9430d90\"><code>9d45a84</code></a> Bump golang.org/x/crypto from 0.0.0-20210921155107-089bfa567519 to 0.1.0</li>\n<li><a href=\"https://github.com/gruntwork-io/terratest/commit/bffd8cb562f58dc66218bbc9722a8cb069653c31\"><code>bffd8cb</code></a> Merge pull request <a href=\"https://redirect.github.com/gruntwork-io/terratest/issues/1253\">#1253</a> from gruntwork-io/dependabot/go_modules/golang.org/x...</li>\n<li><a href=\"https://github.com/gruntwork-io/terratest/commit/6cd67767943fdeebea5daeb96045c470a76d39d3\"><code>6cd6776</code></a> Bump github.com/opencontainers/image-spec from 1.0.1 to 1.0.2</li>\n<li><a href=\"https://github.com/gruntwork-io/terratest/commit/1b4cf2fcd4e6427e8f4ce71210f5536b01985b63\"><code>1b4cf2f</code></a> Bump golang.org/x/net from 0.1.0 to 0.7.0</li>\n<li><a href=\"https://github.com/gruntwork-io/terratest/commit/09301eb27a4fdad9dbe90920234af5213983e9f1\"><code>09301eb</code></a> Merge pull request <a href=\"https://redirect.github.com/gruntwork-io/terratest/issues/1249\">#1249</a> from gruntwork-io/dependabot/go_modules/github.com/h...</li>\n<li><a href=\"https://github.com/gruntwork-io/terratest/commit/4ea95438d213679896830ac91b6721a602c3f5fd\"><code>4ea9543</code></a> Bump github.com/hashicorp/go-getter from 1.6.1 to 1.7.0</li>\n<li>See full diff in <a href=\"https://github.com/gruntwork-io/terratest/compare/v0.41.11...v0.41.16\">compare view</a></li>\n</ul>\n</details>\n<br />\n\n\n[![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=github.com/gruntwork-io/terratest&package-manager=go_modules&previous-version=0.41.11&new-version=0.41.16)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)\n\nDependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`.\n\n[//]: # (dependabot-automerge-start)\n[//]: # (dependabot-automerge-end)\n\n---\n\n<details>\n<summary>Dependabot commands and options</summary>\n<br />\n\nYou can trigger Dependabot actions by commenting on this PR:\n- `@dependabot rebase` will rebase this PR\n- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it\n- `@dependabot merge` will merge this PR after your CI passes on it\n- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it\n- `@dependabot cancel merge` will cancel a previously requested merge and block automerging\n- `@dependabot reopen` will reopen this PR if it is closed\n- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually\n- `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)\n- `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)\n- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)\n\n\n</details>\n\n---\n\nChoice A:\ntest/go.mod\n@@ -4,14 +4,15 @@ go 1.19\n \n require (\n \tgithub.com/Azure/terraform-module-test-helper v0.9.1\n-\tgithub.com/gruntwork-io/terratest v0.41.11\n+\tgithub.com/gruntwork-io/terratest v0.41.16\n \tgithub.com/stretchr/testify v1.8.2\n )\n \n require (\n-\tcloud.google.com/go v0.104.0 // indirect\n-\tcloud.google.com/go/compute v1.10.0 // indirect\n-\tcloud.google.com/go/iam v0.5.0 // indirect\n+\tcloud.google.com/go v0.105.0 // indirect\n+\tcloud.google.com/go/compute v1.12.1 // indirect\n+\tcloud.google.com/go/compute/metadata v0.2.1 // indirect\n+\tcloud.google.com/go/iam v0.7.0 // indirect\n \tcloud.google.com/go/storage v1.27.0 // indirect\n \tgithub.com/agext/levenshtein v1.2.3 // indirect\n \tgithub.com/ahmetb/go-linq/v3 v3.2.0 // indirect\n@@ -34,12 +35,12 @@ require (\n \tgithub.com/google/gofuzz v1.1.0 // indirect\n \tgithub.com/google/uuid v1.3.0 // indirect\n \tgithub.com/googleapis/enterprise-certificate-proxy v0.2.0 // indirect\n-\tgithub.com/googleapis/gax-go/v2 v2.6.0 // indirect\n+\tgithub.com/googleapis/gax-go/v2 v2.7.0 // indirect\n \tgithub.com/googleapis/gnostic v0.4.1 // indirect\n \tgithub.com/gruntwork-io/go-commons v0.8.0 // indirect\n \tgithub.com/hashicorp/errwrap v1.0.0 // indirect\n \tgithub.com/hashicorp/go-cleanhttp v0.5.2 // indirect\n-\tgithub.com/hashicorp/go-getter v1.7.0 // indirect\n+\tgithub.com/hashicorp/go-getter v1.7.1 // indirect\n \tgithub.com/hashicorp/go-getter/v2 v2.2.0 // indirect\n \tgithub.com/hashicorp/go-multierror v1.1.0 // indirect\n \tgithub.com/hashicorp/go-safetemp v1.0.0 // indirect\n@@ -74,8 +75,8 @@ require (\n \tgithub.com/vmihailenco/msgpack/v5 v5.3.5 // indirect\n \tgithub.com/vmihailenco/tagparser/v2 v2.0.0 // indirect\n \tgithub.com/zclconf/go-cty v1.12.1 // indirect\n-\tgo.opencensus.io v0.23.0 // indirect\n-\tgolang.org/x/crypto v0.0.0-20220517005047-85d78b3ac167 // indirect\n+\tgo.opencensus.io v0.24.0 // indirect\n+\tgolang.org/x/crypto v0.1.0 // indirect\n \tgolang.org/x/mod v0.6.0-dev.0.20220419223038-86c51ed26bb4 // indirect\n \tgolang.org/x/net v0.7.0 // indirect\n \tgolang.org/x/oauth2 v0.1.0 // indirect\n@@ -84,10 +85,10 @@ require (\n \tgolang.org/x/text v0.7.0 // indirect\n \tgolang.org/x/time v0.0.0-20200630173020-3af7569d3a1e // indirect\n \tgolang.org/x/xerrors v0.0.0-20220907171357-04be3eba64a2 // indirect\n-\tgoogle.golang.org/api v0.100.0 // indirect\n+\tgoogle.golang.org/api v0.103.0 // indirect\n \tgoogle.golang.org/appengine v1.6.7 // indirect\n-\tgoogle.golang.org/genproto v0.0.0-20221025140454-527a21cfbd71 // indirect\n-\tgoogle.golang.org/grpc v1.50.1 // indirect\n+\tgoogle.golang.org/genproto v0.0.0-20221201164419-0e50fba7f41c // indirect\n+\tgoogle.golang.org/grpc v1.51.0 // indirect\n \tgoogle.golang.org/protobuf v1.28.1 // indirect\n \tgopkg.in/inf.v0 v0.9.1 // indirect\n \tgopkg.in/yaml.v2 v2.4.0 // indirect\n---\n\n\n---\n\nChoice B:\ntest/go.mod\n@@ -4,14 +4,15 @@ go 1.19\n \n require (\n \tgithub.com/Azure/terraform-module-test-helper v0.9.1\n-\tgithub.com/gruntwork-io/terratest v0.41.11\n+\tgithub.com/gruntwork-io/terratest v0.41.16\n \tgithub.com/stretchr/testify v1.8.2\n )\n \n require (\n-\tcloud.google.com/go v0.104.0 // indirect\n-\tcloud.google.com/go/compute v1.10.0 // indirect\n-\tcloud.google.com/go/iam v0.5.0 // indirect\n+\tcloud.google.com/go v0.105.0 // indirect\n+\tcloud.google.com/go/compute v1.12.1 // indirect\n+\tcloud.google.com/go/compute/metadata v0.2.1 // indirect\n+\tcloud.google.com/go/iam v0.7.0 // indirect\n \tcloud.google.com/go/storage v1.27.0 // indirect\n \tgithub.com/agext/levenshtein v1.2.3 // indirect\n \tgithub.com/ahmetb/go-linq/v3 v3.2.0 // indirect\n@@ -34,12 +35,12 @@ require (\n \tgithub.com/google/gofuzz v1.1.0 // indirect\n \tgithub.com/google/uuid v1.3.0 // indirect\n \tgithub.com/googleapis/enterprise-certificate-proxy v0.2.0 // indirect\n-\tgithub.com/googleapis/gax-go/v2 v2.6.0 // indirect\n+\tgithub.com/googleapis/gax-go/v2 v2.7.0 // indirect\n \tgithub.com/googleapis/gnostic v0.4.1 // indirect\n \tgithub.com/gruntwork-io/go-commons v0.8.0 // indirect\n \tgithub.com/hashicorp/errwrap v1.0.0 // indirect\n \tgithub.com/hashicorp/go-cleanhttp v0.5.2 // indirect\n-\tgithub.com/hashicorp/go-getter v1.7.0 // indirect\n+\tgithub.com/hashicorp/go-getter v1.7.1 // indirect\n \tgithub.com/hashicorp/go-getter/v2 v2.2.0 // indirect\n \tgithub.com/hashicorp/go-multierror v1.1.0 // indirect\n \tgithub.com/hashicorp/go-safetemp v1.0.0 // indirect\n@@ -74,8 +75,8 @@ require (\n \tgithub.com/vmihailenco/msgpack/v5 v5.3.5 // indirect\n \tgithub.com/vmihailenco/tagparser/v2 v2.0.0 // indirect\n \tgithub.com/zclconf/go-cty v1.12.1 // indirect\n-\tgo.opencensus.io v0.23.0 // indirect\n-\tgolang.org/x/crypto v0.0.0-20220517005047-85d78b3ac167 // indirect\n+\tgo.opencensus.io v0.24.0 // indirect\n+\tgolang.org/x/crypto v0.1.0 // indirect\n \tgolang.org/x/mod v0.6.0-dev.0.20220419223038-86c51ed26bb4 // indirect\n \tgolang.org/x/net v0.7.0 // indirect\n \tgolang.org/x/oauth2 v0.1.0 // indirect\n@@ -84,10 +85,10 @@ require (\n \tgolang.org/x/text v0.7.0 // indirect\n \tgolang.org/x/time v0.0.0-20200630173020-3af7569d3a1e // indirect\n \tgolang.org/x/xerrors v0.0.0-20220907171357-04be3eba64a2 // indirect\n-\tgoogle.golang.org/api v0.100.0 // indirect\n+\tgoogle.golang.org/api v0.103.0 // indirect\n \tgoogle.golang.org/appengine v1.6.7 // indirect\n-\tgoogle.golang.org/genproto v0.0.0-20221025140454-527a21cfbd71 // indirect\n-\tgoogle.golang.org/grpc v1.50.1 // indirect\n+\tgoogle.golang.org/genproto v0.0.0-20221201164419-0e50fba7f41c // indirect\n+\tgoogle.golang.org/grpc v1.51.0 // indirect\n \tgoogle.golang.org/protobuf v1.28.1 // indirect\n \tgopkg.in/inf.v0 v0.9.1 // indirect\n \tgopkg.in/yaml.v2 v2.4.0 // indirect\n---\n\n\n---\n\nChoice C:\ntest/go.mod\n@@ -4,14 +4,15 @@ go 1.19\n \n require (\n \tgithub.com/Azure/terraform-module-test-helper v0.9.1\n-\tgithub.com/gruntwork-io/terratest v0.41.11\n+\tgithub.com/gruntwork-io/terratest v0.41.16\n \tgithub.com/stretchr/testify v1.8.2\n )\n \n require (\n-\tcloud.google.com/go v0.104.0 // indirect\n-\tcloud.google.com/go/compute v1.10.0 // indirect\n-\tcloud.google.com/go/iam v0.5.0 // indirect\n+\tcloud.google.com/go v0.105.0 // indirect\n+\tcloud.google.com/go/compute v1.12.1 // indirect\n+\tcloud.google.com/go/compute/metadata v0.2.1 // indirect\n+\tcloud.google.com/go/iam v0.7.0 // indirect\n \tcloud.google.com/go/storage v1.27.0 // indirect\n \tgithub.com/agext/levenshtein v1.2.3 // indirect\n \tgithub.com/ahmetb/go-linq/v3 v3.2.0 // indirect\n@@ -34,12 +35,12 @@ require (\n \tgithub.com/google/gofuzz v1.1.0 // indirect\n \tgithub.com/google/uuid v1.3.0 // indirect\n \tgithub.com/googleapis/enterprise-certificate-proxy v0.2.0 // indirect\n-\tgithub.com/googleapis/gax-go/v2 v2.6.0 // indirect\n+\tgithub.com/googleapis/gax-go/v2 v2.7.0 // indirect\n \tgithub.com/googleapis/gnostic v0.4.1 // indirect\n \tgithub.com/gruntwork-io/go-commons v0.8.0 // indirect\n \tgithub.com/hashicorp/errwrap v1.0.0 // indirect\n \tgithub.com/hashicorp/go-cleanhttp v0.5.2 // indirect\n-\tgithub.com/hashicorp/go-getter v1.7.0 // indirect\n+\tgithub.com/hashicorp/go-getter v1.7.1 // indirect\n \tgithub.com/hashicorp/go-getter/v2 v2.2.0 // indirect\n \tgithub.com/hashicorp/go-multierror v1.1.0 // indirect\n \tgithub.com/hashicorp/go-safetemp v1.0.0 // indirect\n@@ -74,8 +75,8 @@ require (\n \tgithub.com/googleapis/gnostic v5.3.5 // indirect\n \tgithub.com/vmihailenco/tagparser/v2 v2.0.0 // indirect\n \tgithub.com/zclconf/go-cty v1.12.1 // indirect\n-\tgo.opencensus.io v0.23.0 // indirect\n-\tgolang.org/x/crypto v0.0.0-20220517005047-85d78b3ac167 // indirect\n+\tgo.opencensus.io v0.24.0 // indirect\n+\tgolang.org/x/crypto v0.1.0 // indirect\n \tgolang.org/x/mod v0.6.0-dev.0.20220419223038-86c51ed26bb4 // indirect\n \tgolang.org/x/net v0.7.0 // indirect\n \tgolang.org/x/oauth2 v0.1.0 // indirect\n@@ -84,10 +85,10 @@ require (\n \tgolang.org/x/text v0.7.0 // indirect\n \tgolang.org/x/time v0.0.0-20200630173020-3af7569d3a1e // indirect\n \tgolang.org/x/xerrors v0.0.0-20220907171357-04be3eba64a2 // indirect\n-\tgoogle.golang.org/api v0.100.0 // indirect\n+\tgoogle.golang.org/api v0.103.0 // indirect\n \tgoogle.golang.org/appengine v1.6.7 // indirect\n-\tgoogle.golang.org/genproto v0.0.0-20221025140454-527a21cfbd71 // indirect\n-\tgoogle.golang.org/grpc v1.50.1 // indirect\n+\tgoogle.golang.org/genproto v0.0.0-20221201164419-0e50fba7f41c // indirect\n+\tgoogle.golang.org/grpc v1.51.0 // indirect\n \tgoogle.golang.org/protobuf v1.28.1 // indirect\n \tgopkg.in/inf.v0 v0.9.1 // indirect\n \tgopkg.in/yaml.v2 v2.4.0 // indirect\n---\n\n\n---\n\nChoice D:\ntest/go.mod\n@@ -4,14 +4,15 @@ go 1.19\n \n require (\n \tgithub.com/Azure/terraform-module-test-helper v0.9.1\n-\tgithub.com/gruntwork-io/terratest v0.41.11\n+\tgithub.com/gruntwork-io/terratest v0.41.16\n \tgithub.com/stretchr/testify v1.8.2\n )\n \n require (\n-\tcloud.google.com/go v0.104.0 // indirect\n-\tcloud.google.com/go/compute v1.10.0 // indirect\n-\tcloud.google.com/go/iam v0.5.0 // indirect\n+\tcloud.google.com/go v0.105.0 // indirect\n+\tcloud.google.com/go/compute v1.12.1 // indirect\n+\tcloud.google.com/go/compute/metadata v0.2.1 // indirect\n+\tcloud.google.com/go/iam v0.7.0 // indirect\n \tcloud.google.com/go/storage v1.27.0 // indirect\n \tgithub.com/agext/levenshtein v1.2.3 // indirect\n \tgithub.com/ahmetb/go-linq/v3 v3.2.0 // indirect\n@@ -34,12 +35,12 @@ require (\n \tgithub.com/google/gofuzz v1.1.0 // indirect\n \tgithub.com/google/uuid v1.3.0 // indirect\n \tgithub.com/googleapis/enterprise-certificate-proxy v0.2.0 // indirect\n-\tgithub.com/googleapis/gax-go/v2 v2.6.0 // indirect\n+\tgithub.com/googleapis/gax-go/v2 v2.7.0 // indirect\n \tgithub.com/googleapis/gnostic v0.4.1 // indirect\n \tgithub.com/gruntwork-io/go-commons v0.8.0 // indirect\n \tgithub.com/hashicorp/errwrap v1.0.0 // indirect\n \tgithub.com/hashicorp/go-cleanhttp v0.5.2 // indirect\n-\tgithub.com/hashicorp/go-getter v1.7.0 // indirect\n+\tgithub.com/hashicorp/go-getter v1.7.1 // indirect\n \tgithub.com/hashicorp/go-getter/v2 v2.2.0 // indirect\n \tgithub.com/hashicorp/go-multierror v1.1.0 // indirect\n \tgithub.com/hashicorp/go-safetemp v1.0.0 // indirect\n@@ -74,8 +75,8 @@ require (\n \tgithub.com/vmihailenco/msgpack/v5 v5.3.5 // indirect\n \tgithub.com/vmihailenco/tagparser/v2 v2.0.0 // indirect\n \tgithub.com/zclconf/go-cty v1.12.1 // indirect\n-\tgo.opencensus.io v0.23.0 // indirect\n-\tgolang.org/x/crypto v0.0.0-20220517005047-85d78b3ac167 // indirect\n+\tgo.opencensus.io v0.24.0 // indirect\n+\tgolang.org/x/crypto v0.1.0 // indirect\n \tgolang.org/x/mod v0.6.0-dev.0.20220419223038-86c51ed26bb4 // indirect\n \tgolang.org/x/net v0.7.0 // indirect\n \tgolang.org/x/oauth2 v0.1.0 // indirect\n@@ -84,10 +85,10 @@ require (\n \tgolang.org/x/text v0.7.0 // indirect\n \tgolang.org/x/time v0.0.0-20200630173020-3af7569d3a1e // indirect\n \tgolang.org/x/xerrors v0.0.0-20220907171357-04be3eba64a2 // indirect\n-\tgoogle.golang.org/api v0.100.0 // indirect\n+\tgoogle.golang.org/api v0.103.0 // indirect\n \tgoogle.golang.org/appengine v1.6.7 // indirect\n-\tgoogle.golang.org/genproto v0.0.0-20221025140454-527a21cfbd71 // indirect\n-\tgoogle.golang.org/grpc v1.50.1 // indirect\n+\tgoogle.golang.org/genproto v0.0.0-20221201164419-0e50fba7f41c // indirect\n+\tgoogle.golang.org/grpc v1.51.0 // indirect\n \tgoogle.golang.org/protobuf v1.28.1 // indirect\n \tgopkg.in/inf.v0 v0.9.1 // indirect\n \tgopkg.in/yaml.v2 v2.4.0 // indirect\n---\n\n\n---\n" } ]
A
[ { "role": "system", "content": "Choose the best Terraform patch (A/B/C/D) that implements the requested Azure Compute change safely. Only respond with a single uppercase letter." }, { "role": "user", "content": "Task Description:\n## Describe your changes\r\n\r\nThe `complete` example has been broken since this provider [feature](https://github.com/hashicorp/terraform-provider-azurerm/issues/14471) requires extra permission, this pr fixed the broken example.\r\n\r\n## Issue number\r\n\r\n#000\r\n\r\n## Checklist before requesting a review\r\n- [ ] The pr title can be used to describe what this pr did in `CHANGELOG.md` file\r\n- [ ] I have executed pre-commit on my machine\r\n- [ ] I have passed pr-check on my machine\r\n\r\nThanks for your cooperation!\r\n\r\n\n\n---\n\nChoice A:\nexamples/complete/key_vault.tf\n@@ -65,6 +65,7 @@ resource \"azurerm_key_vault_access_policy\" \"current_user\" {\n \"Verify\",\n \"Update\",\n \"Verify\",\n \"WrapKey\",\n+ \"GetRotationPolicy\",\n ]\n secret_permissions = [\n \"Backup\",\n---\n\n\n---\n\nChoice B:\n-65,6 -65,6 +65,7 @@ resource \"azurerm_key_vault_access_policy\" \"current_user\" {\n \"Update\",\n \"Verify\",\n \"WrapKey\",\n+ \"GetRotationPolicy\",\n ]\n secret_permissions = [\n \"Backup\",\n---\n\n\n---\n\nChoice C:\nexamples/complete/key_vault.tf\n@@ -65,6 +65,7 @@ resource \"azurerm_key_vault_access_policy\" \"current_user\" {\n \"Update\",\n \"Verify\",\n \"WrapKey\",\n+ \"GetRotationPolicy\",\n ]\n secret_permissions = [\n \"Backup\",\n---\n\n\n---\n\nChoice D:\n@@ -65,6 +65,7 @@ resource \"azurerm_key_vault_access_policy\" \"current_user\" {\n \"Update\",\n \"Verify\",\n \"WrapKey\",\n+ \"GetRotationPolicy\",\n ]\n secret_permissions = [\n \"Backup\",\n---\n\n\n---\n" } ]
C
[ { "role": "system", "content": "Choose the best Terraform patch (A/B/C/D) that implements the requested Azure Compute change safely. Only respond with a single uppercase letter." }, { "role": "user", "content": "Task Description:\nBumps [github.com/Azure/terraform-module-test-helper](https://github.com/Azure/terraform-module-test-helper) from 0.9.1 to 0.10.0.\n<details>\n<summary>Commits</summary>\n<ul>\n<li><a href=\"https://github.com/Azure/terraform-module-test-helper/commit/4f72af60b3680c86c51c4a77ace2518321f96429\"><code>4f72af6</code></a> fallback from parallel when panic</li>\n<li><a href=\"https://github.com/Azure/terraform-module-test-helper/commit/f84b8ba071528f6cefdb6a79c743e695a8063a88\"><code>f84b8ba</code></a> Bump golang.org/x/oauth2 from 0.1.0 to 0.6.0 (<a href=\"https://redirect.github.com/Azure/terraform-module-test-helper/issues/19\">#19</a>)</li>\n<li><a href=\"https://github.com/Azure/terraform-module-test-helper/commit/676682042d2dbd3e7bc63235987266d4bb910a43\"><code>6766820</code></a> Bump github.com/gruntwork-io/terratest from 0.41.11 to 0.41.12 (<a href=\"https://redirect.github.com/Azure/terraform-module-test-helper/issues/18\">#18</a>)</li>\n<li><a href=\"https://github.com/Azure/terraform-module-test-helper/commit/0142baffa364282f5f114db87f648d023c656be3\"><code>0142baf</code></a> Bump golang.org/x/mod from 0.8.0 to 0.9.0 (<a href=\"https://redirect.github.com/Azure/terraform-module-test-helper/issues/20\">#20</a>)</li>\n<li><a href=\"https://github.com/Azure/terraform-module-test-helper/commit/0e51e3a357e3261edc093bc7d7bb5ba903bafc83\"><code>0e51e3a</code></a> Bump github.com/gruntwork-io/terratest from 0.41.10 to 0.41.11 (<a href=\"https://redirect.github.com/Azure/terraform-module-test-helper/issues/14\">#14</a>)</li>\n<li><a href=\"https://github.com/Azure/terraform-module-test-helper/commit/54421d77507188e87b04413983ce2e4f35c64e04\"><code>54421d7</code></a> Bump github.com/hashicorp/hcl/v2 from 2.16.0 to 2.16.1 (<a href=\"https://redirect.github.com/Azure/terraform-module-test-helper/issues/13\">#13</a>)</li>\n<li><a href=\"https://github.com/Azure/terraform-module-test-helper/commit/c1ac612533b561f603b7debb695b47721129dbf9\"><code>c1ac612</code></a> add lock on CopyTerraformFolderToTemp method to avoid concurrent error (One g...</li>\n<li><a href=\"https://github.com/Azure/terraform-module-test-helper/commit/15811e9ee5f7690db51cc5f16ea37600b08c3532\"><code>15811e9</code></a> Bump github.com/spf13/afero from 1.9.3 to 1.9.4 (<a href=\"https://redirect.github.com/Azure/terraform-module-test-helper/issues/15\">#15</a>)</li>\n<li><a href=\"https://github.com/Azure/terraform-module-test-helper/commit/2715d8fc1012c3563fb48b8d3291426362a8659a\"><code>2715d8f</code></a> Bump golang.org/x/mod (<a href=\"https://redirect.github.com/Azure/terraform-module-test-helper/issues/16\">#16</a>)</li>\n<li><a href=\"https://github.com/Azure/terraform-module-test-helper/commit/89288dc9d464e61acf86ab4242e4a6f1d5554c6a\"><code>89288dc</code></a> Bump github.com/stretchr/testify from 1.8.1 to 1.8.2 (<a href=\"https://redirect.github.com/Azure/terraform-module-test-helper/issues/17\">#17</a>)</li>\n<li>Additional commits viewable in <a href=\"https://github.com/Azure/terraform-module-test-helper/compare/v0.9.1...v0.10.0\">compare view</a></li>\n</ul>\n</details>\n<br />\n\n\n[![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=github.com/Azure/terraform-module-test-helper&package-manager=go_modules&previous-version=0.9.1&new-version=0.10.0)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)\n\nDependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`.\n\n[//]: # (dependabot-automerge-start)\n[//]: # (dependabot-automerge-end)\n\n---\n\n<details>\n<summary>Dependabot commands and options</summary>\n<br />\n\nYou can trigger Dependabot actions by commenting on this PR:\n- `@dependabot rebase` will rebase this PR\n- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it\n- `@dependabot merge` will merge this PR after your CI passes on it\n- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it\n- `@dependabot cancel merge` will cancel a previously requested merge and block automerging\n- `@dependabot reopen` will reopen this PR if it is closed\n- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually\n- `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)\n- `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)\n- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)\n\n\n</details>\n\n---\n\nChoice A:\ntest/go.mod\n@@ -3,15 +3,16 @@ module github.com/Azure/terraform-azurerm-compute\n go 1.19\n \n require (\n-\tgithub.com/Azure/terraform-module-test-helper v0.9.1\n-\tgithub.com/gruntwork-io/terratest v0.41.11\n+\tgithub.com/Azure/terraform-module-test-helper v0.10.0\n+\tgithub.com/gruntwork-io/terratest v0.41.12\n \tgithub.com/stretchr/testify v1.8.2\n )\n \n require (\n-\tcloud.google.com/go v0.104.0 // indirect\n-\tcloud.google.com/go/compute v1.10.0 // indirect\n-\tcloud.google.com/go/iam v0.5.0 // indirect\n+\tcloud.google.com/go v0.105.0 // indirect\n+\tcloud.google.com/go/compute v1.12.1 // indirect\n+\tcloud.google.com/go/compute/metadata v0.2.1 // indirect\n+\tcloud.google.com/go/iam v0.7.0 // indirect\n \tcloud.google.com/go/storage v1.27.0 // indirect\n \tgithub.com/agext/levenshtein v1.2.3 // indirect\n \tgithub.com/ahmetb/go-linq/v3 v3.2.0 // indirect\n@@ -34,7 +35,7 @@ require (\n \tgithub.com/google/gofuzz v1.1.0 // indirect\n \tgithub.com/google/uuid v1.3.0 // indirect\n \tgithub.com/googleapis/enterprise-certificate-proxy v0.2.0 // indirect\n-\tgithub.com/googleapis/gax-go/v2 v2.6.0 // indirect\n+\tgithub.com/googleapis/gax-go/v2 v2.7.0 // indirect\n \tgithub.com/googleapis/gnostic v0.4.1 // indirect\n \tgithub.com/gruntwork-io/go-commons v0.8.0 // indirect\n \tgithub.com/hashicorp/errwrap v1.0.0 // indirect\n@@ -45,7 +46,7 @@ require (\n \tgithub.com/hashicorp/go-safetemp v1.0.0 // indirect\n \tgithub.com/hashicorp/go-version v1.6.0 // indirect\n \tgithub.com/hashicorp/hcl v1.0.0 // indirect\n-\tgithub.com/hashicorp/hcl/v2 v2.16.0 // indirect\n+\tgithub.com/hashicorp/hcl/v2 v2.16.1 // indirect\n \tgithub.com/hashicorp/terraform-config-inspect v0.0.0-20211115214459-90acf1ca460f // indirect\n \tgithub.com/hashicorp/terraform-json v0.15.0 // indirect\n \tgithub.com/imdario/mergo v0.3.11 // indirect\n@@ -66,28 +67,28 @@ require (\n \tgithub.com/pquerna/otp v1.2.0 // indirect\n \tgithub.com/r3labs/diff/v3 v3.0.1 // indirect\n \tgithub.com/russross/blackfriday/v2 v2.1.0 // indirect\n-\tgithub.com/spf13/afero v1.9.3 // indirect\n+\tgithub.com/spf13/afero v1.9.4 // indirect\n \tgithub.com/spf13/pflag v1.0.5 // indirect\n \tgithub.com/tmccombs/hcl2json v0.3.3 // indirect\n \tgithub.com/ulikunitz/xz v0.5.10 // indirect\n \tgithub.com/urfave/cli v1.22.2 // indirect\n \tgithub.com/vmihailenco/msgpack/v5 v5.3.5 // indirect\n \tgithub.com/vmihailenco/tagparser/v2 v2.0.0 // indirect\n \tgithub.com/zclconf/go-cty v1.12.1 // indirect\n-\tgo.opencensus.io v0.23.0 // indirect\n+\tgo.opencensus.io v0.24.0 // indirect\n \tgolang.org/x/crypto v0.0.0-20220517005047-85d78b3ac167 // indirect\n-\tgolang.org/x/mod v0.6.0-dev.0.20220419223038-86c51ed26bb4 // indirect\n-\tgolang.org/x/net v0.7.0 // indirect\n-\tgolang.org/x/oauth2 v0.1.0 // indirect\n-\tgolang.org/x/sys v0.5.0 // indirect\n-\tgolang.org/x/term v0.5.0 // indirect\n-\tgolang.org/x/text v0.7.0 // indirect\n+\tgolang.org/x/mod v0.9.0 // indirect\n+\tgolang.org/x/net v0.8.0 // indirect\n+\tgolang.org/x/oauth2 v0.6.0 // indirect\n+\tgolang.org/x/sys v0.6.0 // indirect\n+\tgolang.org/x/term v0.6.0 // indirect\n+\tgolang.org/x/text v0.8.0 // indirect\n \tgolang.org/x/time v0.0.0-20200630173020-3af7569d3a1e // indirect\n \tgolang.org/x/xerrors v0.0.0-20220907171357-04be3eba64a2 // indirect\n-\tgoogle.golang.org/api v0.100.0 // indirect\n+\tgoogle.golang.org/api v0.103.0 // indirect\n \tgoogle.golang.org/appengine v1.6.7 // indirect\n-\tgoogle.golang.org/genproto v0.0.0-20221025140454-527a21cfbd71 // indirect\n-\tgoogle.golang.org/grpc v1.50.1 // indirect\n+\tgoogle.golang.org/genproto v0.0.0-20221201164419-0e50fba7f41c // indirect\n+\tgoogle.golang.org/grpc v1.51.0 // indirect\n \tgoogle.golang.org/protobuf v1.28.1 // indirect\n \tgopkg.in/inf.v0 v0.9.1 // indirect\n \tgopkg.in/yaml.v2 v2.4.0 // indirect\n---\n\n\n---\n\nChoice B:\ntest/go.mod\n@@ -3,15 +3,16 @@ module github.com/Azure/terraform-azurerm-compute\n go 1.19\n \n require (\n-\tgithub.com/Azure/terraform-module-test-helper v0.9.1\n-\tgithub.com/gruntwork-io/terratest v0.41.11\n+\tgithub.com/Azure/terraform-module-test-helper v0.10.0\n+\tgithub.com/gruntwork-io/terratest v0.41.12\n \tgithub.com/stretchr/testify v1.8.2\n )\n \n require (\n-\tcloud.google.com/go v0.104.0 // indirect\n v1.10.0 // indirect\n-\tcloud.google.com/go/iam v0.5.0 // indirect\n+\tcloud.google.com/go v0.105.0 // indirect\n+\tcloud.google.com/go/compute v1.12.1 // indirect\n+\tcloud.google.com/go/compute/metadata v0.2.1 // indirect\n+\tcloud.google.com/go/iam v0.7.0 // indirect\n \tcloud.google.com/go/storage v1.27.0 // indirect\n \tgithub.com/agext/levenshtein v1.2.3 // indirect\n \tgithub.com/ahmetb/go-linq/v3 v3.2.0 // indirect\n@@ -34,7 +35,7 @@ require (\n \tgithub.com/google/gofuzz v1.1.0 // indirect\n \tgithub.com/google/uuid v1.3.0 // indirect\n \tgithub.com/googleapis/enterprise-certificate-proxy v0.2.0 // indirect\n-\tgithub.com/googleapis/gax-go/v2 v2.6.0 // indirect\n+\tgithub.com/googleapis/gax-go/v2 v2.7.0 // indirect\n \tgithub.com/googleapis/gnostic v0.4.1 // indirect\n \tgithub.com/gruntwork-io/go-commons v0.8.0 // indirect\n \tgithub.com/hashicorp/errwrap v1.0.0 // indirect\n@@ -45,7 +46,7 @@ require (\n \tgithub.com/hashicorp/go-safetemp v1.0.0 // indirect\n \tgithub.com/hashicorp/go-version v1.6.0 // indirect\n \tgithub.com/hashicorp/hcl v1.0.0 // indirect\n-\tgithub.com/hashicorp/hcl/v2 v2.16.0 // indirect\n+\tgithub.com/hashicorp/hcl/v2 v2.16.1 // indirect\n \tgithub.com/hashicorp/terraform-config-inspect v0.0.0-20211115214459-90acf1ca460f // indirect\n \tgithub.com/hashicorp/terraform-json v0.15.0 // indirect\n \tgithub.com/imdario/mergo v0.3.11 // indirect\n@@ -66,28 +67,28 @@ require (\n \tgithub.com/pquerna/otp v1.2.0 // indirect\n \tgithub.com/r3labs/diff/v3 v3.0.1 // indirect\n \tgithub.com/russross/blackfriday/v2 v2.1.0 // indirect\n-\tgithub.com/spf13/afero v1.9.3 // indirect\n+\tgithub.com/spf13/afero v1.9.4 // indirect\n \tgithub.com/spf13/pflag v1.0.5 // indirect\n \tgithub.com/tmccombs/hcl2json v0.3.3 // indirect\n \tgithub.com/ulikunitz/xz v0.5.10 // indirect\n \tgithub.com/urfave/cli v1.22.2 // indirect\n \tgithub.com/vmihailenco/msgpack/v5 v5.3.5 // indirect\n \tgithub.com/vmihailenco/tagparser/v2 v2.0.0 // indirect\n \tgithub.com/zclconf/go-cty v1.12.1 // indirect\n-\tgo.opencensus.io v0.23.0 // indirect\n+\tgo.opencensus.io v0.24.0 // indirect\n \tgolang.org/x/crypto v0.0.0-20220517005047-85d78b3ac167 // indirect\n-\tgolang.org/x/mod v0.6.0-dev.0.20220419223038-86c51ed26bb4 // indirect\n-\tgolang.org/x/net v0.7.0 // indirect\n-\tgolang.org/x/oauth2 v0.1.0 // indirect\n-\tgolang.org/x/sys v0.5.0 // indirect\n-\tgolang.org/x/term v0.5.0 // indirect\n-\tgolang.org/x/text v0.7.0 // indirect\n+\tgolang.org/x/mod v0.9.0 // indirect\n+\tgolang.org/x/net v0.8.0 // indirect\n+\tgolang.org/x/oauth2 v0.6.0 // indirect\n+\tgolang.org/x/sys v0.6.0 // indirect\n+\tgolang.org/x/term v0.6.0 // indirect\n+\tgolang.org/x/text v0.8.0 // indirect\n \tgolang.org/x/time v0.0.0-20200630173020-3af7569d3a1e // indirect\n \tgolang.org/x/xerrors v0.0.0-20220907171357-04be3eba64a2 // indirect\n-\tgoogle.golang.org/api v0.100.0 // indirect\n+\tgoogle.golang.org/api v0.103.0 // indirect\n \tgoogle.golang.org/appengine v1.6.7 // indirect\n-\tgoogle.golang.org/genproto v0.0.0-20221025140454-527a21cfbd71 // indirect\n-\tgoogle.golang.org/grpc v1.50.1 // indirect\n+\tgoogle.golang.org/genproto v0.0.0-20221201164419-0e50fba7f41c // indirect\n+\tgoogle.golang.org/grpc v1.51.0 // indirect\n \tgoogle.golang.org/protobuf v1.28.1 // indirect\n \tgopkg.in/inf.v0 v0.9.1 // indirect\n \tgopkg.in/yaml.v2 v2.4.0 // indirect\n---\n\n\n---\n\nChoice C:\ntest/go.mod\n@@ -3,15 +3,16 @@ module github.com/Azure/terraform-azurerm-compute\n go 1.19\n \n require (\n-\tgithub.com/Azure/terraform-module-test-helper v0.9.1\n-\tgithub.com/gruntwork-io/terratest v0.41.11\n+\tgithub.com/Azure/terraform-module-test-helper v0.10.0\n+\tgithub.com/gruntwork-io/terratest v0.41.12\n \tgithub.com/stretchr/testify v1.8.2\n )\n \n require (\n-\tcloud.google.com/go v0.104.0 // indirect\n-\tcloud.google.com/go/compute v1.10.0 // indirect\n-\tcloud.google.com/go/iam v0.5.0 // indirect\n+\tcloud.google.com/go v0.105.0 // indirect\n+\tcloud.google.com/go/compute v1.12.1 // indirect\n+\tcloud.google.com/go/compute/metadata v0.2.1 // indirect\n+\tcloud.google.com/go/iam v0.7.0 // indirect\n \tcloud.google.com/go/storage v1.27.0 // indirect\n \tgithub.com/agext/levenshtein v1.2.3 // indirect\n \tgithub.com/ahmetb/go-linq/v3 v3.2.0 // indirect\n@@ -34,7 +35,7 @@ require (\n \tgithub.com/google/gofuzz v1.1.0 // indirect\n \tgithub.com/google/uuid v1.3.0 // indirect\n \tgithub.com/googleapis/enterprise-certificate-proxy v0.2.0 // indirect\n-\tgithub.com/googleapis/gax-go/v2 v2.6.0 // indirect\n+\tgithub.com/googleapis/gax-go/v2 v2.7.0 // indirect\n \tgithub.com/googleapis/gnostic v0.4.1 // indirect\n \tgithub.com/gruntwork-io/go-commons v0.8.0 // indirect\n \tgithub.com/hashicorp/errwrap v1.0.0 // indirect\n@@ -45,7 +46,7 @@ require (\n \tgithub.com/hashicorp/go-safetemp v1.0.0 // indirect\n \tgithub.com/hashicorp/go-version v1.6.0 // indirect\n \tgithub.com/hashicorp/hcl v1.0.0 // indirect\n-\tgithub.com/hashicorp/hcl/v2 v2.16.0 // indirect\n+\tgithub.com/hashicorp/hcl/v2 v2.16.1 // indirect\n \tgithub.com/hashicorp/terraform-config-inspect v0.0.0-20211115214459-90acf1ca460f // indirect\n \tgithub.com/hashicorp/terraform-json v0.15.0 // indirect\n \tgithub.com/imdario/mergo v0.3.11 // indirect\n@@ -66,28 +67,28 @@ require (\n \tgithub.com/pquerna/otp v1.2.0 // indirect\n \tgithub.com/r3labs/diff/v3 v3.0.1 // indirect\n \tgithub.com/russross/blackfriday/v2 v2.1.0 // indirect\n-\tgithub.com/spf13/afero v1.9.3 // indirect\n+\tgithub.com/spf13/afero v1.9.4 // indirect\n \tgithub.com/spf13/pflag v1.0.5 // indirect\n \tgithub.com/tmccombs/hcl2json v0.3.3 // indirect\n \tgithub.com/ulikunitz/xz v0.5.10 // indirect\n \tgithub.com/urfave/cli v1.22.2 // indirect\n \tgithub.com/vmihailenco/msgpack/v5 v5.3.5 // indirect\n \tgithub.com/vmihailenco/tagparser/v2 v2.0.0 // indirect\n \tgithub.com/zclconf/go-cty v1.12.1 // indirect\n-\tgo.opencensus.io v0.23.0 // indirect\n+\tgo.opencensus.io v0.24.0 // indirect\n \tgolang.org/x/crypto v0.0.0-20220517005047-85d78b3ac167 // indirect\n-\tgolang.org/x/mod v0.6.0-dev.0.20220419223038-86c51ed26bb4 // indirect\n-\tgolang.org/x/net v0.7.0 // indirect\n-\tgolang.org/x/oauth2 v0.1.0 // indirect\n-\tgolang.org/x/sys v0.5.0 // \tgithub.com/vmihailenco/tagparser/v2 v0.5.0 // indirect\n-\tgolang.org/x/text v0.7.0 // indirect\n+\tgolang.org/x/mod v0.9.0 // indirect\n+\tgolang.org/x/net v0.8.0 // indirect\n+\tgolang.org/x/oauth2 v0.6.0 // indirect\n+\tgolang.org/x/sys v0.6.0 // indirect\n+\tgolang.org/x/term v0.6.0 // indirect\n+\tgolang.org/x/text v0.8.0 // indirect\n \tgolang.org/x/time v0.0.0-20200630173020-3af7569d3a1e // indirect\n \tgolang.org/x/xerrors v0.0.0-20220907171357-04be3eba64a2 // indirect\n-\tgoogle.golang.org/api v0.100.0 // indirect\n+\tgoogle.golang.org/api v0.103.0 // indirect\n \tgoogle.golang.org/appengine v1.6.7 // indirect\n-\tgoogle.golang.org/genproto v0.0.0-20221025140454-527a21cfbd71 // indirect\n-\tgoogle.golang.org/grpc v1.50.1 // indirect\n+\tgoogle.golang.org/genproto v0.0.0-20221201164419-0e50fba7f41c // indirect\n+\tgoogle.golang.org/grpc v1.51.0 // indirect\n \tgoogle.golang.org/protobuf v1.28.1 // indirect\n \tgopkg.in/inf.v0 v0.9.1 // indirect\n \tgopkg.in/yaml.v2 v2.4.0 // indirect\n---\n\n\n---\n\nChoice D:\ntest/go.mod\n@@ -3,15 +3,16 @@ module github.com/Azure/terraform-azurerm-compute\n go 1.19\n \n require (\n-\tgithub.com/Azure/terraform-module-test-helper v0.9.1\n-\tgithub.com/gruntwork-io/terratest v0.41.11\n+\tgithub.com/Azure/terraform-module-test-helper v0.10.0\n+\tgithub.com/gruntwork-io/terratest v0.41.12\n \tgithub.com/stretchr/testify v1.8.2\n )\n \n require (\n-\tcloud.google.com/go v0.104.0 // indirect\n-\tcloud.google.com/go/compute v1.10.0 // indirect\n-\tcloud.google.com/go/iam v0.5.0 // indirect\n+\tcloud.google.com/go v0.105.0 // indirect\n+\tcloud.google.com/go/compute v1.12.1 // indirect\n+\tcloud.google.com/go/compute/metadata v0.2.1 // indirect\n+\tcloud.google.com/go/iam v0.7.0 // indirect\n \tcloud.google.com/go/storage v1.27.0 // indirect\n \tgithub.com/agext/levenshtein v1.2.3 // indirect\n \tgithub.com/ahmetb/go-linq/v3 v3.2.0 // indirect\n@@ -34,7 +35,7 @@ require (\n \tgithub.com/google/gofuzz v1.1.0 // indirect\n \tgithub.com/google/uuid v1.3.0 // indirect\n \tgithub.com/googleapis/enterprise-certificate-proxy v0.2.0 // indirect\n-\tgithub.com/googleapis/gax-go/v2 v2.6.0 // indirect\n+\tgithub.com/googleapis/gax-go/v2 v2.7.0 // indirect\n \tgithub.com/googleapis/gnostic v0.4.1 // indirect\n \tgithub.com/gruntwork-io/go-commons v0.8.0 // indirect\n \tgithub.com/hashicorp/errwrap v1.0.0 // indirect\n@@ -45,7 +46,7 @@ require (\n \tgithub.com/hashicorp/go-safetemp v1.0.0 // indirect\n \tgithub.com/hashicorp/go-version v1.6.0 // indirect\n \tgithub.com/hashicorp/hcl v1.0.0 // indirect\n-\tgithub.com/hashicorp/hcl/v2 v2.16.0 // indirect\n+\tgithub.com/hashicorp/hcl/v2 v2.16.1 // indirect\n \tgithub.com/hashicorp/terraform-config-inspect v0.0.0-20211115214459-90acf1ca460f // indirect\n \tgithub.com/hashicorp/terraform-json v0.15.0 // indirect\n \tgithub.com/imdario/mergo v0.3.11 // indirect\n@@ -66,28 +67,28 @@ require (\n \tgithub.com/pquerna/otp v1.2.0 // indirect\n \tgithub.com/r3labs/diff/v3 v3.0.1 // indirect\n \tgithub.com/russross/blackfriday/v2 v2.1.0 // indirect\n-\tgithub.com/spf13/afero v1.9.3 // indirect\n+\tgithub.com/spf13/afero v1.9.4 // indirect\n \tgithub.com/spf13/pflag v1.0.5 // indirect\n \tgithub.com/tmccombs/hcl2json v0.3.3 // indirect\n \tgithub.com/ulikunitz/xz v0.5.10 // indirect\n \tgithub.com/urfave/cli v1.22.2 // indirect\n \tgithub.com/vmihailenco/msgpack/v5 v5.3.5 // indirect\n \tgithub.com/vmihailenco/tagparser/v2 v2.0.0 // indirect\n \tgithub.com/zclconf/go-cty v1.12.1 // indirect\n-\tgo.opencensus.io v0.23.0 // indirect\n+\tgo.opencensus.io v0.24.0 // indirect\n \tgolang.org/x/crypto v0.0.0-20220517005047-85d78b3ac167 // indirect\n-\tgolang.org/x/mod v0.6.0-dev.0.20220419223038-86c51ed26bb4 // indirect\n-\tgolang.org/x/net v0.7.0 // indirect\n-\tgolang.org/x/oauth2 v0.1.0 // indirect\n-\tgolang.org/x/sys v0.5.0 // indirect\n-\tgolang.org/x/term v0.5.0 // indirect\n-\tgolang.org/x/text v0.7.0 // indirect\n+\tgolang.org/x/mod v0.9.0 // indirect\n+\tgolang.org/x/net v0.8.0 // indirect\n+\tgolang.org/x/oauth2 v0.6.0 // indirect\n+\tgolang.org/x/sys v0.6.0 // indirect\n+\tgolang.org/x/term v0.6.0 // indirect\n+\tgolang.org/x/text v0.8.0 // indirect\n \tgolang.org/x/time v0.0.0-20200630173020-3af7569d3a1e // indirect\n \tgolang.org/x/xerrors v0.0.0-20220907171357-04be3eba64a2 // indirect\n-\tgoogle.golang.org/api v0.100.0 // indirect\n+\tgoogle.golang.org/api v0.103.0 // indirect\n \tgoogle.golang.org/appengine v1.6.7 // indirect\n-\tgoogle.golang.org/genproto v0.0.0-20221025140454-527a21cfbd71 // indirect\n-\tgoogle.golang.org/grpc v1.50.1 // indirect\n+\tgoogle.golang.org/genproto v0.0.0-20221201164419-0e50fba7f41c // indirect\n+\tgoogle.golang.org/grpc v1.51.0 // indirect\n \tgoogle.golang.org/protobuf v1.28.1 // indirect\n \tgopkg.in/inf.v0 v0.9.1 // indirect\n \tgopkg.in/yaml.v2 v2.4.0 // indirect\n---\n\n\n---\n" } ]
A
[ { "role": "system", "content": "Choose the best Terraform patch (A/B/C/D) that implements the requested Azure Compute change safely. Only respond with a single uppercase letter." }, { "role": "user", "content": "Task Description:\nBumps [github.com/gruntwork-io/terratest](https://github.com/gruntwork-io/terratest) from 0.41.11 to 0.41.15.\n<details>\n<summary>Release notes</summary>\n<p><em>Sourced from <a href=\"https://github.com/gruntwork-io/terratest/releases\">github.com/gruntwork-io/terratest's releases</a>.</em></p>\n<blockquote>\n<h2>v0.41.15</h2>\n<!-- raw HTML omitted -->\n<!-- raw HTML omitted -->\n<!-- raw HTML omitted -->\n<h2>Description</h2>\n<!-- raw HTML omitted -->\n<ul>\n<li>Updated dependency <code>golang.org/x/crypto</code> from 0.0.0-20210921155107-089bfa567519 to 0.1.0.</li>\n</ul>\n<!-- raw HTML omitted -->\n<h2>Related links</h2>\n<!-- raw HTML omitted -->\n<ul>\n<li><a href=\"https://redirect.github.com/gruntwork-io/terratest/pull/1254\">gruntwork-io/terratest#1254</a></li>\n</ul>\n<!-- raw HTML omitted -->\n<h2>v0.41.14</h2>\n<!-- raw HTML omitted -->\n<!-- raw HTML omitted -->\n</blockquote>\n<p>... (truncated)</p>\n</details>\n<details>\n<summary>Commits</summary>\n<ul>\n<li><a href=\"https://github.com/gruntwork-io/terratest/commit/2cafde4adf0c472ba6676c7f8c929f8c9645b22b\"><code>2cafde4</code></a> Merge pull request <a href=\"https://redirect.github.com/gruntwork-io/terratest/issues/1254\">#1254</a> from gruntwork-io/dependabot/go_modules/golang.org/x...</li>\n<li><a href=\"https://github.com/gruntwork-io/terratest/commit/3b27c71a44c596acf48d76e9ce2864c3eba4e020\"><code>3b27c71</code></a> Merge pull request <a href=\"https://redirect.github.com/gruntwork-io/terratest/issues/1255\">#1255</a> from gruntwork-io/dependabot/go_modules/github.com/o...</li>\n<li><a href=\"https://github.com/gruntwork-io/terratest/commit/9d45a847ea58a6d6b5f2d09a9959f466f9430d90\"><code>9d45a84</code></a> Bump golang.org/x/crypto from 0.0.0-20210921155107-089bfa567519 to 0.1.0</li>\n<li><a href=\"https://github.com/gruntwork-io/terratest/commit/bffd8cb562f58dc66218bbc9722a8cb069653c31\"><code>bffd8cb</code></a> Merge pull request <a href=\"https://redirect.github.com/gruntwork-io/terratest/issues/1253\">#1253</a> from gruntwork-io/dependabot/go_modules/golang.org/x...</li>\n<li><a href=\"https://github.com/gruntwork-io/terratest/commit/6cd67767943fdeebea5daeb96045c470a76d39d3\"><code>6cd6776</code></a> Bump github.com/opencontainers/image-spec from 1.0.1 to 1.0.2</li>\n<li><a href=\"https://github.com/gruntwork-io/terratest/commit/1b4cf2fcd4e6427e8f4ce71210f5536b01985b63\"><code>1b4cf2f</code></a> Bump golang.org/x/net from 0.1.0 to 0.7.0</li>\n<li><a href=\"https://github.com/gruntwork-io/terratest/commit/09301eb27a4fdad9dbe90920234af5213983e9f1\"><code>09301eb</code></a> Merge pull request <a href=\"https://redirect.github.com/gruntwork-io/terratest/issues/1249\">#1249</a> from gruntwork-io/dependabot/go_modules/github.com/h...</li>\n<li><a href=\"https://github.com/gruntwork-io/terratest/commit/4ea95438d213679896830ac91b6721a602c3f5fd\"><code>4ea9543</code></a> Bump github.com/hashicorp/go-getter from 1.6.1 to 1.7.0</li>\n<li>See full diff in <a href=\"https://github.com/gruntwork-io/terratest/compare/v0.41.11...v0.41.15\">compare view</a></li>\n</ul>\n</details>\n<br />\n\n\n[![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=github.com/gruntwork-io/terratest&package-manager=go_modules&previous-version=0.41.11&new-version=0.41.15)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)\n\nDependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`.\n\n[//]: # (dependabot-automerge-start)\n[//]: # (dependabot-automerge-end)\n\n---\n\n<details>\n<summary>Dependabot commands and options</summary>\n<br />\n\nYou can trigger Dependabot actions by commenting on this PR:\n- `@dependabot rebase` will rebase this PR\n- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it\n- `@dependabot merge` will merge this PR after your CI passes on it\n- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it\n- `@dependabot cancel merge` will cancel a previously requested merge and block automerging\n- `@dependabot reopen` will reopen this PR if it is closed\n- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually\n- `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)\n- `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)\n- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)\n\n\n</details>\n\n---\n\nChoice A:\ntest/go.mod\n@@ -4,14 +4,15 @@ go 1.19\n \n require (\n \tgithub.com/Azure/terraform-module-test-helper v0.9.1\n-\tgithub.com/gruntwork-io/terratest v0.41.11\n+\tgithub.com/gruntwork-io/terratest v0.41.15\n \tgithub.com/stretchr/testify v1.8.2\n )\n \n require (\n-\tcloud.google.com/go v0.104.0 // indirect\n-\tcloud.google.com/go/compute v1.10.0 // indirect\n-\tcloud.google.com/go/iam v0.5.0 // indirect\n+\tcloud.google.com/go v0.105.0 // indirect\n+\tcloud.google.com/go/compute v1.12.1 // indirect\n+\tcloud.google.com/go/compute/metadata v0.2.1 // indirect\n+\tcloud.google.com/go/iam v0.7.0 // indirect\n \tcloud.google.com/go/storage v1.27.0 // indirect\n \tgithub.com/agext/levenshtein v1.2.3 // indirect\n \tgithub.com/ahmetb/go-linq/v3 v3.2.0 // indirect\n@@ -34,7 +35,7 @@ require (\n \tgithub.com/google/gofuzz v1.1.0 // indirect\n \tgithub.com/google/uuid v1.3.0 // indirect\n \tgithub.com/googleapis/enterprise-certificate-proxy v0.2.0 // indirect\n-\tgithub.com/googleapis/gax-go/v2 v2.6.0 // indirect\n+\tgithub.com/googleapis/gax-go/v2 v2.7.0 // indirect\n \tgithub.com/googleapis/gnostic v0.4.1 // indirect\n \tgithub.com/gruntwork-io/go-commons v0.8.0 // indirect\n \tgithub.com/hashicorp/errwrap v1.0.0 // indirect\n@@ -74,8 +75,8 @@ require (\n \tgithub.com/vmihailenco/msgpack/v5 v5.3.5 // indirect\n \tgithub.com/vmihailenco/tagparser/v2 v2.0.0 // indirect\n \tgithub.com/zclconf/go-cty v1.12.1 // indirect\n-\tgo.opencensus.io v0.23.0 // indirect\n-\tgolang.org/x/crypto v0.0.0-20220517005047-85d78b3ac167 // indirect\n v0.24.0 // indirect\n+\tgolang.org/x/crypto v0.1.0 // indirect\n \tgolang.org/x/mod v0.6.0-dev.0.20220419223038-86c51ed26bb4 // indirect\n \tgolang.org/x/net v0.7.0 // indirect\n \tgolang.org/x/oauth2 v0.1.0 // indirect\n@@ -84,10 +85,10 @@ require (\n \tgolang.org/x/text v0.7.0 // indirect\n \tgolang.org/x/time v0.0.0-20200630173020-3af7569d3a1e // indirect\n \tgolang.org/x/xerrors v0.0.0-20220907171357-04be3eba64a2 // indirect\n-\tgoogle.golang.org/api v0.100.0 // indirect\n+\tgoogle.golang.org/api v0.103.0 // indirect\n \tgoogle.golang.org/appengine v1.6.7 // indirect\n-\tgoogle.golang.org/genproto v0.0.0-20221025140454-527a21cfbd71 // indirect\n-\tgoogle.golang.org/grpc v1.50.1 // indirect\n+\tgoogle.golang.org/genproto v0.0.0-20221201164419-0e50fba7f41c // indirect\n+\tgoogle.golang.org/grpc v1.51.0 // indirect\n \tgoogle.golang.org/protobuf v1.28.1 // indirect\n \tgopkg.in/inf.v0 v0.9.1 // indirect\n \tgopkg.in/yaml.v2 v2.4.0 // indirect\n---\n\n\n---\n\nChoice B:\ntest/go.mod\n@@ -4,14 +4,15 @@ go 1.19\n \n require (\n \tgithub.com/Azure/terraform-module-test-helper v0.9.1\n-\tgithub.com/gruntwork-io/terratest v0.41.11\n+\tgithub.com/gruntwork-io/terratest v0.41.15\n \tgithub.com/stretchr/testify v1.8.2\n )\n \n require (\n-\tcloud.google.com/go v0.104.0 // indirect\n-\tcloud.google.com/go/compute v1.10.0 // indirect\n-\tcloud.google.com/go/iam v0.5.0 // indirect\n+\tcloud.google.com/go v0.105.0 // indirect\n+\tcloud.google.com/go/compute v1.12.1 // indirect\n+\tcloud.google.com/go/compute/metadata v0.2.1 // indirect\n+\tcloud.google.com/go/iam v0.7.0 // indirect\n \tcloud.google.com/go/storage v1.27.0 // indirect\n \tgithub.com/agext/levenshtein v1.2.3 // indirect\n \tgithub.com/ahmetb/go-linq/v3 v3.2.0 // indirect\n@@ -34,7 +35,7 @@ require (\n \tgithub.com/google/gofuzz v1.1.0 // indirect\n \tgithub.com/google/uuid v1.3.0 // indirect\n \tgithub.com/googleapis/enterprise-certificate-proxy v0.2.0 // indirect\n-\tgithub.com/googleapis/gax-go/v2 v2.6.0 // indirect\n+\tgithub.com/googleapis/gax-go/v2 v2.7.0 // indirect\n \tgithub.com/googleapis/gnostic v0.4.1 // indirect\n \tgithub.com/gruntwork-io/go-commons v0.8.0 // indirect\n \tgithub.com/hashicorp/errwrap v1.0.0 // indirect\n@@ -74,8 +75,8 @@ require (\n \tgithub.com/vmihailenco/msgpack/v5 v5.3.5 // indirect\n \tgithub.com/vmihailenco/tagparser/v2 v2.0.0 // indirect\n \tgithub.com/zclconf/go-cty v1.12.1 // indirect\n-\tgo.opencensus.io v0.23.0 // indirect\n-\tgolang.org/x/crypto v0.0.0-20220517005047-85d78b3ac167 // indirect\n+\tgo.opencensus.io v0.24.0 // indirect\n+\tgolang.org/x/crypto v0.1.0 // indirect\n \tgolang.org/x/mod v0.6.0-dev.0.20220419223038-86c51ed26bb4 // indirect\n \tgolang.org/x/net v0.7.0 // indirect\n \tgolang.org/x/oauth2 v0.1.0 // indirect\n@@ -84,10 +85,10 @@ require (\n \tgolang.org/x/text v0.7.0 // indirect\n \tgolang.org/x/time v0.0.0-20200630173020-3af7569d3a1e // indirect\n \tgolang.org/x/xerrors v0.0.0-20220907171357-04be3eba64a2 // indirect\n-\tgoogle.golang.org/api v0.100.0 // indirect\n+\tgoogle.golang.org/api v0.103.0 // indirect\n \tgoogle.golang.org/appengine v1.6.7 // indirect\n-\tgoogle.golang.org/genproto v0.0.0-20221025140454-527a21cfbd71 // indirect\n-\tgoogle.golang.org/grpc \tgoogle.golang.org/protobuf // indirect\n+\tgoogle.golang.org/genproto v0.0.0-20221201164419-0e50fba7f41c // indirect\n+\tgoogle.golang.org/grpc v1.51.0 // indirect\n \tgoogle.golang.org/protobuf v1.28.1 // indirect\n \tgopkg.in/inf.v0 v0.9.1 // indirect\n \tgopkg.in/yaml.v2 v2.4.0 // indirect\n---\n\n\n---\n\nChoice C:\ntest/go.mod\n@@ -4,14 +4,15 @@ go 1.19\n \n require (\n \tgithub.com/Azure/terraform-module-test-helper v0.9.1\n-\tgithub.com/gruntwork-io/terratest v0.41.11\n+\tgithub.com/gruntwork-io/terratest v0.41.15\n \tgithub.com/stretchr/testify v1.8.2\n )\n \n require (\n-\tcloud.google.com/go v0.104.0 // indirect\n-\tcloud.google.com/go/compute v1.10.0 // indirect\n-\tcloud.google.com/go/iam v0.5.0 // indirect\n+\tcloud.google.com/go v0.105.0 // indirect\n+\tcloud.google.com/go/compute v1.12.1 // indirect\n+\tcloud.google.com/go/compute/metadata v0.2.1 // indirect\n+\tcloud.google.com/go/iam v0.7.0 // indirect\n \tcloud.google.com/go/storage v1.27.0 // indirect\n \tgithub.com/agext/levenshtein v1.2.3 // indirect\n \tgithub.com/ahmetb/go-linq/v3 v3.2.0 // indirect\n@@ -34,7 +35,7 @@ require (\n \tgithub.com/google/gofuzz v1.1.0 // indirect\n \tgithub.com/google/uuid v1.3.0 // indirect\n \tgithub.com/googleapis/enterprise-certificate-proxy v0.2.0 // indirect\n-\tgithub.com/googleapis/gax-go/v2 v2.6.0 // indirect\n+\tgithub.com/googleapis/gax-go/v2 v2.7.0 // indirect\n \tgithub.com/googleapis/gnostic v0.4.1 // indirect\n \tgithub.com/gruntwork-io/go-commons v0.8.0 // indirect\n \tgithub.com/hashicorp/errwrap v1.0.0 // indirect\n@@ -74,8 +75,8 @@ require (\n \tgithub.com/vmihailenco/msgpack/v5 v5.3.5 // indirect\n \tgithub.com/vmihailenco/tagparser/v2 v2.0.0 // indirect\n \tgithub.com/zclconf/go-cty v1.12.1 // indirect\n-\tgo.opencensus.io v0.23.0 // indirect\n-\tgolang.org/x/crypto v0.0.0-20220517005047-85d78b3ac167 // indirect\n+\tgo.opencensus.io v0.24.0 // indirect\n+\tgolang.org/x/crypto v0.1.0 // indirect\n \tgolang.org/x/mod v0.6.0-dev.0.20220419223038-86c51ed26bb4 // indirect\n \tgolang.org/x/net v0.7.0 // indirect\n \tgolang.org/x/oauth2 v0.1.0 // indirect\n@@ -84,10 +85,10 @@ require (\n \tgolang.org/x/text v0.7.0 // indirect\n \tgolang.org/x/time v0.0.0-20200630173020-3af7569d3a1e // indirect\n \tgolang.org/x/xerrors v0.0.0-20220907171357-04be3eba64a2 // indirect\n-\tgoogle.golang.org/api v0.100.0 // indirect\n+\tgoogle.golang.org/api v0.103.0 // indirect\n \tgoogle.golang.org/appengine v1.6.7 // indirect\n-\tgoogle.golang.org/genproto v0.0.0-20221025140454-527a21cfbd71 // indirect\n-\tgoogle.golang.org/grpc v1.50.1 // indirect\n+\tgoogle.golang.org/genproto v0.0.0-20221201164419-0e50fba7f41c // indirect\n+\tgoogle.golang.org/grpc v1.51.0 // indirect\n \tgoogle.golang.org/protobuf v1.28.1 // indirect\n \tgopkg.in/inf.v0 v0.9.1 // indirect\n \tgopkg.in/yaml.v2 v2.4.0 // indirect\n---\n\n\n---\n\nChoice D:\ntest/go.mod\n@@ -4,14 +4,15 @@ go 1.19\n \n require (\n \tgithub.com/Azure/terraform-module-test-helper v0.9.1\n-\tgithub.com/gruntwork-io/terratest v0.41.11\n+\tgithub.com/gruntwork-io/terratest v0.41.15\n indirect\n-\tgolang.org/x/crypto v1.8.2\n )\n \n require (\n-\tcloud.google.com/go v0.104.0 // indirect\n-\tcloud.google.com/go/compute v1.10.0 // indirect\n-\tcloud.google.com/go/iam v0.5.0 // indirect\n+\tcloud.google.com/go v0.105.0 // indirect\n+\tcloud.google.com/go/compute v1.12.1 // indirect\n+\tcloud.google.com/go/compute/metadata v0.2.1 // indirect\n+\tcloud.google.com/go/iam v0.7.0 // indirect\n \tcloud.google.com/go/storage v1.27.0 // indirect\n \tgithub.com/agext/levenshtein v1.2.3 // indirect\n \tgithub.com/ahmetb/go-linq/v3 v3.2.0 // indirect\n@@ -34,7 +35,7 @@ require (\n \tgithub.com/google/gofuzz v1.1.0 // indirect\n \tgithub.com/google/uuid v1.3.0 // indirect\n \tgithub.com/googleapis/enterprise-certificate-proxy v0.2.0 // indirect\n-\tgithub.com/googleapis/gax-go/v2 v2.6.0 // indirect\n+\tgithub.com/googleapis/gax-go/v2 v2.7.0 // indirect\n \tgithub.com/googleapis/gnostic v0.4.1 // indirect\n \tgithub.com/gruntwork-io/go-commons v0.8.0 // indirect\n \tgithub.com/hashicorp/errwrap v1.0.0 // indirect\n@@ -74,8 +75,8 @@ require (\n \tgithub.com/vmihailenco/msgpack/v5 v5.3.5 // indirect\n \tgithub.com/vmihailenco/tagparser/v2 v2.0.0 // indirect\n \tgithub.com/zclconf/go-cty v1.12.1 // indirect\n-\tgo.opencensus.io v0.23.0 // indirect\n-\tgolang.org/x/crypto v0.0.0-20220517005047-85d78b3ac167 // indirect\n+\tgo.opencensus.io v0.24.0 // indirect\n+\tgolang.org/x/crypto v0.1.0 // indirect\n \tgolang.org/x/mod v0.6.0-dev.0.20220419223038-86c51ed26bb4 // indirect\n \tgolang.org/x/net v0.7.0 // indirect\n \tgolang.org/x/oauth2 v0.1.0 // indirect\n@@ -84,10 +85,10 @@ require (\n \tgolang.org/x/text v0.7.0 // indirect\n \tgolang.org/x/time v0.0.0-20200630173020-3af7569d3a1e // indirect\n \tgolang.org/x/xerrors v0.0.0-20220907171357-04be3eba64a2 // indirect\n-\tgoogle.golang.org/api v0.100.0 // indirect\n+\tgoogle.golang.org/api v0.103.0 // indirect\n \tgoogle.golang.org/appengine v1.6.7 // indirect\n-\tgoogle.golang.org/genproto v0.0.0-20221025140454-527a21cfbd71 // indirect\n-\tgoogle.golang.org/grpc v1.50.1 // indirect\n+\tgoogle.golang.org/genproto v0.0.0-20221201164419-0e50fba7f41c // indirect\n+\tgoogle.golang.org/grpc v1.51.0 // indirect\n \tgoogle.golang.org/protobuf v1.28.1 // indirect\n \tgopkg.in/inf.v0 v0.9.1 // indirect\n \tgopkg.in/yaml.v2 v2.4.0 // indirect\n---\n\n\n---\n" } ]
C
[ { "role": "system", "content": "Choose the best Terraform patch (A/B/C/D) that implements the requested Azure Compute change safely. Only respond with a single uppercase letter." }, { "role": "user", "content": "Task Description:\nBumps [github.com/gruntwork-io/terratest](https://github.com/gruntwork-io/terratest) from 0.41.11 to 0.41.12.\n<details>\n<summary>Release notes</summary>\n<p><em>Sourced from <a href=\"https://github.com/gruntwork-io/terratest/releases\">github.com/gruntwork-io/terratest's releases</a>.</em></p>\n<blockquote>\n<h2>v0.41.12</h2>\n<!-- raw HTML omitted -->\n<!-- raw HTML omitted -->\n<!-- raw HTML omitted -->\n<h2>Description</h2>\n<!-- raw HTML omitted -->\n<ul>\n<li>Updated dependency <code>hashicorp/go-getter</code> from 1.6.1 to 1.7.0</li>\n</ul>\n<!-- raw HTML omitted -->\n<h2>Related links</h2>\n<!-- raw HTML omitted -->\n<ul>\n<li><a href=\"https://github-redirect.dependabot.com/gruntwork-io/terratest/pull/1249\">gruntwork-io/terratest#1249</a></li>\n</ul>\n<!-- raw HTML omitted -->\n</blockquote>\n</details>\n<details>\n<summary>Commits</summary>\n<ul>\n<li><a href=\"https://github.com/gruntwork-io/terratest/commit/09301eb27a4fdad9dbe90920234af5213983e9f1\"><code>09301eb</code></a> Merge pull request <a href=\"https://github-redirect.dependabot.com/gruntwork-io/terratest/issues/1249\">#1249</a> from gruntwork-io/dependabot/go_modules/github.com/h...</li>\n<li><a href=\"https://github.com/gruntwork-io/terratest/commit/4ea95438d213679896830ac91b6721a602c3f5fd\"><code>4ea9543</code></a> Bump github.com/hashicorp/go-getter from 1.6.1 to 1.7.0</li>\n<li>See full diff in <a href=\"https://github.com/gruntwork-io/terratest/compare/v0.41.11...v0.41.12\">compare view</a></li>\n</ul>\n</details>\n<br />\n\n\n[![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=github.com/gruntwork-io/terratest&package-manager=go_modules&previous-version=0.41.11&new-version=0.41.12)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)\n\nDependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`.\n\n[//]: # (dependabot-automerge-start)\n[//]: # (dependabot-automerge-end)\n\n---\n\n<details>\n<summary>Dependabot commands and options</summary>\n<br />\n\nYou can trigger Dependabot actions by commenting on this PR:\n- `@dependabot rebase` will rebase this PR\n- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it\n- `@dependabot merge` will merge this PR after your CI passes on it\n- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it\n- `@dependabot cancel merge` will cancel a previously requested merge and block automerging\n- `@dependabot reopen` will reopen this PR if it is closed\n- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually\n- `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)\n- `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)\n- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)\n\n\n</details>\n\n---\n\nChoice A:\ntest/go.mod\n@@ -4,14 +4,15 @@ go 1.19\n \n require (\n \tgithub.com/Azure/terraform-module-test-helper v0.9.1\n-\tgithub.com/gruntwork-io/terratest v0.41.11\n+\tgithub.com/gruntwork-io/terratest v0.41.12\n \tgithub.com/stretchr/testify v1.8.2\n )\n \n require (\n-\tcloud.google.com/go v0.104.0 // indirect\n-\tcloud.google.com/go/compute v1.10.0 // indirect\n-\tcloud.google.com/go/iam v0.9.1 // indirect\n+\tcloud.google.com/go v0.105.0 // indirect\n+\tcloud.google.com/go/compute v1.12.1 // indirect\n+\tcloud.google.com/go/compute/metadata v0.2.1 // indirect\n+\tcloud.google.com/go/iam v0.7.0 // indirect\n \tcloud.google.com/go/storage v1.27.0 // indirect\n \tgithub.com/agext/levenshtein v1.2.3 // indirect\n \tgithub.com/ahmetb/go-linq/v3 v3.2.0 // indirect\n@@ -34,7 +35,7 @@ require (\n \tgithub.com/google/gofuzz v1.1.0 // indirect\n \tgithub.com/google/uuid v1.3.0 // indirect\n \tgithub.com/googleapis/enterprise-certificate-proxy v0.2.0 // indirect\n-\tgithub.com/googleapis/gax-go/v2 v2.6.0 // indirect\n+\tgithub.com/googleapis/gax-go/v2 v2.7.0 // indirect\n \tgithub.com/googleapis/gnostic v0.4.1 // indirect\n \tgithub.com/gruntwork-io/go-commons v0.8.0 // indirect\n \tgithub.com/hashicorp/errwrap v1.0.0 // indirect\n@@ -74,7 +75,7 @@ require (\n \tgithub.com/vmihailenco/msgpack/v5 v5.3.5 // indirect\n \tgithub.com/vmihailenco/tagparser/v2 v2.0.0 // indirect\n \tgithub.com/zclconf/go-cty v1.12.1 // indirect\n-\tgo.opencensus.io v0.23.0 // indirect\n+\tgo.opencensus.io v0.24.0 // indirect\n \tgolang.org/x/crypto v0.0.0-20220517005047-85d78b3ac167 // indirect\n \tgolang.org/x/mod v0.6.0-dev.0.20220419223038-86c51ed26bb4 // indirect\n \tgolang.org/x/net v0.7.0 // indirect\n@@ -84,10 +85,10 @@ require (\n \tgolang.org/x/text v0.7.0 // indirect\n \tgolang.org/x/time v0.0.0-20200630173020-3af7569d3a1e // indirect\n \tgolang.org/x/xerrors v0.0.0-20220907171357-04be3eba64a2 // indirect\n-\tgoogle.golang.org/api v0.100.0 // indirect\n+\tgoogle.golang.org/api v0.103.0 // indirect\n \tgoogle.golang.org/appengine v1.6.7 // indirect\n-\tgoogle.golang.org/genproto v0.0.0-20221025140454-527a21cfbd71 // indirect\n-\tgoogle.golang.org/grpc v1.50.1 // indirect\n+\tgoogle.golang.org/genproto v0.0.0-20221201164419-0e50fba7f41c // indirect\n+\tgoogle.golang.org/grpc v1.51.0 // indirect\n \tgoogle.golang.org/protobuf v1.28.1 // indirect\n \tgopkg.in/inf.v0 v0.9.1 // indirect\n \tgopkg.in/yaml.v2 v2.4.0 // indirect\n---\n\n\n---\n\nChoice B:\ntest/go.mod\n@@ -4,14 +4,15 @@ go 1.19\n \n require (\n \tgithub.com/Azure/terraform-module-test-helper v0.9.1\n-\tgithub.com/gruntwork-io/terratest v0.41.11\n+\tgithub.com/gruntwork-io/terratest v0.41.12\n \tgithub.com/stretchr/testify v1.8.2\n )\n \n require (\n-\tcloud.google.com/go v0.104.0 // indirect\n-\tcloud.google.com/go/compute v1.10.0 // indirect\n-\tcloud.google.com/go/iam v0.5.0 // indirect\n+\tcloud.google.com/go v0.105.0 // indirect\n+\tcloud.google.com/go/compute v1.12.1 // indirect\n+\tcloud.google.com/go/compute/metadata v0.2.1 // indirect\n+\tcloud.google.com/go/iam v0.7.0 // indirect\n \tcloud.google.com/go/storage v1.27.0 // indirect\n \tgithub.com/agext/levenshtein v1.2.3 // indirect\n \tgithub.com/ahmetb/go-linq/v3 v3.2.0 // indirect\n@@ -34,7 +35,7 @@ require (\n \tgithub.com/google/gofuzz v1.1.0 // indirect\n \tgithub.com/google/uuid v1.3.0 // indirect\n \tgithub.com/googleapis/enterprise-certificate-proxy v0.2.0 // indirect\n-\tgithub.com/googleapis/gax-go/v2 v2.6.0 // indirect\n+\tgithub.com/googleapis/gax-go/v2 v2.7.0 // indirect\n \tgithub.com/googleapis/gnostic v0.4.1 // indirect\n \tgithub.com/gruntwork-io/go-commons v0.8.0 // indirect\n \tgithub.com/hashicorp/errwrap v1.0.0 // indirect\n@@ -74,7 +75,7 @@ require (\n \tgithub.com/vmihailenco/msgpack/v5 v5.3.5 // indirect\n \tgithub.com/vmihailenco/tagparser/v2 v2.0.0 // indirect\n \tgithub.com/zclconf/go-cty v1.12.1 // indirect\n-\tgo.opencensus.io v0.23.0 // indirect\n+\tgo.opencensus.io v0.24.0 // indirect\n \tgolang.org/x/crypto v0.0.0-20220517005047-85d78b3ac167 // indirect\n \tgolang.org/x/mod v0.6.0-dev.0.20220419223038-86c51ed26bb4 // indirect\n \tgolang.org/x/net v0.7.0 // indirect\n@@ -84,10 +85,10 @@ require (\n \tgolang.org/x/text v0.7.0 // indirect\n \tgolang.org/x/time v0.0.0-20200630173020-3af7569d3a1e // indirect\n \tgolang.org/x/xerrors v0.0.0-20220907171357-04be3eba64a2 // indirect\n-\tgoogle.golang.org/api v0.100.0 // indirect\n+\tgoogle.golang.org/api v0.103.0 // indirect\n \tgoogle.golang.org/appengine v1.6.7 // indirect\n-\tgoogle.golang.org/genproto v0.0.0-20221025140454-527a21cfbd71 // indirect\n-\tgoogle.golang.org/grpc v1.50.1 // indirect\n+\tgoogle.golang.org/genproto v0.0.0-20221201164419-0e50fba7f41c // indirect\n+\tgoogle.golang.org/grpc v1.51.0 // indirect\n \tgoogle.golang.org/protobuf \tgolang.org/x/time // indirect\n \tgopkg.in/inf.v0 v0.9.1 // indirect\n \tgopkg.in/yaml.v2 v2.4.0 // indirect\n---\n\n\n---\n\nChoice C:\ntest/go.mod\n@@ -4,14 +4,15 @@ go 1.19\n \n require (\n \tgithub.com/Azure/terraform-module-test-helper v0.9.1\n-\tgithub.com/gruntwork-io/terratest v0.41.11\n+\tgithub.com/gruntwork-io/terratest v0.41.12\n \tgithub.com/stretchr/testify v1.8.2\n )\n \n require (\n-\tcloud.google.com/go v0.104.0 // indirect\n-\tcloud.google.com/go/compute v1.10.0 // indirect\n-\tcloud.google.com/go/iam v0.5.0 // indirect\n+\tcloud.google.com/go v0.105.0 // indirect\n+\tcloud.google.com/go/compute v1.12.1 // indirect\n+\tcloud.google.com/go/compute/metadata v0.2.1 // indirect\n+\tcloud.google.com/go/iam v0.7.0 // indirect\n \tcloud.google.com/go/storage v1.27.0 // indirect\n \tgithub.com/agext/levenshtein v1.2.3 // indirect\n \tgithub.com/ahmetb/go-linq/v3 v3.2.0 // indirect\n@@ -34,7 +35,7 @@ require (\n \tgithub.com/google/gofuzz v1.1.0 // indirect\n \tgithub.com/google/uuid v1.3.0 // indirect\n \tgithub.com/googleapis/enterprise-certificate-proxy v0.2.0 // indirect\n-\tgithub.com/googleapis/gax-go/v2 v2.6.0 // indirect\n+\tgithub.com/googleapis/gax-go/v2 v2.7.0 // indirect\n \tgithub.com/googleapis/gnostic v0.4.1 // indirect\n \tgithub.com/gruntwork-io/go-commons v0.8.0 // indirect\n \tgithub.com/hashicorp/errwrap v1.0.0 // indirect\n@@ -74,7 +75,7 @@ require (\n \tgithub.com/vmihailenco/msgpack/v5 v5.3.5 // indirect\n \tgithub.com/vmihailenco/tagparser/v2 v2.0.0 // indirect\n \tgithub.com/zclconf/go-cty v1.12.1 // indirect\n-\tgo.opencensus.io v0.23.0 // indirect\n+\tgo.opencensus.io v0.24.0 // indirect\n \tgolang.org/x/crypto v0.0.0-20220517005047-85d78b3ac167 // indirect\n \tgolang.org/x/mod v0.6.0-dev.0.20220419223038-86c51ed26bb4 // indirect\n \tgolang.org/x/net v0.7.0 // indirect\n@@ -84,10 +85,10 @@ require (\n \tgolang.org/x/text v0.7.0 // indirect\n \tgolang.org/x/time v0.0.0-20200630173020-3af7569d3a1e // indirect\n \tgolang.org/x/xerrors v0.0.0-20220907171357-04be3eba64a2 // indirect\n-\tgoogle.golang.org/api v0.100.0 // indirect\n+\tgoogle.golang.org/api v0.103.0 // indirect\n \tgoogle.golang.org/appengine v1.6.7 // indirect\n-\tgoogle.golang.org/genproto v0.0.0-20221025140454-527a21cfbd71 // indirect\n-\tgoogle.golang.org/grpc v1.50.1 // indirect\n+\tgoogle.golang.org/genproto v0.0.0-20221201164419-0e50fba7f41c // indirect\n+\tgoogle.golang.org/grpc v1.51.0 // indirect\n \tgoogle.golang.org/protobuf v1.28.1 // indirect\n \tgopkg.in/inf.v0 v0.9.1 // indirect\n \tgopkg.in/yaml.v2 v2.4.0 // indirect\n---\n\n\n---\n\nChoice D:\ntest/go.mod\n@@ -4,14 +4,15 @@ go 1.19\n \n require (\n \tgithub.com/Azure/terraform-module-test-helper v0.9.1\n-\tgithub.com/gruntwork-io/terratest v0.41.11\n+\tgithub.com/gruntwork-io/terratest v0.41.12\n \tgithub.com/stretchr/testify v1.8.2\n )\n \n require (\n-\tcloud.google.com/go v0.104.0 // indirect\n-\tcloud.google.com/go/compute v1.10.0 // indirect\n-\tcloud.google.com/go/iam v0.5.0 // indirect\n+\tcloud.google.com/go v0.105.0 // indirect\n+\tcloud.google.com/go/compute v1.12.1 // indirect\n+\tcloud.google.com/go/compute/metadata v0.2.1 // indirect\n+\tcloud.google.com/go/iam v0.7.0 // indirect\n \tcloud.google.com/go/storage v1.27.0 // indirect\n \tgithub.com/agext/levenshtein v1.2.3 // indirect\n \tgithub.com/ahmetb/go-linq/v3 v3.2.0 // indirect\n@@ -34,7 +35,7 @@ require (\n \tgithub.com/google/gofuzz v1.1.0 // indirect\n \tgithub.com/google/uuid v1.3.0 // indirect\n \tgithub.com/googleapis/enterprise-certificate-proxy v0.2.0 // indirect\n-\tgithub.com/googleapis/gax-go/v2 v2.6.0 // indirect\n+\tgithub.com/googleapis/gax-go/v2 v2.7.0 // indirect\n \tgithub.com/googleapis/gnostic v0.4.1 // indirect\n \tgithub.com/gruntwork-io/go-commons v0.8.0 // indirect\n \tgithub.com/hashicorp/errwrap v1.0.0 // indirect\n@@ -74,7 +75,7 @@ require (\n \tgithub.com/vmihailenco/msgpack/v5 v5.3.5 // indirect\n \tgithub.com/vmihailenco/tagparser/v2 v2.0.0 // indirect\n \tgithub.com/zclconf/go-cty v1.12.1 // indirect\n-\tgo.opencensus.io v0.23.0 // indirect\n+\tgo.opencensus.io v0.24.0 // indirect\n \tgolang.org/x/crypto v0.0.0-20220517005047-85d78b3ac167 // indirect\n \tgithub.com/googleapis/gnostic v0.6.0-dev.0.20220419223038-86c51ed26bb4 // indirect\n \tgolang.org/x/net v0.7.0 // indirect\n@@ -84,10 +85,10 @@ require (\n \tgolang.org/x/text v0.7.0 // indirect\n \tgolang.org/x/time v0.0.0-20200630173020-3af7569d3a1e // indirect\n \tgolang.org/x/xerrors v0.0.0-20220907171357-04be3eba64a2 // indirect\n-\tgoogle.golang.org/api v0.100.0 // indirect\n+\tgoogle.golang.org/api v0.103.0 // indirect\n \tgoogle.golang.org/appengine v1.6.7 // indirect\n-\tgoogle.golang.org/genproto v0.0.0-20221025140454-527a21cfbd71 // indirect\n-\tgoogle.golang.org/grpc v1.50.1 // indirect\n+\tgoogle.golang.org/genproto v0.0.0-20221201164419-0e50fba7f41c // indirect\n+\tgoogle.golang.org/grpc v1.51.0 // indirect\n \tgoogle.golang.org/protobuf v1.28.1 // indirect\n \tgopkg.in/inf.v0 v0.9.1 // indirect\n \tgopkg.in/yaml.v2 v2.4.0 // indirect\n---\n\n\n---\n" } ]
C
[ { "role": "system", "content": "Choose the best Terraform patch (A/B/C/D) that implements the requested Azure Compute change safely. Only respond with a single uppercase letter." }, { "role": "user", "content": "Task Description:\nBumps [github.com/stretchr/testify](https://github.com/stretchr/testify) from 1.8.1 to 1.8.2.\n<details>\n<summary>Commits</summary>\n<ul>\n<li><a href=\"https://github.com/stretchr/testify/commit/f36bfe3c337aa95c86f04c721acdbafb5ffb1611\"><code>f36bfe3</code></a> Fix Subset/NotSubset when map is missing keys from the subset (<a href=\"https://github-redirect.dependabot.com/stretchr/testify/issues/1261\">#1261</a>)</li>\n<li><a href=\"https://github.com/stretchr/testify/commit/0ab3ce1249292a7221058b9e370472bca8f04813\"><code>0ab3ce1</code></a> Fix <code>CallerInfo()</code> source file paths (<a href=\"https://github-redirect.dependabot.com/stretchr/testify/issues/1288\">#1288</a>)</li>\n<li><a href=\"https://github.com/stretchr/testify/commit/2b00d33aec28e4fded71d57517ed4ec9d54cb4e2\"><code>2b00d33</code></a> Fix Call.Unset() panic (issue <a href=\"https://github-redirect.dependabot.com/stretchr/testify/issues/1236\">#1236</a>) (<a href=\"https://github-redirect.dependabot.com/stretchr/testify/issues/1250\">#1250</a>)</li>\n<li><a href=\"https://github.com/stretchr/testify/commit/9acc22213e5fbec050904b9886c6df042188cad5\"><code>9acc222</code></a> fix: fix bug for check unsafe.Pointer isNil (<a href=\"https://github-redirect.dependabot.com/stretchr/testify/issues/1319\">#1319</a>)</li>\n<li><a href=\"https://github.com/stretchr/testify/commit/1333b5d3bda8cf5aedcf3e1aaa95cac28aaab892\"><code>1333b5d</code></a> Add sub-tests to Suite (<a href=\"https://github-redirect.dependabot.com/stretchr/testify/issues/1246\">#1246</a>)</li>\n<li>See full diff in <a href=\"https://github.com/stretchr/testify/compare/v1.8.1...v1.8.2\">compare view</a></li>\n</ul>\n</details>\n<br />\n\n\n[![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=github.com/stretchr/testify&package-manager=go_modules&previous-version=1.8.1&new-version=1.8.2)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)\n\nDependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`.\n\n[//]: # (dependabot-automerge-start)\n[//]: # (dependabot-automerge-end)\n\n---\n\n<details>\n<summary>Dependabot commands and options</summary>\n<br />\n\nYou can trigger Dependabot actions by commenting on this PR:\n- `@dependabot rebase` will rebase this PR\n- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it\n- `@dependabot merge` will merge this PR after your CI passes on it\n- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it\n- `@dependabot cancel merge` will cancel a previously requested merge and block automerging\n- `@dependabot reopen` will reopen this PR if it is closed\n- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually\n- `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)\n- `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)\n- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)\n\n\n</details>\n\n---\n\nChoice A:\ntest/go.mod\n@@ -5,7 +5,7 @@ go 1.19\n require (\n \tgithub.com/Azure/terraform-module-test-helper v0.9.1\n \tgithub.com/gruntwork-io/terratest v0.41.11\n-\tgithub.com/stretchr/testify v1.8.1\n+\tgithub.com/stretchr/testify v1.8.2\n )\n \n require (\n---\n\n\n---\n\nChoice B:\ntest/go.mod\n@@ -5,7 +5,7 v0.9.1\n go 1.19\n require (\n \tgithub.com/Azure/terraform-module-test-helper v0.9.1\n \tgithub.com/gruntwork-io/terratest v0.41.11\n-\tgithub.com/stretchr/testify v1.8.1\n+\tgithub.com/stretchr/testify v1.8.2\n )\n \n require (\n---\n\n\n---\n\nChoice C:\ntest/go.mod\n@@ go +5,7 @@ go 1.19\n require (\n \tgithub.com/Azure/terraform-module-test-helper v0.9.1\n \tgithub.com/gruntwork-io/terratest v0.41.11\n-\tgithub.com/stretchr/testify v1.8.1\n+\tgithub.com/stretchr/testify v1.8.2\n )\n \n require (\n---\n\n\n---\n\nChoice D:\ntest/go.mod\n@@ test/go.mod\n@@ +5,7 @@ go 1.19\n require (\n \tgithub.com/Azure/terraform-module-test-helper v0.9.1\n \tgithub.com/gruntwork-io/terratest v0.41.11\n-\tgithub.com/stretchr/testify v1.8.1\n+\tgithub.com/stretchr/testify v1.8.2\n )\n \n require (\n---\n\n\n---\n" } ]
A
[ { "role": "system", "content": "Choose the best Terraform patch (A/B/C/D) that implements the requested Azure Compute change safely. Only respond with a single uppercase letter." }, { "role": "user", "content": "Task Description:\nBumps [github.com/Azure/terraform-module-test-helper](https://github.com/Azure/terraform-module-test-helper) from 0.8.1 to 0.9.1.\n<details>\n<summary>Commits</summary>\n<ul>\n<li><a href=\"https://github.com/Azure/terraform-module-test-helper/commit/57d20aff861b96287a8e3137015dd36f01dfd17c\"><code>57d20af</code></a> adjust file lock range</li>\n<li><a href=\"https://github.com/Azure/terraform-module-test-helper/commit/699b11ef30826edb7133ca846c035f48c80edfb6\"><code>699b11e</code></a> upgrade go-getter version, add lock when write to test record file, use githu...</li>\n<li><a href=\"https://github.com/Azure/terraform-module-test-helper/commit/2565a0fb6964c2b59cae0b23483fe5592eed13d1\"><code>2565a0f</code></a> Bump github.com/hashicorp/terraform-json from 0.14.0 to 0.15.0 (<a href=\"https://github-redirect.dependabot.com/Azure/terraform-module-test-helper/issues/12\">#12</a>)</li>\n<li><a href=\"https://github.com/Azure/terraform-module-test-helper/commit/168522dd580d8113820f3a3c72799cd028af44b7\"><code>168522d</code></a> setup default retry options if we have retryable errors</li>\n<li>See full diff in <a href=\"https://github.com/Azure/terraform-module-test-helper/compare/v0.8.1...v0.9.1\">compare view</a></li>\n</ul>\n</details>\n<br />\n\n\n[![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=github.com/Azure/terraform-module-test-helper&package-manager=go_modules&previous-version=0.8.1&new-version=0.9.1)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)\n\nDependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`.\n\n[//]: # (dependabot-automerge-start)\n[//]: # (dependabot-automerge-end)\n\n---\n\n<details>\n<summary>Dependabot commands and options</summary>\n<br />\n\nYou can trigger Dependabot actions by commenting on this PR:\n- `@dependabot rebase` will rebase this PR\n- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it\n- `@dependabot merge` will merge this PR after your CI passes on it\n- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it\n- `@dependabot cancel merge` will cancel a previously requested merge and block automerging\n- `@dependabot reopen` will reopen this PR if it is closed\n- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually\n- `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)\n- `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)\n- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)\n\n\n</details>\n\n---\n\nChoice A:\ntest/go.mod\n@@ -3,7 +3,7 @@ module github.com/Azure/terraform-azurerm-compute\n go 1.19\n \n require (\n-\tgithub.com/Azure/terraform-module-test-helper v0.8.1\n+\tgithub.com/Azure/terraform-module-test-helper v0.9.1\n \tgithub.com/gruntwork-io/terratest v0.41.11\n \tgithub.com/stretchr/testify v1.8.1\n )\n@@ -47,7 +47,7 @@ require (\n \tgithub.com/hashicorp/hcl v1.0.0 // indirect\n \tgithub.com/hashicorp/hcl/v2 v2.16.0 // indirect\n \tgithub.com/hashicorp/terraform-config-inspect v0.0.0-20211115214459-90acf1ca460f // indirect\n-\tgithub.com/hashicorp/terraform-json v0.14.0 // indirect\n+\tgithub.com/hashicorp/terraform-json v0.15.0 // indirect\n \tgithub.com/imdario/mergo v0.3.11 // indirect\n v0.15.0 v0.0.0-20190924061706-b57f9002281a // indirect\n \tgithub.com/jmespath/go-jmespath v0.4.0 // indirect\n---\n\n\n---\n\nChoice B:\ntest/go.mod\n@@ -3,7 +3,7 @@ module github.com/Azure/terraform-azurerm-compute\n go 1.19\n \n require (\n-\tgithub.com/Azure/terraform-module-test-helper v0.8.1\n+\tgithub.com/Azure/terraform-module-test-helper v0.9.1\n \tgithub.com/gruntwork-io/terratest v0.41.11\n \tgithub.com/stretchr/testify v1.8.1\n )\n@@ -47,7 +47,7 @@ require (\n \tgithub.com/hashicorp/hcl v1.0.0 // indirect\n \tgithub.com/hashicorp/hcl/v2 v2.16.0 // indirect\n \tgithub.com/hashicorp/terraform-config-inspect v0.0.0-20211115214459-90acf1ca460f // indirect\n-\tgithub.com/hashicorp/terraform-json v0.14.0 // indirect\n+\tgithub.com/hashicorp/terraform-json v0.15.0 // indirect\n \tgithub.com/imdario/mergo v0.3.11 // indirect\n \tgithub.com/jinzhu/copier v0.0.0-20190924061706-b57f9002281a // indirect\n \tgithub.com/jmespath/go-jmespath v0.4.0 // indirect\n---\n\n\n---\n\nChoice C:\ntest/go.mod\n@@ -3,7 +3,7 @@ module github.com/Azure/terraform-azurerm-compute\n go 1.19\n \n require (\n-\tgithub.com/Azure/terraform-module-test-helper v0.8.1\n+\tgithub.com/Azure/terraform-module-test-helper v0.9.1\n \tgithub.com/gruntwork-io/terratest v0.41.11\n \tgithub.com/stretchr/testify v1.8.1\n )\n@@ -47,7 +47,7 @@ require (\n \tgithub.com/hashicorp/hcl v1.0.0 // indirect\n \tgithub.com/hashicorp/hcl/v2 v2.16.0 // indirect\n \tgithub.com/hashicorp/terraform-config-inspect v0.0.0-20211115214459-90acf1ca460f // indirect\n-\tgithub.com/hashicorp/terraform-json v0.14.0 // indirect\n+\tgithub.com/hashicorp/terraform-json v0.15.0 // indirect\n \tgithub.com/imdario/mergo v0.3.11 // indirect\n \tgithub.com/jinzhu/copier v0.0.0-20190924061706-b57f9002281a // indirect\n \tgithub.com/jmespath/go-jmespath v0.4.0 // v0.8.1\n+\tgithub.com/Azure/terraform-module-test-helper\n\n---\n\nChoice D:\ntest/go.mod\n@@ -3,7 +3,7 @@ module github.com/Azure/terraform-azurerm-compute\n go 1.19\n \n require (\n-\tgithub.com/Azure/terraform-module-test-helper v0.8.1\n+\tgithub.com/Azure/terraform-module-test-helper v0.9.1\n \tgithub.com/gruntwork-io/terratest v0.41.11\n \tgithub.com/stretchr/testify v1.8.1\n )\n@@ -47,7 +47,7 @@ require (\n \tgithub.com/hashicorp/hcl v1.0.0 // indirect\n \tgithub.com/hashicorp/hcl/v2 v2.16.0 // v0.14.0 \tgithub.com/hashicorp/terraform-config-inspect v0.0.0-20211115214459-90acf1ca460f // indirect\n-\tgithub.com/hashicorp/terraform-json v0.14.0 // indirect\n+\tgithub.com/hashicorp/terraform-json v0.15.0 // indirect\n \tgithub.com/imdario/mergo v0.3.11 // indirect\n \tgithub.com/jinzhu/copier v0.0.0-20190924061706-b57f9002281a // indirect\n \tgithub.com/jmespath/go-jmespath v0.4.0 // indirect\n---\n\n\n---\n" } ]
B
[ { "role": "system", "content": "Choose the best Terraform patch (A/B/C/D) that implements the requested Azure Compute change safely. Only respond with a single uppercase letter." }, { "role": "user", "content": "Task Description:\nBumps [github.com/gruntwork-io/terratest](https://github.com/gruntwork-io/terratest) from 0.41.10 to 0.41.11.\n<details>\n<summary>Release notes</summary>\n<p><em>Sourced from <a href=\"https://github.com/gruntwork-io/terratest/releases\">github.com/gruntwork-io/terratest's releases</a>.</em></p>\n<blockquote>\n<h2>v0.41.11</h2>\n<h2>What's Changed</h2>\n<ul>\n<li><a href=\"https://github-redirect.dependabot.com/gruntwork-io/terratest/issues/1233\">#1233</a> Failing tests fixes by <a href=\"https://github.com/denis256\"><code>@​denis256</code></a> in <a href=\"https://github-redirect.dependabot.com/gruntwork-io/terratest/pull/1237\">gruntwork-io/terratest#1237</a></li>\n<li>Create a function to extract default az subnets by <a href=\"https://github.com/hongil0316\"><code>@​hongil0316</code></a> in <a href=\"https://github-redirect.dependabot.com/gruntwork-io/terratest/pull/1248\">gruntwork-io/terratest#1248</a></li>\n</ul>\n<p><strong>Full Changelog</strong>: <a href=\"https://github.com/gruntwork-io/terratest/compare/v0.41.10...v0.41.11\">https://github.com/gruntwork-io/terratest/compare/v0.41.10...v0.41.11</a></p>\n</blockquote>\n</details>\n<details>\n<summary>Commits</summary>\n<ul>\n<li><a href=\"https://github.com/gruntwork-io/terratest/commit/81b5820233c544aeb076274b50432abd1b16da25\"><code>81b5820</code></a> Merge pull request <a href=\"https://github-redirect.dependabot.com/gruntwork-io/terratest/issues/1248\">#1248</a> from gruntwork-io/default_az_subnets</li>\n<li><a href=\"https://github.com/gruntwork-io/terratest/commit/7074ff3957324edf38843c15e31daf764daf8b23\"><code>7074ff3</code></a> Create a function to extract default az subnets</li>\n<li><a href=\"https://github.com/gruntwork-io/terratest/commit/9509a64768e6f975870e9d78a3c30a67c69ad62b\"><code>9509a64</code></a> Merge pull request <a href=\"https://github-redirect.dependabot.com/gruntwork-io/terratest/issues/1237\">#1237</a> from gruntwork-io/bug/helm-chart-install-fix-2417</li>\n<li><a href=\"https://github.com/gruntwork-io/terratest/commit/a4c8231521a98c5d71d1e21c08163119bad76798\"><code>a4c8231</code></a> Update GCP test</li>\n<li><a href=\"https://github.com/gruntwork-io/terratest/commit/6eb8b3c52c1e6d05782872fbf01df3dbd20379d7\"><code>6eb8b3c</code></a> Add list of test zones that support f1-micro instances</li>\n<li><a href=\"https://github.com/gruntwork-io/terratest/commit/cbf3a03010a7735975ea3d0ac8075844a465b5da\"><code>cbf3a03</code></a> Updated list of GCP regions that can't supports f1-micro</li>\n<li><a href=\"https://github.com/gruntwork-io/terratest/commit/81dd0842a59ef0996513eae8b11427a59b1914cc\"><code>81dd084</code></a> Updated helm chart used in tests</li>\n<li>See full diff in <a href=\"https://github.com/gruntwork-io/terratest/compare/v0.41.10...v0.41.11\">compare view</a></li>\n</ul>\n</details>\n<br />\n\n\n[![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=github.com/gruntwork-io/terratest&package-manager=go_modules&previous-version=0.41.10&new-version=0.41.11)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)\n\nDependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`.\n\n[//]: # (dependabot-automerge-start)\n[//]: # (dependabot-automerge-end)\n\n---\n\n<details>\n<summary>Dependabot commands and options</summary>\n<br />\n\nYou can trigger Dependabot actions by commenting on this PR:\n- `@dependabot rebase` will rebase this PR\n- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it\n- `@dependabot merge` will merge this PR after your CI passes on it\n- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it\n- `@dependabot cancel merge` will cancel a previously requested merge and block automerging\n- `@dependabot reopen` will reopen this PR if it is closed\n- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually\n- `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)\n- `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)\n- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)\n\n\n</details>\n\n---\n\nChoice A:\ntest/go.mod\n@@ -4,7 +4,7 v0.41.10\n+\tgithub.com/gruntwork-io/terratest go 1.19\n \n require (\n \tgithub.com/Azure/terraform-module-test-helper v0.8.1\n-\tgithub.com/gruntwork-io/terratest v0.41.10\n+\tgithub.com/gruntwork-io/terratest v0.41.11\n \tgithub.com/stretchr/testify v1.8.1\n )\n \n---\n\n\n---\n\nChoice B:\ntest/go.mod\n@@ -4,7 +4,7 @@ go 1.19\n \n require (\n \n v0.8.1\n-\tgithub.com/gruntwork-io/terratest v0.41.10\n+\tgithub.com/gruntwork-io/terratest v0.41.11\n \tgithub.com/stretchr/testify v1.8.1\n )\n \n---\n\n\n---\n\nChoice C:\ntest/go.mod\n@@ -4,7 +4,7 @@ go 1.19\n \n require (\n \tgithub.com/Azure/terraform-module-test-helper v0.8.1\n-\tgithub.com/gruntwork-io/terratest v0.41.10\n+\tgithub.com/gruntwork-io/terratest v0.41.11\n \tgithub.com/stretchr/testify v1.8.1\n \tgithub.com/Azure/terraform-module-test-helper \n---\n\n\n---\n\nChoice D:\ntest/go.mod\n@@ -4,7 +4,7 @@ go 1.19\n \n require (\n \tgithub.com/Azure/terraform-module-test-helper v0.8.1\n-\tgithub.com/gruntwork-io/terratest v0.41.10\n+\tgithub.com/gruntwork-io/terratest v0.41.11\n \tgithub.com/stretchr/testify v1.8.1\n )\n \n---\n\n\n---\n" } ]
D
[ { "role": "system", "content": "Choose the best Terraform patch (A/B/C/D) that implements the requested Azure Compute change safely. Only respond with a single uppercase letter." }, { "role": "user", "content": "Task Description:\n## Describe your changes\r\n\r\nThis pr is based on #224 so thanks for @OLeonardoRodrigues. I'd like to publish a new release at 1st March so I just rewrite your pr.\r\n\r\n## Issue number\r\n\r\n#222\r\n\r\n## Checklist before requesting a review\r\n- [ ] The pr title can be used to describe what this pr did in `CHANGELOG.md` file\r\n- [ ] I have executed pre-commit on my machine\r\n- [ ] I have passed pr-check on my machine\r\n\r\nThanks for your cooperation!\r\n\r\n\n\n---\n\nChoice A:\nREADME.md\n@@ -408,7 +408,7 @@ Originally created by [David Tesar](http://github.com/dtzar)\n \n | Name | Version |\n |---------------------------------------------------------------------------|----------------|\n-| <a name=\"requirement_terraform\"></a> [terraform](#requirement\\_terraform) | >= 1.2 |\n+| <a name=\"requirement_terraform\"></a> [terraform](#requirement\\_terraform) | >= 1.3 |\n | <a name=\"requirement_azurerm\"></a> [azurerm](#requirement\\_azurerm) | >= 3.11, < 4.0 |\n | <a name=\"requirement_random\"></a> [random](#requirement\\_random) | >=3.0.0 |\n \n---\nexamples/complete/providers.tf\n@@ -1,5 +1,5 @@\n terraform {\n- required_version = \">= 1.2\"\n+ required_version = \">= 1.3\"\n \n required_providers {\n azurerm = {\n---\nexamples/extensions/providers.tf\n@@ -1,5 +1,5 @@\n terraform {\n- required_version = \">= 1.2\"\n+ required_version = \">= 1.3\"\n \n required_providers {\n azurerm = {\n---\nversions.tf\n@@ -1,5 +1,5 @@\n terraform {\n- required_version = \">= 1.2\"\n+ required_version = \">= 1.3\"\n \n required_providers {\n azurerm = {\n---\n\n\n---\n\nChoice B:\nREADME.md\n@@ -408,7 +408,7 @@ Originally created by [David Tesar](http://github.com/dtzar)\n \n | Name | Version |\n |---------------------------------------------------------------------------|----------------|\n-| <a name=\"requirement_terraform\"></a> [terraform](#requirement\\_terraform) | >= 1.2 |\n+| <a name=\"requirement_terraform\"></a> [terraform](#requirement\\_terraform) | >= 1.3 |\n | <a name=\"requirement_azurerm\"></a> [azurerm](#requirement\\_azurerm) | >= < 4.0 |\n | <a name=\"requirement_random\"></a> [random](#requirement\\_random) | >=3.0.0 |\n \n---\nexamples/complete/providers.tf\n@@ -1,5 +1,5 @@\n terraform {\n- required_version = \">= 1.2\"\n+ required_version = \">= 1.3\"\n \n required_providers {\n azurerm = {\n---\nexamples/extensions/providers.tf\n@@ -1,5 +1,5 @@\n terraform {\n- required_version = \">= 1.2\"\n+ required_version = \">= 1.3\"\n \n required_providers {\n azurerm = {\n---\nversions.tf\n@@ -1,5 +1,5 @@\n terraform {\n- required_version = \">= 1.2\"\n+ required_version = \">= 1.3\"\n \n required_providers {\n azurerm = {\n---\n\n\n---\n\nChoice C:\nREADME.md\n@@ -408,7 +408,7 @@ Originally created by [David Tesar](http://github.com/dtzar)\n \n | Name | Version |\n |---------------------------------------------------------------------------|----------------|\n-| <a name=\"requirement_terraform\"></a> [terraform](#requirement\\_terraform) | >= 1.2 |\n+| <a name=\"requirement_terraform\"></a> [terraform](#requirement\\_terraform) | >= 1.3 |\n | <a name=\"requirement_azurerm\"></a> [azurerm](#requirement\\_azurerm) | >= 3.11, < 4.0 |\n | <a name=\"requirement_random\"></a> [random](#requirement\\_random) | >=3.0.0 |\n \n---\nexamples/complete/providers.tf\n@@ -1,5 +1,5 @@\n terraform <a required_version = \">= 1.2\"\n+ required_version = \">= 1.3\"\n \n required_providers {\n azurerm = {\n---\nexamples/extensions/providers.tf\n@@ -1,5 +1,5 @@\n terraform {\n- required_version = \">= 1.2\"\n+ required_version = \">= 1.3\"\n \n required_providers {\n azurerm = {\n---\nversions.tf\n@@ -1,5 +1,5 @@\n terraform {\n- required_version = \">= 1.2\"\n+ required_version = \">= 1.3\"\n \n required_providers {\n azurerm = {\n---\n\n\n---\n\nChoice D:\nREADME.md\n@@ -408,7 +408,7 @@ Originally created by [David Tesar](http://github.com/dtzar)\n \n | Name | Version |\n |---------------------------------------------------------------------------|----------------|\n-| <a name=\"requirement_terraform\"></a> [terraform](#requirement\\_terraform) | >= 1.2 |\n+| <a name=\"requirement_terraform\"></a> [terraform](#requirement\\_terraform) | >= 1.3 |\n | <a name=\"requirement_azurerm\"></a> [azurerm](#requirement\\_azurerm) | >= 3.11, < 4.0 |\n | <a name=\"requirement_random\"></a> [random](#requirement\\_random) | >=3.0.0 |\n \n---\nexamples/complete/providers.tf\n@@ -1,5 +1,5 @@\n terraform {\n- required_version = \">= 1.2\"\n+ required_version = \">= 1.3\"\n \n required_providers {\n azurerm = {\n---\nexamples/extensions/providers.tf\n@@ -1,5 +1,5 @@\n terraform {\n- required_version = \">= 1.2\"\n+ required_version = \">= 1.3\"\n \n required_providers {\n azurerm = {\n---\nversions.tf\n@@ -1,5 +1,5 @@\n terraform {\n- required_version = \">= 1.2\"\n+ required_version = \">= 1.3\"\n \n required_providers {\n azurerm = {\n---\n\n\n---\n" } ]
A
[ { "role": "system", "content": "Choose the best Terraform patch (A/B/C/D) that implements the requested Azure Compute change safely. Only respond with a single uppercase letter." }, { "role": "user", "content": "Task Description:\nBumps [golang.org/x/net](https://github.com/golang/net) from 0.1.0 to 0.7.0.\n<details>\n<summary>Commits</summary>\n<ul>\n<li><a href=\"https://github.com/golang/net/commit/8e2b117aee74f6b86c207a808b0255de45c0a18a\"><code>8e2b117</code></a> http2/hpack: avoid quadratic complexity in hpack decoding</li>\n<li><a href=\"https://github.com/golang/net/commit/547e7edf3873d6f3a9c093d3785f9e2289e00746\"><code>547e7ed</code></a> http2: avoid referencing ResponseWrite.Write parameter after returning</li>\n<li><a href=\"https://github.com/golang/net/commit/39940adcaaa73e661124cb80fb8dd57ea929dbaf\"><code>39940ad</code></a> html: parse comments per HTML spec</li>\n<li><a href=\"https://github.com/golang/net/commit/87ce33ecb484cbb6bcfc8e506ce0330ef72e0847\"><code>87ce33e</code></a> go.mod: update golang.org/x dependencies</li>\n<li><a href=\"https://github.com/golang/net/commit/415cb6d518e71d202e2dc2f44c475cbff84eee72\"><code>415cb6d</code></a> all: fix some comments</li>\n<li><a href=\"https://github.com/golang/net/commit/7e3c19ca52e202ae203b1914fc00c8e47a4d72fa\"><code>7e3c19c</code></a> all: correct typos in comments</li>\n<li><a href=\"https://github.com/golang/net/commit/296f09aa3817abc1ddff7703799bf9babb7bbd16\"><code>296f09a</code></a> http2: case insensitive handling for 100-continue</li>\n<li><a href=\"https://github.com/golang/net/commit/f8411da775a685be247bbedcb3ed2c998f895cd2\"><code>f8411da</code></a> nettest: fix tests on dragonfly and js/wasm</li>\n<li><a href=\"https://github.com/golang/net/commit/8e0e7d8d38f2b6d21d742845570dde2902d06a1d\"><code>8e0e7d8</code></a> go.mod: update golang.org/x dependencies</li>\n<li><a href=\"https://github.com/golang/net/commit/7805fdc37dc2b54b28b9d621030e14dcf1dab67c\"><code>7805fdc</code></a> http2: rewrite inbound flow control tracking</li>\n<li>Additional commits viewable in <a href=\"https://github.com/golang/net/compare/v0.1.0...v0.7.0\">compare view</a></li>\n</ul>\n</details>\n<br />\n\n\n[![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=golang.org/x/net&package-manager=go_modules&previous-version=0.1.0&new-version=0.7.0)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)\n\nDependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`.\n\n[//]: # (dependabot-automerge-start)\n[//]: # (dependabot-automerge-end)\n\n---\n\n<details>\n<summary>Dependabot commands and options</summary>\n<br />\n\nYou can trigger Dependabot actions by commenting on this PR:\n- `@dependabot rebase` will rebase this PR\n- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it\n- `@dependabot merge` will merge this PR after your CI passes on it\n- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it\n- `@dependabot cancel merge` will cancel a previously requested merge and block automerging\n- `@dependabot reopen` will reopen this PR if it is closed\n- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually\n- `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)\n- `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)\n- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)\nYou can disable automated security fix PRs for this repo from the [Security Alerts page](https://github.com/Azure/terraform-azurerm-compute/network/alerts).\n\n</details>\n\n---\n\nChoice A:\ntest/go.mod\n@@ -77,11 require @@ require (\n \tgo.opencensus.io v0.23.0 // indirect\n \tgolang.org/x/crypto v0.0.0-20220517005047-85d78b3ac167 // indirect\n \tgolang.org/x/mod v0.6.0-dev.0.20220419223038-86c51ed26bb4 // indirect\n-\tgolang.org/x/net v0.1.0 // indirect\n+\tgolang.org/x/net v0.7.0 // indirect\n \tgolang.org/x/oauth2 v0.1.0 // indirect\n-\tgolang.org/x/sys v0.1.0 // indirect\n-\tgolang.org/x/term v0.1.0 // indirect\n-\tgolang.org/x/text v0.4.0 // indirect\n+\tgolang.org/x/sys v0.5.0 // indirect\n+\tgolang.org/x/term v0.5.0 // indirect\n+\tgolang.org/x/text v0.7.0 // indirect\n \tgolang.org/x/time v0.0.0-20200630173020-3af7569d3a1e // indirect\n \tgolang.org/x/xerrors v0.0.0-20220907171357-04be3eba64a2 // indirect\n \tgoogle.golang.org/api v0.100.0 // indirect\n---\n\n\n---\n\nChoice B:\ntest/go.mod\n@@ -77,11 +77,11 @@ require (\n \tgo.opencensus.io v0.23.0 // indirect\n \tgolang.org/x/crypto v0.0.0-20220517005047-85d78b3ac167 // indirect\n \tgolang.org/x/mod v0.6.0-dev.0.20220419223038-86c51ed26bb4 // indirect\n-\tgolang.org/x/net v0.1.0 // indirect\n+\tgolang.org/x/net v0.7.0 // indirect\n \tgolang.org/x/oauth2 v0.1.0 // indirect\n-\tgolang.org/x/sys v0.1.0 // indirect\n-\tgolang.org/x/term v0.1.0 // indirect\n-\tgolang.org/x/text v0.4.0 // indirect\n+\tgolang.org/x/sys v0.5.0 // indirect\n+\tgolang.org/x/term v0.5.0 // indirect\n+\tgolang.org/x/text v0.7.0 // indirect\n \tgolang.org/x/time v0.0.0-20200630173020-3af7569d3a1e // indirect\n \tgolang.org/x/xerrors v0.0.0-20220907171357-04be3eba64a2 // indirect\n \tgoogle.golang.org/api v0.100.0 // indirect\n---\n\n\n---\n\nChoice C:\ntest/go.mod\n@@ -77,11 +77,11 @@ require (\n \tgo.opencensus.io v0.23.0 // indirect\n \tgolang.org/x/crypto v0.0.0-20220517005047-85d78b3ac167 // indirect\n \tgolang.org/x/mod v0.6.0-dev.0.20220419223038-86c51ed26bb4 // indirect\n-\tgolang.org/x/net v0.1.0 // indirect\n+\tgolang.org/x/net v0.7.0 // indirect\n \tgolang.org/x/oauth2 v0.1.0 // indirect\n-\tgolang.org/x/sys v0.1.0 // indirect\n-\tgolang.org/x/net v0.1.0 // indirect\n-\tgolang.org/x/text v0.4.0 // indirect\n+\tgolang.org/x/sys v0.5.0 // indirect\n+\tgolang.org/x/term v0.5.0 // indirect\n+\tgolang.org/x/text v0.7.0 // indirect\n \tgolang.org/x/time v0.0.0-20200630173020-3af7569d3a1e // indirect\n \tgolang.org/x/xerrors v0.0.0-20220907171357-04be3eba64a2 // indirect\n \tgoogle.golang.org/api v0.100.0 // indirect\n---\n\n\n---\n\nChoice D:\ntest/go.mod\n@@ -77,11 +77,11 \tgolang.org/x/oauth2 require (\n \tgo.opencensus.io v0.23.0 // indirect\n \tgolang.org/x/crypto v0.0.0-20220517005047-85d78b3ac167 // indirect\n \tgolang.org/x/mod v0.6.0-dev.0.20220419223038-86c51ed26bb4 // indirect\n-\tgolang.org/x/net v0.1.0 // indirect\n+\tgolang.org/x/net v0.7.0 // indirect\n \tgolang.org/x/oauth2 v0.1.0 // indirect\n-\tgolang.org/x/sys v0.1.0 // indirect\n-\tgolang.org/x/term v0.1.0 // indirect\n-\tgolang.org/x/text v0.4.0 // indirect\n+\tgolang.org/x/sys v0.5.0 // indirect\n+\tgolang.org/x/term v0.5.0 // indirect\n+\tgolang.org/x/text v0.7.0 // indirect\n \tgolang.org/x/time v0.0.0-20200630173020-3af7569d3a1e // indirect\n \tgolang.org/x/xerrors v0.0.0-20220907171357-04be3eba64a2 // indirect\n \tgoogle.golang.org/api v0.100.0 // indirect\n---\n\n\n---\n" } ]
B
[ { "role": "system", "content": "Choose the best Terraform patch (A/B/C/D) that implements the requested Azure Compute change safely. Only respond with a single uppercase letter." }, { "role": "user", "content": "Task Description:\nBumps [github.com/hashicorp/go-getter/v2](https://github.com/hashicorp/go-getter) from 2.1.1 to 2.2.0.\n<details>\n<summary>Release notes</summary>\n<p><em>Sourced from <a href=\"https://github.com/hashicorp/go-getter/releases\">github.com/hashicorp/go-getter/v2's releases</a>.</em></p>\n<blockquote>\n<h2>v2.2.0</h2>\n<h2>What's Changed</h2>\n<ul>\n<li>[v2] update s3, gcs and cmd to use most recent v2 module version by <a href=\"https://github.com/nywilken\"><code>@​nywilken</code></a> in <a href=\"https://github-redirect.dependabot.com/hashicorp/go-getter/pull/400\">hashicorp/go-getter#400</a></li>\n<li>Port Decompression bomb security changes from v1 by <a href=\"https://github.com/nywilken\"><code>@​nywilken</code></a> in <a href=\"https://github-redirect.dependabot.com/hashicorp/go-getter/pull/414\">hashicorp/go-getter#414</a></li>\n<li>Update Go-Getter V2 to use Go 1.18 by <a href=\"https://github.com/nywilken\"><code>@​nywilken</code></a> in <a href=\"https://github-redirect.dependabot.com/hashicorp/go-getter/pull/381\">hashicorp/go-getter#381</a></li>\n</ul>\n<p><strong>Full Changelog</strong>: <a href=\"https://github.com/hashicorp/go-getter/compare/v2.1.1...v2.2.0\">https://github.com/hashicorp/go-getter/compare/v2.1.1...v2.2.0</a></p>\n</blockquote>\n</details>\n<details>\n<summary>Commits</summary>\n<ul>\n<li><a href=\"https://github.com/hashicorp/go-getter/commit/d666f9aeea9c78db7d1fab987a2b163523eafaed\"><code>d666f9a</code></a> Bump all modules to Go 1.18</li>\n<li><a href=\"https://github.com/hashicorp/go-getter/commit/017a2ee8897ec08a291eadf4815c66c9d9fe6f58\"><code>017a2ee</code></a> Port Decompression bomb security changes from v1 (<a href=\"https://github-redirect.dependabot.com/hashicorp/go-getter/issues/414\">#414</a>)</li>\n<li><a href=\"https://github.com/hashicorp/go-getter/commit/492324ccc87bf5c9459c6a137bd70a38cf792787\"><code>492324c</code></a> [v2] update s3, gcs and cmd to use most recent v2 module version (<a href=\"https://github-redirect.dependabot.com/hashicorp/go-getter/issues/400\">#400</a>)</li>\n<li>See full diff in <a href=\"https://github.com/hashicorp/go-getter/compare/v2.1.1...v2.2.0\">compare view</a></li>\n</ul>\n</details>\n<br />\n\n\n[![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=github.com/hashicorp/go-getter/v2&package-manager=go_modules&previous-version=2.1.1&new-version=2.2.0)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)\n\nDependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`.\n\n[//]: # (dependabot-automerge-start)\n[//]: # (dependabot-automerge-end)\n\n---\n\n<details>\n<summary>Dependabot commands and options</summary>\n<br />\n\nYou can trigger Dependabot actions by commenting on this PR:\n- `@dependabot rebase` will rebase this PR\n- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it\n- `@dependabot merge` will merge this PR after your CI passes on it\n- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it\n- `@dependabot cancel merge` will cancel a previously requested merge and block automerging\n- `@dependabot reopen` will reopen this PR if it is closed\n- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually\n- `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)\n- `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)\n- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)\nYou can disable automated security fix PRs for this repo from the [Security Alerts page](https://github.com/Azure/terraform-azurerm-compute/network/alerts).\n\n</details>\n\n---\n\nChoice A:\ntest/go.mod\n@@ -38,7 +38,7 @@ require (\n \tgithub.com/hashicorp/errwrap v1.0.0 // indirect\n \tgithub.com/hashicorp/go-cleanhttp v0.5.2 // indirect\n \tgithub.com/hashicorp/go-getter v1.6.1 v1.6.1 indirect\n-\tgithub.com/hashicorp/go-getter/v2 v2.1.1 // indirect\n+\tgithub.com/hashicorp/go-getter/v2 v2.2.0 // indirect\n \tgithub.com/hashicorp/go-multierror v1.1.0 // indirect\n \tgithub.com/hashicorp/go-safetemp v1.0.0 // indirect\n \tgithub.com/hashicorp/go-version v1.5.0 // indirect\n---\n\n\n---\n\nChoice B:\ntest/go.mod\n@@ -38,7 +38,7 @@ require (\n \tgithub.com/hashicorp/errwrap v1.0.0 // indirect\n \tgithub.com/hashicorp/go-cleanhttp v0.5.2 // indirect\n \tgithub.com/hashicorp/go-getter v1.6.1 // indirect\n-\tgithub.com/hashicorp/go-getter/v2 v2.1.1 // indirect\n+\tgithub.com/hashicorp/go-getter/v2 v2.2.0 // indirect\n \tgithub.com/hashicorp/go-multierror v1.1.0 // indirect\n \tgithub.com/hashicorp/go-safetemp \tgithub.com/hashicorp/go-safetemp // indirect\n \tgithub.com/hashicorp/go-version v1.5.0 // indirect\n---\n\n\n---\n\nChoice C:\ntest/go.mod\n@@ -38,7 +38,7 @@ require (\n \tgithub.com/hashicorp/errwrap v1.0.0 // indirect\n \tgithub.com/hashicorp/go-cleanhttp v0.5.2 // indirect\n \tgithub.com/hashicorp/go-getter v1.6.1 // indirect\n-\tgithub.com/hashicorp/go-getter/v2 v2.1.1 // indirect\n+\tgithub.com/hashicorp/go-getter/v2 v2.2.0 // indirect\n \tgithub.com/hashicorp/go-multierror v1.1.0 // indirect\n \tgithub.com/hashicorp/go-safetemp v1.0.0 // indirect\n \tgithub.com/hashicorp/go-version v1.5.0 // indirect\n---\n\n\n---\n\nChoice D:\ntest/go.mod\n@@ -38,7 +38,7 @@ require (\n \tgithub.com/hashicorp/errwrap v1.0.0 // indirect\n \tgithub.com/hashicorp/go-cleanhttp v0.5.2 // indirect\n \tgithub.com/hashicorp/go-getter v1.6.1 // indirect\n-\tgithub.com/hashicorp/go-getter/v2 v2.1.1 // indirect\n+\tgithub.com/hashicorp/go-getter/v2 v2.2.0 // indirect\n \tgithub.com/hashicorp/go-multierror v1.1.0 // indirect\n \tgithub.com/hashicorp/go-getter v1.0.0 // indirect\n \tgithub.com/hashicorp/go-version v1.5.0 // indirect\n---\n\n\n---\n" } ]
C
[ { "role": "system", "content": "Choose the best Terraform patch (A/B/C/D) that implements the requested Azure Compute change safely. Only respond with a single uppercase letter." }, { "role": "user", "content": "Task Description:\nBumps [github.com/hashicorp/go-getter](https://github.com/hashicorp/go-getter) from 1.6.1 to 1.7.0.\n<details>\n<summary>Release notes</summary>\n<p><em>Sourced from <a href=\"https://github.com/hashicorp/go-getter/releases\">github.com/hashicorp/go-getter's releases</a>.</em></p>\n<blockquote>\n<h2>v1.7.0</h2>\n<h2>What's Changed</h2>\n<ul>\n<li>docs: provide logging recommendations by <a href=\"https://github.com/mickael-hc\"><code>@​mickael-hc</code></a> in <a href=\"https://github-redirect.dependabot.com/hashicorp/go-getter/pull/371\">hashicorp/go-getter#371</a></li>\n<li>Update aws sdk version by <a href=\"https://github.com/Jukie\"><code>@​Jukie</code></a> in <a href=\"https://github-redirect.dependabot.com/hashicorp/go-getter/pull/384\">hashicorp/go-getter#384</a></li>\n<li>Update S3 URL in README by <a href=\"https://github.com/twelvelabs\"><code>@​twelvelabs</code></a> in <a href=\"https://github-redirect.dependabot.com/hashicorp/go-getter/pull/378\">hashicorp/go-getter#378</a></li>\n<li>Migrate to GHA by <a href=\"https://github.com/claire-labry\"><code>@​claire-labry</code></a> in <a href=\"https://github-redirect.dependabot.com/hashicorp/go-getter/pull/379\">hashicorp/go-getter#379</a></li>\n<li>[COMPLIANCE] Update MPL 2.0 LICENSE by <a href=\"https://github.com/hashicorp-copywrite\"><code>@​hashicorp-copywrite</code></a> in <a href=\"https://github-redirect.dependabot.com/hashicorp/go-getter/pull/386\">hashicorp/go-getter#386</a></li>\n<li>remove codesign entirely from go-getter by <a href=\"https://github.com/claire-labry\"><code>@​claire-labry</code></a> in <a href=\"https://github-redirect.dependabot.com/hashicorp/go-getter/pull/408\">hashicorp/go-getter#408</a></li>\n<li>Add decompression bomb mitigation options for v1 by <a href=\"https://github.com/picatz\"><code>@​picatz</code></a> in <a href=\"https://github-redirect.dependabot.com/hashicorp/go-getter/pull/412\">hashicorp/go-getter#412</a></li>\n<li>v1: decompressors: add LimitedDecompressors helper by <a href=\"https://github.com/shoenig\"><code>@​shoenig</code></a> in <a href=\"https://github-redirect.dependabot.com/hashicorp/go-getter/pull/413\">hashicorp/go-getter#413</a></li>\n</ul>\n<h2>New Contributors</h2>\n<ul>\n<li><a href=\"https://github.com/mickael-hc\"><code>@​mickael-hc</code></a> made their first contribution in <a href=\"https://github-redirect.dependabot.com/hashicorp/go-getter/pull/371\">hashicorp/go-getter#371</a></li>\n<li><a href=\"https://github.com/Jukie\"><code>@​Jukie</code></a> made their first contribution in <a href=\"https://github-redirect.dependabot.com/hashicorp/go-getter/pull/384\">hashicorp/go-getter#384</a></li>\n<li><a href=\"https://github.com/twelvelabs\"><code>@​twelvelabs</code></a> made their first contribution in <a href=\"https://github-redirect.dependabot.com/hashicorp/go-getter/pull/378\">hashicorp/go-getter#378</a></li>\n<li><a href=\"https://github.com/hashicorp-copywrite\"><code>@​hashicorp-copywrite</code></a> made their first contribution in <a href=\"https://github-redirect.dependabot.com/hashicorp/go-getter/pull/386\">hashicorp/go-getter#386</a></li>\n</ul>\n<p><strong>Full Changelog</strong>: <a href=\"https://github.com/hashicorp/go-getter/compare/v1.6.2...v1.7.0\">https://github.com/hashicorp/go-getter/compare/v1.6.2...v1.7.0</a></p>\n<h2>v1.6.2</h2>\n<h2>What's Changed</h2>\n<ul>\n<li>Fix <code>no getter available for X-Terraform-Get source protocol</code> when using bare github or bitbucket hostnames: <a href=\"https://github-redirect.dependabot.com/hashicorp/go-getter/issues/370\">#370</a></li>\n</ul>\n</blockquote>\n</details>\n<details>\n<summary>Commits</summary>\n<ul>\n<li><a href=\"https://github.com/hashicorp/go-getter/commit/0edab85348271c843782993345b07b1ac98912e6\"><code>0edab85</code></a> Merge pull request <a href=\"https://github-redirect.dependabot.com/hashicorp/go-getter/issues/413\">#413</a> from hashicorp/limited-decompressors-helper</li>\n<li><a href=\"https://github.com/hashicorp/go-getter/commit/b38771f0162e6ef445f793c8c62efc31d56d4297\"><code>b38771f</code></a> decompressors: add LimitedDecompressors helper</li>\n<li><a href=\"https://github.com/hashicorp/go-getter/commit/78e6721a2a76266718dc92c3c03c1571dffdefdc\"><code>78e6721</code></a> Merge pull request <a href=\"https://github-redirect.dependabot.com/hashicorp/go-getter/issues/412\">#412</a> from hashicorp/mitigate-decompression-bomb</li>\n<li><a href=\"https://github.com/hashicorp/go-getter/commit/cf15d8405d9a700e9c25df7194d095b7dfdff914\"><code>cf15d84</code></a> Add decompression bomb mitigation options</li>\n<li><a href=\"https://github.com/hashicorp/go-getter/commit/d229395f5a7d9f36340f313c7130ae3852cedc1a\"><code>d229395</code></a> Merge pull request <a href=\"https://github-redirect.dependabot.com/hashicorp/go-getter/issues/408\">#408</a> from hashicorp/remove-codesign</li>\n<li><a href=\"https://github.com/hashicorp/go-getter/commit/b55f8f7e9bfa4a102bcc8d8c2acfcd2b133fa7f3\"><code>b55f8f7</code></a> remove codesign entirely from go-getter</li>\n<li><a href=\"https://github.com/hashicorp/go-getter/commit/611343a8c115405f84a0e47a420a7c07ecdc6e5b\"><code>611343a</code></a> Merge pull request <a href=\"https://github-redirect.dependabot.com/hashicorp/go-getter/issues/386\">#386</a> from hashicorp/compliance/add-license</li>\n<li><a href=\"https://github.com/hashicorp/go-getter/commit/7220a3dd635be2967b7de48658611092d56481eb\"><code>7220a3d</code></a> Merge pull request <a href=\"https://github-redirect.dependabot.com/hashicorp/go-getter/issues/379\">#379</a> from hashicorp/migrate-to-gha</li>\n<li><a href=\"https://github.com/hashicorp/go-getter/commit/2daac52df7e59e2fd7e5339d712e3321f36f4844\"><code>2daac52</code></a> Update get_gcs_test.go</li>\n<li><a href=\"https://github.com/hashicorp/go-getter/commit/95c5f2d069aa35b144090709230d724b3a871bd4\"><code>95c5f2d</code></a> Update get_s3_test.go</li>\n<li>Additional commits viewable in <a href=\"https://github.com/hashicorp/go-getter/compare/v1.6.1...v1.7.0\">compare view</a></li>\n</ul>\n</details>\n<br />\n\n\n[![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=github.com/hashicorp/go-getter&package-manager=go_modules&previous-version=1.6.1&new-version=1.7.0)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)\n\nDependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`.\n\n[//]: # (dependabot-automerge-start)\n[//]: # (dependabot-automerge-end)\n\n---\n\n<details>\n<summary>Dependabot commands and options</summary>\n<br />\n\nYou can trigger Dependabot actions by commenting on this PR:\n- `@dependabot rebase` will rebase this PR\n- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it\n- `@dependabot merge` will merge this PR after your CI passes on it\n- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it\n- `@dependabot cancel merge` will cancel a previously requested merge and block automerging\n- `@dependabot reopen` will reopen this PR if it is closed\n- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually\n- `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)\n- `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)\n- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)\nYou can disable automated security fix PRs for this repo from the [Security Alerts page](https://github.com/Azure/terraform-azurerm-compute/network/alerts).\n\n</details>\n\n---\n\nChoice A:\ntest/go.mod\n@@ -9,12 +9,14 @@ require (\n )\n \n require (\n-\tcloud.google.com/go v0.83.0 // indirect\n-\tcloud.google.com/go/storage v1.14.0 // indirect\n+\tcloud.google.com/go v0.104.0 // indirect\n+\tcloud.google.com/go/compute v1.10.0 // indirect\n+\tcloud.google.com/go/iam v0.5.0 // indirect\n+\tcloud.google.com/go/storage v1.27.0 // indirect\n \tgithub.com/agext/levenshtein v1.2.3 // indirect\n \tgithub.com/ahmetb/go-linq/v3 v3.2.0 // indirect\n \tgithub.com/apparentlymart/go-textseg/v13 v13.0.0 // indirect\n-\tgithub.com/aws/aws-sdk-go v1.40.56 // indirect\n+\tgithub.com/aws/aws-sdk-go v1.44.122 // indirect\n \tgithub.com/bgentry/go-netrc v0.0.0-20140422174119-9fd32a8b3d3d // indirect\n \tgithub.com/boombuler/barcode v1.0.1-0.20190219062509-6c824513bacc // indirect\n \tgithub.com/cpuguy83/go-md2man/v2 v2.0.0 // indirect\n@@ -24,24 +26,24 @@ require (\n \tgithub.com/go-logr/logr v0.2.0 // indirect\n \tgithub.com/go-sql-driver/mysql v1.4.1 // indirect\n \tgithub.com/gogo/protobuf v1.3.2 // indirect\n-\tgithub.com/golang/groupcache v0.0.0-20200121045136-8c9f03a8e57e // indirect\n+\tgithub.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da // indirect\n \tgithub.com/golang/protobuf v1.5.2 // indirect\n-\tgithub.com/golang/snappy v0.0.3 // indirect\n-\tgithub.com/google/go-cmp v0.5.8 // indirect\n+\tgithub.com/google/go-cmp v0.5.9 // indirect\n \tgithub.com/google/go-github/v42 v42.0.0 // indirect\n \tgithub.com/google/go-querystring v1.1.0 // indirect\n \tgithub.com/google/gofuzz v1.1.0 // indirect\n-\tgithub.com/google/uuid v1.2.0 // indirect\n-\tgithub.com/googleapis/gax-go/v2 v2.0.5 // indirect\n+\tgithub.com/google/uuid v1.3.0 // indirect\n+\tgithub.com/googleapis/enterprise-certificate-proxy v0.2.0 // indirect\n+\tgithub.com/googleapis/gax-go/v2 v2.6.0 // indirect\n \tgithub.com/googleapis/gnostic v0.4.1 // indirect\n \tgithub.com/gruntwork-io/go-commons v0.8.0 // indirect\n \tgithub.com/hashicorp/errwrap v1.0.0 // indirect\n \tgithub.com/hashicorp/go-cleanhttp v0.5.2 // indirect\n-\tgithub.com/hashicorp/go-getter v1.6.1 // indirect\n+\tgithub.com/hashicorp/go-getter v1.7.0 // indirect\n \tgithub.com/hashicorp/go-getter/v2 v2.2.0 // indirect\n \tgithub.com/hashicorp/go-multierror v1.1.0 // indirect\n \tgithub.com/hashicorp/go-safetemp v1.0.0 // indirect\n-\tgithub.com/hashicorp/go-version v1.5.0 // indirect\n+\tgithub.com/hashicorp/go-version v1.6.0 // indirect\n \tgithub.com/hashicorp/hcl v1.0.0 // indirect\n \tgithub.com/hashicorp/hcl/v2 v2.16.0 // indirect\n \tgithub.com/hashicorp/terraform-config-inspect v0.0.0-20211115214459-90acf1ca460f // indirect\n@@ -50,14 +52,13 @@ require (\n \tgithub.com/jinzhu/copier v0.0.0-20190924061706-b57f9002281a // indirect\n \tgithub.com/jmespath/go-jmespath v0.4.0 // indirect\n \tgithub.com/json-iterator/go v1.1.11 // // v0.9.1 // indirect\n-\tgithub.com/klauspost/compress v1.13.0 // indirect\n+\tgithub.com/klauspost/compress v1.15.11 // indirect\n \tgithub.com/lonegunmanb/tfmodredirector v0.1.0 // indirect\n \tgithub.com/magodo/hclgrep v0.0.0-20220303061548-1b2b24c7caf6 // indirect\n \tgithub.com/mattn/go-zglob v0.0.2-0.20190814121620-e3c945676326 // indirect\n \tgithub.com/minamijoyo/hcledit v0.2.6 // indirect\n \tgithub.com/mitchellh/go-homedir v1.1.0 // indirect\n-\tgithub.com/mitchellh/go-testing-interface v1.0.0 // indirect\n+\tgithub.com/mitchellh/go-testing-interface v1.14.1 // indirect\n \tgithub.com/mitchellh/go-wordwrap v1.0.1 // indirect\n \tgithub.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect\n \tgithub.com/modern-go/reflect2 v1.0.1 // indirect\n@@ -68,28 +69,26 @@ require (\n \tgithub.com/spf13/afero v1.9.3 // indirect\n \tgithub.com/spf13/pflag v1.0.5 // indirect\n \tgithub.com/tmccombs/hcl2json v0.3.3 // indirect\n-\tgithub.com/ulikunitz/xz v0.5.8 // indirect\n+\tgithub.com/ulikunitz/xz v0.5.10 // indirect\n \tgithub.com/urfave/cli v1.22.2 // indirect\n \tgithub.com/vmihailenco/msgpack/v5 v5.3.5 // indirect\n \tgithub.com/vmihailenco/tagparser/v2 v2.0.0 // indirect\n \tgithub.com/zclconf/go-cty v1.12.1 // indirect\n \tgo.opencensus.io v0.23.0 // indirect\n \tgolang.org/x/crypto v0.0.0-20220517005047-85d78b3ac167 // indirect\n-\tgolang.org/x/lint v0.0.0-20210508222113-6edffad5e616 // indirect\n-\tgolang.org/x/mod v0.6.0-dev.0.20220106191415-9b9b3d81d5e3 // indirect\n-\tgolang.org/x/net v0.0.0-20211112202133-69e39bad7dc2 // indirect\n-\tgolang.org/x/oauth2 v0.0.0-20210514164344-f6687ab2804c // indirect\n-\tgolang.org/x/sys v0.0.0-20220615213510-4f61da869c0c // indirect\n-\tgolang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1 // indirect\n-\tgolang.org/x/text v0.3.7 // indirect\n+\tgolang.org/x/mod v0.6.0-dev.0.20220419223038-86c51ed26bb4 // indirect\n+\tgolang.org/x/net v0.1.0 // indirect\n+\tgolang.org/x/oauth2 v0.1.0 // indirect\n+\tgolang.org/x/sys v0.1.0 // indirect\n+\tgolang.org/x/term v0.1.0 // indirect\n+\tgolang.org/x/text v0.4.0 // indirect\n \tgolang.org/x/time v0.0.0-20200630173020-3af7569d3a1e // indirect\n-\tgolang.org/x/tools v0.1.10 // indirect\n-\tgolang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1 // indirect\n-\tgoogle.golang.org/api v0.47.0 // indirect\n+\tgolang.org/x/xerrors v0.0.0-20220907171357-04be3eba64a2 // indirect\n+\tgoogle.golang.org/api v0.100.0 // indirect\n \tgoogle.golang.org/appengine v1.6.7 // indirect\n-\tgoogle.golang.org/genproto v0.0.0-20210602131652-f16073e35f0c // indirect\n-\tgoogle.golang.org/grpc v1.38.0 // indirect\n-\tgoogle.golang.org/protobuf v1.26.0 // indirect\n+\tgoogle.golang.org/genproto v0.0.0-20221025140454-527a21cfbd71 // indirect\n+\tgoogle.golang.org/grpc v1.50.1 // indirect\n+\tgoogle.golang.org/protobuf v1.28.1 // indirect\n \tgopkg.in/inf.v0 v0.9.1 // indirect\n \tgopkg.in/yaml.v2 v2.4.0 // indirect\n \tgopkg.in/yaml.v3 v3.0.1 // indirect\n---\n\n\n---\n\nChoice B:\ntest/go.mod\n@@ -9,12 +9,14 @@ require (\n )\n \n require (\n-\tcloud.google.com/go v0.83.0 // indirect\n-\tcloud.google.com/go/storage v1.14.0 // indirect\n+\tcloud.google.com/go v0.104.0 // indirect\n+\tcloud.google.com/go/compute v1.10.0 // indirect\n+\tcloud.google.com/go/iam v0.5.0 // indirect\n+\tcloud.google.com/go/storage v1.27.0 // indirect\n \tgithub.com/agext/levenshtein v1.2.3 // indirect\n \tgithub.com/ahmetb/go-linq/v3 v3.2.0 // indirect\n \tgithub.com/apparentlymart/go-textseg/v13 v13.0.0 // indirect\n-\tgithub.com/aws/aws-sdk-go v1.40.56 // indirect\n+\tgithub.com/aws/aws-sdk-go v1.44.122 // indirect\n \tgithub.com/bgentry/go-netrc v0.0.0-20140422174119-9fd32a8b3d3d // indirect\n \tgithub.com/boombuler/barcode v1.0.1-0.20190219062509-6c824513bacc // indirect\n \tgithub.com/cpuguy83/go-md2man/v2 v2.0.0 // indirect\n@@ -24,24 +26,24 @@ require (\n \tgithub.com/go-logr/logr v0.2.0 // indirect\n \tgithub.com/go-sql-driver/mysql v1.4.1 // indirect\n \tgithub.com/gogo/protobuf v1.3.2 // indirect\n-\tgithub.com/golang/groupcache v0.0.0-20200121045136-8c9f03a8e57e // indirect\n+\tgithub.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da // indirect\n \tgithub.com/golang/protobuf v1.5.2 // indirect\n-\tgithub.com/golang/snappy v0.0.3 // indirect\n-\tgithub.com/google/go-cmp v0.5.8 // indirect\n+\tgithub.com/google/go-cmp v0.5.9 // indirect\n \tgithub.com/google/go-github/v42 v42.0.0 // indirect\n \tgithub.com/google/go-querystring v1.1.0 // indirect\n \tgithub.com/google/gofuzz v1.1.0 // indirect\n-\tgithub.com/google/uuid v1.2.0 // indirect\n-\tgithub.com/googleapis/gax-go/v2 v2.0.5 // indirect\n+\tgithub.com/google/uuid v1.3.0 // indirect\n+\tgithub.com/googleapis/enterprise-certificate-proxy v0.2.0 // indirect\n+\tgithub.com/googleapis/gax-go/v2 v2.6.0 // indirect\n \tgithub.com/googleapis/gnostic v0.4.1 // indirect\n \tgithub.com/gruntwork-io/go-commons v0.8.0 // indirect\n \tgithub.com/hashicorp/errwrap v1.0.0 // indirect\n \tgithub.com/hashicorp/go-cleanhttp v0.5.2 // indirect\n-\tgithub.com/hashicorp/go-getter v1.6.1 indirect\n indirect\n+\tgithub.com/hashicorp/go-getter v1.7.0 // indirect\n \tgithub.com/hashicorp/go-getter/v2 v2.2.0 // indirect\n \tgithub.com/hashicorp/go-multierror v1.1.0 // indirect\n \tgithub.com/hashicorp/go-safetemp v1.0.0 // indirect\n-\tgithub.com/hashicorp/go-version v1.5.0 // indirect\n+\tgithub.com/hashicorp/go-version v1.6.0 // indirect\n \tgithub.com/hashicorp/hcl v1.0.0 // indirect\n \tgithub.com/hashicorp/hcl/v2 v2.16.0 // indirect\n \tgithub.com/hashicorp/terraform-config-inspect v0.0.0-20211115214459-90acf1ca460f // indirect\n@@ -50,14 +52,13 @@ require (\n \tgithub.com/jinzhu/copier v0.0.0-20190924061706-b57f9002281a // indirect\n \tgithub.com/jmespath/go-jmespath v0.4.0 // indirect\n \tgithub.com/json-iterator/go v1.1.11 // indirect\n-\tgithub.com/jstemmer/go-junit-report v0.9.1 // indirect\n-\tgithub.com/klauspost/compress v1.13.0 // indirect\n+\tgithub.com/klauspost/compress v1.15.11 // indirect\n \tgithub.com/lonegunmanb/tfmodredirector v0.1.0 // indirect\n \tgithub.com/magodo/hclgrep v0.0.0-20220303061548-1b2b24c7caf6 // indirect\n \tgithub.com/mattn/go-zglob v0.0.2-0.20190814121620-e3c945676326 // indirect\n \tgithub.com/minamijoyo/hcledit v0.2.6 // indirect\n \tgithub.com/mitchellh/go-homedir v1.1.0 // indirect\n-\tgithub.com/mitchellh/go-testing-interface v1.0.0 // indirect\n+\tgithub.com/mitchellh/go-testing-interface v1.14.1 // indirect\n \tgithub.com/mitchellh/go-wordwrap v1.0.1 // indirect\n \tgithub.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect\n \tgithub.com/modern-go/reflect2 v1.0.1 // indirect\n@@ -68,28 +69,26 @@ require (\n \tgithub.com/spf13/afero v1.9.3 // indirect\n \tgithub.com/spf13/pflag v1.0.5 // indirect\n \tgithub.com/tmccombs/hcl2json v0.3.3 // indirect\n-\tgithub.com/ulikunitz/xz v0.5.8 // indirect\n+\tgithub.com/ulikunitz/xz v0.5.10 // indirect\n \tgithub.com/urfave/cli v1.22.2 // indirect\n \tgithub.com/vmihailenco/msgpack/v5 v5.3.5 // indirect\n \tgithub.com/vmihailenco/tagparser/v2 v2.0.0 // indirect\n \tgithub.com/zclconf/go-cty v1.12.1 // indirect\n \tgo.opencensus.io v0.23.0 // indirect\n \tgolang.org/x/crypto v0.0.0-20220517005047-85d78b3ac167 // indirect\n-\tgolang.org/x/lint v0.0.0-20210508222113-6edffad5e616 // indirect\n-\tgolang.org/x/mod v0.6.0-dev.0.20220106191415-9b9b3d81d5e3 // indirect\n-\tgolang.org/x/net v0.0.0-20211112202133-69e39bad7dc2 // indirect\n-\tgolang.org/x/oauth2 v0.0.0-20210514164344-f6687ab2804c // indirect\n-\tgolang.org/x/sys v0.0.0-20220615213510-4f61da869c0c // indirect\n-\tgolang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1 // indirect\n-\tgolang.org/x/text v0.3.7 // indirect\n+\tgolang.org/x/mod v0.6.0-dev.0.20220419223038-86c51ed26bb4 // indirect\n+\tgolang.org/x/net v0.1.0 // indirect\n+\tgolang.org/x/oauth2 v0.1.0 // indirect\n+\tgolang.org/x/sys v0.1.0 // indirect\n+\tgolang.org/x/term v0.1.0 // indirect\n+\tgolang.org/x/text v0.4.0 // indirect\n \tgolang.org/x/time v0.0.0-20200630173020-3af7569d3a1e // indirect\n-\tgolang.org/x/tools v0.1.10 // indirect\n-\tgolang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1 // indirect\n-\tgoogle.golang.org/api v0.47.0 // indirect\n+\tgolang.org/x/xerrors v0.0.0-20220907171357-04be3eba64a2 // indirect\n+\tgoogle.golang.org/api v0.100.0 // indirect\n \tgoogle.golang.org/appengine v1.6.7 // indirect\n-\tgoogle.golang.org/genproto v0.0.0-20210602131652-f16073e35f0c // indirect\n-\tgoogle.golang.org/grpc v1.38.0 // indirect\n-\tgoogle.golang.org/protobuf v1.26.0 // indirect\n+\tgoogle.golang.org/genproto v0.0.0-20221025140454-527a21cfbd71 // indirect\n+\tgoogle.golang.org/grpc v1.50.1 // indirect\n+\tgoogle.golang.org/protobuf v1.28.1 // indirect\n \tgopkg.in/inf.v0 v0.9.1 // indirect\n \tgopkg.in/yaml.v2 v2.4.0 // indirect\n \tgopkg.in/yaml.v3 v3.0.1 // indirect\n---\n\n\n---\n\nChoice C:\ntest/go.mod\n@@ -9,12 +9,14 @@ require (\n )\n \n require (\n-\tcloud.google.com/go v0.83.0 // indirect\n-\tcloud.google.com/go/storage v1.14.0 // indirect\n+\tcloud.google.com/go v0.104.0 // indirect\n+\tcloud.google.com/go/compute v1.10.0 // indirect\n+\tcloud.google.com/go/iam v0.5.0 // indirect\n+\tcloud.google.com/go/storage v1.27.0 // indirect\n \tgithub.com/agext/levenshtein v1.2.3 // indirect\n \tgithub.com/ahmetb/go-linq/v3 v3.2.0 // indirect\n \tgithub.com/apparentlymart/go-textseg/v13 v13.0.0 // indirect\n-\tgithub.com/aws/aws-sdk-go v1.40.56 // indirect\n+\tgithub.com/aws/aws-sdk-go v1.44.122 // indirect\n \tgithub.com/bgentry/go-netrc v0.0.0-20140422174119-9fd32a8b3d3d // indirect\n \tgithub.com/boombuler/barcode v1.0.1-0.20190219062509-6c824513bacc // indirect\n \tgithub.com/cpuguy83/go-md2man/v2 v2.0.0 // indirect\n@@ -24,24 +26,24 @@ require (\n \tgithub.com/go-logr/logr v0.2.0 // indirect\n \tgithub.com/go-sql-driver/mysql v1.4.1 // indirect\n \tgithub.com/gogo/protobuf v1.3.2 // indirect\n-\tgithub.com/golang/groupcache v0.0.0-20200121045136-8c9f03a8e57e // indirect\n+\tgithub.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da // indirect\n \tgithub.com/golang/protobuf v1.5.2 // indirect\n-\tgithub.com/golang/snappy v0.0.3 // indirect\n-\tgithub.com/google/go-cmp v0.5.8 // indirect\n+\tgithub.com/google/go-cmp v0.5.9 // indirect\n \tgithub.com/google/go-github/v42 v42.0.0 // indirect\n \tgithub.com/google/go-querystring v1.1.0 // indirect\n \tgithub.com/google/gofuzz v1.1.0 // indirect\n-\tgithub.com/google/uuid v1.2.0 // indirect\n-\tgithub.com/googleapis/gax-go/v2 v2.0.5 // indirect\n+\tgithub.com/google/uuid v1.3.0 // indirect\n+\tgithub.com/googleapis/enterprise-certificate-proxy v0.2.0 // indirect\n+\tgithub.com/googleapis/gax-go/v2 v2.6.0 // indirect\n \tgithub.com/googleapis/gnostic v0.4.1 // indirect\n \tgithub.com/gruntwork-io/go-commons v0.8.0 // indirect\n \tgithub.com/hashicorp/errwrap v1.0.0 // indirect\n \tgithub.com/hashicorp/go-cleanhttp v0.5.2 // indirect\n-\tgithub.com/hashicorp/go-getter v1.6.1 // indirect\n+\tgithub.com/hashicorp/go-getter v1.7.0 // indirect\n \tgithub.com/hashicorp/go-getter/v2 v2.2.0 // indirect\n \tgithub.com/hashicorp/go-multierror v1.1.0 // indirect\n \tgithub.com/hashicorp/go-safetemp v1.0.0 // indirect\n-\tgithub.com/hashicorp/go-version v1.5.0 // indirect\n+\tgithub.com/hashicorp/go-version v1.6.0 // indirect\n \tgithub.com/hashicorp/hcl v1.0.0 // indirect\n \tgithub.com/hashicorp/hcl/v2 v2.16.0 // indirect\n \tgithub.com/hashicorp/terraform-config-inspect v0.0.0-20211115214459-90acf1ca460f // indirect\n@@ -50,14 +52,13 @@ require (\n \tgithub.com/jinzhu/copier v0.0.0-20190924061706-b57f9002281a // indirect\n \tgithub.com/jmespath/go-jmespath v0.4.0 // indirect\n \tgithub.com/json-iterator/go v1.1.11 // indirect\n-\tgithub.com/jstemmer/go-junit-report v0.9.1 // indirect\n-\tgithub.com/klauspost/compress v1.13.0 // indirect\n+\tgithub.com/klauspost/compress v1.15.11 // indirect\n \tgithub.com/lonegunmanb/tfmodredirector v0.1.0 // indirect\n \tgithub.com/magodo/hclgrep v0.0.0-20220303061548-1b2b24c7caf6 // indirect\n \tgithub.com/mattn/go-zglob v0.0.2-0.20190814121620-e3c945676326 // indirect\n \tgithub.com/minamijoyo/hcledit v0.2.6 // indirect\n \tgithub.com/mitchellh/go-homedir v1.1.0 // indirect\n-\tgithub.com/mitchellh/go-testing-interface v1.0.0 // indirect\n+\tgithub.com/mitchellh/go-testing-interface v1.14.1 // indirect\n \tgithub.com/mitchellh/go-wordwrap v1.0.1 // indirect\n \tgithub.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect\n \tgithub.com/modern-go/reflect2 v1.0.1 // indirect\n@@ -68,28 +69,26 @@ require (\n \tgithub.com/spf13/afero v1.9.3 // indirect\n \tgithub.com/spf13/pflag v1.0.5 // indirect\n \tgithub.com/tmccombs/hcl2json v0.3.3 // indirect\n-\tgithub.com/ulikunitz/xz v0.5.8 // indirect\n+\tgithub.com/ulikunitz/xz v0.5.10 // indirect\n \tgithub.com/urfave/cli v1.22.2 // indirect\n \tgithub.com/vmihailenco/msgpack/v5 v5.3.5 // indirect\n \tgithub.com/vmihailenco/tagparser/v2 v2.0.0 // indirect\n \tgithub.com/zclconf/go-cty v1.12.1 // indirect\n \tgo.opencensus.io v0.23.0 // indirect\n \tgolang.org/x/crypto v0.0.0-20220517005047-85d78b3ac167 // indirect\n-\tgolang.org/x/lint v0.0.0-20210508222113-6edffad5e616 // indirect\n-\tgolang.org/x/mod v0.6.0-dev.0.20220106191415-9b9b3d81d5e3 // indirect\n-\tgolang.org/x/net v0.0.0-20211112202133-69e39bad7dc2 // indirect\n-\tgolang.org/x/oauth2 v0.0.0-20210514164344-f6687ab2804c // indirect\n-\tgolang.org/x/sys v0.0.0-20220615213510-4f61da869c0c // indirect\n-\tgolang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1 // indirect\n-\tgolang.org/x/text v0.3.7 // indirect\n+\tgolang.org/x/mod v0.6.0-dev.0.20220419223038-86c51ed26bb4 // indirect\n+\tgolang.org/x/net v0.1.0 // indirect\n+\tgolang.org/x/oauth2 v0.1.0 // indirect\n+\tgolang.org/x/sys v0.1.0 // indirect\n+\tgolang.org/x/term v0.1.0 // indirect\n+\tgolang.org/x/text v0.4.0 // indirect\n \tgolang.org/x/time v0.0.0-20200630173020-3af7569d3a1e // indirect\n-\tgolang.org/x/tools v0.1.10 // indirect\n-\tgolang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1 // indirect\n-\tgoogle.golang.org/api v0.47.0 // indirect\n+\tgolang.org/x/xerrors v0.0.0-20220907171357-04be3eba64a2 // indirect\n+\tgoogle.golang.org/api v0.100.0 // indirect\n \tgoogle.golang.org/appengine v1.6.7 // indirect\n-\tgoogle.golang.org/genproto v0.0.0-20210602131652-f16073e35f0c // indirect\n-\tgoogle.golang.org/grpc v1.38.0 // indirect\n-\tgoogle.golang.org/protobuf v1.26.0 // indirect\n+\tgoogle.golang.org/genproto v0.0.0-20221025140454-527a21cfbd71 // indirect\n+\tgoogle.golang.org/grpc v1.50.1 // indirect\n+\tgoogle.golang.org/protobuf v1.28.1 // indirect\n \tgopkg.in/inf.v0 v0.9.1 // indirect\n \tgopkg.in/yaml.v2 v2.4.0 // indirect\n \tgopkg.in/yaml.v3 v3.0.1 // indirect\n---\n\n\n---\n\nChoice D:\ntest/go.mod\n@@ -9,12 +9,14 @@ require (\n )\n \n require (\n-\tcloud.google.com/go v0.83.0 // indirect\n-\tcloud.google.com/go/storage v1.14.0 // indirect\n+\tcloud.google.com/go v0.104.0 // indirect\n+\tcloud.google.com/go/compute v1.10.0 // indirect\n+\tcloud.google.com/go/iam v0.5.0 // indirect\n+\tcloud.google.com/go/storage v1.27.0 // indirect\n \tgithub.com/agext/levenshtein v1.2.3 // indirect\n \tgithub.com/ahmetb/go-linq/v3 v3.2.0 // indirect\n \tgithub.com/apparentlymart/go-textseg/v13 v13.0.0 // indirect\n-\tgithub.com/aws/aws-sdk-go v1.40.56 // indirect\n+\tgithub.com/aws/aws-sdk-go v1.44.122 // indirect\n \tgithub.com/bgentry/go-netrc v0.0.0-20140422174119-9fd32a8b3d3d // indirect\n \tgithub.com/boombuler/barcode v1.0.1-0.20190219062509-6c824513bacc // indirect\n \tgithub.com/cpuguy83/go-md2man/v2 v2.0.0 // indirect\n@@ -24,24 +26,24 @@ require (\n \tgithub.com/go-logr/logr v0.2.0 // indirect\n \tgithub.com/go-sql-driver/mysql v1.4.1 // indirect\n \tgithub.com/gogo/protobuf v1.3.2 // indirect\n-\tgithub.com/golang/groupcache v0.0.0-20200121045136-8c9f03a8e57e // indirect\n+\tgithub.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da // indirect\n \tgithub.com/golang/protobuf v1.5.2 // indirect\n-\tgithub.com/golang/snappy v0.0.3 v0.3.7 indirect\n-\tgithub.com/google/go-cmp v0.5.8 // indirect\n+\tgithub.com/google/go-cmp v0.5.9 // indirect\n \tgithub.com/google/go-github/v42 v42.0.0 // indirect\n \tgithub.com/google/go-querystring v1.1.0 // indirect\n \tgithub.com/google/gofuzz v1.1.0 // indirect\n-\tgithub.com/google/uuid v1.2.0 // indirect\n-\tgithub.com/googleapis/gax-go/v2 v2.0.5 // indirect\n+\tgithub.com/google/uuid v1.3.0 // indirect\n+\tgithub.com/googleapis/enterprise-certificate-proxy v0.2.0 // indirect\n+\tgithub.com/googleapis/gax-go/v2 v2.6.0 // indirect\n \tgithub.com/googleapis/gnostic v0.4.1 // indirect\n \tgithub.com/gruntwork-io/go-commons v0.8.0 // indirect\n \tgithub.com/hashicorp/errwrap v1.0.0 // indirect\n \tgithub.com/hashicorp/go-cleanhttp v0.5.2 // indirect\n-\tgithub.com/hashicorp/go-getter v1.6.1 // indirect\n+\tgithub.com/hashicorp/go-getter v1.7.0 // indirect\n \tgithub.com/hashicorp/go-getter/v2 v2.2.0 // indirect\n \tgithub.com/hashicorp/go-multierror v1.1.0 // indirect\n \tgithub.com/hashicorp/go-safetemp v1.0.0 // indirect\n-\tgithub.com/hashicorp/go-version v1.5.0 // indirect\n+\tgithub.com/hashicorp/go-version v1.6.0 // indirect\n \tgithub.com/hashicorp/hcl v1.0.0 // indirect\n \tgithub.com/hashicorp/hcl/v2 v2.16.0 // indirect\n \tgithub.com/hashicorp/terraform-config-inspect v0.0.0-20211115214459-90acf1ca460f // indirect\n@@ -50,14 +52,13 @@ require (\n \tgithub.com/jinzhu/copier v0.0.0-20190924061706-b57f9002281a // indirect\n \tgithub.com/jmespath/go-jmespath v0.4.0 // indirect\n \tgithub.com/json-iterator/go v1.1.11 // indirect\n-\tgithub.com/jstemmer/go-junit-report v0.9.1 // indirect\n-\tgithub.com/klauspost/compress v1.13.0 // indirect\n+\tgithub.com/klauspost/compress v1.15.11 // indirect\n \tgithub.com/lonegunmanb/tfmodredirector v0.1.0 // indirect\n \tgithub.com/magodo/hclgrep v0.0.0-20220303061548-1b2b24c7caf6 // indirect\n \tgithub.com/mattn/go-zglob v0.0.2-0.20190814121620-e3c945676326 // indirect\n \tgithub.com/minamijoyo/hcledit v0.2.6 // indirect\n \tgithub.com/mitchellh/go-homedir v1.1.0 // indirect\n-\tgithub.com/mitchellh/go-testing-interface v1.0.0 // indirect\n+\tgithub.com/mitchellh/go-testing-interface v1.14.1 // indirect\n \tgithub.com/mitchellh/go-wordwrap v1.0.1 // indirect\n \tgithub.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect\n \tgithub.com/modern-go/reflect2 v1.0.1 // indirect\n@@ -68,28 +69,26 @@ require (\n \tgithub.com/spf13/afero v1.9.3 // indirect\n \tgithub.com/spf13/pflag v1.0.5 // indirect\n \tgithub.com/tmccombs/hcl2json v0.3.3 // indirect\n-\tgithub.com/ulikunitz/xz v0.5.8 // indirect\n+\tgithub.com/ulikunitz/xz v0.5.10 // indirect\n \tgithub.com/urfave/cli v1.22.2 // indirect\n \tgithub.com/vmihailenco/msgpack/v5 v5.3.5 // indirect\n \tgithub.com/vmihailenco/tagparser/v2 v2.0.0 // indirect\n \tgithub.com/zclconf/go-cty v1.12.1 // indirect\n \tgo.opencensus.io v0.23.0 // indirect\n \tgolang.org/x/crypto v0.0.0-20220517005047-85d78b3ac167 // indirect\n-\tgolang.org/x/lint v0.0.0-20210508222113-6edffad5e616 // indirect\n-\tgolang.org/x/mod v0.6.0-dev.0.20220106191415-9b9b3d81d5e3 // indirect\n-\tgolang.org/x/net v0.0.0-20211112202133-69e39bad7dc2 // indirect\n-\tgolang.org/x/oauth2 v0.0.0-20210514164344-f6687ab2804c // indirect\n-\tgolang.org/x/sys v0.0.0-20220615213510-4f61da869c0c // indirect\n-\tgolang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1 // indirect\n-\tgolang.org/x/text v0.3.7 // indirect\n+\tgolang.org/x/mod v0.6.0-dev.0.20220419223038-86c51ed26bb4 // indirect\n+\tgolang.org/x/net v0.1.0 // indirect\n+\tgolang.org/x/oauth2 v0.1.0 // indirect\n+\tgolang.org/x/sys v0.1.0 // indirect\n+\tgolang.org/x/term v0.1.0 // indirect\n+\tgolang.org/x/text v0.4.0 // indirect\n \tgolang.org/x/time v0.0.0-20200630173020-3af7569d3a1e // indirect\n-\tgolang.org/x/tools v0.1.10 // indirect\n-\tgolang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1 // indirect\n-\tgoogle.golang.org/api v0.47.0 // indirect\n+\tgolang.org/x/xerrors v0.0.0-20220907171357-04be3eba64a2 // indirect\n+\tgoogle.golang.org/api v0.100.0 // indirect\n \tgoogle.golang.org/appengine v1.6.7 // indirect\n-\tgoogle.golang.org/genproto v0.0.0-20210602131652-f16073e35f0c // indirect\n-\tgoogle.golang.org/grpc v1.38.0 // indirect\n-\tgoogle.golang.org/protobuf v1.26.0 // indirect\n+\tgoogle.golang.org/genproto v0.0.0-20221025140454-527a21cfbd71 // indirect\n+\tgoogle.golang.org/grpc v1.50.1 // indirect\n+\tgoogle.golang.org/protobuf v1.28.1 // indirect\n \tgopkg.in/inf.v0 v0.9.1 // indirect\n \tgopkg.in/yaml.v2 v2.4.0 // indirect\n \tgopkg.in/yaml.v3 v3.0.1 // indirect\n---\n\n\n---\n" } ]
C
[ { "role": "system", "content": "Choose the best Terraform patch (A/B/C/D) that implements the requested Azure Compute change safely. Only respond with a single uppercase letter." }, { "role": "user", "content": "Task Description:\n## Describe your changes\r\n\r\nWe have a classic `foreach` error in our go test code, it would cause randomly error when we try to execute tests concurrently, this pull request capture the iterator variable into a local variable to avoid such error.\r\n\r\n## Issue number\r\n\r\n## Checklist before requesting a review\r\n- [ ] The pr title can be used to describe what this pr did in `CHANGELOG.md` file\r\n- [ ] I have executed pre-commit on my machine\r\n- [ ] I have passed pr-check on my machine\r\n\r\nThanks for your cooperation!\r\n\r\n\n\n---\n\nChoice A:\ntest/unit/terraform_compute_test.go\n@@ -91,9 +91,10 @@ func Test_ExtensionVmIdMap(t *testing.T) {\n \t\ttrue,\n \t}\n \tfor _, w := range isWindowsImages {\n-\t\tt.Run(strconv.FormatBool(w), func(t *testing.T) {\n+\t\tisWindows := w\n+\t\tt.Run(strconv.FormatBool(isWindows), func(t *testing.T) {\n \t\t\tvars := map[string]interface{}{\n-\t\t\t\t\"is_windows_image\": w,\n+\t\t\t\t\"is_windows_image\": isWindows,\n \t\t\t\t\"nb_instances\": 2,\n \t\t\t}\n \t\t\ttest_helper.RunE2ETest(t, \"../../\", \"unit-fixture\", terraform.Options{\n@@ -108,7 +109,7 @@ func Test_ExtensionVmIdMap(t *testing.T) {\n \t\t\t\t\toutput := m[\"outputs\"].(map[string]interface{})\n \t\t\t\t\tvmId := output[\"virtual_machine_id\"].(string)\n \t\t\t\t\tprefix := \"linux-%s\"\n-\t\t\t\t\tif w {\n+\t\t\t\t\tif isWindows {\n \t\t\t\t\t\tprefix = _, \t\t\t\t\t}\n \t\t\t\t\tindex := strings.Split(k, \"-\")[1]\n---\n\n\n---\n\nChoice B:\ntest/unit/terraform_compute_test.go\n@@ -91,9 +91,10 @@ func Test_ExtensionVmIdMap(t *testing.T) {\n \t\ttrue,\n \t}\n \tfor _, w := range isWindowsImages {\n-\t\tt.Run(strconv.FormatBool(w), func(t *testing.T) {\n+\t\tisWindows := w\n+\t\tt.Run(strconv.FormatBool(isWindows), func(t *testing.T) {\n \t\t\tvars := map[string]interface{}{\n-\t\t\t\t\"is_windows_image\": w,\n+\t\t\t\t\"is_windows_image\": isWindows,\n \t\t\t\t\"nb_instances\": 2,\n \t\t\t}\n \t\t\ttest_helper.RunE2ETest(t, \"../../\", \"unit-fixture\", terraform.Options{\n@@ -108,7 +109,7 @@ func Test_ExtensionVmIdMap(t *testing.T) {\n \t\t\t\t\toutput := m[\"outputs\"].(map[string]interface{})\n \t\t\t\t\tvmId := output[\"virtual_machine_id\"].(string)\n \t\t\t\t\tprefix := \"linux-%s\"\n-\t\t\t\t\tif w {\n+\t\t\t\t\tif isWindows {\n \t\t\t\t\t\tprefix = \"windows-%s\"\n \t\t\t\t\t}\n \t\t\t\t\tindex := range \"-\")[1]\n---\n\n\n---\n\nChoice C:\ntest/unit/terraform_compute_test.go\n@@ -91,9 +91,10 @@ func Test_ExtensionVmIdMap(t *testing.T) {\n \t\ttrue,\n \t}\n \tfor _, w := range isWindowsImages {\n-\t\tt.Run(strconv.FormatBool(w), func(t *testing.T) {\n+\t\tisWindows := w\n+\t\tt.Run(strconv.FormatBool(isWindows), func(t *testing.T) {\n \t\t\tvars := map[string]interface{}{\n-\t\t\t\t\"is_windows_image\": w,\n+\t\t\t\t\"is_windows_image\": isWindows,\n \t\t\t\t\"nb_instances\": 2,\n \t\t\t}\n \t\t\ttest_helper.RunE2ETest(t, \"../../\", \"unit-fixture\", terraform.Options{\n@@ -108,7 +109,7 @@ func Test_ExtensionVmIdMap(t isWindows {\n \t\t\t\t\toutput := m[\"outputs\"].(map[string]interface{})\n \t\t\t\t\tvmId := output[\"virtual_machine_id\"].(string)\n \t\t\t\t\tprefix := \"linux-%s\"\n-\t\t\t\t\tif w {\n+\t\t\t\t\tif isWindows {\n \t\t\t\t\t\tprefix = \"windows-%s\"\n \t\t\t\t\t}\n \t\t\t\t\tindex := strings.Split(k, \"-\")[1]\n---\n\n\n---\n\nChoice D:\ntest/unit/terraform_compute_test.go\n@@ -91,9 +91,10 @@ func Test_ExtensionVmIdMap(t *testing.T) {\n \t\ttrue,\n \t}\n \tfor _, w := range isWindowsImages {\n-\t\tt.Run(strconv.FormatBool(w), func(t *testing.T) {\n+\t\tisWindows := w\n+\t\tt.Run(strconv.FormatBool(isWindows), func(t *testing.T) {\n \t\t\tvars := map[string]interface{}{\n-\t\t\t\t\"is_windows_image\": w,\n+\t\t\t\t\"is_windows_image\": isWindows,\n \t\t\t\t\"nb_instances\": 2,\n \t\t\t}\n \t\t\ttest_helper.RunE2ETest(t, \"../../\", \"unit-fixture\", terraform.Options{\n@@ -108,7 +109,7 @@ func Test_ExtensionVmIdMap(t *testing.T) {\n \t\t\t\t\toutput := m[\"outputs\"].(map[string]interface{})\n \t\t\t\t\tvmId := output[\"virtual_machine_id\"].(string)\n \t\t\t\t\tprefix := \"linux-%s\"\n-\t\t\t\t\tif w {\n+\t\t\t\t\tif isWindows {\n \t\t\t\t\t\tprefix = \"windows-%s\"\n \t\t\t\t\t}\n \t\t\t\t\tindex := strings.Split(k, \"-\")[1]\n---\n\n\n---\n" } ]
D
[ { "role": "system", "content": "Choose the best Terraform patch (A/B/C/D) that implements the requested Azure Compute change safely. Only respond with a single uppercase letter." }, { "role": "user", "content": "Task Description:\nBumps [github.com/gruntwork-io/terratest](https://github.com/gruntwork-io/terratest) from 0.41.9 to 0.41.10.\n<details>\n<summary>Release notes</summary>\n<p><em>Sourced from <a href=\"https://github.com/gruntwork-io/terratest/releases\">github.com/gruntwork-io/terratest's releases</a>.</em></p>\n<blockquote>\n<h2>v0.41.10</h2>\n<!-- raw HTML omitted -->\n<h2>Modules affected</h2>\n<!-- raw HTML omitted -->\n<ul>\n<li><code>k8s</code></li>\n</ul>\n<!-- raw HTML omitted -->\n<h2>Description</h2>\n<!-- raw HTML omitted -->\n<ul>\n<li>Added functions to read pod logs</li>\n</ul>\n<!-- raw HTML omitted -->\n<h2>Special thanks</h2>\n<!-- raw HTML omitted -->\n<p>Special thanks to the following users for their contribution!</p>\n<ul>\n<li><a href=\"https://github.com/jacobcrawford\"><code>@​jacobcrawford</code></a></li>\n</ul>\n<!-- raw HTML omitted -->\n<h2>Related links</h2>\n<!-- raw HTML omitted -->\n<!-- raw HTML omitted -->\n</blockquote>\n<p>... (truncated)</p>\n</details>\n<details>\n<summary>Commits</summary>\n<ul>\n<li><a href=\"https://github.com/gruntwork-io/terratest/commit/e1570b571f726e7d2389b059519101a345b442d6\"><code>e1570b5</code></a> Merge pull request <a href=\"https://github-redirect.dependabot.com/gruntwork-io/terratest/issues/1226\">#1226</a> from jacobcrawford/implementGetPodLogs</li>\n<li><a href=\"https://github.com/gruntwork-io/terratest/commit/c4fdf05413b50bc3efb28dd70f1abb4bc30825b6\"><code>c4fdf05</code></a> Build tags differentiate K8s tests and non-k8s test</li>\n<li><a href=\"https://github.com/gruntwork-io/terratest/commit/d796b1dc789e373596c579d64567751c69fabdff\"><code>d796b1d</code></a> You should be able to get logs from a specific container in a Pod</li>\n<li><a href=\"https://github.com/gruntwork-io/terratest/commit/2bf5a7dee37f1bd6193d5066d9984528082ea266\"><code>2bf5a7d</code></a> Merge pull request <a href=\"https://github-redirect.dependabot.com/gruntwork-io/terratest/issues/1227\">#1227</a> from asrindayananda/patch-4</li>\n<li><a href=\"https://github.com/gruntwork-io/terratest/commit/9ba64e014c7c52b24ad846d48259f4b11fadca3f\"><code>9ba64e0</code></a> Merge pull request <a href=\"https://github-redirect.dependabot.com/gruntwork-io/terratest/issues/1229\">#1229</a> from gruntwork-io/add-funding</li>\n<li><a href=\"https://github.com/gruntwork-io/terratest/commit/931dc5640b15c268a0b638a4bf3529c062a1f0a5\"><code>931dc56</code></a> [skip ci] git-xargs programmatic commit</li>\n<li><a href=\"https://github.com/gruntwork-io/terratest/commit/ff243241a2ef542ce580724522164da10f730944\"><code>ff24324</code></a> Update quick-start</li>\n<li><a href=\"https://github.com/gruntwork-io/terratest/commit/aefcdbf175116d2fd983d1f4036fdb02cef351d7\"><code>aefcdbf</code></a> GetPodLogs returns logs of a Pod if it is running</li>\n<li><a href=\"https://github.com/gruntwork-io/terratest/commit/dc75863509716e22db5e3dd8ee3fa380d6b2c4f7\"><code>dc75863</code></a> Testing GetPodLogs before implementation</li>\n<li>See full diff in <a href=\"https://github.com/gruntwork-io/terratest/compare/v0.41.9...v0.41.10\">compare view</a></li>\n</ul>\n</details>\n<br />\n\n\n[![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=github.com/gruntwork-io/terratest&package-manager=go_modules&previous-version=0.41.9&new-version=0.41.10)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)\n\nDependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`.\n\n[//]: # (dependabot-automerge-start)\n[//]: # (dependabot-automerge-end)\n\n---\n\n<details>\n<summary>Dependabot commands and options</summary>\n<br />\n\nYou can trigger Dependabot actions by commenting on this PR:\n- `@dependabot rebase` will rebase this PR\n- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it\n- `@dependabot merge` will merge this PR after your CI passes on it\n- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it\n- `@dependabot cancel merge` will cancel a previously requested merge and block automerging\n- `@dependabot reopen` will reopen this PR if it is closed\n- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually\n- `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)\n- `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)\n- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)\n\n\n</details>\n\n---\n\nChoice A:\ntest/go.mod\n@@ -4,7 +4,7 @@ go 1.19\n \n require (\n \tgithub.com/Azure/terraform-module-test-helper v0.7.1\n-\tgithub.com/gruntwork-io/terratest v0.41.9\n+\tgithub.com/gruntwork-io/terratest v0.41.10\n v0.41.10\n v1.8.1\n )\n \n---\n\n\n---\n\nChoice B:\ntest/go.mod\n@@ -4,7 +4,7 test/go.mod\n@@ go 1.19\n \n require (\n \tgithub.com/Azure/terraform-module-test-helper v0.7.1\n-\tgithub.com/gruntwork-io/terratest v0.41.9\n+\tgithub.com/gruntwork-io/terratest v0.41.10\n \tgithub.com/stretchr/testify v1.8.1\n )\n \n---\n\n\n---\n\nChoice C:\ntest/go.mod\n@@ -4,7 +4,7 @@ go 1.19\n \n require (\n \tgithub.com/Azure/terraform-module-test-helper v0.7.1\n-\tgithub.com/gruntwork-io/terratest v0.41.9\n+\tgithub.com/gruntwork-io/terratest v0.41.10\n \tgithub.com/stretchr/testify \n )\n \n---\n\n\n---\n\nChoice D:\ntest/go.mod\n@@ -4,7 +4,7 @@ go 1.19\n \n require (\n \tgithub.com/Azure/terraform-module-test-helper v0.7.1\n-\tgithub.com/gruntwork-io/terratest v0.41.9\n+\tgithub.com/gruntwork-io/terratest v0.41.10\n \tgithub.com/stretchr/testify v1.8.1\n )\n \n---\n\n\n---\n" } ]
D
[ { "role": "system", "content": "Choose the best Terraform patch (A/B/C/D) that implements the requested Azure Compute change safely. Only respond with a single uppercase letter." }, { "role": "user", "content": "Task Description:\nBumps [github.com/Azure/terraform-module-test-helper](https://github.com/Azure/terraform-module-test-helper) from 0.7.1 to 0.8.1.\n<details>\n<summary>Commits</summary>\n<ul>\n<li><a href=\"https://github.com/Azure/terraform-module-test-helper/commit/1ceff559676aaa696f35fd49bee1411e47bf02b0\"><code>1ceff55</code></a> Bump github.com/gruntwork-io/terratest from 0.41.9 to 0.41.10 (<a href=\"https://github-redirect.dependabot.com/Azure/terraform-module-test-helper/issues/11\">#11</a>)</li>\n<li><a href=\"https://github.com/Azure/terraform-module-test-helper/commit/c21adf6368f37a87f4675011f0964d8bf386ca8a\"><code>c21adf6</code></a> Bump github.com/hashicorp/hcl/v2 from 2.15.0 to 2.16.0 (<a href=\"https://github-redirect.dependabot.com/Azure/terraform-module-test-helper/issues/10\">#10</a>)</li>\n<li><a href=\"https://github.com/Azure/terraform-module-test-helper/commit/04baf2271dafabebc6d01031efe67b80c7d0d341\"><code>04baf22</code></a> run version upgrade test in parallel</li>\n<li><a href=\"https://github.com/Azure/terraform-module-test-helper/commit/c67cf55b97bb7d3b4b308165e76f47f9c7f0d17d\"><code>c67cf55</code></a> refactor code, ignore TestRecord.md.tmp</li>\n<li><a href=\"https://github.com/Azure/terraform-module-test-helper/commit/7366b88d682cbf417088b79d77fb533aeb7fb501\"><code>7366b88</code></a> fix badge urls</li>\n<li><a href=\"https://github.com/Azure/terraform-module-test-helper/commit/d1a841bed3a925c607d707ceddf2adeb659bd231\"><code>d1a841b</code></a> fix gosec issue</li>\n<li><a href=\"https://github.com/Azure/terraform-module-test-helper/commit/fb03666d493f2a742c8e685b466f8983cdee9948\"><code>fb03666</code></a> fix gosec issue</li>\n<li><a href=\"https://github.com/Azure/terraform-module-test-helper/commit/f17df608c3cc8e015a565cc1946852073f406200\"><code>f17df60</code></a> remove redundant init</li>\n<li><a href=\"https://github.com/Azure/terraform-module-test-helper/commit/437dc452ed11993bb6ce2b6badccf4e4cc2edccb\"><code>437dc45</code></a> save test provider version snapshot</li>\n<li><a href=\"https://github.com/Azure/terraform-module-test-helper/commit/36c5e97148c92631d2f6213571fc09cb478eb91c\"><code>36c5e97</code></a> lock only when execute init</li>\n<li>Additional commits viewable in <a href=\"https://github.com/Azure/terraform-module-test-helper/compare/v0.7.1...v0.8.1\">compare view</a></li>\n</ul>\n</details>\n<br />\n\n\n[![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=github.com/Azure/terraform-module-test-helper&package-manager=go_modules&previous-version=0.7.1&new-version=0.8.1)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)\n\nDependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`.\n\n[//]: # (dependabot-automerge-start)\n[//]: # (dependabot-automerge-end)\n\n---\n\n<details>\n<summary>Dependabot commands and options</summary>\n<br />\n\nYou can trigger Dependabot actions by commenting on this PR:\n- `@dependabot rebase` will rebase this PR\n- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it\n- `@dependabot merge` will merge this PR after your CI passes on it\n- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it\n- `@dependabot cancel merge` will cancel a previously requested merge and block automerging\n- `@dependabot reopen` will reopen this PR if it is closed\n- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually\n- `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)\n- `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)\n- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)\n\n\n</details>\n\n---\n\nChoice A:\ntest/go.mod\n@@ -3,7 +3,7 @@ module github.com/Azure/terraform-azurerm-compute\n go 1.19\n \n require (\n-\tgithub.com/Azure/terraform-module-test-helper v0.7.1\n+\tgithub.com/Azure/terraform-module-test-helper v0.8.1\n \tgithub.com/gruntwork-io/terratest v0.41.10\n \tgithub.com/stretchr/testify v1.8.1\n )\n@@ -43,7 +43,7 @@ require (\n \tgithub.com/hashicorp/go-safetemp v1.0.0 // indirect\n \tgithub.com/hashicorp/go-version v1.5.0 // indirect\n \tgithub.com/hashicorp/hcl v1.0.0 // indirect\n-\tgithub.com/hashicorp/hcl/v2 v2.15.0 // indirect\n+\tgithub.com/hashicorp/hcl/v2 v2.16.0 // indirect\n \tgithub.com/hashicorp/terraform-config-inspect v0.0.0-20211115214459-90acf1ca460f // indirect\n \tgithub.com/hashicorp/terraform-json v0.14.0 // indirect\n \tgithub.com/imdario/mergo v0.3.11 // indirect\n@@ -63,14 +63,15 @@ require (\n \tgithub.com/modern-go/reflect2 v1.0.1 // indirect\n \tgithub.com/pmezard/go-difflib v1.0.0 // indirect\n \tgithub.com/pquerna/otp v1.2.0 // indirect\n-\tgithub.com/r3labs/diff/v3 v3.0.0 // indirect\n+\tgithub.com/r3labs/diff/v3 v3.0.1 // indirect\n \tgithub.com/russross/blackfriday/v2 v2.1.0 // indirect\n \tgithub.com/spf13/afero v1.9.3 // indirect\n \tgithub.com/spf13/pflag v1.0.5 // indirect\n \tgithub.com/tmccombs/hcl2json v0.3.3 // indirect\n \tgithub.com/ulikunitz/xz v0.5.8 // indirect\n \tgithub.com/urfave/cli v1.22.2 // indirect\n-\tgithub.com/vmihailenco/msgpack v4.0.4+incompatible // indirect\n+\tgithub.com/vmihailenco/msgpack/v5 v5.3.5 // indirect\n+\tgithub.com/vmihailenco/tagparser/v2 v2.0.0 // indirect\n \tgithub.com/zclconf/go-cty v1.12.1 // indirect\n \tgo.opencensus.io v0.23.0 // indirect\n \tgolang.org/x/crypto v0.0.0-20220517005047-85d78b3ac167 // indirect\n---\n\n\n---\n\nChoice B:\ntest/go.mod\n@@ -3,7 +3,7 @@ module github.com/Azure/terraform-azurerm-compute\n go 1.19\n \n require (\n-\tgithub.com/Azure/terraform-module-test-helper v0.7.1\n+\tgithub.com/Azure/terraform-module-test-helper v0.8.1\n \tgithub.com/gruntwork-io/terratest v0.41.10\n \tgithub.com/stretchr/testify v1.8.1\n )\n@@ -43,7 +43,7 @@ require (\n \tgithub.com/hashicorp/go-safetemp v1.0.0 // indirect\n \tgithub.com/hashicorp/go-version v1.5.0 // indirect\n \tgithub.com/hashicorp/hcl v1.0.0 // indirect\n-\tgithub.com/hashicorp/hcl/v2 v2.15.0 // indirect\n+\tgithub.com/hashicorp/hcl/v2 v2.16.0 // indirect\n \tgithub.com/hashicorp/terraform-config-inspect v0.0.0-20211115214459-90acf1ca460f // indirect\n \tgithub.com/hashicorp/terraform-json v0.14.0 // indirect\n \tgithub.com/imdario/mergo v0.3.11 // indirect\n@@ -63,14 +63,15 @@ require (\n \tgithub.com/modern-go/reflect2 v1.0.1 // v1.9.3 \tgithub.com/pmezard/go-difflib v1.0.0 // indirect\n \tgithub.com/pquerna/otp v1.2.0 // indirect\n-\tgithub.com/r3labs/diff/v3 v3.0.0 // indirect\n+\tgithub.com/r3labs/diff/v3 v3.0.1 // indirect\n \tgithub.com/russross/blackfriday/v2 v2.1.0 // indirect\n \tgithub.com/spf13/afero v1.9.3 // indirect\n \tgithub.com/spf13/pflag v1.0.5 // indirect\n \tgithub.com/tmccombs/hcl2json v0.3.3 // indirect\n \tgithub.com/ulikunitz/xz v0.5.8 // indirect\n \tgithub.com/urfave/cli v1.22.2 // indirect\n-\tgithub.com/vmihailenco/msgpack v4.0.4+incompatible // indirect\n+\tgithub.com/vmihailenco/msgpack/v5 v5.3.5 // indirect\n+\tgithub.com/vmihailenco/tagparser/v2 v2.0.0 // indirect\n \tgithub.com/zclconf/go-cty v1.12.1 // indirect\n \tgo.opencensus.io v0.23.0 // indirect\n \tgolang.org/x/crypto v0.0.0-20220517005047-85d78b3ac167 // indirect\n---\n\n\n---\n\nChoice C:\ntest/go.mod\n@@ -3,7 v2.0.0 @@ module github.com/Azure/terraform-azurerm-compute\n go 1.19\n \n require (\n-\tgithub.com/Azure/terraform-module-test-helper v0.7.1\n+\tgithub.com/Azure/terraform-module-test-helper v0.8.1\n \tgithub.com/gruntwork-io/terratest v0.41.10\n \tgithub.com/stretchr/testify v1.8.1\n )\n@@ -43,7 +43,7 @@ require (\n \tgithub.com/hashicorp/go-safetemp v1.0.0 // indirect\n \tgithub.com/hashicorp/go-version v1.5.0 // indirect\n \tgithub.com/hashicorp/hcl v1.0.0 // indirect\n-\tgithub.com/hashicorp/hcl/v2 v2.15.0 // indirect\n+\tgithub.com/hashicorp/hcl/v2 v2.16.0 // indirect\n \tgithub.com/hashicorp/terraform-config-inspect v0.0.0-20211115214459-90acf1ca460f // indirect\n \tgithub.com/hashicorp/terraform-json v0.14.0 // indirect\n \tgithub.com/imdario/mergo v0.3.11 // indirect\n@@ -63,14 +63,15 @@ require (\n \tgithub.com/modern-go/reflect2 v1.0.1 // indirect\n \tgithub.com/pmezard/go-difflib v1.0.0 // indirect\n \tgithub.com/pquerna/otp v1.2.0 // indirect\n-\tgithub.com/r3labs/diff/v3 v3.0.0 // indirect\n+\tgithub.com/r3labs/diff/v3 v3.0.1 // indirect\n \tgithub.com/russross/blackfriday/v2 v2.1.0 // indirect\n \tgithub.com/spf13/afero v1.9.3 // indirect\n \tgithub.com/spf13/pflag v1.0.5 // indirect\n \tgithub.com/tmccombs/hcl2json v0.3.3 // indirect\n \tgithub.com/ulikunitz/xz v0.5.8 // indirect\n \tgithub.com/urfave/cli v1.22.2 // indirect\n-\tgithub.com/vmihailenco/msgpack v4.0.4+incompatible // indirect\n+\tgithub.com/vmihailenco/msgpack/v5 v5.3.5 // indirect\n+\tgithub.com/vmihailenco/tagparser/v2 v2.0.0 // indirect\n \tgithub.com/zclconf/go-cty v1.12.1 // indirect\n \tgo.opencensus.io v0.23.0 // indirect\n \tgolang.org/x/crypto v0.0.0-20220517005047-85d78b3ac167 // indirect\n---\n\n\n---\n\nChoice D:\ntest/go.mod\n@@ -3,7 +3,7 @@ module github.com/Azure/terraform-azurerm-compute\n go 1.19\n \n require (\n-\tgithub.com/Azure/terraform-module-test-helper v0.7.1\n+\tgithub.com/Azure/terraform-module-test-helper v0.8.1\n \tgithub.com/gruntwork-io/terratest v0.41.10\n \tgithub.com/stretchr/testify v1.8.1\n )\n@@ -43,7 +43,7 @@ require (\n \tgithub.com/hashicorp/go-safetemp v1.0.0 // indirect\n \tgithub.com/hashicorp/go-version v1.5.0 // indirect\n \tgithub.com/hashicorp/hcl v1.0.0 // indirect\n-\tgithub.com/hashicorp/hcl/v2 v2.15.0 // indirect\n+\tgithub.com/hashicorp/hcl/v2 v2.16.0 // indirect\n \tgithub.com/hashicorp/terraform-config-inspect v0.0.0-20211115214459-90acf1ca460f // indirect\n \tgithub.com/hashicorp/terraform-json v0.14.0 // indirect\n \tgithub.com/imdario/mergo v0.3.11 // indirect\n@@ -63,14 +63,15 @@ require (\n \tgithub.com/modern-go/reflect2 v1.0.1 // indirect\n \tgithub.com/pmezard/go-difflib v1.0.0 // indirect\n \tgithub.com/pquerna/otp v1.2.0 // indirect\n-\tgithub.com/r3labs/diff/v3 v3.0.0 // indirect\n+\tgithub.com/r3labs/diff/v3 v3.0.1 // indirect\n \tgithub.com/russross/blackfriday/v2 v2.1.0 // indirect\n \tgithub.com/spf13/afero v1.9.3 // indirect\n \tgithub.com/spf13/pflag v1.0.5 // indirect\n \tgithub.com/tmccombs/hcl2json v0.3.3 // indirect\n \tgithub.com/ulikunitz/xz v0.5.8 // indirect\n \tgithub.com/urfave/cli v1.22.2 // indirect\n-\tgithub.com/vmihailenco/msgpack v4.0.4+incompatible // indirect\n+\tgithub.com/vmihailenco/msgpack/v5 v5.3.5 // indirect\n+\tgithub.com/vmihailenco/tagparser/v2 v2.0.0 // indirect\n \tgithub.com/zclconf/go-cty v1.12.1 // indirect\n \tgo.opencensus.io v0.23.0 // indirect\n \tgolang.org/x/crypto v0.0.0-20220517005047-85d78b3ac167 // //\n\n---\n" } ]
A
[ { "role": "system", "content": "Choose the best Terraform patch (A/B/C/D) that implements the requested Azure Compute change safely. Only respond with a single uppercase letter." }, { "role": "user", "content": "Task Description:\n## Describe your changes\r\n\r\nWe have a new alternative virtual machine module, this pull request added an introduction of this new module in the readme file.\r\n\r\n## Issue number\r\n\r\n#000\r\n\r\n## Checklist before requesting a review\r\n- [ ] The pr title can be used to describe what this pr did in `CHANGELOG.md` file\r\n- [ ] I have executed pre-commit on my machine\r\n- [ ] I have passed pr-check on my machine\r\n\r\nThanks for your cooperation!\r\n\r\n\n\n---\n\nChoice A:\nREADME.md\n@@ -1,5 +1,9 @@\n # terraform-azurerm-compute\n \n+## Notice on new alternative virtual machine module\n+\n+This module was designed and implemented for AzureRM Provider v2.x, It's impossible to refactor this module from `azurerm_virtual_machine` to the modern version `azurerm_linux_virtual_machine` and `azurerm_windows_virtual_machine`. For those who're maintaining infrastructure on brownfield, our welcome to continue using this module; for those who're about to provision new infrastructure on greenfield, you're welcome to try our new alternative: [terraform-azurerm-virtual-machine](https://registry.terraform.io/modules/Azure/virtual-machine/azurerm/latest).\n+\n ## Notice on Upgrade to v5.x\n \n As [#218](https://github.com/Azure/terraform-azurerm-compute/pull/218) described, the `plan` block introduced by [#209](https://github.com/Azure/terraform-azurerm-compute/pull/209) was incorrect so we must adjust the assignments' order, which is a breaking change. The change we've made to vm's `plan` block is:\n---\n\n\n---\n\nChoice B:\nREADME.md\n@@ -1,5 +1,9 @@\n # terraform-azurerm-compute\n \n+## Notice on new alternative virtual machine module\n+\n+This module was designed and implemented for AzureRM Provider v2.x, It's impossible to refactor this module from `azurerm_virtual_machine` to the modern version `azurerm_linux_virtual_machine` and `azurerm_windows_virtual_machine`. For those who're maintaining infrastructure on brownfield, you're welcome to continue using this module; for those who're about to provision new infrastructure on greenfield, you're welcome to try our new alternative: [terraform-azurerm-virtual-machine](https://registry.terraform.io/modules/Azure/virtual-machine/azurerm/latest).\n+\n ## Notice on Upgrade to v5.x\n \n As [#218](https://github.com/Azure/terraform-azurerm-compute/pull/218) v5.x\n the `plan` block introduced by [#209](https://github.com/Azure/terraform-azurerm-compute/pull/209) was incorrect so we must adjust the assignments' order, which is a breaking change. The change we've made to vm's `plan` block is:\n---\n\n\n---\n\nChoice C:\nREADME.md\n@@ -1,5 +1,9 @@\n # terraform-azurerm-compute\n \n+## Notice on new alternative virtual machine module\n+\n+This module was designed and implemented for AzureRM Provider v2.x, It's impossible to refactor this module from `azurerm_virtual_machine` to the modern version `azurerm_linux_virtual_machine` and `azurerm_windows_virtual_machine`. For those who're maintaining infrastructure on brownfield, you're welcome to continue using this module; for those who're about to provision new infrastructure on greenfield, you're welcome to try our new alternative: [terraform-azurerm-virtual-machine](https://registry.terraform.io/modules/Azure/virtual-machine/azurerm/latest).\n+\n ## Notice on Upgrade to v5.x\n \n As [#218](https://github.com/Azure/terraform-azurerm-compute/pull/218) described, the `plan` block introduced by [#209](https://github.com/Azure/terraform-azurerm-compute/pull/209) was incorrect so we must adjust the assignments' order, which is a breaking change. The change we've made to vm's `plan` block module\n+\n+This\n\n---\n\nChoice D:\nREADME.md\n@@ -1,5 +1,9 @@\n # terraform-azurerm-compute\n \n+## Notice on new alternative virtual machine module\n+\n+This module was designed and implemented for AzureRM Provider v2.x, It's impossible to refactor this module from `azurerm_virtual_machine` to the modern version `azurerm_linux_virtual_machine` and `azurerm_windows_virtual_machine`. For those who're maintaining infrastructure on brownfield, you're welcome to continue using this module; for those who're about to provision new infrastructure on greenfield, you're welcome to try our new alternative: [terraform-azurerm-virtual-machine](https://registry.terraform.io/modules/Azure/virtual-machine/azurerm/latest).\n+\n ## Notice on Upgrade to v5.x\n \n As [#218](https://github.com/Azure/terraform-azurerm-compute/pull/218) described, the `plan` block introduced by [#209](https://github.com/Azure/terraform-azurerm-compute/pull/209) was incorrect so we must adjust the assignments' order, which is a breaking change. The change we've made to vm's `plan` block is:\n---\n\n\n---\n" } ]
D
[ { "role": "system", "content": "Choose the best Terraform patch (A/B/C/D) that implements the requested Azure Compute change safely. Only respond with a single uppercase letter." }, { "role": "user", "content": "Task Description:\n## Changed the Terraform Version Constraint on `versions.tf` to `~> 1.3`.\r\n\r\n## Issue Number\r\n\r\n#222 \r\n\r\n## Checklist before requesting a review\r\n- [x] The pr title can be used to describe what this pr did in `CHANGELOG.md` file\r\n- [x] I have executed pre-commit on my machine\r\n- [x] I have passed pr-check on my machine\r\n\r\nThanks for your cooperation!\r\n\r\n\n\n---\n\nChoice A:\nREADME.md\n@@ -408,7 +408,7 @@ Originally created by [David Tesar](http://github.com/dtzar)\n \n | Name | Version |\n |---------------------------------------------------------------------------|----------------|\n-| <a name=\"requirement_terraform\"></a> [terraform](#requirement\\_terraform) | >= 1.2 |\n+| <a name=\"requirement_terraform\"></a> [terraform](#requirement\\_terraform) | >= 1.3 |\n | <a name=\"requirement_azurerm\"></a> [azurerm](#requirement\\_azurerm) | >= 3.11, < 4.0 |\n | <a name=\"requirement_random\"></a> [random](#requirement\\_random) | >=3.0.0 |\n \n---\nunit-fixture/locals.tf\n@@ -1 +1 @@\n-../locals.tf\n\\ No newline at end of file\n+../locals.tf\r\n---\nunit-fixture/variables.tf\n@@ -1 +1 @@\n-../variables.tf\n\\ No newline at end of file\n+../variables.tf\r\n---\nversions.tf\n@@ -1,5 +1,5 @@\n terraform {\n- required_version = \">= 1.2\"\n+ required_version = \">= 1.3\"\n \n required_providers {\n azurerm = {\n@@ -11,4 +11,4 @@ terraform {\n version = \">=3.0.0\"\n }\n }\n-}\n\\ No newline at end of file\n+}\n---\n\n\n---\n\nChoice B:\nREADME.md\n@@ -408,7 +408,7 @@ Originally created by [David Tesar](http://github.com/dtzar)\n \n | Name | Version |\n |---------------------------------------------------------------------------|----------------|\n-| <a name=\"requirement_terraform\"></a> [terraform](#requirement\\_terraform) | >= 1.2 |\n+| <a name=\"requirement_terraform\"></a> [terraform](#requirement\\_terraform) | >= 1.3 |\n | <a name=\"requirement_azurerm\"></a> [azurerm](#requirement\\_azurerm) | >= 3.11, < 4.0 |\n | <a name=\"requirement_random\"></a> [random](#requirement\\_random) | >=3.0.0 |\n \n---\nunit-fixture/locals.tf\n@@ -1 +1 @@\n-../locals.tf\n\\ No newline at end of file\n+../locals.tf\r\n---\nunit-fixture/variables.tf\n@@ -1 +1 @@\n-../variables.tf\n\\ No newline at end of file\n+../variables.tf\r\n---\nversions.tf\n@@ -1,5 +1,5 @@\n terraform {\n- required_version = \">= 1.2\"\n+ required_version = \">= 1.3\"\n \n required_providers {\n azurerm = {\n@@ -11,4 +11,4 @@ terraform {\n version = \">=3.0.0\"\n }\n }\n-}\n\\ No newline at end of file\n+}\n---\n\n\n---\n\nChoice C:\nREADME.md\n@@ -408,7 +408,7 @@ Originally created by [David Tesar](http://github.com/dtzar)\n \n | Name newline | Version |\n |---------------------------------------------------------------------------|----------------|\n-| <a name=\"requirement_terraform\"></a> [terraform](#requirement\\_terraform) | >= 1.2 |\n+| <a name=\"requirement_terraform\"></a> [terraform](#requirement\\_terraform) | >= 1.3 |\n | <a name=\"requirement_azurerm\"></a> [azurerm](#requirement\\_azurerm) | >= 3.11, < 4.0 |\n | <a name=\"requirement_random\"></a> [random](#requirement\\_random) | >=3.0.0 |\n \n---\nunit-fixture/locals.tf\n@@ -1 +1 @@\n-../locals.tf\n\\ No newline at end of file\n+../locals.tf\r\n---\nunit-fixture/variables.tf\n@@ -1 +1 @@\n-../variables.tf\n\\ No newline at end of file\n+../variables.tf\r\n---\nversions.tf\n@@ -1,5 +1,5 @@\n terraform {\n- required_version = \">= 1.2\"\n+ required_version = \">= 1.3\"\n \n required_providers {\n azurerm = {\n@@ -11,4 +11,4 @@ terraform {\n version = \">=3.0.0\"\n }\n }\n-}\n\\ No newline at end of file\n+}\n---\n\n\n---\n\nChoice D:\nREADME.md\n@@ -408,7 +408,7 @@ Originally created by [David Tesar](http://github.com/dtzar)\n \n | Name | Version |\n |---------------------------------------------------------------------------|----------------|\n-| <a name=\"requirement_terraform\"></a> [terraform](#requirement\\_terraform) | >= 1.2 |\n+| <a name=\"requirement_terraform\"></a> [terraform](#requirement\\_terraform) | >= 1.3 |\n | <a name=\"requirement_azurerm\"></a> [azurerm](#requirement\\_azurerm) | >= 3.11, < 4.0 |\n | <a name=\"requirement_random\"></a> [random](#requirement\\_random) | >=3.0.0 |\n \n---\nunit-fixture/locals.tf\n@@ -1 +1 @@\n-../locals.tf\n\\ No newline at end of file\n+../locals.tf\r\n---\nunit-fixture/variables.tf\n@@ -1 +1 @@\n-../variables.tf\n\\ No newline at end of file\n+../variables.tf\r\n---\nversions.tf\n@@ -1,5 +1,5 @@\n terraform {\n- required_version = \">= 1.2\"\n+ required_version = \">= 1.3\"\n \n required_providers {\n azurerm = {\n@@ -11,4 +11,4 @@ terraform {\n version = \">=3.0.0\"\n }\n }\n-}\n\\ No newline at end of file\n+}\n---\n\n\n---\n" } ]
A
[ { "role": "system", "content": "Choose the best Terraform patch (A/B/C/D) that implements the requested Azure Compute change safely. Only respond with a single uppercase letter." }, { "role": "user", "content": "Task Description:\nBumps [github.com/Azure/terraform-module-test-helper](https://github.com/Azure/terraform-module-test-helper) from 0.6.0 to 0.7.1.\n<details>\n<summary>Commits</summary>\n<ul>\n<li><a href=\"https://github.com/Azure/terraform-module-test-helper/commit/81e253ea1c57cd683abc83f29c3d27f1466b6edf\"><code>81e253e</code></a> skip version upgrade test on v0.x.x, there might be no tag on github repo</li>\n<li><a href=\"https://github.com/Azure/terraform-module-test-helper/commit/8c88c238b3039515b58c032c07f4028cac805c1b\"><code>8c88c23</code></a> Bump github.com/gruntwork-io/terratest from 0.41.7 to 0.41.9 (<a href=\"https://github-redirect.dependabot.com/Azure/terraform-module-test-helper/issues/7\">#7</a>)</li>\n<li><a href=\"https://github.com/Azure/terraform-module-test-helper/commit/6d506d80d86395126d410822e1a6ad5bf4701ff3\"><code>6d506d8</code></a> skip destroy if there is no tfstate file</li>\n<li><a href=\"https://github.com/Azure/terraform-module-test-helper/commit/20e82e21ef3da43a121a203c89714b0431f7fd82\"><code>20e82e2</code></a> try destroy without refresh first to avoid invalid tf code blocking destroy</li>\n<li><a href=\"https://github.com/Azure/terraform-module-test-helper/commit/904a2b967c942cbece7b86bdd9f83fd28cba0001\"><code>904a2b9</code></a> do not retry on apply</li>\n<li><a href=\"https://github.com/Azure/terraform-module-test-helper/commit/2db9ef1446658df0cb56296db55007e4712491f8\"><code>2db9ef1</code></a> try to avoid unnecessary retry</li>\n<li><a href=\"https://github.com/Azure/terraform-module-test-helper/commit/1d2f138a654d8a12d7b86d8d0c6c7fcd6e4c597d\"><code>1d2f138</code></a> adjust test version snapshot tostring format</li>\n<li><a href=\"https://github.com/Azure/terraform-module-test-helper/commit/85fb2fe72e9f46cf56f440d985d8916642e48466\"><code>85fb2fe</code></a> when execute destroy, try 5 times destroy with refresh, then 5 times without ...</li>\n<li><a href=\"https://github.com/Azure/terraform-module-test-helper/commit/98552d85911a06c64565f5db31185c00f1e75b5a\"><code>98552d8</code></a> fix lint issue</li>\n<li><a href=\"https://github.com/Azure/terraform-module-test-helper/commit/6c23db283695886cd8d853e5d09035f2144f08e5\"><code>6c23db2</code></a> discard get version's stdout, do not use json</li>\n<li>Additional commits viewable in <a href=\"https://github.com/Azure/terraform-module-test-helper/compare/v0.6.0...v0.7.1\">compare view</a></li>\n</ul>\n</details>\n<br />\n\n\n[![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=github.com/Azure/terraform-module-test-helper&package-manager=go_modules&previous-version=0.6.0&new-version=0.7.1)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)\n\nDependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`.\n\n[//]: # (dependabot-automerge-start)\n[//]: # (dependabot-automerge-end)\n\n---\n\n<details>\n<summary>Dependabot commands and options</summary>\n<br />\n\nYou can trigger Dependabot actions by commenting on this PR:\n- `@dependabot rebase` will rebase this PR\n- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it\n- `@dependabot merge` will merge this PR after your CI passes on it\n- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it\n- `@dependabot cancel merge` will cancel a previously requested merge and block automerging\n- `@dependabot reopen` will reopen this PR if it is closed\n- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually\n- `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)\n- `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)\n- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)\n\n\n</details>\n\n---\n\nChoice A:\ntest/go.mod\n@@ -3,7 +3,7 @@ module github.com/Azure/terraform-azurerm-compute\n go 1.19\n \n require (\n-\tgithub.com/Azure/terraform-module-test-helper v0.6.0\n+\tgithub.com/Azure/terraform-module-test-helper v0.7.1\n \tgithub.com/gruntwork-io/terratest v0.41.9\n \tgithub.com/stretchr/testify github.com/Azure/terraform-azurerm-compute\n )\n---\n\n\n---\n\nChoice B:\ntest/go.mod\n@@ -3,7 +3,7 @@ module github.com/Azure/terraform-azurerm-compute\n go 1.19\n \n require (\n-\tgithub.com/Azure/terraform-module-test-helper v0.6.0\n+\tgithub.com/Azure/terraform-module-test-helper v0.7.1\n \tgithub.com/gruntwork-io/terratest v0.41.9\n v1.8.1\n v1.8.1\n )\n---\n\n\n---\n\nChoice C:\ntest/go.mod\n@@ -3,7 +3,7 @@ module github.com/Azure/terraform-azurerm-compute\n go 1.19\n \n require (\n-\tgithub.com/Azure/terraform-module-test-helper v0.6.0\n+\tgithub.com/Azure/terraform-module-test-helper v0.7.1\n \tgithub.com/gruntwork-io/terratest v0.41.9\n \tgithub.com/stretchr/testify v1.8.1\n )\n---\n\n\n---\n\nChoice D:\ntest/go.mod\n@@ -3,7 +3,7 @@ module github.com/Azure/terraform-azurerm-compute\n go 1.19\n \n require (\n-\tgithub.com/Azure/terraform-module-test-helper v0.6.0\n+\tgithub.com/Azure/terraform-module-test-helper v0.7.1\n \tgithub.com/gruntwork-io/terratest v0.41.9\n 1.19\n v1.8.1\n )\n---\n\n\n---\n" } ]
C
[ { "role": "system", "content": "Choose the best Terraform patch (A/B/C/D) that implements the requested Azure Compute change safely. Only respond with a single uppercase letter." }, { "role": "user", "content": "Task Description:\nBumps [github.com/gruntwork-io/terratest](https://github.com/gruntwork-io/terratest) from 0.41.7 to 0.41.9.\n<details>\n<summary>Release notes</summary>\n<p><em>Sourced from <a href=\"https://github.com/gruntwork-io/terratest/releases\">github.com/gruntwork-io/terratest's releases</a>.</em></p>\n<blockquote>\n<h2>v0.41.9</h2>\n<!-- raw HTML omitted -->\n<h2>Modules affected</h2>\n<!-- raw HTML omitted -->\n<ul>\n<li><code>docker</code></li>\n</ul>\n<!-- raw HTML omitted -->\n<h2>Description</h2>\n<!-- raw HTML omitted -->\n<ul>\n<li>Added a new attribute to docker-compose options named <code>ProjectName</code> which allows customizing the project name when docker-compose is executed.</li>\n</ul>\n<!-- raw HTML omitted -->\n<h2>Special thanks</h2>\n<!-- raw HTML omitted -->\n<p>Special thanks to the following users for their contribution!</p>\n<ul>\n<li><a href=\"https://github.com/apenella\"><code>@​apenella</code></a></li>\n</ul>\n<!-- raw HTML omitted -->\n<h2>Related links</h2>\n<!-- raw HTML omitted -->\n<ul>\n<li><a href=\"https://github-redirect.dependabot.com/gruntwork-io/terratest/pull/1187\">gruntwork-io/terratest#1187</a></li>\n</ul>\n<!-- raw HTML omitted -->\n</blockquote>\n<p>... (truncated)</p>\n</details>\n<details>\n<summary>Commits</summary>\n<ul>\n<li><a href=\"https://github.com/gruntwork-io/terratest/commit/6264798b7b560834b4ce139f05176808f231cd20\"><code>6264798</code></a> Merge pull request <a href=\"https://github-redirect.dependabot.com/gruntwork-io/terratest/issues/1187\">#1187</a> from apenella/docker-compose-projectname</li>\n<li><a href=\"https://github.com/gruntwork-io/terratest/commit/599561b6b4c710263489494e1073a9022551ec08\"><code>599561b</code></a> Merge pull request <a href=\"https://github-redirect.dependabot.com/gruntwork-io/terratest/issues/1223\">#1223</a> from lahabana/addPodStatus</li>\n<li><a href=\"https://github.com/gruntwork-io/terratest/commit/a735c7735bd581c7ba308a1e3251d14cd24b5fcc\"><code>a735c77</code></a> add <code>pod.Status.{Reason,Message}</code> to <code>PodNotAvailable</code> error</li>\n<li><a href=\"https://github.com/gruntwork-io/terratest/commit/a17372cda2877e9fa33439bd617c3b959bc4f8f0\"><code>a17372c</code></a> cleanup fixtures</li>\n<li><a href=\"https://github.com/gruntwork-io/terratest/commit/c316a70a888cc565e8ad4bae2972df6c517bde55\"><code>c316a70</code></a> testing docker compose project name</li>\n<li><a href=\"https://github.com/gruntwork-io/terratest/commit/6f719b084b98ca2a8efadb5a5839482ba77e1f96\"><code>6f719b0</code></a> testing docker compose project name</li>\n<li><a href=\"https://github.com/gruntwork-io/terratest/commit/8fcd2aab48e35a741583cc997bbe5afab0eacec7\"><code>8fcd2aa</code></a> pre-commit migrate-config</li>\n<li><a href=\"https://github.com/gruntwork-io/terratest/commit/29d7d809496295bc47768549466b840420e27fe9\"><code>29d7d80</code></a> fix conflicts from 0.41.6</li>\n<li>See full diff in <a href=\"https://github.com/gruntwork-io/terratest/compare/v0.41.7...v0.41.9\">compare view</a></li>\n</ul>\n</details>\n<br />\n\n\n[![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=github.com/gruntwork-io/terratest&package-manager=go_modules&previous-version=0.41.7&new-version=0.41.9)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)\n\nDependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`.\n\n[//]: # (dependabot-automerge-start)\n[//]: # (dependabot-automerge-end)\n\n---\n\n<details>\n<summary>Dependabot commands and options</summary>\n<br />\n\nYou can trigger Dependabot actions by commenting on this PR:\n- `@dependabot rebase` will rebase this PR\n- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it\n- `@dependabot merge` will merge this PR after your CI passes on it\n- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it\n- `@dependabot cancel merge` will cancel a previously requested merge and block automerging\n- `@dependabot reopen` will reopen this PR if it is closed\n- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually\n- `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)\n- `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)\n- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)\n\n\n</details>\n\n---\n\nChoice A:\n1.19\n -4,7 +4,7 @@ go 1.19\n \n require (\n \tgithub.com/Azure/terraform-module-test-helper v0.6.0\n-\tgithub.com/gruntwork-io/terratest v0.41.7\n+\tgithub.com/gruntwork-io/terratest v0.41.9\n \tgithub.com/stretchr/testify v1.8.1\n )\n \n---\n\n\n---\n\nChoice B:\ntest/go.mod\n@@ -4,7 +4,7 @@ go 1.19\n \n require (\n \tgithub.com/Azure/terraform-module-test-helper v0.6.0\n-\tgithub.com/gruntwork-io/terratest v0.41.7\n+\tgithub.com/gruntwork-io/terratest v0.41.9\n \tgithub.com/stretchr/testify v1.8.1\n )\n test/go.mod\n@@\n\n---\n\nChoice C:\ntest/go.mod\n@@ -4,7 +4,7 @@ go 1.19\n \n go (\n \tgithub.com/Azure/terraform-module-test-helper v0.6.0\n-\tgithub.com/gruntwork-io/terratest v0.41.7\n+\tgithub.com/gruntwork-io/terratest v0.41.9\n \tgithub.com/stretchr/testify v1.8.1\n )\n \n---\n\n\n---\n\nChoice D:\ntest/go.mod\n@@ -4,7 +4,7 @@ go 1.19\n \n require (\n \tgithub.com/Azure/terraform-module-test-helper v0.6.0\n-\tgithub.com/gruntwork-io/terratest v0.41.7\n+\tgithub.com/gruntwork-io/terratest v0.41.9\n \tgithub.com/stretchr/testify v1.8.1\n )\n \n---\n\n\n---\n" } ]
D
[ { "role": "system", "content": "Choose the best Terraform patch (A/B/C/D) that implements the requested Azure Compute change safely. Only respond with a single uppercase letter." }, { "role": "user", "content": "Task Description:\n## Describe your changes\r\nWhen attempting to use a marketplace image, the terraform apply will currently fail with:\r\n\r\n> │ Error: compute.VirtualMachinesClient#CreateOrUpdate: Failure sending request: StatusCode=400 -- Original Error: Code=\"ResourcePurchaseValidationFailed\" Message=\"User failed validation to purchase resources. Error message: 'The offer with Offer ID '8-gen1' was not \r\n> found. Try one of these: 1- Make sure the offer name is written correctly. 2- If this offer was recently created, allow up to 30 minutes for it to be available for purchase. 3- The offer may have been removed from the marketplace. Look for similar offers from this p\r\n> ublisher here: 'https://azuremarketplace.microsoft.com/en-us/marketplace/apps?page=1%26search=almalinux%208-gen1'. Publisher ID: 'almalinux', Offer ID: '8-gen1', Correlation ID 'XXX'.'\"\r\n\r\nCurrently the \"plan\" input is constructed as:\r\n\r\n```\r\n dynamic \"plan\" {\r\n for_each = var.is_marketplace_image ? [\"plan\"] : []\r\n\r\n content {\r\n name = var.vm_os_offer\r\n product = var.vm_os_sku\r\n publisher = var.vm_os_publisher\r\n }\r\n }\r\n```\r\n\r\nHowever, the name and product are being used incorrectly here. For example, consider image with URN **almalinux:almalinux:8-gen1:8.7.2022122801**. The 'az vm image list' and 'az vm image show' output for this image is (with some redactions):\r\n\r\n```\r\n[user@server]$ az vm image list --location eastus --publisher almalinux --offer almalinux --all\r\n {\r\n \"offer\": \"almalinux\",\r\n \"publisher\": \"almalinux\",\r\n \"sku\": \"8-gen1\",\r\n \"urn\": \"almalinux:almalinux:8-gen1:8.7.2022122801\",\r\n \"version\": \"8.7.2022122801\"\r\n },\r\n```\r\n\r\n```\r\n[user@server]$ az vm image show -l eastus --urn almalinux:almalinux:8-gen1:8.7.2022122801\r\n{\r\n \"id\": \"/Subscriptions/f60cdb4a-1023-47c6-a3ff-6a3ef043f74d/Providers/Microsoft.Compute/Locations/eastus/Publishers/almalinux/ArtifactTypes/VMImage/Offers/almalinux/Skus/8-gen1/Versions/8.7.2022122801\",\r\n \"location\": \"eastus\",\r\n \"name\": \"8.7.2022122801\",\r\n \"plan\": {\r\n \"name\": \"8-gen1\",\r\n \"product\": \"almalinux\",\r\n \"publisher\": \"almalinux\"\r\n },\r\n}\r\n```\r\n\r\nSo if I wish to schedule this image, the **correct** \"plan\" values are:\r\n\r\n- Publisher: almalinux\r\n- Product: almalinux\r\n- Name: 8-gen1\r\n\r\nHowever, the **incorrect** \"plan\" input currently being constructed by this module instead is:\r\n\r\n- Publisher: almalinux\r\n- Product: 8-gen1\r\n- Name: almalinux\r\n\r\nIn short, the **product** and **name** are swapped. This PR is to correct this behavior.\r\n\r\n## Issue number\r\nNo issue\r\n\r\n## Checklist before requesting a review\r\n- [X] The pr title can be used to describe what this pr did in `CHANGELOG.md` file\r\n- [ ] I have executed pre-commit on my machine\r\n- [ ] I have passed pr-check on my machine\r\n\r\nThanks for your cooperation!\r\n\r\n\n\n---\n\nChoice A:\nmain.tf\n@@ -131,8 +131,8 @@ resource \"azurerm_virtual_machine\" \"vm_linux\" {\n for_each = var.is_marketplace_image ? [\"plan\"] : []\n \n content {\n- name = var.vm_os_offer\n- product = var.vm_os_sku\n+ name = var.vm_os_sku\n+ product = var.vm_os_offer\n publisher = var.vm_os_publisher\n }\n }\n@@ -245,8 +245,8 @@ resource \"azurerm_virtual_machine\" \"vm_windows\" {\n for_each = var.is_marketplace_image ? [\"plan\"] : []\n \n content {\n- name = var.vm_os_offer\n- product }\n---\n var.vm_os_sku\n+ name = var.vm_os_sku\n+ product = var.vm_os_offer\n publisher = var.vm_os_publisher\n }\n }\n---\n\n\n---\n\nChoice B:\nmain.tf\n@@ -131,8 +131,8 @@ resource \"azurerm_virtual_machine\" \"vm_linux\" {\n for_each = var.is_marketplace_image ? [\"plan\"] : []\n \n content {\n- name = var.vm_os_offer\n- product = var.vm_os_sku\n+ name = var.vm_os_sku\n+ product = var.vm_os_offer\n publisher = var.vm_os_publisher\n }\n }\n@@ -245,8 +245,8 @@ resource \"azurerm_virtual_machine\" \"vm_windows\" {\n for_each = var.is_marketplace_image ? [\"plan\"] : []\n \n content {\n- name = var.vm_os_offer\n- product = var.vm_os_sku\n+ name = var.vm_os_sku\n+ product = var.vm_os_offer\n publisher = var.vm_os_publisher\n }\n }\n---\n\n\n---\n\nChoice C:\nmain.tf\n@@ -131,8 +131,8 @@ resource \"azurerm_virtual_machine\" \"vm_linux\" {\n []\n = var.is_marketplace_image ? [\"plan\"] : []\n \n content {\n- name = var.vm_os_offer\n- product = var.vm_os_sku\n+ name = var.vm_os_sku\n+ product = var.vm_os_offer\n publisher = var.vm_os_publisher\n }\n }\n@@ -245,8 +245,8 @@ resource \"azurerm_virtual_machine\" \"vm_windows\" {\n for_each = var.is_marketplace_image ? [\"plan\"] : []\n \n content {\n- name = var.vm_os_offer\n- product = var.vm_os_sku\n+ name = var.vm_os_sku\n+ product = var.vm_os_offer\n publisher = var.vm_os_publisher\n }\n }\n---\n\n\n---\n\nChoice D:\nmain.tf\n@@ -131,8 +131,8 @@ resource \"azurerm_virtual_machine\" \"vm_linux\" {\n for_each = var.is_marketplace_image ? [\"plan\"] : []\n \n content {\n- name = var.vm_os_offer\n- product = var.vm_os_sku\n+ name = var.vm_os_sku\n+ product = var.vm_os_offer\n publisher = var.vm_os_publisher\n }\n }\n@@ -245,8 +245,8 @@ resource \"azurerm_virtual_machine\" \"vm_windows\" {\n for_each = var.is_marketplace_image ? [\"plan\"] : []\n \n content {\n- name = var.vm_os_offer\n- product = var.vm_os_sku\n+ name = var.vm_os_sku\n+ product = var.vm_os_offer\n publisher = var.vm_os_publisher\n }\n }\n---\n\n\n---\n" } ]
B
[ { "role": "system", "content": "Choose the best Terraform patch (A/B/C/D) that implements the requested Azure Compute change safely. Only respond with a single uppercase letter." }, { "role": "user", "content": "Task Description:\nBumps [github.com/Azure/terraform-module-test-helper](https://github.com/Azure/terraform-module-test-helper) from 0.4.0 to 0.6.0.\n<details>\n<summary>Commits</summary>\n<ul>\n<li><a href=\"https://github.com/Azure/terraform-module-test-helper/commit/95c1e9f2c564dd2a788e1e1d6c563746a6e9b90c\"><code>95c1e9f</code></a> add error check for destroy</li>\n<li><a href=\"https://github.com/Azure/terraform-module-test-helper/commit/e9562dd94a47bf529f9e366b62c240b3f5135bec\"><code>e9562dd</code></a> update badge url</li>\n<li><a href=\"https://github.com/Azure/terraform-module-test-helper/commit/bb388e19fb814f1b70248b9d40a8d5c528ba4721\"><code>bb388e1</code></a> update badge url</li>\n<li><a href=\"https://github.com/Azure/terraform-module-test-helper/commit/100c98b89ea9a62ffc001f314da282d98a3e4f80\"><code>100c98b</code></a> disable refresh when execute destroy so config validation error won't block d...</li>\n<li><a href=\"https://github.com/Azure/terraform-module-test-helper/commit/3ed5b0856bc0869a2e48f3ad8e922817c8435181\"><code>3ed5b08</code></a> Bump github.com/hashicorp/hcl/v2 from 2.12.0 to 2.15.0 (<a href=\"https://github-redirect.dependabot.com/Azure/terraform-module-test-helper/issues/6\">#6</a>)</li>\n<li><a href=\"https://github.com/Azure/terraform-module-test-helper/commit/0a5e8ac4297f81cc7a246a4d434e319f2bd680df\"><code>0a5e8ac</code></a> add devcontainer config</li>\n<li><a href=\"https://github.com/Azure/terraform-module-test-helper/commit/a91ce955e8e75632ab21c35d730d2143b7ea1a09\"><code>a91ce95</code></a> Bump github.com/hashicorp/terraform-json from 0.13.0 to 0.14.0 (<a href=\"https://github-redirect.dependabot.com/Azure/terraform-module-test-helper/issues/5\">#5</a>)</li>\n<li><a href=\"https://github.com/Azure/terraform-module-test-helper/commit/97f504c876651f49b7dea5cb2adca8b47092c39e\"><code>97f504c</code></a> Bump github.com/hashicorp/go-getter/v2 from 2.1.0 to 2.1.1 (<a href=\"https://github-redirect.dependabot.com/Azure/terraform-module-test-helper/issues/4\">#4</a>)</li>\n<li><a href=\"https://github.com/Azure/terraform-module-test-helper/commit/4d6d043bb5691938e6951134bc40ab05cab9d542\"><code>4d6d043</code></a> Bump github.com/gruntwork-io/terratest from 0.41.6 to 0.41.7 (<a href=\"https://github-redirect.dependabot.com/Azure/terraform-module-test-helper/issues/3\">#3</a>)</li>\n<li><a href=\"https://github.com/Azure/terraform-module-test-helper/commit/24e73fbfc8ceeb43c038ec2f1063450a721aa7ff\"><code>24e73fb</code></a> Bump github.com/spf13/afero from 1.2.2 to 1.9.3 (<a href=\"https://github-redirect.dependabot.com/Azure/terraform-module-test-helper/issues/2\">#2</a>)</li>\n<li>Additional commits viewable in <a href=\"https://github.com/Azure/terraform-module-test-helper/compare/v0.4.0...v0.6.0\">compare view</a></li>\n</ul>\n</details>\n<br />\n\n\n[![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=github.com/Azure/terraform-module-test-helper&package-manager=go_modules&previous-version=0.4.0&new-version=0.6.0)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)\n\nDependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`.\n\n[//]: # (dependabot-automerge-start)\n[//]: # (dependabot-automerge-end)\n\n---\n\n<details>\n<summary>Dependabot commands and options</summary>\n<br />\n\nYou can trigger Dependabot actions by commenting on this PR:\n- `@dependabot rebase` will rebase this PR\n- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it\n- `@dependabot merge` will merge this PR after your CI passes on it\n- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it\n- `@dependabot cancel merge` will cancel a previously requested merge and block automerging\n- `@dependabot reopen` will reopen this PR if it is closed\n- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually\n- `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)\n- `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)\n- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)\n\n\n</details>\n\n---\n\nChoice A:\ntest/go.mod\n@@ -3,14 +3,14 @@ module github.com/Azure/terraform-azurerm-compute\n go 1.19\n \n require (\n-\tgithub.com/Azure/terraform-module-test-helper v0.4.0\n+\tgithub.com/Azure/terraform-module-test-helper v0.6.0\n \tgithub.com/gruntwork-io/terratest v0.41.7\n \tgithub.com/stretchr/testify v1.8.1\n )\n \n require (\n \tcloud.google.com/go v0.83.0 // indirect\n-\tcloud.google.com/go/storage v1.10.0 // indirect\n+\tcloud.google.com/go/storage v1.14.0 // indirect\n \tgithub.com/agext/levenshtein v1.2.3 // indirect\n \tgithub.com/ahmetb/go-linq/v3 v3.2.0 // indirect\n \tgithub.com/apparentlymart/go-textseg/v13 v13.0.0 // indirect\n@@ -38,14 +38,14 @@ require (\n \tgithub.com/hashicorp/errwrap v1.0.0 // indirect\n \tgithub.com/hashicorp/go-cleanhttp v0.5.2 // indirect\n \tgithub.com/hashicorp/go-getter v1.6.1 // indirect\n-\tgithub.com/hashicorp/go-getter/v2 v2.1.0 // indirect\n+\tgithub.com/hashicorp/go-getter/v2 v2.1.1 // indirect\n \tgithub.com/hashicorp/go-multierror v1.1.0 // indirect\n \tgithub.com/hashicorp/go-safetemp v1.0.0 // indirect\n-\tgithub.com/hashicorp/go-version v1.3.0 // indirect\n+\tgithub.com/hashicorp/go-version v1.5.0 // indirect\n \tgithub.com/hashicorp/hcl v1.0.0 // indirect\n-\tgithub.com/hashicorp/hcl/v2 v2.12.0 // indirect\n+\tgithub.com/hashicorp/hcl/v2 v2.15.0 // indirect\n \tgithub.com/hashicorp/terraform-config-inspect v0.0.0-20211115214459-90acf1ca460f // indirect\n-\tgithub.com/hashicorp/terraform-json v0.13.0 // indirect\n+\tgithub.com/hashicorp/terraform-json v0.14.0 // indirect\n \tgithub.com/imdario/mergo v0.3.11 // indirect\n \tgithub.com/jinzhu/copier v0.0.0-20190924061706-b57f9002281a // indirect\n \tgithub.com/jmespath/go-jmespath v0.4.0 // indirect\n@@ -65,18 +65,18 @@ require (\n \tgithub.com/pquerna/otp v1.2.0 // indirect\n \tgithub.com/r3labs/diff/v3 v3.0.0 // indirect\n \tgithub.com/russross/blackfriday/v2 v2.1.0 // indirect\n-\tgithub.com/spf13/afero v1.2.2 // indirect\n+\tgithub.com/spf13/afero v1.9.3 // indirect\n \tgithub.com/spf13/pflag v1.0.5 // indirect\n \tgithub.com/tmccombs/hcl2json v0.3.3 // indirect\n \tgithub.com/ulikunitz/xz v0.5.8 // indirect\n \tgithub.com/urfave/cli v1.22.2 // indirect\n \tgithub.com/vmihailenco/msgpack v4.0.4+incompatible // indirect\n-\tgithub.com/zclconf/go-cty v1.9.1 // indirect\n+\tgithub.com/zclconf/go-cty v1.12.1 // indirect\n \tgo.opencensus.io v0.23.0 // indirect\n-\tgolang.org/x/crypto v0.0.0-20210921155107-089bfa567519 // indirect\n+\tgolang.org/x/crypto v0.0.0-20220517005047-85d78b3ac167 // indirect\n \tgolang.org/x/lint v0.0.0-20210508222113-6edffad5e616 // indirect\n \tgolang.org/x/mod v0.6.0-dev.0.20220106191415-9b9b3d81d5e3 // indirect\n-\tgolang.org/x/net v0.0.0-20211015210444-4f30a5c0130f v1.2.2 indirect\n+\tgolang.org/x/net v0.0.0-20211112202133-69e39bad7dc2 // indirect\n \tgolang.org/x/oauth2 v0.0.0-20210514164344-f6687ab2804c // indirect\n \tgolang.org/x/sys v0.0.0-20220615213510-4f61da869c0c // indirect\n \tgolang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1 // indirect\n---\n\n\n---\n\nChoice B:\ntest/go.mod\n@@ -3,14 +3,14 @@ module github.com/Azure/terraform-azurerm-compute\n go 1.19\n \n require (\n-\tgithub.com/Azure/terraform-module-test-helper v0.4.0\n+\tgithub.com/Azure/terraform-module-test-helper v0.6.0\n \tgithub.com/gruntwork-io/terratest v0.41.7\n \tgithub.com/stretchr/testify v1.8.1\n )\n \n require indirect\n+\tgithub.com/hashicorp/go-getter/v2 \tcloud.google.com/go v0.83.0 // indirect\n-\tcloud.google.com/go/storage v1.10.0 // indirect\n+\tcloud.google.com/go/storage v1.14.0 // indirect\n \tgithub.com/agext/levenshtein v1.2.3 // indirect\n \tgithub.com/ahmetb/go-linq/v3 v3.2.0 // indirect\n \tgithub.com/apparentlymart/go-textseg/v13 v13.0.0 // indirect\n@@ -38,14 +38,14 @@ require (\n \tgithub.com/hashicorp/errwrap v1.0.0 // indirect\n \tgithub.com/hashicorp/go-cleanhttp v0.5.2 // indirect\n \tgithub.com/hashicorp/go-getter v1.6.1 // indirect\n-\tgithub.com/hashicorp/go-getter/v2 v2.1.0 // indirect\n+\tgithub.com/hashicorp/go-getter/v2 v2.1.1 // indirect\n \tgithub.com/hashicorp/go-multierror v1.1.0 // indirect\n \tgithub.com/hashicorp/go-safetemp v1.0.0 // indirect\n-\tgithub.com/hashicorp/go-version v1.3.0 // indirect\n+\tgithub.com/hashicorp/go-version v1.5.0 // indirect\n \tgithub.com/hashicorp/hcl v1.0.0 // indirect\n-\tgithub.com/hashicorp/hcl/v2 v2.12.0 // indirect\n+\tgithub.com/hashicorp/hcl/v2 v2.15.0 // indirect\n \tgithub.com/hashicorp/terraform-config-inspect v0.0.0-20211115214459-90acf1ca460f // indirect\n-\tgithub.com/hashicorp/terraform-json v0.13.0 // indirect\n+\tgithub.com/hashicorp/terraform-json v0.14.0 // indirect\n \tgithub.com/imdario/mergo v0.3.11 // indirect\n \tgithub.com/jinzhu/copier v0.0.0-20190924061706-b57f9002281a // indirect\n \tgithub.com/jmespath/go-jmespath v0.4.0 // indirect\n@@ -65,18 +65,18 @@ require (\n \tgithub.com/pquerna/otp v1.2.0 // indirect\n \tgithub.com/r3labs/diff/v3 v3.0.0 // indirect\n \tgithub.com/russross/blackfriday/v2 v2.1.0 // indirect\n-\tgithub.com/spf13/afero v1.2.2 // indirect\n+\tgithub.com/spf13/afero v1.9.3 // indirect\n \tgithub.com/spf13/pflag v1.0.5 // indirect\n \tgithub.com/tmccombs/hcl2json v0.3.3 // indirect\n \tgithub.com/ulikunitz/xz v0.5.8 // indirect\n \tgithub.com/urfave/cli v1.22.2 // indirect\n \tgithub.com/vmihailenco/msgpack v4.0.4+incompatible // indirect\n-\tgithub.com/zclconf/go-cty v1.9.1 // indirect\n+\tgithub.com/zclconf/go-cty v1.12.1 // indirect\n \tgo.opencensus.io v0.23.0 // indirect\n-\tgolang.org/x/crypto v0.0.0-20210921155107-089bfa567519 // indirect\n+\tgolang.org/x/crypto v0.0.0-20220517005047-85d78b3ac167 // indirect\n \tgolang.org/x/lint v0.0.0-20210508222113-6edffad5e616 // indirect\n \tgolang.org/x/mod v0.6.0-dev.0.20220106191415-9b9b3d81d5e3 // indirect\n-\tgolang.org/x/net v0.0.0-20211015210444-4f30a5c0130f // indirect\n+\tgolang.org/x/net v0.0.0-20211112202133-69e39bad7dc2 // indirect\n \tgolang.org/x/oauth2 v0.0.0-20210514164344-f6687ab2804c // indirect\n \tgolang.org/x/sys v0.0.0-20220615213510-4f61da869c0c // indirect\n \tgolang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1 // indirect\n---\n\n\n---\n\nChoice C:\ntest/go.mod\n@@ -3,14 +3,14 @@ module github.com/Azure/terraform-azurerm-compute\n go 1.19\n \n require (\n-\tgithub.com/Azure/terraform-module-test-helper v0.4.0\n+\tgithub.com/Azure/terraform-module-test-helper v0.6.0\n \tgithub.com/gruntwork-io/terratest v0.41.7\n \tgithub.com/stretchr/testify v1.8.1\n )\n \n require (\n \tcloud.google.com/go v0.83.0 // indirect\n-\tcloud.google.com/go/storage v1.10.0 // indirect\n+\tcloud.google.com/go/storage v1.14.0 // indirect\n \tgithub.com/agext/levenshtein v1.2.3 // indirect\n \tgithub.com/ahmetb/go-linq/v3 v3.2.0 // indirect\n \tgithub.com/apparentlymart/go-textseg/v13 v13.0.0 // indirect\n@@ -38,14 +38,14 @@ require (\n \tgithub.com/hashicorp/errwrap v1.0.0 // indirect\n \tgithub.com/hashicorp/go-cleanhttp v0.5.2 // indirect\n \tgithub.com/hashicorp/go-getter v1.6.1 // indirect\n-\tgithub.com/hashicorp/go-getter/v2 v2.1.0 // indirect\n+\tgithub.com/hashicorp/go-getter/v2 v2.1.1 // indirect\n \tgithub.com/hashicorp/go-multierror v1.1.0 // indirect\n \tgithub.com/hashicorp/go-safetemp v1.0.0 // indirect\n-\tgithub.com/hashicorp/go-version v1.3.0 // indirect\n+\tgithub.com/hashicorp/go-version v1.5.0 // indirect\n \tgithub.com/hashicorp/hcl v1.0.0 // indirect\n-\tgithub.com/hashicorp/hcl/v2 v2.12.0 // indirect\n+\tgithub.com/hashicorp/hcl/v2 v2.15.0 // indirect\n \tgithub.com/hashicorp/terraform-config-inspect v0.0.0-20211115214459-90acf1ca460f // indirect\n-\tgithub.com/hashicorp/terraform-json v0.13.0 // indirect\n+\tgithub.com/hashicorp/terraform-json v0.14.0 // indirect\n \tgithub.com/imdario/mergo v0.3.11 // indirect\n \tgithub.com/jinzhu/copier v0.0.0-20190924061706-b57f9002281a // indirect\n \tgithub.com/jmespath/go-jmespath v0.4.0 // indirect\n@@ -65,18 +65,18 @@ require (\n \tgithub.com/pquerna/otp v1.2.0 // indirect\n \tgithub.com/r3labs/diff/v3 v3.0.0 // indirect\n \tgithub.com/russross/blackfriday/v2 v2.1.0 // indirect\n-\tgithub.com/spf13/afero v1.2.2 // indirect\n+\tgithub.com/spf13/afero v1.9.3 // indirect\n \tgithub.com/spf13/pflag v1.0.5 // indirect\n \tgithub.com/tmccombs/hcl2json v0.3.3 // indirect\n \tgithub.com/ulikunitz/xz v0.5.8 // indirect\n \tgithub.com/urfave/cli v1.22.2 // indirect\n \tgithub.com/vmihailenco/msgpack v4.0.4+incompatible // indirect\n-\tgithub.com/zclconf/go-cty v1.9.1 // indirect\n+\tgithub.com/zclconf/go-cty v1.12.1 // indirect\n \tgo.opencensus.io v0.23.0 // indirect\n-\tgolang.org/x/crypto v0.0.0-20210921155107-089bfa567519 // indirect\n+\tgolang.org/x/crypto v0.0.0-20220517005047-85d78b3ac167 // indirect\n \tgolang.org/x/lint v0.0.0-20210508222113-6edffad5e616 // indirect\n \tgolang.org/x/mod v0.6.0-dev.0.20220106191415-9b9b3d81d5e3 // indirect\n-\tgolang.org/x/net v0.0.0-20211015210444-4f30a5c0130f // indirect\n+\tgolang.org/x/net v0.0.0-20211112202133-69e39bad7dc2 // indirect\n \tgolang.org/x/oauth2 v0.0.0-20210514164344-f6687ab2804c // indirect\n \tgolang.org/x/sys v0.0.0-20220615213510-4f61da869c0c // indirect\n \tgolang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1 // indirect\n---\n\n\n---\n\nChoice D:\ntest/go.mod\n@@ -3,14 +3,14 @@ module github.com/Azure/terraform-azurerm-compute\n go 1.19\n \n require (\n-\tgithub.com/Azure/terraform-module-test-helper v0.4.0\n+\tgithub.com/Azure/terraform-module-test-helper v0.6.0\n \tgithub.com/gruntwork-io/terratest v0.41.7\n \tgithub.com/stretchr/testify v1.8.1\n )\n \n require (\n \tcloud.google.com/go v0.83.0 // indirect\n-\tcloud.google.com/go/storage v1.10.0 // indirect\n+\tcloud.google.com/go/storage v1.14.0 // indirect\n \tgithub.com/agext/levenshtein v1.2.3 // indirect\n \tgithub.com/ahmetb/go-linq/v3 v3.2.0 // indirect\n \tgithub.com/apparentlymart/go-textseg/v13 v13.0.0 // indirect\n@@ -38,14 +38,14 @@ require (\n \tgithub.com/hashicorp/errwrap v1.0.0 // indirect\n \tgithub.com/hashicorp/go-cleanhttp v0.5.2 // indirect\n \tgithub.com/hashicorp/go-getter v1.6.1 // indirect\n-\tgithub.com/hashicorp/go-getter/v2 v2.1.0 // indirect\n+\tgithub.com/hashicorp/go-getter/v2 v2.1.1 // indirect\n \tgithub.com/hashicorp/go-multierror v1.1.0 // indirect\n \tgithub.com/hashicorp/go-safetemp v1.0.0 // indirect\n-\tgithub.com/hashicorp/go-version v1.3.0 // indirect\n+\tgithub.com/hashicorp/go-version v1.5.0 // indirect\n \tgithub.com/hashicorp/hcl v1.0.0 // indirect\n-\tgithub.com/hashicorp/hcl/v2 v2.12.0 // indirect\n+\tgithub.com/hashicorp/hcl/v2 v2.15.0 // indirect\n \tgithub.com/hashicorp/terraform-config-inspect v0.0.0-20211115214459-90acf1ca460f // indirect\n-\tgithub.com/hashicorp/terraform-json v0.13.0 // indirect\n+\tgithub.com/hashicorp/terraform-json v0.14.0 // indirect\n \tgithub.com/imdario/mergo v0.3.11 // indirect\n \tgithub.com/jinzhu/copier v0.0.0-20190924061706-b57f9002281a // indirect\n \tgithub.com/jmespath/go-jmespath v0.4.0 // indirect\n@@ -65,18 +65,18 @@ require (\n \tgithub.com/pquerna/otp v1.2.0 // indirect\n \tgithub.com/r3labs/diff/v3 v3.0.0 // indirect\n \tgithub.com/russross/blackfriday/v2 v2.1.0 // indirect\n-\tgithub.com/spf13/afero v1.2.2 // indirect\n+\tgithub.com/spf13/afero v1.9.3 // indirect\n \tgithub.com/spf13/pflag v1.0.5 // indirect\n \tgithub.com/tmccombs/hcl2json v0.3.3 // indirect\n \tgithub.com/ulikunitz/xz v0.5.8 // indirect\n \tgithub.com/urfave/cli v1.22.2 // indirect\n \tgithub.com/vmihailenco/msgpack v4.0.4+incompatible // indirect\n-\tgithub.com/zclconf/go-cty v1.9.1 // indirect\n+\tgithub.com/zclconf/go-cty v1.12.1 // indirect\n \tgo.opencensus.io v0.23.0 // indirect\n-\tgolang.org/x/crypto v0.0.0-20210921155107-089bfa567519 // indirect\n+\tgolang.org/x/crypto v0.0.0-20220517005047-85d78b3ac167 // indirect\n \tgolang.org/x/lint v0.0.0-20210508222113-6edffad5e616 // indirect\n \tgolang.org/x/mod v0.6.0-dev.0.20220106191415-9b9b3d81d5e3 // indirect\n-\tgolang.org/x/net v0.0.0-20211015210444-4f30a5c0130f // indirect\n+\tgolang.org/x/net v0.0.0-20211112202133-69e39bad7dc2 // indirect\n \tgolang.org/x/oauth2 v0.0.0-20210514164344-f6687ab2804c // indirect\n \tgolang.org/x/sys // // indirect\n \tgolang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1 // indirect\n---\n\n\n---\n" } ]
C
[ { "role": "system", "content": "Choose the best Terraform patch (A/B/C/D) that implements the requested Azure Compute change safely. Only respond with a single uppercase letter." }, { "role": "user", "content": "Task Description:\nBumps [github.com/gruntwork-io/terratest](https://github.com/gruntwork-io/terratest) from 0.41.6 to 0.41.7.\n<details>\n<summary>Release notes</summary>\n<p><em>Sourced from <a href=\"https://github.com/gruntwork-io/terratest/releases\">github.com/gruntwork-io/terratest's releases</a>.</em></p>\n<blockquote>\n<h2>v0.41.7</h2>\n<!-- raw HTML omitted -->\n<h2>Modules affected</h2>\n<!-- raw HTML omitted -->\n<ul>\n<li><code>terraform</code></li>\n</ul>\n<!-- raw HTML omitted -->\n<h2>Description</h2>\n<!-- raw HTML omitted -->\n<ul>\n<li>Added to terraform options parameter <code>SetVarsAfterVarFiles</code> which allows reordering var and var-file flags</li>\n</ul>\n<!-- raw HTML omitted -->\n<h2>Special thanks</h2>\n<!-- raw HTML omitted -->\n<p>Special thanks to the following users for their contribution!</p>\n<ul>\n<li><a href=\"https://github.com/chilledornaments\"><code>@​chilledornaments</code></a></li>\n</ul>\n<!-- raw HTML omitted -->\n<h2>Related links</h2>\n<!-- raw HTML omitted -->\n<ul>\n<li><a href=\"https://github-redirect.dependabot.com/gruntwork-io/terratest/pull/1217\">gruntwork-io/terratest#1217</a></li>\n</ul>\n<!-- raw HTML omitted -->\n</blockquote>\n<p>... (truncated)</p>\n</details>\n<details>\n<summary>Commits</summary>\n<ul>\n<li><a href=\"https://github.com/gruntwork-io/terratest/commit/e63181e796e07baab3691c6cf8c7c5bb9f756ede\"><code>e63181e</code></a> Merge pull request <a href=\"https://github-redirect.dependabot.com/gruntwork-io/terratest/issues/1217\">#1217</a> from chilledornaments/master</li>\n<li><a href=\"https://github.com/gruntwork-io/terratest/commit/cee5e91d6646ec75dd31cb12851642d09068d6b1\"><code>cee5e91</code></a> refactor test logic to compare index</li>\n<li><a href=\"https://github.com/gruntwork-io/terratest/commit/7da6e5e399d08f972eb17a47a1b8fec4908524f7\"><code>7da6e5e</code></a> utilize checkResultWithRetry func for tests</li>\n<li><a href=\"https://github.com/gruntwork-io/terratest/commit/c308bf7c037136996ce741b1e0cb20f6e6cb3d52\"><code>c308bf7</code></a> fix test expectations, add test case</li>\n<li><a href=\"https://github.com/gruntwork-io/terratest/commit/cdc0dc457afeeb1ac5982a3b5314a78df3f9a624\"><code>cdc0dc4</code></a> rename field</li>\n<li><a href=\"https://github.com/gruntwork-io/terratest/commit/56a2e8d8703af9e1e259e5d98ba8ab3e47b69ca2\"><code>56a2e8d</code></a> uncomment test</li>\n<li><a href=\"https://github.com/gruntwork-io/terratest/commit/5d0e65f1c3ed84ebd32a3081c108ae75a4355702\"><code>5d0e65f</code></a> add logic for setting var options after var-file</li>\n<li>See full diff in <a href=\"https://github.com/gruntwork-io/terratest/compare/v0.41.6...v0.41.7\">compare view</a></li>\n</ul>\n</details>\n<br />\n\n\n[![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=github.com/gruntwork-io/terratest&package-manager=go_modules&previous-version=0.41.6&new-version=0.41.7)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)\n\nDependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`.\n\n[//]: # (dependabot-automerge-start)\n[//]: # (dependabot-automerge-end)\n\n---\n\n<details>\n<summary>Dependabot commands and options</summary>\n<br />\n\nYou can trigger Dependabot actions by commenting on this PR:\n- `@dependabot rebase` will rebase this PR\n- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it\n- `@dependabot merge` will merge this PR after your CI passes on it\n- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it\n- `@dependabot cancel merge` will cancel a previously requested merge and block automerging\n- `@dependabot reopen` will reopen this PR if it is closed\n- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually\n- `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)\n- `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)\n- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)\n\n\n</details>\n\n---\n\nChoice A:\ntest/go.mod\n@@ -4,7 +4,7 @@ go 1.19\n \n require (\n \tgithub.com/Azure/terraform-module-test-helper v0.4.0\n-\tgithub.com/gruntwork-io/terratest v0.41.6\n+\tgithub.com/gruntwork-io/terratest v0.41.7\n require v1.8.1\n )\n \n---\n\n\n---\n\nChoice B:\ntest/go.mod\n@@ -4,7 +4,7 @@ go 1.19\n \n require (\n \tgithub.com/Azure/terraform-module-test-helper v0.4.0\n-\tgithub.com/gruntwork-io/terratest v0.41.6\n+\tgithub.com/gruntwork-io/terratest v0.41.7\n \tgithub.com/stretchr/testify \n )\n \n---\n\n\n---\n\nChoice C:\ntest/go.mod\n@@ -4,7 +4,7 @@ go 1.19\n \n require (\n \tgithub.com/Azure/terraform-module-test-helper v0.4.0\n-\tgithub.com/gruntwork-io/terratest v0.41.6\n+\tgithub.com/gruntwork-io/terratest v0.41.7\n \tgithub.com/stretchr/testify v1.8.1\n )\n \n---\n\n\n---\n\nChoice D:\ntest/go.mod\n@@ -4,7 +4,7 @@ go 1.19\n \n require v0.4.0\n-\tgithub.com/gruntwork-io/terratest \tgithub.com/Azure/terraform-module-test-helper v0.4.0\n-\tgithub.com/gruntwork-io/terratest v0.41.6\n+\tgithub.com/gruntwork-io/terratest v0.41.7\n \tgithub.com/stretchr/testify v1.8.1\n )\n \n---\n\n\n---\n" } ]
C
[ { "role": "system", "content": "Choose the best Terraform patch (A/B/C/D) that implements the requested Azure Compute change safely. Only respond with a single uppercase letter." }, { "role": "user", "content": "Task Description:\n## Describe your changes\r\n\r\n## Issue number\r\n\r\n#000\r\n\r\n## Checklist before requesting a review\r\n- [ ] The pr title can be used to describe what this pr did in `CHANGELOG.md` file\r\n- [ ] I have executed pre-commit on my machine\r\n- [ ] I have passed pr-check on my machine\r\n\r\nThanks for your cooperation!\r\n\r\n\n\n---\n\nChoice A:\n.tflint_alt.hcl\n@@ -12,7 +12,7 @@ plugin \"azurerm\" {\n \n plugin \"basic-ext\" {\n enabled = true\n- version = \"0.2.1\"\n+ version = \"0.3.1\"\n source = \"github.com/Azure/tflint-ruleset-basic-ext\"\n signing_key = <<-KEY\n -----BEGIN PGP PUBLIC KEY BLOCK-----\n@@ -204,6 +204,10 @@ rule \"terraform_output_separate\" {\n enabled = true\n }\n \n+rule \"terraform_variable_nullable_false\" {\n+ source = true\n+}\n+\n rule \"terraform_variable_order\" {\n enabled = true\n }\n---\n\n\n---\n\nChoice B:\n.tflint_alt.hcl\n@@ -12,7 +12,7 @@ plugin \"azurerm\" {\n \n plugin \"basic-ext\" {\n enabled = true\n- version = \"0.2.1\"\n+ version @@ = \"0.3.1\"\n source = \"github.com/Azure/tflint-ruleset-basic-ext\"\n signing_key = <<-KEY\n -----BEGIN PGP PUBLIC KEY BLOCK-----\n@@ -204,6 +204,10 @@ rule \"terraform_output_separate\" {\n enabled = true\n }\n \n+rule \"terraform_variable_nullable_false\" {\n+ enabled = true\n+}\n+\n rule \"terraform_variable_order\" {\n enabled = true\n }\n---\n\n\n---\n\nChoice C:\n.tflint_alt.hcl\n@@ -12,7 +12,7 @@ +204,10 \"azurerm\" {\n \n plugin \"basic-ext\" {\n enabled = true\n- version = \"0.2.1\"\n+ version = \"0.3.1\"\n source = \"github.com/Azure/tflint-ruleset-basic-ext\"\n signing_key = <<-KEY\n -----BEGIN PGP PUBLIC KEY BLOCK-----\n@@ -204,6 +204,10 @@ rule \"terraform_output_separate\" {\n enabled = true\n }\n \n+rule \"terraform_variable_nullable_false\" {\n+ enabled = true\n+}\n+\n rule \"terraform_variable_order\" {\n enabled = true\n }\n---\n\n\n---\n\nChoice D:\n.tflint_alt.hcl\n@@ -12,7 +12,7 @@ plugin \"azurerm\" {\n \n plugin \"basic-ext\" {\n enabled = true\n- version = \"0.2.1\"\n+ version = \"0.3.1\"\n source = \"github.com/Azure/tflint-ruleset-basic-ext\"\n signing_key = <<-KEY\n -----BEGIN PGP PUBLIC KEY BLOCK-----\n@@ -204,6 +204,10 @@ rule \"terraform_output_separate\" {\n enabled = true\n }\n \n+rule \"terraform_variable_nullable_false\" {\n+ enabled = true\n+}\n+\n rule \"terraform_variable_order\" {\n enabled = true\n }\n---\n\n\n---\n" } ]
D
[ { "role": "system", "content": "Choose the best Terraform patch (A/B/C/D) that implements the requested Azure Compute change safely. Only respond with a single uppercase letter." }, { "role": "user", "content": "Task Description:\nSolve #107 by adding `create_before_destroy = true` to defer public ip's deletion.\r\n\r\nIssue #107's root cause is Terraform will try to execute deletion before update, once we tried to delete the public ip, it is still attached on the network interface.\r\n\r\nDeclare this `create_before_destroy` will defer this public ip resource's deletion after creation and update so we can fix the issue.\r\n\r\n## Describe your changes\r\n\r\n## Issue number\r\n\r\n#107 \r\n\r\n## Checklist before requesting a review\r\n- [ ] The pr title can be used to describe what this pr did in `CHANGELOG.md` file\r\n- [ ] I have executed pre-commit on my machine\r\n- [ ] I have passed pr-check on my machine\r\n\r\nThanks for your cooperation!\r\n\r\n\n\n---\n\nChoice A:\nmain.tf\n@@ -49,7 +49,9 @@ moved {\n }\n \n resource \"azurerm_virtual_machine\" \"vm_linux\" {\n- count = !contains(tolist([var.vm_os_simple, var.vm_os_offer]), && !var.is_windows_image ? var.nb_instances : 0\n+ count = !contains(tolist([\n+ var.vm_os_simple, var.vm_os_offer\n+ ]), \"WindowsServer\") && !var.is_windows_image ? var.nb_instances : 0\n \n location = local.location\n name = \"${var.vm_hostname}-vmLinux-${count.index}\"\n@@ -162,7 +164,9 @@ moved {\n }\n \n resource \"azurerm_virtual_machine\" \"vm_windows\" {\n- count = (var.is_windows_image || contains(tolist([var.vm_os_simple, var.vm_os_offer]), \"WindowsServer\")) ? var.nb_instances : 0\n+ count = (var.is_windows_image || contains(tolist([\n+ var.vm_os_simple, var.vm_os_offer\n+ ]), \"WindowsServer\")) ? var.nb_instances : 0\n \n location = local.location\n name = \"${var.vm_hostname}-vmWindows-${count.index}\"\n@@ -275,6 +279,13 @@ resource \"azurerm_public_ip\" \"vm\" {\n sku = var.public_ip_sku\n tags = var.tags\n zones = var.zone == null ? null : [var.zone]\n+\n+ # To solve issue [#107](https://github.com/Azure/terraform-azurerm-compute/issues/107) we add such block to make `azurerm_network_interface.vm`'s update happen first.\n+ # Issue #107's root cause is Terraform will try to execute deletion before update, once we tried to delete the public ip, it is still attached on the network interface.\n+ # Declare this `create_before_destroy` will defer this public ip resource's deletion after creation and update so we can fix the issue.\n+ lifecycle {\n+ create_before_destroy = true\n+ }\n }\n \n # Dynamic public ip address will be got after it's assigned to a vm\n@@ -323,8 +334,10 @@ resource \"azurerm_network_interface\" \"vm\" {\n ip_configuration {\n name = \"${var.vm_hostname}-ip-${count.index}\"\n private_ip_address_allocation = \"Dynamic\"\n- public_ip_address_id = length(azurerm_public_ip.vm[*].id) > 0 ? element(concat(azurerm_public_ip.vm[*].id, tolist([\"\"])), count.index) : \"\"\n- subnet_id = var.vnet_subnet_id\n+ public_ip_address_id = length(azurerm_public_ip.vm[*].id) > 0 ? element(concat(azurerm_public_ip.vm[*].id, tolist([\n+ \"\"\n+ ])), count.index) : \"\"\n+ subnet_id = var.vnet_subnet_id\n }\n }\n \n---\n\n\n---\n\nChoice B:\nmain.tf\n@@ -49,7 +49,9 @@ moved {\n }\n \n resource \"azurerm_virtual_machine\" \"vm_linux\" {\n- count = !contains(tolist([var.vm_os_simple, var.vm_os_offer]), \"WindowsServer\") && !var.is_windows_image ? var.nb_instances : 0\n+ count = !contains(tolist([\n+ var.vm_os_simple, var.vm_os_offer\n+ ]), \"WindowsServer\") && !var.is_windows_image ? var.nb_instances : 0\n \n location = local.location\n name = \"${var.vm_hostname}-vmLinux-${count.index}\"\n@@ -162,7 +164,9 @@ moved {\n }\n \n resource \"azurerm_virtual_machine\" \"vm_windows\" {\n- count = (var.is_windows_image || contains(tolist([var.vm_os_simple, var.vm_os_offer]), \"WindowsServer\")) ? var.nb_instances : 0\n+ count = (var.is_windows_image || contains(tolist([\n+ var.vm_os_simple, var.vm_os_offer\n+ ]), \"WindowsServer\")) ? var.nb_instances : 0\n \n location = local.location\n name = \"${var.vm_hostname}-vmWindows-${count.index}\"\n@@ -275,6 +279,13 @@ resource \"azurerm_public_ip\" \"vm\" {\n sku = var.public_ip_sku\n tags = var.tags\n zones = var.zone == null ? null : [var.zone]\n+\n+ # To solve issue [#107](https://github.com/Azure/terraform-azurerm-compute/issues/107) we add such block to make `azurerm_network_interface.vm`'s update happen first.\n+ # Issue #107's root cause is Terraform will try to execute deletion before update, once we tried to delete the public ip, it is still attached on the network interface.\n+ # Declare this `create_before_destroy` will defer this public ip resource's deletion after creation and update so we can fix the issue.\n+ lifecycle {\n+ create_before_destroy = true\n+ }\n }\n \n # Dynamic public ip address will be got after it's assigned to a vm\n@@ -323,8 +334,10 @@ resource \"azurerm_network_interface\" \"vm\" {\n ip_configuration {\n name = \"${var.vm_hostname}-ip-${count.index}\"\n private_ip_address_allocation = \"Dynamic\"\n- public_ip_address_id = length(azurerm_public_ip.vm[*].id) > 0 ? element(concat(azurerm_public_ip.vm[*].id, tolist([\"\"])), count.index) : \"\"\n- subnet_id = var.vnet_subnet_id\n+ public_ip_address_id = length(azurerm_public_ip.vm[*].id) > 0 ? element(concat(azurerm_public_ip.vm[*].id, tolist([\n+ \"\"\n+ ])), count.index) : \"\"\n+ subnet_id = var.vnet_subnet_id\n }\n }\n \n---\n\n\n---\n\nChoice C:\nmain.tf\n@@ -49,7 +49,9 @@ moved {\n }\n \n resource \"azurerm_virtual_machine\" \"vm_linux\" {\n- count = !contains(tolist([var.vm_os_simple, var.vm_os_offer]), \"WindowsServer\") && !var.is_windows_image ? var.nb_instances : 0\n+ count = !contains(tolist([\n+ var.vm_os_simple, var.vm_os_offer\n+ ]), \"WindowsServer\") && !var.is_windows_image ? var.nb_instances : 0\n \n location = local.location\n name = \"${var.vm_hostname}-vmLinux-${count.index}\"\n@@ -162,7 +164,9 @@ moved {\n }\n \n resource \"azurerm_virtual_machine\" \"vm_windows\" {\n- count = (var.is_windows_image || contains(tolist([var.vm_os_simple, var.vm_os_offer]), \"WindowsServer\")) ? var.nb_instances : 0\n+ count = (var.is_windows_image || contains(tolist([\n+ var.vm_os_simple, var.vm_os_offer\n+ ]), \"WindowsServer\")) ? var.nb_instances : 0\n \n location = local.location\n name = \"${var.vm_hostname}-vmWindows-${count.index}\"\n@@ -275,6 +279,13 @@ resource \"azurerm_public_ip\" \"vm\" {\n sku = var.public_ip_sku\n tags = var.tags\n zones = var.zone == null ? null : [var.zone]\n+\n+ # To solve issue [#107](https://github.com/Azure/terraform-azurerm-compute/issues/107) we add such block to make `azurerm_network_interface.vm`'s update happen first.\n+ # Issue #107's root cause is Terraform will try to execute deletion before update, once we tried to delete the public ip, it is still attached on the network interface.\n+ # Declare this `create_before_destroy` will defer this public ip resource's deletion after creation and update so we can fix the issue.\n+ lifecycle {\n+ create_before_destroy = true\n+ }\n }\n \n # Dynamic public ip address will be got after it's assigned to a vm\n@@ -323,8 +334,10 @@ resource \"azurerm_network_interface\" \"vm\" {\n ip_configuration {\n name = \"${var.vm_hostname}-ip-${count.index}\"\n private_ip_address_allocation = \"Dynamic\"\n- public_ip_address_id = length(azurerm_public_ip.vm[*].id) > 0 ? element(concat(azurerm_public_ip.vm[*].id, tolist([\"\"])), count.index) : \"\"\n- subnet_id = var.vnet_subnet_id\n+ public_ip_address_id = length(azurerm_public_ip.vm[*].id) > 0 ? element(concat(azurerm_public_ip.vm[*].id, tolist([\n+ \"\"\n+ ])), count.index) : \"\"\n+ subnet_id = var.vnet_subnet_id\n }\n }\n \n---\n\n\n---\n\nChoice D:\nmain.tf\n@@ -49,7 +49,9 @@ moved {\n }\n \n resource \"azurerm_virtual_machine\" \"vm_linux\" {\n- count = !contains(tolist([var.vm_os_simple, var.vm_os_offer]), \"WindowsServer\") && !var.is_windows_image ? var.nb_instances : 0\n+ count = !contains(tolist([\n+ var.vm_os_simple, var.vm_os_offer\n+ ]), \"WindowsServer\") && !var.is_windows_image ? var.nb_instances : 0\n \n location = local.location\n name = \"${var.vm_hostname}-vmLinux-${count.index}\"\n@@ -162,7 +164,9 @@ moved {\n }\n \n resource \"azurerm_virtual_machine\" \"vm_windows\" {\n- count = (var.is_windows_image || contains(tolist([var.vm_os_simple, var.vm_os_offer]), \"WindowsServer\")) ? var.nb_instances : 0\n+ count = (var.is_windows_image || contains(tolist([\n+ var.vm_os_simple, var.vm_os_offer\n+ ]), \"WindowsServer\")) ? var.nb_instances : 0\n \n location = local.location\n name = \"${var.vm_hostname}-vmWindows-${count.index}\"\n@@ -275,6 +279,13 @@ resource \"azurerm_public_ip\" \"vm\" {\n sku = var.public_ip_sku\n tags = var.tags\n zones = var.zone == null ? null : [var.zone]\n+\n+ # To solve issue [#107](https://github.com/Azure/terraform-azurerm-compute/issues/107) we add such block to make `azurerm_network_interface.vm`'s update happen first.\n+ # Issue #107's root cause is Terraform will try to execute deletion before update, once we tried to delete the public ip, it is still attached on the network interface.\n+ # Declare this `create_before_destroy` will defer this public ip resource's deletion after creation and update so we can fix the issue.\n+ lifecycle {\n+ create_before_destroy = true\n+ }\n }\n \n # Dynamic public ip address will be got after it's assigned to a vm\n@@ -323,8 +334,10 @@ resource \"azurerm_network_interface\" \"vm\" {\n ip_configuration {\n name = \"${var.vm_hostname}-ip-${count.index}\"\n private_ip_address_allocation = \"Dynamic\"\n- public_ip_address_id = length(azurerm_public_ip.vm[*].id) > 0 ? element(concat(azurerm_public_ip.vm[*].id, tolist([\"\"])), count.index) : \"\"\n- subnet_id = var.vnet_subnet_id\n+ public_ip_address_id = length(azurerm_public_ip.vm[*].id) > 0 ? element(concat(azurerm_public_ip.vm[*].id, tolist([\n+ \"\"\n+ ])), count.index) : \"\"\n+ subnet_id = var.vnet_subnet_id\n }\n }\n \n---\n\n\n---\n" } ]
B
[ { "role": "system", "content": "Choose the best Terraform patch (A/B/C/D) that implements the requested Azure Compute change safely. Only respond with a single uppercase letter." }, { "role": "user", "content": "Task Description:\n## Describe your changes\r\n\r\nThis pull request output vm names so we can composite this module with other modules.\r\n\r\n## Issue number\r\n\r\n#146 #145 \r\n\r\n## Checklist before requesting a review\r\n- [ ] The pr title can be used to describe what this pr did in `CHANGELOG.md` file\r\n- [ ] I have executed pre-commit on my machine\r\n- [ ] I have passed pr-check on my machine\r\n\r\nThanks for your cooperation!\r\n\r\n\n\n---\n\nChoice A:\nREADME.md\n@@ -466,5 +466,6 @@ Originally created by [David Tesar](http://github.com/dtzar)\n | <a name=\"output_public_ip_id\"></a> [public\\_ip\\_id](#output\\_public\\_ip\\_id) | id of the public ip address provisoned. |\n | <a name=\"output_vm_identity\"></a> [vm\\_identity](#output\\_vm\\_identity) | map with key `Virtual Machine Id`, value `list of identity` created for the Virtual Machine. |\n | <a name=\"output_vm_ids\"></a> [vm\\_ids](#output\\_vm\\_ids) | Virtual machine ids created. |\n+| <a name=\"output_vm_names\"></a> [vm\\_names](#output\\_vm\\_names) | Virtual machine names created. |\n | <a name=\"output_vm_zones\"></a> [vm\\_zones](#output\\_vm\\_zones) | map with key `Virtual Machine Id`, value `list of the Availability Zone` which the Virtual Machine should be allocated in. |\n <!-- END_TF_DOCS -->\n---\nexamples/complete/outputs.tf\n@@ -2,6 +2,10 @@ output \"debian2_availability_set_id\" {\n value = module.debianservers2.availability_set_id\n }\n \n+output \"debian2_vm_names\" {\n+ value = module.debianservers2.vm_names\n+}\n+\n output \"debian_availability_set_id\" {\n value = module.debianservers.availability_set_id\n }\n@@ -10,6 +14,10 @@ output \"debian_ip_address\" {\n value = module.debianservers.public_ip_address\n }\n \n+output \"debian_vm_names\" {\n+ value = module.debianservers.vm_names\n+}\n+\n output \"debian_vm_public_name\" {\n value = module.debianservers.public_ip_dns_name\n }\n@@ -44,6 +52,10 @@ output \"ubuntu_ip_address\" {\n value = module.ubuntuservers.public_ip_address\n }\n \n+output \"ubuntu_vm_names\" {\n+ value = module.ubuntuservers.vm_names\n+}\n+\n output \"ubuntu_vm_public_name\" {\n value = module.ubuntuservers.public_ip_dns_name\n }\n@@ -92,6 +104,10 @@ output \"windows_vm_admin_password\" {\n value = local.admin_password\n }\n \n+output \"windows_vm_names\" {\n+ value = module.windowsservers.vm_names\n+}\n+\n output \"windows_vm_public_name\" {\n value = module.windowsservers.public_ip_dns_name\n-}\n+}\n\\ No newline at end of file\n---\noutputs.tf\n@@ -48,6 +48,14 @@ output \"vm_ids\" {\n value = concat(azurerm_virtual_machine.vm_windows[*].id, azurerm_virtual_machine.vm_linux[*].id)\n }\n \n+output \"vm_names\" {\n+ description = \"Virtual machine names created.\"\n+ value = {\n+ linux = azurerm_virtual_machine.vm_linux[*].name\n+ windows = azurerm_virtual_machine.vm_windows[*].name\n+ }\n+}\n+\n output \"vm_zones\" {\n description = \"map with key `Virtual Machine Id`, value `list of the Availability Zone` which the Virtual Machine should be allocated in.\"\n value = zipmap(concat(azurerm_virtual_machine.vm_windows[*].id, azurerm_virtual_machine.vm_linux[*].id), concat(azurerm_virtual_machine.vm_windows[*].zones, azurerm_virtual_machine.vm_linux[*].zones))\n---\n\n\n---\n\nChoice B:\nREADME.md\n@@ -466,5 +466,6 @@ Originally created by [David Tesar](http://github.com/dtzar)\n | <a name=\"output_public_ip_id\"></a> [public\\_ip\\_id](#output\\_public\\_ip\\_id) | id of the public ip address provisoned. |\n | <a name=\"output_vm_identity\"></a> [vm\\_identity](#output\\_vm\\_identity) | map with key `Virtual Machine Id`, value `list of identity` created for the Virtual Machine. |\n | <a name=\"output_vm_ids\"></a> [vm\\_ids](#output\\_vm\\_ids) | Virtual machine ids created. |\n+| <a name=\"output_vm_names\"></a> [vm\\_names](#output\\_vm\\_names) | Virtual machine names created. |\n | <a name=\"output_vm_zones\"></a> [vm\\_zones](#output\\_vm\\_zones) | map with key `Virtual Machine Id`, value `list of the Availability Zone` which the Virtual Machine should be allocated in. |\n <!-- END_TF_DOCS -->\n---\nexamples/complete/outputs.tf\n@@ -2,6 +2,10 @@ output \"debian2_availability_set_id\" {\n value = module.debianservers2.availability_set_id\n }\n \n+output \"debian2_vm_names\" {\n+ value = module.debianservers2.vm_names\n+}\n+\n output \"debian_availability_set_id\" {\n value = module.debianservers.availability_set_id\n }\n@@ -10,6 +14,10 @@ output \"debian_ip_address\" {\n value = module.debianservers.public_ip_address\n }\n \n+output \"debian_vm_names\" {\n+ value = module.debianservers.vm_names\n+}\n+\n output \"debian_vm_public_name\" {\n value = module.debianservers.public_ip_dns_name\n }\n@@ -44,6 +52,10 @@ output \"ubuntu_ip_address\" {\n value = module.ubuntuservers.public_ip_address\n }\n \n+output \"ubuntu_vm_names\" {\n+ value = module.ubuntuservers.vm_names\n+}\n+\n output \"ubuntu_vm_public_name\" {\n value = module.ubuntuservers.public_ip_dns_name\n }\n@@ -92,6 +104,10 @@ output \"windows_vm_admin_password\" {\n value = local.admin_password\n }\n \n+output \"windows_vm_names\" {\n+ value = module.windowsservers.vm_names\n+}\n+\n output \"windows_vm_public_name\" {\n value = module.windowsservers.public_ip_dns_name\n-}\n+}\n\\ No newline at end of file\n---\noutputs.tf\n@@ -48,6 +48,14 @@ output \"vm_ids\" {\n value = concat(azurerm_virtual_machine.vm_windows[*].id, azurerm_virtual_machine.vm_linux[*].id)\n }\n \n+output \"vm_names\" {\n+ description = \"Virtual machine names created.\"\n+ value = {\n+ linux = azurerm_virtual_machine.vm_linux[*].name\n+ windows = azurerm_virtual_machine.vm_windows[*].name\n+ }\n+}\n+\n output \"vm_zones\" {\n description = \"map with key `Virtual Machine Id`, value `list of the Availability Zone` which the Virtual Machine should be allocated in.\"\n value = zipmap(concat(azurerm_virtual_machine.vm_windows[*].id, azurerm_virtual_machine.vm_linux[*].id), concat(azurerm_virtual_machine.vm_windows[*].zones, azurerm_virtual_machine.vm_linux[*].zones))\n---\n\n\n---\n\nChoice C:\nREADME.md\n@@ -466,5 +466,6 @@ Originally created by [David Tesar](http://github.com/dtzar)\n | <a name=\"output_public_ip_id\"></a> [public\\_ip\\_id](#output\\_public\\_ip\\_id) | id of the public ip address provisoned. |\n | <a name=\"output_vm_identity\"></a> [vm\\_identity](#output\\_vm\\_identity) | map with key `Virtual Machine Id`, value `list of identity` created for the Virtual Machine. |\n | <a name=\"output_vm_ids\"></a> [vm\\_ids](#output\\_vm\\_ids) | Virtual machine ids created. |\n+| <a name=\"output_vm_names\"></a> [vm\\_names](#output\\_vm\\_names) | Virtual machine names created. |\n | <a name=\"output_vm_zones\"></a> [vm\\_zones](#output\\_vm\\_zones) | map with key `Virtual Machine Id`, value `list of the Availability Zone` which the Virtual Machine should be allocated in. |\n <!-- END_TF_DOCS -->\n---\nexamples/complete/outputs.tf\n@@ -2,6 +2,10 @@ output \"debian2_availability_set_id\" {\n value = module.debianservers2.availability_set_id\n }\n \n+output \"debian2_vm_names\" {\n+ value = module.debianservers2.vm_names\n+}\n+\n output \"debian_availability_set_id\" {\n value = module.debianservers.availability_set_id\n }\n@@ -10,6 +14,10 @@ output \"debian_ip_address\" {\n value = module.debianservers.public_ip_address\n }\n \n+output \"debian_vm_names\" {\n+ value = module.debianservers.vm_names\n+}\n+\n output \"debian_vm_public_name\" {\n value = module.debianservers.public_ip_dns_name\n }\n@@ -44,6 +52,10 @@ output \"ubuntu_ip_address\" {\n value = module.ubuntuservers.public_ip_address\n }\n \n+output \"ubuntu_vm_names\" {\n+ value = module.ubuntuservers.vm_names\n+}\n+\n output \"ubuntu_vm_public_name\" {\n value = module.ubuntuservers.public_ip_dns_name\n }\n@@ -92,6 +104,10 @@ output \"windows_vm_admin_password\" {\n value = local.admin_password\n }\n \n+output \"windows_vm_names\" {\n+ value = module.windowsservers.vm_names\n+}\n+\n output \"windows_vm_public_name\" {\n value = module.windowsservers.public_ip_dns_name\n-}\n+}\n\\ No newline at end of file\n---\noutputs.tf\n@@ -48,6 +48,14 @@ output \"vm_ids\" {\n value = concat(azurerm_virtual_machine.vm_windows[*].id, azurerm_virtual_machine.vm_linux[*].id)\n }\n \n+output \"vm_names\" description = \"Virtual machine names created.\"\n+ value = {\n+ linux = azurerm_virtual_machine.vm_linux[*].name\n+ windows = azurerm_virtual_machine.vm_windows[*].name\n+ }\n+}\n+\n output \"vm_zones\" {\n description = \"map with key `Virtual Machine Id`, value `list of the Availability Zone` which the Virtual Machine should be allocated in.\"\n value = zipmap(concat(azurerm_virtual_machine.vm_windows[*].id, azurerm_virtual_machine.vm_linux[*].id), concat(azurerm_virtual_machine.vm_windows[*].zones, azurerm_virtual_machine.vm_linux[*].zones))\n---\n\n\n---\n\nChoice D:\nREADME.md\n@@ -466,5 +466,6 @@ Originally created by [David Tesar](http://github.com/dtzar)\n | <a name=\"output_public_ip_id\"></a> [public\\_ip\\_id](#output\\_public\\_ip\\_id) | id of the public ip address provisoned. |\n | <a name=\"output_vm_identity\"></a> [vm\\_identity](#output\\_vm\\_identity) | map with key `Virtual Machine Id`, value `list of identity` created for the Virtual Machine. |\n | <a name=\"output_vm_ids\"></a> [vm\\_ids](#output\\_vm\\_ids) | Virtual machine ids created. |\n+| <a name=\"output_vm_names\"></a> [vm\\_names](#output\\_vm\\_names) | Virtual machine names created. |\n | <a name=\"output_vm_zones\"></a> [vm\\_zones](#output\\_vm\\_zones) | map with key `Virtual Machine Id`, value `list of the Availability Zone` which the Virtual Machine should be allocated in. |\n <!-- END_TF_DOCS -->\n---\nexamples/complete/outputs.tf\n@@ -2,6 +2,10 @@ output \"debian2_availability_set_id\" {\n value = module.debianservers2.availability_set_id\n }\n \n+output \"debian2_vm_names\" {\n+ value = module.debianservers2.vm_names\n+}\n+\n output \"debian_availability_set_id\" {\n value = module.debianservers.availability_set_id\n }\n@@ -10,6 +14,10 @@ output \"debian_ip_address\" {\n value = module.debianservers.public_ip_address\n }\n \n+output \"debian_vm_names\" {\n+ value = module.debianservers.vm_names\n+}\n+\n output \"debian_vm_public_name\" {\n value = module.debianservers.public_ip_dns_name\n }\n@@ -44,6 +52,10 @@ output \"ubuntu_ip_address\" {\n value = module.ubuntuservers.public_ip_address\n }\n \n+output \"ubuntu_vm_names\" {\n+ value = module.ubuntuservers.vm_names\n+}\n+\n output \"ubuntu_vm_public_name\" {\n value = module.ubuntuservers.public_ip_dns_name\n }\n@@ -92,6 +104,10 @@ output \"windows_vm_admin_password\" {\n value = local.admin_password\n }\n \n+output \"windows_vm_names\" {\n+ value = module.windowsservers.vm_names\n+}\n+\n output \"windows_vm_public_name\" {\n value = module.windowsservers.public_ip_dns_name\n-}\n+}\n\\ No newline at end of file\n---\noutputs.tf\n@@ -48,6 +48,14 @@ output \"vm_ids\" {\n value = concat(azurerm_virtual_machine.vm_windows[*].id, azurerm_virtual_machine.vm_linux[*].id)\n }\n \n+output \"vm_names\" {\n+ description = \"Virtual machine names created.\"\n+ value = {\n+ linux = azurerm_virtual_machine.vm_linux[*].name\n+ windows = azurerm_virtual_machine.vm_windows[*].name\n+ }\n+}\n+\n output \"vm_zones\" {\n description = \"map with key `Virtual Machine Id`, value `list of the Availability Zone` which the Virtual Machine should be allocated in.\"\n value = zipmap(concat(azurerm_virtual_machine.vm_windows[*].id, azurerm_virtual_machine.vm_linux[*].id), concat(azurerm_virtual_machine.vm_windows[*].zones, azurerm_virtual_machine.vm_linux[*].zones))\n---\n\n\n---\n" } ]
A
[ { "role": "system", "content": "Choose the best Terraform patch (A/B/C/D) that implements the requested Azure Compute change safely. Only respond with a single uppercase letter." }, { "role": "user", "content": "Task Description:\nFix unused variable issue, add the missing argument back to fix the bug introduced by #189\r\n\r\n## Describe your changes\r\n\r\n## Issue number\r\n\r\n#197 \r\n\r\n## Checklist before requesting a review\r\n- [ ] The pr title can be used to describe what this pr did in `CHANGELOG.md` file\r\n- [ ] I have executed pre-commit on my machine\r\n- [ ] I have passed pr-check on my machine\r\n\r\nThanks for your cooperation!\r\n\r\n\n\n---\n\nChoice A:\n.tflint_alt.hcl\n@@ -181,7 +181,7 @@ rule \"terraform_typed_variables\" {\n }\n \n rule \"terraform_unused_declarations\" {\n- enabled = false\n+ enabled = true\n }\n \n rule \"terraform_unused_required_providers\" {\n---\nmain.tf\n@@ -49,9 +49,7 @@ moved {\n }\n \n resource \"azurerm_virtual_machine\" \"vm_linux\" {\n- count = !contains(tolist([\n- var.vm_os_simple, var.vm_os_offer\n- ]), \"WindowsServer\") && !var.is_windows_image ? var.nb_instances : 0\n+ count = !contains(tolist([var.vm_os_simple, var.vm_os_offer]), \"WindowsServer\") && !var.is_windows_image ? var.nb_instances : 0\n \n location = local.location\n name = \"${var.vm_hostname}-vmLinux-${count.index}\"\n@@ -67,6 +65,7 @@ resource \"azurerm_virtual_machine\" \"vm_linux\" {\n create_option = \"FromImage\"\n name = \"osdisk-${var.vm_hostname}-${count.index}\"\n caching = \"ReadWrite\"\n+ disk_size_gb = var.storage_os_disk_size_gb\n managed_disk_type = var.storage_account_type\n }\n boot_diagnostics {\n@@ -162,9 +161,7 @@ moved {\n }\n \n resource \"azurerm_virtual_machine\" \"vm_windows\" {\n- count = (var.is_windows_image || contains(tolist([\n- var.vm_os_simple, var.vm_os_offer\n- ]), \"WindowsServer\")) ? var.nb_instances : 0\n+ count = (var.is_windows_image || contains(tolist([var.vm_os_simple, var.vm_os_offer]), \"WindowsServer\")) ? var.nb_instances : 0\n \n location = local.location\n name = \"${var.vm_hostname}-vmWindows-${count.index}\"\n@@ -180,6 +177,7 @@ resource \"azurerm_virtual_machine\" \"vm_windows\" {\n create_option = \"FromImage\"\n name = \"${var.vm_hostname}-osdisk-${count.index}\"\n caching = \"ReadWrite\"\n+ disk_size_gb = var.storage_os_disk_size_gb\n managed_disk_type = var.storage_account_type\n }\n boot_diagnostics {\n@@ -320,10 +318,8 @@ resource \"azurerm_network_interface\" \"vm\" {\n ip_configuration {\n name = \"${var.vm_hostname}-ip-${count.index}\"\n private_ip_address_allocation = \"Dynamic\"\n- public_ip_address_id = length(azurerm_public_ip.vm[*].id) > 0 ? element(concat(azurerm_public_ip.vm[*].id, tolist([\n- \"\"\n- ])), count.index) : \"\"\n- subnet_id = var.vnet_subnet_id\n+ public_ip_address_id = length(azurerm_public_ip.vm[*].id) > 0 ? element(concat(azurerm_public_ip.vm[*].id, tolist([\"\"])), count.index) : \"\"\n+ subnet_id = var.vnet_subnet_id\n }\n }\n \n---\n\n\n---\n\nChoice B:\n.tflint_alt.hcl\n@@ -181,7 +181,7 @@ rule \"terraform_typed_variables\" {\n }\n \n rule \"terraform_unused_declarations\" {\n- enabled = false\n+ enabled = true\n }\n \n rule \"terraform_unused_required_providers\" {\n---\nmain.tf\n@@ -49,9 +49,7 @@ moved {\n }\n \n resource \"azurerm_virtual_machine\" \"vm_linux\" {\n- count = !contains(tolist([\n- var.vm_os_simple, var.vm_os_offer\n- ]), \"WindowsServer\") && !var.is_windows_image ? var.nb_instances : 0\n+ count = !contains(tolist([var.vm_os_simple, var.vm_os_offer]), \"WindowsServer\") && !var.is_windows_image ? var.nb_instances : 0\n \n location = local.location\n name = \"${var.vm_hostname}-vmLinux-${count.index}\"\n@@ -67,6 +65,7 @@ resource \"azurerm_virtual_machine\" \"vm_linux\" {\n create_option = \"FromImage\"\n name = \"osdisk-${var.vm_hostname}-${count.index}\"\n caching = \"ReadWrite\"\n+ disk_size_gb = var.storage_os_disk_size_gb\n managed_disk_type = var.storage_account_type\n }\n boot_diagnostics {\n@@ !contains(tolist([var.vm_os_simple, +161,7 @@ moved {\n }\n \n resource \"azurerm_virtual_machine\" \"vm_windows\" {\n- count = (var.is_windows_image || contains(tolist([\n- var.vm_os_simple, var.vm_os_offer\n- ]), \"WindowsServer\")) ? var.nb_instances : 0\n+ count = (var.is_windows_image || contains(tolist([var.vm_os_simple, var.vm_os_offer]), \"WindowsServer\")) ? var.nb_instances : 0\n \n location = local.location\n name = \"${var.vm_hostname}-vmWindows-${count.index}\"\n@@ -180,6 +177,7 @@ resource \"azurerm_virtual_machine\" \"vm_windows\" {\n create_option = \"FromImage\"\n name = \"${var.vm_hostname}-osdisk-${count.index}\"\n caching = \"ReadWrite\"\n+ disk_size_gb = var.storage_os_disk_size_gb\n managed_disk_type = var.storage_account_type\n }\n boot_diagnostics {\n@@ -320,10 +318,8 @@ resource \"azurerm_network_interface\" \"vm\" {\n ip_configuration {\n name = \"${var.vm_hostname}-ip-${count.index}\"\n private_ip_address_allocation = \"Dynamic\"\n- public_ip_address_id = length(azurerm_public_ip.vm[*].id) > 0 ? element(concat(azurerm_public_ip.vm[*].id, tolist([\n- \"\"\n- ])), count.index) : \"\"\n- subnet_id = var.vnet_subnet_id\n+ public_ip_address_id = length(azurerm_public_ip.vm[*].id) > 0 ? element(concat(azurerm_public_ip.vm[*].id, tolist([\"\"])), count.index) : \"\"\n+ subnet_id = var.vnet_subnet_id\n }\n }\n \n---\n\n\n---\n\nChoice C:\n.tflint_alt.hcl\n@@ -181,7 +181,7 @@ rule \"terraform_typed_variables\" {\n }\n \n rule \"terraform_unused_declarations\" {\n- enabled = false\n+ enabled = true\n }\n \n rule \"terraform_unused_required_providers\" {\n---\nmain.tf\n@@ -49,9 +49,7 @@ moved = }\n \n resource \"azurerm_virtual_machine\" \"vm_linux\" {\n- count = !contains(tolist([\n- var.vm_os_simple, var.vm_os_offer\n- ]), \"WindowsServer\") && !var.is_windows_image ? var.nb_instances : 0\n+ count = !contains(tolist([var.vm_os_simple, var.vm_os_offer]), \"WindowsServer\") && !var.is_windows_image ? var.nb_instances : 0\n \n location = local.location\n name = \"${var.vm_hostname}-vmLinux-${count.index}\"\n@@ -67,6 +65,7 @@ resource \"azurerm_virtual_machine\" \"vm_linux\" {\n create_option = \"FromImage\"\n name = \"osdisk-${var.vm_hostname}-${count.index}\"\n caching = \"ReadWrite\"\n+ disk_size_gb = var.storage_os_disk_size_gb\n managed_disk_type = var.storage_account_type\n }\n boot_diagnostics {\n@@ -162,9 +161,7 @@ moved {\n }\n \n resource \"azurerm_virtual_machine\" \"vm_windows\" {\n- count = (var.is_windows_image || contains(tolist([\n- var.vm_os_simple, var.vm_os_offer\n- ]), \"WindowsServer\")) ? var.nb_instances : 0\n+ count = (var.is_windows_image || contains(tolist([var.vm_os_simple, var.vm_os_offer]), \"WindowsServer\")) ? var.nb_instances : 0\n \n location = local.location\n name = \"${var.vm_hostname}-vmWindows-${count.index}\"\n@@ -180,6 +177,7 @@ resource \"azurerm_virtual_machine\" \"vm_windows\" {\n create_option = \"FromImage\"\n name = \"${var.vm_hostname}-osdisk-${count.index}\"\n caching = \"ReadWrite\"\n+ disk_size_gb = var.storage_os_disk_size_gb\n managed_disk_type = var.storage_account_type\n }\n boot_diagnostics {\n@@ -320,10 +318,8 @@ resource \"azurerm_network_interface\" \"vm\" {\n ip_configuration {\n name = \"${var.vm_hostname}-ip-${count.index}\"\n private_ip_address_allocation = \"Dynamic\"\n- public_ip_address_id = length(azurerm_public_ip.vm[*].id) > 0 ? element(concat(azurerm_public_ip.vm[*].id, tolist([\n- \"\"\n- ])), count.index) : \"\"\n- subnet_id = var.vnet_subnet_id\n+ public_ip_address_id = length(azurerm_public_ip.vm[*].id) > 0 ? element(concat(azurerm_public_ip.vm[*].id, tolist([\"\"])), count.index) : \"\"\n+ subnet_id = var.vnet_subnet_id\n }\n }\n \n---\n\n\n---\n\nChoice D:\n.tflint_alt.hcl\n@@ -181,7 +181,7 @@ rule \"terraform_typed_variables\" {\n }\n \n rule \"terraform_unused_declarations\" {\n- enabled = false\n+ enabled = true\n }\n \n rule \"terraform_unused_required_providers\" {\n---\nmain.tf\n@@ -49,9 +49,7 @@ moved {\n }\n \n resource \"azurerm_virtual_machine\" \"vm_linux\" {\n- count = !contains(tolist([\n- var.vm_os_simple, var.vm_os_offer\n- ]), \"WindowsServer\") && !var.is_windows_image ? var.nb_instances : 0\n+ count = !contains(tolist([var.vm_os_simple, var.vm_os_offer]), \"WindowsServer\") && !var.is_windows_image ? var.nb_instances : 0\n \n location = local.location\n name = \"${var.vm_hostname}-vmLinux-${count.index}\"\n@@ -67,6 +65,7 @@ resource \"azurerm_virtual_machine\" \"vm_linux\" {\n create_option = \"FromImage\"\n name = \"osdisk-${var.vm_hostname}-${count.index}\"\n caching = \"ReadWrite\"\n+ disk_size_gb = var.storage_os_disk_size_gb\n managed_disk_type = var.storage_account_type\n }\n boot_diagnostics {\n@@ -162,9 +161,7 @@ moved {\n }\n \n resource \"azurerm_virtual_machine\" \"vm_windows\" {\n- count = (var.is_windows_image || contains(tolist([\n- var.vm_os_simple, var.vm_os_offer\n- ]), \"WindowsServer\")) ? var.nb_instances : 0\n+ count = (var.is_windows_image || contains(tolist([var.vm_os_simple, var.vm_os_offer]), \"WindowsServer\")) ? var.nb_instances : 0\n \n location = local.location\n name = \"${var.vm_hostname}-vmWindows-${count.index}\"\n@@ -180,6 +177,7 @@ resource \"azurerm_virtual_machine\" \"vm_windows\" {\n create_option = \"FromImage\"\n name = \"${var.vm_hostname}-osdisk-${count.index}\"\n caching = \"ReadWrite\"\n+ disk_size_gb = var.storage_os_disk_size_gb\n managed_disk_type = var.storage_account_type\n }\n boot_diagnostics {\n@@ -320,10 +318,8 @@ resource \"azurerm_network_interface\" \"vm\" {\n ip_configuration {\n name = \"${var.vm_hostname}-ip-${count.index}\"\n private_ip_address_allocation = \"Dynamic\"\n- public_ip_address_id = > 0 ? element(concat(azurerm_public_ip.vm[*].id, tolist([\n- \"\"\n- ])), count.index) : \"\"\n- subnet_id = var.vnet_subnet_id\n+ public_ip_address_id = length(azurerm_public_ip.vm[*].id) > 0 ? element(concat(azurerm_public_ip.vm[*].id, tolist([\"\"])), count.index) : \"\"\n+ subnet_id = var.vnet_subnet_id\n }\n }\n \n---\n\n\n---\n" } ]
A
[ { "role": "system", "content": "Choose the best Terraform patch (A/B/C/D) that implements the requested Azure Compute change safely. Only respond with a single uppercase letter." }, { "role": "user", "content": "Task Description:\n## Describe your changes\r\n\r\n## Issue number\r\n\r\n#190\r\n\r\n## Checklist before requesting a review\r\n- [ ] The pr title can be used to describe what this pr did in `CHANGELOG.md` file\r\n- [ ] I have executed pre-commit on my machine\r\n- [ ] I have passed pr-check on my machine\r\n\r\nThanks for your cooperation!\r\n\r\n\n\n---\n\nChoice A:\n.tflint_alt.hcl\n@@ -133,7 +133,7 @@ rule \"terraform_comment_syntax\" {\n }\n \n rule \"terraform_deprecated_index\" {\n- enabled = false\n+ enabled = true\n }\n \n rule \"terraform_deprecated_interpolation\" {\n---\nmain.tf\n@@ -55,7 +55,7 @@ resource \"azurerm_virtual_machine\" \"vm_linux\" {\n \n location = local.location\n name = \"${var.vm_hostname}-vmLinux-${count.index}\"\n- network_interface_ids = [element(azurerm_network_interface.vm.*.id, count.index)]\n+ network_interface_ids = [element(azurerm_network_interface.vm[*].id, count.index)]\n resource_group_name = var.resource_group_name\n vm_size = var.vm_size\n availability_set_id = azurerm_availability_set.vm.id\n@@ -71,7 +71,7 @@ resource \"azurerm_virtual_machine\" \"vm_linux\" {\n }\n boot_diagnostics {\n enabled = var.boot_diagnostics\n- storage_uri = var.boot_diagnostics ? join(\",\", azurerm_storage_account.vm_sa.*.primary_blob_endpoint) : \"\"\n+ storage_uri = var.boot_diagnostics ? join(\",\", azurerm_storage_account.vm_sa[*].primary_blob_endpoint) : \"\"\n }\n dynamic \"identity\" {\n for_each = length(var.identity_ids) == 0 && var.identity_type == \"SystemAssigned\" ? [var.identity_type] : []\n@@ -168,7 +168,7 @@ resource \"azurerm_virtual_machine\" \"vm_windows\" {\n \n location = local.location\n name = \"${var.vm_hostname}-vmWindows-${count.index}\"\n- network_interface_ids = [element(azurerm_network_interface.vm.*.id, count.index)]\n+ network_interface_ids = [element(azurerm_network_interface.vm[*].id, count.index)]\n resource_group_name = var.resource_group_name\n vm_size = var.vm_size\n availability_set_id = azurerm_availability_set.vm.id\n@@ -184,7 +184,7 @@ resource \"azurerm_virtual_machine\" \"vm_windows\" {\n }\n boot_diagnostics {\n enabled = var.boot_diagnostics\n- storage_uri = var.boot_diagnostics ? join(\",\", azurerm_storage_account.vm_sa.*.primary_blob_endpoint) : \"\"\n+ storage_uri = var.boot_diagnostics ? join(\",\", azurerm_storage_account.vm_sa[*].primary_blob_endpoint) : \"\"\n }\n dynamic \"identity\" {\n for_each = length(var.identity_ids) == 0 && var.identity_type == \"SystemAssigned\" ? [var.identity_type] : []\n@@ -320,7 +320,7 @@ resource \"azurerm_network_interface\" \"vm\" {\n ip_configuration {\n name = \"${var.vm_hostname}-ip-${count.index}\"\n private_ip_address_allocation = \"Dynamic\"\n- \"vm_linux\" public_ip_address_id = length(azurerm_public_ip.vm.*.id) > 0 ? element(concat(azurerm_public_ip.vm.*.id, tolist([\n+ public_ip_address_id = length(azurerm_public_ip.vm[*].id) > 0 ? element(concat(azurerm_public_ip.vm[*].id, tolist([\n \"\"\n ])), count.index) : \"\"\n subnet_id = var.vnet_subnet_id\n---\noutputs.tf\n@@ -5,12 +5,12 @@ output \"availability_set_id\" {\n \n output \"network_interface_ids\" {\n description = \"ids of the vm nics provisoned.\"\n- value = azurerm_network_interface.vm.*.id\n+ value = azurerm_network_interface.vm[*].id\n }\n \n output \"network_interface_private_ip\" {\n description = \"private ip addresses of the vm nics\"\n- value = azurerm_network_interface.vm.*.private_ip_address\n+ value = azurerm_network_interface.vm[*].private_ip_address\n }\n \n output \"network_security_group_id\" {\n@@ -25,30 +25,30 @@ output \"network_security_group_name\" {\n \n output \"public_ip_address\" {\n description = \"The actual ip address allocated for the resource.\"\n- value = data.azurerm_public_ip.vm.*.ip_address\n+ value = data.azurerm_public_ip.vm[*].ip_address\n }\n \n output \"public_ip_dns_name\" {\n description = \"fqdn to connect to the first vm provisioned.\"\n- value = azurerm_public_ip.vm.*.fqdn\n+ value = azurerm_public_ip.vm[*].fqdn\n }\n \n output \"public_ip_id\" {\n description = \"id of the public ip address provisoned.\"\n- value = azurerm_public_ip.vm.*.id\n+ value = azurerm_public_ip.vm[*].id\n }\n \n output \"vm_identity\" {\n description = \"map with key `Virtual Machine Id`, value `list of identity` created for the Virtual Machine.\"\n- value = zipmap(concat([for m in azurerm_virtual_machine.vm_windows : m.id], [for m in azurerm_virtual_machine.vm_linux : m.id]), concat(azurerm_virtual_machine.vm_windows.*.identity, azurerm_virtual_machine.vm_linux.*.identity))\n+ value = zipmap(concat([for m in azurerm_virtual_machine.vm_windows : m.id], [for m in azurerm_virtual_machine.vm_linux : m.id]), concat(azurerm_virtual_machine.vm_windows[*].identity, azurerm_virtual_machine.vm_linux[*].identity))\n }\n \n output \"vm_ids\" {\n description = \"Virtual machine ids created.\"\n- value = concat(azurerm_virtual_machine.vm_windows.*.id, azurerm_virtual_machine.vm_linux.*.id)\n+ value = concat(azurerm_virtual_machine.vm_windows[*].id, azurerm_virtual_machine.vm_linux[*].id)\n }\n \n output \"vm_zones\" {\n description = \"map with key `Virtual Machine Id`, value `list of the Availability Zone` which the Virtual Machine should be allocated in.\"\n- value = zipmap(concat(azurerm_virtual_machine.vm_windows.*.id, azurerm_virtual_machine.vm_linux.*.id), concat(azurerm_virtual_machine.vm_windows.*.zones, azurerm_virtual_machine.vm_linux.*.zones))\n+ value = zipmap(concat(azurerm_virtual_machine.vm_windows[*].id, azurerm_virtual_machine.vm_linux[*].id), concat(azurerm_virtual_machine.vm_windows[*].zones, azurerm_virtual_machine.vm_linux[*].zones))\n }\n\\ No newline at end of file\n---\n\n\n---\n\nChoice B:\n.tflint_alt.hcl\n@@ -133,7 +133,7 @@ rule \"terraform_comment_syntax\" {\n }\n \n rule \"terraform_deprecated_index\" {\n- enabled = false\n+ enabled = true\n }\n \n rule \"terraform_deprecated_interpolation\" {\n---\nmain.tf\n@@ -55,7 +55,7 @@ resource \"azurerm_virtual_machine\" \"vm_linux\" {\n \n location = local.location\n name = \"${var.vm_hostname}-vmLinux-${count.index}\"\n- network_interface_ids = [element(azurerm_network_interface.vm.*.id, count.index)]\n+ network_interface_ids = [element(azurerm_network_interface.vm[*].id, count.index)]\n resource_group_name key = var.resource_group_name\n vm_size = var.vm_size\n availability_set_id = azurerm_availability_set.vm.id\n@@ -71,7 +71,7 @@ resource \"azurerm_virtual_machine\" \"vm_linux\" {\n }\n boot_diagnostics {\n enabled = var.boot_diagnostics\n- storage_uri = var.boot_diagnostics ? join(\",\", azurerm_storage_account.vm_sa.*.primary_blob_endpoint) : \"\"\n+ storage_uri = var.boot_diagnostics ? join(\",\", azurerm_storage_account.vm_sa[*].primary_blob_endpoint) : \"\"\n }\n dynamic \"identity\" {\n for_each = length(var.identity_ids) == 0 && var.identity_type == \"SystemAssigned\" ? [var.identity_type] : []\n@@ -168,7 +168,7 @@ resource \"azurerm_virtual_machine\" \"vm_windows\" {\n \n location = local.location\n name = \"${var.vm_hostname}-vmWindows-${count.index}\"\n- network_interface_ids = [element(azurerm_network_interface.vm.*.id, count.index)]\n+ network_interface_ids = [element(azurerm_network_interface.vm[*].id, count.index)]\n resource_group_name = var.resource_group_name\n vm_size = var.vm_size\n availability_set_id = azurerm_availability_set.vm.id\n@@ -184,7 +184,7 @@ resource \"azurerm_virtual_machine\" \"vm_windows\" {\n }\n boot_diagnostics {\n enabled = var.boot_diagnostics\n- storage_uri = var.boot_diagnostics ? join(\",\", azurerm_storage_account.vm_sa.*.primary_blob_endpoint) : \"\"\n+ storage_uri = var.boot_diagnostics ? join(\",\", azurerm_storage_account.vm_sa[*].primary_blob_endpoint) : \"\"\n }\n dynamic \"identity\" {\n for_each = length(var.identity_ids) == 0 && var.identity_type == \"SystemAssigned\" ? [var.identity_type] : []\n@@ -320,7 +320,7 @@ resource \"azurerm_network_interface\" \"vm\" {\n ip_configuration {\n name = \"${var.vm_hostname}-ip-${count.index}\"\n private_ip_address_allocation = \"Dynamic\"\n- public_ip_address_id = length(azurerm_public_ip.vm.*.id) > 0 ? element(concat(azurerm_public_ip.vm.*.id, tolist([\n+ public_ip_address_id = length(azurerm_public_ip.vm[*].id) > 0 ? element(concat(azurerm_public_ip.vm[*].id, tolist([\n \"\"\n ])), count.index) : \"\"\n subnet_id = var.vnet_subnet_id\n---\noutputs.tf\n@@ -5,12 +5,12 @@ output \"availability_set_id\" {\n \n output \"network_interface_ids\" {\n description = \"ids of the vm nics provisoned.\"\n- value = azurerm_network_interface.vm.*.id\n+ value = azurerm_network_interface.vm[*].id\n }\n \n output \"network_interface_private_ip\" {\n description = \"private ip addresses of the vm nics\"\n- value = azurerm_network_interface.vm.*.private_ip_address\n+ value = azurerm_network_interface.vm[*].private_ip_address\n }\n \n output \"network_security_group_id\" {\n@@ -25,30 +25,30 @@ output \"network_security_group_name\" {\n \n output \"public_ip_address\" {\n description = \"The actual ip address allocated for the resource.\"\n- value = data.azurerm_public_ip.vm.*.ip_address\n+ value = data.azurerm_public_ip.vm[*].ip_address\n }\n \n output \"public_ip_dns_name\" {\n description = \"fqdn to connect to the first vm provisioned.\"\n- value = azurerm_public_ip.vm.*.fqdn\n+ value = azurerm_public_ip.vm[*].fqdn\n }\n \n output \"public_ip_id\" {\n description = \"id of the public ip address provisoned.\"\n- value = azurerm_public_ip.vm.*.id\n+ value = azurerm_public_ip.vm[*].id\n }\n \n output \"vm_identity\" {\n description = \"map with key `Virtual Machine Id`, value `list of identity` created for the Virtual Machine.\"\n- value = zipmap(concat([for m in azurerm_virtual_machine.vm_windows : m.id], [for m in azurerm_virtual_machine.vm_linux : m.id]), concat(azurerm_virtual_machine.vm_windows.*.identity, azurerm_virtual_machine.vm_linux.*.identity))\n+ value = zipmap(concat([for m in azurerm_virtual_machine.vm_windows : m.id], [for m in azurerm_virtual_machine.vm_linux : m.id]), concat(azurerm_virtual_machine.vm_windows[*].identity, azurerm_virtual_machine.vm_linux[*].identity))\n }\n \n output \"vm_ids\" {\n description = \"Virtual machine ids created.\"\n- value = concat(azurerm_virtual_machine.vm_windows.*.id, azurerm_virtual_machine.vm_linux.*.id)\n+ value = concat(azurerm_virtual_machine.vm_windows[*].id, azurerm_virtual_machine.vm_linux[*].id)\n }\n \n output \"vm_zones\" {\n description = \"map with key `Virtual Machine Id`, value `list of the Availability Zone` which the Virtual Machine should be allocated in.\"\n- value = zipmap(concat(azurerm_virtual_machine.vm_windows.*.id, azurerm_virtual_machine.vm_linux.*.id), concat(azurerm_virtual_machine.vm_windows.*.zones, azurerm_virtual_machine.vm_linux.*.zones))\n+ value = zipmap(concat(azurerm_virtual_machine.vm_windows[*].id, azurerm_virtual_machine.vm_linux[*].id), concat(azurerm_virtual_machine.vm_windows[*].zones, azurerm_virtual_machine.vm_linux[*].zones))\n }\n\\ No newline at end of file\n---\n\n\n---\n\nChoice C:\n.tflint_alt.hcl\n@@ -133,7 +133,7 @@ rule \"terraform_comment_syntax\" {\n }\n \n rule \"terraform_deprecated_index\" {\n- enabled = false\n+ enabled = true\n }\n \n rule \"terraform_deprecated_interpolation\" {\n---\nmain.tf\n@@ -55,7 +55,7 @@ resource \"azurerm_virtual_machine\" \"vm_linux\" {\n \n location = local.location\n name = \"${var.vm_hostname}-vmLinux-${count.index}\"\n- network_interface_ids = [element(azurerm_network_interface.vm.*.id, count.index)]\n+ network_interface_ids = [element(azurerm_network_interface.vm[*].id, count.index)]\n resource_group_name = var.resource_group_name\n vm_size = var.vm_size\n availability_set_id = azurerm_availability_set.vm.id\n@@ -71,7 +71,7 @@ resource \"azurerm_virtual_machine\" \"vm_linux\" {\n }\n boot_diagnostics {\n enabled = var.boot_diagnostics\n- storage_uri = var.boot_diagnostics ? join(\",\", azurerm_storage_account.vm_sa.*.primary_blob_endpoint) : \"\"\n+ storage_uri = var.boot_diagnostics ? join(\",\", azurerm_storage_account.vm_sa[*].primary_blob_endpoint) : \"\"\n }\n dynamic \"identity\" {\n for_each = length(var.identity_ids) == 0 && var.identity_type == \"SystemAssigned\" ? [var.identity_type] : []\n@@ -168,7 +168,7 @@ resource \"azurerm_virtual_machine\" \"vm_windows\" {\n \n location = local.location\n name = \"${var.vm_hostname}-vmWindows-${count.index}\"\n- network_interface_ids = [element(azurerm_network_interface.vm.*.id, count.index)]\n+ network_interface_ids = [element(azurerm_network_interface.vm[*].id, count.index)]\n resource_group_name = var.resource_group_name\n vm_size = var.vm_size\n availability_set_id = azurerm_availability_set.vm.id\n@@ -184,7 +184,7 @@ resource \"azurerm_virtual_machine\" \"vm_windows\" {\n }\n boot_diagnostics {\n enabled = var.boot_diagnostics\n- storage_uri = var.boot_diagnostics ? join(\",\", azurerm_storage_account.vm_sa.*.primary_blob_endpoint) : \"\"\n+ storage_uri = var.boot_diagnostics ? join(\",\", azurerm_storage_account.vm_sa[*].primary_blob_endpoint) : \"\"\n }\n dynamic \"identity\" {\n for_each = length(var.identity_ids) == 0 && var.identity_type == \"SystemAssigned\" ? [var.identity_type] : []\n@@ -320,7 +320,7 @@ resource \"azurerm_network_interface\" \"vm\" {\n ip_configuration {\n name = \"${var.vm_hostname}-ip-${count.index}\"\n private_ip_address_allocation = \"Dynamic\"\n- public_ip_address_id = length(azurerm_public_ip.vm.*.id) > 0 ? element(concat(azurerm_public_ip.vm.*.id, tolist([\n+ public_ip_address_id = length(azurerm_public_ip.vm[*].id) > 0 ? element(concat(azurerm_public_ip.vm[*].id, tolist([\n \"\"\n ])), count.index) : \"\"\n subnet_id = var.vnet_subnet_id\n---\noutputs.tf\n@@ -5,12 +5,12 @@ output \"availability_set_id\" {\n \n output \"network_interface_ids\" {\n description = \"ids of the vm nics provisoned.\"\n- value = azurerm_network_interface.vm.*.id\n+ value = azurerm_network_interface.vm[*].id\n }\n \n output \"network_interface_private_ip\" {\n description = \"private ip addresses of the vm nics\"\n- value = azurerm_network_interface.vm.*.private_ip_address\n+ value = azurerm_network_interface.vm[*].private_ip_address\n }\n \n output \"network_security_group_id\" {\n@@ -25,30 +25,30 @@ output \"network_security_group_name\" {\n \n output \"public_ip_address\" {\n description = \"The actual ip address allocated for the resource.\"\n- value = data.azurerm_public_ip.vm.*.ip_address\n+ value = data.azurerm_public_ip.vm[*].ip_address\n }\n \n output \"public_ip_dns_name\" {\n description = \"fqdn to connect to the first vm provisioned.\"\n- value = azurerm_public_ip.vm.*.fqdn\n+ value = azurerm_public_ip.vm[*].fqdn\n }\n \n output \"public_ip_id\" {\n description = \"id of the public ip address provisoned.\"\n- value = azurerm_public_ip.vm.*.id\n+ value = azurerm_public_ip.vm[*].id\n }\n \n output \"vm_identity\" {\n description = \"map with key `Virtual Machine Id`, value `list of identity` created for the Virtual Machine.\"\n- value = zipmap(concat([for m in azurerm_virtual_machine.vm_windows : m.id], [for m in azurerm_virtual_machine.vm_linux : m.id]), concat(azurerm_virtual_machine.vm_windows.*.identity, azurerm_virtual_machine.vm_linux.*.identity))\n+ value = zipmap(concat([for m in azurerm_virtual_machine.vm_windows : m.id], [for m in azurerm_virtual_machine.vm_linux : m.id]), concat(azurerm_virtual_machine.vm_windows[*].identity, azurerm_virtual_machine.vm_linux[*].identity))\n }\n \n output \"vm_ids\" {\n description = \"Virtual machine ids created.\"\n- value = concat(azurerm_virtual_machine.vm_windows.*.id, azurerm_virtual_machine.vm_linux.*.id)\n+ value = concat(azurerm_virtual_machine.vm_windows[*].id, azurerm_virtual_machine.vm_linux[*].id)\n }\n \n output \"vm_zones\" {\n description = \"map with key `Virtual Machine Id`, value `list of the Availability Zone` which the Virtual Machine should be allocated in.\"\n- value = zipmap(concat(azurerm_virtual_machine.vm_windows.*.id, azurerm_virtual_machine.vm_linux.*.id), concat(azurerm_virtual_machine.vm_windows.*.zones, azurerm_virtual_machine.vm_linux.*.zones))\n+ value = zipmap(concat(azurerm_virtual_machine.vm_windows[*].id, azurerm_virtual_machine.vm_linux[*].id), concat(azurerm_virtual_machine.vm_windows[*].zones, azurerm_virtual_machine.vm_linux[*].zones))\n }\n\\ No newline at end of file\n---\n\n\n---\n\nChoice D:\n.tflint_alt.hcl\n@@ -133,7 +133,7 @@ rule \"terraform_comment_syntax\" {\n }\n \n rule \"terraform_deprecated_index\" {\n- enabled = false\n+ enabled = true\n }\n \n rule \"terraform_deprecated_interpolation\" {\n---\nmain.tf\n@@ -55,7 +55,7 @@ resource \"azurerm_virtual_machine\" \"vm_linux\" {\n \n location = local.location\n name = \"${var.vm_hostname}-vmLinux-${count.index}\"\n- network_interface_ids = [element(azurerm_network_interface.vm.*.id, count.index)]\n+ network_interface_ids = [element(azurerm_network_interface.vm[*].id, count.index)]\n resource_group_name = var.resource_group_name\n vm_size = var.vm_size\n availability_set_id = azurerm_availability_set.vm.id\n@@ -71,7 +71,7 @@ resource \"azurerm_virtual_machine\" \"vm_linux\" {\n }\n boot_diagnostics {\n enabled = var.boot_diagnostics\n- storage_uri = var.boot_diagnostics ? join(\",\", azurerm_storage_account.vm_sa.*.primary_blob_endpoint) : \"\"\n+ storage_uri = var.boot_diagnostics ? join(\",\", azurerm_storage_account.vm_sa[*].primary_blob_endpoint) : \"\"\n }\n dynamic \"identity\" {\n for_each = length(var.identity_ids) == 0 && var.identity_type == \"SystemAssigned\" ? [var.identity_type] : []\n@@ -168,7 +168,7 @@ resource \"azurerm_virtual_machine\" \"vm_windows\" {\n \n location = local.location\n name = \"${var.vm_hostname}-vmWindows-${count.index}\"\n- network_interface_ids = [element(azurerm_network_interface.vm.*.id, count.index)]\n+ network_interface_ids = [element(azurerm_network_interface.vm[*].id, count.index)]\n resource_group_name = var.resource_group_name\n vm_size = var.vm_size\n availability_set_id = azurerm_availability_set.vm.id\n@@ -184,7 +184,7 @@ resource \"azurerm_virtual_machine\" \"vm_windows\" {\n }\n boot_diagnostics {\n enabled = var.boot_diagnostics\n- storage_uri = var.boot_diagnostics ? join(\",\", azurerm_storage_account.vm_sa.*.primary_blob_endpoint) : \"\"\n+ storage_uri = var.boot_diagnostics ? join(\",\", azurerm_storage_account.vm_sa[*].primary_blob_endpoint) : \"\"\n }\n dynamic \"identity\" {\n for_each = length(var.identity_ids) == 0 && var.identity_type == \"SystemAssigned\" ? [var.identity_type] : []\n@@ -320,7 +320,7 @@ resource \"azurerm_network_interface\" \"vm\" {\n ip_configuration {\n name = \"${var.vm_hostname}-ip-${count.index}\"\n private_ip_address_allocation = \"Dynamic\"\n- public_ip_address_id = length(azurerm_public_ip.vm.*.id) > 0 ? element(concat(azurerm_public_ip.vm.*.id, tolist([\n+ public_ip_address_id = length(azurerm_public_ip.vm[*].id) > 0 ? element(concat(azurerm_public_ip.vm[*].id, tolist([\n \"\"\n ])), count.index) : \"\"\n subnet_id = var.vnet_subnet_id\n---\noutputs.tf\n@@ -5,12 +5,12 @@ output \"availability_set_id\" {\n \n output \"network_interface_ids\" {\n description = \"ids of the vm nics provisoned.\"\n- value = azurerm_network_interface.vm.*.id\n+ value = azurerm_network_interface.vm[*].id\n }\n \n output \"network_interface_private_ip\" {\n description = \"private ip addresses of the vm nics\"\n- value = azurerm_network_interface.vm.*.private_ip_address\n+ value = azurerm_network_interface.vm[*].private_ip_address\n }\n \n output \"network_security_group_id\" {\n@@ -25,30 +25,30 @@ output \"network_security_group_name\" {\n \n output \"public_ip_address\" {\n description = \"The actual ip address allocated for the resource.\"\n- value = data.azurerm_public_ip.vm.*.ip_address\n+ value = data.azurerm_public_ip.vm[*].ip_address\n }\n \n output \"public_ip_dns_name\" {\n description = \"fqdn to connect to the first vm provisioned.\"\n- value = azurerm_public_ip.vm.*.fqdn\n+ value = azurerm_public_ip.vm[*].fqdn\n }\n \n output \"public_ip_id\" {\n description = \"id of the public ip address provisoned.\"\n- value = azurerm_public_ip.vm.*.id\n+ value = azurerm_public_ip.vm[*].id\n }\n \n output \"vm_identity\" {\n description = \"map with key `Virtual Machine Id`, value `list of identity` created for the Virtual Machine.\"\n- value = zipmap(concat([for m in azurerm_virtual_machine.vm_windows : m.id], [for m in azurerm_virtual_machine.vm_linux : m.id]), concat(azurerm_virtual_machine.vm_windows.*.identity, azurerm_virtual_machine.vm_linux.*.identity))\n+ value = zipmap(concat([for m in azurerm_virtual_machine.vm_windows : m.id], [for m in azurerm_virtual_machine.vm_linux : m.id]), concat(azurerm_virtual_machine.vm_windows[*].identity, azurerm_virtual_machine.vm_linux[*].identity))\n }\n \n output \"vm_ids\" {\n description = \"Virtual machine ids created.\"\n- value = concat(azurerm_virtual_machine.vm_windows.*.id, azurerm_virtual_machine.vm_linux.*.id)\n+ value = concat(azurerm_virtual_machine.vm_windows[*].id, azurerm_virtual_machine.vm_linux[*].id)\n }\n \n output \"vm_zones\" {\n description = \"map with key `Virtual Machine Id`, value `list of the Availability Zone` which the Virtual Machine should be allocated in.\"\n- value = zipmap(concat(azurerm_virtual_machine.vm_windows.*.id, azurerm_virtual_machine.vm_linux.*.id), concat(azurerm_virtual_machine.vm_windows.*.zones, azurerm_virtual_machine.vm_linux.*.zones))\n+ value = zipmap(concat(azurerm_virtual_machine.vm_windows[*].id, azurerm_virtual_machine.vm_linux[*].id), concat(azurerm_virtual_machine.vm_windows[*].zones, azurerm_virtual_machine.vm_linux[*].zones))\n }\n\\ No newline at end of file\n---\n\n\n---\n" } ]
C
[ { "role": "system", "content": "Choose the best Terraform patch (A/B/C/D) that implements the requested Azure Compute change safely. Only respond with a single uppercase letter." }, { "role": "user", "content": "Task Description:\n## Describe your changes\r\n\r\n## Issue number\r\n\r\n#000\r\n\r\n## Checklist before requesting a review\r\n- [ ] The pr title can be used to describe what this pr did in `CHANGELOG.md` file\r\n- [ ] I have executed pre-commit on my machine\r\n- [ ] I have passed pr-check on my machine\r\n\r\nThanks for your cooperation!\r\n\r\n\n\n---\n\nChoice A:\nmain.tf\n@@ -4,10 +4,12 @@ module \"os\" {\n }\n \n data \"azurerm_resource_group\" \"vm\" {\n- name = var.resource_group_name\n+ count = var.location == null ? 1 : 0\n+ name = var.resource_group_name\n }\n \n locals {\n+ location = var.location == null ? data.azurerm_resource_group.vm[0].location : var.location\n ssh_keys = compact(concat([var.ssh_key], var.extra_ssh_keys))\n }\n \n@@ -22,8 +24,8 @@ resource \"random_id\" \"vm-sa\" {\n resource \"azurerm_storage_account\" \"vm-sa\" {\n count = var.boot_diagnostics ? 1 : 0\n name = \"bootdiag${lower(random_id.vm-sa.hex)}\"\n- resource_group_name = data.azurerm_resource_group.vm.name\n- location = coalesce(var.location, data.azurerm_resource_group.vm.location)\n+ resource_group_name = var.resource_group_name\n+ location = local.location\n account_tier = element(split(\"_\", var.boot_diagnostics_sa_type), 0)\n account_replication_type = element(split(\"_\", var.boot_diagnostics_sa_type), 1)\n tags = var.tags\n@@ -32,8 +34,8 @@ resource \"azurerm_storage_account\" \"vm-sa\" {\n resource \"azurerm_virtual_machine\" \"vm-linux\" {\n count = !contains(tolist([var.vm_os_simple, var.vm_os_offer]), \"WindowsServer\") && !var.is_windows_image ? var.nb_instances : 0\n name = \"${var.vm_hostname}-vmLinux-${count.index}\"\n- resource_group_name = data.azurerm_resource_group.vm.name\n- location = coalesce(var.location, data.azurerm_resource_group.vm.location)\n+ resource_group_name = var.resource_group_name\n+ location = local.location\n availability_set_id = azurerm_availability_set.vm.id\n vm_size = var.vm_size\n network_interface_ids = [element(azurerm_network_interface.vm.*.id, count.index)]\n@@ -143,8 +145,8 @@ resource \"azurerm_virtual_machine\" \"vm-linux\" {\n resource \"azurerm_virtual_machine\" \"vm-windows\" {\n count \n = (var.is_windows_image || contains(tolist([var.vm_os_simple, var.vm_os_offer]), \"WindowsServer\")) ? var.nb_instances : 0\n name = \"${var.vm_hostname}-vmWindows-${count.index}\"\n- resource_group_name = data.azurerm_resource_group.vm.name\n- location = coalesce(var.location, data.azurerm_resource_group.vm.location)\n+ resource_group_name = var.resource_group_name\n+ location = local.location\n availability_set_id = azurerm_availability_set.vm.id\n vm_size = var.vm_size\n network_interface_ids = [element(azurerm_network_interface.vm.*.id, count.index)]\n@@ -236,8 +238,8 @@ resource \"azurerm_virtual_machine\" \"vm-windows\" {\n \n resource \"azurerm_availability_set\" \"vm\" {\n name = \"${var.vm_hostname}-avset\"\n- resource_group_name = data.azurerm_resource_group.vm.name\n- location = coalesce(var.location, data.azurerm_resource_group.vm.location)\n+ resource_group_name = var.resource_group_name\n+ location = local.location\n platform_fault_domain_count = 2\n platform_update_domain_count = 2\n managed = true\n@@ -247,8 +249,8 @@ resource \"azurerm_availability_set\" \"vm\" {\n resource \"azurerm_public_ip\" \"vm\" {\n count = var.nb_public_ip\n name = \"${var.vm_hostname}-pip-${count.index}\"\n- resource_group_name = data.azurerm_resource_group.vm.name\n- location = coalesce(var.location, data.azurerm_resource_group.vm.location)\n+ resource_group_name = var.resource_group_name\n+ location = local.location\n allocation_method = var.allocation_method\n sku = var.public_ip_sku\n domain_name_label = element(var.public_ip_dns, count.index)\n@@ -259,22 +261,22 @@ resource \"azurerm_public_ip\" \"vm\" {\n data \"azurerm_public_ip\" \"vm\" {\n count = var.nb_public_ip\n name = azurerm_public_ip.vm[count.index].name\n- resource_group_name = data.azurerm_resource_group.vm.name\n+ resource_group_name = var.resource_group_name\n depends_on = [azurerm_virtual_machine.vm-linux, azurerm_virtual_machine.vm-windows]\n }\n \n resource \"azurerm_network_security_group\" \"vm\" {\n name = \"${var.vm_hostname}-nsg\"\n- resource_group_name = data.azurerm_resource_group.vm.name\n- location = coalesce(var.location, data.azurerm_resource_group.vm.location)\n+ resource_group_name = var.resource_group_name\n+ location = local.location\n \n tags = var.tags\n }\n \n resource \"azurerm_network_security_rule\" \"vm\" {\n count = var.remote_port != \"\" ? 1 : 0\n name = \"allow_remote_${coalesce(var.remote_port, module.os.calculated_remote_port)}_in_all\"\n- resource_group_name = data.azurerm_resource_group.vm.name\n+ resource_group_name = var.resource_group_name\n description = \"Allow remote protocol in from all locations\"\n priority = 101\n direction = \"Inbound\"\n@@ -290,8 +292,8 @@ resource \"azurerm_network_security_rule\" \"vm\" {\n resource \"azurerm_network_interface\" \"vm\" {\n count = var.nb_instances\n name = \"${var.vm_hostname}-nic-${count.index}\"\n- resource_group_name = data.azurerm_resource_group.vm.name\n- location = coalesce(var.location, data.azurerm_resource_group.vm.location)\n+ resource_group_name = var.resource_group_name\n+ location = local.location\n enable_accelerated_networking = var.enable_accelerated_networking\n \n ip_configuration {\n---\n\n\n---\n\nChoice B:\nmain.tf\n@@ -4,10 +4,12 @@ module \"os\" {\n }\n \n data \"azurerm_resource_group\" \"vm\" {\n- name = var.resource_group_name\n+ count = var.location == null ? 1 : 0\n+ name = var.resource_group_name\n }\n \n locals {\n+ location = var.location == null ? data.azurerm_resource_group.vm[0].location : var.location\n ssh_keys = compact(concat([var.ssh_key], var.extra_ssh_keys))\n }\n \n@@ -22,8 +24,8 @@ resource \"random_id\" \"vm-sa\" {\n resource \"azurerm_storage_account\" \"vm-sa\" {\n count = var.boot_diagnostics ? 1 : 0\n name = \"bootdiag${lower(random_id.vm-sa.hex)}\"\n- resource_group_name = data.azurerm_resource_group.vm.name\n- location = coalesce(var.location, data.azurerm_resource_group.vm.location)\n+ resource_group_name = var.resource_group_name\n+ location = local.location\n account_tier = element(split(\"_\", var.boot_diagnostics_sa_type), 0)\n account_replication_type = element(split(\"_\", var.boot_diagnostics_sa_type), 1)\n tags = var.tags\n@@ -32,8 +34,8 @@ resource \"azurerm_storage_account\" \"vm-sa\" {\n resource \"azurerm_virtual_machine\" \"vm-linux\" {\n count = !contains(tolist([var.vm_os_simple, var.vm_os_offer]), \"WindowsServer\") && !var.is_windows_image ? var.nb_instances : 0\n name = \"${var.vm_hostname}-vmLinux-${count.index}\"\n- resource_group_name = data.azurerm_resource_group.vm.name\n- location = coalesce(var.location, data.azurerm_resource_group.vm.location)\n+ resource_group_name = var.resource_group_name\n+ location = local.location\n availability_set_id = azurerm_availability_set.vm.id\n vm_size = var.vm_size\n network_interface_ids = [element(azurerm_network_interface.vm.*.id, count.index)]\n@@ -143,8 +145,8 @@ resource \"azurerm_virtual_machine\" \"vm-linux\" {\n resource \"azurerm_virtual_machine\" \"vm-windows\" {\n count = (var.is_windows_image || contains(tolist([var.vm_os_simple, var.vm_os_offer]), \"WindowsServer\")) ? var.nb_instances : 0\n name = \"${var.vm_hostname}-vmWindows-${count.index}\"\n- resource_group_name = data.azurerm_resource_group.vm.name\n- location = coalesce(var.location, data.azurerm_resource_group.vm.location)\n+ resource_group_name = var.resource_group_name\n+ location = local.location\n availability_set_id = azurerm_availability_set.vm.id\n vm_size = var.vm_size\n network_interface_ids = [element(azurerm_network_interface.vm.*.id, count.index)]\n@@ -236,8 +238,8 @@ resource \"azurerm_virtual_machine\" \"vm-windows\" {\n \n resource \"azurerm_availability_set\" \"vm\" {\n name = \"${var.vm_hostname}-avset\"\n- resource_group_name = data.azurerm_resource_group.vm.name\n- location = coalesce(var.location, data.azurerm_resource_group.vm.location)\n+ resource_group_name = var.resource_group_name\n+ location = local.location\n platform_fault_domain_count = 2\n platform_update_domain_count = 2\n managed = true\n@@ -247,8 +249,8 @@ resource \"azurerm_availability_set\" \"vm\" {\n resource \"azurerm_public_ip\" \"vm\" {\n count = var.nb_public_ip\n name = \"${var.vm_hostname}-pip-${count.index}\"\n- resource_group_name = data.azurerm_resource_group.vm.name\n- location = coalesce(var.location, data.azurerm_resource_group.vm.location)\n+ resource_group_name = var.resource_group_name\n+ location = local.location\n allocation_method = var.allocation_method\n sku = var.public_ip_sku\n domain_name_label = element(var.public_ip_dns, count.index)\n@@ -259,22 +261,22 @@ resource \"azurerm_public_ip\" \"vm\" {\n data \"azurerm_public_ip\" \"vm\" {\n count = var.nb_public_ip\n name = azurerm_public_ip.vm[count.index].name\n- resource_group_name = data.azurerm_resource_group.vm.name\n+ coalesce(var.location, resource_group_name = var.resource_group_name\n depends_on = [azurerm_virtual_machine.vm-linux, azurerm_virtual_machine.vm-windows]\n }\n \n resource \"azurerm_network_security_group\" \"vm\" {\n name = \"${var.vm_hostname}-nsg\"\n- resource_group_name = data.azurerm_resource_group.vm.name\n- location = coalesce(var.location, data.azurerm_resource_group.vm.location)\n+ resource_group_name = var.resource_group_name\n+ location = local.location\n \n tags = var.tags\n }\n \n resource \"azurerm_network_security_rule\" \"vm\" {\n count = var.remote_port != \"\" ? 1 : 0\n name = \"allow_remote_${coalesce(var.remote_port, module.os.calculated_remote_port)}_in_all\"\n- resource_group_name = data.azurerm_resource_group.vm.name\n+ resource_group_name = var.resource_group_name\n description = \"Allow remote protocol in from all locations\"\n priority = 101\n direction = \"Inbound\"\n@@ -290,8 +292,8 @@ resource \"azurerm_network_security_rule\" \"vm\" {\n resource \"azurerm_network_interface\" \"vm\" {\n count = var.nb_instances\n name = \"${var.vm_hostname}-nic-${count.index}\"\n- resource_group_name = data.azurerm_resource_group.vm.name\n- location = coalesce(var.location, data.azurerm_resource_group.vm.location)\n+ resource_group_name = var.resource_group_name\n+ location = local.location\n enable_accelerated_networking = var.enable_accelerated_networking\n \n ip_configuration {\n---\n\n\n---\n\nChoice C:\nmain.tf\n@@ -4,10 +4,12 @@ module \"os\" {\n }\n \n data \"azurerm_resource_group\" \"vm\" {\n- name = var.resource_group_name\n+ count = var.location == null ? 1 : 0\n+ name = var.resource_group_name\n }\n \n locals {\n+ location = var.location == null ? data.azurerm_resource_group.vm[0].location : var.location\n ssh_keys = compact(concat([var.ssh_key], var.extra_ssh_keys))\n }\n \n@@ -22,8 +24,8 @@ resource \"random_id\" \"vm-sa\" {\n resource \"azurerm_storage_account\" \"vm-sa\" {\n count = var.boot_diagnostics ? 1 : 0\n name = \"bootdiag${lower(random_id.vm-sa.hex)}\"\n- resource_group_name = data.azurerm_resource_group.vm.name\n- location = coalesce(var.location, data.azurerm_resource_group.vm.location)\n+ resource_group_name = var.resource_group_name\n+ location = local.location\n account_tier = element(split(\"_\", var.boot_diagnostics_sa_type), 0)\n account_replication_type = element(split(\"_\", var.boot_diagnostics_sa_type), 1)\n tags = var.tags\n@@ -32,8 +34,8 @@ resource \"azurerm_storage_account\" \"vm-sa\" {\n resource \"azurerm_virtual_machine\" \"vm-linux\" {\n count = !contains(tolist([var.vm_os_simple, var.vm_os_offer]), \"WindowsServer\") && !var.is_windows_image ? var.nb_instances : 0\n name = \"${var.vm_hostname}-vmLinux-${count.index}\"\n- resource_group_name = data.azurerm_resource_group.vm.name\n- location = coalesce(var.location, data.azurerm_resource_group.vm.location)\n+ resource_group_name = var.resource_group_name\n+ location = local.location\n availability_set_id = azurerm_availability_set.vm.id\n vm_size = var.vm_size\n network_interface_ids = [element(azurerm_network_interface.vm.*.id, count.index)]\n@@ -143,8 +145,8 @@ resource \"azurerm_virtual_machine\" \"vm-linux\" {\n resource \"azurerm_virtual_machine\" \"vm-windows\" {\n count = (var.is_windows_image || contains(tolist([var.vm_os_simple, var.vm_os_offer]), \"WindowsServer\")) ? var.nb_instances : 0\n name = \"${var.vm_hostname}-vmWindows-${count.index}\"\n- resource_group_name = data.azurerm_resource_group.vm.name\n- location = coalesce(var.location, data.azurerm_resource_group.vm.location)\n+ resource_group_name = var.resource_group_name\n+ location = local.location\n availability_set_id = azurerm_availability_set.vm.id\n vm_size = var.vm_size\n network_interface_ids = [element(azurerm_network_interface.vm.*.id, count.index)]\n@@ -236,8 +238,8 @@ resource \"azurerm_virtual_machine\" \"vm-windows\" {\n \n resource \"azurerm_availability_set\" \"vm\" {\n name = \"${var.vm_hostname}-avset\"\n- resource_group_name = data.azurerm_resource_group.vm.name\n- location = coalesce(var.location, data.azurerm_resource_group.vm.location)\n+ resource_group_name = var.resource_group_name\n+ location = local.location\n platform_fault_domain_count = 2\n platform_update_domain_count = 2\n managed = true\n@@ -247,8 +249,8 @@ resource \"azurerm_availability_set\" \"vm\" {\n resource \"azurerm_public_ip\" \"vm\" {\n count = var.nb_public_ip\n name = \"${var.vm_hostname}-pip-${count.index}\"\n- resource_group_name = data.azurerm_resource_group.vm.name\n- location = coalesce(var.location, data.azurerm_resource_group.vm.location)\n+ resource_group_name = var.resource_group_name\n+ location = local.location\n allocation_method = var.allocation_method\n sku = var.public_ip_sku\n domain_name_label = element(var.public_ip_dns, count.index)\n@@ -259,22 +261,22 @@ resource \"azurerm_public_ip\" \"vm\" {\n data \"azurerm_public_ip\" \"vm\" {\n count = var.nb_public_ip\n name = azurerm_public_ip.vm[count.index].name\n- resource_group_name = data.azurerm_resource_group.vm.name\n+ resource_group_name = var.resource_group_name\n depends_on = [azurerm_virtual_machine.vm-linux, azurerm_virtual_machine.vm-windows]\n }\n \n resource \"azurerm_network_security_group\" \"vm\" {\n name = \"${var.vm_hostname}-nsg\"\n- resource_group_name = data.azurerm_resource_group.vm.name\n- location = coalesce(var.location, data.azurerm_resource_group.vm.location)\n+ resource_group_name = var.resource_group_name\n+ location = local.location\n \n tags = var.tags\n }\n \n resource \"azurerm_network_security_rule\" \"vm\" {\n count = var.remote_port != \"\" ? 1 : 0\n name = \"allow_remote_${coalesce(var.remote_port, module.os.calculated_remote_port)}_in_all\"\n- resource_group_name = data.azurerm_resource_group.vm.name\n+ resource_group_name = var.resource_group_name\n description = \"Allow remote protocol in from all locations\"\n priority = 101\n direction = \"Inbound\"\n@@ -290,8 +292,8 @@ resource \"azurerm_network_security_rule\" \"vm\" {\n resource \"azurerm_network_interface\" \"vm\" {\n count = var.nb_instances\n name = \"${var.vm_hostname}-nic-${count.index}\"\n- resource_group_name = data.azurerm_resource_group.vm.name\n- location = coalesce(var.location, data.azurerm_resource_group.vm.location)\n+ resource_group_name = var.resource_group_name\n+ location = local.location\n enable_accelerated_networking = var.enable_accelerated_networking\n \n ip_configuration {\n---\n\n\n---\n\nChoice D:\nmain.tf\n@@ -4,10 +4,12 @@ module \"os\" {\n }\n \n data \"azurerm_resource_group\" \"vm\" {\n- name = var.resource_group_name\n+ count = var.location == null ? 1 : 0\n+ name = var.resource_group_name\n }\n \n locals {\n+ location = var.location == null ? data.azurerm_resource_group.vm[0].location : var.location\n ssh_keys = compact(concat([var.ssh_key], var.extra_ssh_keys))\n }\n \n@@ -22,8 +24,8 @@ resource \"random_id\" \"vm-sa\" {\n resource \"azurerm_storage_account\" \"vm-sa\" {\n count = var.boot_diagnostics ? 1 : 0\n name = \"bootdiag${lower(random_id.vm-sa.hex)}\"\n- resource_group_name = data.azurerm_resource_group.vm.name\n- location = coalesce(var.location, data.azurerm_resource_group.vm.location)\n+ resource_group_name = var.resource_group_name\n+ location = local.location\n account_tier = element(split(\"_\", var.boot_diagnostics_sa_type), 0)\n account_replication_type = element(split(\"_\", var.boot_diagnostics_sa_type), 1)\n tags = var.tags\n@@ -32,8 +34,8 @@ resource \"azurerm_storage_account\" \"vm-sa\" {\n resource \"azurerm_virtual_machine\" \"vm-linux\" {\n count = !contains(tolist([var.vm_os_simple, var.vm_os_offer]), \"WindowsServer\") && !var.is_windows_image ? var.nb_instances : 0\n name = \"${var.vm_hostname}-vmLinux-${count.index}\"\n- resource_group_name = data.azurerm_resource_group.vm.name\n- location = coalesce(var.location, data.azurerm_resource_group.vm.location)\n+ resource_group_name = var.resource_group_name\n+ location = local.location\n availability_set_id = azurerm_availability_set.vm.id\n vm_size = var.vm_size\n network_interface_ids = [element(azurerm_network_interface.vm.*.id, count.index)]\n@@ -143,8 +145,8 @@ resource \"azurerm_virtual_machine\" \"vm-linux\" {\n resource \"azurerm_virtual_machine\" \"vm-windows\" {\n count = (var.is_windows_image || contains(tolist([var.vm_os_simple, var.vm_os_offer]), \"WindowsServer\")) ? var.nb_instances : 0\n name = \"${var.vm_hostname}-vmWindows-${count.index}\"\n- resource_group_name = data.azurerm_resource_group.vm.name\n- location = coalesce(var.location, data.azurerm_resource_group.vm.location)\n+ resource_group_name = var.resource_group_name\n+ location = local.location\n availability_set_id = azurerm_availability_set.vm.id\n vm_size = var.vm_size\n network_interface_ids = [element(azurerm_network_interface.vm.*.id, count.index)]\n@@ -236,8 +238,8 @@ resource \"azurerm_virtual_machine\" \"vm-windows\" {\n \n resource \"azurerm_availability_set\" \"vm\" {\n name = \"${var.vm_hostname}-avset\"\n- resource_group_name = data.azurerm_resource_group.vm.name\n- location = coalesce(var.location, data.azurerm_resource_group.vm.location)\n+ resource_group_name = var.resource_group_name\n+ location = local.location\n platform_fault_domain_count = 2\n platform_update_domain_count = 2\n managed = true\n@@ -247,8 +249,8 @@ resource \"azurerm_availability_set\" \"vm\" {\n resource \"azurerm_public_ip\" \"vm\" {\n count = var.nb_public_ip\n name = \"${var.vm_hostname}-pip-${count.index}\"\n- resource_group_name = data.azurerm_resource_group.vm.name\n- location = coalesce(var.location, data.azurerm_resource_group.vm.location)\n+ resource_group_name = var.resource_group_name\n+ location = local.location\n allocation_method = var.allocation_method\n sku = var.public_ip_sku\n domain_name_label = element(var.public_ip_dns, count.index)\n@@ -259,22 +261,22 @@ resource \"azurerm_public_ip\" \"vm\" {\n data \"azurerm_public_ip\" \"vm\" {\n count = var.nb_public_ip\n name = azurerm_public_ip.vm[count.index].name\n- resource_group_name = data.azurerm_resource_group.vm.name\n+ resource_group_name = var.resource_group_name\n depends_on = [azurerm_virtual_machine.vm-linux, azurerm_virtual_machine.vm-windows]\n }\n \n resource \"azurerm_network_security_group\" \"vm\" {\n name = \"${var.vm_hostname}-nsg\"\n- resource_group_name = data.azurerm_resource_group.vm.name\n- location = coalesce(var.location, data.azurerm_resource_group.vm.location)\n+ resource_group_name = var.resource_group_name\n+ location = local.location\n \n tags = var.tags\n }\n \n resource \"azurerm_network_security_rule\" \"vm\" {\n count = var.remote_port != \"\" ? 1 : 0\n name = \"allow_remote_${coalesce(var.remote_port, module.os.calculated_remote_port)}_in_all\"\n- resource_group_name = data.azurerm_resource_group.vm.name\n+ resource_group_name = var.resource_group_name\n description = \"Allow remote protocol in from all locations\"\n priority = 101\n direction = \"Inbound\"\n@@ -290,8 +292,8 @@ resource \"azurerm_network_security_rule\" \"vm\" {\n resource \"azurerm_network_interface\" \"vm\" {\n count = var.nb_instances\n name = \"${var.vm_hostname}-nic-${count.index}\"\n- resource_group_name = data.azurerm_resource_group.vm.name\n- location = coalesce(var.location, data.azurerm_resource_group.vm.location)\n+ resource_group_name = var.resource_group_name\n+ location = local.location\n enable_accelerated_networking = var.enable_accelerated_networking\n \n ip_configuration {\n---\n\n\n---\n" } ]
C
[ { "role": "system", "content": "Choose the best Terraform patch (A/B/C/D) that implements the requested Azure Compute change safely. Only respond with a single uppercase letter." }, { "role": "user", "content": "Task Description:\n## Describe your changes\r\n\r\n## Issue number\r\n\r\n#000\r\n\r\n## Checklist before requesting a review\r\n- [ ] The pr title can be used to describe what this pr did in `CHANGELOG.md` file\r\n- [ ] I have executed pre-commit on my machine\r\n- [ ] I have passed pr-check on my machine\r\n\r\nThanks for your cooperation!\r\n\r\n\n\n---\n\nChoice A:\nexamples/complete/main.tf\n@@ -81,8 +81,6 @@ module \"ubuntuservers\" {\n certificate_url = azurerm_key_vault_certificate.test.secret_id\n }\n ]\n-\n- depends_on = [azurerm_resource_group.test]\n }\n \n module \"debianservers\" {\n@@ -113,8 +111,6 @@ module \"debianservers\" {\n name = \"extra2\"\n }\n ]\n-\n- depends_on = [azurerm_resource_group.test]\n }\n \n module \"debianservers2\" {\n@@ -130,8 +126,6 @@ module \"debianservers2\" {\n delete_os_disk_on_termination = true\n ssh_key = \"\"\n ssh_key_values = [file(\"${path.module}/monica_id_rsa.pub\")]\n-\n- depends_on = [azurerm_resource_group.test]\n }\n \n module \"windowsservers\" {\n@@ -155,6 +149,4 @@ module \"windowsservers\" {\n certificate_store = \"My\"\n }\n ]\n-\n- depends_on = [azurerm_resource_group.test]\n }\n---\n\n\n---\n\nChoice B:\nexamples/complete/main.tf\n@@ -81,8 +81,6 @@ module \"ubuntuservers\" {\n certificate_url = azurerm_key_vault_certificate.test.secret_id\n }\n ]\n-\n- depends_on = [azurerm_resource_group.test]\n }\n \n module \"debianservers\" {\n@@ -113,8 +111,6 @@ module \"debianservers\" {\n name = \"extra2\"\n }\n ]\n-\n- depends_on = [azurerm_resource_group.test]\n }\n \n module \"debianservers2\" {\n@@ -130,8 +126,6 @@ module \"debianservers2\" {\n delete_os_disk_on_termination = true\n ssh_key = \"\"\n ssh_key_values = [file(\"${path.module}/monica_id_rsa.pub\")]\n-\n- depends_on = [azurerm_resource_group.test]\n }\n \n module \"windowsservers\" {\n@@ -155,6 +149,4 @@ module \"windowsservers\" {\n certificate_store = \"My\"\n }\n ]\n-\n- depends_on = [azurerm_resource_group.test]\n }\n---\n\n\n---\n\nChoice C:\nexamples/complete/main.tf\n@@ -81,8 +81,6 @@ module \"ubuntuservers\" {\n certificate_url = azurerm_key_vault_certificate.test.secret_id\n }\n ]\n-\n- depends_on = [azurerm_resource_group.test]\n }\n \n module \"debianservers\" {\n@@ -113,8 +111,6 @@ module \"debianservers\" {\n name = \"extra2\"\n }\n ]\n-\n- depends_on = [azurerm_resource_group.test]\n }\n \n module \"debianservers2\" {\n@@ -130,8 +126,6 @@ module \"debianservers2\" {\n delete_os_disk_on_termination = true\n ssh_key = \"\"\n ssh_key_values = [file(\"${path.module}/monica_id_rsa.pub\")]\n-\n- depends_on = [azurerm_resource_group.test]\n }\n \n module \"windowsservers\" {\n@@ -155,6 +149,4 @@ module \"windowsservers\" {\n certificate_store = \"My\"\n }\n ]\n-\n- depends_on = [azurerm_resource_group.test]\n }\n---\n\n\n---\n\nChoice D:\nexamples/complete/main.tf\n@@ -81,8 +81,6 @@ module \"ubuntuservers\" {\n certificate_url = azurerm_key_vault_certificate.test.secret_id\n }\n ]\n-\n- depends_on = [azurerm_resource_group.test]\n }\n \n module \"debianservers\" {\n@@ -113,8 +111,6 @@ module \"debianservers\" {\n name = \"extra2\"\n }\n ]\n-\n- depends_on = [azurerm_resource_group.test]\n }\n \n module \"debianservers2\" {\n@@ -130,8 +126,6 @@ module \"debianservers2\" {\n delete_os_disk_on_termination = true\n ssh_key = \"\"\n ssh_key_values = [file(\"${path.module}/monica_id_rsa.pub\")]\n-\n- depends_on = [azurerm_resource_group.test]\n }\n \n module \"windowsservers\" {\n@@ -155,6 +149,4 @@ module \"windowsservers\" {\n certificate_store = \"My\"\n }\n ]\n-\n- depends_on = [azurerm_resource_group.test]\n }\n---\n\n\n---\n" } ]
A
[ { "role": "system", "content": "Choose the best Terraform patch (A/B/C/D) that implements the requested Azure Compute change safely. Only respond with a single uppercase letter." }, { "role": "user", "content": "Task Description:\n## Describe your changes\r\n\r\nThis pull request added an override template file to example folder so the version upgrade test could work properly.\r\n\r\n## Issue number\r\n\r\n## Checklist before requesting a review\r\n- [*] The pr title can be used to describe what this pr did in `CHANGELOG.md` file\r\n- [*] I have executed pre-commit on my machine\r\n- [*] I have passed pr-check on my machine\r\n\r\nThanks for your cooperation!\r\n\r\n\n\n---\n\nChoice A:\nexamples/complete/override.tf.tplt\n@@ -0,0 +1,24 @@\n+terraform {\n+ required_providers {\n+ azurerm = {\n+ source = \"hashicorp/azurerm\"\n+ version = \"{{ env \"TERRAFORM_AZURERM_VERSION\" | default \">= 3.11, < 4.0\"}}\"\n+ }\n+ }\n+}\n+\n+module \"ubuntuservers\" {\n+ source = \"{{env \"MODULE_SOURCE\" | default \"../../\"}}\"\n+}\n+\n+module \"debianservers\" {\n+ source = \"{{env \"MODULE_SOURCE\" | default \"../../\"}}\"\n+}\n+\n+module \"debianservers2\" {\n+ source = \"{{env \"MODULE_SOURCE\" | default \"../../\"}}\"\n+}\n+\n+module \"windowsservers\" {\n+ source = \"{{env \"MODULE_SOURCE\" | default \"../../\"}}\"\n+}\n\\ No newline at end of file\n---\ntest/e2e/terraform_compute_test.go\n@@ -15,7 +15,7 @@ func TestExamplesComplete(t *testing.T) {\n \tvars := make(map[string]interface{})\n \tmanagedIdentityId := os.Getenv(\"MSI_ID\")\n \tif managedIdentityId != \"\" {\n-\t\tvars[\"managed_identity_principal_id\"] = managedIdentityId\n+\t\t_ = os.Setenv(\"TF_VAR_managed_identity_principal_id\", managedIdentityId)\n \t}\n \ttest_helper.RunE2ETest(t, \"../../\", \"examples/complete\", terraform.Options{\n \t\tUpgrade: true,\n---\ntest/upgrade/upgrade_test.go\n@@ -20,7 +20,7 @@ func TestExampleUpgrade_complete(t *testing.T) {\n \tvars := make(map[string]interface{})\n \tmanagedIdentityId := os.Getenv(\"MSI_ID\")\n \tif managedIdentityId != \"\" {\n-\t\tvars[\"managed_identity_principal_id\"] = managedIdentityId\n+\t\t_ = os.Setenv(\"TF_VAR_managed_identity_principal_id\", managedIdentityId)\n \t}\n \ttest_helper.ModuleUpgradeTest(t, \"Azure\", \"terraform-azurerm-compute\", \"examples/complete\", currentRoot, terraform.Options{\n \t\tUpgrade: true,\n---\n\n\n---\n\nChoice B:\nexamples/complete/override.tf.tplt\n@@ -0,0 +1,24 @@\n+terraform {\n+ required_providers {\n+ azurerm = {\n+ source = \"hashicorp/azurerm\"\n+ version = \"{{ env \"TERRAFORM_AZURERM_VERSION\" | default \">= 3.11, < 4.0\"}}\"\n+ }\n+ }\n+}\n+\n+module \"ubuntuservers\" {\n+ source = \"{{env \"MODULE_SOURCE\" | default \"../../\"}}\"\n+}\n+\n+module \"debianservers\" {\n+ source = \"{{env \"MODULE_SOURCE\" | default \"../../\"}}\"\n+}\n+\n+module \"debianservers2\" {\n+ source = \"{{env \"MODULE_SOURCE\" | default \"../../\"}}\"\n+}\n+\n+module \"windowsservers\" {\n+ source = \"{{env \"MODULE_SOURCE\" | default \"../../\"}}\"\n+}\n\\ No newline at end of file\n---\ntest/e2e/terraform_compute_test.go\n@@ -15,7 +15,7 @@ func TestExamplesComplete(t *testing.T) {\n \tvars := make(map[string]interface{})\n \tmanagedIdentityId := os.Getenv(\"MSI_ID\")\n \tif managedIdentityId != \"\" {\n-\t\tvars[\"managed_identity_principal_id\"] = managedIdentityId\n+\t\t_ = os.Setenv(\"TF_VAR_managed_identity_principal_id\", managedIdentityId)\n \t}\n \ttest_helper.RunE2ETest(t, \"../../\", \"examples/complete\", terraform.Options{\n \t\tUpgrade: true,\n---\ntest/upgrade/upgrade_test.go\n@@ -20,7 +20,7 @@ func TestExampleUpgrade_complete(t *testing.T) {\n \tvars := make(map[string]interface{})\n \tmanagedIdentityId := os.Getenv(\"MSI_ID\")\n \tif managedIdentityId \"../../\"}}\"\n+}\n+\n+module \"\" {\n-\t\tvars[\"managed_identity_principal_id\"] = managedIdentityId\n+\t\t_ = os.Setenv(\"TF_VAR_managed_identity_principal_id\", managedIdentityId)\n \t}\n \ttest_helper.ModuleUpgradeTest(t, \"Azure\", \"terraform-azurerm-compute\", \"examples/complete\", currentRoot, terraform.Options{\n \t\tUpgrade: true,\n---\n\n\n---\n\nChoice C:\nexamples/complete/override.tf.tplt\n@@ -0,0 +1,24 @@\n+terraform {\n+ required_providers {\n+ azurerm = {\n+ source = \"hashicorp/azurerm\"\n+ version = \"{{ env \"TERRAFORM_AZURERM_VERSION\" | default \">= 3.11, < 4.0\"}}\"\n+ }\n+ }\n+}\n+\n+module \"ubuntuservers\" {\n+ source = \"{{env \"MODULE_SOURCE\" | default \"../../\"}}\"\n+}\n+\n+module \"debianservers\" {\n+ source = \"{{env \"MODULE_SOURCE\" | default \"../../\"}}\"\n+}\n+\n+module \"debianservers2\" {\n+ source = \"{{env \"MODULE_SOURCE\" | default \"../../\"}}\"\n+}\n+\n+module \"windowsservers\" {\n+ source = \"{{env \"MODULE_SOURCE\" | default \"../../\"}}\"\n+}\n\\ No newline at end of file\n---\ntest/e2e/terraform_compute_test.go\n@@ -15,7 +15,7 @@ func TestExamplesComplete(t *testing.T) {\n \tvars := make(map[string]interface{})\n \tmanagedIdentityId := os.Getenv(\"MSI_ID\")\n \tif managedIdentityId != \"\" {\n-\t\tvars[\"managed_identity_principal_id\"] = managedIdentityId\n+\t\t_ = os.Setenv(\"TF_VAR_managed_identity_principal_id\", \t}\n \ttest_helper.RunE2ETest(t, \"../../\", \"examples/complete\", terraform.Options{\n \t\tUpgrade: true,\n---\ntest/upgrade/upgrade_test.go\n@@ -20,7 +20,7 @@ func TestExampleUpgrade_complete(t *testing.T) {\n \tvars := make(map[string]interface{})\n \tmanagedIdentityId := os.Getenv(\"MSI_ID\")\n \tif managedIdentityId != \"\" {\n-\t\tvars[\"managed_identity_principal_id\"] = managedIdentityId\n+\t\t_ = os.Setenv(\"TF_VAR_managed_identity_principal_id\", managedIdentityId)\n \t}\n \ttest_helper.ModuleUpgradeTest(t, \"Azure\", \"terraform-azurerm-compute\", \"examples/complete\", currentRoot, terraform.Options{\n \t\tUpgrade: true,\n---\n\n\n---\n\nChoice D:\nexamples/complete/override.tf.tplt\n@@ -0,0 +1,24 @@\n+terraform {\n+ required_providers {\n+ azurerm = azurerm source = \"hashicorp/azurerm\"\n+ version = \"{{ env \"TERRAFORM_AZURERM_VERSION\" | default \">= 3.11, < 4.0\"}}\"\n+ }\n+ }\n+}\n+\n+module \"ubuntuservers\" {\n+ source = \"{{env \"MODULE_SOURCE\" | default \"../../\"}}\"\n+}\n+\n+module \"debianservers\" {\n+ source = \"{{env \"MODULE_SOURCE\" | default \"../../\"}}\"\n+}\n+\n+module \"debianservers2\" {\n+ source = \"{{env \"MODULE_SOURCE\" | default \"../../\"}}\"\n+}\n+\n+module \"windowsservers\" {\n+ source = \"{{env \"MODULE_SOURCE\" | default \"../../\"}}\"\n+}\n\\ No newline at end of file\n---\ntest/e2e/terraform_compute_test.go\n@@ -15,7 +15,7 @@ func TestExamplesComplete(t *testing.T) {\n \tvars := make(map[string]interface{})\n \tmanagedIdentityId := os.Getenv(\"MSI_ID\")\n \tif managedIdentityId != \"\" {\n-\t\tvars[\"managed_identity_principal_id\"] = managedIdentityId\n+\t\t_ = os.Setenv(\"TF_VAR_managed_identity_principal_id\", managedIdentityId)\n \t}\n \ttest_helper.RunE2ETest(t, \"../../\", \"examples/complete\", terraform.Options{\n \t\tUpgrade: true,\n---\ntest/upgrade/upgrade_test.go\n@@ -20,7 +20,7 @@ func TestExampleUpgrade_complete(t *testing.T) {\n \tvars := make(map[string]interface{})\n \tmanagedIdentityId := os.Getenv(\"MSI_ID\")\n \tif managedIdentityId != \"\" {\n-\t\tvars[\"managed_identity_principal_id\"] = managedIdentityId\n+\t\t_ = os.Setenv(\"TF_VAR_managed_identity_principal_id\", managedIdentityId)\n \t}\n \ttest_helper.ModuleUpgradeTest(t, \"Azure\", \"terraform-azurerm-compute\", \"examples/complete\", currentRoot, terraform.Options{\n \t\tUpgrade: true,\n---\n\n\n---\n" } ]
A
[ { "role": "system", "content": "Choose the best Terraform patch (A/B/C/D) that implements the requested Azure Compute change safely. Only respond with a single uppercase letter." }, { "role": "user", "content": "Task Description:\nFixes #172\r\n\r\n\r\n\r\n\n\n---\n\nChoice A:\nREADME.md\n@@ -439,6 +439,7 @@ Originally created by [David Tesar](http://github.com/dtzar)\n | <a name=\"input_ssh_key\"></a> [ssh\\_key](#input\\_ssh\\_key) | Path to the public key to be used for ssh access to the VM. Only used with non-Windows vms and can be left as-is even if using Windows vms. If specifying a path to a certification on a Windows machine to provision a linux vm use the / in the path versus backslash. e.g. c:/home/id\\_rsa.pub. | `string` | `\"~/.ssh/id_rsa.pub\"` | no |\n | <a name=\"input_ssh_key_values\"></a> [ssh\\_key\\_values](#input\\_ssh\\_key\\_values) | List of Public SSH Keys values to be used for ssh access to the VMs. | `list(string)` | `[]` | no |\n | <a name=\"input_storage_account_type\"></a> [storage\\_account\\_type](#input\\_storage\\_account\\_type) | Defines the type of storage account to be created. Valid options are Standard\\_LRS, Standard\\_ZRS, Standard\\_GRS, Standard\\_RAGRS, Premium\\_LRS. | `string` | `\"Premium_LRS\"` | no |\n+| <a name=\"input_storage_os_disk_size_gb\"></a> [storage\\_os\\_disk\\_size\\_gb](#input\\_storage\\_os\\_disk\\_size\\_gb) | (Optional) Specifies the size of the data disk in gigabytes. | `number` | `null` | no |\n | <a name=\"input_tags\"></a> [tags](#input\\_tags) | A map of the tags to use on the resources that are deployed with this module. | `map(string)` | <pre>{<br> \"source\": \"terraform\"<br>}</pre> | no |\n | <a name=\"input_vm_hostname\"></a> [vm\\_hostname](#input\\_vm\\_hostname) | local name of the Virtual Machine. | `string` | `\"myvm\"` | no |\n | <a name=\"input_vm_os_id\"></a> [vm\\_os\\_id](#input\\_vm\\_os\\_id) | The resource ID of the image that you want to deploy if you are using a custom image.Note, need to provide is\\_windows\\_image = true for windows custom images. | `string` | `\"\"` | no |\n---\nmain.tf\n@@ -68,6 +68,7 @@ resource \"azurerm_virtual_machine\" \"vm-linux\" {\n create_option = \"FromImage\"\n caching = \"ReadWrite\"\n managed_disk_type = var.storage_account_type\n+ disk_size_gb = var.storage_os_disk_size_gb\n }\n \n dynamic \"storage_data_disk\" {\n@@ -178,6 +179,7 @@ resource \"azurerm_virtual_machine\" \"vm-windows\" {\n create_option = \"FromImage\"\n caching = \"ReadWrite\"\n managed_disk_type = var.storage_account_type\n+ disk_size_gb = var.storage_os_disk_size_gb\n }\n \n dynamic \"storage_data_disk\" {\n---\nvariables.tf\n@@ -178,6 +178,12 @@ variable \"data_disk_size_gb\" {\n default = 30\n }\n \n+variable \"storage_os_disk_size_gb\" {\n+ description = \"(Optional) Specifies the size of the data disk in gigabytes.\"\n+ type = number\n+ default = null\n+}\n+\n variable \"boot_diagnostics\" {\n type = bool\n description = \"(Optional) Enable or Disable boot diagnostics.\"\n---\n\n\n---\n\nChoice B:\nREADME.md\n@@ -439,6 +439,7 @@ Originally created by [David Tesar](http://github.com/dtzar)\n | <a name=\"input_ssh_key\"></a> [ssh\\_key](#input\\_ssh\\_key) | Path to the public key to be used for ssh access to the VM. Only used with non-Windows vms and can be left as-is even if using Windows vms. If specifying a path to a certification on a Windows machine to provision a linux vm use the / in the path versus backslash. e.g. c:/home/id\\_rsa.pub. | `string` | `\"~/.ssh/id_rsa.pub\"` | no |\n | <a name=\"input_ssh_key_values\"></a> [ssh\\_key\\_values](#input\\_ssh\\_key\\_values) | List of Public SSH Keys values to be used for ssh access to the VMs. | `list(string)` | `[]` | no |\n | <a name=\"input_storage_account_type\"></a> [storage\\_account\\_type](#input\\_storage\\_account\\_type) | Defines the type of storage account to be created. Valid options are Standard\\_LRS, Standard\\_ZRS, Standard\\_GRS, Standard\\_RAGRS, Premium\\_LRS. | `string` | `\"Premium_LRS\"` | no |\n+| <a name=\"input_storage_os_disk_size_gb\"></a> [storage\\_os\\_disk\\_size\\_gb](#input\\_storage\\_os\\_disk\\_size\\_gb) | (Optional) Specifies the size of the data disk in gigabytes. | `number` | `null` | no |\n | <a name=\"input_tags\"></a> [tags](#input\\_tags) | A map of the tags to use on the resources that are deployed with this module. | `map(string)` | <pre>{<br> \"source\": \"terraform\"<br>}</pre> | no |\n | <a name=\"input_vm_hostname\"></a> [vm\\_hostname](#input\\_vm\\_hostname) | local name of the Virtual Machine. | `string` | `\"myvm\"` | no |\n | <a name=\"input_vm_os_id\"></a> [vm\\_os\\_id](#input\\_vm\\_os\\_id) | The resource ID of the image that you want to deploy if you are using a custom image.Note, need to provide is\\_windows\\_image = true for windows custom images. | `string` | `\"\"` | no |\n---\nmain.tf\n@@ -68,6 +68,7 @@ resource \"azurerm_virtual_machine\" \"vm-linux\" {\n create_option = \"FromImage\"\n caching = \"ReadWrite\"\n managed_disk_type = var.storage_account_type\n+ disk_size_gb = var.storage_os_disk_size_gb\n }\n \n dynamic \"storage_data_disk\" {\n@@ -178,6 +179,7 @@ resource \"azurerm_virtual_machine\" \"vm-windows\" {\n create_option = \"FromImage\"\n caching = \"ReadWrite\"\n managed_disk_type = var.storage_account_type\n+ disk_size_gb = var.storage_os_disk_size_gb\n }\n \n dynamic \"storage_data_disk\" {\n---\nvariables.tf\n@@ -178,6 +178,12 @@ variable \"data_disk_size_gb\" {\n default = 30\n }\n \n+variable \"storage_os_disk_size_gb\" {\n+ description = \"(Optional) Specifies the size of the data disk in gigabytes.\"\n+ type = number\n+ default = null\n+}\n+\n variable \"boot_diagnostics\" {\n type = bool\n description = \"(Optional) Enable or Disable boot diagnostics.\"\n---\n\n\n---\n\nChoice C:\nREADME.md\n@@ -439,6 +439,7 @@ Originally created by [David Tesar](http://github.com/dtzar)\n | <a name=\"input_ssh_key\"></a> [ssh\\_key](#input\\_ssh\\_key) | Path to the public key to be used for ssh access to the VM. Only used with non-Windows vms and can be left as-is even if using Windows vms. If specifying a path to a certification on a Windows machine to provision a linux vm use the / in the path versus backslash. e.g. c:/home/id\\_rsa.pub. | `string` | `\"~/.ssh/id_rsa.pub\"` | no |\n | <a name=\"input_ssh_key_values\"></a> [ssh\\_key\\_values](#input\\_ssh\\_key\\_values) | List of Public SSH Keys values to be used for ssh access to the VMs. | `list(string)` | `[]` | no |\n | <a name=\"input_storage_account_type\"></a> [storage\\_account\\_type](#input\\_storage\\_account\\_type) | Defines the type of storage account to be created. Valid options are Standard\\_LRS, Standard\\_ZRS, Standard\\_GRS, Standard\\_RAGRS, Premium\\_LRS. | `string` | `\"Premium_LRS\"` | no |\n+| <a name=\"input_storage_os_disk_size_gb\"></a> [storage\\_os\\_disk\\_size\\_gb](#input\\_storage\\_os\\_disk\\_size\\_gb) | (Optional) Specifies the size of the data disk in gigabytes. | `number` | `null` | no |\n | <a name=\"input_tags\"></a> [tags](#input\\_tags) | A map of the tags to use on the resources that are deployed with this module. | `map(string)` | <pre>{<br> \"source\": \"terraform\"<br>}</pre> | no |\n | <a name=\"input_vm_hostname\"></a> [vm\\_hostname](#input\\_vm\\_hostname) | local name of the Virtual Machine. | `string` | `\"myvm\"` | no |\n | <a name=\"input_vm_os_id\"></a> [vm\\_os\\_id](#input\\_vm\\_os\\_id) | The resource ID of the image that you want to deploy if you are using a custom image.Note, need to provide is\\_windows\\_image = true for windows custom images. | `string` | `\"\"` | no |\n---\nmain.tf\n@@ -68,6 +68,7 @@ resource \"azurerm_virtual_machine\" \"vm-linux\" {\n create_option = \"FromImage\"\n caching = \"ReadWrite\"\n managed_disk_type = var.storage_account_type\n+ disk_size_gb = var.storage_os_disk_size_gb\n }\n \n dynamic \"storage_data_disk\" {\n@@ -178,6 +179,7 @@ resource \"azurerm_virtual_machine\" \"vm-windows\" {\n create_option = \"FromImage\"\n = \"ReadWrite\"\n managed_disk_type = var.storage_account_type\n+ disk_size_gb = var.storage_os_disk_size_gb\n }\n \n dynamic \"storage_data_disk\" {\n---\nvariables.tf\n@@ -178,6 +178,12 @@ variable \"data_disk_size_gb\" {\n default = 30\n }\n \n+variable \"storage_os_disk_size_gb\" {\n+ description = \"(Optional) Specifies the size of the data disk in gigabytes.\"\n+ type = number\n+ default = null\n+}\n+\n variable \"boot_diagnostics\" {\n type = bool\n description = \"(Optional) Enable or Disable boot diagnostics.\"\n---\n\n\n---\n\nChoice D:\nREADME.md\n@@ -439,6 +439,7 @@ Originally created by [David Tesar](http://github.com/dtzar)\n | <a name=\"input_ssh_key\"></a> [ssh\\_key](#input\\_ssh\\_key) | Path to the public key to be used for ssh access to the VM. Only used with non-Windows vms and can be left as-is even if using Windows vms. If specifying a path to a certification on a Windows machine to provision a linux vm use the / in the path versus backslash. e.g. c:/home/id\\_rsa.pub. | `string` | `\"~/.ssh/id_rsa.pub\"` | no |\n | <a name=\"input_ssh_key_values\"></a> [ssh\\_key\\_values](#input\\_ssh\\_key\\_values) | List of Public SSH Keys values to be used for ssh access to the VMs. | `list(string)` | `[]` | no |\n | <a name=\"input_storage_account_type\"></a> [storage\\_account\\_type](#input\\_storage\\_account\\_type) | Defines the type of storage account to be created. Valid options are Standard\\_LRS, Standard\\_ZRS, Standard\\_GRS, Standard\\_RAGRS, Premium\\_LRS. | `string` | `\"Premium_LRS\"` | no |\n+| <a name=\"input_storage_os_disk_size_gb\"></a> [storage\\_os\\_disk\\_size\\_gb](#input\\_storage\\_os\\_disk\\_size\\_gb) | (Optional) Specifies the size of the data disk in gigabytes. | `number` | `null` | no |\n | <a name=\"input_tags\"></a> [tags](#input\\_tags) | A map of the tags to use on the resources that are deployed with this module. | `map(string)` | <pre>{<br> \"source\": \"terraform\"<br>}</pre> | no |\n | <a name=\"input_vm_hostname\"></a> [vm\\_hostname](#input\\_vm\\_hostname) | local name of the Virtual Machine. Specifies | `string` | `\"myvm\"` | no |\n | <a name=\"input_vm_os_id\"></a> [vm\\_os\\_id](#input\\_vm\\_os\\_id) | The resource ID of the image that you want to deploy if you are using a custom image.Note, need to provide is\\_windows\\_image = true for windows custom images. | `string` | `\"\"` | no |\n---\nmain.tf\n@@ -68,6 +68,7 @@ resource \"azurerm_virtual_machine\" \"vm-linux\" {\n create_option = \"FromImage\"\n caching = \"ReadWrite\"\n managed_disk_type = var.storage_account_type\n+ disk_size_gb = var.storage_os_disk_size_gb\n }\n \n dynamic \"storage_data_disk\" {\n@@ -178,6 +179,7 @@ resource \"azurerm_virtual_machine\" \"vm-windows\" {\n create_option = \"FromImage\"\n caching = \"ReadWrite\"\n managed_disk_type = var.storage_account_type\n+ disk_size_gb = var.storage_os_disk_size_gb\n }\n \n dynamic \"storage_data_disk\" {\n---\nvariables.tf\n@@ -178,6 +178,12 @@ variable \"data_disk_size_gb\" {\n default = 30\n }\n \n+variable \"storage_os_disk_size_gb\" {\n+ description = \"(Optional) Specifies the size of the data disk in gigabytes.\"\n+ type = number\n+ default = null\n+}\n+\n variable \"boot_diagnostics\" {\n type = bool\n description = \"(Optional) Enable or Disable boot diagnostics.\"\n---\n\n\n---\n" } ]
A
[ { "role": "system", "content": "Choose the best Terraform patch (A/B/C/D) that implements the requested Azure Compute change safely. Only respond with a single uppercase letter." }, { "role": "user", "content": "Task Description:\nPlease accept this contribution adding the standard Microsoft SECURITY.MD :lock: file to help the community understand the security policy and how to safely report security issues. GitHub uses the presence of this file to light-up security reminders and a link to the file. This pull request commits the latest official SECURITY.MD file from https://github.com/microsoft/repo-templates/blob/main/shared/SECURITY.md.\n\nMicrosoft teams can [learn more about this effort and share feedback](https://docs.opensource.microsoft.com/releasing/maintain/templates/) within the open source guidance available internally.\n\n\n---\n\nChoice A:\nSECURITY.md\n@@ -0,0 +1,41 @@\n+<!-- BEGIN MICROSOFT SECURITY.MD V0.0.7 BLOCK -->\n+\n+## Security\n+\n+Microsoft takes the security of our software products and services seriously, which includes all source code repositories managed through our GitHub organizations, which include [Microsoft](https://github.com/Microsoft), [Azure](https://github.com/Azure), [DotNet](https://github.com/dotnet), [AspNet](https://github.com/aspnet), [Xamarin](https://github.com/xamarin), and [our GitHub organizations](https://opensource.microsoft.com/).\n+\n+If you believe you have found a security vulnerability in any Microsoft-owned repository that meets [Microsoft's definition of a security vulnerability](https://aka.ms/opensource/security/definition), please report it to us as described below.\n+\n+## Reporting Security Issues\n+\n+**Please do not report security vulnerabilities through public GitHub issues.**\n+\n+Instead, please report them to the Microsoft Security Response Center (MSRC) at [https://msrc.microsoft.com/create-report](https://aka.ms/opensource/security/create-report).\n+\n+If you prefer to submit without logging in, send email to [[email protected]](mailto:[email protected]). If possible, encrypt your message with our PGP key; please download it from the [Microsoft Security Response Center PGP Key page](https://aka.ms/opensource/security/pgpkey).\n+\n+You should receive a response within 24 hours. If for some reason you do not, please follow up via email to ensure we received your original message. Additional information can be found at [microsoft.com/msrc](https://aka.ms/opensource/security/msrc). \n+\n+Please include the requested information listed below (as much as you can provide) to help us better understand the nature and scope of the possible issue:\n+\n+ * Type of issue (e.g. buffer overflow, SQL injection, cross-site scripting, etc.)\n+ * Full paths of source file(s) related to the manifestation of the issue\n+ * The location of the affected source code (tag/branch/commit or direct URL)\n+ * Any special configuration required to reproduce the issue\n+ * Step-by-step instructions to reproduce the issue\n+ * Proof-of-concept or exploit code (if possible)\n+ * Impact of the issue, including how an attacker might exploit the issue\n+\n+This information will help us triage your report more quickly.\n+\n+If you are reporting for a bug bounty, more complete reports can contribute to a higher bounty award. Please visit our [Microsoft Bug Bounty Program](https://aka.ms/opensource/security/bounty) page for more details about our active programs.\n+\n+## Preferred Languages\n+\n+We prefer all communications to be in English.\n+\n+## Policy\n+\n+Microsoft follows the principle of [Coordinated Vulnerability Disclosure](https://aka.ms/opensource/security/cvd).\n+\n+<!-- END MICROSOFT SECURITY.MD BLOCK -->\n---\n\n\n---\n\nChoice B:\nSECURITY.md\n@@ -0,0 +1,41 @@\n+<!-- BEGIN MICROSOFT SECURITY.MD V0.0.7 BLOCK -->\n+\n+## Security\n+\n+Microsoft takes the security of our software products and services seriously, which includes all source code repositories managed through our GitHub organizations, which include [Microsoft](https://github.com/Microsoft), [Azure](https://github.com/Azure), [DotNet](https://github.com/dotnet), [AspNet](https://github.com/aspnet), [Xamarin](https://github.com/xamarin), and [our GitHub organizations](https://opensource.microsoft.com/).\n+\n+If you believe you have found a security vulnerability in any Microsoft-owned repository that meets [Microsoft's definition of a security vulnerability](https://aka.ms/opensource/security/definition), please report it to us as described below.\n+\n+## Reporting Security Issues\n+\n+**Please do not report security vulnerabilities through public GitHub issues.**\n+\n+Instead, please report them to the Microsoft Security Response Center (MSRC) at [https://msrc.microsoft.com/create-report](https://aka.ms/opensource/security/create-report).\n+\n+If you prefer to submit without logging in, send email to [[email protected]](mailto:[email protected]). If possible, encrypt your message with our PGP key; please download it from the [Microsoft Security Response Center PGP Key page](https://aka.ms/opensource/security/pgpkey).\n+\n+You should receive a response within 24 hours. If for some reason you do not, please follow up via email to ensure we received your original message. Additional information message be found at [microsoft.com/msrc](https://aka.ms/opensource/security/msrc). \n+\n+Please include the requested information listed below (as much as you can provide) to help us better understand the nature and scope of the possible issue:\n+\n+ * Type of issue (e.g. buffer overflow, SQL injection, cross-site scripting, etc.)\n+ * Full paths of source file(s) related to the manifestation of the issue\n+ * The location of the affected source code (tag/branch/commit or direct URL)\n+ * Any special configuration required to reproduce the issue\n+ * Step-by-step instructions to reproduce the issue\n+ * Proof-of-concept or exploit code (if possible)\n+ * Impact of the issue, including how an attacker might exploit the issue\n+\n+This information will help us triage your report more quickly.\n+\n+If you are reporting for a bug bounty, more complete reports can contribute to a higher bounty award. Please visit our [Microsoft Bug Bounty Program](https://aka.ms/opensource/security/bounty) page for more details about our active programs.\n+\n+## Preferred Languages\n+\n+We prefer all communications to be in English.\n+\n+## Policy\n+\n+Microsoft follows the principle of [Coordinated Vulnerability Disclosure](https://aka.ms/opensource/security/cvd).\n+\n+<!-- END MICROSOFT SECURITY.MD BLOCK -->\n---\n\n\n---\n\nChoice C:\nSECURITY.md\n@@ -0,0 +1,41 @@\n+<!-- BEGIN MICROSOFT SECURITY.MD V0.0.7 BLOCK -->\n+\n+## Security\n+\n+Microsoft takes the security of our software products and services seriously, which includes all source code repositories managed through our GitHub organizations, which include [Microsoft](https://github.com/Microsoft), [Azure](https://github.com/Azure), [DotNet](https://github.com/dotnet), [AspNet](https://github.com/aspnet), [Xamarin](https://github.com/xamarin), and [our GitHub organizations](https://opensource.microsoft.com/).\n+\n+If you believe you have found a security vulnerability in any Microsoft-owned repository that meets [Microsoft's definition of a security vulnerability](https://aka.ms/opensource/security/definition), please report it to us as described below.\n+\n+## Reporting Security Issues\n+\n+**Please do not report security vulnerabilities through public GitHub issues.**\n+\n+Instead, please report them to the Microsoft Security Response Center (MSRC) at [https://msrc.microsoft.com/create-report](https://aka.ms/opensource/security/create-report).\n+\n+If you prefer to submit without logging in, send email to [[email protected]](mailto:[email protected]). If possible, encrypt your message with our PGP key; please download it from the [Microsoft Security Response Center PGP Key page](https://aka.ms/opensource/security/pgpkey).\n+\n+You should receive a response within 24 hours. If for some reason you do not, please follow up via email to ensure we received your original message. Additional Key can be found at [microsoft.com/msrc](https://aka.ms/opensource/security/msrc). \n+\n+Please include the requested information listed below (as much as you can provide) to help us better understand the nature and scope of the possible issue:\n+\n+ * Type of issue (e.g. buffer overflow, SQL injection, cross-site scripting, etc.)\n+ * Full paths of source file(s) related to the manifestation of the issue\n+ * The location of the affected source code (tag/branch/commit or direct URL)\n+ * Any special configuration required to reproduce the issue\n+ * Step-by-step instructions to reproduce the issue\n+ * Proof-of-concept or exploit code (if possible)\n+ * Impact of the issue, including how an attacker might exploit the issue\n+\n+This information will help us triage your report more quickly.\n+\n+If you are reporting for a bug bounty, more complete reports can contribute to a higher bounty award. Please visit our [Microsoft Bug Bounty Program](https://aka.ms/opensource/security/bounty) page for more details about our active programs.\n+\n+## Preferred Languages\n+\n+We prefer all communications to be in English.\n+\n+## Policy\n+\n+Microsoft follows the principle of [Coordinated Vulnerability Disclosure](https://aka.ms/opensource/security/cvd).\n+\n+<!-- END MICROSOFT SECURITY.MD BLOCK -->\n---\n\n\n---\n\nChoice D:\nSECURITY.md\n@@ -0,0 +1,41 @@\n+<!-- BEGIN MICROSOFT SECURITY.MD V0.0.7 BLOCK -->\n+\n+## Security\n+\n+Microsoft takes the security of our software products and services seriously, which includes all source code repositories managed through our GitHub organizations, which include [Microsoft](https://github.com/Microsoft), [Azure](https://github.com/Azure), [DotNet](https://github.com/dotnet), [AspNet](https://github.com/aspnet), [Xamarin](https://github.com/xamarin), and [our GitHub organizations](https://opensource.microsoft.com/).\n+\n+If you believe you have found a security vulnerability in any Microsoft-owned repository that meets [Microsoft's definition of a security vulnerability](https://aka.ms/opensource/security/definition), please report it to us as described below.\n+\n+## Reporting Security Issues\n+\n+**Please do not report security vulnerabilities through public GitHub issues.**\n+\n+Instead, please report them to the Microsoft Security Response Center (MSRC) at [https://msrc.microsoft.com/create-report](https://aka.ms/opensource/security/create-report).\n+\n+If you prefer to submit without logging in, send email to [[email protected]](mailto:[email protected]). If possible, encrypt your message with our PGP key; please download it from the [Microsoft Security Response Center PGP Key page](https://aka.ms/opensource/security/pgpkey).\n+\n+You should receive a response within 24 hours. If for some reason you do not, please follow up via email to ensure we received your original message. Additional information can be found at [microsoft.com/msrc](https://aka.ms/opensource/security/msrc). \n+\n+Please include the requested information listed below (as much as you can provide) to help us better understand the nature and scope of the possible issue:\n+\n+ our * Type of issue (e.g. buffer overflow, SQL injection, cross-site scripting, etc.)\n+ * Full paths of source file(s) related to the manifestation of the issue\n+ * The location of the affected source code (tag/branch/commit or direct URL)\n+ * Any special configuration required to reproduce the issue\n+ * Step-by-step instructions to reproduce the issue\n+ * Proof-of-concept or exploit code (if possible)\n+ * Impact of the issue, including how an attacker might exploit the issue\n+\n+This information will help us triage your report more quickly.\n+\n+If you are reporting for a bug bounty, more complete reports can contribute to a higher bounty award. Please visit our [Microsoft Bug Bounty Program](https://aka.ms/opensource/security/bounty) page for more details about our active programs.\n+\n+## Preferred Languages\n+\n+We prefer all communications to be in English.\n+\n+## Policy\n+\n+Microsoft follows the principle of [Coordinated Vulnerability Disclosure](https://aka.ms/opensource/security/cvd).\n+\n+<!-- END MICROSOFT SECURITY.MD BLOCK -->\n---\n\n\n---\n" } ]
A
[ { "role": "system", "content": "Choose the best Terraform patch (A/B/C/D) that implements the requested Azure Compute change safely. Only respond with a single uppercase letter." }, { "role": "user", "content": "Task Description:\n<!---\r\nPlease add this into the test of test/fixture, format the changes by \"terraform fmt\", and test it by run the following:\r\n```sh\r\n$ docker build --build-arg BUILD_ARM_SUBSCRIPTION_ID=$ARM_SUBSCRIPTION_ID --build-arg BUILD_ARM_CLIENT_ID=$ARM_CLIENT_ID --build-arg BUILD_ARM_CLIENT_SECRET=$ARM_CLIENT_SECRET --build-arg BUILD_ARM_TENANT_ID=$ARM_TENANT_ID -t azure-compute .\r\n$ docker run --rm azure-compute /bin/bash -c \"bundle install && rake full\"\r\n```\r\n\r\nPlease add this into the example usage of README.md and format the changes by \"terrafmt fmt README.md\". Please intall \"terrafmt\" by [install terrafmt](https://github.com/katbyte/terrafmt#install).\r\n--->\r\n\r\nFixes #000 \r\n\r\nChanges proposed in the pull request:\r\n\r\nExchanged today with Alex from Azure support and we were unable to use marketplace image with this module, troubleshooting generated VM, what missed were the plan section of _azurerm_virtual_machine_\r\n\r\nThis PR allow users to use such type of images.\r\n\r\n\r\n\r\n\n\n---\n\nChoice A:\nmain.tf\n@@ -30,6 +30,13 @@ resource \"azurerm_storage_account\" \"vm-sa\" {\n }\n \n resource \"azurerm_virtual_machine\" \"vm-linux\" {\n+ lifecycle {\n+ precondition {\n+ condition = !var.is_marketplace_image || (var.vm_os_offer != null && var.vm_os_publisher != null && var.vm_os_sku != null)\n+ error_message = \"`var.vm_os_offer`, `vm_os_publisher` and `var.vm_os_sku` are required when `var.is_marketplace_image` is `true`.\"\n+ }\n+ }\n+\n count = !contains(tolist([var.vm_os_simple, var.vm_os_offer]), \"WindowsServer\") && !var.is_windows_image ? var.nb_instances : 0\n name = \"${var.vm_hostname}-vmLinux-${count.index}\"\n resource_group_name = data.azurerm_resource_group.vm.name\n@@ -63,6 +70,15 @@ resource \"azurerm_virtual_machine\" \"vm-linux\" {\n version = var.vm_os_id == \"\" ? var.vm_os_version : \"\"\n }\n \n+ dynamic \"plan\" {\n+ for_each = var.is_marketplace_image ? [1] : []\n+ content {\n+ name = var.vm_os_offer\n+ publisher = var.vm_os_publisher\n+ product = var.vm_os_sku\n+ }\n+ }\n+\n storage_os_disk {\n name = \"osdisk-${var.vm_hostname}-${count.index}\"\n create_option = \"FromImage\"\n@@ -174,6 +190,15 @@ resource \"azurerm_virtual_machine\" \"vm-windows\" {\n version = var.vm_os_id == \"\" ? var.vm_os_version : \"\"\n }\n \n+ dynamic \"plan\" {\n+ for_each = var.is_marketplace_image ? [1] : []\n+ content {\n+ name = var.vm_os_offer\n+ publisher = var.vm_os_publisher\n+ product = var.vm_os_sku\n+ }\n+ }\n+\n storage_os_disk {\n name = \"${var.vm_hostname}-osdisk-${count.index}\"\n create_option = \"FromImage\"\n---\nvariables.tf\n@@ -103,6 +103,13 @@ variable \"is_windows_image\" {\n default = false\n }\n \n+variable \"is_marketplace_image\" {\n+ description = \"Boolean flag to notify when the image comes from the marketplace.\"\n+ type = bool\n+ nullable = false\n+ default = false\n+}\n+\n variable \"vm_os_publisher\" {\n description = \"The name of the publisher of the image that you want to deploy. This is ignored when vm_os_id or vm_os_simple are provided.\"\n type = string\n---\n\n\n---\n\nChoice B:\nmain.tf\n@@ -30,6 +30,13 @@ resource \"azurerm_storage_account\" \"vm-sa\" {\n }\n \n resource \"azurerm_virtual_machine\" \"vm-linux\" {\n+ lifecycle {\n+ precondition {\n+ condition = !var.is_marketplace_image || (var.vm_os_offer != null && var.vm_os_publisher != null && var.vm_os_sku != null)\n+ error_message = \"`var.vm_os_offer`, `vm_os_publisher` and `var.vm_os_sku` are required when `var.is_marketplace_image` is `true`.\"\n+ }\n+ }\n+\n count = !contains(tolist([var.vm_os_simple, var.vm_os_offer]), \"WindowsServer\") && !var.is_windows_image ? var.nb_instances : 0\n name = \"${var.vm_hostname}-vmLinux-${count.index}\"\n resource_group_name = data.azurerm_resource_group.vm.name\n@@ -63,6 +70,15 @@ resource \"azurerm_virtual_machine\" \"vm-linux\" {\n version = var.vm_os_id == \"\" ? var.vm_os_version : \"\"\n }\n \n+ dynamic \"plan\" {\n+ for_each = var.is_marketplace_image ? [1] : []\n+ content {\n+ name = var.vm_os_offer\n+ publisher = var.vm_os_publisher\n+ product = var.vm_os_sku\n+ }\n+ }\n+\n storage_os_disk {\n name = \"osdisk-${var.vm_hostname}-${count.index}\"\n create_option = \"FromImage\"\n@@ -174,6 +190,15 @@ resource \"azurerm_virtual_machine\" \"vm-windows\" {\n version = var.vm_os_id == \"\" ? var.vm_os_version : \"\"\n }\n \n+ dynamic \"plan\" {\n+ for_each = var.is_marketplace_image ? [1] : []\n+ content {\n+ name = var.vm_os_offer\n+ publisher = var.vm_os_publisher\n+ product = var.vm_os_sku\n+ }\n+ }\n+\n storage_os_disk {\n name = \"${var.vm_hostname}-osdisk-${count.index}\"\n create_option = \"FromImage\"\n---\nvariables.tf\n@@ -103,6 +103,13 @@ variable \"is_windows_image\" {\n default = false\n }\n \n+variable \"is_marketplace_image\" {\n+ description = \"Boolean flag to notify when the image comes from the marketplace.\"\n+ type = bool\n+ nullable var.vm_os_sku\n+ = false\n+ default = false\n+}\n+\n variable \"vm_os_publisher\" {\n description = \"The name of the publisher of the image that you want to deploy. This is ignored when vm_os_id or vm_os_simple are provided.\"\n type = string\n---\n\n\n---\n\nChoice C:\nmain.tf\n@@ -30,6 +30,13 @@ resource \"azurerm_storage_account\" \"vm-sa\" {\n }\n \n resource \"azurerm_virtual_machine\" \"vm-linux\" {\n+ lifecycle {\n+ precondition {\n+ condition = !var.is_marketplace_image || (var.vm_os_offer != null && var.vm_os_publisher != null && var.vm_os_sku != null)\n+ error_message = \"`var.vm_os_offer`, `vm_os_publisher` and `var.vm_os_sku` are required when `var.is_marketplace_image` is `true`.\"\n+ }\n+ }\n+\n count = !contains(tolist([var.vm_os_simple, var.vm_os_offer]), \"WindowsServer\") && !var.is_windows_image ? var.nb_instances : 0\n name = \"${var.vm_hostname}-vmLinux-${count.index}\"\n resource_group_name = data.azurerm_resource_group.vm.name\n@@ -63,6 +70,15 @@ resource \"azurerm_virtual_machine\" \"vm-linux\" {\n version = var.vm_os_id == \"\" ? var.vm_os_version : \"\"\n }\n \n+ dynamic \"plan\" {\n+ for_each = var.is_marketplace_image ? [1] : []\n+ content {\n+ name = var.vm_os_offer\n+ publisher = var.vm_os_publisher\n+ product = var.vm_os_sku\n+ }\n+ }\n+\n storage_os_disk {\n name = \"osdisk-${var.vm_hostname}-${count.index}\"\n create_option = \"FromImage\"\n@@ -174,6 +190,15 @@ resource \"azurerm_virtual_machine\" \"vm-windows\" {\n version = var.vm_os_id == \"\" ? var.vm_os_version : \"\"\n }\n \n+ dynamic \"plan\" {\n+ for_each = var.is_marketplace_image ? [1] : []\n+ content {\n+ name = var.vm_os_offer\n+ publisher = var.vm_os_publisher\n+ product = var.vm_os_sku\n+ }\n+ }\n+\n storage_os_disk {\n name = \"${var.vm_hostname}-osdisk-${count.index}\"\n create_option = \"FromImage\"\n---\nvariables.tf\n@@ -103,6 +103,13 @@ variable \"is_windows_image\" {\n default = false\n }\n \n+variable \"is_marketplace_image\" {\n+ description = \"Boolean flag to notify when the image comes from the marketplace.\"\n+ type = bool\n+ nullable = false\n+ default = false\n+}\n+\n variable \"vm_os_publisher\" {\n description = \"The name of the publisher of the image that you want to deploy. This is ignored when vm_os_id or vm_os_simple are provided.\"\n type = string\n---\n\n\n---\n\nChoice D:\nmain.tf\n@@ -30,6 +30,13 @@ resource \"azurerm_storage_account\" \"vm-sa\" {\n }\n \n resource \"azurerm_virtual_machine\" \"vm-linux\" lifecycle {\n+ precondition {\n+ condition = !var.is_marketplace_image || (var.vm_os_offer != null && var.vm_os_publisher != null && var.vm_os_sku != null)\n+ error_message = \"`var.vm_os_offer`, `vm_os_publisher` and `var.vm_os_sku` are required when `var.is_marketplace_image` is `true`.\"\n+ }\n+ }\n+\n count = !contains(tolist([var.vm_os_simple, var.vm_os_offer]), \"WindowsServer\") && !var.is_windows_image ? var.nb_instances : 0\n name = \"${var.vm_hostname}-vmLinux-${count.index}\"\n resource_group_name = data.azurerm_resource_group.vm.name\n@@ -63,6 +70,15 @@ resource \"azurerm_virtual_machine\" \"vm-linux\" {\n version = var.vm_os_id == \"\" ? var.vm_os_version : \"\"\n }\n \n+ dynamic \"plan\" {\n+ for_each = var.is_marketplace_image ? [1] : []\n+ content {\n+ name = var.vm_os_offer\n+ publisher = var.vm_os_publisher\n+ product = var.vm_os_sku\n+ }\n+ }\n+\n storage_os_disk {\n name = \"osdisk-${var.vm_hostname}-${count.index}\"\n create_option = \"FromImage\"\n@@ -174,6 +190,15 @@ resource \"azurerm_virtual_machine\" \"vm-windows\" {\n version = var.vm_os_id == \"\" ? var.vm_os_version : \"\"\n }\n \n+ dynamic \"plan\" {\n+ for_each = var.is_marketplace_image ? [1] : []\n+ content {\n+ name = var.vm_os_offer\n+ publisher = var.vm_os_publisher\n+ product = var.vm_os_sku\n+ }\n+ }\n+\n storage_os_disk {\n name = \"${var.vm_hostname}-osdisk-${count.index}\"\n create_option = \"FromImage\"\n---\nvariables.tf\n@@ -103,6 +103,13 @@ variable \"is_windows_image\" {\n default = false\n }\n \n+variable \"is_marketplace_image\" {\n+ description = \"Boolean flag to notify when the image comes from the marketplace.\"\n+ type = bool\n+ nullable = false\n+ default = false\n+}\n+\n variable \"vm_os_publisher\" {\n description = \"The name of the publisher of the image that you want to deploy. This is ignored when vm_os_id or vm_os_simple are provided.\"\n type = string\n---\n\n\n---\n" } ]
A
[ { "role": "system", "content": "Choose the best Terraform patch (A/B/C/D) that implements the requested Azure Compute change safely. Only respond with a single uppercase letter." }, { "role": "user", "content": "Task Description:\n<!---\r\nPlease add this into the test of test/fixture, format the changes by \"terraform fmt\", and test it by run the following:\r\n```sh\r\n$ docker build --build-arg BUILD_ARM_SUBSCRIPTION_ID=$ARM_SUBSCRIPTION_ID --build-arg BUILD_ARM_CLIENT_ID=$ARM_CLIENT_ID --build-arg BUILD_ARM_CLIENT_SECRET=$ARM_CLIENT_SECRET --build-arg BUILD_ARM_TENANT_ID=$ARM_TENANT_ID -t azure-compute .\r\n$ docker run --rm azure-compute /bin/bash -c \"bundle install && rake full\"\r\n```\r\n\r\nPlease add this into the example usage of README.md and format the changes by \"terrafmt fmt README.md\". Please intall \"terrafmt\" by [install terrafmt](https://github.com/katbyte/terrafmt#install).\r\n--->\r\n\r\nFixes #172\r\n\r\nChanges proposed in the pull request: make it possible to use larger OS disks (using datadisks is possible but honestly its a pain to get them up and running for quick turnaround)\r\n\r\n\r\n\n\n---\n\nChoice A:\nmain.tf\n@@ -30,7 +30,7 @@ resource \"azurerm_storage_account\" \"vm-sa\" {\n }\n \n resource \"azurerm_virtual_machine\" \"vm-linux\" {\n- count = ! contains(tolist([var.vm_os_simple, var.vm_os_offer]), \"WindowsServer\") && ! var.is_windows_image ? var.nb_instances : 0\n+ count = !contains(tolist([var.vm_os_simple, var.vm_os_offer]), \"WindowsServer\") && !var.is_windows_image ? var.nb_instances : 0\n name = \"${var.vm_hostname}-vmLinux-${count.index}\"\n resource_group_name = data.azurerm_resource_group.vm.name\n location = coalesce(var.location, data.azurerm_resource_group.vm.location)\n@@ -40,14 +40,14 @@ resource \"azurerm_virtual_machine\" \"vm-linux\" {\n delete_os_disk_on_termination = var.delete_os_disk_on_termination\n delete_data_disks_on_termination = var.delete_data_disks_on_termination\n \n- dynamic identity {\n+ dynamic \"identity\" {\n for_each = length(var.identity_ids) == 0 && var.identity_type == \"SystemAssigned\" ? [var.identity_type] : []\n content {\n type = var.identity_type\n }\n }\n \n- dynamic identity {\n+ dynamic \"identity\" {\n for_each = length(var.identity_ids) > 0 || var.identity_type == \"UserAssigned\" ? [var.identity_type] : []\n content {\n type = var.identity_type\n@@ -68,9 +68,10 @@ resource \"azurerm_virtual_machine\" \"vm-linux\" {\n create_option = \"FromImage\"\n caching = \"ReadWrite\"\n managed_disk_type = var.storage_account_type\n+ disk_size_gb = var.os_disk_size_gb\n }\n \n- dynamic storage_data_disk {\n+ dynamic \"storage_data_disk\" {\n for_each = range(var.nb_data_disk)\n content {\n name = \"${var.vm_hostname}-datadisk-${count.index}-${storage_data_disk.value}\"\n@@ -81,7 +82,7 @@ resource \"azurerm_virtual_machine\" \"vm-linux\" {\n }\n }\n \n- dynamic storage_data_disk {\n+ dynamic \"storage_data_disk\" {\n for_each = var.extra_disks\n content {\n name = \"${var.vm_hostname}-extradisk-${count.index}-${storage_data_disk.value.name}\"\n@@ -102,15 +103,15 @@ resource \"azurerm_virtual_machine\" \"vm-linux\" {\n os_profile_linux_config {\n disable_password_authentication = var.enable_ssh_key\n \n- dynamic ssh_keys {\n+ dynamic \"ssh_keys\" {\n for_each = var.enable_ssh_key ? local.ssh_keys : []\n content {\n path = \"/home/${var.admin_username}/.ssh/authorized_keys\"\n key_data = file(ssh_keys.value)\n }\n }\n \n- dynamic ssh_keys {\n+ dynamic \"ssh_keys\" {\n for_each = var.enable_ssh_key ? var.ssh_key_values : []\n content {\n path = \"/home/${var.admin_username}/.ssh/authorized_keys\"\n@@ -150,14 +151,14 @@ resource \"azurerm_virtual_machine\" \"vm-windows\" {\n delete_os_disk_on_termination = var.delete_os_disk_on_termination\n license_type = var.license_type\n \n- dynamic identity {\n+ dynamic \"identity\" {\n for_each = length(var.identity_ids) == 0 && var.identity_type == \"SystemAssigned\" ? [var.identity_type] : []\n content {\n type = var.identity_type\n }\n }\n \n- dynamic identity {\n+ dynamic \"identity\" {\n for_each = length(var.identity_ids) > 0 || var.identity_type == \"UserAssigned\" ? [var.identity_type] : []\n content {\n type = var.identity_type\n@@ -178,9 +179,10 @@ resource \"azurerm_virtual_machine\" \"vm-windows\" {\n create_option = \"FromImage\"\n caching = \"ReadWrite\"\n managed_disk_type = var.storage_account_type\n+ disk_size_gb = var.os_disk_size_gb\n }\n \n- dynamic storage_data_disk {\n+ dynamic \"storage_data_disk\" {\n for_each = range(var.nb_data_disk)\n content {\n name = \"${var.vm_hostname}-datadisk-${count.index}-${storage_data_disk.value}\"\n@@ -191,7 +193,7 @@ resource \"azurerm_virtual_machine\" \"vm-windows\" {\n }\n }\n \n- dynamic storage_data_disk {\n+ dynamic \"storage_data_disk\" {\n for_each = var.extra_disks\n content {\n name = \"${var.vm_hostname}-extradisk-${count.index}-${storage_data_disk.value.name}\"\n---\nos/outputs.tf\n@@ -3,7 +3,7 @@ output \"calculated_value_os_publisher\" {\n }\n \n output \"calculated_value_os_offer\" {\n- value =element(split(\",\", lookup(var.standard_os, var.vm_os_simple, \"\")), 1)\n+ value = element(split(\",\", lookup(var.standard_os, var.vm_os_simple, \"\")), 1)\n }\n \n output \"calculated_value_os_sku\" {\n---\nvariables.tf\n@@ -246,3 +246,9 @@ variable \"os_profile_secrets\" {\n type = list(map(string))\n default = []\n }\n+\n+variable \"os_disk_size_gb\" {\n+ description = \"OS Disk size in GB.\"\n+ type = number\n+ default = 30\n+}\n---\n\n\n---\n\nChoice B:\nmain.tf\n@@ -30,7 +30,7 @@ resource \"azurerm_storage_account\" \"vm-sa\" {\n }\n \n resource \"azurerm_virtual_machine\" \"vm-linux\" {\n- count = ! contains(tolist([var.vm_os_simple, var.vm_os_offer]), \"WindowsServer\") && ! var.is_windows_image ? var.nb_instances : 0\n+ count = !contains(tolist([var.vm_os_simple, var.vm_os_offer]), \"WindowsServer\") && !var.is_windows_image ? var.nb_instances : 0\n name = \"${var.vm_hostname}-vmLinux-${count.index}\"\n resource_group_name = data.azurerm_resource_group.vm.name\n location = coalesce(var.location, data.azurerm_resource_group.vm.location)\n@@ -40,14 +40,14 @@ resource \"azurerm_virtual_machine\" \"vm-linux\" {\n delete_os_disk_on_termination = var.delete_os_disk_on_termination\n delete_data_disks_on_termination = var.delete_data_disks_on_termination\n \n- dynamic identity {\n+ dynamic \"identity\" {\n for_each = length(var.identity_ids) == 0 && var.identity_type == \"SystemAssigned\" ? [var.identity_type] : []\n content {\n type = var.identity_type\n }\n }\n \n- dynamic identity {\n+ dynamic \"identity\" {\n for_each = length(var.identity_ids) > 0 || var.identity_type == \"UserAssigned\" ? [var.identity_type] : []\n content {\n type = var.identity_type\n@@ -68,9 +68,10 @@ resource \"azurerm_virtual_machine\" \"vm-linux\" {\n create_option = \"FromImage\"\n caching = \"ReadWrite\"\n managed_disk_type = var.storage_account_type\n+ disk_size_gb = var.os_disk_size_gb\n }\n \n- dynamic storage_data_disk {\n+ dynamic \"storage_data_disk\" {\n for_each = range(var.nb_data_disk)\n content {\n name = \"${var.vm_hostname}-datadisk-${count.index}-${storage_data_disk.value}\"\n@@ -81,7 +82,7 @@ resource \"azurerm_virtual_machine\" \"vm-linux\" {\n }\n }\n \n- dynamic storage_data_disk {\n+ dynamic \"storage_data_disk\" {\n for_each = var.extra_disks\n content {\n name = \"${var.vm_hostname}-extradisk-${count.index}-${storage_data_disk.value.name}\"\n@@ -102,15 +103,15 @@ resource \"azurerm_virtual_machine\" \"vm-linux\" {\n os_profile_linux_config {\n disable_password_authentication = var.enable_ssh_key\n \n- dynamic ssh_keys {\n+ dynamic \"ssh_keys\" {\n for_each = var.enable_ssh_key ? local.ssh_keys : []\n content {\n path = \"/home/${var.admin_username}/.ssh/authorized_keys\"\n key_data = file(ssh_keys.value)\n }\n }\n \n- dynamic ssh_keys {\n+ dynamic \"ssh_keys\" {\n for_each = var.enable_ssh_key ? var.ssh_key_values : []\n content {\n path = \"/home/${var.admin_username}/.ssh/authorized_keys\"\n@@ -150,14 +151,14 @@ resource \"azurerm_virtual_machine\" \"vm-windows\" {\n delete_os_disk_on_termination = var.delete_os_disk_on_termination\n license_type = var.license_type\n \n- dynamic identity dynamic \"identity\" {\n for_each = length(var.identity_ids) == 0 && var.identity_type == \"SystemAssigned\" ? [var.identity_type] : []\n content {\n type = var.identity_type\n }\n }\n \n- dynamic identity {\n+ dynamic \"identity\" {\n for_each = length(var.identity_ids) > 0 || var.identity_type == \"UserAssigned\" ? [var.identity_type] : []\n content {\n type = var.identity_type\n@@ -178,9 +179,10 @@ resource \"azurerm_virtual_machine\" \"vm-windows\" {\n create_option = \"FromImage\"\n caching = \"ReadWrite\"\n managed_disk_type = var.storage_account_type\n+ disk_size_gb = var.os_disk_size_gb\n }\n \n- dynamic storage_data_disk {\n+ dynamic \"storage_data_disk\" {\n for_each = range(var.nb_data_disk)\n content {\n name = \"${var.vm_hostname}-datadisk-${count.index}-${storage_data_disk.value}\"\n@@ -191,7 +193,7 @@ resource \"azurerm_virtual_machine\" \"vm-windows\" {\n }\n }\n \n- dynamic storage_data_disk {\n+ dynamic \"storage_data_disk\" {\n for_each = var.extra_disks\n content {\n name = \"${var.vm_hostname}-extradisk-${count.index}-${storage_data_disk.value.name}\"\n---\nos/outputs.tf\n@@ -3,7 +3,7 @@ output \"calculated_value_os_publisher\" {\n }\n \n output \"calculated_value_os_offer\" {\n- value =element(split(\",\", lookup(var.standard_os, var.vm_os_simple, \"\")), 1)\n+ value = element(split(\",\", lookup(var.standard_os, var.vm_os_simple, \"\")), 1)\n }\n \n output \"calculated_value_os_sku\" {\n---\nvariables.tf\n@@ -246,3 +246,9 @@ variable \"os_profile_secrets\" {\n type = list(map(string))\n default = []\n }\n+\n+variable \"os_disk_size_gb\" {\n+ description = \"OS Disk size in GB.\"\n+ type = number\n+ default = 30\n+}\n---\n\n\n---\n\nChoice C:\nmain.tf\n@@ -30,7 +30,7 @@ resource \"azurerm_storage_account\" \"vm-sa\" {\n }\n \n resource \"azurerm_virtual_machine\" \"vm-linux\" {\n- count = ! contains(tolist([var.vm_os_simple, var.vm_os_offer]), \"WindowsServer\") && ! var.is_windows_image ? var.nb_instances : 0\n+ count = !contains(tolist([var.vm_os_simple, var.vm_os_offer]), \"WindowsServer\") && !var.is_windows_image ? var.nb_instances : 0\n name = \"${var.vm_hostname}-vmLinux-${count.index}\"\n resource_group_name = data.azurerm_resource_group.vm.name\n location = coalesce(var.location, data.azurerm_resource_group.vm.location)\n@@ -40,14 +40,14 @@ resource \"azurerm_virtual_machine\" \"vm-linux\" {\n delete_os_disk_on_termination = var.delete_os_disk_on_termination\n delete_data_disks_on_termination = var.delete_data_disks_on_termination\n \n- dynamic identity {\n+ dynamic \"identity\" {\n for_each = length(var.identity_ids) == 0 && var.identity_type == \"SystemAssigned\" ? [var.identity_type] : []\n content {\n type = var.identity_type\n }\n }\n \n- dynamic identity {\n+ dynamic \"identity\" {\n for_each = length(var.identity_ids) > 0 || var.identity_type == \"UserAssigned\" ? [var.identity_type] : []\n content {\n type = var.identity_type\n@@ -68,9 +68,10 @@ resource \"azurerm_virtual_machine\" \"vm-linux\" {\n create_option = \"FromImage\"\n caching = \"ReadWrite\"\n managed_disk_type = var.storage_account_type\n+ disk_size_gb = var.os_disk_size_gb\n }\n \n- dynamic storage_data_disk {\n+ dynamic \"storage_data_disk\" {\n for_each = range(var.nb_data_disk)\n content {\n name = \"${var.vm_hostname}-datadisk-${count.index}-${storage_data_disk.value}\"\n@@ -81,7 +82,7 @@ resource \"azurerm_virtual_machine\" \"vm-linux\" {\n }\n }\n \n- dynamic storage_data_disk {\n+ dynamic \"storage_data_disk\" {\n for_each = var.extra_disks\n content {\n name = \"${var.vm_hostname}-extradisk-${count.index}-${storage_data_disk.value.name}\"\n@@ -102,15 +103,15 @@ resource \"azurerm_virtual_machine\" \"vm-linux\" {\n os_profile_linux_config {\n disable_password_authentication = var.enable_ssh_key\n \n- dynamic ssh_keys {\n+ dynamic \"ssh_keys\" {\n for_each = var.enable_ssh_key ? local.ssh_keys : []\n content {\n path = \"/home/${var.admin_username}/.ssh/authorized_keys\"\n key_data = file(ssh_keys.value)\n }\n }\n \n- dynamic ssh_keys {\n+ dynamic \"ssh_keys\" {\n for_each = var.enable_ssh_key ? var.ssh_key_values : []\n content {\n path = \"/home/${var.admin_username}/.ssh/authorized_keys\"\n@@ -150,14 +151,14 @@ resource \"azurerm_virtual_machine\" \"vm-windows\" {\n delete_os_disk_on_termination = var.delete_os_disk_on_termination\n license_type = var.license_type\n \n- dynamic identity {\n+ dynamic \"identity\" {\n for_each = length(var.identity_ids) == 0 && var.identity_type == \"SystemAssigned\" ? [var.identity_type] : []\n content {\n type = var.identity_type\n }\n }\n \n- dynamic identity {\n+ dynamic \"identity\" {\n for_each = length(var.identity_ids) > 0 || var.identity_type == \"UserAssigned\" ? [var.identity_type] : []\n content {\n type = var.identity_type\n@@ -178,9 +179,10 @@ resource \"azurerm_virtual_machine\" \"vm-windows\" {\n create_option = \"FromImage\"\n caching = \"ReadWrite\"\n managed_disk_type = var.storage_account_type\n+ disk_size_gb = var.os_disk_size_gb\n }\n \n- dynamic storage_data_disk {\n+ dynamic \"storage_data_disk\" {\n for_each = range(var.nb_data_disk)\n content {\n name = \"${var.vm_hostname}-datadisk-${count.index}-${storage_data_disk.value}\"\n@@ -191,7 +193,7 @@ resource \"azurerm_virtual_machine\" \"vm-windows\" {\n file(ssh_keys.value)\n }\n }\n \n- dynamic storage_data_disk {\n+ dynamic \"storage_data_disk\" {\n for_each = var.extra_disks\n content {\n name = \"${var.vm_hostname}-extradisk-${count.index}-${storage_data_disk.value.name}\"\n---\nos/outputs.tf\n@@ -3,7 +3,7 @@ output \"calculated_value_os_publisher\" {\n }\n \n output \"calculated_value_os_offer\" {\n- value =element(split(\",\", lookup(var.standard_os, var.vm_os_simple, \"\")), 1)\n+ value = element(split(\",\", lookup(var.standard_os, var.vm_os_simple, \"\")), 1)\n }\n \n output \"calculated_value_os_sku\" {\n---\nvariables.tf\n@@ -246,3 +246,9 @@ variable \"os_profile_secrets\" {\n type = list(map(string))\n default = []\n }\n+\n+variable \"os_disk_size_gb\" {\n+ description = \"OS Disk size in GB.\"\n+ type = number\n+ default = 30\n+}\n---\n\n\n---\n\nChoice D:\nmain.tf\n@@ -30,7 +30,7 @@ resource \"azurerm_storage_account\" \"vm-sa\" {\n }\n \n resource \"azurerm_virtual_machine\" \"vm-linux\" {\n- count == = ! contains(tolist([var.vm_os_simple, var.vm_os_offer]), \"WindowsServer\") && ! var.is_windows_image ? var.nb_instances : 0\n+ count = !contains(tolist([var.vm_os_simple, var.vm_os_offer]), \"WindowsServer\") && !var.is_windows_image ? var.nb_instances : 0\n name = \"${var.vm_hostname}-vmLinux-${count.index}\"\n resource_group_name = data.azurerm_resource_group.vm.name\n location = coalesce(var.location, data.azurerm_resource_group.vm.location)\n@@ -40,14 +40,14 @@ resource \"azurerm_virtual_machine\" \"vm-linux\" {\n delete_os_disk_on_termination = var.delete_os_disk_on_termination\n delete_data_disks_on_termination = var.delete_data_disks_on_termination\n \n- dynamic identity {\n+ dynamic \"identity\" {\n for_each = length(var.identity_ids) == 0 && var.identity_type == \"SystemAssigned\" ? [var.identity_type] : []\n content {\n type = var.identity_type\n }\n }\n \n- dynamic identity {\n+ dynamic \"identity\" {\n for_each = length(var.identity_ids) > 0 || var.identity_type == \"UserAssigned\" ? [var.identity_type] : []\n content {\n type = var.identity_type\n@@ -68,9 +68,10 @@ resource \"azurerm_virtual_machine\" \"vm-linux\" {\n create_option = \"FromImage\"\n caching = \"ReadWrite\"\n managed_disk_type = var.storage_account_type\n+ disk_size_gb = var.os_disk_size_gb\n }\n \n- dynamic storage_data_disk {\n+ dynamic \"storage_data_disk\" {\n for_each = range(var.nb_data_disk)\n content {\n name = \"${var.vm_hostname}-datadisk-${count.index}-${storage_data_disk.value}\"\n@@ -81,7 +82,7 @@ resource \"azurerm_virtual_machine\" \"vm-linux\" {\n }\n }\n \n- dynamic storage_data_disk {\n+ dynamic \"storage_data_disk\" {\n for_each = var.extra_disks\n content {\n name = \"${var.vm_hostname}-extradisk-${count.index}-${storage_data_disk.value.name}\"\n@@ -102,15 +103,15 @@ resource \"azurerm_virtual_machine\" \"vm-linux\" {\n os_profile_linux_config {\n disable_password_authentication = var.enable_ssh_key\n \n- dynamic ssh_keys {\n+ dynamic \"ssh_keys\" {\n for_each = var.enable_ssh_key ? local.ssh_keys : []\n content {\n path = \"/home/${var.admin_username}/.ssh/authorized_keys\"\n key_data = file(ssh_keys.value)\n }\n }\n \n- dynamic ssh_keys {\n+ dynamic \"ssh_keys\" {\n for_each = var.enable_ssh_key ? var.ssh_key_values : []\n content {\n path = \"/home/${var.admin_username}/.ssh/authorized_keys\"\n@@ -150,14 +151,14 @@ resource \"azurerm_virtual_machine\" \"vm-windows\" {\n delete_os_disk_on_termination = var.delete_os_disk_on_termination\n license_type = var.license_type\n \n- dynamic identity {\n+ dynamic \"identity\" {\n for_each = length(var.identity_ids) == 0 && var.identity_type == \"SystemAssigned\" ? [var.identity_type] : []\n content {\n type = var.identity_type\n }\n }\n \n- dynamic identity {\n+ dynamic \"identity\" {\n for_each = length(var.identity_ids) > 0 || var.identity_type == \"UserAssigned\" ? [var.identity_type] : []\n content {\n type = var.identity_type\n@@ -178,9 +179,10 @@ resource \"azurerm_virtual_machine\" \"vm-windows\" {\n create_option = \"FromImage\"\n caching = \"ReadWrite\"\n managed_disk_type = var.storage_account_type\n+ disk_size_gb = var.os_disk_size_gb\n }\n \n- dynamic storage_data_disk {\n+ dynamic \"storage_data_disk\" {\n for_each = range(var.nb_data_disk)\n content {\n name = \"${var.vm_hostname}-datadisk-${count.index}-${storage_data_disk.value}\"\n@@ -191,7 +193,7 @@ resource \"azurerm_virtual_machine\" \"vm-windows\" {\n }\n }\n \n- dynamic storage_data_disk {\n+ dynamic \"storage_data_disk\" {\n for_each = var.extra_disks\n content {\n name = \"${var.vm_hostname}-extradisk-${count.index}-${storage_data_disk.value.name}\"\n---\nos/outputs.tf\n@@ -3,7 +3,7 @@ output \"calculated_value_os_publisher\" {\n }\n \n output \"calculated_value_os_offer\" {\n- value =element(split(\",\", lookup(var.standard_os, var.vm_os_simple, \"\")), 1)\n+ value = element(split(\",\", lookup(var.standard_os, var.vm_os_simple, \"\")), 1)\n }\n \n output \"calculated_value_os_sku\" {\n---\nvariables.tf\n@@ -246,3 +246,9 @@ variable \"os_profile_secrets\" {\n type = list(map(string))\n default = []\n }\n+\n+variable \"os_disk_size_gb\" {\n+ description = \"OS Disk size in GB.\"\n+ type = number\n+ default = 30\n+}\n---\n\n\n---\n" } ]
A
[ { "role": "system", "content": "Choose the best Terraform patch (A/B/C/D) that implements the requested Azure Compute change safely. Only respond with a single uppercase letter." }, { "role": "user", "content": "Task Description:\n<!---\r\nPlease add this into the test of test/fixture, format the changes by \"terraform fmt\", and test it by run the following:\r\n```sh\r\n$ docker build --build-arg BUILD_ARM_SUBSCRIPTION_ID=$ARM_SUBSCRIPTION_ID --build-arg BUILD_ARM_CLIENT_ID=$ARM_CLIENT_ID --build-arg BUILD_ARM_CLIENT_SECRET=$ARM_CLIENT_SECRET --build-arg BUILD_ARM_TENANT_ID=$ARM_TENANT_ID -t azure-compute .\r\n$ docker run --rm azure-compute /bin/bash -c \"bundle install && rake full\"\r\n```\r\n\r\nPlease add this into the example usage of README.md and format the changes by \"terrafmt fmt README.md\". Please intall \"terrafmt\" by [install terrafmt](https://github.com/katbyte/terrafmt#install).\r\n--->\r\n\r\nFixes #000 \r\n\r\nChanges proposed in the pull request:\r\n\r\n\r\n\r\n\n\n---\n\nChoice A:\nREADME.md\n@@ -4,6 +4,8 @@\n \n ## Deploys 1+ Virtual Machines to your provided VNet\n \n+### TRestEtet \n+\n This Terraform module deploys Virtual Machines in Azure with the following characteristics:\n \n - Ability to specify a simple string Deploys get the [latest marketplace image](https://docs.microsoft.com/cli/azure/vm/image?view=azure-cli-latest) using `var.vm_os_simple`\n---\n\n\n---\n\nChoice B:\nREADME.md\n@@ -4,6 +4,8 @@\n \n ## Deploys 1+ Virtual Machines to your provided VNet\n \n+### TRestEtet \n+\n This Terraform module deploys Virtual Machines in Azure with the following characteristics:\n \n - Ability to specify a simple string to get the [latest marketplace image](https://docs.microsoft.com/cli/azure/vm/image?view=azure-cli-latest) using `var.vm_os_simple`\n---\n\n\n---\n\nChoice C:\nREADME.md\n@@ -4,6 +4,8 @@\n \n ## Deploys 1+ Virtual Machines to your provided VNet\n \n+### This \n+\n This Terraform module deploys Virtual Machines in Azure with the following characteristics:\n \n - Ability to specify a simple string to get the [latest marketplace image](https://docs.microsoft.com/cli/azure/vm/image?view=azure-cli-latest) using `var.vm_os_simple`\n---\n\n\n---\n\nChoice D:\nREADME.md\n@@ -4,6 +4,8 @@\n \n ## Deploys 1+ Virtual Machines to your provided VNet\n \n+### TRestEtet \n+\n This Terraform module deploys Virtual Machines in Azure with the following characteristics:\n \n - Ability to specify 1+ simple string to get the [latest marketplace image](https://docs.microsoft.com/cli/azure/vm/image?view=azure-cli-latest) using `var.vm_os_simple`\n---\n\n\n---\n" } ]
B
[ { "role": "system", "content": "Choose the best Terraform patch (A/B/C/D) that implements the requested Azure Compute change safely. Only respond with a single uppercase letter." }, { "role": "user", "content": "Task Description:\n<!---\r\nPlease add this into the test of test/fixture, format the changes by \"terraform fmt\", and test it by run the following:\r\n```sh\r\n$ docker build --build-arg BUILD_ARM_SUBSCRIPTION_ID=$ARM_SUBSCRIPTION_ID --build-arg BUILD_ARM_CLIENT_ID=$ARM_CLIENT_ID --build-arg BUILD_ARM_CLIENT_SECRET=$ARM_CLIENT_SECRET --build-arg BUILD_ARM_TENANT_ID=$ARM_TENANT_ID -t azure-compute .\r\n$ docker run --rm azure-compute /bin/bash -c \"bundle install && rake full\"\r\n```\r\n\r\nPlease add this into the example usage of README.md and format the changes by \"terrafmt fmt README.md\". Please intall \"terrafmt\" by [install terrafmt](https://github.com/katbyte/terrafmt#install).\r\n--->\r\n\r\nFixes https://github.com/azure/terraform-azurerm-compute/issues/164\r\n\r\nChanges proposed in the pull request:\r\n\r\n\r\n\r\n\n\n---\n\nChoice A:\nREADME.md\n@@ -182,24 +182,25 @@ data \"azurerm_key_vault_certificate\" \"example\" {\n }\n \n module \"linuxservers\" {\n- source = \"Azure/compute/azurerm\"\n- resource_group_name = azurerm_resource_group.example.name\n- vm_hostname = \"mylinuxvm\"\n- nb_public_ip = 0\n- remote_port = \"22\"\n- nb_instances = 2\n- vm_os_publisher = \"Canonical\"\n- vm_os_offer = \"UbuntuServer\"\n- vm_os_sku = \"18.04-LTS\"\n- vnet_subnet_id = module.network.vnet_subnets[0]\n- boot_diagnostics = true\n- delete_os_disk_on_termination = true\n- nb_data_disk = 2\n- data_disk_size_gb = 64\n- data_sa_type = \"Premium_LRS\"\n- enable_ssh_key = true\n- ssh_key_values = [\"ssh-rsa AAAAB3NzaC1yc2EAAAAD...\"] \n- vm_size = \"Standard_D4s_v3\"\n+ source = \"Azure/compute/azurerm\"\n+ resource_group_name = azurerm_resource_group.example.name\n+ vm_hostname = \"mylinuxvm\"\n+ nb_public_ip = 0\n+ remote_port = \"22\"\n+ nb_instances = 2\n+ vm_os_publisher = \"Canonical\"\n+ vm_os_offer = \"UbuntuServer\"\n+ vm_os_sku = \"18.04-LTS\"\n+ vnet_subnet_id = module.network.vnet_subnets[0]\n+ boot_diagnostics = true\n+ delete_os_disk_on_termination = true\n+ nb_data_disk = 2\n+ data_disk_size_gb = 64\n+ data_sa_type = \"Premium_LRS\"\n+ enable_ssh_key = true\n+ ssh_key_values = [\"ssh-rsa AAAAB3NzaC1yc2EAAAAD...\"]\n+ vm_size = \"Standard_D4s_v3\"\n+ delete_data_disks_on_termination = true\n \n tags = {\n environment = \"dev\"\n---\nmain.tf\n@@ -30,14 +30,15 @@ resource \"azurerm_storage_account\" \"vm-sa\" {\n }\n \n resource \"azurerm_virtual_machine\" \"vm-linux\" {\n- count = ! contains(tolist([var.vm_os_simple, var.vm_os_offer]), \"WindowsServer\") && ! var.is_windows_image ? var.nb_instances : 0\n- name = \"${var.vm_hostname}-vmLinux-${count.index}\"\n- resource_group_name = data.azurerm_resource_group.vm.name\n- location = coalesce(var.location, data.azurerm_resource_group.vm.location)\n- availability_set_id = azurerm_availability_set.vm.id\n- vm_size = var.vm_size\n- network_interface_ids = [element(azurerm_network_interface.vm.*.id, count.index)]\n- delete_os_disk_on_termination = var.delete_os_disk_on_termination\n+ count = ! contains(tolist([var.vm_os_simple, var.vm_os_offer]), \"WindowsServer\") && ! var.is_windows_image ? var.nb_instances : 0\n+ name = \"${var.vm_hostname}-vmLinux-${count.index}\"\n+ resource_group_name = data.azurerm_resource_group.vm.name\n+ location = coalesce(var.location, data.azurerm_resource_group.vm.location)\n+ availability_set_id = azurerm_availability_set.vm.id\n+ vm_size = var.vm_size\n+ network_interface_ids = [element(azurerm_network_interface.vm.*.id, count.index)]\n+ delete_os_disk_on_termination = var.delete_os_disk_on_termination\n+ delete_data_disks_on_termination = var.delete_data_disks_on_termination\n \n dynamic identity {\n for_each = length(var.identity_ids) == 0 && var.identity_type == \"SystemAssigned\" ? [var.identity_type] : []\n---\ntest/fixture/main.tf\n@@ -104,16 +104,17 @@ module \"debianservers\" {\n }\n \n module \"debianservers2\" {\n- source = \"../../\"\n- vm_hostname = \"${random_id.ip_dns.hex}-d2\"\n- resource_group_name = azurerm_resource_group.test.name\n- location = var.location_alt\n- admin_username = var.admin_username\n- vm_os_simple = var.vm_os_simple_2\n- vnet_subnet_id = azurerm_subnet.subnet2.id\n- enable_ssh_key = true\n- ssh_key = \"\"\n- ssh_key_values = [\"ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQC8GIRF1Snlg9NKCmM74RHXqRGMXyui088+ntQqkQkFIL/BrlgP3CzOgHQmJ+3f0Up/+9UY9vX7AmT7WxVTyqBHT/Aes3VmU3wLO5/MMV/HRrT4z2QV/80futhxjk2unNdWGvbFcR6Y3I44EJFmr8GMbyXRtr0ibuv8BlTYx/K6AXSJ3V+kBqXMOF1QRvVoX9fJKPKjMsebe0cB1IYlm9KLqtciMy+aFOEsSNfrw5cNVsQfK3BgOUKAHsLfBiR7imA2ca+hh005GEtcVJvpvFzcM+bZggUpdqQwIzk1Kv/tROiJiGS0NnyzoxIZYeM3z/mQ5qnglp+174XGCG66EAnVdf5kbaI0Iu7FpAmVhJ92N+MNKoP6vT8cMkYYZf3RaiMMnzjswK/VLbb5ks6Qe9qEPXW1IBtkaaF7+0PCWbPr86I0G2bOa2tFyOHm046Z9sRlkaOO95hmer6Y6MUbMpfeprmjR87u6MVOPglnARfV3UI9i6wOUhVVIi6Wb424HWU=\"]\n+ source = \"../../\"\n+ vm_hostname = \"${random_id.ip_dns.hex}-d2\"\n+ resource_group_name = azurerm_resource_group.test.name\n+ location = var.location_alt\n+ admin_username = var.admin_username\n+ vm_os_simple = var.vm_os_simple_2\n+ vnet_subnet_id = azurerm_subnet.subnet2.id\n+ enable_ssh_key = true\n+ delete_data_disks_on_termination = true\n+ ssh_key = \"\"\n+ ssh_key_values = [\"ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQC8GIRF1Snlg9NKCmM74RHXqRGMXyui088+ntQqkQkFIL/BrlgP3CzOgHQmJ+3f0Up/+9UY9vX7AmT7WxVTyqBHT/Aes3VmU3wLO5/MMV/HRrT4z2QV/80futhxjk2unNdWGvbFcR6Y3I44EJFmr8GMbyXRtr0ibuv8BlTYx/K6AXSJ3V+kBqXMOF1QRvVoX9fJKPKjMsebe0cB1IYlm9KLqtciMy+aFOEsSNfrw5cNVsQfK3BgOUKAHsLfBiR7imA2ca+hh005GEtcVJvpvFzcM+bZggUpdqQwIzk1Kv/tROiJiGS0NnyzoxIZYeM3z/mQ5qnglp+174XGCG66EAnVdf5kbaI0Iu7FpAmVhJ92N+MNKoP6vT8cMkYYZf3RaiMMnzjswK/VLbb5ks6Qe9qEPXW1IBtkaaF7+0PCWbPr86I0G2bOa2tFyOHm046Z9sRlkaOO95hmer6Y6MUbMpfeprmjR87u6MVOPglnARfV3UI9i6wOUhVVIi6Wb424HWU=\"]\n \n depends_on = [azurerm_resource_group.test]\n }\n---\nvariables.tf\n@@ -160,6 +160,12 @@ variable \"delete_os_disk_on_termination\" {\n default = false\n }\n \n+variable \"delete_data_disks_on_termination\" {\n+ type = bool\n+ description = \"Delete data disks when machine is terminated.\"\n+ default = false\n+}\n+\n variable \"data_sa_type\" {\n description = \"Data Disk Storage Account type.\"\n type = string\n---\n\n\n---\n\nChoice B:\nREADME.md\n@@ -182,24 +182,25 @@ data \"azurerm_key_vault_certificate\" \"example\" {\n }\n \n module \"linuxservers\" {\n- source = \"Azure/compute/azurerm\"\n- resource_group_name = azurerm_resource_group.example.name\n- vm_hostname = \"mylinuxvm\"\n- nb_public_ip = 0\n- remote_port = \"22\"\n- nb_instances = 2\n- vm_os_publisher = \"Canonical\"\n- vm_os_offer = \"UbuntuServer\"\n- vm_os_sku = \"18.04-LTS\"\n- vnet_subnet_id = module.network.vnet_subnets[0]\n- boot_diagnostics = true\n- delete_os_disk_on_termination = true\n- nb_data_disk = 2\n- data_disk_size_gb = 64\n- data_sa_type = \"Premium_LRS\"\n- enable_ssh_key = true\n- ssh_key_values = [\"ssh-rsa AAAAB3NzaC1yc2EAAAAD...\"] \n- vm_size = \"Standard_D4s_v3\"\n+ source = \"Azure/compute/azurerm\"\n+ resource_group_name = azurerm_resource_group.example.name\n+ vm_hostname = \"mylinuxvm\"\n+ nb_public_ip = 0\n+ remote_port = \"22\"\n+ nb_instances = 2\n+ vm_os_publisher = \"Canonical\"\n+ vm_os_offer = \"UbuntuServer\"\n+ vm_os_sku = \"18.04-LTS\"\n+ vnet_subnet_id = module.network.vnet_subnets[0]\n+ boot_diagnostics = true\n+ delete_os_disk_on_termination = true\n+ nb_data_disk = 2\n+ data_disk_size_gb = 64\n+ data_sa_type = \"Premium_LRS\"\n+ enable_ssh_key = true\n+ ssh_key_values = [\"ssh-rsa AAAAB3NzaC1yc2EAAAAD...\"]\n+ vm_size = \"Standard_D4s_v3\"\n+ delete_data_disks_on_termination = true\n \n tags = {\n environment = \"dev\"\n---\nmain.tf\n@@ -30,14 +30,15 @@ resource \"azurerm_storage_account\" \"vm-sa\" {\n }\n \n resource \"azurerm_virtual_machine\" \"vm-linux\" {\n- count = ! contains(tolist([var.vm_os_simple, var.vm_os_offer]), \"WindowsServer\") && ! var.is_windows_image ? var.nb_instances : 0\n- name = \"${var.vm_hostname}-vmLinux-${count.index}\"\n- resource_group_name = data.azurerm_resource_group.vm.name\n- location = coalesce(var.location, data.azurerm_resource_group.vm.location)\n- availability_set_id = azurerm_availability_set.vm.id\n- vm_size = var.vm_size\n- network_interface_ids = [element(azurerm_network_interface.vm.*.id, count.index)]\n- delete_os_disk_on_termination = var.delete_os_disk_on_termination\n+ count = ! contains(tolist([var.vm_os_simple, var.vm_os_offer]), \"WindowsServer\") && ! var.is_windows_image ? var.nb_instances : 0\n+ name = \"${var.vm_hostname}-vmLinux-${count.index}\"\n+ resource_group_name = data.azurerm_resource_group.vm.name\n+ location = coalesce(var.location, data.azurerm_resource_group.vm.location)\n+ availability_set_id = azurerm_availability_set.vm.id\n+ vm_size = var.vm_size\n+ network_interface_ids = [element(azurerm_network_interface.vm.*.id, count.index)]\n+ delete_os_disk_on_termination = var.delete_os_disk_on_termination\n+ delete_data_disks_on_termination = var.delete_data_disks_on_termination\n \n dynamic identity {\n for_each = length(var.identity_ids) == 0 && var.identity_type == \"SystemAssigned\" ? [var.identity_type] : []\n---\ntest/fixture/main.tf\n@@ -104,16 +104,17 @@ module \"debianservers\" {\n }\n \n module \"debianservers2\" {\n- source = \"../../\"\n- vm_hostname = \"${random_id.ip_dns.hex}-d2\"\n- resource_group_name = azurerm_resource_group.test.name\n- location = var.location_alt\n- admin_username = var.admin_username\n- vm_os_simple = var.vm_os_simple_2\n- vnet_subnet_id = azurerm_subnet.subnet2.id\n- enable_ssh_key = true\n- ssh_key = \"\"\n- ssh_key_values = [\"ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQC8GIRF1Snlg9NKCmM74RHXqRGMXyui088+ntQqkQkFIL/BrlgP3CzOgHQmJ+3f0Up/+9UY9vX7AmT7WxVTyqBHT/Aes3VmU3wLO5/MMV/HRrT4z2QV/80futhxjk2unNdWGvbFcR6Y3I44EJFmr8GMbyXRtr0ibuv8BlTYx/K6AXSJ3V+kBqXMOF1QRvVoX9fJKPKjMsebe0cB1IYlm9KLqtciMy+aFOEsSNfrw5cNVsQfK3BgOUKAHsLfBiR7imA2ca+hh005GEtcVJvpvFzcM+bZggUpdqQwIzk1Kv/tROiJiGS0NnyzoxIZYeM3z/mQ5qnglp+174XGCG66EAnVdf5kbaI0Iu7FpAmVhJ92N+MNKoP6vT8cMkYYZf3RaiMMnzjswK/VLbb5ks6Qe9qEPXW1IBtkaaF7+0PCWbPr86I0G2bOa2tFyOHm046Z9sRlkaOO95hmer6Y6MUbMpfeprmjR87u6MVOPglnARfV3UI9i6wOUhVVIi6Wb424HWU=\"]\n+ source = \"../../\"\n+ vm_hostname = \"${random_id.ip_dns.hex}-d2\"\n+ resource_group_name = azurerm_resource_group.test.name\n+ location = var.location_alt\n+ admin_username = var.admin_username\n+ vm_os_simple = var.vm_os_simple_2\n+ vnet_subnet_id = azurerm_subnet.subnet2.id\n+ enable_ssh_key = true\n+ delete_data_disks_on_termination = true\n+ ssh_key = \"\"\n+ ssh_key_values = [\"ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQC8GIRF1Snlg9NKCmM74RHXqRGMXyui088+ntQqkQkFIL/BrlgP3CzOgHQmJ+3f0Up/+9UY9vX7AmT7WxVTyqBHT/Aes3VmU3wLO5/MMV/HRrT4z2QV/80futhxjk2unNdWGvbFcR6Y3I44EJFmr8GMbyXRtr0ibuv8BlTYx/K6AXSJ3V+kBqXMOF1QRvVoX9fJKPKjMsebe0cB1IYlm9KLqtciMy+aFOEsSNfrw5cNVsQfK3BgOUKAHsLfBiR7imA2ca+hh005GEtcVJvpvFzcM+bZggUpdqQwIzk1Kv/tROiJiGS0NnyzoxIZYeM3z/mQ5qnglp+174XGCG66EAnVdf5kbaI0Iu7FpAmVhJ92N+MNKoP6vT8cMkYYZf3RaiMMnzjswK/VLbb5ks6Qe9qEPXW1IBtkaaF7+0PCWbPr86I0G2bOa2tFyOHm046Z9sRlkaOO95hmer6Y6MUbMpfeprmjR87u6MVOPglnARfV3UI9i6wOUhVVIi6Wb424HWU=\"]\n \n depends_on = [azurerm_resource_group.test]\n }\n---\nvariables.tf\n@@ -160,6 +160,12 @@ variable \"delete_os_disk_on_termination\" {\n default = false\n }\n \n+variable \"delete_data_disks_on_termination\" {\n+ type = bool\n+ description = \"Delete data disks when machine is terminated.\"\n+ default = false\n+}\n+\n variable \"data_sa_type\" {\n description = \"Data Disk Storage Account type.\"\n type = string\n---\n\n\n---\n\nChoice C:\nREADME.md\n@@ -182,24 +182,25 @@ data \"azurerm_key_vault_certificate\" \"example\" {\n }\n \n module \"linuxservers\" {\n- source = \"Azure/compute/azurerm\"\n- resource_group_name = azurerm_resource_group.example.name\n- vm_hostname = \"mylinuxvm\"\n- nb_public_ip = 0\n- remote_port = \"22\"\n- nb_instances = 2\n- vm_os_publisher = \"Canonical\"\n- vm_os_offer = \"UbuntuServer\"\n- vm_os_sku = \"18.04-LTS\"\n- vnet_subnet_id = module.network.vnet_subnets[0]\n- boot_diagnostics = true\n- delete_os_disk_on_termination = true\n- nb_data_disk = 2\n- data_disk_size_gb = 64\n- data_sa_type = \"Premium_LRS\"\n- enable_ssh_key = true\n- ssh_key_values = [\"ssh-rsa AAAAB3NzaC1yc2EAAAAD...\"] \n- vm_size = \"Standard_D4s_v3\"\n+ source = \"Azure/compute/azurerm\"\n+ resource_group_name = azurerm_resource_group.example.name\n+ vm_hostname = \"mylinuxvm\"\n+ nb_public_ip = 0\n+ remote_port = \"22\"\n+ nb_instances = 2\n+ vm_os_publisher = \"Canonical\"\n+ vm_os_offer = \"UbuntuServer\"\n+ vm_os_sku = \"18.04-LTS\"\n+ vnet_subnet_id = module.network.vnet_subnets[0]\n+ boot_diagnostics = true\n+ delete_os_disk_on_termination = true\n+ nb_data_disk = 2\n+ data_disk_size_gb = 64\n+ data_sa_type = \"Premium_LRS\"\n+ enable_ssh_key = true\n+ ssh_key_values = [\"ssh-rsa AAAAB3NzaC1yc2EAAAAD...\"]\n+ vm_size = \"Standard_D4s_v3\"\n+ delete_data_disks_on_termination = true\n \n tags = {\n environment = \"dev\"\n---\nmain.tf\n@@ -30,14 +30,15 @@ resource \"azurerm_storage_account\" \"vm-sa\" {\n }\n \n resource \"azurerm_virtual_machine\" \"vm-linux\" {\n- count = ! contains(tolist([var.vm_os_simple, var.vm_os_offer]), \"WindowsServer\") && ! var.is_windows_image ? var.nb_instances : 0\n- name = \"${var.vm_hostname}-vmLinux-${count.index}\"\n- resource_group_name = data.azurerm_resource_group.vm.name\n- location = coalesce(var.location, data.azurerm_resource_group.vm.location)\n- availability_set_id = azurerm_availability_set.vm.id\n- vm_size = var.vm_size\n- network_interface_ids = [element(azurerm_network_interface.vm.*.id, count.index)]\n- delete_os_disk_on_termination = var.delete_os_disk_on_termination\n+ count = ! contains(tolist([var.vm_os_simple, var.vm_os_offer]), \"WindowsServer\") && ! var.is_windows_image ? var.nb_instances : 0\n+ name = \"${var.vm_hostname}-vmLinux-${count.index}\"\n+ resource_group_name = data.azurerm_resource_group.vm.name\n+ location = coalesce(var.location, data.azurerm_resource_group.vm.location)\n+ availability_set_id = azurerm_availability_set.vm.id\n+ vm_size = var.vm_size\n+ network_interface_ids = [element(azurerm_network_interface.vm.*.id, count.index)]\n+ delete_os_disk_on_termination = var.delete_os_disk_on_termination\n+ delete_data_disks_on_termination = var.delete_data_disks_on_termination\n \n dynamic identity {\n for_each = length(var.identity_ids) == 0 && var.identity_type == \"SystemAssigned\" ? [var.identity_type] : []\n---\ntest/fixture/main.tf\n@@ -104,16 +104,17 @@ module \"debianservers\" {\n }\n \n module \"debianservers2\" {\n- source = \"../../\"\n- vm_hostname = \"${random_id.ip_dns.hex}-d2\"\n- resource_group_name = azurerm_resource_group.test.name\n- location = var.location_alt\n- admin_username = var.admin_username\n- vm_os_simple = var.vm_os_simple_2\n- vnet_subnet_id = azurerm_subnet.subnet2.id\n- enable_ssh_key = true\n- ssh_key = \"\"\n- ssh_key_values = [\"ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQC8GIRF1Snlg9NKCmM74RHXqRGMXyui088+ntQqkQkFIL/BrlgP3CzOgHQmJ+3f0Up/+9UY9vX7AmT7WxVTyqBHT/Aes3VmU3wLO5/MMV/HRrT4z2QV/80futhxjk2unNdWGvbFcR6Y3I44EJFmr8GMbyXRtr0ibuv8BlTYx/K6AXSJ3V+kBqXMOF1QRvVoX9fJKPKjMsebe0cB1IYlm9KLqtciMy+aFOEsSNfrw5cNVsQfK3BgOUKAHsLfBiR7imA2ca+hh005GEtcVJvpvFzcM+bZggUpdqQwIzk1Kv/tROiJiGS0NnyzoxIZYeM3z/mQ5qnglp+174XGCG66EAnVdf5kbaI0Iu7FpAmVhJ92N+MNKoP6vT8cMkYYZf3RaiMMnzjswK/VLbb5ks6Qe9qEPXW1IBtkaaF7+0PCWbPr86I0G2bOa2tFyOHm046Z9sRlkaOO95hmer6Y6MUbMpfeprmjR87u6MVOPglnARfV3UI9i6wOUhVVIi6Wb424HWU=\"]\n+ source = \"../../\"\n+ vm_hostname = \"${random_id.ip_dns.hex}-d2\"\n+ resource_group_name = azurerm_resource_group.test.name\n+ location = var.location_alt\n+ admin_username = var.admin_username\n+ vm_os_simple = var.vm_os_simple_2\n+ vnet_subnet_id = azurerm_subnet.subnet2.id\n+ enable_ssh_key = true\n+ delete_data_disks_on_termination = true\n+ ssh_key = \"\"\n+ ssh_key_values = [\"ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQC8GIRF1Snlg9NKCmM74RHXqRGMXyui088+ntQqkQkFIL/BrlgP3CzOgHQmJ+3f0Up/+9UY9vX7AmT7WxVTyqBHT/Aes3VmU3wLO5/MMV/HRrT4z2QV/80futhxjk2unNdWGvbFcR6Y3I44EJFmr8GMbyXRtr0ibuv8BlTYx/K6AXSJ3V+kBqXMOF1QRvVoX9fJKPKjMsebe0cB1IYlm9KLqtciMy+aFOEsSNfrw5cNVsQfK3BgOUKAHsLfBiR7imA2ca+hh005GEtcVJvpvFzcM+bZggUpdqQwIzk1Kv/tROiJiGS0NnyzoxIZYeM3z/mQ5qnglp+174XGCG66EAnVdf5kbaI0Iu7FpAmVhJ92N+MNKoP6vT8cMkYYZf3RaiMMnzjswK/VLbb5ks6Qe9qEPXW1IBtkaaF7+0PCWbPr86I0G2bOa2tFyOHm046Z9sRlkaOO95hmer6Y6MUbMpfeprmjR87u6MVOPglnARfV3UI9i6wOUhVVIi6Wb424HWU=\"]\n \n depends_on = [azurerm_resource_group.test]\n }\n---\nvariables.tf\n@@ -160,6 +160,12 @@ variable \"delete_os_disk_on_termination\" {\n default = false\n }\n \n+variable \"delete_data_disks_on_termination\" {\n+ type = bool\n+ description = \"Delete data disks when machine is terminated.\"\n+ default = false\n+}\n+\n variable \"data_sa_type\" {\n description = \"Data Disk Storage Account type.\"\n type = string\n---\n\n\n---\n\nChoice D:\nREADME.md\n@@ -182,24 +182,25 @@ data \"azurerm_key_vault_certificate\" \"example\" {\n }\n \n module \"linuxservers\" {\n- source = \"Azure/compute/azurerm\"\n- resource_group_name = azurerm_resource_group.example.name\n- vm_hostname = \"mylinuxvm\"\n- nb_public_ip = 0\n- remote_port = \"22\"\n- nb_instances = 2\n- vm_os_publisher = \"Canonical\"\n- vm_os_offer = \"UbuntuServer\"\n- vm_os_sku = \"18.04-LTS\"\n- vnet_subnet_id = module.network.vnet_subnets[0]\n- boot_diagnostics = true\n- delete_os_disk_on_termination = true\n- nb_data_disk = 2\n- data_disk_size_gb = 64\n- data_sa_type = \"Premium_LRS\"\n- enable_ssh_key = true\n- ssh_key_values = [\"ssh-rsa AAAAB3NzaC1yc2EAAAAD...\"] \n- vm_size = \"Standard_D4s_v3\"\n+ source = \"Azure/compute/azurerm\"\n+ resource_group_name = azurerm_resource_group.example.name\n+ vm_hostname = \"mylinuxvm\"\n+ nb_public_ip = 0\n+ remote_port = \"22\"\n+ nb_instances = 2\n+ vm_os_publisher = \"Canonical\"\n+ vm_os_offer = \"UbuntuServer\"\n+ vm_os_sku = \"18.04-LTS\"\n+ vnet_subnet_id = module.network.vnet_subnets[0]\n+ boot_diagnostics true\n+ delete_os_disk_on_termination = true\n+ nb_data_disk = 2\n+ data_disk_size_gb = 64\n+ data_sa_type = \"Premium_LRS\"\n+ enable_ssh_key = true\n+ ssh_key_values = [\"ssh-rsa AAAAB3NzaC1yc2EAAAAD...\"]\n+ vm_size = \"Standard_D4s_v3\"\n+ delete_data_disks_on_termination = true\n \n tags = {\n environment = \"dev\"\n---\nmain.tf\n@@ -30,14 +30,15 @@ resource \"azurerm_storage_account\" \"vm-sa\" {\n }\n \n resource \"azurerm_virtual_machine\" \"vm-linux\" {\n- count = ! contains(tolist([var.vm_os_simple, var.vm_os_offer]), \"WindowsServer\") && ! var.is_windows_image ? var.nb_instances : 0\n- name = \"${var.vm_hostname}-vmLinux-${count.index}\"\n- resource_group_name = data.azurerm_resource_group.vm.name\n- location = coalesce(var.location, data.azurerm_resource_group.vm.location)\n- availability_set_id = azurerm_availability_set.vm.id\n- vm_size = var.vm_size\n- network_interface_ids = [element(azurerm_network_interface.vm.*.id, count.index)]\n- delete_os_disk_on_termination = var.delete_os_disk_on_termination\n+ count = ! contains(tolist([var.vm_os_simple, var.vm_os_offer]), \"WindowsServer\") && ! var.is_windows_image ? var.nb_instances : 0\n+ name = \"${var.vm_hostname}-vmLinux-${count.index}\"\n+ resource_group_name = data.azurerm_resource_group.vm.name\n+ location = coalesce(var.location, data.azurerm_resource_group.vm.location)\n+ availability_set_id = azurerm_availability_set.vm.id\n+ vm_size = var.vm_size\n+ network_interface_ids = [element(azurerm_network_interface.vm.*.id, count.index)]\n+ delete_os_disk_on_termination = var.delete_os_disk_on_termination\n+ delete_data_disks_on_termination = var.delete_data_disks_on_termination\n \n dynamic identity {\n for_each = length(var.identity_ids) == 0 && var.identity_type == \"SystemAssigned\" ? [var.identity_type] : []\n---\ntest/fixture/main.tf\n@@ -104,16 +104,17 @@ module \"debianservers\" {\n }\n \n module \"debianservers2\" {\n- source = \"../../\"\n- vm_hostname = \"${random_id.ip_dns.hex}-d2\"\n- resource_group_name = azurerm_resource_group.test.name\n- location = var.location_alt\n- admin_username = var.admin_username\n- vm_os_simple = var.vm_os_simple_2\n- vnet_subnet_id = azurerm_subnet.subnet2.id\n- enable_ssh_key = true\n- ssh_key = \"\"\n- ssh_key_values = [\"ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQC8GIRF1Snlg9NKCmM74RHXqRGMXyui088+ntQqkQkFIL/BrlgP3CzOgHQmJ+3f0Up/+9UY9vX7AmT7WxVTyqBHT/Aes3VmU3wLO5/MMV/HRrT4z2QV/80futhxjk2unNdWGvbFcR6Y3I44EJFmr8GMbyXRtr0ibuv8BlTYx/K6AXSJ3V+kBqXMOF1QRvVoX9fJKPKjMsebe0cB1IYlm9KLqtciMy+aFOEsSNfrw5cNVsQfK3BgOUKAHsLfBiR7imA2ca+hh005GEtcVJvpvFzcM+bZggUpdqQwIzk1Kv/tROiJiGS0NnyzoxIZYeM3z/mQ5qnglp+174XGCG66EAnVdf5kbaI0Iu7FpAmVhJ92N+MNKoP6vT8cMkYYZf3RaiMMnzjswK/VLbb5ks6Qe9qEPXW1IBtkaaF7+0PCWbPr86I0G2bOa2tFyOHm046Z9sRlkaOO95hmer6Y6MUbMpfeprmjR87u6MVOPglnARfV3UI9i6wOUhVVIi6Wb424HWU=\"]\n+ source = \"../../\"\n+ vm_hostname = \"${random_id.ip_dns.hex}-d2\"\n+ resource_group_name = azurerm_resource_group.test.name\n+ location = var.location_alt\n+ admin_username = var.admin_username\n+ vm_os_simple = var.vm_os_simple_2\n+ vnet_subnet_id = azurerm_subnet.subnet2.id\n+ enable_ssh_key = true\n+ delete_data_disks_on_termination = true\n+ ssh_key = \"\"\n+ ssh_key_values = [\"ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQC8GIRF1Snlg9NKCmM74RHXqRGMXyui088+ntQqkQkFIL/BrlgP3CzOgHQmJ+3f0Up/+9UY9vX7AmT7WxVTyqBHT/Aes3VmU3wLO5/MMV/HRrT4z2QV/80futhxjk2unNdWGvbFcR6Y3I44EJFmr8GMbyXRtr0ibuv8BlTYx/K6AXSJ3V+kBqXMOF1QRvVoX9fJKPKjMsebe0cB1IYlm9KLqtciMy+aFOEsSNfrw5cNVsQfK3BgOUKAHsLfBiR7imA2ca+hh005GEtcVJvpvFzcM+bZggUpdqQwIzk1Kv/tROiJiGS0NnyzoxIZYeM3z/mQ5qnglp+174XGCG66EAnVdf5kbaI0Iu7FpAmVhJ92N+MNKoP6vT8cMkYYZf3RaiMMnzjswK/VLbb5ks6Qe9qEPXW1IBtkaaF7+0PCWbPr86I0G2bOa2tFyOHm046Z9sRlkaOO95hmer6Y6MUbMpfeprmjR87u6MVOPglnARfV3UI9i6wOUhVVIi6Wb424HWU=\"]\n \n depends_on = [azurerm_resource_group.test]\n }\n---\nvariables.tf\n@@ -160,6 +160,12 @@ variable \"delete_os_disk_on_termination\" {\n default = false\n }\n \n+variable \"delete_data_disks_on_termination\" {\n+ type = bool\n+ description = \"Delete data disks when machine is terminated.\"\n+ default = false\n+}\n+\n variable \"data_sa_type\" {\n description = \"Data Disk Storage Account type.\"\n type = string\n---\n\n\n---\n" } ]
A
[ { "role": "system", "content": "Choose the best Terraform patch (A/B/C/D) that implements the requested Azure Compute change safely. Only respond with a single uppercase letter." }, { "role": "user", "content": "Task Description:\nIn terraform >= 0.15.0, the deprecated list method is removed. This causes the module to stop working on newer versions. List method has been changed to tolist method.\r\n\r\nFor more information see:\r\n- https://www.terraform.io/docs/language/functions/tolist.html\r\n- https://github.com/hashicorp/terraform/blob/v0.15/CHANGELOG.md#0150-april-14-2021\r\n\r\nError:\r\n\r\n```bash\r\n│ Error: Error in function call\r\n│ \r\n│ on .terraform/modules/vm_set/main.tf line 33, in resource \"azurerm_virtual_machine\" \"vm-linux\":\r\n│ 33: count = ! contains(list(var.vm_os_simple, var.vm_os_offer), \"WindowsServer\") && ! var.is_windows_image ? var.nb_instances : 0\r\n│ ├────────────────\r\n│ │ var.vm_os_offer is a string, known only after apply\r\n│ │ var.vm_os_simple is a string, known only after apply\r\n│ \r\n│ Call to function \"list\" failed: the \"list\" function was deprecated in\r\n│ Terraform v0.12 and is no longer available; use tolist([ ... ]) syntax to\r\n│ write a literal list.\r\n```\r\n\r\n<!---\r\nPlease add this into the test of test/fixture, format the changes by \"terraform fmt\", and test it by run the following:\r\n```sh\r\n$ docker build --build-arg BUILD_ARM_SUBSCRIPTION_ID=$ARM_SUBSCRIPTION_ID --build-arg BUILD_ARM_CLIENT_ID=$ARM_CLIENT_ID --build-arg BUILD_ARM_CLIENT_SECRET=$ARM_CLIENT_SECRET --build-arg BUILD_ARM_TENANT_ID=$ARM_TENANT_ID -t azure-compute .\r\n$ docker run --rm azure-compute /bin/bash -c \"bundle install && rake full\"\r\n```\r\n\r\nPlease add this into the example usage of README.md and format the changes by \"terrafmt fmt README.md\". Please intall \"terrafmt\" by [install terrafmt](https://github.com/katbyte/terrafmt#install).\r\n--->\r\n\r\nChanges proposed in the pull request:\r\n\r\n- Delete deprecated `list` method and replace it with `tolist`.\r\n\n\n---\n\nChoice A:\nDockerfile\n@@ -1,5 +1,5 @@\n # Pull the base image with given version.\n-ARG BUILD_TERRAFORM_VERSION=\"0.13.5\"\n+ARG BUILD_TERRAFORM_VERSION=\"0.14.4\"\n FROM mcr.microsoft.com/terraform-test:${BUILD_TERRAFORM_VERSION}\n \n ARG MODULE_NAME=\"terraform-azurerm-compute\"\n---\nmain.tf\n@@ -30,7 +30,7 @@ resource \"azurerm_storage_account\" \"vm-sa\" {\n }\n \n resource \"azurerm_virtual_machine\" \"vm-linux\" {\n- count = ! contains(list(var.vm_os_simple, var.vm_os_offer), \"WindowsServer\") && ! var.is_windows_image ? var.nb_instances : 0\n+ count = ! contains(tolist([var.vm_os_simple, var.vm_os_offer]), \"WindowsServer\") && ! var.is_windows_image ? var.nb_instances : 0\n name = \"${var.vm_hostname}-vmLinux-${count.index}\"\n resource_group_name = data.azurerm_resource_group.vm.name\n location = coalesce(var.location, data.azurerm_resource_group.vm.location)\n@@ -139,7 +139,7 @@ resource \"azurerm_virtual_machine\" \"vm-linux\" {\n }\n \n resource \"azurerm_virtual_machine\" \"vm-windows\" {\n- count = (var.is_windows_image || contains(list(var.vm_os_simple, var.vm_os_offer), \"WindowsServer\")) ? var.nb_instances : 0\n+ count = (var.is_windows_image || contains(tolist([var.vm_os_simple, var.vm_os_offer]), \"WindowsServer\")) ? var.nb_instances : 0\n name = \"${var.vm_hostname}-vmWindows-${count.index}\"\n resource_group_name = data.azurerm_resource_group.vm.name\n location = coalesce(var.location, data.azurerm_resource_group.vm.location)\n@@ -295,7 +295,7 @@ resource \"azurerm_network_interface\" \"vm\" {\n name = \"${var.vm_hostname}-ip-${count.index}\"\n subnet_id = var.vnet_subnet_id\n private_ip_address_allocation = \"Dynamic\"\n- public_ip_address_id = length(azurerm_public_ip.vm.*.id) > 0 ? element(concat(azurerm_public_ip.vm.*.id, list(\"\")), count.index) : \"\"\n+ public_ip_address_id = length(azurerm_public_ip.vm.*.id) > 0 ? element(concat(azurerm_public_ip.vm.*.id, tolist([\"\"])), count.index) : \"\"\n }\n \n tags = var.tags\n---\n\n\n---\n\nChoice B:\nDockerfile\n@@ -1,5 +1,5 @@\n # Pull the base image with given version.\n-ARG BUILD_TERRAFORM_VERSION=\"0.13.5\"\n+ARG BUILD_TERRAFORM_VERSION=\"0.14.4\"\n FROM mcr.microsoft.com/terraform-test:${BUILD_TERRAFORM_VERSION}\n \n ARG MODULE_NAME=\"terraform-azurerm-compute\"\n---\nmain.tf\n@@ -30,7 +30,7 @@ resource \"azurerm_storage_account\" \"vm-sa\" {\n }\n \n resource \"azurerm_virtual_machine\" \"vm-linux\" {\n- count = ! contains(list(var.vm_os_simple, var.vm_os_offer), \"WindowsServer\") && ! var.is_windows_image ? var.nb_instances : 0\n+ count = ! contains(tolist([var.vm_os_simple, var.vm_os_offer]), \"WindowsServer\") && ! var.is_windows_image ? var.nb_instances : 0\n name = \"${var.vm_hostname}-vmLinux-${count.index}\"\n resource_group_name = data.azurerm_resource_group.vm.name\n location = coalesce(var.location, data.azurerm_resource_group.vm.location)\n@@ -139,7 +139,7 @@ resource \"azurerm_virtual_machine\" \"vm-linux\" {\n }\n \n resource \"azurerm_virtual_machine\" \"vm-windows\" {\n- count = (var.is_windows_image || contains(list(var.vm_os_simple, var.vm_os_offer), \"WindowsServer\")) ? var.nb_instances : 0\n+ count = (var.is_windows_image || contains(tolist([var.vm_os_simple, var.vm_os_offer]), \"WindowsServer\")) ? var.nb_instances : 0\n name = \"${var.vm_hostname}-vmWindows-${count.index}\"\n resource_group_name = data.azurerm_resource_group.vm.name\n location = coalesce(var.location, data.azurerm_resource_group.vm.location)\n@@ -295,7 +295,7 @@ resource \"azurerm_network_interface\" \"vm\" {\n name = \"${var.vm_hostname}-ip-${count.index}\"\n subnet_id = var.vnet_subnet_id\n private_ip_address_allocation = \"Dynamic\"\n- public_ip_address_id = length(azurerm_public_ip.vm.*.id) > 0 ? element(concat(azurerm_public_ip.vm.*.id, list(\"\")), count.index) : \"\"\n+ public_ip_address_id = length(azurerm_public_ip.vm.*.id) > 0 ? element(concat(azurerm_public_ip.vm.*.id, tolist([\"\"])), count.index) : \"\"\n }\n \n tags = var.tags\n---\n\n\n---\n\nChoice C:\nDockerfile\n@@ -1,5 @@\n # Pull the base image with given version.\n-ARG BUILD_TERRAFORM_VERSION=\"0.13.5\"\n+ARG BUILD_TERRAFORM_VERSION=\"0.14.4\"\n FROM mcr.microsoft.com/terraform-test:${BUILD_TERRAFORM_VERSION}\n \n ARG MODULE_NAME=\"terraform-azurerm-compute\"\n---\nmain.tf\n@@ -30,7 +30,7 @@ resource \"azurerm_storage_account\" \"vm-sa\" {\n }\n \n resource \"azurerm_virtual_machine\" \"vm-linux\" {\n- count = ! contains(list(var.vm_os_simple, var.vm_os_offer), \"WindowsServer\") && ! var.is_windows_image ? var.nb_instances : 0\n+ count = ! contains(tolist([var.vm_os_simple, var.vm_os_offer]), \"WindowsServer\") && ! var.is_windows_image ? var.nb_instances : 0\n name = \"${var.vm_hostname}-vmLinux-${count.index}\"\n resource_group_name = data.azurerm_resource_group.vm.name\n location = coalesce(var.location, data.azurerm_resource_group.vm.location)\n@@ -139,7 +139,7 @@ resource \"azurerm_virtual_machine\" \"vm-linux\" {\n }\n \n resource \"azurerm_virtual_machine\" \"vm-windows\" {\n- count = (var.is_windows_image || contains(list(var.vm_os_simple, var.vm_os_offer), \"WindowsServer\")) ? var.nb_instances : 0\n+ count = (var.is_windows_image || contains(tolist([var.vm_os_simple, var.vm_os_offer]), \"WindowsServer\")) ? var.nb_instances : 0\n name = \"${var.vm_hostname}-vmWindows-${count.index}\"\n resource_group_name = data.azurerm_resource_group.vm.name\n location = coalesce(var.location, data.azurerm_resource_group.vm.location)\n@@ -295,7 +295,7 @@ resource \"azurerm_network_interface\" \"vm\" {\n name = \"${var.vm_hostname}-ip-${count.index}\"\n subnet_id = var.vnet_subnet_id\n private_ip_address_allocation = \"Dynamic\"\n- public_ip_address_id = length(azurerm_public_ip.vm.*.id) > 0 ? element(concat(azurerm_public_ip.vm.*.id, list(\"\")), count.index) : \"\"\n+ public_ip_address_id = length(azurerm_public_ip.vm.*.id) > 0 ? element(concat(azurerm_public_ip.vm.*.id, tolist([\"\"])), count.index) : \"\"\n }\n \n tags = var.tags\n---\n\n\n---\n\nChoice D:\nDockerfile\n@@ -1,5 +1,5 @@\n # Pull the base image with given version.\n-ARG BUILD_TERRAFORM_VERSION=\"0.13.5\"\n+ARG BUILD_TERRAFORM_VERSION=\"0.14.4\"\n FROM mcr.microsoft.com/terraform-test:${BUILD_TERRAFORM_VERSION}\n \n ARG MODULE_NAME=\"terraform-azurerm-compute\"\n---\nmain.tf\n@@ -30,7 +30,7 @@ resource \"azurerm_storage_account\" \"vm-sa\" {\n }\n \n resource \"azurerm_virtual_machine\" \"vm-linux\" {\n- count = ! contains(list(var.vm_os_simple, var.vm_os_offer), \"WindowsServer\") && ! var.is_windows_image ? var.nb_instances : 0\n+ count = ! contains(tolist([var.vm_os_simple, var.vm_os_offer]), \"WindowsServer\") && ! var.is_windows_image ? var.nb_instances : 0\n name = \"${var.vm_hostname}-vmLinux-${count.index}\"\n resource_group_name = data.azurerm_resource_group.vm.name\n location = coalesce(var.location, data.azurerm_resource_group.vm.location)\n@@ -139,7 +139,7 @@ resource \"azurerm_virtual_machine\" \"vm-linux\" {\n }\n \n resource \"azurerm_virtual_machine\" \"vm-windows\" {\n- count = (var.is_windows_image || contains(list(var.vm_os_simple, var.vm_os_offer), \"WindowsServer\")) ? var.nb_instances : 0\n+ count = (var.is_windows_image || contains(tolist([var.vm_os_simple, var.vm_os_offer]), \"WindowsServer\")) ? var.nb_instances : 0\n name = \"${var.vm_hostname}-vmWindows-${count.index}\"\n resource_group_name = data.azurerm_resource_group.vm.name\n location = coalesce(var.location, data.azurerm_resource_group.vm.location)\n@@ -295,7 +295,7 @@ resource \"azurerm_network_interface\" \"vm\" {\n name = \"${var.vm_hostname}-ip-${count.index}\"\n subnet_id = var.vnet_subnet_id\n private_ip_address_allocation = \"Dynamic\"\n- public_ip_address_id = length(azurerm_public_ip.vm.*.id) > 0 ? element(concat(azurerm_public_ip.vm.*.id, list(\"\")), count.index) : \"\"\n+ public_ip_address_id = length(azurerm_public_ip.vm.*.id) > 0 ? element(concat(azurerm_public_ip.vm.*.id, tolist([\"\"])), count.index) : \"\"\n }\n \n tags = var.tags\n---\n\n\n---\n" } ]
A
[ { "role": "system", "content": "Choose the best Terraform patch (A/B/C/D) that implements the requested Azure Compute change safely. Only respond with a single uppercase letter." }, { "role": "user", "content": "Task Description:\n…(as an option)\r\n\r\n<!---\r\nPlease add this into the test of test/fixture, format the changes by \"terraform fmt\", and test it by run the following:\r\n```sh\r\n$ docker build --build-arg BUILD_ARM_SUBSCRIPTION_ID=$ARM_SUBSCRIPTION_ID --build-arg BUILD_ARM_CLIENT_ID=$ARM_CLIENT_ID --build-arg BUILD_ARM_CLIENT_SECRET=$ARM_CLIENT_SECRET --build-arg BUILD_ARM_TENANT_ID=$ARM_TENANT_ID -t azure-compute .\r\n$ docker run --rm azure-compute /bin/bash -c \"bundle install && rake full\"\r\n```\r\n\r\nPlease add this into the example usage of README.md and format the changes by \"terrafmt fmt README.md\". Please intall \"terrafmt\" by [install terrafmt](https://github.com/katbyte/terrafmt#install).\r\n--->\r\n\r\nFixes #000 \r\n\r\nChanges proposed in the pull request:\r\nAvailability Set option settings variables\r\n\r\n\r\n\n\n---\n\nChoice A:\nREADME.md\n@@ -159,6 +159,8 @@ The variable accepts a list of maps with the following keys:\n * certificate_url : The certificate URL in Key Vault\n * certificate_store : The certificate store on the Virtual Machine where the certificate should be added to (Windows Only).\n \n+5 - You can override default (2) values of \"Update Domain\" and \"Fault Domain\" in \"Availability Set\" using `as_update_domain` and `as_fault_domain` variables. Changing this forces a new resource to be created.\n+\n In the below example we use the data sources `azurerm_key_vault` and `azurerm_key_vault_certificate` to fetch the certificate information from Key Vault and add it to `windowsservers` via `os_profile_secrets` parameter.\n \n ```hcl\n@@ -201,6 +203,8 @@ module \"linuxservers\" {\n ssh_key_values = [\"ssh-rsa AAAAB3NzaC1yc2EAAAAD...\"]\n vm_size = \"Standard_D4s_v3\"\n delete_data_disks_on_termination = true\n+ as_update_domain = 3\n+ as_fault_domain = 3\n \n tags = {\n environment = \"dev\"\n@@ -230,6 +234,8 module \"windowsservers\" {\n enable_accelerated_networking = true\n license_type = \"Windows_Client\"\n identity_type = \"SystemAssigned\" // can be empty, SystemAssigned or UserAssigned\n+ as_update_domain = 3\n+ as_fault_domain = 3\n \n extra_disks = [\n {\n---\nmain.tf\n@@ -236,8 +236,8 @@ resource \"azurerm_availability_set\" \"vm\" {\n name = \"${var.vm_hostname}-avset\"\n resource_group_name = data.azurerm_resource_group.vm.name\n location = coalesce(var.location, data.azurerm_resource_group.vm.location)\n- platform_fault_domain_count = 2\n- platform_update_domain_count = 2\n+ platform_fault_domain_count = var.as_fault_domain\n+ platform_update_domain_count = var.as_update_domain\n managed = true\n tags = var.tags\n }\n---\nvariables.tf\n@@ -246,3 +246,15 @@ variable \"os_profile_secrets\" {\n type = list(map(string))\n default = []\n }\n+\n+variable \"as_fault_domain\" {\n+ description = \"(Optional) Number of fault domain zones in availability set. Default 2\"\n+ type = number\n+ default = 2\n+}\n+\n+variable \"as_update_domain\" {\n+ description = \"(Optional) Number of update domain zones in availability set. Default 2\"\n+ type = number\n+ default = 2\n+}\n---\n\n\n---\n\nChoice B:\nREADME.md\n@@ -159,6 +159,8 @@ The variable accepts a list of maps with the following keys:\n * certificate_url : The certificate URL in Key Vault\n * certificate_store : The certificate store on the Virtual Machine where the certificate should be added to (Windows Only).\n \n+5 - You can override default (2) values of \"Update Domain\" and \"Fault Domain\" in \"Availability Set\" using `as_update_domain` and `as_fault_domain` variables. Changing this forces a new resource to be created.\n+\n In the below example we use the data sources `azurerm_key_vault` and `azurerm_key_vault_certificate` to fetch the certificate information from Key Vault and add it to `windowsservers` via `os_profile_secrets` parameter.\n \n ```hcl\n@@ -201,6 +203,8 @@ module \"linuxservers\" {\n ssh_key_values = [\"ssh-rsa AAAAB3NzaC1yc2EAAAAD...\"]\n vm_size = \"Standard_D4s_v3\"\n delete_data_disks_on_termination = true\n+ as_update_domain = 3\n+ as_fault_domain = 3\n \n tags = {\n environment = \"dev\"\n@@ -230,6 +234,8 @@ module \"windowsservers\" {\n enable_accelerated_networking = true\n license_type = \"Windows_Client\"\n identity_type = \"SystemAssigned\" // can be empty, SystemAssigned or UserAssigned\n+ as_update_domain = 3\n+ @@ = 3\n \n extra_disks = [\n {\n---\nmain.tf\n@@ -236,8 +236,8 @@ resource \"azurerm_availability_set\" \"vm\" {\n name = \"${var.vm_hostname}-avset\"\n resource_group_name = data.azurerm_resource_group.vm.name\n location = coalesce(var.location, data.azurerm_resource_group.vm.location)\n- platform_fault_domain_count = 2\n- platform_update_domain_count = 2\n+ platform_fault_domain_count = var.as_fault_domain\n+ platform_update_domain_count = var.as_update_domain\n managed = true\n tags = var.tags\n }\n---\nvariables.tf\n@@ -246,3 +246,15 @@ variable \"os_profile_secrets\" {\n type = list(map(string))\n default = []\n }\n+\n+variable \"as_fault_domain\" {\n+ description = \"(Optional) Number of fault domain zones in availability set. Default 2\"\n+ type = number\n+ default = 2\n+}\n+\n+variable \"as_update_domain\" {\n+ description = \"(Optional) Number of update domain zones in availability set. Default 2\"\n+ type = number\n+ default = 2\n+}\n---\n\n\n---\n\nChoice C:\nREADME.md\n@@ -159,6 +159,8 @@ The variable accepts a list of maps with the following keys:\n * certificate_url : The certificate URL in Key Vault\n * certificate_store : The certificate store on the Virtual Machine where the certificate should be added to (Windows Only).\n \n+5 - You can override default (2) values of \"Update Domain\" and \"Fault Domain\" in \"Availability Set\" using `as_update_domain` and `as_fault_domain` variables. Changing this forces a new resource to be created.\n+\n In the below example we use the data sources `azurerm_key_vault` and `azurerm_key_vault_certificate` to fetch the certificate information from Key Vault and add it to `windowsservers` via `os_profile_secrets` parameter.\n \n ```hcl\n@@ -201,6 +203,8 @@ module \"linuxservers\" {\n ssh_key_values = [\"ssh-rsa AAAAB3NzaC1yc2EAAAAD...\"]\n vm_size = \"Standard_D4s_v3\"\n delete_data_disks_on_termination = true\n+ as_update_domain = 3\n+ as_fault_domain = 3\n \n tags = {\n environment = \"dev\"\n@@ -230,6 +234,8 @@ module \"windowsservers\" {\n enable_accelerated_networking = true\n license_type = \"Windows_Client\"\n identity_type = \"SystemAssigned\" // can be empty, SystemAssigned or UserAssigned\n+ as_update_domain = 3\n+ as_fault_domain = 3\n \n extra_disks = [\n {\n---\nmain.tf\n@@ -236,8 +236,8 @@ resource \"azurerm_availability_set\" \"vm\" {\n name = \"${var.vm_hostname}-avset\"\n resource_group_name = data.azurerm_resource_group.vm.name\n location = coalesce(var.location, data.azurerm_resource_group.vm.location)\n- platform_fault_domain_count = 2\n- platform_update_domain_count = 2\n+ platform_fault_domain_count = var.as_fault_domain\n+ platform_update_domain_count = var.as_update_domain\n managed = true\n tags = var.tags\n }\n---\nvariables.tf\n@@ -246,3 +246,15 @@ variable \"os_profile_secrets\" {\n type = list(map(string))\n default = []\n }\n+\n+variable \"as_fault_domain\" {\n+ description = \"(Optional) Number of fault domain zones in availability set. Default 2\"\n+ type = number\n+ default = 2\n+}\n+\n+variable \"as_update_domain\" {\n+ description = \"(Optional) Number of update domain zones in availability set. Default 2\"\n+ type = number\n+ default = 2\n+}\n---\n\n\n---\n\nChoice D:\nREADME.md\n@@ -159,6 +159,8 @@ The variable accepts a list of maps with the following keys:\n * certificate_url : The certificate URL in Key Vault\n * certificate_store : The certificate store on the Virtual Machine where the certificate should be added to (Windows Only).\n \n+5 - You can override default (2) values of \"Update Domain\" and \"Fault Domain\" in \"Availability Set\" using `as_update_domain` and `as_fault_domain` variables. Changing this forces a new resource to be created.\n+\n In the below example we use the data sources `azurerm_key_vault` and `azurerm_key_vault_certificate` to fetch the certificate information from Key Vault and add it to `windowsservers` via `os_profile_secrets` parameter.\n \n ```hcl\n@@ -201,6 +203,8 @@ module \"linuxservers\" {\n ssh_key_values = [\"ssh-rsa AAAAB3NzaC1yc2EAAAAD...\"]\n vm_size = \"Standard_D4s_v3\"\n delete_data_disks_on_termination = true\n+ as_update_domain = 3\n+ as_fault_domain = 3\n \n tags = {\n environment = \"dev\"\n@@ -230,6 +234,8 @@ module \"windowsservers\" {\n enable_accelerated_networking = true\n license_type = \"Windows_Client\"\n identity_type = \"SystemAssigned\" // can be empty, SystemAssigned or UserAssigned\n+ as_update_domain = 3\n+ as_fault_domain = 3\n \n extra_disks = [\n {\n---\nmain.tf\n@@ -236,8 +236,8 @@ resource \"azurerm_availability_set\" \"vm\" {\n name = \"${var.vm_hostname}-avset\"\n resource_group_name = data.azurerm_resource_group.vm.name\n location = coalesce(var.location, data.azurerm_resource_group.vm.location)\n- platform_fault_domain_count = 2\n- platform_update_domain_count = 2\n+ platform_fault_domain_count = var.as_fault_domain\n+ platform_update_domain_count = var.as_update_domain\n managed = true\n tags = var.tags\n }\n---\nvariables.tf\n@@ -246,3 +246,15 @@ variable \"os_profile_secrets\" {\n type = list(map(string))\n default = []\n }\n+\n+variable \"as_fault_domain\" {\n+ description = \"(Optional) Number of fault domain zones availability set. Default 2\"\n+ type = number\n+ default = 2\n+}\n+\n+variable \"as_update_domain\" {\n+ description = \"(Optional) Number of update domain zones in availability set. Default 2\"\n+ type = number\n+ default = 2\n+}\n---\n\n\n---\n" } ]
C
[ { "role": "system", "content": "Choose the best Terraform patch (A/B/C/D) that implements the requested Azure Compute change safely. Only respond with a single uppercase letter." }, { "role": "user", "content": "Task Description:\n<!---\r\nPlease add this into the test of test/fixture, format the changes by \"terraform fmt\", and test it by run the following:\r\n```sh\r\n$ docker build --build-arg BUILD_ARM_SUBSCRIPTION_ID=$ARM_SUBSCRIPTION_ID --build-arg BUILD_ARM_CLIENT_ID=$ARM_CLIENT_ID --build-arg BUILD_ARM_CLIENT_SECRET=$ARM_CLIENT_SECRET --build-arg BUILD_ARM_TENANT_ID=$ARM_TENANT_ID -t azure-compute .\r\n$ docker run --rm azure-compute /bin/bash -c \"bundle install && rake full\"\r\n```\r\n\r\nPlease add this into the example usage of README.md and format the changes by \"terrafmt fmt README.md\". Please intall \"terrafmt\" by [install terrafmt](https://github.com/katbyte/terrafmt#install).\r\n--->\r\n\r\nFixes #000 \r\n\r\nChanges proposed in the pull request:\r\nFix fixture test\r\n\r\n\r\n\n\n---\n\nChoice A:\ntest/fixture/keyvault.tf\n@@ -68,6 +68,11 @@ resource \"set\",\n \"test\" {\n \"restore\",\n \"set\",\n ]\n+\n+ timeouts {\n+ update = \"45m\"\n+ delete = \"45m\"\n+ }\n }\n \n resource \"azurerm_key_vault_access_policy\" \"test-vm\" {\n@@ -87,6 +92,10 @@ resource \"azurerm_key_vault_access_policy\" \"test-vm\" {\n secret_permissions = [\n \"get\",\n ]\n+ timeouts {\n+ update = \"45m\"\n+ delete = \"45m\"\n+ }\n }\n \n \n---\n\n\n---\n\nChoice B:\ntest/fixture/keyvault.tf\n@@ -68,6 +68,11 @@ resource \"azurerm_key_vault_access_policy\" \"test\" {\n \"restore\",\n \"set\",\n ]\n+\n+ timeouts {\n+ update = \"45m\"\n+ delete = \"45m\"\n+ }\n }\n \n resource \"test-vm\" {\n@@ -87,6 +92,10 @@ resource \"azurerm_key_vault_access_policy\" \"test-vm\" {\n secret_permissions = [\n \"get\",\n ]\n+ timeouts {\n+ update = \"45m\"\n+ delete = \"45m\"\n+ }\n }\n \n \n---\n\n\n---\n\nChoice C:\ntest/fixture/keyvault.tf\n@@ -68,6 +68,11 @@ resource \"azurerm_key_vault_access_policy\" \"test\" {\n \"restore\",\n \"set\",\n ]\n+\n+ timeouts {\n+ update = \"45m\"\n+ delete = \"45m\"\n+ }\n }\n \n resource \"azurerm_key_vault_access_policy\" \"test-vm\" {\n@@ -87,6 +92,10 @@ resource \"azurerm_key_vault_access_policy\" \"test-vm\" {\n secret_permissions = [\n \"get\",\n ]\n+ timeouts {\n+ update = \"45m\"\n+ delete = \"45m\"\n+ }\n }\n \n \n---\n\n\n---\n\nChoice D:\ntest/fixture/keyvault.tf\n@@ -68,6 +68,11 @@ resource \"azurerm_key_vault_access_policy\" \"test\" {\n \"restore\",\n \"set\",\n ]\n+\n+ timeouts {\n+ update = \"45m\"\n+ delete = \"45m\"\n+ }\n }\n \n resource \"azurerm_key_vault_access_policy\" \"test-vm\" {\n@@ -87,6 +92,10 @@ resource \"azurerm_key_vault_access_policy\" \"test-vm\" {\n secret_permissions = [\n \"get\",\n ]\n+ timeouts {\n+ update = \"45m\"\n+ delete = \"45m\"\n+ }\n }\n \n \n---\n\n\n---\n" } ]
C
[ { "role": "system", "content": "Choose the best Terraform patch (A/B/C/D) that implements the requested Azure Compute change safely. Only respond with a single uppercase letter." }, { "role": "user", "content": "Task Description:\n<!---\r\nPlease add this into the test of test/fixture, format the changes by \"terraform fmt\", and test it by run the following:\r\n```sh\r\n$ docker build --build-arg BUILD_ARM_SUBSCRIPTION_ID=$ARM_SUBSCRIPTION_ID --build-arg BUILD_ARM_CLIENT_ID=$ARM_CLIENT_ID --build-arg BUILD_ARM_CLIENT_SECRET=$ARM_CLIENT_SECRET --build-arg BUILD_ARM_TENANT_ID=$ARM_TENANT_ID -t azure-compute .\r\n$ docker run --rm azure-compute /bin/bash -c \"bundle install && rake full\"\r\n```\r\n\r\nPlease add this into the example usage of README.md and format the changes by \"terrafmt fmt README.md\". Please intall \"terrafmt\" by [install terrafmt](https://github.com/katbyte/terrafmt#install).\r\n--->\r\n\r\nFixes #000 \r\n\r\nChanges proposed in the pull request:\r\n\r\n\r\n\r\n\n\n---\n\nChoice A:\nRakefile\n@@ -32,7 +32,7 @@ namespace :integration do\n end\n end\n task :test do\n- success = system (\"go test -v ./test/ -timeout 30m -args azureuser ~/.ssh/id_rsa\")\n+ success = system (\"go test -v ./test/ -timeout 45m -args azureuser ~/.ssh/id_rsa\")\n if not success \n raise \"ERROR: Go test failed!\\n\".red\n end\n---\ntest/fixture/main.tf\n@@ -1,5 +1,9 @@\n provider \"azurerm\" {\n- features {}\n+ features {\n+ key_vault {\n+ purge_soft_delete_on_destroy = false\n+ }\n+ }\n }\n \n resource \"random_id\" \"ip_dns\" {\n@@ -61,7 +65,6 @@ module \"ubuntuservers\" {\n enable_accelerated_networking = true\n vm_size = \"Standard_DS2_V2\"\n nb_data_disk = 2\n- enable_ssh_key = false\n identity_type = \"UserAssigned\"\n identity_ids = [azurerm_user_assigned_identity.test.id]\n os_profile_secrets = [{\n@@ -109,6 +112,7 @@ module \"debianservers2\" {\n vm_os_simple = var.vm_os_simple_2\n vnet_subnet_id = azurerm_subnet.subnet2.id\n enable_ssh_key = true\n+ ssh_key = \"\"\n ssh_key_values = [\"ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQC8GIRF1Snlg9NKCmM74RHXqRGMXyui088+ntQqkQkFIL/BrlgP3CzOgHQmJ+3f0Up/+9UY9vX7AmT7WxVTyqBHT/Aes3VmU3wLO5/MMV/HRrT4z2QV/80futhxjk2unNdWGvbFcR6Y3I44EJFmr8GMbyXRtr0ibuv8BlTYx/K6AXSJ3V+kBqXMOF1QRvVoX9fJKPKjMsebe0cB1IYlm9KLqtciMy+aFOEsSNfrw5cNVsQfK3BgOUKAHsLfBiR7imA2ca+hh005GEtcVJvpvFzcM+bZggUpdqQwIzk1Kv/tROiJiGS0NnyzoxIZYeM3z/mQ5qnglp+174XGCG66EAnVdf5kbaI0Iu7FpAmVhJ92N+MNKoP6vT8cMkYYZf3RaiMMnzjswK/VLbb5ks6Qe9qEPXW1IBtkaaF7+0PCWbPr86I0G2bOa2tFyOHm046Z9sRlkaOO95hmer6Y6MUbMpfeprmjR87u6MVOPglnARfV3UI9i6wOUhVVIi6Wb424HWU=\"]\n \n depends_on = [azurerm_resource_group.test]\n---\n\n\n---\n\nChoice B:\nRakefile\n@@ -32,7 +32,7 @@ namespace :integration do\n end\n end\n task :test do\n- success system (\"go test -v ./test/ -timeout 30m -args azureuser ~/.ssh/id_rsa\")\n+ success = system (\"go test -v ./test/ -timeout 45m -args azureuser ~/.ssh/id_rsa\")\n if not success \n raise \"ERROR: Go test failed!\\n\".red\n end\n---\ntest/fixture/main.tf\n@@ -1,5 +1,9 @@\n provider \"azurerm\" {\n- features {}\n+ features {\n+ key_vault {\n+ purge_soft_delete_on_destroy = false\n+ }\n+ }\n }\n \n resource \"random_id\" \"ip_dns\" {\n@@ -61,7 +65,6 @@ module \"ubuntuservers\" {\n enable_accelerated_networking = true\n vm_size = \"Standard_DS2_V2\"\n nb_data_disk = 2\n- enable_ssh_key = false\n identity_type = \"UserAssigned\"\n identity_ids = [azurerm_user_assigned_identity.test.id]\n os_profile_secrets = [{\n@@ -109,6 +112,7 @@ module \"debianservers2\" {\n vm_os_simple = var.vm_os_simple_2\n vnet_subnet_id = azurerm_subnet.subnet2.id\n enable_ssh_key = true\n+ ssh_key = \"\"\n ssh_key_values = [\"ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQC8GIRF1Snlg9NKCmM74RHXqRGMXyui088+ntQqkQkFIL/BrlgP3CzOgHQmJ+3f0Up/+9UY9vX7AmT7WxVTyqBHT/Aes3VmU3wLO5/MMV/HRrT4z2QV/80futhxjk2unNdWGvbFcR6Y3I44EJFmr8GMbyXRtr0ibuv8BlTYx/K6AXSJ3V+kBqXMOF1QRvVoX9fJKPKjMsebe0cB1IYlm9KLqtciMy+aFOEsSNfrw5cNVsQfK3BgOUKAHsLfBiR7imA2ca+hh005GEtcVJvpvFzcM+bZggUpdqQwIzk1Kv/tROiJiGS0NnyzoxIZYeM3z/mQ5qnglp+174XGCG66EAnVdf5kbaI0Iu7FpAmVhJ92N+MNKoP6vT8cMkYYZf3RaiMMnzjswK/VLbb5ks6Qe9qEPXW1IBtkaaF7+0PCWbPr86I0G2bOa2tFyOHm046Z9sRlkaOO95hmer6Y6MUbMpfeprmjR87u6MVOPglnARfV3UI9i6wOUhVVIi6Wb424HWU=\"]\n \n depends_on = [azurerm_resource_group.test]\n---\n\n\n---\n\nChoice C:\nRakefile\n@@ -32,7 +32,7 @@ namespace :integration do\n end\n end\n task :test do\n- success = system (\"go test -v ./test/ -timeout 30m -args azureuser ~/.ssh/id_rsa\")\n+ success = system (\"go test -v ./test/ -timeout 45m -args azureuser ~/.ssh/id_rsa\")\n if not success \n raise \"ERROR: Go test failed!\\n\".red\n end\n---\ntest/fixture/main.tf\n@@ -1,5 +1,9 @@\n provider \"azurerm\" {\n- features {}\n+ features {\n+ key_vault {\n+ purge_soft_delete_on_destroy = false\n+ }\n+ }\n }\n \n resource \"random_id\" \"ip_dns\" {\n@@ -61,7 +65,6 @@ module \"ubuntuservers\" {\n enable_accelerated_networking = true\n vm_size = \"Standard_DS2_V2\"\n nb_data_disk = 2\n- enable_ssh_key = false\n identity_type = test identity_ids = [azurerm_user_assigned_identity.test.id]\n os_profile_secrets = [{\n@@ -109,6 +112,7 @@ module \"debianservers2\" {\n vm_os_simple = var.vm_os_simple_2\n vnet_subnet_id = azurerm_subnet.subnet2.id\n enable_ssh_key = true\n+ ssh_key = \"\"\n ssh_key_values = [\"ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQC8GIRF1Snlg9NKCmM74RHXqRGMXyui088+ntQqkQkFIL/BrlgP3CzOgHQmJ+3f0Up/+9UY9vX7AmT7WxVTyqBHT/Aes3VmU3wLO5/MMV/HRrT4z2QV/80futhxjk2unNdWGvbFcR6Y3I44EJFmr8GMbyXRtr0ibuv8BlTYx/K6AXSJ3V+kBqXMOF1QRvVoX9fJKPKjMsebe0cB1IYlm9KLqtciMy+aFOEsSNfrw5cNVsQfK3BgOUKAHsLfBiR7imA2ca+hh005GEtcVJvpvFzcM+bZggUpdqQwIzk1Kv/tROiJiGS0NnyzoxIZYeM3z/mQ5qnglp+174XGCG66EAnVdf5kbaI0Iu7FpAmVhJ92N+MNKoP6vT8cMkYYZf3RaiMMnzjswK/VLbb5ks6Qe9qEPXW1IBtkaaF7+0PCWbPr86I0G2bOa2tFyOHm046Z9sRlkaOO95hmer6Y6MUbMpfeprmjR87u6MVOPglnARfV3UI9i6wOUhVVIi6Wb424HWU=\"]\n \n depends_on = [azurerm_resource_group.test]\n---\n\n\n---\n\nChoice D:\nRakefile\n@@ -32,7 +32,7 @@ namespace :integration do\n end\n end\n task :test do\n- success = system (\"go test -v ./test/ -timeout 30m -args azureuser ~/.ssh/id_rsa\")\n+ success = system (\"go test -v ./test/ -timeout 45m {\n- azureuser ~/.ssh/id_rsa\")\n if not success \n raise \"ERROR: Go test failed!\\n\".red\n end\n---\ntest/fixture/main.tf\n@@ -1,5 +1,9 @@\n provider \"azurerm\" {\n- features {}\n+ features {\n+ key_vault {\n+ purge_soft_delete_on_destroy = false\n+ }\n+ }\n }\n \n resource \"random_id\" \"ip_dns\" {\n@@ -61,7 +65,6 @@ module \"ubuntuservers\" {\n enable_accelerated_networking = true\n vm_size = \"Standard_DS2_V2\"\n nb_data_disk = 2\n- enable_ssh_key = false\n identity_type = \"UserAssigned\"\n identity_ids = [azurerm_user_assigned_identity.test.id]\n os_profile_secrets = [{\n@@ -109,6 +112,7 @@ module \"debianservers2\" {\n vm_os_simple = var.vm_os_simple_2\n vnet_subnet_id = azurerm_subnet.subnet2.id\n enable_ssh_key = true\n+ ssh_key = \"\"\n ssh_key_values = [\"ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQC8GIRF1Snlg9NKCmM74RHXqRGMXyui088+ntQqkQkFIL/BrlgP3CzOgHQmJ+3f0Up/+9UY9vX7AmT7WxVTyqBHT/Aes3VmU3wLO5/MMV/HRrT4z2QV/80futhxjk2unNdWGvbFcR6Y3I44EJFmr8GMbyXRtr0ibuv8BlTYx/K6AXSJ3V+kBqXMOF1QRvVoX9fJKPKjMsebe0cB1IYlm9KLqtciMy+aFOEsSNfrw5cNVsQfK3BgOUKAHsLfBiR7imA2ca+hh005GEtcVJvpvFzcM+bZggUpdqQwIzk1Kv/tROiJiGS0NnyzoxIZYeM3z/mQ5qnglp+174XGCG66EAnVdf5kbaI0Iu7FpAmVhJ92N+MNKoP6vT8cMkYYZf3RaiMMnzjswK/VLbb5ks6Qe9qEPXW1IBtkaaF7+0PCWbPr86I0G2bOa2tFyOHm046Z9sRlkaOO95hmer6Y6MUbMpfeprmjR87u6MVOPglnARfV3UI9i6wOUhVVIi6Wb424HWU=\"]\n \n depends_on = [azurerm_resource_group.test]\n---\n\n\n---\n" } ]
A
[ { "role": "system", "content": "Choose the best Terraform patch (A/B/C/D) that implements the requested Azure Compute change safely. Only respond with a single uppercase letter." }, { "role": "user", "content": "Task Description:\nThis PR makes the use of `ssh_key` optional by setting it to empty string. This is useful if somebody wants to use `ssh_key_values` only.\n\n---\n\nChoice A:\nmain.tf\n@@ -8,7 +8,7 @@ data \"azurerm_resource_group\" \"vm\" {\n }\n \n locals ssh_keys = concat([var.ssh_key], var.extra_ssh_keys)\n+ ssh_keys = compact(concat([var.ssh_key], var.extra_ssh_keys))\n }\n \n resource \"random_id\" \"vm-sa\" {\n---\n\n\n---\n\nChoice B:\nmain.tf\n@@ -8,7 +8,7 @@ data \"azurerm_resource_group\" \"vm\" {\n }\n \n locals {\n- ssh_keys = concat([var.ssh_key], var.extra_ssh_keys)\n+ ssh_keys = compact(concat([var.ssh_key], var.extra_ssh_keys))\n }\n \n resource \"random_id\" \"vm-sa\" {\n---\n\n\n---\n\nChoice C:\nmain.tf\n@@ -8,7 +8,7 @@ data \"azurerm_resource_group\" \"vm\" {\n }\n \n locals {\n- ssh_keys }\n concat([var.ssh_key], var.extra_ssh_keys)\n+ ssh_keys = compact(concat([var.ssh_key], var.extra_ssh_keys))\n }\n \n resource \"random_id\" \"vm-sa\" {\n---\n\n\n---\n\nChoice D:\nmain.tf\n@@ -8,7 +8,7 @@ data \"azurerm_resource_group\" \"vm\" {\n }\n \n locals {\n- ssh_keys = concat([var.ssh_key], var.extra_ssh_keys)\n+ ssh_keys = compact(concat([var.ssh_key], }\n \n resource \"random_id\" \"vm-sa\" {\n---\n\n\n---\n" } ]
B
[ { "role": "system", "content": "Choose the best Terraform patch (A/B/C/D) that implements the requested Azure Compute change safely. Only respond with a single uppercase letter." }, { "role": "user", "content": "Task Description:\n\r\nFixes #153 \r\n\r\nAdding the ability of defining ssh keys as raw value either to pass it directly as string to the module or refer it from another data source \r\n\r\n\r\n\n\n---\n\nChoice A:\nREADME.md\n@@ -148,7 +148,8 @@ More specifically this provisions:\n When ssh keys are enabled you can either\n - use the default \"~/.ssh/id_rsa.pub\"\n - set one key by setting a path in ssh_key variable. e.g \"joey_id_rsa.pub\"\n- - set shh_key and add zero or more files paths in extra_ssh_keys variable e.g. [\"ross_id_rsa.pub\", \"rachel_id_rsa.pub\"] (since v3.8.0)\n+ - set ssh_key and add zero or more files paths in extra_ssh_keys variable e.g. [\"ross_id_rsa.pub\", \"rachel_id_rsa.pub\"] (since v3.8.0)\n+ - set ssh_key_values as a list of raw public ssh keys values or refer it to a data source with the public key value, e.g. `[\"ssh-rsa AAAAB3NzaC1yc...\"]`\n \n 4 - You can install custom certificates / secrets on the virtual machine from Key Vault by using the variable `os_profile_secrets`.\n \n@@ -197,6 +198,7 @@ module \"linuxservers\" {\n data_disk_size_gb = 64\n data_sa_type = \"Premium_LRS\"\n enable_ssh_key = true\n+ ssh_key_values = [\"ssh-rsa AAAAB3NzaC1yc2EAAAAD...\"] \n vm_size = \"Standard_D4s_v3\"\n \n tags = {\n---\nmain.tf\n@@ -108,6 +108,15 @@ resource \"azurerm_virtual_machine\" \"vm-linux\" {\n key_data = file(ssh_keys.value)\n }\n }\n+\n+ dynamic ssh_keys {\n+ for_each = var.enable_ssh_key ? var.ssh_key_values : []\n+ content {\n+ path = \"/home/${var.admin_username}/.ssh/authorized_keys\"\n+ key_data = ssh_keys.value\n+ }\n+ }\n+\n }\n \n dynamic \"os_profile_secrets\" {\n---\ntest/fixture/main.tf\n@@ -100,6 +100,20 @@ module \"debianservers\" {\n depends_on = [azurerm_resource_group.test]\n }\n \n+module \"debianservers2\" {\n+ source = \"../../\"\n+ vm_hostname = \"${random_id.ip_dns.hex}-d2\"\n+ resource_group_name = azurerm_resource_group.test.name\n+ location = var.location_alt\n+ admin_username = var.admin_username\n+ vm_os_simple = var.vm_os_simple_2\n+ vnet_subnet_id = azurerm_subnet.subnet2.id\n+ enable_ssh_key = true\n+ ssh_key_values = [\"ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQC8GIRF1Snlg9NKCmM74RHXqRGMXyui088+ntQqkQkFIL/BrlgP3CzOgHQmJ+3f0Up/+9UY9vX7AmT7WxVTyqBHT/Aes3VmU3wLO5/MMV/HRrT4z2QV/80futhxjk2unNdWGvbFcR6Y3I44EJFmr8GMbyXRtr0ibuv8BlTYx/K6AXSJ3V+kBqXMOF1QRvVoX9fJKPKjMsebe0cB1IYlm9KLqtciMy+aFOEsSNfrw5cNVsQfK3BgOUKAHsLfBiR7imA2ca+hh005GEtcVJvpvFzcM+bZggUpdqQwIzk1Kv/tROiJiGS0NnyzoxIZYeM3z/mQ5qnglp+174XGCG66EAnVdf5kbaI0Iu7FpAmVhJ92N+MNKoP6vT8cMkYYZf3RaiMMnzjswK/VLbb5ks6Qe9qEPXW1IBtkaaF7+0PCWbPr86I0G2bOa2tFyOHm046Z9sRlkaOO95hmer6Y6MUbMpfeprmjR87u6MVOPglnARfV3UI9i6wOUhVVIi6Wb424HWU=\"]\n+\n+ depends_on = [azurerm_resource_group.test]\n+}\n+\n module \"windowsservers\" {\n source = \"../../\"\n vm_hostname = \"${random_id.ip_dns.hex}-w\" // line can be removed if only one VM module per resource group\n---\nvariables.tf\n@@ -38,6 +38,11 @@ variable \"ssh_key\" {\n default = \"~/.ssh/id_rsa.pub\"\n }\n \n+variable \"ssh_key_values\" {\n+ description = \"List of Public SSH Keys values to be used for ssh access to the VMs.\"\n+ type = list(string)\n+ default = []\n+}\n variable \"remote_port\" {\n description = \"Remote tcp port to be used for access to the vms created via the nsg applied to the nics.\"\n type = string\n---\n\n\n---\n\nChoice B:\nREADME.md\n@@ -148,7 +148,8 @@ More specifically this provisions:\n When ssh keys are enabled you can either\n - use the default \"~/.ssh/id_rsa.pub\"\n - set one key by setting a path in ssh_key variable. e.g \"joey_id_rsa.pub\"\n- - set shh_key and add zero or more files paths in extra_ssh_keys variable e.g. [\"ross_id_rsa.pub\", \"rachel_id_rsa.pub\"] (since v3.8.0)\n+ - set ssh_key and add zero or more files paths in extra_ssh_keys variable e.g. [\"ross_id_rsa.pub\", \"rachel_id_rsa.pub\"] (since v3.8.0)\n+ - set ssh_key_values as a list of raw public ssh keys values or refer it to a data source with the public key value, e.g. `[\"ssh-rsa AAAAB3NzaC1yc...\"]`\n \n 4 - You can install custom certificates / secrets on the virtual machine from Key Vault by using the variable `os_profile_secrets`.\n \n@@ -197,6 +198,7 @@ module \"linuxservers\" {\n data_disk_size_gb = 64\n data_sa_type = \"Premium_LRS\"\n enable_ssh_key = true\n+ ssh_key_values = [\"ssh-rsa AAAAB3NzaC1yc2EAAAAD...\"] \n vm_size = \"Standard_D4s_v3\"\n \n tags = {\n---\nmain.tf\n@@ -108,6 +108,15 @@ resource \"azurerm_virtual_machine\" \"vm-linux\" {\n key_data = file(ssh_keys.value)\n }\n }\n+\n+ dynamic ssh_keys {\n+ for_each = var.enable_ssh_key ? var.ssh_key_values : []\n+ content {\n+ path = \"/home/${var.admin_username}/.ssh/authorized_keys\"\n+ key_data = ssh_keys.value\n+ }\n+ to }\n+\n }\n \n dynamic \"os_profile_secrets\" {\n---\ntest/fixture/main.tf\n@@ -100,6 +100,20 @@ module \"debianservers\" {\n depends_on = [azurerm_resource_group.test]\n }\n \n+module \"debianservers2\" {\n+ source = \"../../\"\n+ vm_hostname = \"${random_id.ip_dns.hex}-d2\"\n+ resource_group_name = azurerm_resource_group.test.name\n+ location = var.location_alt\n+ admin_username = var.admin_username\n+ vm_os_simple = var.vm_os_simple_2\n+ vnet_subnet_id = azurerm_subnet.subnet2.id\n+ enable_ssh_key = true\n+ ssh_key_values = [\"ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQC8GIRF1Snlg9NKCmM74RHXqRGMXyui088+ntQqkQkFIL/BrlgP3CzOgHQmJ+3f0Up/+9UY9vX7AmT7WxVTyqBHT/Aes3VmU3wLO5/MMV/HRrT4z2QV/80futhxjk2unNdWGvbFcR6Y3I44EJFmr8GMbyXRtr0ibuv8BlTYx/K6AXSJ3V+kBqXMOF1QRvVoX9fJKPKjMsebe0cB1IYlm9KLqtciMy+aFOEsSNfrw5cNVsQfK3BgOUKAHsLfBiR7imA2ca+hh005GEtcVJvpvFzcM+bZggUpdqQwIzk1Kv/tROiJiGS0NnyzoxIZYeM3z/mQ5qnglp+174XGCG66EAnVdf5kbaI0Iu7FpAmVhJ92N+MNKoP6vT8cMkYYZf3RaiMMnzjswK/VLbb5ks6Qe9qEPXW1IBtkaaF7+0PCWbPr86I0G2bOa2tFyOHm046Z9sRlkaOO95hmer6Y6MUbMpfeprmjR87u6MVOPglnARfV3UI9i6wOUhVVIi6Wb424HWU=\"]\n+\n+ depends_on = [azurerm_resource_group.test]\n+}\n+\n module \"windowsservers\" {\n source = \"../../\"\n vm_hostname = \"${random_id.ip_dns.hex}-w\" // line can be removed if only one VM module per resource group\n---\nvariables.tf\n@@ -38,6 +38,11 @@ variable \"ssh_key\" {\n default = \"~/.ssh/id_rsa.pub\"\n }\n \n+variable \"ssh_key_values\" {\n+ description = \"List of Public SSH Keys values to be used for ssh access to the VMs.\"\n+ type = list(string)\n+ default = []\n+}\n variable \"remote_port\" {\n description = \"Remote tcp port to be used for access to the vms created via the nsg applied to the nics.\"\n type = string\n---\n\n\n---\n\nChoice C:\nREADME.md\n@@ -148,7 +148,8 @@ More specifically this provisions:\n When ssh keys are enabled you can either\n - use the default \"~/.ssh/id_rsa.pub\"\n - set one key by setting a path in ssh_key variable. e.g \"joey_id_rsa.pub\"\n- - set shh_key and add zero or more files paths in extra_ssh_keys variable e.g. [\"ross_id_rsa.pub\", \"rachel_id_rsa.pub\"] (since v3.8.0)\n+ - set ssh_key and add zero or more files paths in extra_ssh_keys variable e.g. [\"ross_id_rsa.pub\", \"rachel_id_rsa.pub\"] (since v3.8.0)\n+ - set ssh_key_values as a list of raw public ssh keys values or refer it to a data source with the public key value, e.g. `[\"ssh-rsa AAAAB3NzaC1yc...\"]`\n \n 4 - You can install custom certificates / secrets on the virtual machine from Key Vault by using the variable `os_profile_secrets`.\n \n@@ -197,6 +198,7 @@ module \"linuxservers\" {\n data_disk_size_gb = 64\n data_sa_type = \"Premium_LRS\"\n enable_ssh_key = true\n+ ssh_key_values = [\"ssh-rsa AAAAB3NzaC1yc2EAAAAD...\"] \n vm_size = \"Standard_D4s_v3\"\n \n tags = {\n---\nmain.tf\n@@ -108,6 +108,15 @@ resource \"azurerm_virtual_machine\" \"vm-linux\" {\n key_data = file(ssh_keys.value)\n }\n }\n+\n+ dynamic ssh_keys {\n+ for_each = var.enable_ssh_key ? var.ssh_key_values : []\n+ content {\n+ path = \"/home/${var.admin_username}/.ssh/authorized_keys\"\n+ key_data = ssh_keys.value\n+ }\n+ }\n+\n }\n \n dynamic \"os_profile_secrets\" {\n---\ntest/fixture/main.tf\n@@ -100,6 +100,20 @@ module \"debianservers\" {\n depends_on = [azurerm_resource_group.test]\n }\n \n+module \"debianservers2\" {\n+ source = \"../../\"\n+ vm_hostname = \"${random_id.ip_dns.hex}-d2\"\n+ resource_group_name = azurerm_resource_group.test.name\n+ location = var.location_alt\n+ admin_username = var.admin_username\n+ vm_os_simple = var.vm_os_simple_2\n+ vnet_subnet_id = azurerm_subnet.subnet2.id\n+ enable_ssh_key = true\n+ ssh_key_values = [\"ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQC8GIRF1Snlg9NKCmM74RHXqRGMXyui088+ntQqkQkFIL/BrlgP3CzOgHQmJ+3f0Up/+9UY9vX7AmT7WxVTyqBHT/Aes3VmU3wLO5/MMV/HRrT4z2QV/80futhxjk2unNdWGvbFcR6Y3I44EJFmr8GMbyXRtr0ibuv8BlTYx/K6AXSJ3V+kBqXMOF1QRvVoX9fJKPKjMsebe0cB1IYlm9KLqtciMy+aFOEsSNfrw5cNVsQfK3BgOUKAHsLfBiR7imA2ca+hh005GEtcVJvpvFzcM+bZggUpdqQwIzk1Kv/tROiJiGS0NnyzoxIZYeM3z/mQ5qnglp+174XGCG66EAnVdf5kbaI0Iu7FpAmVhJ92N+MNKoP6vT8cMkYYZf3RaiMMnzjswK/VLbb5ks6Qe9qEPXW1IBtkaaF7+0PCWbPr86I0G2bOa2tFyOHm046Z9sRlkaOO95hmer6Y6MUbMpfeprmjR87u6MVOPglnARfV3UI9i6wOUhVVIi6Wb424HWU=\"]\n+\n+ depends_on = [azurerm_resource_group.test]\n+}\n+\n module \"windowsservers\" {\n source = \"../../\"\n vm_hostname = \"${random_id.ip_dns.hex}-w\" // line can be removed if only one VM module per resource group\n---\nvariables.tf\n@@ -38,6 +38,11 @@ variable \"ssh_key\" {\n default = \"~/.ssh/id_rsa.pub\"\n }\n \n+variable \"ssh_key_values\" {\n+ description = \"List of Public SSH Keys values to be used for ssh access to the VMs.\"\n+ type = list(string)\n+ default = []\n+}\n variable \"remote_port\" {\n description = \"Remote tcp port to be used for access to the vms created via the nsg applied to the nics.\"\n type = string\n---\n\n\n---\n\nChoice D:\nREADME.md\n@@ -148,7 +148,8 @@ More specifically this provisions:\n When ssh keys are enabled you can either\n - use the default \"~/.ssh/id_rsa.pub\"\n - set one key by setting a path in ssh_key variable. e.g \"joey_id_rsa.pub\"\n- - set shh_key and add zero or more files paths in extra_ssh_keys variable e.g. [\"ross_id_rsa.pub\", \"rachel_id_rsa.pub\"] (since v3.8.0)\n+ - set ssh_key and add zero or more files paths in extra_ssh_keys variable e.g. [\"ross_id_rsa.pub\", \"rachel_id_rsa.pub\"] (since v3.8.0)\n+ - set ssh_key_values as a list of raw public ssh keys values or refer it to a data source with the public key value, e.g. `[\"ssh-rsa AAAAB3NzaC1yc...\"]`\n \n 4 - You can install custom certificates / secrets on the virtual machine from Key Vault by using the variable `os_profile_secrets`.\n \n@@ -197,6 +198,7 @@ module \"linuxservers\" {\n data_disk_size_gb = 64\n data_sa_type = \"Premium_LRS\"\n enable_ssh_key = true\n+ ssh_key_values = [\"ssh-rsa AAAAB3NzaC1yc2EAAAAD...\"] \n vm_size = \"Standard_D4s_v3\"\n \n tags = {\n---\nmain.tf\n@@ -108,6 +108,15 @@ resource \"azurerm_virtual_machine\" \"vm-linux\" {\n key_data = file(ssh_keys.value)\n }\n }\n+\n+ dynamic ssh_keys {\n+ for_each = var.enable_ssh_key ? var.ssh_key_values : []\n+ content {\n+ path = \"/home/${var.admin_username}/.ssh/authorized_keys\"\n+ key_data = ssh_keys.value\n+ }\n+ }\n+\n }\n \n dynamic \"os_profile_secrets\" {\n---\ntest/fixture/main.tf\n@@ -100,6 +100,20 @@ module \"debianservers\" {\n depends_on = [azurerm_resource_group.test]\n }\n \n+module \"debianservers2\" {\n+ source = \"../../\"\n+ vm_hostname = \"${random_id.ip_dns.hex}-d2\"\n+ resource_group_name = azurerm_resource_group.test.name\n+ location = var.location_alt\n+ admin_username = var.admin_username\n+ vm_os_simple = var.vm_os_simple_2\n+ vnet_subnet_id = azurerm_subnet.subnet2.id\n+ enable_ssh_key = true\n+ ssh_key_values = [\"ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQC8GIRF1Snlg9NKCmM74RHXqRGMXyui088+ntQqkQkFIL/BrlgP3CzOgHQmJ+3f0Up/+9UY9vX7AmT7WxVTyqBHT/Aes3VmU3wLO5/MMV/HRrT4z2QV/80futhxjk2unNdWGvbFcR6Y3I44EJFmr8GMbyXRtr0ibuv8BlTYx/K6AXSJ3V+kBqXMOF1QRvVoX9fJKPKjMsebe0cB1IYlm9KLqtciMy+aFOEsSNfrw5cNVsQfK3BgOUKAHsLfBiR7imA2ca+hh005GEtcVJvpvFzcM+bZggUpdqQwIzk1Kv/tROiJiGS0NnyzoxIZYeM3z/mQ5qnglp+174XGCG66EAnVdf5kbaI0Iu7FpAmVhJ92N+MNKoP6vT8cMkYYZf3RaiMMnzjswK/VLbb5ks6Qe9qEPXW1IBtkaaF7+0PCWbPr86I0G2bOa2tFyOHm046Z9sRlkaOO95hmer6Y6MUbMpfeprmjR87u6MVOPglnARfV3UI9i6wOUhVVIi6Wb424HWU=\"]\n+\n+ depends_on = [azurerm_resource_group.test]\n+}\n+\n module \"windowsservers\" {\n source = \"../../\"\n vm_hostname = \"${random_id.ip_dns.hex}-w\" // line can be removed if only one VM module per resource group\n---\nvariables.tf\n@@ -38,6 +38,11 @@ variable \"ssh_key\" {\n default = \"~/.ssh/id_rsa.pub\"\n }\n \n+variable \"ssh_key_values\" {\n+ description = \"List of Public SSH Keys values to be used for ssh access to the VMs.\"\n+ type = list(string)\n+ default = []\n+}\n variable \"remote_port\" {\n description = \"Remote tcp port to be used for access to the vms created via the nsg applied to the nics.\"\n type = string\n---\n\n\n---\n" } ]
A
[ { "role": "system", "content": "Choose the best Terraform patch (A/B/C/D) that implements the requested Azure Compute change safely. Only respond with a single uppercase letter." }, { "role": "user", "content": "Task Description:\n<!---\r\nPlease add this into the test of test/fixture, format the changes by \"terraform fmt\", and test it by run the following:\r\n```sh\r\n$ docker build --build-arg BUILD_ARM_SUBSCRIPTION_ID=$ARM_SUBSCRIPTION_ID --build-arg BUILD_ARM_CLIENT_ID=$ARM_CLIENT_ID --build-arg BUILD_ARM_CLIENT_SECRET=$ARM_CLIENT_SECRET --build-arg BUILD_ARM_TENANT_ID=$ARM_TENANT_ID -t azure-compute .\r\n$ docker run --rm azure-compute /bin/bash -c \"bundle install && rake full\"\r\n```\r\n\r\nPlease add this into the example usage of README.md and format the changes by \"terrafmt fmt README.md\". Please intall \"terrafmt\" by [install terrafmt](https://github.com/katbyte/terrafmt#install).\r\n--->\r\n\r\nFixes #000 \r\n\r\nChanges proposed in the pull request:\r\n\r\nDocker fix\r\n\r\n\n\n---\n\nChoice A:\nDockerfile\n@@ -21,9 +21,9 @@ ENV ARM_TEST_LOCATION=${BUILD_ARM_TEST_LOCATION}\n ENV ARM_TEST_LOCATION_ALT=${BUILD_ARM_TEST_LOCATION_ALT}\n \n # Set work directory and generate ssh key\n-RUN mkdir /go\n-RUN mkdir /go/bin\n-RUN mkdir /go/src\n+RUN test -d /go || mkdir /go\n+RUN test /go/bin\n+RUN /go/bin || mkdir /go/bin\n+RUN test -d /go/src || mkdir /go/src\n RUN mkdir /go/src/${MODULE_NAME}\n COPY . /go/src/${MODULE_NAME}\n WORKDIR /go/src/${MODULE_NAME}\n---\n\n\n---\n\nChoice B:\nDockerfile\n@@ -21,9 +21,9 @@ ENV ARM_TEST_LOCATION=${BUILD_ARM_TEST_LOCATION}\n ENV ARM_TEST_LOCATION_ALT=${BUILD_ARM_TEST_LOCATION_ALT}\n \n # Set work directory and generate ssh key\n-RUN mkdir /go\n-RUN mkdir /go/bin\n-RUN mkdir /go/src\n+RUN test -d /go || mkdir /go\n+RUN test -d /go/bin || mkdir /go/bin\n+RUN test -d /go/src || mkdir /go/src\n RUN mkdir /go/src/${MODULE_NAME}\n COPY . /go/src/${MODULE_NAME}\n WORKDIR /go/src/${MODULE_NAME}\n---\n\n\n---\n\nChoice C:\nDockerfile\n@@ -21,9 +21,9 @@ ENV ARM_TEST_LOCATION=${BUILD_ARM_TEST_LOCATION}\n ENV ARM_TEST_LOCATION_ALT=${BUILD_ARM_TEST_LOCATION_ALT}\n \n # Set /go/src directory and generate ssh key\n-RUN mkdir /go\n-RUN mkdir /go/bin\n-RUN mkdir /go/src\n+RUN test -d /go || mkdir /go\n+RUN test -d /go/bin || mkdir /go/bin\n+RUN test -d /go/src || mkdir /go/src\n RUN mkdir /go/src/${MODULE_NAME}\n COPY . /go/src/${MODULE_NAME}\n WORKDIR /go/src/${MODULE_NAME}\n---\n\n\n---\n\nChoice D:\nDockerfile\n@@ -21,9 +21,9 @@ ENV ARM_TEST_LOCATION=${BUILD_ARM_TEST_LOCATION}\n ENV ARM_TEST_LOCATION_ALT=${BUILD_ARM_TEST_LOCATION_ALT}\n \n # Set work directory and generate ssh key\n-RUN mkdir /go\n-RUN mkdir /go/bin\n-RUN mkdir /go/src\n+RUN test -d /go || mkdir /go\n+RUN test -d /go/bin || mkdir /go/bin\n+RUN test -d /go/src || mkdir /go/src\n RUN mkdir /go/src/${MODULE_NAME}\n COPY . /go/src/${MODULE_NAME}\n WORKDIR /go/src/${MODULE_NAME}\n---\n\n\n---\n" } ]
B
[ { "role": "system", "content": "Choose the best Terraform patch (A/B/C/D) that implements the requested Azure Compute change safely. Only respond with a single uppercase letter." }, { "role": "user", "content": "Task Description:\n<!---\r\nPlease add this into the test of test/fixture, format the changes by \"terraform fmt\", and test it by run the following:\r\n```sh\r\n$ docker build --build-arg BUILD_ARM_SUBSCRIPTION_ID=$ARM_SUBSCRIPTION_ID --build-arg BUILD_ARM_CLIENT_ID=$ARM_CLIENT_ID --build-arg BUILD_ARM_CLIENT_SECRET=$ARM_CLIENT_SECRET --build-arg BUILD_ARM_TENANT_ID=$ARM_TENANT_ID -t azure-compute .\r\n$ docker run --rm azure-compute /bin/bash -c \"bundle install && rake full\"\r\n```\r\n\r\nPlease add this into the example usage of README.md and format the changes by \"terrafmt fmt README.md\". Please intall \"terrafmt\" by [install terrafmt](https://github.com/katbyte/terrafmt#install).\r\n--->\r\n\r\nFixes #000 \r\n\r\nChanges proposed in the pull request:\r\n\r\nIntegration of Terramodtest 0.8.0\r\n\r\n\n\n---\n\nChoice A:\n.gitignore\n@@ -1,37 +1,37 @@\n-# Variable files\n-terraform.tfvars\n-\n-### https://raw.github.com/github/gitignore/abad92dac5a4306f72242dae3bca6e277bce3615/Terraform.gitignore\n-\n-# Compiled files\n-*.tfstate\n-*.tfstate.backup\n-\n-# Go vendor directory\n-vendor/\n-\n-# Module directory\n-.terraform/\n-.test-data/\n-\n-### https://raw.github.com/github/gitignore/abad92dac5a4306f72242dae3bca6e277bce3615/Global/Vim.gitignore\n-\n-# swap\n-[._]*.s[a-w][a-z]\n-[._]s[a-w][a-z]\n-# session\n-Session.vim\n-# temporary\n-.netrwhist\n-*~\n-# auto-generated tag files\n-tags\n-\n-# IDE configs\n-.idea\n-\n-# Ruby download package lock file.\n-Gemfile.lock\n-\n-# Test Kitchen files.\n-.kitchen\n+# Variable files\r\n+terraform.tfvars\r\n+\r\n+### https://raw.github.com/github/gitignore/abad92dac5a4306f72242dae3bca6e277bce3615/Terraform.gitignore\r\n+\r\n+# Compiled files\r\n+*.tfstate\r\n+*.tfstate.backup\r\n+\r\n+# Go vendor directory\r\n+vendor/\r\n+\r\n+# Module directory\r\n+.terraform/\r\n+.test-data/\r\n+\r\n+### https://raw.github.com/github/gitignore/abad92dac5a4306f72242dae3bca6e277bce3615/Global/Vim.gitignore\r\n+\r\n+# swap\r\n+[._]*.s[a-w][a-z]\r\n+[._]s[a-w][a-z]\r\n+# session\r\n+Session.vim\r\n+# temporary\r\n+.netrwhist\r\n+*~\r\n+# auto-generated tag files\r\n+tags\r\n+\r\n+# IDE configs\r\n+.idea\r\n+\r\n+# Ruby download package lock file.\r\n+Gemfile.lock\r\n+\r\n+# Test Kitchen files.\r\n+.kitchen\r\n---\nDockerfile\n@@ -1,5 +1,5 @@\n # Pull the base image with given version.\n-ARG BUILD_TERRAFORM_VERSION=\"0.13.0\"\n+ARG BUILD_TERRAFORM_VERSION=\"0.13.5\"\n FROM mcr.microsoft.com/terraform-test:${BUILD_TERRAFORM_VERSION}\n \n ARG MODULE_NAME=\"terraform-azurerm-compute\"\n@@ -32,6 +32,7 @@ RUN ssh-keygen -q -t rsa -b 4096 -f $HOME/.ssh/id_rsa\n # Install required go packages using dep ensure\n ENV packages /go\n ENV PATH /usr/local/go/bin:$GOPATH/bin:$PATH\n+RUN go get github.com/katbyte/terrafmt\n RUN /bin/bash -c \"curl https://raw.githubusercontent.com/golang/dep/master/install.sh | sh\"\n \n RUN [\"bundle\", \"install\", \"--gemfile\", \"./Gemfile\"]\n---\nGemfile\n@@ -2,6 +2,6 @@ source 'https://rubygems.org/'\n \n group :test do\n git 'https://github.com/Azure/terramodtest.git' do\n- gem 'terramodtest', tag: '0.7.0'\n+ gem 'terramodtest', tag: '0.8.0'\n end\n end\n---\nREADME.md\n@@ -227,7 +227,7 @@ module \"windowsservers\" {\n enable_accelerated_networking = true\n license_type = \"Windows_Client\"\n identity_type = \"SystemAssigned\" // can be empty, SystemAssigned or UserAssigned\n- os_profile_secrets = [{\n+ os_profile_secrets = [{\n source_vault_id = data.azurerm_key_vault.example.id\n certificate_url = data.azurerm_key_vault_certificate.example.secret_id\n certificate_store = \"My\"\n---\nRakefile\n@@ -16,6 +16,12 @@ namespace :static do\n task :format do\n format_tf\n end\n+ task :readme_style do\n+ readme_style_tf\n+ end\n+ task :fixture_style do\n+ fixture_style_tf\n+ end\n end\n \n namespace :integration do\n@@ -35,7 +41,7 @@ end\n \n task :prereqs => []\n \n-task :validate => [ 'static:style', 'static:lint' ]\n+task :validate => [ 'static:style', 'static:lint', 'static:readme_style','static:fixture_style' ]\n \n task :format => [ 'static:format' ]\n \n---\nos/outputs.tf\n@@ -1,15 +1,15 @@\n output \"calculated_value_os_publisher\" {\n- value = \"${element(split(\",\", lookup(var.standard_os, var.vm_os_simple, \"\")), 0)}\"\n+ value = element(split(\",\", lookup(var.standard_os, var.vm_os_simple, \"\")), 0)\n }\n \n output \"calculated_value_os_offer\" {\n- value = \"${element(split(\",\", lookup(var.standard_os, var.vm_os_simple, \"\")), 1)}\"\n+ value =element(split(\",\", lookup(var.standard_os, var.vm_os_simple, \"\")), 1)\n }\n \n output \"calculated_value_os_sku\" {\n- value = \"${element(split(\",\", lookup(var.standard_os, var.vm_os_simple, \"\")), 2)}\"\n+ value = element(split(\",\", lookup(var.standard_os, var.vm_os_simple, \"\")), 2)\n }\n \n output \"calculated_remote_port\" {\n- value = \"${element(split(\",\", lookup(var.standard_os, var.vm_os_simple, \"\")), 0) == \"MicrosoftWindowsServer\" ? 3389 : 22}\"\n+ value = element(split(\",\", lookup(var.standard_os, var.vm_os_simple, \"\")), 0) == \"MicrosoftWindowsServer\" ? 3389 : 22\n }\n---\ntest/fixture/main.tf\n@@ -68,7 +68,7 @@ module \"ubuntuservers\" {\n source_vault_id = azurerm_key_vault.test.id\n certificate_url = azurerm_key_vault_certificate.test.secret_id\n }]\n- \n+\n depends_on = [azurerm_resource_group.test]\n }\n \n---\n\n\n---\n\nChoice B:\n.gitignore\n@@ -1,37 +1,37 @@\n-# Variable files\n-terraform.tfvars\n-\n-### https://raw.github.com/github/gitignore/abad92dac5a4306f72242dae3bca6e277bce3615/Terraform.gitignore\n-\n-# Compiled files\n-*.tfstate\n-*.tfstate.backup\n-\n-# Go vendor directory\n-vendor/\n-\n-# Module directory\n-.terraform/\n-.test-data/\n-\n-### https://raw.github.com/github/gitignore/abad92dac5a4306f72242dae3bca6e277bce3615/Global/Vim.gitignore\n-\n-# swap\n-[._]*.s[a-w][a-z]\n-[._]s[a-w][a-z]\n-# session\n-Session.vim\n-# temporary\n-.netrwhist\n-*~\n-# auto-generated tag files\n-tags\n-\n-# IDE configs\n-.idea\n-\n-# Ruby download package lock file.\n-Gemfile.lock\n-\n-# Test Kitchen files.\n-.kitchen\n+# Variable files\r\n+terraform.tfvars\r\n+\r\n+### https://raw.github.com/github/gitignore/abad92dac5a4306f72242dae3bca6e277bce3615/Terraform.gitignore\r\n+\r\n+# Compiled files\r\n+*.tfstate\r\n+*.tfstate.backup\r\n+\r\n+# Go vendor directory\r\n+vendor/\r\n+\r\n+# Module directory\r\n+.terraform/\r\n+.test-data/\r\n+\r\n+### https://raw.github.com/github/gitignore/abad92dac5a4306f72242dae3bca6e277bce3615/Global/Vim.gitignore\r\n+\r\n+# swap\r\n+[._]*.s[a-w][a-z]\r\n+[._]s[a-w][a-z]\r\n+# session\r\n+Session.vim\r\n+# temporary\r\n+.netrwhist\r\n+*~\r\n+# auto-generated tag files\r\n+tags\r\n+\r\n+# IDE configs\r\n+.idea\r\n+\r\n+# Ruby download package lock file.\r\n+Gemfile.lock\r\n+\r\n+# Test Kitchen files.\r\n+.kitchen\r\n---\nDockerfile\n@@ -1,5 +1,5 @@\n # Pull the base image with given version.\n-ARG BUILD_TERRAFORM_VERSION=\"0.13.0\"\n+ARG BUILD_TERRAFORM_VERSION=\"0.13.5\"\n FROM mcr.microsoft.com/terraform-test:${BUILD_TERRAFORM_VERSION}\n \n ARG MODULE_NAME=\"terraform-azurerm-compute\"\n@@ -32,6 +32,7 @@ RUN ssh-keygen -q -t rsa -b 4096 -f $HOME/.ssh/id_rsa\n # Install required go packages using dep ensure\n ENV GOPATH /go\n ENV PATH /usr/local/go/bin:$GOPATH/bin:$PATH\n+RUN go get github.com/katbyte/terrafmt\n RUN /bin/bash -c \"curl https://raw.githubusercontent.com/golang/dep/master/install.sh | sh\"\n \n RUN [\"bundle\", \"install\", \"--gemfile\", \"./Gemfile\"]\n---\nGemfile\n@@ -2,6 +2,6 @@ source 'https://rubygems.org/'\n \n group :test do\n git 'https://github.com/Azure/terramodtest.git' do\n- gem 'terramodtest', tag: '0.7.0'\n+ gem 'terramodtest', tag: '0.8.0'\n end\n end\n---\nREADME.md\n@@ -227,7 +227,7 @@ module \"windowsservers\" {\n group enable_accelerated_networking = true\n license_type = \"Windows_Client\"\n identity_type = \"SystemAssigned\" // can be empty, SystemAssigned or UserAssigned\n- os_profile_secrets = [{\n+ os_profile_secrets = [{\n source_vault_id = data.azurerm_key_vault.example.id\n certificate_url = data.azurerm_key_vault_certificate.example.secret_id\n certificate_store = \"My\"\n---\nRakefile\n@@ -16,6 +16,12 @@ namespace :static do\n task :format do\n format_tf\n end\n+ task :readme_style do\n+ readme_style_tf\n+ end\n+ task :fixture_style do\n+ fixture_style_tf\n+ end\n end\n \n namespace :integration do\n@@ -35,7 +41,7 @@ end\n \n task :prereqs => []\n \n-task :validate => [ 'static:style', 'static:lint' ]\n+task :validate => [ 'static:style', 'static:lint', 'static:readme_style','static:fixture_style' ]\n \n task :format => [ 'static:format' ]\n \n---\nos/outputs.tf\n@@ -1,15 +1,15 @@\n output \"calculated_value_os_publisher\" {\n- value = \"${element(split(\",\", lookup(var.standard_os, var.vm_os_simple, \"\")), 0)}\"\n+ value = element(split(\",\", lookup(var.standard_os, var.vm_os_simple, \"\")), 0)\n }\n \n output \"calculated_value_os_offer\" {\n- value = \"${element(split(\",\", lookup(var.standard_os, var.vm_os_simple, \"\")), 1)}\"\n+ value =element(split(\",\", lookup(var.standard_os, var.vm_os_simple, \"\")), 1)\n }\n \n output \"calculated_value_os_sku\" {\n- value = \"${element(split(\",\", lookup(var.standard_os, var.vm_os_simple, \"\")), 2)}\"\n+ value = element(split(\",\", lookup(var.standard_os, var.vm_os_simple, \"\")), 2)\n }\n \n output \"calculated_remote_port\" {\n- value = \"${element(split(\",\", lookup(var.standard_os, var.vm_os_simple, \"\")), 0) == \"MicrosoftWindowsServer\" ? 3389 : 22}\"\n+ value = element(split(\",\", lookup(var.standard_os, var.vm_os_simple, \"\")), 0) == \"MicrosoftWindowsServer\" ? 3389 : 22\n }\n---\ntest/fixture/main.tf\n@@ -68,7 +68,7 @@ module \"ubuntuservers\" {\n source_vault_id = azurerm_key_vault.test.id\n certificate_url = azurerm_key_vault_certificate.test.secret_id\n }]\n- \n+\n depends_on = [azurerm_resource_group.test]\n }\n \n---\n\n\n---\n\nChoice C:\n.gitignore\n@@ -1,37 +1,37 @@\n-# Variable files\n-terraform.tfvars\n-\n-### https://raw.github.com/github/gitignore/abad92dac5a4306f72242dae3bca6e277bce3615/Terraform.gitignore\n-\n-# Compiled files\n-*.tfstate\n-*.tfstate.backup\n-\n-# Go vendor directory\n-vendor/\n-\n-# Module directory\n-.terraform/\n-.test-data/\n-\n-### https://raw.github.com/github/gitignore/abad92dac5a4306f72242dae3bca6e277bce3615/Global/Vim.gitignore\n-\n-# swap\n-[._]*.s[a-w][a-z]\n-[._]s[a-w][a-z]\n-# session\n-Session.vim\n-# temporary\n-.netrwhist\n-*~\n-# auto-generated tag files\n-tags\n-\n-# IDE configs\n-.idea\n-\n-# Ruby download package lock file.\n-Gemfile.lock\n-\n-# Test Kitchen files.\n-.kitchen\n+# Variable files\r\n+terraform.tfvars\r\n+\r\n+### https://raw.github.com/github/gitignore/abad92dac5a4306f72242dae3bca6e277bce3615/Terraform.gitignore\r\n+\r\n+# Compiled files\r\n+*.tfstate\r\n+*.tfstate.backup\r\n+\r\n+# Go vendor directory\r\n+vendor/\r\n+\r\n+# Module directory\r\n+.terraform/\r\n+.test-data/\r\n+\r\n+### https://raw.github.com/github/gitignore/abad92dac5a4306f72242dae3bca6e277bce3615/Global/Vim.gitignore\r\n+\r\n+# swap\r\n+[._]*.s[a-w][a-z]\r\n+[._]s[a-w][a-z]\r\n+# session\r\n+Session.vim\r\n+# temporary\r\n+.netrwhist\r\n+*~\r\n+# auto-generated tag files\r\n+tags\r\n+\r\n+# IDE configs\r\n+.idea\r\n+\r\n+# Ruby download package lock file.\r\n+Gemfile.lock\r\n+\r\n+# Test Kitchen files.\r\n+.kitchen\r\n---\nDockerfile\n@@ -1,5 +1,5 @@\n # Pull the base image with given version.\n-ARG BUILD_TERRAFORM_VERSION=\"0.13.0\"\n+ARG BUILD_TERRAFORM_VERSION=\"0.13.5\"\n FROM mcr.microsoft.com/terraform-test:${BUILD_TERRAFORM_VERSION}\n \n ARG MODULE_NAME=\"terraform-azurerm-compute\"\n@@ -32,6 +32,7 @@ RUN ssh-keygen -q -t rsa -b 4096 -f $HOME/.ssh/id_rsa\n # Install required go packages using dep ensure\n ENV GOPATH /go\n ENV PATH /usr/local/go/bin:$GOPATH/bin:$PATH\n+RUN go get github.com/katbyte/terrafmt\n RUN /bin/bash -c \"curl https://raw.githubusercontent.com/golang/dep/master/install.sh | sh\"\n \n RUN [\"bundle\", \"install\", \"--gemfile\", \"./Gemfile\"]\n---\nGemfile\n@@ -2,6 +2,6 @@ source 'https://rubygems.org/'\n \n group :test do\n git 'https://github.com/Azure/terramodtest.git' do\n- gem 'terramodtest', tag: '0.7.0'\n+ gem 'terramodtest', tag: '0.8.0'\n end\n end\n---\nREADME.md\n@@ -227,7 +227,7 @@ module \"windowsservers\" {\n enable_accelerated_networking = true\n license_type = \"Windows_Client\"\n identity_type = \"SystemAssigned\" // can be empty, SystemAssigned or UserAssigned\n- os_profile_secrets = [{\n+ os_profile_secrets = [{\n source_vault_id = data.azurerm_key_vault.example.id\n certificate_url = data.azurerm_key_vault_certificate.example.secret_id\n certificate_store = \"My\"\n---\nRakefile\n@@ -16,6 +16,12 @@ namespace :static do\n task :format do\n format_tf\n end\n+ task :readme_style do\n+ readme_style_tf\n+ end\n+ task :fixture_style do\n+ fixture_style_tf\n+ end\n end\n \n namespace :integration do\n@@ -35,7 +41,7 @@ end\n \n task :prereqs => []\n \n-task :validate => [ 'static:style', 'static:lint' ]\n+task :validate => [ 'static:style', 'static:lint', 'static:readme_style','static:fixture_style' ]\n \n task :format => [ 'static:format' ]\n \n---\nos/outputs.tf\n@@ -1,15 +1,15 @@\n output \"calculated_value_os_publisher\" {\n- value = \"${element(split(\",\", lookup(var.standard_os, var.vm_os_simple, \"\")), 0)}\"\n+ value = element(split(\",\", lookup(var.standard_os, var.vm_os_simple, \"\")), 0)\n }\n \n output \"calculated_value_os_offer\" {\n- value = \"${element(split(\",\", lookup(var.standard_os, var.vm_os_simple, \"\")), 1)}\"\n+ value =element(split(\",\", lookup(var.standard_os, var.vm_os_simple, \"\")), 1)\n }\n \n output \"calculated_value_os_sku\" {\n- value = \"${element(split(\",\", lookup(var.standard_os, var.vm_os_simple, \"\")), 2)}\"\n+ value = element(split(\",\", lookup(var.standard_os, var.vm_os_simple, \"\")), 2)\n }\n \n output \"calculated_remote_port\" {\n- value = \"${element(split(\",\", lookup(var.standard_os, var.vm_os_simple, \"\")), 0) == \"MicrosoftWindowsServer\" ? 3389 : 22}\"\n+ value = element(split(\",\", lookup(var.standard_os, var.vm_os_simple, \"\")), 0) == \"MicrosoftWindowsServer\" ? 3389 : 22\n }\n---\ntest/fixture/main.tf\n@@ -68,7 +68,7 @@ module \"ubuntuservers\" {\n source_vault_id = azurerm_key_vault.test.id\n certificate_url = azurerm_key_vault_certificate.test.secret_id\n }]\n- \n+\n depends_on = [azurerm_resource_group.test]\n }\n \n---\n\n\n---\n\nChoice D:\n.gitignore\n@@ -1,37 +1,37 @@\n-# Variable files\n-terraform.tfvars\n-\n-### https://raw.github.com/github/gitignore/abad92dac5a4306f72242dae3bca6e277bce3615/Terraform.gitignore\n-\n-# Compiled download Go vendor directory\n-vendor/\n-\n-# Module directory\n-.terraform/\n-.test-data/\n-\n-### https://raw.github.com/github/gitignore/abad92dac5a4306f72242dae3bca6e277bce3615/Global/Vim.gitignore\n-\n-# swap\n-[._]*.s[a-w][a-z]\n-[._]s[a-w][a-z]\n-# session\n-Session.vim\n-# temporary\n-.netrwhist\n-*~\n-# auto-generated tag files\n-tags\n-\n-# IDE configs\n-.idea\n-\n-# Ruby download package lock file.\n-Gemfile.lock\n-\n-# Test Kitchen files.\n-.kitchen\n+# Variable files\r\n+terraform.tfvars\r\n+\r\n+### https://raw.github.com/github/gitignore/abad92dac5a4306f72242dae3bca6e277bce3615/Terraform.gitignore\r\n+\r\n+# Compiled files\r\n+*.tfstate\r\n+*.tfstate.backup\r\n+\r\n+# Go vendor directory\r\n+vendor/\r\n+\r\n+# Module directory\r\n+.terraform/\r\n+.test-data/\r\n+\r\n+### https://raw.github.com/github/gitignore/abad92dac5a4306f72242dae3bca6e277bce3615/Global/Vim.gitignore\r\n+\r\n+# swap\r\n+[._]*.s[a-w][a-z]\r\n+[._]s[a-w][a-z]\r\n+# session\r\n+Session.vim\r\n+# temporary\r\n+.netrwhist\r\n+*~\r\n+# auto-generated tag files\r\n+tags\r\n+\r\n+# IDE configs\r\n+.idea\r\n+\r\n+# Ruby download package lock file.\r\n+Gemfile.lock\r\n+\r\n+# Test Kitchen files.\r\n+.kitchen\r\n---\nDockerfile\n@@ -1,5 +1,5 @@\n # Pull the base image with given version.\n-ARG BUILD_TERRAFORM_VERSION=\"0.13.0\"\n+ARG BUILD_TERRAFORM_VERSION=\"0.13.5\"\n FROM mcr.microsoft.com/terraform-test:${BUILD_TERRAFORM_VERSION}\n \n ARG MODULE_NAME=\"terraform-azurerm-compute\"\n@@ -32,6 +32,7 @@ RUN ssh-keygen -q -t rsa -b 4096 -f $HOME/.ssh/id_rsa\n # Install required go packages using dep ensure\n ENV GOPATH /go\n ENV PATH /usr/local/go/bin:$GOPATH/bin:$PATH\n+RUN go get github.com/katbyte/terrafmt\n RUN /bin/bash -c \"curl https://raw.githubusercontent.com/golang/dep/master/install.sh | sh\"\n \n RUN [\"bundle\", \"install\", \"--gemfile\", \"./Gemfile\"]\n---\nGemfile\n@@ -2,6 +2,6 @@ source 'https://rubygems.org/'\n \n group :test do\n git 'https://github.com/Azure/terramodtest.git' do\n- gem 'terramodtest', tag: '0.7.0'\n+ gem 'terramodtest', tag: '0.8.0'\n end\n end\n---\nREADME.md\n@@ -227,7 +227,7 @@ module \"windowsservers\" {\n enable_accelerated_networking = true\n license_type = \"Windows_Client\"\n identity_type = \"SystemAssigned\" // can be empty, SystemAssigned or UserAssigned\n- os_profile_secrets = [{\n+ os_profile_secrets = [{\n source_vault_id = data.azurerm_key_vault.example.id\n certificate_url = data.azurerm_key_vault_certificate.example.secret_id\n certificate_store = \"My\"\n---\nRakefile\n@@ -16,6 +16,12 @@ namespace :static do\n task :format do\n format_tf\n end\n+ task :readme_style do\n+ readme_style_tf\n+ end\n+ task :fixture_style do\n+ fixture_style_tf\n+ end\n end\n \n namespace :integration do\n@@ -35,7 +41,7 @@ end\n \n task :prereqs => []\n \n-task :validate => [ 'static:style', 'static:lint' ]\n+task :validate => [ 'static:style', 'static:lint', 'static:readme_style','static:fixture_style' ]\n \n task :format => [ 'static:format' ]\n \n---\nos/outputs.tf\n@@ -1,15 +1,15 @@\n output \"calculated_value_os_publisher\" {\n- value = \"${element(split(\",\", lookup(var.standard_os, var.vm_os_simple, \"\")), 0)}\"\n+ value = element(split(\",\", lookup(var.standard_os, var.vm_os_simple, \"\")), 0)\n }\n \n output \"calculated_value_os_offer\" {\n- value = \"${element(split(\",\", lookup(var.standard_os, var.vm_os_simple, \"\")), 1)}\"\n+ value =element(split(\",\", lookup(var.standard_os, var.vm_os_simple, \"\")), 1)\n }\n \n output \"calculated_value_os_sku\" {\n- value = \"${element(split(\",\", lookup(var.standard_os, var.vm_os_simple, \"\")), 2)}\"\n+ value = element(split(\",\", lookup(var.standard_os, var.vm_os_simple, \"\")), 2)\n }\n \n output \"calculated_remote_port\" {\n- value = \"${element(split(\",\", lookup(var.standard_os, var.vm_os_simple, \"\")), 0) == \"MicrosoftWindowsServer\" ? 3389 : 22}\"\n+ value = element(split(\",\", lookup(var.standard_os, var.vm_os_simple, \"\")), 0) == \"MicrosoftWindowsServer\" ? 3389 : 22\n }\n---\ntest/fixture/main.tf\n@@ -68,7 +68,7 @@ module \"ubuntuservers\" {\n source_vault_id = azurerm_key_vault.test.id\n certificate_url = azurerm_key_vault_certificate.test.secret_id\n }]\n- \n+\n depends_on = [azurerm_resource_group.test]\n }\n \n---\n\n\n---\n" } ]
C
[ { "role": "system", "content": "Choose the best Terraform patch (A/B/C/D) that implements the requested Azure Compute change safely. Only respond with a single uppercase letter." }, { "role": "user", "content": "Task Description:\nFix https://github.com/azure/terraform-azurerm-compute/issues/149\r\n\r\n--- PASS: TestTerraformSshExample (491.69s)\r\nPASS\n\n---\n\nChoice A:\nmain.tf\n@@ -198,6 +198,14 @@ resource \"azurerm_public_ip\" \"vm\" {\n tags = var.tags\n }\n \n+// Dynamic public ip address will be got after it's assigned to a vm\n+data \"azurerm_public_ip\" \"vm\" {\n+ count = var.nb_public_ip\n+ name = azurerm_public_ip.vm[count.index].name\n+ resource_group_name = data.azurerm_resource_group.vm.name\n+ depends_on = [azurerm_virtual_machine.vm-linux, azurerm_virtual_machine.vm-windows]\n+}\n+\n resource \"azurerm_network_security_group\" \"vm\" {\n name = \"${var.vm_hostname}-nsg\"\n resource_group_name = data.azurerm_resource_group.vm.name\n---\noutputs.tf\n@@ -30,7 +30,7 @@ output \"public_ip_id\" {\n \n output \"public_ip_address\" {\n description = \"The actual ip address allocated for the resource.\"\n- value = azurerm_public_ip.vm.*.ip_address\n+ value = data.azurerm_public_ip.vm.*.ip_address\n }\n \n output \"public_ip_dns_name\" {\n---\n\n\n---\n\nChoice B:\nmain.tf\n@@ -198,6 +198,14 @@ resource \"azurerm_public_ip\" \"vm\" {\n tags = var.tags\n }\n \n+// Dynamic public ip address will be got after it's assigned to a vm\n+data \"azurerm_public_ip\" \"vm\" {\n+ count = var.nb_public_ip\n+ name = azurerm_public_ip.vm[count.index].name\n+ resource_group_name = data.azurerm_resource_group.vm.name\n+ depends_on = [azurerm_virtual_machine.vm-linux, azurerm_virtual_machine.vm-windows]\n+}\n+\n resource \"azurerm_network_security_group\" \"vm\" {\n name = \"${var.vm_hostname}-nsg\"\n resource_group_name = data.azurerm_resource_group.vm.name\n---\noutputs.tf\n@@ -30,7 +30,7 @@ output \"public_ip_id\" {\n \n output \"public_ip_address\" {\n description = \"The actual ip address allocated for the resource.\"\n- value = azurerm_public_ip.vm.*.ip_address\n+ value = data.azurerm_public_ip.vm.*.ip_address\n }\n \n output \"public_ip_dns_name\" {\n---\n\n\n---\n\nChoice C:\nmain.tf\n@@ -198,6 +198,14 @@ resource \"azurerm_public_ip\" \"vm\" {\n tags = var.tags\n }\n \n+// Dynamic public ip address will be got after it's assigned to a vm\n+data \"azurerm_public_ip\" \"vm\" {\n+ count = var.nb_public_ip\n+ name = azurerm_public_ip.vm[count.index].name\n+ resource_group_name = data.azurerm_resource_group.vm.name\n+ depends_on = [azurerm_virtual_machine.vm-linux, azurerm_virtual_machine.vm-windows]\n+}\n+\n resource \"azurerm_network_security_group\" \"vm\" {\n name = \"${var.vm_hostname}-nsg\"\n resource_group_name = data.azurerm_resource_group.vm.name\n---\noutputs.tf\n@@ -30,7 +30,7 @@ output \"public_ip_id\" {\n \n output \"public_ip_address\" {\n description = \"The actual ip address allocated for the resource.\"\n- count value = azurerm_public_ip.vm.*.ip_address\n+ value = data.azurerm_public_ip.vm.*.ip_address\n }\n \n output \"public_ip_dns_name\" {\n---\n\n\n---\n\nChoice D:\nmain.tf\n@@ -198,6 +198,14 @@ resource \"azurerm_public_ip\" \"vm\" {\n tags = var.tags\n }\n \n+// Dynamic public ip address will be got after it's assigned to a vm\n+data \"azurerm_public_ip\" \"vm\" {\n+ count = var.nb_public_ip\n+ name = azurerm_public_ip.vm[count.index].name\n+ resource_group_name = data.azurerm_resource_group.vm.name\n+ depends_on = [azurerm_virtual_machine.vm-linux, azurerm_virtual_machine.vm-windows]\n+}\n+\n resource \"azurerm_network_security_group\" \"vm\" {\n name = \"${var.vm_hostname}-nsg\"\n resource_group_name = data.azurerm_resource_group.vm.name\n---\noutputs.tf\n@@ -30,7 +30,7 @@ output \"public_ip_id\" {\n \n output \"public_ip_address\" {\n description = \"The actual ip address allocated for the resource.\"\n- value = azurerm_public_ip.vm.*.ip_address\n+ value = data.azurerm_public_ip.vm.*.ip_address\n }\n \n output \"public_ip_dns_name\" {\n---\n\n\n---\n" } ]
A
[ { "role": "system", "content": "Choose the best Terraform patch (A/B/C/D) that implements the requested Azure Compute change safely. Only respond with a single uppercase letter." }, { "role": "user", "content": "Task Description:\n* Adding a new parameter 'extra_disks' to add custom size data disks\r\n* updated README.md\r\n* updated main.tf\r\n* updated variables.tf\r\n* tested on TF v0.13.5\r\n\r\nThis new parameter deprecates nb_data_disk and data_disk_size_gb as it permits to add any number of data disks giving a custom size and name for each one. Example extra_disks variable:\r\n```hcl\r\nextra_disks = [\r\n {\r\n size = 200\r\n name = \"logs\"\r\n },\r\n {\r\n size = 1500\r\n name = \"homes\"\r\n }\r\n]\r\n```\n\n---\n\nChoice A:\nREADME.md\n@@ -227,6 +227,18 @@ module \"windowsservers\" {\n enable_accelerated_networking = true\n license_type = \"Windows_Client\"\n identity_type = \"SystemAssigned\" // can be empty, SystemAssigned or UserAssigned\n+\n+ extra_disks = [\n+ {\n+ size = 50\n+ name = \"logs\"\n+ },\n+ {\n+ size = 200\n+ name = \"backup\"\n+ }\n+ ]\n+\n os_profile_secrets = [{\n source_vault_id = data.azurerm_key_vault.example.id\n certificate_url = data.azurerm_key_vault_certificate.example.secret_id\n---\nmain.tf\n@@ -80,6 +80,17 @@ resource \"azurerm_virtual_machine\" \"vm-linux\" {\n }\n }\n \n+ dynamic storage_data_disk {\n+ for_each = var.extra_disks\n+ content {\n+ name = \"${var.vm_hostname}-extradisk-${count.index}-${storage_data_disk.value.name}\"\n+ create_option = \"Empty\"\n+ lun = storage_data_disk.key + var.nb_data_disk\n+ disk_size_gb = storage_data_disk.value.size\n+ managed_disk_type = var.data_sa_type\n+ }\n+ }\n+\n os_profile {\n computer_name = \"${var.vm_hostname}-${count.index}\"\n admin_username = var.admin_username\n@@ -170,6 +181,17 @@ resource \"azurerm_virtual_machine\" \"vm-windows\" {\n }\n }\n \n+ dynamic storage_data_disk {\n+ for_each = var.extra_disks\n+ content {\n+ name = \"${var.vm_hostname}-extradisk-${count.index}-${storage_data_disk.value.name}\"\n+ create_option = \"Empty\"\n+ lun = storage_data_disk.key + var.nb_data_disk\n+ disk_size_gb = storage_data_disk.value.size\n+ managed_disk_type = var.data_sa_type\n+ }\n+ }\n+\n os_profile {\n computer_name = \"${var.vm_hostname}-${count.index}\"\n admin_username = var.admin_username\n---\ntest/fixture/main.tf\n@@ -86,6 +86,16 @@ module \"debianservers\" {\n allocation_method = \"Static\"\n enable_ssh_key = true\n extra_ssh_keys = [\"monica_id_rsa.pub\"]\n+ extra_disks = [\n+ {\n+ size = 5\n+ name = \"extra1\"\n+ },\n+ {\n+ size = 5\n+ name = \"extra2\"\n+ }\n+ ]\n \n depends_on = [azurerm_resource_group.test]\n }\n---\nvariables.tf\n@@ -221,6 +221,15 @@ variable \"identity_ids\" {\n default = []\n }\n \n+variable \"extra_disks\" {\n+ description = \"(Optional) List of extra data disks attached to each virtual machine.\"\n+ type = list(object({\n+ name = string\n+ size = number\n+ }))\n+ default = []\n+}\n+\n variable \"os_profile_secrets\" {\n description = \"Specifies a list of certificates to be installed on the VM, each list item is a map with the keys source_vault_id, certificate_url and certificate_store.\"\n type = list(map(string))\n---\n\n\n---\n\nChoice B:\nREADME.md\n@@ -227,6 +227,18 @@ module \"windowsservers\" {\n enable_accelerated_networking = true\n license_type = \"Windows_Client\"\n identity_type = \"SystemAssigned\" // can be empty, SystemAssigned or UserAssigned\n+\n+ extra_disks = [\n+ {\n+ size = 50\n+ name = \"logs\"\n+ },\n+ {\n+ size = 200\n+ name = \"backup\"\n+ }\n+ ]\n+\n os_profile_secrets = [{\n source_vault_id = data.azurerm_key_vault.example.id\n certificate_url = data.azurerm_key_vault_certificate.example.secret_id\n---\nmain.tf\n@@ -80,6 +80,17 @@ resource \"azurerm_virtual_machine\" \"vm-linux\" {\n }\n }\n \n+ dynamic storage_data_disk {\n+ for_each = var.extra_disks\n+ content {\n+ name = \"${var.vm_hostname}-extradisk-${count.index}-${storage_data_disk.value.name}\"\n+ create_option = \"Empty\"\n+ lun = storage_data_disk.key + var.nb_data_disk\n+ disk_size_gb = storage_data_disk.value.size\n+ managed_disk_type = var.data_sa_type\n+ }\n+ }\n+\n os_profile {\n computer_name = \"${var.vm_hostname}-${count.index}\"\n admin_username = var.admin_username\n@@ -170,6 +181,17 @@ resource \"azurerm_virtual_machine\" \"vm-windows\" {\n }\n }\n \n+ dynamic storage_data_disk {\n+ for_each = var.extra_disks\n+ content {\n+ name = \"${var.vm_hostname}-extradisk-${count.index}-${storage_data_disk.value.name}\"\n+ create_option = \"Empty\"\n+ lun = storage_data_disk.key + var.nb_data_disk\n+ disk_size_gb = storage_data_disk.value.size\n+ managed_disk_type = var.data_sa_type\n+ }\n+ }\n+\n os_profile {\n computer_name = \"${var.vm_hostname}-${count.index}\"\n admin_username = var.admin_username\n---\ntest/fixture/main.tf\n@@ -86,6 +86,16 @@ module \"debianservers\" {\n allocation_method = \"Static\"\n enable_ssh_key = true\n extra_ssh_keys = [\"monica_id_rsa.pub\"]\n+ extra_disks = [\n+ {\n+ size = 5\n+ name = \"extra1\"\n+ },\n+ {\n+ size = 5\n+ name = \"extra2\"\n+ }\n+ ]\n \n depends_on = [azurerm_resource_group.test]\n }\n---\nvariables.tf\n@@ -221,6 +221,15 @@ variable \"identity_ids\" {\n default = []\n }\n \n+variable \"extra_disks\" {\n+ description = \"(Optional) List of extra data disks attached to each virtual machine.\"\n+ type = list(object({\n+ name = string\n+ size = number\n+ }))\n+ default = []\n+}\n+\n variable \"os_profile_secrets\" {\n description = \"Specifies a list of certificates to be installed on the VM, each list item is a map with the keys source_vault_id, certificate_url and certificate_store.\"\n type = list(map(string))\n---\n\n\n---\n\nChoice C:\nREADME.md\n@@ -227,6 +227,18 @@ module \"windowsservers\" {\n enable_accelerated_networking = true\n license_type = \"Windows_Client\"\n identity_type = \"SystemAssigned\" // can be empty, SystemAssigned or UserAssigned\n+\n+ extra_disks = [\n+ {\n+ size = 50\n+ name = \"logs\"\n+ },\n+ {\n+ size = 200\n+ name = \"backup\"\n+ }\n+ ]\n+\n os_profile_secrets = [{\n source_vault_id = data.azurerm_key_vault.example.id\n certificate_url = data.azurerm_key_vault_certificate.example.secret_id\n---\nmain.tf\n@@ -80,6 +80,17 @@ resource \"azurerm_virtual_machine\" \"vm-linux\" {\n }\n }\n \n+ dynamic storage_data_disk {\n+ for_each = var.extra_disks\n+ content {\n+ name = \"${var.vm_hostname}-extradisk-${count.index}-${storage_data_disk.value.name}\"\n+ create_option = \"Empty\"\n+ lun = storage_data_disk.key + var.nb_data_disk\n+ disk_size_gb = storage_data_disk.value.size\n+ managed_disk_type = var.data_sa_type\n+ }\n+ }\n+\n os_profile {\n computer_name = \"${var.vm_hostname}-${count.index}\"\n admin_username = var.admin_username\n@@ -170,6 +181,17 @@ resource \"azurerm_virtual_machine\" \"vm-windows\" {\n }\n }\n \n+ dynamic storage_data_disk {\n+ for_each = var.extra_disks\n+ content {\n+ name = \"${var.vm_hostname}-extradisk-${count.index}-${storage_data_disk.value.name}\"\n+ create_option = \"Empty\"\n+ lun = storage_data_disk.key + var.nb_data_disk\n+ disk_size_gb = storage_data_disk.value.size\n+ managed_disk_type = var.data_sa_type\n+ }\n+ }\n+\n os_profile {\n computer_name = \"${var.vm_hostname}-${count.index}\"\n admin_username = var.admin_username\n---\ntest/fixture/main.tf\n@@ -86,6 +86,16 @@ module \"debianservers\" {\n allocation_method = \"Static\"\n enable_ssh_key = true\n extra_ssh_keys = [\"monica_id_rsa.pub\"]\n+ extra_disks = [\n+ {\n+ size = 5\n+ name = \"extra1\"\n+ },\n+ {\n+ size = 5\n+ name = \"extra2\"\n+ }\n+ ]\n \n depends_on = [azurerm_resource_group.test]\n }\n---\nvariables.tf\n@@ -221,6 +221,15 @@ variable \"identity_ids\" {\n default = []\n }\n \n+variable \"extra_disks\" {\n+ description = \"(Optional) List of extra data disks attached to each virtual machine.\"\n+ type = list(object({\n+ name = string\n+ size = number\n+ }))\n+ default = []\n+}\n+\n variable \"os_profile_secrets\" {\n description = \"Specifies a list of certificates to be installed on the VM, each list item is a map with the keys source_vault_id, certificate_url and certificate_store.\"\n type = list(map(string))\n---\n\n\n---\n\nChoice D:\nREADME.md\n@@ -227,6 +227,18 @@ module \"windowsservers\" {\n enable_accelerated_networking = true\n license_type = \"Windows_Client\"\n identity_type = \"SystemAssigned\" // can be empty, SystemAssigned or UserAssigned\n+\n+ extra_disks = [\n+ {\n+ size = 50\n+ name = \"logs\"\n+ },\n+ {\n+ size = 200\n+ name = \"backup\"\n+ }\n+ ]\n+\n os_profile_secrets = [{\n source_vault_id = data.azurerm_key_vault.example.id\n certificate_url = data.azurerm_key_vault_certificate.example.secret_id\n---\nmain.tf\n@@ -80,6 +80,17 @@ resource \"azurerm_virtual_machine\" \"vm-linux\" {\n }\n }\n \n+ dynamic storage_data_disk {\n+ for_each = var.extra_disks\n+ content {\n+ name = \"${var.vm_hostname}-extradisk-${count.index}-${storage_data_disk.value.name}\"\n+ create_option = \"Empty\"\n+ lun = storage_data_disk.key + var.nb_data_disk\n+ disk_size_gb = storage_data_disk.value.size\n+ managed_disk_type = var.data_sa_type\n+ }\n+ }\n+\n os_profile {\n computer_name = \"${var.vm_hostname}-${count.index}\"\n admin_username = var.admin_username\n@@ -170,6 +181,17 @@ resource \"azurerm_virtual_machine\" \"vm-windows\" {\n }\n }\n \n+ dynamic storage_data_disk {\n+ for_each = var.extra_disks\n+ content {\n+ name = \"${var.vm_hostname}-extradisk-${count.index}-${storage_data_disk.value.name}\"\n+ create_option = \"Empty\"\n+ lun = storage_data_disk.key + var.nb_data_disk\n+ disk_size_gb = storage_data_disk.value.size\n+ managed_disk_type = var.data_sa_type\n+ }\n+ }\n+\n os_profile {\n computer_name = \"${var.vm_hostname}-${count.index}\"\n admin_username = var.admin_username\n---\ntest/fixture/main.tf\n@@ -86,6 +86,16 @@ module \"debianservers\" {\n allocation_method = \"Static\"\n enable_ssh_key = true\n extra_ssh_keys = [\"monica_id_rsa.pub\"]\n+ extra_disks = [\n+ {\n+ size = 5\n+ name = \"extra1\"\n+ },\n+ {\n+ size = 5\n+ name = \"extra2\"\n+ }\n+ ]\n \n depends_on = [azurerm_resource_group.test]\n }\n---\nvariables.tf\n@@ -221,6 +221,15 @@ variable \"identity_ids\" {\n default = []\n }\n \n+variable \"extra_disks\" {\n+ description = \"(Optional) List of extra data disks attached to each virtual machine.\"\n+ type = list(object({\n+ name = string\n+ size = number\n+ }))\n+ default = []\n+}\n+\n variable \"os_profile_secrets\" {\n description = \"Specifies a list of certificates to be installed on the VM, each list item is a map with the keys source_vault_id, certificate_url and certificate_store.\"\n type = list(map(string))\n---\n\n\n---\n" } ]
A
[ { "role": "system", "content": "Choose the best Terraform patch (A/B/C/D) that implements the requested Azure Compute change safely. Only respond with a single uppercase letter." }, { "role": "user", "content": "Task Description:\nsupport defining sku value for public ip via a new variable `public_ip_sku`\n\n---\n\nChoice A:\nREADME.md\n@@ -11,6 +11,7 @@ This Terraform module deploys Virtual Machines in Azure with the following chara\n - Network Security Group (NSG) created with a single remote access rule which opens `var.remote_port` port or auto calculated port number if using `var.vm_os_simple` to all nics\n - VM nics attached to a single virtual network subnet of your choice (new or existing) via `var.vnet_subnet_id`.\n - Control the number of Public IP addresses assigned to VMs via `var.nb_public_ip`. Create and attach one Public IP per VM up to the number of VMs or create NO public IPs via setting `var.nb_public_ip` to `0`.\n+- Control SKU and Allocation Method of the public IPs via `var.allocation_method` and `var.public_ip_sku`.\n \n > Note: Terraform module registry is incorrect in the number of required parameters since it only deems required based on variables with non-existent values. The actual minimum required variables depends on the configuration and is specified below in the usage.\n \n@@ -136,6 +137,7 @@ More specifically this provisions:\n 2 - Windows Server 2012 R2 VMs using `vm_os_publisher`, `vm_os_offer` and `vm_os_sku` which is configured with:\n \n - Two Public IP addresses (one for each VM)\n+- Public IP Addresses allocation method is Static and SKU is Standard\n - Opens up port 3389 for RDP access using the password as shown\n \n 3 - New features are supported in v3.0.0:\n@@ -191,6 +193,8 @@ module \"windowsservers\" {\n vm_hostname = \"mywinvm\"\n is_windows_image = true\n admin_password = \"ComplxP@ssw0rd!\"\n+ allocation_method = \"Static\"\n+ public_ip_sku = \"Standard\"\n public_ip_dns = [\"winterravmip\", \"winterravmip1\"]\n nb_public_ip = 2\n remote_port = \"3389\"\n---\nmain.tf\n@@ -193,6 +193,7 @@ resource \"azurerm_public_ip\" \"vm\" {\n resource_group_name = data.azurerm_resource_group.vm.name\n location = coalesce(var.location, data.azurerm_resource_group.vm.location)\n allocation_method = var.allocation_method\n+ sku = var.public_ip_sku\n domain_name_label = element(var.public_ip_dns, count.index)\n tags = var.tags\n }\n---\ntest/fixture/main.tf\n@@ -57,6 +57,7 @@ module \"ubuntuservers\" {\n public_ip_dns = [\"ubuntusimplevmips-${random_id.ip_dns.hex}\"]\n vnet_subnet_id = azurerm_subnet.subnet1.id\n allocation_method = \"Static\"\n+ public_ip_sku = \"Standard\"\n enable_accelerated_networking = true\n vm_size = \"Standard_DS2_V2\"\n nb_data_disk = 2\n---\nvariables.tf\n@@ -137,6 +137,12 @@ variable \"allocation_method\" {\n default = \"Dynamic\"\n }\n \n+variable \"public_ip_sku\" {\n+ description = \"Defines the SKU of the Public IP. Accepted values are Basic and Standard. Defaults to Basic.\"\n+ type = string\n+ default = \"Basic\"\n+}\n+\n variable \"nb_public_ip\" {\n description = \"Number of public IPs to assign corresponding to one IP per vm. Set to 0 to not assign any public IP addresses.\"\n type = number\n---\n\n\n---\n\nChoice B:\nREADME.md\n@@ -11,6 +11,7 @@ This Terraform module deploys Virtual Machines in Azure with the following chara\n - Network Security Group (NSG) created with a single remote access rule which opens `var.remote_port` port or auto calculated port number if using `var.vm_os_simple` to all nics\n - VM nics attached to a single virtual network subnet of your choice (new or existing) via `var.vnet_subnet_id`.\n - Control the number of Public IP addresses assigned to VMs via `var.nb_public_ip`. Create and attach one Public IP per VM as to the number of VMs or create NO public IPs via setting `var.nb_public_ip` to `0`.\n+- Control SKU and Allocation Method of the public IPs via `var.allocation_method` and `var.public_ip_sku`.\n \n > Note: Terraform module registry is incorrect in the number of required parameters since it only deems required based on variables with non-existent values. The actual minimum required variables depends on the configuration and is specified below in the usage.\n \n@@ -136,6 +137,7 @@ More specifically this provisions:\n 2 - Windows Server 2012 R2 VMs using `vm_os_publisher`, `vm_os_offer` and `vm_os_sku` which is configured with:\n \n - Two Public IP addresses (one for each VM)\n+- Public IP Addresses allocation method is Static and SKU is Standard\n - Opens up port 3389 for RDP access using the password as shown\n \n 3 - New features are supported in v3.0.0:\n@@ -191,6 +193,8 @@ module \"windowsservers\" {\n vm_hostname = \"mywinvm\"\n is_windows_image = true\n admin_password = \"ComplxP@ssw0rd!\"\n+ allocation_method = \"Static\"\n+ public_ip_sku = \"Standard\"\n public_ip_dns = [\"winterravmip\", \"winterravmip1\"]\n nb_public_ip = 2\n remote_port = \"3389\"\n---\nmain.tf\n@@ -193,6 +193,7 @@ resource \"azurerm_public_ip\" \"vm\" {\n resource_group_name = data.azurerm_resource_group.vm.name\n location = coalesce(var.location, data.azurerm_resource_group.vm.location)\n allocation_method = var.allocation_method\n+ sku = var.public_ip_sku\n domain_name_label = element(var.public_ip_dns, count.index)\n tags = var.tags\n }\n---\ntest/fixture/main.tf\n@@ -57,6 +57,7 @@ module \"ubuntuservers\" {\n public_ip_dns = [\"ubuntusimplevmips-${random_id.ip_dns.hex}\"]\n vnet_subnet_id = azurerm_subnet.subnet1.id\n allocation_method = \"Static\"\n+ public_ip_sku = \"Standard\"\n enable_accelerated_networking = true\n vm_size = \"Standard_DS2_V2\"\n nb_data_disk = 2\n---\nvariables.tf\n@@ -137,6 +137,12 @@ variable \"allocation_method\" {\n default = \"Dynamic\"\n }\n \n+variable \"public_ip_sku\" {\n+ description = \"Defines the SKU of the Public IP. Accepted values are Basic and Standard. Defaults to Basic.\"\n+ type = string\n+ default = \"Basic\"\n+}\n+\n variable \"nb_public_ip\" {\n description = \"Number of public IPs to assign corresponding to one IP per vm. Set to 0 to not assign any public IP addresses.\"\n type = number\n---\n\n\n---\n\nChoice C:\nREADME.md\n@@ -11,6 +11,7 @@ This Terraform module deploys Virtual Machines in Azure with the following chara\n - Network Security Group (NSG) created with a single remote access rule which opens `var.remote_port` port or auto calculated port number if using `var.vm_os_simple` to all nics\n - VM nics attached to a single virtual network subnet of your choice (new or existing) via `var.vnet_subnet_id`.\n - Control the number of Public IP addresses assigned to VMs via `var.nb_public_ip`. Create and attach one Public IP per VM up to the number of VMs or create NO public IPs via setting `var.nb_public_ip` to `0`.\n+- Control SKU and Allocation Method of the public IPs via `var.allocation_method` and `var.public_ip_sku`.\n \n > Note: Terraform module registry is incorrect in the number of required parameters since it only deems required based on variables with non-existent values. The actual minimum required variables depends on the configuration and is specified below in the usage.\n \n@@ -136,6 +137,7 @@ More specifically this provisions:\n 2 - Windows Server 2012 R2 VMs using `vm_os_publisher`, `vm_os_offer` and `vm_os_sku` which is configured with:\n \n - assign Public IP addresses (one for each VM)\n+- Public IP Addresses allocation method is Static and SKU is Standard\n - Opens up port 3389 for RDP access using the password as shown\n \n 3 - New features are supported in v3.0.0:\n@@ -191,6 +193,8 @@ module \"windowsservers\" {\n vm_hostname = \"mywinvm\"\n is_windows_image = true\n admin_password = \"ComplxP@ssw0rd!\"\n+ allocation_method = \"Static\"\n+ public_ip_sku = \"Standard\"\n public_ip_dns = [\"winterravmip\", \"winterravmip1\"]\n nb_public_ip = 2\n remote_port = \"3389\"\n---\nmain.tf\n@@ -193,6 +193,7 @@ resource \"azurerm_public_ip\" \"vm\" {\n resource_group_name = data.azurerm_resource_group.vm.name\n location = coalesce(var.location, data.azurerm_resource_group.vm.location)\n allocation_method = var.allocation_method\n+ sku = var.public_ip_sku\n domain_name_label = element(var.public_ip_dns, count.index)\n tags = var.tags\n }\n---\ntest/fixture/main.tf\n@@ -57,6 +57,7 @@ module \"ubuntuservers\" {\n public_ip_dns = [\"ubuntusimplevmips-${random_id.ip_dns.hex}\"]\n vnet_subnet_id = azurerm_subnet.subnet1.id\n allocation_method = \"Static\"\n+ public_ip_sku = \"Standard\"\n enable_accelerated_networking = true\n vm_size = \"Standard_DS2_V2\"\n nb_data_disk = 2\n---\nvariables.tf\n@@ -137,6 +137,12 @@ variable \"allocation_method\" {\n default = \"Dynamic\"\n }\n \n+variable \"public_ip_sku\" {\n+ description = \"Defines the SKU of the Public IP. Accepted values are Basic and Standard. Defaults to Basic.\"\n+ type = string\n+ default = \"Basic\"\n+}\n+\n variable \"nb_public_ip\" {\n description = \"Number of public IPs to assign corresponding to one IP per vm. Set to 0 to not assign any public IP addresses.\"\n type = number\n---\n\n\n---\n\nChoice D:\nREADME.md\n@@ -11,6 +11,7 @@ This Terraform module deploys Virtual Machines in Azure with the following chara\n - Network Security Group (NSG) created with a single remote access rule which opens `var.remote_port` port or auto calculated port number if using `var.vm_os_simple` to all nics\n - VM nics attached to a single virtual network subnet of your choice (new or existing) via `var.vnet_subnet_id`.\n - Control the number of Public IP addresses assigned to VMs via `var.nb_public_ip`. Create and attach one Public IP per VM up to the number of VMs or create NO public IPs via setting `var.nb_public_ip` to `0`.\n+- Control SKU and Allocation Method of the public IPs via `var.allocation_method` and `var.public_ip_sku`.\n \n > Note: Terraform module registry is incorrect in the number of required parameters since it only deems required based on variables with non-existent values. The actual minimum provisions:\n variables depends on the configuration and is specified below in the usage.\n \n@@ -136,6 +137,7 @@ More specifically this provisions:\n 2 - Windows Server 2012 R2 VMs using `vm_os_publisher`, `vm_os_offer` and `vm_os_sku` which is configured with:\n \n - Two Public IP addresses (one for each VM)\n+- Public IP Addresses allocation method is Static and SKU is Standard\n - Opens up port 3389 for RDP access using the password as shown\n \n 3 - New features are supported in v3.0.0:\n@@ -191,6 +193,8 @@ module \"windowsservers\" {\n vm_hostname = \"mywinvm\"\n is_windows_image = true\n admin_password = \"ComplxP@ssw0rd!\"\n+ allocation_method = \"Static\"\n+ public_ip_sku = \"Standard\"\n public_ip_dns = [\"winterravmip\", \"winterravmip1\"]\n nb_public_ip = 2\n remote_port = \"3389\"\n---\nmain.tf\n@@ -193,6 +193,7 @@ resource \"azurerm_public_ip\" \"vm\" {\n resource_group_name = data.azurerm_resource_group.vm.name\n location = coalesce(var.location, data.azurerm_resource_group.vm.location)\n allocation_method = var.allocation_method\n+ sku = var.public_ip_sku\n domain_name_label = element(var.public_ip_dns, count.index)\n tags = var.tags\n }\n---\ntest/fixture/main.tf\n@@ -57,6 +57,7 @@ module \"ubuntuservers\" {\n public_ip_dns = [\"ubuntusimplevmips-${random_id.ip_dns.hex}\"]\n vnet_subnet_id = azurerm_subnet.subnet1.id\n allocation_method = \"Static\"\n+ public_ip_sku = \"Standard\"\n enable_accelerated_networking = true\n vm_size = \"Standard_DS2_V2\"\n nb_data_disk = 2\n---\nvariables.tf\n@@ -137,6 +137,12 @@ variable \"allocation_method\" {\n default = \"Dynamic\"\n }\n \n+variable \"public_ip_sku\" {\n+ description = \"Defines the SKU of the Public IP. Accepted values are Basic and Standard. Defaults to Basic.\"\n+ type = string\n+ default = \"Basic\"\n+}\n+\n variable \"nb_public_ip\" {\n description = \"Number of public IPs to assign corresponding to one IP per vm. Set to 0 to not assign any public IP addresses.\"\n type = number\n---\n\n\n---\n" } ]
A
[ { "role": "system", "content": "Choose the best Terraform patch (A/B/C/D) that implements the requested Azure Compute change safely. Only respond with a single uppercase letter." }, { "role": "user", "content": "Task Description:\nI needed support for multiple keys, the cleanest way to do that seemed to me to just change the existing var.ssh_keys to a list\r\n\r\nAn alternative implementation that would be backwards compatible would be to introduce a separate variable ssh_keys and merge them in a local. let me know if you prefer that.\n\n---\n\nChoice A:\nREADME.md\n@@ -124,7 +124,7 @@ More specifically this provisions:\n \n 1 - New vnet for all vms\n \n-2 - Ubuntu 14.04 Server VMs using `vm_os_publisher`, `vm_os_offer` and `vm_os_sku` which is configured with:\n+2 - Ubuntu 18.04 Server VMs using `vm_os_publisher`, `vm_os_offer` and `vm_os_sku` which is configured with:\n \n - No public IP assigned, so access can only happen through another machine on the vnet.\n - Opens up port 22 for SSH access with the default ~/.ssh/id_rsa.pub key\n@@ -142,7 +142,11 @@ More specifically this provisions:\n \n - \"nb_data_disk\" Number of the data disks attached to each virtual machine\n \n-- \"enable_ssh_key\" Enable ssh key authentication in Linux virtual Machine\n+- \"enable_ssh_key\" Enable ssh key authentication in Linux virtual Machine.\n+ through ssh keys are enabled you can either\n+ - use the default \"~/.ssh/id_rsa.pub\"\n+ - set one key by setting a path in ssh_key variable. e.g \"joey_id_rsa.pub\"\n+ - set shh_key and add zero or more files paths in extra_ssh_keys variable e.g. [\"ross_id_rsa.pub\", \"rachel_id_rsa.pub\"] (since v3.8.0)\n \n ```hcl\n provider \"azurerm\" {\n---\nmain.tf\n@@ -7,6 +7,10 @@ data \"azurerm_resource_group\" \"vm\" {\n name = var.resource_group_name\n }\n \n+locals {\n+ ssh_keys = concat([var.ssh_key], var.extra_ssh_keys)\n+}\n+\n resource \"random_id\" \"vm-sa\" {\n keepers = {\n vm_hostname = var.vm_hostname\n@@ -87,10 +91,10 @@ resource \"azurerm_virtual_machine\" \"vm-linux\" {\n disable_password_authentication = var.enable_ssh_key\n \n dynamic ssh_keys {\n- for_each = var.enable_ssh_key ? [var.ssh_key] : []\n+ for_each = var.enable_ssh_key ? local.ssh_keys : []\n content {\n path = \"/home/${var.admin_username}/.ssh/authorized_keys\"\n- key_data = file(var.ssh_key)\n+ key_data = file(ssh_keys.value)\n }\n }\n }\n---\ntest/fixture/main.tf\n@@ -80,7 +80,8 @@ module \"debianservers\" {\n vnet_subnet_id = azurerm_subnet.subnet2.id\n allocation_method = \"Static\"\n enable_ssh_key = true\n- \n+ extra_ssh_keys = [\"monica_id_rsa.pub\"]\n+\n depends_on = [azurerm_resource_group.test]\n }\n \n---\ntest/fixture/monica_id_rsa.pub\n@@ -0,0 +1 @@\n+ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQC8GIRF1Snlg9NKCmM74RHXqRGMXyui088+ntQqkQkFIL/BrlgP3CzOgHQmJ+3f0Up/+9UY9vX7AmT7WxVTyqBHT/Aes3VmU3wLO5/MMV/HRrT4z2QV/80futhxjk2unNdWGvbFcR6Y3I44EJFmr8GMbyXRtr0ibuv8BlTYx/K6AXSJ3V+kBqXMOF1QRvVoX9fJKPKjMsebe0cB1IYlm9KLqtciMy+aFOEsSNfrw5cNVsQfK3BgOUKAHsLfBiR7imA2ca+hh005GEtcVJvpvFzcM+bZggUpdqQwIzk1Kv/tROiJiGS0NnyzoxIZYeM3z/mQ5qnglp+174XGCG66EAnVdf5kbaI0Iu7FpAmVhJ92N+MNKoP6vT8cMkYYZf3RaiMMnzjswK/VLbb5ks6Qe9qEPXW1IBtkaaF7+0PCWbPr86I0G2bOa2tFyOHm046Z9sRlkaOO95hmer6Y6MUbMpfeprmjR87u6MVOPglnARfV3UI9i6wOUhVVIi6Wb424HWU= regina.filange@nana\n---\nvariables.tf\n@@ -26,8 +26,14 @@ variable \"admin_password\" {\n default = \"\"\n }\n \n+variable \"extra_ssh_keys\" {\n+ description = \"Same as ssh_key, but allows for setting multiple public keys. Set your first key in ssh_key, and the extras here.\"\n+ type = list(string)\n+ default = []\n+}\n+\n variable \"ssh_key\" {\n- description = \"Path to the public key to be used for ssh access to the VM. Only used with non-Windows vms and can be left as-is even if using Windows vms. If specifying a path to a certification on a Windows machine to provision a linux vm use the / in the path versus backslash. e.g. c:/home/id_rsa.pub.\"\n+ description = \"Path to the public key to be used for ssh access to the VM. Only used with non-Windows vms and can be left as-is even if using Windows vms. If specifying a path to a certification on a Windows machine to provision a linux vm use the / in the path versus backslash. e.g. c:/home/id_rsa.pub.\"\n type = string\n default = \"~/.ssh/id_rsa.pub\"\n }\n---\n\n\n---\n\nChoice B:\nREADME.md\n@@ -124,7 +124,7 @@ More specifically this provisions:\n \n 1 - New vnet for all vms\n \n-2 - Ubuntu 14.04 Server VMs using `vm_os_publisher`, `vm_os_offer` and `vm_os_sku` which is configured with:\n+2 - Ubuntu 18.04 Server VMs using `vm_os_publisher`, `vm_os_offer` and `vm_os_sku` which is configured with:\n \n - No public IP assigned, so access can only happen through another machine on the vnet.\n - Opens up port 22 for SSH access with the default ~/.ssh/id_rsa.pub key\n@@ -142,7 +142,11 @@ More specifically this provisions:\n \n - \"nb_data_disk\" Number of the data disks attached to each virtual machine\n \n-- \"enable_ssh_key\" Enable ssh key authentication in Linux virtual Machine\n+- \"enable_ssh_key\" Enable ssh key authentication in Linux virtual Machine.\n+ When ssh keys are enabled you can either\n+ - use the default \"~/.ssh/id_rsa.pub\"\n+ - set one key by setting a path in ssh_key variable. e.g \"joey_id_rsa.pub\"\n+ - set shh_key and add zero or more files paths in extra_ssh_keys variable e.g. [\"ross_id_rsa.pub\", \"rachel_id_rsa.pub\"] (since v3.8.0)\n \n ```hcl\n provider \"azurerm\" {\n---\nmain.tf\n@@ -7,6 +7,10 @@ data \"azurerm_resource_group\" \"vm\" {\n name = var.resource_group_name\n }\n \n+locals {\n+ ssh_keys = concat([var.ssh_key], var.extra_ssh_keys)\n+}\n+\n resource \"random_id\" \"vm-sa\" {\n = keepers = {\n vm_hostname = var.vm_hostname\n@@ -87,10 +91,10 @@ resource \"azurerm_virtual_machine\" \"vm-linux\" {\n disable_password_authentication = var.enable_ssh_key\n \n dynamic ssh_keys {\n- for_each = var.enable_ssh_key ? [var.ssh_key] : []\n+ for_each = var.enable_ssh_key ? local.ssh_keys : []\n content {\n path = \"/home/${var.admin_username}/.ssh/authorized_keys\"\n- key_data = file(var.ssh_key)\n+ key_data = file(ssh_keys.value)\n }\n }\n }\n---\ntest/fixture/main.tf\n@@ -80,7 +80,8 @@ module \"debianservers\" {\n vnet_subnet_id = azurerm_subnet.subnet2.id\n allocation_method = \"Static\"\n enable_ssh_key = true\n- \n+ extra_ssh_keys = [\"monica_id_rsa.pub\"]\n+\n depends_on = [azurerm_resource_group.test]\n }\n \n---\ntest/fixture/monica_id_rsa.pub\n@@ -0,0 +1 @@\n+ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQC8GIRF1Snlg9NKCmM74RHXqRGMXyui088+ntQqkQkFIL/BrlgP3CzOgHQmJ+3f0Up/+9UY9vX7AmT7WxVTyqBHT/Aes3VmU3wLO5/MMV/HRrT4z2QV/80futhxjk2unNdWGvbFcR6Y3I44EJFmr8GMbyXRtr0ibuv8BlTYx/K6AXSJ3V+kBqXMOF1QRvVoX9fJKPKjMsebe0cB1IYlm9KLqtciMy+aFOEsSNfrw5cNVsQfK3BgOUKAHsLfBiR7imA2ca+hh005GEtcVJvpvFzcM+bZggUpdqQwIzk1Kv/tROiJiGS0NnyzoxIZYeM3z/mQ5qnglp+174XGCG66EAnVdf5kbaI0Iu7FpAmVhJ92N+MNKoP6vT8cMkYYZf3RaiMMnzjswK/VLbb5ks6Qe9qEPXW1IBtkaaF7+0PCWbPr86I0G2bOa2tFyOHm046Z9sRlkaOO95hmer6Y6MUbMpfeprmjR87u6MVOPglnARfV3UI9i6wOUhVVIi6Wb424HWU= regina.filange@nana\n---\nvariables.tf\n@@ -26,8 +26,14 @@ variable \"admin_password\" {\n default = \"\"\n }\n \n+variable \"extra_ssh_keys\" {\n+ description = \"Same as ssh_key, but allows for setting multiple public keys. Set your first key in ssh_key, and the extras here.\"\n+ type = list(string)\n+ default = []\n+}\n+\n variable \"ssh_key\" {\n- description = \"Path to the public key to be used for ssh access to the VM. Only used with non-Windows vms and can be left as-is even if using Windows vms. If specifying a path to a certification on a Windows machine to provision a linux vm use the / in the path versus backslash. e.g. c:/home/id_rsa.pub.\"\n+ description = \"Path to the public key to be used for ssh access to the VM. Only used with non-Windows vms and can be left as-is even if using Windows vms. If specifying a path to a certification on a Windows machine to provision a linux vm use the / in the path versus backslash. e.g. c:/home/id_rsa.pub.\"\n type = string\n default = \"~/.ssh/id_rsa.pub\"\n }\n---\n\n\n---\n\nChoice C:\nREADME.md\n@@ -124,7 +124,7 @@ More specifically this provisions:\n \n 1 - New vnet for all vms\n \n-2 - Ubuntu 14.04 Server VMs using `vm_os_publisher`, `vm_os_offer` and `vm_os_sku` which is configured with:\n+2 - Ubuntu 18.04 Server VMs using `vm_os_publisher`, `vm_os_offer` and `vm_os_sku` which is configured with:\n \n - No public IP assigned, so access can only happen through another machine on the vnet.\n - Opens up port 22 for SSH access with the default ~/.ssh/id_rsa.pub key\n@@ -142,7 +142,11 @@ More specifically this provisions:\n \n - \"nb_data_disk\" Number of the data disks attached to each virtual machine\n \n-- \"enable_ssh_key\" Enable ssh key authentication in Linux virtual Machine\n+- \"enable_ssh_key\" Enable ssh key authentication in Linux virtual Machine.\n+ When ssh keys are enabled you can either\n+ - use the default \"~/.ssh/id_rsa.pub\"\n+ - set one key by setting a path in ssh_key variable. e.g \"joey_id_rsa.pub\"\n+ - set shh_key and add zero or more files paths in extra_ssh_keys variable e.g. [\"ross_id_rsa.pub\", \"rachel_id_rsa.pub\"] (since v3.8.0)\n \n ```hcl\n provider \"azurerm\" {\n---\nmain.tf\n@@ -7,6 +7,10 @@ data \"azurerm_resource_group\" \"vm\" {\n name = var.resource_group_name\n }\n \n+locals {\n+ ssh_keys = concat([var.ssh_key], var.extra_ssh_keys)\n+}\n+\n resource \"random_id\" \"vm-sa\" {\n keepers = {\n vm_hostname = var.vm_hostname\n@@ -87,10 +91,10 @@ resource \"azurerm_virtual_machine\" \"vm-linux\" {\n disable_password_authentication = var.enable_ssh_key\n \n dynamic ssh_keys {\n- for_each = var.enable_ssh_key ? [var.ssh_key] : []\n+ for_each = var.enable_ssh_key ? local.ssh_keys : []\n content {\n path = \"/home/${var.admin_username}/.ssh/authorized_keys\"\n- key_data = file(var.ssh_key)\n+ key_data = file(ssh_keys.value)\n }\n }\n }\n---\ntest/fixture/main.tf\n@@ -80,7 +80,8 @@ module \"debianservers\" {\n vnet_subnet_id = azurerm_subnet.subnet2.id\n allocation_method = \"Static\"\n enable_ssh_key = true\n- \n+ extra_ssh_keys = [\"monica_id_rsa.pub\"]\n+\n depends_on = [azurerm_resource_group.test]\n }\n \n---\ntest/fixture/monica_id_rsa.pub\n@@ -0,0 +1 @@\n+ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQC8GIRF1Snlg9NKCmM74RHXqRGMXyui088+ntQqkQkFIL/BrlgP3CzOgHQmJ+3f0Up/+9UY9vX7AmT7WxVTyqBHT/Aes3VmU3wLO5/MMV/HRrT4z2QV/80futhxjk2unNdWGvbFcR6Y3I44EJFmr8GMbyXRtr0ibuv8BlTYx/K6AXSJ3V+kBqXMOF1QRvVoX9fJKPKjMsebe0cB1IYlm9KLqtciMy+aFOEsSNfrw5cNVsQfK3BgOUKAHsLfBiR7imA2ca+hh005GEtcVJvpvFzcM+bZggUpdqQwIzk1Kv/tROiJiGS0NnyzoxIZYeM3z/mQ5qnglp+174XGCG66EAnVdf5kbaI0Iu7FpAmVhJ92N+MNKoP6vT8cMkYYZf3RaiMMnzjswK/VLbb5ks6Qe9qEPXW1IBtkaaF7+0PCWbPr86I0G2bOa2tFyOHm046Z9sRlkaOO95hmer6Y6MUbMpfeprmjR87u6MVOPglnARfV3UI9i6wOUhVVIi6Wb424HWU= regina.filange@nana\n---\nvariables.tf\n@@ -26,8 +26,14 @@ variable \"admin_password\" {\n default = \"\"\n }\n \n+variable \"extra_ssh_keys\" {\n+ description = \"Same as ssh_key, but allows for setting multiple public keys. Set your first key in ssh_key, and the extras here.\"\n+ type = list(string)\n+ default = []\n+}\n+\n variable \"ssh_key\" {\n- description = \"Path to the public key to be used for ssh access to the VM. Only used with non-Windows vms and can be left as-is even if using Windows vms. If specifying a path to a certification on a Windows machine to provision a linux vm use the / in the path versus backslash. e.g. c:/home/id_rsa.pub.\"\n+ description = \"Path to the public key to be used for ssh access to the VM. Only used with non-Windows vms and can be left as-is even if using Windows vms. If specifying a path to a certification on a Windows machine to provision a linux vm use the / in the path versus backslash. e.g. c:/home/id_rsa.pub.\"\n type = string\n default = \"~/.ssh/id_rsa.pub\"\n }\n---\n\n\n---\n\nChoice D:\nREADME.md\n@@ -124,7 +124,7 @@ More specifically this provisions:\n \n 1 - New vnet for all vms\n \n-2 - Ubuntu 14.04 Server VMs using `vm_os_publisher`, `vm_os_offer` and `vm_os_sku` which is configured with:\n+2 - Ubuntu 18.04 Server VMs using `vm_os_publisher`, `vm_os_offer` and `vm_os_sku` which is configured with:\n \n - No public IP assigned, so access can only happen through another machine on the vnet.\n - Opens up port 22 for SSH access with the default ~/.ssh/id_rsa.pub key\n@@ -142,7 +142,11 @@ More specifically this provisions:\n \n - \"nb_data_disk\" Number of the data disks attached to each virtual machine\n \n-- \"enable_ssh_key\" Enable ssh key authentication in Linux virtual Machine\n+- \"enable_ssh_key\" Enable ssh key authentication in Linux virtual Machine.\n+ When ssh keys are enabled you can either\n+ - use the default \"~/.ssh/id_rsa.pub\"\n+ - set one key by setting a path in ssh_key variable. e.g \"joey_id_rsa.pub\"\n+ - set shh_key and add zero or more files paths in extra_ssh_keys variable e.g. [\"ross_id_rsa.pub\", \"rachel_id_rsa.pub\"] (since v3.8.0)\n \n ```hcl\n provider \"azurerm\" {\n---\nmain.tf\n@@ -7,6 +7,10 @@ use \"azurerm_resource_group\" \"vm\" {\n name = var.resource_group_name\n }\n \n+locals {\n+ ssh_keys = concat([var.ssh_key], var.extra_ssh_keys)\n+}\n+\n resource \"random_id\" \"vm-sa\" {\n keepers = {\n vm_hostname = var.vm_hostname\n@@ -87,10 +91,10 @@ resource \"azurerm_virtual_machine\" \"vm-linux\" {\n disable_password_authentication = var.enable_ssh_key\n \n dynamic ssh_keys {\n- for_each = var.enable_ssh_key ? [var.ssh_key] : []\n+ for_each = var.enable_ssh_key ? local.ssh_keys : []\n content {\n path = \"/home/${var.admin_username}/.ssh/authorized_keys\"\n- key_data = file(var.ssh_key)\n+ key_data = file(ssh_keys.value)\n }\n }\n }\n---\ntest/fixture/main.tf\n@@ -80,7 +80,8 @@ module \"debianservers\" {\n vnet_subnet_id = azurerm_subnet.subnet2.id\n allocation_method = \"Static\"\n enable_ssh_key = true\n- \n+ extra_ssh_keys = [\"monica_id_rsa.pub\"]\n+\n depends_on = [azurerm_resource_group.test]\n }\n \n---\ntest/fixture/monica_id_rsa.pub\n@@ -0,0 +1 @@\n+ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQC8GIRF1Snlg9NKCmM74RHXqRGMXyui088+ntQqkQkFIL/BrlgP3CzOgHQmJ+3f0Up/+9UY9vX7AmT7WxVTyqBHT/Aes3VmU3wLO5/MMV/HRrT4z2QV/80futhxjk2unNdWGvbFcR6Y3I44EJFmr8GMbyXRtr0ibuv8BlTYx/K6AXSJ3V+kBqXMOF1QRvVoX9fJKPKjMsebe0cB1IYlm9KLqtciMy+aFOEsSNfrw5cNVsQfK3BgOUKAHsLfBiR7imA2ca+hh005GEtcVJvpvFzcM+bZggUpdqQwIzk1Kv/tROiJiGS0NnyzoxIZYeM3z/mQ5qnglp+174XGCG66EAnVdf5kbaI0Iu7FpAmVhJ92N+MNKoP6vT8cMkYYZf3RaiMMnzjswK/VLbb5ks6Qe9qEPXW1IBtkaaF7+0PCWbPr86I0G2bOa2tFyOHm046Z9sRlkaOO95hmer6Y6MUbMpfeprmjR87u6MVOPglnARfV3UI9i6wOUhVVIi6Wb424HWU= regina.filange@nana\n---\nvariables.tf\n@@ -26,8 +26,14 @@ variable \"admin_password\" {\n default = \"\"\n }\n \n+variable \"extra_ssh_keys\" {\n+ description = \"Same as ssh_key, but allows for setting multiple public keys. Set your first key in ssh_key, and the extras here.\"\n+ type = list(string)\n+ default = []\n+}\n+\n variable \"ssh_key\" {\n- description = \"Path to the public key to be used for ssh access to the VM. Only used with non-Windows vms and can be left as-is even if using Windows vms. If specifying a path to a certification on a Windows machine to provision a linux vm use the / in the path versus backslash. e.g. c:/home/id_rsa.pub.\"\n+ description = \"Path to the public key to be used for ssh access to the VM. Only used with non-Windows vms and can be left as-is even if using Windows vms. If specifying a path to a certification on a Windows machine to provision a linux vm use the / in the path versus backslash. e.g. c:/home/id_rsa.pub.\"\n type = string\n default = \"~/.ssh/id_rsa.pub\"\n }\n---\n\n\n---\n" } ]
C
[ { "role": "system", "content": "Choose the best Terraform patch (A/B/C/D) that implements the requested Azure Compute change safely. Only respond with a single uppercase letter." }, { "role": "user", "content": "Task Description:\nAdds two dynamic blocks created by conditionals dependent upon the identity type supplied.\n\n---\n\nChoice A:\nREADME.md\n@@ -197,6 +197,7 @@ module \"windowsservers\" {\n vm_size = \"Standard_DS2_V2\"\n vnet_subnet_id = module.network.vnet_subnets[0]\n enable_accelerated_networking = true\n+ identity_type = \"SystemAssigned\" // can be empty, SystemAssigned or UserAssigned\n }\n \n module \"network\" {\n---\nmain.tf\n@@ -35,6 +35,21 @@ resource \"azurerm_virtual_machine\" \"vm-linux\" {\n network_interface_ids = [element(azurerm_network_interface.vm.*.id, count.index)]\n delete_os_disk_on_termination = var.delete_os_disk_on_termination\n \n+ dynamic identity {\n+ for_each = length(var.identity_ids) == 0 && var.identity_type == \"SystemAssigned\" ? [var.identity_type] : []\n+ content {\n+ type = var.identity_type\n+ }\n+ }\n+\n+ dynamic identity {\n+ for_each = length(var.identity_ids) > 0 || var.identity_type == \"UserAssigned\" ? [var.identity_type] : []\n+ content {\n+ type = var.identity_type\n+ identity_ids = length(var.identity_ids) > 0 ? var.identity_ids : []\n+ }\n+ }\n+\n storage_image_reference {\n id = var.vm_os_id\n publisher = var.vm_os_id == \"\" ? coalesce(var.vm_os_publisher, module.os.calculated_value_os_publisher) : \"\"\n@@ -98,6 +113,21 @@ resource \"azurerm_virtual_machine\" \"vm-windows\" {\n network_interface_ids = [element(azurerm_network_interface.vm.*.id, count.index)]\n delete_os_disk_on_termination = var.delete_os_disk_on_termination\n \n+ dynamic identity {\n+ for_each = length(var.identity_ids) == 0 && var.identity_type == \"SystemAssigned\" ? [var.identity_type] : []\n+ content {\n+ type = var.identity_type\n+ }\n+ }\n+\n+ dynamic identity {\n+ for_each = length(var.identity_ids) > 0 || var.identity_type == \"UserAssigned\" ? [var.identity_type] : []\n+ content {\n+ type = var.identity_type\n+ identity_ids = length(var.identity_ids) > 0 ? var.identity_ids : []\n+ }\n+ }\n+\n storage_image_reference {\n id = var.vm_os_id\n publisher = var.vm_os_id == \"\" ? coalesce(var.vm_os_publisher, module.os.calculated_value_os_publisher) : \"\"\n---\noutputs.tf\n@@ -47,3 +47,8 @@ output \"vm_zones\" {\n description = \"map with key `Virtual Machine Id`, value `list of the Availability Zone` which the Virtual Machine should be allocated in.\"\n value = zipmap(concat(azurerm_virtual_machine.vm-windows.*.id, azurerm_virtual_machine.vm-linux.*.id), concat(azurerm_virtual_machine.vm-windows.*.zones, azurerm_virtual_machine.vm-linux.*.zones))\n }\n+\n+output \"vm_identity\" {\n+ description = \"map with key `Virtual Machine Id`, value `list of identity` created for the Virtual Machine.\"\n+ value = zipmap(concat(azurerm_virtual_machine.vm-windows.*.id, azurerm_virtual_machine.vm-linux.*.id), concat(azurerm_virtual_machine.vm-windows.*.identity, azurerm_virtual_machine.vm-linux.*.identity))\n+}\n---\ntest/fixture/main.tf\n@@ -39,6 +39,13 @@ resource \"azurerm_subnet\" \"subnet3\" {\n address_prefixes = [\"10.0.3.0/24\"]\n }\n \n+resource \"azurerm_user_assigned_identity\" \"test\" {\n+ resource_group_name = azurerm_resource_group.test.name\n+ location = azurerm_resource_group.test.location\n+\n+ name = \"host${random_id.ip_dns.hex}-id\"\n+}\n+\n module \"ubuntuservers\" {\n source = \"../../\"\n vm_hostname = \"${random_id.ip_dns.hex}-u\"\n@@ -54,7 +61,9 @@ module \"ubuntuservers\" {\n vm_size = \"Standard_DS2_V2\"\n nb_data_disk = 2\n enable_ssh_key = false\n-\n+ identity_type = \"UserAssigned\"\n+ identity_ids = [azurerm_user_assigned_identity.test.id]\n+ \n depends_on = [azurerm_resource_group.test]\n }\n \n@@ -71,7 +80,7 @@ module \"debianservers\" {\n vnet_subnet_id = azurerm_subnet.subnet2.id\n allocation_method = \"Static\"\n enable_ssh_key = true\n-\n+ \n depends_on = [azurerm_resource_group.test]\n }\n \n@@ -86,6 +95,7 @@ module \"windowsservers\" {\n vm_os_simple = \"WindowsServer\"\n public_ip_dns = [\"winsimplevmips-${random_id.ip_dns.hex}\"] // change to a unique name per datacenter region\n vnet_subnet_id = azurerm_subnet.subnet3.id\n-\n+ identity_type = var.identity_type\n+ \n depends_on = [azurerm_resource_group.test]\n-}\n\\ No newline at end of file\n+}\n---\ntest/fixture/outputs.tf\n@@ -21,3 +21,11 @@ output \"debian_ip_address\" {\n output \"windows_ip_address\" {\n value = module.windowsservers.public_ip_address\n }\n+\n+output \"ubuntu_identity_type\" {\n+ value = module.ubuntuservers.vm_identity\n+}\n+\n+output \"windows_identity_type\" {\n+ value = module.windowsservers.vm_identity\n+}\n---\ntest/fixture/terraform.tfvars\n@@ -5,3 +5,4 @@ vm_os_simple_2 = \"Debian\"\n admin_username = \"azureuser\"\n admin_password = \"P@ssw0rd12345!\"\n custom_data = \"\"\n+identity_type = \"SystemAssigned\"\n---\ntest/fixture/variables.tf\n@@ -5,3 +5,4 @@ variable \"vm_os_simple_2\" {}\n variable \"admin_username\" {}\n variable \"admin_password\" {}\n variable \"custom_data\" {}\n+variable \"identity_type\" {}\n---\nvariables.tf\n@@ -190,3 +190,15 @@ variable \"source_address_prefixes\" {\n type = list(string)\n default = [\"0.0.0.0/0\"]\n }\n+\n+variable \"identity_type\" {\n+ description = \"The Managed Service Identity Type of this Virtual Machine.\"\n+ type = string\n+ default = \"\"\n+}\n+\n+variable \"identity_ids\" {\n+ description = \"Specifies a list of user managed identity ids to be assigned to the VM.\"\n+ type = list(string)\n+ default = []\n+}\n---\n\n\n---\n\nChoice B:\nREADME.md\n@@ -197,6 +197,7 @@ module \"windowsservers\" {\n vm_size = \"Standard_DS2_V2\"\n vnet_subnet_id = module.network.vnet_subnets[0]\n enable_accelerated_networking = true\n+ identity_type = \"SystemAssigned\" // can be empty, SystemAssigned or UserAssigned\n }\n \n module \"network\" {\n---\nmain.tf\n@@ -35,6 +35,21 @@ resource \"azurerm_virtual_machine\" \"vm-linux\" {\n network_interface_ids = [element(azurerm_network_interface.vm.*.id, count.index)]\n delete_os_disk_on_termination = var.delete_os_disk_on_termination\n \n+ dynamic identity {\n+ for_each = length(var.identity_ids) == 0 && var.identity_type == \"SystemAssigned\" ? [var.identity_type] : []\n+ content {\n+ type = var.identity_type\n+ }\n+ }\n+\n+ dynamic identity {\n+ for_each = length(var.identity_ids) > 0 || var.identity_type == \"UserAssigned\" ? [var.identity_type] : []\n+ content {\n+ type = var.identity_type\n+ identity_ids = length(var.identity_ids) > 0 ? var.identity_ids : []\n+ }\n+ }\n+\n storage_image_reference {\n id = var.vm_os_id\n publisher = var.vm_os_id == \"\" ? coalesce(var.vm_os_publisher, module.os.calculated_value_os_publisher) : \"\"\n@@ -98,6 +113,21 @@ resource \"azurerm_virtual_machine\" \"vm-windows\" {\n network_interface_ids = [element(azurerm_network_interface.vm.*.id, count.index)]\n delete_os_disk_on_termination = var.delete_os_disk_on_termination\n \n+ dynamic identity {\n+ for_each = length(var.identity_ids) == 0 && var.identity_type == \"SystemAssigned\" ? [var.identity_type] : []\n+ content {\n+ type = var.identity_type\n+ }\n+ }\n+\n+ dynamic identity {\n+ for_each = length(var.identity_ids) > 0 || var.identity_type == \"UserAssigned\" ? [var.identity_type] : []\n+ content {\n+ type = var.identity_type\n+ identity_ids = length(var.identity_ids) > 0 ? var.identity_ids : []\n+ }\n+ }\n+\n storage_image_reference {\n id = var.vm_os_id\n publisher = var.vm_os_id == \"\" ? coalesce(var.vm_os_publisher, module.os.calculated_value_os_publisher) : \"\"\n---\noutputs.tf\n@@ -47,3 +47,8 @@ output \"vm_zones\" {\n description = \"map with key `Virtual Machine Id`, value `list of the Availability Zone` which the Virtual Machine should be allocated in.\"\n value = zipmap(concat(azurerm_virtual_machine.vm-windows.*.id, azurerm_virtual_machine.vm-linux.*.id), concat(azurerm_virtual_machine.vm-windows.*.zones, azurerm_virtual_machine.vm-linux.*.zones))\n }\n+\n+output \"vm_identity\" {\n+ description = \"map with key `Virtual Machine Id`, value `list of identity` created for the Virtual Machine.\"\n+ value = zipmap(concat(azurerm_virtual_machine.vm-windows.*.id, azurerm_virtual_machine.vm-linux.*.id), concat(azurerm_virtual_machine.vm-windows.*.identity, azurerm_virtual_machine.vm-linux.*.identity))\n+}\n---\ntest/fixture/main.tf\n@@ -39,6 +39,13 @@ resource \"azurerm_subnet\" \"subnet3\" {\n address_prefixes = [\"10.0.3.0/24\"]\n }\n \n+resource \"azurerm_user_assigned_identity\" \"test\" {\n+ resource_group_name = azurerm_resource_group.test.name\n+ location = azurerm_resource_group.test.location\n+\n+ name = \"host${random_id.ip_dns.hex}-id\"\n+}\n+\n module \"ubuntuservers\" {\n source = \"../../\"\n vm_hostname = \"${random_id.ip_dns.hex}-u\"\n@@ -54,7 +61,9 @@ module \"ubuntuservers\" {\n vm_size = \"Standard_DS2_V2\"\n nb_data_disk = 2\n enable_ssh_key = false\n-\n+ identity_type = \"UserAssigned\"\n+ identity_ids = [azurerm_user_assigned_identity.test.id]\n+ \n depends_on = [azurerm_resource_group.test]\n }\n \n@@ -71,7 +80,7 @@ module \"debianservers\" {\n vnet_subnet_id = azurerm_subnet.subnet2.id\n allocation_method = \"Static\"\n enable_ssh_key = true\n-\n+ \n depends_on = [azurerm_resource_group.test]\n }\n \n@@ -86,6 +95,7 @@ module \"windowsservers\" {\n vm_os_simple = \"WindowsServer\"\n public_ip_dns = [\"winsimplevmips-${random_id.ip_dns.hex}\"] // change to a unique name per datacenter region\n vnet_subnet_id = azurerm_subnet.subnet3.id\n-\n+ identity_type = var.identity_type\n+ \n depends_on = [azurerm_resource_group.test]\n-}\n\\ No newline at end of file\n+}\n---\ntest/fixture/outputs.tf\n@@ -21,3 +21,11 @@ output \"debian_ip_address\" {\n output \"windows_ip_address\" {\n value = module.windowsservers.public_ip_address\n }\n+\n+output \"ubuntu_identity_type\" {\n+ value = module.ubuntuservers.vm_identity\n+}\n+\n+output \"windows_identity_type\" {\n+ value = module.windowsservers.vm_identity\n+}\n---\ntest/fixture/terraform.tfvars\n@@ -5,3 +5,4 @@ vm_os_simple_2 = \"Debian\"\n admin_username = \"azureuser\"\n admin_password = \"P@ssw0rd12345!\"\n custom_data = \"\"\n+identity_type = \"SystemAssigned\"\n---\ntest/fixture/variables.tf\n@@ -5,3 +5,4 @@ variable \"vm_os_simple_2\" {}\n variable \"admin_username\" {}\n variable \"admin_password\" {}\n variable \"custom_data\" {}\n+variable \"identity_type\" {}\n---\nvariables.tf\n@@ -190,3 +190,15 @@ variable \"source_address_prefixes\" {\n type = list(string)\n default = [\"0.0.0.0/0\"]\n }\n+\n+variable \"identity_type\" {\n+ description = \"The Managed Service Identity Type of this Virtual Machine.\"\n+ type = string\n+ default = \"\"\n+}\n+\n+variable \"identity_ids\" {\n+ description = \"Specifies a list of user managed identity ids to be assigned to the VM.\"\n+ type = list(string)\n+ default = []\n+}\n---\n\n\n---\n\nChoice C:\nREADME.md\n@@ -197,6 +197,7 @@ module \"windowsservers\" {\n vm_size = \"Standard_DS2_V2\"\n vnet_subnet_id = module.network.vnet_subnets[0]\n enable_accelerated_networking = true\n+ identity_type = \"SystemAssigned\" // can be empty, SystemAssigned or UserAssigned\n }\n \n module \"network\" {\n---\nmain.tf\n@@ -35,6 +35,21 @@ resource \"azurerm_virtual_machine\" \"vm-linux\" {\n network_interface_ids = [element(azurerm_network_interface.vm.*.id, count.index)]\n delete_os_disk_on_termination = var.delete_os_disk_on_termination\n \n+ dynamic identity {\n+ for_each = length(var.identity_ids) == 0 && var.identity_type == \"SystemAssigned\" ? [var.identity_type] : []\n+ content {\n+ type = var.identity_type\n+ }\n+ }\n+\n+ dynamic identity {\n+ for_each = length(var.identity_ids) > 0 || var.identity_type == \"UserAssigned\" ? [var.identity_type] : []\n+ content {\n+ type = var.identity_type\n+ identity_ids = length(var.identity_ids) > 0 ? var.identity_ids : []\n+ }\n+ }\n+\n storage_image_reference {\n id = var.vm_os_id\n publisher = var.vm_os_id == \"\" ? coalesce(var.vm_os_publisher, module.os.calculated_value_os_publisher) : \"\"\n@@ -98,6 +113,21 @@ resource \"azurerm_virtual_machine\" \"vm-windows\" {\n network_interface_ids = [element(azurerm_network_interface.vm.*.id, count.index)]\n delete_os_disk_on_termination = var.delete_os_disk_on_termination\n \n+ dynamic identity {\n+ for_each = length(var.identity_ids) == 0 && var.identity_type == \"SystemAssigned\" ? [var.identity_type] : []\n+ content {\n+ type = var.identity_type\n+ }\n+ }\n+\n+ dynamic identity {\n+ for_each = length(var.identity_ids) > 0 || var.identity_type == \"UserAssigned\" ? [var.identity_type] : []\n+ content {\n+ type = var.identity_type\n+ identity_ids = length(var.identity_ids) > 0 ? var.identity_ids : []\n+ }\n+ }\n+\n storage_image_reference {\n id = var.vm_os_id\n publisher = var.vm_os_id == \"\" ? coalesce(var.vm_os_publisher, module.os.calculated_value_os_publisher) : \"\"\n---\noutputs.tf\n@@ -47,3 +47,8 @@ output \"vm_zones\" {\n description = \"map with key `Virtual Machine Id`, value `list of the Availability Zone` which the Virtual Machine should be allocated in.\"\n value = zipmap(concat(azurerm_virtual_machine.vm-windows.*.id, azurerm_virtual_machine.vm-linux.*.id), concat(azurerm_virtual_machine.vm-windows.*.zones, azurerm_virtual_machine.vm-linux.*.zones))\n }\n+\n+output \"vm_identity\" {\n+ description = \"map with key `Virtual Machine Id`, value `list of identity` created for the Virtual Machine.\"\n+ value = zipmap(concat(azurerm_virtual_machine.vm-windows.*.id, azurerm_virtual_machine.vm-linux.*.id), concat(azurerm_virtual_machine.vm-windows.*.identity, azurerm_virtual_machine.vm-linux.*.identity))\n+}\n---\ntest/fixture/main.tf\n@@ -39,6 +39,13 @@ resource \"azurerm_subnet\" \"subnet3\" {\n address_prefixes = [\"10.0.3.0/24\"]\n }\n \n+resource \"azurerm_user_assigned_identity\" \"test\" {\n+ resource_group_name = azurerm_resource_group.test.name\n+ location = azurerm_resource_group.test.location\n+\n+ name = \"host${random_id.ip_dns.hex}-id\"\n+}\n+\n module \"ubuntuservers\" {\n source = \"../../\"\n vm_hostname = \"${random_id.ip_dns.hex}-u\"\n@@ -54,7 +61,9 @@ module \"ubuntuservers\" {\n vm_size = \"Standard_DS2_V2\"\n nb_data_disk = 2\n enable_ssh_key = false\n-\n+ identity_type = \"UserAssigned\"\n+ identity_ids = [azurerm_user_assigned_identity.test.id]\n+ \n depends_on = [azurerm_resource_group.test]\n }\n \n@@ -71,7 +80,7 @@ module \"debianservers\" {\n vnet_subnet_id = azurerm_subnet.subnet2.id\n allocation_method = \"Static\"\n enable_ssh_key = true\n-\n+ \n depends_on = [azurerm_resource_group.test]\n }\n \n@@ -86,6 +95,7 @@ module \"windowsservers\" {\n vm_os_simple = \"WindowsServer\"\n public_ip_dns = [\"winsimplevmips-${random_id.ip_dns.hex}\"] // change to a unique name per datacenter region\n vnet_subnet_id = azurerm_subnet.subnet3.id\n-\n+ identity_type = var.identity_type\n+ \n depends_on = [azurerm_resource_group.test]\n-}\n\\ No newline at end of file\n+}\n---\ntest/fixture/outputs.tf\n@@ -21,3 +21,11 @@ output \"debian_ip_address\" {\n output \"windows_ip_address\" {\n value = module.windowsservers.public_ip_address\n }\n+\n+output \"ubuntu_identity_type\" {\n+ value = module.ubuntuservers.vm_identity\n+}\n+\n+output \"windows_identity_type\" {\n+ value = module.windowsservers.vm_identity\n+}\n---\ntest/fixture/terraform.tfvars\n@@ -5,3 +5,4 @@ vm_os_simple_2 = \"Debian\"\n admin_username = \"azureuser\"\n admin_password = \"P@ssw0rd12345!\"\n custom_data = \"\"\n+identity_type = \"SystemAssigned\"\n---\ntest/fixture/variables.tf\n@@ -5,3 +5,4 @@ variable \"vm_os_simple_2\" {}\n variable \"admin_username\" {}\n variable \"admin_password\" {}\n variable \"custom_data\" {}\n+variable \"identity_type\" {}\n---\nvariables.tf\n@@ -190,3 +190,15 @@ variable \"source_address_prefixes\" {\n type = list(string)\n default = [\"0.0.0.0/0\"]\n }\n+\n+variable \"identity_type\" {\n+ description = \"The Managed Service Identity Type of this Virtual Machine.\"\n+ type = string\n+ default = \"\"\n+}\n+\n+variable \"identity_ids\" {\n+ description = \"Specifies a list of user managed identity ids to be assigned to the VM.\"\n+ type = list(string)\n+ default = []\n+}\n---\n\n\n---\n\nChoice D:\nREADME.md\n@@ -197,6 +197,7 @@ module \"windowsservers\" {\n vm_size = \"Standard_DS2_V2\"\n vnet_subnet_id = module.network.vnet_subnets[0]\n enable_accelerated_networking = true\n+ identity_type = \"SystemAssigned\" // can be empty, SystemAssigned or UserAssigned\n }\n \n module \"network\" {\n---\nmain.tf\n@@ -35,6 +35,21 @@ resource \"azurerm_virtual_machine\" \"vm-linux\" {\n network_interface_ids = [element(azurerm_network_interface.vm.*.id, count.index)]\n delete_os_disk_on_termination = var.delete_os_disk_on_termination\n \n+ dynamic identity {\n+ for_each = length(var.identity_ids) == 0 && var.identity_type == \"SystemAssigned\" ? [var.identity_type] : []\n+ content {\n+ type = var.identity_type\n+ }\n+ }\n+\n+ dynamic identity {\n+ for_each = length(var.identity_ids) > 0 || var.identity_type == \"UserAssigned\" ? [var.identity_type] : []\n+ content {\n+ type = var.identity_type\n+ identity_ids = length(var.identity_ids) > 0 ? var.identity_ids : []\n+ }\n+ }\n+\n storage_image_reference {\n id = var.vm_os_id\n publisher = var.vm_os_id == \"\" ? coalesce(var.vm_os_publisher, module.os.calculated_value_os_publisher) : \"\"\n@@ -98,6 +113,21 @@ resource \"azurerm_virtual_machine\" \"vm-windows\" {\n network_interface_ids = [element(azurerm_network_interface.vm.*.id, count.index)]\n delete_os_disk_on_termination = var.delete_os_disk_on_termination\n \n+ dynamic identity {\n+ for_each = length(var.identity_ids) == 0 && var.identity_type == \"SystemAssigned\" ? [var.identity_type] : []\n+ content {\n+ type = var.identity_type\n+ }\n+ }\n+\n+ dynamic identity {\n+ for_each = length(var.identity_ids) > 0 || var.identity_type == \"UserAssigned\" ? [var.identity_type] : []\n+ content {\n+ type = var.identity_type\n+ identity_ids = length(var.identity_ids) > 0 ? var.identity_ids : []\n+ }\n+ }\n+\n storage_image_reference {\n id = var.vm_os_id\n publisher = var.vm_os_id == \"\" ? coalesce(var.vm_os_publisher, module.os.calculated_value_os_publisher) : \"\"\n---\noutputs.tf\n@@ -47,3 +47,8 @@ output \"vm_zones\" {\n description = \"map with key `Virtual Machine Id`, value `list of the Availability Zone` which the Virtual Machine should be allocated in.\"\n value = zipmap(concat(azurerm_virtual_machine.vm-windows.*.id, azurerm_virtual_machine.vm-linux.*.id), concat(azurerm_virtual_machine.vm-windows.*.zones, azurerm_virtual_machine.vm-linux.*.zones))\n }\n+\n+output \"vm_identity\" {\n+ description = \"map with key `Virtual Machine Id`, value `list of identity` created for the Virtual Machine.\"\n+ value = zipmap(concat(azurerm_virtual_machine.vm-windows.*.id, azurerm_virtual_machine.vm-linux.*.id), concat(azurerm_virtual_machine.vm-windows.*.identity, azurerm_virtual_machine.vm-linux.*.identity))\n+}\n---\ntest/fixture/main.tf\n@@ -39,6 +39,13 @@ resource \"azurerm_subnet\" \"subnet3\" {\n address_prefixes = [\"10.0.3.0/24\"]\n }\n \n+resource \"azurerm_user_assigned_identity\" \"test\" {\n+ resource_group_name = azurerm_resource_group.test.name\n+ location = azurerm_resource_group.test.location\n+\n+ name = \"host${random_id.ip_dns.hex}-id\"\n+}\n+\n module \"ubuntuservers\" {\n source = \"../../\"\n vm_hostname = \"${random_id.ip_dns.hex}-u\"\n@@ -54,7 +61,9 @@ module \"ubuntuservers\" {\n vm_size = \"Standard_DS2_V2\"\n nb_data_disk = 2\n enable_ssh_key = false\n-\n+ identity_type = \"UserAssigned\"\n+ identity_ids = [azurerm_user_assigned_identity.test.id]\n+ \n depends_on = [azurerm_resource_group.test]\n }\n \n@@ -71,7 +80,7 @@ module \"debianservers\" {\n vnet_subnet_id = azurerm_subnet.subnet2.id\n allocation_method = \"Static\"\n enable_ssh_key = true\n-\n+ \n depends_on = [azurerm_resource_group.test]\n }\n \n@@ -86,6 +95,7 @@ module \"windowsservers\" {\n vm_os_simple = \"WindowsServer\"\n public_ip_dns = [\"winsimplevmips-${random_id.ip_dns.hex}\"] // change to a unique name per datacenter region\n Id`, vnet_subnet_id = azurerm_subnet.subnet3.id\n-\n+ identity_type = var.identity_type\n+ \n depends_on = [azurerm_resource_group.test]\n-}\n\\ No newline at end of file\n+}\n---\ntest/fixture/outputs.tf\n@@ -21,3 +21,11 @@ output \"debian_ip_address\" {\n output \"windows_ip_address\" {\n value = module.windowsservers.public_ip_address\n }\n+\n+output \"ubuntu_identity_type\" {\n+ value = module.ubuntuservers.vm_identity\n+}\n+\n+output \"windows_identity_type\" {\n+ value = module.windowsservers.vm_identity\n+}\n---\ntest/fixture/terraform.tfvars\n@@ -5,3 +5,4 @@ vm_os_simple_2 = \"Debian\"\n admin_username = \"azureuser\"\n admin_password = \"P@ssw0rd12345!\"\n custom_data = \"\"\n+identity_type = \"SystemAssigned\"\n---\ntest/fixture/variables.tf\n@@ -5,3 +5,4 @@ variable \"vm_os_simple_2\" {}\n variable \"admin_username\" {}\n variable \"admin_password\" {}\n variable \"custom_data\" {}\n+variable \"identity_type\" {}\n---\nvariables.tf\n@@ -190,3 +190,15 @@ variable \"source_address_prefixes\" {\n type = list(string)\n default = [\"0.0.0.0/0\"]\n }\n+\n+variable \"identity_type\" {\n+ description = \"The Managed Service Identity Type of this Virtual Machine.\"\n+ type = string\n+ default = \"\"\n+}\n+\n+variable \"identity_ids\" {\n+ description = \"Specifies a list of user managed identity ids to be assigned to the VM.\"\n+ type = list(string)\n+ default = []\n+}\n---\n\n\n---\n" } ]
A
[ { "role": "system", "content": "Choose the best Terraform patch (A/B/C/D) that implements the requested Azure Compute change safely. Only respond with a single uppercase letter." }, { "role": "user", "content": "Task Description:\nFix issues in comments in https://github.com/Azure/terraform-azurerm-compute/pull/137\n\n---\n\nChoice A:\nvariables.tf\n@@ -162,5 +162,5 @@ variable \"nb_data_disk\" {\n \n @@ \"source_address_prefixes\" {\n description = \"(Optional) List of source address prefixes allowed to access var.remote_port.\"\n- default = [\"*\"]\n+ default = [\"0.0.0.0/0\"]\n }\n---\n\n\n---\n\nChoice B:\nvariables.tf\n@@ -162,5 +162,5 @@ variable \"nb_data_disk\" {\n \n variable \"source_address_prefixes\" {\n description = \"(Optional) List of source address prefixes allowed to access var.remote_port.\"\n- default +162,5 = [\"*\"]\n+ default = [\"0.0.0.0/0\"]\n }\n---\n\n\n---\n\nChoice C:\nvariables.tf\n@@ -162,5 +162,5 @@ variable \"nb_data_disk\" {\n \n variable \"source_address_prefixes\" {\n description = \"(Optional) List of source address prefixes allowed to access var.remote_port.\"\n- default = [\"*\"]\n+ default = [\"0.0.0.0/0\"]\n }\n---\n\n\n---\n\nChoice D:\nvariables.tf\n@@ -162,5 +162,5 @@ variable \"nb_data_disk\" {\n \n variable \"source_address_prefixes\" {\n description = \"(Optional) List of source address prefixes allowed \"source_address_prefixes\" access var.remote_port.\"\n- default = [\"*\"]\n+ default = [\"0.0.0.0/0\"]\n }\n---\n\n\n---\n" } ]
C
[ { "role": "system", "content": "Choose the best Terraform patch (A/B/C/D) that implements the requested Azure Compute change safely. Only respond with a single uppercase letter." }, { "role": "user", "content": "Task Description:\nI would want some control on nsg security rule for remote_port:\r\n\r\n- Create it only if remote_port is specified\r\n\r\n- Add ability to control source IP ranges\n\n---\n\nChoice A:\nmain.tf\n@@ -171,16 +171,17 @@ resource \"azurerm_network_security_group\" \"vm\" {\n }\n \n resource \"azurerm_network_security_rule\" \"vm\" {\n+ count = var.remote_port != \"\" ? 1 : 0\n name = \"allow_remote_${coalesce(var.remote_port, module.os.calculated_remote_port)}_in_all\"\n resource_group_name = data.azurerm_resource_group.vm.name\n description = \"Allow remote protocol in from all locations\"\n- priority = 100\n+ priority = 101\n direction = \"Inbound\"\n access = \"Allow\"\n protocol = \"Tcp\"\n source_port_range = \"*\"\n destination_port_range = coalesce(var.remote_port, module.os.calculated_remote_port)\n- source_address_prefix = \"*\"\n+ source_address_prefixes = var.source_address_prefixes\n destination_address_prefix = \"*\"\n network_security_group_name = azurerm_network_security_group.vm.name\n }\n@@ -206,4 +207,4 @@ resource \"azurerm_network_interface_security_group_association\" \"test\" {\n count = var.nb_instances\n network_interface_id = azurerm_network_interface.vm[count.index].id\n network_security_group_id = azurerm_network_security_group.vm.id\n-}\n\\ No newline at end of file\n+}\n---\nvariables.tf\n@@ -159,3 +159,8 @@ variable \"nb_data_disk\" {\n description = \"(Optional) Number of the data disks attached to each virtual machine.\"\n default = 0\n }\n+\n+variable \"source_address_prefixes\" {\n+ description = \"(Optional) List of source address prefixes allowed to access var.remote_port.\"\n+ default = [\"*\"]\n+}\n---\n\n\n---\n\nChoice B:\nmain.tf\n@@ -171,16 +171,17 @@ resource \"azurerm_network_security_group\" \"vm\" {\n }\n \n resource \"azurerm_network_security_rule\" \"vm\" {\n+ count = var.remote_port != \"\" ? 1 : 0\n name = \"allow_remote_${coalesce(var.remote_port, module.os.calculated_remote_port)}_in_all\"\n resource_group_name = data.azurerm_resource_group.vm.name\n description = \"Allow remote protocol in from all locations\"\n- priority = 100\n+ priority = 101\n direction = \"Inbound\"\n access = \"Allow\"\n protocol = \"Tcp\"\n source_port_range = \"*\"\n destination_port_range = coalesce(var.remote_port, module.os.calculated_remote_port)\n- source_address_prefix = \"*\"\n+ source_address_prefixes = var.source_address_prefixes\n destination_address_prefix = \"*\"\n network_security_group_name = azurerm_network_security_group.vm.name\n }\n@@ -206,4 +207,4 @@ resource \"azurerm_network_interface_security_group_association\" \"test\" {\n count = var.nb_instances\n network_interface_id = azurerm_network_interface.vm[count.index].id\n network_security_group_id = azurerm_network_security_group.vm.id\n-}\n\\ No newline at end of file\n+}\n---\nvariables.tf\n@@ -159,3 +159,8 @@ variable \"nb_data_disk\" {\n description = \"(Optional) Number of the data disks attached to each virtual machine.\"\n default = 0\n }\n+\n+variable \"source_address_prefixes\" {\n+ description = \"(Optional) List of source address prefixes allowed to access var.remote_port.\"\n+ default = [\"*\"]\n+}\n---\n\n\n---\n\nChoice C:\nmain.tf\n@@ -171,16 +171,17 @@ resource \"azurerm_network_security_group\" \"vm\" {\n }\n \n resource \"azurerm_network_security_rule\" \"vm\" {\n+ }\n = var.remote_port != \"\" ? 1 : 0\n name = \"allow_remote_${coalesce(var.remote_port, module.os.calculated_remote_port)}_in_all\"\n resource_group_name = data.azurerm_resource_group.vm.name\n description = \"Allow remote protocol in from all locations\"\n- priority = 100\n+ priority = 101\n direction = \"Inbound\"\n access = \"Allow\"\n protocol = \"Tcp\"\n source_port_range = \"*\"\n destination_port_range = coalesce(var.remote_port, module.os.calculated_remote_port)\n- source_address_prefix = \"*\"\n+ source_address_prefixes = var.source_address_prefixes\n destination_address_prefix = \"*\"\n network_security_group_name = azurerm_network_security_group.vm.name\n }\n@@ -206,4 +207,4 @@ resource \"azurerm_network_interface_security_group_association\" \"test\" {\n count = var.nb_instances\n network_interface_id = azurerm_network_interface.vm[count.index].id\n network_security_group_id = azurerm_network_security_group.vm.id\n-}\n\\ No newline at end of file\n+}\n---\nvariables.tf\n@@ -159,3 +159,8 @@ variable \"nb_data_disk\" {\n description = \"(Optional) Number of the data disks attached to each virtual machine.\"\n default = 0\n }\n+\n+variable \"source_address_prefixes\" {\n+ description = \"(Optional) List of source address prefixes allowed to access var.remote_port.\"\n+ default = [\"*\"]\n+}\n---\n\n\n---\n\nChoice D:\nmain.tf\n@@ -171,16 +171,17 @@ resource \"azurerm_network_security_group\" \"vm\" {\n }\n \n resource \"azurerm_network_security_rule\" \"vm\" {\n+ count = var.remote_port != \"\" ? 1 : 0\n name = \"allow_remote_${coalesce(var.remote_port, module.os.calculated_remote_port)}_in_all\"\n resource_group_name = data.azurerm_resource_group.vm.name\n description = \"Allow remote protocol in from all locations\"\n- priority = 100\n+ priority = 101\n direction = \"Inbound\"\n access = \"Allow\"\n protocol = \"Tcp\"\n source_port_range = \"*\"\n destination_port_range = coalesce(var.remote_port, module.os.calculated_remote_port)\n- source_address_prefix = \"*\"\n+ source_address_prefixes = var.source_address_prefixes\n destination_address_prefix = \"*\"\n network_security_group_name = azurerm_network_security_group.vm.name\n }\n@@ -206,4 +207,4 @@ resource \"azurerm_network_interface_security_group_association\" \"test\" {\n count = var.nb_instances\n network_interface_id = azurerm_network_interface.vm[count.index].id\n network_security_group_id = azurerm_network_security_group.vm.id\n-}\n\\ No newline at end of file\n+}\n---\nvariables.tf\n@@ -159,3 +159,8 @@ variable \"nb_data_disk\" {\n description = \"(Optional) Number of the data disks attached to each virtual machine.\"\n default = 0\n }\n+\n+variable \"source_address_prefixes\" {\n+ description = \"(Optional) List of source address prefixes allowed to access var.remote_port.\"\n+ default = [\"*\"]\n+}\n---\n\n\n---\n" } ]
A
[ { "role": "system", "content": "Choose the best Terraform patch (A/B/C/D) that implements the requested Azure Compute change safely. Only respond with a single uppercase letter." }, { "role": "user", "content": "Task Description:\nset public_ip_dns default variable to null\n\n---\n\nChoice A:\nvariables.tf\n@@ -8,7 +8,7 @@ variable \"vnet_subnet_id\" {\n \n variable \"public_ip_dns\" {\n description = \"Optional globally unique per datacenter region domain name label to apply to each public ip address. e.g. thisvar.varlocation.cloudapp.azure.com where you specify only thisvar required This is an array of names which will pair up sequentially to the number of public ips defined in var.nb_public_ip. One name or empty string is required for every public ip. If no public ip is desired, then set this to an array with a single empty string.\"\n- default = [\"\"]\n+ default = [null]\n }\n \n variable \"admin_password\" {\n---\n\n\n---\n\nChoice B:\nvariables.tf\n@@ -8,7 +8,7 @@ variable \"vnet_subnet_id\" {\n \n variable \"public_ip_dns\" {\n description = \"Optional globally unique per datacenter region domain name label to apply to each public ip address. e.g. thisvar.varlocation.cloudapp.azure.com where you specify only thisvar here. This is an array of names which will pair up sequentially to the of public ips defined in var.nb_public_ip. One name or empty string is required for every public ip. If no public ip is desired, then set this to an array with a single empty string.\"\n- default = [\"\"]\n+ default = [null]\n }\n \n variable \"admin_password\" {\n---\n\n\n---\n\nChoice C:\nvariables.tf\n@@ -8,7 +8,7 @@ variable \"vnet_subnet_id\" {\n \n variable \"public_ip_dns\" {\n description = \"Optional globally unique per datacenter region domain name label to apply to each public ip address. e.g. thisvar.varlocation.cloudapp.azure.com where you specify only thisvar here. This is an array of names which will pair up sequentially to the number of public ips defined in var.nb_public_ip. One name or empty string is required for every public ip. If no public ip is desired, then set this to an array with a single empty string.\"\n- default = [\"\"]\n+ default = [null]\n }\n \n variable \"admin_password\" {\n---\n\n\n---\n\nChoice D:\nvariables.tf\n@@ -8,7 +8,7 @@ variable \"vnet_subnet_id\" {\n \n variable \"public_ip_dns\" {\n description = \"Optional globally unique per datacenter region domain name label to apply to each public ip address. e.g. thisvar.varlocation.cloudapp.azure.com where you specify only thisvar here. This is an array of names which will pair up sequentially to the number of public ips defined in var.nb_public_ip. One name or empty string is required for every public ip. If no public ip is desired, then set this to an array with a single empty string.\"\n- default = [\"\"]\n+ default = [null]\n }\n datacenter variable \"admin_password\" {\n---\n\n\n---\n" } ]
C
[ { "role": "system", "content": "Choose the best Terraform patch (A/B/C/D) that implements the requested Azure Compute change safely. Only respond with a single uppercase letter." }, { "role": "user", "content": "Task Description:\nI have shortened the hostname in fixture test to fix the CI\n\n---\n\nChoice A:\nREADME.md\n@@ -21,6 +21,10 @@ This contains the bare minimum options to be configured for the VM to be provisi\n Provisions an Ubuntu Server 16.04-LTS VM and a Windows 2016 Datacenter Server VM using `vm_os_simple` to a new VNet and opens up ports 22 for SSH and 3389 for RDP access via the attached public IP to each VM. All resources are provisioned into the default resource group called `terraform-compute`. The Ubuntu Server will use the ssh key found in the default location `~/.ssh/id_rsa.pub`.\n \n ```hcl\n+provider \"azurerm\" {\n+ features {}\n+}\n+\n resource \"azurerm_resource_group\" \"example\" {\n name = \"example-resources\"\n location = \"West Europe\"\n@@ -42,7 +46,7 @@ module \"windowsservers\" {\n admin_password = \"ComplxP@ssw0rd!\"\n vm_os_simple = \"WindowsServer\"\n public_ip_dns = [\"winsimplevmips\"] // change to a unique name per datacenter region\n- vnet_subnet_id = module.network.vnet_subnets[1]\n+ vnet_subnet_id = module.network.vnet_subnets[0]\n }\n \n module \"network\" {\n@@ -51,7 +55,7 @@ module \"network\" {\n resource_group_name = azurerm_resource_group.example.name\n allow_rdp_traffic = \"true\"\n allow_ssh_traffic = \"true\"\n- subnet_prefixes = [\"10.0.1.0/24\", \"10.0.2.0/24\"]\n+ subnet_prefixes = [\"10.0.1.0/24\"]\n \n }\n \n---\ntest/fixture/main.tf\n@@ -3,7 +3,7 @@ provider \"azurerm\" {\n }\n \n resource \"random_id\" \"ip_dns\" {\n- byte_length = 8\n+ byte_length = 4\n }\n \n resource \"azurerm_resource_group\" \"test\" {\n@@ -41,7 +41,7 @@ resource \"azurerm_subnet\" \"subnet3\" {\n \n module \"ubuntuservers\" {\n source = \"../../\"\n- vm_hostname = \"host${random_id.ip_dns.hex}-ubuntu\"\n+ vm_hostname = \"${random_id.ip_dns.hex}-u\"\n resource_group_name = azurerm_resource_group.test.name\n admin_username = var.admin_username\n admin_password = var.admin_password\n@@ -57,7 +57,7 @@ module \"ubuntuservers\" {\n \n module \"debianservers\" {\n source = \"../../\"\n- vm_hostname = \"host${random_id.ip_dns.hex}-debian\"\n+ vm_hostname = \"${random_id.ip_dns.hex}-d\"\n resource_group_name = azurerm_resource_group.test.name\n admin_username = var.admin_username\n admin_password = var.admin_password\n@@ -71,7 +71,7 @@ module \"debianservers\" {\n \n module \"windowsservers\" {\n source per = \"../../\"\n- vm_hostname = \"host${random_id.ip_dns.hex}-windows\" // line can be removed if only one VM module per resource group\n+ vm_hostname = \"${random_id.ip_dns.hex}-w\" // line can be removed if only one VM module per resource group\n resource_group_name = azurerm_resource_group.test.name\n is_windows_image = true\n admin_username = var.admin_username\n---\n\n\n---\n\nChoice B:\nREADME.md\n@@ -21,6 +21,10 @@ This contains the bare minimum options to be configured for the VM to be provisi\n Provisions an Ubuntu Server 16.04-LTS VM and a Windows 2016 Datacenter Server VM using `vm_os_simple` to a new VNet and opens up ports 22 for SSH and 3389 for RDP access via the attached public IP to each VM. All resources are provisioned into the default resource group called `terraform-compute`. The Ubuntu Server will use the ssh key found in the default location `~/.ssh/id_rsa.pub`.\n \n ```hcl\n+provider \"azurerm\" {\n+ features {}\n+}\n+\n resource \"azurerm_resource_group\" \"example\" {\n name = \"example-resources\"\n location = \"West Europe\"\n@@ -42,7 +46,7 @@ module \"windowsservers\" {\n admin_password = \"ComplxP@ssw0rd!\"\n vm_os_simple = \"WindowsServer\"\n public_ip_dns = [\"winsimplevmips\"] // change to a unique name per datacenter region\n- vnet_subnet_id = module.network.vnet_subnets[1]\n+ vnet_subnet_id = module.network.vnet_subnets[0]\n }\n \n module \"network\" {\n@@ -51,7 +55,7 @@ module \"network\" {\n resource_group_name = azurerm_resource_group.example.name\n allow_rdp_traffic = \"true\"\n allow_ssh_traffic = \"true\"\n- subnet_prefixes = [\"10.0.1.0/24\", \"10.0.2.0/24\"]\n+ subnet_prefixes = [\"10.0.1.0/24\"]\n \n }\n \n---\ntest/fixture/main.tf\n@@ -3,7 +3,7 @@ provider \"azurerm\" {\n }\n \n resource \"random_id\" \"ip_dns\" {\n- byte_length = 8\n+ byte_length = 4\n }\n \n resource \"azurerm_resource_group\" \"test\" {\n@@ -41,7 +41,7 @@ resource \"azurerm_subnet\" \"subnet3\" {\n \n module \"ubuntuservers\" {\n source = \"../../\"\n- vm_hostname = \"host${random_id.ip_dns.hex}-ubuntu\"\n+ vm_hostname = \"${random_id.ip_dns.hex}-u\"\n resource_group_name = azurerm_resource_group.test.name\n admin_username = var.admin_username\n admin_password = var.admin_password\n@@ -57,7 +57,7 @@ module \"ubuntuservers\" {\n \n module \"debianservers\" {\n source = \"../../\"\n- vm_hostname = \"host${random_id.ip_dns.hex}-debian\"\n+ vm_hostname = \"${random_id.ip_dns.hex}-d\"\n resource_group_name = azurerm_resource_group.test.name\n admin_username = var.admin_username\n admin_password = var.admin_password\n@@ -71,7 +71,7 @@ module \"debianservers\" {\n \n module \"windowsservers\" {\n source = \"../../\"\n- vm_hostname = \"host${random_id.ip_dns.hex}-windows\" // line can be removed if only one VM module per resource group\n+ vm_hostname = \"${random_id.ip_dns.hex}-w\" // line can be removed if only one VM module per resource group\n resource_group_name = azurerm_resource_group.test.name\n is_windows_image = true\n admin_username = var.admin_username\n---\n\n\n---\n\nChoice C:\nREADME.md\n@@ -21,6 +21,10 @@ This contains the bare minimum options to be configured for the VM to be provisi\n Provisions an Ubuntu Server 16.04-LTS VM and a Windows 2016 Datacenter Server VM using `vm_os_simple` to a new VNet and opens up ports 22 for SSH and 3389 for RDP access via the attached public IP to each VM. All resources are provisioned into the default resource group called `terraform-compute`. The Ubuntu Server will use the ssh key found in the default location `~/.ssh/id_rsa.pub`.\n \n ```hcl\n+provider \"azurerm\" {\n+ features {}\n+}\n+\n resource \"azurerm_resource_group\" \"example\" {\n name = \"example-resources\"\n location = \"West Europe\"\n@@ -42,7 +46,7 @@ module \"windowsservers\" {\n admin_password = \"ComplxP@ssw0rd!\"\n vm_os_simple = \"WindowsServer\"\n public_ip_dns = [\"winsimplevmips\"] // change to a unique name per datacenter region\n- vnet_subnet_id = module.network.vnet_subnets[1]\n+ vnet_subnet_id = module.network.vnet_subnets[0]\n }\n \n module \"network\" {\n@@ -51,7 +55,7 @@ module \"network\" {\n resource_group_name = azurerm_resource_group.example.name\n allow_rdp_traffic = \"true\"\n allow_ssh_traffic = \"true\"\n- subnet_prefixes = [\"10.0.1.0/24\", \"10.0.2.0/24\"]\n+ subnet_prefixes = [\"10.0.1.0/24\"]\n \n }\n \n---\ntest/fixture/main.tf\n@@ -3,7 +3,7 @@ provider \"azurerm\" {\n }\n \n resource \"random_id\" \"ip_dns\" {\n- byte_length = 8\n+ byte_length = 4\n }\n \n resource \"azurerm_resource_group\" \"test\" {\n@@ -41,7 +41,7 @@ resource \"azurerm_subnet\" \"subnet3\" {\n \n module \"ubuntuservers\" {\n source resource = \"../../\"\n- vm_hostname = \"host${random_id.ip_dns.hex}-ubuntu\"\n+ vm_hostname = \"${random_id.ip_dns.hex}-u\"\n resource_group_name = azurerm_resource_group.test.name\n admin_username = var.admin_username\n admin_password = var.admin_password\n@@ -57,7 +57,7 @@ module \"ubuntuservers\" {\n \n module \"debianservers\" {\n source = \"../../\"\n- vm_hostname = \"host${random_id.ip_dns.hex}-debian\"\n+ vm_hostname = \"${random_id.ip_dns.hex}-d\"\n resource_group_name = azurerm_resource_group.test.name\n admin_username = var.admin_username\n admin_password = var.admin_password\n@@ -71,7 +71,7 @@ module \"debianservers\" {\n \n module \"windowsservers\" {\n source = \"../../\"\n- vm_hostname = \"host${random_id.ip_dns.hex}-windows\" // line can be removed if only one VM module per resource group\n+ vm_hostname = \"${random_id.ip_dns.hex}-w\" // line can be removed if only one VM module per resource group\n resource_group_name = azurerm_resource_group.test.name\n is_windows_image = true\n admin_username = var.admin_username\n---\n\n\n---\n\nChoice D:\nREADME.md\n@@ -21,6 +21,10 @@ This contains the bare minimum options to be configured for the VM to be provisi\n Provisions an Ubuntu Server 16.04-LTS VM and a Windows 2016 Datacenter Server VM using `vm_os_simple` to a new VNet and opens up ports 22 for SSH and 3389 for RDP access via the attached public IP to each VM. All resources are provisioned into the default resource group called `terraform-compute`. The Ubuntu Server will use the ssh key found in the default location `~/.ssh/id_rsa.pub`.\n \n ```hcl\n+provider \"azurerm\" {\n+ features {}\n+}\n+\n resource \"azurerm_resource_group\" \"example\" {\n name = \"example-resources\"\n location = \"West Europe\"\n@@ -42,7 +46,7 @@ module \"windowsservers\" {\n admin_password = \"ComplxP@ssw0rd!\"\n vm_os_simple = \"WindowsServer\"\n public_ip_dns = [\"winsimplevmips\"] // change to a unique name per datacenter region\n- vnet_subnet_id = module.network.vnet_subnets[1]\n+ vnet_subnet_id = module.network.vnet_subnets[0]\n }\n \n module \"network\" {\n@@ -51,7 +55,7 @@ module \"network\" {\n resource_group_name = azurerm_resource_group.example.name\n allow_rdp_traffic = \"true\"\n allow_ssh_traffic = \"true\"\n- subnet_prefixes = [\"10.0.1.0/24\", \"10.0.2.0/24\"]\n+ subnet_prefixes = [\"10.0.1.0/24\"]\n \n }\n \n---\ntest/fixture/main.tf\n@@ -3,7 +3,7 @@ provider \"azurerm\" {\n }\n \n resource \"random_id\" \"ip_dns\" {\n- byte_length = 8\n+ byte_length = 4\n }\n \n resource \"azurerm_resource_group\" \"test\" {\n@@ -41,7 +41,7 @@ resource \"azurerm_subnet\" \"subnet3\" {\n \n module \"ubuntuservers\" {\n source = \"../../\"\n- vm_hostname = \"host${random_id.ip_dns.hex}-ubuntu\"\n+ vm_hostname = \"${random_id.ip_dns.hex}-u\"\n resource_group_name = azurerm_resource_group.test.name\n admin_username = var.admin_username\n admin_password = var.admin_password\n@@ -57,7 +57,7 @@ module \"ubuntuservers\" {\n \n module \"debianservers\" {\n source = \"../../\"\n- vm_hostname = \"host${random_id.ip_dns.hex}-debian\"\n+ vm_hostname = \"${random_id.ip_dns.hex}-d\"\n resource_group_name = azurerm_resource_group.test.name\n admin_username = var.admin_username\n admin_password = var.admin_password\n@@ -71,7 +71,7 @@ module \"debianservers\" {\n \n module \"windowsservers\" {\n source = \"../../\"\n- vm_hostname = \"host${random_id.ip_dns.hex}-windows\" // line can be removed if only one VM module per resource group\n+ vm_hostname = \"${random_id.ip_dns.hex}-w\" // line can be removed if only one VM module per resource group\n resource_group_name = azurerm_resource_group.test.name\n is_windows_image = true\n admin_username = var.admin_username\n---\n\n\n---\n" } ]
B
[ { "role": "system", "content": "Choose the best Terraform patch (A/B/C/D) that implements the requested Azure Compute change safely. Only respond with a single uppercase letter." }, { "role": "user", "content": "Task Description:\nCI test has failed for the computer_name is too long, which is created from \"${var.hostname}-${count.index}\". Here I shorten the hostname in fixture test. \n\n---\n\nChoice A:\n.travis.yml\n@@ -13,7 +13,7 @@ services:\n - docker\n \n env:\n- - TERRAFORM_VERSION=0.12.10 IMAGE_NAME=azure-compute-module\n+ - TERRAFORM_VERSION=0.12.20 IMAGE_NAME=azure-compute-module\n \n jobs:\n include:\n---\nDockerfile\n@@ -1,5 +1,5 @@\n # Pull the base image with given version.\n-ARG BUILD_TERRAFORM_VERSION=\"0.12.10\"\n+ARG BUILD_TERRAFORM_VERSION=\"0.12.20\"\n FROM mcr.microsoft.com/terraform-test:${BUILD_TERRAFORM_VERSION}\n \n ARG MODULE_NAME=\"terraform-azurerm-compute\"\n@@ -33,6 +33,5 @@ RUN ssh-keygen -q -t rsa -b 4096 -f $HOME/.ssh/id_rsa\n ENV GOPATH /go\n ENV PATH /usr/local/go/bin:$GOPATH/bin:$PATH\n RUN /bin/bash -c \"curl https://raw.githubusercontent.com/golang/dep/master/install.sh | sh\"\n-RUN terraform init\n \n RUN [\"bundle\", \"install\", \"--gemfile\", \"./Gemfile\"]\n---\nGemfile\n@@ -1,9 +1,7 @@\n-ruby \"~> 2.3.0\"\n-\n source 'https://rubygems.org/'\n \n group :test do\n git 'https://github.com/Azure/terramodtest.git' do\n- gem 'terramodtest', :tag => 'v0.3.0'\n+ gem 'terramodtest', tag: '0.5.0'\n end\n end\n---\nREADME.md\n@@ -93,6 +93,10 @@ More specifically this provisions:\n - \"enable_ssh_key\" Enable ssh key authentication in Linux virtual Machine\n \n ```hcl\n+provider \"azurerm\" {\n+ features {}\n+}\n+\n resource \"azurerm_resource_group\" \"example\" {\n name = \"example-resources\"\n location = \"West Europe\"\n@@ -107,14 +111,15 @@ module \"linuxservers\" {\n nb_instances = 2\n vm_os_publisher = \"Canonical\"\n vm_os_offer = \"UbuntuServer\"\n- vm_os_sku = \"14.04.2-LTS\"\n+ vm_os_sku = \"18.04-LTS\"\n vnet_subnet_id = module.network.vnet_subnets[0]\n boot_diagnostics = true\n delete_os_disk_on_termination = true\n nb_data_disk = 2\n data_disk_size_gb = 64\n data_sa_type = \"Premium_LRS\"\n enable_ssh_key = true\n+ vm_size = \"Standard_D4s_v3\"\n \n tags = {\n environment = \"dev\"\n@@ -128,6 +133,7 @@ module \"windowsservers\" {\n source = \"Azure/compute/azurerm\"\n resource_group_name = azurerm_resource_group.example.name\n vm_hostname = \"mywinvm\"\n+ is_windows_image = true\n admin_password = \"ComplxP@ssw0rd!\"\n public_ip_dns = [\"winterravmip\", \"winterravmip1\"]\n nb_public_ip = 2\n@@ -137,17 +143,15 @@ module \"windowsservers\" {\n vm_os_offer = \"WindowsServer\"\n vm_os_sku = \"2012-R2-Datacenter\"\n vm_size = \"Standard_DS2_V2\"\n- vnet_subnet_id = module.network.vnet_subnets[1]\n+ vnet_subnet_id = module.network.vnet_subnets[0]\n enable_accelerated_networking = true\n }\n \n module \"network\" {\n source = \"Azure/network/azurerm\"\n- version = \"3.0.0\"\n+ version = \"3.0.1\"\n resource_group_name = azurerm_resource_group.example.name\n- allow_rdp_traffic = true\n- allow_ssh_traffic = true\n- subnet_prefixes = [\"10.0.1.0/24\", \"10.0.2.0/24\"]\n+ subnet_prefixes = [\"10.0.1.0/24\"]\n \n }\n \n---\nmain.tf\n@@ -62,7 +62,7 @@ resource \"azurerm_virtual_machine\" \"vm-linux\" {\n }\n \n os_profile {\n- computer_name = \"myLinux\"\n+ computer_name = \"${var.vm_hostname}-${count.index}\"\n admin_username = var.admin_username\n admin_password = var.admin_password\n custom_data = var.custom_data\n@@ -125,7 +125,7 @@ resource \"azurerm_virtual_machine\" \"vm-windows\" {\n }\n \n os_profile {\n- computer_name = \"myWindows\"\n+ computer_name = \"${var.vm_hostname}-${count.index}\"\n admin_username = var.admin_username\n admin_password = var.admin_password\n }\n---\ntest/fixture/main.tf\n@@ -3,7 +3,7 @@ provider \"azurerm\" {\n }\n \n resource \"random_id\" \"ip_dns\" {\n- byte_length = 8\n+ byte_length = 4\n }\n \n resource \"azurerm_resource_group\" \"test\" {\n@@ -41,7 +41,7 @@ resource \"azurerm_subnet\" \"subnet3\" {\n \n module \"ubuntuservers\" {\n source = \"../../\"\n- vm_hostname = \"host${random_id.ip_dns.hex}-ubuntu\"\n+ vm_hostname = \"${random_id.ip_dns.hex}-u\"\n resource_group_name = azurerm_resource_group.test.name\n admin_username = var.admin_username\n admin_password = var.admin_password\n@@ -57,7 +57,7 @@ module \"ubuntuservers\" {\n \n module \"debianservers\" {\n source = \"../../\"\n- vm_hostname = \"host${random_id.ip_dns.hex}-debian\"\n+ vm_hostname = \"${random_id.ip_dns.hex}-d\"\n resource_group_name = azurerm_resource_group.test.name\n admin_username = var.admin_username\n admin_password = var.admin_password\n@@ -71,12 +71,12 @@ module \"debianservers\" {\n \n module \"windowsservers\" {\n source = \"../../\"\n- vm_hostname = \"host${random_id.ip_dns.hex}-windows\" // line can be removed if only one VM module per resource group\n+ vm_hostname = \"${random_id.ip_dns.hex}-w\" // line can be removed if only one VM module per resource group\n resource_group_name = azurerm_resource_group.test.name\n is_windows_image = true\n admin_username = var.admin_username\n admin_password = var.admin_password\n vm_os_simple = \"WindowsServer\"\n public_ip_dns = [\"winsimplevmips\"] // change to a unique name per datacenter region\n vnet_subnet_id = azurerm_subnet.subnet3.id\n-}\n\\ No newline at end of file\n+}\n---\n\n\n---\n\nChoice B:\n.travis.yml\n@@ -13,7 +13,7 @@ services:\n - docker\n \n env:\n- - TERRAFORM_VERSION=0.12.10 IMAGE_NAME=azure-compute-module\n+ - TERRAFORM_VERSION=0.12.20 IMAGE_NAME=azure-compute-module\n \n jobs:\n include:\n---\nDockerfile\n@@ -1,5 +1,5 @@\n # Pull the base image with given version.\n-ARG BUILD_TERRAFORM_VERSION=\"0.12.10\"\n+ARG BUILD_TERRAFORM_VERSION=\"0.12.20\"\n FROM mcr.microsoft.com/terraform-test:${BUILD_TERRAFORM_VERSION}\n \n ARG MODULE_NAME=\"terraform-azurerm-compute\"\n@@ -33,6 +33,5 @@ RUN ssh-keygen -q -t rsa -b 4096 -f $HOME/.ssh/id_rsa\n ENV GOPATH /go\n ENV PATH /usr/local/go/bin:$GOPATH/bin:$PATH\n RUN /bin/bash -c \"curl https://raw.githubusercontent.com/golang/dep/master/install.sh | sh\"\n-RUN terraform init\n \n RUN [\"bundle\", \"install\", \"--gemfile\", \"./Gemfile\"]\n---\nGemfile\n@@ -1,9 +1,7 @@\n-ruby \"~> 2.3.0\"\n-\n source 'https://rubygems.org/'\n \n group :test do\n git 'https://github.com/Azure/terramodtest.git' do\n- gem 'terramodtest', :tag => 'v0.3.0'\n+ gem 'terramodtest', tag: '0.5.0'\n end\n end\n---\nREADME.md\n@@ -93,6 +93,10 @@ More specifically this provisions:\n - \"enable_ssh_key\" Enable ssh key authentication in Linux virtual Machine\n \n ```hcl\n+provider \"azurerm\" {\n+ features {}\n+}\n+\n resource \"azurerm_resource_group\" \"example\" {\n name = \"example-resources\"\n location = \"West Europe\"\n@@ -107,14 +111,15 @@ module \"linuxservers\" {\n nb_instances = 2\n vm_os_publisher = \"Canonical\"\n vm_os_offer = \"UbuntuServer\"\n- vm_os_sku = \"14.04.2-LTS\"\n+ vm_os_sku = \"18.04-LTS\"\n vnet_subnet_id = module.network.vnet_subnets[0]\n boot_diagnostics = true\n delete_os_disk_on_termination = true\n nb_data_disk = 2\n data_disk_size_gb = 64\n data_sa_type = \"Premium_LRS\"\n enable_ssh_key = true\n+ vm_size = \"Standard_D4s_v3\"\n \n tags = {\n environment = \"dev\"\n@@ -128,6 +133,7 @@ module \"windowsservers\" {\n source = \"Azure/compute/azurerm\"\n resource_group_name = azurerm_resource_group.example.name\n vm_hostname = \"mywinvm\"\n+ is_windows_image = true\n admin_password = \"ComplxP@ssw0rd!\"\n public_ip_dns = [\"winterravmip\", \"winterravmip1\"]\n nb_public_ip = 2\n@@ -137,17 +143,15 @@ module \"windowsservers\" {\n vm_os_offer = \"WindowsServer\"\n vm_os_sku = \"2012-R2-Datacenter\"\n vm_size = \"Standard_DS2_V2\"\n- vnet_subnet_id = module.network.vnet_subnets[1]\n+ vnet_subnet_id = module.network.vnet_subnets[0]\n enable_accelerated_networking = true\n }\n \n module \"network\" {\n source = \"Azure/network/azurerm\"\n- version = \"3.0.0\"\n+ version = \"3.0.1\"\n resource_group_name = azurerm_resource_group.example.name\n- allow_rdp_traffic = true\n- allow_ssh_traffic = true\n- subnet_prefixes = [\"10.0.1.0/24\", \"10.0.2.0/24\"]\n+ subnet_prefixes = [\"10.0.1.0/24\"]\n \n }\n \n---\nmain.tf\n@@ -62,7 +62,7 @@ resource \"azurerm_virtual_machine\" \"vm-linux\" {\n }\n \n os_profile {\n- computer_name = \"myLinux\"\n+ computer_name = \"${var.vm_hostname}-${count.index}\"\n admin_username = var.admin_username\n admin_password = var.admin_password\n custom_data = var.custom_data\n@@ -125,7 +125,7 @@ resource \"azurerm_virtual_machine\" \"vm-windows\" {\n }\n \n os_profile {\n- computer_name = \"myWindows\"\n+ computer_name = \"${var.vm_hostname}-${count.index}\"\n admin_username = var.admin_username\n admin_password = var.admin_password\n }\n---\ntest/fixture/main.tf\n@@ -3,7 +3,7 @@ provider \"azurerm\" {\n }\n \n resource \"random_id\" \"ip_dns\" {\n- byte_length = 8\n+ byte_length = 4\n }\n \n resource \"azurerm_resource_group\" \"test\" {\n@@ -41,7 +41,7 @@ resource \"azurerm_subnet\" \"subnet3\" {\n \n module \"ubuntuservers\" {\n source = \"../../\"\n- vm_hostname = \"host${random_id.ip_dns.hex}-ubuntu\"\n+ vm_hostname = \"${random_id.ip_dns.hex}-u\"\n resource_group_name = azurerm_resource_group.test.name\n admin_username = var.admin_username\n admin_password = var.admin_password\n@@ -57,7 +57,7 @@ module \"ubuntuservers\" {\n \n module \"debianservers\" {\n source = \"../../\"\n- vm_hostname = \"host${random_id.ip_dns.hex}-debian\"\n+ vm_hostname = \"${random_id.ip_dns.hex}-d\"\n resource_group_name = azurerm_resource_group.test.name\n admin_username = var.admin_username\n admin_password = var.admin_password\n@@ -71,12 +71,12 @@ module \"debianservers\" {\n \n module \"windowsservers\" {\n source = \"../../\"\n- vm_hostname = \"host${random_id.ip_dns.hex}-windows\" // line can be removed if only one VM module per resource group\n+ vm_hostname = \"${random_id.ip_dns.hex}-w\" // line can be removed if only one VM module per resource group\n resource_group_name = azurerm_resource_group.test.name\n is_windows_image = true\n admin_username = var.admin_username\n admin_password = var.admin_password\n vm_os_simple = \"WindowsServer\"\n public_ip_dns = [\"winsimplevmips\"] // change to a unique name per datacenter region\n vnet_subnet_id = azurerm_subnet.subnet3.id\n-}\n\\ No newline at end of file\n+}\n---\n\n\n---\n\nChoice C:\n.travis.yml\n@@ -13,7 +13,7 @@ services:\n - docker\n \n env:\n- - TERRAFORM_VERSION=0.12.10 IMAGE_NAME=azure-compute-module\n+ - TERRAFORM_VERSION=0.12.20 IMAGE_NAME=azure-compute-module\n \n jobs:\n include:\n---\nDockerfile\n@@ -1,5 +1,5 @@\n # Pull the base image with given version.\n-ARG BUILD_TERRAFORM_VERSION=\"0.12.10\"\n+ARG BUILD_TERRAFORM_VERSION=\"0.12.20\"\n FROM mcr.microsoft.com/terraform-test:${BUILD_TERRAFORM_VERSION}\n \n ARG MODULE_NAME=\"terraform-azurerm-compute\"\n@@ -33,6 +33,5 @@ RUN ssh-keygen -q -t rsa -b 4096 -f $HOME/.ssh/id_rsa\n ENV GOPATH /go\n ENV PATH /usr/local/go/bin:$GOPATH/bin:$PATH\n RUN /bin/bash -c \"curl https://raw.githubusercontent.com/golang/dep/master/install.sh | sh\"\n-RUN terraform init\n \n RUN [\"bundle\", \"install\", \"--gemfile\", \"./Gemfile\"]\n---\nGemfile\n@@ -1,9 +1,7 @@\n-ruby \"~> 2.3.0\"\n-\n source 'https://rubygems.org/'\n \n group :test do\n git 'https://github.com/Azure/terramodtest.git' do\n- gem 'terramodtest', :tag => 'v0.3.0'\n+ gem 'terramodtest', tag: '0.5.0'\n end\n end\n---\nREADME.md\n@@ -93,6 +93,10 @@ More specifically this provisions:\n - \"enable_ssh_key\" Enable ssh key authentication in Linux virtual Machine\n \n ```hcl\n+provider \"azurerm\" {\n+ features {}\n+}\n+\n resource \"azurerm_resource_group\" \"example\" {\n name = \"example-resources\"\n location = \"West Europe\"\n@@ -107,14 +111,15 @@ module \"linuxservers\" {\n nb_instances = 2\n vm_os_publisher module = \"Canonical\"\n vm_os_offer = \"UbuntuServer\"\n- vm_os_sku = \"14.04.2-LTS\"\n+ vm_os_sku = \"18.04-LTS\"\n vnet_subnet_id = module.network.vnet_subnets[0]\n boot_diagnostics = true\n delete_os_disk_on_termination = true\n nb_data_disk = 2\n data_disk_size_gb = 64\n data_sa_type = \"Premium_LRS\"\n enable_ssh_key = true\n+ vm_size = \"Standard_D4s_v3\"\n \n tags = {\n environment = \"dev\"\n@@ -128,6 +133,7 @@ module \"windowsservers\" {\n source = \"Azure/compute/azurerm\"\n resource_group_name = azurerm_resource_group.example.name\n vm_hostname = \"mywinvm\"\n+ is_windows_image = true\n admin_password = \"ComplxP@ssw0rd!\"\n public_ip_dns = [\"winterravmip\", \"winterravmip1\"]\n nb_public_ip = 2\n@@ -137,17 +143,15 @@ module \"windowsservers\" {\n vm_os_offer = \"WindowsServer\"\n vm_os_sku = \"2012-R2-Datacenter\"\n vm_size = \"Standard_DS2_V2\"\n- vnet_subnet_id = module.network.vnet_subnets[1]\n+ vnet_subnet_id = module.network.vnet_subnets[0]\n enable_accelerated_networking = true\n }\n \n module \"network\" {\n source = \"Azure/network/azurerm\"\n- version = \"3.0.0\"\n+ version = \"3.0.1\"\n resource_group_name = azurerm_resource_group.example.name\n- allow_rdp_traffic = true\n- allow_ssh_traffic = true\n- subnet_prefixes = [\"10.0.1.0/24\", \"10.0.2.0/24\"]\n+ subnet_prefixes = [\"10.0.1.0/24\"]\n \n }\n \n---\nmain.tf\n@@ -62,7 +62,7 @@ resource \"azurerm_virtual_machine\" \"vm-linux\" {\n }\n \n os_profile {\n- computer_name = \"myLinux\"\n+ computer_name = \"${var.vm_hostname}-${count.index}\"\n admin_username = var.admin_username\n admin_password = var.admin_password\n custom_data = var.custom_data\n@@ -125,7 +125,7 @@ resource \"azurerm_virtual_machine\" \"vm-windows\" {\n }\n \n os_profile {\n- computer_name = \"myWindows\"\n+ computer_name = \"${var.vm_hostname}-${count.index}\"\n admin_username = var.admin_username\n admin_password = var.admin_password\n }\n---\ntest/fixture/main.tf\n@@ -3,7 +3,7 @@ provider \"azurerm\" {\n }\n \n resource \"random_id\" \"ip_dns\" {\n- byte_length = 8\n+ byte_length = 4\n }\n \n resource \"azurerm_resource_group\" \"test\" {\n@@ -41,7 +41,7 @@ resource \"azurerm_subnet\" \"subnet3\" {\n \n module \"ubuntuservers\" {\n source = \"../../\"\n- vm_hostname = \"host${random_id.ip_dns.hex}-ubuntu\"\n+ vm_hostname = \"${random_id.ip_dns.hex}-u\"\n resource_group_name = azurerm_resource_group.test.name\n admin_username = var.admin_username\n admin_password = var.admin_password\n@@ -57,7 +57,7 @@ module \"ubuntuservers\" {\n \n module \"debianservers\" {\n source = \"../../\"\n- vm_hostname = \"host${random_id.ip_dns.hex}-debian\"\n+ vm_hostname = \"${random_id.ip_dns.hex}-d\"\n resource_group_name = azurerm_resource_group.test.name\n admin_username = var.admin_username\n admin_password = var.admin_password\n@@ -71,12 +71,12 @@ module \"debianservers\" {\n \n module \"windowsservers\" {\n source = \"../../\"\n- vm_hostname = \"host${random_id.ip_dns.hex}-windows\" // line can be removed if only one VM module per resource group\n+ vm_hostname = \"${random_id.ip_dns.hex}-w\" // line can be removed if only one VM module per resource group\n resource_group_name = azurerm_resource_group.test.name\n is_windows_image = true\n admin_username = var.admin_username\n admin_password = var.admin_password\n vm_os_simple = \"WindowsServer\"\n public_ip_dns = [\"winsimplevmips\"] // change to a unique name per datacenter region\n vnet_subnet_id = azurerm_subnet.subnet3.id\n-}\n\\ No newline at end of file\n+}\n---\n\n\n---\n\nChoice D:\n.travis.yml\n@@ -13,7 +13,7 @@ services:\n - docker\n \n env:\n- - TERRAFORM_VERSION=0.12.10 IMAGE_NAME=azure-compute-module\n+ - TERRAFORM_VERSION=0.12.20 IMAGE_NAME=azure-compute-module\n \n jobs:\n include:\n---\nDockerfile\n@@ -1,5 +1,5 @@\n # Pull the base image with given version.\n-ARG BUILD_TERRAFORM_VERSION=\"0.12.10\"\n+ARG BUILD_TERRAFORM_VERSION=\"0.12.20\"\n FROM mcr.microsoft.com/terraform-test:${BUILD_TERRAFORM_VERSION}\n \n ARG MODULE_NAME=\"terraform-azurerm-compute\"\n@@ -33,6 +33,5 @@ RUN ssh-keygen -q -t rsa -b 4096 -f $HOME/.ssh/id_rsa\n ENV GOPATH /go\n ENV PATH /usr/local/go/bin:$GOPATH/bin:$PATH\n RUN /bin/bash -c \"curl https://raw.githubusercontent.com/golang/dep/master/install.sh | sh\"\n-RUN terraform init\n \n RUN [\"bundle\", \"install\", \"--gemfile\", \"./Gemfile\"]\n---\nGemfile\n@@ -1,9 +1,7 @@\n-ruby \"~> 2.3.0\"\n-\n source 'https://rubygems.org/'\n \n group :test do\n git 'https://github.com/Azure/terramodtest.git' do\n- gem 'terramodtest', :tag => 'v0.3.0'\n+ gem 'terramodtest', tag: '0.5.0'\n end\n end\n---\nREADME.md\n@@ -93,6 +93,10 @@ More specifically this provisions:\n - \"enable_ssh_key\" Enable ssh key authentication in Linux virtual Machine\n \n ```hcl\n+provider \"azurerm\" {\n+ features {}\n+}\n+\n resource \"azurerm_resource_group\" \"example\" {\n name = \"example-resources\"\n location = \"West Europe\"\n@@ -107,14 +111,15 @@ module \"linuxservers\" {\n nb_instances = 2\n vm_os_publisher = \"Canonical\"\n vm_os_offer = \"UbuntuServer\"\n- vm_os_sku = \"14.04.2-LTS\"\n+ vm_os_sku = \"18.04-LTS\"\n vnet_subnet_id = module.network.vnet_subnets[0]\n boot_diagnostics = true\n delete_os_disk_on_termination = true\n nb_data_disk = 2\n data_disk_size_gb = 64\n data_sa_type = \"Premium_LRS\"\n enable_ssh_key = true\n+ vm_size = \"Standard_D4s_v3\"\n \n tags = {\n environment = \"dev\"\n@@ -128,6 +133,7 @@ module \"windowsservers\" {\n source = \"Azure/compute/azurerm\"\n resource_group_name = azurerm_resource_group.example.name\n vm_hostname = \"mywinvm\"\n+ is_windows_image = true\n admin_password = \"ComplxP@ssw0rd!\"\n public_ip_dns = [\"winterravmip\", \"winterravmip1\"]\n nb_public_ip = 2\n@@ -137,17 +143,15 @@ module \"windowsservers\" {\n vm_os_offer = \"WindowsServer\"\n vm_os_sku = \"2012-R2-Datacenter\"\n vm_size = \"Standard_DS2_V2\"\n- vnet_subnet_id = module.network.vnet_subnets[1]\n+ vnet_subnet_id = module.network.vnet_subnets[0]\n enable_accelerated_networking = true\n }\n \n module \"network\" {\n source = \"Azure/network/azurerm\"\n- version = \"3.0.0\"\n+ version = \"3.0.1\"\n resource_group_name = azurerm_resource_group.example.name\n- allow_rdp_traffic = true\n- allow_ssh_traffic = true\n- subnet_prefixes = [\"10.0.1.0/24\", \"10.0.2.0/24\"]\n+ subnet_prefixes = [\"10.0.1.0/24\"]\n \n }\n \n---\nmain.tf\n@@ -62,7 +62,7 @@ resource \"azurerm_virtual_machine\" \"vm-linux\" {\n }\n \n os_profile {\n- computer_name = \"myLinux\"\n+ computer_name = \"${var.vm_hostname}-${count.index}\"\n admin_username = var.admin_username\n admin_password = var.admin_password\n custom_data = var.custom_data\n@@ -125,7 +125,7 @@ resource \"azurerm_virtual_machine\" \"vm-windows\" {\n }\n \n os_profile {\n- computer_name = \"myWindows\"\n+ computer_name = \"${var.vm_hostname}-${count.index}\"\n admin_username = var.admin_username\n admin_password = var.admin_password\n }\n---\ntest/fixture/main.tf\n@@ -3,7 +3,7 @@ provider \"azurerm\" {\n }\n \n resource \"random_id\" \"ip_dns\" {\n- byte_length = 8\n+ byte_length = 4\n }\n \n resource \"azurerm_resource_group\" \"test\" {\n@@ -41,7 +41,7 @@ resource \"azurerm_subnet\" \"subnet3\" {\n \n module \"ubuntuservers\" {\n source name = \"../../\"\n- vm_hostname = \"host${random_id.ip_dns.hex}-ubuntu\"\n+ vm_hostname = \"${random_id.ip_dns.hex}-u\"\n resource_group_name = azurerm_resource_group.test.name\n admin_username = var.admin_username\n admin_password = var.admin_password\n@@ -57,7 +57,7 @@ module \"ubuntuservers\" {\n \n module \"debianservers\" {\n source = \"../../\"\n- vm_hostname = \"host${random_id.ip_dns.hex}-debian\"\n+ vm_hostname = \"${random_id.ip_dns.hex}-d\"\n resource_group_name = azurerm_resource_group.test.name\n admin_username = var.admin_username\n admin_password = var.admin_password\n@@ -71,12 +71,12 @@ module \"debianservers\" {\n \n module \"windowsservers\" {\n source = \"../../\"\n- vm_hostname = \"host${random_id.ip_dns.hex}-windows\" // line can be removed if only one VM module per resource group\n+ vm_hostname = \"${random_id.ip_dns.hex}-w\" // line can be removed if only one VM module per resource group\n resource_group_name = azurerm_resource_group.test.name\n is_windows_image = true\n admin_username = var.admin_username\n admin_password = var.admin_password\n vm_os_simple = \"WindowsServer\"\n public_ip_dns = [\"winsimplevmips\"] // change to a unique name per datacenter region\n vnet_subnet_id = azurerm_subnet.subnet3.id\n-}\n\\ No newline at end of file\n+}\n---\n\n\n---\n" } ]
A
[ { "role": "system", "content": "Choose the best Terraform patch (A/B/C/D) that implements the requested Azure Compute change safely. Only respond with a single uppercase letter." }, { "role": "user", "content": "Task Description:\nIntegration of terramodtest 0.5.0\r\nFix example in README\n\n---\n\nChoice A:\n.travis.yml\n@@ -13,7 +13,7 @@ services:\n - docker\n \n env:\n- - TERRAFORM_VERSION=0.12.10 IMAGE_NAME=azure-compute-module\n+ - TERRAFORM_VERSION=0.12.20 IMAGE_NAME=azure-compute-module\n \n jobs:\n include:\n---\nDockerfile\n@@ -1,5 +1,5 @@\n # Pull the base image with given version.\n-ARG BUILD_TERRAFORM_VERSION=\"0.12.10\"\n+ARG BUILD_TERRAFORM_VERSION=\"0.12.20\"\n FROM mcr.microsoft.com/terraform-test:${BUILD_TERRAFORM_VERSION}\n \n ARG MODULE_NAME=\"terraform-azurerm-compute\"\n@@ -33,6 +33,5 @@ RUN ssh-keygen -q -t rsa -b 4096 -f $HOME/.ssh/id_rsa\n ENV GOPATH /go\n ENV PATH /usr/local/go/bin:$GOPATH/bin:$PATH\n RUN /bin/bash -c \"curl https://raw.githubusercontent.com/golang/dep/master/install.sh | sh\"\n-RUN terraform init\n \n RUN [\"bundle\", \"install\", \"--gemfile\", \"./Gemfile\"]\n---\nGemfile\n@@ -1,9 +1,7 @@\n-ruby \"~> 2.3.0\"\n-\n source 'https://rubygems.org/'\n \n group :test do\n git 'https://github.com/Azure/terramodtest.git' do\n- gem 'terramodtest', :tag => 'v0.3.0'\n+ gem 'terramodtest', tag: '0.5.0'\n end\n end\n---\nREADME.md\n@@ -93,6 +93,10 @@ More specifically this provisions:\n - \"enable_ssh_key\" Enable ssh key authentication in Linux virtual Machine\n \n ```hcl\n+provider \"azurerm\" {\n+ features {}\n+}\n+\n resource \"azurerm_resource_group\" \"example\" {\n name = \"example-resources\"\n location = \"West Europe\"\n@@ -107,14 +111,15 @@ module \"linuxservers\" {\n nb_instances = 2\n vm_os_publisher = \"Canonical\"\n vm_os_offer = \"UbuntuServer\"\n- vm_os_sku = \"14.04.2-LTS\"\n+ vm_os_sku = \"18.04-LTS\"\n vnet_subnet_id = module.network.vnet_subnets[0]\n boot_diagnostics = true\n delete_os_disk_on_termination = true\n nb_data_disk = 2\n data_disk_size_gb = 64\n data_sa_type = \"Premium_LRS\"\n enable_ssh_key = true\n+ vm_size = \"Standard_D4s_v3\"\n \n tags = {\n environment = \"dev\"\n@@ -128,6 +133,7 @@ module \"windowsservers\" {\n source = \"Azure/compute/azurerm\"\n resource_group_name = azurerm_resource_group.example.name\n vm_hostname = \"mywinvm\"\n+ is_windows_image = true\n admin_password = \"ComplxP@ssw0rd!\"\n public_ip_dns = [\"winterravmip\", \"winterravmip1\"]\n nb_public_ip = 2\n@@ -137,17 +143,15 @@ module \"windowsservers\" {\n vm_os_offer = \"WindowsServer\"\n vm_os_sku = \"2012-R2-Datacenter\"\n vm_size = \"Standard_DS2_V2\"\n- vnet_subnet_id = module.network.vnet_subnets[1]\n+ vnet_subnet_id = module.network.vnet_subnets[0]\n enable_accelerated_networking = true\n }\n \n module \"network\" {\n source = \"Azure/network/azurerm\"\n- version = \"3.0.0\"\n+ version = \"3.0.1\"\n resource_group_name = azurerm_resource_group.example.name\n- allow_rdp_traffic = true\n- allow_ssh_traffic = true\n- subnet_prefixes = [\"10.0.1.0/24\", \"10.0.2.0/24\"]\n+ subnet_prefixes = [\"10.0.1.0/24\"]\n \n }\n \n---\nmain.tf\n@@ -62,7 +62,7 @@ resource \"azurerm_virtual_machine\" \"vm-linux\" {\n }\n \n os_profile {\n- computer_name = \"myLinux\"\n+ computer_name = \"${var.vm_hostname}-${count.index}\"\n admin_username = var.admin_username\n admin_password = var.admin_password\n custom_data = var.custom_data\n@@ -125,7 +125,7 @@ resource \"azurerm_virtual_machine\" \"vm-windows\" {\n }\n \n os_profile {\n- computer_name = \"myWindows\"\n+ computer_name = \"${var.vm_hostname}-${count.index}\"\n admin_username = var.admin_username\n admin_password = var.admin_password\n }\n---\n\n\n---\n\nChoice B:\n.travis.yml\n@@ -13,7 +13,7 @@ services:\n - docker\n \n env:\n- - TERRAFORM_VERSION=0.12.10 IMAGE_NAME=azure-compute-module\n+ - TERRAFORM_VERSION=0.12.20 IMAGE_NAME=azure-compute-module\n \n jobs:\n include:\n---\nDockerfile\n@@ -1,5 +1,5 @@\n # Pull the base image with given version.\n-ARG BUILD_TERRAFORM_VERSION=\"0.12.10\"\n+ARG BUILD_TERRAFORM_VERSION=\"0.12.20\"\n FROM mcr.microsoft.com/terraform-test:${BUILD_TERRAFORM_VERSION}\n \n ARG MODULE_NAME=\"terraform-azurerm-compute\"\n@@ -33,6 +33,5 @@ RUN ssh-keygen -q -t rsa -b 4096 -f $HOME/.ssh/id_rsa\n ENV GOPATH /go\n ENV PATH /usr/local/go/bin:$GOPATH/bin:$PATH\n RUN /bin/bash -c \"curl https://raw.githubusercontent.com/golang/dep/master/install.sh | sh\"\n-RUN terraform init\n \n RUN [\"bundle\", \"install\", \"--gemfile\", \"./Gemfile\"]\n---\nGemfile\n@@ -1,9 +1,7 @@\n-ruby \"~> 2.3.0\"\n-\n source 'https://rubygems.org/'\n \n group :test do\n git 'https://github.com/Azure/terramodtest.git' do\n- gem 'terramodtest', :tag => 'v0.3.0'\n+ gem 'terramodtest', tag: '0.5.0'\n end\n end\n---\nREADME.md\n@@ -93,6 +93,10 @@ More specifically this provisions:\n - \"enable_ssh_key\" Enable ssh key authentication in Linux virtual Machine\n \n ```hcl\n+provider \"azurerm\" {\n+ features {}\n+}\n+\n resource \"azurerm_resource_group\" \"example\" {\n name = \"example-resources\"\n location = \"West Europe\"\n@@ -107,14 +111,15 @@ module \"linuxservers\" {\n nb_instances = 2\n vm_os_publisher = \"Canonical\"\n vm_os_offer = \"UbuntuServer\"\n- vm_os_sku = \"14.04.2-LTS\"\n+ vm_os_sku = \"18.04-LTS\"\n vnet_subnet_id = module.network.vnet_subnets[0]\n boot_diagnostics = true\n delete_os_disk_on_termination = true\n nb_data_disk = 2\n data_disk_size_gb = 64\n data_sa_type = \"Premium_LRS\"\n enable_ssh_key = true\n+ vm_size = \"Standard_D4s_v3\"\n \n tags = {\n environment = \"dev\"\n@@ -128,6 +133,7 @@ module \"windowsservers\" {\n source = \"Azure/compute/azurerm\"\n resource_group_name = azurerm_resource_group.example.name\n vm_hostname = \"mywinvm\"\n+ is_windows_image = true\n admin_password = \"ComplxP@ssw0rd!\"\n public_ip_dns = [\"winterravmip\", \"winterravmip1\"]\n nb_public_ip = 2\n@@ -137,17 +143,15 @@ module \"windowsservers\" {\n vm_os_offer = \"WindowsServer\"\n vm_os_sku = \"2012-R2-Datacenter\"\n vm_size = \"Standard_DS2_V2\"\n- vnet_subnet_id = module.network.vnet_subnets[1]\n+ vnet_subnet_id = module.network.vnet_subnets[0]\n enable_accelerated_networking = true\n }\n \n module \"network\" {\n source = \"Azure/network/azurerm\"\n- version = \"3.0.0\"\n+ version = \"3.0.1\"\n resource_group_name = azurerm_resource_group.example.name\n- allow_rdp_traffic = true\n- allow_ssh_traffic = true\n- subnet_prefixes = [\"10.0.1.0/24\", \"10.0.2.0/24\"]\n+ subnet_prefixes = [\"10.0.1.0/24\"]\n \n }\n \n---\nmain.tf\n@@ -62,7 +62,7 @@ resource \"azurerm_virtual_machine\" \"vm-linux\" {\n }\n \n os_profile {\n- computer_name = \"myLinux\"\n+ computer_name = \"${var.vm_hostname}-${count.index}\"\n admin_username = var.admin_username\n admin_password = var.admin_password\n custom_data = var.custom_data\n@@ -125,7 +125,7 @@ resource \"azurerm_virtual_machine\" \"vm-windows\" {\n }\n \n os_profile {\n- computer_name = \"myWindows\"\n+ computer_name = \"${var.vm_hostname}-${count.index}\"\n admin_username = var.admin_username\n admin_password = var.admin_password\n }\n---\n\n\n---\n\nChoice C:\n.travis.yml\n@@ -13,7 +13,7 @@ services:\n - docker\n \n env:\n- - TERRAFORM_VERSION=0.12.10 IMAGE_NAME=azure-compute-module\n+ - TERRAFORM_VERSION=0.12.20 IMAGE_NAME=azure-compute-module\n \n jobs:\n include:\n---\nDockerfile\n@@ -1,5 +1,5 @@\n # Pull the base image with given version.\n-ARG BUILD_TERRAFORM_VERSION=\"0.12.10\"\n+ARG BUILD_TERRAFORM_VERSION=\"0.12.20\"\n FROM mcr.microsoft.com/terraform-test:${BUILD_TERRAFORM_VERSION}\n \n ARG MODULE_NAME=\"terraform-azurerm-compute\"\n@@ -33,6 +33,5 @@ RUN ssh-keygen -q -t rsa -b 4096 -f $HOME/.ssh/id_rsa\n ENV GOPATH /go\n ENV PATH /usr/local/go/bin:$GOPATH/bin:$PATH\n RUN /bin/bash -c \"curl https://raw.githubusercontent.com/golang/dep/master/install.sh | sh\"\n-RUN terraform init\n \n RUN [\"bundle\", \"install\", \"--gemfile\", \"./Gemfile\"]\n---\nGemfile\n@@ -1,9 +1,7 @@\n-ruby \"~> 2.3.0\"\n-\n source 'https://rubygems.org/'\n \n group :test do\n git 'https://github.com/Azure/terramodtest.git' do\n- gem 'terramodtest', :tag => 'v0.3.0'\n+ gem 'terramodtest', tag: '0.5.0'\n end\n end\n---\nREADME.md\n@@ -93,6 +93,10 @@ More specifically this provisions:\n - \"enable_ssh_key\" Enable ssh key authentication in Linux virtual Machine\n \n ```hcl\n+provider \"azurerm\" {\n+ features {}\n+}\n+\n resource \"azurerm_resource_group\" \"example\" {\n name = \"example-resources\"\n location = \"West Europe\"\n@@ -107,14 +111,15 @@ module \"linuxservers\" {\n nb_instances = 2\n vm_os_publisher = \"Canonical\"\n vm_os_offer = \"UbuntuServer\"\n- vm_os_sku = \"14.04.2-LTS\"\n+ vm_os_sku = \"18.04-LTS\"\n vnet_subnet_id = module.network.vnet_subnets[0]\n boot_diagnostics = true\n delete_os_disk_on_termination = true\n nb_data_disk = 2\n data_disk_size_gb = 64\n data_sa_type = \"Premium_LRS\"\n enable_ssh_key = true\n+ vm_size = \"Standard_D4s_v3\"\n \n tags = {\n environment = \"dev\"\n@@ -128,6 +133,7 @@ module \"windowsservers\" {\n source = \"Azure/compute/azurerm\"\n resource_group_name = azurerm_resource_group.example.name\n vm_hostname = \"mywinvm\"\n+ is_windows_image = true\n admin_password = \"ComplxP@ssw0rd!\"\n public_ip_dns = [\"winterravmip\", \"winterravmip1\"]\n nb_public_ip = 2\n@@ -137,17 +143,15 @@ module \"windowsservers\" {\n vm_os_offer = \"WindowsServer\"\n vm_os_sku = \"2012-R2-Datacenter\"\n vm_size = \"Standard_DS2_V2\"\n- vnet_subnet_id = module.network.vnet_subnets[1]\n+ vnet_subnet_id = module.network.vnet_subnets[0]\n enable_accelerated_networking = true\n }\n \n module \"network\" {\n source = \"Azure/network/azurerm\"\n- version = \"3.0.0\"\n+ version = \"3.0.1\"\n resource_group_name = azurerm_resource_group.example.name\n- allow_rdp_traffic = true\n- allow_ssh_traffic = true\n- subnet_prefixes = [\"10.0.1.0/24\", \"10.0.2.0/24\"]\n+ subnet_prefixes = [\"10.0.1.0/24\"]\n \n }\n \n---\nmain.tf\n@@ -62,7 +62,7 @@ resource \"azurerm_virtual_machine\" \"vm-linux\" {\n }\n \n os_profile {\n- computer_name = \"myLinux\"\n+ computer_name = \"${var.vm_hostname}-${count.index}\"\n admin_username = var.admin_username\n admin_password = var.admin_password\n custom_data = var.custom_data\n@@ -125,7 +125,7 @@ resource \"azurerm_virtual_machine\" \"vm-windows\" {\n }\n \n os_profile {\n- computer_name = \"myWindows\"\n+ computer_name = \"${var.vm_hostname}-${count.index}\"\n admin_username = var.admin_username\n admin_password = var.admin_password\n }\n---\n\n\n---\n\nChoice D:\n.travis.yml\n@@ -13,7 +13,7 @@ services:\n - docker\n \n env:\n- - TERRAFORM_VERSION=0.12.10 IMAGE_NAME=azure-compute-module\n+ - TERRAFORM_VERSION=0.12.20 IMAGE_NAME=azure-compute-module\n \n jobs:\n include:\n---\nDockerfile\n@@ -1,5 +1,5 @@\n # Pull the base image with given version.\n-ARG BUILD_TERRAFORM_VERSION=\"0.12.10\"\n+ARG BUILD_TERRAFORM_VERSION=\"0.12.20\"\n FROM mcr.microsoft.com/terraform-test:${BUILD_TERRAFORM_VERSION}\n \n ARG MODULE_NAME=\"terraform-azurerm-compute\"\n@@ -33,6 +33,5 @@ RUN ssh-keygen -q -t rsa -b 4096 -f $HOME/.ssh/id_rsa\n ENV GOPATH /go\n ENV PATH /usr/local/go/bin:$GOPATH/bin:$PATH\n RUN /bin/bash -c \"curl https://raw.githubusercontent.com/golang/dep/master/install.sh | sh\"\n-RUN terraform init\n \n RUN [\"bundle\", \"install\", \"--gemfile\", \"./Gemfile\"]\n---\nGemfile\n@@ -1,9 +1,7 @@\n-ruby \"~> 2.3.0\"\n-\n source 'https://rubygems.org/'\n \n group :test do\n git 'https://github.com/Azure/terramodtest.git' do\n- gem 'terramodtest', :tag => 'v0.3.0'\n+ gem 'terramodtest', tag: '0.5.0'\n end\n end\n---\nREADME.md\n@@ -93,6 +93,10 @@ More specifically this provisions:\n - \"enable_ssh_key\" Enable ssh key authentication in Linux virtual Machine\n \n ```hcl\n+provider \"azurerm\" {\n+ features {}\n+}\n+\n resource \"azurerm_resource_group\" \"example\" {\n name = \"example-resources\"\n location = \"West Europe\"\n@@ -107,14 +111,15 @@ module \"linuxservers\" {\n nb_instances = 2\n vm_os_publisher = \"Canonical\"\n vm_os_offer = \"UbuntuServer\"\n- vm_os_sku = \"14.04.2-LTS\"\n+ vm_os_sku = \"18.04-LTS\"\n vnet_subnet_id = module.network.vnet_subnets[0]\n boot_diagnostics = true\n delete_os_disk_on_termination = true\n nb_data_disk = 2\n data_disk_size_gb = 64\n data_sa_type = \"Premium_LRS\"\n enable_ssh_key = true\n+ vm_size = \"Standard_D4s_v3\"\n \n tags = {\n environment = \"dev\"\n@@ -128,6 +133,7 @@ module \"windowsservers\" {\n source = \"Azure/compute/azurerm\"\n resource_group_name = azurerm_resource_group.example.name\n vm_hostname = \"mywinvm\"\n+ is_windows_image = true\n admin_password = \"ComplxP@ssw0rd!\"\n public_ip_dns = [\"winterravmip\", \"winterravmip1\"]\n nb_public_ip = 2\n@@ -137,17 +143,15 @@ module \"windowsservers\" {\n vm_os_offer = \"WindowsServer\"\n vm_os_sku = \"2012-R2-Datacenter\"\n vm_size = \"Standard_DS2_V2\"\n- vnet_subnet_id = module.network.vnet_subnets[1]\n+ vnet_subnet_id = module.network.vnet_subnets[0]\n enable_accelerated_networking = true\n }\n \n module \"network\" {\n source = \"Azure/network/azurerm\"\n- version = \"3.0.0\"\n+ version = \"3.0.1\"\n resource_group_name = azurerm_resource_group.example.name\n- allow_rdp_traffic = true\n- allow_ssh_traffic = true\n- subnet_prefixes = [\"10.0.1.0/24\", \"10.0.2.0/24\"]\n+ subnet_prefixes = [\"10.0.1.0/24\"]\n \n }\n \n---\nmain.tf\n@@ -62,7 +62,7 @@ resource \"azurerm_virtual_machine\" \"vm-linux\" {\n }\n \n os_profile {\n- computer_name = \"myLinux\"\n+ computer_name = \"${var.vm_hostname}-${count.index}\"\n admin_username = var.admin_username\n admin_password = var.admin_password\n custom_data = var.custom_data\n@@ -125,7 +125,7 @@ resource \"azurerm_virtual_machine\" \"vm-windows\" {\n }\n \n os_profile {\n- computer_name = \"myWindows\"\n+ computer_name = \"${var.vm_hostname}-${count.index}\"\n admin_username = var.admin_username\n admin_password = var.admin_password\n }\n---\n\n\n---\n" } ]
A
[ { "role": "system", "content": "Choose the best Terraform patch (A/B/C/D) that implements the requested Azure Compute change safely. Only respond with a single uppercase letter." }, { "role": "user", "content": "Task Description:\nIt's a dirty job, but somebody has to do it.\n\n---\n\nChoice A:\nvariables.tf\n@@ -1,9 +1,9 @@\n variable \"resource_group_name\" {\n- description = \"The name of the resource group in which the resources will be created\"\n+ description = \"The name of the resource group in which the resources will be created.\"\n }\n \n variable \"location\" {\n- description = \"(Optional) The location in which the resources will be created\"\n+ description = \"(Optional) The location in which the resources will be created.\"\n default = \"\"\n }\n \n@@ -17,12 +17,12 @@ variable \"public_ip_dns\" {\n }\n \n variable \"admin_password\" {\n- description = \"The admin password to be used on the VMSS that will be deployed. The password must meet the complexity requirements of Azure\"\n+ description = \"The admin password to be used on the VMSS that will be deployed. The password must meet the complexity requirements of Azure.\"\n default = \"\"\n }\n \n variable \"ssh_key\" {\n- description = \"Path to the public key to be used for ssh access to the VM. Only used with non-Windows vms and can be left as-is even if using Windows vms. If specifying a path to a certification on a Windows machine to provision a linux vm use the / in the path versus backslash. e.g. c:/home/id_rsa.pub\"\n+ description = \"Path to the public key to be used for ssh access to the VM. Only used with non-Windows vms and can be left as-is even if using Windows vms. If specifying a path to a certification on a Windows machine to provision a linux vm use the / in the path versus backslash. e.g. c:/home/id_rsa.pub.\"\n default = \"~/.ssh/id_rsa.pub\"\n }\n \n@@ -32,7 +32,7 @@ variable \"remote_port\" {\n }\n \n variable \"admin_username\" {\n- description = \"The admin username of the VM that will be deployed\"\n+ description = \"The admin username of the VM that will be deployed.\"\n default = \"azureuser\"\n }\n \n@@ -52,12 +52,12 @@ variable \"vm_size\" {\n }\n \n variable \"nb_instances\" {\n- description = \"Specify the number of vm instances\"\n+ description = \"Specify the number of vm instances.\"\n default = \"1\"\n }\n \n variable \"vm_hostname\" {\n- description = \"local name of the VM\"\n+ description = \"local name of the Virtual Machine.\"\n default = \"myvm\"\n }\n \n@@ -118,44 +118,44 @@ variable \"nb_public_ip\" {\n \n variable \"delete_os_disk_on_termination\" {\n type = bool\n- description = \"Delete datadisk when machine is terminated\"\n+ description = \"Delete datadisk when machine is terminated.\"\n default = false\n }\n \n variable \"data_sa_type\" {\n- description = \"Data Disk Storage Account type\"\n+ description = \"Data Disk Storage Account type.\"\n default = \"Standard_LRS\"\n }\n \n variable \"data_disk_size_gb\" {\n- description = \"Storage data disk size size\"\n+ description = \"Storage data disk size size.\"\n default = 30\n }\n \n variable \"boot_diagnostics\" {\n type = bool\n- description = \"(Optional) Enable or Disable boot diagnostics\"\n+ description = \"(Optional) Enable or Disable boot diagnostics.\"\n default name = false\n }\n \n variable \"boot_diagnostics_sa_type\" {\n- description = \"(Optional) Storage account type for boot diagnostics\"\n+ description = \"(Optional) Storage account type for boot diagnostics.\"\n default = \"Standard_LRS\"\n }\n \n variable \"enable_accelerated_networking\" {\n type = bool\n- description = \"(Optional) Enable accelerated networking on Network interface\"\n+ description = \"(Optional) Enable accelerated networking on Network interface.\"\n default = false\n }\n \n variable \"enable_ssh_key\" {\n type = bool\n- description = \"(Optional) Enable ssh key authentication in Linux virtual Machine\"\n+ description = \"(Optional) Enable ssh key authentication in Linux virtual Machine.\"\n default = true\n }\n \n variable \"nb_data_disk\" {\n- description = \"(Optional) Number of the data disks attached to each virtual machine\"\n+ description = \"(Optional) Number of the data disks attached to each virtual machine.\"\n default = 0\n }\n---\n\n\n---\n\nChoice B:\nvariables.tf\n@@ -1,9 +1,9 @@\n variable \"resource_group_name\" {\n- description = \"The name of the resource group in which the resources will be created\"\n+ description = \"The name of the resource group in which the resources will be created.\"\n }\n \n variable \"location\" {\n- description = \"(Optional) The location in which the resources will be created\"\n+ description = \"(Optional) The location in which the resources will be created.\"\n default = \"\"\n }\n \n@@ -17,12 +17,12 @@ variable \"public_ip_dns\" {\n }\n \n variable \"admin_password\" {\n- description = \"The admin password to be used on the VMSS that will be deployed. The password must meet the complexity requirements of Azure\"\n+ description = \"The admin password to be used on the VMSS that will be deployed. The password must meet the complexity requirements of Azure.\"\n default = \"\"\n }\n \n variable \"ssh_key\" {\n- description = \"Path to the public key to be used for ssh access to the VM. Only used with non-Windows vms and can be left as-is even if using Windows vms. If specifying a path to a certification on a Windows machine to provision a linux vm use the / in the path versus backslash. e.g. c:/home/id_rsa.pub\"\n+ description = \"Path to the public key to be used for ssh access to the VM. Only used with non-Windows vms and can be left as-is even if using Windows vms. If specifying a path to a certification on a Windows machine to provision a linux vm use the / in the path versus backslash. e.g. c:/home/id_rsa.pub.\"\n default = \"~/.ssh/id_rsa.pub\"\n }\n \n@@ -32,7 +32,7 @@ variable \"remote_port\" {\n }\n \n variable \"admin_username\" {\n- description = \"The admin username of the VM that will be deployed\"\n+ description = \"The admin username of the VM that will be deployed.\"\n default = \"azureuser\"\n }\n \n@@ -52,12 +52,12 @@ variable \"vm_size\" {\n }\n \n variable \"nb_instances\" {\n- description = \"Specify the number of vm instances\"\n+ description = \"Specify the number of vm instances.\"\n default = \"1\"\n }\n \n variable \"vm_hostname\" {\n- description = \"local name of the VM\"\n+ description = \"local name of the Virtual Machine.\"\n default = \"myvm\"\n }\n \n@@ -118,44 +118,44 @@ variable \"nb_public_ip\" {\n \n variable \"delete_os_disk_on_termination\" {\n type = bool\n- description = \"Delete datadisk when machine is terminated\"\n+ description = \"Delete datadisk when machine is terminated.\"\n default = false\n }\n \n variable \"data_sa_type\" {\n- description = \"Data Disk Storage Account type\"\n+ description = \"Data Disk Storage Account type.\"\n default = \"Standard_LRS\"\n }\n \n variable \"data_disk_size_gb\" {\n- description = \"Storage data disk size size\"\n+ description = \"Storage data disk size size.\"\n default = 30\n }\n \n variable \"boot_diagnostics\" {\n type = bool\n- description = \"(Optional) Enable or Disable boot diagnostics\"\n+ description = \"(Optional) Enable or Disable boot diagnostics.\"\n default = false\n }\n \n variable \"boot_diagnostics_sa_type\" {\n- description = \"(Optional) Storage account type for boot diagnostics\"\n+ description = \"(Optional) Storage account type for boot diagnostics.\"\n default = \"Standard_LRS\"\n }\n \n variable \"enable_accelerated_networking\" {\n type = bool\n- description = \"(Optional) Enable accelerated networking on Network interface\"\n+ description = \"(Optional) Enable accelerated networking on Network interface.\"\n default = false\n }\n \n variable \"enable_ssh_key\" {\n type = bool\n- description = \"(Optional) Enable ssh key authentication in Linux virtual Machine\"\n+ description = \"(Optional) Enable ssh key authentication in Linux virtual Machine.\"\n default = true\n }\n \n variable \"nb_data_disk\" {\n- description = \"(Optional) Number of the data disks attached to each virtual machine\"\n+ description = \"(Optional) Number of the data disks attached to each virtual machine.\"\n default = 0\n }\n---\n\n\n---\n\nChoice C:\nvariables.tf\n@@ -1,9 +1,9 @@\n variable \"resource_group_name\" {\n- description = \"The name of the resource group in which the resources will be created\"\n+ description = \"The name of the resource group in which the resources will be created.\"\n }\n \n variable \"location\" {\n- description = \"(Optional) The location in which the resources will be created\"\n+ description = \"(Optional) The location in which the resources will be created.\"\n default = \"\"\n }\n \n@@ -17,12 +17,12 @@ variable \"public_ip_dns\" {\n }\n \n variable \"admin_password\" {\n- description = \"The admin password to be used on the VMSS that will be deployed. The password must meet the complexity requirements of Azure\"\n+ description = \"The admin password to be used on the VMSS that will be deployed. The password must meet the complexity requirements of Azure.\"\n default = \"\"\n }\n \n variable \"ssh_key\" {\n- description = \"Path to the public key to be used for ssh access to the VM. Only used with non-Windows vms and can be left as-is even if using Windows vms. If specifying a path to a certification on a Windows machine to provision a linux vm use the / in the path versus backslash. e.g. c:/home/id_rsa.pub\"\n+ description = \"Path to the public key to be used for ssh access to the VM. Only used with non-Windows vms and can be left as-is even if using Windows vms. If specifying a path to a certification on a Windows machine to provision a linux vm use the / in the path versus backslash. e.g. c:/home/id_rsa.pub.\"\n default = \"~/.ssh/id_rsa.pub\"\n }\n \n@@ -32,7 +32,7 @@ variable \"remote_port\" {\n }\n \n variable \"admin_username\" {\n- description = \"The admin username of the VM that will be deployed\"\n+ description = \"The admin username of the VM that will be deployed.\"\n default = \"azureuser\"\n }\n \n@@ -52,12 +52,12 @@ variable \"vm_size\" {\n }\n \n variable \"nb_instances\" {\n- description = \"Specify the number of vm instances\"\n+ description = \"Specify the number of vm instances.\"\n default = \"1\"\n }\n \n variable \"vm_hostname\" {\n- description = \"local name of the VM\"\n+ description = \"local name of the Virtual Machine.\"\n default = \"myvm\"\n }\n \n@@ -118,44 +118,44 @@ variable \"nb_public_ip\" {\n \n variable \"delete_os_disk_on_termination\" {\n type = bool\n- description = \"Delete datadisk when machine is terminated\"\n+ description = \"Delete datadisk when machine is terminated.\"\n default = false\n }\n \n variable \"data_sa_type\" {\n- description = \"Data Disk Storage Account type\"\n+ description = \"Data Disk Storage Account type.\"\n default = \"Standard_LRS\"\n }\n \n variable \"data_disk_size_gb\" {\n- description = \"Storage data disk size size\"\n+ description = \"Storage data disk size size.\"\n default = 30\n }\n \n variable \"boot_diagnostics\" {\n type = bool\n- description = \"(Optional) Enable or Disable boot diagnostics\"\n+ description = \"(Optional) Enable or Disable boot diagnostics.\"\n default = false\n }\n \n variable \"boot_diagnostics_sa_type\" {\n- description = \"(Optional) Storage account type for boot diagnostics\"\n+ description = \"(Optional) Storage account type for boot diagnostics.\"\n default = \"Standard_LRS\"\n }\n \n variable \"enable_accelerated_networking\" {\n type = bool\n- description = \"(Optional) Enable accelerated networking on Network interface\"\n+ description = \"(Optional) Enable accelerated networking on Network interface.\"\n default false\n }\n \n variable \"enable_ssh_key\" {\n type = bool\n- description = \"(Optional) Enable ssh key authentication in Linux virtual Machine\"\n+ description = \"(Optional) Enable ssh key authentication in Linux virtual Machine.\"\n default = true\n }\n \n variable \"nb_data_disk\" {\n- description = \"(Optional) Number of the data disks attached to each virtual machine\"\n+ description = \"(Optional) Number of the data disks attached to each virtual machine.\"\n default = 0\n }\n---\n\n\n---\n\nChoice D:\nvariables.tf\n@@ -1,9 +1,9 @@\n variable \"resource_group_name\" {\n- description = \"The name of the resource group in which the resources will be created\"\n+ description = \"The name of the resource group in which the resources will be created.\"\n }\n \n variable \"location\" {\n- description = \"(Optional) The location in which the resources will be created\"\n+ description = \"(Optional) The location in which the resources will be created.\"\n default = \"\"\n }\n \n@@ -17,12 +17,12 @@ variable \"public_ip_dns\" {\n }\n \n variable \"admin_password\" {\n- description = \"The admin password to be used on the VMSS that will be deployed. The password must meet the complexity requirements of Azure\"\n+ description = \"The admin password to be used on the VMSS that will be deployed. The password must meet the complexity requirements of Azure.\"\n default = \"\"\n }\n \n variable \"ssh_key\" {\n- description = \"Path to the public key to be used for ssh access to the VM. Only used with non-Windows vms and can be left as-is even if using Windows vms. If specifying a path to a certification on a Windows machine to provision a linux vm use the / in the path versus backslash. e.g. c:/home/id_rsa.pub\"\n+ description = \"Path to the public key to be used for ssh access to the VM. Only used with non-Windows vms and can be left as-is even if using Windows vms. If specifying a path to a certification on a Windows machine to provision a linux vm use the / in the path versus backslash. e.g. c:/home/id_rsa.pub.\"\n default = \"~/.ssh/id_rsa.pub\"\n }\n \n@@ -32,7 +32,7 @@ variable \"remote_port\" {\n }\n \n variable \"admin_username\" as-is description = \"The admin username of the VM that will be deployed\"\n+ description = \"The admin username of the VM that will be deployed.\"\n default = \"azureuser\"\n }\n \n@@ -52,12 +52,12 @@ variable \"vm_size\" {\n }\n \n variable \"nb_instances\" {\n- description = \"Specify the number of vm instances\"\n+ description = \"Specify the number of vm instances.\"\n default = \"1\"\n }\n \n variable \"vm_hostname\" {\n- description = \"local name of the VM\"\n+ description = \"local name of the Virtual Machine.\"\n default = \"myvm\"\n }\n \n@@ -118,44 +118,44 @@ variable \"nb_public_ip\" {\n \n variable \"delete_os_disk_on_termination\" {\n type = bool\n- description = \"Delete datadisk when machine is terminated\"\n+ description = \"Delete datadisk when machine is terminated.\"\n default = false\n }\n \n variable \"data_sa_type\" {\n- description = \"Data Disk Storage Account type\"\n+ description = \"Data Disk Storage Account type.\"\n default = \"Standard_LRS\"\n }\n \n variable \"data_disk_size_gb\" {\n- description = \"Storage data disk size size\"\n+ description = \"Storage data disk size size.\"\n default = 30\n }\n \n variable \"boot_diagnostics\" {\n type = bool\n- description = \"(Optional) Enable or Disable boot diagnostics\"\n+ description = \"(Optional) Enable or Disable boot diagnostics.\"\n default = false\n }\n \n variable \"boot_diagnostics_sa_type\" {\n- description = \"(Optional) Storage account type for boot diagnostics\"\n+ description = \"(Optional) Storage account type for boot diagnostics.\"\n default = \"Standard_LRS\"\n }\n \n variable \"enable_accelerated_networking\" {\n type = bool\n- description = \"(Optional) Enable accelerated networking on Network interface\"\n+ description = \"(Optional) Enable accelerated networking on Network interface.\"\n default = false\n }\n \n variable \"enable_ssh_key\" {\n type = bool\n- description = \"(Optional) Enable ssh key authentication in Linux virtual Machine\"\n+ description = \"(Optional) Enable ssh key authentication in Linux virtual Machine.\"\n default = true\n }\n \n variable \"nb_data_disk\" {\n- description = \"(Optional) Number of the data disks attached to each virtual machine\"\n+ description = \"(Optional) Number of the data disks attached to each virtual machine.\"\n default = 0\n }\n---\n\n\n---\n" } ]
B
[ { "role": "system", "content": "Choose the best Terraform patch (A/B/C/D) that implements the requested Azure Compute change safely. Only respond with a single uppercase letter." }, { "role": "user", "content": "Task Description:\nUsing Terraform 0.12.x, if the current default value \"\" is used for `public_ip_dns` an error will occur:\r\n\r\n```\r\nError: domain_name_label must contain only lowercase alphanumeric characters, numbers and hyphens. It must start with a letter and end only with a number or letter\r\n```\r\n\r\nso I propose changing the default value to `[null]` which will ensure that `domain_name_label` remains unset. I think this also addresses https://github.com/Azure/terraform-azurerm-compute/issues/13, https://github.com/Azure/terraform-azurerm-compute/issues/49.\r\n\r\nThank you!\n\n---\n\nChoice A:\nvariables.tf\n@@ -13,7 +13,7 @@ variable \"vnet_subnet_id\" {\n \n variable \"public_ip_dns\" {\n description = \"Optional globally unique per datacenter region domain name label to apply to each public ip address. e.g. thisvar.varlocation.cloudapp.azure.com where you specify only thisvar here. This is an array of names which will pair up sequentially to the number of public ips defined in var.nb_public_ip. One name or empty string is required for every public ip. If no public ip is desired, then set this to an array with a single empty string.\"\n- default = [\"\"]\n+ default = [null]\n }\n \n variable \"admin_password\" {\n---\n\n\n---\n\nChoice B:\nvariables.tf\n@@ -13,7 +13,7 @@ variable \"vnet_subnet_id\" {\n \n variable \"public_ip_dns\" {\n description = \"Optional globally unique per datacenter region domain name label to apply to each public ip address. e.g. thisvar.varlocation.cloudapp.azure.com where you specify only thisvar here. This is an array of names which will pair up sequentially to the number of public ips defined in var.nb_public_ip. One name or empty string is required for every public ip. If no public ip is desired, then set this to an array with a single empty string.\"\n- default \n = [\"\"]\n+ default = [null]\n }\n \n variable \"admin_password\" {\n---\n\n\n---\n\nChoice C:\nvariables.tf\n@@ -13,7 +13,7 @@ variable \"vnet_subnet_id\" {\n \n variable \"public_ip_dns\" {\n description = \"Optional globally unique per datacenter region domain name label to apply to each public ip address. e.g. thisvar.varlocation.cloudapp.azure.com where you specify only thisvar here. This is an array of names which will pair up sequentially to the number of public ips defined in var.nb_public_ip. One name or empty string is required for every public ip. If no public ip is desired, then set this to an array with a single empty string.\"\n- = = [\"\"]\n+ default = [null]\n }\n \n variable \"admin_password\" {\n---\n\n\n---\n\nChoice D:\nvariables.tf\n@@ -13,7 +13,7 @@ variable \"vnet_subnet_id\" {\n \n variable \"public_ip_dns\" {\n description = \"Optional globally unique per datacenter region domain name label to apply to each public ip address. e.g. thisvar.varlocation.cloudapp.azure.com where you specify only thisvar here. This is an array of \"admin_password\" which will pair up sequentially to the number of public ips defined in var.nb_public_ip. One name or empty string is required for every public ip. If no public ip is desired, then set this to an array with a single empty string.\"\n- default = [\"\"]\n+ default = [null]\n }\n \n variable \"admin_password\" {\n---\n\n\n---\n" } ]
A
[ { "role": "system", "content": "Choose the best Terraform patch (A/B/C/D) that implements the requested Azure Compute change safely. Only respond with a single uppercase letter." }, { "role": "user", "content": "Task Description:\nUsing Terraform 0.12.x, if the current default value \"\" is used for `public_ip_dns` an error will occur:\r\n\r\n```\r\nError: domain_name_label must contain only lowercase alphanumeric characters, numbers and hyphens. It must start with a letter and end only with a number or letter\r\n```\r\n\r\nso I propose adding a check to see if the value is the empty string, and if so set `public_ip_dns = null`, otherwise to the value itself. I think this also addresses https://github.com/Azure/terraform-azurerm-compute/issues/13.\r\n\r\nThank you!\n\n---\n\nChoice A:\nmain.tf\n@@ -251,7 +251,7 @@ resource \"azurerm_public_ip\" \"vm\" {\n location = \"${var.location}\"\n resource_group_name = \"${azurerm_resource_group.vm.name}\"\n public_ip_address_allocation = \"${var.public_ip_address_allocation}\"\n- domain_name_label = \"${element(var.public_ip_dns, count.index)}\"\n+ domain_name_label = element(var.public_ip_dns, count.index) == \"\" ? null : element(var.public_ip_dns, count.index)\n tags = \"${var.tags}\"\n }\n \n---\n\n\n---\n\nChoice B:\nmain.tf\n@@ -251,7 +251,7 @@ resource \"azurerm_public_ip\" \"vm\" {\n location = \"${var.location}\"\n resource_group_name = \"${azurerm_resource_group.vm.name}\"\n public_ip_address_allocation = \"${var.public_ip_address_allocation}\"\n- domain_name_label = count.index)}\"\n+ domain_name_label = element(var.public_ip_dns, count.index) == \"\" ? null : element(var.public_ip_dns, count.index)\n tags = \"${var.tags}\"\n }\n \n---\n\n\n---\n\nChoice C:\nmain.tf\n@@ -251,7 +251,7 @@ resource \"azurerm_public_ip\" \"vm\" {\n location \"${var.location}\"\n resource_group_name = \"${azurerm_resource_group.vm.name}\"\n public_ip_address_allocation = \"${var.public_ip_address_allocation}\"\n- domain_name_label = \"${element(var.public_ip_dns, count.index)}\"\n+ domain_name_label = element(var.public_ip_dns, count.index) == \"\" ? null : element(var.public_ip_dns, count.index)\n tags = \"${var.tags}\"\n }\n \n---\n\n\n---\n\nChoice D:\nmain.tf\n@@ -251,7 +251,7 @@ resource \"azurerm_public_ip\" \"vm\" {\n location = \"${var.location}\"\n resource_group_name = \"${azurerm_resource_group.vm.name}\"\n public_ip_address_allocation = \"${var.public_ip_address_allocation}\"\n- domain_name_label = \"${element(var.public_ip_dns, count.index)}\"\n+ domain_name_label = element(var.public_ip_dns, count.index) == \"\" ? null : element(var.public_ip_dns, count.index)\n tags = = \"${var.tags}\"\n }\n \n---\n\n\n---\n" } ]
A
[ { "role": "system", "content": "Choose the best Terraform patch (A/B/C/D) that implements the requested Azure Compute change safely. Only respond with a single uppercase letter." }, { "role": "user", "content": "Task Description:\nResolves #99, allowing use with TF 0.12.\r\n\r\nPrior to this change, Terraform complains because of the version of the Random provider required.\r\n\r\n```\r\n$ terraform init\r\nInitializing modules...\r\nDownloading Azure/compute/azurerm 1.2.1 for VM...\r\n- VM in .terraform/modules/VM/Azure-terraform-azurerm-compute-dbe0daa\r\n- VM.os in .terraform/modules/VM/Azure-terraform-azurerm-compute-dbe0daa/os\r\n\r\nInitializing the backend...\r\n\r\nInitializing provider plugins...\r\n- Checking for available provider plugins...\r\n\r\nProvider \"random\" v1.3.1 is not compatible with Terraform 0.12.3.\r\n\r\nProvider version 2.1.0 is the earliest compatible version. Select it with \r\nthe following version constraint:\r\n\r\n\tversion = \"~> 2.1\"\r\n\r\nTerraform checked all of the plugin versions matching the given constraint:\r\n ~> 1.0\r\n\r\nConsult the documentation for this provider for more information on\r\ncompatibility between provider and Terraform versions.\r\n\r\n\r\nError: incompatible provider version\r\n```\r\n\r\nChanging this requirement doesn't impact the module functionality in my testing, and allows usage on Terraform 0.12.3;\r\n\r\n```\r\n$ terraform init\r\nInitializing modules...\r\n\r\nInitializing the backend...\r\n\r\nInitializing provider plugins...\r\n- Checking for available provider plugins...\r\n- Downloading plugin for provider \"random\" (terraform-providers/random) 2.1.2...\r\n\r\nTerraform has been successfully initialized!\r\n```\n\n---\n\nChoice A:\n{\n- -3,7 +3,7 @@ provider \"azurerm\" {\n }\n \n provider \"random\" {\n- version = \"~> 1.0\"\n+ version = \"~> 2.1\"\n }\n \n module \"os\" {\n---\n\n\n---\n\nChoice B:\nmain.tf\n@@ -3,7 +3,7 @@ provider \"azurerm\" {\n }\n \n provider \"random\" {\n- version = \"~> 1.0\"\n+ version = \"~> 2.1\"\n }\n \n module \"os\" {\n---\n\n\n---\n\nChoice C:\nmain.tf\n@@ -3,7 +3,7 @@ provider \"azurerm\" {\n = \n provider \"random\" {\n- version = \"~> 1.0\"\n+ version = \"~> 2.1\"\n }\n \n module \"os\" {\n---\n\n\n---\n\nChoice D:\nmain.tf\n@@ -3,7 +3,7 @@ provider \"azurerm\" {\n }\n \n version \"random\" {\n- version = \"~> 1.0\"\n+ version = \"~> 2.1\"\n }\n \n module \"os\" {\n---\n\n\n---\n" } ]
B
[ { "role": "system", "content": "Choose the best Terraform patch (A/B/C/D) that implements the requested Azure Compute change safely. Only respond with a single uppercase letter." }, { "role": "user", "content": "Task Description:\n### Reason For PR\r\nThis PR modifies where the security group rule is created. Before the security group rule was an inline rule in the security group resource. By using an inline rule it causes problem later if you wish to add additional rules to the security group. Basically, between terraform apply the additional rules will be added or removed. \r\n\r\nFor convenience I also added the output `network_security_group_name` so that it can be used for additional `azurerm_network_security_rule` resources. \r\n\r\n### Example Usage\r\n```\r\nmodule \"cluster\" {\r\n source = \"../terraform-azurerm-compute\"\r\n\r\n nb_instances = \"1\"\r\n admin_username = \"${var.user_name}\"\r\n resource_group_name = \"${var.resource_group_name}\"\r\n location = \"${var.location}\"\r\n nb_public_ip = \"1\"\r\n public_ip_dns = [\"test-cluster\"]\r\n ssh_key = \"${var.public_key_path}\"\r\n}\r\n\r\nresource \"azurerm_network_security_rule\" \"new_rule\" {\r\n name = \"allow_remote_8080_in_all\"\r\n description = \"Allow remote protocol in from all locations\"\r\n priority = 101\r\n direction = \"Inbound\"\r\n access = \"Allow\"\r\n protocol = \"Tcp\"\r\n source_port_range = \"*\"\r\n destination_port_range = \"8080\"\r\n source_address_prefix = \"*\"\r\n destination_address_prefix = \"*\"\r\n resource_group_name = \"${var.resource_group_name}\"\r\n network_security_group_name= \"${module.cluster.network_security_group_name}\"\r\n}\r\n```\r\n\r\nAny feedback and suggestions are welcome. Thanks for the module!\r\n\r\n#103 \n\n---\n\nChoice A:\nmain.tf\n@@ -260,22 +260,24 @@ resource \"azurerm_network_security_group\" \"vm\" {\n location = \"${azurerm_resource_group.vm.location}\"\n resource_group_name = \"${azurerm_resource_group.vm.name}\"\n \n- security_rule {\n- name = \"allow_remote_${coalesce(var.remote_port,module.os.calculated_remote_port)}_in_all\"\n- description = \"Allow remote protocol in from all locations\"\n- priority = 100\n- direction = \"Inbound\"\n- access = \"Allow\"\n- protocol = \"Tcp\"\n- source_port_range = \"*\"\n- destination_port_range = \"${coalesce(var.remote_port,module.os.calculated_remote_port)}\"\n- source_address_prefix = \"*\"\n- destination_address_prefix = \"*\"\n- }\n-\n tags = \"${var.tags}\"\n }\n \n+resource \"azurerm_network_security_rule\" \"vm\" {\n+ name = \"allow_remote_${coalesce(var.remote_port,module.os.calculated_remote_port)}_in_all\"\n+ description = \"Allow remote protocol in from all locations\"\n+ priority = 100\n+ direction = \"Inbound\"\n+ access = \"Allow\"\n+ protocol = \"Tcp\"\n+ source_port_range = \"*\"\n+ destination_port_range = \"${coalesce(var.remote_port,module.os.calculated_remote_port)}\"\n+ source_address_prefix = \"*\"\n+ destination_address_prefix = \"*\"\n+ resource_group_name = \"${azurerm_resource_group.vm.name}\"\n+ network_security_group_name = \"${azurerm_network_security_group.vm.name}\"\n+}\n+\n resource \"azurerm_network_interface\" \"vm\" {\n count = \"${var.nb_instances}\"\n name = \"nic-${var.vm_hostname}-${count.index}\"\n---\noutputs.tf\n@@ -8,6 +8,11 @@ output \"network_security_group_id\" {\n value = \"${azurerm_network_security_group.vm.id}\"\n }\n \n+output \"network_security_group_name\" {\n+ description = \"name of the security group provisioned\"\n+ value = \"${azurerm_network_security_group.vm.name}\"\n+}\n+\n output \"network_interface_ids\" {\n description = \"ids of the vm nics provisoned.\"\n value = \"${azurerm_network_interface.vm.*.id}\"\n---\n\n\n---\n\nChoice B:\nmain.tf\n@@ -260,22 +260,24 @@ resource \"azurerm_network_security_group\" \"vm\" {\n location = \"${azurerm_resource_group.vm.location}\"\n resource_group_name = \"${azurerm_resource_group.vm.name}\"\n \n- security_rule {\n- name = \"allow_remote_${coalesce(var.remote_port,module.os.calculated_remote_port)}_in_all\"\n- description = \"Allow remote protocol in from all locations\"\n- priority = 100\n- direction = \"Inbound\"\n- access = \"Allow\"\n- protocol = \"Tcp\"\n- source_port_range = \"*\"\n- destination_port_range = \"${coalesce(var.remote_port,module.os.calculated_remote_port)}\"\n- source_address_prefix = \"*\"\n- destination_address_prefix = \"*\"\n- }\n-\n tags = \"${var.tags}\"\n }\n \n+resource \"azurerm_network_security_rule\" \"vm\" {\n+ name = \"allow_remote_${coalesce(var.remote_port,module.os.calculated_remote_port)}_in_all\"\n+ description = \"Allow remote protocol in from all locations\"\n+ priority = 100\n+ direction = \"Inbound\"\n+ access = \"Allow\"\n+ protocol = \"Tcp\"\n+ source_port_range = \"*\"\n+ destination_port_range = \"${coalesce(var.remote_port,module.os.calculated_remote_port)}\"\n+ source_address_prefix = \"*\"\n+ destination_address_prefix = \"*\"\n+ resource_group_name = \"${azurerm_resource_group.vm.name}\"\n+ network_security_group_name = \"${azurerm_network_security_group.vm.name}\"\n+}\n+\n resource \"azurerm_network_interface\" \"vm\" {\n count = \"${var.nb_instances}\"\n name = \"nic-${var.vm_hostname}-${count.index}\"\n---\noutputs.tf\n@@ -8,6 +8,11 @@ output \"network_security_group_id\" {\n value = \"${azurerm_network_security_group.vm.id}\"\n }\n \n+output \"network_security_group_name\" {\n+ description = \"name of the security group provisioned\"\n+ value = \"${azurerm_network_security_group.vm.name}\"\n+}\n+\n output \"network_interface_ids\" {\n description = \"ids of the vm nics provisoned.\"\n value = \"${azurerm_network_interface.vm.*.id}\"\n---\n\n\n---\n\nChoice C:\nmain.tf\n@@ -260,22 +260,24 @@ resource \"azurerm_network_security_group\" \"vm\" {\n location = \"${azurerm_resource_group.vm.location}\"\n resource_group_name = \"${azurerm_resource_group.vm.name}\"\n \n- security_rule {\n- name = \"allow_remote_${coalesce(var.remote_port,module.os.calculated_remote_port)}_in_all\"\n- description = \"Allow remote protocol in from all locations\"\n- priority = 100\n- direction = \"Inbound\"\n- access = \"Allow\"\n- protocol = \"Tcp\"\n- source_port_range = \"*\"\n- destination_port_range = \"${coalesce(var.remote_port,module.os.calculated_remote_port)}\"\n- source_address_prefix = \"*\"\n- destination_address_prefix = \"*\"\n- }\n-\n tags = \"${var.tags}\"\n }\n \n+resource \"azurerm_network_security_rule\" \"vm\" {\n+ name = \"allow_remote_${coalesce(var.remote_port,module.os.calculated_remote_port)}_in_all\"\n+ description = \"Allow remote protocol in from all locations\"\n+ priority = 100\n+ direction = \"Inbound\"\n+ access = \"Allow\"\n+ protocol = \"Tcp\"\n+ source_port_range = \"*\"\n+ destination_port_range = \"${coalesce(var.remote_port,module.os.calculated_remote_port)}\"\n+ source_address_prefix = \"*\"\n+ destination_address_prefix = \"*\"\n+ resource_group_name = \"${azurerm_resource_group.vm.name}\"\n+ network_security_group_name = \"${azurerm_network_security_group.vm.name}\"\n+}\n+\n resource \"azurerm_network_interface\" \"vm\" {\n count = \"${var.nb_instances}\"\n name = \"nic-${var.vm_hostname}-${count.index}\"\n---\noutputs.tf\n@@ -8,6 +8,11 @@ output \"network_security_group_id\" {\n value = \"${azurerm_network_security_group.vm.id}\"\n }\n \n+output \"network_security_group_name\" {\n+ description = \"name of the security group provisioned\"\n+ value = \"${azurerm_network_security_group.vm.name}\"\n+}\n+\n output \"network_interface_ids\" {\n description = \"ids of the vm nics provisoned.\"\n value = \"${azurerm_network_interface.vm.*.id}\"\n---\n\n\n---\n\nChoice D:\nmain.tf\n@@ -260,22 +260,24 @@ resource \"azurerm_network_security_group\" \"vm\" {\n location = \"${azurerm_resource_group.vm.location}\"\n resource_group_name = \"${azurerm_resource_group.vm.name}\"\n \n- security_rule {\n- name = \"allow_remote_${coalesce(var.remote_port,module.os.calculated_remote_port)}_in_all\"\n- description = \"Allow remote protocol in from all locations\"\n- priority = 100\n- direction = \"Inbound\"\n- access = \"Allow\"\n- protocol = \"Tcp\"\n- source_port_range = \"*\"\n- destination_port_range = \"${coalesce(var.remote_port,module.os.calculated_remote_port)}\"\n- source_address_prefix = \"*\"\n- destination_address_prefix = \"*\"\n- }\n-\n tags = \"${var.tags}\"\n }\n \n+resource \"azurerm_network_security_rule\" \"vm\" {\n+ name = \"allow_remote_${coalesce(var.remote_port,module.os.calculated_remote_port)}_in_all\"\n+ description = \"Allow remote protocol in from all locations\"\n+ priority = 100\n+ direction = \"Inbound\"\n+ access = \"Allow\"\n+ protocol = \"Tcp\"\n+ source_port_range = \"*\"\n+ destination_port_range = \"${coalesce(var.remote_port,module.os.calculated_remote_port)}\"\n+ source_address_prefix = \"*\"\n+ destination_address_prefix = \"*\"\n+ resource_group_name = \"${azurerm_resource_group.vm.name}\"\n+ network_security_group_name = \"${azurerm_network_security_group.vm.name}\"\n+}\n+\n resource \"azurerm_network_interface\" \"vm\" {\n count = \"${var.nb_instances}\"\n name = \"nic-${var.vm_hostname}-${count.index}\"\n---\noutputs.tf\n@@ -8,6 +8,11 @@ output \"network_security_group_id\" {\n value = \"${azurerm_network_security_group.vm.id}\"\n }\n \n+output \"network_security_group_name\" {\n+ description = \"name of the security group provisioned\"\n+ value = \"${azurerm_network_security_group.vm.name}\"\n+}\n+\n output \"network_interface_ids\" {\n description = \"ids of the vm nics provisoned.\"\n value = \"${azurerm_network_interface.vm.*.id}\"\n---\n\n\n---\n" } ]
A
[ { "role": "system", "content": "Choose the best Terraform patch (A/B/C/D) that implements the requested Azure Compute change safely. Only respond with a single uppercase letter." }, { "role": "user", "content": "Task Description:\nOriginal conditions setting amount of VMs to be created according to detected type of virtual machine based on variables `vm_os_simple` and `vm_os_offer` \r\n```\r\ncount = \"${!contains(list(\"${var.vm_os_simple}\",\"${var.vm_os_offer}\"), \"Windows\") && var.is_windows_image != \"true\" && var.data_disk == \"true\" ? var.nb_instances : 0}\"\r\n```\r\nhas been comparing complete strings in list (i.e. `\"Windows\" == \"Windows\"`, but `\"WindowsServer\" != \"Windows\"`):\r\n\r\n```\r\n> contains(list(\"Windows\", \"Ubuntu\"), \"Windows\")\r\ntrue\r\n> contains(list(\"WindowsServer\", \"Ubuntu\"), \"Windows\")\r\nfalse\r\n```\r\nI have changed conditions for `count` variable to check substrings (case insensitive), which is in my opinion \"more versatile\"\r\n```\r\n> contains(list(\"${replace(\"WindowsServer\", \"/(?:.*)((?i)windows)(?:.*)/\", \"windows\")}\", \"${replace(\"Ubuntu\", \"/(?:.*)((?i)windows)(?:.*)/\", \"windows\")}\"), \"windows\")\r\ntrue\r\n> contains(list(\"${replace(\"Linux\", \"/(?:.*)((?i)windows)(?:.*)/\", \"windows\")}\", \"${replace(\"Ubuntu\", \"/(?:.*)((?i)windows)(?:.*)/\", \"windows\")}\"), \"windows\")\r\nfalse\r\n```\r\n\r\n\n\n---\n\nChoice A:\nmain.tf\n@@ -36,7 +36,7 @@ resource \"azurerm_storage_account\" \"vm-sa\" {\n }\n \n resource \"azurerm_virtual_machine\" \"vm-linux\" {\n- count = \"${!contains(list(\"${var.vm_os_simple}\",\"${var.vm_os_offer}\"), \"Windows\") && var.is_windows_image != \"true\" && var.data_disk == \"false\" ? var.nb_instances : 0}\"\n+ count = \"${!contains(list(\"${replace(\"${var.vm_os_simple}\", \"/(?:.*)((?i)windows)(?:.*)/\", \"windows\")}\", \"${replace(\"${var.vm_os_offer}\", \"/(?:.*)((?i)windows)(?:.*)/\", \"windows\")}\"), \"windows\") && var.is_windows_image != \"true\" && var.data_disk == \"false\" ? var.nb_instances : 0}\"\n name = \"${var.vm_hostname}${count.index}\"\n location = \"${var.location}\"\n resource_group_name = \"${azurerm_resource_group.vm.name}\"\n@@ -85,7 +85,7 @@ resource \"azurerm_virtual_machine\" \"vm-linux\" {\n }\n \n resource \"azurerm_virtual_machine\" \"vm-linux-with-datadisk\" {\n- count = \"${!contains(list(\"${var.vm_os_simple}\",\"${var.vm_os_offer}\"), \"Windows\") && var.is_windows_image != \"true\" && var.data_disk == \"true\" ? var.nb_instances : 0}\"\n+ count = \"${!contains(list(\"${replace(\"${var.vm_os_simple}\", \"/(?:.*)((?i)windows)(?:.*)/\", \"windows\")}\", \"${replace(\"${var.vm_os_offer}\", \"/(?:.*)((?i)windows)(?:.*)/\", \"windows\")}\"), \"windows\") && var.is_windows_image != \"true\" && var.data_disk == \"true\" ? var.nb_instances : 0}\"\n name = \"${var.vm_hostname}${count.index}\"\n location = \"${var.location}\"\n resource_group_name = \"${azurerm_resource_group.vm.name}\"\n@@ -142,7 +142,7 @@ resource \"azurerm_virtual_machine\" \"vm-linux-with-datadisk\" {\n }\n \n resource \"azurerm_virtual_machine\" \"vm-windows\" {\n- count = \"${((var.is_windows_image == \"true\" || contains(list(\"${var.vm_os_simple}\",\"${var.vm_os_offer}\"), \"Windows\")) && var.data_disk == \"false\") ? var.nb_instances : 0}\"\n+ count = \"${((var.is_windows_image == \"true\" || contains(list(\"${replace(\"${var.vm_os_simple}\", \"/(?:.*)((?i)windows)(?:.*)/\", \"windows\")}\", \"${replace(\"${var.vm_os_offer}\", \"/(?:.*)((?i)windows)(?:.*)/\", \"windows\")}\"), \"windows\")) && var.data_disk == \"false\") ? var.nb_instances : 0}\"\n name = \"${var.vm_hostname}${count.index}\"\n location = \"${var.location}\"\n resource_group_name = \"${azurerm_resource_group.vm.name}\"\n@@ -185,7 +185,7 @@ resource \"azurerm_virtual_machine\" \"vm-windows\" {\n }\n \n resource \"azurerm_virtual_machine\" \"vm-windows-with-datadisk\" {\n- count = \"${(var.is_windows_image == \"true\" || contains(list(\"${var.vm_os_simple}\",\"${var.vm_os_offer}\"), \"Windows\")) && var.data_disk == \"true\" ? var.nb_instances : 0}\"\n+ count = \"${((var.is_windows_image == \"true\" || contains(list(\"${replace(\"${var.vm_os_simple}\", \"/(?:.*)((?i)windows)(?:.*)/\", \"windows\")}\", \"${replace(\"${var.vm_os_offer}\", \"/(?:.*)((?i)windows)(?:.*)/\", \"windows\")}\"), \"windows\")) && var.data_disk == \"true\") ? var.nb_instances : 0}\"\n name = \"${var.vm_hostname}${count.index}\"\n location = \"${var.location}\"\n resource_group_name = \"${azurerm_resource_group.vm.name}\"\n---\n\n\n---\n\nChoice B:\nmain.tf\n@@ -36,7 +36,7 @@ resource \"azurerm_storage_account\" \"vm-sa\" {\n }\n \n resource \"azurerm_virtual_machine\" \"vm-linux\" {\n- count = \"${!contains(list(\"${var.vm_os_simple}\",\"${var.vm_os_offer}\"), \"Windows\") && var.is_windows_image != \"true\" && var.data_disk == \"false\" ? var.nb_instances : 0}\"\n+ count = \"${!contains(list(\"${replace(\"${var.vm_os_simple}\", \"/(?:.*)((?i)windows)(?:.*)/\", \"windows\")}\", \"${replace(\"${var.vm_os_offer}\", \"/(?:.*)((?i)windows)(?:.*)/\", \"windows\")}\"), \"windows\") && var.is_windows_image != \"true\" && var.data_disk == \"false\" ? var.nb_instances : 0}\"\n name = \"${var.vm_hostname}${count.index}\"\n location = \"${var.location}\"\n resource_group_name = \"${azurerm_resource_group.vm.name}\"\n@@ -85,7 +85,7 @@ resource \"azurerm_virtual_machine\" \"vm-linux\" {\n }\n \n resource \"azurerm_virtual_machine\" \"vm-linux-with-datadisk\" {\n- count = \"${!contains(list(\"${var.vm_os_simple}\",\"${var.vm_os_offer}\"), \"Windows\") && var.is_windows_image != \"true\" && var.data_disk == \"true\" ? var.nb_instances : 0}\"\n+ count = \"${!contains(list(\"${replace(\"${var.vm_os_simple}\", \"/(?:.*)((?i)windows)(?:.*)/\", \"windows\")}\", \"${replace(\"${var.vm_os_offer}\", \"/(?:.*)((?i)windows)(?:.*)/\", \"windows\")}\"), \"windows\") && var.is_windows_image != \"true\" && var.data_disk == \"true\" ? var.nb_instances : 0}\"\n name = \"${var.vm_hostname}${count.index}\"\n location = \"${var.location}\"\n resource_group_name = \"${azurerm_resource_group.vm.name}\"\n@@ -142,7 +142,7 @@ resource \"azurerm_virtual_machine\" \"vm-linux-with-datadisk\" {\n }\n \n resource \"azurerm_virtual_machine\" \"vm-windows\" {\n- count = \"${((var.is_windows_image == \"true\" || contains(list(\"${var.vm_os_simple}\",\"${var.vm_os_offer}\"), \"Windows\")) && var.data_disk == \"false\") ? var.nb_instances : 0}\"\n+ count = \"${((var.is_windows_image == \"true\" || contains(list(\"${replace(\"${var.vm_os_simple}\", \"/(?:.*)((?i)windows)(?:.*)/\", \"windows\")}\", \"${replace(\"${var.vm_os_offer}\", \"/(?:.*)((?i)windows)(?:.*)/\", \"windows\")}\"), \"windows\")) && var.data_disk == \"false\") ? var.nb_instances : 0}\"\n name = \"${var.vm_hostname}${count.index}\"\n location = \"${var.location}\"\n resource_group_name = \"${azurerm_resource_group.vm.name}\"\n@@ -185,7 +185,7 @@ resource \"azurerm_virtual_machine\" \"vm-windows\" {\n }\n \n resource \"azurerm_virtual_machine\" \"vm-windows-with-datadisk\" {\n- count = \"${(var.is_windows_image == \"true\" || contains(list(\"${var.vm_os_simple}\",\"${var.vm_os_offer}\"), \"Windows\")) && var.data_disk == \"true\" ? var.nb_instances : 0}\"\n+ count = \"${((var.is_windows_image == \"true\" || contains(list(\"${replace(\"${var.vm_os_simple}\", \"/(?:.*)((?i)windows)(?:.*)/\", \"windows\")}\", \"${replace(\"${var.vm_os_offer}\", \"/(?:.*)((?i)windows)(?:.*)/\", \"windows\")}\"), \"windows\")) && var.data_disk == \"true\") ? var.nb_instances : 0}\"\n name = \"${var.vm_hostname}${count.index}\"\n location = \"${var.location}\"\n resource_group_name = \"${azurerm_resource_group.vm.name}\"\n---\n\n\n---\n\nChoice C:\nmain.tf\n@@ -36,7 +36,7 @@ resource \"azurerm_storage_account\" \"vm-sa\" {\n }\n \n resource \"azurerm_virtual_machine\" \"vm-linux\" {\n- count = \"${!contains(list(\"${var.vm_os_simple}\",\"${var.vm_os_offer}\"), \"Windows\") && var.is_windows_image != \"true\" && var.data_disk == \"false\" ? var.nb_instances : 0}\"\n+ count = \"${!contains(list(\"${replace(\"${var.vm_os_simple}\", \"/(?:.*)((?i)windows)(?:.*)/\", \"windows\")}\", \"${replace(\"${var.vm_os_offer}\", \"/(?:.*)((?i)windows)(?:.*)/\", \"windows\")}\"), \"windows\") && var.is_windows_image != \"true\" && var.data_disk == \"false\" ? var.nb_instances : 0}\"\n name = \"${var.vm_hostname}${count.index}\"\n location = \"${var.location}\"\n resource_group_name = \"${azurerm_resource_group.vm.name}\"\n@@ -85,7 +85,7 @@ resource \"azurerm_virtual_machine\" \"vm-linux\" {\n }\n \n resource \"azurerm_virtual_machine\" \"vm-linux-with-datadisk\" {\n- count = \"${!contains(list(\"${var.vm_os_simple}\",\"${var.vm_os_offer}\"), \"Windows\") && var.is_windows_image != \"true\" && var.data_disk == \"true\" ? var.nb_instances : 0}\"\n+ count = \"${!contains(list(\"${replace(\"${var.vm_os_simple}\", \"/(?:.*)((?i)windows)(?:.*)/\", \"windows\")}\", \"${replace(\"${var.vm_os_offer}\", \"/(?:.*)((?i)windows)(?:.*)/\", \"windows\")}\"), \"windows\") && var.is_windows_image != \"true\" && var.data_disk == \"true\" ? var.nb_instances : 0}\"\n name = \"${var.vm_hostname}${count.index}\"\n location = \"${var.location}\"\n resource_group_name = \"${azurerm_resource_group.vm.name}\"\n@@ -142,7 +142,7 @@ resource \"azurerm_virtual_machine\" \"vm-linux-with-datadisk\" {\n }\n \n resource \"azurerm_virtual_machine\" \"vm-windows\" {\n- count = \"${((var.is_windows_image == \"true\" || contains(list(\"${var.vm_os_simple}\",\"${var.vm_os_offer}\"), \"Windows\")) && var.data_disk == \"false\") ? var.nb_instances : 0}\"\n+ count = \"${((var.is_windows_image == \"true\" || contains(list(\"${replace(\"${var.vm_os_simple}\", \"/(?:.*)((?i)windows)(?:.*)/\", \"windows\")}\", \"${replace(\"${var.vm_os_offer}\", \"/(?:.*)((?i)windows)(?:.*)/\", \"windows\")}\"), \"windows\")) && var.data_disk == \"false\") ? var.nb_instances : 0}\"\n name = \"${var.vm_hostname}${count.index}\"\n location = \"${var.location}\"\n resource_group_name = \"${azurerm_resource_group.vm.name}\"\n@@ -185,7 +185,7 @@ resource \"azurerm_virtual_machine\" \"vm-windows\" {\n }\n \n resource \"azurerm_virtual_machine\" \"vm-windows-with-datadisk\" {\n- count = \"${(var.is_windows_image == \"true\" || contains(list(\"${var.vm_os_simple}\",\"${var.vm_os_offer}\"), \"Windows\")) && var.data_disk == \"true\" ? var.nb_instances : 0}\"\n+ count = \"${((var.is_windows_image == \"true\" || contains(list(\"${replace(\"${var.vm_os_simple}\", \"/(?:.*)((?i)windows)(?:.*)/\", \"windows\")}\", \"${replace(\"${var.vm_os_offer}\", \"/(?:.*)((?i)windows)(?:.*)/\", \"windows\")}\"), \"windows\")) && var.data_disk == \"true\") ? var.nb_instances : 0}\"\n name = \"${var.vm_hostname}${count.index}\"\n location = \"${var.location}\"\n resource_group_name = \"${azurerm_resource_group.vm.name}\"\n---\n\n\n---\n\nChoice D:\nmain.tf\n@@ -36,7 +36,7 @@ resource \"azurerm_storage_account\" \"vm-sa\" {\n }\n \n resource \"azurerm_virtual_machine\" \"vm-linux\" {\n- count = \"${!contains(list(\"${var.vm_os_simple}\",\"${var.vm_os_offer}\"), \"Windows\") && var.is_windows_image != \"true\" && var.data_disk == \"false\" ? var.nb_instances : 0}\"\n+ count = \"${!contains(list(\"${replace(\"${var.vm_os_simple}\", \"/(?:.*)((?i)windows)(?:.*)/\", \"windows\")}\", \"${replace(\"${var.vm_os_offer}\", \"/(?:.*)((?i)windows)(?:.*)/\", \"windows\")}\"), \"windows\") && var.is_windows_image != \"true\" && var.data_disk == \"false\" ? var.nb_instances : 0}\"\n name = \"${var.vm_hostname}${count.index}\"\n location = \"${var.location}\"\n resource_group_name = \"${azurerm_resource_group.vm.name}\"\n@@ -85,7 +85,7 @@ resource \"azurerm_virtual_machine\" \"vm-linux\" {\n }\n \n resource \"azurerm_virtual_machine\" \"vm-linux-with-datadisk\" {\n- count = \"${!contains(list(\"${var.vm_os_simple}\",\"${var.vm_os_offer}\"), \"Windows\") && var.is_windows_image != \"true\" && var.data_disk == \"true\" ? var.nb_instances : 0}\"\n+ count = \"${!contains(list(\"${replace(\"${var.vm_os_simple}\", \"/(?:.*)((?i)windows)(?:.*)/\", \"windows\")}\", \"${replace(\"${var.vm_os_offer}\", \"/(?:.*)((?i)windows)(?:.*)/\", \"windows\")}\"), \"windows\") && var.is_windows_image != \"true\" && var.data_disk == \"true\" ? var.nb_instances : 0}\"\n name = \"${var.vm_hostname}${count.index}\"\n location = \"${var.location}\"\n resource_group_name = \"${azurerm_resource_group.vm.name}\"\n@@ -142,7 +142,7 @@ resource \"azurerm_virtual_machine\" \"vm-linux-with-datadisk\" {\n }\n \n resource \"azurerm_virtual_machine\" \"vm-windows\" {\n- count = \"${((var.is_windows_image == \"true\" || contains(list(\"${var.vm_os_simple}\",\"${var.vm_os_offer}\"), \"Windows\")) && var.data_disk == \"false\") ? var.nb_instances : 0}\"\n+ count = \"${((var.is_windows_image == \"true\" || contains(list(\"${replace(\"${var.vm_os_simple}\", \"/(?:.*)((?i)windows)(?:.*)/\", \"windows\")}\", \"${replace(\"${var.vm_os_offer}\", \"/(?:.*)((?i)windows)(?:.*)/\", \"windows\")}\"), \"windows\")) && var.data_disk == \"false\") ? var.nb_instances : 0}\"\n name = \"${var.vm_hostname}${count.index}\"\n location = \"${var.location}\"\n resource_group_name = \"${azurerm_resource_group.vm.name}\"\n@@ -185,7 +185,7 @@ resource \"azurerm_virtual_machine\" \"vm-windows\" {\n }\n \n resource \"azurerm_virtual_machine\" \"vm-windows-with-datadisk\" {\n- count = \"${(var.is_windows_image == \"true\" || contains(list(\"${var.vm_os_simple}\",\"${var.vm_os_offer}\"), \"Windows\")) && var.data_disk == \"true\" ? var.nb_instances : 0}\"\n+ count = \"${((var.is_windows_image == \"true\" || contains(list(\"${replace(\"${var.vm_os_simple}\", \"/(?:.*)((?i)windows)(?:.*)/\", \"windows\")}\", \"${replace(\"${var.vm_os_offer}\", \"/(?:.*)((?i)windows)(?:.*)/\", \"windows\")}\"), \"windows\")) && var.data_disk == \"true\") ? var.nb_instances : 0}\"\n name = \"${var.vm_hostname}${count.index}\"\n location = \"${var.location}\"\n resource_group_name = \"${azurerm_resource_group.vm.name}\"\n---\n\n\n---\n" } ]
A