Skip to content

Commit

Permalink
[test]: Mark VLAN related mirror test invalid in Debian Jessie (#608)
Browse files Browse the repository at this point in the history
Signed-off-by: Shu0T1an ChenG <shuche@microsoft.com>
  • Loading branch information
Shuotian Cheng committed Sep 6, 2018
1 parent 6d40d85 commit fa2b5d9
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions tests/test_mirror.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
# This test suite covers the functionality of mirror feature in SwSS

import platform
import pytest
import time
from distutils.version import StrictVersion

from swsscommon import swsscommon

Expand Down Expand Up @@ -97,6 +100,7 @@ def get_mirror_session_status(self, name):
assert False
return status


def test_MirrorAddRemove(self, dvs):
"""
This test covers the basic mirror session creation and removal operations
Expand Down Expand Up @@ -223,6 +227,9 @@ def remove_fdb(self, vlan, mac):
time.sleep(1)


# Ignore testcase in Debian Jessie
# TODO: Remove this skip if Jessie support is no longer needed
@pytest.mark.skipif(StrictVersion(platform.linux_distribution()[1]) <= StrictVersion('8.9'), reason="Debian 8.9 or before has no support")
def test_MirrorToVlanAddRemove(self, dvs):
"""
This test covers basic mirror session creation and removal operation
Expand Down Expand Up @@ -427,6 +434,9 @@ def test_MirrorToLagAddRemove(self, dvs):
self.remove_mirror_session(session)


# Ignore testcase in Debian Jessie
# TODO: Remove this skip if Jessie support is no longer needed
@pytest.mark.skipif(StrictVersion(platform.linux_distribution()[1]) <= StrictVersion('8.9'), reason="Debian 8.9 or before has no support")
def test_MirrorDestMoveVlan(self, dvs):
"""
This test tests mirror session destination move from non-VLAN to VLAN
Expand Down Expand Up @@ -697,6 +707,7 @@ def remove_mirror_acl_dscp_rule(self, table, rule):
tbl._del(table + "|" + rule)
time.sleep(1)


def test_AclBindMirror(self, dvs):
"""
This test tests ACL associated with mirror session with DSCP value
Expand Down

0 comments on commit fa2b5d9

Please sign in to comment.