-
Notifications
You must be signed in to change notification settings - Fork 62
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
microprofile-health-81 Ability to execute only some health checks #221
Conversation
Adding annotations Amend specification Add TCK tests Signed-off-by: Antoine Sabot-Durand <antoine@sabot-durand.net>
0272619
to
7e541b5
Compare
tck/src/main/java/org/eclipse/microprofile/health/tck/MultipleCustomFailedTest.java
Outdated
Show resolved
Hide resolved
tck/src/main/java/org/eclipse/microprofile/health/tck/MultipleCustomFailedTest.java
Outdated
Show resolved
Hide resolved
tck/src/main/java/org/eclipse/microprofile/health/tck/MultipleCustomFailedTest.java
Outdated
Show resolved
Hide resolved
tck/src/main/java/org/eclipse/microprofile/health/tck/SingleCustomSuccessfulTest.java
Outdated
Show resolved
Hide resolved
tck/src/main/java/org/eclipse/microprofile/health/tck/deployment/FailedCustom.java
Show resolved
Hide resolved
Signed-off-by: Antoine Sabot-Durand <antoine@sabot-durand.net>
@antoinesd did you verify that the new TCK can pass? |
Not yet. Do you want implement the feature in smallRye to test or do you prefer that I do it ? |
@antoinesd I implemented this in SmallRye. Everything passes. Thanks. |
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.
Just a few suggestions. I would also recommend to add something similar like this to the HealthGroup qualifier:
public class HealthGroupLiteral extends AnnotationLiteral<HealthGroup> implements HealthGroup {
private String groupName;
public HealthGroupLiteral(String groupName) {
this.groupName = groupName;
}
public static HealthGroupLiteral of(String groupName) {
return new HealthGroupLiteral(groupName);
}
@Override
public String value() {
return groupName;
}
}
as was originally proposed and it will be repeated in individual implementations. But this can be added in separate PR if you prefer.
typo Co-Authored-By: Martin Stefanko <xstefank122@gmail.com>
typo Co-Authored-By: Martin Stefanko <xstefank122@gmail.com>
@antoinesd thanks for the updates. Should we merge this PR and add Literal in a separate one? Or are you still going to include it here? |
I'll create anther PR for literals since it could be useful to have ones for |
fixes #81
Adding annotations
Amend specification
Add TCK tests
Signed-off-by: Antoine Sabot-Durand antoine@sabot-durand.net