mirror of https://github.com/hashicorp/consul
34 lines
1.0 KiB
Gherkin
34 lines
1.0 KiB
Gherkin
@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
|
|
SourceNS: default
|
|
DestinationNS: default
|
|
SourcePartition: default
|
|
DestinationPartition: default
|
|
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
|
|
And I click ".value-deny"
|
|
And I submit
|
|
And I see the warning object
|
|
And I click the warning.cancel object
|
|
And I don't see the warning object
|
|
And I submit
|
|
And I see the warning object
|
|
And I click the warning.confirm object
|
|
Then a PUT request was made to "/v1/connect/intentions/exact?source=default%2Fdefault%2Fweb&destination=default%2Fdefault%2Fdb&dc=datacenter" from yaml
|