mirror of
https://github.com/opentofu/opentofu.git
synced 2025-01-06 14:13:16 -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()
|
||||
addressPoolName := fmt.Sprintf("%d-address-pool", ri)
|
||||
|
||||
testAccPreCheck(t)
|
||||
subscriptionID := os.Getenv("ARM_SUBSCRIPTION_ID")
|
||||
backendAddressPool_id := fmt.Sprintf(
|
||||
"/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()
|
||||
natPoolName := fmt.Sprintf("NatPool-%d", ri)
|
||||
|
||||
testAccPreCheck(t)
|
||||
subscriptionID := os.Getenv("ARM_SUBSCRIPTION_ID")
|
||||
natPool_id := fmt.Sprintf(
|
||||
"/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()
|
||||
natRuleName := fmt.Sprintf("NatRule-%d", ri)
|
||||
|
||||
testAccPreCheck(t)
|
||||
subscriptionID := os.Getenv("ARM_SUBSCRIPTION_ID")
|
||||
natRule_id := fmt.Sprintf(
|
||||
"/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()
|
||||
probeName := fmt.Sprintf("probe-%d", ri)
|
||||
|
||||
testAccPreCheck(t)
|
||||
subscriptionID := os.Getenv("ARM_SUBSCRIPTION_ID")
|
||||
probe_id := fmt.Sprintf(
|
||||
"/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()
|
||||
lbRuleName := fmt.Sprintf("LbRule-%s", acctest.RandStringFromCharSet(8, acctest.CharSetAlpha))
|
||||
|
||||
testAccPreCheck(t)
|
||||
subscriptionID := os.Getenv("ARM_SUBSCRIPTION_ID")
|
||||
lbRule_id := fmt.Sprintf(
|
||||
"/subscriptions/%s/resourceGroups/acctestrg-%d/providers/Microsoft.Network/loadBalancers/arm-test-loadbalancer-%d/loadBalancingRules/%s",
|
||||
|
Loading…
Reference in New Issue
Block a user