diff --git a/doc/api_samples/os-extended-services-delete/services-get-resp.xml b/doc/api_samples/os-extended-services-delete/services-get-resp.xml index bb5b46770ac5..b5182a38be4c 100644 --- a/doc/api_samples/os-extended-services-delete/services-get-resp.xml +++ b/doc/api_samples/os-extended-services-delete/services-get-resp.xml @@ -1,6 +1,6 @@ - - - - + + + + diff --git a/doc/api_samples/os-instance-actions/instance-action-get-resp.xml b/doc/api_samples/os-instance-actions/instance-action-get-resp.xml index 2ebc14061d36..0fa985798c17 100644 --- a/doc/api_samples/os-instance-actions/instance-action-get-resp.xml +++ b/doc/api_samples/os-instance-actions/instance-action-get-resp.xml @@ -1,5 +1,5 @@ - + diff --git a/doc/api_samples/os-services/services-get-resp.xml b/doc/api_samples/os-services/services-get-resp.xml index 997fc3945f0f..6d42fce85cbc 100644 --- a/doc/api_samples/os-services/services-get-resp.xml +++ b/doc/api_samples/os-services/services-get-resp.xml @@ -1,6 +1,6 @@ - - - - + + + + diff --git a/doc/api_samples/os-services/services-list-get-resp.xml b/doc/api_samples/os-services/services-list-get-resp.xml index 68809e9aaf23..e9868c2f2611 100644 --- a/doc/api_samples/os-services/services-list-get-resp.xml +++ b/doc/api_samples/os-services/services-list-get-resp.xml @@ -1,6 +1,6 @@ - - - - + + + + diff --git a/doc/api_samples/os-volumes/os-volumes-detail-resp.xml b/doc/api_samples/os-volumes/os-volumes-detail-resp.xml index b849c2d2ea4e..c6ff8c23e78c 100644 --- a/doc/api_samples/os-volumes/os-volumes-detail-resp.xml +++ b/doc/api_samples/os-volumes/os-volumes-detail-resp.xml @@ -1,9 +1,9 @@ - + - \ No newline at end of file + diff --git a/doc/api_samples/os-volumes/os-volumes-get-resp.xml b/doc/api_samples/os-volumes/os-volumes-get-resp.xml index 1a516d5d2a63..a65b78c9de3d 100644 --- a/doc/api_samples/os-volumes/os-volumes-get-resp.xml +++ b/doc/api_samples/os-volumes/os-volumes-get-resp.xml @@ -1,7 +1,7 @@ - + - \ No newline at end of file + diff --git a/doc/api_samples/os-volumes/os-volumes-index-resp.xml b/doc/api_samples/os-volumes/os-volumes-index-resp.xml index b849c2d2ea4e..c6ff8c23e78c 100644 --- a/doc/api_samples/os-volumes/os-volumes-index-resp.xml +++ b/doc/api_samples/os-volumes/os-volumes-index-resp.xml @@ -1,9 +1,9 @@ - + - \ No newline at end of file + diff --git a/doc/api_samples/os-volumes/os-volumes-post-resp.xml b/doc/api_samples/os-volumes/os-volumes-post-resp.xml index 1a516d5d2a63..a65b78c9de3d 100644 --- a/doc/api_samples/os-volumes/os-volumes-post-resp.xml +++ b/doc/api_samples/os-volumes/os-volumes-post-resp.xml @@ -1,7 +1,7 @@ - + - \ No newline at end of file + diff --git a/nova/tests/integrated/api_samples/OS-SRV-USG/server-get-resp.xml.tpl b/nova/tests/integrated/api_samples/OS-SRV-USG/server-get-resp.xml.tpl index 3950b6918ba5..ee35f36fa0bf 100644 --- a/nova/tests/integrated/api_samples/OS-SRV-USG/server-get-resp.xml.tpl +++ b/nova/tests/integrated/api_samples/OS-SRV-USG/server-get-resp.xml.tpl @@ -1,5 +1,5 @@ - + diff --git a/nova/tests/integrated/api_samples/OS-SRV-USG/servers-detail-resp.xml.tpl b/nova/tests/integrated/api_samples/OS-SRV-USG/servers-detail-resp.xml.tpl index 8869b454584c..bce5e2eabe06 100644 --- a/nova/tests/integrated/api_samples/OS-SRV-USG/servers-detail-resp.xml.tpl +++ b/nova/tests/integrated/api_samples/OS-SRV-USG/servers-detail-resp.xml.tpl @@ -1,6 +1,6 @@ - + diff --git a/nova/tests/integrated/api_samples/all_extensions/server-get-resp.xml.tpl b/nova/tests/integrated/api_samples/all_extensions/server-get-resp.xml.tpl index daa0bcf7ecbd..1bd75a99b9b9 100644 --- a/nova/tests/integrated/api_samples/all_extensions/server-get-resp.xml.tpl +++ b/nova/tests/integrated/api_samples/all_extensions/server-get-resp.xml.tpl @@ -1,5 +1,5 @@ - + diff --git a/nova/tests/integrated/api_samples/all_extensions/servers-details-resp.xml.tpl b/nova/tests/integrated/api_samples/all_extensions/servers-details-resp.xml.tpl index f8482431c911..bf8dc083cdf9 100644 --- a/nova/tests/integrated/api_samples/all_extensions/servers-details-resp.xml.tpl +++ b/nova/tests/integrated/api_samples/all_extensions/servers-details-resp.xml.tpl @@ -1,6 +1,6 @@ - + diff --git a/nova/tests/integrated/api_samples/os-aggregates/aggregate-post-resp.xml.tpl b/nova/tests/integrated/api_samples/os-aggregates/aggregate-post-resp.xml.tpl index f8603ac33ff0..2a1bee5868f4 100644 --- a/nova/tests/integrated/api_samples/os-aggregates/aggregate-post-resp.xml.tpl +++ b/nova/tests/integrated/api_samples/os-aggregates/aggregate-post-resp.xml.tpl @@ -3,7 +3,7 @@ name nova False - %(timestamp)s + %(xmltime)s None None %(aggregate_id)s diff --git a/nova/tests/integrated/api_samples/os-aggregates/aggregate-update-post-resp.xml.tpl b/nova/tests/integrated/api_samples/os-aggregates/aggregate-update-post-resp.xml.tpl index 071e1c43a698..1ff22bc0e099 100644 --- a/nova/tests/integrated/api_samples/os-aggregates/aggregate-update-post-resp.xml.tpl +++ b/nova/tests/integrated/api_samples/os-aggregates/aggregate-update-post-resp.xml.tpl @@ -3,8 +3,8 @@ newname nova2 False - %(timestamp)s - %(timestamp)s + %(xmltime)s + %(xmltime)s None 1 diff --git a/nova/tests/integrated/api_samples/os-aggregates/aggregates-add-host-post-resp.xml.tpl b/nova/tests/integrated/api_samples/os-aggregates/aggregates-add-host-post-resp.xml.tpl index a45a01789431..7412dee66d90 100644 --- a/nova/tests/integrated/api_samples/os-aggregates/aggregates-add-host-post-resp.xml.tpl +++ b/nova/tests/integrated/api_samples/os-aggregates/aggregates-add-host-post-resp.xml.tpl @@ -3,7 +3,7 @@ name nova False - %(timestamp)s + %(xmltime)s None %(compute_host)s diff --git a/nova/tests/integrated/api_samples/os-aggregates/aggregates-get-resp.xml.tpl b/nova/tests/integrated/api_samples/os-aggregates/aggregates-get-resp.xml.tpl index d59d10a84223..7f44a231cb77 100644 --- a/nova/tests/integrated/api_samples/os-aggregates/aggregates-get-resp.xml.tpl +++ b/nova/tests/integrated/api_samples/os-aggregates/aggregates-get-resp.xml.tpl @@ -3,7 +3,7 @@ name nova False - %(timestamp)s + %(xmltime)s None None diff --git a/nova/tests/integrated/api_samples/os-aggregates/aggregates-list-get-resp.xml.tpl b/nova/tests/integrated/api_samples/os-aggregates/aggregates-list-get-resp.xml.tpl index 0a6173a0baff..79af4a8d8932 100644 --- a/nova/tests/integrated/api_samples/os-aggregates/aggregates-list-get-resp.xml.tpl +++ b/nova/tests/integrated/api_samples/os-aggregates/aggregates-list-get-resp.xml.tpl @@ -4,7 +4,7 @@ name nova False - %(timestamp)s + %(xmltime)s None None diff --git a/nova/tests/integrated/api_samples/os-aggregates/aggregates-metadata-post-resp.xml.tpl b/nova/tests/integrated/api_samples/os-aggregates/aggregates-metadata-post-resp.xml.tpl index 5b229cfc9e27..01245a4dbba8 100644 --- a/nova/tests/integrated/api_samples/os-aggregates/aggregates-metadata-post-resp.xml.tpl +++ b/nova/tests/integrated/api_samples/os-aggregates/aggregates-metadata-post-resp.xml.tpl @@ -3,7 +3,7 @@ name nova False - %(timestamp)s + %(xmltime)s None None diff --git a/nova/tests/integrated/api_samples/os-aggregates/aggregates-remove-host-post-resp.xml.tpl b/nova/tests/integrated/api_samples/os-aggregates/aggregates-remove-host-post-resp.xml.tpl index d59d10a84223..7f44a231cb77 100644 --- a/nova/tests/integrated/api_samples/os-aggregates/aggregates-remove-host-post-resp.xml.tpl +++ b/nova/tests/integrated/api_samples/os-aggregates/aggregates-remove-host-post-resp.xml.tpl @@ -3,7 +3,7 @@ name nova False - %(timestamp)s + %(xmltime)s None None diff --git a/nova/tests/integrated/api_samples/os-extended-services-delete/services-get-resp.xml.tpl b/nova/tests/integrated/api_samples/os-extended-services-delete/services-get-resp.xml.tpl index 1b1a3cf74c33..8e87af91734c 100644 --- a/nova/tests/integrated/api_samples/os-extended-services-delete/services-get-resp.xml.tpl +++ b/nova/tests/integrated/api_samples/os-extended-services-delete/services-get-resp.xml.tpl @@ -1,7 +1,7 @@ - - - - + + + + diff --git a/nova/tests/integrated/api_samples/os-instance-actions/instance-action-get-resp.xml.tpl b/nova/tests/integrated/api_samples/os-instance-actions/instance-action-get-resp.xml.tpl index 6cd44bfc45bf..61c0ac8c764c 100644 --- a/nova/tests/integrated/api_samples/os-instance-actions/instance-action-get-resp.xml.tpl +++ b/nova/tests/integrated/api_samples/os-instance-actions/instance-action-get-resp.xml.tpl @@ -1,5 +1,5 @@ - - - + + + diff --git a/nova/tests/integrated/api_samples/os-instance-actions/instance-actions-list-resp.xml.tpl b/nova/tests/integrated/api_samples/os-instance-actions/instance-actions-list-resp.xml.tpl index 943b1ba7478b..87a8726ccec0 100644 --- a/nova/tests/integrated/api_samples/os-instance-actions/instance-actions-list-resp.xml.tpl +++ b/nova/tests/integrated/api_samples/os-instance-actions/instance-actions-list-resp.xml.tpl @@ -1,5 +1,5 @@ - - + + diff --git a/nova/tests/integrated/api_samples/os-instance_usage_audit_log/inst-usage-audit-log-index-get-resp.json.tpl b/nova/tests/integrated/api_samples/os-instance_usage_audit_log/inst-usage-audit-log-index-get-resp.json.tpl index 6974f360fc79..81b0d6c3412f 100644 --- a/nova/tests/integrated/api_samples/os-instance_usage_audit_log/inst-usage-audit-log-index-get-resp.json.tpl +++ b/nova/tests/integrated/api_samples/os-instance_usage_audit_log/inst-usage-audit-log-index-get-resp.json.tpl @@ -9,8 +9,8 @@ "num_hosts_not_run": 1, "num_hosts_running": 0, "overall_status": "0 of 1 hosts done. 0 errors.", - "period_beginning": "%(timestamp)s", - "period_ending": "%(timestamp)s", + "period_beginning": "%(xmltime)s", + "period_ending": "%(xmltime)s", "total_errors": 0, "total_instances": 0 } diff --git a/nova/tests/integrated/api_samples/os-instance_usage_audit_log/inst-usage-audit-log-index-get-resp.xml.tpl b/nova/tests/integrated/api_samples/os-instance_usage_audit_log/inst-usage-audit-log-index-get-resp.xml.tpl index 4eafa8b4aa86..8b670b0c9185 100644 --- a/nova/tests/integrated/api_samples/os-instance_usage_audit_log/inst-usage-audit-log-index-get-resp.xml.tpl +++ b/nova/tests/integrated/api_samples/os-instance_usage_audit_log/inst-usage-audit-log-index-get-resp.xml.tpl @@ -10,7 +10,7 @@ %(hostid)s 0 of 1 hosts done. 0 errors. - %(timestamp)s - %(timestamp)s + %(xmltime)s + %(xmltime)s 1 diff --git a/nova/tests/integrated/api_samples/os-instance_usage_audit_log/inst-usage-audit-log-show-get-resp.json.tpl b/nova/tests/integrated/api_samples/os-instance_usage_audit_log/inst-usage-audit-log-show-get-resp.json.tpl index eda952304702..71549c156bc5 100644 --- a/nova/tests/integrated/api_samples/os-instance_usage_audit_log/inst-usage-audit-log-show-get-resp.json.tpl +++ b/nova/tests/integrated/api_samples/os-instance_usage_audit_log/inst-usage-audit-log-show-get-resp.json.tpl @@ -9,8 +9,8 @@ "num_hosts_not_run": 1, "num_hosts_running": 0, "overall_status": "0 of 1 hosts done. 0 errors.", - "period_beginning": "%(timestamp)s", - "period_ending": "%(timestamp)s", + "period_beginning": "%(xmltime)s", + "period_ending": "%(xmltime)s", "total_errors": 0, "total_instances": 0 } diff --git a/nova/tests/integrated/api_samples/os-instance_usage_audit_log/inst-usage-audit-log-show-get-resp.xml.tpl b/nova/tests/integrated/api_samples/os-instance_usage_audit_log/inst-usage-audit-log-show-get-resp.xml.tpl index 1ef243292a4f..9ceb1c26c8ba 100644 --- a/nova/tests/integrated/api_samples/os-instance_usage_audit_log/inst-usage-audit-log-show-get-resp.xml.tpl +++ b/nova/tests/integrated/api_samples/os-instance_usage_audit_log/inst-usage-audit-log-show-get-resp.xml.tpl @@ -10,7 +10,7 @@ %(hostid)s 0 of 1 hosts done. 0 errors. - %(timestamp)s - %(timestamp)s + %(xmltime)s + %(xmltime)s 1 diff --git a/nova/tests/integrated/api_samples/os-keypairs/keypairs-get-resp.json.tpl b/nova/tests/integrated/api_samples/os-keypairs/keypairs-get-resp.json.tpl index 3a188cfc817a..4fde60f14b53 100644 --- a/nova/tests/integrated/api_samples/os-keypairs/keypairs-get-resp.json.tpl +++ b/nova/tests/integrated/api_samples/os-keypairs/keypairs-get-resp.json.tpl @@ -5,7 +5,7 @@ "fingerprint": "%(fingerprint)s", "user_id": "fake", "deleted": false, - "created_at": "%(timestamp)s", + "created_at": "%(strtime)s", "updated_at": null, "deleted_at": null, "id": 1 diff --git a/nova/tests/integrated/api_samples/os-keypairs/keypairs-get-resp.xml.tpl b/nova/tests/integrated/api_samples/os-keypairs/keypairs-get-resp.xml.tpl index bdaebc47d6db..3442f1ed6293 100644 --- a/nova/tests/integrated/api_samples/os-keypairs/keypairs-get-resp.xml.tpl +++ b/nova/tests/integrated/api_samples/os-keypairs/keypairs-get-resp.xml.tpl @@ -6,7 +6,7 @@ %(fingerprint)s fake False - %(timestamp)s + %(xmltime)s None None 1 diff --git a/nova/tests/integrated/api_samples/os-networks/network-show-resp.xml.tpl b/nova/tests/integrated/api_samples/os-networks/network-show-resp.xml.tpl index 7989f47e4bea..aeab222391de 100644 --- a/nova/tests/integrated/api_samples/os-networks/network-show-resp.xml.tpl +++ b/nova/tests/integrated/api_samples/os-networks/network-show-resp.xml.tpl @@ -4,7 +4,7 @@ 1000 %(ip)s eth0 - %(timestamp)s + %(xmltime)s %(id)s None None @@ -23,7 +23,7 @@ %(ip)s False None - %(timestamp)s + %(xmltime)s nsokolov-desktop None None diff --git a/nova/tests/integrated/api_samples/os-networks/networks-list-resp.xml.tpl b/nova/tests/integrated/api_samples/os-networks/networks-list-resp.xml.tpl index c01c08337864..7ac19a81371d 100644 --- a/nova/tests/integrated/api_samples/os-networks/networks-list-resp.xml.tpl +++ b/nova/tests/integrated/api_samples/os-networks/networks-list-resp.xml.tpl @@ -5,7 +5,7 @@ 1000 %(ip)s eth0 - %(timestamp)s + %(xmltime)s %(id)s None None @@ -24,7 +24,7 @@ %(ip)s False None - %(timestamp)s + %(xmltime)s nsokolov-desktop None None @@ -54,7 +54,7 @@ None False None - %(timestamp)s + %(xmltime)s None None None diff --git a/nova/tests/integrated/api_samples/os-services/services-get-resp.xml.tpl b/nova/tests/integrated/api_samples/os-services/services-get-resp.xml.tpl index 53f8541ad69a..ed8bb14dfc32 100644 --- a/nova/tests/integrated/api_samples/os-services/services-get-resp.xml.tpl +++ b/nova/tests/integrated/api_samples/os-services/services-get-resp.xml.tpl @@ -1,7 +1,7 @@ - - - - + + + + diff --git a/nova/tests/integrated/api_samples/os-services/services-list-get-resp.xml.tpl b/nova/tests/integrated/api_samples/os-services/services-list-get-resp.xml.tpl index e708aa78d2d0..1c6b0113b700 100644 --- a/nova/tests/integrated/api_samples/os-services/services-list-get-resp.xml.tpl +++ b/nova/tests/integrated/api_samples/os-services/services-list-get-resp.xml.tpl @@ -1,6 +1,6 @@ - - - - + + + + diff --git a/nova/tests/integrated/api_samples/os-simple-tenant-usage/simple-tenant-usage-get-specific.xml.tpl b/nova/tests/integrated/api_samples/os-simple-tenant-usage/simple-tenant-usage-get-specific.xml.tpl index 4a688230792b..014c2f9d64d7 100644 --- a/nova/tests/integrated/api_samples/os-simple-tenant-usage/simple-tenant-usage-get-specific.xml.tpl +++ b/nova/tests/integrated/api_samples/os-simple-tenant-usage/simple-tenant-usage-get-specific.xml.tpl @@ -5,8 +5,8 @@ 1.0 512.0 1.0 - %(timestamp)s - %(timestamp)s + %(xmltime)s + %(xmltime)s %(uuid)s @@ -17,7 +17,7 @@ 1 openstack m1.tiny - %(timestamp)s + %(xmltime)s None active 3600 diff --git a/nova/tests/integrated/api_samples/os-simple-tenant-usage/simple-tenant-usage-get.xml.tpl b/nova/tests/integrated/api_samples/os-simple-tenant-usage/simple-tenant-usage-get.xml.tpl index 4a2833da8342..b1bb63f1c4b6 100644 --- a/nova/tests/integrated/api_samples/os-simple-tenant-usage/simple-tenant-usage-get.xml.tpl +++ b/nova/tests/integrated/api_samples/os-simple-tenant-usage/simple-tenant-usage-get.xml.tpl @@ -6,8 +6,8 @@ 1.0 512.0 1.0 - %(timestamp)s - %(timestamp)s + %(xmltime)s + %(xmltime)s diff --git a/nova/tests/integrated/api_samples/os-volumes/os-volumes-detail-resp.xml.tpl b/nova/tests/integrated/api_samples/os-volumes/os-volumes-detail-resp.xml.tpl index 7410bed49e05..bd8f324ee024 100644 --- a/nova/tests/integrated/api_samples/os-volumes/os-volumes-detail-resp.xml.tpl +++ b/nova/tests/integrated/api_samples/os-volumes/os-volumes-detail-resp.xml.tpl @@ -1,6 +1,6 @@ - + diff --git a/nova/tests/integrated/api_samples/os-volumes/os-volumes-get-resp.xml.tpl b/nova/tests/integrated/api_samples/os-volumes/os-volumes-get-resp.xml.tpl index 6503138f08ab..cb3c5edf90da 100644 --- a/nova/tests/integrated/api_samples/os-volumes/os-volumes-get-resp.xml.tpl +++ b/nova/tests/integrated/api_samples/os-volumes/os-volumes-get-resp.xml.tpl @@ -1,5 +1,5 @@ - + diff --git a/nova/tests/integrated/api_samples/os-volumes/os-volumes-index-resp.xml.tpl b/nova/tests/integrated/api_samples/os-volumes/os-volumes-index-resp.xml.tpl index 7410bed49e05..bd8f324ee024 100644 --- a/nova/tests/integrated/api_samples/os-volumes/os-volumes-index-resp.xml.tpl +++ b/nova/tests/integrated/api_samples/os-volumes/os-volumes-index-resp.xml.tpl @@ -1,6 +1,6 @@ - + diff --git a/nova/tests/integrated/api_samples/os-volumes/os-volumes-post-resp.xml.tpl b/nova/tests/integrated/api_samples/os-volumes/os-volumes-post-resp.xml.tpl index 6503138f08ab..cb3c5edf90da 100644 --- a/nova/tests/integrated/api_samples/os-volumes/os-volumes-post-resp.xml.tpl +++ b/nova/tests/integrated/api_samples/os-volumes/os-volumes-post-resp.xml.tpl @@ -1,5 +1,5 @@ - + diff --git a/nova/tests/integrated/api_samples/os-volumes/snapshot-create-resp.xml.tpl b/nova/tests/integrated/api_samples/os-volumes/snapshot-create-resp.xml.tpl index d75ae7ddd890..78268c822c70 100644 --- a/nova/tests/integrated/api_samples/os-volumes/snapshot-create-resp.xml.tpl +++ b/nova/tests/integrated/api_samples/os-volumes/snapshot-create-resp.xml.tpl @@ -1,2 +1,2 @@ - + diff --git a/nova/tests/integrated/api_samples/os-volumes/snapshots-detail-resp.xml.tpl b/nova/tests/integrated/api_samples/os-volumes/snapshots-detail-resp.xml.tpl index dbfe32526ac5..730921f4cf5d 100644 --- a/nova/tests/integrated/api_samples/os-volumes/snapshots-detail-resp.xml.tpl +++ b/nova/tests/integrated/api_samples/os-volumes/snapshots-detail-resp.xml.tpl @@ -1,6 +1,6 @@ - - - + + + diff --git a/nova/tests/integrated/api_samples/os-volumes/snapshots-list-resp.xml.tpl b/nova/tests/integrated/api_samples/os-volumes/snapshots-list-resp.xml.tpl index dbfe32526ac5..730921f4cf5d 100644 --- a/nova/tests/integrated/api_samples/os-volumes/snapshots-list-resp.xml.tpl +++ b/nova/tests/integrated/api_samples/os-volumes/snapshots-list-resp.xml.tpl @@ -1,6 +1,6 @@ - - - + + + diff --git a/nova/tests/integrated/api_samples/os-volumes/snapshots-show-resp.xml.tpl b/nova/tests/integrated/api_samples/os-volumes/snapshots-show-resp.xml.tpl index 3525851cfeaf..c42bf41b3cf9 100644 --- a/nova/tests/integrated/api_samples/os-volumes/snapshots-show-resp.xml.tpl +++ b/nova/tests/integrated/api_samples/os-volumes/snapshots-show-resp.xml.tpl @@ -1,2 +1,2 @@ - + diff --git a/nova/tests/integrated/api_samples_test_base.py b/nova/tests/integrated/api_samples_test_base.py index 07d9893c1dba..1089e0fbb359 100644 --- a/nova/tests/integrated/api_samples_test_base.py +++ b/nova/tests/integrated/api_samples_test_base.py @@ -268,17 +268,14 @@ class ApiSampleTestBase(integrated_helpers._IntegratedTestBase): text = r'[^<]*' isotime_re = '\d{4}-[0,1]\d-[0-3]\dT\d{2}:\d{2}:\d{2}Z' strtime_re = '\d{4}-[0,1]\d-[0-3]\dT\d{2}:\d{2}:\d{2}\.\d{6}' - # NOTE(treinish): Could result in a false positive, but it - # shouldn't be an issue for this case. - timestamp_re = ('\d{4}-[0,1]\d-[0-3]\d[ ,T]' - '\d{2}:\d{2}:\d{2}' - '(Z|(\+|-)\d{2}:\d{2}|\.\d{6}|' - '\.\d{6}(Z|(\+|-)\d{2}:\d{2})|)') + xmltime_re = ('\d{4}-[0,1]\d-[0-3]\d ' + '\d{2}:\d{2}:\d{2}' + '(\.\d{6})?(\+00:00)?') return { 'isotime': isotime_re, 'strtime': strtime_re, 'strtime_or_none': r'None|%s' % strtime_re, - 'timestamp': timestamp_re, + 'xmltime': xmltime_re, 'password': '[0-9a-zA-Z]{1,12}', 'ip': '[0-9]{1,3}.[0-9]{1,3}.[0-9]{1,3}.[0-9]{1,3}', 'ip6': '([0-9a-zA-Z]{1,4}:){1,7}:?[0-9a-zA-Z]{1,4}',