4471 Commits

Author SHA1 Message Date
Ronald Bradford
9393cd451c Fix coverage configuration and execution
A number of configuration errors prevent the successful creation of code
coverage. This corrects the .coveragerc source/omit setup and the tox
package name generation.

Change-Id: Ie55159304b8633acd6b06ba94d0cb8507a337504
2015-10-01 19:54:59 +00:00
Jenkins
825434ddab Merge "Change ignore-errors to ignore_errors" 2015-09-30 16:45:39 +00:00
OpenStack Proposal Bot
492b1dcb19 Imported Translations from Zanata
For more information about this automatic import see:
https://wiki.openstack.org/wiki/Translations/Infrastructure

Change-Id: I9ae97fd771ac55b437089288603344dea1406581
2015-09-26 06:10:47 +00:00
Jenkins
69912c2941 Merge "make configuration options discoverable" 2015-09-25 01:23:24 +00:00
Jenkins
7bbe22ef57 Merge "Add shields.io version/downloads links/badges into README.rst" 2015-09-24 21:56:06 +00:00
Doug Hellmann
50a8b1b937 make configuration options discoverable
Add an entry point to make the configuration options defined in the
library discoverable for the sample configuration generator.

Add the configuration options to the library documentation.

Change-Id: I5b49fef1d0363d8887a84cdc3cec242efe1b9084
2015-09-24 20:07:03 +00:00
Joshua Harlow
b2aff4d8c1 Add shields.io version/downloads links/badges into README.rst
Change-Id: I89f9d3765cb19d95864e0f80f8c3e96caa08e80d
2015-09-24 13:02:17 -07:00
Doug Hellmann
3b2071a96b add pbr-generated release history
Change-Id: I68c24b0dc2e4897596b32303978c561ecef2eb43
2015-09-24 19:59:58 +00:00
Monty Taylor
26067f8b76 Change ignore-errors to ignore_errors
Needed for coverage 4.0

Change-Id: I0d184673290e35e22c1afd64887cc16eb1714c81
2015-09-21 14:43:49 +00:00
OpenStack Proposal Bot
9cf3a7d0c6 Updated from global requirements
Change-Id: I222b8affee1e7f6510deb2e004553eb05931751a
2015-09-17 12:16:17 +00:00
Jenkins
9b14d09e89 Merge "Added test for DateTimeField in obj_get_change" 2015-09-16 12:00:37 +00:00
Jenkins
9b2289e317 Merge "Fix missing value types for log message" 2015-09-16 12:00:30 +00:00
Surojit Pathak
6b3481ce88 Added test for DateTimeField in obj_get_change
If a field is defined to be DateTimeField, obj_get_change() returns a
datetime.datetime object with timezone awareness.

Change-Id: Ia38189f65c187769f0bab35c421d76a4a693b068
2015-09-15 21:40:10 +00:00
Jenkins
af39715e75 Merge "ObjectVersionChecker fingerprint documentation" 2015-09-14 18:53:46 +00:00
Sergey Vilgelm
815ccc483c Fix missing value types for log message
This patch add missing value types for some log message of exception.

Change-Id: I4eadc72c1da46e281fc9d22daf7de826d815f0d8
Closes-Bug: #1494574
2015-09-14 11:09:04 +03:00
OpenStack Proposal Bot
ccbc642947 Imported Translations from Zanata
For more information about this automatic import see:
https://wiki.openstack.org/wiki/Translations/Infrastructure

Change-Id: Ia34cf79903980b7435c25583f15d1bdf91d73a4f
0.10.0
2015-09-11 17:14:24 +00:00
Ryan Rossiter
8c1179b386 ObjectVersionChecker fingerprint documentation
This adds documentation for how the process of fingerprint generation
works when using the ObjectVersionChecker.

Change-Id: Ie21746f6c2bab447a187b0b7507acdcea3d88c14
2015-09-03 20:24:35 +00:00
Jenkins
88a1da0f2c Merge "Updated from global requirements" 0.9.0 2015-08-27 11:50:34 +00:00
OpenStack Proposal Bot
bbb52b5d4a Updated from global requirements
Change-Id: Ibb8a4eb5b0a1d3874b40d61bd7d924df953a5348
2015-08-27 04:18:24 +00:00
Dan Smith
00c503efbb Allow calling obj_to_primitive() with version_manifest
When we call obj_to_primitive() on an object, we need to be able to
pass in the version_manifest so that the backport happens according
to those versions. This merely adds an optional argument which, if
present, calls the new interface.

Change-Id: I016a8061825507751168b6a59e092c9db5b0b19f
2015-08-26 13:33:53 -07:00
Jenkins
aba1089fab Merge "Save and re-raise exception" 0.8.0 2015-08-24 17:50:29 +00:00
Jenkins
92678d004c Merge "Check for obj_relationships in List objects" 2015-08-19 15:47:38 +00:00
Davanum Srinivas (dims)
19d21f65e2 Switch back to iso format on the wire
following change id replaced timeutils.isotime(dt) with dt.isoformat():
Ied2643d3d891600e0e5cd31c7ef1ff6107e3a777

However this change breaks existing contract between Nova components
on the wire, so we need to resurrect a bit of the older code.

Change-Id: I151e889258a33fe6ce961b514c3967f521a218cf
2015-08-18 12:38:51 +00:00
Ruby Loo
576dead9ff Save and re-raise exception
When an exception is raised, we do "some stuff" and re-raise that
original exception. This uses oslo_util's
excutils.save_and_reraise_exception to do this, to handle the case
where "some stuff" might cause the exception context to be cleared
(which would have resulted in None being attempted to be re-raised).

Change-Id: I91234797ab71399f6f9bac3a3ab35a6eeb2a87f3
2015-08-17 14:40:08 +00:00
Ryan Rossiter
e73c93c519 Check for obj_relationships in List objects
In obj_make_compatible() of List objects, only child_versions is used.
If obj_relationships is set on a List object, obj_make_compatible()
should also take that into consideration.

This change pulls out common code for finding the desired child version
for backporting, and then changes ObjectListBase's obj_make_compatible()
to check for child_versions first, and if that is empty, will use
obj_relationships for finding the child version.

Change-Id: I89217f1721c896bd2660354d4f4283e2e12ebe98
Closes-Bug: #1470617
2015-08-17 13:33:16 +00:00
Jenkins
a196c717e6 Merge "Make ObjectListBase a collections.Sequence" 2015-08-16 21:52:20 +00:00
Jenkins
ca16b15bcb Merge "Make compat of object lists use manifest function" 2015-08-16 21:42:37 +00:00
Jenkins
0e7725b995 Merge "Add tests for subobject backporting by manifest" 2015-08-16 21:42:35 +00:00
Jenkins
f3544d31c0 Merge "Switch from deprecated timeutils.isotime" 2015-08-16 21:42:32 +00:00
OpenStack Proposal Bot
f145204b46 Updated from global requirements
Change-Id: I4b7dab84448acb5866f37629725d34f28bed9fc6
2015-08-13 20:21:14 +00:00
Ryan Rossiter
cb898f382e Make compat of object lists use manifest function
Change I0c33a34a3cb454d6d35e2092d72ebd41d4c12729 introduced the use of a
manifest for improving the backporting of objects. That change switched
over the compat code for regular objects to use the manifest. It also
sent the manifest in for lists, but did not switch the function to use
obj_make_compatible_from_manifest().

Change-Id: I1b7eb45335b5edb5f85ea991e96ea0b99f9d11a3
Closes-Bug: #1484133
Co-Authored-By: Dan Smith <dansmith@redhat.com>
2015-08-12 07:22:00 -07:00
Dan Smith
59f69b486c Add tests for subobject backporting by manifest
Commit b38c8ddb8508ac0eddbed77ab72afc50beb8ae2a introduced backporting
via manifest, but didn't include a test to make sure that subobjects were
also backported using the manifest. This adds that test.

Change-Id: I332c665e7fae01ae28080f821161b00f1886cc09
2015-08-12 07:18:05 -07:00
Alexis Lee
2bb2ddd221 Make ObjectListBase a collections.Sequence
This means we get a number of methods for free and moreover expresses
our intent more concisely.

Change-Id: I30aa22027a9c0b764e0b34b631513b9d42e710ba
2015-08-10 18:11:45 +01:00
Balazs Gibizer
5f87da999d Switch from deprecated timeutils.isotime
oslo_utils.timeutils.isotime() is deprecated as of 1.6 so we need
to stop using it.

This patch replaces timeutils.isotime(dt) with dt.isoformat() as
the deprecation message suggests in oslo_utils.timeutils.
However this might be a backward incompatible change as
timeutils.isotime() produced '1955-11-05T18:00:00Z' format
but datetime.isoformat() produces '1955-11-05T18:00:00+00:00'
format.

Change-Id: Ied2643d3d891600e0e5cd31c7ef1ff6107e3a777
2015-08-10 09:23:08 +00:00
Jenkins
451ea897e1 Merge "Make direct call to object's obj_from_primitive" 2015-08-07 15:08:14 +00:00
Jenkins
e4fa9ec3e4 Merge "Support using the version manifest for obj_make_compatible()" 2015-08-05 22:30:52 +00:00
Jenkins
a05639ba2a Merge "Implement multi-version object backport method" 2015-08-05 22:30:49 +00:00
Jenkins
5be082c3fe Merge "Add obj_tree_get_versions() utility method" 2015-08-05 22:08:18 +00:00
Thang Pham
3573e0391a Make direct call to object's obj_from_primitive
The following patch fixes field.Object's from_primitive()
to call a given object's obj_from_primitive() instead of
VersionedObject's obj_from_primitive().  By using the given
object instead of VersionedObject, the appropriate
OBJ_PROJECT_NAMESPACE is passed down to obj_from_primitive(),
and allows support for other projects namespaces.

Change-Id: I02e733f29ce2ee221270577f6dafdda706c74eb2
Closes-Bug: #1479041
Signed-off-by: Thang Pham <thang.g.pham@gmail.com>
2015-08-05 07:09:34 -07:00
Jenkins
f36a5011ec Merge "Add validation on target_version arg when calling obj_to_primitive" 2015-08-05 02:28:02 +00:00
Jenkins
e42e747da2 Merge "Add usage information" 2015-08-05 02:27:50 +00:00
Grzegorz Grasza
26f6a55159 Add usage information
Add information about how to implement Oslo Versioned Objects
in your project.

Change-Id: I097d38fcd95b9ca6a7430046b23dda9877fd65fc
2015-08-04 09:11:05 +02:00
OpenStack Proposal Bot
251493a277 Imported Translations from Transifex
For more information about this automatic import see:
https://wiki.openstack.org/wiki/Translations/Infrastructure

Change-Id: I8849a65a305b6a17fb4b828677b160996e78f2b3
2015-08-04 06:26:31 +00:00
Jenkins
19c3c8240f Merge "Updated from global requirements" 2015-08-04 04:05:13 +00:00
Jenkins
63ff83fb7b Merge "Add a new VersionPredicate type of field" 2015-08-04 03:56:06 +00:00
OpenStack Proposal Bot
db095dd773 Updated from global requirements
Change-Id: I872d7430c322de77215471b494039a8adfd84fb5
2015-08-04 00:57:08 +00:00
Moshe Levi
79e0cb89d1 Add validation on target_version arg when calling obj_to_primitive
This patch add validation on the target_version arg as following:
1. When target_version == object version don't call obj_make_compatible
2. When target_version > object version raise exception

Change-Id: I0f8dbe3cbdb86752f026f3692d4badc9f6e693c3
2015-08-03 20:15:43 +03:00
Jenkins
e4cda6e802 Merge "Fix error handling in the exception module on py3" 0.7.0 2015-07-31 19:02:18 +00:00
Jenkins
a7b329edd7 Merge "Add a new DictOfListOfStrings type of field" 2015-07-30 09:39:26 +00:00
Victor Stinner
0c3199f93d Fix error handling in the exception module on py3
* Replace dict.iteritems() with dict.items() in code handling errors in
  the exception module to fix Python 3 support.
* Add new unit tests on the exception module

Change-Id: Ib958421dbdd73fb442e17a8d0654c9eab8b7b70e
2015-07-29 15:24:04 +02:00