Exemplo n.º 1
0
def create_resource():
    return wsgi.Resource(ClusterController())
Exemplo n.º 2
0
def create_resource():
    return wsgi.Resource(VersionsController())
Exemplo n.º 3
0
def create_resource():
    return wsgi.Resource(LimitsController())
Exemplo n.º 4
0
def create_resource(ext_mgr):
    return wsgi.Resource(VolumeController(ext_mgr))
Exemplo n.º 5
0
def create_resource():
    return wsgi.Resource(VolumeVersionV1())
Exemplo n.º 6
0
 def test_is_valid_body_malformed_entity(self):
     resource = wsgi.Resource(controller=None)
     body = {'foo': 'bar'}
     self.assertFalse(self.controller.is_valid_body(body, 'foo'))
Exemplo n.º 7
0
def create_resource():
    return wsgi.Resource(GroupTypesController())
Exemplo n.º 8
0
def create_resource():
    return wsgi.Resource(VolumeTransferController())
Exemplo n.º 9
0
 def __init__(self, controller):
     mapper = routes.Mapper()
     mapper.resource("test",
                     "tests",
                     controller=os_wsgi.Resource(controller))
     super(TestRouter, self).__init__(mapper)
Exemplo n.º 10
0
def create_resource():
    return wsgi.Resource(VolumeTypesController())
Exemplo n.º 11
0
def create_resource():
    return wsgi.Resource(ConsistencyGroupsController())
Exemplo n.º 12
0
def create_resource():
    return wsgi.Resource(SnapshotManageController())
Exemplo n.º 13
0
def create_resource():
    return wsgi.Resource(GroupSnapshotsController())
Exemplo n.º 14
0
def create_resource():
    """Create the wsgi resource for this controller."""
    return wsgi.Resource(DefaultTypesController())
Exemplo n.º 15
0
 def test_is_valid_body_empty(self):
     resource = wsgi.Resource(controller=None)
     self.assertFalse(self.controller.is_valid_body({}, 'foo'))
Exemplo n.º 16
0
def create_resource():
    return wsgi.Resource(VolumeManageController())
Exemplo n.º 17
0
 def test_is_valid_body_no_entity(self):
     resource = wsgi.Resource(controller=None)
     body = {'bar': {}}
     self.assertFalse(self.controller.is_valid_body(body, 'foo'))
Exemplo n.º 18
0
def create_resource(ext_mgr):
    return wsgi.Resource(SnapshotsController(ext_mgr))
Exemplo n.º 19
0
def create_resource():
    return wsgi.Resource(WorkerController())
Exemplo n.º 20
0
def create_resource(ext_mgr):
    """Create the wsgi resource for this controller."""
    return wsgi.Resource(AttachmentsController(ext_mgr))
Exemplo n.º 21
0
def create_resource(ext_mgr):
    return wsgi.Resource(MessagesController(ext_mgr))
Exemplo n.º 22
0
 def test_is_valid_body_none(self):
     wsgi.Resource(controller=None)
     self.assertFalse(self.controller.is_valid_body(None, 'foo'))
Exemplo n.º 23
0
def create_resource():
    return wsgi.Resource(BackupsController())
Exemplo n.º 24
0
def create_resource(ext_mgr):
    """Create the wsgi resource for this controller."""
    return wsgi.Resource(ResourceFiltersController(ext_mgr))