mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Remaining test fixes regarding the recent GitHub RSA key change
Signed-off-by: Pedro Algarvio <palgarvio@vmware.com>
This commit is contained in:
parent
371a9243c0
commit
41a39417f8
4 changed files with 12 additions and 8 deletions
|
@ -337,3 +337,8 @@ tests/pytests/scenarios/multimaster:
|
|||
- pytests.scenarios.multimaster.beacons.test_inotify
|
||||
- pytests.scenarios.multimaster.modules.test_test
|
||||
- pytests.scenarios.failover.multimaster.test_failover_master
|
||||
|
||||
tests/integration/files/ssh/.*:
|
||||
- integration.modules.test_ssh
|
||||
- integration.states.test_ssh_auth
|
||||
- integration.states.test_ssh_known_hosts
|
||||
|
|
|
@ -1 +1 @@
|
|||
command="/usr/local/lib/ssh-helper" ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAq2A7hRGmdnm9tUDbO9IDSwBK6TbQa+PXYPCPy6rbTrTtw7PHkccKrpp0yVhp5HdEIcKr6pLlVDBfOLX9QUsyCOV0wzfjIJNlGEYsdlLJizHhbn2mUjvSAHQqZETYP81eFzLQNnPHt4EVVUh7VfDESU84KezmD5QlWpXLmvU31/yMf+Se8xhHTvKSCZIFImWwoG6mbUoWf9nzpIoaSjB+weqqUUmpaaasXVal72J+UX2B+2RPW3RcT0eOzQgqlJL3RKrTJvdsjE3JEAvGq3lGHSZXy28G3skua2SmVi/w4yCE6gbODqnTWlg7+wC604ydGXA8VJiS5ap43JXiUFFAaQ== github.com
|
||||
command="/usr/local/lib/ssh-helper" ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQCj7ndNxQowgcQnjshcLrqPEiiphnt+VTTvDP6mHBL9j1aNUkY4Ue1gvwnGLVlOhGeYrnZaMgRK6+PKCUXaDbC7qtbW8gIkhL7aGCsOr/C56SJMy/BCZfxd1nWzAOxSDPgVsmerOBYfNqltV9/hWCqBywINIR+5dIg6JTJ72pcEpEjcYgXkE2YEFXV1JHnsKgbLWNlhScqb2UmyRkQyytRLtL+38TGxkxCflmO+5Z8CSSNY7GidjMIZ7Q4zMjA2n1nGrlTDkzwDCsw+wqFPGQA179cnfGWOWRVruj16z6XyvxvjJwbz0wQZ75XK5tKSb7FNyeIEs4TT4jk+S4dhPeAUC5y+bDYirYgM4GC7uEnztnZyaVWQ7B381AK4Qdrwt51ZqExKbQpTUNn+EjqoTwvqNj4kqx5QUCI0ThS/YkOxJCXmPUWZbhjpCg56i+2aB6CmK2JGhn57K5mj0MNdBXA4/WnwH6XoPWJzK5Nyu2zB3nAZp+S5hpQs+p1vN1/wsjk= github.com
|
||||
|
|
|
@ -1 +0,0 @@
|
|||
AAAAB3NzaC1yc2EAAAABIwAAAQEAq2A7hRGmdnm9tUDbO9IDSwBK6TbQa+PXYPCPy6rbTrTtw7PHkccKrpp0yVhp5HdEIcKr6pLlVDBfOLX9QUsyCOV0wzfjIJNlGEYsdlLJizHhbn2mUjvSAHQqZETYP81eFzLQNnPHt4EVVUh7VfDESU84KezmD5QlWpXLmvU31/yMf+Se8xhHTvKSCZIFImWwoG6mbUoWf9nzpIoaSjB+weqqUUmpaaasXVal72J+UX2B+2RPW3RcT0eOzQgqlJL3RKrTJvdsjE3JEAvGq3lGHSZXy28G3skua2SmVi/w4yCE6gbODqnTWlg7+wC604ydGXA8VJiS5ap43JXiUFFAaQ==
|
|
@ -6,14 +6,14 @@ import os
|
|||
import shutil
|
||||
|
||||
import pytest
|
||||
import requests
|
||||
|
||||
import salt.utils.files
|
||||
import salt.utils.platform
|
||||
from salt.ext.tornado.httpclient import HTTPClient
|
||||
from tests.support.case import ModuleCase
|
||||
from tests.support.runtests import RUNTIME_VARS
|
||||
|
||||
GITHUB_FINGERPRINT = "9d:38:5b:83:a9:17:52:92:56:1a:5e:c4:d4:81:8e:0a:ca:51:a2:64:f1:74:20:11:2e:f8:8a:c3:a1:39:49:8f"
|
||||
GITHUB_FINGERPRINT = "b8:d8:95:ce:d9:2c:0a:c0:e1:71:cd:2e:f5:ef:01:ba:34:17:55:4a:4a:64:80:d3:31:cc:c2:be:3d:ed:0f:6b"
|
||||
|
||||
|
||||
def check_status():
|
||||
|
@ -21,7 +21,7 @@ def check_status():
|
|||
Check the status of Github for remote operations
|
||||
"""
|
||||
try:
|
||||
return HTTPClient().fetch("http://github.com").code == 200
|
||||
return requests.get("https://github.com").status_code == 200
|
||||
except Exception: # pylint: disable=broad-except
|
||||
return False
|
||||
|
||||
|
@ -49,9 +49,9 @@ class SSHModuleTest(ModuleCase):
|
|||
if not os.path.isdir(self.subsalt_dir):
|
||||
os.makedirs(self.subsalt_dir)
|
||||
|
||||
ssh_raw_path = os.path.join(RUNTIME_VARS.FILES, "ssh", "raw")
|
||||
with salt.utils.files.fopen(ssh_raw_path) as fd:
|
||||
self.key = fd.read().strip()
|
||||
known_hosts_file = os.path.join(RUNTIME_VARS.FILES, "ssh", "known_hosts")
|
||||
with salt.utils.files.fopen(known_hosts_file) as fd:
|
||||
self.key = fd.read().strip().splitlines()[0].split()[-1]
|
||||
|
||||
def tearDown(self):
|
||||
"""
|
||||
|
|
Loading…
Add table
Reference in a new issue