Browse Source

Fix the functional tests

We somehow manage to merge a patch that breaks them. Import the required
code from change Ibb8c4676f653c36978bd0c9815ddf7eb80fa8670.

Make sure we run functional tests on ironicclient/tests changes.

Change-Id: I94e2b3d9ae669f2522f42879dd3ee3bd78b73c77
Co-Authored-By: Kyrylo Romanenko <kromanenko@mirantis.com>
changes/38/781638/3
Dmitry Tantsur 10 months ago
parent
commit
ac718d5902
  1. 12
      ironicclient/tests/functional/osc/v1/base.py
  2. 1
      zuul.d/ironicclient-jobs.yaml

12
ironicclient/tests/functional/osc/v1/base.py

@ -41,6 +41,18 @@ class TestCase(base.FunctionalTestBase):
def construct_cmd(*parts):
return ' '.join(str(x) for x in parts)
@staticmethod
def generate_params(argument, params):
"""Generate parameters string.
:param argument: argument
:param params: values passed with argument
"""
parts = []
for key, value in params.items():
parts.append('{} {}={}'.format(argument, key, value))
return ' '.join(parts)
def assert_dict_is_subset(self, expected, actual):
"""Check if expected keys/values exist in actual response body.

1
zuul.d/ironicclient-jobs.yaml

@ -5,7 +5,6 @@
- ^.*\.rst$
- ^doc/.*$
- ^ironicclient/locale/.*$
- ^ironicclient/tests/.*$
- ^releasenotes/.*$
- ^setup.cfg$
- ^tools/.*$

Loading…
Cancel
Save