1 |
commit: cc3ab1d230c03ccb98a33830b777688c164159fa |
2 |
Author: Sven Wegener <swegener <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri May 31 10:41:57 2019 +0000 |
4 |
Commit: Sven Wegener <swegener <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri May 31 10:41:57 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=cc3ab1d2 |
7 |
|
8 |
app-admin/puppet: Fix tests patch to apply |
9 |
|
10 |
Signed-off-by: Sven Wegener <swegener <AT> gentoo.org> |
11 |
Package-Manager: Portage-2.3.66, Repoman-2.3.11 |
12 |
|
13 |
app-admin/puppet/files/puppet-fix-tests-5.5.14.patch | 18 ++++++++++++++++++ |
14 |
app-admin/puppet/puppet-5.5.14.ebuild | 2 +- |
15 |
2 files changed, 19 insertions(+), 1 deletion(-) |
16 |
|
17 |
diff --git a/app-admin/puppet/files/puppet-fix-tests-5.5.14.patch b/app-admin/puppet/files/puppet-fix-tests-5.5.14.patch |
18 |
new file mode 100644 |
19 |
index 00000000000..09ffe07da1a |
20 |
--- /dev/null |
21 |
+++ b/app-admin/puppet/files/puppet-fix-tests-5.5.14.patch |
22 |
@@ -0,0 +1,18 @@ |
23 |
+--- puppet/spec/unit/network/http/api/indirected_routes_spec.rb |
24 |
++++ puppet/spec/unit/network/http/api/indirected_routes_spec.rb |
25 |
+@@ -142,15 +142,6 @@ |
26 |
+ handler.uri2indirection("GET", uri_escaped, params) |
27 |
+ end |
28 |
+ |
29 |
+- it "should not pass through an environment to check_authorization and fail if the environment is unknown" do |
30 |
+- expect(handler).to receive(:check_authorization) do |_, _, arg| |
31 |
+- expect(arg).not_to include(:environment) |
32 |
+- end |
33 |
+- expect(lambda { handler.uri2indirection("GET", |
34 |
+- "#{master_url_prefix}/node/bar", |
35 |
+- {:environment => 'bogus'}) }).to raise_error(not_found_error) |
36 |
+- end |
37 |
+- |
38 |
+ it "should not URI unescape the indirection key as passed through to a call to check_authorization" do |
39 |
+ expect(handler).to receive(:check_authorization).with(anything, anything, hash_including(environment: be_a(Puppet::Node::Environment).and(have_attributes(name: :env)))) |
40 |
+ |
41 |
|
42 |
diff --git a/app-admin/puppet/puppet-5.5.14.ebuild b/app-admin/puppet/puppet-5.5.14.ebuild |
43 |
index 12914f0e266..75759e0d00b 100644 |
44 |
--- a/app-admin/puppet/puppet-5.5.14.ebuild |
45 |
+++ b/app-admin/puppet/puppet-5.5.14.ebuild |
46 |
@@ -66,7 +66,7 @@ all_ruby_prepare() { |
47 |
rm spec/lib/matchers/json.rb $( grep -Rl matchers/json spec) || die |
48 |
|
49 |
# can't be run within portage. |
50 |
- epatch "${FILESDIR}/puppet-fix-tests-4.7.0.patch" |
51 |
+ epatch "${FILESDIR}/puppet-fix-tests-5.5.14.patch" |
52 |
|
53 |
# fix systemd path |
54 |
epatch "${FILESDIR}/puppet-systemd.patch" |