Add unit tests for secret metadata models and fixed JSON property name

This commit is contained in:
2018-11-20 13:50:28 +01:00
parent c2bd54ca22
commit d1876c88aa
4 changed files with 184 additions and 10 deletions

View File

@ -49,7 +49,8 @@ public class MetadataResponse extends VaultDataResponse {
/**
* Get the actual metadata.
* @return
*
* @return Metadata.
*/
public SecretMetadata getMetadata() {
return metadata;

View File

@ -40,7 +40,7 @@ public final class SecretMetadata {
@JsonProperty("current_version")
private Integer currentVersion;
@JsonProperty("max_version")
@JsonProperty("max_versions")
private Integer maxVersions;
@JsonProperty("oldest_version")