katello 4.15.0 → 4.16.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/app/assets/javascripts/katello/common/katello_object.js +2 -2
- data/app/assets/javascripts/katello/locale/bn/katello.js +248 -263
- data/app/assets/javascripts/katello/locale/bn_IN/katello.js +247 -262
- data/app/assets/javascripts/katello/locale/ca/katello.js +247 -262
- data/app/assets/javascripts/katello/locale/cs/katello.js +521 -536
- data/app/assets/javascripts/katello/locale/cs_CZ/katello.js +253 -268
- data/app/assets/javascripts/katello/locale/de/katello.js +248 -263
- data/app/assets/javascripts/katello/locale/de_AT/katello.js +247 -262
- data/app/assets/javascripts/katello/locale/de_DE/katello.js +249 -264
- data/app/assets/javascripts/katello/locale/el/katello.js +251 -266
- data/app/assets/javascripts/katello/locale/en/katello.js +253 -268
- data/app/assets/javascripts/katello/locale/en_GB/katello.js +263 -278
- data/app/assets/javascripts/katello/locale/en_US/katello.js +247 -262
- data/app/assets/javascripts/katello/locale/es/katello.js +248 -263
- data/app/assets/javascripts/katello/locale/et_EE/katello.js +247 -262
- data/app/assets/javascripts/katello/locale/fr/katello.js +250 -265
- data/app/assets/javascripts/katello/locale/gl/katello.js +247 -262
- data/app/assets/javascripts/katello/locale/gu/katello.js +249 -264
- data/app/assets/javascripts/katello/locale/he_IL/katello.js +249 -264
- data/app/assets/javascripts/katello/locale/hi/katello.js +248 -263
- data/app/assets/javascripts/katello/locale/id/katello.js +261 -275
- data/app/assets/javascripts/katello/locale/it/katello.js +252 -267
- data/app/assets/javascripts/katello/locale/ja/katello.js +250 -265
- data/app/assets/javascripts/katello/locale/ka/katello.js +247 -262
- data/app/assets/javascripts/katello/locale/kn/katello.js +248 -263
- data/app/assets/javascripts/katello/locale/ko/katello.js +248 -263
- data/app/assets/javascripts/katello/locale/ml_IN/katello.js +247 -262
- data/app/assets/javascripts/katello/locale/mr/katello.js +248 -263
- data/app/assets/javascripts/katello/locale/nl_NL/katello.js +252 -267
- data/app/assets/javascripts/katello/locale/or/katello.js +248 -263
- data/app/assets/javascripts/katello/locale/pa/katello.js +248 -263
- data/app/assets/javascripts/katello/locale/pl/katello.js +248 -263
- data/app/assets/javascripts/katello/locale/pl_PL/katello.js +247 -262
- data/app/assets/javascripts/katello/locale/pt/katello.js +248 -263
- data/app/assets/javascripts/katello/locale/pt_BR/katello.js +248 -263
- data/app/assets/javascripts/katello/locale/ro/katello.js +247 -262
- data/app/assets/javascripts/katello/locale/ro_RO/katello.js +247 -262
- data/app/assets/javascripts/katello/locale/ru/katello.js +253 -268
- data/app/assets/javascripts/katello/locale/sl/katello.js +247 -262
- data/app/assets/javascripts/katello/locale/sv_SE/katello.js +248 -263
- data/app/assets/javascripts/katello/locale/ta/katello.js +248 -263
- data/app/assets/javascripts/katello/locale/ta_IN/katello.js +247 -262
- data/app/assets/javascripts/katello/locale/te/katello.js +248 -263
- data/app/assets/javascripts/katello/locale/tr/katello.js +247 -262
- data/app/assets/javascripts/katello/locale/vi/katello.js +247 -262
- data/app/assets/javascripts/katello/locale/vi_VN/katello.js +247 -262
- data/app/assets/javascripts/katello/locale/zh/katello.js +247 -262
- data/app/assets/javascripts/katello/locale/zh_CN/katello.js +250 -265
- data/app/assets/javascripts/katello/locale/zh_TW/katello.js +255 -270
- data/app/assets/javascripts/katello/sync_management/sync_management.js +16 -2
- data/app/controllers/katello/api/registry/registry_proxies_controller.rb +33 -9
- data/app/controllers/katello/api/rhsm/candlepin_proxies_controller.rb +1 -1
- data/app/controllers/katello/api/v2/activation_keys_controller.rb +4 -9
- data/app/controllers/katello/api/v2/content_uploads_controller.rb +2 -1
- data/app/controllers/katello/api/v2/content_view_filter_rules_controller.rb +3 -1
- data/app/controllers/katello/api/v2/content_views_controller.rb +4 -1
- data/app/controllers/katello/api/v2/environments_controller.rb +4 -0
- data/app/controllers/katello/api/v2/errata_controller.rb +12 -1
- data/app/controllers/katello/api/v2/flatpak_remote_repositories_controller.rb +81 -0
- data/app/controllers/katello/api/v2/flatpak_remotes_controller.rb +86 -0
- data/app/controllers/katello/api/v2/host_bootc_images_controller.rb +71 -0
- data/app/controllers/katello/api/v2/host_subscriptions_controller.rb +4 -6
- data/app/controllers/katello/api/v2/hosts_bulk_actions_controller.rb +3 -5
- data/app/controllers/katello/api/v2/repositories_controller.rb +18 -3
- data/app/controllers/katello/concerns/api/v2/hosts_controller_extensions.rb +0 -8
- data/app/controllers/katello/concerns/api/v2/http_proxies_controller_extensions.rb +17 -0
- data/app/controllers/katello/concerns/http_proxies_controller_extensions.rb +20 -0
- data/app/controllers/katello/sync_management_controller.rb +6 -2
- data/app/helpers/katello/content_source_helper.rb +8 -1
- data/app/helpers/katello/content_view_helper.rb +3 -1
- data/app/lib/actions/candlepin/activation_key/create.rb +1 -3
- data/app/lib/actions/candlepin/activation_key/update.rb +1 -3
- data/app/lib/actions/candlepin/environment/set_content.rb +17 -4
- data/app/lib/actions/katello/activation_key/create.rb +1 -2
- data/app/lib/actions/katello/activation_key/update.rb +2 -4
- data/app/lib/actions/katello/capsule_content/refresh_repos.rb +7 -1
- data/app/lib/actions/katello/content_view/presenters/incremental_updates_presenter.rb +3 -2
- data/app/lib/actions/katello/content_view/publish.rb +7 -2
- data/app/lib/actions/katello/content_view_environment/reassign_objects.rb +11 -2
- data/app/lib/actions/katello/content_view_version/incremental_update.rb +31 -22
- data/app/lib/actions/katello/flatpak/mirror_remote_repository.rb +30 -0
- data/app/lib/actions/katello/flatpak/scan_remote.rb +17 -12
- data/app/lib/actions/katello/host/update_system_purpose.rb +1 -6
- data/app/lib/actions/pulp3/orchestration/repository/import_upload.rb +18 -2
- data/app/lib/actions/pulp3/repository/multi_copy_units.rb +4 -0
- data/app/lib/katello/api/v2/rendering.rb +2 -1
- data/app/lib/katello/concerns/base_template_scope_extensions.rb +3 -4
- data/app/lib/katello/concerns/bookmark_controller_validator_extensions.rb +13 -0
- data/app/lib/katello/resources/candlepin/activation_key.rb +3 -5
- data/app/lib/katello/resources/candlepin/product.rb +2 -1
- data/app/lib/katello/util/cveak_migrator.rb +3 -2
- data/app/lib/katello/validators/alternate_content_source_path_validator.rb +2 -2
- data/app/lib/katello/validators/container_image_name_validator.rb +1 -1
- data/app/lib/katello/validators/content_validator.rb +1 -1
- data/app/lib/katello/validators/content_view_environment_coherent_default_validator.rb +2 -2
- data/app/lib/katello/validators/content_view_environment_org_validator.rb +2 -2
- data/app/lib/katello/validators/content_view_environment_validator.rb +3 -3
- data/app/lib/katello/validators/content_view_erratum_filter_rule_validator.rb +12 -12
- data/app/lib/katello/validators/content_view_filter_version_validator.rb +1 -1
- data/app/lib/katello/validators/generated_content_view_validator.rb +1 -1
- data/app/lib/katello/validators/gpg_key_content_type_validator.rb +2 -2
- data/app/lib/katello/validators/gpg_key_content_validator.rb +5 -5
- data/app/lib/katello/validators/katello_label_format_validator.rb +4 -4
- data/app/lib/katello/validators/katello_name_format_validator.rb +2 -2
- data/app/lib/katello/validators/katello_url_format_validator.rb +1 -1
- data/app/lib/katello/validators/library_presence_validator.rb +1 -1
- data/app/lib/katello/validators/no_trailing_space_validator.rb +1 -1
- data/app/lib/katello/validators/non_library_environment_validator.rb +1 -1
- data/app/lib/katello/validators/not_in_library_validator.rb +1 -1
- data/app/lib/katello/validators/path_descendents_validator.rb +1 -1
- data/app/lib/katello/validators/prior_validator.rb +1 -1
- data/app/lib/katello/validators/product_unique_attribute_validator.rb +1 -1
- data/app/lib/katello/validators/repo_disablement_validator.rb +2 -2
- data/app/lib/katello/validators/root_repository_unique_attribute_validator.rb +1 -1
- data/app/lib/katello/validators/self_reference_environment_validator.rb +1 -1
- data/app/lib/katello/validators/unique_field_in_org.rb +1 -1
- data/app/models/katello/activation_key.rb +6 -17
- data/app/models/katello/authorization/flatpak_remote.rb +33 -0
- data/app/models/katello/concerns/content_facet_host_extensions.rb +2 -1
- data/app/models/katello/concerns/host_managed_extensions.rb +8 -5
- data/app/models/katello/concerns/http_proxy_extensions.rb +4 -0
- data/app/models/katello/concerns/smart_proxy_extensions.rb +30 -6
- data/app/models/katello/concerns/subscription_facet_host_extensions.rb +0 -8
- data/app/models/katello/content_view.rb +4 -2
- data/app/models/katello/content_view_erratum_filter.rb +18 -2
- data/app/models/katello/content_view_version.rb +6 -0
- data/app/models/katello/docker_manifest.rb +8 -0
- data/app/models/katello/docker_manifest_list.rb +8 -0
- data/app/models/katello/erratum.rb +8 -2
- data/app/models/katello/flatpak_remote.rb +16 -0
- data/app/models/katello/flatpak_remote_repository.rb +18 -0
- data/app/models/katello/flatpak_remote_repository_manifest.rb +4 -0
- data/app/models/katello/glue/candlepin/pool.rb +1 -1
- data/app/models/katello/glue/pulp/repos.rb +12 -1
- data/app/models/katello/host/content_facet.rb +42 -3
- data/app/models/katello/host/subscription_facet.rb +4 -12
- data/app/models/katello/repository.rb +21 -8
- data/app/models/katello/rhel_lifecycle_status.rb +6 -0
- data/app/models/katello/root_repository.rb +6 -8
- data/app/models/katello/upstream_pool.rb +1 -0
- data/app/overrides/add_organization_attributes.rb +6 -0
- data/app/services/katello/product_content_finder.rb +2 -1
- data/app/services/katello/pulp3/content_view_version/importable_repositories.rb +1 -1
- data/app/services/katello/pulp3/docker_manifest.rb +3 -2
- data/app/services/katello/pulp3/docker_manifest_list.rb +3 -2
- data/app/services/katello/pulp3/repository/ansible_collection.rb +8 -1
- data/app/services/katello/pulp3/repository/apt.rb +16 -18
- data/app/services/katello/pulp3/repository/file.rb +4 -2
- data/app/services/katello/pulp3/repository.rb +4 -0
- data/app/services/katello/pulp3/task.rb +2 -2
- data/app/views/foreman/job_templates/bootc_action.erb +26 -0
- data/app/views/foreman/job_templates/bootc_rollback.erb +13 -0
- data/app/views/foreman/job_templates/bootc_status.erb +13 -0
- data/app/views/foreman/job_templates/bootc_switch.erb +13 -0
- data/app/views/foreman/job_templates/bootc_upgrade.erb +13 -0
- data/app/views/foreman/job_templates/flatpak_install.erb +23 -0
- data/app/views/foreman/job_templates/flatpak_login_action.erb +30 -0
- data/app/views/foreman/job_templates/flatpak_setup.erb +27 -0
- data/app/views/foreman/job_templates/install_errata_by_search_query.erb +1 -1
- data/app/views/foreman/job_templates/install_errata_by_search_query_-_katello_ansible_default.erb +1 -1
- data/app/views/foreman/job_templates/resolve_traces_-_katello_ansible_default.erb +1 -1
- data/app/views/foreman/job_templates/update_packages_by_search_query_-_katello_ansible_default.erb +1 -1
- data/app/views/katello/api/v2/activation_keys/base.json.rabl +0 -4
- data/app/views/katello/api/v2/content_facet/base.json.rabl +2 -1
- data/app/views/katello/api/v2/content_view_filter_rules/show.json.rabl +1 -0
- data/app/views/katello/api/v2/content_view_versions/base.json.rabl +5 -1
- data/app/views/katello/api/v2/docker_manifest_lists/show.json.rabl +1 -1
- data/app/views/katello/api/v2/docker_manifests/show.json.rabl +1 -1
- data/app/views/katello/api/v2/flatpak_remote_repositories/base.json.rabl +4 -0
- data/app/views/katello/api/v2/flatpak_remote_repositories/index.json.rabl +7 -0
- data/app/views/katello/api/v2/flatpak_remote_repositories/show.json.rabl +13 -0
- data/app/views/katello/api/v2/flatpak_remotes/base.json.rabl +5 -0
- data/app/views/katello/api/v2/flatpak_remotes/index.json.rabl +8 -0
- data/app/views/katello/api/v2/flatpak_remotes/permissions.json.rabl +11 -0
- data/app/views/katello/api/v2/flatpak_remotes/show.json.rabl +3 -0
- data/app/views/katello/api/v2/hosts/base.json.rabl +0 -8
- data/app/views/katello/api/v2/hosts/os_attributes.json.rabl +13 -0
- data/app/views/katello/api/v2/http_proxies/show.json.rabl +1 -0
- data/app/views/katello/api/v2/repositories/base.json.rabl +1 -0
- data/app/views/katello/api/v2/repositories/show.json.rabl +1 -0
- data/app/views/katello/api/v2/subscription_facet/base.json.rabl +0 -4
- data/app/views/katello/api/v2/subscriptions/show.json.rabl +1 -1
- data/app/views/overrides/activation_keys/_host_synced_content_select.html.erb +10 -4
- data/app/views/overrides/http_proxies/_update_setting_input.html.erb +18 -0
- data/app/views/overrides/organizations/_step_1_override.html.erb +5 -0
- data/config/initializers/monkeys.rb +0 -1
- data/config/initializers/pagelets.rb +6 -0
- data/config/routes/api/registry.rb +1 -0
- data/config/routes/api/v2.rb +21 -0
- data/config/routes/overrides.rb +1 -0
- data/config/routes.rb +2 -0
- data/db/migrate/20190605014649_add_purpose_addons.rb +0 -12
- data/db/migrate/20200213184848_create_evr_type.rb +126 -1
- data/db/migrate/20200818192230_update_system_purpose_status.rb +0 -1
- data/db/migrate/20240207191223_remove_entitlement_mode_host_statuses.rb +0 -1
- data/db/migrate/20240924161240_katello_recreate_evr_constructs.rb +160 -0
- data/db/migrate/20241022121706_add_sync_dependencies_option.rb +5 -0
- data/db/migrate/20241101144625_remove_system_purpose_addons.rb +9 -0
- data/db/migrate/20241107002541_add_registry_url_to_katello_flatpak_remotes.rb +5 -0
- data/db/migrate/20241112145802_add_manifest_entity_to_content_facets.rb +7 -0
- data/db/migrate/20241120213713_add_allow_other_types_to_content_view_erratum_filter_rules.rb +6 -0
- data/db/migrate/20241206183052_add_content_type_to_container_manifests_and_lists.rb +9 -0
- data/db/seeds.d/75-job_templates.rb +5 -1
- data/engines/bastion/vendor/assets/javascripts/bastion/angular/angular.js +2 -2
- data/engines/bastion/vendor/assets/javascripts/bastion/angular-bootstrap/ui-bootstrap-tpls.js +3 -3
- data/engines/bastion/vendor/assets/javascripts/bastion/angular-bootstrap/ui-bootstrap.js +3 -3
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/activation-keys/details/activation-key-details-info.controller.js +0 -5
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/activation-keys/details/activation-key-details.controller.js +1 -41
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/activation-keys/details/views/activation-key-info.html +0 -12
- 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-system-purpose-modal.controller.js +1 -41
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/bulk/content-hosts-bulk-traces-modal.controller.js +1 -1
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/bulk/views/content-hosts-bulk-errata-modal.html +2 -2
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/bulk/views/content-hosts-bulk-subscriptions-modal.html +2 -2
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/bulk/views/content-hosts-bulk-system-purpose-modal.html +0 -13
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/content/views/content-host-errata.html +1 -1
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/details/content-host-details-info.controller.js +0 -5
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/details/content-host-details.controller.js +1 -35
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/details/views/content-host-info.html +2 -14
- 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/views/content-hosts.html +2 -2
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/debs/debs.controller.js +46 -22
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/debs/details/deb-content-views.controller.js +2 -1
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/debs/views/debs.html +4 -0
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/environments/details/views/environment-content-views.html +1 -1
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/environments/details/views/environment-details.html +1 -1
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/environments/details/views/environment-errata.html +1 -1
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/errata/views/errata-tasks-list.html +2 -1
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/i18n/bastion_katello.pot +85 -29
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/i18n/locale/bn.po +338 -93
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/i18n/locale/bn_IN.po +340 -95
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/i18n/locale/ca.po +340 -95
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/i18n/locale/cs_CZ.po +341 -96
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/i18n/locale/de.po +31 -54
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/i18n/locale/de_AT.po +338 -93
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/i18n/locale/de_DE.po +338 -93
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/i18n/locale/el.po +341 -96
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/i18n/locale/en_GB.po +349 -104
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/i18n/locale/en_US.po +338 -93
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/i18n/locale/es.po +33 -56
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/i18n/locale/et_EE.po +338 -93
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/i18n/locale/fr.po +80 -68
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/i18n/locale/gl.po +340 -95
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/i18n/locale/gu.po +340 -95
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/i18n/locale/he_IL.po +339 -111
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/i18n/locale/hi.po +340 -95
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/i18n/locale/id.po +379 -130
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/i18n/locale/it.po +342 -103
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/i18n/locale/ja.po +70 -83
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/i18n/locale/ka.po +84 -90
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/i18n/locale/kn.po +340 -95
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/i18n/locale/ko.po +130 -138
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/i18n/locale/ml_IN.po +338 -93
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/i18n/locale/mr.po +340 -95
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/i18n/locale/nl_NL.po +343 -97
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/i18n/locale/or.po +340 -95
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/i18n/locale/pa.po +340 -95
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/i18n/locale/pl.po +340 -95
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/i18n/locale/pl_PL.po +338 -93
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/i18n/locale/pt.po +338 -93
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/i18n/locale/pt_BR.po +40 -63
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/i18n/locale/ro.po +338 -93
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/i18n/locale/ro_RO.po +338 -93
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/i18n/locale/ru.po +343 -102
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/i18n/locale/sl.po +338 -93
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/i18n/locale/sv_SE.po +340 -95
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/i18n/locale/ta.po +338 -93
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/i18n/locale/ta_IN.po +340 -95
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/i18n/locale/te.po +340 -95
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/i18n/locale/tr.po +338 -93
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/i18n/locale/vi.po +338 -93
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/i18n/locale/vi_VN.po +338 -93
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/i18n/locale/zh.po +338 -93
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/i18n/locale/zh_CN.po +70 -83
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/i18n/locale/zh_TW.po +362 -105
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/i18n/translations.js +29 -29
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/packages/details/views/package-info.html +1 -1
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/products/bulk/products-bulk-advanced-sync-modal.controller.js +1 -1
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/products/bulk/views/products-bulk-sync-plan-modal.html +2 -2
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/products/details/repositories/details/views/repository-info.html +24 -8
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/products/details/repositories/details/views/repository-tasks.html +2 -1
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/products/details/repositories/new/new-repository.controller.js +2 -2
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/products/details/repositories/new/views/new-repository.html +21 -8
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/products/details/repositories/os-versions.service.js +1 -0
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/products/details/views/product-info.html +3 -3
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/products/details/views/product-tasks.html +2 -1
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/products/discovery/views/discovery-create.html +4 -2
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/products/discovery/views/discovery.html +2 -1
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/products/products.controller.js +3 -3
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/products/views/partials/product-table-sync-status.html +1 -1
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/subscriptions/views/subscription-start-date.html +1 -1
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/sync-plans/details/views/sync-plan-info.html +1 -1
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/sync-plans/views/sync-plans.html +2 -2
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/tasks/tasks-table.directive.js +2 -1
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/tasks/views/task-details.html +2 -2
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/tasks/views/tasks-index.html +1 -1
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/tasks/views/tasks-table.html +1 -1
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/tasks/views/user-tasks-table.html +1 -1
- data/lib/katello/engine.rb +6 -0
- data/lib/katello/permission_creator.rb +37 -0
- data/lib/katello/permissions/host_permissions.rb +2 -0
- data/lib/katello/permissions/registry_permissions.rb +1 -0
- data/lib/katello/plugin.rb +18 -1
- data/lib/katello/repository_types/docker.rb +0 -1
- data/lib/katello/repository_types/python.rb +1 -1
- data/lib/katello/version.rb +1 -1
- data/lib/katello.rb +2 -0
- data/locale/Makefile +20 -24
- data/locale/bn/LC_MESSAGES/katello.mo +0 -0
- data/locale/bn/katello.po +248 -263
- data/locale/bn_IN/LC_MESSAGES/katello.mo +0 -0
- data/locale/bn_IN/katello.po +247 -262
- data/locale/ca/LC_MESSAGES/katello.mo +0 -0
- data/locale/ca/katello.po +247 -262
- data/locale/cs/LC_MESSAGES/katello.mo +0 -0
- data/locale/cs/katello.po +524 -799
- data/locale/cs_CZ/LC_MESSAGES/katello.mo +0 -0
- data/locale/cs_CZ/katello.po +254 -269
- data/locale/de/LC_MESSAGES/katello.mo +0 -0
- data/locale/de/katello.po +248 -263
- data/locale/de_AT/LC_MESSAGES/katello.mo +0 -0
- data/locale/de_AT/katello.po +247 -262
- data/locale/de_DE/LC_MESSAGES/katello.mo +0 -0
- data/locale/de_DE/katello.po +250 -265
- data/locale/el/LC_MESSAGES/katello.mo +0 -0
- data/locale/el/katello.po +252 -267
- data/locale/en/LC_MESSAGES/katello.mo +0 -0
- data/locale/en/katello.po +257 -271
- data/locale/en_GB/LC_MESSAGES/katello.mo +0 -0
- data/locale/en_GB/katello.po +264 -279
- data/locale/en_US/LC_MESSAGES/katello.mo +0 -0
- data/locale/en_US/katello.po +247 -262
- data/locale/es/LC_MESSAGES/katello.mo +0 -0
- data/locale/es/katello.po +248 -263
- data/locale/et_EE/LC_MESSAGES/katello.mo +0 -0
- data/locale/et_EE/katello.po +247 -262
- data/locale/fr/LC_MESSAGES/katello.mo +0 -0
- data/locale/fr/katello.po +250 -265
- data/locale/gl/LC_MESSAGES/katello.mo +0 -0
- data/locale/gl/katello.po +247 -262
- data/locale/gu/LC_MESSAGES/katello.mo +0 -0
- data/locale/gu/katello.po +250 -265
- data/locale/he_IL/LC_MESSAGES/katello.mo +0 -0
- data/locale/he_IL/katello.po +249 -264
- data/locale/hi/LC_MESSAGES/katello.mo +0 -0
- data/locale/hi/katello.po +248 -263
- data/locale/id/LC_MESSAGES/katello.mo +0 -0
- data/locale/id/katello.po +264 -275
- data/locale/it/LC_MESSAGES/katello.mo +0 -0
- data/locale/it/katello.po +254 -270
- data/locale/ja/LC_MESSAGES/katello.mo +0 -0
- data/locale/ja/katello.po +250 -265
- data/locale/ka/LC_MESSAGES/katello.mo +0 -0
- data/locale/ka/katello.po +247 -262
- data/locale/katello.pot +1216 -1215
- data/locale/kn/LC_MESSAGES/katello.mo +0 -0
- data/locale/kn/katello.po +248 -263
- data/locale/ko/LC_MESSAGES/katello.mo +0 -0
- data/locale/ko/katello.po +248 -263
- data/locale/ml_IN/LC_MESSAGES/katello.mo +0 -0
- data/locale/ml_IN/katello.po +247 -262
- data/locale/mr/LC_MESSAGES/katello.mo +0 -0
- data/locale/mr/katello.po +248 -263
- data/locale/nl_NL/LC_MESSAGES/katello.mo +0 -0
- data/locale/nl_NL/katello.po +254 -268
- data/locale/or/LC_MESSAGES/katello.mo +0 -0
- data/locale/or/katello.po +248 -263
- data/locale/pa/LC_MESSAGES/katello.mo +0 -0
- data/locale/pa/katello.po +248 -263
- data/locale/pl/LC_MESSAGES/katello.mo +0 -0
- data/locale/pl/katello.po +249 -264
- data/locale/pl_PL/LC_MESSAGES/katello.mo +0 -0
- data/locale/pl_PL/katello.po +247 -262
- data/locale/pt/LC_MESSAGES/katello.mo +0 -0
- data/locale/pt/katello.po +248 -263
- data/locale/pt_BR/LC_MESSAGES/katello.mo +0 -0
- data/locale/pt_BR/katello.po +248 -263
- data/locale/ro/LC_MESSAGES/katello.mo +0 -0
- data/locale/ro/katello.po +247 -262
- data/locale/ro_RO/LC_MESSAGES/katello.mo +0 -0
- data/locale/ro_RO/katello.po +247 -262
- data/locale/ru/LC_MESSAGES/katello.mo +0 -0
- data/locale/ru/katello.po +255 -270
- data/locale/sl/LC_MESSAGES/katello.mo +0 -0
- data/locale/sl/katello.po +247 -262
- data/locale/sv_SE/LC_MESSAGES/katello.mo +0 -0
- data/locale/sv_SE/katello.po +249 -264
- data/locale/ta/LC_MESSAGES/katello.mo +0 -0
- data/locale/ta/katello.po +248 -263
- data/locale/ta_IN/LC_MESSAGES/katello.mo +0 -0
- data/locale/ta_IN/katello.po +247 -262
- data/locale/te/LC_MESSAGES/katello.mo +0 -0
- data/locale/te/katello.po +248 -263
- data/locale/tr/LC_MESSAGES/katello.mo +0 -0
- data/locale/tr/katello.po +247 -262
- data/locale/vi/LC_MESSAGES/katello.mo +0 -0
- data/locale/vi/katello.po +247 -262
- data/locale/vi_VN/LC_MESSAGES/katello.mo +0 -0
- data/locale/vi_VN/katello.po +247 -262
- data/locale/zh/LC_MESSAGES/katello.mo +0 -0
- data/locale/zh/katello.po +247 -262
- data/locale/zh_CN/LC_MESSAGES/katello.mo +0 -0
- data/locale/zh_CN/katello.po +250 -265
- data/locale/zh_TW/LC_MESSAGES/katello.mo +0 -0
- data/locale/zh_TW/katello.po +257 -272
- data/webpack/ForemanColumnExtensions/index.js +73 -3
- data/webpack/ForemanColumnExtensions/index.scss +9 -0
- data/webpack/__mocks__/foremanReact/Root/Context/ForemanContext.js +1 -0
- data/webpack/components/extensions/HostDetails/Cards/ErrataOverviewCard.js +1 -1
- data/webpack/components/extensions/HostDetails/Cards/SystemPurposeCard/SystemPurposeCard.js +1 -20
- data/webpack/components/extensions/HostDetails/Cards/SystemPurposeCard/SystemPurposeEditModal.js +3 -61
- data/webpack/components/extensions/HostDetails/Cards/SystemPurposeCard/__tests__/SystemPurposeCard.test.js +0 -5
- data/webpack/components/extensions/HostDetails/Cards/SystemPurposeCard/__tests__/SystemPurposeEditModal.test.js +0 -5
- data/webpack/components/extensions/HostDetails/DetailsTabCards/ImageModeCard.js +87 -0
- data/webpack/components/extensions/HostDetails/DetailsTabCards/RegistrationCard.js +28 -2
- data/webpack/components/extensions/HostDetails/Tabs/DebsTab/DebInstallModal.js +1 -1
- data/webpack/components/extensions/HostDetails/Tabs/ErrataTab/ErrataTab.js +2 -2
- data/webpack/components/extensions/HostDetails/Tabs/PackagesTab/PackageInstallModal.js +1 -1
- data/webpack/components/extensions/Hosts/FontAwesomeImageModeIcon.js +55 -0
- data/webpack/containers/Application/config.js +5 -0
- data/webpack/global_index.js +3 -1
- data/webpack/redux/actions/RedHatRepositories/helpers.js +9 -0
- data/webpack/scenes/BootedContainerImages/BootedContainerImagesConstants.js +5 -0
- data/webpack/scenes/BootedContainerImages/BootedContainerImagesPage.js +242 -0
- data/webpack/scenes/BootedContainerImages/__tests__/bootedContainerImages.fixtures.js +42 -0
- data/webpack/scenes/BootedContainerImages/__tests__/bootedContainerImagesPage.test.js +233 -0
- data/webpack/scenes/BootedContainerImages/index.js +4 -0
- data/webpack/scenes/ContentViews/Delete/__tests__/affectedHosts.fixtures.json +1 -2
- data/webpack/scenes/ContentViews/Details/Filters/CVErrataDateFilterContent.js +39 -7
- data/webpack/scenes/ContentViews/Details/Filters/CVErrataIDFilterContent.js +13 -2
- data/webpack/scenes/ContentViews/Details/Filters/CVFilterDetailType.js +1 -1
- data/webpack/scenes/ContentViews/Details/Filters/__tests__/cvErrataDateFilterContent.test.js +1 -0
- data/webpack/scenes/ContentViews/Details/Repositories/RepoIcon.js +4 -2
- data/webpack/scenes/ContentViews/Details/Versions/BulkDelete/__tests__/hosts.fixtures.json +1 -2
- data/webpack/scenes/ContentViews/Details/Versions/Delete/RemoveSteps/CVReassignActivationKeysForm.js +20 -1
- data/webpack/scenes/ContentViews/Details/Versions/Delete/RemoveSteps/CVReassignHostsForm.js +20 -1
- data/webpack/scenes/ContentViews/Details/Versions/Delete/RemoveSteps/CVVersionRemoveReview.js +128 -18
- data/webpack/scenes/ContentViews/Details/Versions/Delete/__tests__/cvAffectedActivationKeys.fixture.json +0 -1
- data/webpack/scenes/ContentViews/Details/Versions/Delete/__tests__/cvAffectedHosts.fixture.json +1 -2
- data/webpack/scenes/ContentViews/Details/Versions/Delete/__tests__/cvVersionRemove.test.js +6 -4
- data/webpack/scenes/ContentViews/Details/Versions/Delete/affectedActivationKeys.js +5 -1
- data/webpack/scenes/ContentViews/Details/Versions/Delete/affectedHosts.js +6 -1
- data/webpack/scenes/ContentViews/__tests__/contentViewPage.test.js +1 -1
- data/webpack/scenes/ContentViews/expansions/DetailsExpansion.js +5 -1
- data/webpack/scenes/SmartProxy/ExpandableCvDetails.js +4 -2
- data/webpack/scenes/SmartProxy/__tests__/SmartProxyContentTest.js +38 -0
- data/webpack/scenes/Subscriptions/Details/SubscriptionPurposeAttributes.js +0 -1
- data/webpack/scenes/Subscriptions/Details/__tests__/__snapshots__/SubscriptionDetailInfo.test.js.snap +0 -10
- data/webpack/scenes/Subscriptions/Details/__tests__/__snapshots__/SubscriptionDetails.test.js.snap +0 -3
- data/webpack/scenes/Subscriptions/Details/__tests__/subscriptionDetails.fixtures.js +0 -1
- metadata +61 -58
- data/app/models/katello/activation_key_purpose_addon.rb +0 -6
- data/app/models/katello/purpose_addon.rb +0 -11
- data/app/models/katello/subscription_facet_purpose_addon.rb +0 -6
- data/lib/monkeys/fx_sqlite_skip.rb +0 -13
- data/locale/action_names.rb +0 -181
- data/locale/bn/katello.po.time_stamp +0 -0
- data/locale/bn_IN/katello.po.time_stamp +0 -0
- data/locale/ca/katello.po.time_stamp +0 -0
- data/locale/cs/katello.po.time_stamp +0 -0
- data/locale/cs_CZ/katello.po.time_stamp +0 -0
- data/locale/de/katello.po.time_stamp +0 -0
- data/locale/de_AT/katello.po.time_stamp +0 -0
- data/locale/de_DE/katello.po.time_stamp +0 -0
- data/locale/el/katello.po.time_stamp +0 -0
- data/locale/en/katello.po.time_stamp +0 -0
- data/locale/en_GB/katello.po.time_stamp +0 -0
- data/locale/en_US/katello.po.time_stamp +0 -0
- data/locale/es/katello.po.time_stamp +0 -0
- data/locale/et_EE/katello.po.time_stamp +0 -0
- data/locale/fr/katello.po.time_stamp +0 -0
- data/locale/gl/katello.po.time_stamp +0 -0
- data/locale/gu/katello.po.time_stamp +0 -0
- data/locale/he_IL/katello.po.time_stamp +0 -0
- data/locale/hi/katello.po.time_stamp +0 -0
- data/locale/id/katello.po.time_stamp +0 -0
- data/locale/it/katello.po.time_stamp +0 -0
- data/locale/ja/katello.po.time_stamp +0 -0
- data/locale/ka/katello.po.time_stamp +0 -0
- data/locale/kn/katello.po.time_stamp +0 -0
- data/locale/ko/katello.po.time_stamp +0 -0
- data/locale/ml_IN/katello.po.time_stamp +0 -0
- data/locale/mr/katello.po.time_stamp +0 -0
- data/locale/nl_NL/katello.po.time_stamp +0 -0
- data/locale/or/katello.po.time_stamp +0 -0
- data/locale/pa/katello.po.time_stamp +0 -0
- data/locale/pl/katello.po.time_stamp +0 -0
- data/locale/pl_PL/katello.po.time_stamp +0 -0
- data/locale/pt/katello.po.time_stamp +0 -0
- data/locale/pt_BR/katello.po.time_stamp +0 -0
- data/locale/ro/katello.po.time_stamp +0 -0
- data/locale/ro_RO/katello.po.time_stamp +0 -0
- data/locale/ru/katello.po.time_stamp +0 -0
- data/locale/sl/katello.po.time_stamp +0 -0
- data/locale/sv_SE/katello.po.time_stamp +0 -0
- data/locale/ta/katello.po.time_stamp +0 -0
- data/locale/ta_IN/katello.po.time_stamp +0 -0
- data/locale/te/katello.po.time_stamp +0 -0
- data/locale/tr/katello.po.time_stamp +0 -0
- data/locale/vi/katello.po.time_stamp +0 -0
- data/locale/vi_VN/katello.po.time_stamp +0 -0
- data/locale/zh/katello.po.time_stamp +0 -0
- data/locale/zh_CN/katello.po.time_stamp +0 -0
- data/locale/zh_TW/katello.po.time_stamp +0 -0
data/webpack/global_index.js
CHANGED
@@ -19,6 +19,7 @@ import ErrataOverviewCard from './components/extensions/HostDetails/Cards/Errata
|
|
19
19
|
import InstalledProductsCard from './components/extensions/HostDetails/DetailsTabCards/InstalledProductsCard';
|
20
20
|
import RegistrationCard from './components/extensions/HostDetails/DetailsTabCards/RegistrationCard';
|
21
21
|
import HwPropertiesCard from './components/extensions/HostDetails/DetailsTabCards/HwPropertiesCard';
|
22
|
+
import ImageModeCard from './components/extensions/HostDetails/DetailsTabCards/ImageModeCard';
|
22
23
|
|
23
24
|
import TracesTab from './components/extensions/HostDetails/Tabs/TracesTab/TracesTab.js';
|
24
25
|
import extendReducer from './components/extensions/reducers';
|
@@ -71,6 +72,8 @@ addGlobalFill('recent-communication-card-item', 'Recent communication', <RecentC
|
|
71
72
|
// Details tab cards & card extensions
|
72
73
|
addGlobalFill('host-tab-details-cards', 'Installed products', <InstalledProductsCard key="installed-products" />, 100);
|
73
74
|
addGlobalFill('host-tab-details-cards', 'Registration details', <RegistrationCard key="registration-details" />, 200);
|
75
|
+
addGlobalFill('host-tab-details-cards', 'HW properties', <HwPropertiesCard key="hw-properties" />, 200);
|
76
|
+
addGlobalFill('host-tab-details-cards', 'Image mode details', <ImageModeCard key="image-mode-details" />, 3000);
|
74
77
|
addGlobalFill('host-details-tab-properties-1', 'Subscription UUID', <SystemPropertiesCardSubscription key="subscription-uuid" />);
|
75
78
|
addGlobalFill('host-details-tab-properties-2', 'Tracer', <SystemPropertiesCardTracer key="tracer-status" />);
|
76
79
|
addGlobalFill('host-details-tab-properties-3', 'Virtualization', <SystemPropertiesCardVirtualization key="virtualization" />);
|
@@ -89,7 +92,6 @@ addGlobalFill(
|
|
89
92
|
100,
|
90
93
|
);
|
91
94
|
|
92
|
-
addGlobalFill('host-tab-details-cards', 'HW properties', <HwPropertiesCard key="hw-properties" />, 200);
|
93
95
|
|
94
96
|
// Hosts Index page extensions
|
95
97
|
addGlobalFill('_all-hosts-modals', 'BulkChangeHostCVModal', <BulkChangeHostCVModal key="bulk-change-host-cv-modal" />, 100);
|
@@ -10,6 +10,14 @@ const repoTypeSearchQueryMap = {
|
|
10
10
|
};
|
11
11
|
|
12
12
|
const recommendedRepositoriesRHEL = [
|
13
|
+
'rhel-10-for-x86_64-baseos-rpms',
|
14
|
+
'rhel-10-for-x86_64-baseos-kickstart',
|
15
|
+
'rhel-10-for-x86_64-baseos-rpms',
|
16
|
+
'rhel-10-for-x86_64-baseos-kickstart',
|
17
|
+
'rhel-10-for-x86_64-appstream-rpms',
|
18
|
+
'rhel-10-for-x86_64-appstream-kickstart',
|
19
|
+
'rhel-10-for-x86_64-baseos-eus-rpms',
|
20
|
+
'rhel-10-for-x86_64-appstream-eus-rpms',
|
13
21
|
'rhel-9-for-x86_64-baseos-rpms',
|
14
22
|
'rhel-9-for-x86_64-baseos-kickstart',
|
15
23
|
'rhel-9-for-x86_64-appstream-rpms',
|
@@ -27,6 +35,7 @@ const recommendedRepositoriesRHEL = [
|
|
27
35
|
];
|
28
36
|
|
29
37
|
const recommendedRepositoriesSatTools = [
|
38
|
+
'satellite-client-6-for-rhel-10-x86_64-rpms',
|
30
39
|
'satellite-client-6-for-rhel-9-x86_64-rpms',
|
31
40
|
'satellite-client-6-for-rhel-8-x86_64-rpms',
|
32
41
|
'rhel-7-server-els-satellite-client-6-rpms',
|
@@ -0,0 +1,242 @@
|
|
1
|
+
import React from 'react';
|
2
|
+
import { TableComposable, Thead, Th, Tbody, Tr, Td, ExpandableRowContent } from '@patternfly/react-table';
|
3
|
+
import TableIndexPage from 'foremanReact/components/PF4/TableIndexPage/TableIndexPage';
|
4
|
+
import {
|
5
|
+
useSetParamsAndApiAndSearch,
|
6
|
+
useTableIndexAPIResponse,
|
7
|
+
} from 'foremanReact/components/PF4/TableIndexPage/Table/TableIndexHooks';
|
8
|
+
import {
|
9
|
+
useUrlParams,
|
10
|
+
useSet,
|
11
|
+
} from 'foremanReact/components/PF4/TableIndexPage/Table/TableHooks';
|
12
|
+
import {
|
13
|
+
getColumnHelpers,
|
14
|
+
} from 'foremanReact/components/PF4/TableIndexPage/Table/helpers';
|
15
|
+
import {
|
16
|
+
useTableSort,
|
17
|
+
} from 'foremanReact/components/PF4/Helpers/useTableSort';
|
18
|
+
import Pagination from 'foremanReact/components/Pagination';
|
19
|
+
import EmptyPage from 'foremanReact/routes/common/EmptyPage';
|
20
|
+
import { translate as __ } from 'foremanReact/common/I18n';
|
21
|
+
import { useForemanHostsPageUrl } from 'foremanReact/Root/Context/ForemanContext';
|
22
|
+
import BOOTED_CONTAINER_IMAGES_KEY, { BOOTED_CONTAINER_IMAGES_API_PATH } from './BootedContainerImagesConstants';
|
23
|
+
|
24
|
+
const BootedContainerImagesPage = () => {
|
25
|
+
const foremanHostsPageUrl = useForemanHostsPageUrl();
|
26
|
+
const columns = {
|
27
|
+
bootc_booted_image: {
|
28
|
+
title: __('Image name'),
|
29
|
+
isSorted: true,
|
30
|
+
},
|
31
|
+
digest: {
|
32
|
+
title: __('Image digests'),
|
33
|
+
wrapper: ({ digests }) => digests.length,
|
34
|
+
},
|
35
|
+
hosts: {
|
36
|
+
title: __('Hosts'),
|
37
|
+
wrapper: ({ bootc_booted_image: bootcBootedImage, digests }) => (
|
38
|
+
<a href={`${foremanHostsPageUrl}?search=bootc_booted_image%20=%20${bootcBootedImage}`}>{digests.reduce((total, digest) => total + digest.host_count, 0)}</a>
|
39
|
+
),
|
40
|
+
},
|
41
|
+
};
|
42
|
+
|
43
|
+
const {
|
44
|
+
searchParam: urlSearchQuery = '',
|
45
|
+
page: urlPage,
|
46
|
+
per_page: urlPerPage,
|
47
|
+
} = useUrlParams();
|
48
|
+
const defaultParams = { search: urlSearchQuery };
|
49
|
+
if (urlPage) defaultParams.page = Number(urlPage);
|
50
|
+
if (urlPerPage) defaultParams.per_page = Number(urlPerPage);
|
51
|
+
const apiOptions = { key: BOOTED_CONTAINER_IMAGES_KEY };
|
52
|
+
|
53
|
+
const response = useTableIndexAPIResponse({
|
54
|
+
apiUrl: BOOTED_CONTAINER_IMAGES_API_PATH,
|
55
|
+
apiOptions,
|
56
|
+
defaultParams,
|
57
|
+
});
|
58
|
+
const columnsToSortParams = {};
|
59
|
+
Object.keys(columns).forEach((key) => {
|
60
|
+
if (columns[key].isSorted) {
|
61
|
+
columnsToSortParams[columns[key].title] = key;
|
62
|
+
}
|
63
|
+
});
|
64
|
+
const { setParamsAndAPI, params } = useSetParamsAndApiAndSearch({
|
65
|
+
defaultParams,
|
66
|
+
apiOptions,
|
67
|
+
setAPIOptions: response.setAPIOptions,
|
68
|
+
});
|
69
|
+
const onSort = (_event, index, direction) => {
|
70
|
+
setParamsAndAPI({
|
71
|
+
...params,
|
72
|
+
order: `${Object.keys(columns)[index]} ${direction}`,
|
73
|
+
});
|
74
|
+
};
|
75
|
+
const { pfSortParams } = useTableSort({
|
76
|
+
allColumns: Object.keys(columns).map(k => columns[k].title),
|
77
|
+
columnsToSortParams,
|
78
|
+
onSort,
|
79
|
+
});
|
80
|
+
const expandedImages = useSet([]);
|
81
|
+
const imageIsExpanded = bootcBootedImage => expandedImages.has(bootcBootedImage);
|
82
|
+
const STATUS = {
|
83
|
+
PENDING: 'PENDING',
|
84
|
+
RESOLVED: 'RESOLVED',
|
85
|
+
ERROR: 'ERROR',
|
86
|
+
};
|
87
|
+
|
88
|
+
const {
|
89
|
+
response: {
|
90
|
+
results = [],
|
91
|
+
subtotal,
|
92
|
+
message: errorMessage,
|
93
|
+
},
|
94
|
+
status = STATUS.PENDING,
|
95
|
+
} = response;
|
96
|
+
|
97
|
+
const [columnNamesKeys, keysToColumnNames] = getColumnHelpers(columns);
|
98
|
+
const onPagination = (newPagination) => {
|
99
|
+
setParamsAndAPI({ ...params, ...newPagination });
|
100
|
+
};
|
101
|
+
const getColumnWidth = (key) => {
|
102
|
+
if (key === 'bootc_booted_image') return 40;
|
103
|
+
if (key === 'digest') return 15;
|
104
|
+
return 45;
|
105
|
+
};
|
106
|
+
|
107
|
+
return (
|
108
|
+
<TableIndexPage
|
109
|
+
apiUrl={BOOTED_CONTAINER_IMAGES_API_PATH}
|
110
|
+
apiOptions={apiOptions}
|
111
|
+
header={__('Booted container images')}
|
112
|
+
createable={false}
|
113
|
+
isDeleteable={false}
|
114
|
+
controller="/katello/api/v2/host_bootc_images"
|
115
|
+
>
|
116
|
+
<>
|
117
|
+
<TableComposable variant="compact" ouiaId="booted-containers-table" isStriped>
|
118
|
+
<Thead>
|
119
|
+
<Tr ouiaId="table-header">
|
120
|
+
<>
|
121
|
+
<Th />
|
122
|
+
{columnNamesKeys.map(k => (
|
123
|
+
<Th
|
124
|
+
width={getColumnWidth(k)}
|
125
|
+
key={k}
|
126
|
+
sort={
|
127
|
+
Object.values(columnsToSortParams).includes(k) &&
|
128
|
+
pfSortParams(keysToColumnNames[k])
|
129
|
+
}
|
130
|
+
>
|
131
|
+
{keysToColumnNames[k]}
|
132
|
+
</Th>
|
133
|
+
))}
|
134
|
+
</>
|
135
|
+
</Tr>
|
136
|
+
</Thead>
|
137
|
+
<Tbody>
|
138
|
+
{status === STATUS.PENDING && results.length === 0 && (
|
139
|
+
<Tr ouiaId="table-loading">
|
140
|
+
<Td colSpan={100}>
|
141
|
+
<EmptyPage
|
142
|
+
message={{
|
143
|
+
type: 'loading',
|
144
|
+
text: __('Loading...'),
|
145
|
+
}}
|
146
|
+
/>
|
147
|
+
</Td>
|
148
|
+
</Tr>
|
149
|
+
)}
|
150
|
+
{!(status === STATUS.PENDING) &&
|
151
|
+
results.length === 0 &&
|
152
|
+
!errorMessage && (
|
153
|
+
<Tr ouiaId="table-empty">
|
154
|
+
<Td colSpan={100}>
|
155
|
+
<EmptyPage
|
156
|
+
message={{
|
157
|
+
type: 'empty',
|
158
|
+
}}
|
159
|
+
/>
|
160
|
+
</Td>
|
161
|
+
</Tr>
|
162
|
+
)}
|
163
|
+
{errorMessage && (
|
164
|
+
<Tr ouiaId="table-error">
|
165
|
+
<Td colSpan={100}>
|
166
|
+
<EmptyPage message={{ type: 'error', text: errorMessage }} />
|
167
|
+
</Td>
|
168
|
+
</Tr>
|
169
|
+
)}
|
170
|
+
</Tbody>
|
171
|
+
{results?.map((result, rowIndex) => {
|
172
|
+
const { bootc_booted_image: bootcBootedImage, digests } = result;
|
173
|
+
const isExpanded = imageIsExpanded(bootcBootedImage);
|
174
|
+
return (
|
175
|
+
<Tbody key={`bootable-container-images-body-${bootcBootedImage}`} isExpanded={isExpanded}>
|
176
|
+
<Tr key={bootcBootedImage} ouiaId={`table-row-${rowIndex}`}>
|
177
|
+
<>
|
178
|
+
<Td
|
179
|
+
expand={digests.length > 0 && {
|
180
|
+
rowIndex,
|
181
|
+
isExpanded,
|
182
|
+
onToggle: (_event, _rInx, isOpen) =>
|
183
|
+
expandedImages.onToggle(isOpen, bootcBootedImage),
|
184
|
+
expandId: `booted-containers-expander-${bootcBootedImage}`,
|
185
|
+
}}
|
186
|
+
/>
|
187
|
+
{columnNamesKeys.map(k => (
|
188
|
+
<Td
|
189
|
+
key={`${bootcBootedImage}-${keysToColumnNames[k]}`}
|
190
|
+
dataLabel={keysToColumnNames[k]}
|
191
|
+
>
|
192
|
+
{columns[k].wrapper ? columns[k].wrapper(result) : result[k]}
|
193
|
+
</Td>
|
194
|
+
))}
|
195
|
+
</>
|
196
|
+
</Tr>
|
197
|
+
{digests ?
|
198
|
+
<Tr isExpanded={isExpanded} ouiaId={`table-row-outer-expandable-${rowIndex}`}>
|
199
|
+
<Td />
|
200
|
+
<Td colSpan={3}>
|
201
|
+
<ExpandableRowContent>
|
202
|
+
<TableComposable variant="compact" isStriped ouiaId={`table-composable-expanded-${rowIndex}`}>
|
203
|
+
<Thead>
|
204
|
+
<Tr ouiaId={`table-row-inner-expandable-${rowIndex}`}>
|
205
|
+
<Th width={55}>{__('Image digest')}</Th>
|
206
|
+
<Th width={45}>{__('Hosts')}</Th>
|
207
|
+
</Tr>
|
208
|
+
</Thead>
|
209
|
+
<Tbody>
|
210
|
+
{digests.map((digest, index) => (
|
211
|
+
<Tr key={digest.bootc_booted_digest} ouiaId={`table-row-expandable-content-${index}`}>
|
212
|
+
<Td>{digest.bootc_booted_digest}</Td>
|
213
|
+
<Td>
|
214
|
+
<a href={`${foremanHostsPageUrl}?search=bootc_booted_digest%20=%20${digest.bootc_booted_digest}`}>{digest.host_count}</a>
|
215
|
+
</Td>
|
216
|
+
</Tr>
|
217
|
+
))}
|
218
|
+
</Tbody>
|
219
|
+
</TableComposable>
|
220
|
+
</ExpandableRowContent>
|
221
|
+
</Td>
|
222
|
+
</Tr> : null}
|
223
|
+
</Tbody>
|
224
|
+
);
|
225
|
+
})}
|
226
|
+
</TableComposable>
|
227
|
+
{results.length > 0 && !errorMessage &&
|
228
|
+
<Pagination
|
229
|
+
key="table-bottom-pagination"
|
230
|
+
page={params.page}
|
231
|
+
perPage={params.perPage}
|
232
|
+
itemCount={subtotal}
|
233
|
+
onChange={onPagination}
|
234
|
+
updateParamsByUrl
|
235
|
+
/>
|
236
|
+
}
|
237
|
+
</>
|
238
|
+
</TableIndexPage>
|
239
|
+
);
|
240
|
+
};
|
241
|
+
|
242
|
+
export default BootedContainerImagesPage;
|
@@ -0,0 +1,42 @@
|
|
1
|
+
import Immutable from 'seamless-immutable';
|
2
|
+
|
3
|
+
const bootedContainerImagesResponse = Immutable({
|
4
|
+
total: 2,
|
5
|
+
page: 1,
|
6
|
+
per_page: 20,
|
7
|
+
subtotal: 2,
|
8
|
+
results: [
|
9
|
+
{
|
10
|
+
bootc_booted_image: 'quay.io/centos-bootc/centos-bootc:stream10',
|
11
|
+
digests: [
|
12
|
+
{
|
13
|
+
bootc_booted_digest: 'sha256:54256a998f0c62e16f3927c82b570f90bd8449a52e03daabd5fd16d6419fd572',
|
14
|
+
host_count: 1,
|
15
|
+
},
|
16
|
+
{
|
17
|
+
bootc_booted_digest: 'sha256:54256a998f0c62e16f3927c82b570f90bd8449a52e03daabd5fd16d6419fd573',
|
18
|
+
host_count: 2,
|
19
|
+
},
|
20
|
+
{
|
21
|
+
bootc_booted_digest: 'sha256:54256a998f0c62e16f3927c82b570f90bd8449a52e03daabd5fd16d6419fd574',
|
22
|
+
host_count: 3,
|
23
|
+
},
|
24
|
+
{
|
25
|
+
bootc_booted_digest: 'sha256:54256a998f0c62e16f3927c82b570f90bd8449a52e03daabd5fd16d6419fd575',
|
26
|
+
host_count: 4,
|
27
|
+
},
|
28
|
+
],
|
29
|
+
},
|
30
|
+
{
|
31
|
+
bootc_booted_image: 'quay.io/centos-bootc/centos-bootc:stream9',
|
32
|
+
digests: [
|
33
|
+
{
|
34
|
+
bootc_booted_digest: 'sha256:54256a998f0c62e16f3927c82b570f90bd8449a52e03daabd5fd16d6419fd576',
|
35
|
+
host_count: 6,
|
36
|
+
},
|
37
|
+
],
|
38
|
+
},
|
39
|
+
],
|
40
|
+
});
|
41
|
+
|
42
|
+
export default bootedContainerImagesResponse;
|
@@ -0,0 +1,233 @@
|
|
1
|
+
import React from 'react';
|
2
|
+
import { renderWithRedux, patientlyWaitFor, act } from 'react-testing-lib-wrapper';
|
3
|
+
import { nockInstance, assertNockRequest, mockAutocomplete } from '../../../test-utils/nockWrapper';
|
4
|
+
import BootedContainerImagesPage from '../BootedContainerImagesPage';
|
5
|
+
import bootcImagesData from './bootedContainerImages.fixtures';
|
6
|
+
|
7
|
+
const bootcImagesUrl = '/api/v2/hosts/bootc_images';
|
8
|
+
const autocompleteUrl = '/host_bootc_images/auto_complete_search';
|
9
|
+
const autocompleteQuery = {
|
10
|
+
search: '',
|
11
|
+
};
|
12
|
+
|
13
|
+
const buildBootedImage = id => ({
|
14
|
+
bootc_booted_image: `quay.io/centos-bootc/centos-bootc:stream${id}`,
|
15
|
+
digests: [
|
16
|
+
{
|
17
|
+
bootc_booted_digest: `sha256:54256a998f0c62e16f3927c82b570f90bd8449a52e03daabd5fd16d6419fd57${id}`,
|
18
|
+
host_count: 1,
|
19
|
+
},
|
20
|
+
],
|
21
|
+
});
|
22
|
+
|
23
|
+
const createBootedImages = (amount) => {
|
24
|
+
const response = {
|
25
|
+
total: amount,
|
26
|
+
subtotal: amount,
|
27
|
+
page: 1,
|
28
|
+
per_page: 20,
|
29
|
+
error: null,
|
30
|
+
search: null,
|
31
|
+
sort: {
|
32
|
+
by: 'bootc_booted_image',
|
33
|
+
order: 'asc',
|
34
|
+
},
|
35
|
+
results: [],
|
36
|
+
};
|
37
|
+
|
38
|
+
[...Array(amount).keys()].forEach((_, i) => response.results.push(buildBootedImage(i + 1)));
|
39
|
+
|
40
|
+
return response;
|
41
|
+
};
|
42
|
+
|
43
|
+
let centos10Image;
|
44
|
+
let centos9Image;
|
45
|
+
let stream10Digest1;
|
46
|
+
let stream10Digest2;
|
47
|
+
let stream10Digest3;
|
48
|
+
let stream10Digest4;
|
49
|
+
let stream9Digest;
|
50
|
+
beforeEach(() => {
|
51
|
+
const { results } = bootcImagesData;
|
52
|
+
[centos10Image, centos9Image] = results;
|
53
|
+
[stream10Digest1, stream10Digest2, stream10Digest3, stream10Digest4] =
|
54
|
+
centos10Image.digests.map(digest => digest.bootc_booted_digest);
|
55
|
+
stream9Digest = centos9Image.digests[0].bootc_booted_digest;
|
56
|
+
});
|
57
|
+
|
58
|
+
test('BootedContainerImagesPage renders correctly expanded', async (done) => {
|
59
|
+
const autocompleteScope = mockAutocomplete(nockInstance, autocompleteUrl, autocompleteQuery);
|
60
|
+
const scope = nockInstance
|
61
|
+
.get(bootcImagesUrl)
|
62
|
+
.query(true)
|
63
|
+
// Why does the page load twice?
|
64
|
+
.times(2)
|
65
|
+
.reply(200, bootcImagesData);
|
66
|
+
|
67
|
+
const {
|
68
|
+
queryByText, queryAllByText, queryAllByRole,
|
69
|
+
} = renderWithRedux(<BootedContainerImagesPage />);
|
70
|
+
|
71
|
+
expect(queryByText(centos10Image.bootc_booted_image)).toBeNull();
|
72
|
+
|
73
|
+
await patientlyWaitFor(() => {
|
74
|
+
// Expand the rows
|
75
|
+
queryAllByRole('button').find(btn => btn.getAttribute('aria-labelledby') ===
|
76
|
+
'simple-node1 booted-containers-expander-quay.io/centos-bootc/centos-bootc:stream91').click();
|
77
|
+
queryAllByRole('button').find(btn => btn.getAttribute('aria-labelledby') ===
|
78
|
+
'simple-node0 booted-containers-expander-quay.io/centos-bootc/centos-bootc:stream100').click();
|
79
|
+
|
80
|
+
// Check that the digest host count links appear
|
81
|
+
expect(queryAllByText('1').find(link => String(link.getAttribute('href')).includes(stream10Digest1))).toBeVisible();
|
82
|
+
expect(queryAllByText('2').find(link => String(link.getAttribute('href')).includes(stream10Digest2))).toBeVisible();
|
83
|
+
expect(queryAllByText('3').find(link => String(link.getAttribute('href')).includes(stream10Digest3))).toBeVisible();
|
84
|
+
expect(queryAllByText('4').find(link => String(link.getAttribute('href')).includes(stream10Digest4))).toBeVisible();
|
85
|
+
expect(queryAllByText('6').find(link => String(link.getAttribute('href')).includes(stream9Digest))).toBeVisible();
|
86
|
+
|
87
|
+
// Check that the image host count links appear
|
88
|
+
const links = queryAllByRole('link');
|
89
|
+
const stream10Link = links.find(link => link.getAttribute('href') === `/new/hosts?search=bootc_booted_image%20=%20${centos10Image.bootc_booted_image}`);
|
90
|
+
const stream9Link = links.find(link => link.getAttribute('href') === `/new/hosts?search=bootc_booted_image%20=%20${centos9Image.bootc_booted_image}`);
|
91
|
+
expect(stream10Link).toBeVisible();
|
92
|
+
expect(stream9Link).toBeVisible();
|
93
|
+
|
94
|
+
// Check that the image names appear
|
95
|
+
expect(queryByText(centos10Image.bootc_booted_image)).toBeVisible();
|
96
|
+
expect(queryByText(centos9Image.bootc_booted_image)).toBeVisible();
|
97
|
+
|
98
|
+
// Check that the digest counts appear
|
99
|
+
// console.log(queryAllByText('4')[0].closest('td'));
|
100
|
+
expect(queryAllByText('4')[0].closest('td')).toBeVisible();
|
101
|
+
expect(queryAllByText('1')[1].closest('td')).toBeVisible();
|
102
|
+
|
103
|
+
// Check that the digest names appear
|
104
|
+
expect(queryByText(stream10Digest1).closest('td')).toBeVisible();
|
105
|
+
expect(queryByText(stream10Digest2).closest('td')).toBeVisible();
|
106
|
+
expect(queryByText(stream10Digest3).closest('td')).toBeVisible();
|
107
|
+
expect(queryByText(stream10Digest4).closest('td')).toBeVisible();
|
108
|
+
expect(queryByText(stream9Digest).closest('td')).toBeVisible();
|
109
|
+
});
|
110
|
+
|
111
|
+
assertNockRequest(autocompleteScope);
|
112
|
+
assertNockRequest(scope, done);
|
113
|
+
act(done);
|
114
|
+
});
|
115
|
+
|
116
|
+
test('BootedContainerImagesPage renders correctly unexpanded', async (done) => {
|
117
|
+
const autocompleteScope = mockAutocomplete(nockInstance, autocompleteUrl, autocompleteQuery);
|
118
|
+
const scope = nockInstance
|
119
|
+
.get(bootcImagesUrl)
|
120
|
+
.query(true)
|
121
|
+
// Why does the page load twice?
|
122
|
+
.times(2)
|
123
|
+
.reply(200, bootcImagesData);
|
124
|
+
|
125
|
+
const {
|
126
|
+
queryByText, queryAllByText, queryAllByRole,
|
127
|
+
} = renderWithRedux(<BootedContainerImagesPage />);
|
128
|
+
|
129
|
+
expect(queryByText(centos10Image.bootc_booted_image)).toBeNull();
|
130
|
+
|
131
|
+
await patientlyWaitFor(() => {
|
132
|
+
// Check that the digest host count links don't appear
|
133
|
+
expect(queryAllByText('1').find(link => String(link.getAttribute('href')).includes(stream10Digest1))).not.toBeVisible();
|
134
|
+
expect(queryAllByText('2').find(link => String(link.getAttribute('href')).includes(stream10Digest2))).not.toBeVisible();
|
135
|
+
expect(queryAllByText('3').find(link => String(link.getAttribute('href')).includes(stream10Digest3))).not.toBeVisible();
|
136
|
+
expect(queryAllByText('4').find(link => String(link.getAttribute('href')).includes(stream10Digest4))).not.toBeVisible();
|
137
|
+
expect(queryAllByText('6').find(link => String(link.getAttribute('href')).includes(stream9Digest))).not.toBeVisible();
|
138
|
+
|
139
|
+
// Check that the image host count links appear
|
140
|
+
const links = queryAllByRole('link');
|
141
|
+
const stream10Link = links.find(link => link.getAttribute('href') === `/new/hosts?search=bootc_booted_image%20=%20${centos10Image.bootc_booted_image}`);
|
142
|
+
const stream9Link = links.find(link => link.getAttribute('href') === `/new/hosts?search=bootc_booted_image%20=%20${centos9Image.bootc_booted_image}`);
|
143
|
+
expect(stream10Link).toBeVisible();
|
144
|
+
expect(stream9Link).toBeVisible();
|
145
|
+
|
146
|
+
// Check that the image names appear
|
147
|
+
expect(queryByText(centos10Image.bootc_booted_image)).toBeVisible();
|
148
|
+
expect(queryByText(centos9Image.bootc_booted_image)).toBeVisible();
|
149
|
+
|
150
|
+
// Check that the digest counts appear
|
151
|
+
expect(queryAllByText('4')[0].closest('td')).toBeVisible();
|
152
|
+
expect(queryAllByText('1')[1].closest('td')).toBeVisible();
|
153
|
+
|
154
|
+
// Check that the digest names don't appear
|
155
|
+
expect(queryByText(stream10Digest1).closest('td')).not.toBeVisible();
|
156
|
+
expect(queryByText(stream10Digest2).closest('td')).not.toBeVisible();
|
157
|
+
expect(queryByText(stream10Digest3).closest('td')).not.toBeVisible();
|
158
|
+
expect(queryByText(stream10Digest4).closest('td')).not.toBeVisible();
|
159
|
+
expect(queryByText(stream9Digest).closest('td')).not.toBeVisible();
|
160
|
+
});
|
161
|
+
|
162
|
+
assertNockRequest(autocompleteScope);
|
163
|
+
assertNockRequest(scope, done);
|
164
|
+
act(done);
|
165
|
+
});
|
166
|
+
|
167
|
+
test('Can handle no booted images being present', async (done) => {
|
168
|
+
const autocompleteScope = mockAutocomplete(nockInstance, autocompleteUrl, autocompleteQuery);
|
169
|
+
const noResults = {
|
170
|
+
total: 0,
|
171
|
+
subtotal: 0,
|
172
|
+
page: 1,
|
173
|
+
per_page: 20,
|
174
|
+
results: [],
|
175
|
+
};
|
176
|
+
const scope = nockInstance
|
177
|
+
.get(bootcImagesUrl)
|
178
|
+
.query(true)
|
179
|
+
// Why does the page load twice?
|
180
|
+
.times(2)
|
181
|
+
.reply(200, noResults);
|
182
|
+
const { queryByText } = renderWithRedux(<BootedContainerImagesPage />);
|
183
|
+
|
184
|
+
expect(queryByText(centos10Image.bootc_booted_image)).toBeNull();
|
185
|
+
await patientlyWaitFor(() => expect(queryByText('No Results')).toBeInTheDocument());
|
186
|
+
assertNockRequest(autocompleteScope);
|
187
|
+
assertNockRequest(scope, done);
|
188
|
+
});
|
189
|
+
|
190
|
+
test('Can handle pagination', async (done) => {
|
191
|
+
const largeBootcData = createBootedImages(100);
|
192
|
+
const { results } = largeBootcData;
|
193
|
+
const bootcFirstPage = { ...largeBootcData, ...{ results: results.slice(0, 20) } };
|
194
|
+
const bootcSecondPage = { ...largeBootcData, page: 2, results: results.slice(20, 40) };
|
195
|
+
const autocompleteScope = mockAutocomplete(nockInstance, autocompleteUrl, autocompleteQuery);
|
196
|
+
|
197
|
+
// Match first page API request
|
198
|
+
const firstPageScope = nockInstance
|
199
|
+
.get(bootcImagesUrl)
|
200
|
+
.query(true)
|
201
|
+
.times(2)
|
202
|
+
.reply(200, bootcFirstPage);
|
203
|
+
|
204
|
+
// Match second page API request
|
205
|
+
const secondPageScope = nockInstance
|
206
|
+
.get(bootcImagesUrl)
|
207
|
+
// Using a custom query params matcher because parameters can be strings
|
208
|
+
.query(actualQueryObject => (parseInt(actualQueryObject.page, 10) === 2))
|
209
|
+
.reply(200, bootcSecondPage);
|
210
|
+
const { queryByText, getAllByLabelText } = renderWithRedux(<BootedContainerImagesPage />);
|
211
|
+
// Wait for first paginated page to load and assert only the first page of results are present
|
212
|
+
await patientlyWaitFor(() => {
|
213
|
+
expect(queryByText(results[0].bootc_booted_image)).toBeInTheDocument();
|
214
|
+
expect(queryByText(results[19].bootc_booted_image)).toBeInTheDocument();
|
215
|
+
expect(queryByText(results[21].bootc_booted_image)).not.toBeInTheDocument();
|
216
|
+
});
|
217
|
+
|
218
|
+
// Label comes from patternfly, if this test fails, check if patternfly updated the label.
|
219
|
+
const [top, bottom] = getAllByLabelText('Go to next page');
|
220
|
+
expect(top).toBeInTheDocument();
|
221
|
+
expect(bottom).toBeInTheDocument();
|
222
|
+
bottom.click();
|
223
|
+
// Wait for second paginated page to load and assert only the second page of results are present
|
224
|
+
await patientlyWaitFor(() => {
|
225
|
+
expect(queryByText(results[20].bootc_booted_image)).toBeInTheDocument();
|
226
|
+
expect(queryByText(results[39].bootc_booted_image)).toBeInTheDocument();
|
227
|
+
expect(queryByText(results[41].bootc_booted_image)).not.toBeInTheDocument();
|
228
|
+
});
|
229
|
+
assertNockRequest(autocompleteScope);
|
230
|
+
assertNockRequest(firstPageScope);
|
231
|
+
assertNockRequest(secondPageScope, done);
|
232
|
+
act(done);
|
233
|
+
});
|