test/api: add checkEnvVSphere() to common/vsphere.sh

Add a common function to check for all environment variables needed to
test VSphere image. Call the function from all S3 implementations of
`checkEnv()` if testing the VSphere image type.
This commit is contained in:
Tomáš Hozza 2022-09-14 22:14:34 +02:00 committed by Tomáš Hozza
parent 9e9aec5b53
commit 7e2d112783
3 changed files with 9 additions and 3 deletions

View file

@ -24,3 +24,7 @@ function installClientVSphere() {
$GOVC_CMD version
}
function checkEnvVSphere() {
printenv GOVMOMI_USERNAME GOVMOMI_PASSWORD GOVMOMI_URL GOVMOMI_CLUSTER GOVC_DATACENTER GOVMOMI_DATASTORE GOVMOMI_FOLDER GOVMOMI_NETWORK > /dev/null
}