katello 3.8.1 → 3.9.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.
- checksums.yaml +4 -4
- data/README.md +7 -7
- data/app/controllers/katello/api/registry/registry_proxies_controller.rb +16 -9
- data/app/controllers/katello/api/rhsm/candlepin_proxies_controller.rb +1 -1
- data/app/controllers/katello/api/v2/api_controller.rb +20 -22
- data/app/controllers/katello/api/v2/capsule_content_controller.rb +1 -1
- data/app/controllers/katello/api/v2/content_view_filter_rules_controller.rb +5 -1
- data/app/controllers/katello/api/v2/content_view_histories_controller.rb +1 -1
- data/app/controllers/katello/api/v2/content_view_versions_controller.rb +12 -12
- data/app/controllers/katello/api/v2/content_views_controller.rb +15 -1
- data/app/controllers/katello/api/v2/host_errata_controller.rb +1 -1
- data/app/controllers/katello/api/v2/host_subscriptions_controller.rb +12 -4
- data/app/controllers/katello/api/v2/hosts_bulk_actions_controller.rb +12 -0
- data/app/controllers/katello/api/v2/module_streams_controller.rb +49 -0
- data/app/controllers/katello/api/v2/organizations_controller.rb +3 -1
- data/app/controllers/katello/api/v2/package_groups_controller.rb +1 -1
- data/app/controllers/katello/api/v2/products_bulk_actions_controller.rb +5 -4
- data/app/controllers/katello/api/v2/products_controller.rb +1 -1
- data/app/controllers/katello/api/v2/puppet_modules_controller.rb +5 -0
- data/app/controllers/katello/api/v2/repositories_controller.rb +80 -84
- data/app/controllers/katello/api/v2/repository_sets_controller.rb +18 -7
- data/app/controllers/katello/api/v2/subscriptions_controller.rb +2 -6
- data/app/controllers/katello/api/v2/sync_plans_controller.rb +13 -24
- data/app/controllers/katello/concerns/api/v2/repository_content_controller.rb +12 -5
- data/app/controllers/katello/concerns/hosts_controller_extensions.rb +2 -5
- data/app/controllers/katello/react_controller.rb +2 -0
- data/app/controllers/katello/remote_execution_controller.rb +16 -5
- data/app/helpers/katello/hosts_and_hostgroups_helper.rb +0 -2
- data/app/lib/actions/candlepin/import_pool_handler.rb +40 -15
- data/app/lib/actions/katello/capsule_content/create_repos.rb +1 -0
- data/app/lib/actions/katello/content_view/publish.rb +21 -2
- data/app/lib/actions/katello/content_view_version/incremental_update.rb +1 -1
- data/app/lib/actions/katello/environment/destroy.rb +2 -3
- data/app/lib/actions/katello/environment/publish_repositories.rb +1 -1
- data/app/lib/actions/katello/event_queue/monitor.rb +9 -15
- data/app/lib/actions/katello/event_queue/poller_thread.rb +24 -1
- data/app/lib/actions/katello/event_queue/suspended_action.rb +2 -2
- data/app/lib/actions/katello/host/hypervisors_update.rb +82 -22
- data/app/lib/actions/katello/organization/manifest_refresh.rb +1 -1
- data/app/lib/actions/katello/product/content_create.rb +30 -38
- data/app/lib/actions/katello/product/content_destroy.rb +11 -12
- data/app/lib/actions/katello/product/create.rb +0 -1
- data/app/lib/actions/katello/product/update.rb +0 -2
- data/app/lib/actions/katello/repository/clear.rb +2 -0
- data/app/lib/actions/katello/repository/clone_to_environment.rb +0 -2
- data/app/lib/actions/katello/repository/clone_to_version.rb +15 -3
- data/app/lib/actions/katello/repository/clone_yum_content.rb +21 -2
- data/app/lib/actions/katello/repository/clone_yum_metadata.rb +1 -1
- data/app/lib/actions/katello/repository/correct_checksum.rb +5 -5
- data/app/lib/actions/katello/repository/create.rb +7 -7
- data/app/lib/actions/katello/repository/create_root.rb +22 -0
- data/app/lib/actions/katello/repository/destroy.rb +11 -6
- data/app/lib/actions/katello/repository/discover.rb +5 -3
- data/app/lib/actions/katello/repository/export.rb +1 -1
- data/app/lib/actions/katello/repository/fetch_pxe_files.rb +13 -27
- data/app/lib/actions/katello/repository/index_module_streams.rb +16 -0
- data/app/lib/actions/katello/repository/metadata_generate.rb +1 -1
- data/app/lib/actions/katello/repository/sync.rb +0 -2
- data/app/lib/actions/katello/repository/update.rb +15 -28
- data/app/lib/actions/katello/repository_set/disable_repository.rb +5 -13
- data/app/lib/actions/katello/repository_set/enable_repository.rb +3 -16
- data/app/lib/actions/katello/repository_set/scan_cdn.rb +4 -32
- data/app/lib/actions/katello/sync_plan/run.rb +37 -0
- data/app/lib/actions/pulp/abstract.rb +7 -2
- data/app/lib/actions/pulp/abstract_async_task.rb +1 -0
- data/app/lib/actions/pulp/consumer/generate_applicability.rb +1 -0
- data/app/lib/actions/pulp/repository/copy_module_default.rb +11 -0
- data/app/lib/actions/pulp/repository/copy_module_stream.rb +11 -0
- data/app/lib/actions/pulp/repository/create.rb +2 -0
- data/app/lib/actions/pulp/repository/distributor_publish.rb +3 -2
- data/app/lib/actions/pulp/repository/remove_module_default.rb +11 -0
- data/app/lib/actions/pulp/repository/remove_module_stream.rb +11 -0
- data/app/lib/actions/pulp/repository/sync.rb +6 -19
- data/app/lib/actions/pulp/repository/update_importer.rb +9 -7
- data/app/lib/katello/concerns/base_template_scope_extensions.rb +42 -0
- data/app/lib/katello/concerns/renderer_extensions.rb +6 -4
- data/app/lib/katello/http_resource.rb +5 -1
- data/app/lib/katello/repo_discovery.rb +6 -2
- data/app/lib/katello/resources/candlepin/consumer.rb +18 -1
- data/app/lib/katello/resources/candlepin/owner.rb +9 -0
- data/app/lib/katello/resources/candlepin/pool.rb +2 -2
- data/app/lib/katello/validators/root_repository_unique_attribute_validator.rb +13 -0
- data/app/models/katello/authorization/product.rb +3 -4
- data/app/models/katello/authorization/repository.rb +4 -4
- data/app/models/katello/candlepin/repository_mapper.rb +12 -26
- data/app/models/katello/concerns/audit_search.rb +13 -0
- data/app/models/katello/concerns/content_facet_host_extensions.rb +1 -1
- data/app/models/katello/concerns/content_view_filter_rule_common.rb +1 -0
- data/app/models/katello/concerns/host_managed_extensions.rb +68 -2
- data/app/models/katello/concerns/hostgroup_extensions.rb +13 -0
- data/app/models/katello/concerns/location_extensions.rb +3 -3
- data/app/models/katello/concerns/organization_extensions.rb +7 -3
- data/app/models/katello/concerns/pulp_database_unit.rb +1 -0
- data/app/models/katello/concerns/recurring_logic_extensions.rb +11 -0
- data/app/models/katello/concerns/redhat_extensions.rb +0 -25
- data/app/models/katello/concerns/search_by_repository_name.rb +21 -0
- data/app/models/katello/concerns/setting_extensions.rb +1 -1
- data/app/models/katello/concerns/subscription_facet_host_extensions.rb +43 -0
- data/app/models/katello/content.rb +7 -3
- data/app/models/katello/content_view.rb +4 -4
- data/app/models/katello/content_view_component.rb +1 -1
- data/app/models/katello/content_view_history.rb +1 -0
- data/app/models/katello/content_view_version.rb +14 -2
- data/app/models/katello/docker_manifest_list.rb +1 -1
- data/app/models/katello/docker_meta_tag.rb +11 -2
- data/app/models/katello/docker_tag.rb +1 -1
- data/app/models/katello/erratum.rb +6 -0
- data/app/models/katello/file_unit.rb +0 -1
- data/app/models/katello/glue/candlepin/owner.rb +1 -0
- data/app/models/katello/glue/candlepin/pool.rb +1 -2
- data/app/models/katello/glue/candlepin/product.rb +0 -4
- data/app/models/katello/glue/candlepin/repository.rb +0 -21
- data/app/models/katello/glue/provider.rb +4 -2
- data/app/models/katello/glue/pulp/repo.rb +10 -173
- data/app/models/katello/glue/pulp/repos.rb +2 -112
- data/app/models/katello/gpg_key.rb +6 -14
- data/app/models/katello/host/content_facet.rb +1 -1
- data/app/models/katello/host/subscription_facet.rb +32 -8
- data/app/models/katello/kt_environment.rb +9 -29
- data/app/models/katello/module_profile.rb +6 -0
- data/app/models/katello/module_profile_rpm.rb +5 -0
- data/app/models/katello/module_stream.rb +112 -0
- data/app/models/katello/module_stream_artifact.rb +5 -0
- data/app/models/katello/ostree_branch.rb +0 -1
- data/app/models/katello/package_group.rb +1 -1
- data/app/models/katello/pool.rb +4 -0
- data/app/models/katello/product.rb +18 -21
- data/app/models/katello/product_content.rb +2 -2
- data/app/models/katello/puppet_module.rb +1 -0
- data/app/models/katello/purpose_addons_status.rb +50 -0
- data/app/models/katello/purpose_role_status.rb +50 -0
- data/app/models/katello/purpose_sla_status.rb +48 -0
- data/app/models/katello/purpose_status.rb +56 -0
- data/app/models/katello/purpose_usage_status.rb +50 -0
- data/app/models/katello/repository.rb +116 -280
- data/app/models/katello/repository_module_stream.rb +7 -0
- data/app/models/katello/root_repository.rb +262 -0
- data/app/models/katello/subscription_status.rb +1 -1
- data/app/models/katello/sync_plan.rb +93 -40
- data/app/presenters/katello/content_view_version_compare_presenter.rb +7 -2
- data/app/services/katello/candlepin/consumer.rb +25 -0
- data/app/services/katello/candlepin/message_handler.rb +18 -2
- data/app/services/katello/managed_content_medium_provider.rb +27 -0
- data/app/services/katello/product_content_finder.rb +3 -3
- data/app/services/katello/pulp/module_stream.rb +9 -0
- data/app/services/katello/pulp/repository.rb +22 -0
- data/app/services/katello/pulp/srpm.rb +1 -1
- data/app/services/katello/pxe_files_downloader.rb +41 -0
- data/app/services/katello/registration_manager.rb +5 -0
- data/app/views/katello/api/v2/content_facet/show.json.rabl +0 -4
- data/app/views/katello/api/v2/content_view_versions/base.json.rabl +12 -2
- data/app/views/katello/api/v2/debs/compare.json.rabl +10 -0
- data/app/views/katello/api/v2/docker_manifest_lists/compare.json.rabl +10 -0
- data/app/views/katello/api/v2/environments/show.json.rabl +1 -0
- data/app/views/katello/api/v2/hosts/host_collections.json.rabl +3 -0
- data/app/views/katello/api/v2/module_streams/base.json.rabl +4 -0
- data/app/views/katello/api/v2/module_streams/index.json.rabl +7 -0
- data/app/views/katello/api/v2/module_streams/name_stream.json.rabl +3 -0
- data/app/views/katello/api/v2/module_streams/name_streams.json.rabl +7 -0
- data/app/views/katello/api/v2/module_streams/show.json.rabl +21 -0
- data/app/views/katello/api/v2/organizations/show.json.rabl +4 -1
- data/app/views/katello/api/v2/products/base.json.rabl +1 -1
- data/app/views/katello/api/v2/repositories/base.json.rabl +23 -10
- data/app/views/katello/api/v2/repositories/show.json.rabl +47 -38
- data/app/views/katello/api/v2/smart_proxies/download_policy.json.rabl +1 -0
- data/app/views/katello/api/v2/subscription_facet/base.json.rabl +1 -1
- data/app/views/katello/api/v2/sync_plans/show.json.rabl +2 -1
- data/app/views/katello/layouts/react.html.erb +1 -0
- data/config/katello.yaml.example +1 -2
- data/config/routes.rb +5 -0
- data/config/routes/api/v2.rb +12 -1
- data/config/routes/overrides.rb +1 -0
- data/db/migrate/20150114225023_add_upstream_name_to_repository.rb +7 -2
- data/db/migrate/20170208215148_add_docker_repo_name.rb +10 -1
- data/db/migrate/20180326190408_move_subscription_products.rb +2 -0
- data/db/migrate/20180622105300_add_docker_tags_whitelist_to_repository.rb +9 -0
- data/db/migrate/20180725083800_change_repository_password_length.rb +5 -0
- data/db/migrate/20180806205420_add_index_to_content_view_version.rb +5 -0
- data/db/migrate/20180807145652_create_katello_module_streams.rb +88 -0
- data/db/migrate/20180807164405_remove_repository_cp_label.rb +5 -0
- data/db/migrate/20180808013432_add_system_purpose_attrs.rb +39 -0
- data/db/migrate/20180814202747_add_recurring_logic_to_sync_plan.rb +12 -0
- data/db/migrate/20180816142044_add_description_to_katello_module_streams.rb +6 -0
- data/db/migrate/20180821144248_add_cron_logic_to_sync_plans.rb +5 -0
- data/db/migrate/20180828161400_remove_join_table_for_role_and_usage.rb +20 -0
- data/db/migrate/20180917173645_add_source_repo_checksum_type_to_katello_repositories.rb +1 -1
- data/db/migrate/20180920123913_drop_repo_module_streams_timestamp_not_null.rb +7 -0
- data/db/migrate/20180920171008_change_repository_password_to_text.rb +17 -0
- data/db/migrate/20180920214134_create_repository_root.rb +142 -0
- data/db/seeds.d/111-container-image-bookmarks.rb +19 -0
- data/db/seeds.d/111-upgrade_tasks.rb +9 -0
- data/db/seeds.d/150-module_job_templates.rb +12 -0
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/bastion-katello-bootstrap.js +1 -0
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/bastion_katello.js +3 -0
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/common/module-stream-actions.service.js +26 -0
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/common/views/subscription-add-or-remove.html +1 -1
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/bulk/content-hosts-bulk-module-streams-modal.controller.js +60 -0
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/bulk/content-hosts-bulk-repository-sets-modal.controller.js +2 -1
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/bulk/views/content-host-bulk-module-streams-modal.html +70 -0
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/bulk/views/content-hosts-bulk-packages-modal.html +16 -14
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/bulk/views/content-hosts-bulk-repository-sets-modal.html +1 -7
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/content-host-modal-helper.service.js +11 -0
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/content-hosts-helper.service.js +8 -4
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/content-hosts.controller.js +5 -0
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/content-hosts.routes.js +14 -0
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/content/content-host-module-streams.controller.js +48 -0
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/content/views/content-host-module-streams.html +68 -0
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/details/content-host-details-info.controller.js +15 -0
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/details/content-host-details.controller.js +59 -2
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/details/views/content-host-details.html +6 -0
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/details/views/content-host-info.html +81 -27
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/details/views/content-host-provisioning-info.html +1 -1
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/details/views/content-host-subscriptions.html +2 -2
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/views/content-hosts.html +4 -0
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/content-views.routes.js +10 -0
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/content-view-repositories.service.js +0 -1
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/views/content-view-repositories.html +5 -0
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/views/content-view-versions.html +3 -0
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/new/content-view-new.controller.js +7 -0
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/new/views/content-view-new.html +1 -2
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/versions/content-view-version-content.controller.js +38 -13
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/versions/content-view-versions.module.js +1 -0
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/versions/views/content-view-version-module-streams.html +8 -0
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/versions/views/content-view-version-ostree-branches.html +1 -1
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/versions/views/content-view-version-package-groups.html +1 -1
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/versions/views/content-view-version-packages.html +1 -1
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/versions/views/content-view-version-yum.html +5 -0
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/versions/views/content-view-version.html +7 -0
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/docker-tags/docker-tags.controller.js +1 -0
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/environments/content.service.js +5 -0
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/environments/details/views/environment-module-streams.html +38 -0
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/environments/details/views/environment.html +1 -1
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/environments/environments.routes.js +11 -0
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/environments/views/environments.html +3 -0
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/errata/details/erratum-repositories.controller.js +6 -22
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/errata/details/views/erratum-repositories.html +7 -1
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/host-collections/details/host-collection-details.controller.js +4 -0
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/host-collections/details/views/host-collection-info.html +6 -0
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/hosts/host-bulk-action.factory.js +2 -1
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/module-streams/module-stream.factory.js +27 -0
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/module-streams/module-streams.module.js +15 -0
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/module-streams/views/partials/module-streams-table.html +25 -0
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/packages/details/package-repositories.controller.js +6 -22
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/packages/details/views/package-repositories.html +7 -1
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/packages/repositories-filters.service.js +89 -0
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/products/details/product-repositories.controller.js +4 -5
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/products/details/repositories/details/repository-details-info.controller.js +15 -2
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/products/details/repositories/details/repository-details-info.filter.js +2 -2
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/products/details/repositories/details/repository-details-manage-content.controller.js +15 -11
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/products/details/repositories/details/repository-details.controller.js +5 -0
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/products/details/repositories/details/views/repository-info.html +36 -20
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/products/details/repositories/details/views/repository-manage-module-streams.html +17 -0
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/products/details/repositories/new/views/new-repository.html +6 -6
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/products/details/repositories/repositories.routes.js +9 -0
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/products/details/repositories/views/product-repositories.html +5 -0
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/products/discovery/discovery.controller.js +2 -1
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/products/discovery/views/discovery.html +10 -0
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/products/new/new-sync-plan-modal.controller.js +6 -2
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/repository-sets/repository-set.factory.js +1 -1
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/sync-plans/details/sync-plan-details-info.controller.js +20 -3
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/sync-plans/details/sync-plan-details.controller.js +2 -1
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/sync-plans/details/views/sync-plan-info.html +23 -4
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/sync-plans/new/new-sync-plan.controller.js +10 -6
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/sync-plans/new/views/new-sync-plan-form.html +11 -3
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/sync-plans/sync-plan-helper.service.js +3 -3
- data/engines/bastion_katello/app/assets/stylesheets/bastion_katello/bastion_katello.scss +5 -1
- data/engines/bastion_katello/lib/bastion_katello/engine.rb +2 -2
- data/lib/katello/engine.rb +7 -12
- data/lib/katello/permission_creator.rb +5 -1
- data/lib/katello/permissions/host_permissions.rb +1 -0
- data/lib/katello/plugin.rb +38 -14
- data/lib/katello/tasks/clean_backend_objects.rake +7 -3
- data/lib/katello/tasks/reimport.rake +1 -0
- data/lib/katello/tasks/repository.rake +11 -8
- data/lib/katello/tasks/upgrades/3.9/migrate_sync_plans.rake +29 -0
- data/lib/katello/version.rb +1 -1
- data/package.json +11 -7
- data/webpack/__mocks__/foremanReact/common/I18n.js +5 -0
- data/webpack/components/MultiSelect/index.js +15 -3
- data/webpack/components/PaginationRow/index.js +1 -1
- data/webpack/components/Search/__snapshots__/Search.test.js.snap +1 -0
- data/webpack/components/Search/index.js +5 -1
- data/webpack/components/SelectOrg/SetOrganization.js +2 -1
- data/webpack/components/WithOrganization/__snapshots__/withOrganization.test.js.snap +41 -0
- data/webpack/components/WithOrganization/withOrganization.js +42 -10
- data/webpack/components/WithOrganization/withOrganization.test.js +26 -0
- data/webpack/containers/Application/Headers.js +11 -0
- data/webpack/containers/Application/Routes.js +1 -1
- data/webpack/containers/Application/config.js +23 -7
- data/webpack/containers/Application/withHeaders.js +15 -0
- data/webpack/move_to_foreman/common/helpers.js +72 -8
- data/webpack/move_to_foreman/components/common/ConfirmDialog/ConfirmDialog.js +1 -0
- data/webpack/move_to_foreman/components/common/Dialog/Dialog.js +1 -0
- data/webpack/move_to_foreman/components/common/EmptyState/index.js +1 -0
- data/webpack/move_to_foreman/components/common/ModalProgressBar/ModalProgressBar.js +1 -1
- data/webpack/move_to_foreman/components/common/table/formatters/selectionCellFormatter.js +1 -0
- data/webpack/move_to_pf/OptionTooltip/OptionTooltip.scss +20 -0
- data/webpack/move_to_pf/OptionTooltip/__tests__/OptionTooltip.test.js +32 -0
- data/webpack/move_to_pf/OptionTooltip/__tests__/__snapshots__/OptionTooltip.test.js.snap +84 -0
- data/webpack/move_to_pf/OptionTooltip/index.js +83 -0
- data/webpack/move_to_pf/TypeAhead/TypeAhead.js +15 -2
- data/webpack/move_to_pf/react-bootstrap-select/index.js +10 -4
- data/webpack/move_to_pf/test-utils/testHelpers.js +14 -2
- data/webpack/redux/actions/RedHatRepositories/enabled.js +29 -3
- data/webpack/redux/actions/RedHatRepositories/helpers.js +1 -1
- data/webpack/redux/actions/RedHatRepositories/repositorySetRepositories.js +27 -0
- data/webpack/redux/consts.js +8 -0
- data/webpack/redux/reducers/RedHatRepositories/__tests__/enabled.test.js +62 -0
- data/webpack/redux/reducers/RedHatRepositories/{repositorySetRepositories.test.js → __tests__/repositorySetRepositories.test.js} +31 -3
- data/webpack/redux/reducers/RedHatRepositories/{sets.test.js → __tests__/sets.test.js} +3 -3
- data/webpack/redux/reducers/RedHatRepositories/enabled.fixtures.js +16 -0
- data/webpack/redux/reducers/RedHatRepositories/enabled.js +34 -18
- data/webpack/redux/reducers/RedHatRepositories/repositorySetRepositories.fixtures.js +10 -0
- data/webpack/redux/reducers/RedHatRepositories/repositorySetRepositories.js +39 -48
- data/webpack/redux/reducers/index.js +6 -0
- data/webpack/scenes/ModuleStreams/Details/ModuleStreamDetailArtifacts.js +19 -0
- data/webpack/scenes/ModuleStreams/Details/ModuleStreamDetailInfo.js +51 -0
- data/webpack/scenes/ModuleStreams/Details/ModuleStreamDetails.js +147 -0
- data/webpack/scenes/ModuleStreams/Details/ModuleStreamDetailsActions.js +25 -0
- data/webpack/scenes/ModuleStreams/Details/ModuleStreamDetailsConstants.js +3 -0
- data/webpack/scenes/ModuleStreams/Details/ModuleStreamDetailsReducer.js +33 -0
- data/webpack/scenes/ModuleStreams/Details/Profiles/ModuleStreamDetailProfiles.js +19 -0
- data/webpack/scenes/ModuleStreams/Details/Profiles/ProfileRpmsCellFormatter.js +53 -0
- data/webpack/scenes/ModuleStreams/Details/Profiles/ProfileRpmsCellFormatter.scss +4 -0
- data/webpack/scenes/ModuleStreams/Details/Profiles/TableSchema.js +35 -0
- data/webpack/scenes/ModuleStreams/Details/Profiles/__tests__/ModuleStreamDetailProfiles.test.js +14 -0
- data/webpack/scenes/ModuleStreams/Details/Profiles/__tests__/ProfileRpmsCellFormatter.test.js +24 -0
- data/webpack/scenes/ModuleStreams/Details/Profiles/__tests__/__snapshots__/ModuleStreamDetailProfiles.test.js.snap +126 -0
- data/webpack/scenes/ModuleStreams/Details/Profiles/__tests__/__snapshots__/ProfileRpmsCellFormatter.test.js.snap +14 -0
- data/webpack/scenes/ModuleStreams/Details/Repositories/ModuleStreamDetailRepositories.js +19 -0
- data/webpack/scenes/ModuleStreams/Details/Repositories/TableSchema.js +39 -0
- data/webpack/scenes/ModuleStreams/Details/Repositories/__tests__/ModuleStreamDetailRepositories.test.js +14 -0
- data/webpack/scenes/ModuleStreams/Details/Repositories/__tests__/__snapshots__/ModuleStreamDetailRepositories.test.js.snap +70 -0
- data/webpack/scenes/ModuleStreams/Details/__tests__/ModuleStreamDetailArtifacts.test.js +14 -0
- data/webpack/scenes/ModuleStreams/Details/__tests__/ModuleStreamDetailInfo.test.js +14 -0
- data/webpack/scenes/ModuleStreams/Details/__tests__/ModuleStreamDetails.test.js +27 -0
- data/webpack/scenes/ModuleStreams/Details/__tests__/ModuleStreamDetailsActions.test.js +42 -0
- data/webpack/scenes/ModuleStreams/Details/__tests__/ModuleStreamDetailsReducer.test.js +33 -0
- data/webpack/scenes/ModuleStreams/Details/__tests__/__snapshots__/ModuleStreamDetailArtifacts.test.js.snap +18 -0
- data/webpack/scenes/ModuleStreams/Details/__tests__/__snapshots__/ModuleStreamDetailInfo.test.js.snap +111 -0
- data/webpack/scenes/ModuleStreams/Details/__tests__/__snapshots__/ModuleStreamDetails.test.js.snap +552 -0
- data/webpack/scenes/ModuleStreams/Details/__tests__/__snapshots__/ModuleStreamDetailsActions.test.js.snap +144 -0
- data/webpack/scenes/ModuleStreams/Details/__tests__/__snapshots__/ModuleStreamDetailsReducer.test.js.snap +50 -0
- data/webpack/scenes/ModuleStreams/Details/__tests__/moduleStreamDetails.fixtures.js +115 -0
- data/webpack/scenes/ModuleStreams/Details/index.js +17 -0
- data/webpack/scenes/ModuleStreams/ModuleStreamsActions.js +29 -0
- data/webpack/scenes/ModuleStreams/ModuleStreamsConstants.js +3 -0
- data/webpack/scenes/ModuleStreams/ModuleStreamsPage.js +98 -0
- data/webpack/scenes/ModuleStreams/ModuleStreamsReducer.js +43 -0
- data/webpack/scenes/ModuleStreams/ModuleStreamsTable.js +38 -0
- data/webpack/scenes/ModuleStreams/ModuleStreamsTableSchema.js +69 -0
- data/webpack/scenes/ModuleStreams/__tests__/ModuleStreamPage.test.js +27 -0
- data/webpack/scenes/ModuleStreams/__tests__/ModuleStreamsActions.test.js +49 -0
- data/webpack/scenes/ModuleStreams/__tests__/ModuleStreamsReducer.test.js +46 -0
- data/webpack/scenes/ModuleStreams/__tests__/ModuleStreamsTable.test.js +25 -0
- data/webpack/scenes/ModuleStreams/__tests__/__snapshots__/ModuleStreamPage.test.js.snap +69 -0
- data/webpack/scenes/ModuleStreams/__tests__/__snapshots__/ModuleStreamsTable.test.js.snap +95 -0
- data/webpack/scenes/ModuleStreams/__tests__/moduleStreams.fixtures.js +72 -0
- data/webpack/scenes/ModuleStreams/index.js +17 -0
- data/webpack/scenes/RedHatRepositories/components/EnabledRepository/EnabledRepository.js +120 -0
- data/webpack/scenes/RedHatRepositories/components/{EnabledRepository.stories.js → EnabledRepository/EnabledRepository.stories.js} +0 -0
- data/webpack/scenes/RedHatRepositories/components/{EnabledRepositoryContent.js → EnabledRepository/EnabledRepositoryContent.js} +0 -0
- data/webpack/scenes/RedHatRepositories/components/{__tests__ → EnabledRepository/__tests__}/EnabledRepository.test.js +6 -2
- data/webpack/scenes/RedHatRepositories/components/{__tests__ → EnabledRepository/__tests__}/EnabledRepositoryContent.test.js +0 -0
- data/webpack/scenes/RedHatRepositories/components/EnabledRepository/__tests__/__snapshots__/EnabledRepository.test.js.snap +31 -0
- data/webpack/scenes/RedHatRepositories/components/{__tests__ → EnabledRepository/__tests__}/__snapshots__/EnabledRepositoryContent.test.js.snap +0 -0
- data/webpack/scenes/RedHatRepositories/components/EnabledRepository/index.js +17 -0
- data/webpack/scenes/RedHatRepositories/components/RepositorySet.js +1 -1
- data/webpack/scenes/RedHatRepositories/components/RepositorySetRepositories.js +43 -5
- data/webpack/scenes/RedHatRepositories/components/RepositorySetRepositoriesHelpers.js +3 -0
- data/webpack/scenes/RedHatRepositories/components/RepositorySetRepository/RepositorySetRepository.js +168 -0
- data/webpack/scenes/RedHatRepositories/components/RepositorySetRepository/__test__/RepositorySetRepository.test.js +38 -0
- data/webpack/scenes/RedHatRepositories/components/RepositorySetRepository/__test__/__snapshots__/RepositorySetRepository.test.js.snap +70 -0
- data/webpack/scenes/RedHatRepositories/components/RepositorySetRepository/index.js +18 -0
- data/webpack/scenes/RedHatRepositories/components/SearchBar.js +4 -3
- data/webpack/scenes/RedHatRepositories/components/__tests__/RepositorySetRepositories.test.js +44 -0
- data/webpack/scenes/RedHatRepositories/components/__tests__/__snapshots__/RepositorySetRepositories.test.js.snap +48 -0
- data/webpack/scenes/RedHatRepositories/helpers.js +19 -15
- data/webpack/scenes/RedHatRepositories/index.js +1 -3
- data/webpack/scenes/RedHatRepositories/index.scss +16 -0
- data/webpack/scenes/Settings/Tables/TableActions.js +73 -0
- data/webpack/scenes/Settings/Tables/TableConstants.js +11 -0
- data/webpack/scenes/Settings/Tables/TableHelpers.js +8 -0
- data/webpack/scenes/Settings/Tables/TableReducer.js +46 -0
- data/webpack/scenes/Settings/Tables/__tests__/Table.fixtures.js +125 -0
- data/webpack/scenes/Settings/Tables/__tests__/TableActions.test.js +84 -0
- data/webpack/scenes/Settings/Tables/__tests__/TableReducer.test.js +41 -0
- data/webpack/scenes/Settings/Tables/__tests__/__snapshots__/TableReducer.test.js.snap +76 -0
- data/webpack/scenes/Settings/index.js +4 -0
- data/webpack/scenes/Subscriptions/Details/SubscriptionAttributes.js +2 -0
- data/webpack/scenes/Subscriptions/Details/SubscriptionDetailActions.js +1 -1
- data/webpack/scenes/Subscriptions/Details/SubscriptionDetailAssociations.js +1 -0
- data/webpack/scenes/Subscriptions/Details/SubscriptionDetailInfo.js +1 -0
- data/webpack/scenes/Subscriptions/Details/SubscriptionDetailProduct.js +20 -13
- data/webpack/scenes/Subscriptions/Details/{SubscriptionDetailEnabledProducts.js → SubscriptionDetailProductContent.js} +5 -5
- data/webpack/scenes/Subscriptions/Details/SubscriptionDetailReducer.js +3 -3
- data/webpack/scenes/Subscriptions/Details/SubscriptionDetails.js +7 -6
- data/webpack/scenes/Subscriptions/Details/__tests__/{SubscriptionDetailEnabledProducts.test.js → SubscriptionDetailProductContent.test.js} +4 -4
- data/webpack/scenes/Subscriptions/Details/__tests__/SubscriptionDetails.test.js +2 -2
- data/webpack/scenes/Subscriptions/Details/__tests__/__snapshots__/SubscriptionDetailProduct.test.js.snap +28 -16
- data/webpack/scenes/Subscriptions/Details/__tests__/__snapshots__/{SubscriptionDetailEnabledProducts.test.js.snap → SubscriptionDetailProductContent.test.js.snap} +1 -1
- data/webpack/scenes/Subscriptions/Details/__tests__/__snapshots__/SubscriptionDetails.test.js.snap +16 -16
- data/webpack/scenes/Subscriptions/Details/__tests__/subscriptionDetails.fixtures.js +1 -1
- data/webpack/scenes/Subscriptions/Manifest/DeleteManifestModalText.js +2 -0
- data/webpack/scenes/Subscriptions/Manifest/ManageManifestModal.js +38 -61
- data/webpack/scenes/Subscriptions/Manifest/ManifestHistoryReducer.js +4 -0
- data/webpack/scenes/Subscriptions/Manifest/ManifestHistoryTableSchema.js +1 -0
- data/webpack/scenes/Subscriptions/Manifest/__tests__/ManageManifestModal.test.js +3 -3
- data/webpack/scenes/Subscriptions/Manifest/__tests__/__snapshots__/ManageManifestModal.test.js.snap +12 -3
- data/webpack/scenes/Subscriptions/SubscriptionActions.js +26 -0
- data/webpack/scenes/Subscriptions/SubscriptionConstants.js +56 -0
- data/webpack/scenes/Subscriptions/SubscriptionReducer.js +26 -11
- data/webpack/scenes/Subscriptions/SubscriptionValidations.js +1 -0
- data/webpack/scenes/Subscriptions/SubscriptionsPage.js +144 -39
- data/webpack/scenes/Subscriptions/SubscriptionsPage.scss +7 -0
- data/webpack/scenes/Subscriptions/UpstreamSubscriptions/UpstreamSubscriptionsPage.js +10 -16
- data/webpack/scenes/Subscriptions/UpstreamSubscriptions/UpstreamSubscriptionsTableSchema.js +1 -0
- data/webpack/scenes/Subscriptions/UpstreamSubscriptions/__tests__/UpstreamSubscriptionsPage.test.js +1 -1
- data/webpack/scenes/Subscriptions/__tests__/SubscriptionsActions.test.js +11 -1
- data/webpack/scenes/Subscriptions/__tests__/SubscriptionsPage.test.js +15 -2
- data/webpack/scenes/Subscriptions/__tests__/SubscriptionsReducer.test.js +12 -0
- data/webpack/scenes/Subscriptions/__tests__/__snapshots__/SubscriptionsPage.test.js.snap +19 -0
- data/webpack/scenes/Subscriptions/__tests__/subscriptions.fixtures.js +87 -0
- data/webpack/scenes/Subscriptions/components/SubscriptionsTable/EntitlementsInlineEditFormatter.js +1 -1
- data/webpack/scenes/Subscriptions/components/SubscriptionsTable/SubscriptionTypeFormatter.js +31 -0
- data/webpack/scenes/Subscriptions/components/SubscriptionsTable/SubscriptionsTable.js +16 -11
- data/webpack/scenes/Subscriptions/components/SubscriptionsTable/SubscriptionsTableSchema.js +18 -3
- data/webpack/scenes/Subscriptions/components/SubscriptionsTable/__tests__/SubscriptionTypeFormatter.test.js +33 -0
- data/webpack/scenes/Subscriptions/components/SubscriptionsTable/__tests__/SubscriptionsTable.test.js +29 -0
- data/webpack/scenes/Subscriptions/components/SubscriptionsTable/__tests__/__snapshots__/SubscriptionTypeFormatter.test.js.snap +34 -0
- data/webpack/scenes/Subscriptions/components/SubscriptionsTable/__tests__/__snapshots__/SubscriptionsTable.test.js.snap +24 -43
- data/webpack/scenes/Subscriptions/index.js +24 -7
- data/webpack/scenes/Tasks/TaskActions.js +43 -19
- data/webpack/scenes/Tasks/TaskConstants.js +1 -0
- data/webpack/scenes/Tasks/__tests__/TaskActions.test.js +15 -12
- data/webpack/scenes/Tasks/helpers.js +17 -27
- data/webpack/services/api/index.js +3 -0
- metadata +160 -52
- data/app/lib/actions/katello/repository/scheduled_sync.rb +0 -15
- data/app/lib/actions/katello/sync_plan/add_products.rb +0 -27
- data/app/lib/actions/katello/sync_plan/destroy.rb +0 -26
- data/app/lib/actions/katello/sync_plan/remove_products.rb +0 -23
- data/app/lib/actions/katello/sync_plan/update.rb +0 -20
- data/app/lib/actions/pulp/repos/update.rb +0 -24
- data/app/lib/actions/pulp/repository/ensure_sync_notification.rb +0 -11
- data/app/lib/actions/pulp/repository/remove_schedule.rb +0 -16
- data/app/lib/actions/pulp/repository/update_schedule.rb +0 -47
- data/app/lib/katello/validators/repository_unique_attribute_validator.rb +0 -13
- data/app/models/katello/candlepin/docker_repository_mapper.rb +0 -77
- data/app/models/katello/input_template_renderer.rb +0 -7
- data/lib/katello/tasks/upgrades/2.4/import_distributions.rake +0 -11
- data/lib/katello/tasks/upgrades/2.4/import_package_groups.rake +0 -11
- data/lib/katello/tasks/upgrades/2.4/import_puppet_modules.rake +0 -12
- data/lib/katello/tasks/upgrades/2.4/import_rpms.rake +0 -12
- data/lib/katello/tasks/upgrades/3.0/add_export_distributor.rake +0 -14
- data/lib/katello/tasks/upgrades/3.0/delete_docker_v1_content.rake +0 -27
- data/lib/katello/tasks/upgrades/3.0/update_puppet_repository_distributors.rake +0 -20
- data/lib/katello/tasks/upgrades/3.0/update_subscription_facet_backend_data.rake +0 -9
- data/lib/katello/tasks/upgrades/3.3/hypervisors.rake +0 -7
- data/lib/katello/tasks/upgrades/3.4/reindex_docker_tags.rake +0 -12
- data/lib/katello/tasks/upgrades/3.4/remove_unused_products.rake +0 -28
- data/lib/katello/tasks/upgrades/3.6/import_backend_consumer_attributes.rake +0 -32
- data/lib/katello/tasks/upgrades/3.6/import_product_content.rake +0 -12
- data/lib/katello/tasks/upgrades/3.6/republish_file_repos.rake +0 -16
- data/lib/katello/tasks/upgrades/3.7/import_pools.rake +0 -12
- data/lib/katello/tasks/upgrades/3.7/make_all_ks_repos_bootable.rake +0 -11
- data/webpack/helpers/caret.js +0 -6
- data/webpack/redux/reducers/RedHatRepositories/enabled.test.js +0 -36
- data/webpack/redux/reducers/RedHatRepositories/filters.fixtures.js +0 -5
- data/webpack/scenes/RedHatRepositories/components/EnabledRepository.js +0 -105
- data/webpack/scenes/RedHatRepositories/components/RepositorySetRepository.js +0 -129
- data/webpack/scenes/RedHatRepositories/components/__tests__/__snapshots__/EnabledRepository.test.js.snap +0 -25
@@ -0,0 +1,14 @@
|
|
1
|
+
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
2
|
+
|
3
|
+
exports[`ProfileRpmCellFormatter should render and expand on click 1`] = `
|
4
|
+
<td>
|
5
|
+
<Icon
|
6
|
+
className="expand-profile-rpms"
|
7
|
+
name="angle-right"
|
8
|
+
onClick={[Function]}
|
9
|
+
type="fa"
|
10
|
+
/>
|
11
|
+
perl, foo, rpm_0, rpm_1, rpm_2, rpm_3, rpm_4, rpm_5, rpm_6, rpm_7
|
12
|
+
, ...
|
13
|
+
</td>
|
14
|
+
`;
|
@@ -0,0 +1,19 @@
|
|
1
|
+
import React from 'react';
|
2
|
+
import PropTypes from 'prop-types';
|
3
|
+
import { Table } from 'patternfly-react';
|
4
|
+
import TableSchema from './TableSchema';
|
5
|
+
|
6
|
+
const ModuleStreamDetailRepositories = ({ repositories }) => (
|
7
|
+
<div>
|
8
|
+
<Table.PfProvider columns={TableSchema}>
|
9
|
+
<Table.Header />
|
10
|
+
<Table.Body rows={repositories} rowKey="id" />
|
11
|
+
</Table.PfProvider>
|
12
|
+
</div>
|
13
|
+
);
|
14
|
+
|
15
|
+
ModuleStreamDetailRepositories.propTypes = {
|
16
|
+
repositories: PropTypes.arrayOf(PropTypes.shape({})).isRequired,
|
17
|
+
};
|
18
|
+
|
19
|
+
export default ModuleStreamDetailRepositories;
|
@@ -0,0 +1,39 @@
|
|
1
|
+
import React from 'react';
|
2
|
+
import {
|
3
|
+
headerFormatter,
|
4
|
+
cellFormatter,
|
5
|
+
} from '../../../../move_to_foreman/components/common/table';
|
6
|
+
import helpers from '../../../../move_to_foreman/common/helpers';
|
7
|
+
|
8
|
+
const TableSchema = [
|
9
|
+
{
|
10
|
+
property: 'name',
|
11
|
+
header: {
|
12
|
+
label: __('Name'),
|
13
|
+
formatters: [headerFormatter],
|
14
|
+
},
|
15
|
+
cell: {
|
16
|
+
formatters: [
|
17
|
+
(value, { rowData }) => (
|
18
|
+
<td>
|
19
|
+
<a href={helpers.urlBuilder(`products/${rowData.product_id}/repositories`, '', rowData.id)}>
|
20
|
+
{rowData.name}
|
21
|
+
</a>
|
22
|
+
</td>
|
23
|
+
),
|
24
|
+
],
|
25
|
+
},
|
26
|
+
},
|
27
|
+
{
|
28
|
+
property: 'product_name',
|
29
|
+
header: {
|
30
|
+
label: __('Product'),
|
31
|
+
formatters: [headerFormatter],
|
32
|
+
},
|
33
|
+
cell: {
|
34
|
+
formatters: [cellFormatter],
|
35
|
+
},
|
36
|
+
},
|
37
|
+
];
|
38
|
+
|
39
|
+
export default TableSchema;
|
@@ -0,0 +1,14 @@
|
|
1
|
+
import ModuleStreamDetailRepositories from '../ModuleStreamDetailRepositories';
|
2
|
+
import { testComponentSnapshotsWithFixtures } from '../../../../../move_to_pf/test-utils/testHelpers';
|
3
|
+
import { details } from '../../__tests__/moduleStreamDetails.fixtures';
|
4
|
+
|
5
|
+
const fixtures = {
|
6
|
+
'renders with repositories': {
|
7
|
+
repositories: details.repositories,
|
8
|
+
},
|
9
|
+
};
|
10
|
+
|
11
|
+
describe('Module stream detail repositories component', () => {
|
12
|
+
describe('rendering', () =>
|
13
|
+
testComponentSnapshotsWithFixtures(ModuleStreamDetailRepositories, fixtures));
|
14
|
+
});
|
@@ -0,0 +1,70 @@
|
|
1
|
+
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
2
|
+
|
3
|
+
exports[`Module stream detail repositories component rendering renders with repositories 1`] = `
|
4
|
+
<div>
|
5
|
+
<TablePfProvider
|
6
|
+
bordered={false}
|
7
|
+
className=""
|
8
|
+
columns={
|
9
|
+
Array [
|
10
|
+
Object {
|
11
|
+
"cell": Object {
|
12
|
+
"formatters": Array [
|
13
|
+
[Function],
|
14
|
+
],
|
15
|
+
},
|
16
|
+
"header": Object {
|
17
|
+
"formatters": Array [
|
18
|
+
[Function],
|
19
|
+
],
|
20
|
+
"label": "Name",
|
21
|
+
},
|
22
|
+
"property": "name",
|
23
|
+
},
|
24
|
+
Object {
|
25
|
+
"cell": Object {
|
26
|
+
"formatters": Array [
|
27
|
+
[Function],
|
28
|
+
],
|
29
|
+
},
|
30
|
+
"header": Object {
|
31
|
+
"formatters": Array [
|
32
|
+
[Function],
|
33
|
+
],
|
34
|
+
"label": "Product",
|
35
|
+
},
|
36
|
+
"property": "product_name",
|
37
|
+
},
|
38
|
+
]
|
39
|
+
}
|
40
|
+
components={Object {}}
|
41
|
+
condensed={false}
|
42
|
+
dataTable={false}
|
43
|
+
hover={false}
|
44
|
+
inlineEdit={false}
|
45
|
+
striped={false}
|
46
|
+
>
|
47
|
+
<Header />
|
48
|
+
<Body
|
49
|
+
onRow={[Function]}
|
50
|
+
rowKey="id"
|
51
|
+
rows={
|
52
|
+
Array [
|
53
|
+
Object {
|
54
|
+
"id": 1,
|
55
|
+
"name": "rawhide_wtih_modules",
|
56
|
+
"product_id": 1,
|
57
|
+
"product_name": "fedora",
|
58
|
+
},
|
59
|
+
Object {
|
60
|
+
"id": 4,
|
61
|
+
"name": "rawhide_wtih_modules_dup",
|
62
|
+
"product_id": 1,
|
63
|
+
"product_name": "fedora",
|
64
|
+
},
|
65
|
+
]
|
66
|
+
}
|
67
|
+
/>
|
68
|
+
</TablePfProvider>
|
69
|
+
</div>
|
70
|
+
`;
|
@@ -0,0 +1,14 @@
|
|
1
|
+
import ModuleStreamDetailArtifacts from '../ModuleStreamDetailArtifacts';
|
2
|
+
import { testComponentSnapshotsWithFixtures } from '../../../../move_to_pf/test-utils/testHelpers';
|
3
|
+
import { details } from './moduleStreamDetails.fixtures';
|
4
|
+
|
5
|
+
const fixtures = {
|
6
|
+
'renders with artifacts': {
|
7
|
+
artifacts: details.artifacts,
|
8
|
+
},
|
9
|
+
};
|
10
|
+
|
11
|
+
describe('Module stream detail artifacts component', () => {
|
12
|
+
describe('rendering', () =>
|
13
|
+
testComponentSnapshotsWithFixtures(ModuleStreamDetailArtifacts, fixtures));
|
14
|
+
});
|
@@ -0,0 +1,14 @@
|
|
1
|
+
import ModuleStreamDetailInfo from '../ModuleStreamDetailInfo';
|
2
|
+
import { testComponentSnapshotsWithFixtures } from '../../../../move_to_pf/test-utils/testHelpers';
|
3
|
+
import { details } from './moduleStreamDetails.fixtures';
|
4
|
+
|
5
|
+
const fixtures = {
|
6
|
+
'renders with module stream info': {
|
7
|
+
moduleStreamDetails: details,
|
8
|
+
},
|
9
|
+
};
|
10
|
+
|
11
|
+
describe('Module stream detail info component', () => {
|
12
|
+
describe('rendering', () =>
|
13
|
+
testComponentSnapshotsWithFixtures(ModuleStreamDetailInfo, fixtures));
|
14
|
+
});
|
@@ -0,0 +1,27 @@
|
|
1
|
+
import ModuleStreamDetails from '../ModuleStreamDetails';
|
2
|
+
import { testComponentSnapshotsWithFixtures } from '../../../../move_to_pf/test-utils/testHelpers';
|
3
|
+
import { details, loadingState } from './moduleStreamDetails.fixtures';
|
4
|
+
|
5
|
+
const mockFunc = jest.fn();
|
6
|
+
|
7
|
+
const baseProps = {
|
8
|
+
loadModuleStreamDetails: mockFunc,
|
9
|
+
location: { search: '' },
|
10
|
+
history: { push: mockFunc },
|
11
|
+
moduleStreamDetails: details,
|
12
|
+
match: { params: { id: String(details.id) } },
|
13
|
+
};
|
14
|
+
|
15
|
+
const fixtures = {
|
16
|
+
'renders with module stream provided': {
|
17
|
+
...baseProps,
|
18
|
+
},
|
19
|
+
'renders with loading state': {
|
20
|
+
...baseProps,
|
21
|
+
moduleStreamDetails: loadingState,
|
22
|
+
},
|
23
|
+
};
|
24
|
+
|
25
|
+
describe('Module stream details page', () => {
|
26
|
+
describe('rendering', () => testComponentSnapshotsWithFixtures(ModuleStreamDetails, fixtures));
|
27
|
+
});
|
@@ -0,0 +1,42 @@
|
|
1
|
+
import { testActionSnapshotWithFixtures } from '../../../../move_to_pf/test-utils/testHelpers';
|
2
|
+
import api from '../../../../services/api';
|
3
|
+
import { apiError } from '../../../../move_to_foreman/common/helpers';
|
4
|
+
import { loadModuleStreamDetails } from '../ModuleStreamDetailsActions';
|
5
|
+
import { details } from './moduleStreamDetails.fixtures';
|
6
|
+
|
7
|
+
jest.mock('../../../../services/api');
|
8
|
+
jest.mock('../../../../move_to_foreman/common/helpers');
|
9
|
+
|
10
|
+
const fixtures = {
|
11
|
+
'should load module stream details on success': {
|
12
|
+
action: () => loadModuleStreamDetails('1'),
|
13
|
+
test: () => {
|
14
|
+
expect(api.get.mock.calls).toMatchSnapshot();
|
15
|
+
expect(apiError).not.toHaveBeenCalled();
|
16
|
+
},
|
17
|
+
},
|
18
|
+
'should load fail on bad api call': () => (dispatch) => {
|
19
|
+
api.get.mockImplementation(async () => {
|
20
|
+
throw new Error('some-error');
|
21
|
+
});
|
22
|
+
|
23
|
+
return loadModuleStreamDetails('1')(dispatch);
|
24
|
+
},
|
25
|
+
};
|
26
|
+
|
27
|
+
describe('Module stream details actions', () => {
|
28
|
+
beforeEach(() => {
|
29
|
+
api.get.mockImplementation(async () => ({
|
30
|
+
data: {
|
31
|
+
results: details,
|
32
|
+
},
|
33
|
+
}));
|
34
|
+
});
|
35
|
+
afterEach(() => {
|
36
|
+
jest.resetAllMocks();
|
37
|
+
jest.restoreAllMocks();
|
38
|
+
jest.resetModules();
|
39
|
+
});
|
40
|
+
|
41
|
+
testActionSnapshotWithFixtures(fixtures);
|
42
|
+
});
|
@@ -0,0 +1,33 @@
|
|
1
|
+
import { testReducerSnapshotWithFixtures } from '../../../../move_to_pf/test-utils/testHelpers';
|
2
|
+
import reducer from '../ModuleStreamDetailsReducer';
|
3
|
+
import {
|
4
|
+
MODULE_STREAM_DETAILS_REQUEST,
|
5
|
+
MODULE_STREAM_DETAILS_SUCCESS,
|
6
|
+
MODULE_STREAM_DETAILS_FAILURE,
|
7
|
+
} from '../ModuleStreamDetailsConstants';
|
8
|
+
|
9
|
+
const fixtures = {
|
10
|
+
'should return the initial state': {},
|
11
|
+
'should handle MODULE_STREAM_DETAILS_REQUEST': {
|
12
|
+
action: {
|
13
|
+
type: MODULE_STREAM_DETAILS_REQUEST,
|
14
|
+
},
|
15
|
+
},
|
16
|
+
'should handle MODULE_STREAM_DETAILS_SUCCESS': {
|
17
|
+
action: {
|
18
|
+
type: MODULE_STREAM_DETAILS_SUCCESS,
|
19
|
+
payload: {
|
20
|
+
results: { data: { id: 1 } },
|
21
|
+
},
|
22
|
+
},
|
23
|
+
},
|
24
|
+
'should handle MODULE_STREAM_DETAILS_FAILURE': {
|
25
|
+
action: {
|
26
|
+
type: MODULE_STREAM_DETAILS_FAILURE,
|
27
|
+
payload: new Error('things have gone terribly wrong'),
|
28
|
+
},
|
29
|
+
},
|
30
|
+
};
|
31
|
+
|
32
|
+
describe('ModuleStreamDetails reducer', () =>
|
33
|
+
testReducerSnapshotWithFixtures(reducer, fixtures));
|
@@ -0,0 +1,18 @@
|
|
1
|
+
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
2
|
+
|
3
|
+
exports[`Module stream detail artifacts component rendering renders with artifacts 1`] = `
|
4
|
+
<div>
|
5
|
+
<ul>
|
6
|
+
<li
|
7
|
+
key="208"
|
8
|
+
>
|
9
|
+
python3-avocado-plugins-varianter-yaml-to-mux-0:63.0-2.module_2037+1b0ad681.noarch
|
10
|
+
</li>
|
11
|
+
<li
|
12
|
+
key="207"
|
13
|
+
>
|
14
|
+
python3-avocado-plugins-varianter-pict-0:63.0-2.module_2037+1b0ad681.noarch
|
15
|
+
</li>
|
16
|
+
</ul>
|
17
|
+
</div>
|
18
|
+
`;
|
@@ -0,0 +1,111 @@
|
|
1
|
+
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
2
|
+
|
3
|
+
exports[`Module stream detail info component rendering renders with module stream info 1`] = `
|
4
|
+
<Table
|
5
|
+
bordered={false}
|
6
|
+
bsClass="table"
|
7
|
+
condensed={false}
|
8
|
+
hover={false}
|
9
|
+
responsive={false}
|
10
|
+
striped={false}
|
11
|
+
>
|
12
|
+
<tbody>
|
13
|
+
<tr
|
14
|
+
key="name"
|
15
|
+
>
|
16
|
+
<td>
|
17
|
+
<b>
|
18
|
+
Name
|
19
|
+
</b>
|
20
|
+
</td>
|
21
|
+
<td>
|
22
|
+
avocado
|
23
|
+
</td>
|
24
|
+
</tr>
|
25
|
+
<tr
|
26
|
+
key="summary"
|
27
|
+
>
|
28
|
+
<td>
|
29
|
+
<b>
|
30
|
+
Summary
|
31
|
+
</b>
|
32
|
+
</td>
|
33
|
+
<td>
|
34
|
+
Framework with tools and libraries for Automated Testing
|
35
|
+
</td>
|
36
|
+
</tr>
|
37
|
+
<tr
|
38
|
+
key="description"
|
39
|
+
>
|
40
|
+
<td>
|
41
|
+
<b>
|
42
|
+
Description
|
43
|
+
</b>
|
44
|
+
</td>
|
45
|
+
<td>
|
46
|
+
Avocado is a set of tools and libraries (what people call these days a framework) to perform automated testing.
|
47
|
+
</td>
|
48
|
+
</tr>
|
49
|
+
<tr
|
50
|
+
key="stream"
|
51
|
+
>
|
52
|
+
<td>
|
53
|
+
<b>
|
54
|
+
Stream
|
55
|
+
</b>
|
56
|
+
</td>
|
57
|
+
<td>
|
58
|
+
latest
|
59
|
+
</td>
|
60
|
+
</tr>
|
61
|
+
<tr
|
62
|
+
key="version"
|
63
|
+
>
|
64
|
+
<td>
|
65
|
+
<b>
|
66
|
+
Version
|
67
|
+
</b>
|
68
|
+
</td>
|
69
|
+
<td>
|
70
|
+
20180816135607
|
71
|
+
</td>
|
72
|
+
</tr>
|
73
|
+
<tr
|
74
|
+
key="arch"
|
75
|
+
>
|
76
|
+
<td>
|
77
|
+
<b>
|
78
|
+
Arch
|
79
|
+
</b>
|
80
|
+
</td>
|
81
|
+
<td>
|
82
|
+
x86_64
|
83
|
+
</td>
|
84
|
+
</tr>
|
85
|
+
<tr
|
86
|
+
key="context"
|
87
|
+
>
|
88
|
+
<td>
|
89
|
+
<b>
|
90
|
+
Context
|
91
|
+
</b>
|
92
|
+
</td>
|
93
|
+
<td>
|
94
|
+
a5b0195c
|
95
|
+
</td>
|
96
|
+
</tr>
|
97
|
+
<tr
|
98
|
+
key="uuid"
|
99
|
+
>
|
100
|
+
<td>
|
101
|
+
<b>
|
102
|
+
UUID
|
103
|
+
</b>
|
104
|
+
</td>
|
105
|
+
<td>
|
106
|
+
8ae7f190-0a48-41a2-93e0-7bc3e4734355
|
107
|
+
</td>
|
108
|
+
</tr>
|
109
|
+
</tbody>
|
110
|
+
</Table>
|
111
|
+
`;
|
data/webpack/scenes/ModuleStreams/Details/__tests__/__snapshots__/ModuleStreamDetails.test.js.snap
ADDED
@@ -0,0 +1,552 @@
|
|
1
|
+
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
2
|
+
|
3
|
+
exports[`Module stream details page rendering renders with loading state 1`] = `
|
4
|
+
<div>
|
5
|
+
<LoadingState
|
6
|
+
loading={true}
|
7
|
+
loadingText="Loading"
|
8
|
+
timeout={300}
|
9
|
+
>
|
10
|
+
<Uncontrolled(TabContainer)
|
11
|
+
defaultActiveKey={1}
|
12
|
+
id="module-stream-tabs-container"
|
13
|
+
>
|
14
|
+
<Grid
|
15
|
+
bsClass="container-fluid"
|
16
|
+
componentClass="div"
|
17
|
+
fluid={false}
|
18
|
+
>
|
19
|
+
<Row
|
20
|
+
bsClass="row"
|
21
|
+
componentClass="div"
|
22
|
+
>
|
23
|
+
<Col
|
24
|
+
bsClass="col"
|
25
|
+
componentClass="div"
|
26
|
+
sm={12}
|
27
|
+
>
|
28
|
+
<Nav
|
29
|
+
bsClass="nav nav-tabs"
|
30
|
+
justified={false}
|
31
|
+
pullLeft={false}
|
32
|
+
pullRight={false}
|
33
|
+
stacked={false}
|
34
|
+
>
|
35
|
+
<NavItem
|
36
|
+
active={false}
|
37
|
+
disabled={false}
|
38
|
+
eventKey={1}
|
39
|
+
>
|
40
|
+
<div>
|
41
|
+
Details
|
42
|
+
</div>
|
43
|
+
</NavItem>
|
44
|
+
<NavItem
|
45
|
+
active={false}
|
46
|
+
disabled={false}
|
47
|
+
eventKey={2}
|
48
|
+
>
|
49
|
+
<div>
|
50
|
+
Repositories
|
51
|
+
</div>
|
52
|
+
</NavItem>
|
53
|
+
<NavItem
|
54
|
+
active={false}
|
55
|
+
disabled={false}
|
56
|
+
eventKey={3}
|
57
|
+
>
|
58
|
+
<div>
|
59
|
+
Profiles
|
60
|
+
</div>
|
61
|
+
</NavItem>
|
62
|
+
<NavItem
|
63
|
+
active={false}
|
64
|
+
disabled={false}
|
65
|
+
eventKey={4}
|
66
|
+
>
|
67
|
+
<div>
|
68
|
+
Artifacts
|
69
|
+
</div>
|
70
|
+
</NavItem>
|
71
|
+
</Nav>
|
72
|
+
</Col>
|
73
|
+
</Row>
|
74
|
+
<TabContent
|
75
|
+
animation={false}
|
76
|
+
bsClass="tab"
|
77
|
+
componentClass="div"
|
78
|
+
mountOnEnter={false}
|
79
|
+
unmountOnExit={false}
|
80
|
+
>
|
81
|
+
<TabPane
|
82
|
+
bsClass="tab-pane"
|
83
|
+
eventKey={1}
|
84
|
+
>
|
85
|
+
<Row
|
86
|
+
bsClass="row"
|
87
|
+
componentClass="div"
|
88
|
+
>
|
89
|
+
<Col
|
90
|
+
bsClass="col"
|
91
|
+
componentClass="div"
|
92
|
+
sm={12}
|
93
|
+
>
|
94
|
+
<ModuleStreamDetailInfo
|
95
|
+
moduleStreamDetails={
|
96
|
+
Object {
|
97
|
+
"itemCount": 0,
|
98
|
+
"loading": true,
|
99
|
+
"pagination": Object {
|
100
|
+
"page": 0,
|
101
|
+
"perPage": 20,
|
102
|
+
},
|
103
|
+
"results": Array [],
|
104
|
+
}
|
105
|
+
}
|
106
|
+
/>
|
107
|
+
</Col>
|
108
|
+
</Row>
|
109
|
+
</TabPane>
|
110
|
+
<TabPane
|
111
|
+
bsClass="tab-pane"
|
112
|
+
eventKey={2}
|
113
|
+
>
|
114
|
+
<Row
|
115
|
+
bsClass="row"
|
116
|
+
componentClass="div"
|
117
|
+
>
|
118
|
+
<Col
|
119
|
+
bsClass="col"
|
120
|
+
componentClass="div"
|
121
|
+
sm={12}
|
122
|
+
>
|
123
|
+
No repositories to show
|
124
|
+
</Col>
|
125
|
+
</Row>
|
126
|
+
</TabPane>
|
127
|
+
<TabPane
|
128
|
+
bsClass="tab-pane"
|
129
|
+
eventKey={3}
|
130
|
+
>
|
131
|
+
<Row
|
132
|
+
bsClass="row"
|
133
|
+
componentClass="div"
|
134
|
+
>
|
135
|
+
<Col
|
136
|
+
bsClass="col"
|
137
|
+
componentClass="div"
|
138
|
+
sm={12}
|
139
|
+
>
|
140
|
+
No profiles to show
|
141
|
+
</Col>
|
142
|
+
</Row>
|
143
|
+
</TabPane>
|
144
|
+
<TabPane
|
145
|
+
bsClass="tab-pane"
|
146
|
+
eventKey={4}
|
147
|
+
>
|
148
|
+
<Row
|
149
|
+
bsClass="row"
|
150
|
+
componentClass="div"
|
151
|
+
>
|
152
|
+
<Col
|
153
|
+
bsClass="col"
|
154
|
+
componentClass="div"
|
155
|
+
sm={12}
|
156
|
+
>
|
157
|
+
No artifacts to show
|
158
|
+
</Col>
|
159
|
+
</Row>
|
160
|
+
</TabPane>
|
161
|
+
</TabContent>
|
162
|
+
</Grid>
|
163
|
+
</Uncontrolled(TabContainer)>
|
164
|
+
</LoadingState>
|
165
|
+
</div>
|
166
|
+
`;
|
167
|
+
|
168
|
+
exports[`Module stream details page rendering renders with module stream provided 1`] = `
|
169
|
+
<div>
|
170
|
+
<BreadcrumbsBar
|
171
|
+
data={
|
172
|
+
Object {
|
173
|
+
"breadcrumbItems": Array [
|
174
|
+
Object {
|
175
|
+
"caption": "Module Streams",
|
176
|
+
"onClick": [Function],
|
177
|
+
},
|
178
|
+
Object {
|
179
|
+
"caption": "avocado latest",
|
180
|
+
},
|
181
|
+
],
|
182
|
+
"isSwitchable": true,
|
183
|
+
"resource": Object {
|
184
|
+
"nameField": "name",
|
185
|
+
"resourceUrl": "/katello/api/v2/module_streams",
|
186
|
+
"switcherItemUrl": "/module_streams/:id",
|
187
|
+
},
|
188
|
+
}
|
189
|
+
}
|
190
|
+
onSwitcherItemClick={[Function]}
|
191
|
+
/>
|
192
|
+
<LoadingState
|
193
|
+
loading={false}
|
194
|
+
loadingText="Loading"
|
195
|
+
timeout={300}
|
196
|
+
>
|
197
|
+
<Uncontrolled(TabContainer)
|
198
|
+
defaultActiveKey={1}
|
199
|
+
id="module-stream-tabs-container"
|
200
|
+
>
|
201
|
+
<Grid
|
202
|
+
bsClass="container-fluid"
|
203
|
+
componentClass="div"
|
204
|
+
fluid={false}
|
205
|
+
>
|
206
|
+
<Row
|
207
|
+
bsClass="row"
|
208
|
+
componentClass="div"
|
209
|
+
>
|
210
|
+
<Col
|
211
|
+
bsClass="col"
|
212
|
+
componentClass="div"
|
213
|
+
sm={12}
|
214
|
+
>
|
215
|
+
<Nav
|
216
|
+
bsClass="nav nav-tabs"
|
217
|
+
justified={false}
|
218
|
+
pullLeft={false}
|
219
|
+
pullRight={false}
|
220
|
+
stacked={false}
|
221
|
+
>
|
222
|
+
<NavItem
|
223
|
+
active={false}
|
224
|
+
disabled={false}
|
225
|
+
eventKey={1}
|
226
|
+
>
|
227
|
+
<div>
|
228
|
+
Details
|
229
|
+
</div>
|
230
|
+
</NavItem>
|
231
|
+
<NavItem
|
232
|
+
active={false}
|
233
|
+
disabled={false}
|
234
|
+
eventKey={2}
|
235
|
+
>
|
236
|
+
<div>
|
237
|
+
Repositories
|
238
|
+
</div>
|
239
|
+
</NavItem>
|
240
|
+
<NavItem
|
241
|
+
active={false}
|
242
|
+
disabled={false}
|
243
|
+
eventKey={3}
|
244
|
+
>
|
245
|
+
<div>
|
246
|
+
Profiles
|
247
|
+
</div>
|
248
|
+
</NavItem>
|
249
|
+
<NavItem
|
250
|
+
active={false}
|
251
|
+
disabled={false}
|
252
|
+
eventKey={4}
|
253
|
+
>
|
254
|
+
<div>
|
255
|
+
Artifacts
|
256
|
+
</div>
|
257
|
+
</NavItem>
|
258
|
+
</Nav>
|
259
|
+
</Col>
|
260
|
+
</Row>
|
261
|
+
<TabContent
|
262
|
+
animation={false}
|
263
|
+
bsClass="tab"
|
264
|
+
componentClass="div"
|
265
|
+
mountOnEnter={false}
|
266
|
+
unmountOnExit={false}
|
267
|
+
>
|
268
|
+
<TabPane
|
269
|
+
bsClass="tab-pane"
|
270
|
+
eventKey={1}
|
271
|
+
>
|
272
|
+
<Row
|
273
|
+
bsClass="row"
|
274
|
+
componentClass="div"
|
275
|
+
>
|
276
|
+
<Col
|
277
|
+
bsClass="col"
|
278
|
+
componentClass="div"
|
279
|
+
sm={12}
|
280
|
+
>
|
281
|
+
<ModuleStreamDetailInfo
|
282
|
+
moduleStreamDetails={
|
283
|
+
Object {
|
284
|
+
"arch": "x86_64",
|
285
|
+
"artifacts": Array [
|
286
|
+
Object {
|
287
|
+
"id": 208,
|
288
|
+
"name": "python3-avocado-plugins-varianter-yaml-to-mux-0:63.0-2.module_2037+1b0ad681.noarch",
|
289
|
+
},
|
290
|
+
Object {
|
291
|
+
"id": 207,
|
292
|
+
"name": "python3-avocado-plugins-varianter-pict-0:63.0-2.module_2037+1b0ad681.noarch",
|
293
|
+
},
|
294
|
+
],
|
295
|
+
"context": "a5b0195c",
|
296
|
+
"description": "Avocado is a set of tools and libraries (what people call these days a framework) to perform automated testing.",
|
297
|
+
"id": 22,
|
298
|
+
"name": "avocado",
|
299
|
+
"profiles": Array [
|
300
|
+
Object {
|
301
|
+
"id": 37,
|
302
|
+
"name": "default",
|
303
|
+
"rpms": Array [
|
304
|
+
Object {
|
305
|
+
"id": 108,
|
306
|
+
"name": "perl",
|
307
|
+
},
|
308
|
+
Object {
|
309
|
+
"id": 110,
|
310
|
+
"name": "foo",
|
311
|
+
},
|
312
|
+
Object {
|
313
|
+
"id": 111,
|
314
|
+
"name": "rpm_0",
|
315
|
+
},
|
316
|
+
Object {
|
317
|
+
"id": 112,
|
318
|
+
"name": "rpm_1",
|
319
|
+
},
|
320
|
+
Object {
|
321
|
+
"id": 113,
|
322
|
+
"name": "rpm_2",
|
323
|
+
},
|
324
|
+
Object {
|
325
|
+
"id": 114,
|
326
|
+
"name": "rpm_3",
|
327
|
+
},
|
328
|
+
Object {
|
329
|
+
"id": 115,
|
330
|
+
"name": "rpm_4",
|
331
|
+
},
|
332
|
+
Object {
|
333
|
+
"id": 116,
|
334
|
+
"name": "rpm_5",
|
335
|
+
},
|
336
|
+
Object {
|
337
|
+
"id": 117,
|
338
|
+
"name": "rpm_6",
|
339
|
+
},
|
340
|
+
Object {
|
341
|
+
"id": 118,
|
342
|
+
"name": "rpm_7",
|
343
|
+
},
|
344
|
+
Object {
|
345
|
+
"id": 119,
|
346
|
+
"name": "rpm_8",
|
347
|
+
},
|
348
|
+
Object {
|
349
|
+
"id": 120,
|
350
|
+
"name": "rpm_9",
|
351
|
+
},
|
352
|
+
Object {
|
353
|
+
"id": 121,
|
354
|
+
"name": "rpm_10",
|
355
|
+
},
|
356
|
+
],
|
357
|
+
},
|
358
|
+
Object {
|
359
|
+
"id": 38,
|
360
|
+
"name": "minimal",
|
361
|
+
"rpms": Array [
|
362
|
+
Object {
|
363
|
+
"id": 84,
|
364
|
+
"name": "python2-avocado",
|
365
|
+
},
|
366
|
+
],
|
367
|
+
},
|
368
|
+
],
|
369
|
+
"repositories": Array [
|
370
|
+
Object {
|
371
|
+
"id": 1,
|
372
|
+
"name": "rawhide_wtih_modules",
|
373
|
+
"product_id": 1,
|
374
|
+
"product_name": "fedora",
|
375
|
+
},
|
376
|
+
Object {
|
377
|
+
"id": 4,
|
378
|
+
"name": "rawhide_wtih_modules_dup",
|
379
|
+
"product_id": 1,
|
380
|
+
"product_name": "fedora",
|
381
|
+
},
|
382
|
+
],
|
383
|
+
"stream": "latest",
|
384
|
+
"summary": "Framework with tools and libraries for Automated Testing",
|
385
|
+
"uuid": "8ae7f190-0a48-41a2-93e0-7bc3e4734355",
|
386
|
+
"version": "20180816135607",
|
387
|
+
}
|
388
|
+
}
|
389
|
+
/>
|
390
|
+
</Col>
|
391
|
+
</Row>
|
392
|
+
</TabPane>
|
393
|
+
<TabPane
|
394
|
+
bsClass="tab-pane"
|
395
|
+
eventKey={2}
|
396
|
+
>
|
397
|
+
<Row
|
398
|
+
bsClass="row"
|
399
|
+
componentClass="div"
|
400
|
+
>
|
401
|
+
<Col
|
402
|
+
bsClass="col"
|
403
|
+
componentClass="div"
|
404
|
+
sm={12}
|
405
|
+
>
|
406
|
+
<ModuleStreamDetailRepositories
|
407
|
+
repositories={
|
408
|
+
Array [
|
409
|
+
Object {
|
410
|
+
"id": 1,
|
411
|
+
"name": "rawhide_wtih_modules",
|
412
|
+
"product_id": 1,
|
413
|
+
"product_name": "fedora",
|
414
|
+
},
|
415
|
+
Object {
|
416
|
+
"id": 4,
|
417
|
+
"name": "rawhide_wtih_modules_dup",
|
418
|
+
"product_id": 1,
|
419
|
+
"product_name": "fedora",
|
420
|
+
},
|
421
|
+
]
|
422
|
+
}
|
423
|
+
/>
|
424
|
+
</Col>
|
425
|
+
</Row>
|
426
|
+
</TabPane>
|
427
|
+
<TabPane
|
428
|
+
bsClass="tab-pane"
|
429
|
+
eventKey={3}
|
430
|
+
>
|
431
|
+
<Row
|
432
|
+
bsClass="row"
|
433
|
+
componentClass="div"
|
434
|
+
>
|
435
|
+
<Col
|
436
|
+
bsClass="col"
|
437
|
+
componentClass="div"
|
438
|
+
sm={12}
|
439
|
+
>
|
440
|
+
<ModuleStreamDetailProfiles
|
441
|
+
profiles={
|
442
|
+
Array [
|
443
|
+
Object {
|
444
|
+
"id": 37,
|
445
|
+
"name": "default",
|
446
|
+
"rpms": Array [
|
447
|
+
Object {
|
448
|
+
"id": 108,
|
449
|
+
"name": "perl",
|
450
|
+
},
|
451
|
+
Object {
|
452
|
+
"id": 110,
|
453
|
+
"name": "foo",
|
454
|
+
},
|
455
|
+
Object {
|
456
|
+
"id": 111,
|
457
|
+
"name": "rpm_0",
|
458
|
+
},
|
459
|
+
Object {
|
460
|
+
"id": 112,
|
461
|
+
"name": "rpm_1",
|
462
|
+
},
|
463
|
+
Object {
|
464
|
+
"id": 113,
|
465
|
+
"name": "rpm_2",
|
466
|
+
},
|
467
|
+
Object {
|
468
|
+
"id": 114,
|
469
|
+
"name": "rpm_3",
|
470
|
+
},
|
471
|
+
Object {
|
472
|
+
"id": 115,
|
473
|
+
"name": "rpm_4",
|
474
|
+
},
|
475
|
+
Object {
|
476
|
+
"id": 116,
|
477
|
+
"name": "rpm_5",
|
478
|
+
},
|
479
|
+
Object {
|
480
|
+
"id": 117,
|
481
|
+
"name": "rpm_6",
|
482
|
+
},
|
483
|
+
Object {
|
484
|
+
"id": 118,
|
485
|
+
"name": "rpm_7",
|
486
|
+
},
|
487
|
+
Object {
|
488
|
+
"id": 119,
|
489
|
+
"name": "rpm_8",
|
490
|
+
},
|
491
|
+
Object {
|
492
|
+
"id": 120,
|
493
|
+
"name": "rpm_9",
|
494
|
+
},
|
495
|
+
Object {
|
496
|
+
"id": 121,
|
497
|
+
"name": "rpm_10",
|
498
|
+
},
|
499
|
+
],
|
500
|
+
},
|
501
|
+
Object {
|
502
|
+
"id": 38,
|
503
|
+
"name": "minimal",
|
504
|
+
"rpms": Array [
|
505
|
+
Object {
|
506
|
+
"id": 84,
|
507
|
+
"name": "python2-avocado",
|
508
|
+
},
|
509
|
+
],
|
510
|
+
},
|
511
|
+
]
|
512
|
+
}
|
513
|
+
/>
|
514
|
+
</Col>
|
515
|
+
</Row>
|
516
|
+
</TabPane>
|
517
|
+
<TabPane
|
518
|
+
bsClass="tab-pane"
|
519
|
+
eventKey={4}
|
520
|
+
>
|
521
|
+
<Row
|
522
|
+
bsClass="row"
|
523
|
+
componentClass="div"
|
524
|
+
>
|
525
|
+
<Col
|
526
|
+
bsClass="col"
|
527
|
+
componentClass="div"
|
528
|
+
sm={12}
|
529
|
+
>
|
530
|
+
<ModuleStreamDetailArtifacts
|
531
|
+
artifacts={
|
532
|
+
Array [
|
533
|
+
Object {
|
534
|
+
"id": 208,
|
535
|
+
"name": "python3-avocado-plugins-varianter-yaml-to-mux-0:63.0-2.module_2037+1b0ad681.noarch",
|
536
|
+
},
|
537
|
+
Object {
|
538
|
+
"id": 207,
|
539
|
+
"name": "python3-avocado-plugins-varianter-pict-0:63.0-2.module_2037+1b0ad681.noarch",
|
540
|
+
},
|
541
|
+
]
|
542
|
+
}
|
543
|
+
/>
|
544
|
+
</Col>
|
545
|
+
</Row>
|
546
|
+
</TabPane>
|
547
|
+
</TabContent>
|
548
|
+
</Grid>
|
549
|
+
</Uncontrolled(TabContainer)>
|
550
|
+
</LoadingState>
|
551
|
+
</div>
|
552
|
+
`;
|