Skip to content
This repository was archived by the owner on Apr 13, 2020. It is now read-only.

Commit ce939e7

Browse files
Update validations.sh (#207)
Commenting out introspection validations that require more set up Co-authored-by: Nate <[email protected]>
1 parent ea760e5 commit ce939e7

File tree

1 file changed

+15
-15
lines changed

1 file changed

+15
-15
lines changed

tests/validations.sh

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ TEST_WORKSPACE="$(pwd)/spk-env"
1515
[ ! -z "$SP_APP_ID" ] || { echo "Provide SP_APP_ID"; exit 1;}
1616
[ ! -z "$SP_PASS" ] || { echo "Provide SP_PASS"; exit 1;}
1717
[ ! -z "$SP_TENANT" ] || { echo "Provide SP_TENANT"; exit 1;}
18-
[ ! -z "$AZ_RESOURCE_GROUP" ] || { echo "Provide AZ_RESOURCE_GROUP"; exit 1;}
19-
[ ! -z "$AZ_STORAGE_ACCOUNT" ] || { echo "Provide AZ_STORAGE_ACCOUNT"; exit 1;}
18+
# [ ! -z "$AZ_RESOURCE_GROUP" ] || { echo "Provide AZ_RESOURCE_GROUP"; exit 1;}
19+
# [ ! -z "$AZ_STORAGE_ACCOUNT" ] || { echo "Provide AZ_STORAGE_ACCOUNT"; exit 1;}
2020
AZDO_ORG_URL="${AZDO_ORG_URL:-"https://dev.azure.com/$AZDO_ORG"}"
2121

2222
echo "TEST_WORKSPACE: $TEST_WORKSPACE"
@@ -54,15 +54,15 @@ fi
5454
cd $TEST_WORKSPACE
5555

5656
# Introspection Storage Account Setup
57-
sat_name=fabrikamdeployments
58-
sa_partition_key="integration-test"
57+
# sat_name=fabrikamdeployments
58+
# sa_partition_key="integration-test"
5959

60-
storage_account_exists $AZ_STORAGE_ACCOUNT $AZ_RESOURCE_GROUP "fail"
61-
storage_account_cors_enabled $AZ_STORAGE_ACCOUNT "enable"
62-
storage_account_cors_enabled $AZ_STORAGE_ACCOUNT "wait"
63-
storage_account_table_exists $sat_name $AZ_STORAGE_ACCOUNT "create"
64-
storage_account_table_exists $sat_name $AZ_STORAGE_ACCOUNT "fail"
65-
sa_access_key=$(az storage account keys list -n $AZ_STORAGE_ACCOUNT -g $AZ_RESOURCE_GROUP | jq '.[0].value')
60+
# storage_account_exists $AZ_STORAGE_ACCOUNT $AZ_RESOURCE_GROUP "fail"
61+
# storage_account_cors_enabled $AZ_STORAGE_ACCOUNT "enable"
62+
# storage_account_cors_enabled $AZ_STORAGE_ACCOUNT "wait"
63+
# storage_account_table_exists $sat_name $AZ_STORAGE_ACCOUNT "create"
64+
# storage_account_table_exists $sat_name $AZ_STORAGE_ACCOUNT "fail"
65+
# sa_access_key=$(az storage account keys list -n $AZ_STORAGE_ACCOUNT -g $AZ_RESOURCE_GROUP | jq '.[0].value')
6666

6767
# Manifest Repo Setup ------------------
6868
mkdir $manifests_dir
@@ -168,11 +168,11 @@ spk project create-variable-group $vg_name -r $ACR_NAME -d $hld_repo_url -u $SP_
168168
variable_group_exists $AZDO_ORG_URL $AZDO_PROJECT $vg_name "fail"
169169

170170
# Add introspection variables to variable group
171-
variable_group_id=$(az pipelines variable-group list --org $AZDO_ORG_URL -p $AZDO_PROJECT | jq '.[] | select(.name=="fabrikam-vg") | .id')
172-
variable_group_variable_create $variable_group_id $AZDO_ORG_URL $AZDO_PROJECT "ACCOUNT_KEY" $sa_access_key "secret"
173-
variable_group_variable_create $variable_group_id $AZDO_ORG_URL $AZDO_PROJECT "ACCOUNT_NAME" $AZ_STORAGE_ACCOUNT
174-
variable_group_variable_create $variable_group_id $AZDO_ORG_URL $AZDO_PROJECT "PARTITION_KEY" $sa_partition_key
175-
variable_group_variable_create $variable_group_id $AZDO_ORG_URL $AZDO_PROJECT "TABLE_NAME" $sat_name
171+
# variable_group_id=$(az pipelines variable-group list --org $AZDO_ORG_URL -p $AZDO_PROJECT | jq '.[] | select(.name=="fabrikam-vg") | .id')
172+
# variable_group_variable_create $variable_group_id $AZDO_ORG_URL $AZDO_PROJECT "ACCOUNT_KEY" $sa_access_key "secret"
173+
# variable_group_variable_create $variable_group_id $AZDO_ORG_URL $AZDO_PROJECT "ACCOUNT_NAME" $AZ_STORAGE_ACCOUNT
174+
# variable_group_variable_create $variable_group_id $AZDO_ORG_URL $AZDO_PROJECT "PARTITION_KEY" $sa_partition_key
175+
# variable_group_variable_create $variable_group_id $AZDO_ORG_URL $AZDO_PROJECT "TABLE_NAME" $sat_name
176176

177177
spk service create $FrontEnd -d $services_dir >> $TEST_WORKSPACE/log.txt
178178
directory_to_check="$services_full_dir/$FrontEnd"

0 commit comments

Comments
 (0)