Skip to content

Commit

Permalink
Issue #760: Reword message at the end of 'crc stop/delete/start'
Browse files Browse the repository at this point in the history
"The OpenShift cluster deleted" was not correct, it was suggested to use
the active voice instead "Deleted the OpenShift cluster"

This fixes #760
  • Loading branch information
cfergeau authored and gbraad committed Oct 31, 2019
1 parent 0f9055f commit 49e925f
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion cmd/crc/cmd/delete.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ func runDelete(arguments []string) {
if err != nil {
errors.Exit(1)
}
output.Outln("The OpenShift cluster deleted")
output.Outln("Deleted the OpenShift cluster")
}
}

Expand Down
2 changes: 1 addition & 1 deletion cmd/crc/cmd/start.go
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ func runStart(arguments []string) {
errors.Exit(1)
}
if commandResult.Status == "Running" {
output.Outln("The OpenShift cluster is running")
output.Outln("Started the OpenShift cluster")

logging.Warn("The cluster might report a degraded or error state. This is expected since several operators have been disabled to lower the resource usage. For more information, please consult the documentation")
} else {
Expand Down
4 changes: 2 additions & 2 deletions cmd/crc/cmd/stop.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ func runStop(arguments []string) {
errors.Exit(1)
}
if commandResult.Success {
output.Outln("The OpenShift cluster stopped")
output.Outln("Stopped the OpenShift cluster")
} else {
/* If we did not get an error, the status should be true */
logging.Warnf("Unexpected status of the OpenShift cluster: %v", commandResult.Success)
Expand All @@ -67,5 +67,5 @@ func killVM(killConfig machine.PowerOffConfig) {
if err != nil {
errors.Exit(1)
}
output.Outln("The OpenShift cluster forcibly stopped")
output.Outln("Forcibly stopped the OpenShift cluster")
}
8 changes: 4 additions & 4 deletions test/integration/features/basic.feature
Original file line number Diff line number Diff line change
Expand Up @@ -85,12 +85,12 @@ Feature: Basic test
@linux @windows
Scenario: CRC start
When starting CRC with default bundle and default hypervisor succeeds
Then stdout should contain "The OpenShift cluster is running"
Then stdout should contain "Started the OpenShift cluster"

@darwin
Scenario: CRC start on Mac
When starting CRC with default bundle and hypervisor "hyperkit" succeeds
Then stdout should contain "The OpenShift cluster is running"
Then stdout should contain "Started the OpenShift cluster"

@darwin @linux @windows
Scenario: CRC status and disk space check
Expand All @@ -117,7 +117,7 @@ Feature: Basic test
@darwin @linux @windows
Scenario: CRC forcible stop
When executing "crc stop -f"
Then stdout should match "The OpenShift cluster(.*)stopped"
Then stdout should match "(.*)[Ss]topped the OpenShift cluster"

@darwin @linux @windows
Scenario: CRC status check
Expand All @@ -134,4 +134,4 @@ Feature: Basic test
@darwin @linux @windows
Scenario: CRC delete
When executing "crc delete -f" succeeds
Then stdout should contain "The OpenShift cluster deleted"
Then stdout should contain "Deleted the OpenShift cluster"
6 changes: 3 additions & 3 deletions test/integration/features/story_health.feature
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Feature:
Scenario Outline: Start CRC
Given executing "crc setup" succeeds
When starting CRC with default bundle and hypervisor "<vm-driver>" succeeds
Then stdout should contain "The OpenShift cluster is running"
Then stdout should contain "Started the OpenShift cluster"
And executing "eval $(crc oc-env)" succeeds
When with up to "4" retries with wait period of "2m" command "crc status" output matches ".*Running \(v\d+\.\d+\.\d+.*\).*"
Then login to the oc cluster succeeds
Expand Down Expand Up @@ -76,6 +76,6 @@ Feature:
Scenario: Clean up
Given executing "oc delete project testproj" succeeds
When executing "crc stop -f" succeeds
Then stdout should match "The OpenShift cluster(.*)stopped"
Then stdout should match "(.*)[Ss]topped the OpenShift cluster"
When executing "crc delete -f" succeeds
Then stdout should contain "The OpenShift cluster deleted"
Then stdout should contain "Deleted the OpenShift cluster"
2 changes: 1 addition & 1 deletion test/integration/features/story_registry.feature
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Feature: Local image to image-registry to deployment
Scenario Outline: Start CRC
Given executing "crc setup" succeeds
When starting CRC with default bundle and hypervisor "<vm-driver>" succeeds
Then stdout should contain "The OpenShift cluster is running"
Then stdout should contain "Started the OpenShift cluster"
And executing "eval $(crc oc-env)" succeeds
When with up to "4" retries with wait period of "2m" command "crc status" output matches ".*Running \(v\d+\.\d+\.\d+.*\).*"
Then login to the oc cluster succeeds
Expand Down

0 comments on commit 49e925f

Please sign in to comment.