github.com/darmach/terratest@v0.34.8-0.20210517103231-80931f95e3ff/modules/azure/sql_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  package azure
     6  
     7  import (
     8  	"testing"
     9  
    10  	"github.com/stretchr/testify/require"
    11  )
    12  
    13  /*
    14  The below tests are currently stubbed out, with the expectation that they will throw errors.
    15  If/when CRUD methods are introduced for Azure SQL DB, these tests can be extended
    16  */
    17  
    18  func TestGetSQLServerE(t *testing.T) {
    19  	t.Parallel()
    20  
    21  	resGroupName := ""
    22  	serverName := ""
    23  	subscriptionID := ""
    24  
    25  	_, err := GetSQLServerE(t, resGroupName, serverName, subscriptionID)
    26  	require.Error(t, err)
    27  }
    28  
    29  func TestGetSQLDatabaseE(t *testing.T) {
    30  	t.Parallel()
    31  
    32  	resGroupName := ""
    33  	serverName := ""
    34  	dbName := ""
    35  	subscriptionID := ""
    36  
    37  	_, err := GetSQLDatabaseE(t, resGroupName, serverName, dbName, subscriptionID)
    38  	require.Error(t, err)
    39  }