Ejemplo n.º 1
0
    def test_make_ssh_cmd_push_with_port(self):
        gitdata_info = self.gitdata_info_port
        cmd = 'push'

        ssh_cmd_lines = [
            'scp -P 8080 data/data2.txt '
            'u@s:tmp/96e93e946f7fd810b167e34561c489ce067d7ef1_data2.txt',
        ]

        self.assertEqual(make_ssh_cmd(gitdata_info, cmd), ssh_cmd_lines)
Ejemplo n.º 2
0
    def test_make_ssh_cmd_pull(self):
        gitdata_info = self.gitdata_info
        cmd = 'pull'

        ssh_cmd_lines = [
            'scp server96e93e946f7fd810b167e34561c489ce067d7ef1_data2.txt '
            'data/data2.txt'
        ]

        self.assertEqual(make_ssh_cmd(gitdata_info, cmd), ssh_cmd_lines)