Example #1
0
def run(args):
    runtest(CatalogTaskManagerTestCase, tests, args)
Example #2
0
def run(args):
    runtest(EventProducerTestCase, tests, args)
Example #3
0
        row = 10
        offset = 3
        uri = '/v1.0/server/db/table/resource/desc/'
        res = self.invoke(self.module, uri, 'GET', data=data)
        self.logger.debug(self.pp.pformat(res['response']))


def test_suite():
    tests = [  #'test_ping',
        #'test_info',
        'test_login',
        #'test_processes',
        #'test_workers',
        #'test_configs'
        'test_uwsgi_configs',
        #'test_reload',
        #'test_logout',

        #'test_database_ping',
        #'test_database_tables',
        #'test_database_table',
        #'test_database_table_paging',
        #'test_database_table_count',
        #'test_database_table_desc'
    ]
    return unittest.TestSuite(map(BaseTestCase, tests))


if __name__ == '__main__':
    runtest([test_suite()])
Example #4
0
def run(args):
    runtest(BaseTestCase, tests, args)
Example #5
0
def run(args):
    runtest(AuthTestCase, tests, args)
Example #6
0
def run(args):
    runtest(TaskTestCase, tests, args)
Example #7
0

class CatalogTaskManagerTestCase(BeehiveTestCase):
    """To execute this test you need a mysql instance, a user and a 
    database associated to the user.
    """
    def setUp(self):
        BeehiveTestCase.setUp(self)

        configure_task_manager(self.broker, self.broker)
        configure_task_scheduler(self.broker, self.broker)

    def tearDown(self):
        BeehiveTestCase.tearDown(self)

    def test_run_refresh_catalog(self):
        data = {}
        task = refresh_catalog.delay(u'*', data)
        print task.id, task.status


def test_suite():
    tests = [
        u'test_run_refresh_catalog',
    ]
    return unittest.TestSuite(map(CatalogTaskManagerTestCase, tests))


if __name__ == u'__main__':
    runtest(test_suite())
Example #8
0
def run(args):
    runtest(AuthManagerTestCase, tests, args)
Example #9
0
def run(args):
    runtest(SchedulerAPITestCase, tests, args)
Example #10
0
def run(args):
    runtest(EventTestCase, tests, args)
Example #11
0
        global uid, seckey
        res = self.client.get_endpoints()
        self.logger.info(self.pp.pformat(res))

    def test_get_endpoint(self):
        global uid, seckey
        res = self.client.get_endpoint(17)
        self.logger.info(self.pp.pformat(res))

    def test_create_endpoint(self):
        name = 'prova'
        service = 'auth'
        uri = 'http://localhost:5000'
        res = self.client.create_endpoint(2, name, service, uri)
        self.logger.info(self.pp.pformat(res))

    def test_delete_endpoint(self):
        endpoint_id = 17
        res = self.client.delete_endpoint(endpoint_id)

    #
    # resources
    #
    def test_list_resources(self):
        global uid, seckey
        res = self.client.invoke('resource1', '/v1.0/resources/', 'get', '')


if __name__ == '__main__':
    runtest(BeehiveApiClientTestCase, tests)
Example #12
0
def run(args):
    runtest(AuthObjectTestCase, tests, args)