2023-04-11 02:58:47 -07:00
|
|
|
// If your test needs data from credentials, you can add it here.
|
|
|
|
// as JSON.stringify({ id: 'credentials_ID', name: 'credentials_name' }) for specific credentials
|
|
|
|
// or as 'credentials_type' for all credentials of that type
|
|
|
|
// expected keys for credentials can be found in packages/nodes-base/credentials/[credentials_type].credentials.ts
|
2023-05-10 03:37:26 -07:00
|
|
|
export const FAKE_CREDENTIALS_DATA = {
|
2023-04-11 02:58:47 -07:00
|
|
|
[JSON.stringify({ id: '20', name: 'Airtable account' })]: {
|
|
|
|
apiKey: 'key456',
|
|
|
|
},
|
|
|
|
airtableApi: {
|
|
|
|
apiKey: 'key123',
|
|
|
|
},
|
|
|
|
n8nApi: {
|
|
|
|
apiKey: 'key123',
|
|
|
|
baseUrl: 'https://test.app.n8n.cloud/api/v1',
|
|
|
|
},
|
2023-05-10 03:37:26 -07:00
|
|
|
npmApi: {
|
|
|
|
accessToken: 'fake-npm-access-token',
|
|
|
|
registryUrl: 'https://fake.npm.registry',
|
|
|
|
},
|
2023-04-11 02:58:47 -07:00
|
|
|
totpApi: {
|
|
|
|
label: 'GitHub:john-doe',
|
|
|
|
secret: 'BVDRSBXQB2ZEL5HE',
|
|
|
|
},
|
2023-05-02 08:29:07 -07:00
|
|
|
aws: {
|
|
|
|
region: 'eu-central-1',
|
|
|
|
accessKeyId: 'key',
|
|
|
|
secretAccessKey: 'secret',
|
|
|
|
},
|
2023-06-28 03:19:25 -07:00
|
|
|
twitterOAuth2Api: {
|
|
|
|
grantType: 'pkce',
|
|
|
|
authUrl: 'https://twitter.com/i/oauth2/authorize',
|
|
|
|
accessTokenUrl: 'https://api.twitter.com/2/oauth2/token',
|
|
|
|
clientId: 'CLIENTID',
|
|
|
|
clientSecret: 'CLIENTSECRET',
|
|
|
|
scope:
|
|
|
|
'tweet.read users.read tweet.write tweet.moderate.write users.read follows.read follows.write offline.access like.read like.write dm.write dm.read list.read list.write',
|
|
|
|
authQueryParameters: '',
|
|
|
|
authentication: 'header',
|
|
|
|
oauthTokenData: {
|
|
|
|
token_type: 'bearer',
|
|
|
|
expires_in: 7200,
|
|
|
|
access_token: 'ACCESSTOKEN',
|
|
|
|
scope:
|
|
|
|
'tweet.moderate.write follows.read offline.access list.write dm.read list.read tweet.write like.write like.read users.read dm.write tweet.read follows.write',
|
|
|
|
refresh_token: 'REFRESHTOKEN',
|
|
|
|
},
|
|
|
|
},
|
2023-05-10 03:37:26 -07:00
|
|
|
} as const;
|