Skip to content

Commit

Permalink
random name for masb instances in subsume tests'
Browse files Browse the repository at this point in the history
  • Loading branch information
Ernie Billing committed Nov 16, 2020
1 parent 36b3f3b commit ea3c2cb
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions acceptance-tests/azure/cf-test-masb-sql-fog-db-subsume.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ shift
DB_NAME=subsume-db-$$

RESULT=1
MASB_SQLDB_INSTANCE_NAME=mssql-db-$$
MASB_SQLDB_INSTANCE_NAME=mssql-db-$(date +%s)
MASB_DB_CONFIG="{ \
\"sqlServerName\": \"${PRIMARY_SERVER_NAME}\", \
\"sqldbName\": \"${DB_NAME}\", \
Expand All @@ -35,7 +35,7 @@ MASB_DB_CONFIG="{ \

RESULT=1
if create_service azure-sqldb StandardS0 "${MASB_SQLDB_INSTANCE_NAME}" "${MASB_DB_CONFIG}"; then
MASB_FOG_INSTANCE_NAME=masb-fog-db-$$
MASB_FOG_INSTANCE_NAME=masb-fog-db-$(date +%s)

MASB_FOG_CONFIG="{ \
\"primaryServerName\": \"${PRIMARY_SERVER_NAME}\", \
Expand Down Expand Up @@ -101,8 +101,8 @@ if create_service azure-sqldb StandardS0 "${MASB_SQLDB_INSTANCE_NAME}" "${MASB_D
fi
else
echo spring music test failed on masb fog
delete_service "${MASB_FOG_INSTANCE_NAME}"
delete_service "${MASB_SQLDB_INSTANCE_NAME}"
delete_service "${MASB_FOG_INSTANCE_NAME}" || cf purge-service-instance -f "${MASB_FOG_INSTANCE_NAME}"
delete_service "${MASB_SQLDB_INSTANCE_NAME}" || cf purge-service-instance -f "${MASB_SQLDB_INSTANCE_NAME}"
fi
else
delete_service "${MASB_SQLDB_INSTANCE_NAME}"
Expand Down

0 comments on commit ea3c2cb

Please sign in to comment.