import { equalityTest, workflowToTests } from '@test/nodes/Helpers';
import { credentials } from '../credentials';
describe('Azure Storage Node', () => {
const workflows = ['nodes/Microsoft/Storage/test/workflows/container_getAll.workflow.json'];
const workflowTests = workflowToTests(workflows);
describe('should get all containers', () => {
for (const workflow of workflowTests) {
workflow.nock = {
baseUrl: 'https://myaccount.blob.core.windows.net',
mocks: [
{
method: 'get',
path: '/?comp=list',
statusCode: 200,
responseBody:
'mycontainer1mycontainer1true01DB7228F6BEE6E7Wed, 29 Jan 2025 08:37:00 GMT"0x8DD40401935032C"unlockedexpiredfalsefalsefalseWed, 29 Jan 2025 08:38:21 GMT7value1mycontainer2',
},
{
method: 'get',
path: '/?comp=list&marker=mycontainer2',
statusCode: 200,
responseBody:
'mycontainer1mycontainer1true01DB7228F6BEE6E7Wed, 29 Jan 2025 08:37:00 GMT"0x8DD40401935032C"unlockedexpiredfalsefalsefalseWed, 29 Jan 2025 08:38:21 GMT7value1',
},
],
};
workflow.credentials = credentials;
test(workflow.description, async () => await equalityTest(workflow));
}
});
});