nova/nova/tests/integrated
Mark McLoughlin 68fe44121e Add specific regexp for timestamps in v2 xml
datetime objects are serialized into xml using simply str() and this
is a slightly different format from ISO8601 in that the date isn't
separated from the time using 'T'.

(However, note that the iso8601 library happily accepts this format)

Add a specific regexp for this format so we can test for it in the
places we know it is used. This also means we can remove the generic
%(timestamp)s regexp.

Note that unlike the isotime and strtime formats, whether this format
includes timezone or microsecond information depends on whether the
datetime object had those fields set. The isotime format always
includes a timezone but not microseconds, whereas the strtime format
never includes a timezone but always includes microseconds.

There are a small number of examples where this format is used in JSON
too - e.g. the instance usage audit log extension pre-serializes its
timestamps by doing:

        return dict(period_beginning=str(begin),
                    period_ending=str(end),

Using a name like 'xmltime' for the timestamp format used in cases
like this actually makes sense - it highlights that the format used
in this case is a weird mistake.

Full context here:

  http://lists.openstack.org/pipermail/openstack-dev/2014-April/033971.html

Change-Id: I70f839ac17273ed10078b833aeba308bd5e994e1
2014-05-11 16:28:50 -04:00
..
api Don't translate debug level logs in nova.spice, storage, tests and vnc 2014-05-01 03:57:19 -07:00
api_samples Add specific regexp for timestamps in v2 xml 2014-05-11 16:28:50 -04:00
v3 Merge "Use strtime() specific timestamp regexp" 2014-05-10 01:41:55 +00:00
__init__.py Remove vi modelines 2014-02-03 14:19:44 +00:00
api_samples_test_base.py Add specific regexp for timestamps in v2 xml 2014-05-11 16:28:50 -04:00
integrated_helpers.py Remove vi modelines 2014-02-03 14:19:44 +00:00
test_api_samples.py Add Nova API Sample file & test for get keypair 2014-05-07 21:06:37 +09:00
test_extensions.py Remove vi modelines 2014-02-03 14:19:44 +00:00
test_login.py Don't translate debug level logs in nova.spice, storage, tests and vnc 2014-05-01 03:57:19 -07:00
test_multiprocess_api.py Fixed many typos. 2014-04-25 21:47:41 -07:00
test_servers.py Remove vi modelines 2014-02-03 14:19:44 +00:00
test_xml.py Remove vi modelines 2014-02-03 14:19:44 +00:00