nautobot / nautobot-app-design-builder

https://docs.nautobot.com/projects/design-builder/en/latest/
Other
8 stars 2 forks source link

Low Code testing strategy for designs #168

Open chadell opened 3 months ago

chadell commented 3 months ago

Environment

Proposed Functionality

Designs can be tested using unitest strategy as explained here: https://github.com/nautobot/nautobot-app-design-builder/blob/ltm-1.6/docs/user/design_testing.md

However, to make tests easier to develop, it would be convienient to expose a testing framework such as the one used internally: https://github.com/nautobot/nautobot-app-design-builder/blob/develop/nautobot_design_builder/tests/testdata/create_tags.yaml where the developer could define:

---
design_job: "path to the job class"
input_data:
  "tag_name": Test Tag"
checks:
  - model_exists:
      model: "nautobot.extras.models.Tag"
      query: {name: "Test Tag"}

Use Case

This would facilitate a lot new test creation