megam_api 0.8.0 → 0.8.1

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
  SHA1:
3
- metadata.gz: c0001f507173e65034c03d8b4e2ddc93e856aff4
4
- data.tar.gz: 43137c2ac2f362c21f0561b3d90cef17dd380301
3
+ metadata.gz: a7fec9b83d86dbf90747da9bc441fcd090f15f2b
4
+ data.tar.gz: 24c8f581bb48ce1b094bdca1995219ec37daa591
5
5
  SHA512:
6
- metadata.gz: 3b7cb2d6fd275d8dc21546bf058e2d8c6a1a9efe5c5d4c46132df4bc46a4b30db05b0bd269690a1071a0d4bf6c4447c1442270afb3dd330542b5d1ac17eda33e
7
- data.tar.gz: b7b73b4252f19260679771c83e42400011bf3d778c091b2e1a39ad5fb80bc8cbf285584cfd2b18c23775c11a1908805469185a9366679b83fe11e92024703d17
6
+ metadata.gz: 31c0aa4dcadca1422d6d51406d5f73efae369838ef630960b635cabc66be7ebb3dcf2ff16e321bca94855645e47b0a3629e690075df3ac5c77a0bcf9882830ab
7
+ data.tar.gz: e35d039644391bb7cabf6b2570b4d23330cd6787c0268e079f35b1c16a29414faf4c2ee90ba376202457724fea07b97f7051f690a3dc378a2eeb9d935a28d367
@@ -1,5 +1,5 @@
1
1
  module Megam
2
2
  class API
3
- VERSION = "0.8.0"
3
+ VERSION = "0.8.1"
4
4
  end
5
5
  end
@@ -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" => "",
@@ -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.0
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-06 00:00:00.000000000 Z
11
+ date: 2014-02-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: excon