aboutsummaryrefslogtreecommitdiffstats
path: root/test/mocks/pnfsimulator/netopeer_tls_cfg
diff options
context:
space:
mode:
authorWojciech Sliwka <wojciech.sliwka@nokia.com>2019-07-10 13:48:52 +0200
committerGary Wu <gary.wu@futurewei.com>2019-07-19 17:18:49 +0000
commit032ff22ef20b59950a8b5fae8d2ba6d03e93ac93 (patch)
tree98058dcf2726b3f432cecffc42bd7cbccca3555e /test/mocks/pnfsimulator/netopeer_tls_cfg
parent79c9b78adb7fbc943fd2aee7d333fd3cadf5b8f3 (diff)
Opensourcing new version of Simulator
Additional info in README.md Issue-ID: INT-1134 Signed-off-by: Wojciech Sliwka <wojciech.sliwka@nokia.com> Change-Id: I06d41fd3f361b7a451b30b702882810e4136a129
Diffstat (limited to 'test/mocks/pnfsimulator/netopeer_tls_cfg')
-rwxr-xr-xtest/mocks/pnfsimulator/netopeer_tls_cfg/entrypoint.sh2
-rw-r--r--test/mocks/pnfsimulator/netopeer_tls_cfg/mynetconf.data10
-rw-r--r--test/mocks/pnfsimulator/netopeer_tls_cfg/mynetconf.yang26
-rw-r--r--test/mocks/pnfsimulator/netopeer_tls_cfg/test_server_key.pem27
-rw-r--r--test/mocks/pnfsimulator/netopeer_tls_cfg/test_server_key.pem.pub9
-rwxr-xr-xtest/mocks/pnfsimulator/netopeer_tls_cfg/update_tls.sh32
6 files changed, 0 insertions, 106 deletions
diff --git a/test/mocks/pnfsimulator/netopeer_tls_cfg/entrypoint.sh b/test/mocks/pnfsimulator/netopeer_tls_cfg/entrypoint.sh
deleted file mode 100755
index 45b30a1a1..000000000
--- a/test/mocks/pnfsimulator/netopeer_tls_cfg/entrypoint.sh
+++ /dev/null
@@ -1,2 +0,0 @@
-nohup /netopeer_tls_cfg/update_tls.sh &
-exec /usr/bin/supervisord -c "/etc/supervisord.conf"
diff --git a/test/mocks/pnfsimulator/netopeer_tls_cfg/mynetconf.data b/test/mocks/pnfsimulator/netopeer_tls_cfg/mynetconf.data
deleted file mode 100644
index 63872eef9..000000000
--- a/test/mocks/pnfsimulator/netopeer_tls_cfg/mynetconf.data
+++ /dev/null
@@ -1,10 +0,0 @@
-{
- "mynetconf:netconflist": {
- "netconf": [
- {
- "netconf-id": 3,
- "netconf-param": 3
- }
- ]
- }
-}
diff --git a/test/mocks/pnfsimulator/netopeer_tls_cfg/mynetconf.yang b/test/mocks/pnfsimulator/netopeer_tls_cfg/mynetconf.yang
deleted file mode 100644
index a0c094b40..000000000
--- a/test/mocks/pnfsimulator/netopeer_tls_cfg/mynetconf.yang
+++ /dev/null
@@ -1,26 +0,0 @@
-module mynetconf {
- yang-version 1.1;
- namespace "urn:mynetconf:test";
-
- prefix nft;
-
- organization "mynetconf";
- contact "my netconf address";
- description "yang model for mynetconf";
- revision "2019-03-01"{
- description "initial version";
- }
-
- container netconflist{
- list netconf{
- key netconf-id;
- leaf netconf-id{
- type uint16;
- }
- leaf netconf-param {
- type uint32;
- }
- }
-
- }
-}
diff --git a/test/mocks/pnfsimulator/netopeer_tls_cfg/test_server_key.pem b/test/mocks/pnfsimulator/netopeer_tls_cfg/test_server_key.pem
deleted file mode 100644
index d61c77bdf..000000000
--- a/test/mocks/pnfsimulator/netopeer_tls_cfg/test_server_key.pem
+++ /dev/null
@@ -1,27 +0,0 @@
------BEGIN RSA PRIVATE KEY-----
-MIIEowIBAAKCAQEAsdI1TBjzX1PgQXFuPCw5/kQwU7qkrhirMcFAXhI8EoXepPa9
-fKAVuMjHW32P6nNzDpnhFe0YGdNloIEN3hJJ87cVOqj4o7zZMbq3zVG2L8As7MTA
-8tYXm2fSC/0rIxxRRemcGUXM0q+4LEACjZj2pOKonaivF5VbhgNjPCO1Jj/TamUc
-0aViE577C9L9EiObGM+bGbabWk/KWKLsvxUc+sKZXaJ7psTVgpggJAkUszlmwOQg
-FiMSR53E9/CAkQYhzGVCmH44Vs6Hzs3RZjOTbce4wr4ongiA5LbPeSNSCFjy9loK
-paE1rtOjkNBVdiNPCQTmLuODXUTKgkeL+9v/OwIDAQABAoIB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QKBgD+HI/syLECyO8UynuEaDD7qPl87PJ/CmZLMxa2/ZZUjhaXAW7CJMaS6
-9PIzsLk33y3O4Qer0wx/tEdfnxMTBJrgGt/lFFdAKhSJroZ45l5apiavg1oZYp89
-jSd0lVxWSmrBjBZLnqOl336gzaBVkBD5ND+XUPdR1UuVQExJlem4
------END RSA PRIVATE KEY-----
diff --git a/test/mocks/pnfsimulator/netopeer_tls_cfg/test_server_key.pem.pub b/test/mocks/pnfsimulator/netopeer_tls_cfg/test_server_key.pem.pub
deleted file mode 100644
index 9ccec4a0c..000000000
--- a/test/mocks/pnfsimulator/netopeer_tls_cfg/test_server_key.pem.pub
+++ /dev/null
@@ -1,9 +0,0 @@
------BEGIN PUBLIC KEY-----
-MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAsdI1TBjzX1PgQXFuPCw5
-/kQwU7qkrhirMcFAXhI8EoXepPa9fKAVuMjHW32P6nNzDpnhFe0YGdNloIEN3hJJ
-87cVOqj4o7zZMbq3zVG2L8As7MTA8tYXm2fSC/0rIxxRRemcGUXM0q+4LEACjZj2
-pOKonaivF5VbhgNjPCO1Jj/TamUc0aViE577C9L9EiObGM+bGbabWk/KWKLsvxUc
-+sKZXaJ7psTVgpggJAkUszlmwOQgFiMSR53E9/CAkQYhzGVCmH44Vs6Hzs3RZjOT
-bce4wr4ongiA5LbPeSNSCFjy9loKpaE1rtOjkNBVdiNPCQTmLuODXUTKgkeL+9v/
-OwIDAQAB
------END PUBLIC KEY-----
diff --git a/test/mocks/pnfsimulator/netopeer_tls_cfg/update_tls.sh b/test/mocks/pnfsimulator/netopeer_tls_cfg/update_tls.sh
deleted file mode 100755
index e0e1ac625..000000000
--- a/test/mocks/pnfsimulator/netopeer_tls_cfg/update_tls.sh
+++ /dev/null
@@ -1,32 +0,0 @@
-#!/bin/bash
-sleep 20
-NETOPEER_CONFIG_PATH='/opt/dev/Netopeer2/server/configuration'
-MOUNT_PATH='/netopeer_tls_cfg'
-KEY_PATH='/usr/local/etc/keystored/keys'
-SUBSCRIBE_APP_PATH='/opt/dev/sysrepo/build/examples/application_changes_example'
-
-# This function uploads test_data and model into netopeer2 server
-upload_yang_data_model()
-{
- sysrepoctl -i -g $MOUNT_PATH/mynetconf.yang
- sleep 5
- echo ' subscribing to mynetconf model.'
- $SUBSCRIBE_APP_PATH mynetconf > /dev/null &
- sleep 5
- echo ' creating data for mynetconf model.'
- sysrepocfg --datastore=running --format=json mynetconf --import=$MOUNT_PATH/mynetconf.data
-}
-
-# This function configures server/trusted certificates into Netopeer
-configure_tls()
-{
- sed -i "s/>test</>netconf</g" $NETOPEER_CONFIG_PATH/tls_listen.xml
- sysrepocfg --datastore=running --format=xml ietf-keystore --merge=$NETOPEER_CONFIG_PATH/load_server_certs.xml
- sysrepocfg --datastore=running --format=xml ietf-netconf-server --merge=$NETOPEER_CONFIG_PATH/tls_listen.xml
-}
-
-cp $MOUNT_PATH/test_server_key.pem $KEY_PATH
-cp $MOUNT_PATH/test_server_key.pem.pub $KEY_PATH
-configure_tls
-upload_yang_data_model
-