masterdata.ValidDocumentSearch.ValidDocumentSearch.yml Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of apitest-masterdata Show documentation
Show all versions of apitest-masterdata Show documentation
Parent project of MOSIP Admin Services apitests
The newest version!
ValidDocumentSearch:
MasterData_ValidDocumentSearch_Valid_Smoke:
endPoint: /v1/masterdata/validdocuments/search
uniqueIdentifier: TC_Masterdata_ValidDocumentSearch_01
description: Search document details with valid data
role: admin
checkErrorsOnlyInResponse: true
templateFields: ["languageCode"]
restMethod: post
inputTemplate: masterdata/ValidDocumentSearch/validDocumentSearch
outputTemplate: masterdata/ValidDocumentSearch/validDocumentSearchResult
input: '{
"filters": [],
"sort": [{
"sortField": "createdDateTime",
"sortType": "ASC"
}],
"pageStart": 0,
"pageFetch": 10,
"languageCode": "eng",
"requesttime": "$TIMESTAMP$"
}'
output: '{
}'
MasterData_ValidDocumentSearch_Valid_Filter_DocCatcode:
endPoint: /v1/masterdata/validdocuments/search
uniqueIdentifier: TC_Masterdata_ValidDocumentSearch_02
description: Search document details with filter as document category code
role: admin
checkErrorsOnlyInResponse: true
templateFields: ["languageCode"]
restMethod: post
inputTemplate: masterdata/ValidDocumentSearch/validDocumentSearch
outputTemplate: masterdata/ValidDocumentSearch/validDocumentSearchResult
input: '{
"filters": [{
"value": "POA",
"columnName": "docCategoryCode",
"type": "equals"
}],
"sort": [{
"sortField": "createdDateTime",
"sortType": "ASC"
}],
"pageStart": 0,
"pageFetch": 10,
"languageCode": "eng",
"requesttime": "$TIMESTAMP$"
}'
output: '{
}'
MasterData_ValidDocumentSearch_Invalid_NegPageFetch:
endPoint: /v1/masterdata/validdocuments/search
uniqueIdentifier: TC_Masterdata_ValidDocumentSearch_03
description: Search document details with page fetch data as invalid
role: admin
templateFields: ["languageCode"]
restMethod: post
inputTemplate: masterdata/ValidDocumentSearch/validDocumentSearch
outputTemplate: masterdata/error
input: '{
"filters": [{
"value": "POA",
"columnName": "docCategoryCode",
"type": "equals"
}],
"sort": [{
"sortField": "createdDateTime",
"sortType": "ASC"
}],
"pageStart": 0,
"pageFetch": -1,
"languageCode": "eng",
"requesttime": "$TIMESTAMP$"
}'
output: '{
"errors": [
{
"errorCode": "KER-MSD-999",
"message": "request.pagination.pageFetch: Should have positive integer value"
}
]
}'
MasterData_ValidDocumentSearch_Invalid_NegPageStart:
endPoint: /v1/masterdata/validdocuments/search
uniqueIdentifier: TC_Masterdata_ValidDocumentSearch_04
description: Search document details with page start data as invalid
role: admin
templateFields: ["languageCode"]
restMethod: post
inputTemplate: masterdata/ValidDocumentSearch/validDocumentSearch
outputTemplate: masterdata/error
input: '{
"filters": [{
"value": "POA",
"columnName": "docCategoryCode",
"type": "equals"
}],
"sort": [{
"sortField": "createdDateTime",
"sortType": "ASC"
}],
"pageStart": -1,
"pageFetch": 1,
"languageCode": "eng",
"requesttime": "$TIMESTAMP$"
}'
output: '{
"errors": [
{
"errorCode": "KER-MSD-999",
"message": "request.pagination.pageStart: Should have positive integer value"
}
]
}'
MasterData_ValidDocumentSearch_Invalid_FilterType_neg:
endPoint: /v1/masterdata/validdocuments/search
uniqueIdentifier: TC_Masterdata_ValidDocumentSearch_05
description: Search document details with page filter type as invalid
role: admin
templateFields: ["languageCode"]
restMethod: post
inputTemplate: masterdata/ValidDocumentSearch/validDocumentSearch
outputTemplate: masterdata/error
input: '{
"filters": [{
"value": "POA",
"columnName": "docCategoryCode",
"type": "asdf"
}],
"sort": [{
"sortField": "createdDateTime",
"sortType": "ASC"
}],
"pageStart": 0,
"pageFetch": 1,
"languageCode": "eng",
"requesttime": "$TIMESTAMP$"
}'
output: '{
"errors": [
{
"errorCode": "KER-MSD-318",
"message": "$IGNORE$"
}
]
}'
MasterData_ValidDocumentSearch_Invalid_SortType_neg:
endPoint: /v1/masterdata/validdocuments/search
uniqueIdentifier: TC_Masterdata_ValidDocumentSearch_06
description: Search document details with page sort type as invalid
role: admin
templateFields: ["languageCode"]
restMethod: post
inputTemplate: masterdata/ValidDocumentSearch/validDocumentSearch
outputTemplate: masterdata/error
input: '{
"filters": [{
"value": "POA",
"columnName": "docCategoryCode",
"type": "equals"
}],
"sort": [{
"sortField": "createdDateTime",
"sortType": "asdf"
}],
"pageStart": 0,
"pageFetch": 1,
"languageCode": "eng",
"requesttime": "$TIMESTAMP$"
}'
output: '{
"errors": [
{
"errorCode": "KER-MSD-358",
"message": "Sort type asdf is not supported"
}
]
}'
MasterData_ValidDocumentSearch_Invalid_SortField_neg:
endPoint: /v1/masterdata/validdocuments/search
uniqueIdentifier: TC_Masterdata_ValidDocumentSearch_07
description: Search document details with sort field data as invalid
role: admin
templateFields: ["languageCode"]
restMethod: post
inputTemplate: masterdata/ValidDocumentSearch/validDocumentSearch
outputTemplate: masterdata/error
input: '{
"filters": [{
"value": "POA",
"columnName": "docCategoryCode",
"type": "equals"
}],
"sort": [{
"sortField": "createddDateTime",
"sortType": "ASC"
}],
"pageStart": 0,
"pageFetch": 1,
"languageCode": "eng",
"requesttime": "$TIMESTAMP$"
}'
output: '{
"errors": [
{
"errorCode": "KER-MSD-357",
"message": "Invalid sort field createddDateTime"
}
]
}'
MasterData_ValidDocumentSearch_Blank_SortField:
endPoint: /v1/masterdata/validdocuments/search
uniqueIdentifier: TC_Masterdata_ValidDocumentSearch_08
description: Search document details with sort field data as blank
role: admin
templateFields: ["languageCode"]
restMethod: post
inputTemplate: masterdata/ValidDocumentSearch/validDocumentSearch
outputTemplate: masterdata/error
input: '{
"filters": [{
"value": "POA",
"columnName": "docCategoryCode",
"type": "equals"
}],
"sort": [{
"sortField": "",
"sortType": "ASC"
}],
"pageStart": 0,
"pageFetch": 1,
"languageCode": "eng",
"requesttime": "$TIMESTAMP$"
}'
output: '{
"errors": [
{
"errorCode": "KER-MSD-314",
"message": "Missing sort field or sort type values"
}
]
}'
MasterData_ValidDocumentSearch_Invalid_ColumnName:
endPoint: /v1/masterdata/validdocuments/search
uniqueIdentifier: TC_Masterdata_ValidDocumentSearch_09
description: Search document details with column name data as invalid
role: admin
templateFields: ["languageCode"]
restMethod: post
inputTemplate: masterdata/ValidDocumentSearch/validDocumentSearch
outputTemplate: masterdata/error
input: '{
"filters": [{
"value": "POA",
"columnName": "docCategoryCodesfd",
"type": "equals"
}],
"sort": [{
"sortField": "createdDateTime",
"sortType": "ASC"
}],
"pageStart": 0,
"pageFetch": 1,
"languageCode": "eng",
"requesttime": "$TIMESTAMP$"
}'
output: '{
"errors": [
{
"errorCode": "KER-MSD-317",
"message": "$IGNORE$"
}
]
}'
MasterData_ValidDocumentSearch_Invalid_RequestTime:
endPoint: /v1/masterdata/validdocuments/search
uniqueIdentifier: TC_Masterdata_ValidDocumentSearch_10
description: Search document details with request time data as invalid
role: admin
templateFields: ["languageCode"]
restMethod: post
inputTemplate: masterdata/ValidDocumentSearch/validDocumentSearch
outputTemplate: masterdata/error
input: '{
"filters": [{
"value": "POA",
"columnName": "docCategoryCode",
"type": "equals"
}],
"sort": [{
"sortField": "createdDateTime",
"sortType": "ASC"
}],
"pageStart": 0,
"pageFetch": 1,
"languageCode": "eng",
"requesttime": "2019-7-3T05:22:35.845"
}'
output: '{
"errors": [
{
"errorCode": "KER-MSD-999",
"message": "Invalid Format in field : requesttime"
}
]
}'
© 2015 - 2025 Weber Informatics LLC | Privacy Policy