masterdata.ZoneUser.CreateZoneUser.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!
CreateZoneUser:
MasterData_CreateZoneUser_All_Valid_Smoke_Sid:
endPoint: /v1/masterdata/zoneuser
uniqueIdentifier: TC_Masterdata_CreateZoneUser_01
description: Create zone user with valid user data
role: globalAdmin
checkErrorsOnlyInResponse: true
restMethod: post
inputTemplate: masterdata/ZoneUser/zoneUser
outputTemplate: masterdata/ZoneUser/zoneUserResult
input: '{
"zoneCode": "$ID:CreateRegCenter_allValid_smoke_sid_zoneCode$",
"userId": "masterdata-220005",
"isActive": true,
"langCode": "eng",
"requesttime": "$TIMESTAMP$"
}'
output: '{
}'
MasterData_CreateZoneUser__Empty_UserID_Valid:
endPoint: /v1/masterdata/zoneuser
uniqueIdentifier: TC_Masterdata_CreateZoneUser_02
description: Create zone user with user ID as empty
role: admin
restMethod: post
inputTemplate: masterdata/ZoneUser/zoneUser
outputTemplate: masterdata/error
input: '{
"zoneCode": "$ZONE_CODE$",
"userId": "",
"isActive": true,
"langCode": "eng",
"requesttime": "$TIMESTAMP$"
}'
output: '{
"errors": [
{
"errorCode": "KER-MSD-999",
"message": "$IGNORE$"
}
]
}'
MasterData_CreateZoneUser__Empty_zoneCode_Valid:
endPoint: /v1/masterdata/zoneuser
uniqueIdentifier: TC_Masterdata_CreateZoneUser_03
description: Create zone user with the parameter zone code as empty
role: admin
restMethod: post
inputTemplate: masterdata/ZoneUser/zoneUser
outputTemplate: masterdata/error
input: '{
"zoneCode": "",
"userId": "func_auto_test_user",
"isActive": true,
"langCode": "eng",
"requesttime": "$TIMESTAMP$"
}'
output: '{
"errors": [
{
"errorCode": "KER-MSD-999",
"message": "request.zoneCode: Should not be blank or size must be between 1 and 36"
}
]
}'
MasterData_CreateZoneUser__Invalid_zoneCode_Valid:
endPoint: /v1/masterdata/zoneuser
uniqueIdentifier: TC_Masterdata_CreateZoneUser_04
description: Create zone user with the parameter zone code as invalid
role: admin
restMethod: post
inputTemplate: masterdata/ZoneUser/zoneUser
outputTemplate: masterdata/error
input: '{
"zoneCode": "CST1",
"userId": "func_auto_test_user",
"isActive": true,
"langCode": "eng",
"requesttime": "$TIMESTAMP$"
}'
output: '{
"errors": [
{
"errorCode": "KER-USR-014",
"message": "Admin not authorized to access for this Zone"
}
]
}'
© 2015 - 2025 Weber Informatics LLC | Privacy Policy