hashicorp / packer-plugin-vsphere

Packer plugin for VMware vSphere Builder
https://www.packer.io/docs/builders/vsphere
Mozilla Public License 2.0
94 stars 91 forks source link

fix: update vsphere-supervisor test to skip output from retry #321

Closed dilyar85 closed 10 months ago

dilyar85 commented 10 months ago

This PR updates the Supervisor test util function checkOutputLines to skip the current actual output if it contains "continue checking" line. This is to avoid failing the test in step_watch_source.go where the VM ingress IP may not be set immediately, causing retry.Config to output "continue checking" and retry.

Testing Done:

$ go test -count=100 -run ^TestWatchSource_Run$ github.com/hashicorp/packer-plugin-vsphere/builder/vsphere/supervisor 
ok      github.com/hashicorp/packer-plugin-vsphere/builder/vsphere/supervisor   100.849s