Skip to content
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

Merged
merged 1 commit into from
Oct 30, 2017
Merged

Conversation

patduin
Copy link
Contributor

@patduin patduin commented Oct 30, 2017

Fixes issue #29

@@ -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;
Copy link
Contributor Author

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>
Copy link
Contributor

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?

Copy link
Contributor Author

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.

@coveralls
Copy link

Coverage Status

Coverage increased (+0.1%) to 68.73% when pulling 93e090c on issue-29 into 944c284 on master.

@patduin patduin merged commit 95c6995 into master Oct 30, 2017
@massdosage massdosage deleted the issue-29 branch October 31, 2017 15:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants