Skip to content

Commit

Permalink
See: #1254
Browse files Browse the repository at this point in the history
  • Loading branch information
johncross committed May 8, 2018
1 parent 5d2029f commit 2563432
Showing 1 changed file with 22 additions and 0 deletions.
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 {
}

0 comments on commit 2563432

Please sign in to comment.