aboutsummaryrefslogtreecommitdiffstats
path: root/test/mocks/datafilecollector-testharness/ftps-sftp-server
diff options
context:
space:
mode:
authorBjornMagnussonXA <bjorn.magnusson@est.tech>2019-03-22 09:48:38 +0000
committerBjornMagnussonXA <bjorn.magnusson@est.tech>2019-03-22 09:48:38 +0000
commitf8b34f0d559711d14b95baabcb07e55d5dd9190e (patch)
tree6b7ea608e76efc170b184187daa1cb4dc80da2ed /test/mocks/datafilecollector-testharness/ftps-sftp-server
parent921c7baee8511eac0aa972139df3a238ac56299b (diff)
Updated simulators for DFC
mr sim has a number of new test cases Docker files/docker compose files added. Minor adjustment to scripts. Issue-ID: DCAEGEN2-1313 Change-Id: I0246a9d5c855cda4e7dea9830928cae98c5e1284 Signed-off-by: BjornMagnussonXA <bjorn.magnusson@est.tech>
Diffstat (limited to 'test/mocks/datafilecollector-testharness/ftps-sftp-server')
-rw-r--r--test/mocks/datafilecollector-testharness/ftps-sftp-server/README.md6
-rwxr-xr-xtest/mocks/datafilecollector-testharness/ftps-sftp-server/prepare.sh2
-rw-r--r--test/mocks/datafilecollector-testharness/ftps-sftp-server/test_cases.yml5
3 files changed, 12 insertions, 1 deletions
diff --git a/test/mocks/datafilecollector-testharness/ftps-sftp-server/README.md b/test/mocks/datafilecollector-testharness/ftps-sftp-server/README.md
index 5a1660126..3bd67404a 100644
--- a/test/mocks/datafilecollector-testharness/ftps-sftp-server/README.md
+++ b/test/mocks/datafilecollector-testharness/ftps-sftp-server/README.md
@@ -15,6 +15,12 @@ Source: https://docs.docker.com/install/linux/linux-postinstall/
then logout-login to activate it.
+###Prepare files for the simulator
+Run `prepare.sh` with an argument found in `test_cases.yml` (or add a new tc in that file) to create files (1MB, 5MB and 50MB files) and a large number of
+symbolic links to these files to simulate PM files. The files names maches the files in
+the events produced by the MR simulator. The dirs with the files will be mounted
+by the ftp containers, defined in the docker-compse file, when started
+
###Starting/stopping the FTPS/SFTP server(s)
Start: `docker-compose up`
diff --git a/test/mocks/datafilecollector-testharness/ftps-sftp-server/prepare.sh b/test/mocks/datafilecollector-testharness/ftps-sftp-server/prepare.sh
index f1146a61e..086d43a49 100755
--- a/test/mocks/datafilecollector-testharness/ftps-sftp-server/prepare.sh
+++ b/test/mocks/datafilecollector-testharness/ftps-sftp-server/prepare.sh
@@ -37,7 +37,7 @@ then
# Create symlinks
N_SYMLINKS=${nf_array[$n]}-1
- for ((l=1;l<=$N_SYMLINKS;l++))
+ for ((l=0;l<=$N_SYMLINKS;l++))
do
SYMLINK_NAME=$FILE_SIZE"MB_"$l".tar.gz"
ln -s ./$FILE_NAME $DIRECTORY/$SYMLINK_NAME
diff --git a/test/mocks/datafilecollector-testharness/ftps-sftp-server/test_cases.yml b/test/mocks/datafilecollector-testharness/ftps-sftp-server/test_cases.yml
index 8dba11479..61275dfe2 100644
--- a/test/mocks/datafilecollector-testharness/ftps-sftp-server/test_cases.yml
+++ b/test/mocks/datafilecollector-testharness/ftps-sftp-server/test_cases.yml
@@ -9,3 +9,8 @@ TC2:
size_files: 0.5 1 5
number_files: 2 3 1
directory_files: ftps ftps sftp
+
+TC_10000:
+ size_files: 1 1 5 5 50 50
+ number_files: 10000 10000 10000 10000 1 1
+ directory_files: ftps sftp ftps sftp ftps sftp \ No newline at end of file