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 integration tests for GraphQL API creation using SDL URL and Endp… #13623

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

nisan-abeywickrama
Copy link
Contributor

@nisan-abeywickrama nisan-abeywickrama commented Jan 8, 2025

Purpose

Add integration tests for the new functionality developed to create GraphQL APIs using:

  1. SDL URL: Create APIs from schema URLs.
  2. Endpoint: Create APIs by introspecting GraphQL endpoints.

Implementation

  • New Tests:
    • testCreateGraphQLAPIUsingSDLURL
    • testCreateGraphQLAPIUsingEndpoint
  • WireMock: Mock SDL URL and introspection responses using a wire mock server for testing.
  • Update rest api calls and methods to include the new url and useIntrospection parameters.

Copy link

codecov bot commented Jan 8, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 13.39%. Comparing base (370b561) to head (22b9fe1).
Report is 20 commits behind head on master.

Additional details and impacted files
@@             Coverage Diff              @@
##             master   #13623      +/-   ##
============================================
+ Coverage     11.86%   13.39%   +1.52%     
- Complexity      607      753     +146     
============================================
  Files           255      261       +6     
  Lines         11682    12045     +363     
  Branches       1223     1262      +39     
============================================
+ Hits           1386     1613     +227     
- Misses        10279    10418     +139     
+ Partials         17       14       -3     
Flag Coverage Δ
integration_tests 13.39% <ø> (+1.52%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

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.

2 participants