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

T6510: smoketest: generell improvement task for the smoketesting platform #3727

Merged
merged 7 commits into from
Jun 26, 2024

Conversation

c-po
Copy link
Member

@c-po c-po commented Jun 26, 2024

Change Summary

  • Add missing config-test verification steps (validate if the migrators performed correctly)
  • Make config-test verification mandatory

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Code style update (formatting, renaming)
  • Refactoring (no functional changes)
  • Migration from an old Vyatta component to vyos-1x, please link to related PR inside obsoleted component
  • Other (please describe):

Related Task(s)

Related PR(s)

Component(s) name

Smoketest platform

Proposed changes

How to test

Smoketest result

Checklist:

  • I have read the CONTRIBUTING document
  • I have linked this PR to one or more Phabricator Task(s)
  • I have run the components SMOKETESTS if applicable
  • My commit headlines contain a valid Task id
  • My change requires a change to the documentation
  • I have updated the documentation accordingly

@c-po c-po marked this pull request as ready for review June 26, 2024 18:00
@c-po c-po requested a review from a team as a code owner June 26, 2024 18:00
@c-po c-po force-pushed the T6510-smoketesting branch 4 times, most recently from bc9ebc7 to b0c8ae3 Compare June 26, 2024 19:43
c-po added 6 commits June 26, 2024 21:46
For every configuration that is tested from smoketest/configs, there must be
a matching smoketest/config-tests file that has all the `set` commands
after the migration.

Example of missing testcases:

  vyos@vyos:~$ /usr/bin/vyos-configtest
  Generating tests
  Loaded migration result test for config "basic-api-service"
  Loaded migration result test for config "basic-vyos"
  Missing migration result test for config "bgp-azure-ipsec-gateway"

  ... aborted
Validate if the migrators performed correctly by comparing it to a known good
result file containing all the required `set` commands
Rather then waiting for a fully assembled ISO image to validate if there is no
incompatibility with vyos-configd - like more then one instance of Config(),
make this a build time test case for "make test"
Now that there is a build time validation that Config() is not instantiated
twice in a config mode script, and also as there are no more direct calls on
the my_set and my_delete binary, we can auto generate the list of helpers run
by vyos-configd.
Tests must run supervisioned by unittest framework and should not be
executed manually
@c-po c-po merged commit 8e633a9 into vyos:current Jun 26, 2024
12 checks passed
@c-po c-po deleted the T6510-smoketesting branch June 26, 2024 20:55
Copy link

❌ VyOS CLI smoketests failed!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3 participants