You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by ts...@apache.org on 2013/07/23 17:21:47 UTC
[1/2] git commit: updated refs/heads/4.2 to 1cd435e
Updated Branches:
refs/heads/4.2 e2e3b9a28 -> 1cd435e25
CLOUDSTACK-3724: Test case "test_vpc_vms_deployment.py" failed to find network offering.
Signed-off-by: Prasanna Santhanam <ts...@apache.org>
Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo
Commit: http://git-wip-us.apache.org/repos/asf/cloudstack/commit/a06b3f40
Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/a06b3f40
Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/a06b3f40
Branch: refs/heads/4.2
Commit: a06b3f40eba6ebc3af5d7c366ec757703a085f67
Parents: e2e3b9a
Author: Sanjay Tripathi <sa...@citrix.com>
Authored: Tue Jul 23 18:04:34 2013 +0530
Committer: Prasanna Santhanam <ts...@apache.org>
Committed: Tue Jul 23 20:32:48 2013 +0530
----------------------------------------------------------------------
test/integration/component/test_vpc_vms_deployment.py | 14 +++++++-------
1 file changed, 7 insertions(+), 7 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/cloudstack/blob/a06b3f40/test/integration/component/test_vpc_vms_deployment.py
----------------------------------------------------------------------
diff --git a/test/integration/component/test_vpc_vms_deployment.py b/test/integration/component/test_vpc_vms_deployment.py
index c599d96..194b406 100644
--- a/test/integration/component/test_vpc_vms_deployment.py
+++ b/test/integration/component/test_vpc_vms_deployment.py
@@ -354,7 +354,7 @@ class TestVMDeployVPC(cloudstackTestCase):
)
# Enable Network offering
nw_off_no_lb.update(self.apiclient, state='Enabled')
- self._cleanup.append(nw_off)
+ self._cleanup.append(nw_off_no_lb)
# Creating network using the network offering created
self.debug("Creating network with network offering: %s" %
@@ -569,7 +569,7 @@ class TestVMDeployVPC(cloudstackTestCase):
)
# Enable Network offering
nw_off_no_lb.update(self.apiclient, state='Enabled')
- self._cleanup.append(nw_off)
+ self._cleanup.append(nw_off_no_lb)
# Creating network using the network offering created
self.debug("Creating network with network offering: %s" %
@@ -822,7 +822,7 @@ class TestVMDeployVPC(cloudstackTestCase):
)
# Enable Network offering
nw_off_no_lb.update(self.apiclient, state='Enabled')
- self._cleanup.append(nw_off)
+ self._cleanup.append(nw_off_no_lb)
# Creating network using the network offering created
self.debug("Creating network with network offering: %s" %
@@ -1091,7 +1091,7 @@ class TestVMDeployVPC(cloudstackTestCase):
)
# Enable Network offering
nw_off_no_lb.update(self.apiclient, state='Enabled')
- self._cleanup.append(nw_off)
+ self._cleanup.append(nw_off_no_lb)
# Creating network using the network offering created
self.debug("Creating network with network offering: %s" %
@@ -1375,7 +1375,7 @@ class TestVMDeployVPC(cloudstackTestCase):
)
# Enable Network offering
nw_off_no_lb.update(self.apiclient, state='Enabled')
- self._cleanup.append(nw_off)
+ self._cleanup.append(nw_off_no_lb)
configs = Configurations.list(
self.apiclient,
@@ -1546,7 +1546,7 @@ class TestVMDeployVPC(cloudstackTestCase):
)
# Enable Network offering
nw_off_no_lb.update(self.apiclient, state='Enabled')
- self._cleanup.append(nw_off)
+ self._cleanup.append(nw_off_no_lb)
# Creating network using the network offering created
self.debug("Creating network with network offering: %s" %
@@ -1810,7 +1810,7 @@ class TestVMDeployVPC(cloudstackTestCase):
)
# Enable Network offering
nw_off_no_lb.update(self.apiclient, state='Enabled')
- self._cleanup.append(nw_off)
+ self._cleanup.append(nw_off_no_lb)
# Creating network using the network offering created
self.debug("Creating network with network offering: %s" %
[2/2] git commit: updated refs/heads/4.2 to 1cd435e
Posted by ts...@apache.org.
Fixed account objects CLOUDSTACK-3726
Signed-off-by: Prasanna Santhanam <ts...@apache.org>
Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo
Commit: http://git-wip-us.apache.org/repos/asf/cloudstack/commit/1cd435e2
Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/1cd435e2
Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/1cd435e2
Branch: refs/heads/4.2
Commit: 1cd435e25a36e8737d37edce1bb5da70d9b670c9
Parents: a06b3f4
Author: Sowmya Krishnan <so...@citrix.com>
Authored: Tue Jul 23 20:26:44 2013 +0530
Committer: Prasanna Santhanam <ts...@apache.org>
Committed: Tue Jul 23 20:51:03 2013 +0530
----------------------------------------------------------------------
.../component/test_netscaler_nw_off.py | 96 ++++++++++----------
1 file changed, 48 insertions(+), 48 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/cloudstack/blob/1cd435e2/test/integration/component/test_netscaler_nw_off.py
----------------------------------------------------------------------
diff --git a/test/integration/component/test_netscaler_nw_off.py b/test/integration/component/test_netscaler_nw_off.py
index c328f48..5fd2195 100644
--- a/test/integration/component/test_netscaler_nw_off.py
+++ b/test/integration/component/test_netscaler_nw_off.py
@@ -783,21 +783,21 @@ class TestNetScalerSharedMode(cloudstackTestCase):
self.network_3 = Network.create(
self.apiclient,
self.services["network"],
- accountid=self.account_3.account.name,
- domainid=self.account_3.account.domainid,
+ accountid=self.account_3.name,
+ domainid=self.account_3.domainid,
networkofferingid=self.network_offering.id,
zoneid=self.zone.id
)
self.debug("Created network with ID: %s" % self.network_3.id)
- self.debug("Deploying VM in account: %s" % self.account_3.account.name)
+ self.debug("Deploying VM in account: %s" % self.account_3.name)
with self.assertRaises(Exception):
# Spawn an instance in that network
virtual_machine_3 = VirtualMachine.create(
self.apiclient,
self.services["virtual_machine"],
- accountid=self.account_3.account.name,
- domainid=self.account_3.account.domainid,
+ accountid=self.account_3.name,
+ domainid=self.account_3.domainid,
serviceofferingid=self.service_offering.id,
networkids=[str(self.network_3.id)]
)
@@ -857,8 +857,8 @@ class TestNetScalerSharedMode(cloudstackTestCase):
self.network_offering.id)
networks = Network.list(
self.apiclient,
- account=self.account_3.account.name,
- domainid=self.account_3.account.domainid,
+ account=self.account_3.name,
+ domainid=self.account_3.domainid,
zoneid=self.zone.id,
listall=True
)
@@ -866,19 +866,19 @@ class TestNetScalerSharedMode(cloudstackTestCase):
isinstance(networks, list),
True,
"Network should be present for the account: %s" %
- self.account_3.account.name
+ self.account_3.name
)
self.network_3 = networks[0]
self.debug("Created network with ID: %s" % self.network_3.id)
- self.debug("Deploying VM in account: %s" % self.account_3.account.name)
+ self.debug("Deploying VM in account: %s" % self.account_3.name)
# Spawn an instance in that network
virtual_machine_3 = VirtualMachine.create(
self.apiclient,
self.services["virtual_machine"],
- accountid=self.account_3.account.name,
- domainid=self.account_3.account.domainid,
+ accountid=self.account_3.name,
+ domainid=self.account_3.domainid,
serviceofferingid=self.service_offering.id,
networkids=[str(self.network_3.id)]
)
@@ -923,21 +923,21 @@ class TestNetScalerSharedMode(cloudstackTestCase):
self.network_4 = Network.create(
self.apiclient,
self.services["network"],
- accountid=self.account_4.account.name,
- domainid=self.account_4.account.domainid,
+ accountid=self.account_4.name,
+ domainid=self.account_4.domainid,
networkofferingid=self.network_offering.id,
zoneid=self.zone.id
)
self.debug("Created network with ID: %s" % self.network_4.id)
- self.debug("Deploying VM in account: %s" % self.account_4.account.name)
+ self.debug("Deploying VM in account: %s" % self.account_4.name)
# Spawn an instance in that network
virtual_machine_4 = VirtualMachine.create(
self.apiclient,
self.services["virtual_machine"],
- accountid=self.account_4.account.name,
- domainid=self.account_4.account.domainid,
+ accountid=self.account_4.name,
+ domainid=self.account_4.domainid,
serviceofferingid=self.service_offering.id,
networkids=[str(self.network_4.id)]
)
@@ -970,22 +970,22 @@ class TestNetScalerSharedMode(cloudstackTestCase):
self.network_5 = Network.create(
self.apiclient,
self.services["network"],
- accountid=self.account_5.account.name,
- domainid=self.account_5.account.domainid,
+ accountid=self.account_5.name,
+ domainid=self.account_5.domainid,
networkofferingid=self.network_offering.id,
zoneid=self.zone.id
)
self.debug("Created network with ID: %s" % self.network_5.id)
- self.debug("Deploying VM in account: %s" % self.account_5.account.name)
+ self.debug("Deploying VM in account: %s" % self.account_5.name)
with self.assertRaises(Exception):
# Spawn an instance in that network
virtual_machine_5 = VirtualMachine.create(
self.apiclient,
self.services["virtual_machine"],
- accountid=self.account_5.account.name,
- domainid=self.account_5.account.domainid,
+ accountid=self.account_5.name,
+ domainid=self.account_5.domainid,
serviceofferingid=self.service_offering.id,
networkids=[str(self.network_5.id)]
)
@@ -1005,9 +1005,9 @@ class TestNetScalerSharedMode(cloudstackTestCase):
# 2. Create an instance from another account
# 3. Deploy instance should succeed
- self.debug("Delete account: %s" % self.account_4.account.name)
+ self.debug("Delete account: %s" % self.account_4.name)
self.account_4.delete(self.apiclient)
- self.debug("Account: %s is deleted" % self.account_4.account.name)
+ self.debug("Account: %s is deleted" % self.account_4.name)
interval = list_configurations(
self.apiclient,
@@ -1027,21 +1027,21 @@ class TestNetScalerSharedMode(cloudstackTestCase):
self.network_5 = Network.create(
self.apiclient,
self.services["network"],
- accountid=self.account_5.account.name,
- domainid=self.account_5.account.domainid,
+ accountid=self.account_5.name,
+ domainid=self.account_5.domainid,
networkofferingid=self.network_offering.id,
zoneid=self.zone.id
)
self.debug("Created network with ID: %s" % self.network_5.id)
- self.debug("Deploying VM in account: %s" % self.account_5.account.name)
+ self.debug("Deploying VM in account: %s" % self.account_5.name)
# Spawn an instance in that network
virtual_machine_5 = VirtualMachine.create(
self.apiclient,
self.services["virtual_machine"],
- accountid=self.account_5.account.name,
- domainid=self.account_5.account.domainid,
+ accountid=self.account_5.name,
+ domainid=self.account_5.domainid,
serviceofferingid=self.service_offering.id,
networkids=[str(self.network_5.id)]
)
@@ -1504,21 +1504,21 @@ class TestNwOffNetscaler(cloudstackTestCase):
self.network_3 = Network.create(
self.apiclient,
self.services["network"],
- accountid=self.account_3.account.name,
- domainid=self.account_3.account.domainid,
+ accountid=self.account_3.name,
+ domainid=self.account_3.domainid,
networkofferingid=self.network_offering_shared.id,
zoneid=self.zone.id
)
self.debug("Created network with ID: %s" % self.network_3.id)
- self.debug("Deploying VM in account: %s" % self.account_3.account.name)
+ self.debug("Deploying VM in account: %s" % self.account_3.name)
# Spawn an instance in that network
virtual_machine_3 = VirtualMachine.create(
self.apiclient,
self.services["virtual_machine"],
- accountid=self.account_3.account.name,
- domainid=self.account_3.account.domainid,
+ accountid=self.account_3.name,
+ domainid=self.account_3.domainid,
serviceofferingid=self.service_offering.id,
networkids=[str(self.network_3.id)]
)
@@ -1803,20 +1803,20 @@ class TestNwOffSToDUpgrade(cloudstackTestCase):
self.network_3 = Network.create(
self.apiclient,
self.services["network"],
- accountid=self.account_3.account.name,
- domainid=self.account_3.account.domainid,
+ accountid=self.account_3.name,
+ domainid=self.account_3.domainid,
networkofferingid=self.network_offering_dedicated.id,
zoneid=self.zone.id
)
self.debug("Created network with ID: %s" % self.network_3.id)
- self.debug("Deploying VM in account: %s" % self.account_3.account.name)
+ self.debug("Deploying VM in account: %s" % self.account_3.name)
# Spawn an instance in that network
virtual_machine_3 = VirtualMachine.create(
self.apiclient,
self.services["virtual_machine"],
- accountid=self.account_3.account.name,
- domainid=self.account_3.account.domainid,
+ accountid=self.account_3.name,
+ domainid=self.account_3.domainid,
serviceofferingid=self.service_offering.id,
networkids=[str(self.network_3.id)]
)
@@ -2220,20 +2220,20 @@ class TestNwOffDToSUpgrade(cloudstackTestCase):
self.network_3 = Network.create(
self.apiclient,
self.services["network"],
- accountid=self.account_3.account.name,
- domainid=self.account_3.account.domainid,
+ accountid=self.account_3.name,
+ domainid=self.account_3.domainid,
networkofferingid=self.network_offering_dedicated.id,
zoneid=self.zone.id
)
self.debug("Created network with ID: %s" % self.network_3.id)
- self.debug("Deploying VM in account: %s" % self.account_3.account.name)
+ self.debug("Deploying VM in account: %s" % self.account_3.name)
# Spawn an instance in that network
virtual_machine_3 = VirtualMachine.create(
self.apiclient,
self.services["virtual_machine"],
- accountid=self.account_3.account.name,
- domainid=self.account_3.account.domainid,
+ accountid=self.account_3.name,
+ domainid=self.account_3.domainid,
serviceofferingid=self.service_offering.id,
networkids=[str(self.network_3.id)]
)
@@ -2261,7 +2261,7 @@ class TestNwOffDToSUpgrade(cloudstackTestCase):
"VM state should be running after deployment"
)
- self.debug("Stopping all VMs in account: %s" % self.account_3.account.name)
+ self.debug("Stopping all VMs in account: %s" % self.account_3.name)
virtual_machine_3.stop(self.apiclient)
list_vm_response = VirtualMachine.list(
@@ -2314,7 +2314,7 @@ class TestNwOffDToSUpgrade(cloudstackTestCase):
self.network_offering_shared.id,
"Network offering ID should match with new offering ID"
)
- self.debug("Starting instances in account: %s" % self.account_3.account.name)
+ self.debug("Starting instances in account: %s" % self.account_3.name)
virtual_machine_3.start(self.apiclient)
list_vm_response = VirtualMachine.list(
@@ -2346,9 +2346,9 @@ class TestNwOffDToSUpgrade(cloudstackTestCase):
public_ip = PublicIPAddress.create(
self.apiclient,
- accountid=self.account_3.account.name,
+ accountid=self.account_3.name,
zoneid=self.zone.id,
- domainid=self.account_3.account.domainid,
+ domainid=self.account_3.domainid,
networkid=self.network_3.id
)
self.debug(
@@ -2359,7 +2359,7 @@ class TestNwOffDToSUpgrade(cloudstackTestCase):
self.apiclient,
self.services["lbrule"],
ipaddressid=public_ip.ipaddress.id,
- accountid=self.account_3.account.name,
+ accountid=self.account_3.name,
networkid=self.network_3.id
)
self.debug("Created the load balancing rule for public IP: %s" %