masterdata.DeviceSpecification.UpdateDeviceSpecification.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!
UpdateDeviceSpecification:
MasterData_UpdateDeviceSpecification_All_Valid_Smoke:
endPoint: /v1/masterdata/devicespecifications
uniqueIdentifier: TC_Masterdata_UpdateDeviceSpecification_01
description: Update Device Specification with all valid data
role: admin
checkErrorsOnlyInResponse: true
templateFields: ["name","description"]
restMethod: put
inputTemplate: masterdata/DeviceSpecification/deviceSpecification
outputTemplate: masterdata/DeviceSpecification/deviceSpecificationResult
input: '{
"brand": "Techno DeviceSpec",
"description": "Test DeviceSpec updated",
"deviceTypeCode": "GST4",
"id": "$ID:CreateDeviceSpecification_All_Valid_Smoke_sid_id$",
"isActive": true,
"langCode": "eng",
"minDriverversion": "1.0",
"model": "2020",
"name": "Face scanner",
"requesttime": "$TIMESTAMP$"
}'
output: '{
"id": "$IGNORE$"
}'
MasterData_UpdateDeviceSpecification_InputParameter_Name_Missing:
endPoint: /v1/masterdata/devicespecifications
uniqueIdentifier: TC_Masterdata_UpdateDeviceSpecification_02
description: Update Device Specification with missing input parameter Name
role: admin
templateFields: ["description"]
restMethod: put
inputTemplate: masterdata/DeviceSpecification/deviceSpecification
outputTemplate: masterdata/error
input: '{
"brand": "Techno",
"description": "Techno DeviceSpec",
"deviceTypeCode": "CMR",
"id": "744",
"isActive": true,
"langCode": "eng",
"minDriverversion": "1.0",
"model": "2020",
"name": "$REMOVE$",
"requesttime": "$TIMESTAMP$"
}'
output: '{
"errors": [
{
"errorCode": "KER-MSD-999",
"message": "request.name: must not be null"
}
]
}'
MasterData_UpdateDeviceSpecification_InputParameter_Name_Empty:
endPoint: /v1/masterdata/devicespecifications
uniqueIdentifier: TC_Masterdata_UpdateDeviceSpecification_03
description: Update Device Specification with empty input parameter Name
role: admin
templateFields: ["description"]
restMethod: put
inputTemplate: masterdata/DeviceSpecification/deviceSpecification
outputTemplate: masterdata/error
input: '{
"brand": "Techno",
"description": "Techno DeviceSpec",
"deviceTypeCode": "CMR",
"id": "744",
"isActive": true,
"langCode": "eng",
"minDriverversion": "1.0",
"model": "2020",
"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_UpdateDeviceSpecification_InputParameter_Name_AboveMaxLen64:
endPoint: /v1/masterdata/devicespecifications
uniqueIdentifier: TC_Masterdata_UpdateDeviceSpecification_04
description: Update Device Specification with Name more than 64 charectars
role: admin
templateFields: ["description"]
restMethod: put
inputTemplate: masterdata/DeviceSpecification/deviceSpecification
outputTemplate: masterdata/error
input: '{
"brand": "Techno",
"description": "Techno DeviceSpec",
"deviceTypeCode": "CMR",
"id": "744",
"isActive": true,
"langCode": "eng",
"minDriverversion": "1.0",
"model": "2020",
"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"
}
]
}'
MasterData_UpdateDeviceSpecification_InputParameter_Brand_Missing:
endPoint: /v1/masterdata/devicespecifications
uniqueIdentifier: TC_Masterdata_UpdateDeviceSpecification_05
description: Update Device Specification with missing input parameter Brand
role: admin
templateFields: ["name","description"]
restMethod: put
inputTemplate: masterdata/DeviceSpecification/deviceSpecification
outputTemplate: masterdata/error
input: '{
"brand": "$REMOVE$",
"description": "Techno DeviceSpec",
"deviceTypeCode": "CMR",
"id": "744",
"isActive": true,
"langCode": "eng",
"minDriverversion": "1.0",
"model": "2020",
"name": "Cam",
"requesttime": "$TIMESTAMP$"
}'
output: '{
"errors": [
{
"errorCode": "KER-MSD-999",
"message": "request.brand: must not be null"
}
]
}'
MasterData_UpdateDeviceSpecification_InputParameter_Brand_Empty:
endPoint: /v1/masterdata/devicespecifications
uniqueIdentifier: TC_Masterdata_UpdateDeviceSpecification_06
description: Update Device Specification with empty input parameter Brand
role: admin
templateFields: ["name","description"]
restMethod: put
inputTemplate: masterdata/DeviceSpecification/deviceSpecification
outputTemplate: masterdata/error
input: '{
"brand": "",
"description": "Techno DeviceSpec",
"deviceTypeCode": "CMR",
"id": "744",
"isActive": true,
"langCode": "eng",
"minDriverversion": "1.0",
"model": "2020",
"name": "Cam",
"requesttime": "$TIMESTAMP$"
}'
output: '{
"errors": [
{
"errorCode": "KER-MSD-999",
"message": "request.brand: Should not be blank or size must be between 1 and 32"
}
]
}'
MasterData_UpdateDeviceSpecification_InputParameter_Brand_AboveMaxLen32:
endPoint: /v1/masterdata/devicespecifications
uniqueIdentifier: TC_Masterdata_UpdateDeviceSpecification_07
description: Update Device Specification with Brand more than 32 charectars
role: admin
templateFields: ["name","description"]
restMethod: put
inputTemplate: masterdata/DeviceSpecification/deviceSpecification
outputTemplate: masterdata/error
input: '{
"brand": "abcdefghijklmnopqrstuvwxyzabcdefghijk",
"description": "Techno DeviceSpec",
"deviceTypeCode": "CMR",
"id": "744",
"isActive": true,
"langCode": "eng",
"minDriverversion": "1.0",
"model": "2020",
"name": "Cam",
"requesttime": "$TIMESTAMP$"
}'
output: '{
"errors": [
{
"errorCode": "KER-MSD-999",
"message": "request.brand: Should not be blank or size must be between 1 and 32"
}
]
}'
MasterData_UpdateDeviceSpecification_InputParameter_Model_Missing:
endPoint: /v1/masterdata/devicespecifications
uniqueIdentifier: TC_Masterdata_UpdateDeviceSpecification_08
description: Update Device Specification with missing input parameter Model
role: admin
templateFields: ["name","description"]
restMethod: put
inputTemplate: masterdata/DeviceSpecification/deviceSpecification
outputTemplate: masterdata/error
input: '{
"brand": "Techno",
"description": "Techno DeviceSpec",
"deviceTypeCode": "CMR",
"id": "744",
"isActive": true,
"langCode": "eng",
"minDriverversion": "1.0",
"model": "$REMOVE$",
"name": "Cam",
"requesttime": "$TIMESTAMP$"
}'
output: '{
"errors": [
{
"errorCode": "KER-MSD-999",
"message": "request.model: must not be null"
}
]
}'
MasterData_UpdateDeviceSpecification_InputParameter_Model_Empty:
endPoint: /v1/masterdata/devicespecifications
uniqueIdentifier: TC_Masterdata_UpdateDeviceSpecification_09
description: Update Device Specification with empty input parameter Model
role: admin
templateFields: ["name","description"]
restMethod: put
inputTemplate: masterdata/DeviceSpecification/deviceSpecification
outputTemplate: masterdata/error
input: '{
"brand": "Techno",
"description": "Techno DeviceSpec",
"deviceTypeCode": "CMR",
"id": "744",
"isActive": true,
"langCode": "eng",
"minDriverversion": "1.0",
"model": "",
"name": "Cam",
"requesttime": "$TIMESTAMP$"
}'
output: '{
"errors": [
{
"errorCode": "KER-MSD-999",
"message": "request.model: Should not be blank or size must be between 1 and 16"
}
]
}'
MasterData_UpdateDeviceSpecification_InputParameter_Model_AboveMaxLen16:
endPoint: /v1/masterdata/devicespecifications
uniqueIdentifier: TC_Masterdata_UpdateDeviceSpecification_10
description: Update Device Specification with Model more than 16 charectars
role: admin
templateFields: ["name","description"]
restMethod: put
inputTemplate: masterdata/DeviceSpecification/deviceSpecification
outputTemplate: masterdata/error
input: '{
"brand": "Techno",
"description": "Techno DeviceSpec",
"deviceTypeCode": "CMR",
"id": "744",
"isActive": true,
"langCode": "eng",
"minDriverversion": "1.0",
"model": "qwertyuiopasdfg17",
"name": "Cam",
"requesttime": "$TIMESTAMP$"
}'
output: '{
"errors": [
{
"errorCode": "KER-MSD-999",
"message": "request.model: Should not be blank or size must be between 1 and 16"
}
]
}'
MasterData_UpdateDeviceSpecification_InputParameter_DeviceTypeCode_Missing:
endPoint: /v1/masterdata/devicespecifications
uniqueIdentifier: TC_Masterdata_UpdateDeviceSpecification_11
description: Update Device Specification with missing input parameter Device Type Code
role: admin
templateFields: ["name","description"]
restMethod: put
inputTemplate: masterdata/DeviceSpecification/deviceSpecification
outputTemplate: masterdata/error
input: '{
"brand": "Techno",
"description": "Techno DeviceSpec",
"deviceTypeCode": "$REMOVE$",
"id": "744",
"isActive": true,
"langCode": "eng",
"minDriverversion": "1.0",
"model": "2020",
"name": "Cam",
"requesttime": "$TIMESTAMP$"
}'
output: '{
"errors": [
{
"errorCode": "KER-MSD-999",
"message": "request.deviceTypeCode: must not be null"
}
]
}'
MasterData_UpdateDeviceSpecification_InputParameter_DeviceTypeCode_Empty:
endPoint: /v1/masterdata/devicespecifications
uniqueIdentifier: TC_Masterdata_UpdateDeviceSpecification_12
description: Update Device Specification with empty input parameter Device Type Code
role: admin
templateFields: ["name","description"]
restMethod: put
inputTemplate: masterdata/DeviceSpecification/deviceSpecification
outputTemplate: masterdata/error
input: '{
"brand": "Techno",
"description": "Techno DeviceSpec",
"deviceTypeCode": "",
"id": "744",
"isActive": true,
"langCode": "eng",
"minDriverversion": "1.0",
"model": "2020",
"name": "Cam",
"requesttime": "$TIMESTAMP$"
}'
output: '{
"errors": [
{
"errorCode": "KER-MSD-999",
"message": "request.deviceTypeCode: Should not be blank or size must be between 1 and 36"
}
]
}'
MasterData_UpdateDeviceSpecification_InputParameter_DeviceTypeCode_AboveMaxLen36:
endPoint: /v1/masterdata/devicespecifications
uniqueIdentifier: TC_Masterdata_UpdateDeviceSpecification_13
description: Update Device Specification with Device Type Code motre than 36 charectars
role: admin
templateFields: ["name","description"]
restMethod: put
inputTemplate: masterdata/DeviceSpecification/deviceSpecification
outputTemplate: masterdata/error
input: '{
"brand": "Techno",
"description": "Techno DeviceSpec",
"deviceTypeCode": "abcdefghijklmnopqrstuvwxyzabcdefghijk",
"id": "744",
"isActive": true,
"langCode": "eng",
"minDriverversion": "1.0",
"model": "2020",
"name": "Cam",
"requesttime": "$TIMESTAMP$"
}'
output: '{
"errors": [
{
"errorCode": "KER-MSD-999",
"message": "request.deviceTypeCode: Should not be blank or size must be between 1 and 36"
}
]
}'
MasterData_UpdateDeviceSpecification_InputParameter_Invalid_DeviceTypeCode:
endPoint: /v1/masterdata/devicespecifications
uniqueIdentifier: TC_Masterdata_UpdateDeviceSpecification_14
description: Update Device Specification with invalid input parameter Device Type Code
role: admin
templateFields: ["name","description"]
restMethod: put
inputTemplate: masterdata/DeviceSpecification/deviceSpecification
outputTemplate: masterdata/error
input: '{
"brand": "Techno",
"description": "Techno DeviceSpec",
"deviceTypeCode": "DMR",
"id": "744",
"isActive": true,
"langCode": "eng",
"minDriverversion": "1.0",
"model": "2020",
"name": "Cam",
"requesttime": "$TIMESTAMP$"
}'
output: '{
"errors": [
{
"errorCode": "KER-MSD-714",
"message": "Invalid dtype_code received"
}
]
}'
MasterData_UpdateDeviceSpecification_InputParameter_MinDriverversion_Missing:
endPoint: /v1/masterdata/devicespecifications
uniqueIdentifier: TC_Masterdata_UpdateDeviceSpecification_15
description: Update Device Specification with missing input parameter Minimum Driver Version
role: admin
templateFields: ["name","description"]
restMethod: put
inputTemplate: masterdata/DeviceSpecification/deviceSpecification
outputTemplate: masterdata/error
input: '{
"brand": "Techno",
"description": "Techno DeviceSpec",
"deviceTypeCode": "CMR",
"id": "744",
"isActive": true,
"langCode": "eng",
"minDriverversion": "$REMOVE$",
"model": "2020",
"name": "Cam",
"requesttime": "$TIMESTAMP$"
}'
output: '{
"errors": [
{
"errorCode": "KER-MSD-999",
"message": "request.minDriverversion: must not be null"
}
]
}'
MasterData_UpdateDeviceSpecification_InputParameter_MinDriverversion_Empty:
endPoint: /v1/masterdata/devicespecifications
uniqueIdentifier: TC_Masterdata_UpdateDeviceSpecification_16
description: Update Device Specification with empty input parameter Minimum Driver Version
role: admin
templateFields: ["name","description"]
restMethod: put
inputTemplate: masterdata/DeviceSpecification/deviceSpecification
outputTemplate: masterdata/error
input: '{
"brand": "Techno",
"description": "Techno DeviceSpec",
"deviceTypeCode": "CMR",
"id": "744",
"isActive": true,
"langCode": "eng",
"minDriverversion": "",
"model": "2020",
"name": "Cam",
"requesttime": "$TIMESTAMP$"
}'
output: '{
"errors": [
{
"errorCode": "KER-MSD-999",
"message": "request.minDriverversion: Should not be blank or size must be between 1 and 16"
}
]
}'
MasterData_UpdateDeviceSpecification_InputParameter_MinDriverversion_AboveMaxLen16:
endPoint: /v1/masterdata/devicespecifications
uniqueIdentifier: TC_Masterdata_UpdateDeviceSpecification_17
role: admin
templateFields: ["name","description"]
description: Update Device Specification with Minimum Driver Version more than 64 charectars
restMethod: put
inputTemplate: masterdata/DeviceSpecification/deviceSpecification
outputTemplate: masterdata/error
input: '{
"brand": "Techno",
"description": "Techno DeviceSpec",
"deviceTypeCode": "CMR",
"id": "744",
"isActive": true,
"langCode": "eng",
"minDriverversion": "qwertyuiopasdfg17",
"model": "2020",
"name": "Cam",
"requesttime": "$TIMESTAMP$"
}'
output: '{
"errors": [
{
"errorCode": "KER-MSD-999",
"message": "request.minDriverversion: Should not be blank or size must be between 1 and 16"
}
]
}'
MasterData_UpdateDeviceSpecification_InputParameter_Description_AboveMaxLen256:
endPoint: /v1/masterdata/devicespecifications
uniqueIdentifier: TC_Masterdata_UpdateDeviceSpecification_18
description: Update Device Specification with Description more than 256 charectars
role: admin
templateFields: ["name"]
restMethod: put
inputTemplate: masterdata/DeviceSpecification/deviceSpecification
outputTemplate: masterdata/error
input: '{
"brand": "Techno",
"description": "abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvW",
"deviceTypeCode": "CMR",
"id": "744",
"isActive": true,
"langCode": "eng",
"minDriverversion": "1.0",
"model": "2020",
"name": "Cam",
"requesttime": "$TIMESTAMP$"
}'
output: '{
"errors": [
{
"errorCode": "KER-MSD-999",
"message": "request.description: size must be between 0 and 256"
}
]
}'
© 2015 - 2025 Weber Informatics LLC | Privacy Policy