Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion tests/searchcommands/test_csc_apps.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,12 @@
# under the License.

import unittest
import pytest

from tests import testlib
from splunklib import results


@pytest.mark.smoke
class TestCSC(testlib.SDKTestCase):

def test_eventing_app(self):
Expand Down
2 changes: 2 additions & 0 deletions tests/test_binding.py
Original file line number Diff line number Diff line change
Expand Up @@ -641,6 +641,7 @@ def test_got_updated_cookie_with_get(self):
self.assertEqual(list(new_cookies.values())[0], list(old_cookies.values())[0])
self.assertTrue(found)

@pytest.mark.smoke
def test_login_fails_with_bad_cookie(self):
# We should get an error if using a bad cookie
try:
Expand All @@ -649,6 +650,7 @@ def test_login_fails_with_bad_cookie(self):
except AuthenticationError as ae:
self.assertEqual(str(ae), "Login failed.")

@pytest.mark.smoke
def test_login_with_multiple_cookies(self):
# We should get an error if using a bad cookie
new_context = binding.Context()
Expand Down
2 changes: 2 additions & 0 deletions tests/test_job.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ def test_oneshot_with_garbage_fails(self):
jobs = self.service.jobs
self.assertRaises(TypeError, jobs.create, "abcd", exec_mode="oneshot")

@pytest.mark.smoke
def test_oneshot(self):
jobs = self.service.jobs
stream = jobs.oneshot("search index=_internal earliest=-1m | head 3", output_mode='json')
Expand Down Expand Up @@ -382,6 +383,7 @@ def test_search_invalid_query_as_json(self):
except Exception as e:
self.fail("Got some unexpected error. %s" % e.message)

@pytest.mark.smoke
def test_v1_job_fallback(self):
self.assertEventuallyTrue(self.job.is_done)
self.assertLessEqual(int(self.job['eventCount']), 3)
Expand Down
3 changes: 3 additions & 0 deletions tests/test_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@
# under the License.

from __future__ import absolute_import
import pytest

from tests import testlib
import unittest

Expand Down Expand Up @@ -168,6 +170,7 @@ def _create_unauthenticated_service(self):
})

# To check the HEC event endpoint using Endpoint instance
@pytest.mark.smoke
def test_hec_event(self):
import json
service_hec = client.connect(host='localhost', scheme='https', port=8088,
Expand Down