github.com/mponton/terratest@v0.44.0/modules/azure/servicebus_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. These tests can be extended. 16 */ 17 func TestListServiceBusNamespaceNamesE(t *testing.T) { 18 t.Parallel() 19 20 subscriptionID := "" 21 22 _, err := ListServiceBusNamespaceNamesE(subscriptionID) 23 require.Error(t, err) 24 } 25 26 func TestListServiceBusNamespaceIDsByResourceGroupE(t *testing.T) { 27 t.Parallel() 28 29 subscriptionID := "" 30 resourceGroup := "" 31 32 _, err := ListServiceBusNamespaceIDsByResourceGroupE(subscriptionID, resourceGroup) 33 require.Error(t, err) 34 } 35 36 func TestListNamespaceAuthRulesE(t *testing.T) { 37 t.Parallel() 38 39 subscriptionID := "" 40 namespace := "" 41 resourceGroup := "" 42 43 _, err := ListNamespaceAuthRulesE(subscriptionID, namespace, resourceGroup) 44 require.Error(t, err) 45 } 46 47 func TestListNamespaceTopicsE(t *testing.T) { 48 t.Parallel() 49 50 subscriptionID := "" 51 namespace := "" 52 resourceGroup := "" 53 54 _, err := ListNamespaceTopicsE(subscriptionID, namespace, resourceGroup) 55 require.Error(t, err) 56 } 57 58 func TestListTopicAuthRulesE(t *testing.T) { 59 t.Parallel() 60 61 subscriptionID := "" 62 namespace := "" 63 resourceGroup := "" 64 topicName := "" 65 66 _, err := ListTopicAuthRulesE(subscriptionID, namespace, resourceGroup, topicName) 67 require.Error(t, err) 68 } 69 70 func TestListTopicSubscriptionsNameE(t *testing.T) { 71 t.Parallel() 72 73 subscriptionID := "" 74 namespace := "" 75 resourceGroup := "" 76 topicName := "" 77 78 _, err := ListTopicSubscriptionsNameE(subscriptionID, namespace, resourceGroup, topicName) 79 require.Error(t, err) 80 }