Skip to content

Commit

Permalink
Fix projectatomic#425 Organizing Cucumber features around service fun…
Browse files Browse the repository at this point in the history
…ctionality

- Merging env, install-cli, service-operation and box feature files into docker.feature
- Removing the need for starting VM for help feature
  • Loading branch information
hferentschik committed Oct 25, 2016
1 parent a35feca commit 93e1df2
Show file tree
Hide file tree
Showing 10 changed files with 296 additions and 406 deletions.
4 changes: 0 additions & 4 deletions .config/cucumber.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,3 @@ pretty: --format pretty -b
html: --format progress --format html --out=build/features_report.html -b
ci: --format CiFormatter --no-color -b

help: --tags @help --profile html
box: --tags @box --profile html
env: --tags @env --profile html
openshift: --tags @openshift --profile html
11 changes: 4 additions & 7 deletions features/adb-openshift.feature
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ Feature: Command output from various OpenShift related commands in ADB
config.vm.provider('libvirt') { |v| v.memory = 3072 }
config.vm.provider('virtualbox') { |v| v.memory = 3072 }
config.servicemanager.services = 'docker, openshift'
config.servicemanager.services = 'openshift'
end
"""

Expand All @@ -37,8 +37,7 @@ Feature: Command output from various OpenShift related commands in ADB
And I successfully run `bundle exec vagrant service-manager status`
Then stdout from "bundle exec vagrant service-manager status" should contain "openshift - running"

When I sleep for 10 seconds
And I successfully run `bundle exec vagrant service-manager env openshift`
When I successfully run `bundle exec vagrant service-manager env openshift`
Then stdout from "bundle exec vagrant service-manager env openshift" should be evaluable in a shell
And stdout from "bundle exec vagrant service-manager env openshift" should contain:
"""
Expand All @@ -61,14 +60,12 @@ Feature: Command output from various OpenShift related commands in ADB
DOCKER_REGISTRY=hub.openshift.centos7-adb.<ip>.xip.io
"""

When I sleep for 10 seconds
And I successfully run `bundle exec vagrant service-manager install-cli openshift --cli-version 1.3.0`
When I successfully run `bundle exec vagrant service-manager install-cli openshift --cli-version 1.3.0`
Then the exit status should be 0
And the binary "oc" of service "openshift" should be installed with version "1.3.0"
And stdout from "bundle exec vagrant service-manager install-cli openshift --cli-version 1.3.0" should be evaluable in a shell

When I sleep for 10 seconds
And I evaluate and run `bundle exec vagrant service-manager install-cli openshift --cli-version 1.3.0 --path #{ENV['VAGRANT_HOME']}/oc`
When I evaluate and run `bundle exec vagrant service-manager install-cli openshift --cli-version 1.3.0 --path #{ENV['VAGRANT_HOME']}/oc`
Then the exit status should be 0
And the binary should be installed in path "#{ENV['VAGRANT_HOME']}/oc"
And stdout after evaluating and running "bundle exec vagrant service-manager install-cli openshift --cli-version 1.3.0 --path #{ENV['VAGRANT_HOME']}/oc" should be evaluable in a shell
Expand Down
74 changes: 0 additions & 74 deletions features/box-command.feature

This file was deleted.

7 changes: 3 additions & 4 deletions features/cdk-openshift.feature
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
Feature: Command output from various OpenShift related commands in CDK
service-manager should return the correct output from commands affecting OpenShift in CDK

@openshift
Scenario Outline: Boot and execute commands
Given box is <box>
And provider is <provider>
Expand All @@ -22,7 +21,7 @@ Feature: Command output from various OpenShift related commands in CDK
config.vm.provider('libvirt') { |v| v.memory = 3072 }
config.vm.provider('virtualbox') { |v| v.memory = 3072 }
config.servicemanager.services = 'docker, openshift'
config.servicemanager.services = 'openshift'
end
"""

Expand All @@ -32,8 +31,8 @@ Feature: Command output from various OpenShift related commands in CDK
==> default: Docker service configured successfully...
==> default: OpenShift service configured successfully...
"""

When I successfully run `bundle exec vagrant service-manager status`
And I successfully run `bundle exec vagrant service-manager status`
Then stdout from "bundle exec vagrant service-manager status" should contain "openshift - running"

When I successfully run `bundle exec vagrant service-manager env openshift`
Expand Down
Loading

0 comments on commit 93e1df2

Please sign in to comment.