Skip to content

Commit

Permalink
fix netconf tests to accommodate latest container (#582)
Browse files Browse the repository at this point in the history
  • Loading branch information
dbarrosop committed Sep 4, 2020
1 parent 829aa12 commit d02709d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ services:

netconf1.no_group:
hostname: netconf1.no_group
image: sysrepo/sysrepo-netopeer2:v0.7.7
image: sysrepo/sysrepo-netopeer2:legacy
ports:
- "65025:830"

Expand Down
6 changes: 3 additions & 3 deletions tests/plugins/tasks/networking/test_netconf_get.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ def test_netconf_get(netconf):
result = netconf.run(networking.netconf_get)

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


def test_netconf_get_subtree(netconf):
Expand All @@ -17,9 +17,9 @@ def test_netconf_get_subtree(netconf):

result = netconf.run(
networking.netconf_get,
path="<turing-machine></turing-machine>",
path="<netconf-server><listen></listen></netconf-server>",
filter_type="subtree",
)

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

0 comments on commit d02709d

Please sign in to comment.