katello 3.14.1 → 3.15.0.rc1

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 (167) hide show
  1. checksums.yaml +4 -4
  2. data/app/controllers/katello/api/rhsm/candlepin_proxies_controller.rb +1 -1
  3. data/app/controllers/katello/api/v2/products_bulk_actions_controller.rb +3 -3
  4. data/app/controllers/katello/api/v2/repositories_controller.rb +1 -1
  5. data/app/helpers/katello/hosts_and_hostgroups_helper.rb +1 -1
  6. data/app/lib/actions/katello/content_view/publish.rb +2 -0
  7. data/app/lib/actions/katello/content_view_version/incremental_update.rb +1 -0
  8. data/app/lib/actions/katello/host/reassign.rb +1 -2
  9. data/app/lib/actions/katello/host/update_content_view.rb +1 -1
  10. data/app/lib/actions/katello/host/update_release_version.rb +1 -1
  11. data/app/lib/actions/katello/organization/manifest_refresh.rb +1 -1
  12. data/app/lib/actions/katello/product/update_http_proxy.rb +1 -1
  13. data/app/lib/actions/katello/repository/clone_contents.rb +1 -1
  14. data/app/lib/actions/katello/repository/clone_to_environment.rb +2 -1
  15. data/app/lib/actions/katello/repository/create.rb +1 -1
  16. data/app/lib/actions/katello/repository/metadata_generate.rb +2 -8
  17. data/app/lib/actions/katello/repository/refresh_repository.rb +5 -1
  18. data/app/lib/actions/katello/repository/sync.rb +6 -1
  19. data/app/lib/actions/middleware/execute_if_contents_changed.rb +1 -1
  20. data/app/lib/actions/pulp/orchestration/repository/refresh_if_needed.rb +1 -1
  21. data/app/lib/actions/pulp/repository/clear.rb +1 -1
  22. data/app/lib/actions/pulp/repository/remove_units.rb +1 -1
  23. data/app/lib/actions/pulp3/abstract_async_task.rb +1 -2
  24. data/app/lib/actions/pulp3/capsule_content/generate_metadata.rb +1 -1
  25. data/app/lib/actions/pulp3/capsule_content/refresh_distribution.rb +2 -2
  26. data/app/lib/actions/pulp3/capsule_content/sync.rb +1 -1
  27. data/app/lib/actions/pulp3/content_migration.rb +17 -0
  28. data/app/lib/actions/pulp3/import_migration.rb +14 -0
  29. data/app/lib/actions/pulp3/orchestration/orphan_cleanup/remove_orphans.rb +4 -1
  30. data/app/lib/actions/pulp3/orchestration/repository/copy_all_units.rb +3 -3
  31. data/app/lib/actions/pulp3/orchestration/repository/create.rb +3 -1
  32. data/app/lib/actions/pulp3/orchestration/repository/generate_metadata.rb +0 -2
  33. data/app/lib/actions/pulp3/orchestration/repository/import_upload.rb +1 -1
  34. data/app/lib/actions/pulp3/orchestration/repository/refresh_if_needed.rb +18 -0
  35. data/app/lib/actions/pulp3/orchestration/repository/refresh_repos.rb +1 -1
  36. data/app/lib/actions/pulp3/orchestration/repository/remove_units.rb +1 -1
  37. data/app/lib/actions/pulp3/orchestration/repository/sync.rb +1 -1
  38. data/app/lib/actions/pulp3/orchestration/repository/upload_content.rb +1 -1
  39. data/app/lib/actions/pulp3/orphan_cleanup/delete_orphan_distributions.rb +16 -0
  40. data/app/lib/actions/pulp3/orphan_cleanup/delete_orphan_remotes.rb +16 -0
  41. data/app/lib/actions/pulp3/orphan_cleanup/delete_orphan_repository_versions.rb +1 -6
  42. data/app/lib/actions/pulp3/orphan_cleanup/remove_orphans.rb +15 -0
  43. data/app/lib/actions/pulp3/orphan_cleanup/remove_unneeded_repos.rb +2 -2
  44. data/app/lib/actions/pulp3/repository/create.rb +1 -1
  45. data/app/lib/actions/pulp3/repository/create_publication.rb +1 -1
  46. data/app/lib/actions/pulp3/repository/presenters/content_unit_presenter.rb +1 -0
  47. data/app/lib/actions/pulp3/repository/refresh_distribution.rb +4 -2
  48. data/app/lib/actions/pulp3/repository/save_version.rb +12 -8
  49. data/app/lib/actions/pulp3/repository/upload_file.rb +2 -2
  50. data/app/lib/katello/api/v2/rendering.rb +1 -0
  51. data/app/lib/katello/concerns/base_template_scope_extensions.rb +5 -1
  52. data/app/lib/katello/http_resource.rb +4 -1
  53. data/app/lib/katello/resources/registry.rb +9 -2
  54. data/app/models/katello/concerns/content_facet_host_extensions.rb +1 -0
  55. data/app/models/katello/concerns/organization_extensions.rb +4 -4
  56. data/app/models/katello/concerns/smart_proxy_extensions.rb +33 -7
  57. data/app/models/katello/concerns/subscription_facet_host_extensions.rb +34 -12
  58. data/app/models/katello/content_view_docker_filter.rb +1 -1
  59. data/app/models/katello/content_view_version.rb +20 -47
  60. data/app/models/katello/glue/candlepin/owner.rb +4 -0
  61. data/app/models/katello/glue/candlepin/product.rb +12 -6
  62. data/app/models/katello/glue/pulp/repos.rb +6 -3
  63. data/app/models/katello/host/subscription_facet.rb +4 -5
  64. data/app/models/katello/ping.rb +3 -4
  65. data/app/models/katello/pool.rb +1 -1
  66. data/app/models/katello/pulp3/distribution_reference.rb +1 -1
  67. data/app/models/katello/repository.rb +14 -0
  68. data/app/models/katello/root_repository.rb +0 -2
  69. data/app/models/katello/subscription_status.rb +7 -0
  70. data/app/models/setting/content.rb +10 -3
  71. data/app/services/katello/candlepin/consumer.rb +1 -0
  72. data/app/services/katello/pulp/repository.rb +1 -1
  73. data/app/services/katello/pulp/repository/deb.rb +2 -0
  74. data/app/services/katello/pulp/repository/docker.rb +2 -0
  75. data/app/services/katello/pulp/repository/file.rb +2 -0
  76. data/app/services/katello/pulp/repository/yum.rb +9 -5
  77. data/app/services/katello/pulp3/ansible_collection.rb +1 -1
  78. data/app/services/katello/pulp3/api/ansible_collection.rb +46 -0
  79. data/app/services/katello/pulp3/api/core.rb +159 -0
  80. data/app/services/katello/pulp3/api/docker.rb +62 -0
  81. data/app/services/katello/pulp3/api/file.rb +54 -0
  82. data/app/services/katello/pulp3/api/yum.rb +54 -0
  83. data/app/services/katello/pulp3/distribution.rb +17 -0
  84. data/app/services/katello/pulp3/docker_blob.rb +1 -1
  85. data/app/services/katello/pulp3/docker_manifest.rb +1 -1
  86. data/app/services/katello/pulp3/docker_manifest_list.rb +1 -1
  87. data/app/services/katello/pulp3/docker_tag.rb +1 -1
  88. data/app/services/katello/pulp3/erratum.rb +109 -0
  89. data/app/services/katello/pulp3/file_unit.rb +1 -1
  90. data/app/services/katello/pulp3/migration.rb +71 -0
  91. data/app/services/katello/pulp3/migration_plan.rb +27 -0
  92. data/app/services/katello/pulp3/module_stream.rb +47 -0
  93. data/app/services/katello/pulp3/package_group.rb +66 -0
  94. data/app/services/katello/pulp3/pulp_content_unit.rb +9 -1
  95. data/app/services/katello/pulp3/repository.rb +118 -348
  96. data/app/services/katello/pulp3/repository/ansible_collection.rb +1 -29
  97. data/app/services/katello/pulp3/repository/docker.rb +23 -43
  98. data/app/services/katello/pulp3/repository/file.rb +1 -37
  99. data/app/services/katello/pulp3/repository/yum.rb +36 -37
  100. data/app/services/katello/pulp3/repository_mirror.rb +171 -0
  101. data/app/services/katello/pulp3/rpm.rb +143 -0
  102. data/app/services/katello/pulp3/smart_proxy_mirror_repository.rb +92 -0
  103. data/app/services/katello/pulp3/smart_proxy_repository.rb +38 -9
  104. data/app/services/katello/pulp3/srpm.rb +74 -0
  105. data/app/services/katello/pulp3/yum_metadata_file.rb +20 -0
  106. data/app/services/katello/registration_manager.rb +12 -11
  107. data/app/services/katello/repository_type.rb +11 -3
  108. data/app/services/katello/repository_type_manager.rb +11 -0
  109. data/app/views/dashboard/_subscription_widget.html.erb +6 -1
  110. data/app/views/katello/api/v2/content_view_versions/base.json.rabl +4 -11
  111. data/app/views/katello/api/v2/docker_manifest_lists/show.json.rabl +2 -1
  112. data/app/views/katello/api/v2/docker_manifests/show.json.rabl +2 -1
  113. data/app/views/katello/api/v2/package_groups/show.json.rabl +1 -1
  114. data/app/views/katello/api/v2/packages/show.json.rabl +2 -1
  115. data/app/views/katello/api/v2/repositories/base.json.rabl +2 -0
  116. data/app/views/katello/api/v2/repositories/show.json.rabl +2 -1
  117. data/app/views/katello/api/v2/smart_proxies/pulp_info.json.rabl +2 -0
  118. data/app/views/katello/api/v2/subscription_facet/show.json.rabl +1 -1
  119. data/app/views/smart_proxies/plugins/_pulp3.html.erb +19 -0
  120. data/app/views/smart_proxies/pulp_status.html.erb +10 -0
  121. data/db/migrate/20190930192813_add_pulp3_hrefs_to_content_types.rb +10 -0
  122. data/db/migrate/20191204020703_migrate_distribution_reference_to_use_repo_id.rb +22 -0
  123. data/db/migrate/20191204214919_add_content_view_version_counts.rb +7 -0
  124. data/db/migrate/20191213161248_add_dmi_uuid_to_katello_subscription_facets.rb +6 -0
  125. data/db/migrate/20200109162354_drop_host_update_lock_setting.rb +5 -0
  126. data/db/seeds.d/104-proxy.rb +1 -1
  127. data/db/seeds.d/111-upgrade_tasks.rb +3 -1
  128. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/bulk/content-hosts-bulk-subscriptions-modal.controller.js +3 -2
  129. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/bulk/views/content-hosts-bulk-subscriptions-modal.html +8 -3
  130. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/details/views/content-host-info.html +2 -2
  131. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/components/views/content-view-composite-available-content-views.html +1 -1
  132. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/components/views/content-view-composite-content-views-list.html +1 -1
  133. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/products/bulk/views/products-bulk-http-proxy-modal.html +3 -3
  134. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/products/details/repositories/details/views/repository-info.html +2 -2
  135. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/products/details/repositories/new/views/new-repository.html +2 -2
  136. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/products/details/repositories/views/product-repositories.html +4 -1
  137. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/products/views/products.html +1 -1
  138. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/subscriptions/views/content-access-mode-banner.html +1 -1
  139. data/lib/katello/engine.rb +25 -25
  140. data/lib/katello/plugin.rb +1 -1
  141. data/lib/katello/repository_types/ansible_collection.rb +1 -0
  142. data/lib/katello/repository_types/docker.rb +2 -1
  143. data/lib/katello/repository_types/file.rb +1 -1
  144. data/lib/katello/repository_types/yum.rb +29 -7
  145. data/lib/katello/tasks/pulp3_content_switchover.rake +21 -0
  146. data/lib/katello/tasks/pulp3_migration.rake +21 -0
  147. data/lib/katello/tasks/reset.rake +43 -16
  148. data/lib/katello/tasks/update_content_default_http_proxy.rake +3 -3
  149. data/lib/katello/tasks/upgrades/3.15/reindex_rpm_modular.rake +23 -0
  150. data/lib/katello/tasks/upgrades/3.15/set_sub_facet_dmi_uuid.rake +16 -0
  151. data/lib/katello/version.rb +1 -1
  152. data/package.json +9 -10
  153. data/webpack/components/WithOrganization/__snapshots__/withOrganization.test.js.snap +0 -63
  154. data/webpack/redux/actions/RedHatRepositories/helpers.js +5 -5
  155. data/webpack/redux/reducers/RedHatRepositories/repositorySetRepositories.js +17 -2
  156. data/webpack/scenes/RedHatRepositories/components/RepositorySet.js +1 -0
  157. data/webpack/scenes/RedHatRepositories/components/RepositorySetRepositories.js +1 -1
  158. data/webpack/scenes/RedHatRepositories/components/RepositorySetRepository/RepositorySetRepository.js +2 -3
  159. data/webpack/scenes/RedHatRepositories/components/__tests__/RepositorySetRepositories.test.js +44 -28
  160. data/webpack/scenes/RedHatRepositories/components/__tests__/__snapshots__/RepositorySetRepositories.test.js.snap +77 -45
  161. data/webpack/scenes/Subscriptions/UpstreamSubscriptions/__tests__/__snapshots__/UpstreamSubscriptionsPage.test.js.snap +2 -6
  162. data/webpack/scenes/Subscriptions/components/SubscriptionsTable/__tests__/__snapshots__/SubscriptionTypeFormatter.test.js.snap +0 -1
  163. data/webpack/test_setup.js +3 -1
  164. metadata +62 -24
  165. data/app/lib/actions/katello/host/update.rb +0 -84
  166. data/app/lib/actions/pulp3/repository/create_version.rb +0 -19
  167. data/app/views/katello/api/v2/smart_proxies/download_policy.json.rabl +0 -1
@@ -25,16 +25,16 @@ const recommendedRepositoriesRHEL = [
25
25
  ];
26
26
 
27
27
  const recommendedRepositoriesSatTools = [
28
- 'satellite-tools-6.6-for-rhel-8-x86_64-rpms',
29
- 'rhel-7-server-satellite-tools-6.6-rpms',
30
- 'rhel-6-server-satellite-tools-6.6-rpms',
31
- 'rhel-5-server-els-satellite-tools-6.6-rpms',
28
+ 'satellite-tools-6.7-for-rhel-8-x86_64-rpms',
29
+ 'rhel-7-server-satellite-tools-6.7-rpms',
30
+ 'rhel-6-server-satellite-tools-6.7-rpms',
31
+ 'rhel-5-server-els-satellite-tools-6.7-rpms',
32
32
  'rhel-7-server-satellite-maintenance-6-rpms',
33
33
  ];
34
34
 
35
35
  const recommendedRepositoriesMisc = [
36
36
  'rhel-server-rhscl-7-rpms',
37
- 'rhel-7-server-satellite-capsule-6.6-rpms',
37
+ 'rhel-7-server-satellite-capsule-6.7-rpms',
38
38
  'rhel-7-server-ansible-2.8-rpms',
39
39
  ];
40
40
 
@@ -1,3 +1,4 @@
1
+ import _ from 'lodash';
1
2
  import Immutable from 'seamless-immutable';
2
3
 
3
4
  import {
@@ -12,9 +13,23 @@ import {
12
13
 
13
14
  import { normalizeContentSetRepositories } from '../../actions/RedHatRepositories/repositorySetRepositories';
14
15
 
16
+ const normalizeArch = (arch) => {
17
+ if (arch === 'noarch') {
18
+ return undefined;
19
+ }
20
+ return arch;
21
+ };
22
+
23
+ const substitutionMatches = (value1, value2) => {
24
+ if (_.isEmpty(value1) && _.isEmpty(value2)) {
25
+ return true;
26
+ }
27
+ return value1 === value2;
28
+ };
29
+
15
30
  const reposMatch = (repoA, repoB) => (
16
- repoA.arch === repoB.arch &&
17
- repoA.releasever === repoB.releasever
31
+ substitutionMatches(normalizeArch(repoA.arch), normalizeArch(repoB.arch)) &&
32
+ substitutionMatches(repoA.releasever, repoB.releasever)
18
33
  );
19
34
 
20
35
  const changeRepoState = (state, repoToChange, stateDiff) => {
@@ -3,6 +3,7 @@ import PropTypes from 'prop-types';
3
3
  import { ListView, Icon } from 'patternfly-react';
4
4
 
5
5
  import RepositoryTypeIcon from './RepositoryTypeIcon';
6
+ // eslint-disable-next-line import/no-named-as-default
6
7
  import RepositorySetRepositories from './RepositorySetRepositories';
7
8
 
8
9
  const RepositorySet = ({
@@ -8,7 +8,7 @@ import loadRepositorySetRepos from '../../../redux/actions/RedHatRepositories/re
8
8
  import RepositorySetRepository from './RepositorySetRepository/';
9
9
  import { yStream } from './RepositorySetRepositoriesHelpers';
10
10
 
11
- class RepositorySetRepositories extends Component {
11
+ export class RepositorySetRepositories extends Component {
12
12
  componentDidMount() {
13
13
  const { contentId, productId } = this.props;
14
14
 
@@ -19,12 +19,11 @@ class RepositorySetRepository extends Component {
19
19
 
20
20
  repoForAction = () => {
21
21
  const {
22
- productId, contentId, arch, displayArch, releasever, label,
22
+ productId, contentId, arch, releasever, label,
23
23
  } = this.props;
24
24
 
25
- const derivedArch = arch || displayArch;
26
25
  return {
27
- arch: derivedArch,
26
+ arch,
28
27
  productId,
29
28
  contentId,
30
29
  releasever,
@@ -1,44 +1,60 @@
1
1
  import React from 'react';
2
- import thunk from 'redux-thunk';
3
2
  import { shallow } from 'enzyme';
4
3
  import toJson from 'enzyme-to-json';
5
- import configureMockStore from 'redux-mock-store';
6
- import RepositorySetRepositories from '../RepositorySetRepositories';
7
-
8
- const mockStore = configureMockStore([thunk]);
9
- const store = mockStore({ katello: { redHatRepositories: { repositorySetRepositories: [] } } });
4
+ import { RepositorySetRepositories } from '../RepositorySetRepositories';
10
5
 
11
6
  describe('RepositorySetRepositories Component', () => {
12
- let shallowWrapper;
13
- beforeEach(() => {
14
- shallowWrapper = shallow(<RepositorySetRepositories
15
- store={store}
7
+ it('should render with sorted repos', async () => {
8
+ const shallowWrapper = shallow(<RepositorySetRepositories
9
+ loadRepositorySetRepos={() => null}
16
10
  contentId={1}
17
11
  productId={2}
18
- type="foo"
12
+ data={{
13
+ loading: false,
14
+ repositories: [
15
+ { arch: 'x86_64', releasever: '5.11' },
16
+ { arch: 'x86_64', releasever: '7Server' },
17
+ { arch: 'x86_64', releasever: '7.10' },
18
+ { arch: 'x86_64', releasever: '7.1' },
19
+ { arch: 'i386', releasever: '5.11' },
20
+ { arch: 'i386', releasever: '5Workstation' },
21
+ { arch: 'x86_64', releasever: '7.11' }],
22
+ }}
19
23
  />);
20
- });
21
-
22
- it('sorts repos correctly', async () => {
23
- const repos = [
24
- { arch: 'x86_64', releasever: '5.11' },
25
- { arch: 'x86_64', releasever: '7Server' },
26
- { arch: 'x86_64', releasever: '7.10' },
27
- { arch: 'x86_64', releasever: '7.1' },
28
- { arch: 'i386', releasever: '5.11' },
29
- { arch: 'i386', releasever: '5Workstation' },
30
- { arch: 'x86_64', releasever: '7.11' }];
31
24
 
32
- const result = shallowWrapper.dive().instance().sortedRepos(repos);
25
+ expect(toJson(shallowWrapper)).toMatchSnapshot();
26
+ });
33
27
 
34
- const expectedIndices = [1, 5, 6, 2, 3, 0, 4];
28
+ it('should render loading', async () => {
29
+ const shallowWrapper = shallow(<RepositorySetRepositories
30
+ loadRepositorySetRepos={() => null}
31
+ contentId={1}
32
+ productId={2}
33
+ type="foo"
34
+ data={{
35
+ loading: true,
36
+ repositories: [],
37
+ }}
38
+ />);
35
39
 
36
- expectedIndices.forEach((expected, i) => {
37
- expect(result[i]).toEqual(repos[expected]);
38
- });
40
+ expect(toJson(shallowWrapper)).toMatchSnapshot();
39
41
  });
40
42
 
41
- it('should render', async () => {
43
+ it('should render with error', async () => {
44
+ const shallowWrapper = shallow(<RepositorySetRepositories
45
+ loadRepositorySetRepos={() => null}
46
+ contentId={1}
47
+ productId={2}
48
+ type="foo"
49
+ data={{
50
+ loading: false,
51
+ repositories: [],
52
+ error: {
53
+ displayMessage: 'some error',
54
+ },
55
+ }}
56
+ />);
57
+
42
58
  expect(toJson(shallowWrapper)).toMatchSnapshot();
43
59
  });
44
60
  });
@@ -1,48 +1,80 @@
1
1
  // Jest Snapshot v1, https://goo.gl/fbAQLP
2
2
 
3
- exports[`RepositorySetRepositories Component should render 1`] = `
4
- <RepositorySetRepositories
5
- contentId={1}
6
- data={
7
- Object {
8
- "error": null,
9
- "loading": true,
10
- "repositories": Array [],
11
- }
12
- }
13
- loadRepositorySetRepos={[Function]}
14
- productId={2}
15
- store={
16
- Object {
17
- "clearActions": [Function],
18
- "dispatch": [Function],
19
- "getActions": [Function],
20
- "getState": [Function],
21
- "replaceReducer": [Function],
22
- "subscribe": [Function],
23
- }
24
- }
25
- storeSubscription={
26
- Subscription {
27
- "listeners": Object {
28
- "clear": [Function],
29
- "get": [Function],
30
- "notify": [Function],
31
- "subscribe": [Function],
32
- },
33
- "onStateChange": [Function],
34
- "parentSub": undefined,
35
- "store": Object {
36
- "clearActions": [Function],
37
- "dispatch": [Function],
38
- "getActions": [Function],
39
- "getState": [Function],
40
- "replaceReducer": [Function],
41
- "subscribe": [Function],
42
- },
43
- "unsubscribe": [Function],
44
- }
45
- }
46
- type="foo"
47
- />
3
+ exports[`RepositorySetRepositories Component should render loading 1`] = `
4
+ <Spinner
5
+ className=""
6
+ inline={false}
7
+ inverse={false}
8
+ loading={true}
9
+ size="md"
10
+ >
11
+ <div>
12
+ No repositories available.
13
+ </div>
14
+ </Spinner>
15
+ `;
16
+
17
+ exports[`RepositorySetRepositories Component should render with error 1`] = `
18
+ <Alert
19
+ className=""
20
+ onDismiss={null}
21
+ type="danger"
22
+ >
23
+ <span>
24
+ some error
25
+ </span>
26
+ </Alert>
27
+ `;
28
+
29
+ exports[`RepositorySetRepositories Component should render with sorted repos 1`] = `
30
+ <Spinner
31
+ className=""
32
+ inline={false}
33
+ inverse={false}
34
+ loading={false}
35
+ size="md"
36
+ >
37
+ <Connect(RepositorySetRepository)
38
+ arch="x86_64"
39
+ key="x86_647Server"
40
+ releasever="7Server"
41
+ type=""
42
+ />
43
+ <Connect(RepositorySetRepository)
44
+ arch="i386"
45
+ key="i3865Workstation"
46
+ releasever="5Workstation"
47
+ type=""
48
+ />
49
+ <Connect(RepositorySetRepository)
50
+ arch="x86_64"
51
+ key="x86_647.11"
52
+ releasever="7.11"
53
+ type=""
54
+ />
55
+ <Connect(RepositorySetRepository)
56
+ arch="x86_64"
57
+ key="x86_647.10"
58
+ releasever="7.10"
59
+ type=""
60
+ />
61
+ <Connect(RepositorySetRepository)
62
+ arch="x86_64"
63
+ key="x86_647.1"
64
+ releasever="7.1"
65
+ type=""
66
+ />
67
+ <Connect(RepositorySetRepository)
68
+ arch="x86_64"
69
+ key="x86_645.11"
70
+ releasever="5.11"
71
+ type=""
72
+ />
73
+ <Connect(RepositorySetRepository)
74
+ arch="i386"
75
+ key="i3865.11"
76
+ releasever="5.11"
77
+ type=""
78
+ />
79
+ </Spinner>
48
80
  `;
@@ -200,11 +200,7 @@ exports[`upstream subscriptions page should render 1`] = `
200
200
  >
201
201
  Submit
202
202
  </Button>
203
- <LinkContainer
204
- activeClassName="active"
205
- exact={false}
206
- replace={false}
207
- strict={false}
203
+ <withRouter(LinkContainer)
208
204
  style={
209
205
  Object {
210
206
  "marginTop": "10px",
@@ -221,7 +217,7 @@ exports[`upstream subscriptions page should render 1`] = `
221
217
  >
222
218
  Cancel
223
219
  </Button>
224
- </LinkContainer>
220
+ </withRouter(LinkContainer)>
225
221
  </Col>
226
222
  </Row>
227
223
  </LoadingState>
@@ -6,7 +6,6 @@ exports[`subscriptionTypeFormatter renders link to a host 1`] = `
6
6
  Guests of
7
7
 
8
8
  <Link
9
- replace={false}
10
9
  to="/content_hosts/83/"
11
10
  >
12
11
  host.example.com
@@ -1,6 +1,8 @@
1
1
  // Setup file for enzyme
2
2
  // See http://airbnb.io/enzyme/docs/installation/react-16.html
3
- import 'babel-polyfill';
3
+ import 'core-js/shim';
4
+ import 'regenerator-runtime/runtime';
5
+
4
6
  import { configure } from 'enzyme';
5
7
  import Adapter from 'enzyme-adapter-react-16';
6
8
  import * as Services from './services/api';
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: katello
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.14.1
4
+ version: 3.15.0.rc1
5
5
  platform: ruby
6
6
  authors:
7
7
  - N/A
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-01-14 00:00:00.000000000 Z
11
+ date: 2020-02-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -84,9 +84,6 @@ dependencies:
84
84
  name: foreman-tasks
85
85
  requirement: !ruby/object:Gem::Requirement
86
86
  requirements:
87
- - - "~>"
88
- - !ruby/object:Gem::Version
89
- version: '0.13'
90
87
  - - ">="
91
88
  - !ruby/object:Gem::Version
92
89
  version: 0.14.1
@@ -94,9 +91,6 @@ dependencies:
94
91
  prerelease: false
95
92
  version_requirements: !ruby/object:Gem::Requirement
96
93
  requirements:
97
- - - "~>"
98
- - !ruby/object:Gem::Version
99
- version: '0.13'
100
94
  - - ">="
101
95
  - !ruby/object:Gem::Version
102
96
  version: 0.14.1
@@ -210,70 +204,84 @@ dependencies:
210
204
  requirements:
211
205
  - - "<="
212
206
  - !ruby/object:Gem::Version
213
- version: 3.0.0rc8.dev01571235538
207
+ version: 3.1.0.dev01574423031
214
208
  type: :runtime
215
209
  prerelease: false
216
210
  version_requirements: !ruby/object:Gem::Requirement
217
211
  requirements:
218
212
  - - "<="
219
213
  - !ruby/object:Gem::Version
220
- version: 3.0.0rc8.dev01571235538
214
+ version: 3.1.0.dev01574423031
221
215
  - !ruby/object:Gem::Dependency
222
216
  name: pulp_file_client
223
217
  requirement: !ruby/object:Gem::Requirement
224
218
  requirements:
225
219
  - - "<="
226
220
  - !ruby/object:Gem::Version
227
- version: 0.1.0b5.dev01571253617
221
+ version: 0.2.0.dev01574442231
228
222
  type: :runtime
229
223
  prerelease: false
230
224
  version_requirements: !ruby/object:Gem::Requirement
231
225
  requirements:
232
226
  - - "<="
233
227
  - !ruby/object:Gem::Version
234
- version: 0.1.0b5.dev01571253617
228
+ version: 0.2.0.dev01574442231
235
229
  - !ruby/object:Gem::Dependency
236
230
  name: pulp_ansible_client
237
231
  requirement: !ruby/object:Gem::Requirement
238
232
  requirements:
239
233
  - - "<="
240
234
  - !ruby/object:Gem::Version
241
- version: 0.2.0b6.dev01570985981
235
+ version: 0.2.0b7.dev01574717759
242
236
  type: :runtime
243
237
  prerelease: false
244
238
  version_requirements: !ruby/object:Gem::Requirement
245
239
  requirements:
246
240
  - - "<="
247
241
  - !ruby/object:Gem::Version
248
- version: 0.2.0b6.dev01570985981
242
+ version: 0.2.0b7.dev01574717759
249
243
  - !ruby/object:Gem::Dependency
250
- name: pulp_docker_client
244
+ name: pulp_container_client
251
245
  requirement: !ruby/object:Gem::Requirement
252
246
  requirements:
253
247
  - - "<="
254
248
  - !ruby/object:Gem::Version
255
- version: 4.0.0b8.dev01571062112
249
+ version: 1.1.0.dev01574357179
256
250
  type: :runtime
257
251
  prerelease: false
258
252
  version_requirements: !ruby/object:Gem::Requirement
259
253
  requirements:
260
254
  - - "<="
261
255
  - !ruby/object:Gem::Version
262
- version: 4.0.0b8.dev01571062112
256
+ version: 1.1.0.dev01574357179
263
257
  - !ruby/object:Gem::Dependency
264
258
  name: pulp_rpm_client
265
259
  requirement: !ruby/object:Gem::Requirement
266
260
  requirements:
267
261
  - - "<="
268
262
  - !ruby/object:Gem::Version
269
- version: 3.0.0b71571331815
263
+ version: 3.1.0b1.dev01576187357
270
264
  type: :runtime
271
265
  prerelease: false
272
266
  version_requirements: !ruby/object:Gem::Requirement
273
267
  requirements:
274
268
  - - "<="
275
269
  - !ruby/object:Gem::Version
276
- version: 3.0.0b71571331815
270
+ version: 3.1.0b1.dev01576187357
271
+ - !ruby/object:Gem::Dependency
272
+ name: pulp_2to3_migration_client
273
+ requirement: !ruby/object:Gem::Requirement
274
+ requirements:
275
+ - - "<="
276
+ - !ruby/object:Gem::Version
277
+ version: 0.0.1a1.dev01573066581
278
+ type: :runtime
279
+ prerelease: false
280
+ version_requirements: !ruby/object:Gem::Requirement
281
+ requirements:
282
+ - - "<="
283
+ - !ruby/object:Gem::Version
284
+ version: 0.0.1a1.dev01573066581
277
285
  - !ruby/object:Gem::Dependency
278
286
  name: deface
279
287
  requirement: !ruby/object:Gem::Requirement
@@ -758,7 +766,6 @@ files:
758
766
  - app/lib/actions/katello/host/reassign.rb
759
767
  - app/lib/actions/katello/host/recalculate_errata_status.rb
760
768
  - app/lib/actions/katello/host/remove_subscriptions.rb
761
- - app/lib/actions/katello/host/update.rb
762
769
  - app/lib/actions/katello/host/update_content_overrides.rb
763
770
  - app/lib/actions/katello/host/update_content_view.rb
764
771
  - app/lib/actions/katello/host/update_release_version.rb
@@ -907,25 +914,30 @@ files:
907
914
  - app/lib/actions/pulp3/capsule_content/generate_metadata.rb
908
915
  - app/lib/actions/pulp3/capsule_content/refresh_distribution.rb
909
916
  - app/lib/actions/pulp3/capsule_content/sync.rb
917
+ - app/lib/actions/pulp3/content_migration.rb
918
+ - app/lib/actions/pulp3/import_migration.rb
910
919
  - app/lib/actions/pulp3/orchestration/orphan_cleanup/remove_orphans.rb
911
920
  - app/lib/actions/pulp3/orchestration/repository/copy_all_units.rb
912
921
  - app/lib/actions/pulp3/orchestration/repository/create.rb
913
922
  - app/lib/actions/pulp3/orchestration/repository/delete.rb
914
923
  - app/lib/actions/pulp3/orchestration/repository/generate_metadata.rb
915
924
  - app/lib/actions/pulp3/orchestration/repository/import_upload.rb
925
+ - app/lib/actions/pulp3/orchestration/repository/refresh_if_needed.rb
916
926
  - app/lib/actions/pulp3/orchestration/repository/refresh_repos.rb
917
927
  - app/lib/actions/pulp3/orchestration/repository/remove_units.rb
918
928
  - app/lib/actions/pulp3/orchestration/repository/sync.rb
919
929
  - app/lib/actions/pulp3/orchestration/repository/update.rb
920
930
  - app/lib/actions/pulp3/orchestration/repository/upload_content.rb
931
+ - app/lib/actions/pulp3/orphan_cleanup/delete_orphan_distributions.rb
932
+ - app/lib/actions/pulp3/orphan_cleanup/delete_orphan_remotes.rb
921
933
  - app/lib/actions/pulp3/orphan_cleanup/delete_orphan_repository_versions.rb
934
+ - app/lib/actions/pulp3/orphan_cleanup/remove_orphans.rb
922
935
  - app/lib/actions/pulp3/orphan_cleanup/remove_unneeded_repos.rb
923
936
  - app/lib/actions/pulp3/repository/copy_content.rb
924
937
  - app/lib/actions/pulp3/repository/copy_version.rb
925
938
  - app/lib/actions/pulp3/repository/create.rb
926
939
  - app/lib/actions/pulp3/repository/create_publication.rb
927
940
  - app/lib/actions/pulp3/repository/create_remote.rb
928
- - app/lib/actions/pulp3/repository/create_version.rb
929
941
  - app/lib/actions/pulp3/repository/delete.rb
930
942
  - app/lib/actions/pulp3/repository/delete_distributions.rb
931
943
  - app/lib/actions/pulp3/repository/delete_remote.rb
@@ -1271,19 +1283,35 @@ files:
1271
1283
  - app/services/katello/pulp/srpm.rb
1272
1284
  - app/services/katello/pulp/yum_metadata_file.rb
1273
1285
  - app/services/katello/pulp3/ansible_collection.rb
1286
+ - app/services/katello/pulp3/api/ansible_collection.rb
1287
+ - app/services/katello/pulp3/api/core.rb
1288
+ - app/services/katello/pulp3/api/docker.rb
1289
+ - app/services/katello/pulp3/api/file.rb
1290
+ - app/services/katello/pulp3/api/yum.rb
1274
1291
  - app/services/katello/pulp3/content.rb
1292
+ - app/services/katello/pulp3/distribution.rb
1275
1293
  - app/services/katello/pulp3/docker_blob.rb
1276
1294
  - app/services/katello/pulp3/docker_manifest.rb
1277
1295
  - app/services/katello/pulp3/docker_manifest_list.rb
1278
1296
  - app/services/katello/pulp3/docker_tag.rb
1297
+ - app/services/katello/pulp3/erratum.rb
1279
1298
  - app/services/katello/pulp3/file_unit.rb
1299
+ - app/services/katello/pulp3/migration.rb
1300
+ - app/services/katello/pulp3/migration_plan.rb
1301
+ - app/services/katello/pulp3/module_stream.rb
1302
+ - app/services/katello/pulp3/package_group.rb
1280
1303
  - app/services/katello/pulp3/pulp_content_unit.rb
1281
1304
  - app/services/katello/pulp3/repository.rb
1282
1305
  - app/services/katello/pulp3/repository/ansible_collection.rb
1283
1306
  - app/services/katello/pulp3/repository/docker.rb
1284
1307
  - app/services/katello/pulp3/repository/file.rb
1285
1308
  - app/services/katello/pulp3/repository/yum.rb
1309
+ - app/services/katello/pulp3/repository_mirror.rb
1310
+ - app/services/katello/pulp3/rpm.rb
1311
+ - app/services/katello/pulp3/smart_proxy_mirror_repository.rb
1286
1312
  - app/services/katello/pulp3/smart_proxy_repository.rb
1313
+ - app/services/katello/pulp3/srpm.rb
1314
+ - app/services/katello/pulp3/yum_metadata_file.rb
1287
1315
  - app/services/katello/puppet_class_importer_extensions.rb
1288
1316
  - app/services/katello/pxe_files_downloader.rb
1289
1317
  - app/services/katello/registration_manager.rb
@@ -1501,7 +1529,7 @@ files:
1501
1529
  - app/views/katello/api/v2/repository_sets/index.json.rabl
1502
1530
  - app/views/katello/api/v2/repository_sets/show.json.rabl
1503
1531
  - app/views/katello/api/v2/root/resource_list.json.rabl
1504
- - app/views/katello/api/v2/smart_proxies/download_policy.json.rabl
1532
+ - app/views/katello/api/v2/smart_proxies/pulp_info.json.rabl
1505
1533
  - app/views/katello/api/v2/srpms/index.json.rabl
1506
1534
  - app/views/katello/api/v2/srpms/show.json.rabl
1507
1535
  - app/views/katello/api/v2/subscription_facet/base.json.rabl
@@ -1559,6 +1587,7 @@ files:
1559
1587
  - app/views/overrides/taxonomies/_action_buttons.html.erb
1560
1588
  - app/views/smart_proxies/_disk_usage.html.erb
1561
1589
  - app/views/smart_proxies/plugins/_pulp.html.erb
1590
+ - app/views/smart_proxies/plugins/_pulp3.html.erb
1562
1591
  - app/views/smart_proxies/plugins/_pulp_node.html.erb
1563
1592
  - app/views/smart_proxies/pulp_status.html.erb
1564
1593
  - app/views/smart_proxies/pulp_storage.html.erb
@@ -1837,6 +1866,11 @@ files:
1837
1866
  - db/migrate/20190816162733_rename_ansible_collection_whitelist_to_requirements.rb
1838
1867
  - db/migrate/20190822144300_add_ansible_fields.rb
1839
1868
  - db/migrate/20190912210927_rename_repository_file_unit.rb
1869
+ - db/migrate/20190930192813_add_pulp3_hrefs_to_content_types.rb
1870
+ - db/migrate/20191204020703_migrate_distribution_reference_to_use_repo_id.rb
1871
+ - db/migrate/20191204214919_add_content_view_version_counts.rb
1872
+ - db/migrate/20191213161248_add_dmi_uuid_to_katello_subscription_facets.rb
1873
+ - db/migrate/20200109162354_drop_host_update_lock_setting.rb
1840
1874
  - db/seeds.d/101-locations.rb
1841
1875
  - db/seeds.d/102-organizations.rb
1842
1876
  - db/seeds.d/104-proxy.rb
@@ -4071,6 +4105,8 @@ files:
4071
4105
  - lib/katello/tasks/import_subscriptions.rake
4072
4106
  - lib/katello/tasks/jenkins.rake
4073
4107
  - lib/katello/tasks/job_templates.rake
4108
+ - lib/katello/tasks/pulp3_content_switchover.rake
4109
+ - lib/katello/tasks/pulp3_migration.rake
4074
4110
  - lib/katello/tasks/regenerate_ueber_certs.rake
4075
4111
  - lib/katello/tasks/reimport.rake
4076
4112
  - lib/katello/tasks/repository.rake
@@ -4087,6 +4123,8 @@ files:
4087
4123
  - lib/katello/tasks/upgrades/3.11/update_puppet_repos.rake
4088
4124
  - lib/katello/tasks/upgrades/3.12/remove_pulp2_notifier.rake
4089
4125
  - lib/katello/tasks/upgrades/3.13/republish_deb_metadata.rake
4126
+ - lib/katello/tasks/upgrades/3.15/reindex_rpm_modular.rake
4127
+ - lib/katello/tasks/upgrades/3.15/set_sub_facet_dmi_uuid.rake
4090
4128
  - lib/katello/tasks/upgrades/3.8/clear_checksum_type.rake
4091
4129
  - lib/katello/tasks/virt_who_report.rake
4092
4130
  - lib/katello/url_constrained_cookie_store.rb
@@ -4573,9 +4611,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
4573
4611
  version: '0'
4574
4612
  required_rubygems_version: !ruby/object:Gem::Requirement
4575
4613
  requirements:
4576
- - - ">="
4614
+ - - ">"
4577
4615
  - !ruby/object:Gem::Version
4578
- version: '0'
4616
+ version: 1.3.1
4579
4617
  requirements: []
4580
4618
  rubygems_version: 3.0.3
4581
4619
  signing_key: