neutron/neutron/tests/functional
Sahid Orentino Ferdjaoui 609ebd9504 test: fix docstring validation function
For some reason in Python even if using getattr with None and as
default value a string for the type __doc__ will return None.

>>> type(getattr(None, "__doc__", ""))
<class 'NoneType'>

The error reported was:

ft1.1: neutron.tests.functional.db.test_migrations.TestModelsMigrationsMySQL.test_branchestesttools.testresult.real._StringException: Traceback (most recent call last):
  File "/home/zuul/src/opendev.org/openstack/neutron/neutron/tests/base.py", line 182, in func
    return f(self, *args, **kwargs)
  File "/home/zuul/src/opendev.org/openstack/neutron/neutron/tests/functional/db/test_migrations.py", line 302, in test_branches
    find_migration_exceptions()
  File "/home/zuul/src/opendev.org/openstack/neutron/neutron/tests/functional/db/test_migrations.py", line 253, in find_migration_exceptions
    if len(explanation) < 1:
TypeError: object of type 'NoneType' has no len()

Signed-off-by: Sahid Orentino Ferdjaoui <sahid.ferdjaoui@industrialdiscipline.com>
Change-Id: I7c03bac9c6e8dd074325f511e555c10fec8e77fc
2022-11-07 13:21:00 +01:00
..
agent Merge "[OVN] Allow to execute ``MetadataProxyHandler`` in a local thread" 2022-10-18 10:01:30 +00:00
api Convert policy.json into policy-in-code 2018-12-13 20:37:53 +00:00
cmd Fix remaining typos in comments and tests 2022-07-06 21:20:27 +05:30
common ovn: Use ovsdb-client to create neutron_pg_drop 2022-10-04 02:15:58 +00:00
db test: fix docstring validation function 2022-11-07 13:21:00 +01:00
objects [Functional] Fix tests for oslo.db>=12.1.0 2022-09-08 17:48:28 +00:00
pecan_wsgi [API] Return 403 for POST requests when user is not authorized 2022-04-11 10:51:26 +00:00
plugins Merge "Revert "Since OVN 20.06, config is stored in "Chassis.other_config""" 2022-10-06 18:33:31 +00:00
privileged Add a default table in "ip rule" command 2022-07-27 20:55:23 +02:00
resources Skip "PortBindingChassisEvent" if revision number changes 2022-05-16 15:53:15 +00:00
sanity Use pyroute2 for SRIOV VF commands 2020-05-27 16:58:02 +00:00
scheduler Use more pythonic approach 2021-08-25 18:02:53 -07:00
services Revert "Since OVN 20.06, config is stored in "Chassis.other_config"" 2022-10-06 15:33:06 +00:00
tests Complete removal of dependency on the "mock" package 2020-05-01 12:05:34 -04:00
__init__.py tests: removed 'retargetable' framework 2017-05-02 16:45:49 +00:00
base.py Revert "Since OVN 20.06, config is stored in "Chassis.other_config"" 2022-10-06 15:33:06 +00:00
constants.py TrunkManager for the OVS agent 2016-08-24 02:52:17 -04:00
requirements.txt Update requirements for recent pip failures 2020-12-09 13:17:51 +01:00
test_server.py Wait until workers have been launched 2021-07-29 15:49:50 +00:00
test_service.py Modify api and rpc default number of workers 2019-02-19 13:24:01 -07:00