github.com/verrazzano/verrazzano@v1.7.0/tools/vz/pkg/analysis/internal/util/cluster/verrazzano_test.go (about) 1 // Copyright (c) 2021, 2022, Oracle and/or its affiliates. 2 // Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl. 3 package cluster 4 5 import ( 6 "github.com/stretchr/testify/assert" 7 "github.com/verrazzano/verrazzano/tools/vz/pkg/analysis/internal/util/log" 8 "github.com/verrazzano/verrazzano/tools/vz/pkg/analysis/internal/util/report" 9 "testing" 10 ) 11 12 // Test Verrazzano Installation Status with a couple of cluster root 13 // Expect No Error for each installation status 14 func TestInstallationStatus(t *testing.T) { 15 logger := log.GetDebugEnabledLogger() 16 var issueReporter = report.IssueReporter{ 17 PendingIssues: make(map[string]report.Issue), 18 } 19 assert.NoError(t, installationStatus(logger, "../../../test/cluster/problem-pods-install/cluster-snapshot", &issueReporter)) 20 assert.NoError(t, installationStatus(logger, "../../../test/cluster/pending-pods/cluster-snapshot", &issueReporter)) 21 }