summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorroot <root@yawns.default.skx.uk0.bigv.io>2016-02-10 12:07:42 +0000
committerroot <root@yawns.default.skx.uk0.bigv.io>2016-02-10 12:07:42 +0000
commit1bda31480aa43534313e0557c0d484caaceb4a08 (patch)
tree88b15999ef2cfef95ca456ad7e28a37151f06699 /lib
parent4dd406dd29b166d98485a09ef25ec52867bd5530 (diff)
Don't allow limiting protocl on HTTP/HTTPS tests.
We cannot allow HTTP/HTTPS to be limited by protocol, such as IPv4-only or IPv6-only. Raise an error in the parser if this is attempted. Added test-case to confirm, and this closes #12488.
Diffstat (limited to 'lib')
-rw-r--r--lib/custodian/protocoltest/http.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/custodian/protocoltest/http.rb b/lib/custodian/protocoltest/http.rb
index 05e71ae..4632630 100644
--- a/lib/custodian/protocoltest/http.rb
+++ b/lib/custodian/protocoltest/http.rb
@@ -143,6 +143,12 @@ module Custodian
if line =~ /with host header '([^']+)'/
@host_override = $1.dup
end
+
+ # We can't test on IPv4-only or IPv6-only basis
+ if line =~ /ipv[46]_only/i
+ raise ArgumentError, "We cannot limit HTTP/HTTPS tests to IPv4/IPv6-only"
+ end
+
end