Commit 8883ae10 authored by Jonas Waeber's avatar Jonas Waeber
Browse files

Implement sftp server env

Now the tests can be executed with a local sftp server.
Just needs to start it using docker-compose!
parent 8dd75331
sftp:
image: atmoz/sftp:alpine
volumes:
- ./env/create_test_env.sh:/etc/sftp.d/create_test_env.sh
- ./env/ssh_host_rsa_key:/etc/ssh/ssh_host_rsa_key:ro
- ./env/ssh_host_rsa_key.pub:/etc/ssh/ssh_host_rsa_key.pub:ro
- ./env/test.csv:/home/user/sftp/test_institution_1/test_record_set_1/test.csv
ports:
- "22:22"
command: user:password:744:744:sftp
\ No newline at end of file
chown -R 744:744 /home/user/sftp/test_institution_1
\ No newline at end of file
-----BEGIN RSA PRIVATE KEY-----
MIIJKAIBAAKCAgEAp7ZwT1Z4rfN8Z1kKps5htZikaLP6g+f+w13rJbE+tH4HkTwh
oAMylRsWCMWmyDAk1SDK6EUHPkCLxD7FYNLqZvjWrB7ljikbuBM3VAg0k+5bKGwv
RAEUWRcP1ux3hRdWENvkhgogUEAhojMSwFOZXPhOPlt4bcFnBiCccBjwiZiYrGUX
/TnSKFJ7R9BM9xPA82kB17R0/BEoT7OM7YOYp8kK0eJBJso97Scb8PeWinj3rNF2
OZNZFALDqiL7FiiRodKEmcf/AaUXcjSvPXlM2fX0C1Qf9UyyEOGN1jVXFfiKJbtd
Sxh+5XneTNklfq+jr2HIFw9LgBIBUPekYIRnnWGBdjW3xbIM86VQg2ll86148qqV
Ebvdb5th7RWh2zEXeSZ/85rx0H78FkeC6yLyMrVyoWJ2ROcdCLzxJJexyZebojFH
QcNzBSoODl1wEwEQNwxunpKAj4nDWHMLtOE7TGXCAMOJJFgaAsExr19qywkv7ADE
TESoC+LM77dT8QLSPdDCUSmzoxKr1LSSaE6WE109hO5rEaPgsfB2jWEN8dUenyBg
jJGCAAw1tZndgEpkI+Ur4mKaknbibkxD5/5tlaEMK5HPMSyGk9y5hN0H7A9zNSRb
6/JdoFk/ouYotb3YlEjMvA9fiOKWaiotwrqgQSmJysm3y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fLyP6KT9v5ByOZ3Q== jonas@jonas
......@@ -27,5 +27,6 @@ class Tests {
@Test
fun testValidCsvSend() {
App.main(emptyArray())
}
}
sftp:
host: localhost
port: 1234
user: test
password: test
fingerprint: ""
port: 22
user: user
password: password
fingerprint: MD5:00:cf:ff:84:5b:d1:75:8a:a5:51:43:34:a0:89:9f:49
app:
directory: ./test_institution_1/test_record_set_1/
directory: /sftp/test_institution_1/test_record_set_1/
kafka:
producer:
bootstrap.servers: localhost:12301
bootstrap.servers: localhost:12345
client.id: sftp-reader-p1-j1
topic:
out: sftp-reader-p1-j1
\ No newline at end of file
......@@ -24,7 +24,7 @@
</Console>
</Appenders>
<Loggers>
<Root level="debug">
<Root level="info">
<AppenderRef ref="STDOUT"/>
</Root>
</Loggers>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment