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

Improve test coverage for taskWithTags endpoints #3729

Merged
merged 1 commit into from
Jun 2, 2023

Conversation

amogh09
Copy link
Contributor

@amogh09 amogh09 commented Jun 1, 2023

Summary

Improve test coverage for v2, v3, and v4 taskWithTags endpoints.

This change is in a series of test coverage improvements we are making for TMDS endpoints. Test coverage is being improved to gain more confidence in the ongoing TMDS refactoring work.

Previous PRs in the series are #3722 and #3708. This change improves the coverage to include the many error cases of taskWithTags endpoints. All happy and error cases are consolidated into one test function per endpoint.

Implementation details

  • Added TestV2TaskMetadataWithTags, TestV3TaskMetadataWithTags, and TestV4TaskMetadataWithTags test functions for testing v2, v3, and v4 taskWithTags endpoints, respectively.
  • Each new test function tests all happy and error cases for the endpoint it tests.
  • Removed old test functions that are now redundant.

Testing

New tests cover the changes: yes

Description for the changelog

Improve test coverage for taskWithTags endpoints

Licensing

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@amogh09 amogh09 changed the base branch from master to dev June 1, 2023 18:18
@amogh09 amogh09 marked this pull request as ready for review June 1, 2023 18:27
@amogh09 amogh09 requested a review from a team as a code owner June 1, 2023 18:27
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.

4 participants