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

Fix HostConfig's NanoCpus JsonProperty wrong casing #1387

Merged
merged 4 commits into from
May 29, 2020
Merged

Fix HostConfig's NanoCpus JsonProperty wrong casing #1387

merged 4 commits into from
May 29, 2020

Conversation

klmntoth
Copy link
Contributor

@klmntoth klmntoth commented May 3, 2020

Fixes #1386

both creating with nanoCPUs and getting the nanoCPUs value works.

- fixes HostConfig's NanoCpus JsonProperty casing
- adds basic tests related to HostConfig NanoCPUs
@bsideup
Copy link
Member

bsideup commented May 23, 2020

@klmntoth please sync with the latest master to fix the CI

@@ -543,6 +543,29 @@ public void startContainerWithRestartPolicy() throws DockerException {
assertThat(inspectContainerResponse.getHostConfig().getRestartPolicy(), is(equalTo(restartPolicy)));
}

@Test
public void startContainerWithNanoCPUs() throws DockerException {
Copy link
Member

Choose a reason for hiding this comment

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

given that we have createContainerWithNanoCPUs, I believe this test is not needed

@bsideup bsideup added this to the next milestone May 29, 2020
@bsideup bsideup merged commit 0d67452 into docker-java:master May 29, 2020
@bsideup
Copy link
Member

bsideup commented May 29, 2020

@klmntoth merged! Thanks for your contribution :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Incorrect NanoCPUs JsonProperty casing in HostConfig
2 participants