/usr/lib/python2.6/site-packages/keystoneauth1/tests/unit/identity
NameSizeModeActions
test_access.py27690644editdlrm
test_access.pyc34490644editdlrm
test_identity_common.py172830644editdlrm
test_identity_common.pyc187010644editdlrm
test_identity_v2.py121950644editdlrm
test_identity_v2.pyc119850644editdlrm
test_identity_v3.py216370644editdlrm
test_identity_v3.pyc193750644editdlrm
test_identity_v3_federation.py79410644editdlrm
test_identity_v3_federation.pyc93070644editdlrm
test_identity_v3_oidc.py64970644editdlrm
test_identity_v3_oidc.pyc53390644editdlrm
test_password.py21000644editdlrm
test_password.pyc29200644editdlrm
test_token.py12220644editdlrm
test_token.pyc14650644editdlrm
utils.py48060644editdlrm
utils.pyc63480644editdlrm
__init__.py00644editdlrm
__init__.pyc1680644editdlrm
Edit: /usr/lib/python2.6/site-packages/keystoneauth1/tests/unit/identity/test_identity_v3_federation.pyc (9307B)
Ñò DVc @sãddkZddkZddkZddklZddklZddklZddklZddkl Z ddk l Z ddk l Z d ei fd „ƒYZd e ifd „ƒYZd e ifd„ƒYZdS(iÿÿÿÿN(taccess(t exceptions(tfixture(tv3(tsession(t k2k_fixtures(tutilstTesterFederationPlugincBseZd„ZRS(cKs(|i|idtƒ}tid|ƒS(Nt authenticatedtresp(tposttfederated_token_urltFalseRtcreate(tselftsesstkwargsR ((sd/tmp/pip-build-lt8jXN/keystoneauth1/keystoneauth1/tests/unit/identity/test_identity_v3_federation.pytget_unscoped_auth_refs(t__name__t __module__R(((sd/tmp/pip-build-lt8jXN/keystoneauth1/keystoneauth1/tests/unit/identity/test_identity_v3_federation.pyRstV3FederatedPlugincBs;eZdZd„Zd„Zd„Zd„Zd„ZRS(shttp://keystone/v3cCsntt|ƒiƒtiƒ|_tiƒi|_ t i |iƒ|_ |i i ƒ|i iidƒtiƒi|_|i idddƒ}|iddddd d ƒtiƒi|_tiƒi|_d |i|i|if|_h|i d 6}|ii|id |id|ƒ|_h|id 6}|id}|ii|d |i d|ƒ|_dS(Nttokentcomputetnametnovatpublicshttp://nova/publictadminshttp://nova/admintinternalshttp://nova/internals8%s/OS-FEDERATION/identity_providers/%s/protocols/%s/authsX-Subject-Tokentjsontheaderss /auth/tokens(tsuperRtsetUpRtV3Tokentunscoped_tokentuuidtuuid4thextunscoped_token_idtcopytdeepcopyt scoped_tokentset_project_scopetmethodstappendtscoped_token_idt add_servicetadd_standard_endpointstidptprotocoltAUTH_URLt token_urlt requests_mockR t unscoped_mockt scoped_mock(RtsRtauth_url((sd/tmp/pip-build-lt8jXN/keystoneauth1/keystoneauth1/tests/unit/identity/test_identity_v3_federation.pyR's0     cKsC|id|iƒ|id|iƒ|id|iƒt|S(NR7R0tidentity_provider(t setdefaultR1R0R/R(RR((sd/tmp/pip-build-lt8jXN/keystoneauth1/keystoneauth1/tests/unit/identity/test_identity_v3_federation.pyt get_pluginGscCs&|iƒ}|i|i|iƒdS(N(R:t assertEqualR2R (Rtplugin((sd/tmp/pip-build-lt8jXN/keystoneauth1/keystoneauth1/tests/unit/identity/test_identity_v3_federation.pyttest_federated_urlMs cCs[tid|iƒƒ}|i|i|iƒƒ|i|iiƒ|i |i iƒdS(Ntauth( RtSessionR:R;R%t get_tokent assertTrueR4tcalledt assertFalseR5(RR((sd/tmp/pip-build-lt8jXN/keystoneauth1/keystoneauth1/tests/unit/identity/test_identity_v3_federation.pyttest_unscoped_behaviourQscCsm|id|iiƒ}tid|ƒ}|i|i|iƒƒ|i|i i ƒ|i|i i ƒdS(Nt project_idR>( R:R(RERR?R;R,R@RAR4RBR5(RR>R((sd/tmp/pip-build-lt8jXN/keystoneauth1/keystoneauth1/tests/unit/identity/test_identity_v3_federation.pyttest_scoped_behaviourXs (RRR1RR:R=RDRF(((sd/tmp/pip-build-lt8jXN/keystoneauth1/keystoneauth1/tests/unit/identity/test_identity_v3_federation.pyR#s    tK2KAuthPluginTestcBs¿eZdZdedfZdZedZdZdZdZedZ hed 6e d 6ed 6Z d „Z d „Z d„Z d„Zd„Zd„Zd„Zd„Zd„Zd„ZRS(shttp://127.0.0.1:5000/s%s%sRtpasswords/auth/OS-FEDERATION/saml2/ecpshttps://sp1.com/v3tsp1s(https://sp1.com/Shibboleth.sso/SAML2/ECPs>/OS-FEDERATION/identity_providers/testidp/protocols/saml2/authtidR7tsp_urlcCsctt|ƒiƒtiƒ|_|ii|i|i|i ƒt i ƒ|_ |i ƒ|_ dS(N(RRGRRR ttoken_v3tadd_service_providertSP_IDt SP_AUTH_URLtSP_URLRR?R:t k2kplugin(R((sd/tmp/pip-build-lt8jXN/keystoneauth1/keystoneauth1/tests/unit/identity/test_identity_v3_federation.pyRvs  cCsW|idddgdhtiƒid6d|iƒti|id|id|i ƒS( NtPOSTR>ttokensRsX-Subject-TokenRtusernameRH( tstub_urlR"R#R$RLRtPasswordtTEST_URLt TEST_USERt TEST_PASS(R((sd/tmp/pip-build-lt8jXN/keystoneauth1/keystoneauth1/tests/unit/identity/test_identity_v3_federation.pyt_get_base_plugins   c Cs©|iid|idtitiƒdhdd6ddƒ|iid|idtitiƒdhdd6ddƒ|iid |i d ti dhti d 6ƒdS( NRRtcontentRsapplication/vnd.paos+xmls Content-Typet status_codeiÈi.tGETRsX-Subject-Token( R3t register_uritREQUEST_ECP_URLtsixtbRt ECP_ENVELOPERPtTOKEN_BASED_ECPROtUNSCOPED_TOKENtUNSCOPED_TOKEN_HEADER(R((sd/tmp/pip-build-lt8jXN/keystoneauth1/keystoneauth1/tests/unit/identity/test_identity_v3_federation.pyt_mock_k2k_flow_urls‡s"         cKs6|id|iƒƒ|id|iƒti|S(Nt base_plugintservice_provider(R9RZRNRtKeystone2Keystone(RR((sd/tmp/pip-build-lt8jXN/keystoneauth1/keystoneauth1/tests/unit/identity/test_identity_v3_federation.pyR:ŸscCs,|ii|iƒ}|i|i|ƒdS(N(RQt_remote_auth_urlROR;t SP_ROOT_URL(Rtremote_auth_url((sd/tmp/pip-build-lt8jXN/keystoneauth1/keystoneauth1/tests/unit/identity/test_identity_v3_federation.pyttest_remote_url¤scCs?|iid|iddƒ|iti|ii|iƒdS(NRRR\i‘( R3R^R_t assertRaisesRtAuthorizationFailureRQt_get_ecp_assertionR(R((sd/tmp/pip-build-lt8jXN/keystoneauth1/keystoneauth1/tests/unit/identity/test_identity_v3_federation.pyttest_fail_getting_ecp_assertion¨s     c Cs[|iid|idhdd6dtidƒddƒ|iti|ii |i ƒdS( NRRRsapplication/vnd.paos+xmls Content-TypeR[tR\iÈ( R3R^R_R`RaRnRtInvalidResponseRQRpR(R((sd/tmp/pip-build-lt8jXN/keystoneauth1/keystoneauth1/tests/unit/identity/test_identity_v3_federation.pyt%test_get_ecp_assertion_empty_response²s     c Csd|iid|idhtiƒid6dtidƒddƒ|it i |i i |i ƒdS(NRRRs Content-TypeR[RrR\iÈ(R3R^R_R"R#R$R`RaRnRRsRQRpR(R((sd/tmp/pip-build-lt8jXN/keystoneauth1/keystoneauth1/tests/unit/identity/test_identity_v3_federation.pyt$test_get_ecp_assertion_wrong_headers½s    cCsI|iƒ|ii|i|i|iƒ}|iti|i dƒdS(NsX-Subject-Token( RfRQt)_send_service_provider_ecp_authn_responseRRPROR;RReR(Rtresponse((sd/tmp/pip-build-lt8jXN/keystoneauth1/keystoneauth1/tests/unit/identity/test_identity_v3_federation.pyttest_send_ecp_authn_responseÈs    cCs9|iƒ|ii|iƒ}|iti|iƒdS(N(RfRQt get_auth_refRR;RRet auth_token(Rtauth_ref((sd/tmp/pip-build-lt8jXN/keystoneauth1/keystoneauth1/tests/unit/identity/test_identity_v3_federation.pyttest_end_to_end_workflowÒs  (RRt TEST_ROOT_URLRWRYR_RkRNRPROtSERVICE_PROVIDER_DICTRRZRfR:RmRqRtRuRxR|(((sd/tmp/pip-build-lt8jXN/keystoneauth1/keystoneauth1/tests/unit/identity/test_identity_v3_federation.pyRGas.       (R&R"R`t keystoneauth1RRRtkeystoneauth1.identityRRtkeystoneauth1.tests.unitRRtFederationBaseAuthRtTestCaseRRG(((sd/tmp/pip-build-lt8jXN/keystoneauth1/keystoneauth1/tests/unit/identity/test_identity_v3_federation.pyt s   >