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

Fix difference between integration types and corresponding json keys #62

Merged
merged 2 commits into from
Jun 15, 2023

Conversation

shikhartanwar
Copy link
Member

Description

This PR fixes the difference between integration types and corresponding json keys in Console's project config:

  • For integration_type: service, console stores the credential config corresponding to jwt key
  • For integration_type: oauth_server_to_server, console stores the credential config corresponding to oauth_server_to_server key
  • For integration_type: oauth_server_to_server_migrate, console has both jwt and oauth_server_to_server credentials but we fetch details from oauth_server_to_server key

Related Issue

Motivation and Context

How Has This Been Tested?

  1. npm run test
  2. Linked to local events plugin and tested aio event provider list command for all 3 types of project:
    1. Project with only JWT credential
    2. Project with only OAuth Server-to-Server credential
    3. A project that is undergoing migrating and has both JWT and OAuth S2S credential.

Screenshots (if appropriate):

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

  • I have signed the Adobe Open Source CLA.
  • My code follows the code style of this project.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have read the CONTRIBUTING document.
  • I have added tests to cover my changes.
  • All new and existing tests passed.

Shikhar Tanwar added 2 commits June 15, 2023 16:28
- For integration_type: 'service', console stores the credential config corresponding to 'jwt' key
- For integration_type: 'oauth_server_to_server', console stores the credential config corresponding to 'oauth_server_to_server' key
- For integration_type: 'oauth_server_to_server_migrate', console has both 'jwt' and 'oauth_server_to_server` credentials but we fetch details from 'oauth_server_to_server' key
@shikhartanwar shikhartanwar self-assigned this Jun 15, 2023
@codecov
Copy link

codecov bot commented Jun 15, 2023

Codecov Report

Merging #62 (8dd63a7) into master (09b7566) will not change coverage.
The diff coverage is 100.00%.

@@            Coverage Diff            @@
##            master       #62   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           21        21           
  Lines          498       499    +1     
  Branches        68        65    -3     
=========================================
+ Hits           498       499    +1     
Impacted Files Coverage Δ
src/BaseCommand.js 100.00% <100.00%> (ø)

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

Copy link

@nicdard nicdard left a comment

Choose a reason for hiding this comment

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

LGTM

@shikhartanwar shikhartanwar merged commit 79fb96b into adobe:master Jun 15, 2023
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