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 test for different API behaviour. #642

Merged
merged 1 commit into from
Aug 1, 2016

Conversation

KostyaSha
Copy link
Member

@KostyaSha KostyaSha commented Jul 22, 2016

This change is Reviewable

assertEquals(stdout.toString(), "");

if (getVersion(dockerClient).isGreaterOrEqual(VERSION_1_23)) {
Copy link
Member Author

Choose a reason for hiding this comment

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

@tjlee do you have the same changes?

Copy link

@tjlee tjlee Aug 1, 2016

Choose a reason for hiding this comment

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

@KostyaSha Actually it was all around test code base. During refactoring i touch this but without clear understanding. But if the same behavior changes withing API versions it can be used but the best way to create parametrized test with API version as param (tags if fine too, like with cicleci)

Copy link
Member Author

Choose a reason for hiding this comment

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

That one of the ways, but i decided to make conditionals in tests. Would also help understand for end users tests as examples.
With groups/tags you can only exclude Test from run, here it only checks behaviour.

@tjlee
Copy link

tjlee commented Aug 1, 2016

For such a way (show behavior) it is seems to be the best way

@KostyaSha
Copy link
Member Author

Test looks working, will merge, if it fail again - will fix again.

@KostyaSha KostyaSha merged commit 4c663e1 into docker-java:master Aug 1, 2016
@KostyaSha KostyaSha deleted the fixExecStartTest branch August 1, 2016 13:58
@KostyaSha KostyaSha added this to the 3.0.1 milestone Aug 1, 2016
panuse pushed a commit to TuKangTech/docker-java that referenced this pull request Aug 20, 2017
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.

None yet

2 participants