Codebase list python-castellan / e2fd851
Merge tag '3.10.2' into debian/yoga castellan 3.10.2 release meta:version: 3.10.2 meta:diff-start: - meta:series: yoga meta:release-type: release meta:pypi: no meta:first: no meta:release:Author: Hervé Beraud <hberaud@redhat.com> meta:release:Commit: Hervé Beraud <hberaud@redhat.com> meta:release:Change-Id: Ib493c2bd32c1bcef28d971724442abc2a2690b66 meta:release:Code-Review+2: Thierry Carrez <thierry@openstack.org> meta:release:Code-Review+2: Elod Illes <elod.illes@est.tech> meta:release:Workflow+1: Elod Illes <elod.illes@est.tech> Thomas Goirand 1 year, 9 months ago
4 changed file(s) with 6 addition(s) and 6 deletion(s). Raw diff Collapse all Expand all
11 host=review.opendev.org
22 port=29418
33 project=openstack/castellan.git
4 defaultbranch=stable/ussuri
4 defaultbranch=stable/yoga
181181
182182 def test_oslo_context_to_keystone_token(self):
183183 auth_token_value = '16bd612f28ec479b8ffe8e124fc37b43'
184 tenant_value = '00c6ef5ad2984af2acd7d42c299935c0'
184 project_id_value = '00c6ef5ad2984af2acd7d42c299935c0'
185185
186186 ctxt = context.RequestContext(
187187 auth_token=auth_token_value,
188 tenant=tenant_value)
188 project_id=project_id_value)
189189
190190 ks_token_context = utils.credential_factory(context=ctxt)
191191 ks_token_context_class = ks_token_context.__class__.__name__
192192
193193 self.assertEqual('KeystoneToken', ks_token_context_class)
194194 self.assertEqual(auth_token_value, ks_token_context.token)
195 self.assertEqual(tenant_value, ks_token_context.project_id)
195 self.assertEqual(project_id_value, ks_token_context.project_id)
196196
197197 def test_invalid_auth_type(self):
198198 self.config_fixture.config(
106106 sess = session.Session()
107107
108108 ctxt = context.RequestContext(auth_token=auth.get_token(sess),
109 tenant=auth.get_project_id(sess))
109 project_id=auth.get_project_id(sess))
110110
111111 ctxt can then be passed into any key_manager api call.
112112
1010 VIRTUAL_ENV={envdir}
1111 OS_TEST_PATH=./castellan/tests/unit
1212 deps =
13 -c{env:TOX_CONSTRAINTS_FILE:https://opendev.org/openstack/requirements/raw/branch/master/upper-constraints.txt}
13 -c{env:TOX_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/yoga}
1414 -r{toxinidir}/requirements.txt
1515 -r{toxinidir}/test-requirements.txt
1616 commands = stestr run --slowest {posargs}