-
Notifications
You must be signed in to change notification settings - Fork 30
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
ACNA-3231 | E2e tests failure #815
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #815 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 57 57
Lines 3332 3326 -6
Branches 643 643
=========================================
- Hits 3332 3326 -6 ☔ View full report in Codecov by Sentry. 🚨 Try these New Features:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Skip all this findCommand, execa call command work, it is not required, just use aioConfig directly as is already done throughout the code.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
implementation is fine, just had a few questions about the actual way we communicate with our users.
src/lib/app-helper.js
Outdated
*/ | ||
const checkifAccessTokenExists = async () => { | ||
try { | ||
const token = aioConfig.get('ims.contexts.cli.access_token.token') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is wrong for a lot of reasons.
- login context can be different things in different cases
- we sidestep using IMS lib, but seem to know everything about it ...
- what if the token is expired? we assume because it exists it is still good.
- why even call IMS if we already have the token?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@purplecabbage it was discussed here in the slack https://adobeio.slack.com/archives/C04HFLVUDLM/p1728302643048849
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
PR is updated with solution for above concern.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@purplecabbage I have covered and tested (locally on my machine) for all the scenarios:
- deploy command for normal web app (non-standalone app)
- undeploy command for normal web app (non-standalone app)
- deploy command for standalone app (where no-token is required)
- undeploy command for standalone app (where no-token is required)
What if Token is expired Scenario : https://adobeio.slack.com/archives/C04HFLVUDLM/p1728303835889539?thread_ts=1728302643.048849&cid=C04HFLVUDLM
…gin/standalone case
Closing this Pull request as this is not reflecting new changes of master branch , and reflecting lot of unnecessary changes making difficult to review. Will open a new PR for same. |
Refer to PR: #821 |
Description
Related Issue
ACNA-3231
Motivation and Context
How Has This Been Tested?
Screenshots (if appropriate):
Types of changes
Checklist: