• Home
  • Raw
  • Download

Lines Matching +full:auth +full:- +full:tests

3 import tests
28 password = tests.gen_password()
29 handler = tests.http_reflect_with_auth(
32 with tests.server_request(handler, request_count=3) as uri:
43 password = tests.gen_password()
44 handler = tests.http_reflect_with_auth(
47 with tests.server_request(handler, request_count=4) as uri:
62 password1 = tests.gen_password()
63 password2 = tests.gen_password()
65 handler = tests.http_reflect_with_auth(
68 with tests.server_request(handler, request_count=7) as uri:
83 password = tests.gen_password()
84 handler = tests.http_reflect_with_auth(
87 with tests.server_request(handler, request_count=3) as uri:
99 password = tests.gen_password()
101 handler = tests.http_reflect_with_auth(
106 with tests.server_request(handler, request_count=5) as uri:
109 info = httplib2._parse_www_authenticate(response1, "authentication-info")
114 info2 = httplib2._parse_www_authenticate(response2, "authentication-info")
118 info3 = httplib2._parse_www_authenticate(response3, "authentication-info")
126 password = tests.gen_password()
129 handler = tests.http_reflect_with_auth(
135 with tests.server_request(handler, request_count=4) as uri:
140 requests[0][1].headers, "www-authenticate"
148 requests[2][1].headers, "www-authenticate"
161 ({"www-authenticate": ""}, {}),
164 "www-authenticate": 'Test realm="test realm" , foo=foo ,bar="bar", baz=baz,qux=qux'
177 {"www-authenticate": 'T*!%#st realm=to*!%#en, to*!%#en="quoted string"'},
181 {"www-authenticate": 'Test realm="a \\"test\\" realm"'},
184 ({"www-authenticate": 'Basic realm="me"'}, {"basic": {"realm": "me"}}),
186 {"www-authenticate": 'Basic realm="me", algorithm="MD5"'},
190 {"www-authenticate": 'Basic realm="me", algorithm=MD5'},
194 {"www-authenticate": 'Basic realm="me",other="fred" '},
197 ({"www-authenticate": 'Basic REAlm="me" '}, {"basic": {"realm": "me"}}),
200 …"www-authenticate": 'Digest realm="digest1", qop="auth,auth-int", nonce="7102dd2", opaque="e9517f"'
205 "qop": "auth,auth-int",
214 …"www-authenticate": 'Digest realm="multi-d", nonce="8b11d0f6", opaque="cc069c" Basic realm="multi-
217 "digest": {"realm": "multi-d", "nonce": "8b11d0f6", "opaque": "cc069c"},
218 "basic": {"realm": "multi-b"},
223 …# ({'www-authenticate': 'Digest realm="2-comma-d", qop="auth-int", nonce="c0c8ff1", Basic realm="2
224 # {'digest': {'realm': '2-comma-d', 'qop': 'auth-int', 'nonce': 'c0c8ff1'},
225 # 'basic': {'realm': '2-comma-b'}}),
228 …# ({'www-authenticate': 'Digest realm="com3d", Basic realm="com3b", WSSE realm="com3w", profile="t…
232 # ({'www-authenticate':
233 # 'Digest realm="brig", qop \t=\t"\tauth,auth-int", nonce="(*)&^&$%#",opaque="5ccc"' +
235 … # {'digest': {'realm': 'brig', 'qop': 'auth,auth-int', 'nonce': '(*)&^&$%#', 'opaque': '5ccc'},
241 …"www-authenticate": 'Digest realm="myrealm", nonce="KBAA=3", algorithm=MD5, qop="auth", stale=true'
248 "qop": "auth",
268 # TODO: test (and fix) header value 'barbqwnbm-bb...:asd' leads to dead loop
269 with tests.assert_raises(httplib2.MalformedHeader):
272 … "www-authenticate": 'OAuth "Facebook Platform" "invalid_token" "Invalid OAuth access token."'
283 "www-authenticate": 'Digest realm="myrealm", nonce="KBAA=35", algorithm=MD5, qop="auth"'
296 'qop=auth, nc=00000001, cnonce="33033375ec278a46"'
307 "www-authenticate": 'Digest realm="myrealm", nonce="30352fd", algorithm=MD5, '
308 'qop="auth", opaque="atestopaque"'
320 + ', response="a1fab43041f8f3789a447f48018bee48", qop=auth, nc=00000001, '
332 response["www-authenticate"] = (
334 'algorithm=MD5, qop="auth", stale=true'
351 response["www-authenticate"] = (
353 'algorithm=MD5, qop="auth", stale=true'
355 response["authentication-info"] = 'nextnonce="fred"'
368 "d36e316282959a9ed4c89851497a717f", "2003-12-15T14:43:07Z", "taadtaadpstcsm"