From: Steven Hardy Date: Thu, 5 Jul 2012 13:42:53 +0000 (+0100) Subject: heat tests : Add missing headers to tests X-Git-Tag: 2014.1~1636 X-Git-Url: https://review.fuel-infra.org/gitweb?a=commitdiff_plain;h=80994c1f3924c3d786eaf509f8cb82b4bfac553c;p=openstack-build%2Fheat-build.git heat tests : Add missing headers to tests Most of the tests lacked the apache licence boilerplate Change-Id: I34ed0066a6f6751fc872f5286acfc7550319bc8f Signed-off-by: Steven Hardy --- diff --git a/heat/tests/fakes.py b/heat/tests/fakes.py index 248214ff..5e986408 100644 --- a/heat/tests/fakes.py +++ b/heat/tests/fakes.py @@ -1,3 +1,18 @@ +# vim: tabstop=4 shiftwidth=4 softtabstop=4 + +# 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. + + """ A fake server that "responds" to API methods with pre-canned responses. diff --git a/heat/tests/test_cfn.py b/heat/tests/test_cfn.py index 13892a27..28b8842d 100644 --- a/heat/tests/test_cfn.py +++ b/heat/tests/test_cfn.py @@ -1,3 +1,18 @@ +# vim: tabstop=4 shiftwidth=4 softtabstop=4 + +# 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. + + ### ### an unparented test -- no encapsulating class, just any fn starting with ### 'test'. diff --git a/heat/tests/test_dependencies.py b/heat/tests/test_dependencies.py index ddfd9966..3bcac0aa 100644 --- a/heat/tests/test_dependencies.py +++ b/heat/tests/test_dependencies.py @@ -1,3 +1,18 @@ +# vim: tabstop=4 shiftwidth=4 softtabstop=4 + +# 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 nose import unittest from nose.plugins.attrib import attr diff --git a/heat/tests/test_manager.py b/heat/tests/test_manager.py index 9df0880b..39382d40 100644 --- a/heat/tests/test_manager.py +++ b/heat/tests/test_manager.py @@ -1,3 +1,18 @@ +# vim: tabstop=4 shiftwidth=4 softtabstop=4 + +# 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 nose import unittest from nose.plugins.attrib import attr diff --git a/heat/tests/test_parser.py b/heat/tests/test_parser.py index 8cc517c7..3a8511cb 100644 --- a/heat/tests/test_parser.py +++ b/heat/tests/test_parser.py @@ -1,3 +1,18 @@ +# vim: tabstop=4 shiftwidth=4 softtabstop=4 + +# 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 nose import unittest from nose.plugins.attrib import attr diff --git a/heat/tests/test_resources.py b/heat/tests/test_resources.py index 45cfc6e5..c56dd191 100644 --- a/heat/tests/test_resources.py +++ b/heat/tests/test_resources.py @@ -1,3 +1,18 @@ +# vim: tabstop=4 shiftwidth=4 softtabstop=4 + +# Licensed under the Apache License, Version 2.0 (the "License"); you may +# not use this file except in compliance with the License. You may obtain +# a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT +# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the +# License for the specific language governing permissions and limitations +# under the License. + + import sys import os diff --git a/heat/tests/test_stacks.py b/heat/tests/test_stacks.py index 97d9bc50..cc3156d5 100644 --- a/heat/tests/test_stacks.py +++ b/heat/tests/test_stacks.py @@ -1,3 +1,18 @@ +# vim: tabstop=4 shiftwidth=4 softtabstop=4 + +# Licensed under the Apache License, Version 2.0 (the "License"); you may +# not use this file except in compliance with the License. You may obtain +# a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT +# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the +# License for the specific language governing permissions and limitations +# under the License. + + import sys import os diff --git a/heat/tests/test_validate.py b/heat/tests/test_validate.py index 967872d1..7dea5821 100644 --- a/heat/tests/test_validate.py +++ b/heat/tests/test_validate.py @@ -1,3 +1,18 @@ +# vim: tabstop=4 shiftwidth=4 softtabstop=4 + +# Licensed under the Apache License, Version 2.0 (the "License"); you may +# not use this file except in compliance with the License. You may obtain +# a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT +# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the +# License for the specific language governing permissions and limitations +# under the License. + + import sys import os diff --git a/heat/tests/test_waitcondition.py b/heat/tests/test_waitcondition.py index 6d846344..15f2421a 100644 --- a/heat/tests/test_waitcondition.py +++ b/heat/tests/test_waitcondition.py @@ -1,3 +1,18 @@ +# vim: tabstop=4 shiftwidth=4 softtabstop=4 + +# 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 datetime import datetime import eventlet import json diff --git a/heat/tests/test_watch.py b/heat/tests/test_watch.py index 76ebd399..f0582f2a 100644 --- a/heat/tests/test_watch.py +++ b/heat/tests/test_watch.py @@ -1,3 +1,18 @@ +# vim: tabstop=4 shiftwidth=4 softtabstop=4 + +# 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 datetime import mox import nose diff --git a/heat/tests/utils.py b/heat/tests/utils.py index 7f1c5dc7..745fbbe3 100644 --- a/heat/tests/utils.py +++ b/heat/tests/utils.py @@ -1,3 +1,18 @@ +# vim: tabstop=4 shiftwidth=4 softtabstop=4 + +# 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 unittest2