Skip to content

Commit

Permalink
Merge pull request #596 from uselagoon/os_es_tests
Browse files Browse the repository at this point in the history
  • Loading branch information
tobybellwood authored Nov 10, 2022
2 parents 388f381 + 3b806da commit 95e19d9
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 0 deletions.
13 changes: 13 additions & 0 deletions helpers/TESTING_dockercompose.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ docker run --rm --net all-images_default jwilder/dockerize dockerize -wait tcp:/
docker run --rm --net all-images_default jwilder/dockerize dockerize -wait tcp://postgres-14:5432 -timeout 1m
docker run --rm --net all-images_default jwilder/dockerize dockerize -wait tcp://mongo:27017 -timeout 1m
docker run --rm --net all-images_default jwilder/dockerize dockerize -wait tcp://rabbitmq:15672 -timeout 1m
docker run --rm --net all-images_default jwilder/dockerize dockerize -wait tcp://opensearch-2:9200 -timeout 1m
```

Verification commands
Expand Down Expand Up @@ -267,6 +268,18 @@ docker-compose exec -T ruby-3.1 sh -c "ruby -v" | grep "3.1"

# ruby-3.1 should be serving content
docker-compose exec -T commons sh -c "curl ruby-3.1:3000/tmp/" | grep "ruby 3.1"

# opensearch-2 should have opensearch 2
docker-compose exec -T commons sh -c "curl opensearch-2:9200" | grep number | grep "2."

# opensearch-2 should be healthy
docker-compose exec -T commons sh -c "curl opensearch-2:9200/_cluster/health" | json_pp | grep status | grep green

# elasticsearch-7 should have elasticsearch 7
docker-compose exec -T commons sh -c "curl elasticsearch-7:9200" | grep number | grep "7."

# elasticsearch-7 should be healthy
docker-compose exec -T commons sh -c "curl elasticsearch-7:9200/_cluster/health" | json_pp | grep status | grep green
```

Destroy tests
Expand Down
16 changes: 16 additions & 0 deletions helpers/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -206,3 +206,19 @@ services:
ports:
- "8080" # exposes the port 8080 with a random local port, find it with `docker-compose port varnish-7 8080`
<< : *default-user # uses the defined user from top

opensearch-2:
image: uselagoon/opensearch-2:latest
labels:
lando.type: opensearch
ports:
- "9200" # exposes the port 8080 with a random local port, find it with `docker-compose port nginx 8080`
<< : *default-user # uses the defined user from top

elasticsearch-7:
image: uselagoon/elasticsearch-7:latest
labels:
lando.type: elasticsearch
ports:
- "9200" # exposes the port 8080 with a random local port, find it with `docker-compose port nginx 8080`
<< : *default-user # uses the defined user from top

0 comments on commit 95e19d9

Please sign in to comment.