aboutsummaryrefslogtreecommitdiffstats
path: root/test/csit/scripts/dcae-bulkpm/xNFSimulator.sh
diff options
context:
space:
mode:
authorrajendrajaiswal <rajendra.jaiswal@ericsson.com>2018-09-24 12:37:13 +0100
committerrajendrajaiswal <rajendra.jaiswal@ericsson.com>2018-09-24 15:08:30 +0100
commit4a93e492a764494984e41830e71849d4b839ba87 (patch)
treef2bee3059204469b65e8b172bc15c69d9969af1f /test/csit/scripts/dcae-bulkpm/xNFSimulator.sh
parent3bacbdafcde46e4eca1e3514c638bf709fbee182 (diff)
Updated Setup for 5G Bulk PM E2E Test Cases
Issue-ID: INT-649 Change-Id: I2776cdf94785c1f8294ed7c3f3a3e4251a158c27 Signed-off-by: Rajendra Jaiswal <rajendra.jaiswal@ericsson.com>
Diffstat (limited to 'test/csit/scripts/dcae-bulkpm/xNFSimulator.sh')
-rw-r--r--test/csit/scripts/dcae-bulkpm/xNFSimulator.sh28
1 files changed, 0 insertions, 28 deletions
diff --git a/test/csit/scripts/dcae-bulkpm/xNFSimulator.sh b/test/csit/scripts/dcae-bulkpm/xNFSimulator.sh
deleted file mode 100644
index 1728ef75b..000000000
--- a/test/csit/scripts/dcae-bulkpm/xNFSimulator.sh
+++ /dev/null
@@ -1,28 +0,0 @@
-#!/bin/bash
-#This scritt will simulate xNF ftpes functionality.
-#This script will automatic install vsftpd and it will make necessary changes to vsftpd.conf
-sudo apt-get install vsftpd -y
-sudo useradd -m -u 12345 -g users -d /home/ftpuser -s /bin/bash -p "$(echo ftpuser | openssl passwd -1 -stdin)" ftpuser
-sudo chown root:root /home/ftpuser
-sudo mkdir -p /tmp/ftp/rop
-sudo chown nobody:nogroup /tmp/ftp/rop
-sudo openssl req -x509 -nodes -days 365 -newkey rsa:1024 -keyout /etc/ssl/private/vsftpd.pem -out /etc/ssl/private/vsftpd.pem -subj "/C=IE/ST=ftp/L=Springfield/O=Dis/CN=www.onap.org"
-sudo sed -i -e '/anonymous_enable=/ s/=.*/=NO/' /etc/vsftpd.conf
-sudo sed -i -e '/local_enable=/ s/=.*/=NO/' /etc/vsftpd.conf
-sudo sed -i -e '/write_enable=/ s/=.*/=YES/' /etc/vsftpd.conf
-sudo sed -i -e '/#write_enable=/ s/#write_enable=.*/write_enable=YES/' /etc/vsftpd.conf
-sudo sed -i -e '/chroot_local_user=/ s/=.*/=YES/' /etc/vsftpd.conf
-sudo sed -i -e '0,/#chroot_local_user=/ s/#chroot_local_user=.*/chroot_local_user=YES/' /etc/vsftpd.conf
-sudo sed -i -e '/ssl_enable=/ s/=.*/=YES/' /etc/vsftpd.conf
-sudo sed -i -e "/ssl_enable=YES/a\\allow_anon_ssl=YES" /etc/vsftpd.conf
-sudo sed -i -e "/allow_anon_ssl=NO/a\\force_local_data_ssl=NO" /etc/vsftpd.conf
-sudo sed -i -e "/force_local_data_ssl=NO/a\\force_local_logins_ssl=NO" /etc/vsftpd.conf
-sudo sed -i -e "/force_local_logins_ssl=NO/a\\ssl_tlsv1=YES" /etc/vsftpd.conf
-sudo sed -i -e "/ssl_tlsv1=YES/a\\ssl_sslv2=NO" /etc/vsftpd.conf
-sudo sed -i -e "/ssl_sslv2=NO/a\\ssl_sslv3=NO" /etc/vsftpd.conf
-sudo sed -i -e "/ssl_sslv3=NO/a\\require_ssl_reuse=NO" /etc/vsftpd.conf
-sudo sed -i -e "/require_ssl_reuse=NO/a\\ssl_ciphers=HIGH" /etc/vsftpd.conf
-sudo sed -i -e "/ssl_ciphers=HIGH/a\\hide_ids=YES" /etc/vsftpd.conf
-sudo sed -i -e "/ssl_ciphers=HIGH/a\\anon_root=/var/ftp/" /etc/vsftpd.conf
-sudo sed -i -e "/ssl_ciphers=HIGH/a\\no_anon_password=YES" /etc/vsftpd.conf
-sudo service vsftpd restart \ No newline at end of file