diff options
author | Lukas Reschke <lukas@statuscode.ch> | 2016-12-07 12:09:45 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-12-07 12:09:45 +0300 |
commit | 49b1843146a76f8509f505be445d593eabf3f000 (patch) | |
tree | 6e528fb5c45baace3f220aa15d1cf4efc98fdb0e | |
parent | 77656a4fccd7a82bff057a6a6e498a799894463d (diff) | |
parent | 6e92fc0304b453642a8d29ad0ba21bc0e74bd7dd (diff) |
Merge pull request #54 from nextcloud/maintenance-telease-tests
test maintenance prereleases
-rw-r--r-- | tests/features/stable10.feature | 35 | ||||
-rw-r--r-- | tests/features/stable9.feature | 70 |
2 files changed, 90 insertions, 15 deletions
diff --git a/tests/features/stable10.feature b/tests/features/stable10.feature index 2c2dee6..8c9ac87 100644 --- a/tests/features/stable10.feature +++ b/tests/features/stable10.feature @@ -32,7 +32,7 @@ Feature: CLI updater - stable10 base And there is an update to daily version of stable10 available When the CLI updater is run successfully And the output should contain "Update successful" - Then the installed version should be 10.0.1 + Then the installed version should be 10.0.2 And maintenance mode should be off And upgrade is not required @@ -41,7 +41,7 @@ Feature: CLI updater - stable10 base And there is an update to daily version of stable10 available When the CLI updater is run successfully And the output should contain "Update successful" - Then the installed version should be 10.0.1 + Then the installed version should be 10.0.2 And maintenance mode should be off And upgrade is not required @@ -51,7 +51,7 @@ Feature: CLI updater - stable10 base And the version number is decreased in the config.php to enforce upgrade When the CLI updater is run successfully And the output should contain "Update successful" - Then the installed version should be 10.0.1 + Then the installed version should be 10.0.2 And maintenance mode should be off And upgrade is not required @@ -99,3 +99,32 @@ Feature: CLI updater - stable10 base Then the installed version should be 11.0.0.5 And maintenance mode should be off And upgrade is not required + + Scenario: Update is available - 10.0.0 to 10.0.2RC1 + Given the current installed version is 10.0.0 + And there is an update to prerelease version of 10.0.2RC1 available + When the CLI updater is run successfully + And the output should contain "Update successful" + Then the installed version should be 10.0.2 + And maintenance mode should be off + And upgrade is not required + + Scenario: Update is available - 10.0.1 to 10.0.2RC1 + Given the current installed version is 10.0.1 + And there is an update to prerelease version of 10.0.2RC1 available + When the CLI updater is run successfully + And the output should contain "Update successful" + Then the installed version should be 10.0.2 + And maintenance mode should be off + And upgrade is not required + + + Scenario: Update is available - 10.0.2 RC1 to 10.0.2RC1 to check if the updater will run on the RC onwards + Given the current installed version is 10.0.2RC1 + And there is an update to prerelease version of 10.0.2RC1 available + And the version number is decreased in the config.php to enforce upgrade + When the CLI updater is run successfully + And the output should contain "Update successful" + Then the installed version should be 10.0.2 + And maintenance mode should be off + And upgrade is not required diff --git a/tests/features/stable9.feature b/tests/features/stable9.feature index 03426d9..fb3fe38 100644 --- a/tests/features/stable9.feature +++ b/tests/features/stable9.feature @@ -41,19 +41,47 @@ Feature: CLI updater - stable9 base And there is an update to daily version of stable9 available When the CLI updater is run successfully And the output should contain "Update successful" - Then the installed version should be 9.0.54 + Then the installed version should be 9.0.55 + And maintenance mode should be off + And upgrade is not required + + Scenario: Update is available - 9.0.53 to 9.0.55 RC1 + Given the current installed version is 9.0.53 + And there is an update to prerelease version 9.0.55RC1 available + When the CLI updater is run successfully + And the output should contain "Update successful" + Then the installed version should be 9.0.55 + And maintenance mode should be off + And upgrade is not required + + Scenario: Update is available - 9.0.54 to 9.0.55 RC1 + Given the current installed version is 9.0.54 + And there is an update to prerelease version 9.0.55RC1 available + When the CLI updater is run successfully + And the output should contain "Update successful" + Then the installed version should be 9.0.55 + And maintenance mode should be off + And upgrade is not required + + Scenario: Update is available - 9.0.55 RC1 to 9.0.55 RC1 to check if the updater will run on the RC onwards + Given the current installed version is 9.0.55RC1 + And there is an update to prerelease version 9.0.55RC1 available + And the version number is decreased in the config.php to enforce upgrade + When the CLI updater is run successfully + And the output should contain "Update successful" + Then the installed version should be 9.0.55 And maintenance mode should be off And upgrade is not required -# TODO running ./occ upgrade when maintenance mode is enabled causes return code of 2 instead of 0 saying that no update is available but the maintenance mode is active -# Scenario: Update is available - 9.0.54 to stable9 daily -# Given the current installed version is 9.0.54 -# And there is an update to daily version of stable9 available -# When the CLI updater is run successfully -# And the output should contain "Update successful" -# Then the installed version should be 9.0.54 -# And maintenance mode should be off -# And upgrade is not required + Scenario: Update is available - 9.0.54 to stable9 daily + Given the current installed version is 9.0.54 + And there is an update to daily version of stable9 available + And the version number is decreased in the config.php to enforce upgrade + When the CLI updater is run successfully + And the output should contain "Update successful" + Then the installed version should be 9.0.55 + And maintenance mode should be off + And upgrade is not required Scenario: Update is available - stable9 to stable9 daily Given the current installed version is stable9 @@ -61,7 +89,7 @@ Feature: CLI updater - stable9 base And the version number is decreased in the config.php to enforce upgrade When the CLI updater is run successfully And the output should contain "Update successful" - Then the installed version should be 9.0.54 + Then the installed version should be 9.0.55 And maintenance mode should be off And upgrade is not required @@ -101,11 +129,29 @@ Feature: CLI updater - stable9 base And maintenance mode should be off And upgrade is not required + Scenario: Update is available - 9.0.53 to 10.0.2RC1 + Given the current installed version is 9.0.53 + And there is an update to prerelease version 10.0.2RC1 available + When the CLI updater is run successfully + And the output should contain "Update successful" + Then the installed version should be 10.0.2 + And maintenance mode should be off + And upgrade is not required + + Scenario: Update is available - 9.0.54 to 10.0.2RC1 + Given the current installed version is 9.0.54 + And there is an update to prerelease version 10.0.2RC1 available + When the CLI updater is run successfully + And the output should contain "Update successful" + Then the installed version should be 10.0.2 + And maintenance mode should be off + And upgrade is not required + Scenario: Update is available - 9.0.54 to stable10 daily Given the current installed version is 9.0.54 And there is an update to daily version of stable10 available When the CLI updater is run successfully And the output should contain "Update successful" - Then the installed version should be 10.0.1 + Then the installed version should be 10.0.2 And maintenance mode should be off And upgrade is not required
\ No newline at end of file |