azuretest: Refactor clean up code to separate functions

In order to run the clean up in a separate binary it is necessary to
refactor the clean up code away from the context manager.
This commit is contained in:
Martin Sehnoutka 2020-09-09 14:30:48 +02:00 committed by Ondřej Budai
parent a3478ffff0
commit e80110a12c
3 changed files with 126 additions and 110 deletions

View file

@ -41,7 +41,7 @@ func newDeploymentParameter(value string) deploymentParameter {
}
// struct for encoding deployment parameters
type deploymentParameters struct {
type DeploymentParameters struct {
NetworkInterfaceName deploymentParameter `json:"networkInterfaceName"`
NetworkSecurityGroupName deploymentParameter `json:"networkSecurityGroupName"`
VirtualNetworkName deploymentParameter `json:"virtualNetworkName"`