)]}'
{"functionaltests/api/v1/functional/test_secrets.py":[{"author":{"_account_id":9914,"name":"Ade Lee","email":"alee@redhat.com","username":"alee"},"change_message_id":"ea9c3468183f116b83d2fb8820d6fcf6990abb2b","unresolved":false,"context_lines":[{"line_number":1014,"context_line":""},{"line_number":1015,"context_line":"        # check that returned key can be parsed"},{"line_number":1016,"context_line":"        crypto.load_privatekey(crypto.FILETYPE_PEM, get_resp.content)"},{"line_number":1017,"context_line":"        # check that returned key is same as original"},{"line_number":1018,"context_line":"        self.assertEqual(pem, get_resp.content)"},{"line_number":1019,"context_line":""},{"line_number":1020,"context_line":"    @testcase.attr(\u0027positive\u0027)"}],"source_content_type":"text/x-python","patch_set":2,"id":"9aa53dc9_2b644947","line":1017,"updated":"2015-04-07 19:20:58.000000000","message":"right now, we return binary with no headers, basically DER.\n\nSo you need to validate using crypto.FILETYPE_DER","commit_id":"e9d746c6a74e586b940ee3b71c09b3ecbbe7822c"},{"author":{"_account_id":11561,"name":"Dave McCowan","email":"dmccowan@cisco.com","username":"dave-mccowan"},"change_message_id":"6206d9d1599fdb0709d167644559e54c384a86c4","unresolved":false,"context_lines":[{"line_number":1014,"context_line":""},{"line_number":1015,"context_line":"        # check that returned key can be parsed"},{"line_number":1016,"context_line":"        crypto.load_privatekey(crypto.FILETYPE_PEM, get_resp.content)"},{"line_number":1017,"context_line":"        # check that returned key is same as original"},{"line_number":1018,"context_line":"        self.assertEqual(pem, get_resp.content)"},{"line_number":1019,"context_line":""},{"line_number":1020,"context_line":"    @testcase.attr(\u0027positive\u0027)"}],"source_content_type":"text/x-python","patch_set":2,"id":"9aa53dc9_4f1e6b64","line":1017,"in_reply_to":"9aa53dc9_2b644947","updated":"2015-04-08 03:15:40.000000000","message":"Done","commit_id":"e9d746c6a74e586b940ee3b71c09b3ecbbe7822c"},{"author":{"_account_id":9914,"name":"Ade Lee","email":"alee@redhat.com","username":"alee"},"change_message_id":"ea9c3468183f116b83d2fb8820d6fcf6990abb2b","unresolved":false,"context_lines":[{"line_number":1016,"context_line":"        crypto.load_privatekey(crypto.FILETYPE_PEM, get_resp.content)"},{"line_number":1017,"context_line":"        # check that returned key is same as original"},{"line_number":1018,"context_line":"        self.assertEqual(pem, get_resp.content)"},{"line_number":1019,"context_line":""},{"line_number":1020,"context_line":"    @testcase.attr(\u0027positive\u0027)"},{"line_number":1021,"context_line":"    def test_secret_create_and_get_with_pkcs8_key(self):"},{"line_number":1022,"context_line":"        \"\"\"Create and get secret from a pkcs8 private key.\"\"\""}],"source_content_type":"text/x-python","patch_set":2,"id":"9aa53dc9_0b5bc588","line":1019,"updated":"2015-04-07 19:20:58.000000000","message":"see note below ..","commit_id":"e9d746c6a74e586b940ee3b71c09b3ecbbe7822c"},{"author":{"_account_id":11561,"name":"Dave McCowan","email":"dmccowan@cisco.com","username":"dave-mccowan"},"change_message_id":"6206d9d1599fdb0709d167644559e54c384a86c4","unresolved":false,"context_lines":[{"line_number":1016,"context_line":"        crypto.load_privatekey(crypto.FILETYPE_PEM, get_resp.content)"},{"line_number":1017,"context_line":"        # check that returned key is same as original"},{"line_number":1018,"context_line":"        self.assertEqual(pem, get_resp.content)"},{"line_number":1019,"context_line":""},{"line_number":1020,"context_line":"    @testcase.attr(\u0027positive\u0027)"},{"line_number":1021,"context_line":"    def test_secret_create_and_get_with_pkcs8_key(self):"},{"line_number":1022,"context_line":"        \"\"\"Create and get secret from a pkcs8 private key.\"\"\""}],"source_content_type":"text/x-python","patch_set":2,"id":"9aa53dc9_ef29bf8a","line":1019,"in_reply_to":"9aa53dc9_0b5bc588","updated":"2015-04-08 03:15:40.000000000","message":"Done","commit_id":"e9d746c6a74e586b940ee3b71c09b3ecbbe7822c"},{"author":{"_account_id":9914,"name":"Ade Lee","email":"alee@redhat.com","username":"alee"},"change_message_id":"ea9c3468183f116b83d2fb8820d6fcf6990abb2b","unresolved":false,"context_lines":[{"line_number":1030,"context_line":""},{"line_number":1031,"context_line":"        # prove that original secret can be parsed (OpenSSL v9.8 can\u0027t do)"},{"line_number":1032,"context_line":"        # crypto.load_privatekey(crypto.FILETYPE_PEM, private_key_pkcs8)"},{"line_number":1033,"context_line":""},{"line_number":1034,"context_line":"        resp, secret_ref \u003d self.behaviors.create_secret(test_model)"},{"line_number":1035,"context_line":"        self.assertEqual(201, resp.status_code)"},{"line_number":1036,"context_line":""}],"source_content_type":"text/x-python","patch_set":2,"id":"9aa53dc9_cb7ddd1d","line":1033,"updated":"2015-04-07 19:20:58.000000000","message":"If you wrap using base64.encodestring(), you do not lose the \\n\u0027s and will be able to do the verification.","commit_id":"e9d746c6a74e586b940ee3b71c09b3ecbbe7822c"},{"author":{"_account_id":11561,"name":"Dave McCowan","email":"dmccowan@cisco.com","username":"dave-mccowan"},"change_message_id":"6206d9d1599fdb0709d167644559e54c384a86c4","unresolved":false,"context_lines":[{"line_number":1030,"context_line":""},{"line_number":1031,"context_line":"        # prove that original secret can be parsed (OpenSSL v9.8 can\u0027t do)"},{"line_number":1032,"context_line":"        # crypto.load_privatekey(crypto.FILETYPE_PEM, private_key_pkcs8)"},{"line_number":1033,"context_line":""},{"line_number":1034,"context_line":"        resp, secret_ref \u003d self.behaviors.create_secret(test_model)"},{"line_number":1035,"context_line":"        self.assertEqual(201, resp.status_code)"},{"line_number":1036,"context_line":""}],"source_content_type":"text/x-python","patch_set":2,"id":"9aa53dc9_2f19e779","line":1033,"in_reply_to":"9aa53dc9_cb7ddd1d","updated":"2015-04-08 03:15:40.000000000","message":"Done","commit_id":"e9d746c6a74e586b940ee3b71c09b3ecbbe7822c"},{"author":{"_account_id":9914,"name":"Ade Lee","email":"alee@redhat.com","username":"alee"},"change_message_id":"ea9c3468183f116b83d2fb8820d6fcf6990abb2b","unresolved":false,"context_lines":[{"line_number":1043,"context_line":""},{"line_number":1044,"context_line":"        # check that returned key is same as original"},{"line_number":1045,"context_line":"        self.assertEqual(private_key_pkcs8, get_resp.content)"},{"line_number":1046,"context_line":""},{"line_number":1047,"context_line":"class SecretsPagingTestCase(base.PagingTestCase):"},{"line_number":1048,"context_line":""},{"line_number":1049,"context_line":"    def setUp(self):"}],"source_content_type":"text/x-python","patch_set":2,"id":"9aa53dc9_8bc5953d","line":1046,"updated":"2015-04-07 19:20:58.000000000","message":"This will not work.  We always return secrets as binary right now, so get_resp.content is binary - with no headers.\n\nYou need to do something like utils.to_pem(...., False)\nand then use test_utils.is_private_key_valid()","commit_id":"e9d746c6a74e586b940ee3b71c09b3ecbbe7822c"},{"author":{"_account_id":11561,"name":"Dave McCowan","email":"dmccowan@cisco.com","username":"dave-mccowan"},"change_message_id":"6206d9d1599fdb0709d167644559e54c384a86c4","unresolved":false,"context_lines":[{"line_number":1043,"context_line":""},{"line_number":1044,"context_line":"        # check that returned key is same as original"},{"line_number":1045,"context_line":"        self.assertEqual(private_key_pkcs8, get_resp.content)"},{"line_number":1046,"context_line":""},{"line_number":1047,"context_line":"class SecretsPagingTestCase(base.PagingTestCase):"},{"line_number":1048,"context_line":""},{"line_number":1049,"context_line":"    def setUp(self):"}],"source_content_type":"text/x-python","patch_set":2,"id":"9aa53dc9_cf203b9e","line":1046,"in_reply_to":"9aa53dc9_8bc5953d","updated":"2015-04-08 03:15:40.000000000","message":"Done","commit_id":"e9d746c6a74e586b940ee3b71c09b3ecbbe7822c"},{"author":{"_account_id":10873,"name":"Juan Antonio Osorio Robles","email":"jaosorior@redhat.com","username":"ejuaoso"},"change_message_id":"8057ba395d175fb2834ff390d312aecb88946741","unresolved":false,"context_lines":[{"line_number":1016,"context_line":""},{"line_number":1017,"context_line":"        original_pkey \u003d crypto.load_privatekey(crypto.FILETYPE_PEM, pem)"},{"line_number":1018,"context_line":"        original_pem \u003d crypto.dump_privatekey(crypto.FILETYPE_PEM,"},{"line_number":1019,"context_line":"                                              original_pkey)"},{"line_number":1020,"context_line":""},{"line_number":1021,"context_line":"        resp, secret_ref \u003d self.behaviors.create_secret(test_model)"},{"line_number":1022,"context_line":"        self.assertEqual(201, resp.status_code)"}],"source_content_type":"text/x-python","patch_set":5,"id":"9aa53dc9_a6401d35","line":1019,"updated":"2015-04-10 09:26:00.000000000","message":"why is this being done? Since you already have the \"original_pem\" in the pem variable, since to get \"pem\" you use the get_openssl_private_key which you defined above, which actually does a dump_privatekey","commit_id":"5715d3ef2a504052e791b1d44db449725fa08bda"}]}
