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

Add tests and fixes for the Collection API #14

Merged
merged 23 commits into from
Mar 4, 2024

Conversation

cmelone
Copy link
Collaborator

@cmelone cmelone commented Feb 22, 2024

I wrote some tests to handle calls to the fetch_job and fetch_node function. There's a mix of integration and unit tests here.

Because a POST request to /v1/collect will return 200 immediately and continue the collection in the background, I decided the best way to perform the tests was directly calling the fetch* functions.

In the course of writing this PR, I also fixed a couple bugs in the collection API

@cmelone cmelone added config Modifications to App Configuration ci Involving Project CI & Unit Tests dependencies Modifications to a Dependency File labels Feb 22, 2024
@cmelone cmelone requested a review from alecbcs February 22, 2024 05:54
@cmelone cmelone self-assigned this Feb 22, 2024
@cmelone cmelone changed the title Add tests and fixes for Collection API Add tests and fixes for the Collection API Feb 22, 2024
@cmelone cmelone mentioned this pull request Feb 22, 2024
2 tasks
.github/workflows/unit-tests.yml Outdated Show resolved Hide resolved
.github/workflows/requirements/unit-tests.txt Outdated Show resolved Hide resolved
alecbcs
alecbcs previously approved these changes Mar 4, 2024
Copy link
Member

@alecbcs alecbcs left a comment

Choose a reason for hiding this comment

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

I think we could probably shrink the timeseries data used in the tests, but otherwise this looks good to me.

Copy link
Member

@alecbcs alecbcs 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! @cmelone thanks for the quick turn around!

@alecbcs alecbcs merged commit 31a0aa1 into develop Mar 4, 2024
3 checks passed
@alecbcs alecbcs deleted the add/collection-tests-fixes branch March 4, 2024 19:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ci Involving Project CI & Unit Tests config Modifications to App Configuration dependencies Modifications to a Dependency File
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants