[DRE-commits] [librarian-puppet] 57/153: Issue #257 Add a test for recursive path dependencies

Stig Sandbeck Mathisen ssm at debian.org
Wed Jun 1 20:30:41 UTC 2016


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

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

commit cb83a7404074464af8e0fb30b1dcedf21c3bd543
Author: Carlos Sanchez <csanchez at maestrodev.com>
Date:   Mon Sep 29 09:43:57 2014 +0200

    Issue #257 Add a test for recursive path dependencies
---
 features/examples/path_dependencies/Puppetfile        |  1 +
 features/examples/path_dependencies/manifests/init.pp |  1 +
 features/examples/path_dependencies/metadata.json     |  7 +++++++
 features/install/path.feature                         | 11 +++++++++++
 4 files changed, 20 insertions(+)

diff --git a/features/examples/path_dependencies/Puppetfile b/features/examples/path_dependencies/Puppetfile
new file mode 100644
index 0000000..33fafbd
--- /dev/null
+++ b/features/examples/path_dependencies/Puppetfile
@@ -0,0 +1 @@
+mod 'librarian/test', :path => '../../features/examples/test'
diff --git a/features/examples/path_dependencies/manifests/init.pp b/features/examples/path_dependencies/manifests/init.pp
new file mode 100644
index 0000000..e2be432
--- /dev/null
+++ b/features/examples/path_dependencies/manifests/init.pp
@@ -0,0 +1 @@
+class test {}
diff --git a/features/examples/path_dependencies/metadata.json b/features/examples/path_dependencies/metadata.json
new file mode 100644
index 0000000..40b7808
--- /dev/null
+++ b/features/examples/path_dependencies/metadata.json
@@ -0,0 +1,7 @@
+{
+  "name": "librarian-path_dependencies",
+  "version": "0.0.1",
+  "license": "Apache 2.0",
+  "dependencies": [],
+  "requirements": []
+}
diff --git a/features/install/path.feature b/features/install/path.feature
index f41894c..a31de6c 100644
--- a/features/install/path.feature
+++ b/features/install/path.feature
@@ -11,6 +11,17 @@ Feature: cli/install/path
     And the file "modules/with_puppetfile/Modulefile" should match /name *'librarian-with_puppetfile'/
     And the file "modules/test/Modulefile" should match /name *'librarian-test'/
 
+  Scenario: Install a module with recursive path dependencies
+    Given a file named "Puppetfile" with:
+    """
+    mod 'librarian/path_dependencies', :path => '../../features/examples/path_dependencies'
+    """
+    When I run `librarian-puppet install`
+    Then the exit status should be 0
+    And the file "modules/path_dependencies/metadata.json" should match /"name": "librarian-path_dependencies"/
+    And the file "modules/test/Modulefile" should match /name *'librarian-test'/
+    And a file named "modules/stdlib/metadata.json" should exist
+
   Scenario: Install a module with dependencies specified in a Puppetfile and Modulefile
     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