github.com/someshkoli/terratest@v0.41.1/modules/azure/appService_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 MySQL server and database, these tests can be extended
    18  */
    19  
    20  func TestAppExistsE(t *testing.T) {
    21  	t.Parallel()
    22  
    23  	resGroupName := ""
    24  	appName := ""
    25  	subscriptionID := ""
    26  
    27  	_, err := AppExistsE(appName, resGroupName, subscriptionID)
    28  	require.Error(t, err)
    29  }
    30  
    31  func TestGetAppServiceE(t *testing.T) {
    32  	t.Parallel()
    33  
    34  	resGroupName := ""
    35  	appName := ""
    36  	subscriptionID := ""
    37  
    38  	_, err := GetAppServiceE(appName, resGroupName, subscriptionID)
    39  	require.Error(t, err)
    40  }
    41  
    42  func TestGetAppServiceClientE(t *testing.T) {
    43  	t.Parallel()
    44  
    45  	subscriptionID := ""
    46  
    47  	_, err := GetAppServiceClientE(subscriptionID)
    48  	require.NoError(t, err)
    49  }