-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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
Add pipeline unit testing to promtail #883
Conversation
@slim-bean Kindly let me know if the changes are relevant to what you mentioned in #769. If not, let me know what exactly should be done. Thanks! Note: The code in this PR still needs some refactoring |
c2022e8
to
bbeb1d4
Compare
yes this is exactly what I had in mind! let me know when you are ready and I'll review! |
fd2ecd1
to
3cc2184
Compare
@slim-bean Kindly review this |
pkg/promtail/promtail_test.go
Outdated
labels.Label{ | ||
Name: "action", | ||
Value: "GET", | ||
}, |
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.
can you flatten these out to save a little vertical space:
labels.Label{Name: "action", Value: "GET"},
@slim-bean Have made the changes. Kindly review. |
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.
LGTM!
What this PR does / why we need it ?:
Add pipeline unit testing to promtail
Which issue(s) this PR fixes:
Fixes #769