kitchen-habitat 0.3.1 → 0.4.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +9 -9
- data/lib/kitchen/provisioner/habitat.rb +7 -7
- data/lib/kitchen-habitat/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 321ed54954981ce9bcfa0d31cced155b68812dc7
|
4
|
+
data.tar.gz: a38cb707e5ad064a4fc0a10bb61e3dc8cc935fb1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
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
|
-
* `
|
32
|
-
*
|
33
|
-
* Defaults to `nil`, or, if `hab_sup_artifact_name` is supplied, the `
|
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 (
|
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
|
-
* `
|
70
|
-
* Package
|
71
|
-
* Defaults to `nil` or if `artifact_name` is supplied, the `
|
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 :
|
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 :
|
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[:
|
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[:
|
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+)?)-(?<
|
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[:
|
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[:
|
243
|
+
"#{config[:package_release]}".chomp("/").chomp("/")
|
244
244
|
@pkg_ident ||= ident
|
245
245
|
end
|
246
246
|
|
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.
|
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-
|
11
|
+
date: 2017-03-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: test-kitchen
|