11#!/usr/bin/env python
22#
3- # Copyright 2011-2014 Splunk, Inc.
3+ # Copyright 2011-2020 Splunk, Inc.
44#
55# Licensed under the Apache License, Version 2.0 (the "License"): you may
66# not use this file except in compliance with the License. You may obtain
@@ -54,10 +54,10 @@ def test_update_fields(self):
5454 self .confs .create ('test' )
5555 self .confs ['test' ].post (** {'field.a' : 'number' })
5656 self .assertEqual (self .confs ['test' ]['field.a' ], 'number' )
57- self .confs ['test' ].update_field ('a' , 'string' )
57+ self .confs ['test' ].update_field ('a' , 'string' )
5858 self .assertEqual (self .confs ['test' ]['field.a' ], 'string' )
5959 self .confs ['test' ].delete ()
60-
60+
6161
6262 def test_create_unique_collection (self ):
6363 self .confs .create ('test' )
@@ -77,17 +77,17 @@ def test_overlapping_collections(self):
7777 self .confs ['test' ].delete ()
7878 self .confs ['test' ].delete ()
7979
80- """
80+ """
8181 def test_create_accelerated_fields_fields(self):
82- self.confs.create('test', indexes={'foo': '{"foo": 1}', 'bar': {'bar': -1}}, **{'field.foo': 'string'})
82+ self.confs.create('test', indexes={'foo': '{"foo": 1}', 'bar': {'bar': -1}}, **{'field.foo': 'string'})
8383 self.assertEqual(self.confs['test']['accelerated_fields.foo'], '{"foo": 1}')
8484 self.assertEqual(self.confs['test']['field.foo'], 'string')
8585 self.assertRaises(client.HTTPError, lambda: self.confs['test'].post(**{'accelerated_fields.foo': 'THIS IS INVALID'}))
8686 self.assertEqual(self.confs['test']['accelerated_fields.foo'], '{"foo": 1}')
8787 self.confs['test'].update_accelerated_fields('foo', '')
8888 self.assertEqual(self.confs['test']['accelerated_fields.foo'], None)
8989 """
90-
90+
9191 def tearDown (self ):
9292 if ('test' in self .confs ):
9393 self .confs ['test' ].delete ()
0 commit comments