Skip to content

Commit

Permalink
Merge branch 'master' into collections
Browse files Browse the repository at this point in the history
  • Loading branch information
quimmrc committed Feb 3, 2025
2 parents 04ba23d + 3e6e242 commit e2bc70a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
3 changes: 0 additions & 3 deletions .github/workflows/unit-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,6 @@ jobs:
- name: Pull docker images
run: docker compose -f docker-compose.test.yml pull

- uses: jpribyl/[email protected]
continue-on-error: true

- name: Build base image
run: make -C docker

Expand Down
6 changes: 3 additions & 3 deletions monitor/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ def test_monitor_queries_stats_ajax_error(self, mock_get):
resp = self.client.get(reverse('monitor-queries-stats-ajax'))

self.assertEqual(resp.status_code, 500)
mock_get.assert_called_with('http://graylog/graylog/api/search/universal/relative/terms', auth=mock.ANY, params=mock.ANY)
mock_get.assert_called_with('http://graylog/api/search/universal/relative/terms', auth=mock.ANY, params=mock.ANY)

@override_settings(GRAYLOG_DOMAIN='http://graylog')
@mock.patch('requests.get')
Expand All @@ -29,7 +29,7 @@ def test_monitor_queries_stats_ajax_bad_data(self, mock_get):
resp = self.client.get(reverse('monitor-queries-stats-ajax'))

self.assertEqual(resp.status_code, 500)
mock_get.assert_called_with('http://graylog/graylog/api/search/universal/relative/terms', auth=mock.ANY, params=mock.ANY)
mock_get.assert_called_with('http://graylog/api/search/universal/relative/terms', auth=mock.ANY, params=mock.ANY)

@override_settings(GRAYLOG_DOMAIN='http://graylog')
@mock.patch('requests.get')
Expand All @@ -43,4 +43,4 @@ def test_monitor_queries_stats_ajax_ok(self, mock_get):

self.assertEqual(resp.status_code, 200)
self.assertJSONEqual(resp.content, {'response': 'ok'})
mock_get.assert_called_with('http://graylog/graylog/api/search/universal/relative/terms', auth=mock.ANY, params=mock.ANY)
mock_get.assert_called_with('http://graylog/api/search/universal/relative/terms', auth=mock.ANY, params=mock.ANY)

0 comments on commit e2bc70a

Please sign in to comment.