mno-enterprise-api 2.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (208) hide show
  1. checksums.yaml +7 -0
  2. data/LICENSE +1 -0
  3. data/Rakefile +12 -0
  4. data/app/assets/javascripts/mno_enterprise/angular/loading-page.app.js.coffee +156 -0
  5. data/app/assets/javascripts/mno_enterprise/application.js +13 -0
  6. data/app/controllers/devise/password_expired_controller.rb +55 -0
  7. data/app/controllers/mno_enterprise/auth/confirmations_controller.rb +5 -0
  8. data/app/controllers/mno_enterprise/auth/omniauth_callbacks_controller.rb +30 -0
  9. data/app/controllers/mno_enterprise/auth/passwords_controller.rb +5 -0
  10. data/app/controllers/mno_enterprise/auth/registrations_controller.rb +5 -0
  11. data/app/controllers/mno_enterprise/auth/sessions_controller.rb +7 -0
  12. data/app/controllers/mno_enterprise/auth/unlocks_controller.rb +5 -0
  13. data/app/controllers/mno_enterprise/deletion_requests_controller.rb +5 -0
  14. data/app/controllers/mno_enterprise/impersonate_controller.rb +48 -0
  15. data/app/controllers/mno_enterprise/jpi/v1/admin/audit_events_controller.rb +16 -0
  16. data/app/controllers/mno_enterprise/jpi/v1/admin/base_resource_controller.rb +5 -0
  17. data/app/controllers/mno_enterprise/jpi/v1/admin/cloud_apps_controller.rb +46 -0
  18. data/app/controllers/mno_enterprise/jpi/v1/admin/invoices_controller.rb +47 -0
  19. data/app/controllers/mno_enterprise/jpi/v1/admin/organizations_controller.rb +27 -0
  20. data/app/controllers/mno_enterprise/jpi/v1/admin/tenant_invoices_controller.rb +14 -0
  21. data/app/controllers/mno_enterprise/jpi/v1/admin/users_controller.rb +63 -0
  22. data/app/controllers/mno_enterprise/jpi/v1/app_instances_controller.rb +24 -0
  23. data/app/controllers/mno_enterprise/jpi/v1/app_instances_sync_controller.rb +36 -0
  24. data/app/controllers/mno_enterprise/jpi/v1/base_resource_controller.rb +32 -0
  25. data/app/controllers/mno_enterprise/jpi/v1/current_users_controller.rb +5 -0
  26. data/app/controllers/mno_enterprise/jpi/v1/deletion_requests_controller.rb +5 -0
  27. data/app/controllers/mno_enterprise/jpi/v1/impac/dashboards_controller.rb +5 -0
  28. data/app/controllers/mno_enterprise/jpi/v1/impac/kpis_controller.rb +80 -0
  29. data/app/controllers/mno_enterprise/jpi/v1/impac/widgets_controller.rb +63 -0
  30. data/app/controllers/mno_enterprise/jpi/v1/industry_bundle_controller.rb +25 -0
  31. data/app/controllers/mno_enterprise/jpi/v1/marketplace_controller.rb +22 -0
  32. data/app/controllers/mno_enterprise/jpi/v1/organizations_controller.rb +5 -0
  33. data/app/controllers/mno_enterprise/jpi/v1/shopping_cart_controller.rb +93 -0
  34. data/app/controllers/mno_enterprise/jpi/v1/teams_controller.rb +88 -0
  35. data/app/controllers/mno_enterprise/org_invites_controller.rb +5 -0
  36. data/app/controllers/mno_enterprise/pages_controller.rb +5 -0
  37. data/app/controllers/mno_enterprise/provision_controller.rb +5 -0
  38. data/app/controllers/mno_enterprise/status_controller.rb +27 -0
  39. data/app/controllers/mno_enterprise/webhook/o_auth_controller.rb +5 -0
  40. data/app/mailers/mno_enterprise/system_notification_mailer.rb +5 -0
  41. data/app/models/mno_enterprise/health_check.rb +16 -0
  42. data/app/views/devise/password_expired/show.html.haml +32 -0
  43. data/app/views/mno_enterprise/auth/confirmations/default/_form.html.haml +49 -0
  44. data/app/views/mno_enterprise/auth/confirmations/default/_lounge.html.haml +34 -0
  45. data/app/views/mno_enterprise/auth/confirmations/default/_show.html.haml +10 -0
  46. data/app/views/mno_enterprise/auth/confirmations/lounge.html.haml +4 -0
  47. data/app/views/mno_enterprise/auth/confirmations/material/_form.html.haml +44 -0
  48. data/app/views/mno_enterprise/auth/confirmations/material/_lounge.html.haml +18 -0
  49. data/app/views/mno_enterprise/auth/confirmations/material/_show.html.haml +21 -0
  50. data/app/views/mno_enterprise/auth/confirmations/new.html.haml +31 -0
  51. data/app/views/mno_enterprise/auth/confirmations/show.html.haml +4 -0
  52. data/app/views/mno_enterprise/auth/mailer/confirmation_instructions.html.haml +4 -0
  53. data/app/views/mno_enterprise/auth/mailer/reset_password_instructions.html.haml +6 -0
  54. data/app/views/mno_enterprise/auth/mailer/unlock_instructions.html.haml +5 -0
  55. data/app/views/mno_enterprise/auth/passwords/edit.html.haml +53 -0
  56. data/app/views/mno_enterprise/auth/passwords/new.html.haml +34 -0
  57. data/app/views/mno_enterprise/auth/registrations/default/_form.html.haml +35 -0
  58. data/app/views/mno_enterprise/auth/registrations/default/_new.html.haml +11 -0
  59. data/app/views/mno_enterprise/auth/registrations/material/_form.html.haml +30 -0
  60. data/app/views/mno_enterprise/auth/registrations/material/_new.html.haml +10 -0
  61. data/app/views/mno_enterprise/auth/registrations/new.html.haml +4 -0
  62. data/app/views/mno_enterprise/auth/sessions/default/_form.html.haml +17 -0
  63. data/app/views/mno_enterprise/auth/sessions/default/_new.html.haml +11 -0
  64. data/app/views/mno_enterprise/auth/sessions/material/_form.html.haml +26 -0
  65. data/app/views/mno_enterprise/auth/sessions/material/_new.html.haml +11 -0
  66. data/app/views/mno_enterprise/auth/sessions/new.html.haml +4 -0
  67. data/app/views/mno_enterprise/auth/shared/_links.html.haml +24 -0
  68. data/app/views/mno_enterprise/auth/unlocks/new.html.haml +10 -0
  69. data/app/views/mno_enterprise/deletion_requests/show.html.haml +131 -0
  70. data/app/views/mno_enterprise/jpi/v1/admin/audit_events/_audit_event.json.jbuilder +5 -0
  71. data/app/views/mno_enterprise/jpi/v1/admin/audit_events/index.json.jbuilder +4 -0
  72. data/app/views/mno_enterprise/jpi/v1/admin/cloud_apps/_cloud_app.json.jbuilder +1 -0
  73. data/app/views/mno_enterprise/jpi/v1/admin/cloud_apps/index.json.jbuilder +1 -0
  74. data/app/views/mno_enterprise/jpi/v1/admin/cloud_apps/show.json.jbuilder +1 -0
  75. data/app/views/mno_enterprise/jpi/v1/admin/invoices/_invoice.json.jbuilder +2 -0
  76. data/app/views/mno_enterprise/jpi/v1/admin/invoices/index.json.jbuilder +1 -0
  77. data/app/views/mno_enterprise/jpi/v1/admin/invoices/show.json.jbuilder +2 -0
  78. data/app/views/mno_enterprise/jpi/v1/admin/organizations/_credit_card.json.jbuilder +7 -0
  79. data/app/views/mno_enterprise/jpi/v1/admin/organizations/_invoices.json.jbuilder +8 -0
  80. data/app/views/mno_enterprise/jpi/v1/admin/organizations/_member.json.jbuilder +14 -0
  81. data/app/views/mno_enterprise/jpi/v1/admin/organizations/_organization.json.jbuilder +1 -0
  82. data/app/views/mno_enterprise/jpi/v1/admin/organizations/in_arrears.json.jbuilder +8 -0
  83. data/app/views/mno_enterprise/jpi/v1/admin/organizations/index.json.jbuilder +7 -0
  84. data/app/views/mno_enterprise/jpi/v1/admin/organizations/show.json.jbuilder +11 -0
  85. data/app/views/mno_enterprise/jpi/v1/admin/tenant_invoices/_tenant_invoice.json.jbuilder +5 -0
  86. data/app/views/mno_enterprise/jpi/v1/admin/tenant_invoices/index.json.jbuilder +1 -0
  87. data/app/views/mno_enterprise/jpi/v1/admin/tenant_invoices/show.json.jbuilder +1 -0
  88. data/app/views/mno_enterprise/jpi/v1/admin/users/_user.json.jbuilder +1 -0
  89. data/app/views/mno_enterprise/jpi/v1/admin/users/index.json.jbuilder +2 -0
  90. data/app/views/mno_enterprise/jpi/v1/admin/users/show.json.jbuilder +9 -0
  91. data/app/views/mno_enterprise/jpi/v1/app_instances/_resource.json.jbuilder +23 -0
  92. data/app/views/mno_enterprise/jpi/v1/app_instances/index.json.jbuilder +9 -0
  93. data/app/views/mno_enterprise/jpi/v1/app_instances/show.json.jbuilder +3 -0
  94. data/app/views/mno_enterprise/jpi/v1/billing/index.json.jbuilder +0 -0
  95. data/app/views/mno_enterprise/jpi/v1/current_users/show.json.jbuilder +37 -0
  96. data/app/views/mno_enterprise/jpi/v1/impac/dashboards/_dashboard.json.jbuilder +9 -0
  97. data/app/views/mno_enterprise/jpi/v1/impac/dashboards/index.json.jbuilder +1 -0
  98. data/app/views/mno_enterprise/jpi/v1/impac/dashboards/show.json.jbuilder +1 -0
  99. data/app/views/mno_enterprise/jpi/v1/impac/kpis/_kpi.json.jbuilder +1 -0
  100. data/app/views/mno_enterprise/jpi/v1/impac/kpis/show.json.jbuilder +1 -0
  101. data/app/views/mno_enterprise/jpi/v1/impac/widgets/_widget.json.jbuilder +6 -0
  102. data/app/views/mno_enterprise/jpi/v1/impac/widgets/show.json.jbuilder +1 -0
  103. data/app/views/mno_enterprise/jpi/v1/marketplace/_app.json.jbuilder +14 -0
  104. data/app/views/mno_enterprise/jpi/v1/marketplace/index.json.jbuilder +3 -0
  105. data/app/views/mno_enterprise/jpi/v1/marketplace/show.json.jbuilder +3 -0
  106. data/app/views/mno_enterprise/jpi/v1/organizations/_arrears.json.jbuilder +11 -0
  107. data/app/views/mno_enterprise/jpi/v1/organizations/_billing.json.jbuilder +4 -0
  108. data/app/views/mno_enterprise/jpi/v1/organizations/_credit_card.json.jbuilder +7 -0
  109. data/app/views/mno_enterprise/jpi/v1/organizations/_current_user.json.jbuilder +5 -0
  110. data/app/views/mno_enterprise/jpi/v1/organizations/_invoices.json.jbuilder +8 -0
  111. data/app/views/mno_enterprise/jpi/v1/organizations/_member.json.jbuilder +13 -0
  112. data/app/views/mno_enterprise/jpi/v1/organizations/_organization.json.jbuilder +13 -0
  113. data/app/views/mno_enterprise/jpi/v1/organizations/credit_card.json.jbuilder +1 -0
  114. data/app/views/mno_enterprise/jpi/v1/organizations/index.json.jbuilder +1 -0
  115. data/app/views/mno_enterprise/jpi/v1/organizations/members.json.jbuilder +3 -0
  116. data/app/views/mno_enterprise/jpi/v1/organizations/show.json.jbuilder +15 -0
  117. data/app/views/mno_enterprise/jpi/v1/organizations/show_reduced.json.jbuilder +3 -0
  118. data/app/views/mno_enterprise/jpi/v1/shopping_cart/organizations.json.jbuilder +5 -0
  119. data/app/views/mno_enterprise/jpi/v1/shopping_cart/show.json.jbuilder +59 -0
  120. data/app/views/mno_enterprise/jpi/v1/shopping_cart/show_item.json.jbuilder +34 -0
  121. data/app/views/mno_enterprise/jpi/v1/teams/_team.json.jbuilder +20 -0
  122. data/app/views/mno_enterprise/jpi/v1/teams/index.json.jbuilder +1 -0
  123. data/app/views/mno_enterprise/jpi/v1/teams/show.json.jbuilder +3 -0
  124. data/app/views/mno_enterprise/pages/app_access_unauthorized.html.haml +19 -0
  125. data/app/views/mno_enterprise/pages/app_logout.html.haml +18 -0
  126. data/app/views/mno_enterprise/pages/billing_details_required.html.haml +19 -0
  127. data/app/views/mno_enterprise/pages/loading.html.erb +69 -0
  128. data/app/views/mno_enterprise/provision/_provision_apps.html.haml +42 -0
  129. data/app/views/mno_enterprise/provision/_select_organization.html.haml +17 -0
  130. data/app/views/mno_enterprise/provision/new.html.haml +4 -0
  131. data/app/views/mno_enterprise/webhook/o_auth/authorize.html.haml +26 -0
  132. data/app/views/mno_enterprise/webhook/o_auth/providers/myob.html.haml +29 -0
  133. data/app/views/mno_enterprise/webhook/o_auth/providers/xero.html.haml +34 -0
  134. data/config/initializers/devise.rb +273 -0
  135. data/config/initializers/devise_extension.rb +9 -0
  136. data/config/initializers/devise_log.rb +12 -0
  137. data/config/initializers/health_check.rb +35 -0
  138. data/config/initializers/main_app_version.rb +6 -0
  139. data/config/routes.rb +152 -0
  140. data/lib/mno-enterprise-api.rb +1 -0
  141. data/lib/mno_enterprise/api.rb +14 -0
  142. data/lib/mno_enterprise/api/engine.rb +9 -0
  143. data/lib/mno_enterprise/concerns/controllers/deletion_requests_controller.rb +108 -0
  144. data/lib/mno_enterprise/concerns/controllers/jpi/v1/admin/base_resource_controller.rb +34 -0
  145. data/lib/mno_enterprise/concerns/controllers/jpi/v1/current_users_controller.rb +58 -0
  146. data/lib/mno_enterprise/concerns/controllers/jpi/v1/deletion_requests_controller.rb +69 -0
  147. data/lib/mno_enterprise/concerns/controllers/jpi/v1/impac/dashboards_controller.rb +76 -0
  148. data/lib/mno_enterprise/concerns/controllers/jpi/v1/organizations_controller.rb +180 -0
  149. data/lib/mno_enterprise/concerns/controllers/org_invites_controller.rb +44 -0
  150. data/lib/mno_enterprise/concerns/controllers/pages_controller.rb +78 -0
  151. data/lib/mno_enterprise/concerns/controllers/provision_controller.rb +71 -0
  152. data/lib/mno_enterprise/concerns/controllers/webhook/o_auth_controller.rb +107 -0
  153. data/lib/mno_enterprise/concerns/mailers/system_notification_mailer.rb +158 -0
  154. data/lib/mno_enterprise/event_logger.rb +32 -0
  155. data/spec/controllers/mno_enterprise/auth/confirmation_controller_spec.rb +68 -0
  156. data/spec/controllers/mno_enterprise/deletion_requests_controller_spec.rb +141 -0
  157. data/spec/controllers/mno_enterprise/impersonate_controller_spec.rb +48 -0
  158. data/spec/controllers/mno_enterprise/jpi/v1/admin/audit_events_controller_spec.rb +51 -0
  159. data/spec/controllers/mno_enterprise/jpi/v1/admin/cloud_apps_controller_spec.rb +92 -0
  160. data/spec/controllers/mno_enterprise/jpi/v1/admin/invoices_controller_spec.rb +159 -0
  161. data/spec/controllers/mno_enterprise/jpi/v1/admin/organizations_controller_spec.rb +116 -0
  162. data/spec/controllers/mno_enterprise/jpi/v1/admin/tenant_invoices_controller_spec.rb +92 -0
  163. data/spec/controllers/mno_enterprise/jpi/v1/admin/users_controller_spec.rb +136 -0
  164. data/spec/controllers/mno_enterprise/jpi/v1/app_instances_controller_spec.rb +76 -0
  165. data/spec/controllers/mno_enterprise/jpi/v1/app_instances_sync_controller_spec.rb +94 -0
  166. data/spec/controllers/mno_enterprise/jpi/v1/current_users_controller_spec.rb +128 -0
  167. data/spec/controllers/mno_enterprise/jpi/v1/deletion_requests_controller_spec.rb +72 -0
  168. data/spec/controllers/mno_enterprise/jpi/v1/impac/kpis_controller_spec.rb +80 -0
  169. data/spec/controllers/mno_enterprise/jpi/v1/marketplace_controller_spec.rb +115 -0
  170. data/spec/controllers/mno_enterprise/jpi/v1/organizations_controller_spec.rb +516 -0
  171. data/spec/controllers/mno_enterprise/jpi/v1/team_controller_spec.rb +86 -0
  172. data/spec/controllers/mno_enterprise/org_invites_controller_spec.rb +29 -0
  173. data/spec/controllers/mno_enterprise/pages_controller_spec.rb +49 -0
  174. data/spec/controllers/mno_enterprise/provision_controller_spec.rb +94 -0
  175. data/spec/controllers/mno_enterprise/status_controller_spec.rb +34 -0
  176. data/spec/controllers/mno_enterprise/webhook/o_auth_controller_spec.rb +104 -0
  177. data/spec/lib/mno_enterprise/event_logger_spec.rb +28 -0
  178. data/spec/mailer/mno_enterprise/system_notification_mailer_spec.rb +132 -0
  179. data/spec/rails_helper.rb +94 -0
  180. data/spec/requests/devise/authentication_spec.rb +43 -0
  181. data/spec/requests/devise/registration_spec.rb +64 -0
  182. data/spec/routing/devise/confirmation_routing_spec.rb +20 -0
  183. data/spec/routing/devise/passwords_routing_spec.rb +24 -0
  184. data/spec/routing/devise/registrations_routing_spec.rb +16 -0
  185. data/spec/routing/devise/sessions_routing_spec.rb +20 -0
  186. data/spec/routing/mno_enterprise/deletion_requests_controller_routing_spec.rb +20 -0
  187. data/spec/routing/mno_enterprise/impersonate_controller_routing.spec.rb +15 -0
  188. data/spec/routing/mno_enterprise/jpi/v1/admin/audit_events_controller_routing_spec.rb +11 -0
  189. data/spec/routing/mno_enterprise/jpi/v1/admin/cloud_apps_controller_routing_spec.rb +24 -0
  190. data/spec/routing/mno_enterprise/jpi/v1/admin/invoices_controller_routing_spec.rb +37 -0
  191. data/spec/routing/mno_enterprise/jpi/v1/admin/organizations_controller_routing_spec.rb +20 -0
  192. data/spec/routing/mno_enterprise/jpi/v1/admin/tenant_invoices_controller_routing_spec.rb +16 -0
  193. data/spec/routing/mno_enterprise/jpi/v1/admin/users_controller_routing_spec.rb +24 -0
  194. data/spec/routing/mno_enterprise/jpi/v1/app_instances_controller_routing_spec.rb +12 -0
  195. data/spec/routing/mno_enterprise/jpi/v1/app_instances_sync_controller_routing_spec.rb +15 -0
  196. data/spec/routing/mno_enterprise/jpi/v1/current_users_controller_routing_spec.rb +28 -0
  197. data/spec/routing/mno_enterprise/jpi/v1/deletion_requests_controller_routing_spec.rb +24 -0
  198. data/spec/routing/mno_enterprise/jpi/v1/impac/kpis_controller_routing_spec.rb +22 -0
  199. data/spec/routing/mno_enterprise/jpi/v1/marketplace_controller_routing_spec.rb +16 -0
  200. data/spec/routing/mno_enterprise/jpi/v1/organizations_controller_routing_spec.rb +44 -0
  201. data/spec/routing/mno_enterprise/jpi/v1/teams_controller_routing_spec.rb +36 -0
  202. data/spec/routing/mno_enterprise/org_invites_controller_routing_spec.rb +12 -0
  203. data/spec/routing/mno_enterprise/pages_controller_routing_spec.rb +29 -0
  204. data/spec/routing/mno_enterprise/provision_controller_routing_spec.rb +15 -0
  205. data/spec/routing/mno_enterprise/status_controller_routing_spec.rb +19 -0
  206. data/spec/routing/mno_enterprise/webhook/o_auth_controller_routing_spec.rb +27 -0
  207. data/spec/spec_helper.rb +88 -0
  208. metadata +402 -0
@@ -0,0 +1,24 @@
1
+ require 'rails_helper'
2
+
3
+ module MnoEnterprise
4
+ RSpec.describe Jpi::V1::Admin::UsersController, type: :routing do
5
+ routes { MnoEnterprise::Engine.routes }
6
+
7
+ it 'routes to #index' do
8
+ expect(get('/jpi/v1/admin/users')).to route_to("mno_enterprise/jpi/v1/admin/users#index", format: "json")
9
+ end
10
+
11
+ it 'routes to #show' do
12
+ expect(get('/jpi/v1/admin/users/1')).to route_to("mno_enterprise/jpi/v1/admin/users#show", format: "json", id: '1')
13
+ end
14
+
15
+ it 'routes to #update' do
16
+ expect(put('/jpi/v1/admin/users/1')).to route_to("mno_enterprise/jpi/v1/admin/users#update", id: '1', format: 'json')
17
+ end
18
+
19
+ it 'routes to #destroy' do
20
+ expect(delete('/jpi/v1/admin/users/1')).to route_to("mno_enterprise/jpi/v1/admin/users#destroy", id: '1', format: 'json')
21
+ end
22
+ end
23
+ end
24
+
@@ -0,0 +1,12 @@
1
+ require 'rails_helper'
2
+
3
+ module MnoEnterprise
4
+ RSpec.describe Jpi::V1::AppInstancesController, type: :routing do
5
+ routes { MnoEnterprise::Engine.routes }
6
+
7
+ it 'routes to #index' do
8
+ expect(get('/jpi/v1/organizations/1/app_instances')).to route_to("mno_enterprise/jpi/v1/app_instances#index", organization_id: '1')
9
+ end
10
+ end
11
+ end
12
+
@@ -0,0 +1,15 @@
1
+ require 'rails_helper'
2
+
3
+ module MnoEnterprise
4
+ RSpec.describe Jpi::V1::AppInstancesSyncController, type: :routing do
5
+ routes { MnoEnterprise::Engine.routes }
6
+
7
+ it "routes to #index" do
8
+ expect(get("/jpi/v1/organizations/org-fbba/app_instances_sync")).to route_to("mno_enterprise/jpi/v1/app_instances_sync#index",organization_id: 'org-fbba')
9
+ end
10
+
11
+ it "routes to #create" do
12
+ expect(post("/jpi/v1/organizations/org-fbba/app_instances_sync")).to route_to("mno_enterprise/jpi/v1/app_instances_sync#create",organization_id: 'org-fbba')
13
+ end
14
+ end
15
+ end
@@ -0,0 +1,28 @@
1
+ require 'rails_helper'
2
+
3
+ module MnoEnterprise
4
+ RSpec.describe Jpi::V1::CurrentUsersController, type: :routing do
5
+ routes { MnoEnterprise::Engine.routes }
6
+
7
+ it 'routes to #show' do
8
+ expect(get('/jpi/v1/current_user')).to route_to("mno_enterprise/jpi/v1/current_users#show")
9
+ end
10
+
11
+ it 'routes to #update' do
12
+ expect(put('/jpi/v1/current_user')).to route_to("mno_enterprise/jpi/v1/current_users#update")
13
+ end
14
+
15
+ it 'routes to #update_password' do
16
+ expect(put('/jpi/v1/current_user/update_password')).to route_to("mno_enterprise/jpi/v1/current_users#update_password")
17
+ end
18
+
19
+ # it 'routes to #create_deletion_request' do
20
+ # expect(post('/jpi/v1/current_user/deletion_request')).to route_to("mno_enterprise/jpi/v1/current_users#create_deletion_request")
21
+ # end
22
+ #
23
+ # it 'routes to #cancel_deletion_request' do
24
+ # expect(delete('/jpi/v1/current_user/deletion_request')).to route_to("mno_enterprise/jpi/v1/current_users#cancel_deletion_request")
25
+ # end
26
+ end
27
+ end
28
+
@@ -0,0 +1,24 @@
1
+ require 'rails_helper'
2
+
3
+ module MnoEnterprise
4
+ RSpec.describe Jpi::V1::DeletionRequestsController, type: :routing do
5
+ routes { MnoEnterprise::Engine.routes }
6
+
7
+ it 'routes to #show' do
8
+ expect(get('/jpi/v1/deletion_requests/1')).to route_to("mno_enterprise/jpi/v1/deletion_requests#show", id: "1")
9
+ end
10
+
11
+ it 'routes to #create' do
12
+ expect(post('/jpi/v1/deletion_requests')).to route_to('mno_enterprise/jpi/v1/deletion_requests#create')
13
+ end
14
+
15
+ it 'routes to #resend' do
16
+ expect(put('/jpi/v1/deletion_requests/1/resend')).to route_to('mno_enterprise/jpi/v1/deletion_requests#resend', id: '1')
17
+ end
18
+
19
+ it 'routes to #destroy' do
20
+ expect(delete('/jpi/v1/deletion_requests/1')).to route_to('mno_enterprise/jpi/v1/deletion_requests#destroy', id: '1')
21
+ end
22
+ end
23
+ end
24
+
@@ -0,0 +1,22 @@
1
+ require 'rails_helper'
2
+
3
+ module MnoEnterprise
4
+ RSpec.describe Jpi::V1::Impac::KpisController, type: :routing do
5
+ routes { MnoEnterprise::Engine.routes }
6
+
7
+ describe 'collection routes (dashboard nested)' do
8
+ it 'routes to #update' do
9
+ expect(put('/jpi/v1/impac/kpis/2')).to route_to('mno_enterprise/jpi/v1/impac/kpis#update', id: '2')
10
+ end
11
+
12
+ it 'routes to #destroy' do
13
+ expect(delete('/jpi/v1/impac/kpis/2')).to route_to('mno_enterprise/jpi/v1/impac/kpis#destroy', id: '2')
14
+ end
15
+
16
+ it 'routes to #create' do
17
+ expect(post('/jpi/v1/impac/dashboards/1/kpis')).to route_to('mno_enterprise/jpi/v1/impac/kpis#create', dashboard_id: '1')
18
+ end
19
+ end
20
+
21
+ end
22
+ end
@@ -0,0 +1,16 @@
1
+ require 'rails_helper'
2
+
3
+ module MnoEnterprise
4
+ RSpec.describe Jpi::V1::MarketplaceController, type: :routing do
5
+ routes { MnoEnterprise::Engine.routes }
6
+
7
+ it 'routes to #index' do
8
+ expect(get('/jpi/v1/marketplace')).to route_to("mno_enterprise/jpi/v1/marketplace#index")
9
+ end
10
+
11
+ it 'routes to #show' do
12
+ expect(get('/jpi/v1/marketplace/1')).to route_to("mno_enterprise/jpi/v1/marketplace#show", id: '1')
13
+ end
14
+ end
15
+ end
16
+
@@ -0,0 +1,44 @@
1
+ require 'rails_helper'
2
+
3
+ module MnoEnterprise
4
+ RSpec.describe Jpi::V1::OrganizationsController, type: :routing do
5
+ routes { MnoEnterprise::Engine.routes }
6
+
7
+ it 'routes to #index' do
8
+ expect(get('/jpi/v1/organizations')).to route_to("mno_enterprise/jpi/v1/organizations#index")
9
+ end
10
+
11
+ it 'routes to #show' do
12
+ expect(get('/jpi/v1/organizations/1')).to route_to("mno_enterprise/jpi/v1/organizations#show", id: '1')
13
+ end
14
+
15
+ it 'routes to #create' do
16
+ expect(post('/jpi/v1/organizations')).to route_to("mno_enterprise/jpi/v1/organizations#create")
17
+ end
18
+
19
+ it 'routes to #update' do
20
+ expect(put('/jpi/v1/organizations/1')).to route_to("mno_enterprise/jpi/v1/organizations#update", id: '1')
21
+ end
22
+
23
+ it 'routes to #destroy' do
24
+ expect(delete('/jpi/v1/organizations/1')).to route_to("mno_enterprise/jpi/v1/organizations#destroy", id: '1')
25
+ end
26
+
27
+ it "routes to #update_billing" do
28
+ expect(put("/jpi/v1/organizations/1/update_billing")).to route_to("mno_enterprise/jpi/v1/organizations#update_billing",id: '1')
29
+ end
30
+
31
+ it "routes to #invite_members" do
32
+ expect(put("/jpi/v1/organizations/1/invite_members")).to route_to("mno_enterprise/jpi/v1/organizations#invite_members",id: '1')
33
+ end
34
+
35
+ it "routes to #update_member" do
36
+ expect(put("/jpi/v1/organizations/1/update_member")).to route_to("mno_enterprise/jpi/v1/organizations#update_member",id: '1')
37
+ end
38
+
39
+ it "routes to #remove_member" do
40
+ expect(put("/jpi/v1/organizations/1/remove_member")).to route_to("mno_enterprise/jpi/v1/organizations#remove_member",id: '1')
41
+ end
42
+ end
43
+ end
44
+
@@ -0,0 +1,36 @@
1
+ require 'rails_helper'
2
+
3
+ module MnoEnterprise
4
+ RSpec.describe Jpi::V1::TeamsController, type: :routing do
5
+ routes { MnoEnterprise::Engine.routes }
6
+
7
+ it 'routes to #index' do
8
+ expect(get('/jpi/v1/organizations/1/teams')).to route_to("mno_enterprise/jpi/v1/teams#index", organization_id: '1')
9
+ end
10
+
11
+ it 'routes to #show' do
12
+ expect(get('/jpi/v1/teams/1')).to route_to("mno_enterprise/jpi/v1/teams#show", id: '1')
13
+ end
14
+
15
+ it 'routes to #create' do
16
+ expect(post('/jpi/v1/organizations/1/teams')).to route_to("mno_enterprise/jpi/v1/teams#create", organization_id: '1')
17
+ end
18
+
19
+ it 'routes to #update' do
20
+ expect(put('/jpi/v1/teams/1')).to route_to("mno_enterprise/jpi/v1/teams#update", id: '1')
21
+ end
22
+
23
+ it 'routes to #add_users' do
24
+ expect(put('/jpi/v1/teams/1/add_users')).to route_to("mno_enterprise/jpi/v1/teams#add_users", id: '1')
25
+ end
26
+
27
+ it 'routes to #remove_users' do
28
+ expect(put('/jpi/v1/teams/1/remove_users')).to route_to("mno_enterprise/jpi/v1/teams#remove_users", id: '1')
29
+ end
30
+
31
+ it 'routes to #destroy' do
32
+ expect(delete('/jpi/v1/teams/1')).to route_to("mno_enterprise/jpi/v1/teams#destroy", id: '1')
33
+ end
34
+ end
35
+ end
36
+
@@ -0,0 +1,12 @@
1
+ require "rails_helper"
2
+
3
+ module MnoEnterprise
4
+ RSpec.describe OrgInvitesController, type: :routing do
5
+ routes { MnoEnterprise::Engine.routes }
6
+
7
+ it "routes to #show" do
8
+ expect(get("/org_invites/1")).to route_to("mno_enterprise/org_invites#show", id: '1')
9
+ end
10
+
11
+ end
12
+ end
@@ -0,0 +1,29 @@
1
+ require "rails_helper"
2
+
3
+ module MnoEnterprise
4
+ RSpec.describe PagesController, type: :routing do
5
+ routes { MnoEnterprise::Engine.routes }
6
+
7
+ it "routes to #launch" do
8
+ expect(get("/launch/cld-1f47d5s4")).to route_to("mno_enterprise/pages#launch", id: 'cld-1f47d5s4')
9
+ expect(get("/launch/bla.mcube.co")).to route_to("mno_enterprise/pages#launch", id: 'bla.mcube.co')
10
+ end
11
+
12
+ it "routes to #launch" do
13
+ expect(get("/loading/cld-1f47d5s4")).to route_to("mno_enterprise/pages#loading", id: 'cld-1f47d5s4')
14
+ expect(get("/loading/bla.mcube.co")).to route_to("mno_enterprise/pages#loading", id: 'bla.mcube.co')
15
+ end
16
+
17
+ it 'routes to #app_access_unauthorized' do
18
+ expect(get("/app_access_unauthorized")).to route_to("mno_enterprise/pages#app_access_unauthorized")
19
+ end
20
+
21
+ it 'routes to #billing_details_required' do
22
+ expect(get("/billing_details_required")).to route_to("mno_enterprise/pages#billing_details_required")
23
+ end
24
+
25
+ it 'routes to #app_logout' do
26
+ expect(get("/app_logout")).to route_to("mno_enterprise/pages#app_logout")
27
+ end
28
+ end
29
+ end
@@ -0,0 +1,15 @@
1
+ require "rails_helper"
2
+
3
+ module MnoEnterprise
4
+ RSpec.describe ProvisionController, type: :routing do
5
+ routes { MnoEnterprise::Engine.routes }
6
+
7
+ it "routes to #new" do
8
+ expect(get("/provision/new")).to route_to("mno_enterprise/provision#new")
9
+ end
10
+
11
+ it 'routes to #create' do
12
+ expect(post("/provision")).to route_to("mno_enterprise/provision#create")
13
+ end
14
+ end
15
+ end
@@ -0,0 +1,19 @@
1
+ require "rails_helper"
2
+
3
+ module MnoEnterprise
4
+ RSpec.describe StatusController, type: :routing do
5
+ routes { MnoEnterprise::Engine.routes }
6
+
7
+ it 'routes to #ping' do
8
+ expect(get('/ping')).to route_to('mno_enterprise/status#ping')
9
+ end
10
+
11
+ it 'routes to #version' do
12
+ expect(get('/version')).to route_to('mno_enterprise/status#version')
13
+ end
14
+
15
+ it 'routes to #health_check' do
16
+ expect(get('/health_check')).to route_to('health_check/health_check#index')
17
+ end
18
+ end
19
+ end
@@ -0,0 +1,27 @@
1
+ require "rails_helper"
2
+
3
+ module MnoEnterprise
4
+ RSpec.describe Webhook::OAuthController, type: :routing do
5
+ routes { MnoEnterprise::Engine.routes }
6
+
7
+ it "routes to #authorize" do
8
+ expect(get("/webhook/oauth/cld-1f47d5s4/authorize")).to route_to("mno_enterprise/webhook/o_auth#authorize", id: 'cld-1f47d5s4')
9
+ expect(get("/webhook/oauth/bla.mcube.co/authorize")).to route_to("mno_enterprise/webhook/o_auth#authorize", id: 'bla.mcube.co')
10
+ end
11
+
12
+ it "routes to #callback" do
13
+ expect(get("/webhook/oauth/cld-1f47d5s4/callback")).to route_to("mno_enterprise/webhook/o_auth#callback", id: 'cld-1f47d5s4')
14
+ expect(get("/webhook/oauth/bla.mcube.co/callback")).to route_to("mno_enterprise/webhook/o_auth#callback", id: 'bla.mcube.co')
15
+ end
16
+
17
+ it "routes to #disconnect" do
18
+ expect(get("/webhook/oauth/cld-1f47d5s4/disconnect")).to route_to("mno_enterprise/webhook/o_auth#disconnect", id: 'cld-1f47d5s4')
19
+ expect(get("/webhook/oauth/bla.mcube.co/disconnect")).to route_to("mno_enterprise/webhook/o_auth#disconnect", id: 'bla.mcube.co')
20
+ end
21
+
22
+ it "routes to #sync" do
23
+ expect(get("/webhook/oauth/cld-1f47d5s4/sync")).to route_to("mno_enterprise/webhook/o_auth#sync", id: 'cld-1f47d5s4')
24
+ expect(get("/webhook/oauth/bla.mcube.co/sync")).to route_to("mno_enterprise/webhook/o_auth#sync", id: 'bla.mcube.co')
25
+ end
26
+ end
27
+ end
@@ -0,0 +1,88 @@
1
+ # This file was generated by the `rails generate rspec:install` command. Conventionally, all
2
+ # specs live under a `spec` directory, which RSpec adds to the `$LOAD_PATH`.
3
+ # The generated `.rspec` file contains `--require spec_helper` which will cause this
4
+ # file to always be loaded, without a need to explicitly require it in any files.
5
+ #
6
+ # Given that it is always loaded, you are encouraged to keep this file as
7
+ # light-weight as possible. Requiring heavyweight dependencies from this file
8
+ # will add to the boot time of your test suite on EVERY test run, even for an
9
+ # individual file that may not need all of that loaded. Instead, make a
10
+ # separate helper file that requires this one and then use it only in the specs
11
+ # that actually need it.
12
+ #
13
+ # The `.rspec` file also contains a few flags that are not defaults but that
14
+ # users commonly want.
15
+ #
16
+ # See http://rubydoc.info/gems/rspec-core/RSpec/Core/Configuration
17
+ require "fakeweb"
18
+
19
+ RSpec.configure do |config|
20
+ config.before(:suite) do
21
+ FakeWeb.allow_net_connect = false
22
+ FakeWeb.register_uri(:post, "https://my_tenant_id:my_tenant_access_key@api-enterprise.maestrano.com/api/mnoe/v1/audit_events", status: 200)
23
+ end
24
+
25
+ config.after(:suite) do
26
+ FakeWeb.allow_net_connect = true
27
+ end
28
+ # The settings below are suggested to provide a good initial experience
29
+ # with RSpec, but feel free to customize to your heart's content.
30
+ =begin
31
+ # These two settings work together to allow you to limit a spec run
32
+ # to individual examples or groups you care about by tagging them with
33
+ # `:focus` metadata. When nothing is tagged with `:focus`, all examples
34
+ # get run.
35
+ config.filter_run :focus
36
+ config.run_all_when_everything_filtered = true
37
+
38
+ # Many RSpec users commonly either run the entire suite or an individual
39
+ # file, and it's useful to allow more verbose output when running an
40
+ # individual spec file.
41
+ if config.files_to_run.one?
42
+ # Use the documentation formatter for detailed output,
43
+ # unless a formatter has already been configured
44
+ # (e.g. via a command-line flag).
45
+ config.default_formatter = 'doc'
46
+ end
47
+
48
+ # Print the 10 slowest examples and example groups at the
49
+ # end of the spec run, to help surface which specs are running
50
+ # particularly slow.
51
+ config.profile_examples = 10
52
+
53
+ # Run specs in random order to surface order dependencies. If you find an
54
+ # order dependency and want to debug it, you can fix the order by providing
55
+ # the seed, which is printed after each run.
56
+ # --seed 1234
57
+ config.order = :random
58
+
59
+ # Seed global randomization in this process using the `--seed` CLI option.
60
+ # Setting this allows you to use `--seed` to deterministically reproduce
61
+ # test failures related to randomization by passing the same `--seed` value
62
+ # as the one that triggered the failure.
63
+ Kernel.srand config.seed
64
+
65
+ # rspec-expectations config goes here. You can use an alternate
66
+ # assertion/expectation library such as wrong or the stdlib/minitest
67
+ # assertions if you prefer.
68
+ config.expect_with :rspec do |expectations|
69
+ # Enable only the newer, non-monkey-patching expect syntax.
70
+ # For more details, see:
71
+ # - http://myronmars.to/n/dev-blog/2012/06/rspecs-new-expectation-syntax
72
+ expectations.syntax = :expect
73
+ end
74
+
75
+ # rspec-mocks config goes here. You can use an alternate test double
76
+ # library (such as bogus or mocha) by changing the `mock_with` option here.
77
+ config.mock_with :rspec do |mocks|
78
+ # Enable only the newer, non-monkey-patching expect syntax.
79
+ # For more details, see:
80
+ # - http://teaisaweso.me/blog/2013/05/27/rspecs-new-message-expectation-syntax/
81
+ mocks.syntax = :expect
82
+
83
+ # Prevents you from mocking or stubbing a method that does not exist on
84
+ # a real object. This is generally recommended.
85
+ mocks.verify_partial_doubles = true
86
+ end
87
+ =end
88
+ end
metadata ADDED
@@ -0,0 +1,402 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: mno-enterprise-api
3
+ version: !ruby/object:Gem::Version
4
+ version: 2.0.0
5
+ platform: ruby
6
+ authors:
7
+ - Arnaud Lachaume
8
+ - Olivier Brisse
9
+ autorequire:
10
+ bindir: bin
11
+ cert_chain: []
12
+ date: 2016-04-05 00:00:00.000000000 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
15
+ name: mno-enterprise-core
16
+ requirement: !ruby/object:Gem::Requirement
17
+ requirements:
18
+ - - '='
19
+ - !ruby/object:Gem::Version
20
+ version: 2.0.0
21
+ type: :runtime
22
+ prerelease: false
23
+ version_requirements: !ruby/object:Gem::Requirement
24
+ requirements:
25
+ - - '='
26
+ - !ruby/object:Gem::Version
27
+ version: 2.0.0
28
+ - !ruby/object:Gem::Dependency
29
+ name: jbuilder
30
+ requirement: !ruby/object:Gem::Requirement
31
+ requirements:
32
+ - - "~>"
33
+ - !ruby/object:Gem::Version
34
+ version: 2.2.16
35
+ type: :runtime
36
+ prerelease: false
37
+ version_requirements: !ruby/object:Gem::Requirement
38
+ requirements:
39
+ - - "~>"
40
+ - !ruby/object:Gem::Version
41
+ version: 2.2.16
42
+ - !ruby/object:Gem::Dependency
43
+ name: haml
44
+ requirement: !ruby/object:Gem::Requirement
45
+ requirements:
46
+ - - "~>"
47
+ - !ruby/object:Gem::Version
48
+ version: '4.0'
49
+ type: :runtime
50
+ prerelease: false
51
+ version_requirements: !ruby/object:Gem::Requirement
52
+ requirements:
53
+ - - "~>"
54
+ - !ruby/object:Gem::Version
55
+ version: '4.0'
56
+ - !ruby/object:Gem::Dependency
57
+ name: coffee-rails
58
+ requirement: !ruby/object:Gem::Requirement
59
+ requirements:
60
+ - - "~>"
61
+ - !ruby/object:Gem::Version
62
+ version: '4.1'
63
+ type: :runtime
64
+ prerelease: false
65
+ version_requirements: !ruby/object:Gem::Requirement
66
+ requirements:
67
+ - - "~>"
68
+ - !ruby/object:Gem::Version
69
+ version: '4.1'
70
+ - !ruby/object:Gem::Dependency
71
+ name: health_check
72
+ requirement: !ruby/object:Gem::Requirement
73
+ requirements:
74
+ - - "~>"
75
+ - !ruby/object:Gem::Version
76
+ version: '1.5'
77
+ type: :runtime
78
+ prerelease: false
79
+ version_requirements: !ruby/object:Gem::Requirement
80
+ requirements:
81
+ - - "~>"
82
+ - !ruby/object:Gem::Version
83
+ version: '1.5'
84
+ - !ruby/object:Gem::Dependency
85
+ name: httparty
86
+ requirement: !ruby/object:Gem::Requirement
87
+ requirements:
88
+ - - "~>"
89
+ - !ruby/object:Gem::Version
90
+ version: 0.13.7
91
+ type: :runtime
92
+ prerelease: false
93
+ version_requirements: !ruby/object:Gem::Requirement
94
+ requirements:
95
+ - - "~>"
96
+ - !ruby/object:Gem::Version
97
+ version: 0.13.7
98
+ - !ruby/object:Gem::Dependency
99
+ name: sprockets-rails
100
+ requirement: !ruby/object:Gem::Requirement
101
+ requirements:
102
+ - - "~>"
103
+ - !ruby/object:Gem::Version
104
+ version: '2.3'
105
+ type: :runtime
106
+ prerelease: false
107
+ version_requirements: !ruby/object:Gem::Requirement
108
+ requirements:
109
+ - - "~>"
110
+ - !ruby/object:Gem::Version
111
+ version: '2.3'
112
+ description: Maestrano Enterprise - essentials API
113
+ email:
114
+ - developers@maestrano.com
115
+ executables: []
116
+ extensions: []
117
+ extra_rdoc_files: []
118
+ files:
119
+ - LICENSE
120
+ - Rakefile
121
+ - app/assets/javascripts/mno_enterprise/angular/loading-page.app.js.coffee
122
+ - app/assets/javascripts/mno_enterprise/application.js
123
+ - app/controllers/devise/password_expired_controller.rb
124
+ - app/controllers/mno_enterprise/auth/confirmations_controller.rb
125
+ - app/controllers/mno_enterprise/auth/omniauth_callbacks_controller.rb
126
+ - app/controllers/mno_enterprise/auth/passwords_controller.rb
127
+ - app/controllers/mno_enterprise/auth/registrations_controller.rb
128
+ - app/controllers/mno_enterprise/auth/sessions_controller.rb
129
+ - app/controllers/mno_enterprise/auth/unlocks_controller.rb
130
+ - app/controllers/mno_enterprise/deletion_requests_controller.rb
131
+ - app/controllers/mno_enterprise/impersonate_controller.rb
132
+ - app/controllers/mno_enterprise/jpi/v1/admin/audit_events_controller.rb
133
+ - app/controllers/mno_enterprise/jpi/v1/admin/base_resource_controller.rb
134
+ - app/controllers/mno_enterprise/jpi/v1/admin/cloud_apps_controller.rb
135
+ - app/controllers/mno_enterprise/jpi/v1/admin/invoices_controller.rb
136
+ - app/controllers/mno_enterprise/jpi/v1/admin/organizations_controller.rb
137
+ - app/controllers/mno_enterprise/jpi/v1/admin/tenant_invoices_controller.rb
138
+ - app/controllers/mno_enterprise/jpi/v1/admin/users_controller.rb
139
+ - app/controllers/mno_enterprise/jpi/v1/app_instances_controller.rb
140
+ - app/controllers/mno_enterprise/jpi/v1/app_instances_sync_controller.rb
141
+ - app/controllers/mno_enterprise/jpi/v1/base_resource_controller.rb
142
+ - app/controllers/mno_enterprise/jpi/v1/current_users_controller.rb
143
+ - app/controllers/mno_enterprise/jpi/v1/deletion_requests_controller.rb
144
+ - app/controllers/mno_enterprise/jpi/v1/impac/dashboards_controller.rb
145
+ - app/controllers/mno_enterprise/jpi/v1/impac/kpis_controller.rb
146
+ - app/controllers/mno_enterprise/jpi/v1/impac/widgets_controller.rb
147
+ - app/controllers/mno_enterprise/jpi/v1/industry_bundle_controller.rb
148
+ - app/controllers/mno_enterprise/jpi/v1/marketplace_controller.rb
149
+ - app/controllers/mno_enterprise/jpi/v1/organizations_controller.rb
150
+ - app/controllers/mno_enterprise/jpi/v1/shopping_cart_controller.rb
151
+ - app/controllers/mno_enterprise/jpi/v1/teams_controller.rb
152
+ - app/controllers/mno_enterprise/org_invites_controller.rb
153
+ - app/controllers/mno_enterprise/pages_controller.rb
154
+ - app/controllers/mno_enterprise/provision_controller.rb
155
+ - app/controllers/mno_enterprise/status_controller.rb
156
+ - app/controllers/mno_enterprise/webhook/o_auth_controller.rb
157
+ - app/mailers/mno_enterprise/system_notification_mailer.rb
158
+ - app/models/mno_enterprise/health_check.rb
159
+ - app/views/devise/password_expired/show.html.haml
160
+ - app/views/mno_enterprise/auth/confirmations/default/_form.html.haml
161
+ - app/views/mno_enterprise/auth/confirmations/default/_lounge.html.haml
162
+ - app/views/mno_enterprise/auth/confirmations/default/_show.html.haml
163
+ - app/views/mno_enterprise/auth/confirmations/lounge.html.haml
164
+ - app/views/mno_enterprise/auth/confirmations/material/_form.html.haml
165
+ - app/views/mno_enterprise/auth/confirmations/material/_lounge.html.haml
166
+ - app/views/mno_enterprise/auth/confirmations/material/_show.html.haml
167
+ - app/views/mno_enterprise/auth/confirmations/new.html.haml
168
+ - app/views/mno_enterprise/auth/confirmations/show.html.haml
169
+ - app/views/mno_enterprise/auth/mailer/confirmation_instructions.html.haml
170
+ - app/views/mno_enterprise/auth/mailer/reset_password_instructions.html.haml
171
+ - app/views/mno_enterprise/auth/mailer/unlock_instructions.html.haml
172
+ - app/views/mno_enterprise/auth/passwords/edit.html.haml
173
+ - app/views/mno_enterprise/auth/passwords/new.html.haml
174
+ - app/views/mno_enterprise/auth/registrations/default/_form.html.haml
175
+ - app/views/mno_enterprise/auth/registrations/default/_new.html.haml
176
+ - app/views/mno_enterprise/auth/registrations/material/_form.html.haml
177
+ - app/views/mno_enterprise/auth/registrations/material/_new.html.haml
178
+ - app/views/mno_enterprise/auth/registrations/new.html.haml
179
+ - app/views/mno_enterprise/auth/sessions/default/_form.html.haml
180
+ - app/views/mno_enterprise/auth/sessions/default/_new.html.haml
181
+ - app/views/mno_enterprise/auth/sessions/material/_form.html.haml
182
+ - app/views/mno_enterprise/auth/sessions/material/_new.html.haml
183
+ - app/views/mno_enterprise/auth/sessions/new.html.haml
184
+ - app/views/mno_enterprise/auth/shared/_links.html.haml
185
+ - app/views/mno_enterprise/auth/unlocks/new.html.haml
186
+ - app/views/mno_enterprise/deletion_requests/show.html.haml
187
+ - app/views/mno_enterprise/jpi/v1/admin/audit_events/_audit_event.json.jbuilder
188
+ - app/views/mno_enterprise/jpi/v1/admin/audit_events/index.json.jbuilder
189
+ - app/views/mno_enterprise/jpi/v1/admin/cloud_apps/_cloud_app.json.jbuilder
190
+ - app/views/mno_enterprise/jpi/v1/admin/cloud_apps/index.json.jbuilder
191
+ - app/views/mno_enterprise/jpi/v1/admin/cloud_apps/show.json.jbuilder
192
+ - app/views/mno_enterprise/jpi/v1/admin/invoices/_invoice.json.jbuilder
193
+ - app/views/mno_enterprise/jpi/v1/admin/invoices/index.json.jbuilder
194
+ - app/views/mno_enterprise/jpi/v1/admin/invoices/show.json.jbuilder
195
+ - app/views/mno_enterprise/jpi/v1/admin/organizations/_credit_card.json.jbuilder
196
+ - app/views/mno_enterprise/jpi/v1/admin/organizations/_invoices.json.jbuilder
197
+ - app/views/mno_enterprise/jpi/v1/admin/organizations/_member.json.jbuilder
198
+ - app/views/mno_enterprise/jpi/v1/admin/organizations/_organization.json.jbuilder
199
+ - app/views/mno_enterprise/jpi/v1/admin/organizations/in_arrears.json.jbuilder
200
+ - app/views/mno_enterprise/jpi/v1/admin/organizations/index.json.jbuilder
201
+ - app/views/mno_enterprise/jpi/v1/admin/organizations/show.json.jbuilder
202
+ - app/views/mno_enterprise/jpi/v1/admin/tenant_invoices/_tenant_invoice.json.jbuilder
203
+ - app/views/mno_enterprise/jpi/v1/admin/tenant_invoices/index.json.jbuilder
204
+ - app/views/mno_enterprise/jpi/v1/admin/tenant_invoices/show.json.jbuilder
205
+ - app/views/mno_enterprise/jpi/v1/admin/users/_user.json.jbuilder
206
+ - app/views/mno_enterprise/jpi/v1/admin/users/index.json.jbuilder
207
+ - app/views/mno_enterprise/jpi/v1/admin/users/show.json.jbuilder
208
+ - app/views/mno_enterprise/jpi/v1/app_instances/_resource.json.jbuilder
209
+ - app/views/mno_enterprise/jpi/v1/app_instances/index.json.jbuilder
210
+ - app/views/mno_enterprise/jpi/v1/app_instances/show.json.jbuilder
211
+ - app/views/mno_enterprise/jpi/v1/billing/index.json.jbuilder
212
+ - app/views/mno_enterprise/jpi/v1/current_users/show.json.jbuilder
213
+ - app/views/mno_enterprise/jpi/v1/impac/dashboards/_dashboard.json.jbuilder
214
+ - app/views/mno_enterprise/jpi/v1/impac/dashboards/index.json.jbuilder
215
+ - app/views/mno_enterprise/jpi/v1/impac/dashboards/show.json.jbuilder
216
+ - app/views/mno_enterprise/jpi/v1/impac/kpis/_kpi.json.jbuilder
217
+ - app/views/mno_enterprise/jpi/v1/impac/kpis/show.json.jbuilder
218
+ - app/views/mno_enterprise/jpi/v1/impac/widgets/_widget.json.jbuilder
219
+ - app/views/mno_enterprise/jpi/v1/impac/widgets/show.json.jbuilder
220
+ - app/views/mno_enterprise/jpi/v1/marketplace/_app.json.jbuilder
221
+ - app/views/mno_enterprise/jpi/v1/marketplace/index.json.jbuilder
222
+ - app/views/mno_enterprise/jpi/v1/marketplace/show.json.jbuilder
223
+ - app/views/mno_enterprise/jpi/v1/organizations/_arrears.json.jbuilder
224
+ - app/views/mno_enterprise/jpi/v1/organizations/_billing.json.jbuilder
225
+ - app/views/mno_enterprise/jpi/v1/organizations/_credit_card.json.jbuilder
226
+ - app/views/mno_enterprise/jpi/v1/organizations/_current_user.json.jbuilder
227
+ - app/views/mno_enterprise/jpi/v1/organizations/_invoices.json.jbuilder
228
+ - app/views/mno_enterprise/jpi/v1/organizations/_member.json.jbuilder
229
+ - app/views/mno_enterprise/jpi/v1/organizations/_organization.json.jbuilder
230
+ - app/views/mno_enterprise/jpi/v1/organizations/credit_card.json.jbuilder
231
+ - app/views/mno_enterprise/jpi/v1/organizations/index.json.jbuilder
232
+ - app/views/mno_enterprise/jpi/v1/organizations/members.json.jbuilder
233
+ - app/views/mno_enterprise/jpi/v1/organizations/show.json.jbuilder
234
+ - app/views/mno_enterprise/jpi/v1/organizations/show_reduced.json.jbuilder
235
+ - app/views/mno_enterprise/jpi/v1/shopping_cart/organizations.json.jbuilder
236
+ - app/views/mno_enterprise/jpi/v1/shopping_cart/show.json.jbuilder
237
+ - app/views/mno_enterprise/jpi/v1/shopping_cart/show_item.json.jbuilder
238
+ - app/views/mno_enterprise/jpi/v1/teams/_team.json.jbuilder
239
+ - app/views/mno_enterprise/jpi/v1/teams/index.json.jbuilder
240
+ - app/views/mno_enterprise/jpi/v1/teams/show.json.jbuilder
241
+ - app/views/mno_enterprise/pages/app_access_unauthorized.html.haml
242
+ - app/views/mno_enterprise/pages/app_logout.html.haml
243
+ - app/views/mno_enterprise/pages/billing_details_required.html.haml
244
+ - app/views/mno_enterprise/pages/loading.html.erb
245
+ - app/views/mno_enterprise/provision/_provision_apps.html.haml
246
+ - app/views/mno_enterprise/provision/_select_organization.html.haml
247
+ - app/views/mno_enterprise/provision/new.html.haml
248
+ - app/views/mno_enterprise/webhook/o_auth/authorize.html.haml
249
+ - app/views/mno_enterprise/webhook/o_auth/providers/myob.html.haml
250
+ - app/views/mno_enterprise/webhook/o_auth/providers/xero.html.haml
251
+ - config/initializers/devise.rb
252
+ - config/initializers/devise_extension.rb
253
+ - config/initializers/devise_log.rb
254
+ - config/initializers/health_check.rb
255
+ - config/initializers/main_app_version.rb
256
+ - config/routes.rb
257
+ - lib/mno-enterprise-api.rb
258
+ - lib/mno_enterprise/api.rb
259
+ - lib/mno_enterprise/api/engine.rb
260
+ - lib/mno_enterprise/concerns/controllers/deletion_requests_controller.rb
261
+ - lib/mno_enterprise/concerns/controllers/jpi/v1/admin/base_resource_controller.rb
262
+ - lib/mno_enterprise/concerns/controllers/jpi/v1/current_users_controller.rb
263
+ - lib/mno_enterprise/concerns/controllers/jpi/v1/deletion_requests_controller.rb
264
+ - lib/mno_enterprise/concerns/controllers/jpi/v1/impac/dashboards_controller.rb
265
+ - lib/mno_enterprise/concerns/controllers/jpi/v1/organizations_controller.rb
266
+ - lib/mno_enterprise/concerns/controllers/org_invites_controller.rb
267
+ - lib/mno_enterprise/concerns/controllers/pages_controller.rb
268
+ - lib/mno_enterprise/concerns/controllers/provision_controller.rb
269
+ - lib/mno_enterprise/concerns/controllers/webhook/o_auth_controller.rb
270
+ - lib/mno_enterprise/concerns/mailers/system_notification_mailer.rb
271
+ - lib/mno_enterprise/event_logger.rb
272
+ - spec/controllers/mno_enterprise/auth/confirmation_controller_spec.rb
273
+ - spec/controllers/mno_enterprise/deletion_requests_controller_spec.rb
274
+ - spec/controllers/mno_enterprise/impersonate_controller_spec.rb
275
+ - spec/controllers/mno_enterprise/jpi/v1/admin/audit_events_controller_spec.rb
276
+ - spec/controllers/mno_enterprise/jpi/v1/admin/cloud_apps_controller_spec.rb
277
+ - spec/controllers/mno_enterprise/jpi/v1/admin/invoices_controller_spec.rb
278
+ - spec/controllers/mno_enterprise/jpi/v1/admin/organizations_controller_spec.rb
279
+ - spec/controllers/mno_enterprise/jpi/v1/admin/tenant_invoices_controller_spec.rb
280
+ - spec/controllers/mno_enterprise/jpi/v1/admin/users_controller_spec.rb
281
+ - spec/controllers/mno_enterprise/jpi/v1/app_instances_controller_spec.rb
282
+ - spec/controllers/mno_enterprise/jpi/v1/app_instances_sync_controller_spec.rb
283
+ - spec/controllers/mno_enterprise/jpi/v1/current_users_controller_spec.rb
284
+ - spec/controllers/mno_enterprise/jpi/v1/deletion_requests_controller_spec.rb
285
+ - spec/controllers/mno_enterprise/jpi/v1/impac/kpis_controller_spec.rb
286
+ - spec/controllers/mno_enterprise/jpi/v1/marketplace_controller_spec.rb
287
+ - spec/controllers/mno_enterprise/jpi/v1/organizations_controller_spec.rb
288
+ - spec/controllers/mno_enterprise/jpi/v1/team_controller_spec.rb
289
+ - spec/controllers/mno_enterprise/org_invites_controller_spec.rb
290
+ - spec/controllers/mno_enterprise/pages_controller_spec.rb
291
+ - spec/controllers/mno_enterprise/provision_controller_spec.rb
292
+ - spec/controllers/mno_enterprise/status_controller_spec.rb
293
+ - spec/controllers/mno_enterprise/webhook/o_auth_controller_spec.rb
294
+ - spec/lib/mno_enterprise/event_logger_spec.rb
295
+ - spec/mailer/mno_enterprise/system_notification_mailer_spec.rb
296
+ - spec/rails_helper.rb
297
+ - spec/requests/devise/authentication_spec.rb
298
+ - spec/requests/devise/registration_spec.rb
299
+ - spec/routing/devise/confirmation_routing_spec.rb
300
+ - spec/routing/devise/passwords_routing_spec.rb
301
+ - spec/routing/devise/registrations_routing_spec.rb
302
+ - spec/routing/devise/sessions_routing_spec.rb
303
+ - spec/routing/mno_enterprise/deletion_requests_controller_routing_spec.rb
304
+ - spec/routing/mno_enterprise/impersonate_controller_routing.spec.rb
305
+ - spec/routing/mno_enterprise/jpi/v1/admin/audit_events_controller_routing_spec.rb
306
+ - spec/routing/mno_enterprise/jpi/v1/admin/cloud_apps_controller_routing_spec.rb
307
+ - spec/routing/mno_enterprise/jpi/v1/admin/invoices_controller_routing_spec.rb
308
+ - spec/routing/mno_enterprise/jpi/v1/admin/organizations_controller_routing_spec.rb
309
+ - spec/routing/mno_enterprise/jpi/v1/admin/tenant_invoices_controller_routing_spec.rb
310
+ - spec/routing/mno_enterprise/jpi/v1/admin/users_controller_routing_spec.rb
311
+ - spec/routing/mno_enterprise/jpi/v1/app_instances_controller_routing_spec.rb
312
+ - spec/routing/mno_enterprise/jpi/v1/app_instances_sync_controller_routing_spec.rb
313
+ - spec/routing/mno_enterprise/jpi/v1/current_users_controller_routing_spec.rb
314
+ - spec/routing/mno_enterprise/jpi/v1/deletion_requests_controller_routing_spec.rb
315
+ - spec/routing/mno_enterprise/jpi/v1/impac/kpis_controller_routing_spec.rb
316
+ - spec/routing/mno_enterprise/jpi/v1/marketplace_controller_routing_spec.rb
317
+ - spec/routing/mno_enterprise/jpi/v1/organizations_controller_routing_spec.rb
318
+ - spec/routing/mno_enterprise/jpi/v1/teams_controller_routing_spec.rb
319
+ - spec/routing/mno_enterprise/org_invites_controller_routing_spec.rb
320
+ - spec/routing/mno_enterprise/pages_controller_routing_spec.rb
321
+ - spec/routing/mno_enterprise/provision_controller_routing_spec.rb
322
+ - spec/routing/mno_enterprise/status_controller_routing_spec.rb
323
+ - spec/routing/mno_enterprise/webhook/o_auth_controller_routing_spec.rb
324
+ - spec/spec_helper.rb
325
+ homepage: https://maestrano.com
326
+ licenses:
327
+ - Maestrano Enterprise License V1
328
+ metadata: {}
329
+ post_install_message:
330
+ rdoc_options: []
331
+ require_paths:
332
+ - lib
333
+ required_ruby_version: !ruby/object:Gem::Requirement
334
+ requirements:
335
+ - - ">="
336
+ - !ruby/object:Gem::Version
337
+ version: '0'
338
+ required_rubygems_version: !ruby/object:Gem::Requirement
339
+ requirements:
340
+ - - ">="
341
+ - !ruby/object:Gem::Version
342
+ version: '0'
343
+ requirements: []
344
+ rubyforge_project:
345
+ rubygems_version: 2.2.2
346
+ signing_key:
347
+ specification_version: 4
348
+ summary: Maestrano Enterprise - API
349
+ test_files:
350
+ - spec/controllers/mno_enterprise/auth/confirmation_controller_spec.rb
351
+ - spec/controllers/mno_enterprise/deletion_requests_controller_spec.rb
352
+ - spec/controllers/mno_enterprise/impersonate_controller_spec.rb
353
+ - spec/controllers/mno_enterprise/jpi/v1/admin/audit_events_controller_spec.rb
354
+ - spec/controllers/mno_enterprise/jpi/v1/admin/cloud_apps_controller_spec.rb
355
+ - spec/controllers/mno_enterprise/jpi/v1/admin/invoices_controller_spec.rb
356
+ - spec/controllers/mno_enterprise/jpi/v1/admin/organizations_controller_spec.rb
357
+ - spec/controllers/mno_enterprise/jpi/v1/admin/tenant_invoices_controller_spec.rb
358
+ - spec/controllers/mno_enterprise/jpi/v1/admin/users_controller_spec.rb
359
+ - spec/controllers/mno_enterprise/jpi/v1/app_instances_controller_spec.rb
360
+ - spec/controllers/mno_enterprise/jpi/v1/app_instances_sync_controller_spec.rb
361
+ - spec/controllers/mno_enterprise/jpi/v1/current_users_controller_spec.rb
362
+ - spec/controllers/mno_enterprise/jpi/v1/deletion_requests_controller_spec.rb
363
+ - spec/controllers/mno_enterprise/jpi/v1/impac/kpis_controller_spec.rb
364
+ - spec/controllers/mno_enterprise/jpi/v1/marketplace_controller_spec.rb
365
+ - spec/controllers/mno_enterprise/jpi/v1/organizations_controller_spec.rb
366
+ - spec/controllers/mno_enterprise/jpi/v1/team_controller_spec.rb
367
+ - spec/controllers/mno_enterprise/org_invites_controller_spec.rb
368
+ - spec/controllers/mno_enterprise/pages_controller_spec.rb
369
+ - spec/controllers/mno_enterprise/provision_controller_spec.rb
370
+ - spec/controllers/mno_enterprise/status_controller_spec.rb
371
+ - spec/controllers/mno_enterprise/webhook/o_auth_controller_spec.rb
372
+ - spec/lib/mno_enterprise/event_logger_spec.rb
373
+ - spec/mailer/mno_enterprise/system_notification_mailer_spec.rb
374
+ - spec/rails_helper.rb
375
+ - spec/requests/devise/authentication_spec.rb
376
+ - spec/requests/devise/registration_spec.rb
377
+ - spec/routing/devise/confirmation_routing_spec.rb
378
+ - spec/routing/devise/passwords_routing_spec.rb
379
+ - spec/routing/devise/registrations_routing_spec.rb
380
+ - spec/routing/devise/sessions_routing_spec.rb
381
+ - spec/routing/mno_enterprise/deletion_requests_controller_routing_spec.rb
382
+ - spec/routing/mno_enterprise/impersonate_controller_routing.spec.rb
383
+ - spec/routing/mno_enterprise/jpi/v1/admin/audit_events_controller_routing_spec.rb
384
+ - spec/routing/mno_enterprise/jpi/v1/admin/cloud_apps_controller_routing_spec.rb
385
+ - spec/routing/mno_enterprise/jpi/v1/admin/invoices_controller_routing_spec.rb
386
+ - spec/routing/mno_enterprise/jpi/v1/admin/organizations_controller_routing_spec.rb
387
+ - spec/routing/mno_enterprise/jpi/v1/admin/tenant_invoices_controller_routing_spec.rb
388
+ - spec/routing/mno_enterprise/jpi/v1/admin/users_controller_routing_spec.rb
389
+ - spec/routing/mno_enterprise/jpi/v1/app_instances_controller_routing_spec.rb
390
+ - spec/routing/mno_enterprise/jpi/v1/app_instances_sync_controller_routing_spec.rb
391
+ - spec/routing/mno_enterprise/jpi/v1/current_users_controller_routing_spec.rb
392
+ - spec/routing/mno_enterprise/jpi/v1/deletion_requests_controller_routing_spec.rb
393
+ - spec/routing/mno_enterprise/jpi/v1/impac/kpis_controller_routing_spec.rb
394
+ - spec/routing/mno_enterprise/jpi/v1/marketplace_controller_routing_spec.rb
395
+ - spec/routing/mno_enterprise/jpi/v1/organizations_controller_routing_spec.rb
396
+ - spec/routing/mno_enterprise/jpi/v1/teams_controller_routing_spec.rb
397
+ - spec/routing/mno_enterprise/org_invites_controller_routing_spec.rb
398
+ - spec/routing/mno_enterprise/pages_controller_routing_spec.rb
399
+ - spec/routing/mno_enterprise/provision_controller_routing_spec.rb
400
+ - spec/routing/mno_enterprise/status_controller_routing_spec.rb
401
+ - spec/routing/mno_enterprise/webhook/o_auth_controller_routing_spec.rb
402
+ - spec/spec_helper.rb