Dan Smith b16584c6af Fix messages in exceptions raised due to invalid state transitions
The recently-added FakeStateMachineField raises exceptions with strings
that have improper grammar, such as:

  FooObject's are not allowed transition out of ERROR state to ACTIVE ...

In addition to the grammar issue, the field's name in the object is not
provided which may make it very difficult to debug.

Finally, the tests for this field did not actually validate the string
of the exception.

This patch corrects the strings, includes the field name, and makes the
test actually validate that the output looks like we expect.

Change-Id: I7bee955fba15b9570416518b16ac64181bf7e320
2016-01-29 16:33:07 -08:00
2015-02-02 15:08:43 -05:00
2015-02-02 15:08:43 -05:00
2015-02-02 15:08:43 -05:00
2015-02-02 15:08:43 -05:00
2015-02-02 15:08:43 -05:00
2015-02-02 15:08:43 -05:00
2016-01-30 00:27:03 +09:00
2015-09-17 12:16:17 +00:00
2015-12-09 17:59:31 +08:00

oslo.versionedobjects

Latest Version

Downloads

The oslo.versionedobjects library provides a generic versioned object model that is RPC-friendly, with inbuilt serialization, field typing, and remotable method calls. It can be used to define a data model within a project independent of external APIs or database schema for the purposes of providing upgrade compatibility across distributed services.

Description
OpenStack versioned objects library
Readme 7 MiB
Languages
Python 100%