Skip to content

Commit

Permalink
Test the name of an instance, is should contain "letters". Relates #45
Browse files Browse the repository at this point in the history
  • Loading branch information
robertdebock committed Nov 19, 2021
1 parent d4c2556 commit c2ee476
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tasks/assert.yml
Original file line number Diff line number Diff line change
Expand Up @@ -215,6 +215,8 @@
that:
- item.name is defined
- item.name is string
- item.name is match("^[a-zA-Z0-9_-]*$")
fail_msg: "Please use alphanumeric characters only."
quiet: yes
loop: "{{ tomcat_instances }}"
loop_control:
Expand Down

0 comments on commit c2ee476

Please sign in to comment.