mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 01:56:46 +00:00
feat(Magento 2 Node): Add credential tests (#3086)
* Implements Magento Auth API Test * Deletes unit tests * Fixed lint issues and changed the URI for the credential test * ⚡ Move credential verification to the credential file * ⚡ Simplify code Co-authored-by: paolo-rechia <paolo@e-bot7.com> Co-authored-by: ricardo <ricardoespinoza105@gmail.com> Co-authored-by: Jan Oberhauser <jan.oberhauser@gmail.com>
This commit is contained in:
committed by
GitHub
parent
c7a037e9fe
commit
a11b00a037
@@ -1,4 +1,6 @@
|
||||
import {
|
||||
IAuthenticateBearer,
|
||||
ICredentialTestRequest,
|
||||
ICredentialType,
|
||||
INodeProperties,
|
||||
} from 'n8n-workflow';
|
||||
@@ -21,4 +23,15 @@ export class Magento2Api implements ICredentialType {
|
||||
default: '',
|
||||
},
|
||||
];
|
||||
test: ICredentialTestRequest = {
|
||||
request: {
|
||||
baseURL: '={{$credentials.host}}',
|
||||
url: '/rest/default/V1/modules',
|
||||
},
|
||||
};
|
||||
|
||||
authenticate = {
|
||||
type: 'bearer',
|
||||
properties: {},
|
||||
} as IAuthenticateBearer;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user