fpb, value for elements in environment_config can be boolean

* changed validation schema
* add more elements examples for fuel_plugin_example

Change-Id: Ifccd7db5c1fb1170ab538222b27e2e5c6c03f218
Closes-bug: #1392807
This commit is contained in:
Evgeniy L 2014-11-14 21:06:00 +04:00
parent b5798c95af
commit 9dd8d2a5fd
3 changed files with 48 additions and 5 deletions

View File

@ -5,6 +5,8 @@
- Show instruction for CentOS if not all requirements are installed
- Fixed bug, deploy.sh doesn't have execution permission
https://bugs.launchpad.net/fuel/+bug/1392736
- Fixed bug, don't fail validation if environment_config.yaml file has checkbox
https://bugs.launchpad.net/fuel/+bug/1392807
## 1.0.0 (2014-11-13)

View File

@ -104,5 +104,5 @@ ENV_CONFIG_SCHEMA = {
'properties': {
'type': {'type': 'string'},
'weight': {'type': 'integer'},
'value': {'type': 'string'},
'value': {'type': ['string', 'boolean']},
'label': {'type': 'string'}}}}}}

View File

@ -1,7 +1,48 @@
attributes:
fuel_plugin_example_text:
value: 'Set default value'
label: 'Text field'
description: 'Description for text field'
weight: 25
type: "text"
weight: 10
value: "Default text"
label: "Text field label"
description: "Field description"
regex:
source: '\S'
error: "Error field cannot be empty"
fuel_plugin_example_dropdown:
type: "dropdown"
weight: 20
value: "value2"
label: "Dropdown label"
description: "Dropdown description"
values:
- data: "value1"
label: "Value 1 label"
- data: "value2"
label: "Value 2 label"
- data: "value3"
label: "Value 3 label"
fuel_plugin_example_checkbox:
type: "checkbox"
weight: 30
value: false
label: "Checkbox label"
description: "Checkbox description"
fuel_plugin_example_radio:
type: "radio"
weight: 40
value: "disabled"
label: "Radio buttons label"
values:
- data: "data1"
label: "Label data1"
description: "Description data1"
- data: "data2"
label: "Label data2"
description: "Description data2"
- data: "data3"
label: "Label data3"
description: "Description data3"