Skip to content

Commit 54f6f0b

Browse files
committed
apply workaround with 2>/dev/null for broken SAS token generation in azure-cli, look detail in Azure/azure-cli#31591
Signed-off-by: Slach <[email protected]>
1 parent c9ff869 commit 54f6f0b

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

test/integration/integration_test.go

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -755,9 +755,11 @@ func TestAzure(t *testing.T) {
755755
"-f", path.Join(os.Getenv("CUR_DIR"), os.Getenv("COMPOSE_FILE")),
756756
"--profile", "azure-cli", "--progress", "none",
757757
"run", "--rm", "azure-cli",
758-
"az", "storage", "account", "generate-sas",
759-
"--account-name=devcontainer1", "--resource-types=sco", "--services=b", "--permissions=cdlruwap",
760-
"--expiry", time.Now().Add(30 * time.Hour).Format("2006-01-02T15:04:05Z"), "--output=tsv",
758+
"sh", "-c",
759+
"az storage account generate-sas --account-name=devcontainer1 " +
760+
"--resource-types=sco --services=b --permissions=cdlruwap --output=tsv " +
761+
"--expiry " + time.Now().Add(30*time.Hour).Format("2006-01-02T15:04:05Z") +
762+
" 2>/dev/null",
761763
}
762764
sasToken, err := utils.ExecCmdOut(t.Context(), dockerExecTimeout, "docker", sasCmd...)
763765
sasToken = strings.Trim(sasToken, " \t\r\n")

0 commit comments

Comments
 (0)