-
Notifications
You must be signed in to change notification settings - Fork 550
ISSUE-737: Add ManagerStatus into Node #790
ISSUE-737: Add ManagerStatus into Node #790
Conversation
40cd463
to
4f81b74
Compare
de0b1b6
to
acee2dc
Compare
Codecov Report
@@ Coverage Diff @@
## master #790 +/- ##
============================================
- Coverage 66.51% 66.19% -0.33%
Complexity 725 725
============================================
Files 162 162
Lines 3082 3097 +15
Branches 348 353 +5
============================================
Hits 2050 2050
- Misses 877 892 +15
Partials 155 155 |
d96036a
to
4f64290
Compare
@@ -2850,6 +2849,18 @@ public ListVolumesFilterParam(String name, String value) { | |||
List<Node> listNodes() throws DockerException, InterruptedException; | |||
|
|||
/** | |||
* List swarm nodes that match the given criteriag. Only available in Docker API >= 1.24. |
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.
typo in criteria
) | ||
); | ||
|
||
final List<Node> nodes = dockerClient.listNodes(Node.find().nodeId("24ifsmvkjbyhk").build()); |
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.
listNodes()
will return the list of one node provided by fixtures/1.28/listNodes.json
all the time, regardless of the nodeId used here. So this test only seems to check that listNodes()
can take Node.Criteria
as a parameter. I would lean towards removing this and the tests below (keep testListNodesWithServerError()
) since they don't add much.
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.
I'll update and remove the tests, thanks for taking a look.
4f64290
to
ef9394f
Compare
ISSUE-793: Fix for ManagerStatus when a manager is not a Leader on docker 17.03.1-ce Added a listNodes with Criteria call Switched to using a static import of Fixture Fixed typo in Criteria Removed some unit tests per PR feedback Fixed some checkstyle issues related to import ordering, and some indentation that got introduced after last merge
da0fe79
to
c3abb82
Compare
I've updated the PR with the requested changes. |
I saw that there was a closed issue #737 that my PR was referenced but my additions didn't add ManagerStatus into node.
This PR adds MangerStatus and NodeStatus into Node which should satisfy #737