serokell / coffer

Multi-backend password store with multiple frontends
4 stars 2 forks source link

Automate spinning up/killing vault instances #43

Closed dcastro closed 2 years ago

dcastro commented 2 years ago

Clarification and motivation

Right now, in order to run the bats tests, developers have to manually start vault (with -dev and -dev-root-token-id "root") and then run make bats.

When we write tests for #16, some tests will require having two instances of vault running, so the process will require even more steps.

I think we should modify the make bats target so that it does all the required setup/teardown automatically (and the logic should probably be moved to a bash script).

The script should do something like this:

Acceptance criteria