Skip to content

Conversation

@NelsonFrancisco
Copy link

This PR aims to prepare the test suite so other users (like me) can experiment with wal2json, and hopefully help this project to achieve its goals
I'm a newbie when it comes to wal2json, so I was trying to find a way to set me up fast and test stuff.
What better than docker?

So, this PR adds a dockerfile prepared with postgres10.10 and the wal2json plugin already installed

So you can just:

cp test/postgresql/postgresql.conf.backup test/postgresql/postgresql.conf
cd test
docker-compose up -d
cd ..
npm test

and you have your tests running!
(the reason of the first command is explained in the first commit)

When creating a new repo, please run
cp test/postgresql/postgresql.conf.backup test/postgresql/postgresql.conf

This is needed for testing because when docker container runs, it chowns postgresql.conf to docker, and you no longer have access to it.
You can run "chmod 1000:1000 postgresql.conf" to access the file after the container stops.
But anyway, postgresql.conf is being ignored because of that
It is failing. ATM I'm not so confortable with wal2json plugin and this repo.
But I pretend to. Anyway, it looks to me that this test should pass. Or something similar should be done.
But then again, I'm not so deep into this, for now
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

Successfully merging this pull request may close these issues.

1 participant