github.com/mponton/terratest@v0.44.0/modules/azure/postgresql_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  
     7  package azure
     8  
     9  import (
    10  	"testing"
    11  
    12  	"github.com/stretchr/testify/require"
    13  )
    14  
    15  /*
    16  The below tests are currently stubbed out, with the expectation that they will throw errors.
    17  If/when CRUD methods are introduced for Azure PostgreSQL server and database, these tests can be extended
    18  */
    19  
    20  func TestGetPostgreSQLServerE(t *testing.T) {
    21  	t.Parallel()
    22  
    23  	resGroupName := ""
    24  	serverName := ""
    25  	subscriptionID := ""
    26  
    27  	_, err := GetPostgreSQLServerE(t, subscriptionID, resGroupName, serverName)
    28  	require.Error(t, err)
    29  }
    30  
    31  func TestGetPostgreSQLDBE(t *testing.T) {
    32  	t.Parallel()
    33  
    34  	resGroupName := ""
    35  	serverName := ""
    36  	subscriptionID := ""
    37  	dbName := ""
    38  
    39  	_, err := GetPostgreSQLDBE(t, subscriptionID, resGroupName, serverName, dbName)
    40  	require.Error(t, err)
    41  }