* 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
1.5 KiB
1.5 KiB
Test 6-17 - Verify vic-machine configure TLS function
Purpose:
Verify vic-machine configure certificates
References:
- vic-machine-linux configure -h
Environment:
This test requires that a vSphere server is running and available. One VCH is created for the suite and used throughout by each test so that we don't have to call create & configure in each test (which would duplicate the work of 6-13-TLS).
Configure VCH w/ own CA
Performs a similar test to the one in create.
- Generates a CA, self-signed
- Runs vic-machine configure against the VCH set up in pre-test
- Makes sure the installed certificate is the correct one
Configure VCH w/ trusted CA
- Generates a CA, adds it to trust pool, just like the test in Create
- Runs vic-machine to replace the previous cert with this one
- Uses openssl tool to verify correct trusted certificate is in place
Configure VCH - Run Configure Without Cert Options & Ensure Certs are Unchanged
- Generates a CA, installs it, verifies it's installed, as in the last test
- Calls configure again with no TLS options
- Check to make sure the installed cert from 1) is still presented
Configure VCH - Replace certificates with self-signed certificate using --no-tlsverify
- Calls configure against the existing VCH with --no-tlsverify and an empty --tls-cert-path
- Checks that a self-signed certificate is generated
- Checks that the installed certificate is the self-signed one that we just generated