Skip to content

Commit

Permalink
Populate validator clusterpath for VCH search
Browse files Browse the repository at this point in the history
  • Loading branch information
jzt committed Apr 25, 2018
1 parent ed2798a commit 682622e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 11 deletions.
3 changes: 3 additions & 0 deletions lib/install/validate/validator.go
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,9 @@ func NewValidator(ctx context.Context, input *data.Data) (*Validator, error) {
Insecure: input.Force,
}

// if a compute resource path was specified, set it
v.ClusterPath = input.ComputeResourcePath

// if a datacenter was specified, set it
v.DatacenterPath = tURL.Path
if v.DatacenterPath != "" {
Expand Down
11 changes: 0 additions & 11 deletions tests/test-cases/Group6-VIC-Machine/6-10-List.robot
Original file line number Diff line number Diff line change
Expand Up @@ -83,14 +83,3 @@ List with valid datacenter
${ret}= Run bin/vic-machine-linux ls --target %{TEST_URL}/%{TEST_DATACENTER} --thumbprint=%{TEST_THUMBPRINT} --user %{TEST_USERNAME} --password=%{TEST_PASSWORD}
Set Environment Variable TEST_DATACENTER ${orig}
Verify Listed Machines ${ret}

List with empty cluster
Pass Execution If '%{HOST_TYPE}' == 'ESXi' This test is not applicable to ESXi
# if there are multiple datacenters this call will fail
${rc} ${output}= Run And Return Rc And Output govc cluster.create EmptyCluster
Should Be Equal As Integers ${rc} 0
${ret}= Run bin/vic-machine-linux ls --target %{TEST_URL} --thumbprint=%{TEST_THUMBPRINT} --user %{TEST_USERNAME} --password=%{TEST_PASSWORD} --compute-resource EmptyCluster
Verify No Machines ${ret}
${rc} ${output}= Run And Return Rc And Output govc object.destroy EmptyCluster
Should Be Equal As Integers ${rc} 0

0 comments on commit 682622e

Please sign in to comment.