Arcbox 3.0 task 930 integration tests #2389
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This pull request introduces additional parameters in the
azure-pipelines.yml
file and theWait-ArcBoxDeployment.ps1
script, modifies the transcript path in theSend-PesterResult.ps1
script, and sets up environment variables in theInvoke-Test.ps1
script.Changes to Azure pipeline and scripts:
azure-pipelines.yml
: Modified theScriptArguments
in thestages
section to include-githubAccount $(githubAccount)
and-githubBranch $(githubBranch)
. This change allows the pipeline to pass these additional parameters to the scripts.azure_jumpstart_arcbox/artifacts/integration_tests/scripts/Wait-ArcBoxDeployment.ps1
: Added mandatory parametersgithubAccount
andgithubBranch
to the script. These parameters are used in theSet-AzVMRunCommand
command to specify the source script URI.Changes to scripts:
azure_jumpstart_arcbox/artifacts/integration_tests/scripts/Send-PesterResult.ps1
: Changed the transcript path from a hardcoded path to a path that uses the environment variable$Env:ArcBoxLogsDir
. This change makes the script more flexible and less error-prone.azure_jumpstart_arcbox/artifacts/tests/Invoke-Test.ps1
: Added environment variablesArcBoxDir
andArcBoxTestsDir
at the beginning of the script. These variables are used to specify the path for invoking Pester tests.