-
Notifications
You must be signed in to change notification settings - Fork 76
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
issue-29: fixed missing STATUS from rest endpoint #30
Conversation
@@ -38,7 +39,7 @@ | |||
private @NotBlank String remoteMetaStoreUris; | |||
private @Valid MetastoreTunnel metastoreTunnel; | |||
private @NotNull AccessControlType accessControlType = AccessControlType.READ_ONLY; | |||
private transient @NotNull MetaStoreStatus status = MetaStoreStatus.UNKNOWN; | |||
private transient @JsonProperty @NotNull MetaStoreStatus status = MetaStoreStatus.UNKNOWN; |
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 actual fix, the rest is test related. Explicitly setting it as a JsonProperty. Following: FasterXML/jackson-databind#1184
@@ -80,6 +80,12 @@ | |||
<groupId>org.skyscreamer</groupId> | |||
<artifactId>jsonassert</artifactId> | |||
<scope>test</scope> | |||
<exclusions> |
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.
Do you need to do this in order to prevent a conflicting version of Jackson being pulled in?
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 rest controller test prints a warning about two similar class in two different jars on the classpath. It Adviced to remove one for deterministic test sake :). I don't need to do this for the fix.
Fixes issue #29