Skip to content

Commit 3b7c25d

Browse files
committed
fix test_service tests
1 parent 4f448ea commit 3b7c25d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/test_service.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ def test_server_info_without_login(self):
163163
service = self._create_unauthenticated_service()
164164
# Should succeed without AuthenticationError
165165
service.info['version']
166-
166+
167167
def _create_unauthenticated_service(self):
168168
return Service(**{
169169
'host': self.opts.kwargs['host'],
@@ -177,6 +177,7 @@ def setUp(self):
177177
self.opts = testlib.parse([], {}, ".splunkrc")
178178
self.service = client.Service(**self.opts.kwargs)
179179

180+
self.service.login();
180181
# Skip these tests if running below Splunk 6.2, cookie-auth didn't exist before
181182
splver = self.service.splunk_version
182183
# TODO: Workaround the fact that skipTest is not defined by unittest2.TestCase

0 commit comments

Comments
 (0)