mirror of
https://github.com/n8n-io/n8n.git
synced 2026-10-17 05:29:44 +02:00
fix(Freshservice Node): Use least-privilege endpoint for credential testing
This commit is contained in:
parent
1076a580c2
commit
45d41998f9
|
|
@ -45,7 +45,7 @@ export class FreshserviceApi implements ICredentialType {
|
|||
test: ICredentialTestRequest = {
|
||||
request: {
|
||||
baseURL: '=https://{{$credentials.domain}}.freshservice.com/api/v2',
|
||||
url: '/departments',
|
||||
url: '/agents/me',
|
||||
},
|
||||
};
|
||||
}
|
||||
|
|
|
|||
|
|
@ -19,7 +19,7 @@ describe('FreshserviceApi Credential', () => {
|
|||
expect(freshserviceApi.test.request.baseURL).toBe(
|
||||
'=https://{{$credentials.domain}}.freshservice.com/api/v2',
|
||||
);
|
||||
expect(freshserviceApi.test.request.url).toBe('/departments');
|
||||
expect(freshserviceApi.test.request.url).toBe('/agents/me');
|
||||
});
|
||||
|
||||
describe('authenticate', () => {
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user