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.

Related to issue: wso2/api-manager#3444

Copy link

codecov bot commented Jan 8, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 14.43%. Comparing base (b7456cf) to head (8e5cae1).
Report is 21 commits behind head on master.

Additional details and impacted files
@@             Coverage Diff              @@
##             master   #13623      +/-   ##
============================================
- Coverage     18.44%   14.43%   -4.02%     
+ Complexity      944      719     -225     
============================================
  Files           261      261              
  Lines         12045    12084      +39     
  Branches       1262     1266       +4     
============================================
- Hits           2222     1744     -478     
- Misses         9806    10314     +508     
- Partials         17       26       +9     
Flag Coverage Δ
integration_tests 14.43% <ø> (-4.02%) ⬇️

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.

AnuGayan
AnuGayan previously approved these changes Jan 29, 2025
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