For whatever reason the two tests race fail in the py34 job at a rate of
about 12 hits per week. These aren't problems in the py27 job.
Since no one seems to be looking at these, and the unit tests should
always be passing, let's just skip the tests for now.
Change-Id: Ia0243d91cb00c610df1b29df983d5c6abe0a89c4
Related-Bug: #1521599
There are some strange and wonderous work arounds in the json loader
for samples templates to do with templated values which are ints. This
was always kind of a hack, but when attempting to add a replacement
value in the middle of a string it was clear that the anchoring for
this regex was wrong.
Update the begin anchor to be ': ' instead of [^"], which would match
anywhere inside a string.
Change-Id: I9811b34d58a4d4cf7f181689b25212893880dcf4
Since os.path.join() is OS-dependent, it should not be used for creating
URLs. This patch replaces the use of os.path.join() in
nova/api/openstack with common.url_join(), which uses the more correct
"/".join(), while preserving the behavior of removing duplicate slashes
inside the URL and adding a trailing slash with an empty final element.
It also adds some tests to ensure that the generate_href() method in
nova/api/openstack/compute/views/versions.py works after the refactoring
to use common.url_join()
Closes-Bug: 1489627
Change-Id: I32948dd1fcf0839b34e446d9e4b08f9c39d17c8f
Change I03742cc9330814e2758184d8189a5be93a2b978b added the
'hypervisor_type' to the _legacy_property_map. This makes sure that
change is tested.
Also adds test coverage for 'hypervisor_version_requires'.
Related-Bug: #1523503
Change-Id: I3738785a4f119e361be0d6aaf3649ad375c471c8
No substantial changes; just wanted to make the text sound more like
native English.
blueprint complete-todo-in-api-concept-doc
Change-Id: I9ff48113bf709f63e3654a5851aa8d6853b519b5
As the folloing content of etc/nova/api-paste.ini, legacy v2
endpoint is /v2, not /v2.1.
/v1.1: openstack_compute_api_v21_legacy_v2_compatible
/v2: openstack_compute_api_v21_legacy_v2_compatible
/v2.1: openstack_compute_api_v21
So this patch fixes the endpoint.
Partially implements blueprint complete-todo-in-api-concept-doc
Change-Id: I6d9346ced38f522c516778cadae217d1d5c9cff1
The scheduler would not honor the glance image metadata for
'hypervisor_type' and 'hypervisor_version_requires'. This was due
to the fact that this was not part if the image_meta object.
Change-Id: I03742cc9330814e2758184d8189a5be93a2b978b
Closes-bug: #1523503
Currently unittests are using non valid UUID format for the
FieldType UUID. This is used across many objects.
This is preparation work to add UUID validation in the
oslo_versionedobjects/fields.py.
Without this change adding validation will cause tests to fail.
Change-Id: Iaad96b4185d19055dff40450eab2a1818b7054a0
This patch adds generic description for microversions. We will write
more use-cases in later patches.
blueprint complete-todo-in-api-concept-doc
Change-Id: I600ad4186a38eaffbec38bb15b2de0146c076abf
There are variety like "admin" or "administrator" on api-guide,
so this patch makes these words consistent for the readability.
Partially implements blueprint complete-todo-in-api-concept-doc
Change-Id: Id0a9444e5d48f62d6d02114f8668761647c2dae0
There still have some important concept in the docs, this patch adds
more to it.
blueprint complete-todo-in-api-concept-doc
Change-Id: I231f298d2c7ffa0736028db27fe54691ac4bd201
Most parts contain "ReSTful HTTP service" instead of "ReSTful web
service". So this patch changes "ReSTful web service" for the word
consistency.
Partially implements blueprint complete-todo-in-api-concept-doc
Change-Id: I642ae649adad8f886bdb6bce979a1dd7d2430a80
itertools.izip_longest does not exist in Python 3.
Partially implements blueprint: nova-python3-mitaka
Change-Id: I6322fe8a4b186cefa69acc289bf9ffada0ca3874
Python 3 does not support indexing keys or items iterators.
Removes unit tests from tests-py3.txt blacklist.
Partially implements blueprint: nova-python3-mitaka
Change-Id: I3ec1e775d91e7f56356f744fd80f5d9df36cae1d