2020-11-06 14:57:19 +00:00
|
|
|
@setupApplicationTest
|
|
|
|
Feature: dc / intentions / permissions / warn: Intention Permission Warn
|
|
|
|
Scenario:
|
|
|
|
Given 1 datacenter model with the value "datacenter"
|
|
|
|
And 1 intention model from yaml
|
|
|
|
---
|
|
|
|
SourceName: web
|
|
|
|
DestinationName: db
|
2021-09-24 16:31:58 +00:00
|
|
|
SourceNS: default
|
|
|
|
DestinationNS: default
|
|
|
|
SourcePartition: default
|
|
|
|
DestinationPartition: default
|
2020-11-06 14:57:19 +00:00
|
|
|
Action: ~
|
|
|
|
Permissions:
|
|
|
|
- Action: allow
|
|
|
|
HTTP:
|
|
|
|
PathExact: /path
|
|
|
|
---
|
|
|
|
When I visit the intention page for yaml
|
|
|
|
---
|
|
|
|
dc: datacenter
|
|
|
|
intention: intention-id
|
|
|
|
---
|
|
|
|
Then the url should be /datacenter/intentions/intention-id
|
2021-03-09 09:30:01 +00:00
|
|
|
And I click ".value-deny"
|
2020-11-06 14:57:19 +00:00
|
|
|
And I submit
|
2021-03-09 09:30:01 +00:00
|
|
|
And I see the warning object
|
2020-11-06 14:57:19 +00:00
|
|
|
And I click the warning.cancel object
|
2021-03-09 09:30:01 +00:00
|
|
|
And I don't see the warning object
|
2020-11-06 14:57:19 +00:00
|
|
|
And I submit
|
2021-03-09 09:30:01 +00:00
|
|
|
And I see the warning object
|
2020-11-06 14:57:19 +00:00
|
|
|
And I click the warning.confirm object
|
2021-09-24 16:31:58 +00:00
|
|
|
Then a PUT request was made to "/v1/connect/intentions/exact?source=default%2Fdefault%2Fweb&destination=default%2Fdefault%2Fdb&dc=datacenter" from yaml
|