diff options
author | francois.cellier <francois.cellier@orange.com> | 2018-02-13 13:06:51 +0100 |
---|---|---|
committer | francois.cellier <francois.cellier@orange.com> | 2018-02-13 17:01:47 +0100 |
commit | b38ecccb8ab9cd1e631f89c92f6b88e420b2a1b0 (patch) | |
tree | 8403f71cef84a5761f533bb6fc7aa08daa234f16 /moon_pythonfunctest | |
parent | 4841ea360bb6feec4d2c644040e12a2657769634 (diff) |
Add the moon_pythonfunctest container to perform functionnal tests
Change-Id: I2be863862ce7df408f759664b10af45416b3d712
Diffstat (limited to 'moon_pythonfunctest')
-rw-r--r-- | moon_pythonfunctest/Dockerfile | 9 | ||||
-rw-r--r-- | moon_pythonfunctest/README.md | 8 | ||||
-rwxr-xr-x | moon_pythonfunctest/run_func_test.sh | 15 |
3 files changed, 32 insertions, 0 deletions
diff --git a/moon_pythonfunctest/Dockerfile b/moon_pythonfunctest/Dockerfile new file mode 100644 index 00000000..8ae093b8 --- /dev/null +++ b/moon_pythonfunctest/Dockerfile @@ -0,0 +1,9 @@ +FROM python:3 + +WORKDIR /usr/src/app +RUN pip install --no-cache-dir --upgrade requests pytest pyyaml python_moonutilities python_moondb python_moonclient + +ADD . /root +WORKDIR /root + +CMD /bin/bash /root/run_func_test.sh diff --git a/moon_pythonfunctest/README.md b/moon_pythonfunctest/README.md new file mode 100644 index 00000000..e2a4d14b --- /dev/null +++ b/moon_pythonfunctest/README.md @@ -0,0 +1,8 @@ +# Python Functional Test Docker + +## Build +- `docker image build -t wukongsun/moon_python_func_test .` + +## Push to DockerHub +- `docker login --username=wukongsun` +- `docker image push wukongsun/moon_python_func_test` diff --git a/moon_pythonfunctest/run_func_test.sh b/moon_pythonfunctest/run_func_test.sh new file mode 100755 index 00000000..acd0e1e9 --- /dev/null +++ b/moon_pythonfunctest/run_func_test.sh @@ -0,0 +1,15 @@ +#!/usr/bin/env bash + +echo "Running functional tests :" + +#ls -l /data +ls -l /data/tests + +if [ -f /data/tests/functional_pod/run_functional_tests.sh ]; +then + echo "running script..." + bash /data/tests/functional_pod/run_functional_tests.sh; +fi + +echo "<END OF JOB>" + |