Skip to content

Commit

Permalink
govc: Add an unreleased folder.place command for PlaceVMsXCluster
Browse files Browse the repository at this point in the history
This change adds an unreleased govc command to exercise the
cross-cluster placement engine via folder.PlaceVmsXCluster.  This
command is limited to supporting the only a relocate placement type but
will be extended to support createAndPowerOn and reconfigure in the
future.  Bats tests are added to perform basic validation of the new
command.

This change also fixes the PlaceVMSXCluster action types to match the
types returned by the VIM API, specifically:
ClusterReconfigurePlacementAction => ClusterClusterReconfigurePlacementAction
ClusterRelocatePlacementAction => ClusterClusterRelocatePlacementAction

This change also improves the simulator to return the appropriate action
types based off of the placementType and improves the tests to validate
the action type.

Testing Done:
./govc/test/folder.bats
go test -v -count=1 ./simulator -run TestPlaceVmsXClusterCreateAndPowerOn
go test -v -count=1 ./simulator -run TestPlaceVmsXClusterReconfigure
go test -v -count=1 ./simulator -run TestPlaceVmsXClusterRelocate
  • Loading branch information
derekbeard committed Oct 10, 2024
1 parent 892dbcf commit 831b722
Show file tree
Hide file tree
Showing 5 changed files with 580 additions and 51 deletions.
Loading

0 comments on commit 831b722

Please sign in to comment.