|
1 | 1 | Feature: CLI updater |
2 | 2 |
|
3 | | - Scenario: No update is available - 12.0.0 |
4 | | - Given the current version is 12.0.0 |
| 3 | + Scenario: No update is available - 20.0.0 |
| 4 | + Given the current version is 20.0.0 |
5 | 5 | When the CLI updater is run |
6 | 6 | Then the output should contain "Could not find config.php. Is this file in the "updater" subfolder of Nextcloud?" |
7 | 7 |
|
8 | | - Scenario: No update is available - 12.0.0 |
9 | | - Given the current installed version is 12.0.0 |
| 8 | + Scenario: No update is available - 20.0.0 |
| 9 | + Given the current installed version is 20.0.0 |
10 | 10 | And there is no update available |
11 | 11 | When the CLI updater is run successfully |
12 | | - Then the installed version should be 12.0.0 |
| 12 | + Then the installed version should be 20.0.0 |
13 | 13 | And maintenance mode should be off |
14 | 14 | And upgrade is not required |
15 | 15 |
|
16 | | - Scenario: Update is available - 12.0.0 to 12.0.1 |
17 | | - Given the current installed version is 12.0.0 |
18 | | - And there is an update to version 12.0.1 available |
| 16 | + Scenario: Update is available - 20.0.0 to 20.0.1 |
| 17 | + Given the current installed version is 20.0.0 |
| 18 | + And there is an update to version 20.0.1 available |
19 | 19 | When the CLI updater is run successfully |
20 | | - Then the installed version should be 12.0.1 |
| 20 | + Then the installed version should be 20.0.1 |
21 | 21 | And maintenance mode should be off |
22 | 22 | And upgrade is not required |
23 | 23 |
|
24 | | - Scenario: Invalid update is available - 12.0.0 to 12.0.503 |
25 | | - Given the current installed version is 12.0.0 |
26 | | - And there is an update to version 12.0.503 available |
| 24 | + Scenario: Invalid update is available - 20.0.0 to 20.0.503 |
| 25 | + Given the current installed version is 20.0.0 |
| 26 | + And there is an update to version 20.0.503 available |
27 | 27 | When the CLI updater is run |
28 | 28 | Then the return code should not be 0 |
29 | 29 | And the output should contain "Download failed - Not Found (HTTP 404)" |
30 | | - And the installed version should be 12.0.0 |
| 30 | + And the installed version should be 20.0.0 |
31 | 31 | And maintenance mode should be off |
32 | 32 | And upgrade is not required |
33 | 33 |
|
34 | | - Scenario: Update without valid signature is being offered - 11.0.0 to 11.0.1 |
35 | | - Given the current installed version is 11.0.0 |
| 34 | + Scenario: Update without valid signature is being offered - 19.0.0 to 19.0.1 |
| 35 | + Given the current installed version is 19.0.0 |
36 | 36 | # This works because 11.0.1 is not in the signature list |
37 | | - And there is an update to version 11.0.1 available |
| 37 | + And there is an update to version 19.0.1 available |
38 | 38 | When the CLI updater is run |
39 | 39 | Then the return code should not be 0 |
40 | 40 | And the output should contain "Signature of update is not valid" |
41 | | - And the installed version should be 11.0.0 |
| 41 | + And the installed version should be 19.0.0 |
42 | 42 | And maintenance mode should be off |
43 | 43 | And upgrade is not required |
44 | 44 |
|
45 | | - Scenario: Update to older version - 12.0.0 to 11.0.2 |
46 | | - Given the current installed version is 12.0.0 |
47 | | - And there is an update to version 11.0.2 available |
| 45 | + Scenario: Update to older version - 20.0.0 to 19.0.2 |
| 46 | + Given the current installed version is 20.0.0 |
| 47 | + And there is an update to version 19.0.2 available |
48 | 48 | When the CLI updater is run |
49 | 49 | Then the return code should not be 0 |
50 | 50 | And the output should contain "Downloaded version is lower than installed version" |
51 | | - And the installed version should be 12.0.0 |
| 51 | + And the installed version should be 20.0.0 |
52 | 52 | And maintenance mode should be off |
53 | 53 | And upgrade is not required |
54 | 54 |
|
55 | | - Scenario: Update is available but autoupdate is disabled - 12.0.0 to 12.0.1 |
56 | | - Given the current installed version is 12.0.0 |
| 55 | + Scenario: Update is available but autoupdate is disabled - 20.0.0 to 20.0.1 |
| 56 | + Given the current installed version is 20.0.0 |
57 | 57 | And the autoupdater is disabled |
58 | | - And there is an update to version 12.0.1 available |
| 58 | + And there is an update to version 20.0.1 available |
59 | 59 | When the CLI updater is run |
60 | | - Then the installed version should be 12.0.0 |
| 60 | + Then the installed version should be 20.0.0 |
61 | 61 | And maintenance mode should be off |
62 | 62 | And upgrade is not required |
63 | 63 |
|
64 | | - Scenario: Update is available and apps2 folder is there and configured - 12.0.0 to 12.0.1 |
65 | | - Given the current installed version is 12.0.0 |
66 | | - And there is an update to version 12.0.1 available |
| 64 | + Scenario: Update is available and apps2 folder is there and configured - 20.0.0 to 20.0.1 |
| 65 | + Given the current installed version is 20.0.0 |
| 66 | + And there is an update to version 20.0.1 available |
67 | 67 | And there is a folder called "apps2" |
68 | 68 | And there is a config for a secondary apps directory called "apps2" |
69 | 69 | When the CLI updater is run successfully |
70 | | - Then the installed version should be 12.0.1 |
| 70 | + Then the installed version should be 20.0.1 |
71 | 71 | And maintenance mode should be off |
72 | 72 | And upgrade is not required |
73 | 73 |
|
74 | | - Scenario: Update is available and apps2 folder is there and not configured - 12.0.0 to 12.0.1 |
75 | | - Given the current installed version is 12.0.0 |
76 | | - And there is an update to version 12.0.1 available |
| 74 | + Scenario: Update is available and apps2 folder is there and not configured - 20.0.0 to 20.0.1 |
| 75 | + Given the current installed version is 20.0.0 |
| 76 | + And there is an update to version 20.0.1 available |
77 | 77 | And there is a folder called "apps2" |
78 | 78 | When the CLI updater is run |
79 | 79 | Then the return code should not be 0 |
80 | 80 | And the output should contain "The following extra files have been found" |
81 | 81 | And the output should contain "apps2" |
82 | | - And the installed version should be 12.0.0 |
| 82 | + And the installed version should be 20.0.0 |
83 | 83 | And maintenance mode should be off |
84 | 84 | And upgrade is not required |
0 commit comments