mockserver-client 9.1.0 → 9.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +102 -1
- data/lib/mockserver/client.rb +131 -13
- data/lib/mockserver/forward_chain_expectation.rb +8 -0
- data/lib/mockserver/models.rb +543 -43
- data/lib/mockserver/version.rb +1 -1
- data/lib/mockserver/websocket_client.rb +5 -1
- metadata +2 -2
data/lib/mockserver/version.rb
CHANGED
|
@@ -118,8 +118,11 @@ module MockServer
|
|
|
118
118
|
@connected && !@stopped
|
|
119
119
|
end
|
|
120
120
|
|
|
121
|
+
# +authorization+, when given, is sent as the +Authorization+ header on every
|
|
122
|
+
# (re)connect, so the upgrade passes control-plane authentication.
|
|
121
123
|
def connect(host, port, context_path: '', secure: false,
|
|
122
|
-
ca_cert_path: nil, client_id: nil, tls_verify: true)
|
|
124
|
+
ca_cert_path: nil, client_id: nil, tls_verify: true, authorization: nil)
|
|
125
|
+
@authorization = authorization
|
|
123
126
|
@host = host
|
|
124
127
|
@port = port
|
|
125
128
|
@context_path = context_path
|
|
@@ -199,6 +202,7 @@ module MockServer
|
|
|
199
202
|
uri = "#{scheme}://#{@host}:#{@port}#{path}"
|
|
200
203
|
|
|
201
204
|
headers = { CLIENT_REGISTRATION_ID_HEADER => registration_id }
|
|
205
|
+
headers['Authorization'] = @authorization if @authorization
|
|
202
206
|
|
|
203
207
|
@registration_queue = Queue.new
|
|
204
208
|
@connected = false
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: mockserver-client
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 9.
|
|
4
|
+
version: 9.2.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- James Bloom
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2026-10-
|
|
11
|
+
date: 2026-10-27 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: logger
|