Skip to content

Commit 43c6f5b

Browse files
committed
fix test_service authentication tests
1 parent 3b7c25d commit 43c6f5b

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

tests/test_service.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -177,12 +177,12 @@ def setUp(self):
177177
self.opts = testlib.parse([], {}, ".splunkrc")
178178
self.service = client.Service(**self.opts.kwargs)
179179

180-
self.service.login();
181-
# Skip these tests if running below Splunk 6.2, cookie-auth didn't exist before
182-
splver = self.service.splunk_version
183-
# TODO: Workaround the fact that skipTest is not defined by unittest2.TestCase
184-
if splver[:2] < (6, 2):
185-
self.skipTest("Skipping cookie-auth tests, running in %d.%d.%d, this feature was added in 6.2+" % splver)
180+
# remove these code as 6.2- is deprecated and splunk_version can't be got without login on splunk 6.6+
181+
# # Skip these tests if running below Splunk 6.2, cookie-auth didn't exist before
182+
# splver = self.service.splunk_version
183+
# # TODO: Workaround the fact that skipTest is not defined by unittest2.TestCase
184+
# if splver[:2] < (6, 2):
185+
# self.skipTest("Skipping cookie-auth tests, running in %d.%d.%d, this feature was added in 6.2+" % splver)
186186

187187
if getattr(unittest.TestCase, 'assertIsNotNone', None) is None:
188188

0 commit comments

Comments
 (0)