nextcloud-updater/tests/features/stable15.feature

55 lines
2.3 KiB
Gherkin

Feature: CLI updater - stable15 base
Scenario: Update is available - 15.0.0 beta 1 to 15.0.0 RC 1
Given the current installed version is 15.0.0beta1
And there is an update to prerelease version "15.0.0RC1" 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 15.0
And maintenance mode should be off
And upgrade is not required
Scenario: Update is available but unexpected folder found - 15.0.9 to 15.0.10
Given the current installed version is 15.0.9
And there is an update to version 15.0.10 available
And there is a folder called "test123"
When the CLI updater is run
Then the return code should not be 0
And the output should contain "The following extra files have been found"
Then the installed version should be 15.0.9
And maintenance mode should be off
And upgrade is not required
Scenario: Update is available and .well-known folder exist - 15.0.9 to 15.0.10
Given the current installed version is 15.0.9
And there is an update to version 15.0.10 available
And there is a folder called ".well-known"
When the CLI updater is run successfully
And the output should contain "Update successful"
Then the installed version should be 15.0.10
And maintenance mode should be off
And upgrade is not required
Scenario: Update is available and .rnd file exist - 15.0.9 to 15.0.10
Given the current installed version is 15.0.9
And there is an update to version 15.0.10 available
And there is a folder called ".rnd"
When the CLI updater is run successfully
And the output should contain "Update successful"
Then the installed version should be 15.0.10
And maintenance mode should be off
And upgrade is not required
Scenario: Update is available - 15.0.0 to master daily
Given the current installed version is 15.0.0RC1
And PHP is at least in version 7.0
And the current channel is "beta"
And there is an update to version 16.0.3 available
When the CLI updater is run successfully
And the output should contain "Update successful"
Then the installed version should be 16.0
And maintenance mode should be off
And upgrade is not required