Skip to content

Commit 3ef82a0

Browse files
committed
Mark smoke tests
1 parent ffc4333 commit 3ef82a0

13 files changed

+37
-11
lines changed

tests/searchcommands/test_builtin_options.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@
2727
import sys
2828
import logging
2929

30+
import pytest
31+
3032
from splunklib.searchcommands import environment
3133
from splunklib.searchcommands.decorators import Configuration
3234
from splunklib.searchcommands.search_command import SearchCommand
@@ -48,6 +50,7 @@ def fix_up(cls, command_class):
4850
pass
4951

5052

53+
@pytest.mark.smoke
5154
class TestBuiltinOptions(TestCase):
5255

5356
def setUp(self):

tests/searchcommands/test_configuration_settings.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,9 @@
3030
from unittest import main, TestCase
3131
from splunklib import six
3232

33+
import pytest
3334

35+
@pytest.mark.smoke
3436
class TestConfigurationSettings(TestCase):
3537

3638
def test_generating_command(self):

tests/searchcommands/test_decorators.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,8 @@
3434
# Skip on Python 2.6
3535
pass
3636

37+
import pytest
38+
3739

3840
@Configuration()
3941
class TestSearchCommand(SearchCommand):
@@ -182,6 +184,7 @@ def fix_up(cls, command_class):
182184
pass
183185

184186

187+
@pytest.mark.smoke
185188
class TestDecorators(TestCase):
186189

187190
def setUp(self):

tests/searchcommands/test_internals_v1.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,9 @@
3737
from splunklib.six.moves import range
3838
from functools import reduce
3939

40+
import pytest
4041

42+
@pytest.mark.smoke
4143
class TestInternals(TestCase):
4244
def setUp(self):
4345
TestCase.setUp(self)

tests/searchcommands/test_internals_v2.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,8 @@
5050
import os
5151
import random
5252

53+
import pytest
54+
5355
# region Functions for producing random apps
5456

5557
# Confirmed: [minint, maxint) covers the full range of values that xrange allows
@@ -101,6 +103,7 @@ def random_unicode():
101103
# endregion
102104

103105

106+
@pytest.mark.smoke
104107
class TestInternals(TestCase):
105108

106109
def setUp(self):

tests/searchcommands/test_search_command.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@
3232
import os
3333
import re
3434

35+
import pytest
3536

3637
@Configuration()
3738
class TestCommand(SearchCommand):
@@ -95,7 +96,7 @@ def stream(self, records):
9596
serial_number += 1
9697
return
9798

98-
99+
@pytest.mark.smoke
99100
class TestSearchCommand(TestCase):
100101
def setUp(self):
101102
TestCase.setUp(self)

tests/searchcommands/test_searchcommands_app.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@
6666
# Python 2.6
6767
pass
6868

69+
import pytest
6970

7071
def pypy():
7172
try:
@@ -156,7 +157,7 @@ def __iter__(self):
156157

157158
_prefix = os.path.join(os.path.dirname(os.path.abspath(__file__)), 'recordings', 'scpv')
158159

159-
160+
@pytest.mark.smoke
160161
class TestSearchCommandsApp(TestCase):
161162

162163
try:

tests/searchcommands/test_validators.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,11 @@
2828
from splunklib import six
2929
from splunklib.six.moves import range
3030

31-
# P2 [ ] TODO: Verify that all format methods produce 'None' when value is None
31+
import pytest
3232

33+
# P2 [ ] TODO: Verify that all format methods produce 'None' when value is None
3334

35+
@pytest.mark.smoke
3436
class TestValidators(TestCase):
3537

3638
def setUp(self):

tests/test_examples.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@
2727
except ImportError:
2828
import unittest2 as unittest
2929

30+
import pytest
31+
3032
from tests import testlib
3133

3234
import splunklib.client as client

tests/test_index.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@
2525
except ImportError:
2626
import unittest2 as unittest
2727

28+
import pytest
29+
2830

2931
class IndexTest(testlib.SDKTestCase):
3032
def setUp(self):

0 commit comments

Comments
 (0)