From 193e2657ffcb69067f93f92e1391ead679258cf1 Mon Sep 17 00:00:00 2001 From: Nicolas Pochet Date: Thu, 9 Aug 2018 11:33:34 +0200 Subject: [PATCH] Add copyright header everywhere. Also make flake8 happy in setup.py by adding docstrings. --- setup.py | 22 +++++++++++++++++++ unit_tests/__init__.py | 13 +++++++++++ .../test_zaza_charm_lifecycle_configure.py | 14 ++++++++++++ .../test_zaza_charm_lifecycle_deploy.py | 14 ++++++++++++ .../test_zaza_charm_lifecycle_destroy.py | 14 ++++++++++++ ...t_zaza_charm_lifecycle_func_test_runner.py | 14 ++++++++++++ .../test_zaza_charm_lifecycle_prepare.py | 14 ++++++++++++ unit_tests/test_zaza_charm_lifecycle_test.py | 14 ++++++++++++ unit_tests/test_zaza_charm_lifecycle_utils.py | 14 ++++++++++++ unit_tests/test_zaza_controller.py | 14 ++++++++++++ unit_tests/test_zaza_model.py | 14 ++++++++++++ unit_tests/utilities/__init__.py | 13 +++++++++++ .../utilities/test_zaza_utilities_cert.py | 14 ++++++++++++ .../utilities/test_zaza_utilities_cli.py | 14 ++++++++++++ .../utilities/test_zaza_utilities_generic.py | 14 ++++++++++++ .../utilities/test_zaza_utilities_juju.py | 14 ++++++++++++ .../test_zaza_utilities_openstack.py | 14 ++++++++++++ unit_tests/utils.py | 2 ++ zaza/__init__.py | 14 ++++++++++++ zaza/charm_lifecycle/__init__.py | 14 ++++++++++++ zaza/charm_lifecycle/collect.py | 14 ++++++++++++ zaza/charm_lifecycle/configure.py | 14 ++++++++++++ zaza/charm_lifecycle/deploy.py | 14 ++++++++++++ zaza/charm_lifecycle/destroy.py | 14 ++++++++++++ zaza/charm_lifecycle/func_test_runner.py | 14 ++++++++++++ zaza/charm_lifecycle/prepare.py | 14 ++++++++++++ zaza/charm_lifecycle/test.py | 14 ++++++++++++ zaza/charm_lifecycle/utils.py | 14 ++++++++++++ zaza/charm_tests/__init__.py | 14 ++++++++++++ zaza/charm_tests/dragent/__init__.py | 14 ++++++++++++ zaza/charm_tests/dragent/configure.py | 15 +++++++++++++ zaza/charm_tests/dragent/test.py | 15 +++++++++++++ zaza/charm_tests/dragent/tests.py | 15 +++++++++++++ zaza/charm_tests/glance/__init__.py | 14 ++++++++++++ zaza/charm_tests/glance/setup.py | 14 ++++++++++++ zaza/charm_tests/glance/tests.py | 15 +++++++++++++ zaza/charm_tests/neutron/__init__.py | 14 ++++++++++++ zaza/charm_tests/neutron/setup.py | 15 +++++++++++++ zaza/charm_tests/nova/__init__.py | 14 ++++++++++++ zaza/charm_tests/nova/setup.py | 14 ++++++++++++ zaza/charm_tests/nova/tests.py | 15 +++++++++++++ zaza/charm_tests/nova/utils.py | 14 ++++++++++++ zaza/charm_tests/test_utils.py | 6 ++--- zaza/charm_tests/vault/__init__.py | 14 ++++++++++++ zaza/charm_tests/vault/setup.py | 14 ++++++++++++ zaza/charm_tests/vault/tests.py | 15 +++++++++++++ zaza/charm_tests/vault/utils.py | 15 +++++++++++++ zaza/configure/__init__.py | 14 ++++++++++++ zaza/configure/bgp_speaker.py | 15 +++++++++++++ zaza/configure/network.py | 14 ++++++++++++ zaza/controller.py | 14 ++++++++++++ zaza/model.py | 14 ++++++++++++ zaza/utilities/__init__.py | 14 ++++++++++++ zaza/utilities/cert.py | 1 - zaza/utilities/cli.py | 14 ++++++++++++ zaza/utilities/exceptions.py | 14 ++++++++++++ zaza/utilities/generic.py | 14 ++++++++++++ zaza/utilities/openstack.py | 14 ++++++++++++ zaza/utilities/os_versions.py | 14 ++++++++++++ 59 files changed, 804 insertions(+), 4 deletions(-) diff --git a/setup.py b/setup.py index 57ce278..070495e 100644 --- a/setup.py +++ b/setup.py @@ -1,4 +1,21 @@ # -*- coding: utf-8 -*- + +# Copyright 2018 Canonical Ltd. +# +# 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. + +"""Module used to setup the zaza framework.""" + from __future__ import print_function import os @@ -29,18 +46,23 @@ tests_require = [ class Tox(TestCommand): + """Tox class.""" + user_options = [('tox-args=', 'a', "Arguments to pass to tox")] def initialize_options(self): + """Initialize options.""" TestCommand.initialize_options(self) self.tox_args = None def finalize_options(self): + """Finalize options.""" TestCommand.finalize_options(self) self.test_args = [] self.test_suite = True def run_tests(self): + """Run the tests.""" # import here, cause outside the eggs aren't loaded import tox import shlex diff --git a/unit_tests/__init__.py b/unit_tests/__init__.py index e69de29..8203d13 100644 --- a/unit_tests/__init__.py +++ b/unit_tests/__init__.py @@ -0,0 +1,13 @@ +# Copyright 2018 Canonical Ltd. +# +# 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/unit_tests/test_zaza_charm_lifecycle_configure.py b/unit_tests/test_zaza_charm_lifecycle_configure.py index 10b3808..1c21349 100644 --- a/unit_tests/test_zaza_charm_lifecycle_configure.py +++ b/unit_tests/test_zaza_charm_lifecycle_configure.py @@ -1,3 +1,17 @@ +# Copyright 2018 Canonical Ltd. +# +# 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 mock import zaza.charm_lifecycle.configure as lc_configure diff --git a/unit_tests/test_zaza_charm_lifecycle_deploy.py b/unit_tests/test_zaza_charm_lifecycle_deploy.py index a547cad..a962b03 100644 --- a/unit_tests/test_zaza_charm_lifecycle_deploy.py +++ b/unit_tests/test_zaza_charm_lifecycle_deploy.py @@ -1,3 +1,17 @@ +# Copyright 2018 Canonical Ltd. +# +# 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 jinja2 import mock diff --git a/unit_tests/test_zaza_charm_lifecycle_destroy.py b/unit_tests/test_zaza_charm_lifecycle_destroy.py index 47c8de0..3a14b29 100644 --- a/unit_tests/test_zaza_charm_lifecycle_destroy.py +++ b/unit_tests/test_zaza_charm_lifecycle_destroy.py @@ -1,3 +1,17 @@ +# Copyright 2018 Canonical Ltd. +# +# 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 zaza.charm_lifecycle.destroy as lc_destroy import unit_tests.utils as ut_utils diff --git a/unit_tests/test_zaza_charm_lifecycle_func_test_runner.py b/unit_tests/test_zaza_charm_lifecycle_func_test_runner.py index c977010..e12f83a 100644 --- a/unit_tests/test_zaza_charm_lifecycle_func_test_runner.py +++ b/unit_tests/test_zaza_charm_lifecycle_func_test_runner.py @@ -1,3 +1,17 @@ +# Copyright 2018 Canonical Ltd. +# +# 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 mock import zaza.charm_lifecycle.func_test_runner as lc_func_test_runner diff --git a/unit_tests/test_zaza_charm_lifecycle_prepare.py b/unit_tests/test_zaza_charm_lifecycle_prepare.py index bb304e4..e124ea2 100644 --- a/unit_tests/test_zaza_charm_lifecycle_prepare.py +++ b/unit_tests/test_zaza_charm_lifecycle_prepare.py @@ -1,3 +1,17 @@ +# Copyright 2018 Canonical Ltd. +# +# 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 copy import mock diff --git a/unit_tests/test_zaza_charm_lifecycle_test.py b/unit_tests/test_zaza_charm_lifecycle_test.py index 220166c..2b84c7e 100644 --- a/unit_tests/test_zaza_charm_lifecycle_test.py +++ b/unit_tests/test_zaza_charm_lifecycle_test.py @@ -1,3 +1,17 @@ +# Copyright 2018 Canonical Ltd. +# +# 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 mock import zaza.charm_lifecycle.test as lc_test diff --git a/unit_tests/test_zaza_charm_lifecycle_utils.py b/unit_tests/test_zaza_charm_lifecycle_utils.py index abf57bf..8050a0f 100644 --- a/unit_tests/test_zaza_charm_lifecycle_utils.py +++ b/unit_tests/test_zaza_charm_lifecycle_utils.py @@ -1,3 +1,17 @@ +# Copyright 2018 Canonical Ltd. +# +# 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 mock import zaza.charm_lifecycle.utils as lc_utils diff --git a/unit_tests/test_zaza_controller.py b/unit_tests/test_zaza_controller.py index 506f1ed..871994a 100644 --- a/unit_tests/test_zaza_controller.py +++ b/unit_tests/test_zaza_controller.py @@ -1,3 +1,17 @@ +# Copyright 2018 Canonical Ltd. +# +# 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 mock import unit_tests.utils as ut_utils diff --git a/unit_tests/test_zaza_model.py b/unit_tests/test_zaza_model.py index e58ae5e..9e29e11 100644 --- a/unit_tests/test_zaza_model.py +++ b/unit_tests/test_zaza_model.py @@ -1,3 +1,17 @@ +# Copyright 2018 Canonical Ltd. +# +# 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 aiounittest import asyncio.futures import mock diff --git a/unit_tests/utilities/__init__.py b/unit_tests/utilities/__init__.py index e69de29..8203d13 100644 --- a/unit_tests/utilities/__init__.py +++ b/unit_tests/utilities/__init__.py @@ -0,0 +1,13 @@ +# Copyright 2018 Canonical Ltd. +# +# 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/unit_tests/utilities/test_zaza_utilities_cert.py b/unit_tests/utilities/test_zaza_utilities_cert.py index a1a5c6c..9043bc7 100644 --- a/unit_tests/utilities/test_zaza_utilities_cert.py +++ b/unit_tests/utilities/test_zaza_utilities_cert.py @@ -1,3 +1,17 @@ +# Copyright 2018 Canonical Ltd. +# +# 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 mock import unit_tests.utils as ut_utils diff --git a/unit_tests/utilities/test_zaza_utilities_cli.py b/unit_tests/utilities/test_zaza_utilities_cli.py index cb7f74f..221124f 100644 --- a/unit_tests/utilities/test_zaza_utilities_cli.py +++ b/unit_tests/utilities/test_zaza_utilities_cli.py @@ -1,3 +1,17 @@ +# Copyright 2018 Canonical Ltd. +# +# 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 mock import unit_tests.utils as ut_utils from zaza.utilities import cli as cli_utils diff --git a/unit_tests/utilities/test_zaza_utilities_generic.py b/unit_tests/utilities/test_zaza_utilities_generic.py index 6aa51a2..855e2d5 100644 --- a/unit_tests/utilities/test_zaza_utilities_generic.py +++ b/unit_tests/utilities/test_zaza_utilities_generic.py @@ -1,3 +1,17 @@ +# Copyright 2018 Canonical Ltd. +# +# 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 mock import unit_tests.utils as ut_utils from zaza.utilities import generic as generic_utils diff --git a/unit_tests/utilities/test_zaza_utilities_juju.py b/unit_tests/utilities/test_zaza_utilities_juju.py index 9ca0249..2b395c8 100644 --- a/unit_tests/utilities/test_zaza_utilities_juju.py +++ b/unit_tests/utilities/test_zaza_utilities_juju.py @@ -1,3 +1,17 @@ +# Copyright 2018 Canonical Ltd. +# +# 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 mock import unit_tests.utils as ut_utils from zaza.utilities import juju as juju_utils diff --git a/unit_tests/utilities/test_zaza_utilities_openstack.py b/unit_tests/utilities/test_zaza_utilities_openstack.py index 2be209c..ae1e86e 100644 --- a/unit_tests/utilities/test_zaza_utilities_openstack.py +++ b/unit_tests/utilities/test_zaza_utilities_openstack.py @@ -1,3 +1,17 @@ +# Copyright 2018 Canonical Ltd. +# +# 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 copy import io import mock diff --git a/unit_tests/utils.py b/unit_tests/utils.py index d774500..4694d0d 100644 --- a/unit_tests/utils.py +++ b/unit_tests/utils.py @@ -1,3 +1,5 @@ +# Copyright 2018 Canonical Ltd. +# # 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 diff --git a/zaza/__init__.py b/zaza/__init__.py index b113096..0bcb3f3 100644 --- a/zaza/__init__.py +++ b/zaza/__init__.py @@ -1,3 +1,17 @@ +# Copyright 2018 Canonical Ltd. +# +# 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. + """Functions to support converting async function to a sync equivalent.""" import asyncio diff --git a/zaza/charm_lifecycle/__init__.py b/zaza/charm_lifecycle/__init__.py index cdec784..58d1c15 100644 --- a/zaza/charm_lifecycle/__init__.py +++ b/zaza/charm_lifecycle/__init__.py @@ -1 +1,15 @@ +# Copyright 2018 Canonical Ltd. +# +# 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. + """Modules for running lifecycle phases.""" diff --git a/zaza/charm_lifecycle/collect.py b/zaza/charm_lifecycle/collect.py index be1bd36..ebfdba9 100644 --- a/zaza/charm_lifecycle/collect.py +++ b/zaza/charm_lifecycle/collect.py @@ -1 +1,15 @@ +# Copyright 2018 Canonical Ltd. +# +# 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. + """Run collect phase.""" diff --git a/zaza/charm_lifecycle/configure.py b/zaza/charm_lifecycle/configure.py index 05246c8..24aaf28 100644 --- a/zaza/charm_lifecycle/configure.py +++ b/zaza/charm_lifecycle/configure.py @@ -1,3 +1,17 @@ +# Copyright 2018 Canonical Ltd. +# +# 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. + """Run configuration phase.""" import asyncio import argparse diff --git a/zaza/charm_lifecycle/deploy.py b/zaza/charm_lifecycle/deploy.py index 96ae68d..21c0c98 100755 --- a/zaza/charm_lifecycle/deploy.py +++ b/zaza/charm_lifecycle/deploy.py @@ -1,3 +1,17 @@ +# Copyright 2018 Canonical Ltd. +# +# 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. + """Run deploy phase.""" import argparse import jinja2 diff --git a/zaza/charm_lifecycle/destroy.py b/zaza/charm_lifecycle/destroy.py index 290d1c4..95cd397 100644 --- a/zaza/charm_lifecycle/destroy.py +++ b/zaza/charm_lifecycle/destroy.py @@ -1,3 +1,17 @@ +# Copyright 2018 Canonical Ltd. +# +# 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. + """Run destroy phase.""" import argparse import logging diff --git a/zaza/charm_lifecycle/func_test_runner.py b/zaza/charm_lifecycle/func_test_runner.py index 8e742fc..29700c8 100644 --- a/zaza/charm_lifecycle/func_test_runner.py +++ b/zaza/charm_lifecycle/func_test_runner.py @@ -1,3 +1,17 @@ +# Copyright 2018 Canonical Ltd. +# +# 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. + """Run full test lifecycle.""" import argparse import asyncio diff --git a/zaza/charm_lifecycle/prepare.py b/zaza/charm_lifecycle/prepare.py index 96d6600..a5bd47c 100644 --- a/zaza/charm_lifecycle/prepare.py +++ b/zaza/charm_lifecycle/prepare.py @@ -1,3 +1,17 @@ +# Copyright 2018 Canonical Ltd. +# +# 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. + """Run prepare phase.""" import argparse import copy diff --git a/zaza/charm_lifecycle/test.py b/zaza/charm_lifecycle/test.py index 22bbf85..663116c 100644 --- a/zaza/charm_lifecycle/test.py +++ b/zaza/charm_lifecycle/test.py @@ -1,3 +1,17 @@ +# Copyright 2018 Canonical Ltd. +# +# 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. + """Run test phase.""" import asyncio import argparse diff --git a/zaza/charm_lifecycle/utils.py b/zaza/charm_lifecycle/utils.py index 2487d23..e3e8b28 100644 --- a/zaza/charm_lifecycle/utils.py +++ b/zaza/charm_lifecycle/utils.py @@ -1,3 +1,17 @@ +# Copyright 2018 Canonical Ltd. +# +# 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. + """Utilities to support running lifecycle phases.""" import importlib import yaml diff --git a/zaza/charm_tests/__init__.py b/zaza/charm_tests/__init__.py index b2c4daa..8ee9fe4 100644 --- a/zaza/charm_tests/__init__.py +++ b/zaza/charm_tests/__init__.py @@ -1 +1,15 @@ +# Copyright 2018 Canonical Ltd. +# +# 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. + """Collection of modules for testing a specific application.""" diff --git a/zaza/charm_tests/dragent/__init__.py b/zaza/charm_tests/dragent/__init__.py index 19b1452..bb1b677 100644 --- a/zaza/charm_tests/dragent/__init__.py +++ b/zaza/charm_tests/dragent/__init__.py @@ -1 +1,15 @@ +# Copyright 2018 Canonical Ltd. +# +# 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. + """Collection of code for setting up and testing BGP.""" diff --git a/zaza/charm_tests/dragent/configure.py b/zaza/charm_tests/dragent/configure.py index 9cef2c2..82dabb2 100644 --- a/zaza/charm_tests/dragent/configure.py +++ b/zaza/charm_tests/dragent/configure.py @@ -1,4 +1,19 @@ #!/usr/bin/env python3 + +# Copyright 2018 Canonical Ltd. +# +# 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. + """Setup for BGP deployments.""" from zaza.configure import ( diff --git a/zaza/charm_tests/dragent/test.py b/zaza/charm_tests/dragent/test.py index 1c56c34..8deab71 100644 --- a/zaza/charm_tests/dragent/test.py +++ b/zaza/charm_tests/dragent/test.py @@ -1,4 +1,19 @@ #!/usr/bin/env python3 + +# Copyright 2018 Canonical Ltd. +# +# 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. + """Run BGP tests.""" import argparse diff --git a/zaza/charm_tests/dragent/tests.py b/zaza/charm_tests/dragent/tests.py index 5e6957d..ec914c0 100644 --- a/zaza/charm_tests/dragent/tests.py +++ b/zaza/charm_tests/dragent/tests.py @@ -1,4 +1,19 @@ #!/usr/bin/env python3 + +# Copyright 2018 Canonical Ltd. +# +# 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. + """Define class of BGP tests.""" import unittest diff --git a/zaza/charm_tests/glance/__init__.py b/zaza/charm_tests/glance/__init__.py index cdb6914..8a57af6 100644 --- a/zaza/charm_tests/glance/__init__.py +++ b/zaza/charm_tests/glance/__init__.py @@ -1 +1,15 @@ +# Copyright 2018 Canonical Ltd. +# +# 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. + """Collection of code for setting up and testing glance.""" diff --git a/zaza/charm_tests/glance/setup.py b/zaza/charm_tests/glance/setup.py index 17134db..cd7f9e4 100644 --- a/zaza/charm_tests/glance/setup.py +++ b/zaza/charm_tests/glance/setup.py @@ -1,3 +1,17 @@ +# Copyright 2018 Canonical Ltd. +# +# 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. + """Code for configuring glance.""" import zaza.utilities.openstack as openstack_utils diff --git a/zaza/charm_tests/glance/tests.py b/zaza/charm_tests/glance/tests.py index 76a6a4e..b679c52 100644 --- a/zaza/charm_tests/glance/tests.py +++ b/zaza/charm_tests/glance/tests.py @@ -1,4 +1,19 @@ #!/usr/bin/env python3 + +# Copyright 2018 Canonical Ltd. +# +# 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. + """Encapsulate glance testing.""" import logging diff --git a/zaza/charm_tests/neutron/__init__.py b/zaza/charm_tests/neutron/__init__.py index 6e59ddd..cc9ae1e 100644 --- a/zaza/charm_tests/neutron/__init__.py +++ b/zaza/charm_tests/neutron/__init__.py @@ -1 +1,15 @@ +# Copyright 2018 Canonical Ltd. +# +# 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. + """Collection of code for setting up and testing neutron.""" diff --git a/zaza/charm_tests/neutron/setup.py b/zaza/charm_tests/neutron/setup.py index fc71b3b..d4fcd63 100644 --- a/zaza/charm_tests/neutron/setup.py +++ b/zaza/charm_tests/neutron/setup.py @@ -1,4 +1,19 @@ #!/usr/bin/env python3 + +# Copyright 2018 Canonical Ltd. +# +# 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. + """Setup for Neutron deployments.""" from zaza.configure import ( diff --git a/zaza/charm_tests/nova/__init__.py b/zaza/charm_tests/nova/__init__.py index d764708..2e1f0c5 100644 --- a/zaza/charm_tests/nova/__init__.py +++ b/zaza/charm_tests/nova/__init__.py @@ -1 +1,15 @@ +# Copyright 2018 Canonical Ltd. +# +# 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. + """Collection of code for setting up and testing nova.""" diff --git a/zaza/charm_tests/nova/setup.py b/zaza/charm_tests/nova/setup.py index 5d31008..7981739 100644 --- a/zaza/charm_tests/nova/setup.py +++ b/zaza/charm_tests/nova/setup.py @@ -1,3 +1,17 @@ +# Copyright 2018 Canonical Ltd. +# +# 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. + """Code for configureing nova.""" import zaza.utilities.openstack as openstack_utils diff --git a/zaza/charm_tests/nova/tests.py b/zaza/charm_tests/nova/tests.py index 5acd822..e900e16 100644 --- a/zaza/charm_tests/nova/tests.py +++ b/zaza/charm_tests/nova/tests.py @@ -1,4 +1,19 @@ #!/usr/bin/env python3 + +# Copyright 2018 Canonical Ltd. +# +# 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. + """Encapsulate nova testing.""" import logging diff --git a/zaza/charm_tests/nova/utils.py b/zaza/charm_tests/nova/utils.py index e9ccde9..974edd7 100644 --- a/zaza/charm_tests/nova/utils.py +++ b/zaza/charm_tests/nova/utils.py @@ -1,3 +1,17 @@ +# Copyright 2018 Canonical Ltd. +# +# 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. + """Data for nova tests.""" FLAVORS = { diff --git a/zaza/charm_tests/test_utils.py b/zaza/charm_tests/test_utils.py index 4f0e597..5917f63 100644 --- a/zaza/charm_tests/test_utils.py +++ b/zaza/charm_tests/test_utils.py @@ -1,16 +1,16 @@ # Copyright 2018 Canonical Ltd. # # Licensed under the Apache License, Version 2.0 (the "License"); -# You may not use this file except in compliance with 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, +# 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. +# limitations under the License. """Module containg base class for implementing charm tests.""" import contextlib import logging diff --git a/zaza/charm_tests/vault/__init__.py b/zaza/charm_tests/vault/__init__.py index c9c701e..b9623a4 100644 --- a/zaza/charm_tests/vault/__init__.py +++ b/zaza/charm_tests/vault/__init__.py @@ -1 +1,15 @@ +# Copyright 2018 Canonical Ltd. +# +# 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. + """Collection of code for setting up and testing vault.""" diff --git a/zaza/charm_tests/vault/setup.py b/zaza/charm_tests/vault/setup.py index 60c5a57..4342f12 100644 --- a/zaza/charm_tests/vault/setup.py +++ b/zaza/charm_tests/vault/setup.py @@ -1,3 +1,17 @@ +# Copyright 2018 Canonical Ltd. +# +# 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. + """Run configuration phase.""" import zaza.charm_tests.vault.utils as vault_utils diff --git a/zaza/charm_tests/vault/tests.py b/zaza/charm_tests/vault/tests.py index 5307737..d8aa724 100644 --- a/zaza/charm_tests/vault/tests.py +++ b/zaza/charm_tests/vault/tests.py @@ -1,4 +1,19 @@ #!/usr/bin/env python3 + +# Copyright 2018 Canonical Ltd. +# +# 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. + """Collection of tests for vault.""" import hvac diff --git a/zaza/charm_tests/vault/utils.py b/zaza/charm_tests/vault/utils.py index d744863..3bed8c1 100644 --- a/zaza/charm_tests/vault/utils.py +++ b/zaza/charm_tests/vault/utils.py @@ -1,4 +1,19 @@ #!/usr/bin/env python3 + +# Copyright 2018 Canonical Ltd. +# +# 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. + """Module of functions for interfacing with vault and the vault charm.""" import base64 diff --git a/zaza/configure/__init__.py b/zaza/configure/__init__.py index b36eaa0..6d6cf0d 100644 --- a/zaza/configure/__init__.py +++ b/zaza/configure/__init__.py @@ -1 +1,15 @@ +# Copyright 2018 Canonical Ltd. +# +# 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. + """Module for configuring deployed applications.""" diff --git a/zaza/configure/bgp_speaker.py b/zaza/configure/bgp_speaker.py index cb38eba..f5a54da 100755 --- a/zaza/configure/bgp_speaker.py +++ b/zaza/configure/bgp_speaker.py @@ -1,4 +1,19 @@ #!/usr/bin/env python3 + +# Copyright 2018 Canonical Ltd. +# +# 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. + """Module to setup BGP speaker configuration.""" import argparse diff --git a/zaza/configure/network.py b/zaza/configure/network.py index ce5611a..257b128 100755 --- a/zaza/configure/network.py +++ b/zaza/configure/network.py @@ -1,5 +1,19 @@ #!/usr/bin/env python3 +# Copyright 2018 Canonical Ltd. +# +# 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. + """Configure network. For these network configuration functions there are two distinct sets of diff --git a/zaza/controller.py b/zaza/controller.py index 748c97c..a0d25ab 100644 --- a/zaza/controller.py +++ b/zaza/controller.py @@ -1,3 +1,17 @@ +# Copyright 2018 Canonical Ltd. +# +# 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. + """Module for interacting with a juju controller.""" import logging diff --git a/zaza/model.py b/zaza/model.py index 40faad4..754c4dc 100644 --- a/zaza/model.py +++ b/zaza/model.py @@ -1,3 +1,17 @@ +# Copyright 2018 Canonical Ltd. +# +# 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. + """Module for interacting with a juju model. This module contains a number of functions for interacting with a Juju model diff --git a/zaza/utilities/__init__.py b/zaza/utilities/__init__.py index 56ea2bc..35b5a14 100644 --- a/zaza/utilities/__init__.py +++ b/zaza/utilities/__init__.py @@ -1 +1,15 @@ +# Copyright 2018 Canonical Ltd. +# +# 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. + """Collection of utilities to support zaza tests etc.""" diff --git a/zaza/utilities/cert.py b/zaza/utilities/cert.py index 0202f0b..3edf689 100644 --- a/zaza/utilities/cert.py +++ b/zaza/utilities/cert.py @@ -1,4 +1,3 @@ -# # Copyright 2018 Canonical Ltd. # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/zaza/utilities/cli.py b/zaza/utilities/cli.py index 1dbf7a7..57910d5 100644 --- a/zaza/utilities/cli.py +++ b/zaza/utilities/cli.py @@ -1,3 +1,17 @@ +# Copyright 2018 Canonical Ltd. +# +# 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. + """Module containing utilities for working with commandline tools.""" import logging diff --git a/zaza/utilities/exceptions.py b/zaza/utilities/exceptions.py index 14a609d..ffe364d 100644 --- a/zaza/utilities/exceptions.py +++ b/zaza/utilities/exceptions.py @@ -1,3 +1,17 @@ +# Copyright 2018 Canonical Ltd. +# +# 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. + """Module of exceptions that zaza may raise.""" diff --git a/zaza/utilities/generic.py b/zaza/utilities/generic.py index 0878358..1a32bea 100644 --- a/zaza/utilities/generic.py +++ b/zaza/utilities/generic.py @@ -1,3 +1,17 @@ +# Copyright 2018 Canonical Ltd. +# +# 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. + """Collection of functions that did not fit anywhere else.""" import logging diff --git a/zaza/utilities/openstack.py b/zaza/utilities/openstack.py index 67719aa..e797748 100644 --- a/zaza/utilities/openstack.py +++ b/zaza/utilities/openstack.py @@ -1,3 +1,17 @@ +# Copyright 2018 Canonical Ltd. +# +# 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. + """Module for interacting with OpenStack. This module contains a number of functions for interacting with Openstack. diff --git a/zaza/utilities/os_versions.py b/zaza/utilities/os_versions.py index 66f9f99..1ca5eb5 100644 --- a/zaza/utilities/os_versions.py +++ b/zaza/utilities/os_versions.py @@ -1,3 +1,17 @@ +# Copyright 2018 Canonical Ltd. +# +# 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. + """Module containing data about OpenStack versions.""" from collections import OrderedDict