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

feat(nextcloud_test): Add fixture recording and validation #1273

Merged
merged 2 commits into from
Dec 12, 2023

Conversation

provokateurin
Copy link
Member

This system records HTTP requests and compares them to some saved pattern. This ensures we never have any changes in the raw requests that we don't know about.

Ideally we create a dynamite_test package so that we can reuse this system for dynamite_petstore_example and dynamite_end_to_end_test. I can do that in this PR already if it is favorable.

There is no performance impact to the tests:

before: 08:04 +387 ~2: All tests passed!
after: 08:05 +387 ~2: All tests passed!

#435

@provokateurin provokateurin force-pushed the feat/nextcloud_test/fixtures branch from cc0aced to 864e969 Compare December 11, 2023 19:30
Copy link
Member

@Leptopoda Leptopoda 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 from a quick glance

@provokateurin provokateurin force-pushed the feat/nextcloud_test/fixtures branch from 864e969 to c442291 Compare December 12, 2023 07:27
Copy link
Member

@Leptopoda Leptopoda left a comment

Choose a reason for hiding this comment

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

LGTM
I tjink #1261 can also be marked to be closed.

@provokateurin
Copy link
Member Author

Sure. Do you want me to create a dynamite_test package out of this so we can also utilize it for petstore and the e2e tests?

@provokateurin provokateurin linked an issue Dec 12, 2023 that may be closed by this pull request
@Leptopoda
Copy link
Member

I think that these packages can utilise nextxloud_test directly. I don't see the benefit of a separate package.

@provokateurin
Copy link
Member Author

The nextcloud_test package has a lot of nextcloud specific stuff so it's not very clean to add it to the dynamite packages which are not nextcloud specific.

@Leptopoda
Copy link
Member

But it's only for testing 🤷‍♀️
If you prefer a separate package I'm fine with it.

@provokateurin
Copy link
Member Author

Let's keep it as is for now but once we want this in other packages as well we should move it to a separate package.

@provokateurin provokateurin merged commit 744efe9 into main Dec 12, 2023
8 checks passed
@provokateurin provokateurin deleted the feat/nextcloud_test/fixtures branch December 12, 2023 10:39
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.

Check WebDAV put headers in tests
2 participants