kitchen-habitat 0.3.1 → 0.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ec2df0fc73ebcc666ba789e36af7b7ec7217b7cb
4
- data.tar.gz: 5b881fdc4787c722cdf27593ff59b3ecf8cdce8e
3
+ metadata.gz: 321ed54954981ce9bcfa0d31cced155b68812dc7
4
+ data.tar.gz: a38cb707e5ad064a4fc0a10bb61e3dc8cc935fb1
5
5
  SHA512:
6
- metadata.gz: c8f77508af3af9d0fac492c105d2e1a3b6a4dbb2feaa31c1437ad57e9bc4bb79011e71ffb8a7221fefd1f7a1c4954641ecd4dc9ee4e4aa2089f3d8f8a5998a9d
7
- data.tar.gz: 670a0c1a693878dea2fcc70a62630e08b826f323c1e05fbf93fd3229ea545653a8f47d4eaf379687bd65a052b0cf714b36abb198a7aca23e983300de25ac7da7
6
+ metadata.gz: 4828aca661dfecceb7d5621a208380e10829d40b6dd642ba30ca91353b25f7ad4919c20221dfdc6e58a6d74a5f633409ecfdef41f6e6963ae69f1f7e909d8c19
7
+ data.tar.gz: ec60a9cef994028c90a27b97541eeea8d8633d43b1914d7b1939f76b1e1410f711a41586431b62fc27fc773af4c920a18c0e6097dee6f4706878b956b2e1beb7
data/README.md CHANGED
@@ -7,7 +7,7 @@ A Test Kitchen Provisioner for [Habitat](https://habitat.sh)
7
7
 
8
8
 
9
9
  ## Installation & Setup
10
- You'll need the test-kitchen & kitchen-habitat gems installed in your system, along with kitchen-vagrant or some ther suitable driver for test-kitchen.
10
+ You'll need the test-kitchen & kitchen-habitat gems installed in your system, along with kitchen-vagrant or some other suitable driver for test-kitchen.
11
11
 
12
12
  ## Configuration Settings
13
13
 
@@ -28,9 +28,9 @@ You'll need the test-kitchen & kitchen-habitat gems installed in your system, al
28
28
  * `hab_sup_version`
29
29
  * Version number of `hab-sup` to run
30
30
  * Defaults to `nil`, or, if `hab_sup_artifact_name` is supplied, the `hab_sup_version` will be parsed from the filename of the hart file.
31
- * `hab_sup_timestamp`
32
- * Timestamp of the `hab-sup` package to run
33
- * Defaults to `nil`, or, if `hab_sup_artifact_name` is supplied, the `hab_sup_timestamp` will be parsed from the filename of the hart file.
31
+ * `hab_sup_release`
32
+ * Release of the `hab-sup` package to run
33
+ * Defaults to `nil`, or, if `hab_sup_artifact_name` is supplied, the `hab_sup_release` will be parsed from the filename of the hart file.
34
34
  * `hab_sup_artifact_name`
35
35
  * Artifact package name for a custom supervisor to run
36
36
  * Used to upload and test a local supervisor.
@@ -56,7 +56,7 @@ You'll need the test-kitchen & kitchen-habitat gems installed in your system, al
56
56
  * Defaults to `nil`
57
57
  * `results_directory`
58
58
  * Directory (relative to the location of the .kitchen.yml) containing package artifacts (harts) to copy to the remote system
59
- * Defaults to checking the local directory for a `results` directory, then its parent (`..\results`) and grandparent (`..\..\results`), which should accomodate most studio layouts.
59
+ * Defaults to checking the local directory for a `results` directory, then its parent (`../results`) and grandparent (`../../results`), which should accomodate most studio layouts.
60
60
  * `package_origin`
61
61
  * Origin for the package to run.
62
62
  * Defaults to `core`, or, if `artifact_name` is supplied, the `package_origin` will be parsed from the filename of the hart file.
@@ -66,9 +66,9 @@ You'll need the test-kitchen & kitchen-habitat gems installed in your system, al
66
66
  * `package_version`
67
67
  * Package version of the package to be run.
68
68
  * Defaults to `nil` or if `artifact_name` is supplied, the `package_version` will be parsed from the filename of the hart file.
69
- * `package_timestamp`
70
- * Package timestamp of the package to be run.
71
- * Defaults to `nil` or if `artifact_name` is supplied, the `package_timestamp` will be parsed from the filename of the hart file.
69
+ * `package_releae`
70
+ * Package release of the package to be run.
71
+ * Defaults to `nil` or if `artifact_name` is supplied, the `package_release` will be parsed from the filename of the hart file.
72
72
  * `service_topology`
73
73
  * The topology for the service to run in. Valid values are `nil`, `standalone`, `leader`
74
74
  * Defaults to `nil` which is `standalone`
@@ -95,4 +95,4 @@ provisioner:
95
95
 
96
96
  suite:
97
97
  - name: core/redis
98
- ```
98
+ ```
@@ -20,7 +20,7 @@ module Kitchen
20
20
  default_config :hab_sup_origin, "core"
21
21
  default_config :hab_sup_name, "hab-sup"
22
22
  default_config :hab_sup_version, nil
23
- default_config :hab_sup_timestamp, nil
23
+ default_config :hab_sup_release, nil
24
24
  default_config :hab_sup_artifact_name, nil
25
25
 
26
26
  # hab-sup manager options
@@ -37,7 +37,7 @@ module Kitchen
37
37
  provisioner.instance.suite.name
38
38
  end
39
39
  default_config :package_version, nil
40
- default_config :package_timestamp, nil
40
+ default_config :package_release, nil
41
41
  default_config :service_topology, nil
42
42
  default_config :service_update_strategy, nil
43
43
 
@@ -56,7 +56,7 @@ module Kitchen
56
56
  config[:hab_sup_origin] = ident["origin"]
57
57
  config[:hab_sup_name] = ident["name"]
58
58
  config[:hab_sup_version] = ident["version"]
59
- config[:hab_sup_timestamp] = ident["timestamp"]
59
+ config[:hab_sup_release] = ident["release"]
60
60
  end
61
61
 
62
62
  unless config[:artifact_name].nil?
@@ -64,7 +64,7 @@ module Kitchen
64
64
  config[:package_origin] = ident["origin"]
65
65
  config[:package_name] = ident["name"]
66
66
  config[:package_version] = ident["version"]
67
- config[:package_timestamp] = ident["timestamp"]
67
+ config[:package_release] = ident["release"]
68
68
  end
69
69
  super(instance)
70
70
  end
@@ -225,14 +225,14 @@ module Kitchen
225
225
  end
226
226
 
227
227
  def artifact_name_to_package_ident_regex
228
- /(?<origin>\w+)-(?<name>.*)-(?<version>(\d+)?(\.\d+)?(\.\d+)?(\.\d+)?)-(?<timestamp>\d+)-(?<target>.*)\.hart$/
228
+ /(?<origin>\w+)-(?<name>.*)-(?<version>(\d+)?(\.\d+)?(\.\d+)?(\.\d+)?)-(?<release>\d+)-(?<target>.*)\.hart$/
229
229
  end
230
230
 
231
231
  def hab_sup_ident
232
232
  ident = "#{config[:hab_sup_origin]}/" \
233
233
  "#{config[:hab_sup_name]}/" \
234
234
  "#{config[:hab_sup_version]}/" \
235
- "#{config[:hab_sup_timestamp]}".chomp("/").chomp("/")
235
+ "#{config[:hab_sup_release]}".chomp("/").chomp("/")
236
236
  @sup_ident ||= ident
237
237
  end
238
238
 
@@ -240,7 +240,7 @@ module Kitchen
240
240
  ident = "#{config[:package_origin]}/" \
241
241
  "#{config[:package_name]}/" \
242
242
  "#{config[:package_version]}/" \
243
- "#{config[:package_timestamp]}".chomp("/").chomp("/")
243
+ "#{config[:package_release]}".chomp("/").chomp("/")
244
244
  @pkg_ident ||= ident
245
245
  end
246
246
 
@@ -1,5 +1,5 @@
1
1
  module Kitchen
2
2
  module Habitat
3
- VERSION = "0.3.1".freeze
3
+ VERSION = "0.4.0".freeze
4
4
  end
5
5
  end
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.3.1
4
+ version: 0.4.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: 2017-03-05 00:00:00.000000000 Z
11
+ date: 2017-03-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: test-kitchen