masterdata.Machine.CreateMachine.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!
CreateMachine:
Masterdata_CreateMachine_All_Valid_Smoke_sid:
endPoint: /v1/masterdata/machines
uniqueIdentifier: TC_Masterdata_CreateMachine_01
description: Create the machine details with valid data
role: globalAdmin
templateFields: ["name"]
restMethod: post
inputTemplate: masterdata/Machine/machine
outputTemplate: masterdata/Machine/machineResult
input: '{
"id":"123",
"ipAddress":"192.168.0.424",
"isActive":true,
"langCode":"eng",
"macAddress":"61-D3-FD-12-C9-ED",
"machineSpecId":"$ID:CreateMachineSpecification_All_Valid_Smoke_sid_id$",
"name":"Mach-Test",
"serialNum":"FB5962911687",
"validityDateTime":"2021-12-24T05:52:46.758Z",
"publicKey":"$PUBLICKEY$",
"signPublicKey":"$PUBLICKEY$",
"zoneCode":"$ID:CreateRegCenter_allValid_smoke_sid_zoneCode$",
"regCenterId":"$ID:CreateRegCenter_allValid_smoke_sid_id$",
"requesttime": "$TIMESTAMP$"
}'
output: '{
"id": "$IGNORE$",
"name": "Mach-Test",
"machineSpecId": "$IGNORE$",
"serialNum": "FB5962911687",
"ipAddress": "192.168.0.424",
"isActive": "$IGNORE$",
"macAddress": "61-D3-FD-12-C9-ED",
"zoneCode": "$IGNORE$",
"validityDateTime": "$IGNORE$"
}'
Masterdata_CreateMachine_Invalid_publicKey:
endPoint: /v1/masterdata/machines
uniqueIdentifier: TC_Masterdata_CreateMachine_02
description: Create the machine details with invalid publi key
role: globalAdmin
templateFields: ["name"]
restMethod: post
inputTemplate: masterdata/Machine/machine
outputTemplate: masterdata/error
input: '{
"id":"123",
"ipAddress":"192.168.0.424",
"isActive":true,
"langCode":"eng",
"macAddress":"61-D3-FD-12-C9-ED",
"machineSpecId":"1001",
"name":"Mach-Test1",
"serialNum":"FB5962911687",
"validityDateTime":"2021-12-24T05:52:46.758Z",
"publicKey":"anyRandomString",
"signPublicKey":"MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCPeK0rYSEqIhX1m4X8fk78zEhO7GTdzKE3spKlRqMc2l3fCDu0QjvC55F9saq+7fM8+oz/RDcLWOvsRl+4tLST5s86mKfsTjqmjnmUZTezSz8lb3/8YDl/K9TxOhpxXbYh9hvQ3J9Is7KECTzj1VAmmqc3HCrw/F8wC2T9wsLaIwIDAQAB",
"zoneCode":"$ZONE_CODE$",
"regCenterId":"$ID:CreateRegCenter_allValid_smoke_sid_id$",
"requesttime": "$TIMESTAMP$"
}'
output: '{
"errors": [
{
"errorCode": "KER-MSD-257",
"message": "Invalid public key provided"
}
]
}'
Masterdata_CreateMachine_Invalid_validitydate_Format:
endPoint: /v1/masterdata/machines
uniqueIdentifier: TC_Masterdata_CreateMachine_03
description: Create the machine details with invalid validity date format
role: admin
templateFields: ["name"]
restMethod: post
inputTemplate: masterdata/Machine/machine
outputTemplate: masterdata/error
input: '{
"id":"123",
"ipAddress":"192.168.0.424",
"isActive":true,
"langCode":"eng",
"macAddress":"61-D3-FD-12-C9-ED",
"machineSpecId":"1001",
"name":"Mach-Test1",
"serialNum":"FB5962911687",
"validityDateTime":"2018-12-24T05",
"publicKey":"MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCPeK0rYSEqIhX1m4X8fk78zEhO7GTdzKE3spKlRqMc2l3fCDu0QjvC55F9saq+7fM8+oz/RDcLWOvsRl+4tLST5s86mKfsTjqmjnmUZTezSz8lb3/8YDl/K9TxOhpxXbYh9hvQ3J9Is7KECTzj1VAmmqc3HCrw/F8wC2T9wsLaIwIDAQAB",
"signPublicKey":"MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCPeK0rYSEqIhX1m4X8fk78zEhO7GTdzKE3spKlRqMc2l3fCDu0QjvC55F9saq+7fM8+oz/RDcLWOvsRl+4tLST5s86mKfsTjqmjnmUZTezSz8lb3/8YDl/K9TxOhpxXbYh9hvQ3J9Is7KECTzj1VAmmqc3HCrw/F8wC2T9wsLaIwIDAQAB",
"zoneCode":"$ZONE_CODE$",
"regCenterId":"$ID:CreateRegCenter_allValid_smoke_sid_id$",
"requesttime": "$TIMESTAMP$"
}'
output: '{
"errors": [
{
"errorCode": "KER-MSD-999",
"message": "Invalid Format in field : validityDateTime"
}
]
}'
Masterdata_CreateMachine_Invalid_Machine_Zone:
endPoint: /v1/masterdata/machines
uniqueIdentifier: TC_Masterdata_CreateMachine_04
description: Create the machine details with invalid machine zone data
role: admin
templateFields: ["name"]
restMethod: post
inputTemplate: masterdata/Machine/machine
outputTemplate: masterdata/error
input: '{
"id":"123",
"ipAddress":"192.168.0.424",
"isActive":true,
"langCode":"eng",
"macAddress":"61-D3-FD-12-C9-ED",
"machineSpecId":"1001",
"name":"Mach-Test1",
"serialNum":"FB5962911687",
"validityDateTime":"2021-12-24T05:52:46.758Z",
"publicKey":"MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCPeK0rYSEqIhX1m4X8fk78zEhO7GTdzKE3spKlRqMc2l3fCDu0QjvC55F9saq+7fM8+oz/RDcLWOvsRl+4tLST5s86mKfsTjqmjnmUZTezSz8lb3/8YDl/K9TxOhpxXbYh9hvQ3J9Is7KECTzj1VAmmqc3HCrw/F8wC2T9wsLaIwIDAQAB",
"signPublicKey":"MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCPeK0rYSEqIhX1m4X8fk78zEhO7GTdzKE3spKlRqMc2l3fCDu0QjvC55F9saq+7fM8+oz/RDcLWOvsRl+4tLST5s86mKfsTjqmjnmUZTezSz8lb3/8YDl/K9TxOhpxXbYh9hvQ3J9Is7KECTzj1VAmmqc3HCrw/F8wC2T9wsLaIwIDAQAB",
"zoneCode":"BOM",
"regCenterId":"$ID:CreateRegCenter_allValid_smoke_sid_id$",
"requesttime": "$TIMESTAMP$"
}'
output: '{
"errors": [
{
"errorCode": "KER-MSD-255",
"message": "Admin not authorized to access this Machine for this Zone"
}
]
}'
Masterdata_CreateMachine_Invalid_Machine_Name_Blank:
endPoint: /v1/masterdata/machines
uniqueIdentifier: TC_Masterdata_CreateMachine_05
description: Create the machine details with machine name data as empty
role: admin
templateFields: ["name"]
restMethod: post
inputTemplate: masterdata/Machine/machine
outputTemplate: masterdata/error
input: '{
"id":"123",
"ipAddress":"192.168.0.424",
"isActive":true,
"langCode":"eng",
"macAddress":"61-D3-FD-12-C9-ED",
"machineSpecId":"1001",
"name":"",
"serialNum":"FB5962911687",
"validityDateTime":"2021-12-24T05:52:46.758Z",
"publicKey":"MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCPeK0rYSEqIhX1m4X8fk78zEhO7GTdzKE3spKlRqMc2l3fCDu0QjvC55F9saq+7fM8+oz/RDcLWOvsRl+4tLST5s86mKfsTjqmjnmUZTezSz8lb3/8YDl/K9TxOhpxXbYh9hvQ3J9Is7KECTzj1VAmmqc3HCrw/F8wC2T9wsLaIwIDAQAB",
"signPublicKey":"MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCPeK0rYSEqIhX1m4X8fk78zEhO7GTdzKE3spKlRqMc2l3fCDu0QjvC55F9saq+7fM8+oz/RDcLWOvsRl+4tLST5s86mKfsTjqmjnmUZTezSz8lb3/8YDl/K9TxOhpxXbYh9hvQ3J9Is7KECTzj1VAmmqc3HCrw/F8wC2T9wsLaIwIDAQAB",
"zoneCode":"$ZONE_CODE$",
"regCenterId":"$ID:CreateRegCenter_allValid_smoke_sid_id$",
"requesttime": "$TIMESTAMP$"
}'
output: '{
"errors": [
{
"errorCode": "KER-MSD-999",
"message": "request.name: Should not be blank or size must be between 1 and 64"
}
]
}'
Masterdata_CreateMachine_Invalid_Zone_Code_Blank:
endPoint: /v1/masterdata/machines
uniqueIdentifier: TC_Masterdata_CreateMachine_06
description: Create the machine details with machine zone as empty
role: admin
templateFields: ["name"]
restMethod: post
inputTemplate: masterdata/Machine/machine
outputTemplate: masterdata/error
input: '{
"id":"123",
"ipAddress":"192.168.0.424",
"isActive":true,
"langCode":"eng",
"macAddress":"61-D3-FD-12-C9-ED",
"machineSpecId":"1001",
"name":"Mach-Test1",
"serialNum":"FB5962911687",
"validityDateTime":"2021-12-24T05:52:46.758Z",
"publicKey":"MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCPeK0rYSEqIhX1m4X8fk78zEhO7GTdzKE3spKlRqMc2l3fCDu0QjvC55F9saq+7fM8+oz/RDcLWOvsRl+4tLST5s86mKfsTjqmjnmUZTezSz8lb3/8YDl/K9TxOhpxXbYh9hvQ3J9Is7KECTzj1VAmmqc3HCrw/F8wC2T9wsLaIwIDAQAB",
"signPublicKey":"MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCPeK0rYSEqIhX1m4X8fk78zEhO7GTdzKE3spKlRqMc2l3fCDu0QjvC55F9saq+7fM8+oz/RDcLWOvsRl+4tLST5s86mKfsTjqmjnmUZTezSz8lb3/8YDl/K9TxOhpxXbYh9hvQ3J9Is7KECTzj1VAmmqc3HCrw/F8wC2T9wsLaIwIDAQAB",
"zoneCode":"",
"regCenterId":"$ID:CreateRegCenter_allValid_smoke_sid_id$",
"requesttime": "$TIMESTAMP$"
}'
output: '{
"errors": [
{
"errorCode": "KER-MSD-999",
"message": "request.zoneCode: Should not be blank or size must be between 1 and 36"
}
]
}'
Masterdata_CreateMachine_Invalid_Zone_nonAccessable:
endPoint: /v1/masterdata/machines
uniqueIdentifier: TC_Masterdata_CreateMachine_07
description: Create the machine details with machine zone that is non accessible
role: admin
templateFields: ["name"]
restMethod: post
inputTemplate: masterdata/Machine/machine
outputTemplate: masterdata/error
input: '{
"id":"123",
"ipAddress":"192.168.0.424",
"isActive":true,
"langCode":"eng",
"macAddress":"61-D3-FD-12-C9-ED",
"machineSpecId":"$ID:CreateMachineSpecification_All_Valid_Smoke_sid_id$",
"name":"Mach-Test2",
"serialNum":"FB5962911687",
"validityDateTime":"2021-12-24T05:52:46.758Z",
"publicKey":"MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCPeK0rYSEqIhX1m4X8fk78zEhO7GTdzKE3spKlRqMc2l3fCDu0QjvC55F9saq+7fM8+oz/RDcLWOvsRl+4tLST5s86mKfsTjqmjnmUZTezSz8lb3/8YDl/K9TxOhpxXbYh9hvQ3J9Is7KECTzj1VAmmqc3HCrw/F8wC2T9wsLaIwIDAQAB",
"signPublicKey":"MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCPeK0rYSEqIhX1m4X8fk78zEhO7GTdzKE3spKlRqMc2l3fCDu0QjvC55F9saq+7fM8+oz/RDcLWOvsRl+4tLST5s86mKfsTjqmjnmUZTezSz8lb3/8YDl/K9TxOhpxXbYh9hvQ3J9Is7KECTzj1VAmmqc3HCrw/F8wC2T9wsLaIwIDAQAB",
"zoneCode":"STH",
"regCenterId":"$ID:CreateRegCenter_allValid_smoke_sid_id$",
"requesttime": "$TIMESTAMP$"
}'
output: '{
"errors": [
{
"errorCode": "KER-MSD-255",
"message": "Admin not authorized to access this Machine for this Zone"
}
]
}'
Masterdata_CreateMachine_Invalid_MAC_Address_Blank:
endPoint: /v1/masterdata/machines
uniqueIdentifier: TC_Masterdata_CreateMachine_08
description: Create the machine details with MC address as empty
role: admin
templateFields: ["name"]
restMethod: post
inputTemplate: masterdata/Machine/machine
outputTemplate: masterdata/error
input: '{
"id":"123",
"ipAddress":"192.168.0.424",
"isActive":true,
"langCode":"eng",
"macAddress":"",
"machineSpecId":"1001",
"name":"HMT",
"serialNum":"FB5962911687",
"validityDateTime":"2021-12-24T05:52:46.758Z",
"publicKey":"MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCPeK0rYSEqIhX1m4X8fk78zEhO7GTdzKE3spKlRqMc2l3fCDu0QjvC55F9saq+7fM8+oz/RDcLWOvsRl+4tLST5s86mKfsTjqmjnmUZTezSz8lb3/8YDl/K9TxOhpxXbYh9hvQ3J9Is7KECTzj1VAmmqc3HCrw/F8wC2T9wsLaIwIDAQAB",
"signPublicKey":"MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCPeK0rYSEqIhX1m4X8fk78zEhO7GTdzKE3spKlRqMc2l3fCDu0QjvC55F9saq+7fM8+oz/RDcLWOvsRl+4tLST5s86mKfsTjqmjnmUZTezSz8lb3/8YDl/K9TxOhpxXbYh9hvQ3J9Is7KECTzj1VAmmqc3HCrw/F8wC2T9wsLaIwIDAQAB",
"zoneCode":"$ZONE_CODE$",
"regCenterId":"$ID:CreateRegCenter_allValid_smoke_sid_id$",
"requesttime": "$TIMESTAMP$"
}'
output: '{
"errors": [
{
"errorCode": "KER-MSD-255",
"message": "Admin not authorized to access this Machine for this Zone"
}
]
}'
Masterdata_CreateMachine_inValid_MachineName_AboveMaxLen64:
endPoint: /v1/masterdata/machines
uniqueIdentifier: TC_Masterdata_CreateMachine_09
description: Create the machine details with a machine name exceeding the maximum length of 64 characters
role: admin
templateFields: []
restMethod: post
inputTemplate: masterdata/Machine/machine
outputTemplate: masterdata/error
input: '{
"id":"123",
"ipAddress":"192.168.0.424",
"isActive":true,
"langCode":"eng",
"macAddress":"61-D3-FD-12-C9-ED",
"machineSpecId":"1001",
"name":"abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklm",
"serialNum":"FB5962911687",
"validityDateTime":"2021-12-24T05:52:46.758Z",
"publicKey":"MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCPeK0rYSEqIhX1m4X8fk78zEhO7GTdzKE3spKlRqMc2l3fCDu0QjvC55F9saq+7fM8+oz/RDcLWOvsRl+4tLST5s86mKfsTjqmjnmUZTezSz8lb3/8YDl/K9TxOhpxXbYh9hvQ3J9Is7KECTzj1VAmmqc3HCrw/F8wC2T9wsLaIwIDAQAB",
"signPublicKey":"MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCPeK0rYSEqIhX1m4X8fk78zEhO7GTdzKE3spKlRqMc2l3fCDu0QjvC55F9saq+7fM8+oz/RDcLWOvsRl+4tLST5s86mKfsTjqmjnmUZTezSz8lb3/8YDl/K9TxOhpxXbYh9hvQ3J9Is7KECTzj1VAmmqc3HCrw/F8wC2T9wsLaIwIDAQAB",
"zoneCode":"$ZONE_CODE$",
"regCenterId":"$ID:CreateRegCenter_allValid_smoke_sid_id$",
"requesttime": "$TIMESTAMP$"
}'
output: '{
"errors": [
{
"errorCode": "KER-MSD-999",
"message": "request.name: Should not be blank or size must be between 1 and 64"
}
]
}'
Masterdata_CreateMachine_inValid_MacAddress_AboveMaxLen64:
endPoint: /v1/masterdata/machines
uniqueIdentifier: TC_Masterdata_CreateMachine_10
description: Create the machine details with a MAC address exceeding the maximum length of 64 characters
role: admin
templateFields: ["name"]
restMethod: post
inputTemplate: masterdata/Machine/machine
outputTemplate: masterdata/error
input: '{
"id":"123",
"ipAddress":"192.168.0.424",
"isActive":true,
"langCode":"eng",
"macAddress":"abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklm",
"machineSpecId":"1001",
"name":"Mach-Test2",
"serialNum":"FB5962911687",
"validityDateTime":"2021-12-24T05:52:46.758Z",
"publicKey":"MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCPeK0rYSEqIhX1m4X8fk78zEhO7GTdzKE3spKlRqMc2l3fCDu0QjvC55F9saq+7fM8+oz/RDcLWOvsRl+4tLST5s86mKfsTjqmjnmUZTezSz8lb3/8YDl/K9TxOhpxXbYh9hvQ3J9Is7KECTzj1VAmmqc3HCrw/F8wC2T9wsLaIwIDAQAB",
"signPublicKey":"MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCPeK0rYSEqIhX1m4X8fk78zEhO7GTdzKE3spKlRqMc2l3fCDu0QjvC55F9saq+7fM8+oz/RDcLWOvsRl+4tLST5s86mKfsTjqmjnmUZTezSz8lb3/8YDl/K9TxOhpxXbYh9hvQ3J9Is7KECTzj1VAmmqc3HCrw/F8wC2T9wsLaIwIDAQAB",
"zoneCode":"$ZONE_CODE$",
"regCenterId":"$ID:CreateRegCenter_allValid_smoke_sid_id$",
"requesttime": "$TIMESTAMP$"
}'
output: '{
"errors": [
{
"errorCode": "KER-MSD-999",
"message": "request.macAddress: Should not be blank or size must be between 0 and 64"
}
]
}'
Masterdata_CreateMachine_inValid_SerialNumber_AboveMaxLen64:
endPoint: /v1/masterdata/machines
uniqueIdentifier: TC_Masterdata_CreateMachine_11
description: Create the machine details with a serial number exceeding the maximum length of 64 characters
role: admin
templateFields: ["name"]
restMethod: post
inputTemplate: masterdata/Machine/machine
outputTemplate: masterdata/error
input: '{
"id":"123",
"ipAddress":"192.168.0.424",
"isActive":true,
"langCode":"eng",
"macAddress":"61-D3-FD-12-C9-ED",
"machineSpecId":"1001",
"name":"Mach-Test2",
"serialNum":"abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklm",
"validityDateTime":"2021-12-24T05:52:46.758Z",
"publicKey":"MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCPeK0rYSEqIhX1m4X8fk78zEhO7GTdzKE3spKlRqMc2l3fCDu0QjvC55F9saq+7fM8+oz/RDcLWOvsRl+4tLST5s86mKfsTjqmjnmUZTezSz8lb3/8YDl/K9TxOhpxXbYh9hvQ3J9Is7KECTzj1VAmmqc3HCrw/F8wC2T9wsLaIwIDAQAB",
"signPublicKey":"MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCPeK0rYSEqIhX1m4X8fk78zEhO7GTdzKE3spKlRqMc2l3fCDu0QjvC55F9saq+7fM8+oz/RDcLWOvsRl+4tLST5s86mKfsTjqmjnmUZTezSz8lb3/8YDl/K9TxOhpxXbYh9hvQ3J9Is7KECTzj1VAmmqc3HCrw/F8wC2T9wsLaIwIDAQAB",
"zoneCode":"$ZONE_CODE$",
"regCenterId":"$ID:CreateRegCenter_allValid_smoke_sid_id$",
"requesttime": "$TIMESTAMP$"
}'
output: '{
"errors": [
{
"errorCode": "KER-MSD-999",
"message": "request.serialNum: Should not be blank or size must be between 0 and 64"
}
]
}'
Masterdata_CreateMachine_inValid_IPAddress_AboveMaxLen17:
endPoint: /v1/masterdata/machines
uniqueIdentifier: TC_Masterdata_CreateMachine_12
description: Create the machine details with a IP address exceeding the maximum length of 17 characters
role: admin
templateFields: ["name"]
restMethod: post
inputTemplate: masterdata/Machine/machine
outputTemplate: masterdata/error
input: '{
"id":"123",
"ipAddress":"qwertyuiopasdfge18",
"isActive":true,
"langCode":"eng",
"macAddress":"61-D3-FD-12-C9-ED",
"machineSpecId":"1001",
"name":"Mach-Test2",
"serialNum":"FB5962911687",
"validityDateTime":"2021-12-24T05:52:46.758Z",
"publicKey":"MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCPeK0rYSEqIhX1m4X8fk78zEhO7GTdzKE3spKlRqMc2l3fCDu0QjvC55F9saq+7fM8+oz/RDcLWOvsRl+4tLST5s86mKfsTjqmjnmUZTezSz8lb3/8YDl/K9TxOhpxXbYh9hvQ3J9Is7KECTzj1VAmmqc3HCrw/F8wC2T9wsLaIwIDAQAB",
"signPublicKey":"MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCPeK0rYSEqIhX1m4X8fk78zEhO7GTdzKE3spKlRqMc2l3fCDu0QjvC55F9saq+7fM8+oz/RDcLWOvsRl+4tLST5s86mKfsTjqmjnmUZTezSz8lb3/8YDl/K9TxOhpxXbYh9hvQ3J9Is7KECTzj1VAmmqc3HCrw/F8wC2T9wsLaIwIDAQAB",
"zoneCode":"$ZONE_CODE$",
"regCenterId":"$ID:CreateRegCenter_allValid_smoke_sid_id$",
"requesttime": "$TIMESTAMP$"
}'
output: '{
"errors": [
{
"errorCode": "KER-MSD-999",
"message": "request.ipAddress: size must be between 0 and 17"
}
]
}'
Masterdata_CreateMachine_inValid_MSpecID_AboveMaxLen36:
endPoint: /v1/masterdata/machines
uniqueIdentifier: TC_Masterdata_CreateMachine_13
description: Create the machine details with a machine spec ID exceeding the maximum length of 64 characters
role: admin
templateFields: ["name"]
restMethod: post
inputTemplate: masterdata/Machine/machine
outputTemplate: masterdata/error
input: '{
"id":"123",
"ipAddress":"192.168.0.424",
"isActive":true,
"langCode":"eng",
"macAddress":"61-D3-FD-12-C9-ED",
"machineSpecId":"abcdefghijklmnopqrstuvwxyzabcdefghijk",
"name":"Mach-Test2",
"serialNum":"FB5962911687",
"validityDateTime":"2021-12-24T05:52:46.758Z",
"publicKey":"MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCPeK0rYSEqIhX1m4X8fk78zEhO7GTdzKE3spKlRqMc2l3fCDu0QjvC55F9saq+7fM8+oz/RDcLWOvsRl+4tLST5s86mKfsTjqmjnmUZTezSz8lb3/8YDl/K9TxOhpxXbYh9hvQ3J9Is7KECTzj1VAmmqc3HCrw/F8wC2T9wsLaIwIDAQAB",
"signPublicKey":"MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCPeK0rYSEqIhX1m4X8fk78zEhO7GTdzKE3spKlRqMc2l3fCDu0QjvC55F9saq+7fM8+oz/RDcLWOvsRl+4tLST5s86mKfsTjqmjnmUZTezSz8lb3/8YDl/K9TxOhpxXbYh9hvQ3J9Is7KECTzj1VAmmqc3HCrw/F8wC2T9wsLaIwIDAQAB",
"zoneCode":"$ZONE_CODE$",
"regCenterId":"$ID:CreateRegCenter_allValid_smoke_sid_id$",
"requesttime": "$TIMESTAMP$"
}'
output: '{
"errors": [
{
"errorCode": "KER-MSD-999",
"message": "request.machineSpecId: Should not be blank or size must be between 1 and 36"
}
]
}'
© 2015 - 2025 Weber Informatics LLC | Privacy Policy