Commits

Marcin Kasperski committed ed14938

update

  • Participants
  • Parent commits 6b14ed9

Comments (0)

Files changed (1)

t/11-parse_password_out_of_output.t

 END
     "passwort",
     "simple password parse");
+
+is(
+    Passwd::Keyring::OSXKeychain::_parse_password_from_find_output(<<'END'),
+keychain: "/Users/myUser/Library/Keychains/login.keychain"
+class: "genp"
+attributes:
+    0x00000007 <blob>="server.com"
+    0x00000008 <blob>=<NULL>
+    "acct"<blob>="userIDtoServer.com"
+    "cdat"<timedate>=0x33313024C53131693134253345315F00  "20041201142351A\123"
+    "crtr"<uint32>=<NULL>
+    "cusi"<sint32>=<NULL>
+    "desc"<blob>=<NULL>
+    "gena"<blob>=<NULL>
+    "icmt"<blob>=<NULL>
+    "invi"<sint32>=<NULL>
+    "mdat"<timedate>=0x33313024C53131693134253345315F00  "20041201142351A\123"
+    "nega"<sint32>=<NULL>
+    "prot"<blob>=<NULL>
+    "scrp"<sint32>=<NULL>
+    "svce"<blob>="server.com"
+    "type"<uint32>=<NULL>
+password: 
+END
+    "",
+    "empty password parse");
+
+is(
+    Passwd::Keyring::OSXKeychain::_parse_password_from_find_output(<<'END'),
+keychain: "/Users/myUser/Library/Keychains/login.keychain"
+class: "genp"
+attributes:
+    0x00000007 <blob>="server.com"
+    0x00000008 <blob>=<NULL>
+    "acct"<blob>="userIDtoServer.com"
+    "cdat"<timedate>=0x33313024C53131693134253345315F00  "20041201142351A\123"
+    "crtr"<uint32>=<NULL>
+    "cusi"<sint32>=<NULL>
+    "desc"<blob>=<NULL>
+    "gena"<blob>=<NULL>
+    "icmt"<blob>=<NULL>
+    "invi"<sint32>=<NULL>
+    "mdat"<timedate>=0x33313024C53131693134253345315F00  "20041201142351A\123"
+    "nega"<sint32>=<NULL>
+    "prot"<blob>=<NULL>
+    "scrp"<sint32>=<NULL>
+    "svce"<blob>="server.com"
+    "type"<uint32>=<NULL>
+password: $FEA0997321"lalala"
+END
+    "to write what is there",
+    "hexified password parse");
+
+
+# $1234abcdef