Validator for new role should pass numbers and other symbols
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Fuel for OpenStack |
Fix Committed
|
High
|
Georgy Kibardin | ||
Mitaka |
Fix Released
|
High
|
Georgy Kibardin | ||
Newton |
In Progress
|
High
|
Alexey Shtokolov | ||
Ocata |
Fix Committed
|
High
|
Georgy Kibardin |
Bug Description
I tried to add a new role with name fuel_plugin_
meta:
description: description
group: other
name: fuel_plugin_
weight: 70
name: fuel_plugin_
volumes_
- allocate_size: min
id: os
When I execute:
[root@nailgun ~]# fuel role --rel 2 --create --file fuel_plugin_
it fails with:
400 Client Error: Bad Request for url: http://
Failed validating 'pattern' in schema[
{'pattern': '^[a-zA-Z_-]+$', 'type': 'string'}
On instance['name']:
u'fuel_
Actual result:
^^
Expected result:
role added successfully
This fail is related to the plugin tests, were role consists of letters and numbers
This issue was introduced here [1]
[root@nailgun ~]# shotgun2 short-report
cat /etc/fuel_build_id:
495
cat /etc/fuel_
495
cat /etc/fuel_release:
9.1
cat /etc/fuel_
mitaka-9.0
rpm -qa | egrep 'fuel|astute|
python-
fuel-misc-
fuel-setup-
fuel-nailgun-
fuelmenu-
fuel-notify-
fuel-ui-
shotgun-
fuel_plugin_
rubygem-
fuel-provision
fuel-9.
fuel-openstack
network-
fuel-utils-
python-
fuel-migrate-
nailgun-
fuel-agent-
fuel-mirror-
fuel-bootstrap
fuel-release-
fuel-library9.
fuel-ostf-
[1] https:/
description: | updated |
no longer affects: | fuel/newton |
tags: | added: area-python |
Changed in fuel: | |
status: | New → Confirmed |
Changed in fuel: | |
assignee: | Fuel Sustaining (fuel-sustaining-team) → Georgy Kibardin (gkibardin) |
Changed in fuel: | |
status: | Confirmed → In Progress |
tags: | added: on-verification |
This patch enabled additional validation for roles API /github. com/openstack/ fuel-web/ commit/ a3cd0ea0708e6c5 32bdcea0ac260c9 13bddd92f4
https:/