Skip to content
This repository has been archived by the owner on Jun 20, 2024. It is now read-only.

Commit

Permalink
fix: add rclone test on index-s3
Browse files Browse the repository at this point in the history
  • Loading branch information
folkzb authored and fczuardi committed Nov 7, 2023
1 parent e36ed7f commit 5f2e95c
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
16 changes: 16 additions & 0 deletions src/k6/index-s3.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,11 @@ import {
setup as mgcSetup,
teardown as mgcTeardown
} from "./mgc-s3.js";
import {
default as rcloneTest,
setup as rcloneSetup,
teardown as rcloneTeardown
} from "./rclone-s3.js";

// init stage
// XXX: due to k6 this is the aggregated copy/paste of each init stage
Expand Down Expand Up @@ -64,6 +69,9 @@ export function setup() {
describe("Setup mgc test", (_t) => {
setupData.mgcData = mgcSetup();
});
describe("Setup rclone test", (_t) => {
setupData.rcloneData = rcloneSetup();
});
return setupData;
}
export default function ({
Expand All @@ -73,6 +81,7 @@ export default function ({
awsCliPresignData,
boto3Data,
mgcData,
rcloneData,
}) {
describe("Run k6-jslib-aws buckets test", async (_t) => {
await k6JsLibBucketsTest(k6JsLibBucketsData);
Expand All @@ -92,6 +101,9 @@ export default function ({
describe("Run mgc-s3 test", (_t) => {
mgcTest(mgcData);
});
describe("Run rclone-s3 test", (_t) => {
rcloneTest(rcloneData);
});
}

export function teardown({
Expand All @@ -101,6 +113,7 @@ export function teardown({
awsCliPresignData,
boto3Data,
mgcData,
rcloneData,
}) {
describe("Teardown k6-jslib-aws objects test", (_t) => {
k6JsLibObjectsTeardown(k6JsLibObjectsData);
Expand All @@ -120,4 +133,7 @@ export function teardown({
describe("Teardown mgc-s3 test", (_t) => {
mgcTeardown(mgcData);
});
describe("Teardown rclone-s3 test", (_t) => {
mgcTeardown(rcloneData);
});
}
1 change: 1 addition & 0 deletions src/k6/rclone-s3.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ const largeFileName = "k6"
export function setup(){
return bucketSetup(rcloneConfig);
}
export function teardown(){};

export default function scenarios (data){
uploadObject(data)
Expand Down

0 comments on commit 5f2e95c

Please sign in to comment.