deckhand/deckhand
Felipe Monteiro b0c2f1c4e2 Allow unit tests to be run against in-memory sqlite
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
2018-02-12 22:10:29 -05:00
..
barbican The field returned by barbican is secret_ref, not secret_href 2018-02-07 21:45:04 -05:00
client Move DB calls out of engine module into controllers 2018-01-18 14:59:43 -05:00
conf Integrate Deckhand with keystone auth 2017-10-16 19:54:46 +01:00
control Allow unit tests to be run against in-memory sqlite 2018-02-12 22:10:29 -05:00
db Allow unit tests to be run against in-memory sqlite 2018-02-12 22:10:29 -05:00
engine Use DAG to resolve substitution dependency chain 2018-02-12 20:54:54 +00:00
policies Rename Deckhand bucket endpoint to buckets for consistency 2017-10-27 19:21:03 +01:00
tests Allow unit tests to be run against in-memory sqlite 2018-02-12 22:10:29 -05:00
__init__.py Oslo config integration (#1) 2017-06-26 16:57:50 -07:00
cmd.py Integrate Deckhand with keystone auth 2017-10-16 19:54:46 +01:00
context.py Integrate Deckhand with keystone auth 2017-10-16 19:54:46 +01:00
errors.py Use DAG to resolve substitution dependency chain 2018-02-12 20:54:54 +00:00
factories.py Use DAG to resolve substitution dependency chain 2018-02-12 20:54:54 +00:00
policy.py DECKHAND-66: Document substitution implementation 2017-10-13 15:16:27 -04:00
service.py DECKHAND-87: Deckhand API client library 2017-12-13 20:56:23 +00:00
types.py Add functional tests for "owned" documents 2017-12-23 02:25:29 +00:00
utils.py [Fix gate] Fix ValueError being thrown if sub path starts with $ 2018-02-09 00:40:48 -05:00