Skip to content

Commit e1abedc

Browse files
Merge pull request #526 from splunk/DVPL-12061
Marked newly added test cases for smoke test
2 parents 7c9468f + 794f68a commit e1abedc

File tree

4 files changed

+10
-1
lines changed

4 files changed

+10
-1
lines changed

tests/searchcommands/test_csc_apps.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,12 @@
1515
# under the License.
1616

1717
import unittest
18+
import pytest
19+
1820
from tests import testlib
1921
from splunklib import results
2022

21-
23+
@pytest.mark.smoke
2224
class TestCSC(testlib.SDKTestCase):
2325

2426
def test_eventing_app(self):

tests/test_binding.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -641,6 +641,7 @@ def test_got_updated_cookie_with_get(self):
641641
self.assertEqual(list(new_cookies.values())[0], list(old_cookies.values())[0])
642642
self.assertTrue(found)
643643

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

653+
@pytest.mark.smoke
652654
def test_login_with_multiple_cookies(self):
653655
# We should get an error if using a bad cookie
654656
new_context = binding.Context()

tests/test_job.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ def test_oneshot_with_garbage_fails(self):
5757
jobs = self.service.jobs
5858
self.assertRaises(TypeError, jobs.create, "abcd", exec_mode="oneshot")
5959

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

386+
@pytest.mark.smoke
385387
def test_v1_job_fallback(self):
386388
self.assertEventuallyTrue(self.job.is_done)
387389
self.assertLessEqual(int(self.job['eventCount']), 3)

tests/test_service.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@
1515
# under the License.
1616

1717
from __future__ import absolute_import
18+
import pytest
19+
1820
from tests import testlib
1921
import unittest
2022

@@ -168,6 +170,7 @@ def _create_unauthenticated_service(self):
168170
})
169171

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

0 commit comments

Comments
 (0)