Skip to content

Commit

Permalink
Add vShere test runner ovf options to logging in e2e (#8020)
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisdoherty4 authored Apr 22, 2024
1 parent 02b51c1 commit 443a57f
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion internal/test/e2e/testRunner.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package e2e

import (
"context"
"encoding/json"
"fmt"
"os"
"strconv"
Expand Down Expand Up @@ -133,7 +134,6 @@ func (v *VSphereTestRunner) setEnvironment() (map[string]string, error) {

func (v *VSphereTestRunner) createInstance(c instanceRunConf) (string, error) {
name := getTestRunnerName(v.logger, c.JobID)
v.logger.V(1).Info("Creating vSphere Test Runner instance", "name", name)

ssmActivationInfo, err := ssm.CreateActivation(c.Session, name, c.InstanceProfileName)
if err != nil {
Expand All @@ -155,6 +155,11 @@ func (v *VSphereTestRunner) createInstance(c instanceRunConf) (string, error) {
{Key: ssmActivationRegionKey, Value: *c.Session.Config.Region},
},
}
optsJSON, err := json.Marshal(opts)
if err != nil {
return "", err
}
v.logger.V(1).Info("Creating vSphere Test Runner instance", "name", name, "ovf_deployment_opts", optsJSON)

// deploy template
if err := vsphere.DeployTemplate(v.envMap, v.Library, v.Template, name, v.Folder, v.Datacenter, v.Datastore, v.ResourcePool, opts); err != nil {
Expand Down

0 comments on commit 443a57f

Please sign in to comment.