import { AzureStorageConfig, azureStorageFile, azureStorageImage } from '@k6-contrib/fields-azure';
import 'dotenv/config';
const config: AzureStorageConfig = {
azureStorageOptions: {
account: process.env.AZURE_STORAGE_ACCOUNT_NAME,
accessKey: process.env.AZURE_STORAGE_ACCESS_KEY,
container: process.env.AZURE_STORAGE_CONTAINER,
},
};
const Post = list({
fields: {
title: text({ validation: { isRequired: true } }),
content: text(),
image: azureStorageImage({ config }),
file: azureStorageFile({ config }),
},
});
@k6-contrib/fields-azure
6.1.1 • Public • PublishedPackage Sidebar
Install
npm i @k6-contrib/fields-azure
Weekly Downloads
83
Version
6.1.1
License
MIT
Unpacked Size
130 kB
Total Files
31