Implement validator for site object in site_level_configuration file
maany opened this issue · comments
Write schema and validators required to validate the following data:
site:
name: simple-dev-site
email: mayank.sharma@cern.ch
latitude: 46.3
longitude: 6.2
location: CERN, Geneva, Switzerland
description: A demo site demonstrating the SIMPLE framework for site setup
website: https://home.cern
support_website: https://groups.google.com/forum/#!forum/wlcg-lightweight-sites
support_email: mayank.sharma@cern.ch
security_email: mayank.sharma@cern.ch
grid: wlcg
tier: 3
bdii_host: bdii.cern.ch
use_argus: false
Hey @maany I would like to contribute to this project through GSoC 2019. Any suggestions on how to work on this issue?
@arsenal-2004 Start by setting up your development environment as described in https://github.com/WLCG-Lightweight-Sites/wlcg_lightweight_site_config_validation_engine/blob/master/README.md. You can run it using the schema and data here: https://github.com/WLCG-Lightweight-Sites/wlcg_lightweight_site_config_validation_engine/tree/master/tests/fixtures when starting out.
Essentially, create a schema and a data file in the fixtures directory called site_schema.yaml and site_data.yaml respectively. site_data.yaml would contain the yaml code in the issue's description.
Write a validator in https://github.com/WLCG-Lightweight-Sites/wlcg_lightweight_site_config_validation_engine/blob/master/config_validation_engine/validators/validators.py for the same.
Let me know if you need more info.
Thank you. I will try to work on this issue.
@arsenal-2004 , @michiboo1 resolved this already in his last PR. I'm closing the issue. Please feel free to work on the other open issues and let me know if you need more info on any of those.