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

Add prettyPrint param to API endpoints #764

Merged
merged 3 commits into from
Apr 4, 2018
Merged

Conversation

yurishkuro
Copy link
Member

Fixes #756

cc @tiffon

Signed-off-by: Yuri Shkuro <ys@uber.com>
@coveralls
Copy link

coveralls commented Apr 4, 2018

Coverage Status

Coverage remained the same at 100.0% when pulling 01c863d on fix-756-format-trace-json into 4865de4 on master.

}
raw := get("")
pretty := get("?prettyPrint=1")
assert.True(t, 2*len(raw) < len(pretty), "formattet response must be longer")
Copy link
Contributor

Choose a reason for hiding this comment

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

Could we make this test more robust by comparing the output to an expected string instead of simply checking that the formatted string is longer?

Yuri Shkuro added 2 commits April 4, 2018 00:18
Signed-off-by: Yuri Shkuro <ys@uber.com>
Signed-off-by: Yuri Shkuro <ys@uber.com>
@yurishkuro yurishkuro merged commit c7ba373 into master Apr 4, 2018
@yurishkuro yurishkuro deleted the fix-756-format-trace-json branch April 4, 2018 15:03
@ghost ghost removed the review label Apr 4, 2018
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

3 participants