kubeclient 0.0.4 → 0.0.5
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of kubeclient might be problematic. Click here for more details.
- checksums.yaml +8 -8
- data/lib/kubeclient/version.rb +1 -1
- data/test/kubeclient_test.rb +3 -1
- data/test/node_test.rb +0 -3
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
OWVlZDdiMTE0MDkxZTQ2NDhlMjNiOWQ1MWIzNmQxNzcxMTMwMGEyYQ==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
MTNmZDVlNzZjMzU1NTE4Yjc3MmYxYWNkMzY5MzdjM2Q2YzhhNDQ2ZA==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
MjNhNTdlN2QzODllODU0YjgyNDZiNjlhYzc5M2M1OGVkNzYxOWUzMjE5N2Vl
|
10
|
+
N2E1NjFiY2JkMDRlYTQyOTE1NzUxNDU0ZjhiODFiZjRhMjAyZWExYmZkNDNk
|
11
|
+
YzkxNjU4YWFmOTFlMGM2NzkzMjE2ZmY1MmUwNmM2OGQ3MDJhYzU=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
MTY4ZGFjM2MyMGY5ODNiZWNjYWFmYzVlMzZhMmYwMTQ3YjY4YjFhM2MwNWRm
|
14
|
+
NzVhM2IxN2Y3NTI5YWJhMGYzNWJjMGM2NzIzMDBmOTI2MjVkOGZiZmExZTEz
|
15
|
+
NmZmODc5ZjM5OTMwNmIyZDMyMzg0MmMzNmY3Yjc2OTA3YzQyYWI=
|
data/lib/kubeclient/version.rb
CHANGED
data/test/kubeclient_test.rb
CHANGED
@@ -122,7 +122,9 @@ class KubeClientTest < MiniTest::Test
|
|
122
122
|
assert_instance_of(Node, result["node"][0])
|
123
123
|
end
|
124
124
|
|
125
|
-
#dup method creates a shallow copy which is not good in this case
|
125
|
+
# dup method creates a shallow copy which is not good in this case
|
126
|
+
# since rename_keys changes the input hash
|
127
|
+
# hence need to create a deep_copy
|
126
128
|
private
|
127
129
|
def deep_copy(hash)
|
128
130
|
Marshal.load(Marshal.dump(hash))
|
data/test/node_test.rb
CHANGED
@@ -22,11 +22,9 @@ class NodeTest < MiniTest::Test
|
|
22
22
|
assert_respond_to(node, "resources")
|
23
23
|
assert_respond_to(node, "resource_version")
|
24
24
|
assert_respond_to(node, "api_version")
|
25
|
-
assert_respond_to(node, "resources")
|
26
25
|
|
27
26
|
assert_equal 7, node.resource_version
|
28
27
|
assert_equal 1000, node.resources.capacity.cpu
|
29
|
-
|
30
28
|
end
|
31
29
|
|
32
30
|
def test_create_node_fail
|
@@ -39,6 +37,5 @@ class NodeTest < MiniTest::Test
|
|
39
37
|
client = Kubeclient::Client.new 'http://localhost:8080/api/' , "v1beta1"
|
40
38
|
assert_raises(NoMethodError) { client.create_node our_node }
|
41
39
|
|
42
|
-
|
43
40
|
end
|
44
41
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: kubeclient
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Alissa Bonas
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-01-
|
11
|
+
date: 2015-01-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|