kitchen-habitat 0.9.0 → 0.10.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: 3a7ed56af416303acdd761c21b1a205b62c8fe3d6d1712a1798dd4e18b7583d4
4
- data.tar.gz: 1a8af1c6a8dd062786013157b9b67c2f1c67f2eaece2793fa8bc89dfa96d13bb
3
+ metadata.gz: a53b0e7ecbcbd344079d5a0e3b57c6c1391724d34f4eea6676ad2dcda50551de
4
+ data.tar.gz: 2fe775cc541a35c9434642e325e379772c40231c6bdce06c24874851cf5a7b19
5
5
  SHA512:
6
- metadata.gz: 97c0905d88a0425a2b2ee7209f02369e00433d859ecaebd3cc18e0b9ad180ae4600acfd8ec185f053628410b2b5b81a542f5d48a1110174ec438d207070e545d
7
- data.tar.gz: 7f2c990733bc747a6fb9a7306ff07f3be59814e9aa7a8ca22c74f66b6addcc083b4c29ebefcc33a6589fecaf5b0a59439951f4e4c3024bb436cab26b3b225f33
6
+ metadata.gz: a0788b1af617b81b2847b712c9500069eb8111b5443cb7a6af696fe1877eb00197f0719cb1cb9ccf81f086323c441f8f6c861b225c458cb15f2518f80c83da7f
7
+ data.tar.gz: 61752d3d8b85cb1e72267c911d69f51c07d30a4e599bfcab179c358b689714ba2bd155963b24730427f34678f16b4e26172584aab028a2d0dcfeef16763c8d72
data/README.md CHANGED
@@ -51,6 +51,9 @@ You'll need the test-kitchen & kitchen-habitat gems installed in your system, al
51
51
  * `hab_sup_peer`
52
52
  * IP and port (e.g. `192.168.1.86:9010`) of the supervisor of which to connect to join the ring.
53
53
  * Default is `[]`
54
+ * `hab_sup_ring`
55
+ * Ring key name
56
+ * Default is `nil`
54
57
 
55
58
  ### Package Settings
56
59
 
@@ -1,5 +1,5 @@
1
1
  module Kitchen
2
2
  module Habitat
3
- VERSION = "0.9.0".freeze
3
+ VERSION = "0.10.0".freeze
4
4
  end
5
5
  end
@@ -30,6 +30,7 @@ module Kitchen
30
30
  default_config :hab_sup_peer, []
31
31
  default_config :hab_sup_bind, []
32
32
  default_config :hab_sup_group, nil
33
+ default_config :hab_sup_ring, nil
33
34
 
34
35
  # hab-sup service options
35
36
  default_config :install_latest_artifact, false
@@ -244,11 +245,11 @@ module Kitchen
244
245
  else
245
246
  return
246
247
  end
247
- parsed_name = artifact_name.split("-")
248
- config[:package_origin] = parsed_name[0]
249
- config[:package_name] = parsed_name[1]
250
- config[:package_version] = parsed_name[2]
251
- config[:package_release] = parsed_name[3]
248
+ ident = artifact_name_to_package_ident_regex.match(artifact_name)
249
+ config[:package_origin] = ident["origin"]
250
+ config[:package_name] = ident["name"]
251
+ config[:package_version] = ident["version"]
252
+ config[:package_release] = ident["release"]
252
253
 
253
254
  artifact_path = File.join(File.join(config[:root_path], "results"), artifact_name)
254
255
  "sudo -E hab pkg install #{artifact_path}"
@@ -324,6 +325,7 @@ module Kitchen
324
325
  options += config[:hab_sup_bind].map { |b| " --bind #{b}" }.join(" ") if config[:hab_sup_bind].any?
325
326
  options += config[:hab_sup_peer].map { |p| " --peer #{p}" }.join(" ") if config[:hab_sup_peer].any?
326
327
  options += " --group #{config[:hab_sup_group]}" unless config[:hab_sup_group].nil?
328
+ options += " --ring #{config[:hab_sup_ring]}" unless config[:hab_sup_ring].nil?
327
329
  options += " --topology #{config[:service_topology]}" unless config[:service_topology].nil?
328
330
  options += " --strategy #{config[:service_update_strategy]}" unless config[:service_update_strategy].nil?
329
331
  options += " --channel #{config[:channel]}" unless config[:channel].nil?
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kitchen-habitat
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.0
4
+ version: 0.10.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Steven Murawski
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-07-16 00:00:00.000000000 Z
11
+ date: 2018-08-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: test-kitchen