/usr/lib/python2.6/site-packages/keystoneauth1/tests/unit/identity
Edit: /usr/lib/python2.6/site-packages/keystoneauth1/tests/unit/identity/test_identity_common.pyc (18701B)
Ñò
DVc @ s_ d d k Z d d k Z d d k Z d d k Z d d k l Z d d k l Z d d k l Z d d k l Z d d k l Z d d k l
Z
d d k l Z d d k l
Z
e i e i ƒ d
e f d „ ƒ Yƒ Z d e e
i f d
„ ƒ YZ d e e
i f d „ ƒ YZ d e
i f d „ ƒ YZ d e
i f d „ ƒ YZ d e
i f d „ ƒ YZ d S( iÿÿÿÿN( t _utils( t access( t
exceptions( t fixture( t identity( t plugin( t session( t utilst CommonIdentityTestsc B s× e Z d Z d Z d Z d Z d Z e i ƒ i Z
d „ Z e i
d „ ƒ Z e i
d „ ƒ Z d „ Z e i d „ ƒ Z d
„ Z d „ Z d „ Z d
„ Z d „ Z d „ Z d „ Z d „ Z d „ Z d „ Z RS( s http://127.0.0.1:5000/s http://127.0.0.1:35357/s http://nova/novapi/publics http://nova/novapi/internals http://nova/novapi/adminc C sk t t | ƒ i ƒ d | i | i f | _ d | i | i f | _ t i d | i ƒ | _
| i ƒ d S( Ns %s%st href( t superR t setUpt
TEST_ROOT_URLt versiont TEST_URLt TEST_ROOT_ADMIN_URLt TEST_ADMIN_URLR t
DiscoveryListt TEST_DISCOVERYt stub_auth_data( t self( ( s] /tmp/pip-build-lt8jXN/keystoneauth1/keystoneauth1/tests/unit/identity/test_identity_common.pyR ) s
c K s d S( s¹ Create an auth plugin that makes sense for the auth data.
It doesn't really matter what auth mechanism is used but it should be
appropriate to the API version.
N( ( R t kwargs( ( s] /tmp/pip-build-lt8jXN/keystoneauth1/keystoneauth1/tests/unit/identity/test_identity_common.pyt create_auth_plugin2 s c K s d S( s Return fake authentication data.
This should register a valid token response and ensure that the compute
endpoints are set to TEST_COMPUTE_PUBLIC, _INTERNAL and _ADMIN.
N( ( R R ( ( s] /tmp/pip-build-lt8jXN/keystoneauth1/keystoneauth1/tests/unit/identity/test_identity_common.pyt
get_auth_data: s c K sa | i | } | i | _ y | i | _ Wn t j
o | i | _ n X| i d | ƒ d S( Nt json( R t user_idt
project_idt AttributeErrort tenant_idt stub_auth( R R t token( ( s] /tmp/pip-build-lt8jXN/keystoneauth1/keystoneauth1/tests/unit/identity/test_identity_common.pyR B s c C s d S( s The API version being tested.N( ( R ( ( s] /tmp/pip-build-lt8jXN/keystoneauth1/keystoneauth1/tests/unit/identity/test_identity_common.pyR
M s c C s' | i d g d | i d | i ƒd } | i d d g d | ƒ| i ƒ } t i d | ƒ } | i d d h d
d 6d d
6| i d 6ƒ} | i d | i ƒ | i | | i
ƒ d } | i d d g d | i d | ƒ| i d d h d
d 6d d
6ƒ} | i d | i ƒ | i | | i
ƒ d S( Nt GETt base_urlR t SUCCESSt patht textt auths /patht endpoint_filtert computet service_typet admint interfaceR
iÈ s
SC SUCCESS( t stub_urlt TEST_COMPUTE_ADMINR R R t Sessiont getR
t assertEqualt status_codeR# ( R t bodyt at st respt new_body( ( s] /tmp/pip-build-lt8jXN/keystoneauth1/keystoneauth1/tests/unit/identity/test_identity_common.pyt test_discoveringQ s(
c C sê h | i d 6h d d 6g } | i i | i | ƒ d } | i d d g d | ƒt i ƒ } | i ƒ } | i ƒ } xm | | f D]_ } | i d d | d
h d d 6d
d 6| i d 6ƒ} | i d | i
ƒ | i | | i ƒ qƒ Wd S( NR iô R/ R! R R" R# s /pathR$ R% R&