From 8c92960cce2a76f26db56b7ed0f08adef0508672 Mon Sep 17 00:00:00 2001 From: lstoppa <77723162+lstoppa@users.noreply.github.com> Date: Wed, 26 May 2021 20:00:26 +0200 Subject: [PATCH] fix: added 2021 copyrights (#32) * fix: added 2021 copyrights * fix: added 2021 copyrights (fixed formatting) --- splunk_connect_for_snmp_mib_server/__init__.py | 15 +++++++++++++++ splunk_connect_for_snmp_mib_server/mib_server.py | 15 +++++++++++++++ splunk_connect_for_snmp_mib_server/mongo.py | 15 +++++++++++++++ .../snmp_mib_server.py | 15 +++++++++++++++ splunk_connect_for_snmp_mib_server/translator.py | 15 +++++++++++++++ tests/__init__.py | 15 +++++++++++++++ tests/test_mongo.py | 15 +++++++++++++++ tests/test_translator.py | 15 +++++++++++++++ 8 files changed, 120 insertions(+) diff --git a/splunk_connect_for_snmp_mib_server/__init__.py b/splunk_connect_for_snmp_mib_server/__init__.py index 3ca78203..a1038529 100644 --- a/splunk_connect_for_snmp_mib_server/__init__.py +++ b/splunk_connect_for_snmp_mib_server/__init__.py @@ -1,3 +1,18 @@ +# ######################################################################## +# Copyright 2021 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 a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# ######################################################################## import logging.config logging.basicConfig( diff --git a/splunk_connect_for_snmp_mib_server/mib_server.py b/splunk_connect_for_snmp_mib_server/mib_server.py index 88752137..e18a9ae6 100644 --- a/splunk_connect_for_snmp_mib_server/mib_server.py +++ b/splunk_connect_for_snmp_mib_server/mib_server.py @@ -1,3 +1,18 @@ +# ######################################################################## +# Copyright 2021 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 a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# ######################################################################## from flask import Flask, request from flask_autoindex import AutoIndex from splunk_connect_for_snmp_mib_server.translator import Translator diff --git a/splunk_connect_for_snmp_mib_server/mongo.py b/splunk_connect_for_snmp_mib_server/mongo.py index ad5acb95..eb8240e4 100644 --- a/splunk_connect_for_snmp_mib_server/mongo.py +++ b/splunk_connect_for_snmp_mib_server/mongo.py @@ -1,3 +1,18 @@ +# ######################################################################## +# Copyright 2021 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 a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# ######################################################################## import pymongo import os import logging diff --git a/splunk_connect_for_snmp_mib_server/snmp_mib_server.py b/splunk_connect_for_snmp_mib_server/snmp_mib_server.py index 9a9fbad8..6bea7d07 100644 --- a/splunk_connect_for_snmp_mib_server/snmp_mib_server.py +++ b/splunk_connect_for_snmp_mib_server/snmp_mib_server.py @@ -1,3 +1,18 @@ +# ######################################################################## +# Copyright 2021 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 a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# ######################################################################## import argparse import yaml from splunk_connect_for_snmp_mib_server.mongo import MibsRepository diff --git a/splunk_connect_for_snmp_mib_server/translator.py b/splunk_connect_for_snmp_mib_server/translator.py index 5c9eba1d..7baf8cb2 100644 --- a/splunk_connect_for_snmp_mib_server/translator.py +++ b/splunk_connect_for_snmp_mib_server/translator.py @@ -1,3 +1,18 @@ +# ######################################################################## +# Copyright 2021 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 a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# ######################################################################## from pysnmp.smi import builder, view, compiler, rfc1902 import os import json diff --git a/tests/__init__.py b/tests/__init__.py index e69de29b..0ad8e598 100644 --- a/tests/__init__.py +++ b/tests/__init__.py @@ -0,0 +1,15 @@ +# ######################################################################## +# Copyright 2021 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 a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# ######################################################################## diff --git a/tests/test_mongo.py b/tests/test_mongo.py index 2bafa2df..aab1e335 100644 --- a/tests/test_mongo.py +++ b/tests/test_mongo.py @@ -1,3 +1,18 @@ +# ######################################################################## +# Copyright 2021 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 a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# ######################################################################## import sys sys.path.append("../") diff --git a/tests/test_translator.py b/tests/test_translator.py index c33a81fc..3ba73f95 100644 --- a/tests/test_translator.py +++ b/tests/test_translator.py @@ -1,3 +1,18 @@ +# ######################################################################## +# Copyright 2021 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 a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# ######################################################################## from unittest import TestCase, mock import mongomock