[DRE-commits] [librarian-puppet] 43/97: Add test for recursive module fetching via puppetfile

Stig Sandbeck Mathisen ssm at debian.org
Tue Mar 11 12:12:49 UTC 2014


This is an automated email from the git hooks/post-receive script.

ssm pushed a commit to branch master
in repository librarian-puppet.

commit 362304d3d278d455ba4db1416c9ad19c9e062583
Author: Reto Kaiser <reto at cargomedia.ch>
Date:   Thu Jan 2 15:36:42 2014 +0100

    Add test for recursive module fetching via puppetfile
---
 features/examples/with_puppetfile/Modulefile        |  5 +++++
 features/examples/with_puppetfile/Puppetfile        |  1 +
 features/examples/with_puppetfile/manifests/init.pp |  1 +
 features/install.feature                            | 11 +++++------
 4 files changed, 12 insertions(+), 6 deletions(-)

diff --git a/features/examples/with_puppetfile/Modulefile b/features/examples/with_puppetfile/Modulefile
new file mode 100644
index 0000000..bf461e5
--- /dev/null
+++ b/features/examples/with_puppetfile/Modulefile
@@ -0,0 +1,5 @@
+name 'with-puppetfile'
+version '0.0.1'
+
+author 'librarian'
+license 'Apache License, Version 2.0'
diff --git a/features/examples/with_puppetfile/Puppetfile b/features/examples/with_puppetfile/Puppetfile
new file mode 100644
index 0000000..d544c53
--- /dev/null
+++ b/features/examples/with_puppetfile/Puppetfile
@@ -0,0 +1 @@
+mod 'test', :git => 'https://github.com/rodjek/librarian-puppet.git', :path => 'features/examples/test'
diff --git a/features/examples/with_puppetfile/manifests/init.pp b/features/examples/with_puppetfile/manifests/init.pp
new file mode 100644
index 0000000..e2be432
--- /dev/null
+++ b/features/examples/with_puppetfile/manifests/init.pp
@@ -0,0 +1 @@
+class test {}
diff --git a/features/install.feature b/features/install.feature
index 03f4897..d98fbe3 100644
--- a/features/install.feature
+++ b/features/install.feature
@@ -173,17 +173,16 @@ Feature: cli/install
     Then the exit status should be 1
     And the output should contain "Unable to find module 'puppetlabs/xxxxx' on http://forge.puppetlabs.com"
 
-  @pending
+  @slow
   Scenario: Install a module with dependencies specified in a Puppetfile
-    Given PENDING a file named "Puppetfile" with:
+    Given a file named "Puppetfile" with:
     """
-    mod 'super', :git => 'git://github.com/mpalmer/puppet-super'
-    
+    mod 'with_puppetfile', :git => 'https://github.com/rodjek/librarian-puppet.git', :path => 'features/examples/with_puppetfile'
     """
     When I run `librarian-puppet install`
     Then the exit status should be 0
-    And the file "modules/super/Puppetfile" should match /mod *'sub'/
-    And the file "Puppetfile.lock" should match /remote: git:..github\.com.mpalmer.puppet-sub/
+    And the file "modules/with_puppetfile/Modulefile" should match /name *'with-puppetfile'/
+    And the file "modules/test/Modulefile" should match /name *'librarian-test'/
 
   Scenario: Install a module with conflicts
     Given a file named "Puppetfile" with:

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-ruby-extras/librarian-puppet.git



More information about the Pkg-ruby-extras-commits mailing list