Skip to content

Commit

Permalink
[test] adjust invalid key-store spec
Browse files Browse the repository at this point in the history
since we now fail early on
  • Loading branch information
kares committed Jun 1, 2022
1 parent 4f178ea commit 1a3f336
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions spec/manticore/client_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -179,10 +179,10 @@
end

context "when on and custom trust store is given with the wrong password" do
let(:client) { Manticore::Client.new :ssl => {verify: :strict, truststore: File.expand_path("../../ssl/truststore.jks", __FILE__), truststore_password: "wrongpass"} }
let(:ssl_opts) { { verify: :strict, truststore: File.expand_path("../../ssl/truststore.jks", __FILE__), truststore_password: "wrongpass" } }

it "fails to load the keystore" do
expect { client.get("https://localhost:55444/").body }.to raise_exception(Java::JavaIo::IOException)
expect { Manticore::Client.new(:ssl => ssl_opts) }.to raise_exception(Java::JavaIo::IOException)
end
end

Expand Down

0 comments on commit 1a3f336

Please sign in to comment.