From de2638066e92538258bac344116559ce3a80b091 Mon Sep 17 00:00:00 2001 From: Colleen Murphy Date: Wed, 4 Nov 2015 13:18:09 -0800 Subject: [PATCH] Initial commit - lay down basic structure Add gemspec file, license, README, empty changelog, and empty library files. Note: the README proposes that this gem always be installed from the master branch of the git repository. This would save us the trouble of having make releases on the ruby forge and would mean that emergency fixes added to the gem would be available immediately, but also means that whenever we break it it breaks everything immediately. This proposal is open to feedback and we can always revisit it. Change-Id: I1490e3ec35235e057b3f0c13ae29b5913e7f8d49 --- CHANGELOG.md | 0 LICENSE | 13 ++++++++++ README.md | 25 +++++++++++++++++++ .../beaker_spec_helper.rb | 3 +++ .../rake_tasks.rb | 3 +++ lib/puppet-openstack_spec_helper/version.rb | 5 ++++ puppet-openstack_spec_helper.gemspec | 18 +++++++++++++ 7 files changed, 67 insertions(+) create mode 100644 CHANGELOG.md create mode 100644 LICENSE create mode 100644 README.md create mode 100644 lib/puppet-openstack_spec_helper/beaker_spec_helper.rb create mode 100644 lib/puppet-openstack_spec_helper/rake_tasks.rb create mode 100644 lib/puppet-openstack_spec_helper/version.rb create mode 100644 puppet-openstack_spec_helper.gemspec diff --git a/CHANGELOG.md b/CHANGELOG.md new file mode 100644 index 0000000..e69de29 diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..88a11a0 --- /dev/null +++ b/LICENSE @@ -0,0 +1,13 @@ +Copyright 2012 OpenStack Foundation + +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/README.md b/README.md new file mode 100644 index 0000000..49d6bb1 --- /dev/null +++ b/README.md @@ -0,0 +1,25 @@ +Puppet-OpenStack Spec Helper +============================ + +This gem provides helper utilities for running rspec tests in the +[OpenStack Puppet Modules](https://wiki.openstack.org/wiki/Puppet). + +Usage +----- + +Include this gem in your Gemfile: + +``` +gem 'puppet-openstack_spec_helper', + :git => 'https://git.openstack.org/openstack/puppet-openstack_spec_helper', + :require => false +``` + +In your Rakefile, require the rake\_tasks library: + +``` +require 'puppet-openstack_spec_helper/rake_tasks' +``` + +Instructions for using `puppet-openstack_spec_helper/beaker_spec_helper` in +`spec/spec_helper_acceptance.rb` to come soon. diff --git a/lib/puppet-openstack_spec_helper/beaker_spec_helper.rb b/lib/puppet-openstack_spec_helper/beaker_spec_helper.rb new file mode 100644 index 0000000..a6aff60 --- /dev/null +++ b/lib/puppet-openstack_spec_helper/beaker_spec_helper.rb @@ -0,0 +1,3 @@ +require 'beaker-rspec' + +# Function for spec_helper_acceptance.rb goes here diff --git a/lib/puppet-openstack_spec_helper/rake_tasks.rb b/lib/puppet-openstack_spec_helper/rake_tasks.rb new file mode 100644 index 0000000..cdc6ee1 --- /dev/null +++ b/lib/puppet-openstack_spec_helper/rake_tasks.rb @@ -0,0 +1,3 @@ +require 'rake' + +# Tasks defined here diff --git a/lib/puppet-openstack_spec_helper/version.rb b/lib/puppet-openstack_spec_helper/version.rb new file mode 100644 index 0000000..d2e93bb --- /dev/null +++ b/lib/puppet-openstack_spec_helper/version.rb @@ -0,0 +1,5 @@ +module PuppetOpenstackSpecHelper + module Version + STRING = '0.0.1' + end +end diff --git a/puppet-openstack_spec_helper.gemspec b/puppet-openstack_spec_helper.gemspec new file mode 100644 index 0000000..7d1d00c --- /dev/null +++ b/puppet-openstack_spec_helper.gemspec @@ -0,0 +1,18 @@ +lib = File.expand_path('../lib', __FILE__) +$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib) +require 'puppet-openstack_spec_helper/version' + +Gem::Specification.new do |spec| + spec.name = "puppet-openstack_spec_helper" + spec.version = PuppetOpenstackSpecHelper::Version::STRING + spec.authors = ["OpenStack Puppet Modules Team"] + spec.description = %q{Helpers for OpenStack module testing} + spec.summary = %q{Puppet-OpenStack spec helper} + spec.homepage = "" + spec.license = "Apache-2.0" + + spec.files = `git ls-files`.split($/) + spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) } + spec.test_files = spec.files.grep(%r{^(test|spec|features)/}) + spec.require_paths = ["lib"] +end