Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Provide design testing capabilities #26

Open
mzbroch opened this issue Apr 20, 2023 · 5 comments
Open

Provide design testing capabilities #26

mzbroch opened this issue Apr 20, 2023 · 5 comments

Comments

@mzbroch
Copy link

mzbroch commented Apr 20, 2023

As ...
Austin, Network Automation Engineer

I want ...
Develop and test my designs quickly and efficiently

So that ...
I can quickly render and destroy my network design

I know this is done when...
I need only single cli command to test a design

@mzbroch
Copy link
Author

mzbroch commented Apr 20, 2023

Workaround used so far by me:
For each design set , provide a management command that does the following:

  • stores multiple Job inputs as a JSON
  • create job result
  • Deletes all existing objects
  • creates and executes Jobs from ORM

@abates
Copy link
Contributor

abates commented May 11, 2023

Related to #14

@abates
Copy link
Contributor

abates commented May 17, 2023

To some degree this is already available with the DesignTestCase for unit tests. We could definitely document design testing better. What is not available, out of the box, is bootstrapping a development environment with test data. Rolling back, when launching from the UI, is already supported with the commit option when launching the job and unit tests are wrapped in transactions to reset the database as well.

@abates
Copy link
Contributor

abates commented Apr 4, 2024

We've added unit tests for design builder that make it easier to test the internal workings of the plugin. These tests are constructed using yaml files that include the design as well as a list of "checks". I think we can extend and adapt the concept to be able to test standalone designs.

See examples here

@mzbroch any thoughts?

Also, please chime in @nkallergis and @housepbass

@nkallergis
Copy link

This is brilliant and would indeed make the whole dev process so much streamlined.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants