mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-18 02:21:13 +00:00
Co-authored-by: Stamsy <stams_89@abv.bg> Co-authored-by: Adina Totorean <adinatotorean99@gmail.com> Co-authored-by: Giulio Andreini <g.andreini@gmail.com> Co-authored-by: AdinaTotorean <64439268+adina-hub@users.noreply.github.com> Co-authored-by: Shireen Missi <94372015+ShireenMissi@users.noreply.github.com> Co-authored-by: feelgood-interface <feelgood.interface@gmail.com>
35 lines
836 B
TypeScript
35 lines
836 B
TypeScript
import { NodeTestHarness } from '@nodes-testing/node-test-harness';
|
|
import nock from 'nock';
|
|
|
|
describe('AWS Cognito - Create Group', () => {
|
|
beforeEach(() => {
|
|
const baseUrl = 'https://cognito-idp.eu-central-1.amazonaws.com/';
|
|
nock(baseUrl)
|
|
.persist()
|
|
.defaultReplyHeaders({ 'Content-Type': 'application/x-amz-json-1.1' })
|
|
.post('/', {
|
|
UserPoolId: 'eu-central-1_qqle3XBUA',
|
|
GroupName: 'MyNewGroup11',
|
|
})
|
|
.reply(200, {
|
|
Group: {
|
|
GroupName: 'MyNewGroup11',
|
|
UserPoolId: 'eu-central-1_qqle3XBUA',
|
|
CreationDate: 1743068959.243,
|
|
LastModifiedDate: 1743068959.243,
|
|
},
|
|
});
|
|
});
|
|
|
|
new NodeTestHarness().setupTests({
|
|
workflowFiles: ['create.workflow.json'],
|
|
credentials: {
|
|
aws: {
|
|
region: 'eu-central-1',
|
|
accessKeyId: 'test',
|
|
secretAccessKey: 'test',
|
|
},
|
|
},
|
|
});
|
|
});
|