fog-proxmox 0.11.1 → 0.12.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -23,7 +23,7 @@ require 'fog/proxmox/helpers/cpu_helper'
23
23
  describe Fog::Proxmox::CpuHelper do
24
24
 
25
25
  let(:cpu) do
26
- 'cputype=kvm64,flags=+spec-ctrl;+pcid'
26
+ 'cputype=Skylake-Client,flags=+spec-ctrl;+pcid'
27
27
  end
28
28
  let(:cpu_nocputype) do
29
29
  'kvm64,flags=+spec-ctrl;+pcid'
@@ -38,7 +38,7 @@ require 'fog/proxmox/helpers/cpu_helper'
38
38
  describe '#extract_type' do
39
39
  it "returns string" do
40
40
  result = Fog::Proxmox::CpuHelper.extract_type(cpu)
41
- assert_equal('kvm64', result)
41
+ assert_equal('Skylake-Client', result)
42
42
  end
43
43
  it "returns string" do
44
44
  result = Fog::Proxmox::CpuHelper.extract_type(cpu_nocputype)
@@ -300,6 +300,11 @@ describe Fog::Proxmox::Identity do
300
300
  # Add storage as member
301
301
  pool.add_server 100 # do nothing if server does not exist
302
302
  pool.add_storage 'local-lvm'
303
+ _(pool.members).wont_be_nil
304
+ _(pool.members).wont_be_empty
305
+ _(pool.members.size).must_equal 1 # no vm 100
306
+ _(pool.has_server?(100)).must_equal false
307
+ _(pool.has_storage?('local-lvm')).must_equal true
303
308
  # all pools
304
309
  pools_all = @service.pools.all
305
310
  _(pools_all).wont_be_nil
@@ -308,6 +313,7 @@ describe Fog::Proxmox::Identity do
308
313
  # Delete
309
314
  pool.remove_server 100
310
315
  pool.remove_storage 'local-lvm'
316
+ _(pool.members).must_be_empty
311
317
  pool.destroy
312
318
  pool = @service.pools.get pool_hash[:poolid]
313
319
  _(pool).must_be_nil
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fog-proxmox
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.11.1
4
+ version: 0.12.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tristan Robert
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-02-11 00:00:00.000000000 Z
11
+ date: 2020-05-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -196,16 +196,16 @@ dependencies:
196
196
  name: simplecov
197
197
  requirement: !ruby/object:Gem::Requirement
198
198
  requirements:
199
- - - ">="
199
+ - - '='
200
200
  - !ruby/object:Gem::Version
201
- version: '0'
201
+ version: '0.17'
202
202
  type: :development
203
203
  prerelease: false
204
204
  version_requirements: !ruby/object:Gem::Requirement
205
205
  requirements:
206
- - - ">="
206
+ - - '='
207
207
  - !ruby/object:Gem::Version
208
- version: '0'
208
+ version: '0.17'
209
209
  - !ruby/object:Gem::Dependency
210
210
  name: vcr
211
211
  requirement: !ruby/object:Gem::Requirement
@@ -310,12 +310,11 @@ files:
310
310
  - ".github/ISSUE_TEMPLATE/feature_request.md"
311
311
  - ".github/SUPPORT.md"
312
312
  - ".github/fogproxmox.png"
313
+ - ".github/workflows/ci.yml"
313
314
  - ".gitignore"
314
- - ".gitlab-ci.yml"
315
315
  - ".rubocop.yml"
316
316
  - ".ruby-gemset"
317
317
  - ".solargraph.yml"
318
- - ".travis.yml"
319
318
  - ".vscode/launch.json"
320
319
  - ".vscode/settings.json"
321
320
  - ".vscode/tasks.json"
@@ -1,50 +0,0 @@
1
- dependency_scanning:
2
- image: docker:stable
3
- variables:
4
- DOCKER_DRIVER: overlay2
5
- allow_failure: true
6
- services:
7
- - docker:stable-dind
8
- script:
9
- - export SP_VERSION=$(echo "$CI_SERVER_VERSION" | sed 's/^\([0-9]*\)\.\([0-9]*\).*/\1-\2-stable/')
10
- - docker run
11
- --env DEP_SCAN_DISABLE_REMOTE_CHECKS="${DEP_SCAN_DISABLE_REMOTE_CHECKS:-false}"
12
- --volume "$PWD:/code"
13
- --volume /var/run/docker.sock:/var/run/docker.sock
14
- "registry.gitlab.com/gitlab-org/security-products/dependency-scanning:$SP_VERSION" /code
15
- artifacts:
16
- paths: [gl-dependency-scanning-report.json]
17
-
18
- rubocop:
19
- image: ruby:2.5.1
20
- script:
21
- - bundle install --binstubs
22
- - rubocop
23
-
24
- test-ruby-2.3.7:
25
- image: ruby:2.3.7
26
- script:
27
- - bundle install --binstubs
28
- - bundle exec rake test
29
- - bundle exec rake spec
30
-
31
- test-ruby-2.4.4:
32
- image: ruby:2.4.4
33
- script:
34
- - bundle install --binstubs
35
- - bundle exec rake test
36
- - bundle exec rake spec
37
-
38
- test-ruby-2.5.1:
39
- image: ruby:2.5.1
40
- script:
41
- - bundle install --binstubs
42
- - bundle exec rake test
43
- - bundle exec rake spec
44
-
45
- test-ruby-2.6.2:
46
- image: ruby:2.6.2
47
- script:
48
- - bundle install --binstubs
49
- - bundle exec rake test
50
- - bundle exec rake spec
@@ -1,20 +0,0 @@
1
- env:
2
- global:
3
- - CC_TEST_REPORTER_ID=1b8ec457c0c30f927f785b4a080eca5164140c5b84716f64809b5ce2f57f3554
4
- language: ruby
5
- sudo: false
6
- cache: bundler
7
- rvm:
8
- - 2.5.7
9
- - 2.6.5
10
- - 2.7.0
11
- notifications:
12
- before_install:
13
- - gem update bundler
14
- before_script:
15
- - curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
16
- - chmod +x ./cc-test-reporter
17
- - "./cc-test-reporter before-build"
18
- script: bundle exec rake test spec audit
19
- after_script:
20
- - "./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT"