Added CI test script

This commit is contained in:
Parag Nemade 2020-06-03 15:24:24 +05:30
parent b30b423725
commit 899933a76b
No known key found for this signature in database
GPG Key ID: 71932951EB71E972
2 changed files with 36 additions and 0 deletions

20
tests/smoke/runtest.sh Normal file
View File

@ -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

16
tests/tests.yml Normal file
View File

@ -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