-
Notifications
You must be signed in to change notification settings - Fork 189
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
Error: Unable to parse elastic URL "http://elasticsearch:9200" and/or PORT "9200" #1442 #1443
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice, a few things I see.
made urlparser global and added testing added addtional testing and made it so the return is only 2 datatypes
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Awesome, great work. One tip on the way you're writing these tests. You have 6 variables at the top of the describe block that are shared between all the tests. This isn't a great pattern, and you'd be better off moving all of these into the test functions that use them (maximum isolation between tests, no dependencies, etc).
In your case this isn't going to break, since you used const
with strings; but if you had non-immutable types (e.g., object references) this could be problematic, if one test updated the data before another used it.
@c3ho what's in the log file it generated? |
Or maybe this PR isn't parsing the URL in your env correctly? What are you using for env with these elasitic params? |
Should it matter though? I thought we're overwriting it with the docker-compose envs when we run It's weird because obviously it is working since it passes the CI checks on github. Edit: Elasticsearch works, but Telescope crashes before Elasticsearch is fully up and running. |
@c3ho change |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Got it to work after @manekenpix suggestion.
Issue This PR Addresses
#1442
Type of Change
Description
Tested the docker build and it was succes full
Checklist