Description of problem:
While creating an alert definition for availability duration, the 'Duration' field accepts hyphen (-) character with a number (Ex: -2).
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1.Navigate to Alerts->Definition tab of a resource
2.Click on New button
3.Enter the alert name
4. Click on the Conditions tab
5. Click on 'Add' button
6. Select 'Availability Duration' condition type
7. in 'Duration' field, enter hyphen character with a number (Ex: -2)
8. Click on OK button
9. Click on Save button
Duration field accepts hyphen (-) character
validation for invalid value with a red mark and user should not be able to click OK button.
Build#1203 (Version: 4.4.0-SNAPSHOT Build Number: 969ed45)
master commit 9f328eaf22f68f9a6c549d5d4b30c154a15de78b
Replaced TextItem entry with our DurationItem widget. This gives us
consistency, reusability and validation. Allow value in minutes or
hours, Duration should be displayed in minutes in the condition.
Verified on Version: 4.4.0-SNAPSHOT Build Number: 0fe1b14
Verified by choosing the duration values in mins and hours from duration dropdown.
The values are displayed in minutes in 'condition' tab. Invalid entries (Ex: with hyphen character display a red mark with a tool tip 'Must be atleast 1'.)
Bulk close of old bugs in VERIFIED state.