-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(ci): update allowed/blocked IP ranges
Signed-off-by: Benjamin Gaussorgues <benjamin.gaussorgues@nextcloud.com>
- Loading branch information
Showing
1 changed file
with
5 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" |