Skip to content
This repository has been archived by the owner on Sep 26, 2019. It is now read-only.

PAN-2711 - Don't require 'to' in 'blocks' queries #1464

Merged
merged 1 commit into from
May 18, 2019

Conversation

shemnon
Copy link
Contributor

@shemnon shemnon commented May 18, 2019

PR description

{blocks(from:7777777) {number}} should work, instead it is requiring a to: argument when it should be implied as latest

Fixed Issue(s)

final JsonObject expectedRespBody = spec.getJsonObject("response");
final String resultStr = resp.body().string();

final JsonObject result = new JsonObject(resultStr);
assertThat(result).isEqualTo(expectedRespBody);

final int expectedStatusCode = spec.getInteger("statusCode");
assertThat(resp.code()).isEqualTo(expectedStatusCode);
Copy link
Contributor

Choose a reason for hiding this comment

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

Why moving this at the end?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

So when an error occurs the response body shows up in the junit report.

@shemnon shemnon merged commit acedbcc into PegaSysEng:master May 18, 2019
@shemnon shemnon deleted the graphql branch May 18, 2019 21:54
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants