Skip to content

Commit

Permalink
Merge pull request #9642 from JakubOnderka/attibute-search-500
Browse files Browse the repository at this point in the history
chg: [test] Check attribute search
  • Loading branch information
JakubOnderka committed Mar 25, 2024
2 parents 95e5faa + f182cbc commit 7d3cbb1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion app/Controller/AttributesController.php
Expand Up @@ -1576,7 +1576,7 @@ public function search($continue = false)

// Force index for performance reasons see #3321
if (isset($filters['value'])) {
$this->paginate['forceIndexHint'] = '(value1, value2)';
$this->paginate['forceIndexHint'] = 'value1, value2';
}

$this->paginate['conditions'] = $params['conditions'];
Expand Down
3 changes: 3 additions & 0 deletions tests/testlive_comprehensive_local.py
Expand Up @@ -923,6 +923,9 @@ def test_event_alert_default_enabled(self):
self.assertTrue(created_user.autoalert, created_user)
self.admin_misp_connector.delete_user(created_user)

def test_attribute_search(self):
request(self.admin_misp_connector, "GET", "/attributes/search/value:8.8.8.8.json")

def test_search_snort_suricata(self):
event = create_simple_event()
event.add_attribute('ip-src', '8.8.8.8', to_ids=True)
Expand Down

0 comments on commit 7d3cbb1

Please sign in to comment.