From 6cca56159252e84c623e96eb5a749672540ca8c4 Mon Sep 17 00:00:00 2001 From: Pascal Birchler Date: Sat, 28 Mar 2026 12:37:45 +0100 Subject: [PATCH 1/3] Use curl instead of wget in tests --- features/core-update.feature | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/features/core-update.feature b/features/core-update.feature index d9c53fba..eb5698ff 100644 --- a/features/core-update.feature +++ b/features/core-update.feature @@ -15,7 +15,7 @@ Feature: Update WordPress core 6.2 """ - When I run `wget http://wordpress.org/wordpress-6.2.zip --quiet` + When I run `curl -sS -L -o wordpress-6.2.zip http://wordpress.org/wordpress-6.2.zip` And I run `wp core update wordpress-6.2.zip` Then STDOUT should be: """ @@ -46,7 +46,7 @@ Feature: Update WordPress core 6.6 """ - When I run `wget http://wordpress.org/wordpress-6.8.zip --quiet` + When I run `curl -sS -L -o wordpress-6.8.zip http://wordpress.org/wordpress-6.8.zip` And I run `wp core update wordpress-6.8.zip --format=json` Then STDOUT should be: """ @@ -67,7 +67,7 @@ Feature: Update WordPress core 6.6 """ - When I run `wget http://wordpress.org/wordpress-6.8.zip --quiet` + When I run `curl -sS -L -o wordpress-6.8.zip http://wordpress.org/wordpress-6.8.zip` And I run `wp core update wordpress-6.8.zip --format=csv` Then STDOUT should be: """ @@ -89,7 +89,7 @@ Feature: Update WordPress core 6.6 """ - When I run `wget http://wordpress.org/wordpress-6.8.zip --quiet` + When I run `curl -sS -L -o wordpress-6.8.zip http://wordpress.org/wordpress-6.8.zip` And I run `wp core update wordpress-6.8.zip --format=table` Then STDOUT should end with a table containing rows: | name | old_version | new_version | status | From 22c436a23b3eb00dd8092787b3cbe11c963aeee7 Mon Sep 17 00:00:00 2001 From: Pascal Birchler Date: Sat, 28 Mar 2026 13:06:19 +0100 Subject: [PATCH 2/3] Use https while at it --- features/core-update.feature | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/features/core-update.feature b/features/core-update.feature index eb5698ff..3c0b4fcc 100644 --- a/features/core-update.feature +++ b/features/core-update.feature @@ -15,7 +15,7 @@ Feature: Update WordPress core 6.2 """ - When I run `curl -sS -L -o wordpress-6.2.zip http://wordpress.org/wordpress-6.2.zip` + When I run `curl -sS -L -o wordpress-6.2.zip https://wordpress.org/wordpress-6.2.zip` And I run `wp core update wordpress-6.2.zip` Then STDOUT should be: """ @@ -46,7 +46,7 @@ Feature: Update WordPress core 6.6 """ - When I run `curl -sS -L -o wordpress-6.8.zip http://wordpress.org/wordpress-6.8.zip` + When I run `curl -sS -L -o wordpress-6.8.zip https://wordpress.org/wordpress-6.8.zip` And I run `wp core update wordpress-6.8.zip --format=json` Then STDOUT should be: """ @@ -67,7 +67,7 @@ Feature: Update WordPress core 6.6 """ - When I run `curl -sS -L -o wordpress-6.8.zip http://wordpress.org/wordpress-6.8.zip` + When I run `curl -sS -L -o wordpress-6.8.zip https://wordpress.org/wordpress-6.8.zip` And I run `wp core update wordpress-6.8.zip --format=csv` Then STDOUT should be: """ @@ -89,7 +89,7 @@ Feature: Update WordPress core 6.6 """ - When I run `curl -sS -L -o wordpress-6.8.zip http://wordpress.org/wordpress-6.8.zip` + When I run `curl -sS -L -o wordpress-6.8.zip https://wordpress.org/wordpress-6.8.zip` And I run `wp core update wordpress-6.8.zip --format=table` Then STDOUT should end with a table containing rows: | name | old_version | new_version | status | @@ -357,7 +357,7 @@ Feature: Update WordPress core Given a WP install # May produce warnings if checksums cannot be retrieved. - When I try `wp core upgrade --force http://wordpress.org/nightly-builds/wordpress-latest.zip` + When I try `wp core upgrade --force https://wordpress.org/nightly-builds/wordpress-latest.zip` Then STDOUT should contain: """ Success: @@ -368,7 +368,7 @@ Feature: Update WordPress core """ # May produce warnings if checksums cannot be retrieved. - When I try `wp core upgrade --force http://wordpress.org/nightly-builds/wordpress-latest.zip` + When I try `wp core upgrade --force https://wordpress.org/nightly-builds/wordpress-latest.zip` Then STDOUT should contain: """ Success: From 7007a8c5eb6ddfd3e9296ef08ee6b17ac00d0730 Mon Sep 17 00:00:00 2001 From: Pascal Birchler Date: Sat, 28 Mar 2026 13:16:51 +0100 Subject: [PATCH 3/3] Add `--fail` flag --- features/core-update.feature | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/features/core-update.feature b/features/core-update.feature index 3c0b4fcc..7766e52e 100644 --- a/features/core-update.feature +++ b/features/core-update.feature @@ -15,7 +15,7 @@ Feature: Update WordPress core 6.2 """ - When I run `curl -sS -L -o wordpress-6.2.zip https://wordpress.org/wordpress-6.2.zip` + When I run `curl -sS -L --fail -o wordpress-6.2.zip https://wordpress.org/wordpress-6.2.zip` And I run `wp core update wordpress-6.2.zip` Then STDOUT should be: """ @@ -46,7 +46,7 @@ Feature: Update WordPress core 6.6 """ - When I run `curl -sS -L -o wordpress-6.8.zip https://wordpress.org/wordpress-6.8.zip` + When I run `curl -sS -L --fail -o wordpress-6.8.zip https://wordpress.org/wordpress-6.8.zip` And I run `wp core update wordpress-6.8.zip --format=json` Then STDOUT should be: """ @@ -67,7 +67,7 @@ Feature: Update WordPress core 6.6 """ - When I run `curl -sS -L -o wordpress-6.8.zip https://wordpress.org/wordpress-6.8.zip` + When I run `curl -sS -L --fail -o wordpress-6.8.zip https://wordpress.org/wordpress-6.8.zip` And I run `wp core update wordpress-6.8.zip --format=csv` Then STDOUT should be: """ @@ -89,7 +89,7 @@ Feature: Update WordPress core 6.6 """ - When I run `curl -sS -L -o wordpress-6.8.zip https://wordpress.org/wordpress-6.8.zip` + When I run `curl -sS -L --fail -o wordpress-6.8.zip https://wordpress.org/wordpress-6.8.zip` And I run `wp core update wordpress-6.8.zip --format=table` Then STDOUT should end with a table containing rows: | name | old_version | new_version | status |