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

[FIXED JENKINS-46082] API will now include culprits. #65

Merged
merged 1 commit into from
Sep 11, 2017

Conversation

abayer
Copy link
Member

@abayer abayer commented Aug 11, 2017

JENKINS-46082

Equivalent to jenkinsci/jenkins#2978

cc @reviewbybees

@abayer abayer requested review from jglick and oleg-nenashev August 11, 2017 15:12
@ghost
Copy link

ghost commented Aug 11, 2017

This pull request originates from a CloudBees employee. At CloudBees, we require that all pull requests be reviewed by other CloudBees employees before we seek to have the change accepted. If you want to learn more about our process please see this explanation.

Copy link
Member

@oleg-nenashev oleg-nenashev left a comment

Choose a reason for hiding this comment

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

🐝

JSONObject json = JSONObject.fromObject(response.getContentAsString());

Object culpritsArray = json.get("culprits");
assertNotNull(culpritsArray);
Copy link
Member

Choose a reason for hiding this comment

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

From here to the end of the method could probably be simplified to one assertEquals, after preparing the expected JSONArray.

@jglick
Copy link
Member

jglick commented Sep 11, 2017

@reviewbybees done

Are you going to ship it, or…?

@abayer
Copy link
Member Author

abayer commented Sep 11, 2017

Oops, forgot this.

@abayer abayer merged commit 3cb7c95 into jenkinsci:master Sep 11, 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.

3 participants