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

CI: Add molecule scenario eos_designs_unit_tests_v4.0 for testing refactored eos_designs data models #1762

Conversation

ClausHolbechArista
Copy link
Contributor

Change Summary

Add molecule scenario eos_designs_unit_tests_v4.0 for testing refactored eos_designs data models

Component(s) name

arista.avd

Proposed changes

To prepare for refactoring of eos_designs wildcard-dict to lists, we will add a molecule
scenario with disabled convertion, so the role templates can be tested with the new data models.

Notice that this molecule scenario will not render configs or device documentation. To prevent the automatic conversion, this molecule scenario run with the environment
variable "AVD_DISABLE_CONVERT_DICTS=TRUE" which disables the conversion.
Until eos_designs output has been changed to lists of dictionaries, we can not run
eos_cli_config_gen role, since it would also pick up the environment variable, hence
disabling conversion.

The molecule scenario has been updated with the data models which has already been converted
over the last period.

How to test

To ensure no changes to the molecule output, I have included a comparison of all structured configs between eos_designs_unit_tests and eos_designs_unit_tests_v4.0:

holbech@holbech:~/ansible-avd/ansible_collections/arista/avd/molecule$ diff eos_designs_unit_tests/intended/structured_configs/ eos_designs_unit_tests_v4.0/intended/structured_configs/ -s
Files eos_designs_unit_tests/intended/structured_configs/core-1-isis-sr-ldp.yml and eos_designs_unit_tests_v4.0/intended/structured_configs/core-1-isis-sr-ldp.yml are identical
Files eos_designs_unit_tests/intended/structured_configs/core-2-ospf-ldp.yml and eos_designs_unit_tests_v4.0/intended/structured_configs/core-2-ospf-ldp.yml are identical
Files eos_designs_unit_tests/intended/structured_configs/cvp-instance-ips-cvaas.yml and eos_designs_unit_tests_v4.0/intended/structured_configs/cvp-instance-ips-cvaas.yml are identical
Files eos_designs_unit_tests/intended/structured_configs/DC1-BL1A.yml and eos_designs_unit_tests_v4.0/intended/structured_configs/DC1-BL1A.yml are identical
Files eos_designs_unit_tests/intended/structured_configs/DC1-BL1B.yml and eos_designs_unit_tests_v4.0/intended/structured_configs/DC1-BL1B.yml are identical
Files eos_designs_unit_tests/intended/structured_configs/DC1-BL2A.yml and eos_designs_unit_tests_v4.0/intended/structured_configs/DC1-BL2A.yml are identical
Files eos_designs_unit_tests/intended/structured_configs/DC1-BL2B.yml and eos_designs_unit_tests_v4.0/intended/structured_configs/DC1-BL2B.yml are identical
Files eos_designs_unit_tests/intended/structured_configs/DC1-CL1A.yml and eos_designs_unit_tests_v4.0/intended/structured_configs/DC1-CL1A.yml are identical
Files eos_designs_unit_tests/intended/structured_configs/DC1-CL1B.yml and eos_designs_unit_tests_v4.0/intended/structured_configs/DC1-CL1B.yml are identical
Files eos_designs_unit_tests/intended/structured_configs/DC1-L2LEAF1A.yml and eos_designs_unit_tests_v4.0/intended/structured_configs/DC1-L2LEAF1A.yml are identical
Files eos_designs_unit_tests/intended/structured_configs/DC1-L2LEAF1B.yml and eos_designs_unit_tests_v4.0/intended/structured_configs/DC1-L2LEAF1B.yml are identical
Files eos_designs_unit_tests/intended/structured_configs/DC1-L2LEAF2A.yml and eos_designs_unit_tests_v4.0/intended/structured_configs/DC1-L2LEAF2A.yml are identical
Files eos_designs_unit_tests/intended/structured_configs/DC1-L2LEAF2B.yml and eos_designs_unit_tests_v4.0/intended/structured_configs/DC1-L2LEAF2B.yml are identical
Files eos_designs_unit_tests/intended/structured_configs/DC1-L2LEAF3A.yml and eos_designs_unit_tests_v4.0/intended/structured_configs/DC1-L2LEAF3A.yml are identical
Files eos_designs_unit_tests/intended/structured_configs/DC1-L2LEAF4A.yml and eos_designs_unit_tests_v4.0/intended/structured_configs/DC1-L2LEAF4A.yml are identical
Files eos_designs_unit_tests/intended/structured_configs/DC1-L2LEAF5A.yml and eos_designs_unit_tests_v4.0/intended/structured_configs/DC1-L2LEAF5A.yml are identical
Files eos_designs_unit_tests/intended/structured_configs/DC1-L2LEAF5B.yml and eos_designs_unit_tests_v4.0/intended/structured_configs/DC1-L2LEAF5B.yml are identical
Files eos_designs_unit_tests/intended/structured_configs/DC1-LEAF1A.yml and eos_designs_unit_tests_v4.0/intended/structured_configs/DC1-LEAF1A.yml are identical
Files eos_designs_unit_tests/intended/structured_configs/DC1-LEAF2A.yml and eos_designs_unit_tests_v4.0/intended/structured_configs/DC1-LEAF2A.yml are identical
Files eos_designs_unit_tests/intended/structured_configs/DC1-LEAF2B.yml and eos_designs_unit_tests_v4.0/intended/structured_configs/DC1-LEAF2B.yml are identical
Files eos_designs_unit_tests/intended/structured_configs/DC1-SPINE1.yml and eos_designs_unit_tests_v4.0/intended/structured_configs/DC1-SPINE1.yml are identical
Files eos_designs_unit_tests/intended/structured_configs/DC1-SPINE2.yml and eos_designs_unit_tests_v4.0/intended/structured_configs/DC1-SPINE2.yml are identical
Files eos_designs_unit_tests/intended/structured_configs/DC1-SPINE3.yml and eos_designs_unit_tests_v4.0/intended/structured_configs/DC1-SPINE3.yml are identical
Files eos_designs_unit_tests/intended/structured_configs/DC1-SPINE4.yml and eos_designs_unit_tests_v4.0/intended/structured_configs/DC1-SPINE4.yml are identical
Files eos_designs_unit_tests/intended/structured_configs/DC1-SVC3A.yml and eos_designs_unit_tests_v4.0/intended/structured_configs/DC1-SVC3A.yml are identical
Files eos_designs_unit_tests/intended/structured_configs/DC1-SVC3B.yml and eos_designs_unit_tests_v4.0/intended/structured_configs/DC1-SVC3B.yml are identical
Files eos_designs_unit_tests/intended/structured_configs/evpn_services_l2_only_false.yml and eos_designs_unit_tests_v4.0/intended/structured_configs/evpn_services_l2_only_false.yml are identical
Files eos_designs_unit_tests/intended/structured_configs/evpn_services_l2_only_true.yml and eos_designs_unit_tests_v4.0/intended/structured_configs/evpn_services_l2_only_true.yml are identical
Files eos_designs_unit_tests/intended/structured_configs/mgmt_interface_default.yml and eos_designs_unit_tests_v4.0/intended/structured_configs/mgmt_interface_default.yml are identical
Files eos_designs_unit_tests/intended/structured_configs/mgmt_interface_fabric.yml and eos_designs_unit_tests_v4.0/intended/structured_configs/mgmt_interface_fabric.yml are identical
Files eos_designs_unit_tests/intended/structured_configs/mgmt_interface_host.yml and eos_designs_unit_tests_v4.0/intended/structured_configs/mgmt_interface_host.yml are identical
Files eos_designs_unit_tests/intended/structured_configs/mgmt_interface_platform.yml and eos_designs_unit_tests_v4.0/intended/structured_configs/mgmt_interface_platform.yml are identical
Files eos_designs_unit_tests/intended/structured_configs/MH-L2LEAF1A.yml and eos_designs_unit_tests_v4.0/intended/structured_configs/MH-L2LEAF1A.yml are identical
Files eos_designs_unit_tests/intended/structured_configs/MH-LEAF1A.yml and eos_designs_unit_tests_v4.0/intended/structured_configs/MH-LEAF1A.yml are identical
Files eos_designs_unit_tests/intended/structured_configs/MH-LEAF1B.yml and eos_designs_unit_tests_v4.0/intended/structured_configs/MH-LEAF1B.yml are identical
Files eos_designs_unit_tests/intended/structured_configs/MH-LEAF2A.yml and eos_designs_unit_tests_v4.0/intended/structured_configs/MH-LEAF2A.yml are identical

Checklist

User Checklist

  • N/A

Repository Checklist

  • My code has been rebased from devel before I start
  • I have read the CONTRIBUTING document.
  • My change requires a change to the documentation and documentation have been updated accordingly.
  • I have updated molecule CI testing accordingly. (check the box if not applicable)

@ClausHolbechArista ClausHolbechArista requested a review from a team as a code owner May 5, 2022 06:25
@github-actions github-actions bot added role: eos_designs issue related to eos_designs role state: CI Updated CI scenario have been updated in the PR state: Documentation role Updated type: code quality CI and development toolset labels May 5, 2022
Copy link
Contributor

@Shivani-chourasiya Shivani-chourasiya left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

Copy link
Member

@carlbuchmann carlbuchmann left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Added Makefile alias designs-4.0-schema

@carlbuchmann carlbuchmann merged commit 8a0b901 into aristanetworks:devel May 6, 2022
@ClausHolbechArista ClausHolbechArista deleted the eos_designs_refactor_data_model_prep branch December 22, 2022 07:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
EPIC - AVD Schema role: eos_designs issue related to eos_designs role state: CI Updated CI scenario have been updated in the PR state: Documentation role Updated type: code quality CI and development toolset
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants