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

tests/unittests: add a new unit test for network manager net activator #4672

Merged
merged 1 commit into from
Dec 7, 2023

Conversation

ani-sinha
Copy link
Contributor

Some changes in behavior in network manager net activator was brought in with the commit
d1d5166 ("net/nm: check for presence of ifcfg files when nm connection files are absent")

This change adds some unit tests that exercizes network manager activator's bring_up_interface() method that tests failure scenarios as well as cases where an ifcfg file is used to bring the interface up.

@ani-sinha ani-sinha force-pushed the main branch 2 times, most recently from 8da3547 to 9b3b363 Compare December 7, 2023 13:22
@ani-sinha
Copy link
Contributor Author

@TheRealFalcon sorry I should perhaps have pushed these unit tests along with my previous change. But here it goes now.

Some changes in behavior in network manager net activator was brought in with
the commit
d1d5166 ("net/nm: check for presence of ifcfg files when nm connection files are absent")

This change adds some unit tests that exercizes network manager activator's
bring_up_interface() method that tests failure scenarios as well as cases
where an ifcfg file is used to bring the interface up.

Signed-off-by: Ani Sinha <anisinha@redhat.com>
Copy link
Member

@TheRealFalcon TheRealFalcon left a comment

Choose a reason for hiding this comment

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

LGTM! Thanks!

@TheRealFalcon TheRealFalcon merged commit bb474df into canonical:main Dec 7, 2023
26 checks passed
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