Ejemplo n.º 1
0
 def test_get_remote_url_dict_group(self,
                                    mock_config,
                                    mock_handle):
     self.assertEqual({'payload': {'ssh_url': 'foo'}},
                      get_remote_url_dict._fn())
Ejemplo n.º 2
0
 def test_get_remote_url_dict_unknown_group(self,
                                            mock_config,
                                            mock_handle):
     self.assertEqual([('FAIL', 'Git group not found: u_saltstack', 1)],
                      get_remote_url_dict._fn())
Ejemplo n.º 3
0
 def test_get_remote_url_dict_fail2(self,
                                    mock_config,
                                    mock_handle):
     self.assertEqual([('FAIL', 'API call failed! Credentials?', 1)],
                      get_remote_url_dict._fn())