Skip to content
This repository has been archived by the owner on Jun 22, 2018. It is now read-only.

Add "minimesos logs" command #544

Merged
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
add Id to State
riccardomc committed Sep 26, 2017
commit 7f7932822501db79fe00755d70d308fd0077dca0
Original file line number Diff line number Diff line change
@@ -17,6 +17,7 @@
@JsonIgnoreProperties(ignoreUnknown = true)
public class State {

private String id;
private Map<String, String> flags = new HashMap<>();

@JsonProperty("activated_slaves")
@@ -62,4 +63,12 @@ public int getActivatedAgents() {
public String getVersion() {
return version;
}

public String getId() {
return id;
}

public void setId(String id) {
this.id = id;
}
}
Original file line number Diff line number Diff line change
@@ -293,6 +293,7 @@ public class ParseStateJSONTest {
@Test
public void exampleStateJSONIsParsedCorrectly() throws JsonParseException, JsonMappingException {
State parsedState = State.fromJSON(EXAMPLE_STATE_JSON);
assertEquals("20150907-122934-3858764204-5050-23", parsedState.getId());
assertEquals(1, parsedState.getFrameworks().size());
Framework framework = parsedState.getFramework("elasticsearch");
assertNotNull(framework);