diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 410252d23..3a9b03c97 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -25,6 +25,7 @@ jobs: - stable-2.13 - stable-2.14 - stable-2.15 + - stable-2.16 - devel include: - python: "3.8" @@ -44,6 +45,8 @@ jobs: ansible: "stable-2.11" - python: "3.11" ansible: "devel" + - python: "3.12" + ansible: "devel" steps: - uses: actions/checkout@v4 - name: Set up Python @@ -57,8 +60,14 @@ jobs: run: apt-get update && apt-get install -y sudo if: matrix.container != null - name: Install system dependencies - # libyaml-dev for PyYAML, rpm for py-rpm-installer - run: sudo apt-get install -y libyaml-dev rpm + # libyaml-dev for PyYAML, rpm for rpm-py-installer, python3-rpm for rpm-shim + run: sudo apt-get install -y libyaml-dev rpm python3-rpm + - name: Fix up Python RPM binding filenames so that other Pythons find it + run: | + for file in /usr/lib/python3/dist-packages/rpm/_rpm*.cpython-*.so; do + sudo ln -s ${file} $(echo ${file} | sed 's/\.cpython[^.]*//'); + done + if: matrix.container == null - name: Install Ansible run: pip install --upgrade https://github.com/ansible/ansible/archive/${{ matrix.ansible }}.tar.gz - name: Ensure Jinja version is old enough for Ansible 2.9 @@ -79,7 +88,7 @@ jobs: run: make dist-test - name: Run sanity tests run: make SANITY_OPTS="--docker" sanity - if: matrix.ansible != 'v2.9.17' && matrix.ansible != 'stable-2.10' && matrix.ansible != 'stable-2.11' + if: matrix.ansible != 'v2.9.17' && matrix.ansible != 'stable-2.10' && matrix.ansible != 'stable-2.11' && matrix.ansible != 'stable-2.12' && matrix.ansible != 'stable-2.13' checkmode: runs-on: ubuntu-latest @@ -91,6 +100,14 @@ jobs: python-version: "3.11" cache: 'pip' cache-dependency-path: '**/requirements*.txt' + - name: Install system dependencies + # libyaml-dev for PyYAML, rpm for rpm-py-installer, python3-rpm for rpm-shim + run: sudo apt-get install -y libyaml-dev rpm python3-rpm + - name: Fix up Python RPM binding filenames so that other Pythons find it + run: | + for file in /usr/lib/python3/dist-packages/rpm/_rpm*.cpython-*.so; do + sudo ln -s ${file} $(echo ${file} | sed 's/\.cpython[^.]*//'); + done - name: Install Ansible run: pip install --upgrade ansible-core - name: Install dependencies diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 1b92a21ed..6aa67758e 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -20,10 +20,13 @@ jobs: with: python-version: "3.11" - name: Install Ansible - run: pip install --upgrade ansible py + run: pip install --upgrade ansible py antsibull-changelog - name: Build Ansible Collection run: make dist + - name: Build Changelog + run: antsibull-changelog generate --output release-changelog.txt --only-latest - name: Create GitHub Release uses: softprops/action-gh-release@v1 with: files: redhat-satellite-*.tar.gz + body_path: release-changelog.txt diff --git a/CHANGELOG.rst b/CHANGELOG.rst index beb7abebd..4b3015d1f 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -6,6 +6,20 @@ redhat.satellite Release Notes This changelog describes changes after version 0.8.1. +v3.15.0 +======= + +Minor Changes +------------- + +- content_view_publish role - allow passing ``async`` and ``poll`` to the module (https://github.com/theforeman/foreman-ansible-modules/pull/1676) +- convert2rhel role - install ``convert2rhel`` from ``cdn-public.redhat.com``, dropping the requirement of a custom CA cert + +Bugfixes +-------- + +- content_view_filter_rule - handle multiple rules for the same package but different architectures and versions correctly (https://bugzilla.redhat.com/show_bug.cgi?id=2189687) + v3.14.0 ======= diff --git a/Makefile b/Makefile index 83fa78031..b7bece09d 100644 --- a/Makefile +++ b/Makefile @@ -90,7 +90,7 @@ clean_%: FORCE $(MANIFEST) setup: test-setup test-setup: | tests/test_playbooks/vars/server.yml - pip install --upgrade --force-reinstall 'pip<23.1' + pip install --upgrade pip pip install --upgrade -r requirements-dev.txt tests/test_playbooks/vars/server.yml: diff --git a/changelogs/changelog.yaml b/changelogs/changelog.yaml index 2ee593e78..1e62306af 100644 --- a/changelogs/changelog.yaml +++ b/changelogs/changelog.yaml @@ -647,6 +647,21 @@ releases: name: smart_class_parameter_override_value namespace: '' release_date: '2023-09-08' + 3.15.0: + changes: + bugfixes: + - content_view_filter_rule - handle multiple rules for the same package but + different architectures and versions correctly (https://bugzilla.redhat.com/show_bug.cgi?id=2189687) + minor_changes: + - content_view_publish role - allow passing ``async`` and ``poll`` to the module + (https://github.com/theforeman/foreman-ansible-modules/pull/1676) + - convert2rhel role - install ``convert2rhel`` from ``cdn-public.redhat.com``, + dropping the requirement of a custom CA cert + fragments: + - 1672-convert2rhel-cdn-public.yml + - 1676-content_view_version-async-poll.yml + - bz2189687-content_view_filter_rule-handle-arch-version.yml + release_date: '2023-11-15' 3.2.0: changes: bugfixes: diff --git a/galaxy.yml b/galaxy.yml index d64a1da68..564ef67c4 100644 --- a/galaxy.yml +++ b/galaxy.yml @@ -93,12 +93,13 @@ authors: - "gardar " - "igramic <36156377+igramic@users.noreply.github.com>" - "jerrejkw <43955357+jerrejkw@users.noreply.github.com>" + - "linuxonfire " - "marco " - "metalcated " - "russianguppie <46544650+russianguppie@users.noreply.github.com>" - "willtome " - "yuqo2450 <79540477+yuqo2450@users.noreply.github.com>" -version: "3.14.0" +version: "3.15.0" license: - "GPL-3.0-or-later" tags: diff --git a/meta/runtime.yml b/meta/runtime.yml index 076bad919..0fde8cf0c 100644 --- a/meta/runtime.yml +++ b/meta/runtime.yml @@ -183,4 +183,4 @@ plugin_routing: redirect: redhat.satellite.sync_plan katello_upload: redirect: redhat.satellite.content_upload -requires_ansible: '>=2.9.17' +requires_ansible: '>=2.14' diff --git a/plugins/modules/content_view_filter_rule.py b/plugins/modules/content_view_filter_rule.py index 6b82db234..f164382d2 100644 --- a/plugins/modules/content_view_filter_rule.py +++ b/plugins/modules/content_view_filter_rule.py @@ -291,8 +291,10 @@ def main(): elif filter_type in ('rpm', 'docker', 'package_group', 'deb'): # these filter types support many rules # the name is the key to finding the proper one and is required for these types - content_view_filter_rule = module.find_resource_by_name('content_view_filter_rules', module.foreman_params['name'], - params=search_scope, failsafe=True) + search = [(key, module.foreman_params.get(key)) for key in ('name', 'architecture', 'version') if module.foreman_params.get(key)] + search_string = ','.join('{0}="{1}"'.format(key, val) for (key, val) in search) + content_view_filter_rule = module.find_resource('content_view_filter_rules', search_string, + params=search_scope, failsafe=True) if filter_type == 'package_group': # uuid is also a required value creating, but is implementation specific and not easily knowable to the end user - we find it for them diff --git a/requirements-dev.txt b/requirements-dev.txt index 0fbbeb97f..8936260a2 100644 --- a/requirements-dev.txt +++ b/requirements-dev.txt @@ -3,12 +3,14 @@ pytest-xdist pytest-forked pytest-clarity; python_version >= '3.6' urllib3<2 -vcrpy +vcrpy; python_version < '3.12' +git+https://github.com/kevin1024/vcrpy@69621c67fb29dedd9ece4a7bdbf50380fbe4c5ee; python_version >= '3.12' ansible_runner<2.0; python_version < '3.8' ansible_runner; python_version >= '3.8' python-debian<0.1.40; python_version < '3.7' python-debian; python_version >= '3.7' -rpm-py-installer +rpm; python_version >= '3.6' +rpm-py-installer; python_version < '3.6' rstcheck==3.5.0 # from https://github.com/ansible/ansible/raw/devel/test/sanity/code-smell/rstcheck.requirements.txt docker ruamel.yaml.clib<0.2.3; python_version < '3.6' diff --git a/roles/content_view_publish/README.md b/roles/content_view_publish/README.md index c73f54a19..23d25a52b 100644 --- a/roles/content_view_publish/README.md +++ b/roles/content_view_publish/README.md @@ -12,6 +12,11 @@ This role supports the [Common Role Variables](https://github.com/theforeman/for - `satellite_content_views`: List of Content Views to publish. It can be either a list of Content View names or a list of dictionaries with the parameters as accepted by the `content_view_version` module or the `content_views` role. +### Optional + +- `satellite_content_view_publish_async`: Asynchronous mode lets you control how long-running tasks execute. See the [Ansible documentation](https://docs.ansible.com/ansible/latest/playbook_guide/playbooks_async.html#asynchronous-playbook-tasks) for details. +- `satellite_content_view_publish_poll`: For asynchronous tasks, this is how often to check back on the status of those tasks. + Example Playbook ---------------- diff --git a/roles/content_view_publish/tasks/main.yml b/roles/content_view_publish/tasks/main.yml index 3efd725f2..ae45f12da 100644 --- a/roles/content_view_publish/tasks/main.yml +++ b/roles/content_view_publish/tasks/main.yml @@ -13,6 +13,8 @@ force_promote: "{{ content_view.force_promote | default(omit) }}" force_yum_metadata_regeneration: "{{ content_view.force_yum_metadata_regeneration | default(omit) }}" current_lifecycle_environment: "{{ content_view.current_lifecycle_environment | default(omit) }}" + async: "{{ satellite_content_view_publish_async | default(omit) }}" + poll: "{{ satellite_content_view_publish_poll | default(omit) }}" loop: "{{ satellite_content_views }}" loop_control: loop_var: "content_view" diff --git a/roles/convert2rhel/tasks/products_and_repos.yml b/roles/convert2rhel/tasks/products_and_repos.yml index 39749d752..d952bfeed 100644 --- a/roles/convert2rhel/tasks/products_and_repos.yml +++ b/roles/convert2rhel/tasks/products_and_repos.yml @@ -1,22 +1,4 @@ --- -- name: Check /etc/rhsm/ca/redhat-uep.pem - ansible.builtin.stat: - path: "/etc/rhsm/ca/redhat-uep.pem" - register: __satellite_ct - -- name: "Create 'Convert2RHEL' credentials" - redhat.satellite.content_credential: - username: "{{ satellite_username }}" - password: "{{ satellite_password }}" - server_url: "{{ satellite_server_url }}" - validate_certs: "{{ satellite_validate_certs | default(omit) }}" - organization: "{{ satellite_organization }}" - name: "Convert2RHEL CA" - content_type: cert - content: "{{ __satellite_ct.stat.exists | ternary(lookup('file', '/etc/rhsm/ca/redhat-uep.pem', errors='ignore', rstrip=False), - lookup('url', 'https://ftp.redhat.com/redhat/convert2rhel/redhat-uep.pem', split_lines=False)) }}" - state: present - - name: "Create product and repositories '{{ satellite_convert2rhel_rhel7_product }}'" ansible.builtin.include_role: name: redhat.satellite.repositories @@ -27,10 +9,9 @@ - name: "{{ satellite_convert2rhel_rhel7_repo }}" content_type: "yum" product: "{{ satellite_convert2rhel_rhel7_product }}" - url: "https://cdn.redhat.com/content/public/convert2rhel/7/x86_64/os/" + url: "https://cdn-public.redhat.com/content/public/addon/dist/convert2rhel/server/7/7Server/x86_64/os/" verify_ssl_on_sync: true download_policy: immediate - ssl_ca_cert: "Convert2RHEL CA" state: present when: satellite_content_rhel_enable_rhel7 @@ -44,10 +25,9 @@ - name: "{{ satellite_convert2rhel_rhel8_repo }}" content_type: "yum" product: "{{ satellite_convert2rhel_rhel8_product }}" - url: "https://cdn.redhat.com/content/public/convert2rhel/8/x86_64/os/" + url: "https://cdn-public.redhat.com/content/public/addon/dist/convert2rhel8/8/x86_64/os/" verify_ssl_on_sync: true download_policy: immediate - ssl_ca_cert: "Convert2RHEL CA" state: present when: satellite_content_rhel_enable_rhel8 diff --git a/tests/test_playbooks/content_view_filter_rule_info.yml b/tests/test_playbooks/content_view_filter_rule_info.yml index d5ff9807d..949838276 100644 --- a/tests/test_playbooks/content_view_filter_rule_info.yml +++ b/tests/test_playbooks/content_view_filter_rule_info.yml @@ -267,7 +267,7 @@ ansible.builtin.assert: fail_msg: "Ensuring content view filter info is valid failed!" that: - - "{{ result['content_view_filter_rules']|length }} != 0" + - result['content_view_filter_rules']|length != 0 - name: "Fetch content_view_filter_info - deb exlude" diff --git a/tests/test_playbooks/convert2rhel.yml b/tests/test_playbooks/convert2rhel.yml index 988dd01b0..8f8afce73 100644 --- a/tests/test_playbooks/convert2rhel.yml +++ b/tests/test_playbooks/convert2rhel.yml @@ -29,3 +29,57 @@ satellite_content_rhel_enable_rhel8: true satellite_convert2rhel_enable_oracle7: true satellite_convert2rhel_enable_oracle8: true + +- hosts: localhost + collections: + - redhat.satellite + gather_facts: false + vars_files: + - vars/server.yml + tasks: + - name: remove groups + include_tasks: tasks/hostgroup.yml + vars: + hostgroup_name: "{{ item }}" + hostgroup_state: "absent" + loop: + - CentOS 7 converting + - CentOS 8 converting + - Oracle Linux 7 converting + - Oracle Linux 8 converting + - name: remove keys + include_tasks: tasks/activation_key.yml + vars: + activation_key_name: "{{ item }}" + activation_key_state: "absent" + loop: + - convert2rhel_centos7 + - convert2rhel_centos8 + - convert2rhel_oracle7 + - convert2rhel_oracle8 + - convert2rhel_rhel7 + - convert2rhel_rhel8 + - name: remove content views + include_tasks: tasks/content_view.yml + vars: + content_view_name: "{{ item }}" + content_view_state: "absent" + loop: + - convert2rhel_centos7 + - convert2rhel_centos8 + - name: remove products + include_tasks: tasks/product.yml + vars: + product_name: "{{ item }}" + product_state: "absent" + loop: + - Oracle Linux 8 Convert2RHEL + - Oracle Linux 7 Convert2RHEL + - Convert2RHEL7 + - Convert2RHEL8 + + - name: remove organization + include_tasks: tasks/organization.yml + vars: + organization_name: "Test Organization" + organization_state: "absent" diff --git a/tests/test_playbooks/filters.yml b/tests/test_playbooks/filters.yml index 1c6c48353..9647914cb 100644 --- a/tests/test_playbooks/filters.yml +++ b/tests/test_playbooks/filters.yml @@ -10,8 +10,8 @@ msg: "{{ 'Test__String)' | redhat.satellite.cp_label }}" - assert: that: - - "{{ 'Test String' | redhat.satellite.cp_label == 'Test_String' }}" - - "{{ 'Test__String' | redhat.satellite.cp_label == 'Test__String' }}" - - "{{ 'Test--String' | redhat.satellite.cp_label == 'Test--String' }}" - - "{{ 'Test (String) 1234' | redhat.satellite.cp_label == 'Test_String_1234' }}" + - "'Test String' | redhat.satellite.cp_label == 'Test_String'" + - "'Test__String' | redhat.satellite.cp_label == 'Test__String'" + - "'Test--String' | redhat.satellite.cp_label == 'Test--String'" + - "'Test (String) 1234' | redhat.satellite.cp_label == 'Test_String_1234'" ... diff --git a/tests/test_playbooks/fixtures/convert2rhel-27.yml b/tests/test_playbooks/fixtures/convert2rhel-0.yml similarity index 53% rename from tests/test_playbooks/fixtures/convert2rhel-27.yml rename to tests/test_playbooks/fixtures/convert2rhel-0.yml index 73ef9714d..081431e2f 100644 --- a/tests/test_playbooks/fixtures/convert2rhel-27.yml +++ b/tests/test_playbooks/fixtures/convert2rhel-0.yml @@ -14,12 +14,14 @@ interactions: uri: https://foreman.example.org/api/status response: body: - string: '{"satellite_version":"6.14.0","result":"ok","status":200,"version":"3.7.0-develop","api_version":2}' + string: '{"result":"ok","status":200,"version":"3.7.1","api_version":2}' headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive + Content-Length: + - '102' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -33,70 +35,11 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-develop + - 3.7.1 Keep-Alive: - timeout=15, max=100 Strict-Transport-Security: - max-age=631139040; includeSubdomains - Transfer-Encoding: - - chunked - X-Content-Type-Options: - - nosniff - X-Download-Options: - - noopen - X-Frame-Options: - - sameorigin - X-Permitted-Cross-Domain-Policies: - - none - X-XSS-Protection: - - 1; mode=block - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json;version=2 - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - apypie (https://github.com/Apipie/apypie) - method: GET - uri: https://foreman.example.org/api/hostgroups?search=title%3D%22Oracle+Linux+7+converting%22&per_page=4294967296 - response: - body: - string: "{\n \"total\": 3,\n \"subtotal\": 0,\n \"page\": 1,\n \"per_page\": - 4294967296,\n \"search\": \"title=\\\"Oracle Linux 7 converting\\\"\",\n - \ \"sort\": {\n \"by\": null,\n \"order\": null\n },\n \"results\": - []\n}\n" - headers: - Cache-Control: - - max-age=0, private, must-revalidate - Connection: - - Keep-Alive - Content-Security-Policy: - - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; - style-src ''unsafe-inline'' ''self''' - Content-Type: - - application/json; charset=utf-8 - Foreman_api_version: - - '2' - Foreman_current_location: - - ; ANY - Foreman_current_organization: - - ; ANY - Foreman_version: - - 3.7.0-develop - Keep-Alive: - - timeout=15, max=99 - Strict-Transport-Security: - - max-age=631139040; includeSubdomains - Transfer-Encoding: - - chunked X-Content-Type-Options: - nosniff X-Download-Options: @@ -125,16 +68,18 @@ interactions: uri: https://foreman.example.org/katello/api/organizations?search=name%3D%22Test+Organization%22&per_page=4294967296 response: body: - string: "{\n \"total\": 3,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": + string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": 4294967296,\n \"search\": \"name=\\\"Test Organization\\\"\",\n \"sort\": - {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\":\"Test_Organization\",\"created_at\":\"2023-06-21 - 13:24:35 UTC\",\"updated_at\":\"2023-06-21 13:24:38 UTC\",\"id\":5,\"name\":\"Test + {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\":\"Test_Organization\",\"created_at\":\"2023-11-13 + 09:23:21 UTC\",\"updated_at\":\"2023-11-13 09:23:23 UTC\",\"id\":4,\"name\":\"Test Organization\",\"title\":\"Test Organization\",\"description\":\"A test organization\"}]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive + Content-Length: + - '388' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -148,13 +93,11 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-develop + - 3.7.1 Keep-Alive: - - timeout=15, max=98 + - timeout=15, max=99 Strict-Transport-Security: - max-age=631139040; includeSubdomains - Transfer-Encoding: - - chunked X-Content-Type-Options: - nosniff X-Download-Options: @@ -180,19 +123,19 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/organizations?search=name%3D%22Test+Organization%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/organizations/4/products?search=name%3D%22Convert2RHEL7%22&per_page=4294967296 response: body: - string: "{\n \"total\": 3,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": - 4294967296,\n \"search\": \"name=\\\"Test Organization\\\"\",\n \"sort\": - {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\":\"Test_Organization\",\"created_at\":\"2023-06-21 - 13:24:35 UTC\",\"updated_at\":\"2023-06-21 13:24:38 UTC\",\"id\":5,\"name\":\"Test - Organization\",\"title\":\"Test Organization\",\"description\":\"A test organization\"}]\n}\n" + string: '{"total":0,"subtotal":0,"selectable":0,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Convert2RHEL7\"","sort":{"by":"name","order":"asc"},"results":[]} + + ' headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive + Content-Length: + - '168' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -204,15 +147,13 @@ interactions: Foreman_current_location: - ; ANY Foreman_current_organization: - - ; ANY + - 4; Test Organization Foreman_version: - - 3.7.0-develop + - 3.7.1 Keep-Alive: - - timeout=15, max=97 + - timeout=15, max=98 Strict-Transport-Security: - max-age=631139040; includeSubdomains - Transfer-Encoding: - - chunked X-Content-Type-Options: - nosniff X-Download-Options: @@ -227,9 +168,7 @@ interactions: code: 200 message: OK - request: - body: '{"hostgroup": {"name": "Oracle Linux 7 converting", "group_parameters_attributes": - [{"name": "kt_activation_keys", "parameter_type": "string", "value": "convert2rhel_oracle7"}], - "organization_ids": [5]}}' + body: '{"organization_id": 4, "name": "Convert2RHEL7"}' headers: Accept: - application/json;version=2 @@ -238,26 +177,27 @@ interactions: Connection: - keep-alive Content-Length: - - '203' + - '47' Content-Type: - application/json User-Agent: - apypie (https://github.com/Apipie/apypie) method: POST - uri: https://foreman.example.org/api/hostgroups + uri: https://foreman.example.org/katello/api/products response: body: - string: '{"subnet_id":null,"subnet_name":null,"operatingsystem_id":null,"operatingsystem_name":null,"domain_id":null,"domain_name":null,"compute_profile_id":null,"compute_profile_name":null,"ancestry":null,"parent_id":null,"parent_name":null,"ptable_id":null,"ptable_name":null,"medium_id":null,"medium_name":null,"pxe_loader":null,"subnet6_id":null,"subnet6_name":null,"compute_resource_id":null,"compute_resource_name":null,"architecture_id":null,"architecture_name":null,"realm_id":null,"realm_name":null,"created_at":"2023-06-21 - 13:29:47 UTC","updated_at":"2023-06-21 13:29:47 UTC","id":4,"name":"Oracle - Linux 7 converting","title":"Oracle Linux 7 converting","description":null,"puppet_proxy_id":null,"puppet_proxy_name":null,"puppet_ca_proxy_id":null,"puppet_ca_proxy_name":null,"openscap_proxy_id":null,"openscap_proxy_name":null,"puppet_proxy":null,"puppet_ca_proxy":null,"openscap_proxy":null,"inherited_compute_profile_id":null,"inherited_domain_id":null,"inherited_puppet_proxy_id":null,"inherited_puppet_ca_proxy_id":null,"inherited_compute_resource_id":null,"inherited_operatingsystem_id":null,"inherited_architecture_id":null,"inherited_medium_id":null,"inherited_ptable_id":null,"inherited_subnet_id":null,"inherited_subnet6_id":null,"inherited_realm_id":null,"inherited_pxe_loader":null,"parameters":[{"priority":60,"created_at":"2023-06-21 - 13:29:47 UTC","updated_at":"2023-06-21 13:29:47 UTC","id":11,"name":"kt_activation_keys","parameter_type":"string","associated_type":"host - group","hidden_value?":false,"value":"convert2rhel_oracle7"}],"template_combinations":[],"locations":[],"organizations":[{"id":5,"name":"Test - Organization","title":"Test Organization","description":"A test organization"}]}' + string: ' {"sync_state_aggregated":null,"redhat":false,"id":5,"cp_id":"176163814735","name":"Convert2RHEL7","label":"Convert2RHEL7","description":null,"provider_id":5,"sync_plan_id":null,"sync_summary":{},"gpg_key_id":null,"ssl_ca_cert_id":null,"ssl_client_cert_id":null,"ssl_client_key_id":null,"sync_state":null,"last_sync":null,"last_sync_words":null,"organization_id":4,"organization":{"name":"Test + Organization","label":"Test_Organization","id":4},"sync_plan":null,"repository_count":0,"created_at":"2023-11-13 + 09:23:24 UTC","updated_at":"2023-11-13 09:23:24 UTC","product_content":[],"available_content":[],"repositories":[],"provider":{"name":"Anonymous"},"sync_status":{"id":null,"product_id":null,"progress":null,"sync_id":null,"state":null,"raw_state":null,"start_time":null,"finish_time":null,"duration":null,"display_size":null,"size":null,"is_running":null,"error_details":null},"permissions":{"view_products":true,"edit_products":true,"destroy_products":true,"sync_products":true},"published_content_view_ids":[],"has_last_affected_repo_in_filter":false,"active_task_count":0} + + ' headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive + Content-Length: + - '1083' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -269,15 +209,13 @@ interactions: Foreman_current_location: - ; ANY Foreman_current_organization: - - ; ANY + - 4; Test Organization Foreman_version: - - 3.7.0-develop + - 3.7.1 Keep-Alive: - - timeout=15, max=96 + - timeout=15, max=97 Strict-Transport-Security: - max-age=631139040; includeSubdomains - Transfer-Encoding: - - chunked X-Content-Type-Options: - nosniff X-Download-Options: diff --git a/tests/test_playbooks/fixtures/convert2rhel-1.yml b/tests/test_playbooks/fixtures/convert2rhel-1.yml index cb200b764..2174fd25c 100644 --- a/tests/test_playbooks/fixtures/convert2rhel-1.yml +++ b/tests/test_playbooks/fixtures/convert2rhel-1.yml @@ -14,12 +14,14 @@ interactions: uri: https://foreman.example.org/api/status response: body: - string: '{"satellite_version":"6.14.0","result":"ok","status":200,"version":"3.7.0-develop","api_version":2}' + string: '{"result":"ok","status":200,"version":"3.7.1","api_version":2}' headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive + Content-Length: + - '102' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -33,13 +35,11 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-develop + - 3.7.1 Keep-Alive: - timeout=15, max=100 Strict-Transport-Security: - max-age=631139040; includeSubdomains - Transfer-Encoding: - - chunked X-Content-Type-Options: - nosniff X-Download-Options: @@ -68,16 +68,18 @@ interactions: uri: https://foreman.example.org/katello/api/organizations?search=name%3D%22Test+Organization%22&per_page=4294967296 response: body: - string: "{\n \"total\": 3,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": + string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": 4294967296,\n \"search\": \"name=\\\"Test Organization\\\"\",\n \"sort\": - {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\":\"Test_Organization\",\"created_at\":\"2023-06-21 - 13:24:35 UTC\",\"updated_at\":\"2023-06-21 13:24:38 UTC\",\"id\":5,\"name\":\"Test + {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\":\"Test_Organization\",\"created_at\":\"2023-11-13 + 09:23:21 UTC\",\"updated_at\":\"2023-11-13 09:23:23 UTC\",\"id\":4,\"name\":\"Test Organization\",\"title\":\"Test Organization\",\"description\":\"A test organization\"}]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive + Content-Length: + - '388' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -91,13 +93,11 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-develop + - 3.7.1 Keep-Alive: - timeout=15, max=99 Strict-Transport-Security: - max-age=631139040; includeSubdomains - Transfer-Encoding: - - chunked X-Content-Type-Options: - nosniff X-Download-Options: @@ -123,11 +123,11 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/content_credentials?organization_id=5&search=name%3D%22Convert2RHEL+CA%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/organizations/4/products?search=name%3D%22Convert2RHEL7%22&per_page=4294967296 response: body: - string: '{"total":0,"subtotal":0,"selectable":0,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Convert2RHEL - CA\"","sort":{"by":"name","order":"asc"},"results":[]} + string: '{"total":1,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Convert2RHEL7\"","sort":{"by":"name","order":"asc"},"results":[{"id":5,"cp_id":"176163814735","name":"Convert2RHEL7","label":"Convert2RHEL7","description":null,"provider_id":5,"sync_plan_id":null,"sync_summary":{},"gpg_key_id":null,"ssl_ca_cert_id":null,"ssl_client_cert_id":null,"ssl_client_key_id":null,"sync_state":null,"last_sync":null,"last_sync_words":null,"organization_id":4,"organization":{"name":"Test + Organization","label":"Test_Organization","id":4},"sync_plan":null,"repository_count":0}]} ' headers: @@ -135,6 +135,8 @@ interactions: - max-age=0, private, must-revalidate Connection: - Keep-Alive + Content-Length: + - '605' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -146,15 +148,13 @@ interactions: Foreman_current_location: - ; ANY Foreman_current_organization: - - 5; Test Organization + - 4; Test Organization Foreman_version: - - 3.7.0-develop + - 3.7.1 Keep-Alive: - timeout=15, max=98 Strict-Transport-Security: - max-age=631139040; includeSubdomains - Transfer-Encoding: - - chunked X-Content-Type-Options: - nosniff X-Download-Options: @@ -169,11 +169,66 @@ interactions: code: 200 message: OK - request: - body: '{"organization_id": 5, "name": "Convert2RHEL CA", "content_type": "cert", - "content": "-----BEGIN CERTIFICATE-----\nMIIG/TCCBOWgAwIBAgIBNzANBgkqhkiG9w0BAQUFADCBsTELMAkGA1UEBhMCVVMx\nFzAVBgNVBAgMDk5vcnRoIENhcm9saW5hMRYwFAYDVQQKDA1SZWQgSGF0LCBJbmMu\nMRgwFgYDVQQLDA9SZWQgSGF0IE5ldHdvcmsxMTAvBgNVBAMMKFJlZCBIYXQgRW50\naXRsZW1lbnQgT3BlcmF0aW9ucyBBdXRob3JpdHkxJDAiBgkqhkiG9w0BCQEWFWNh\nLXN1cHBvcnRAcmVkaGF0LmNvbTAeFw0xMDEwMDQxMzI3NDhaFw0zMDA5MjkxMzI3\nNDhaMIGuMQswCQYDVQQGEwJVUzEXMBUGA1UECAwOTm9ydGggQ2Fyb2xpbmExFjAU\nBgNVBAoMDVJlZCBIYXQsIEluYy4xGDAWBgNVBAsMD1JlZCBIYXQgTmV0d29yazEu\nMCwGA1UEAwwlUmVkIEhhdCBFbnRpdGxlbWVudCBQcm9kdWN0IEF1dGhvcml0eTEk\nMCIGCSqGSIb3DQEJARYVY2Etc3VwcG9ydEByZWRoYXQuY29tMIICIjANBgkqhkiG\n9w0BAQEFAAOCAg8AMIICCgKCAgEA2QurMeAVnCHVsuZNQzciWMdpd4LAVk2eGugN\n0cxmBpzoVI8lIsJOmJkpOAuFOQMX9CBr8RuQyg4r1/OH/rfhm6FgGIw8TGKZoWC/\n1B9teZqTiM85k6/1GRNxdk6dUK77HVO0PMIKtNBHRxIsXcRzJ1q+u5WPBes9pEVG\nnbidTNUkknrSIdynTJcqAI/I0VAsqLqX87XJSzXKvRilE+p/fLHmVTAffl1Cn/Dy\nKULxna7ooyrKKnfqeQ5dK8aMr1ASQ1wphWohLjegly9V0amEi+HHWnOL8toxJy8v\nWUTUzzAvZ4ZTtTV26xGetZZWEaNyv7YCv2AexjcBQ2x+ejrFJrVNo9jizHS06HK8\nUgHVDKhmVcAe2/5yrJCjKDLwg1FJfjKwhzhLYdNVCejpy8CHQndwO0EX1hHv/AfP\nRTAmr5qPhHFD+uuIrYrSLUpgMLmWa9dinJcGeKlA1KJvG5emGMM3k64Xr7dJToXo\n5loGyZ6lvKPIKLmfeXMRW/4+BqyzwbO1i4aIHAZcSPDFGKWwuvF0iVUYUUVxw0nv\nqPZA4roq5+j/YSz0q5XGVgiIt34htlvunLp/ICGYJBR6zEHcB9aZGJdDcJvoYZjw\n7Gphw6lFF6Ta4imoyhGECWKjd1ips3opcN+DlU0yCUrcIXVIXAnkTwu5ocOgAkxr\nf/6FjqcCAwEAAaOCAR8wggEbMB0GA1UdDgQWBBSW/bscQED/QIStsh8LJsHDam/W\nfDCB5QYDVR0jBIHdMIHagBTESXhWRZ0eLGFgw2ZLWAU3LwMie6GBtqSBszCBsDEL\nMAkGA1UEBhMCVVMxFzAVBgNVBAgMDk5vcnRoIENhcm9saW5hMRAwDgYDVQQHDAdS\nYWxlaWdoMRYwFAYDVQQKDA1SZWQgSGF0LCBJbmMuMRgwFgYDVQQLDA9SZWQgSGF0\nIE5ldHdvcmsxHjAcBgNVBAMMFUVudGl0bGVtZW50IE1hc3RlciBDQTEkMCIGCSqG\nSIb3DQEJARYVY2Etc3VwcG9ydEByZWRoYXQuY29tggkAkYrPyoUAAAAwEgYDVR0T\nAQH/BAgwBgEB/wIBADANBgkqhkiG9w0BAQUFAAOCAgEArWBznYWKpY4LqAzhOSop\nt30D2/UlCSr50l33uUCNYD4D4nTr/pyX3AR6P3JcOCz0t22pVCg8D3DZc5VlzY7y\nP5RD3KbLxFNJTloclMG0n6aIN7baA4b8zwkduMQvKZnA/YNR5xE7V7J2WJHCEBBB\nZ+ZFwGpGsoZpPZP4hHLVke3xHm6A5F5SzP1Ug0T9W80VLK4jtgyGs8l1R7rXiOIt\nNik8317KGq7DU8TI2Rw/9Gc8FKNfUYcVD7uC/MMQXJTRvkADmNLtZM63nhzpg1Hr\nhA6U5YcDCBKsPA43/wsPOONYtrAlToD5hJhU+1Rhmwcw3qvWBO3NkdilqGFOTc2K\n50PQrqoRTCZFS41nv2WqZFfbvSq4dZRJl8xpB4LAHSspsMrbr9WZHX5fbggf6ixw\nS9KDqQbM7asP0FEKBFXJV1rE8P/oSK6yVWQyigTsNcdGR4AUzDsTO9udcwoM2Ed4\nXdakVkF+dXm9ZBwv5UBf5ITSyMXL3qlusIOblJVGUQizumoq0LiSnjwbkxh2XHhd\nXD/B/qax7FnaNg+TfujR/kk3kF1OpqWx/wC/qPR+zho1+35Al31gZOfNIn/sReoM\ntcci9LFHGvijIy4VUDQK8HmGjIxJPrIIe1nB5BkiGyjwn00D5q+BwYVst1C68Rwx\niRZpyzOZmeineJvhrJZ4Tvs=\n-----END - CERTIFICATE-----\n-----BEGIN CERTIFICATE-----\nMIIGejCCBGKgAwIBAgIJAJGKz8qFAAAIMA0GCSqGSIb3DQEBDAUAMIGwMQswCQYD\nVQQGEwJVUzEXMBUGA1UECAwOTm9ydGggQ2Fyb2xpbmExEDAOBgNVBAcMB1JhbGVp\nZ2gxFjAUBgNVBAoMDVJlZCBIYXQsIEluYy4xGDAWBgNVBAsMD1JlZCBIYXQgTmV0\nd29yazEeMBwGA1UEAwwVRW50aXRsZW1lbnQgTWFzdGVyIENBMSQwIgYJKoZIhvcN\nAQkBFhVjYS1zdXBwb3J0QHJlZGhhdC5jb20wHhcNMTgwOTEyMTgxMzIxWhcNMzAw\nMzE1MTgxMzIxWjCBsTELMAkGA1UEBhMCVVMxFzAVBgNVBAgMDk5vcnRoIENhcm9s\naW5hMRYwFAYDVQQKDA1SZWQgSGF0LCBJbmMuMRgwFgYDVQQLDA9SZWQgSGF0IE5l\ndHdvcmsxMTAvBgNVBAMMKFJlZCBIYXQgRW50aXRsZW1lbnQgT3BlcmF0aW9ucyBB\ndXRob3JpdHkxJDAiBgkqhkiG9w0BCQEWFWNhLXN1cHBvcnRAcmVkaGF0LmNvbTCC\nAiIwDQYJKoZIhvcNAQEBBQADggIPADCCAgoCggIBALsmiohDnNvIpBMZVJR5pbP6\nGrE5B4doUmvTeR4XJ5C66uvFTwuGTVigNXAL+0UWf9r2AwxKEPCy65h7fLbyK4W7\n/xEZPVsamQYDHpyBwlkPkJ3WhHneqQWC8bKkv8Iqu08V+86biCDDAh6uP0SiAz7a\nNGaLEnOe5L9WNfsYyNwrG+2AfiLy/1LUtmmg5dc6Ln7R+uv0PZJ5J2iUbiT6lMz3\nv73zAxuEjiDNurZzxzHSSEYzw0W1eO6zM4F26gcOuH2BHemPMjHi+c1OnheaafDE\nHQJTNgECz5Xe7WGdZwOyn9a8GtMvm0PAhGVyp7RAWxxfoU1B794cBb66IKKjliJQ\n5DKoqyxD9qJbMF8U4Kd1ZIVB0Iy2WEaaqCFMIi3xtlWVUNku5x21ewMmJvwjnWZA\ntUeKQUFwIXqSjuOoZDu80H6NQb+4dnRSjWlx/m7HPk75m0zErshpB2HSKUnrs4wR\ni7GsWDDcqBus7eLMwUZPvDNVcLQu/2Y4DUHNbJbn7+DwEqi5D0heC+dyY8iS45gp\nI/yhVvq/GfKL+dqjaNaE4CorJJA5qJ9f383Ol/aub+aJeBahCBNuVa2daA9Bo3BA\ndnL7KkILPFyCcEhQITnu70Qn9sQlwYcRoYF2LWAm9DtLrBT0Y0w7wQHh8vNhwEQ7\nk5G87WpwzcC8y6ePR0vFAgMBAAGjgZMwgZAwHQYDVR0OBBYEFMRJeFZFnR4sYWDD\nZktYBTcvAyJ7MB8GA1UdIwQYMBaAFIhLpkXERuyP1s+m9hrPJjyQzH8XMAwGA1Ud\nEwQFMAMBAf8wCwYDVR0PBAQDAgEGMBEGCWCGSAGG+EIBAQQEAwIBBjAgBgNVHREE\nGTAXgRVjYS1zdXBwb3J0QHJlZGhhdC5jb20wDQYJKoZIhvcNAQEMBQADggIBAGKk\nq5Ab0AC7SOCYq9up5z0twbe+gI72cm854+VhcxafnLP2/4nH6nQauKLKEFLI8+fV\nRAwYxm1f5nuEiaTvjPE0umYdgMlpEJQeGdW/+/DotDaOon1G6bSMEKFvaKcBHKqa\nkBxQ29trwMG2WN8qZ7/H3XzBvLZ+JrYr01vDSV0P4tcBFOytbMZeJr4xmfxiqWxp\nVUM9eGf6z+ngXyth8lohxGd9MMXwsaPdvM+wptp3AQpq5wFPWyfJqCd6uBxu09k1\nns3Y/sya2GHqDK4bUW6gCHO13gkYviTCIBLAlX7PDeK5nYVcq8HvTLU9+H9BFGix\nYGDdHphz7i5qO/gLLLcfKhENP6jtbe8i6nwqeDzj+DMy38iMWNYFVWn1OrBaQMtf\nwlVfyRJij9SfyiUAVFld1RoPAN/haf1VmF/0dGrOigibYijqnHvDJffMUND/sbk8\ndf6O6VYjvLLlwry4W4dHiLLA7NAHGtkUv2g1+oH1lQIfRG+PvZhWz4pGT1AlzfwD\naXUfX2X+Bo9tYr9BGy5Li1pLGLvfw+an7cBAbBaw8+HhAHt+Vm4F03KX/bHlge0a\nfMYK6FoA/xQSaZ6IPm4HfPSMvhboguVG+/AZQN4/UxjDleoEz8b0CWYafcJRRZch\nBdxBjTy7JLf3j0HCbenZQF83wwtrSmiTOTK1tLsm\n-----END - CERTIFICATE-----\n-----BEGIN CERTIFICATE-----\nMIIHZDCCBUygAwIBAgIJAOb+QiglyeZeMA0GCSqGSIb3DQEBBQUAMIGwMQswCQYD\nVQQGEwJVUzEXMBUGA1UECAwOTm9ydGggQ2Fyb2xpbmExEDAOBgNVBAcMB1JhbGVp\nZ2gxFjAUBgNVBAoMDVJlZCBIYXQsIEluYy4xGDAWBgNVBAsMD1JlZCBIYXQgTmV0\nd29yazEeMBwGA1UEAwwVRW50aXRsZW1lbnQgTWFzdGVyIENBMSQwIgYJKoZIhvcN\nAQkBFhVjYS1zdXBwb3J0QHJlZGhhdC5jb20wHhcNMTAwMzE3MTkwMDQ0WhcNMzAw\nMzEyMTkwMDQ0WjCBsDELMAkGA1UEBhMCVVMxFzAVBgNVBAgMDk5vcnRoIENhcm9s\naW5hMRAwDgYDVQQHDAdSYWxlaWdoMRYwFAYDVQQKDA1SZWQgSGF0LCBJbmMuMRgw\nFgYDVQQLDA9SZWQgSGF0IE5ldHdvcmsxHjAcBgNVBAMMFUVudGl0bGVtZW50IE1h\nc3RlciBDQTEkMCIGCSqGSIb3DQEJARYVY2Etc3VwcG9ydEByZWRoYXQuY29tMIIC\nIjANBgkqhkiG9w0BAQEFAAOCAg8AMIICCgKCAgEA2Z+mW7OYcBcGxWS+RSKG2GJ2\ncsMXiGGfEp36vKVsIvypmNS60SkicKENMYREalbdSjrgfXxPJygZWsVWJ5lHPfBV\no3WkFrFHTIXd/R6LxnaHD1m8Cx3GwEeuSlE/ASjc1ePtMnsHH7xqZ9wdl85b1C8O\nscgO7fwuM192kvv/veI/BogIqUQugtG6szXpV8dp4ml029LXFoNIy2lfFoa2wKYw\nMiUHwtYgAz7TDY63e8qGhd5PoqTv9XKQogo2ze9sF9y/npZjliNy5qf6bFE+24oW\nE8pGsp3zqz8h5mvw4v+tfIx5uj7dwjDteFrrWD1tcT7UmNrBDWXjKMG81zchq3h4\netgF0iwMHEuYuixiJWNzKrLNVQbDmcLGNOvyJfq60tM8AUAd72OUQzivBegnWMit\nCLcT5viCT1AIkYXt7l5zc/duQWLeAAR2FmpZFylSukknzzeiZpPclRziYTboDYHq\nrevM97eER1xsfoSYp4mJkBHfdlqMnf3CWPcNgru8NbEPeUGMI6+C0YvknPlqDDtU\nojfl4qNdf6nWL+YNXpR1YGKgWGWgTU6uaG8Sc6qGfAoLHh6oGwbuz102j84OgjAJ\nDGv/S86svmZWSqZ5UoJOIEqFYrONcOSgztZ5tU+gP4fwRIkTRbTEWSgudVREOXhs\nbfN1YGP7HYvS0OiBKZUCAwEAAaOCAX0wggF5MB0GA1UdDgQWBBSIS6ZFxEbsj9bP\npvYazyY8kMx/FzCB5QYDVR0jBIHdMIHagBSIS6ZFxEbsj9bPpvYazyY8kMx/F6GB\ntqSBszCBsDELMAkGA1UEBhMCVVMxFzAVBgNVBAgMDk5vcnRoIENhcm9saW5hMRAw\nDgYDVQQHDAdSYWxlaWdoMRYwFAYDVQQKDA1SZWQgSGF0LCBJbmMuMRgwFgYDVQQL\nDA9SZWQgSGF0IE5ldHdvcmsxHjAcBgNVBAMMFUVudGl0bGVtZW50IE1hc3RlciBD\nQTEkMCIGCSqGSIb3DQEJARYVY2Etc3VwcG9ydEByZWRoYXQuY29tggkA5v5CKCXJ\n5l4wDAYDVR0TBAUwAwEB/zALBgNVHQ8EBAMCAQYwEQYJYIZIAYb4QgEBBAQDAgEG\nMCAGA1UdEQQZMBeBFWNhLXN1cHBvcnRAcmVkaGF0LmNvbTAgBgNVHRIEGTAXgRVj\nYS1zdXBwb3J0QHJlZGhhdC5jb20wDQYJKoZIhvcNAQEFBQADggIBAJ1hEdNBDTRr\n6kI6W6stoogSUwjuiWPDY8DptwGhdpyIfbCoxvBR7F52DlwyXOpCunogfKMRklnE\ngH1Wt66RYkgNuJcenKHAhR5xgSLoPCOVF9rDjMunyyBuxjIbctM21R7BswVpsEIE\nOpV5nlJ6wkHsrn0/E+Zk5UJdCzM+Fp4hqHtEn/c97nvRspQcpWeDg6oUvaJSZTGM\n8yFpzR90X8ZO4rOgpoERukvYutUfJUzZuDyS3LLc6ysamemH93rZXr52zc4B+C9G\nEm8zemDgIPaH42ce3C3TdVysiq/yk+ir7pxW8toeavFv75l1UojFSjND+Q2AlNQn\npYkmRznbD5TZ3yDuPFQG2xYKnMPACepGgKZPyErtOIljQKCdgcvb9EqNdZaJFz1+\n/iWKYBL077Y0CKwb+HGIDeYdzrYxbEd95YuVU0aStnf2Yii2tLcpQtK9cC2+DXjL\nYf3kQs4xzH4ZejhG9wzv8PGXOS8wHYnfVNA3+fclDEQ1mEBKWHHmenGI6QKZUP8f\ng0SQ3PNRnSZu8R+rhABOEuVFIBRlaYijg2Pxe0NgL9FlHsNyRfo6EUrB2QFRKACW\n3Mo6pZyDjQt7O8J7l9B9IIURoJ1niwygf7VSJTMl2w3fFleNJlZTGgdXw0V+5g+9\nKg6Ay0rrsi4nw1JHue2GvdjdfVOaWSWC\n-----END - CERTIFICATE-----\n"}' + body: null + headers: + Accept: + - application/json;version=2 + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - apypie (https://github.com/Apipie/apypie) + method: GET + uri: https://foreman.example.org/katello/api/products/5/repositories?search=name%3D%22Convert2RHEL7+main%22&per_page=4294967296 + response: + body: + string: '{"total":0,"subtotal":0,"selectable":0,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Convert2RHEL7 + main\"","sort":{"by":"name","order":"asc"},"results":[],"org_repository_count":0} + + ' + headers: + Cache-Control: + - max-age=0, private, must-revalidate + Connection: + - Keep-Alive + Content-Length: + - '198' + Content-Security-Policy: + - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: + - application/json; charset=utf-8 + Foreman_api_version: + - '2' + Foreman_current_location: + - ; ANY + Foreman_current_organization: + - ; ANY + Foreman_version: + - 3.7.1 + Keep-Alive: + - timeout=15, max=97 + Strict-Transport-Security: + - max-age=631139040; includeSubdomains + X-Content-Type-Options: + - nosniff + X-Download-Options: + - noopen + X-Frame-Options: + - sameorigin + X-Permitted-Cross-Domain-Policies: + - none + X-XSS-Protection: + - 1; mode=block + status: + code: 200 + message: OK +- request: + body: '{"name": "Convert2RHEL7 main", "product_id": 5, "content_type": "yum", + "url": "https://cdn-public.redhat.com/content/public/addon/dist/convert2rhel/server/7/7Server/x86_64/os/", + "download_policy": "immediate", "verify_ssl_on_sync": true}' headers: Accept: - application/json;version=2 @@ -182,22 +237,21 @@ interactions: Connection: - keep-alive Content-Length: - - '7618' + - '237' Content-Type: - application/json User-Agent: - apypie (https://github.com/Apipie/apypie) method: POST - uri: https://foreman.example.org/katello/api/content_credentials + uri: https://foreman.example.org/katello/api/repositories response: body: - string: ' {"name":"Convert2RHEL CA","content_type":"cert","content":"-----BEGIN - CERTIFICATE-----\nMIIG/TCCBOWgAwIBAgIBNzANBgkqhkiG9w0BAQUFADCBsTELMAkGA1UEBhMCVVMx\nFzAVBgNVBAgMDk5vcnRoIENhcm9saW5hMRYwFAYDVQQKDA1SZWQgSGF0LCBJbmMu\nMRgwFgYDVQQLDA9SZWQgSGF0IE5ldHdvcmsxMTAvBgNVBAMMKFJlZCBIYXQgRW50\naXRsZW1lbnQgT3BlcmF0aW9ucyBBdXRob3JpdHkxJDAiBgkqhkiG9w0BCQEWFWNh\nLXN1cHBvcnRAcmVkaGF0LmNvbTAeFw0xMDEwMDQxMzI3NDhaFw0zMDA5MjkxMzI3\nNDhaMIGuMQswCQYDVQQGEwJVUzEXMBUGA1UECAwOTm9ydGggQ2Fyb2xpbmExFjAU\nBgNVBAoMDVJlZCBIYXQsIEluYy4xGDAWBgNVBAsMD1JlZCBIYXQgTmV0d29yazEu\nMCwGA1UEAwwlUmVkIEhhdCBFbnRpdGxlbWVudCBQcm9kdWN0IEF1dGhvcml0eTEk\nMCIGCSqGSIb3DQEJARYVY2Etc3VwcG9ydEByZWRoYXQuY29tMIICIjANBgkqhkiG\n9w0BAQEFAAOCAg8AMIICCgKCAgEA2QurMeAVnCHVsuZNQzciWMdpd4LAVk2eGugN\n0cxmBpzoVI8lIsJOmJkpOAuFOQMX9CBr8RuQyg4r1/OH/rfhm6FgGIw8TGKZoWC/\n1B9teZqTiM85k6/1GRNxdk6dUK77HVO0PMIKtNBHRxIsXcRzJ1q+u5WPBes9pEVG\nnbidTNUkknrSIdynTJcqAI/I0VAsqLqX87XJSzXKvRilE+p/fLHmVTAffl1Cn/Dy\nKULxna7ooyrKKnfqeQ5dK8aMr1ASQ1wphWohLjegly9V0amEi+HHWnOL8toxJy8v\nWUTUzzAvZ4ZTtTV26xGetZZWEaNyv7YCv2AexjcBQ2x+ejrFJrVNo9jizHS06HK8\nUgHVDKhmVcAe2/5yrJCjKDLwg1FJfjKwhzhLYdNVCejpy8CHQndwO0EX1hHv/AfP\nRTAmr5qPhHFD+uuIrYrSLUpgMLmWa9dinJcGeKlA1KJvG5emGMM3k64Xr7dJToXo\n5loGyZ6lvKPIKLmfeXMRW/4+BqyzwbO1i4aIHAZcSPDFGKWwuvF0iVUYUUVxw0nv\nqPZA4roq5+j/YSz0q5XGVgiIt34htlvunLp/ICGYJBR6zEHcB9aZGJdDcJvoYZjw\n7Gphw6lFF6Ta4imoyhGECWKjd1ips3opcN+DlU0yCUrcIXVIXAnkTwu5ocOgAkxr\nf/6FjqcCAwEAAaOCAR8wggEbMB0GA1UdDgQWBBSW/bscQED/QIStsh8LJsHDam/W\nfDCB5QYDVR0jBIHdMIHagBTESXhWRZ0eLGFgw2ZLWAU3LwMie6GBtqSBszCBsDEL\nMAkGA1UEBhMCVVMxFzAVBgNVBAgMDk5vcnRoIENhcm9saW5hMRAwDgYDVQQHDAdS\nYWxlaWdoMRYwFAYDVQQKDA1SZWQgSGF0LCBJbmMuMRgwFgYDVQQLDA9SZWQgSGF0\nIE5ldHdvcmsxHjAcBgNVBAMMFUVudGl0bGVtZW50IE1hc3RlciBDQTEkMCIGCSqG\nSIb3DQEJARYVY2Etc3VwcG9ydEByZWRoYXQuY29tggkAkYrPyoUAAAAwEgYDVR0T\nAQH/BAgwBgEB/wIBADANBgkqhkiG9w0BAQUFAAOCAgEArWBznYWKpY4LqAzhOSop\nt30D2/UlCSr50l33uUCNYD4D4nTr/pyX3AR6P3JcOCz0t22pVCg8D3DZc5VlzY7y\nP5RD3KbLxFNJTloclMG0n6aIN7baA4b8zwkduMQvKZnA/YNR5xE7V7J2WJHCEBBB\nZ+ZFwGpGsoZpPZP4hHLVke3xHm6A5F5SzP1Ug0T9W80VLK4jtgyGs8l1R7rXiOIt\nNik8317KGq7DU8TI2Rw/9Gc8FKNfUYcVD7uC/MMQXJTRvkADmNLtZM63nhzpg1Hr\nhA6U5YcDCBKsPA43/wsPOONYtrAlToD5hJhU+1Rhmwcw3qvWBO3NkdilqGFOTc2K\n50PQrqoRTCZFS41nv2WqZFfbvSq4dZRJl8xpB4LAHSspsMrbr9WZHX5fbggf6ixw\nS9KDqQbM7asP0FEKBFXJV1rE8P/oSK6yVWQyigTsNcdGR4AUzDsTO9udcwoM2Ed4\nXdakVkF+dXm9ZBwv5UBf5ITSyMXL3qlusIOblJVGUQizumoq0LiSnjwbkxh2XHhd\nXD/B/qax7FnaNg+TfujR/kk3kF1OpqWx/wC/qPR+zho1+35Al31gZOfNIn/sReoM\ntcci9LFHGvijIy4VUDQK8HmGjIxJPrIIe1nB5BkiGyjwn00D5q+BwYVst1C68Rwx\niRZpyzOZmeineJvhrJZ4Tvs=\n-----END - CERTIFICATE-----\n-----BEGIN CERTIFICATE-----\nMIIGejCCBGKgAwIBAgIJAJGKz8qFAAAIMA0GCSqGSIb3DQEBDAUAMIGwMQswCQYD\nVQQGEwJVUzEXMBUGA1UECAwOTm9ydGggQ2Fyb2xpbmExEDAOBgNVBAcMB1JhbGVp\nZ2gxFjAUBgNVBAoMDVJlZCBIYXQsIEluYy4xGDAWBgNVBAsMD1JlZCBIYXQgTmV0\nd29yazEeMBwGA1UEAwwVRW50aXRsZW1lbnQgTWFzdGVyIENBMSQwIgYJKoZIhvcN\nAQkBFhVjYS1zdXBwb3J0QHJlZGhhdC5jb20wHhcNMTgwOTEyMTgxMzIxWhcNMzAw\nMzE1MTgxMzIxWjCBsTELMAkGA1UEBhMCVVMxFzAVBgNVBAgMDk5vcnRoIENhcm9s\naW5hMRYwFAYDVQQKDA1SZWQgSGF0LCBJbmMuMRgwFgYDVQQLDA9SZWQgSGF0IE5l\ndHdvcmsxMTAvBgNVBAMMKFJlZCBIYXQgRW50aXRsZW1lbnQgT3BlcmF0aW9ucyBB\ndXRob3JpdHkxJDAiBgkqhkiG9w0BCQEWFWNhLXN1cHBvcnRAcmVkaGF0LmNvbTCC\nAiIwDQYJKoZIhvcNAQEBBQADggIPADCCAgoCggIBALsmiohDnNvIpBMZVJR5pbP6\nGrE5B4doUmvTeR4XJ5C66uvFTwuGTVigNXAL+0UWf9r2AwxKEPCy65h7fLbyK4W7\n/xEZPVsamQYDHpyBwlkPkJ3WhHneqQWC8bKkv8Iqu08V+86biCDDAh6uP0SiAz7a\nNGaLEnOe5L9WNfsYyNwrG+2AfiLy/1LUtmmg5dc6Ln7R+uv0PZJ5J2iUbiT6lMz3\nv73zAxuEjiDNurZzxzHSSEYzw0W1eO6zM4F26gcOuH2BHemPMjHi+c1OnheaafDE\nHQJTNgECz5Xe7WGdZwOyn9a8GtMvm0PAhGVyp7RAWxxfoU1B794cBb66IKKjliJQ\n5DKoqyxD9qJbMF8U4Kd1ZIVB0Iy2WEaaqCFMIi3xtlWVUNku5x21ewMmJvwjnWZA\ntUeKQUFwIXqSjuOoZDu80H6NQb+4dnRSjWlx/m7HPk75m0zErshpB2HSKUnrs4wR\ni7GsWDDcqBus7eLMwUZPvDNVcLQu/2Y4DUHNbJbn7+DwEqi5D0heC+dyY8iS45gp\nI/yhVvq/GfKL+dqjaNaE4CorJJA5qJ9f383Ol/aub+aJeBahCBNuVa2daA9Bo3BA\ndnL7KkILPFyCcEhQITnu70Qn9sQlwYcRoYF2LWAm9DtLrBT0Y0w7wQHh8vNhwEQ7\nk5G87WpwzcC8y6ePR0vFAgMBAAGjgZMwgZAwHQYDVR0OBBYEFMRJeFZFnR4sYWDD\nZktYBTcvAyJ7MB8GA1UdIwQYMBaAFIhLpkXERuyP1s+m9hrPJjyQzH8XMAwGA1Ud\nEwQFMAMBAf8wCwYDVR0PBAQDAgEGMBEGCWCGSAGG+EIBAQQEAwIBBjAgBgNVHREE\nGTAXgRVjYS1zdXBwb3J0QHJlZGhhdC5jb20wDQYJKoZIhvcNAQEMBQADggIBAGKk\nq5Ab0AC7SOCYq9up5z0twbe+gI72cm854+VhcxafnLP2/4nH6nQauKLKEFLI8+fV\nRAwYxm1f5nuEiaTvjPE0umYdgMlpEJQeGdW/+/DotDaOon1G6bSMEKFvaKcBHKqa\nkBxQ29trwMG2WN8qZ7/H3XzBvLZ+JrYr01vDSV0P4tcBFOytbMZeJr4xmfxiqWxp\nVUM9eGf6z+ngXyth8lohxGd9MMXwsaPdvM+wptp3AQpq5wFPWyfJqCd6uBxu09k1\nns3Y/sya2GHqDK4bUW6gCHO13gkYviTCIBLAlX7PDeK5nYVcq8HvTLU9+H9BFGix\nYGDdHphz7i5qO/gLLLcfKhENP6jtbe8i6nwqeDzj+DMy38iMWNYFVWn1OrBaQMtf\nwlVfyRJij9SfyiUAVFld1RoPAN/haf1VmF/0dGrOigibYijqnHvDJffMUND/sbk8\ndf6O6VYjvLLlwry4W4dHiLLA7NAHGtkUv2g1+oH1lQIfRG+PvZhWz4pGT1AlzfwD\naXUfX2X+Bo9tYr9BGy5Li1pLGLvfw+an7cBAbBaw8+HhAHt+Vm4F03KX/bHlge0a\nfMYK6FoA/xQSaZ6IPm4HfPSMvhboguVG+/AZQN4/UxjDleoEz8b0CWYafcJRRZch\nBdxBjTy7JLf3j0HCbenZQF83wwtrSmiTOTK1tLsm\n-----END - CERTIFICATE-----\n-----BEGIN CERTIFICATE-----\nMIIHZDCCBUygAwIBAgIJAOb+QiglyeZeMA0GCSqGSIb3DQEBBQUAMIGwMQswCQYD\nVQQGEwJVUzEXMBUGA1UECAwOTm9ydGggQ2Fyb2xpbmExEDAOBgNVBAcMB1JhbGVp\nZ2gxFjAUBgNVBAoMDVJlZCBIYXQsIEluYy4xGDAWBgNVBAsMD1JlZCBIYXQgTmV0\nd29yazEeMBwGA1UEAwwVRW50aXRsZW1lbnQgTWFzdGVyIENBMSQwIgYJKoZIhvcN\nAQkBFhVjYS1zdXBwb3J0QHJlZGhhdC5jb20wHhcNMTAwMzE3MTkwMDQ0WhcNMzAw\nMzEyMTkwMDQ0WjCBsDELMAkGA1UEBhMCVVMxFzAVBgNVBAgMDk5vcnRoIENhcm9s\naW5hMRAwDgYDVQQHDAdSYWxlaWdoMRYwFAYDVQQKDA1SZWQgSGF0LCBJbmMuMRgw\nFgYDVQQLDA9SZWQgSGF0IE5ldHdvcmsxHjAcBgNVBAMMFUVudGl0bGVtZW50IE1h\nc3RlciBDQTEkMCIGCSqGSIb3DQEJARYVY2Etc3VwcG9ydEByZWRoYXQuY29tMIIC\nIjANBgkqhkiG9w0BAQEFAAOCAg8AMIICCgKCAgEA2Z+mW7OYcBcGxWS+RSKG2GJ2\ncsMXiGGfEp36vKVsIvypmNS60SkicKENMYREalbdSjrgfXxPJygZWsVWJ5lHPfBV\no3WkFrFHTIXd/R6LxnaHD1m8Cx3GwEeuSlE/ASjc1ePtMnsHH7xqZ9wdl85b1C8O\nscgO7fwuM192kvv/veI/BogIqUQugtG6szXpV8dp4ml029LXFoNIy2lfFoa2wKYw\nMiUHwtYgAz7TDY63e8qGhd5PoqTv9XKQogo2ze9sF9y/npZjliNy5qf6bFE+24oW\nE8pGsp3zqz8h5mvw4v+tfIx5uj7dwjDteFrrWD1tcT7UmNrBDWXjKMG81zchq3h4\netgF0iwMHEuYuixiJWNzKrLNVQbDmcLGNOvyJfq60tM8AUAd72OUQzivBegnWMit\nCLcT5viCT1AIkYXt7l5zc/duQWLeAAR2FmpZFylSukknzzeiZpPclRziYTboDYHq\nrevM97eER1xsfoSYp4mJkBHfdlqMnf3CWPcNgru8NbEPeUGMI6+C0YvknPlqDDtU\nojfl4qNdf6nWL+YNXpR1YGKgWGWgTU6uaG8Sc6qGfAoLHh6oGwbuz102j84OgjAJ\nDGv/S86svmZWSqZ5UoJOIEqFYrONcOSgztZ5tU+gP4fwRIkTRbTEWSgudVREOXhs\nbfN1YGP7HYvS0OiBKZUCAwEAAaOCAX0wggF5MB0GA1UdDgQWBBSIS6ZFxEbsj9bP\npvYazyY8kMx/FzCB5QYDVR0jBIHdMIHagBSIS6ZFxEbsj9bPpvYazyY8kMx/F6GB\ntqSBszCBsDELMAkGA1UEBhMCVVMxFzAVBgNVBAgMDk5vcnRoIENhcm9saW5hMRAw\nDgYDVQQHDAdSYWxlaWdoMRYwFAYDVQQKDA1SZWQgSGF0LCBJbmMuMRgwFgYDVQQL\nDA9SZWQgSGF0IE5ldHdvcmsxHjAcBgNVBAMMFUVudGl0bGVtZW50IE1hc3RlciBD\nQTEkMCIGCSqGSIb3DQEJARYVY2Etc3VwcG9ydEByZWRoYXQuY29tggkA5v5CKCXJ\n5l4wDAYDVR0TBAUwAwEB/zALBgNVHQ8EBAMCAQYwEQYJYIZIAYb4QgEBBAQDAgEG\nMCAGA1UdEQQZMBeBFWNhLXN1cHBvcnRAcmVkaGF0LmNvbTAgBgNVHRIEGTAXgRVj\nYS1zdXBwb3J0QHJlZGhhdC5jb20wDQYJKoZIhvcNAQEFBQADggIBAJ1hEdNBDTRr\n6kI6W6stoogSUwjuiWPDY8DptwGhdpyIfbCoxvBR7F52DlwyXOpCunogfKMRklnE\ngH1Wt66RYkgNuJcenKHAhR5xgSLoPCOVF9rDjMunyyBuxjIbctM21R7BswVpsEIE\nOpV5nlJ6wkHsrn0/E+Zk5UJdCzM+Fp4hqHtEn/c97nvRspQcpWeDg6oUvaJSZTGM\n8yFpzR90X8ZO4rOgpoERukvYutUfJUzZuDyS3LLc6ysamemH93rZXr52zc4B+C9G\nEm8zemDgIPaH42ce3C3TdVysiq/yk+ir7pxW8toeavFv75l1UojFSjND+Q2AlNQn\npYkmRznbD5TZ3yDuPFQG2xYKnMPACepGgKZPyErtOIljQKCdgcvb9EqNdZaJFz1+\n/iWKYBL077Y0CKwb+HGIDeYdzrYxbEd95YuVU0aStnf2Yii2tLcpQtK9cC2+DXjL\nYf3kQs4xzH4ZejhG9wzv8PGXOS8wHYnfVNA3+fclDEQ1mEBKWHHmenGI6QKZUP8f\ng0SQ3PNRnSZu8R+rhABOEuVFIBRlaYijg2Pxe0NgL9FlHsNyRfo6EUrB2QFRKACW\n3Mo6pZyDjQt7O8J7l9B9IIURoJ1niwygf7VSJTMl2w3fFleNJlZTGgdXw0V+5g+9\nKg6Ay0rrsi4nw1JHue2GvdjdfVOaWSWC\n-----END - CERTIFICATE-----\n","id":1,"organization_id":5,"organization":{"name":"Test - Organization","label":"Test_Organization","id":5},"created_at":"2023-06-21 - 13:24:41 UTC","updated_at":"2023-06-21 13:24:41 UTC","gpg_key_products":[],"gpg_key_repos":[],"ssl_ca_alternate_content_sources":[],"ssl_client_alternate_content_sources":[],"ssl_client_key_alternate_content_sources":{},"ssl_ca_products":[],"ssl_ca_root_repos":[],"ssl_client_products":[],"ssl_client_root_repos":[],"ssl_key_products":[],"ssl_key_root_repos":[],"permissions":{"view_content_credenials":true,"edit_content_credenials":true,"destroy_content_credenials":true}} + string: ' {"relative_path":"Test_Organization/Library/custom/Convert2RHEL7/Convert2RHEL7_main","promoted":false,"content_view_version_id":5,"library_instance_id":null,"last_contents_changed":"2023-11-13 + 09:23:25 UTC","organization_id":4,"organization":{"name":"Test Organization","label":"Test_Organization","id":4},"created_at":"2023-11-13 + 09:23:25 UTC","updated_at":"2023-11-13 09:23:25 UTC","backend_identifier":"42ac9443-2167-4189-b4da-bbfcf402b74a","container_repository_name":null,"full_path":"https://centos8-stream-katello-4-9.tanso.example.com/pulp/content/Test_Organization/Library/custom/Convert2RHEL7/Convert2RHEL7_main/","version_href":"/pulp/api/v3/repositories/rpm/rpm/b5fce5ea-3912-45b8-966e-fb9f15e774e2/versions/0/","remote_href":"/pulp/api/v3/remotes/rpm/rpm/a363bf7a-e6cf-44fb-a11c-b50602ce53f7/","publication_href":null,"content_counts":{"rpm":0,"erratum":0,"package_group":0,"srpm":0,"module_stream":0},"mirroring_policy":"mirror_content_only","id":9,"name":"Convert2RHEL7 + main","label":"Convert2RHEL7_main","description":null,"content_view_versions":[],"filters":[],"last_sync":null,"content_view":{"id":5,"name":"Default + Organization View"},"content_view_version":{"id":5,"name":"Default Organization + View 1.0","content_view_id":5},"kt_environment":{"id":3,"name":"Library"},"content_type":"yum","url":"https://cdn-public.redhat.com/content/public/addon/dist/convert2rhel/server/7/7Server/x86_64/os/","arch":"noarch","os_versions":[],"content_id":"1699867405581","generic_remote_options":null,"major":null,"minor":null,"product":{"id":5,"cp_id":"176163814735","name":"Convert2RHEL7","orphaned":false,"redhat":false,"sync_plan":null},"content_label":"Test_Organization_Convert2RHEL7_Convert2RHEL7_main","last_sync_words":null,"environment":{"id":3,"registry_unauthenticated_pull":false},"docker_upstream_name":null,"docker_tags_whitelist":null,"include_tags":null,"exclude_tags":null,"verify_ssl_on_sync":true,"unprotected":true,"checksum_type":null,"download_policy":"immediate","ansible_collection_requirements":null,"ansible_collection_auth_url":null,"ansible_collection_auth_token":null,"gpg_key_id":null,"ssl_ca_cert_id":null,"ssl_client_cert_id":null,"ssl_client_key_id":null,"upstream_username":null,"deb_releases":null,"deb_components":null,"deb_architectures":null,"http_proxy_policy":"global_default_http_proxy","http_proxy_id":null,"http_proxy_name":null,"retain_package_versions_count":null,"metadata_expire":null,"ignorable_content":null,"http_proxy":{"id":null,"name":null,"policy":"global_default_http_proxy"},"ssl_ca_cert":{"id":null,"name":null},"ssl_client_cert":{"id":null,"name":null},"ssl_client_key":{"id":null,"name":null},"gpg_key":{"id":null,"name":null},"permissions":{"deletable":true,"deletable_across_cv":true},"upstream_password_exists":false,"upstream_auth_exists":false,"content_view_environments":[]} ' headers: @@ -205,6 +259,8 @@ interactions: - max-age=0, private, must-revalidate Connection: - Keep-Alive + Content-Length: + - '2849' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -216,15 +272,13 @@ interactions: Foreman_current_location: - ; ANY Foreman_current_organization: - - 5; Test Organization + - ; ANY Foreman_version: - - 3.7.0-develop + - 3.7.1 Keep-Alive: - - timeout=15, max=97 + - timeout=15, max=96 Strict-Transport-Security: - max-age=631139040; includeSubdomains - Transfer-Encoding: - - chunked X-Content-Type-Options: - nosniff X-Download-Options: diff --git a/tests/test_playbooks/fixtures/convert2rhel-10.yml b/tests/test_playbooks/fixtures/convert2rhel-10.yml index 4f3ee4dd8..ad14f263a 100644 --- a/tests/test_playbooks/fixtures/convert2rhel-10.yml +++ b/tests/test_playbooks/fixtures/convert2rhel-10.yml @@ -14,12 +14,14 @@ interactions: uri: https://foreman.example.org/api/status response: body: - string: '{"satellite_version":"6.14.0","result":"ok","status":200,"version":"3.7.0-develop","api_version":2}' + string: '{"result":"ok","status":200,"version":"3.7.1","api_version":2}' headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive + Content-Length: + - '102' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -33,13 +35,11 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-develop + - 3.7.1 Keep-Alive: - timeout=15, max=100 Strict-Transport-Security: - max-age=631139040; includeSubdomains - Transfer-Encoding: - - chunked X-Content-Type-Options: - nosniff X-Download-Options: @@ -68,16 +68,18 @@ interactions: uri: https://foreman.example.org/katello/api/organizations?search=name%3D%22Test+Organization%22&per_page=4294967296 response: body: - string: "{\n \"total\": 3,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": + string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": 4294967296,\n \"search\": \"name=\\\"Test Organization\\\"\",\n \"sort\": - {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\":\"Test_Organization\",\"created_at\":\"2023-06-21 - 13:24:35 UTC\",\"updated_at\":\"2023-06-21 13:24:38 UTC\",\"id\":5,\"name\":\"Test + {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\":\"Test_Organization\",\"created_at\":\"2023-11-13 + 09:23:21 UTC\",\"updated_at\":\"2023-11-13 09:23:23 UTC\",\"id\":4,\"name\":\"Test Organization\",\"title\":\"Test Organization\",\"description\":\"A test organization\"}]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive + Content-Length: + - '388' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -91,13 +93,11 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-develop + - 3.7.1 Keep-Alive: - timeout=15, max=99 Strict-Transport-Security: - max-age=631139040; includeSubdomains - Transfer-Encoding: - - chunked X-Content-Type-Options: - nosniff X-Download-Options: @@ -123,12 +123,14 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/organizations/5/products?search=name%3D%22Convert2RHEL7%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/organizations/4/products?search=name%3D%22Oracle+Linux+7+Convert2RHEL%22&per_page=4294967296 response: body: - string: '{"total":4,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Convert2RHEL7\"","sort":{"by":"name","order":"asc"},"results":[{"id":30,"cp_id":"213774223616","name":"Convert2RHEL7","label":"Convert2RHEL7","description":null,"provider_id":5,"sync_plan_id":null,"sync_summary":{},"gpg_key_id":null,"ssl_ca_cert_id":null,"ssl_client_cert_id":null,"ssl_client_key_id":null,"sync_state":null,"last_sync":"2023-06-21 - 13:25:22 UTC","last_sync_words":"less than a minute","organization_id":5,"organization":{"name":"Test - Organization","label":"Test_Organization","id":5},"sync_plan":null,"repository_count":1}]} + string: '{"total":4,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Oracle + Linux 7 Convert2RHEL\"","sort":{"by":"name","order":"asc"},"results":[{"id":7,"cp_id":"521078275134","name":"Oracle + Linux 7 Convert2RHEL","label":"Oracle_Linux_7_Convert2RHEL","description":null,"provider_id":5,"sync_plan_id":null,"sync_summary":{},"gpg_key_id":null,"ssl_ca_cert_id":null,"ssl_client_cert_id":null,"ssl_client_key_id":null,"sync_state":null,"last_sync":"2023-11-13 + 09:23:31 UTC","last_sync_words":"less than a minute","organization_id":4,"organization":{"name":"Test + Organization","label":"Test_Organization","id":4},"sync_plan":null,"repository_count":1}]} ' headers: @@ -136,6 +138,8 @@ interactions: - max-age=0, private, must-revalidate Connection: - Keep-Alive + Content-Length: + - '684' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -147,15 +151,13 @@ interactions: Foreman_current_location: - ; ANY Foreman_current_organization: - - 5; Test Organization + - 4; Test Organization Foreman_version: - - 3.7.0-develop + - 3.7.1 Keep-Alive: - timeout=15, max=98 Strict-Transport-Security: - max-age=631139040; includeSubdomains - Transfer-Encoding: - - chunked X-Content-Type-Options: - nosniff X-Download-Options: @@ -181,14 +183,15 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/products/30/repositories?search=name%3D%22Convert2RHEL7+main%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/products/7/repositories?search=name%3D%22Oracle+Linux+7+Convert2RHEL+main%22&per_page=4294967296 response: body: - string: '{"total":1,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Convert2RHEL7 - main\"","sort":{"by":"name","order":"asc"},"results":[{"backend_identifier":"a22aabd5-10a9-41fe-8fba-d9e321c25ded","relative_path":"Test_Organization/Library/custom/Convert2RHEL7/Convert2RHEL7_main","container_repository_name":null,"full_path":"https://sat-r220-03.lab.eng.rdu2.redhat.com/pulp/content/Test_Organization/Library/custom/Convert2RHEL7/Convert2RHEL7_main/","library_instance_id":null,"version_href":"/pulp/api/v3/repositories/rpm/rpm/1c6df5a8-16bd-4362-b02d-967f863a17e3/versions/0/","remote_href":"/pulp/api/v3/remotes/rpm/rpm/b7f14666-2f21-4a59-840e-cf633a23d4b5/","publication_href":"/pulp/api/v3/publications/rpm/rpm/bdf44f5a-5bed-4e6e-9320-e7cd6aad5587/","content_counts":{"rpm":0,"erratum":0,"package_group":0,"srpm":0,"module_stream":0},"mirroring_policy":"mirror_content_only","id":16,"name":"Convert2RHEL7 - main","label":"Convert2RHEL7_main","description":null,"content_view_versions":[],"last_sync":null,"content_view":{"id":6,"name":"Default - Organization View"},"content_view_version":{"id":6,"name":"Default Organization - View 1.0","content_view_id":6},"kt_environment":{"id":3,"name":"Library"},"content_type":"yum","url":"https://cdn.redhat.com/content/public/convert2rhel/7/x86_64/os/","arch":"noarch","os_versions":[],"content_id":"1687353889016","generic_remote_options":null,"major":null,"minor":null,"product":{"id":30,"cp_id":"213774223616","name":"Convert2RHEL7","orphaned":false,"redhat":false,"sync_plan":null},"content_label":"Test_Organization_Convert2RHEL7_Convert2RHEL7_main","last_sync_words":null}],"org_repository_count":4} + string: '{"total":1,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Oracle + Linux 7 Convert2RHEL main\"","sort":{"by":"name","order":"asc"},"results":[{"backend_identifier":"d6aba245-2ef6-4acb-a6b9-dbc72aa036e7","relative_path":"Test_Organization/Library/custom/Oracle_Linux_7_Convert2RHEL/Oracle_Linux_7_Convert2RHEL_main","container_repository_name":null,"full_path":"https://centos8-stream-katello-4-9.tanso.example.com/pulp/content/Test_Organization/Library/custom/Oracle_Linux_7_Convert2RHEL/Oracle_Linux_7_Convert2RHEL_main/","library_instance_id":null,"version_href":"/pulp/api/v3/repositories/rpm/rpm/4c024768-b01e-40d3-99be-42578160b23d/versions/0/","remote_href":"/pulp/api/v3/remotes/rpm/rpm/6c55319c-9e62-4548-9484-c74c343b720c/","publication_href":"/pulp/api/v3/publications/rpm/rpm/c8edf621-e161-404f-9c25-ea8a584faae7/","content_counts":{"rpm":0,"erratum":0,"package_group":0,"srpm":0,"module_stream":0},"mirroring_policy":"mirror_content_only","id":11,"name":"Oracle + Linux 7 Convert2RHEL main","label":"Oracle_Linux_7_Convert2RHEL_main","description":null,"content_view_versions":[],"filters":[],"last_sync":null,"content_view":{"id":5,"name":"Default + Organization View"},"content_view_version":{"id":5,"name":"Default Organization + View 1.0","content_view_id":5},"kt_environment":{"id":3,"name":"Library"},"content_type":"yum","url":"https://cdn-ubi.redhat.com/content/public/ubi/dist/ubi/server/7/7Server/x86_64/os","arch":"noarch","os_versions":[],"content_id":"1699867410895","generic_remote_options":null,"major":null,"minor":null,"product":{"id":7,"cp_id":"521078275134","name":"Oracle + Linux 7 Convert2RHEL","orphaned":false,"redhat":false,"sync_plan":null},"content_label":"Test_Organization_Oracle_Linux_7_Convert2RHEL_Oracle_Linux_7_Convert2RHEL_main","last_sync_words":null}],"org_repository_count":4} ' headers: @@ -196,6 +199,8 @@ interactions: - max-age=0, private, must-revalidate Connection: - Keep-Alive + Content-Length: + - '1860' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -209,13 +214,11 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-develop + - 3.7.1 Keep-Alive: - timeout=15, max=97 Strict-Transport-Security: - max-age=631139040; includeSubdomains - Transfer-Encoding: - - chunked X-Content-Type-Options: - nosniff X-Download-Options: @@ -245,18 +248,20 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: POST - uri: https://foreman.example.org/katello/api/repositories/16/sync + uri: https://foreman.example.org/katello/api/repositories/11/sync response: body: - string: ' {"id":"ba6f581c-756e-421c-bc15-3d1a12f21494","label":"Actions::Katello::Repository::Sync","pending":true,"action":"Synchronize - repository ''Convert2RHEL7 main''; product ''Convert2RHEL7''; organization - ''Test Organization''","username":"admin","started_at":"2023-06-21 13:25:26 - UTC","ended_at":null,"state":"planned","result":"pending","progress":0.0,"input":{"repository":{"id":16,"name":"Convert2RHEL7 - main","label":"Convert2RHEL7_main"},"product":{"id":30,"name":"Convert2RHEL7","label":"Convert2RHEL7","cp_id":"213774223616"},"provider":{"id":5,"name":"Anonymous"},"organization":{"id":5,"name":"Test - Organization","label":"Test_Organization"},"services_checked":["pulp3"],"id":16,"sync_result":{"class":"Dynflow::ExecutionPlan::OutputReference","execution_plan_id":"60c68abb-0863-4995-b644-3a8d43ff4ec9","step_id":19,"action_id":2,"subkeys":[]},"skip_metadata_check":false,"validate_contents":false,"contents_changed":{"class":"Dynflow::ExecutionPlan::OutputReference","execution_plan_id":"60c68abb-0863-4995-b644-3a8d43ff4ec9","step_id":19,"action_id":2,"subkeys":["contents_changed"]},"current_request_id":"1d3d3b1d-5d97-4c44-bbad-24b52f7e979d","current_timezone":"UTC","current_organization_id":null,"current_location_id":null,"current_user_id":4},"output":{},"humanized":{"action":"Synchronize","input":[["repository",{"text":"repository - ''Convert2RHEL7 main''","link":null}],["product",{"text":"product ''Convert2RHEL7''","link":"/products/30/"}],["organization",{"text":"organization - ''Test Organization''","link":"/organizations/5/edit"}]],"output":"","errors":[]},"cli_example":null,"start_at":"2023-06-21 - 13:25:26 UTC","available_actions":{"cancellable":false,"resumable":false}} + string: ' {"id":"4bfd9d94-3005-4447-9597-18db66d3adfc","label":"Actions::Katello::Repository::Sync","pending":true,"action":"Synchronize + repository ''Oracle Linux 7 Convert2RHEL main''; product ''Oracle Linux 7 + Convert2RHEL''; organization ''Test Organization''","username":"admin","started_at":"2023-11-13 + 09:23:52 UTC","ended_at":null,"state":"planned","result":"pending","progress":0.0,"input":{"repository":{"id":11,"name":"Oracle + Linux 7 Convert2RHEL main","label":"Oracle_Linux_7_Convert2RHEL_main"},"product":{"id":7,"name":"Oracle + Linux 7 Convert2RHEL","label":"Oracle_Linux_7_Convert2RHEL","cp_id":"521078275134"},"provider":{"id":5,"name":"Anonymous"},"organization":{"id":4,"name":"Test + Organization","label":"Test_Organization"},"services_checked":["pulp3"],"id":11,"sync_result":{"class":"Dynflow::ExecutionPlan::OutputReference","execution_plan_id":"3a1a8732-373a-4a68-ab01-748fd1a97cce","step_id":19,"action_id":2,"subkeys":[]},"skip_metadata_check":false,"validate_contents":false,"contents_changed":{"class":"Dynflow::ExecutionPlan::OutputReference","execution_plan_id":"3a1a8732-373a-4a68-ab01-748fd1a97cce","step_id":19,"action_id":2,"subkeys":["contents_changed"]},"current_request_id":"098e3149-fee4-48dc-9fea-5163ef971f46","current_timezone":"UTC","current_organization_id":null,"current_location_id":null,"current_user_id":4},"output":{},"humanized":{"action":"Synchronize","input":[["repository",{"text":"repository + ''Oracle Linux 7 Convert2RHEL main''","link":null}],["product",{"text":"product + ''Oracle Linux 7 Convert2RHEL''","link":"/products/7/"}],["organization",{"text":"organization + ''Test Organization''","link":"/organizations/4/edit"}]],"output":"","errors":[]},"cli_example":null,"start_at":"2023-11-13 + 09:23:52 UTC","available_actions":{"cancellable":false,"resumable":false}} ' headers: @@ -277,7 +282,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-develop + - 3.7.1 Keep-Alive: - timeout=15, max=96 Strict-Transport-Security: @@ -309,26 +314,29 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/foreman_tasks/api/tasks/ba6f581c-756e-421c-bc15-3d1a12f21494 + uri: https://foreman.example.org/foreman_tasks/api/tasks/4bfd9d94-3005-4447-9597-18db66d3adfc response: body: - string: '{"id":"ba6f581c-756e-421c-bc15-3d1a12f21494","label":"Actions::Katello::Repository::Sync","pending":true,"action":"Synchronize - repository ''Convert2RHEL7 main''; product ''Convert2RHEL7''; organization - ''Test Organization''","username":"admin","started_at":"2023-06-21 13:25:26 - UTC","ended_at":null,"duration":"5.045682","state":"running","result":"pending","progress":0.41,"input":{"repository":{"id":16,"name":"Convert2RHEL7 - main","label":"Convert2RHEL7_main"},"product":{"id":30,"name":"Convert2RHEL7","label":"Convert2RHEL7","cp_id":"213774223616"},"provider":{"id":5,"name":"Anonymous"},"organization":{"id":5,"name":"Test - Organization","label":"Test_Organization"},"services_checked":["pulp3"],"id":16,"sync_result":{"class":"Dynflow::ExecutionPlan::OutputReference","execution_plan_id":"60c68abb-0863-4995-b644-3a8d43ff4ec9","step_id":19,"action_id":2,"subkeys":[]},"skip_metadata_check":false,"validate_contents":false,"contents_changed":{"class":"Dynflow::ExecutionPlan::OutputReference","execution_plan_id":"60c68abb-0863-4995-b644-3a8d43ff4ec9","step_id":19,"action_id":2,"subkeys":["contents_changed"]},"current_request_id":"1d3d3b1d-5d97-4c44-bbad-24b52f7e979d","current_timezone":"UTC","current_organization_id":null,"current_location_id":null,"current_user_id":4},"output":{},"humanized":{"action":"Synchronize","input":[["repository",{"text":"repository - ''Convert2RHEL7 main''","link":null}],["product",{"text":"product ''Convert2RHEL7''","link":"/products/30/"}],["organization",{"text":"organization - ''Test Organization''","link":"/organizations/5/edit"}]],"output":"Total steps: - 33/33\n--------------------------------\nAssociating Content: 0/0\nDownloading - Artifacts: 9/9\nDownloading Metadata Files: 6/6\nParsed Advisories: 9/9\nParsed - Comps: 0/0\nParsed Packages: 9/9\nSkipping Packages: 0/0","errors":[]},"cli_example":null,"start_at":"2023-06-21 - 13:25:26 UTC","available_actions":{"cancellable":true,"resumable":false}}' + string: '{"id":"4bfd9d94-3005-4447-9597-18db66d3adfc","label":"Actions::Katello::Repository::Sync","pending":true,"action":"Synchronize + repository ''Oracle Linux 7 Convert2RHEL main''; product ''Oracle Linux 7 + Convert2RHEL''; organization ''Test Organization''","username":"admin","started_at":"2023-11-13 + 09:23:52 UTC","ended_at":null,"duration":"4.201438","state":"running","result":"pending","progress":0.07,"input":{"repository":{"id":11,"name":"Oracle + Linux 7 Convert2RHEL main","label":"Oracle_Linux_7_Convert2RHEL_main"},"product":{"id":7,"name":"Oracle + Linux 7 Convert2RHEL","label":"Oracle_Linux_7_Convert2RHEL","cp_id":"521078275134"},"provider":{"id":5,"name":"Anonymous"},"organization":{"id":4,"name":"Test + Organization","label":"Test_Organization"},"services_checked":["pulp3"],"id":11,"sync_result":{"class":"Dynflow::ExecutionPlan::OutputReference","execution_plan_id":"3a1a8732-373a-4a68-ab01-748fd1a97cce","step_id":19,"action_id":2,"subkeys":[]},"skip_metadata_check":false,"validate_contents":false,"contents_changed":{"class":"Dynflow::ExecutionPlan::OutputReference","execution_plan_id":"3a1a8732-373a-4a68-ab01-748fd1a97cce","step_id":19,"action_id":2,"subkeys":["contents_changed"]},"current_request_id":"098e3149-fee4-48dc-9fea-5163ef971f46","current_timezone":"UTC","current_organization_id":null,"current_location_id":null,"current_user_id":4},"output":{},"humanized":{"action":"Synchronize","input":[["repository",{"text":"repository + ''Oracle Linux 7 Convert2RHEL main''","link":null}],["product",{"text":"product + ''Oracle Linux 7 Convert2RHEL''","link":"/products/7/"}],["organization",{"text":"organization + ''Test Organization''","link":"/organizations/4/edit"}]],"output":"Waiting + to start.\n--------------------------------\nAssociating Content: 0/0\nDownloading + Artifacts: 0/0\nDownloading Metadata Files: 0/0","errors":[]},"cli_example":null,"start_at":"2023-11-13 + 09:23:52 UTC","available_actions":{"cancellable":true,"resumable":false}}' headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive + Content-Length: + - '1951' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -342,13 +350,11 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-develop + - 3.7.1 Keep-Alive: - timeout=15, max=95 Strict-Transport-Security: - max-age=631139040; includeSubdomains - Transfer-Encoding: - - chunked X-Content-Type-Options: - nosniff X-Download-Options: @@ -374,26 +380,30 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/foreman_tasks/api/tasks/ba6f581c-756e-421c-bc15-3d1a12f21494 + uri: https://foreman.example.org/foreman_tasks/api/tasks/4bfd9d94-3005-4447-9597-18db66d3adfc response: body: - string: '{"id":"ba6f581c-756e-421c-bc15-3d1a12f21494","label":"Actions::Katello::Repository::Sync","pending":true,"action":"Synchronize - repository ''Convert2RHEL7 main''; product ''Convert2RHEL7''; organization - ''Test Organization''","username":"admin","started_at":"2023-06-21 13:25:26 - UTC","ended_at":null,"duration":"9.239479","state":"running","result":"pending","progress":0.63,"input":{"repository":{"id":16,"name":"Convert2RHEL7 - main","label":"Convert2RHEL7_main"},"product":{"id":30,"name":"Convert2RHEL7","label":"Convert2RHEL7","cp_id":"213774223616"},"provider":{"id":5,"name":"Anonymous"},"organization":{"id":5,"name":"Test - Organization","label":"Test_Organization"},"services_checked":["pulp3"],"id":16,"sync_result":{"class":"Dynflow::ExecutionPlan::OutputReference","execution_plan_id":"60c68abb-0863-4995-b644-3a8d43ff4ec9","step_id":19,"action_id":2,"subkeys":[]},"skip_metadata_check":false,"validate_contents":false,"contents_changed":{"class":"Dynflow::ExecutionPlan::OutputReference","execution_plan_id":"60c68abb-0863-4995-b644-3a8d43ff4ec9","step_id":19,"action_id":2,"subkeys":["contents_changed"]},"current_request_id":"1d3d3b1d-5d97-4c44-bbad-24b52f7e979d","current_timezone":"UTC","current_organization_id":null,"current_location_id":null,"current_user_id":4},"output":{},"humanized":{"action":"Synchronize","input":[["repository",{"text":"repository - ''Convert2RHEL7 main''","link":null}],["product",{"text":"product ''Convert2RHEL7''","link":"/products/30/"}],["organization",{"text":"organization - ''Test Organization''","link":"/organizations/5/edit"}]],"output":"Total steps: - 51/51\n--------------------------------\nAssociating Content: 18/18\nDownloading - Artifacts: 9/9\nDownloading Metadata Files: 6/6\nParsed Advisories: 9/9\nParsed - Comps: 0/0\nParsed Packages: 9/9\nSkipping Packages: 0/0\nUn-Associating Content: - 0/0","errors":[]},"cli_example":null,"start_at":"2023-06-21 13:25:26 UTC","available_actions":{"cancellable":false,"resumable":false}}' + string: '{"id":"4bfd9d94-3005-4447-9597-18db66d3adfc","label":"Actions::Katello::Repository::Sync","pending":true,"action":"Synchronize + repository ''Oracle Linux 7 Convert2RHEL main''; product ''Oracle Linux 7 + Convert2RHEL''; organization ''Test Organization''","username":"admin","started_at":"2023-11-13 + 09:23:52 UTC","ended_at":null,"duration":"8.236905","state":"running","result":"pending","progress":0.04,"input":{"repository":{"id":11,"name":"Oracle + Linux 7 Convert2RHEL main","label":"Oracle_Linux_7_Convert2RHEL_main"},"product":{"id":7,"name":"Oracle + Linux 7 Convert2RHEL","label":"Oracle_Linux_7_Convert2RHEL","cp_id":"521078275134"},"provider":{"id":5,"name":"Anonymous"},"organization":{"id":4,"name":"Test + Organization","label":"Test_Organization"},"services_checked":["pulp3"],"id":11,"sync_result":{"class":"Dynflow::ExecutionPlan::OutputReference","execution_plan_id":"3a1a8732-373a-4a68-ab01-748fd1a97cce","step_id":19,"action_id":2,"subkeys":[]},"skip_metadata_check":false,"validate_contents":false,"contents_changed":{"class":"Dynflow::ExecutionPlan::OutputReference","execution_plan_id":"3a1a8732-373a-4a68-ab01-748fd1a97cce","step_id":19,"action_id":2,"subkeys":["contents_changed"]},"current_request_id":"098e3149-fee4-48dc-9fea-5163ef971f46","current_timezone":"UTC","current_organization_id":null,"current_location_id":null,"current_user_id":4},"output":{},"humanized":{"action":"Synchronize","input":[["repository",{"text":"repository + ''Oracle Linux 7 Convert2RHEL main''","link":null}],["product",{"text":"product + ''Oracle Linux 7 Convert2RHEL''","link":"/products/7/"}],["organization",{"text":"organization + ''Test Organization''","link":"/organizations/4/edit"}]],"output":"Total steps: + 6/1015\n--------------------------------\nAssociating Content: 0/0\nDownloading + Artifacts: 0/0\nDownloading Metadata Files: 6/6\nParsed Packages: 0/1009\nSkipping + Packages: 0/0","errors":[]},"cli_example":null,"start_at":"2023-11-13 09:23:52 + UTC","available_actions":{"cancellable":true,"resumable":false}}' headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive + Content-Length: + - '2002' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -407,13 +417,11 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-develop + - 3.7.1 Keep-Alive: - timeout=15, max=94 Strict-Transport-Security: - max-age=631139040; includeSubdomains - Transfer-Encoding: - - chunked X-Content-Type-Options: - nosniff X-Download-Options: @@ -439,27 +447,30 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/foreman_tasks/api/tasks/ba6f581c-756e-421c-bc15-3d1a12f21494 + uri: https://foreman.example.org/foreman_tasks/api/tasks/4bfd9d94-3005-4447-9597-18db66d3adfc response: body: - string: '{"id":"ba6f581c-756e-421c-bc15-3d1a12f21494","label":"Actions::Katello::Repository::Sync","pending":false,"action":"Synchronize - repository ''Convert2RHEL7 main''; product ''Convert2RHEL7''; organization - ''Test Organization''","username":"admin","started_at":"2023-06-21 13:25:26 - UTC","ended_at":"2023-06-21 13:25:37 UTC","duration":"10.348472","state":"stopped","result":"success","progress":1.0,"input":{"repository":{"id":16,"name":"Convert2RHEL7 - main","label":"Convert2RHEL7_main"},"product":{"id":30,"name":"Convert2RHEL7","label":"Convert2RHEL7","cp_id":"213774223616"},"provider":{"id":5,"name":"Anonymous"},"organization":{"id":5,"name":"Test - Organization","label":"Test_Organization"},"services_checked":["pulp3"],"id":16,"sync_result":{"publication_provided":false,"contents_changed":true},"skip_metadata_check":false,"validate_contents":false,"contents_changed":true,"current_request_id":"1d3d3b1d-5d97-4c44-bbad-24b52f7e979d","current_timezone":"UTC","current_organization_id":null,"current_location_id":null,"current_user_id":4},"output":{},"humanized":{"action":"Synchronize","input":[["repository",{"text":"repository - ''Convert2RHEL7 main''","link":null}],["product",{"text":"product ''Convert2RHEL7''","link":"/products/30/"}],["organization",{"text":"organization - ''Test Organization''","link":"/organizations/5/edit"}]],"output":"Added Rpms: - 9, Errata: 9\nTotal steps: 51/51\n--------------------------------\nAssociating - Content: 18/18\nDownloading Artifacts: 9/9\nDownloading Metadata Files: 6/6\nParsed - Advisories: 9/9\nParsed Comps: 0/0\nParsed Packages: 9/9\nSkipping Packages: - 0/0\nUn-Associating Content: 0/0","errors":[]},"cli_example":null,"start_at":"2023-06-21 - 13:25:26 UTC","available_actions":{"cancellable":false,"resumable":false}}' + string: '{"id":"4bfd9d94-3005-4447-9597-18db66d3adfc","label":"Actions::Katello::Repository::Sync","pending":true,"action":"Synchronize + repository ''Oracle Linux 7 Convert2RHEL main''; product ''Oracle Linux 7 + Convert2RHEL''; organization ''Test Organization''","username":"admin","started_at":"2023-11-13 + 09:23:52 UTC","ended_at":null,"duration":"12.270949","state":"running","result":"pending","progress":0.04,"input":{"repository":{"id":11,"name":"Oracle + Linux 7 Convert2RHEL main","label":"Oracle_Linux_7_Convert2RHEL_main"},"product":{"id":7,"name":"Oracle + Linux 7 Convert2RHEL","label":"Oracle_Linux_7_Convert2RHEL","cp_id":"521078275134"},"provider":{"id":5,"name":"Anonymous"},"organization":{"id":4,"name":"Test + Organization","label":"Test_Organization"},"services_checked":["pulp3"],"id":11,"sync_result":{"class":"Dynflow::ExecutionPlan::OutputReference","execution_plan_id":"3a1a8732-373a-4a68-ab01-748fd1a97cce","step_id":19,"action_id":2,"subkeys":[]},"skip_metadata_check":false,"validate_contents":false,"contents_changed":{"class":"Dynflow::ExecutionPlan::OutputReference","execution_plan_id":"3a1a8732-373a-4a68-ab01-748fd1a97cce","step_id":19,"action_id":2,"subkeys":["contents_changed"]},"current_request_id":"098e3149-fee4-48dc-9fea-5163ef971f46","current_timezone":"UTC","current_organization_id":null,"current_location_id":null,"current_user_id":4},"output":{},"humanized":{"action":"Synchronize","input":[["repository",{"text":"repository + ''Oracle Linux 7 Convert2RHEL main''","link":null}],["product",{"text":"product + ''Oracle Linux 7 Convert2RHEL''","link":"/products/7/"}],["organization",{"text":"organization + ''Test Organization''","link":"/organizations/4/edit"}]],"output":"Total steps: + 6/1015\n--------------------------------\nAssociating Content: 0/0\nDownloading + Artifacts: 0/0\nDownloading Metadata Files: 6/6\nParsed Packages: 0/1009\nSkipping + Packages: 0/0","errors":[]},"cli_example":null,"start_at":"2023-11-13 09:23:52 + UTC","available_actions":{"cancellable":true,"resumable":false}}' headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive + Content-Length: + - '2003' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -473,13 +484,348 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-develop + - 3.7.1 Keep-Alive: - timeout=15, max=93 Strict-Transport-Security: - max-age=631139040; includeSubdomains - Transfer-Encoding: - - chunked + X-Content-Type-Options: + - nosniff + X-Download-Options: + - noopen + X-Frame-Options: + - sameorigin + X-Permitted-Cross-Domain-Policies: + - none + X-XSS-Protection: + - 1; mode=block + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json;version=2 + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - apypie (https://github.com/Apipie/apypie) + method: GET + uri: https://foreman.example.org/foreman_tasks/api/tasks/4bfd9d94-3005-4447-9597-18db66d3adfc + response: + body: + string: '{"id":"4bfd9d94-3005-4447-9597-18db66d3adfc","label":"Actions::Katello::Repository::Sync","pending":true,"action":"Synchronize + repository ''Oracle Linux 7 Convert2RHEL main''; product ''Oracle Linux 7 + Convert2RHEL''; organization ''Test Organization''","username":"admin","started_at":"2023-11-13 + 09:23:52 UTC","ended_at":null,"duration":"16.306915","state":"running","result":"pending","progress":0.28,"input":{"repository":{"id":11,"name":"Oracle + Linux 7 Convert2RHEL main","label":"Oracle_Linux_7_Convert2RHEL_main"},"product":{"id":7,"name":"Oracle + Linux 7 Convert2RHEL","label":"Oracle_Linux_7_Convert2RHEL","cp_id":"521078275134"},"provider":{"id":5,"name":"Anonymous"},"organization":{"id":4,"name":"Test + Organization","label":"Test_Organization"},"services_checked":["pulp3"],"id":11,"sync_result":{"class":"Dynflow::ExecutionPlan::OutputReference","execution_plan_id":"3a1a8732-373a-4a68-ab01-748fd1a97cce","step_id":19,"action_id":2,"subkeys":[]},"skip_metadata_check":false,"validate_contents":false,"contents_changed":{"class":"Dynflow::ExecutionPlan::OutputReference","execution_plan_id":"3a1a8732-373a-4a68-ab01-748fd1a97cce","step_id":19,"action_id":2,"subkeys":["contents_changed"]},"current_request_id":"098e3149-fee4-48dc-9fea-5163ef971f46","current_timezone":"UTC","current_organization_id":null,"current_location_id":null,"current_user_id":4},"output":{},"humanized":{"action":"Synchronize","input":[["repository",{"text":"repository + ''Oracle Linux 7 Convert2RHEL main''","link":null}],["product",{"text":"product + ''Oracle Linux 7 Convert2RHEL''","link":"/products/7/"}],["organization",{"text":"organization + ''Test Organization''","link":"/organizations/4/edit"}]],"output":"Total steps: + 1010/1515\n--------------------------------\nAssociating Content: 500/500\nDownloading + Artifacts: 0/0\nDownloading Metadata Files: 6/6\nParsed Packages: 504/1009\nSkipping + Packages: 0/0","errors":[]},"cli_example":null,"start_at":"2023-11-13 09:23:52 + UTC","available_actions":{"cancellable":true,"resumable":false}}' + headers: + Cache-Control: + - max-age=0, private, must-revalidate + Connection: + - Keep-Alive + Content-Length: + - '2012' + Content-Security-Policy: + - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: + - application/json; charset=utf-8 + Foreman_api_version: + - '2' + Foreman_current_location: + - ; ANY + Foreman_current_organization: + - ; ANY + Foreman_version: + - 3.7.1 + Keep-Alive: + - timeout=15, max=92 + Strict-Transport-Security: + - max-age=631139040; includeSubdomains + X-Content-Type-Options: + - nosniff + X-Download-Options: + - noopen + X-Frame-Options: + - sameorigin + X-Permitted-Cross-Domain-Policies: + - none + X-XSS-Protection: + - 1; mode=block + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json;version=2 + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - apypie (https://github.com/Apipie/apypie) + method: GET + uri: https://foreman.example.org/foreman_tasks/api/tasks/4bfd9d94-3005-4447-9597-18db66d3adfc + response: + body: + string: '{"id":"4bfd9d94-3005-4447-9597-18db66d3adfc","label":"Actions::Katello::Repository::Sync","pending":true,"action":"Synchronize + repository ''Oracle Linux 7 Convert2RHEL main''; product ''Oracle Linux 7 + Convert2RHEL''; organization ''Test Organization''","username":"admin","started_at":"2023-11-13 + 09:23:52 UTC","ended_at":null,"duration":"20.344052","state":"running","result":"pending","progress":0.28,"input":{"repository":{"id":11,"name":"Oracle + Linux 7 Convert2RHEL main","label":"Oracle_Linux_7_Convert2RHEL_main"},"product":{"id":7,"name":"Oracle + Linux 7 Convert2RHEL","label":"Oracle_Linux_7_Convert2RHEL","cp_id":"521078275134"},"provider":{"id":5,"name":"Anonymous"},"organization":{"id":4,"name":"Test + Organization","label":"Test_Organization"},"services_checked":["pulp3"],"id":11,"sync_result":{"class":"Dynflow::ExecutionPlan::OutputReference","execution_plan_id":"3a1a8732-373a-4a68-ab01-748fd1a97cce","step_id":19,"action_id":2,"subkeys":[]},"skip_metadata_check":false,"validate_contents":false,"contents_changed":{"class":"Dynflow::ExecutionPlan::OutputReference","execution_plan_id":"3a1a8732-373a-4a68-ab01-748fd1a97cce","step_id":19,"action_id":2,"subkeys":["contents_changed"]},"current_request_id":"098e3149-fee4-48dc-9fea-5163ef971f46","current_timezone":"UTC","current_organization_id":null,"current_location_id":null,"current_user_id":4},"output":{},"humanized":{"action":"Synchronize","input":[["repository",{"text":"repository + ''Oracle Linux 7 Convert2RHEL main''","link":null}],["product",{"text":"product + ''Oracle Linux 7 Convert2RHEL''","link":"/products/7/"}],["organization",{"text":"organization + ''Test Organization''","link":"/organizations/4/edit"}]],"output":"Total steps: + 1010/1515\n--------------------------------\nAssociating Content: 500/500\nDownloading + Artifacts: 0/0\nDownloading Metadata Files: 6/6\nParsed Packages: 504/1009\nSkipping + Packages: 0/0","errors":[]},"cli_example":null,"start_at":"2023-11-13 09:23:52 + UTC","available_actions":{"cancellable":true,"resumable":false}}' + headers: + Cache-Control: + - max-age=0, private, must-revalidate + Connection: + - Keep-Alive + Content-Length: + - '2012' + Content-Security-Policy: + - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: + - application/json; charset=utf-8 + Foreman_api_version: + - '2' + Foreman_current_location: + - ; ANY + Foreman_current_organization: + - ; ANY + Foreman_version: + - 3.7.1 + Keep-Alive: + - timeout=15, max=91 + Strict-Transport-Security: + - max-age=631139040; includeSubdomains + X-Content-Type-Options: + - nosniff + X-Download-Options: + - noopen + X-Frame-Options: + - sameorigin + X-Permitted-Cross-Domain-Policies: + - none + X-XSS-Protection: + - 1; mode=block + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json;version=2 + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - apypie (https://github.com/Apipie/apypie) + method: GET + uri: https://foreman.example.org/foreman_tasks/api/tasks/4bfd9d94-3005-4447-9597-18db66d3adfc + response: + body: + string: '{"id":"4bfd9d94-3005-4447-9597-18db66d3adfc","label":"Actions::Katello::Repository::Sync","pending":true,"action":"Synchronize + repository ''Oracle Linux 7 Convert2RHEL main''; product ''Oracle Linux 7 + Convert2RHEL''; organization ''Test Organization''","username":"admin","started_at":"2023-11-13 + 09:23:52 UTC","ended_at":null,"duration":"24.383743","state":"running","result":"pending","progress":0.41,"input":{"repository":{"id":11,"name":"Oracle + Linux 7 Convert2RHEL main","label":"Oracle_Linux_7_Convert2RHEL_main"},"product":{"id":7,"name":"Oracle + Linux 7 Convert2RHEL","label":"Oracle_Linux_7_Convert2RHEL","cp_id":"521078275134"},"provider":{"id":5,"name":"Anonymous"},"organization":{"id":4,"name":"Test + Organization","label":"Test_Organization"},"services_checked":["pulp3"],"id":11,"sync_result":{"class":"Dynflow::ExecutionPlan::OutputReference","execution_plan_id":"3a1a8732-373a-4a68-ab01-748fd1a97cce","step_id":19,"action_id":2,"subkeys":[]},"skip_metadata_check":false,"validate_contents":false,"contents_changed":{"class":"Dynflow::ExecutionPlan::OutputReference","execution_plan_id":"3a1a8732-373a-4a68-ab01-748fd1a97cce","step_id":19,"action_id":2,"subkeys":["contents_changed"]},"current_request_id":"098e3149-fee4-48dc-9fea-5163ef971f46","current_timezone":"UTC","current_organization_id":null,"current_location_id":null,"current_user_id":4},"output":{},"humanized":{"action":"Synchronize","input":[["repository",{"text":"repository + ''Oracle Linux 7 Convert2RHEL main''","link":null}],["product",{"text":"product + ''Oracle Linux 7 Convert2RHEL''","link":"/products/7/"}],["organization",{"text":"organization + ''Test Organization''","link":"/organizations/4/edit"}]],"output":"Total steps: + 1515/1515\n--------------------------------\nAssociating Content: 500/500\nDownloading + Artifacts: 0/0\nDownloading Metadata Files: 6/6\nParsed Advisories: 0/0\nParsed + Comps: 0/0\nParsed Packages: 1009/1009\nSkipping Packages: 0/0","errors":[]},"cli_example":null,"start_at":"2023-11-13 + 09:23:52 UTC","available_actions":{"cancellable":true,"resumable":false}}' + headers: + Cache-Control: + - max-age=0, private, must-revalidate + Connection: + - Keep-Alive + Content-Length: + - '2056' + Content-Security-Policy: + - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: + - application/json; charset=utf-8 + Foreman_api_version: + - '2' + Foreman_current_location: + - ; ANY + Foreman_current_organization: + - ; ANY + Foreman_version: + - 3.7.1 + Keep-Alive: + - timeout=15, max=90 + Strict-Transport-Security: + - max-age=631139040; includeSubdomains + X-Content-Type-Options: + - nosniff + X-Download-Options: + - noopen + X-Frame-Options: + - sameorigin + X-Permitted-Cross-Domain-Policies: + - none + X-XSS-Protection: + - 1; mode=block + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json;version=2 + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - apypie (https://github.com/Apipie/apypie) + method: GET + uri: https://foreman.example.org/foreman_tasks/api/tasks/4bfd9d94-3005-4447-9597-18db66d3adfc + response: + body: + string: '{"id":"4bfd9d94-3005-4447-9597-18db66d3adfc","label":"Actions::Katello::Repository::Sync","pending":true,"action":"Synchronize + repository ''Oracle Linux 7 Convert2RHEL main''; product ''Oracle Linux 7 + Convert2RHEL''; organization ''Test Organization''","username":"admin","started_at":"2023-11-13 + 09:23:52 UTC","ended_at":null,"duration":"28.430898","state":"running","result":"pending","progress":0.52,"input":{"repository":{"id":11,"name":"Oracle + Linux 7 Convert2RHEL main","label":"Oracle_Linux_7_Convert2RHEL_main"},"product":{"id":7,"name":"Oracle + Linux 7 Convert2RHEL","label":"Oracle_Linux_7_Convert2RHEL","cp_id":"521078275134"},"provider":{"id":5,"name":"Anonymous"},"organization":{"id":4,"name":"Test + Organization","label":"Test_Organization"},"services_checked":["pulp3"],"id":11,"sync_result":{"class":"Dynflow::ExecutionPlan::OutputReference","execution_plan_id":"3a1a8732-373a-4a68-ab01-748fd1a97cce","step_id":19,"action_id":2,"subkeys":[]},"skip_metadata_check":false,"validate_contents":false,"contents_changed":{"class":"Dynflow::ExecutionPlan::OutputReference","execution_plan_id":"3a1a8732-373a-4a68-ab01-748fd1a97cce","step_id":19,"action_id":2,"subkeys":["contents_changed"]},"current_request_id":"098e3149-fee4-48dc-9fea-5163ef971f46","current_timezone":"UTC","current_organization_id":null,"current_location_id":null,"current_user_id":4},"output":{},"humanized":{"action":"Synchronize","input":[["repository",{"text":"repository + ''Oracle Linux 7 Convert2RHEL main''","link":null}],["product",{"text":"product + ''Oracle Linux 7 Convert2RHEL''","link":"/products/7/"}],["organization",{"text":"organization + ''Test Organization''","link":"/organizations/4/edit"}]],"output":"Total steps: + 2024/2024\n--------------------------------\nAssociating Content: 1009/1009\nDownloading + Artifacts: 0/0\nDownloading Metadata Files: 6/6\nParsed Advisories: 0/0\nParsed + Comps: 0/0\nParsed Packages: 1009/1009\nSkipping Packages: 0/0\nUn-Associating + Content: 0/0","errors":[]},"cli_example":null,"start_at":"2023-11-13 09:23:52 + UTC","available_actions":{"cancellable":true,"resumable":false}}' + headers: + Cache-Control: + - max-age=0, private, must-revalidate + Connection: + - Keep-Alive + Content-Length: + - '2087' + Content-Security-Policy: + - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: + - application/json; charset=utf-8 + Foreman_api_version: + - '2' + Foreman_current_location: + - ; ANY + Foreman_current_organization: + - ; ANY + Foreman_version: + - 3.7.1 + Keep-Alive: + - timeout=15, max=89 + Strict-Transport-Security: + - max-age=631139040; includeSubdomains + X-Content-Type-Options: + - nosniff + X-Download-Options: + - noopen + X-Frame-Options: + - sameorigin + X-Permitted-Cross-Domain-Policies: + - none + X-XSS-Protection: + - 1; mode=block + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json;version=2 + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - apypie (https://github.com/Apipie/apypie) + method: GET + uri: https://foreman.example.org/foreman_tasks/api/tasks/4bfd9d94-3005-4447-9597-18db66d3adfc + response: + body: + string: '{"id":"4bfd9d94-3005-4447-9597-18db66d3adfc","label":"Actions::Katello::Repository::Sync","pending":false,"action":"Synchronize + repository ''Oracle Linux 7 Convert2RHEL main''; product ''Oracle Linux 7 + Convert2RHEL''; organization ''Test Organization''","username":"admin","started_at":"2023-11-13 + 09:23:52 UTC","ended_at":"2023-11-13 09:24:22 UTC","duration":"30.539575","state":"stopped","result":"success","progress":1.0,"input":{"repository":{"id":11,"name":"Oracle + Linux 7 Convert2RHEL main","label":"Oracle_Linux_7_Convert2RHEL_main"},"product":{"id":7,"name":"Oracle + Linux 7 Convert2RHEL","label":"Oracle_Linux_7_Convert2RHEL","cp_id":"521078275134"},"provider":{"id":5,"name":"Anonymous"},"organization":{"id":4,"name":"Test + Organization","label":"Test_Organization"},"services_checked":["pulp3"],"id":11,"sync_result":{"publication_provided":false,"contents_changed":true},"skip_metadata_check":false,"validate_contents":false,"contents_changed":true,"current_request_id":"098e3149-fee4-48dc-9fea-5163ef971f46","current_timezone":"UTC","current_organization_id":null,"current_location_id":null,"current_user_id":4},"output":{},"humanized":{"action":"Synchronize","input":[["repository",{"text":"repository + ''Oracle Linux 7 Convert2RHEL main''","link":null}],["product",{"text":"product + ''Oracle Linux 7 Convert2RHEL''","link":"/products/7/"}],["organization",{"text":"organization + ''Test Organization''","link":"/organizations/4/edit"}]],"output":"Added Rpms: + 1009\nTotal steps: 2024/2024\n--------------------------------\nAssociating + Content: 1009/1009\nDownloading Artifacts: 0/0\nDownloading Metadata Files: + 6/6\nParsed Advisories: 0/0\nParsed Comps: 0/0\nParsed Packages: 1009/1009\nSkipping + Packages: 0/0\nUn-Associating Content: 0/0","errors":[]},"cli_example":null,"start_at":"2023-11-13 + 09:23:52 UTC","available_actions":{"cancellable":false,"resumable":false}}' + headers: + Cache-Control: + - max-age=0, private, must-revalidate + Connection: + - Keep-Alive + Content-Length: + - '1867' + Content-Security-Policy: + - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: + - application/json; charset=utf-8 + Foreman_api_version: + - '2' + Foreman_current_location: + - ; ANY + Foreman_current_organization: + - ; ANY + Foreman_version: + - 3.7.1 + Keep-Alive: + - timeout=15, max=88 + Strict-Transport-Security: + - max-age=631139040; includeSubdomains X-Content-Type-Options: - nosniff X-Download-Options: diff --git a/tests/test_playbooks/fixtures/convert2rhel-11.yml b/tests/test_playbooks/fixtures/convert2rhel-11.yml index b92c39f10..7a005a912 100644 --- a/tests/test_playbooks/fixtures/convert2rhel-11.yml +++ b/tests/test_playbooks/fixtures/convert2rhel-11.yml @@ -14,12 +14,14 @@ interactions: uri: https://foreman.example.org/api/status response: body: - string: '{"satellite_version":"6.14.0","result":"ok","status":200,"version":"3.7.0-develop","api_version":2}' + string: '{"result":"ok","status":200,"version":"3.7.1","api_version":2}' headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive + Content-Length: + - '102' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -33,13 +35,11 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-develop + - 3.7.1 Keep-Alive: - timeout=15, max=100 Strict-Transport-Security: - max-age=631139040; includeSubdomains - Transfer-Encoding: - - chunked X-Content-Type-Options: - nosniff X-Download-Options: @@ -68,16 +68,18 @@ interactions: uri: https://foreman.example.org/katello/api/organizations?search=name%3D%22Test+Organization%22&per_page=4294967296 response: body: - string: "{\n \"total\": 3,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": + string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": 4294967296,\n \"search\": \"name=\\\"Test Organization\\\"\",\n \"sort\": - {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\":\"Test_Organization\",\"created_at\":\"2023-06-21 - 13:24:35 UTC\",\"updated_at\":\"2023-06-21 13:24:38 UTC\",\"id\":5,\"name\":\"Test + {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\":\"Test_Organization\",\"created_at\":\"2023-11-13 + 09:23:21 UTC\",\"updated_at\":\"2023-11-13 09:23:23 UTC\",\"id\":4,\"name\":\"Test Organization\",\"title\":\"Test Organization\",\"description\":\"A test organization\"}]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive + Content-Length: + - '388' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -91,13 +93,11 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-develop + - 3.7.1 Keep-Alive: - timeout=15, max=99 Strict-Transport-Security: - max-age=631139040; includeSubdomains - Transfer-Encoding: - - chunked X-Content-Type-Options: - nosniff X-Download-Options: @@ -123,12 +123,14 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/organizations/5/products?search=name%3D%22Convert2RHEL8%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/organizations/4/products?search=name%3D%22Oracle+Linux+8+Convert2RHEL%22&per_page=4294967296 response: body: - string: '{"total":4,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Convert2RHEL8\"","sort":{"by":"name","order":"asc"},"results":[{"id":31,"cp_id":"323154019581","name":"Convert2RHEL8","label":"Convert2RHEL8","description":null,"provider_id":5,"sync_plan_id":null,"sync_summary":{},"gpg_key_id":null,"ssl_ca_cert_id":null,"ssl_client_cert_id":null,"ssl_client_key_id":null,"sync_state":null,"last_sync":"2023-06-21 - 13:25:19 UTC","last_sync_words":"less than a minute","organization_id":5,"organization":{"name":"Test - Organization","label":"Test_Organization","id":5},"sync_plan":null,"repository_count":1}]} + string: '{"total":4,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Oracle + Linux 8 Convert2RHEL\"","sort":{"by":"name","order":"asc"},"results":[{"id":8,"cp_id":"533490883786","name":"Oracle + Linux 8 Convert2RHEL","label":"Oracle_Linux_8_Convert2RHEL","description":null,"provider_id":5,"sync_plan_id":null,"sync_summary":{},"gpg_key_id":null,"ssl_ca_cert_id":null,"ssl_client_cert_id":null,"ssl_client_key_id":null,"sync_state":null,"last_sync":"2023-11-13 + 09:23:34 UTC","last_sync_words":"1 minute","organization_id":4,"organization":{"name":"Test + Organization","label":"Test_Organization","id":4},"sync_plan":null,"repository_count":1}]} ' headers: @@ -136,6 +138,8 @@ interactions: - max-age=0, private, must-revalidate Connection: - Keep-Alive + Content-Length: + - '674' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -147,15 +151,13 @@ interactions: Foreman_current_location: - ; ANY Foreman_current_organization: - - 5; Test Organization + - 4; Test Organization Foreman_version: - - 3.7.0-develop + - 3.7.1 Keep-Alive: - timeout=15, max=98 Strict-Transport-Security: - max-age=631139040; includeSubdomains - Transfer-Encoding: - - chunked X-Content-Type-Options: - nosniff X-Download-Options: @@ -181,14 +183,15 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/products/31/repositories?search=name%3D%22Convert2RHEL8+main%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/products/8/repositories?search=name%3D%22Oracle+Linux+8+Convert2RHEL+main%22&per_page=4294967296 response: body: - string: '{"total":1,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Convert2RHEL8 - main\"","sort":{"by":"name","order":"asc"},"results":[{"backend_identifier":"0c2a90e1-6e04-4a91-b722-766e8019ebd4","relative_path":"Test_Organization/Library/custom/Convert2RHEL8/Convert2RHEL8_main","container_repository_name":null,"full_path":"https://sat-r220-03.lab.eng.rdu2.redhat.com/pulp/content/Test_Organization/Library/custom/Convert2RHEL8/Convert2RHEL8_main/","library_instance_id":null,"version_href":"/pulp/api/v3/repositories/rpm/rpm/6e1a575a-2309-4cc5-a001-707432769374/versions/0/","remote_href":"/pulp/api/v3/remotes/rpm/rpm/7b5cdd10-10d1-4221-ac33-5f5eeed9dae9/","publication_href":"/pulp/api/v3/publications/rpm/rpm/20da849d-2cdd-407b-aea6-925a89f9e100/","content_counts":{"rpm":0,"erratum":0,"package_group":0,"srpm":0,"module_stream":0},"mirroring_policy":"mirror_content_only","id":17,"name":"Convert2RHEL8 - main","label":"Convert2RHEL8_main","description":null,"content_view_versions":[],"last_sync":null,"content_view":{"id":6,"name":"Default - Organization View"},"content_view_version":{"id":6,"name":"Default Organization - View 1.0","content_view_id":6},"kt_environment":{"id":3,"name":"Library"},"content_type":"yum","url":"https://cdn.redhat.com/content/public/convert2rhel/8/x86_64/os/","arch":"noarch","os_versions":[],"content_id":"1687353899766","generic_remote_options":null,"major":null,"minor":null,"product":{"id":31,"cp_id":"323154019581","name":"Convert2RHEL8","orphaned":false,"redhat":false,"sync_plan":null},"content_label":"Test_Organization_Convert2RHEL8_Convert2RHEL8_main","last_sync_words":null}],"org_repository_count":4} + string: '{"total":1,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Oracle + Linux 8 Convert2RHEL main\"","sort":{"by":"name","order":"asc"},"results":[{"backend_identifier":"578d0b29-4bca-45e8-8213-1ee30b86bea5","relative_path":"Test_Organization/Library/custom/Oracle_Linux_8_Convert2RHEL/Oracle_Linux_8_Convert2RHEL_main","container_repository_name":null,"full_path":"https://centos8-stream-katello-4-9.tanso.example.com/pulp/content/Test_Organization/Library/custom/Oracle_Linux_8_Convert2RHEL/Oracle_Linux_8_Convert2RHEL_main/","library_instance_id":null,"version_href":"/pulp/api/v3/repositories/rpm/rpm/7ba6e2c9-531a-4021-b2ca-2a7482cc6d4d/versions/0/","remote_href":"/pulp/api/v3/remotes/rpm/rpm/de92cca5-e59c-4c3c-b6e9-a0468cadf657/","publication_href":"/pulp/api/v3/publications/rpm/rpm/d19e5137-e5b7-44aa-b8b6-954ec146f31b/","content_counts":{"rpm":0,"erratum":0,"package_group":0,"srpm":0,"module_stream":0},"mirroring_policy":"mirror_content_only","id":12,"name":"Oracle + Linux 8 Convert2RHEL main","label":"Oracle_Linux_8_Convert2RHEL_main","description":null,"content_view_versions":[],"filters":[],"last_sync":null,"content_view":{"id":5,"name":"Default + Organization View"},"content_view_version":{"id":5,"name":"Default Organization + View 1.0","content_view_id":5},"kt_environment":{"id":3,"name":"Library"},"content_type":"yum","url":"https://cdn-ubi.redhat.com/content/public/ubi/dist/ubi8/8/x86_64/baseos/os/","arch":"noarch","os_versions":[],"content_id":"1699867413416","generic_remote_options":null,"major":null,"minor":null,"product":{"id":8,"cp_id":"533490883786","name":"Oracle + Linux 8 Convert2RHEL","orphaned":false,"redhat":false,"sync_plan":null},"content_label":"Test_Organization_Oracle_Linux_8_Convert2RHEL_Oracle_Linux_8_Convert2RHEL_main","last_sync_words":null}],"org_repository_count":4} ' headers: @@ -196,6 +199,8 @@ interactions: - max-age=0, private, must-revalidate Connection: - Keep-Alive + Content-Length: + - '1854' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -209,13 +214,11 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-develop + - 3.7.1 Keep-Alive: - timeout=15, max=97 Strict-Transport-Security: - max-age=631139040; includeSubdomains - Transfer-Encoding: - - chunked X-Content-Type-Options: - nosniff X-Download-Options: @@ -245,18 +248,20 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: POST - uri: https://foreman.example.org/katello/api/repositories/17/sync + uri: https://foreman.example.org/katello/api/repositories/12/sync response: body: - string: ' {"id":"541c0897-2fb9-4ee9-9422-08ee0b2162ed","label":"Actions::Katello::Repository::Sync","pending":true,"action":"Synchronize - repository ''Convert2RHEL8 main''; product ''Convert2RHEL8''; organization - ''Test Organization''","username":"admin","started_at":"2023-06-21 13:25:42 - UTC","ended_at":null,"state":"planned","result":"pending","progress":0.0,"input":{"repository":{"id":17,"name":"Convert2RHEL8 - main","label":"Convert2RHEL8_main"},"product":{"id":31,"name":"Convert2RHEL8","label":"Convert2RHEL8","cp_id":"323154019581"},"provider":{"id":5,"name":"Anonymous"},"organization":{"id":5,"name":"Test - Organization","label":"Test_Organization"},"services_checked":["pulp3"],"id":17,"sync_result":{"class":"Dynflow::ExecutionPlan::OutputReference","execution_plan_id":"cbe99964-8aa5-4bd0-a133-2e258c2c344a","step_id":19,"action_id":2,"subkeys":[]},"skip_metadata_check":false,"validate_contents":false,"contents_changed":{"class":"Dynflow::ExecutionPlan::OutputReference","execution_plan_id":"cbe99964-8aa5-4bd0-a133-2e258c2c344a","step_id":19,"action_id":2,"subkeys":["contents_changed"]},"current_request_id":"59d59818-e121-43ce-94df-ead6fcff49ef","current_timezone":"UTC","current_organization_id":null,"current_location_id":null,"current_user_id":4},"output":{},"humanized":{"action":"Synchronize","input":[["repository",{"text":"repository - ''Convert2RHEL8 main''","link":null}],["product",{"text":"product ''Convert2RHEL8''","link":"/products/31/"}],["organization",{"text":"organization - ''Test Organization''","link":"/organizations/5/edit"}]],"output":"","errors":[]},"cli_example":null,"start_at":"2023-06-21 - 13:25:42 UTC","available_actions":{"cancellable":false,"resumable":false}} + string: ' {"id":"bbe34c69-1051-4d08-afdb-3e63d24dfaad","label":"Actions::Katello::Repository::Sync","pending":true,"action":"Synchronize + repository ''Oracle Linux 8 Convert2RHEL main''; product ''Oracle Linux 8 + Convert2RHEL''; organization ''Test Organization''","username":"admin","started_at":"2023-11-13 + 09:24:25 UTC","ended_at":null,"state":"planned","result":"pending","progress":0.0,"input":{"repository":{"id":12,"name":"Oracle + Linux 8 Convert2RHEL main","label":"Oracle_Linux_8_Convert2RHEL_main"},"product":{"id":8,"name":"Oracle + Linux 8 Convert2RHEL","label":"Oracle_Linux_8_Convert2RHEL","cp_id":"533490883786"},"provider":{"id":5,"name":"Anonymous"},"organization":{"id":4,"name":"Test + Organization","label":"Test_Organization"},"services_checked":["pulp3"],"id":12,"sync_result":{"class":"Dynflow::ExecutionPlan::OutputReference","execution_plan_id":"11f026fb-c3ba-409d-8690-d8bceacd7d21","step_id":19,"action_id":2,"subkeys":[]},"skip_metadata_check":false,"validate_contents":false,"contents_changed":{"class":"Dynflow::ExecutionPlan::OutputReference","execution_plan_id":"11f026fb-c3ba-409d-8690-d8bceacd7d21","step_id":19,"action_id":2,"subkeys":["contents_changed"]},"current_request_id":"d04fa5c4-d220-4b57-8535-10340dcadb21","current_timezone":"UTC","current_organization_id":null,"current_location_id":null,"current_user_id":4},"output":{},"humanized":{"action":"Synchronize","input":[["repository",{"text":"repository + ''Oracle Linux 8 Convert2RHEL main''","link":null}],["product",{"text":"product + ''Oracle Linux 8 Convert2RHEL''","link":"/products/8/"}],["organization",{"text":"organization + ''Test Organization''","link":"/organizations/4/edit"}]],"output":"","errors":[]},"cli_example":null,"start_at":"2023-11-13 + 09:24:25 UTC","available_actions":{"cancellable":false,"resumable":false}} ' headers: @@ -277,7 +282,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-develop + - 3.7.1 Keep-Alive: - timeout=15, max=96 Strict-Transport-Security: @@ -309,26 +314,30 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/foreman_tasks/api/tasks/541c0897-2fb9-4ee9-9422-08ee0b2162ed + uri: https://foreman.example.org/foreman_tasks/api/tasks/bbe34c69-1051-4d08-afdb-3e63d24dfaad response: body: - string: '{"id":"541c0897-2fb9-4ee9-9422-08ee0b2162ed","label":"Actions::Katello::Repository::Sync","pending":true,"action":"Synchronize - repository ''Convert2RHEL8 main''; product ''Convert2RHEL8''; organization - ''Test Organization''","username":"admin","started_at":"2023-06-21 13:25:42 - UTC","ended_at":null,"duration":"5.090362","state":"running","result":"pending","progress":0.41,"input":{"repository":{"id":17,"name":"Convert2RHEL8 - main","label":"Convert2RHEL8_main"},"product":{"id":31,"name":"Convert2RHEL8","label":"Convert2RHEL8","cp_id":"323154019581"},"provider":{"id":5,"name":"Anonymous"},"organization":{"id":5,"name":"Test - Organization","label":"Test_Organization"},"services_checked":["pulp3"],"id":17,"sync_result":{"class":"Dynflow::ExecutionPlan::OutputReference","execution_plan_id":"cbe99964-8aa5-4bd0-a133-2e258c2c344a","step_id":19,"action_id":2,"subkeys":[]},"skip_metadata_check":false,"validate_contents":false,"contents_changed":{"class":"Dynflow::ExecutionPlan::OutputReference","execution_plan_id":"cbe99964-8aa5-4bd0-a133-2e258c2c344a","step_id":19,"action_id":2,"subkeys":["contents_changed"]},"current_request_id":"59d59818-e121-43ce-94df-ead6fcff49ef","current_timezone":"UTC","current_organization_id":null,"current_location_id":null,"current_user_id":4},"output":{},"humanized":{"action":"Synchronize","input":[["repository",{"text":"repository - ''Convert2RHEL8 main''","link":null}],["product",{"text":"product ''Convert2RHEL8''","link":"/products/31/"}],["organization",{"text":"organization - ''Test Organization''","link":"/organizations/5/edit"}]],"output":"Total steps: - 24/24\n--------------------------------\nAssociating Content: 0/0\nDownloading - Artifacts: 0/0\nDownloading Metadata Files: 6/6\nParsed Advisories: 9/9\nParsed - Comps: 0/0\nParsed Packages: 9/9\nSkipping Packages: 0/0","errors":[]},"cli_example":null,"start_at":"2023-06-21 - 13:25:42 UTC","available_actions":{"cancellable":true,"resumable":false}}' + string: '{"id":"bbe34c69-1051-4d08-afdb-3e63d24dfaad","label":"Actions::Katello::Repository::Sync","pending":true,"action":"Synchronize + repository ''Oracle Linux 8 Convert2RHEL main''; product ''Oracle Linux 8 + Convert2RHEL''; organization ''Test Organization''","username":"admin","started_at":"2023-11-13 + 09:24:25 UTC","ended_at":null,"duration":"4.183188","state":"running","result":"pending","progress":0.04,"input":{"repository":{"id":12,"name":"Oracle + Linux 8 Convert2RHEL main","label":"Oracle_Linux_8_Convert2RHEL_main"},"product":{"id":8,"name":"Oracle + Linux 8 Convert2RHEL","label":"Oracle_Linux_8_Convert2RHEL","cp_id":"533490883786"},"provider":{"id":5,"name":"Anonymous"},"organization":{"id":4,"name":"Test + Organization","label":"Test_Organization"},"services_checked":["pulp3"],"id":12,"sync_result":{"class":"Dynflow::ExecutionPlan::OutputReference","execution_plan_id":"11f026fb-c3ba-409d-8690-d8bceacd7d21","step_id":19,"action_id":2,"subkeys":[]},"skip_metadata_check":false,"validate_contents":false,"contents_changed":{"class":"Dynflow::ExecutionPlan::OutputReference","execution_plan_id":"11f026fb-c3ba-409d-8690-d8bceacd7d21","step_id":19,"action_id":2,"subkeys":["contents_changed"]},"current_request_id":"d04fa5c4-d220-4b57-8535-10340dcadb21","current_timezone":"UTC","current_organization_id":null,"current_location_id":null,"current_user_id":4},"output":{},"humanized":{"action":"Synchronize","input":[["repository",{"text":"repository + ''Oracle Linux 8 Convert2RHEL main''","link":null}],["product",{"text":"product + ''Oracle Linux 8 Convert2RHEL''","link":"/products/8/"}],["organization",{"text":"organization + ''Test Organization''","link":"/organizations/4/edit"}]],"output":"Total steps: + 6/755\n--------------------------------\nAssociating Content: 0/0\nDownloading + Artifacts: 0/0\nDownloading Metadata Files: 6/6\nParsed Packages: 0/749\nSkipping + Packages: 0/0","errors":[]},"cli_example":null,"start_at":"2023-11-13 09:24:25 + UTC","available_actions":{"cancellable":true,"resumable":false}}' headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive + Content-Length: + - '2000' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -342,13 +351,11 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-develop + - 3.7.1 Keep-Alive: - timeout=15, max=95 Strict-Transport-Security: - max-age=631139040; includeSubdomains - Transfer-Encoding: - - chunked X-Content-Type-Options: - nosniff X-Download-Options: @@ -374,26 +381,30 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/foreman_tasks/api/tasks/541c0897-2fb9-4ee9-9422-08ee0b2162ed + uri: https://foreman.example.org/foreman_tasks/api/tasks/bbe34c69-1051-4d08-afdb-3e63d24dfaad response: body: - string: '{"id":"541c0897-2fb9-4ee9-9422-08ee0b2162ed","label":"Actions::Katello::Repository::Sync","pending":true,"action":"Synchronize - repository ''Convert2RHEL8 main''; product ''Convert2RHEL8''; organization - ''Test Organization''","username":"admin","started_at":"2023-06-21 13:25:42 - UTC","ended_at":null,"duration":"9.279505","state":"running","result":"pending","progress":0.52,"input":{"repository":{"id":17,"name":"Convert2RHEL8 - main","label":"Convert2RHEL8_main"},"product":{"id":31,"name":"Convert2RHEL8","label":"Convert2RHEL8","cp_id":"323154019581"},"provider":{"id":5,"name":"Anonymous"},"organization":{"id":5,"name":"Test - Organization","label":"Test_Organization"},"services_checked":["pulp3"],"id":17,"sync_result":{"class":"Dynflow::ExecutionPlan::OutputReference","execution_plan_id":"cbe99964-8aa5-4bd0-a133-2e258c2c344a","step_id":19,"action_id":2,"subkeys":[]},"skip_metadata_check":false,"validate_contents":false,"contents_changed":{"class":"Dynflow::ExecutionPlan::OutputReference","execution_plan_id":"cbe99964-8aa5-4bd0-a133-2e258c2c344a","step_id":19,"action_id":2,"subkeys":["contents_changed"]},"current_request_id":"59d59818-e121-43ce-94df-ead6fcff49ef","current_timezone":"UTC","current_organization_id":null,"current_location_id":null,"current_user_id":4},"output":{},"humanized":{"action":"Synchronize","input":[["repository",{"text":"repository - ''Convert2RHEL8 main''","link":null}],["product",{"text":"product ''Convert2RHEL8''","link":"/products/31/"}],["organization",{"text":"organization - ''Test Organization''","link":"/organizations/5/edit"}]],"output":"Total steps: - 51/51\n--------------------------------\nAssociating Content: 18/18\nDownloading - Artifacts: 9/9\nDownloading Metadata Files: 6/6\nParsed Advisories: 9/9\nParsed - Comps: 0/0\nParsed Packages: 9/9\nSkipping Packages: 0/0\nUn-Associating Content: - 0/0","errors":[]},"cli_example":null,"start_at":"2023-06-21 13:25:42 UTC","available_actions":{"cancellable":true,"resumable":false}}' + string: '{"id":"bbe34c69-1051-4d08-afdb-3e63d24dfaad","label":"Actions::Katello::Repository::Sync","pending":true,"action":"Synchronize + repository ''Oracle Linux 8 Convert2RHEL main''; product ''Oracle Linux 8 + Convert2RHEL''; organization ''Test Organization''","username":"admin","started_at":"2023-11-13 + 09:24:25 UTC","ended_at":null,"duration":"8.214787","state":"running","result":"pending","progress":0.04,"input":{"repository":{"id":12,"name":"Oracle + Linux 8 Convert2RHEL main","label":"Oracle_Linux_8_Convert2RHEL_main"},"product":{"id":8,"name":"Oracle + Linux 8 Convert2RHEL","label":"Oracle_Linux_8_Convert2RHEL","cp_id":"533490883786"},"provider":{"id":5,"name":"Anonymous"},"organization":{"id":4,"name":"Test + Organization","label":"Test_Organization"},"services_checked":["pulp3"],"id":12,"sync_result":{"class":"Dynflow::ExecutionPlan::OutputReference","execution_plan_id":"11f026fb-c3ba-409d-8690-d8bceacd7d21","step_id":19,"action_id":2,"subkeys":[]},"skip_metadata_check":false,"validate_contents":false,"contents_changed":{"class":"Dynflow::ExecutionPlan::OutputReference","execution_plan_id":"11f026fb-c3ba-409d-8690-d8bceacd7d21","step_id":19,"action_id":2,"subkeys":["contents_changed"]},"current_request_id":"d04fa5c4-d220-4b57-8535-10340dcadb21","current_timezone":"UTC","current_organization_id":null,"current_location_id":null,"current_user_id":4},"output":{},"humanized":{"action":"Synchronize","input":[["repository",{"text":"repository + ''Oracle Linux 8 Convert2RHEL main''","link":null}],["product",{"text":"product + ''Oracle Linux 8 Convert2RHEL''","link":"/products/8/"}],["organization",{"text":"organization + ''Test Organization''","link":"/organizations/4/edit"}]],"output":"Total steps: + 6/755\n--------------------------------\nAssociating Content: 0/0\nDownloading + Artifacts: 0/0\nDownloading Metadata Files: 6/6\nParsed Packages: 0/749\nSkipping + Packages: 0/0","errors":[]},"cli_example":null,"start_at":"2023-11-13 09:24:25 + UTC","available_actions":{"cancellable":true,"resumable":false}}' headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive + Content-Length: + - '2000' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -407,13 +418,11 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-develop + - 3.7.1 Keep-Alive: - timeout=15, max=94 Strict-Transport-Security: - max-age=631139040; includeSubdomains - Transfer-Encoding: - - chunked X-Content-Type-Options: - nosniff X-Download-Options: @@ -439,27 +448,30 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/foreman_tasks/api/tasks/541c0897-2fb9-4ee9-9422-08ee0b2162ed + uri: https://foreman.example.org/foreman_tasks/api/tasks/bbe34c69-1051-4d08-afdb-3e63d24dfaad response: body: - string: '{"id":"541c0897-2fb9-4ee9-9422-08ee0b2162ed","label":"Actions::Katello::Repository::Sync","pending":false,"action":"Synchronize - repository ''Convert2RHEL8 main''; product ''Convert2RHEL8''; organization - ''Test Organization''","username":"admin","started_at":"2023-06-21 13:25:42 - UTC","ended_at":"2023-06-21 13:25:53 UTC","duration":"11.773737","state":"stopped","result":"success","progress":1.0,"input":{"repository":{"id":17,"name":"Convert2RHEL8 - main","label":"Convert2RHEL8_main"},"product":{"id":31,"name":"Convert2RHEL8","label":"Convert2RHEL8","cp_id":"323154019581"},"provider":{"id":5,"name":"Anonymous"},"organization":{"id":5,"name":"Test - Organization","label":"Test_Organization"},"services_checked":["pulp3"],"id":17,"sync_result":{"publication_provided":false,"contents_changed":true},"skip_metadata_check":false,"validate_contents":false,"contents_changed":true,"current_request_id":"59d59818-e121-43ce-94df-ead6fcff49ef","current_timezone":"UTC","current_organization_id":null,"current_location_id":null,"current_user_id":4},"output":{},"humanized":{"action":"Synchronize","input":[["repository",{"text":"repository - ''Convert2RHEL8 main''","link":null}],["product",{"text":"product ''Convert2RHEL8''","link":"/products/31/"}],["organization",{"text":"organization - ''Test Organization''","link":"/organizations/5/edit"}]],"output":"Added Rpms: - 9, Errata: 9\nTotal steps: 51/51\n--------------------------------\nAssociating - Content: 18/18\nDownloading Artifacts: 9/9\nDownloading Metadata Files: 6/6\nParsed - Advisories: 9/9\nParsed Comps: 0/0\nParsed Packages: 9/9\nSkipping Packages: - 0/0\nUn-Associating Content: 0/0","errors":[]},"cli_example":null,"start_at":"2023-06-21 - 13:25:42 UTC","available_actions":{"cancellable":false,"resumable":false}}' + string: '{"id":"bbe34c69-1051-4d08-afdb-3e63d24dfaad","label":"Actions::Katello::Repository::Sync","pending":true,"action":"Synchronize + repository ''Oracle Linux 8 Convert2RHEL main''; product ''Oracle Linux 8 + Convert2RHEL''; organization ''Test Organization''","username":"admin","started_at":"2023-11-13 + 09:24:25 UTC","ended_at":null,"duration":"12.252544","state":"running","result":"pending","progress":0.41,"input":{"repository":{"id":12,"name":"Oracle + Linux 8 Convert2RHEL main","label":"Oracle_Linux_8_Convert2RHEL_main"},"product":{"id":8,"name":"Oracle + Linux 8 Convert2RHEL","label":"Oracle_Linux_8_Convert2RHEL","cp_id":"533490883786"},"provider":{"id":5,"name":"Anonymous"},"organization":{"id":4,"name":"Test + Organization","label":"Test_Organization"},"services_checked":["pulp3"],"id":12,"sync_result":{"class":"Dynflow::ExecutionPlan::OutputReference","execution_plan_id":"11f026fb-c3ba-409d-8690-d8bceacd7d21","step_id":19,"action_id":2,"subkeys":[]},"skip_metadata_check":false,"validate_contents":false,"contents_changed":{"class":"Dynflow::ExecutionPlan::OutputReference","execution_plan_id":"11f026fb-c3ba-409d-8690-d8bceacd7d21","step_id":19,"action_id":2,"subkeys":["contents_changed"]},"current_request_id":"d04fa5c4-d220-4b57-8535-10340dcadb21","current_timezone":"UTC","current_organization_id":null,"current_location_id":null,"current_user_id":4},"output":{},"humanized":{"action":"Synchronize","input":[["repository",{"text":"repository + ''Oracle Linux 8 Convert2RHEL main''","link":null}],["product",{"text":"product + ''Oracle Linux 8 Convert2RHEL''","link":"/products/8/"}],["organization",{"text":"organization + ''Test Organization''","link":"/organizations/4/edit"}]],"output":"Total steps: + 755/755\n--------------------------------\nAssociating Content: 0/0\nDownloading + Artifacts: 0/0\nDownloading Metadata Files: 6/6\nParsed Advisories: 0/0\nParsed + Comps: 0/0\nParsed Packages: 749/749\nSkipping Packages: 0/0","errors":[]},"cli_example":null,"start_at":"2023-11-13 + 09:24:25 UTC","available_actions":{"cancellable":true,"resumable":false}}' headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive + Content-Length: + - '2048' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -473,13 +485,147 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-develop + - 3.7.1 Keep-Alive: - timeout=15, max=93 Strict-Transport-Security: - max-age=631139040; includeSubdomains - Transfer-Encoding: - - chunked + X-Content-Type-Options: + - nosniff + X-Download-Options: + - noopen + X-Frame-Options: + - sameorigin + X-Permitted-Cross-Domain-Policies: + - none + X-XSS-Protection: + - 1; mode=block + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json;version=2 + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - apypie (https://github.com/Apipie/apypie) + method: GET + uri: https://foreman.example.org/foreman_tasks/api/tasks/bbe34c69-1051-4d08-afdb-3e63d24dfaad + response: + body: + string: '{"id":"bbe34c69-1051-4d08-afdb-3e63d24dfaad","label":"Actions::Katello::Repository::Sync","pending":true,"action":"Synchronize + repository ''Oracle Linux 8 Convert2RHEL main''; product ''Oracle Linux 8 + Convert2RHEL''; organization ''Test Organization''","username":"admin","started_at":"2023-11-13 + 09:24:25 UTC","ended_at":null,"duration":"16.298499","state":"running","result":"pending","progress":0.54,"input":{"repository":{"id":12,"name":"Oracle + Linux 8 Convert2RHEL main","label":"Oracle_Linux_8_Convert2RHEL_main"},"product":{"id":8,"name":"Oracle + Linux 8 Convert2RHEL","label":"Oracle_Linux_8_Convert2RHEL","cp_id":"533490883786"},"provider":{"id":5,"name":"Anonymous"},"organization":{"id":4,"name":"Test + Organization","label":"Test_Organization"},"services_checked":["pulp3"],"id":12,"sync_result":{"class":"Dynflow::ExecutionPlan::OutputReference","execution_plan_id":"11f026fb-c3ba-409d-8690-d8bceacd7d21","step_id":19,"action_id":2,"subkeys":[]},"skip_metadata_check":false,"validate_contents":false,"contents_changed":{"class":"Dynflow::ExecutionPlan::OutputReference","execution_plan_id":"11f026fb-c3ba-409d-8690-d8bceacd7d21","step_id":19,"action_id":2,"subkeys":["contents_changed"]},"current_request_id":"d04fa5c4-d220-4b57-8535-10340dcadb21","current_timezone":"UTC","current_organization_id":null,"current_location_id":null,"current_user_id":4},"output":{},"humanized":{"action":"Synchronize","input":[["repository",{"text":"repository + ''Oracle Linux 8 Convert2RHEL main''","link":null}],["product",{"text":"product + ''Oracle Linux 8 Convert2RHEL''","link":"/products/8/"}],["organization",{"text":"organization + ''Test Organization''","link":"/organizations/4/edit"}]],"output":"Total steps: + 1504/1504\n--------------------------------\nAssociating Content: 749/749\nDownloading + Artifacts: 0/0\nDownloading Metadata Files: 6/6\nParsed Advisories: 0/0\nParsed + Comps: 0/0\nParsed Packages: 749/749\nSkipping Packages: 0/0\nUn-Associating + Content: 0/0","errors":[]},"cli_example":null,"start_at":"2023-11-13 09:24:25 + UTC","available_actions":{"cancellable":true,"resumable":false}}' + headers: + Cache-Control: + - max-age=0, private, must-revalidate + Connection: + - Keep-Alive + Content-Length: + - '2083' + Content-Security-Policy: + - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: + - application/json; charset=utf-8 + Foreman_api_version: + - '2' + Foreman_current_location: + - ; ANY + Foreman_current_organization: + - ; ANY + Foreman_version: + - 3.7.1 + Keep-Alive: + - timeout=15, max=92 + Strict-Transport-Security: + - max-age=631139040; includeSubdomains + X-Content-Type-Options: + - nosniff + X-Download-Options: + - noopen + X-Frame-Options: + - sameorigin + X-Permitted-Cross-Domain-Policies: + - none + X-XSS-Protection: + - 1; mode=block + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json;version=2 + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - apypie (https://github.com/Apipie/apypie) + method: GET + uri: https://foreman.example.org/foreman_tasks/api/tasks/bbe34c69-1051-4d08-afdb-3e63d24dfaad + response: + body: + string: '{"id":"bbe34c69-1051-4d08-afdb-3e63d24dfaad","label":"Actions::Katello::Repository::Sync","pending":false,"action":"Synchronize + repository ''Oracle Linux 8 Convert2RHEL main''; product ''Oracle Linux 8 + Convert2RHEL''; organization ''Test Organization''","username":"admin","started_at":"2023-11-13 + 09:24:25 UTC","ended_at":"2023-11-13 09:24:43 UTC","duration":"17.593308","state":"stopped","result":"success","progress":1.0,"input":{"repository":{"id":12,"name":"Oracle + Linux 8 Convert2RHEL main","label":"Oracle_Linux_8_Convert2RHEL_main"},"product":{"id":8,"name":"Oracle + Linux 8 Convert2RHEL","label":"Oracle_Linux_8_Convert2RHEL","cp_id":"533490883786"},"provider":{"id":5,"name":"Anonymous"},"organization":{"id":4,"name":"Test + Organization","label":"Test_Organization"},"services_checked":["pulp3"],"id":12,"sync_result":{"publication_provided":false,"contents_changed":true},"skip_metadata_check":false,"validate_contents":false,"contents_changed":true,"current_request_id":"d04fa5c4-d220-4b57-8535-10340dcadb21","current_timezone":"UTC","current_organization_id":null,"current_location_id":null,"current_user_id":4},"output":{},"humanized":{"action":"Synchronize","input":[["repository",{"text":"repository + ''Oracle Linux 8 Convert2RHEL main''","link":null}],["product",{"text":"product + ''Oracle Linux 8 Convert2RHEL''","link":"/products/8/"}],["organization",{"text":"organization + ''Test Organization''","link":"/organizations/4/edit"}]],"output":"Added Rpms: + 749\nTotal steps: 1504/1504\n--------------------------------\nAssociating + Content: 749/749\nDownloading Artifacts: 0/0\nDownloading Metadata Files: + 6/6\nParsed Advisories: 0/0\nParsed Comps: 0/0\nParsed Packages: 749/749\nSkipping + Packages: 0/0\nUn-Associating Content: 0/0","errors":[]},"cli_example":null,"start_at":"2023-11-13 + 09:24:25 UTC","available_actions":{"cancellable":false,"resumable":false}}' + headers: + Cache-Control: + - max-age=0, private, must-revalidate + Connection: + - Keep-Alive + Content-Length: + - '1862' + Content-Security-Policy: + - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: + - application/json; charset=utf-8 + Foreman_api_version: + - '2' + Foreman_current_location: + - ; ANY + Foreman_current_organization: + - ; ANY + Foreman_version: + - 3.7.1 + Keep-Alive: + - timeout=15, max=91 + Strict-Transport-Security: + - max-age=631139040; includeSubdomains X-Content-Type-Options: - nosniff X-Download-Options: diff --git a/tests/test_playbooks/fixtures/convert2rhel-12.yml b/tests/test_playbooks/fixtures/convert2rhel-12.yml index 56e554e4d..67df21b1d 100644 --- a/tests/test_playbooks/fixtures/convert2rhel-12.yml +++ b/tests/test_playbooks/fixtures/convert2rhel-12.yml @@ -14,12 +14,14 @@ interactions: uri: https://foreman.example.org/api/status response: body: - string: '{"satellite_version":"6.14.0","result":"ok","status":200,"version":"3.7.0-develop","api_version":2}' + string: '{"result":"ok","status":200,"version":"3.7.1","api_version":2}' headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive + Content-Length: + - '102' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -33,13 +35,11 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-develop + - 3.7.1 Keep-Alive: - timeout=15, max=100 Strict-Transport-Security: - max-age=631139040; includeSubdomains - Transfer-Encoding: - - chunked X-Content-Type-Options: - nosniff X-Download-Options: @@ -68,16 +68,18 @@ interactions: uri: https://foreman.example.org/katello/api/organizations?search=name%3D%22Test+Organization%22&per_page=4294967296 response: body: - string: "{\n \"total\": 3,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": + string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": 4294967296,\n \"search\": \"name=\\\"Test Organization\\\"\",\n \"sort\": - {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\":\"Test_Organization\",\"created_at\":\"2023-06-21 - 13:24:35 UTC\",\"updated_at\":\"2023-06-21 13:24:38 UTC\",\"id\":5,\"name\":\"Test + {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\":\"Test_Organization\",\"created_at\":\"2023-11-13 + 09:23:21 UTC\",\"updated_at\":\"2023-11-13 09:23:23 UTC\",\"id\":4,\"name\":\"Test Organization\",\"title\":\"Test Organization\",\"description\":\"A test organization\"}]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive + Content-Length: + - '388' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -91,13 +93,11 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-develop + - 3.7.1 Keep-Alive: - timeout=15, max=99 Strict-Transport-Security: - max-age=631139040; includeSubdomains - Transfer-Encoding: - - chunked X-Content-Type-Options: - nosniff X-Download-Options: @@ -123,14 +123,10 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/organizations/5/products?search=name%3D%22Oracle+Linux+7+Convert2RHEL%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/organizations/4/content_views?search=name%3D%22convert2rhel_centos7%22&per_page=4294967296 response: body: - string: '{"total":4,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Oracle - Linux 7 Convert2RHEL\"","sort":{"by":"name","order":"asc"},"results":[{"id":32,"cp_id":"511553541992","name":"Oracle - Linux 7 Convert2RHEL","label":"Oracle_Linux_7_Convert2RHEL","description":null,"provider_id":5,"sync_plan_id":null,"sync_summary":{},"gpg_key_id":null,"ssl_ca_cert_id":null,"ssl_client_cert_id":null,"ssl_client_key_id":null,"sync_state":null,"last_sync":"2023-06-21 - 13:25:19 UTC","last_sync_words":"1 minute","organization_id":5,"organization":{"name":"Test - Organization","label":"Test_Organization","id":5},"sync_plan":null,"repository_count":1}]} + string: '{"total":1,"subtotal":0,"selectable":0,"page":1,"per_page":"4294967296","error":null,"search":"name=\"convert2rhel_centos7\"","sort":{"by":"name","order":"asc"},"results":[]} ' headers: @@ -138,6 +134,8 @@ interactions: - max-age=0, private, must-revalidate Connection: - Keep-Alive + Content-Length: + - '175' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -149,15 +147,13 @@ interactions: Foreman_current_location: - ; ANY Foreman_current_organization: - - 5; Test Organization + - 4; Test Organization Foreman_version: - - 3.7.0-develop + - 3.7.1 Keep-Alive: - timeout=15, max=98 Strict-Transport-Security: - max-age=631139040; includeSubdomains - Transfer-Encoding: - - chunked X-Content-Type-Options: - nosniff X-Download-Options: @@ -183,15 +179,12 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/products/32/repositories?search=name%3D%22Oracle+Linux+7+Convert2RHEL+main%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/organizations/4/products?search=name%3D%22Convert2RHEL7%22&per_page=4294967296 response: body: - string: '{"total":1,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Oracle - Linux 7 Convert2RHEL main\"","sort":{"by":"name","order":"asc"},"results":[{"backend_identifier":"68377776-df73-4fd6-9677-bbbd0e26dc47","relative_path":"Test_Organization/Library/custom/Oracle_Linux_7_Convert2RHEL/Oracle_Linux_7_Convert2RHEL_main","container_repository_name":null,"full_path":"https://sat-r220-03.lab.eng.rdu2.redhat.com/pulp/content/Test_Organization/Library/custom/Oracle_Linux_7_Convert2RHEL/Oracle_Linux_7_Convert2RHEL_main/","library_instance_id":null,"version_href":"/pulp/api/v3/repositories/rpm/rpm/6cd487fd-6c11-449c-acfe-455459287571/versions/0/","remote_href":"/pulp/api/v3/remotes/rpm/rpm/9f88b477-cfe9-4e3d-9991-19b58297c19e/","publication_href":"/pulp/api/v3/publications/rpm/rpm/d25a4aad-d51e-4c9a-90f1-611defe2d2f6/","content_counts":{"rpm":0,"erratum":0,"package_group":0,"srpm":0,"module_stream":0},"mirroring_policy":"mirror_content_only","id":18,"name":"Oracle - Linux 7 Convert2RHEL main","label":"Oracle_Linux_7_Convert2RHEL_main","description":null,"content_view_versions":[],"last_sync":null,"content_view":{"id":6,"name":"Default - Organization View"},"content_view_version":{"id":6,"name":"Default Organization - View 1.0","content_view_id":6},"kt_environment":{"id":3,"name":"Library"},"content_type":"yum","url":"https://cdn-ubi.redhat.com/content/public/ubi/dist/ubi/server/7/7Server/x86_64/os","arch":"noarch","os_versions":[],"content_id":"1687353912680","generic_remote_options":null,"major":null,"minor":null,"product":{"id":32,"cp_id":"511553541992","name":"Oracle - Linux 7 Convert2RHEL","orphaned":false,"redhat":false,"sync_plan":null},"content_label":"Test_Organization_Oracle_Linux_7_Convert2RHEL_Oracle_Linux_7_Convert2RHEL_main","last_sync_words":null}],"org_repository_count":4} + string: '{"total":4,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Convert2RHEL7\"","sort":{"by":"name","order":"asc"},"results":[{"id":5,"cp_id":"176163814735","name":"Convert2RHEL7","label":"Convert2RHEL7","description":null,"provider_id":5,"sync_plan_id":null,"sync_summary":{"success":1},"gpg_key_id":null,"ssl_ca_cert_id":null,"ssl_client_cert_id":null,"ssl_client_key_id":null,"sync_state":"Syncing + Complete.","last_sync":"2023-11-13 09:23:34 UTC","last_sync_words":"1 minute","organization_id":4,"organization":{"name":"Test + Organization","label":"Test_Organization","id":4},"sync_plan":null,"repository_count":1}]} ' headers: @@ -199,210 +192,8 @@ interactions: - max-age=0, private, must-revalidate Connection: - Keep-Alive - Content-Security-Policy: - - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; - style-src ''unsafe-inline'' ''self''' - Content-Type: - - application/json; charset=utf-8 - Foreman_api_version: - - '2' - Foreman_current_location: - - ; ANY - Foreman_current_organization: - - ; ANY - Foreman_version: - - 3.7.0-develop - Keep-Alive: - - timeout=15, max=97 - Strict-Transport-Security: - - max-age=631139040; includeSubdomains - Transfer-Encoding: - - chunked - X-Content-Type-Options: - - nosniff - X-Download-Options: - - noopen - X-Frame-Options: - - sameorigin - X-Permitted-Cross-Domain-Policies: - - none - X-XSS-Protection: - - 1; mode=block - status: - code: 200 - message: OK -- request: - body: '{}' - headers: - Accept: - - application/json;version=2 - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive Content-Length: - - '2' - Content-Type: - - application/json - User-Agent: - - apypie (https://github.com/Apipie/apypie) - method: POST - uri: https://foreman.example.org/katello/api/repositories/18/sync - response: - body: - string: ' {"id":"3fdf1ccd-2e69-4f6f-8488-4bdbf2ef0829","label":"Actions::Katello::Repository::Sync","pending":true,"action":"Synchronize - repository ''Oracle Linux 7 Convert2RHEL main''; product ''Oracle Linux 7 - Convert2RHEL''; organization ''Test Organization''","username":"admin","started_at":"2023-06-21 - 13:25:57 UTC","ended_at":null,"state":"planned","result":"pending","progress":0.0,"input":{"repository":{"id":18,"name":"Oracle - Linux 7 Convert2RHEL main","label":"Oracle_Linux_7_Convert2RHEL_main"},"product":{"id":32,"name":"Oracle - Linux 7 Convert2RHEL","label":"Oracle_Linux_7_Convert2RHEL","cp_id":"511553541992"},"provider":{"id":5,"name":"Anonymous"},"organization":{"id":5,"name":"Test - Organization","label":"Test_Organization"},"services_checked":["pulp3"],"id":18,"sync_result":{"class":"Dynflow::ExecutionPlan::OutputReference","execution_plan_id":"bdd74a31-885e-461f-990a-de45082dbb36","step_id":19,"action_id":2,"subkeys":[]},"skip_metadata_check":false,"validate_contents":false,"contents_changed":{"class":"Dynflow::ExecutionPlan::OutputReference","execution_plan_id":"bdd74a31-885e-461f-990a-de45082dbb36","step_id":19,"action_id":2,"subkeys":["contents_changed"]},"current_request_id":"0fc57ded-7426-48b3-84bb-4fbfed337a0e","current_timezone":"UTC","current_organization_id":null,"current_location_id":null,"current_user_id":4},"output":{},"humanized":{"action":"Synchronize","input":[["repository",{"text":"repository - ''Oracle Linux 7 Convert2RHEL main''","link":null}],["product",{"text":"product - ''Oracle Linux 7 Convert2RHEL''","link":"/products/32/"}],["organization",{"text":"organization - ''Test Organization''","link":"/organizations/5/edit"}]],"output":"","errors":[]},"cli_example":null,"start_at":"2023-06-21 - 13:25:57 UTC","available_actions":{"cancellable":false,"resumable":false}} - - ' - headers: - Cache-Control: - - no-cache - Connection: - - Keep-Alive - Content-Security-Policy: - - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; - style-src ''unsafe-inline'' ''self''' - Content-Type: - - application/json; charset=utf-8 - Foreman_api_version: - - '2' - Foreman_current_location: - - ; ANY - Foreman_current_organization: - - ; ANY - Foreman_version: - - 3.7.0-develop - Keep-Alive: - - timeout=15, max=96 - Strict-Transport-Security: - - max-age=631139040; includeSubdomains - Transfer-Encoding: - - chunked - X-Content-Type-Options: - - nosniff - X-Download-Options: - - noopen - X-Frame-Options: - - sameorigin - X-Permitted-Cross-Domain-Policies: - - none - X-XSS-Protection: - - 1; mode=block - status: - code: 202 - message: Accepted -- request: - body: null - headers: - Accept: - - application/json;version=2 - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - apypie (https://github.com/Apipie/apypie) - method: GET - uri: https://foreman.example.org/foreman_tasks/api/tasks/3fdf1ccd-2e69-4f6f-8488-4bdbf2ef0829 - response: - body: - string: '{"id":"3fdf1ccd-2e69-4f6f-8488-4bdbf2ef0829","label":"Actions::Katello::Repository::Sync","pending":true,"action":"Synchronize - repository ''Oracle Linux 7 Convert2RHEL main''; product ''Oracle Linux 7 - Convert2RHEL''; organization ''Test Organization''","username":"admin","started_at":"2023-06-21 - 13:25:57 UTC","ended_at":null,"duration":"5.06481","state":"running","result":"pending","progress":0.04,"input":{"repository":{"id":18,"name":"Oracle - Linux 7 Convert2RHEL main","label":"Oracle_Linux_7_Convert2RHEL_main"},"product":{"id":32,"name":"Oracle - Linux 7 Convert2RHEL","label":"Oracle_Linux_7_Convert2RHEL","cp_id":"511553541992"},"provider":{"id":5,"name":"Anonymous"},"organization":{"id":5,"name":"Test - Organization","label":"Test_Organization"},"services_checked":["pulp3"],"id":18,"sync_result":{"class":"Dynflow::ExecutionPlan::OutputReference","execution_plan_id":"bdd74a31-885e-461f-990a-de45082dbb36","step_id":19,"action_id":2,"subkeys":[]},"skip_metadata_check":false,"validate_contents":false,"contents_changed":{"class":"Dynflow::ExecutionPlan::OutputReference","execution_plan_id":"bdd74a31-885e-461f-990a-de45082dbb36","step_id":19,"action_id":2,"subkeys":["contents_changed"]},"current_request_id":"0fc57ded-7426-48b3-84bb-4fbfed337a0e","current_timezone":"UTC","current_organization_id":null,"current_location_id":null,"current_user_id":4},"output":{},"humanized":{"action":"Synchronize","input":[["repository",{"text":"repository - ''Oracle Linux 7 Convert2RHEL main''","link":null}],["product",{"text":"product - ''Oracle Linux 7 Convert2RHEL''","link":"/products/32/"}],["organization",{"text":"organization - ''Test Organization''","link":"/organizations/5/edit"}]],"output":"Total steps: - 7/1016\n--------------------------------\nAssociating Content: 0/0\nDownloading - Artifacts: 1/1\nDownloading Metadata Files: 6/6\nParsed Packages: 0/1009\nSkipping - Packages: 0/0","errors":[]},"cli_example":null,"start_at":"2023-06-21 13:25:57 - UTC","available_actions":{"cancellable":true,"resumable":false}}' - headers: - Cache-Control: - - max-age=0, private, must-revalidate - Connection: - - Keep-Alive - Content-Security-Policy: - - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; - style-src ''unsafe-inline'' ''self''' - Content-Type: - - application/json; charset=utf-8 - Foreman_api_version: - - '2' - Foreman_current_location: - - ; ANY - Foreman_current_organization: - - ; ANY - Foreman_version: - - 3.7.0-develop - Keep-Alive: - - timeout=15, max=95 - Strict-Transport-Security: - - max-age=631139040; includeSubdomains - Transfer-Encoding: - - chunked - X-Content-Type-Options: - - nosniff - X-Download-Options: - - noopen - X-Frame-Options: - - sameorigin - X-Permitted-Cross-Domain-Policies: - - none - X-XSS-Protection: - - 1; mode=block - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json;version=2 - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - apypie (https://github.com/Apipie/apypie) - method: GET - uri: https://foreman.example.org/foreman_tasks/api/tasks/3fdf1ccd-2e69-4f6f-8488-4bdbf2ef0829 - response: - body: - string: '{"id":"3fdf1ccd-2e69-4f6f-8488-4bdbf2ef0829","label":"Actions::Katello::Repository::Sync","pending":true,"action":"Synchronize - repository ''Oracle Linux 7 Convert2RHEL main''; product ''Oracle Linux 7 - Convert2RHEL''; organization ''Test Organization''","username":"admin","started_at":"2023-06-21 - 13:25:57 UTC","ended_at":null,"duration":"9.260608","state":"running","result":"pending","progress":0.05,"input":{"repository":{"id":18,"name":"Oracle - Linux 7 Convert2RHEL main","label":"Oracle_Linux_7_Convert2RHEL_main"},"product":{"id":32,"name":"Oracle - Linux 7 Convert2RHEL","label":"Oracle_Linux_7_Convert2RHEL","cp_id":"511553541992"},"provider":{"id":5,"name":"Anonymous"},"organization":{"id":5,"name":"Test - Organization","label":"Test_Organization"},"services_checked":["pulp3"],"id":18,"sync_result":{"class":"Dynflow::ExecutionPlan::OutputReference","execution_plan_id":"bdd74a31-885e-461f-990a-de45082dbb36","step_id":19,"action_id":2,"subkeys":[]},"skip_metadata_check":false,"validate_contents":false,"contents_changed":{"class":"Dynflow::ExecutionPlan::OutputReference","execution_plan_id":"bdd74a31-885e-461f-990a-de45082dbb36","step_id":19,"action_id":2,"subkeys":["contents_changed"]},"current_request_id":"0fc57ded-7426-48b3-84bb-4fbfed337a0e","current_timezone":"UTC","current_organization_id":null,"current_location_id":null,"current_user_id":4},"output":{},"humanized":{"action":"Synchronize","input":[["repository",{"text":"repository - ''Oracle Linux 7 Convert2RHEL main''","link":null}],["product",{"text":"product - ''Oracle Linux 7 Convert2RHEL''","link":"/products/32/"}],["organization",{"text":"organization - ''Test Organization''","link":"/organizations/5/edit"}]],"output":"Total steps: - 24/1033\n--------------------------------\nAssociating Content: 0/0\nDownloading - Artifacts: 18/18\nDownloading Metadata Files: 6/6\nParsed Packages: 0/1009\nSkipping - Packages: 0/0","errors":[]},"cli_example":null,"start_at":"2023-06-21 13:25:57 - UTC","available_actions":{"cancellable":true,"resumable":false}}' - headers: - Cache-Control: - - max-age=0, private, must-revalidate - Connection: - - Keep-Alive + - '658' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -414,15 +205,13 @@ interactions: Foreman_current_location: - ; ANY Foreman_current_organization: - - ; ANY + - 4; Test Organization Foreman_version: - - 3.7.0-develop + - 3.7.1 Keep-Alive: - - timeout=15, max=94 + - timeout=15, max=97 Strict-Transport-Security: - max-age=631139040; includeSubdomains - Transfer-Encoding: - - chunked X-Content-Type-Options: - nosniff X-Download-Options: @@ -448,28 +237,25 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/foreman_tasks/api/tasks/3fdf1ccd-2e69-4f6f-8488-4bdbf2ef0829 + uri: https://foreman.example.org/katello/api/products/5/repositories?search=name%3D%22Convert2RHEL7+main%22&per_page=4294967296 response: body: - string: '{"id":"3fdf1ccd-2e69-4f6f-8488-4bdbf2ef0829","label":"Actions::Katello::Repository::Sync","pending":true,"action":"Synchronize - repository ''Oracle Linux 7 Convert2RHEL main''; product ''Oracle Linux 7 - Convert2RHEL''; organization ''Test Organization''","username":"admin","started_at":"2023-06-21 - 13:25:57 UTC","ended_at":null,"duration":"13.480849","state":"running","result":"pending","progress":0.06,"input":{"repository":{"id":18,"name":"Oracle - Linux 7 Convert2RHEL main","label":"Oracle_Linux_7_Convert2RHEL_main"},"product":{"id":32,"name":"Oracle - Linux 7 Convert2RHEL","label":"Oracle_Linux_7_Convert2RHEL","cp_id":"511553541992"},"provider":{"id":5,"name":"Anonymous"},"organization":{"id":5,"name":"Test - Organization","label":"Test_Organization"},"services_checked":["pulp3"],"id":18,"sync_result":{"class":"Dynflow::ExecutionPlan::OutputReference","execution_plan_id":"bdd74a31-885e-461f-990a-de45082dbb36","step_id":19,"action_id":2,"subkeys":[]},"skip_metadata_check":false,"validate_contents":false,"contents_changed":{"class":"Dynflow::ExecutionPlan::OutputReference","execution_plan_id":"bdd74a31-885e-461f-990a-de45082dbb36","step_id":19,"action_id":2,"subkeys":["contents_changed"]},"current_request_id":"0fc57ded-7426-48b3-84bb-4fbfed337a0e","current_timezone":"UTC","current_organization_id":null,"current_location_id":null,"current_user_id":4},"output":{},"humanized":{"action":"Synchronize","input":[["repository",{"text":"repository - ''Oracle Linux 7 Convert2RHEL main''","link":null}],["product",{"text":"product - ''Oracle Linux 7 Convert2RHEL''","link":"/products/32/"}],["organization",{"text":"organization - ''Test Organization''","link":"/organizations/5/edit"}]],"output":"Total steps: - 79/1088\n--------------------------------\nAssociating Content: 0/0\nDownloading - Artifacts: 73/73\nDownloading Metadata Files: 6/6\nParsed Packages: 0/1009\nSkipping - Packages: 0/0","errors":[]},"cli_example":null,"start_at":"2023-06-21 13:25:57 - UTC","available_actions":{"cancellable":true,"resumable":false}}' + string: '{"total":1,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Convert2RHEL7 + main\"","sort":{"by":"name","order":"asc"},"results":[{"backend_identifier":"42ac9443-2167-4189-b4da-bbfcf402b74a","relative_path":"Test_Organization/Library/custom/Convert2RHEL7/Convert2RHEL7_main","container_repository_name":null,"full_path":"https://centos8-stream-katello-4-9.tanso.example.com/pulp/content/Test_Organization/Library/custom/Convert2RHEL7/Convert2RHEL7_main/","library_instance_id":null,"version_href":"/pulp/api/v3/repositories/rpm/rpm/b5fce5ea-3912-45b8-966e-fb9f15e774e2/versions/1/","remote_href":"/pulp/api/v3/remotes/rpm/rpm/a363bf7a-e6cf-44fb-a11c-b50602ce53f7/","publication_href":"/pulp/api/v3/publications/rpm/rpm/4b42d252-9805-49e8-a125-737f3e9235d8/","content_counts":{"rpm":12,"erratum":12,"package_group":0,"srpm":0,"module_stream":0},"mirroring_policy":"mirror_content_only","id":9,"name":"Convert2RHEL7 + main","label":"Convert2RHEL7_main","description":null,"content_view_versions":[],"filters":[],"last_sync":{"id":"b159576b-062a-43a2-a6bb-82d5ef2859e6","username":"admin","started_at":"2023-11-13 + 09:23:34 UTC","ended_at":"2023-11-13 09:23:42 UTC","state":"stopped","result":"success","progress":1.0},"content_view":{"id":5,"name":"Default + Organization View"},"content_view_version":{"id":5,"name":"Default Organization + View 1.0","content_view_id":5},"kt_environment":{"id":3,"name":"Library"},"content_type":"yum","url":"https://cdn-public.redhat.com/content/public/addon/dist/convert2rhel/server/7/7Server/x86_64/os/","arch":"noarch","os_versions":[],"content_id":"1699867405581","generic_remote_options":null,"major":null,"minor":null,"product":{"id":5,"cp_id":"176163814735","name":"Convert2RHEL7","orphaned":false,"redhat":false,"sync_plan":null},"content_label":"Test_Organization_Convert2RHEL7_Convert2RHEL7_main","last_sync_words":"1 + minute"}],"org_repository_count":4} + + ' headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive + Content-Length: + - '1930' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -483,13 +269,11 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-develop + - 3.7.1 Keep-Alive: - - timeout=15, max=93 + - timeout=15, max=96 Strict-Transport-Security: - max-age=631139040; includeSubdomains - Transfer-Encoding: - - chunked X-Content-Type-Options: - nosniff X-Download-Options: @@ -504,7 +288,8 @@ interactions: code: 200 message: OK - request: - body: null + body: '{"name": "convert2rhel_centos7", "composite": false, "repository_ids": + [9], "auto_publish": false}' headers: Accept: - application/json;version=2 @@ -512,98 +297,29 @@ interactions: - gzip, deflate Connection: - keep-alive - User-Agent: - - apypie (https://github.com/Apipie/apypie) - method: GET - uri: https://foreman.example.org/foreman_tasks/api/tasks/3fdf1ccd-2e69-4f6f-8488-4bdbf2ef0829 - response: - body: - string: '{"id":"3fdf1ccd-2e69-4f6f-8488-4bdbf2ef0829","label":"Actions::Katello::Repository::Sync","pending":true,"action":"Synchronize - repository ''Oracle Linux 7 Convert2RHEL main''; product ''Oracle Linux 7 - Convert2RHEL''; organization ''Test Organization''","username":"admin","started_at":"2023-06-21 - 13:25:57 UTC","ended_at":null,"duration":"17.688021","state":"running","result":"pending","progress":0.08,"input":{"repository":{"id":18,"name":"Oracle - Linux 7 Convert2RHEL main","label":"Oracle_Linux_7_Convert2RHEL_main"},"product":{"id":32,"name":"Oracle - Linux 7 Convert2RHEL","label":"Oracle_Linux_7_Convert2RHEL","cp_id":"511553541992"},"provider":{"id":5,"name":"Anonymous"},"organization":{"id":5,"name":"Test - Organization","label":"Test_Organization"},"services_checked":["pulp3"],"id":18,"sync_result":{"class":"Dynflow::ExecutionPlan::OutputReference","execution_plan_id":"bdd74a31-885e-461f-990a-de45082dbb36","step_id":19,"action_id":2,"subkeys":[]},"skip_metadata_check":false,"validate_contents":false,"contents_changed":{"class":"Dynflow::ExecutionPlan::OutputReference","execution_plan_id":"bdd74a31-885e-461f-990a-de45082dbb36","step_id":19,"action_id":2,"subkeys":["contents_changed"]},"current_request_id":"0fc57ded-7426-48b3-84bb-4fbfed337a0e","current_timezone":"UTC","current_organization_id":null,"current_location_id":null,"current_user_id":4},"output":{},"humanized":{"action":"Synchronize","input":[["repository",{"text":"repository - ''Oracle Linux 7 Convert2RHEL main''","link":null}],["product",{"text":"product - ''Oracle Linux 7 Convert2RHEL''","link":"/products/32/"}],["organization",{"text":"organization - ''Test Organization''","link":"/organizations/5/edit"}]],"output":"Total steps: - 134/1143\n--------------------------------\nAssociating Content: 0/0\nDownloading - Artifacts: 128/128\nDownloading Metadata Files: 6/6\nParsed Packages: 0/1009\nSkipping - Packages: 0/0","errors":[]},"cli_example":null,"start_at":"2023-06-21 13:25:57 - UTC","available_actions":{"cancellable":true,"resumable":false}}' - headers: - Cache-Control: - - max-age=0, private, must-revalidate - Connection: - - Keep-Alive - Content-Security-Policy: - - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; - style-src ''unsafe-inline'' ''self''' + Content-Length: + - '98' Content-Type: - - application/json; charset=utf-8 - Foreman_api_version: - - '2' - Foreman_current_location: - - ; ANY - Foreman_current_organization: - - ; ANY - Foreman_version: - - 3.7.0-develop - Keep-Alive: - - timeout=15, max=92 - Strict-Transport-Security: - - max-age=631139040; includeSubdomains - Transfer-Encoding: - - chunked - X-Content-Type-Options: - - nosniff - X-Download-Options: - - noopen - X-Frame-Options: - - sameorigin - X-Permitted-Cross-Domain-Policies: - - none - X-XSS-Protection: - - 1; mode=block - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json;version=2 - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive + - application/json User-Agent: - apypie (https://github.com/Apipie/apypie) - method: GET - uri: https://foreman.example.org/foreman_tasks/api/tasks/3fdf1ccd-2e69-4f6f-8488-4bdbf2ef0829 + method: POST + uri: https://foreman.example.org/katello/api/organizations/4/content_views response: body: - string: '{"id":"3fdf1ccd-2e69-4f6f-8488-4bdbf2ef0829","label":"Actions::Katello::Repository::Sync","pending":true,"action":"Synchronize - repository ''Oracle Linux 7 Convert2RHEL main''; product ''Oracle Linux 7 - Convert2RHEL''; organization ''Test Organization''","username":"admin","started_at":"2023-06-21 - 13:25:57 UTC","ended_at":null,"duration":"21.877413","state":"running","result":"pending","progress":0.1,"input":{"repository":{"id":18,"name":"Oracle - Linux 7 Convert2RHEL main","label":"Oracle_Linux_7_Convert2RHEL_main"},"product":{"id":32,"name":"Oracle - Linux 7 Convert2RHEL","label":"Oracle_Linux_7_Convert2RHEL","cp_id":"511553541992"},"provider":{"id":5,"name":"Anonymous"},"organization":{"id":5,"name":"Test - Organization","label":"Test_Organization"},"services_checked":["pulp3"],"id":18,"sync_result":{"class":"Dynflow::ExecutionPlan::OutputReference","execution_plan_id":"bdd74a31-885e-461f-990a-de45082dbb36","step_id":19,"action_id":2,"subkeys":[]},"skip_metadata_check":false,"validate_contents":false,"contents_changed":{"class":"Dynflow::ExecutionPlan::OutputReference","execution_plan_id":"bdd74a31-885e-461f-990a-de45082dbb36","step_id":19,"action_id":2,"subkeys":["contents_changed"]},"current_request_id":"0fc57ded-7426-48b3-84bb-4fbfed337a0e","current_timezone":"UTC","current_organization_id":null,"current_location_id":null,"current_user_id":4},"output":{},"humanized":{"action":"Synchronize","input":[["repository",{"text":"repository - ''Oracle Linux 7 Convert2RHEL main''","link":null}],["product",{"text":"product - ''Oracle Linux 7 Convert2RHEL''","link":"/products/32/"}],["organization",{"text":"organization - ''Test Organization''","link":"/organizations/5/edit"}]],"output":"Total steps: - 193/1202\n--------------------------------\nAssociating Content: 0/0\nDownloading - Artifacts: 187/187\nDownloading Metadata Files: 6/6\nParsed Packages: 0/1009\nSkipping - Packages: 0/0","errors":[]},"cli_example":null,"start_at":"2023-06-21 13:25:57 - UTC","available_actions":{"cancellable":true,"resumable":false}}' + string: ' {"content_host_count":0,"composite":false,"component_ids":[],"default":false,"version_count":0,"latest_version":null,"latest_version_id":null,"auto_publish":false,"solve_dependencies":false,"import_only":false,"generated_for":"none","related_cv_count":0,"related_composite_cvs":[],"needs_publish":true,"filtered":false,"repository_ids":[9],"id":6,"name":"convert2rhel_centos7","label":"convert2rhel_centos7","description":null,"organization_id":4,"organization":{"name":"Test + Organization","label":"Test_Organization","id":4},"created_at":"2023-11-13 + 09:24:46 UTC","updated_at":"2023-11-13 09:24:46 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":9,"name":"Convert2RHEL7 + main","label":"Convert2RHEL7_main","content_type":"yum"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[],"duplicate_repositories_to_publish":[],"errors":null} + + ' headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive + Content-Length: + - '966' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -615,15 +331,13 @@ interactions: Foreman_current_location: - ; ANY Foreman_current_organization: - - ; ANY + - 4; Test Organization Foreman_version: - - 3.7.0-develop + - 3.7.1 Keep-Alive: - - timeout=15, max=91 + - timeout=15, max=95 Strict-Transport-Security: - max-age=631139040; includeSubdomains - Transfer-Encoding: - - chunked X-Content-Type-Options: - nosniff X-Download-Options: @@ -635,1417 +349,6 @@ interactions: X-XSS-Protection: - 1; mode=block status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json;version=2 - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - apypie (https://github.com/Apipie/apypie) - method: GET - uri: https://foreman.example.org/foreman_tasks/api/tasks/3fdf1ccd-2e69-4f6f-8488-4bdbf2ef0829 - response: - body: - string: '{"id":"3fdf1ccd-2e69-4f6f-8488-4bdbf2ef0829","label":"Actions::Katello::Repository::Sync","pending":true,"action":"Synchronize - repository ''Oracle Linux 7 Convert2RHEL main''; product ''Oracle Linux 7 - Convert2RHEL''; organization ''Test Organization''","username":"admin","started_at":"2023-06-21 - 13:25:57 UTC","ended_at":null,"duration":"26.102365","state":"running","result":"pending","progress":0.11,"input":{"repository":{"id":18,"name":"Oracle - Linux 7 Convert2RHEL main","label":"Oracle_Linux_7_Convert2RHEL_main"},"product":{"id":32,"name":"Oracle - Linux 7 Convert2RHEL","label":"Oracle_Linux_7_Convert2RHEL","cp_id":"511553541992"},"provider":{"id":5,"name":"Anonymous"},"organization":{"id":5,"name":"Test - Organization","label":"Test_Organization"},"services_checked":["pulp3"],"id":18,"sync_result":{"class":"Dynflow::ExecutionPlan::OutputReference","execution_plan_id":"bdd74a31-885e-461f-990a-de45082dbb36","step_id":19,"action_id":2,"subkeys":[]},"skip_metadata_check":false,"validate_contents":false,"contents_changed":{"class":"Dynflow::ExecutionPlan::OutputReference","execution_plan_id":"bdd74a31-885e-461f-990a-de45082dbb36","step_id":19,"action_id":2,"subkeys":["contents_changed"]},"current_request_id":"0fc57ded-7426-48b3-84bb-4fbfed337a0e","current_timezone":"UTC","current_organization_id":null,"current_location_id":null,"current_user_id":4},"output":{},"humanized":{"action":"Synchronize","input":[["repository",{"text":"repository - ''Oracle Linux 7 Convert2RHEL main''","link":null}],["product",{"text":"product - ''Oracle Linux 7 Convert2RHEL''","link":"/products/32/"}],["organization",{"text":"organization - ''Test Organization''","link":"/organizations/5/edit"}]],"output":"Total steps: - 233/1242\n--------------------------------\nAssociating Content: 0/0\nDownloading - Artifacts: 227/227\nDownloading Metadata Files: 6/6\nParsed Packages: 0/1009\nSkipping - Packages: 0/0","errors":[]},"cli_example":null,"start_at":"2023-06-21 13:25:57 - UTC","available_actions":{"cancellable":true,"resumable":false}}' - headers: - Cache-Control: - - max-age=0, private, must-revalidate - Connection: - - Keep-Alive - Content-Security-Policy: - - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; - style-src ''unsafe-inline'' ''self''' - Content-Type: - - application/json; charset=utf-8 - Foreman_api_version: - - '2' - Foreman_current_location: - - ; ANY - Foreman_current_organization: - - ; ANY - Foreman_version: - - 3.7.0-develop - Keep-Alive: - - timeout=15, max=90 - Strict-Transport-Security: - - max-age=631139040; includeSubdomains - Transfer-Encoding: - - chunked - X-Content-Type-Options: - - nosniff - X-Download-Options: - - noopen - X-Frame-Options: - - sameorigin - X-Permitted-Cross-Domain-Policies: - - none - X-XSS-Protection: - - 1; mode=block - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json;version=2 - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - apypie (https://github.com/Apipie/apypie) - method: GET - uri: https://foreman.example.org/foreman_tasks/api/tasks/3fdf1ccd-2e69-4f6f-8488-4bdbf2ef0829 - response: - body: - string: '{"id":"3fdf1ccd-2e69-4f6f-8488-4bdbf2ef0829","label":"Actions::Katello::Repository::Sync","pending":true,"action":"Synchronize - repository ''Oracle Linux 7 Convert2RHEL main''; product ''Oracle Linux 7 - Convert2RHEL''; organization ''Test Organization''","username":"admin","started_at":"2023-06-21 - 13:25:57 UTC","ended_at":null,"duration":"30.411002","state":"running","result":"pending","progress":0.12,"input":{"repository":{"id":18,"name":"Oracle - Linux 7 Convert2RHEL main","label":"Oracle_Linux_7_Convert2RHEL_main"},"product":{"id":32,"name":"Oracle - Linux 7 Convert2RHEL","label":"Oracle_Linux_7_Convert2RHEL","cp_id":"511553541992"},"provider":{"id":5,"name":"Anonymous"},"organization":{"id":5,"name":"Test - Organization","label":"Test_Organization"},"services_checked":["pulp3"],"id":18,"sync_result":{"class":"Dynflow::ExecutionPlan::OutputReference","execution_plan_id":"bdd74a31-885e-461f-990a-de45082dbb36","step_id":19,"action_id":2,"subkeys":[]},"skip_metadata_check":false,"validate_contents":false,"contents_changed":{"class":"Dynflow::ExecutionPlan::OutputReference","execution_plan_id":"bdd74a31-885e-461f-990a-de45082dbb36","step_id":19,"action_id":2,"subkeys":["contents_changed"]},"current_request_id":"0fc57ded-7426-48b3-84bb-4fbfed337a0e","current_timezone":"UTC","current_organization_id":null,"current_location_id":null,"current_user_id":4},"output":{},"humanized":{"action":"Synchronize","input":[["repository",{"text":"repository - ''Oracle Linux 7 Convert2RHEL main''","link":null}],["product",{"text":"product - ''Oracle Linux 7 Convert2RHEL''","link":"/products/32/"}],["organization",{"text":"organization - ''Test Organization''","link":"/organizations/5/edit"}]],"output":"Total steps: - 283/1292\n--------------------------------\nAssociating Content: 0/0\nDownloading - Artifacts: 277/277\nDownloading Metadata Files: 6/6\nParsed Packages: 0/1009\nSkipping - Packages: 0/0","errors":[]},"cli_example":null,"start_at":"2023-06-21 13:25:57 - UTC","available_actions":{"cancellable":true,"resumable":false}}' - headers: - Cache-Control: - - max-age=0, private, must-revalidate - Connection: - - Keep-Alive - Content-Security-Policy: - - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; - style-src ''unsafe-inline'' ''self''' - Content-Type: - - application/json; charset=utf-8 - Foreman_api_version: - - '2' - Foreman_current_location: - - ; ANY - Foreman_current_organization: - - ; ANY - Foreman_version: - - 3.7.0-develop - Keep-Alive: - - timeout=15, max=89 - Strict-Transport-Security: - - max-age=631139040; includeSubdomains - Transfer-Encoding: - - chunked - X-Content-Type-Options: - - nosniff - X-Download-Options: - - noopen - X-Frame-Options: - - sameorigin - X-Permitted-Cross-Domain-Policies: - - none - X-XSS-Protection: - - 1; mode=block - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json;version=2 - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - apypie (https://github.com/Apipie/apypie) - method: GET - uri: https://foreman.example.org/foreman_tasks/api/tasks/3fdf1ccd-2e69-4f6f-8488-4bdbf2ef0829 - response: - body: - string: '{"id":"3fdf1ccd-2e69-4f6f-8488-4bdbf2ef0829","label":"Actions::Katello::Repository::Sync","pending":true,"action":"Synchronize - repository ''Oracle Linux 7 Convert2RHEL main''; product ''Oracle Linux 7 - Convert2RHEL''; organization ''Test Organization''","username":"admin","started_at":"2023-06-21 - 13:25:57 UTC","ended_at":null,"duration":"34.642173","state":"running","result":"pending","progress":0.41,"input":{"repository":{"id":18,"name":"Oracle - Linux 7 Convert2RHEL main","label":"Oracle_Linux_7_Convert2RHEL_main"},"product":{"id":32,"name":"Oracle - Linux 7 Convert2RHEL","label":"Oracle_Linux_7_Convert2RHEL","cp_id":"511553541992"},"provider":{"id":5,"name":"Anonymous"},"organization":{"id":5,"name":"Test - Organization","label":"Test_Organization"},"services_checked":["pulp3"],"id":18,"sync_result":{"class":"Dynflow::ExecutionPlan::OutputReference","execution_plan_id":"bdd74a31-885e-461f-990a-de45082dbb36","step_id":19,"action_id":2,"subkeys":[]},"skip_metadata_check":false,"validate_contents":false,"contents_changed":{"class":"Dynflow::ExecutionPlan::OutputReference","execution_plan_id":"bdd74a31-885e-461f-990a-de45082dbb36","step_id":19,"action_id":2,"subkeys":["contents_changed"]},"current_request_id":"0fc57ded-7426-48b3-84bb-4fbfed337a0e","current_timezone":"UTC","current_organization_id":null,"current_location_id":null,"current_user_id":4},"output":{},"humanized":{"action":"Synchronize","input":[["repository",{"text":"repository - ''Oracle Linux 7 Convert2RHEL main''","link":null}],["product",{"text":"product - ''Oracle Linux 7 Convert2RHEL''","link":"/products/32/"}],["organization",{"text":"organization - ''Test Organization''","link":"/organizations/5/edit"}]],"output":"Total steps: - 1340/1340\n--------------------------------\nAssociating Content: 0/0\nDownloading - Artifacts: 325/325\nDownloading Metadata Files: 6/6\nParsed Advisories: 0/0\nParsed - Comps: 0/0\nParsed Packages: 1009/1009\nSkipping Packages: 0/0","errors":[]},"cli_example":null,"start_at":"2023-06-21 - 13:25:57 UTC","available_actions":{"cancellable":true,"resumable":false}}' - headers: - Cache-Control: - - max-age=0, private, must-revalidate - Connection: - - Keep-Alive - Content-Security-Policy: - - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; - style-src ''unsafe-inline'' ''self''' - Content-Type: - - application/json; charset=utf-8 - Foreman_api_version: - - '2' - Foreman_current_location: - - ; ANY - Foreman_current_organization: - - ; ANY - Foreman_version: - - 3.7.0-develop - Keep-Alive: - - timeout=15, max=88 - Strict-Transport-Security: - - max-age=631139040; includeSubdomains - Transfer-Encoding: - - chunked - X-Content-Type-Options: - - nosniff - X-Download-Options: - - noopen - X-Frame-Options: - - sameorigin - X-Permitted-Cross-Domain-Policies: - - none - X-XSS-Protection: - - 1; mode=block - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json;version=2 - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - apypie (https://github.com/Apipie/apypie) - method: GET - uri: https://foreman.example.org/foreman_tasks/api/tasks/3fdf1ccd-2e69-4f6f-8488-4bdbf2ef0829 - response: - body: - string: '{"id":"3fdf1ccd-2e69-4f6f-8488-4bdbf2ef0829","label":"Actions::Katello::Repository::Sync","pending":true,"action":"Synchronize - repository ''Oracle Linux 7 Convert2RHEL main''; product ''Oracle Linux 7 - Convert2RHEL''; organization ''Test Organization''","username":"admin","started_at":"2023-06-21 - 13:25:57 UTC","ended_at":null,"duration":"38.843548","state":"running","result":"pending","progress":0.41,"input":{"repository":{"id":18,"name":"Oracle - Linux 7 Convert2RHEL main","label":"Oracle_Linux_7_Convert2RHEL_main"},"product":{"id":32,"name":"Oracle - Linux 7 Convert2RHEL","label":"Oracle_Linux_7_Convert2RHEL","cp_id":"511553541992"},"provider":{"id":5,"name":"Anonymous"},"organization":{"id":5,"name":"Test - Organization","label":"Test_Organization"},"services_checked":["pulp3"],"id":18,"sync_result":{"class":"Dynflow::ExecutionPlan::OutputReference","execution_plan_id":"bdd74a31-885e-461f-990a-de45082dbb36","step_id":19,"action_id":2,"subkeys":[]},"skip_metadata_check":false,"validate_contents":false,"contents_changed":{"class":"Dynflow::ExecutionPlan::OutputReference","execution_plan_id":"bdd74a31-885e-461f-990a-de45082dbb36","step_id":19,"action_id":2,"subkeys":["contents_changed"]},"current_request_id":"0fc57ded-7426-48b3-84bb-4fbfed337a0e","current_timezone":"UTC","current_organization_id":null,"current_location_id":null,"current_user_id":4},"output":{},"humanized":{"action":"Synchronize","input":[["repository",{"text":"repository - ''Oracle Linux 7 Convert2RHEL main''","link":null}],["product",{"text":"product - ''Oracle Linux 7 Convert2RHEL''","link":"/products/32/"}],["organization",{"text":"organization - ''Test Organization''","link":"/organizations/5/edit"}]],"output":"Total steps: - 1383/1383\n--------------------------------\nAssociating Content: 0/0\nDownloading - Artifacts: 368/368\nDownloading Metadata Files: 6/6\nParsed Advisories: 0/0\nParsed - Comps: 0/0\nParsed Packages: 1009/1009\nSkipping Packages: 0/0","errors":[]},"cli_example":null,"start_at":"2023-06-21 - 13:25:57 UTC","available_actions":{"cancellable":true,"resumable":false}}' - headers: - Cache-Control: - - max-age=0, private, must-revalidate - Connection: - - Keep-Alive - Content-Security-Policy: - - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; - style-src ''unsafe-inline'' ''self''' - Content-Type: - - application/json; charset=utf-8 - Foreman_api_version: - - '2' - Foreman_current_location: - - ; ANY - Foreman_current_organization: - - ; ANY - Foreman_version: - - 3.7.0-develop - Keep-Alive: - - timeout=15, max=87 - Strict-Transport-Security: - - max-age=631139040; includeSubdomains - Transfer-Encoding: - - chunked - X-Content-Type-Options: - - nosniff - X-Download-Options: - - noopen - X-Frame-Options: - - sameorigin - X-Permitted-Cross-Domain-Policies: - - none - X-XSS-Protection: - - 1; mode=block - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json;version=2 - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - apypie (https://github.com/Apipie/apypie) - method: GET - uri: https://foreman.example.org/foreman_tasks/api/tasks/3fdf1ccd-2e69-4f6f-8488-4bdbf2ef0829 - response: - body: - string: '{"id":"3fdf1ccd-2e69-4f6f-8488-4bdbf2ef0829","label":"Actions::Katello::Repository::Sync","pending":true,"action":"Synchronize - repository ''Oracle Linux 7 Convert2RHEL main''; product ''Oracle Linux 7 - Convert2RHEL''; organization ''Test Organization''","username":"admin","started_at":"2023-06-21 - 13:25:57 UTC","ended_at":null,"duration":"43.062602","state":"running","result":"pending","progress":0.41,"input":{"repository":{"id":18,"name":"Oracle - Linux 7 Convert2RHEL main","label":"Oracle_Linux_7_Convert2RHEL_main"},"product":{"id":32,"name":"Oracle - Linux 7 Convert2RHEL","label":"Oracle_Linux_7_Convert2RHEL","cp_id":"511553541992"},"provider":{"id":5,"name":"Anonymous"},"organization":{"id":5,"name":"Test - Organization","label":"Test_Organization"},"services_checked":["pulp3"],"id":18,"sync_result":{"class":"Dynflow::ExecutionPlan::OutputReference","execution_plan_id":"bdd74a31-885e-461f-990a-de45082dbb36","step_id":19,"action_id":2,"subkeys":[]},"skip_metadata_check":false,"validate_contents":false,"contents_changed":{"class":"Dynflow::ExecutionPlan::OutputReference","execution_plan_id":"bdd74a31-885e-461f-990a-de45082dbb36","step_id":19,"action_id":2,"subkeys":["contents_changed"]},"current_request_id":"0fc57ded-7426-48b3-84bb-4fbfed337a0e","current_timezone":"UTC","current_organization_id":null,"current_location_id":null,"current_user_id":4},"output":{},"humanized":{"action":"Synchronize","input":[["repository",{"text":"repository - ''Oracle Linux 7 Convert2RHEL main''","link":null}],["product",{"text":"product - ''Oracle Linux 7 Convert2RHEL''","link":"/products/32/"}],["organization",{"text":"organization - ''Test Organization''","link":"/organizations/5/edit"}]],"output":"Total steps: - 1432/1432\n--------------------------------\nAssociating Content: 0/0\nDownloading - Artifacts: 417/417\nDownloading Metadata Files: 6/6\nParsed Advisories: 0/0\nParsed - Comps: 0/0\nParsed Packages: 1009/1009\nSkipping Packages: 0/0","errors":[]},"cli_example":null,"start_at":"2023-06-21 - 13:25:57 UTC","available_actions":{"cancellable":true,"resumable":false}}' - headers: - Cache-Control: - - max-age=0, private, must-revalidate - Connection: - - Keep-Alive - Content-Security-Policy: - - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; - style-src ''unsafe-inline'' ''self''' - Content-Type: - - application/json; charset=utf-8 - Foreman_api_version: - - '2' - Foreman_current_location: - - ; ANY - Foreman_current_organization: - - ; ANY - Foreman_version: - - 3.7.0-develop - Keep-Alive: - - timeout=15, max=86 - Strict-Transport-Security: - - max-age=631139040; includeSubdomains - Transfer-Encoding: - - chunked - X-Content-Type-Options: - - nosniff - X-Download-Options: - - noopen - X-Frame-Options: - - sameorigin - X-Permitted-Cross-Domain-Policies: - - none - X-XSS-Protection: - - 1; mode=block - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json;version=2 - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - apypie (https://github.com/Apipie/apypie) - method: GET - uri: https://foreman.example.org/foreman_tasks/api/tasks/3fdf1ccd-2e69-4f6f-8488-4bdbf2ef0829 - response: - body: - string: '{"id":"3fdf1ccd-2e69-4f6f-8488-4bdbf2ef0829","label":"Actions::Katello::Repository::Sync","pending":true,"action":"Synchronize - repository ''Oracle Linux 7 Convert2RHEL main''; product ''Oracle Linux 7 - Convert2RHEL''; organization ''Test Organization''","username":"admin","started_at":"2023-06-21 - 13:25:57 UTC","ended_at":null,"duration":"47.340497","state":"running","result":"pending","progress":0.41,"input":{"repository":{"id":18,"name":"Oracle - Linux 7 Convert2RHEL main","label":"Oracle_Linux_7_Convert2RHEL_main"},"product":{"id":32,"name":"Oracle - Linux 7 Convert2RHEL","label":"Oracle_Linux_7_Convert2RHEL","cp_id":"511553541992"},"provider":{"id":5,"name":"Anonymous"},"organization":{"id":5,"name":"Test - Organization","label":"Test_Organization"},"services_checked":["pulp3"],"id":18,"sync_result":{"class":"Dynflow::ExecutionPlan::OutputReference","execution_plan_id":"bdd74a31-885e-461f-990a-de45082dbb36","step_id":19,"action_id":2,"subkeys":[]},"skip_metadata_check":false,"validate_contents":false,"contents_changed":{"class":"Dynflow::ExecutionPlan::OutputReference","execution_plan_id":"bdd74a31-885e-461f-990a-de45082dbb36","step_id":19,"action_id":2,"subkeys":["contents_changed"]},"current_request_id":"0fc57ded-7426-48b3-84bb-4fbfed337a0e","current_timezone":"UTC","current_organization_id":null,"current_location_id":null,"current_user_id":4},"output":{},"humanized":{"action":"Synchronize","input":[["repository",{"text":"repository - ''Oracle Linux 7 Convert2RHEL main''","link":null}],["product",{"text":"product - ''Oracle Linux 7 Convert2RHEL''","link":"/products/32/"}],["organization",{"text":"organization - ''Test Organization''","link":"/organizations/5/edit"}]],"output":"Total steps: - 1432/1432\n--------------------------------\nAssociating Content: 0/0\nDownloading - Artifacts: 417/417\nDownloading Metadata Files: 6/6\nParsed Advisories: 0/0\nParsed - Comps: 0/0\nParsed Packages: 1009/1009\nSkipping Packages: 0/0","errors":[]},"cli_example":null,"start_at":"2023-06-21 - 13:25:57 UTC","available_actions":{"cancellable":true,"resumable":false}}' - headers: - Cache-Control: - - max-age=0, private, must-revalidate - Connection: - - Keep-Alive - Content-Security-Policy: - - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; - style-src ''unsafe-inline'' ''self''' - Content-Type: - - application/json; charset=utf-8 - Foreman_api_version: - - '2' - Foreman_current_location: - - ; ANY - Foreman_current_organization: - - ; ANY - Foreman_version: - - 3.7.0-develop - Keep-Alive: - - timeout=15, max=85 - Strict-Transport-Security: - - max-age=631139040; includeSubdomains - Transfer-Encoding: - - chunked - X-Content-Type-Options: - - nosniff - X-Download-Options: - - noopen - X-Frame-Options: - - sameorigin - X-Permitted-Cross-Domain-Policies: - - none - X-XSS-Protection: - - 1; mode=block - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json;version=2 - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - apypie (https://github.com/Apipie/apypie) - method: GET - uri: https://foreman.example.org/foreman_tasks/api/tasks/3fdf1ccd-2e69-4f6f-8488-4bdbf2ef0829 - response: - body: - string: '{"id":"3fdf1ccd-2e69-4f6f-8488-4bdbf2ef0829","label":"Actions::Katello::Repository::Sync","pending":true,"action":"Synchronize - repository ''Oracle Linux 7 Convert2RHEL main''; product ''Oracle Linux 7 - Convert2RHEL''; organization ''Test Organization''","username":"admin","started_at":"2023-06-21 - 13:25:57 UTC","ended_at":null,"duration":"51.645051","state":"running","result":"pending","progress":0.41,"input":{"repository":{"id":18,"name":"Oracle - Linux 7 Convert2RHEL main","label":"Oracle_Linux_7_Convert2RHEL_main"},"product":{"id":32,"name":"Oracle - Linux 7 Convert2RHEL","label":"Oracle_Linux_7_Convert2RHEL","cp_id":"511553541992"},"provider":{"id":5,"name":"Anonymous"},"organization":{"id":5,"name":"Test - Organization","label":"Test_Organization"},"services_checked":["pulp3"],"id":18,"sync_result":{"class":"Dynflow::ExecutionPlan::OutputReference","execution_plan_id":"bdd74a31-885e-461f-990a-de45082dbb36","step_id":19,"action_id":2,"subkeys":[]},"skip_metadata_check":false,"validate_contents":false,"contents_changed":{"class":"Dynflow::ExecutionPlan::OutputReference","execution_plan_id":"bdd74a31-885e-461f-990a-de45082dbb36","step_id":19,"action_id":2,"subkeys":["contents_changed"]},"current_request_id":"0fc57ded-7426-48b3-84bb-4fbfed337a0e","current_timezone":"UTC","current_organization_id":null,"current_location_id":null,"current_user_id":4},"output":{},"humanized":{"action":"Synchronize","input":[["repository",{"text":"repository - ''Oracle Linux 7 Convert2RHEL main''","link":null}],["product",{"text":"product - ''Oracle Linux 7 Convert2RHEL''","link":"/products/32/"}],["organization",{"text":"organization - ''Test Organization''","link":"/organizations/5/edit"}]],"output":"Total steps: - 1519/1519\n--------------------------------\nAssociating Content: 0/0\nDownloading - Artifacts: 504/504\nDownloading Metadata Files: 6/6\nParsed Advisories: 0/0\nParsed - Comps: 0/0\nParsed Packages: 1009/1009\nSkipping Packages: 0/0","errors":[]},"cli_example":null,"start_at":"2023-06-21 - 13:25:57 UTC","available_actions":{"cancellable":true,"resumable":false}}' - headers: - Cache-Control: - - max-age=0, private, must-revalidate - Connection: - - Keep-Alive - Content-Security-Policy: - - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; - style-src ''unsafe-inline'' ''self''' - Content-Type: - - application/json; charset=utf-8 - Foreman_api_version: - - '2' - Foreman_current_location: - - ; ANY - Foreman_current_organization: - - ; ANY - Foreman_version: - - 3.7.0-develop - Keep-Alive: - - timeout=15, max=84 - Strict-Transport-Security: - - max-age=631139040; includeSubdomains - Transfer-Encoding: - - chunked - X-Content-Type-Options: - - nosniff - X-Download-Options: - - noopen - X-Frame-Options: - - sameorigin - X-Permitted-Cross-Domain-Policies: - - none - X-XSS-Protection: - - 1; mode=block - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json;version=2 - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - apypie (https://github.com/Apipie/apypie) - method: GET - uri: https://foreman.example.org/foreman_tasks/api/tasks/3fdf1ccd-2e69-4f6f-8488-4bdbf2ef0829 - response: - body: - string: '{"id":"3fdf1ccd-2e69-4f6f-8488-4bdbf2ef0829","label":"Actions::Katello::Repository::Sync","pending":true,"action":"Synchronize - repository ''Oracle Linux 7 Convert2RHEL main''; product ''Oracle Linux 7 - Convert2RHEL''; organization ''Test Organization''","username":"admin","started_at":"2023-06-21 - 13:25:57 UTC","ended_at":null,"duration":"55.880624","state":"running","result":"pending","progress":0.41,"input":{"repository":{"id":18,"name":"Oracle - Linux 7 Convert2RHEL main","label":"Oracle_Linux_7_Convert2RHEL_main"},"product":{"id":32,"name":"Oracle - Linux 7 Convert2RHEL","label":"Oracle_Linux_7_Convert2RHEL","cp_id":"511553541992"},"provider":{"id":5,"name":"Anonymous"},"organization":{"id":5,"name":"Test - Organization","label":"Test_Organization"},"services_checked":["pulp3"],"id":18,"sync_result":{"class":"Dynflow::ExecutionPlan::OutputReference","execution_plan_id":"bdd74a31-885e-461f-990a-de45082dbb36","step_id":19,"action_id":2,"subkeys":[]},"skip_metadata_check":false,"validate_contents":false,"contents_changed":{"class":"Dynflow::ExecutionPlan::OutputReference","execution_plan_id":"bdd74a31-885e-461f-990a-de45082dbb36","step_id":19,"action_id":2,"subkeys":["contents_changed"]},"current_request_id":"0fc57ded-7426-48b3-84bb-4fbfed337a0e","current_timezone":"UTC","current_organization_id":null,"current_location_id":null,"current_user_id":4},"output":{},"humanized":{"action":"Synchronize","input":[["repository",{"text":"repository - ''Oracle Linux 7 Convert2RHEL main''","link":null}],["product",{"text":"product - ''Oracle Linux 7 Convert2RHEL''","link":"/products/32/"}],["organization",{"text":"organization - ''Test Organization''","link":"/organizations/5/edit"}]],"output":"Total steps: - 1519/1519\n--------------------------------\nAssociating Content: 0/0\nDownloading - Artifacts: 504/504\nDownloading Metadata Files: 6/6\nParsed Advisories: 0/0\nParsed - Comps: 0/0\nParsed Packages: 1009/1009\nSkipping Packages: 0/0","errors":[]},"cli_example":null,"start_at":"2023-06-21 - 13:25:57 UTC","available_actions":{"cancellable":true,"resumable":false}}' - headers: - Cache-Control: - - max-age=0, private, must-revalidate - Connection: - - Keep-Alive - Content-Security-Policy: - - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; - style-src ''unsafe-inline'' ''self''' - Content-Type: - - application/json; charset=utf-8 - Foreman_api_version: - - '2' - Foreman_current_location: - - ; ANY - Foreman_current_organization: - - ; ANY - Foreman_version: - - 3.7.0-develop - Keep-Alive: - - timeout=15, max=83 - Strict-Transport-Security: - - max-age=631139040; includeSubdomains - Transfer-Encoding: - - chunked - X-Content-Type-Options: - - nosniff - X-Download-Options: - - noopen - X-Frame-Options: - - sameorigin - X-Permitted-Cross-Domain-Policies: - - none - X-XSS-Protection: - - 1; mode=block - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json;version=2 - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - apypie (https://github.com/Apipie/apypie) - method: GET - uri: https://foreman.example.org/foreman_tasks/api/tasks/3fdf1ccd-2e69-4f6f-8488-4bdbf2ef0829 - response: - body: - string: '{"id":"3fdf1ccd-2e69-4f6f-8488-4bdbf2ef0829","label":"Actions::Katello::Repository::Sync","pending":true,"action":"Synchronize - repository ''Oracle Linux 7 Convert2RHEL main''; product ''Oracle Linux 7 - Convert2RHEL''; organization ''Test Organization''","username":"admin","started_at":"2023-06-21 - 13:25:57 UTC","ended_at":null,"duration":"60.074146","state":"running","result":"pending","progress":0.41,"input":{"repository":{"id":18,"name":"Oracle - Linux 7 Convert2RHEL main","label":"Oracle_Linux_7_Convert2RHEL_main"},"product":{"id":32,"name":"Oracle - Linux 7 Convert2RHEL","label":"Oracle_Linux_7_Convert2RHEL","cp_id":"511553541992"},"provider":{"id":5,"name":"Anonymous"},"organization":{"id":5,"name":"Test - Organization","label":"Test_Organization"},"services_checked":["pulp3"],"id":18,"sync_result":{"class":"Dynflow::ExecutionPlan::OutputReference","execution_plan_id":"bdd74a31-885e-461f-990a-de45082dbb36","step_id":19,"action_id":2,"subkeys":[]},"skip_metadata_check":false,"validate_contents":false,"contents_changed":{"class":"Dynflow::ExecutionPlan::OutputReference","execution_plan_id":"bdd74a31-885e-461f-990a-de45082dbb36","step_id":19,"action_id":2,"subkeys":["contents_changed"]},"current_request_id":"0fc57ded-7426-48b3-84bb-4fbfed337a0e","current_timezone":"UTC","current_organization_id":null,"current_location_id":null,"current_user_id":4},"output":{},"humanized":{"action":"Synchronize","input":[["repository",{"text":"repository - ''Oracle Linux 7 Convert2RHEL main''","link":null}],["product",{"text":"product - ''Oracle Linux 7 Convert2RHEL''","link":"/products/32/"}],["organization",{"text":"organization - ''Test Organization''","link":"/organizations/5/edit"}]],"output":"Total steps: - 2089/2089\n--------------------------------\nAssociating Content: 500/500\nDownloading - Artifacts: 574/574\nDownloading Metadata Files: 6/6\nParsed Advisories: 0/0\nParsed - Comps: 0/0\nParsed Packages: 1009/1009\nSkipping Packages: 0/0","errors":[]},"cli_example":null,"start_at":"2023-06-21 - 13:25:57 UTC","available_actions":{"cancellable":true,"resumable":false}}' - headers: - Cache-Control: - - max-age=0, private, must-revalidate - Connection: - - Keep-Alive - Content-Security-Policy: - - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; - style-src ''unsafe-inline'' ''self''' - Content-Type: - - application/json; charset=utf-8 - Foreman_api_version: - - '2' - Foreman_current_location: - - ; ANY - Foreman_current_organization: - - ; ANY - Foreman_version: - - 3.7.0-develop - Keep-Alive: - - timeout=15, max=82 - Strict-Transport-Security: - - max-age=631139040; includeSubdomains - Transfer-Encoding: - - chunked - X-Content-Type-Options: - - nosniff - X-Download-Options: - - noopen - X-Frame-Options: - - sameorigin - X-Permitted-Cross-Domain-Policies: - - none - X-XSS-Protection: - - 1; mode=block - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json;version=2 - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - apypie (https://github.com/Apipie/apypie) - method: GET - uri: https://foreman.example.org/foreman_tasks/api/tasks/3fdf1ccd-2e69-4f6f-8488-4bdbf2ef0829 - response: - body: - string: '{"id":"3fdf1ccd-2e69-4f6f-8488-4bdbf2ef0829","label":"Actions::Katello::Repository::Sync","pending":true,"action":"Synchronize - repository ''Oracle Linux 7 Convert2RHEL main''; product ''Oracle Linux 7 - Convert2RHEL''; organization ''Test Organization''","username":"admin","started_at":"2023-06-21 - 13:25:57 UTC","ended_at":null,"duration":"64.450142","state":"running","result":"pending","progress":0.41,"input":{"repository":{"id":18,"name":"Oracle - Linux 7 Convert2RHEL main","label":"Oracle_Linux_7_Convert2RHEL_main"},"product":{"id":32,"name":"Oracle - Linux 7 Convert2RHEL","label":"Oracle_Linux_7_Convert2RHEL","cp_id":"511553541992"},"provider":{"id":5,"name":"Anonymous"},"organization":{"id":5,"name":"Test - Organization","label":"Test_Organization"},"services_checked":["pulp3"],"id":18,"sync_result":{"class":"Dynflow::ExecutionPlan::OutputReference","execution_plan_id":"bdd74a31-885e-461f-990a-de45082dbb36","step_id":19,"action_id":2,"subkeys":[]},"skip_metadata_check":false,"validate_contents":false,"contents_changed":{"class":"Dynflow::ExecutionPlan::OutputReference","execution_plan_id":"bdd74a31-885e-461f-990a-de45082dbb36","step_id":19,"action_id":2,"subkeys":["contents_changed"]},"current_request_id":"0fc57ded-7426-48b3-84bb-4fbfed337a0e","current_timezone":"UTC","current_organization_id":null,"current_location_id":null,"current_user_id":4},"output":{},"humanized":{"action":"Synchronize","input":[["repository",{"text":"repository - ''Oracle Linux 7 Convert2RHEL main''","link":null}],["product",{"text":"product - ''Oracle Linux 7 Convert2RHEL''","link":"/products/32/"}],["organization",{"text":"organization - ''Test Organization''","link":"/organizations/5/edit"}]],"output":"Total steps: - 2089/2089\n--------------------------------\nAssociating Content: 500/500\nDownloading - Artifacts: 574/574\nDownloading Metadata Files: 6/6\nParsed Advisories: 0/0\nParsed - Comps: 0/0\nParsed Packages: 1009/1009\nSkipping Packages: 0/0","errors":[]},"cli_example":null,"start_at":"2023-06-21 - 13:25:57 UTC","available_actions":{"cancellable":true,"resumable":false}}' - headers: - Cache-Control: - - max-age=0, private, must-revalidate - Connection: - - Keep-Alive - Content-Security-Policy: - - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; - style-src ''unsafe-inline'' ''self''' - Content-Type: - - application/json; charset=utf-8 - Foreman_api_version: - - '2' - Foreman_current_location: - - ; ANY - Foreman_current_organization: - - ; ANY - Foreman_version: - - 3.7.0-develop - Keep-Alive: - - timeout=15, max=81 - Strict-Transport-Security: - - max-age=631139040; includeSubdomains - Transfer-Encoding: - - chunked - X-Content-Type-Options: - - nosniff - X-Download-Options: - - noopen - X-Frame-Options: - - sameorigin - X-Permitted-Cross-Domain-Policies: - - none - X-XSS-Protection: - - 1; mode=block - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json;version=2 - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - apypie (https://github.com/Apipie/apypie) - method: GET - uri: https://foreman.example.org/foreman_tasks/api/tasks/3fdf1ccd-2e69-4f6f-8488-4bdbf2ef0829 - response: - body: - string: '{"id":"3fdf1ccd-2e69-4f6f-8488-4bdbf2ef0829","label":"Actions::Katello::Repository::Sync","pending":true,"action":"Synchronize - repository ''Oracle Linux 7 Convert2RHEL main''; product ''Oracle Linux 7 - Convert2RHEL''; organization ''Test Organization''","username":"admin","started_at":"2023-06-21 - 13:25:57 UTC","ended_at":null,"duration":"68.65399","state":"running","result":"pending","progress":0.41,"input":{"repository":{"id":18,"name":"Oracle - Linux 7 Convert2RHEL main","label":"Oracle_Linux_7_Convert2RHEL_main"},"product":{"id":32,"name":"Oracle - Linux 7 Convert2RHEL","label":"Oracle_Linux_7_Convert2RHEL","cp_id":"511553541992"},"provider":{"id":5,"name":"Anonymous"},"organization":{"id":5,"name":"Test - Organization","label":"Test_Organization"},"services_checked":["pulp3"],"id":18,"sync_result":{"class":"Dynflow::ExecutionPlan::OutputReference","execution_plan_id":"bdd74a31-885e-461f-990a-de45082dbb36","step_id":19,"action_id":2,"subkeys":[]},"skip_metadata_check":false,"validate_contents":false,"contents_changed":{"class":"Dynflow::ExecutionPlan::OutputReference","execution_plan_id":"bdd74a31-885e-461f-990a-de45082dbb36","step_id":19,"action_id":2,"subkeys":["contents_changed"]},"current_request_id":"0fc57ded-7426-48b3-84bb-4fbfed337a0e","current_timezone":"UTC","current_organization_id":null,"current_location_id":null,"current_user_id":4},"output":{},"humanized":{"action":"Synchronize","input":[["repository",{"text":"repository - ''Oracle Linux 7 Convert2RHEL main''","link":null}],["product",{"text":"product - ''Oracle Linux 7 Convert2RHEL''","link":"/products/32/"}],["organization",{"text":"organization - ''Test Organization''","link":"/organizations/5/edit"}]],"output":"Total steps: - 2173/2173\n--------------------------------\nAssociating Content: 500/500\nDownloading - Artifacts: 658/658\nDownloading Metadata Files: 6/6\nParsed Advisories: 0/0\nParsed - Comps: 0/0\nParsed Packages: 1009/1009\nSkipping Packages: 0/0","errors":[]},"cli_example":null,"start_at":"2023-06-21 - 13:25:57 UTC","available_actions":{"cancellable":true,"resumable":false}}' - headers: - Cache-Control: - - max-age=0, private, must-revalidate - Connection: - - Keep-Alive - Content-Security-Policy: - - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; - style-src ''unsafe-inline'' ''self''' - Content-Type: - - application/json; charset=utf-8 - Foreman_api_version: - - '2' - Foreman_current_location: - - ; ANY - Foreman_current_organization: - - ; ANY - Foreman_version: - - 3.7.0-develop - Keep-Alive: - - timeout=15, max=80 - Strict-Transport-Security: - - max-age=631139040; includeSubdomains - Transfer-Encoding: - - chunked - X-Content-Type-Options: - - nosniff - X-Download-Options: - - noopen - X-Frame-Options: - - sameorigin - X-Permitted-Cross-Domain-Policies: - - none - X-XSS-Protection: - - 1; mode=block - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json;version=2 - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - apypie (https://github.com/Apipie/apypie) - method: GET - uri: https://foreman.example.org/foreman_tasks/api/tasks/3fdf1ccd-2e69-4f6f-8488-4bdbf2ef0829 - response: - body: - string: '{"id":"3fdf1ccd-2e69-4f6f-8488-4bdbf2ef0829","label":"Actions::Katello::Repository::Sync","pending":true,"action":"Synchronize - repository ''Oracle Linux 7 Convert2RHEL main''; product ''Oracle Linux 7 - Convert2RHEL''; organization ''Test Organization''","username":"admin","started_at":"2023-06-21 - 13:25:57 UTC","ended_at":null,"duration":"72.89985899999999","state":"running","result":"pending","progress":0.41,"input":{"repository":{"id":18,"name":"Oracle - Linux 7 Convert2RHEL main","label":"Oracle_Linux_7_Convert2RHEL_main"},"product":{"id":32,"name":"Oracle - Linux 7 Convert2RHEL","label":"Oracle_Linux_7_Convert2RHEL","cp_id":"511553541992"},"provider":{"id":5,"name":"Anonymous"},"organization":{"id":5,"name":"Test - Organization","label":"Test_Organization"},"services_checked":["pulp3"],"id":18,"sync_result":{"class":"Dynflow::ExecutionPlan::OutputReference","execution_plan_id":"bdd74a31-885e-461f-990a-de45082dbb36","step_id":19,"action_id":2,"subkeys":[]},"skip_metadata_check":false,"validate_contents":false,"contents_changed":{"class":"Dynflow::ExecutionPlan::OutputReference","execution_plan_id":"bdd74a31-885e-461f-990a-de45082dbb36","step_id":19,"action_id":2,"subkeys":["contents_changed"]},"current_request_id":"0fc57ded-7426-48b3-84bb-4fbfed337a0e","current_timezone":"UTC","current_organization_id":null,"current_location_id":null,"current_user_id":4},"output":{},"humanized":{"action":"Synchronize","input":[["repository",{"text":"repository - ''Oracle Linux 7 Convert2RHEL main''","link":null}],["product",{"text":"product - ''Oracle Linux 7 Convert2RHEL''","link":"/products/32/"}],["organization",{"text":"organization - ''Test Organization''","link":"/organizations/5/edit"}]],"output":"Total steps: - 2173/2173\n--------------------------------\nAssociating Content: 500/500\nDownloading - Artifacts: 658/658\nDownloading Metadata Files: 6/6\nParsed Advisories: 0/0\nParsed - Comps: 0/0\nParsed Packages: 1009/1009\nSkipping Packages: 0/0","errors":[]},"cli_example":null,"start_at":"2023-06-21 - 13:25:57 UTC","available_actions":{"cancellable":true,"resumable":false}}' - headers: - Cache-Control: - - max-age=0, private, must-revalidate - Connection: - - Keep-Alive - Content-Security-Policy: - - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; - style-src ''unsafe-inline'' ''self''' - Content-Type: - - application/json; charset=utf-8 - Foreman_api_version: - - '2' - Foreman_current_location: - - ; ANY - Foreman_current_organization: - - ; ANY - Foreman_version: - - 3.7.0-develop - Keep-Alive: - - timeout=15, max=79 - Strict-Transport-Security: - - max-age=631139040; includeSubdomains - Transfer-Encoding: - - chunked - X-Content-Type-Options: - - nosniff - X-Download-Options: - - noopen - X-Frame-Options: - - sameorigin - X-Permitted-Cross-Domain-Policies: - - none - X-XSS-Protection: - - 1; mode=block - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json;version=2 - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - apypie (https://github.com/Apipie/apypie) - method: GET - uri: https://foreman.example.org/foreman_tasks/api/tasks/3fdf1ccd-2e69-4f6f-8488-4bdbf2ef0829 - response: - body: - string: '{"id":"3fdf1ccd-2e69-4f6f-8488-4bdbf2ef0829","label":"Actions::Katello::Repository::Sync","pending":true,"action":"Synchronize - repository ''Oracle Linux 7 Convert2RHEL main''; product ''Oracle Linux 7 - Convert2RHEL''; organization ''Test Organization''","username":"admin","started_at":"2023-06-21 - 13:25:57 UTC","ended_at":null,"duration":"77.115782","state":"running","result":"pending","progress":0.41,"input":{"repository":{"id":18,"name":"Oracle - Linux 7 Convert2RHEL main","label":"Oracle_Linux_7_Convert2RHEL_main"},"product":{"id":32,"name":"Oracle - Linux 7 Convert2RHEL","label":"Oracle_Linux_7_Convert2RHEL","cp_id":"511553541992"},"provider":{"id":5,"name":"Anonymous"},"organization":{"id":5,"name":"Test - Organization","label":"Test_Organization"},"services_checked":["pulp3"],"id":18,"sync_result":{"class":"Dynflow::ExecutionPlan::OutputReference","execution_plan_id":"bdd74a31-885e-461f-990a-de45082dbb36","step_id":19,"action_id":2,"subkeys":[]},"skip_metadata_check":false,"validate_contents":false,"contents_changed":{"class":"Dynflow::ExecutionPlan::OutputReference","execution_plan_id":"bdd74a31-885e-461f-990a-de45082dbb36","step_id":19,"action_id":2,"subkeys":["contents_changed"]},"current_request_id":"0fc57ded-7426-48b3-84bb-4fbfed337a0e","current_timezone":"UTC","current_organization_id":null,"current_location_id":null,"current_user_id":4},"output":{},"humanized":{"action":"Synchronize","input":[["repository",{"text":"repository - ''Oracle Linux 7 Convert2RHEL main''","link":null}],["product",{"text":"product - ''Oracle Linux 7 Convert2RHEL''","link":"/products/32/"}],["organization",{"text":"organization - ''Test Organization''","link":"/organizations/5/edit"}]],"output":"Total steps: - 2271/2271\n--------------------------------\nAssociating Content: 500/500\nDownloading - Artifacts: 756/756\nDownloading Metadata Files: 6/6\nParsed Advisories: 0/0\nParsed - Comps: 0/0\nParsed Packages: 1009/1009\nSkipping Packages: 0/0","errors":[]},"cli_example":null,"start_at":"2023-06-21 - 13:25:57 UTC","available_actions":{"cancellable":true,"resumable":false}}' - headers: - Cache-Control: - - max-age=0, private, must-revalidate - Connection: - - Keep-Alive - Content-Security-Policy: - - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; - style-src ''unsafe-inline'' ''self''' - Content-Type: - - application/json; charset=utf-8 - Foreman_api_version: - - '2' - Foreman_current_location: - - ; ANY - Foreman_current_organization: - - ; ANY - Foreman_version: - - 3.7.0-develop - Keep-Alive: - - timeout=15, max=78 - Strict-Transport-Security: - - max-age=631139040; includeSubdomains - Transfer-Encoding: - - chunked - X-Content-Type-Options: - - nosniff - X-Download-Options: - - noopen - X-Frame-Options: - - sameorigin - X-Permitted-Cross-Domain-Policies: - - none - X-XSS-Protection: - - 1; mode=block - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json;version=2 - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - apypie (https://github.com/Apipie/apypie) - method: GET - uri: https://foreman.example.org/foreman_tasks/api/tasks/3fdf1ccd-2e69-4f6f-8488-4bdbf2ef0829 - response: - body: - string: '{"id":"3fdf1ccd-2e69-4f6f-8488-4bdbf2ef0829","label":"Actions::Katello::Repository::Sync","pending":true,"action":"Synchronize - repository ''Oracle Linux 7 Convert2RHEL main''; product ''Oracle Linux 7 - Convert2RHEL''; organization ''Test Organization''","username":"admin","started_at":"2023-06-21 - 13:25:57 UTC","ended_at":null,"duration":"81.35849400000001","state":"running","result":"pending","progress":0.41,"input":{"repository":{"id":18,"name":"Oracle - Linux 7 Convert2RHEL main","label":"Oracle_Linux_7_Convert2RHEL_main"},"product":{"id":32,"name":"Oracle - Linux 7 Convert2RHEL","label":"Oracle_Linux_7_Convert2RHEL","cp_id":"511553541992"},"provider":{"id":5,"name":"Anonymous"},"organization":{"id":5,"name":"Test - Organization","label":"Test_Organization"},"services_checked":["pulp3"],"id":18,"sync_result":{"class":"Dynflow::ExecutionPlan::OutputReference","execution_plan_id":"bdd74a31-885e-461f-990a-de45082dbb36","step_id":19,"action_id":2,"subkeys":[]},"skip_metadata_check":false,"validate_contents":false,"contents_changed":{"class":"Dynflow::ExecutionPlan::OutputReference","execution_plan_id":"bdd74a31-885e-461f-990a-de45082dbb36","step_id":19,"action_id":2,"subkeys":["contents_changed"]},"current_request_id":"0fc57ded-7426-48b3-84bb-4fbfed337a0e","current_timezone":"UTC","current_organization_id":null,"current_location_id":null,"current_user_id":4},"output":{},"humanized":{"action":"Synchronize","input":[["repository",{"text":"repository - ''Oracle Linux 7 Convert2RHEL main''","link":null}],["product",{"text":"product - ''Oracle Linux 7 Convert2RHEL''","link":"/products/32/"}],["organization",{"text":"organization - ''Test Organization''","link":"/organizations/5/edit"}]],"output":"Total steps: - 2271/2271\n--------------------------------\nAssociating Content: 500/500\nDownloading - Artifacts: 756/756\nDownloading Metadata Files: 6/6\nParsed Advisories: 0/0\nParsed - Comps: 0/0\nParsed Packages: 1009/1009\nSkipping Packages: 0/0","errors":[]},"cli_example":null,"start_at":"2023-06-21 - 13:25:57 UTC","available_actions":{"cancellable":true,"resumable":false}}' - headers: - Cache-Control: - - max-age=0, private, must-revalidate - Connection: - - Keep-Alive - Content-Security-Policy: - - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; - style-src ''unsafe-inline'' ''self''' - Content-Type: - - application/json; charset=utf-8 - Foreman_api_version: - - '2' - Foreman_current_location: - - ; ANY - Foreman_current_organization: - - ; ANY - Foreman_version: - - 3.7.0-develop - Keep-Alive: - - timeout=15, max=77 - Strict-Transport-Security: - - max-age=631139040; includeSubdomains - Transfer-Encoding: - - chunked - X-Content-Type-Options: - - nosniff - X-Download-Options: - - noopen - X-Frame-Options: - - sameorigin - X-Permitted-Cross-Domain-Policies: - - none - X-XSS-Protection: - - 1; mode=block - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json;version=2 - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - apypie (https://github.com/Apipie/apypie) - method: GET - uri: https://foreman.example.org/foreman_tasks/api/tasks/3fdf1ccd-2e69-4f6f-8488-4bdbf2ef0829 - response: - body: - string: '{"id":"3fdf1ccd-2e69-4f6f-8488-4bdbf2ef0829","label":"Actions::Katello::Repository::Sync","pending":true,"action":"Synchronize - repository ''Oracle Linux 7 Convert2RHEL main''; product ''Oracle Linux 7 - Convert2RHEL''; organization ''Test Organization''","username":"admin","started_at":"2023-06-21 - 13:25:57 UTC","ended_at":null,"duration":"85.589316","state":"running","result":"pending","progress":0.41,"input":{"repository":{"id":18,"name":"Oracle - Linux 7 Convert2RHEL main","label":"Oracle_Linux_7_Convert2RHEL_main"},"product":{"id":32,"name":"Oracle - Linux 7 Convert2RHEL","label":"Oracle_Linux_7_Convert2RHEL","cp_id":"511553541992"},"provider":{"id":5,"name":"Anonymous"},"organization":{"id":5,"name":"Test - Organization","label":"Test_Organization"},"services_checked":["pulp3"],"id":18,"sync_result":{"class":"Dynflow::ExecutionPlan::OutputReference","execution_plan_id":"bdd74a31-885e-461f-990a-de45082dbb36","step_id":19,"action_id":2,"subkeys":[]},"skip_metadata_check":false,"validate_contents":false,"contents_changed":{"class":"Dynflow::ExecutionPlan::OutputReference","execution_plan_id":"bdd74a31-885e-461f-990a-de45082dbb36","step_id":19,"action_id":2,"subkeys":["contents_changed"]},"current_request_id":"0fc57ded-7426-48b3-84bb-4fbfed337a0e","current_timezone":"UTC","current_organization_id":null,"current_location_id":null,"current_user_id":4},"output":{},"humanized":{"action":"Synchronize","input":[["repository",{"text":"repository - ''Oracle Linux 7 Convert2RHEL main''","link":null}],["product",{"text":"product - ''Oracle Linux 7 Convert2RHEL''","link":"/products/32/"}],["organization",{"text":"organization - ''Test Organization''","link":"/organizations/5/edit"}]],"output":"Total steps: - 2372/2372\n--------------------------------\nAssociating Content: 500/500\nDownloading - Artifacts: 857/857\nDownloading Metadata Files: 6/6\nParsed Advisories: 0/0\nParsed - Comps: 0/0\nParsed Packages: 1009/1009\nSkipping Packages: 0/0","errors":[]},"cli_example":null,"start_at":"2023-06-21 - 13:25:57 UTC","available_actions":{"cancellable":true,"resumable":false}}' - headers: - Cache-Control: - - max-age=0, private, must-revalidate - Connection: - - Keep-Alive - Content-Security-Policy: - - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; - style-src ''unsafe-inline'' ''self''' - Content-Type: - - application/json; charset=utf-8 - Foreman_api_version: - - '2' - Foreman_current_location: - - ; ANY - Foreman_current_organization: - - ; ANY - Foreman_version: - - 3.7.0-develop - Keep-Alive: - - timeout=15, max=76 - Strict-Transport-Security: - - max-age=631139040; includeSubdomains - Transfer-Encoding: - - chunked - X-Content-Type-Options: - - nosniff - X-Download-Options: - - noopen - X-Frame-Options: - - sameorigin - X-Permitted-Cross-Domain-Policies: - - none - X-XSS-Protection: - - 1; mode=block - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json;version=2 - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - apypie (https://github.com/Apipie/apypie) - method: GET - uri: https://foreman.example.org/foreman_tasks/api/tasks/3fdf1ccd-2e69-4f6f-8488-4bdbf2ef0829 - response: - body: - string: '{"id":"3fdf1ccd-2e69-4f6f-8488-4bdbf2ef0829","label":"Actions::Katello::Repository::Sync","pending":true,"action":"Synchronize - repository ''Oracle Linux 7 Convert2RHEL main''; product ''Oracle Linux 7 - Convert2RHEL''; organization ''Test Organization''","username":"admin","started_at":"2023-06-21 - 13:25:57 UTC","ended_at":null,"duration":"89.824102","state":"running","result":"pending","progress":0.41,"input":{"repository":{"id":18,"name":"Oracle - Linux 7 Convert2RHEL main","label":"Oracle_Linux_7_Convert2RHEL_main"},"product":{"id":32,"name":"Oracle - Linux 7 Convert2RHEL","label":"Oracle_Linux_7_Convert2RHEL","cp_id":"511553541992"},"provider":{"id":5,"name":"Anonymous"},"organization":{"id":5,"name":"Test - Organization","label":"Test_Organization"},"services_checked":["pulp3"],"id":18,"sync_result":{"class":"Dynflow::ExecutionPlan::OutputReference","execution_plan_id":"bdd74a31-885e-461f-990a-de45082dbb36","step_id":19,"action_id":2,"subkeys":[]},"skip_metadata_check":false,"validate_contents":false,"contents_changed":{"class":"Dynflow::ExecutionPlan::OutputReference","execution_plan_id":"bdd74a31-885e-461f-990a-de45082dbb36","step_id":19,"action_id":2,"subkeys":["contents_changed"]},"current_request_id":"0fc57ded-7426-48b3-84bb-4fbfed337a0e","current_timezone":"UTC","current_organization_id":null,"current_location_id":null,"current_user_id":4},"output":{},"humanized":{"action":"Synchronize","input":[["repository",{"text":"repository - ''Oracle Linux 7 Convert2RHEL main''","link":null}],["product",{"text":"product - ''Oracle Linux 7 Convert2RHEL''","link":"/products/32/"}],["organization",{"text":"organization - ''Test Organization''","link":"/organizations/5/edit"}]],"output":"Total steps: - 2372/2372\n--------------------------------\nAssociating Content: 500/500\nDownloading - Artifacts: 857/857\nDownloading Metadata Files: 6/6\nParsed Advisories: 0/0\nParsed - Comps: 0/0\nParsed Packages: 1009/1009\nSkipping Packages: 0/0","errors":[]},"cli_example":null,"start_at":"2023-06-21 - 13:25:57 UTC","available_actions":{"cancellable":true,"resumable":false}}' - headers: - Cache-Control: - - max-age=0, private, must-revalidate - Connection: - - Keep-Alive - Content-Security-Policy: - - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; - style-src ''unsafe-inline'' ''self''' - Content-Type: - - application/json; charset=utf-8 - Foreman_api_version: - - '2' - Foreman_current_location: - - ; ANY - Foreman_current_organization: - - ; ANY - Foreman_version: - - 3.7.0-develop - Keep-Alive: - - timeout=15, max=75 - Strict-Transport-Security: - - max-age=631139040; includeSubdomains - Transfer-Encoding: - - chunked - X-Content-Type-Options: - - nosniff - X-Download-Options: - - noopen - X-Frame-Options: - - sameorigin - X-Permitted-Cross-Domain-Policies: - - none - X-XSS-Protection: - - 1; mode=block - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json;version=2 - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - apypie (https://github.com/Apipie/apypie) - method: GET - uri: https://foreman.example.org/foreman_tasks/api/tasks/3fdf1ccd-2e69-4f6f-8488-4bdbf2ef0829 - response: - body: - string: '{"id":"3fdf1ccd-2e69-4f6f-8488-4bdbf2ef0829","label":"Actions::Katello::Repository::Sync","pending":true,"action":"Synchronize - repository ''Oracle Linux 7 Convert2RHEL main''; product ''Oracle Linux 7 - Convert2RHEL''; organization ''Test Organization''","username":"admin","started_at":"2023-06-21 - 13:25:57 UTC","ended_at":null,"duration":"94.11121299999999","state":"running","result":"pending","progress":0.41,"input":{"repository":{"id":18,"name":"Oracle - Linux 7 Convert2RHEL main","label":"Oracle_Linux_7_Convert2RHEL_main"},"product":{"id":32,"name":"Oracle - Linux 7 Convert2RHEL","label":"Oracle_Linux_7_Convert2RHEL","cp_id":"511553541992"},"provider":{"id":5,"name":"Anonymous"},"organization":{"id":5,"name":"Test - Organization","label":"Test_Organization"},"services_checked":["pulp3"],"id":18,"sync_result":{"class":"Dynflow::ExecutionPlan::OutputReference","execution_plan_id":"bdd74a31-885e-461f-990a-de45082dbb36","step_id":19,"action_id":2,"subkeys":[]},"skip_metadata_check":false,"validate_contents":false,"contents_changed":{"class":"Dynflow::ExecutionPlan::OutputReference","execution_plan_id":"bdd74a31-885e-461f-990a-de45082dbb36","step_id":19,"action_id":2,"subkeys":["contents_changed"]},"current_request_id":"0fc57ded-7426-48b3-84bb-4fbfed337a0e","current_timezone":"UTC","current_organization_id":null,"current_location_id":null,"current_user_id":4},"output":{},"humanized":{"action":"Synchronize","input":[["repository",{"text":"repository - ''Oracle Linux 7 Convert2RHEL main''","link":null}],["product",{"text":"product - ''Oracle Linux 7 Convert2RHEL''","link":"/products/32/"}],["organization",{"text":"organization - ''Test Organization''","link":"/organizations/5/edit"}]],"output":"Total steps: - 2372/2372\n--------------------------------\nAssociating Content: 500/500\nDownloading - Artifacts: 857/857\nDownloading Metadata Files: 6/6\nParsed Advisories: 0/0\nParsed - Comps: 0/0\nParsed Packages: 1009/1009\nSkipping Packages: 0/0","errors":[]},"cli_example":null,"start_at":"2023-06-21 - 13:25:57 UTC","available_actions":{"cancellable":true,"resumable":false}}' - headers: - Cache-Control: - - max-age=0, private, must-revalidate - Connection: - - Keep-Alive - Content-Security-Policy: - - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; - style-src ''unsafe-inline'' ''self''' - Content-Type: - - application/json; charset=utf-8 - Foreman_api_version: - - '2' - Foreman_current_location: - - ; ANY - Foreman_current_organization: - - ; ANY - Foreman_version: - - 3.7.0-develop - Keep-Alive: - - timeout=15, max=74 - Strict-Transport-Security: - - max-age=631139040; includeSubdomains - Transfer-Encoding: - - chunked - X-Content-Type-Options: - - nosniff - X-Download-Options: - - noopen - X-Frame-Options: - - sameorigin - X-Permitted-Cross-Domain-Policies: - - none - X-XSS-Protection: - - 1; mode=block - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json;version=2 - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - apypie (https://github.com/Apipie/apypie) - method: GET - uri: https://foreman.example.org/foreman_tasks/api/tasks/3fdf1ccd-2e69-4f6f-8488-4bdbf2ef0829 - response: - body: - string: '{"id":"3fdf1ccd-2e69-4f6f-8488-4bdbf2ef0829","label":"Actions::Katello::Repository::Sync","pending":true,"action":"Synchronize - repository ''Oracle Linux 7 Convert2RHEL main''; product ''Oracle Linux 7 - Convert2RHEL''; organization ''Test Organization''","username":"admin","started_at":"2023-06-21 - 13:25:57 UTC","ended_at":null,"duration":"98.34031999999999","state":"running","result":"pending","progress":0.41,"input":{"repository":{"id":18,"name":"Oracle - Linux 7 Convert2RHEL main","label":"Oracle_Linux_7_Convert2RHEL_main"},"product":{"id":32,"name":"Oracle - Linux 7 Convert2RHEL","label":"Oracle_Linux_7_Convert2RHEL","cp_id":"511553541992"},"provider":{"id":5,"name":"Anonymous"},"organization":{"id":5,"name":"Test - Organization","label":"Test_Organization"},"services_checked":["pulp3"],"id":18,"sync_result":{"class":"Dynflow::ExecutionPlan::OutputReference","execution_plan_id":"bdd74a31-885e-461f-990a-de45082dbb36","step_id":19,"action_id":2,"subkeys":[]},"skip_metadata_check":false,"validate_contents":false,"contents_changed":{"class":"Dynflow::ExecutionPlan::OutputReference","execution_plan_id":"bdd74a31-885e-461f-990a-de45082dbb36","step_id":19,"action_id":2,"subkeys":["contents_changed"]},"current_request_id":"0fc57ded-7426-48b3-84bb-4fbfed337a0e","current_timezone":"UTC","current_organization_id":null,"current_location_id":null,"current_user_id":4},"output":{},"humanized":{"action":"Synchronize","input":[["repository",{"text":"repository - ''Oracle Linux 7 Convert2RHEL main''","link":null}],["product",{"text":"product - ''Oracle Linux 7 Convert2RHEL''","link":"/products/32/"}],["organization",{"text":"organization - ''Test Organization''","link":"/organizations/5/edit"}]],"output":"Total steps: - 3033/3033\n--------------------------------\nAssociating Content: 1009/1009\nDownloading - Artifacts: 1009/1009\nDownloading Metadata Files: 6/6\nParsed Advisories: - 0/0\nParsed Comps: 0/0\nParsed Packages: 1009/1009\nSkipping Packages: 0/0\nUn-Associating - Content: 0/0","errors":[]},"cli_example":null,"start_at":"2023-06-21 13:25:57 - UTC","available_actions":{"cancellable":true,"resumable":false}}' - headers: - Cache-Control: - - max-age=0, private, must-revalidate - Connection: - - Keep-Alive - Content-Security-Policy: - - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; - style-src ''unsafe-inline'' ''self''' - Content-Type: - - application/json; charset=utf-8 - Foreman_api_version: - - '2' - Foreman_current_location: - - ; ANY - Foreman_current_organization: - - ; ANY - Foreman_version: - - 3.7.0-develop - Keep-Alive: - - timeout=15, max=73 - Strict-Transport-Security: - - max-age=631139040; includeSubdomains - Transfer-Encoding: - - chunked - X-Content-Type-Options: - - nosniff - X-Download-Options: - - noopen - X-Frame-Options: - - sameorigin - X-Permitted-Cross-Domain-Policies: - - none - X-XSS-Protection: - - 1; mode=block - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json;version=2 - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - apypie (https://github.com/Apipie/apypie) - method: GET - uri: https://foreman.example.org/foreman_tasks/api/tasks/3fdf1ccd-2e69-4f6f-8488-4bdbf2ef0829 - response: - body: - string: '{"id":"3fdf1ccd-2e69-4f6f-8488-4bdbf2ef0829","label":"Actions::Katello::Repository::Sync","pending":true,"action":"Synchronize - repository ''Oracle Linux 7 Convert2RHEL main''; product ''Oracle Linux 7 - Convert2RHEL''; organization ''Test Organization''","username":"admin","started_at":"2023-06-21 - 13:25:57 UTC","ended_at":null,"duration":"102.542221","state":"running","result":"pending","progress":0.46,"input":{"repository":{"id":18,"name":"Oracle - Linux 7 Convert2RHEL main","label":"Oracle_Linux_7_Convert2RHEL_main"},"product":{"id":32,"name":"Oracle - Linux 7 Convert2RHEL","label":"Oracle_Linux_7_Convert2RHEL","cp_id":"511553541992"},"provider":{"id":5,"name":"Anonymous"},"organization":{"id":5,"name":"Test - Organization","label":"Test_Organization"},"services_checked":["pulp3"],"id":18,"sync_result":{"class":"Dynflow::ExecutionPlan::OutputReference","execution_plan_id":"bdd74a31-885e-461f-990a-de45082dbb36","step_id":19,"action_id":2,"subkeys":[]},"skip_metadata_check":false,"validate_contents":false,"contents_changed":{"class":"Dynflow::ExecutionPlan::OutputReference","execution_plan_id":"bdd74a31-885e-461f-990a-de45082dbb36","step_id":19,"action_id":2,"subkeys":["contents_changed"]},"current_request_id":"0fc57ded-7426-48b3-84bb-4fbfed337a0e","current_timezone":"UTC","current_organization_id":null,"current_location_id":null,"current_user_id":4},"output":{},"humanized":{"action":"Synchronize","input":[["repository",{"text":"repository - ''Oracle Linux 7 Convert2RHEL main''","link":null}],["product",{"text":"product - ''Oracle Linux 7 Convert2RHEL''","link":"/products/32/"}],["organization",{"text":"organization - ''Test Organization''","link":"/organizations/5/edit"}]],"output":"Total steps: - 3033/3033\n--------------------------------\nAssociating Content: 1009/1009\nDownloading - Artifacts: 1009/1009\nDownloading Metadata Files: 6/6\nParsed Advisories: - 0/0\nParsed Comps: 0/0\nParsed Packages: 1009/1009\nSkipping Packages: 0/0\nUn-Associating - Content: 0/0","errors":[]},"cli_example":null,"start_at":"2023-06-21 13:25:57 - UTC","available_actions":{"cancellable":true,"resumable":false}}' - headers: - Cache-Control: - - max-age=0, private, must-revalidate - Connection: - - Keep-Alive - Content-Security-Policy: - - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; - style-src ''unsafe-inline'' ''self''' - Content-Type: - - application/json; charset=utf-8 - Foreman_api_version: - - '2' - Foreman_current_location: - - ; ANY - Foreman_current_organization: - - ; ANY - Foreman_version: - - 3.7.0-develop - Keep-Alive: - - timeout=15, max=72 - Strict-Transport-Security: - - max-age=631139040; includeSubdomains - Transfer-Encoding: - - chunked - X-Content-Type-Options: - - nosniff - X-Download-Options: - - noopen - X-Frame-Options: - - sameorigin - X-Permitted-Cross-Domain-Policies: - - none - X-XSS-Protection: - - 1; mode=block - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json;version=2 - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - apypie (https://github.com/Apipie/apypie) - method: GET - uri: https://foreman.example.org/foreman_tasks/api/tasks/3fdf1ccd-2e69-4f6f-8488-4bdbf2ef0829 - response: - body: - string: '{"id":"3fdf1ccd-2e69-4f6f-8488-4bdbf2ef0829","label":"Actions::Katello::Repository::Sync","pending":true,"action":"Synchronize - repository ''Oracle Linux 7 Convert2RHEL main''; product ''Oracle Linux 7 - Convert2RHEL''; organization ''Test Organization''","username":"admin","started_at":"2023-06-21 - 13:25:57 UTC","ended_at":null,"duration":"106.750943","state":"running","result":"pending","progress":0.63,"input":{"repository":{"id":18,"name":"Oracle - Linux 7 Convert2RHEL main","label":"Oracle_Linux_7_Convert2RHEL_main"},"product":{"id":32,"name":"Oracle - Linux 7 Convert2RHEL","label":"Oracle_Linux_7_Convert2RHEL","cp_id":"511553541992"},"provider":{"id":5,"name":"Anonymous"},"organization":{"id":5,"name":"Test - Organization","label":"Test_Organization"},"services_checked":["pulp3"],"id":18,"sync_result":{"class":"Dynflow::ExecutionPlan::OutputReference","execution_plan_id":"bdd74a31-885e-461f-990a-de45082dbb36","step_id":19,"action_id":2,"subkeys":[]},"skip_metadata_check":false,"validate_contents":false,"contents_changed":{"class":"Dynflow::ExecutionPlan::OutputReference","execution_plan_id":"bdd74a31-885e-461f-990a-de45082dbb36","step_id":19,"action_id":2,"subkeys":["contents_changed"]},"current_request_id":"0fc57ded-7426-48b3-84bb-4fbfed337a0e","current_timezone":"UTC","current_organization_id":null,"current_location_id":null,"current_user_id":4},"output":{},"humanized":{"action":"Synchronize","input":[["repository",{"text":"repository - ''Oracle Linux 7 Convert2RHEL main''","link":null}],["product",{"text":"product - ''Oracle Linux 7 Convert2RHEL''","link":"/products/32/"}],["organization",{"text":"organization - ''Test Organization''","link":"/organizations/5/edit"}]],"output":"Total steps: - 3033/3033\n--------------------------------\nAssociating Content: 1009/1009\nDownloading - Artifacts: 1009/1009\nDownloading Metadata Files: 6/6\nParsed Advisories: - 0/0\nParsed Comps: 0/0\nParsed Packages: 1009/1009\nSkipping Packages: 0/0\nUn-Associating - Content: 0/0","errors":[]},"cli_example":null,"start_at":"2023-06-21 13:25:57 - UTC","available_actions":{"cancellable":false,"resumable":false}}' - headers: - Cache-Control: - - max-age=0, private, must-revalidate - Connection: - - Keep-Alive - Content-Security-Policy: - - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; - style-src ''unsafe-inline'' ''self''' - Content-Type: - - application/json; charset=utf-8 - Foreman_api_version: - - '2' - Foreman_current_location: - - ; ANY - Foreman_current_organization: - - ; ANY - Foreman_version: - - 3.7.0-develop - Keep-Alive: - - timeout=15, max=71 - Strict-Transport-Security: - - max-age=631139040; includeSubdomains - Transfer-Encoding: - - chunked - X-Content-Type-Options: - - nosniff - X-Download-Options: - - noopen - X-Frame-Options: - - sameorigin - X-Permitted-Cross-Domain-Policies: - - none - X-XSS-Protection: - - 1; mode=block - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json;version=2 - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - apypie (https://github.com/Apipie/apypie) - method: GET - uri: https://foreman.example.org/foreman_tasks/api/tasks/3fdf1ccd-2e69-4f6f-8488-4bdbf2ef0829 - response: - body: - string: '{"id":"3fdf1ccd-2e69-4f6f-8488-4bdbf2ef0829","label":"Actions::Katello::Repository::Sync","pending":false,"action":"Synchronize - repository ''Oracle Linux 7 Convert2RHEL main''; product ''Oracle Linux 7 - Convert2RHEL''; organization ''Test Organization''","username":"admin","started_at":"2023-06-21 - 13:25:57 UTC","ended_at":"2023-06-21 13:27:47 UTC","duration":"110.157656","state":"stopped","result":"success","progress":1.0,"input":{"repository":{"id":18,"name":"Oracle - Linux 7 Convert2RHEL main","label":"Oracle_Linux_7_Convert2RHEL_main"},"product":{"id":32,"name":"Oracle - Linux 7 Convert2RHEL","label":"Oracle_Linux_7_Convert2RHEL","cp_id":"511553541992"},"provider":{"id":5,"name":"Anonymous"},"organization":{"id":5,"name":"Test - Organization","label":"Test_Organization"},"services_checked":["pulp3"],"id":18,"sync_result":{"publication_provided":false,"contents_changed":true},"skip_metadata_check":false,"validate_contents":false,"contents_changed":true,"current_request_id":"0fc57ded-7426-48b3-84bb-4fbfed337a0e","current_timezone":"UTC","current_organization_id":null,"current_location_id":null,"current_user_id":4},"output":{},"humanized":{"action":"Synchronize","input":[["repository",{"text":"repository - ''Oracle Linux 7 Convert2RHEL main''","link":null}],["product",{"text":"product - ''Oracle Linux 7 Convert2RHEL''","link":"/products/32/"}],["organization",{"text":"organization - ''Test Organization''","link":"/organizations/5/edit"}]],"output":"Added Rpms: - 1009\nTotal steps: 3033/3033\n--------------------------------\nAssociating - Content: 1009/1009\nDownloading Artifacts: 1009/1009\nDownloading Metadata - Files: 6/6\nParsed Advisories: 0/0\nParsed Comps: 0/0\nParsed Packages: 1009/1009\nSkipping - Packages: 0/0\nUn-Associating Content: 0/0","errors":[]},"cli_example":null,"start_at":"2023-06-21 - 13:25:57 UTC","available_actions":{"cancellable":false,"resumable":false}}' - headers: - Cache-Control: - - max-age=0, private, must-revalidate - Connection: - - Keep-Alive - Content-Security-Policy: - - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; - style-src ''unsafe-inline'' ''self''' - Content-Type: - - application/json; charset=utf-8 - Foreman_api_version: - - '2' - Foreman_current_location: - - ; ANY - Foreman_current_organization: - - ; ANY - Foreman_version: - - 3.7.0-develop - Keep-Alive: - - timeout=15, max=70 - Strict-Transport-Security: - - max-age=631139040; includeSubdomains - Transfer-Encoding: - - chunked - X-Content-Type-Options: - - nosniff - X-Download-Options: - - noopen - X-Frame-Options: - - sameorigin - X-Permitted-Cross-Domain-Policies: - - none - X-XSS-Protection: - - 1; mode=block - status: - code: 200 - message: OK + code: 201 + message: Created version: 1 diff --git a/tests/test_playbooks/fixtures/convert2rhel-13.yml b/tests/test_playbooks/fixtures/convert2rhel-13.yml index 308cfdb75..bd03af901 100644 --- a/tests/test_playbooks/fixtures/convert2rhel-13.yml +++ b/tests/test_playbooks/fixtures/convert2rhel-13.yml @@ -14,12 +14,14 @@ interactions: uri: https://foreman.example.org/api/status response: body: - string: '{"satellite_version":"6.14.0","result":"ok","status":200,"version":"3.7.0-develop","api_version":2}' + string: '{"result":"ok","status":200,"version":"3.7.1","api_version":2}' headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive + Content-Length: + - '102' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -33,13 +35,11 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-develop + - 3.7.1 Keep-Alive: - timeout=15, max=100 Strict-Transport-Security: - max-age=631139040; includeSubdomains - Transfer-Encoding: - - chunked X-Content-Type-Options: - nosniff X-Download-Options: @@ -68,16 +68,18 @@ interactions: uri: https://foreman.example.org/katello/api/organizations?search=name%3D%22Test+Organization%22&per_page=4294967296 response: body: - string: "{\n \"total\": 3,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": + string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": 4294967296,\n \"search\": \"name=\\\"Test Organization\\\"\",\n \"sort\": - {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\":\"Test_Organization\",\"created_at\":\"2023-06-21 - 13:24:35 UTC\",\"updated_at\":\"2023-06-21 13:24:38 UTC\",\"id\":5,\"name\":\"Test + {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\":\"Test_Organization\",\"created_at\":\"2023-11-13 + 09:23:21 UTC\",\"updated_at\":\"2023-11-13 09:23:23 UTC\",\"id\":4,\"name\":\"Test Organization\",\"title\":\"Test Organization\",\"description\":\"A test organization\"}]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive + Content-Length: + - '388' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -91,13 +93,11 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-develop + - 3.7.1 Keep-Alive: - timeout=15, max=99 Strict-Transport-Security: - max-age=631139040; includeSubdomains - Transfer-Encoding: - - chunked X-Content-Type-Options: - nosniff X-Download-Options: @@ -123,14 +123,13 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/organizations/5/products?search=name%3D%22Oracle+Linux+8+Convert2RHEL%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/organizations/4/content_views?search=name%3D%22convert2rhel_centos7%22&per_page=4294967296 response: body: - string: '{"total":4,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Oracle - Linux 8 Convert2RHEL\"","sort":{"by":"name","order":"asc"},"results":[{"id":33,"cp_id":"278578062083","name":"Oracle - Linux 8 Convert2RHEL","label":"Oracle_Linux_8_Convert2RHEL","description":null,"provider_id":5,"sync_plan_id":null,"sync_summary":{},"gpg_key_id":null,"ssl_ca_cert_id":null,"ssl_client_cert_id":null,"ssl_client_key_id":null,"sync_state":null,"last_sync":"2023-06-21 - 13:25:25 UTC","last_sync_words":"2 minutes","organization_id":5,"organization":{"name":"Test - Organization","label":"Test_Organization","id":5},"sync_plan":null,"repository_count":1}]} + string: '{"total":2,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"convert2rhel_centos7\"","sort":{"by":"name","order":"asc"},"results":[{"composite":false,"component_ids":[],"default":false,"version_count":0,"latest_version":null,"latest_version_id":null,"auto_publish":false,"solve_dependencies":false,"import_only":false,"generated_for":"none","related_cv_count":0,"related_composite_cvs":[],"needs_publish":true,"filtered":false,"repository_ids":[9],"id":6,"name":"convert2rhel_centos7","label":"convert2rhel_centos7","description":null,"organization_id":4,"organization":{"name":"Test + Organization","label":"Test_Organization","id":4},"created_at":"2023-11-13 + 09:24:46 UTC","updated_at":"2023-11-13 09:24:46 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":9,"name":"Convert2RHEL7 + main","label":"Convert2RHEL7_main","content_type":"yum"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]}]} ' headers: @@ -138,6 +137,8 @@ interactions: - max-age=0, private, must-revalidate Connection: - Keep-Alive + Content-Length: + - '1062' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -149,15 +150,13 @@ interactions: Foreman_current_location: - ; ANY Foreman_current_organization: - - 5; Test Organization + - 4; Test Organization Foreman_version: - - 3.7.0-develop + - 3.7.1 Keep-Alive: - timeout=15, max=98 Strict-Transport-Security: - max-age=631139040; includeSubdomains - Transfer-Encoding: - - chunked X-Content-Type-Options: - nosniff X-Download-Options: @@ -183,15 +182,10 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/products/33/repositories?search=name%3D%22Oracle+Linux+8+Convert2RHEL+main%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/content_view_versions?search=content_view_id%3D6%2Cversion%3D1.0&per_page=4294967296 response: body: - string: '{"total":1,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Oracle - Linux 8 Convert2RHEL main\"","sort":{"by":"name","order":"asc"},"results":[{"backend_identifier":"eceb4b84-4328-4cad-9b6f-9b489a5075c2","relative_path":"Test_Organization/Library/custom/Oracle_Linux_8_Convert2RHEL/Oracle_Linux_8_Convert2RHEL_main","container_repository_name":null,"full_path":"https://sat-r220-03.lab.eng.rdu2.redhat.com/pulp/content/Test_Organization/Library/custom/Oracle_Linux_8_Convert2RHEL/Oracle_Linux_8_Convert2RHEL_main/","library_instance_id":null,"version_href":"/pulp/api/v3/repositories/rpm/rpm/cbf0b497-4761-46b4-b1f6-d1c516cb8977/versions/0/","remote_href":"/pulp/api/v3/remotes/rpm/rpm/c2ddfc44-17e6-4ab0-a1ab-c0b7c5ec837f/","publication_href":"/pulp/api/v3/publications/rpm/rpm/73b70c11-c913-44ad-9e42-8804d66668a3/","content_counts":{"rpm":0,"erratum":0,"package_group":0,"srpm":0,"module_stream":0},"mirroring_policy":"mirror_content_only","id":19,"name":"Oracle - Linux 8 Convert2RHEL main","label":"Oracle_Linux_8_Convert2RHEL_main","description":null,"content_view_versions":[],"last_sync":null,"content_view":{"id":6,"name":"Default - Organization View"},"content_view_version":{"id":6,"name":"Default Organization - View 1.0","content_view_id":6},"kt_environment":{"id":3,"name":"Library"},"content_type":"yum","url":"https://cdn-ubi.redhat.com/content/public/ubi/dist/ubi8/8/x86_64/baseos/os/","arch":"noarch","os_versions":[],"content_id":"1687353923542","generic_remote_options":null,"major":null,"minor":null,"product":{"id":33,"cp_id":"278578062083","name":"Oracle - Linux 8 Convert2RHEL","orphaned":false,"redhat":false,"sync_plan":null},"content_label":"Test_Organization_Oracle_Linux_8_Convert2RHEL_Oracle_Linux_8_Convert2RHEL_main","last_sync_words":null}],"org_repository_count":4} + string: '{"total":2,"subtotal":0,"selectable":0,"page":1,"per_page":"4294967296","error":null,"search":"content_view_id=6,version=1.0","sort":{"by":"version","order":"desc"},"results":[]} ' headers: @@ -199,210 +193,8 @@ interactions: - max-age=0, private, must-revalidate Connection: - Keep-Alive - Content-Security-Policy: - - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; - style-src ''unsafe-inline'' ''self''' - Content-Type: - - application/json; charset=utf-8 - Foreman_api_version: - - '2' - Foreman_current_location: - - ; ANY - Foreman_current_organization: - - ; ANY - Foreman_version: - - 3.7.0-develop - Keep-Alive: - - timeout=15, max=97 - Strict-Transport-Security: - - max-age=631139040; includeSubdomains - Transfer-Encoding: - - chunked - X-Content-Type-Options: - - nosniff - X-Download-Options: - - noopen - X-Frame-Options: - - sameorigin - X-Permitted-Cross-Domain-Policies: - - none - X-XSS-Protection: - - 1; mode=block - status: - code: 200 - message: OK -- request: - body: '{}' - headers: - Accept: - - application/json;version=2 - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive Content-Length: - - '2' - Content-Type: - - application/json - User-Agent: - - apypie (https://github.com/Apipie/apypie) - method: POST - uri: https://foreman.example.org/katello/api/repositories/19/sync - response: - body: - string: ' {"id":"32790a78-8b55-4181-8e77-7c264f807121","label":"Actions::Katello::Repository::Sync","pending":true,"action":"Synchronize - repository ''Oracle Linux 8 Convert2RHEL main''; product ''Oracle Linux 8 - Convert2RHEL''; organization ''Test Organization''","username":"admin","started_at":"2023-06-21 - 13:27:51 UTC","ended_at":null,"state":"planned","result":"pending","progress":0.0,"input":{"repository":{"id":19,"name":"Oracle - Linux 8 Convert2RHEL main","label":"Oracle_Linux_8_Convert2RHEL_main"},"product":{"id":33,"name":"Oracle - Linux 8 Convert2RHEL","label":"Oracle_Linux_8_Convert2RHEL","cp_id":"278578062083"},"provider":{"id":5,"name":"Anonymous"},"organization":{"id":5,"name":"Test - Organization","label":"Test_Organization"},"services_checked":["pulp3"],"id":19,"sync_result":{"class":"Dynflow::ExecutionPlan::OutputReference","execution_plan_id":"388b0c83-f093-4349-bc1d-56a83f64d53f","step_id":19,"action_id":2,"subkeys":[]},"skip_metadata_check":false,"validate_contents":false,"contents_changed":{"class":"Dynflow::ExecutionPlan::OutputReference","execution_plan_id":"388b0c83-f093-4349-bc1d-56a83f64d53f","step_id":19,"action_id":2,"subkeys":["contents_changed"]},"current_request_id":"d446d45e-dc18-430c-b955-6bd3c0545a44","current_timezone":"UTC","current_organization_id":null,"current_location_id":null,"current_user_id":4},"output":{},"humanized":{"action":"Synchronize","input":[["repository",{"text":"repository - ''Oracle Linux 8 Convert2RHEL main''","link":null}],["product",{"text":"product - ''Oracle Linux 8 Convert2RHEL''","link":"/products/33/"}],["organization",{"text":"organization - ''Test Organization''","link":"/organizations/5/edit"}]],"output":"","errors":[]},"cli_example":null,"start_at":"2023-06-21 - 13:27:51 UTC","available_actions":{"cancellable":false,"resumable":false}} - - ' - headers: - Cache-Control: - - no-cache - Connection: - - Keep-Alive - Content-Security-Policy: - - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; - style-src ''unsafe-inline'' ''self''' - Content-Type: - - application/json; charset=utf-8 - Foreman_api_version: - - '2' - Foreman_current_location: - - ; ANY - Foreman_current_organization: - - ; ANY - Foreman_version: - - 3.7.0-develop - Keep-Alive: - - timeout=15, max=96 - Strict-Transport-Security: - - max-age=631139040; includeSubdomains - Transfer-Encoding: - - chunked - X-Content-Type-Options: - - nosniff - X-Download-Options: - - noopen - X-Frame-Options: - - sameorigin - X-Permitted-Cross-Domain-Policies: - - none - X-XSS-Protection: - - 1; mode=block - status: - code: 202 - message: Accepted -- request: - body: null - headers: - Accept: - - application/json;version=2 - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - apypie (https://github.com/Apipie/apypie) - method: GET - uri: https://foreman.example.org/foreman_tasks/api/tasks/32790a78-8b55-4181-8e77-7c264f807121 - response: - body: - string: '{"id":"32790a78-8b55-4181-8e77-7c264f807121","label":"Actions::Katello::Repository::Sync","pending":true,"action":"Synchronize - repository ''Oracle Linux 8 Convert2RHEL main''; product ''Oracle Linux 8 - Convert2RHEL''; organization ''Test Organization''","username":"admin","started_at":"2023-06-21 - 13:27:51 UTC","ended_at":null,"duration":"5.297909","state":"running","result":"pending","progress":0.41,"input":{"repository":{"id":19,"name":"Oracle - Linux 8 Convert2RHEL main","label":"Oracle_Linux_8_Convert2RHEL_main"},"product":{"id":33,"name":"Oracle - Linux 8 Convert2RHEL","label":"Oracle_Linux_8_Convert2RHEL","cp_id":"278578062083"},"provider":{"id":5,"name":"Anonymous"},"organization":{"id":5,"name":"Test - Organization","label":"Test_Organization"},"services_checked":["pulp3"],"id":19,"sync_result":{"class":"Dynflow::ExecutionPlan::OutputReference","execution_plan_id":"388b0c83-f093-4349-bc1d-56a83f64d53f","step_id":19,"action_id":2,"subkeys":[]},"skip_metadata_check":false,"validate_contents":false,"contents_changed":{"class":"Dynflow::ExecutionPlan::OutputReference","execution_plan_id":"388b0c83-f093-4349-bc1d-56a83f64d53f","step_id":19,"action_id":2,"subkeys":["contents_changed"]},"current_request_id":"d446d45e-dc18-430c-b955-6bd3c0545a44","current_timezone":"UTC","current_organization_id":null,"current_location_id":null,"current_user_id":4},"output":{},"humanized":{"action":"Synchronize","input":[["repository",{"text":"repository - ''Oracle Linux 8 Convert2RHEL main''","link":null}],["product",{"text":"product - ''Oracle Linux 8 Convert2RHEL''","link":"/products/33/"}],["organization",{"text":"organization - ''Test Organization''","link":"/organizations/5/edit"}]],"output":"Total steps: - 757/757\n--------------------------------\nAssociating Content: 0/0\nDownloading - Artifacts: 5/5\nDownloading Metadata Files: 6/6\nParsed Advisories: 0/0\nParsed - Comps: 0/0\nParsed Packages: 746/746\nSkipping Packages: 0/0","errors":[]},"cli_example":null,"start_at":"2023-06-21 - 13:27:51 UTC","available_actions":{"cancellable":true,"resumable":false}}' - headers: - Cache-Control: - - max-age=0, private, must-revalidate - Connection: - - Keep-Alive - Content-Security-Policy: - - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; - style-src ''unsafe-inline'' ''self''' - Content-Type: - - application/json; charset=utf-8 - Foreman_api_version: - - '2' - Foreman_current_location: - - ; ANY - Foreman_current_organization: - - ; ANY - Foreman_version: - - 3.7.0-develop - Keep-Alive: - - timeout=15, max=95 - Strict-Transport-Security: - - max-age=631139040; includeSubdomains - Transfer-Encoding: - - chunked - X-Content-Type-Options: - - nosniff - X-Download-Options: - - noopen - X-Frame-Options: - - sameorigin - X-Permitted-Cross-Domain-Policies: - - none - X-XSS-Protection: - - 1; mode=block - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json;version=2 - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - apypie (https://github.com/Apipie/apypie) - method: GET - uri: https://foreman.example.org/foreman_tasks/api/tasks/32790a78-8b55-4181-8e77-7c264f807121 - response: - body: - string: '{"id":"32790a78-8b55-4181-8e77-7c264f807121","label":"Actions::Katello::Repository::Sync","pending":true,"action":"Synchronize - repository ''Oracle Linux 8 Convert2RHEL main''; product ''Oracle Linux 8 - Convert2RHEL''; organization ''Test Organization''","username":"admin","started_at":"2023-06-21 - 13:27:51 UTC","ended_at":null,"duration":"9.528612","state":"running","result":"pending","progress":0.41,"input":{"repository":{"id":19,"name":"Oracle - Linux 8 Convert2RHEL main","label":"Oracle_Linux_8_Convert2RHEL_main"},"product":{"id":33,"name":"Oracle - Linux 8 Convert2RHEL","label":"Oracle_Linux_8_Convert2RHEL","cp_id":"278578062083"},"provider":{"id":5,"name":"Anonymous"},"organization":{"id":5,"name":"Test - Organization","label":"Test_Organization"},"services_checked":["pulp3"],"id":19,"sync_result":{"class":"Dynflow::ExecutionPlan::OutputReference","execution_plan_id":"388b0c83-f093-4349-bc1d-56a83f64d53f","step_id":19,"action_id":2,"subkeys":[]},"skip_metadata_check":false,"validate_contents":false,"contents_changed":{"class":"Dynflow::ExecutionPlan::OutputReference","execution_plan_id":"388b0c83-f093-4349-bc1d-56a83f64d53f","step_id":19,"action_id":2,"subkeys":["contents_changed"]},"current_request_id":"d446d45e-dc18-430c-b955-6bd3c0545a44","current_timezone":"UTC","current_organization_id":null,"current_location_id":null,"current_user_id":4},"output":{},"humanized":{"action":"Synchronize","input":[["repository",{"text":"repository - ''Oracle Linux 8 Convert2RHEL main''","link":null}],["product",{"text":"product - ''Oracle Linux 8 Convert2RHEL''","link":"/products/33/"}],["organization",{"text":"organization - ''Test Organization''","link":"/organizations/5/edit"}]],"output":"Total steps: - 819/819\n--------------------------------\nAssociating Content: 0/0\nDownloading - Artifacts: 67/67\nDownloading Metadata Files: 6/6\nParsed Advisories: 0/0\nParsed - Comps: 0/0\nParsed Packages: 746/746\nSkipping Packages: 0/0","errors":[]},"cli_example":null,"start_at":"2023-06-21 - 13:27:51 UTC","available_actions":{"cancellable":true,"resumable":false}}' - headers: - Cache-Control: - - max-age=0, private, must-revalidate - Connection: - - Keep-Alive + - '179' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -416,13 +208,11 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-develop + - 3.7.1 Keep-Alive: - - timeout=15, max=94 + - timeout=15, max=97 Strict-Transport-Security: - max-age=631139040; includeSubdomains - Transfer-Encoding: - - chunked X-Content-Type-Options: - nosniff X-Download-Options: @@ -448,28 +238,21 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/foreman_tasks/api/tasks/32790a78-8b55-4181-8e77-7c264f807121 + uri: https://foreman.example.org/katello/api/organizations/4/environments?search=name%3D%22Library%22&per_page=4294967296 response: body: - string: '{"id":"32790a78-8b55-4181-8e77-7c264f807121","label":"Actions::Katello::Repository::Sync","pending":true,"action":"Synchronize - repository ''Oracle Linux 8 Convert2RHEL main''; product ''Oracle Linux 8 - Convert2RHEL''; organization ''Test Organization''","username":"admin","started_at":"2023-06-21 - 13:27:51 UTC","ended_at":null,"duration":"13.768315","state":"running","result":"pending","progress":0.41,"input":{"repository":{"id":19,"name":"Oracle - Linux 8 Convert2RHEL main","label":"Oracle_Linux_8_Convert2RHEL_main"},"product":{"id":33,"name":"Oracle - Linux 8 Convert2RHEL","label":"Oracle_Linux_8_Convert2RHEL","cp_id":"278578062083"},"provider":{"id":5,"name":"Anonymous"},"organization":{"id":5,"name":"Test - Organization","label":"Test_Organization"},"services_checked":["pulp3"],"id":19,"sync_result":{"class":"Dynflow::ExecutionPlan::OutputReference","execution_plan_id":"388b0c83-f093-4349-bc1d-56a83f64d53f","step_id":19,"action_id":2,"subkeys":[]},"skip_metadata_check":false,"validate_contents":false,"contents_changed":{"class":"Dynflow::ExecutionPlan::OutputReference","execution_plan_id":"388b0c83-f093-4349-bc1d-56a83f64d53f","step_id":19,"action_id":2,"subkeys":["contents_changed"]},"current_request_id":"d446d45e-dc18-430c-b955-6bd3c0545a44","current_timezone":"UTC","current_organization_id":null,"current_location_id":null,"current_user_id":4},"output":{},"humanized":{"action":"Synchronize","input":[["repository",{"text":"repository - ''Oracle Linux 8 Convert2RHEL main''","link":null}],["product",{"text":"product - ''Oracle Linux 8 Convert2RHEL''","link":"/products/33/"}],["organization",{"text":"organization - ''Test Organization''","link":"/organizations/5/edit"}]],"output":"Total steps: - 858/858\n--------------------------------\nAssociating Content: 0/0\nDownloading - Artifacts: 106/106\nDownloading Metadata Files: 6/6\nParsed Advisories: 0/0\nParsed - Comps: 0/0\nParsed Packages: 746/746\nSkipping Packages: 0/0","errors":[]},"cli_example":null,"start_at":"2023-06-21 - 13:27:51 UTC","available_actions":{"cancellable":true,"resumable":false}}' + string: '{"total":1,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Library\"","sort":{"by":"name","order":"asc"},"results":[{"library":true,"registry_name_pattern":null,"registry_unauthenticated_pull":false,"id":3,"name":"Library","label":"Library","description":null,"organization_id":4,"organization":{"name":"Test + Organization","label":"Test_Organization","id":4},"created_at":"2023-11-13 + 09:23:22 UTC","updated_at":"2023-11-13 09:23:22 UTC","prior":null,"successor":null,"counts":{"content_hosts":0,"content_views":0,"packages":1782,"module_streams":0,"errata":{"security":4,"bugfix":4,"enhancement":16,"total":24},"yum_repositories":4,"docker_repositories":0,"ostree_repositories":0,"products":4,"debs":0,"deb_repositories":0},"permissions":{"create_lifecycle_environments":true,"view_lifecycle_environments":true,"edit_lifecycle_environments":true,"destroy_lifecycle_environments":false,"promote_or_remove_content_views_to_environments":true},"content_views":[]}]} + + ' headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive + Content-Length: + - '1006' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -481,15 +264,13 @@ interactions: Foreman_current_location: - ; ANY Foreman_current_organization: - - ; ANY + - 4; Test Organization Foreman_version: - - 3.7.0-develop + - 3.7.1 Keep-Alive: - - timeout=15, max=93 + - timeout=15, max=96 Strict-Transport-Security: - max-age=631139040; includeSubdomains - Transfer-Encoding: - - chunked X-Content-Type-Options: - nosniff X-Download-Options: @@ -504,7 +285,7 @@ interactions: code: 200 message: OK - request: - body: null + body: '{"major": 1, "minor": 0}' headers: Accept: - application/json;version=2 @@ -512,96 +293,29 @@ interactions: - gzip, deflate Connection: - keep-alive - User-Agent: - - apypie (https://github.com/Apipie/apypie) - method: GET - uri: https://foreman.example.org/foreman_tasks/api/tasks/32790a78-8b55-4181-8e77-7c264f807121 - response: - body: - string: '{"id":"32790a78-8b55-4181-8e77-7c264f807121","label":"Actions::Katello::Repository::Sync","pending":true,"action":"Synchronize - repository ''Oracle Linux 8 Convert2RHEL main''; product ''Oracle Linux 8 - Convert2RHEL''; organization ''Test Organization''","username":"admin","started_at":"2023-06-21 - 13:27:51 UTC","ended_at":null,"duration":"18.010941","state":"running","result":"pending","progress":0.41,"input":{"repository":{"id":19,"name":"Oracle - Linux 8 Convert2RHEL main","label":"Oracle_Linux_8_Convert2RHEL_main"},"product":{"id":33,"name":"Oracle - Linux 8 Convert2RHEL","label":"Oracle_Linux_8_Convert2RHEL","cp_id":"278578062083"},"provider":{"id":5,"name":"Anonymous"},"organization":{"id":5,"name":"Test - Organization","label":"Test_Organization"},"services_checked":["pulp3"],"id":19,"sync_result":{"class":"Dynflow::ExecutionPlan::OutputReference","execution_plan_id":"388b0c83-f093-4349-bc1d-56a83f64d53f","step_id":19,"action_id":2,"subkeys":[]},"skip_metadata_check":false,"validate_contents":false,"contents_changed":{"class":"Dynflow::ExecutionPlan::OutputReference","execution_plan_id":"388b0c83-f093-4349-bc1d-56a83f64d53f","step_id":19,"action_id":2,"subkeys":["contents_changed"]},"current_request_id":"d446d45e-dc18-430c-b955-6bd3c0545a44","current_timezone":"UTC","current_organization_id":null,"current_location_id":null,"current_user_id":4},"output":{},"humanized":{"action":"Synchronize","input":[["repository",{"text":"repository - ''Oracle Linux 8 Convert2RHEL main''","link":null}],["product",{"text":"product - ''Oracle Linux 8 Convert2RHEL''","link":"/products/33/"}],["organization",{"text":"organization - ''Test Organization''","link":"/organizations/5/edit"}]],"output":"Total steps: - 928/928\n--------------------------------\nAssociating Content: 0/0\nDownloading - Artifacts: 176/176\nDownloading Metadata Files: 6/6\nParsed Advisories: 0/0\nParsed - Comps: 0/0\nParsed Packages: 746/746\nSkipping Packages: 0/0","errors":[]},"cli_example":null,"start_at":"2023-06-21 - 13:27:51 UTC","available_actions":{"cancellable":true,"resumable":false}}' - headers: - Cache-Control: - - max-age=0, private, must-revalidate - Connection: - - Keep-Alive - Content-Security-Policy: - - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; - style-src ''unsafe-inline'' ''self''' + Content-Length: + - '24' Content-Type: - - application/json; charset=utf-8 - Foreman_api_version: - - '2' - Foreman_current_location: - - ; ANY - Foreman_current_organization: - - ; ANY - Foreman_version: - - 3.7.0-develop - Keep-Alive: - - timeout=15, max=92 - Strict-Transport-Security: - - max-age=631139040; includeSubdomains - Transfer-Encoding: - - chunked - X-Content-Type-Options: - - nosniff - X-Download-Options: - - noopen - X-Frame-Options: - - sameorigin - X-Permitted-Cross-Domain-Policies: - - none - X-XSS-Protection: - - 1; mode=block - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json;version=2 - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive + - application/json User-Agent: - apypie (https://github.com/Apipie/apypie) - method: GET - uri: https://foreman.example.org/foreman_tasks/api/tasks/32790a78-8b55-4181-8e77-7c264f807121 + method: POST + uri: https://foreman.example.org/katello/api/content_views/6/publish response: body: - string: '{"id":"32790a78-8b55-4181-8e77-7c264f807121","label":"Actions::Katello::Repository::Sync","pending":true,"action":"Synchronize - repository ''Oracle Linux 8 Convert2RHEL main''; product ''Oracle Linux 8 - Convert2RHEL''; organization ''Test Organization''","username":"admin","started_at":"2023-06-21 - 13:27:51 UTC","ended_at":null,"duration":"22.207258","state":"running","result":"pending","progress":0.41,"input":{"repository":{"id":19,"name":"Oracle - Linux 8 Convert2RHEL main","label":"Oracle_Linux_8_Convert2RHEL_main"},"product":{"id":33,"name":"Oracle - Linux 8 Convert2RHEL","label":"Oracle_Linux_8_Convert2RHEL","cp_id":"278578062083"},"provider":{"id":5,"name":"Anonymous"},"organization":{"id":5,"name":"Test - Organization","label":"Test_Organization"},"services_checked":["pulp3"],"id":19,"sync_result":{"class":"Dynflow::ExecutionPlan::OutputReference","execution_plan_id":"388b0c83-f093-4349-bc1d-56a83f64d53f","step_id":19,"action_id":2,"subkeys":[]},"skip_metadata_check":false,"validate_contents":false,"contents_changed":{"class":"Dynflow::ExecutionPlan::OutputReference","execution_plan_id":"388b0c83-f093-4349-bc1d-56a83f64d53f","step_id":19,"action_id":2,"subkeys":["contents_changed"]},"current_request_id":"d446d45e-dc18-430c-b955-6bd3c0545a44","current_timezone":"UTC","current_organization_id":null,"current_location_id":null,"current_user_id":4},"output":{},"humanized":{"action":"Synchronize","input":[["repository",{"text":"repository - ''Oracle Linux 8 Convert2RHEL main''","link":null}],["product",{"text":"product - ''Oracle Linux 8 Convert2RHEL''","link":"/products/33/"}],["organization",{"text":"organization - ''Test Organization''","link":"/organizations/5/edit"}]],"output":"Total steps: - 1003/1003\n--------------------------------\nAssociating Content: 0/0\nDownloading - Artifacts: 251/251\nDownloading Metadata Files: 6/6\nParsed Advisories: 0/0\nParsed - Comps: 0/0\nParsed Packages: 746/746\nSkipping Packages: 0/0","errors":[]},"cli_example":null,"start_at":"2023-06-21 - 13:27:51 UTC","available_actions":{"cancellable":true,"resumable":false}}' + string: ' {"id":"cde4e2e9-d82a-4eb4-95d5-736bb355f4d7","label":"Actions::Katello::ContentView::Publish","pending":true,"action":"Publish + content view ''convert2rhel_centos7''; organization ''Test Organization''","username":"admin","started_at":"2023-11-13 + 09:24:47 UTC","ended_at":null,"state":"planned","result":"pending","progress":0.0,"input":{"content_view":{"id":6,"name":"convert2rhel_centos7","label":"convert2rhel_centos7"},"organization":{"id":4,"name":"Test + Organization","label":"Test_Organization"},"services_checked":["pulp3","candlepin","candlepin_auth"],"history_id":6,"content_view_id":6,"auto_publish_composite_ids":[],"content_view_version_name":"convert2rhel_centos7 + 1.0","content_view_version_id":6,"environment_id":3,"user_id":4,"skip_promotion":null,"current_request_id":"fdfae693-e9d8-4b9b-9cb4-0df1832b984e","current_timezone":"UTC","current_organization_id":null,"current_location_id":null,"current_user_id":4},"output":{},"humanized":{"action":"Publish","input":[["content_view",{"text":"content + view ''convert2rhel_centos7''","link":"/content_views/6/versions"}],["organization",{"text":"organization + ''Test Organization''","link":"/organizations/4/edit"}]],"output":"","errors":[]},"cli_example":null,"start_at":"2023-11-13 + 09:24:47 UTC","available_actions":{"cancellable":false,"resumable":false}} + + ' headers: Cache-Control: - - max-age=0, private, must-revalidate + - no-cache Connection: - Keep-Alive Content-Security-Policy: @@ -617,9 +331,9 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-develop + - 3.7.1 Keep-Alive: - - timeout=15, max=91 + - timeout=15, max=95 Strict-Transport-Security: - max-age=631139040; includeSubdomains Transfer-Encoding: @@ -635,8 +349,8 @@ interactions: X-XSS-Protection: - 1; mode=block status: - code: 200 - message: OK + code: 202 + message: Accepted - request: body: null headers: @@ -649,28 +363,24 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/foreman_tasks/api/tasks/32790a78-8b55-4181-8e77-7c264f807121 + uri: https://foreman.example.org/foreman_tasks/api/tasks/cde4e2e9-d82a-4eb4-95d5-736bb355f4d7 response: body: - string: '{"id":"32790a78-8b55-4181-8e77-7c264f807121","label":"Actions::Katello::Repository::Sync","pending":true,"action":"Synchronize - repository ''Oracle Linux 8 Convert2RHEL main''; product ''Oracle Linux 8 - Convert2RHEL''; organization ''Test Organization''","username":"admin","started_at":"2023-06-21 - 13:27:51 UTC","ended_at":null,"duration":"26.394287","state":"running","result":"pending","progress":0.41,"input":{"repository":{"id":19,"name":"Oracle - Linux 8 Convert2RHEL main","label":"Oracle_Linux_8_Convert2RHEL_main"},"product":{"id":33,"name":"Oracle - Linux 8 Convert2RHEL","label":"Oracle_Linux_8_Convert2RHEL","cp_id":"278578062083"},"provider":{"id":5,"name":"Anonymous"},"organization":{"id":5,"name":"Test - Organization","label":"Test_Organization"},"services_checked":["pulp3"],"id":19,"sync_result":{"class":"Dynflow::ExecutionPlan::OutputReference","execution_plan_id":"388b0c83-f093-4349-bc1d-56a83f64d53f","step_id":19,"action_id":2,"subkeys":[]},"skip_metadata_check":false,"validate_contents":false,"contents_changed":{"class":"Dynflow::ExecutionPlan::OutputReference","execution_plan_id":"388b0c83-f093-4349-bc1d-56a83f64d53f","step_id":19,"action_id":2,"subkeys":["contents_changed"]},"current_request_id":"d446d45e-dc18-430c-b955-6bd3c0545a44","current_timezone":"UTC","current_organization_id":null,"current_location_id":null,"current_user_id":4},"output":{},"humanized":{"action":"Synchronize","input":[["repository",{"text":"repository - ''Oracle Linux 8 Convert2RHEL main''","link":null}],["product",{"text":"product - ''Oracle Linux 8 Convert2RHEL''","link":"/products/33/"}],["organization",{"text":"organization - ''Test Organization''","link":"/organizations/5/edit"}]],"output":"Total steps: - 1068/1068\n--------------------------------\nAssociating Content: 0/0\nDownloading - Artifacts: 316/316\nDownloading Metadata Files: 6/6\nParsed Advisories: 0/0\nParsed - Comps: 0/0\nParsed Packages: 746/746\nSkipping Packages: 0/0","errors":[]},"cli_example":null,"start_at":"2023-06-21 - 13:27:51 UTC","available_actions":{"cancellable":true,"resumable":false}}' + string: '{"id":"cde4e2e9-d82a-4eb4-95d5-736bb355f4d7","label":"Actions::Katello::ContentView::Publish","pending":false,"action":"Publish + content view ''convert2rhel_centos7''; organization ''Test Organization''","username":"admin","started_at":"2023-11-13 + 09:24:47 UTC","ended_at":"2023-11-13 09:24:49 UTC","duration":"2.64056","state":"stopped","result":"success","progress":1.0,"input":{"content_view":{"id":6,"name":"convert2rhel_centos7","label":"convert2rhel_centos7"},"organization":{"id":4,"name":"Test + Organization","label":"Test_Organization"},"services_checked":["pulp3","candlepin","candlepin_auth"],"history_id":6,"content_view_id":6,"auto_publish_composite_ids":[],"content_view_version_name":"convert2rhel_centos7 + 1.0","content_view_version_id":6,"environment_id":3,"user_id":4,"skip_promotion":null,"current_request_id":"fdfae693-e9d8-4b9b-9cb4-0df1832b984e","current_timezone":"UTC","current_organization_id":null,"current_location_id":null,"current_user_id":4},"output":{"content_view_id":6,"content_view_version_id":6,"skip_promotion":null,"history_id":6},"humanized":{"action":"Publish","input":[["content_view",{"text":"content + view ''convert2rhel_centos7''","link":"/content_views/6/versions"}],["organization",{"text":"organization + ''Test Organization''","link":"/organizations/4/edit"}]],"output":"","errors":[]},"cli_example":null,"start_at":"2023-11-13 + 09:24:47 UTC","available_actions":{"cancellable":false,"resumable":false}}' headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive + Content-Length: + - '1435' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -684,13 +394,11 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-develop + - 3.7.1 Keep-Alive: - - timeout=15, max=90 + - timeout=15, max=94 Strict-Transport-Security: - max-age=631139040; includeSubdomains - Transfer-Encoding: - - chunked X-Content-Type-Options: - nosniff X-Download-Options: @@ -716,28 +424,31 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/foreman_tasks/api/tasks/32790a78-8b55-4181-8e77-7c264f807121 + uri: https://foreman.example.org/katello/api/content_view_versions/6 response: body: - string: '{"id":"32790a78-8b55-4181-8e77-7c264f807121","label":"Actions::Katello::Repository::Sync","pending":true,"action":"Synchronize - repository ''Oracle Linux 8 Convert2RHEL main''; product ''Oracle Linux 8 - Convert2RHEL''; organization ''Test Organization''","username":"admin","started_at":"2023-06-21 - 13:27:51 UTC","ended_at":null,"duration":"30.588433","state":"running","result":"pending","progress":0.41,"input":{"repository":{"id":19,"name":"Oracle - Linux 8 Convert2RHEL main","label":"Oracle_Linux_8_Convert2RHEL_main"},"product":{"id":33,"name":"Oracle - Linux 8 Convert2RHEL","label":"Oracle_Linux_8_Convert2RHEL","cp_id":"278578062083"},"provider":{"id":5,"name":"Anonymous"},"organization":{"id":5,"name":"Test - Organization","label":"Test_Organization"},"services_checked":["pulp3"],"id":19,"sync_result":{"class":"Dynflow::ExecutionPlan::OutputReference","execution_plan_id":"388b0c83-f093-4349-bc1d-56a83f64d53f","step_id":19,"action_id":2,"subkeys":[]},"skip_metadata_check":false,"validate_contents":false,"contents_changed":{"class":"Dynflow::ExecutionPlan::OutputReference","execution_plan_id":"388b0c83-f093-4349-bc1d-56a83f64d53f","step_id":19,"action_id":2,"subkeys":["contents_changed"]},"current_request_id":"d446d45e-dc18-430c-b955-6bd3c0545a44","current_timezone":"UTC","current_organization_id":null,"current_location_id":null,"current_user_id":4},"output":{},"humanized":{"action":"Synchronize","input":[["repository",{"text":"repository - ''Oracle Linux 8 Convert2RHEL main''","link":null}],["product",{"text":"product - ''Oracle Linux 8 Convert2RHEL''","link":"/products/33/"}],["organization",{"text":"organization - ''Test Organization''","link":"/organizations/5/edit"}]],"output":"Total steps: - 1138/1138\n--------------------------------\nAssociating Content: 0/0\nDownloading - Artifacts: 386/386\nDownloading Metadata Files: 6/6\nParsed Advisories: 0/0\nParsed - Comps: 0/0\nParsed Packages: 746/746\nSkipping Packages: 0/0","errors":[]},"cli_example":null,"start_at":"2023-06-21 - 13:27:51 UTC","available_actions":{"cancellable":true,"resumable":false}}' + string: ' {"version":"1.0","major":1,"minor":0,"composite_content_view_ids":[],"published_in_composite_content_view_ids":[],"content_view_id":6,"default":false,"description":null,"id":6,"name":"convert2rhel_centos7 + 1.0","created_at":"2023-11-13 09:24:47 UTC","updated_at":"2023-11-13 09:24:49 + UTC","content_view":{"id":6,"name":"convert2rhel_centos7","label":"convert2rhel_centos7","generated_for":"none"},"composite_content_views":[],"composite_content_view_versions":[],"published_in_composite_content_views":[],"environments":[{"id":3,"name":"Library","label":"Library","publish_date":"less + than a minute","permissions":{"readable":true,"promotable_or_removable":true,"all_hosts_editable":true,"all_keys_editable":true},"host_count":0,"activation_key_count":0}],"repositories":[{"id":13,"name":"Convert2RHEL7 + main","label":"Convert2RHEL7_main","content_type":"yum","library_instance_id":9,"mirroring_policy":"mirror_content_only"}],"last_event":{"user":"admin","status":"successful","description":null,"action":"publish","created_at":"2023-11-13 + 09:24:47 UTC","updated_at":"2023-11-13 09:24:49 UTC","environment":null,"task":{"id":"cde4e2e9-d82a-4eb4-95d5-736bb355f4d7","label":"Actions::Katello::ContentView::Publish","pending":false,"action":"Publish + content view ''convert2rhel_centos7''; organization ''Test Organization''","username":"admin","started_at":"2023-11-13 + 09:24:47 UTC","ended_at":"2023-11-13 09:24:49 UTC","state":"stopped","result":"success","progress":1.0,"input":{"content_view":{"id":6,"name":"convert2rhel_centos7","label":"convert2rhel_centos7"},"organization":{"id":4,"name":"Test + Organization","label":"Test_Organization"},"services_checked":["pulp3","candlepin","candlepin_auth"],"history_id":6,"content_view_id":6,"auto_publish_composite_ids":[],"content_view_version_name":"convert2rhel_centos7 + 1.0","content_view_version_id":6,"environment_id":3,"user_id":4,"skip_promotion":null,"current_request_id":"fdfae693-e9d8-4b9b-9cb4-0df1832b984e","current_timezone":"UTC","current_organization_id":null,"current_location_id":null,"current_user_id":4},"output":{"content_view_id":6,"content_view_version_id":6,"skip_promotion":null,"history_id":6},"humanized":{"action":"Publish","input":[["content_view",{"text":"content + view ''convert2rhel_centos7''","link":"/content_views/6/versions"}],["organization",{"text":"organization + ''Test Organization''","link":"/organizations/4/edit"}]],"output":"","errors":[]},"cli_example":null,"start_at":"2023-11-13 + 09:24:47 UTC","available_actions":{"cancellable":false,"resumable":false}},"version":"1.0","publish":true,"version_id":6,"triggered_by":null,"triggered_by_id":null},"active_history":[],"ansible_collection_count":0,"deb_count":0,"docker_manifest_count":0,"docker_manifest_list_count":0,"docker_tag_count":0,"file_count":0,"python_package_count":0,"rpm_count":12,"modulemd_count":0,"erratum_count":12,"package_group_count":0,"srpm_count":0,"module_stream_count":0,"package_count":12,"component_view_count":0,"ansible_collection_repository_count":0,"deb_repository_count":0,"docker_repository_count":0,"file_repository_count":0,"python_repository_count":0,"yum_repository_count":1,"errata_counts":{"security":2,"bugfix":2,"enhancement":8,"total":12},"permissions":{"deletable":true},"filters_applied":false} + + ' headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive + Content-Length: + - '3265' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -751,619 +462,11 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-develop + - 3.7.1 Keep-Alive: - - timeout=15, max=89 + - timeout=15, max=93 Strict-Transport-Security: - max-age=631139040; includeSubdomains - Transfer-Encoding: - - chunked - X-Content-Type-Options: - - nosniff - X-Download-Options: - - noopen - X-Frame-Options: - - sameorigin - X-Permitted-Cross-Domain-Policies: - - none - X-XSS-Protection: - - 1; mode=block - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json;version=2 - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - apypie (https://github.com/Apipie/apypie) - method: GET - uri: https://foreman.example.org/foreman_tasks/api/tasks/32790a78-8b55-4181-8e77-7c264f807121 - response: - body: - string: '{"id":"32790a78-8b55-4181-8e77-7c264f807121","label":"Actions::Katello::Repository::Sync","pending":true,"action":"Synchronize - repository ''Oracle Linux 8 Convert2RHEL main''; product ''Oracle Linux 8 - Convert2RHEL''; organization ''Test Organization''","username":"admin","started_at":"2023-06-21 - 13:27:51 UTC","ended_at":null,"duration":"34.798369","state":"running","result":"pending","progress":0.41,"input":{"repository":{"id":19,"name":"Oracle - Linux 8 Convert2RHEL main","label":"Oracle_Linux_8_Convert2RHEL_main"},"product":{"id":33,"name":"Oracle - Linux 8 Convert2RHEL","label":"Oracle_Linux_8_Convert2RHEL","cp_id":"278578062083"},"provider":{"id":5,"name":"Anonymous"},"organization":{"id":5,"name":"Test - Organization","label":"Test_Organization"},"services_checked":["pulp3"],"id":19,"sync_result":{"class":"Dynflow::ExecutionPlan::OutputReference","execution_plan_id":"388b0c83-f093-4349-bc1d-56a83f64d53f","step_id":19,"action_id":2,"subkeys":[]},"skip_metadata_check":false,"validate_contents":false,"contents_changed":{"class":"Dynflow::ExecutionPlan::OutputReference","execution_plan_id":"388b0c83-f093-4349-bc1d-56a83f64d53f","step_id":19,"action_id":2,"subkeys":["contents_changed"]},"current_request_id":"d446d45e-dc18-430c-b955-6bd3c0545a44","current_timezone":"UTC","current_organization_id":null,"current_location_id":null,"current_user_id":4},"output":{},"humanized":{"action":"Synchronize","input":[["repository",{"text":"repository - ''Oracle Linux 8 Convert2RHEL main''","link":null}],["product",{"text":"product - ''Oracle Linux 8 Convert2RHEL''","link":"/products/33/"}],["organization",{"text":"organization - ''Test Organization''","link":"/organizations/5/edit"}]],"output":"Total steps: - 1223/1223\n--------------------------------\nAssociating Content: 0/0\nDownloading - Artifacts: 471/471\nDownloading Metadata Files: 6/6\nParsed Advisories: 0/0\nParsed - Comps: 0/0\nParsed Packages: 746/746\nSkipping Packages: 0/0","errors":[]},"cli_example":null,"start_at":"2023-06-21 - 13:27:51 UTC","available_actions":{"cancellable":true,"resumable":false}}' - headers: - Cache-Control: - - max-age=0, private, must-revalidate - Connection: - - Keep-Alive - Content-Security-Policy: - - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; - style-src ''unsafe-inline'' ''self''' - Content-Type: - - application/json; charset=utf-8 - Foreman_api_version: - - '2' - Foreman_current_location: - - ; ANY - Foreman_current_organization: - - ; ANY - Foreman_version: - - 3.7.0-develop - Keep-Alive: - - timeout=15, max=88 - Strict-Transport-Security: - - max-age=631139040; includeSubdomains - Transfer-Encoding: - - chunked - X-Content-Type-Options: - - nosniff - X-Download-Options: - - noopen - X-Frame-Options: - - sameorigin - X-Permitted-Cross-Domain-Policies: - - none - X-XSS-Protection: - - 1; mode=block - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json;version=2 - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - apypie (https://github.com/Apipie/apypie) - method: GET - uri: https://foreman.example.org/foreman_tasks/api/tasks/32790a78-8b55-4181-8e77-7c264f807121 - response: - body: - string: '{"id":"32790a78-8b55-4181-8e77-7c264f807121","label":"Actions::Katello::Repository::Sync","pending":true,"action":"Synchronize - repository ''Oracle Linux 8 Convert2RHEL main''; product ''Oracle Linux 8 - Convert2RHEL''; organization ''Test Organization''","username":"admin","started_at":"2023-06-21 - 13:27:51 UTC","ended_at":null,"duration":"39.048663","state":"running","result":"pending","progress":0.41,"input":{"repository":{"id":19,"name":"Oracle - Linux 8 Convert2RHEL main","label":"Oracle_Linux_8_Convert2RHEL_main"},"product":{"id":33,"name":"Oracle - Linux 8 Convert2RHEL","label":"Oracle_Linux_8_Convert2RHEL","cp_id":"278578062083"},"provider":{"id":5,"name":"Anonymous"},"organization":{"id":5,"name":"Test - Organization","label":"Test_Organization"},"services_checked":["pulp3"],"id":19,"sync_result":{"class":"Dynflow::ExecutionPlan::OutputReference","execution_plan_id":"388b0c83-f093-4349-bc1d-56a83f64d53f","step_id":19,"action_id":2,"subkeys":[]},"skip_metadata_check":false,"validate_contents":false,"contents_changed":{"class":"Dynflow::ExecutionPlan::OutputReference","execution_plan_id":"388b0c83-f093-4349-bc1d-56a83f64d53f","step_id":19,"action_id":2,"subkeys":["contents_changed"]},"current_request_id":"d446d45e-dc18-430c-b955-6bd3c0545a44","current_timezone":"UTC","current_organization_id":null,"current_location_id":null,"current_user_id":4},"output":{},"humanized":{"action":"Synchronize","input":[["repository",{"text":"repository - ''Oracle Linux 8 Convert2RHEL main''","link":null}],["product",{"text":"product - ''Oracle Linux 8 Convert2RHEL''","link":"/products/33/"}],["organization",{"text":"organization - ''Test Organization''","link":"/organizations/5/edit"}]],"output":"Total steps: - 1255/1255\n--------------------------------\nAssociating Content: 0/0\nDownloading - Artifacts: 503/503\nDownloading Metadata Files: 6/6\nParsed Advisories: 0/0\nParsed - Comps: 0/0\nParsed Packages: 746/746\nSkipping Packages: 0/0","errors":[]},"cli_example":null,"start_at":"2023-06-21 - 13:27:51 UTC","available_actions":{"cancellable":true,"resumable":false}}' - headers: - Cache-Control: - - max-age=0, private, must-revalidate - Connection: - - Keep-Alive - Content-Security-Policy: - - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; - style-src ''unsafe-inline'' ''self''' - Content-Type: - - application/json; charset=utf-8 - Foreman_api_version: - - '2' - Foreman_current_location: - - ; ANY - Foreman_current_organization: - - ; ANY - Foreman_version: - - 3.7.0-develop - Keep-Alive: - - timeout=15, max=87 - Strict-Transport-Security: - - max-age=631139040; includeSubdomains - Transfer-Encoding: - - chunked - X-Content-Type-Options: - - nosniff - X-Download-Options: - - noopen - X-Frame-Options: - - sameorigin - X-Permitted-Cross-Domain-Policies: - - none - X-XSS-Protection: - - 1; mode=block - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json;version=2 - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - apypie (https://github.com/Apipie/apypie) - method: GET - uri: https://foreman.example.org/foreman_tasks/api/tasks/32790a78-8b55-4181-8e77-7c264f807121 - response: - body: - string: '{"id":"32790a78-8b55-4181-8e77-7c264f807121","label":"Actions::Katello::Repository::Sync","pending":true,"action":"Synchronize - repository ''Oracle Linux 8 Convert2RHEL main''; product ''Oracle Linux 8 - Convert2RHEL''; organization ''Test Organization''","username":"admin","started_at":"2023-06-21 - 13:27:51 UTC","ended_at":null,"duration":"43.269876","state":"running","result":"pending","progress":0.41,"input":{"repository":{"id":19,"name":"Oracle - Linux 8 Convert2RHEL main","label":"Oracle_Linux_8_Convert2RHEL_main"},"product":{"id":33,"name":"Oracle - Linux 8 Convert2RHEL","label":"Oracle_Linux_8_Convert2RHEL","cp_id":"278578062083"},"provider":{"id":5,"name":"Anonymous"},"organization":{"id":5,"name":"Test - Organization","label":"Test_Organization"},"services_checked":["pulp3"],"id":19,"sync_result":{"class":"Dynflow::ExecutionPlan::OutputReference","execution_plan_id":"388b0c83-f093-4349-bc1d-56a83f64d53f","step_id":19,"action_id":2,"subkeys":[]},"skip_metadata_check":false,"validate_contents":false,"contents_changed":{"class":"Dynflow::ExecutionPlan::OutputReference","execution_plan_id":"388b0c83-f093-4349-bc1d-56a83f64d53f","step_id":19,"action_id":2,"subkeys":["contents_changed"]},"current_request_id":"d446d45e-dc18-430c-b955-6bd3c0545a44","current_timezone":"UTC","current_organization_id":null,"current_location_id":null,"current_user_id":4},"output":{},"humanized":{"action":"Synchronize","input":[["repository",{"text":"repository - ''Oracle Linux 8 Convert2RHEL main''","link":null}],["product",{"text":"product - ''Oracle Linux 8 Convert2RHEL''","link":"/products/33/"}],["organization",{"text":"organization - ''Test Organization''","link":"/organizations/5/edit"}]],"output":"Total steps: - 1257/1257\n--------------------------------\nAssociating Content: 0/0\nDownloading - Artifacts: 505/505\nDownloading Metadata Files: 6/6\nParsed Advisories: 0/0\nParsed - Comps: 0/0\nParsed Packages: 746/746\nSkipping Packages: 0/0","errors":[]},"cli_example":null,"start_at":"2023-06-21 - 13:27:51 UTC","available_actions":{"cancellable":true,"resumable":false}}' - headers: - Cache-Control: - - max-age=0, private, must-revalidate - Connection: - - Keep-Alive - Content-Security-Policy: - - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; - style-src ''unsafe-inline'' ''self''' - Content-Type: - - application/json; charset=utf-8 - Foreman_api_version: - - '2' - Foreman_current_location: - - ; ANY - Foreman_current_organization: - - ; ANY - Foreman_version: - - 3.7.0-develop - Keep-Alive: - - timeout=15, max=86 - Strict-Transport-Security: - - max-age=631139040; includeSubdomains - Transfer-Encoding: - - chunked - X-Content-Type-Options: - - nosniff - X-Download-Options: - - noopen - X-Frame-Options: - - sameorigin - X-Permitted-Cross-Domain-Policies: - - none - X-XSS-Protection: - - 1; mode=block - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json;version=2 - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - apypie (https://github.com/Apipie/apypie) - method: GET - uri: https://foreman.example.org/foreman_tasks/api/tasks/32790a78-8b55-4181-8e77-7c264f807121 - response: - body: - string: '{"id":"32790a78-8b55-4181-8e77-7c264f807121","label":"Actions::Katello::Repository::Sync","pending":true,"action":"Synchronize - repository ''Oracle Linux 8 Convert2RHEL main''; product ''Oracle Linux 8 - Convert2RHEL''; organization ''Test Organization''","username":"admin","started_at":"2023-06-21 - 13:27:51 UTC","ended_at":null,"duration":"47.499032","state":"running","result":"pending","progress":0.41,"input":{"repository":{"id":19,"name":"Oracle - Linux 8 Convert2RHEL main","label":"Oracle_Linux_8_Convert2RHEL_main"},"product":{"id":33,"name":"Oracle - Linux 8 Convert2RHEL","label":"Oracle_Linux_8_Convert2RHEL","cp_id":"278578062083"},"provider":{"id":5,"name":"Anonymous"},"organization":{"id":5,"name":"Test - Organization","label":"Test_Organization"},"services_checked":["pulp3"],"id":19,"sync_result":{"class":"Dynflow::ExecutionPlan::OutputReference","execution_plan_id":"388b0c83-f093-4349-bc1d-56a83f64d53f","step_id":19,"action_id":2,"subkeys":[]},"skip_metadata_check":false,"validate_contents":false,"contents_changed":{"class":"Dynflow::ExecutionPlan::OutputReference","execution_plan_id":"388b0c83-f093-4349-bc1d-56a83f64d53f","step_id":19,"action_id":2,"subkeys":["contents_changed"]},"current_request_id":"d446d45e-dc18-430c-b955-6bd3c0545a44","current_timezone":"UTC","current_organization_id":null,"current_location_id":null,"current_user_id":4},"output":{},"humanized":{"action":"Synchronize","input":[["repository",{"text":"repository - ''Oracle Linux 8 Convert2RHEL main''","link":null}],["product",{"text":"product - ''Oracle Linux 8 Convert2RHEL''","link":"/products/33/"}],["organization",{"text":"organization - ''Test Organization''","link":"/organizations/5/edit"}]],"output":"Total steps: - 1257/1257\n--------------------------------\nAssociating Content: 0/0\nDownloading - Artifacts: 505/505\nDownloading Metadata Files: 6/6\nParsed Advisories: 0/0\nParsed - Comps: 0/0\nParsed Packages: 746/746\nSkipping Packages: 0/0","errors":[]},"cli_example":null,"start_at":"2023-06-21 - 13:27:51 UTC","available_actions":{"cancellable":true,"resumable":false}}' - headers: - Cache-Control: - - max-age=0, private, must-revalidate - Connection: - - Keep-Alive - Content-Security-Policy: - - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; - style-src ''unsafe-inline'' ''self''' - Content-Type: - - application/json; charset=utf-8 - Foreman_api_version: - - '2' - Foreman_current_location: - - ; ANY - Foreman_current_organization: - - ; ANY - Foreman_version: - - 3.7.0-develop - Keep-Alive: - - timeout=15, max=85 - Strict-Transport-Security: - - max-age=631139040; includeSubdomains - Transfer-Encoding: - - chunked - X-Content-Type-Options: - - nosniff - X-Download-Options: - - noopen - X-Frame-Options: - - sameorigin - X-Permitted-Cross-Domain-Policies: - - none - X-XSS-Protection: - - 1; mode=block - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json;version=2 - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - apypie (https://github.com/Apipie/apypie) - method: GET - uri: https://foreman.example.org/foreman_tasks/api/tasks/32790a78-8b55-4181-8e77-7c264f807121 - response: - body: - string: '{"id":"32790a78-8b55-4181-8e77-7c264f807121","label":"Actions::Katello::Repository::Sync","pending":true,"action":"Synchronize - repository ''Oracle Linux 8 Convert2RHEL main''; product ''Oracle Linux 8 - Convert2RHEL''; organization ''Test Organization''","username":"admin","started_at":"2023-06-21 - 13:27:51 UTC","ended_at":null,"duration":"51.727525","state":"running","result":"pending","progress":0.41,"input":{"repository":{"id":19,"name":"Oracle - Linux 8 Convert2RHEL main","label":"Oracle_Linux_8_Convert2RHEL_main"},"product":{"id":33,"name":"Oracle - Linux 8 Convert2RHEL","label":"Oracle_Linux_8_Convert2RHEL","cp_id":"278578062083"},"provider":{"id":5,"name":"Anonymous"},"organization":{"id":5,"name":"Test - Organization","label":"Test_Organization"},"services_checked":["pulp3"],"id":19,"sync_result":{"class":"Dynflow::ExecutionPlan::OutputReference","execution_plan_id":"388b0c83-f093-4349-bc1d-56a83f64d53f","step_id":19,"action_id":2,"subkeys":[]},"skip_metadata_check":false,"validate_contents":false,"contents_changed":{"class":"Dynflow::ExecutionPlan::OutputReference","execution_plan_id":"388b0c83-f093-4349-bc1d-56a83f64d53f","step_id":19,"action_id":2,"subkeys":["contents_changed"]},"current_request_id":"d446d45e-dc18-430c-b955-6bd3c0545a44","current_timezone":"UTC","current_organization_id":null,"current_location_id":null,"current_user_id":4},"output":{},"humanized":{"action":"Synchronize","input":[["repository",{"text":"repository - ''Oracle Linux 8 Convert2RHEL main''","link":null}],["product",{"text":"product - ''Oracle Linux 8 Convert2RHEL''","link":"/products/33/"}],["organization",{"text":"organization - ''Test Organization''","link":"/organizations/5/edit"}]],"output":"Total steps: - 1922/1922\n--------------------------------\nAssociating Content: 500/500\nDownloading - Artifacts: 670/670\nDownloading Metadata Files: 6/6\nParsed Advisories: 0/0\nParsed - Comps: 0/0\nParsed Packages: 746/746\nSkipping Packages: 0/0","errors":[]},"cli_example":null,"start_at":"2023-06-21 - 13:27:51 UTC","available_actions":{"cancellable":true,"resumable":false}}' - headers: - Cache-Control: - - max-age=0, private, must-revalidate - Connection: - - Keep-Alive - Content-Security-Policy: - - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; - style-src ''unsafe-inline'' ''self''' - Content-Type: - - application/json; charset=utf-8 - Foreman_api_version: - - '2' - Foreman_current_location: - - ; ANY - Foreman_current_organization: - - ; ANY - Foreman_version: - - 3.7.0-develop - Keep-Alive: - - timeout=15, max=84 - Strict-Transport-Security: - - max-age=631139040; includeSubdomains - Transfer-Encoding: - - chunked - X-Content-Type-Options: - - nosniff - X-Download-Options: - - noopen - X-Frame-Options: - - sameorigin - X-Permitted-Cross-Domain-Policies: - - none - X-XSS-Protection: - - 1; mode=block - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json;version=2 - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - apypie (https://github.com/Apipie/apypie) - method: GET - uri: https://foreman.example.org/foreman_tasks/api/tasks/32790a78-8b55-4181-8e77-7c264f807121 - response: - body: - string: '{"id":"32790a78-8b55-4181-8e77-7c264f807121","label":"Actions::Katello::Repository::Sync","pending":true,"action":"Synchronize - repository ''Oracle Linux 8 Convert2RHEL main''; product ''Oracle Linux 8 - Convert2RHEL''; organization ''Test Organization''","username":"admin","started_at":"2023-06-21 - 13:27:51 UTC","ended_at":null,"duration":"55.988379","state":"running","result":"pending","progress":0.41,"input":{"repository":{"id":19,"name":"Oracle - Linux 8 Convert2RHEL main","label":"Oracle_Linux_8_Convert2RHEL_main"},"product":{"id":33,"name":"Oracle - Linux 8 Convert2RHEL","label":"Oracle_Linux_8_Convert2RHEL","cp_id":"278578062083"},"provider":{"id":5,"name":"Anonymous"},"organization":{"id":5,"name":"Test - Organization","label":"Test_Organization"},"services_checked":["pulp3"],"id":19,"sync_result":{"class":"Dynflow::ExecutionPlan::OutputReference","execution_plan_id":"388b0c83-f093-4349-bc1d-56a83f64d53f","step_id":19,"action_id":2,"subkeys":[]},"skip_metadata_check":false,"validate_contents":false,"contents_changed":{"class":"Dynflow::ExecutionPlan::OutputReference","execution_plan_id":"388b0c83-f093-4349-bc1d-56a83f64d53f","step_id":19,"action_id":2,"subkeys":["contents_changed"]},"current_request_id":"d446d45e-dc18-430c-b955-6bd3c0545a44","current_timezone":"UTC","current_organization_id":null,"current_location_id":null,"current_user_id":4},"output":{},"humanized":{"action":"Synchronize","input":[["repository",{"text":"repository - ''Oracle Linux 8 Convert2RHEL main''","link":null}],["product",{"text":"product - ''Oracle Linux 8 Convert2RHEL''","link":"/products/33/"}],["organization",{"text":"organization - ''Test Organization''","link":"/organizations/5/edit"}]],"output":"Total steps: - 1922/1922\n--------------------------------\nAssociating Content: 500/500\nDownloading - Artifacts: 670/670\nDownloading Metadata Files: 6/6\nParsed Advisories: 0/0\nParsed - Comps: 0/0\nParsed Packages: 746/746\nSkipping Packages: 0/0","errors":[]},"cli_example":null,"start_at":"2023-06-21 - 13:27:51 UTC","available_actions":{"cancellable":true,"resumable":false}}' - headers: - Cache-Control: - - max-age=0, private, must-revalidate - Connection: - - Keep-Alive - Content-Security-Policy: - - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; - style-src ''unsafe-inline'' ''self''' - Content-Type: - - application/json; charset=utf-8 - Foreman_api_version: - - '2' - Foreman_current_location: - - ; ANY - Foreman_current_organization: - - ; ANY - Foreman_version: - - 3.7.0-develop - Keep-Alive: - - timeout=15, max=83 - Strict-Transport-Security: - - max-age=631139040; includeSubdomains - Transfer-Encoding: - - chunked - X-Content-Type-Options: - - nosniff - X-Download-Options: - - noopen - X-Frame-Options: - - sameorigin - X-Permitted-Cross-Domain-Policies: - - none - X-XSS-Protection: - - 1; mode=block - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json;version=2 - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - apypie (https://github.com/Apipie/apypie) - method: GET - uri: https://foreman.example.org/foreman_tasks/api/tasks/32790a78-8b55-4181-8e77-7c264f807121 - response: - body: - string: '{"id":"32790a78-8b55-4181-8e77-7c264f807121","label":"Actions::Katello::Repository::Sync","pending":true,"action":"Synchronize - repository ''Oracle Linux 8 Convert2RHEL main''; product ''Oracle Linux 8 - Convert2RHEL''; organization ''Test Organization''","username":"admin","started_at":"2023-06-21 - 13:27:51 UTC","ended_at":null,"duration":"60.257931","state":"running","result":"pending","progress":0.46,"input":{"repository":{"id":19,"name":"Oracle - Linux 8 Convert2RHEL main","label":"Oracle_Linux_8_Convert2RHEL_main"},"product":{"id":33,"name":"Oracle - Linux 8 Convert2RHEL","label":"Oracle_Linux_8_Convert2RHEL","cp_id":"278578062083"},"provider":{"id":5,"name":"Anonymous"},"organization":{"id":5,"name":"Test - Organization","label":"Test_Organization"},"services_checked":["pulp3"],"id":19,"sync_result":{"class":"Dynflow::ExecutionPlan::OutputReference","execution_plan_id":"388b0c83-f093-4349-bc1d-56a83f64d53f","step_id":19,"action_id":2,"subkeys":[]},"skip_metadata_check":false,"validate_contents":false,"contents_changed":{"class":"Dynflow::ExecutionPlan::OutputReference","execution_plan_id":"388b0c83-f093-4349-bc1d-56a83f64d53f","step_id":19,"action_id":2,"subkeys":["contents_changed"]},"current_request_id":"d446d45e-dc18-430c-b955-6bd3c0545a44","current_timezone":"UTC","current_organization_id":null,"current_location_id":null,"current_user_id":4},"output":{},"humanized":{"action":"Synchronize","input":[["repository",{"text":"repository - ''Oracle Linux 8 Convert2RHEL main''","link":null}],["product",{"text":"product - ''Oracle Linux 8 Convert2RHEL''","link":"/products/33/"}],["organization",{"text":"organization - ''Test Organization''","link":"/organizations/5/edit"}]],"output":"Total steps: - 2244/2244\n--------------------------------\nAssociating Content: 746/746\nDownloading - Artifacts: 746/746\nDownloading Metadata Files: 6/6\nParsed Advisories: 0/0\nParsed - Comps: 0/0\nParsed Packages: 746/746\nSkipping Packages: 0/0\nUn-Associating - Content: 0/0","errors":[]},"cli_example":null,"start_at":"2023-06-21 13:27:51 - UTC","available_actions":{"cancellable":true,"resumable":false}}' - headers: - Cache-Control: - - max-age=0, private, must-revalidate - Connection: - - Keep-Alive - Content-Security-Policy: - - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; - style-src ''unsafe-inline'' ''self''' - Content-Type: - - application/json; charset=utf-8 - Foreman_api_version: - - '2' - Foreman_current_location: - - ; ANY - Foreman_current_organization: - - ; ANY - Foreman_version: - - 3.7.0-develop - Keep-Alive: - - timeout=15, max=82 - Strict-Transport-Security: - - max-age=631139040; includeSubdomains - Transfer-Encoding: - - chunked - X-Content-Type-Options: - - nosniff - X-Download-Options: - - noopen - X-Frame-Options: - - sameorigin - X-Permitted-Cross-Domain-Policies: - - none - X-XSS-Protection: - - 1; mode=block - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json;version=2 - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - apypie (https://github.com/Apipie/apypie) - method: GET - uri: https://foreman.example.org/foreman_tasks/api/tasks/32790a78-8b55-4181-8e77-7c264f807121 - response: - body: - string: '{"id":"32790a78-8b55-4181-8e77-7c264f807121","label":"Actions::Katello::Repository::Sync","pending":true,"action":"Synchronize - repository ''Oracle Linux 8 Convert2RHEL main''; product ''Oracle Linux 8 - Convert2RHEL''; organization ''Test Organization''","username":"admin","started_at":"2023-06-21 - 13:27:51 UTC","ended_at":null,"duration":"64.507711","state":"running","result":"pending","progress":0.63,"input":{"repository":{"id":19,"name":"Oracle - Linux 8 Convert2RHEL main","label":"Oracle_Linux_8_Convert2RHEL_main"},"product":{"id":33,"name":"Oracle - Linux 8 Convert2RHEL","label":"Oracle_Linux_8_Convert2RHEL","cp_id":"278578062083"},"provider":{"id":5,"name":"Anonymous"},"organization":{"id":5,"name":"Test - Organization","label":"Test_Organization"},"services_checked":["pulp3"],"id":19,"sync_result":{"class":"Dynflow::ExecutionPlan::OutputReference","execution_plan_id":"388b0c83-f093-4349-bc1d-56a83f64d53f","step_id":19,"action_id":2,"subkeys":[]},"skip_metadata_check":false,"validate_contents":false,"contents_changed":{"class":"Dynflow::ExecutionPlan::OutputReference","execution_plan_id":"388b0c83-f093-4349-bc1d-56a83f64d53f","step_id":19,"action_id":2,"subkeys":["contents_changed"]},"current_request_id":"d446d45e-dc18-430c-b955-6bd3c0545a44","current_timezone":"UTC","current_organization_id":null,"current_location_id":null,"current_user_id":4},"output":{},"humanized":{"action":"Synchronize","input":[["repository",{"text":"repository - ''Oracle Linux 8 Convert2RHEL main''","link":null}],["product",{"text":"product - ''Oracle Linux 8 Convert2RHEL''","link":"/products/33/"}],["organization",{"text":"organization - ''Test Organization''","link":"/organizations/5/edit"}]],"output":"Total steps: - 2244/2244\n--------------------------------\nAssociating Content: 746/746\nDownloading - Artifacts: 746/746\nDownloading Metadata Files: 6/6\nParsed Advisories: 0/0\nParsed - Comps: 0/0\nParsed Packages: 746/746\nSkipping Packages: 0/0\nUn-Associating - Content: 0/0","errors":[]},"cli_example":null,"start_at":"2023-06-21 13:27:51 - UTC","available_actions":{"cancellable":false,"resumable":false}}' - headers: - Cache-Control: - - max-age=0, private, must-revalidate - Connection: - - Keep-Alive - Content-Security-Policy: - - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; - style-src ''unsafe-inline'' ''self''' - Content-Type: - - application/json; charset=utf-8 - Foreman_api_version: - - '2' - Foreman_current_location: - - ; ANY - Foreman_current_organization: - - ; ANY - Foreman_version: - - 3.7.0-develop - Keep-Alive: - - timeout=15, max=81 - Strict-Transport-Security: - - max-age=631139040; includeSubdomains - Transfer-Encoding: - - chunked - X-Content-Type-Options: - - nosniff - X-Download-Options: - - noopen - X-Frame-Options: - - sameorigin - X-Permitted-Cross-Domain-Policies: - - none - X-XSS-Protection: - - 1; mode=block - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json;version=2 - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - apypie (https://github.com/Apipie/apypie) - method: GET - uri: https://foreman.example.org/foreman_tasks/api/tasks/32790a78-8b55-4181-8e77-7c264f807121 - response: - body: - string: '{"id":"32790a78-8b55-4181-8e77-7c264f807121","label":"Actions::Katello::Repository::Sync","pending":false,"action":"Synchronize - repository ''Oracle Linux 8 Convert2RHEL main''; product ''Oracle Linux 8 - Convert2RHEL''; organization ''Test Organization''","username":"admin","started_at":"2023-06-21 - 13:27:51 UTC","ended_at":"2023-06-21 13:28:57 UTC","duration":"66.52784199999999","state":"stopped","result":"success","progress":1.0,"input":{"repository":{"id":19,"name":"Oracle - Linux 8 Convert2RHEL main","label":"Oracle_Linux_8_Convert2RHEL_main"},"product":{"id":33,"name":"Oracle - Linux 8 Convert2RHEL","label":"Oracle_Linux_8_Convert2RHEL","cp_id":"278578062083"},"provider":{"id":5,"name":"Anonymous"},"organization":{"id":5,"name":"Test - Organization","label":"Test_Organization"},"services_checked":["pulp3"],"id":19,"sync_result":{"publication_provided":false,"contents_changed":true},"skip_metadata_check":false,"validate_contents":false,"contents_changed":true,"current_request_id":"d446d45e-dc18-430c-b955-6bd3c0545a44","current_timezone":"UTC","current_organization_id":null,"current_location_id":null,"current_user_id":4},"output":{},"humanized":{"action":"Synchronize","input":[["repository",{"text":"repository - ''Oracle Linux 8 Convert2RHEL main''","link":null}],["product",{"text":"product - ''Oracle Linux 8 Convert2RHEL''","link":"/products/33/"}],["organization",{"text":"organization - ''Test Organization''","link":"/organizations/5/edit"}]],"output":"Added Rpms: - 746\nTotal steps: 2244/2244\n--------------------------------\nAssociating - Content: 746/746\nDownloading Artifacts: 746/746\nDownloading Metadata Files: - 6/6\nParsed Advisories: 0/0\nParsed Comps: 0/0\nParsed Packages: 746/746\nSkipping - Packages: 0/0\nUn-Associating Content: 0/0","errors":[]},"cli_example":null,"start_at":"2023-06-21 - 13:27:51 UTC","available_actions":{"cancellable":false,"resumable":false}}' - headers: - Cache-Control: - - max-age=0, private, must-revalidate - Connection: - - Keep-Alive - Content-Security-Policy: - - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; - style-src ''unsafe-inline'' ''self''' - Content-Type: - - application/json; charset=utf-8 - Foreman_api_version: - - '2' - Foreman_current_location: - - ; ANY - Foreman_current_organization: - - ; ANY - Foreman_version: - - 3.7.0-develop - Keep-Alive: - - timeout=15, max=80 - Strict-Transport-Security: - - max-age=631139040; includeSubdomains - Transfer-Encoding: - - chunked X-Content-Type-Options: - nosniff X-Download-Options: diff --git a/tests/test_playbooks/fixtures/convert2rhel-14.yml b/tests/test_playbooks/fixtures/convert2rhel-14.yml index b480ecf8d..949468fc7 100644 --- a/tests/test_playbooks/fixtures/convert2rhel-14.yml +++ b/tests/test_playbooks/fixtures/convert2rhel-14.yml @@ -14,12 +14,14 @@ interactions: uri: https://foreman.example.org/api/status response: body: - string: '{"satellite_version":"6.14.0","result":"ok","status":200,"version":"3.7.0-develop","api_version":2}' + string: '{"result":"ok","status":200,"version":"3.7.1","api_version":2}' headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive + Content-Length: + - '102' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -33,13 +35,11 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-develop + - 3.7.1 Keep-Alive: - timeout=15, max=100 Strict-Transport-Security: - max-age=631139040; includeSubdomains - Transfer-Encoding: - - chunked X-Content-Type-Options: - nosniff X-Download-Options: @@ -68,16 +68,18 @@ interactions: uri: https://foreman.example.org/katello/api/organizations?search=name%3D%22Test+Organization%22&per_page=4294967296 response: body: - string: "{\n \"total\": 3,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": + string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": 4294967296,\n \"search\": \"name=\\\"Test Organization\\\"\",\n \"sort\": - {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\":\"Test_Organization\",\"created_at\":\"2023-06-21 - 13:24:35 UTC\",\"updated_at\":\"2023-06-21 13:24:38 UTC\",\"id\":5,\"name\":\"Test + {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\":\"Test_Organization\",\"created_at\":\"2023-11-13 + 09:23:21 UTC\",\"updated_at\":\"2023-11-13 09:23:23 UTC\",\"id\":4,\"name\":\"Test Organization\",\"title\":\"Test Organization\",\"description\":\"A test organization\"}]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive + Content-Length: + - '388' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -91,13 +93,11 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-develop + - 3.7.1 Keep-Alive: - timeout=15, max=99 Strict-Transport-Security: - max-age=631139040; includeSubdomains - Transfer-Encoding: - - chunked X-Content-Type-Options: - nosniff X-Download-Options: @@ -123,10 +123,10 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/organizations/5/content_views?search=name%3D%22convert2rhel_centos7%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/organizations/4/content_views?search=name%3D%22convert2rhel_centos8%22&per_page=4294967296 response: body: - string: '{"total":1,"subtotal":0,"selectable":0,"page":1,"per_page":"4294967296","error":null,"search":"name=\"convert2rhel_centos7\"","sort":{"by":"name","order":"asc"},"results":[]} + string: '{"total":2,"subtotal":0,"selectable":0,"page":1,"per_page":"4294967296","error":null,"search":"name=\"convert2rhel_centos8\"","sort":{"by":"name","order":"asc"},"results":[]} ' headers: @@ -134,6 +134,8 @@ interactions: - max-age=0, private, must-revalidate Connection: - Keep-Alive + Content-Length: + - '175' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -145,15 +147,13 @@ interactions: Foreman_current_location: - ; ANY Foreman_current_organization: - - 5; Test Organization + - 4; Test Organization Foreman_version: - - 3.7.0-develop + - 3.7.1 Keep-Alive: - timeout=15, max=98 Strict-Transport-Security: - max-age=631139040; includeSubdomains - Transfer-Encoding: - - chunked X-Content-Type-Options: - nosniff X-Download-Options: @@ -179,12 +179,12 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/organizations/5/products?search=name%3D%22Convert2RHEL7%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/organizations/4/products?search=name%3D%22Convert2RHEL8%22&per_page=4294967296 response: body: - string: '{"total":4,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Convert2RHEL7\"","sort":{"by":"name","order":"asc"},"results":[{"id":30,"cp_id":"213774223616","name":"Convert2RHEL7","label":"Convert2RHEL7","description":null,"provider_id":5,"sync_plan_id":null,"sync_summary":{"success":1},"gpg_key_id":null,"ssl_ca_cert_id":null,"ssl_client_cert_id":null,"ssl_client_key_id":null,"sync_state":"Syncing - Complete.","last_sync":"2023-06-21 13:25:26 UTC","last_sync_words":"4 minutes","organization_id":5,"organization":{"name":"Test - Organization","label":"Test_Organization","id":5},"sync_plan":null,"repository_count":1}]} + string: '{"total":4,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Convert2RHEL8\"","sort":{"by":"name","order":"asc"},"results":[{"id":6,"cp_id":"139454427959","name":"Convert2RHEL8","label":"Convert2RHEL8","description":null,"provider_id":5,"sync_plan_id":null,"sync_summary":{"success":1},"gpg_key_id":null,"ssl_ca_cert_id":null,"ssl_client_cert_id":null,"ssl_client_key_id":null,"sync_state":"Syncing + Complete.","last_sync":"2023-11-13 09:23:43 UTC","last_sync_words":"1 minute","organization_id":4,"organization":{"name":"Test + Organization","label":"Test_Organization","id":4},"sync_plan":null,"repository_count":1}]} ' headers: @@ -192,6 +192,8 @@ interactions: - max-age=0, private, must-revalidate Connection: - Keep-Alive + Content-Length: + - '658' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -203,15 +205,13 @@ interactions: Foreman_current_location: - ; ANY Foreman_current_organization: - - 5; Test Organization + - 4; Test Organization Foreman_version: - - 3.7.0-develop + - 3.7.1 Keep-Alive: - timeout=15, max=97 Strict-Transport-Security: - max-age=631139040; includeSubdomains - Transfer-Encoding: - - chunked X-Content-Type-Options: - nosniff X-Download-Options: @@ -237,16 +237,16 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/products/30/repositories?search=name%3D%22Convert2RHEL7+main%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/products/6/repositories?search=name%3D%22Convert2RHEL8+main%22&per_page=4294967296 response: body: - string: '{"total":1,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Convert2RHEL7 - main\"","sort":{"by":"name","order":"asc"},"results":[{"backend_identifier":"a22aabd5-10a9-41fe-8fba-d9e321c25ded","relative_path":"Test_Organization/Library/custom/Convert2RHEL7/Convert2RHEL7_main","container_repository_name":null,"full_path":"https://sat-r220-03.lab.eng.rdu2.redhat.com/pulp/content/Test_Organization/Library/custom/Convert2RHEL7/Convert2RHEL7_main/","library_instance_id":null,"version_href":"/pulp/api/v3/repositories/rpm/rpm/1c6df5a8-16bd-4362-b02d-967f863a17e3/versions/1/","remote_href":"/pulp/api/v3/remotes/rpm/rpm/b7f14666-2f21-4a59-840e-cf633a23d4b5/","publication_href":"/pulp/api/v3/publications/rpm/rpm/447ce3ed-644c-4476-a1ee-b7f2f62144e7/","content_counts":{"rpm":9,"erratum":9,"package_group":0,"srpm":0,"module_stream":0},"mirroring_policy":"mirror_content_only","id":16,"name":"Convert2RHEL7 - main","label":"Convert2RHEL7_main","description":null,"content_view_versions":[],"last_sync":{"id":"ba6f581c-756e-421c-bc15-3d1a12f21494","username":"admin","started_at":"2023-06-21 - 13:25:26 UTC","ended_at":"2023-06-21 13:25:37 UTC","state":"stopped","result":"success","progress":1.0},"content_view":{"id":6,"name":"Default - Organization View"},"content_view_version":{"id":6,"name":"Default Organization - View 1.0","content_view_id":6},"kt_environment":{"id":3,"name":"Library"},"content_type":"yum","url":"https://cdn.redhat.com/content/public/convert2rhel/7/x86_64/os/","arch":"noarch","os_versions":[],"content_id":"1687353889016","generic_remote_options":null,"major":null,"minor":null,"product":{"id":30,"cp_id":"213774223616","name":"Convert2RHEL7","orphaned":false,"redhat":false,"sync_plan":null},"content_label":"Test_Organization_Convert2RHEL7_Convert2RHEL7_main","last_sync_words":"3 - minutes"}],"org_repository_count":4} + string: '{"total":1,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Convert2RHEL8 + main\"","sort":{"by":"name","order":"asc"},"results":[{"backend_identifier":"efcacfee-d580-4ee2-ba9d-6e814db96635","relative_path":"Test_Organization/Library/custom/Convert2RHEL8/Convert2RHEL8_main","container_repository_name":null,"full_path":"https://centos8-stream-katello-4-9.tanso.example.com/pulp/content/Test_Organization/Library/custom/Convert2RHEL8/Convert2RHEL8_main/","library_instance_id":null,"version_href":"/pulp/api/v3/repositories/rpm/rpm/cd1634f4-f76f-4748-90ca-4cda8c82524a/versions/1/","remote_href":"/pulp/api/v3/remotes/rpm/rpm/a2ec2855-7266-4aeb-b92a-59c3ff60617e/","publication_href":"/pulp/api/v3/publications/rpm/rpm/62737c27-3499-472b-a7df-c33e756e980d/","content_counts":{"rpm":12,"erratum":12,"package_group":0,"srpm":0,"module_stream":0},"mirroring_policy":"mirror_content_only","id":10,"name":"Convert2RHEL8 + main","label":"Convert2RHEL8_main","description":null,"content_view_versions":[],"filters":[],"last_sync":{"id":"a2bd6ed7-6d60-4e31-b32d-0c93503870b5","username":"admin","started_at":"2023-11-13 + 09:23:43 UTC","ended_at":"2023-11-13 09:23:50 UTC","state":"stopped","result":"success","progress":1.0},"content_view":{"id":5,"name":"Default + Organization View"},"content_view_version":{"id":5,"name":"Default Organization + View 1.0","content_view_id":5},"kt_environment":{"id":3,"name":"Library"},"content_type":"yum","url":"https://cdn-public.redhat.com/content/public/addon/dist/convert2rhel8/8/x86_64/os/","arch":"noarch","os_versions":[],"content_id":"1699867408251","generic_remote_options":null,"major":null,"minor":null,"product":{"id":6,"cp_id":"139454427959","name":"Convert2RHEL8","orphaned":false,"redhat":false,"sync_plan":null},"content_label":"Test_Organization_Convert2RHEL8_Convert2RHEL8_main","last_sync_words":"1 + minute"}],"org_repository_count":6} ' headers: @@ -254,6 +254,8 @@ interactions: - max-age=0, private, must-revalidate Connection: - Keep-Alive + Content-Length: + - '1917' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -267,13 +269,11 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-develop + - 3.7.1 Keep-Alive: - timeout=15, max=96 Strict-Transport-Security: - max-age=631139040; includeSubdomains - Transfer-Encoding: - - chunked X-Content-Type-Options: - nosniff X-Download-Options: @@ -288,8 +288,8 @@ interactions: code: 200 message: OK - request: - body: '{"name": "convert2rhel_centos7", "composite": false, "repository_ids": - [16], "auto_publish": false}' + body: '{"name": "convert2rhel_centos8", "composite": false, "repository_ids": + [10], "auto_publish": false}' headers: Accept: - application/json;version=2 @@ -304,13 +304,13 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: POST - uri: https://foreman.example.org/katello/api/organizations/5/content_views + uri: https://foreman.example.org/katello/api/organizations/4/content_views response: body: - string: ' {"content_host_count":0,"composite":false,"component_ids":[],"default":false,"version_count":0,"latest_version":null,"latest_version_id":null,"auto_publish":false,"solve_dependencies":false,"import_only":false,"generated_for":"none","related_cv_count":0,"related_composite_cvs":[],"repository_ids":[16],"id":7,"name":"convert2rhel_centos7","label":"convert2rhel_centos7","description":null,"organization_id":5,"organization":{"name":"Test - Organization","label":"Test_Organization","id":5},"created_at":"2023-06-21 - 13:29:02 UTC","updated_at":"2023-06-21 13:29:02 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":16,"name":"Convert2RHEL7 - main","label":"Convert2RHEL7_main","content_type":"yum"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[],"duplicate_repositories_to_publish":[],"errors":null} + string: ' {"content_host_count":0,"composite":false,"component_ids":[],"default":false,"version_count":0,"latest_version":null,"latest_version_id":null,"auto_publish":false,"solve_dependencies":false,"import_only":false,"generated_for":"none","related_cv_count":0,"related_composite_cvs":[],"needs_publish":true,"filtered":false,"repository_ids":[10],"id":7,"name":"convert2rhel_centos8","label":"convert2rhel_centos8","description":null,"organization_id":4,"organization":{"name":"Test + Organization","label":"Test_Organization","id":4},"created_at":"2023-11-13 + 09:24:52 UTC","updated_at":"2023-11-13 09:24:52 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":10,"name":"Convert2RHEL8 + main","label":"Convert2RHEL8_main","content_type":"yum"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[],"duplicate_repositories_to_publish":[],"errors":null} ' headers: @@ -318,6 +318,8 @@ interactions: - max-age=0, private, must-revalidate Connection: - Keep-Alive + Content-Length: + - '968' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -329,15 +331,13 @@ interactions: Foreman_current_location: - ; ANY Foreman_current_organization: - - 5; Test Organization + - 4; Test Organization Foreman_version: - - 3.7.0-develop + - 3.7.1 Keep-Alive: - timeout=15, max=95 Strict-Transport-Security: - max-age=631139040; includeSubdomains - Transfer-Encoding: - - chunked X-Content-Type-Options: - nosniff X-Download-Options: diff --git a/tests/test_playbooks/fixtures/convert2rhel-15.yml b/tests/test_playbooks/fixtures/convert2rhel-15.yml index 1dd3cc32a..fec9454ab 100644 --- a/tests/test_playbooks/fixtures/convert2rhel-15.yml +++ b/tests/test_playbooks/fixtures/convert2rhel-15.yml @@ -14,12 +14,14 @@ interactions: uri: https://foreman.example.org/api/status response: body: - string: '{"satellite_version":"6.14.0","result":"ok","status":200,"version":"3.7.0-develop","api_version":2}' + string: '{"result":"ok","status":200,"version":"3.7.1","api_version":2}' headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive + Content-Length: + - '102' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -33,13 +35,11 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-develop + - 3.7.1 Keep-Alive: - timeout=15, max=100 Strict-Transport-Security: - max-age=631139040; includeSubdomains - Transfer-Encoding: - - chunked X-Content-Type-Options: - nosniff X-Download-Options: @@ -68,16 +68,18 @@ interactions: uri: https://foreman.example.org/katello/api/organizations?search=name%3D%22Test+Organization%22&per_page=4294967296 response: body: - string: "{\n \"total\": 3,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": + string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": 4294967296,\n \"search\": \"name=\\\"Test Organization\\\"\",\n \"sort\": - {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\":\"Test_Organization\",\"created_at\":\"2023-06-21 - 13:24:35 UTC\",\"updated_at\":\"2023-06-21 13:24:38 UTC\",\"id\":5,\"name\":\"Test + {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\":\"Test_Organization\",\"created_at\":\"2023-11-13 + 09:23:21 UTC\",\"updated_at\":\"2023-11-13 09:23:23 UTC\",\"id\":4,\"name\":\"Test Organization\",\"title\":\"Test Organization\",\"description\":\"A test organization\"}]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive + Content-Length: + - '388' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -91,13 +93,11 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-develop + - 3.7.1 Keep-Alive: - timeout=15, max=99 Strict-Transport-Security: - max-age=631139040; includeSubdomains - Transfer-Encoding: - - chunked X-Content-Type-Options: - nosniff X-Download-Options: @@ -123,13 +123,13 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/organizations/5/content_views?search=name%3D%22convert2rhel_centos7%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/organizations/4/content_views?search=name%3D%22convert2rhel_centos8%22&per_page=4294967296 response: body: - string: '{"total":2,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"convert2rhel_centos7\"","sort":{"by":"name","order":"asc"},"results":[{"composite":false,"component_ids":[],"default":false,"version_count":0,"latest_version":null,"latest_version_id":null,"auto_publish":false,"solve_dependencies":false,"import_only":false,"generated_for":"none","related_cv_count":0,"related_composite_cvs":[],"repository_ids":[16],"id":7,"name":"convert2rhel_centos7","label":"convert2rhel_centos7","description":null,"organization_id":5,"organization":{"name":"Test - Organization","label":"Test_Organization","id":5},"created_at":"2023-06-21 - 13:29:02 UTC","updated_at":"2023-06-21 13:29:02 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":16,"name":"Convert2RHEL7 - main","label":"Convert2RHEL7_main","content_type":"yum"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]}]} + string: '{"total":3,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"convert2rhel_centos8\"","sort":{"by":"name","order":"asc"},"results":[{"composite":false,"component_ids":[],"default":false,"version_count":0,"latest_version":null,"latest_version_id":null,"auto_publish":false,"solve_dependencies":false,"import_only":false,"generated_for":"none","related_cv_count":0,"related_composite_cvs":[],"needs_publish":true,"filtered":false,"repository_ids":[10],"id":7,"name":"convert2rhel_centos8","label":"convert2rhel_centos8","description":null,"organization_id":4,"organization":{"name":"Test + Organization","label":"Test_Organization","id":4},"created_at":"2023-11-13 + 09:24:52 UTC","updated_at":"2023-11-13 09:24:52 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":10,"name":"Convert2RHEL8 + main","label":"Convert2RHEL8_main","content_type":"yum"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]}]} ' headers: @@ -137,6 +137,8 @@ interactions: - max-age=0, private, must-revalidate Connection: - Keep-Alive + Content-Length: + - '1064' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -148,15 +150,13 @@ interactions: Foreman_current_location: - ; ANY Foreman_current_organization: - - 5; Test Organization + - 4; Test Organization Foreman_version: - - 3.7.0-develop + - 3.7.1 Keep-Alive: - timeout=15, max=98 Strict-Transport-Security: - max-age=631139040; includeSubdomains - Transfer-Encoding: - - chunked X-Content-Type-Options: - nosniff X-Download-Options: @@ -185,7 +185,7 @@ interactions: uri: https://foreman.example.org/katello/api/content_view_versions?search=content_view_id%3D7%2Cversion%3D1.0&per_page=4294967296 response: body: - string: '{"total":6,"subtotal":0,"selectable":0,"page":1,"per_page":"4294967296","error":null,"search":"content_view_id=7,version=1.0","sort":{"by":"version","order":"desc"},"results":[]} + string: '{"total":3,"subtotal":0,"selectable":0,"page":1,"per_page":"4294967296","error":null,"search":"content_view_id=7,version=1.0","sort":{"by":"version","order":"desc"},"results":[]} ' headers: @@ -193,6 +193,8 @@ interactions: - max-age=0, private, must-revalidate Connection: - Keep-Alive + Content-Length: + - '179' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -206,13 +208,11 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-develop + - 3.7.1 Keep-Alive: - timeout=15, max=97 Strict-Transport-Security: - max-age=631139040; includeSubdomains - Transfer-Encoding: - - chunked X-Content-Type-Options: - nosniff X-Download-Options: @@ -238,12 +238,12 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/organizations/5/environments?search=name%3D%22Library%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/organizations/4/environments?search=name%3D%22Library%22&per_page=4294967296 response: body: - string: '{"total":1,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Library\"","sort":{"by":"name","order":"asc"},"results":[{"library":true,"registry_name_pattern":null,"registry_unauthenticated_pull":false,"id":3,"name":"Library","label":"Library","description":null,"organization_id":5,"organization":{"name":"Test - Organization","label":"Test_Organization","id":5},"created_at":"2023-06-21 - 13:24:36 UTC","updated_at":"2023-06-21 13:24:36 UTC","prior":null,"successor":null,"counts":{"content_hosts":0,"content_views":0,"packages":1773,"module_streams":0,"errata":{"security":4,"bugfix":2,"enhancement":12,"total":18},"yum_repositories":4,"docker_repositories":0,"ostree_repositories":0,"products":4,"debs":0,"deb_repositories":0},"permissions":{"create_lifecycle_environments":true,"view_lifecycle_environments":true,"edit_lifecycle_environments":true,"destroy_lifecycle_environments":false,"promote_or_remove_content_views_to_environments":true},"content_views":[]}]} + string: '{"total":1,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Library\"","sort":{"by":"name","order":"asc"},"results":[{"library":true,"registry_name_pattern":null,"registry_unauthenticated_pull":false,"id":3,"name":"Library","label":"Library","description":null,"organization_id":4,"organization":{"name":"Test + Organization","label":"Test_Organization","id":4},"created_at":"2023-11-13 + 09:23:22 UTC","updated_at":"2023-11-13 09:23:22 UTC","prior":null,"successor":null,"counts":{"content_hosts":0,"content_views":1,"packages":1782,"module_streams":0,"errata":{"security":4,"bugfix":4,"enhancement":16,"total":24},"yum_repositories":4,"docker_repositories":0,"ostree_repositories":0,"products":4,"debs":0,"deb_repositories":0},"permissions":{"create_lifecycle_environments":true,"view_lifecycle_environments":true,"edit_lifecycle_environments":true,"destroy_lifecycle_environments":false,"promote_or_remove_content_views_to_environments":true},"content_views":[{"name":"convert2rhel_centos7","id":6}]}]} ' headers: @@ -251,6 +251,8 @@ interactions: - max-age=0, private, must-revalidate Connection: - Keep-Alive + Content-Length: + - '1044' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -262,15 +264,13 @@ interactions: Foreman_current_location: - ; ANY Foreman_current_organization: - - 5; Test Organization + - 4; Test Organization Foreman_version: - - 3.7.0-develop + - 3.7.1 Keep-Alive: - timeout=15, max=96 Strict-Transport-Security: - max-age=631139040; includeSubdomains - Transfer-Encoding: - - chunked X-Content-Type-Options: - nosniff X-Download-Options: @@ -303,14 +303,14 @@ interactions: uri: https://foreman.example.org/katello/api/content_views/7/publish response: body: - string: ' {"id":"68537d8c-9473-4a09-bb99-3aa15cef65b3","label":"Actions::Katello::ContentView::Publish","pending":true,"action":"Publish - content view ''convert2rhel_centos7''; organization ''Test Organization''","username":"admin","started_at":"2023-06-21 - 13:29:04 UTC","ended_at":null,"state":"planned","result":"pending","progress":0.0,"input":{"content_view":{"id":7,"name":"convert2rhel_centos7","label":"convert2rhel_centos7"},"organization":{"id":5,"name":"Test - Organization","label":"Test_Organization"},"services_checked":["pulp3","candlepin","candlepin_auth"],"history_id":4,"content_view_id":7,"auto_publish_composite_ids":[],"content_view_version_name":"convert2rhel_centos7 - 1.0","content_view_version_id":7,"environment_id":3,"user_id":4,"skip_promotion":null,"current_request_id":"a3f2a82e-4ec7-41ca-b1d7-f31e11e8189d","current_timezone":"UTC","current_organization_id":null,"current_location_id":null,"current_user_id":4},"output":{},"humanized":{"action":"Publish","input":[["content_view",{"text":"content - view ''convert2rhel_centos7''","link":"/content_views/7/versions"}],["organization",{"text":"organization - ''Test Organization''","link":"/organizations/5/edit"}]],"output":"","errors":[]},"cli_example":null,"start_at":"2023-06-21 - 13:29:04 UTC","available_actions":{"cancellable":false,"resumable":false}} + string: ' {"id":"d2db03ba-2aac-4798-820f-291d47e10bcc","label":"Actions::Katello::ContentView::Publish","pending":true,"action":"Publish + content view ''convert2rhel_centos8''; organization ''Test Organization''","username":"admin","started_at":"2023-11-13 + 09:24:53 UTC","ended_at":null,"state":"planned","result":"pending","progress":0.0,"input":{"content_view":{"id":7,"name":"convert2rhel_centos8","label":"convert2rhel_centos8"},"organization":{"id":4,"name":"Test + Organization","label":"Test_Organization"},"services_checked":["pulp3","candlepin","candlepin_auth"],"history_id":7,"content_view_id":7,"auto_publish_composite_ids":[],"content_view_version_name":"convert2rhel_centos8 + 1.0","content_view_version_id":7,"environment_id":3,"user_id":4,"skip_promotion":null,"current_request_id":"af1bc64e-4615-4d83-a6b3-11a6ae8b2de5","current_timezone":"UTC","current_organization_id":null,"current_location_id":null,"current_user_id":4},"output":{},"humanized":{"action":"Publish","input":[["content_view",{"text":"content + view ''convert2rhel_centos8''","link":"/content_views/7/versions"}],["organization",{"text":"organization + ''Test Organization''","link":"/organizations/4/edit"}]],"output":"","errors":[]},"cli_example":null,"start_at":"2023-11-13 + 09:24:53 UTC","available_actions":{"cancellable":false,"resumable":false}} ' headers: @@ -331,7 +331,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-develop + - 3.7.1 Keep-Alive: - timeout=15, max=95 Strict-Transport-Security: @@ -363,22 +363,24 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/foreman_tasks/api/tasks/68537d8c-9473-4a09-bb99-3aa15cef65b3 + uri: https://foreman.example.org/foreman_tasks/api/tasks/d2db03ba-2aac-4798-820f-291d47e10bcc response: body: - string: '{"id":"68537d8c-9473-4a09-bb99-3aa15cef65b3","label":"Actions::Katello::ContentView::Publish","pending":false,"action":"Publish - content view ''convert2rhel_centos7''; organization ''Test Organization''","username":"admin","started_at":"2023-06-21 - 13:29:04 UTC","ended_at":"2023-06-21 13:29:09 UTC","duration":"4.975368","state":"stopped","result":"success","progress":1.0,"input":{"content_view":{"id":7,"name":"convert2rhel_centos7","label":"convert2rhel_centos7"},"organization":{"id":5,"name":"Test - Organization","label":"Test_Organization"},"services_checked":["pulp3","candlepin","candlepin_auth"],"history_id":4,"content_view_id":7,"auto_publish_composite_ids":[],"content_view_version_name":"convert2rhel_centos7 - 1.0","content_view_version_id":7,"environment_id":3,"user_id":4,"skip_promotion":null,"current_request_id":"a3f2a82e-4ec7-41ca-b1d7-f31e11e8189d","current_timezone":"UTC","current_organization_id":null,"current_location_id":null,"current_user_id":4},"output":{"content_view_id":7,"content_view_version_id":7,"skip_promotion":null,"history_id":4},"humanized":{"action":"Publish","input":[["content_view",{"text":"content - view ''convert2rhel_centos7''","link":"/content_views/7/versions"}],["organization",{"text":"organization - ''Test Organization''","link":"/organizations/5/edit"}]],"output":"","errors":[]},"cli_example":null,"start_at":"2023-06-21 - 13:29:04 UTC","available_actions":{"cancellable":false,"resumable":false}}' + string: '{"id":"d2db03ba-2aac-4798-820f-291d47e10bcc","label":"Actions::Katello::ContentView::Publish","pending":false,"action":"Publish + content view ''convert2rhel_centos8''; organization ''Test Organization''","username":"admin","started_at":"2023-11-13 + 09:24:53 UTC","ended_at":"2023-11-13 09:24:55 UTC","duration":"2.550393","state":"stopped","result":"success","progress":1.0,"input":{"content_view":{"id":7,"name":"convert2rhel_centos8","label":"convert2rhel_centos8"},"organization":{"id":4,"name":"Test + Organization","label":"Test_Organization"},"services_checked":["pulp3","candlepin","candlepin_auth"],"history_id":7,"content_view_id":7,"auto_publish_composite_ids":[],"content_view_version_name":"convert2rhel_centos8 + 1.0","content_view_version_id":7,"environment_id":3,"user_id":4,"skip_promotion":null,"current_request_id":"af1bc64e-4615-4d83-a6b3-11a6ae8b2de5","current_timezone":"UTC","current_organization_id":null,"current_location_id":null,"current_user_id":4},"output":{"content_view_id":7,"content_view_version_id":7,"skip_promotion":null,"history_id":7},"humanized":{"action":"Publish","input":[["content_view",{"text":"content + view ''convert2rhel_centos8''","link":"/content_views/7/versions"}],["organization",{"text":"organization + ''Test Organization''","link":"/organizations/4/edit"}]],"output":"","errors":[]},"cli_example":null,"start_at":"2023-11-13 + 09:24:53 UTC","available_actions":{"cancellable":false,"resumable":false}}' headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive + Content-Length: + - '1436' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -392,13 +394,11 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-develop + - 3.7.1 Keep-Alive: - timeout=15, max=94 Strict-Transport-Security: - max-age=631139040; includeSubdomains - Transfer-Encoding: - - chunked X-Content-Type-Options: - nosniff X-Download-Options: @@ -427,19 +427,19 @@ interactions: uri: https://foreman.example.org/katello/api/content_view_versions/7 response: body: - string: ' {"version":"1.0","major":1,"minor":0,"composite_content_view_ids":[],"published_in_composite_content_view_ids":[],"content_view_id":7,"default":false,"description":null,"id":7,"name":"convert2rhel_centos7 - 1.0","created_at":"2023-06-21 13:29:05 UTC","updated_at":"2023-06-21 13:29:09 - UTC","content_view":{"id":7,"name":"convert2rhel_centos7","label":"convert2rhel_centos7","generated_for":"none"},"composite_content_views":[],"composite_content_view_versions":[],"published_in_composite_content_views":[],"environments":[{"id":3,"name":"Library","label":"Library","publish_date":"less - than a minute","permissions":{"readable":true,"promotable_or_removable":true,"all_hosts_editable":true,"all_keys_editable":true},"host_count":0,"activation_key_count":0}],"repositories":[{"id":20,"name":"Convert2RHEL7 - main","label":"Convert2RHEL7_main","content_type":"yum","library_instance_id":16}],"last_event":{"user":"admin","status":"successful","description":null,"action":"publish","created_at":"2023-06-21 - 13:29:05 UTC","updated_at":"2023-06-21 13:29:09 UTC","environment":null,"task":{"id":"68537d8c-9473-4a09-bb99-3aa15cef65b3","label":"Actions::Katello::ContentView::Publish","pending":false,"action":"Publish - content view ''convert2rhel_centos7''; organization ''Test Organization''","username":"admin","started_at":"2023-06-21 - 13:29:04 UTC","ended_at":"2023-06-21 13:29:09 UTC","state":"stopped","result":"success","progress":1.0,"input":{"content_view":{"id":7,"name":"convert2rhel_centos7","label":"convert2rhel_centos7"},"organization":{"id":5,"name":"Test - Organization","label":"Test_Organization"},"services_checked":["pulp3","candlepin","candlepin_auth"],"history_id":4,"content_view_id":7,"auto_publish_composite_ids":[],"content_view_version_name":"convert2rhel_centos7 - 1.0","content_view_version_id":7,"environment_id":3,"user_id":4,"skip_promotion":null,"current_request_id":"a3f2a82e-4ec7-41ca-b1d7-f31e11e8189d","current_timezone":"UTC","current_organization_id":null,"current_location_id":null,"current_user_id":4},"output":{"content_view_id":7,"content_view_version_id":7,"skip_promotion":null,"history_id":4},"humanized":{"action":"Publish","input":[["content_view",{"text":"content - view ''convert2rhel_centos7''","link":"/content_views/7/versions"}],["organization",{"text":"organization - ''Test Organization''","link":"/organizations/5/edit"}]],"output":"","errors":[]},"cli_example":null,"start_at":"2023-06-21 - 13:29:04 UTC","available_actions":{"cancellable":false,"resumable":false}},"version":"1.0","publish":true,"version_id":7,"triggered_by":null,"triggered_by_id":null},"active_history":[],"rpm_count":9,"modulemd_count":0,"erratum_count":9,"package_group_count":0,"srpm_count":0,"ansible_collection_count":0,"docker_manifest_count":0,"docker_manifest_list_count":0,"docker_tag_count":0,"file_count":0,"module_stream_count":0,"package_count":9,"component_view_count":0,"docker_repository_count":0,"file_repository_count":0,"yum_repository_count":1,"ansible_collection_repository_count":0,"errata_counts":{"security":2,"bugfix":1,"enhancement":6,"total":9},"permissions":{"deletable":true}} + string: ' {"version":"1.0","major":1,"minor":0,"composite_content_view_ids":[],"published_in_composite_content_view_ids":[],"content_view_id":7,"default":false,"description":null,"id":7,"name":"convert2rhel_centos8 + 1.0","created_at":"2023-11-13 09:24:53 UTC","updated_at":"2023-11-13 09:24:55 + UTC","content_view":{"id":7,"name":"convert2rhel_centos8","label":"convert2rhel_centos8","generated_for":"none"},"composite_content_views":[],"composite_content_view_versions":[],"published_in_composite_content_views":[],"environments":[{"id":3,"name":"Library","label":"Library","publish_date":"less + than a minute","permissions":{"readable":true,"promotable_or_removable":true,"all_hosts_editable":true,"all_keys_editable":true},"host_count":0,"activation_key_count":0}],"repositories":[{"id":15,"name":"Convert2RHEL8 + main","label":"Convert2RHEL8_main","content_type":"yum","library_instance_id":10,"mirroring_policy":"mirror_content_only"}],"last_event":{"user":"admin","status":"successful","description":null,"action":"publish","created_at":"2023-11-13 + 09:24:53 UTC","updated_at":"2023-11-13 09:24:55 UTC","environment":null,"task":{"id":"d2db03ba-2aac-4798-820f-291d47e10bcc","label":"Actions::Katello::ContentView::Publish","pending":false,"action":"Publish + content view ''convert2rhel_centos8''; organization ''Test Organization''","username":"admin","started_at":"2023-11-13 + 09:24:53 UTC","ended_at":"2023-11-13 09:24:55 UTC","state":"stopped","result":"success","progress":1.0,"input":{"content_view":{"id":7,"name":"convert2rhel_centos8","label":"convert2rhel_centos8"},"organization":{"id":4,"name":"Test + Organization","label":"Test_Organization"},"services_checked":["pulp3","candlepin","candlepin_auth"],"history_id":7,"content_view_id":7,"auto_publish_composite_ids":[],"content_view_version_name":"convert2rhel_centos8 + 1.0","content_view_version_id":7,"environment_id":3,"user_id":4,"skip_promotion":null,"current_request_id":"af1bc64e-4615-4d83-a6b3-11a6ae8b2de5","current_timezone":"UTC","current_organization_id":null,"current_location_id":null,"current_user_id":4},"output":{"content_view_id":7,"content_view_version_id":7,"skip_promotion":null,"history_id":7},"humanized":{"action":"Publish","input":[["content_view",{"text":"content + view ''convert2rhel_centos8''","link":"/content_views/7/versions"}],["organization",{"text":"organization + ''Test Organization''","link":"/organizations/4/edit"}]],"output":"","errors":[]},"cli_example":null,"start_at":"2023-11-13 + 09:24:53 UTC","available_actions":{"cancellable":false,"resumable":false}},"version":"1.0","publish":true,"version_id":7,"triggered_by":null,"triggered_by_id":null},"active_history":[],"ansible_collection_count":0,"deb_count":0,"docker_manifest_count":0,"docker_manifest_list_count":0,"docker_tag_count":0,"file_count":0,"python_package_count":0,"rpm_count":12,"modulemd_count":0,"erratum_count":12,"package_group_count":0,"srpm_count":0,"module_stream_count":0,"package_count":12,"component_view_count":0,"ansible_collection_repository_count":0,"deb_repository_count":0,"docker_repository_count":0,"file_repository_count":0,"python_repository_count":0,"yum_repository_count":1,"errata_counts":{"security":2,"bugfix":2,"enhancement":8,"total":12},"permissions":{"deletable":true},"filters_applied":false} ' headers: @@ -447,6 +447,8 @@ interactions: - max-age=0, private, must-revalidate Connection: - Keep-Alive + Content-Length: + - '3266' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -460,13 +462,11 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-develop + - 3.7.1 Keep-Alive: - timeout=15, max=93 Strict-Transport-Security: - max-age=631139040; includeSubdomains - Transfer-Encoding: - - chunked X-Content-Type-Options: - nosniff X-Download-Options: diff --git a/tests/test_playbooks/fixtures/convert2rhel-16.yml b/tests/test_playbooks/fixtures/convert2rhel-16.yml index da3479cdb..9363f2d2f 100644 --- a/tests/test_playbooks/fixtures/convert2rhel-16.yml +++ b/tests/test_playbooks/fixtures/convert2rhel-16.yml @@ -14,12 +14,14 @@ interactions: uri: https://foreman.example.org/api/status response: body: - string: '{"satellite_version":"6.14.0","result":"ok","status":200,"version":"3.7.0-develop","api_version":2}' + string: '{"result":"ok","status":200,"version":"3.7.1","api_version":2}' headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive + Content-Length: + - '102' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -33,13 +35,11 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-develop + - 3.7.1 Keep-Alive: - timeout=15, max=100 Strict-Transport-Security: - max-age=631139040; includeSubdomains - Transfer-Encoding: - - chunked X-Content-Type-Options: - nosniff X-Download-Options: @@ -68,16 +68,18 @@ interactions: uri: https://foreman.example.org/katello/api/organizations?search=name%3D%22Test+Organization%22&per_page=4294967296 response: body: - string: "{\n \"total\": 3,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": + string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": 4294967296,\n \"search\": \"name=\\\"Test Organization\\\"\",\n \"sort\": - {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\":\"Test_Organization\",\"created_at\":\"2023-06-21 - 13:24:35 UTC\",\"updated_at\":\"2023-06-21 13:24:38 UTC\",\"id\":5,\"name\":\"Test + {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\":\"Test_Organization\",\"created_at\":\"2023-11-13 + 09:23:21 UTC\",\"updated_at\":\"2023-11-13 09:23:23 UTC\",\"id\":4,\"name\":\"Test Organization\",\"title\":\"Test Organization\",\"description\":\"A test organization\"}]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive + Content-Length: + - '388' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -91,127 +93,11 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-develop + - 3.7.1 Keep-Alive: - timeout=15, max=99 Strict-Transport-Security: - max-age=631139040; includeSubdomains - Transfer-Encoding: - - chunked - X-Content-Type-Options: - - nosniff - X-Download-Options: - - noopen - X-Frame-Options: - - sameorigin - X-Permitted-Cross-Domain-Policies: - - none - X-XSS-Protection: - - 1; mode=block - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json;version=2 - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - apypie (https://github.com/Apipie/apypie) - method: GET - uri: https://foreman.example.org/katello/api/organizations/5/content_views?search=name%3D%22convert2rhel_centos8%22&per_page=4294967296 - response: - body: - string: '{"total":2,"subtotal":0,"selectable":0,"page":1,"per_page":"4294967296","error":null,"search":"name=\"convert2rhel_centos8\"","sort":{"by":"name","order":"asc"},"results":[]} - - ' - headers: - Cache-Control: - - max-age=0, private, must-revalidate - Connection: - - Keep-Alive - Content-Security-Policy: - - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; - style-src ''unsafe-inline'' ''self''' - Content-Type: - - application/json; charset=utf-8 - Foreman_api_version: - - '2' - Foreman_current_location: - - ; ANY - Foreman_current_organization: - - 5; Test Organization - Foreman_version: - - 3.7.0-develop - Keep-Alive: - - timeout=15, max=98 - Strict-Transport-Security: - - max-age=631139040; includeSubdomains - Transfer-Encoding: - - chunked - X-Content-Type-Options: - - nosniff - X-Download-Options: - - noopen - X-Frame-Options: - - sameorigin - X-Permitted-Cross-Domain-Policies: - - none - X-XSS-Protection: - - 1; mode=block - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json;version=2 - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - apypie (https://github.com/Apipie/apypie) - method: GET - uri: https://foreman.example.org/katello/api/organizations/5/products?search=name%3D%22Convert2RHEL8%22&per_page=4294967296 - response: - body: - string: '{"total":4,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Convert2RHEL8\"","sort":{"by":"name","order":"asc"},"results":[{"id":31,"cp_id":"323154019581","name":"Convert2RHEL8","label":"Convert2RHEL8","description":null,"provider_id":5,"sync_plan_id":null,"sync_summary":{"success":1},"gpg_key_id":null,"ssl_ca_cert_id":null,"ssl_client_cert_id":null,"ssl_client_key_id":null,"sync_state":"Syncing - Complete.","last_sync":"2023-06-21 13:25:42 UTC","last_sync_words":"4 minutes","organization_id":5,"organization":{"name":"Test - Organization","label":"Test_Organization","id":5},"sync_plan":null,"repository_count":1}]} - - ' - headers: - Cache-Control: - - max-age=0, private, must-revalidate - Connection: - - Keep-Alive - Content-Security-Policy: - - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; - style-src ''unsafe-inline'' ''self''' - Content-Type: - - application/json; charset=utf-8 - Foreman_api_version: - - '2' - Foreman_current_location: - - ; ANY - Foreman_current_organization: - - 5; Test Organization - Foreman_version: - - 3.7.0-develop - Keep-Alive: - - timeout=15, max=97 - Strict-Transport-Security: - - max-age=631139040; includeSubdomains - Transfer-Encoding: - - chunked X-Content-Type-Options: - nosniff X-Download-Options: @@ -237,23 +123,128 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/products/31/repositories?search=name%3D%22Convert2RHEL8+main%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/organizations/4 response: body: - string: '{"total":1,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Convert2RHEL8 - main\"","sort":{"by":"name","order":"asc"},"results":[{"backend_identifier":"0c2a90e1-6e04-4a91-b722-766e8019ebd4","relative_path":"Test_Organization/Library/custom/Convert2RHEL8/Convert2RHEL8_main","container_repository_name":null,"full_path":"https://sat-r220-03.lab.eng.rdu2.redhat.com/pulp/content/Test_Organization/Library/custom/Convert2RHEL8/Convert2RHEL8_main/","library_instance_id":null,"version_href":"/pulp/api/v3/repositories/rpm/rpm/6e1a575a-2309-4cc5-a001-707432769374/versions/1/","remote_href":"/pulp/api/v3/remotes/rpm/rpm/7b5cdd10-10d1-4221-ac33-5f5eeed9dae9/","publication_href":"/pulp/api/v3/publications/rpm/rpm/d2ed6efb-69ca-4ae9-850a-98c430893a67/","content_counts":{"rpm":9,"erratum":9,"package_group":0,"srpm":0,"module_stream":0},"mirroring_policy":"mirror_content_only","id":17,"name":"Convert2RHEL8 - main","label":"Convert2RHEL8_main","description":null,"content_view_versions":[],"last_sync":{"id":"541c0897-2fb9-4ee9-9422-08ee0b2162ed","username":"admin","started_at":"2023-06-21 - 13:25:42 UTC","ended_at":"2023-06-21 13:25:53 UTC","state":"stopped","result":"success","progress":1.0},"content_view":{"id":6,"name":"Default - Organization View"},"content_view_version":{"id":6,"name":"Default Organization - View 1.0","content_view_id":6},"kt_environment":{"id":3,"name":"Library"},"content_type":"yum","url":"https://cdn.redhat.com/content/public/convert2rhel/8/x86_64/os/","arch":"noarch","os_versions":[],"content_id":"1687353899766","generic_remote_options":null,"major":null,"minor":null,"product":{"id":31,"cp_id":"323154019581","name":"Convert2RHEL8","orphaned":false,"redhat":false,"sync_plan":null},"content_label":"Test_Organization_Convert2RHEL8_Convert2RHEL8_main","last_sync_words":"3 - minutes"}],"org_repository_count":6} - - ' + string: '{"label":"Test_Organization","redhat_repository_url":"https://cdn.redhat.com","system_purposes":{"support_type":[],"usage":[],"roles":[],"addons":[],"support_level":[]},"service_levels":[],"service_level":null,"select_all_types":[],"description":"A + test organization","created_at":"2023-11-13 09:23:21 UTC","updated_at":"2023-11-13 + 09:23:23 UTC","ancestry":null,"parent_id":null,"parent_name":null,"id":4,"name":"Test + Organization","title":"Test Organization","users":[],"smart_proxies":[{"name":"centos8-stream-katello-4-9.tanso.example.com","id":1,"url":"https://centos8-stream-katello-4-9.tanso.example.com:9090","inherited":false}],"subnets":[],"compute_resources":[],"media":[],"ptables":[{"description":null,"os_family":"Suse","created_at":"2023-10-26 + 09:22:56 UTC","updated_at":"2023-10-26 09:22:56 UTC","name":"AutoYaST entire + SCSI disk","id":125,"inherited":false},{"description":null,"os_family":"Suse","created_at":"2023-10-26 + 09:22:56 UTC","updated_at":"2023-10-26 09:22:56 UTC","name":"AutoYaST entire + virtual disk","id":126,"inherited":false},{"description":null,"os_family":"Suse","created_at":"2023-10-26 + 09:22:56 UTC","updated_at":"2023-10-26 09:22:56 UTC","name":"AutoYaST LVM","id":127,"inherited":false},{"description":null,"os_family":"Coreos","created_at":"2023-10-26 + 09:22:56 UTC","updated_at":"2023-10-26 09:22:56 UTC","name":"CoreOS default + fake","id":128,"inherited":false},{"description":null,"os_family":"Rancheros","created_at":"2023-10-26 + 09:22:56 UTC","updated_at":"2023-10-26 09:22:56 UTC","name":"Empty","id":129,"inherited":false},{"description":null,"os_family":"Freebsd","created_at":"2023-10-26 + 09:22:56 UTC","updated_at":"2023-10-26 09:22:56 UTC","name":"FreeBSD default + fake","id":130,"inherited":false},{"description":null,"os_family":"Solaris","created_at":"2023-10-26 + 09:22:56 UTC","updated_at":"2023-10-26 09:22:56 UTC","name":"Jumpstart default","id":131,"inherited":false},{"description":null,"os_family":"Solaris","created_at":"2023-10-26 + 09:22:56 UTC","updated_at":"2023-10-26 09:22:56 UTC","name":"Jumpstart mirrored","id":132,"inherited":false},{"description":null,"os_family":"Junos","created_at":"2023-10-26 + 09:22:56 UTC","updated_at":"2023-10-26 09:22:56 UTC","name":"Junos default + fake","id":133,"inherited":false},{"description":null,"os_family":"Redhat","created_at":"2023-10-26 + 09:22:56 UTC","updated_at":"2023-10-26 09:22:56 UTC","name":"Kickstart custom","id":134,"inherited":false},{"description":null,"os_family":"Redhat","created_at":"2023-10-26 + 09:22:56 UTC","updated_at":"2023-10-26 09:22:56 UTC","name":"Kickstart default","id":135,"inherited":false},{"description":null,"os_family":"Redhat","created_at":"2023-10-26 + 09:22:56 UTC","updated_at":"2023-10-26 09:22:56 UTC","name":"Kickstart default + thin","id":136,"inherited":false},{"description":null,"os_family":"Redhat","created_at":"2023-10-26 + 09:22:56 UTC","updated_at":"2023-10-26 09:22:56 UTC","name":"Kickstart dynamic","id":137,"inherited":false},{"description":null,"os_family":"NXOS","created_at":"2023-10-26 + 09:22:56 UTC","updated_at":"2023-10-26 09:22:56 UTC","name":"NX-OS default + fake","id":138,"inherited":false},{"description":null,"os_family":"Debian","created_at":"2023-10-26 + 09:22:56 UTC","updated_at":"2023-10-26 09:22:56 UTC","name":"Preseed default","id":139,"inherited":false},{"description":"Preseed + Autoinstall default storage snippet configures drives automatically\nwith + LVM. The snippet is automatically indented by 2 spaces. For reference:\nhttps://ubuntu.com/server/docs/install/autoinstall-reference","os_family":"Debian","created_at":"2023-10-26 + 09:22:56 UTC","updated_at":"2023-10-26 09:22:56 UTC","name":"Preseed default + autoinstall","id":140,"inherited":false},{"description":null,"os_family":"Debian","created_at":"2023-10-26 + 09:22:56 UTC","updated_at":"2023-10-26 09:22:56 UTC","name":"Preseed default + LVM","id":141,"inherited":false},{"description":null,"os_family":"Windows","created_at":"2023-10-26 + 09:22:57 UTC","updated_at":"2023-10-26 09:22:57 UTC","name":"Windows default + GPT EFI partition table","id":143,"inherited":false},{"description":null,"os_family":"Windows","created_at":"2023-10-26 + 09:22:56 UTC","updated_at":"2023-10-26 09:22:56 UTC","name":"Windows default + partition table","id":142,"inherited":false},{"description":null,"os_family":"Xenserver","created_at":"2023-10-26 + 09:22:57 UTC","updated_at":"2023-10-26 09:22:57 UTC","name":"XenServer default","id":144,"inherited":false}],"provisioning_templates":[{"id":50,"name":"Alterator + default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":32,"name":"Alterator + default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":13,"name":"Alterator + default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":68,"name":"alterator_pkglist","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":70,"name":"ansible_provisioning_callback","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":72,"name":"ansible_tower_callback_script","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":74,"name":"ansible_tower_callback_service","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":51,"name":"Atomic + Kickstart default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":52,"name":"AutoYaST + default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":41,"name":"AutoYaST + default iPXE","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":2,"name":"AutoYaST + default PXEGrub","template_kind_id":3,"template_kind_name":"PXEGrub","inherited":false},{"id":7,"name":"AutoYaST + default PXEGrub2","template_kind_id":4,"template_kind_name":"PXEGrub2","inherited":false},{"id":14,"name":"AutoYaST + default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":119,"name":"AutoYaST + default user data","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":53,"name":"AutoYaST + SLES default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":76,"name":"blacklist_kernel_modules","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":77,"name":"bmc_nic_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":78,"name":"built","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":79,"name":"chef_client","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":31,"name":"CloudInit + default","template_kind_id":12,"template_kind_name":"cloud-init","inherited":false},{"id":80,"name":"coreos_cloudconfig","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":54,"name":"CoreOS + provision","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":15,"name":"CoreOS + PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":81,"name":"create_users","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":82,"name":"csr_attributes.yaml","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":83,"name":"efibootmgr_netboot","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":84,"name":"eject_cdrom","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":85,"name":"epel","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":86,"name":"fips_packages","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":87,"name":"fix_hosts","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":33,"name":"FreeBSD + (mfsBSD) finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":55,"name":"FreeBSD + (mfsBSD) provision","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":16,"name":"FreeBSD + (mfsBSD) PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":88,"name":"freeipa_register","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":64,"name":"Global + Registration","template_kind_id":13,"template_kind_name":"registration","inherited":false},{"id":66,"name":"Grubby + default","template_kind_id":8,"template_kind_name":"script","inherited":false},{"id":89,"name":"http_proxy","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":90,"name":"insights","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":42,"name":"iPXE + default local boot","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":43,"name":"iPXE + global default","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":44,"name":"iPXE + intermediate script","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":56,"name":"Jumpstart + default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":34,"name":"Jumpstart + default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":3,"name":"Jumpstart + default PXEGrub","template_kind_id":3,"template_kind_name":"PXEGrub","inherited":false},{"id":35,"name":"Junos + default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":57,"name":"Junos + default SLAX","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":30,"name":"Junos + default ZTP config","template_kind_id":10,"template_kind_name":"ZTP","inherited":false},{"id":58,"name":"Kickstart + default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":36,"name":"Kickstart + default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":45,"name":"Kickstart + default iPXE","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":4,"name":"Kickstart + default PXEGrub","template_kind_id":3,"template_kind_name":"PXEGrub","inherited":false},{"id":8,"name":"Kickstart + default PXEGrub2","template_kind_id":4,"template_kind_name":"PXEGrub2","inherited":false},{"id":17,"name":"Kickstart + default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":120,"name":"Kickstart + default user data","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":94,"name":"kickstart_ifcfg_bonded_interface","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":92,"name":"kickstart_ifcfg_bond_interface","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":96,"name":"kickstart_ifcfg_generic_interface","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":98,"name":"kickstart_ifcfg_get_identifier_names","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":100,"name":"kickstart_kernel_options","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":101,"name":"kickstart_networking_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":59,"name":"Kickstart + oVirt-RHVH","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":18,"name":"Kickstart + oVirt-RHVH PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":102,"name":"kickstart_rhsm","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":40,"name":"Linux + host_init_config default","template_kind_id":1,"template_kind_name":"host_init_config","inherited":false},{"id":103,"name":"ntp","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":1,"name":"NX-OS + default POAP setup","template_kind_id":11,"template_kind_name":"POAP","inherited":false},{"id":104,"name":"pkg_manager","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":121,"name":"Preseed + Autoinstall cloud-init user data","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":60,"name":"Preseed + default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":37,"name":"Preseed + default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":46,"name":"Preseed + default iPXE","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":47,"name":"Preseed + default iPXE Autoinstall","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":9,"name":"Preseed + default PXEGrub2","template_kind_id":4,"template_kind_name":"PXEGrub2","inherited":false},{"id":10,"name":"Preseed + default PXEGrub2 Autoinstall","template_kind_id":4,"template_kind_name":"PXEGrub2","inherited":false},{"id":19,"name":"Preseed + default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":20,"name":"Preseed + default PXELinux Autoinstall","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":122,"name":"Preseed + default user data","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":105,"name":"preseed_kernel_options","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":107,"name":"preseed_kernel_options_autoinstall","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":109,"name":"preseed_netplan_generic_interface","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":110,"name":"preseed_netplan_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":111,"name":"preseed_networking_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":112,"name":"puppet.conf","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":114,"name":"puppetlabs_repo","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":113,"name":"puppet_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":115,"name":"pxegrub2_chainload","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":11,"name":"PXEGrub2 + default local boot","template_kind_id":4,"template_kind_name":"PXEGrub2","inherited":false},{"id":116,"name":"pxegrub2_discovery","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":12,"name":"PXEGrub2 + global default","template_kind_id":4,"template_kind_name":"PXEGrub2","inherited":false},{"id":117,"name":"pxegrub2_mac","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":118,"name":"pxegrub_chainload","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":5,"name":"PXEGrub + default local boot","template_kind_id":3,"template_kind_name":"PXEGrub","inherited":false},{"id":93,"name":"pxegrub_discovery","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":6,"name":"PXEGrub + global default","template_kind_id":3,"template_kind_name":"PXEGrub","inherited":false},{"id":21,"name":"PXELinux + chain iPXE","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":22,"name":"PXELinux + chain iPXE UNDI","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":95,"name":"pxelinux_chainload","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":23,"name":"PXELinux + default local boot","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":24,"name":"PXELinux + default memdisk","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":97,"name":"pxelinux_discovery","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":25,"name":"PXELinux + global default","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":106,"name":"rancheros_cloudconfig","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":61,"name":"RancherOS + provision","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":26,"name":"RancherOS + PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":108,"name":"redhat_register","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":65,"name":"remote_execution_pull_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":69,"name":"remote_execution_ssh_keys","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":71,"name":"saltstack_minion","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":75,"name":"saltstack_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":73,"name":"schedule_reboot","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":123,"name":"UserData + default","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":124,"name":"UserData + open-vm-tools","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":27,"name":"WAIK + default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":38,"name":"Windows + default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":48,"name":"Windows + default iPXE","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":49,"name":"Windows + default iPXE httpboot","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":62,"name":"Windows + default provision","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":28,"name":"Windows + default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":91,"name":"Windows + network","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":67,"name":"Windows + peSetup.cmd","template_kind_id":8,"template_kind_name":"script","inherited":false},{"id":63,"name":"XenServer + default answerfile","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":39,"name":"XenServer + default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":29,"name":"XenServer + default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":99,"name":"yum_proxy","template_kind_id":null,"template_kind_name":null,"inherited":false}],"domains":[],"realms":[],"hostgroups":[],"locations":[{"id":2,"name":"Default + Location","title":"Default Location","description":null}],"hosts_count":0,"parameters":[],"deprecations":{"environments":"Environments + got deprecated from this endpoint."},"simple_content_access":true,"owner_details":{"id":"4028fa468bc7e353018bc7fe1f8b0029","key":"Test_Organization","created":"2023-11-13T09:23:22+0000","updated":"2023-11-13T09:24:55+0000","lastRefreshed":null,"virt_who":false,"upstreamConsumer":null},"cdn_configuration":{"url":"https://cdn.redhat.com","username":null,"upstream_organization_label":null,"ssl_ca_credential_id":null,"upstream_content_view_label":null,"upstream_lifecycle_environment_label":null,"type":"redhat_cdn","password_exists":false},"default_content_view_id":5,"composite_content_views_count":null,"content_view_components_count":null,"library_id":3}' headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive + Content-Length: + - '19082' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -267,13 +258,11 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-develop + - 3.7.1 Keep-Alive: - - timeout=15, max=96 + - timeout=15, max=98 Strict-Transport-Security: - max-age=631139040; includeSubdomains - Transfer-Encoding: - - chunked X-Content-Type-Options: - nosniff X-Download-Options: @@ -287,68 +276,4 @@ interactions: status: code: 200 message: OK -- request: - body: '{"name": "convert2rhel_centos8", "composite": false, "repository_ids": - [17], "auto_publish": false}' - headers: - Accept: - - application/json;version=2 - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '99' - Content-Type: - - application/json - User-Agent: - - apypie (https://github.com/Apipie/apypie) - method: POST - uri: https://foreman.example.org/katello/api/organizations/5/content_views - response: - body: - string: ' {"content_host_count":0,"composite":false,"component_ids":[],"default":false,"version_count":0,"latest_version":null,"latest_version_id":null,"auto_publish":false,"solve_dependencies":false,"import_only":false,"generated_for":"none","related_cv_count":0,"related_composite_cvs":[],"repository_ids":[17],"id":8,"name":"convert2rhel_centos8","label":"convert2rhel_centos8","description":null,"organization_id":5,"organization":{"name":"Test - Organization","label":"Test_Organization","id":5},"created_at":"2023-06-21 - 13:29:13 UTC","updated_at":"2023-06-21 13:29:13 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":17,"name":"Convert2RHEL8 - main","label":"Convert2RHEL8_main","content_type":"yum"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[],"duplicate_repositories_to_publish":[],"errors":null} - - ' - headers: - Cache-Control: - - max-age=0, private, must-revalidate - Connection: - - Keep-Alive - Content-Security-Policy: - - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; - style-src ''unsafe-inline'' ''self''' - Content-Type: - - application/json; charset=utf-8 - Foreman_api_version: - - '2' - Foreman_current_location: - - ; ANY - Foreman_current_organization: - - 5; Test Organization - Foreman_version: - - 3.7.0-develop - Keep-Alive: - - timeout=15, max=95 - Strict-Transport-Security: - - max-age=631139040; includeSubdomains - Transfer-Encoding: - - chunked - X-Content-Type-Options: - - nosniff - X-Download-Options: - - noopen - X-Frame-Options: - - sameorigin - X-Permitted-Cross-Domain-Policies: - - none - X-XSS-Protection: - - 1; mode=block - status: - code: 201 - message: Created version: 1 diff --git a/tests/test_playbooks/fixtures/convert2rhel-17.yml b/tests/test_playbooks/fixtures/convert2rhel-17.yml index 412336076..fa958350c 100644 --- a/tests/test_playbooks/fixtures/convert2rhel-17.yml +++ b/tests/test_playbooks/fixtures/convert2rhel-17.yml @@ -14,12 +14,14 @@ interactions: uri: https://foreman.example.org/api/status response: body: - string: '{"satellite_version":"6.14.0","result":"ok","status":200,"version":"3.7.0-develop","api_version":2}' + string: '{"result":"ok","status":200,"version":"3.7.1","api_version":2}' headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive + Content-Length: + - '102' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -33,13 +35,11 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-develop + - 3.7.1 Keep-Alive: - timeout=15, max=100 Strict-Transport-Security: - max-age=631139040; includeSubdomains - Transfer-Encoding: - - chunked X-Content-Type-Options: - nosniff X-Download-Options: @@ -68,16 +68,18 @@ interactions: uri: https://foreman.example.org/katello/api/organizations?search=name%3D%22Test+Organization%22&per_page=4294967296 response: body: - string: "{\n \"total\": 3,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": + string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": 4294967296,\n \"search\": \"name=\\\"Test Organization\\\"\",\n \"sort\": - {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\":\"Test_Organization\",\"created_at\":\"2023-06-21 - 13:24:35 UTC\",\"updated_at\":\"2023-06-21 13:24:38 UTC\",\"id\":5,\"name\":\"Test + {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\":\"Test_Organization\",\"created_at\":\"2023-11-13 + 09:23:21 UTC\",\"updated_at\":\"2023-11-13 09:23:23 UTC\",\"id\":4,\"name\":\"Test Organization\",\"title\":\"Test Organization\",\"description\":\"A test organization\"}]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive + Content-Length: + - '388' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -91,13 +93,11 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-develop + - 3.7.1 Keep-Alive: - timeout=15, max=99 Strict-Transport-Security: - max-age=631139040; includeSubdomains - Transfer-Encoding: - - chunked X-Content-Type-Options: - nosniff X-Download-Options: @@ -123,13 +123,10 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/organizations/5/content_views?search=name%3D%22convert2rhel_centos8%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/organizations/4/activation_keys?search=name%3D%22convert2rhel_centos7%22&per_page=4294967296 response: body: - string: '{"total":3,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"convert2rhel_centos8\"","sort":{"by":"name","order":"asc"},"results":[{"composite":false,"component_ids":[],"default":false,"version_count":0,"latest_version":null,"latest_version_id":null,"auto_publish":false,"solve_dependencies":false,"import_only":false,"generated_for":"none","related_cv_count":0,"related_composite_cvs":[],"repository_ids":[17],"id":8,"name":"convert2rhel_centos8","label":"convert2rhel_centos8","description":null,"organization_id":5,"organization":{"name":"Test - Organization","label":"Test_Organization","id":5},"created_at":"2023-06-21 - 13:29:13 UTC","updated_at":"2023-06-21 13:29:13 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":17,"name":"Convert2RHEL8 - main","label":"Convert2RHEL8_main","content_type":"yum"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]}]} + string: '{"total":0,"subtotal":0,"selectable":0,"page":1,"per_page":"4294967296","error":null,"search":"name=\"convert2rhel_centos7\"","sort":{"by":"name","order":"asc"},"results":[]} ' headers: @@ -137,6 +134,8 @@ interactions: - max-age=0, private, must-revalidate Connection: - Keep-Alive + Content-Length: + - '175' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -148,15 +147,13 @@ interactions: Foreman_current_location: - ; ANY Foreman_current_organization: - - 5; Test Organization + - 4; Test Organization Foreman_version: - - 3.7.0-develop + - 3.7.1 Keep-Alive: - timeout=15, max=98 Strict-Transport-Security: - max-age=631139040; includeSubdomains - Transfer-Encoding: - - chunked X-Content-Type-Options: - nosniff X-Download-Options: @@ -182,10 +179,12 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/content_view_versions?search=content_view_id%3D8%2Cversion%3D1.0&per_page=4294967296 + uri: https://foreman.example.org/katello/api/organizations/4/environments?search=name%3D%22Library%22&per_page=4294967296 response: body: - string: '{"total":7,"subtotal":0,"selectable":0,"page":1,"per_page":"4294967296","error":null,"search":"content_view_id=8,version=1.0","sort":{"by":"version","order":"desc"},"results":[]} + string: '{"total":1,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Library\"","sort":{"by":"name","order":"asc"},"results":[{"library":true,"registry_name_pattern":null,"registry_unauthenticated_pull":false,"id":3,"name":"Library","label":"Library","description":null,"organization_id":4,"organization":{"name":"Test + Organization","label":"Test_Organization","id":4},"created_at":"2023-11-13 + 09:23:22 UTC","updated_at":"2023-11-13 09:23:22 UTC","prior":null,"successor":null,"counts":{"content_hosts":0,"content_views":2,"packages":1782,"module_streams":0,"errata":{"security":4,"bugfix":4,"enhancement":16,"total":24},"yum_repositories":4,"docker_repositories":0,"ostree_repositories":0,"products":4,"debs":0,"deb_repositories":0},"permissions":{"create_lifecycle_environments":true,"view_lifecycle_environments":true,"edit_lifecycle_environments":true,"destroy_lifecycle_environments":false,"promote_or_remove_content_views_to_environments":true},"content_views":[{"name":"convert2rhel_centos7","id":6},{"name":"convert2rhel_centos8","id":7}]}]} ' headers: @@ -193,6 +192,8 @@ interactions: - max-age=0, private, must-revalidate Connection: - Keep-Alive + Content-Length: + - '1083' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -204,15 +205,13 @@ interactions: Foreman_current_location: - ; ANY Foreman_current_organization: - - ; ANY + - 4; Test Organization Foreman_version: - - 3.7.0-develop + - 3.7.1 Keep-Alive: - timeout=15, max=97 Strict-Transport-Security: - max-age=631139040; includeSubdomains - Transfer-Encoding: - - chunked X-Content-Type-Options: - nosniff X-Download-Options: @@ -238,12 +237,16 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/organizations/5/environments?search=name%3D%22Library%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/organizations/4/content_views?search=name%3D%22convert2rhel_centos7%22&per_page=4294967296 response: body: - string: '{"total":1,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Library\"","sort":{"by":"name","order":"asc"},"results":[{"library":true,"registry_name_pattern":null,"registry_unauthenticated_pull":false,"id":3,"name":"Library","label":"Library","description":null,"organization_id":5,"organization":{"name":"Test - Organization","label":"Test_Organization","id":5},"created_at":"2023-06-21 - 13:24:36 UTC","updated_at":"2023-06-21 13:24:36 UTC","prior":null,"successor":null,"counts":{"content_hosts":0,"content_views":1,"packages":1773,"module_streams":0,"errata":{"security":4,"bugfix":2,"enhancement":12,"total":18},"yum_repositories":4,"docker_repositories":0,"ostree_repositories":0,"products":4,"debs":0,"deb_repositories":0},"permissions":{"create_lifecycle_environments":true,"view_lifecycle_environments":true,"edit_lifecycle_environments":true,"destroy_lifecycle_environments":false,"promote_or_remove_content_views_to_environments":true},"content_views":[{"name":"convert2rhel_centos7","id":7}]}]} + string: '{"total":3,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"convert2rhel_centos7\"","sort":{"by":"name","order":"asc"},"results":[{"composite":false,"component_ids":[],"default":false,"version_count":1,"latest_version":"1.0","latest_version_id":6,"auto_publish":false,"solve_dependencies":false,"import_only":false,"generated_for":"none","related_cv_count":0,"related_composite_cvs":[],"needs_publish":false,"filtered":false,"repository_ids":[9],"id":6,"name":"convert2rhel_centos7","label":"convert2rhel_centos7","description":null,"organization_id":4,"organization":{"name":"Test + Organization","label":"Test_Organization","id":4},"created_at":"2023-11-13 + 09:24:46 UTC","updated_at":"2023-11-13 09:24:47 UTC","last_task":{"id":"cde4e2e9-d82a-4eb4-95d5-736bb355f4d7","started_at":"2023-11-13 + 09:24:47 UTC","result":"success","last_sync_words":"less than a minute"},"latest_version_environments":[{"id":3,"name":"Library","label":"Library"}],"repositories":[{"id":9,"name":"Convert2RHEL7 + main","label":"Convert2RHEL7_main","content_type":"yum"}],"versions":[{"id":6,"version":"1.0","published":"2023-11-13 + 09:24:47 UTC","environment_ids":[3],"filters_applied":false}],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"2.0","last_published":"2023-11-13 + 09:24:47 UTC","environments":[{"id":3,"label":"Library","name":"Library","activation_keys":[],"hosts":[],"permissions":{"readable":true}}]}]} ' headers: @@ -251,6 +254,8 @@ interactions: - max-age=0, private, must-revalidate Connection: - Keep-Alive + Content-Length: + - '1478' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -262,15 +267,13 @@ interactions: Foreman_current_location: - ; ANY Foreman_current_organization: - - 5; Test Organization + - 4; Test Organization Foreman_version: - - 3.7.0-develop + - 3.7.1 Keep-Alive: - timeout=15, max=96 Strict-Transport-Security: - max-age=631139040; includeSubdomains - Transfer-Encoding: - - chunked X-Content-Type-Options: - nosniff X-Download-Options: @@ -285,7 +288,8 @@ interactions: code: 200 message: OK - request: - body: '{"major": 1, "minor": 0}' + body: '{"organization_id": 4, "name": "convert2rhel_centos7", "environment_id": + 3, "content_view_id": 6}' headers: Accept: - application/json;version=2 @@ -294,152 +298,18 @@ interactions: Connection: - keep-alive Content-Length: - - '24' + - '97' Content-Type: - application/json User-Agent: - apypie (https://github.com/Apipie/apypie) method: POST - uri: https://foreman.example.org/katello/api/content_views/8/publish + uri: https://foreman.example.org/katello/api/activation_keys response: body: - string: ' {"id":"c3de740b-0ca7-465d-9a92-40364091e78a","label":"Actions::Katello::ContentView::Publish","pending":true,"action":"Publish - content view ''convert2rhel_centos8''; organization ''Test Organization''","username":"admin","started_at":"2023-06-21 - 13:29:15 UTC","ended_at":null,"state":"planned","result":"pending","progress":0.0,"input":{"content_view":{"id":8,"name":"convert2rhel_centos8","label":"convert2rhel_centos8"},"organization":{"id":5,"name":"Test - Organization","label":"Test_Organization"},"services_checked":["pulp3","candlepin","candlepin_auth"],"history_id":5,"content_view_id":8,"auto_publish_composite_ids":[],"content_view_version_name":"convert2rhel_centos8 - 1.0","content_view_version_id":8,"environment_id":3,"user_id":4,"skip_promotion":null,"current_request_id":"2c21a757-706f-48f7-bdf2-70c9789db30e","current_timezone":"UTC","current_organization_id":null,"current_location_id":null,"current_user_id":4},"output":{},"humanized":{"action":"Publish","input":[["content_view",{"text":"content - view ''convert2rhel_centos8''","link":"/content_views/8/versions"}],["organization",{"text":"organization - ''Test Organization''","link":"/organizations/5/edit"}]],"output":"","errors":[]},"cli_example":null,"start_at":"2023-06-21 - 13:29:15 UTC","available_actions":{"cancellable":false,"resumable":false}} - - ' - headers: - Cache-Control: - - no-cache - Connection: - - Keep-Alive - Content-Security-Policy: - - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; - style-src ''unsafe-inline'' ''self''' - Content-Type: - - application/json; charset=utf-8 - Foreman_api_version: - - '2' - Foreman_current_location: - - ; ANY - Foreman_current_organization: - - ; ANY - Foreman_version: - - 3.7.0-develop - Keep-Alive: - - timeout=15, max=95 - Strict-Transport-Security: - - max-age=631139040; includeSubdomains - Transfer-Encoding: - - chunked - X-Content-Type-Options: - - nosniff - X-Download-Options: - - noopen - X-Frame-Options: - - sameorigin - X-Permitted-Cross-Domain-Policies: - - none - X-XSS-Protection: - - 1; mode=block - status: - code: 202 - message: Accepted -- request: - body: null - headers: - Accept: - - application/json;version=2 - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - apypie (https://github.com/Apipie/apypie) - method: GET - uri: https://foreman.example.org/foreman_tasks/api/tasks/c3de740b-0ca7-465d-9a92-40364091e78a - response: - body: - string: '{"id":"c3de740b-0ca7-465d-9a92-40364091e78a","label":"Actions::Katello::ContentView::Publish","pending":false,"action":"Publish - content view ''convert2rhel_centos8''; organization ''Test Organization''","username":"admin","started_at":"2023-06-21 - 13:29:15 UTC","ended_at":"2023-06-21 13:29:20 UTC","duration":"4.896754","state":"stopped","result":"success","progress":1.0,"input":{"content_view":{"id":8,"name":"convert2rhel_centos8","label":"convert2rhel_centos8"},"organization":{"id":5,"name":"Test - Organization","label":"Test_Organization"},"services_checked":["pulp3","candlepin","candlepin_auth"],"history_id":5,"content_view_id":8,"auto_publish_composite_ids":[],"content_view_version_name":"convert2rhel_centos8 - 1.0","content_view_version_id":8,"environment_id":3,"user_id":4,"skip_promotion":null,"current_request_id":"2c21a757-706f-48f7-bdf2-70c9789db30e","current_timezone":"UTC","current_organization_id":null,"current_location_id":null,"current_user_id":4},"output":{"content_view_id":8,"content_view_version_id":8,"skip_promotion":null,"history_id":5},"humanized":{"action":"Publish","input":[["content_view",{"text":"content - view ''convert2rhel_centos8''","link":"/content_views/8/versions"}],["organization",{"text":"organization - ''Test Organization''","link":"/organizations/5/edit"}]],"output":"","errors":[]},"cli_example":null,"start_at":"2023-06-21 - 13:29:15 UTC","available_actions":{"cancellable":false,"resumable":false}}' - headers: - Cache-Control: - - max-age=0, private, must-revalidate - Connection: - - Keep-Alive - Content-Security-Policy: - - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; - style-src ''unsafe-inline'' ''self''' - Content-Type: - - application/json; charset=utf-8 - Foreman_api_version: - - '2' - Foreman_current_location: - - ; ANY - Foreman_current_organization: - - ; ANY - Foreman_version: - - 3.7.0-develop - Keep-Alive: - - timeout=15, max=94 - Strict-Transport-Security: - - max-age=631139040; includeSubdomains - Transfer-Encoding: - - chunked - X-Content-Type-Options: - - nosniff - X-Download-Options: - - noopen - X-Frame-Options: - - sameorigin - X-Permitted-Cross-Domain-Policies: - - none - X-XSS-Protection: - - 1; mode=block - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json;version=2 - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - apypie (https://github.com/Apipie/apypie) - method: GET - uri: https://foreman.example.org/katello/api/content_view_versions/8 - response: - body: - string: ' {"version":"1.0","major":1,"minor":0,"composite_content_view_ids":[],"published_in_composite_content_view_ids":[],"content_view_id":8,"default":false,"description":null,"id":8,"name":"convert2rhel_centos8 - 1.0","created_at":"2023-06-21 13:29:15 UTC","updated_at":"2023-06-21 13:29:20 - UTC","content_view":{"id":8,"name":"convert2rhel_centos8","label":"convert2rhel_centos8","generated_for":"none"},"composite_content_views":[],"composite_content_view_versions":[],"published_in_composite_content_views":[],"environments":[{"id":3,"name":"Library","label":"Library","publish_date":"less - than a minute","permissions":{"readable":true,"promotable_or_removable":true,"all_hosts_editable":true,"all_keys_editable":true},"host_count":0,"activation_key_count":0}],"repositories":[{"id":22,"name":"Convert2RHEL8 - main","label":"Convert2RHEL8_main","content_type":"yum","library_instance_id":17}],"last_event":{"user":"admin","status":"successful","description":null,"action":"publish","created_at":"2023-06-21 - 13:29:15 UTC","updated_at":"2023-06-21 13:29:20 UTC","environment":null,"task":{"id":"c3de740b-0ca7-465d-9a92-40364091e78a","label":"Actions::Katello::ContentView::Publish","pending":false,"action":"Publish - content view ''convert2rhel_centos8''; organization ''Test Organization''","username":"admin","started_at":"2023-06-21 - 13:29:15 UTC","ended_at":"2023-06-21 13:29:20 UTC","state":"stopped","result":"success","progress":1.0,"input":{"content_view":{"id":8,"name":"convert2rhel_centos8","label":"convert2rhel_centos8"},"organization":{"id":5,"name":"Test - Organization","label":"Test_Organization"},"services_checked":["pulp3","candlepin","candlepin_auth"],"history_id":5,"content_view_id":8,"auto_publish_composite_ids":[],"content_view_version_name":"convert2rhel_centos8 - 1.0","content_view_version_id":8,"environment_id":3,"user_id":4,"skip_promotion":null,"current_request_id":"2c21a757-706f-48f7-bdf2-70c9789db30e","current_timezone":"UTC","current_organization_id":null,"current_location_id":null,"current_user_id":4},"output":{"content_view_id":8,"content_view_version_id":8,"skip_promotion":null,"history_id":5},"humanized":{"action":"Publish","input":[["content_view",{"text":"content - view ''convert2rhel_centos8''","link":"/content_views/8/versions"}],["organization",{"text":"organization - ''Test Organization''","link":"/organizations/5/edit"}]],"output":"","errors":[]},"cli_example":null,"start_at":"2023-06-21 - 13:29:15 UTC","available_actions":{"cancellable":false,"resumable":false}},"version":"1.0","publish":true,"version_id":8,"triggered_by":null,"triggered_by_id":null},"active_history":[],"rpm_count":9,"modulemd_count":0,"erratum_count":9,"package_group_count":0,"srpm_count":0,"ansible_collection_count":0,"docker_manifest_count":0,"docker_manifest_list_count":0,"docker_tag_count":0,"file_count":0,"module_stream_count":0,"package_count":9,"component_view_count":0,"docker_repository_count":0,"file_repository_count":0,"yum_repository_count":1,"ansible_collection_repository_count":0,"errata_counts":{"security":2,"bugfix":1,"enhancement":6,"total":9},"permissions":{"deletable":true}} + string: ' {"service_level":null,"content_overrides":[],"id":7,"name":"convert2rhel_centos7","description":null,"unlimited_hosts":true,"auto_attach":true,"content_view_id":6,"environment_id":3,"usage_count":0,"user_id":4,"max_hosts":null,"release_version":null,"purpose_usage":null,"purpose_role":null,"organization_id":4,"organization":{"name":"Test + Organization","label":"Test_Organization","id":4},"created_at":"2023-11-13 + 09:24:59 UTC","updated_at":"2023-11-13 09:24:59 UTC","content_view":{"id":6,"name":"convert2rhel_centos7"},"environment":{"name":"Library","id":3},"products":[],"host_collections":[],"purpose_addons":[],"permissions":{"view_activation_keys":true,"edit_activation_keys":true,"destroy_activation_keys":true}} ' headers: @@ -447,6 +317,8 @@ interactions: - max-age=0, private, must-revalidate Connection: - Keep-Alive + Content-Length: + - '724' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -458,15 +330,13 @@ interactions: Foreman_current_location: - ; ANY Foreman_current_organization: - - ; ANY + - 4; Test Organization Foreman_version: - - 3.7.0-develop + - 3.7.1 Keep-Alive: - - timeout=15, max=93 + - timeout=15, max=95 Strict-Transport-Security: - max-age=631139040; includeSubdomains - Transfer-Encoding: - - chunked X-Content-Type-Options: - nosniff X-Download-Options: @@ -478,6 +348,6 @@ interactions: X-XSS-Protection: - 1; mode=block status: - code: 200 - message: OK + code: 201 + message: Created version: 1 diff --git a/tests/test_playbooks/fixtures/convert2rhel-18.yml b/tests/test_playbooks/fixtures/convert2rhel-18.yml index 058f9dd32..e6862727d 100644 --- a/tests/test_playbooks/fixtures/convert2rhel-18.yml +++ b/tests/test_playbooks/fixtures/convert2rhel-18.yml @@ -14,12 +14,14 @@ interactions: uri: https://foreman.example.org/api/status response: body: - string: '{"satellite_version":"6.14.0","result":"ok","status":200,"version":"3.7.0-develop","api_version":2}' + string: '{"result":"ok","status":200,"version":"3.7.1","api_version":2}' headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive + Content-Length: + - '102' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -33,13 +35,11 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-develop + - 3.7.1 Keep-Alive: - timeout=15, max=100 Strict-Transport-Security: - max-age=631139040; includeSubdomains - Transfer-Encoding: - - chunked X-Content-Type-Options: - nosniff X-Download-Options: @@ -68,16 +68,18 @@ interactions: uri: https://foreman.example.org/katello/api/organizations?search=name%3D%22Test+Organization%22&per_page=4294967296 response: body: - string: "{\n \"total\": 3,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": + string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": 4294967296,\n \"search\": \"name=\\\"Test Organization\\\"\",\n \"sort\": - {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\":\"Test_Organization\",\"created_at\":\"2023-06-21 - 13:24:35 UTC\",\"updated_at\":\"2023-06-21 13:24:38 UTC\",\"id\":5,\"name\":\"Test + {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\":\"Test_Organization\",\"created_at\":\"2023-11-13 + 09:23:21 UTC\",\"updated_at\":\"2023-11-13 09:23:23 UTC\",\"id\":4,\"name\":\"Test Organization\",\"title\":\"Test Organization\",\"description\":\"A test organization\"}]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive + Content-Length: + - '388' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -91,13 +93,11 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-develop + - 3.7.1 Keep-Alive: - timeout=15, max=99 Strict-Transport-Security: - max-age=631139040; includeSubdomains - Transfer-Encoding: - - chunked X-Content-Type-Options: - nosniff X-Download-Options: @@ -123,131 +123,19 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/organizations/5 + uri: https://foreman.example.org/katello/api/organizations/4/activation_keys?search=name%3D%22convert2rhel_centos8%22&per_page=4294967296 response: body: - string: '{"label":"Test_Organization","redhat_repository_url":"https://cdn.redhat.com","system_purposes":{"support_level":[],"addons":[],"roles":[],"usage":[],"support_type":[]},"service_levels":[],"service_level":null,"select_all_types":[],"description":"A - test organization","created_at":"2023-06-21 13:24:35 UTC","updated_at":"2023-06-21 - 13:24:38 UTC","ancestry":null,"parent_id":null,"parent_name":null,"id":5,"name":"Test - Organization","title":"Test Organization","users":[],"smart_proxies":[{"name":"sat-r220-03.lab.eng.rdu2.redhat.com","id":1,"url":"https://sat-r220-03.lab.eng.rdu2.redhat.com:9090","inherited":false}],"subnets":[],"compute_resources":[],"media":[],"ptables":[{"description":null,"os_family":"Suse","created_at":"2023-03-24 - 05:51:17 UTC","updated_at":"2023-03-24 05:51:17 UTC","name":"AutoYaST entire - SCSI disk","id":131,"inherited":false},{"description":null,"os_family":"Suse","created_at":"2023-03-24 - 05:51:17 UTC","updated_at":"2023-03-24 05:51:17 UTC","name":"AutoYaST entire - virtual disk","id":132,"inherited":false},{"description":null,"os_family":"Suse","created_at":"2023-03-24 - 05:51:17 UTC","updated_at":"2023-03-24 05:51:17 UTC","name":"AutoYaST LVM","id":133,"inherited":false},{"description":null,"os_family":"Coreos","created_at":"2023-03-24 - 05:51:17 UTC","updated_at":"2023-03-24 05:51:17 UTC","name":"CoreOS default - fake","id":134,"inherited":false},{"description":null,"os_family":"Rancheros","created_at":"2023-03-24 - 05:51:17 UTC","updated_at":"2023-03-24 05:51:17 UTC","name":"Empty","id":135,"inherited":false},{"description":null,"os_family":"Freebsd","created_at":"2023-03-24 - 05:51:17 UTC","updated_at":"2023-03-24 05:51:17 UTC","name":"FreeBSD default - fake","id":136,"inherited":false},{"description":null,"os_family":"Solaris","created_at":"2023-03-24 - 05:51:17 UTC","updated_at":"2023-03-24 05:51:17 UTC","name":"Jumpstart default","id":137,"inherited":false},{"description":null,"os_family":"Solaris","created_at":"2023-03-24 - 05:51:17 UTC","updated_at":"2023-03-24 05:51:17 UTC","name":"Jumpstart mirrored","id":138,"inherited":false},{"description":null,"os_family":"Junos","created_at":"2023-03-24 - 05:51:17 UTC","updated_at":"2023-03-24 05:51:17 UTC","name":"Junos default - fake","id":139,"inherited":false},{"description":null,"os_family":"Redhat","created_at":"2023-03-24 - 05:51:17 UTC","updated_at":"2023-03-24 05:51:17 UTC","name":"Kickstart custom","id":140,"inherited":false},{"description":null,"os_family":"Redhat","created_at":"2023-03-24 - 05:51:17 UTC","updated_at":"2023-03-24 05:51:17 UTC","name":"Kickstart default","id":141,"inherited":false},{"description":null,"os_family":"Redhat","created_at":"2023-03-24 - 05:51:17 UTC","updated_at":"2023-03-24 05:51:17 UTC","name":"Kickstart default - thin","id":142,"inherited":false},{"description":null,"os_family":"Redhat","created_at":"2023-03-24 - 05:51:17 UTC","updated_at":"2023-03-24 05:51:17 UTC","name":"Kickstart dynamic","id":143,"inherited":false},{"description":null,"os_family":"NXOS","created_at":"2023-03-24 - 05:51:17 UTC","updated_at":"2023-03-24 05:51:17 UTC","name":"NX-OS default - fake","id":144,"inherited":false},{"description":null,"os_family":"Debian","created_at":"2023-03-24 - 05:51:17 UTC","updated_at":"2023-03-24 05:51:17 UTC","name":"Preseed default","id":145,"inherited":false},{"description":"Preseed - Autoinstall default storage snippet configures drives automatically\nwith - LVM. The snippet is automatically indented by 2 spaces. For reference:\nhttps://ubuntu.com/server/docs/install/autoinstall-reference","os_family":"Debian","created_at":"2023-03-24 - 05:51:17 UTC","updated_at":"2023-03-24 05:51:17 UTC","name":"Preseed default - autoinstall","id":146,"inherited":false},{"description":null,"os_family":"Debian","created_at":"2023-03-24 - 05:51:17 UTC","updated_at":"2023-03-24 05:51:17 UTC","name":"Preseed default - LVM","id":147,"inherited":false},{"description":null,"os_family":"Windows","created_at":"2023-03-24 - 05:51:17 UTC","updated_at":"2023-03-24 05:51:17 UTC","name":"Windows default - GPT EFI partition table","id":149,"inherited":false},{"description":null,"os_family":"Windows","created_at":"2023-03-24 - 05:51:17 UTC","updated_at":"2023-03-24 05:51:17 UTC","name":"Windows default - partition table","id":148,"inherited":false},{"description":null,"os_family":"Xenserver","created_at":"2023-03-24 - 05:51:17 UTC","updated_at":"2023-03-24 05:51:17 UTC","name":"XenServer default","id":150,"inherited":false}],"provisioning_templates":[{"id":56,"name":"Alterator - default","template_kind_id":7,"template_kind_name":"provision","inherited":false},{"id":39,"name":"Alterator - default finish","template_kind_id":8,"template_kind_name":"finish","inherited":false},{"id":13,"name":"Alterator - default PXELinux","template_kind_id":3,"template_kind_name":"PXELinux","inherited":false},{"id":74,"name":"alterator_pkglist","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":76,"name":"ansible_provisioning_callback","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":78,"name":"ansible_tower_callback_script","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":80,"name":"ansible_tower_callback_service","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":57,"name":"Atomic - Kickstart default","template_kind_id":7,"template_kind_name":"provision","inherited":false},{"id":58,"name":"AutoYaST - default","template_kind_id":7,"template_kind_name":"provision","inherited":false},{"id":48,"name":"AutoYaST - default iPXE","template_kind_id":6,"template_kind_name":"iPXE","inherited":false},{"id":2,"name":"AutoYaST - default PXEGrub","template_kind_id":4,"template_kind_name":"PXEGrub","inherited":false},{"id":7,"name":"AutoYaST - default PXEGrub2","template_kind_id":5,"template_kind_name":"PXEGrub2","inherited":false},{"id":14,"name":"AutoYaST - default PXELinux","template_kind_id":3,"template_kind_name":"PXELinux","inherited":false},{"id":125,"name":"AutoYaST - default user data","template_kind_id":10,"template_kind_name":"user_data","inherited":false},{"id":59,"name":"AutoYaST - SLES default","template_kind_id":7,"template_kind_name":"provision","inherited":false},{"id":82,"name":"blacklist_kernel_modules","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":83,"name":"bmc_nic_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":31,"name":"Boot - disk Grub2 EFI - generic host","template_kind_id":1,"template_kind_name":"Bootdisk","inherited":false},{"id":32,"name":"Boot - disk iPXE - generic host","template_kind_id":1,"template_kind_name":"Bootdisk","inherited":false},{"id":33,"name":"Boot - disk iPXE - generic static host","template_kind_id":1,"template_kind_name":"Bootdisk","inherited":false},{"id":34,"name":"Boot - disk iPXE - host","template_kind_id":1,"template_kind_name":"Bootdisk","inherited":false},{"id":84,"name":"built","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":85,"name":"chef_client","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":35,"name":"CloudInit - default","template_kind_id":13,"template_kind_name":"cloud-init","inherited":false},{"id":86,"name":"coreos_cloudconfig","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":60,"name":"CoreOS - provision","template_kind_id":7,"template_kind_name":"provision","inherited":false},{"id":15,"name":"CoreOS - PXELinux","template_kind_id":3,"template_kind_name":"PXELinux","inherited":false},{"id":87,"name":"create_users","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":88,"name":"csr_attributes.yaml","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":36,"name":"Discovery - Debian kexec","template_kind_id":15,"template_kind_name":"kexec","inherited":false},{"id":37,"name":"Discovery - Red Hat kexec","template_kind_id":15,"template_kind_name":"kexec","inherited":false},{"id":38,"name":"Discovery - Ubuntu kexec Autoinstall","template_kind_id":15,"template_kind_name":"kexec","inherited":false},{"id":89,"name":"efibootmgr_netboot","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":90,"name":"eject_cdrom","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":91,"name":"epel","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":92,"name":"fips_packages","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":93,"name":"fix_hosts","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":40,"name":"FreeBSD - (mfsBSD) finish","template_kind_id":8,"template_kind_name":"finish","inherited":false},{"id":61,"name":"FreeBSD - (mfsBSD) provision","template_kind_id":7,"template_kind_name":"provision","inherited":false},{"id":16,"name":"FreeBSD - (mfsBSD) PXELinux","template_kind_id":3,"template_kind_name":"PXELinux","inherited":false},{"id":94,"name":"freeipa_register","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":70,"name":"Global - Registration","template_kind_id":14,"template_kind_name":"registration","inherited":false},{"id":72,"name":"Grubby - default","template_kind_id":9,"template_kind_name":"script","inherited":false},{"id":95,"name":"http_proxy","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":96,"name":"insights","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":49,"name":"iPXE - default local boot","template_kind_id":6,"template_kind_name":"iPXE","inherited":false},{"id":50,"name":"iPXE - global default","template_kind_id":6,"template_kind_name":"iPXE","inherited":false},{"id":51,"name":"iPXE - intermediate script","template_kind_id":6,"template_kind_name":"iPXE","inherited":false},{"id":62,"name":"Jumpstart - default","template_kind_id":7,"template_kind_name":"provision","inherited":false},{"id":41,"name":"Jumpstart - default finish","template_kind_id":8,"template_kind_name":"finish","inherited":false},{"id":3,"name":"Jumpstart - default PXEGrub","template_kind_id":4,"template_kind_name":"PXEGrub","inherited":false},{"id":42,"name":"Junos - default finish","template_kind_id":8,"template_kind_name":"finish","inherited":false},{"id":63,"name":"Junos - default SLAX","template_kind_id":7,"template_kind_name":"provision","inherited":false},{"id":30,"name":"Junos - default ZTP config","template_kind_id":11,"template_kind_name":"ZTP","inherited":false},{"id":64,"name":"Kickstart - default","template_kind_id":7,"template_kind_name":"provision","inherited":false},{"id":43,"name":"Kickstart - default finish","template_kind_id":8,"template_kind_name":"finish","inherited":false},{"id":52,"name":"Kickstart - default iPXE","template_kind_id":6,"template_kind_name":"iPXE","inherited":false},{"id":4,"name":"Kickstart - default PXEGrub","template_kind_id":4,"template_kind_name":"PXEGrub","inherited":false},{"id":8,"name":"Kickstart - default PXEGrub2","template_kind_id":5,"template_kind_name":"PXEGrub2","inherited":false},{"id":17,"name":"Kickstart - default PXELinux","template_kind_id":3,"template_kind_name":"PXELinux","inherited":false},{"id":126,"name":"Kickstart - default user data","template_kind_id":10,"template_kind_name":"user_data","inherited":false},{"id":100,"name":"kickstart_ifcfg_bonded_interface","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":98,"name":"kickstart_ifcfg_bond_interface","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":102,"name":"kickstart_ifcfg_generic_interface","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":104,"name":"kickstart_ifcfg_get_identifier_names","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":106,"name":"kickstart_kernel_options","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":107,"name":"kickstart_networking_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":65,"name":"Kickstart - oVirt-RHVH","template_kind_id":7,"template_kind_name":"provision","inherited":false},{"id":18,"name":"Kickstart - oVirt-RHVH PXELinux","template_kind_id":3,"template_kind_name":"PXELinux","inherited":false},{"id":108,"name":"kickstart_rhsm","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":47,"name":"Linux - host_init_config default","template_kind_id":2,"template_kind_name":"host_init_config","inherited":false},{"id":109,"name":"ntp","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":1,"name":"NX-OS - default POAP setup","template_kind_id":12,"template_kind_name":"POAP","inherited":false},{"id":110,"name":"pkg_manager","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":127,"name":"Preseed - Autoinstall cloud-init user data","template_kind_id":10,"template_kind_name":"user_data","inherited":false},{"id":66,"name":"Preseed - default","template_kind_id":7,"template_kind_name":"provision","inherited":false},{"id":44,"name":"Preseed - default finish","template_kind_id":8,"template_kind_name":"finish","inherited":false},{"id":53,"name":"Preseed - default iPXE","template_kind_id":6,"template_kind_name":"iPXE","inherited":false},{"id":9,"name":"Preseed - default PXEGrub2","template_kind_id":5,"template_kind_name":"PXEGrub2","inherited":false},{"id":10,"name":"Preseed - default PXEGrub2 Autoinstall","template_kind_id":5,"template_kind_name":"PXEGrub2","inherited":false},{"id":19,"name":"Preseed - default PXELinux","template_kind_id":3,"template_kind_name":"PXELinux","inherited":false},{"id":20,"name":"Preseed - default PXELinux Autoinstall","template_kind_id":3,"template_kind_name":"PXELinux","inherited":false},{"id":128,"name":"Preseed - default user data","template_kind_id":10,"template_kind_name":"user_data","inherited":false},{"id":111,"name":"preseed_kernel_options","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":113,"name":"preseed_kernel_options_autoinstall","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":115,"name":"preseed_netplan_generic_interface","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":116,"name":"preseed_netplan_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":117,"name":"preseed_networking_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":118,"name":"puppet.conf","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":120,"name":"puppetlabs_repo","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":119,"name":"puppet_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":121,"name":"pxegrub2_chainload","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":11,"name":"PXEGrub2 - default local boot","template_kind_id":5,"template_kind_name":"PXEGrub2","inherited":false},{"id":122,"name":"pxegrub2_discovery","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":12,"name":"PXEGrub2 - global default","template_kind_id":5,"template_kind_name":"PXEGrub2","inherited":false},{"id":123,"name":"pxegrub2_mac","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":124,"name":"pxegrub_chainload","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":5,"name":"PXEGrub - default local boot","template_kind_id":4,"template_kind_name":"PXEGrub","inherited":false},{"id":99,"name":"pxegrub_discovery","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":6,"name":"PXEGrub - global default","template_kind_id":4,"template_kind_name":"PXEGrub","inherited":false},{"id":21,"name":"PXELinux - chain iPXE","template_kind_id":3,"template_kind_name":"PXELinux","inherited":false},{"id":22,"name":"PXELinux - chain iPXE UNDI","template_kind_id":3,"template_kind_name":"PXELinux","inherited":false},{"id":101,"name":"pxelinux_chainload","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":23,"name":"PXELinux - default local boot","template_kind_id":3,"template_kind_name":"PXELinux","inherited":false},{"id":24,"name":"PXELinux - default memdisk","template_kind_id":3,"template_kind_name":"PXELinux","inherited":false},{"id":103,"name":"pxelinux_discovery","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":25,"name":"PXELinux - global default","template_kind_id":3,"template_kind_name":"PXELinux","inherited":false},{"id":112,"name":"rancheros_cloudconfig","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":67,"name":"RancherOS - provision","template_kind_id":7,"template_kind_name":"provision","inherited":false},{"id":26,"name":"RancherOS - PXELinux","template_kind_id":3,"template_kind_name":"PXELinux","inherited":false},{"id":114,"name":"redhat_register","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":71,"name":"remote_execution_pull_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":75,"name":"remote_execution_ssh_keys","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":77,"name":"saltstack_minion","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":81,"name":"saltstack_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":79,"name":"schedule_reboot","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":129,"name":"UserData - default","template_kind_id":10,"template_kind_name":"user_data","inherited":false},{"id":130,"name":"UserData - open-vm-tools","template_kind_id":10,"template_kind_name":"user_data","inherited":false},{"id":27,"name":"WAIK - default PXELinux","template_kind_id":3,"template_kind_name":"PXELinux","inherited":false},{"id":45,"name":"Windows - default finish","template_kind_id":8,"template_kind_name":"finish","inherited":false},{"id":54,"name":"Windows - default iPXE","template_kind_id":6,"template_kind_name":"iPXE","inherited":false},{"id":55,"name":"Windows - default iPXE httpboot","template_kind_id":6,"template_kind_name":"iPXE","inherited":false},{"id":68,"name":"Windows - default provision","template_kind_id":7,"template_kind_name":"provision","inherited":false},{"id":28,"name":"Windows - default PXELinux","template_kind_id":3,"template_kind_name":"PXELinux","inherited":false},{"id":97,"name":"Windows - network","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":73,"name":"Windows - peSetup.cmd","template_kind_id":9,"template_kind_name":"script","inherited":false},{"id":69,"name":"XenServer - default answerfile","template_kind_id":7,"template_kind_name":"provision","inherited":false},{"id":46,"name":"XenServer - default finish","template_kind_id":8,"template_kind_name":"finish","inherited":false},{"id":29,"name":"XenServer - default PXELinux","template_kind_id":3,"template_kind_name":"PXELinux","inherited":false},{"id":105,"name":"yum_proxy","template_kind_id":null,"template_kind_name":null,"inherited":false}],"domains":[],"realms":[],"hostgroups":[],"locations":[],"hosts_count":0,"parameters":[],"deprecations":{"environments":"Environments - got deprecated from this endpoint."},"simple_content_access":true,"owner_details":{"id":"8a88801087122a450188de20e2b1147d","key":"Test_Organization","created":"2023-06-21T13:24:37+0000","updated":"2023-06-21T13:29:20+0000","lastRefreshed":null,"virt_who":false,"upstreamConsumer":null},"cdn_configuration":{"url":"https://cdn.redhat.com","username":null,"upstream_organization_label":null,"ssl_ca_credential_id":null,"upstream_content_view_label":null,"upstream_lifecycle_environment_label":null,"type":"redhat_cdn","password_exists":false},"default_content_view_id":6,"composite_content_views_count":null,"content_view_components_count":null,"library_id":3}' + string: '{"total":1,"subtotal":0,"selectable":0,"page":1,"per_page":"4294967296","error":null,"search":"name=\"convert2rhel_centos8\"","sort":{"by":"name","order":"asc"},"results":[]} + + ' headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive + Content-Length: + - '175' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -259,15 +147,13 @@ interactions: Foreman_current_location: - ; ANY Foreman_current_organization: - - ; ANY + - 4; Test Organization Foreman_version: - - 3.7.0-develop + - 3.7.1 Keep-Alive: - timeout=15, max=98 Strict-Transport-Security: - max-age=631139040; includeSubdomains - Transfer-Encoding: - - chunked X-Content-Type-Options: - nosniff X-Download-Options: @@ -281,4 +167,187 @@ interactions: status: code: 200 message: OK +- request: + body: null + headers: + Accept: + - application/json;version=2 + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - apypie (https://github.com/Apipie/apypie) + method: GET + uri: https://foreman.example.org/katello/api/organizations/4/environments?search=name%3D%22Library%22&per_page=4294967296 + response: + body: + string: '{"total":1,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Library\"","sort":{"by":"name","order":"asc"},"results":[{"library":true,"registry_name_pattern":null,"registry_unauthenticated_pull":false,"id":3,"name":"Library","label":"Library","description":null,"organization_id":4,"organization":{"name":"Test + Organization","label":"Test_Organization","id":4},"created_at":"2023-11-13 + 09:23:22 UTC","updated_at":"2023-11-13 09:23:22 UTC","prior":null,"successor":null,"counts":{"content_hosts":0,"content_views":2,"packages":1782,"module_streams":0,"errata":{"security":4,"bugfix":4,"enhancement":16,"total":24},"yum_repositories":4,"docker_repositories":0,"ostree_repositories":0,"products":4,"debs":0,"deb_repositories":0},"permissions":{"create_lifecycle_environments":true,"view_lifecycle_environments":true,"edit_lifecycle_environments":true,"destroy_lifecycle_environments":false,"promote_or_remove_content_views_to_environments":true},"content_views":[{"name":"convert2rhel_centos7","id":6},{"name":"convert2rhel_centos8","id":7}]}]} + + ' + headers: + Cache-Control: + - max-age=0, private, must-revalidate + Connection: + - Keep-Alive + Content-Length: + - '1083' + Content-Security-Policy: + - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: + - application/json; charset=utf-8 + Foreman_api_version: + - '2' + Foreman_current_location: + - ; ANY + Foreman_current_organization: + - 4; Test Organization + Foreman_version: + - 3.7.1 + Keep-Alive: + - timeout=15, max=97 + Strict-Transport-Security: + - max-age=631139040; includeSubdomains + X-Content-Type-Options: + - nosniff + X-Download-Options: + - noopen + X-Frame-Options: + - sameorigin + X-Permitted-Cross-Domain-Policies: + - none + X-XSS-Protection: + - 1; mode=block + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json;version=2 + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - apypie (https://github.com/Apipie/apypie) + method: GET + uri: https://foreman.example.org/katello/api/organizations/4/content_views?search=name%3D%22convert2rhel_centos8%22&per_page=4294967296 + response: + body: + string: '{"total":3,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"convert2rhel_centos8\"","sort":{"by":"name","order":"asc"},"results":[{"composite":false,"component_ids":[],"default":false,"version_count":1,"latest_version":"1.0","latest_version_id":7,"auto_publish":false,"solve_dependencies":false,"import_only":false,"generated_for":"none","related_cv_count":0,"related_composite_cvs":[],"needs_publish":false,"filtered":false,"repository_ids":[10],"id":7,"name":"convert2rhel_centos8","label":"convert2rhel_centos8","description":null,"organization_id":4,"organization":{"name":"Test + Organization","label":"Test_Organization","id":4},"created_at":"2023-11-13 + 09:24:52 UTC","updated_at":"2023-11-13 09:24:53 UTC","last_task":{"id":"d2db03ba-2aac-4798-820f-291d47e10bcc","started_at":"2023-11-13 + 09:24:53 UTC","result":"success","last_sync_words":"less than a minute"},"latest_version_environments":[{"id":3,"name":"Library","label":"Library"}],"repositories":[{"id":10,"name":"Convert2RHEL8 + main","label":"Convert2RHEL8_main","content_type":"yum"}],"versions":[{"id":7,"version":"1.0","published":"2023-11-13 + 09:24:53 UTC","environment_ids":[3],"filters_applied":false}],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"2.0","last_published":"2023-11-13 + 09:24:53 UTC","environments":[{"id":3,"label":"Library","name":"Library","activation_keys":[],"hosts":[],"permissions":{"readable":true}}]}]} + + ' + headers: + Cache-Control: + - max-age=0, private, must-revalidate + Connection: + - Keep-Alive + Content-Length: + - '1480' + Content-Security-Policy: + - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: + - application/json; charset=utf-8 + Foreman_api_version: + - '2' + Foreman_current_location: + - ; ANY + Foreman_current_organization: + - 4; Test Organization + Foreman_version: + - 3.7.1 + Keep-Alive: + - timeout=15, max=96 + Strict-Transport-Security: + - max-age=631139040; includeSubdomains + X-Content-Type-Options: + - nosniff + X-Download-Options: + - noopen + X-Frame-Options: + - sameorigin + X-Permitted-Cross-Domain-Policies: + - none + X-XSS-Protection: + - 1; mode=block + status: + code: 200 + message: OK +- request: + body: '{"organization_id": 4, "name": "convert2rhel_centos8", "environment_id": + 3, "content_view_id": 7}' + headers: + Accept: + - application/json;version=2 + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '97' + Content-Type: + - application/json + User-Agent: + - apypie (https://github.com/Apipie/apypie) + method: POST + uri: https://foreman.example.org/katello/api/activation_keys + response: + body: + string: ' {"service_level":null,"content_overrides":[],"id":8,"name":"convert2rhel_centos8","description":null,"unlimited_hosts":true,"auto_attach":true,"content_view_id":7,"environment_id":3,"usage_count":0,"user_id":4,"max_hosts":null,"release_version":null,"purpose_usage":null,"purpose_role":null,"organization_id":4,"organization":{"name":"Test + Organization","label":"Test_Organization","id":4},"created_at":"2023-11-13 + 09:24:59 UTC","updated_at":"2023-11-13 09:25:00 UTC","content_view":{"id":7,"name":"convert2rhel_centos8"},"environment":{"name":"Library","id":3},"products":[],"host_collections":[],"purpose_addons":[],"permissions":{"view_activation_keys":true,"edit_activation_keys":true,"destroy_activation_keys":true}} + + ' + headers: + Cache-Control: + - max-age=0, private, must-revalidate + Connection: + - Keep-Alive + Content-Length: + - '724' + Content-Security-Policy: + - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: + - application/json; charset=utf-8 + Foreman_api_version: + - '2' + Foreman_current_location: + - ; ANY + Foreman_current_organization: + - 4; Test Organization + Foreman_version: + - 3.7.1 + Keep-Alive: + - timeout=15, max=95 + Strict-Transport-Security: + - max-age=631139040; includeSubdomains + X-Content-Type-Options: + - nosniff + X-Download-Options: + - noopen + X-Frame-Options: + - sameorigin + X-Permitted-Cross-Domain-Policies: + - none + X-XSS-Protection: + - 1; mode=block + status: + code: 201 + message: Created version: 1 diff --git a/tests/test_playbooks/fixtures/convert2rhel-19.yml b/tests/test_playbooks/fixtures/convert2rhel-19.yml index 563da0527..9e2378961 100644 --- a/tests/test_playbooks/fixtures/convert2rhel-19.yml +++ b/tests/test_playbooks/fixtures/convert2rhel-19.yml @@ -14,12 +14,14 @@ interactions: uri: https://foreman.example.org/api/status response: body: - string: '{"satellite_version":"6.14.0","result":"ok","status":200,"version":"3.7.0-develop","api_version":2}' + string: '{"result":"ok","status":200,"version":"3.7.1","api_version":2}' headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive + Content-Length: + - '102' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -33,13 +35,11 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-develop + - 3.7.1 Keep-Alive: - timeout=15, max=100 Strict-Transport-Security: - max-age=631139040; includeSubdomains - Transfer-Encoding: - - chunked X-Content-Type-Options: - nosniff X-Download-Options: @@ -68,16 +68,18 @@ interactions: uri: https://foreman.example.org/katello/api/organizations?search=name%3D%22Test+Organization%22&per_page=4294967296 response: body: - string: "{\n \"total\": 3,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": + string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": 4294967296,\n \"search\": \"name=\\\"Test Organization\\\"\",\n \"sort\": - {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\":\"Test_Organization\",\"created_at\":\"2023-06-21 - 13:24:35 UTC\",\"updated_at\":\"2023-06-21 13:24:38 UTC\",\"id\":5,\"name\":\"Test + {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\":\"Test_Organization\",\"created_at\":\"2023-11-13 + 09:23:21 UTC\",\"updated_at\":\"2023-11-13 09:23:23 UTC\",\"id\":4,\"name\":\"Test Organization\",\"title\":\"Test Organization\",\"description\":\"A test organization\"}]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive + Content-Length: + - '388' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -91,13 +93,11 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-develop + - 3.7.1 Keep-Alive: - timeout=15, max=99 Strict-Transport-Security: - max-age=631139040; includeSubdomains - Transfer-Encoding: - - chunked X-Content-Type-Options: - nosniff X-Download-Options: @@ -123,10 +123,10 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/organizations/5/activation_keys?search=name%3D%22convert2rhel_centos7%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/organizations/4/activation_keys?search=name%3D%22convert2rhel_oracle7%22&per_page=4294967296 response: body: - string: '{"total":0,"subtotal":0,"selectable":0,"page":1,"per_page":"4294967296","error":null,"search":"name=\"convert2rhel_centos7\"","sort":{"by":"name","order":"asc"},"results":[]} + string: '{"total":2,"subtotal":0,"selectable":0,"page":1,"per_page":"4294967296","error":null,"search":"name=\"convert2rhel_oracle7\"","sort":{"by":"name","order":"asc"},"results":[]} ' headers: @@ -134,6 +134,8 @@ interactions: - max-age=0, private, must-revalidate Connection: - Keep-Alive + Content-Length: + - '175' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -145,15 +147,13 @@ interactions: Foreman_current_location: - ; ANY Foreman_current_organization: - - 5; Test Organization + - 4; Test Organization Foreman_version: - - 3.7.0-develop + - 3.7.1 Keep-Alive: - timeout=15, max=98 Strict-Transport-Security: - max-age=631139040; includeSubdomains - Transfer-Encoding: - - chunked X-Content-Type-Options: - nosniff X-Download-Options: @@ -179,12 +179,12 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/organizations/5/environments?search=name%3D%22Library%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/organizations/4/environments?search=name%3D%22Library%22&per_page=4294967296 response: body: - string: '{"total":1,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Library\"","sort":{"by":"name","order":"asc"},"results":[{"library":true,"registry_name_pattern":null,"registry_unauthenticated_pull":false,"id":3,"name":"Library","label":"Library","description":null,"organization_id":5,"organization":{"name":"Test - Organization","label":"Test_Organization","id":5},"created_at":"2023-06-21 - 13:24:36 UTC","updated_at":"2023-06-21 13:24:36 UTC","prior":null,"successor":null,"counts":{"content_hosts":0,"content_views":2,"packages":1773,"module_streams":0,"errata":{"security":4,"bugfix":2,"enhancement":12,"total":18},"yum_repositories":4,"docker_repositories":0,"ostree_repositories":0,"products":4,"debs":0,"deb_repositories":0},"permissions":{"create_lifecycle_environments":true,"view_lifecycle_environments":true,"edit_lifecycle_environments":true,"destroy_lifecycle_environments":false,"promote_or_remove_content_views_to_environments":true},"content_views":[{"name":"convert2rhel_centos7","id":7},{"name":"convert2rhel_centos8","id":8}]}]} + string: '{"total":1,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Library\"","sort":{"by":"name","order":"asc"},"results":[{"library":true,"registry_name_pattern":null,"registry_unauthenticated_pull":false,"id":3,"name":"Library","label":"Library","description":null,"organization_id":4,"organization":{"name":"Test + Organization","label":"Test_Organization","id":4},"created_at":"2023-11-13 + 09:23:22 UTC","updated_at":"2023-11-13 09:23:22 UTC","prior":null,"successor":null,"counts":{"content_hosts":0,"content_views":2,"packages":1782,"module_streams":0,"errata":{"security":4,"bugfix":4,"enhancement":16,"total":24},"yum_repositories":4,"docker_repositories":0,"ostree_repositories":0,"products":4,"debs":0,"deb_repositories":0},"permissions":{"create_lifecycle_environments":true,"view_lifecycle_environments":true,"edit_lifecycle_environments":true,"destroy_lifecycle_environments":false,"promote_or_remove_content_views_to_environments":true},"content_views":[{"name":"convert2rhel_centos7","id":6},{"name":"convert2rhel_centos8","id":7}]}]} ' headers: @@ -192,6 +192,8 @@ interactions: - max-age=0, private, must-revalidate Connection: - Keep-Alive + Content-Length: + - '1083' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -203,15 +205,13 @@ interactions: Foreman_current_location: - ; ANY Foreman_current_organization: - - 5; Test Organization + - 4; Test Organization Foreman_version: - - 3.7.0-develop + - 3.7.1 Keep-Alive: - timeout=15, max=97 Strict-Transport-Security: - max-age=631139040; includeSubdomains - Transfer-Encoding: - - chunked X-Content-Type-Options: - nosniff X-Download-Options: @@ -237,16 +237,16 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/organizations/5/content_views?search=name%3D%22convert2rhel_centos7%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/organizations/4/content_views?search=name%3D%22Default+Organization+View%22&per_page=4294967296 response: body: - string: '{"total":3,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"convert2rhel_centos7\"","sort":{"by":"name","order":"asc"},"results":[{"composite":false,"component_ids":[],"default":false,"version_count":1,"latest_version":"1.0","latest_version_id":7,"auto_publish":false,"solve_dependencies":false,"import_only":false,"generated_for":"none","related_cv_count":0,"related_composite_cvs":[],"repository_ids":[16],"id":7,"name":"convert2rhel_centos7","label":"convert2rhel_centos7","description":null,"organization_id":5,"organization":{"name":"Test - Organization","label":"Test_Organization","id":5},"created_at":"2023-06-21 - 13:29:02 UTC","updated_at":"2023-06-21 13:29:05 UTC","last_task":{"id":"68537d8c-9473-4a09-bb99-3aa15cef65b3","started_at":"2023-06-21 - 13:29:04 UTC","result":"success","last_sync_words":"less than a minute"},"latest_version_environments":[{"id":3,"name":"Library","label":"Library"}],"repositories":[{"id":16,"name":"Convert2RHEL7 - main","label":"Convert2RHEL7_main","content_type":"yum"}],"versions":[{"id":7,"version":"1.0","published":"2023-06-21 - 13:29:05 UTC","environment_ids":[3]}],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"2.0","last_published":"2023-06-21 - 13:29:05 UTC","environments":[{"id":3,"label":"Library","name":"Library","activation_keys":[],"hosts":[],"permissions":{"readable":true}}]}]} + string: '{"total":3,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Default + Organization View\"","sort":{"by":"name","order":"asc"},"results":[{"composite":false,"component_ids":[],"default":true,"version_count":1,"latest_version":"1.0","latest_version_id":5,"auto_publish":false,"solve_dependencies":false,"import_only":false,"generated_for":"none","related_cv_count":0,"related_composite_cvs":[],"needs_publish":null,"filtered":false,"repository_ids":[],"id":5,"name":"Default + Organization View","label":"Default_Organization_View","description":null,"organization_id":4,"organization":{"name":"Test + Organization","label":"Test_Organization","id":4},"created_at":"2023-11-13 + 09:23:22 UTC","updated_at":"2023-11-13 09:23:22 UTC","last_task":null,"latest_version_environments":[{"id":3,"name":"Library","label":"Library"}],"repositories":[],"versions":[{"id":5,"version":"1.0","published":"2023-11-13 + 09:23:22 UTC","environment_ids":[3],"filters_applied":null}],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":"2023-11-13 + 09:23:22 UTC","environments":[{"id":3,"label":"Library","name":"Library","activation_keys":[],"hosts":[],"permissions":{"readable":true}}]}]} ' headers: @@ -254,6 +254,8 @@ interactions: - max-age=0, private, must-revalidate Connection: - Keep-Alive + Content-Length: + - '1265' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -265,15 +267,13 @@ interactions: Foreman_current_location: - ; ANY Foreman_current_organization: - - 5; Test Organization + - 4; Test Organization Foreman_version: - - 3.7.0-develop + - 3.7.1 Keep-Alive: - timeout=15, max=96 Strict-Transport-Security: - max-age=631139040; includeSubdomains - Transfer-Encoding: - - chunked X-Content-Type-Options: - nosniff X-Download-Options: @@ -288,8 +288,8 @@ interactions: code: 200 message: OK - request: - body: '{"organization_id": 5, "name": "convert2rhel_centos7", "environment_id": - 3, "content_view_id": 7}' + body: '{"organization_id": 4, "name": "convert2rhel_oracle7", "environment_id": + 3, "content_view_id": 5}' headers: Accept: - application/json;version=2 @@ -307,9 +307,10 @@ interactions: uri: https://foreman.example.org/katello/api/activation_keys response: body: - string: ' {"service_level":null,"content_overrides":[],"id":2,"name":"convert2rhel_centos7","description":null,"unlimited_hosts":true,"auto_attach":true,"content_view_id":7,"environment_id":3,"usage_count":0,"user_id":4,"max_hosts":null,"release_version":null,"purpose_usage":null,"purpose_role":null,"organization_id":5,"organization":{"name":"Test - Organization","label":"Test_Organization","id":5},"created_at":"2023-06-21 - 13:29:26 UTC","updated_at":"2023-06-21 13:29:26 UTC","content_view":{"id":7,"name":"convert2rhel_centos7"},"environment":{"name":"Library","id":3},"products":[],"host_collections":[],"purpose_addons":[],"permissions":{"view_activation_keys":true,"edit_activation_keys":true,"destroy_activation_keys":true}} + string: ' {"service_level":null,"content_overrides":[],"id":9,"name":"convert2rhel_oracle7","description":null,"unlimited_hosts":true,"auto_attach":true,"content_view_id":5,"environment_id":3,"usage_count":0,"user_id":4,"max_hosts":null,"release_version":null,"purpose_usage":null,"purpose_role":null,"organization_id":4,"organization":{"name":"Test + Organization","label":"Test_Organization","id":4},"created_at":"2023-11-13 + 09:25:00 UTC","updated_at":"2023-11-13 09:25:01 UTC","content_view":{"id":5,"name":"Default + Organization View"},"environment":{"name":"Library","id":3},"products":[],"host_collections":[],"purpose_addons":[],"permissions":{"view_activation_keys":true,"edit_activation_keys":true,"destroy_activation_keys":true}} ' headers: @@ -317,6 +318,8 @@ interactions: - max-age=0, private, must-revalidate Connection: - Keep-Alive + Content-Length: + - '729' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -328,15 +331,13 @@ interactions: Foreman_current_location: - ; ANY Foreman_current_organization: - - 5; Test Organization + - 4; Test Organization Foreman_version: - - 3.7.0-develop + - 3.7.1 Keep-Alive: - timeout=15, max=95 Strict-Transport-Security: - max-age=631139040; includeSubdomains - Transfer-Encoding: - - chunked X-Content-Type-Options: - nosniff X-Download-Options: diff --git a/tests/test_playbooks/fixtures/convert2rhel-2.yml b/tests/test_playbooks/fixtures/convert2rhel-2.yml index 5dccacf52..c4eed6bb6 100644 --- a/tests/test_playbooks/fixtures/convert2rhel-2.yml +++ b/tests/test_playbooks/fixtures/convert2rhel-2.yml @@ -14,12 +14,14 @@ interactions: uri: https://foreman.example.org/api/status response: body: - string: '{"satellite_version":"6.14.0","result":"ok","status":200,"version":"3.7.0-develop","api_version":2}' + string: '{"result":"ok","status":200,"version":"3.7.1","api_version":2}' headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive + Content-Length: + - '102' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -33,13 +35,11 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-develop + - 3.7.1 Keep-Alive: - timeout=15, max=100 Strict-Transport-Security: - max-age=631139040; includeSubdomains - Transfer-Encoding: - - chunked X-Content-Type-Options: - nosniff X-Download-Options: @@ -68,16 +68,18 @@ interactions: uri: https://foreman.example.org/katello/api/organizations?search=name%3D%22Test+Organization%22&per_page=4294967296 response: body: - string: "{\n \"total\": 3,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": + string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": 4294967296,\n \"search\": \"name=\\\"Test Organization\\\"\",\n \"sort\": - {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\":\"Test_Organization\",\"created_at\":\"2023-06-21 - 13:24:35 UTC\",\"updated_at\":\"2023-06-21 13:24:38 UTC\",\"id\":5,\"name\":\"Test + {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\":\"Test_Organization\",\"created_at\":\"2023-11-13 + 09:23:21 UTC\",\"updated_at\":\"2023-11-13 09:23:23 UTC\",\"id\":4,\"name\":\"Test Organization\",\"title\":\"Test Organization\",\"description\":\"A test organization\"}]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive + Content-Length: + - '388' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -91,13 +93,11 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-develop + - 3.7.1 Keep-Alive: - timeout=15, max=99 Strict-Transport-Security: - max-age=631139040; includeSubdomains - Transfer-Encoding: - - chunked X-Content-Type-Options: - nosniff X-Download-Options: @@ -123,10 +123,10 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/organizations/5/products?search=name%3D%22Convert2RHEL7%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/organizations/4/products?search=name%3D%22Convert2RHEL8%22&per_page=4294967296 response: body: - string: '{"total":0,"subtotal":0,"selectable":0,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Convert2RHEL7\"","sort":{"by":"name","order":"asc"},"results":[]} + string: '{"total":1,"subtotal":0,"selectable":0,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Convert2RHEL8\"","sort":{"by":"name","order":"asc"},"results":[]} ' headers: @@ -134,6 +134,8 @@ interactions: - max-age=0, private, must-revalidate Connection: - Keep-Alive + Content-Length: + - '168' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -145,15 +147,13 @@ interactions: Foreman_current_location: - ; ANY Foreman_current_organization: - - 5; Test Organization + - 4; Test Organization Foreman_version: - - 3.7.0-develop + - 3.7.1 Keep-Alive: - timeout=15, max=98 Strict-Transport-Security: - max-age=631139040; includeSubdomains - Transfer-Encoding: - - chunked X-Content-Type-Options: - nosniff X-Download-Options: @@ -168,7 +168,7 @@ interactions: code: 200 message: OK - request: - body: '{"organization_id": 5, "name": "Convert2RHEL7"}' + body: '{"organization_id": 4, "name": "Convert2RHEL8"}' headers: Accept: - application/json;version=2 @@ -186,9 +186,9 @@ interactions: uri: https://foreman.example.org/katello/api/products response: body: - string: ' {"sync_state_aggregated":null,"redhat":false,"id":30,"cp_id":"213774223616","name":"Convert2RHEL7","label":"Convert2RHEL7","description":null,"provider_id":5,"sync_plan_id":null,"sync_summary":{},"gpg_key_id":null,"ssl_ca_cert_id":null,"ssl_client_cert_id":null,"ssl_client_key_id":null,"sync_state":null,"last_sync":null,"last_sync_words":null,"organization_id":5,"organization":{"name":"Test - Organization","label":"Test_Organization","id":5},"sync_plan":null,"repository_count":0,"created_at":"2023-06-21 - 13:24:43 UTC","updated_at":"2023-06-21 13:24:43 UTC","product_content":[],"available_content":[],"repositories":[],"provider":{"name":"Anonymous"},"sync_status":{"id":null,"product_id":null,"progress":null,"sync_id":null,"state":null,"raw_state":null,"start_time":null,"finish_time":null,"duration":null,"display_size":null,"size":null,"is_running":null,"error_details":null},"permissions":{"view_products":true,"edit_products":true,"destroy_products":true,"sync_products":true},"published_content_view_ids":[],"active_task_count":0} + string: ' {"sync_state_aggregated":null,"redhat":false,"id":6,"cp_id":"139454427959","name":"Convert2RHEL8","label":"Convert2RHEL8","description":null,"provider_id":5,"sync_plan_id":null,"sync_summary":{},"gpg_key_id":null,"ssl_ca_cert_id":null,"ssl_client_cert_id":null,"ssl_client_key_id":null,"sync_state":null,"last_sync":null,"last_sync_words":null,"organization_id":4,"organization":{"name":"Test + Organization","label":"Test_Organization","id":4},"sync_plan":null,"repository_count":0,"created_at":"2023-11-13 + 09:23:26 UTC","updated_at":"2023-11-13 09:23:26 UTC","product_content":[],"available_content":[],"repositories":[],"provider":{"name":"Anonymous"},"sync_status":{"id":null,"product_id":null,"progress":null,"sync_id":null,"state":null,"raw_state":null,"start_time":null,"finish_time":null,"duration":null,"display_size":null,"size":null,"is_running":null,"error_details":null},"permissions":{"view_products":true,"edit_products":true,"destroy_products":true,"sync_products":true},"published_content_view_ids":[],"has_last_affected_repo_in_filter":false,"active_task_count":0} ' headers: @@ -196,6 +196,8 @@ interactions: - max-age=0, private, must-revalidate Connection: - Keep-Alive + Content-Length: + - '1083' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -207,15 +209,13 @@ interactions: Foreman_current_location: - ; ANY Foreman_current_organization: - - 5; Test Organization + - 4; Test Organization Foreman_version: - - 3.7.0-develop + - 3.7.1 Keep-Alive: - timeout=15, max=97 Strict-Transport-Security: - max-age=631139040; includeSubdomains - Transfer-Encoding: - - chunked X-Content-Type-Options: - nosniff X-Download-Options: diff --git a/tests/test_playbooks/fixtures/convert2rhel-20.yml b/tests/test_playbooks/fixtures/convert2rhel-20.yml index d7e94253c..acbc258b5 100644 --- a/tests/test_playbooks/fixtures/convert2rhel-20.yml +++ b/tests/test_playbooks/fixtures/convert2rhel-20.yml @@ -14,12 +14,14 @@ interactions: uri: https://foreman.example.org/api/status response: body: - string: '{"satellite_version":"6.14.0","result":"ok","status":200,"version":"3.7.0-develop","api_version":2}' + string: '{"result":"ok","status":200,"version":"3.7.1","api_version":2}' headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive + Content-Length: + - '102' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -33,13 +35,11 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-develop + - 3.7.1 Keep-Alive: - timeout=15, max=100 Strict-Transport-Security: - max-age=631139040; includeSubdomains - Transfer-Encoding: - - chunked X-Content-Type-Options: - nosniff X-Download-Options: @@ -68,16 +68,18 @@ interactions: uri: https://foreman.example.org/katello/api/organizations?search=name%3D%22Test+Organization%22&per_page=4294967296 response: body: - string: "{\n \"total\": 3,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": + string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": 4294967296,\n \"search\": \"name=\\\"Test Organization\\\"\",\n \"sort\": - {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\":\"Test_Organization\",\"created_at\":\"2023-06-21 - 13:24:35 UTC\",\"updated_at\":\"2023-06-21 13:24:38 UTC\",\"id\":5,\"name\":\"Test + {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\":\"Test_Organization\",\"created_at\":\"2023-11-13 + 09:23:21 UTC\",\"updated_at\":\"2023-11-13 09:23:23 UTC\",\"id\":4,\"name\":\"Test Organization\",\"title\":\"Test Organization\",\"description\":\"A test organization\"}]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive + Content-Length: + - '388' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -91,13 +93,11 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-develop + - 3.7.1 Keep-Alive: - timeout=15, max=99 Strict-Transport-Security: - max-age=631139040; includeSubdomains - Transfer-Encoding: - - chunked X-Content-Type-Options: - nosniff X-Download-Options: @@ -123,10 +123,10 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/organizations/5/activation_keys?search=name%3D%22convert2rhel_centos8%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/organizations/4/activation_keys?search=name%3D%22convert2rhel_oracle8%22&per_page=4294967296 response: body: - string: '{"total":1,"subtotal":0,"selectable":0,"page":1,"per_page":"4294967296","error":null,"search":"name=\"convert2rhel_centos8\"","sort":{"by":"name","order":"asc"},"results":[]} + string: '{"total":3,"subtotal":0,"selectable":0,"page":1,"per_page":"4294967296","error":null,"search":"name=\"convert2rhel_oracle8\"","sort":{"by":"name","order":"asc"},"results":[]} ' headers: @@ -134,6 +134,8 @@ interactions: - max-age=0, private, must-revalidate Connection: - Keep-Alive + Content-Length: + - '175' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -145,15 +147,13 @@ interactions: Foreman_current_location: - ; ANY Foreman_current_organization: - - 5; Test Organization + - 4; Test Organization Foreman_version: - - 3.7.0-develop + - 3.7.1 Keep-Alive: - timeout=15, max=98 Strict-Transport-Security: - max-age=631139040; includeSubdomains - Transfer-Encoding: - - chunked X-Content-Type-Options: - nosniff X-Download-Options: @@ -179,12 +179,12 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/organizations/5/environments?search=name%3D%22Library%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/organizations/4/environments?search=name%3D%22Library%22&per_page=4294967296 response: body: - string: '{"total":1,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Library\"","sort":{"by":"name","order":"asc"},"results":[{"library":true,"registry_name_pattern":null,"registry_unauthenticated_pull":false,"id":3,"name":"Library","label":"Library","description":null,"organization_id":5,"organization":{"name":"Test - Organization","label":"Test_Organization","id":5},"created_at":"2023-06-21 - 13:24:36 UTC","updated_at":"2023-06-21 13:24:36 UTC","prior":null,"successor":null,"counts":{"content_hosts":0,"content_views":2,"packages":1773,"module_streams":0,"errata":{"security":4,"bugfix":2,"enhancement":12,"total":18},"yum_repositories":4,"docker_repositories":0,"ostree_repositories":0,"products":4,"debs":0,"deb_repositories":0},"permissions":{"create_lifecycle_environments":true,"view_lifecycle_environments":true,"edit_lifecycle_environments":true,"destroy_lifecycle_environments":false,"promote_or_remove_content_views_to_environments":true},"content_views":[{"name":"convert2rhel_centos7","id":7},{"name":"convert2rhel_centos8","id":8}]}]} + string: '{"total":1,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Library\"","sort":{"by":"name","order":"asc"},"results":[{"library":true,"registry_name_pattern":null,"registry_unauthenticated_pull":false,"id":3,"name":"Library","label":"Library","description":null,"organization_id":4,"organization":{"name":"Test + Organization","label":"Test_Organization","id":4},"created_at":"2023-11-13 + 09:23:22 UTC","updated_at":"2023-11-13 09:23:22 UTC","prior":null,"successor":null,"counts":{"content_hosts":0,"content_views":2,"packages":1782,"module_streams":0,"errata":{"security":4,"bugfix":4,"enhancement":16,"total":24},"yum_repositories":4,"docker_repositories":0,"ostree_repositories":0,"products":4,"debs":0,"deb_repositories":0},"permissions":{"create_lifecycle_environments":true,"view_lifecycle_environments":true,"edit_lifecycle_environments":true,"destroy_lifecycle_environments":false,"promote_or_remove_content_views_to_environments":true},"content_views":[{"name":"convert2rhel_centos7","id":6},{"name":"convert2rhel_centos8","id":7}]}]} ' headers: @@ -192,6 +192,8 @@ interactions: - max-age=0, private, must-revalidate Connection: - Keep-Alive + Content-Length: + - '1083' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -203,15 +205,13 @@ interactions: Foreman_current_location: - ; ANY Foreman_current_organization: - - 5; Test Organization + - 4; Test Organization Foreman_version: - - 3.7.0-develop + - 3.7.1 Keep-Alive: - timeout=15, max=97 Strict-Transport-Security: - max-age=631139040; includeSubdomains - Transfer-Encoding: - - chunked X-Content-Type-Options: - nosniff X-Download-Options: @@ -237,16 +237,16 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/organizations/5/content_views?search=name%3D%22convert2rhel_centos8%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/organizations/4/content_views?search=name%3D%22Default+Organization+View%22&per_page=4294967296 response: body: - string: '{"total":3,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"convert2rhel_centos8\"","sort":{"by":"name","order":"asc"},"results":[{"composite":false,"component_ids":[],"default":false,"version_count":1,"latest_version":"1.0","latest_version_id":8,"auto_publish":false,"solve_dependencies":false,"import_only":false,"generated_for":"none","related_cv_count":0,"related_composite_cvs":[],"repository_ids":[17],"id":8,"name":"convert2rhel_centos8","label":"convert2rhel_centos8","description":null,"organization_id":5,"organization":{"name":"Test - Organization","label":"Test_Organization","id":5},"created_at":"2023-06-21 - 13:29:13 UTC","updated_at":"2023-06-21 13:29:15 UTC","last_task":{"id":"c3de740b-0ca7-465d-9a92-40364091e78a","started_at":"2023-06-21 - 13:29:15 UTC","result":"success","last_sync_words":"less than a minute"},"latest_version_environments":[{"id":3,"name":"Library","label":"Library"}],"repositories":[{"id":17,"name":"Convert2RHEL8 - main","label":"Convert2RHEL8_main","content_type":"yum"}],"versions":[{"id":8,"version":"1.0","published":"2023-06-21 - 13:29:15 UTC","environment_ids":[3]}],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"2.0","last_published":"2023-06-21 - 13:29:15 UTC","environments":[{"id":3,"label":"Library","name":"Library","activation_keys":[],"hosts":[],"permissions":{"readable":true}}]}]} + string: '{"total":3,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Default + Organization View\"","sort":{"by":"name","order":"asc"},"results":[{"composite":false,"component_ids":[],"default":true,"version_count":1,"latest_version":"1.0","latest_version_id":5,"auto_publish":false,"solve_dependencies":false,"import_only":false,"generated_for":"none","related_cv_count":0,"related_composite_cvs":[],"needs_publish":null,"filtered":false,"repository_ids":[],"id":5,"name":"Default + Organization View","label":"Default_Organization_View","description":null,"organization_id":4,"organization":{"name":"Test + Organization","label":"Test_Organization","id":4},"created_at":"2023-11-13 + 09:23:22 UTC","updated_at":"2023-11-13 09:23:22 UTC","last_task":null,"latest_version_environments":[{"id":3,"name":"Library","label":"Library"}],"repositories":[],"versions":[{"id":5,"version":"1.0","published":"2023-11-13 + 09:23:22 UTC","environment_ids":[3],"filters_applied":null}],"components":[],"content_view_components":[],"activation_keys":[{"id":9,"name":"convert2rhel_oracle7"}],"hosts":[],"next_version":"1.0","last_published":"2023-11-13 + 09:23:22 UTC","environments":[{"id":3,"label":"Library","name":"Library","activation_keys":[9],"hosts":[],"permissions":{"readable":true}}]}]} ' headers: @@ -254,6 +254,8 @@ interactions: - max-age=0, private, must-revalidate Connection: - Keep-Alive + Content-Length: + - '1304' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -265,15 +267,13 @@ interactions: Foreman_current_location: - ; ANY Foreman_current_organization: - - 5; Test Organization + - 4; Test Organization Foreman_version: - - 3.7.0-develop + - 3.7.1 Keep-Alive: - timeout=15, max=96 Strict-Transport-Security: - max-age=631139040; includeSubdomains - Transfer-Encoding: - - chunked X-Content-Type-Options: - nosniff X-Download-Options: @@ -288,8 +288,8 @@ interactions: code: 200 message: OK - request: - body: '{"organization_id": 5, "name": "convert2rhel_centos8", "environment_id": - 3, "content_view_id": 8}' + body: '{"organization_id": 4, "name": "convert2rhel_oracle8", "environment_id": + 3, "content_view_id": 5}' headers: Accept: - application/json;version=2 @@ -307,9 +307,10 @@ interactions: uri: https://foreman.example.org/katello/api/activation_keys response: body: - string: ' {"service_level":null,"content_overrides":[],"id":3,"name":"convert2rhel_centos8","description":null,"unlimited_hosts":true,"auto_attach":true,"content_view_id":8,"environment_id":3,"usage_count":0,"user_id":4,"max_hosts":null,"release_version":null,"purpose_usage":null,"purpose_role":null,"organization_id":5,"organization":{"name":"Test - Organization","label":"Test_Organization","id":5},"created_at":"2023-06-21 - 13:29:29 UTC","updated_at":"2023-06-21 13:29:29 UTC","content_view":{"id":8,"name":"convert2rhel_centos8"},"environment":{"name":"Library","id":3},"products":[],"host_collections":[],"purpose_addons":[],"permissions":{"view_activation_keys":true,"edit_activation_keys":true,"destroy_activation_keys":true}} + string: ' {"service_level":null,"content_overrides":[],"id":10,"name":"convert2rhel_oracle8","description":null,"unlimited_hosts":true,"auto_attach":true,"content_view_id":5,"environment_id":3,"usage_count":0,"user_id":4,"max_hosts":null,"release_version":null,"purpose_usage":null,"purpose_role":null,"organization_id":4,"organization":{"name":"Test + Organization","label":"Test_Organization","id":4},"created_at":"2023-11-13 + 09:25:01 UTC","updated_at":"2023-11-13 09:25:01 UTC","content_view":{"id":5,"name":"Default + Organization View"},"environment":{"name":"Library","id":3},"products":[],"host_collections":[],"purpose_addons":[],"permissions":{"view_activation_keys":true,"edit_activation_keys":true,"destroy_activation_keys":true}} ' headers: @@ -317,6 +318,8 @@ interactions: - max-age=0, private, must-revalidate Connection: - Keep-Alive + Content-Length: + - '730' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -328,15 +331,13 @@ interactions: Foreman_current_location: - ; ANY Foreman_current_organization: - - 5; Test Organization + - 4; Test Organization Foreman_version: - - 3.7.0-develop + - 3.7.1 Keep-Alive: - timeout=15, max=95 Strict-Transport-Security: - max-age=631139040; includeSubdomains - Transfer-Encoding: - - chunked X-Content-Type-Options: - nosniff X-Download-Options: diff --git a/tests/test_playbooks/fixtures/convert2rhel-21.yml b/tests/test_playbooks/fixtures/convert2rhel-21.yml index 35f52686e..1b0ed2233 100644 --- a/tests/test_playbooks/fixtures/convert2rhel-21.yml +++ b/tests/test_playbooks/fixtures/convert2rhel-21.yml @@ -14,12 +14,14 @@ interactions: uri: https://foreman.example.org/api/status response: body: - string: '{"satellite_version":"6.14.0","result":"ok","status":200,"version":"3.7.0-develop","api_version":2}' + string: '{"result":"ok","status":200,"version":"3.7.1","api_version":2}' headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive + Content-Length: + - '102' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -33,13 +35,11 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-develop + - 3.7.1 Keep-Alive: - timeout=15, max=100 Strict-Transport-Security: - max-age=631139040; includeSubdomains - Transfer-Encoding: - - chunked X-Content-Type-Options: - nosniff X-Download-Options: @@ -68,16 +68,18 @@ interactions: uri: https://foreman.example.org/katello/api/organizations?search=name%3D%22Test+Organization%22&per_page=4294967296 response: body: - string: "{\n \"total\": 3,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": + string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": 4294967296,\n \"search\": \"name=\\\"Test Organization\\\"\",\n \"sort\": - {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\":\"Test_Organization\",\"created_at\":\"2023-06-21 - 13:24:35 UTC\",\"updated_at\":\"2023-06-21 13:24:38 UTC\",\"id\":5,\"name\":\"Test + {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\":\"Test_Organization\",\"created_at\":\"2023-11-13 + 09:23:21 UTC\",\"updated_at\":\"2023-11-13 09:23:23 UTC\",\"id\":4,\"name\":\"Test Organization\",\"title\":\"Test Organization\",\"description\":\"A test organization\"}]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive + Content-Length: + - '388' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -91,13 +93,11 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-develop + - 3.7.1 Keep-Alive: - timeout=15, max=99 Strict-Transport-Security: - max-age=631139040; includeSubdomains - Transfer-Encoding: - - chunked X-Content-Type-Options: - nosniff X-Download-Options: @@ -123,10 +123,10 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/organizations/5/activation_keys?search=name%3D%22convert2rhel_oracle7%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/organizations/4/activation_keys?search=name%3D%22convert2rhel_rhel7%22&per_page=4294967296 response: body: - string: '{"total":2,"subtotal":0,"selectable":0,"page":1,"per_page":"4294967296","error":null,"search":"name=\"convert2rhel_oracle7\"","sort":{"by":"name","order":"asc"},"results":[]} + string: '{"total":4,"subtotal":0,"selectable":0,"page":1,"per_page":"4294967296","error":null,"search":"name=\"convert2rhel_rhel7\"","sort":{"by":"name","order":"asc"},"results":[]} ' headers: @@ -134,6 +134,8 @@ interactions: - max-age=0, private, must-revalidate Connection: - Keep-Alive + Content-Length: + - '173' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -145,15 +147,13 @@ interactions: Foreman_current_location: - ; ANY Foreman_current_organization: - - 5; Test Organization + - 4; Test Organization Foreman_version: - - 3.7.0-develop + - 3.7.1 Keep-Alive: - timeout=15, max=98 Strict-Transport-Security: - max-age=631139040; includeSubdomains - Transfer-Encoding: - - chunked X-Content-Type-Options: - nosniff X-Download-Options: @@ -179,12 +179,12 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/organizations/5/environments?search=name%3D%22Library%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/organizations/4/environments?search=name%3D%22Library%22&per_page=4294967296 response: body: - string: '{"total":1,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Library\"","sort":{"by":"name","order":"asc"},"results":[{"library":true,"registry_name_pattern":null,"registry_unauthenticated_pull":false,"id":3,"name":"Library","label":"Library","description":null,"organization_id":5,"organization":{"name":"Test - Organization","label":"Test_Organization","id":5},"created_at":"2023-06-21 - 13:24:36 UTC","updated_at":"2023-06-21 13:24:36 UTC","prior":null,"successor":null,"counts":{"content_hosts":0,"content_views":2,"packages":1773,"module_streams":0,"errata":{"security":4,"bugfix":2,"enhancement":12,"total":18},"yum_repositories":4,"docker_repositories":0,"ostree_repositories":0,"products":4,"debs":0,"deb_repositories":0},"permissions":{"create_lifecycle_environments":true,"view_lifecycle_environments":true,"edit_lifecycle_environments":true,"destroy_lifecycle_environments":false,"promote_or_remove_content_views_to_environments":true},"content_views":[{"name":"convert2rhel_centos7","id":7},{"name":"convert2rhel_centos8","id":8}]}]} + string: '{"total":1,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Library\"","sort":{"by":"name","order":"asc"},"results":[{"library":true,"registry_name_pattern":null,"registry_unauthenticated_pull":false,"id":3,"name":"Library","label":"Library","description":null,"organization_id":4,"organization":{"name":"Test + Organization","label":"Test_Organization","id":4},"created_at":"2023-11-13 + 09:23:22 UTC","updated_at":"2023-11-13 09:23:22 UTC","prior":null,"successor":null,"counts":{"content_hosts":0,"content_views":2,"packages":1782,"module_streams":0,"errata":{"security":4,"bugfix":4,"enhancement":16,"total":24},"yum_repositories":4,"docker_repositories":0,"ostree_repositories":0,"products":4,"debs":0,"deb_repositories":0},"permissions":{"create_lifecycle_environments":true,"view_lifecycle_environments":true,"edit_lifecycle_environments":true,"destroy_lifecycle_environments":false,"promote_or_remove_content_views_to_environments":true},"content_views":[{"name":"convert2rhel_centos7","id":6},{"name":"convert2rhel_centos8","id":7}]}]} ' headers: @@ -192,6 +192,8 @@ interactions: - max-age=0, private, must-revalidate Connection: - Keep-Alive + Content-Length: + - '1083' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -203,15 +205,13 @@ interactions: Foreman_current_location: - ; ANY Foreman_current_organization: - - 5; Test Organization + - 4; Test Organization Foreman_version: - - 3.7.0-develop + - 3.7.1 Keep-Alive: - timeout=15, max=97 Strict-Transport-Security: - max-age=631139040; includeSubdomains - Transfer-Encoding: - - chunked X-Content-Type-Options: - nosniff X-Download-Options: @@ -237,16 +237,16 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/organizations/5/content_views?search=name%3D%22Default+Organization+View%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/organizations/4/content_views?search=name%3D%22Default+Organization+View%22&per_page=4294967296 response: body: string: '{"total":3,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Default - Organization View\"","sort":{"by":"name","order":"asc"},"results":[{"composite":false,"component_ids":[],"default":true,"version_count":1,"latest_version":"1.0","latest_version_id":6,"auto_publish":false,"solve_dependencies":false,"import_only":false,"generated_for":"none","related_cv_count":0,"related_composite_cvs":[],"repository_ids":[],"id":6,"name":"Default - Organization View","label":"Default_Organization_View","description":null,"organization_id":5,"organization":{"name":"Test - Organization","label":"Test_Organization","id":5},"created_at":"2023-06-21 - 13:24:37 UTC","updated_at":"2023-06-21 13:24:37 UTC","last_task":null,"latest_version_environments":[{"id":3,"name":"Library","label":"Library"}],"repositories":[],"versions":[{"id":6,"version":"1.0","published":"2023-06-21 - 13:24:37 UTC","environment_ids":[3]}],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":"2023-06-21 - 13:24:37 UTC","environments":[{"id":3,"label":"Library","name":"Library","activation_keys":[],"hosts":[],"permissions":{"readable":true}}]}]} + Organization View\"","sort":{"by":"name","order":"asc"},"results":[{"composite":false,"component_ids":[],"default":true,"version_count":1,"latest_version":"1.0","latest_version_id":5,"auto_publish":false,"solve_dependencies":false,"import_only":false,"generated_for":"none","related_cv_count":0,"related_composite_cvs":[],"needs_publish":null,"filtered":false,"repository_ids":[],"id":5,"name":"Default + Organization View","label":"Default_Organization_View","description":null,"organization_id":4,"organization":{"name":"Test + Organization","label":"Test_Organization","id":4},"created_at":"2023-11-13 + 09:23:22 UTC","updated_at":"2023-11-13 09:23:22 UTC","last_task":null,"latest_version_environments":[{"id":3,"name":"Library","label":"Library"}],"repositories":[],"versions":[{"id":5,"version":"1.0","published":"2023-11-13 + 09:23:22 UTC","environment_ids":[3],"filters_applied":null}],"components":[],"content_view_components":[],"activation_keys":[{"id":9,"name":"convert2rhel_oracle7"},{"id":10,"name":"convert2rhel_oracle8"}],"hosts":[],"next_version":"1.0","last_published":"2023-11-13 + 09:23:22 UTC","environments":[{"id":3,"label":"Library","name":"Library","activation_keys":[9,10],"hosts":[],"permissions":{"readable":true}}]}]} ' headers: @@ -254,6 +254,8 @@ interactions: - max-age=0, private, must-revalidate Connection: - Keep-Alive + Content-Length: + - '1347' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -265,15 +267,13 @@ interactions: Foreman_current_location: - ; ANY Foreman_current_organization: - - 5; Test Organization + - 4; Test Organization Foreman_version: - - 3.7.0-develop + - 3.7.1 Keep-Alive: - timeout=15, max=96 Strict-Transport-Security: - max-age=631139040; includeSubdomains - Transfer-Encoding: - - chunked X-Content-Type-Options: - nosniff X-Download-Options: @@ -288,8 +288,8 @@ interactions: code: 200 message: OK - request: - body: '{"organization_id": 5, "name": "convert2rhel_oracle7", "environment_id": - 3, "content_view_id": 6}' + body: '{"organization_id": 4, "name": "convert2rhel_rhel7", "environment_id": + 3, "content_view_id": 5, "auto_attach": false}' headers: Accept: - application/json;version=2 @@ -298,7 +298,7 @@ interactions: Connection: - keep-alive Content-Length: - - '97' + - '117' Content-Type: - application/json User-Agent: @@ -307,9 +307,9 @@ interactions: uri: https://foreman.example.org/katello/api/activation_keys response: body: - string: ' {"service_level":null,"content_overrides":[],"id":4,"name":"convert2rhel_oracle7","description":null,"unlimited_hosts":true,"auto_attach":true,"content_view_id":6,"environment_id":3,"usage_count":0,"user_id":4,"max_hosts":null,"release_version":null,"purpose_usage":null,"purpose_role":null,"organization_id":5,"organization":{"name":"Test - Organization","label":"Test_Organization","id":5},"created_at":"2023-06-21 - 13:29:31 UTC","updated_at":"2023-06-21 13:29:32 UTC","content_view":{"id":6,"name":"Default + string: ' {"service_level":null,"content_overrides":[],"id":11,"name":"convert2rhel_rhel7","description":null,"unlimited_hosts":true,"auto_attach":false,"content_view_id":5,"environment_id":3,"usage_count":0,"user_id":4,"max_hosts":null,"release_version":null,"purpose_usage":null,"purpose_role":null,"organization_id":4,"organization":{"name":"Test + Organization","label":"Test_Organization","id":4},"created_at":"2023-11-13 + 09:25:02 UTC","updated_at":"2023-11-13 09:25:02 UTC","content_view":{"id":5,"name":"Default Organization View"},"environment":{"name":"Library","id":3},"products":[],"host_collections":[],"purpose_addons":[],"permissions":{"view_activation_keys":true,"edit_activation_keys":true,"destroy_activation_keys":true}} ' @@ -318,6 +318,8 @@ interactions: - max-age=0, private, must-revalidate Connection: - Keep-Alive + Content-Length: + - '729' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -329,15 +331,13 @@ interactions: Foreman_current_location: - ; ANY Foreman_current_organization: - - 5; Test Organization + - 4; Test Organization Foreman_version: - - 3.7.0-develop + - 3.7.1 Keep-Alive: - timeout=15, max=95 Strict-Transport-Security: - max-age=631139040; includeSubdomains - Transfer-Encoding: - - chunked X-Content-Type-Options: - nosniff X-Download-Options: diff --git a/tests/test_playbooks/fixtures/convert2rhel-22.yml b/tests/test_playbooks/fixtures/convert2rhel-22.yml index 3f43316e8..78b30d3f0 100644 --- a/tests/test_playbooks/fixtures/convert2rhel-22.yml +++ b/tests/test_playbooks/fixtures/convert2rhel-22.yml @@ -14,12 +14,14 @@ interactions: uri: https://foreman.example.org/api/status response: body: - string: '{"satellite_version":"6.14.0","result":"ok","status":200,"version":"3.7.0-develop","api_version":2}' + string: '{"result":"ok","status":200,"version":"3.7.1","api_version":2}' headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive + Content-Length: + - '102' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -33,13 +35,11 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-develop + - 3.7.1 Keep-Alive: - timeout=15, max=100 Strict-Transport-Security: - max-age=631139040; includeSubdomains - Transfer-Encoding: - - chunked X-Content-Type-Options: - nosniff X-Download-Options: @@ -68,16 +68,18 @@ interactions: uri: https://foreman.example.org/katello/api/organizations?search=name%3D%22Test+Organization%22&per_page=4294967296 response: body: - string: "{\n \"total\": 3,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": + string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": 4294967296,\n \"search\": \"name=\\\"Test Organization\\\"\",\n \"sort\": - {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\":\"Test_Organization\",\"created_at\":\"2023-06-21 - 13:24:35 UTC\",\"updated_at\":\"2023-06-21 13:24:38 UTC\",\"id\":5,\"name\":\"Test + {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\":\"Test_Organization\",\"created_at\":\"2023-11-13 + 09:23:21 UTC\",\"updated_at\":\"2023-11-13 09:23:23 UTC\",\"id\":4,\"name\":\"Test Organization\",\"title\":\"Test Organization\",\"description\":\"A test organization\"}]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive + Content-Length: + - '388' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -91,13 +93,11 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-develop + - 3.7.1 Keep-Alive: - timeout=15, max=99 Strict-Transport-Security: - max-age=631139040; includeSubdomains - Transfer-Encoding: - - chunked X-Content-Type-Options: - nosniff X-Download-Options: @@ -123,10 +123,10 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/organizations/5/activation_keys?search=name%3D%22convert2rhel_oracle8%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/organizations/4/activation_keys?search=name%3D%22convert2rhel_rhel8%22&per_page=4294967296 response: body: - string: '{"total":3,"subtotal":0,"selectable":0,"page":1,"per_page":"4294967296","error":null,"search":"name=\"convert2rhel_oracle8\"","sort":{"by":"name","order":"asc"},"results":[]} + string: '{"total":5,"subtotal":0,"selectable":0,"page":1,"per_page":"4294967296","error":null,"search":"name=\"convert2rhel_rhel8\"","sort":{"by":"name","order":"asc"},"results":[]} ' headers: @@ -134,6 +134,8 @@ interactions: - max-age=0, private, must-revalidate Connection: - Keep-Alive + Content-Length: + - '173' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -145,15 +147,13 @@ interactions: Foreman_current_location: - ; ANY Foreman_current_organization: - - 5; Test Organization + - 4; Test Organization Foreman_version: - - 3.7.0-develop + - 3.7.1 Keep-Alive: - timeout=15, max=98 Strict-Transport-Security: - max-age=631139040; includeSubdomains - Transfer-Encoding: - - chunked X-Content-Type-Options: - nosniff X-Download-Options: @@ -179,12 +179,12 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/organizations/5/environments?search=name%3D%22Library%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/organizations/4/environments?search=name%3D%22Library%22&per_page=4294967296 response: body: - string: '{"total":1,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Library\"","sort":{"by":"name","order":"asc"},"results":[{"library":true,"registry_name_pattern":null,"registry_unauthenticated_pull":false,"id":3,"name":"Library","label":"Library","description":null,"organization_id":5,"organization":{"name":"Test - Organization","label":"Test_Organization","id":5},"created_at":"2023-06-21 - 13:24:36 UTC","updated_at":"2023-06-21 13:24:36 UTC","prior":null,"successor":null,"counts":{"content_hosts":0,"content_views":2,"packages":1773,"module_streams":0,"errata":{"security":4,"bugfix":2,"enhancement":12,"total":18},"yum_repositories":4,"docker_repositories":0,"ostree_repositories":0,"products":4,"debs":0,"deb_repositories":0},"permissions":{"create_lifecycle_environments":true,"view_lifecycle_environments":true,"edit_lifecycle_environments":true,"destroy_lifecycle_environments":false,"promote_or_remove_content_views_to_environments":true},"content_views":[{"name":"convert2rhel_centos7","id":7},{"name":"convert2rhel_centos8","id":8}]}]} + string: '{"total":1,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Library\"","sort":{"by":"name","order":"asc"},"results":[{"library":true,"registry_name_pattern":null,"registry_unauthenticated_pull":false,"id":3,"name":"Library","label":"Library","description":null,"organization_id":4,"organization":{"name":"Test + Organization","label":"Test_Organization","id":4},"created_at":"2023-11-13 + 09:23:22 UTC","updated_at":"2023-11-13 09:23:22 UTC","prior":null,"successor":null,"counts":{"content_hosts":0,"content_views":2,"packages":1782,"module_streams":0,"errata":{"security":4,"bugfix":4,"enhancement":16,"total":24},"yum_repositories":4,"docker_repositories":0,"ostree_repositories":0,"products":4,"debs":0,"deb_repositories":0},"permissions":{"create_lifecycle_environments":true,"view_lifecycle_environments":true,"edit_lifecycle_environments":true,"destroy_lifecycle_environments":false,"promote_or_remove_content_views_to_environments":true},"content_views":[{"name":"convert2rhel_centos7","id":6},{"name":"convert2rhel_centos8","id":7}]}]} ' headers: @@ -192,6 +192,8 @@ interactions: - max-age=0, private, must-revalidate Connection: - Keep-Alive + Content-Length: + - '1083' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -203,15 +205,13 @@ interactions: Foreman_current_location: - ; ANY Foreman_current_organization: - - 5; Test Organization + - 4; Test Organization Foreman_version: - - 3.7.0-develop + - 3.7.1 Keep-Alive: - timeout=15, max=97 Strict-Transport-Security: - max-age=631139040; includeSubdomains - Transfer-Encoding: - - chunked X-Content-Type-Options: - nosniff X-Download-Options: @@ -237,16 +237,16 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/organizations/5/content_views?search=name%3D%22Default+Organization+View%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/organizations/4/content_views?search=name%3D%22Default+Organization+View%22&per_page=4294967296 response: body: string: '{"total":3,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Default - Organization View\"","sort":{"by":"name","order":"asc"},"results":[{"composite":false,"component_ids":[],"default":true,"version_count":1,"latest_version":"1.0","latest_version_id":6,"auto_publish":false,"solve_dependencies":false,"import_only":false,"generated_for":"none","related_cv_count":0,"related_composite_cvs":[],"repository_ids":[],"id":6,"name":"Default - Organization View","label":"Default_Organization_View","description":null,"organization_id":5,"organization":{"name":"Test - Organization","label":"Test_Organization","id":5},"created_at":"2023-06-21 - 13:24:37 UTC","updated_at":"2023-06-21 13:24:37 UTC","last_task":null,"latest_version_environments":[{"id":3,"name":"Library","label":"Library"}],"repositories":[],"versions":[{"id":6,"version":"1.0","published":"2023-06-21 - 13:24:37 UTC","environment_ids":[3]}],"components":[],"content_view_components":[],"activation_keys":[{"id":4,"name":"convert2rhel_oracle7"}],"hosts":[],"next_version":"1.0","last_published":"2023-06-21 - 13:24:37 UTC","environments":[{"id":3,"label":"Library","name":"Library","activation_keys":[4],"hosts":[],"permissions":{"readable":true}}]}]} + Organization View\"","sort":{"by":"name","order":"asc"},"results":[{"composite":false,"component_ids":[],"default":true,"version_count":1,"latest_version":"1.0","latest_version_id":5,"auto_publish":false,"solve_dependencies":false,"import_only":false,"generated_for":"none","related_cv_count":0,"related_composite_cvs":[],"needs_publish":null,"filtered":false,"repository_ids":[],"id":5,"name":"Default + Organization View","label":"Default_Organization_View","description":null,"organization_id":4,"organization":{"name":"Test + Organization","label":"Test_Organization","id":4},"created_at":"2023-11-13 + 09:23:22 UTC","updated_at":"2023-11-13 09:23:22 UTC","last_task":null,"latest_version_environments":[{"id":3,"name":"Library","label":"Library"}],"repositories":[],"versions":[{"id":5,"version":"1.0","published":"2023-11-13 + 09:23:22 UTC","environment_ids":[3],"filters_applied":null}],"components":[],"content_view_components":[],"activation_keys":[{"id":9,"name":"convert2rhel_oracle7"},{"id":10,"name":"convert2rhel_oracle8"},{"id":11,"name":"convert2rhel_rhel7"}],"hosts":[],"next_version":"1.0","last_published":"2023-11-13 + 09:23:22 UTC","environments":[{"id":3,"label":"Library","name":"Library","activation_keys":[9,10,11],"hosts":[],"permissions":{"readable":true}}]}]} ' headers: @@ -254,6 +254,8 @@ interactions: - max-age=0, private, must-revalidate Connection: - Keep-Alive + Content-Length: + - '1388' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -265,15 +267,13 @@ interactions: Foreman_current_location: - ; ANY Foreman_current_organization: - - 5; Test Organization + - 4; Test Organization Foreman_version: - - 3.7.0-develop + - 3.7.1 Keep-Alive: - timeout=15, max=96 Strict-Transport-Security: - max-age=631139040; includeSubdomains - Transfer-Encoding: - - chunked X-Content-Type-Options: - nosniff X-Download-Options: @@ -288,8 +288,8 @@ interactions: code: 200 message: OK - request: - body: '{"organization_id": 5, "name": "convert2rhel_oracle8", "environment_id": - 3, "content_view_id": 6}' + body: '{"organization_id": 4, "name": "convert2rhel_rhel8", "environment_id": + 3, "content_view_id": 5, "auto_attach": false}' headers: Accept: - application/json;version=2 @@ -298,7 +298,7 @@ interactions: Connection: - keep-alive Content-Length: - - '97' + - '117' Content-Type: - application/json User-Agent: @@ -307,9 +307,9 @@ interactions: uri: https://foreman.example.org/katello/api/activation_keys response: body: - string: ' {"service_level":null,"content_overrides":[],"id":5,"name":"convert2rhel_oracle8","description":null,"unlimited_hosts":true,"auto_attach":true,"content_view_id":6,"environment_id":3,"usage_count":0,"user_id":4,"max_hosts":null,"release_version":null,"purpose_usage":null,"purpose_role":null,"organization_id":5,"organization":{"name":"Test - Organization","label":"Test_Organization","id":5},"created_at":"2023-06-21 - 13:29:34 UTC","updated_at":"2023-06-21 13:29:34 UTC","content_view":{"id":6,"name":"Default + string: ' {"service_level":null,"content_overrides":[],"id":12,"name":"convert2rhel_rhel8","description":null,"unlimited_hosts":true,"auto_attach":false,"content_view_id":5,"environment_id":3,"usage_count":0,"user_id":4,"max_hosts":null,"release_version":null,"purpose_usage":null,"purpose_role":null,"organization_id":4,"organization":{"name":"Test + Organization","label":"Test_Organization","id":4},"created_at":"2023-11-13 + 09:25:03 UTC","updated_at":"2023-11-13 09:25:03 UTC","content_view":{"id":5,"name":"Default Organization View"},"environment":{"name":"Library","id":3},"products":[],"host_collections":[],"purpose_addons":[],"permissions":{"view_activation_keys":true,"edit_activation_keys":true,"destroy_activation_keys":true}} ' @@ -318,6 +318,8 @@ interactions: - max-age=0, private, must-revalidate Connection: - Keep-Alive + Content-Length: + - '729' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -329,15 +331,13 @@ interactions: Foreman_current_location: - ; ANY Foreman_current_organization: - - 5; Test Organization + - 4; Test Organization Foreman_version: - - 3.7.0-develop + - 3.7.1 Keep-Alive: - timeout=15, max=95 Strict-Transport-Security: - max-age=631139040; includeSubdomains - Transfer-Encoding: - - chunked X-Content-Type-Options: - nosniff X-Download-Options: diff --git a/tests/test_playbooks/fixtures/convert2rhel-23.yml b/tests/test_playbooks/fixtures/convert2rhel-23.yml index 93532f5f6..108232943 100644 --- a/tests/test_playbooks/fixtures/convert2rhel-23.yml +++ b/tests/test_playbooks/fixtures/convert2rhel-23.yml @@ -14,12 +14,14 @@ interactions: uri: https://foreman.example.org/api/status response: body: - string: '{"satellite_version":"6.14.0","result":"ok","status":200,"version":"3.7.0-develop","api_version":2}' + string: '{"result":"ok","status":200,"version":"3.7.1","api_version":2}' headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive + Content-Length: + - '102' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -33,13 +35,11 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-develop + - 3.7.1 Keep-Alive: - timeout=15, max=100 Strict-Transport-Security: - max-age=631139040; includeSubdomains - Transfer-Encoding: - - chunked X-Content-Type-Options: - nosniff X-Download-Options: @@ -65,19 +65,19 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/organizations?search=name%3D%22Test+Organization%22&per_page=4294967296 + uri: https://foreman.example.org/api/hostgroups?search=title%3D%22CentOS+7+converting%22&per_page=4294967296 response: body: - string: "{\n \"total\": 3,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": - 4294967296,\n \"search\": \"name=\\\"Test Organization\\\"\",\n \"sort\": - {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\":\"Test_Organization\",\"created_at\":\"2023-06-21 - 13:24:35 UTC\",\"updated_at\":\"2023-06-21 13:24:38 UTC\",\"id\":5,\"name\":\"Test - Organization\",\"title\":\"Test Organization\",\"description\":\"A test organization\"}]\n}\n" + string: "{\n \"total\": 0,\n \"subtotal\": 0,\n \"page\": 1,\n \"per_page\": + 4294967296,\n \"search\": \"title=\\\"CentOS 7 converting\\\"\",\n \"sort\": + {\n \"by\": null,\n \"order\": null\n },\n \"results\": []\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive + Content-Length: + - '186' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -91,13 +91,11 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-develop + - 3.7.1 Keep-Alive: - timeout=15, max=99 Strict-Transport-Security: - max-age=631139040; includeSubdomains - Transfer-Encoding: - - chunked X-Content-Type-Options: - nosniff X-Download-Options: @@ -123,17 +121,21 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/organizations/5/activation_keys?search=name%3D%22convert2rhel_rhel7%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/organizations?search=name%3D%22Test+Organization%22&per_page=4294967296 response: body: - string: '{"total":4,"subtotal":0,"selectable":0,"page":1,"per_page":"4294967296","error":null,"search":"name=\"convert2rhel_rhel7\"","sort":{"by":"name","order":"asc"},"results":[]} - - ' + string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": + 4294967296,\n \"search\": \"name=\\\"Test Organization\\\"\",\n \"sort\": + {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\":\"Test_Organization\",\"created_at\":\"2023-11-13 + 09:23:21 UTC\",\"updated_at\":\"2023-11-13 09:23:23 UTC\",\"id\":4,\"name\":\"Test + Organization\",\"title\":\"Test Organization\",\"description\":\"A test organization\"}]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive + Content-Length: + - '388' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -145,15 +147,13 @@ interactions: Foreman_current_location: - ; ANY Foreman_current_organization: - - 5; Test Organization + - ; ANY Foreman_version: - - 3.7.0-develop + - 3.7.1 Keep-Alive: - timeout=15, max=98 Strict-Transport-Security: - max-age=631139040; includeSubdomains - Transfer-Encoding: - - chunked X-Content-Type-Options: - nosniff X-Download-Options: @@ -179,19 +179,21 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/organizations/5/environments?search=name%3D%22Library%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/organizations?search=name%3D%22Test+Organization%22&per_page=4294967296 response: body: - string: '{"total":1,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Library\"","sort":{"by":"name","order":"asc"},"results":[{"library":true,"registry_name_pattern":null,"registry_unauthenticated_pull":false,"id":3,"name":"Library","label":"Library","description":null,"organization_id":5,"organization":{"name":"Test - Organization","label":"Test_Organization","id":5},"created_at":"2023-06-21 - 13:24:36 UTC","updated_at":"2023-06-21 13:24:36 UTC","prior":null,"successor":null,"counts":{"content_hosts":0,"content_views":2,"packages":1773,"module_streams":0,"errata":{"security":4,"bugfix":2,"enhancement":12,"total":18},"yum_repositories":4,"docker_repositories":0,"ostree_repositories":0,"products":4,"debs":0,"deb_repositories":0},"permissions":{"create_lifecycle_environments":true,"view_lifecycle_environments":true,"edit_lifecycle_environments":true,"destroy_lifecycle_environments":false,"promote_or_remove_content_views_to_environments":true},"content_views":[{"name":"convert2rhel_centos7","id":7},{"name":"convert2rhel_centos8","id":8}]}]} - - ' + string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": + 4294967296,\n \"search\": \"name=\\\"Test Organization\\\"\",\n \"sort\": + {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\":\"Test_Organization\",\"created_at\":\"2023-11-13 + 09:23:21 UTC\",\"updated_at\":\"2023-11-13 09:23:23 UTC\",\"id\":4,\"name\":\"Test + Organization\",\"title\":\"Test Organization\",\"description\":\"A test organization\"}]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive + Content-Length: + - '388' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -203,77 +205,13 @@ interactions: Foreman_current_location: - ; ANY Foreman_current_organization: - - 5; Test Organization - Foreman_version: - - 3.7.0-develop - Keep-Alive: - - timeout=15, max=97 - Strict-Transport-Security: - - max-age=631139040; includeSubdomains - Transfer-Encoding: - - chunked - X-Content-Type-Options: - - nosniff - X-Download-Options: - - noopen - X-Frame-Options: - - sameorigin - X-Permitted-Cross-Domain-Policies: - - none - X-XSS-Protection: - - 1; mode=block - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json;version=2 - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - apypie (https://github.com/Apipie/apypie) - method: GET - uri: https://foreman.example.org/katello/api/organizations/5/content_views?search=name%3D%22Default+Organization+View%22&per_page=4294967296 - response: - body: - string: '{"total":3,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Default - Organization View\"","sort":{"by":"name","order":"asc"},"results":[{"composite":false,"component_ids":[],"default":true,"version_count":1,"latest_version":"1.0","latest_version_id":6,"auto_publish":false,"solve_dependencies":false,"import_only":false,"generated_for":"none","related_cv_count":0,"related_composite_cvs":[],"repository_ids":[],"id":6,"name":"Default - Organization View","label":"Default_Organization_View","description":null,"organization_id":5,"organization":{"name":"Test - Organization","label":"Test_Organization","id":5},"created_at":"2023-06-21 - 13:24:37 UTC","updated_at":"2023-06-21 13:24:37 UTC","last_task":null,"latest_version_environments":[{"id":3,"name":"Library","label":"Library"}],"repositories":[],"versions":[{"id":6,"version":"1.0","published":"2023-06-21 - 13:24:37 UTC","environment_ids":[3]}],"components":[],"content_view_components":[],"activation_keys":[{"id":4,"name":"convert2rhel_oracle7"},{"id":5,"name":"convert2rhel_oracle8"}],"hosts":[],"next_version":"1.0","last_published":"2023-06-21 - 13:24:37 UTC","environments":[{"id":3,"label":"Library","name":"Library","activation_keys":[4,5],"hosts":[],"permissions":{"readable":true}}]}]} - - ' - headers: - Cache-Control: - - max-age=0, private, must-revalidate - Connection: - - Keep-Alive - Content-Security-Policy: - - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; - style-src ''unsafe-inline'' ''self''' - Content-Type: - - application/json; charset=utf-8 - Foreman_api_version: - - '2' - Foreman_current_location: - ; ANY - Foreman_current_organization: - - 5; Test Organization Foreman_version: - - 3.7.0-develop + - 3.7.1 Keep-Alive: - - timeout=15, max=96 + - timeout=15, max=97 Strict-Transport-Security: - max-age=631139040; includeSubdomains - Transfer-Encoding: - - chunked X-Content-Type-Options: - nosniff X-Download-Options: @@ -288,8 +226,9 @@ interactions: code: 200 message: OK - request: - body: '{"organization_id": 5, "name": "convert2rhel_rhel7", "environment_id": - 3, "content_view_id": 6, "auto_attach": false}' + body: '{"hostgroup": {"name": "CentOS 7 converting", "group_parameters_attributes": + [{"name": "kt_activation_keys", "parameter_type": "string", "value": "convert2rhel_centos7"}], + "organization_ids": [4]}}' headers: Accept: - application/json;version=2 @@ -298,26 +237,29 @@ interactions: Connection: - keep-alive Content-Length: - - '117' + - '197' Content-Type: - application/json User-Agent: - apypie (https://github.com/Apipie/apypie) method: POST - uri: https://foreman.example.org/katello/api/activation_keys + uri: https://foreman.example.org/api/hostgroups response: body: - string: ' {"service_level":null,"content_overrides":[],"id":6,"name":"convert2rhel_rhel7","description":null,"unlimited_hosts":true,"auto_attach":false,"content_view_id":6,"environment_id":3,"usage_count":0,"user_id":4,"max_hosts":null,"release_version":null,"purpose_usage":null,"purpose_role":null,"organization_id":5,"organization":{"name":"Test - Organization","label":"Test_Organization","id":5},"created_at":"2023-06-21 - 13:29:37 UTC","updated_at":"2023-06-21 13:29:37 UTC","content_view":{"id":6,"name":"Default - Organization View"},"environment":{"name":"Library","id":3},"products":[],"host_collections":[],"purpose_addons":[],"permissions":{"view_activation_keys":true,"edit_activation_keys":true,"destroy_activation_keys":true}} - - ' + string: '{"subnet_id":null,"subnet_name":null,"operatingsystem_id":null,"operatingsystem_name":null,"domain_id":null,"domain_name":null,"compute_profile_id":null,"compute_profile_name":null,"ancestry":null,"parent_id":null,"parent_name":null,"ptable_id":null,"ptable_name":null,"medium_id":null,"medium_name":null,"pxe_loader":null,"subnet6_id":null,"subnet6_name":null,"compute_resource_id":null,"compute_resource_name":null,"architecture_id":null,"architecture_name":null,"realm_id":null,"realm_name":null,"created_at":"2023-11-13 + 09:25:04 UTC","updated_at":"2023-11-13 09:25:04 UTC","id":5,"name":"CentOS + 7 converting","title":"CentOS 7 converting","description":null,"puppet_proxy_id":null,"puppet_proxy_name":null,"puppet_ca_proxy_id":null,"puppet_ca_proxy_name":null,"puppet_proxy":null,"puppet_ca_proxy":null,"inherited_compute_profile_id":null,"inherited_domain_id":null,"inherited_puppet_proxy_id":null,"inherited_puppet_ca_proxy_id":null,"inherited_compute_resource_id":null,"inherited_operatingsystem_id":null,"inherited_architecture_id":null,"inherited_medium_id":null,"inherited_ptable_id":null,"inherited_subnet_id":null,"inherited_subnet6_id":null,"inherited_realm_id":null,"inherited_pxe_loader":null,"parameters":[{"priority":60,"created_at":"2023-11-13 + 09:25:04 UTC","updated_at":"2023-11-13 09:25:04 UTC","id":10,"name":"kt_activation_keys","parameter_type":"string","associated_type":"host + group","hidden_value?":false,"value":"convert2rhel_centos7"}],"template_combinations":[],"locations":[{"id":2,"name":"Default + Location","title":"Default Location","description":null}],"organizations":[{"id":4,"name":"Test + Organization","title":"Test Organization","description":"A test organization"}]}' headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive + Content-Length: + - '1703' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -329,15 +271,13 @@ interactions: Foreman_current_location: - ; ANY Foreman_current_organization: - - 5; Test Organization + - ; ANY Foreman_version: - - 3.7.0-develop + - 3.7.1 Keep-Alive: - - timeout=15, max=95 + - timeout=15, max=96 Strict-Transport-Security: - max-age=631139040; includeSubdomains - Transfer-Encoding: - - chunked X-Content-Type-Options: - nosniff X-Download-Options: diff --git a/tests/test_playbooks/fixtures/convert2rhel-24.yml b/tests/test_playbooks/fixtures/convert2rhel-24.yml index d1a2ea240..2aeb11b63 100644 --- a/tests/test_playbooks/fixtures/convert2rhel-24.yml +++ b/tests/test_playbooks/fixtures/convert2rhel-24.yml @@ -14,12 +14,14 @@ interactions: uri: https://foreman.example.org/api/status response: body: - string: '{"satellite_version":"6.14.0","result":"ok","status":200,"version":"3.7.0-develop","api_version":2}' + string: '{"result":"ok","status":200,"version":"3.7.1","api_version":2}' headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive + Content-Length: + - '102' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -33,13 +35,11 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-develop + - 3.7.1 Keep-Alive: - timeout=15, max=100 Strict-Transport-Security: - max-age=631139040; includeSubdomains - Transfer-Encoding: - - chunked X-Content-Type-Options: - nosniff X-Download-Options: @@ -65,19 +65,19 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/organizations?search=name%3D%22Test+Organization%22&per_page=4294967296 + uri: https://foreman.example.org/api/hostgroups?search=title%3D%22CentOS+8+converting%22&per_page=4294967296 response: body: - string: "{\n \"total\": 3,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": - 4294967296,\n \"search\": \"name=\\\"Test Organization\\\"\",\n \"sort\": - {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\":\"Test_Organization\",\"created_at\":\"2023-06-21 - 13:24:35 UTC\",\"updated_at\":\"2023-06-21 13:24:38 UTC\",\"id\":5,\"name\":\"Test - Organization\",\"title\":\"Test Organization\",\"description\":\"A test organization\"}]\n}\n" + string: "{\n \"total\": 1,\n \"subtotal\": 0,\n \"page\": 1,\n \"per_page\": + 4294967296,\n \"search\": \"title=\\\"CentOS 8 converting\\\"\",\n \"sort\": + {\n \"by\": null,\n \"order\": null\n },\n \"results\": []\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive + Content-Length: + - '186' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -91,13 +91,11 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-develop + - 3.7.1 Keep-Alive: - timeout=15, max=99 Strict-Transport-Security: - max-age=631139040; includeSubdomains - Transfer-Encoding: - - chunked X-Content-Type-Options: - nosniff X-Download-Options: @@ -123,17 +121,21 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/organizations/5/activation_keys?search=name%3D%22convert2rhel_rhel8%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/organizations?search=name%3D%22Test+Organization%22&per_page=4294967296 response: body: - string: '{"total":5,"subtotal":0,"selectable":0,"page":1,"per_page":"4294967296","error":null,"search":"name=\"convert2rhel_rhel8\"","sort":{"by":"name","order":"asc"},"results":[]} - - ' + string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": + 4294967296,\n \"search\": \"name=\\\"Test Organization\\\"\",\n \"sort\": + {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\":\"Test_Organization\",\"created_at\":\"2023-11-13 + 09:23:21 UTC\",\"updated_at\":\"2023-11-13 09:23:23 UTC\",\"id\":4,\"name\":\"Test + Organization\",\"title\":\"Test Organization\",\"description\":\"A test organization\"}]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive + Content-Length: + - '388' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -145,15 +147,13 @@ interactions: Foreman_current_location: - ; ANY Foreman_current_organization: - - 5; Test Organization + - ; ANY Foreman_version: - - 3.7.0-develop + - 3.7.1 Keep-Alive: - timeout=15, max=98 Strict-Transport-Security: - max-age=631139040; includeSubdomains - Transfer-Encoding: - - chunked X-Content-Type-Options: - nosniff X-Download-Options: @@ -179,19 +179,21 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/organizations/5/environments?search=name%3D%22Library%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/organizations?search=name%3D%22Test+Organization%22&per_page=4294967296 response: body: - string: '{"total":1,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Library\"","sort":{"by":"name","order":"asc"},"results":[{"library":true,"registry_name_pattern":null,"registry_unauthenticated_pull":false,"id":3,"name":"Library","label":"Library","description":null,"organization_id":5,"organization":{"name":"Test - Organization","label":"Test_Organization","id":5},"created_at":"2023-06-21 - 13:24:36 UTC","updated_at":"2023-06-21 13:24:36 UTC","prior":null,"successor":null,"counts":{"content_hosts":0,"content_views":2,"packages":1773,"module_streams":0,"errata":{"security":4,"bugfix":2,"enhancement":12,"total":18},"yum_repositories":4,"docker_repositories":0,"ostree_repositories":0,"products":4,"debs":0,"deb_repositories":0},"permissions":{"create_lifecycle_environments":true,"view_lifecycle_environments":true,"edit_lifecycle_environments":true,"destroy_lifecycle_environments":false,"promote_or_remove_content_views_to_environments":true},"content_views":[{"name":"convert2rhel_centos7","id":7},{"name":"convert2rhel_centos8","id":8}]}]} - - ' + string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": + 4294967296,\n \"search\": \"name=\\\"Test Organization\\\"\",\n \"sort\": + {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\":\"Test_Organization\",\"created_at\":\"2023-11-13 + 09:23:21 UTC\",\"updated_at\":\"2023-11-13 09:23:23 UTC\",\"id\":4,\"name\":\"Test + Organization\",\"title\":\"Test Organization\",\"description\":\"A test organization\"}]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive + Content-Length: + - '388' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -203,77 +205,13 @@ interactions: Foreman_current_location: - ; ANY Foreman_current_organization: - - 5; Test Organization - Foreman_version: - - 3.7.0-develop - Keep-Alive: - - timeout=15, max=97 - Strict-Transport-Security: - - max-age=631139040; includeSubdomains - Transfer-Encoding: - - chunked - X-Content-Type-Options: - - nosniff - X-Download-Options: - - noopen - X-Frame-Options: - - sameorigin - X-Permitted-Cross-Domain-Policies: - - none - X-XSS-Protection: - - 1; mode=block - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json;version=2 - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - apypie (https://github.com/Apipie/apypie) - method: GET - uri: https://foreman.example.org/katello/api/organizations/5/content_views?search=name%3D%22Default+Organization+View%22&per_page=4294967296 - response: - body: - string: '{"total":3,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Default - Organization View\"","sort":{"by":"name","order":"asc"},"results":[{"composite":false,"component_ids":[],"default":true,"version_count":1,"latest_version":"1.0","latest_version_id":6,"auto_publish":false,"solve_dependencies":false,"import_only":false,"generated_for":"none","related_cv_count":0,"related_composite_cvs":[],"repository_ids":[],"id":6,"name":"Default - Organization View","label":"Default_Organization_View","description":null,"organization_id":5,"organization":{"name":"Test - Organization","label":"Test_Organization","id":5},"created_at":"2023-06-21 - 13:24:37 UTC","updated_at":"2023-06-21 13:24:37 UTC","last_task":null,"latest_version_environments":[{"id":3,"name":"Library","label":"Library"}],"repositories":[],"versions":[{"id":6,"version":"1.0","published":"2023-06-21 - 13:24:37 UTC","environment_ids":[3]}],"components":[],"content_view_components":[],"activation_keys":[{"id":4,"name":"convert2rhel_oracle7"},{"id":5,"name":"convert2rhel_oracle8"},{"id":6,"name":"convert2rhel_rhel7"}],"hosts":[],"next_version":"1.0","last_published":"2023-06-21 - 13:24:37 UTC","environments":[{"id":3,"label":"Library","name":"Library","activation_keys":[4,5,6],"hosts":[],"permissions":{"readable":true}}]}]} - - ' - headers: - Cache-Control: - - max-age=0, private, must-revalidate - Connection: - - Keep-Alive - Content-Security-Policy: - - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; - style-src ''unsafe-inline'' ''self''' - Content-Type: - - application/json; charset=utf-8 - Foreman_api_version: - - '2' - Foreman_current_location: - ; ANY - Foreman_current_organization: - - 5; Test Organization Foreman_version: - - 3.7.0-develop + - 3.7.1 Keep-Alive: - - timeout=15, max=96 + - timeout=15, max=97 Strict-Transport-Security: - max-age=631139040; includeSubdomains - Transfer-Encoding: - - chunked X-Content-Type-Options: - nosniff X-Download-Options: @@ -288,8 +226,9 @@ interactions: code: 200 message: OK - request: - body: '{"organization_id": 5, "name": "convert2rhel_rhel8", "environment_id": - 3, "content_view_id": 6, "auto_attach": false}' + body: '{"hostgroup": {"name": "CentOS 8 converting", "group_parameters_attributes": + [{"name": "kt_activation_keys", "parameter_type": "string", "value": "convert2rhel_centos8"}], + "organization_ids": [4]}}' headers: Accept: - application/json;version=2 @@ -298,26 +237,29 @@ interactions: Connection: - keep-alive Content-Length: - - '117' + - '197' Content-Type: - application/json User-Agent: - apypie (https://github.com/Apipie/apypie) method: POST - uri: https://foreman.example.org/katello/api/activation_keys + uri: https://foreman.example.org/api/hostgroups response: body: - string: ' {"service_level":null,"content_overrides":[],"id":7,"name":"convert2rhel_rhel8","description":null,"unlimited_hosts":true,"auto_attach":false,"content_view_id":6,"environment_id":3,"usage_count":0,"user_id":4,"max_hosts":null,"release_version":null,"purpose_usage":null,"purpose_role":null,"organization_id":5,"organization":{"name":"Test - Organization","label":"Test_Organization","id":5},"created_at":"2023-06-21 - 13:29:40 UTC","updated_at":"2023-06-21 13:29:41 UTC","content_view":{"id":6,"name":"Default - Organization View"},"environment":{"name":"Library","id":3},"products":[],"host_collections":[],"purpose_addons":[],"permissions":{"view_activation_keys":true,"edit_activation_keys":true,"destroy_activation_keys":true}} - - ' + string: '{"subnet_id":null,"subnet_name":null,"operatingsystem_id":null,"operatingsystem_name":null,"domain_id":null,"domain_name":null,"compute_profile_id":null,"compute_profile_name":null,"ancestry":null,"parent_id":null,"parent_name":null,"ptable_id":null,"ptable_name":null,"medium_id":null,"medium_name":null,"pxe_loader":null,"subnet6_id":null,"subnet6_name":null,"compute_resource_id":null,"compute_resource_name":null,"architecture_id":null,"architecture_name":null,"realm_id":null,"realm_name":null,"created_at":"2023-11-13 + 09:25:05 UTC","updated_at":"2023-11-13 09:25:05 UTC","id":6,"name":"CentOS + 8 converting","title":"CentOS 8 converting","description":null,"puppet_proxy_id":null,"puppet_proxy_name":null,"puppet_ca_proxy_id":null,"puppet_ca_proxy_name":null,"puppet_proxy":null,"puppet_ca_proxy":null,"inherited_compute_profile_id":null,"inherited_domain_id":null,"inherited_puppet_proxy_id":null,"inherited_puppet_ca_proxy_id":null,"inherited_compute_resource_id":null,"inherited_operatingsystem_id":null,"inherited_architecture_id":null,"inherited_medium_id":null,"inherited_ptable_id":null,"inherited_subnet_id":null,"inherited_subnet6_id":null,"inherited_realm_id":null,"inherited_pxe_loader":null,"parameters":[{"priority":60,"created_at":"2023-11-13 + 09:25:05 UTC","updated_at":"2023-11-13 09:25:05 UTC","id":11,"name":"kt_activation_keys","parameter_type":"string","associated_type":"host + group","hidden_value?":false,"value":"convert2rhel_centos8"}],"template_combinations":[],"locations":[{"id":2,"name":"Default + Location","title":"Default Location","description":null}],"organizations":[{"id":4,"name":"Test + Organization","title":"Test Organization","description":"A test organization"}]}' headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive + Content-Length: + - '1703' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -329,15 +271,13 @@ interactions: Foreman_current_location: - ; ANY Foreman_current_organization: - - 5; Test Organization + - ; ANY Foreman_version: - - 3.7.0-develop + - 3.7.1 Keep-Alive: - - timeout=15, max=95 + - timeout=15, max=96 Strict-Transport-Security: - max-age=631139040; includeSubdomains - Transfer-Encoding: - - chunked X-Content-Type-Options: - nosniff X-Download-Options: diff --git a/tests/test_playbooks/fixtures/convert2rhel-25.yml b/tests/test_playbooks/fixtures/convert2rhel-25.yml index b473bf505..cdbde9ef1 100644 --- a/tests/test_playbooks/fixtures/convert2rhel-25.yml +++ b/tests/test_playbooks/fixtures/convert2rhel-25.yml @@ -14,12 +14,14 @@ interactions: uri: https://foreman.example.org/api/status response: body: - string: '{"satellite_version":"6.14.0","result":"ok","status":200,"version":"3.7.0-develop","api_version":2}' + string: '{"result":"ok","status":200,"version":"3.7.1","api_version":2}' headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive + Content-Length: + - '102' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -33,13 +35,11 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-develop + - 3.7.1 Keep-Alive: - timeout=15, max=100 Strict-Transport-Security: - max-age=631139040; includeSubdomains - Transfer-Encoding: - - chunked X-Content-Type-Options: - nosniff X-Download-Options: @@ -65,17 +65,20 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/api/hostgroups?search=title%3D%22CentOS+7+converting%22&per_page=4294967296 + uri: https://foreman.example.org/api/hostgroups?search=title%3D%22Oracle+Linux+7+converting%22&per_page=4294967296 response: body: - string: "{\n \"total\": 1,\n \"subtotal\": 0,\n \"page\": 1,\n \"per_page\": - 4294967296,\n \"search\": \"title=\\\"CentOS 7 converting\\\"\",\n \"sort\": - {\n \"by\": null,\n \"order\": null\n },\n \"results\": []\n}\n" + string: "{\n \"total\": 2,\n \"subtotal\": 0,\n \"page\": 1,\n \"per_page\": + 4294967296,\n \"search\": \"title=\\\"Oracle Linux 7 converting\\\"\",\n + \ \"sort\": {\n \"by\": null,\n \"order\": null\n },\n \"results\": + []\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive + Content-Length: + - '192' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -89,13 +92,11 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-develop + - 3.7.1 Keep-Alive: - timeout=15, max=99 Strict-Transport-Security: - max-age=631139040; includeSubdomains - Transfer-Encoding: - - chunked X-Content-Type-Options: - nosniff X-Download-Options: @@ -124,16 +125,18 @@ interactions: uri: https://foreman.example.org/katello/api/organizations?search=name%3D%22Test+Organization%22&per_page=4294967296 response: body: - string: "{\n \"total\": 3,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": + string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": 4294967296,\n \"search\": \"name=\\\"Test Organization\\\"\",\n \"sort\": - {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\":\"Test_Organization\",\"created_at\":\"2023-06-21 - 13:24:35 UTC\",\"updated_at\":\"2023-06-21 13:24:38 UTC\",\"id\":5,\"name\":\"Test + {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\":\"Test_Organization\",\"created_at\":\"2023-11-13 + 09:23:21 UTC\",\"updated_at\":\"2023-11-13 09:23:23 UTC\",\"id\":4,\"name\":\"Test Organization\",\"title\":\"Test Organization\",\"description\":\"A test organization\"}]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive + Content-Length: + - '388' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -147,13 +150,11 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-develop + - 3.7.1 Keep-Alive: - timeout=15, max=98 Strict-Transport-Security: - max-age=631139040; includeSubdomains - Transfer-Encoding: - - chunked X-Content-Type-Options: - nosniff X-Download-Options: @@ -182,16 +183,18 @@ interactions: uri: https://foreman.example.org/katello/api/organizations?search=name%3D%22Test+Organization%22&per_page=4294967296 response: body: - string: "{\n \"total\": 3,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": + string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": 4294967296,\n \"search\": \"name=\\\"Test Organization\\\"\",\n \"sort\": - {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\":\"Test_Organization\",\"created_at\":\"2023-06-21 - 13:24:35 UTC\",\"updated_at\":\"2023-06-21 13:24:38 UTC\",\"id\":5,\"name\":\"Test + {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\":\"Test_Organization\",\"created_at\":\"2023-11-13 + 09:23:21 UTC\",\"updated_at\":\"2023-11-13 09:23:23 UTC\",\"id\":4,\"name\":\"Test Organization\",\"title\":\"Test Organization\",\"description\":\"A test organization\"}]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive + Content-Length: + - '388' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -205,13 +208,11 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-develop + - 3.7.1 Keep-Alive: - timeout=15, max=97 Strict-Transport-Security: - max-age=631139040; includeSubdomains - Transfer-Encoding: - - chunked X-Content-Type-Options: - nosniff X-Download-Options: @@ -226,9 +227,9 @@ interactions: code: 200 message: OK - request: - body: '{"hostgroup": {"name": "CentOS 7 converting", "group_parameters_attributes": - [{"name": "kt_activation_keys", "parameter_type": "string", "value": "convert2rhel_centos7"}], - "organization_ids": [5]}}' + body: '{"hostgroup": {"name": "Oracle Linux 7 converting", "group_parameters_attributes": + [{"name": "kt_activation_keys", "parameter_type": "string", "value": "convert2rhel_oracle7"}], + "organization_ids": [4]}}' headers: Accept: - application/json;version=2 @@ -237,7 +238,7 @@ interactions: Connection: - keep-alive Content-Length: - - '197' + - '203' Content-Type: - application/json User-Agent: @@ -246,17 +247,20 @@ interactions: uri: https://foreman.example.org/api/hostgroups response: body: - string: '{"subnet_id":null,"subnet_name":null,"operatingsystem_id":null,"operatingsystem_name":null,"domain_id":null,"domain_name":null,"compute_profile_id":null,"compute_profile_name":null,"ancestry":null,"parent_id":null,"parent_name":null,"ptable_id":null,"ptable_name":null,"medium_id":null,"medium_name":null,"pxe_loader":null,"subnet6_id":null,"subnet6_name":null,"compute_resource_id":null,"compute_resource_name":null,"architecture_id":null,"architecture_name":null,"realm_id":null,"realm_name":null,"created_at":"2023-06-21 - 13:29:43 UTC","updated_at":"2023-06-21 13:29:43 UTC","id":2,"name":"CentOS - 7 converting","title":"CentOS 7 converting","description":null,"puppet_proxy_id":null,"puppet_proxy_name":null,"puppet_ca_proxy_id":null,"puppet_ca_proxy_name":null,"openscap_proxy_id":null,"openscap_proxy_name":null,"puppet_proxy":null,"puppet_ca_proxy":null,"openscap_proxy":null,"inherited_compute_profile_id":null,"inherited_domain_id":null,"inherited_puppet_proxy_id":null,"inherited_puppet_ca_proxy_id":null,"inherited_compute_resource_id":null,"inherited_operatingsystem_id":null,"inherited_architecture_id":null,"inherited_medium_id":null,"inherited_ptable_id":null,"inherited_subnet_id":null,"inherited_subnet6_id":null,"inherited_realm_id":null,"inherited_pxe_loader":null,"parameters":[{"priority":60,"created_at":"2023-06-21 - 13:29:43 UTC","updated_at":"2023-06-21 13:29:43 UTC","id":9,"name":"kt_activation_keys","parameter_type":"string","associated_type":"host - group","hidden_value?":false,"value":"convert2rhel_centos7"}],"template_combinations":[],"locations":[],"organizations":[{"id":5,"name":"Test + string: '{"subnet_id":null,"subnet_name":null,"operatingsystem_id":null,"operatingsystem_name":null,"domain_id":null,"domain_name":null,"compute_profile_id":null,"compute_profile_name":null,"ancestry":null,"parent_id":null,"parent_name":null,"ptable_id":null,"ptable_name":null,"medium_id":null,"medium_name":null,"pxe_loader":null,"subnet6_id":null,"subnet6_name":null,"compute_resource_id":null,"compute_resource_name":null,"architecture_id":null,"architecture_name":null,"realm_id":null,"realm_name":null,"created_at":"2023-11-13 + 09:25:05 UTC","updated_at":"2023-11-13 09:25:05 UTC","id":7,"name":"Oracle + Linux 7 converting","title":"Oracle Linux 7 converting","description":null,"puppet_proxy_id":null,"puppet_proxy_name":null,"puppet_ca_proxy_id":null,"puppet_ca_proxy_name":null,"puppet_proxy":null,"puppet_ca_proxy":null,"inherited_compute_profile_id":null,"inherited_domain_id":null,"inherited_puppet_proxy_id":null,"inherited_puppet_ca_proxy_id":null,"inherited_compute_resource_id":null,"inherited_operatingsystem_id":null,"inherited_architecture_id":null,"inherited_medium_id":null,"inherited_ptable_id":null,"inherited_subnet_id":null,"inherited_subnet6_id":null,"inherited_realm_id":null,"inherited_pxe_loader":null,"parameters":[{"priority":60,"created_at":"2023-11-13 + 09:25:05 UTC","updated_at":"2023-11-13 09:25:05 UTC","id":12,"name":"kt_activation_keys","parameter_type":"string","associated_type":"host + group","hidden_value?":false,"value":"convert2rhel_oracle7"}],"template_combinations":[],"locations":[{"id":2,"name":"Default + Location","title":"Default Location","description":null}],"organizations":[{"id":4,"name":"Test Organization","title":"Test Organization","description":"A test organization"}]}' headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive + Content-Length: + - '1715' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -270,13 +274,11 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-develop + - 3.7.1 Keep-Alive: - timeout=15, max=96 Strict-Transport-Security: - max-age=631139040; includeSubdomains - Transfer-Encoding: - - chunked X-Content-Type-Options: - nosniff X-Download-Options: diff --git a/tests/test_playbooks/fixtures/convert2rhel-26.yml b/tests/test_playbooks/fixtures/convert2rhel-26.yml index 6bc0c1257..5328d996b 100644 --- a/tests/test_playbooks/fixtures/convert2rhel-26.yml +++ b/tests/test_playbooks/fixtures/convert2rhel-26.yml @@ -14,12 +14,14 @@ interactions: uri: https://foreman.example.org/api/status response: body: - string: '{"satellite_version":"6.14.0","result":"ok","status":200,"version":"3.7.0-develop","api_version":2}' + string: '{"result":"ok","status":200,"version":"3.7.1","api_version":2}' headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive + Content-Length: + - '102' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -33,13 +35,11 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-develop + - 3.7.1 Keep-Alive: - timeout=15, max=100 Strict-Transport-Security: - max-age=631139040; includeSubdomains - Transfer-Encoding: - - chunked X-Content-Type-Options: - nosniff X-Download-Options: @@ -65,17 +65,20 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/api/hostgroups?search=title%3D%22CentOS+8+converting%22&per_page=4294967296 + uri: https://foreman.example.org/api/hostgroups?search=title%3D%22Oracle+Linux+8+converting%22&per_page=4294967296 response: body: - string: "{\n \"total\": 2,\n \"subtotal\": 0,\n \"page\": 1,\n \"per_page\": - 4294967296,\n \"search\": \"title=\\\"CentOS 8 converting\\\"\",\n \"sort\": - {\n \"by\": null,\n \"order\": null\n },\n \"results\": []\n}\n" + string: "{\n \"total\": 3,\n \"subtotal\": 0,\n \"page\": 1,\n \"per_page\": + 4294967296,\n \"search\": \"title=\\\"Oracle Linux 8 converting\\\"\",\n + \ \"sort\": {\n \"by\": null,\n \"order\": null\n },\n \"results\": + []\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive + Content-Length: + - '192' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -89,13 +92,11 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-develop + - 3.7.1 Keep-Alive: - timeout=15, max=99 Strict-Transport-Security: - max-age=631139040; includeSubdomains - Transfer-Encoding: - - chunked X-Content-Type-Options: - nosniff X-Download-Options: @@ -124,16 +125,18 @@ interactions: uri: https://foreman.example.org/katello/api/organizations?search=name%3D%22Test+Organization%22&per_page=4294967296 response: body: - string: "{\n \"total\": 3,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": + string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": 4294967296,\n \"search\": \"name=\\\"Test Organization\\\"\",\n \"sort\": - {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\":\"Test_Organization\",\"created_at\":\"2023-06-21 - 13:24:35 UTC\",\"updated_at\":\"2023-06-21 13:24:38 UTC\",\"id\":5,\"name\":\"Test + {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\":\"Test_Organization\",\"created_at\":\"2023-11-13 + 09:23:21 UTC\",\"updated_at\":\"2023-11-13 09:23:23 UTC\",\"id\":4,\"name\":\"Test Organization\",\"title\":\"Test Organization\",\"description\":\"A test organization\"}]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive + Content-Length: + - '388' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -147,13 +150,11 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-develop + - 3.7.1 Keep-Alive: - timeout=15, max=98 Strict-Transport-Security: - max-age=631139040; includeSubdomains - Transfer-Encoding: - - chunked X-Content-Type-Options: - nosniff X-Download-Options: @@ -182,16 +183,18 @@ interactions: uri: https://foreman.example.org/katello/api/organizations?search=name%3D%22Test+Organization%22&per_page=4294967296 response: body: - string: "{\n \"total\": 3,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": + string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": 4294967296,\n \"search\": \"name=\\\"Test Organization\\\"\",\n \"sort\": - {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\":\"Test_Organization\",\"created_at\":\"2023-06-21 - 13:24:35 UTC\",\"updated_at\":\"2023-06-21 13:24:38 UTC\",\"id\":5,\"name\":\"Test + {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\":\"Test_Organization\",\"created_at\":\"2023-11-13 + 09:23:21 UTC\",\"updated_at\":\"2023-11-13 09:23:23 UTC\",\"id\":4,\"name\":\"Test Organization\",\"title\":\"Test Organization\",\"description\":\"A test organization\"}]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive + Content-Length: + - '388' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -205,13 +208,11 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-develop + - 3.7.1 Keep-Alive: - timeout=15, max=97 Strict-Transport-Security: - max-age=631139040; includeSubdomains - Transfer-Encoding: - - chunked X-Content-Type-Options: - nosniff X-Download-Options: @@ -226,9 +227,9 @@ interactions: code: 200 message: OK - request: - body: '{"hostgroup": {"name": "CentOS 8 converting", "group_parameters_attributes": - [{"name": "kt_activation_keys", "parameter_type": "string", "value": "convert2rhel_centos8"}], - "organization_ids": [5]}}' + body: '{"hostgroup": {"name": "Oracle Linux 8 converting", "group_parameters_attributes": + [{"name": "kt_activation_keys", "parameter_type": "string", "value": "convert2rhel_oracle8"}], + "organization_ids": [4]}}' headers: Accept: - application/json;version=2 @@ -237,7 +238,7 @@ interactions: Connection: - keep-alive Content-Length: - - '197' + - '203' Content-Type: - application/json User-Agent: @@ -246,17 +247,20 @@ interactions: uri: https://foreman.example.org/api/hostgroups response: body: - string: '{"subnet_id":null,"subnet_name":null,"operatingsystem_id":null,"operatingsystem_name":null,"domain_id":null,"domain_name":null,"compute_profile_id":null,"compute_profile_name":null,"ancestry":null,"parent_id":null,"parent_name":null,"ptable_id":null,"ptable_name":null,"medium_id":null,"medium_name":null,"pxe_loader":null,"subnet6_id":null,"subnet6_name":null,"compute_resource_id":null,"compute_resource_name":null,"architecture_id":null,"architecture_name":null,"realm_id":null,"realm_name":null,"created_at":"2023-06-21 - 13:29:45 UTC","updated_at":"2023-06-21 13:29:45 UTC","id":3,"name":"CentOS - 8 converting","title":"CentOS 8 converting","description":null,"puppet_proxy_id":null,"puppet_proxy_name":null,"puppet_ca_proxy_id":null,"puppet_ca_proxy_name":null,"openscap_proxy_id":null,"openscap_proxy_name":null,"puppet_proxy":null,"puppet_ca_proxy":null,"openscap_proxy":null,"inherited_compute_profile_id":null,"inherited_domain_id":null,"inherited_puppet_proxy_id":null,"inherited_puppet_ca_proxy_id":null,"inherited_compute_resource_id":null,"inherited_operatingsystem_id":null,"inherited_architecture_id":null,"inherited_medium_id":null,"inherited_ptable_id":null,"inherited_subnet_id":null,"inherited_subnet6_id":null,"inherited_realm_id":null,"inherited_pxe_loader":null,"parameters":[{"priority":60,"created_at":"2023-06-21 - 13:29:45 UTC","updated_at":"2023-06-21 13:29:45 UTC","id":10,"name":"kt_activation_keys","parameter_type":"string","associated_type":"host - group","hidden_value?":false,"value":"convert2rhel_centos8"}],"template_combinations":[],"locations":[],"organizations":[{"id":5,"name":"Test + string: '{"subnet_id":null,"subnet_name":null,"operatingsystem_id":null,"operatingsystem_name":null,"domain_id":null,"domain_name":null,"compute_profile_id":null,"compute_profile_name":null,"ancestry":null,"parent_id":null,"parent_name":null,"ptable_id":null,"ptable_name":null,"medium_id":null,"medium_name":null,"pxe_loader":null,"subnet6_id":null,"subnet6_name":null,"compute_resource_id":null,"compute_resource_name":null,"architecture_id":null,"architecture_name":null,"realm_id":null,"realm_name":null,"created_at":"2023-11-13 + 09:25:06 UTC","updated_at":"2023-11-13 09:25:06 UTC","id":8,"name":"Oracle + Linux 8 converting","title":"Oracle Linux 8 converting","description":null,"puppet_proxy_id":null,"puppet_proxy_name":null,"puppet_ca_proxy_id":null,"puppet_ca_proxy_name":null,"puppet_proxy":null,"puppet_ca_proxy":null,"inherited_compute_profile_id":null,"inherited_domain_id":null,"inherited_puppet_proxy_id":null,"inherited_puppet_ca_proxy_id":null,"inherited_compute_resource_id":null,"inherited_operatingsystem_id":null,"inherited_architecture_id":null,"inherited_medium_id":null,"inherited_ptable_id":null,"inherited_subnet_id":null,"inherited_subnet6_id":null,"inherited_realm_id":null,"inherited_pxe_loader":null,"parameters":[{"priority":60,"created_at":"2023-11-13 + 09:25:06 UTC","updated_at":"2023-11-13 09:25:06 UTC","id":13,"name":"kt_activation_keys","parameter_type":"string","associated_type":"host + group","hidden_value?":false,"value":"convert2rhel_oracle8"}],"template_combinations":[],"locations":[{"id":2,"name":"Default + Location","title":"Default Location","description":null}],"organizations":[{"id":4,"name":"Test Organization","title":"Test Organization","description":"A test organization"}]}' headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive + Content-Length: + - '1715' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -270,13 +274,11 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-develop + - 3.7.1 Keep-Alive: - timeout=15, max=96 Strict-Transport-Security: - max-age=631139040; includeSubdomains - Transfer-Encoding: - - chunked X-Content-Type-Options: - nosniff X-Download-Options: diff --git a/tests/test_playbooks/fixtures/convert2rhel-28.yml b/tests/test_playbooks/fixtures/convert2rhel-28.yml deleted file mode 100644 index 19221dc79..000000000 --- a/tests/test_playbooks/fixtures/convert2rhel-28.yml +++ /dev/null @@ -1,294 +0,0 @@ -interactions: -- request: - body: null - headers: - Accept: - - application/json;version=2 - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - apypie (https://github.com/Apipie/apypie) - method: GET - uri: https://foreman.example.org/api/status - response: - body: - string: '{"satellite_version":"6.14.0","result":"ok","status":200,"version":"3.7.0-develop","api_version":2}' - headers: - Cache-Control: - - max-age=0, private, must-revalidate - Connection: - - Keep-Alive - Content-Security-Policy: - - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; - style-src ''unsafe-inline'' ''self''' - Content-Type: - - application/json; charset=utf-8 - Foreman_api_version: - - '2' - Foreman_current_location: - - ; ANY - Foreman_current_organization: - - ; ANY - Foreman_version: - - 3.7.0-develop - Keep-Alive: - - timeout=15, max=100 - Strict-Transport-Security: - - max-age=631139040; includeSubdomains - Transfer-Encoding: - - chunked - X-Content-Type-Options: - - nosniff - X-Download-Options: - - noopen - X-Frame-Options: - - sameorigin - X-Permitted-Cross-Domain-Policies: - - none - X-XSS-Protection: - - 1; mode=block - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json;version=2 - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - apypie (https://github.com/Apipie/apypie) - method: GET - uri: https://foreman.example.org/api/hostgroups?search=title%3D%22Oracle+Linux+8+converting%22&per_page=4294967296 - response: - body: - string: "{\n \"total\": 4,\n \"subtotal\": 0,\n \"page\": 1,\n \"per_page\": - 4294967296,\n \"search\": \"title=\\\"Oracle Linux 8 converting\\\"\",\n - \ \"sort\": {\n \"by\": null,\n \"order\": null\n },\n \"results\": - []\n}\n" - headers: - Cache-Control: - - max-age=0, private, must-revalidate - Connection: - - Keep-Alive - Content-Security-Policy: - - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; - style-src ''unsafe-inline'' ''self''' - Content-Type: - - application/json; charset=utf-8 - Foreman_api_version: - - '2' - Foreman_current_location: - - ; ANY - Foreman_current_organization: - - ; ANY - Foreman_version: - - 3.7.0-develop - Keep-Alive: - - timeout=15, max=99 - Strict-Transport-Security: - - max-age=631139040; includeSubdomains - Transfer-Encoding: - - chunked - X-Content-Type-Options: - - nosniff - X-Download-Options: - - noopen - X-Frame-Options: - - sameorigin - X-Permitted-Cross-Domain-Policies: - - none - X-XSS-Protection: - - 1; mode=block - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json;version=2 - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - apypie (https://github.com/Apipie/apypie) - method: GET - uri: https://foreman.example.org/katello/api/organizations?search=name%3D%22Test+Organization%22&per_page=4294967296 - response: - body: - string: "{\n \"total\": 3,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": - 4294967296,\n \"search\": \"name=\\\"Test Organization\\\"\",\n \"sort\": - {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\":\"Test_Organization\",\"created_at\":\"2023-06-21 - 13:24:35 UTC\",\"updated_at\":\"2023-06-21 13:24:38 UTC\",\"id\":5,\"name\":\"Test - Organization\",\"title\":\"Test Organization\",\"description\":\"A test organization\"}]\n}\n" - headers: - Cache-Control: - - max-age=0, private, must-revalidate - Connection: - - Keep-Alive - Content-Security-Policy: - - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; - style-src ''unsafe-inline'' ''self''' - Content-Type: - - application/json; charset=utf-8 - Foreman_api_version: - - '2' - Foreman_current_location: - - ; ANY - Foreman_current_organization: - - ; ANY - Foreman_version: - - 3.7.0-develop - Keep-Alive: - - timeout=15, max=98 - Strict-Transport-Security: - - max-age=631139040; includeSubdomains - Transfer-Encoding: - - chunked - X-Content-Type-Options: - - nosniff - X-Download-Options: - - noopen - X-Frame-Options: - - sameorigin - X-Permitted-Cross-Domain-Policies: - - none - X-XSS-Protection: - - 1; mode=block - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json;version=2 - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - apypie (https://github.com/Apipie/apypie) - method: GET - uri: https://foreman.example.org/katello/api/organizations?search=name%3D%22Test+Organization%22&per_page=4294967296 - response: - body: - string: "{\n \"total\": 3,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": - 4294967296,\n \"search\": \"name=\\\"Test Organization\\\"\",\n \"sort\": - {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\":\"Test_Organization\",\"created_at\":\"2023-06-21 - 13:24:35 UTC\",\"updated_at\":\"2023-06-21 13:24:38 UTC\",\"id\":5,\"name\":\"Test - Organization\",\"title\":\"Test Organization\",\"description\":\"A test organization\"}]\n}\n" - headers: - Cache-Control: - - max-age=0, private, must-revalidate - Connection: - - Keep-Alive - Content-Security-Policy: - - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; - style-src ''unsafe-inline'' ''self''' - Content-Type: - - application/json; charset=utf-8 - Foreman_api_version: - - '2' - Foreman_current_location: - - ; ANY - Foreman_current_organization: - - ; ANY - Foreman_version: - - 3.7.0-develop - Keep-Alive: - - timeout=15, max=97 - Strict-Transport-Security: - - max-age=631139040; includeSubdomains - Transfer-Encoding: - - chunked - X-Content-Type-Options: - - nosniff - X-Download-Options: - - noopen - X-Frame-Options: - - sameorigin - X-Permitted-Cross-Domain-Policies: - - none - X-XSS-Protection: - - 1; mode=block - status: - code: 200 - message: OK -- request: - body: '{"hostgroup": {"name": "Oracle Linux 8 converting", "group_parameters_attributes": - [{"name": "kt_activation_keys", "parameter_type": "string", "value": "convert2rhel_oracle8"}], - "organization_ids": [5]}}' - headers: - Accept: - - application/json;version=2 - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '203' - Content-Type: - - application/json - User-Agent: - - apypie (https://github.com/Apipie/apypie) - method: POST - uri: https://foreman.example.org/api/hostgroups - response: - body: - string: '{"subnet_id":null,"subnet_name":null,"operatingsystem_id":null,"operatingsystem_name":null,"domain_id":null,"domain_name":null,"compute_profile_id":null,"compute_profile_name":null,"ancestry":null,"parent_id":null,"parent_name":null,"ptable_id":null,"ptable_name":null,"medium_id":null,"medium_name":null,"pxe_loader":null,"subnet6_id":null,"subnet6_name":null,"compute_resource_id":null,"compute_resource_name":null,"architecture_id":null,"architecture_name":null,"realm_id":null,"realm_name":null,"created_at":"2023-06-21 - 13:29:49 UTC","updated_at":"2023-06-21 13:29:49 UTC","id":5,"name":"Oracle - Linux 8 converting","title":"Oracle Linux 8 converting","description":null,"puppet_proxy_id":null,"puppet_proxy_name":null,"puppet_ca_proxy_id":null,"puppet_ca_proxy_name":null,"openscap_proxy_id":null,"openscap_proxy_name":null,"puppet_proxy":null,"puppet_ca_proxy":null,"openscap_proxy":null,"inherited_compute_profile_id":null,"inherited_domain_id":null,"inherited_puppet_proxy_id":null,"inherited_puppet_ca_proxy_id":null,"inherited_compute_resource_id":null,"inherited_operatingsystem_id":null,"inherited_architecture_id":null,"inherited_medium_id":null,"inherited_ptable_id":null,"inherited_subnet_id":null,"inherited_subnet6_id":null,"inherited_realm_id":null,"inherited_pxe_loader":null,"parameters":[{"priority":60,"created_at":"2023-06-21 - 13:29:49 UTC","updated_at":"2023-06-21 13:29:49 UTC","id":12,"name":"kt_activation_keys","parameter_type":"string","associated_type":"host - group","hidden_value?":false,"value":"convert2rhel_oracle8"}],"template_combinations":[],"locations":[],"organizations":[{"id":5,"name":"Test - Organization","title":"Test Organization","description":"A test organization"}]}' - headers: - Cache-Control: - - max-age=0, private, must-revalidate - Connection: - - Keep-Alive - Content-Security-Policy: - - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; - style-src ''unsafe-inline'' ''self''' - Content-Type: - - application/json; charset=utf-8 - Foreman_api_version: - - '2' - Foreman_current_location: - - ; ANY - Foreman_current_organization: - - ; ANY - Foreman_version: - - 3.7.0-develop - Keep-Alive: - - timeout=15, max=96 - Strict-Transport-Security: - - max-age=631139040; includeSubdomains - Transfer-Encoding: - - chunked - X-Content-Type-Options: - - nosniff - X-Download-Options: - - noopen - X-Frame-Options: - - sameorigin - X-Permitted-Cross-Domain-Policies: - - none - X-XSS-Protection: - - 1; mode=block - status: - code: 201 - message: Created -version: 1 diff --git a/tests/test_playbooks/fixtures/convert2rhel-3.yml b/tests/test_playbooks/fixtures/convert2rhel-3.yml index 9f15d775b..5f85d5d3b 100644 --- a/tests/test_playbooks/fixtures/convert2rhel-3.yml +++ b/tests/test_playbooks/fixtures/convert2rhel-3.yml @@ -14,12 +14,14 @@ interactions: uri: https://foreman.example.org/api/status response: body: - string: '{"satellite_version":"6.14.0","result":"ok","status":200,"version":"3.7.0-develop","api_version":2}' + string: '{"result":"ok","status":200,"version":"3.7.1","api_version":2}' headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive + Content-Length: + - '102' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -33,13 +35,11 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-develop + - 3.7.1 Keep-Alive: - timeout=15, max=100 Strict-Transport-Security: - max-age=631139040; includeSubdomains - Transfer-Encoding: - - chunked X-Content-Type-Options: - nosniff X-Download-Options: @@ -68,16 +68,18 @@ interactions: uri: https://foreman.example.org/katello/api/organizations?search=name%3D%22Test+Organization%22&per_page=4294967296 response: body: - string: "{\n \"total\": 3,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": + string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": 4294967296,\n \"search\": \"name=\\\"Test Organization\\\"\",\n \"sort\": - {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\":\"Test_Organization\",\"created_at\":\"2023-06-21 - 13:24:35 UTC\",\"updated_at\":\"2023-06-21 13:24:38 UTC\",\"id\":5,\"name\":\"Test + {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\":\"Test_Organization\",\"created_at\":\"2023-11-13 + 09:23:21 UTC\",\"updated_at\":\"2023-11-13 09:23:23 UTC\",\"id\":4,\"name\":\"Test Organization\",\"title\":\"Test Organization\",\"description\":\"A test organization\"}]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive + Content-Length: + - '388' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -91,13 +93,11 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-develop + - 3.7.1 Keep-Alive: - timeout=15, max=99 Strict-Transport-Security: - max-age=631139040; includeSubdomains - Transfer-Encoding: - - chunked X-Content-Type-Options: - nosniff X-Download-Options: @@ -123,11 +123,11 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/organizations/5/products?search=name%3D%22Convert2RHEL7%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/organizations/4/products?search=name%3D%22Convert2RHEL8%22&per_page=4294967296 response: body: - string: '{"total":1,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Convert2RHEL7\"","sort":{"by":"name","order":"asc"},"results":[{"id":30,"cp_id":"213774223616","name":"Convert2RHEL7","label":"Convert2RHEL7","description":null,"provider_id":5,"sync_plan_id":null,"sync_summary":{},"gpg_key_id":null,"ssl_ca_cert_id":null,"ssl_client_cert_id":null,"ssl_client_key_id":null,"sync_state":null,"last_sync":null,"last_sync_words":null,"organization_id":5,"organization":{"name":"Test - Organization","label":"Test_Organization","id":5},"sync_plan":null,"repository_count":0}]} + string: '{"total":2,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Convert2RHEL8\"","sort":{"by":"name","order":"asc"},"results":[{"id":6,"cp_id":"139454427959","name":"Convert2RHEL8","label":"Convert2RHEL8","description":null,"provider_id":5,"sync_plan_id":null,"sync_summary":{},"gpg_key_id":null,"ssl_ca_cert_id":null,"ssl_client_cert_id":null,"ssl_client_key_id":null,"sync_state":null,"last_sync":null,"last_sync_words":null,"organization_id":4,"organization":{"name":"Test + Organization","label":"Test_Organization","id":4},"sync_plan":null,"repository_count":0}]} ' headers: @@ -135,6 +135,8 @@ interactions: - max-age=0, private, must-revalidate Connection: - Keep-Alive + Content-Length: + - '605' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -146,78 +148,13 @@ interactions: Foreman_current_location: - ; ANY Foreman_current_organization: - - 5; Test Organization + - 4; Test Organization Foreman_version: - - 3.7.0-develop + - 3.7.1 Keep-Alive: - timeout=15, max=98 Strict-Transport-Security: - max-age=631139040; includeSubdomains - Transfer-Encoding: - - chunked - X-Content-Type-Options: - - nosniff - X-Download-Options: - - noopen - X-Frame-Options: - - sameorigin - X-Permitted-Cross-Domain-Policies: - - none - X-XSS-Protection: - - 1; mode=block - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json;version=2 - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - apypie (https://github.com/Apipie/apypie) - method: GET - uri: https://foreman.example.org/katello/api/content_credentials?organization_id=5&search=name%3D%22Convert2RHEL+CA%22&per_page=4294967296 - response: - body: - string: '{"total":1,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Convert2RHEL - CA\"","sort":{"by":"name","order":"asc"},"results":[{"name":"Convert2RHEL - CA","content_type":"cert","content":"-----BEGIN CERTIFICATE-----\nMIIG/TCCBOWgAwIBAgIBNzANBgkqhkiG9w0BAQUFADCBsTELMAkGA1UEBhMCVVMx\nFzAVBgNVBAgMDk5vcnRoIENhcm9saW5hMRYwFAYDVQQKDA1SZWQgSGF0LCBJbmMu\nMRgwFgYDVQQLDA9SZWQgSGF0IE5ldHdvcmsxMTAvBgNVBAMMKFJlZCBIYXQgRW50\naXRsZW1lbnQgT3BlcmF0aW9ucyBBdXRob3JpdHkxJDAiBgkqhkiG9w0BCQEWFWNh\nLXN1cHBvcnRAcmVkaGF0LmNvbTAeFw0xMDEwMDQxMzI3NDhaFw0zMDA5MjkxMzI3\nNDhaMIGuMQswCQYDVQQGEwJVUzEXMBUGA1UECAwOTm9ydGggQ2Fyb2xpbmExFjAU\nBgNVBAoMDVJlZCBIYXQsIEluYy4xGDAWBgNVBAsMD1JlZCBIYXQgTmV0d29yazEu\nMCwGA1UEAwwlUmVkIEhhdCBFbnRpdGxlbWVudCBQcm9kdWN0IEF1dGhvcml0eTEk\nMCIGCSqGSIb3DQEJARYVY2Etc3VwcG9ydEByZWRoYXQuY29tMIICIjANBgkqhkiG\n9w0BAQEFAAOCAg8AMIICCgKCAgEA2QurMeAVnCHVsuZNQzciWMdpd4LAVk2eGugN\n0cxmBpzoVI8lIsJOmJkpOAuFOQMX9CBr8RuQyg4r1/OH/rfhm6FgGIw8TGKZoWC/\n1B9teZqTiM85k6/1GRNxdk6dUK77HVO0PMIKtNBHRxIsXcRzJ1q+u5WPBes9pEVG\nnbidTNUkknrSIdynTJcqAI/I0VAsqLqX87XJSzXKvRilE+p/fLHmVTAffl1Cn/Dy\nKULxna7ooyrKKnfqeQ5dK8aMr1ASQ1wphWohLjegly9V0amEi+HHWnOL8toxJy8v\nWUTUzzAvZ4ZTtTV26xGetZZWEaNyv7YCv2AexjcBQ2x+ejrFJrVNo9jizHS06HK8\nUgHVDKhmVcAe2/5yrJCjKDLwg1FJfjKwhzhLYdNVCejpy8CHQndwO0EX1hHv/AfP\nRTAmr5qPhHFD+uuIrYrSLUpgMLmWa9dinJcGeKlA1KJvG5emGMM3k64Xr7dJToXo\n5loGyZ6lvKPIKLmfeXMRW/4+BqyzwbO1i4aIHAZcSPDFGKWwuvF0iVUYUUVxw0nv\nqPZA4roq5+j/YSz0q5XGVgiIt34htlvunLp/ICGYJBR6zEHcB9aZGJdDcJvoYZjw\n7Gphw6lFF6Ta4imoyhGECWKjd1ips3opcN+DlU0yCUrcIXVIXAnkTwu5ocOgAkxr\nf/6FjqcCAwEAAaOCAR8wggEbMB0GA1UdDgQWBBSW/bscQED/QIStsh8LJsHDam/W\nfDCB5QYDVR0jBIHdMIHagBTESXhWRZ0eLGFgw2ZLWAU3LwMie6GBtqSBszCBsDEL\nMAkGA1UEBhMCVVMxFzAVBgNVBAgMDk5vcnRoIENhcm9saW5hMRAwDgYDVQQHDAdS\nYWxlaWdoMRYwFAYDVQQKDA1SZWQgSGF0LCBJbmMuMRgwFgYDVQQLDA9SZWQgSGF0\nIE5ldHdvcmsxHjAcBgNVBAMMFUVudGl0bGVtZW50IE1hc3RlciBDQTEkMCIGCSqG\nSIb3DQEJARYVY2Etc3VwcG9ydEByZWRoYXQuY29tggkAkYrPyoUAAAAwEgYDVR0T\nAQH/BAgwBgEB/wIBADANBgkqhkiG9w0BAQUFAAOCAgEArWBznYWKpY4LqAzhOSop\nt30D2/UlCSr50l33uUCNYD4D4nTr/pyX3AR6P3JcOCz0t22pVCg8D3DZc5VlzY7y\nP5RD3KbLxFNJTloclMG0n6aIN7baA4b8zwkduMQvKZnA/YNR5xE7V7J2WJHCEBBB\nZ+ZFwGpGsoZpPZP4hHLVke3xHm6A5F5SzP1Ug0T9W80VLK4jtgyGs8l1R7rXiOIt\nNik8317KGq7DU8TI2Rw/9Gc8FKNfUYcVD7uC/MMQXJTRvkADmNLtZM63nhzpg1Hr\nhA6U5YcDCBKsPA43/wsPOONYtrAlToD5hJhU+1Rhmwcw3qvWBO3NkdilqGFOTc2K\n50PQrqoRTCZFS41nv2WqZFfbvSq4dZRJl8xpB4LAHSspsMrbr9WZHX5fbggf6ixw\nS9KDqQbM7asP0FEKBFXJV1rE8P/oSK6yVWQyigTsNcdGR4AUzDsTO9udcwoM2Ed4\nXdakVkF+dXm9ZBwv5UBf5ITSyMXL3qlusIOblJVGUQizumoq0LiSnjwbkxh2XHhd\nXD/B/qax7FnaNg+TfujR/kk3kF1OpqWx/wC/qPR+zho1+35Al31gZOfNIn/sReoM\ntcci9LFHGvijIy4VUDQK8HmGjIxJPrIIe1nB5BkiGyjwn00D5q+BwYVst1C68Rwx\niRZpyzOZmeineJvhrJZ4Tvs=\n-----END - CERTIFICATE-----\n-----BEGIN CERTIFICATE-----\nMIIGejCCBGKgAwIBAgIJAJGKz8qFAAAIMA0GCSqGSIb3DQEBDAUAMIGwMQswCQYD\nVQQGEwJVUzEXMBUGA1UECAwOTm9ydGggQ2Fyb2xpbmExEDAOBgNVBAcMB1JhbGVp\nZ2gxFjAUBgNVBAoMDVJlZCBIYXQsIEluYy4xGDAWBgNVBAsMD1JlZCBIYXQgTmV0\nd29yazEeMBwGA1UEAwwVRW50aXRsZW1lbnQgTWFzdGVyIENBMSQwIgYJKoZIhvcN\nAQkBFhVjYS1zdXBwb3J0QHJlZGhhdC5jb20wHhcNMTgwOTEyMTgxMzIxWhcNMzAw\nMzE1MTgxMzIxWjCBsTELMAkGA1UEBhMCVVMxFzAVBgNVBAgMDk5vcnRoIENhcm9s\naW5hMRYwFAYDVQQKDA1SZWQgSGF0LCBJbmMuMRgwFgYDVQQLDA9SZWQgSGF0IE5l\ndHdvcmsxMTAvBgNVBAMMKFJlZCBIYXQgRW50aXRsZW1lbnQgT3BlcmF0aW9ucyBB\ndXRob3JpdHkxJDAiBgkqhkiG9w0BCQEWFWNhLXN1cHBvcnRAcmVkaGF0LmNvbTCC\nAiIwDQYJKoZIhvcNAQEBBQADggIPADCCAgoCggIBALsmiohDnNvIpBMZVJR5pbP6\nGrE5B4doUmvTeR4XJ5C66uvFTwuGTVigNXAL+0UWf9r2AwxKEPCy65h7fLbyK4W7\n/xEZPVsamQYDHpyBwlkPkJ3WhHneqQWC8bKkv8Iqu08V+86biCDDAh6uP0SiAz7a\nNGaLEnOe5L9WNfsYyNwrG+2AfiLy/1LUtmmg5dc6Ln7R+uv0PZJ5J2iUbiT6lMz3\nv73zAxuEjiDNurZzxzHSSEYzw0W1eO6zM4F26gcOuH2BHemPMjHi+c1OnheaafDE\nHQJTNgECz5Xe7WGdZwOyn9a8GtMvm0PAhGVyp7RAWxxfoU1B794cBb66IKKjliJQ\n5DKoqyxD9qJbMF8U4Kd1ZIVB0Iy2WEaaqCFMIi3xtlWVUNku5x21ewMmJvwjnWZA\ntUeKQUFwIXqSjuOoZDu80H6NQb+4dnRSjWlx/m7HPk75m0zErshpB2HSKUnrs4wR\ni7GsWDDcqBus7eLMwUZPvDNVcLQu/2Y4DUHNbJbn7+DwEqi5D0heC+dyY8iS45gp\nI/yhVvq/GfKL+dqjaNaE4CorJJA5qJ9f383Ol/aub+aJeBahCBNuVa2daA9Bo3BA\ndnL7KkILPFyCcEhQITnu70Qn9sQlwYcRoYF2LWAm9DtLrBT0Y0w7wQHh8vNhwEQ7\nk5G87WpwzcC8y6ePR0vFAgMBAAGjgZMwgZAwHQYDVR0OBBYEFMRJeFZFnR4sYWDD\nZktYBTcvAyJ7MB8GA1UdIwQYMBaAFIhLpkXERuyP1s+m9hrPJjyQzH8XMAwGA1Ud\nEwQFMAMBAf8wCwYDVR0PBAQDAgEGMBEGCWCGSAGG+EIBAQQEAwIBBjAgBgNVHREE\nGTAXgRVjYS1zdXBwb3J0QHJlZGhhdC5jb20wDQYJKoZIhvcNAQEMBQADggIBAGKk\nq5Ab0AC7SOCYq9up5z0twbe+gI72cm854+VhcxafnLP2/4nH6nQauKLKEFLI8+fV\nRAwYxm1f5nuEiaTvjPE0umYdgMlpEJQeGdW/+/DotDaOon1G6bSMEKFvaKcBHKqa\nkBxQ29trwMG2WN8qZ7/H3XzBvLZ+JrYr01vDSV0P4tcBFOytbMZeJr4xmfxiqWxp\nVUM9eGf6z+ngXyth8lohxGd9MMXwsaPdvM+wptp3AQpq5wFPWyfJqCd6uBxu09k1\nns3Y/sya2GHqDK4bUW6gCHO13gkYviTCIBLAlX7PDeK5nYVcq8HvTLU9+H9BFGix\nYGDdHphz7i5qO/gLLLcfKhENP6jtbe8i6nwqeDzj+DMy38iMWNYFVWn1OrBaQMtf\nwlVfyRJij9SfyiUAVFld1RoPAN/haf1VmF/0dGrOigibYijqnHvDJffMUND/sbk8\ndf6O6VYjvLLlwry4W4dHiLLA7NAHGtkUv2g1+oH1lQIfRG+PvZhWz4pGT1AlzfwD\naXUfX2X+Bo9tYr9BGy5Li1pLGLvfw+an7cBAbBaw8+HhAHt+Vm4F03KX/bHlge0a\nfMYK6FoA/xQSaZ6IPm4HfPSMvhboguVG+/AZQN4/UxjDleoEz8b0CWYafcJRRZch\nBdxBjTy7JLf3j0HCbenZQF83wwtrSmiTOTK1tLsm\n-----END - CERTIFICATE-----\n-----BEGIN CERTIFICATE-----\nMIIHZDCCBUygAwIBAgIJAOb+QiglyeZeMA0GCSqGSIb3DQEBBQUAMIGwMQswCQYD\nVQQGEwJVUzEXMBUGA1UECAwOTm9ydGggQ2Fyb2xpbmExEDAOBgNVBAcMB1JhbGVp\nZ2gxFjAUBgNVBAoMDVJlZCBIYXQsIEluYy4xGDAWBgNVBAsMD1JlZCBIYXQgTmV0\nd29yazEeMBwGA1UEAwwVRW50aXRsZW1lbnQgTWFzdGVyIENBMSQwIgYJKoZIhvcN\nAQkBFhVjYS1zdXBwb3J0QHJlZGhhdC5jb20wHhcNMTAwMzE3MTkwMDQ0WhcNMzAw\nMzEyMTkwMDQ0WjCBsDELMAkGA1UEBhMCVVMxFzAVBgNVBAgMDk5vcnRoIENhcm9s\naW5hMRAwDgYDVQQHDAdSYWxlaWdoMRYwFAYDVQQKDA1SZWQgSGF0LCBJbmMuMRgw\nFgYDVQQLDA9SZWQgSGF0IE5ldHdvcmsxHjAcBgNVBAMMFUVudGl0bGVtZW50IE1h\nc3RlciBDQTEkMCIGCSqGSIb3DQEJARYVY2Etc3VwcG9ydEByZWRoYXQuY29tMIIC\nIjANBgkqhkiG9w0BAQEFAAOCAg8AMIICCgKCAgEA2Z+mW7OYcBcGxWS+RSKG2GJ2\ncsMXiGGfEp36vKVsIvypmNS60SkicKENMYREalbdSjrgfXxPJygZWsVWJ5lHPfBV\no3WkFrFHTIXd/R6LxnaHD1m8Cx3GwEeuSlE/ASjc1ePtMnsHH7xqZ9wdl85b1C8O\nscgO7fwuM192kvv/veI/BogIqUQugtG6szXpV8dp4ml029LXFoNIy2lfFoa2wKYw\nMiUHwtYgAz7TDY63e8qGhd5PoqTv9XKQogo2ze9sF9y/npZjliNy5qf6bFE+24oW\nE8pGsp3zqz8h5mvw4v+tfIx5uj7dwjDteFrrWD1tcT7UmNrBDWXjKMG81zchq3h4\netgF0iwMHEuYuixiJWNzKrLNVQbDmcLGNOvyJfq60tM8AUAd72OUQzivBegnWMit\nCLcT5viCT1AIkYXt7l5zc/duQWLeAAR2FmpZFylSukknzzeiZpPclRziYTboDYHq\nrevM97eER1xsfoSYp4mJkBHfdlqMnf3CWPcNgru8NbEPeUGMI6+C0YvknPlqDDtU\nojfl4qNdf6nWL+YNXpR1YGKgWGWgTU6uaG8Sc6qGfAoLHh6oGwbuz102j84OgjAJ\nDGv/S86svmZWSqZ5UoJOIEqFYrONcOSgztZ5tU+gP4fwRIkTRbTEWSgudVREOXhs\nbfN1YGP7HYvS0OiBKZUCAwEAAaOCAX0wggF5MB0GA1UdDgQWBBSIS6ZFxEbsj9bP\npvYazyY8kMx/FzCB5QYDVR0jBIHdMIHagBSIS6ZFxEbsj9bPpvYazyY8kMx/F6GB\ntqSBszCBsDELMAkGA1UEBhMCVVMxFzAVBgNVBAgMDk5vcnRoIENhcm9saW5hMRAw\nDgYDVQQHDAdSYWxlaWdoMRYwFAYDVQQKDA1SZWQgSGF0LCBJbmMuMRgwFgYDVQQL\nDA9SZWQgSGF0IE5ldHdvcmsxHjAcBgNVBAMMFUVudGl0bGVtZW50IE1hc3RlciBD\nQTEkMCIGCSqGSIb3DQEJARYVY2Etc3VwcG9ydEByZWRoYXQuY29tggkA5v5CKCXJ\n5l4wDAYDVR0TBAUwAwEB/zALBgNVHQ8EBAMCAQYwEQYJYIZIAYb4QgEBBAQDAgEG\nMCAGA1UdEQQZMBeBFWNhLXN1cHBvcnRAcmVkaGF0LmNvbTAgBgNVHRIEGTAXgRVj\nYS1zdXBwb3J0QHJlZGhhdC5jb20wDQYJKoZIhvcNAQEFBQADggIBAJ1hEdNBDTRr\n6kI6W6stoogSUwjuiWPDY8DptwGhdpyIfbCoxvBR7F52DlwyXOpCunogfKMRklnE\ngH1Wt66RYkgNuJcenKHAhR5xgSLoPCOVF9rDjMunyyBuxjIbctM21R7BswVpsEIE\nOpV5nlJ6wkHsrn0/E+Zk5UJdCzM+Fp4hqHtEn/c97nvRspQcpWeDg6oUvaJSZTGM\n8yFpzR90X8ZO4rOgpoERukvYutUfJUzZuDyS3LLc6ysamemH93rZXr52zc4B+C9G\nEm8zemDgIPaH42ce3C3TdVysiq/yk+ir7pxW8toeavFv75l1UojFSjND+Q2AlNQn\npYkmRznbD5TZ3yDuPFQG2xYKnMPACepGgKZPyErtOIljQKCdgcvb9EqNdZaJFz1+\n/iWKYBL077Y0CKwb+HGIDeYdzrYxbEd95YuVU0aStnf2Yii2tLcpQtK9cC2+DXjL\nYf3kQs4xzH4ZejhG9wzv8PGXOS8wHYnfVNA3+fclDEQ1mEBKWHHmenGI6QKZUP8f\ng0SQ3PNRnSZu8R+rhABOEuVFIBRlaYijg2Pxe0NgL9FlHsNyRfo6EUrB2QFRKACW\n3Mo6pZyDjQt7O8J7l9B9IIURoJ1niwygf7VSJTMl2w3fFleNJlZTGgdXw0V+5g+9\nKg6Ay0rrsi4nw1JHue2GvdjdfVOaWSWC\n-----END - CERTIFICATE-----\n","id":1,"organization_id":5,"organization":{"name":"Test - Organization","label":"Test_Organization","id":5},"created_at":"2023-06-21 - 13:24:41 UTC","updated_at":"2023-06-21 13:24:41 UTC","gpg_key_products":[],"gpg_key_repos":[],"ssl_ca_alternate_content_sources":[],"ssl_client_alternate_content_sources":[],"ssl_client_key_alternate_content_sources":{},"ssl_ca_products":[],"ssl_ca_root_repos":[],"ssl_client_products":[],"ssl_client_root_repos":[],"ssl_key_products":[],"ssl_key_root_repos":[],"permissions":{"view_content_credenials":true,"edit_content_credenials":true,"destroy_content_credenials":true}}]} - - ' - headers: - Cache-Control: - - max-age=0, private, must-revalidate - Connection: - - Keep-Alive - Content-Security-Policy: - - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; - style-src ''unsafe-inline'' ''self''' - Content-Type: - - application/json; charset=utf-8 - Foreman_api_version: - - '2' - Foreman_current_location: - - ; ANY - Foreman_current_organization: - - 5; Test Organization - Foreman_version: - - 3.7.0-develop - Keep-Alive: - - timeout=15, max=97 - Strict-Transport-Security: - - max-age=631139040; includeSubdomains - Transfer-Encoding: - - chunked X-Content-Type-Options: - nosniff X-Download-Options: @@ -243,11 +180,11 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/products/30/repositories?search=name%3D%22Convert2RHEL7+main%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/products/6/repositories?search=name%3D%22Convert2RHEL8+main%22&per_page=4294967296 response: body: - string: '{"total":0,"subtotal":0,"selectable":0,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Convert2RHEL7 - main\"","sort":{"by":"name","order":"asc"},"results":[],"org_repository_count":0} + string: '{"total":0,"subtotal":0,"selectable":0,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Convert2RHEL8 + main\"","sort":{"by":"name","order":"asc"},"results":[],"org_repository_count":1} ' headers: @@ -255,6 +192,8 @@ interactions: - max-age=0, private, must-revalidate Connection: - Keep-Alive + Content-Length: + - '198' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -268,13 +207,11 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-develop + - 3.7.1 Keep-Alive: - - timeout=15, max=96 + - timeout=15, max=97 Strict-Transport-Security: - max-age=631139040; includeSubdomains - Transfer-Encoding: - - chunked X-Content-Type-Options: - nosniff X-Download-Options: @@ -289,9 +226,9 @@ interactions: code: 200 message: OK - request: - body: '{"name": "Convert2RHEL7 main", "product_id": 30, "content_type": "yum", - "url": "https://cdn.redhat.com/content/public/convert2rhel/7/x86_64/os/", "ssl_ca_cert_id": - 1, "download_policy": "immediate", "verify_ssl_on_sync": true}' + body: '{"name": "Convert2RHEL8 main", "product_id": 6, "content_type": "yum", + "url": "https://cdn-public.redhat.com/content/public/addon/dist/convert2rhel8/8/x86_64/os/", + "download_policy": "immediate", "verify_ssl_on_sync": true}' headers: Accept: - application/json;version=2 @@ -300,7 +237,7 @@ interactions: Connection: - keep-alive Content-Length: - - '226' + - '223' Content-Type: - application/json User-Agent: @@ -309,13 +246,12 @@ interactions: uri: https://foreman.example.org/katello/api/repositories response: body: - string: ' {"relative_path":"Test_Organization/Library/custom/Convert2RHEL7/Convert2RHEL7_main","promoted":false,"content_view_version_id":6,"library_instance_id":null,"last_contents_changed":"2023-06-21 - 13:24:48 UTC","organization_id":5,"organization":{"name":"Test Organization","label":"Test_Organization","id":5},"created_at":"2023-06-21 - 13:24:46 UTC","updated_at":"2023-06-21 13:24:49 UTC","backend_identifier":"a22aabd5-10a9-41fe-8fba-d9e321c25ded","container_repository_name":null,"full_path":"https://sat-r220-03.lab.eng.rdu2.redhat.com/pulp/content/Test_Organization/Library/custom/Convert2RHEL7/Convert2RHEL7_main/","version_href":"/pulp/api/v3/repositories/rpm/rpm/1c6df5a8-16bd-4362-b02d-967f863a17e3/versions/0/","remote_href":"/pulp/api/v3/remotes/rpm/rpm/b7f14666-2f21-4a59-840e-cf633a23d4b5/","publication_href":null,"content_counts":{"rpm":0,"erratum":0,"package_group":0,"srpm":0,"module_stream":0},"mirroring_policy":"mirror_content_only","id":16,"name":"Convert2RHEL7 - main","label":"Convert2RHEL7_main","description":null,"content_view_versions":[],"last_sync":null,"content_view":{"id":6,"name":"Default - Organization View"},"content_view_version":{"id":6,"name":"Default Organization - View 1.0","content_view_id":6},"kt_environment":{"id":3,"name":"Library"},"content_type":"yum","url":"https://cdn.redhat.com/content/public/convert2rhel/7/x86_64/os/","arch":"noarch","os_versions":[],"content_id":"1687353889016","generic_remote_options":null,"major":null,"minor":null,"product":{"id":30,"cp_id":"213774223616","name":"Convert2RHEL7","orphaned":false,"redhat":false,"sync_plan":null},"content_label":"Test_Organization_Convert2RHEL7_Convert2RHEL7_main","last_sync_words":null,"environment":{"id":3,"registry_unauthenticated_pull":false},"docker_upstream_name":null,"docker_tags_whitelist":null,"include_tags":null,"exclude_tags":null,"verify_ssl_on_sync":true,"unprotected":true,"checksum_type":null,"download_policy":"immediate","ansible_collection_requirements":null,"ansible_collection_auth_url":null,"ansible_collection_auth_token":null,"gpg_key_id":null,"ssl_ca_cert_id":1,"ssl_client_cert_id":null,"ssl_client_key_id":null,"upstream_username":null,"deb_releases":null,"deb_components":null,"deb_architectures":null,"http_proxy_policy":"global_default_http_proxy","http_proxy_id":null,"http_proxy_name":null,"retain_package_versions_count":null,"ignorable_content":null,"http_proxy":{"id":null,"name":null,"policy":"global_default_http_proxy"},"ssl_ca_cert":{"id":1,"name":"Convert2RHEL - CA"},"ssl_client_cert":{"id":null,"name":null},"ssl_client_key":{"id":null,"name":null},"gpg_key":{"id":null,"name":null},"permissions":{"deletable":true,"deletable_across_cv":true},"upstream_password_exists":false,"upstream_auth_exists":false,"content_view_environments":[]} + string: ' {"relative_path":"Test_Organization/Library/custom/Convert2RHEL8/Convert2RHEL8_main","promoted":false,"content_view_version_id":5,"library_instance_id":null,"last_contents_changed":"2023-11-13 + 09:23:28 UTC","organization_id":4,"organization":{"name":"Test Organization","label":"Test_Organization","id":4},"created_at":"2023-11-13 + 09:23:27 UTC","updated_at":"2023-11-13 09:23:28 UTC","backend_identifier":"efcacfee-d580-4ee2-ba9d-6e814db96635","container_repository_name":null,"full_path":"https://centos8-stream-katello-4-9.tanso.example.com/pulp/content/Test_Organization/Library/custom/Convert2RHEL8/Convert2RHEL8_main/","version_href":"/pulp/api/v3/repositories/rpm/rpm/cd1634f4-f76f-4748-90ca-4cda8c82524a/versions/0/","remote_href":"/pulp/api/v3/remotes/rpm/rpm/a2ec2855-7266-4aeb-b92a-59c3ff60617e/","publication_href":null,"content_counts":{"rpm":0,"erratum":0,"package_group":0,"srpm":0,"module_stream":0},"mirroring_policy":"mirror_content_only","id":10,"name":"Convert2RHEL8 + main","label":"Convert2RHEL8_main","description":null,"content_view_versions":[],"filters":[],"last_sync":null,"content_view":{"id":5,"name":"Default + Organization View"},"content_view_version":{"id":5,"name":"Default Organization + View 1.0","content_view_id":5},"kt_environment":{"id":3,"name":"Library"},"content_type":"yum","url":"https://cdn-public.redhat.com/content/public/addon/dist/convert2rhel8/8/x86_64/os/","arch":"noarch","os_versions":[],"content_id":"1699867408251","generic_remote_options":null,"major":null,"minor":null,"product":{"id":6,"cp_id":"139454427959","name":"Convert2RHEL8","orphaned":false,"redhat":false,"sync_plan":null},"content_label":"Test_Organization_Convert2RHEL8_Convert2RHEL8_main","last_sync_words":null,"environment":{"id":3,"registry_unauthenticated_pull":false},"docker_upstream_name":null,"docker_tags_whitelist":null,"include_tags":null,"exclude_tags":null,"verify_ssl_on_sync":true,"unprotected":true,"checksum_type":null,"download_policy":"immediate","ansible_collection_requirements":null,"ansible_collection_auth_url":null,"ansible_collection_auth_token":null,"gpg_key_id":null,"ssl_ca_cert_id":null,"ssl_client_cert_id":null,"ssl_client_key_id":null,"upstream_username":null,"deb_releases":null,"deb_components":null,"deb_architectures":null,"http_proxy_policy":"global_default_http_proxy","http_proxy_id":null,"http_proxy_name":null,"retain_package_versions_count":null,"metadata_expire":null,"ignorable_content":null,"http_proxy":{"id":null,"name":null,"policy":"global_default_http_proxy"},"ssl_ca_cert":{"id":null,"name":null},"ssl_client_cert":{"id":null,"name":null},"ssl_client_key":{"id":null,"name":null},"gpg_key":{"id":null,"name":null},"permissions":{"deletable":true,"deletable_across_cv":true},"upstream_password_exists":false,"upstream_auth_exists":false,"content_view_environments":[]} ' headers: @@ -323,6 +259,8 @@ interactions: - max-age=0, private, must-revalidate Connection: - Keep-Alive + Content-Length: + - '2836' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -336,13 +274,11 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-develop + - 3.7.1 Keep-Alive: - - timeout=15, max=95 + - timeout=15, max=96 Strict-Transport-Security: - max-age=631139040; includeSubdomains - Transfer-Encoding: - - chunked X-Content-Type-Options: - nosniff X-Download-Options: diff --git a/tests/test_playbooks/fixtures/convert2rhel-4.yml b/tests/test_playbooks/fixtures/convert2rhel-4.yml index 072fb9dab..418d17685 100644 --- a/tests/test_playbooks/fixtures/convert2rhel-4.yml +++ b/tests/test_playbooks/fixtures/convert2rhel-4.yml @@ -14,12 +14,14 @@ interactions: uri: https://foreman.example.org/api/status response: body: - string: '{"satellite_version":"6.14.0","result":"ok","status":200,"version":"3.7.0-develop","api_version":2}' + string: '{"result":"ok","status":200,"version":"3.7.1","api_version":2}' headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive + Content-Length: + - '102' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -33,13 +35,11 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-develop + - 3.7.1 Keep-Alive: - timeout=15, max=100 Strict-Transport-Security: - max-age=631139040; includeSubdomains - Transfer-Encoding: - - chunked X-Content-Type-Options: - nosniff X-Download-Options: @@ -68,16 +68,18 @@ interactions: uri: https://foreman.example.org/katello/api/organizations?search=name%3D%22Test+Organization%22&per_page=4294967296 response: body: - string: "{\n \"total\": 3,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": + string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": 4294967296,\n \"search\": \"name=\\\"Test Organization\\\"\",\n \"sort\": - {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\":\"Test_Organization\",\"created_at\":\"2023-06-21 - 13:24:35 UTC\",\"updated_at\":\"2023-06-21 13:24:38 UTC\",\"id\":5,\"name\":\"Test + {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\":\"Test_Organization\",\"created_at\":\"2023-11-13 + 09:23:21 UTC\",\"updated_at\":\"2023-11-13 09:23:23 UTC\",\"id\":4,\"name\":\"Test Organization\",\"title\":\"Test Organization\",\"description\":\"A test organization\"}]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive + Content-Length: + - '388' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -91,13 +93,11 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-develop + - 3.7.1 Keep-Alive: - timeout=15, max=99 Strict-Transport-Security: - max-age=631139040; includeSubdomains - Transfer-Encoding: - - chunked X-Content-Type-Options: - nosniff X-Download-Options: @@ -123,10 +123,11 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/organizations/5/products?search=name%3D%22Convert2RHEL8%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/organizations/4/products?search=name%3D%22Oracle+Linux+7+Convert2RHEL%22&per_page=4294967296 response: body: - string: '{"total":1,"subtotal":0,"selectable":0,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Convert2RHEL8\"","sort":{"by":"name","order":"asc"},"results":[]} + string: '{"total":2,"subtotal":0,"selectable":0,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Oracle + Linux 7 Convert2RHEL\"","sort":{"by":"name","order":"asc"},"results":[]} ' headers: @@ -134,6 +135,8 @@ interactions: - max-age=0, private, must-revalidate Connection: - Keep-Alive + Content-Length: + - '182' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -145,15 +148,13 @@ interactions: Foreman_current_location: - ; ANY Foreman_current_organization: - - 5; Test Organization + - 4; Test Organization Foreman_version: - - 3.7.0-develop + - 3.7.1 Keep-Alive: - timeout=15, max=98 Strict-Transport-Security: - max-age=631139040; includeSubdomains - Transfer-Encoding: - - chunked X-Content-Type-Options: - nosniff X-Download-Options: @@ -168,7 +169,7 @@ interactions: code: 200 message: OK - request: - body: '{"organization_id": 5, "name": "Convert2RHEL8"}' + body: '{"organization_id": 4, "name": "Oracle Linux 7 Convert2RHEL"}' headers: Accept: - application/json;version=2 @@ -177,7 +178,7 @@ interactions: Connection: - keep-alive Content-Length: - - '47' + - '61' Content-Type: - application/json User-Agent: @@ -186,9 +187,10 @@ interactions: uri: https://foreman.example.org/katello/api/products response: body: - string: ' {"sync_state_aggregated":null,"redhat":false,"id":31,"cp_id":"323154019581","name":"Convert2RHEL8","label":"Convert2RHEL8","description":null,"provider_id":5,"sync_plan_id":null,"sync_summary":{},"gpg_key_id":null,"ssl_ca_cert_id":null,"ssl_client_cert_id":null,"ssl_client_key_id":null,"sync_state":null,"last_sync":null,"last_sync_words":null,"organization_id":5,"organization":{"name":"Test - Organization","label":"Test_Organization","id":5},"sync_plan":null,"repository_count":0,"created_at":"2023-06-21 - 13:24:52 UTC","updated_at":"2023-06-21 13:24:52 UTC","product_content":[],"available_content":[],"repositories":[],"provider":{"name":"Anonymous"},"sync_status":{"id":null,"product_id":null,"progress":null,"sync_id":null,"state":null,"raw_state":null,"start_time":null,"finish_time":null,"duration":null,"display_size":null,"size":null,"is_running":null,"error_details":null},"permissions":{"view_products":true,"edit_products":true,"destroy_products":true,"sync_products":true},"published_content_view_ids":[],"active_task_count":0} + string: ' {"sync_state_aggregated":null,"redhat":false,"id":7,"cp_id":"521078275134","name":"Oracle + Linux 7 Convert2RHEL","label":"Oracle_Linux_7_Convert2RHEL","description":null,"provider_id":5,"sync_plan_id":null,"sync_summary":{},"gpg_key_id":null,"ssl_ca_cert_id":null,"ssl_client_cert_id":null,"ssl_client_key_id":null,"sync_state":null,"last_sync":null,"last_sync_words":null,"organization_id":4,"organization":{"name":"Test + Organization","label":"Test_Organization","id":4},"sync_plan":null,"repository_count":0,"created_at":"2023-11-13 + 09:23:29 UTC","updated_at":"2023-11-13 09:23:29 UTC","product_content":[],"available_content":[],"repositories":[],"provider":{"name":"Anonymous"},"sync_status":{"id":null,"product_id":null,"progress":null,"sync_id":null,"state":null,"raw_state":null,"start_time":null,"finish_time":null,"duration":null,"display_size":null,"size":null,"is_running":null,"error_details":null},"permissions":{"view_products":true,"edit_products":true,"destroy_products":true,"sync_products":true},"published_content_view_ids":[],"has_last_affected_repo_in_filter":false,"active_task_count":0} ' headers: @@ -196,6 +198,8 @@ interactions: - max-age=0, private, must-revalidate Connection: - Keep-Alive + Content-Length: + - '1111' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -207,15 +211,13 @@ interactions: Foreman_current_location: - ; ANY Foreman_current_organization: - - 5; Test Organization + - 4; Test Organization Foreman_version: - - 3.7.0-develop + - 3.7.1 Keep-Alive: - timeout=15, max=97 Strict-Transport-Security: - max-age=631139040; includeSubdomains - Transfer-Encoding: - - chunked X-Content-Type-Options: - nosniff X-Download-Options: diff --git a/tests/test_playbooks/fixtures/convert2rhel-5.yml b/tests/test_playbooks/fixtures/convert2rhel-5.yml index 9b9dcf215..c5f9bdcd8 100644 --- a/tests/test_playbooks/fixtures/convert2rhel-5.yml +++ b/tests/test_playbooks/fixtures/convert2rhel-5.yml @@ -14,12 +14,14 @@ interactions: uri: https://foreman.example.org/api/status response: body: - string: '{"satellite_version":"6.14.0","result":"ok","status":200,"version":"3.7.0-develop","api_version":2}' + string: '{"result":"ok","status":200,"version":"3.7.1","api_version":2}' headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive + Content-Length: + - '102' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -33,13 +35,11 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-develop + - 3.7.1 Keep-Alive: - timeout=15, max=100 Strict-Transport-Security: - max-age=631139040; includeSubdomains - Transfer-Encoding: - - chunked X-Content-Type-Options: - nosniff X-Download-Options: @@ -68,16 +68,18 @@ interactions: uri: https://foreman.example.org/katello/api/organizations?search=name%3D%22Test+Organization%22&per_page=4294967296 response: body: - string: "{\n \"total\": 3,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": + string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": 4294967296,\n \"search\": \"name=\\\"Test Organization\\\"\",\n \"sort\": - {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\":\"Test_Organization\",\"created_at\":\"2023-06-21 - 13:24:35 UTC\",\"updated_at\":\"2023-06-21 13:24:38 UTC\",\"id\":5,\"name\":\"Test + {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\":\"Test_Organization\",\"created_at\":\"2023-11-13 + 09:23:21 UTC\",\"updated_at\":\"2023-11-13 09:23:23 UTC\",\"id\":4,\"name\":\"Test Organization\",\"title\":\"Test Organization\",\"description\":\"A test organization\"}]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive + Content-Length: + - '388' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -91,13 +93,11 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-develop + - 3.7.1 Keep-Alive: - timeout=15, max=99 Strict-Transport-Security: - max-age=631139040; includeSubdomains - Transfer-Encoding: - - chunked X-Content-Type-Options: - nosniff X-Download-Options: @@ -123,11 +123,13 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/organizations/5/products?search=name%3D%22Convert2RHEL8%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/organizations/4/products?search=name%3D%22Oracle+Linux+7+Convert2RHEL%22&per_page=4294967296 response: body: - string: '{"total":2,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Convert2RHEL8\"","sort":{"by":"name","order":"asc"},"results":[{"id":31,"cp_id":"323154019581","name":"Convert2RHEL8","label":"Convert2RHEL8","description":null,"provider_id":5,"sync_plan_id":null,"sync_summary":{},"gpg_key_id":null,"ssl_ca_cert_id":null,"ssl_client_cert_id":null,"ssl_client_key_id":null,"sync_state":null,"last_sync":null,"last_sync_words":null,"organization_id":5,"organization":{"name":"Test - Organization","label":"Test_Organization","id":5},"sync_plan":null,"repository_count":0}]} + string: '{"total":3,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Oracle + Linux 7 Convert2RHEL\"","sort":{"by":"name","order":"asc"},"results":[{"id":7,"cp_id":"521078275134","name":"Oracle + Linux 7 Convert2RHEL","label":"Oracle_Linux_7_Convert2RHEL","description":null,"provider_id":5,"sync_plan_id":null,"sync_summary":{},"gpg_key_id":null,"ssl_ca_cert_id":null,"ssl_client_cert_id":null,"ssl_client_key_id":null,"sync_state":null,"last_sync":null,"last_sync_words":null,"organization_id":4,"organization":{"name":"Test + Organization","label":"Test_Organization","id":4},"sync_plan":null,"repository_count":0}]} ' headers: @@ -135,6 +137,8 @@ interactions: - max-age=0, private, must-revalidate Connection: - Keep-Alive + Content-Length: + - '647' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -146,79 +150,13 @@ interactions: Foreman_current_location: - ; ANY Foreman_current_organization: - - 5; Test Organization + - 4; Test Organization Foreman_version: - - 3.7.0-develop + - 3.7.1 Keep-Alive: - timeout=15, max=98 Strict-Transport-Security: - max-age=631139040; includeSubdomains - Transfer-Encoding: - - chunked - X-Content-Type-Options: - - nosniff - X-Download-Options: - - noopen - X-Frame-Options: - - sameorigin - X-Permitted-Cross-Domain-Policies: - - none - X-XSS-Protection: - - 1; mode=block - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json;version=2 - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - apypie (https://github.com/Apipie/apypie) - method: GET - uri: https://foreman.example.org/katello/api/content_credentials?organization_id=5&search=name%3D%22Convert2RHEL+CA%22&per_page=4294967296 - response: - body: - string: '{"total":1,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Convert2RHEL - CA\"","sort":{"by":"name","order":"asc"},"results":[{"name":"Convert2RHEL - CA","content_type":"cert","content":"-----BEGIN CERTIFICATE-----\nMIIG/TCCBOWgAwIBAgIBNzANBgkqhkiG9w0BAQUFADCBsTELMAkGA1UEBhMCVVMx\nFzAVBgNVBAgMDk5vcnRoIENhcm9saW5hMRYwFAYDVQQKDA1SZWQgSGF0LCBJbmMu\nMRgwFgYDVQQLDA9SZWQgSGF0IE5ldHdvcmsxMTAvBgNVBAMMKFJlZCBIYXQgRW50\naXRsZW1lbnQgT3BlcmF0aW9ucyBBdXRob3JpdHkxJDAiBgkqhkiG9w0BCQEWFWNh\nLXN1cHBvcnRAcmVkaGF0LmNvbTAeFw0xMDEwMDQxMzI3NDhaFw0zMDA5MjkxMzI3\nNDhaMIGuMQswCQYDVQQGEwJVUzEXMBUGA1UECAwOTm9ydGggQ2Fyb2xpbmExFjAU\nBgNVBAoMDVJlZCBIYXQsIEluYy4xGDAWBgNVBAsMD1JlZCBIYXQgTmV0d29yazEu\nMCwGA1UEAwwlUmVkIEhhdCBFbnRpdGxlbWVudCBQcm9kdWN0IEF1dGhvcml0eTEk\nMCIGCSqGSIb3DQEJARYVY2Etc3VwcG9ydEByZWRoYXQuY29tMIICIjANBgkqhkiG\n9w0BAQEFAAOCAg8AMIICCgKCAgEA2QurMeAVnCHVsuZNQzciWMdpd4LAVk2eGugN\n0cxmBpzoVI8lIsJOmJkpOAuFOQMX9CBr8RuQyg4r1/OH/rfhm6FgGIw8TGKZoWC/\n1B9teZqTiM85k6/1GRNxdk6dUK77HVO0PMIKtNBHRxIsXcRzJ1q+u5WPBes9pEVG\nnbidTNUkknrSIdynTJcqAI/I0VAsqLqX87XJSzXKvRilE+p/fLHmVTAffl1Cn/Dy\nKULxna7ooyrKKnfqeQ5dK8aMr1ASQ1wphWohLjegly9V0amEi+HHWnOL8toxJy8v\nWUTUzzAvZ4ZTtTV26xGetZZWEaNyv7YCv2AexjcBQ2x+ejrFJrVNo9jizHS06HK8\nUgHVDKhmVcAe2/5yrJCjKDLwg1FJfjKwhzhLYdNVCejpy8CHQndwO0EX1hHv/AfP\nRTAmr5qPhHFD+uuIrYrSLUpgMLmWa9dinJcGeKlA1KJvG5emGMM3k64Xr7dJToXo\n5loGyZ6lvKPIKLmfeXMRW/4+BqyzwbO1i4aIHAZcSPDFGKWwuvF0iVUYUUVxw0nv\nqPZA4roq5+j/YSz0q5XGVgiIt34htlvunLp/ICGYJBR6zEHcB9aZGJdDcJvoYZjw\n7Gphw6lFF6Ta4imoyhGECWKjd1ips3opcN+DlU0yCUrcIXVIXAnkTwu5ocOgAkxr\nf/6FjqcCAwEAAaOCAR8wggEbMB0GA1UdDgQWBBSW/bscQED/QIStsh8LJsHDam/W\nfDCB5QYDVR0jBIHdMIHagBTESXhWRZ0eLGFgw2ZLWAU3LwMie6GBtqSBszCBsDEL\nMAkGA1UEBhMCVVMxFzAVBgNVBAgMDk5vcnRoIENhcm9saW5hMRAwDgYDVQQHDAdS\nYWxlaWdoMRYwFAYDVQQKDA1SZWQgSGF0LCBJbmMuMRgwFgYDVQQLDA9SZWQgSGF0\nIE5ldHdvcmsxHjAcBgNVBAMMFUVudGl0bGVtZW50IE1hc3RlciBDQTEkMCIGCSqG\nSIb3DQEJARYVY2Etc3VwcG9ydEByZWRoYXQuY29tggkAkYrPyoUAAAAwEgYDVR0T\nAQH/BAgwBgEB/wIBADANBgkqhkiG9w0BAQUFAAOCAgEArWBznYWKpY4LqAzhOSop\nt30D2/UlCSr50l33uUCNYD4D4nTr/pyX3AR6P3JcOCz0t22pVCg8D3DZc5VlzY7y\nP5RD3KbLxFNJTloclMG0n6aIN7baA4b8zwkduMQvKZnA/YNR5xE7V7J2WJHCEBBB\nZ+ZFwGpGsoZpPZP4hHLVke3xHm6A5F5SzP1Ug0T9W80VLK4jtgyGs8l1R7rXiOIt\nNik8317KGq7DU8TI2Rw/9Gc8FKNfUYcVD7uC/MMQXJTRvkADmNLtZM63nhzpg1Hr\nhA6U5YcDCBKsPA43/wsPOONYtrAlToD5hJhU+1Rhmwcw3qvWBO3NkdilqGFOTc2K\n50PQrqoRTCZFS41nv2WqZFfbvSq4dZRJl8xpB4LAHSspsMrbr9WZHX5fbggf6ixw\nS9KDqQbM7asP0FEKBFXJV1rE8P/oSK6yVWQyigTsNcdGR4AUzDsTO9udcwoM2Ed4\nXdakVkF+dXm9ZBwv5UBf5ITSyMXL3qlusIOblJVGUQizumoq0LiSnjwbkxh2XHhd\nXD/B/qax7FnaNg+TfujR/kk3kF1OpqWx/wC/qPR+zho1+35Al31gZOfNIn/sReoM\ntcci9LFHGvijIy4VUDQK8HmGjIxJPrIIe1nB5BkiGyjwn00D5q+BwYVst1C68Rwx\niRZpyzOZmeineJvhrJZ4Tvs=\n-----END - CERTIFICATE-----\n-----BEGIN CERTIFICATE-----\nMIIGejCCBGKgAwIBAgIJAJGKz8qFAAAIMA0GCSqGSIb3DQEBDAUAMIGwMQswCQYD\nVQQGEwJVUzEXMBUGA1UECAwOTm9ydGggQ2Fyb2xpbmExEDAOBgNVBAcMB1JhbGVp\nZ2gxFjAUBgNVBAoMDVJlZCBIYXQsIEluYy4xGDAWBgNVBAsMD1JlZCBIYXQgTmV0\nd29yazEeMBwGA1UEAwwVRW50aXRsZW1lbnQgTWFzdGVyIENBMSQwIgYJKoZIhvcN\nAQkBFhVjYS1zdXBwb3J0QHJlZGhhdC5jb20wHhcNMTgwOTEyMTgxMzIxWhcNMzAw\nMzE1MTgxMzIxWjCBsTELMAkGA1UEBhMCVVMxFzAVBgNVBAgMDk5vcnRoIENhcm9s\naW5hMRYwFAYDVQQKDA1SZWQgSGF0LCBJbmMuMRgwFgYDVQQLDA9SZWQgSGF0IE5l\ndHdvcmsxMTAvBgNVBAMMKFJlZCBIYXQgRW50aXRsZW1lbnQgT3BlcmF0aW9ucyBB\ndXRob3JpdHkxJDAiBgkqhkiG9w0BCQEWFWNhLXN1cHBvcnRAcmVkaGF0LmNvbTCC\nAiIwDQYJKoZIhvcNAQEBBQADggIPADCCAgoCggIBALsmiohDnNvIpBMZVJR5pbP6\nGrE5B4doUmvTeR4XJ5C66uvFTwuGTVigNXAL+0UWf9r2AwxKEPCy65h7fLbyK4W7\n/xEZPVsamQYDHpyBwlkPkJ3WhHneqQWC8bKkv8Iqu08V+86biCDDAh6uP0SiAz7a\nNGaLEnOe5L9WNfsYyNwrG+2AfiLy/1LUtmmg5dc6Ln7R+uv0PZJ5J2iUbiT6lMz3\nv73zAxuEjiDNurZzxzHSSEYzw0W1eO6zM4F26gcOuH2BHemPMjHi+c1OnheaafDE\nHQJTNgECz5Xe7WGdZwOyn9a8GtMvm0PAhGVyp7RAWxxfoU1B794cBb66IKKjliJQ\n5DKoqyxD9qJbMF8U4Kd1ZIVB0Iy2WEaaqCFMIi3xtlWVUNku5x21ewMmJvwjnWZA\ntUeKQUFwIXqSjuOoZDu80H6NQb+4dnRSjWlx/m7HPk75m0zErshpB2HSKUnrs4wR\ni7GsWDDcqBus7eLMwUZPvDNVcLQu/2Y4DUHNbJbn7+DwEqi5D0heC+dyY8iS45gp\nI/yhVvq/GfKL+dqjaNaE4CorJJA5qJ9f383Ol/aub+aJeBahCBNuVa2daA9Bo3BA\ndnL7KkILPFyCcEhQITnu70Qn9sQlwYcRoYF2LWAm9DtLrBT0Y0w7wQHh8vNhwEQ7\nk5G87WpwzcC8y6ePR0vFAgMBAAGjgZMwgZAwHQYDVR0OBBYEFMRJeFZFnR4sYWDD\nZktYBTcvAyJ7MB8GA1UdIwQYMBaAFIhLpkXERuyP1s+m9hrPJjyQzH8XMAwGA1Ud\nEwQFMAMBAf8wCwYDVR0PBAQDAgEGMBEGCWCGSAGG+EIBAQQEAwIBBjAgBgNVHREE\nGTAXgRVjYS1zdXBwb3J0QHJlZGhhdC5jb20wDQYJKoZIhvcNAQEMBQADggIBAGKk\nq5Ab0AC7SOCYq9up5z0twbe+gI72cm854+VhcxafnLP2/4nH6nQauKLKEFLI8+fV\nRAwYxm1f5nuEiaTvjPE0umYdgMlpEJQeGdW/+/DotDaOon1G6bSMEKFvaKcBHKqa\nkBxQ29trwMG2WN8qZ7/H3XzBvLZ+JrYr01vDSV0P4tcBFOytbMZeJr4xmfxiqWxp\nVUM9eGf6z+ngXyth8lohxGd9MMXwsaPdvM+wptp3AQpq5wFPWyfJqCd6uBxu09k1\nns3Y/sya2GHqDK4bUW6gCHO13gkYviTCIBLAlX7PDeK5nYVcq8HvTLU9+H9BFGix\nYGDdHphz7i5qO/gLLLcfKhENP6jtbe8i6nwqeDzj+DMy38iMWNYFVWn1OrBaQMtf\nwlVfyRJij9SfyiUAVFld1RoPAN/haf1VmF/0dGrOigibYijqnHvDJffMUND/sbk8\ndf6O6VYjvLLlwry4W4dHiLLA7NAHGtkUv2g1+oH1lQIfRG+PvZhWz4pGT1AlzfwD\naXUfX2X+Bo9tYr9BGy5Li1pLGLvfw+an7cBAbBaw8+HhAHt+Vm4F03KX/bHlge0a\nfMYK6FoA/xQSaZ6IPm4HfPSMvhboguVG+/AZQN4/UxjDleoEz8b0CWYafcJRRZch\nBdxBjTy7JLf3j0HCbenZQF83wwtrSmiTOTK1tLsm\n-----END - CERTIFICATE-----\n-----BEGIN CERTIFICATE-----\nMIIHZDCCBUygAwIBAgIJAOb+QiglyeZeMA0GCSqGSIb3DQEBBQUAMIGwMQswCQYD\nVQQGEwJVUzEXMBUGA1UECAwOTm9ydGggQ2Fyb2xpbmExEDAOBgNVBAcMB1JhbGVp\nZ2gxFjAUBgNVBAoMDVJlZCBIYXQsIEluYy4xGDAWBgNVBAsMD1JlZCBIYXQgTmV0\nd29yazEeMBwGA1UEAwwVRW50aXRsZW1lbnQgTWFzdGVyIENBMSQwIgYJKoZIhvcN\nAQkBFhVjYS1zdXBwb3J0QHJlZGhhdC5jb20wHhcNMTAwMzE3MTkwMDQ0WhcNMzAw\nMzEyMTkwMDQ0WjCBsDELMAkGA1UEBhMCVVMxFzAVBgNVBAgMDk5vcnRoIENhcm9s\naW5hMRAwDgYDVQQHDAdSYWxlaWdoMRYwFAYDVQQKDA1SZWQgSGF0LCBJbmMuMRgw\nFgYDVQQLDA9SZWQgSGF0IE5ldHdvcmsxHjAcBgNVBAMMFUVudGl0bGVtZW50IE1h\nc3RlciBDQTEkMCIGCSqGSIb3DQEJARYVY2Etc3VwcG9ydEByZWRoYXQuY29tMIIC\nIjANBgkqhkiG9w0BAQEFAAOCAg8AMIICCgKCAgEA2Z+mW7OYcBcGxWS+RSKG2GJ2\ncsMXiGGfEp36vKVsIvypmNS60SkicKENMYREalbdSjrgfXxPJygZWsVWJ5lHPfBV\no3WkFrFHTIXd/R6LxnaHD1m8Cx3GwEeuSlE/ASjc1ePtMnsHH7xqZ9wdl85b1C8O\nscgO7fwuM192kvv/veI/BogIqUQugtG6szXpV8dp4ml029LXFoNIy2lfFoa2wKYw\nMiUHwtYgAz7TDY63e8qGhd5PoqTv9XKQogo2ze9sF9y/npZjliNy5qf6bFE+24oW\nE8pGsp3zqz8h5mvw4v+tfIx5uj7dwjDteFrrWD1tcT7UmNrBDWXjKMG81zchq3h4\netgF0iwMHEuYuixiJWNzKrLNVQbDmcLGNOvyJfq60tM8AUAd72OUQzivBegnWMit\nCLcT5viCT1AIkYXt7l5zc/duQWLeAAR2FmpZFylSukknzzeiZpPclRziYTboDYHq\nrevM97eER1xsfoSYp4mJkBHfdlqMnf3CWPcNgru8NbEPeUGMI6+C0YvknPlqDDtU\nojfl4qNdf6nWL+YNXpR1YGKgWGWgTU6uaG8Sc6qGfAoLHh6oGwbuz102j84OgjAJ\nDGv/S86svmZWSqZ5UoJOIEqFYrONcOSgztZ5tU+gP4fwRIkTRbTEWSgudVREOXhs\nbfN1YGP7HYvS0OiBKZUCAwEAAaOCAX0wggF5MB0GA1UdDgQWBBSIS6ZFxEbsj9bP\npvYazyY8kMx/FzCB5QYDVR0jBIHdMIHagBSIS6ZFxEbsj9bPpvYazyY8kMx/F6GB\ntqSBszCBsDELMAkGA1UEBhMCVVMxFzAVBgNVBAgMDk5vcnRoIENhcm9saW5hMRAw\nDgYDVQQHDAdSYWxlaWdoMRYwFAYDVQQKDA1SZWQgSGF0LCBJbmMuMRgwFgYDVQQL\nDA9SZWQgSGF0IE5ldHdvcmsxHjAcBgNVBAMMFUVudGl0bGVtZW50IE1hc3RlciBD\nQTEkMCIGCSqGSIb3DQEJARYVY2Etc3VwcG9ydEByZWRoYXQuY29tggkA5v5CKCXJ\n5l4wDAYDVR0TBAUwAwEB/zALBgNVHQ8EBAMCAQYwEQYJYIZIAYb4QgEBBAQDAgEG\nMCAGA1UdEQQZMBeBFWNhLXN1cHBvcnRAcmVkaGF0LmNvbTAgBgNVHRIEGTAXgRVj\nYS1zdXBwb3J0QHJlZGhhdC5jb20wDQYJKoZIhvcNAQEFBQADggIBAJ1hEdNBDTRr\n6kI6W6stoogSUwjuiWPDY8DptwGhdpyIfbCoxvBR7F52DlwyXOpCunogfKMRklnE\ngH1Wt66RYkgNuJcenKHAhR5xgSLoPCOVF9rDjMunyyBuxjIbctM21R7BswVpsEIE\nOpV5nlJ6wkHsrn0/E+Zk5UJdCzM+Fp4hqHtEn/c97nvRspQcpWeDg6oUvaJSZTGM\n8yFpzR90X8ZO4rOgpoERukvYutUfJUzZuDyS3LLc6ysamemH93rZXr52zc4B+C9G\nEm8zemDgIPaH42ce3C3TdVysiq/yk+ir7pxW8toeavFv75l1UojFSjND+Q2AlNQn\npYkmRznbD5TZ3yDuPFQG2xYKnMPACepGgKZPyErtOIljQKCdgcvb9EqNdZaJFz1+\n/iWKYBL077Y0CKwb+HGIDeYdzrYxbEd95YuVU0aStnf2Yii2tLcpQtK9cC2+DXjL\nYf3kQs4xzH4ZejhG9wzv8PGXOS8wHYnfVNA3+fclDEQ1mEBKWHHmenGI6QKZUP8f\ng0SQ3PNRnSZu8R+rhABOEuVFIBRlaYijg2Pxe0NgL9FlHsNyRfo6EUrB2QFRKACW\n3Mo6pZyDjQt7O8J7l9B9IIURoJ1niwygf7VSJTMl2w3fFleNJlZTGgdXw0V+5g+9\nKg6Ay0rrsi4nw1JHue2GvdjdfVOaWSWC\n-----END - CERTIFICATE-----\n","id":1,"organization_id":5,"organization":{"name":"Test - Organization","label":"Test_Organization","id":5},"created_at":"2023-06-21 - 13:24:41 UTC","updated_at":"2023-06-21 13:24:41 UTC","gpg_key_products":[],"gpg_key_repos":[],"ssl_ca_alternate_content_sources":[],"ssl_client_alternate_content_sources":[],"ssl_client_key_alternate_content_sources":{},"ssl_ca_products":[],"ssl_ca_root_repos":[{"id":6,"name":"Convert2RHEL7 - main","content_type":"yum","product":{"id":30,"cp_id":"213774223616","name":"Convert2RHEL7"},"library_instance_id":16}],"ssl_client_products":[],"ssl_client_root_repos":[],"ssl_key_products":[],"ssl_key_root_repos":[],"permissions":{"view_content_credenials":true,"edit_content_credenials":true,"destroy_content_credenials":true}}]} - - ' - headers: - Cache-Control: - - max-age=0, private, must-revalidate - Connection: - - Keep-Alive - Content-Security-Policy: - - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; - style-src ''unsafe-inline'' ''self''' - Content-Type: - - application/json; charset=utf-8 - Foreman_api_version: - - '2' - Foreman_current_location: - - ; ANY - Foreman_current_organization: - - 5; Test Organization - Foreman_version: - - 3.7.0-develop - Keep-Alive: - - timeout=15, max=97 - Strict-Transport-Security: - - max-age=631139040; includeSubdomains - Transfer-Encoding: - - chunked X-Content-Type-Options: - nosniff X-Download-Options: @@ -244,11 +182,11 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/products/31/repositories?search=name%3D%22Convert2RHEL8+main%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/products/7/repositories?search=name%3D%22Oracle+Linux+7+Convert2RHEL+main%22&per_page=4294967296 response: body: - string: '{"total":0,"subtotal":0,"selectable":0,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Convert2RHEL8 - main\"","sort":{"by":"name","order":"asc"},"results":[],"org_repository_count":1} + string: '{"total":0,"subtotal":0,"selectable":0,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Oracle + Linux 7 Convert2RHEL main\"","sort":{"by":"name","order":"asc"},"results":[],"org_repository_count":2} ' headers: @@ -256,6 +194,8 @@ interactions: - max-age=0, private, must-revalidate Connection: - Keep-Alive + Content-Length: + - '212' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -269,13 +209,11 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-develop + - 3.7.1 Keep-Alive: - - timeout=15, max=96 + - timeout=15, max=97 Strict-Transport-Security: - max-age=631139040; includeSubdomains - Transfer-Encoding: - - chunked X-Content-Type-Options: - nosniff X-Download-Options: @@ -290,9 +228,9 @@ interactions: code: 200 message: OK - request: - body: '{"name": "Convert2RHEL8 main", "product_id": 31, "content_type": "yum", - "url": "https://cdn.redhat.com/content/public/convert2rhel/8/x86_64/os/", "ssl_ca_cert_id": - 1, "download_policy": "immediate", "verify_ssl_on_sync": true}' + body: '{"name": "Oracle Linux 7 Convert2RHEL main", "product_id": 7, "content_type": + "yum", "url": "https://cdn-ubi.redhat.com/content/public/ubi/dist/ubi/server/7/7Server/x86_64/os", + "download_policy": "immediate", "verify_ssl_on_sync": true}' headers: Accept: - application/json;version=2 @@ -301,7 +239,7 @@ interactions: Connection: - keep-alive Content-Length: - - '226' + - '236' Content-Type: - application/json User-Agent: @@ -310,13 +248,13 @@ interactions: uri: https://foreman.example.org/katello/api/repositories response: body: - string: ' {"relative_path":"Test_Organization/Library/custom/Convert2RHEL8/Convert2RHEL8_main","promoted":false,"content_view_version_id":6,"library_instance_id":null,"last_contents_changed":"2023-06-21 - 13:24:59 UTC","organization_id":5,"organization":{"name":"Test Organization","label":"Test_Organization","id":5},"created_at":"2023-06-21 - 13:24:56 UTC","updated_at":"2023-06-21 13:25:01 UTC","backend_identifier":"0c2a90e1-6e04-4a91-b722-766e8019ebd4","container_repository_name":null,"full_path":"https://sat-r220-03.lab.eng.rdu2.redhat.com/pulp/content/Test_Organization/Library/custom/Convert2RHEL8/Convert2RHEL8_main/","version_href":"/pulp/api/v3/repositories/rpm/rpm/6e1a575a-2309-4cc5-a001-707432769374/versions/0/","remote_href":"/pulp/api/v3/remotes/rpm/rpm/7b5cdd10-10d1-4221-ac33-5f5eeed9dae9/","publication_href":null,"content_counts":{"rpm":0,"erratum":0,"package_group":0,"srpm":0,"module_stream":0},"mirroring_policy":"mirror_content_only","id":17,"name":"Convert2RHEL8 - main","label":"Convert2RHEL8_main","description":null,"content_view_versions":[],"last_sync":null,"content_view":{"id":6,"name":"Default - Organization View"},"content_view_version":{"id":6,"name":"Default Organization - View 1.0","content_view_id":6},"kt_environment":{"id":3,"name":"Library"},"content_type":"yum","url":"https://cdn.redhat.com/content/public/convert2rhel/8/x86_64/os/","arch":"noarch","os_versions":[],"content_id":"1687353899766","generic_remote_options":null,"major":null,"minor":null,"product":{"id":31,"cp_id":"323154019581","name":"Convert2RHEL8","orphaned":false,"redhat":false,"sync_plan":null},"content_label":"Test_Organization_Convert2RHEL8_Convert2RHEL8_main","last_sync_words":null,"environment":{"id":3,"registry_unauthenticated_pull":false},"docker_upstream_name":null,"docker_tags_whitelist":null,"include_tags":null,"exclude_tags":null,"verify_ssl_on_sync":true,"unprotected":true,"checksum_type":null,"download_policy":"immediate","ansible_collection_requirements":null,"ansible_collection_auth_url":null,"ansible_collection_auth_token":null,"gpg_key_id":null,"ssl_ca_cert_id":1,"ssl_client_cert_id":null,"ssl_client_key_id":null,"upstream_username":null,"deb_releases":null,"deb_components":null,"deb_architectures":null,"http_proxy_policy":"global_default_http_proxy","http_proxy_id":null,"http_proxy_name":null,"retain_package_versions_count":null,"ignorable_content":null,"http_proxy":{"id":null,"name":null,"policy":"global_default_http_proxy"},"ssl_ca_cert":{"id":1,"name":"Convert2RHEL - CA"},"ssl_client_cert":{"id":null,"name":null},"ssl_client_key":{"id":null,"name":null},"gpg_key":{"id":null,"name":null},"permissions":{"deletable":true,"deletable_across_cv":true},"upstream_password_exists":false,"upstream_auth_exists":false,"content_view_environments":[]} + string: ' {"relative_path":"Test_Organization/Library/custom/Oracle_Linux_7_Convert2RHEL/Oracle_Linux_7_Convert2RHEL_main","promoted":false,"content_view_version_id":5,"library_instance_id":null,"last_contents_changed":"2023-11-13 + 09:23:30 UTC","organization_id":4,"organization":{"name":"Test Organization","label":"Test_Organization","id":4},"created_at":"2023-11-13 + 09:23:30 UTC","updated_at":"2023-11-13 09:23:31 UTC","backend_identifier":"d6aba245-2ef6-4acb-a6b9-dbc72aa036e7","container_repository_name":null,"full_path":"https://centos8-stream-katello-4-9.tanso.example.com/pulp/content/Test_Organization/Library/custom/Oracle_Linux_7_Convert2RHEL/Oracle_Linux_7_Convert2RHEL_main/","version_href":"/pulp/api/v3/repositories/rpm/rpm/4c024768-b01e-40d3-99be-42578160b23d/versions/0/","remote_href":"/pulp/api/v3/remotes/rpm/rpm/6c55319c-9e62-4548-9484-c74c343b720c/","publication_href":null,"content_counts":{"rpm":0,"erratum":0,"package_group":0,"srpm":0,"module_stream":0},"mirroring_policy":"mirror_content_only","id":11,"name":"Oracle + Linux 7 Convert2RHEL main","label":"Oracle_Linux_7_Convert2RHEL_main","description":null,"content_view_versions":[],"filters":[],"last_sync":null,"content_view":{"id":5,"name":"Default + Organization View"},"content_view_version":{"id":5,"name":"Default Organization + View 1.0","content_view_id":5},"kt_environment":{"id":3,"name":"Library"},"content_type":"yum","url":"https://cdn-ubi.redhat.com/content/public/ubi/dist/ubi/server/7/7Server/x86_64/os","arch":"noarch","os_versions":[],"content_id":"1699867410895","generic_remote_options":null,"major":null,"minor":null,"product":{"id":7,"cp_id":"521078275134","name":"Oracle + Linux 7 Convert2RHEL","orphaned":false,"redhat":false,"sync_plan":null},"content_label":"Test_Organization_Oracle_Linux_7_Convert2RHEL_Oracle_Linux_7_Convert2RHEL_main","last_sync_words":null,"environment":{"id":3,"registry_unauthenticated_pull":false},"docker_upstream_name":null,"docker_tags_whitelist":null,"include_tags":null,"exclude_tags":null,"verify_ssl_on_sync":true,"unprotected":true,"checksum_type":null,"download_policy":"immediate","ansible_collection_requirements":null,"ansible_collection_auth_url":null,"ansible_collection_auth_token":null,"gpg_key_id":null,"ssl_ca_cert_id":null,"ssl_client_cert_id":null,"ssl_client_key_id":null,"upstream_username":null,"deb_releases":null,"deb_components":null,"deb_architectures":null,"http_proxy_policy":"global_default_http_proxy","http_proxy_id":null,"http_proxy_name":null,"retain_package_versions_count":null,"metadata_expire":null,"ignorable_content":null,"http_proxy":{"id":null,"name":null,"policy":"global_default_http_proxy"},"ssl_ca_cert":{"id":null,"name":null},"ssl_client_cert":{"id":null,"name":null},"ssl_client_key":{"id":null,"name":null},"gpg_key":{"id":null,"name":null},"permissions":{"deletable":true,"deletable_across_cv":true},"upstream_password_exists":false,"upstream_auth_exists":false,"content_view_environments":[]} ' headers: @@ -324,6 +262,8 @@ interactions: - max-age=0, private, must-revalidate Connection: - Keep-Alive + Content-Length: + - '2961' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -337,13 +277,11 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-develop + - 3.7.1 Keep-Alive: - - timeout=15, max=95 + - timeout=15, max=96 Strict-Transport-Security: - max-age=631139040; includeSubdomains - Transfer-Encoding: - - chunked X-Content-Type-Options: - nosniff X-Download-Options: diff --git a/tests/test_playbooks/fixtures/convert2rhel-6.yml b/tests/test_playbooks/fixtures/convert2rhel-6.yml index d82cd36db..a97a93115 100644 --- a/tests/test_playbooks/fixtures/convert2rhel-6.yml +++ b/tests/test_playbooks/fixtures/convert2rhel-6.yml @@ -14,12 +14,14 @@ interactions: uri: https://foreman.example.org/api/status response: body: - string: '{"satellite_version":"6.14.0","result":"ok","status":200,"version":"3.7.0-develop","api_version":2}' + string: '{"result":"ok","status":200,"version":"3.7.1","api_version":2}' headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive + Content-Length: + - '102' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -33,13 +35,11 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-develop + - 3.7.1 Keep-Alive: - timeout=15, max=100 Strict-Transport-Security: - max-age=631139040; includeSubdomains - Transfer-Encoding: - - chunked X-Content-Type-Options: - nosniff X-Download-Options: @@ -68,16 +68,18 @@ interactions: uri: https://foreman.example.org/katello/api/organizations?search=name%3D%22Test+Organization%22&per_page=4294967296 response: body: - string: "{\n \"total\": 3,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": + string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": 4294967296,\n \"search\": \"name=\\\"Test Organization\\\"\",\n \"sort\": - {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\":\"Test_Organization\",\"created_at\":\"2023-06-21 - 13:24:35 UTC\",\"updated_at\":\"2023-06-21 13:24:38 UTC\",\"id\":5,\"name\":\"Test + {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\":\"Test_Organization\",\"created_at\":\"2023-11-13 + 09:23:21 UTC\",\"updated_at\":\"2023-11-13 09:23:23 UTC\",\"id\":4,\"name\":\"Test Organization\",\"title\":\"Test Organization\",\"description\":\"A test organization\"}]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive + Content-Length: + - '388' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -91,13 +93,11 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-develop + - 3.7.1 Keep-Alive: - timeout=15, max=99 Strict-Transport-Security: - max-age=631139040; includeSubdomains - Transfer-Encoding: - - chunked X-Content-Type-Options: - nosniff X-Download-Options: @@ -123,11 +123,11 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/organizations/5/products?search=name%3D%22Oracle+Linux+7+Convert2RHEL%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/organizations/4/products?search=name%3D%22Oracle+Linux+8+Convert2RHEL%22&per_page=4294967296 response: body: - string: '{"total":2,"subtotal":0,"selectable":0,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Oracle - Linux 7 Convert2RHEL\"","sort":{"by":"name","order":"asc"},"results":[]} + string: '{"total":3,"subtotal":0,"selectable":0,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Oracle + Linux 8 Convert2RHEL\"","sort":{"by":"name","order":"asc"},"results":[]} ' headers: @@ -135,6 +135,8 @@ interactions: - max-age=0, private, must-revalidate Connection: - Keep-Alive + Content-Length: + - '182' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -146,15 +148,13 @@ interactions: Foreman_current_location: - ; ANY Foreman_current_organization: - - 5; Test Organization + - 4; Test Organization Foreman_version: - - 3.7.0-develop + - 3.7.1 Keep-Alive: - timeout=15, max=98 Strict-Transport-Security: - max-age=631139040; includeSubdomains - Transfer-Encoding: - - chunked X-Content-Type-Options: - nosniff X-Download-Options: @@ -169,7 +169,7 @@ interactions: code: 200 message: OK - request: - body: '{"organization_id": 5, "name": "Oracle Linux 7 Convert2RHEL"}' + body: '{"organization_id": 4, "name": "Oracle Linux 8 Convert2RHEL"}' headers: Accept: - application/json;version=2 @@ -187,10 +187,10 @@ interactions: uri: https://foreman.example.org/katello/api/products response: body: - string: ' {"sync_state_aggregated":null,"redhat":false,"id":32,"cp_id":"511553541992","name":"Oracle - Linux 7 Convert2RHEL","label":"Oracle_Linux_7_Convert2RHEL","description":null,"provider_id":5,"sync_plan_id":null,"sync_summary":{},"gpg_key_id":null,"ssl_ca_cert_id":null,"ssl_client_cert_id":null,"ssl_client_key_id":null,"sync_state":null,"last_sync":null,"last_sync_words":null,"organization_id":5,"organization":{"name":"Test - Organization","label":"Test_Organization","id":5},"sync_plan":null,"repository_count":0,"created_at":"2023-06-21 - 13:25:03 UTC","updated_at":"2023-06-21 13:25:03 UTC","product_content":[],"available_content":[],"repositories":[],"provider":{"name":"Anonymous"},"sync_status":{"id":null,"product_id":null,"progress":null,"sync_id":null,"state":null,"raw_state":null,"start_time":null,"finish_time":null,"duration":null,"display_size":null,"size":null,"is_running":null,"error_details":null},"permissions":{"view_products":true,"edit_products":true,"destroy_products":true,"sync_products":true},"published_content_view_ids":[],"active_task_count":0} + string: ' {"sync_state_aggregated":null,"redhat":false,"id":8,"cp_id":"533490883786","name":"Oracle + Linux 8 Convert2RHEL","label":"Oracle_Linux_8_Convert2RHEL","description":null,"provider_id":5,"sync_plan_id":null,"sync_summary":{},"gpg_key_id":null,"ssl_ca_cert_id":null,"ssl_client_cert_id":null,"ssl_client_key_id":null,"sync_state":null,"last_sync":null,"last_sync_words":null,"organization_id":4,"organization":{"name":"Test + Organization","label":"Test_Organization","id":4},"sync_plan":null,"repository_count":0,"created_at":"2023-11-13 + 09:23:31 UTC","updated_at":"2023-11-13 09:23:31 UTC","product_content":[],"available_content":[],"repositories":[],"provider":{"name":"Anonymous"},"sync_status":{"id":null,"product_id":null,"progress":null,"sync_id":null,"state":null,"raw_state":null,"start_time":null,"finish_time":null,"duration":null,"display_size":null,"size":null,"is_running":null,"error_details":null},"permissions":{"view_products":true,"edit_products":true,"destroy_products":true,"sync_products":true},"published_content_view_ids":[],"has_last_affected_repo_in_filter":false,"active_task_count":0} ' headers: @@ -198,6 +198,8 @@ interactions: - max-age=0, private, must-revalidate Connection: - Keep-Alive + Content-Length: + - '1111' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -209,15 +211,13 @@ interactions: Foreman_current_location: - ; ANY Foreman_current_organization: - - 5; Test Organization + - 4; Test Organization Foreman_version: - - 3.7.0-develop + - 3.7.1 Keep-Alive: - timeout=15, max=97 Strict-Transport-Security: - max-age=631139040; includeSubdomains - Transfer-Encoding: - - chunked X-Content-Type-Options: - nosniff X-Download-Options: diff --git a/tests/test_playbooks/fixtures/convert2rhel-7.yml b/tests/test_playbooks/fixtures/convert2rhel-7.yml index 3b30cc1d7..b72b9a8f7 100644 --- a/tests/test_playbooks/fixtures/convert2rhel-7.yml +++ b/tests/test_playbooks/fixtures/convert2rhel-7.yml @@ -14,12 +14,14 @@ interactions: uri: https://foreman.example.org/api/status response: body: - string: '{"satellite_version":"6.14.0","result":"ok","status":200,"version":"3.7.0-develop","api_version":2}' + string: '{"result":"ok","status":200,"version":"3.7.1","api_version":2}' headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive + Content-Length: + - '102' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -33,13 +35,11 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-develop + - 3.7.1 Keep-Alive: - timeout=15, max=100 Strict-Transport-Security: - max-age=631139040; includeSubdomains - Transfer-Encoding: - - chunked X-Content-Type-Options: - nosniff X-Download-Options: @@ -68,16 +68,18 @@ interactions: uri: https://foreman.example.org/katello/api/organizations?search=name%3D%22Test+Organization%22&per_page=4294967296 response: body: - string: "{\n \"total\": 3,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": + string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": 4294967296,\n \"search\": \"name=\\\"Test Organization\\\"\",\n \"sort\": - {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\":\"Test_Organization\",\"created_at\":\"2023-06-21 - 13:24:35 UTC\",\"updated_at\":\"2023-06-21 13:24:38 UTC\",\"id\":5,\"name\":\"Test + {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\":\"Test_Organization\",\"created_at\":\"2023-11-13 + 09:23:21 UTC\",\"updated_at\":\"2023-11-13 09:23:23 UTC\",\"id\":4,\"name\":\"Test Organization\",\"title\":\"Test Organization\",\"description\":\"A test organization\"}]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive + Content-Length: + - '388' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -91,13 +93,11 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-develop + - 3.7.1 Keep-Alive: - timeout=15, max=99 Strict-Transport-Security: - max-age=631139040; includeSubdomains - Transfer-Encoding: - - chunked X-Content-Type-Options: - nosniff X-Download-Options: @@ -123,13 +123,13 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/organizations/5/products?search=name%3D%22Oracle+Linux+7+Convert2RHEL%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/organizations/4/products?search=name%3D%22Oracle+Linux+8+Convert2RHEL%22&per_page=4294967296 response: body: - string: '{"total":3,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Oracle - Linux 7 Convert2RHEL\"","sort":{"by":"name","order":"asc"},"results":[{"id":32,"cp_id":"511553541992","name":"Oracle - Linux 7 Convert2RHEL","label":"Oracle_Linux_7_Convert2RHEL","description":null,"provider_id":5,"sync_plan_id":null,"sync_summary":{},"gpg_key_id":null,"ssl_ca_cert_id":null,"ssl_client_cert_id":null,"ssl_client_key_id":null,"sync_state":null,"last_sync":null,"last_sync_words":null,"organization_id":5,"organization":{"name":"Test - Organization","label":"Test_Organization","id":5},"sync_plan":null,"repository_count":0}]} + string: '{"total":4,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Oracle + Linux 8 Convert2RHEL\"","sort":{"by":"name","order":"asc"},"results":[{"id":8,"cp_id":"533490883786","name":"Oracle + Linux 8 Convert2RHEL","label":"Oracle_Linux_8_Convert2RHEL","description":null,"provider_id":5,"sync_plan_id":null,"sync_summary":{},"gpg_key_id":null,"ssl_ca_cert_id":null,"ssl_client_cert_id":null,"ssl_client_key_id":null,"sync_state":null,"last_sync":null,"last_sync_words":null,"organization_id":4,"organization":{"name":"Test + Organization","label":"Test_Organization","id":4},"sync_plan":null,"repository_count":0}]} ' headers: @@ -137,6 +137,8 @@ interactions: - max-age=0, private, must-revalidate Connection: - Keep-Alive + Content-Length: + - '647' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -148,15 +150,13 @@ interactions: Foreman_current_location: - ; ANY Foreman_current_organization: - - 5; Test Organization + - 4; Test Organization Foreman_version: - - 3.7.0-develop + - 3.7.1 Keep-Alive: - timeout=15, max=98 Strict-Transport-Security: - max-age=631139040; includeSubdomains - Transfer-Encoding: - - chunked X-Content-Type-Options: - nosniff X-Download-Options: @@ -182,11 +182,11 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/products/32/repositories?search=name%3D%22Oracle+Linux+7+Convert2RHEL+main%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/products/8/repositories?search=name%3D%22Oracle+Linux+8+Convert2RHEL+main%22&per_page=4294967296 response: body: string: '{"total":0,"subtotal":0,"selectable":0,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Oracle - Linux 7 Convert2RHEL main\"","sort":{"by":"name","order":"asc"},"results":[],"org_repository_count":2} + Linux 8 Convert2RHEL main\"","sort":{"by":"name","order":"asc"},"results":[],"org_repository_count":3} ' headers: @@ -194,6 +194,8 @@ interactions: - max-age=0, private, must-revalidate Connection: - Keep-Alive + Content-Length: + - '212' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -207,13 +209,11 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-develop + - 3.7.1 Keep-Alive: - timeout=15, max=97 Strict-Transport-Security: - max-age=631139040; includeSubdomains - Transfer-Encoding: - - chunked X-Content-Type-Options: - nosniff X-Download-Options: @@ -228,8 +228,8 @@ interactions: code: 200 message: OK - request: - body: '{"name": "Oracle Linux 7 Convert2RHEL main", "product_id": 32, "content_type": - "yum", "url": "https://cdn-ubi.redhat.com/content/public/ubi/dist/ubi/server/7/7Server/x86_64/os", + body: '{"name": "Oracle Linux 8 Convert2RHEL main", "product_id": 8, "content_type": + "yum", "url": "https://cdn-ubi.redhat.com/content/public/ubi/dist/ubi8/8/x86_64/baseos/os/", "download_policy": "immediate", "verify_ssl_on_sync": true}' headers: Accept: @@ -239,7 +239,7 @@ interactions: Connection: - keep-alive Content-Length: - - '237' + - '230' Content-Type: - application/json User-Agent: @@ -248,13 +248,13 @@ interactions: uri: https://foreman.example.org/katello/api/repositories response: body: - string: ' {"relative_path":"Test_Organization/Library/custom/Oracle_Linux_7_Convert2RHEL/Oracle_Linux_7_Convert2RHEL_main","promoted":false,"content_view_version_id":6,"library_instance_id":null,"last_contents_changed":"2023-06-21 - 13:25:12 UTC","organization_id":5,"organization":{"name":"Test Organization","label":"Test_Organization","id":5},"created_at":"2023-06-21 - 13:25:07 UTC","updated_at":"2023-06-21 13:25:14 UTC","backend_identifier":"68377776-df73-4fd6-9677-bbbd0e26dc47","container_repository_name":null,"full_path":"https://sat-r220-03.lab.eng.rdu2.redhat.com/pulp/content/Test_Organization/Library/custom/Oracle_Linux_7_Convert2RHEL/Oracle_Linux_7_Convert2RHEL_main/","version_href":"/pulp/api/v3/repositories/rpm/rpm/6cd487fd-6c11-449c-acfe-455459287571/versions/0/","remote_href":"/pulp/api/v3/remotes/rpm/rpm/9f88b477-cfe9-4e3d-9991-19b58297c19e/","publication_href":null,"content_counts":{"rpm":0,"erratum":0,"package_group":0,"srpm":0,"module_stream":0},"mirroring_policy":"mirror_content_only","id":18,"name":"Oracle - Linux 7 Convert2RHEL main","label":"Oracle_Linux_7_Convert2RHEL_main","description":null,"content_view_versions":[],"last_sync":null,"content_view":{"id":6,"name":"Default - Organization View"},"content_view_version":{"id":6,"name":"Default Organization - View 1.0","content_view_id":6},"kt_environment":{"id":3,"name":"Library"},"content_type":"yum","url":"https://cdn-ubi.redhat.com/content/public/ubi/dist/ubi/server/7/7Server/x86_64/os","arch":"noarch","os_versions":[],"content_id":"1687353912680","generic_remote_options":null,"major":null,"minor":null,"product":{"id":32,"cp_id":"511553541992","name":"Oracle - Linux 7 Convert2RHEL","orphaned":false,"redhat":false,"sync_plan":null},"content_label":"Test_Organization_Oracle_Linux_7_Convert2RHEL_Oracle_Linux_7_Convert2RHEL_main","last_sync_words":null,"environment":{"id":3,"registry_unauthenticated_pull":false},"docker_upstream_name":null,"docker_tags_whitelist":null,"include_tags":null,"exclude_tags":null,"verify_ssl_on_sync":true,"unprotected":true,"checksum_type":null,"download_policy":"immediate","ansible_collection_requirements":null,"ansible_collection_auth_url":null,"ansible_collection_auth_token":null,"gpg_key_id":null,"ssl_ca_cert_id":null,"ssl_client_cert_id":null,"ssl_client_key_id":null,"upstream_username":null,"deb_releases":null,"deb_components":null,"deb_architectures":null,"http_proxy_policy":"global_default_http_proxy","http_proxy_id":null,"http_proxy_name":null,"retain_package_versions_count":null,"ignorable_content":null,"http_proxy":{"id":null,"name":null,"policy":"global_default_http_proxy"},"ssl_ca_cert":{"id":null,"name":null},"ssl_client_cert":{"id":null,"name":null},"ssl_client_key":{"id":null,"name":null},"gpg_key":{"id":null,"name":null},"permissions":{"deletable":true,"deletable_across_cv":true},"upstream_password_exists":false,"upstream_auth_exists":false,"content_view_environments":[]} + string: ' {"relative_path":"Test_Organization/Library/custom/Oracle_Linux_8_Convert2RHEL/Oracle_Linux_8_Convert2RHEL_main","promoted":false,"content_view_version_id":5,"library_instance_id":null,"last_contents_changed":"2023-11-13 + 09:23:33 UTC","organization_id":4,"organization":{"name":"Test Organization","label":"Test_Organization","id":4},"created_at":"2023-11-13 + 09:23:33 UTC","updated_at":"2023-11-13 09:23:33 UTC","backend_identifier":"578d0b29-4bca-45e8-8213-1ee30b86bea5","container_repository_name":null,"full_path":"https://centos8-stream-katello-4-9.tanso.example.com/pulp/content/Test_Organization/Library/custom/Oracle_Linux_8_Convert2RHEL/Oracle_Linux_8_Convert2RHEL_main/","version_href":"/pulp/api/v3/repositories/rpm/rpm/7ba6e2c9-531a-4021-b2ca-2a7482cc6d4d/versions/0/","remote_href":"/pulp/api/v3/remotes/rpm/rpm/de92cca5-e59c-4c3c-b6e9-a0468cadf657/","publication_href":null,"content_counts":{"rpm":0,"erratum":0,"package_group":0,"srpm":0,"module_stream":0},"mirroring_policy":"mirror_content_only","id":12,"name":"Oracle + Linux 8 Convert2RHEL main","label":"Oracle_Linux_8_Convert2RHEL_main","description":null,"content_view_versions":[],"filters":[],"last_sync":null,"content_view":{"id":5,"name":"Default + Organization View"},"content_view_version":{"id":5,"name":"Default Organization + View 1.0","content_view_id":5},"kt_environment":{"id":3,"name":"Library"},"content_type":"yum","url":"https://cdn-ubi.redhat.com/content/public/ubi/dist/ubi8/8/x86_64/baseos/os/","arch":"noarch","os_versions":[],"content_id":"1699867413416","generic_remote_options":null,"major":null,"minor":null,"product":{"id":8,"cp_id":"533490883786","name":"Oracle + Linux 8 Convert2RHEL","orphaned":false,"redhat":false,"sync_plan":null},"content_label":"Test_Organization_Oracle_Linux_8_Convert2RHEL_Oracle_Linux_8_Convert2RHEL_main","last_sync_words":null,"environment":{"id":3,"registry_unauthenticated_pull":false},"docker_upstream_name":null,"docker_tags_whitelist":null,"include_tags":null,"exclude_tags":null,"verify_ssl_on_sync":true,"unprotected":true,"checksum_type":null,"download_policy":"immediate","ansible_collection_requirements":null,"ansible_collection_auth_url":null,"ansible_collection_auth_token":null,"gpg_key_id":null,"ssl_ca_cert_id":null,"ssl_client_cert_id":null,"ssl_client_key_id":null,"upstream_username":null,"deb_releases":null,"deb_components":null,"deb_architectures":null,"http_proxy_policy":"global_default_http_proxy","http_proxy_id":null,"http_proxy_name":null,"retain_package_versions_count":null,"metadata_expire":null,"ignorable_content":null,"http_proxy":{"id":null,"name":null,"policy":"global_default_http_proxy"},"ssl_ca_cert":{"id":null,"name":null},"ssl_client_cert":{"id":null,"name":null},"ssl_client_key":{"id":null,"name":null},"gpg_key":{"id":null,"name":null},"permissions":{"deletable":true,"deletable_across_cv":true},"upstream_password_exists":false,"upstream_auth_exists":false,"content_view_environments":[]} ' headers: @@ -262,6 +262,8 @@ interactions: - max-age=0, private, must-revalidate Connection: - Keep-Alive + Content-Length: + - '2955' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -275,13 +277,11 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-develop + - 3.7.1 Keep-Alive: - timeout=15, max=96 Strict-Transport-Security: - max-age=631139040; includeSubdomains - Transfer-Encoding: - - chunked X-Content-Type-Options: - nosniff X-Download-Options: diff --git a/tests/test_playbooks/fixtures/convert2rhel-8.yml b/tests/test_playbooks/fixtures/convert2rhel-8.yml index 61f83055d..6a4cccbb1 100644 --- a/tests/test_playbooks/fixtures/convert2rhel-8.yml +++ b/tests/test_playbooks/fixtures/convert2rhel-8.yml @@ -14,12 +14,14 @@ interactions: uri: https://foreman.example.org/api/status response: body: - string: '{"satellite_version":"6.14.0","result":"ok","status":200,"version":"3.7.0-develop","api_version":2}' + string: '{"result":"ok","status":200,"version":"3.7.1","api_version":2}' headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive + Content-Length: + - '102' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -33,13 +35,11 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-develop + - 3.7.1 Keep-Alive: - timeout=15, max=100 Strict-Transport-Security: - max-age=631139040; includeSubdomains - Transfer-Encoding: - - chunked X-Content-Type-Options: - nosniff X-Download-Options: @@ -68,16 +68,18 @@ interactions: uri: https://foreman.example.org/katello/api/organizations?search=name%3D%22Test+Organization%22&per_page=4294967296 response: body: - string: "{\n \"total\": 3,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": + string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": 4294967296,\n \"search\": \"name=\\\"Test Organization\\\"\",\n \"sort\": - {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\":\"Test_Organization\",\"created_at\":\"2023-06-21 - 13:24:35 UTC\",\"updated_at\":\"2023-06-21 13:24:38 UTC\",\"id\":5,\"name\":\"Test + {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\":\"Test_Organization\",\"created_at\":\"2023-11-13 + 09:23:21 UTC\",\"updated_at\":\"2023-11-13 09:23:23 UTC\",\"id\":4,\"name\":\"Test Organization\",\"title\":\"Test Organization\",\"description\":\"A test organization\"}]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive + Content-Length: + - '388' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -91,13 +93,11 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-develop + - 3.7.1 Keep-Alive: - timeout=15, max=99 Strict-Transport-Security: - max-age=631139040; includeSubdomains - Transfer-Encoding: - - chunked X-Content-Type-Options: - nosniff X-Download-Options: @@ -123,11 +123,12 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/organizations/5/products?search=name%3D%22Oracle+Linux+8+Convert2RHEL%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/organizations/4/products?search=name%3D%22Convert2RHEL7%22&per_page=4294967296 response: body: - string: '{"total":3,"subtotal":0,"selectable":0,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Oracle - Linux 8 Convert2RHEL\"","sort":{"by":"name","order":"asc"},"results":[]} + string: '{"total":4,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Convert2RHEL7\"","sort":{"by":"name","order":"asc"},"results":[{"id":5,"cp_id":"176163814735","name":"Convert2RHEL7","label":"Convert2RHEL7","description":null,"provider_id":5,"sync_plan_id":null,"sync_summary":{},"gpg_key_id":null,"ssl_ca_cert_id":null,"ssl_client_cert_id":null,"ssl_client_key_id":null,"sync_state":null,"last_sync":"2023-11-13 + 09:23:26 UTC","last_sync_words":"less than a minute","organization_id":4,"organization":{"name":"Test + Organization","label":"Test_Organization","id":4},"sync_plan":null,"repository_count":1}]} ' headers: @@ -135,6 +136,8 @@ interactions: - max-age=0, private, must-revalidate Connection: - Keep-Alive + Content-Length: + - '642' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -146,15 +149,13 @@ interactions: Foreman_current_location: - ; ANY Foreman_current_organization: - - 5; Test Organization + - 4; Test Organization Foreman_version: - - 3.7.0-develop + - 3.7.1 Keep-Alive: - timeout=15, max=98 Strict-Transport-Security: - max-age=631139040; includeSubdomains - Transfer-Encoding: - - chunked X-Content-Type-Options: - nosniff X-Download-Options: @@ -169,7 +170,67 @@ interactions: code: 200 message: OK - request: - body: '{"organization_id": 5, "name": "Oracle Linux 8 Convert2RHEL"}' + body: null + headers: + Accept: + - application/json;version=2 + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - apypie (https://github.com/Apipie/apypie) + method: GET + uri: https://foreman.example.org/katello/api/products/5/repositories?search=name%3D%22Convert2RHEL7+main%22&per_page=4294967296 + response: + body: + string: '{"total":1,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Convert2RHEL7 + main\"","sort":{"by":"name","order":"asc"},"results":[{"backend_identifier":"42ac9443-2167-4189-b4da-bbfcf402b74a","relative_path":"Test_Organization/Library/custom/Convert2RHEL7/Convert2RHEL7_main","container_repository_name":null,"full_path":"https://centos8-stream-katello-4-9.tanso.example.com/pulp/content/Test_Organization/Library/custom/Convert2RHEL7/Convert2RHEL7_main/","library_instance_id":null,"version_href":"/pulp/api/v3/repositories/rpm/rpm/b5fce5ea-3912-45b8-966e-fb9f15e774e2/versions/0/","remote_href":"/pulp/api/v3/remotes/rpm/rpm/a363bf7a-e6cf-44fb-a11c-b50602ce53f7/","publication_href":"/pulp/api/v3/publications/rpm/rpm/68a25894-5d1c-4d96-bf9f-316e42123d15/","content_counts":{"rpm":0,"erratum":0,"package_group":0,"srpm":0,"module_stream":0},"mirroring_policy":"mirror_content_only","id":9,"name":"Convert2RHEL7 + main","label":"Convert2RHEL7_main","description":null,"content_view_versions":[],"filters":[],"last_sync":null,"content_view":{"id":5,"name":"Default + Organization View"},"content_view_version":{"id":5,"name":"Default Organization + View 1.0","content_view_id":5},"kt_environment":{"id":3,"name":"Library"},"content_type":"yum","url":"https://cdn-public.redhat.com/content/public/addon/dist/convert2rhel/server/7/7Server/x86_64/os/","arch":"noarch","os_versions":[],"content_id":"1699867405581","generic_remote_options":null,"major":null,"minor":null,"product":{"id":5,"cp_id":"176163814735","name":"Convert2RHEL7","orphaned":false,"redhat":false,"sync_plan":null},"content_label":"Test_Organization_Convert2RHEL7_Convert2RHEL7_main","last_sync_words":null}],"org_repository_count":4} + + ' + headers: + Cache-Control: + - max-age=0, private, must-revalidate + Connection: + - Keep-Alive + Content-Length: + - '1734' + Content-Security-Policy: + - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: + - application/json; charset=utf-8 + Foreman_api_version: + - '2' + Foreman_current_location: + - ; ANY + Foreman_current_organization: + - ; ANY + Foreman_version: + - 3.7.1 + Keep-Alive: + - timeout=15, max=97 + Strict-Transport-Security: + - max-age=631139040; includeSubdomains + X-Content-Type-Options: + - nosniff + X-Download-Options: + - noopen + X-Frame-Options: + - sameorigin + X-Permitted-Cross-Domain-Policies: + - none + X-XSS-Protection: + - 1; mode=block + status: + code: 200 + message: OK +- request: + body: '{}' headers: Accept: - application/json;version=2 @@ -178,24 +239,29 @@ interactions: Connection: - keep-alive Content-Length: - - '61' + - '2' Content-Type: - application/json User-Agent: - apypie (https://github.com/Apipie/apypie) method: POST - uri: https://foreman.example.org/katello/api/products + uri: https://foreman.example.org/katello/api/repositories/9/sync response: body: - string: ' {"sync_state_aggregated":null,"redhat":false,"id":33,"cp_id":"278578062083","name":"Oracle - Linux 8 Convert2RHEL","label":"Oracle_Linux_8_Convert2RHEL","description":null,"provider_id":5,"sync_plan_id":null,"sync_summary":{},"gpg_key_id":null,"ssl_ca_cert_id":null,"ssl_client_cert_id":null,"ssl_client_key_id":null,"sync_state":null,"last_sync":null,"last_sync_words":null,"organization_id":5,"organization":{"name":"Test - Organization","label":"Test_Organization","id":5},"sync_plan":null,"repository_count":0,"created_at":"2023-06-21 - 13:25:16 UTC","updated_at":"2023-06-21 13:25:16 UTC","product_content":[],"available_content":[],"repositories":[],"provider":{"name":"Anonymous"},"sync_status":{"id":null,"product_id":null,"progress":null,"sync_id":null,"state":null,"raw_state":null,"start_time":null,"finish_time":null,"duration":null,"display_size":null,"size":null,"is_running":null,"error_details":null},"permissions":{"view_products":true,"edit_products":true,"destroy_products":true,"sync_products":true},"published_content_view_ids":[],"active_task_count":0} + string: ' {"id":"b159576b-062a-43a2-a6bb-82d5ef2859e6","label":"Actions::Katello::Repository::Sync","pending":true,"action":"Synchronize + repository ''Convert2RHEL7 main''; product ''Convert2RHEL7''; organization + ''Test Organization''","username":"admin","started_at":"2023-11-13 09:23:34 + UTC","ended_at":null,"state":"planned","result":"pending","progress":0.0,"input":{"repository":{"id":9,"name":"Convert2RHEL7 + main","label":"Convert2RHEL7_main"},"product":{"id":5,"name":"Convert2RHEL7","label":"Convert2RHEL7","cp_id":"176163814735"},"provider":{"id":5,"name":"Anonymous"},"organization":{"id":4,"name":"Test + Organization","label":"Test_Organization"},"services_checked":["pulp3"],"id":9,"sync_result":{"class":"Dynflow::ExecutionPlan::OutputReference","execution_plan_id":"4e54ffcd-7e77-4da1-9125-92b7932358d6","step_id":19,"action_id":2,"subkeys":[]},"skip_metadata_check":false,"validate_contents":false,"contents_changed":{"class":"Dynflow::ExecutionPlan::OutputReference","execution_plan_id":"4e54ffcd-7e77-4da1-9125-92b7932358d6","step_id":19,"action_id":2,"subkeys":["contents_changed"]},"current_request_id":"0c5c040f-25f0-4442-bf2a-e57a6a50d787","current_timezone":"UTC","current_organization_id":null,"current_location_id":null,"current_user_id":4},"output":{},"humanized":{"action":"Synchronize","input":[["repository",{"text":"repository + ''Convert2RHEL7 main''","link":null}],["product",{"text":"product ''Convert2RHEL7''","link":"/products/5/"}],["organization",{"text":"organization + ''Test Organization''","link":"/organizations/4/edit"}]],"output":"","errors":[]},"cli_example":null,"start_at":"2023-11-13 + 09:23:34 UTC","available_actions":{"cancellable":false,"resumable":false}} ' headers: Cache-Control: - - max-age=0, private, must-revalidate + - no-cache Connection: - Keep-Alive Content-Security-Policy: @@ -209,11 +275,11 @@ interactions: Foreman_current_location: - ; ANY Foreman_current_organization: - - 5; Test Organization + - ; ANY Foreman_version: - - 3.7.0-develop + - 3.7.1 Keep-Alive: - - timeout=15, max=97 + - timeout=15, max=96 Strict-Transport-Security: - max-age=631139040; includeSubdomains Transfer-Encoding: @@ -229,6 +295,136 @@ interactions: X-XSS-Protection: - 1; mode=block status: - code: 201 - message: Created + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - application/json;version=2 + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - apypie (https://github.com/Apipie/apypie) + method: GET + uri: https://foreman.example.org/foreman_tasks/api/tasks/b159576b-062a-43a2-a6bb-82d5ef2859e6 + response: + body: + string: '{"id":"b159576b-062a-43a2-a6bb-82d5ef2859e6","label":"Actions::Katello::Repository::Sync","pending":true,"action":"Synchronize + repository ''Convert2RHEL7 main''; product ''Convert2RHEL7''; organization + ''Test Organization''","username":"admin","started_at":"2023-11-13 09:23:34 + UTC","ended_at":null,"duration":"4.221829","state":"running","result":"pending","progress":0.07,"input":{"repository":{"id":9,"name":"Convert2RHEL7 + main","label":"Convert2RHEL7_main"},"product":{"id":5,"name":"Convert2RHEL7","label":"Convert2RHEL7","cp_id":"176163814735"},"provider":{"id":5,"name":"Anonymous"},"organization":{"id":4,"name":"Test + Organization","label":"Test_Organization"},"services_checked":["pulp3"],"id":9,"sync_result":{"class":"Dynflow::ExecutionPlan::OutputReference","execution_plan_id":"4e54ffcd-7e77-4da1-9125-92b7932358d6","step_id":19,"action_id":2,"subkeys":[]},"skip_metadata_check":false,"validate_contents":false,"contents_changed":{"class":"Dynflow::ExecutionPlan::OutputReference","execution_plan_id":"4e54ffcd-7e77-4da1-9125-92b7932358d6","step_id":19,"action_id":2,"subkeys":["contents_changed"]},"current_request_id":"0c5c040f-25f0-4442-bf2a-e57a6a50d787","current_timezone":"UTC","current_organization_id":null,"current_location_id":null,"current_user_id":4},"output":{},"humanized":{"action":"Synchronize","input":[["repository",{"text":"repository + ''Convert2RHEL7 main''","link":null}],["product",{"text":"product ''Convert2RHEL7''","link":"/products/5/"}],["organization",{"text":"organization + ''Test Organization''","link":"/organizations/4/edit"}]],"output":"Waiting + to start.\n--------------------------------\nAssociating Content: 0/0\nDownloading + Artifacts: 0/0\nDownloading Metadata Files: 0/0","errors":[]},"cli_example":null,"start_at":"2023-11-13 + 09:23:34 UTC","available_actions":{"cancellable":true,"resumable":false}}' + headers: + Cache-Control: + - max-age=0, private, must-revalidate + Connection: + - Keep-Alive + Content-Length: + - '1837' + Content-Security-Policy: + - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: + - application/json; charset=utf-8 + Foreman_api_version: + - '2' + Foreman_current_location: + - ; ANY + Foreman_current_organization: + - ; ANY + Foreman_version: + - 3.7.1 + Keep-Alive: + - timeout=15, max=95 + Strict-Transport-Security: + - max-age=631139040; includeSubdomains + X-Content-Type-Options: + - nosniff + X-Download-Options: + - noopen + X-Frame-Options: + - sameorigin + X-Permitted-Cross-Domain-Policies: + - none + X-XSS-Protection: + - 1; mode=block + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json;version=2 + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - apypie (https://github.com/Apipie/apypie) + method: GET + uri: https://foreman.example.org/foreman_tasks/api/tasks/b159576b-062a-43a2-a6bb-82d5ef2859e6 + response: + body: + string: '{"id":"b159576b-062a-43a2-a6bb-82d5ef2859e6","label":"Actions::Katello::Repository::Sync","pending":false,"action":"Synchronize + repository ''Convert2RHEL7 main''; product ''Convert2RHEL7''; organization + ''Test Organization''","username":"admin","started_at":"2023-11-13 09:23:34 + UTC","ended_at":"2023-11-13 09:23:42 UTC","duration":"7.666517","state":"stopped","result":"success","progress":1.0,"input":{"repository":{"id":9,"name":"Convert2RHEL7 + main","label":"Convert2RHEL7_main"},"product":{"id":5,"name":"Convert2RHEL7","label":"Convert2RHEL7","cp_id":"176163814735"},"provider":{"id":5,"name":"Anonymous"},"organization":{"id":4,"name":"Test + Organization","label":"Test_Organization"},"services_checked":["pulp3"],"id":9,"sync_result":{"publication_provided":false,"contents_changed":true},"skip_metadata_check":false,"validate_contents":false,"contents_changed":true,"current_request_id":"0c5c040f-25f0-4442-bf2a-e57a6a50d787","current_timezone":"UTC","current_organization_id":null,"current_location_id":null,"current_user_id":4},"output":{},"humanized":{"action":"Synchronize","input":[["repository",{"text":"repository + ''Convert2RHEL7 main''","link":null}],["product",{"text":"product ''Convert2RHEL7''","link":"/products/5/"}],["organization",{"text":"organization + ''Test Organization''","link":"/organizations/4/edit"}]],"output":"Added Rpms: + 12, Errata: 12\nTotal steps: 54/54\n--------------------------------\nAssociating + Content: 24/24\nDownloading Artifacts: 0/0\nDownloading Metadata Files: 6/6\nParsed + Advisories: 12/12\nParsed Comps: 0/0\nParsed Packages: 12/12\nSkipping Packages: + 0/0\nUn-Associating Content: 0/0","errors":[]},"cli_example":null,"start_at":"2023-11-13 + 09:23:34 UTC","available_actions":{"cancellable":false,"resumable":false}}' + headers: + Cache-Control: + - max-age=0, private, must-revalidate + Connection: + - Keep-Alive + Content-Length: + - '1752' + Content-Security-Policy: + - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: + - application/json; charset=utf-8 + Foreman_api_version: + - '2' + Foreman_current_location: + - ; ANY + Foreman_current_organization: + - ; ANY + Foreman_version: + - 3.7.1 + Keep-Alive: + - timeout=15, max=94 + Strict-Transport-Security: + - max-age=631139040; includeSubdomains + X-Content-Type-Options: + - nosniff + X-Download-Options: + - noopen + X-Frame-Options: + - sameorigin + X-Permitted-Cross-Domain-Policies: + - none + X-XSS-Protection: + - 1; mode=block + status: + code: 200 + message: OK version: 1 diff --git a/tests/test_playbooks/fixtures/convert2rhel-9.yml b/tests/test_playbooks/fixtures/convert2rhel-9.yml index a907b1c6e..0b41a2e98 100644 --- a/tests/test_playbooks/fixtures/convert2rhel-9.yml +++ b/tests/test_playbooks/fixtures/convert2rhel-9.yml @@ -14,12 +14,14 @@ interactions: uri: https://foreman.example.org/api/status response: body: - string: '{"satellite_version":"6.14.0","result":"ok","status":200,"version":"3.7.0-develop","api_version":2}' + string: '{"result":"ok","status":200,"version":"3.7.1","api_version":2}' headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive + Content-Length: + - '102' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -33,13 +35,11 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-develop + - 3.7.1 Keep-Alive: - timeout=15, max=100 Strict-Transport-Security: - max-age=631139040; includeSubdomains - Transfer-Encoding: - - chunked X-Content-Type-Options: - nosniff X-Download-Options: @@ -68,16 +68,18 @@ interactions: uri: https://foreman.example.org/katello/api/organizations?search=name%3D%22Test+Organization%22&per_page=4294967296 response: body: - string: "{\n \"total\": 3,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": + string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": 4294967296,\n \"search\": \"name=\\\"Test Organization\\\"\",\n \"sort\": - {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\":\"Test_Organization\",\"created_at\":\"2023-06-21 - 13:24:35 UTC\",\"updated_at\":\"2023-06-21 13:24:38 UTC\",\"id\":5,\"name\":\"Test + {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\":\"Test_Organization\",\"created_at\":\"2023-11-13 + 09:23:21 UTC\",\"updated_at\":\"2023-11-13 09:23:23 UTC\",\"id\":4,\"name\":\"Test Organization\",\"title\":\"Test Organization\",\"description\":\"A test organization\"}]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive + Content-Length: + - '388' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -91,13 +93,11 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-develop + - 3.7.1 Keep-Alive: - timeout=15, max=99 Strict-Transport-Security: - max-age=631139040; includeSubdomains - Transfer-Encoding: - - chunked X-Content-Type-Options: - nosniff X-Download-Options: @@ -123,13 +123,12 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/organizations/5/products?search=name%3D%22Oracle+Linux+8+Convert2RHEL%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/organizations/4/products?search=name%3D%22Convert2RHEL8%22&per_page=4294967296 response: body: - string: '{"total":4,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Oracle - Linux 8 Convert2RHEL\"","sort":{"by":"name","order":"asc"},"results":[{"id":33,"cp_id":"278578062083","name":"Oracle - Linux 8 Convert2RHEL","label":"Oracle_Linux_8_Convert2RHEL","description":null,"provider_id":5,"sync_plan_id":null,"sync_summary":{},"gpg_key_id":null,"ssl_ca_cert_id":null,"ssl_client_cert_id":null,"ssl_client_key_id":null,"sync_state":null,"last_sync":null,"last_sync_words":null,"organization_id":5,"organization":{"name":"Test - Organization","label":"Test_Organization","id":5},"sync_plan":null,"repository_count":0}]} + string: '{"total":4,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Convert2RHEL8\"","sort":{"by":"name","order":"asc"},"results":[{"id":6,"cp_id":"139454427959","name":"Convert2RHEL8","label":"Convert2RHEL8","description":null,"provider_id":5,"sync_plan_id":null,"sync_summary":{},"gpg_key_id":null,"ssl_ca_cert_id":null,"ssl_client_cert_id":null,"ssl_client_key_id":null,"sync_state":null,"last_sync":"2023-11-13 + 09:23:29 UTC","last_sync_words":"less than a minute","organization_id":4,"organization":{"name":"Test + Organization","label":"Test_Organization","id":4},"sync_plan":null,"repository_count":1}]} ' headers: @@ -137,6 +136,8 @@ interactions: - max-age=0, private, must-revalidate Connection: - Keep-Alive + Content-Length: + - '642' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -148,15 +149,13 @@ interactions: Foreman_current_location: - ; ANY Foreman_current_organization: - - 5; Test Organization + - 4; Test Organization Foreman_version: - - 3.7.0-develop + - 3.7.1 Keep-Alive: - timeout=15, max=98 Strict-Transport-Security: - max-age=631139040; includeSubdomains - Transfer-Encoding: - - chunked X-Content-Type-Options: - nosniff X-Download-Options: @@ -182,11 +181,14 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/products/33/repositories?search=name%3D%22Oracle+Linux+8+Convert2RHEL+main%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/products/6/repositories?search=name%3D%22Convert2RHEL8+main%22&per_page=4294967296 response: body: - string: '{"total":0,"subtotal":0,"selectable":0,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Oracle - Linux 8 Convert2RHEL main\"","sort":{"by":"name","order":"asc"},"results":[],"org_repository_count":3} + string: '{"total":1,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Convert2RHEL8 + main\"","sort":{"by":"name","order":"asc"},"results":[{"backend_identifier":"efcacfee-d580-4ee2-ba9d-6e814db96635","relative_path":"Test_Organization/Library/custom/Convert2RHEL8/Convert2RHEL8_main","container_repository_name":null,"full_path":"https://centos8-stream-katello-4-9.tanso.example.com/pulp/content/Test_Organization/Library/custom/Convert2RHEL8/Convert2RHEL8_main/","library_instance_id":null,"version_href":"/pulp/api/v3/repositories/rpm/rpm/cd1634f4-f76f-4748-90ca-4cda8c82524a/versions/0/","remote_href":"/pulp/api/v3/remotes/rpm/rpm/a2ec2855-7266-4aeb-b92a-59c3ff60617e/","publication_href":"/pulp/api/v3/publications/rpm/rpm/0a2462ba-013a-4d7e-a90a-a02e9a44ed1b/","content_counts":{"rpm":0,"erratum":0,"package_group":0,"srpm":0,"module_stream":0},"mirroring_policy":"mirror_content_only","id":10,"name":"Convert2RHEL8 + main","label":"Convert2RHEL8_main","description":null,"content_view_versions":[],"filters":[],"last_sync":null,"content_view":{"id":5,"name":"Default + Organization View"},"content_view_version":{"id":5,"name":"Default Organization + View 1.0","content_view_id":5},"kt_environment":{"id":3,"name":"Library"},"content_type":"yum","url":"https://cdn-public.redhat.com/content/public/addon/dist/convert2rhel8/8/x86_64/os/","arch":"noarch","os_versions":[],"content_id":"1699867408251","generic_remote_options":null,"major":null,"minor":null,"product":{"id":6,"cp_id":"139454427959","name":"Convert2RHEL8","orphaned":false,"redhat":false,"sync_plan":null},"content_label":"Test_Organization_Convert2RHEL8_Convert2RHEL8_main","last_sync_words":null}],"org_repository_count":4} ' headers: @@ -194,6 +196,8 @@ interactions: - max-age=0, private, must-revalidate Connection: - Keep-Alive + Content-Length: + - '1721' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -207,13 +211,11 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-develop + - 3.7.1 Keep-Alive: - timeout=15, max=97 Strict-Transport-Security: - max-age=631139040; includeSubdomains - Transfer-Encoding: - - chunked X-Content-Type-Options: - nosniff X-Download-Options: @@ -228,9 +230,7 @@ interactions: code: 200 message: OK - request: - body: '{"name": "Oracle Linux 8 Convert2RHEL main", "product_id": 33, "content_type": - "yum", "url": "https://cdn-ubi.redhat.com/content/public/ubi/dist/ubi8/8/x86_64/baseos/os/", - "download_policy": "immediate", "verify_ssl_on_sync": true}' + body: '{}' headers: Accept: - application/json;version=2 @@ -239,27 +239,29 @@ interactions: Connection: - keep-alive Content-Length: - - '231' + - '2' Content-Type: - application/json User-Agent: - apypie (https://github.com/Apipie/apypie) method: POST - uri: https://foreman.example.org/katello/api/repositories + uri: https://foreman.example.org/katello/api/repositories/10/sync response: body: - string: ' {"relative_path":"Test_Organization/Library/custom/Oracle_Linux_8_Convert2RHEL/Oracle_Linux_8_Convert2RHEL_main","promoted":false,"content_view_version_id":6,"library_instance_id":null,"last_contents_changed":"2023-06-21 - 13:25:23 UTC","organization_id":5,"organization":{"name":"Test Organization","label":"Test_Organization","id":5},"created_at":"2023-06-21 - 13:25:21 UTC","updated_at":"2023-06-21 13:25:24 UTC","backend_identifier":"eceb4b84-4328-4cad-9b6f-9b489a5075c2","container_repository_name":null,"full_path":"https://sat-r220-03.lab.eng.rdu2.redhat.com/pulp/content/Test_Organization/Library/custom/Oracle_Linux_8_Convert2RHEL/Oracle_Linux_8_Convert2RHEL_main/","version_href":"/pulp/api/v3/repositories/rpm/rpm/cbf0b497-4761-46b4-b1f6-d1c516cb8977/versions/0/","remote_href":"/pulp/api/v3/remotes/rpm/rpm/c2ddfc44-17e6-4ab0-a1ab-c0b7c5ec837f/","publication_href":null,"content_counts":{"rpm":0,"erratum":0,"package_group":0,"srpm":0,"module_stream":0},"mirroring_policy":"mirror_content_only","id":19,"name":"Oracle - Linux 8 Convert2RHEL main","label":"Oracle_Linux_8_Convert2RHEL_main","description":null,"content_view_versions":[],"last_sync":null,"content_view":{"id":6,"name":"Default - Organization View"},"content_view_version":{"id":6,"name":"Default Organization - View 1.0","content_view_id":6},"kt_environment":{"id":3,"name":"Library"},"content_type":"yum","url":"https://cdn-ubi.redhat.com/content/public/ubi/dist/ubi8/8/x86_64/baseos/os/","arch":"noarch","os_versions":[],"content_id":"1687353923542","generic_remote_options":null,"major":null,"minor":null,"product":{"id":33,"cp_id":"278578062083","name":"Oracle - Linux 8 Convert2RHEL","orphaned":false,"redhat":false,"sync_plan":null},"content_label":"Test_Organization_Oracle_Linux_8_Convert2RHEL_Oracle_Linux_8_Convert2RHEL_main","last_sync_words":null,"environment":{"id":3,"registry_unauthenticated_pull":false},"docker_upstream_name":null,"docker_tags_whitelist":null,"include_tags":null,"exclude_tags":null,"verify_ssl_on_sync":true,"unprotected":true,"checksum_type":null,"download_policy":"immediate","ansible_collection_requirements":null,"ansible_collection_auth_url":null,"ansible_collection_auth_token":null,"gpg_key_id":null,"ssl_ca_cert_id":null,"ssl_client_cert_id":null,"ssl_client_key_id":null,"upstream_username":null,"deb_releases":null,"deb_components":null,"deb_architectures":null,"http_proxy_policy":"global_default_http_proxy","http_proxy_id":null,"http_proxy_name":null,"retain_package_versions_count":null,"ignorable_content":null,"http_proxy":{"id":null,"name":null,"policy":"global_default_http_proxy"},"ssl_ca_cert":{"id":null,"name":null},"ssl_client_cert":{"id":null,"name":null},"ssl_client_key":{"id":null,"name":null},"gpg_key":{"id":null,"name":null},"permissions":{"deletable":true,"deletable_across_cv":true},"upstream_password_exists":false,"upstream_auth_exists":false,"content_view_environments":[]} + string: ' {"id":"a2bd6ed7-6d60-4e31-b32d-0c93503870b5","label":"Actions::Katello::Repository::Sync","pending":true,"action":"Synchronize + repository ''Convert2RHEL8 main''; product ''Convert2RHEL8''; organization + ''Test Organization''","username":"admin","started_at":"2023-11-13 09:23:43 + UTC","ended_at":null,"state":"planned","result":"pending","progress":0.0,"input":{"repository":{"id":10,"name":"Convert2RHEL8 + main","label":"Convert2RHEL8_main"},"product":{"id":6,"name":"Convert2RHEL8","label":"Convert2RHEL8","cp_id":"139454427959"},"provider":{"id":5,"name":"Anonymous"},"organization":{"id":4,"name":"Test + Organization","label":"Test_Organization"},"services_checked":["pulp3"],"id":10,"sync_result":{"class":"Dynflow::ExecutionPlan::OutputReference","execution_plan_id":"b8246982-4c62-422d-b0dc-ea22e45781c9","step_id":19,"action_id":2,"subkeys":[]},"skip_metadata_check":false,"validate_contents":false,"contents_changed":{"class":"Dynflow::ExecutionPlan::OutputReference","execution_plan_id":"b8246982-4c62-422d-b0dc-ea22e45781c9","step_id":19,"action_id":2,"subkeys":["contents_changed"]},"current_request_id":"9cbc8b7e-f081-4526-8735-728f42afd852","current_timezone":"UTC","current_organization_id":null,"current_location_id":null,"current_user_id":4},"output":{},"humanized":{"action":"Synchronize","input":[["repository",{"text":"repository + ''Convert2RHEL8 main''","link":null}],["product",{"text":"product ''Convert2RHEL8''","link":"/products/6/"}],["organization",{"text":"organization + ''Test Organization''","link":"/organizations/4/edit"}]],"output":"","errors":[]},"cli_example":null,"start_at":"2023-11-13 + 09:23:43 UTC","available_actions":{"cancellable":false,"resumable":false}} ' headers: Cache-Control: - - max-age=0, private, must-revalidate + - no-cache Connection: - Keep-Alive Content-Security-Policy: @@ -275,7 +277,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-develop + - 3.7.1 Keep-Alive: - timeout=15, max=96 Strict-Transport-Security: @@ -293,6 +295,136 @@ interactions: X-XSS-Protection: - 1; mode=block status: - code: 201 - message: Created + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - application/json;version=2 + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - apypie (https://github.com/Apipie/apypie) + method: GET + uri: https://foreman.example.org/foreman_tasks/api/tasks/a2bd6ed7-6d60-4e31-b32d-0c93503870b5 + response: + body: + string: '{"id":"a2bd6ed7-6d60-4e31-b32d-0c93503870b5","label":"Actions::Katello::Repository::Sync","pending":true,"action":"Synchronize + repository ''Convert2RHEL8 main''; product ''Convert2RHEL8''; organization + ''Test Organization''","username":"admin","started_at":"2023-11-13 09:23:43 + UTC","ended_at":null,"duration":"4.23079","state":"running","result":"pending","progress":0.07,"input":{"repository":{"id":10,"name":"Convert2RHEL8 + main","label":"Convert2RHEL8_main"},"product":{"id":6,"name":"Convert2RHEL8","label":"Convert2RHEL8","cp_id":"139454427959"},"provider":{"id":5,"name":"Anonymous"},"organization":{"id":4,"name":"Test + Organization","label":"Test_Organization"},"services_checked":["pulp3"],"id":10,"sync_result":{"class":"Dynflow::ExecutionPlan::OutputReference","execution_plan_id":"b8246982-4c62-422d-b0dc-ea22e45781c9","step_id":19,"action_id":2,"subkeys":[]},"skip_metadata_check":false,"validate_contents":false,"contents_changed":{"class":"Dynflow::ExecutionPlan::OutputReference","execution_plan_id":"b8246982-4c62-422d-b0dc-ea22e45781c9","step_id":19,"action_id":2,"subkeys":["contents_changed"]},"current_request_id":"9cbc8b7e-f081-4526-8735-728f42afd852","current_timezone":"UTC","current_organization_id":null,"current_location_id":null,"current_user_id":4},"output":{},"humanized":{"action":"Synchronize","input":[["repository",{"text":"repository + ''Convert2RHEL8 main''","link":null}],["product",{"text":"product ''Convert2RHEL8''","link":"/products/6/"}],["organization",{"text":"organization + ''Test Organization''","link":"/organizations/4/edit"}]],"output":"Waiting + to start.\n--------------------------------\nAssociating Content: 0/0\nDownloading + Artifacts: 0/0\nDownloading Metadata Files: 0/0","errors":[]},"cli_example":null,"start_at":"2023-11-13 + 09:23:43 UTC","available_actions":{"cancellable":true,"resumable":false}}' + headers: + Cache-Control: + - max-age=0, private, must-revalidate + Connection: + - Keep-Alive + Content-Length: + - '1838' + Content-Security-Policy: + - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: + - application/json; charset=utf-8 + Foreman_api_version: + - '2' + Foreman_current_location: + - ; ANY + Foreman_current_organization: + - ; ANY + Foreman_version: + - 3.7.1 + Keep-Alive: + - timeout=15, max=95 + Strict-Transport-Security: + - max-age=631139040; includeSubdomains + X-Content-Type-Options: + - nosniff + X-Download-Options: + - noopen + X-Frame-Options: + - sameorigin + X-Permitted-Cross-Domain-Policies: + - none + X-XSS-Protection: + - 1; mode=block + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json;version=2 + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - apypie (https://github.com/Apipie/apypie) + method: GET + uri: https://foreman.example.org/foreman_tasks/api/tasks/a2bd6ed7-6d60-4e31-b32d-0c93503870b5 + response: + body: + string: '{"id":"a2bd6ed7-6d60-4e31-b32d-0c93503870b5","label":"Actions::Katello::Repository::Sync","pending":false,"action":"Synchronize + repository ''Convert2RHEL8 main''; product ''Convert2RHEL8''; organization + ''Test Organization''","username":"admin","started_at":"2023-11-13 09:23:43 + UTC","ended_at":"2023-11-13 09:23:50 UTC","duration":"6.505704","state":"stopped","result":"success","progress":1.0,"input":{"repository":{"id":10,"name":"Convert2RHEL8 + main","label":"Convert2RHEL8_main"},"product":{"id":6,"name":"Convert2RHEL8","label":"Convert2RHEL8","cp_id":"139454427959"},"provider":{"id":5,"name":"Anonymous"},"organization":{"id":4,"name":"Test + Organization","label":"Test_Organization"},"services_checked":["pulp3"],"id":10,"sync_result":{"publication_provided":false,"contents_changed":true},"skip_metadata_check":false,"validate_contents":false,"contents_changed":true,"current_request_id":"9cbc8b7e-f081-4526-8735-728f42afd852","current_timezone":"UTC","current_organization_id":null,"current_location_id":null,"current_user_id":4},"output":{},"humanized":{"action":"Synchronize","input":[["repository",{"text":"repository + ''Convert2RHEL8 main''","link":null}],["product",{"text":"product ''Convert2RHEL8''","link":"/products/6/"}],["organization",{"text":"organization + ''Test Organization''","link":"/organizations/4/edit"}]],"output":"Added Rpms: + 12, Errata: 12\nTotal steps: 54/54\n--------------------------------\nAssociating + Content: 24/24\nDownloading Artifacts: 0/0\nDownloading Metadata Files: 6/6\nParsed + Advisories: 12/12\nParsed Comps: 0/0\nParsed Packages: 12/12\nSkipping Packages: + 0/0\nUn-Associating Content: 0/0","errors":[]},"cli_example":null,"start_at":"2023-11-13 + 09:23:43 UTC","available_actions":{"cancellable":false,"resumable":false}}' + headers: + Cache-Control: + - max-age=0, private, must-revalidate + Connection: + - Keep-Alive + Content-Length: + - '1754' + Content-Security-Policy: + - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: + - application/json; charset=utf-8 + Foreman_api_version: + - '2' + Foreman_current_location: + - ; ANY + Foreman_current_organization: + - ; ANY + Foreman_version: + - 3.7.1 + Keep-Alive: + - timeout=15, max=94 + Strict-Transport-Security: + - max-age=631139040; includeSubdomains + X-Content-Type-Options: + - nosniff + X-Download-Options: + - noopen + X-Frame-Options: + - sameorigin + X-Permitted-Cross-Domain-Policies: + - none + X-XSS-Protection: + - 1; mode=block + status: + code: 200 + message: OK version: 1 diff --git a/tests/test_playbooks/host_info.yml b/tests/test_playbooks/host_info.yml index 4c51f25f3..a2dfaa9de 100644 --- a/tests/test_playbooks/host_info.yml +++ b/tests/test_playbooks/host_info.yml @@ -54,7 +54,7 @@ - name: check host details assert: that: - - host_info['host']['name'] == "test-host.{{ host.domain }}" + - host_info['host']['name'] == "test-host.{}".format(host.domain) - host_info['host']['domain_name'] == host.domain - name: search host info @@ -70,7 +70,7 @@ - name: check host details assert: that: - - host_info['hosts'][0]['name'] == "test-host.{{ host.domain }}" + - host_info['hosts'][0]['name'] == "test-host.{}".format(host.domain) - host_info['hosts'][0]['domain_name'] == host.domain - hosts: localhost diff --git a/tests/test_playbooks/inventory_plugin.yml b/tests/test_playbooks/inventory_plugin.yml index bfa0c5495..e3de08a13 100644 --- a/tests/test_playbooks/inventory_plugin.yml +++ b/tests/test_playbooks/inventory_plugin.yml @@ -3,7 +3,9 @@ vars: foreman_groups: - name: group_a + label: group_a - name: group_b + label: group_b - name: group_c label: group_b/group_c parent: group_b diff --git a/tests/test_playbooks/inventory_plugin_ansible.yml b/tests/test_playbooks/inventory_plugin_ansible.yml index 992b76f83..6b5b62163 100644 --- a/tests/test_playbooks/inventory_plugin_ansible.yml +++ b/tests/test_playbooks/inventory_plugin_ansible.yml @@ -3,7 +3,9 @@ vars: foreman_groups: - name: group_a + label: group_a - name: group_b + label: group_b - name: group_c label: group_b/group_c parent: group_b diff --git a/tests/test_playbooks/tasks/inventory_plugin_tests.yml b/tests/test_playbooks/tasks/inventory_plugin_tests.yml index ad2e522c9..383893575 100644 --- a/tests/test_playbooks/tasks/inventory_plugin_tests.yml +++ b/tests/test_playbooks/tasks/inventory_plugin_tests.yml @@ -1,47 +1,47 @@ --- - name: test that all groups are present assert: - that: > - 'foreman_{{ item.label | default(item.name) | regex_replace('/', '_') }}' in groups + that: + - "'foreman_{}'.format(item.label.replace('/', '_')) in groups" with_items: "{{ foreman_groups }}" - name: test that all hosts are in the "all" group assert: - that: > - '{{ item.key }}' in groups['all'] + that: + - "item.key in groups['all']" with_dict: "{{ foreman_hosts }}" - name: test that all hosts are in the correct hostgroup assert: - that: > - '{{ item.key }}' in groups['foreman_{{ item.value | regex_replace('/', '_') }}'] + that: + - "item.key in groups['foreman_{}'.format(item.value.replace('/', '_'))]" with_dict: "{{ foreman_hosts }}" - name: dump all host details debug: - var: "hostvars['{{ item.key }}']" + var: "hostvars[item.key]" with_dict: "{{ foreman_hosts }}" - name: test that all hosts have the domain fact set assert: that: > - hostvars['{{ item.key }}']['foreman_facts']['domain'] == 'example.com' + hostvars[item.key]['foreman_facts']['domain'] == 'example.com' with_dict: "{{ foreman_hosts }}" - name: test that all hosts have the OS fact set assert: that: > - hostvars['{{ item.key }}']['foreman_facts']['operatingsystem'] == 'CentOS' + hostvars[item.key]['foreman_facts']['operatingsystem'] == 'CentOS' with_dict: "{{ foreman_hosts }}" - name: test that all hosts have the testparam1 assert: that: > - hostvars['{{ item.key }}']['testparam1'] == 'testvalue1' + hostvars[item.key]['testparam1'] == 'testvalue1' with_dict: "{{ foreman_hosts }}" - name: test that all hosts have the testparam2 assert: that: > - hostvars['{{ item.key }}']['testparam2'] == 'testvalue2' + hostvars[item.key]['testparam2'] == 'testvalue2' with_dict: "{{ foreman_hosts }}"