masterdata.FetchMachine.FetchMachine.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!
FetchMachine:
Masterdata_FetchMachine_allValid_smoke:
endPoint: /v1/masterdata/machines
uniqueIdentifier: TC_Masterdata_FetchMachine_01
description: Retrieve Machine details with all valid data
role: admin
restMethod: get
inputTemplate: masterdata/FetchMachine/fetchMachine
outputTemplate: masterdata/FetchMachine/fetchMachineResult
input: '{
"id": "$REMOVE$",
"langcode": "$REMOVE$",
"regCenterId": "$REMOVE$"
}'
output: '{
"machines": [{
"isActive": true
}]
}'
Masterdata_FetchMachine_allValid_smoke_with_id:
endPoint: /v1/masterdata/machines/{id}
uniqueIdentifier: TC_Masterdata_FetchMachine_02
description: Retrieve Machine details using id with all valid data
role: admin
restMethod: get
inputTemplate: masterdata/FetchMachine/fetchMachine
outputTemplate: masterdata/FetchMachine/fetchMachineResult
input: '{
"id": "$ID:CreateMachine_All_Valid_Smoke_sid_id$",
"langcode": "$REMOVE$",
"regCenterId": "$REMOVE$"
}'
output: '{
"machines": [{
"isActive": true
}]
}'
Masterdata_FetchMachine_allValid_smoke_with_regCenterId:
endPoint: /v1/masterdata/machines/mappedmachines/{regCenterId}
uniqueIdentifier: TC_Masterdata_FetchMachine_03
description: Retrieve Machine details mapped to a valid regCenterId
role: admin
restMethod: get
inputTemplate: masterdata/FetchMachine/fetchMachine
outputTemplate: masterdata/FetchMachine/fetchMachineByCenterResult
input: '{
"id": "$REMOVE$",
"langcode": "$REMOVE$",
"regCenterId": "$ID:CreateRegCenter_allValid_smoke_sid_id$"
}'
output: '{
"data": [{
"isActive": "true"
}]
}'
Masterdata_FetchMachine_inValid_regCenterId:
endPoint: /v1/masterdata/machines/mappedmachines/{regCenterId}
uniqueIdentifier: TC_Masterdata_FetchMachine_04
description: Retrieve Machine details mapped to a invalid regCenterId
role: admin
restMethod: get
inputTemplate: masterdata/FetchMachine/fetchMachine
outputTemplate: masterdata/error
input: '{
"id": "$REMOVE$",
"langcode": "$REMOVE$",
"regCenterId": "1@222"
}'
output: '{
"errors": [
{
"errorCode": "KER-MSD-030",
"message": "Machine not Found"
}
]
}'
© 2015 - 2025 Weber Informatics LLC | Privacy Policy