mirror of
				https://github.com/n8n-io/n8n-nodes-starter.git
				synced 2025-10-31 07:12:25 -05:00 
			
		
		
		
	add credential test block
This commit is contained in:
		
					parent
					
						
							
								f7fa0abb18
							
						
					
				
			
			
				commit
				
					
						638a103763
					
				
			
		
					 3 changed files with 11 additions and 2 deletions
				
			
		|  | @ -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', | ||||
| 		}, | ||||
| 	}; | ||||
| } | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue