You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@stratos.apache.org by im...@apache.org on 2014/10/27 15:16:44 UTC

[40/50] [abbrv] git commit: Completed decrypt password test

Completed decrypt password test


Project: http://git-wip-us.apache.org/repos/asf/stratos/repo
Commit: http://git-wip-us.apache.org/repos/asf/stratos/commit/5493e997
Tree: http://git-wip-us.apache.org/repos/asf/stratos/tree/5493e997
Diff: http://git-wip-us.apache.org/repos/asf/stratos/diff/5493e997

Branch: refs/heads/master
Commit: 5493e9976709702d49c06648422a48ea276527e5
Parents: a11df3e
Author: Chamila de Alwis <ch...@wso2.com>
Authored: Tue Oct 21 01:13:18 2014 +0530
Committer: Chamila de Alwis <ch...@wso2.com>
Committed: Tue Oct 21 01:13:18 2014 +0530

----------------------------------------------------------------------
 tools/python_cartridgeagent/test/asynctest.txt | 2 +-
 tools/python_cartridgeagent/test/test_util.py  | 8 ++++----
 2 files changed, 5 insertions(+), 5 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/stratos/blob/5493e997/tools/python_cartridgeagent/test/asynctest.txt
----------------------------------------------------------------------
diff --git a/tools/python_cartridgeagent/test/asynctest.txt b/tools/python_cartridgeagent/test/asynctest.txt
index 08b3931..4032a53 100644
--- a/tools/python_cartridgeagent/test/asynctest.txt
+++ b/tools/python_cartridgeagent/test/asynctest.txt
@@ -1 +1 @@
-1413809843291.4761
\ No newline at end of file
+1413834107419.9700
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/stratos/blob/5493e997/tools/python_cartridgeagent/test/test_util.py
----------------------------------------------------------------------
diff --git a/tools/python_cartridgeagent/test/test_util.py b/tools/python_cartridgeagent/test/test_util.py
index fd38c3e..63e93cf 100644
--- a/tools/python_cartridgeagent/test/test_util.py
+++ b/tools/python_cartridgeagent/test/test_util.py
@@ -46,10 +46,10 @@ def test_decrypt_password():
     #     return mocklog
     #
     # monkeypatch.delattr("LogFactory().get_log")
+    # TODO: enable logging in cartridgeagentutils
 
     plain_password = "plaintext"
-    secret_key = "secret"
-    encrypted_password= "v5UltRskmSGbwTIbXym7jQ=="
-    b64encoded_encrypted_password = "djVVbHRSc2ttU0did1RJYlh5bTdqUT09"
+    secret_key = "tvnw63ufg9gh5111"
+    encrypted_password= "jP1lZ5xMlpLzu8MbY2Porg=="
 
-    assert cartridgeagentutils.decrypt_password(b64encoded_encrypted_password, secret_key) == plain_password, "Password decryption failed"
\ No newline at end of file
+    assert cartridgeagentutils.decrypt_password(encrypted_password, secret_key) == plain_password, "Password decryption failed"
\ No newline at end of file