github.com/mponton/terratest@v0.44.0/modules/azure/loadbalancer_test.go (about)

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