-
Notifications
You must be signed in to change notification settings - Fork 3.4k
test(config): run tests in dedicated netns #40150
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(config): run tests in dedicated netns #40150
Conversation
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.
Please use pkg/testutils/netns
for this, no need for the manual netns plumbing.
Simply:
ns := netns.NewNetNS(t)
ns.Do(func() {
// test code
})
e4d0c07
to
b34e4d7
Compare
updated! |
b34e4d7
to
b4d02a1
Compare
Note: names of privileged tests now need to be prefixed with TestPrivileged. |
b43038a
to
d6c5db8
Compare
/test |
9175c8e
to
7f52245
Compare
Fixes cilium#22433 Signed-off-by: Aritra Dey <adey01027@gmail.com>
7f52245
to
0e8423e
Compare
/test |
Can we cherry-pick this into v1.18? |
Fixes #22433
Fix privileged test issue observed locally .
Please ensure your pull request adheres to the following guidelines:
description and a
Fixes: #XXX
line if the commit addresses a particularGitHub issue.
Fixes: <commit-id>
tag, thenplease add the commit author[s] as reviewer[s] to this issue.
Fixes: #22433