katello 3.7.0.rc1 → 3.7.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.
- checksums.yaml +4 -4
- data/app/controllers/katello/api/v2/content_views_controller.rb +5 -2
- data/app/controllers/katello/api/v2/environments_controller.rb +8 -3
- data/app/controllers/katello/api/v2/host_tracer_controller.rb +1 -1
- data/app/controllers/katello/api/v2/upstream_subscriptions_controller.rb +4 -4
- data/app/helpers/katello/hosts_and_hostgroups_helper.rb +5 -22
- data/app/lib/actions/katello/host/update_content_overrides.rb +1 -0
- data/app/lib/actions/katello/product/content_create.rb +1 -0
- data/app/lib/actions/katello/product/repositories_certs_reset.rb +25 -0
- data/app/lib/actions/katello/product/update.rb +6 -0
- data/app/lib/katello/resources/candlepin/activation_key.rb +8 -4
- data/app/lib/katello/resources/candlepin/product.rb +2 -1
- data/app/lib/katello/util/cdn_var_substitutor.rb +5 -3
- data/app/lib/katello/util/package.rb +21 -13
- data/app/lib/katello/util/package_filter.rb +33 -31
- data/app/lib/katello/validators/prior_validator.rb +6 -10
- data/app/models/katello/concerns/host_managed_extensions.rb +2 -0
- data/app/models/katello/concerns/organization_extensions.rb +1 -0
- data/app/models/katello/concerns/subscription_facet_host_extensions.rb +10 -6
- data/app/models/katello/content.rb +23 -2
- data/app/models/katello/content_view_docker_filter.rb +1 -1
- data/app/models/katello/content_view_puppet_module.rb +3 -3
- data/app/models/katello/content_view_version.rb +4 -0
- data/app/models/katello/environment_prior.rb +7 -0
- data/app/models/katello/glue/candlepin/candlepin_object.rb +2 -2
- data/app/models/katello/glue/candlepin/pool.rb +10 -13
- data/app/models/katello/glue/candlepin/product.rb +19 -9
- data/app/models/katello/glue/candlepin/repository.rb +16 -0
- data/app/models/katello/glue/candlepin/subscription.rb +1 -1
- data/app/models/katello/glue/provider.rb +15 -81
- data/app/models/katello/host/subscription_facet.rb +1 -1
- data/app/models/katello/kt_environment.rb +39 -8
- data/app/models/katello/pool.rb +2 -1
- data/app/models/katello/rpm.rb +144 -2
- data/app/models/katello/upstream_pool.rb +7 -10
- data/app/services/katello/candlepin/pool_service.rb +18 -3
- data/app/services/katello/ui_notifications/pulp/proxy_disk_space.rb +13 -16
- data/app/views/dashboard/_content_views_widget.html.erb +3 -3
- data/app/views/dashboard/_errata_widget.html.erb +2 -2
- data/app/views/dashboard/_host_collection_widget.html.erb +3 -3
- data/app/views/dashboard/_subscription_status_widget.html.erb +2 -2
- data/app/views/dashboard/_subscription_widget.html.erb +1 -1
- data/app/views/dashboard/_sync_widget.html.erb +3 -3
- data/app/views/katello/api/v2/subscriptions/base.json.rabl +1 -1
- data/app/views/katello/api/v2/upstream_subscriptions/base.json.rabl +2 -6
- data/app/views/katello/layouts/react.html.erb +3 -3
- data/config/katello.yaml +89 -0
- data/config/routes.rb +3 -0
- data/db/migrate/20160302091113_change_environment_prior.rb +9 -0
- data/db/migrate/20180410140909_add_organization_id_to_pool.rb +2 -1
- data/db/migrate/20180612163403_add_foreign_key_to_hypervisor_id.rb +10 -0
- data/db/migrate/20180612164926_add_content_org_id.rb +39 -0
- data/db/migrate/20180612165011_remove_content_fields_from_host.rb +7 -0
- data/db/migrate/20180626160422_add_upstream_pool_id_to_katello_pool.rb +9 -0
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/bulk/views/content-hosts-bulk-packages-modal.html +1 -1
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/views/register.html +1 -1
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/environments/details/environment-content.controller.js +2 -3
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/environments/details/views/environment.html +4 -2
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/environments/environments.controller.js +19 -14
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/environments/new-environment.controller.js +18 -5
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/environments/paths.service.js +51 -0
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/environments/views/new-environment.html +16 -3
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/products/bulk/products-bulk-advanced-sync-modal.controller.js +1 -1
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/products/products.controller.js +2 -2
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/subscriptions/subscriptions.routes.js +3 -3
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/tasks/tasks.module.js +1 -6
- data/engines/bastion_katello/app/assets/stylesheets/bastion_katello/bastion_katello.scss +4 -0
- data/engines/bastion_katello/lib/bastion_katello/engine.rb +1 -1
- data/lib/katello/plugin.rb +2 -11
- data/lib/katello/scheduled_jobs.rb +2 -14
- data/lib/katello/tasks/clean_backend_objects.rake +2 -0
- data/lib/katello/tasks/repository.rake +11 -2
- data/lib/katello/tasks/upgrades/3.7/import_pools.rake +12 -0
- data/lib/katello/version.rb +1 -1
- data/package.json +4 -3
- data/webpack/components/PaginationRow/index.js +6 -2
- data/webpack/containers/Application/config.js +7 -2
- data/webpack/index.js +3 -5
- data/webpack/move_to_foreman/common/helpers.js +5 -24
- data/webpack/move_to_foreman/components/common/emptyState/index.js +12 -7
- data/webpack/move_to_foreman/components/common/table/components/CollapseSubscriptionGroupButton.js +31 -0
- data/webpack/move_to_foreman/components/common/table/components/CollapseSubscriptionGroupButton.test.js +16 -0
- data/webpack/move_to_foreman/components/common/table/components/Table.js +76 -0
- data/webpack/move_to_foreman/components/common/table/components/Table.test.js +31 -0
- data/webpack/move_to_foreman/components/common/table/components/TableBody.js +27 -0
- data/webpack/move_to_foreman/components/common/table/components/TableBody.test.js +18 -0
- data/webpack/move_to_foreman/components/common/table/components/TableBodyMessage.js +18 -0
- data/webpack/move_to_foreman/components/common/table/components/TableBodyMessage.test.js +12 -0
- data/webpack/move_to_foreman/components/common/table/components/TableFixtures.js +14 -0
- data/webpack/move_to_foreman/components/common/table/components/TableSelectionCell.js +39 -0
- data/webpack/move_to_foreman/components/common/table/components/TableSelectionCell.test.js +16 -0
- data/webpack/move_to_foreman/components/common/table/components/TableSelectionHeaderCell.js +34 -0
- data/webpack/move_to_foreman/components/common/table/components/TableSelectionHeaderCell.test.js +14 -0
- data/webpack/move_to_foreman/components/common/table/components/__snapshots__/CollapseSubscriptionGroupButton.test.js.snap +19 -0
- data/webpack/move_to_foreman/components/common/table/components/__snapshots__/Table.test.js.snap +167 -0
- data/webpack/move_to_foreman/components/common/table/components/__snapshots__/TableBody.test.js.snap +28 -0
- data/webpack/move_to_foreman/components/common/table/components/__snapshots__/TableBodyMessage.test.js.snap +13 -0
- data/webpack/move_to_foreman/components/common/table/components/__snapshots__/TableSelectionCell.test.js.snap +16 -0
- data/webpack/move_to_foreman/components/common/table/components/__snapshots__/TableSelectionHeaderCell.test.js.snap +15 -0
- data/webpack/move_to_foreman/components/common/table/components/index.js +6 -0
- data/webpack/move_to_foreman/components/common/table/formatters/cellFormatter.js +4 -0
- data/webpack/move_to_foreman/components/common/table/formatters/collapseableAndSelectionCellFormatter.js +18 -0
- data/webpack/move_to_foreman/components/common/table/formatters/ellipsisCellFormatter.js +5 -0
- data/webpack/move_to_foreman/components/common/table/formatters/headerFormatter.js +4 -0
- data/webpack/move_to_foreman/components/common/table/formatters/index.js +6 -0
- data/webpack/move_to_foreman/components/common/table/formatters/selectionCellFormatter.js +17 -0
- data/webpack/move_to_foreman/components/common/table/formatters/selectionHeaderCellFormatter.js +10 -0
- data/webpack/move_to_foreman/components/common/table/index.js +2 -88
- data/webpack/move_to_pf/LoadingState/LoadingState.js +35 -0
- data/webpack/move_to_pf/LoadingState/LoadingState.scss +12 -0
- data/webpack/move_to_pf/LoadingState/LoadingState.test.js +28 -0
- data/webpack/move_to_pf/LoadingState/__snapshots__/LoadingState.test.js.snap +20 -0
- data/webpack/move_to_pf/LoadingState/index.js +3 -0
- data/webpack/move_to_pf/test-utils/testHelpers.js +71 -0
- data/webpack/redux/actions/RedHatRepositories/enabled.js +1 -1
- data/webpack/redux/actions/RedHatRepositories/helpers.js +34 -9
- data/webpack/redux/actions/RedHatRepositories/sets.js +28 -6
- data/webpack/redux/consts.js +1 -0
- data/webpack/redux/reducers/RedHatRepositories/sets.fixtures.js +12 -2
- data/webpack/redux/reducers/RedHatRepositories/sets.js +34 -27
- data/webpack/redux/reducers/RedHatRepositories/sets.test.js +10 -2
- data/webpack/redux/reducers/index.js +2 -0
- data/webpack/scenes/Organizations/OrganizationActions.js +3 -3
- data/webpack/scenes/RedHatRepositories/components/RecommendedRepositorySetsToggler.js +44 -0
- data/webpack/scenes/RedHatRepositories/components/RecommendedRepositorySetsToggler.scss +16 -0
- data/webpack/scenes/RedHatRepositories/components/RepositorySet.js +8 -2
- data/webpack/scenes/RedHatRepositories/components/RepositorySetRepositories.js +5 -3
- data/webpack/scenes/RedHatRepositories/components/RepositorySetRepository.js +4 -2
- data/webpack/scenes/RedHatRepositories/components/Search.js +1 -1
- data/webpack/scenes/RedHatRepositories/components/SearchBar.js +1 -1
- data/webpack/scenes/RedHatRepositories/components/__tests__/RecommendedRepositorySetsToggler.test.js +17 -0
- data/webpack/scenes/RedHatRepositories/components/__tests__/__snapshots__/RecommendedRepositorySetsToggler.test.js.snap +37 -0
- data/webpack/scenes/RedHatRepositories/helpers.js +1 -1
- data/webpack/scenes/RedHatRepositories/index.js +17 -7
- data/webpack/scenes/RedHatRepositories/index.scss +16 -4
- data/webpack/scenes/Subscriptions/Details/SubscriptionAttributes.js +17 -0
- data/webpack/scenes/Subscriptions/Details/SubscriptionDetailActions.js +28 -0
- data/webpack/scenes/Subscriptions/Details/SubscriptionDetailAssociations.js +47 -0
- data/webpack/scenes/Subscriptions/Details/SubscriptionDetailConstants.js +3 -0
- data/webpack/scenes/Subscriptions/Details/SubscriptionDetailInfo.js +65 -0
- data/webpack/scenes/Subscriptions/Details/SubscriptionDetailProducts.js +20 -0
- data/webpack/scenes/Subscriptions/Details/SubscriptionDetailReducer.js +37 -0
- data/webpack/scenes/Subscriptions/Details/SubscriptionDetails.js +58 -0
- data/webpack/scenes/Subscriptions/Details/__tests__/SubscriptionDetailActions.test.js +47 -0
- data/webpack/scenes/Subscriptions/Details/__tests__/SubscriptionDetailAssociations.test.js +16 -0
- data/webpack/scenes/Subscriptions/Details/__tests__/SubscriptionDetailInfo.test.js +15 -0
- data/webpack/scenes/Subscriptions/Details/__tests__/SubscriptionDetailProducts.test.js +16 -0
- data/webpack/scenes/Subscriptions/Details/__tests__/SubscriptionDetailReducer.test.js +39 -0
- data/webpack/scenes/Subscriptions/Details/__tests__/SubscriptionDetails.test.js +28 -0
- data/webpack/scenes/Subscriptions/Details/__tests__/__snapshots__/SubscriptionDetailAssociations.test.js.snap +53 -0
- data/webpack/scenes/Subscriptions/Details/__tests__/__snapshots__/SubscriptionDetailInfo.test.js.snap +185 -0
- data/webpack/scenes/Subscriptions/Details/__tests__/__snapshots__/SubscriptionDetailProducts.test.js.snap +77 -0
- data/webpack/scenes/Subscriptions/Details/__tests__/__snapshots__/SubscriptionDetails.test.js.snap +432 -0
- data/webpack/scenes/Subscriptions/Details/__tests__/subscriptionDetails.fixtures.js +167 -0
- data/webpack/scenes/Subscriptions/Details/index.js +19 -0
- data/webpack/scenes/Subscriptions/Manifest/ManageManifestModal.js +58 -12
- data/webpack/scenes/Subscriptions/Manifest/Manifest.scss +6 -1
- data/webpack/scenes/Subscriptions/Manifest/ManifestActions.js +4 -4
- data/webpack/scenes/Subscriptions/Manifest/ManifestHistoryTableSchema.js +7 -7
- data/webpack/scenes/Subscriptions/Manifest/__tests__/__snapshots__/ManageManifestModal.test.js.snap +6 -9
- data/webpack/scenes/Subscriptions/Manifest/index.js +2 -2
- data/webpack/scenes/Subscriptions/SubscriptionActions.js +5 -6
- data/webpack/scenes/Subscriptions/SubscriptionReducer.js +2 -3
- data/webpack/scenes/Subscriptions/SubscriptionValidations.js +1 -1
- data/webpack/scenes/Subscriptions/SubscriptionsPage.js +46 -30
- data/webpack/scenes/Subscriptions/SubscriptionsPage.scss +38 -0
- data/webpack/scenes/Subscriptions/UpstreamSubscriptions/UpstreamSubscriptionsActions.js +3 -3
- data/webpack/scenes/Subscriptions/UpstreamSubscriptions/UpstreamSubscriptionsPage.js +7 -6
- data/webpack/scenes/Subscriptions/UpstreamSubscriptions/UpstreamSubscriptionsTableSchema.js +17 -14
- data/webpack/scenes/Subscriptions/UpstreamSubscriptions/__tests__/__snapshots__/UpstreamSubscriptionsPage.test.js.snap +12 -15
- data/webpack/scenes/Subscriptions/UpstreamSubscriptions/__tests__/upstreamSubscriptions.fixtures.js +4 -4
- data/webpack/scenes/Subscriptions/__tests__/SubscriptionValidations.test.js +5 -0
- data/webpack/scenes/Subscriptions/__tests__/subscriptions.fixtures.js +2 -2
- data/webpack/scenes/Subscriptions/{EntitlementsInlineEditFormatter.js → components/SubscriptionsTable/EntitlementsInlineEditFormatter.js} +7 -7
- data/webpack/scenes/Subscriptions/{SubscriptionsTable.js → components/SubscriptionsTable/SubscriptionsTable.js} +75 -47
- data/webpack/scenes/Subscriptions/components/SubscriptionsTable/SubscriptionsTableHelpers.js +60 -0
- data/webpack/scenes/Subscriptions/{SubscriptionsTableSchema.js → components/SubscriptionsTable/SubscriptionsTableSchema.js} +37 -26
- data/webpack/scenes/Subscriptions/components/SubscriptionsTable/__tests__/SubscriptionsTable.test.js +56 -0
- data/webpack/scenes/Subscriptions/{__tests__ → components/SubscriptionsTable/__tests__}/__snapshots__/SubscriptionsTable.test.js.snap +16 -5
- data/webpack/scenes/Subscriptions/components/SubscriptionsTable/index.js +2 -0
- data/webpack/scenes/Subscriptions/index.js +2 -2
- data/webpack/scenes/Tasks/TaskActions.js +18 -11
- data/webpack/scenes/Tasks/__tests__/TaskActions.test.js +92 -9
- data/webpack/scenes/Tasks/__tests__/task.fixtures.js +19 -9
- data/webpack/services/api/index.js +2 -2
- data/webpack/test_setup.js +1 -0
- metadata +79 -10
- data/webpack/scenes/Subscriptions/Subscriptions.scss +0 -14
- data/webpack/scenes/Subscriptions/__tests__/SubscriptionsTable.test.js +0 -47
data/webpack/scenes/Subscriptions/Details/__tests__/__snapshots__/SubscriptionDetails.test.js.snap
ADDED
@@ -0,0 +1,432 @@
|
|
1
|
+
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
2
|
+
|
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
|
+
>
|
9
|
+
<div>
|
10
|
+
<LoadingState
|
11
|
+
loading={false}
|
12
|
+
loadingText="Loading"
|
13
|
+
>
|
14
|
+
<Row
|
15
|
+
bsClass="row"
|
16
|
+
componentClass="div"
|
17
|
+
>
|
18
|
+
<Col
|
19
|
+
bsClass="col"
|
20
|
+
componentClass="div"
|
21
|
+
sm={12}
|
22
|
+
>
|
23
|
+
<h1>
|
24
|
+
OpenShift Employee Subscription
|
25
|
+
</h1>
|
26
|
+
</Col>
|
27
|
+
</Row>
|
28
|
+
<Row
|
29
|
+
bsClass="row"
|
30
|
+
componentClass="div"
|
31
|
+
>
|
32
|
+
<Col
|
33
|
+
bsClass="col"
|
34
|
+
componentClass="div"
|
35
|
+
sm={6}
|
36
|
+
>
|
37
|
+
<SubscriptionDetailInfo
|
38
|
+
subscriptionDetails={
|
39
|
+
Object {
|
40
|
+
"account_number": 1212729,
|
41
|
+
"activation_keys": Array [],
|
42
|
+
"arch": "ia64,ppc,ppc64,ppc64le,s390,s390x,x86,x86_64",
|
43
|
+
"available": 1,
|
44
|
+
"consumed": 0,
|
45
|
+
"contract_number": 10126160,
|
46
|
+
"cores": 4,
|
47
|
+
"cp_id": "4028f92a6317cfbd0163b419377f3bee",
|
48
|
+
"description": "OpenShift Enterprise",
|
49
|
+
"end_date": "2021-12-31 23:59:59 -0500",
|
50
|
+
"error": null,
|
51
|
+
"host_count": 0,
|
52
|
+
"id": 48,
|
53
|
+
"instance_multiplier": 1,
|
54
|
+
"loading": false,
|
55
|
+
"multi_entitlement": true,
|
56
|
+
"name": "OpenShift Employee Subscription",
|
57
|
+
"product_id": "SER0421",
|
58
|
+
"product_name": "OpenShift Employee Subscription",
|
59
|
+
"provided_products": Array [
|
60
|
+
Object {
|
61
|
+
"id": 1,
|
62
|
+
"name": "Red Hat OpenShift Container Platform",
|
63
|
+
},
|
64
|
+
Object {
|
65
|
+
"id": 2,
|
66
|
+
"name": "Oracle Java for RHEL Server",
|
67
|
+
},
|
68
|
+
Object {
|
69
|
+
"id": 3,
|
70
|
+
"name": "Red Hat OpenShift Enterprise JBoss EAP add-on",
|
71
|
+
},
|
72
|
+
Object {
|
73
|
+
"id": 4,
|
74
|
+
"name": "Red Hat CloudForms Beta",
|
75
|
+
},
|
76
|
+
Object {
|
77
|
+
"id": 5,
|
78
|
+
"name": "Red Hat CloudForms",
|
79
|
+
},
|
80
|
+
Object {
|
81
|
+
"id": 6,
|
82
|
+
"name": "Red Hat OpenShift Enterprise Client Tools",
|
83
|
+
},
|
84
|
+
Object {
|
85
|
+
"id": 7,
|
86
|
+
"name": "Red Hat Enterprise Linux Atomic Host",
|
87
|
+
},
|
88
|
+
Object {
|
89
|
+
"id": 8,
|
90
|
+
"name": "JBoss Enterprise Application Platform",
|
91
|
+
},
|
92
|
+
Object {
|
93
|
+
"id": 9,
|
94
|
+
"name": "Red Hat JBoss AMQ Clients",
|
95
|
+
},
|
96
|
+
Object {
|
97
|
+
"id": 10,
|
98
|
+
"name": "Red Hat Beta",
|
99
|
+
},
|
100
|
+
Object {
|
101
|
+
"id": 11,
|
102
|
+
"name": "Red Hat OpenShift Enterprise Infrastructure",
|
103
|
+
},
|
104
|
+
Object {
|
105
|
+
"id": 12,
|
106
|
+
"name": "Red Hat Enterprise Linux Fast Datapath Beta",
|
107
|
+
},
|
108
|
+
Object {
|
109
|
+
"id": 13,
|
110
|
+
"name": "Red Hat Ansible Engine",
|
111
|
+
},
|
112
|
+
Object {
|
113
|
+
"id": 14,
|
114
|
+
"name": "Red Hat OpenShift Enterprise Application Node",
|
115
|
+
},
|
116
|
+
Object {
|
117
|
+
"id": 15,
|
118
|
+
"name": "Red Hat OpenShift Enterprise JBoss FUSE add-on",
|
119
|
+
},
|
120
|
+
Object {
|
121
|
+
"id": 16,
|
122
|
+
"name": "Red Hat Software Collections Beta for RHEL Server",
|
123
|
+
},
|
124
|
+
Object {
|
125
|
+
"id": 17,
|
126
|
+
"name": "Red Hat Software Collections for RHEL Server",
|
127
|
+
},
|
128
|
+
Object {
|
129
|
+
"id": 18,
|
130
|
+
"name": "Red Hat Enterprise Linux Fast Datapath",
|
131
|
+
},
|
132
|
+
Object {
|
133
|
+
"id": 19,
|
134
|
+
"name": "Red Hat Enterprise Linux Server",
|
135
|
+
},
|
136
|
+
Object {
|
137
|
+
"id": 20,
|
138
|
+
"name": "Red Hat OpenShift Enterprise JBoss A-MQ add-on",
|
139
|
+
},
|
140
|
+
Object {
|
141
|
+
"id": 21,
|
142
|
+
"name": "JBoss Enterprise Web Server",
|
143
|
+
},
|
144
|
+
Object {
|
145
|
+
"id": 22,
|
146
|
+
"name": "Red Hat JBoss Core Services",
|
147
|
+
},
|
148
|
+
],
|
149
|
+
"quantity": 1,
|
150
|
+
"ram": null,
|
151
|
+
"sockets": null,
|
152
|
+
"stacking_id": "SER0421",
|
153
|
+
"start_date": "2013-03-01 00:00:00 -0500",
|
154
|
+
"subscription_id": 3,
|
155
|
+
"support_level": "Self-Support",
|
156
|
+
"support_type": "L1-L3",
|
157
|
+
"type": "NORMAL",
|
158
|
+
"unmapped_guest": false,
|
159
|
+
"upstream": true,
|
160
|
+
"virt_only": false,
|
161
|
+
"virt_who": false,
|
162
|
+
}
|
163
|
+
}
|
164
|
+
/>
|
165
|
+
</Col>
|
166
|
+
<Col
|
167
|
+
bsClass="col"
|
168
|
+
componentClass="div"
|
169
|
+
sm={6}
|
170
|
+
>
|
171
|
+
<SubscriptionDetailAssociations
|
172
|
+
subscriptionDetails={
|
173
|
+
Object {
|
174
|
+
"account_number": 1212729,
|
175
|
+
"activation_keys": Array [],
|
176
|
+
"arch": "ia64,ppc,ppc64,ppc64le,s390,s390x,x86,x86_64",
|
177
|
+
"available": 1,
|
178
|
+
"consumed": 0,
|
179
|
+
"contract_number": 10126160,
|
180
|
+
"cores": 4,
|
181
|
+
"cp_id": "4028f92a6317cfbd0163b419377f3bee",
|
182
|
+
"description": "OpenShift Enterprise",
|
183
|
+
"end_date": "2021-12-31 23:59:59 -0500",
|
184
|
+
"error": null,
|
185
|
+
"host_count": 0,
|
186
|
+
"id": 48,
|
187
|
+
"instance_multiplier": 1,
|
188
|
+
"loading": false,
|
189
|
+
"multi_entitlement": true,
|
190
|
+
"name": "OpenShift Employee Subscription",
|
191
|
+
"product_id": "SER0421",
|
192
|
+
"product_name": "OpenShift Employee Subscription",
|
193
|
+
"provided_products": Array [
|
194
|
+
Object {
|
195
|
+
"id": 1,
|
196
|
+
"name": "Red Hat OpenShift Container Platform",
|
197
|
+
},
|
198
|
+
Object {
|
199
|
+
"id": 2,
|
200
|
+
"name": "Oracle Java for RHEL Server",
|
201
|
+
},
|
202
|
+
Object {
|
203
|
+
"id": 3,
|
204
|
+
"name": "Red Hat OpenShift Enterprise JBoss EAP add-on",
|
205
|
+
},
|
206
|
+
Object {
|
207
|
+
"id": 4,
|
208
|
+
"name": "Red Hat CloudForms Beta",
|
209
|
+
},
|
210
|
+
Object {
|
211
|
+
"id": 5,
|
212
|
+
"name": "Red Hat CloudForms",
|
213
|
+
},
|
214
|
+
Object {
|
215
|
+
"id": 6,
|
216
|
+
"name": "Red Hat OpenShift Enterprise Client Tools",
|
217
|
+
},
|
218
|
+
Object {
|
219
|
+
"id": 7,
|
220
|
+
"name": "Red Hat Enterprise Linux Atomic Host",
|
221
|
+
},
|
222
|
+
Object {
|
223
|
+
"id": 8,
|
224
|
+
"name": "JBoss Enterprise Application Platform",
|
225
|
+
},
|
226
|
+
Object {
|
227
|
+
"id": 9,
|
228
|
+
"name": "Red Hat JBoss AMQ Clients",
|
229
|
+
},
|
230
|
+
Object {
|
231
|
+
"id": 10,
|
232
|
+
"name": "Red Hat Beta",
|
233
|
+
},
|
234
|
+
Object {
|
235
|
+
"id": 11,
|
236
|
+
"name": "Red Hat OpenShift Enterprise Infrastructure",
|
237
|
+
},
|
238
|
+
Object {
|
239
|
+
"id": 12,
|
240
|
+
"name": "Red Hat Enterprise Linux Fast Datapath Beta",
|
241
|
+
},
|
242
|
+
Object {
|
243
|
+
"id": 13,
|
244
|
+
"name": "Red Hat Ansible Engine",
|
245
|
+
},
|
246
|
+
Object {
|
247
|
+
"id": 14,
|
248
|
+
"name": "Red Hat OpenShift Enterprise Application Node",
|
249
|
+
},
|
250
|
+
Object {
|
251
|
+
"id": 15,
|
252
|
+
"name": "Red Hat OpenShift Enterprise JBoss FUSE add-on",
|
253
|
+
},
|
254
|
+
Object {
|
255
|
+
"id": 16,
|
256
|
+
"name": "Red Hat Software Collections Beta for RHEL Server",
|
257
|
+
},
|
258
|
+
Object {
|
259
|
+
"id": 17,
|
260
|
+
"name": "Red Hat Software Collections for RHEL Server",
|
261
|
+
},
|
262
|
+
Object {
|
263
|
+
"id": 18,
|
264
|
+
"name": "Red Hat Enterprise Linux Fast Datapath",
|
265
|
+
},
|
266
|
+
Object {
|
267
|
+
"id": 19,
|
268
|
+
"name": "Red Hat Enterprise Linux Server",
|
269
|
+
},
|
270
|
+
Object {
|
271
|
+
"id": 20,
|
272
|
+
"name": "Red Hat OpenShift Enterprise JBoss A-MQ add-on",
|
273
|
+
},
|
274
|
+
Object {
|
275
|
+
"id": 21,
|
276
|
+
"name": "JBoss Enterprise Web Server",
|
277
|
+
},
|
278
|
+
Object {
|
279
|
+
"id": 22,
|
280
|
+
"name": "Red Hat JBoss Core Services",
|
281
|
+
},
|
282
|
+
],
|
283
|
+
"quantity": 1,
|
284
|
+
"ram": null,
|
285
|
+
"sockets": null,
|
286
|
+
"stacking_id": "SER0421",
|
287
|
+
"start_date": "2013-03-01 00:00:00 -0500",
|
288
|
+
"subscription_id": 3,
|
289
|
+
"support_level": "Self-Support",
|
290
|
+
"support_type": "L1-L3",
|
291
|
+
"type": "NORMAL",
|
292
|
+
"unmapped_guest": false,
|
293
|
+
"upstream": true,
|
294
|
+
"virt_only": false,
|
295
|
+
"virt_who": false,
|
296
|
+
}
|
297
|
+
}
|
298
|
+
/>
|
299
|
+
<SubscriptionDetailProducts
|
300
|
+
subscriptionDetails={
|
301
|
+
Object {
|
302
|
+
"account_number": 1212729,
|
303
|
+
"activation_keys": Array [],
|
304
|
+
"arch": "ia64,ppc,ppc64,ppc64le,s390,s390x,x86,x86_64",
|
305
|
+
"available": 1,
|
306
|
+
"consumed": 0,
|
307
|
+
"contract_number": 10126160,
|
308
|
+
"cores": 4,
|
309
|
+
"cp_id": "4028f92a6317cfbd0163b419377f3bee",
|
310
|
+
"description": "OpenShift Enterprise",
|
311
|
+
"end_date": "2021-12-31 23:59:59 -0500",
|
312
|
+
"error": null,
|
313
|
+
"host_count": 0,
|
314
|
+
"id": 48,
|
315
|
+
"instance_multiplier": 1,
|
316
|
+
"loading": false,
|
317
|
+
"multi_entitlement": true,
|
318
|
+
"name": "OpenShift Employee Subscription",
|
319
|
+
"product_id": "SER0421",
|
320
|
+
"product_name": "OpenShift Employee Subscription",
|
321
|
+
"provided_products": Array [
|
322
|
+
Object {
|
323
|
+
"id": 1,
|
324
|
+
"name": "Red Hat OpenShift Container Platform",
|
325
|
+
},
|
326
|
+
Object {
|
327
|
+
"id": 2,
|
328
|
+
"name": "Oracle Java for RHEL Server",
|
329
|
+
},
|
330
|
+
Object {
|
331
|
+
"id": 3,
|
332
|
+
"name": "Red Hat OpenShift Enterprise JBoss EAP add-on",
|
333
|
+
},
|
334
|
+
Object {
|
335
|
+
"id": 4,
|
336
|
+
"name": "Red Hat CloudForms Beta",
|
337
|
+
},
|
338
|
+
Object {
|
339
|
+
"id": 5,
|
340
|
+
"name": "Red Hat CloudForms",
|
341
|
+
},
|
342
|
+
Object {
|
343
|
+
"id": 6,
|
344
|
+
"name": "Red Hat OpenShift Enterprise Client Tools",
|
345
|
+
},
|
346
|
+
Object {
|
347
|
+
"id": 7,
|
348
|
+
"name": "Red Hat Enterprise Linux Atomic Host",
|
349
|
+
},
|
350
|
+
Object {
|
351
|
+
"id": 8,
|
352
|
+
"name": "JBoss Enterprise Application Platform",
|
353
|
+
},
|
354
|
+
Object {
|
355
|
+
"id": 9,
|
356
|
+
"name": "Red Hat JBoss AMQ Clients",
|
357
|
+
},
|
358
|
+
Object {
|
359
|
+
"id": 10,
|
360
|
+
"name": "Red Hat Beta",
|
361
|
+
},
|
362
|
+
Object {
|
363
|
+
"id": 11,
|
364
|
+
"name": "Red Hat OpenShift Enterprise Infrastructure",
|
365
|
+
},
|
366
|
+
Object {
|
367
|
+
"id": 12,
|
368
|
+
"name": "Red Hat Enterprise Linux Fast Datapath Beta",
|
369
|
+
},
|
370
|
+
Object {
|
371
|
+
"id": 13,
|
372
|
+
"name": "Red Hat Ansible Engine",
|
373
|
+
},
|
374
|
+
Object {
|
375
|
+
"id": 14,
|
376
|
+
"name": "Red Hat OpenShift Enterprise Application Node",
|
377
|
+
},
|
378
|
+
Object {
|
379
|
+
"id": 15,
|
380
|
+
"name": "Red Hat OpenShift Enterprise JBoss FUSE add-on",
|
381
|
+
},
|
382
|
+
Object {
|
383
|
+
"id": 16,
|
384
|
+
"name": "Red Hat Software Collections Beta for RHEL Server",
|
385
|
+
},
|
386
|
+
Object {
|
387
|
+
"id": 17,
|
388
|
+
"name": "Red Hat Software Collections for RHEL Server",
|
389
|
+
},
|
390
|
+
Object {
|
391
|
+
"id": 18,
|
392
|
+
"name": "Red Hat Enterprise Linux Fast Datapath",
|
393
|
+
},
|
394
|
+
Object {
|
395
|
+
"id": 19,
|
396
|
+
"name": "Red Hat Enterprise Linux Server",
|
397
|
+
},
|
398
|
+
Object {
|
399
|
+
"id": 20,
|
400
|
+
"name": "Red Hat OpenShift Enterprise JBoss A-MQ add-on",
|
401
|
+
},
|
402
|
+
Object {
|
403
|
+
"id": 21,
|
404
|
+
"name": "JBoss Enterprise Web Server",
|
405
|
+
},
|
406
|
+
Object {
|
407
|
+
"id": 22,
|
408
|
+
"name": "Red Hat JBoss Core Services",
|
409
|
+
},
|
410
|
+
],
|
411
|
+
"quantity": 1,
|
412
|
+
"ram": null,
|
413
|
+
"sockets": null,
|
414
|
+
"stacking_id": "SER0421",
|
415
|
+
"start_date": "2013-03-01 00:00:00 -0500",
|
416
|
+
"subscription_id": 3,
|
417
|
+
"support_level": "Self-Support",
|
418
|
+
"support_type": "L1-L3",
|
419
|
+
"type": "NORMAL",
|
420
|
+
"unmapped_guest": false,
|
421
|
+
"upstream": true,
|
422
|
+
"virt_only": false,
|
423
|
+
"virt_who": false,
|
424
|
+
}
|
425
|
+
}
|
426
|
+
/>
|
427
|
+
</Col>
|
428
|
+
</Row>
|
429
|
+
</LoadingState>
|
430
|
+
</div>
|
431
|
+
</Grid>
|
432
|
+
`;
|
@@ -0,0 +1,167 @@
|
|
1
|
+
import Immutable from 'seamless-immutable';
|
2
|
+
|
3
|
+
export const initialState = Immutable({
|
4
|
+
loading: false,
|
5
|
+
});
|
6
|
+
|
7
|
+
|
8
|
+
export const loadingState = Immutable({
|
9
|
+
...initialState,
|
10
|
+
loading: true,
|
11
|
+
});
|
12
|
+
|
13
|
+
export const emptyState = Immutable({
|
14
|
+
...loadingState,
|
15
|
+
});
|
16
|
+
|
17
|
+
|
18
|
+
export const subDetails = Immutable({
|
19
|
+
error: null,
|
20
|
+
arch: 'ia64,ppc,ppc64,ppc64le,s390,s390x,x86,x86_64',
|
21
|
+
description: 'OpenShift Enterprise',
|
22
|
+
support_type: 'L1-L3',
|
23
|
+
id: 48,
|
24
|
+
cp_id: '4028f92a6317cfbd0163b419377f3bee',
|
25
|
+
subscription_id: 3,
|
26
|
+
name: 'OpenShift Employee Subscription',
|
27
|
+
start_date: '2013-03-01 00:00:00 -0500',
|
28
|
+
end_date: '2021-12-31 23:59:59 -0500',
|
29
|
+
available: 1,
|
30
|
+
quantity: 1,
|
31
|
+
consumed: 0,
|
32
|
+
account_number: 1212729,
|
33
|
+
contract_number: 10126160,
|
34
|
+
support_level: 'Self-Support',
|
35
|
+
product_id: 'SER0421',
|
36
|
+
sockets: null,
|
37
|
+
cores: 4,
|
38
|
+
ram: null,
|
39
|
+
instance_multiplier: 1,
|
40
|
+
stacking_id: 'SER0421',
|
41
|
+
multi_entitlement: true,
|
42
|
+
type: 'NORMAL',
|
43
|
+
product_name: 'OpenShift Employee Subscription',
|
44
|
+
unmapped_guest: false,
|
45
|
+
virt_only: false,
|
46
|
+
virt_who: false,
|
47
|
+
upstream: true,
|
48
|
+
host_count: 0,
|
49
|
+
provided_products: [
|
50
|
+
{
|
51
|
+
id: 1,
|
52
|
+
name: 'Red Hat OpenShift Container Platform',
|
53
|
+
},
|
54
|
+
{
|
55
|
+
id: 2,
|
56
|
+
name: 'Oracle Java for RHEL Server',
|
57
|
+
},
|
58
|
+
{
|
59
|
+
id: 3,
|
60
|
+
name: 'Red Hat OpenShift Enterprise JBoss EAP add-on',
|
61
|
+
},
|
62
|
+
{
|
63
|
+
id: 4,
|
64
|
+
name: 'Red Hat CloudForms Beta',
|
65
|
+
},
|
66
|
+
{
|
67
|
+
id: 5,
|
68
|
+
name: 'Red Hat CloudForms',
|
69
|
+
},
|
70
|
+
{
|
71
|
+
id: 6,
|
72
|
+
name: 'Red Hat OpenShift Enterprise Client Tools',
|
73
|
+
},
|
74
|
+
{
|
75
|
+
id: 7,
|
76
|
+
name: 'Red Hat Enterprise Linux Atomic Host',
|
77
|
+
},
|
78
|
+
{
|
79
|
+
id: 8,
|
80
|
+
name: 'JBoss Enterprise Application Platform',
|
81
|
+
},
|
82
|
+
{
|
83
|
+
id: 9,
|
84
|
+
name: 'Red Hat JBoss AMQ Clients',
|
85
|
+
},
|
86
|
+
{
|
87
|
+
id: 10,
|
88
|
+
name: 'Red Hat Beta',
|
89
|
+
},
|
90
|
+
{
|
91
|
+
id: 11,
|
92
|
+
name: 'Red Hat OpenShift Enterprise Infrastructure',
|
93
|
+
},
|
94
|
+
{
|
95
|
+
id: 12,
|
96
|
+
name: 'Red Hat Enterprise Linux Fast Datapath Beta',
|
97
|
+
},
|
98
|
+
{
|
99
|
+
id: 13,
|
100
|
+
name: 'Red Hat Ansible Engine',
|
101
|
+
},
|
102
|
+
{
|
103
|
+
id: 14,
|
104
|
+
name: 'Red Hat OpenShift Enterprise Application Node',
|
105
|
+
},
|
106
|
+
{
|
107
|
+
id: 15,
|
108
|
+
name: 'Red Hat OpenShift Enterprise JBoss FUSE add-on',
|
109
|
+
},
|
110
|
+
{
|
111
|
+
id: 16,
|
112
|
+
name: 'Red Hat Software Collections Beta for RHEL Server',
|
113
|
+
},
|
114
|
+
{
|
115
|
+
id: 17,
|
116
|
+
name: 'Red Hat Software Collections for RHEL Server',
|
117
|
+
},
|
118
|
+
{
|
119
|
+
id: 18,
|
120
|
+
name: 'Red Hat Enterprise Linux Fast Datapath',
|
121
|
+
},
|
122
|
+
{
|
123
|
+
id: 19,
|
124
|
+
name: 'Red Hat Enterprise Linux Server',
|
125
|
+
},
|
126
|
+
{
|
127
|
+
id: 20,
|
128
|
+
name: 'Red Hat OpenShift Enterprise JBoss A-MQ add-on',
|
129
|
+
},
|
130
|
+
{
|
131
|
+
id: 21,
|
132
|
+
name: 'JBoss Enterprise Web Server',
|
133
|
+
},
|
134
|
+
{
|
135
|
+
id: 22,
|
136
|
+
name: 'Red Hat JBoss Core Services',
|
137
|
+
},
|
138
|
+
],
|
139
|
+
activation_keys: [],
|
140
|
+
});
|
141
|
+
|
142
|
+
export const successState = {
|
143
|
+
...initialState,
|
144
|
+
...subDetails,
|
145
|
+
};
|
146
|
+
|
147
|
+
export const loadSubscriptionsDetailsFailureActions = [
|
148
|
+
{
|
149
|
+
type: 'SUBSCRIPTION_DETAILS_REQUEST',
|
150
|
+
},
|
151
|
+
{
|
152
|
+
error: 'Request failed with status code 500',
|
153
|
+
type: 'SUBSCRIPTION_DETAILS_FAILURE',
|
154
|
+
},
|
155
|
+
];
|
156
|
+
|
157
|
+
export const loadSubscriptionsDetailsSuccessActions = [
|
158
|
+
{
|
159
|
+
type: 'SUBSCRIPTION_DETAILS_REQUEST',
|
160
|
+
},
|
161
|
+
{
|
162
|
+
type: 'SUBSCRIPTION_DETAILS_SUCCESS',
|
163
|
+
response: subDetails,
|
164
|
+
},
|
165
|
+
];
|
166
|
+
|
167
|
+
export default subDetails;
|