mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 01:56:46 +00:00
27 lines
1.6 KiB
TypeScript
27 lines
1.6 KiB
TypeScript
import { equalityTest, workflowToTests } from '@test/nodes/Helpers';
|
|
|
|
describe('Azure Storage Node', () => {
|
|
const workflows = [
|
|
'nodes/Microsoft/Storage/test/workflows/container_getAllLimitOptions.workflow.json',
|
|
];
|
|
const workflowTests = workflowToTests(workflows);
|
|
|
|
describe('should get all containers with limit and options', () => {
|
|
for (const workflow of workflowTests) {
|
|
workflow.nock = {
|
|
baseUrl: 'https://myaccount.blob.core.windows.net',
|
|
mocks: [
|
|
{
|
|
method: 'get',
|
|
path: '/?comp=list&maxresults=1&include=metadata%2Cdeleted%2Csystem&prefix=mycontainer',
|
|
statusCode: 200,
|
|
responseBody:
|
|
'<?xml version="1.0" encoding="utf-8"?><EnumerationResults ServiceEndpoint="https://myaccount.blob.core.windows.net/"><Prefix>mycontainer</Prefix><MaxResults>1</MaxResults><Containers><Container><Name>mycontainer1</Name><Deleted>true</Deleted><Version>01DB7228F6BEE6E7</Version><Properties><Last-Modified>Wed, 29 Jan 2025 08:37:00 GMT</Last-Modified><Etag>"0x8DD40401935032C"</Etag><LeaseStatus>unlocked</LeaseStatus><LeaseState>expired</LeaseState><HasImmutabilityPolicy>false</HasImmutabilityPolicy><HasLegalHold>false</HasLegalHold><ImmutableStorageWithVersioningEnabled>false</ImmutableStorageWithVersioningEnabled><DeletedTime>Wed, 29 Jan 2025 08:38:21 GMT</DeletedTime><RemainingRetentionDays>7</RemainingRetentionDays></Properties><Metadata><key1>value1</key1></Metadata></Container></Containers><NextMarker>mycontainer2</NextMarker></EnumerationResults>',
|
|
},
|
|
],
|
|
};
|
|
test(workflow.description, async () => await equalityTest(workflow));
|
|
}
|
|
});
|
|
});
|