Revision: 101
Author: janne.t.harkonen
Date: Sun Nov  7 23:24:19 2010
Log: Remove permissions in the test setup to ensure they are removed
http://code.google.com/p/robotframework-sshlibrary/source/detail?r=101

Modified:
 /trunk/atest/login_with_public_key.txt
 /trunk/atest/resources/ssh_library_resources.txt

=======================================
--- /trunk/atest/login_with_public_key.txt      Sun Nov  7 23:16:55 2010
+++ /trunk/atest/login_with_public_key.txt      Sun Nov  7 23:24:19 2010
@@ -25,7 +25,9 @@
Run Keyword And Expect Error Login with public key failed Login With Public Key ${PUBKEY_USERNAME} ${INVALID PUBKEY FILE} ${PUBKEY_PASSWORD}

 Login With Inaccessible Public Key
+ [Setup] Run Keywords Remove Read Permission Open Connection To Test Host Run Keyword And Expect Error Could not read key file '${inaccessiblepubkeyfile}' Login With Public Key ${PUBKEY_USERNAME} ${INACCESSIBLE PUBKEY FILE} ${PUBKEY_PASSWORD}
+    [Teardown]  Run Keywords  Grant Read Permission  Close All Connections


 *** Keywords ***
@@ -37,3 +39,9 @@
 Fail And Mark Noncritical
     Remove Tags  regression
Fail This test can be run only if an account with public key authentication has been set up. See Wiki for details.
+
+Remove Read Permission
+    Run  chmod -r ${INACCESSIBLE_PUBKEY_FILE}
+
+Grant Read Permission
+    Run  chmod +r ${INACCESSIBLE_PUBKEY_FILE}
=======================================
--- /trunk/atest/resources/ssh_library_resources.txt Tue Nov 2 07:12:24 2010 +++ /trunk/atest/resources/ssh_library_resources.txt Sun Nov 7 23:24:19 2010
@@ -33,6 +33,9 @@
     Close All Connections

 Login As Valid User
-    Open Connection  ${HOST}
+    Open Connection To Test Host
     Login  ${USERNAME}  ${PASSWORD}

+Open Connection To Test Host
+    Open Connection  ${HOST}
+

Reply via email to