Skip to content

Commit

Permalink
Add integration tests data for input validation rest API
Browse files Browse the repository at this point in the history
  • Loading branch information
Thumimku committed Dec 5, 2023
1 parent 218ff2b commit 63a235e
Show file tree
Hide file tree
Showing 5 changed files with 263 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,79 @@
[
{
"field": "password",
"rules": [
{
"validator": "LengthValidator",
"properties": [
{
"key": "min.length",
"value": "8"
}
]
},
{
"validator": "NumeralValidator",
"properties": [
{
"key": "min.length",
"value": "1"
}
]
},
{
"validator": "UpperCaseValidator",
"properties": [
{
"key": "min.length",
"value": "1"
}
]
},
{
"validator": "LowerCaseValidator",
"properties": [
{
"key": "min.length",
"value": "1"
}
]
},
{
"validator": "SpecialCharacterValidator",
"properties": [
{
"key": "min.length",
"value": "1"
}
]
}
]
},
{
"field": "username",
"rules": [
{
"validator": "LengthValidator",
"properties": [
{
"key": "min.length",
"value": "5"
},
{
"key": "max.length",
"value": "30"
}
]
},
{
"validator": "AlphanumericValidator",
"properties": [
{
"key": "enable.validator",
"value": "true"
}
]
}
]
}
]
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
[
{
"field": "password",
"rules": [
{
"validator": "NumeralValidator",
"properties": [
{
"key": "min.length",
"value": "1"
}
]
},
{
"validator": "LengthValidator",
"properties": [
{
"key": "min.length",
"value": "8"
}
]
},
{
"validator": "UpperCaseValidator",
"properties": [
{
"key": "min.length",
"value": "1"
}
]
},
{
"validator": "LowerCaseValidator",
"properties": [
{
"key": "min.length",
"value": "1"
}
]
},
{
"validator": "SpecialCharacterValidator",
"properties": [
{
"key": "min.length",
"value": "1"
}
]
}
]
},
{
"field": "username",
"rules": [
{
"validator": "AlphanumericValidator",
"properties": [
{
"key": "enable.validator",
"value": "true"
}
]
}
]
}
]
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
[
{
"field": "password",
"rules": [
{
"validator": "NumeralValidator",
"properties": [
{
"key": "min.length",
"value": "1"
}
]
},
{
"validator": "LengthValidator",
"properties": [
{
"key": "min.length",
"value": "8"
}
]
},
{
"validator": "UpperCaseValidator",
"properties": [
{
"key": "min.length",
"value": "1"
}
]
},
{
"validator": "LowerCaseValidator",
"properties": [
{
"key": "min.length",
"value": "1"
}
]
},
{
"validator": "SpecialCharacterValidator",
"properties": [
{
"key": "min.length",
"value": "1"
}
]
}
]
},
{
"field": "username",
"rules": [
{
"validator": "EmailFormatValidator",
"properties": [
{
"key": "enable.validator",
"value": "true"
}
]
}
]
}
]
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
{
"rules": [
{
"validator": "LengthValidator",
"properties": [
{
"key": "min.length",
"value": "10"
}
]
},
{
"validator": "NumeralValidator",
"properties": [
{
"key": "min.length",
"value": "1"
}
]
},
{
"validator": "UpperCaseValidator",
"properties": [
{
"key": "min.length",
"value": "1"
}
]
},
{
"validator": "LowerCaseValidator",
"properties": [
{
"key": "min.length",
"value": "1"
}
]
},
{
"validator": "SpecialCharacterValidator",
"properties": [
{
"key": "min.length",
"value": "1"
}
]
}
]
}
Original file line number Diff line number Diff line change
Expand Up @@ -212,6 +212,9 @@
<class name="org.wso2.identity.integration.test.rest.api.user.selfRegister.SelfRegisterTenantedTestCase"/>
<class name="org.wso2.identity.integration.test.rest.api.server.admin.advisory.management.v1.AdminAdvisoryManagementSuccessTest"/>
<class name="org.wso2.identity.integration.test.rest.api.server.organization.management.v1.OrganizationManagementSuccessTest"/>
<class name="org.wso2.identity.integration.test.rest.api.server.validation.rules.v1.ValidationRulesSuccessTest"/>
<class name="org.wso2.identity.integration.test.rest.api.server.validation.rules.v1.ValidationRulesNegativeTest"/>
<class name="org.wso2.identity.integration.test.rest.api.server.validation.rules.v1.ValidationRulesTestBase"/>
</classes>
</test>

Expand Down

0 comments on commit 63a235e

Please sign in to comment.