masterdata.Template.UpdateTemplate.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!
UpdateTemplate:
MasterData_UpdateTemplate_All_Valid_Smoke:
endPoint: /v1/masterdata/templates
uniqueIdentifier: TC_Masterdata_UpdateTemplate_01
description: Update template with valid details
role: admin
checkErrorsOnlyInResponse: true
templateFields: ["description","name"]
restMethod: put
inputTemplate: masterdata/Template/template
outputTemplate: masterdata/Template/templateResult
input: '{
"description": "test template updated",
"fileFormatCode": "json",
"fileText": "abc",
"id": "$ID:CreateTemplate_All_Valid_Smoke_sid_id$",
"isActive": true,
"langCode": "eng",
"model": "model-1",
"moduleId": "10001",
"moduleName": "Pre-Registration",
"name": "Test-template",
"templateTypeCode": "Test-info-Template-auto",
"requesttime": "$TIMESTAMP$"
}'
output: '{
"id": "$IGNORE$"
}'
MasterData_UpdateTemplate_InputParameter_Name_Missing:
endPoint: /v1/masterdata/templates
uniqueIdentifier: TC_Masterdata_UpdateTemplate_02
description: Update template with input paramater name as missing
role: admin
templateFields: ["description"]
restMethod: put
inputTemplate: masterdata/Template/template
outputTemplate: masterdata/error
input: '{
"description": "test template",
"fileFormatCode": "Doc",
"fileText": "abc",
"id": "test-03",
"isActive": false,
"langCode": "eng",
"model": "model-1",
"moduleId": "10001",
"moduleName": "Pre-Registration",
"name": "$REMOVE$",
"templateTypeCode": "Test-info-Template-auto",
"requesttime": "$TIMESTAMP$"
}'
output: '{
"errors": [
{
"errorCode": "KER-MSD-999",
"message": "request.name: must not be null"
}
]
}'
MasterData_UpdateTemplate_InputParameter_Name_Empty:
endPoint: /v1/masterdata/templates
uniqueIdentifier: TC_Masterdata_UpdateTemplate_03
description: Update template with input paramater name as empty
role: admin
templateFields: ["description"]
restMethod: put
inputTemplate: masterdata/Template/template
outputTemplate: masterdata/error
input: '{
"description": "test template",
"fileFormatCode": "Doc",
"fileText": "abc",
"id": "test-03",
"isActive": false,
"langCode": "eng",
"model": "model-1",
"moduleId": "10001",
"moduleName": "Pre-Registration",
"name": "",
"templateTypeCode": "Test-info-Template-auto",
"requesttime": "$TIMESTAMP$"
}'
output: '{
"errors": [
{
"errorCode": "KER-MSD-999",
"message": "request.name: Should not be blank or size must be between 1 and 128"
}
]
}'
MasterData_UpdateTemplate_InputParameter_Name_AboveMaxLen128:
endPoint: /v1/masterdata/templates
uniqueIdentifier: TC_Masterdata_UpdateTemplate_04
description: Update a template with the input parameter name exceeding the maximum length of 128 characters
role: admin
templateFields: ["description"]
restMethod: put
inputTemplate: masterdata/Template/template
outputTemplate: masterdata/error
input: '{
"description": "test template",
"fileFormatCode": "Doc",
"fileText": "abc",
"id": "test-03",
"isActive": false,
"langCode": "eng",
"model": "model-1",
"moduleId": "10001",
"moduleName": "Pre-Registration",
"name": "abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxy",
"templateTypeCode": "Test-info-Template-auto",
"requesttime": "$TIMESTAMP$"
}'
output: '{
"errors": [
{
"errorCode": "KER-MSD-999",
"message": "request.name: Should not be blank or size must be between 1 and 128"
}
]
}'
MasterData_UpdateTemplate_InputParameter_FileFormatCode_Missing:
endPoint: /v1/masterdata/templates
uniqueIdentifier: TC_Masterdata_UpdateTemplate_05
description: Update template with the input parameter file format code as missing
role: admin
templateFields: ["description","name"]
restMethod: put
inputTemplate: masterdata/Template/template
outputTemplate: masterdata/error
input: '{
"description": "test template",
"fileFormatCode": "$REMOVE$",
"fileText": "abc",
"id": "test-03",
"isActive": false,
"langCode": "eng",
"model": "model-1",
"moduleId": "10001",
"moduleName": "Pre-Registration",
"name": "Test-template",
"templateTypeCode": "Test-info-Template-auto",
"requesttime": "$TIMESTAMP$"
}'
output: '{
"errors": [
{
"errorCode": "KER-MSD-999",
"message": "request.fileFormatCode: must not be null"
}
]
}'
MasterData_UpdateTemplate_InputParameter_FileFormatCode_Empty:
endPoint: /v1/masterdata/templates
uniqueIdentifier: TC_Masterdata_UpdateTemplate_06
description: Update a template with the input parameter file format code as empty
role: admin
templateFields: ["description","name"]
restMethod: put
inputTemplate: masterdata/Template/template
outputTemplate: masterdata/error
input: '{
"description": "test template",
"fileFormatCode": "",
"fileText": "abc",
"id": "test-03",
"isActive": false,
"langCode": "eng",
"model": "model-1",
"moduleId": "10001",
"moduleName": "Pre-Registration",
"name": "Test-template",
"templateTypeCode": "Test-info-Template-auto",
"requesttime": "$TIMESTAMP$"
}'
output: '{
"errors": [
{
"errorCode": "KER-MSD-999",
"message": "request.fileFormatCode: Should not be blank or size must be between 1 and 36"
}
]
}'
MasterData_UpdateTemplate_InputParameter_FileFormatCode_AboveMaxLen36:
endPoint: /v1/masterdata/templates
uniqueIdentifier: TC_Masterdata_UpdateTemplate_07
description: Update a template with the input parameter file format code exceeding the maximum length of 36 characters
role: admin
templateFields: ["description","name"]
restMethod: put
inputTemplate: masterdata/Template/template
outputTemplate: masterdata/error
input: '{
"description": "test template",
"fileFormatCode": "abcdefghijklmnopqrstuvwxyzabcdefghijk",
"fileText": "abc",
"id": "test-03",
"isActive": false,
"langCode": "eng",
"model": "model-1",
"moduleId": "10001",
"moduleName": "Pre-Registration",
"name": "Test-template",
"templateTypeCode": "Test-info-Template-auto",
"requesttime": "$TIMESTAMP$"
}'
output: '{
"errors": [
{
"errorCode": "KER-MSD-999",
"message": "request.fileFormatCode: Should not be blank or size must be between 1 and 36"
}
]
}'
MasterData_UpdateTemplate_InputParameter_ModuleName_AboveMaxLen128:
endPoint: /v1/masterdata/templates
uniqueIdentifier: TC_Masterdata_UpdateTemplate_08
description: Update a template with the input parameter module name exceeding the maximum length of 128 characters
role: admin
templateFields: ["description","name"]
restMethod: put
inputTemplate: masterdata/Template/template
outputTemplate: masterdata/error
input: '{
"description": "test template",
"fileFormatCode": "Doc",
"fileText": "abc",
"id": "test-03",
"isActive": false,
"langCode": "eng",
"model": "model-1",
"moduleId": "10001",
"moduleName": "abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxy",
"name": "Test-template",
"templateTypeCode": "Test-info-Template-auto",
"requesttime": "$TIMESTAMP$"
}'
output: '{
"errors": [
{
"errorCode": "KER-MSD-999",
"message": "request.moduleName: size must be between 0 and 128"
}
]
}'
MasterData_UpdateTemplate_InputParameter_TemplateTypeCode_Missing:
endPoint: /v1/masterdata/templates
uniqueIdentifier: TC_Masterdata_UpdateTemplate_09
description: Update a template with the input parameter template type code as missing
role: admin
templateFields: ["description","name"]
restMethod: put
inputTemplate: masterdata/Template/template
outputTemplate: masterdata/error
input: '{
"description": "test template",
"fileFormatCode": "Doc",
"fileText": "abc",
"id": "test-03",
"isActive": false,
"langCode": "eng",
"model": "model-1",
"moduleId": "10001",
"moduleName": "Pre-Registration",
"name": "Test-template",
"templateTypeCode": "$REMOVE$",
"requesttime": "$TIMESTAMP$"
}'
output: '{
"errors": [
{
"errorCode": "KER-MSD-999",
"message": "request.templateTypeCode: must not be null"
}
]
}'
MasterData_UpdateTemplate_InputParameter_TemplateTypeCode_Empty:
endPoint: /v1/masterdata/templates
uniqueIdentifier: TC_Masterdata_UpdateTemplate_10
description: Update a template with the input parameter template type code as empty
role: admin
templateFields: ["description","name"]
restMethod: put
inputTemplate: masterdata/Template/template
outputTemplate: masterdata/error
input: '{
"description": "test template",
"fileFormatCode": "Doc",
"fileText": "abc",
"id": "test-03",
"isActive": false,
"langCode": "eng",
"model": "model-1",
"moduleId": "10001",
"moduleName": "Pre-Registration",
"name": "Test-template",
"templateTypeCode": "",
"requesttime": "$TIMESTAMP$"
}'
output: '{
"errors": [
{
"errorCode": "KER-MSD-999",
"message": "request.templateTypeCode: Should not be blank or size must be between 1 and 36"
}
]
}'
MasterData_UpdateTemplate_InputParameter_TemplateTypeCode_AboveMaxLen36:
endPoint: /v1/masterdata/templates
uniqueIdentifier: TC_Masterdata_UpdateTemplate_11
description: Update a template with the input parameter template type code exceeding the maximum length of 36 characters
role: admin
templateFields: ["description","name"]
restMethod: put
inputTemplate: masterdata/Template/template
outputTemplate: masterdata/error
input: '{
"description": "test template",
"fileFormatCode": "Doc",
"fileText": "abc",
"id": "test-03",
"isActive": false,
"langCode": "eng",
"model": "model-1",
"moduleId": "10001",
"moduleName": "Pre-Registration",
"name": "Test-template",
"templateTypeCode": "abcdefghijklmnopqrstuvwxyzabcdefghijk",
"requesttime": "$TIMESTAMP$"
}'
output: '{
"errors": [
{
"errorCode": "KER-MSD-999",
"message": "request.templateTypeCode: Should not be blank or size must be between 1 and 36"
}
]
}'
© 2015 - 2025 Weber Informatics LLC | Privacy Policy