New Show Hacker News story: Show HN: PostgreSQL proxy for integration testing things you don't control
Show HN: PostgreSQL proxy for integration testing things you don't control
2 by luqasn | 0 comments on Hacker News.
Hi hackers! I recently tried to get a stack of microservices running in a docker-compose sandbox for integration testing using their original (e.g. prod) configuration. This means I didn't know what credentials they'd be using or what database name. So I hacked together a postgresql proxy using an existing project ( https://ift.tt/suiIxKA ) and simply allow any credentials to connect and make sure the desired database exists before returning control to the caller. Sharing this in the hopes it is useful for someone else. Lucas
2 by luqasn | 0 comments on Hacker News.
Hi hackers! I recently tried to get a stack of microservices running in a docker-compose sandbox for integration testing using their original (e.g. prod) configuration. This means I didn't know what credentials they'd be using or what database name. So I hacked together a postgresql proxy using an existing project ( https://ift.tt/suiIxKA ) and simply allow any credentials to connect and make sure the desired database exists before returning control to the caller. Sharing this in the hopes it is useful for someone else. Lucas
Comments
Post a Comment