* Add Virtual Kubelet provider for VIC Initial virtual kubelet provider for VMware VIC. This provider currently handles creating and starting of a pod VM via the VIC portlayer and persona server. Image store handling via the VIC persona server. This provider currently requires the feature/wolfpack branch of VIC. * Added pod stop and delete. Also added node capacity. Added the ability to stop and delete pod VMs via VIC. Also retrieve node capacity information from the VCH. * Cleanup and readme file Some file clean up and added a Readme.md markdown file for the VIC provider. * Cleaned up errors, added function comments, moved operation code 1. Cleaned up error handling. Set standard for creating errors. 2. Added method prototype comments for all interface functions. 3. Moved PodCreator, PodStarter, PodStopper, and PodDeleter to a new folder. * Add mocking code and unit tests for podcache, podcreator, and podstarter Used the unit test framework used in VIC to handle assertions in the provider's unit test. Mocking code generated using OSS project mockery, which is compatible with the testify assertion framework. * Vendored packages for the VIC provider Requires feature/wolfpack branch of VIC and a few specific commit sha of projects used within VIC. * Implementation of POD Stopper and Deleter unit tests (#4) * Updated files for initial PR
3.1 KiB
3.1 KiB
Test 6-16 - Verify vic-machine configure
Purpose:
Verify vic-machine configure
References:
- vic-machine-linux create -h
Environment:
This test requires that a vSphere server is running and available
Test Steps
- Deploy VCH
- Configure VCH
- Check the debug state of the VCH
- Check the debug state of an existing containerVM
- Configure the VCH by setting the debug state to 0
- Check the debug state of the VCH
- Check the debug state of the existing containerVM
- Create a new container and check the debug state of it
- Configure the debug state of the VCH again and check whether there is only a single snapshot left
- check whether the output of vic-machine inspect contains the desired debug state
- Configure the VCH by adding a container network
- Run docker network ls
- Run vic-machine inspect config
- Run a container with the new container network
- Configure the VCH by adding a new container network without specifying the previous network
- Configure the VCH by adding a new container network while specifying the previous network
- Run docker network ls
- Run vic-machine inspect config
- Run a container with the new container network
- Configure the VCH by attempting to change an existing container network
- Configure VCH http proxy
- Verify http proxy is set correctly through govc
- Configure the VCH's operations user credentials
- Run vic-machine inspect config
- Reset VCH http proxy using VCH ID
- Verify http proxy is reset correctly through govc
- Run vic-machine inspect config
- Configure VCH dns server to 10.118.81.1 and 10.118.81.2
- Run vic-machine inspect config
- Reset VCH dns server to default
- Run vic-machine inspect config
- Configure VCH resources
- Verify VCH configuration through vic-machine inspect
- Configure VCH resources with too small values
- Verify VCH configuration is rollback to old value
- Configure the VCH by adding a new volume store
- Run vic-machine inspect config
- Run docker info
- Create a volume on the default volume store
- Create a volume on the new volume store
- Run docker volume ls
- Configure the volume stores without specifying an existing volume store
- Configure the volume stores by attempting to change an existing volume store
- Configure the VCH by adding a new volume store with a URL scheme
- Run vic-machine inspect config
- Verify configure is in vic-machine dialog
Expected Outcome
- Step 15 should fail with an error message saying that the existing container network must be specified
- Step 20 should fail with an error message saying that changes to existing container networks are not supported
- Step 24's output should contain the operations user's name and the host thumbprint
- Step 36 and 37's output should contain both volume stores
- Step 40's output should contain both volumes
- Step 41 should fail with an error message saying that existing volume stores must be specified
- Step 42 should fail with an error message saying that changes to existing volume stores are not supported
- Step 44's output should contain all three volume stores
- All other steps should succeed