Skip to content

Commit

Permalink
Fix unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
christinalau0 committed Nov 19, 2024
1 parent 25073df commit 374c735
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion pkg/engine/deployment_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ func TestCreateAzurestackTelemetry(t *testing.T) {
pid := "pid-1bda96ec-adf4-4eea-bb9a-8462de5475c0"
actual := createAzureStackTelemetry(pid)
expected := DeploymentARM{
DeploymentARMResource: DeploymentARMResource{
ARMResource: ARMResource{
APIVersion: "2015-01-01",
},
DeploymentExtended: resources.DeploymentExtended{
Expand Down
8 changes: 4 additions & 4 deletions pkg/engine/vmextensions_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,7 @@ func TestCreateCustomExtensions(t *testing.T) {

expectedDeployments := []DeploymentARM{
{
DeploymentARMResource: DeploymentARMResource{
ARMResource: ARMResource{
APIVersion: "[variables('apiVersionDeployments')]",
Copy: map[string]string{
"count": "[sub(variables('windowspool1Count'), variables('windowspool1Offset'))]",
Expand Down Expand Up @@ -290,7 +290,7 @@ func TestCreateCustomExtensions(t *testing.T) {
},
},
{
DeploymentARMResource: DeploymentARMResource{
ARMResource: ARMResource{
APIVersion: "[variables('apiVersionDeployments')]",
Copy: map[string]string{
"count": "[sub(variables('windowspool2Count'), variables('windowspool2Offset'))]",
Expand Down Expand Up @@ -319,7 +319,7 @@ func TestCreateCustomExtensions(t *testing.T) {
},
},
{
DeploymentARMResource: DeploymentARMResource{
ARMResource: ARMResource{
APIVersion: "[variables('apiVersionDeployments')]",
Copy: map[string]string{
"count": "[sub(variables('windowspool2Count'), variables('windowspool2Offset'))]",
Expand Down Expand Up @@ -382,7 +382,7 @@ func TestCreateCustomExtensions(t *testing.T) {

expectedDeployments = []DeploymentARM{
{
DeploymentARMResource: DeploymentARMResource{
ARMResource: ARMResource{
APIVersion: "[variables('apiVersionDeployments')]",
Copy: map[string]string{
"count": "[sub(variables('masterCount'), variables('masterOffset'))]",
Expand Down

0 comments on commit 374c735

Please sign in to comment.