Description of problem: It's possible to create provision request with password which doesn't meet requirements:
'Customize/Password' must be correctly formatted. The password must be 12-72 characters, contain at least one lowercase English character, one uppercase English character, and one number.'
looks like we only check password length
Version-Release number of selected component (if applicable):5.8.0.16
How reproducible:100%
Steps to Reproduce:
1.Create Instance provision request with password containing 12 lowercase only symbols
Actual results:request gets created
Expected results: same warning message should be shown as password doesn't meet requirements
Additional info: such request fails with no explanation in UI:
last message - [EVM] VM [test-lkhom-11] Step [CheckProvisioned] Status [Creating VM] Message [Creating VM] Current Retry Number [1]
and error message in evm.log:
[----] E, [2017-05-23T09:49:14.234173 #7169:9a3134] ERROR -- : Q-task_id([miq_provision_8]) MIQ(ManageIQ::Providers::Azure::CloudManager::Provision#provision_error) [[Azure::Armrest::BadRequestException]: The supplied password must be between 8-123 characters long and must satisfy at least 3 of password complexity requirements from the following:
1) Contains an uppercase character
2) Contains a lowercase character
3) Contains a numeric digit
4) Contains a special character.] encountered during phase [start_clone_task]