Go to file
2013-07-01 17:11:09 +03:00
2013-06-28 11:20:54 +03:00
2013-07-01 17:11:09 +03:00
2013-06-28 14:48:26 +03:00
2013-06-29 10:18:49 +03:00
2013-07-01 16:17:57 +03:00
2013-07-01 16:17:57 +03:00
2013-07-01 16:17:57 +03:00
2013-06-27 23:01:21 +03:00
2013-07-01 16:17:57 +03:00
2013-07-01 16:17:57 +03:00

SETUP:

  1. System packages:

    1.1. Postgres server 1.2. libpq-dev

  2. Install pip-requirements
    2.1. python setup.py develop

    Will install python dependencies, and two scripts ostf-server ostf-db

  3. Migrate postgres database

    ostf-db --config-file /etc/testing_adapter.conf upgrade head TO REMOVE APPLIED MIGRATION USE: ostf-db --config-file /etc/testing_adapter.conf downgrade -1

  4. ostf-server --config-file /etc/testing_adapter.conf

    config-file should be in format of ./etc/testing_adapter.conf.sample where database_connection just usual sqlalchemy url

BY DEFAULT database connection will be: postgresql+psycopg2://adapter:demo@localhost/testing_adapter

If you want logging to file : ostf-server --log_file testing.log -------------------------------------------------------------------------------------------------------------------------------------

USE:

1. curl -H "Content-Type: application/json" -X POST -d http://localhost:8777/v1/tests RESPONSE: {"type": "tests", "id": 7}

2. curl -X GET http://localhost:8777/v1/tests/7 RESPONSE: {"tests": {"test_for_adapter.TestSimple.test_first_sleep": {"taken": 0.9953169822692871, "type": "success", "name": "test_for_adapter.TestSimple.test_first_sleep"}, "test_for_adapter.TestSimple.test_first_without_sleep": {"taken": 8.893013000488281e-05, "type": "success", "name": "test_for_adapter.TestSimple.test_first_without_sleep"}}, "type": "tests", "id": 7}

3. curl -X DELETE http://localhost:8777/v1/tests/7 Will kill test run

Description
RETIRED, Obsolete repo, please, take a look at fuel-ostf
Readme 441 KiB