Did I find the right examples for you? yes no

All Samples(17)  |  Call(17)  |  Derive(0)  |  Import(0)

src/d/o/dodai-compute-HEAD/nova/tests/api/openstack/fakes.py   dodai-compute(Download)
        else:
            ctxt = context.RequestContext('fake', 'fake')
        api10 = openstack.FaultWrapper(api_auth.InjectContext(ctxt,
              limits.RateLimitingMiddleware(inner_app10)))
        api11 = openstack.FaultWrapper(api_auth.InjectContext(ctxt,
              limits.RateLimitingMiddleware(
                  extensions.ExtensionMiddleware(inner_app11))))
    else:
        api10 = openstack.FaultWrapper(auth.AuthMiddleware(
        api10 = openstack.FaultWrapper(auth.AuthMiddleware(
              limits.RateLimitingMiddleware(inner_app10)))
        api11 = openstack.FaultWrapper(auth.AuthMiddleware(
              limits.RateLimitingMiddleware(
                  extensions.ExtensionMiddleware(inner_app11))))
        Auth = auth
    mapper = urlmap.URLMap()
    mapper['/v1.0'] = api10
    mapper['/v1.1'] = api11
    mapper['/'] = openstack.FaultWrapper(versions.Versions())

src/n/o/nova-HEAD/nova/tests/api/openstack/fakes.py   nova(Download)
 
    if use_no_auth:
        api_v2 = openstack_api.FaultWrapper(auth.NoAuthMiddleware(
              limits.RateLimitingMiddleware(inner_app_v2)))
    else:
        if fake_auth_context is not None:
            ctxt = fake_auth_context
        else:
            ctxt = context.RequestContext('fake', 'fake', auth_token=True)
        api_v2 = openstack_api.FaultWrapper(api_auth.InjectContext(ctxt,
    mapper['/v2'] = api_v2
    mapper['/v1.1'] = api_v2
    mapper['/'] = openstack_api.FaultWrapper(versions.Versions())
    return mapper
 
 
    if use_no_auth:
        api_v3 = openstack_api.FaultWrapper(auth.NoAuthMiddlewareV3(
              limits.RateLimitingMiddleware(inner_app_v3)))
    else:
        if fake_auth_context is not None:
            ctxt = fake_auth_context
        else:
            ctxt = context.RequestContext('fake', 'fake', auth_token=True)
        api_v3 = openstack_api.FaultWrapper(api_auth.InjectContext(ctxt,

src/n/o/nova-gce-HEAD/nova/tests/api/openstack/fakes.py   nova-gce(Download)
 
    if use_no_auth:
        api_v2 = openstack_api.FaultWrapper(auth.NoAuthMiddleware(
              limits.RateLimitingMiddleware(inner_app_v2)))
    else:
        if fake_auth_context is not None:
            ctxt = fake_auth_context
        else:
            ctxt = context.RequestContext('fake', 'fake', auth_token=True)
        api_v2 = openstack_api.FaultWrapper(api_auth.InjectContext(ctxt,
    mapper['/v2'] = api_v2
    mapper['/v1.1'] = api_v2
    mapper['/'] = openstack_api.FaultWrapper(versions.Versions())
    return mapper
 

src/n/o/nova-HEAD/nova/tests/api/openstack/compute/test_api.py   nova(Download)
    def _wsgi_app(self, inner_app):
        # simpler version of the app than fakes.wsgi_app
        return openstack_api.FaultWrapper(inner_app)
 
    def test_malformed_json(self):

src/d/o/dodai-compute-HEAD/nova/tests/api/openstack/test_api.py   dodai-compute(Download)
    def _wsgi_app(self, inner_app):
        # simpler version of the app than fakes.wsgi_app
        return openstack.FaultWrapper(inner_app)
 
    def test_malformed_json(self):

src/n/o/nova-gce-HEAD/nova/tests/api/openstack/compute/test_api.py   nova-gce(Download)
    def _wsgi_app(self, inner_app):
        # simpler version of the app than fakes.wsgi_app
        return openstack_api.FaultWrapper(inner_app)
 
    def test_malformed_json(self):

src/n/o/nova-HEAD/nova/tests/api/openstack/test_faults.py   nova(Download)
            raise safe_exception
 
        wrapper = nova.api.openstack.FaultWrapper(raiser)
        response = req.get_response(wrapper)