You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
terraform/vendor/github.com/vmware/govmomi/govc/test
Paul Hinze 6fe2703665
Vendor all dependencies w/ Godep
10 years ago
..
esxbox Vendor all dependencies w/ Godep 10 years ago
images Vendor all dependencies w/ Godep 10 years ago
vcsim Vendor all dependencies w/ Godep 10 years ago
.gitignore Vendor all dependencies w/ Godep 10 years ago
README.md Vendor all dependencies w/ Godep 10 years ago
boot_order_test.sh Vendor all dependencies w/ Godep 10 years ago
clean.sh Vendor all dependencies w/ Godep 10 years ago
cli.bats Vendor all dependencies w/ Godep 10 years ago
datacenter.bats Vendor all dependencies w/ Godep 10 years ago
datastore.bats Vendor all dependencies w/ Godep 10 years ago
device.bats Vendor all dependencies w/ Godep 10 years ago
esxcli.bats Vendor all dependencies w/ Godep 10 years ago
events.bats Vendor all dependencies w/ Godep 10 years ago
extension.bats Vendor all dependencies w/ Godep 10 years ago
fields.bats Vendor all dependencies w/ Godep 10 years ago
firewall.bats Vendor all dependencies w/ Godep 10 years ago
govc-sim Vendor all dependencies w/ Godep 10 years ago
host.bats Vendor all dependencies w/ Godep 10 years ago
import.bats Vendor all dependencies w/ Godep 10 years ago
license.bats Vendor all dependencies w/ Godep 10 years ago
logs.bats Vendor all dependencies w/ Godep 10 years ago
ls.bats Vendor all dependencies w/ Godep 10 years ago
network.bats Vendor all dependencies w/ Godep 10 years ago
pool.bats Vendor all dependencies w/ Godep 10 years ago
test_helper.bash Vendor all dependencies w/ Godep 10 years ago
vm.bats Vendor all dependencies w/ Godep 10 years ago

README.md

Functional tests for govc

Bats

Install Bats

coreutils

Install gxargs, greadlink and gmktemp on Darwin

brew install coreutils
brew install findutils

Download test images

Some tests depend on ttylinux images, these can be downloaded by running:

./images/update.sh

These images are uploaded to the esxbox as needed by tests and can be removed with the following command:

./clean.sh

GOVC_TEST_URL

The govc tests need an ESX instance to run against. The default GOVC_TEST_URL is that of the vagrant box in the esxbox directory:

(cd esxbox && vagrant up)

Any other ESX box can be used by exporting the following variable:

export GOVC_TEST_URL=user:pass@hostname

vCenter Simulator

Some tests require vCenter and depend on the Vagrant box in the vcsim directory. These tests are skipped if the vcsim box is not running. To enable these tests:

(cd vcsim && vagrant up)

Running tests

The test helper prepends ../govc to PATH.

The tests can be run from any directory, as govc is found related to PATH and images are found relative to $BATS_TEST_DIRNAME.

The entire suite can be run with the following command:

bats .

Or individually, for example:

./cli.bats