import { NodeTestHarness } from '@nodes-testing/node-test-harness';
import { credentials } from '../credentials';
describe('Azure Storage Node', () => {
const { baseUrl } = credentials.azureStorageOAuth2Api;
new NodeTestHarness().setupTests({
credentials,
workflowFiles: ['container_getAll.workflow.json'],
nock: {
baseUrl,
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`,
},
],
},
});
});