From 34af811dbe0194cab960351a78cdf5c698b96c72 Mon Sep 17 00:00:00 2001 From: David Fairbrother Date: Fri, 1 Dec 2023 16:14:51 +0000 Subject: [PATCH] Apply SPDX identifier Applies SPDX identifier across the repo automatically to indicate the Apache-2.0 license and owner --- OpenStack-AD-Migrate/usr/local/bin/openstack-ad-migrate.py | 2 ++ OpenStack-Rabbit-Consumer/entrypoint.py | 2 ++ OpenStack-Rabbit-Consumer/rabbit_consumer/aq_api.py | 2 ++ OpenStack-Rabbit-Consumer/rabbit_consumer/aq_metadata.py | 2 ++ OpenStack-Rabbit-Consumer/rabbit_consumer/consumer_config.py | 2 ++ OpenStack-Rabbit-Consumer/rabbit_consumer/message_consumer.py | 2 ++ OpenStack-Rabbit-Consumer/rabbit_consumer/openstack_address.py | 2 ++ OpenStack-Rabbit-Consumer/rabbit_consumer/openstack_api.py | 2 ++ OpenStack-Rabbit-Consumer/rabbit_consumer/rabbit_message.py | 2 ++ OpenStack-Rabbit-Consumer/rabbit_consumer/vm_data.py | 2 ++ OpenStack-Rabbit-Consumer/test/fixtures.py | 2 ++ OpenStack-Rabbit-Consumer/test/test_aq_api.py | 2 ++ OpenStack-Rabbit-Consumer/test/test_aq_metadata.py | 2 ++ OpenStack-Rabbit-Consumer/test/test_consumer_config.py | 2 ++ OpenStack-Rabbit-Consumer/test/test_message_consumer.py | 2 ++ OpenStack-Rabbit-Consumer/test/test_openstack_address.py | 2 ++ OpenStack-Rabbit-Consumer/test/test_openstack_api.py | 2 ++ OpenStack-Rabbit-Consumer/test/test_rabbit_message.py | 2 ++ OpenStack-Rally-Tester/usr/local/bin/rally-run-test.sh | 2 ++ OpenStack-Rally-Tester/usr/local/bin/rally_extract_results.py | 2 ++ OpenStack-accounting/usr/local/sbin/accountinglib.py | 2 ++ .../usr/local/sbin/cinder_extract_accounting.py | 2 ++ .../usr/local/sbin/glance_extract_accounting.py | 2 ++ .../usr/local/sbin/manila_extract_accounting.py | 2 ++ OpenStack-accounting/usr/local/sbin/nova_extract_accounting.py | 2 ++ OpenStack-accounting/usr/local/sbin/now-accounting.sh | 2 ++ OpenStack-accounting/usr/local/sbin/past-accounting.sh | 2 ++ OpenStack_get_username/var/www/cgi-bin/get_username.sh | 2 ++ OpenStack_irisiam_mapper/var/www/cgi-bin/irisiam-mapper.py | 2 ++ aq_zombie_finder/aq_zombie_finder.py | 2 ++ aq_zombie_finder/test/test_aq_zombie_finder.py | 2 ++ charts/rabbit-consumer/include/kinit.sh | 2 ++ charts/rabbit-consumer/include/sidecar-entrypoint.sh | 2 ++ dns_entry_checker/dns_entry_checker.py | 2 ++ dns_entry_checker/test/test_dns_entry_checker.py | 2 ++ gpu_benchmark/benchmark.sh | 2 ++ gpu_benchmark/gpu_setup.sh | 2 ++ gpu_benchmark/power_perf.sh | 2 ++ iriscasttools/iriscasttools/__init__.py | 2 ++ iriscasttools/iriscasttools/__main__.py | 2 ++ iriscasttools/iriscasttools/stats.py | 2 ++ iriscasttools/iriscasttools/utils.py | 2 ++ iriscasttools/setup.py | 2 ++ iriscasttools/test/test_stats.py | 2 ++ iriscasttools/test/test_utils.py | 2 ++ jsm_metric_collection/jsm_metric_collection.py | 2 ++ jsm_metric_collection/test/test_jsm_metric_collection.py | 2 ++ prometheus_ip_script/main.py | 2 ++ prometheus_ip_script/test/test_generate_ips.py | 2 ++ pynetbox_query/pynetboxquery/__main__.py | 2 ++ pynetbox_query/pynetboxquery/netbox_api/netbox_connect.py | 2 ++ pynetbox_query/pynetboxquery/netbox_api/netbox_create.py | 2 ++ pynetbox_query/pynetboxquery/netbox_api/netbox_get_id.py | 2 ++ pynetbox_query/pynetboxquery/netbox_api/validate_data.py | 2 ++ .../pynetboxquery/user_methods/abstract_user_method.py | 2 ++ .../pynetboxquery/user_methods/upload_devices_to_netbox.py | 2 ++ .../user_methods/validate_data_fields_in_netbox.py | 2 ++ pynetbox_query/pynetboxquery/utils/device_dataclass.py | 2 ++ pynetbox_query/pynetboxquery/utils/error_classes.py | 2 ++ pynetbox_query/pynetboxquery/utils/parsers.py | 2 ++ pynetbox_query/pynetboxquery/utils/query_device.py | 2 ++ pynetbox_query/pynetboxquery/utils/read_utils/read_abc.py | 2 ++ pynetbox_query/pynetboxquery/utils/read_utils/read_csv.py | 2 ++ pynetbox_query/pynetboxquery/utils/read_utils/read_file.py | 2 ++ pynetbox_query/pynetboxquery/utils/read_utils/read_txt.py | 2 ++ pynetbox_query/pynetboxquery/utils/read_utils/read_xlsx.py | 2 ++ pynetbox_query/setup.py | 2 ++ pynetbox_query/tests/conftest.py | 2 ++ pynetbox_query/tests/test__main__.py | 2 ++ pynetbox_query/tests/test_netbox_api/test_netbox_connect.py | 2 ++ pynetbox_query/tests/test_netbox_api/test_netbox_create.py | 2 ++ pynetbox_query/tests/test_netbox_api/test_netbox_get_id.py | 2 ++ pynetbox_query/tests/test_netbox_api/test_validate_data.py | 2 ++ .../tests/test_user_methods/test_abstract_user_method.py | 2 ++ .../tests/test_user_methods/test_upload_devices_to_netbox.py | 2 ++ .../test_user_methods/test_validate_data_fields_in_netbox.py | 2 ++ pynetbox_query/tests/test_utils/test_device_dataclass.py | 2 ++ pynetbox_query/tests/test_utils/test_parsers.py | 2 ++ pynetbox_query/tests/test_utils/test_query_device.py | 2 ++ .../tests/test_utils/test_read_utils/test_read_abc.py | 2 ++ .../tests/test_utils/test_read_utils/test_read_csv.py | 2 ++ .../tests/test_utils/test_read_utils/test_read_file.py | 2 ++ .../tests/test_utils/test_read_utils/test_read_txt.py | 2 ++ .../tests/test_utils/test_read_utils/test_read_xlsx.py | 2 ++ 84 files changed, 168 insertions(+) diff --git a/OpenStack-AD-Migrate/usr/local/bin/openstack-ad-migrate.py b/OpenStack-AD-Migrate/usr/local/bin/openstack-ad-migrate.py index e4a3f52a..a42dbebf 100644 --- a/OpenStack-AD-Migrate/usr/local/bin/openstack-ad-migrate.py +++ b/OpenStack-AD-Migrate/usr/local/bin/openstack-ad-migrate.py @@ -1,3 +1,5 @@ +# SPDX-License-Identifier: Apache-2.0 +# Copyright (c) 2023 United Kingdom Research and Innovation #!/usr/bin/python import ldap import ldap.sasl diff --git a/OpenStack-Rabbit-Consumer/entrypoint.py b/OpenStack-Rabbit-Consumer/entrypoint.py index f4b346db..bb87e68d 100644 --- a/OpenStack-Rabbit-Consumer/entrypoint.py +++ b/OpenStack-Rabbit-Consumer/entrypoint.py @@ -1,3 +1,5 @@ +# SPDX-License-Identifier: Apache-2.0 +# Copyright (c) 2023 United Kingdom Research and Innovation #!/usr/bin/python3 import logging diff --git a/OpenStack-Rabbit-Consumer/rabbit_consumer/aq_api.py b/OpenStack-Rabbit-Consumer/rabbit_consumer/aq_api.py index b47bf975..dd396c7a 100644 --- a/OpenStack-Rabbit-Consumer/rabbit_consumer/aq_api.py +++ b/OpenStack-Rabbit-Consumer/rabbit_consumer/aq_api.py @@ -1,3 +1,5 @@ +# SPDX-License-Identifier: Apache-2.0 +# Copyright (c) 2023 United Kingdom Research and Innovation """ This file defines methods to be used to interact with the Aquilon API diff --git a/OpenStack-Rabbit-Consumer/rabbit_consumer/aq_metadata.py b/OpenStack-Rabbit-Consumer/rabbit_consumer/aq_metadata.py index b9997abd..830cd64b 100644 --- a/OpenStack-Rabbit-Consumer/rabbit_consumer/aq_metadata.py +++ b/OpenStack-Rabbit-Consumer/rabbit_consumer/aq_metadata.py @@ -1,3 +1,5 @@ +# SPDX-License-Identifier: Apache-2.0 +# Copyright (c) 2023 United Kingdom Research and Innovation """ This file defines the class to handle deserialised metadata for Aquilon diff --git a/OpenStack-Rabbit-Consumer/rabbit_consumer/consumer_config.py b/OpenStack-Rabbit-Consumer/rabbit_consumer/consumer_config.py index 27c8e815..8e35d3c1 100644 --- a/OpenStack-Rabbit-Consumer/rabbit_consumer/consumer_config.py +++ b/OpenStack-Rabbit-Consumer/rabbit_consumer/consumer_config.py @@ -1,3 +1,5 @@ +# SPDX-License-Identifier: Apache-2.0 +# Copyright (c) 2023 United Kingdom Research and Innovation """ This file allows us to set environment variables so that credentials are not exposed diff --git a/OpenStack-Rabbit-Consumer/rabbit_consumer/message_consumer.py b/OpenStack-Rabbit-Consumer/rabbit_consumer/message_consumer.py index 2bc64601..1f8af1d9 100644 --- a/OpenStack-Rabbit-Consumer/rabbit_consumer/message_consumer.py +++ b/OpenStack-Rabbit-Consumer/rabbit_consumer/message_consumer.py @@ -1,3 +1,5 @@ +# SPDX-License-Identifier: Apache-2.0 +# Copyright (c) 2023 United Kingdom Research and Innovation """ This file manages how rabbit messages stating AQ VM creation and deletion should be handled and processed between the consumer and Aquilon diff --git a/OpenStack-Rabbit-Consumer/rabbit_consumer/openstack_address.py b/OpenStack-Rabbit-Consumer/rabbit_consumer/openstack_address.py index fcd2a520..a8bc1665 100644 --- a/OpenStack-Rabbit-Consumer/rabbit_consumer/openstack_address.py +++ b/OpenStack-Rabbit-Consumer/rabbit_consumer/openstack_address.py @@ -1,3 +1,5 @@ +# SPDX-License-Identifier: Apache-2.0 +# Copyright (c) 2023 United Kingdom Research and Innovation """ This file deserializes a server's network address from an OpenStack API response diff --git a/OpenStack-Rabbit-Consumer/rabbit_consumer/openstack_api.py b/OpenStack-Rabbit-Consumer/rabbit_consumer/openstack_api.py index 436e1cd1..6589fea3 100644 --- a/OpenStack-Rabbit-Consumer/rabbit_consumer/openstack_api.py +++ b/OpenStack-Rabbit-Consumer/rabbit_consumer/openstack_api.py @@ -1,3 +1,5 @@ +# SPDX-License-Identifier: Apache-2.0 +# Copyright (c) 2023 United Kingdom Research and Innovation """ This file defines methods for connecting and interacting with the OpenStack API diff --git a/OpenStack-Rabbit-Consumer/rabbit_consumer/rabbit_message.py b/OpenStack-Rabbit-Consumer/rabbit_consumer/rabbit_message.py index 0d2fac13..384fbbce 100644 --- a/OpenStack-Rabbit-Consumer/rabbit_consumer/rabbit_message.py +++ b/OpenStack-Rabbit-Consumer/rabbit_consumer/rabbit_message.py @@ -1,3 +1,5 @@ +# SPDX-License-Identifier: Apache-2.0 +# Copyright (c) 2023 United Kingdom Research and Innovation """ This file handles how messages from Rabbit are processed and the message extracted diff --git a/OpenStack-Rabbit-Consumer/rabbit_consumer/vm_data.py b/OpenStack-Rabbit-Consumer/rabbit_consumer/vm_data.py index 89c70c89..b4e6820d 100644 --- a/OpenStack-Rabbit-Consumer/rabbit_consumer/vm_data.py +++ b/OpenStack-Rabbit-Consumer/rabbit_consumer/vm_data.py @@ -1,3 +1,5 @@ +# SPDX-License-Identifier: Apache-2.0 +# Copyright (c) 2023 United Kingdom Research and Innovation """ This file has a dataclass for creating VM data objects from messages """ diff --git a/OpenStack-Rabbit-Consumer/test/fixtures.py b/OpenStack-Rabbit-Consumer/test/fixtures.py index 61cfd501..3d8098cb 100644 --- a/OpenStack-Rabbit-Consumer/test/fixtures.py +++ b/OpenStack-Rabbit-Consumer/test/fixtures.py @@ -1,3 +1,5 @@ +# SPDX-License-Identifier: Apache-2.0 +# Copyright (c) 2023 United Kingdom Research and Innovation """ Fixtures for unit tests, used to create mock objects """ diff --git a/OpenStack-Rabbit-Consumer/test/test_aq_api.py b/OpenStack-Rabbit-Consumer/test/test_aq_api.py index ca52af47..292e649d 100644 --- a/OpenStack-Rabbit-Consumer/test/test_aq_api.py +++ b/OpenStack-Rabbit-Consumer/test/test_aq_api.py @@ -1,3 +1,5 @@ +# SPDX-License-Identifier: Apache-2.0 +# Copyright (c) 2023 United Kingdom Research and Innovation """ Tests that we perform the correct REST requests against the Aquilon API diff --git a/OpenStack-Rabbit-Consumer/test/test_aq_metadata.py b/OpenStack-Rabbit-Consumer/test/test_aq_metadata.py index 6d65b441..39b109ac 100644 --- a/OpenStack-Rabbit-Consumer/test/test_aq_metadata.py +++ b/OpenStack-Rabbit-Consumer/test/test_aq_metadata.py @@ -1,3 +1,5 @@ +# SPDX-License-Identifier: Apache-2.0 +# Copyright (c) 2023 United Kingdom Research and Innovation """ Tests the AQ metadata dataclass, including init from environment variables, and overriding values diff --git a/OpenStack-Rabbit-Consumer/test/test_consumer_config.py b/OpenStack-Rabbit-Consumer/test/test_consumer_config.py index 8c62646a..287b1c4b 100644 --- a/OpenStack-Rabbit-Consumer/test/test_consumer_config.py +++ b/OpenStack-Rabbit-Consumer/test/test_consumer_config.py @@ -1,3 +1,5 @@ +# SPDX-License-Identifier: Apache-2.0 +# Copyright (c) 2023 United Kingdom Research and Innovation """ Test the consumer config class, this handles the environment variables that are used to configure the consumer. diff --git a/OpenStack-Rabbit-Consumer/test/test_message_consumer.py b/OpenStack-Rabbit-Consumer/test/test_message_consumer.py index a4310102..e44e4da2 100644 --- a/OpenStack-Rabbit-Consumer/test/test_message_consumer.py +++ b/OpenStack-Rabbit-Consumer/test/test_message_consumer.py @@ -1,3 +1,5 @@ +# SPDX-License-Identifier: Apache-2.0 +# Copyright (c) 2023 United Kingdom Research and Innovation """ Tests the message consumption flow for the consumer diff --git a/OpenStack-Rabbit-Consumer/test/test_openstack_address.py b/OpenStack-Rabbit-Consumer/test/test_openstack_address.py index 2d011ca4..1a70e201 100644 --- a/OpenStack-Rabbit-Consumer/test/test_openstack_address.py +++ b/OpenStack-Rabbit-Consumer/test/test_openstack_address.py @@ -1,3 +1,5 @@ +# SPDX-License-Identifier: Apache-2.0 +# Copyright (c) 2023 United Kingdom Research and Innovation """ Tests the dataclass representing OpenStack network addresses """ diff --git a/OpenStack-Rabbit-Consumer/test/test_openstack_api.py b/OpenStack-Rabbit-Consumer/test/test_openstack_api.py index 02b347e1..0ab7a171 100644 --- a/OpenStack-Rabbit-Consumer/test/test_openstack_api.py +++ b/OpenStack-Rabbit-Consumer/test/test_openstack_api.py @@ -1,3 +1,5 @@ +# SPDX-License-Identifier: Apache-2.0 +# Copyright (c) 2023 United Kingdom Research and Innovation """ Tests that the Openstack API functions are invoked as expected with the correct params diff --git a/OpenStack-Rabbit-Consumer/test/test_rabbit_message.py b/OpenStack-Rabbit-Consumer/test/test_rabbit_message.py index 16fa326d..15a060a3 100644 --- a/OpenStack-Rabbit-Consumer/test/test_rabbit_message.py +++ b/OpenStack-Rabbit-Consumer/test/test_rabbit_message.py @@ -1,3 +1,5 @@ +# SPDX-License-Identifier: Apache-2.0 +# Copyright (c) 2023 United Kingdom Research and Innovation """ Tests rabbit messages are consumed correctly from the queue """ diff --git a/OpenStack-Rally-Tester/usr/local/bin/rally-run-test.sh b/OpenStack-Rally-Tester/usr/local/bin/rally-run-test.sh index a33fa6f6..c7b1f944 100644 --- a/OpenStack-Rally-Tester/usr/local/bin/rally-run-test.sh +++ b/OpenStack-Rally-Tester/usr/local/bin/rally-run-test.sh @@ -1,4 +1,6 @@ #!/bin/bash +# SPDX-License-Identifier: Apache-2.0 +# Copyright (c) 2023 United Kingdom Research and Innovation # Exit on error set -e diff --git a/OpenStack-Rally-Tester/usr/local/bin/rally_extract_results.py b/OpenStack-Rally-Tester/usr/local/bin/rally_extract_results.py index 19d5138f..209334fc 100644 --- a/OpenStack-Rally-Tester/usr/local/bin/rally_extract_results.py +++ b/OpenStack-Rally-Tester/usr/local/bin/rally_extract_results.py @@ -1,3 +1,5 @@ +# SPDX-License-Identifier: Apache-2.0 +# Copyright (c) 2023 United Kingdom Research and Innovation #!/usr/bin/python3 """ Parses results from the rally task report and sends them to influxdb diff --git a/OpenStack-accounting/usr/local/sbin/accountinglib.py b/OpenStack-accounting/usr/local/sbin/accountinglib.py index 41e94e89..d769125f 100644 --- a/OpenStack-accounting/usr/local/sbin/accountinglib.py +++ b/OpenStack-accounting/usr/local/sbin/accountinglib.py @@ -1,3 +1,5 @@ +# SPDX-License-Identifier: Apache-2.0 +# Copyright (c) 2023 United Kingdom Research and Innovation #!/usr/bin/python3 import time import datetime diff --git a/OpenStack-accounting/usr/local/sbin/cinder_extract_accounting.py b/OpenStack-accounting/usr/local/sbin/cinder_extract_accounting.py index 61d94c37..addaf188 100644 --- a/OpenStack-accounting/usr/local/sbin/cinder_extract_accounting.py +++ b/OpenStack-accounting/usr/local/sbin/cinder_extract_accounting.py @@ -1,3 +1,5 @@ +# SPDX-License-Identifier: Apache-2.0 +# Copyright (c) 2023 United Kingdom Research and Innovation #!/usr/bin/python3 import accountinglib diff --git a/OpenStack-accounting/usr/local/sbin/glance_extract_accounting.py b/OpenStack-accounting/usr/local/sbin/glance_extract_accounting.py index 83ac2102..922e0786 100644 --- a/OpenStack-accounting/usr/local/sbin/glance_extract_accounting.py +++ b/OpenStack-accounting/usr/local/sbin/glance_extract_accounting.py @@ -1,3 +1,5 @@ +# SPDX-License-Identifier: Apache-2.0 +# Copyright (c) 2023 United Kingdom Research and Innovation #!/usr/bin/python3 import accountinglib diff --git a/OpenStack-accounting/usr/local/sbin/manila_extract_accounting.py b/OpenStack-accounting/usr/local/sbin/manila_extract_accounting.py index df4752c1..441da64e 100644 --- a/OpenStack-accounting/usr/local/sbin/manila_extract_accounting.py +++ b/OpenStack-accounting/usr/local/sbin/manila_extract_accounting.py @@ -1,3 +1,5 @@ +# SPDX-License-Identifier: Apache-2.0 +# Copyright (c) 2023 United Kingdom Research and Innovation #!/usr/bin/python3 import accountinglib diff --git a/OpenStack-accounting/usr/local/sbin/nova_extract_accounting.py b/OpenStack-accounting/usr/local/sbin/nova_extract_accounting.py index 6e535151..385d8738 100644 --- a/OpenStack-accounting/usr/local/sbin/nova_extract_accounting.py +++ b/OpenStack-accounting/usr/local/sbin/nova_extract_accounting.py @@ -1,3 +1,5 @@ +# SPDX-License-Identifier: Apache-2.0 +# Copyright (c) 2023 United Kingdom Research and Innovation #!/usr/bin/python3 import accountinglib diff --git a/OpenStack-accounting/usr/local/sbin/now-accounting.sh b/OpenStack-accounting/usr/local/sbin/now-accounting.sh index bfe43c28..e0a802cc 100644 --- a/OpenStack-accounting/usr/local/sbin/now-accounting.sh +++ b/OpenStack-accounting/usr/local/sbin/now-accounting.sh @@ -1,4 +1,6 @@ #!/bin/bash +# SPDX-License-Identifier: Apache-2.0 +# Copyright (c) 2023 United Kingdom Research and Innovation # helper script for calculating accounting for today diff --git a/OpenStack-accounting/usr/local/sbin/past-accounting.sh b/OpenStack-accounting/usr/local/sbin/past-accounting.sh index 64e62b3c..6ef26093 100644 --- a/OpenStack-accounting/usr/local/sbin/past-accounting.sh +++ b/OpenStack-accounting/usr/local/sbin/past-accounting.sh @@ -1,4 +1,6 @@ #!/bin/bash +# SPDX-License-Identifier: Apache-2.0 +# Copyright (c) 2023 United Kingdom Research and Innovation # helper script for regenerating daily accounting over a period of time diff --git a/OpenStack_get_username/var/www/cgi-bin/get_username.sh b/OpenStack_get_username/var/www/cgi-bin/get_username.sh index e466cf15..22381670 100644 --- a/OpenStack_get_username/var/www/cgi-bin/get_username.sh +++ b/OpenStack_get_username/var/www/cgi-bin/get_username.sh @@ -1,4 +1,6 @@ #!/bin/bash +# SPDX-License-Identifier: Apache-2.0 +# Copyright (c) 2023 United Kingdom Research and Innovation echo "Content-Type: text/plain" echo "" diff --git a/OpenStack_irisiam_mapper/var/www/cgi-bin/irisiam-mapper.py b/OpenStack_irisiam_mapper/var/www/cgi-bin/irisiam-mapper.py index 8135cb99..097db282 100644 --- a/OpenStack_irisiam_mapper/var/www/cgi-bin/irisiam-mapper.py +++ b/OpenStack_irisiam_mapper/var/www/cgi-bin/irisiam-mapper.py @@ -1,3 +1,5 @@ +# SPDX-License-Identifier: Apache-2.0 +# Copyright (c) 2023 United Kingdom Research and Innovation #!/usr/bin/python3 import sys import os diff --git a/aq_zombie_finder/aq_zombie_finder.py b/aq_zombie_finder/aq_zombie_finder.py index 4875e3fb..1256ac18 100644 --- a/aq_zombie_finder/aq_zombie_finder.py +++ b/aq_zombie_finder/aq_zombie_finder.py @@ -1,3 +1,5 @@ +# SPDX-License-Identifier: Apache-2.0 +# Copyright (c) 2023 United Kingdom Research and Innovation from re import compile as re_compile from pathlib import Path import argparse diff --git a/aq_zombie_finder/test/test_aq_zombie_finder.py b/aq_zombie_finder/test/test_aq_zombie_finder.py index 4fbde102..06022465 100644 --- a/aq_zombie_finder/test/test_aq_zombie_finder.py +++ b/aq_zombie_finder/test/test_aq_zombie_finder.py @@ -1,3 +1,5 @@ +# SPDX-License-Identifier: Apache-2.0 +# Copyright (c) 2023 United Kingdom Research and Innovation from unittest import mock from unittest.mock import MagicMock, patch, NonCallableMock, call from parameterized import parameterized diff --git a/charts/rabbit-consumer/include/kinit.sh b/charts/rabbit-consumer/include/kinit.sh index 5670ee1d..5299e00f 100644 --- a/charts/rabbit-consumer/include/kinit.sh +++ b/charts/rabbit-consumer/include/kinit.sh @@ -1,4 +1,6 @@ #!/bin/bash +# SPDX-License-Identifier: Apache-2.0 +# Copyright (c) 2023 United Kingdom Research and Innovation # Adapted from https://cloud.redhat.com/blog/kerberos-sidecar-container diff --git a/charts/rabbit-consumer/include/sidecar-entrypoint.sh b/charts/rabbit-consumer/include/sidecar-entrypoint.sh index eacdd5fe..c94c8a69 100644 --- a/charts/rabbit-consumer/include/sidecar-entrypoint.sh +++ b/charts/rabbit-consumer/include/sidecar-entrypoint.sh @@ -1,4 +1,6 @@ #!/bin/bash +# SPDX-License-Identifier: Apache-2.0 +# Copyright (c) 2023 United Kingdom Research and Innovation set -ex diff --git a/dns_entry_checker/dns_entry_checker.py b/dns_entry_checker/dns_entry_checker.py index 3cc015d6..43d0e42f 100644 --- a/dns_entry_checker/dns_entry_checker.py +++ b/dns_entry_checker/dns_entry_checker.py @@ -1,3 +1,5 @@ +# SPDX-License-Identifier: Apache-2.0 +# Copyright (c) 2023 United Kingdom Research and Innovation from collections import defaultdict from re import compile as re_compile from pathlib import Path diff --git a/dns_entry_checker/test/test_dns_entry_checker.py b/dns_entry_checker/test/test_dns_entry_checker.py index ff2b2484..a8ab239d 100644 --- a/dns_entry_checker/test/test_dns_entry_checker.py +++ b/dns_entry_checker/test/test_dns_entry_checker.py @@ -1,3 +1,5 @@ +# SPDX-License-Identifier: Apache-2.0 +# Copyright (c) 2023 United Kingdom Research and Innovation from argparse import Namespace from collections import defaultdict from unittest import mock diff --git a/gpu_benchmark/benchmark.sh b/gpu_benchmark/benchmark.sh index fc08b5f5..cdbe7318 100755 --- a/gpu_benchmark/benchmark.sh +++ b/gpu_benchmark/benchmark.sh @@ -1,4 +1,6 @@ #!/bin/bash +# SPDX-License-Identifier: Apache-2.0 +# Copyright (c) 2023 United Kingdom Research and Innovation set -e diff --git a/gpu_benchmark/gpu_setup.sh b/gpu_benchmark/gpu_setup.sh index c1f3368b..8b3289a8 100755 --- a/gpu_benchmark/gpu_setup.sh +++ b/gpu_benchmark/gpu_setup.sh @@ -1,4 +1,6 @@ #!/bin/bash +# SPDX-License-Identifier: Apache-2.0 +# Copyright (c) 2023 United Kingdom Research and Innovation sudo dnf update -y diff --git a/gpu_benchmark/power_perf.sh b/gpu_benchmark/power_perf.sh index 993864d7..bda7052c 100755 --- a/gpu_benchmark/power_perf.sh +++ b/gpu_benchmark/power_perf.sh @@ -1,4 +1,6 @@ #!/bin/bash +# SPDX-License-Identifier: Apache-2.0 +# Copyright (c) 2023 United Kingdom Research and Innovation set -e diff --git a/iriscasttools/iriscasttools/__init__.py b/iriscasttools/iriscasttools/__init__.py index df778f89..9842a8c1 100644 --- a/iriscasttools/iriscasttools/__init__.py +++ b/iriscasttools/iriscasttools/__init__.py @@ -1 +1,3 @@ +# SPDX-License-Identifier: Apache-2.0 +# Copyright (c) 2023 United Kingdom Research and Innovation from iriscasttools import __main__ diff --git a/iriscasttools/iriscasttools/__main__.py b/iriscasttools/iriscasttools/__main__.py index ffd1931a..8c28fa92 100644 --- a/iriscasttools/iriscasttools/__main__.py +++ b/iriscasttools/iriscasttools/__main__.py @@ -1,3 +1,5 @@ +# SPDX-License-Identifier: Apache-2.0 +# Copyright (c) 2023 United Kingdom Research and Innovation import logging import logging.handlers import os diff --git a/iriscasttools/iriscasttools/stats.py b/iriscasttools/iriscasttools/stats.py index 4a297849..478e5805 100644 --- a/iriscasttools/iriscasttools/stats.py +++ b/iriscasttools/iriscasttools/stats.py @@ -1,3 +1,5 @@ +# SPDX-License-Identifier: Apache-2.0 +# Copyright (c) 2023 United Kingdom Research and Innovation """ Collects energy usage metrics using IPMI, as well as other metrics such as CPU and RAM usage. """ diff --git a/iriscasttools/iriscasttools/utils.py b/iriscasttools/iriscasttools/utils.py index 102d1406..7ba2298a 100644 --- a/iriscasttools/iriscasttools/utils.py +++ b/iriscasttools/iriscasttools/utils.py @@ -1,3 +1,5 @@ +# SPDX-License-Identifier: Apache-2.0 +# Copyright (c) 2023 United Kingdom Research and Innovation """ Provides utility functions to collect energy usage information """ diff --git a/iriscasttools/setup.py b/iriscasttools/setup.py index b7e58fad..e051c401 100644 --- a/iriscasttools/setup.py +++ b/iriscasttools/setup.py @@ -1,3 +1,5 @@ +# SPDX-License-Identifier: Apache-2.0 +# Copyright (c) 2023 United Kingdom Research and Innovation from setuptools import setup, find_packages VERSION = "0.2.1" diff --git a/iriscasttools/test/test_stats.py b/iriscasttools/test/test_stats.py index d50862ab..71e391d6 100644 --- a/iriscasttools/test/test_stats.py +++ b/iriscasttools/test/test_stats.py @@ -1,3 +1,5 @@ +# SPDX-License-Identifier: Apache-2.0 +# Copyright (c) 2023 United Kingdom Research and Innovation """ Tests for main functions for iriscasttools package """ diff --git a/iriscasttools/test/test_utils.py b/iriscasttools/test/test_utils.py index 1e93d7e1..a94a0633 100644 --- a/iriscasttools/test/test_utils.py +++ b/iriscasttools/test/test_utils.py @@ -1,3 +1,5 @@ +# SPDX-License-Identifier: Apache-2.0 +# Copyright (c) 2023 United Kingdom Research and Innovation """ Tests for utility functions for iriscasttools package """ diff --git a/jsm_metric_collection/jsm_metric_collection.py b/jsm_metric_collection/jsm_metric_collection.py index bcff217f..ef69e5ff 100644 --- a/jsm_metric_collection/jsm_metric_collection.py +++ b/jsm_metric_collection/jsm_metric_collection.py @@ -1,3 +1,5 @@ +# SPDX-License-Identifier: Apache-2.0 +# Copyright (c) 2023 United Kingdom Research and Innovation from argparse import ArgumentParser, RawDescriptionHelpFormatter from datetime import datetime from pathlib import Path diff --git a/jsm_metric_collection/test/test_jsm_metric_collection.py b/jsm_metric_collection/test/test_jsm_metric_collection.py index bf0fdad3..63cff4df 100644 --- a/jsm_metric_collection/test/test_jsm_metric_collection.py +++ b/jsm_metric_collection/test/test_jsm_metric_collection.py @@ -1,3 +1,5 @@ +# SPDX-License-Identifier: Apache-2.0 +# Copyright (c) 2023 United Kingdom Research and Innovation from unittest import mock from unittest.mock import MagicMock, patch, call from parameterized import parameterized diff --git a/prometheus_ip_script/main.py b/prometheus_ip_script/main.py index c9355942..429ba649 100644 --- a/prometheus_ip_script/main.py +++ b/prometheus_ip_script/main.py @@ -1,3 +1,5 @@ +# SPDX-License-Identifier: Apache-2.0 +# Copyright (c) 2023 United Kingdom Research and Innovation from ipaddress import IPv4Network from pathlib import Path from typing import List diff --git a/prometheus_ip_script/test/test_generate_ips.py b/prometheus_ip_script/test/test_generate_ips.py index 2ed1e171..dc71ded8 100644 --- a/prometheus_ip_script/test/test_generate_ips.py +++ b/prometheus_ip_script/test/test_generate_ips.py @@ -1,3 +1,5 @@ +# SPDX-License-Identifier: Apache-2.0 +# Copyright (c) 2023 United Kingdom Research and Innovation from pathlib import Path from main import ( diff --git a/pynetbox_query/pynetboxquery/__main__.py b/pynetbox_query/pynetboxquery/__main__.py index 8e660925..afcbfcf0 100644 --- a/pynetbox_query/pynetboxquery/__main__.py +++ b/pynetbox_query/pynetboxquery/__main__.py @@ -1,3 +1,5 @@ +# SPDX-License-Identifier: Apache-2.0 +# Copyright (c) 2023 United Kingdom Research and Innovation from importlib import import_module import sys from pynetboxquery.utils.error_classes import UserMethodNotFoundError diff --git a/pynetbox_query/pynetboxquery/netbox_api/netbox_connect.py b/pynetbox_query/pynetboxquery/netbox_api/netbox_connect.py index 3a24533d..f7a179b6 100644 --- a/pynetbox_query/pynetboxquery/netbox_api/netbox_connect.py +++ b/pynetbox_query/pynetboxquery/netbox_api/netbox_connect.py @@ -1,3 +1,5 @@ +# SPDX-License-Identifier: Apache-2.0 +# Copyright (c) 2023 United Kingdom Research and Innovation from pynetbox import api diff --git a/pynetbox_query/pynetboxquery/netbox_api/netbox_create.py b/pynetbox_query/pynetboxquery/netbox_api/netbox_create.py index ae3b2022..e39e98a2 100644 --- a/pynetbox_query/pynetboxquery/netbox_api/netbox_create.py +++ b/pynetbox_query/pynetboxquery/netbox_api/netbox_create.py @@ -1,3 +1,5 @@ +# SPDX-License-Identifier: Apache-2.0 +# Copyright (c) 2023 United Kingdom Research and Innovation from typing import Union, Dict, List diff --git a/pynetbox_query/pynetboxquery/netbox_api/netbox_get_id.py b/pynetbox_query/pynetboxquery/netbox_api/netbox_get_id.py index 72e6d618..b44d1d19 100644 --- a/pynetbox_query/pynetboxquery/netbox_api/netbox_get_id.py +++ b/pynetbox_query/pynetboxquery/netbox_api/netbox_get_id.py @@ -1,3 +1,5 @@ +# SPDX-License-Identifier: Apache-2.0 +# Copyright (c) 2023 United Kingdom Research and Innovation from pynetboxquery.utils.device_dataclass import Device diff --git a/pynetbox_query/pynetboxquery/netbox_api/validate_data.py b/pynetbox_query/pynetboxquery/netbox_api/validate_data.py index e6846f73..c501641f 100644 --- a/pynetbox_query/pynetboxquery/netbox_api/validate_data.py +++ b/pynetbox_query/pynetboxquery/netbox_api/validate_data.py @@ -1,3 +1,5 @@ +# SPDX-License-Identifier: Apache-2.0 +# Copyright (c) 2023 United Kingdom Research and Innovation from typing import List from pynetbox import api from pynetboxquery.utils.device_dataclass import Device diff --git a/pynetbox_query/pynetboxquery/user_methods/abstract_user_method.py b/pynetbox_query/pynetboxquery/user_methods/abstract_user_method.py index de042d31..64fec250 100644 --- a/pynetbox_query/pynetboxquery/user_methods/abstract_user_method.py +++ b/pynetbox_query/pynetboxquery/user_methods/abstract_user_method.py @@ -1,3 +1,5 @@ +# SPDX-License-Identifier: Apache-2.0 +# Copyright (c) 2023 United Kingdom Research and Innovation from abc import ABC, abstractmethod from typing import List, Dict from argparse import ArgumentParser diff --git a/pynetbox_query/pynetboxquery/user_methods/upload_devices_to_netbox.py b/pynetbox_query/pynetboxquery/user_methods/upload_devices_to_netbox.py index 980dee92..b96ae249 100644 --- a/pynetbox_query/pynetboxquery/user_methods/upload_devices_to_netbox.py +++ b/pynetbox_query/pynetboxquery/user_methods/upload_devices_to_netbox.py @@ -1,3 +1,5 @@ +# SPDX-License-Identifier: Apache-2.0 +# Copyright (c) 2023 United Kingdom Research and Innovation from dataclasses import asdict from pynetboxquery.utils.read_utils.read_file import ReadFile from pynetboxquery.netbox_api.validate_data import ValidateData diff --git a/pynetbox_query/pynetboxquery/user_methods/validate_data_fields_in_netbox.py b/pynetbox_query/pynetboxquery/user_methods/validate_data_fields_in_netbox.py index 87fce256..8d560460 100644 --- a/pynetbox_query/pynetboxquery/user_methods/validate_data_fields_in_netbox.py +++ b/pynetbox_query/pynetboxquery/user_methods/validate_data_fields_in_netbox.py @@ -1,3 +1,5 @@ +# SPDX-License-Identifier: Apache-2.0 +# Copyright (c) 2023 United Kingdom Research and Innovation from pynetboxquery.utils.parsers import Parsers from pynetboxquery.netbox_api.validate_data import ValidateData from pynetboxquery.utils.read_utils.read_file import ReadFile diff --git a/pynetbox_query/pynetboxquery/utils/device_dataclass.py b/pynetbox_query/pynetboxquery/utils/device_dataclass.py index 8e117729..00d73421 100644 --- a/pynetbox_query/pynetboxquery/utils/device_dataclass.py +++ b/pynetbox_query/pynetboxquery/utils/device_dataclass.py @@ -1,3 +1,5 @@ +# SPDX-License-Identifier: Apache-2.0 +# Copyright (c) 2023 United Kingdom Research and Innovation from dataclasses import dataclass, fields from typing import Optional diff --git a/pynetbox_query/pynetboxquery/utils/error_classes.py b/pynetbox_query/pynetboxquery/utils/error_classes.py index 4dcca85a..0771534a 100644 --- a/pynetbox_query/pynetboxquery/utils/error_classes.py +++ b/pynetbox_query/pynetboxquery/utils/error_classes.py @@ -1,3 +1,5 @@ +# SPDX-License-Identifier: Apache-2.0 +# Copyright (c) 2023 United Kingdom Research and Innovation # Disabling this Pylint error as these classes do not need Docstring. # They are just errors # pylint: disable = C0115 diff --git a/pynetbox_query/pynetboxquery/utils/parsers.py b/pynetbox_query/pynetboxquery/utils/parsers.py index c24a8afa..c5bb5b91 100644 --- a/pynetbox_query/pynetboxquery/utils/parsers.py +++ b/pynetbox_query/pynetboxquery/utils/parsers.py @@ -1,3 +1,5 @@ +# SPDX-License-Identifier: Apache-2.0 +# Copyright (c) 2023 United Kingdom Research and Innovation import argparse diff --git a/pynetbox_query/pynetboxquery/utils/query_device.py b/pynetbox_query/pynetboxquery/utils/query_device.py index 267c0b2c..4560fd96 100644 --- a/pynetbox_query/pynetboxquery/utils/query_device.py +++ b/pynetbox_query/pynetboxquery/utils/query_device.py @@ -1,3 +1,5 @@ +# SPDX-License-Identifier: Apache-2.0 +# Copyright (c) 2023 United Kingdom Research and Innovation from typing import List from pynetboxquery.utils.device_dataclass import Device from pynetboxquery.netbox_api.netbox_get_id import NetboxGetId diff --git a/pynetbox_query/pynetboxquery/utils/read_utils/read_abc.py b/pynetbox_query/pynetboxquery/utils/read_utils/read_abc.py index f7714bf9..8f21f553 100644 --- a/pynetbox_query/pynetboxquery/utils/read_utils/read_abc.py +++ b/pynetbox_query/pynetboxquery/utils/read_utils/read_abc.py @@ -1,3 +1,5 @@ +# SPDX-License-Identifier: Apache-2.0 +# Copyright (c) 2023 United Kingdom Research and Innovation from abc import ABC, abstractmethod from pathlib import Path from typing import List, Dict diff --git a/pynetbox_query/pynetboxquery/utils/read_utils/read_csv.py b/pynetbox_query/pynetboxquery/utils/read_utils/read_csv.py index 2ab52105..41cdf2f6 100644 --- a/pynetbox_query/pynetboxquery/utils/read_utils/read_csv.py +++ b/pynetbox_query/pynetboxquery/utils/read_utils/read_csv.py @@ -1,3 +1,5 @@ +# SPDX-License-Identifier: Apache-2.0 +# Copyright (c) 2023 United Kingdom Research and Innovation from csv import DictReader from typing import List from pynetboxquery.utils.device_dataclass import Device diff --git a/pynetbox_query/pynetboxquery/utils/read_utils/read_file.py b/pynetbox_query/pynetboxquery/utils/read_utils/read_file.py index 73c338f2..5c89b981 100644 --- a/pynetbox_query/pynetboxquery/utils/read_utils/read_file.py +++ b/pynetbox_query/pynetboxquery/utils/read_utils/read_file.py @@ -1,3 +1,5 @@ +# SPDX-License-Identifier: Apache-2.0 +# Copyright (c) 2023 United Kingdom Research and Innovation from typing import List from pynetboxquery.utils.device_dataclass import Device from pynetboxquery.utils.error_classes import FileTypeNotSupportedError diff --git a/pynetbox_query/pynetboxquery/utils/read_utils/read_txt.py b/pynetbox_query/pynetboxquery/utils/read_utils/read_txt.py index 632ddb8a..e74885c7 100644 --- a/pynetbox_query/pynetboxquery/utils/read_utils/read_txt.py +++ b/pynetbox_query/pynetboxquery/utils/read_utils/read_txt.py @@ -1,3 +1,5 @@ +# SPDX-License-Identifier: Apache-2.0 +# Copyright (c) 2023 United Kingdom Research and Innovation from csv import DictReader from typing import List from pynetboxquery.utils.device_dataclass import Device diff --git a/pynetbox_query/pynetboxquery/utils/read_utils/read_xlsx.py b/pynetbox_query/pynetboxquery/utils/read_utils/read_xlsx.py index 027ba21a..4428d80b 100644 --- a/pynetbox_query/pynetboxquery/utils/read_utils/read_xlsx.py +++ b/pynetbox_query/pynetboxquery/utils/read_utils/read_xlsx.py @@ -1,3 +1,5 @@ +# SPDX-License-Identifier: Apache-2.0 +# Copyright (c) 2023 United Kingdom Research and Innovation from typing import List from pandas import read_excel from pynetboxquery.utils.device_dataclass import Device diff --git a/pynetbox_query/setup.py b/pynetbox_query/setup.py index aed72ee5..d27b4fbb 100644 --- a/pynetbox_query/setup.py +++ b/pynetbox_query/setup.py @@ -1,3 +1,5 @@ +# SPDX-License-Identifier: Apache-2.0 +# Copyright (c) 2023 United Kingdom Research and Innovation from setuptools import setup, find_packages VERSION = "0.1.0" diff --git a/pynetbox_query/tests/conftest.py b/pynetbox_query/tests/conftest.py index 3b6b93f3..e9471ebf 100644 --- a/pynetbox_query/tests/conftest.py +++ b/pynetbox_query/tests/conftest.py @@ -1,3 +1,5 @@ +# SPDX-License-Identifier: Apache-2.0 +# Copyright (c) 2023 United Kingdom Research and Innovation from typing import Dict from pytest import fixture from pynetboxquery.utils.device_dataclass import Device diff --git a/pynetbox_query/tests/test__main__.py b/pynetbox_query/tests/test__main__.py index 8ae0fef8..ff7ac1e3 100644 --- a/pynetbox_query/tests/test__main__.py +++ b/pynetbox_query/tests/test__main__.py @@ -1,3 +1,5 @@ +# SPDX-License-Identifier: Apache-2.0 +# Copyright (c) 2023 United Kingdom Research and Innovation from unittest.mock import patch from pytest import raises from pynetboxquery.__main__ import main diff --git a/pynetbox_query/tests/test_netbox_api/test_netbox_connect.py b/pynetbox_query/tests/test_netbox_api/test_netbox_connect.py index c5ba3db6..f83ca22f 100644 --- a/pynetbox_query/tests/test_netbox_api/test_netbox_connect.py +++ b/pynetbox_query/tests/test_netbox_api/test_netbox_connect.py @@ -1,3 +1,5 @@ +# SPDX-License-Identifier: Apache-2.0 +# Copyright (c) 2023 United Kingdom Research and Innovation from unittest.mock import patch from pynetboxquery.netbox_api.netbox_connect import api_object diff --git a/pynetbox_query/tests/test_netbox_api/test_netbox_create.py b/pynetbox_query/tests/test_netbox_api/test_netbox_create.py index 5c79559c..bc089c3b 100644 --- a/pynetbox_query/tests/test_netbox_api/test_netbox_create.py +++ b/pynetbox_query/tests/test_netbox_api/test_netbox_create.py @@ -1,3 +1,5 @@ +# SPDX-License-Identifier: Apache-2.0 +# Copyright (c) 2023 United Kingdom Research and Innovation from unittest.mock import NonCallableMock from dataclasses import asdict from pytest import fixture diff --git a/pynetbox_query/tests/test_netbox_api/test_netbox_get_id.py b/pynetbox_query/tests/test_netbox_api/test_netbox_get_id.py index a640a9b0..4fd2b736 100644 --- a/pynetbox_query/tests/test_netbox_api/test_netbox_get_id.py +++ b/pynetbox_query/tests/test_netbox_api/test_netbox_get_id.py @@ -1,3 +1,5 @@ +# SPDX-License-Identifier: Apache-2.0 +# Copyright (c) 2023 United Kingdom Research and Innovation from unittest.mock import patch from pytest import fixture from pynetboxquery.netbox_api.netbox_get_id import NetboxGetId diff --git a/pynetbox_query/tests/test_netbox_api/test_validate_data.py b/pynetbox_query/tests/test_netbox_api/test_validate_data.py index 36ada2be..930cf909 100644 --- a/pynetbox_query/tests/test_netbox_api/test_validate_data.py +++ b/pynetbox_query/tests/test_netbox_api/test_validate_data.py @@ -1,3 +1,5 @@ +# SPDX-License-Identifier: Apache-2.0 +# Copyright (c) 2023 United Kingdom Research and Innovation from unittest.mock import patch, NonCallableMock from pytest import fixture from pynetboxquery.netbox_api.validate_data import ValidateData diff --git a/pynetbox_query/tests/test_user_methods/test_abstract_user_method.py b/pynetbox_query/tests/test_user_methods/test_abstract_user_method.py index 4e70e7bc..f1ee0cea 100644 --- a/pynetbox_query/tests/test_user_methods/test_abstract_user_method.py +++ b/pynetbox_query/tests/test_user_methods/test_abstract_user_method.py @@ -1,3 +1,5 @@ +# SPDX-License-Identifier: Apache-2.0 +# Copyright (c) 2023 United Kingdom Research and Innovation from argparse import ArgumentParser from typing import List from unittest.mock import patch diff --git a/pynetbox_query/tests/test_user_methods/test_upload_devices_to_netbox.py b/pynetbox_query/tests/test_user_methods/test_upload_devices_to_netbox.py index bffeed37..ddb2eb15 100644 --- a/pynetbox_query/tests/test_user_methods/test_upload_devices_to_netbox.py +++ b/pynetbox_query/tests/test_user_methods/test_upload_devices_to_netbox.py @@ -1,3 +1,5 @@ +# SPDX-License-Identifier: Apache-2.0 +# Copyright (c) 2023 United Kingdom Research and Innovation from dataclasses import asdict from unittest.mock import patch, NonCallableMock from pynetboxquery.user_methods.upload_devices_to_netbox import Main diff --git a/pynetbox_query/tests/test_user_methods/test_validate_data_fields_in_netbox.py b/pynetbox_query/tests/test_user_methods/test_validate_data_fields_in_netbox.py index fbefb909..c3398724 100644 --- a/pynetbox_query/tests/test_user_methods/test_validate_data_fields_in_netbox.py +++ b/pynetbox_query/tests/test_user_methods/test_validate_data_fields_in_netbox.py @@ -1,3 +1,5 @@ +# SPDX-License-Identifier: Apache-2.0 +# Copyright (c) 2023 United Kingdom Research and Innovation from unittest.mock import patch, NonCallableMock from pynetboxquery.user_methods.validate_data_fields_in_netbox import Main diff --git a/pynetbox_query/tests/test_utils/test_device_dataclass.py b/pynetbox_query/tests/test_utils/test_device_dataclass.py index 84c4b5c6..21a7b684 100644 --- a/pynetbox_query/tests/test_utils/test_device_dataclass.py +++ b/pynetbox_query/tests/test_utils/test_device_dataclass.py @@ -1,3 +1,5 @@ +# SPDX-License-Identifier: Apache-2.0 +# Copyright (c) 2023 United Kingdom Research and Innovation from dataclasses import asdict diff --git a/pynetbox_query/tests/test_utils/test_parsers.py b/pynetbox_query/tests/test_utils/test_parsers.py index 048033a4..c0a19862 100644 --- a/pynetbox_query/tests/test_utils/test_parsers.py +++ b/pynetbox_query/tests/test_utils/test_parsers.py @@ -1,3 +1,5 @@ +# SPDX-License-Identifier: Apache-2.0 +# Copyright (c) 2023 United Kingdom Research and Innovation from unittest.mock import patch from pytest import fixture from pynetboxquery.utils.parsers import Parsers diff --git a/pynetbox_query/tests/test_utils/test_query_device.py b/pynetbox_query/tests/test_utils/test_query_device.py index 28121b37..1dfe3023 100644 --- a/pynetbox_query/tests/test_utils/test_query_device.py +++ b/pynetbox_query/tests/test_utils/test_query_device.py @@ -1,3 +1,5 @@ +# SPDX-License-Identifier: Apache-2.0 +# Copyright (c) 2023 United Kingdom Research and Innovation from unittest.mock import NonCallableMock, patch from dataclasses import asdict from pytest import fixture diff --git a/pynetbox_query/tests/test_utils/test_read_utils/test_read_abc.py b/pynetbox_query/tests/test_utils/test_read_utils/test_read_abc.py index 262ac336..159b87e9 100644 --- a/pynetbox_query/tests/test_utils/test_read_utils/test_read_abc.py +++ b/pynetbox_query/tests/test_utils/test_read_utils/test_read_abc.py @@ -1,3 +1,5 @@ +# SPDX-License-Identifier: Apache-2.0 +# Copyright (c) 2023 United Kingdom Research and Innovation from dataclasses import asdict from unittest.mock import patch from pytest import raises diff --git a/pynetbox_query/tests/test_utils/test_read_utils/test_read_csv.py b/pynetbox_query/tests/test_utils/test_read_utils/test_read_csv.py index 0faa056a..8a9a05ab 100644 --- a/pynetbox_query/tests/test_utils/test_read_utils/test_read_csv.py +++ b/pynetbox_query/tests/test_utils/test_read_utils/test_read_csv.py @@ -1,3 +1,5 @@ +# SPDX-License-Identifier: Apache-2.0 +# Copyright (c) 2023 United Kingdom Research and Innovation from unittest.mock import patch from pynetboxquery.utils.read_utils.read_csv import ReadCSV diff --git a/pynetbox_query/tests/test_utils/test_read_utils/test_read_file.py b/pynetbox_query/tests/test_utils/test_read_utils/test_read_file.py index d5130b3c..2068c630 100644 --- a/pynetbox_query/tests/test_utils/test_read_utils/test_read_file.py +++ b/pynetbox_query/tests/test_utils/test_read_utils/test_read_file.py @@ -1,3 +1,5 @@ +# SPDX-License-Identifier: Apache-2.0 +# Copyright (c) 2023 United Kingdom Research and Innovation from unittest.mock import patch from pytest import raises from pynetboxquery.utils.read_utils.read_file import ReadFile diff --git a/pynetbox_query/tests/test_utils/test_read_utils/test_read_txt.py b/pynetbox_query/tests/test_utils/test_read_utils/test_read_txt.py index bad40a86..a96c6b70 100644 --- a/pynetbox_query/tests/test_utils/test_read_utils/test_read_txt.py +++ b/pynetbox_query/tests/test_utils/test_read_utils/test_read_txt.py @@ -1,3 +1,5 @@ +# SPDX-License-Identifier: Apache-2.0 +# Copyright (c) 2023 United Kingdom Research and Innovation from unittest.mock import patch from pytest import raises from pynetboxquery.utils.read_utils.read_txt import ReadTXT diff --git a/pynetbox_query/tests/test_utils/test_read_utils/test_read_xlsx.py b/pynetbox_query/tests/test_utils/test_read_utils/test_read_xlsx.py index c0160519..eb4f6a26 100644 --- a/pynetbox_query/tests/test_utils/test_read_utils/test_read_xlsx.py +++ b/pynetbox_query/tests/test_utils/test_read_utils/test_read_xlsx.py @@ -1,3 +1,5 @@ +# SPDX-License-Identifier: Apache-2.0 +# Copyright (c) 2023 United Kingdom Research and Innovation from unittest.mock import patch from pytest import raises from pynetboxquery.utils.read_utils.read_xlsx import ReadXLSX