Skip to content

Commit

Permalink
fix(ci): update allowed/blocked IP ranges
Browse files Browse the repository at this point in the history
Signed-off-by: Benjamin Gaussorgues <benjamin.gaussorgues@nextcloud.com>
  • Loading branch information
Altahrim committed Mar 20, 2024
1 parent 6b8f17e commit b70de51
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions tests/integration/features/Login.feature
Original file line number Diff line number Diff line change
@@ -1,28 +1,28 @@
Feature: Login

Scenario: Authenticating with blocked IP via Web
Given The range "192.168.0.0/24" is permitted
Given The range "198.51.100.0/24" is permitted
When I try to login via "web"
Then the response status code should be "403"
And the response URL should be "http://localhost:8080/index.php/apps/limit_login_to_ip/denied"

Scenario: Authenticating with blocked IP via API
Given The range "192.168.0.0/24" is permitted
Given The range "198.51.100.0/24" is permitted
When I try to login via "api"
Then the response status code should be "403"
And the response URL should be "http://localhost:8080/remote.php/webdav/"

Scenario: Authenticating with whitelisted IP via Web
Given The range "10.0.0.0/8,127.0.0.0/24" is permitted
Given The range "::1/128,127.0.0.0/8" is permitted
When I try to login via "web"
Then the response status code should be "200"

Scenario: Authenticating with whitelisted IP via API
Given The range "127.0.0.0/24" is permitted
Given The range "::1/128,127.0.0.0/8" is permitted
When I try to login via "api"
Then the response status code should be "200"

Scenario: Authenticating with multiple whitelisted IP via API
Given The range "192.168.0.0/24,10.0.0.0/8,127.0.0.0/24,192.168.1.0/24" is permitted
Given The range "::1/128,127.0.0.0/8,192.168.0.0/16" is permitted
When I try to login via "api"
Then the response status code should be "200"

0 comments on commit b70de51

Please sign in to comment.