forked from minishift/minishift
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Issue minishift#2322 Add integration test step to test experimental f…
…eature
- Loading branch information
Showing
3 changed files
with
70 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
@experimental-flags | ||
Feature: Experimental Flags | ||
Experimental flag --extra-clusterup-flags will be enabled by setting MINISHIFT_ENABLE_EXPERIMENTAL environment variable, | ||
this flag will provide access to some of upcoming feature and experiments. | ||
|
||
Scenario: User cannot start minishift experimental feature without enabling experimental flag | ||
Given Minishift has state "Does Not Exist" | ||
Then executing "minishift start --extra-clusterup-flags --service-catalog" fails | ||
And stderr should contain | ||
""" | ||
Error: unknown flag: --extra-clusterup-flags | ||
""" | ||
|
||
Scenario: User can enable minishift experimental flag | ||
Given Minishift has state "Does Not Exist" | ||
When setting up environment variable "MINISHIFT_ENABLE_EXPERIMENTAL" with value "y" succeeds | ||
Then executing "minishift start -h" succeeds | ||
And stdout should contain | ||
""" | ||
--extra-clusterup-flags string | ||
""" | ||
|
||
Scenario: User can start minishift experimental feature through --extra-clusterup-flag flag | ||
Given Minishift has state "Does Not Exist" | ||
And image caching is disabled | ||
And environment variable "MINISHIFT_ENABLE_EXPERIMENTAL" value should be "y" | ||
Then executing "minishift start --extra-clusterup-flags --service-catalog" succeeds | ||
And stdout should contain | ||
""" | ||
-- Extra 'oc' cluster up flags (experimental) ... | ||
'--service-catalog' | ||
""" | ||
|
||
Scenario: User can disable minishift experimental flag | ||
Given Minishift has state "Running" | ||
And environment variable "MINISHIFT_ENABLE_EXPERIMENTAL" value should be "y" | ||
Then unset environment variable "MINISHIFT_ENABLE_EXPERIMENTAL" succeeds | ||
When executing "minishift start --extra-clusterup-flags --service-catalog" fails | ||
Then stderr should contain | ||
""" | ||
Error: unknown flag: --extra-clusterup-flags | ||
""" | ||
|
||
Scenario: Deleting Minishift | ||
Given Minishift has state "Running" | ||
When executing "minishift delete --force" succeeds | ||
Then Minishift has state "Does Not Exist" |
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