Migrate test-integration-cli experimental ipvlan test to integration #36722
Migrate test-integration-cli experimental ipvlan test to integration #36722thaJeztah merged 3 commits intomoby:masterfrom
Conversation
007b7f7 to
f23cde0
Compare
Codecov Report
@@ Coverage Diff @@
## master #36722 +/- ##
=========================================
Coverage ? 34.92%
=========================================
Files ? 614
Lines ? 45644
Branches ? 0
=========================================
Hits ? 15943
Misses ? 27607
Partials ? 2094 |
398e75b to
5a4dacc
Compare
|
Updated to do a bit more than just |
5a4dacc to
f4a850b
Compare
|
@ctelfer can you take a look too? |
fcrisciani
left a comment
There was a problem hiding this comment.
high level I guess looks good
ctelfer
left a comment
There was a problem hiding this comment.
Sorry it has taken a while to get through the code. LGTM overall. Just one comment about a cleanup function.
integration/network/helpers.go
Outdated
There was a problem hiding this comment.
This says delete a network interface, but these iptables commands wipe every rule in the nat & filter tables of the entire system (or at least namespace). Is this intended? Might consider updating the name if so.
There was a problem hiding this comment.
As discussed on slack: these tests set up a new daemon, so this shouldn't be a problem, but perhaps we can add a TODO to these (as a follow-up)
There was a problem hiding this comment.
The problem is these daemons aren't in their own network namespace and it's flushing everything in the main namespace.
thaJeztah
left a comment
There was a problem hiding this comment.
LGTM, left some nits/questions but it's ok to address those separately
integration/network/ipvlan_test.go
Outdated
There was a problem hiding this comment.
Commented on another PR; we should go over the tests and be consistent (either "!= linux" or "== windows").
No need to fix for this PR, as it's a general thing to look at
integration/network/macvlan_test.go
Outdated
integration/network/macvlan_test.go
Outdated
There was a problem hiding this comment.
Wondering if we should start moving comments like this as custom message (not for this PR)
integration/network/helpers.go
Outdated
There was a problem hiding this comment.
As discussed on slack: these tests set up a new daemon, so this shouldn't be a problem, but perhaps we can add a TODO to these (as a follow-up)
integration/network/helpers.go
Outdated
There was a problem hiding this comment.
Should probably be moved somewhere else, as it's not network-specific (may even be another helper like this already)
|
And a conflict now. |
|
Gonna fix the conflicts and take @thaJeztah comments into account tomorrow morning (Paris time 😉) |
All `Ipvlan` related test on `DockerSuite` and `DockerNetworkSuite` are migrated to `ipvlan_test.go`. The end goal being to remove the `experimental` builds. Signed-off-by: Vincent Demeester <vincent@sbr.pm>
Signed-off-by: Vincent Demeester <vincent@sbr.pm>
… making each folder/suites quicker to run Signed-off-by: Vincent Demeester <vincent@sbr.pm>
f4a850b to
a3323d2
Compare
|
Rebased 👼 |
Build on top of #36697, only the second commit (007b7f7) should be reviewed 👼All
Ipvlanrelated test onDockerSuiteandDockerNetworkSuiteare migrated to
ipvlan_test.go.The end goal being to remove the
experimentalbuilds.It also refactors macvlan tests a bit (quicker) and it put
macvlanandipvlantests on there own folder in order to be isolated and have quick "suite).cc @fcrisciani @selansen
🦁
Signed-off-by: Vincent Demeester vincent@sbr.pm