ANXS / postgresql

Fairly full featured Ansible role for Postgresql.
http://anxs.io/
MIT License
849 stars 573 forks source link

Change tests using Molecule #449

Closed tgadiev closed 3 years ago

tgadiev commented 4 years ago

I'd like to make tests for this role more convenient to modern technics. Molecule is the best testing framework for Ansible roles. This role is very useful and I think it needs more advanced tests.

gclough commented 4 years ago

@tgadiev , if you have a way to make things better... then I'll happily help review and merge it. I inherited the current setup, so I'm not an expert. Could you detail a bit more about how Molecule is "the best"?

If you're proposing wholesale changes, then we should include @jlozadad , @otakup0pe , and @UnderGreen at a minimum.

otakup0pe commented 4 years ago

I'm :100: on board with molecule and have been trying to find time to experiment on a shared setup which could be used across the ANXS collection.

maglub commented 3 years ago

I have started working on this and will make a skeleton that will work with our .travis-ci integration. Will deliver a first pull request to a separate branch quite soon.

I will initially base the docker containers on geerlingguy's systemd ready containers (so that we don't have to maintain them ourselves, and he is a decent source).

https://github.com/geerlingguy?tab=repositories&q=docker-*-ansible&type=&language=

What we should do as a first sttep:

Further work:

otakup0pe commented 3 years ago

Will deliver a first pull request to a separate branch quite soon.

Oh this is quite exciting. I look forward to seeing your implementation! Hopefully it's something that can be adopted across the other ANXS roles - they currently all follow more or less the same dated vagrant based pattern.

Let me know if you want access to the https://github.com/anxs/scaffolding repo, for any scaffolding kinda bits.

thbar commented 3 years ago

Work in https://github.com/ANXS/postgresql/pull/511 has been merged - @maglub can this issue be closed for now?

maglub commented 3 years ago

Sure