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 a case where getYamls would return an empty collection when in fa… #585

Merged
merged 2 commits into from
Aug 28, 2019

Conversation

Vlatombe
Copy link
Member

…ct yaml is not null

Amends #573

assertThat(podTemplate.getYamls(), empty());
podTemplate.setYaml("yaml");
List<String> yamls = podTemplate.getYamls();
assertThat(yamls, hasSize(1));
Copy link
Member Author

Choose a reason for hiding this comment

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

This line failed w/o the change in src/main

podTemplate.setYamls(null);
assertThat(podTemplate.getYamls(), empty());
podTemplate.setYaml("yaml");
assertThat(podTemplate.getYamls(), contains("yaml"));
Copy link
Member Author

Choose a reason for hiding this comment

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

This line would fail without the change to src/main

@Vlatombe Vlatombe merged commit 79dd113 into jenkinsci:master Aug 28, 2019
@Vlatombe Vlatombe deleted the inconsistent-getYamls branch August 28, 2019 12:32
@Vlatombe Vlatombe added the bug Bug Fixes label Aug 28, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Bug Fixes
Projects
None yet
2 participants