Merge lp:~yolanda.robla/keystone/havana into lp:~openstack-ubuntu-testing/keystone/havana

Proposed by Yolanda Robla
Status: Merged
Approved by: Chuck Short
Approved revision: 200
Merged at revision: 199
Proposed branch: lp:~yolanda.robla/keystone/havana
Merge into: lp:~openstack-ubuntu-testing/keystone/havana
Diff against target: 210 lines (+131/-28)
8 files modified
debian/changelog (+6/-2)
debian/control (+1/-0)
debian/tests/control (+3/-0)
debian/tests/keystone-daemon (+18/-0)
debian/tests/keystone-paste.ini (+85/-0)
debian/tests/python-keystone (+14/-0)
debian/tests/test_import_keystone.py (+4/-0)
debian/tests/test_overrides.conf (+0/-26)
To merge this branch: bzr merge lp:~yolanda.robla/keystone/havana
Reviewer Review Type Date Requested Status
Chuck Short (community) Needs Fixing
Review via email: mp+167038@code.launchpad.net

Description of the change

Added autopkgtests

To post a comment you must log in.
Revision history for this message
Chuck Short (zulcss) wrote :

debian/tests/test_import_keystone.py why are you importing nova when you are testing keystone?

review: Needs Fixing
lp:~yolanda.robla/keystone/havana updated
200. By Yolanda Robla

modified import keystone

Revision history for this message
Yolanda Robla (yolanda.robla) wrote :

You are right, I missed the commit of that change. Recheck

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'debian/changelog'
2--- debian/changelog 2013-05-31 19:23:59 +0000
3+++ debian/changelog 2013-06-03 14:13:45 +0000
4@@ -1,8 +1,12 @@
5-keystone (1:2013.2~b1-0ubuntu2) UNRELEASED; urgency=low
6+keystone (1:2013.2~b1-0ubuntu2) saucy; urgency=low
7
8+ [ Adam Gandelman ]
9 * debian/patches/*: Refresh
10
11- -- Adam Gandelman <adamg@ubuntu.com> Fri, 31 May 2013 12:23:14 -0700
12+ [ Yolanda Robla ]
13+ * debian/tests: added autopkgtests
14+
15+ -- Yolanda Robla <yolanda.robla@canonical.com> Mon, 03 Jun 2013 14:57:00 +0100
16
17 keystone (1:2013.2~b1-0ubuntu1) saucy; urgency=low
18
19
20=== modified file 'debian/control'
21--- debian/control 2013-05-28 14:16:26 +0000
22+++ debian/control 2013-06-03 14:13:45 +0000
23@@ -34,6 +34,7 @@
24 XS-Python-Version: >= 2.6
25 Homepage: http://launchpad.net/keystone
26 Vcs-Bzr: https://code.launchpad.net/~openstack-ubuntu-testing/keystone/grizzly
27+XS-Testsuite: autopkgtest
28
29 Package: python-keystone
30 Architecture: all
31
32=== added file 'debian/tests/control'
33--- debian/tests/control 1970-01-01 00:00:00 +0000
34+++ debian/tests/control 2013-06-03 14:13:45 +0000
35@@ -0,0 +1,3 @@
36+Tests: python-keystone keystone-daemon
37+Depends: python-keystone, keystone
38+Restrictions: needs-root
39
40=== added file 'debian/tests/keystone-daemon'
41--- debian/tests/keystone-daemon 1970-01-01 00:00:00 +0000
42+++ debian/tests/keystone-daemon 2013-06-03 14:13:45 +0000
43@@ -0,0 +1,18 @@
44+#!/bin/bash
45+#------------------------
46+# Testing keystone-daemon
47+#------------------------
48+set -e
49+
50+# first copy the keystone-paste.ini file
51+cp `dirname $0`/keystone-paste.ini /etc/keystone/
52+
53+DAEMONS=('keystone-all')
54+
55+service keystone start > /dev/null
56+if pidof -x keystone-all > /dev/null; then
57+ echo "OK"
58+else
59+ echo "ERROR: ${daemon} IS NOT RUNNING"
60+ exit 1
61+fi
62
63=== added file 'debian/tests/keystone-paste.ini'
64--- debian/tests/keystone-paste.ini 1970-01-01 00:00:00 +0000
65+++ debian/tests/keystone-paste.ini 2013-06-03 14:13:45 +0000
66@@ -0,0 +1,85 @@
67+# Keystone PasteDeploy configuration file.
68+
69+[filter:debug]
70+paste.filter_factory = keystone.common.wsgi:Debug.factory
71+
72+[filter:token_auth]
73+paste.filter_factory = keystone.middleware:TokenAuthMiddleware.factory
74+
75+[filter:admin_token_auth]
76+paste.filter_factory = keystone.middleware:AdminTokenAuthMiddleware.factory
77+
78+[filter:xml_body]
79+paste.filter_factory = keystone.middleware:XmlBodyMiddleware.factory
80+
81+[filter:json_body]
82+paste.filter_factory = keystone.middleware:JsonBodyMiddleware.factory
83+
84+[filter:user_crud_extension]
85+paste.filter_factory = keystone.contrib.user_crud:CrudExtension.factory
86+
87+[filter:crud_extension]
88+paste.filter_factory = keystone.contrib.admin_crud:CrudExtension.factory
89+
90+[filter:ec2_extension]
91+paste.filter_factory = keystone.contrib.ec2:Ec2Extension.factory
92+
93+[filter:s3_extension]
94+paste.filter_factory = keystone.contrib.s3:S3Extension.factory
95+
96+[filter:url_normalize]
97+paste.filter_factory = keystone.middleware:NormalizingFilter.factory
98+
99+[filter:sizelimit]
100+paste.filter_factory = keystone.middleware:RequestBodySizeLimiter.factory
101+
102+[filter:stats_monitoring]
103+paste.filter_factory = keystone.contrib.stats:StatsMiddleware.factory
104+
105+[filter:stats_reporting]
106+paste.filter_factory = keystone.contrib.stats:StatsExtension.factory
107+
108+[filter:access_log]
109+paste.filter_factory = keystone.contrib.access:AccessLogMiddleware.factory
110+
111+[app:public_service]
112+paste.app_factory = keystone.service:public_app_factory
113+
114+[app:service_v3]
115+paste.app_factory = keystone.service:v3_app_factory
116+
117+[app:admin_service]
118+paste.app_factory = keystone.service:admin_app_factory
119+
120+[pipeline:public_api]
121+pipeline = access_log sizelimit url_normalize token_auth admin_token_auth xml_body json_body ec2_extension user_crud_extension public_service
122+
123+[pipeline:admin_api]
124+pipeline = access_log sizelimit url_normalize token_auth admin_token_auth xml_body json_body ec2_extension s3_extension crud_extension admin_service
125+
126+[pipeline:api_v3]
127+pipeline = access_log sizelimit url_normalize token_auth admin_token_auth xml_body json_body ec2_extension s3_extension service_v3
128+
129+[app:public_version_service]
130+paste.app_factory = keystone.service:public_version_app_factory
131+
132+[app:admin_version_service]
133+paste.app_factory = keystone.service:admin_version_app_factory
134+
135+[pipeline:public_version_api]
136+pipeline = access_log sizelimit url_normalize xml_body public_version_service
137+
138+[pipeline:admin_version_api]
139+pipeline = access_log sizelimit url_normalize xml_body admin_version_service
140+
141+[composite:main]
142+use = egg:Paste#urlmap
143+/v2.0 = public_api
144+/v3 = api_v3
145+/ = public_version_api
146+
147+[composite:admin]
148+use = egg:Paste#urlmap
149+/v2.0 = admin_api
150+/v3 = api_v3
151+/ = admin_version_api
152
153=== added file 'debian/tests/python-keystone'
154--- debian/tests/python-keystone 1970-01-01 00:00:00 +0000
155+++ debian/tests/python-keystone 2013-06-03 14:13:45 +0000
156@@ -0,0 +1,14 @@
157+#!/bin/bash
158+#-------------------------
159+# Testing client utilities
160+#-------------------------
161+set -e
162+
163+result=$(python `dirname $0`/test_import_keystone.py 2>&1)
164+if [ "$result" ]; then
165+ echo "ERROR: PYTHON-KEYSTONE MODULE CANNOT BE IMPORTED"
166+ exit 1
167+else
168+ echo "OK"
169+ exit 0
170+fi
171
172=== added file 'debian/tests/test_import_keystone.py'
173--- debian/tests/test_import_keystone.py 1970-01-01 00:00:00 +0000
174+++ debian/tests/test_import_keystone.py 2013-06-03 14:13:45 +0000
175@@ -0,0 +1,4 @@
176+try:
177+ import keystone
178+except ImportError, e:
179+ print "ERROR IMPORTING MODULE"
180
181=== removed file 'debian/tests/test_overrides.conf'
182--- debian/tests/test_overrides.conf 2013-04-05 20:24:50 +0000
183+++ debian/tests/test_overrides.conf 1970-01-01 00:00:00 +0000
184@@ -1,26 +0,0 @@
185-[DEFAULT]
186-crypt_strength = 10
187-
188-[identity]
189-driver = keystone.identity.backends.kvs.Identity
190-
191-[catalog]
192-driver = keystone.catalog.backends.templated.TemplatedCatalog
193-template_file = default_catalog.templates
194-
195-[trust]
196-driver = keystone.trust.backends.kvs.Trust
197-
198-[token]
199-driver = keystone.token.backends.kvs.Token
200-
201-[policy]
202-driver = keystone.policy.backends.rules.Policy
203-
204-[ec2]
205-driver = keystone.contrib.ec2.backends.kvs.Ec2
206-
207-[signing]
208-certfile = ../examples/pki/certs/signing_cert.pem
209-keyfile = ../examples/pki/private/signing_key.pem
210-ca_certs = ../examples/pki/certs/cacert.pem

Subscribers

People subscribed via source and target branches