scooter 4.5.3 → 4.5.5
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 +1 -1
- data/lib/scooter/httpdispatchers/consoledispatcher.rb +5 -0
- data/lib/scooter/version.rb +1 -1
- data/scooter.gemspec +2 -0
- data/spec/scooter/httpdispatchers/consoledispatcher_spec.rb +7 -1
- metadata +17 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: f3f9f9e2d33c7fd64cc7b387cb4fd2f8db8c049c7959b993ee975202ef9d5a09
|
|
4
|
+
data.tar.gz: adbabb3e314c04ad66ec943176314ada68040f5a82b8b12284f8f7d8dc59e2ac
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 34ac9c46f9fc48e8d8e28d072d4b282b57c4bcda184592e8187607eb6345f0faa0b5e57e4d7853c2db6bb9796f6097a37fff8fbe2b6dc5dd6d7e6bff6e04ed49
|
|
7
|
+
data.tar.gz: a8855d81223280ce91f67c3f12bfaf7b78d371691dbdc8f3664adb4a6e82d56379d9bc1ef9eebb002b36c6cf7a40d8c4fb72cf3e273f45ff08d52cd0f322a87d
|
data/README.md
CHANGED
|
@@ -88,8 +88,13 @@ module Scooter
|
|
|
88
88
|
end
|
|
89
89
|
|
|
90
90
|
def signin(login=self.credentials.login, password=self.credentials.password)
|
|
91
|
+
response = @connection.get "https://#{host}/auth/login"
|
|
92
|
+
return response if response.status != 200
|
|
93
|
+
# extract the session cookie, if it is present
|
|
94
|
+
cookie = response.headers['Set-Cookie']
|
|
91
95
|
response = @connection.post "/auth/login" do |request|
|
|
92
96
|
request.headers['Content-Type'] = 'application/x-www-form-urlencoded; charset=UTF-8'
|
|
97
|
+
request.headers['Cookie'] = cookie if cookie
|
|
93
98
|
request.body = "username=#{login}&password=#{CGI.escape(password)}"
|
|
94
99
|
connection.port = 443
|
|
95
100
|
end
|
data/lib/scooter/version.rb
CHANGED
data/scooter.gemspec
CHANGED
|
@@ -38,4 +38,6 @@ Gem::Specification.new do |spec|
|
|
|
38
38
|
spec.add_runtime_dependency 'faraday'
|
|
39
39
|
spec.add_runtime_dependency 'faraday_middleware', '~> 1.2'
|
|
40
40
|
spec.add_runtime_dependency 'faraday-cookie_jar', '>= 0.0.7'
|
|
41
|
+
# Temporarily pin http-cookie, as >1.1.0 has issues that break PEZ tests
|
|
42
|
+
spec.add_runtime_dependency 'http-cookie', '= 1.1.0'
|
|
41
43
|
end
|
|
@@ -28,6 +28,12 @@ module Scooter
|
|
|
28
28
|
|
|
29
29
|
context '"signin with a page that returns a token' do
|
|
30
30
|
before do
|
|
31
|
+
stub_request(:get, /auth\/login/).
|
|
32
|
+
to_return(status: 200,
|
|
33
|
+
body: '',
|
|
34
|
+
headers: {
|
|
35
|
+
"set-cookie"=>"__HOST-somecookie=something;Secure;Path=/",
|
|
36
|
+
})
|
|
31
37
|
stub_request(:post, /auth\/login/).
|
|
32
38
|
to_return(status: 200,
|
|
33
39
|
body: '',
|
|
@@ -35,7 +41,7 @@ module Scooter
|
|
|
35
41
|
"date"=>"Tue, 29 Nov 2016 22:05:41 GMT",
|
|
36
42
|
"content-length"=>"0",
|
|
37
43
|
"connection"=>"close",
|
|
38
|
-
"set-cookie"=>"
|
|
44
|
+
"set-cookie"=>"pl_ssti=0CeHhpz5PPLna7kpaEMcTHjJ62z9eizHTzsxEXNK8W20;Secure;Path=/",
|
|
39
45
|
"location"=>"/",
|
|
40
46
|
"x-frame-options"=>"DENY"})
|
|
41
47
|
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: scooter
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 4.5.
|
|
4
|
+
version: 4.5.5
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Puppetlabs
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2026-04-09 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|
|
@@ -234,6 +234,20 @@ dependencies:
|
|
|
234
234
|
- - ">="
|
|
235
235
|
- !ruby/object:Gem::Version
|
|
236
236
|
version: 0.0.7
|
|
237
|
+
- !ruby/object:Gem::Dependency
|
|
238
|
+
name: http-cookie
|
|
239
|
+
requirement: !ruby/object:Gem::Requirement
|
|
240
|
+
requirements:
|
|
241
|
+
- - '='
|
|
242
|
+
- !ruby/object:Gem::Version
|
|
243
|
+
version: 1.1.0
|
|
244
|
+
type: :runtime
|
|
245
|
+
prerelease: false
|
|
246
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
247
|
+
requirements:
|
|
248
|
+
- - '='
|
|
249
|
+
- !ruby/object:Gem::Version
|
|
250
|
+
version: 1.1.0
|
|
237
251
|
description: Puppetlabs testing tool coupled with Beaker
|
|
238
252
|
email:
|
|
239
253
|
- qa@puppetlabs.com
|
|
@@ -311,7 +325,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
311
325
|
- !ruby/object:Gem::Version
|
|
312
326
|
version: '0'
|
|
313
327
|
requirements: []
|
|
314
|
-
rubygems_version: 3.4.
|
|
328
|
+
rubygems_version: 3.4.22
|
|
315
329
|
signing_key:
|
|
316
330
|
specification_version: 4
|
|
317
331
|
summary: Puppetlabs testing tool
|