From 899933a76bde826ad8f26615bd6fa600cb224a92 Mon Sep 17 00:00:00 2001 From: Parag Nemade Date: Jun 03 2020 09:54:24 +0000 Subject: Added CI test script --- diff --git a/tests/smoke/runtest.sh b/tests/smoke/runtest.sh new file mode 100644 index 0000000..adad36d --- /dev/null +++ b/tests/smoke/runtest.sh @@ -0,0 +1,20 @@ +#!/bin/bash + +# If one of the commands below returns non-zero then exit immediately +set -e + +cd ../source + +echo "Let's check the upstream data files timestamp" +ls data/iso*.json -l +echo "Validating json data files written with correct syntax" +python3 bin/validate_json_data.py +retval=$? +if [ $retval -ne 0 ]; then + echo "FAILED: Validation of data files" +else + echo "PASSED: Validation of data files" +fi + +echo "Let's check timestamp of newly generated data files" +ls data/iso*.json -l diff --git a/tests/tests.yml b/tests/tests.yml new file mode 100644 index 0000000..5ba9449 --- /dev/null +++ b/tests/tests.yml @@ -0,0 +1,16 @@ +--- +- hosts: localhost + tags: + - classic + roles: + - role: standard-test-source + +- hosts: localhost + tags: + - classic + roles: + - role: standard-test-basic + tests: + - smoke + required_packages: + - python3-jsonschema