nextcloud-updater/tests/features/stable13.feature

62 lines
2.6 KiB
Gherkin

Feature: CLI updater - stable13 base
Scenario: Update is available - 13.0.0 beta 1 to 13.0.0 beta 2
Given the current installed version is 13.0.0beta1
And there is an update to prerelease version "13.0.0beta2" 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 13.0
And maintenance mode should be off
And upgrade is not required
Scenario: Update is available - 13.0.0 to 13.0.1
Given the current installed version is 13.0.0
And there is an update to version 13.0.1 available
When the CLI updater is run successfully
And the output should contain "Update successful"
Then the installed version should be 13.0.1
And maintenance mode should be off
And upgrade is not required
Scenario: Update is available - 13.0.3 to 13.0.4
Given the current installed version is 13.0.3
And there is an update to version 13.0.4 available
When the CLI updater is run successfully
And the output should contain "Update successful"
Then the installed version should be 13.0.4
And maintenance mode should be off
And upgrade is not required
Scenario: Update is available but unexpected folder found - 13.0.3 to 13.0.4
Given the current installed version is 13.0.3
And there is an update to version 13.0.4 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 13.0.3
And maintenance mode should be off
And upgrade is not required
Scenario: Update is available and .well-known folder exist - 13.0.3 to 13.0.4
Given the current installed version is 13.0.3
And there is an update to version 13.0.4 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 13.0.4
And maintenance mode should be off
And upgrade is not required
Scenario: Update is available - 13.0.1 to 14.0.3
Given the current installed version is 13.0.1
And PHP is at least in version 7.0
And the current channel is "daily"
And there is an update to version 14.0.3 available
When the CLI updater is run successfully
And the output should contain "Update successful"
Then the installed version should be 14.0
And maintenance mode should be off
And upgrade is not required