mirror of
https://github.com/opentofu/opentofu.git
synced 2025-01-07 14:44:11 -06:00
Checking for azure credentials isn't required.
The check for ARM_SUBSCRIPTION_ID breaks the PR testing. The PR testing isn't trying to check acceptance tests anyway. There will still be a correct failure for missing ARM_SUBSCRIPTION_ID when running the acceptance test due to the later testAccPreCheck().
This commit is contained in:
parent
7b133ad356
commit
da12ed640a
@ -16,7 +16,6 @@ func TestAccAzureRMLoadBalancerBackEndAddressPool_basic(t *testing.T) {
|
|||||||
ri := acctest.RandInt()
|
ri := acctest.RandInt()
|
||||||
addressPoolName := fmt.Sprintf("%d-address-pool", ri)
|
addressPoolName := fmt.Sprintf("%d-address-pool", ri)
|
||||||
|
|
||||||
testAccPreCheck(t)
|
|
||||||
subscriptionID := os.Getenv("ARM_SUBSCRIPTION_ID")
|
subscriptionID := os.Getenv("ARM_SUBSCRIPTION_ID")
|
||||||
backendAddressPool_id := fmt.Sprintf(
|
backendAddressPool_id := fmt.Sprintf(
|
||||||
"/subscriptions/%s/resourceGroups/acctestrg-%d/providers/Microsoft.Network/loadBalancers/arm-test-loadbalancer-%d/backendAddressPools/%s",
|
"/subscriptions/%s/resourceGroups/acctestrg-%d/providers/Microsoft.Network/loadBalancers/arm-test-loadbalancer-%d/backendAddressPools/%s",
|
||||||
|
@ -16,7 +16,6 @@ func TestAccAzureRMLoadBalancerNatPool_basic(t *testing.T) {
|
|||||||
ri := acctest.RandInt()
|
ri := acctest.RandInt()
|
||||||
natPoolName := fmt.Sprintf("NatPool-%d", ri)
|
natPoolName := fmt.Sprintf("NatPool-%d", ri)
|
||||||
|
|
||||||
testAccPreCheck(t)
|
|
||||||
subscriptionID := os.Getenv("ARM_SUBSCRIPTION_ID")
|
subscriptionID := os.Getenv("ARM_SUBSCRIPTION_ID")
|
||||||
natPool_id := fmt.Sprintf(
|
natPool_id := fmt.Sprintf(
|
||||||
"/subscriptions/%s/resourceGroups/acctestrg-%d/providers/Microsoft.Network/loadBalancers/arm-test-loadbalancer-%d/inboundNatPools/%s",
|
"/subscriptions/%s/resourceGroups/acctestrg-%d/providers/Microsoft.Network/loadBalancers/arm-test-loadbalancer-%d/inboundNatPools/%s",
|
||||||
|
@ -16,7 +16,6 @@ func TestAccAzureRMLoadBalancerNatRule_basic(t *testing.T) {
|
|||||||
ri := acctest.RandInt()
|
ri := acctest.RandInt()
|
||||||
natRuleName := fmt.Sprintf("NatRule-%d", ri)
|
natRuleName := fmt.Sprintf("NatRule-%d", ri)
|
||||||
|
|
||||||
testAccPreCheck(t)
|
|
||||||
subscriptionID := os.Getenv("ARM_SUBSCRIPTION_ID")
|
subscriptionID := os.Getenv("ARM_SUBSCRIPTION_ID")
|
||||||
natRule_id := fmt.Sprintf(
|
natRule_id := fmt.Sprintf(
|
||||||
"/subscriptions/%s/resourceGroups/acctestrg-%d/providers/Microsoft.Network/loadBalancers/arm-test-loadbalancer-%d/inboundNatRules/%s",
|
"/subscriptions/%s/resourceGroups/acctestrg-%d/providers/Microsoft.Network/loadBalancers/arm-test-loadbalancer-%d/inboundNatRules/%s",
|
||||||
|
@ -16,7 +16,6 @@ func TestAccAzureRMLoadBalancerProbe_basic(t *testing.T) {
|
|||||||
ri := acctest.RandInt()
|
ri := acctest.RandInt()
|
||||||
probeName := fmt.Sprintf("probe-%d", ri)
|
probeName := fmt.Sprintf("probe-%d", ri)
|
||||||
|
|
||||||
testAccPreCheck(t)
|
|
||||||
subscriptionID := os.Getenv("ARM_SUBSCRIPTION_ID")
|
subscriptionID := os.Getenv("ARM_SUBSCRIPTION_ID")
|
||||||
probe_id := fmt.Sprintf(
|
probe_id := fmt.Sprintf(
|
||||||
"/subscriptions/%s/resourceGroups/acctestrg-%d/providers/Microsoft.Network/loadBalancers/arm-test-loadbalancer-%d/probes/%s",
|
"/subscriptions/%s/resourceGroups/acctestrg-%d/providers/Microsoft.Network/loadBalancers/arm-test-loadbalancer-%d/probes/%s",
|
||||||
|
@ -64,7 +64,6 @@ func TestAccAzureRMLoadBalancerRule_basic(t *testing.T) {
|
|||||||
ri := acctest.RandInt()
|
ri := acctest.RandInt()
|
||||||
lbRuleName := fmt.Sprintf("LbRule-%s", acctest.RandStringFromCharSet(8, acctest.CharSetAlpha))
|
lbRuleName := fmt.Sprintf("LbRule-%s", acctest.RandStringFromCharSet(8, acctest.CharSetAlpha))
|
||||||
|
|
||||||
testAccPreCheck(t)
|
|
||||||
subscriptionID := os.Getenv("ARM_SUBSCRIPTION_ID")
|
subscriptionID := os.Getenv("ARM_SUBSCRIPTION_ID")
|
||||||
lbRule_id := fmt.Sprintf(
|
lbRule_id := fmt.Sprintf(
|
||||||
"/subscriptions/%s/resourceGroups/acctestrg-%d/providers/Microsoft.Network/loadBalancers/arm-test-loadbalancer-%d/loadBalancingRules/%s",
|
"/subscriptions/%s/resourceGroups/acctestrg-%d/providers/Microsoft.Network/loadBalancers/arm-test-loadbalancer-%d/loadBalancingRules/%s",
|
||||||
|
Loading…
Reference in New Issue
Block a user