Updated openstack/openstack
Project: openstack/tempest  29541c6edfb56593723f0cbabbf659f42e14a743
null
Skip negative tests of v3 server metadata

If sending long metadata to "create a server" API of Nova v3 API,
the API returns an OverLimit response now.

However the commit Ic17d2227909c9180ca86c9d578dad4c73ec57dfc will
change the response to BadRequest. To verify the commit on Jenkins,
it is necessary to skip the tests related to long metadata temporary.

Change-Id: Ic03c2247505780fbeda68e908298a98862ea0c7c
Related-Bug: #1273948
Updated openstack/openstack
Project: openstack/nova  9777ca0b108576d3b6eeafe11537fb435e4fcb14
null
Define common "name" parameter for Nova v3 API

Nova v3 API contains 'name' parameters such as aggregate, backup,
flavor, keypair and server. The validation way of each parameter
is different like the following because of just porting it from v2
APIs:

  Resource  | Length  | Pattern
 -----------+---------+----------------------------------
  aggregate | 1-255   | nothing
  backup    | nothing | nothing
  flavor    | 1-255   | '^[a-zA-Z0-9. _-]*[a-zA-Z0-9_-]+
            |         |   [a-zA-Z0-9. _-]*$'
  keypair   | 1-255   | '^[a-zA-Z0-9 _-]+$'
  server    | 1-255   | nothing

All of them are stored in the DB, and it would make APIs consistent if
applying the same validation way to all APIs.

This patch adds the validation way for all 'name' parameters.

Partially implements blueprint nova-api-validation-fw

Change-Id: I05391a03f383cac1d475cd4266cf7f5ced664f9e