yao 0.11.2 → 0.11.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/ubuntu-rvm.yml +1 -1
- data/lib/yao/plugins/registry.rb +2 -2
- data/lib/yao/resources/amphora.rb +1 -1
- data/lib/yao/version.rb +1 -1
- data/test/yao/resources/test_amphora.rb +21 -21
- 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: c3cbb72cd422a646b28bb0493c19f63ae4f60b3d951a67807d343e67e684baa9
|
4
|
+
data.tar.gz: '09622cbb3bcd99965722ec00c6bfbf4adae237aeec0932706c08a71fee9587c6'
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 53d922dd979a4bef85b50bbdc9bb63b2c62119a5e1e8a1edb09259a3776ca9e4c04e2b521a65e3c408e507bdffaf709b20e7854c1f0db32c53cc15c734d21b8f
|
7
|
+
data.tar.gz: 1fe061f8f816c30c5bada3edbbef1535b1fc992fd932715a698b4752334931eb7685d67e6f3381c4d18879b9e61ce9f81b41244c09e314efc2cd80da8e530b6a
|
data/lib/yao/plugins/registry.rb
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
module Yao::Resources
|
2
2
|
class Amphora < Base
|
3
|
-
friendly_attributes :
|
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
|
|
data/lib/yao/version.rb
CHANGED
@@ -1,27 +1,27 @@
|
|
1
1
|
class TestLoadBalancer < TestYaoResource
|
2
|
-
def
|
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"
|
6
|
-
"load_balancer_id"
|
7
|
-
"compute_id"
|
8
|
-
"lb_network_ip"
|
9
|
-
"vrrp_ip"
|
10
|
-
"ha_ip"
|
11
|
-
"vrrp_port_id"
|
12
|
-
"ha_port_id"
|
13
|
-
"cert_expiration"
|
14
|
-
"cert_busy"
|
15
|
-
"role"
|
16
|
-
"status"
|
17
|
-
"vrrp_interface"
|
18
|
-
"vrrp_id"
|
19
|
-
"vrrp_priority"
|
20
|
-
"cached_zone"
|
21
|
-
"created_at"
|
22
|
-
"updated_at"
|
23
|
-
"image_id"
|
24
|
-
"compute_flavor"
|
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.
|
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:
|
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.
|
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!!
|