Skip to content

GCU AAA test#4915

Merged
wen587 merged 4 commits intosonic-net:masterfrom
wen587:gu_aaa
Jan 24, 2022
Merged

GCU AAA test#4915
wen587 merged 4 commits intosonic-net:masterfrom
wen587:gu_aaa

Conversation

@wen587
Copy link
Contributor

@wen587 wen587 commented Jan 11, 2022

Description of PR

Summary: Testcase of AAA for generic updater apply-patch
Fixes # (issue)

Type of change

  • Bug fix
  • Testbed and Framework(new/improvement)
  • Test case(new/improvement)

Back port request

  • 201911

Approach

What is the motivation for this PR?

End to End test support for Generic Updater apply-patch
This PR is to verify the usage of 'config apply-patch' works on AAA

How did you do it?

Make some config apply change. And check if the AAA config changed as expected.

How did you verify/test it?

Run test of sonic-mgmt/tests/generic_config_updater/test_aaa.py on KVM

Any platform specific information?

Supported testbed topology if it's a new test case?

Documentation

@wen587 wen587 requested review from ghooo and qiluo-msft January 11, 2022 09:43
@wen587
Copy link
Contributor Author

wen587 commented Jan 11, 2022

Need Yang modification to run correctly.
sonic-net/sonic-buildimage#9724

@qiluo-msft
Copy link
Contributor

qiluo-msft commented Jan 14, 2022

sonic-net/sonic-buildimage#9724 is merged. Is it ready to review?


In reply to: 1012651780

@wen587
Copy link
Contributor Author

wen587 commented Jan 14, 2022

Azure/sonic-buildimage#9724 is merged. Is it ready to review?

Yeah. It is ready for review.

from tests.generic_config_updater.gu_utils import create_checkpoint, delete_checkpoint, rollback_or_reload

pytestmark = [
pytest.mark.topology('t0'),
Copy link
Contributor

Choose a reason for hiding this comment

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

t0

change it to any?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Not sure if other topos have the same init config with t0.
For example, t0 dont have AAA or TACPLUS table in configDB, so to make GCU change on that, some test need to add init config to initialize the table

Copy link
Contributor

Choose a reason for hiding this comment

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

Any topo should have the same init AAA config. Please let me know it is not.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Will verify later.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Apply AAA test to topo any

@wen587 wen587 marked this pull request as ready for review January 19, 2022 07:12
@wen587 wen587 requested a review from a team as a code owner January 19, 2022 07:12
@wen587 wen587 merged commit 5c4303b into sonic-net:master Jan 24, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants