diff --git a/discover_test.py b/discover_test.py index 9b21c17..c76dec5 100644 --- a/discover_test.py +++ b/discover_test.py @@ -1,3 +1,16 @@ +# Copyright (c) 2014 Mirantis Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or +# implied. +# See the License for the specific language governing permissions and# +# limitations under the License. import argparse from flask import json from itertools import groupby diff --git a/joker/__init__.py b/joker/__init__.py index b77cc66..4fa23c4 100644 --- a/joker/__init__.py +++ b/joker/__init__.py @@ -1,3 +1,16 @@ +# Copyright (c) 2014 Mirantis Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or +# implied. +# See the License for the specific language governing permissions and# +# limitations under the License. from nodes import Node import os diff --git a/joker/nodes.py b/joker/nodes.py index 32cf0c3..0d7698d 100644 --- a/joker/nodes.py +++ b/joker/nodes.py @@ -1,3 +1,16 @@ +# Copyright (c) 2014 Mirantis Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or +# implied. +# See the License for the specific language governing permissions and# +# limitations under the License. import paramiko import os diff --git a/joker/ssh.py b/joker/ssh.py index 4e9149a..22edb8b 100644 --- a/joker/ssh.py +++ b/joker/ssh.py @@ -1,3 +1,16 @@ +# Copyright (c) 2014 Mirantis Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or +# implied. +# See the License for the specific language governing permissions and# +# limitations under the License. from os import environ #import shlex #import subprocess diff --git a/joker_test.py b/joker_test.py index 87a5a71..f5043f0 100644 --- a/joker_test.py +++ b/joker_test.py @@ -1,3 +1,16 @@ +# Copyright (c) 2014 Mirantis Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or +# implied. +# See the License for the specific language governing permissions and# +# limitations under the License. import argparse from joker import Joker import sys diff --git a/rubick/common.py b/rubick/common.py index 58dad22..f24cf08 100644 --- a/rubick/common.py +++ b/rubick/common.py @@ -1,3 +1,16 @@ +# Copyright (c) 2014 Mirantis Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or +# implied. +# See the License for the specific language governing permissions and# +# limitations under the License. import copy import os.path diff --git a/rubick/config_formats/common.py b/rubick/config_formats/common.py index 67d365f..2d4849c 100644 --- a/rubick/config_formats/common.py +++ b/rubick/config_formats/common.py @@ -1,3 +1,16 @@ +# Copyright (c) 2014 Mirantis Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or +# implied. +# See the License for the specific language governing permissions and# +# limitations under the License. from rubick.common import Issue, MarkedIssue diff --git a/rubick/config_formats/ini.py b/rubick/config_formats/ini.py index 2dccfab..6362e37 100644 --- a/rubick/config_formats/ini.py +++ b/rubick/config_formats/ini.py @@ -1,3 +1,16 @@ +# Copyright (c) 2014 Mirantis Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or +# implied. +# See the License for the specific language governing permissions and# +# limitations under the License. import re from six import StringIO diff --git a/rubick/config_formats/test_ini.py b/rubick/config_formats/test_ini.py index df5f1f7..c069e1c 100644 --- a/rubick/config_formats/test_ini.py +++ b/rubick/config_formats/test_ini.py @@ -1,3 +1,16 @@ +# Copyright (c) 2014 Mirantis Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or +# implied. +# See the License for the specific language governing permissions and# +# limitations under the License. import unittest from six import StringIO diff --git a/rubick/config_model.py b/rubick/config_model.py index fe2bbf7..9efab21 100644 --- a/rubick/config_model.py +++ b/rubick/config_model.py @@ -1,3 +1,16 @@ +# Copyright (c) 2014 Mirantis Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or +# implied. +# See the License for the specific language governing permissions and# +# limitations under the License. import string from rubick.schema import TypeValidatorRegistry, InvalidValueError diff --git a/rubick/database.py b/rubick/database.py index bd9f107..5e578eb 100644 --- a/rubick/database.py +++ b/rubick/database.py @@ -1,3 +1,16 @@ +# Copyright (c) 2014 Mirantis Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or +# implied. +# See the License for the specific language governing permissions and# +# limitations under the License. from bson.objectid import ObjectId from copy import copy import os diff --git a/rubick/discovery.py b/rubick/discovery.py index ad1e5bc..cebf99b 100644 --- a/rubick/discovery.py +++ b/rubick/discovery.py @@ -1,3 +1,16 @@ +# Copyright (c) 2014 Mirantis Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or +# implied. +# See the License for the specific language governing permissions and# +# limitations under the License. from collections import deque import logging import os.path diff --git a/rubick/exceptions.py b/rubick/exceptions.py index c72d3de..efdae5f 100644 --- a/rubick/exceptions.py +++ b/rubick/exceptions.py @@ -1,3 +1,18 @@ +# Copyright (c) 2014 Mirantis Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or +# implied. +# See the License for the specific language governing permissions and# +# limitations under the License. + + class RubickException(BaseException): pass diff --git a/rubick/inspections/keystone_authtoken.py b/rubick/inspections/keystone_authtoken.py index d1c2857..c49748a 100644 --- a/rubick/inspections/keystone_authtoken.py +++ b/rubick/inspections/keystone_authtoken.py @@ -1,3 +1,16 @@ +# Copyright (c) 2014 Mirantis Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or +# implied. +# See the License for the specific language governing permissions and# +# limitations under the License. from rubick.common import Inspection, Issue, find diff --git a/rubick/inspections/keystone_endpoints.py b/rubick/inspections/keystone_endpoints.py index e89af19..3e6a7ba 100644 --- a/rubick/inspections/keystone_endpoints.py +++ b/rubick/inspections/keystone_endpoints.py @@ -1,3 +1,16 @@ +# Copyright (c) 2014 Mirantis Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or +# implied. +# See the License for the specific language governing permissions and# +# limitations under the License. from six.moves.urllib.parse import urlparse from rubick.common import Inspection, Issue, find diff --git a/rubick/inspections/lettuce/steps.py b/rubick/inspections/lettuce/steps.py index 93a89d5..b8a4a78 100644 --- a/rubick/inspections/lettuce/steps.py +++ b/rubick/inspections/lettuce/steps.py @@ -1,3 +1,16 @@ +# Copyright (c) 2014 Mirantis Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or +# implied. +# See the License for the specific language governing permissions and# +# limitations under the License. import string from lettuce import step, world diff --git a/rubick/inspections/lettuce_runner.py b/rubick/inspections/lettuce_runner.py index 4d08f27..0d2963b 100644 --- a/rubick/inspections/lettuce_runner.py +++ b/rubick/inspections/lettuce_runner.py @@ -1,3 +1,16 @@ +# Copyright (c) 2014 Mirantis Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or +# implied. +# See the License for the specific language governing permissions and# +# limitations under the License. import os.path import lettuce diff --git a/rubick/json.py b/rubick/json.py index 6dc8204..8090207 100644 --- a/rubick/json.py +++ b/rubick/json.py @@ -1,3 +1,16 @@ +# Copyright (c) 2014 Mirantis Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or +# implied. +# See the License for the specific language governing permissions and# +# limitations under the License. __all__ = ['openstack_for_json'] diff --git a/rubick/main.py b/rubick/main.py index 90a12c8..398d2fa 100644 --- a/rubick/main.py +++ b/rubick/main.py @@ -1,3 +1,16 @@ +# Copyright (c) 2014 Mirantis Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or +# implied. +# See the License for the specific language governing permissions and# +# limitations under the License. import argparse import logging import sys diff --git a/rubick/model.py b/rubick/model.py index 7430471..47e70a6 100644 --- a/rubick/model.py +++ b/rubick/model.py @@ -1,3 +1,16 @@ +# Copyright (c) 2014 Mirantis Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or +# implied. +# See the License for the specific language governing permissions and# +# limitations under the License. from itertools import groupby import logging diff --git a/rubick/schema.py b/rubick/schema.py index 7274c62..8b75cc6 100644 --- a/rubick/schema.py +++ b/rubick/schema.py @@ -1,3 +1,16 @@ +# Copyright (c) 2014 Mirantis Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or +# implied. +# See the License for the specific language governing permissions and# +# limitations under the License. import os.path import re import yaml diff --git a/rubick/schemas/collector.py b/rubick/schemas/collector.py old mode 100755 new mode 100644 index 3999f11..449b412 --- a/rubick/schemas/collector.py +++ b/rubick/schemas/collector.py @@ -1,3 +1,16 @@ +# Copyright (c) 2014 Mirantis Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or +# implied. +# See the License for the specific language governing permissions and# +# limitations under the License. import argparse from copy import copy from lib2to3.pgen2 import driver diff --git a/rubick/schemas/generator.py b/rubick/schemas/generator.py old mode 100755 new mode 100644 index c6e5e8f..63b6c62 --- a/rubick/schemas/generator.py +++ b/rubick/schemas/generator.py @@ -1,3 +1,16 @@ +# Copyright (c) 2014 Mirantis Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or +# implied. +# See the License for the specific language governing permissions and# +# limitations under the License. import argparse from collections import OrderedDict import glob diff --git a/rubick/schemas/yaml_utils.py b/rubick/schemas/yaml_utils.py index 6a5c1eb..853970e 100644 --- a/rubick/schemas/yaml_utils.py +++ b/rubick/schemas/yaml_utils.py @@ -1,3 +1,18 @@ +# Copyright (c) 2014 Mirantis Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or +# implied. +# See the License for the specific language governing permissions and# +# limitations under the License. + + def yaml_string(s, allowSimple=False): if "'" in s: return '"%s"' % s.replace('\\', '\\\\').replace('"', '\\"') diff --git a/rubick/test_config_schema_registry.py b/rubick/test_config_schema_registry.py index d8f3758..b4012d2 100644 --- a/rubick/test_config_schema_registry.py +++ b/rubick/test_config_schema_registry.py @@ -1,3 +1,16 @@ +# Copyright (c) 2014 Mirantis Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or +# implied. +# See the License for the specific language governing permissions and# +# limitations under the License. import unittest from contextlib import contextmanager diff --git a/rubick/test_configuration.py b/rubick/test_configuration.py index 4946a31..9a2b384 100644 --- a/rubick/test_configuration.py +++ b/rubick/test_configuration.py @@ -1,3 +1,16 @@ +# Copyright (c) 2014 Mirantis Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or +# implied. +# See the License for the specific language governing permissions and# +# limitations under the License. import unittest from rubick.config_model import Configuration diff --git a/rubick/test_mark.py b/rubick/test_mark.py index 58f8932..5d69007 100644 --- a/rubick/test_mark.py +++ b/rubick/test_mark.py @@ -1,3 +1,16 @@ +# Copyright (c) 2014 Mirantis Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or +# implied. +# See the License for the specific language governing permissions and# +# limitations under the License. from rubick.common import Mark import unittest diff --git a/rubick/test_type_validators.py b/rubick/test_type_validators.py index 63044dd..d18bcd2 100644 --- a/rubick/test_type_validators.py +++ b/rubick/test_type_validators.py @@ -1,3 +1,16 @@ +# Copyright (c) 2014 Mirantis Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or +# implied. +# See the License for the specific language governing permissions and# +# limitations under the License. from rubick.common import Issue, MarkedIssue from rubick.schema import TypeValidatorRegistry diff --git a/rubick/test_version.py b/rubick/test_version.py index f7be4d2..7900f3a 100644 --- a/rubick/test_version.py +++ b/rubick/test_version.py @@ -1,3 +1,16 @@ +# Copyright (c) 2014 Mirantis Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or +# implied. +# See the License for the specific language governing permissions and# +# limitations under the License. from rubick.common import Version import unittest diff --git a/rubick/utils.py b/rubick/utils.py index 99a6ebe..ac969cd 100644 --- a/rubick/utils.py +++ b/rubick/utils.py @@ -1,3 +1,16 @@ +# Copyright (c) 2014 Mirantis Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or +# implied. +# See the License for the specific language governing permissions and# +# limitations under the License. import collections import functools diff --git a/setup.py b/setup.py index b908cbe..457ba79 100644 --- a/setup.py +++ b/setup.py @@ -1,3 +1,16 @@ +# Copyright (c) 2014 Mirantis Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or +# implied. +# See the License for the specific language governing permissions and# +# limitations under the License. import setuptools setuptools.setup()