Skip to content

Update copyright years to 2020 #348

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Oct 14, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@

# General information about the project.
project = u'Splunk SDK for Python'
copyright = u'2014, Splunk Inc'
copyright = u'2020, Splunk Inc'

# The version info for the project you're documenting, acts as replacement for
# |version| and |release|, also used in various other places throughout the
Expand Down Expand Up @@ -95,7 +95,7 @@
# a list of builtin themes.

# agogo, default, epub, haiku, nature, pyramid, scrolls, sphinxdoc, traditional
html_theme = 'default'
html_theme = 'default'

# Theme options are theme-specific and customize the look and feel of a theme
# further. For a list of options available for each theme, see the
Expand Down
4 changes: 2 additions & 2 deletions tests/test_kvstore_batch.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env python
#
# Copyright 2011-2014 Splunk, Inc.
# Copyright 2011-2020 Splunk, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License"): you may
# not use this file except in compliance with the License. You may obtain
Expand Down Expand Up @@ -68,7 +68,7 @@ def test_insert_find_update_data(self):
self.assertEqual(testData[x][0]['_key'], str(x))
self.assertEqual(testData[x][0]['data'], '#' + str(x + 1))
self.assertEqual(testData[x][0]['num'], x + 1)


def tearDown(self):
confs = self.service.kvstore
Expand Down
12 changes: 6 additions & 6 deletions tests/test_kvstore_conf.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env python
#
# Copyright 2011-2014 Splunk, Inc.
# Copyright 2011-2020 Splunk, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License"): you may
# not use this file except in compliance with the License. You may obtain
Expand Down Expand Up @@ -54,10 +54,10 @@ def test_update_fields(self):
self.confs.create('test')
self.confs['test'].post(**{'field.a': 'number'})
self.assertEqual(self.confs['test']['field.a'], 'number')
self.confs['test'].update_field('a', 'string')
self.confs['test'].update_field('a', 'string')
self.assertEqual(self.confs['test']['field.a'], 'string')
self.confs['test'].delete()


def test_create_unique_collection(self):
self.confs.create('test')
Expand All @@ -77,17 +77,17 @@ def test_overlapping_collections(self):
self.confs['test'].delete()
self.confs['test'].delete()

"""
"""
def test_create_accelerated_fields_fields(self):
self.confs.create('test', indexes={'foo': '{"foo": 1}', 'bar': {'bar': -1}}, **{'field.foo': 'string'})
self.confs.create('test', indexes={'foo': '{"foo": 1}', 'bar': {'bar': -1}}, **{'field.foo': 'string'})
self.assertEqual(self.confs['test']['accelerated_fields.foo'], '{"foo": 1}')
self.assertEqual(self.confs['test']['field.foo'], 'string')
self.assertRaises(client.HTTPError, lambda: self.confs['test'].post(**{'accelerated_fields.foo': 'THIS IS INVALID'}))
self.assertEqual(self.confs['test']['accelerated_fields.foo'], '{"foo": 1}')
self.confs['test'].update_accelerated_fields('foo', '')
self.assertEqual(self.confs['test']['accelerated_fields.foo'], None)
"""

def tearDown(self):
if ('test' in self.confs):
self.confs['test'].delete()
Expand Down
6 changes: 3 additions & 3 deletions tests/test_kvstore_data.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env python
#
# Copyright 2011-2014 Splunk, Inc.
# Copyright 2011-2020 Splunk, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License"): you may
# not use this file except in compliance with the License. You may obtain
Expand Down Expand Up @@ -61,7 +61,7 @@ def test_update_delete_data(self):

def test_query_data(self):
if ('test1' in self.confs):
self.confs['test1'].delete()
self.confs['test1'].delete()
self.confs.create('test1')
self.col = self.confs['test1'].data
for x in range(10):
Expand All @@ -73,7 +73,7 @@ def test_query_data(self):
self.assertEqual(data[0]['data'], '#0')
data = self.col.query(limit=2, skip=9)
self.assertEqual(len(data), 1)


def test_invalid_insert_update(self):
self.assertRaises(client.HTTPError, lambda: self.col.insert('NOT VALID DATA'))
Expand Down