コード例 #1
0
 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'))
コード例 #2
0
 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
コード例 #3
0
 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
コード例 #4
0
ファイル: test_distributions.py プロジェクト: ceph/ice-setup
 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
コード例 #5
0
ファイル: test_distributions.py プロジェクト: ceph/ice-setup
 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'))
コード例 #6
0
 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'))