Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add multiple postgis DB and tests #10

Open
2 of 5 tasks
Gustry opened this issue May 20, 2020 · 2 comments
Open
2 of 5 tasks

Add multiple postgis DB and tests #10

Gustry opened this issue May 20, 2020 · 2 comments
Assignees

Comments

@Gustry
Copy link
Member

Gustry commented May 20, 2020

Following the discussion with @mdouchin

  • Add in the docker-compose a clone
  • Add test for testing a YML file
test 1:
    - description: "Ce test fait truc"
    - query:
        - database: clone_a
        - sql: UPDATE machin
    - sleep:
        - duration: 0.5
    - query:
        - database: central
        - sql: UPDATE machin
    - synchro:
        - from: clone_a
        

Other things to do:

  • be able to run a single test, because it might get long quickly
  • clean old files from lizsync/test/data
  • remove run_test.sh when it will be incorporated in the real python test
@Gustry Gustry self-assigned this May 20, 2020
@Gustry
Copy link
Member Author

Gustry commented May 27, 2020

Example service file:

[lizsync_central]
host=localhost
dbname=lizsync_central
user=lizsync
port=5432
password=***

[lizsync_clone_a]
host=localhost
dbname=lizsync_clone_a
user=lizsync
port=5432
password=***

[lizsync_clone_b]
host=localhost
dbname=lizsync_clone_b
user=lizsync
port=5432
password=***

./run_test.sh

@Gustry
Copy link
Member Author

Gustry commented Jun 24, 2020

First part is done in the #13.

I have edited my bullet list above with some things to continue with later, according to how it will go with this first step.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant