foreman_datacenter 0.1.54 → 0.1.55

Sign up to get free protection for your applications and to get access to all the features.
Files changed (404) hide show
  1. checksums.yaml +4 -4
  2. data/app/assets/javascripts/foreman_datacenter/modal.js +75 -0
  3. data/app/assets/javascripts/foreman_datacenter/modal_bck.js +21 -0
  4. data/app/assets/stylesheets/foreman_datacenter/datacenter.css +3 -2
  5. data/app/assets/stylesheets/foreman_datacenter/device_roles.css +0 -1
  6. data/app/assets/stylesheets/foreman_datacenter/devices.css +2 -0
  7. data/app/assets/stylesheets/foreman_datacenter/modal.css +109 -0
  8. data/app/assets/stylesheets/foreman_datacenter/title_filter.css +3 -0
  9. data/app/controllers/api/v2/foreman_datacenter/base_controller.rb +77 -0
  10. data/app/controllers/api/v2/foreman_datacenter/console_port_templates_controller.rb +48 -0
  11. data/app/controllers/api/v2/foreman_datacenter/console_ports_controller.rb +95 -0
  12. data/app/controllers/api/v2/foreman_datacenter/console_server_port_templates_controller.rb +48 -0
  13. data/app/controllers/api/v2/foreman_datacenter/console_server_ports_controller.rb +77 -0
  14. data/app/controllers/api/v2/foreman_datacenter/device_bay_templates_controller.rb +49 -0
  15. data/app/controllers/api/v2/foreman_datacenter/device_bays_controller.rb +75 -0
  16. data/app/controllers/api/v2/foreman_datacenter/device_interface_connections_controller.rb +71 -0
  17. data/app/controllers/api/v2/foreman_datacenter/device_interfaces_controller.rb +62 -0
  18. data/app/controllers/api/v2/foreman_datacenter/device_modules_controller.rb +58 -0
  19. data/app/controllers/api/v2/foreman_datacenter/device_roles_controller.rb +58 -0
  20. data/app/controllers/api/v2/foreman_datacenter/device_types_controller.rb +67 -0
  21. data/app/controllers/api/v2/foreman_datacenter/devices_controller.rb +87 -0
  22. data/app/controllers/api/v2/foreman_datacenter/devices_controller.rb~ +87 -0
  23. data/app/controllers/api/v2/foreman_datacenter/interface_templates_controller.rb +50 -0
  24. data/app/controllers/api/v2/foreman_datacenter/management_devices_controller.rb +58 -0
  25. data/app/controllers/api/v2/foreman_datacenter/manufacturers_controller.rb +57 -0
  26. data/app/controllers/api/v2/foreman_datacenter/platforms_controller.rb +58 -0
  27. data/app/controllers/api/v2/foreman_datacenter/power_outlet_templates_controller.rb +49 -0
  28. data/app/controllers/api/v2/foreman_datacenter/power_outlets_controller.rb +77 -0
  29. data/app/controllers/api/v2/foreman_datacenter/power_port_templates_controller.rb +49 -0
  30. data/app/controllers/api/v2/foreman_datacenter/power_ports_controller.rb +94 -0
  31. data/app/controllers/api/v2/foreman_datacenter/rack_groups_controller.rb +64 -0
  32. data/app/controllers/api/v2/foreman_datacenter/racks_controller.rb +62 -0
  33. data/app/controllers/api/v2/foreman_datacenter/sites_controller.rb +65 -0
  34. data/app/controllers/concerns/foreman_datacenter/controller/parameters/comment.rb +16 -0
  35. data/app/controllers/concerns/foreman_datacenter/controller/parameters/console_port.rb +15 -0
  36. data/app/controllers/concerns/foreman_datacenter/controller/parameters/console_port_template.rb +15 -0
  37. data/app/controllers/concerns/foreman_datacenter/controller/parameters/console_server_port.rb +15 -0
  38. data/app/controllers/concerns/foreman_datacenter/controller/parameters/console_server_port_template.rb +15 -0
  39. data/app/controllers/concerns/foreman_datacenter/controller/parameters/device.rb +18 -0
  40. data/app/controllers/concerns/foreman_datacenter/controller/parameters/device_bay.rb +15 -0
  41. data/app/controllers/concerns/foreman_datacenter/controller/parameters/device_bay_template.rb +15 -0
  42. data/app/controllers/concerns/foreman_datacenter/controller/parameters/device_interface.rb +17 -0
  43. data/app/controllers/concerns/foreman_datacenter/controller/parameters/device_interface_connection.rb +15 -0
  44. data/app/controllers/concerns/foreman_datacenter/controller/parameters/device_module.rb +15 -0
  45. data/app/controllers/concerns/foreman_datacenter/controller/parameters/device_role.rb +15 -0
  46. data/app/controllers/concerns/foreman_datacenter/controller/parameters/device_type.rb +17 -0
  47. data/app/controllers/concerns/foreman_datacenter/controller/parameters/interface_template.rb +15 -0
  48. data/app/controllers/concerns/foreman_datacenter/controller/parameters/management_device.rb +15 -0
  49. data/app/controllers/concerns/foreman_datacenter/controller/parameters/manufacturer.rb +15 -0
  50. data/app/controllers/concerns/foreman_datacenter/controller/parameters/platform.rb +15 -0
  51. data/app/controllers/concerns/foreman_datacenter/controller/parameters/power_outlet.rb +15 -0
  52. data/app/controllers/concerns/foreman_datacenter/controller/parameters/power_outlet_template.rb +15 -0
  53. data/app/controllers/concerns/foreman_datacenter/controller/parameters/power_port.rb +15 -0
  54. data/app/controllers/concerns/foreman_datacenter/controller/parameters/power_port_template.rb +15 -0
  55. data/app/controllers/concerns/foreman_datacenter/controller/parameters/rack.rb +16 -0
  56. data/app/controllers/concerns/foreman_datacenter/controller/parameters/rack_group.rb +15 -0
  57. data/app/controllers/concerns/foreman_datacenter/controller/parameters/site.rb +16 -0
  58. data/app/controllers/foreman_datacenter/application_controller.rb +99 -0
  59. data/app/controllers/foreman_datacenter/comments_controller.rb +38 -53
  60. data/app/controllers/foreman_datacenter/console_port_templates_controller.rb +9 -19
  61. data/app/controllers/foreman_datacenter/console_ports_controller.rb +14 -23
  62. data/app/controllers/foreman_datacenter/console_server_port_templates_controller.rb +9 -19
  63. data/app/controllers/foreman_datacenter/console_server_ports_controller.rb +11 -19
  64. data/app/controllers/foreman_datacenter/device_bay_templates_controller.rb +9 -19
  65. data/app/controllers/foreman_datacenter/device_bays_controller.rb +8 -15
  66. data/app/controllers/foreman_datacenter/device_interface_connections_controller.rb +10 -19
  67. data/app/controllers/foreman_datacenter/device_interfaces_controller.rb +8 -17
  68. data/app/controllers/foreman_datacenter/device_modules_controller.rb +6 -14
  69. data/app/controllers/foreman_datacenter/device_roles_controller.rb +15 -16
  70. data/app/controllers/foreman_datacenter/device_types_controller.rb +17 -21
  71. data/app/controllers/foreman_datacenter/devices_controller.rb +35 -45
  72. data/app/controllers/foreman_datacenter/interface_templates_controller.rb +6 -17
  73. data/app/controllers/foreman_datacenter/management_devices_controller.rb +5 -14
  74. data/app/controllers/foreman_datacenter/manufacturers_controller.rb +14 -15
  75. data/app/controllers/foreman_datacenter/platforms_controller.rb +12 -14
  76. data/app/controllers/foreman_datacenter/power_outlet_templates_controller.rb +7 -17
  77. data/app/controllers/foreman_datacenter/power_outlets_controller.rb +7 -14
  78. data/app/controllers/foreman_datacenter/power_port_templates_controller.rb +9 -19
  79. data/app/controllers/foreman_datacenter/power_ports_controller.rb +8 -16
  80. data/app/controllers/foreman_datacenter/rack_groups_controller.rb +29 -12
  81. data/app/controllers/foreman_datacenter/racks_controller.rb +29 -15
  82. data/app/controllers/foreman_datacenter/sites_controller.rb +34 -17
  83. data/app/helpers/foreman_datacenter/application_helper.rb +66 -0
  84. data/app/helpers/foreman_datacenter/comments_helper.rb +8 -0
  85. data/app/models/foreman_datacenter/comment.rb +2 -2
  86. data/app/models/foreman_datacenter/console_port.rb +10 -0
  87. data/app/models/foreman_datacenter/console_port_template.rb +5 -0
  88. data/app/models/foreman_datacenter/console_server_port.rb +6 -0
  89. data/app/models/foreman_datacenter/console_server_port_template.rb +5 -0
  90. data/app/models/foreman_datacenter/device.rb +20 -26
  91. data/app/models/foreman_datacenter/device_bay.rb +5 -0
  92. data/app/models/foreman_datacenter/device_bay_template.rb +5 -0
  93. data/app/models/foreman_datacenter/device_interface.rb +5 -0
  94. data/app/models/foreman_datacenter/device_interface_connection.rb +6 -0
  95. data/app/models/foreman_datacenter/device_module.rb +5 -0
  96. data/app/models/foreman_datacenter/device_role.rb +14 -0
  97. data/app/models/foreman_datacenter/device_type.rb +31 -6
  98. data/app/models/foreman_datacenter/interface_template.rb +5 -0
  99. data/app/models/foreman_datacenter/management_device.rb +9 -0
  100. data/app/models/foreman_datacenter/manufacturer.rb +18 -0
  101. data/app/models/foreman_datacenter/platform.rb +15 -0
  102. data/app/models/foreman_datacenter/power_outlet.rb +5 -0
  103. data/app/models/foreman_datacenter/power_outlet_template.rb +5 -0
  104. data/app/models/foreman_datacenter/power_port.rb +10 -0
  105. data/app/models/foreman_datacenter/power_port_template.rb +5 -0
  106. data/app/models/foreman_datacenter/rack.rb +19 -1
  107. data/app/models/foreman_datacenter/rack_group.rb +21 -0
  108. data/app/models/foreman_datacenter/site.rb +36 -2
  109. data/app/views/api/v2/foreman_datacenter/console_port_templates/base.json.rabl +3 -0
  110. data/app/views/api/v2/foreman_datacenter/console_port_templates/create.json.rabl +3 -0
  111. data/app/views/api/v2/foreman_datacenter/console_port_templates/index.json.rabl +3 -0
  112. data/app/views/api/v2/foreman_datacenter/console_port_templates/main.json.rabl +5 -0
  113. data/app/views/api/v2/foreman_datacenter/console_port_templates/show.json.rabl +7 -0
  114. data/app/views/api/v2/foreman_datacenter/console_ports/base.json.rabl +3 -0
  115. data/app/views/api/v2/foreman_datacenter/console_ports/create.json.rabl +3 -0
  116. data/app/views/api/v2/foreman_datacenter/console_ports/index.json.rabl +3 -0
  117. data/app/views/api/v2/foreman_datacenter/console_ports/main.json.rabl +5 -0
  118. data/app/views/api/v2/foreman_datacenter/console_ports/show.json.rabl +11 -0
  119. data/app/views/api/v2/foreman_datacenter/console_ports/update.json.rabl +3 -0
  120. data/app/views/api/v2/foreman_datacenter/console_server_port_templates/base.json.rabl +3 -0
  121. data/app/views/api/v2/foreman_datacenter/console_server_port_templates/create.json.rabl +3 -0
  122. data/app/views/api/v2/foreman_datacenter/console_server_port_templates/index.json.rabl +3 -0
  123. data/app/views/api/v2/foreman_datacenter/console_server_port_templates/main.json.rabl +5 -0
  124. data/app/views/api/v2/foreman_datacenter/console_server_port_templates/show.json.rabl +11 -0
  125. data/app/views/api/v2/foreman_datacenter/console_server_ports/base.json.rabl +3 -0
  126. data/app/views/api/v2/foreman_datacenter/console_server_ports/create.json.rabl +3 -0
  127. data/app/views/api/v2/foreman_datacenter/console_server_ports/index.json.rabl +3 -0
  128. data/app/views/api/v2/foreman_datacenter/console_server_ports/main.json.rabl +5 -0
  129. data/app/views/api/v2/foreman_datacenter/console_server_ports/show.json.rabl +7 -0
  130. data/app/views/api/v2/foreman_datacenter/console_server_ports/update.json.rabl +3 -0
  131. data/app/views/api/v2/foreman_datacenter/device_bay_templates/base.json.rabl +3 -0
  132. data/app/views/api/v2/foreman_datacenter/device_bay_templates/create.json.rabl +3 -0
  133. data/app/views/api/v2/foreman_datacenter/device_bay_templates/index.json.rabl +3 -0
  134. data/app/views/api/v2/foreman_datacenter/device_bay_templates/main.json.rabl +5 -0
  135. data/app/views/api/v2/foreman_datacenter/device_bay_templates/show.json.rabl +7 -0
  136. data/app/views/api/v2/foreman_datacenter/device_bays/base.json.rabl +3 -0
  137. data/app/views/api/v2/foreman_datacenter/device_bays/create.json.rabl +3 -0
  138. data/app/views/api/v2/foreman_datacenter/device_bays/index.json.rabl +3 -0
  139. data/app/views/api/v2/foreman_datacenter/device_bays/main.json.rabl +5 -0
  140. data/app/views/api/v2/foreman_datacenter/device_bays/show.json.rabl +7 -0
  141. data/app/views/api/v2/foreman_datacenter/device_bays/update.json.rabl +3 -0
  142. data/app/views/api/v2/foreman_datacenter/device_interface_connections/base.json.rabl +3 -0
  143. data/app/views/api/v2/foreman_datacenter/device_interface_connections/create.json.rabl +3 -0
  144. data/app/views/api/v2/foreman_datacenter/device_interface_connections/index.json.rabl +3 -0
  145. data/app/views/api/v2/foreman_datacenter/device_interface_connections/main.json.rabl +5 -0
  146. data/app/views/api/v2/foreman_datacenter/device_interface_connections/show.json.rabl +3 -0
  147. data/app/views/api/v2/foreman_datacenter/device_interface_connections/update.json.rabl +3 -0
  148. data/app/views/api/v2/foreman_datacenter/device_interfaces/base.json.rabl +3 -0
  149. data/app/views/api/v2/foreman_datacenter/device_interfaces/create.json.rabl +3 -0
  150. data/app/views/api/v2/foreman_datacenter/device_interfaces/index.json.rabl +3 -0
  151. data/app/views/api/v2/foreman_datacenter/device_interfaces/main.json.rabl +5 -0
  152. data/app/views/api/v2/foreman_datacenter/device_interfaces/show.json.rabl +7 -0
  153. data/app/views/api/v2/foreman_datacenter/device_interfaces/update.json.rabl +3 -0
  154. data/app/views/api/v2/foreman_datacenter/device_modules/base.json.rabl +3 -0
  155. data/app/views/api/v2/foreman_datacenter/device_modules/create.json.rabl +3 -0
  156. data/app/views/api/v2/foreman_datacenter/device_modules/index.json.rabl +3 -0
  157. data/app/views/api/v2/foreman_datacenter/device_modules/main.json.rabl +5 -0
  158. data/app/views/api/v2/foreman_datacenter/device_modules/show.json.rabl +7 -0
  159. data/app/views/api/v2/foreman_datacenter/device_modules/update.json.rabl +3 -0
  160. data/app/views/api/v2/foreman_datacenter/device_roles/base.json.rabl +3 -0
  161. data/app/views/api/v2/foreman_datacenter/device_roles/create.json.rabl +3 -0
  162. data/app/views/api/v2/foreman_datacenter/device_roles/index.json.rabl +3 -0
  163. data/app/views/api/v2/foreman_datacenter/device_roles/main.json.rabl +5 -0
  164. data/app/views/api/v2/foreman_datacenter/device_roles/show.json.rabl +7 -0
  165. data/app/views/api/v2/foreman_datacenter/device_roles/update.json.rabl +3 -0
  166. data/app/views/api/v2/foreman_datacenter/device_types/base.json.rabl +3 -0
  167. data/app/views/api/v2/foreman_datacenter/device_types/create.json.rabl +3 -0
  168. data/app/views/api/v2/foreman_datacenter/device_types/index.json.rabl +3 -0
  169. data/app/views/api/v2/foreman_datacenter/device_types/main.json.rabl +5 -0
  170. data/app/views/api/v2/foreman_datacenter/device_types/show.json.rabl +31 -0
  171. data/app/views/api/v2/foreman_datacenter/device_types/update.json.rabl +7 -0
  172. data/app/views/api/v2/foreman_datacenter/devices/base.json.rabl +3 -0
  173. data/app/views/api/v2/foreman_datacenter/devices/create.json.rabl +3 -0
  174. data/app/views/api/v2/foreman_datacenter/devices/index.json.rabl +3 -0
  175. data/app/views/api/v2/foreman_datacenter/devices/main.json.rabl +5 -0
  176. data/app/views/api/v2/foreman_datacenter/devices/show.json.rabl +63 -0
  177. data/app/views/api/v2/foreman_datacenter/devices/update.json.rabl +7 -0
  178. data/app/views/api/v2/foreman_datacenter/interface_templates/base.json.rabl +3 -0
  179. data/app/views/api/v2/foreman_datacenter/interface_templates/create.json.rabl +3 -0
  180. data/app/views/api/v2/foreman_datacenter/interface_templates/index.json.rabl +3 -0
  181. data/app/views/api/v2/foreman_datacenter/interface_templates/main.json.rabl +5 -0
  182. data/app/views/api/v2/foreman_datacenter/interface_templates/show.json.rabl +7 -0
  183. data/app/views/api/v2/foreman_datacenter/management_devices/base.json.rabl +3 -0
  184. data/app/views/api/v2/foreman_datacenter/management_devices/create.json.rabl +3 -0
  185. data/app/views/api/v2/foreman_datacenter/management_devices/index.json.rabl +3 -0
  186. data/app/views/api/v2/foreman_datacenter/management_devices/main.json.rabl +5 -0
  187. data/app/views/api/v2/foreman_datacenter/management_devices/show.json.rabl +7 -0
  188. data/app/views/api/v2/foreman_datacenter/management_devices/update.json.rabl +3 -0
  189. data/app/views/api/v2/foreman_datacenter/manufacturers/base.json.rabl +3 -0
  190. data/app/views/api/v2/foreman_datacenter/manufacturers/create.json.rabl +3 -0
  191. data/app/views/api/v2/foreman_datacenter/manufacturers/index.json.rabl +3 -0
  192. data/app/views/api/v2/foreman_datacenter/manufacturers/main.json.rabl +5 -0
  193. data/app/views/api/v2/foreman_datacenter/manufacturers/show.json.rabl +7 -0
  194. data/app/views/api/v2/foreman_datacenter/manufacturers/update.json.rabl +3 -0
  195. data/app/views/api/v2/foreman_datacenter/platforms/base.json.rabl +3 -0
  196. data/app/views/api/v2/foreman_datacenter/platforms/create.json.rabl +3 -0
  197. data/app/views/api/v2/foreman_datacenter/platforms/index.json.rabl +3 -0
  198. data/app/views/api/v2/foreman_datacenter/platforms/main.json.rabl +5 -0
  199. data/app/views/api/v2/foreman_datacenter/platforms/show.json.rabl +7 -0
  200. data/app/views/api/v2/foreman_datacenter/platforms/update.json.rabl +3 -0
  201. data/app/views/api/v2/foreman_datacenter/power_outlet_templates/base.json.rabl +3 -0
  202. data/app/views/api/v2/foreman_datacenter/power_outlet_templates/create.json.rabl +3 -0
  203. data/app/views/api/v2/foreman_datacenter/power_outlet_templates/index.json.rabl +3 -0
  204. data/app/views/api/v2/foreman_datacenter/power_outlet_templates/main.json.rabl +5 -0
  205. data/app/views/api/v2/foreman_datacenter/power_outlet_templates/show.json.rabl +7 -0
  206. data/app/views/api/v2/foreman_datacenter/power_outlets/base.json.rabl +3 -0
  207. data/app/views/api/v2/foreman_datacenter/power_outlets/create.json.rabl +3 -0
  208. data/app/views/api/v2/foreman_datacenter/power_outlets/index.json.rabl +3 -0
  209. data/app/views/api/v2/foreman_datacenter/power_outlets/main.json.rabl +5 -0
  210. data/app/views/api/v2/foreman_datacenter/power_outlets/show.json.rabl +11 -0
  211. data/app/views/api/v2/foreman_datacenter/power_outlets/update.json.rabl +3 -0
  212. data/app/views/api/v2/foreman_datacenter/power_port_templates/base.json.rabl +3 -0
  213. data/app/views/api/v2/foreman_datacenter/power_port_templates/create.json.rabl +3 -0
  214. data/app/views/api/v2/foreman_datacenter/power_port_templates/index.json.rabl +3 -0
  215. data/app/views/api/v2/foreman_datacenter/power_port_templates/main.json.rabl +5 -0
  216. data/app/views/api/v2/foreman_datacenter/power_port_templates/show.json.rabl +7 -0
  217. data/app/views/api/v2/foreman_datacenter/power_ports/base.json.rabl +3 -0
  218. data/app/views/api/v2/foreman_datacenter/power_ports/create.json.rabl +3 -0
  219. data/app/views/api/v2/foreman_datacenter/power_ports/index.json.rabl +3 -0
  220. data/app/views/api/v2/foreman_datacenter/power_ports/main.json.rabl +5 -0
  221. data/app/views/api/v2/foreman_datacenter/power_ports/show.json.rabl +11 -0
  222. data/app/views/api/v2/foreman_datacenter/power_ports/update.json.rabl +3 -0
  223. data/app/views/api/v2/foreman_datacenter/rack_groups/base.json.rabl +3 -0
  224. data/app/views/api/v2/foreman_datacenter/rack_groups/create.json.rabl +3 -0
  225. data/app/views/api/v2/foreman_datacenter/rack_groups/index.json.rabl +3 -0
  226. data/app/views/api/v2/foreman_datacenter/rack_groups/main.json.rabl +5 -0
  227. data/app/views/api/v2/foreman_datacenter/rack_groups/show.json.rabl +7 -0
  228. data/app/views/api/v2/foreman_datacenter/rack_groups/update.json.rabl +3 -0
  229. data/app/views/api/v2/foreman_datacenter/racks/base.json.rabl +3 -0
  230. data/app/views/api/v2/foreman_datacenter/racks/create.json.rabl +3 -0
  231. data/app/views/api/v2/foreman_datacenter/racks/index.json.rabl +3 -0
  232. data/app/views/api/v2/foreman_datacenter/racks/main.json.rabl +5 -0
  233. data/app/views/api/v2/foreman_datacenter/racks/show.json.rabl +11 -0
  234. data/app/views/api/v2/foreman_datacenter/racks/update.json.rabl +3 -0
  235. data/app/views/api/v2/foreman_datacenter/sites/base.json.rabl +3 -0
  236. data/app/views/api/v2/foreman_datacenter/sites/create.json.rabl +3 -0
  237. data/app/views/api/v2/foreman_datacenter/sites/index.json.rabl +3 -0
  238. data/app/views/api/v2/foreman_datacenter/sites/main.json.rabl +5 -0
  239. data/app/views/api/v2/foreman_datacenter/sites/show.json.rabl +11 -0
  240. data/app/views/api/v2/foreman_datacenter/sites/update.json.rabl +3 -0
  241. data/app/views/foreman_datacenter/comments/_children.html.erb +2 -2
  242. data/app/views/foreman_datacenter/comments/_comments.html.erb +8 -10
  243. data/app/views/foreman_datacenter/comments/_form.html.erb +27 -39
  244. data/app/views/foreman_datacenter/comments/_item.html.erb +4 -4
  245. data/app/views/foreman_datacenter/comments/_list.html.erb +26 -0
  246. data/app/views/foreman_datacenter/comments/edit.html.erb +3 -2
  247. data/app/views/foreman_datacenter/comments/new.html.erb +3 -2
  248. data/app/views/foreman_datacenter/common/404.html.erb +10 -0
  249. data/app/views/foreman_datacenter/console_port_templates/_form.html.erb +4 -3
  250. data/app/views/foreman_datacenter/console_port_templates/new.html.erb +3 -1
  251. data/app/views/foreman_datacenter/console_ports/_form.html.erb +4 -3
  252. data/app/views/foreman_datacenter/console_ports/edit.html.erb +3 -1
  253. data/app/views/foreman_datacenter/console_ports/index.html.erb +25 -26
  254. data/app/views/foreman_datacenter/console_ports/new.html.erb +3 -1
  255. data/app/views/foreman_datacenter/console_ports/new_connection.html.erb +2 -0
  256. data/app/views/foreman_datacenter/console_ports/welcome.html.erb +15 -0
  257. data/app/views/foreman_datacenter/console_server_port_templates/_form.html.erb +4 -3
  258. data/app/views/foreman_datacenter/console_server_port_templates/new.html.erb +3 -1
  259. data/app/views/foreman_datacenter/console_server_ports/_form.html.erb +4 -3
  260. data/app/views/foreman_datacenter/console_server_ports/edit.html.erb +3 -1
  261. data/app/views/foreman_datacenter/console_server_ports/new.html.erb +3 -1
  262. data/app/views/foreman_datacenter/console_server_ports/new_connection.html.erb +3 -1
  263. data/app/views/foreman_datacenter/device_bay_templates/_form.html.erb +4 -3
  264. data/app/views/foreman_datacenter/device_bay_templates/new.html.erb +3 -1
  265. data/app/views/foreman_datacenter/device_bays/_form.html.erb +4 -3
  266. data/app/views/foreman_datacenter/device_bays/edit.html.erb +3 -1
  267. data/app/views/foreman_datacenter/device_bays/new.html.erb +3 -1
  268. data/app/views/foreman_datacenter/device_bays/populate_new.html.erb +12 -4
  269. data/app/views/foreman_datacenter/device_interface_connections/_form.html.erb +20 -14
  270. data/app/views/foreman_datacenter/device_interface_connections/index.html.erb +29 -29
  271. data/app/views/foreman_datacenter/device_interface_connections/new.html.erb +3 -1
  272. data/app/views/foreman_datacenter/device_interface_connections/welcome.html.erb +15 -0
  273. data/app/views/foreman_datacenter/device_interfaces/_form.html.erb +6 -5
  274. data/app/views/foreman_datacenter/device_interfaces/edit.html.erb +3 -1
  275. data/app/views/foreman_datacenter/device_interfaces/new.html.erb +3 -1
  276. data/app/views/foreman_datacenter/device_modules/_form.html.erb +4 -3
  277. data/app/views/foreman_datacenter/device_modules/edit.html.erb +3 -1
  278. data/app/views/foreman_datacenter/device_modules/new.html.erb +3 -1
  279. data/app/views/foreman_datacenter/device_roles/edit.html.erb +3 -1
  280. data/app/views/foreman_datacenter/device_roles/index.html.erb +26 -16
  281. data/app/views/foreman_datacenter/device_roles/new.html.erb +3 -1
  282. data/app/views/foreman_datacenter/device_roles/show.html.erb +42 -16
  283. data/app/views/foreman_datacenter/device_roles/welcome.html.erb +2 -0
  284. data/app/views/foreman_datacenter/device_types/_form.html.erb +10 -10
  285. data/app/views/foreman_datacenter/device_types/edit.html.erb +3 -1
  286. data/app/views/foreman_datacenter/device_types/index.html.erb +30 -16
  287. data/app/views/foreman_datacenter/device_types/new.html.erb +3 -1
  288. data/app/views/foreman_datacenter/device_types/show.html.erb +178 -170
  289. data/app/views/foreman_datacenter/device_types/welcome.html.erb +2 -0
  290. data/app/views/foreman_datacenter/devices/_aracks.html.erb +2 -2
  291. data/app/views/foreman_datacenter/devices/_console_port.html.erb +1 -1
  292. data/app/views/foreman_datacenter/devices/_console_server_port.html.erb +1 -1
  293. data/app/views/foreman_datacenter/devices/_device_bay.html.erb +1 -1
  294. data/app/views/foreman_datacenter/devices/_device_module.html.erb +2 -2
  295. data/app/views/foreman_datacenter/devices/_device_types.html.erb +3 -3
  296. data/app/views/foreman_datacenter/devices/_for_rack.html.erb +2 -2
  297. data/app/views/foreman_datacenter/devices/_form.html.erb +2 -4
  298. data/app/views/foreman_datacenter/devices/_power_outlet.html.erb +1 -1
  299. data/app/views/foreman_datacenter/devices/_racks.html.erb +3 -3
  300. data/app/views/foreman_datacenter/devices/edit.html.erb +3 -1
  301. data/app/views/foreman_datacenter/devices/index.html.erb +40 -23
  302. data/app/views/foreman_datacenter/devices/inventory.html.erb +17 -14
  303. data/app/views/foreman_datacenter/devices/new.html.erb +3 -1
  304. data/app/views/foreman_datacenter/devices/show.html.erb +132 -114
  305. data/app/views/foreman_datacenter/devices/welcome.html.erb +2 -0
  306. data/app/views/foreman_datacenter/interface_templates/_form.html.erb +4 -3
  307. data/app/views/foreman_datacenter/interface_templates/new.html.erb +3 -1
  308. data/app/views/foreman_datacenter/management_devices/_form.html.erb +4 -3
  309. data/app/views/foreman_datacenter/management_devices/edit.html.erb +3 -1
  310. data/app/views/foreman_datacenter/management_devices/new.html.erb +3 -1
  311. data/app/views/foreman_datacenter/manufacturers/edit.html.erb +3 -1
  312. data/app/views/foreman_datacenter/manufacturers/index.html.erb +30 -15
  313. data/app/views/foreman_datacenter/manufacturers/new.html.erb +3 -1
  314. data/app/views/foreman_datacenter/manufacturers/show.html.erb +54 -24
  315. data/app/views/foreman_datacenter/manufacturers/welcome.html.erb +2 -0
  316. data/app/views/foreman_datacenter/platforms/edit.html.erb +3 -1
  317. data/app/views/foreman_datacenter/platforms/index.html.erb +27 -15
  318. data/app/views/foreman_datacenter/platforms/new.html.erb +3 -1
  319. data/app/views/foreman_datacenter/platforms/show.html.erb +43 -17
  320. data/app/views/foreman_datacenter/platforms/welcome.html.erb +2 -0
  321. data/app/views/foreman_datacenter/power_outlet_templates/_form.html.erb +4 -3
  322. data/app/views/foreman_datacenter/power_outlet_templates/new.html.erb +3 -1
  323. data/app/views/foreman_datacenter/power_outlets/_form.html.erb +4 -3
  324. data/app/views/foreman_datacenter/power_outlets/edit.html.erb +3 -1
  325. data/app/views/foreman_datacenter/power_outlets/new.html.erb +3 -1
  326. data/app/views/foreman_datacenter/power_outlets/new_connection.html.erb +3 -1
  327. data/app/views/foreman_datacenter/power_port_templates/_form.html.erb +4 -3
  328. data/app/views/foreman_datacenter/power_port_templates/new.html.erb +3 -1
  329. data/app/views/foreman_datacenter/power_ports/_form.html.erb +4 -3
  330. data/app/views/foreman_datacenter/power_ports/edit.html.erb +3 -1
  331. data/app/views/foreman_datacenter/power_ports/index.html.erb +26 -26
  332. data/app/views/foreman_datacenter/power_ports/new.html.erb +3 -1
  333. data/app/views/foreman_datacenter/power_ports/new_connection.html.erb +2 -0
  334. data/app/views/foreman_datacenter/power_ports/welcome.html.erb +15 -0
  335. data/app/views/foreman_datacenter/rack_groups/edit.html.erb +3 -1
  336. data/app/views/foreman_datacenter/rack_groups/index.html.erb +31 -17
  337. data/app/views/foreman_datacenter/rack_groups/move.html.erb +24 -0
  338. data/app/views/foreman_datacenter/rack_groups/new.html.erb +3 -1
  339. data/app/views/foreman_datacenter/rack_groups/show.html.erb +80 -55
  340. data/app/views/foreman_datacenter/racks/_device_position.html.erb +2 -2
  341. data/app/views/foreman_datacenter/racks/_form.html.erb +18 -18
  342. data/app/views/foreman_datacenter/racks/_rack_groups.html.erb +6 -6
  343. data/app/views/foreman_datacenter/racks/_unpositioned_devices.html.erb +2 -2
  344. data/app/views/foreman_datacenter/racks/edit.html.erb +3 -1
  345. data/app/views/foreman_datacenter/racks/index.html.erb +37 -27
  346. data/app/views/foreman_datacenter/racks/move.html.erb +24 -0
  347. data/app/views/foreman_datacenter/racks/new.html.erb +3 -1
  348. data/app/views/foreman_datacenter/racks/show.html.erb +47 -30
  349. data/app/views/foreman_datacenter/shared/_aa.html.erb +1 -0
  350. data/app/views/foreman_datacenter/shared/_modal.html.erb +28 -0
  351. data/app/views/foreman_datacenter/shared/_rack_device_select.html.erb +4 -4
  352. data/app/views/foreman_datacenter/sites/_form.html.erb +1 -0
  353. data/app/views/foreman_datacenter/sites/edit.html.erb +3 -1
  354. data/app/views/foreman_datacenter/sites/index.html.erb +30 -18
  355. data/app/views/foreman_datacenter/sites/move.html.erb +27 -0
  356. data/app/views/foreman_datacenter/sites/new.html.erb +3 -1
  357. data/app/views/foreman_datacenter/sites/show.html.erb +86 -56
  358. data/config/routes.rb +12 -1
  359. data/lib/foreman_datacenter/engine.rb +13 -1
  360. data/lib/foreman_datacenter/version.rb +1 -1
  361. data/test/controllers/foreman_datacenter/device_types_contoller_test.rb +91 -0
  362. data/test/controllers/foreman_datacenter/manufacturers_contoller_test.rb +97 -0
  363. data/test/controllers/foreman_datacenter/platforms_contoller_test.rb +97 -0
  364. data/test/controllers/foreman_datacenter/power_port_templates_contoller_test.rb +53 -0
  365. data/test/controllers/foreman_datacenter/rack_groups_contoller_test.rb +85 -91
  366. data/test/controllers/foreman_datacenter/racks_contoller_test.rb +65 -72
  367. data/test/controllers/foreman_datacenter/sites_contoller_test.rb +107 -71
  368. data/test/datacenter_helper.rb +4 -0
  369. data/test/factories/device_type.rb +13 -0
  370. data/test/factories/manufacturer.rb +5 -0
  371. data/test/factories/platform.rb +5 -0
  372. data/test/factories/rack.rb +8 -0
  373. data/test/factories/rack_group.rb +107 -0
  374. data/test/factories/site.rb +5 -0
  375. data/test/fixtures/foreman_datacenter/comments.yml +30 -0
  376. data/test/fixtures/foreman_datacenter/console_port_templates.yml +42 -0
  377. data/test/fixtures/foreman_datacenter/console_ports.yml +108 -0
  378. data/test/fixtures/foreman_datacenter/console_server_port_templates.yml +42 -0
  379. data/test/fixtures/foreman_datacenter/console_server_ports.yml +84 -0
  380. data/test/fixtures/foreman_datacenter/device_bay_templates.yml +14 -0
  381. data/test/fixtures/foreman_datacenter/device_bays.yml +32 -0
  382. data/test/fixtures/foreman_datacenter/device_interface_connections.yml +96 -0
  383. data/test/fixtures/foreman_datacenter/device_interfaces.yml +240 -0
  384. data/test/fixtures/foreman_datacenter/device_modules.yml +54 -0
  385. data/test/fixtures/foreman_datacenter/device_roles.yml +22 -0
  386. data/test/fixtures/foreman_datacenter/device_types.yml +54 -0
  387. data/test/fixtures/foreman_datacenter/devices.yml +126 -0
  388. data/test/fixtures/foreman_datacenter/interface_templates.yml +54 -0
  389. data/test/fixtures/foreman_datacenter/management_devices.yml +27 -0
  390. data/test/fixtures/foreman_datacenter/manufacturers.yml +24 -0
  391. data/test/fixtures/foreman_datacenter/platforms.yml +28 -0
  392. data/test/fixtures/foreman_datacenter/power_outlet_templates.yml +42 -0
  393. data/test/fixtures/foreman_datacenter/power_outlets.yml +84 -0
  394. data/test/fixtures/foreman_datacenter/power_port_templates.yml +42 -0
  395. data/test/fixtures/foreman_datacenter/power_ports.yml +108 -0
  396. data/test/fixtures/foreman_datacenter/rack_groups.yml +16 -6
  397. data/test/fixtures/foreman_datacenter/racks.yml +31 -10
  398. data/test/fixtures/foreman_datacenter/sites.yml +23 -12
  399. data/test/integration/foreman_datacenter/rack_group_test.rb +25 -25
  400. data/test/integration/foreman_datacenter/rack_test.rb +25 -25
  401. data/test/integration/foreman_datacenter/site_test.rb +29 -29
  402. data/test/test_plugin_helper.rb +1 -0
  403. data/test/unit/foreman_datacenter_test.rb +1 -1
  404. metadata +264 -2
@@ -1,4 +1,4 @@
1
- require 'test_plugin_helper'
1
+ require_relative '../test_plugin_helper'
2
2
 
3
3
  class ForemanDatacenterTest < ActiveSupport::TestCase
4
4
  setup do
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: foreman_datacenter
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.54
4
+ version: 0.1.55
5
5
  platform: ruby
6
6
  authors:
7
7
  - Pavel Ivanov
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2018-08-14 00:00:00.000000000 Z
12
+ date: 2018-11-30 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: prawn
@@ -82,13 +82,68 @@ files:
82
82
  - app/assets/javascripts/foreman_datacenter/device_interface_connections.js
83
83
  - app/assets/javascripts/foreman_datacenter/devices.js
84
84
  - app/assets/javascripts/foreman_datacenter/management_devices.js
85
+ - app/assets/javascripts/foreman_datacenter/modal.js
86
+ - app/assets/javascripts/foreman_datacenter/modal_bck.js
85
87
  - app/assets/javascripts/foreman_datacenter/racks.js
86
88
  - app/assets/javascripts/foreman_datacenter/shared.js
87
89
  - app/assets/stylesheets/foreman_datacenter/comments.css
88
90
  - app/assets/stylesheets/foreman_datacenter/datacenter.css
89
91
  - app/assets/stylesheets/foreman_datacenter/device_interface_connections.css
90
92
  - app/assets/stylesheets/foreman_datacenter/device_roles.css
93
+ - app/assets/stylesheets/foreman_datacenter/devices.css
94
+ - app/assets/stylesheets/foreman_datacenter/modal.css
95
+ - app/assets/stylesheets/foreman_datacenter/title_filter.css
96
+ - app/controllers/api/v2/foreman_datacenter/base_controller.rb
97
+ - app/controllers/api/v2/foreman_datacenter/console_port_templates_controller.rb
98
+ - app/controllers/api/v2/foreman_datacenter/console_ports_controller.rb
99
+ - app/controllers/api/v2/foreman_datacenter/console_server_port_templates_controller.rb
100
+ - app/controllers/api/v2/foreman_datacenter/console_server_ports_controller.rb
101
+ - app/controllers/api/v2/foreman_datacenter/device_bay_templates_controller.rb
102
+ - app/controllers/api/v2/foreman_datacenter/device_bays_controller.rb
103
+ - app/controllers/api/v2/foreman_datacenter/device_interface_connections_controller.rb
104
+ - app/controllers/api/v2/foreman_datacenter/device_interfaces_controller.rb
105
+ - app/controllers/api/v2/foreman_datacenter/device_modules_controller.rb
106
+ - app/controllers/api/v2/foreman_datacenter/device_roles_controller.rb
107
+ - app/controllers/api/v2/foreman_datacenter/device_types_controller.rb
108
+ - app/controllers/api/v2/foreman_datacenter/devices_controller.rb
109
+ - app/controllers/api/v2/foreman_datacenter/devices_controller.rb~
110
+ - app/controllers/api/v2/foreman_datacenter/interface_templates_controller.rb
111
+ - app/controllers/api/v2/foreman_datacenter/management_devices_controller.rb
112
+ - app/controllers/api/v2/foreman_datacenter/manufacturers_controller.rb
113
+ - app/controllers/api/v2/foreman_datacenter/platforms_controller.rb
114
+ - app/controllers/api/v2/foreman_datacenter/power_outlet_templates_controller.rb
115
+ - app/controllers/api/v2/foreman_datacenter/power_outlets_controller.rb
116
+ - app/controllers/api/v2/foreman_datacenter/power_port_templates_controller.rb
117
+ - app/controllers/api/v2/foreman_datacenter/power_ports_controller.rb
118
+ - app/controllers/api/v2/foreman_datacenter/rack_groups_controller.rb
119
+ - app/controllers/api/v2/foreman_datacenter/racks_controller.rb
120
+ - app/controllers/api/v2/foreman_datacenter/sites_controller.rb
121
+ - app/controllers/concerns/foreman_datacenter/controller/parameters/comment.rb
122
+ - app/controllers/concerns/foreman_datacenter/controller/parameters/console_port.rb
123
+ - app/controllers/concerns/foreman_datacenter/controller/parameters/console_port_template.rb
124
+ - app/controllers/concerns/foreman_datacenter/controller/parameters/console_server_port.rb
125
+ - app/controllers/concerns/foreman_datacenter/controller/parameters/console_server_port_template.rb
126
+ - app/controllers/concerns/foreman_datacenter/controller/parameters/device.rb
127
+ - app/controllers/concerns/foreman_datacenter/controller/parameters/device_bay.rb
128
+ - app/controllers/concerns/foreman_datacenter/controller/parameters/device_bay_template.rb
129
+ - app/controllers/concerns/foreman_datacenter/controller/parameters/device_interface.rb
130
+ - app/controllers/concerns/foreman_datacenter/controller/parameters/device_interface_connection.rb
131
+ - app/controllers/concerns/foreman_datacenter/controller/parameters/device_module.rb
132
+ - app/controllers/concerns/foreman_datacenter/controller/parameters/device_role.rb
133
+ - app/controllers/concerns/foreman_datacenter/controller/parameters/device_type.rb
134
+ - app/controllers/concerns/foreman_datacenter/controller/parameters/interface_template.rb
135
+ - app/controllers/concerns/foreman_datacenter/controller/parameters/management_device.rb
136
+ - app/controllers/concerns/foreman_datacenter/controller/parameters/manufacturer.rb
137
+ - app/controllers/concerns/foreman_datacenter/controller/parameters/platform.rb
138
+ - app/controllers/concerns/foreman_datacenter/controller/parameters/power_outlet.rb
139
+ - app/controllers/concerns/foreman_datacenter/controller/parameters/power_outlet_template.rb
140
+ - app/controllers/concerns/foreman_datacenter/controller/parameters/power_port.rb
141
+ - app/controllers/concerns/foreman_datacenter/controller/parameters/power_port_template.rb
142
+ - app/controllers/concerns/foreman_datacenter/controller/parameters/rack.rb
143
+ - app/controllers/concerns/foreman_datacenter/controller/parameters/rack_group.rb
144
+ - app/controllers/concerns/foreman_datacenter/controller/parameters/site.rb
91
145
  - app/controllers/concerns/foreman_datacenter/hosts_controller_extensions.rb
146
+ - app/controllers/foreman_datacenter/application_controller.rb
92
147
  - app/controllers/foreman_datacenter/comments_controller.rb
93
148
  - app/controllers/foreman_datacenter/console_port_templates_controller.rb
94
149
  - app/controllers/foreman_datacenter/console_ports_controller.rb
@@ -114,6 +169,7 @@ files:
114
169
  - app/controllers/foreman_datacenter/racks_controller.rb
115
170
  - app/controllers/foreman_datacenter/sites_controller.rb
116
171
  - app/helpers/foreman_datacenter/application_helper.rb
172
+ - app/helpers/foreman_datacenter/comments_helper.rb
117
173
  - app/helpers/foreman_datacenter/console_ports_helper.rb
118
174
  - app/helpers/foreman_datacenter/console_server_ports_helper.rb
119
175
  - app/helpers/foreman_datacenter/device_bays_helper.rb
@@ -153,14 +209,148 @@ files:
153
209
  - app/models/foreman_datacenter/rack.rb
154
210
  - app/models/foreman_datacenter/rack_group.rb
155
211
  - app/models/foreman_datacenter/site.rb
212
+ - app/views/api/v2/foreman_datacenter/console_port_templates/base.json.rabl
213
+ - app/views/api/v2/foreman_datacenter/console_port_templates/create.json.rabl
214
+ - app/views/api/v2/foreman_datacenter/console_port_templates/index.json.rabl
215
+ - app/views/api/v2/foreman_datacenter/console_port_templates/main.json.rabl
216
+ - app/views/api/v2/foreman_datacenter/console_port_templates/show.json.rabl
217
+ - app/views/api/v2/foreman_datacenter/console_ports/base.json.rabl
218
+ - app/views/api/v2/foreman_datacenter/console_ports/create.json.rabl
219
+ - app/views/api/v2/foreman_datacenter/console_ports/index.json.rabl
220
+ - app/views/api/v2/foreman_datacenter/console_ports/main.json.rabl
221
+ - app/views/api/v2/foreman_datacenter/console_ports/show.json.rabl
222
+ - app/views/api/v2/foreman_datacenter/console_ports/update.json.rabl
223
+ - app/views/api/v2/foreman_datacenter/console_server_port_templates/base.json.rabl
224
+ - app/views/api/v2/foreman_datacenter/console_server_port_templates/create.json.rabl
225
+ - app/views/api/v2/foreman_datacenter/console_server_port_templates/index.json.rabl
226
+ - app/views/api/v2/foreman_datacenter/console_server_port_templates/main.json.rabl
227
+ - app/views/api/v2/foreman_datacenter/console_server_port_templates/show.json.rabl
228
+ - app/views/api/v2/foreman_datacenter/console_server_ports/base.json.rabl
229
+ - app/views/api/v2/foreman_datacenter/console_server_ports/create.json.rabl
230
+ - app/views/api/v2/foreman_datacenter/console_server_ports/index.json.rabl
231
+ - app/views/api/v2/foreman_datacenter/console_server_ports/main.json.rabl
232
+ - app/views/api/v2/foreman_datacenter/console_server_ports/show.json.rabl
233
+ - app/views/api/v2/foreman_datacenter/console_server_ports/update.json.rabl
234
+ - app/views/api/v2/foreman_datacenter/device_bay_templates/base.json.rabl
235
+ - app/views/api/v2/foreman_datacenter/device_bay_templates/create.json.rabl
236
+ - app/views/api/v2/foreman_datacenter/device_bay_templates/index.json.rabl
237
+ - app/views/api/v2/foreman_datacenter/device_bay_templates/main.json.rabl
238
+ - app/views/api/v2/foreman_datacenter/device_bay_templates/show.json.rabl
239
+ - app/views/api/v2/foreman_datacenter/device_bays/base.json.rabl
240
+ - app/views/api/v2/foreman_datacenter/device_bays/create.json.rabl
241
+ - app/views/api/v2/foreman_datacenter/device_bays/index.json.rabl
242
+ - app/views/api/v2/foreman_datacenter/device_bays/main.json.rabl
243
+ - app/views/api/v2/foreman_datacenter/device_bays/show.json.rabl
244
+ - app/views/api/v2/foreman_datacenter/device_bays/update.json.rabl
245
+ - app/views/api/v2/foreman_datacenter/device_interface_connections/base.json.rabl
246
+ - app/views/api/v2/foreman_datacenter/device_interface_connections/create.json.rabl
247
+ - app/views/api/v2/foreman_datacenter/device_interface_connections/index.json.rabl
248
+ - app/views/api/v2/foreman_datacenter/device_interface_connections/main.json.rabl
249
+ - app/views/api/v2/foreman_datacenter/device_interface_connections/show.json.rabl
250
+ - app/views/api/v2/foreman_datacenter/device_interface_connections/update.json.rabl
251
+ - app/views/api/v2/foreman_datacenter/device_interfaces/base.json.rabl
252
+ - app/views/api/v2/foreman_datacenter/device_interfaces/create.json.rabl
253
+ - app/views/api/v2/foreman_datacenter/device_interfaces/index.json.rabl
254
+ - app/views/api/v2/foreman_datacenter/device_interfaces/main.json.rabl
255
+ - app/views/api/v2/foreman_datacenter/device_interfaces/show.json.rabl
256
+ - app/views/api/v2/foreman_datacenter/device_interfaces/update.json.rabl
257
+ - app/views/api/v2/foreman_datacenter/device_modules/base.json.rabl
258
+ - app/views/api/v2/foreman_datacenter/device_modules/create.json.rabl
259
+ - app/views/api/v2/foreman_datacenter/device_modules/index.json.rabl
260
+ - app/views/api/v2/foreman_datacenter/device_modules/main.json.rabl
261
+ - app/views/api/v2/foreman_datacenter/device_modules/show.json.rabl
262
+ - app/views/api/v2/foreman_datacenter/device_modules/update.json.rabl
263
+ - app/views/api/v2/foreman_datacenter/device_roles/base.json.rabl
264
+ - app/views/api/v2/foreman_datacenter/device_roles/create.json.rabl
265
+ - app/views/api/v2/foreman_datacenter/device_roles/index.json.rabl
266
+ - app/views/api/v2/foreman_datacenter/device_roles/main.json.rabl
267
+ - app/views/api/v2/foreman_datacenter/device_roles/show.json.rabl
268
+ - app/views/api/v2/foreman_datacenter/device_roles/update.json.rabl
269
+ - app/views/api/v2/foreman_datacenter/device_types/base.json.rabl
270
+ - app/views/api/v2/foreman_datacenter/device_types/create.json.rabl
271
+ - app/views/api/v2/foreman_datacenter/device_types/index.json.rabl
272
+ - app/views/api/v2/foreman_datacenter/device_types/main.json.rabl
273
+ - app/views/api/v2/foreman_datacenter/device_types/show.json.rabl
274
+ - app/views/api/v2/foreman_datacenter/device_types/update.json.rabl
275
+ - app/views/api/v2/foreman_datacenter/devices/base.json.rabl
276
+ - app/views/api/v2/foreman_datacenter/devices/create.json.rabl
277
+ - app/views/api/v2/foreman_datacenter/devices/index.json.rabl
278
+ - app/views/api/v2/foreman_datacenter/devices/main.json.rabl
279
+ - app/views/api/v2/foreman_datacenter/devices/show.json.rabl
280
+ - app/views/api/v2/foreman_datacenter/devices/update.json.rabl
281
+ - app/views/api/v2/foreman_datacenter/interface_templates/base.json.rabl
282
+ - app/views/api/v2/foreman_datacenter/interface_templates/create.json.rabl
283
+ - app/views/api/v2/foreman_datacenter/interface_templates/index.json.rabl
284
+ - app/views/api/v2/foreman_datacenter/interface_templates/main.json.rabl
285
+ - app/views/api/v2/foreman_datacenter/interface_templates/show.json.rabl
286
+ - app/views/api/v2/foreman_datacenter/management_devices/base.json.rabl
287
+ - app/views/api/v2/foreman_datacenter/management_devices/create.json.rabl
288
+ - app/views/api/v2/foreman_datacenter/management_devices/index.json.rabl
289
+ - app/views/api/v2/foreman_datacenter/management_devices/main.json.rabl
290
+ - app/views/api/v2/foreman_datacenter/management_devices/show.json.rabl
291
+ - app/views/api/v2/foreman_datacenter/management_devices/update.json.rabl
292
+ - app/views/api/v2/foreman_datacenter/manufacturers/base.json.rabl
293
+ - app/views/api/v2/foreman_datacenter/manufacturers/create.json.rabl
294
+ - app/views/api/v2/foreman_datacenter/manufacturers/index.json.rabl
295
+ - app/views/api/v2/foreman_datacenter/manufacturers/main.json.rabl
296
+ - app/views/api/v2/foreman_datacenter/manufacturers/show.json.rabl
297
+ - app/views/api/v2/foreman_datacenter/manufacturers/update.json.rabl
298
+ - app/views/api/v2/foreman_datacenter/platforms/base.json.rabl
299
+ - app/views/api/v2/foreman_datacenter/platforms/create.json.rabl
300
+ - app/views/api/v2/foreman_datacenter/platforms/index.json.rabl
301
+ - app/views/api/v2/foreman_datacenter/platforms/main.json.rabl
302
+ - app/views/api/v2/foreman_datacenter/platforms/show.json.rabl
303
+ - app/views/api/v2/foreman_datacenter/platforms/update.json.rabl
304
+ - app/views/api/v2/foreman_datacenter/power_outlet_templates/base.json.rabl
305
+ - app/views/api/v2/foreman_datacenter/power_outlet_templates/create.json.rabl
306
+ - app/views/api/v2/foreman_datacenter/power_outlet_templates/index.json.rabl
307
+ - app/views/api/v2/foreman_datacenter/power_outlet_templates/main.json.rabl
308
+ - app/views/api/v2/foreman_datacenter/power_outlet_templates/show.json.rabl
309
+ - app/views/api/v2/foreman_datacenter/power_outlets/base.json.rabl
310
+ - app/views/api/v2/foreman_datacenter/power_outlets/create.json.rabl
311
+ - app/views/api/v2/foreman_datacenter/power_outlets/index.json.rabl
312
+ - app/views/api/v2/foreman_datacenter/power_outlets/main.json.rabl
313
+ - app/views/api/v2/foreman_datacenter/power_outlets/show.json.rabl
314
+ - app/views/api/v2/foreman_datacenter/power_outlets/update.json.rabl
315
+ - app/views/api/v2/foreman_datacenter/power_port_templates/base.json.rabl
316
+ - app/views/api/v2/foreman_datacenter/power_port_templates/create.json.rabl
317
+ - app/views/api/v2/foreman_datacenter/power_port_templates/index.json.rabl
318
+ - app/views/api/v2/foreman_datacenter/power_port_templates/main.json.rabl
319
+ - app/views/api/v2/foreman_datacenter/power_port_templates/show.json.rabl
320
+ - app/views/api/v2/foreman_datacenter/power_ports/base.json.rabl
321
+ - app/views/api/v2/foreman_datacenter/power_ports/create.json.rabl
322
+ - app/views/api/v2/foreman_datacenter/power_ports/index.json.rabl
323
+ - app/views/api/v2/foreman_datacenter/power_ports/main.json.rabl
324
+ - app/views/api/v2/foreman_datacenter/power_ports/show.json.rabl
325
+ - app/views/api/v2/foreman_datacenter/power_ports/update.json.rabl
326
+ - app/views/api/v2/foreman_datacenter/rack_groups/base.json.rabl
327
+ - app/views/api/v2/foreman_datacenter/rack_groups/create.json.rabl
328
+ - app/views/api/v2/foreman_datacenter/rack_groups/index.json.rabl
329
+ - app/views/api/v2/foreman_datacenter/rack_groups/main.json.rabl
330
+ - app/views/api/v2/foreman_datacenter/rack_groups/show.json.rabl
331
+ - app/views/api/v2/foreman_datacenter/rack_groups/update.json.rabl
332
+ - app/views/api/v2/foreman_datacenter/racks/base.json.rabl
333
+ - app/views/api/v2/foreman_datacenter/racks/create.json.rabl
334
+ - app/views/api/v2/foreman_datacenter/racks/index.json.rabl
335
+ - app/views/api/v2/foreman_datacenter/racks/main.json.rabl
336
+ - app/views/api/v2/foreman_datacenter/racks/show.json.rabl
337
+ - app/views/api/v2/foreman_datacenter/racks/update.json.rabl
338
+ - app/views/api/v2/foreman_datacenter/sites/base.json.rabl
339
+ - app/views/api/v2/foreman_datacenter/sites/create.json.rabl
340
+ - app/views/api/v2/foreman_datacenter/sites/index.json.rabl
341
+ - app/views/api/v2/foreman_datacenter/sites/main.json.rabl
342
+ - app/views/api/v2/foreman_datacenter/sites/show.json.rabl
343
+ - app/views/api/v2/foreman_datacenter/sites/update.json.rabl
156
344
  - app/views/foreman_datacenter/comments/_children.html.erb
157
345
  - app/views/foreman_datacenter/comments/_comments.html.erb
158
346
  - app/views/foreman_datacenter/comments/_form.html.erb
159
347
  - app/views/foreman_datacenter/comments/_item.html.erb
348
+ - app/views/foreman_datacenter/comments/_list.html.erb
160
349
  - app/views/foreman_datacenter/comments/create.html.erb
161
350
  - app/views/foreman_datacenter/comments/edit.html.erb
162
351
  - app/views/foreman_datacenter/comments/index.html.erb
163
352
  - app/views/foreman_datacenter/comments/new.html.erb
353
+ - app/views/foreman_datacenter/common/404.html.erb
164
354
  - app/views/foreman_datacenter/console_port_templates/_form.html.erb
165
355
  - app/views/foreman_datacenter/console_port_templates/new.html.erb
166
356
  - app/views/foreman_datacenter/console_ports/_for_device.html.erb
@@ -169,6 +359,7 @@ files:
169
359
  - app/views/foreman_datacenter/console_ports/index.html.erb
170
360
  - app/views/foreman_datacenter/console_ports/new.html.erb
171
361
  - app/views/foreman_datacenter/console_ports/new_connection.html.erb
362
+ - app/views/foreman_datacenter/console_ports/welcome.html.erb
172
363
  - app/views/foreman_datacenter/console_server_port_templates/_form.html.erb
173
364
  - app/views/foreman_datacenter/console_server_port_templates/new.html.erb
174
365
  - app/views/foreman_datacenter/console_server_ports/_for_device.html.erb
@@ -186,6 +377,7 @@ files:
186
377
  - app/views/foreman_datacenter/device_interface_connections/_interfaces.html.erb
187
378
  - app/views/foreman_datacenter/device_interface_connections/index.html.erb
188
379
  - app/views/foreman_datacenter/device_interface_connections/new.html.erb
380
+ - app/views/foreman_datacenter/device_interface_connections/welcome.html.erb
189
381
  - app/views/foreman_datacenter/device_interfaces/_form.html.erb
190
382
  - app/views/foreman_datacenter/device_interfaces/edit.html.erb
191
383
  - app/views/foreman_datacenter/device_interfaces/new.html.erb
@@ -261,9 +453,11 @@ files:
261
453
  - app/views/foreman_datacenter/power_ports/index.html.erb
262
454
  - app/views/foreman_datacenter/power_ports/new.html.erb
263
455
  - app/views/foreman_datacenter/power_ports/new_connection.html.erb
456
+ - app/views/foreman_datacenter/power_ports/welcome.html.erb
264
457
  - app/views/foreman_datacenter/rack_groups/_form.html.erb
265
458
  - app/views/foreman_datacenter/rack_groups/edit.html.erb
266
459
  - app/views/foreman_datacenter/rack_groups/index.html.erb
460
+ - app/views/foreman_datacenter/rack_groups/move.html.erb
267
461
  - app/views/foreman_datacenter/rack_groups/new.html.erb
268
462
  - app/views/foreman_datacenter/rack_groups/show.html.erb
269
463
  - app/views/foreman_datacenter/rack_groups/welcome.html.erb
@@ -274,13 +468,17 @@ files:
274
468
  - app/views/foreman_datacenter/racks/_unpositioned_devices.html.erb
275
469
  - app/views/foreman_datacenter/racks/edit.html.erb
276
470
  - app/views/foreman_datacenter/racks/index.html.erb
471
+ - app/views/foreman_datacenter/racks/move.html.erb
277
472
  - app/views/foreman_datacenter/racks/new.html.erb
278
473
  - app/views/foreman_datacenter/racks/show.html.erb
279
474
  - app/views/foreman_datacenter/racks/welcome.html.erb
475
+ - app/views/foreman_datacenter/shared/_aa.html.erb
476
+ - app/views/foreman_datacenter/shared/_modal.html.erb
280
477
  - app/views/foreman_datacenter/shared/_rack_device_select.html.erb
281
478
  - app/views/foreman_datacenter/sites/_form.html.erb
282
479
  - app/views/foreman_datacenter/sites/edit.html.erb
283
480
  - app/views/foreman_datacenter/sites/index.html.erb
481
+ - app/views/foreman_datacenter/sites/move.html.erb
284
482
  - app/views/foreman_datacenter/sites/new.html.erb
285
483
  - app/views/foreman_datacenter/sites/show.html.erb
286
484
  - app/views/foreman_datacenter/sites/welcome.html.erb
@@ -332,10 +530,42 @@ files:
332
530
  - locale/en/foreman_datacenter.po
333
531
  - locale/foreman_datacenter.pot
334
532
  - locale/gemspec.rb
533
+ - test/controllers/foreman_datacenter/device_types_contoller_test.rb
534
+ - test/controllers/foreman_datacenter/manufacturers_contoller_test.rb
535
+ - test/controllers/foreman_datacenter/platforms_contoller_test.rb
536
+ - test/controllers/foreman_datacenter/power_port_templates_contoller_test.rb
335
537
  - test/controllers/foreman_datacenter/rack_groups_contoller_test.rb
336
538
  - test/controllers/foreman_datacenter/racks_contoller_test.rb
337
539
  - test/controllers/foreman_datacenter/sites_contoller_test.rb
540
+ - test/datacenter_helper.rb
541
+ - test/factories/device_type.rb
338
542
  - test/factories/foreman_datacenter_factories.rb
543
+ - test/factories/manufacturer.rb
544
+ - test/factories/platform.rb
545
+ - test/factories/rack.rb
546
+ - test/factories/rack_group.rb
547
+ - test/factories/site.rb
548
+ - test/fixtures/foreman_datacenter/comments.yml
549
+ - test/fixtures/foreman_datacenter/console_port_templates.yml
550
+ - test/fixtures/foreman_datacenter/console_ports.yml
551
+ - test/fixtures/foreman_datacenter/console_server_port_templates.yml
552
+ - test/fixtures/foreman_datacenter/console_server_ports.yml
553
+ - test/fixtures/foreman_datacenter/device_bay_templates.yml
554
+ - test/fixtures/foreman_datacenter/device_bays.yml
555
+ - test/fixtures/foreman_datacenter/device_interface_connections.yml
556
+ - test/fixtures/foreman_datacenter/device_interfaces.yml
557
+ - test/fixtures/foreman_datacenter/device_modules.yml
558
+ - test/fixtures/foreman_datacenter/device_roles.yml
559
+ - test/fixtures/foreman_datacenter/device_types.yml
560
+ - test/fixtures/foreman_datacenter/devices.yml
561
+ - test/fixtures/foreman_datacenter/interface_templates.yml
562
+ - test/fixtures/foreman_datacenter/management_devices.yml
563
+ - test/fixtures/foreman_datacenter/manufacturers.yml
564
+ - test/fixtures/foreman_datacenter/platforms.yml
565
+ - test/fixtures/foreman_datacenter/power_outlet_templates.yml
566
+ - test/fixtures/foreman_datacenter/power_outlets.yml
567
+ - test/fixtures/foreman_datacenter/power_port_templates.yml
568
+ - test/fixtures/foreman_datacenter/power_ports.yml
339
569
  - test/fixtures/foreman_datacenter/rack_groups.yml
340
570
  - test/fixtures/foreman_datacenter/racks.yml
341
571
  - test/fixtures/foreman_datacenter/sites.yml
@@ -368,15 +598,47 @@ signing_key:
368
598
  specification_version: 4
369
599
  summary: A plugin that lets you document your servers in a datacenter
370
600
  test_files:
601
+ - test/factories/rack_group.rb
371
602
  - test/factories/foreman_datacenter_factories.rb
603
+ - test/factories/rack.rb
604
+ - test/factories/platform.rb
605
+ - test/factories/site.rb
606
+ - test/factories/manufacturer.rb
607
+ - test/factories/device_type.rb
372
608
  - test/unit/foreman_datacenter_test.rb
373
609
  - test/test_plugin_helper.rb
610
+ - test/datacenter_helper.rb
611
+ - test/fixtures/foreman_datacenter/device_interfaces.yml
612
+ - test/fixtures/foreman_datacenter/console_server_port_templates.yml
613
+ - test/fixtures/foreman_datacenter/interface_templates.yml
374
614
  - test/fixtures/foreman_datacenter/sites.yml
375
615
  - test/fixtures/foreman_datacenter/racks.yml
616
+ - test/fixtures/foreman_datacenter/device_bay_templates.yml
617
+ - test/fixtures/foreman_datacenter/power_ports.yml
618
+ - test/fixtures/foreman_datacenter/console_ports.yml
619
+ - test/fixtures/foreman_datacenter/management_devices.yml
620
+ - test/fixtures/foreman_datacenter/device_types.yml
621
+ - test/fixtures/foreman_datacenter/platforms.yml
622
+ - test/fixtures/foreman_datacenter/device_interface_connections.yml
623
+ - test/fixtures/foreman_datacenter/console_server_ports.yml
624
+ - test/fixtures/foreman_datacenter/devices.yml
625
+ - test/fixtures/foreman_datacenter/console_port_templates.yml
626
+ - test/fixtures/foreman_datacenter/device_roles.yml
627
+ - test/fixtures/foreman_datacenter/manufacturers.yml
628
+ - test/fixtures/foreman_datacenter/device_bays.yml
629
+ - test/fixtures/foreman_datacenter/power_outlet_templates.yml
376
630
  - test/fixtures/foreman_datacenter/rack_groups.yml
631
+ - test/fixtures/foreman_datacenter/comments.yml
632
+ - test/fixtures/foreman_datacenter/device_modules.yml
633
+ - test/fixtures/foreman_datacenter/power_outlets.yml
634
+ - test/fixtures/foreman_datacenter/power_port_templates.yml
377
635
  - test/controllers/foreman_datacenter/racks_contoller_test.rb
636
+ - test/controllers/foreman_datacenter/device_types_contoller_test.rb
637
+ - test/controllers/foreman_datacenter/platforms_contoller_test.rb
378
638
  - test/controllers/foreman_datacenter/rack_groups_contoller_test.rb
379
639
  - test/controllers/foreman_datacenter/sites_contoller_test.rb
640
+ - test/controllers/foreman_datacenter/power_port_templates_contoller_test.rb
641
+ - test/controllers/foreman_datacenter/manufacturers_contoller_test.rb
380
642
  - test/integration/foreman_datacenter/site_test.rb
381
643
  - test/integration/foreman_datacenter/rack_group_test.rb
382
644
  - test/integration/foreman_datacenter/rack_test.rb