masterdata.FilterHolidays.FilterHolidays.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!
FilterHolidays:
MasterData_FilterHolidays_Valid_Smoke:
endPoint: /v1/masterdata/holidays/filtervalues
uniqueIdentifier: TC_Masterdata_FilterHolidays_01
description: Filter Holidays by all valid data
role: admin
checkErrorsOnlyInResponse: true
templateFields: ["languageCode"]
restMethod: post
inputTemplate: masterdata/FilterHolidays/filterHolidays
outputTemplate: masterdata/FilterHolidays/filterHolidaysResult
input: '{
"filters": [{
"columnName": "holidayName",
"type": "unique",
"text": "AutoTest user Eng"
}],
"languageCode": "eng",
"requesttime": "$TIMESTAMP$"
}'
output: '{
}'
MasterData_FilterHolidays_inValid_filterText:
endPoint: /v1/masterdata/holidays/filtervalues
uniqueIdentifier: TC_Masterdata_FilterHolidays_02
description: Filter Holidays by invalid filter text
role: admin
checkErrorsOnlyInResponse: true
restMethod: post
inputTemplate: masterdata/FilterHolidays/filterHolidays
outputTemplate: masterdata/NilFilterResult
input: '{
"filters": [{
"columnName": "isActive",
"type": "unique",
"text": "ashashadf"
}],
"languageCode": "eng",
"requesttime": "$TIMESTAMP$"
}'
output: '{
<<<<<<< HEAD
=======
"totalCount": 0
>>>>>>> upstream/develop
}'
MasterData_FilterHolidays_inValid_filterType_blank:
endPoint: /v1/masterdata/holidays/filtervalues
uniqueIdentifier: TC_Masterdata_FilterHolidays_03
description: Filter Holidays by blank filter type
role: admin
templateFields: ["text"]
restMethod: post
inputTemplate: masterdata/FilterHolidays/filterHolidays
outputTemplate: masterdata/error
input: '{
"filters": [{
"columnName": "holidayName",
"type": "",
"text": "AutoTest user"
}],
"languageCode": "eng",
"requesttime": "$TIMESTAMP$"
}'
output: '{
"errors": [
{
"errorCode": "KER-MSD-322",
"message": "Filter Type cannot be empty or null"
}
]
}'
MasterData_FilterHolidays_inValid_filterColumnName_blank:
endPoint: /v1/masterdata/holidays/filtervalues
uniqueIdentifier: TC_Masterdata_FilterHolidays_04
description: Filter Holidays by empty filter columnName
role: admin
templateFields: ["text"]
restMethod: post
inputTemplate: masterdata/FilterHolidays/filterHolidays
outputTemplate: masterdata/error
input: '{
"filters": [{
"columnName": "",
"type": "unique",
"text": "AutoTest user"
}],
"languageCode": "eng",
"requesttime": "$TIMESTAMP$"
}'
output: '{
"errors": [
{
"errorCode": "KER-MSD-999",
"message": "request.filters[0].columnName: must not be blank"
}
]
}'
MasterData_FilterHolidays_inValid_langCode:
endPoint: /v1/masterdata/holidays/filtervalues
uniqueIdentifier: TC_Masterdata_FilterHolidays_05
description: Filter Holidays by inalid languageCode
role: admin
restMethod: post
inputTemplate: masterdata/FilterHolidays/filterHolidays
outputTemplate: masterdata/error
input: '{
"filters": [{
"columnName": "holidayName",
"type": "unique",
"text": "AutoTest user"
}],
"languageCode": "engr",
"requesttime": "$TIMESTAMP$"
}'
output: '{
"errors": [
{
"errorCode": "KER-MSD-999",
"message": "Language Code is Invalid"
}
]
}'
MasterData_FilterHolidays_inValid_RequestTime_format:
endPoint: /v1/masterdata/holidays/filtervalues
uniqueIdentifier: TC_Masterdata_FilterHolidays_06
description: Filter Holidays by inalid requesttime format
role: admin
templateFields: ["text"]
restMethod: post
inputTemplate: masterdata/FilterHolidays/filterHolidays
outputTemplate: masterdata/error
input: '{
"filters": [{
"columnName": "holidayName",
"type": "unique",
"text": "AutoTest user"
}],
"languageCode": "eng",
"requesttime": "2018-12-1006:12:52.994Z"
}'
output: '{
"errors": [
{
"errorCode": "KER-MSD-999",
"message": "Invalid Format in field : requesttime"
}
]
}'
MasterData_FilterHolidays_inValid_filterColumnName:
endPoint: /v1/masterdata/holidays/filtervalues
uniqueIdentifier: TC_Masterdata_FilterHolidays_07
description: Filter Holidays by inalid columnName
role: admin
templateFields: ["text"]
restMethod: post
inputTemplate: masterdata/FilterHolidays/filterHolidays
outputTemplate: masterdata/error
input: '{
"filters": [{
"columnName": "dsdsjdh",
"type": "unique",
"text": "AutoTest user"
}],
"languageCode": "eng",
"requesttime": "$TIMESTAMP$"
}'
output: '{
"errors": [
{
"errorCode": "KER-MSD-317"
}
]
}'
MasterData_FilterHolidays_inValid_filterType:
endPoint: /v1/masterdata/holidays/filtervalues
uniqueIdentifier: TC_Masterdata_FilterHolidays_08
description: Filter Holidays by inalid filter Type
role: admin
templateFields: ["text"]
restMethod: post
inputTemplate: masterdata/FilterHolidays/filterHolidays
outputTemplate: masterdata/error
input: '{
"filters": [{
"columnName": "holidayName",
"type": "sdsdsd",
"text": "AutoTest user"
}],
"languageCode": "eng",
"requesttime": "$TIMESTAMP$"
}'
output: '{
"errors": [
{
"errorCode": "KER-MSD-324",
"message": "Received Filter Type not supported"
}
]
}'
MasterData_FilterHolidays_inValid_FilterText:
endPoint: /v1/masterdata/holidays/filtervalues
uniqueIdentifier: TC_Masterdata_FilterHolidays_09
description: Filter Holidays by inalid filter text
role: admin
checkErrorsOnlyInResponse: true
templateFields: ["text"]
restMethod: post
inputTemplate: masterdata/FilterHolidays/filterHolidays
outputTemplate: masterdata/NilFilterResult
input: '{
"filters": [{
"columnName": "holidayName",
"type": "unique",
"text": "sdfgsds"
}],
"languageCode": "eng",
"requesttime": "$TIMESTAMP$"
}'
output: '{
}'
© 2015 - 2025 Weber Informatics LLC | Privacy Policy