Skip to content
This repository has been archived by the owner on Nov 16, 2023. It is now read-only.

Commit

Permalink
clean up, and updated smoke tests for validation
Browse files Browse the repository at this point in the history
  • Loading branch information
yradsmikham committed Apr 14, 2020
1 parent b43a650 commit 8fa3ad2
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 13 deletions.
6 changes: 0 additions & 6 deletions src/lib/fileutils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -228,13 +228,7 @@ export const serviceBuildAndUpdatePipeline = (
`echo "Image Name: $IMAGE_NAME"`,
`ACR_BUILD_BASE_COMMAND=("az acr build -r $(ACR_NAME) --image $IMAGE_NAME .")`,
`if [ -z "\${serviceBuildVariables}" ]; then echo "No build arguments found."; else SERVICE_BUILD_VARIABLES=$(echo \${serviceBuildVariables} | tr "," " " ) ; VARIABLES_ARRAY=(echo \${SERVICE_BUILD_VARIABLES}) ; for i in \${VARIABLES_ARRAY[@]}; do export $i=\${i} ; ACR_BUILD_BASE_COMMAND+=" --build-arg $i=\${i}" ; done ; fi`,
//`SERVICE_BUILD_VARIABLES=$(echo ${serviceBuildVariables} | tr "," " " )`,
//`echo "Service Variables: $SERVICE_BUILD_VARIABLES`,
//`VARIABLES_ARRAY=(echo $SERVICE_BUILD_VARIABLES)`,
//`for i in \${VARIABLES_ARRAY[@]}; do export $i=\${i} ; ACR_BUILD_BASE_COMMAND+=" --build-arg $i=\${i}" ; done`,
`cd ${relativeServiceForDockerfile}`,
//`echo "az acr build -r $(ACR_NAME) --image $IMAGE_NAME ."`,
//`az acr build -r $(ACR_NAME) --image $IMAGE_NAME .`,
`echo "ACR BUILD COMMAND: $ACR_BUILD_BASE_COMMAND"`,
`\${ACR_BUILD_BASE_COMMAND[@]}`,
]),
Expand Down
6 changes: 0 additions & 6 deletions src/test/mockFactory.ts
Original file line number Diff line number Diff line change
Expand Up @@ -101,13 +101,7 @@ export const createTestServiceBuildAndUpdatePipelineYaml = (
`echo "Image Name: $IMAGE_NAME"`,
`ACR_BUILD_BASE_COMMAND=("az acr build -r $(ACR_NAME) --image $IMAGE_NAME .")`,
`if [ -z "\${serviceBuildVariables}" ]; then echo "No build arguments found."; else SERVICE_BUILD_VARIABLES=$(echo \${serviceBuildVariables} | tr "," " " ) ; VARIABLES_ARRAY=(echo \${SERVICE_BUILD_VARIABLES}) ; for i in \${VARIABLES_ARRAY[@]}; do export $i=\${i} ; ACR_BUILD_BASE_COMMAND+=" --build-arg $i=\${i}" ; done ; fi`,
//`SERVICE_BUILD_VARIABLES=$(echo \${serviceBuildVariables} | tr "," " " )`,
//`echo "Service Variables: $SERVICE_BUILD_VARIABLES`,
//`VARIABLES_ARRAY=(echo $SERVICE_BUILD_VARIABLES)`,
//`for i in \${VARIABLES_ARRAY[@]}; do export $i=\${i} ; ACR_BUILD_BASE_COMMAND+=" --build-arg $i=\${i}" ; done`,
`cd ${relativeServiceForDockerfile}`,
//`echo "az acr build -r $(ACR_NAME) --image $IMAGE_NAME ."`,
//`az acr build -r $(ACR_NAME) --image $IMAGE_NAME .`,
`echo "ACR BUILD COMMAND: $ACR_BUILD_BASE_COMMAND"`,
`\${ACR_BUILD_BASE_COMMAND[@]}`,
]),
Expand Down
2 changes: 1 addition & 1 deletion tests/validations.sh
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ cd "$TEST_WORKSPACE/$mono_repo_dir"

# helm_repo_url="$AZDO_ORG_URL/$AZDO_PROJECT/_git/$helm_charts_dir"
local_repo_url="$AZDO_ORG_URL/$AZDO_PROJECT/_git/$mono_repo_dir"
spk service create $FrontEnd $FrontEnd -d $services_dir -p "chart" -g $local_repo_url -b master >> $TEST_WORKSPACE/log.txt
spk service create $FrontEnd $FrontEnd -d $services_dir -p "chart" -g $local_repo_url -b master --service-build-vg ydawgie-vg --service-build-variables dawgie >> $TEST_WORKSPACE/log.txt
# spk service create $FrontEnd $FrontEnd -d $services_dir -p "$FrontEnd/chart" -g $helm_repo_url -b master >> $TEST_WORKSPACE/log.txt
directory_to_check="$services_full_dir/$FrontEnd"
file_we_expect=(".gitignore" "build-update-hld.yaml" "Dockerfile" )
Expand Down

0 comments on commit 8fa3ad2

Please sign in to comment.