Skip to content

Commit

Permalink
LRQA-78996 adjust ant scripts to access Azure store via connection st…
Browse files Browse the repository at this point in the history
…ring
  • Loading branch information
Catarine Aguiar authored and brianchandotcom committed Mar 4, 2023
1 parent 3fd86d6 commit a8c2106
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 14 deletions.
18 changes: 6 additions & 12 deletions build-test-azure.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<local name="container.list" />

<exec executable="az" outputproperty="container.list">
<arg line="storage container list --account-name blobstoragesmoketest --prefix lfr-qa-poshi-test --auth-mode login" />
<arg line="storage container list --account-name blobstoragesmoketest --prefix lfr-qa-poshi-test --connection-string ${azure.connection.string}" />
</exec>

<script language="javascript"><![CDATA[
Expand Down Expand Up @@ -45,7 +45,7 @@
<echo>Expired Container: @{delete.name}</echo>

<exec executable="az">
<arg line="storage container delete --account-name blobstoragesmoketest --name @{delete.name} --auth-mode login" />
<arg line="storage container delete --account-name blobstoragesmoketest --name @{delete.name} --connection-string ${azure.connection.string}" />
</exec>
</sequential>
</for>
Expand All @@ -56,7 +56,7 @@
<local name="container.blobs" />

<exec executable="az" outputproperty="container.blobs">
<arg line="storage blob list --container-name lfr-qa-poshi-test-${azure.container.id} --account-name blobstoragesmoketest --prefix ${companyId}/${groupId} --output table" />
<arg line="storage blob list --container-name lfr-qa-poshi-test-${azure.container.id} --account-name blobstoragesmoketest --prefix ${companyId}/${groupId} --output table --connection-string ${azure.connection.string}" />
</exec>

<echo>${container.blobs}</echo>
Expand All @@ -76,7 +76,7 @@
<local name="container.blobs" />

<exec executable="az" outputproperty="container.blobs">
<arg line="storage blob list --container-name lfr-qa-poshi-test-${azure.container.id} --account-name blobstoragesmoketest --prefix ${companyId}/${groupId} --output table" />
<arg line="storage blob list --container-name lfr-qa-poshi-test-${azure.container.id} --account-name blobstoragesmoketest --prefix ${companyId}/${groupId} --output table --connection-string ${azure.connection.string}" />
</exec>

<echo>${container.blobs}</echo>
Expand All @@ -98,23 +98,17 @@
<local name="container.create.output" />

<exec executable="az" outputproperty="container.create.output">
<arg line="storage container create -n lfr-qa-poshi-test-${azure.container.id} --public-access container --account-name blobstoragesmoketest" />
<arg line="storage container create -n lfr-qa-poshi-test-${azure.container.id} --public-access container --account-name blobstoragesmoketest --connection-string ${azure.connection.string}" />
</exec>

<echo>${container.create.output}</echo>
</target>

<target name="delete-azure-container">
<exec executable="az">
<arg line="storage container delete --account-name blobstoragesmoketest --name lfr-qa-poshi-test-${azure.container.id}" />
<arg line="storage container delete --account-name blobstoragesmoketest --name lfr-qa-poshi-test-${azure.container.id} --connection-string ${azure.connection.string}" />
</exec>

<delete-azure-containers />
</target>

<target name="login-azure-cli">
<exec executable="az">
<arg line="login -u ${azure.account.email.address} -p ${azure.account.password}" />
</exec>
</target>
</project>
2 changes: 0 additions & 2 deletions build-test.xml
Original file line number Diff line number Diff line change
Expand Up @@ -14859,8 +14859,6 @@ mail.send.blacklist=</echo>
<format pattern="yyyyMMddkkmmssSSS" property="azure.container.id" />
</tstamp>

<ant antfile="build-test-azure.xml" target="login-azure-cli" />

<ant antfile="build-test-azure.xml" target="create-azure-container" />

<prepare-azure-store-configuration />
Expand Down

0 comments on commit a8c2106

Please sign in to comment.