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

fix: fix jobs test fail #773

Closed
wants to merge 4 commits into from
Closed

Conversation

yasuaki640
Copy link
Contributor

@yasuaki640 yasuaki640 commented Sep 15, 2024

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

$keyOffset = 3;
$keyOffset = 2;
Copy link
Contributor Author

@yasuaki640 yasuaki640 Sep 15, 2024

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.

Copy link
Contributor Author

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.)

@yasuaki640 yasuaki640 requested a review from a team as a code owner September 23, 2024 10:13
kishore7snehil added a commit that referenced this pull request Oct 23, 2024
### 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).
@kishore7snehil
Copy link
Contributor

@yasuaki640 I have included your changes in my PR as there is some issues going on with Snyk Authentication.
Will be using this branch and pull request to test out Snyk Testing on Open Source Contribution.
Thanks for understanding and your invaluable contribution!

@kishore7snehil kishore7snehil mentioned this pull request Nov 5, 2024
kishore7snehil added a commit that referenced this pull request Nov 7, 2024
### 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))
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.

3 participants