Skip to content
This repository has been archived by the owner on Feb 15, 2022. It is now read-only.

Develop a shell script that will validate components of Azure DevOps Pipeline build.sh #69

Closed
yradsmikham opened this issue Jan 31, 2019 · 3 comments

Comments

@yradsmikham
Copy link
Contributor

yradsmikham commented Jan 31, 2019

  1. Refactor build.sh so that it is broken up into functions. That way, the unit test can source build.sh and reference reusable blocks of code from the script for testing.

  2. Develop unit test shell script that will specify default environment variables and call functions from build.sh to run for testing. This should be able to run locally and report results.

@yradsmikham yradsmikham created this issue from a note in services: sprint 1/29/2019 (In progress) Jan 31, 2019
@yradsmikham yradsmikham self-assigned this Jan 31, 2019
@dtzar
Copy link
Member

dtzar commented Feb 5, 2019

I recommend converting this to an Azure Terraform module in the public registry and investigate using the standard test tooling framework used for those modules.
i.e. The compute module

@yradsmikham
Copy link
Contributor Author

I recommend converting this to an Azure Terraform module in the public registry and investigate using the standard test tooling framework used for those modules.
i.e. The compute module

https://github.com/Azure/terraform-azurerm-compute#test

Will definitely look into this for future iterations. Thanks!

@yradsmikham yradsmikham moved this from In progress to Done in services: sprint 1/29/2019 Feb 6, 2019
@andrebriggs
Copy link
Member

@dtzar I agree that we should be looking to use Terraform and Terratest where applicable. This issue is broadly name "Develop unit testing" but is specifically about one shell script. @yradsmikham can we change the name of this to reflect the specific task associated here? Moreover we should close this issue since it is marked as down.

@andrebriggs andrebriggs added this to In progress in GitOps/Services Scrum Feb 8, 2019
@andrebriggs andrebriggs moved this from In progress to Needs review in GitOps/Services Scrum Feb 8, 2019
@yradsmikham yradsmikham changed the title Develop unit testing Develop a shell script that will validate components of Azure DevOps Pipeline build.sh Feb 8, 2019
GitOps/Services Scrum automation moved this from Needs review to Done Feb 8, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
Development

No branches or pull requests

3 participants