This repository has been archived by the owner on Jul 12, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[#128032919] fix typo in required flag check
Change go-agent-sha to go-agent-release-sha for consistency. Signed-off-by: John Calabrese <jcalabrese@pivotal.io>
- Loading branch information
1 parent
ba666eb
commit d6671ea
Showing
2 changed files
with
43 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
package boshinit_test | ||
|
||
import ( | ||
. "github.com/enaml-ops/omg-cli/plugins/products/bosh-init" | ||
. "github.com/onsi/ginkgo" | ||
. "github.com/onsi/gomega" | ||
) | ||
|
||
var _ = Describe("BOSH CLI helpers", func() { | ||
Describe("given a set of bosh required flags", func() { | ||
Context("when used to check for use of required flags", func() { | ||
It("then it should only allow fields to be defined when they are valid bosh flags", func() { | ||
var validFlags []string | ||
for _, f := range BoshFlags(NewPhotonBoshBase()) { | ||
validFlags = append(validFlags, f.GetName()) | ||
} | ||
for _, required := range RequiredBoshFlags { | ||
Ω(validFlags).Should(ContainElement(required)) | ||
} | ||
}) | ||
}) | ||
}) | ||
}) |