2019-05-01 18:09:29 +00:00
|
|
|
@setupApplicationTest
|
|
|
|
Feature: dc / acls / policies / delete: Policy Delete
|
|
|
|
Background:
|
|
|
|
Given 1 datacenter model with the value "datacenter"
|
|
|
|
Scenario: Deleting a policy model from the policies listing page
|
|
|
|
Given 1 policy model from yaml
|
|
|
|
---
|
|
|
|
ID: 1981f51d-301a-497b-89a0-05112ef02b4b
|
|
|
|
---
|
|
|
|
When I visit the policies page for yaml
|
|
|
|
---
|
|
|
|
dc: datacenter
|
|
|
|
---
|
|
|
|
And I click actions on the policies
|
|
|
|
And I click delete on the policies
|
|
|
|
And I click confirmDelete on the policies
|
2020-01-24 12:26:28 +00:00
|
|
|
Then a DELETE request was made to "/v1/acl/policy/1981f51d-301a-497b-89a0-05112ef02b4b?dc=datacenter&ns=@!namespace"
|
2019-05-01 18:09:29 +00:00
|
|
|
And "[data-notification]" has the "notification-delete" class
|
|
|
|
And "[data-notification]" has the "success" class
|
2021-09-15 18:50:11 +00:00
|
|
|
Scenario: Deleting a policy model from the policies listing page errors
|
2020-01-24 12:26:28 +00:00
|
|
|
Given the url "/v1/acl/policy/1981f51d-301a-497b-89a0-05112ef02b4b?dc=datacenter&ns=@namespace" responds with a 500 status
|
2021-09-15 18:50:11 +00:00
|
|
|
And 1 policy model from yaml
|
|
|
|
---
|
|
|
|
ID: 1981f51d-301a-497b-89a0-05112ef02b4b
|
|
|
|
---
|
|
|
|
When I visit the policies page for yaml
|
|
|
|
---
|
|
|
|
dc: datacenter
|
|
|
|
---
|
2019-05-01 18:09:29 +00:00
|
|
|
And I click actions on the policies
|
|
|
|
And I click delete on the policies
|
|
|
|
And I click confirmDelete on the policies
|
|
|
|
And "[data-notification]" has the "notification-delete" class
|
|
|
|
And "[data-notification]" has the "error" class
|
|
|
|
Scenario: Deleting a policy from the policy detail page
|
|
|
|
When I visit the policy page for yaml
|
|
|
|
---
|
|
|
|
dc: datacenter
|
|
|
|
policy: 1981f51d-301a-497b-89a0-05112ef02b4b
|
|
|
|
---
|
|
|
|
And I click delete
|
|
|
|
And I click confirmDelete on the deleteModal
|
2020-01-24 12:26:28 +00:00
|
|
|
Then a DELETE request was made to "/v1/acl/policy/1981f51d-301a-497b-89a0-05112ef02b4b?dc=datacenter&ns=@!namespace"
|
2019-05-01 18:09:29 +00:00
|
|
|
And "[data-notification]" has the "notification-delete" class
|
|
|
|
And "[data-notification]" has the "success" class
|
2021-09-15 18:50:11 +00:00
|
|
|
# FIXME
|
|
|
|
# Scenario: Deleting a policy from the policy detail page errors
|
|
|
|
# Given the url "/v1/acl/policy/1981f51d-301a-497b-89a0-05112ef02b4b?dc=datacenter&ns=@namespace" responds with a 500 status
|
|
|
|
# When I visit the policy page for yaml
|
|
|
|
# ---
|
|
|
|
# dc: datacenter
|
|
|
|
# policy: 1981f51d-301a-497b-89a0-05112ef02b4b
|
|
|
|
# ---
|
|
|
|
# And I click delete
|
|
|
|
# And I click confirmDelete on the deleteModal
|
|
|
|
# And "[data-notification]" has the "notification-delete" class
|
|
|
|
# And "[data-notification]" has the "error" class
|