github.com/mponton/terratest@v0.44.0/modules/azure/containers_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 TestContainerRegistryExistsE(t *testing.T) { 21 t.Parallel() 22 23 resGroupName := "" 24 registryName := "" 25 subscriptionID := "" 26 27 _, err := ContainerRegistryExistsE(registryName, resGroupName, subscriptionID) 28 require.Error(t, err) 29 } 30 31 func TestGetContainerRegistryE(t *testing.T) { 32 t.Parallel() 33 34 resGroupName := "" 35 registryName := "" 36 subscriptionID := "" 37 38 _, err := GetContainerRegistryE(registryName, resGroupName, subscriptionID) 39 require.Error(t, err) 40 } 41 42 func TestGetContainerRegistryClientE(t *testing.T) { 43 t.Parallel() 44 45 subscriptionID := "" 46 47 _, err := GetContainerRegistryClientE(subscriptionID) 48 require.NoError(t, err) 49 } 50 51 func TestContainerInstanceExistsE(t *testing.T) { 52 t.Parallel() 53 54 resGroupName := "" 55 instanceName := "" 56 subscriptionID := "" 57 58 _, err := ContainerInstanceExistsE(instanceName, resGroupName, subscriptionID) 59 require.Error(t, err) 60 } 61 62 func TestGetContainerInstanceE(t *testing.T) { 63 t.Parallel() 64 65 resGroupName := "" 66 instanceName := "" 67 subscriptionID := "" 68 69 _, err := GetContainerInstanceE(instanceName, resGroupName, subscriptionID) 70 require.Error(t, err) 71 } 72 73 func TestGetContainerInstanceClientE(t *testing.T) { 74 t.Parallel() 75 76 subscriptionID := "" 77 78 _, err := GetContainerInstanceClientE(subscriptionID) 79 require.NoError(t, err) 80 }