Skip to content

Commit e12e82b

Browse files
arampricemkocher
authored andcommitted
Stembuild specs: move helper method to Suite file
Signed-off-by: Matthew Kocher <matthew.kocher@broadcom.com>
1 parent 3cd403a commit e12e82b

File tree

2 files changed

+10
-9
lines changed

2 files changed

+10
-9
lines changed

stembuild/iaas_cli/iaas_clients/iaas_clients_suite_test.go

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ package iaas_clients
33
import (
44
"context"
55
"fmt"
6+
"os"
67
"testing"
78
"time"
89

@@ -85,3 +86,12 @@ var _ = AfterSuite(func() {
8586
Expect(err).ToNot(HaveOccurred())
8687
}
8788
})
89+
90+
func envMustExist(variableName string) string {
91+
result := os.Getenv(variableName)
92+
if result == "" {
93+
Fail(fmt.Sprintf("%s must be set", variableName))
94+
}
95+
96+
return result
97+
}

stembuild/iaas_cli/iaas_clients/vcenter_govmomi_contract_test.go

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -15,15 +15,6 @@ import (
1515
. "github.com/onsi/gomega/gbytes"
1616
)
1717

18-
func envMustExist(variableName string) string {
19-
result := os.Getenv(variableName)
20-
if result == "" {
21-
Fail(fmt.Sprintf("%s must be set", variableName))
22-
}
23-
24-
return result
25-
}
26-
2718
var _ = Describe("VcenterClient", func() {
2819
const powershell = "C:\\Windows\\System32\\WindowsPowerShell\\V1.0\\powershell.exe"
2920

0 commit comments

Comments
 (0)