def topology_get(config, topo, upstream): """ needs implementation if topology folder is not found raise error """ lpcli = LinchpinCli() d = lpcli.lp_topo_get(topo) pprint.pprint(d)
def topology_get(config, topo, upstream): """ Get topology by name """ lpcli = LinchpinCli() d = lpcli.lp_topo_get(topo) pprint.pprint(d)
def test_lp_layout_get_without_params(self): lp = LinchpinCli() lp = lp.lp_topo_get()
def test_lp_topo_get_with_wrong_upstream(self): lp = LinchpinCli() topo = "thisdoesnotexists" upstream = "www.example.com" lp = lp.lp_topo_get(topo, upstream)
def test_lp_topo_get_with_wrong_input_topo(self): lp = LinchpinCli() topo = "thisdoesnotexists" lp = lp.lp_topo_get(topo)