scooter 4.2.9 → 4.3.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a35da87770dbadd3fc9e1d8bef641f96db670017
4
- data.tar.gz: 6540f2f6bc94b4aed535d09f5cbe10b3eb7227ba
3
+ metadata.gz: 834cba9e4a59e400a64b5c7585e423bca3034f80
4
+ data.tar.gz: a57f5e7ccbafde3b5410223ed9a6029680ff8a2e
5
5
  SHA512:
6
- metadata.gz: 323fe60aa3c2acdcc1904cb08bbb6e3282150222ac777f4605e170f341b076e62c007a79440cc8cae1e0280065f642d17c122bbf7acf7448b0cb8e608944585a
7
- data.tar.gz: 4e8d002e664caafd94a07176495e8aebe692b64fb6bc751ce0616ead4f72efeaf0114b2770257b2d018c09e0734258a44ea8ae126b359be6aa239a1b8b78a000
6
+ metadata.gz: 2dbfb2824a973408b8f1a8596fcd061c8c54fd3f33828cf5b14860452c25a8e7f8c24a1471494c06328739da16060be217166fefea238d5dd92ebe19b2291c17
7
+ data.tar.gz: beb65d6fd82d9b0a5c8953e2f9d2cc1c12d58643b18ea0b7e690e1cd28ff52f20661442bd6121492d8a0902295b4941840c0ba05d34a4017c04839c0f0148310
data/Gemfile CHANGED
@@ -1,7 +1,4 @@
1
- source ENV['GEM_SOURCE'] || 'https://artifactory.delivery.puppetlabs.net/artifactory/api/gems/rubygems/'
2
- #this will probably not be available on rubygems, at least initially
3
- #will probably be only available at https://artifactory.delivery.puppetlabs.net/artifactory/api/gems/rubygems/
4
- #TODO: Change this line when it is actually available internally
1
+ source ENV['GEM_SOURCE'] || 'http://rubygems.org'
5
2
 
6
3
  # Specify your gem's dependencies in scooter.gemspec
7
4
  gemspec
data/README.md CHANGED
@@ -24,18 +24,24 @@ $ gem install scooter
24
24
 
25
25
  Scooter is currently divvied into the following sections:
26
26
 
27
- - [HttpDispatchers](docs/http_dispatchers.md) – These are modules that can be mixed into classes that represent real users: whitelisted certificate users, local console users, or users connected through an LDAP directory. Check out [HttpDispatchers](lib/scooter/httpdispatchers) for a list of the modules currently supported.
27
+ - [HttpDispatchers](docs/http_dispatchers.md) – These are modules that can be mixed into classes that represent real users: whitelisted certificate users, local console users, or users connected through an LDAP directory. Check out [HttpDispatchers](lib/scooter/httpdispatchers) for a list of the modules currently supported.
28
28
 
29
29
  - LDAPdispatcher – This class extends the Net::LDAP library, which is a requirement to for RBAC testing with LDAP fixtures.
30
30
  - Utilities – Currently, this houses random string generators and convenience methods to use beaker to acquire certificates to impersonate whitelisted certificate users.
31
31
 
32
+ ## Running the tests
33
+
34
+ ```
35
+ bundle exec rake test
36
+ ```
37
+
32
38
  ## Versioning
33
39
 
34
40
  Scooter's development began with Puppet Enterprise 3.7, but that was only available for internal testing at that time; Scooter is open-sourced and available on [rubygems.org](https://rubygems.org) at version 4.x to support the LTS version of Puppet Enterprise, 2016.4.0.
35
41
 
36
42
  ## Rdocs
37
43
 
38
- Please view the [RubyDocs](http://rubydoc.info/github/puppetlabs/scooter) for further documentation.
44
+ Please view the [RubyDocs](http://rubydoc.info/github/puppetlabs/scooter) for further documentation.
39
45
 
40
46
  ## Contributing
41
47
 
@@ -5,7 +5,6 @@ require 'beaker-http'
5
5
  require 'faraday'
6
6
  require 'faraday_middleware'
7
7
  require 'faraday-cookie_jar'
8
- require 'nokogiri'
9
8
 
10
9
  module Scooter
11
10
  %w( utilities httpdispatchers ldap ).each do |lib|
@@ -16,16 +16,11 @@ module Scooter
16
16
 
17
17
  attr_accessor :connection, :host, :token, :send_auth_token_as_query_param, :faraday_logger
18
18
  # The only required parameter for the HttpDispatcher is the host, which
19
- # could either be a beaker Unix::Host or a String. HttpDispatchers offer
19
+ # must be a Beaker::Host object. HttpDispatchers offer
20
20
  # support for automatically generating the required SSL components for the
21
21
  # Dispatcher if it is passed a Unix Host.
22
22
  #
23
- # If it is only passed a String, than it is up to the caller to correctly
24
- # configure the connection object to be configured correctly. Support for
25
- # Strings is experimental for now; it may be deprecated if there is no
26
- # feedback indicating that this functionality is being used.
27
- #
28
- # @param host(Unix::Host) The beaker host object you wish to communicate
23
+ # @param host(Beaker::Host) The beaker host object you wish to communicate
29
24
  # with.
30
25
  # @param log_level(Int) The desired log level
31
26
  # @param log_body(Boolean) Whether to log the body of responses
@@ -1,5 +1,5 @@
1
1
  module Scooter
2
2
  module Version
3
- STRING = '4.2.9'
3
+ STRING = '4.3.0'
4
4
  end
5
5
  end
@@ -30,11 +30,11 @@ Gem::Specification.new do |spec|
30
30
  spec.add_development_dependency 'activesupport', '4.2.6'
31
31
 
32
32
  #Run time dependencies
33
- spec.add_runtime_dependency 'beaker-http', '~> 0.1'
33
+ spec.add_runtime_dependency 'beaker', '>= 3.0', '< 5.0' # known support for beaker 3.x and 4.x
34
+ spec.add_runtime_dependency 'beaker-http', '~> 0.0'
34
35
  spec.add_runtime_dependency 'json', '~> 1.8'
35
36
  spec.add_runtime_dependency 'test-unit'
36
37
  spec.add_runtime_dependency 'net-ldap', '~> 0.6', '>= 0.6.1', '<= 0.12.1'
37
- spec.add_runtime_dependency 'beaker', '~> 3.0'
38
38
  spec.add_runtime_dependency 'faraday', '~> 0.9', '>= 0.9.1'
39
39
  spec.add_runtime_dependency 'faraday_middleware', '~> 0.9'
40
40
  spec.add_runtime_dependency 'faraday-cookie_jar', '~> 0.0', '>= 0.0.6'
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.2.9
4
+ version: 4.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Puppetlabs
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-07-31 00:00:00.000000000 Z
11
+ date: 2018-08-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -122,20 +122,40 @@ dependencies:
122
122
  - - '='
123
123
  - !ruby/object:Gem::Version
124
124
  version: 4.2.6
125
+ - !ruby/object:Gem::Dependency
126
+ name: beaker
127
+ requirement: !ruby/object:Gem::Requirement
128
+ requirements:
129
+ - - ">="
130
+ - !ruby/object:Gem::Version
131
+ version: '3.0'
132
+ - - "<"
133
+ - !ruby/object:Gem::Version
134
+ version: '5.0'
135
+ type: :runtime
136
+ prerelease: false
137
+ version_requirements: !ruby/object:Gem::Requirement
138
+ requirements:
139
+ - - ">="
140
+ - !ruby/object:Gem::Version
141
+ version: '3.0'
142
+ - - "<"
143
+ - !ruby/object:Gem::Version
144
+ version: '5.0'
125
145
  - !ruby/object:Gem::Dependency
126
146
  name: beaker-http
127
147
  requirement: !ruby/object:Gem::Requirement
128
148
  requirements:
129
149
  - - "~>"
130
150
  - !ruby/object:Gem::Version
131
- version: '0.1'
151
+ version: '0.0'
132
152
  type: :runtime
133
153
  prerelease: false
134
154
  version_requirements: !ruby/object:Gem::Requirement
135
155
  requirements:
136
156
  - - "~>"
137
157
  - !ruby/object:Gem::Version
138
- version: '0.1'
158
+ version: '0.0'
139
159
  - !ruby/object:Gem::Dependency
140
160
  name: json
141
161
  requirement: !ruby/object:Gem::Requirement
@@ -190,20 +210,6 @@ dependencies:
190
210
  - - "<="
191
211
  - !ruby/object:Gem::Version
192
212
  version: 0.12.1
193
- - !ruby/object:Gem::Dependency
194
- name: beaker
195
- requirement: !ruby/object:Gem::Requirement
196
- requirements:
197
- - - "~>"
198
- - !ruby/object:Gem::Version
199
- version: '3.0'
200
- type: :runtime
201
- prerelease: false
202
- version_requirements: !ruby/object:Gem::Requirement
203
- requirements:
204
- - - "~>"
205
- - !ruby/object:Gem::Version
206
- version: '3.0'
207
213
  - !ruby/object:Gem::Dependency
208
214
  name: faraday
209
215
  requirement: !ruby/object:Gem::Requirement