/usr/lib/python2.6/site-packages/openstack/tests/unit
Edit: /usr/lib/python2.6/site-packages/openstack/tests/unit/test_connection.pyc (7305B)
Ñò
5
Wc @ 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 Z d Z
d Z d Z d i
d
e d e
d e d
e ƒ Z d e i f d „ ƒ YZ d S( iÿÿÿÿN( t
connection( t profile( t bases http://127.0.0.1:5000/v2.0t BozoTheClownt TopSecrett TheGrandPrizeGames§
clouds:
sample:
region_name: RegionOne
auth:
auth_url: {auth_url}
username: {username}
password: {password}
project_name: {project}
t auth_urlt usernamet passwordt projectt TestConnectionc B s§ e Z e i d ƒ d „ ƒ Z e i d ƒ d „ ƒ Z e i d ƒ d „ ƒ Z e i d ƒ d „ ƒ Z d „ Z d „ Z d „ Z
d „ Z d
„ Z d „ Z
d „ Z RS(
s openstack.session.Sessionc C s | | _ t i ƒ } t i d g ƒ | _ t i d | d d d t d d d d ƒ } h d d 6d d 6t d 6d d 6} | i | | | i | | i ƒ d S(
Nt return_valueR t
authenticatort 2t verifyt certt
user_agentt 1t auth(
R t mockt Mockt get_servicesR t
Connectiont Truet assert_called_witht assertEqualt session( t selft mock_session_initt mock_profilet connt args( ( sJ /tmp/pip-build-wCUybK/openstacksdk/openstack/tests/unit/test_connection.pyt test_other_parameters+ s "s, keystoneauth1.loading.base.get_plugin_loaderc C sâ t i ƒ } t i ƒ } t i d d ƒ t i d d ƒ t i d d ƒ g } t i d | ƒ | _ t i d | ƒ | _ | | _ h d d 6d d 6d d 6} t i d d
| } | i d
ƒ | i i | | i | | i ƒ d S( Nt destR R R R t 0R R
t auth_plugint
v2password(
R R t get_optionst load_from_optionsR R R R R R ( R t mock_get_plugint mock_plugint mock_loadert mock_optionst auth_argsR ( ( sJ /tmp/pip-build-wCUybK/openstacksdk/openstack/tests/unit/test_connection.pyt test_create_authenticator6 s
c C s: t i ƒ | i | i ƒ | i | i t i d ƒ ƒ d S( NR ( R R t
assertTruet calledR t call_argsR t call( R R' ( ( sJ /tmp/pip-build-wCUybK/openstacksdk/openstack/tests/unit/test_connection.pyt test_default_pluginL s
c C sN t i ƒ } d | _ t i d | ƒ } | i | i ƒ | i | | i ƒ d S( NR (
R R t NoneR R R t assertFalseR. R R ( R R' R( R ( ( sJ /tmp/pip-build-wCUybK/openstacksdk/openstack/tests/unit/test_connection.pyt test_pass_authenticatorR s
c C s; t i ƒ } t i ƒ } t i d | d | ƒ } | i | | i ƒ | i | | i ƒ | i d | i i i
ƒ | i d | i i i
ƒ | i d | i i i
ƒ | i d | i
i i
ƒ | i d | i i i
ƒ | i d | i i i
ƒ | i d | i i i
ƒ | i d
| i i i
ƒ | i d | i i i
ƒ d S( NR R s openstack.cluster.v1._proxys openstack.compute.v2._proxys openstack.database.v1._proxys openstack.identity.v3._proxys openstack.image.v1._proxys openstack.network.v2._proxys openstack.object_store.v1._proxys! openstack.orchestration.v1._proxys openstack.telemetry.v2._proxy( R R R t ProfileR R R R t clustert __class__t
__module__t computet databaset identityt imaget networkt object_storet
orchestrationt telemetry( R R t profR ( ( sJ /tmp/pip-build-wCUybK/openstacksdk/openstack/tests/unit/test_connection.pyt test_create_sessionZ s. c C sk t i ƒ } t i i | d ƒ } t | d ƒ i i ƒ } z | ~ } | i t ƒ Wd QX| t i
d