Skip to content
Snippets Groups Projects
Commit a9881ec6 authored by Erik Reid's avatar Erik Reid
Browse files

added failing test

parent b4a14db8
Branches
Tags
No related merge requests found
Source diff could not be displayed: it is too large. Options to address this: view the blob.
Source diff could not be displayed: it is too large. Options to address this: view the blob.
This diff is collapsed.
Source diff could not be displayed: it is too large. Options to address this: view the blob.
This diff is collapsed.
import os
from lxml import etree
import pytest
from inventory_provider import nokia
def _load_netconf_config(hostname):
filename = os.path.join(
os.path.dirname(__file__),
'data',
f'{hostname}-netconf.xml')
with open(filename) as f:
return etree.fromstring(f.read())
@pytest.mark.parametrize(
'nokia_router_hostname', [
'rt0.lon2.uk.geant.net',
'rt0.lon.uk.geant.net',
'rt0.gen.ch.geant.net',
'rt0.fra.de.geant.net',
'rt0.ams.nl.geant.net'])
def test_DBOARD3_965(nokia_router_hostname):
netconf_doc = _load_netconf_config(hostname=nokia_router_hostname)
for ifc in nokia.get_interfaces_config(netconf_doc):
assert ifc['interface-name'] # trivial sanity check, TODO: proper test
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment