-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
22 additions
and
0 deletions.
There are no files selected for viewing
22 changes: 22 additions & 0 deletions
22
...unctional/org/modelcatalogue/core/datamodel/CheckDataModelPolicyEnumeratedTypeSpec.groovy
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
package org.modelcatalogue.core.datamodel | ||
|
||
import geb.spock.GebSpec | ||
import spock.lang.Issue | ||
import spock.lang.Narrative | ||
import spock.lang.Specification | ||
import spock.lang.Title | ||
|
||
@Issue('https://metadata.atlassian.net/browse/MET-1766') | ||
@Title('Check Model Policy - enumeratedType property') | ||
@Narrative($/ | ||
- Login to Metadata Exchange as supervisor or curator | Login successful | ||
- Navigate to the top right menu and click on the Settings menu button | Settings menu drop-down appears | ||
- Select Data Model Policies from Settings menu drop-down | Redirected to Data Model Policies page is displayed. 'Data Model Policies' is the title | ||
- From list of Data Model Policies, select 'Enumeration Checks' | Redirected to 'Enumeration Checks' policy main page. 'Enumeration Checks' is the title. | ||
- Check that the Enumeration Policy Text is correct . | Enumeration Checks Policy Text is the same as shown below: | ||
//key-value should be lowercase and underscore separated and no special characters | ||
check enumeratedType property 'enumAsString' apply negativeRegex: /.*"key"\s*:\s*(?!"[a-z0-9]+").*/ | ||
/$) | ||
|
||
class CheckDataModelPolicyEnumeratedTypeSpec extends GebSpec { | ||
} |