def test_creates_custom_file(self, etc_path): Yum.create_repo_file('ceph', 'repo_url', 'gpg_url', file_name='foo', etc_path=etc_path) assert os.path.isfile(os.path.join(etc_path, 'foo.repo'))
def test_repo_url_default_file(self, etc_path): Yum.create_repo_file('ceph', '/opt/ICE/repo', 'gpg_url', etc_path=etc_path) repo_file_path = os.path.join(etc_path, 'ice.repo') with open(repo_file_path) as contents: contents = contents.read() assert '/opt/ICE/repo' in contents
def test_repo_url_custom_file(self, etc_path): Yum.create_repo_file('ceph', '/opt/ICE/repo', 'gpg_url', file_name='foo', etc_path=etc_path) repo_file_path = os.path.join(etc_path, 'foo.repo') with open(repo_file_path) as contents: contents = contents.read() assert '/opt/ICE/repo' in contents
def test_repo_url_custom_file(self, etc_path): Yum.create_repo_file('ceph-osd', '/opt/ICE/repo', 'gpg_url', file_name='foo', etc_path=etc_path) repo_file_path = os.path.join(etc_path, 'foo.repo') with open(repo_file_path) as contents: contents = contents.read() assert '/opt/ICE/repo' in contents
def test_creates_custom_file(self, etc_path): Yum.create_repo_file('ceph-osd', 'repo_url', 'gpg_url', file_name='foo', etc_path=etc_path) assert os.path.isfile(os.path.join(etc_path, 'foo.repo'))
def test_creates_default_file(self, etc_path): Yum.create_repo_file('ceph-osd', 'repo_url', 'gpg_url', etc_path=etc_path) assert os.path.isfile(os.path.join(etc_path, 'ice.repo'))