Skip to content

Adding units tests for agent_common module#162

Merged
kevin-mcgoldrick merged 1 commit intointuit:masterfrom
girijasameera:unit_tests_girija
Oct 12, 2021
Merged

Adding units tests for agent_common module#162
kevin-mcgoldrick merged 1 commit intointuit:masterfrom
girijasameera:unit_tests_girija

Conversation

@girijasameera
Copy link
Contributor

@girijasameera girijasameera commented Oct 11, 2021

title: - <Adding tests for issue #88 >

Please make sure these check boxes are checked before submitting

  • ** Squashed Commits **
  • ** All Tests Passed ** - mvn clean test -P default

** PR review process **

  • Requires one +1 from a reviewer
  • Repository owners will merge your PR once it is approved.

String value2 = null;
keyValueRequest.setKey(key1, value1);
keyValueRequest.setKey(key2, value2);
assertEquals("=value1&key2=", keyValueRequest.getBody());
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@kevin-mcgoldrick Is this the expected output from getBody when either key or value is null? Or shall I change https://github.com/intuit/Tank/blob/master/agent/agent_common/src/main/java/com/intuit/tank/http/keyvalue/KeyValueRequest.java#L69 to ignore the key-value if either of them is null?

String value2 = null;
keyValueRequest.setKey(key1, value1);
keyValueRequest.setKey(key2, value2);
assertEquals("=value1&key2=", keyValueRequest.getBody());
Copy link
Contributor Author

@girijasameera girijasameera Oct 11, 2021

Choose a reason for hiding this comment

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

@kevin-mcgoldrick kevin-mcgoldrick merged commit e294851 into intuit:master Oct 12, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants