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

[generic_config_updater]Add empty input fixture to verify configDB before GCU tests #5506

Merged
merged 2 commits into from
Apr 13, 2022

Conversation

wen587
Copy link
Contributor

@wen587 wen587 commented Apr 13, 2022

Description of PR

Summary: Add empty input fixture for GCU tests to check if current configDB is valid and GCU feature.
Fixes # (issue)

Type of change

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

Back port request

  • 201911
  • 202012

Approach

What is the motivation for this PR?

During PR test, it will fail on all GCU tests if the configDB does not pass yang validation.
This empty input fixture is to verify if there is invalid config before test.

How did you do it?

Add empty input fixture.

How did you verify/test it?

Run test of sonic-mgmt/tests/generic_config_updater/test_*.py on KVM with invalid config
to see if it fail immediately.

Any platform specific information?

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

Documentation

@wen587 wen587 requested a review from a team as a code owner April 13, 2022 07:05
@wen587 wen587 requested review from wangxin and qiluo-msft April 13, 2022 07:05
@wen587 wen587 changed the title Add empty input fixture to verify configDB before GCU tests [generic_config_updater]Add empty input fixture to verify configDB before GCU tests Apr 13, 2022
"""Fail immediately if empty input test failure

Args:
duthost: Hostname of DUT.
Copy link
Collaborator

Choose a reason for hiding this comment

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

duthost is not a hostname. It's an ansible host object that can be used to interact with the DUT device.

Copy link
Contributor

Choose a reason for hiding this comment

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

Suggest @wen587 to fix the comment in another PR.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@wen587 wen587 merged commit a12aa9e into sonic-net:master Apr 13, 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.

3 participants