-
Notifications
You must be signed in to change notification settings - Fork 4.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ui: Cope with service names that contain slashes (#4756)
- Loading branch information
Showing
5 changed files
with
46 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
21 changes: 21 additions & 0 deletions
21
ui-v2/tests/acceptance/dc/services/show-with-slashes.feature
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,21 @@ | ||
@setupApplicationTest | ||
Feature: dc / services / show-with-slashes: Show Service that has slashes in its name | ||
In order to view services that have slashes in their name | ||
As a user | ||
I want to view the service in the service listing and click on it to see the service detail | ||
Scenario: Given a service with slashes in its name | ||
Given 1 datacenter model with the value "dc1" | ||
And 1 node model | ||
And 1 service model from yaml | ||
--- | ||
- Name: hashicorp/service/service-0 | ||
--- | ||
When I visit the services page for yaml | ||
--- | ||
dc: dc1 | ||
--- | ||
Then the url should be /dc1/services | ||
Then I see 1 service model | ||
And I click service on the services | ||
Then the url should be /dc1/services/hashicorp/service/service-0 | ||
|
10 changes: 10 additions & 0 deletions
10
ui-v2/tests/acceptance/steps/dc/services/show-with-slashes-steps.js
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,10 @@ | ||
import steps from '../../steps'; | ||
|
||
// step definitions that are shared between features should be moved to the | ||
// tests/acceptance/steps/steps.js file | ||
|
||
export default function(assert) { | ||
return steps(assert).then('I should find a file', function() { | ||
assert.ok(true, this.step); | ||
}); | ||
} |
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