go.chromium.org/luci@v0.0.0-20240309015107-7cdc2e660f33/lucicfg/testdata/realms/role_cycle.star (about) 1 luci.project(name = "proj") 2 luci.custom_role( 3 name = "customRole/r1", 4 extends = ["customRole/r2"], 5 ) 6 luci.custom_role( 7 name = "customRole/r2", 8 extends = ["customRole/r1"], 9 ) 10 11 # Expect errors like: 12 # 13 # Traceback (most recent call last): 14 # //testdata/realms/role_cycle.star: in <toplevel> 15 # ... 16 # Error in add_edge: relation "extends" between luci.custom_role("customRole/r1") and luci.custom_role("customRole/r2") introduces a cycle