OLD | NEW |
1 # Copyright (C) 2009 Google Inc. All rights reserved. | 1 # Copyright (C) 2009 Google Inc. All rights reserved. |
2 # | 2 # |
3 # Redistribution and use in source and binary forms, with or without | 3 # Redistribution and use in source and binary forms, with or without |
4 # modification, are permitted provided that the following conditions are | 4 # modification, are permitted provided that the following conditions are |
5 # met: | 5 # met: |
6 # | 6 # |
7 # * Redistributions of source code must retain the above copyright | 7 # * Redistributions of source code must retain the above copyright |
8 # notice, this list of conditions and the following disclaimer. | 8 # notice, this list of conditions and the following disclaimer. |
9 # * Redistributions in binary form must reproduce the above | 9 # * Redistributions in binary form must reproduce the above |
10 # copyright notice, this list of conditions and the following disclaimer | 10 # copyright notice, this list of conditions and the following disclaimer |
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
70 "atyp"<blob>="form" | 70 "atyp"<blob>="form" |
71 "cdat"<timedate>=0x32303039303832353233353231365A00 "20090825235216Z\000" | 71 "cdat"<timedate>=0x32303039303832353233353231365A00 "20090825235216Z\000" |
72 "crtr"<uint32>=<NULL> | 72 "crtr"<uint32>=<NULL> |
73 "cusi"<sint32>=<NULL> | 73 "cusi"<sint32>=<NULL> |
74 "desc"<blob>="Web form password" | 74 "desc"<blob>="Web form password" |
75 "icmt"<blob>="default" | 75 "icmt"<blob>="default" |
76 "invi"<sint32>=<NULL> | 76 "invi"<sint32>=<NULL> |
77 "mdat"<timedate>=0x32303039303930393137323635315A00 "20090909172651Z\000" | 77 "mdat"<timedate>=0x32303039303930393137323635315A00 "20090909172651Z\000" |
78 "nega"<sint32>=<NULL> | 78 "nega"<sint32>=<NULL> |
79 "path"<blob>=<NULL> | 79 "path"<blob>=<NULL> |
80 "port"<uint32>=0x00000000 | 80 "port"<uint32>=0x00000000 |
81 "prot"<blob>=<NULL> | 81 "prot"<blob>=<NULL> |
82 "ptcl"<uint32>="htps" | 82 "ptcl"<uint32>="htps" |
83 "scrp"<sint32>=<NULL> | 83 "scrp"<sint32>=<NULL> |
84 "sdmn"<blob>=<NULL> | 84 "sdmn"<blob>=<NULL> |
85 "srvr"<blob>="bugs.webkit.org" | 85 "srvr"<blob>="bugs.webkit.org" |
86 "type"<uint32>=<NULL> | 86 "type"<uint32>=<NULL> |
87 password: "SECRETSAUCE" | 87 password: "SECRETSAUCE" |
88 """ | 88 """ |
89 | 89 |
90 def test_keychain_lookup_on_non_mac(self): | 90 def test_keychain_lookup_on_non_mac(self): |
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
199 | 199 |
200 @classmethod | 200 @classmethod |
201 def prompt_password(cls, message, repeat=1, raw_input=raw_input): | 201 def prompt_password(cls, message, repeat=1, raw_input=raw_input): |
202 raise AssertionError("should not prompt for password") | 202 raise AssertionError("should not prompt for password") |
203 | 203 |
204 with _TemporaryDirectory(suffix="not_a_git_repo") as temp_dir_path: | 204 with _TemporaryDirectory(suffix="not_a_git_repo") as temp_dir_path: |
205 credentials = FakeCredentials("fake.hostname", cwd=temp_dir_path, ke
yring=MockKeyring()) | 205 credentials = FakeCredentials("fake.hostname", cwd=temp_dir_path, ke
yring=MockKeyring()) |
206 # FIXME: Using read_credentials here seems too broad as higher-prior
ity | 206 # FIXME: Using read_credentials here seems too broad as higher-prior
ity |
207 # credential source could be affected by the user's environment. | 207 # credential source could be affected by the user's environment. |
208 self.assertEqual(credentials.read_credentials(FakeUser), ("test@webk
it.org", "NOMNOMNOM")) | 208 self.assertEqual(credentials.read_credentials(FakeUser), ("test@webk
it.org", "NOMNOMNOM")) |
OLD | NEW |