Merge "Replace period to underscore"

This commit is contained in:
Zuul 2022-11-02 00:57:20 +00:00 committed by Gerrit Code Review
commit 256a6b09d4
2 changed files with 8 additions and 8 deletions

View File

@ -114,14 +114,14 @@ class ShareTypesAdminTest(base.BaseSharesAdminTest):
@decorators.idempotent_id('a9af19e1-e789-4c4f-a39b-dd8df6ed00b1')
@tc.attr(base.TAG_POSITIVE, base.TAG_API)
@ddt.named_data(
('2.50_name_description_public', '2.50',
('2_50_name_description_public', '2.50',
data_utils.rand_name("type_updated"), 'description_updated', True),
('2.50_name', '2.50', data_utils.rand_name("type_updated"), None,
('2_50_name', '2.50', data_utils.rand_name("type_updated"), None,
None),
('2.50_description_public', '2.50', None, 'description_updated',
('2_50_description_public', '2.50', None, 'description_updated',
None),
('2.50_public', '2.50', None, None, True),
('2.50', '2.50', None, None, False),
('2_50_public', '2.50', None, None, True),
('2_50', '2.50', None, None, False),
(f'{LATEST_MICROVERSION}_name_description_public',
LATEST_MICROVERSION, data_utils.rand_name("type_updated"),
'description_updated', True),

View File

@ -84,12 +84,12 @@ class ShareTypesNegativeTest(base.BaseSharesMixedTest):
@decorators.idempotent_id('4a22945c-8988-43a1-88c9-eb86e6abcd8e')
@tc.attr(base.TAG_NEGATIVE, base.TAG_API)
@ddt.named_data(
('2.50', '2.50', '', None, None),
('2_50', '2.50', '', None, None),
(LATEST_MICROVERSION, LATEST_MICROVERSION, '', None, None),
('2.50_bad_public', '2.50', None, None, 'not_bool'),
('2_50_bad_public', '2.50', None, None, 'not_bool'),
(f'{LATEST_MICROVERSION}_bad_public', LATEST_MICROVERSION, None, None,
'not_bool'),
('2.50_description', '2.50', None, generate_long_description(256),
('2_50_description', '2.50', None, generate_long_description(256),
None),
(f'{LATEST_MICROVERSION}_description', LATEST_MICROVERSION, None,
generate_long_description(256), None),