Permalink
Browse files

This test fails, and it shouldn't

  • Loading branch information...
1 parent 25dcb20 commit 1030bb3e6117a07c9c0fcb9fbbceecf1df0ecebd David Kowis committed Nov 15, 2013
@@ -38,20 +38,19 @@ class CustomMatcherSpec extends Specification {
}
- void "Doesn't change the tape when replaying an HTTPS connection"() {
+ void "Using a custom matcher, can replay the tape"() {
given:
def proxyConfig = ProxyConfiguration.builder()
.sslEnabled(true)
.tapeRoot(tapeRoot)
- .defaultMode(TapeMode.READ_WRITE)
+ .defaultMode(TapeMode.READ_ONLY)
.defaultMatchRule(customMatchRule)
.build()
def recorder = new Recorder(proxyConfig)
recorder.start("httpBinTape")
when:
- //TODO simple rest client?
def payload = "BUTTS"
HttpsURLConnection conn = new URL("https://httpbin.org/post").openConnection()
conn.setDoOutput(true)

0 comments on commit 1030bb3

Please sign in to comment.