@@ -23,14 +23,28 @@ Feature: Sysadmin updates the rate limits
2323 And I follow "Rate Limits"
2424 Then I should see "Edit Rate Limits"
2525 When I follow "Domain Whitelist"
26- Then I should see "use *.example.com or **.example.com for wildcard matching "
26+ Then I should see "use *.example.com to match one subdomain and **.example.com to match nested subdomains "
2727 When I fill in "rate_limit_domain_whitelist" with "foo("
2828 And I press "Save"
2929 Then I should see "Domain whitelist is invalid"
3030 When I fill in "rate_limit_domain_whitelist" with "example.com"
3131 And I press "Save"
3232 Then I should see "Rate limits updated successfully"
3333
34+ Scenario : Sysadmin updates the domain blacklist
35+ When I am logged in as a sysadmin
36+ And I am on the admin home page
37+ And I follow "Rate Limits"
38+ Then I should see "Edit Rate Limits"
39+ When I follow "Domain Blacklist"
40+ Then I should see "use *.example.com to match one subdomain and **.example.com to match nested subdomains"
41+ When I fill in "rate_limit_domain_blacklist" with "foo("
42+ And I press "Save"
43+ Then I should see "Domain blacklist is invalid"
44+ When I fill in "rate_limit_domain_blacklist" with "example.com"
45+ And I press "Save"
46+ Then I should see "Rate limits updated successfully"
47+
3448 Scenario : Sysadmin updates the IP whitelist
3549 When I am logged in as a sysadmin
3650 And I am on the admin home page
@@ -44,3 +58,17 @@ Feature: Sysadmin updates the rate limits
4458 When I fill in "rate_limit_ip_whitelist" with "127.0.0.1/32"
4559 And I press "Save"
4660 Then I should see "Rate limits updated successfully"
61+
62+ Scenario : Sysadmin updates the IP whitelist
63+ When I am logged in as a sysadmin
64+ And I am on the admin home page
65+ And I follow "Rate Limits"
66+ Then I should see "Edit Rate Limits"
67+ When I follow "IP Blacklist"
68+ Then I should see "use CIDR addressing to match ranges, e.g. 192.168.0.0/24"
69+ When I fill in "rate_limit_ip_blacklist" with "127"
70+ And I press "Save"
71+ Then I should see "IP blacklist is invalid"
72+ When I fill in "rate_limit_ip_blacklist" with "127.0.0.1/32"
73+ And I press "Save"
74+ Then I should see "Rate limits updated successfully"
0 commit comments