aboutsummaryrefslogtreecommitdiffstats
path: root/test/mocks/netconf-pnp-simulator/engine/entrypoint.sh
diff options
context:
space:
mode:
authorebo <eliezio.oliveira@est.tech>2020-03-01 23:41:37 +0000
committerMorgan Richomme <morgan.richomme@orange.com>2020-03-04 07:39:01 +0000
commit080e04538cbaff52dc46c0b3208b9f60f3479ba7 (patch)
tree741a3030db7a39887416eec377820d56514ceb3f /test/mocks/netconf-pnp-simulator/engine/entrypoint.sh
parent76c43bfd668d4f112a3845c631459643e405304a (diff)
Fixed the SSH configuration of user 'netconf'
The actual SSH configuration is stored in Sysrepo and not as ordinary ~netconf/.ssh files. Issue-ID: INT-1124 Change-Id: I7e16e09a20ac6f2d52c8958550603935b6790283 Signed-off-by: ebo <eliezio.oliveira@est.tech>
Diffstat (limited to 'test/mocks/netconf-pnp-simulator/engine/entrypoint.sh')
-rwxr-xr-xtest/mocks/netconf-pnp-simulator/engine/entrypoint.sh7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/mocks/netconf-pnp-simulator/engine/entrypoint.sh b/test/mocks/netconf-pnp-simulator/engine/entrypoint.sh
index 951ca474b..48a5e5a40 100755
--- a/test/mocks/netconf-pnp-simulator/engine/entrypoint.sh
+++ b/test/mocks/netconf-pnp-simulator/engine/entrypoint.sh
@@ -28,6 +28,7 @@ set -o xtrace
export PATH=/opt/bin:/usr/local/bin:/usr/bin:/bin
CONFIG=/config
+SSH_CONFIG=$CONFIG/ssh
TLS_CONFIG=$CONFIG/tls
MODELS_CONFIG=$CONFIG/modules
KEY_PATH=/opt/etc/keystored/keys
@@ -55,6 +56,11 @@ find_executable() {
done
}
+configure_ssh()
+{
+ sysrepocfg --datastore=startup --format=xml ietf-system --import=$SSH_CONFIG/load_auth_pubkey.xml
+}
+
configure_tls()
{
cp $TLS_CONFIG/server_key.pem $KEY_PATH
@@ -126,6 +132,7 @@ create_python_venv()
echo $env_dir
}
+configure_ssh
configure_tls
configure_modules