You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/app-admin/puppet/files/puppet-fix-tests-6.10.1.patch

20 lines
1.1 KiB

--- spec/unit/network/http/api/indirected_routes_spec.rb 2018-09-17 19:36:56.000000000 -0500
+++ spec/unit/network/http/api/indirected_routes_spec.rb 2018-09-19 10:52:35.841614932 -0500
@@ -158,16 +158,6 @@
handler.uri2indirection("GET", uri_escaped, params)
end
- it "when the environment is unknown should remove :environment from params passed to check_authorization and therefore fail" do
- expect(handler).to receive(:check_authorization).with(anything,
- anything,
- excluding(:environment))
- expect { handler.uri2indirection("GET",
- "#{master_url_prefix}/node/bar",
- {:environment => 'bogus'})
- }.to raise_error(not_found_error)
- end
-
it "should not URI unescape the indirection key as passed through to a call to check_authorization" do
expect(handler).to receive(:check_authorization).with(anything, anything, hash_including(environment: be_a(Puppet::Node::Environment).and(have_attributes(name: :env))))