-
Notifications
You must be signed in to change notification settings - Fork 233
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
Test(eos_cli_config_gen): Improve test coverage part 1 #4781
Test(eos_cli_config_gen): Improve test coverage part 1 #4781
Conversation
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-4781
# Activate the virtual environment
source test-avd-pr-4781/bin/activate
# Install all requirements including PyAVD
pip install "pyavd[ansible] @ git+https://github.com/laxmikantchintakindi/avd.git@coverage-part-1#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/laxmikantchintakindi/avd.git#/ansible_collections/arista/avd/,coverage-part-1 --force
# Optional: Install AVD examples
cd test-avd-pr-4781
ansible-playbook arista.avd.install_examples |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Improve the coverage for below template which are still below 80%
documentation/community-lists.j2
documentation/router-multicast.j2
ansible_collections/arista/avd/molecule/eos_cli_config_gen/inventory/host_vars/host2/ptp.yml
Show resolved
Hide resolved
...tions/arista/avd/molecule/eos_cli_config_gen/inventory/host_vars/host3/daemon-terminattr.yml
Outdated
Show resolved
Hide resolved
a0712c4
to
774dbb4
Compare
This pull request has conflicts, please resolve those before we can evaluate the pull request. |
eb3c0dc
to
ad48093
Compare
Conflicts have been resolved. A maintainer will review the pull request shortly. |
This pull request has conflicts, please resolve those before we can evaluate the pull request. |
ad48093
to
b83a791
Compare
Conflicts have been resolved. A maintainer will review the pull request shortly. |
b83a791
to
2110043
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There are some template which has good coverage percentage but there are few missing tests. You can check the CI for coverage and check for eos_cli_config_gen template for which missing tests are none zero.
...ctions/arista/avd/molecule/eos_cli_config_gen/inventory/host_vars/host3/router-multicast.yml
Outdated
Show resolved
Hide resolved
f3bcc84
to
a08ce73
Compare
Discussed with @gmuloc and decided to raise new PR to address all missing tests. |
...ections/arista/avd/molecule/eos_cli_config_gen/inventory/host_vars/host3/tap-aggregation.yml
Outdated
Show resolved
Hide resolved
...ections/arista/avd/molecule/eos_cli_config_gen/inventory/host_vars/host3/tap-aggregation.yml
Outdated
Show resolved
Hide resolved
ansible_collections/arista/avd/molecule/eos_cli_config_gen/inventory/host_vars/host2/ptp.yml
Show resolved
Hide resolved
ansible_collections/arista/avd/molecule/eos_cli_config_gen/inventory/host_vars/host3/ptp.yml
Outdated
Show resolved
Hide resolved
...a/avd/molecule/eos_cli_config_gen/inventory/host_vars/host2/management-ssh-custom-cipher.yml
Show resolved
Hide resolved
a08ce73
to
dfcff3d
Compare
...ble_collections/arista/avd/molecule/eos_cli_config_gen/inventory/host_vars/host3/logging.yml
Outdated
Show resolved
Hide resolved
...tions/arista/avd/molecule/eos_cli_config_gen/inventory/host_vars/host3/daemon-terminattr.yml
Outdated
Show resolved
Hide resolved
ansible_collections/arista/avd/molecule/eos_cli_config_gen/inventory/host_vars/host3/cvx.yml
Show resolved
Hide resolved
ansible_collections/arista/avd/molecule/eos_cli_config_gen/inventory/host_vars/host2/sflow.yml
Outdated
Show resolved
Hide resolved
ansible_collections/arista/avd/molecule/eos_cli_config_gen/inventory/host_vars/host2/sflow.yml
Outdated
Show resolved
Hide resolved
35a3ab7
to
05dcdab
Compare
python-avd/pyavd/_eos_cli_config_gen/schema/schema_fragments/lldp.schema.yml
Show resolved
Hide resolved
ansible_collections/arista/avd/molecule/eos_cli_config_gen/inventory/host_vars/host1/lldp.yml
Outdated
Show resolved
Hide resolved
...ble_collections/arista/avd/molecule/eos_cli_config_gen/inventory/host_vars/host1/logging.yml
Show resolved
Hide resolved
ansible_collections/arista/avd/molecule/eos_cli_config_gen/inventory/host_vars/host2/cvx.yml
Show resolved
Hide resolved
...ions/arista/avd/molecule/eos_cli_config_gen/inventory/host_vars/host2/interface-defaults.yml
Outdated
Show resolved
Hide resolved
...llections/arista/avd/molecule/eos_cli_config_gen/inventory/host_vars/host2/router-l2-vpn.yml
Outdated
Show resolved
Hide resolved
...llections/arista/avd/molecule/eos_cli_config_gen/inventory/host_vars/host2/router-l2-vpn.yml
Outdated
Show resolved
Hide resolved
...ections/arista/avd/molecule/eos_cli_config_gen/inventory/host_vars/host2/tap-aggregation.yml
Show resolved
Hide resolved
…ldp.schema.yml Co-authored-by: Claus Holbech <[email protected]>
for more information, see https://pre-commit.ci
This pull request has conflicts, please resolve those before we can evaluate the pull request. |
…stanetworks#4798) Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Claus Holbech <[email protected]> Co-authored-by: Guillaume Mulocher <[email protected]>
…cation key` as required key in ntp schema (aristanetworks#4876) Co-authored-by: Mahesh Kumar <[email protected]> Co-authored-by: Guillaume Mulocher <[email protected]>
…ace to EVPN Peer Groups (aristanetworks#4903)
Conflicts have been resolved. A maintainer will review the pull request shortly. |
Change Summary
Improve test coverage for below templates:
Related Issue(s)
Fixes #https://github.com/aristanetworks/avd-internal/issues/171
Component(s) name
arista.avd.eos_cli_config_gen
Proposed changes
How to test
Checklist
User Checklist
Repository Checklist