pulp_ansible icon indicating copy to clipboard operation
pulp_ansible copied to clipboard

Validate the requirements.yml file

Open pulpbot opened this issue 4 years ago • 1 comments

Author: daviddavis (daviddavis)

Redmine Issue: 7734, https://pulp.plan.io/issues/7734


Validate the requirements.yml when a remote is saved.

Some examples:

  • Validate the presence of required keys (name, source) if the entry is a hash
  • Validate that type matches up with whatever types we support (ie only galaxy at this point)

pulpbot avatar Nov 17 '21 19:11 pulpbot

From: daviddavis (daviddavis) Date: 2020-10-22T16:31:15Z


Current validation:

https://github.com/pulp/pulp_ansible/blob/739a5551c87f4fffa9f46bee7fce9975e39020e8/pulp_ansible/app/serializers.py#L134-L148

pulpbot avatar Nov 17 '21 19:11 pulpbot