virtengine_api 0.1.0

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.
Files changed (151) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +21 -0
  3. data/.travis.yml +11 -0
  4. data/Gemfile +5 -0
  5. data/LICENSE +21 -0
  6. data/README.md +27 -0
  7. data/Rakefile +10 -0
  8. data/lib/megam/api.rb +329 -0
  9. data/lib/megam/api/accounts.rb +96 -0
  10. data/lib/megam/api/addons.rb +27 -0
  11. data/lib/megam/api/assemblies.rb +49 -0
  12. data/lib/megam/api/assembly.rb +56 -0
  13. data/lib/megam/api/backups.rb +57 -0
  14. data/lib/megam/api/balances.rb +45 -0
  15. data/lib/megam/api/billedhistories.rb +35 -0
  16. data/lib/megam/api/billingtransactions.rb +25 -0
  17. data/lib/megam/api/components.rb +24 -0
  18. data/lib/megam/api/credits.rb +34 -0
  19. data/lib/megam/api/disks.rb +44 -0
  20. data/lib/megam/api/domains.rb +25 -0
  21. data/lib/megam/api/errors.rb +29 -0
  22. data/lib/megam/api/eventsall.rb +36 -0
  23. data/lib/megam/api/eventsbilling.rb +35 -0
  24. data/lib/megam/api/eventscontainer.rb +35 -0
  25. data/lib/megam/api/eventsmarketplace.rb +35 -0
  26. data/lib/megam/api/eventsstorage.rb +24 -0
  27. data/lib/megam/api/eventsvm.rb +35 -0
  28. data/lib/megam/api/flavors.rb +56 -0
  29. data/lib/megam/api/license.rb +26 -0
  30. data/lib/megam/api/marketplaces.rb +68 -0
  31. data/lib/megam/api/organizations.rb +50 -0
  32. data/lib/megam/api/promos.rb +18 -0
  33. data/lib/megam/api/quotas.rb +47 -0
  34. data/lib/megam/api/rawimages.rb +36 -0
  35. data/lib/megam/api/reports.rb +24 -0
  36. data/lib/megam/api/requests.rb +36 -0
  37. data/lib/megam/api/sensors.rb +35 -0
  38. data/lib/megam/api/snapshots.rb +46 -0
  39. data/lib/megam/api/sshkeys.rb +35 -0
  40. data/lib/megam/api/subscriptions.rb +26 -0
  41. data/lib/megam/api/version.rb +6 -0
  42. data/lib/megam/core/account.rb +245 -0
  43. data/lib/megam/core/account_collection.rb +122 -0
  44. data/lib/megam/core/addons.rb +169 -0
  45. data/lib/megam/core/addons_collection.rb +121 -0
  46. data/lib/megam/core/assemblies.rb +191 -0
  47. data/lib/megam/core/assemblies_collection.rb +122 -0
  48. data/lib/megam/core/assembly.rb +226 -0
  49. data/lib/megam/core/assembly_collection.rb +122 -0
  50. data/lib/megam/core/backups.rb +259 -0
  51. data/lib/megam/core/backups_collection.rb +122 -0
  52. data/lib/megam/core/balances.rb +187 -0
  53. data/lib/megam/core/balances_collection.rb +121 -0
  54. data/lib/megam/core/billedhistories.rb +190 -0
  55. data/lib/megam/core/billedhistories_collection.rb +121 -0
  56. data/lib/megam/core/billingtransactions.rb +214 -0
  57. data/lib/megam/core/billingtransactions_collection.rb +122 -0
  58. data/lib/megam/core/components.rb +326 -0
  59. data/lib/megam/core/components_collection.rb +123 -0
  60. data/lib/megam/core/credits.rb +146 -0
  61. data/lib/megam/core/credits_collection.rb +121 -0
  62. data/lib/megam/core/disks.rb +199 -0
  63. data/lib/megam/core/disks_collection.rb +122 -0
  64. data/lib/megam/core/domain_collection.rb +122 -0
  65. data/lib/megam/core/domains.rb +118 -0
  66. data/lib/megam/core/error.rb +70 -0
  67. data/lib/megam/core/eventsall.rb +186 -0
  68. data/lib/megam/core/eventsall_collection.rb +122 -0
  69. data/lib/megam/core/eventsbilling.rb +174 -0
  70. data/lib/megam/core/eventsbilling_collection.rb +122 -0
  71. data/lib/megam/core/eventscontainer.rb +187 -0
  72. data/lib/megam/core/eventscontainer_collection.rb +122 -0
  73. data/lib/megam/core/eventsmarketplace.rb +187 -0
  74. data/lib/megam/core/eventsmarketplace_collection.rb +122 -0
  75. data/lib/megam/core/eventsstorage.rb +156 -0
  76. data/lib/megam/core/eventsstorage_collection.rb +122 -0
  77. data/lib/megam/core/eventsvm.rb +187 -0
  78. data/lib/megam/core/eventsvm_collection.rb +122 -0
  79. data/lib/megam/core/flavors.rb +294 -0
  80. data/lib/megam/core/flavors_collection.rb +121 -0
  81. data/lib/megam/core/json_compat.rb +289 -0
  82. data/lib/megam/core/konipai.rb +42 -0
  83. data/lib/megam/core/license.rb +101 -0
  84. data/lib/megam/core/license_collection.rb +122 -0
  85. data/lib/megam/core/log.rb +19 -0
  86. data/lib/megam/core/marketplace.rb +308 -0
  87. data/lib/megam/core/marketplace_collection.rb +123 -0
  88. data/lib/megam/core/monologger.rb +89 -0
  89. data/lib/megam/core/organizations.rb +142 -0
  90. data/lib/megam/core/organizations_collection.rb +121 -0
  91. data/lib/megam/core/promos.rb +145 -0
  92. data/lib/megam/core/quotas.rb +215 -0
  93. data/lib/megam/core/quotas_collection.rb +121 -0
  94. data/lib/megam/core/rawimages.rb +194 -0
  95. data/lib/megam/core/rawimages_collection.rb +121 -0
  96. data/lib/megam/core/reports.rb +176 -0
  97. data/lib/megam/core/reports_collection.rb +121 -0
  98. data/lib/megam/core/request.rb +197 -0
  99. data/lib/megam/core/request_collection.rb +121 -0
  100. data/lib/megam/core/rest_adapter.rb +44 -0
  101. data/lib/megam/core/sensors.rb +141 -0
  102. data/lib/megam/core/sensors_collection.rb +121 -0
  103. data/lib/megam/core/snapshots.rb +268 -0
  104. data/lib/megam/core/snapshots_collection.rb +122 -0
  105. data/lib/megam/core/sshkey.rb +173 -0
  106. data/lib/megam/core/sshkey_collection.rb +122 -0
  107. data/lib/megam/core/stuff.rb +22 -0
  108. data/lib/megam/core/subscriptions.rb +167 -0
  109. data/lib/megam/core/subscriptions_collection.rb +121 -0
  110. data/lib/megam/core/text.rb +87 -0
  111. data/lib/megam/core/text_formatter.rb +64 -0
  112. data/lib/megam/mixins/assemblies.rb +16 -0
  113. data/lib/megam/mixins/assembly.rb +59 -0
  114. data/lib/megam/mixins/common_deployable.rb +78 -0
  115. data/lib/megam/mixins/components.rb +182 -0
  116. data/lib/megam/mixins/megam_attributes.rb +30 -0
  117. data/lib/megam/mixins/outputs.rb +23 -0
  118. data/lib/megam/mixins/policies.rb +27 -0
  119. data/lib/megam_api.rb +1 -0
  120. data/megam_api.gemspec +26 -0
  121. data/test/mixins/test_assemblies.rb +113 -0
  122. data/test/mixins/test_assembly.rb +74 -0
  123. data/test/mixins/test_component.rb +19 -0
  124. data/test/test_accounts.rb +127 -0
  125. data/test/test_addons.rb +26 -0
  126. data/test/test_assemblies.rb +88 -0
  127. data/test/test_assembly.rb +37 -0
  128. data/test/test_backups.rb +29 -0
  129. data/test/test_balances.rb +38 -0
  130. data/test/test_billedhistories.rb +30 -0
  131. data/test/test_billingtranscations.rb +35 -0
  132. data/test/test_components.rb +42 -0
  133. data/test/test_credits.rb +28 -0
  134. data/test/test_disks.rb +25 -0
  135. data/test/test_domains.rb +29 -0
  136. data/test/test_eventsbilling.rb +30 -0
  137. data/test/test_eventscontainer.rb +26 -0
  138. data/test/test_eventsstorage.rb +12 -0
  139. data/test/test_eventsvm.rb +26 -0
  140. data/test/test_helper.rb +77 -0
  141. data/test/test_marketplaces.rb +38 -0
  142. data/test/test_organizations.rb +45 -0
  143. data/test/test_promos.rb +11 -0
  144. data/test/test_quotas.rb +33 -0
  145. data/test/test_reports.rb +32 -0
  146. data/test/test_requests.rb +95 -0
  147. data/test/test_sensors.rb +50 -0
  148. data/test/test_snapshots.rb +30 -0
  149. data/test/test_sshkeys.rb +50 -0
  150. data/test/test_subscriptions.rb +22 -0
  151. metadata +325 -0
@@ -0,0 +1,26 @@
1
+ require File.expand_path("#{File.dirname(__FILE__)}/test_helper")
2
+
3
+ class TestApps < MiniTest::Unit::TestCase
4
+ #=begin
5
+ def test_post_addons
6
+ tmp_hash = {
7
+ :json_claz => "Megam::Addons",
8
+ :id => "48",
9
+ :provider_id => "48",
10
+ :account_id => "raj@world.com",
11
+ :provider_name => "WHMCS",
12
+ :options => [],
13
+ :created_at => "2017-01-07 11:20:16 +0530"
14
+ }
15
+
16
+ response = megams.post_addons(tmp_hash)
17
+ assert_equal(201, response.status)
18
+ end
19
+ #=end
20
+ =begin
21
+ def test_get_addon
22
+ response = megams.get_addon("whmcs")
23
+ assert_equal(200, response.status)
24
+ end
25
+ =end
26
+ end
@@ -0,0 +1,88 @@
1
+ require File.expand_path("#{File.dirname(__FILE__)}/test_helper")
2
+
3
+ class TestApps < MiniTest::Unit::TestCase
4
+ #=begin
5
+ def test_get_assemblies
6
+ response = megams.get_assemblies
7
+ assert_equal(200, response.status)
8
+ end
9
+ #=end
10
+
11
+ #=begin
12
+ def test_post_assembly
13
+ tmp_hash = {
14
+ "name"=>"",
15
+ "org_id"=>"ORG123",
16
+ "assemblies"=>[{
17
+ "name"=>"covey",
18
+ "tosca_type"=>"tosca.app.java",
19
+ "inputs"=>[
20
+ {"key"=>"domain","value"=>"megambox.com"},
21
+ {"key"=>"sshkey","value"=>"a@b.com_rtr"},
22
+ {"key"=>"provider","value"=>"one"},
23
+ {"key"=>"cpu","value"=>"0.5"},
24
+ {"key"=>"ram","value"=>"896"},
25
+ {"key"=>"version","value"=>"8.x"},
26
+ {"key"=>"lastsuccessstatusupdate","value"=>"02 Feb 16 13:20 IST"},
27
+ {"key"=>"status","value"=>"error"}
28
+ ],
29
+ "outputs"=>[],
30
+ "policies"=>[],
31
+ "status"=>"error",
32
+ "state"=>"error",
33
+ "created_at"=>"2016-02-02 07:50:49 +0000",
34
+ "components"=>[
35
+ {
36
+ "name"=>"sheba",
37
+ "tosca_type"=>"tosca.app.java",
38
+ "inputs"=>[
39
+ {"key"=>"domain","value"=>"megambox.com"},
40
+ {"key"=>"sshkey","value"=>"a@b.com_rtr"},
41
+ {"key"=>"provider","value"=>"one"},
42
+ {"key"=>"cpu","value"=>"0.5"},
43
+ {"key"=>"ram","value"=>"896"},
44
+ {"key"=>"version","value"=>"8.x"},
45
+ {"key"=>"lastsuccessstatusupdate","value"=>"02 Feb 16 13:20 IST"},
46
+ {"key"=>"status","value"=>"error"}
47
+ ],
48
+ "outputs"=>[],
49
+ "envs"=>[
50
+ {"key"=>"port","value"=>"8080"},
51
+ {"key"=>"tomcat_username","value"=>"megam"},
52
+ {"key"=>"tomcat_password","value"=>"megam"}
53
+ ],
54
+ "repo"=>{
55
+ "rtype"=>"source",
56
+ "source"=>"github",
57
+ "oneclick"=>"","url"=>"https://github.com/rajthilakmca/java-spring-petclinic.git"
58
+ },
59
+ "artifacts"=>{"artifact_type"=>"","content"=>"","requirements"=>[]},
60
+ "related_components"=>[],
61
+ "operations"=>[{
62
+ "operation_type"=>"CI",
63
+ "description"=>"always up to date code. sweet.",
64
+ "properties"=>[
65
+ {"key"=>"type","value"=>"github"},
66
+ {"key"=>"token","value"=>"066b697558f048459412410483ca8965415bf7de"},
67
+ {"key"=>"username","value"=>"rajthilakmca"}],
68
+ "status"=>"notbound"}],
69
+ "status"=>"error",
70
+ "state"=>"error"}]}],
71
+ "inputs"=>[
72
+ {"key"=>"domain","value"=>"megambox.com"},
73
+ {"key"=>"sshkey","value"=>"a@b.com_rtr"},
74
+ {"key"=>"provider","value"=>"one"},
75
+ {"key"=>"cpu","value"=>"0.5"},
76
+ {"key"=>"ram","value"=>"896"},
77
+ {"key"=>"version","value"=>"8.x"},
78
+ {"key"=>"lastsuccessstatusupdate","value"=>"02 Feb 16 13:20 IST"},
79
+ {"key"=>"status","value"=>"error"}]
80
+ }
81
+
82
+
83
+ response = megams.post_assemblies(tmp_hash)
84
+ assert_equal(201, response.status)
85
+ end
86
+
87
+ #=end
88
+ end
@@ -0,0 +1,37 @@
1
+ require File.expand_path("#{File.dirname(__FILE__)}/test_helper")
2
+
3
+ class TestApps < MiniTest::Unit::TestCase
4
+
5
+ #=begin
6
+ def test_get_assembly
7
+ response = megams.get_one_assembly("ASM5405446528593826612")
8
+ puts response.inspect
9
+ assert_equal(200, response.status)
10
+ end
11
+ #=end
12
+ =begin
13
+ def test_update_assembly
14
+ tmp_hash = {
15
+
16
+ "id" => "ASM6175632897198829431",
17
+ "org_id" => "ORG123",
18
+ "json_claz" => "Megam::Assembly",
19
+ "name" => "calcines",
20
+ "tosca_type" => "tosca.app.java",
21
+ "components" => ["COM1265630517194260480",""],
22
+ "policies" => [{
23
+ "name" => "bind policy",
24
+ "ptype" => "colocated",
25
+ "members" => ["calcines.megam.co/MattieGarcia","calcines.megam.co/parsnip"]
26
+ }],
27
+ "inputs" => [],
28
+ "output" => [],
29
+ "status" => "Launching",
30
+ "state" => "Launching",
31
+ "created_at" => "2015-10-12 13:24:06 +0000"
32
+ }
33
+ response = megams.update_assembly(tmp_hash)
34
+ assert_equal(201, response.status)
35
+ end
36
+ =end
37
+ end
@@ -0,0 +1,29 @@
1
+ require File.expand_path("#{File.dirname(__FILE__)}/test_helper")
2
+
3
+ class TestApps < MiniTest::Unit::TestCase
4
+
5
+ def test_post_backups
6
+ tmp_hash = {
7
+ :account_id => "test@megam.io",
8
+ :asm_id => "ASM53557642376448623",
9
+ :org_id => "ORG787966332632133788",
10
+ :name => "pop.megambox.com",
11
+ :status => "progress",
12
+ :tosca_type => "torpedo",
13
+ }
14
+
15
+ response = megams.post_backups(tmp_hash)
16
+ assert_equal(201, response.status)
17
+ end
18
+ #=begin
19
+ def test_get_backups
20
+ response = megams.get_backups("ASM535576423764486230")
21
+ assert_equal(200, response.status)
22
+ end
23
+
24
+ def test_list_backups
25
+ response = megams.list_backups
26
+ assert_equal(200, response.status)
27
+ end
28
+ #=end
29
+ end
@@ -0,0 +1,38 @@
1
+ require File.expand_path("#{File.dirname(__FILE__)}/test_helper")
2
+
3
+ class TestApps < MiniTest::Unit::TestCase
4
+ #=begin
5
+ def test_post_balances
6
+ tmp_hash = { :accounts_id => "ACT93476985797",
7
+ :credit => "50"
8
+ }
9
+
10
+ response = megams.post_balances(tmp_hash)
11
+ assert_equal(201, response.status)
12
+ end
13
+ #=end
14
+ =begin
15
+ def test_update_balances
16
+ tmp_hash = {:id=>"BAL5611523197067225006",
17
+ :accounts_id=>"ACT119501563472393011",
18
+ :credit=>"23",
19
+ :created_at=>"2015-04-17 12:33:40 +0000",
20
+ :updated_at=>"2015-04-17 12:33:40 +0000"
21
+ }
22
+ response = megams.update_balance(tmp_hash)
23
+ assert_equal(201, response.status)
24
+ end
25
+ =end
26
+ =begin
27
+ def test_get_balances
28
+ response = megams.get_balances
29
+ assert_equal(200, response.status)
30
+ end
31
+ =end
32
+ =begin
33
+ def test_get_balances
34
+ response = megams.get_balance("iaas_default")
35
+ assert_equal(200, response.status)
36
+ end
37
+ =end
38
+ end
@@ -0,0 +1,30 @@
1
+ require File.expand_path("#{File.dirname(__FILE__)}/test_helper")
2
+
3
+ class TestApps < MiniTest::Unit::TestCase
4
+ #=begin
5
+ def test_post_billedhistories
6
+ tmp_hash = { :accounts_id => "ACT1262792663065821184",
7
+ :assembly_id => "ASM89687",
8
+ :bill_type => "paypal",
9
+ :billing_amount => "45",
10
+ :currency_type => "USD"
11
+ }
12
+
13
+ response = megams.post_billedhistories(tmp_hash)
14
+ assert_equal(201, response.status)
15
+ end
16
+ #=end
17
+
18
+ =begin
19
+ def test_get_billedhistories
20
+ response = megams.get_billedhistories
21
+ assert_equal(200, response.status)
22
+ end
23
+ =end
24
+ =begin
25
+ def test_get_billedhistories
26
+ response = megams.get_billedhistory("iaas_default")
27
+ assert_equal(200, response.status)
28
+ end
29
+ =end
30
+ end
@@ -0,0 +1,35 @@
1
+ require File.expand_path("#{File.dirname(__FILE__)}/test_helper")
2
+
3
+ class TestApps < MiniTest::Unit::TestCase
4
+ def test_post_billingtransactions
5
+ =begin
6
+ tmp_hash = { :accounts_id => "5555555",
7
+ :gateway => "paypal",
8
+ :amountin => "5",
9
+ :amountout => "5.99",
10
+ :fees => "0.99",
11
+ :tranid => "HGH111",
12
+ :trandate => "31/21/2012",
13
+ :currency_type => "USD"
14
+ }
15
+ =end
16
+ tmp_hash = {
17
+ :gateway => "paypal",
18
+ :amountin => "5",
19
+ :amountout => "5.99",
20
+ :fees => "0.99",
21
+ :tranid => "HGrH111",
22
+ :trandate => "2016-08-24 12:23",
23
+ :currency_type => "USD"
24
+ }
25
+
26
+
27
+ response = megams.post_billingtransactions(tmp_hash)
28
+ assert_equal(201, response.status)
29
+ end
30
+
31
+ def test_get_billingtransactions
32
+ response = megams.get_billingtransactions
33
+ assert_equal(200, response.status)
34
+ end
35
+ end
@@ -0,0 +1,42 @@
1
+ require File.expand_path("#{File.dirname(__FILE__)}/test_helper")
2
+
3
+ class TestApps < MiniTest::Unit::TestCase
4
+ #=begin
5
+ def test_get_component
6
+ response = megams.get_components("COM6497449919563135256")
7
+ assert_equal(200, response.status)
8
+ end
9
+ #=end
10
+ #=begin
11
+ def test_update_component
12
+ tmp_hash = {
13
+ "id" => "COM6497449919563135256",
14
+ "name" => "NettieMoore",
15
+ "tosca_type" => "tosca.web.redis",
16
+ "inputs" => [],
17
+ "outputs" => [],
18
+ "envs" => [
19
+ {
20
+ "key" => "REDIS_HOST",
21
+ "value" => "tempp.megambox.com"
22
+ },
23
+ ],
24
+ "artifacts" => {
25
+ "artifact_type" => "tosca type",
26
+ "content" => "",
27
+ "artifact_requirements" => []
28
+ },
29
+ "related_components" => ["AntonioMcCormick.megam.co/TimothyHenderson"],
30
+ "operations" => [],
31
+ "repo" => {
32
+ "rtype" => "image", "source" => "github", "oneclick" => "yes", "url" => "imagename"},
33
+
34
+ "status" => "",
35
+ "state" => "",
36
+ "created_at" => "2014-10-29 14:06:39 +0000"
37
+ }
38
+ response = megams.update_component(tmp_hash)
39
+ assert_equal(200, response.status)
40
+ end
41
+ #=end
42
+ end
@@ -0,0 +1,28 @@
1
+ require File.expand_path("#{File.dirname(__FILE__)}/test_helper")
2
+
3
+ class TestApps < MiniTest::Unit::TestCase
4
+ #=begin
5
+
6
+ def test_post_credits
7
+ tmp_hash = { :account_id => "rrr",
8
+ :credit => "50"
9
+ }
10
+
11
+ response = megams.post_credits(tmp_hash)
12
+ assert_equal(201, response.status)
13
+ end
14
+ #=end
15
+
16
+ #=begin
17
+ def test_list_credits
18
+ response = megams.list_credits
19
+ assert_equal(200, response.status)
20
+ end
21
+ #=end
22
+ #=begin
23
+ def test_get_credits
24
+ response = megams.get_credits("rrr")
25
+ assert_equal(200, response.status)
26
+ end
27
+ #=end
28
+ end
@@ -0,0 +1,25 @@
1
+ require File.expand_path("#{File.dirname(__FILE__)}/test_helper")
2
+
3
+ class TestApps < MiniTest::Unit::TestCase
4
+ def test_post_disks
5
+ tmp_hash = {
6
+ :account_id => "",
7
+ :asm_id => "ASM53557642376448625",
8
+ :org_id => "ORG7879663326321337888",
9
+ :size => "2GB",
10
+ :status => "progress",
11
+
12
+ }
13
+
14
+ response = megams.post_disks(tmp_hash)
15
+ assert_equal(201, response.status)
16
+ end
17
+ def test_get_disks
18
+ response = megams.get_disks("ASM53557642376448625")
19
+ assert_equal(200, response.status)
20
+ end
21
+ def test_list_disks
22
+ response = megams.list_disks
23
+ assert_equal(200, response.status)
24
+ end
25
+ end
@@ -0,0 +1,29 @@
1
+ require File.expand_path("#{File.dirname(__FILE__)}/test_helper")
2
+
3
+ class TestDomains < MiniTest::Unit::TestCase
4
+
5
+ $admin = "admin-tom"
6
+ $normal = "normal-tom"
7
+ $tom_email = "tom@gomegam.com"
8
+ $bob_email = "bob@gomegam.com"
9
+
10
+ #=begin
11
+ def test_get_domains_good
12
+ response =megams.get_domains
13
+
14
+ assert_equal(200, response.status)
15
+ end
16
+
17
+ #=end
18
+ #=begin
19
+ def test_post_domains_good
20
+ tmp_hash = {
21
+ "name" => "defaultOrg"
22
+ }
23
+
24
+ response =megams.post_domains(tmp_hash)
25
+ response.body.to_s
26
+ assert_equal(201, response.status)
27
+ end
28
+ #=end
29
+ end
@@ -0,0 +1,30 @@
1
+ require File.expand_path("#{File.dirname(__FILE__)}/test_helper")
2
+
3
+ class TestApps < MiniTest::Unit::TestCase
4
+
5
+ #=begin
6
+ def test_get_eventsbilling
7
+ tmp_hash = {
8
+ "account_id" => "",
9
+ "created_at" => "2016-05-05 10:57:30 +0000",
10
+ "assembly_id" => "ASM9038606864211614815",
11
+ "event_type" => "",
12
+ "data" => []
13
+ }
14
+ response = megams.get_eventsbilling("0", tmp_hash)
15
+
16
+ assert_equal(200, response.status)
17
+ end
18
+
19
+ #=end
20
+ #=begin
21
+ def test_list_eventsbilling
22
+ response = megams.list_eventsbilling("0")
23
+ assert_equal(200, response.status)
24
+ end
25
+ def test_index_eventsbilling
26
+ response = megams.index_eventsbilling
27
+ assert_equal(200, response.status)
28
+ end
29
+ #=end
30
+ end