-
Notifications
You must be signed in to change notification settings - Fork 8
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
chore: integration test keys #495
base: main
Are you sure you want to change the base?
Conversation
@@ -3,6 +3,9 @@ import { createClient } from 'contentful' | |||
import { ApiKey, Environment } from 'contentful-management' | |||
import { CreateApiKeyProps, Space } from 'contentful-management/types' | |||
|
|||
export const INTEGRATION_TEST_KEY = '5HAbGYZ6iZWiDXGxMtvsrW' |
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.
Can we name them something along the line of "access key id"?
try { | ||
cdaTokenWithOnlyMasterAccess = await testSpace.getApiKey(INTEGRATION_TEST_KEY_MASTER) | ||
} catch (e) { | ||
cdaTokenWithOnlyMasterAccess = await createCdaToken(testSpace, ['master']) |
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.
In what case would we end up in the catch clause?
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.
if the key is not found, for example, if it was removed
Love it - thank you! 🎉 |
@mayakarabula Should we merge it? :) |
integration test take a lot of time because we are generating new keys every time, we can just add and remove environments from one predefined key