[DRE-commits] [librarian-puppet] 78/153: Adding test that reproduces the bug

Stig Sandbeck Mathisen ssm at debian.org
Wed Jun 1 20:30:45 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 747109548610bd1d02b31223404c0ff9b14bdaec
Author: Basilio Vera <basilio.vera at softonic.com>
Date:   Wed Nov 26 14:02:21 2014 +0000

    Adding test that reproduces the bug
---
 features/install/forge.feature | 28 ++++++++++++++++++++++++++++
 1 file changed, 28 insertions(+)

diff --git a/features/install/forge.feature b/features/install/forge.feature
index 805e227..198bcaa 100644
--- a/features/install/forge.feature
+++ b/features/install/forge.feature
@@ -249,3 +249,31 @@ Feature: cli/install/forge
     Then the exit status should be 0
     And the file "modules/collectd/Modulefile" should match /name *'pdxcat-collectd'/
     And the file "modules/stdlib/metadata.json" should match /"name": "puppetlabs-stdlib"/
+
+ at other-forge
+  Scenario: Installing from another forge with local reference should not try to download anything from the official forge
+    Given a file named "Puppetfile" with:
+    """
+    forge "http://127.0.0.1"
+
+    mod 'tester/tester',
+      :path => './tester-tester'
+    """
+    And a file named "tester-tester/metadata.json" with:
+    """
+    {
+        "name": "tester-tester",
+        "version": "0.1.0",
+        "author": "Basilio Vera",
+        "summary": "Just our own test",
+        "license": "MIT",
+        "dependencies": [
+            { "name": "puppetlabs/inifile" },
+            { "name": "tester/tester_dependency1" }
+        ]
+    }    
+    """
+
+    When I run `librarian-puppet install`
+    Then the exit status should be 1
+    And the output should not contain "forgeapi.puppetlabs.com"

-- 
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