add credential test block

This commit is contained in:
dledoux 2025-09-09 10:12:27 -05:00
commit 638a103763
3 changed files with 11 additions and 2 deletions

View file

@ -2,6 +2,7 @@ import {
IAuthenticateGeneric,
ICredentialType,
INodeProperties,
ICredentialTestRequest,
} from 'n8n-workflow';
export class DigitalOceanServerlessInferenceApi implements ICredentialType {
@ -32,4 +33,12 @@ export class DigitalOceanServerlessInferenceApi implements ICredentialType {
},
},
};
// This block tells how this credential can be tested
test: ICredentialTestRequest = {
request: {
baseURL: 'https://inference.do-ai.run/v1',
url: '/models',
},
};
}