Skip to content

Conversation

@SanjanaB-zz
Copy link
Contributor

@SanjanaB-zz SanjanaB-zz commented Jan 9, 2019

The issue aims to expose Go Server version information to the api consumers.
Fixes GoCD api changes required to address the issue


MessageHandlerForServerInfoRequestProcessor2_0 processor = new MessageHandlerForServerInfoRequestProcessor2_0();

assertThat(processor.serverInfoToJSON(serverConfig),
Copy link
Member

Choose a reason for hiding this comment

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

Use assertThatJson instead of matching JSON strings. There's no guarantee of ordering of the different keys in JSON. This is likely to cause flaky tests.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@ketan assertThatJson expects a json object. but the return type here is String. We could otherwise use JSONAssert.assertEquals.

@SanjanaB-zz SanjanaB-zz force-pushed the master branch 2 times, most recently from 2a7edd0 to ffb7d67 Compare January 9, 2019 12:01
@ketan ketan merged commit a2ac7ed into gocd:master Jan 9, 2019
@ketan ketan added this to the Release 19.1.0 milestone Jan 9, 2019
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