github.com/darmach/terratest@v0.34.8-0.20210517103231-80931f95e3ff/modules/azure/loganalytics_test.go (about) 1 package azure 2 3 import ( 4 "testing" 5 6 "github.com/stretchr/testify/assert" 7 "github.com/stretchr/testify/require" 8 ) 9 10 /* 11 The below tests are currently stubbed out, with the expectation that they will throw errors. 12 If/when methods to create and delete log analytics resources are added, these tests can be extended. 13 */ 14 15 func TestLogAnalyticsWorkspace(t *testing.T) { 16 t.Parallel() 17 18 _, err := LogAnalyticsWorkspaceExistsE("fake", "", "") 19 assert.Error(t, err, "Workspace") 20 } 21 22 func TestGetLogAnalyticsWorkspaceE(t *testing.T) { 23 t.Parallel() 24 workspaceName := "" 25 resourceGroupName := "" 26 subscriptionID := "" 27 28 _, err := GetLogAnalyticsWorkspaceE(workspaceName, resourceGroupName, subscriptionID) 29 require.Error(t, err) 30 }