Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
begin refactor of fact. scope out unit tests with valid responses. no…
…w need to refactor fact to be testable
- Loading branch information
Showing
12 changed files
with
270 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
fixtures: | ||
repositories: | ||
stdlib: git://github.com/puppetlabs/puppetlabs-stdlib.git | ||
symlinks: | ||
vmware_fact: "#{source_dir}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
name 'wolfspyre-vmware' | ||
version '0.0.1' | ||
source 'UNKNOWN' | ||
author 'wolfspyre' | ||
license 'Apache License, Version 2.0' | ||
summary 'a facter fact to convey some information about the hypervisor we're running on' | ||
description 'UNKNOWN' | ||
project_page 'https://github.com/wolfspyre/vmware_puppetfact' | ||
## Add dependencies, if any: | ||
# dependency 'username/name', '>= 1.2.0' |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
require 'rubygems' | ||
require 'puppetlabs_spec_helper/rake_tasks' |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
# == Class: vmware_fact | ||
# | ||
# This is simply a placeholder class which provides a fact which tells a node | ||
# a little information about the hypervisor on which it lives in vmware | ||
# environments | ||
# | ||
# === Authors | ||
# | ||
# Wolf Noble <wolf@wolfspyre.com> | ||
# | ||
# === Copyright | ||
# | ||
# Copyright 2011 Your name here, unless otherwise noted. | ||
# | ||
class vmware_fact { | ||
} |
Empty file.
Submodule stdlib
added at
ca7633
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
/Users/loiosh/Dropbox/Wolfspaw/Puppet/Modules/core/wolfspyre-vmware |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
require 'rspec-puppet' | ||
require 'rubygems' | ||
require 'puppetlabs_spec_helper/module_spec_helper' | ||
|
||
fixture_path = File.expand_path(File.join(__FILE__, '..', 'fixtures')) | ||
|
||
RSpec.configure do |c| | ||
c.module_path = File.join(fixture_path, 'modules') | ||
c.manifest_dir = File.join(fixture_path, 'manifests') | ||
end |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
# The baseline for module testing used by Puppet Labs is that each manifest | ||
# should have a corresponding test manifest that declares that class or defined | ||
# type. | ||
# | ||
# Tests are then run by using puppet apply --noop (to check for compilation errors | ||
# and view a log of events) or by fully applying the test in a virtual environment | ||
# (to compare the resulting system state to the desired state). | ||
# | ||
# Learn more about module testing here: http://docs.puppetlabs.com/guides/tests_smoke.html | ||
# | ||
include vmware |