Project

General

Profile

Feature #939

Implement a database test fixture

Added by David Demelier 6 months ago. Updated 5 months ago.

Status:
Closed
Priority:
Normal
Category:
tests
Target version:
Start date:
10/30/2018
Due date:
% Done:

100%

Estimated time:
4.00 h
Spent time:
MFD after:
MFD revision:
Branch:
default
Bookmark:
@
Platform:

Description

  1. Run postgresql from the fixture in local unix socket only
  2. Initialize database
  3. Open a connection
  4. Close and cleaup

Also add a test case for account.

Associated revisions

Revision 199:9ef01392a7f1 (diff)
Added by David Demelier 6 months ago

tests: make a database test fixture, closes #939 @4h

Start PostgreSQL for each test in a clean directory and initialize a malikaniadb
within. Only enable unix domain sockets to avoid collision with a system
instance.

While here, move out the init script into a dedicated file until we find a good
solution for initializing databases and upgrading.

History

#1

Updated by David Demelier 5 months ago

  • % Done changed from 0 to 100
  • Status changed from New to Resolved
#2

Updated by David Demelier 5 months ago

  • Status changed from Resolved to Closed

Also available in: Atom PDF