Skip to content

Commit 15d1c22

Browse files
committed
Add nodeinfo test case where we use a symlink for the nodes path
1 parent 035ca7c commit 15d1c22

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

tests/test_nodeinfo.py

+9
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,15 @@ def test_nodeinfo_n1():
2727
}
2828

2929

30+
def test_nodeinfo_n1_meta_symlink():
31+
r = reclass_rs.Reclass(
32+
nodes_path="./tests/inventory/targets", classes_path="./tests/inventory/classes"
33+
)
34+
n = r.nodeinfo("n1")
35+
npath = Path("./tests/inventory/targets/n1.yml").absolute()
36+
assert n.__reclass__.uri == f"yaml_fs://{npath}"
37+
38+
3039
def test_nodeinfo_n2():
3140
r = reclass_rs.Reclass(
3241
nodes_path="./tests/inventory/nodes", classes_path="./tests/inventory/classes"

0 commit comments

Comments
 (0)