katello 3.8.0.rc1 → 3.8.0.rc2

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of katello might be problematic. Click here for more details.

Files changed (123) hide show
  1. checksums.yaml +4 -4
  2. data/app/assets/javascripts/katello/common/index.js +1 -0
  3. data/app/assets/javascripts/katello/sync_management/index.js +1 -0
  4. data/app/controllers/katello/api/registry/registry_proxies_controller.rb +1 -1
  5. data/app/controllers/katello/api/v2/environments_controller.rb +0 -1
  6. data/app/controllers/katello/api/v2/ostree_branches_controller.rb +1 -1
  7. data/app/controllers/katello/api/v2/repository_sets_controller.rb +10 -1
  8. data/app/controllers/katello/remote_execution_controller.rb +6 -6
  9. data/app/helpers/katello/hosts_and_hostgroups_helper.rb +37 -9
  10. data/app/lib/katello/resources/registry.rb +4 -4
  11. data/app/models/katello/authorization/repository.rb +2 -1
  12. data/app/models/katello/content_view.rb +12 -4
  13. data/app/models/katello/glue/candlepin/owner.rb +0 -8
  14. data/app/models/katello/glue/candlepin/pool.rb +11 -11
  15. data/app/models/katello/kt_environment.rb +0 -6
  16. data/app/models/katello/product_content.rb +4 -1
  17. data/app/models/katello/rpm.rb +13 -5
  18. data/app/services/katello/ui_notifications/pulp/proxy_disk_space.rb +3 -1
  19. data/app/views/overrides/activation_keys/_host_environment_select.html.erb +2 -3
  20. data/config/katello.yaml.example +5 -0
  21. data/config/routes.rb +1 -0
  22. data/db/seeds.d/75-job_templates.rb +5 -2
  23. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/environments/details/views/environment-details.html +43 -8
  24. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/products/discovery/discovery.controller.js +17 -2
  25. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/products/discovery/views/discovery-create.html +1 -1
  26. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/products/discovery/views/discovery.html +1 -1
  27. data/engines/bastion_katello/app/assets/stylesheets/bastion_katello/bastion_katello.scss +5 -0
  28. data/lib/katello/version.rb +1 -1
  29. data/package.json +11 -7
  30. data/webpack/__mocks__/foremanReact/components/BreadcrumbBar.js +3 -0
  31. data/webpack/__mocks__/foremanReact/redux/actions/toasts.js +8 -0
  32. data/webpack/__mocks__/foremanReact/redux.js +3 -0
  33. data/webpack/components/Search/Search.test.js +3 -1
  34. data/webpack/components/SelectOrg/SelectOrg.scss +3 -0
  35. data/webpack/components/SelectOrg/SelectOrgAction.js +41 -0
  36. data/webpack/components/SelectOrg/SelectOrgReducer.js +33 -0
  37. data/webpack/components/SelectOrg/SetOrganization.js +116 -0
  38. data/webpack/components/WithOrganization/withOrganization.js +28 -0
  39. data/webpack/containers/Application/config.js +9 -2
  40. data/webpack/containers/Application/index.js +4 -2
  41. data/webpack/global_test_setup.js +6 -0
  42. data/webpack/helpers/caret.js +6 -0
  43. data/webpack/mockRequest.js +3 -3
  44. data/webpack/move_to_foreman/common/helpers.js +45 -8
  45. data/webpack/move_to_foreman/components/common/{emptyState → EmptyState}/index.js +16 -3
  46. data/webpack/move_to_foreman/components/common/table/components/Table.js +1 -1
  47. data/webpack/move_to_foreman/components/common/table/components/__snapshots__/CollapseSubscriptionGroupButton.test.js.snap +2 -2
  48. data/webpack/move_to_foreman/components/common/table/components/__snapshots__/TableSelectionCell.test.js.snap +1 -1
  49. data/webpack/move_to_foreman/components/common/table/components/__snapshots__/TableSelectionHeaderCell.test.js.snap +1 -1
  50. data/webpack/move_to_pf/LoadingState/LoadingState.js +27 -14
  51. data/webpack/move_to_pf/LoadingState/LoadingState.test.js +8 -4
  52. data/webpack/move_to_pf/Select/Select.js +40 -0
  53. data/webpack/move_to_pf/react-bootstrap-select/index.js +12 -1
  54. data/webpack/redux/actions/RedHatRepositories/enabled.js +0 -1
  55. data/webpack/redux/actions/RedHatRepositories/helpers.js +5 -5
  56. data/webpack/redux/actions/RedHatRepositories/sets.js +1 -1
  57. data/webpack/redux/consts.js +6 -0
  58. data/webpack/redux/reducers/index.js +2 -0
  59. data/webpack/scenes/RedHatRepositories/components/EnabledRepository.js +14 -23
  60. data/webpack/scenes/RedHatRepositories/components/EnabledRepositoryContent.js +34 -0
  61. data/webpack/scenes/RedHatRepositories/components/RepositorySetRepository.js +1 -1
  62. data/webpack/scenes/RedHatRepositories/components/SearchBar.js +1 -0
  63. data/webpack/scenes/RedHatRepositories/components/__tests__/EnabledRepository.test.js +36 -0
  64. data/webpack/scenes/RedHatRepositories/components/__tests__/EnabledRepositoryContent.test.js +27 -0
  65. data/webpack/scenes/RedHatRepositories/components/__tests__/__snapshots__/EnabledRepository.test.js.snap +25 -0
  66. data/webpack/scenes/RedHatRepositories/components/__tests__/__snapshots__/EnabledRepositoryContent.test.js.snap +47 -0
  67. data/webpack/scenes/RedHatRepositories/components/__tests__/__snapshots__/RecommendedRepositorySetsToggler.test.js.snap +3 -1
  68. data/webpack/scenes/RedHatRepositories/index.js +7 -3
  69. data/webpack/scenes/RedHatRepositories/index.scss +1 -0
  70. data/webpack/scenes/Subscriptions/Details/SubscriptionDetailActions.js +3 -8
  71. data/webpack/scenes/Subscriptions/Details/SubscriptionDetailProducts.js +5 -3
  72. data/webpack/scenes/Subscriptions/Details/SubscriptionDetailReducer.js +1 -1
  73. data/webpack/scenes/Subscriptions/Details/SubscriptionDetails.js +44 -6
  74. data/webpack/scenes/Subscriptions/Details/SubscriptionDetails.scss +4 -0
  75. data/webpack/scenes/Subscriptions/Details/__tests__/SubscriptionDetailReducer.test.js +3 -1
  76. data/webpack/scenes/Subscriptions/Details/__tests__/SubscriptionDetails.test.js +2 -1
  77. data/webpack/scenes/Subscriptions/Details/__tests__/__snapshots__/SubscriptionDetailProducts.test.js.snap +113 -23
  78. data/webpack/scenes/Subscriptions/Details/__tests__/__snapshots__/SubscriptionDetails.test.js.snap +23 -14
  79. data/webpack/scenes/Subscriptions/Details/__tests__/subscriptionDetails.fixtures.js +3 -4
  80. data/webpack/scenes/Subscriptions/Details/index.js +2 -2
  81. data/webpack/scenes/Subscriptions/Manifest/ManageManifestModal.js +78 -34
  82. data/webpack/scenes/Subscriptions/Manifest/ManifestActions.js +5 -24
  83. data/webpack/scenes/Subscriptions/Manifest/ManifestHistoryReducer.js +9 -1
  84. data/webpack/scenes/Subscriptions/Manifest/__tests__/ManageManifestModal.test.js +3 -0
  85. data/webpack/scenes/Subscriptions/Manifest/__tests__/ManifestActions.test.js +20 -8
  86. data/webpack/scenes/Subscriptions/Manifest/__tests__/ManifestHistoryReducer.test.js +3 -1
  87. data/webpack/scenes/Subscriptions/Manifest/__tests__/__snapshots__/ManageManifestModal.test.js.snap +34 -7
  88. data/webpack/scenes/Subscriptions/Manifest/__tests__/manifest.fixtures.js +9 -16
  89. data/webpack/scenes/Subscriptions/Manifest/index.js +1 -0
  90. data/webpack/scenes/Subscriptions/SubscriptionActions.js +5 -26
  91. data/webpack/scenes/Subscriptions/SubscriptionConstants.js +1 -0
  92. data/webpack/scenes/Subscriptions/SubscriptionHelpers.js +3 -0
  93. data/webpack/scenes/Subscriptions/SubscriptionReducer.js +11 -4
  94. data/webpack/scenes/Subscriptions/SubscriptionsPage.js +31 -36
  95. data/webpack/scenes/Subscriptions/UpstreamSubscriptions/UpstreamSubscriptionsActions.js +3 -12
  96. data/webpack/scenes/Subscriptions/UpstreamSubscriptions/UpstreamSubscriptionsPage.js +57 -27
  97. data/webpack/scenes/Subscriptions/UpstreamSubscriptions/UpstreamSubscriptionsReducer.js +2 -3
  98. data/webpack/scenes/Subscriptions/UpstreamSubscriptions/UpstreamSubscriptionsTableSchema.js +10 -5
  99. data/webpack/scenes/Subscriptions/UpstreamSubscriptions/__tests__/UpstreamSubscriptionsActions.test.js +10 -5
  100. data/webpack/scenes/Subscriptions/UpstreamSubscriptions/__tests__/UpstreamSubscriptionsPage.test.js +50 -5
  101. data/webpack/scenes/Subscriptions/UpstreamSubscriptions/__tests__/UpstreamSubscriptionsReducer.test.js +8 -3
  102. data/webpack/scenes/Subscriptions/UpstreamSubscriptions/__tests__/__snapshots__/UpstreamSubscriptionsPage.test.js.snap +21 -11
  103. data/webpack/scenes/Subscriptions/UpstreamSubscriptions/__tests__/upstreamSubscriptions.fixtures.js +5 -8
  104. data/webpack/scenes/Subscriptions/__tests__/SubscriptionsPage.test.js +2 -0
  105. data/webpack/scenes/Subscriptions/__tests__/SubscriptionsReducer.test.js +9 -3
  106. data/webpack/scenes/Subscriptions/__tests__/__snapshots__/SubscriptionsPage.test.js.snap +14 -2
  107. data/webpack/scenes/Subscriptions/__tests__/subscriptions.fixtures.js +11 -17
  108. data/webpack/scenes/Subscriptions/components/SubscriptionsTable/EntitlementsInlineEditFormatter.js +8 -5
  109. data/webpack/scenes/Subscriptions/components/SubscriptionsTable/SubscriptionsTable.js +45 -58
  110. data/webpack/scenes/Subscriptions/components/SubscriptionsTable/SubscriptionsTableHelpers.js +11 -4
  111. data/webpack/scenes/Subscriptions/components/SubscriptionsTable/SubscriptionsTableSchema.js +2 -2
  112. data/webpack/scenes/Subscriptions/components/SubscriptionsTable/__tests__/EntitlementsInlineEditFormatter.test.js +110 -0
  113. data/webpack/scenes/Subscriptions/components/SubscriptionsTable/__tests__/SubscriptionsTable.test.js +16 -3
  114. data/webpack/scenes/Subscriptions/components/SubscriptionsTable/__tests__/__snapshots__/EntitlementsInlineEditFormatter.test.js.snap +228 -0
  115. data/webpack/scenes/Subscriptions/components/SubscriptionsTable/__tests__/__snapshots__/SubscriptionsTable.test.js.snap +392 -365
  116. data/webpack/scenes/Subscriptions/index.js +1 -0
  117. data/webpack/scenes/Tasks/helpers.js +52 -0
  118. data/webpack/services/api/index.js +17 -1
  119. data/webpack/services/api/testHelpers.js +28 -0
  120. data/webpack/test_setup.js +2 -0
  121. metadata +24 -5
  122. data/config/katello.yaml +0 -89
  123. data/webpack/services/api/fixtures.js +0 -353
@@ -1,430 +1,457 @@
1
1
  // Jest Snapshot v1, https://goo.gl/fbAQLP
2
2
 
3
3
  exports[`subscriptions table should render a loading state 1`] = `
4
- <div
5
- class="loading-state"
4
+ <SubscriptionsTable
5
+ emptyState={Object {}}
6
+ loadSubscriptions={[Function]}
7
+ onDeleteSubscriptions={[Function]}
8
+ onSubscriptionDeleteModalClose={[Function]}
9
+ subscriptionDeleteModalOpen={false}
10
+ subscriptions={
11
+ Object {
12
+ "availableQuantities": null,
13
+ "itemCount": 0,
14
+ "loading": true,
15
+ "pagination": Object {
16
+ "page": 0,
17
+ "perPage": 20,
18
+ },
19
+ "quantitiesLoading": false,
20
+ "results": Array [],
21
+ "tasks": Array [],
22
+ }
23
+ }
24
+ task={
25
+ Object {
26
+ "humanized": Object {},
27
+ }
28
+ }
29
+ toggleDeleteButton={[Function]}
30
+ updateQuantity={[Function]}
6
31
  >
7
- <div
8
- class="spinner spinner-lg"
9
- />
10
- <p>
11
- Loading
12
- </p>
13
- </div>
32
+ <LoadingState
33
+ loading={true}
34
+ loadingText="Loading"
35
+ timeout={300}
36
+ >
37
+ <div
38
+ className="loading-state"
39
+ >
40
+ <Spinner
41
+ className=""
42
+ inline={false}
43
+ inverse={false}
44
+ loading={true}
45
+ size="lg"
46
+ >
47
+ <div
48
+ className="spinner spinner-lg"
49
+ />
50
+ </Spinner>
51
+ <p>
52
+ Loading
53
+ </p>
54
+ </div>
55
+ </LoadingState>
56
+ </SubscriptionsTable>
14
57
  `;
15
58
 
16
59
  exports[`subscriptions table should render a table 1`] = `
17
- Array [
18
- <div />,
19
- <div>
20
- <table
21
- class="table table-striped table-bordered table-hover pf-table-inline-edit table-fixed"
22
- >
23
- <thead>
24
- <tr
25
- class=""
60
+ <div>
61
+ <table
62
+ class="table table-striped table-bordered table-hover pf-table-inline-edit table-fixed"
63
+ >
64
+ <thead>
65
+ <tr
66
+ class=""
67
+ >
68
+ <th
69
+ aria-label="Select all rows"
70
+ class="table-view-pf-select"
26
71
  >
27
- <th
28
- aria-label="Select all rows"
29
- class="table-view-pf-select"
30
- >
31
- <label
32
- class="control-label sr-only"
33
- for="selectAll"
34
- >
35
- Select all rows
36
- </label>
37
- <input
38
- id="selectAll"
39
- type="checkbox"
40
- />
41
- </th>
42
- <th
43
- class=""
44
- >
45
- Name
46
- </th>
47
- <th
48
- class=""
49
- >
50
- SKU
51
- </th>
52
- <th
53
- class=""
54
- >
55
- Contract
56
- </th>
57
- <th
58
- class=""
72
+ <label
73
+ class="control-label sr-only"
74
+ for="selectAll"
59
75
  >
60
- Start Date
61
- </th>
62
- <th
63
- class=""
64
- >
65
- End Date
66
- </th>
67
- <th
68
- class=""
69
- >
70
- Requires Virt-Who
71
- </th>
72
- <th
73
- class=""
74
- >
75
- Consumed
76
- </th>
77
- <th
78
- class=""
79
- >
80
- Entitlements
81
- </th>
82
- </tr>
83
- </thead>
84
- <tbody>
85
- <tr
76
+ Select all rows
77
+ </label>
78
+ <input
79
+ id="selectAll"
80
+ type="checkbox"
81
+ />
82
+ </th>
83
+ <th
86
84
  class=""
87
85
  >
88
- <td
89
- class="table-view-pf-select"
90
- >
91
- <label
92
- class="control-label sr-only"
93
- for="select0"
94
- >
95
- Select row
96
- </label>
97
- <input
98
- id="select0"
99
- type="checkbox"
100
- />
101
- </td>
102
- <td>
103
- <a
104
- href="/subscriptions/3/"
105
- >
106
- zoo
107
- </a>
108
- </td>
109
- <td
110
- class=""
86
+ Name
87
+ </th>
88
+ <th
89
+ class=""
90
+ >
91
+ SKU
92
+ </th>
93
+ <th
94
+ class=""
95
+ >
96
+ Contract
97
+ </th>
98
+ <th
99
+ class=""
100
+ >
101
+ Start Date
102
+ </th>
103
+ <th
104
+ class=""
105
+ >
106
+ End Date
107
+ </th>
108
+ <th
109
+ class=""
110
+ >
111
+ Requires Virt-Who
112
+ </th>
113
+ <th
114
+ class=""
115
+ >
116
+ Consumed
117
+ </th>
118
+ <th
119
+ class=""
120
+ >
121
+ Entitlements
122
+ </th>
123
+ </tr>
124
+ </thead>
125
+ <tbody>
126
+ <tr
127
+ class=""
128
+ >
129
+ <td
130
+ class="table-view-pf-select"
131
+ >
132
+ <label
133
+ class="control-label sr-only"
134
+ for="select0"
111
135
  >
112
- 853987721546
113
- </td>
114
- <td
115
- class=""
136
+ Select row
137
+ </label>
138
+ <input
139
+ id="select0"
140
+ type="checkbox"
116
141
  />
117
- <td
118
- class=""
142
+ </td>
143
+ <td>
144
+ <a
145
+ href="/subscriptions/3/"
119
146
  >
120
- 2017-09-21 16:18:44 -0400
121
- </td>
122
- <td
123
- class=""
124
- >
125
- 2047-09-14 15:18:44 -0500
126
- </td>
127
- <td>
128
- <span
129
- aria-hidden="true"
130
- class="fa fa-minus"
131
- />
132
- </td>
133
- <td
134
- class=""
135
- >
136
- 1
137
- </td>
138
- <td>
139
- Unlimited
140
- </td>
141
- </tr>
142
- <tr
147
+ zoo
148
+ </a>
149
+ </td>
150
+ <td
143
151
  class=""
144
152
  >
145
- <td
146
- class="table-view-pf-select"
147
- >
148
- <label
149
- class="control-label sr-only"
150
- for="select1"
151
- >
152
- Select row
153
- </label>
154
- <input
155
- id="select1"
156
- type="checkbox"
157
- />
158
- </td>
159
- <td>
160
- <a
161
- href="/subscriptions/4/"
162
- >
163
- hsdfhsdh
164
- </a>
165
- </td>
166
- <td
167
- class=""
168
- >
169
- 947637693017
170
- </td>
171
- <td
172
- class=""
153
+ 853987721546
154
+ </td>
155
+ <td
156
+ class=""
157
+ />
158
+ <td
159
+ class=""
160
+ >
161
+ 2017-09-21 16:18:44 -0400
162
+ </td>
163
+ <td
164
+ class=""
165
+ >
166
+ 2047-09-14 15:18:44 -0500
167
+ </td>
168
+ <td>
169
+ <span
170
+ aria-hidden="true"
171
+ class="fa fa-minus"
173
172
  />
174
- <td
175
- class=""
176
- >
177
- 2017-09-25 17:54:36 -0400
178
- </td>
179
- <td
180
- class=""
181
- >
182
- 2047-09-18 16:54:36 -0500
183
- </td>
184
- <td>
185
- <span
186
- aria-hidden="true"
187
- class="fa fa-minus"
188
- />
189
- </td>
190
- <td
191
- class=""
192
- >
193
- 0
194
- </td>
195
- <td>
196
- Unlimited
197
- </td>
198
- </tr>
199
- </tbody>
200
- </table>
201
- <form
202
- class="content-view-pf-pagination table-view-pf-pagination clearfix"
203
- >
204
- <div
205
- class="form-group"
173
+ </td>
174
+ <td
175
+ class=""
176
+ >
177
+ 1
178
+ </td>
179
+ <td>
180
+ Unlimited
181
+ </td>
182
+ </tr>
183
+ <tr
184
+ class=""
206
185
  >
207
- <div
208
- class="dropup pagination-pf-pagesize btn-group"
186
+ <td
187
+ class="table-view-pf-select"
209
188
  >
210
- <button
211
- aria-expanded="false"
212
- aria-haspopup="true"
213
- class="dropdown-toggle btn btn-default"
214
- id="pagination-row-dropdown"
215
- role="button"
216
- type="button"
189
+ <label
190
+ class="control-label sr-only"
191
+ for="select1"
217
192
  >
218
- 2
219
- <span
220
- class="caret"
221
- />
222
- </button>
223
- <ul
224
- aria-labelledby="pagination-row-dropdown"
225
- class="dropdown-menu"
226
- role="menu"
193
+ Select row
194
+ </label>
195
+ <input
196
+ id="select1"
197
+ type="checkbox"
198
+ />
199
+ </td>
200
+ <td>
201
+ <a
202
+ href="/subscriptions/4/"
227
203
  >
228
- <li
229
- class=""
230
- role="presentation"
231
- >
232
- <a
233
- href="#"
234
- role="menuitem"
235
- tabindex="-1"
236
- >
237
- 5
238
- </a>
239
- </li>
240
- <li
241
- class=""
242
- role="presentation"
243
- >
244
- <a
245
- href="#"
246
- role="menuitem"
247
- tabindex="-1"
248
- >
249
- 10
250
- </a>
251
- </li>
252
- <li
253
- class=""
254
- role="presentation"
255
- >
256
- <a
257
- href="#"
258
- role="menuitem"
259
- tabindex="-1"
260
- >
261
- 15
262
- </a>
263
- </li>
264
- <li
265
- class=""
266
- role="presentation"
267
- >
268
- <a
269
- href="#"
270
- role="menuitem"
271
- tabindex="-1"
272
- >
273
- 25
274
- </a>
275
- </li>
276
- <li
277
- class=""
278
- role="presentation"
279
- >
280
- <a
281
- href="#"
282
- role="menuitem"
283
- tabindex="-1"
284
- >
285
- 50
286
- </a>
287
- </li>
288
- </ul>
289
- </div>
290
- <span>
291
- per page
292
- </span>
293
- </div>
204
+ hsdfhsdh
205
+ </a>
206
+ </td>
207
+ <td
208
+ class=""
209
+ >
210
+ 947637693017
211
+ </td>
212
+ <td
213
+ class=""
214
+ />
215
+ <td
216
+ class=""
217
+ >
218
+ 2017-09-25 17:54:36 -0400
219
+ </td>
220
+ <td
221
+ class=""
222
+ >
223
+ 2047-09-18 16:54:36 -0500
224
+ </td>
225
+ <td>
226
+ <span
227
+ aria-hidden="true"
228
+ class="fa fa-minus"
229
+ />
230
+ </td>
231
+ <td
232
+ class=""
233
+ >
234
+ 0
235
+ </td>
236
+ <td>
237
+ Unlimited
238
+ </td>
239
+ </tr>
240
+ </tbody>
241
+ </table>
242
+ <form
243
+ class="content-view-pf-pagination table-view-pf-pagination clearfix"
244
+ >
245
+ <div
246
+ class="form-group"
247
+ >
294
248
  <div
295
- class="form-group"
249
+ class="dropup pagination-pf-pagesize btn-group"
296
250
  >
297
- <span>
298
- <span
299
- class="pagination-pf-items-current"
300
- >
301
- 1-2
302
- </span>
303
-  of 
251
+ <button
252
+ aria-expanded="false"
253
+ aria-haspopup="true"
254
+ class="dropdown-toggle btn btn-default"
255
+ id="pagination-row-dropdown"
256
+ role="button"
257
+ type="button"
258
+ >
259
+ 2
304
260
  <span
305
- class="pagination-pf-items-total"
306
- >
307
- 81
308
- </span>
309
- </span>
261
+ class="caret"
262
+ />
263
+ </button>
310
264
  <ul
311
- class="pagination pagination-pf-back"
265
+ aria-labelledby="pagination-row-dropdown"
266
+ class="dropdown-menu"
267
+ role="menu"
312
268
  >
313
269
  <li
314
- class="disabled"
270
+ class=""
271
+ role="presentation"
315
272
  >
316
273
  <a
317
274
  href="#"
318
- title="First Page"
275
+ role="menuitem"
276
+ tabindex="-1"
319
277
  >
320
- <span
321
- aria-hidden="true"
322
- class="fa fa-angle-double-left i"
323
- />
278
+ 5
324
279
  </a>
325
280
  </li>
326
281
  <li
327
- class="disabled"
282
+ class=""
283
+ role="presentation"
328
284
  >
329
285
  <a
330
286
  href="#"
331
- title="Previous Page"
287
+ role="menuitem"
288
+ tabindex="-1"
332
289
  >
333
- <span
334
- aria-hidden="true"
335
- class="fa fa-angle-left i"
336
- />
290
+ 10
337
291
  </a>
338
292
  </li>
339
- </ul>
340
- <label
341
- class="sr-only control-label"
342
- >
343
- Current Page
344
- </label>
345
- <input
346
- class="pagination-pf-page form-control"
347
- type="text"
348
- value="1"
349
- />
350
- <span>
351
-  of 
352
- <span
353
- class="pagination-pf-pages"
293
+ <li
294
+ class=""
295
+ role="presentation"
354
296
  >
355
- 41
356
- </span>
357
- </span>
358
- <ul
359
- class="pagination pagination-pf-forward"
360
- >
297
+ <a
298
+ href="#"
299
+ role="menuitem"
300
+ tabindex="-1"
301
+ >
302
+ 15
303
+ </a>
304
+ </li>
361
305
  <li
362
306
  class=""
307
+ role="presentation"
363
308
  >
364
309
  <a
365
310
  href="#"
366
- title="Next Page"
311
+ role="menuitem"
312
+ tabindex="-1"
367
313
  >
368
- <span
369
- aria-hidden="true"
370
- class="fa fa-angle-right i"
371
- />
314
+ 25
372
315
  </a>
373
316
  </li>
374
317
  <li
375
318
  class=""
319
+ role="presentation"
376
320
  >
377
321
  <a
378
322
  href="#"
379
- title="Last Page"
323
+ role="menuitem"
324
+ tabindex="-1"
380
325
  >
381
- <span
382
- aria-hidden="true"
383
- class="fa fa-angle-double-right i"
384
- />
326
+ 50
385
327
  </a>
386
328
  </li>
387
329
  </ul>
388
330
  </div>
389
- </form>
390
- </div>,
391
- ]
392
- `;
393
-
394
- exports[`subscriptions table should render an empty state 1`] = `
395
- Array [
396
- <div />,
397
- <div
398
- class="blank-slate-pf"
399
- >
400
- <div
401
- class="blank-slate-pf-icon"
402
- >
403
- <span
404
- aria-hidden="true"
405
- class="pficon pficon-add-circle-o"
406
- />
331
+ <span>
332
+ per page
333
+ </span>
407
334
  </div>
408
- <h4
409
- class="h1 blank-slate-pf-title"
410
- >
411
- There are no Subscriptions to display
412
- </h4>
413
- <p
414
- class="blank-slate-pf-info"
415
- >
416
- Add Subscriptions to this Allocation to manage your Entitlements.
417
- </p>
418
335
  <div
419
- class="blank-slate-pf-main-action"
336
+ class="form-group"
420
337
  >
421
- <a
422
- class="btn btn-lg btn-primary"
423
- href="subscriptions/add"
338
+ <span>
339
+ <span
340
+ class="pagination-pf-items-current"
341
+ >
342
+ 1-2
343
+ </span>
344
+  of 
345
+ <span
346
+ class="pagination-pf-items-total"
347
+ >
348
+ 81
349
+ </span>
350
+ </span>
351
+ <ul
352
+ class="pagination pagination-pf-back"
353
+ >
354
+ <li
355
+ class="disabled"
356
+ >
357
+ <a
358
+ href="#"
359
+ title="First Page"
360
+ >
361
+ <span
362
+ aria-hidden="true"
363
+ class="fa fa-angle-double-left i"
364
+ />
365
+ </a>
366
+ </li>
367
+ <li
368
+ class="disabled"
369
+ >
370
+ <a
371
+ href="#"
372
+ title="Previous Page"
373
+ >
374
+ <span
375
+ aria-hidden="true"
376
+ class="fa fa-angle-left i"
377
+ />
378
+ </a>
379
+ </li>
380
+ </ul>
381
+ <label
382
+ class="sr-only control-label"
383
+ >
384
+ Current Page
385
+ </label>
386
+ <input
387
+ class="pagination-pf-page form-control"
388
+ type="text"
389
+ value="1"
390
+ />
391
+ <span>
392
+  of 
393
+ <span
394
+ class="pagination-pf-pages"
395
+ >
396
+ 41
397
+ </span>
398
+ </span>
399
+ <ul
400
+ class="pagination pagination-pf-forward"
424
401
  >
425
- Add Subscriptions
426
- </a>
402
+ <li
403
+ class=""
404
+ >
405
+ <a
406
+ href="#"
407
+ title="Next Page"
408
+ >
409
+ <span
410
+ aria-hidden="true"
411
+ class="fa fa-angle-right i"
412
+ />
413
+ </a>
414
+ </li>
415
+ <li
416
+ class=""
417
+ >
418
+ <a
419
+ href="#"
420
+ title="Last Page"
421
+ >
422
+ <span
423
+ aria-hidden="true"
424
+ class="fa fa-angle-double-right i"
425
+ />
426
+ </a>
427
+ </li>
428
+ </ul>
427
429
  </div>
428
- </div>,
429
- ]
430
+ </form>
431
+ </div>
432
+ `;
433
+
434
+ exports[`subscriptions table should render an empty state 1`] = `
435
+ <div
436
+ class="blank-slate-pf"
437
+ >
438
+ <div
439
+ class="blank-slate-pf-icon"
440
+ >
441
+ <span
442
+ aria-hidden="true"
443
+ class="pficon pficon-add-circle-o"
444
+ />
445
+ </div>
446
+ <h4
447
+ class="h1 blank-slate-pf-title"
448
+ >
449
+ Yay empty state
450
+ </h4>
451
+ <p
452
+ class="blank-slate-pf-info"
453
+ >
454
+ There is nothing to see here
455
+ </p>
456
+ </div>
430
457
  `;