Hi! I am new to node development, I am building a programmatic style node that connects to an Oracle database. My credentials need to be tested with a custom function. I have declared a credentials object in the .node.ts file like this:
credentials: [
{
name: 'myConnection',
required: true,
testedBy: 'testConnection'
}
],
I’ve declared this testConnection function in the node’s methods object like this:
methods = {
listSearch: {
searchTables
},
//the credential test function is declared here:
credentialTest: {
testConnection /** this function exported in and imported from another file */
}
};
My test function adheres to the ICredentialTestFunction interface by n8n, returning a promise of INodeCredentialTestResult
Yet I keep getting the ‘No testing function found for this credential’ error when testing the credentials.
Am I doing something wrong?
- n8n version: 0.210.0
- Default SQLite database
- Running n8n via Docker