Example #1
0
 def test_null_placeholders_dropped(self):
     input_dict = dict(
         suite="suite",
         suite_branch="suite_branch",
         ceph_branch="ceph_branch",
         ceph_hash="ceph_hash",
         teuthology_branch="teuthology_branch",
         machine_type="machine_type",
         distro=None,
     )
     output_dict = suite.substitute_placeholders(suite.dict_templ, input_dict)
     assert "os_type" not in output_dict
Example #2
0
 def test_null_placeholders_dropped(self):
     input_dict = dict(
         suite='suite',
         suite_branch='suite_branch',
         ceph_branch='ceph_branch',
         ceph_hash='ceph_hash',
         teuthology_branch='teuthology_branch',
         machine_type='machine_type',
         distro=None,
     )
     output_dict = suite.substitute_placeholders(suite.dict_templ,
                                                 input_dict)
     assert 'os_type' not in output_dict
Example #3
0
 def test_null_placeholders_dropped(self):
     input_dict = dict(
         suite='suite',
         suite_branch='suite_branch',
         ceph_branch='ceph_branch',
         ceph_hash='ceph_hash',
         teuthology_branch='teuthology_branch',
         machine_type='machine_type',
         distro=None,
     )
     output_dict = suite.substitute_placeholders(suite.dict_templ,
                                                 input_dict)
     assert 'os_type' not in output_dict
Example #4
0
 def test_substitute_placeholders(self):
     input_dict = dict(
         suite="suite",
         suite_branch="suite_branch",
         ceph_branch="ceph_branch",
         ceph_hash="ceph_hash",
         teuthology_branch="teuthology_branch",
         machine_type="machine_type",
         distro="distro",
     )
     output_dict = suite.substitute_placeholders(suite.dict_templ, input_dict)
     assert output_dict["suite"] == "suite"
     assert isinstance(suite.dict_templ["suite"], suite.Placeholder)
     assert isinstance(suite.dict_templ["overrides"]["admin_socket"]["branch"], suite.Placeholder)
Example #5
0
 def test_substitute_placeholders(self):
     input_dict = dict(
         suite='suite',
         suite_branch='suite_branch',
         ceph_branch='ceph_branch',
         ceph_hash='ceph_hash',
         teuthology_branch='teuthology_branch',
         machine_type='machine_type',
         distro='distro',
     )
     output_dict = suite.substitute_placeholders(suite.dict_templ,
                                                 input_dict)
     assert output_dict['suite'] == 'suite'
     assert isinstance(suite.dict_templ['suite'], suite.Placeholder)
     assert isinstance(
         suite.dict_templ['overrides']['admin_socket']['branch'],
         suite.Placeholder)
Example #6
0
 def test_substitute_placeholders(self):
     input_dict = dict(
         suite='suite',
         suite_branch='suite_branch',
         ceph_branch='ceph_branch',
         ceph_hash='ceph_hash',
         teuthology_branch='teuthology_branch',
         machine_type='machine_type',
         distro='distro',
     )
     output_dict = suite.substitute_placeholders(suite.dict_templ,
                                                 input_dict)
     assert output_dict['suite'] == 'suite'
     assert isinstance(suite.dict_templ['suite'], suite.Placeholder)
     assert isinstance(
         suite.dict_templ['overrides']['admin_socket']['branch'],
         suite.Placeholder)