mirror of
https://github.com/n8n-io/n8n.git
synced 2024-11-15 00:54:06 -08:00
0a9f6b3de8
Co-authored-by: Giulio Andreini <andreini@netseven.it>
99 lines
3.9 KiB
TypeScript
99 lines
3.9 KiB
TypeScript
// 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
|
|
export const FAKE_CREDENTIALS_DATA = {
|
|
[JSON.stringify({ id: '20', name: 'Airtable account' })]: {
|
|
apiKey: 'key456',
|
|
},
|
|
[JSON.stringify({ id: 'G45TOKX5kBEraTr1', name: 'JWT Auth test PEM' })]: {
|
|
keyType: 'pemKey',
|
|
privateKey: `
|
|
-----BEGIN PRIVATE KEY-----
|
|
MIIEvgIBADANBgkqhkiG9w0BAQEFAASCBKgwggSkAgEAAoIBAQCfw0m1K+M1/6Tw
|
|
CvLYDv0gmxa+reEdKBfT0/hfkkjFWqbMRo0f4CQ3PwrOavS+80PDy6nVL21BmGev
|
|
w1bF7KXmqOzr+yKOUJ8A4u6vXUQKzVSFBqb2YZmZL1s7va9aaO6pVANTbmYHpTjh
|
|
SBnBrXgidVOXNX1c+IG+OZZMiTFWg4lJTE9rvMbLh4o5FPwdZlA1rLAux4KXVNNr
|
|
mE7T5/tsuikR06KMJS6V6YR4PZmTsy/3D2clADXDCtbUdEe0eBYoUmRLMhRL6umq
|
|
h98Dsm5ZG+YB2dn0ThR/g7DPVwvmnrK2S5e4hpqFYxQ8V8pGx7dQLsc/utbvsn32
|
|
dctGivkFAgMBAAECggEABDB0QdZtRlC2S/8VgBnghFbcwVJA6WlQOqM/y43D77zh
|
|
S9D7yV6wxGwYRfJjCZDKcZtpECiGtmYfLeoy38zFSueaEtQKg23UxYqt1JZe/uOE
|
|
eFqEzUgg5XXq8AWY0AeZXoJP9gOalE++TpX76uq4EDtAXmIuL95qVIkhCk+8pfa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appKnA
|
|
lOMhy99LXMlAOL7qOBnZHgrm
|
|
-----END PRIVATE KEY-----
|
|
`,
|
|
publicKey: `
|
|
-----BEGIN PUBLIC KEY-----
|
|
MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAn8NJtSvjNf+k8Ary2A79
|
|
IJsWvq3hHSgX09P4X5JIxVqmzEaNH+AkNz8Kzmr0vvNDw8up1S9tQZhnr8NWxeyl
|
|
5qjs6/sijlCfAOLur11ECs1UhQam9mGZmS9bO72vWmjuqVQDU25mB6U44UgZwa14
|
|
InVTlzV9XPiBvjmWTIkxVoOJSUxPa7zGy4eKORT8HWZQNaywLseCl1TTa5hO0+f7
|
|
bLopEdOijCUulemEeD2Zk7Mv9w9nJQA1wwrW1HRHtHgWKFJkSzIUS+rpqoffA7Ju
|
|
WRvmAdnZ9E4Uf4Owz1cL5p6ytkuXuIaahWMUPFfKRse3UC7HP7rW77J99nXLRor5
|
|
BQIDAQAB
|
|
-----END PUBLIC KEY-----
|
|
`,
|
|
algorithm: 'RS256',
|
|
},
|
|
airtableApi: {
|
|
apiKey: 'key123',
|
|
},
|
|
n8nApi: {
|
|
apiKey: 'key123',
|
|
baseUrl: 'https://test.app.n8n.cloud/api/v1',
|
|
},
|
|
npmApi: {
|
|
accessToken: 'fake-npm-access-token',
|
|
registryUrl: 'https://fake.npm.registry',
|
|
},
|
|
totpApi: {
|
|
label: 'GitHub:john-doe',
|
|
secret: 'BVDRSBXQB2ZEL5HE',
|
|
},
|
|
aws: {
|
|
region: 'eu-central-1',
|
|
accessKeyId: 'key',
|
|
secretAccessKey: 'secret',
|
|
},
|
|
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',
|
|
},
|
|
},
|
|
jwtAuth: {
|
|
keyType: 'passphrase',
|
|
secret: 'baz',
|
|
algorithm: 'HS256',
|
|
},
|
|
} as const;
|