Skip to content

Commit e7090e6

Browse files
Srikanteswararao TalluriPrasanna Santhanam
authored andcommitted
CLOUDSTACK-2032: populate mode in the services dict from the list zones instead of hard coding
Signed-off-by: Prasanna Santhanam <tsp@apache.org>
1 parent 97911e9 commit e7090e6

6 files changed

Lines changed: 6 additions & 10 deletions

File tree

‎test/integration/smoke/test_iso.py‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff 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

‎test/integration/smoke/test_network.py‎

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff 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,

‎test/integration/smoke/test_routers.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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,

‎test/integration/smoke/test_templates.py‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff 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"]

‎test/integration/smoke/test_vm_life_cycle.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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

‎test/integration/smoke/test_volumes.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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"]

0 commit comments

Comments
 (0)