Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

minor: fix tests for url-safe signed urls #203

Merged
merged 1 commit into from
Jan 16, 2025

Conversation

kbond
Copy link
Contributor

@kbond kbond commented Jan 13, 2025

symfony/symfony#59022 changed how signed urls are encoded. This change to the tests is required for 7.3+.

@kbond kbond force-pushed the url-safe-signed-uris branch from 5b152ad to f44aedc Compare January 13, 2025 20:34
@kbond kbond requested a review from bocharsky-bw January 13, 2025 20:42
Copy link
Member

@bocharsky-bw bocharsky-bw left a comment

Choose a reason for hiding this comment

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

Looks good to me, just one question

true
$actual = $components->getSignedUrl();
$expected = $testHelper->uriSigner->sign(\sprintf(
'http://localhost/verify/user?expires=%s&token=%s',
Copy link
Member

Choose a reason for hiding this comment

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

hm, why no port? Do we run it w/o port on CI? Will it fail if we run it with port locally?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is the default for Symfony, without any modifications, http://localhost is the base url. So yes, it passes locally.

Copy link
Member

Choose a reason for hiding this comment

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

OK, great!

@kbond kbond merged commit 936b4b6 into SymfonyCasts:main Jan 16, 2025
9 checks passed
@kbond kbond deleted the url-safe-signed-uris branch January 16, 2025 13:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants