yao 0.11.2 → 0.11.3

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
  SHA256:
3
- metadata.gz: 21d6d268d5ccbd6c577772e1d22df77f7ded13891d179c7fcbc435aa15a9687f
4
- data.tar.gz: ea67dae0b70611dc55a9f19b2cd7f64a67e408afd37c5b24e7f35d98f0fbd3fe
3
+ metadata.gz: c3cbb72cd422a646b28bb0493c19f63ae4f60b3d951a67807d343e67e684baa9
4
+ data.tar.gz: '09622cbb3bcd99965722ec00c6bfbf4adae237aeec0932706c08a71fee9587c6'
5
5
  SHA512:
6
- metadata.gz: 8cef8c7d6f911ff8aff3345f88b58f57e7d7b1f38502a04452aee2f5ec396e2c8fc7d81bb019d0c24503ffc5b3f4cf5a2d0feb488f233fc0fa6906a81bf43bcb
7
- data.tar.gz: dabfd6d94494647a39dcdbf72d86d4508752c9dc534de6fcc56a142cdd650b9665a78d084256478bf3fad257e5de7d5aafbd4015d11f632ae0f033b5ca21ca60
6
+ metadata.gz: 53d922dd979a4bef85b50bbdc9bb63b2c62119a5e1e8a1edb09259a3776ca9e4c04e2b521a65e3c408e507bdffaf709b20e7854c1f0db32c53cc15c734d21b8f
7
+ data.tar.gz: 1fe061f8f816c30c5bada3edbbef1535b1fc992fd932715a698b4752334931eb7685d67e6f3381c4d18879b9e61ce9f81b41244c09e314efc2cd80da8e530b6a
@@ -7,7 +7,7 @@ jobs:
7
7
  runs-on: ubuntu-latest
8
8
  strategy:
9
9
  matrix:
10
- ruby: [ 'ruby-head' ]
10
+ ruby: [ 'ruby-2.7.0' ]
11
11
  steps:
12
12
  - uses: actions/checkout@master
13
13
  - name: Set up RVM
@@ -29,7 +29,7 @@ module Yao::Plugins
29
29
  # @param [*]
30
30
  # @param [Symbol]
31
31
  # @param [Symbol]
32
- def self.register(*a)
33
- Registry.instance.register(*a)
32
+ def self.register(klass, **kw)
33
+ Registry.instance.register(klass, **kw)
34
34
  end
35
35
  end
@@ -1,6 +1,6 @@
1
1
  module Yao::Resources
2
2
  class Amphora < Base
3
- friendly_attributes :loadbalancer_id, :compute_id, :lb_network_ip, :vrrp_ip, :ha_ip, :vrrp_port_id,
3
+ friendly_attributes :load_balancer_id, :compute_id, :lb_network_ip, :vrrp_ip, :ha_ip, :vrrp_port_id,
4
4
  :ha_port_id, :role, :status, :vrrp_interface, :vrrp_id,
5
5
  :vrrp_priority, :cached_zone, :image_id, :compute_flavor
6
6
 
@@ -1,3 +1,3 @@
1
1
  module Yao
2
- VERSION = "0.11.2"
2
+ VERSION = "0.11.3"
3
3
  end
@@ -1,27 +1,27 @@
1
1
  class TestLoadBalancer < TestYaoResource
2
- def test_loadbalancer
2
+ def test_amphora
3
3
  # https://docs.openstack.org/api-ref/load-balancer/v2/?expanded=list-amphora-detail,show-amphora-statistics-detail#list-amphora
4
4
  params = {
5
- "id": "6bd55cd3-802e-447e-a518-1e74e23bb106",
6
- "load_balancer_id": "09eedfc6-2c55-41a8-a75c-2cd4e95212ca",
7
- "compute_id": "f0f79f90-733d-417a-8d70-cc6be62cd54d",
8
- "lb_network_ip": "192.168.1.2",
9
- "vrrp_ip": "192.168.1.5",
10
- "ha_ip": "192.168.1.10",
11
- "vrrp_port_id": "ab2a8add-76a9-44bb-89f8-88430193cc83",
12
- "ha_port_id": "19561fd3-5da5-46cc-bdd3-99bbdf7246e6",
13
- "cert_expiration": "2019-09-19 00:34:51",
14
- "cert_busy": 0,
15
- "role": "MASTER",
16
- "status": "ALLOCATED",
17
- "vrrp_interface": "eth1",
18
- "vrrp_id": 1,
19
- "vrrp_priority": 100,
20
- "cached_zone": "zone1",
21
- "created_at": "2017-05-10T18:14:44",
22
- "updated_at": "2017-05-10T23:08:12",
23
- "image_id": "c1c2ad6f-1c1e-4744-8d1a-d0ef36289e74",
24
- "compute_flavor": "5446a14a-abec-4455-bc0e-a34e5ff001a3"
5
+ "id" => "6bd55cd3-802e-447e-a518-1e74e23bb106",
6
+ "load_balancer_id" => "09eedfc6-2c55-41a8-a75c-2cd4e95212ca",
7
+ "compute_id" => "f0f79f90-733d-417a-8d70-cc6be62cd54d",
8
+ "lb_network_ip" => "192.168.1.2",
9
+ "vrrp_ip" => "192.168.1.5",
10
+ "ha_ip" => "192.168.1.10",
11
+ "vrrp_port_id" => "ab2a8add-76a9-44bb-89f8-88430193cc83",
12
+ "ha_port_id" => "19561fd3-5da5-46cc-bdd3-99bbdf7246e6",
13
+ "cert_expiration" => "2019-09-19 00 =>34 =>51",
14
+ "cert_busy" => 0,
15
+ "role" => "MASTER",
16
+ "status" => "ALLOCATED",
17
+ "vrrp_interface" => "eth1",
18
+ "vrrp_id" => 1,
19
+ "vrrp_priority" => 100,
20
+ "cached_zone" => "zone1",
21
+ "created_at" => "2017-05-10T18 =>14 =>44",
22
+ "updated_at" => "2017-05-10T23 =>08 =>12",
23
+ "image_id" => "c1c2ad6f-1c1e-4744-8d1a-d0ef36289e74",
24
+ "compute_flavor" => "5446a14a-abec-4455-bc0e-a34e5ff001a3"
25
25
  }
26
26
 
27
27
  amphora = Yao::Resources::Amphora.new(params)
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: yao
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.11.2
4
+ version: 0.11.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Uchio, KONDO
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-12-19 00:00:00.000000000 Z
11
+ date: 2020-02-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: json
@@ -197,7 +197,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
197
197
  - !ruby/object:Gem::Version
198
198
  version: '0'
199
199
  requirements: []
200
- rubygems_version: 3.0.3
200
+ rubygems_version: 3.1.2
201
201
  signing_key:
202
202
  specification_version: 4
203
203
  summary: Yet Another OpenStack API Wrapper that rocks!!