diff options
author | Daniel Pittman <daniel@puppetlabs.com> | 2011-04-27 10:38:41 -0700 |
---|---|---|
committer | Daniel Pittman <daniel@puppetlabs.com> | 2011-04-27 12:10:20 -0700 |
commit | 0256d67e1a51a37f2c87ec197bdff6ef3a6b269f (patch) | |
tree | 2f9d4c54c8451dab6888bb4cfa07e0b06f73f960 /spec/lib/puppet | |
parent | e8eb290a1681baa19ef0b035af7cf17daadc6069 (diff) | |
download | puppet-0256d67e1a51a37f2c87ec197bdff6ef3a6b269f.tar.gz puppet-0256d67e1a51a37f2c87ec197bdff6ef3a6b269f.tar.xz puppet-0256d67e1a51a37f2c87ec197bdff6ef3a6b269f.zip |
(#6962) Add integration tests on Face documentation.
We now run all the faces, and their actions, as well as global help through
the wringer in this test: this way we can be confident that we have, at least,
the ability to generate the help without a user-visible failure.
We also check that we have set copyright and license terms in our own faces.
Theoretically this might fail if the end user has extra faces on LOAD_PATH,
but my hope is that we won't hit that...
Diffstat (limited to 'spec/lib/puppet')
-rwxr-xr-x | spec/lib/puppet/face/basetest.rb | 2 | ||||
-rwxr-xr-x | spec/lib/puppet/face/huzzah.rb | 2 | ||||
-rw-r--r-- | spec/lib/puppet/face/version_matching.rb | 2 |
3 files changed, 6 insertions, 0 deletions
diff --git a/spec/lib/puppet/face/basetest.rb b/spec/lib/puppet/face/basetest.rb index a98bc382f..41a4ef3f9 100755 --- a/spec/lib/puppet/face/basetest.rb +++ b/spec/lib/puppet/face/basetest.rb @@ -1,6 +1,8 @@ require 'puppet/face' Puppet::Face.define(:basetest, '0.0.1') do + copyright "Puppet Labs", 2011 + license "Apache 2 license; see COPYING" summary "This is just so tests don't fail" option "--[no-]boolean" diff --git a/spec/lib/puppet/face/huzzah.rb b/spec/lib/puppet/face/huzzah.rb index 3428c6816..2c2b7aa8d 100755 --- a/spec/lib/puppet/face/huzzah.rb +++ b/spec/lib/puppet/face/huzzah.rb @@ -1,5 +1,7 @@ require 'puppet/face' Puppet::Face.define(:huzzah, '2.0.1') do + copyright "Puppet Labs", 2011 + license "Apache 2 license; see COPYING" summary "life is a thing for celebration" action :bar do "is where beer comes from" end end diff --git a/spec/lib/puppet/face/version_matching.rb b/spec/lib/puppet/face/version_matching.rb index bfd0013f7..52bc71dbd 100644 --- a/spec/lib/puppet/face/version_matching.rb +++ b/spec/lib/puppet/face/version_matching.rb @@ -4,6 +4,8 @@ require 'puppet/face' # change this you need to ensure that is still correct. --daniel 2011-04-21 ['1.0.0', '1.0.1', '1.1.0', '1.1.1', '2.0.0'].each do |version| Puppet::Face.define(:version_matching, version) do + copyright "Puppet Labs", 2011 + license "Apache 2 license; see COPYING" summary "version matching face #{version}" script :version do version end end |