Adjust database tests 30/186930/18
authorAlexander Mazuruk <a.mazuruk@samsung.com>
Wed, 15 Aug 2018 12:41:49 +0000 (14:41 +0200)
committerPawel Wieczorek <p.wieczorek2@samsung.com>
Mon, 1 Oct 2018 14:34:14 +0000 (16:34 +0200)
commit4c2c6886cebdf8acbca4e1165e7ec8bc793eeb5d
treedb52fc7a91e1f3819fd63a4282cca9994162d901
parenta4ae7889d804f7d784a1cc9d65d2a68cef446a6e
Adjust database tests

Make artifacts/database tests faster (8s->2.5s) by restructurizing
before/afterEach clauses to omit unneccessary setup before TCs.
Finished packing setups into single transactions with db.

Merged tests for pagination into database tests.

Add tests for sorting

Less magic

Change-Id: I49c82c4d0bfc000498b555c0d56490d939e24713
Signed-off-by: Alexander Mazuruk <a.mazuruk@samsung.com>
artifacts/database/database_suite_test.go
artifacts/database/database_test.go
artifacts/database/pagination_test.go [deleted file]