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

     1  package azure
     2  
     3  import (
     4  	"testing"
     5  
     6  	"github.com/stretchr/testify/require"
     7  )
     8  
     9  /*
    10  The below tests are currently stubbed out, with the expectation that they will throw errors.
    11  If/when CRUD methods are introduced for Azure Synapse, these tests can be extended
    12  */
    13  func TestDataFactoryExists(t *testing.T) {
    14  	t.Parallel()
    15  
    16  	dataFactoryName := ""
    17  	resourceGroupName := ""
    18  	subscriptionID := ""
    19  
    20  	exists, err := DataFactoryExistsE(dataFactoryName, resourceGroupName, subscriptionID)
    21  
    22  	require.False(t, exists)
    23  	require.Error(t, err)
    24  }
    25  
    26  func TestGetDataFactoryE(t *testing.T) {
    27  	t.Parallel()
    28  
    29  	resGroupName := ""
    30  	subscriptionID := ""
    31  	dataFactoryName := ""
    32  
    33  	_, err := GetDataFactoryE(subscriptionID, resGroupName, dataFactoryName)
    34  	require.Error(t, err)
    35  }