Skip to content

Conversation

@jkubrynski
Copy link
Contributor

@jkubrynski jkubrynski commented Aug 27, 2016

This change is Reviewable

@KostyaSha
Copy link
Member

Could you create some test case?

private String hostsPath;

@JsonProperty("LogPath")
private String logPath;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since what api version?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's present since I remember. Even in your test inspectContainerResponse_full.json there is LogPath element

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please try check whether it exist before 1.19 at least and place javadoc.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If it already exists in existing json samples, then extend deserialisation test case with check.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LogPath was for sure in 1.18

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please place javadoc @since ~ >1.17

@KostyaSha
Copy link
Member

assertEquals(response.getVolumesRW()[1].getVolume().getPath(), "/bar/foo/myvol2");
assertFalse(response.getVolumesRW()[1].getAccessMode().toBoolean());
assertTrue(response.getVolumesRW()[0].getAccessMode().toBoolean());
assertEquals(response.getLogPath(), "/mnt/sda1/var/lib/docker/containers/469e5edd8d5b33e3c905a7ffc97360ec6ee211d6782815fbcd144568045819e1/469e5edd8d5b33e3c905a7ffc97360ec6ee211d6782815fbcd144568045819e1-json.log");
Copy link
Member

@KostyaSha KostyaSha Aug 27, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bad example was before...
assertThat(response.getLogPath(), is("/mnt/sda1/var/lib/docker/containers/469e5edd8d5b33e3c905a7ffc97360ec6ee211d6782815fbcd144568045819e1/469e5edd8d5b33e3c905a7ffc97360ec6ee211d6782815fbcd144568045819e1-json.log")

@KostyaSha KostyaSha added this to the 3.0.6 milestone Aug 27, 2016
@KostyaSha KostyaSha closed this Aug 28, 2016
@KostyaSha KostyaSha reopened this Aug 28, 2016
@KostyaSha
Copy link
Member

Retriggering PR build

@KostyaSha KostyaSha closed this Aug 28, 2016
@KostyaSha KostyaSha reopened this Aug 28, 2016
@KostyaSha KostyaSha merged commit f44616f into docker-java:master Aug 28, 2016
panuse pushed a commit to TuKangTech/docker-java that referenced this pull request Aug 20, 2017
…java#683)

* Fix docker-java#682 - Add LogPath to docker inspect response

* Fix docker-java#682 - Add LogPath to docker inspect response - fixes after code review

* Fix docker-java#682 - Add LogPath to docker inspect response - add javadoc

* Fix docker-java#682 - Add LogPath to docker inspect response - clean test assertion
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.

2 participants