cassette 1.2.7 → 1.3.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 88e202f0c6fa2ce8f2b487268d7d2d21d3afcad631063e7fe6e5fcc28d40579c
4
- data.tar.gz: 7d3bc2660c3003dc4bfd836be2b2e961f9a06fc33ce079f52e3c9d95a31c21c6
3
+ metadata.gz: 27cfa48a748bedca25340e26864baeed00a733ce246892a309891228ccdc132d
4
+ data.tar.gz: cff0103bee5189300805c36ff24f3d559911c82d919c4eac294101b8f78aa3e0
5
5
  SHA512:
6
- metadata.gz: 868268fc0c02766bb0a050d0da7bc58cfe2c7bd4db55d40975be4a6d008cb6f60ddb601e605e0be9d548380cdaf4643891f84a255ce857fdf040c94fdeb998f6
7
- data.tar.gz: 381911bbc4788690ae602e05c212d6ae707eda95a63f91265c233be5841a9d7dbb8f9767b510acbe577f2ed27eb2673241d0a35a9601d0f9aa5582db33700ce9
6
+ metadata.gz: 823da9e1561d8521c0aa7e17e590df027ded2eca1ea7671aff54373dbbeeb89917db759c57e5dee709c07a75ca5913cefae46e609c60b77aea23edfd9e0e6cc0
7
+ data.tar.gz: 07da8bc42bd54cde6cd190596fa33ef93157a4b99bdf97258a1d90c6f3f95a8d38394661e6c4b83dbfff83415a73d4154951800bba0eb4123c43446f69025f41
@@ -1,5 +1,3 @@
1
- # encoding: UTF-8
2
-
3
1
  module Cassette
4
2
  class Client
5
3
  def self.method_missing(name, *args)
@@ -20,12 +18,16 @@ module Cassette
20
18
 
21
19
  def tgt(usr, pwd, force = false)
22
20
  logger.info 'Requesting TGT'
23
- cache.fetch_tgt(force: force) do
24
- response = http.post(tickets_path, username: usr, password: pwd)
25
- tgt = Regexp.last_match(1) if response.headers['Location'] =~ /tickets\/(.*)/
26
- logger.info "TGT is #{tgt}"
27
- tgt
21
+ cached = true
22
+
23
+ tgt = cache.fetch_tgt(force: force) do
24
+ cached = false
25
+ request_new_tgt(usr, pwd)
28
26
  end
27
+
28
+ logger.info("TGT cache hit, value: '#{tgt}'") if cached
29
+
30
+ tgt
29
31
  end
30
32
 
31
33
  def st(tgt_param, service, force = false)
@@ -49,7 +51,7 @@ module Cassette
49
51
  attr_accessor :cache, :logger, :http, :config
50
52
 
51
53
  def st_with_retry(user, pass, service, retrying = false)
52
- st(->{ tgt(user, pass, retrying) }, service)
54
+ st(-> { tgt(user, pass, retrying) }, service)
53
55
  rescue Cassette::Errors::NotFound => e
54
56
  raise e if retrying
55
57
 
@@ -59,7 +61,14 @@ module Cassette
59
61
  end
60
62
 
61
63
  def tickets_path
62
- "/v1/tickets"
64
+ '/v1/tickets'
65
+ end
66
+
67
+ def request_new_tgt(usr, pwd)
68
+ response = http.post(tickets_path, username: usr, password: pwd)
69
+ tgt = Regexp.last_match(1) if response.headers['Location'] =~ %r{tickets/(.*)}
70
+ logger.info "TGT is #{tgt}"
71
+ tgt
63
72
  end
64
73
  end
65
74
  end
@@ -16,7 +16,7 @@ module Cassette
16
16
  def fetch_tgt(options = {}, &_block)
17
17
  options = { expires_in: 4 * 3600, max_uses: 5000, force: false }.merge(options)
18
18
  fetch('Cassette::Client.tgt', options) do
19
- logger.info 'TGT is not cached'
19
+ logger.info('TGT cache miss')
20
20
  yield
21
21
  end
22
22
  end
@@ -1,8 +1,8 @@
1
1
  module Cassette
2
2
  class Version
3
3
  MAJOR = '1'
4
- MINOR = '2'
5
- PATCH = '7'
4
+ MINOR = '3'
5
+ PATCH = '0'
6
6
 
7
7
  def self.version
8
8
  [MAJOR, MINOR, PATCH].join('.')
@@ -63,50 +63,87 @@ describe Cassette::Client do
63
63
  end
64
64
 
65
65
  context 'when tgt is not cached' do
66
- let(:tgt) { 'TGT-Something-example' }
67
- let(:force) { false }
66
+ after do
67
+ Cassette.logger = Logger.new('/dev/null')
68
+ end
68
69
 
69
- before do
70
- allow(cache).to receive(:fetch_tgt) do |opts, &_block|
71
- expect(opts[:force]).to eq false
72
- tgt
73
- end
70
+ it 'returns the tgt and logs correctly' do
71
+ Cassette::Client.cache.backend.clear
74
72
 
75
- allow(http).to receive(:post)
76
- end
73
+ tgt = 'TGT-Something-example'
74
+ response = double('response', headers: {'Location' => "tickets/#{tgt}"})
75
+ allow(http).to receive(:post).and_return(response)
76
+
77
+ logger = spy(:logger)
78
+ Cassette.logger = logger
77
79
 
78
- it { is_expected.to eq tgt }
80
+ client = Cassette::Client.new(http_client: http)
81
+
82
+ # exercise
83
+ result = client.tgt('user', 'pass')
84
+
85
+ # verify
86
+ expect(result).to eq(tgt)
87
+ expect(logger).to have_received(:info).with("TGT cache miss").ordered
88
+ expect(logger).to have_received(:info).with("TGT is #{tgt}").ordered
89
+ end
79
90
  end
80
91
 
81
92
  context 'with a cached tgt' do
82
- let(:tgt) { 'TGT-Something-example' }
93
+ after do
94
+ Cassette.logger = Logger.new('/dev/null')
95
+ end
83
96
 
84
- before do
85
- allow(cache).to receive(:fetch_tgt).with(hash_including(force: force))
86
- .and_return(tgt)
97
+ it 'returns the tgt from the cache and logs correctly' do
98
+ Cassette::Client.cache.backend.clear
87
99
 
88
- allow(http).to receive(:post)
89
- end
100
+ tgt = 'TGT-Something-example'
101
+ response = double('response', headers: {'Location' => "tickets/#{tgt}"})
102
+ allow(http).to receive(:post).and_return(response)
90
103
 
91
- shared_context 'force control' do
92
- it { is_expected.to eq tgt }
104
+ # this first call is to set the cache
105
+ client = Cassette::Client.new(http_client: http)
106
+ result = client.tgt('user', 'pass')
93
107
 
94
- it 'forwards force to the cache' do
95
- subject
96
- expect(cache).to have_received(:fetch_tgt).with(hash_including(force: force))
97
- end
98
- end
108
+ logger = spy(:logger)
109
+ Cassette.logger = logger
110
+ client = Cassette::Client.new(http_client: http)
99
111
 
100
- context 'and no force' do
101
- let(:force) { false }
112
+ # exercise
113
+ result = client.tgt('user', 'pass')
102
114
 
103
- include_context 'force control'
115
+ # verify
116
+ expect(result).to eq(tgt)
117
+ expect(logger).to have_received(:info).with("TGT cache hit, value: '#{tgt}'")
104
118
  end
105
119
 
106
- context 'and using the force' do
107
- let(:force) { true }
120
+ it 'generates another tgt when the param force is true' do
121
+ Cassette::Client.cache.backend.clear
122
+
123
+ tgt = 'TGT-Something-example'
124
+ response = double('response', headers: {'Location' => "tickets/#{tgt}"})
125
+ allow(http).to receive(:post).and_return(response)
126
+
127
+ # this first call is to set the cache
128
+ client = Cassette::Client.new(http_client: http)
129
+ result = client.tgt('user', 'pass')
130
+
131
+ tgt2 = 'TGT2-Something-example'
132
+ response = double('response', headers: {'Location' => "tickets/#{tgt2}"})
133
+ allow(http).to receive(:post).and_return(response)
134
+
135
+ logger = spy(:logger)
136
+ Cassette.logger = logger
137
+ client = Cassette::Client.new(http_client: http)
138
+
139
+ # exercise
140
+ force = true
141
+ result = client.tgt('user', 'pass', force)
108
142
 
109
- include_context 'force control'
143
+ # verify
144
+ expect(result).to eq(tgt2)
145
+ expect(logger).to have_received(:info).with("TGT cache miss").ordered
146
+ expect(logger).to have_received(:info).with("TGT is #{tgt2}").ordered
110
147
  end
111
148
  end
112
149
  end
@@ -1,159 +1,158 @@
1
1
  example_id | status | run_time |
2
2
  -------------------------------------------------------------- | ------ | --------------- |
3
- ./spec/cassette/authentication/authorities_spec.rb[1:1:1] | passed | 0.00041 seconds |
4
- ./spec/cassette/authentication/authorities_spec.rb[1:1:2] | passed | 0.00035 seconds |
5
- ./spec/cassette/authentication/authorities_spec.rb[1:1:3] | passed | 0.0003 seconds |
6
- ./spec/cassette/authentication/authorities_spec.rb[1:2:1] | passed | 0.00029 seconds |
7
- ./spec/cassette/authentication/authorities_spec.rb[1:2:2:1] | passed | 0.00059 seconds |
8
- ./spec/cassette/authentication/authorities_spec.rb[1:2:2:2] | passed | 0.00198 seconds |
9
- ./spec/cassette/authentication/authorities_spec.rb[1:3:1] | passed | 0.00018 seconds |
10
- ./spec/cassette/authentication/authorities_spec.rb[1:3:2] | passed | 0.0005 seconds |
11
- ./spec/cassette/authentication/authorities_spec.rb[1:3:3] | passed | 0.00053 seconds |
12
- ./spec/cassette/authentication/authorities_spec.rb[1:3:4] | passed | 0.00043 seconds |
13
- ./spec/cassette/authentication/authorities_spec.rb[1:4:1] | passed | 0.00036 seconds |
14
- ./spec/cassette/authentication/authorities_spec.rb[1:4:2] | passed | 0.00052 seconds |
15
- ./spec/cassette/authentication/cache_spec.rb[1:1:1] | passed | 0.00108 seconds |
16
- ./spec/cassette/authentication/cache_spec.rb[1:1:2:1] | passed | 0.00051 seconds |
17
- ./spec/cassette/authentication/cache_spec.rb[1:1:2:2] | passed | 0.00119 seconds |
18
- ./spec/cassette/authentication/cache_spec.rb[1:1:2:3:1] | passed | 0.00063 seconds |
19
- ./spec/cassette/authentication/cache_spec.rb[1:1:3] | passed | 0.00074 seconds |
20
- ./spec/cassette/authentication/filter_spec.rb[1:1:1:1:1:1] | passed | 0.00122 seconds |
21
- ./spec/cassette/authentication/filter_spec.rb[1:1:1:1:1:2] | passed | 0.00085 seconds |
22
- ./spec/cassette/authentication/filter_spec.rb[1:1:1:1:2] | passed | 0.00141 seconds |
23
- ./spec/cassette/authentication/filter_spec.rb[1:1:1:1:3] | passed | 0.00135 seconds |
24
- ./spec/cassette/authentication/filter_spec.rb[1:1:1:2:1:1] | passed | 0.00106 seconds |
25
- ./spec/cassette/authentication/filter_spec.rb[1:1:1:2:1:2] | passed | 0.00108 seconds |
26
- ./spec/cassette/authentication/filter_spec.rb[1:1:1:2:2] | passed | 0.00245 seconds |
27
- ./spec/cassette/authentication/filter_spec.rb[1:1:1:2:3] | passed | 0.00125 seconds |
28
- ./spec/cassette/authentication/filter_spec.rb[1:1:1:3:1:1:1:1] | passed | 0.00078 seconds |
29
- ./spec/cassette/authentication/filter_spec.rb[1:1:1:3:1:1:1:2] | passed | 0.00135 seconds |
30
- ./spec/cassette/authentication/filter_spec.rb[1:1:1:3:1:2:1:1] | passed | 0.00081 seconds |
31
- ./spec/cassette/authentication/filter_spec.rb[1:1:1:3:1:2:1:2] | passed | 0.001 seconds |
32
- ./spec/cassette/authentication/filter_spec.rb[1:1:1:3:1:3:1:1] | passed | 0.00164 seconds |
33
- ./spec/cassette/authentication/filter_spec.rb[1:1:1:3:1:3:1:2] | passed | 0.00078 seconds |
34
- ./spec/cassette/authentication/filter_spec.rb[1:1:1:3:2:1] | passed | 0.00099 seconds |
35
- ./spec/cassette/authentication/filter_spec.rb[1:1:1:3:3:1:1] | passed | 0.00086 seconds |
36
- ./spec/cassette/authentication/filter_spec.rb[1:1:1:3:3:2:1] | passed | 0.00099 seconds |
37
- ./spec/cassette/authentication/filter_spec.rb[1:1:1:3:3:3:1] | passed | 0.00096 seconds |
38
- ./spec/cassette/authentication/filter_spec.rb[1:1:1:3:3:4:1] | passed | 0.00109 seconds |
39
- ./spec/cassette/authentication/filter_spec.rb[1:1:1:4:1:1:1] | passed | 0.0049 seconds |
40
- ./spec/cassette/authentication/filter_spec.rb[1:1:1:4:1:2:1] | passed | 0.00461 seconds |
41
- ./spec/cassette/authentication/filter_spec.rb[1:1:1:4:1:3:1] | passed | 0.0052 seconds |
42
- ./spec/cassette/authentication/filter_spec.rb[1:2:1:1:1:1] | passed | 0.00238 seconds |
43
- ./spec/cassette/authentication/filter_spec.rb[1:2:1:1:1:2] | passed | 0.00221 seconds |
44
- ./spec/cassette/authentication/filter_spec.rb[1:2:1:1:2] | passed | 0.00258 seconds |
45
- ./spec/cassette/authentication/filter_spec.rb[1:2:1:1:3] | passed | 0.00333 seconds |
46
- ./spec/cassette/authentication/filter_spec.rb[1:2:1:2:1:1] | passed | 0.0011 seconds |
47
- ./spec/cassette/authentication/filter_spec.rb[1:2:1:2:1:2] | passed | 0.00159 seconds |
48
- ./spec/cassette/authentication/filter_spec.rb[1:2:1:2:2] | passed | 0.00241 seconds |
49
- ./spec/cassette/authentication/filter_spec.rb[1:2:1:2:3] | passed | 0.00261 seconds |
50
- ./spec/cassette/authentication/filter_spec.rb[1:2:1:3:1:1:1:1] | passed | 0.00126 seconds |
51
- ./spec/cassette/authentication/filter_spec.rb[1:2:1:3:1:1:1:2] | passed | 0.00109 seconds |
52
- ./spec/cassette/authentication/filter_spec.rb[1:2:1:3:1:2:1:1] | passed | 0.00935 seconds |
53
- ./spec/cassette/authentication/filter_spec.rb[1:2:1:3:1:2:1:2] | passed | 0.00226 seconds |
54
- ./spec/cassette/authentication/filter_spec.rb[1:2:1:3:1:3:1:1] | passed | 0.00433 seconds |
55
- ./spec/cassette/authentication/filter_spec.rb[1:2:1:3:1:3:1:2] | passed | 0.00664 seconds |
56
- ./spec/cassette/authentication/filter_spec.rb[1:2:1:3:2:1] | passed | 0.00106 seconds |
57
- ./spec/cassette/authentication/filter_spec.rb[1:2:1:3:3:1:1] | passed | 0.00104 seconds |
58
- ./spec/cassette/authentication/filter_spec.rb[1:2:1:3:3:2:1] | passed | 0.0011 seconds |
59
- ./spec/cassette/authentication/filter_spec.rb[1:2:1:3:3:3:1] | passed | 0.00094 seconds |
60
- ./spec/cassette/authentication/filter_spec.rb[1:2:1:3:3:4:1] | passed | 0.001 seconds |
61
- ./spec/cassette/authentication/filter_spec.rb[1:2:1:4:1:1:1] | passed | 0.00574 seconds |
62
- ./spec/cassette/authentication/filter_spec.rb[1:2:1:4:1:2:1] | passed | 0.00621 seconds |
63
- ./spec/cassette/authentication/filter_spec.rb[1:2:1:4:1:3:1] | passed | 0.0071 seconds |
64
- ./spec/cassette/authentication/user_factory_spec.rb[1:1:1:1:1] | passed | 0.00052 seconds |
65
- ./spec/cassette/authentication/user_factory_spec.rb[1:1:1:2:1] | passed | 0.0009 seconds |
66
- ./spec/cassette/authentication/user_factory_spec.rb[1:1:1:3:1] | passed | 0.00086 seconds |
67
- ./spec/cassette/authentication/user_factory_spec.rb[1:1:1:4:1] | passed | 0.00053 seconds |
68
- ./spec/cassette/authentication/user_factory_spec.rb[1:1:1:5] | passed | 0.00066 seconds |
69
- ./spec/cassette/authentication/user_factory_spec.rb[1:1:1:6] | passed | 0.45881 seconds |
70
- ./spec/cassette/authentication/user_spec.rb[1:1:1:1] | passed | 0.00076 seconds |
71
- ./spec/cassette/authentication/user_spec.rb[1:1:2:1] | passed | 0.00089 seconds |
72
- ./spec/cassette/authentication/user_spec.rb[1:2:1] | passed | 0.00023 seconds |
73
- ./spec/cassette/authentication/user_spec.rb[1:2:2] | passed | 0.00052 seconds |
74
- ./spec/cassette/authentication/user_spec.rb[1:2:3] | passed | 0.00067 seconds |
75
- ./spec/cassette/authentication/user_spec.rb[1:3:1:1] | passed | 0.00043 seconds |
76
- ./spec/cassette/authentication/user_spec.rb[1:3:2:1] | passed | 0.0008 seconds |
77
- ./spec/cassette/authentication_spec.rb[1:1:1:1] | passed | 0.00104 seconds |
78
- ./spec/cassette/authentication_spec.rb[1:1:1:2] | passed | 0.00082 seconds |
79
- ./spec/cassette/authentication_spec.rb[1:1:1:3] | passed | 0.00101 seconds |
80
- ./spec/cassette/authentication_spec.rb[1:1:2:1] | passed | 0.00111 seconds |
81
- ./spec/cassette/authentication_spec.rb[1:1:2:2:1] | passed | 0.01021 seconds |
82
- ./spec/cassette/authentication_spec.rb[1:1:2:3:1] | passed | 0.01165 seconds |
83
- ./spec/cassette/authentication_spec.rb[1:2:1] | passed | 0.00039 seconds |
84
- ./spec/cassette/authentication_spec.rb[1:2:2] | passed | 0.00072 seconds |
85
- ./spec/cassette/authentication_spec.rb[1:2:3] | passed | 0.00086 seconds |
86
- ./spec/cassette/authentication_spec.rb[1:2:4] | passed | 0.00105 seconds |
87
- ./spec/cassette/cache/null_store_spec.rb[1:1:1] | passed | 0.00016 seconds |
88
- ./spec/cassette/cache/null_store_spec.rb[1:1:2] | passed | 0.00018 seconds |
89
- ./spec/cassette/cache/null_store_spec.rb[1:2:1] | passed | 0.00014 seconds |
90
- ./spec/cassette/cache/null_store_spec.rb[1:3:1] | passed | 0.00013 seconds |
91
- ./spec/cassette/cache/null_store_spec.rb[1:3:2] | passed | 0.00065 seconds |
92
- ./spec/cassette/cache/null_store_spec.rb[1:3:3] | passed | 0.00055 seconds |
93
- ./spec/cassette/cache/null_store_spec.rb[1:4:1] | passed | 0.00022 seconds |
94
- ./spec/cassette/cache/null_store_spec.rb[1:4:2] | passed | 0.00055 seconds |
95
- ./spec/cassette/cache/null_store_spec.rb[1:4:3] | passed | 0.00055 seconds |
96
- ./spec/cassette/cache/null_store_spec.rb[1:4:4] | passed | 0.00056 seconds |
97
- ./spec/cassette/cache/null_store_spec.rb[1:5:1] | passed | 0.00015 seconds |
98
- ./spec/cassette/cache/null_store_spec.rb[1:5:2] | passed | 0.00043 seconds |
99
- ./spec/cassette/cache_spec.rb[1:1:1] | passed | 0.00023 seconds |
100
- ./spec/cassette/cache_spec.rb[1:2:1] | passed | 0.00119 seconds |
101
- ./spec/cassette/cache_spec.rb[1:3] | passed | 0.01158 seconds |
102
- ./spec/cassette/client/cache_spec.rb[1:1] | passed | 0.00153 seconds |
103
- ./spec/cassette/client_spec.rb[1:1:1] | passed | 0.00052 seconds |
104
- ./spec/cassette/client_spec.rb[1:1:2] | passed | 0.0005 seconds |
105
- ./spec/cassette/client_spec.rb[1:2:1:1] | passed | 0.00108 seconds |
106
- ./spec/cassette/client_spec.rb[1:2:1:2] | passed | 0.00096 seconds |
107
- ./spec/cassette/client_spec.rb[1:2:1:3] | passed | 0.00102 seconds |
108
- ./spec/cassette/client_spec.rb[1:2:2:1] | passed | 0.00076 seconds |
109
- ./spec/cassette/client_spec.rb[1:2:3:1:1] | passed | 0.00082 seconds |
110
- ./spec/cassette/client_spec.rb[1:2:3:1:2] | passed | 0.00083 seconds |
111
- ./spec/cassette/client_spec.rb[1:2:3:2:1] | passed | 0.00088 seconds |
112
- ./spec/cassette/client_spec.rb[1:2:3:2:2] | passed | 0.00084 seconds |
113
- ./spec/cassette/client_spec.rb[1:3:1:1:1] | passed | 0.00123 seconds |
114
- ./spec/cassette/client_spec.rb[1:3:1:1:2] | passed | 0.00105 seconds |
115
- ./spec/cassette/client_spec.rb[1:3:1:1:3] | passed | 0.0009 seconds |
116
- ./spec/cassette/client_spec.rb[1:3:2:1:1] | passed | 0.00135 seconds |
117
- ./spec/cassette/client_spec.rb[1:3:2:1:2] | passed | 0.00109 seconds |
118
- ./spec/cassette/client_spec.rb[1:3:2:1:3] | passed | 0.00121 seconds |
119
- ./spec/cassette/client_spec.rb[1:3:3:1:1] | passed | 0.00069 seconds |
120
- ./spec/cassette/client_spec.rb[1:3:3:1:2] | passed | 0.0007 seconds |
121
- ./spec/cassette/client_spec.rb[1:3:3:2:1] | passed | 0.0007 seconds |
122
- ./spec/cassette/client_spec.rb[1:3:3:2:2] | passed | 0.00079 seconds |
123
- ./spec/cassette/client_spec.rb[1:4:1:1] | passed | 0.0018 seconds |
124
- ./spec/cassette/client_spec.rb[1:4:1:2] | passed | 0.00161 seconds |
125
- ./spec/cassette/client_spec.rb[1:4:1:3] | passed | 0.00168 seconds |
126
- ./spec/cassette/client_spec.rb[1:4:2:1] | passed | 0.00128 seconds |
127
- ./spec/cassette/client_spec.rb[1:4:2:2] | passed | 0.00131 seconds |
128
- ./spec/cassette/client_spec.rb[1:4:3:1] | passed | 0.00085 seconds |
129
- ./spec/cassette/client_spec.rb[1:4:4:1] | passed | 0.00227 seconds |
130
- ./spec/cassette/client_spec.rb[1:4:4:2] | passed | 0.00182 seconds |
131
- ./spec/cassette/client_spec.rb[1:4:4:3] | passed | 0.00237 seconds |
132
- ./spec/cassette/client_spec.rb[1:4:4:4] | passed | 0.0022 seconds |
133
- ./spec/cassette/client_spec.rb[1:4:4:5] | passed | 0.00182 seconds |
134
- ./spec/cassette/client_spec.rb[1:4:4:6] | passed | 0.0023 seconds |
135
- ./spec/cassette/errors_spec.rb[1:1:1:1] | passed | 0.00025 seconds |
136
- ./spec/cassette/errors_spec.rb[1:2:1] | passed | 0.0006 seconds |
137
- ./spec/cassette/errors_spec.rb[1:2:2] | passed | 0.00026 seconds |
138
- ./spec/cassette/http/request_spec.rb[1:1:1] | passed | 0.00706 seconds |
139
- ./spec/cassette/http/request_spec.rb[1:1:2] | passed | 0.01144 seconds |
140
- ./spec/cassette/http/request_spec.rb[1:1:3:1] | passed | 0.00924 seconds |
141
- ./spec/cassette/http/ticket_response_spec.rb[1:1:1] | passed | 0.00656 seconds |
142
- ./spec/cassette/http/ticket_response_spec.rb[1:1:2:1] | passed | 0.00883 seconds |
143
- ./spec/cassette/http/ticket_response_spec.rb[1:2:1] | passed | 0.0093 seconds |
144
- ./spec/cassette/http/ticket_response_spec.rb[1:2:2:1] | passed | 0.00564 seconds |
145
- ./spec/cassette/http/ticket_response_spec.rb[1:3:1] | passed | 0.00688 seconds |
146
- ./spec/cassette/http/ticket_response_spec.rb[1:3:2:1] | passed | 0.00685 seconds |
147
- ./spec/cassette/rubycas/routing_constraint_spec.rb[1:1:1:1] | passed | 0.00208 seconds |
148
- ./spec/cassette/rubycas/routing_constraint_spec.rb[1:1:1:2:1] | passed | 0.00141 seconds |
149
- ./spec/cassette/rubycas/routing_constraint_spec.rb[1:1:1:3:1] | passed | 0.00186 seconds |
150
- ./spec/cassette/rubycas/routing_constraint_spec.rb[1:1:2:1] | passed | 0.00104 seconds |
151
- ./spec/cassette/rubycas/routing_constraint_spec.rb[1:1:2:2:1] | passed | 0.00093 seconds |
152
- ./spec/cassette/rubycas/routing_constraint_spec.rb[1:1:2:3:1] | passed | 0.00103 seconds |
153
- ./spec/cassette_spec.rb[1:1:1] | passed | 0.00036 seconds |
154
- ./spec/cassette_spec.rb[1:1:2] | passed | 0.00057 seconds |
155
- ./spec/cassette_spec.rb[1:2:1] | passed | 0.0002 seconds |
156
- ./spec/cassette_spec.rb[1:3:1:1] | passed | 0.00028 seconds |
157
- ./spec/cassette_spec.rb[1:3:2:1] | passed | 0.00063 seconds |
158
- ./spec/cassette_spec.rb[1:3:2:2] | passed | 0.00179 seconds |
159
- ./spec/cassette_spec.rb[1:3:2:3] | passed | 0.00048 seconds |
3
+ ./spec/cassette/authentication/authorities_spec.rb[1:1:1] | passed | 0.00011 seconds |
4
+ ./spec/cassette/authentication/authorities_spec.rb[1:1:2] | passed | 0.0001 seconds |
5
+ ./spec/cassette/authentication/authorities_spec.rb[1:1:3] | passed | 0.00011 seconds |
6
+ ./spec/cassette/authentication/authorities_spec.rb[1:2:1] | passed | 0.00008 seconds |
7
+ ./spec/cassette/authentication/authorities_spec.rb[1:2:2:1] | passed | 0.00079 seconds |
8
+ ./spec/cassette/authentication/authorities_spec.rb[1:2:2:2] | passed | 0.00016 seconds |
9
+ ./spec/cassette/authentication/authorities_spec.rb[1:3:1] | passed | 0.00011 seconds |
10
+ ./spec/cassette/authentication/authorities_spec.rb[1:3:2] | passed | 0.00011 seconds |
11
+ ./spec/cassette/authentication/authorities_spec.rb[1:3:3] | passed | 0.00012 seconds |
12
+ ./spec/cassette/authentication/authorities_spec.rb[1:3:4] | passed | 0.0001 seconds |
13
+ ./spec/cassette/authentication/authorities_spec.rb[1:4:1] | passed | 0.00023 seconds |
14
+ ./spec/cassette/authentication/authorities_spec.rb[1:4:2] | passed | 0.0002 seconds |
15
+ ./spec/cassette/authentication/cache_spec.rb[1:1:1] | passed | 0.00268 seconds |
16
+ ./spec/cassette/authentication/cache_spec.rb[1:1:2:1] | passed | 0.00031 seconds |
17
+ ./spec/cassette/authentication/cache_spec.rb[1:1:2:2] | passed | 0.00473 seconds |
18
+ ./spec/cassette/authentication/cache_spec.rb[1:1:2:3:1] | passed | 0.00031 seconds |
19
+ ./spec/cassette/authentication/cache_spec.rb[1:1:3] | passed | 0.00036 seconds |
20
+ ./spec/cassette/authentication/filter_spec.rb[1:1:1:1:1:1] | passed | 0.00215 seconds |
21
+ ./spec/cassette/authentication/filter_spec.rb[1:1:1:1:1:2] | passed | 0.00146 seconds |
22
+ ./spec/cassette/authentication/filter_spec.rb[1:1:1:1:2] | passed | 0.00243 seconds |
23
+ ./spec/cassette/authentication/filter_spec.rb[1:1:1:1:3] | passed | 0.00198 seconds |
24
+ ./spec/cassette/authentication/filter_spec.rb[1:1:1:2:1:1] | passed | 0.00058 seconds |
25
+ ./spec/cassette/authentication/filter_spec.rb[1:1:1:2:1:2] | passed | 0.00052 seconds |
26
+ ./spec/cassette/authentication/filter_spec.rb[1:1:1:2:2] | passed | 0.00058 seconds |
27
+ ./spec/cassette/authentication/filter_spec.rb[1:1:1:2:3] | passed | 0.00062 seconds |
28
+ ./spec/cassette/authentication/filter_spec.rb[1:1:1:3:1:1:1:1] | passed | 0.00438 seconds |
29
+ ./spec/cassette/authentication/filter_spec.rb[1:1:1:3:1:1:1:2] | passed | 0.00522 seconds |
30
+ ./spec/cassette/authentication/filter_spec.rb[1:1:1:3:1:2:1:1] | passed | 0.00248 seconds |
31
+ ./spec/cassette/authentication/filter_spec.rb[1:1:1:3:1:2:1:2] | passed | 0.00375 seconds |
32
+ ./spec/cassette/authentication/filter_spec.rb[1:1:1:3:1:3:1:1] | passed | 0.00559 seconds |
33
+ ./spec/cassette/authentication/filter_spec.rb[1:1:1:3:1:3:1:2] | passed | 0.00254 seconds |
34
+ ./spec/cassette/authentication/filter_spec.rb[1:1:1:3:2:1] | passed | 0.00162 seconds |
35
+ ./spec/cassette/authentication/filter_spec.rb[1:1:1:3:3:1:1] | passed | 0.00169 seconds |
36
+ ./spec/cassette/authentication/filter_spec.rb[1:1:1:3:3:2:1] | passed | 0.0016 seconds |
37
+ ./spec/cassette/authentication/filter_spec.rb[1:1:1:3:3:3:1] | passed | 0.00139 seconds |
38
+ ./spec/cassette/authentication/filter_spec.rb[1:1:1:3:3:4:1] | passed | 0.0026 seconds |
39
+ ./spec/cassette/authentication/filter_spec.rb[1:1:1:4:1:1:1] | passed | 0.00223 seconds |
40
+ ./spec/cassette/authentication/filter_spec.rb[1:1:1:4:1:2:1] | passed | 0.00194 seconds |
41
+ ./spec/cassette/authentication/filter_spec.rb[1:1:1:4:1:3:1] | passed | 0.00188 seconds |
42
+ ./spec/cassette/authentication/filter_spec.rb[1:2:1:1:1:1] | passed | 0.0006 seconds |
43
+ ./spec/cassette/authentication/filter_spec.rb[1:2:1:1:1:2] | passed | 0.00052 seconds |
44
+ ./spec/cassette/authentication/filter_spec.rb[1:2:1:1:2] | passed | 0.00065 seconds |
45
+ ./spec/cassette/authentication/filter_spec.rb[1:2:1:1:3] | passed | 0.00077 seconds |
46
+ ./spec/cassette/authentication/filter_spec.rb[1:2:1:2:1:1] | passed | 0.00061 seconds |
47
+ ./spec/cassette/authentication/filter_spec.rb[1:2:1:2:1:2] | passed | 0.00051 seconds |
48
+ ./spec/cassette/authentication/filter_spec.rb[1:2:1:2:2] | passed | 0.00061 seconds |
49
+ ./spec/cassette/authentication/filter_spec.rb[1:2:1:2:3] | passed | 0.00063 seconds |
50
+ ./spec/cassette/authentication/filter_spec.rb[1:2:1:3:1:1:1:1] | passed | 0.00221 seconds |
51
+ ./spec/cassette/authentication/filter_spec.rb[1:2:1:3:1:1:1:2] | passed | 0.00082 seconds |
52
+ ./spec/cassette/authentication/filter_spec.rb[1:2:1:3:1:2:1:1] | passed | 0.00058 seconds |
53
+ ./spec/cassette/authentication/filter_spec.rb[1:2:1:3:1:2:1:2] | passed | 0.00061 seconds |
54
+ ./spec/cassette/authentication/filter_spec.rb[1:2:1:3:1:3:1:1] | passed | 0.00117 seconds |
55
+ ./spec/cassette/authentication/filter_spec.rb[1:2:1:3:1:3:1:2] | passed | 0.00126 seconds |
56
+ ./spec/cassette/authentication/filter_spec.rb[1:2:1:3:2:1] | passed | 0.00145 seconds |
57
+ ./spec/cassette/authentication/filter_spec.rb[1:2:1:3:3:1:1] | passed | 0.00126 seconds |
58
+ ./spec/cassette/authentication/filter_spec.rb[1:2:1:3:3:2:1] | passed | 0.00053 seconds |
59
+ ./spec/cassette/authentication/filter_spec.rb[1:2:1:3:3:3:1] | passed | 0.00048 seconds |
60
+ ./spec/cassette/authentication/filter_spec.rb[1:2:1:3:3:4:1] | passed | 0.00052 seconds |
61
+ ./spec/cassette/authentication/filter_spec.rb[1:2:1:4:1:1:1] | passed | 0.00072 seconds |
62
+ ./spec/cassette/authentication/filter_spec.rb[1:2:1:4:1:2:1] | passed | 0.00064 seconds |
63
+ ./spec/cassette/authentication/filter_spec.rb[1:2:1:4:1:3:1] | passed | 0.00079 seconds |
64
+ ./spec/cassette/authentication/user_factory_spec.rb[1:1:1:1:1] | passed | 0.0003 seconds |
65
+ ./spec/cassette/authentication/user_factory_spec.rb[1:1:1:2:1] | passed | 0.0003 seconds |
66
+ ./spec/cassette/authentication/user_factory_spec.rb[1:1:1:3:1] | passed | 0.00034 seconds |
67
+ ./spec/cassette/authentication/user_factory_spec.rb[1:1:1:4:1] | passed | 0.00027 seconds |
68
+ ./spec/cassette/authentication/user_factory_spec.rb[1:1:1:5] | passed | 0.26732 seconds |
69
+ ./spec/cassette/authentication/user_factory_spec.rb[1:1:1:6] | passed | 0.00034 seconds |
70
+ ./spec/cassette/authentication/user_spec.rb[1:1:1:1] | passed | 0.00031 seconds |
71
+ ./spec/cassette/authentication/user_spec.rb[1:1:2:1] | passed | 0.00041 seconds |
72
+ ./spec/cassette/authentication/user_spec.rb[1:2:1] | passed | 0.0001 seconds |
73
+ ./spec/cassette/authentication/user_spec.rb[1:2:2] | passed | 0.00012 seconds |
74
+ ./spec/cassette/authentication/user_spec.rb[1:2:3] | passed | 0.00013 seconds |
75
+ ./spec/cassette/authentication/user_spec.rb[1:3:1:1] | passed | 0.0002 seconds |
76
+ ./spec/cassette/authentication/user_spec.rb[1:3:2:1] | passed | 0.00018 seconds |
77
+ ./spec/cassette/authentication_spec.rb[1:1:1:1] | passed | 0.00043 seconds |
78
+ ./spec/cassette/authentication_spec.rb[1:1:1:2] | passed | 0.00035 seconds |
79
+ ./spec/cassette/authentication_spec.rb[1:1:1:3] | passed | 0.00038 seconds |
80
+ ./spec/cassette/authentication_spec.rb[1:1:2:1] | passed | 0.0068 seconds |
81
+ ./spec/cassette/authentication_spec.rb[1:1:2:2:1] | passed | 0.00173 seconds |
82
+ ./spec/cassette/authentication_spec.rb[1:1:2:3:1] | passed | 0.00293 seconds |
83
+ ./spec/cassette/authentication_spec.rb[1:2:1] | passed | 0.00024 seconds |
84
+ ./spec/cassette/authentication_spec.rb[1:2:2] | passed | 0.00024 seconds |
85
+ ./spec/cassette/authentication_spec.rb[1:2:3] | passed | 0.00037 seconds |
86
+ ./spec/cassette/authentication_spec.rb[1:2:4] | passed | 0.00041 seconds |
87
+ ./spec/cassette/cache/null_store_spec.rb[1:1:1] | passed | 0.00013 seconds |
88
+ ./spec/cassette/cache/null_store_spec.rb[1:1:2] | passed | 0.00159 seconds |
89
+ ./spec/cassette/cache/null_store_spec.rb[1:2:1] | passed | 0.00007 seconds |
90
+ ./spec/cassette/cache/null_store_spec.rb[1:3:1] | passed | 0.00008 seconds |
91
+ ./spec/cassette/cache/null_store_spec.rb[1:3:2] | passed | 0.00008 seconds |
92
+ ./spec/cassette/cache/null_store_spec.rb[1:3:3] | passed | 0.0001 seconds |
93
+ ./spec/cassette/cache/null_store_spec.rb[1:4:1] | passed | 0.00009 seconds |
94
+ ./spec/cassette/cache/null_store_spec.rb[1:4:2] | passed | 0.00008 seconds |
95
+ ./spec/cassette/cache/null_store_spec.rb[1:4:3] | passed | 0.00012 seconds |
96
+ ./spec/cassette/cache/null_store_spec.rb[1:4:4] | passed | 0.0001 seconds |
97
+ ./spec/cassette/cache/null_store_spec.rb[1:5:1] | passed | 0.00008 seconds |
98
+ ./spec/cassette/cache/null_store_spec.rb[1:5:2] | passed | 0.00008 seconds |
99
+ ./spec/cassette/cache_spec.rb[1:1:1] | passed | 0.00042 seconds |
100
+ ./spec/cassette/cache_spec.rb[1:2:1] | passed | 0.00012 seconds |
101
+ ./spec/cassette/cache_spec.rb[1:3] | passed | 0.00062 seconds |
102
+ ./spec/cassette/client/cache_spec.rb[1:1] | passed | 0.00017 seconds |
103
+ ./spec/cassette/client/cache_spec.rb[1:2:1] | passed | 0.00012 seconds |
104
+ ./spec/cassette/client_spec.rb[1:1:1] | passed | 0.00026 seconds |
105
+ ./spec/cassette/client_spec.rb[1:1:2] | passed | 0.00028 seconds |
106
+ ./spec/cassette/client_spec.rb[1:2:1:1] | passed | 0.00059 seconds |
107
+ ./spec/cassette/client_spec.rb[1:2:1:2] | passed | 0.0005 seconds |
108
+ ./spec/cassette/client_spec.rb[1:2:1:3] | passed | 0.00047 seconds |
109
+ ./spec/cassette/client_spec.rb[1:2:2:1] | passed | 0.00065 seconds |
110
+ ./spec/cassette/client_spec.rb[1:2:3:1] | passed | 0.00064 seconds |
111
+ ./spec/cassette/client_spec.rb[1:2:3:2] | passed | 0.001 seconds |
112
+ ./spec/cassette/client_spec.rb[1:3:1:1:1] | passed | 0.00088 seconds |
113
+ ./spec/cassette/client_spec.rb[1:3:1:1:2] | passed | 0.00078 seconds |
114
+ ./spec/cassette/client_spec.rb[1:3:1:1:3] | passed | 0.00119 seconds |
115
+ ./spec/cassette/client_spec.rb[1:3:2:1:1] | passed | 0.00056 seconds |
116
+ ./spec/cassette/client_spec.rb[1:3:2:1:2] | passed | 0.00047 seconds |
117
+ ./spec/cassette/client_spec.rb[1:3:2:1:3] | passed | 0.00056 seconds |
118
+ ./spec/cassette/client_spec.rb[1:3:3:1:1] | passed | 0.00038 seconds |
119
+ ./spec/cassette/client_spec.rb[1:3:3:1:2] | passed | 0.00042 seconds |
120
+ ./spec/cassette/client_spec.rb[1:3:3:2:1] | passed | 0.00036 seconds |
121
+ ./spec/cassette/client_spec.rb[1:3:3:2:2] | passed | 0.00039 seconds |
122
+ ./spec/cassette/client_spec.rb[1:4:1:1] | passed | 0.00087 seconds |
123
+ ./spec/cassette/client_spec.rb[1:4:1:2] | passed | 0.00121 seconds |
124
+ ./spec/cassette/client_spec.rb[1:4:1:3] | passed | 0.00077 seconds |
125
+ ./spec/cassette/client_spec.rb[1:4:2:1] | passed | 0.00067 seconds |
126
+ ./spec/cassette/client_spec.rb[1:4:2:2] | passed | 0.00075 seconds |
127
+ ./spec/cassette/client_spec.rb[1:4:3:1] | passed | 0.00045 seconds |
128
+ ./spec/cassette/client_spec.rb[1:4:4:1] | passed | 0.00105 seconds |
129
+ ./spec/cassette/client_spec.rb[1:4:4:2] | passed | 0.00111 seconds |
130
+ ./spec/cassette/client_spec.rb[1:4:4:3] | passed | 0.00117 seconds |
131
+ ./spec/cassette/client_spec.rb[1:4:4:4] | passed | 0.00104 seconds |
132
+ ./spec/cassette/client_spec.rb[1:4:4:5] | passed | 0.00126 seconds |
133
+ ./spec/cassette/client_spec.rb[1:4:4:6] | passed | 0.00106 seconds |
134
+ ./spec/cassette/errors_spec.rb[1:1:1:1] | passed | 0.0001 seconds |
135
+ ./spec/cassette/errors_spec.rb[1:2:1] | passed | 0.00017 seconds |
136
+ ./spec/cassette/errors_spec.rb[1:2:2] | passed | 0.00012 seconds |
137
+ ./spec/cassette/http/request_spec.rb[1:1:1] | passed | 0.0019 seconds |
138
+ ./spec/cassette/http/request_spec.rb[1:1:2] | passed | 0.00483 seconds |
139
+ ./spec/cassette/http/request_spec.rb[1:1:3:1] | passed | 0.00115 seconds |
140
+ ./spec/cassette/http/ticket_response_spec.rb[1:1:1] | passed | 0.00155 seconds |
141
+ ./spec/cassette/http/ticket_response_spec.rb[1:1:2:1] | passed | 0.00099 seconds |
142
+ ./spec/cassette/http/ticket_response_spec.rb[1:2:1] | passed | 0.00144 seconds |
143
+ ./spec/cassette/http/ticket_response_spec.rb[1:2:2:1] | passed | 0.0014 seconds |
144
+ ./spec/cassette/http/ticket_response_spec.rb[1:3:1] | passed | 0.00182 seconds |
145
+ ./spec/cassette/http/ticket_response_spec.rb[1:3:2:1] | passed | 0.00106 seconds |
146
+ ./spec/cassette/rubycas/routing_constraint_spec.rb[1:1:1:1] | passed | 0.00043 seconds |
147
+ ./spec/cassette/rubycas/routing_constraint_spec.rb[1:1:1:2:1] | passed | 0.00042 seconds |
148
+ ./spec/cassette/rubycas/routing_constraint_spec.rb[1:1:1:3:1] | passed | 0.00043 seconds |
149
+ ./spec/cassette/rubycas/routing_constraint_spec.rb[1:1:2:1] | passed | 0.0006 seconds |
150
+ ./spec/cassette/rubycas/routing_constraint_spec.rb[1:1:2:2:1] | passed | 0.00044 seconds |
151
+ ./spec/cassette/rubycas/routing_constraint_spec.rb[1:1:2:3:1] | passed | 0.00044 seconds |
152
+ ./spec/cassette_spec.rb[1:1:1] | passed | 0.00012 seconds |
153
+ ./spec/cassette_spec.rb[1:1:2] | passed | 0.00035 seconds |
154
+ ./spec/cassette_spec.rb[1:2:1] | passed | 0.0001 seconds |
155
+ ./spec/cassette_spec.rb[1:3:1:1] | passed | 0.0001 seconds |
156
+ ./spec/cassette_spec.rb[1:3:2:1] | passed | 0.00029 seconds |
157
+ ./spec/cassette_spec.rb[1:3:2:2] | passed | 0.00015 seconds |
158
+ ./spec/cassette_spec.rb[1:3:2:3] | passed | 0.00042 seconds |
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.2.7
4
+ version: 1.3.0
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: 2019-07-01 00:00:00.000000000 Z
11
+ date: 2020-03-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday