Skip to content

Commit

Permalink
split integration test into two due to output ordering
Browse files Browse the repository at this point in the history
Co-authored-by: George Gelashvili <ggelashvili+cf@pivotal.io>
Co-authored-by: Sam Coward <scoward@pivotal.io>
  • Loading branch information
3 people committed Oct 2, 2020
1 parent f1a802c commit 060cca6
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion integration/environment_variable_warnings_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,15 @@ var _ = Describe("Environment Variables Warning", func() {
})

When("Environment variables starting with GOVC_* or GOVMOMI_* are set", func() {
It("should print a warning for each environment variable", func() {
It("should print a warning for each GOVC_* environment variable", func() {
session := helpers.StembuildWithEnv(map[string]string{"GOVC_BANANA": "I AM A BANANA", "GOVMOMI_POTATO": "THIS IS A POTATO"}, stembuildExecutable, "--version")
Eventually(session.Err).Should(Say("Warning: The following environment variable is set and might override flags provided to stembuild: GOVC_BANANA\n"))
Consistently(session.Err).ShouldNot(Say("I AM A BANANA"))
Eventually(session).Should(Exit(0))
})

It("should print a warning for each GOVMOMI_* environment variable", func() {
session := helpers.StembuildWithEnv(map[string]string{"GOVC_BANANA": "I AM A BANANA", "GOVMOMI_POTATO": "THIS IS A POTATO"}, stembuildExecutable, "--version")
Eventually(session.Err).Should(Say("Warning: The following environment variable is set and might override flags provided to stembuild: GOVMOMI_POTATO\n"))
Consistently(session.Err).ShouldNot(Say("THIS IS A POTATO"))
Eventually(session).Should(Exit(0))
Expand Down

0 comments on commit 060cca6

Please sign in to comment.