-
Notifications
You must be signed in to change notification settings - Fork 565
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
4.x: Move archetype metrics under GreetService
#7612
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.
I see that the generated test assertions now check only for the presence of the expected metrics and not the values. It would be nice if there was a way to verify the value as well, as we did before. I know it can be tedious to get the output, parse the output and save the current value, then access an endpoint, then retrieve the output and parse it again, and finally make sure the change in value is correct (rather than the absolute value) but would that work?
Yes that would work. Other possibility is to use ordered test method and run metric test first so we can avoid parsing metrics endpoint output for SE. Would you like this approach ? |
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.
Mostly looks good, but I am reluctant to approve the PR because there will be more changes to how the archetype should generate the SE code once Tomas finishes some current work.
Also, ideally we would avoid depending on test ordering among the test methods. If Romain is OK with it then I will be as well.
That's okay, I just removed the ordered test and parse the metrics instead to get the values. |
40ac2c9
to
33c7dd6
Compare
|
Signed-off-by: tvallin <[email protected]>
Signed-off-by: tvallin <[email protected]>
Signed-off-by: tvallin <[email protected]>
Signed-off-by: tvallin <[email protected]>
Signed-off-by: tvallin <[email protected]>
33c7dd6
to
d8a4970
Compare
Description
fix #7611
Removed the MetricsService and moved the
metrics
logic toGreetService
Documentation
no impact