-
Notifications
You must be signed in to change notification settings - Fork 4
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
Adds dependencies test #17
Conversation
This adds a dependencies test, which will need further refactoring to support storage types that require dependency-aggregation. However, this works and keeps the first pass small. Signed-off-by: Adrian Cole <[email protected]>
- > | ||
while ! wget -q --spider http://{{ include "zipkin.fullname" . }}:8081/health;do sleep 1; done && | ||
for i in 1 2 3;do wget -q --spider http://{{ include "zipkin.fullname" . }}:8081; done | ||
- name: get-dependencies |
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.
The follow-up is.. we'll need a conditional here to invoke the dependencies cron job synchronously, when elasticsearch.
Signed-off-by: Adrian Cole <[email protected]>
@@ -16,13 +16,31 @@ spec: | |||
# Make sure zipkin registered in Eureka at startup | |||
args: [ 'wget -q --spider http://{{ include "zipkin.fullname" . }}:8761/eureka/v2/apps/ZIPKIN' ] | |||
{{- end }} | |||
{{ if .Values.global.testDependencies }} |
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.
used a global here as cycling through a list of objects to pick if "frontend" is there, is quite complicated in helm. maps are easier than lists
echo '[{"parent":"frontend","child":"backend","callCount":3}]' > want.json && | ||
sleep 3 && | ||
wget -qO have.json --header "b3: 0" http://{{ include "zipkin.fullname" . }}:{{ .Values.service.port }}/api/v2/dependencies?endTs=$(( $(date +%s) * 1000 )) && | ||
diff -b want.json have.json |
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.
yes I code go ;)
echo '[{"parent":"frontend","child":"backend","callCount":3}]' > want.json && | ||
sleep 3 && | ||
wget -qO have.json --header "b3: 0" http://{{ include "zipkin.fullname" . }}:{{ .Values.service.port }}/api/v2/dependencies?endTs=$(( $(date +%s) * 1000 )) && | ||
diff -b want.json have.json |
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.
diff -b want.json have.json | |
diff -b want.json got.json |
Just kidding
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.
haha true.. I'm not that go ;)
thanks for the look @anuraaga! |
This adds a dependencies test, which will need further refactoring to support storage types that require dependency-aggregation. However, this works and keeps the first pass small.