Skip to content

Commit

Permalink
adapt changes from APPNG-2329
Browse files Browse the repository at this point in the history
  • Loading branch information
madness-inc committed Apr 3, 2020
1 parent bb53bf1 commit 41cba82
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 15 deletions.
10 changes: 5 additions & 5 deletions src/test/resources/xml/SubjectsTest-testCreate-action.xml
Expand Up @@ -15,12 +15,12 @@
<notNull>
<message ref="subject.name" class="ERROR" code="{validation.notNull}">Field must not be empty</message>
</notNull>
<size min="0" max="64">
<message ref="subject.name" class="ERROR" code="{validation.string.max}">Enter at most 64 characters</message>
<size min="0" max="255">
<message ref="subject.name" class="ERROR" code="{validation.string.max}">Enter at most 255 characters</message>
</size>
<pattern regexp="^([a-zA-Z0-9_\.-])+(@(([a-zA-Z0-9-])+\.)+([a-zA-Z0-9]){2,})?$">
<message ref="subject.name" class="ERROR" code="{validation.username}">The name must either be a valid e-mail address, or consist
of letters, digits, dots, underscores and hyphens</message>
<pattern regexp="^((((CN|cn)=[^,]+),?)*(((OU|ou)=[^,]+),?)*(((DC|dc)=[^,]+),?)*)|(([a-zA-Z0-9_\.-])+(@(([a-zA-Z0-9-])+\.)+([a-zA-Z0-9]){2,})?)$">
<message ref="subject.name" class="ERROR" code="{validation.usernameGroup}">The name must either be a valid e-mail address, or consist
of letters, digits, dots, underscores and hyphens or a valid LDAP group reference</message>
</pattern>
</validation>
</field>
Expand Down
10 changes: 5 additions & 5 deletions src/test/resources/xml/SubjectsTest-testCreateNameExists.xml
Expand Up @@ -15,12 +15,12 @@
<notNull>
<message ref="subject.name" class="ERROR" code="{validation.notNull}">Field must not be empty</message>
</notNull>
<size min="0" max="64">
<message ref="subject.name" class="ERROR" code="{validation.string.max}">Enter at most 64 characters</message>
<size min="0" max="255">
<message ref="subject.name" class="ERROR" code="{validation.string.max}">Enter at most 255 characters</message>
</size>
<pattern regexp="^([a-zA-Z0-9_\.-])+(@(([a-zA-Z0-9-])+\.)+([a-zA-Z0-9]){2,})?$">
<message ref="subject.name" class="ERROR" code="{validation.username}">The name must either be a valid e-mail address, or consist
of letters, digits, dots, underscores and hyphens</message>
<pattern regexp="^((((CN|cn)=[^,]+),?)*(((OU|ou)=[^,]+),?)*(((DC|dc)=[^,]+),?)*)|(([a-zA-Z0-9_\.-])+(@(([a-zA-Z0-9-])+\.)+([a-zA-Z0-9]){2,})?)$">
<message ref="subject.name" class="ERROR" code="{validation.usernameGroup}">The name must either be a valid e-mail address, or consist
of letters, digits, dots, underscores and hyphens or a valid LDAP group reference</message>
</pattern>
</validation>
<messages ref="name">
Expand Down
10 changes: 5 additions & 5 deletions src/test/resources/xml/SubjectsTest-testCreateValidationFail.xml
Expand Up @@ -15,12 +15,12 @@
<notNull>
<message ref="subject.name" class="ERROR" code="{validation.notNull}">Field must not be empty</message>
</notNull>
<size min="0" max="64">
<message ref="subject.name" class="ERROR" code="{validation.string.max}">Enter at most 64 characters</message>
<size min="0" max="255">
<message ref="subject.name" class="ERROR" code="{validation.string.max}">Enter at most 255 characters</message>
</size>
<pattern regexp="^([a-zA-Z0-9_\.-])+(@(([a-zA-Z0-9-])+\.)+([a-zA-Z0-9]){2,})?$">
<message ref="subject.name" class="ERROR" code="{validation.username}">The name must either be a valid e-mail address, or consist
of letters, digits, dots, underscores and hyphens</message>
<pattern regexp="^((((CN|cn)=[^,]+),?)*(((OU|ou)=[^,]+),?)*(((DC|dc)=[^,]+),?)*)|(([a-zA-Z0-9_\.-])+(@(([a-zA-Z0-9-])+\.)+([a-zA-Z0-9]){2,})?)$">
<message ref="subject.name" class="ERROR" code="{validation.usernameGroup}">The name must either be a valid e-mail address, or consist
of letters, digits, dots, underscores and hyphens or a valid LDAP group reference</message>
</pattern>
</validation>
<messages ref="subject.name">
Expand Down

0 comments on commit 41cba82

Please sign in to comment.