Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/cn-uat' into fix-mgmt-api-produc…
Browse files Browse the repository at this point in the history
…ts-assignments
  • Loading branch information
petrjasek committed Dec 19, 2023
2 parents 8e1664d + ea1ff6d commit 87aceb2
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions server/features/mgmt_api_users.feature
Original file line number Diff line number Diff line change
Expand Up @@ -171,3 +171,38 @@ Feature: Management API - Users
]
}
"""

Scenario: Validate locale

Given "companies"
"""
[{"name": "zzz company"}]
"""

When we post to "/users"
"""
{
"first_name": "John",
"last_name": "Cena",
"email": "[email protected]",
"company": "#companies._id#",
"locale": "fr"
}
"""

Then we get error 400
"""
{"code": 400, "message": "Locale is not in configured list of locales."}
"""

When we post to "/users"
"""
{
"first_name": "John",
"last_name": "Cena",
"email": "[email protected]",
"company": "#companies._id#",
"locale": "fr_CA"
}
"""
Then we get response code 201

0 comments on commit 87aceb2

Please sign in to comment.