예제 #1
0
 def test_github_https(self):
     self.assertEquals("github.com/openshift/online-archivist",
             manifest.repo_url_to_dir("https://github.com/openshift/online-archivist.git"))
예제 #2
0
 def test_ssh_scp_syntax_no_user(self):
     self.assertEquals("server/project",
             manifest.repo_url_to_dir("server:project.git"))
예제 #3
0
 def test_local_uri(self):
     self.assertEquals("srv/git/project",
             manifest.repo_url_to_dir("file:///srv/git/project.git"))
예제 #4
0
 def test_ssh(self):
     self.assertEquals("server/project",
             manifest.repo_url_to_dir("ssh://server/project.git"))
예제 #5
0
 def test_https(self):
     self.assertEquals("example.com/gitproject",
             manifest.repo_url_to_dir("https://example.com/gitproject.git"))