github.com/darmach/terratest@v0.34.8-0.20210517103231-80931f95e3ff/modules/azure/postgresql_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 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 PostgreSQL server and database, these tests can be extended 17 */ 18 19 func TestGetPostgreSQLServerE(t *testing.T) { 20 t.Parallel() 21 22 resGroupName := "" 23 serverName := "" 24 subscriptionID := "" 25 26 _, err := GetPostgreSQLServerE(t, subscriptionID, resGroupName, serverName) 27 require.Error(t, err) 28 } 29 30 func TestGetPostgreSQLDBE(t *testing.T) { 31 t.Parallel() 32 33 resGroupName := "" 34 serverName := "" 35 subscriptionID := "" 36 dbName := "" 37 38 _, err := GetPostgreSQLDBE(t, subscriptionID, resGroupName, serverName, dbName) 39 require.Error(t, err) 40 }