test(Gmail Node): Add test coverage (no-changelog) (#12278)

This commit is contained in:
Elias Meire
2024-12-18 16:09:23 +01:00
committed by GitHub
parent 6ba91b5e1e
commit 5c445314f8
12 changed files with 3636 additions and 90 deletions

View File

@@ -125,6 +125,25 @@ BQIDAQAB
accessToken: 'testToken',
baseUrl: 'https://api.telegram.org',
},
gmailOAuth2: {
grantType: 'authorizationCode',
authUrl: 'https://accounts.google.com/o/oauth2/v2/auth',
accessTokenUrl: 'https://oauth2.googleapis.com/token',
clientId: 'CLIENTID',
clientSecret: 'CLIENTSECRET',
scope:
'https://www.googleapis.com/auth/gmail.labels https://www.googleapis.com/auth/gmail.addons.current.action.compose https://www.googleapis.com/auth/gmail.addons.current.message.action https://mail.google.com/ https://www.googleapis.com/auth/gmail.modify https://www.googleapis.com/auth/gmail.compose',
authQueryParameters: 'access_type=offline&prompt=consent',
authentication: 'body',
oauthTokenData: {
access_token: 'ACCESSTOKEN',
refresh_token: 'REFRESHTOKEN',
scope:
'https://www.googleapis.com/auth/gmail.labels https://www.googleapis.com/auth/gmail.addons.current.action.compose https://www.googleapis.com/auth/gmail.addons.current.message.action https://mail.google.com/ https://www.googleapis.com/auth/gmail.modify https://www.googleapis.com/auth/gmail.compose',
token_type: 'bearer',
expires_in: 86400,
},
},
notionApi: {
apiKey: 'key123',
},