diff --git a/test/case/all.yaml b/test/case/all.yaml index 31164ec4..eb7b1572 100644 --- a/test/case/all.yaml +++ b/test/case/all.yaml @@ -1,6 +1,9 @@ --- - case: meta/wait.py +- name: Misc tests + suite: misc/all.yaml + - name: ietf-system suite: ietf_system/all.yaml diff --git a/test/case/misc/all.yaml b/test/case/misc/all.yaml new file mode 100644 index 00000000..c2097547 --- /dev/null +++ b/test/case/misc/all.yaml @@ -0,0 +1,2 @@ +--- +- case: operational_all.py diff --git a/test/case/misc/operational_all.py b/test/case/misc/operational_all.py new file mode 100755 index 00000000..6f09534d --- /dev/null +++ b/test/case/misc/operational_all.py @@ -0,0 +1,16 @@ +#!/usr/bin/env python3 + +# Test that it is possible to get all operational data + +import infamy +import infamy.iface as iface + +with infamy.Test() as test: + with test.step("Initialize"): + env = infamy.Env(infamy.std_topology("1x1")) + target = env.attach("target", "mgmt") + + with test.step("Get all Operational data"): + target.get_data(as_xml=True) + + test.succeed() diff --git a/test/infamy/netconf.py b/test/infamy/netconf.py index 0ec455a9..db36e30f 100644 --- a/test/infamy/netconf.py +++ b/test/infamy/netconf.py @@ -209,7 +209,7 @@ class Device(object): else: return self.get(xpath).print_dict() - def get_data(self, xpath, as_xml=False): + def get_data(self, xpath=None, as_xml=False): """RPC to fetch operational data""" if(as_xml): return self._get_data(xpath,as_xml)