* 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.0 KiB
3.0 KiB
Test 9-01 - VIC Admin ShowHTML
Purpose:
To verify that the VIC Administration appliance can display HTML
Environment:
This test requires that a vSphere environment be running and available
Test Steps:
- Deploy VIC appliance to the vSphere server
- Pull the VICadmin web page and verify that it contains valid HTML
- Pull the Portlayer log file and verify that it contains valid data
- Pull the VCH-Init log and verify that it contains valid data
- Pull the Docker Personality log and verify that it contains valid data
- Create a container via the appliance
- Pull the container log bundle from the appliance and verify that it contains the new container's logs
Expected Outcomes:
- VICadmin should display a web page that at a minimum includes
- VICadmin responds with a log file indicating that the portlayer sever has started
- VICadmin responds with a log file indicating VCH init has begun reaping processes
- VICadmin responds with log file indicating docker personality service has started
- VICadmin responds with a ZIP file containing at a minimum the vmware.log file from the new container
Unauthenticated Test Cases
Get Login Page
- Access the authentication web page
While Logged Out Fail To Display HTML
- Required authentication on restricted pages
- Page requests authentication
While Logged Out Fail To Get Portlayer Log
- Portlayer logs are restricted to authenticated users
- Page requests authentication
While Logged Out Fail To Get VCH-Init Log
- VCH_Init logs are restricted to authenticated users
- Page requests authentication
While Logged Out Fail To Get Docker Personality Log
- Personality logs are restricted to authenticated users
- Page requests authentication
While Logged Out Fail To Get Container Logs
- Container logs are restricted to authenticated users
- Page requests authentication
While Logged Out Fail To Get VICAdmin Log
- VICAdmin logs are restricted to authenticated users
- Page requests authentication
Authenticated Test Cases
Display HTML
- Log in
- Page displays vic-machine name in title
Get Portlayer Log
- Log in
- Portlayer Log access is allowed and logs are downloaded
Get VCH-Init Log
- Log in
- VCH-Init Log access is allowed and logs are downloaded
Get Docker Personality Log
- Log in
- Docker Personality Log access is allowed and logs are downloaded
Get Container Logs
- Log in
- Container Log access is allowed and logs are downloaded
Get VICAdmin Log
- Log in
- VICAdmin Log access is allowed and logs are downloaded
Check that VIC logs do not contain sensitive data
- Log in
- Fetch all logs in /logs/ path
- None of the downloaded logs contain the vch or vSphere password
Wan Routes Through Proxy
- Start a vch with a proxy defined at a localhost port. The proxy isn't actually running, so all requests will fail. IF the wan requests fail we know they were routed through the proxy.
- Log in to VICAdmin
- Verify wan health check is not successful.