cassette 1.1.4 → 1.1.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/cassette/authentication.rb +1 -1
- data/lib/cassette/http/request.rb +7 -0
- data/lib/cassette/version.rb +1 -1
- data/spec/cassette/authentication_spec.rb +3 -3
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0e9da653330f2b19a49cd4710abfc4ab68f38dac
|
4
|
+
data.tar.gz: 97863b30cdbfdc0455b1296bd893eef92d505f9a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e6ef4f0b1a396d3de5e01f404a156717fc0f1db0738874e1bcb5bbf74a6a67f6fd791706834730217d6c7118e13a1b63cb42b3331636d1260d386afb746d0b33
|
7
|
+
data.tar.gz: fc589953459901c2539d126cf09944caf2a7898b4a402ac83aa5894a428384d59103948eee935277193837a3d297c6c37da537792108bf47ba5a32fdcc8d9800
|
@@ -31,7 +31,7 @@ module Cassette
|
|
31
31
|
begin
|
32
32
|
logger.info("Validating #{ticket} on #{validate_path}")
|
33
33
|
|
34
|
-
response = http.
|
34
|
+
response = http.get(validate_path, ticket: ticket, service: service).body
|
35
35
|
ticket_response = Http::TicketResponse.new(response)
|
36
36
|
|
37
37
|
logger.info("Validation resut: #{response.inspect}")
|
data/lib/cassette/version.rb
CHANGED
@@ -45,13 +45,13 @@ describe Cassette::Authentication do
|
|
45
45
|
end
|
46
46
|
|
47
47
|
it 'raises a Forbidden exception on any exceptions' do
|
48
|
-
allow(http).to receive(:
|
48
|
+
allow(http).to receive(:get).with(anything, anything).and_raise(Cassette::Errors::BadRequest)
|
49
49
|
expect { subject.ticket_user('ticket') }.to raise_error(Cassette::Errors::Forbidden)
|
50
50
|
end
|
51
51
|
|
52
52
|
context 'with a failed CAS response' do
|
53
53
|
before do
|
54
|
-
allow(http).to receive(:
|
54
|
+
allow(http).to receive(:get).with(anything, anything)
|
55
55
|
.and_return(OpenStruct.new(body: fixture('cas/fail.xml')))
|
56
56
|
end
|
57
57
|
|
@@ -62,7 +62,7 @@ describe Cassette::Authentication do
|
|
62
62
|
|
63
63
|
context 'with a successful CAS response' do
|
64
64
|
before do
|
65
|
-
allow(http).to receive(:
|
65
|
+
allow(http).to receive(:get).with(anything, anything)
|
66
66
|
.and_return(OpenStruct.new(body: fixture('cas/success.xml')))
|
67
67
|
end
|
68
68
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cassette
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ricardo Hermida Ruiz
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-12-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|
@@ -291,7 +291,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
291
291
|
version: '0'
|
292
292
|
requirements: []
|
293
293
|
rubyforge_project:
|
294
|
-
rubygems_version: 2.5.
|
294
|
+
rubygems_version: 2.5.2
|
295
295
|
signing_key:
|
296
296
|
specification_version: 4
|
297
297
|
summary: Generates, validates and caches TGTs and STs
|