diff options
author | Morris Jobke <hey@morrisjobke.de> | 2016-12-06 18:56:47 +0300 |
---|---|---|
committer | Morris Jobke <hey@morrisjobke.de> | 2016-12-06 18:56:47 +0300 |
commit | 048f937e1670f618bb3ac8b881f6cea45a825997 (patch) | |
tree | 4ad1d9dabf5ce92197e04501396a1be04e872bad | |
parent | 668c9f8a94a321f2809936eac438a843493d8f45 (diff) |
test maintenance prereleases
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
-rw-r--r-- | tests/features/stable10.feature | 18 | ||||
-rw-r--r-- | tests/features/stable9.feature | 36 |
2 files changed, 54 insertions, 0 deletions
diff --git a/tests/features/stable10.feature b/tests/features/stable10.feature index 2c2dee6..f3297e7 100644 --- a/tests/features/stable10.feature +++ b/tests/features/stable10.feature @@ -99,3 +99,21 @@ 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 diff --git a/tests/features/stable9.feature b/tests/features/stable9.feature index 03426d9..a49b625 100644 --- a/tests/features/stable9.feature +++ b/tests/features/stable9.feature @@ -45,6 +45,24 @@ Feature: CLI updater - stable9 base 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 + # 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 @@ -101,6 +119,24 @@ 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 |