enable netavark specific tests

These are copies of the CNI tests with modifications wherever
neccessary.

Signed-off-by: Lokesh Mandvekar <lsm5@fedoraproject.org>
This commit is contained in:
Lokesh Mandvekar
2022-02-11 13:34:18 -05:00
parent 564404b4fa
commit 6f9f78f7f2
4 changed files with 166 additions and 18 deletions

View File

@ -771,15 +771,15 @@ func SkipIfNotActive(unit string, reason string) {
}
}
func SkipIfNetavark(p *PodmanTestIntegration) {
if p.NetworkBackend == Netavark {
Skip("This test is not compatible with the netavark network backend")
func SkipIfCNI(p *PodmanTestIntegration) {
if p.NetworkBackend == CNI {
Skip("this test is not compatible with the CNI network backend")
}
}
func SkipUntilAardvark(p *PodmanTestIntegration) {
func SkipIfNetavark(p *PodmanTestIntegration) {
if p.NetworkBackend == Netavark {
Skip("Re-enable when aardvark is functional")
Skip("This test is not compatible with the netavark network backend")
}
}
@ -1038,3 +1038,7 @@ func ncz(port int) bool {
}
return false
}
func createNetworkName(name string) string {
return name + stringid.GenerateNonCryptoID()[:10]
}