Skip to content

Commit

Permalink
Add skip mark to netconf tests (require docker environment) (#469)
Browse files Browse the repository at this point in the history
  • Loading branch information
dmfigol authored and dbarrosop committed Jan 14, 2020
1 parent e416bee commit 3c617d3
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/plugins/tasks/networking/test_netconf_capabilities.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
from nornir.plugins.tasks import networking
from tests import skip


@skip
def test_netconf_capabilities(netconf):
result = netconf.run(networking.netconf_capabilities)

Expand Down
2 changes: 2 additions & 0 deletions tests/plugins/tasks/networking/test_netconf_edit_config.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
from nornir.plugins.tasks import networking
from tests import skip

CONFIG = """
<nc:config
Expand All @@ -19,6 +20,7 @@
"""


@skip
def test_netconf_edit_config(netconf):
result = netconf.run(networking.netconf_get_config)

Expand Down
3 changes: 3 additions & 0 deletions tests/plugins/tasks/networking/test_netconf_get.py
Original file line number Diff line number Diff line change
@@ -1,13 +1,16 @@
from nornir.plugins.tasks import networking
from tests import skip


@skip
def test_netconf_get(netconf):
result = netconf.run(networking.netconf_get)

for _, v in result.items():
assert "<turing-machine" in v.result


@skip
def test_netconf_get_subtree(netconf):
result = netconf.run(
networking.netconf_get,
Expand Down
3 changes: 3 additions & 0 deletions tests/plugins/tasks/networking/test_netconf_get_config.py
Original file line number Diff line number Diff line change
@@ -1,13 +1,16 @@
from nornir.plugins.tasks import networking
from tests import skip


@skip
def test_netconf_get_config(netconf):
result = netconf.run(networking.netconf_get_config, source="startup")

for _, v in result.items():
assert "<turing-machine" in v.result


@skip
def test_netconf_get_config_subtree(netconf):
result = netconf.run(
networking.netconf_get_config,
Expand Down

0 comments on commit 3c617d3

Please sign in to comment.