github.com/mponton/terratest@v0.44.0/modules/azure/sql_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 CRUD methods are introduced for Azure SQL DB, these tests can be extended 17 */ 18 19 func TestGetSQLServerE(t *testing.T) { 20 t.Parallel() 21 22 resGroupName := "" 23 serverName := "" 24 subscriptionID := "" 25 26 _, err := GetSQLServerE(t, resGroupName, serverName, subscriptionID) 27 require.Error(t, err) 28 } 29 30 func TestGetSQLDatabaseE(t *testing.T) { 31 t.Parallel() 32 33 resGroupName := "" 34 serverName := "" 35 dbName := "" 36 subscriptionID := "" 37 38 _, err := GetSQLDatabaseE(t, resGroupName, serverName, dbName, subscriptionID) 39 require.Error(t, err) 40 }