katello 3.8.0.rc2 → 3.8.0.rc3

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 (23) hide show
  1. checksums.yaml +4 -4
  2. data/app/controllers/katello/api/v2/repositories_controller.rb +37 -24
  3. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/bulk/content-hosts-bulk-subscriptions-modal.controller.js +4 -1
  4. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/content/views/content-host-errata.html +1 -1
  5. data/lib/katello/version.rb +1 -1
  6. data/webpack/scenes/Products/ProductActions.js +24 -0
  7. data/webpack/scenes/Products/ProductConstants.js +3 -0
  8. data/webpack/scenes/Products/__tests__/ProductActions.test.js +40 -0
  9. data/webpack/scenes/Products/__tests__/products.fixtures.js +90 -0
  10. data/webpack/scenes/Subscriptions/Details/SubscriptionDetailEnabledProducts.js +54 -0
  11. data/webpack/scenes/Subscriptions/Details/SubscriptionDetailProduct.js +29 -0
  12. data/webpack/scenes/Subscriptions/Details/SubscriptionDetailReducer.js +29 -0
  13. data/webpack/scenes/Subscriptions/Details/SubscriptionDetails.js +67 -22
  14. data/webpack/scenes/Subscriptions/Details/SubscriptionDetails.scss +5 -0
  15. data/webpack/scenes/Subscriptions/Details/__tests__/SubscriptionDetailEnabledProducts.test.js +18 -0
  16. data/webpack/scenes/Subscriptions/Details/__tests__/SubscriptionDetailProduct.test.js +13 -0
  17. data/webpack/scenes/Subscriptions/Details/__tests__/SubscriptionDetails.test.js +4 -0
  18. data/webpack/scenes/Subscriptions/Details/__tests__/__snapshots__/SubscriptionDetailEnabledProducts.test.js.snap +45 -0
  19. data/webpack/scenes/Subscriptions/Details/__tests__/__snapshots__/SubscriptionDetailProduct.test.js.snap +67 -0
  20. data/webpack/scenes/Subscriptions/Details/__tests__/__snapshots__/SubscriptionDetails.test.js.snap +497 -411
  21. data/webpack/scenes/Subscriptions/Details/__tests__/subscriptionDetails.fixtures.js +4 -0
  22. data/webpack/scenes/Subscriptions/Details/index.js +3 -1
  23. metadata +12 -2
@@ -2,3 +2,8 @@
2
2
  max-height: 400px;
3
3
  overflow-y: auto;
4
4
  }
5
+
6
+ .list-view-pf-expand {
7
+ max-height: 20px;
8
+ padding: 0;
9
+ }
@@ -0,0 +1,18 @@
1
+ import React from 'react';
2
+ import TestRenderer from 'react-test-renderer';
3
+ import { ListView } from 'patternfly-react';
4
+ import SubscriptionDetailEnabledProducts from '../SubscriptionDetailEnabledProducts';
5
+ import { availableContent, product } from '../../../Products/__tests__/products.fixtures.js';
6
+
7
+ describe('subscription detail enabled products page', () => {
8
+ it('renders correctly', () => {
9
+ const testRenderer = TestRenderer
10
+ .create(<SubscriptionDetailEnabledProducts
11
+ enabledProducts={{ results: [product([availableContent])] }}
12
+ />);
13
+ const testInstance = testRenderer.root;
14
+
15
+ expect(testRenderer.toJSON()).toMatchSnapshot();
16
+ expect(testInstance.findAllByType(ListView.Item)).toHaveLength(1);
17
+ });
18
+ });
@@ -0,0 +1,13 @@
1
+ import React from 'react';
2
+ import TestRenderer from 'react-test-renderer';
3
+ import SubscriptionDetailProduct from '../SubscriptionDetailProduct';
4
+ import { availableContent } from '../../../Products/__tests__/products.fixtures.js';
5
+
6
+ describe('subscription detail enabled product component', () => {
7
+ it('renders correctly', () => {
8
+ const testRenderer = TestRenderer
9
+ .create(<SubscriptionDetailProduct content={availableContent.content} />);
10
+
11
+ expect(testRenderer.toJSON()).toMatchSnapshot();
12
+ });
13
+ });
@@ -5,7 +5,9 @@ import SubscriptionDetails from '../SubscriptionDetails';
5
5
  import SubscriptionDetailAssociations from '../SubscriptionDetailAssociations';
6
6
  import SubscriptionDetailInfo from '../SubscriptionDetailInfo';
7
7
  import SubscriptionDetailProducts from '../SubscriptionDetailProducts';
8
+ import SubscriptionDetailEnabledProducts from '../SubscriptionDetailEnabledProducts';
8
9
  import { loadSubscriptionDetails } from '../SubscriptionDetailActions';
10
+ import { loadProducts } from '../../../Products/ProductActions';
9
11
  import { successState } from './subscriptionDetails.fixtures';
10
12
 
11
13
  jest.mock('../../../../move_to_foreman/foreman_toast_notifications');
@@ -17,6 +19,7 @@ describe('subscriptions details page', () => {
17
19
 
18
20
  const wrapper = shallow(<SubscriptionDetails
19
21
  loadSubscriptionDetails={loadSubscriptionDetails}
22
+ loadProducts={loadProducts}
20
23
  subscriptionDetails={successState}
21
24
  history={{ push: noop }}
22
25
  match={match}
@@ -24,6 +27,7 @@ describe('subscriptions details page', () => {
24
27
  expect(wrapper.find(SubscriptionDetailAssociations)).toHaveLength(1);
25
28
  expect(wrapper.find(SubscriptionDetailInfo)).toHaveLength(1);
26
29
  expect(wrapper.find(SubscriptionDetailProducts)).toHaveLength(1);
30
+ expect(wrapper.find(SubscriptionDetailEnabledProducts)).toHaveLength(1);
27
31
  expect(toJson(wrapper)).toMatchSnapshot();
28
32
  });
29
33
  });
@@ -0,0 +1,45 @@
1
+ // Jest Snapshot v1, https://goo.gl/fbAQLP
2
+
3
+ exports[`subscription detail enabled products page renders correctly 1`] = `
4
+ <div
5
+ className="list-group list-view-pf list-view-pf-view"
6
+ >
7
+ <div
8
+ className="list-group-item"
9
+ >
10
+ <div
11
+ className="list-group-item-header"
12
+ onClick={[Function]}
13
+ >
14
+ <div
15
+ className="list-view-pf-expand"
16
+ onClick={[Function]}
17
+ >
18
+ <span
19
+ className="fa fa-angle-right"
20
+ />
21
+ </div>
22
+ <div
23
+ className="list-view-pf-main-info"
24
+ >
25
+ <div
26
+ className="list-view-pf-body"
27
+ >
28
+ <div
29
+ className="list-view-pf-description"
30
+ >
31
+ <div
32
+ className="list-group-item-heading"
33
+ >
34
+ Red Hat Enterprise Linux Server
35
+ </div>
36
+ </div>
37
+ </div>
38
+ </div>
39
+ </div>
40
+ <div
41
+ className="list-group-item-container container-fluid hidden"
42
+ />
43
+ </div>
44
+ </div>
45
+ `;
@@ -0,0 +1,67 @@
1
+ // Jest Snapshot v1, https://goo.gl/fbAQLP
2
+
3
+ exports[`subscription detail enabled product component renders correctly 1`] = `
4
+ <div
5
+ className="row"
6
+ >
7
+ <div
8
+ className="col-sm-12"
9
+ >
10
+ <div
11
+ className="row"
12
+ >
13
+ <u>
14
+ Red Hat Enterprise Linux 7 Server (RPMs)
15
+ </u>
16
+ </div>
17
+ </div>
18
+ <div
19
+ className="col-sm-3"
20
+ >
21
+ <div
22
+ className="row"
23
+ >
24
+ Content Download URL
25
+ </div>
26
+ <div
27
+ className="row"
28
+ >
29
+ GPG Key URL
30
+ </div>
31
+ <div
32
+ className="row"
33
+ >
34
+ Repo Type
35
+ </div>
36
+ <div
37
+ className="row"
38
+ >
39
+ Enabled?
40
+ </div>
41
+ </div>
42
+ <div
43
+ className="col-sm-9"
44
+ >
45
+ <div
46
+ className="row"
47
+ >
48
+ /content/dist/rhel/server/7/$releasever/$basearch/os
49
+ </div>
50
+ <div
51
+ className="row"
52
+ >
53
+ file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release
54
+ </div>
55
+ <div
56
+ className="row"
57
+ >
58
+ yum
59
+ </div>
60
+ <div
61
+ className="row"
62
+ >
63
+ no
64
+ </div>
65
+ </div>
66
+ </div>
67
+ `;
@@ -1,11 +1,7 @@
1
1
  // Jest Snapshot v1, https://goo.gl/fbAQLP
2
2
 
3
3
  exports[`subscriptions details page should render and contain appropiate components 1`] = `
4
- <Grid
5
- bsClass="container-fluid"
6
- componentClass="div"
7
- fluid={false}
8
- >
4
+ <div>
9
5
  <BreadcrumbsBar
10
6
  data={
11
7
  Object {
@@ -28,414 +24,504 @@ exports[`subscriptions details page should render and contain appropiate compone
28
24
  }
29
25
  onSwitcherItemClick={[Function]}
30
26
  />
31
- <div>
32
- <LoadingState
33
- loading={false}
34
- loadingText="Loading"
35
- timeout={300}
36
- >
37
- <Row
38
- bsClass="row"
39
- componentClass="div"
27
+ <Uncontrolled(TabContainer)
28
+ defaultActiveKey={1}
29
+ id="subscription-tabs-container"
30
+ >
31
+ <div>
32
+ <LoadingState
33
+ loading={false}
34
+ loadingText="Loading"
35
+ timeout={300}
40
36
  >
41
- <Col
42
- bsClass="col"
43
- componentClass="div"
44
- sm={6}
37
+ <Nav
38
+ bsClass="nav nav-tabs"
39
+ justified={false}
40
+ pullLeft={false}
41
+ pullRight={false}
42
+ stacked={false}
45
43
  >
46
- <SubscriptionDetailInfo
47
- subscriptionDetails={
48
- Object {
49
- "account_number": 1212729,
50
- "activation_keys": Array [],
51
- "arch": "ia64,ppc,ppc64,ppc64le,s390,s390x,x86,x86_64",
52
- "available": 1,
53
- "consumed": 0,
54
- "contract_number": 10126160,
55
- "cores": 4,
56
- "cp_id": "4028f92a6317cfbd0163b419377f3bee",
57
- "description": "OpenShift Enterprise",
58
- "end_date": "2021-12-31 23:59:59 -0500",
59
- "error": null,
60
- "host_count": 0,
61
- "id": 48,
62
- "instance_multiplier": 1,
63
- "loading": false,
64
- "multi_entitlement": true,
65
- "name": "OpenShift Employee Subscription",
66
- "product_id": "SER0421",
67
- "product_name": "OpenShift Employee Subscription",
68
- "provided_products": Array [
69
- Object {
70
- "id": 1,
71
- "name": "Red Hat OpenShift Container Platform",
72
- },
73
- Object {
74
- "id": 2,
75
- "name": "Oracle Java for RHEL Server",
76
- },
77
- Object {
78
- "id": 3,
79
- "name": "Red Hat OpenShift Enterprise JBoss EAP add-on",
80
- },
81
- Object {
82
- "id": 4,
83
- "name": "Red Hat CloudForms Beta",
84
- },
85
- Object {
86
- "id": 5,
87
- "name": "Red Hat CloudForms",
88
- },
89
- Object {
90
- "id": 6,
91
- "name": "Red Hat OpenShift Enterprise Client Tools",
92
- },
93
- Object {
94
- "id": 7,
95
- "name": "Red Hat Enterprise Linux Atomic Host",
96
- },
97
- Object {
98
- "id": 8,
99
- "name": "JBoss Enterprise Application Platform",
100
- },
101
- Object {
102
- "id": 9,
103
- "name": "Red Hat JBoss AMQ Clients",
104
- },
105
- Object {
106
- "id": 10,
107
- "name": "Red Hat Beta",
108
- },
109
- Object {
110
- "id": 11,
111
- "name": "Red Hat OpenShift Enterprise Infrastructure",
112
- },
113
- Object {
114
- "id": 12,
115
- "name": "Red Hat Enterprise Linux Fast Datapath Beta",
116
- },
117
- Object {
118
- "id": 13,
119
- "name": "Red Hat Ansible Engine",
120
- },
121
- Object {
122
- "id": 14,
123
- "name": "Red Hat OpenShift Enterprise Application Node",
124
- },
125
- Object {
126
- "id": 15,
127
- "name": "Red Hat OpenShift Enterprise JBoss FUSE add-on",
128
- },
129
- Object {
130
- "id": 16,
131
- "name": "Red Hat Software Collections Beta for RHEL Server",
132
- },
133
- Object {
134
- "id": 17,
135
- "name": "Red Hat Software Collections for RHEL Server",
136
- },
137
- Object {
138
- "id": 18,
139
- "name": "Red Hat Enterprise Linux Fast Datapath",
140
- },
141
- Object {
142
- "id": 19,
143
- "name": "Red Hat Enterprise Linux Server",
144
- },
145
- Object {
146
- "id": 20,
147
- "name": "Red Hat OpenShift Enterprise JBoss A-MQ add-on",
148
- },
149
- Object {
150
- "id": 21,
151
- "name": "JBoss Enterprise Web Server",
152
- },
153
- Object {
154
- "id": 22,
155
- "name": "Red Hat JBoss Core Services",
156
- },
157
- ],
158
- "quantity": 1,
159
- "ram": null,
160
- "sockets": null,
161
- "stacking_id": "SER0421",
162
- "start_date": "2013-03-01 00:00:00 -0500",
163
- "subscription_id": 3,
164
- "support_level": "Self-Support",
165
- "support_type": "L1-L3",
166
- "type": "NORMAL",
167
- "unmapped_guest": false,
168
- "upstream": true,
169
- "virt_only": false,
170
- "virt_who": false,
171
- }
172
- }
173
- />
174
- </Col>
175
- <Col
176
- bsClass="col"
44
+ <NavItem
45
+ active={false}
46
+ disabled={false}
47
+ eventKey={1}
48
+ >
49
+ <div>
50
+ Details
51
+ </div>
52
+ </NavItem>
53
+ <NavItem
54
+ active={false}
55
+ disabled={false}
56
+ eventKey={2}
57
+ >
58
+ <div>
59
+ Enabled Products
60
+ </div>
61
+ </NavItem>
62
+ </Nav>
63
+ <Grid
64
+ bsClass="container-fluid"
177
65
  componentClass="div"
178
- sm={6}
66
+ fluid={false}
179
67
  >
180
- <SubscriptionDetailAssociations
181
- subscriptionDetails={
182
- Object {
183
- "account_number": 1212729,
184
- "activation_keys": Array [],
185
- "arch": "ia64,ppc,ppc64,ppc64le,s390,s390x,x86,x86_64",
186
- "available": 1,
187
- "consumed": 0,
188
- "contract_number": 10126160,
189
- "cores": 4,
190
- "cp_id": "4028f92a6317cfbd0163b419377f3bee",
191
- "description": "OpenShift Enterprise",
192
- "end_date": "2021-12-31 23:59:59 -0500",
193
- "error": null,
194
- "host_count": 0,
195
- "id": 48,
196
- "instance_multiplier": 1,
197
- "loading": false,
198
- "multi_entitlement": true,
199
- "name": "OpenShift Employee Subscription",
200
- "product_id": "SER0421",
201
- "product_name": "OpenShift Employee Subscription",
202
- "provided_products": Array [
203
- Object {
204
- "id": 1,
205
- "name": "Red Hat OpenShift Container Platform",
206
- },
207
- Object {
208
- "id": 2,
209
- "name": "Oracle Java for RHEL Server",
210
- },
211
- Object {
212
- "id": 3,
213
- "name": "Red Hat OpenShift Enterprise JBoss EAP add-on",
214
- },
215
- Object {
216
- "id": 4,
217
- "name": "Red Hat CloudForms Beta",
218
- },
219
- Object {
220
- "id": 5,
221
- "name": "Red Hat CloudForms",
222
- },
223
- Object {
224
- "id": 6,
225
- "name": "Red Hat OpenShift Enterprise Client Tools",
226
- },
227
- Object {
228
- "id": 7,
229
- "name": "Red Hat Enterprise Linux Atomic Host",
230
- },
231
- Object {
232
- "id": 8,
233
- "name": "JBoss Enterprise Application Platform",
234
- },
235
- Object {
236
- "id": 9,
237
- "name": "Red Hat JBoss AMQ Clients",
238
- },
239
- Object {
240
- "id": 10,
241
- "name": "Red Hat Beta",
242
- },
243
- Object {
244
- "id": 11,
245
- "name": "Red Hat OpenShift Enterprise Infrastructure",
246
- },
247
- Object {
248
- "id": 12,
249
- "name": "Red Hat Enterprise Linux Fast Datapath Beta",
250
- },
251
- Object {
252
- "id": 13,
253
- "name": "Red Hat Ansible Engine",
254
- },
255
- Object {
256
- "id": 14,
257
- "name": "Red Hat OpenShift Enterprise Application Node",
258
- },
259
- Object {
260
- "id": 15,
261
- "name": "Red Hat OpenShift Enterprise JBoss FUSE add-on",
262
- },
263
- Object {
264
- "id": 16,
265
- "name": "Red Hat Software Collections Beta for RHEL Server",
266
- },
267
- Object {
268
- "id": 17,
269
- "name": "Red Hat Software Collections for RHEL Server",
270
- },
271
- Object {
272
- "id": 18,
273
- "name": "Red Hat Enterprise Linux Fast Datapath",
274
- },
275
- Object {
276
- "id": 19,
277
- "name": "Red Hat Enterprise Linux Server",
278
- },
279
- Object {
280
- "id": 20,
281
- "name": "Red Hat OpenShift Enterprise JBoss A-MQ add-on",
282
- },
283
- Object {
284
- "id": 21,
285
- "name": "JBoss Enterprise Web Server",
286
- },
287
- Object {
288
- "id": 22,
289
- "name": "Red Hat JBoss Core Services",
290
- },
291
- ],
292
- "quantity": 1,
293
- "ram": null,
294
- "sockets": null,
295
- "stacking_id": "SER0421",
296
- "start_date": "2013-03-01 00:00:00 -0500",
297
- "subscription_id": 3,
298
- "support_level": "Self-Support",
299
- "support_type": "L1-L3",
300
- "type": "NORMAL",
301
- "unmapped_guest": false,
302
- "upstream": true,
303
- "virt_only": false,
304
- "virt_who": false,
305
- }
306
- }
307
- />
308
- <SubscriptionDetailProducts
309
- subscriptionDetails={
310
- Object {
311
- "account_number": 1212729,
312
- "activation_keys": Array [],
313
- "arch": "ia64,ppc,ppc64,ppc64le,s390,s390x,x86,x86_64",
314
- "available": 1,
315
- "consumed": 0,
316
- "contract_number": 10126160,
317
- "cores": 4,
318
- "cp_id": "4028f92a6317cfbd0163b419377f3bee",
319
- "description": "OpenShift Enterprise",
320
- "end_date": "2021-12-31 23:59:59 -0500",
321
- "error": null,
322
- "host_count": 0,
323
- "id": 48,
324
- "instance_multiplier": 1,
325
- "loading": false,
326
- "multi_entitlement": true,
327
- "name": "OpenShift Employee Subscription",
328
- "product_id": "SER0421",
329
- "product_name": "OpenShift Employee Subscription",
330
- "provided_products": Array [
331
- Object {
332
- "id": 1,
333
- "name": "Red Hat OpenShift Container Platform",
334
- },
335
- Object {
336
- "id": 2,
337
- "name": "Oracle Java for RHEL Server",
338
- },
339
- Object {
340
- "id": 3,
341
- "name": "Red Hat OpenShift Enterprise JBoss EAP add-on",
342
- },
343
- Object {
344
- "id": 4,
345
- "name": "Red Hat CloudForms Beta",
346
- },
347
- Object {
348
- "id": 5,
349
- "name": "Red Hat CloudForms",
350
- },
351
- Object {
352
- "id": 6,
353
- "name": "Red Hat OpenShift Enterprise Client Tools",
354
- },
355
- Object {
356
- "id": 7,
357
- "name": "Red Hat Enterprise Linux Atomic Host",
358
- },
359
- Object {
360
- "id": 8,
361
- "name": "JBoss Enterprise Application Platform",
362
- },
363
- Object {
364
- "id": 9,
365
- "name": "Red Hat JBoss AMQ Clients",
366
- },
367
- Object {
368
- "id": 10,
369
- "name": "Red Hat Beta",
370
- },
371
- Object {
372
- "id": 11,
373
- "name": "Red Hat OpenShift Enterprise Infrastructure",
374
- },
375
- Object {
376
- "id": 12,
377
- "name": "Red Hat Enterprise Linux Fast Datapath Beta",
378
- },
379
- Object {
380
- "id": 13,
381
- "name": "Red Hat Ansible Engine",
382
- },
383
- Object {
384
- "id": 14,
385
- "name": "Red Hat OpenShift Enterprise Application Node",
386
- },
387
- Object {
388
- "id": 15,
389
- "name": "Red Hat OpenShift Enterprise JBoss FUSE add-on",
390
- },
391
- Object {
392
- "id": 16,
393
- "name": "Red Hat Software Collections Beta for RHEL Server",
394
- },
395
- Object {
396
- "id": 17,
397
- "name": "Red Hat Software Collections for RHEL Server",
398
- },
399
- Object {
400
- "id": 18,
401
- "name": "Red Hat Enterprise Linux Fast Datapath",
402
- },
403
- Object {
404
- "id": 19,
405
- "name": "Red Hat Enterprise Linux Server",
406
- },
407
- Object {
408
- "id": 20,
409
- "name": "Red Hat OpenShift Enterprise JBoss A-MQ add-on",
410
- },
411
- Object {
412
- "id": 21,
413
- "name": "JBoss Enterprise Web Server",
414
- },
415
- Object {
416
- "id": 22,
417
- "name": "Red Hat JBoss Core Services",
418
- },
419
- ],
420
- "quantity": 1,
421
- "ram": null,
422
- "sockets": null,
423
- "stacking_id": "SER0421",
424
- "start_date": "2013-03-01 00:00:00 -0500",
425
- "subscription_id": 3,
426
- "support_level": "Self-Support",
427
- "support_type": "L1-L3",
428
- "type": "NORMAL",
429
- "unmapped_guest": false,
430
- "upstream": true,
431
- "virt_only": false,
432
- "virt_who": false,
433
- }
434
- }
435
- />
436
- </Col>
437
- </Row>
438
- </LoadingState>
439
- </div>
440
- </Grid>
68
+ <TabContent
69
+ animation={false}
70
+ bsClass="tab"
71
+ componentClass="div"
72
+ mountOnEnter={false}
73
+ unmountOnExit={false}
74
+ >
75
+ <TabPane
76
+ bsClass="tab-pane"
77
+ eventKey={1}
78
+ >
79
+ <div>
80
+ <Row
81
+ bsClass="row"
82
+ componentClass="div"
83
+ >
84
+ <Col
85
+ bsClass="col"
86
+ componentClass="div"
87
+ sm={6}
88
+ >
89
+ <SubscriptionDetailInfo
90
+ subscriptionDetails={
91
+ Object {
92
+ "account_number": 1212729,
93
+ "activation_keys": Array [],
94
+ "arch": "ia64,ppc,ppc64,ppc64le,s390,s390x,x86,x86_64",
95
+ "available": 1,
96
+ "consumed": 0,
97
+ "contract_number": 10126160,
98
+ "cores": 4,
99
+ "cp_id": "4028f92a6317cfbd0163b419377f3bee",
100
+ "description": "OpenShift Enterprise",
101
+ "enabledProducts": Object {
102
+ "results": Array [],
103
+ "total": 0,
104
+ },
105
+ "end_date": "2021-12-31 23:59:59 -0500",
106
+ "error": null,
107
+ "host_count": 0,
108
+ "id": 48,
109
+ "instance_multiplier": 1,
110
+ "loading": false,
111
+ "multi_entitlement": true,
112
+ "name": "OpenShift Employee Subscription",
113
+ "product_id": "SER0421",
114
+ "product_name": "OpenShift Employee Subscription",
115
+ "provided_products": Array [
116
+ Object {
117
+ "id": 1,
118
+ "name": "Red Hat OpenShift Container Platform",
119
+ },
120
+ Object {
121
+ "id": 2,
122
+ "name": "Oracle Java for RHEL Server",
123
+ },
124
+ Object {
125
+ "id": 3,
126
+ "name": "Red Hat OpenShift Enterprise JBoss EAP add-on",
127
+ },
128
+ Object {
129
+ "id": 4,
130
+ "name": "Red Hat CloudForms Beta",
131
+ },
132
+ Object {
133
+ "id": 5,
134
+ "name": "Red Hat CloudForms",
135
+ },
136
+ Object {
137
+ "id": 6,
138
+ "name": "Red Hat OpenShift Enterprise Client Tools",
139
+ },
140
+ Object {
141
+ "id": 7,
142
+ "name": "Red Hat Enterprise Linux Atomic Host",
143
+ },
144
+ Object {
145
+ "id": 8,
146
+ "name": "JBoss Enterprise Application Platform",
147
+ },
148
+ Object {
149
+ "id": 9,
150
+ "name": "Red Hat JBoss AMQ Clients",
151
+ },
152
+ Object {
153
+ "id": 10,
154
+ "name": "Red Hat Beta",
155
+ },
156
+ Object {
157
+ "id": 11,
158
+ "name": "Red Hat OpenShift Enterprise Infrastructure",
159
+ },
160
+ Object {
161
+ "id": 12,
162
+ "name": "Red Hat Enterprise Linux Fast Datapath Beta",
163
+ },
164
+ Object {
165
+ "id": 13,
166
+ "name": "Red Hat Ansible Engine",
167
+ },
168
+ Object {
169
+ "id": 14,
170
+ "name": "Red Hat OpenShift Enterprise Application Node",
171
+ },
172
+ Object {
173
+ "id": 15,
174
+ "name": "Red Hat OpenShift Enterprise JBoss FUSE add-on",
175
+ },
176
+ Object {
177
+ "id": 16,
178
+ "name": "Red Hat Software Collections Beta for RHEL Server",
179
+ },
180
+ Object {
181
+ "id": 17,
182
+ "name": "Red Hat Software Collections for RHEL Server",
183
+ },
184
+ Object {
185
+ "id": 18,
186
+ "name": "Red Hat Enterprise Linux Fast Datapath",
187
+ },
188
+ Object {
189
+ "id": 19,
190
+ "name": "Red Hat Enterprise Linux Server",
191
+ },
192
+ Object {
193
+ "id": 20,
194
+ "name": "Red Hat OpenShift Enterprise JBoss A-MQ add-on",
195
+ },
196
+ Object {
197
+ "id": 21,
198
+ "name": "JBoss Enterprise Web Server",
199
+ },
200
+ Object {
201
+ "id": 22,
202
+ "name": "Red Hat JBoss Core Services",
203
+ },
204
+ ],
205
+ "quantity": 1,
206
+ "ram": null,
207
+ "sockets": null,
208
+ "stacking_id": "SER0421",
209
+ "start_date": "2013-03-01 00:00:00 -0500",
210
+ "subscription_id": 3,
211
+ "support_level": "Self-Support",
212
+ "support_type": "L1-L3",
213
+ "type": "NORMAL",
214
+ "unmapped_guest": false,
215
+ "upstream": true,
216
+ "virt_only": false,
217
+ "virt_who": false,
218
+ }
219
+ }
220
+ />
221
+ </Col>
222
+ <Col
223
+ bsClass="col"
224
+ componentClass="div"
225
+ sm={6}
226
+ >
227
+ <SubscriptionDetailAssociations
228
+ subscriptionDetails={
229
+ Object {
230
+ "account_number": 1212729,
231
+ "activation_keys": Array [],
232
+ "arch": "ia64,ppc,ppc64,ppc64le,s390,s390x,x86,x86_64",
233
+ "available": 1,
234
+ "consumed": 0,
235
+ "contract_number": 10126160,
236
+ "cores": 4,
237
+ "cp_id": "4028f92a6317cfbd0163b419377f3bee",
238
+ "description": "OpenShift Enterprise",
239
+ "enabledProducts": Object {
240
+ "results": Array [],
241
+ "total": 0,
242
+ },
243
+ "end_date": "2021-12-31 23:59:59 -0500",
244
+ "error": null,
245
+ "host_count": 0,
246
+ "id": 48,
247
+ "instance_multiplier": 1,
248
+ "loading": false,
249
+ "multi_entitlement": true,
250
+ "name": "OpenShift Employee Subscription",
251
+ "product_id": "SER0421",
252
+ "product_name": "OpenShift Employee Subscription",
253
+ "provided_products": Array [
254
+ Object {
255
+ "id": 1,
256
+ "name": "Red Hat OpenShift Container Platform",
257
+ },
258
+ Object {
259
+ "id": 2,
260
+ "name": "Oracle Java for RHEL Server",
261
+ },
262
+ Object {
263
+ "id": 3,
264
+ "name": "Red Hat OpenShift Enterprise JBoss EAP add-on",
265
+ },
266
+ Object {
267
+ "id": 4,
268
+ "name": "Red Hat CloudForms Beta",
269
+ },
270
+ Object {
271
+ "id": 5,
272
+ "name": "Red Hat CloudForms",
273
+ },
274
+ Object {
275
+ "id": 6,
276
+ "name": "Red Hat OpenShift Enterprise Client Tools",
277
+ },
278
+ Object {
279
+ "id": 7,
280
+ "name": "Red Hat Enterprise Linux Atomic Host",
281
+ },
282
+ Object {
283
+ "id": 8,
284
+ "name": "JBoss Enterprise Application Platform",
285
+ },
286
+ Object {
287
+ "id": 9,
288
+ "name": "Red Hat JBoss AMQ Clients",
289
+ },
290
+ Object {
291
+ "id": 10,
292
+ "name": "Red Hat Beta",
293
+ },
294
+ Object {
295
+ "id": 11,
296
+ "name": "Red Hat OpenShift Enterprise Infrastructure",
297
+ },
298
+ Object {
299
+ "id": 12,
300
+ "name": "Red Hat Enterprise Linux Fast Datapath Beta",
301
+ },
302
+ Object {
303
+ "id": 13,
304
+ "name": "Red Hat Ansible Engine",
305
+ },
306
+ Object {
307
+ "id": 14,
308
+ "name": "Red Hat OpenShift Enterprise Application Node",
309
+ },
310
+ Object {
311
+ "id": 15,
312
+ "name": "Red Hat OpenShift Enterprise JBoss FUSE add-on",
313
+ },
314
+ Object {
315
+ "id": 16,
316
+ "name": "Red Hat Software Collections Beta for RHEL Server",
317
+ },
318
+ Object {
319
+ "id": 17,
320
+ "name": "Red Hat Software Collections for RHEL Server",
321
+ },
322
+ Object {
323
+ "id": 18,
324
+ "name": "Red Hat Enterprise Linux Fast Datapath",
325
+ },
326
+ Object {
327
+ "id": 19,
328
+ "name": "Red Hat Enterprise Linux Server",
329
+ },
330
+ Object {
331
+ "id": 20,
332
+ "name": "Red Hat OpenShift Enterprise JBoss A-MQ add-on",
333
+ },
334
+ Object {
335
+ "id": 21,
336
+ "name": "JBoss Enterprise Web Server",
337
+ },
338
+ Object {
339
+ "id": 22,
340
+ "name": "Red Hat JBoss Core Services",
341
+ },
342
+ ],
343
+ "quantity": 1,
344
+ "ram": null,
345
+ "sockets": null,
346
+ "stacking_id": "SER0421",
347
+ "start_date": "2013-03-01 00:00:00 -0500",
348
+ "subscription_id": 3,
349
+ "support_level": "Self-Support",
350
+ "support_type": "L1-L3",
351
+ "type": "NORMAL",
352
+ "unmapped_guest": false,
353
+ "upstream": true,
354
+ "virt_only": false,
355
+ "virt_who": false,
356
+ }
357
+ }
358
+ />
359
+ <SubscriptionDetailProducts
360
+ subscriptionDetails={
361
+ Object {
362
+ "account_number": 1212729,
363
+ "activation_keys": Array [],
364
+ "arch": "ia64,ppc,ppc64,ppc64le,s390,s390x,x86,x86_64",
365
+ "available": 1,
366
+ "consumed": 0,
367
+ "contract_number": 10126160,
368
+ "cores": 4,
369
+ "cp_id": "4028f92a6317cfbd0163b419377f3bee",
370
+ "description": "OpenShift Enterprise",
371
+ "enabledProducts": Object {
372
+ "results": Array [],
373
+ "total": 0,
374
+ },
375
+ "end_date": "2021-12-31 23:59:59 -0500",
376
+ "error": null,
377
+ "host_count": 0,
378
+ "id": 48,
379
+ "instance_multiplier": 1,
380
+ "loading": false,
381
+ "multi_entitlement": true,
382
+ "name": "OpenShift Employee Subscription",
383
+ "product_id": "SER0421",
384
+ "product_name": "OpenShift Employee Subscription",
385
+ "provided_products": Array [
386
+ Object {
387
+ "id": 1,
388
+ "name": "Red Hat OpenShift Container Platform",
389
+ },
390
+ Object {
391
+ "id": 2,
392
+ "name": "Oracle Java for RHEL Server",
393
+ },
394
+ Object {
395
+ "id": 3,
396
+ "name": "Red Hat OpenShift Enterprise JBoss EAP add-on",
397
+ },
398
+ Object {
399
+ "id": 4,
400
+ "name": "Red Hat CloudForms Beta",
401
+ },
402
+ Object {
403
+ "id": 5,
404
+ "name": "Red Hat CloudForms",
405
+ },
406
+ Object {
407
+ "id": 6,
408
+ "name": "Red Hat OpenShift Enterprise Client Tools",
409
+ },
410
+ Object {
411
+ "id": 7,
412
+ "name": "Red Hat Enterprise Linux Atomic Host",
413
+ },
414
+ Object {
415
+ "id": 8,
416
+ "name": "JBoss Enterprise Application Platform",
417
+ },
418
+ Object {
419
+ "id": 9,
420
+ "name": "Red Hat JBoss AMQ Clients",
421
+ },
422
+ Object {
423
+ "id": 10,
424
+ "name": "Red Hat Beta",
425
+ },
426
+ Object {
427
+ "id": 11,
428
+ "name": "Red Hat OpenShift Enterprise Infrastructure",
429
+ },
430
+ Object {
431
+ "id": 12,
432
+ "name": "Red Hat Enterprise Linux Fast Datapath Beta",
433
+ },
434
+ Object {
435
+ "id": 13,
436
+ "name": "Red Hat Ansible Engine",
437
+ },
438
+ Object {
439
+ "id": 14,
440
+ "name": "Red Hat OpenShift Enterprise Application Node",
441
+ },
442
+ Object {
443
+ "id": 15,
444
+ "name": "Red Hat OpenShift Enterprise JBoss FUSE add-on",
445
+ },
446
+ Object {
447
+ "id": 16,
448
+ "name": "Red Hat Software Collections Beta for RHEL Server",
449
+ },
450
+ Object {
451
+ "id": 17,
452
+ "name": "Red Hat Software Collections for RHEL Server",
453
+ },
454
+ Object {
455
+ "id": 18,
456
+ "name": "Red Hat Enterprise Linux Fast Datapath",
457
+ },
458
+ Object {
459
+ "id": 19,
460
+ "name": "Red Hat Enterprise Linux Server",
461
+ },
462
+ Object {
463
+ "id": 20,
464
+ "name": "Red Hat OpenShift Enterprise JBoss A-MQ add-on",
465
+ },
466
+ Object {
467
+ "id": 21,
468
+ "name": "JBoss Enterprise Web Server",
469
+ },
470
+ Object {
471
+ "id": 22,
472
+ "name": "Red Hat JBoss Core Services",
473
+ },
474
+ ],
475
+ "quantity": 1,
476
+ "ram": null,
477
+ "sockets": null,
478
+ "stacking_id": "SER0421",
479
+ "start_date": "2013-03-01 00:00:00 -0500",
480
+ "subscription_id": 3,
481
+ "support_level": "Self-Support",
482
+ "support_type": "L1-L3",
483
+ "type": "NORMAL",
484
+ "unmapped_guest": false,
485
+ "upstream": true,
486
+ "virt_only": false,
487
+ "virt_who": false,
488
+ }
489
+ }
490
+ />
491
+ </Col>
492
+ </Row>
493
+ </div>
494
+ </TabPane>
495
+ <TabPane
496
+ bsClass="tab-pane"
497
+ eventKey={2}
498
+ >
499
+ <div>
500
+ <Row
501
+ bsClass="row"
502
+ componentClass="div"
503
+ >
504
+ <Col
505
+ bsClass="col"
506
+ componentClass="div"
507
+ sm={12}
508
+ >
509
+ <SubscriptionDetailEnabledProducts
510
+ enabledProducts={
511
+ Object {
512
+ "results": Array [],
513
+ "total": 0,
514
+ }
515
+ }
516
+ />
517
+ </Col>
518
+ </Row>
519
+ </div>
520
+ </TabPane>
521
+ </TabContent>
522
+ </Grid>
523
+ </LoadingState>
524
+ </div>
525
+ </Uncontrolled(TabContainer)>
526
+ </div>
441
527
  `;