Allow surveys to have boolean questions
SUMMARY
A go at boolean survey questions.
Refs #553 Refs #1782 Refs #1053
Signed-off-by: Rick Elrod [email protected]
ISSUE TYPE
- New or Enhanced Feature
COMPONENT NAME
- API
- UI
@relrod does this PR still in draft ?
Your test at awx/main/tests/unit/models/test_survey_models.py is good, but that handles an error case, and we need more testing than this for a high-level feature like this. I want to see the happy path tested, which is that true and false values are accepted... probably should verify this in both YAML / JSON. That can be done in the API tests with a mock request.
Beyond testing with the test database, we should also have full-cycle integration tests which test the happy path of valid survey answers and look for the value in a debug task that writes out hostvars (playbooks to accomplish this already exist).