@@ -108,6 +108,11 @@ def test_submit_via_attached_socket(self):
108108 self .assertEventuallyTrue (lambda : self .totalEventCount () == event_count + 1 , timeout = 60 )
109109
110110 def test_submit_via_attach_with_cookie_header (self ):
111+ # Skip this test if running below Splunk 6.2, cookie-auth didn't exist before
112+ splver = self .service .splunk_version
113+ if splver [:2 ] < (6 , 2 ):
114+ self .skipTest ("Skipping cookie-auth tests, running in %d.%d.%d, this feature was added in 6.2+" % splver )
115+
111116 event_count = int (self .service .indexes [self .index_name ]['totalEventCount' ])
112117
113118 cookie = "%s=%s" % (self .service .http ._cookies .items ()[0 ])
@@ -119,6 +124,11 @@ def test_submit_via_attach_with_cookie_header(self):
119124 self .assertEventuallyTrue (lambda : self .totalEventCount () == event_count + 1 , timeout = 60 )
120125
121126 def test_submit_via_attach_with_multiple_cookie_headers (self ):
127+ # Skip this test if running below Splunk 6.2, cookie-auth didn't exist before
128+ splver = self .service .splunk_version
129+ if splver [:2 ] < (6 , 2 ):
130+ self .skipTest ("Skipping cookie-auth tests, running in %d.%d.%d, this feature was added in 6.2+" % splver )
131+
122132 event_count = int (self .service .indexes [self .index_name ]['totalEventCount' ])
123133 service = client .Service (** {"cookie" : 'a bad cookie' })
124134 service .http ._cookies .update (self .service .http ._cookies )
0 commit comments