masterdata.Holiday.UpdateHoliday.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!
UpdateHoliday:
MasterData_UpdateHoliday_All_Valid_Smoke:
endPoint: /v1/masterdata/holidays
uniqueIdentifier: TC_Masterdata_UpdateHoliday_01
description: Update the holiday details
role: admin
templateFields: ["holidayDesc","holidayName"]
restMethod: put
inputTemplate: masterdata/Holiday/holiday
outputTemplate: masterdata/Holiday/holidayResult
input: '{
"holidayDate": "2020-08-15",
"holidayDesc": "AutoTest user Holiday updated",
"holidayName": "AutoTest user",
"holidayId": "$ID:CreateHoliday_All_Valid_Smoke_sid_holidayId$",
"isActive": true,
"langCode": "eng",
"locationCode": "$LOCATIONCODE$",
"requesttime": "$TIMESTAMP$"
}'
output: '{
"holidayId": "$IGNORE$",
"locationCode": "$IGNORE$",
"holidayDate": "2020-08-15",
"holidayName": "AutoTest user",
"langCode": "$IGNORE$"
}'
MasterData_UpdateHoliday_Invalid_InputParameter_HolidayDate_Missing:
endPoint: /v1/masterdata/holidays
uniqueIdentifier: TC_Masterdata_UpdateHoliday_02
description: Update the holiday detail with invalid input parameter that is holiday date is missing
role: admin
templateFields: ["holidayDesc","holidayName"]
restMethod: put
inputTemplate: masterdata/Holiday/holiday
outputTemplate: masterdata/error
input: '{
"holidayDate": "$REMOVE$",
"holidayDesc": "AutoTest user Holiday",
"holidayName": "AutoTest user",
"holidayId": "$ID:CreateHoliday_All_Valid_Smoke_sid_holidayId$",
"isActive": false,
"langCode": "eng",
"locationCode": "$LOCATIONCODE$",
"requesttime": "$TIMESTAMP$"
}'
output: '{
"errors": [
{
"errorCode": "KER-MSD-999",
"message": "One or more input parameter(s) is missing"
}
]
}'
MasterData_UpdateHoliday_Invalid_InputParameter_HolidayDate_Empty:
endPoint: /v1/masterdata/holidays
uniqueIdentifier: TC_Masterdata_UpdateHoliday_03
description: Updating the holiday with holiday date parameter as empty
role: admin
templateFields: ["holidayDesc","holidayName"]
restMethod: put
inputTemplate: masterdata/Holiday/holiday
outputTemplate: masterdata/error
input: '{
"holidayDate": "",
"holidayDesc": "AutoTest user Holiday",
"holidayName": "AutoTest user",
"holidayId": "$ID:CreateHoliday_All_Valid_Smoke_sid_holidayId$",
"isActive": false,
"langCode": "eng",
"locationCode": "$LOCATIONCODE$",
"requesttime": "$TIMESTAMP$"
}'
output: '{
"errors": [
{
"errorCode": "KER-MSD-999",
"message": "Invalid Format in field : holidayDate"
}
]
}'
MasterData_UpdateHoliday_Invalid_HolidayDate_Format:
endPoint: /v1/masterdata/holidays
uniqueIdentifier: TC_Masterdata_UpdateHoliday_04
description: Updating the holiday with invalid date format for holiday date parameter
role: admin
templateFields: ["holidayDesc","holidayName"]
restMethod: put
inputTemplate: masterdata/Holiday/holiday
outputTemplate: masterdata/error
input: '{
"holidayDate": "16-08-2020",
"holidayDesc": "AutoTest user Holiday",
"holidayName": "AutoTest user",
"holidayId": "$ID:CreateHoliday_All_Valid_Smoke_sid_holidayId$",
"isActive": false,
"langCode": "eng",
"locationCode": "$LOCATIONCODE$",
"requesttime": "$TIMESTAMP$"
}'
output: '{
"errors": [
{
"errorCode": "KER-MSD-999",
"message": "Invalid Format in field : holidayDate"
}
]
}'
MasterData_UpdateHoliday_Invalid_InputParameter_HolidayName_Missing:
endPoint: /v1/masterdata/holidays
uniqueIdentifier: TC_Masterdata_UpdateHoliday_05
description: Updating the holiday with holiday name parameter as missing
role: admin
templateFields: ["holidayDesc"]
restMethod: put
inputTemplate: masterdata/Holiday/holiday
outputTemplate: masterdata/error
input: '{
"holidayDate": "2020-08-15",
"holidayDesc": "AutoTest user Holiday",
"holidayName": "$REMOVE$",
"holidayId": "$ID:CreateHoliday_All_Valid_Smoke_sid_holidayId$",
"isActive": false,
"langCode": "eng",
"locationCode": "$LOCATIONCODE$",
"requesttime": "$TIMESTAMP$"
}'
output: '{
"errors": [
{
"errorCode": "KER-MSD-999",
"message": "One or more input parameter(s) is missing"
}
]
}'
MasterData_UpdateHoliday_Invalid_InputParameter_HolidayName_AboveMaxLen64:
endPoint: /v1/masterdata/holidays
uniqueIdentifier: TC_Masterdata_UpdateHoliday_06
description: Updating the holiday with invalid holiday name parameter as above maximum length of 64 character
role: admin
templateFields: ["holidayDesc","holidayName"]
restMethod: put
inputTemplate: masterdata/Holiday/holiday
outputTemplate: masterdata/error
input: '{
"holidayDate": "2020-08-15",
"holidayDesc": "AutoTest user Holiday",
"holidayName": "abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklm",
"holidayId": "$ID:CreateHoliday_All_Valid_Smoke_sid_holidayId$",
"isActive": false,
"langCode": "eng",
"locationCode": "$LOCATIONCODE$",
"requesttime": "$TIMESTAMP$"
}'
output: '{
"errors": [
{
"errorCode": "KER-MSD-999",
"message": "holiday_name size must be between 1 and 64"
}
]
}'
MasterData_UpdateHoliday_Invalid_InputParameter_LocationCode_Missing:
endPoint: /v1/masterdata/holidays
uniqueIdentifier: TC_Masterdata_UpdateHoliday_07
description: Updating the holiday with location code parameter as missing
role: admin
templateFields: ["holidayDesc","holidayName"]
restMethod: put
inputTemplate: masterdata/Holiday/holiday
outputTemplate: masterdata/error
input: '{
"holidayDate": "2020-08-15",
"holidayDesc": "AutoTest user Holiday",
"holidayName": "AutoTest user",
"holidayId": "$ID:CreateHoliday_All_Valid_Smoke_sid_holidayId$",
"isActive": false,
"langCode": "eng",
"locationCode": "$REMOVE$",
"requesttime": "$TIMESTAMP$"
}'
output: '{
"errors": [
{
"errorCode": "KER-MSD-999",
"message": "One or more input parameter(s) is missing"
}
]
}'
MasterData_UpdateHoliday_Invalid_InputParameter_LocationCode_NotInDB:
endPoint: /v1/masterdata/holidays
uniqueIdentifier: TC_Masterdata_UpdateHoliday_08
description: Updating the holiday with location code which is not available in database
role: admin
templateFields: ["holidayDesc","holidayName"]
restMethod: put
inputTemplate: masterdata/Holiday/holiday
outputTemplate: masterdata/error
input: '{
"holidayDate": "2020-08-15",
"holidayDesc": "AutoTest user Holiday",
"holidayName": "AutoTest user",
"holidayId": "$ID:CreateHoliday_All_Valid_Smoke_sid_holidayId$",
"isActive": false,
"langCode": "eng",
"locationCode": "SOS",
"requesttime": "$TIMESTAMP$"
}'
output: '{
"errors": [
{
"errorCode": "KER-MSD-732",
"message": "$IGNORE$"
}
]
}'
MasterData_UpdateHoliday_Invalid_InputParameter_LocationCode_AboveMaxLen128:
endPoint: /v1/masterdata/holidays
uniqueIdentifier: TC_Masterdata_UpdateHoliday_09
description: Updating the holiday with location code with parameter as above maximum length of 128 character
role: admin
templateFields: ["holidayDesc","holidayName"]
restMethod: put
inputTemplate: masterdata/Holiday/holiday
outputTemplate: masterdata/error
input: '{
"holidayDate": "2020-08-15",
"holidayDesc": "AutoTest user Holiday",
"holidayName": "AutoTest user",
"holidayId": "$ID:CreateHoliday_All_Valid_Smoke_sid_holidayId$",
"isActive": false,
"langCode": "eng",
"locationCode": "abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxy",
"requesttime": "$TIMESTAMP$"
}'
output: '{
"errors": [
{
"errorCode": "KER-MSD-999",
"message": "location_code size must be between 1 and 128"
}
]
}'
© 2015 - 2025 Weber Informatics LLC | Privacy Policy