Exemplo n.º 1
0
 def test_build_git_url_ceph_qa_suite_custom(self,
                                             m_get_ceph_qa_suite_git_url):
     url = 'http://foo.com/some'
     m_get_ceph_qa_suite_git_url.return_value = url + '.git'
     assert url == util.build_git_url('ceph-qa-suite')
Exemplo n.º 2
0
 def test_build_git_url_github(self):
     assert 'project' in util.build_git_url('project')
     owner = 'OWNER'
     git_url = util.build_git_url('project', project_owner=owner)
     assert owner in git_url
Exemplo n.º 3
0
 def test_build_git_url_github(self):
     assert 'project' in util.build_git_url('project')
     owner = 'OWNER'
     git_url = util.build_git_url('project', project_owner=owner)
     assert owner in git_url
Exemplo n.º 4
0
 def test_build_git_url_ceph_qa_suite_custom(self,
                                             m_get_ceph_qa_suite_git_url):
     url = 'http://foo.com/some'
     m_get_ceph_qa_suite_git_url.return_value = url + '.git'
     assert url == util.build_git_url('ceph-qa-suite')
Exemplo n.º 5
0
 def test_build_git_url_ceph_cm_ansible_custom(
         self, m_get_ceph_cm_ansible_git_url):
     url = 'http://foo.com/some'
     m_get_ceph_cm_ansible_git_url.return_value = url + '.git'
     assert url == util.build_git_url('ceph-cm-ansible')