-
Notifications
You must be signed in to change notification settings - Fork 213
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
fix: fix jobs test fail #773
Conversation
$keyOffset = 3; | ||
$keyOffset = 2; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This fix is due to a change in php-http/multipart-stream-builder.
In v1.3.1, body has a Content-Length
header (as shown below).
--66e64e8fe1f375.28637093
Content-Disposition: form-data; name="users”
Content-Length: 167
[{“email”: “[email protected]”, “email_verified”:true, “app_metadata”:{“roles”:[“admin”, “super”], “plan”: “premium “}, “user_metadata”:{“theme”: “dark”}}]
--66e64e8fe1f375.28637093
Content-Disposition: form-data; name="connection_id”
Content-Length: 16
__test_conn_id__
--66e64e8fe1f375.28637093
Content-Disposition: form-data; name="upsert”
Content-Length: 4
Content-Disposition: form-data; name=“upsert” Content-Length: 4
...
However, after v.1.3.1, the Content-Length
header has been removed, so $keyOffset
is misaligned and the test fails.
Therefore, I think it is better to fix the test with this fix to follow the changes in multipart-stream-builder.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(And I think it is better to manage lock files by git as well.)
### Merged Contributions This pull request includes contributions from @yasuaki640 (PR #773), who helped fix job test failures. ### Changes - Fixed pest failure. - Added logic to mitigate failure of Snyk Authentication on Community Raised PRs. ### References NA ### Testing NA ### Contributor Checklist - [x] I agree to adhere to the [Auth0 General Contribution Guidelines](https://github.com/auth0/open-source-template/blob/master/GENERAL-CONTRIBUTING.md). - [x] I agree to uphold the [Auth0 Code of Conduct](https://github.com/auth0/open-source-template/blob/master/CODE-OF-CONDUCT.md).
@yasuaki640 I have included your changes in my PR as there is some issues going on with Snyk Authentication. |
### Added - Adding client credentials support [\#775](#775) ([kishore7snehil](https://github.com/kishore7snehil)) - Adding Support For CYOK [\#779](#779) ([kishore7snehil](https://github.com/kishore7snehil)) ### Fixed - fix jobs test fail [\#773](#773) ([yasuaki640](https://github.com/ramonschriks))
Changes
Fixed pest failure.
The investigation of the change is described in the comment of the diff.
References
https://github.com/php-http/multipart-stream-builder/blob/1.x/CHANGELOG.md#140---2024-09-01
Testing
Contributor Checklist