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

Adding units tests for agent_common module #162

Merged
merged 1 commit into from
Oct 12, 2021

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