2020-04-08 10:59:16 +00:00
|
|
|
Feature: Start bridge
|
|
|
|
|
Scenario: Start with connected user, database file and internet connection
|
2021-05-19 07:57:36 +00:00
|
|
|
Given there is user "user" which just logged in
|
2020-04-08 10:59:16 +00:00
|
|
|
And there is database file for "user"
|
|
|
|
|
When bridge starts
|
|
|
|
|
Then "user" is connected
|
|
|
|
|
And "user" has loaded store
|
|
|
|
|
And "user" has running event loop
|
2021-09-21 12:54:15 +00:00
|
|
|
And "user" has non-zero space
|
2020-04-08 10:59:16 +00:00
|
|
|
|
|
|
|
|
Scenario: Start with connected user, database file and no internet connection
|
2021-05-19 07:57:36 +00:00
|
|
|
Given there is user "user" which just logged in
|
2020-04-08 10:59:16 +00:00
|
|
|
And there is database file for "user"
|
|
|
|
|
And there is no internet connection
|
|
|
|
|
When bridge starts
|
|
|
|
|
Then "user" is connected
|
|
|
|
|
And "user" has loaded store
|
|
|
|
|
And "user" has running event loop
|
2021-09-21 12:54:15 +00:00
|
|
|
And "user" has zero space
|
2020-04-08 10:59:16 +00:00
|
|
|
|
|
|
|
|
Scenario: Start with connected user, no database file and internet connection
|
2021-05-19 07:57:36 +00:00
|
|
|
Given there is user "user" which just logged in
|
2020-04-08 10:59:16 +00:00
|
|
|
And there is no database file for "user"
|
|
|
|
|
When bridge starts
|
|
|
|
|
Then "user" is connected
|
|
|
|
|
And "user" has loaded store
|
|
|
|
|
And "user" has running event loop
|
2021-09-21 12:54:15 +00:00
|
|
|
And "user" has non-zero space
|
2020-04-08 10:59:16 +00:00
|
|
|
|
|
|
|
|
Scenario: Start with connected user, no database file and no internet connection
|
2021-05-19 07:57:36 +00:00
|
|
|
Given there is user "user" which just logged in
|
2020-04-08 10:59:16 +00:00
|
|
|
And there is no database file for "user"
|
|
|
|
|
And there is no internet connection
|
|
|
|
|
When bridge starts
|
2021-03-11 13:37:15 +00:00
|
|
|
Then "user" is connected
|
|
|
|
|
And "user" does not have loaded store
|
|
|
|
|
And "user" does not have running event loop
|
|
|
|
|
And the internet connection is restored
|
|
|
|
|
And 5 seconds pass
|
|
|
|
|
Then "user" is connected
|
|
|
|
|
And "user" has loaded store
|
|
|
|
|
And "user" has running event loop
|
2021-09-21 12:54:15 +00:00
|
|
|
And "user" has non-zero space
|
2020-04-08 10:59:16 +00:00
|
|
|
|
|
|
|
|
Scenario: Start with disconnected user, database file and internet connection
|
|
|
|
|
Given there is disconnected user "user"
|
|
|
|
|
And there is database file for "user"
|
|
|
|
|
When bridge starts
|
|
|
|
|
Then "user" is disconnected
|
|
|
|
|
And "user" has loaded store
|
|
|
|
|
And "user" does not have running event loop
|
2021-09-21 12:54:15 +00:00
|
|
|
And "user" has zero space
|
2020-04-08 10:59:16 +00:00
|
|
|
|
|
|
|
|
Scenario: Start with disconnected user, database file and no internet connection
|
|
|
|
|
Given there is disconnected user "user"
|
|
|
|
|
And there is database file for "user"
|
|
|
|
|
And there is no internet connection
|
|
|
|
|
When bridge starts
|
|
|
|
|
Then "user" is disconnected
|
|
|
|
|
And "user" has loaded store
|
|
|
|
|
And "user" does not have running event loop
|
2021-09-21 12:54:15 +00:00
|
|
|
And "user" has zero space
|
2020-04-08 10:59:16 +00:00
|
|
|
|
|
|
|
|
Scenario: Start with disconnected user, no database file and internet connection
|
|
|
|
|
Given there is disconnected user "user"
|
|
|
|
|
And there is no database file for "user"
|
|
|
|
|
When bridge starts
|
|
|
|
|
Then "user" is disconnected
|
|
|
|
|
And "user" does not have loaded store
|
|
|
|
|
And "user" does not have running event loop
|
2021-09-21 12:54:15 +00:00
|
|
|
And "user" has zero space
|
2020-04-08 10:59:16 +00:00
|
|
|
|
|
|
|
|
Scenario: Start with disconnected user, no database file and no internet connection
|
|
|
|
|
Given there is disconnected user "user"
|
|
|
|
|
And there is no database file for "user"
|
|
|
|
|
And there is no internet connection
|
|
|
|
|
When bridge starts
|
|
|
|
|
Then "user" is disconnected
|
|
|
|
|
And "user" does not have loaded store
|
|
|
|
|
And "user" does not have running event loop
|
2021-09-21 12:54:15 +00:00
|
|
|
And "user" has zero space
|
2022-02-22 15:41:32 +00:00
|
|
|
|
|
|
|
|
Scenario: Start with connected user, database file and internet connection, but no write access to credentials
|
|
|
|
|
Given there is user "user" which just logged in
|
|
|
|
|
And credentials are locked
|
|
|
|
|
And there is database file for "user"
|
|
|
|
|
When bridge starts
|
|
|
|
|
Then "user" is connected
|
|
|
|
|
When IMAP client authenticates "user"
|
|
|
|
|
Then IMAP response is "NO"
|