Verify vic-machine inspect functionality
- vic-machine-linux inspect -h
This test requires that a vSphere server is running and available
- Install VCH
- Issue a basic vic-machine inspect command
- Issue vic-machine inspect config command
- Issue vic-machine inspect config --format raw command
- Create a VCH with custom resource settings
- Issue vic-machine inspect config command
- Issue vic-machine inspect config --format raw command
- Create a VCH with some container-network options
- Issue vic-machine inspect config --format raw command
- Create a VCH with tlsverify
- Inspect the VCH without specifying --tls-cert-path
- Inspect the VCH with a valid --tls-cert-path
- Inspect the VCH with an invalid --tls-cert-path
- Create a VCH with --no-tls
- Inspect the VCH without specifying --tls-cert-path
- Create a VCH with --no-tlsverify
- Inspect the VCH without specifying --tls-cert-path
- Create a VCH with some container-network options
- Step 1 should succeed
- Step 2 should succeed and the output should contain the following:
- VCH ID
- VCH upgrade information
- VCH Admin address
- Address of published ports
- The docker info command for the VCH
- Steps 3-9 should succeed
- Output from steps 3 and 4 should contain expected flags & values
- Output from steps 6 and 7 should contain the expected resource flags and values
- Output from step 9 should contain the expected container network flags and values
- Steps 10-18 should complete successfully, however, step 12 should show a warning in the output (see below)
- The output of steps 11 and 12 should contain the correct
DOCKER_CERT_PATH
- The output of step 13 should not contain a
DOCKER_CERT_PATH
and should contain:
Unable to find valid client certs
DOCKER_CERT_PATH must be provided in environment or certificates specified individually via CLI arguments
- The outputs of steps 15 and 17 should not contain a
DOCKER_CERT_PATH
and should not contain:
Unable to find valid client certs
DOCKER_CERT_PATH must be provided in environment or certificates specified individually via CLI arguments