* 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
2.0 KiB
2.0 KiB
Test 15-03 - Appliance and Network Settings
Purpose:
To verify that the guest OS deployed using built ova has user specified appliance and network settings
Environment:
This test requires that a vCenter and a vSphere server are running and available
Test Steps:
- Deploy Unified OVA to vCenter with provided network parameters
- For loop on a GOVC command to query guest network information until returned result is not null or maximum retry reached
- Issue a GOVC command to get the IP addresses for "VM Network"
- Issue a GOVC command to get the subnet netmask for the first IP address in "VM Network"
- Issue a GOVC command to get the dhcp option for guest os
- Issue a GOVC command to get the dns address for guest os
- Issue a GOVC command to get the dns searchdomains for guest os
- Issue a GOVC command to check disk size('disk-1000-1') for guest os
- Issue a GOVC command to resize disk-1000-1 and assure the resizing works
- Remove deployed Unified OVA, Redeploy Unified OVA to vCenter without network parameters(dhcp by default)
- Issue a GOVC command to make sure the first ip address under "VM Network" is an IPv4 address(including three '.' in address)
Expected Outcome:
- Step 2 should exit for loop on a non-null network information
- Step 3 should result in an output where 'ips' contains '${ova_network_ip0}'
- Step 4 should result in an output where 'netmask' should be 24
- Step 5 should result in an output where 'dhcp' should be false
- Step 6 should result in an output where 'dns' should be '${ova_network_dns}'
- Step 7 should result in an output where 'search_domains' should be 'ova_network_searchpath'
- Step 8 should result in an output where 'size' should be '${ova_default_disk_size_inKB}'
- Step 9 should successfully resize 'disk-1000-1' and result in an output where 'size' being '${ova_adjusted_disk_size_inKB}'
Possible Problems:
- Step 2 exit for loop when maximum retry reached, meaning guest network has not been configured yet, which will fail this test