-
Notifications
You must be signed in to change notification settings - Fork 32
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[e2e] add initial integration test cases for network #681
Conversation
9b32b95
to
2bb27e4
Compare
|
Add test case of:
|
24bd607
to
53ec201
Compare
Verified can pass all test suite on |
52c99e1
to
fd15b2c
Compare
da65f0d
to
d616a0f
Compare
a33498d
to
527e565
Compare
4bd31dc
to
9858936
Compare
e7c1b22
to
5ff7df1
Compare
@lanfon72 @khushboo-rancher I think David already addressed most comments and requests. Should we merge this PR to increase our test coverage first? We don't need the PR to be perfect. If we see issues in daily tests, @TachunLin will continue improving it. |
Fix conflict then we can continue |
1. Remove the vm.vm_instance function in apiclient/managers.py and use vms.vm_instance(unique_name) in every occurrence 2. Remove 'harvester_e2e_tests.fixtures.network' and 'harvester_e2e_tests.fixtures.vm' 3. Check the hard coded on functio parameter 4. Use the configure option to retrieve the password for all test cases 5. Use the image_info fixtures in fixtures/images.py to parse the image_url for create image from url 6. Remove all the wait_timeout = request.config.getoption('--wait-timeout') in every test case and set wait_timeout fixture instead. 7. Remove all related test case dependency on `mgmt_network_connection` 8. Update test skeleton test steps of test_vlan_network_connection 9. Replace the dependency of `mgmt_network_connection` to `vlan_network_connection` 10. Update the test case test_reboot_vlan_connection with the corresponding manual test case reference: 11. Update all occurrence of assertion message to `exceed the given timed out`
implement deletion of vlan network interface from spec.network
2. Remove the fixutre vlan_subnet_prefix_store to store the vlan subnet 3. Remove the logic to check external vlan IP exists in subnet 4. Add checkpoint to validate unable to ssh to management network VM from external host on test case `test_mgmt_network_connection` and `test_vlan_to_mgmt` 5. Add test steps into the related test skeleton section
1. Move the add external vlan network steps prior to create VM to better align with the manual test steps 2. Updated all the ping, sshed command assert message to indicate on which type of NIC and drom where to run the command.
Jenkins job execution failure
1. Use image_opensuse fixture in all test plan 2. Remove image_info fixture
On test case test_mgmt_network_connection, test_vlan_network_connection and test_reboot_vlan_connection 1. Check the number of interfaces 2. Use interfaces_data[0]['ipAddress'] to retrieve the only ip address
1. Add network name and determine whether the interface name is also nic-1 after we started the VM to expose IP address. 2. Use image_opensuse.name to replace all image_name
… reboot_vlan_connection
from the external vlan network for test case `test_mgmt_to_vlan_connection` 2. Update the test skeleton steps in test case `test_vlan_network_connection` to align with manual test plan 3. Check only one NIC exists in the test case ` test_mgmt_to_vlan_connection`
…unning` in the `test_delete_vlan_from_multiple` and `test_vlan_to_mgmt_connection` test cases 2. Removed the unnecessary line of code of `check_vm_running` and `check_vm_ip_exists` in the `test_mgmt_to_vlan_connection` test case 3. Change the judgement of specific ip address `10.52.x` to the name of the interface `default` 4. Update the subprocess command assertion in the relative test cases: `test_mgmt_network_connection`, `test_vlan_to_mgmt_connection` ,`test_delete_vlan_from_multiple`
2. Set spec.network_data in test case `test_delete_vlan_from_multiple` 3. Remove using the function `check_vm_ip_exists` to determine two NICs case in `test_delete_vlan_from_multiple` 4. Add mechanism to check both the two IP address cases after startup
vlan ip prior to the actual mgmt ip
5ff7df1
to
c808c35
Compare
digit. To prevent the unexpected case when the interface can't retrieve ip address from external vlan which cause test case `test_vlan_to_mgmt_connection` failed.
c808c35
to
cbf4425
Compare
Add initial network backend test including:
1. Test management network connectivity of VM
2. Test vlan network connectivity of VM
3. Test VLAN network after reboot
4. Edit vm network, from VLAN to management
5. Change management network to external VLAN
6. Delete single network from multiple networks vm
Prerequisite of environment
Configuration setup
Edit config.yaml and provide the following attribute (take bare machine for example)
vlan-id
to create vlan networkvlan-nic
to create cluster network and configvlan-cidr
to determine which IP subent range for vlan network test casesAdditional context
To test it on our local ipxe-example cluster, we can the following config