go.chromium.org/luci@v0.0.0-20240309015107-7cdc2e660f33/lucicfg/testdata/cq/wrong_role.star (about)

     1  luci.project(name = "zzz")
     2  
     3  luci.cq_group(
     4      name = "group",
     5      watch = cq.refset("https://example.googlesource.com/repo"),
     6      acls = [
     7          acl.entry(acl.BUILDBUCKET_READER, users = ["a@example.com"]),
     8      ],
     9  )
    10  
    11  # Expect errors like:
    12  #
    13  # Traceback (most recent call last):
    14  #   //testdata/cq/wrong_role.star: in <toplevel>
    15  #   ...
    16  # Error: bad "acls": role BUILDBUCKET_READER is not allowed in this context