openshift_client 0.0.7 → 0.0.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/openshift_client/version.rb +1 -1
- data/lib/openshift_client.rb +1 -1
- data/test/test_client.rb +6 -0
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 010cd4b66f106a307ae77b1304d73f4209e27225
|
4
|
+
data.tar.gz: 3092e44c2f8cdb793421d7b77c1efd03dbb23a6d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3c73ad7d5c290e95d524916c3b5c1cb06079259ca0035ea53483ef7ede31504771d71016c1e47ca5a0abc77d07da0a590e2d3240598a01a78197f3774d1d6c6d
|
7
|
+
data.tar.gz: a1d8024a7ee3c604055ce93413f47ee62e1ffdd6f1276b61c4d66802cb52a38c01fd6a58cf6f70069ef08a56fb0fc448b756b75771d4e7c2b4c3f31d65c1272a
|
data/lib/openshift_client.rb
CHANGED
@@ -20,7 +20,7 @@ module OpenshiftClient
|
|
20
20
|
[OpenshiftClient.const_set(et, Class.new(RecursiveOpenStruct)), et]
|
21
21
|
end
|
22
22
|
|
23
|
-
def initialize(uri, version = 'v1', path = 'oapi')
|
23
|
+
def initialize(uri, version = 'v1', path = '/oapi')
|
24
24
|
handle_uri(uri, path)
|
25
25
|
@api_version = version
|
26
26
|
@headers = {}
|
data/test/test_client.rb
CHANGED
@@ -6,4 +6,10 @@ class TestClient < MiniTest::Test
|
|
6
6
|
client = OpenshiftClient::Client.new 'https://localhost:8080/oapi'
|
7
7
|
assert_equal(true, client.respond_to?('api_valid?'))
|
8
8
|
end
|
9
|
+
|
10
|
+
def test_path_valid
|
11
|
+
uri = URI::HTTPS.build(host: 'localhost', port: 8080)
|
12
|
+
client2 = OpenshiftClient::Client.new uri
|
13
|
+
assert_equal(true, client2.respond_to?('api_valid?'))
|
14
|
+
end
|
9
15
|
end
|