kitchen-google 2.0.3 → 2.1.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
2
  SHA256:
3
- metadata.gz: 72735ed5ed5396500393e68fc3675f838c190059c510c172795e975ff89482bc
4
- data.tar.gz: 20ec8c3e7b609edd8f2cf2d72f22e8632bc4f5c090ec020a05867be4b3d9a680
3
+ metadata.gz: dfd4ade3df944044cc61c6c64f41c3b7f41493efd8a6024751c6bf52a5d468c8
4
+ data.tar.gz: 45998c3ff751583c50ebe770cc9f1bd29ad4c190ecbdd90d6c4055131f4e8df9
5
5
  SHA512:
6
- metadata.gz: '09e960eca3e4c66afd1f63678a71058e39f8d325bed0cad6b15140f0b482616a4f82d4176e8dde14114cb8b81d894155446eafc29db79203e8d6bfd57765599d'
7
- data.tar.gz: 3811f8bcc71cfe60b26162f38964021561908a0c9f3b746d9b050b1e3ab828c1a148b3b52399e0f3ba8768cfa40911c86576e5dc146b5d835eedbbd4aef8d66e
6
+ metadata.gz: c1510d83ac112662bb2c0e6573df8e19e07e5b2f2afdd110e52f3addd02d3b6fe7e9452b703c5998249f1b310a13730b8fc661b8bdc3787c6e3986e8cb2ad7f1
7
+ data.tar.gz: 9bab8a5f721cc7ca72f46ad69a0e274fed394ff7954ea0f1c1c88386108da2b81f396458449f68ee54d8bcf8dc405d4284e0750a854e829715b6421307e91b78
@@ -1,4 +1,3 @@
1
- # -*- coding: utf-8 -*-
2
1
  #
3
2
  # Author:: Andrew Leonard (<andy@hurricane-ridge.com>)
4
3
  # Author:: Chef Partner Engineering (<partnereng@chef.io>)
@@ -21,7 +20,7 @@ require "gcewinpass"
21
20
  require "google/apis/compute_v1"
22
21
  require "kitchen"
23
22
  require_relative "gce_version"
24
- require "securerandom"
23
+ require "securerandom" unless defined?(SecureRandom)
25
24
 
26
25
  module Kitchen
27
26
  module Driver
@@ -63,6 +62,7 @@ module Kitchen
63
62
 
64
63
  default_config :machine_type, "n1-standard-1"
65
64
  default_config :network, "default"
65
+ default_config :network_ip, nil
66
66
  default_config :network_project, nil
67
67
  default_config :subnet, nil
68
68
  default_config :subnet_project, nil
@@ -362,6 +362,10 @@ module Kitchen
362
362
  config[:network_project].nil? ? project : config[:network_project]
363
363
  end
364
364
 
365
+ def network_ip
366
+ config[:network_ip]
367
+ end
368
+
365
369
  def region
366
370
  config[:region].nil? ? region_for_zone : config[:region]
367
371
  end
@@ -572,6 +576,7 @@ module Kitchen
572
576
  def instance_network_interfaces
573
577
  interface = Google::Apis::ComputeV1::NetworkInterface.new
574
578
  interface.network = network_url if config[:subnet_project].nil?
579
+ interface.network_ip = network_ip unless network_ip.nil?
575
580
  interface.subnetwork = subnet_url if subnet_url
576
581
  interface.access_configs = interface_access_configs
577
582
 
@@ -1,6 +1,6 @@
1
1
  #
2
2
  # Author:: Chef Partner Engineering (<partnereng@chef.io>)
3
- # Copyright:: Copyright (c) 2015-2020 Chef Software, Inc.
3
+ # Copyright:: Copyright (c) Chef Software, Inc.
4
4
  # License:: Apache License, Version 2.0
5
5
  #
6
6
  # Licensed under the Apache License, Version 2.0 (the "License");
@@ -18,6 +18,6 @@
18
18
 
19
19
  module Kitchen
20
20
  module Driver
21
- GCE_VERSION = "2.0.3".freeze
21
+ GCE_VERSION = "2.1.0".freeze
22
22
  end
23
23
  end
metadata CHANGED
@@ -1,15 +1,15 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kitchen-google
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.3
4
+ version: 2.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrew Leonard
8
8
  - Chef Partner Engineering
9
- autorequire:
9
+ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2020-01-15 00:00:00.000000000 Z
12
+ date: 2020-11-20 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: gcewinpass
@@ -34,7 +34,7 @@ dependencies:
34
34
  version: 0.23.9
35
35
  - - "<"
36
36
  - !ruby/object:Gem::Version
37
- version: 0.36.0
37
+ version: 0.37.0
38
38
  type: :runtime
39
39
  prerelease: false
40
40
  version_requirements: !ruby/object:Gem::Requirement
@@ -44,7 +44,7 @@ dependencies:
44
44
  version: 0.23.9
45
45
  - - "<"
46
46
  - !ruby/object:Gem::Version
47
- version: 0.36.0
47
+ version: 0.37.0
48
48
  - !ruby/object:Gem::Dependency
49
49
  name: test-kitchen
50
50
  requirement: !ruby/object:Gem::Requirement
@@ -144,7 +144,7 @@ homepage: https://github.com/test-kitchen/kitchen-google
144
144
  licenses:
145
145
  - Apache-2.0
146
146
  metadata: {}
147
- post_install_message:
147
+ post_install_message:
148
148
  rdoc_options: []
149
149
  require_paths:
150
150
  - lib
@@ -159,8 +159,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
159
159
  - !ruby/object:Gem::Version
160
160
  version: '0'
161
161
  requirements: []
162
- rubygems_version: 3.0.3
163
- signing_key:
162
+ rubygems_version: 3.1.4
163
+ signing_key:
164
164
  specification_version: 4
165
165
  summary: Kitchen::Driver::Gce
166
166
  test_files: []