Add postgres support #135

Merged
konrad merged 26 commits from jtojnar/api:pgsql into master 2020-02-16 21:42:05 +00:00

26 Commits

Author SHA1 Message Date
kolaente 520501edd0
Revert fixture fixes for postgres
continuous-integration/drone/pr Build is passing Details
2020-02-16 22:13:10 +01:00
kolaente fed3a01617
Use postgres connection string with spaces instead of url
Signed-off-by: kolaente <k@knt.li>
2020-02-16 22:13:10 +01:00
kolaente b7883d01b9
Fix label order
Signed-off-by: kolaente <k@knt.li>
2020-02-16 22:13:10 +01:00
kolaente 1ddc55356c
Make postgres tests in ci less verbose
Signed-off-by: kolaente <k@knt.li>
2020-02-16 22:13:10 +01:00
kolaente 41baa9d2d5
Add sequence update script
Signed-off-by: kolaente <k@knt.li>
2020-02-16 22:13:10 +01:00
kolaente 49b995f16c
Skip resets in postgres
Signed-off-by: kolaente <k@knt.li>
2020-02-16 22:13:10 +01:00
kolaente 01852631fb
Remove option to skip resets in postgres
Signed-off-by: kolaente <k@knt.li>
2020-02-16 22:13:10 +01:00
kolaente 4426d8c643
Make postgres tests in ci verboseq
Signed-off-by: kolaente <k@knt.li>
2020-02-16 22:13:09 +01:00
kolaente 6f73c965fd
Update test fixtures database
Signed-off-by: kolaente <k@knt.li>
2020-02-16 22:13:09 +01:00
kolaente c7966e10d1
Fix file tests on postgres
Signed-off-by: kolaente <k@knt.li>
2020-02-16 22:13:09 +01:00
kolaente b244b4343f
Add postgres options to sample config
Signed-off-by: kolaente <k@knt.li>
2020-02-16 22:13:09 +01:00
kolaente 2e11de8fba
Make sure tests init test fixtures before running the actual tests
Signed-off-by: kolaente <k@knt.li>
2020-02-16 22:13:09 +01:00
kolaente 02374856ac
Fix issues with IDs too big to fit in an int
Signed-off-by: kolaente <k@knt.li>
2020-02-16 22:13:09 +01:00
kolaente ae2dc57daa
Fix duplicate auto incremented IDs
Signed-off-by: kolaente <k@knt.li>
2020-02-16 22:13:09 +01:00
kolaente d8f77b1d36
Refactor / Fix team tests
Signed-off-by: kolaente <k@knt.li>
2020-02-16 22:13:09 +01:00
kolaente a1e208a27b
Refactor team member tests
Signed-off-by: kolaente <k@knt.li>
2020-02-16 22:13:09 +01:00
kolaente ebb594268b
Fix team member create
Signed-off-by: kolaente <k@knt.li>
2020-02-16 22:13:08 +01:00
kolaente 4c88fc69bb
Fix label test
Signed-off-by: kolaente <k@knt.li>
2020-02-16 22:13:08 +01:00
kolaente 4f35e91d3b
Fix getting labels
Signed-off-by: kolaente <k@knt.li>
2020-02-16 22:13:08 +01:00
kolaente 19288fd3f9
Fix test fixtures for postgresql
Signed-off-by: kolaente <k@knt.li>
2020-02-16 22:13:08 +01:00
kolaente f3cd4d9ee8
Fix connection string params
Signed-off-by: kolaente <k@knt.li>
2020-02-16 22:13:08 +01:00
kolaente c455c4ae26
Disable ssl mode on postgres integration tests
Signed-off-by: kolaente <k@knt.li>
2020-02-16 22:13:08 +01:00
kolaente 889ea56dcf
Disable ssl mode on postgres tests
Signed-off-by: kolaente <k@knt.li>
2020-02-16 22:13:08 +01:00
kolaente 53a6297808
Use sprintf to create the connection string for postgresql
Signed-off-by: kolaente <k@knt.li>
2020-02-16 22:13:08 +01:00
Jan Tojnar 5afced95c8
fixup! Add postgres support 2020-02-16 22:13:07 +01:00
Jan Tojnar a9c762421f
Add postgres support 2020-02-16 22:13:07 +01:00