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

Commit d1d5f80

Browse files
andrebriggsmtarng
authored andcommitted
Incremental smoke test changes (#146)
* Set up CI with Azure Pipelines [skip ci] * Update azure-pipelines.yml for Azure Pipelines * Update package.json * Update azure-pipelines.yml for Azure Pipelines * Update package.json * Update azure-pipelines.yml for Azure Pipelines * Update azure-pipelines.yml for Azure Pipelines * Update package.json * Update azure-pipelines.yml for Azure Pipelines * Update azure-pipelines.yml for Azure Pipelines * Update azure-pipelines.yml for Azure Pipelines * Update azure-pipelines.yml for Azure Pipelines * Update azure-pipelines.yml for Azure Pipelines * Update azure-pipelines.yml for Azure Pipelines * Update azure-pipelines.yml for Azure Pipelines * Update azure-pipelines.yml for Azure Pipelines * Update azure-pipelines.yml for Azure Pipelines * Adding new line. Officially added nyc via yarn * Publish artifact * Updates * New pipeline * Update integration-test-pipeline.yml for Azure Pipelines * Update integration-test-pipeline.yml for Azure Pipelines * Update integration-test-pipeline.yml for Azure Pipelines * Update integration-test-pipeline.yml for Azure Pipelines * Update integration-test-pipeline.yml for Azure Pipelines * Update integration-test-pipeline.yml for Azure Pipelines * Update integration-test-pipeline.yml for Azure Pipelines * Update integration-test-pipeline.yml for Azure Pipelines * Update integration-test-pipeline.yml for Azure Pipelines * Update integration-test-pipeline.yml for Azure Pipelines * Update integration-test-pipeline.yml for Azure Pipelines * Update integration-test-pipeline.yml for Azure Pipelines * Update integration-test-pipeline.yml for Azure Pipelines * Update integration-test-pipeline.yml for Azure Pipelines * Update integration-test-pipeline.yml for Azure Pipelines * Update integration-test-pipeline.yml for Azure Pipelines * Update integration-test-pipeline.yml for Azure Pipelines * Update integration-test-pipeline.yml for Azure Pipelines * Update integration-test-pipeline.yml for Azure Pipelines * Update integration-test-pipeline.yml for Azure Pipelines * Update integration-test-pipeline.yml for Azure Pipelines * Update integration-test-pipeline.yml for Azure Pipelines * Update integration-test-pipeline.yml for Azure Pipelines * Update integration-test-pipeline.yml for Azure Pipelines * Update integration-test-pipeline.yml for Azure Pipelines * Update integration-test-pipeline.yml for Azure Pipelines * Update integration-test-pipeline.yml for Azure Pipelines * Update integration-test-pipeline.yml for Azure Pipelines * Update integration-test-pipeline.yml for Azure Pipelines * Update integration-test-pipeline.yml for Azure Pipelines * Update integration-test-pipeline.yml for Azure Pipelines * Update integration-test-pipeline.yml for Azure Pipelines * Adding "always" * Update integration-test-pipeline.yml for Azure Pipelines * Update integration-test-pipeline.yml for Azure Pipelines * Update integration-test-pipeline.yml for Azure Pipelines * Update integration-test-pipeline.yml for Azure Pipelines * Update integration-test-pipeline.yml for Azure Pipelines * Update integration-test-pipeline.yml for Azure Pipelines * Update integration-test-pipeline.yml for Azure Pipelines * Update integration-test-pipeline.yml for Azure Pipelines * Update integration-test-pipeline.yml for Azure Pipelines * Update integration-test-pipeline.yml for Azure Pipelines * Update integration-test-pipeline.yml for Azure Pipelines * Update integration-test-pipeline.yml for Azure Pipelines * Update integration-test-pipeline.yml for Azure Pipelines * Update integration-test-pipeline.yml for Azure Pipelines * Update integration-test-pipeline.yml for Azure Pipelines * Update integration-test-pipeline.yml for Azure Pipelines * Update integration-test-pipeline.yml for Azure Pipelines * Update integration-test-pipeline.yml for Azure Pipelines * Update integration-test-pipeline.yml for Azure Pipelines * Update integration-test-pipeline.yml for Azure Pipelines * Update integration-test-pipeline.yml for Azure Pipelines * Update integration-test-pipeline.yml for Azure Pipelines * Update integration-test-pipeline.yml for Azure Pipelines * Adding test files * Updates * Update integration-test-pipeline.yml for Azure Pipelines * Update integration-test-pipeline.yml for Azure Pipelines * Fixed error checking * Removing cruft * Fixing typo * Type * Removed old pipeline. Updated smoke test script * Fixed file download names * more filename changes * Updated docs * Better error handling * Pushing script location to env var * Fixes * Force overwrite file * More logging * More fixes * Improved docs * Updated docs * Fixed var name * Adding test tracking. * Removed node 8 build * inital commit * inital commit * inital commit * inital commit * inital commit * inital commit * inital commit * inital commit * Added variable group creation * Delete SetLocalEnvVar.sh * Delete azure-pipelines.yaml * Refactoring * Updates * Fixes * Typos * Typo fixes * Validate items in HLD repo * Change * Updated documentation * Small changes * Variable expansion
1 parent ba51da3 commit d1d5f80

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

smoke-test-pipeline.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ stages:
6161
#Set ENV VARs
6262
export SPK_LOCATION="$(pwd)/spk-linux"
6363
export ACCESS_TOKEN_SECRET=$(AZDO_PAT)
64+
export SP_PASS=$(SP_PASS)
6465
6566
# Include dependent scripts
6667
. ./functions.sh

tests/functions.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ function variable_group_exists () {
134134
vg_exists=$(echo $vg_result | jq -r --arg vg_name "$vg_name" '.[].name | select(. == $vg_name ) != null')
135135

136136
if [ "$vg_exists" = "true" ]; then
137-
echo "The variable group '$vg_name' already exists "
137+
echo "The variable group '$vg_name' exists "
138138
if [ "$action" == "delete" ]; then
139139
# Get the variable group id
140140
vg_id=$(echo "$vg_result" | jq -r --arg vg_name "$vg_name" '.[] | select(.name == $vg_name) | .id')

tests/validations.sh

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@ TEST_WORKSPACE="$(pwd)/spk-env"
1212
[ ! -z "$AZDO_PROJECT" ] || { echo "Provide AZDO_PROJECT"; exit 1;}
1313
[ ! -z "$AZDO_ORG" ] || { echo "Provide AZDO_ORG"; exit 1;}
1414
[ ! -z "$ACR_NAME" ] || { echo "Provide ACR_NAME"; exit 1;}
15+
[ ! -z "$SP_APP_ID" ] || { echo "Provide SP_APP_ID"; exit 1;}
16+
[ ! -z "$SP_PASS" ] || { echo "Provide SP_PASS"; exit 1;}
17+
[ ! -z "$SP_TENANT" ] || { echo "Provide SP_TENANT"; exit 1;}
1518
AZDO_ORG_URL="${AZDO_ORG_URL:-"https://dev.azure.com/$AZDO_ORG"}"
1619

1720

@@ -142,7 +145,7 @@ validate_directory "$TEST_WORKSPACE/$mono_repo_dir" "${file_we_expect[@]}"
142145
variable_group_exists $AZDO_ORG_URL $AZDO_PROJECT $vg_name "delete"
143146

144147
# Create variable group
145-
spk project create-variable-group $vg_name -r $ACR_NAME -d $hld_repo_url -u $SP_APP_ID -p $SP_PASS -t $SP_TENANT --org-name $AZDO_ORG --project $AZDO_PROJECT --personal-access-token $ACCESS_TOKEN_SECRET #>> $TEST_WORKSPACE/log.txt
148+
spk project create-variable-group $vg_name -r $ACR_NAME -d $hld_repo_url -u $SP_APP_ID -t $SP_TENANT -p $SP_PASS --org-name $AZDO_ORG --project $AZDO_PROJECT --personal-access-token $ACCESS_TOKEN_SECRET #>> $TEST_WORKSPACE/log.txt
146149

147150
# Verify the variable group was created. Fail if not
148151
variable_group_exists $AZDO_ORG_URL $AZDO_PROJECT $vg_name "fail"

0 commit comments

Comments
 (0)