github.com/darmach/terratest@v0.34.8-0.20210517103231-80931f95e3ff/modules/azure/loadbalancer_test.go (about)

     1  // +build azure
     2  
     3  // NOTE: We use build tags to differentiate azure testing because we currently do not have azure access setup for
     4  // CircleCI.
     5  
     6  package azure
     7  
     8  import (
     9  	"testing"
    10  
    11  	"github.com/stretchr/testify/require"
    12  )
    13  
    14  /*
    15  The below tests are currently stubbed out, with the expectation that they will throw errors.
    16  If/when methods can be mocked or Create/Delete APIs are added, these tests can be extended.
    17  */
    18  
    19  func TestLoadBalancerExistsE(t *testing.T) {
    20  	t.Parallel()
    21  
    22  	loadBalancerName := ""
    23  	resourceGroupName := ""
    24  	subscriptionID := ""
    25  
    26  	_, err := LoadBalancerExistsE(loadBalancerName, resourceGroupName, subscriptionID)
    27  
    28  	require.Error(t, err)
    29  }
    30  
    31  func TestGetLoadBalancerE(t *testing.T) {
    32  	t.Parallel()
    33  
    34  	loadBalancerName := ""
    35  	resourceGroupName := ""
    36  	subscriptionID := ""
    37  
    38  	_, err := GetLoadBalancerE(loadBalancerName, resourceGroupName, subscriptionID)
    39  
    40  	require.Error(t, err)
    41  }