fix: [test] Debug failing test

pull/8731/head
Jakub Onderka 2022-11-01 12:25:26 +01:00
parent acd6732613
commit a44f801f17
3 changed files with 2 additions and 1 deletions

View File

@ -1242,6 +1242,7 @@ class Server extends AppModel
$this->logException("Could not get eligible cluster IDs from server #{$server['Server']['id']} for push.", $e);
return [];
}
$successes = [];
foreach ($clustersToPush as $cluster) {
$result = $this->GalaxyCluster->uploadClusterToServer($cluster, $server, $serverSync, $user);
if ($result === 'Success') {

View File

@ -1566,7 +1566,6 @@ class TestSecurity(unittest.TestCase):
sightings = user1.search_sightings("event", private_event.id)
self.assertEqual(len(sightings), 1, sightings)
print(sightings)
org = self.__create_org()
user = self.__create_user(org.id, ROLE.USER)

View File

@ -46,6 +46,7 @@ assert remote_user["User"] == "admin@admin.test"
# Create testing event
event = MISPEvent()
event.load_file(os.path.dirname(os.path.realpath(__file__)) + "/event.json")
event.info = "OSINT - F-Secure W32/Regin, Stage #1 - from testlive_sync.py"
pymisp.delete_event_blocklist(event)
event = pymisp.add_event(event, metadata=True)
check_response(event)