megam_api 0.8.0 → 0.8.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/megam/api/version.rb +1 -1
- data/lib/megam/builder/delete_node.rb +1 -3
- data/lib/megam/core/node.rb +1 -1
- data/test/test_nodes.rb +5 -4
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a7fec9b83d86dbf90747da9bc441fcd090f15f2b
|
4
|
+
data.tar.gz: 24c8f581bb48ce1b094bdca1995219ec37daa591
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 31c0aa4dcadca1422d6d51406d5f73efae369838ef630960b635cabc66be7ebb3dcf2ff16e321bca94855645e47b0a3629e690075df3ac5c77a0bcf9882830ab
|
7
|
+
data.tar.gz: e35d039644391bb7cabf6b2570b4d23330cd6787c0268e079f35b1c16a29414faf4c2ee90ba376202457724fea07b97f7051f690a3dc378a2eeb9d935a28d367
|
data/lib/megam/api/version.rb
CHANGED
@@ -65,11 +65,9 @@ module Megam
|
|
65
65
|
"groups" => "",
|
66
66
|
"image" => "",
|
67
67
|
"flavor" => "",
|
68
|
-
"tenant_id" => "#{node.request[:command]['compute']['tenant_id']}"
|
68
|
+
"tenant_id" => "#{node.request[:command]['compute']['cc']['tenant_id']}"
|
69
69
|
},
|
70
70
|
"access" => {
|
71
|
-
#"ssh_key" => "#{node.request[:command]['compute']['access']['ssh_key']}",
|
72
|
-
#"identity_file" => "#{node.request[:command]['compute']['access']['identity_file']}",
|
73
71
|
"ssh_key" => "",
|
74
72
|
"identity_file" => "",
|
75
73
|
"ssh_user" => "",
|
data/lib/megam/core/node.rb
CHANGED
@@ -345,7 +345,7 @@ node.command[:cloudtool][:chef][:name] = oc["cloudtool"]["chef"]["name"]
|
|
345
345
|
end
|
346
346
|
|
347
347
|
# Load a account by email_p
|
348
|
-
def self.show(node_name,tmp_email=nil, tmp_api_key=nil)
|
348
|
+
def self.show(node_name, tmp_email=nil, tmp_api_key=nil)
|
349
349
|
node = self.new(tmp_email, tmp_api_key)
|
350
350
|
node.megam_rest.get_node(node_name)
|
351
351
|
end
|
data/test/test_nodes.rb
CHANGED
@@ -1,7 +1,8 @@
|
|
1
1
|
require File.expand_path("#{File.dirname(__FILE__)}/test_helper")
|
2
2
|
|
3
3
|
class TestApps < MiniTest::Unit::TestCase
|
4
|
-
|
4
|
+
|
5
|
+
=begin
|
5
6
|
def test_post_node1
|
6
7
|
@com = {
|
7
8
|
"systemprovider" => {
|
@@ -65,12 +66,12 @@ class TestApps < MiniTest::Unit::TestCase
|
|
65
66
|
response = megams.post_node(tmp_hash)
|
66
67
|
assert_equal(201, response.status)
|
67
68
|
end
|
68
|
-
|
69
|
+
=end
|
69
70
|
def test_get_nodes
|
70
71
|
response = megams.get_nodes
|
71
72
|
assert_equal(200, response.status)
|
72
73
|
end
|
73
|
-
|
74
|
+
=begin
|
74
75
|
def test_get_node0
|
75
76
|
response = megams.get_node("black1.megam.co")
|
76
77
|
assert_equal(200, response.status)
|
@@ -133,4 +134,4 @@ class TestApps < MiniTest::Unit::TestCase
|
|
133
134
|
assert_equal(201, response.status)
|
134
135
|
end
|
135
136
|
=end
|
136
|
-
end
|
137
|
+
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: megam_api
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.8.
|
4
|
+
version: 0.8.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Kishorekumar Neelamegam, Thomas Alrin, Subash Sethurajan, Rajthilak
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-02-
|
11
|
+
date: 2014-02-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: excon
|