-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
[Obs Onboarding] Migrate API test to deployment agnostic framework #211548
Conversation
🤖 GitHub commentsExpand to view the GitHub comments
Just comment with:
|
c91e0fd
to
e57b6fb
Compare
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.
LGTM, just one nit
before(async () => { | ||
viewerClient = await roleScopedSupertest.getSupertestWithRoleScope('viewer', { | ||
withInternalHeaders: true, | ||
}); | ||
adminClient = await roleScopedSupertest.getSupertestWithRoleScope('admin', { | ||
withInternalHeaders: true, | ||
}); | ||
}); |
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.
we need to invalidate api keys after tests executed:
after(async () => {
viewerClient.destroy();
adminClient.destroy();
});
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.
maybe good to rename to viewClientWithAPIKey
and adminClientWithAPIKey
for visiblity
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.
Thanks! Renamed the variables and added after
e57b6fb
to
4903a06
Compare
⏳ Build in-progress
History
|
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.
LGTM!
Thanks for migrating the API tests to Deployment Agnostic.
Closes 206953
This change migrates mosts of the Obs Onboarding API tests to the deployment agnostic framework. A few tests has to be still left in the deployment-specific setup because they require a custom roles which are not supported in the deployment agnostic setup for serverless-oblt.