summaryrefslogtreecommitdiffstats
path: root/meta-openstack
diff options
context:
space:
mode:
authorVu Tran <vu.tran@windriver.com>2014-05-26 21:50:17 -0400
committerBruce Ashfield <bruce.ashfield@windriver.com>2014-05-27 16:19:16 -0400
commitfcd34b62d9791e830fcc00a86d2e6d70ed116460 (patch)
tree5f4ac73e2515da9aa63f1ae9680d3234bbcd81d3 /meta-openstack
parenta02e66c2574900a12e29723b9667c50b2bffdf45 (diff)
downloadmeta-cloud-services-fcd34b62d9791e830fcc00a86d2e6d70ed116460.tar.gz
tempest TenantUsagesTestJSON sleep more
Two testcases: * tempest.api.compute.admin.test_simple_tenant_usage.TenantUsagesTestJSON.test_get_usage_tenant[gate] * tempest.api.compute.admin.test_simple_tenant_usage.TenantUsagesTestJSON.test_get_usage_tenant_with_non_admin_user[gate] fail with the following reason: 2014-05-26 22:46:23,929 Response Body: {"tenant_usage": {}} }}} Traceback (most recent call last): File "/usr/lib64/python2.7/site-packages/tempest/api/compute/admin/test_simple_tenant_usage.py", line 92, in test_get_usage_tenant_with_non_admin_user self.assertEqual(len(tenant_usage), 8) File "/usr/lib64/python2.7/site-packages/testtools/testcase.py", line 322, in assertEqual self.assertThat(observed, matcher, message) File "/usr/lib64/python2.7/site-packages/testtools/testcase.py", line 412, in assertThat raise MismatchError(matchee, matcher, mismatch, verbose) MismatchError: 0 != 8 These 2 testcases first spawn a VM for a new tenant, sleep for 2s and then request "tenant usage" stat from nova-compute. However, the "tenant usage" stat returned is empty and thus testcases fail. Increase sleep to 20s to make sure nova-compute has enough time to collect stat Signed-off-by: Vu Tran <vu.tran@windriver.com>
Diffstat (limited to 'meta-openstack')
-rw-r--r--meta-openstack/recipes-extended/tempest/tempest/tempest-TenantUsagesTestJSON-sleep-more.patch43
-rw-r--r--meta-openstack/recipes-extended/tempest/tempest_git.bb1
2 files changed, 44 insertions, 0 deletions
diff --git a/meta-openstack/recipes-extended/tempest/tempest/tempest-TenantUsagesTestJSON-sleep-more.patch b/meta-openstack/recipes-extended/tempest/tempest/tempest-TenantUsagesTestJSON-sleep-more.patch
new file mode 100644
index 0000000..8f4be14
--- /dev/null
+++ b/meta-openstack/recipes-extended/tempest/tempest/tempest-TenantUsagesTestJSON-sleep-more.patch
@@ -0,0 +1,43 @@
1tempest TenantUsagesTestJSON sleeps more
2
3Two testcases:
4
5* tempest.api.compute.admin.test_simple_tenant_usage.TenantUsagesTestJSON.test_get_usage_tenant[gate]
6* tempest.api.compute.admin.test_simple_tenant_usage.TenantUsagesTestJSON.test_get_usage_tenant_with_non_admin_user[gate]
7
8fail with the following reason:
9
102014-05-26 22:46:23,929 Response Body: {"tenant_usage": {}}
11}}}
12
13Traceback (most recent call last):
14 File "/usr/lib64/python2.7/site-packages/tempest/api/compute/admin/test_simple_tenant_usage.py", line 92, in test_get_usage_tenant_with_non_admin_user
15 self.assertEqual(len(tenant_usage), 8)
16 File "/usr/lib64/python2.7/site-packages/testtools/testcase.py", line 322, in assertEqual
17 self.assertThat(observed, matcher, message)
18 File "/usr/lib64/python2.7/site-packages/testtools/testcase.py", line 412, in assertThat
19 raise MismatchError(matchee, matcher, mismatch, verbose)
20MismatchError: 0 != 8
21
22These 2 testcases first spawn a VM for a new tenant, sleep for 2s
23and then request "tenant usage" stat from nova-compute. However, the
24"tenant usage" stat returned is empty and thus testcases fail.
25
26Increase sleep to 20s to make sure nova-compute has enough time to collect
27stat.
28
29Signed-off-by: Vu Tran <vu.tran@windriver.com>
30
31diff --git a/tempest/api/compute/admin/test_simple_tenant_usage.py b/tempest/api/compute/admin/test_simple_tenant_usage.py
32index ce05899..fde7b5d 100644
33--- a/tempest/api/compute/admin/test_simple_tenant_usage.py
34+++ b/tempest/api/compute/admin/test_simple_tenant_usage.py
35@@ -40,7 +40,7 @@ class TenantUsagesTestJSON(base.BaseComputeAdminTest):
36
37 # Create a server in the demo tenant
38 resp, server = cls.create_server(wait_until='ACTIVE')
39- time.sleep(2)
40+ time.sleep(20)
41
42 now = datetime.datetime.now()
43 cls.start = cls._parse_strtime(now - datetime.timedelta(days=1))
diff --git a/meta-openstack/recipes-extended/tempest/tempest_git.bb b/meta-openstack/recipes-extended/tempest/tempest_git.bb
index a292345..dc2b7d8 100644
--- a/meta-openstack/recipes-extended/tempest/tempest_git.bb
+++ b/meta-openstack/recipes-extended/tempest/tempest_git.bb
@@ -14,6 +14,7 @@ SRC_URI = "git://github.com/openstack/${SRCNAME}.git;branch=stable/havana \
14 file://logging.conf \ 14 file://logging.conf \
15 file://0001-Stop-auto-detecting-glance-API-versions.patch \ 15 file://0001-Stop-auto-detecting-glance-API-versions.patch \
16 file://image-client-not-specify-version.patch \ 16 file://image-client-not-specify-version.patch \
17 file://tempest-TenantUsagesTestJSON-sleep-more.patch \
17" 18"
18 19
19SRCREV="6273339e2da725b01560b6a2db11a3bf7a6659d7" 20SRCREV="6273339e2da725b01560b6a2db11a3bf7a6659d7"