Open chbrown13 opened 7 years ago
@chbrown13 so maybe nailgun
must have a way to validate all the required fields before making the api call?
Yep, not sure if there's any way around this other than adding required values for every action.
Also in some cases I think required attributes are automatically generated because I've gotten around this before with other entities, but not in this example.
Solution- When entities are updated, searched, or deleted we only pass the entity_id but all required arguments also need to be passed in either in the yaml commands or the object constructor.
delete- https://github.com/SatelliteQE/satellite-populate/blob/master/satellite_populate/api.py#L120 update- https://github.com/SatelliteQE/satellite-populate/blob/master/satellite_populate/api.py#L94 search- https://github.com/SatelliteQE/satellite-populate/blob/master/satellite_populate/base.py#L595
Description
I created an Interface entity but cannot delete it because when an interface it created, it requires a Host entity parameter. However sometimes satellite-populate actions only uses the entity_id or other specified attributes which causes an error.
EDIT: Also applies to other actions other than delete [delete] ( (https://github.com/SatelliteQE/satellite-populate/blob/master/satellite_populate/api.py#L120) [search] (https://github.com/SatelliteQE/satellite-populate/blob/master/satellite_populate/base.py#L595)
TypeError: A value must be provided for the ___ field.
What I Did
test_interface.yaml