masterdata.DocumentCategory.UpdateDocumentCategory.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!
UpdateDocumentCategory:
MasterData_UpdateDocumentCategory_Valid_Smoke:
endPoint: /v1/masterdata/documentcategories
uniqueIdentifier: TC_Masterdata_UpdateDocumentCategory_01
description: Update Document Category with all valid data
role: admin
templateFields: ["name","description"]
restMethod: put
inputTemplate: masterdata/DocumentCategory/documentCategory
outputTemplate: masterdata/DocumentCategory/documentCategoryResult
input: '{
"code": "DocTestCode123",
"description": "Testing positive Doc updated",
"isActive": true,
"langCode": "eng",
"name": "DocCat",
"requesttime": "$TIMESTAMP$"
}'
output: '{
"code": "DocTestCode123"
}'
MasterData_UpdateDocumentCategory_All_Valid_Mandatory_Fields:
endPoint: /v1/masterdata/documentcategories
uniqueIdentifier: TC_Masterdata_UpdateDocumentCategory_02
description: Update Document Category with all mandatory data
role: admin
templateFields: ["name","description"]
restMethod: put
inputTemplate: masterdata/DocumentCategory/documentCategory
outputTemplate: masterdata/DocumentCategory/documentCategoryResult
input: '{
"code": "DocTestCode321",
"description": "DocTestCode321 updated",
"isActive": true,
"langCode": "eng",
"name": "DocCat",
"requesttime": "$TIMESTAMP$"
}'
output: '{
"code": "DocTestCode321"
}'
MasterData_UpdateDocumentCategory_Invalid_InputParameter_Code_Missing:
endPoint: /v1/masterdata/documentcategories
uniqueIdentifier: TC_Masterdata_UpdateDocumentCategory_03
description: Update Document Category with missing Code field
role: admin
templateFields: ["name","description"]
restMethod: put
inputTemplate: masterdata/DocumentCategory/documentCategory
outputTemplate: masterdata/error
input: '{
"code": "$REMOVE$",
"description": "Testing positive Doc",
"isActive": false,
"langCode": "eng",
"name": "DocCat",
"requesttime": "$TIMESTAMP$"
}'
output: '{
"errors": [
{
"errorCode": "KER-MSD-999",
"message": "request.code: must not be null"
}
]
}'
MasterData_UpdateDocumentCategory_Invalid_InputParameter_Code_Empty:
endPoint: /v1/masterdata/documentcategories
uniqueIdentifier: TC_Masterdata_UpdateDocumentCategory_04
description: Update Document Category with invalid Code value
role: admin
templateFields: ["name","description"]
restMethod: put
inputTemplate: masterdata/DocumentCategory/documentCategory
outputTemplate: masterdata/error
input: '{
"code": "",
"description": "Testing positive Doc",
"isActive": false,
"langCode": "eng",
"name": "DocCat",
"requesttime": "$TIMESTAMP$"
}'
output: '{
"errors": [
{
"errorCode": "KER-MSD-999",
"message": "request.code: Should not be blank or size must be between 1 and 36"
}
]
}'
MasterData_UpdateDocumentCategory_Invalid_InputParameter_Code_AboveMaxLen36:
endPoint: /v1/masterdata/documentcategories
uniqueIdentifier: TC_Masterdata_UpdateDocumentCategory_05
description: Update Document Category with Code value more than 36 characters
role: admin
templateFields: ["name","description"]
restMethod: put
inputTemplate: masterdata/DocumentCategory/documentCategory
outputTemplate: masterdata/error
input: '{
"code": "abcdefghijklmnopqrstuvwxyzabcdefghijk",
"description": "Testing positive Doc",
"isActive": false,
"langCode": "eng",
"name": "DocCat",
"requesttime": "$TIMESTAMP$"
}'
output: '{
"errors": [
{
"errorCode": "KER-MSD-999",
"message": "request.code: Should not be blank or size must be between 1 and 36"
}
]
}'
MasterData_UpdateDocumentCategory_Invalid_InputParameter_Description_AboveMaxLen128:
endPoint: /v1/masterdata/documentcategories
uniqueIdentifier: TC_Masterdata_UpdateDocumentCategory_06
description: Update Document Category with Descrpition value more than 128 characters
role: admin
templateFields: ["name","description"]
restMethod: put
inputTemplate: masterdata/DocumentCategory/documentCategory
outputTemplate: masterdata/error
input: '{
"code": "DocTestCode01",
"description": "abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxy",
"isActive": false,
"langCode": "eng",
"name": "DocCat",
"requesttime": "$TIMESTAMP$"
}'
output: '{
"errors": [
{
"errorCode": "KER-MSD-999",
"message": "request.description: size must be between 0 and 128"
}
]
}'
MasterData_UpdateDocumentCategory_Invalid_InputParameter_Name_Missing:
endPoint: /v1/masterdata/documentcategories
uniqueIdentifier: TC_Masterdata_UpdateDocumentCategory_07
description: Update Document Category with missing Name field
role: admin
templateFields: ["description"]
restMethod: put
inputTemplate: masterdata/DocumentCategory/documentCategory
outputTemplate: masterdata/error
input: '{
"code": "DocTestCode01",
"description": "Testing positive Doc",
"isActive": false,
"langCode": "eng",
"name": "$REMOVE$",
"requesttime": "$TIMESTAMP$"
}'
output: '{
"errors": [
{
"errorCode": "KER-MSD-999",
"message": "request.name: must not be null"
}
]
}'
MasterData_UpdateDocumentCategory_Invalid_InputParameter_Name_Empty:
endPoint: /v1/masterdata/documentcategories
uniqueIdentifier: TC_Masterdata_UpdateDocumentCategory_08
description: Update Document Category with empty Name value
role: admin
templateFields: ["description"]
restMethod: put
inputTemplate: masterdata/DocumentCategory/documentCategory
outputTemplate: masterdata/error
input: '{
"code": "DocTestCode01",
"description": "Testing positive Doc",
"isActive": false,
"langCode": "eng",
"name": "",
"requesttime": "$TIMESTAMP$"
}'
output: '{
"errors": [
{
"errorCode": "KER-MSD-999",
"message": "request.name: Should not be blank or size must be between 1 and 64"
}
]
}'
MasterData_UpdateDocumentCategory_Invalid_InputParameter_Name_AboveMaxLen64:
endPoint: /v1/masterdata/documentcategories
uniqueIdentifier: TC_Masterdata_UpdateDocumentCategory_09
description: Update Document Category with Name more than 64 characters
role: admin
templateFields: ["name","description"]
restMethod: put
inputTemplate: masterdata/DocumentCategory/documentCategory
outputTemplate: masterdata/error
input: '{
"code": "DocTestCode01",
"description": "Testing positive Doc",
"isActive": false,
"langCode": "eng",
"name": "abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklm",
"requesttime": "$TIMESTAMP$"
}'
output: '{
"errors": [
{
"errorCode": "KER-MSD-999",
"message": "request.name: Should not be blank or size must be between 1 and 64"
}
]
}'
© 2015 - 2025 Weber Informatics LLC | Privacy Policy