mirror of
https://github.com/status-im/consul.git
synced 2025-01-24 04:31:12 +00:00
6589cbbd0d
* ui: Add the most basic workspace root in /ui * We already have a LICENSE file in the repository root * Change directory path in build scripts ui-v2 -> ui * Make yarn install flags configurable from elsewhere * Minimal workspace root makefile * Call the new docker specific target * Update yarn in the docker build image * Reconfigure the netlify target and move to the higher makefile * Move ui-v2 -> ui/packages/consul-ui * Change repo root to refleect new folder structure * Temporarily don't hoist consul-api-double * Fixup CI configuration * Fixup lint errors * Fixup Netlify target
48 lines
1.7 KiB
Gherkin
48 lines
1.7 KiB
Gherkin
@setupApplicationTest
|
|
Feature: dc / intentions / update: Intention Update
|
|
Background:
|
|
Given 1 datacenter model with the value "datacenter"
|
|
And 1 intention model from yaml
|
|
---
|
|
SourceNS: default
|
|
SourceName: web
|
|
DestinationNS: default
|
|
DestinationName: db
|
|
ID: intention-id
|
|
---
|
|
When I visit the intention page for yaml
|
|
---
|
|
dc: datacenter
|
|
intention: intention-id
|
|
---
|
|
Then the url should be /datacenter/intentions/intention-id
|
|
And the title should be "Edit Intention - Consul"
|
|
Scenario: Update to [Description], [Action]
|
|
Then I fill in with yaml
|
|
---
|
|
Description: [Description]
|
|
---
|
|
And I click "[value=[Action]]"
|
|
And I submit
|
|
Then a PUT request was made to "/v1/connect/intentions/exact?source=default%2Fweb&destination=default%2Fdb&dc=datacenter" from yaml
|
|
---
|
|
Description: [Description]
|
|
Action: [Action]
|
|
---
|
|
Then the url should be /datacenter/intentions
|
|
And the title should be "Intentions - Consul"
|
|
And "[data-notification]" has the "notification-update" class
|
|
And "[data-notification]" has the "success" class
|
|
Where:
|
|
------------------------------
|
|
| Description | Action |
|
|
| Desc | allow |
|
|
------------------------------
|
|
Scenario: There was an error saving the intention
|
|
Given the url "/v1/connect/intentions/exact?source=default%2Fweb&destination=default%2Fdb&dc=datacenter" responds with a 500 status
|
|
And I submit
|
|
Then the url should be /datacenter/intentions/intention-id
|
|
Then "[data-notification]" has the "notification-update" class
|
|
And "[data-notification]" has the "error" class
|
|
|