github.com/mponton/terratest@v0.44.0/modules/azure/resourcegroup_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  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 to create and delete resource groups are added, these tests can be extended.
    17  */
    18  
    19  func TestResourceGroupExists(t *testing.T) {
    20  	t.Parallel()
    21  
    22  	resourceGroupName := "fakeResourceGroupName"
    23  	_, err := ResourceGroupExistsE(resourceGroupName, "")
    24  	require.Error(t, err)
    25  }
    26  
    27  func TestGetAResourceGroup(t *testing.T) {
    28  	t.Parallel()
    29  
    30  	resourceGroupName := "fakeResourceGroupName"
    31  
    32  	_, err := GetAResourceGroupE(resourceGroupName, "")
    33  	require.Error(t, err)
    34  }