Areso/Oblache

catch up wrong db_env with 400 http code err

Closed this issue · 3 comments

catch up wrong db_env with 400 http code err

added this check to the code

payload

{
    "content": "error: DB environment isn't found or isn't available for order"
}

r.code=400

============================== 1 passed in 0.45s ==============================
PASSED [100%]

Method POST: post_db_create_wrong_value_env
https://dbend.areso.pro/db_create
Status code: 400
Response body: {
"content": "error: DB environment isn't found or isn't available for order"
}

{'content': "error: DB environment isn't found or isn't available for order"}
Assert expected status code: 400 == Response status code: 400
Value: error: DB environment isn't found or isn't available for order
is presence in key: content

Process finished with exit code 0