2020-04-16 14:15:45 +00:00
|
|
|
@setupApplicationTest
|
2020-08-11 17:02:51 +00:00
|
|
|
Feature: dc / services / show / intentions: Intentions per service
|
2020-04-16 14:15:45 +00:00
|
|
|
Background:
|
|
|
|
Given 1 datacenter model with the value "dc1"
|
|
|
|
And 1 node models
|
|
|
|
And 1 service model from yaml
|
|
|
|
---
|
|
|
|
- Service:
|
2020-05-06 18:13:36 +00:00
|
|
|
Kind: ~
|
2020-04-16 14:15:45 +00:00
|
|
|
Name: service-0
|
|
|
|
ID: service-0-with-id
|
|
|
|
---
|
2020-09-18 10:14:06 +00:00
|
|
|
And 3 intention models from yaml
|
|
|
|
---
|
|
|
|
- ID: 755b72bd-f5ab-4c92-90cc-bed0e7d8e9f0
|
|
|
|
Action: allow
|
|
|
|
Meta: ~
|
2020-09-30 11:33:01 +00:00
|
|
|
SourceName: name
|
|
|
|
DestinationName: destination
|
2021-09-24 16:31:58 +00:00
|
|
|
SourceNS: default
|
|
|
|
DestinationNS: default
|
|
|
|
SourcePartition: default
|
|
|
|
DestinationPartition: default
|
2020-09-30 11:33:01 +00:00
|
|
|
|
2020-09-18 10:14:06 +00:00
|
|
|
- ID: 755b72bd-f5ab-4c92-90cc-bed0e7d8e9f1
|
|
|
|
Action: deny
|
|
|
|
Meta: ~
|
|
|
|
- ID: 0755b72bd-f5ab-4c92-90cc-bed0e7d8e9f2
|
|
|
|
Action: deny
|
|
|
|
Meta: ~
|
|
|
|
---
|
2020-04-16 14:15:45 +00:00
|
|
|
When I visit the service page for yaml
|
|
|
|
---
|
|
|
|
dc: dc1
|
|
|
|
service: service-0
|
|
|
|
---
|
|
|
|
And the title should be "service-0 - Consul"
|
|
|
|
And I see intentions on the tabs
|
|
|
|
When I click intentions on the tabs
|
|
|
|
And I see intentionsIsSelected on the tabs
|
|
|
|
Scenario: I can see intentions
|
2020-10-26 09:30:07 +00:00
|
|
|
And I see 3 intention models on the intentionList component
|
2020-11-06 14:57:29 +00:00
|
|
|
And I click intention on the intentionList.intentions component
|
2021-09-24 16:31:58 +00:00
|
|
|
Then the url should be /dc1/services/service-0/intentions/default:default:name:default:default:destination
|
2020-04-16 14:15:45 +00:00
|
|
|
Scenario: I can delete intentions
|
2020-10-26 09:30:07 +00:00
|
|
|
And I click actions on the intentionList.intentions component
|
|
|
|
And I click delete on the intentionList.intentions component
|
|
|
|
And I click confirmDelete on the intentionList.intentions
|
2021-09-24 16:31:58 +00:00
|
|
|
Then a DELETE request was made to "/v1/connect/intentions/exact?source=default%2Fdefault%2Fname&destination=default%2Fdefault%2Fdestination&dc=dc1"
|
2020-04-16 14:15:45 +00:00
|
|
|
And "[data-notification]" has the "notification-delete" class
|
|
|
|
And "[data-notification]" has the "success" class
|