Fix docker run command 13/86813/1
authorLuis Gomez <ecelgp@gmail.com>
Wed, 8 Jan 2020 23:11:38 +0000 (15:11 -0800)
committerLuis Gomez <ecelgp@gmail.com>
Wed, 8 Jan 2020 23:11:38 +0000 (15:11 -0800)
USER_HOME is reserved for robot image home path.

Change-Id: I991e453173f1a41fd80c24741002e7ad37603e60
Signed-off-by: Luis Gomez <ecelgp@gmail.com>
csit/suites/netconf/KeyAuth/keyauth.robot

index 6ad65c4887131f245ce2c9f01799202611b10d03..04d6bdd73648be572dea9ed38308ab56c944b3b5 100644 (file)
@@ -64,7 +64,7 @@ Run Netopeer Docker Container
     SSHLibrary.Put File    ${CURDIR}/../../../variables/netconf/KeyAuth/datastore.xml    .
     SSHLibrary.Put File    ${CURDIR}/../../../variables/netconf/KeyAuth/sb-rsa-key.pub    .
     Builtin.Set Suite Variable    ${netopeer_conn_id}
-    ${stdout}    ${stderr}    ${rc}=    SSHLibrary.Execute Command    docker run -dt -p ${netopeer_port}:830 -v ${USER_HOME}/datastore.xml:/usr/local/etc/netopeer/cfgnetopeer/datastore.xml -v ${USER_HOME}/sb-rsa-key.pub:/root/RSA.pub sdnhub/netopeer netopeer-server -v 3    return_stdout=True    return_stderr=True
+    ${stdout}    ${stderr}    ${rc}=    SSHLibrary.Execute Command    docker run -dt -p ${netopeer_port}:830 -v /home/${TOOLS_SYSTEM_USER}/datastore.xml:/usr/local/etc/netopeer/cfgnetopeer/datastore.xml -v /home/${TOOLS_SYSTEM_USER}/sb-rsa-key.pub:/root/RSA.pub sdnhub/netopeer netopeer-server -v 3    return_stdout=True    return_stderr=True
     ...    return_rc=True
     ${stdout}    ${stderr}    ${rc}=    SSHLibrary.Execute Command    docker ps    return_stdout=True    return_stderr=True
     ...    return_rc=True