All Downloads are FREE. Search and download functionalities are using the official Maven repository.

masterdata.Device.UpdateDevice.yml Maven / Gradle / Ivy

The newest version!
UpdateDevice:
   MasterData_UpdateDevice_All_Valid_Smoke_sid:
      endPoint: /v1/masterdata/devices
      uniqueIdentifier: TC_Masterdata_UpdateDevice_01
      description: Update Device with all valid data
      role: globalAdmin
      templateFields: ["name"]
      restMethod: put
      inputTemplate: masterdata/Device/createDevice
      outputTemplate: masterdata/Device/createDeviceResult
      input: '{
     "id": "$ID:CreateDevice_All_Valid_Smoke_sid_id$",
    "name": "testDevicedummy updated",
	"deviceSpecId": "743",
	"ipAddress": "172.23.174.113",
	"isActive": true,
	"langCode": "eng",
	"macAddress": "D4-3D-7E-C0-8C-4A",
	"zoneCode": "$ZONE_CODE$",
	"validityDateTime": "$TIMESTAMP$",
	"serialNum": "ceec5f62-77b7-46f3-816b-3e734305a9c8",
	"requesttime": "$TIMESTAMP$"
	}'
      output: '{
    "name": "testDevicedummy updated",
	"deviceSpecId": "743",
	"ipAddress": "172.23.174.113",
	"isActive": "$IGNORE$",
	"macAddress": "D4-3D-7E-C0-8C-4A",
	"zoneCode": "$IGNORE$",
	"validityDateTime": "$IGNORE$",
	"serialNum": "ceec5f62-77b7-46f3-816b-3e734305a9c8",
	"requesttime": "$TIMESTAMP$"
}'
   MasterData_UpdateDevice_Valid_Smoke_decommison_sid:
      endPoint: /v1/masterdata/devices
      uniqueIdentifier: TC_Masterdata_UpdateDevice_02
      description: Update Device with decommissioned sid
      role: globalAdmin
      templateFields: ["name"]
      restMethod: put
      inputTemplate: masterdata/Device/createDevice
      outputTemplate: masterdata/Device/createDeviceResult
      input: '{
     "id": "$ID:CreateDevice_Valid_Smoke_decommison_sid_id$",
    "name": "testDevicedummy updated",
	"deviceSpecId": "736",
	"ipAddress": "172.23.174.113",
	"isActive": true,
	"langCode": "eng",
	"macAddress": "D4-3D-7E-C0-8C-4A",
	"zoneCode": "$ZONE_CODE$",
	"validityDateTime": "$TIMESTAMP$",
	"serialNum": "ceec5f62-77b7-46f3-816b-3e734305a9c8",
	"requesttime": "$TIMESTAMP$"
	}'
      output: '{
    "name": "testDevicedummy updated",
	"deviceSpecId": "736",
	"ipAddress": "172.23.174.113",
	"isActive": "$IGNORE$",
	"macAddress": "D4-3D-7E-C0-8C-4A",
	"zoneCode": "$IGNORE$",
	"validityDateTime": "$IGNORE$",
	"serialNum": "ceec5f62-77b7-46f3-816b-3e734305a9c8",
	"requesttime": "$TIMESTAMP$"
}'
   MasterData_UpdateDevice_Invalid_InputParameterInvalid_Format:
      endPoint: /v1/masterdata/devices
      uniqueIdentifier: TC_Masterdata_UpdateDevice_03
      description: Update Device with invalid input format
      role: admin
      templateFields: ["name"]
      restMethod: put
      inputTemplate: masterdata/Device/createDevice
      outputTemplate: masterdata/error
      input: '{
     "id": "$ID:CreateDevice_All_Valid_Smoke_sid_id$",
    "name": "testDevicedummy_1",
	"deviceSpecId": "736",
	"ipAddress": "172.23.174.113",
	"isActive": true,
	"langCode": "eng",
	"macAddress": "D4-3D-7E-C0-8C-4A",
	"zoneCode": "$ZONE_CODE$",
	"validityDateTime": "2018-12-24T05",
	"serialNum": "ceec5f62-77b7-46f3-816b-3e734305a9c8",
	"requesttime": "$TIMESTAMP$"
	}'
      output: '{
   "errors": [
    {
      "errorCode": "KER-MSD-999",
      "message": "Invalid Format in field : validityDateTime"
    }
  ]
}'
   MasterData_UpdateDevice_Invalid_Device_Zone_notPresentInDB:
      endPoint: /v1/masterdata/devices
      uniqueIdentifier: TC_Masterdata_UpdateDevice_04
      description: Update Device with invalid zoneCode
      role: admin
      templateFields: ["name"]
      restMethod: put
      inputTemplate: masterdata/Device/createDevice
      outputTemplate: masterdata/error
      input: '{
     "id": "$ID:CreateDevice_All_Valid_Smoke_sid_id$",
    "name": "testDevicedummy_1",
	"deviceSpecId": "736",
	"ipAddress": "172.23.174.113",
	"isActive": true,
	"langCode": "eng",
	"macAddress": "D4-3D-7E-C0-8C-4A",
	"zoneCode": "BOM",
	"validityDateTime": "$TIMESTAMP$",
	"serialNum": "ceec5f62-77b7-46f3-816b-3e734305a9c8",
	"requesttime": "$TIMESTAMP$"
	}'
      output: '{
   "errors": [
    {
      "errorCode": "KER-MSD-439",
      "message": "Admin not authorized to access this Device for this Zone"
    }
  ]
}'
   MasterData_UpdateDevice_Invalid_Machine_Name_Blank:
      endPoint: /v1/masterdata/devices
      uniqueIdentifier: TC_Masterdata_UpdateDevice_05
      description: Update Device with empty name
      role: admin
      restMethod: put
      inputTemplate: masterdata/Device/createDevice
      outputTemplate: masterdata/error
      input: '{
     "id": "$ID:CreateDevice_All_Valid_Smoke_sid_id$",
    "name": "",
	"deviceSpecId": "736",
	"ipAddress": "172.23.174.113",
	"isActive": true,
	"langCode": "eng",
	"macAddress": "D4-3D-7E-C0-8C-4A",
	"zoneCode": "$ZONE_CODE$",
	"validityDateTime": "$TIMESTAMP$",
	"serialNum": "ceec5f62-77b7-46f3-816b-3e734305a9c8",
	"requesttime": "$TIMESTAMP$"
	}'
      output: '{
   "errors": [
    {
      "errorCode": "KER-MSD-999",
      "message": "request.name: Should not be blank or size must be between 1 and 64"
    }
  ]
}'
   MasterData_UpdateDevice_Invalid_DeviceName_AboveMaxLen64:
      endPoint: /v1/masterdata/devices
      uniqueIdentifier: TC_Masterdata_UpdateDevice_06
      description: Update Device with invalid device name more than 64 characters
      role: admin
      templateFields: ["name"]
      restMethod: put
      inputTemplate: masterdata/Device/createDevice
      outputTemplate: masterdata/error
      input: '{
     "id": "$ID:CreateDevice_All_Valid_Smoke_sid_id$",
    "name": "abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklm",
	"deviceSpecId": "736",
	"ipAddress": "172.23.174.113",
	"isActive": true,
	"langCode": "eng",
	"macAddress": "D4-3D-7E-C0-8C-4A",
	"zoneCode": "$ZONE_CODE$",
	"validityDateTime": "$TIMESTAMP$",
	"serialNum": "ceec5f62-77b7-46f3-816b-3e734305a9c8",
	"requesttime": "$TIMESTAMP$"
	}'
      output: '{
   "errors": [
    {
      "errorCode": "KER-MSD-999",
      "message": "request.name: Should not be blank or size must be between 1 and 64"
    }
  ]
}'
   MasterData_UpdateDevice_Invalid_Zone_Code_Blank:
      endPoint: /v1/masterdata/devices
      uniqueIdentifier: TC_Masterdata_UpdateDevice_07
      description: Update Device with empty zoneCode
      role: admin
      templateFields: ["name"]
      restMethod: put
      inputTemplate: masterdata/Device/createDevice
      outputTemplate: masterdata/error
      input: '{
     "id": "$ID:CreateDevice_All_Valid_Smoke_sid_id$",
    "name": "testDevicedummy_1",
	"deviceSpecId": "736",
	"ipAddress": "172.23.174.113",
	"isActive": true,
	"langCode": "eng",
	"macAddress": "D4-3D-7E-C0-8C-4A",
	"zoneCode": "",
	"validityDateTime": "$TIMESTAMP$",
	"serialNum": "ceec5f62-77b7-46f3-816b-3e734305a9c8",
	"requesttime": "$TIMESTAMP$"
	}'
      output: '{
   "errors": [
    {
      "errorCode": "KER-MSD-999",
      "message": "request.zoneCode: Should not be blank or size must be between 1 and 36"
    }
  ]
}'
   MasterData_UpdateDevice_Invalid_MAC_Address_Blank:
      endPoint: /v1/masterdata/devices
      uniqueIdentifier: TC_Masterdata_UpdateDevice_08
      description: Update Device with empty macAddress
      role: admin
      templateFields: ["name"]
      restMethod: put
      inputTemplate: masterdata/Device/createDevice
      outputTemplate: masterdata/error
      input: '{
     "id": "$ID:CreateDevice_All_Valid_Smoke_sid_id$",
    "name": "testDevicedummy_1",
	"deviceSpecId": "736",
	"ipAddress": "172.23.174.113",
	"isActive": true,
	"langCode": "eng",
	"macAddress": "",
	"zoneCode": "$ZONE_CODE$",
	"validityDateTime": "$TIMESTAMP$",
	"serialNum": "ceec5f62-77b7-46f3-816b-3e734305a9c8",
	"requesttime": "$TIMESTAMP$"
	}'
      output: '{
   "errors": [
    {
      "errorCode": "KER-MSD-999",
      "message": "request.macAddress: Should not be blank or size must be between 1 and 64"
    }
  ]
}'
   MasterData_UpdateDevice_Invalid_MacAddress_AboveMaxLen64:
      endPoint: /v1/masterdata/devices
      uniqueIdentifier: TC_Masterdata_UpdateDevice_09
      description: Update Device with invalid macAddress more than characters
      role: admin
      templateFields: ["name"]
      restMethod: put
      inputTemplate: masterdata/Device/createDevice
      outputTemplate: masterdata/error
      input: '{
     "id": "$ID:CreateDevice_All_Valid_Smoke_sid_id$",
    "name": "testDevicedummy_1",
	"deviceSpecId": "736",
	"ipAddress": "172.23.174.113",
	"isActive": true,
	"langCode": "eng",
	"macAddress": "abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklm",
	"zoneCode": "$ZONE_CODE$",
	"validityDateTime": "$TIMESTAMP$",
	"serialNum": "ceec5f62-77b7-46f3-816b-3e734305a9c8",
	"requesttime": "$TIMESTAMP$"
	}'
      output: '{
   "errors": [
    {
      "errorCode": "KER-MSD-999",
      "message": "request.macAddress: Should not be blank or size must be between 1 and 64"
    }
  ]
}'
   MasterData_UpdateDevice_Invalid_Serial_Number_Blank:
      endPoint: /v1/masterdata/devices
      uniqueIdentifier: TC_Masterdata_UpdateDevice_10
      description: Update Device with empty serialNum
      role: admin
      templateFields: ["name"]
      restMethod: put
      inputTemplate: masterdata/Device/createDevice
      outputTemplate: masterdata/error
      input: '{
     "id": "$ID:CreateDevice_All_Valid_Smoke_sid_id$",
    "name": "testDevicedummy_1",
	"deviceSpecId": "736",
	"ipAddress": "172.23.174.113",
	"isActive": true,
	"langCode": "eng",
	"macAddress": "D4-3D-7E-C0-8C-4A",
	"zoneCode": "$ZONE_CODE$",
	"validityDateTime": "$TIMESTAMP$",
	"serialNum": "",
	"requesttime": "$TIMESTAMP$"
	}'
      output: '{
   "errors": [
    {
      "errorCode": "KER-MSD-999",
      "message": "request.serialNum: Should not be blank or size must be between 1 and 64"
    }
  ]
}'
   MasterData_UpdateDevice_Invalid_SerialNumber_AboveMaxLen64:
      endPoint: /v1/masterdata/devices
      uniqueIdentifier: TC_Masterdata_UpdateDevice_11
      description: Update Device with invalid serialNum more than 64 characters
      role: admin
      templateFields: ["name"]
      restMethod: put
      inputTemplate: masterdata/Device/createDevice
      outputTemplate: masterdata/error
      input: '{
     "id": "$ID:CreateDevice_All_Valid_Smoke_sid_id$",
    "name": "testDevicedummy_1",
	"deviceSpecId": "736",
	"ipAddress": "172.23.174.113",
	"isActive": true,
	"langCode": "eng",
	"macAddress": "D4-3D-7E-C0-8C-4A",
	"zoneCode": "$ZONE_CODE$",
	"validityDateTime": "$TIMESTAMP$",
	"serialNum": "abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklm",
	"requesttime": "$TIMESTAMP$"
	}'
      output: '{
   "errors": [
    {
      "errorCode": "KER-MSD-999",
      "message": "request.serialNum: Should not be blank or size must be between 1 and 64"
    }
  ]
}'
   MasterData_UpdateDevice_Invalid_IPAddress_AboveMaxLen17:
      endPoint: /v1/masterdata/devices
      uniqueIdentifier: TC_Masterdata_UpdateDevice_12
      description: Update Device with invalid ipAddress more than 16 characters
      role: admin
      templateFields: ["name"]
      restMethod: put
      inputTemplate: masterdata/Device/createDevice
      outputTemplate: masterdata/error
      input: '{
     "id": "$ID:CreateDevice_All_Valid_Smoke_sid_id$",
    "name": "testDevicedummy_1",
	"deviceSpecId": "736",
	"ipAddress": "qwertyuiopasdfge18",
	"isActive": true,
	"langCode": "eng",
	"macAddress": "D4-3D-7E-C0-8C-4A",
	"zoneCode": "$ZONE_CODE$",
	"validityDateTime": "$TIMESTAMP$",
	"serialNum": "ceec5f62-77b7-46f3-816b-3e734305a9c8",
	"requesttime": "$TIMESTAMP$"
	}'
      output: '{
   "errors": [
    {
      "errorCode": "KER-MSD-999",
      "message": "request.ipAddress: size must be between 0 and 17"
    }
  ]
}'
   MasterData_UpdateDevice_Invalid_DSpecID_AboveMaxLen36:
      endPoint: /v1/masterdata/devices
      uniqueIdentifier: TC_Masterdata_UpdateDevice_13
      description: Update Device with invalid deviceSpecId more than 36 characters
      role: admin
      templateFields: ["name"]
      restMethod: put
      inputTemplate: masterdata/Device/createDevice
      outputTemplate: masterdata/error
      input: '{
     "id": "$ID:CreateDevice_All_Valid_Smoke_sid_id$",
    "name": "testDevicedummy_1",
	"deviceSpecId": "abcdefghijklmnopqrstuvwxyzabcdefghijk",
	"ipAddress": "172.23.174.113",
	"isActive": true,
	"langCode": "eng",
	"macAddress": "D4-3D-7E-C0-8C-4A",
	"zoneCode": "$ZONE_CODE$",
	"validityDateTime": "$TIMESTAMP$",
	"serialNum": "ceec5f62-77b7-46f3-816b-3e734305a9c8",
	"requesttime": "$TIMESTAMP$"
	}'
      output: '{
   "errors": [
    {
      "errorCode": "KER-MSD-999",
      "message": "request.deviceSpecId: Should not be blank or size must be between 1 and 36"
    }
  ]
}'




© 2015 - 2025 Weber Informatics LLC | Privacy Policy