neutron/neutron/tests/unit
Pierre Riteau 177956506e Normalise format of OVN agent heartbeat timestamp
A recent change [1] to show the real heartbeat timestamp from OVN agents
had a side effect of changing the timestamp format, which now includes a
timezone:

    +-------------------+----------------------------------+
    | Field             | Value                            |
    +-------------------+----------------------------------+
    | last_heartbeat_at | 2023-02-23 14:12:07.471000+00:00 |
    +-------------------+----------------------------------+

This unexpected format change causes some clients to fail to parse the
response to GET /v2.0/agents.

Normalise the format of the timestamp to remove timezone information.
Also remove the microsecond part, which was not done for OVN, but is
absent from other network agents.

[1] https://review.opendev.org/c/openstack/neutron/+/844179

Closes-Bug: #2008257
Change-Id: I75a37fb9b49a421e4524da6b56ef8362ceb6107b
(cherry picked from commit 827fbd01c3)
2023-02-27 12:42:19 +00:00
..
agent Improve agent provision performance for large networks 2023-01-17 13:00:13 -06:00
api dhcp/rpc: retrieve network details with segments 2022-09-01 14:48:54 +02:00
cmd Fix remaining typos in comments and tests 2022-07-06 21:20:27 +05:30
common Merge "OVN: Add support for DHCP option "domain-search" for IPv4" into stable/zed 2022-11-22 12:15:10 +00:00
conf [S-RBAC] Allow admin user to do all API requests by default 2023-02-20 11:07:54 +00:00
core_extensions Remove the dependency on the "mock" package 2020-04-28 18:05:37 -04:00
db Allow multiple IPv6 ports on router from same network ml2/ovs+dvr 2023-01-16 17:41:40 +01:00
debug Remove the dependency on the "mock" package 2020-04-28 18:05:37 -04:00
extensions [UT] Mock the retry decorator when creating duplicated NDPProxy 2023-02-15 09:12:41 +00:00
hacking Remove "six" library 2020-07-28 16:55:52 +00:00
ipam Remove exception ``IpAddressAllocationNotFound`` 2022-03-16 16:48:06 +00:00
notifiers Fix test_nova_send_events_* tests 2022-09-06 11:40:10 +02:00
objects Always create a "router_extra_attributes" register per router 2022-11-15 22:50:32 +01:00
pecan_wsgi Remove the dependency on the "mock" package 2020-04-28 18:05:37 -04:00
plugins Normalise format of OVN agent heartbeat timestamp 2023-02-27 12:42:19 +00:00
privileged Fix tests involving pyroute2.netlink module 2022-06-14 11:47:56 +00:00
quota Replace "tenant_id" with "project_id" in Quota engine 2021-09-22 08:27:10 +00:00
scheduler Improve scheduling L3/DHCP agents, missing lower binding indexes 2023-02-13 17:53:00 +01:00
services [OVN] Bump the port revision number in trunk driver 2023-02-14 08:52:50 +00:00
tests Merge "Replace assertItemsEqual with assertCountEqual" 2021-04-26 19:12:38 +00:00
__init__.py
_test_extension_portbindings.py Deprecate 'allow_overlapping_ips' config option 2021-10-21 10:56:33 +00:00
dummy_plugin.py Remove Neutron LBaaS 2019-09-20 07:46:06 +00:00
extension_stubs.py
fake_resources.py Since OVN 20.06, config is stored in "Chassis.other_config" 2022-11-02 11:57:08 +00:00
test_auth.py Fix deprecation warnings about oslo.context 2022-08-13 09:08:00 +00:00
test_manager.py Remove the dependency on the "mock" package 2020-04-28 18:05:37 -04:00
test_neutron_plugin_base_v2.py Add unit test to validate non DB base core plugin can be loaded 2017-11-15 21:21:35 +00:00
test_opts.py Provide the rpc_response_max_timeout parameter to sriov-agent 2021-06-06 23:56:14 +09:00
test_policy.py Fix deprecation warnings about oslo.context 2022-08-13 09:08:00 +00:00
test_service.py Remove the dependency on the "mock" package 2020-04-28 18:05:37 -04:00
test_worker.py Remove the dependency on the "mock" package 2020-04-28 18:05:37 -04:00
test_wsgi.py Fix a deprecation warning about escape sequence 2022-08-13 19:03:19 +09:00
testlib_api.py Remove usage of six.text_type and six.string_type 2020-05-22 14:02:55 -04:00