From 30c75976a3704f1def2b8f4b1190b100a56da573 Mon Sep 17 00:00:00 2001 From: Jacob Heider Date: Mon, 29 Jan 2024 15:24:59 -0500 Subject: [PATCH] fix(azcopy) error message changed closes #5041 --- projects/microsoft.com/azure-storage-azcopy/package.yml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/projects/microsoft.com/azure-storage-azcopy/package.yml b/projects/microsoft.com/azure-storage-azcopy/package.yml index 9138fb35..7d0ffdc0 100644 --- a/projects/microsoft.com/azure-storage-azcopy/package.yml +++ b/projects/microsoft.com/azure-storage-azcopy/package.yml @@ -8,8 +8,7 @@ versions: build: dependencies: go.dev: '>=1.19' - script: - go build $ARGS -ldflags="$LDFLAGS" + script: go build $ARGS -ldflags="$LDFLAGS" env: ARGS: - -trimpath @@ -26,5 +25,9 @@ provides: test: - azcopy --version | grep {{version}} + - azcopy list https://storageaccountname.blob.core.windows.net/containername/ || true - azcopy list https://storageaccountname.blob.core.windows.net/containername/ > output.txt || true - - cat output.txt | grep 'Login Credentials missing' \ No newline at end of file + - run: cat output.txt | grep 'Login Credentials missing' + if: '<10.23' + - run: cat output.txt | grep 'This request is not authorized to perform this operation' + if: '>=10.23'