This commit is contained in:
Ivan Nikolaev-Axenov 2025-03-21 10:24:52 +03:00
parent 778a049139
commit b3f04e678d
9 changed files with 2 additions and 9 deletions

View file

@ -54,7 +54,7 @@ test:
script:
- echo "Installing maven and python" && apk update && apk add maven python3
- echo "Copying jar files to clearing-all/bin" && cp -r /builds/mfd/clearing/z-distr/target/clearing/bin ./clr_test/clearing-all/bin
# - echo "Copying DDL.sql to db directory" && cp /builds/mfd/clearing/z-distr/target/clearing/db/DDL.sql ./clr_test/db/
- chmod -R 777 ./clr_test/sftp_data
- python3 clr_test/run_test_docker_containers.py
- echo "Copying logs" && mkdir -p artifacts/logs && docker run --rm -v clr_test_logs_volume:/logs alpine tar -C /logs -cf - . | tar -C artifacts/logs -xf -
- echo "Cleaning up log volume" && docker volume rm clr_test_logs_volume

View file

@ -55,18 +55,10 @@ services:
sftp:
image: mirror.gcr.io/atmoz/sftp
security_opt:
- seccomp:unconfined
volumes:
- ./sftp_data:/home/user
command: user:Aa111111:1001
volumes:
db:
driver: local
zookeeper_data:
driver: local
kafka_data:
driver: local
logs_volume:
driver: local

View file

@ -90,6 +90,7 @@ def apply_test_case(folder: str) -> None:
os.mkdir(f"{CLR_TEST_DIR}/sftp_data/out/prc")
remove_directory(f"{CLR_TEST_DIR}/sftp_data/out/rdc")
os.mkdir(f"{CLR_TEST_DIR}/sftp_data/out/rdc")
subprocess.call(f"chmod -R 777 {CLR_TEST_DIR}/sftp_data", shell=True)
copy_directory(f"{DATA_ROOT_DIR}/{folder}/clearing_testing_utils/",
f"{CLR_TEST_DIR}/clearing-all/clearing_testing_utils/")