Example #1
0
    def test_resolve_urls(self):
        url = eval_repo_url(
            "https://github.com/StackStorm-Exchange/stackstorm-test")
        self.assertEqual(url, "https://github.com/StackStorm-Exchange/stackstorm-test")

        url = eval_repo_url(
            "https://github.com/StackStorm-Exchange/stackstorm-test.git")
        self.assertEqual(url, "https://github.com/StackStorm-Exchange/stackstorm-test.git")

        url = eval_repo_url("StackStorm-Exchange/stackstorm-test")
        self.assertEqual(url, "https://github.com/StackStorm-Exchange/stackstorm-test")

        url = eval_repo_url("git://StackStorm-Exchange/stackstorm-test")
        self.assertEqual(url, "git://StackStorm-Exchange/stackstorm-test")

        url = eval_repo_url("git://StackStorm-Exchange/stackstorm-test.git")
        self.assertEqual(url, "git://StackStorm-Exchange/stackstorm-test.git")

        url = eval_repo_url("[email protected]:foo/bar.git")
        self.assertEqual(url, "[email protected]:foo/bar.git")

        url = eval_repo_url("file:///home/vagrant/stackstorm-test")
        self.assertEqual(url, "file:///home/vagrant/stackstorm-test")

        url = eval_repo_url("file://localhost/home/vagrant/stackstorm-test")
        self.assertEqual(url, "file://localhost/home/vagrant/stackstorm-test")

        url = eval_repo_url('ssh://<user@host>/AutomationStackStorm')
        self.assertEqual(url, 'ssh://<user@host>/AutomationStackStorm')

        url = eval_repo_url('ssh://joe@local/AutomationStackStorm')
        self.assertEqual(url, 'ssh://joe@local/AutomationStackStorm')
Example #2
0
    def test_resolve_urls(self):
        url = eval_repo_url(
            "https://github.com/StackStorm-Exchange/stackstorm-test")
        self.assertEqual(url, "https://github.com/StackStorm-Exchange/stackstorm-test")

        url = eval_repo_url(
            "https://github.com/StackStorm-Exchange/stackstorm-test.git")
        self.assertEqual(url, "https://github.com/StackStorm-Exchange/stackstorm-test.git")

        url = eval_repo_url("StackStorm-Exchange/stackstorm-test")
        self.assertEqual(url, "https://github.com/StackStorm-Exchange/stackstorm-test")

        url = eval_repo_url("git://StackStorm-Exchange/stackstorm-test")
        self.assertEqual(url, "git://StackStorm-Exchange/stackstorm-test")

        url = eval_repo_url("git://StackStorm-Exchange/stackstorm-test.git")
        self.assertEqual(url, "git://StackStorm-Exchange/stackstorm-test.git")

        url = eval_repo_url("[email protected]:foo/bar.git")
        self.assertEqual(url, "[email protected]:foo/bar.git")

        url = eval_repo_url("file:///home/vagrant/stackstorm-test")
        self.assertEqual(url, "file:///home/vagrant/stackstorm-test")

        url = eval_repo_url("file://localhost/home/vagrant/stackstorm-test")
        self.assertEqual(url, "file://localhost/home/vagrant/stackstorm-test")

        url = eval_repo_url('ssh://<user@host>/AutomationStackStorm')
        self.assertEqual(url, 'ssh://<user@host>/AutomationStackStorm')

        url = eval_repo_url('ssh://joe@local/AutomationStackStorm')
        self.assertEqual(url, 'ssh://joe@local/AutomationStackStorm')
Example #3
0
    def test_eval_repo(self):
        result = eval_repo_url('stackstorm/st2contrib')
        self.assertEqual(result, 'https://github.com/stackstorm/st2contrib')

        result = eval_repo_url('[email protected]:StackStorm/st2contrib.git')
        self.assertEqual(result, '[email protected]:StackStorm/st2contrib.git')

        repo_url = 'https://github.com/StackStorm/st2contrib.git'
        result = eval_repo_url(repo_url)
        self.assertEqual(result, repo_url)

        repo_url = 'https://git-wip-us.apache.org/repos/asf/libcloud.git'
        result = eval_repo_url(repo_url)
        self.assertEqual(result, repo_url)
    def test_eval_repo(self):
        result = eval_repo_url('stackstorm/st2contrib')
        self.assertEqual(result, 'https://github.com/stackstorm/st2contrib')

        result = eval_repo_url('[email protected]:StackStorm/st2contrib.git')
        self.assertEqual(result, '[email protected]:StackStorm/st2contrib.git')

        repo_url = 'https://github.com/StackStorm/st2contrib.git'
        result = eval_repo_url(repo_url)
        self.assertEqual(result, repo_url)

        repo_url = 'https://git-wip-us.apache.org/repos/asf/libcloud.git'
        result = eval_repo_url(repo_url)
        self.assertEqual(result, repo_url)
Example #5
0
    def test_eval_repo(self):
        result = eval_repo_url("stackstorm/st2contrib")
        self.assertEqual(result, "https://github.com/stackstorm/st2contrib")

        result = eval_repo_url("[email protected]:StackStorm/st2contrib.git")
        self.assertEqual(result, "[email protected]:StackStorm/st2contrib.git")

        result = eval_repo_url("[email protected]:StackStorm/st2contrib.git")
        self.assertEqual(result, "[email protected]:StackStorm/st2contrib.git")

        repo_url = "https://github.com/StackStorm/st2contrib.git"
        result = eval_repo_url(repo_url)
        self.assertEqual(result, repo_url)

        repo_url = "https://git-wip-us.apache.org/repos/asf/libcloud.git"
        result = eval_repo_url(repo_url)
        self.assertEqual(result, repo_url)