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>
This commit is contained in:
parent
70143bc5ee
commit
ac718d5902
@ -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.
|
||||
|
||||
|
@ -5,7 +5,6 @@
|
||||
- ^.*\.rst$
|
||||
- ^doc/.*$
|
||||
- ^ironicclient/locale/.*$
|
||||
- ^ironicclient/tests/.*$
|
||||
- ^releasenotes/.*$
|
||||
- ^setup.cfg$
|
||||
- ^tools/.*$
|
||||
|
Loading…
Reference in New Issue
Block a user