openstack-python-openstackc.../openstackclient/tests/unit
Stephen Finucane 53debe7fe1 compute: Fix filtering servers by tags
The nova API expects the 'tags' and 'not-tags' filters of the 'GET
/servers' (list servers) API to be a CSV string [1]:

  tags (Optional)
    A list of tags to filter the server list by. Servers that match all
    tags in this list will be returned. Boolean expression in this case
    is 't1 AND t2'. Tags in query must be separated by comma.

    New in version 2.26

  not-tags (Optional)
    A list of tags to filter the server list by. Servers that don’t
    match all tags in this list will be returned. Boolean expression in
    this case is 'NOT (t1 AND t2)'. Tags in query must be separated by
    comma.

    New in version 2.26

We were instead providing a Python list, which was simply being URL
encoded. Correct this.

[1] https://docs.openstack.org/api-ref/compute/?expanded=list-servers-detail#list-servers

Change-Id: Ie0251a0dccdf3385089e5bbaedf646a5e928cc48
Signed-off-by: Stephen Finucane <sfinucan@redhat.com>
Closes-Bug: #1946816
2021-10-13 10:30:26 +01:00
..
api Make container list --all work 2020-05-16 14:40:28 +00:00
common project cleanup 2021-02-02 08:14:34 +00:00
compute compute: Fix filtering servers by tags 2021-10-13 10:30:26 +01:00
identity Replace assertItemsEqual with assertCountEqual 2021-05-03 22:07:39 +02:00
image Remove non-working code after method return. 2021-10-06 19:21:51 +09:00
integ Remove os-client-config references 2020-06-08 16:20:28 -05:00
network Merge "L3 conntrack helper: Use singular name consistently" 2021-08-26 08:14:22 +00:00
object Remove usage of six 2020-10-07 02:15:25 +00:00
volume Replace assertItemsEqual with assertCountEqual 2021-09-09 15:50:54 +02:00
__init__.py move unit tests to new "unit" test module 2016-09-08 15:19:50 -07:00
fakes.py Remove usage of six 2020-10-07 02:15:25 +00:00
test_shell.py Remove unnecessary test 2020-11-06 10:16:06 +00:00
utils.py Make use of comparable 'FormattableColumn' subclasses 2020-12-09 15:17:25 +00:00