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

Test infrastructure should be run *by* Docker Compose, not other way round. #51

Closed
afandian opened this issue Feb 20, 2019 · 0 comments
Closed
Assignees

Comments

@afandian
Copy link
Contributor

The test code (in the Clojure project) in the current Elastic Search branch automates Docker by spinning up containers. The code runs outside Docker. This will make it tricky to include in CI. It also means that the code isn't being tested isn't running in the target environment.

To bring the methodology into line with how we do Docker, all code should be run in the Docker container, managed with Docker Compose. The Clojure code should have no knowledge of Docker.

@afandian afandian added this to the elastic-search milestone Feb 20, 2019
@afandian afandian self-assigned this Feb 20, 2019
afandian added a commit that referenced this issue Feb 21, 2019
 - Set up Elastic and Cayenne in Docker Compose.
 - Clojure code no longer automates Docker.
 - Instead of setting up and tearing down Docker Compose setup,
   now the test fixtures simply clear out the Elastic Search data.
 - Tests now use configuration values (not hard coded) for Elastic Search access.
 - Remove arbitrary sleeps in favour of explicitly flushing.
   This should be more deterministic, less error prone.
@afandian afandian closed this as completed Mar 4, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant