Skip to content

Refactor(eos_designs): Improve pytest coverage for network_services/route_maps.py #5317

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

Merged

Conversation

MaheshGSLAB
Copy link
Contributor

@MaheshGSLAB MaheshGSLAB commented Apr 21, 2025

Change Summary

Improve the pytest coverage for network_services/route_maps.py

Related Issue(s)

Fixes #

Component(s) name

arista.avd.eos_designs

Proposed changes

Improve the pytest coverage for network_services/route_maps.py. Coverage is 100% now

How to test

Run tox

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)

@MaheshGSLAB MaheshGSLAB self-assigned this Apr 21, 2025
Copy link

Review docs on Read the Docs

To test this pull request:

# Create virtual environment for this testing below the current directory
python -m venv test-avd-pr-5317
# Activate the virtual environment
source test-avd-pr-5317/bin/activate
# Install all requirements including PyAVD
pip install "pyavd[ansible] @ git+https://github.com/MaheshGSLAB/ansible-avd.git@route-maps-coverage#subdirectory=python-avd" --force
# Point Ansible collections path to the Python virtual environment
export ANSIBLE_COLLECTIONS_PATH=$VIRTUAL_ENV/ansible_collections
# Install Ansible collection
ansible-galaxy collection install git+https://github.com/MaheshGSLAB/ansible-avd.git#/ansible_collections/arista/avd/,route-maps-coverage --force
# Optional: Install AVD examples
cd test-avd-pr-5317
ansible-playbook arista.avd.install_examples

@github-actions github-actions bot added the state: CI Updated CI scenario have been updated in the PR label Apr 21, 2025
@MaheshGSLAB MaheshGSLAB changed the title Test(eos_designs): Add pytest coverage for network_services/route_maps.py(WIP) Test(eos_designs): Add pytest coverage for network_services/route_maps.py Apr 25, 2025
@MaheshGSLAB MaheshGSLAB changed the title Test(eos_designs): Add pytest coverage for network_services/route_maps.py Refactor(eos_designs): Improve pytest coverage for network_services/route_maps.py Apr 25, 2025
@Shivani-gslab Shivani-gslab marked this pull request as ready for review April 29, 2025 06:59
@Shivani-gslab Shivani-gslab requested review from a team as code owners April 29, 2025 06:59
@github-actions github-actions bot added the state: conflict PR with conflict label May 7, 2025
Copy link

github-actions bot commented May 7, 2025

This pull request has conflicts, please resolve those before we can evaluate the pull request.

Copy link

github-actions bot commented May 7, 2025

Conflicts have been resolved. A maintainer will review the pull request shortly.

@github-actions github-actions bot removed the state: conflict PR with conflict label May 7, 2025
…/inventory/host_vars/underlay-filter-redistribute-connected-false-svi.yml
@ClausHolbechArista ClausHolbechArista added the one approval This PR has one approval and is only missing one more. label May 14, 2025
Copy link

@ClausHolbechArista ClausHolbechArista merged commit 71dd20c into aristanetworks:devel May 14, 2025
53 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
one approval This PR has one approval and is only missing one more. rn: Refactor(eos_designs) state: CI Updated CI scenario have been updated in the PR
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants