diff --git a/test/Makefile b/test/Makefile index ea664399..c0a07540 100644 --- a/test/Makefile +++ b/test/Makefile @@ -25,7 +25,11 @@ test-bridge: check-godog test-live: test-live-bridge test-live-ie test-live-bridge: FEATURES ?= features test-live-bridge: check-godog - TEST_ENV=live godog --tags="~@ignore && ~@ignore-live" $(FEATURES) + TEST_ENV=live godog --tags="~@ignore && ~@ignore-live && ~@ignore-live-auth" $(FEATURES) + +test-live-bridge-auth: check-godog + TEST_ENV=live godog --tags="@ignore-live-auth" $(FEATURES) + # Doesn't work in parallel! # Provide TEST_ACCOUNTS with your accounts. diff --git a/test/context/users.go b/test/context/users.go index a308c139..b15c1ae8 100644 --- a/test/context/users.go +++ b/test/context/users.go @@ -62,7 +62,7 @@ func (ctx *TestContext) LoginUser(username string, password, mailboxPassword []b ctx.addCleanupChecked( func() error { if os.Getenv(EnvName) == EnvLive { - logrus.Warn("Pausing user.Logout by two minutes to not hit issues with too many login attempts.") + logrus.Warn("Pausing user.Logout by 2 minutes to not hit issues with too many login attempts.") time.Sleep(2 * time.Minute) } return user.Logout() diff --git a/test/features/imap/auth.feature b/test/features/imap/auth.feature index a86e0897..5c6d1ba2 100644 --- a/test/features/imap/auth.feature +++ b/test/features/imap/auth.feature @@ -9,11 +9,13 @@ Feature: IMAP auth When IMAP client authenticates "user" with bad password Then IMAP response is "IMAP error: NO backend/credentials: incorrect password" + @ignore-live-auth Scenario: Authenticates with disconnected user Given there is disconnected user "user" When IMAP client authenticates "user" Then IMAP response is "IMAP error: NO account is logged out, use the app to login again" + @ignore-live-auth Scenario: Authenticates with connected user that was loaded without internet Given there is user "user" which just logged in And there is no internet connection @@ -27,12 +29,14 @@ Feature: IMAP auth And 2 seconds pass Then "user" is connected + @ignore-live-auth Scenario: Authenticates with freshly logged-out user Given there is user "user" which just logged in When "user" logs out And IMAP client authenticates "user" Then IMAP response is "IMAP error: NO account is logged out, use the app to login again" + @ignore-live-auth Scenario: Authenticates user which was re-logged in Given there is user "user" which just logged in When "user" logs out diff --git a/test/features/users/delete.feature b/test/features/users/delete.feature index be7dc8d1..305d4fdc 100644 --- a/test/features/users/delete.feature +++ b/test/features/users/delete.feature @@ -1,34 +1,43 @@ Feature: Delete user + @ignore-live-auth Scenario: Deleting connected user Given there is user "user" which just logged in When user deletes "user" Then last response is "OK" And "user" has database file + @ignore-live-auth Scenario: Deleting connected user with cache Given there is user "user" which just logged in When user deletes "user" with cache Then last response is "OK" And "user" does not have database file + @ignore-live-auth Scenario: Deleting connected user without database file Given there is user "user" which just logged in And there is no database file for "user" When user deletes "user" with cache Then last response is "OK" + # THIS IS BLOCKED BY ANTI-ABUSE + @ignore-live Scenario: Deleting disconnected user Given there is disconnected user "user" When user deletes "user" Then last response is "OK" And "user" has database file + # THIS IS BLOCKED BY ANTI-ABUSE + @ignore-live Scenario: Deleting disconnected user with cache Given there is disconnected user "user" When user deletes "user" with cache Then last response is "OK" And "user" does not have database file + # THIS IS BLOCKED BY ANTI-ABUSE + @ignore-live Scenario: Deleting disconnected user without database file Given there is disconnected user "user" And there is no database file for "user" diff --git a/test/features/users/login.feature b/test/features/users/login.feature index 3a2c0bf4..25ff3204 100644 --- a/test/features/users/login.feature +++ b/test/features/users/login.feature @@ -1,4 +1,5 @@ Feature: Login for the first time + @ignore-live-auth Scenario: Normal login Given there is user "user" When "user" logs in @@ -19,6 +20,7 @@ Feature: Login for the first time When "user" logs in with bad password Then last response is "failed to login: Incorrect login credentials. Please try again" + @ignore-live-auth Scenario: Login without internet connection Given there is no internet connection When "user" logs in @@ -34,6 +36,7 @@ Feature: Login for the first time And "user2fa" has running event loop And "user2fa" has non-zero space + @ignore-live-auth Scenario: Login user with capital letters in address Given there is user "userAddressWithCapitalLetter" When "userAddressWithCapitalLetter" logs in @@ -43,6 +46,7 @@ Feature: Login for the first time And "userAddressWithCapitalLetter" has running event loop And "userAddressWithCapitalLetter" has non-zero space + @ignore-live-auth Scenario: Login user with more addresses Given there is user "userMoreAddresses" When "userMoreAddresses" logs in @@ -62,6 +66,7 @@ Feature: Login for the first time And "userDisabledPrimaryAddress" has running event loop And "userDisabledPrimaryAddress" has non-zero space + @ignore-live-auth Scenario: Login two users Given there is user "user" And there is user "userMoreAddresses" diff --git a/test/features/users/relogin.feature b/test/features/users/relogin.feature index 2450a939..a244eb94 100644 --- a/test/features/users/relogin.feature +++ b/test/features/users/relogin.feature @@ -1,4 +1,5 @@ Feature: Re-login + @ignore-live-auth Scenario: Re-login with connected user and database file Given there is user "user" which just logged in And there is database file for "user" @@ -18,6 +19,7 @@ Feature: Re-login And "user" has database file And "user" has running event loop + @ignore-live-auth Scenario: Re-login with disconnected user and database file Given there is disconnected user "user" And there is database file for "user" @@ -27,6 +29,7 @@ Feature: Re-login And "user" has running event loop And "user" has non-zero space + @ignore-live-auth Scenario: Re-login with disconnected user and no database file Given there is disconnected user "user" And there is no database file for "user"