Skip to content

Commit

Permalink
Merge pull request #3310 from artilleryio/fix/az-dirname
Browse files Browse the repository at this point in the history
fix: Azure bug fixes
  • Loading branch information
hassy committed Aug 12, 2024
2 parents a96cc41 + 665638b commit 533dfcd
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,10 @@ sync_test_data_azure () {
# This recreates the directory structure in the container, i.e. we'll have tests/$test_run_id here with all files under it
# So we need to move them all up two levels to the current directory
az storage blob download-batch -d . --account-name "$AZURE_STORAGE_ACCOUNT" -s "$azure_storage_container_name" --pattern "tests/$test_run_id/*"
mv "tests/$test_run_id"/* .
local tmpdir="$(mktemp -d)"
mv tests/$test_run_id/* $tmpdir
rm -rf tests/$test_run_id
mv $tmpdir/* .
}

sync_test_data_s3 () {
Expand Down
4 changes: 3 additions & 1 deletion packages/artillery/lib/platform/az/aci.js
Original file line number Diff line number Diff line change
Expand Up @@ -116,9 +116,11 @@ class PlatformAzureACI {
this.blobContainerClient = this.blobServiceClient.getContainerClient(
this.blobContainerName
);

const { manifest } = await createTest(this.opts.absoluteScriptPath, {
flags: this.platformOpts.cliArgs,
name: this.testRunId,
config: this.platformOpts.cliArgs.config,
flags: this.platformOpts.cliArgs,
customSyncClient: {
putObject: ({ _Bucket, Key, Body }, callback) => {
const blockBlobClient =
Expand Down

0 comments on commit 533dfcd

Please sign in to comment.