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

Refactor(eos_validate_state): Add warning for ansible test mode #4173

Merged

Conversation

gmuloc
Copy link
Contributor

@gmuloc gmuloc commented Jul 2, 2024

Change Summary

Indicate that only use_anta: true behavior will be kept in 5.0.0

Component(s) name

arista.avd.eos_validate_state

Proposed changes

After too long searching, added a temporary action plugin to emit a warning. We will remove it when we remove the ansible-test before 5.0.0. This plugin is meant to be used only for this warning

How to test

In the molecule scenario for validate_state, set use_anta to false and run. The scenario will fail because it is not meant for this mode, but you will see the emitted warning

Screenshot 2024-07-02 at 09 12 57

Checklist

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)

@gmuloc gmuloc requested review from a team as code owners July 2, 2024 07:19
Copy link

github-actions bot commented Jul 2, 2024

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-4173
# Activate the virtual environment
source test-avd-pr-4173/bin/activate
# Install all requirements including PyAVD
pip install "pyavd[ansible] @ git+https://github.com/gmuloc/avd.git@deprecate-legacy-validate-state#subdirectory=python-avd" --force
# Install Ansible collection
ansible-galaxy collection install git+https://github.com/gmuloc/avd.git#/ansible_collections/arista/avd/,deprecate-legacy-validate-state --force
# Optional: Install AVD examples
cd test-avd-pr-4173
ansible-playbook arista.avd.install_examples

@github-actions github-actions bot added the type: documentation Improvements or additions to documentation label Jul 2, 2024
@github-actions github-actions bot added the state: CI Updated CI scenario have been updated in the PR label Jul 2, 2024
@github-actions github-actions bot added the state: conflict PR with conflict label Jul 3, 2024
Copy link

github-actions bot commented Jul 3, 2024

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

@github-actions github-actions bot removed the state: conflict PR with conflict label Jul 3, 2024
Copy link

github-actions bot commented Jul 3, 2024

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

Copy link

github-actions bot commented Jul 8, 2024

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

@github-actions github-actions bot added the state: conflict PR with conflict label Jul 8, 2024
@gmuloc gmuloc requested a review from carlbuchmann July 9, 2024 14:44
Copy link

github-actions bot commented Jul 9, 2024

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 Jul 9, 2024
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 - tested in ATD and the deprecation warning was properly displayed when not using ANTA mode!

image

@carlbuchmann carlbuchmann merged commit 14b8a25 into aristanetworks:devel Jul 16, 2024
40 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants