You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by re...@apache.org on 2015/12/10 11:19:56 UTC
[1/2] git commit: updated refs/heads/master to cd81982
Repository: cloudstack
Updated Branches:
refs/heads/master 88a293b58 -> cd81982b3
CLOUDSTACK-9123 - Make test compliant with multiple hypervisors
- Get hypervisor information from testClient.getHypervisorInfo()
- Adds HyperV and VMware hypervisors
- Makes sure the OS type is "Other PV (64-bit)"
Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo
Commit: http://git-wip-us.apache.org/repos/asf/cloudstack/commit/c7f5e8a8
Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/c7f5e8a8
Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/c7f5e8a8
Branch: refs/heads/master
Commit: c7f5e8a82724d09b61884e1f45f3995a93f9e3a0
Parents: e08294a
Author: Wilder Rodrigues <wr...@schubergphilis.com>
Authored: Tue Dec 8 16:09:24 2015 +0100
Committer: Wilder Rodrigues <wr...@schubergphilis.com>
Committed: Wed Dec 9 17:45:40 2015 +0100
----------------------------------------------------------------------
test/integration/smoke/test_internal_lb.py | 38 ++++++++++++++++++-------
1 file changed, 28 insertions(+), 10 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/cloudstack/blob/c7f5e8a8/test/integration/smoke/test_internal_lb.py
----------------------------------------------------------------------
diff --git a/test/integration/smoke/test_internal_lb.py b/test/integration/smoke/test_internal_lb.py
index 6bcf8bc..0807b2a 100644
--- a/test/integration/smoke/test_internal_lb.py
+++ b/test/integration/smoke/test_internal_lb.py
@@ -20,7 +20,8 @@
from marvin.codes import PASS, FAILED
from marvin.cloudstackTestCase import cloudstackTestCase
from marvin.lib.utils import (cleanup_resources,
- get_process_status)
+ get_process_status,
+ get_host_credentials)
from marvin.lib.base import (Domain,
Account,
Configurations,
@@ -74,7 +75,6 @@ class Services:
},
"host1": None,
"host2": None,
- "default_hypervisor": "kvm",
"compute_offering": {
"name": "Tiny Instance",
"displaytext": "Tiny Instance",
@@ -214,15 +214,32 @@ class Services:
"url": "http://dl.openvm.eu/cloudstack/macchinina/x86_64/macchinina-kvm.qcow2.bz2",
"requireshvm": "True"
},
-
- "xen": {
+ "xenserver": {
"name": "tiny-xen",
"displaytext": "macchinina xen",
"format": "vhd",
- "hypervisor": "xen",
- "ostype": "Other (64-bit)",
+ "hypervisor": "xenserver",
+ "ostype": "Other PV (64-bit)",
"url": "http://dl.openvm.eu/cloudstack/macchinina/x86_64/macchinina-xen.vhd.bz2",
"requireshvm": "True",
+ },
+ "hyperv": {
+ "name": "tiny-hyperv",
+ "displaytext": "macchinina xen",
+ "format": "vhd",
+ "hypervisor": "hyperv",
+ "ostype": "Other PV (64-bit)",
+ "url": "http://dl.openvm.eu/cloudstack/macchinina/x86_64/macchinina-hyperv.vhd.zip",
+ "requireshvm": "True",
+ },
+ "vmware": {
+ "name": "tiny-vmware",
+ "displaytext": "macchinina vmware",
+ "format": "ova",
+ "hypervisor": "vmware",
+ "ostype": "Other PV (64-bit)",
+ "url": "http://dl.openvm.eu/cloudstack/macchinina/x86_64/macchinina-vmware.vmdk.bz2",
+ "requireshvm": "True",
}
}
}
@@ -256,10 +273,10 @@ class TestInternalLb(cloudstackTestCase):
cls.account = Account.create(
cls.apiclient, services=cls.services["account"])
- cls.hypervisor = cls.services["default_hypervisor"]
+ cls.hypervisor = testClient.getHypervisorInfo()
- cls.logger.debug("Downloading Template: %s from: %s" %(cls.services["template"][cls.hypervisor]["name"], cls.services["template"][cls.hypervisor]["url"]))
- cls.template = Template.register(cls.apiclient, cls.services["template"][cls.hypervisor], cls.zone.id, hypervisor=cls.hypervisor, account=cls.account.name, domainid=cls.domain.id)
+ cls.logger.debug("Downloading Template: %s from: %s" %(cls.services["template"][cls.hypervisor.lower()], cls.services["template"][cls.hypervisor.lower()]["url"]))
+ cls.template = Template.register(cls.apiclient, cls.services["template"][cls.hypervisor.lower()], cls.zone.id, hypervisor=cls.hypervisor.lower(), account=cls.account.name, domainid=cls.domain.id)
cls.template.download(cls.apiclient)
if cls.template == FAILED:
@@ -450,6 +467,7 @@ class TestInternalLb(cloudstackTestCase):
""" Setup ssh client connection and return connection
vm requires attributes public_ip, public_port, username, password """
+ ssh_client = None
try:
ssh_client = SshClient(
vm.public_ip,
@@ -733,7 +751,7 @@ class TestInternalLb(cloudstackTestCase):
# Verify access to and the contents of the admin stats page on the
# private address via a vm in the internal lb tier
stats = self.verify_lb_stats(
- applb.sourceipaddress, self.get_ssh_client(vm, 4), settings)
+ applb.sourceipaddress, self.get_ssh_client(vm, 5), settings)
self.assertTrue(stats, "Failed to verify LB HAProxy stats")
@classmethod
[2/2] git commit: updated refs/heads/master to cd81982
Posted by re...@apache.org.
Merge pull request #1204 from ekholabs/improve/test-internal-lb-CLOUDSTACK-9123
CLOUDSTACK-9123 - As a Developer I want the test_internal_lb.py to work with multiple hypervisorsThis PR make the test_internal_lb.py work with other Hypervisors types.
- Get hypervisor information from testClient.getHypervisorInfo()
- Adds XenServer, HyperV and VMware hypervisors
- Makes sure the OS type is "Other PV (64-bit)"
* pr/1204:
CLOUDSTACK-9123 - Make test compliant with multiple hypervisors
Signed-off-by: Remi Bergsma <gi...@remi.nl>
Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo
Commit: http://git-wip-us.apache.org/repos/asf/cloudstack/commit/cd81982b
Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/cd81982b
Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/cd81982b
Branch: refs/heads/master
Commit: cd81982b3948e0d033baa4ea1d47b1aa93e36495
Parents: 88a293b c7f5e8a
Author: Remi Bergsma <gi...@remi.nl>
Authored: Thu Dec 10 11:18:44 2015 +0100
Committer: Remi Bergsma <gi...@remi.nl>
Committed: Thu Dec 10 11:18:44 2015 +0100
----------------------------------------------------------------------
test/integration/smoke/test_internal_lb.py | 38 ++++++++++++++++++-------
1 file changed, 28 insertions(+), 10 deletions(-)
----------------------------------------------------------------------