File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -79,8 +79,6 @@ def __init__(self):
7979 "timeout" : 10 ,
8080 "ostype" : "CentOS 5.3 (64-bit)" ,
8181 # CentOS 5.3 (64 bit)
82- "mode" : 'advanced'
83- # Networking mode: Basic or Advanced
8482 }
8583
8684
@@ -93,6 +91,7 @@ def setUp(self):
9391 # Get Zone, Domain and templates
9492 self .domain = get_domain (self .apiclient , self .services )
9593 self .zone = get_zone (self .apiclient , self .services )
94+ self .services ['mode' ] = zone .networktype
9695 self .services ["domainid" ] = self .domain .id
9796 self .services ["iso_2" ]["zoneid" ] = self .zone .id
9897
Original file line number Diff line number Diff line change @@ -38,8 +38,6 @@ def __init__(self):
3838 self .services = {
3939 "ostype" : "CentOS 5.3 (64-bit)" ,
4040 # Cent OS 5.3 (64 bit)
41- "mode" : 'advanced' ,
42- # Networking mode: Basic or advanced
4341 "lb_switch_wait" : 10 ,
4442 # Time interval after which LB switches the requests
4543 "sleep" : 60 ,
@@ -120,7 +118,7 @@ def setUpClass(cls):
120118 # Get Zone, Domain and templates
121119 cls .domain = get_domain (cls .api_client , cls .services )
122120 cls .zone = get_zone (cls .api_client , cls .services )
123-
121+ cls . services [ 'mode' ] = zone . networktype
124122 # Create Accounts & networks
125123 cls .account = Account .create (
126124 cls .api_client ,
Original file line number Diff line number Diff line change @@ -64,7 +64,6 @@ def __init__(self):
6464 "ostype" : "CentOS 5.3 (64-bit)" ,
6565 "sleep" : 60 ,
6666 "timeout" : 10 ,
67- "mode" : 'advanced' , #Networking mode: Basic, Advanced
6867 }
6968
7069
@@ -81,6 +80,7 @@ def setUpClass(cls):
8180 # Get Zone, Domain and templates
8281 cls .domain = get_domain (cls .api_client , cls .services )
8382 cls .zone = get_zone (cls .api_client , cls .services )
83+ self .services ['mode' ] = zone .networktype
8484 template = get_template (
8585 cls .api_client ,
8686 cls .zone .id ,
Original file line number Diff line number Diff line change @@ -93,8 +93,6 @@ def __init__(self):
9393 "bootable" : True ,
9494 "passwordenabled" : True ,
9595 "ostype" : "CentOS 5.3 (64-bit)" ,
96- "mode" : 'advanced' ,
97- # Networking mode: Advanced, basic
9896 "sleep" : 30 ,
9997 "timeout" : 10 ,
10098 }
@@ -126,6 +124,7 @@ def setUpClass(cls):
126124 # Get Zone, Domain and templates
127125 cls .domain = get_domain (cls .api_client , cls .services )
128126 cls .zone = get_zone (cls .api_client , cls .services )
127+ cls .services ['mode' ] = zone .networktype
129128 cls .disk_offering = DiskOffering .create (
130129 cls .api_client ,
131130 cls .services ["disk_offering" ]
Original file line number Diff line number Diff line change @@ -1038,4 +1038,4 @@ def test_10_attachAndDetach_iso(self):
10381038 False ,
10391039 "Check if ISO is detached from virtual machine"
10401040 )
1041- return
1041+ return
Original file line number Diff line number Diff line change @@ -84,7 +84,6 @@ def __init__(self):
8484 "protocol" : 'TCP' ,
8585 "diskdevice" : "/dev/xvdb" ,
8686 "ostype" : 'CentOS 5.5 (64-bit)' ,
87- "mode" : 'advanced' ,
8887 "sleep" : 10 ,
8988 "timeout" : 600 ,
9089 }
@@ -100,6 +99,7 @@ def setUpClass(cls):
10099 # Get Zone, Domain and templates
101100 cls .domain = get_domain (cls .api_client , cls .services )
102101 cls .zone = get_zone (cls .api_client , cls .services )
102+ cls .services ['mode' ] = zone .networktype
103103 cls .disk_offering = DiskOffering .create (
104104 cls .api_client ,
105105 cls .services ["disk_offering" ]
You can’t perform that action at this time.
0 commit comments