Skip to content

Commit

Permalink
Change stable15 tests to stable20
Browse files Browse the repository at this point in the history
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
  • Loading branch information
MorrisJobke committed Mar 23, 2021
1 parent 276d3be commit 6404433
Show file tree
Hide file tree
Showing 5 changed files with 82 additions and 82 deletions.
34 changes: 8 additions & 26 deletions .drone.yml
Original file line number Diff line number Diff line change
Expand Up @@ -125,31 +125,13 @@ trigger:

---
kind: pipeline
name: php71-stable15
name: php73-stable20

steps:
- name: php71-stable15
image: nextcloudci/php7.1:php7.1-16
commands:
- make test-stable15

trigger:
branch:
- master
- stable*
event:
- pull_request
- push

---
kind: pipeline
name: php72-stable15

steps:
- name: php72-stable15
image: nextcloudci/php7.2:php7.2-12
- name: php73-stable20
image: nextcloudci/php7.3:php7.3-5
commands:
- make test-stable15
- make test-stable20

trigger:
branch:
Expand All @@ -161,13 +143,13 @@ trigger:

---
kind: pipeline
name: php73-stable15
name: php74-stable20

steps:
- name: php73-stable15
image: nextcloudci/php7.3:php7.3-2
- name: php74-stable20
image: nextcloudci/php7.4:php7.4-3
commands:
- make test-stable15
- make test-stable20

trigger:
branch:
Expand Down
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ test-cli: updater.phar test/vendor
test-stable19: updater.phar test/vendor
cd tests && vendor/behat/behat/bin/behat features/stable19.feature

test-stable15: updater.phar test/vendor
cd tests && vendor/behat/behat/bin/behat features/stable15.feature
test-stable20: updater.phar test/vendor
cd tests && vendor/behat/behat/bin/behat features/stable20.feature

test-stable16: updater.phar test/vendor
cd tests && vendor/behat/behat/bin/behat features/stable16.feature
Expand Down
18 changes: 18 additions & 0 deletions tests/features/bootstrap/FeatureContext.php
Original file line number Diff line number Diff line change
Expand Up @@ -242,12 +242,30 @@ public function getSignatureForVersion($version) {
CN6Aim4OoaZz4U7coPSi6pyRKcsV2KAaxlHIHzj71EjqV7gaoZRhzSnN/NomPu6D
hfOAOW47o1GsZXt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gm/nFuznVsq84U0YQKVVAA+ci0yXLB6cQCRwz5H3Qfn45v6ZivL7xjrk9aX423yK
CN45I0sFnm6aWxGPN1GegA==',
'21.0.0' => 'Jd0TVUqo3cVPKWaN7/5dEbIcJKcS9Z0V334sBaJAfXe+YgV6lRmPHrGuTK34+tUc
l9/OHJrazOO7tEDRdtM4zpFE7y9kHsqTTR2MTEVLwIZ5JsgTPHE2/im0wlWLk3UI
4Oo5TPt1EOgNbYHfEBY8FPKCL6JyT2ySBaQKYdfJMgkxUZw00BMjplhNUgXEhvd2
f8tPNZ3cs7hyr0SQFx96gyFcCQ4+5KohnLGqZnNSyV7ovHbYEzXUCmmULlm02zSu
V367c1FDks7iKs/V96u21NuF14IQzI0mEzMzysPINrKbHC+OU1BKHKOHqRJjkHwQ
fNJsXi16UkYMGUXyQWQXHg==',
];

if(isset($signatures[$version])) {
Expand Down
54 changes: 0 additions & 54 deletions tests/features/stable15.feature

This file was deleted.

54 changes: 54 additions & 0 deletions tests/features/stable20.feature
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
Feature: CLI updater - stable20 base

Scenario: Update is available - 20.0.0 beta 1 to 20.0.0 RC 1
Given the current installed version is 20.0.0beta1
And there is an update to prerelease version "20.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 20.0
And maintenance mode should be off
And upgrade is not required

Scenario: Update is available but unexpected folder found - 20.0.7 to 20.0.8
Given the current installed version is 20.0.7
And there is an update to version 20.0.8 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 20.0.7
And maintenance mode should be off
And upgrade is not required

Scenario: Update is available and .well-known folder exist - 20.0.7 to 20.0.8
Given the current installed version is 20.0.7
And there is an update to version 20.0.8 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 20.0.8
And maintenance mode should be off
And upgrade is not required

Scenario: Update is available and .rnd file exist - 20.0.7 to 20.0.10
Given the current installed version is 20.0.7
And there is an update to version 20.0.8 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 20.0.8
And maintenance mode should be off
And upgrade is not required

Scenario: Update is available - 20.0.0 to beta
Given the current installed version is 20.0.0RC1
And PHP is at least in version 7.3
And the current channel is "beta"
And there is an update to version 21.0.0 available
When the CLI updater is run successfully
And the output should contain "Update successful"
Then the installed version should be 21.0
And maintenance mode should be off
And upgrade is not required

0 comments on commit 6404433

Please sign in to comment.