* 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.9 KiB
2.9 KiB
Test 1-36 - Docker Rename
Purpose:
To verify that the docker rename command is supported by VIC appliance.
References:
1 - Docker Command Line Reference
Environment:
This test requires that a vSphere server is running and available.
Test Steps:
- Deploy VIC appliance to vSphere server
- Issue docker rename foo bar
- Issue docker pull busybox
- Issue docker create --name cont1-name1 busybox
- Issue docker rename cont1-name1 cont1-name2
- Verify that the container was renamed by checking ps, inspect and govc vm.info
- Issue docker run -dit --name cont2-name1 busybox
- Issue docker rename cont2-name1 cont2-name2
- Verify that the container was renamed by checking ps, inspect and govc vm.info
- Issue docker run -dit --name cont3-name1 busybox
- Issue docker stop cont3-name1
- Issue docker rename cont3-name1 cont3-name2
- Issue docker start cont3-name2
- Verify that the container was renamed by checking ps, inspect and govc vm.info
- Issue docker create --name cont4 busybox
- Issue docker rename cont4 ""
- Issue docker create --name cont5 busybox
- Issue docker create --name cont6 busybox
- Issue docker rename cont5 cont5
- Issue docker rename cont5 cont6
- Issue docker create --name cont7-name1 busybox
- Issue docker rename cont7-name1 cont7-name2
- Issue docker start cont7-name1
- Issue docker run --link cont7-name2:cont7alias busybox ping -c2 cont7alias
- Issue docker run busybox ping -c2 cont7-name2
- Issue docker run -dit --name cont8-name1 busybox
- Issue docker rename cont8-name1 cont8-name2
- Issue docker stop cont8-name2
- Issue docker start cont7-name2
- Issue docker run --link cont8-name2:cont8alias busybox ping -c2 cont8alias
- Issue docker run busybox ping -c2 cont8-name2
- Issue docker run -dit --name cont9-name1 busybox
- Issue docker rename cont9-name1 cont9-name2
- Issue docker run --link cont9-name2:cont9alias busybox ping -c2 cont9alias
- Issue docker run busybox ping -c2 cont9-name2
Expected Outcome:
- Step 2 should result in an error with the following message:
Error: No such container: foo
- Steps 3-15 should return without errors
- Step 16 should result in an error containing the following message:
Neither old nor new names may be empty
- Steps 17 and 18 should return without errors
- Step 19 and 20 should return with errors
- Steps 21-23 should return without errors
- Steps 24 and 25 should succeed and their output should contain:
2 packets transmitted, 2 packets received
- Steps 25-29 should return without errors
- Steps 30 and 31 should succeed and their output should contain:
2 packets transmitted, 2 packets received
- Steps 32 and 33 should return without errors
- Steps 34 and 35 should succeed and their output should contain:
2 packets transmitted, 2 packets received
Possible Problems:
None