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

     1  luci.notifier_template(
     2      name = "template-with-dashes-in-name",
     3      body = "foo",
     4  )
     5  
     6  # Expect errors:
     7  #
     8  # Traceback (most recent call last):
     9  #   //testdata/notifiable/notifier_template_bad_name.star: in <toplevel>
    10  #   <builtin>: in _notifier_template
    11  #   @stdlib//internal/validate.star: in _string
    12  #   <builtin>: in fail
    13  # Error: bad "name": "template-with-dashes-in-name" should match "^[a-z][a-z0-9\\_]*$"