func TestBindingPowerCLICore(t *testing.T) {
	// t.Parallel()
	defer logstream.Start(t)()

	clients := test.Setup(t)

	selector, cancel := CreateJobBinding(t, clients)
	defer cancel()

	script := strings.Join([]string{
		// Log into the VI Server
		"Set-PowerCLIConfiguration -InvalidCertificateAction Ignore -Confirm:$false | Out-Null",
		"Connect-VIServer -Server ([System.Uri]$env:VC_URL).Host -User $env:VC_USERNAME -Password $env:VC_PASSWORD",

		// Get Events and write them out.
		"Get-VIEvent | Write-Host",
	}, "\n")

	// Run a simple script as a Job on the cluster.
	RunPowershellJob(t, clients, "docker.io/vmware/powerclicore", script, selector)
}
// TestBindingPowerCLICore creates a Binding and a Job that should be bound with credentials
// and run to completion successfully.
TestBindingPowerCLICore creates a Binding and a Job that should be bound with credentials
and run to completion successfully.
// TestBindingPowerCLICore creates a Binding and a Job that should be bound with credentials // and run to completion successfully .
func TestBindingPowerCLICore(t *testing.T) {
	defer logstream.Start(t)()
	clients := test.Setup(t)
	selector, cancel := CreateJobBinding(t, clients)
	defer cancel()
	script := strings.Join([]string{
		"Set-PowerCLIConfiguration -InvalidCertificateAction Ignore -Confirm:$false | Out-Null",
		"Connect-VIServer -Server ([System.Uri]$env:VC_URL).Host -User $env:VC_USERNAME -Password $env:VC_PASSWORD",
		"Get-VIEvent | Write-Host",
	}, "\n")
	RunPowershellJob(t, clients, "docker.io/vmware/powerclicore", script, selector)
}
func TestBindingPowerCLICore ( t * testing . T ) { defer logstream . Start ( t ) ( ) clients := test . Setup ( t ) selector , cancel := CreateJobBinding ( t , clients ) defer cancel ( ) script := strings . Join ( [ ] string { " " , " " , " " , } , " \n " ) RunPowershellJob ( t , clients , " " , script , selector ) }
TestBindingPowerCLICore creates a Binding and a Job that should be bound with credentials
and run to completion successfully.
TestBindingPowerCLICore creates a Binding and a Job that should be bound with credentials and run to completion successfully .
// t.Parallel() // Log into the VI Server // Get Events and write them out. // Run a simple script as a Job on the cluster.