-
Notifications
You must be signed in to change notification settings - Fork 10
Apache Client Bug Fix #694
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,26 +6,6 @@ import spock.lang.Specification | |
|
||
class ApacheClientTest extends Specification { | ||
|
||
def "convertMapToHeader works"() { | ||
given: | ||
def headerMap = [ | ||
"key": "value", | ||
"name": "dogCow", | ||
"first": "last" | ||
] | ||
def bhArr = [ | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Would it be worth commenting these tests and having an item to uncomment them in the devex/opex backlog in the future when we get bumped to a bug free version? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @jcrichlake I think that's a good idea There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Good thought. Since the There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Gotcha, thanks for clarifying |
||
new BasicHeader("key", "value"), | ||
new BasicHeader("name", "dogCow"), | ||
new BasicHeader("first", "last") | ||
] | ||
|
||
when: | ||
def actual = ApacheClient.getInstance().convertMapToHeader(headerMap) | ||
|
||
then: | ||
actual.toString() == bhArr.toString() | ||
} | ||
|
||
def "Http request with error"() { | ||
given: | ||
def httpClient = ApacheClient.getInstance() | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If we changed our code, do we need to also downgrade? Or can we keep the latest version?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Edit: I misinterpreted the question the first time. The answer is Yes. The reason is that there were two bugs. One which involved the incompatibility of the import, which blew the POST request when executed. And two, the
invalid proxy
error that the client throws. The invalid proxy error was discovered after I fixed the issue with the import.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh, I see.
I'm a little confused about the header issue. What exactly is wrong with the headers? Maybe I could pair with you on this?