2017-07-27 04:45:26 +07:00
|
|
|
Feature: User has access restricted access to domains
|
|
|
|
|
2017-09-22 03:07:34 +07:00
|
|
|
@need-registered-user-john
|
2017-07-27 04:45:26 +07:00
|
|
|
Scenario: User john has admin access
|
2017-09-22 03:07:34 +07:00
|
|
|
When I visit "https://auth.test.local:8080"
|
|
|
|
And I login with user "john" and password "password"
|
|
|
|
And I use "REGISTERED" as TOTP token handle
|
|
|
|
And I click on "TOTP"
|
2017-07-27 04:45:26 +07:00
|
|
|
Then I have access to:
|
2017-09-03 20:22:09 +07:00
|
|
|
| url |
|
|
|
|
| https://public.test.local:8080/secret.html |
|
|
|
|
| https://dev.test.local:8080/groups/admin/secret.html |
|
|
|
|
| https://dev.test.local:8080/groups/dev/secret.html |
|
|
|
|
| https://dev.test.local:8080/users/john/secret.html |
|
|
|
|
| https://dev.test.local:8080/users/harry/secret.html |
|
|
|
|
| https://dev.test.local:8080/users/bob/secret.html |
|
|
|
|
| https://admin.test.local:8080/secret.html |
|
|
|
|
| https://mx1.mail.test.local:8080/secret.html |
|
2017-09-25 04:19:03 +07:00
|
|
|
| https://basicauth.test.local:8080/secret.html |
|
2017-09-03 20:22:09 +07:00
|
|
|
And I have no access to:
|
|
|
|
| url |
|
|
|
|
| https://mx2.mail.test.local:8080/secret.html |
|
2017-07-27 04:45:26 +07:00
|
|
|
|
2017-09-22 03:07:34 +07:00
|
|
|
@need-registered-user-bob
|
2017-07-27 04:45:26 +07:00
|
|
|
Scenario: User bob has restricted access
|
2017-09-22 03:07:34 +07:00
|
|
|
When I visit "https://auth.test.local:8080"
|
|
|
|
And I login with user "bob" and password "password"
|
|
|
|
And I use "REGISTERED" as TOTP token handle
|
|
|
|
And I click on "TOTP"
|
2017-07-27 04:45:26 +07:00
|
|
|
Then I have access to:
|
2017-09-03 20:22:09 +07:00
|
|
|
| url |
|
|
|
|
| https://public.test.local:8080/secret.html |
|
|
|
|
| https://dev.test.local:8080/groups/dev/secret.html |
|
|
|
|
| https://dev.test.local:8080/users/bob/secret.html |
|
|
|
|
| https://mx1.mail.test.local:8080/secret.html |
|
|
|
|
| https://mx2.mail.test.local:8080/secret.html |
|
2017-07-27 04:45:26 +07:00
|
|
|
And I have no access to:
|
2017-09-03 20:22:09 +07:00
|
|
|
| url |
|
|
|
|
| https://dev.test.local:8080/groups/admin/secret.html |
|
|
|
|
| https://admin.test.local:8080/secret.html |
|
|
|
|
| https://dev.test.local:8080/users/john/secret.html |
|
|
|
|
| https://dev.test.local:8080/users/harry/secret.html |
|
2017-09-25 04:19:03 +07:00
|
|
|
| https://basicauth.test.local:8080/secret.html |
|
2017-07-27 04:45:26 +07:00
|
|
|
|
2017-09-22 03:07:34 +07:00
|
|
|
@need-registered-user-harry
|
2017-07-27 04:45:26 +07:00
|
|
|
Scenario: User harry has restricted access
|
2017-09-22 03:07:34 +07:00
|
|
|
When I visit "https://auth.test.local:8080"
|
|
|
|
And I login with user "harry" and password "password"
|
|
|
|
And I use "REGISTERED" as TOTP token handle
|
|
|
|
And I click on "TOTP"
|
2017-07-27 04:45:26 +07:00
|
|
|
Then I have access to:
|
2017-09-03 20:22:09 +07:00
|
|
|
| url |
|
|
|
|
| https://public.test.local:8080/secret.html |
|
|
|
|
| https://dev.test.local:8080/users/harry/secret.html |
|
2017-07-27 04:45:26 +07:00
|
|
|
And I have no access to:
|
2017-09-03 20:22:09 +07:00
|
|
|
| url |
|
|
|
|
| https://dev.test.local:8080/groups/dev/secret.html |
|
|
|
|
| https://dev.test.local:8080/users/bob/secret.html |
|
|
|
|
| https://dev.test.local:8080/groups/admin/secret.html |
|
|
|
|
| https://admin.test.local:8080/secret.html |
|
|
|
|
| https://dev.test.local:8080/users/john/secret.html |
|
|
|
|
| https://mx1.mail.test.local:8080/secret.html |
|
|
|
|
| https://mx2.mail.test.local:8080/secret.html |
|
2017-09-25 04:19:03 +07:00
|
|
|
| https://basicauth.test.local:8080/secret.html |
|