Skip to content
This repository has been archived by the owner on Jul 18, 2024. It is now read-only.

cURL http://localhost:30080/-/liveness in CI #30

Open
mlangbehn opened this issue Aug 28, 2017 · 0 comments
Open

cURL http://localhost:30080/-/liveness in CI #30

mlangbehn opened this issue Aug 28, 2017 · 0 comments

Comments

@mlangbehn
Copy link
Contributor

mlangbehn commented Aug 28, 2017

Issue description

#29 added tests/test-docker-compose.sh, which verifies GitLab is up via docker-compose ps and nc -z -v localhost 30080. While this tells us if the containers are up and if port 30080 is reachable, it does not effectively check for GitLab being functional.

Suggestion

While writing tests/test-docker-compose.sh, I looked into GitLab's Health Check documentation. This was not working (throwing 404s in my testing), but would give us JSON with status for GitLab services. If we get GitLab Health Checks working, we can cURL http://localhost:30080/-/liveness and process the results.

Update

  • Upon further reading, it became obvious that 404s from /-/liveness and /-/readiness are expected behavior when not coming from a whitelisted IP address or using the admin token
    • The trick would be to either:
      • Figure out what address Travis CI is hitting GitLab from and add it to the whitelist
      • Programmatically grab the admin token and use it in the URL
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants