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
|
|
|
SourceNS: default
|
|
|
|
SourceName: name
|
|
|
|
DestinationNS: default
|
|
|
|
DestinationName: destination
|
|
|
|
|
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
|
|
|
|
And I see 3 intention models
|
|
|
|
Scenario: I can delete intentions
|
|
|
|
And I click actions on the intentions
|
|
|
|
And I click delete on the intentions
|
|
|
|
And I click confirmDelete on the intentions
|
2020-09-30 11:33:01 +00:00
|
|
|
Then a DELETE request was made to "/v1/connect/intentions/exact?source=default%2Fname&destination=default%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
|