From acdec1b59690bf6df24f67db255c6cb88d5e9cf1 Mon Sep 17 00:00:00 2001 From: Ade Lee Date: Tue, 20 Sep 2016 00:29:00 -0400 Subject: [PATCH] Add missing license files License check shows missing licenses. This is needed for the package review to add puppet-barbican to OPM. Change-Id: I1ecf714101ae69d0ff620a95ce29750e9403e9c3 --- .../barbican_api_paste_ini/ini_setting.rb | 17 +++++++++++++++++ .../barbican_config/openstackconfig.rb | 17 +++++++++++++++++ lib/puppet/type/barbican_api_paste_ini.rb | 17 +++++++++++++++++ lib/puppet/type/barbican_config.rb | 17 +++++++++++++++++ spec/acceptance/basic_barbican_spec.rb | 19 +++++++++++++++++++ spec/classes/barbican_api_logging_spec.rb | 19 +++++++++++++++++++ spec/classes/barbican_api_spec.rb | 19 +++++++++++++++++++ spec/classes/barbican_client_spec.rb | 19 +++++++++++++++++++ spec/classes/barbican_config_spec.rb | 19 +++++++++++++++++++ spec/classes/barbican_db_mysql_spec.rb | 19 +++++++++++++++++++ spec/classes/barbican_db_postgresql_spec.rb | 19 +++++++++++++++++++ spec/classes/barbican_db_spec.rb | 19 +++++++++++++++++++ spec/classes/barbican_keystone_auth_spec.rb | 19 +++++++++++++++++-- .../barbican_keystone_authtoken_spec.rb | 19 +++++++++++++++++++ .../barbican_keystone_notification_spec.rb | 19 +++++++++++++++++++ spec/classes/barbican_plugins_dogtag_spec.rb | 19 +++++++++++++++++++ spec/classes/barbican_plugins_kmip_spec.rb | 19 +++++++++++++++++++ .../barbican_plugins_p11_crypto_spec.rb | 19 +++++++++++++++++++ .../barbican_plugins_simple_crypto_spec.rb | 19 +++++++++++++++++++ spec/classes/barbican_policy_spec.rb | 19 +++++++++++++++++++ spec/classes/barbican_quota_spec.rb | 19 +++++++++++++++++++ spec/classes/barbican_wsgi_apache_spec.rb | 19 +++++++++++++++++++ spec/shared_examples.rb | 17 +++++++++++++++++ spec/spec_helper.rb | 17 +++++++++++++++++ spec/spec_helper_acceptance.rb | 17 +++++++++++++++++ .../ini_setting_spec.rb | 19 +++++++++++++++++++ .../barbican_config/openstackconfig.rb | 18 ++++++++++++++++++ spec/unit/type/barbican_api_paste_ini_spec.rb | 19 +++++++++++++++++++ 28 files changed, 515 insertions(+), 2 deletions(-) diff --git a/lib/puppet/provider/barbican_api_paste_ini/ini_setting.rb b/lib/puppet/provider/barbican_api_paste_ini/ini_setting.rb index 10c7faee..ab89804e 100644 --- a/lib/puppet/provider/barbican_api_paste_ini/ini_setting.rb +++ b/lib/puppet/provider/barbican_api_paste_ini/ini_setting.rb @@ -1,3 +1,20 @@ +# +# Copyright (C) 2016 Red Hat Inc. +# +# Author: Ade Lee +# +# 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. +# Puppet::Type.type(:barbican_api_paste_ini).provide( :ini_setting, :parent => Puppet::Type.type(:openstack_config).provider(:ini_setting) diff --git a/lib/puppet/provider/barbican_config/openstackconfig.rb b/lib/puppet/provider/barbican_config/openstackconfig.rb index ca3f0943..abf7712d 100644 --- a/lib/puppet/provider/barbican_config/openstackconfig.rb +++ b/lib/puppet/provider/barbican_config/openstackconfig.rb @@ -1,3 +1,20 @@ +# +# Copyright (C) 2016 Red Hat Inc. +# +# Author: Ade Lee +# +# 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. +# Puppet::Type.type(:barbican_config).provide( :openstackconfig, :parent => Puppet::Type.type(:openstack_config).provider(:ruby) diff --git a/lib/puppet/type/barbican_api_paste_ini.rb b/lib/puppet/type/barbican_api_paste_ini.rb index 0fda47c8..e25d9389 100644 --- a/lib/puppet/type/barbican_api_paste_ini.rb +++ b/lib/puppet/type/barbican_api_paste_ini.rb @@ -1,3 +1,20 @@ +# +# Copyright (C) 2016 Red Hat Inc. +# +# Author: Ade Lee +# +# 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. +# Puppet::Type.newtype(:barbican_api_paste_ini) do ensurable diff --git a/lib/puppet/type/barbican_config.rb b/lib/puppet/type/barbican_config.rb index 88653ff9..c7ceb10d 100644 --- a/lib/puppet/type/barbican_config.rb +++ b/lib/puppet/type/barbican_config.rb @@ -1,3 +1,20 @@ +# +# Copyright (C) 2016 Red Hat Inc. +# +# Author: Ade Lee +# +# 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. +# Puppet::Type.newtype(:barbican_config) do ensurable diff --git a/spec/acceptance/basic_barbican_spec.rb b/spec/acceptance/basic_barbican_spec.rb index b4a08392..cce1cdde 100644 --- a/spec/acceptance/basic_barbican_spec.rb +++ b/spec/acceptance/basic_barbican_spec.rb @@ -1,3 +1,22 @@ +# +# Copyright (C) 2016 Red Hat Inc. +# +# Author: Ade Lee +# +# 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. +# +# Acceptance test for barbican::api class +# require 'spec_helper_acceptance' describe 'barbican::api basic test class' do context 'default parameters' do diff --git a/spec/classes/barbican_api_logging_spec.rb b/spec/classes/barbican_api_logging_spec.rb index 216f3301..267b7447 100644 --- a/spec/classes/barbican_api_logging_spec.rb +++ b/spec/classes/barbican_api_logging_spec.rb @@ -1,3 +1,22 @@ +# +# Copyright (C) 2016 Red Hat Inc. +# +# Author: Ade Lee +# +# 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. +# +# Unit tests for barbican::api::logging class +# require 'spec_helper' describe 'barbican::api::logging' do diff --git a/spec/classes/barbican_api_spec.rb b/spec/classes/barbican_api_spec.rb index beec4be3..1529677a 100644 --- a/spec/classes/barbican_api_spec.rb +++ b/spec/classes/barbican_api_spec.rb @@ -1,3 +1,22 @@ +# +# Copyright (C) 2016 Red Hat Inc. +# +# Author: Ade Lee +# +# 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. +# +# Unit tests for barbican::api class +# require 'spec_helper' describe 'barbican::api' do diff --git a/spec/classes/barbican_client_spec.rb b/spec/classes/barbican_client_spec.rb index 92b8cb0c..100e9914 100644 --- a/spec/classes/barbican_client_spec.rb +++ b/spec/classes/barbican_client_spec.rb @@ -1,3 +1,22 @@ +# +# Copyright (C) 2016 Red Hat Inc. +# +# Author: Ade Lee +# +# 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. +# +# Unit tests for barbican::client class +# require 'spec_helper' describe 'barbican::client' do diff --git a/spec/classes/barbican_config_spec.rb b/spec/classes/barbican_config_spec.rb index a51550e0..edb7cdbd 100644 --- a/spec/classes/barbican_config_spec.rb +++ b/spec/classes/barbican_config_spec.rb @@ -1,3 +1,22 @@ +# +# Copyright (C) 2016 Red Hat Inc. +# +# Author: Ade Lee +# +# 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. +# +# Unit tests for barbican::config class +# require 'spec_helper' describe 'barbican::config' do diff --git a/spec/classes/barbican_db_mysql_spec.rb b/spec/classes/barbican_db_mysql_spec.rb index ebe7c9f7..126a630a 100644 --- a/spec/classes/barbican_db_mysql_spec.rb +++ b/spec/classes/barbican_db_mysql_spec.rb @@ -1,3 +1,22 @@ +# +# Copyright (C) 2016 Red Hat Inc. +# +# Author: Ade Lee +# +# 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. +# +# Unit tests for barbican::db::mysql class +# require 'spec_helper' describe 'barbican::db::mysql' do diff --git a/spec/classes/barbican_db_postgresql_spec.rb b/spec/classes/barbican_db_postgresql_spec.rb index 0727744c..95cb9be9 100644 --- a/spec/classes/barbican_db_postgresql_spec.rb +++ b/spec/classes/barbican_db_postgresql_spec.rb @@ -1,3 +1,22 @@ +# +# Copyright (C) 2016 Red Hat Inc. +# +# Author: Ade Lee +# +# 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. +# +# Unit tests for barbican::db::postgresql class +# require 'spec_helper' describe 'barbican::db::postgresql' do diff --git a/spec/classes/barbican_db_spec.rb b/spec/classes/barbican_db_spec.rb index 53ce1ea1..bdd55d32 100644 --- a/spec/classes/barbican_db_spec.rb +++ b/spec/classes/barbican_db_spec.rb @@ -1,3 +1,22 @@ +# +# Copyright (C) 2016 Red Hat Inc. +# +# Author: Ade Lee +# +# 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. +# +# Unit tests for barbican::db class +# require 'spec_helper' describe 'barbican::db' do diff --git a/spec/classes/barbican_keystone_auth_spec.rb b/spec/classes/barbican_keystone_auth_spec.rb index 55016eb6..a1ed3290 100644 --- a/spec/classes/barbican_keystone_auth_spec.rb +++ b/spec/classes/barbican_keystone_auth_spec.rb @@ -1,7 +1,22 @@ # -# Unit tests for barbican::keystone::auth +# Copyright (C) 2016 Red Hat Inc. +# +# Author: Ade Lee +# +# 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. +# +# Unit tests for barbican::keystone::auth class # - require 'spec_helper' describe 'barbican::keystone::auth' do diff --git a/spec/classes/barbican_keystone_authtoken_spec.rb b/spec/classes/barbican_keystone_authtoken_spec.rb index 520ca7aa..ae4658e5 100644 --- a/spec/classes/barbican_keystone_authtoken_spec.rb +++ b/spec/classes/barbican_keystone_authtoken_spec.rb @@ -1,3 +1,22 @@ +# +# Copyright (C) 2016 Red Hat Inc. +# +# Author: Ade Lee +# +# 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. +# +# Unit tests for barbican::keystone::authtoken class +# require 'spec_helper' describe 'barbican::keystone::authtoken' do diff --git a/spec/classes/barbican_keystone_notification_spec.rb b/spec/classes/barbican_keystone_notification_spec.rb index 5c9cf6fc..599c37b2 100644 --- a/spec/classes/barbican_keystone_notification_spec.rb +++ b/spec/classes/barbican_keystone_notification_spec.rb @@ -1,3 +1,22 @@ +# +# Copyright (C) 2016 Red Hat Inc. +# +# Author: Ade Lee +# +# 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. +# +# Unit tests for barbican::keystone::notification class +# require 'spec_helper' describe 'barbican::keystone::notification' do diff --git a/spec/classes/barbican_plugins_dogtag_spec.rb b/spec/classes/barbican_plugins_dogtag_spec.rb index 6bde23fd..0b249d1e 100644 --- a/spec/classes/barbican_plugins_dogtag_spec.rb +++ b/spec/classes/barbican_plugins_dogtag_spec.rb @@ -1,3 +1,22 @@ +# +# Copyright (C) 2016 Red Hat Inc. +# +# Author: Ade Lee +# +# 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. +# +# Unit tests for barbican::plugins::dogtag class +# require 'spec_helper' describe 'barbican::plugins::dogtag' do diff --git a/spec/classes/barbican_plugins_kmip_spec.rb b/spec/classes/barbican_plugins_kmip_spec.rb index 50b6c70d..f72e7dc9 100644 --- a/spec/classes/barbican_plugins_kmip_spec.rb +++ b/spec/classes/barbican_plugins_kmip_spec.rb @@ -1,3 +1,22 @@ +# +# Copyright (C) 2016 Red Hat Inc. +# +# Author: Ade Lee +# +# 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. +# +# Unit tests for barbican::plugins::kmip class +# require 'spec_helper' describe 'barbican::plugins::kmip' do diff --git a/spec/classes/barbican_plugins_p11_crypto_spec.rb b/spec/classes/barbican_plugins_p11_crypto_spec.rb index 1b53504b..9ec891bc 100644 --- a/spec/classes/barbican_plugins_p11_crypto_spec.rb +++ b/spec/classes/barbican_plugins_p11_crypto_spec.rb @@ -1,3 +1,22 @@ +# +# Copyright (C) 2016 Red Hat Inc. +# +# Author: Ade Lee +# +# 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. +# +# Unit tests for barbican::plugins::p11_crypto class +# require 'spec_helper' describe 'barbican::plugins::p11_crypto' do diff --git a/spec/classes/barbican_plugins_simple_crypto_spec.rb b/spec/classes/barbican_plugins_simple_crypto_spec.rb index e31b31b4..6563f3b9 100644 --- a/spec/classes/barbican_plugins_simple_crypto_spec.rb +++ b/spec/classes/barbican_plugins_simple_crypto_spec.rb @@ -1,3 +1,22 @@ +# +# Copyright (C) 2016 Red Hat Inc. +# +# Author: Ade Lee +# +# 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. +# +# Unit tests for barbican::plugins::simple_crypto class +# require 'spec_helper' describe 'barbican::plugins::simple_crypto' do diff --git a/spec/classes/barbican_policy_spec.rb b/spec/classes/barbican_policy_spec.rb index d70d10d7..c940c58d 100644 --- a/spec/classes/barbican_policy_spec.rb +++ b/spec/classes/barbican_policy_spec.rb @@ -1,3 +1,22 @@ +# +# Copyright (C) 2016 Red Hat Inc. +# +# Author: Ade Lee +# +# 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. +# +# Unit tests for barbican::policy class +# require 'spec_helper' describe 'barbican::policy' do diff --git a/spec/classes/barbican_quota_spec.rb b/spec/classes/barbican_quota_spec.rb index 0803b959..6a6a3247 100644 --- a/spec/classes/barbican_quota_spec.rb +++ b/spec/classes/barbican_quota_spec.rb @@ -1,3 +1,22 @@ +# +# Copyright (C) 2016 Red Hat Inc. +# +# Author: Ade Lee +# +# 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. +# +# Unit tests for barbican::quota class +# require 'spec_helper' describe 'barbican::quota' do diff --git a/spec/classes/barbican_wsgi_apache_spec.rb b/spec/classes/barbican_wsgi_apache_spec.rb index 9cdd3720..bef01ae1 100644 --- a/spec/classes/barbican_wsgi_apache_spec.rb +++ b/spec/classes/barbican_wsgi_apache_spec.rb @@ -1,3 +1,22 @@ +# +# Copyright (C) 2016 Red Hat Inc. +# +# Author: Ade Lee +# +# 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. +# +# Unit tests for barbican::wsgi::apache class +# require 'spec_helper' describe 'barbican::wsgi::apache' do diff --git a/spec/shared_examples.rb b/spec/shared_examples.rb index fec0eacc..6f0a8927 100644 --- a/spec/shared_examples.rb +++ b/spec/shared_examples.rb @@ -1,3 +1,20 @@ +# +# Copyright (C) 2016 Red Hat Inc. +# +# Author: Ade Lee +# +# 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. +# shared_examples_for "a Puppet::Error" do |description| it "with message matching #{description.inspect}" do expect { is_expected.to have_class_count(1) }.to raise_error(Puppet::Error, description) diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index be3811cf..0491407b 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -1,3 +1,20 @@ +# +# Copyright (C) 2016 Red Hat Inc. +# +# Author: Ade Lee +# +# 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. +# require 'puppetlabs_spec_helper/module_spec_helper' require 'shared_examples' diff --git a/spec/spec_helper_acceptance.rb b/spec/spec_helper_acceptance.rb index 9196bc99..99b536c4 100644 --- a/spec/spec_helper_acceptance.rb +++ b/spec/spec_helper_acceptance.rb @@ -1 +1,18 @@ +# +# Copyright (C) 2016 Red Hat Inc. +# +# Author: Ade Lee +# +# 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. +# require 'puppet-openstack_spec_helper/beaker_spec_helper' diff --git a/spec/unit/provider/barbican_api_paste_ini/ini_setting_spec.rb b/spec/unit/provider/barbican_api_paste_ini/ini_setting_spec.rb index 98ad0c76..bdb85c89 100644 --- a/spec/unit/provider/barbican_api_paste_ini/ini_setting_spec.rb +++ b/spec/unit/provider/barbican_api_paste_ini/ini_setting_spec.rb @@ -1,3 +1,22 @@ +# +# Copyright (C) 2016 Red Hat Inc. +# +# Author: Ade Lee +# +# 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. +# +# Unit tests for barbican_api_paste_ini provider class +# $LOAD_PATH.push( File.join( File.dirname(__FILE__), diff --git a/spec/unit/provider/barbican_config/openstackconfig.rb b/spec/unit/provider/barbican_config/openstackconfig.rb index 81b8ed9d..6be6cd27 100644 --- a/spec/unit/provider/barbican_config/openstackconfig.rb +++ b/spec/unit/provider/barbican_config/openstackconfig.rb @@ -1,4 +1,22 @@ # +# Copyright (C) 2016 Red Hat Inc. +# +# Author: Ade Lee +# +# 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. +# +# Unit tests for barbican_config provider class +# # these tests are a little concerning b/c they are hacking around the # modulepath, so these tests will not catch issues that may eventually arise # related to loading these plugins. diff --git a/spec/unit/type/barbican_api_paste_ini_spec.rb b/spec/unit/type/barbican_api_paste_ini_spec.rb index 2bc41e33..6bc5d4bc 100644 --- a/spec/unit/type/barbican_api_paste_ini_spec.rb +++ b/spec/unit/type/barbican_api_paste_ini_spec.rb @@ -1,3 +1,22 @@ +# +# Copyright (C) 2016 Red Hat Inc. +# +# Author: Ade Lee +# +# 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. +# +# Unit tests for barbican_api_paste_ini type class +# require 'puppet' require 'puppet/type/barbican_api_paste_ini'