
Recently JSONB replaced a back-end agnostic data type for the "data" column in the Document model. This made it necessary to drop support for running Deckhand unit tests with any other database store. However, this arragenement is undesirable as a user shouldn't need to have postgresql installed just to kick off unit tests. So, this PS re-adds support for running unit tests via an in-memory sqlite database. To run unit tests with sqlite: tox -e py35 Unit tests still run against postgresql via: tox -e py35-postgresql Both jobs are executed in CICD already. This PS also updates the remaining DB columns to use JSONB if postgresql is enabled; else fallback columns are used for testing with sqlite. This is a necessary change to make the column data types consistent. Change-Id: I951f2f04fd013d635bb7653a238ff1eb3725b5e1
8 lines
356 B
Plaintext
8 lines
356 B
Plaintext
[DEFAULT]
|
|
test_command=OS_STDOUT_CAPTURE=${OS_STDOUT_CAPTURE:-1} \
|
|
OS_STDERR_CAPTURE=${OS_STDERR_CAPTURE:-1} \
|
|
OS_TEST_TIMEOUT=${OS_TEST_TIMEOUT:-60} \
|
|
${PYTHON:-python} -m subunit.run discover -t ./ ${OS_TEST_PATH:-./deckhand/tests/unit} $LISTOPT $IDOPTION
|
|
test_id_option=--load-list $IDFILE
|
|
test_list_option=--list
|