Skip to content

Update behat-data URLs in tests#139

Merged
swissspidy merged 1 commit intomainfrom
chore/update-tests
Apr 30, 2026
Merged

Update behat-data URLs in tests#139
swissspidy merged 1 commit intomainfrom
chore/update-tests

Conversation

@swissspidy
Copy link
Copy Markdown
Member

Copilot AI review requested due to automatic review settings April 30, 2026 07:10
@swissspidy swissspidy requested a review from a team as a code owner April 30, 2026 07:10
@github-actions github-actions Bot added scope:documentation Related to documentation scope:testing Related to testing labels Apr 30, 2026
Copy link
Copy Markdown

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request updates the asset URLs in the export.feature file, migrating them from wp-cli.org to wp-cli.github.io. The review feedback suggests further improving these changes by using https instead of http to ensure secure connections and prevent unnecessary redirects.

Comment thread features/export.feature
And save STDOUT as {EXPORT_ATTACHMENT_POST_ID}

When I run `wp media import 'http://wp-cli.org/behat-data/codeispoetry.png' --post_id={EXPORT_ATTACHMENT_POST_ID} --porcelain`
When I run `wp media import 'http://wp-cli.github.io/behat-data/codeispoetry.png' --post_id={EXPORT_ATTACHMENT_POST_ID} --porcelain`
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

Use https instead of http for the asset URL. GitHub Pages supports and often enforces HTTPS, so using it directly avoids unnecessary redirects and provides a more secure connection for downloading test assets.

    When I run `wp media import 'https://wp-cli.github.io/behat-data/codeispoetry.png' --post_id={EXPORT_ATTACHMENT_POST_ID} --porcelain`

Comment thread features/export.feature
And save STDOUT as {IGNORE_ATTACHMENT_POST_ID}

When I run `wp media import 'http://wp-cli.org/behat-data/white-150-square.jpg' --post_id={IGNORE_ATTACHMENT_POST_ID} --porcelain`
When I run `wp media import 'http://wp-cli.github.io/behat-data/white-150-square.jpg' --post_id={IGNORE_ATTACHMENT_POST_ID} --porcelain`
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

Use https instead of http for the asset URL. GitHub Pages supports and often enforces HTTPS, so using it directly avoids unnecessary redirects and provides a more secure connection for downloading test assets.

    When I run `wp media import 'https://wp-cli.github.io/behat-data/white-150-square.jpg' --post_id={IGNORE_ATTACHMENT_POST_ID} --porcelain`

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates Behat acceptance tests to use the new hosting location for behat-data assets, aligning with the wp-cli.org redirect change referenced in the PR description.

Changes:

  • Updated wp media import fixture URLs in the export feature to point to wp-cli.github.io/behat-data.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread features/export.feature
And save STDOUT as {EXPORT_ATTACHMENT_POST_ID}

When I run `wp media import 'http://wp-cli.org/behat-data/codeispoetry.png' --post_id={EXPORT_ATTACHMENT_POST_ID} --porcelain`
When I run `wp media import 'http://wp-cli.github.io/behat-data/codeispoetry.png' --post_id={EXPORT_ATTACHMENT_POST_ID} --porcelain`
Copy link

Copilot AI Apr 30, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Use https:// for the GitHub Pages behat-data URLs. GitHub Pages will typically redirect http to https, which adds an extra request and can fail in environments that block insecure HTTP or redirects.

Copilot uses AI. Check for mistakes.
Comment thread features/export.feature
And save STDOUT as {IGNORE_ATTACHMENT_POST_ID}

When I run `wp media import 'http://wp-cli.org/behat-data/white-150-square.jpg' --post_id={IGNORE_ATTACHMENT_POST_ID} --porcelain`
When I run `wp media import 'http://wp-cli.github.io/behat-data/white-150-square.jpg' --post_id={IGNORE_ATTACHMENT_POST_ID} --porcelain`
Copy link

Copilot AI Apr 30, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Use https:// for the GitHub Pages behat-data URLs. Using http relies on redirects and makes the test dependent on insecure HTTP being allowed.

Copilot uses AI. Check for mistakes.
@codecov
Copy link
Copy Markdown

codecov Bot commented Apr 30, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@swissspidy swissspidy merged commit e875edc into main Apr 30, 2026
69 of 70 checks passed
@swissspidy swissspidy deleted the chore/update-tests branch April 30, 2026 07:24
@swissspidy swissspidy added this to the 2.1.17 milestone Apr 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

scope:documentation Related to documentation scope:testing Related to testing

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants