Skip to content

Commit c51c879

Browse files
authored
fix: add credential test for n8n compliance (#16)
1 parent 58f22ce commit c51c879

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

credentials/HostingerApi.credentials.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import {
22
IAuthenticateGeneric,
3+
ICredentialTestRequest,
34
ICredentialType,
45
INodeProperties,
56
} from 'n8n-workflow';
@@ -23,6 +24,7 @@ export class HostingerApi implements ICredentialType {
2324
description: 'Enter your Hostinger API token',
2425
},
2526
];
27+
2628
authenticate: IAuthenticateGeneric = {
2729
type: 'generic',
2830
properties: {
@@ -31,4 +33,12 @@ export class HostingerApi implements ICredentialType {
3133
},
3234
},
3335
};
36+
37+
test: ICredentialTestRequest = {
38+
request: {
39+
baseURL: this.documentationUrl,
40+
url: '/api/billing/v1/subscriptions',
41+
method: 'GET',
42+
},
43+
};
3444
}

0 commit comments

Comments
 (0)