'debug osd': 20
}
},
+ 'flavor': Placeholder('flavor'),
'log-whitelist': ['\(MDS_ALL_DOWN\)',
'\(MDS_UP_LESS_THAN_MAX\)'],
'log-ignorelist': ['\(MDS_ALL_DOWN\)',
'install': {
'ceph': {
'sha1': Placeholder('ceph_hash'),
+ 'flavor': Placeholder('flavor'),
}
},
'workunit': {
archive_upload_key=config.archive_upload_key,
suite_repo=config.get_ceph_qa_suite_git_url(),
suite_relpath=self.args.suite_relpath,
+ flavor=self.args.flavor,
)
return self.build_base_config()
suite_repo='https://example.com/ceph/suite.git',
suite_relpath='',
ceph_repo='https://example.com/ceph/ceph.git',
+ flavor='default'
)
output_dict = substitute_placeholders(dict_templ, input_dict)
assert output_dict['suite'] == 'suite'
suite_repo='https://example.com/ceph/suite.git',
suite_relpath='',
ceph_repo='https://example.com/ceph/ceph.git',
+ flavor=None,
)
output_dict = substitute_placeholders(dict_templ, input_dict)
assert 'os_type' not in output_dict