fix(Airtable Node): Do not allow to use deprecated api keys in v1 (#9171)

This commit is contained in:
Michael Kret
2024-04-24 16:04:14 +03:00
committed by GitHub
parent 8f5a6bec55
commit 017ae6e102
4 changed files with 34 additions and 16 deletions

View File

@@ -44,16 +44,15 @@ describe('Execute Airtable Node', () => {
for (const testData of tests) {
test(testData.description, async () => {
// execute workflow
const { result } = await executeWorkflow(testData, nodeTypes);
// check if result node data matches expected test data
const resultNodeData = Helpers.getResultNodeData(result, testData);
resultNodeData.forEach(({ nodeName, resultData }) =>
expect(resultData).toEqual(testData.output.nodeData[nodeName]),
);
expect(result.finished).toEqual(true);
try {
// execute workflow
await executeWorkflow(testData, nodeTypes);
} catch (error) {
expect(error).toBeUndefined();
expect(error.message).toEqual(
'The API Key connection was deprecated by Airtable, please use Access Token or OAuth2 instead.',
);
}
});
}
});