295 Commits

Author SHA1 Message Date
ghanshyam
f44d1aff9d Enable all extension for all remaining sample tests
As extensions options has been deprecated, API sample tests
should run against all extension enable.

This commit enables all extensions for all the remaining sample tests
and remove extensions specific tests and sample files.

Also remove extension setting specific logic from base test class
along with TODOs.

Partially implements blueprint api-sample-tests-with-all-extensions

Change-Id: I66b593760789e5b3b92137a672246f8d91e44cba
2016-06-10 06:03:02 +00:00
ghanshyam
f26f18e20c Enable all extension for server API tests part-1
As extensions options has been deprecated, API sample tests
should run against all extension enable.

This commit enables all extensions for server API tests and remove its specific
extensions tests and sample files.

Partially implements blueprint api-sample-tests-with-all-extensions

Change-Id: I7e12a4491738c2908c1dd134c05f38e0db497ee7
2016-06-09 08:53:30 -04:00
Jenkins
e52d84968d Merge "api-ref: verify keypairs" 2016-06-08 15:02:53 +00:00
Sean Dague
f06a12623b api-ref: verify keypairs
This verifies all the parts of keypairs, including filling out all the
details for microversion 2.2 and 2.10 which change it.

Part of bp:api-ref-in-rst

Change-Id: Iab88dc75cdb7b5f91e46afd29ee61e38b325e180
2016-06-08 08:23:33 -04:00
Jenkins
74a772398a Merge "api-ref: parameter verification for os-hypervisors" 2016-06-07 20:59:48 +00:00
Jenkins
7d7506c2b6 Merge "api-ref: verfiy limits body" 2016-06-07 18:51:33 +00:00
Jenkins
7a21e141dc Merge "api-ref: body verification of ips.inc" 2016-06-07 18:50:43 +00:00
Jenkins
4692a33945 Merge "api-ref: verify os-server-groups.inc" 2016-06-07 16:51:38 +00:00
Kevin_Zheng
126400a1c9 api-ref: parameter verification for os-hypervisors
checked parameters

Part of bp:api-ref-in-rst

Change-Id: I6078a0ee0914f3c5cc92d9c17f0d19146f9d373b
2016-06-07 13:57:13 +00:00
Jenkins
df9e74ca35 Merge "Fix white spaces in api-ref" 2016-06-06 20:55:37 +00:00
Jenkins
2bd6b6be8b Merge "api-ref method verification for os-cells" 2016-06-06 20:12:16 +00:00
Chris Dent
cc47acaf8d api-ref method verification for os-cells
Confirm and correct list methods and response codes in os-cells.

This is mostly just checking, correcting and adding methods, but
in the process of doing that it became clear that there was quite
a bit missing so several TODO notes have been left in place so that
the next stages of work are a bit more obvious.

* 405 has been removed everywhere as we don't send that response
* 400 badRequest is required anywhere, as that's what you'll get if
  tenant_id does not match the context's project_id
* 503 does not happen as there's no application controlled proxying
  in this api
* the URL for listing cells with details was incorrect
* the example response for cells with details was an empty list,
  this is now a todo suggesting an as yet non-existent file
* capacities was not listed, now is
* not clear what capacities really are, so a TODO
* creating a new cell (via POST) was not there, so that is now added
  as a method
* for that POST, request and response bodies, parameters currently a
  TODO
* Update (PUT) and DELETE of a cell has been added, but details are TODO

Part of bp:api-ref-in-rst

Change-Id: I3f123f821820e5a5a4deff61fb716d43dc486142
2016-06-06 10:55:13 +01:00
Sylvain Bauza
7aa2285e72 API change for verifying the scheduler when live migrating
After modifying the evacuate action, we now add a new microversion
change for modifying the live-migrate call so that the scheduler is
called when the admin user provides an hostname unless the force
field is provided.

APIImpact

Implements: blueprint check-destination-on-migrations-newton

Change-Id: I212cbb44f46d7cb36b5d8c74a79065d38fc526d8
2016-06-06 11:44:06 +02:00
Takashi NATSUME
9d41696515 Fix white spaces in api-ref
TrivialFix
Change-Id: Icd7cd923522b6d97e19c89ad417eb5560649f6ba
2016-06-06 12:04:54 +09:00
Jenkins
45ded00b7c Merge "API change for verifying the scheduler when evacuating" 2016-06-03 17:16:28 +00:00
Sean Dague
c9f5ad3bcf remove /v2.1/{tenant_id} from all urls
As discussed at summit, the version part of the URL is not really
relevant, or a thing a user should be filling out themselves, this
should instead be set by the service catalog and extracted from the
token.

This removes it's reference in all documented REST urls, and adds a
new section describing how one gets the base URL for all calls.

Change-Id: I4306b8c3de0225e54f3909dd8a1fb293c4e5944c
2016-06-03 08:47:33 -04:00
Sylvain Bauza
86706785ff API change for verifying the scheduler when evacuating
Adding a new microversion for changing the evacuate action behaviour
to call the scheduler anyway unless the admin user provides a force
flag that then keeps the previous behaviour by forcing the conductor
to call the destination without verifying it.

Implements: blueprint check-destination-on-migrations

APIImpact

Change-Id: I9ecbe3d481bf17b12072511da4bb106ff1b6404e
2016-06-02 15:03:39 +02:00
Jenkins
de6b96b782 Merge "api-ref: Example verification for os-interface.inc" 2016-06-01 16:25:42 +00:00
Jenkins
e5c8b0ad69 Merge "api-ref verify of servers-admin-action.inc" 2016-06-01 16:21:58 +00:00
Jenkins
19476e8058 Merge "verify api-ref os-migrations.inc" 2016-06-01 13:06:45 +00:00
jichenjc
a7dde84ba1 verify api-ref os-migrations.inc
verify the parameters of os-migrations.inc including response and
request. And, add warning for deprecation and incorrect wording of
policy default rule.

looks like the new migration is missing in doc, follow up patch will
add it.

Part of bp:api-ref-in-rst

Change-Id: I8fed7374c34c5c857c8c55f56f86ad4c744844e9
2016-06-01 11:12:08 +00:00
Jenkins
25fdf64fdc Merge "api-ref: os-consoles.inc" 2016-05-30 07:54:51 +00:00
Karen Bradshaw
a29c26308e api-ref: os-consoles.inc
-Verified methods, examples, parameters, body text.
-Added console, consoles parameters.

Part of blueprint api-ref-in-rst

Change-Id: Ifd0b751e521a96ec82c78cd6354055d315596038
2016-05-30 15:13:15 +08:00
Takashi NATSUME
fc529deaa4 api-ref: Example verification for os-interface.inc
Add an example creating an interface with net_id
and fixed_ips in addition to an example with port_id.
The example and the sample test have been added in
I6b2567db82d000e4b1cdf46020ce1b57103c3f46.

Change-Id: Ia71ecf3dd633409f9bb5156c5e68f6bb878eee71
Implements: blueprint api-ref-in-rst
2016-05-30 10:25:09 +09:00
Jenkins
da8e677a8f Merge "Enable 'null' value for user_data in V2.1 API" 2016-05-29 22:33:13 +00:00
Jenkins
bbdfffc42b Merge "api-ref verify servers-action-deferred-delete.inc" 2016-05-28 01:44:04 +00:00
Jenkins
036ea5bd78 Merge "api-ref: Add fault parameter details" 2016-05-28 01:07:02 +00:00
Jenkins
f57aecfaba Merge "verify api-ref os-instance-usage-audit-log.inc" 2016-05-28 01:02:30 +00:00
jichenjc
703839142d api-ref verify servers-action-deferred-delete.inc
verify the parameters of servers-action-deferred-delete.inc
including response and request.

Part of bp:api-ref-in-rst

Change-Id: Ie91e80c6c8a66095c56b7ccb5bdf6b6e4e4ddc64
2016-05-27 23:57:35 +00:00
Jenkins
220439fcd6 Merge "Make available to build docs with python3" 2016-05-26 17:24:03 +00:00
Jenkins
dbf9bf0703 Merge "Support for both microversion headers" 2016-05-26 12:55:33 +00:00
Chris Dent
bd199e3f9b Support for both microversion headers
In this change the new OpenStack-API-Version headers is allowed,
but not required, for requesting a microversion.

Both headers are accepted in the request and both headers are sent in
the response (both the header and its value, and the addition to the Vary
header).

Many tests which explicitly use a microversion header have been
updated to use both. This change is not 100% as most of the tests
are testing the handling of the value of the header, not which
header is involved.

Partially-Implements: blueprint modern-microversions
Change-Id: I68da13b5ba0c2f3357523e765a5b9db81899daf1
2016-05-25 21:41:27 +00:00
Jenkins
5ae26d2a7a Merge "verify api-ref metadata.inc" 2016-05-25 13:28:17 +00:00
Augustina Ragwitz
09875f6752 limits.inc example verification
Part of bp:api-ref-in-rst

Change-Id: I0004a2c95b01e87ebfea1ed70e35219c7a468af0
2016-05-24 16:17:02 -07:00
Jenkins
33652a1724 Merge "verify api-ref os-server-password.inc" 2016-05-23 21:14:09 +00:00
Jenkins
b1a172ee46 Merge "api-ref: limits.inc validate parameters" 2016-05-23 15:52:07 +00:00
Jenkins
8fac8cf5c7 Merge "api-ref: Parameter verification for os-interface.inc" 2016-05-23 13:27:12 +00:00
Jenkins
7c3d810977 Merge "api-ref: parameter verification for os-server-groups" 2016-05-23 13:26:22 +00:00
Augustina Ragwitz
8e0d8b7f9f api-ref: limits.inc validate parameters
Part of blueprint api-ref-in-rst

Change-Id: I1b39ef719aa9dfcaec83b0d444baf41bb27ee813
2016-05-23 13:05:11 +00:00
Andrey Volkov
9053a4685b Make available to build docs with python3
On Ubuntu 16.04 a tox package is for python3 by default
and this causes errors in building docs in tox enviroment.

In these changes iterators are replaced with lists where it's needed.
Also external command calls result are decoded from bytes to unicode.

Change-Id: I88ef54405b4bc13c269bdda55ae8289676311ee1
2016-05-23 15:30:20 +03:00
Jenkins
bb50389bb6 Merge "api-ref, os-fping.inc" 2016-05-23 08:20:10 +00:00
Takashi NATSUME
0c183948f4 api-ref: Parameter verification for os-interface.inc
Change-Id: I5c72c685b6cb39151e9d0c6c563ef6919a79e249
Implements: blueprint api-ref-in-rst
2016-05-23 12:34:49 +09:00
Karen Bradshaw
1f3345593e api-ref, os-fping.inc
-Updated response parameters in parameters.yaml.
-Verified body text, methods, parameters.

Change-Id: I35c9e95c8223072c37da33fddf9633bba82a2544
2016-05-21 19:48:37 -04:00
Jenkins
fdeaa50dd2 Merge "api-ref: verify flavors.inc" 2016-05-20 14:59:36 +00:00
Atsushi SAKAI
4f3d13c851 api-ref: Add fault parameter details
Add fault parameter details, according to following code.
https://github.com/openstack/nova/blob/stable/mitaka/nova/api/openstack/compute/views/servers.py#L239

This information is useful for troubleshooting.

Change-Id: I3a46c9aa87667e6eea07a5c560d0e108a1c03658
2016-05-20 21:02:22 +09:00
Jenkins
541552a06f Merge "Fix the versions API for api-ref" 2016-05-20 11:25:40 +00:00
He Jie Xu
22c87390a3 Enable 'null' value for user_data in V2.1 API
The legacy v2 API allow the 'null' value for user_data. Unfortunately
the v2.1 API didn't match that in the input validation. This patch
enables 'null' value, at sametime, it enables for v2.1 compat mode
also.

Change-Id: Iae614035efd4b37c214754ad12b17ca224b8fd92
Closes-Bug: #1582911
2016-05-20 14:05:43 +08:00
Jenkins
813787644b Merge "api-ref: complete verification of baremetal api" 2016-05-19 18:57:24 +00:00
Sean Dague
e2688277bc api-ref: verify flavors.inc
This completes the verification of flavors.inc across all
phases. References to the 500 error that create could do have been
removed because it turns out that code isn't reachable any more (see
Ic848db8c3df75054c389e87b2405134262b531e2)

Part of bp:api-ref-in-rst

Change-Id: I9e89a737df558c930a2ca028ed169a5b3e383a3d
2016-05-19 08:12:46 -04:00
He Jie Xu
8811989bff Fix the versions API for api-ref
* Add doc for request without version in the url
* Add a link reference for microversion detail

Part of bp:api-ref-in-rst

Change-Id: Iadee4623fe70c43ad38c087e027f7e4cf01fea12
2016-05-19 14:44:32 +08:00