From 680241592b140909c6fc710973c4ce91626b0bcc Mon Sep 17 00:00:00 2001 From: Morris Jobke Date: Mon, 22 Jul 2019 10:38:03 +0200 Subject: [PATCH] Update tests to 16 release Signed-off-by: Morris Jobke --- .drone.yml | 54 +++++++++++++++++++++ Makefile | 3 ++ tests/features/bootstrap/FeatureContext.php | 6 +++ tests/features/master.feature | 2 +- tests/features/stable15.feature | 4 +- tests/features/stable16.feature | 23 +++++++++ 6 files changed, 89 insertions(+), 3 deletions(-) create mode 100644 tests/features/stable16.feature diff --git a/.drone.yml b/.drone.yml index 9ea15c0..1b8101e 100644 --- a/.drone.yml +++ b/.drone.yml @@ -177,6 +177,60 @@ trigger: - pull_request - push +--- +kind: pipeline +name: php71-stable16 + +steps: + - name: php71-stable16 + image: nextcloudci/php7.1:php7.1-16 + commands: + - make test-stable16 + +trigger: + branch: + - master + - stable* + event: + - pull_request + - push + +--- +kind: pipeline +name: php72-stable16 + +steps: + - name: php72-stable16 + image: nextcloudci/php7.2:php7.2-12 + commands: + - make test-stable16 + +trigger: + branch: + - master + - stable* + event: + - pull_request + - push + +--- +kind: pipeline +name: php73-stable16 + +steps: + - name: php73-stable16 + image: nextcloudci/php7.3:php7.3-2 + commands: + - make test-stable16 + +trigger: + branch: + - master + - stable* + event: + - pull_request + - push + --- kind: pipeline name: php71-master diff --git a/Makefile b/Makefile index d58f0b3..2bc7e2a 100644 --- a/Makefile +++ b/Makefile @@ -29,6 +29,9 @@ test-stable14: updater.phar test/vendor test-stable15: updater.phar test/vendor cd tests && vendor/behat/behat/bin/behat features/stable15.feature +test-stable16: updater.phar test/vendor + cd tests && vendor/behat/behat/bin/behat features/stable16.feature + test-master: updater.phar test/vendor cd tests && vendor/behat/behat/bin/behat features/master.feature diff --git a/tests/features/bootstrap/FeatureContext.php b/tests/features/bootstrap/FeatureContext.php index ad1d9cf..31bfac4 100644 --- a/tests/features/bootstrap/FeatureContext.php +++ b/tests/features/bootstrap/FeatureContext.php @@ -249,6 +249,12 @@ WbRmf4trGwDdCA/kQ59LInfLR8KFfEiiOH2p2NijgXuWm49tdr7N1062diP4Dzwd WlWfRoT8G5DDQPGdj5a72+sQLjf3ZhjqgeQbGLwht/NonWLZhmmW/NgmylbCb9Ob a7NE4Vf792DrmBvq4HCHUexg+upaJ0s4sJLGqg3sWF8iUEnLyGePyL/Bw6MeLvjD sSD0Xb5oawIjTVHVAuL+3Q==', + '16.0.3' => 'TYiUB/+l2uXNpiHGuMhchHzzyMn8eiL2mzBD+fmwqUXU29UYK4FFvTbDEWWXxXF9 +XeOXXBTkWltQ6A5K+nwFx4Phf4VPznaGn3U/1hsLSLBy9p9qqBMQdmDvCxl4dJmP +R0Ttz6sGcC1AsYwW2Q5Z1lywpmk1Ax5YcJesbjOFTU9HXIOI2s9YyPX4bP3L1rkH +CaZqjW7yCedKhj64F/SuXnUwaPhqTNNoDdhCN14IKvXCFYKLxm5UoGXrddwIcRrL +rHSv7h5818aTjmj4sB1jsVrxNf32PgrUED8PUqgMYx1FxEzGyct4yj+GbIBi4D+K +b813iKq4+cn3CjTunREm6A==', ]; if(isset($signatures[$version])) { diff --git a/tests/features/master.feature b/tests/features/master.feature index c025a2f..0545d3e 100644 --- a/tests/features/master.feature +++ b/tests/features/master.feature @@ -7,6 +7,6 @@ Feature: CLI updater - master base 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 16.0 + Then the installed version should be 17.0 And maintenance mode should be off And upgrade is not required diff --git a/tests/features/stable15.feature b/tests/features/stable15.feature index b89af34..202d6ed 100644 --- a/tests/features/stable15.feature +++ b/tests/features/stable15.feature @@ -13,8 +13,8 @@ Feature: CLI updater - stable14 base 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 "daily" - And there is an update to daily version of master available + 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 diff --git a/tests/features/stable16.feature b/tests/features/stable16.feature new file mode 100644 index 0000000..f153da6 --- /dev/null +++ b/tests/features/stable16.feature @@ -0,0 +1,23 @@ +Feature: CLI updater - stable14 base + + Scenario: Update is available - 16.0.1 to 16.0.3 + Given the current installed version is 16.0.0 + 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 + + Scenario: Update is available - 16.0.0 to master daily + Given the current installed version is 16.0.0 + And the current channel is "daily" + And there is an update to daily version of master available +# TODO broken due to files_texteditor removal +# When the CLI updater is run successfully +# And the output should contain "Update successful" +# Then the installed version should be 17.0 +# And maintenance mode should be off +# And upgrade is not required + +