fix: Apply credential overwrites recursively (#5072)

This ensures that overwrites defined for a parent credential type also applies to all credentials extending it.
This commit is contained in:
कारतोफ्फेलस्क्रिप्ट™
2023-01-04 18:16:48 +01:00
committed by GitHub
parent f1184ccab5
commit 5d746c4a83
11 changed files with 73 additions and 18 deletions

View File

@@ -1,5 +1,11 @@
import { v4 as uuid } from 'uuid';
import { INodeTypeData, INodeTypes, SubworkflowOperationError, Workflow } from 'n8n-workflow';
import {
ICredentialTypes,
INodeTypeData,
INodeTypes,
SubworkflowOperationError,
Workflow,
} from 'n8n-workflow';
import config from '@/config';
import * as Db from '@/Db';
@@ -35,6 +41,7 @@ beforeAll(async () => {
credentials: {},
},
known: { nodes: {}, credentials: {} },
credentialTypes: {} as ICredentialTypes,
});
credentialOwnerRole = await testDb.getCredentialOwnerRole();