kumogata-template 0.0.36 → 0.0.37
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/kumogata/template/ecs.rb +1 -1
- data/lib/kumogata/template/version.rb +1 -1
- data/test/ecs_test.rb +2 -2
- data/test/template/ecs-task-definition_test.rb +2 -2
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0646a6b1d8086f11ba8f6ca0c4ecb977c45883025eb95159d16ea7fd89148b8f
|
4
|
+
data.tar.gz: 05c5008e9ce34e8c7caad78821e1c07a9df5b98f32d2a60bfd101f7a8c4f78ce
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3520ef75fbc78b8bf692b1a635e30ae05e45f8ec8befd88c08012187fae52db0df07009584ff0b55b337934d983b62f54d5551c2ab9eb0924103497e4e082b6c
|
7
|
+
data.tar.gz: 424af8a79c349607abe89d1ad939e8785f95b1d36e6b73ab96ed7dddf384be899596e4da5d9fae7a8086e2844b34c48b7a65681020c2bc79aa4670b37d50ad91
|
@@ -255,7 +255,7 @@ def _ecs_port_mappings(args)
|
|
255
255
|
(args[:port_mappings] || args[:ports] || []).collect do |port|
|
256
256
|
host = _ref_string("host", port, 'host port')
|
257
257
|
_{
|
258
|
-
ContainerPort _ref_string("
|
258
|
+
ContainerPort _ref_string("container", port, 'container port')
|
259
259
|
HostPort host unless host.empty?
|
260
260
|
Protocol _valid_values(port[:protocol], %w( tcp udp ), 'tcp')
|
261
261
|
}
|
@@ -1 +1 @@
|
|
1
|
-
KUMOGATA_TEMPLATE_VERSION = '0.0.
|
1
|
+
KUMOGATA_TEMPLATE_VERSION = '0.0.37'
|
data/test/ecs_test.rb
CHANGED
@@ -23,7 +23,7 @@ Test _ecs_load_balancers(load_balancers: [ { name: "test", port: 80, lb_name: "t
|
|
23
23
|
|
24
24
|
def test_ecs_container
|
25
25
|
template = <<-EOS
|
26
|
-
Test _ecs_containers(containers: [ { name: "test", image: "test", port_mappings: [ {
|
26
|
+
Test _ecs_containers(containers: [ { name: "test", image: "test", port_mappings: [ { container: 80 } ] } ])
|
27
27
|
EOS
|
28
28
|
act_template = run_client_as_json(template)
|
29
29
|
exp_template = <<-EOS
|
@@ -83,7 +83,7 @@ Test _ecs_mount_points(mount_points: [ { path: "/", source: "/" } ])
|
|
83
83
|
|
84
84
|
def test_ecs_port_mappings
|
85
85
|
template = <<-EOS
|
86
|
-
Test _ecs_port_mappings(port_mappings: [ {
|
86
|
+
Test _ecs_port_mappings(port_mappings: [ { container: 80 } ])
|
87
87
|
EOS
|
88
88
|
act_template = run_client_as_json(template)
|
89
89
|
exp_template = <<-EOS
|
@@ -3,7 +3,7 @@ require 'abstract_unit'
|
|
3
3
|
class EcsTaskDefinitionTest < Minitest::Test
|
4
4
|
def test_normal
|
5
5
|
template = <<-EOS
|
6
|
-
_ecs_task_definition "test", containers: [ { name: "test", image: "test", ports: [ {
|
6
|
+
_ecs_task_definition "test", containers: [ { name: "test", image: "test", ports: [ { container: 80 } ] } ], volumes: [ "test": "/test" ]
|
7
7
|
EOS
|
8
8
|
act_template = run_client_as_json(template)
|
9
9
|
exp_template = <<-EOS
|
@@ -75,7 +75,7 @@ container1 = {
|
|
75
75
|
image: "amazon/amazon-ecs-sample",
|
76
76
|
memory: 500,
|
77
77
|
mounts: [ { source: "my-vol", path: "/var/www/my-vol" } ],
|
78
|
-
ports: [ {
|
78
|
+
ports: [ { ref_container: "app", ref_host: "app" } ],
|
79
79
|
}
|
80
80
|
container2 = {
|
81
81
|
name: "busybox",
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: kumogata-template
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.37
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Naoya Nakazawa
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-07-
|
11
|
+
date: 2018-07-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk
|
@@ -525,7 +525,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
525
525
|
version: '0'
|
526
526
|
requirements: []
|
527
527
|
rubyforge_project:
|
528
|
-
rubygems_version: 2.7.
|
528
|
+
rubygems_version: 2.7.6
|
529
529
|
signing_key:
|
530
530
|
specification_version: 4
|
531
531
|
summary: Template for Kumogata.
|