2017-10-17 05:38:10 +07:00
|
|
|
@needs-inactivity-config
|
|
|
|
Feature: Session is closed after a certain amount of time
|
|
|
|
|
|
|
|
@need-authenticated-user-john
|
|
|
|
Scenario: An authenticated user is disconnected after a certain inactivity period
|
2018-03-29 05:04:59 +07:00
|
|
|
Given I have access to "https://public.example.com:8080/secret.html"
|
2017-10-17 05:38:10 +07:00
|
|
|
When I sleep for 6 seconds
|
2017-11-03 03:34:07 +07:00
|
|
|
And I visit "https://public.example.com:8080/secret.html"
|
2018-04-25 14:30:21 +07:00
|
|
|
Then I'm redirected to "https://login.example.com:8080/?rd=https://public.example.com:8080/secret.html"
|
2017-10-17 05:38:10 +07:00
|
|
|
|
|
|
|
@need-authenticated-user-john
|
|
|
|
Scenario: An authenticated user is disconnected after session expiration period
|
2018-03-29 05:04:59 +07:00
|
|
|
Given I have access to "https://public.example.com:8080/secret.html"
|
2017-10-17 05:38:10 +07:00
|
|
|
When I sleep for 4 seconds
|
2017-11-03 03:34:07 +07:00
|
|
|
And I visit "https://public.example.com:8080/secret.html"
|
2017-10-17 05:38:10 +07:00
|
|
|
And I sleep for 4 seconds
|
2017-11-03 03:34:07 +07:00
|
|
|
And I visit "https://public.example.com:8080/secret.html"
|
2017-10-17 05:38:10 +07:00
|
|
|
And I sleep for 4 seconds
|
2017-11-03 03:34:07 +07:00
|
|
|
And I visit "https://public.example.com:8080/secret.html"
|
2018-04-25 14:30:21 +07:00
|
|
|
Then I'm redirected to "https://login.example.com:8080/?rd=https://public.example.com:8080/secret.html"
|