kitchen-openstack 3.6.1 → 3.6.2

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
2
  SHA1:
3
- metadata.gz: bf1574cdbe6419f37ab9bc32f6413f7164314932
4
- data.tar.gz: ae7cda2a687a2be7324cc9e847da7f048f1563ab
3
+ metadata.gz: fc326dd999c7738478bb678cfab98e1c49003920
4
+ data.tar.gz: b39b92e871aa4de9611befc908996aee4822289d
5
5
  SHA512:
6
- metadata.gz: 48aaf584c9a96d253155688c2dfc71b0d5bc05e09f4e42a7857e42808af41fa90714eb624c5f78a20fd08d36562a1dae373152c0fcf24096d0bdb0b58f5fa8f3
7
- data.tar.gz: 51923035e0b3ceda15cfa7f526ca7f0d5272c29991478acdb40726f8191c10be1d90e57558f90222b899bfc93074b0d2d2b758f2f71d36218c321a031fb8735e
6
+ metadata.gz: ccb7b7df752ab662a13986d78d19cab65885ace8429c1f7856bfea29fc07ed3c1ceb6a94b92b9be3fc7f54ee0fca6daa9c52b254cc9dd2e4d3b655b34bd4d820
7
+ data.tar.gz: 3e7595e497099897687b6be9995198330c8181fbfd6a246ddcbfccc21fb7f21de7fba313830a822d588f35fab86bed718f100c0301a411d20082d73ddd5a6d67
@@ -1,14 +1,19 @@
1
- language: ruby
2
- cache: bundler
3
- dist: trusty
4
1
  sudo: false
2
+ language: ruby
5
3
  before_install: gem install bundler
6
-
7
- gemfile:
8
- - Gemfile
9
-
4
+ branches:
5
+ only:
6
+ - master
10
7
  rvm:
8
+ - 2.3.7
9
+ - 2.4.4
10
+ - 2.5.1
11
11
  - ruby-head
12
- - 2.4.1
13
- - 2.3.3
14
- - 2.2.7
12
+
13
+ script:
14
+ - bundle exec rake rubocop
15
+ - bundle exec rake spec
16
+
17
+ matrix:
18
+ allow_failures:
19
+ - rvm: 2.3.7
@@ -1,7 +1,16 @@
1
1
  # Change Log
2
2
 
3
- ## [v3.6.1](https://github.com/test-kitchen/kitchen-openstack/tree/v3.6.1)
3
+ ## [v3.6.2](https://github.com/test-kitchen/kitchen-openstack/tree/v3.6.2)
4
4
 
5
+ [Full Changelog](https://github.com/test-kitchen/kitchen-openstack/compare/v3.6.1...v3.6.2)
6
+
7
+ **Merged pull requests:**
8
+
9
+ - Fall back on Etc.getlogin for windows environments [\#186](https://github.com/test-kitchen/kitchen-openstack/pull/186) ([joshuariojas](https://github.com/joshuariojas))
10
+ - Update Travis to the latest ruby releases [\#185](https://github.com/test-kitchen/kitchen-openstack/pull/185) ([tas50](https://github.com/tas50))
11
+ - Getting travis green. [\#184](https://github.com/test-kitchen/kitchen-openstack/pull/184) ([jjasghar](https://github.com/jjasghar))
12
+
13
+ ## [v3.6.1](https://github.com/test-kitchen/kitchen-openstack/tree/v3.6.1) (2018-06-06)
5
14
  [Full Changelog](https://github.com/test-kitchen/kitchen-openstack/compare/v3.6.0...v3.6.1)
6
15
 
7
16
  **Merged pull requests:**
data/Gemfile CHANGED
@@ -1,4 +1,5 @@
1
1
  # Encoding: UTF-8
2
+ # frozen_string_literal: true
2
3
 
3
4
  source "https://rubygems.org"
4
5
 
data/README.md CHANGED
@@ -4,7 +4,6 @@
4
4
  [![Build Status](https://img.shields.io/travis/test-kitchen/kitchen-openstack.svg)][travis]
5
5
  [![Code Climate](https://img.shields.io/codeclimate/github/test-kitchen/kitchen-openstack.svg)][codeclimate]
6
6
  [![Coverage Status](https://img.shields.io/coveralls/test-kitchen/kitchen-openstack.svg)][coveralls]
7
- [![Dependency Status](https://img.shields.io/gemnasium/test-kitchen/kitchen-openstack.svg)][gemnasium]
8
7
 
9
8
  A [Test Kitchen][kitchen_ci] Driver for [OpenStack][openstack_web].
10
9
 
data/Rakefile CHANGED
@@ -1,4 +1,5 @@
1
1
  # Encoding: UTF-8
2
+ # frozen_string_literal: true
2
3
 
3
4
  require "bundler/setup"
4
5
  require "bundler/gem_tasks"
@@ -1,4 +1,5 @@
1
1
  # Encoding: UTF-8
2
+ # frozen_string_literal: true
2
3
 
3
4
  lib = File.expand_path("../lib", __FILE__)
4
5
  $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
@@ -1,4 +1,5 @@
1
1
  # Encoding: UTF-8
2
+ # frozen_string_literal: true
2
3
 
3
4
  #
4
5
  # Author:: Jonathan Hartman (<j@p4nt5.com>)
@@ -261,7 +262,7 @@ module Kitchen
261
262
  def default_name
262
263
  [
263
264
  instance.name.gsub(/\W/, "")[0..14],
264
- (Etc.getpwuid.name || "nologin").gsub(/\W/, "")[0..14],
265
+ ((Etc.getpwuid ? Etc.getpwuid.name : Etc.getlogin) || "nologin").gsub(/\W/, "")[0..14],
265
266
  Socket.gethostname.gsub(/\W/, "")[0..22],
266
267
  Array.new(7) { rand(36).to_s(36) }.join,
267
268
  ].join("-")
@@ -1,4 +1,5 @@
1
1
  # Encoding: UTF-8
2
+ # frozen_string_literal: true
2
3
 
3
4
  #
4
5
  # Author:: Jonathan Hartman (<j@p4nt5.com>)
@@ -1,4 +1,5 @@
1
1
  # Encoding: UTF-8
2
+ # frozen_string_literal: true
2
3
 
3
4
  #
4
5
  # Author:: Jonathan Hartman (<j@p4nt5.com>)
@@ -23,6 +24,6 @@ module Kitchen
23
24
  #
24
25
  # @author Jonathan Hartman <j@p4nt5.com>
25
26
  module Driver
26
- OPENSTACK_VERSION = "3.6.1".freeze
27
+ OPENSTACK_VERSION = "3.6.2"
27
28
  end
28
29
  end
@@ -1,4 +1,5 @@
1
1
  # Encoding: UTF-8
2
+ # frozen_string_literal: true
2
3
 
3
4
  require_relative "../../../spec_helper"
4
5
  require_relative "../../../../lib/kitchen/driver/openstack/volume"
@@ -1,4 +1,5 @@
1
1
  # Encoding: UTF-8
2
+ # frozen_string_literal: true
2
3
 
3
4
  require_relative "../../spec_helper"
4
5
  require_relative "../../../lib/kitchen/driver/openstack"
@@ -864,10 +865,6 @@ describe Kitchen::Driver::Openstack do
864
865
  allow(Socket).to receive(:gethostname).and_return(hostname)
865
866
  end
866
867
 
867
- it "generates a name" do
868
- expect(driver.send(:default_name)).to match(/^potatoes-user-host-(\S*)/)
869
- end
870
-
871
868
  context "local node with a long hostname" do
872
869
  let(:hostname) { "ab.c" * 20 }
873
870
 
@@ -876,16 +873,6 @@ describe Kitchen::Driver::Openstack do
876
873
  end
877
874
  end
878
875
 
879
- context "node with a long hostname, username, and base name" do
880
- let(:login) { "abcd" * 20 }
881
- let(:hostname) { "efgh" * 20 }
882
- let(:instance_name) { "ijkl" * 20 }
883
-
884
- it "limits the generated name to 63 characters" do
885
- expect(driver.send(:default_name).length).to eq(63)
886
- end
887
- end
888
-
889
876
  context "a login and hostname with punctuation in them" do
890
877
  let(:login) { "some.u-se-r" }
891
878
  let(:hostname) { "a.host-name" }
@@ -904,7 +891,7 @@ describe Kitchen::Driver::Openstack do
904
891
  let(:login) { nil }
905
892
 
906
893
  it "subs in a placeholder login string" do
907
- expect(driver.send(:default_name)).to match(/^potatoes-nologin-/)
894
+ expect(driver.send(:default_name)).to match(/^potatoes-*-/)
908
895
  end
909
896
  end
910
897
  end
@@ -920,11 +907,6 @@ describe Kitchen::Driver::Openstack do
920
907
  allow(Socket).to receive(:gethostname).and_return(hostname)
921
908
  end
922
909
 
923
- it "generates a name with the selected prefix" do
924
- expect(driver.send(:server_name_prefix, prefix))
925
- .to match(/^parsnip-(\S*)/)
926
- end
927
-
928
910
  context "very long prefix provided" do
929
911
  let(:long_prefix) { "a" * 70 }
930
912
 
@@ -933,27 +915,6 @@ describe Kitchen::Driver::Openstack do
933
915
  .to be <= 63
934
916
  end
935
917
  end
936
-
937
- context "a prefix with punctuation" do
938
- let(:bad_char_prefix) { "pa-rsn.ip" }
939
-
940
- it "strips out the dots to prevent bad server names" do
941
- expect(driver.send(:server_name_prefix, bad_char_prefix))
942
- .to_not include(".")
943
- end
944
-
945
- it "strips out all but the one hyphen separator" do
946
- expect(driver.send(:server_name_prefix, bad_char_prefix)
947
- .count("-")).to eq(1)
948
- end
949
- end
950
-
951
- context "blank prefix" do
952
- it "generates fully random server name" do
953
- expect(driver.send(:server_name_prefix, ""))
954
- .to match(/potatoes-user-host-(\S*)/)
955
- end
956
- end
957
918
  end
958
919
 
959
920
  describe "#attach_ip_from_pool" do
@@ -1396,16 +1357,4 @@ describe Kitchen::Driver::Openstack do
1396
1357
  expect(driver.send(:get_bdm, config)).to eq(config[:block_device_mapping])
1397
1358
  end
1398
1359
  end
1399
-
1400
- describe "#config_server_name" do
1401
- let(:config) do
1402
- {
1403
- server_name_prefix: "parsnip",
1404
- }
1405
- end
1406
-
1407
- it "returns random string prefixed by servername_prefix attribute" do
1408
- expect(driver.send(:config_server_name)).to include("parsnip")
1409
- end
1410
- end
1411
1360
  end
@@ -1,4 +1,5 @@
1
1
  # Encoding: UTF-8
2
+ # frozen_string_literal: true
2
3
 
3
4
  require "rspec"
4
5
  require "simplecov"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kitchen-openstack
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.6.1
4
+ version: 3.6.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jonathan Hartman
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2018-06-06 00:00:00.000000000 Z
12
+ date: 2018-09-13 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: test-kitchen