def test_regression( self, m_git_ls_remote, m_package_version_for_hash, m_git_branch_exists, m_fetch_repos, ): config.use_shaman = False config.gitbuilder_host = 'example.com' m_package_version_for_hash.return_value = 'ceph_hash' m_git_branch_exists.return_value = True m_git_ls_remote.return_value = "suite_branch" self.args_dict = { 'base_yaml_paths': [], 'ceph_branch': 'master', 'machine_type': 'smithi', 'kernel_flavor': 'basic', 'kernel_branch': 'testing', 'suite': 'krbd', } self.args = YamlConfig.from_dict(self.args_dict) with patch.multiple( 'teuthology.packaging.GitbuilderProject', _get_package_sha1=DEFAULT, ) as m: assert m != dict() m['_get_package_sha1'].return_value = 'SHA1' conf = dict( os_type='ubuntu', os_version='16.04', ) assert packaging.GitbuilderProject('ceph', conf).sha1 == 'SHA1' run_ = self.klass(self.args) assert run_.base_config['kernel']['sha1'] == 'SHA1'
def setup(self): self.args_dict = dict( suite='suite', suite_branch='suite_branch', ceph_branch='ceph_branch', ceph_sha1='ceph_sha1', teuthology_branch='teuthology_branch', kernel_branch=None, kernel_flavor='kernel_flavor', distro='ubuntu', machine_type='machine_type', base_yaml_paths=list(), ) self.args = YamlConfig.from_dict(self.args_dict)
def setup(self): self.args_dict = dict( suite='suite', suite_branch='suite_branch', suite_relpath='', ceph_branch='ceph_branch', ceph_sha1='ceph_sha1', email='*****@*****.**', teuthology_branch='teuthology_branch', kernel_branch=None, flavor='flavor', distro='ubuntu', machine_type='machine_type', base_yaml_paths=list(), ) self.args = YamlConfig.from_dict(self.args_dict)
def setup(self): self.args_dict = dict( suite='suite', suite_relpath='', suite_dir='suite_dir', suite_branch='master', ceph_branch='ceph_branch', ceph_sha1='ceph_sha1', teuthology_branch='master', kernel_branch=None, flavor='flavor', distro='ubuntu', distro_version='14.04', machine_type='machine_type', base_yaml_paths=list(), ) self.args = YamlConfig.from_dict(self.args_dict)