1@setupApplicationTest 2Feature: dc / acls / policies / delete: Policy Delete 3 Background: 4 Given 1 datacenter model with the value "datacenter" 5 Scenario: Deleting a policy model from the policies listing page 6 Given 1 policy model from yaml 7 --- 8 ID: 1981f51d-301a-497b-89a0-05112ef02b4b 9 --- 10 When I visit the policies page for yaml 11 --- 12 dc: datacenter 13 --- 14 And I click actions on the policies 15 And I click delete on the policies 16 And I click confirmDelete on the policies 17 Then a DELETE request was made to "/v1/acl/policy/1981f51d-301a-497b-89a0-05112ef02b4b?dc=datacenter&ns=@!namespace" 18 And "[data-notification]" has the "notification-delete" class 19 And "[data-notification]" has the "success" class 20 Given the url "/v1/acl/policy/1981f51d-301a-497b-89a0-05112ef02b4b?dc=datacenter&ns=@namespace" responds with a 500 status 21 And I click actions on the policies 22 And I click delete on the policies 23 And I click confirmDelete on the policies 24 And "[data-notification]" has the "notification-delete" class 25 And "[data-notification]" has the "error" class 26 Scenario: Deleting a policy from the policy detail page 27 When I visit the policy page for yaml 28 --- 29 dc: datacenter 30 policy: 1981f51d-301a-497b-89a0-05112ef02b4b 31 --- 32 And I click delete 33 And I click confirmDelete on the deleteModal 34 Then a DELETE request was made to "/v1/acl/policy/1981f51d-301a-497b-89a0-05112ef02b4b?dc=datacenter&ns=@!namespace" 35 And "[data-notification]" has the "notification-delete" class 36 And "[data-notification]" has the "success" class 37 When I visit the policy page for yaml 38 --- 39 dc: datacenter 40 policy: 1981f51d-301a-497b-89a0-05112ef02b4b 41 --- 42 Given the url "/v1/acl/policy/1981f51d-301a-497b-89a0-05112ef02b4b?dc=datacenter&ns=@namespace" responds with a 500 status 43 And I click delete 44 And I click confirmDelete on the deleteModal 45 And "[data-notification]" has the "notification-delete" class 46 And "[data-notification]" has the "error" class 47