CLOUDSTACK-7355 - test_netscaler_configs.py uses hardcoded NetScaler credentials

Refactored code to use test_data instead of hardcoded NetScaler credentials
Refactored code to remove large scale duplication
Fixed some minor logic error in the existing tests

This patch has not added or removed any of the original test-cases.

Signed-off-by: SrikanteswaraRao Talluri <talluri@apache.org>
This commit is contained in:
Doug Clark 2014-09-04 13:28:11 +00:00 committed by SrikanteswaraRao Talluri
parent f92fa4257a
commit 3609f60447
2 changed files with 399 additions and 1046 deletions

File diff suppressed because it is too large Load Diff

View File

@ -304,9 +304,13 @@ test_data = {
"lbdevicecapacity": 2,
"port": 22
},
"network_without_acl": {
"name": "TestNetwork",
"displaytext": "TestNetwork",
"netscaler_network": {
"name": "Netscaler",
"displaytext": "Netscaler",
},
"network_without_acl": {
"name": "TestNetwork",
"displaytext": "TestNetwork",
},
"virtual_machine": {
"displayname": "Test VM",