[Pkg-puppet-devel] Bug#584480: puppet: Package test suites

Mathias Gug mathiaz at ubuntu.com
Thu Jun 3 20:28:07 UTC 2010


Package: puppet
Version: 0.25.4-2ubuntu6
Severity: normal
Tags: patch
User: ubuntu-devel at lists.ubuntu.com
Usertags: origin-ubuntu maverick ubuntu-patch


Here is a patch to create a binary package (puppet-testsuite) that ships
all the tests available from the upstream source code. The test suites
can then be run by installing the package and running the tests directly
from /usr/share/puppet-testsuite/.

This was done at the request of the Ubuntu security team in order to
improve the QA process for the puppet package (in order to move it to
main). The best option would be to run it during the package build
process - however it would require more integration. Providing the tests
as part of a binary packages is the first step towards that goal.

-- System Information:
Debian Release: squeeze/sid
  APT prefers lucid-updates
  APT policy: (500, 'lucid-updates'), (500, 'lucid-security'), (500, 'lucid')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.32-22-generic (SMP w/4 CPU cores)
Locale: LANG=en_CA.utf8, LC_CTYPE=en_CA.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages puppet depends on:
ii  adduser                  3.112ubuntu1    add and remove users and groups
ii  facter                   1.5.6-2ubuntu2  a library for retrieving facts fro
ii  libopenssl-ruby          4.2             OpenSSL interface for Ruby
ii  libruby [libxmlrpc-ruby] 4.2             Libraries necessary to run Ruby 1.
ii  libshadow-ruby1.8        1.4.1-8build1   Interface of shadow password for R
ii  libxmlrpc-ruby           4.2             transitional dummy package
ii  lsb-base                 4.0-0ubuntu8    Linux Standard Base 4.0 init scrip
ii  puppet-common            0.25.4-2ubuntu6 common files for puppet and puppet
ii  ruby1.8                  1.8.7.249-2     Interpreter of object-oriented scr

Versions of packages puppet recommends:
ii  libaugeas-ruby1.8         0.2.0-2ubuntu3 Augeas bindings for the Ruby langu
ii  rdoc                      4.2            Generate documentation from ruby s

Versions of packages puppet suggests:
ii  etckeeper                0.41ubuntu3     store /etc in git, mercurial, bzr 
pn  puppet-el                <none>          (no description available)
ii  vim-puppet               0.25.4-2ubuntu6 Vim syntax highlighting for puppet

-- no debconf information
-------------- next part --------------
=== modified file 'debian/control'
--- debian/control	2010-04-25 22:16:41 +0000
+++ debian/control	2010-06-03 19:04:24 +0000
@@ -81,3 +81,15 @@
 Conflicts: puppet (<< ${source:Version})
 Description: Emacs syntax highlighting for puppet manifests
  The puppet-el package provides syntax highlighting for puppet manifests
+
+Package: puppet-testsuite
+Architecture: all
+Depends: ${misc:Depends}, ruby1.8, puppet (= ${source:Version}), facter, lsb-base, rails (>= 1.2.3-2), rdoc, libldap-ruby1.8, mongrel, librspec-ruby, puppetmaster, git-core
+Description: centralized configuration management control for networks
+ Puppet lets you centrally manage every important aspect of your system
+ using a cross-platform specification language that manages all the
+ seperate elements normally aggregated in different files, like users,
+ cron jobs, and hosts, along with obviously discrete elements like
+ packages, services, and files.
+ .
+ This package contains the testsuite for puppet.

=== added file 'debian/puppet-testsuite.install'
--- debian/puppet-testsuite.install	1970-01-01 00:00:00 +0000
+++ debian/puppet-testsuite.install	2010-06-03 19:04:24 +0000
@@ -0,0 +1,3 @@
+test/* /usr/share/puppet-testsuite/test
+spec/* /usr/share/puppet-testsuite/spec
+Rakefile /usr/share/puppet-testsuite/

=== modified file 'spec/spec_helper.rb'
--- spec/spec_helper.rb	2009-12-12 21:42:13 +0000
+++ spec/spec_helper.rb	2010-06-03 19:04:24 +0000
@@ -18,7 +18,7 @@
 require 'puppettest'
 require 'puppettest/runnable_test'
 require 'mocha'
-gem 'rspec', '>=1.2.2'
+#gem 'rspec', '>=1.2.2'
 require 'spec/autorun'
 
 # So everyone else doesn't have to include this base constant.



More information about the Pkg-puppet-devel mailing list