summaryrefslogtreecommitdiff
path: root/t/test-custodian-parser.rb
diff options
context:
space:
mode:
authorSteve Kemp <steve@steve.org.uk>2017-04-10 10:41:50 +0300
committerSteve Kemp <steve@steve.org.uk>2017-04-10 10:41:50 +0300
commit69ac6cfbdaf9cbb25a0f73561d92a3d69accb434 (patch)
tree0eac0050f119673f421143be449f49f9cdf3c2b8 /t/test-custodian-parser.rb
parent334c67fa0e39f657dfe59b4a6c6445de20d5706b (diff)
Use standard URL username/password holders.10-support-http-basic-auth
Rather than: with auth 'username:password' We use: http://user:pass@example.com/
Diffstat (limited to 't/test-custodian-parser.rb')
-rwxr-xr-xt/test-custodian-parser.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/t/test-custodian-parser.rb b/t/test-custodian-parser.rb
index 843dc80..2239503 100755
--- a/t/test-custodian-parser.rb
+++ b/t/test-custodian-parser.rb
@@ -438,12 +438,12 @@ EOF
# test data
#
data = {
- 'http://example must run http with auth "bob:steve".' =>
+ 'http://bob:steve@example must run http.' =>
{ username: 'bob', password: 'steve'},
- 'http://example must run http with auth "stee\':steve".' =>
+ 'http://stee\':steve@example must run http.' =>
{ username: 'stee\'', password: 'steve'},
- 'http://example must run http with auth \'e"e:pa$$w0rd\'.' =>
- { username: 'e"e', password: 'pa$$w0rd'},
+ 'http://e\'e:pa$$w0rd@example must run http.' =>
+ { username: 'e\'e', password: 'pa$$w0rd'},
}
data.each do |str, hash |