CLOUDSTACK-8336: Adding tests for shared networks with basic operations related to network/router restart and acquire IP #120
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Adding following basic test cases for shared networks.
Added a function in common file to verify the router state.
The verification steps are written in detail in the test cases.
Also made following changes in existing code.
Logs:
Test Shared Network ALL ... === TestName: test_createSharedNetwork_All | Status : SUCCESS ===
ok
Test Shared Network with scope account ... === TestName: test_createSharedNetwork_accountSpecific | Status : SUCCESS ===
ok
Test Shared Network with scope domain ... === TestName: test_createSharedNetwork_domainSpecific | Status : SUCCESS ===
ok
Test Shared Network with scope project ... === TestName: test_createSharedNetwork_projectSpecific | Status : SUCCESS ===
ok
Test Shared Network with used vlan 01 ... SKIP: skipped - This is a redundant case and also this is causing
issue for rest fo the cases
Test Shared Network with used vlan 02 ... === TestName: test_createSharedNetwork_usedVlan2 | Status : SUCCESS ===
ok
Test Vm deployment with multiple shared networks ... === TestName: test_deployVM_multipleSharedNetwork | Status : SUCCESS
ok
ES1621:Allow creating shared networks with overlapping ... === TestName: test_escalation_ES1621 | Status :
SUCCESS ===
ok
Test shared Network with subdomainaccess=False ... === TestName: test_networkWithsubdomainaccessFalse | Status : SUCCESS ===
ok
Test Shared Network with subdomainaccess=True ... === TestName: test_networkWithsubdomainaccessTrue | Status : SUCCESS ===
ok
Test reboot router ... === TestName: test_reboot_router | Status : SUCCESS ===
ok
Test restart shared Network ... === TestName: test_restart_network_1_True | Status : SUCCESS ===
ok
Test restart shared Network ... === TestName: test_restart_network_2_False | Status : SUCCESS ===
ok
Test shared network Offering 01 ... === TestName: test_sharedNetworkOffering_01 | Status : SUCCESS ===
ok
Test Shared Network Offering 02 ... === TestName: test_sharedNetworkOffering_02 | Status : SUCCESS ===
ok
Test Shared Network Offering 03 ... === TestName: test_sharedNetworkOffering_03 | Status : SUCCESS ===
ok
Test stop and start router ... === TestName: test_stop_start_router | Status : SUCCESS ===
ok
Test VM deployment in shared and isolated networks ... === TestName: test_deployVM_isolatedAndShared | Status : SUCCESS ===
ok
Test acquire IP in shared network ... === TestName: test_acquire_ip | Status : SUCCESS ===
ok