beaker-vmpooler 1.3.3 → 1.4.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
- SHA1:
3
- metadata.gz: 92eb1f1ebf2ff8c6881bd0cc6f849a30e1885f69
4
- data.tar.gz: c650ee5696a490cc8f3d9f76c76538fad7b5426e
2
+ SHA256:
3
+ metadata.gz: 6d1691a4a15f960385c5d8041e285b4fc23f45f33996e8bf71d165f066256e68
4
+ data.tar.gz: cf3cc37f0a2cb87cc8b1df85dafde1a5ac0e64de4fec80ebbe00d7be96e6afae
5
5
  SHA512:
6
- metadata.gz: 06e80519edc51f50b3fae923e7906d7e0d74067545de2d5f8dcb832b74e8bd4487e4c77aa211c7f22091cccea985460d8c880bb918dacbb30733ecfd2f18d5c5
7
- data.tar.gz: 981e6f72e8d9c49d4096126cbc4d1659384b8554859037920b98328ab6935ff5811a0ea2ca17cf412d9459f7e92918f1b77c7edc4e12a27bf1c52908fc3c783b
6
+ metadata.gz: 2e4dc2ae575c94cdacc891ceefdff027d7e6524bb209475e8b802adfbbcf266f856cc76b60ed9b8b305dcbecbe33c25679b17d8b9a792015f37b2b0dc7989f4d
7
+ data.tar.gz: 26d647464683ff718032126a19b50c7d072c0c6a34771b9237cb9ae543929ac42f8cc81cd02ba8aee6155eeaff56ec98dc48d07b7e2649b21b6b8b60dae6481b
@@ -0,0 +1,8 @@
1
+ version: 2
2
+ updates:
3
+ - package-ecosystem: bundler
4
+ directory: "/"
5
+ schedule:
6
+ interval: daily
7
+ time: "13:00"
8
+ open-pull-requests-limit: 10
@@ -0,0 +1,26 @@
1
+ name: Test
2
+
3
+ on:
4
+ - pull_request
5
+ - push
6
+
7
+ jobs:
8
+ test:
9
+ runs-on: ubuntu-latest
10
+ strategy:
11
+ fail-fast: false
12
+ matrix:
13
+ ruby:
14
+ - "2.5"
15
+ - "2.6"
16
+ - "2.7"
17
+ name: Ruby ${{ matrix.ruby }}
18
+ steps:
19
+ - uses: actions/checkout@v2
20
+ - name: Install Ruby ${{ matrix.ruby }}
21
+ uses: ruby/setup-ruby@v1
22
+ with:
23
+ ruby-version: ${{ matrix.ruby }}
24
+ bundler-cache: true
25
+ - name: Run tests
26
+ run: bundle exec rake test:spec
data/CODEOWNERS ADDED
@@ -0,0 +1 @@
1
+ * @puppetlabs/beaker
data/Gemfile CHANGED
@@ -1,6 +1,6 @@
1
1
  source ENV['GEM_SOURCE'] || "https://rubygems.org"
2
2
 
3
- gemspec
3
+ gemspec :development_group => :acceptance_testing
4
4
 
5
5
 
6
6
 
@@ -18,7 +18,8 @@ end
18
18
  # We don't put beaker in as a test dependency because we
19
19
  # don't want to create a transitive dependency
20
20
  group :acceptance_testing do
21
- gem "beaker", *location_for(ENV['BEAKER_VERSION'] || '~> 3.0')
21
+ gem "beaker", *location_for(ENV['BEAKER_VERSION'] || '~> 4.0')
22
+ gem "beaker-abs"
22
23
  end
23
24
 
24
25
 
@@ -26,7 +26,7 @@ Gem::Specification.new do |s|
26
26
  else
27
27
  s.add_development_dependency 'fakefs', '~> 0.6'
28
28
  end
29
- s.add_development_dependency 'rake', '~> 10.1'
29
+ s.add_development_dependency 'rake', '~> 13.0'
30
30
  s.add_development_dependency 'simplecov'
31
31
  s.add_development_dependency 'pry', '~> 0.10'
32
32
 
@@ -1,3 +1,3 @@
1
1
  module BeakerVmpooler
2
- VERSION = '1.3.3'
2
+ VERSION = '1.4.0'
3
3
  end
@@ -114,6 +114,7 @@ module Beaker
114
114
  uri = URI.parse(@options['pooling_api'] + '/vm/')
115
115
 
116
116
  http = Net::HTTP.new(uri.host, uri.port)
117
+ http.use_ssl = uri.instance_of?(URI::HTTPS)
117
118
  request = Net::HTTP::Post.new(uri.request_uri)
118
119
 
119
120
  if @credentials[:vmpooler_token]
@@ -185,6 +186,7 @@ module Beaker
185
186
  uri = URI.parse(@options[:pooling_api] + '/vm/' + h['vmhostname'].split('.')[0])
186
187
 
187
188
  http = Net::HTTP.new(uri.host, uri.port)
189
+ http.use_ssl = uri.instance_of?(URI::HTTPS)
188
190
  request = Net::HTTP::Put.new(uri.request_uri)
189
191
 
190
192
  # merge pre-defined tags with host tags
@@ -250,6 +252,7 @@ module Beaker
250
252
  uri = URI.parse(get_template_url(@options['pooling_api'], name))
251
253
 
252
254
  http = Net::HTTP.new( uri.host, uri.port )
255
+ http.use_ssl = uri.instance_of?(URI::HTTPS)
253
256
  request = Net::HTTP::Delete.new(uri.request_uri)
254
257
 
255
258
  if @credentials[:vmpooler_token]
@@ -277,6 +280,7 @@ module Beaker
277
280
  uri = URI.parse(@options[:pooling_api] + '/api/v1/vm/' + hostname + '/disk/' + disk_size.to_s)
278
281
 
279
282
  http = Net::HTTP.new(uri.host, uri.port)
283
+ http.use_ssl = uri.instance_of?(URI::HTTPS)
280
284
  request = Net::HTTP::Post.new(uri.request_uri)
281
285
  request['X-AUTH-TOKEN'] = @credentials[:vmpooler_token]
282
286
 
@@ -309,6 +313,7 @@ module Beaker
309
313
  uri = URI.parse(@options[:pooling_api] + '/vm/' + hostname)
310
314
 
311
315
  http = Net::HTTP.new(uri.host, uri.port)
316
+ http.use_ssl = uri.instance_of?(URI::HTTPS)
312
317
  request = Net::HTTP::Get.new(uri.request_uri)
313
318
 
314
319
  response = http.request(request)
@@ -5,6 +5,7 @@ module Beaker
5
5
 
6
6
  before :each do
7
7
  stub_const( "Net", MockNet )
8
+ allow_any_instance_of(MockNet::HTTP).to receive(:use_ssl=)
8
9
  allow( JSON ).to receive( :parse ) do |arg|
9
10
  arg
10
11
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: beaker-vmpooler
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.3
4
+ version: 1.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Rishi Javia, Kevin Imber, Tony Vu
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-04-30 00:00:00.000000000 Z
11
+ date: 2021-06-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rspec
@@ -58,14 +58,14 @@ dependencies:
58
58
  requirements:
59
59
  - - "~>"
60
60
  - !ruby/object:Gem::Version
61
- version: '10.1'
61
+ version: '13.0'
62
62
  type: :development
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
66
  - - "~>"
67
67
  - !ruby/object:Gem::Version
68
- version: '10.1'
68
+ version: '13.0'
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: simplecov
71
71
  requirement: !ruby/object:Gem::Requirement
@@ -158,9 +158,12 @@ executables:
158
158
  extensions: []
159
159
  extra_rdoc_files: []
160
160
  files:
161
+ - ".github/dependabot.yml"
162
+ - ".github/workflows/test.yml"
161
163
  - ".gitignore"
162
164
  - ".rspec"
163
165
  - ".simplecov"
166
+ - CODEOWNERS
164
167
  - Gemfile
165
168
  - LICENSE
166
169
  - README.md
@@ -191,8 +194,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
191
194
  - !ruby/object:Gem::Version
192
195
  version: '0'
193
196
  requirements: []
194
- rubyforge_project:
195
- rubygems_version: 2.5.1
197
+ rubygems_version: 3.0.8
196
198
  signing_key:
197
199
  specification_version: 4
198
200
  summary: Beaker DSL Extension Helpers!