diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index a52e7dcab..8652947e3 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -80,7 +80,7 @@ jobs: - name: prepare a redhat-uep.pem, even if we run on Ubuntu run: sudo mkdir -p /etc/rhsm/ca/ && sudo curl -o /etc/rhsm/ca/redhat-uep.pem https://ftp.redhat.com/redhat/convert2rhel/redhat-uep.pem - name: Install required collections for ansible-base (2.10+) - run: ansible-galaxy collection install community.docker + run: ansible-galaxy collection install https://galaxy.ansible.com/api/v3/plugin/ansible/content/published/collections/artifacts/community-docker-3.12.0.tar.gz if: matrix.ansible != 'v2.9.17' - name: Run crud tests run: make test-crud diff --git a/CHANGELOG.rst b/CHANGELOG.rst index 2cdf40c78..2b030fc62 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -6,6 +6,22 @@ redhat.satellite Release Notes This changelog describes changes after version 0.8.1. +v4.2.0 +====== + +Minor Changes +------------- + +- content_export_* - document that ``chunk_size_gb`` parameter is only applicable for ``importable`` exports (https://github.com/theforeman/foreman-ansible-modules/issues/1738) +- lifecycle_environments role - allow setting ``state`` for the LCE, allowing deletion of existing ones +- location, locations role - add ``description`` parameter to set the description + +Bugfixes +-------- + +- callback plugin - correctly catch facts with vault data and replace it with ``ENCRYPTED_VAULT_VALUE_NOT_REPORTED``, preventing ``Object of type AnsibleVaultEncryptedUnicode is not JSON serializable`` errors +- redhat_manifest - do not send empty JSON bodies in GET requests which confuse the portal sometimes (https://github.com/theforeman/foreman-ansible-modules/issues/1768) + v4.1.0 ====== diff --git a/Makefile b/Makefile index f920dc726..fa264bcde 100644 --- a/Makefile +++ b/Makefile @@ -162,6 +162,7 @@ branding: rm -rf tests/test_playbooks/snapshot* tests/test_playbooks/tasks/snapshot* tests/test_playbooks/fixtures/snapshot* plugins/modules/snapshot*.py tests/fixtures/apidoc/snapshot*.json rm -rf tests/test_playbooks/*_deb.yml rm -rf tests/test_playbooks/*_ostree.yml + rm -rf .packit.yaml make $(RUNTIME_YML) FORCE: diff --git a/changelogs/changelog.yaml b/changelogs/changelog.yaml index adb4cb03d..08a5ec664 100644 --- a/changelogs/changelog.yaml +++ b/changelogs/changelog.yaml @@ -894,3 +894,24 @@ releases: name: content_import_version namespace: '' release_date: '2024-07-12' + 4.2.0: + changes: + bugfixes: + - callback plugin - correctly catch facts with vault data and replace it with + ``ENCRYPTED_VAULT_VALUE_NOT_REPORTED``, preventing ``Object of type AnsibleVaultEncryptedUnicode + is not JSON serializable`` errors + - redhat_manifest - do not send empty JSON bodies in GET requests which confuse + the portal sometimes (https://github.com/theforeman/foreman-ansible-modules/issues/1768) + minor_changes: + - content_export_* - document that ``chunk_size_gb`` parameter is only applicable + for ``importable`` exports (https://github.com/theforeman/foreman-ansible-modules/issues/1738) + - lifecycle_environments role - allow setting ``state`` for the LCE, allowing + deletion of existing ones + - location, locations role - add ``description`` parameter to set the description + fragments: + - 1724-location_description.yml + - 1738-export_chunk_size.yml + - 1768-empty-get-body.yml + - 1769-callback-vault-facts.yml + - lce-role-state.yml + release_date: '2024-08-30' diff --git a/galaxy.yml b/galaxy.yml index e8351d9dc..717185311 100644 --- a/galaxy.yml +++ b/galaxy.yml @@ -70,12 +70,14 @@ authors: - "Partha Aji " - "Patrick C. F. Ernzer " - "Patrick Creech " + - "Patrick Pfurtscheller " - "Paul Armstrong " - "Paul Belanger " - "Paul Gration " - "Peter Ondrejka " - "Philipp " - "Quirin Pamp " + - "Richard J Osborne <20555769+rjo-uk@users.noreply.github.com>" - "Richard Stempfl " - "Richard Waax <40852459+riwael@users.noreply.github.com>" - "Sam " @@ -94,6 +96,7 @@ authors: - "alesc " - "bob <57952350+TheRedGreek@users.noreply.github.com>" - "calvingsmith <4283930+calvingsmith@users.noreply.github.com>" + - "cojmckee <32520575+cojmckee@users.noreply.github.com>" - "divialth <65872926+divialth@users.noreply.github.com>" - "furhouse " - "gardar " @@ -105,7 +108,7 @@ authors: - "russianguppie <46544650+russianguppie@users.noreply.github.com>" - "willtome " - "yuqo2450 <79540477+yuqo2450@users.noreply.github.com>" -version: "4.1.0" +version: "4.2.0" license: - "GPL-3.0-or-later" tags: diff --git a/plugins/callback/foreman.py b/plugins/callback/foreman.py index 8f5278335..6eeae3b48 100644 --- a/plugins/callback/foreman.py +++ b/plugins/callback/foreman.py @@ -118,6 +118,7 @@ HAS_REQUESTS = False from ansible.module_utils._text import to_text +from ansible.module_utils.common.json import AnsibleJSONEncoder from ansible.module_utils.parsing.convert_bool import boolean as to_bool from ansible.plugins.callback import CallbackBase @@ -172,6 +173,15 @@ def get_now(): return datetime.utcnow().strftime("%Y-%m-%d %H:%M:%S+00:00") +class AnsibleNoVaultJSONEncoder(AnsibleJSONEncoder): + def default(self, o): + if getattr(o, '__ENCRYPTED__', False): + value = 'ENCRYPTED_VAULT_VALUE_NOT_REPORTED' + else: + value = super(AnsibleNoVaultJSONEncoder, self).default(o) + return value + + class CallbackModule(CallbackBase): CALLBACK_VERSION = 2.0 CALLBACK_TYPE = 'notification' @@ -243,14 +253,17 @@ def _send_data(self, data_type, report_type, host, data): else: self._display.warning(u'Unknown report_type: {rt}'.format(rt=report_type)) + json_data = json.dumps(data, indent=2, sort_keys=True, cls=AnsibleNoVaultJSONEncoder) + if len(self.dir_store) > 0: - filename = u'{host}.json'.format(host=to_text(host)) + filename = u'{host}-{dt}.json'.format(host=to_text(host), dt=data_type) filename = os.path.join(self.dir_store, filename) with open(filename, 'w') as f: - json.dump(data, f, indent=2, sort_keys=True) + f.write(json_data) else: try: - response = self.session.post(url=url, json=data) + headers = {'content-type': 'application/json'} + response = self.session.post(url=url, data=json_data, headers=headers) response.raise_for_status() except requests.exceptions.RequestException as err: self._display.warning(u'Sending data to Foreman at {url} failed for {host}: {err}'.format( diff --git a/plugins/doc_fragments/foreman.py b/plugins/doc_fragments/foreman.py index 8b327e582..be1867fec 100644 --- a/plugins/doc_fragments/foreman.py +++ b/plugins/doc_fragments/foreman.py @@ -392,6 +392,7 @@ class ModuleDocFragment(object): chunk_size_gb: description: - Split the exported content into archives no greater than the specified size in gigabytes. + - Only applicable for C(format=importable). C(syncable) exports can't be split. required: false type: int format: diff --git a/plugins/module_utils/foreman_helper.py b/plugins/module_utils/foreman_helper.py index 0082e3851..8e9d9989f 100644 --- a/plugins/module_utils/foreman_helper.py +++ b/plugins/module_utils/foreman_helper.py @@ -1585,6 +1585,9 @@ def run(self, **kwargs): if self.params.get('from_history_id') and incremental is not True: self.fail_json(msg='from_history_id is only valid for incremental exports') + if 'chunk_size_gb' in self.foreman_params and self.foreman_params['format'] == 'syncable': + self.fail_json(msg='chunk_size_gb is only valid for importable exports') + self.auto_lookup_entities() payload = _flatten_entity(self.foreman_params, self.foreman_spec) diff --git a/plugins/modules/location.py b/plugins/modules/location.py index 2203b23f9..cee22b833 100644 --- a/plugins/modules/location.py +++ b/plugins/modules/location.py @@ -34,6 +34,12 @@ - Name of the Location required: true type: str + description: + description: + - Description of the Location + required: false + type: str + version_added: 4.2.0 parent: description: - Title of a parent Location for nesting @@ -123,6 +129,7 @@ def main(): module = ForemanLocationModule( foreman_spec=dict( name=dict(required=True), + description=dict(required=False), parent=dict(type='entity'), organizations=dict(type='entity_list'), ignore_types=dict(type='list', elements='str', required=False, aliases=['select_all_types']), diff --git a/plugins/modules/redhat_manifest.py b/plugins/modules/redhat_manifest.py index 5e4104e1a..b0ebee75e 100644 --- a/plugins/modules/redhat_manifest.py +++ b/plugins/modules/redhat_manifest.py @@ -146,16 +146,16 @@ def fetch_portal(module, path, method, data=None, accept_header='application/json'): - if data is None: - data = {} + headers = {'accept': accept_header} + if data is not None: + data = json.dumps(data) + headers['content-type'] = 'application/json' url = module.params['portal'] + path - headers = {'accept': accept_header, - 'content-type': 'application/json'} fetch_kwargs = {'timeout': 30} if os.path.exists(REDHAT_UEP): fetch_kwargs['ca_path'] = REDHAT_UEP try: - resp, info = fetch_url(module, url, json.dumps(data), headers, method, **fetch_kwargs) + resp, info = fetch_url(module, url, data, headers, method, **fetch_kwargs) except TypeError: # ca_path was added in Ansible 2.9 and backported to 2.8 in 2.8.6 # older Ansible releases don't support that and we have to omit the CA cert here @@ -163,7 +163,7 @@ def fetch_portal(module, path, method, data=None, accept_header='application/jso module.warn("Your Ansible version does not support providing custom CA certificates for HTTP requests. " "Talking to the Red Hat portal might fail without validate_certs=False. Please update.") del fetch_kwargs['ca_path'] - resp, info = fetch_url(module, url, json.dumps(data), headers, method, **fetch_kwargs) + resp, info = fetch_url(module, url, data, headers, method, **fetch_kwargs) if resp is None or info["status"] >= 400: try: error = json.loads(info['body'])['displayMessage'] diff --git a/plugins/modules/sync_plan.py b/plugins/modules/sync_plan.py index 54d22c3ce..e53cdd1e4 100644 --- a/plugins/modules/sync_plan.py +++ b/plugins/modules/sync_plan.py @@ -57,7 +57,8 @@ type: bool sync_date: description: - - Start date and time of the first synchronization + - Start date and time of the first synchronization. + - Multiple formats are accepted, but only C(YYYY-mm-dd HH:MM:SS +z) (e.g. C(2024-08-01 00:00:00 +0000)) will be idempotent. required: true type: str cron_expression: diff --git a/roles/activation_keys/README.md b/roles/activation_keys/README.md index 76b987e88..b3bc56317 100644 --- a/roles/activation_keys/README.md +++ b/roles/activation_keys/README.md @@ -77,3 +77,19 @@ Define two Activation Keys. The first registers hosts in the "ACME" organization ``` Following the second example, a Host which is registered using `subscription-manager register --activationkey ACME_App_Key,ACME_RHEL7_Base_Test` will get the ACME_App subscription, Test LCE, RHEL7_Base Content View, and auto-attach any additional necessary subscriptions from ACME Organization to cover the Base OS and any other products which require an entitlement certificate. + +To delete multiple activation_keys +```yaml +- hosts: localhost + roles: + - role: redhat.satellite.activation_keys + vars: + satellite_server_url: https://satellite.example.com + satellite_username: "admin" + satellite_password: "changeme" + satellite_organization: "ACME" + satellite_activation_keys: + - name: "ACME_App_Key" + state: absent + - name: "ACME_OS_Key" + state: absent diff --git a/roles/activation_keys/tasks/main.yml b/roles/activation_keys/tasks/main.yml index 6facd59c0..f46df76b0 100644 --- a/roles/activation_keys/tasks/main.yml +++ b/roles/activation_keys/tasks/main.yml @@ -1,5 +1,5 @@ --- -- name: 'Create Activation Keys' # noqa: args[module] +- name: 'Create or Delete Activation Keys' # noqa: args[module] redhat.satellite.activation_key: username: "{{ satellite_username | default(omit) }}" password: "{{ satellite_password | default(omit) }}" @@ -21,6 +21,6 @@ purpose_usage: "{{ item.purpose_usage | default(omit) }}" purpose_role: "{{ item.purpose_role | default(omit) }}" purpose_addons: "{{ item.purpose_addons | default(omit) }}" - state: present + state: "{{ item.state | default('present') }}" with_items: - "{{ satellite_activation_keys }}" diff --git a/roles/lifecycle_environments/tasks/main.yml b/roles/lifecycle_environments/tasks/main.yml index 5ecf445d9..78377b9fb 100644 --- a/roles/lifecycle_environments/tasks/main.yml +++ b/roles/lifecycle_environments/tasks/main.yml @@ -10,6 +10,6 @@ description: "{{ item.description | default(omit) }}" prior: "{{ item.prior }}" label: "{{ item.label | default(omit) }}" - state: present + state: "{{ item.state | default('present') }}" with_items: - "{{ satellite_lifecycle_environments }}" diff --git a/roles/locations/tasks/main.yml b/roles/locations/tasks/main.yml index 36d75e501..f698f8bb8 100644 --- a/roles/locations/tasks/main.yml +++ b/roles/locations/tasks/main.yml @@ -6,6 +6,7 @@ server_url: "{{ satellite_server_url | default(omit) }}" validate_certs: "{{ satellite_validate_certs | default(omit) }}" name: "{{ item.name }}" + description: "{{ item.description | default(omit) }}" parent: "{{ item.parent | default(omit) }}" organizations: "{{ item.organizations | default(omit) }}" parameters: "{{ item.parameters | default(omit) }}" diff --git a/roles/repositories/tasks/main.yml b/roles/repositories/tasks/main.yml index 8eaadc566..86e6bd5aa 100644 --- a/roles/repositories/tasks/main.yml +++ b/roles/repositories/tasks/main.yml @@ -39,9 +39,14 @@ validate_certs: "{{ satellite_validate_certs | default(omit) }}" organization: "{{ satellite_organization }}" name: "{{ item.name }}" + description: "{{ item.description | default(omit) }}" label: "{{ item.label | default(omit) }}" gpg_key: "{{ item.gpg_key | default(omit) }}" + ssl_ca_cert: "{{ item.ssl_ca_cert | default(omit) }}" + ssl_client_cert: "{{ item.ssl_client_cert | default(omit) }}" + ssl_client_key: "{{ item.ssl_client_key | default(omit) }}" state: "{{ item.state | default(omit) }}" + sync_plan: "{{ item.sync_plan | default(omit) }}" with_items: - "{{ satellite_products | selectattr('repositories', 'defined') | map('combine', {'repositories': '[FILTERED]'}) | list }}" diff --git a/tests/callback/three_hosts.yml b/tests/callback/three_hosts.yml index cf9894faf..584329219 100644 --- a/tests/callback/three_hosts.yml +++ b/tests/callback/three_hosts.yml @@ -3,6 +3,13 @@ gather_facts: false vars: foo: foo bar + crypt: !vault | + $ANSIBLE_VAULT;1.1;AES256 + 62343962363339363461373565656663663734393265636161313466326163666638333735303061 + 6134346238366533616262663462396332363535363662660a323339326635373330633230336332 + 38363334373037356466383063616532656632303636333839313831626264386132386661303535 + 3864663564356332390a633631363962353163316236323038363861623763616265343762366435 + 6237 tasks: - name: Changed task command: echo foo @@ -34,6 +41,22 @@ loop_control: label: foo-{{ item }} + - name: Vault command + command: echo {{ crypt }} + + - name: Vault fact + set_fact: + geheim: "{{ crypt }}" + crypt: !vault | + $ANSIBLE_VAULT;1.1;AES256 + 62343962363339363461373565656663663734393265636161313466326163666638333735303061 + 6134346238366533616262663462396332363535363662660a323339326635373330633230336332 + 38363334373037356466383063616532656632303636333839313831626264386132386661303535 + 3864663564356332390a633631363962353163316236323038363861623763616265343762366435 + 6237 + unsafe: !unsafe | + THIS IS {{ crypt }} + handlers: - name: Test handler 1 command: echo foo diff --git a/tests/callback/vault-pass b/tests/callback/vault-pass new file mode 100644 index 000000000..dff0ae5ae --- /dev/null +++ b/tests/callback/vault-pass @@ -0,0 +1 @@ +changeme diff --git a/tests/fixtures/apidoc/content_view_filter_deb.json b/tests/fixtures/apidoc/content_view_filter_deb.json new file mode 120000 index 000000000..8e89899a0 --- /dev/null +++ b/tests/fixtures/apidoc/content_view_filter_deb.json @@ -0,0 +1 @@ +katello.json \ No newline at end of file diff --git a/tests/fixtures/apidoc/content_view_filter_info_deb.json b/tests/fixtures/apidoc/content_view_filter_info_deb.json new file mode 120000 index 000000000..8e89899a0 --- /dev/null +++ b/tests/fixtures/apidoc/content_view_filter_info_deb.json @@ -0,0 +1 @@ +katello.json \ No newline at end of file diff --git a/tests/fixtures/apidoc/content_view_filter_rule_deb.json b/tests/fixtures/apidoc/content_view_filter_rule_deb.json new file mode 120000 index 000000000..8e89899a0 --- /dev/null +++ b/tests/fixtures/apidoc/content_view_filter_rule_deb.json @@ -0,0 +1 @@ +katello.json \ No newline at end of file diff --git a/tests/fixtures/apidoc/content_view_filter_rule_info_deb.json b/tests/fixtures/apidoc/content_view_filter_rule_info_deb.json new file mode 120000 index 000000000..8e89899a0 --- /dev/null +++ b/tests/fixtures/apidoc/content_view_filter_rule_info_deb.json @@ -0,0 +1 @@ +katello.json \ No newline at end of file diff --git a/tests/fixtures/callback/dir_store/foreman/testhost-facts.json b/tests/fixtures/callback/dir_store/foreman/testhost-facts.json new file mode 100644 index 000000000..6270adc1d --- /dev/null +++ b/tests/fixtures/callback/dir_store/foreman/testhost-facts.json @@ -0,0 +1,12 @@ +{ + "facts": { + "_timestamp": "2000-01-01 12:00:00+00:00", + "_type": "ansible", + "ansible_facts": { + "crypt": "ENCRYPTED_VAULT_VALUE_NOT_REPORTED", + "geheim": "admin", + "unsafe": "THIS IS {{ crypt }}\n" + } + }, + "name": "testhost" +} \ No newline at end of file diff --git a/tests/fixtures/callback/dir_store/foreman/testhost.json b/tests/fixtures/callback/dir_store/foreman/testhost-report.json similarity index 86% rename from tests/fixtures/callback/dir_store/foreman/testhost.json rename to tests/fixtures/callback/dir_store/foreman/testhost-report.json index bc03bdea9..95417e3bf 100644 --- a/tests/fixtures/callback/dir_store/foreman/testhost.json +++ b/tests/fixtures/callback/dir_store/foreman/testhost-report.json @@ -58,6 +58,28 @@ } } }, + { + "log": { + "level": "notice", + "messages": { + "message": "{\"changed\": true, \"cmd\": [\"echo\", \"admin\"], \"delta\": \"12:00:00.0000\", \"end\": \"2000-01-01 12:00:00.0000\", \"failed\": false, \"invocation\": {\"module_args\": {\"_raw_params\": \"echo admin\", \"_uses_shell\": false, \"argv\": null, \"chdir\": null, \"creates\": null, \"executable\": null, \"removes\": null, \"stdin\": null, \"stdin_add_newline\": true, \"strip_empty_ends\": true}}, \"module\": \"command\", \"rc\": 0, \"start\": \"2000-01-01 12:00:00.0000\", \"stderr\": \"\", \"stderr_lines\": [], \"stdout\": \"admin\", \"stdout_lines\": [\"admin\"]}" + }, + "sources": { + "source": "Vault command" + } + } + }, + { + "log": { + "level": "info", + "messages": { + "message": "{\"ansible_facts\": {\"geheim\": \"admin\"}, \"changed\": false, \"failed\": false, \"module\": \"set_fact\"}" + }, + "sources": { + "source": "Vault fact" + } + } + }, { "log": { "level": "notice", @@ -100,7 +122,7 @@ "reported_at": "2000-01-01 12:00:00+00:00", "reporter": "ansible", "status": { - "applied": 5, + "applied": 6, "failed": 0, "skipped": 1 } diff --git a/tests/fixtures/callback/dir_store/foreman/testhostA.json b/tests/fixtures/callback/dir_store/foreman/testhostA-report.json similarity index 100% rename from tests/fixtures/callback/dir_store/foreman/testhostA.json rename to tests/fixtures/callback/dir_store/foreman/testhostA-report.json diff --git a/tests/fixtures/callback/dir_store/foreman/testhostB.json b/tests/fixtures/callback/dir_store/foreman/testhostB-report.json similarity index 100% rename from tests/fixtures/callback/dir_store/foreman/testhostB.json rename to tests/fixtures/callback/dir_store/foreman/testhostB-report.json diff --git a/tests/fixtures/callback/dir_store/proxy/testhost.json b/tests/fixtures/callback/dir_store/proxy/testhost-report.json similarity index 85% rename from tests/fixtures/callback/dir_store/proxy/testhost.json rename to tests/fixtures/callback/dir_store/proxy/testhost-report.json index 9a7ce00c7..61de85ab8 100644 --- a/tests/fixtures/callback/dir_store/proxy/testhost.json +++ b/tests/fixtures/callback/dir_store/proxy/testhost-report.json @@ -44,14 +44,11 @@ "check_mode": false, "delay": 5, "diff": false, - "finalized": true, "name": "Changed task", "notify": [ "test handlers" ], "poll": 15, - "retries": 3, - "squashed": true, "throttle": 0 } }, @@ -91,11 +88,8 @@ "check_mode": false, "delay": 5, "diff": false, - "finalized": true, "name": "Ok task", "poll": 15, - "retries": 3, - "squashed": true, "throttle": 0 } }, @@ -114,12 +108,9 @@ "check_mode": false, "delay": 5, "diff": false, - "finalized": true, "ignore_errors": true, "name": "Failed task", "poll": 15, - "retries": 3, - "squashed": true, "throttle": 0 } }, @@ -156,11 +147,8 @@ "check_mode": false, "delay": 5, "diff": false, - "finalized": true, "name": "Task with var in name (foo bar)", "poll": 15, - "retries": 3, - "squashed": true, "throttle": 0 } }, @@ -256,7 +244,6 @@ "check_mode": false, "delay": 5, "diff": false, - "finalized": true, "loop": [ 1, 2, @@ -264,8 +251,69 @@ ], "name": "Loop task", "poll": 15, - "retries": 3, - "squashed": true, + "throttle": 0 + } + }, + { + "failed": false, + "result": { + "changed": true, + "cmd": [ + "echo", + "admin" + ], + "invocation": { + "module_args": { + "_raw_params": "echo admin", + "_uses_shell": false, + "stdin_add_newline": true, + "strip_empty_ends": true + } + }, + "rc": 0, + "stderr": "", + "stdout": "admin", + "stdout_lines": [ + "admin" + ] + }, + "task": { + "action": "command", + "any_errors_fatal": false, + "async": 0, + "async_val": 0, + "become": false, + "become_method": "sudo", + "check_mode": false, + "delay": 5, + "diff": false, + "name": "Vault command", + "poll": 15, + "throttle": 0 + } + }, + { + "failed": false, + "result": { + "ansible_facts": { + "crypt": "ENCRYPTED_VAULT_VALUE_NOT_REPORTED", + "geheim": "admin", + "unsafe": "THIS IS {{ crypt }}\n" + }, + "changed": false + }, + "task": { + "action": "set_fact", + "any_errors_fatal": false, + "async": 0, + "async_val": 0, + "become": false, + "become_method": "sudo", + "check_mode": false, + "delay": 5, + "diff": false, + "name": "Vault fact", + "poll": 15, "throttle": 0 } }, @@ -302,13 +350,9 @@ "check_mode": false, "delay": 5, "diff": false, - "finalized": true, "is_handler": true, - "listen": "test handlers", "name": "Test handler 1", "poll": 15, - "retries": 3, - "squashed": true, "throttle": 0 } }, @@ -348,13 +392,9 @@ "check_mode": false, "delay": 5, "diff": false, - "finalized": true, "is_handler": true, - "listen": "test handlers", "name": "Test handler 2", "poll": 15, - "retries": 3, - "squashed": true, "throttle": 0 } }, @@ -391,22 +431,18 @@ "check_mode": false, "delay": 5, "diff": false, - "finalized": true, "is_handler": true, - "listen": "test handlers", "name": "Test handler 3", "poll": 15, - "retries": 3, - "squashed": true, "throttle": 0 } } ], "summary": { - "changed": 5, + "changed": 6, "failures": 0, "ignored": 1, - "ok": 8, + "ok": 10, "rescued": 0, "skipped": 1, "unreachable": 0 diff --git a/tests/fixtures/callback/dir_store/proxy/testhostA.json b/tests/fixtures/callback/dir_store/proxy/testhostA-report.json similarity index 91% rename from tests/fixtures/callback/dir_store/proxy/testhostA.json rename to tests/fixtures/callback/dir_store/proxy/testhostA-report.json index 5798dadb5..b7c34c6d6 100644 --- a/tests/fixtures/callback/dir_store/proxy/testhostA.json +++ b/tests/fixtures/callback/dir_store/proxy/testhostA-report.json @@ -44,11 +44,8 @@ "check_mode": false, "delay": 5, "diff": false, - "finalized": true, "name": "Changed task", "poll": 15, - "retries": 3, - "squashed": true, "throttle": 0 } }, @@ -88,11 +85,8 @@ "check_mode": false, "delay": 5, "diff": false, - "finalized": true, "name": "Ok task", "poll": 15, - "retries": 3, - "squashed": true, "throttle": 0 } }, @@ -111,12 +105,9 @@ "check_mode": false, "delay": 5, "diff": false, - "finalized": true, "ignore_errors": true, "name": "Failed task", "poll": 15, - "retries": 3, - "squashed": true, "throttle": 0 } } diff --git a/tests/fixtures/callback/dir_store/proxy/testhostB.json b/tests/fixtures/callback/dir_store/proxy/testhostB-report.json similarity index 91% rename from tests/fixtures/callback/dir_store/proxy/testhostB.json rename to tests/fixtures/callback/dir_store/proxy/testhostB-report.json index a78950d0e..66f597eb2 100644 --- a/tests/fixtures/callback/dir_store/proxy/testhostB.json +++ b/tests/fixtures/callback/dir_store/proxy/testhostB-report.json @@ -44,11 +44,8 @@ "check_mode": false, "delay": 5, "diff": false, - "finalized": true, "name": "Changed task", "poll": 15, - "retries": 3, - "squashed": true, "throttle": 0 } }, @@ -88,11 +85,8 @@ "check_mode": false, "delay": 5, "diff": false, - "finalized": true, "name": "Ok task", "poll": 15, - "retries": 3, - "squashed": true, "throttle": 0 } }, @@ -111,12 +105,9 @@ "check_mode": false, "delay": 5, "diff": false, - "finalized": true, "ignore_errors": true, "name": "Failed task", "poll": 15, - "retries": 3, - "squashed": true, "throttle": 0 } } diff --git a/tests/test_callback.py b/tests/test_callback.py index 4ea5a216e..749a2b633 100644 --- a/tests/test_callback.py +++ b/tests/test_callback.py @@ -26,6 +26,7 @@ def run_playbook_callback(tmpdir, report_type): extra_env['FOREMAN_SSL_CERT'] = "/dev/zero" extra_env['FOREMAN_SSL_KEY'] = "/dev/zero" extra_env['FOREMAN_DIR_STORE'] = tmpdir.strpath + extra_env['ANSIBLE_VAULT_PASSWORD_FILE'] = os.path.join(os.getcwd(), 'tests', 'callback', 'vault-pass') playbook = os.path.join('..', 'callback', 'three_hosts') inventory = os.path.join(os.getcwd(), 'tests', 'callback', 'three_hosts') return run_playbook(playbook, inventory=inventory, extra_env=extra_env) @@ -71,7 +72,10 @@ def run_callback(tmpdir, report_type, vcrmode): contents = re.sub(r", \\\"expand_argument_vars\\\": true", "", contents) real_contents = json.loads(contents) if report_type == "foreman": - real_contents['config_report']['metrics']['time']['total'] = 1 + try: + real_contents['config_report']['metrics']['time']['total'] = 1 + except KeyError: + pass else: real_contents['metrics']['time']['total'] = 1 real_contents = drop_incompatible_items(real_contents) diff --git a/tests/test_playbooks/content_export_library.yml b/tests/test_playbooks/content_export_library.yml index 1cdeaec72..2e192c9ed 100644 --- a/tests/test_playbooks/content_export_library.yml +++ b/tests/test_playbooks/content_export_library.yml @@ -15,6 +15,9 @@ - include_tasks: tasks/repository.yml vars: repository_state: present + - name: Wait for Repository metadata generation + ansible.builtin.pause: + seconds: 2 - hosts: tests collections: diff --git a/tests/test_playbooks/content_view_filter.yml b/tests/test_playbooks/content_view_filter.yml index 9d6b7db28..6dd947bb0 100644 --- a/tests/test_playbooks/content_view_filter.yml +++ b/tests/test_playbooks/content_view_filter.yml @@ -20,12 +20,14 @@ ansible.builtin.include_tasks: tasks/repository.yml vars: repository_state: present + repository_download_policy: "on_demand" - name: "Create Addititional Repository" ansible.builtin.include_tasks: tasks/repository.yml vars: repository_state: present repository_url: "https://repos.fedorapeople.org/pulp/pulp/demo_repos/zoo/" + repository_download_policy: "on_demand" - name: "Create Container repository" ansible.builtin.include_tasks: tasks/repository.yml @@ -35,30 +37,18 @@ repository_content_type: docker repository_url: https://quay.io repository_docker_upstream_name: quay/busybox - - - name: "Create Deb Repository" - ansible.builtin.include_tasks: tasks/repository.yml - vars: - repository_state: present - repository_name: Test Debian Repository - repository_content_type: deb - repository_url: https://ftp.debian.org/debian - repository_deb_releases: buster - repository_deb_components: contrib - repository_deb_architectures: amd64 - - - name: "Sync content" - ansible.builtin.include_tasks: tasks/katello_sync.yml + repository_download_policy: "on_demand" - name: "Sync content" ansible.builtin.include_tasks: tasks/katello_sync.yml vars: - repository: Test Docker Repository + expected_time: false - name: "Sync content" ansible.builtin.include_tasks: tasks/katello_sync.yml vars: - repository: Test Debian Repository + repository: Test Docker Repository + expected_time: false - name: "Create Content View" ansible.builtin.include_tasks: tasks/content_view.yml @@ -185,25 +175,6 @@ filter_state: absent expected_change: true - - name: Test Content View Filter deb - block: - - include_tasks: tasks/content_view_filter_deb.yml - vars: - expected_change: true - - include_tasks: tasks/content_view_filter_deb.yml - vars: - expected_change: false - - - include_tasks: tasks/content_view_filter_deb.yml - vars: - inclusion: true - expected_change: true - - include_tasks: tasks/content_view_filter_deb.yml - vars: - filter_state: absent - rule_state: absent - expected_change: true - - hosts: localhost collections: - redhat.satellite diff --git a/tests/test_playbooks/content_view_filter_info.yml b/tests/test_playbooks/content_view_filter_info.yml index 63b3183f6..4c723010a 100644 --- a/tests/test_playbooks/content_view_filter_info.yml +++ b/tests/test_playbooks/content_view_filter_info.yml @@ -21,12 +21,14 @@ ansible.builtin.include_tasks: tasks/repository.yml vars: repository_state: present + repository_download_policy: "on_demand" - name: "Create Additional Repository" ansible.builtin.include_tasks: tasks/repository.yml vars: repository_state: present repository_url: "https://repos.fedorapeople.org/pulp/pulp/demo_repos/zoo/" + repository_download_policy: "on_demand" - name: "Create Module repository" ansible.builtin.include_tasks: tasks/repository.yml @@ -35,6 +37,7 @@ repository_name: "Test Modular Repository" repository_content_type: yum repository_url: "https://dl.fedoraproject.org/pub/epel/8/Modular/x86_64" + repository_download_policy: "on_demand" - name: "Create Container Repository" ansible.builtin.include_tasks: tasks/repository.yml @@ -44,35 +47,24 @@ repository_content_type: docker repository_url: https://registry.access.redhat.com repository_docker_upstream_name: ubi9 - - - name: "Create Deb Repository" - ansible.builtin.include_tasks: tasks/repository.yml - vars: - repository_state: present - repository_name: Test Debian Repository - repository_content_type: deb - repository_url: https://ftp.debian.org/debian - repository_deb_releases: buster - repository_deb_components: contrib - repository_deb_architectures: amd64 + repository_download_policy: "on_demand" - name: "Sync content" ansible.builtin.include_tasks: tasks/katello_sync.yml + vars: + expected_time: false - name: "Sync content" ansible.builtin.include_tasks: tasks/katello_sync.yml vars: repository: Test Docker Repository + expected_time: false - name: "Sync content" ansible.builtin.include_tasks: tasks/katello_sync.yml vars: repository: Test Modular Repository - - - name: "Sync content" - ansible.builtin.include_tasks: tasks/katello_sync.yml - vars: - repository: Test Debian Repository + expected_time: false - name: "Create Content View" ansible.builtin.include_tasks: tasks/content_view.yml @@ -84,8 +76,6 @@ product: "Test Product" - name: "Test Modular Repository" product: "Test Product" - - name: "Test Debian Repository" - product: "Test Product" - name: "Create content view filters" ansible.builtin.include_tasks: tasks/content_view_filter.yml @@ -149,30 +139,6 @@ - result['content_view_filter']['original_module_streams'] == True - - name: "Fetch content_view_filter_info - deb packages" - vars: - content_view_filter_name: "Test Content View Filter - AllDebs" - content_view_name: "Test Content View" - organization_name: "Test Organization" - content_view_filter_info: - username: "{{ foreman_username }}" - password: "{{ foreman_password }}" - server_url: "{{ foreman_server_url }}" - validate_certs: "{{ foreman_validate_certs }}" - organization: "{{ organization_name }}" - content_view: "{{ content_view_name }}" - name: "{{ content_view_filter_name }}" - register: result - - - name: "Assert Result" - ansible.builtin.assert: - fail_msg: "Ensuring content view filter info is valid failed!" - that: - - result['content_view_filter']['name'] == "Test Content View Filter - AllDebs" - - result['content_view_filter']['type'] == "deb" - - result['content_view_filter']['inclusion'] == True - - - name: "Fetch content_view_filter_info - rpm exlude" vars: content_view_filter_name: "Test Content View Filter - rpm" @@ -318,31 +284,6 @@ - result['content_view_filter']['inclusion'] == False - - name: "Fetch content_view_filter_info - deb exlude" - vars: - content_view_filter_name: "Test Content View Filter - deb" - content_view_name: "Test Content View" - organization_name: "Test Organization" - content_view_filter_info: - username: "{{ foreman_username }}" - password: "{{ foreman_password }}" - server_url: "{{ foreman_server_url }}" - validate_certs: "{{ foreman_validate_certs }}" - organization: "{{ organization_name }}" - content_view: "{{ content_view_name }}" - name: "{{ content_view_filter_name }}" - register: result - - - name: "Assert Result" - ansible.builtin.assert: - fail_msg: "Ensuring content view filter info is valid failed!" - that: - - result['content_view_filter']['name'] == "Test Content View Filter - deb" - - result['content_view_filter']['type'] == "deb" - - result['content_view_filter']['inclusion'] == False - - - - name: "Clean up test dependencies" hosts: localhost collections: diff --git a/tests/test_playbooks/content_view_filter_rule.yml b/tests/test_playbooks/content_view_filter_rule.yml index 06dc5c9f1..cda35382c 100644 --- a/tests/test_playbooks/content_view_filter_rule.yml +++ b/tests/test_playbooks/content_view_filter_rule.yml @@ -21,12 +21,14 @@ ansible.builtin.include_tasks: tasks/repository.yml vars: repository_state: present + repository_download_policy: "on_demand" - name: "Create Addititional Repository" ansible.builtin.include_tasks: tasks/repository.yml vars: repository_state: present repository_url: "https://repos.fedorapeople.org/pulp/pulp/demo_repos/zoo/" + repository_download_policy: "on_demand" - name: "Create Module repository" ansible.builtin.include_tasks: tasks/repository.yml @@ -35,6 +37,7 @@ repository_name: "Test Modular Repository" repository_content_type: yum repository_url: "https://dl.fedoraproject.org/pub/epel/8/Modular/x86_64" + repository_download_policy: "on_demand" - name: "Create Container repository" ansible.builtin.include_tasks: tasks/repository.yml @@ -44,35 +47,24 @@ repository_content_type: docker repository_url: https://registry.access.redhat.com repository_docker_upstream_name: ubi8 - - - name: "Create Deb Repository" - ansible.builtin.include_tasks: tasks/repository.yml - vars: - repository_state: present - repository_name: Test Debian Repository - repository_content_type: deb - repository_url: https://ftp.debian.org/debian - repository_deb_releases: buster - repository_deb_components: contrib - repository_deb_architectures: amd64 + repository_download_policy: "on_demand" - name: "Sync content" ansible.builtin.include_tasks: tasks/katello_sync.yml + vars: + expected_time: false - name: "Sync content" ansible.builtin.include_tasks: tasks/katello_sync.yml vars: repository: Test Docker Repository + expected_time: false - name: "Sync content" ansible.builtin.include_tasks: tasks/katello_sync.yml vars: repository: Test Modular Repository - - - name: "Sync content" - ansible.builtin.include_tasks: tasks/katello_sync.yml - vars: - repository: Test Debian Repository + expected_time: false - name: "Create Content View" ansible.builtin.include_tasks: tasks/content_view.yml @@ -84,8 +76,6 @@ product: "Test Product" - name: "Test Modular Repository" product: "Test Product" - - name: "Test Debian Repository" - product: "Test Product" - name: "Create content view filters" ansible.builtin.include_tasks: tasks/content_view_filter.yml @@ -126,9 +116,6 @@ vars: expected_change: true - - name: "Create Content View Filter Rule for deb packages" - ansible.builtin.include_tasks: tasks/content_view_filter_rule_deb.yml - - name: "Cleanup Content View Filter Rules" ansible.builtin.include_tasks: tasks/content_view_filter_rule_cleanup.yml vars: diff --git a/tests/test_playbooks/content_view_filter_rule_info.yml b/tests/test_playbooks/content_view_filter_rule_info.yml index 949838276..e461ebb3e 100644 --- a/tests/test_playbooks/content_view_filter_rule_info.yml +++ b/tests/test_playbooks/content_view_filter_rule_info.yml @@ -21,12 +21,14 @@ ansible.builtin.include_tasks: tasks/repository.yml vars: repository_state: present + repository_download_policy: "on_demand" - name: "Create Additional Repository" ansible.builtin.include_tasks: tasks/repository.yml vars: repository_state: present repository_url: "https://repos.fedorapeople.org/pulp/pulp/demo_repos/zoo/" + repository_download_policy: "on_demand" - name: "Create Module repository" ansible.builtin.include_tasks: tasks/repository.yml @@ -35,6 +37,7 @@ repository_name: "Test Modular Repository" repository_content_type: yum repository_url: "https://dl.fedoraproject.org/pub/epel/8/Modular/x86_64" + repository_download_policy: "on_demand" - name: "Create Container Repository" ansible.builtin.include_tasks: tasks/repository.yml @@ -44,35 +47,24 @@ repository_content_type: docker repository_url: https://registry.access.redhat.com repository_docker_upstream_name: ubi9 - - - name: "Create Deb Repository" - ansible.builtin.include_tasks: tasks/repository.yml - vars: - repository_state: present - repository_name: Test Debian Repository - repository_content_type: deb - repository_url: https://ftp.debian.org/debian - repository_deb_releases: buster - repository_deb_components: contrib - repository_deb_architectures: amd64 + repository_download_policy: "on_demand" - name: "Sync content" ansible.builtin.include_tasks: tasks/katello_sync.yml + vars: + expected_time: false - name: "Sync content" ansible.builtin.include_tasks: tasks/katello_sync.yml vars: repository: Test Docker Repository + expected_time: false - name: "Sync content" ansible.builtin.include_tasks: tasks/katello_sync.yml vars: repository: Test Modular Repository - - - name: "Sync content" - ansible.builtin.include_tasks: tasks/katello_sync.yml - vars: - repository: Test Debian Repository + expected_time: false - name: "Create Content View" ansible.builtin.include_tasks: tasks/content_view.yml @@ -91,8 +83,6 @@ product: "Test Product" - name: "Test Modular Repository" product: "Test Product" - - name: "Test Debian Repository" - product: "Test Product" - name: "Create content view filters" ansible.builtin.include_tasks: tasks/content_view_filter.yml @@ -115,9 +105,6 @@ - name: "Create Content View Filter Rule for module_streams" ansible.builtin.include_tasks: tasks/content_view_filter_rule_modulemd.yml - - name: "Create Content View Filter Rule for deb packages" - ansible.builtin.include_tasks: tasks/content_view_filter_rule_deb.yml - - name: "Test content_view_filter_rule_info" hosts: tests collections: @@ -270,29 +257,6 @@ - result['content_view_filter_rules']|length != 0 - - name: "Fetch content_view_filter_info - deb exlude" - vars: - content_view_filter_rule_name: "bear" - content_view_filter_name: "Test Content View Filter - deb" - content_view_name: "Test Content View" - organization_name: "Test Organization" - content_view_filter_rule_info: - username: "{{ foreman_username }}" - password: "{{ foreman_password }}" - server_url: "{{ foreman_server_url }}" - validate_certs: "{{ foreman_validate_certs }}" - organization: "{{ organization_name }}" - content_view: "{{ content_view_name }}" - content_view_filter: "{{ content_view_filter_name }}" - name: "{{ content_view_filter_rule_name }}" - register: result - - - name: "Assert Result" - ansible.builtin.assert: - fail_msg: "Ensuring content view filter rule info is valid failed!" - that: - - result['content_view_filter_rule']['name'] == "bear" - - name: "Clean up test dependencies" hosts: localhost collections: diff --git a/tests/test_playbooks/fixtures/content_view_filter-0.yml b/tests/test_playbooks/fixtures/content_view_filter-0.yml index a203e4fde..6f90c5cc9 100644 --- a/tests/test_playbooks/fixtures/content_view_filter-0.yml +++ b/tests/test_playbooks/fixtures/content_view_filter-0.yml @@ -14,14 +14,14 @@ interactions: uri: https://foreman.example.org/api/status response: body: - string: '{"result":"ok","status":200,"version":"3.7.1","api_version":2}' + string: '{"result":"ok","status":200,"version":"3.12.0-develop","api_version":2}' headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive Content-Length: - - '62' + - '71' 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''; @@ -35,7 +35,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.1 + - 3.12.0-develop Keep-Alive: - timeout=15, max=100 Strict-Transport-Security: @@ -70,8 +70,8 @@ interactions: body: 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-15 - 09:54:22 UTC\",\"updated_at\":\"2023-11-15 09:54:23 UTC\",\"id\":5,\"name\":\"Test + {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\":\"Test_Organization\",\"created_at\":\"2024-07-25 + 07:24:10 UTC\",\"updated_at\":\"2024-07-25 07:24:12 UTC\",\"id\":10,\"name\":\"Test Organization\",\"title\":\"Test Organization\",\"description\":\"A test organization\"}]\n}\n" headers: Cache-Control: @@ -79,7 +79,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '388' + - '389' 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''; @@ -93,7 +93,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.1 + - 3.12.0-develop Keep-Alive: - timeout=15, max=99 Strict-Transport-Security: @@ -123,14 +123,14 @@ 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%22Test+Content+View%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/organizations/10/content_views?search=name%3D%22Test+Content+View%22&per_page=4294967296 response: body: string: '{"total":2,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Content View\"","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":[18],"id":10,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":5,"organization":{"name":"Test - Organization","label":"Test_Organization","id":5},"created_at":"2023-11-15 - 09:55:08 UTC","updated_at":"2023-11-15 09:55:08 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":18,"name":"Test + Content View\"","sort":{"by":"name","order":"asc"},"results":[{"composite":false,"component_ids":[],"duplicate_repositories_to_publish":[],"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":[],"filtered":false,"repository_ids":[20],"id":17,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":10,"organization":{"name":"Test + Organization","label":"Test_Organization","id":10},"created_at":"2024-07-25 + 07:24:40 UTC","updated_at":"2024-07-25 07:24:40 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":20,"name":"Test Repository","label":"Test_Repository","content_type":"yum"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]}]} ' @@ -140,7 +140,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '1050' + - '1070' 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''; @@ -152,9 +152,9 @@ interactions: Foreman_current_location: - ; ANY Foreman_current_organization: - - 5; Test Organization + - 10; Test Organization Foreman_version: - - 3.7.1 + - 3.12.0-develop Keep-Alive: - timeout=15, max=98 Strict-Transport-Security: @@ -184,14 +184,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%22Test+Product%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/organizations/10/products?search=name%3D%22Test+Product%22&per_page=4294967296 response: body: string: '{"total":1,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Product\"","sort":{"by":"name","order":"asc"},"results":[{"id":10,"cp_id":"347380074197","name":"Test - Product","label":"Test_Product","description":"A happy little test product","provider_id":7,"sync_plan_id":null,"sync_summary":{"success":3},"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-15 09:54:59 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":3}]} + Product\"","sort":{"by":"name","order":"asc"},"results":[{"id":8,"cp_id":"527370220153","name":"Test + Product","label":"Test_Product","description":"A happy little test product","provider_id":17,"sync_plan_id":null,"sync_summary":{"success":2},"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":"2024-07-25 07:24:35 UTC","last_sync_words":"less than + a minute","organization_id":10,"organization":{"name":"Test Organization","label":"Test_Organization","id":10},"sync_plan":null,"repository_count":2}]} ' headers: @@ -200,7 +200,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '691' + - '693' 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''; @@ -212,9 +212,9 @@ interactions: Foreman_current_location: - ; ANY Foreman_current_organization: - - 5; Test Organization + - 10; Test Organization Foreman_version: - - 3.7.1 + - 3.12.0-develop Keep-Alive: - timeout=15, max=97 Strict-Transport-Security: @@ -244,17 +244,17 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/products/10/repositories?search=name%3D%22Test+Repository%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/products/8/repositories?search=name%3D%22Test+Repository%22&per_page=4294967296 response: body: - string: '{"total":3,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Repository\"","sort":{"by":"name","order":"asc"},"results":[{"backend_identifier":"29b3d88f-d4d9-4411-b1db-69f3a9c7df12","relative_path":"Test_Organization/Library/custom/Test_Product/Test_Repository","container_repository_name":null,"full_path":"https://centos8-stream-katello-4-9.tanso.example.com/pulp/content/Test_Organization/Library/custom/Test_Product/Test_Repository/","library_instance_id":null,"version_href":"/pulp/api/v3/repositories/rpm/rpm/00e6944a-841e-4bfe-9416-070861ef58fb/versions/1/","remote_href":"/pulp/api/v3/remotes/rpm/rpm/7e1e16ba-4432-4a52-988e-3da939154cbe/","publication_href":"/pulp/api/v3/publications/rpm/rpm/9695e87f-67d7-4765-9f98-e9a13987baef/","content_counts":{"rpm":32,"erratum":4,"package_group":2,"srpm":0,"module_stream":0},"mirroring_policy":"mirror_content_only","id":18,"name":"Test - Repository","label":"Test_Repository","description":null,"content_view_versions":[],"filters":[],"last_sync":{"id":"0c110a6a-16e1-487f-a587-0ab648d99eda","username":"admin","started_at":"2023-11-15 - 09:54:33 UTC","ended_at":"2023-11-15 09:54:46 UTC","state":"stopped","result":"success","progress":1.0},"content_view":{"id":9,"name":"Default - Organization View"},"content_view_version":{"id":8,"name":"Default Organization - View 1.0","content_view_id":9},"kt_environment":{"id":4,"name":"Library"},"content_type":"yum","url":"https://repos.fedorapeople.org/pulp/pulp/demo_repos/zoo/","arch":"noarch","os_versions":[],"content_id":"1700042066424","generic_remote_options":null,"major":null,"minor":null,"product":{"id":10,"cp_id":"347380074197","name":"Test + string: '{"total":2,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test + Repository\"","sort":{"by":"name","order":"asc"},"results":[{"backend_identifier":"c42d6bfb-3280-4660-9f2c-c76c786fa382","relative_path":"Test_Organization/Library/custom/Test_Product/Test_Repository","container_repository_name":"test_organization-test_product-test_repository","full_path":"https://centos8-stream-katello-nightly.tanso.example.com/pulp/content/Test_Organization/Library/custom/Test_Product/Test_Repository/","library_instance_id":null,"version_href":"/pulp/api/v3/repositories/rpm/rpm/0190e8c6-b36d-7e8e-80f0-a0b6470e39c9/versions/1/","remote_href":"/pulp/api/v3/remotes/rpm/rpm/0190e8c6-b9d8-7aa7-a1d8-f8f81d2e719a/","publication_href":"/pulp/api/v3/publications/rpm/rpm/0190e8c6-d0e6-72f6-84b8-8a095de927df/","content_counts":{"rpm":32,"erratum":4,"package_group":2,"srpm":0,"module_stream":0},"mirroring_policy":"mirror_content_only","id":20,"name":"Test + Repository","label":"Test_Repository","description":null,"content_view_versions":[],"filters":[],"last_sync":{"id":"13c7ce53-a0e4-4a3c-9a5e-27f4671e300d","username":"admin","started_at":"2024-07-25 + 07:24:18 UTC","ended_at":"2024-07-25 07:24:23 UTC","state":"stopped","result":"success","progress":1.0},"content_view":{"id":16,"name":"Default + Organization View"},"content_view_version":{"id":9,"name":"Default Organization + View 1.0","content_view_id":16},"kt_environment":{"id":9,"name":"Library"},"content_type":"yum","url":"https://repos.fedorapeople.org/pulp/pulp/demo_repos/zoo/","arch":"noarch","os_versions":[],"content_id":"1721892254686","generic_remote_options":null,"major":null,"minor":null,"product":{"id":8,"cp_id":"527370220153","name":"Test Product","orphaned":false,"redhat":false,"sync_plan":null},"content_label":"Test_Organization_Test_Product_Test_Repository","last_sync_words":"less - than a minute"}],"org_repository_count":3} + than a minute"}],"org_repository_count":2} ' headers: @@ -263,7 +263,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '1879' + - '1928' 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''; @@ -277,7 +277,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.1 + - 3.12.0-develop Keep-Alive: - timeout=15, max=96 Strict-Transport-Security: @@ -307,7 +307,7 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/content_views/10/filters?search=name%3D%22Test+Package+Content+View+Filter%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/content_views/17/filters?search=name%3D%22Test+Package+Content+View+Filter%22&per_page=4294967296 response: body: string: '{"total":0,"subtotal":0,"selectable":0,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test @@ -334,7 +334,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.1 + - 3.12.0-develop Keep-Alive: - timeout=15, max=95 Strict-Transport-Security: @@ -354,7 +354,7 @@ interactions: message: OK - request: body: '{"name": "Test Package Content View Filter", "type": "rpm", "inclusion": - false, "repository_ids": [18]}' + false, "repository_ids": [20]}' headers: Accept: - application/json;version=2 @@ -369,23 +369,23 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: POST - uri: https://foreman.example.org/katello/api/content_views/10/filters + uri: https://foreman.example.org/katello/api/content_views/17/filters response: body: - string: ' {"inclusion":false,"original_packages":false,"id":8,"name":"Test - Package Content View Filter","description":null,"created_at":"2023-11-15 09:55:10 - UTC","updated_at":"2023-11-15 09:55:10 UTC","content_view":{"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":true,"repository_ids":[18],"id":10,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":5,"organization":{"name":"Test - Organization","label":"Test_Organization","id":5},"created_at":"2023-11-15 - 09:55:08 UTC","updated_at":"2023-11-15 09:55:08 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":18,"name":"Test - Repository","label":"Test_Repository","content_type":"yum","product":{"id":10,"name":"Test - Product"},"content_counts":{"docker_manifest":0,"docker_tag":0,"rpm":32,"package":32,"package_group":2,"erratum":4,"module_stream":0}}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]},"repositories":[{"backend_identifier":"29b3d88f-d4d9-4411-b1db-69f3a9c7df12","relative_path":"Test_Organization/Library/custom/Test_Product/Test_Repository","container_repository_name":null,"full_path":"https://centos8-stream-katello-4-9.tanso.example.com/pulp/content/Test_Organization/Library/custom/Test_Product/Test_Repository/","library_instance_id":null,"version_href":"/pulp/api/v3/repositories/rpm/rpm/00e6944a-841e-4bfe-9416-070861ef58fb/versions/1/","remote_href":"/pulp/api/v3/remotes/rpm/rpm/7e1e16ba-4432-4a52-988e-3da939154cbe/","publication_href":"/pulp/api/v3/publications/rpm/rpm/9695e87f-67d7-4765-9f98-e9a13987baef/","content_counts":{"rpm":32,"erratum":4,"package_group":2,"srpm":0,"module_stream":0},"mirroring_policy":"mirror_content_only","id":18,"name":"Test - Repository","label":"Test_Repository","description":null,"content_view_versions":[],"filters":[{"content_view_filter_id":8,"content_view_filter_name":"Test - Package Content View Filter","content_view_id":10,"content_view_name":"Test - Content View","last_affected_repo":true}],"last_sync":{"id":"0c110a6a-16e1-487f-a587-0ab648d99eda","username":"admin","started_at":"2023-11-15 - 09:54:33 UTC","ended_at":"2023-11-15 09:54:46 UTC","state":"stopped","result":"success","progress":1.0},"content_view":{"id":9,"name":"Default - Organization View"},"content_view_version":{"id":8,"name":"Default Organization - View 1.0","content_view_id":9},"kt_environment":{"id":4,"name":"Library"},"content_type":"yum","url":"https://repos.fedorapeople.org/pulp/pulp/demo_repos/zoo/","arch":"noarch","os_versions":[],"content_id":"1700042066424","generic_remote_options":null,"major":null,"minor":null,"product":{"id":10,"cp_id":"347380074197","name":"Test + string: ' {"inclusion":false,"original_packages":false,"id":78,"name":"Test + Package Content View Filter","description":null,"created_at":"2024-07-25 07:24:41 + UTC","updated_at":"2024-07-25 07:24:41 UTC","content_view":{"composite":false,"component_ids":[],"duplicate_repositories_to_publish":[],"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":[],"filtered":true,"repository_ids":[20],"id":17,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":10,"organization":{"name":"Test + Organization","label":"Test_Organization","id":10},"created_at":"2024-07-25 + 07:24:40 UTC","updated_at":"2024-07-25 07:24:40 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":20,"name":"Test + Repository","label":"Test_Repository","content_type":"yum","product":{"id":8,"name":"Test + Product"},"content_counts":{"docker_manifest":0,"docker_tag":0,"rpm":32,"package":32,"package_group":2,"erratum":4,"module_stream":0}}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]},"repositories":[{"backend_identifier":"c42d6bfb-3280-4660-9f2c-c76c786fa382","relative_path":"Test_Organization/Library/custom/Test_Product/Test_Repository","container_repository_name":"test_organization-test_product-test_repository","full_path":"https://centos8-stream-katello-nightly.tanso.example.com/pulp/content/Test_Organization/Library/custom/Test_Product/Test_Repository/","library_instance_id":null,"version_href":"/pulp/api/v3/repositories/rpm/rpm/0190e8c6-b36d-7e8e-80f0-a0b6470e39c9/versions/1/","remote_href":"/pulp/api/v3/remotes/rpm/rpm/0190e8c6-b9d8-7aa7-a1d8-f8f81d2e719a/","publication_href":"/pulp/api/v3/publications/rpm/rpm/0190e8c6-d0e6-72f6-84b8-8a095de927df/","content_counts":{"rpm":32,"erratum":4,"package_group":2,"srpm":0,"module_stream":0},"mirroring_policy":"mirror_content_only","id":20,"name":"Test + Repository","label":"Test_Repository","description":null,"content_view_versions":[],"filters":[{"content_view_filter_id":78,"content_view_filter_name":"Test + Package Content View Filter","content_view_id":17,"content_view_name":"Test + Content View","last_affected_repo":true}],"last_sync":{"id":"13c7ce53-a0e4-4a3c-9a5e-27f4671e300d","username":"admin","started_at":"2024-07-25 + 07:24:18 UTC","ended_at":"2024-07-25 07:24:23 UTC","state":"stopped","result":"success","progress":1.0},"content_view":{"id":16,"name":"Default + Organization View"},"content_view_version":{"id":9,"name":"Default Organization + View 1.0","content_view_id":16},"kt_environment":{"id":9,"name":"Library"},"content_type":"yum","url":"https://repos.fedorapeople.org/pulp/pulp/demo_repos/zoo/","arch":"noarch","os_versions":[],"content_id":"1721892254686","generic_remote_options":null,"major":null,"minor":null,"product":{"id":8,"cp_id":"527370220153","name":"Test Product","orphaned":false,"redhat":false,"sync_plan":null},"content_label":"Test_Organization_Test_Product_Test_Repository","last_sync_words":"less than a minute"}],"type":"rpm","rules":[]} @@ -396,7 +396,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '3156' + - '3226' 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''; @@ -410,7 +410,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.1 + - 3.12.0-develop Keep-Alive: - timeout=15, max=94 Strict-Transport-Security: diff --git a/tests/test_playbooks/fixtures/content_view_filter-1.yml b/tests/test_playbooks/fixtures/content_view_filter-1.yml index defe6f2fa..403ed7bd5 100644 --- a/tests/test_playbooks/fixtures/content_view_filter-1.yml +++ b/tests/test_playbooks/fixtures/content_view_filter-1.yml @@ -14,14 +14,14 @@ interactions: uri: https://foreman.example.org/api/status response: body: - string: '{"result":"ok","status":200,"version":"3.7.1","api_version":2}' + string: '{"result":"ok","status":200,"version":"3.12.0-develop","api_version":2}' headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive Content-Length: - - '62' + - '71' 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''; @@ -35,7 +35,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.1 + - 3.12.0-develop Keep-Alive: - timeout=15, max=100 Strict-Transport-Security: @@ -70,8 +70,8 @@ interactions: body: 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-15 - 09:54:22 UTC\",\"updated_at\":\"2023-11-15 09:54:23 UTC\",\"id\":5,\"name\":\"Test + {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\":\"Test_Organization\",\"created_at\":\"2024-07-25 + 07:24:10 UTC\",\"updated_at\":\"2024-07-25 07:24:12 UTC\",\"id\":10,\"name\":\"Test Organization\",\"title\":\"Test Organization\",\"description\":\"A test organization\"}]\n}\n" headers: Cache-Control: @@ -79,7 +79,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '388' + - '389' 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''; @@ -93,7 +93,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.1 + - 3.12.0-develop Keep-Alive: - timeout=15, max=99 Strict-Transport-Security: @@ -123,14 +123,14 @@ 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%22Test+Content+View%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/organizations/10/content_views?search=name%3D%22Test+Content+View%22&per_page=4294967296 response: body: string: '{"total":2,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Content View\"","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":true,"repository_ids":[18],"id":10,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":5,"organization":{"name":"Test - Organization","label":"Test_Organization","id":5},"created_at":"2023-11-15 - 09:55:08 UTC","updated_at":"2023-11-15 09:55:08 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":18,"name":"Test + Content View\"","sort":{"by":"name","order":"asc"},"results":[{"composite":false,"component_ids":[],"duplicate_repositories_to_publish":[],"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":[],"filtered":true,"repository_ids":[20],"id":17,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":10,"organization":{"name":"Test + Organization","label":"Test_Organization","id":10},"created_at":"2024-07-25 + 07:24:40 UTC","updated_at":"2024-07-25 07:24:40 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":20,"name":"Test Repository","label":"Test_Repository","content_type":"yum"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]}]} ' @@ -140,7 +140,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '1049' + - '1069' 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''; @@ -152,9 +152,9 @@ interactions: Foreman_current_location: - ; ANY Foreman_current_organization: - - 5; Test Organization + - 10; Test Organization Foreman_version: - - 3.7.1 + - 3.12.0-develop Keep-Alive: - timeout=15, max=98 Strict-Transport-Security: @@ -184,14 +184,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%22Test+Product%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/organizations/10/products?search=name%3D%22Test+Product%22&per_page=4294967296 response: body: string: '{"total":1,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Product\"","sort":{"by":"name","order":"asc"},"results":[{"id":10,"cp_id":"347380074197","name":"Test - Product","label":"Test_Product","description":"A happy little test product","provider_id":7,"sync_plan_id":null,"sync_summary":{"success":3},"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-15 09:54:59 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":3}]} + Product\"","sort":{"by":"name","order":"asc"},"results":[{"id":8,"cp_id":"527370220153","name":"Test + Product","label":"Test_Product","description":"A happy little test product","provider_id":17,"sync_plan_id":null,"sync_summary":{"success":2},"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":"2024-07-25 07:24:35 UTC","last_sync_words":"less than + a minute","organization_id":10,"organization":{"name":"Test Organization","label":"Test_Organization","id":10},"sync_plan":null,"repository_count":2}]} ' headers: @@ -200,7 +200,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '691' + - '693' 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''; @@ -212,9 +212,9 @@ interactions: Foreman_current_location: - ; ANY Foreman_current_organization: - - 5; Test Organization + - 10; Test Organization Foreman_version: - - 3.7.1 + - 3.12.0-develop Keep-Alive: - timeout=15, max=97 Strict-Transport-Security: @@ -244,19 +244,19 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/products/10/repositories?search=name%3D%22Test+Repository%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/products/8/repositories?search=name%3D%22Test+Repository%22&per_page=4294967296 response: body: - string: '{"total":3,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Repository\"","sort":{"by":"name","order":"asc"},"results":[{"backend_identifier":"29b3d88f-d4d9-4411-b1db-69f3a9c7df12","relative_path":"Test_Organization/Library/custom/Test_Product/Test_Repository","container_repository_name":null,"full_path":"https://centos8-stream-katello-4-9.tanso.example.com/pulp/content/Test_Organization/Library/custom/Test_Product/Test_Repository/","library_instance_id":null,"version_href":"/pulp/api/v3/repositories/rpm/rpm/00e6944a-841e-4bfe-9416-070861ef58fb/versions/1/","remote_href":"/pulp/api/v3/remotes/rpm/rpm/7e1e16ba-4432-4a52-988e-3da939154cbe/","publication_href":"/pulp/api/v3/publications/rpm/rpm/9695e87f-67d7-4765-9f98-e9a13987baef/","content_counts":{"rpm":32,"erratum":4,"package_group":2,"srpm":0,"module_stream":0},"mirroring_policy":"mirror_content_only","id":18,"name":"Test - Repository","label":"Test_Repository","description":null,"content_view_versions":[],"filters":[{"content_view_filter_id":8,"content_view_filter_name":"Test - Package Content View Filter","content_view_id":10,"content_view_name":"Test - Content View","last_affected_repo":true}],"last_sync":{"id":"0c110a6a-16e1-487f-a587-0ab648d99eda","username":"admin","started_at":"2023-11-15 - 09:54:33 UTC","ended_at":"2023-11-15 09:54:46 UTC","state":"stopped","result":"success","progress":1.0},"content_view":{"id":9,"name":"Default - Organization View"},"content_view_version":{"id":8,"name":"Default Organization - View 1.0","content_view_id":9},"kt_environment":{"id":4,"name":"Library"},"content_type":"yum","url":"https://repos.fedorapeople.org/pulp/pulp/demo_repos/zoo/","arch":"noarch","os_versions":[],"content_id":"1700042066424","generic_remote_options":null,"major":null,"minor":null,"product":{"id":10,"cp_id":"347380074197","name":"Test + string: '{"total":2,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test + Repository\"","sort":{"by":"name","order":"asc"},"results":[{"backend_identifier":"c42d6bfb-3280-4660-9f2c-c76c786fa382","relative_path":"Test_Organization/Library/custom/Test_Product/Test_Repository","container_repository_name":"test_organization-test_product-test_repository","full_path":"https://centos8-stream-katello-nightly.tanso.example.com/pulp/content/Test_Organization/Library/custom/Test_Product/Test_Repository/","library_instance_id":null,"version_href":"/pulp/api/v3/repositories/rpm/rpm/0190e8c6-b36d-7e8e-80f0-a0b6470e39c9/versions/1/","remote_href":"/pulp/api/v3/remotes/rpm/rpm/0190e8c6-b9d8-7aa7-a1d8-f8f81d2e719a/","publication_href":"/pulp/api/v3/publications/rpm/rpm/0190e8c6-d0e6-72f6-84b8-8a095de927df/","content_counts":{"rpm":32,"erratum":4,"package_group":2,"srpm":0,"module_stream":0},"mirroring_policy":"mirror_content_only","id":20,"name":"Test + Repository","label":"Test_Repository","description":null,"content_view_versions":[],"filters":[{"content_view_filter_id":78,"content_view_filter_name":"Test + Package Content View Filter","content_view_id":17,"content_view_name":"Test + Content View","last_affected_repo":true}],"last_sync":{"id":"13c7ce53-a0e4-4a3c-9a5e-27f4671e300d","username":"admin","started_at":"2024-07-25 + 07:24:18 UTC","ended_at":"2024-07-25 07:24:23 UTC","state":"stopped","result":"success","progress":1.0},"content_view":{"id":16,"name":"Default + Organization View"},"content_view_version":{"id":9,"name":"Default Organization + View 1.0","content_view_id":16},"kt_environment":{"id":9,"name":"Library"},"content_type":"yum","url":"https://repos.fedorapeople.org/pulp/pulp/demo_repos/zoo/","arch":"noarch","os_versions":[],"content_id":"1721892254686","generic_remote_options":null,"major":null,"minor":null,"product":{"id":8,"cp_id":"527370220153","name":"Test Product","orphaned":false,"redhat":false,"sync_plan":null},"content_label":"Test_Organization_Test_Product_Test_Repository","last_sync_words":"less - than a minute"}],"org_repository_count":3} + than a minute"}],"org_repository_count":2} ' headers: @@ -265,7 +265,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '2056' + - '2106' 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''; @@ -279,7 +279,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.1 + - 3.12.0-develop Keep-Alive: - timeout=15, max=96 Strict-Transport-Security: @@ -309,23 +309,23 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/content_views/10/filters?search=name%3D%22Test+Package+Content+View+Filter%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/content_views/17/filters?search=name%3D%22Test+Package+Content+View+Filter%22&per_page=4294967296 response: body: string: '{"total":1,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Package Content View Filter\"","sort":{"by":"name","order":"asc"},"results":[{"inclusion":false,"id":8,"name":"Test - Package Content View Filter","description":null,"created_at":"2023-11-15 09:55:10 - UTC","updated_at":"2023-11-15 09:55:10 UTC","content_view":{"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":true,"repository_ids":[18],"id":10,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":5,"organization":{"name":"Test - Organization","label":"Test_Organization","id":5},"created_at":"2023-11-15 - 09:55:08 UTC","updated_at":"2023-11-15 09:55:08 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":18,"name":"Test - Repository","label":"Test_Repository","content_type":"yum"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]},"repositories":[{"backend_identifier":"29b3d88f-d4d9-4411-b1db-69f3a9c7df12","relative_path":"Test_Organization/Library/custom/Test_Product/Test_Repository","container_repository_name":null,"full_path":"https://centos8-stream-katello-4-9.tanso.example.com/pulp/content/Test_Organization/Library/custom/Test_Product/Test_Repository/","library_instance_id":null,"version_href":"/pulp/api/v3/repositories/rpm/rpm/00e6944a-841e-4bfe-9416-070861ef58fb/versions/1/","remote_href":"/pulp/api/v3/remotes/rpm/rpm/7e1e16ba-4432-4a52-988e-3da939154cbe/","publication_href":"/pulp/api/v3/publications/rpm/rpm/9695e87f-67d7-4765-9f98-e9a13987baef/","content_counts":{"rpm":32,"erratum":4,"package_group":2,"srpm":0,"module_stream":0},"mirroring_policy":"mirror_content_only","id":18,"name":"Test - Repository","label":"Test_Repository","description":null,"content_view_versions":[],"filters":[{"content_view_filter_id":8,"content_view_filter_name":"Test - Package Content View Filter","content_view_id":10,"content_view_name":"Test - Content View","last_affected_repo":true}],"last_sync":{"id":"0c110a6a-16e1-487f-a587-0ab648d99eda","username":"admin","started_at":"2023-11-15 - 09:54:33 UTC","ended_at":"2023-11-15 09:54:46 UTC","state":"stopped","result":"success","progress":1.0},"content_view":{"id":9,"name":"Default - Organization View"},"content_view_version":{"id":8,"name":"Default Organization - View 1.0","content_view_id":9},"kt_environment":{"id":4,"name":"Library"},"content_type":"yum","url":"https://repos.fedorapeople.org/pulp/pulp/demo_repos/zoo/","arch":"noarch","os_versions":[],"content_id":"1700042066424","generic_remote_options":null,"major":null,"minor":null,"product":{"id":10,"cp_id":"347380074197","name":"Test + Package Content View Filter\"","sort":{"by":"name","order":"asc"},"results":[{"inclusion":false,"id":78,"name":"Test + Package Content View Filter","description":null,"created_at":"2024-07-25 07:24:41 + UTC","updated_at":"2024-07-25 07:24:41 UTC","content_view":{"composite":false,"component_ids":[],"duplicate_repositories_to_publish":[],"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":[],"filtered":true,"repository_ids":[20],"id":17,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":10,"organization":{"name":"Test + Organization","label":"Test_Organization","id":10},"created_at":"2024-07-25 + 07:24:40 UTC","updated_at":"2024-07-25 07:24:40 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":20,"name":"Test + Repository","label":"Test_Repository","content_type":"yum"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]},"repositories":[{"backend_identifier":"c42d6bfb-3280-4660-9f2c-c76c786fa382","relative_path":"Test_Organization/Library/custom/Test_Product/Test_Repository","container_repository_name":"test_organization-test_product-test_repository","full_path":"https://centos8-stream-katello-nightly.tanso.example.com/pulp/content/Test_Organization/Library/custom/Test_Product/Test_Repository/","library_instance_id":null,"version_href":"/pulp/api/v3/repositories/rpm/rpm/0190e8c6-b36d-7e8e-80f0-a0b6470e39c9/versions/1/","remote_href":"/pulp/api/v3/remotes/rpm/rpm/0190e8c6-b9d8-7aa7-a1d8-f8f81d2e719a/","publication_href":"/pulp/api/v3/publications/rpm/rpm/0190e8c6-d0e6-72f6-84b8-8a095de927df/","content_counts":{"rpm":32,"erratum":4,"package_group":2,"srpm":0,"module_stream":0},"mirroring_policy":"mirror_content_only","id":20,"name":"Test + Repository","label":"Test_Repository","description":null,"content_view_versions":[],"filters":[{"content_view_filter_id":78,"content_view_filter_name":"Test + Package Content View Filter","content_view_id":17,"content_view_name":"Test + Content View","last_affected_repo":true}],"last_sync":{"id":"13c7ce53-a0e4-4a3c-9a5e-27f4671e300d","username":"admin","started_at":"2024-07-25 + 07:24:18 UTC","ended_at":"2024-07-25 07:24:23 UTC","state":"stopped","result":"success","progress":1.0},"content_view":{"id":16,"name":"Default + Organization View"},"content_view_version":{"id":9,"name":"Default Organization + View 1.0","content_view_id":16},"kt_environment":{"id":9,"name":"Library"},"content_type":"yum","url":"https://repos.fedorapeople.org/pulp/pulp/demo_repos/zoo/","arch":"noarch","os_versions":[],"content_id":"1721892254686","generic_remote_options":null,"major":null,"minor":null,"product":{"id":8,"cp_id":"527370220153","name":"Test Product","orphaned":false,"redhat":false,"sync_plan":null},"content_label":"Test_Organization_Test_Product_Test_Repository","last_sync_words":"less than a minute"}],"type":"rpm","rules":[]}]} @@ -336,7 +336,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '3148' + - '3219' 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''; @@ -350,7 +350,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.1 + - 3.12.0-develop Keep-Alive: - timeout=15, max=95 Strict-Transport-Security: @@ -380,23 +380,23 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/content_views/10/filters/8 + uri: https://foreman.example.org/katello/api/content_views/17/filters/78 response: body: - string: ' {"inclusion":false,"original_packages":false,"id":8,"name":"Test - Package Content View Filter","description":null,"created_at":"2023-11-15 09:55:10 - UTC","updated_at":"2023-11-15 09:55:10 UTC","content_view":{"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":true,"repository_ids":[18],"id":10,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":5,"organization":{"name":"Test - Organization","label":"Test_Organization","id":5},"created_at":"2023-11-15 - 09:55:08 UTC","updated_at":"2023-11-15 09:55:08 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":18,"name":"Test - Repository","label":"Test_Repository","content_type":"yum","product":{"id":10,"name":"Test - Product"},"content_counts":{"docker_manifest":0,"docker_tag":0,"rpm":32,"package":32,"package_group":2,"erratum":4,"module_stream":0}}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]},"repositories":[{"backend_identifier":"29b3d88f-d4d9-4411-b1db-69f3a9c7df12","relative_path":"Test_Organization/Library/custom/Test_Product/Test_Repository","container_repository_name":null,"full_path":"https://centos8-stream-katello-4-9.tanso.example.com/pulp/content/Test_Organization/Library/custom/Test_Product/Test_Repository/","library_instance_id":null,"version_href":"/pulp/api/v3/repositories/rpm/rpm/00e6944a-841e-4bfe-9416-070861ef58fb/versions/1/","remote_href":"/pulp/api/v3/remotes/rpm/rpm/7e1e16ba-4432-4a52-988e-3da939154cbe/","publication_href":"/pulp/api/v3/publications/rpm/rpm/9695e87f-67d7-4765-9f98-e9a13987baef/","content_counts":{"rpm":32,"erratum":4,"package_group":2,"srpm":0,"module_stream":0},"mirroring_policy":"mirror_content_only","id":18,"name":"Test - Repository","label":"Test_Repository","description":null,"content_view_versions":[],"filters":[{"content_view_filter_id":8,"content_view_filter_name":"Test - Package Content View Filter","content_view_id":10,"content_view_name":"Test - Content View","last_affected_repo":true}],"last_sync":{"id":"0c110a6a-16e1-487f-a587-0ab648d99eda","username":"admin","started_at":"2023-11-15 - 09:54:33 UTC","ended_at":"2023-11-15 09:54:46 UTC","state":"stopped","result":"success","progress":1.0},"content_view":{"id":9,"name":"Default - Organization View"},"content_view_version":{"id":8,"name":"Default Organization - View 1.0","content_view_id":9},"kt_environment":{"id":4,"name":"Library"},"content_type":"yum","url":"https://repos.fedorapeople.org/pulp/pulp/demo_repos/zoo/","arch":"noarch","os_versions":[],"content_id":"1700042066424","generic_remote_options":null,"major":null,"minor":null,"product":{"id":10,"cp_id":"347380074197","name":"Test + string: ' {"inclusion":false,"original_packages":false,"id":78,"name":"Test + Package Content View Filter","description":null,"created_at":"2024-07-25 07:24:41 + UTC","updated_at":"2024-07-25 07:24:41 UTC","content_view":{"composite":false,"component_ids":[],"duplicate_repositories_to_publish":[],"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":[],"filtered":true,"repository_ids":[20],"id":17,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":10,"organization":{"name":"Test + Organization","label":"Test_Organization","id":10},"created_at":"2024-07-25 + 07:24:40 UTC","updated_at":"2024-07-25 07:24:40 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":20,"name":"Test + Repository","label":"Test_Repository","content_type":"yum","product":{"id":8,"name":"Test + Product"},"content_counts":{"docker_manifest":0,"docker_tag":0,"rpm":32,"package":32,"package_group":2,"erratum":4,"module_stream":0}}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]},"repositories":[{"backend_identifier":"c42d6bfb-3280-4660-9f2c-c76c786fa382","relative_path":"Test_Organization/Library/custom/Test_Product/Test_Repository","container_repository_name":"test_organization-test_product-test_repository","full_path":"https://centos8-stream-katello-nightly.tanso.example.com/pulp/content/Test_Organization/Library/custom/Test_Product/Test_Repository/","library_instance_id":null,"version_href":"/pulp/api/v3/repositories/rpm/rpm/0190e8c6-b36d-7e8e-80f0-a0b6470e39c9/versions/1/","remote_href":"/pulp/api/v3/remotes/rpm/rpm/0190e8c6-b9d8-7aa7-a1d8-f8f81d2e719a/","publication_href":"/pulp/api/v3/publications/rpm/rpm/0190e8c6-d0e6-72f6-84b8-8a095de927df/","content_counts":{"rpm":32,"erratum":4,"package_group":2,"srpm":0,"module_stream":0},"mirroring_policy":"mirror_content_only","id":20,"name":"Test + Repository","label":"Test_Repository","description":null,"content_view_versions":[],"filters":[{"content_view_filter_id":78,"content_view_filter_name":"Test + Package Content View Filter","content_view_id":17,"content_view_name":"Test + Content View","last_affected_repo":true}],"last_sync":{"id":"13c7ce53-a0e4-4a3c-9a5e-27f4671e300d","username":"admin","started_at":"2024-07-25 + 07:24:18 UTC","ended_at":"2024-07-25 07:24:23 UTC","state":"stopped","result":"success","progress":1.0},"content_view":{"id":16,"name":"Default + Organization View"},"content_view_version":{"id":9,"name":"Default Organization + View 1.0","content_view_id":16},"kt_environment":{"id":9,"name":"Library"},"content_type":"yum","url":"https://repos.fedorapeople.org/pulp/pulp/demo_repos/zoo/","arch":"noarch","os_versions":[],"content_id":"1721892254686","generic_remote_options":null,"major":null,"minor":null,"product":{"id":8,"cp_id":"527370220153","name":"Test Product","orphaned":false,"redhat":false,"sync_plan":null},"content_label":"Test_Organization_Test_Product_Test_Repository","last_sync_words":"less than a minute"}],"type":"rpm","rules":[]} @@ -407,7 +407,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '3156' + - '3226' 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''; @@ -421,7 +421,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.1 + - 3.12.0-develop Keep-Alive: - timeout=15, max=94 Strict-Transport-Security: diff --git a/tests/test_playbooks/fixtures/content_view_filter-10.yml b/tests/test_playbooks/fixtures/content_view_filter-10.yml index ad2dba0d9..a627df295 100644 --- a/tests/test_playbooks/fixtures/content_view_filter-10.yml +++ b/tests/test_playbooks/fixtures/content_view_filter-10.yml @@ -14,14 +14,14 @@ interactions: uri: https://foreman.example.org/api/status response: body: - string: '{"result":"ok","status":200,"version":"3.7.1","api_version":2}' + string: '{"result":"ok","status":200,"version":"3.12.0-develop","api_version":2}' headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive Content-Length: - - '62' + - '71' 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''; @@ -35,7 +35,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.1 + - 3.12.0-develop Keep-Alive: - timeout=15, max=100 Strict-Transport-Security: @@ -70,8 +70,8 @@ interactions: body: 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-15 - 09:54:22 UTC\",\"updated_at\":\"2023-11-15 09:54:23 UTC\",\"id\":5,\"name\":\"Test + {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\":\"Test_Organization\",\"created_at\":\"2024-07-25 + 07:24:10 UTC\",\"updated_at\":\"2024-07-25 07:24:12 UTC\",\"id\":10,\"name\":\"Test Organization\",\"title\":\"Test Organization\",\"description\":\"A test organization\"}]\n}\n" headers: Cache-Control: @@ -79,7 +79,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '388' + - '389' 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''; @@ -93,7 +93,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.1 + - 3.12.0-develop Keep-Alive: - timeout=15, max=99 Strict-Transport-Security: @@ -123,14 +123,14 @@ 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%22Test+Content+View%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/organizations/10/content_views?search=name%3D%22Test+Content+View%22&per_page=4294967296 response: body: string: '{"total":2,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Content View\"","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":true,"repository_ids":[18],"id":10,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":5,"organization":{"name":"Test - Organization","label":"Test_Organization","id":5},"created_at":"2023-11-15 - 09:55:08 UTC","updated_at":"2023-11-15 09:55:08 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":18,"name":"Test + Content View\"","sort":{"by":"name","order":"asc"},"results":[{"composite":false,"component_ids":[],"duplicate_repositories_to_publish":[],"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":[],"filtered":true,"repository_ids":[20],"id":17,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":10,"organization":{"name":"Test + Organization","label":"Test_Organization","id":10},"created_at":"2024-07-25 + 07:24:40 UTC","updated_at":"2024-07-25 07:24:40 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":20,"name":"Test Repository","label":"Test_Repository","content_type":"yum"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]}]} ' @@ -140,7 +140,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '1049' + - '1069' 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''; @@ -152,9 +152,9 @@ interactions: Foreman_current_location: - ; ANY Foreman_current_organization: - - 5; Test Organization + - 10; Test Organization Foreman_version: - - 3.7.1 + - 3.12.0-develop Keep-Alive: - timeout=15, max=98 Strict-Transport-Security: @@ -184,16 +184,16 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/content_views/10/filters?search=name%3D%22Test+Errata+id+Content+View+Filter%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/content_views/17/filters?search=name%3D%22Test+Errata+id+Content+View+Filter%22&per_page=4294967296 response: body: string: '{"total":1,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Errata id Content View Filter\"","sort":{"by":"name","order":"asc"},"results":[{"inclusion":false,"id":9,"name":"Test - Errata id Content View Filter","description":null,"created_at":"2023-11-15 - 09:55:16 UTC","updated_at":"2023-11-15 09:55:16 UTC","content_view":{"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":true,"repository_ids":[18],"id":10,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":5,"organization":{"name":"Test - Organization","label":"Test_Organization","id":5},"created_at":"2023-11-15 - 09:55:08 UTC","updated_at":"2023-11-15 09:55:08 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":18,"name":"Test + Errata id Content View Filter\"","sort":{"by":"name","order":"asc"},"results":[{"inclusion":false,"id":79,"name":"Test + Errata id Content View Filter","description":null,"created_at":"2024-07-25 + 07:24:48 UTC","updated_at":"2024-07-25 07:24:48 UTC","content_view":{"composite":false,"component_ids":[],"duplicate_repositories_to_publish":[],"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":[],"filtered":true,"repository_ids":[20],"id":17,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":10,"organization":{"name":"Test + Organization","label":"Test_Organization","id":10},"created_at":"2024-07-25 + 07:24:40 UTC","updated_at":"2024-07-25 07:24:40 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":20,"name":"Test Repository","label":"Test_Repository","content_type":"yum"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]},"repositories":[],"type":"erratum","rules":[]}]} ' @@ -203,7 +203,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '1295' + - '1316' 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''; @@ -217,7 +217,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.1 + - 3.12.0-develop Keep-Alive: - timeout=15, max=97 Strict-Transport-Security: @@ -235,68 +235,6 @@ 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/content_views/10/filters/9 - response: - body: - string: ' {"inclusion":false,"id":9,"name":"Test Errata id Content View Filter","description":null,"created_at":"2023-11-15 - 09:55:16 UTC","updated_at":"2023-11-15 09:55:16 UTC","content_view":{"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":true,"repository_ids":[18],"id":10,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":5,"organization":{"name":"Test - Organization","label":"Test_Organization","id":5},"created_at":"2023-11-15 - 09:55:08 UTC","updated_at":"2023-11-15 09:55:08 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":18,"name":"Test - Repository","label":"Test_Repository","content_type":"yum","product":{"id":10,"name":"Test - Product"},"content_counts":{"docker_manifest":0,"docker_tag":0,"rpm":32,"package":32,"package_group":2,"erratum":4,"module_stream":0}}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]},"repositories":[],"type":"erratum","rules":[]} - - ' - headers: - Cache-Control: - - max-age=0, private, must-revalidate - Connection: - - Keep-Alive - Content-Length: - - '1275' - 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=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: null headers: @@ -311,15 +249,15 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: DELETE - uri: https://foreman.example.org/katello/api/content_views/10/filters/9 + uri: https://foreman.example.org/katello/api/content_views/17/filters/79 response: body: - string: ' {"inclusion":false,"id":9,"name":"Test Errata id Content View Filter","description":null,"created_at":"2023-11-15 - 09:55:16 UTC","updated_at":"2023-11-15 09:55:16 UTC","content_view":{"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":[18],"id":10,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":5,"organization":{"name":"Test - Organization","label":"Test_Organization","id":5},"created_at":"2023-11-15 - 09:55:08 UTC","updated_at":"2023-11-15 09:55:08 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":18,"name":"Test - Repository","label":"Test_Repository","content_type":"yum","product":{"id":10,"name":"Test + string: ' {"inclusion":false,"id":79,"name":"Test Errata id Content View Filter","description":null,"created_at":"2024-07-25 + 07:24:48 UTC","updated_at":"2024-07-25 07:24:48 UTC","content_view":{"composite":false,"component_ids":[],"duplicate_repositories_to_publish":[],"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":[],"filtered":false,"repository_ids":[20],"id":17,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":10,"organization":{"name":"Test + Organization","label":"Test_Organization","id":10},"created_at":"2024-07-25 + 07:24:40 UTC","updated_at":"2024-07-25 07:24:40 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":20,"name":"Test + Repository","label":"Test_Repository","content_type":"yum","product":{"id":8,"name":"Test Product"},"content_counts":{"docker_manifest":0,"docker_tag":0,"rpm":32,"package":32,"package_group":2,"erratum":4,"module_stream":0}}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]},"repositories":[],"type":"erratum","rules":[]} ' @@ -329,7 +267,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '1276' + - '1296' 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''; @@ -343,9 +281,9 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.1 + - 3.12.0-develop Keep-Alive: - - timeout=15, max=95 + - timeout=15, max=96 Strict-Transport-Security: - max-age=631139040; includeSubdomains X-Content-Type-Options: diff --git a/tests/test_playbooks/fixtures/content_view_filter-11.yml b/tests/test_playbooks/fixtures/content_view_filter-11.yml index 74cb129f9..be0895674 100644 --- a/tests/test_playbooks/fixtures/content_view_filter-11.yml +++ b/tests/test_playbooks/fixtures/content_view_filter-11.yml @@ -14,14 +14,14 @@ interactions: uri: https://foreman.example.org/api/status response: body: - string: '{"result":"ok","status":200,"version":"3.7.1","api_version":2}' + string: '{"result":"ok","status":200,"version":"3.12.0-develop","api_version":2}' headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive Content-Length: - - '62' + - '71' 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''; @@ -35,7 +35,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.1 + - 3.12.0-develop Keep-Alive: - timeout=15, max=100 Strict-Transport-Security: @@ -70,8 +70,8 @@ interactions: body: 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-15 - 09:54:22 UTC\",\"updated_at\":\"2023-11-15 09:54:23 UTC\",\"id\":5,\"name\":\"Test + {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\":\"Test_Organization\",\"created_at\":\"2024-07-25 + 07:24:10 UTC\",\"updated_at\":\"2024-07-25 07:24:12 UTC\",\"id\":10,\"name\":\"Test Organization\",\"title\":\"Test Organization\",\"description\":\"A test organization\"}]\n}\n" headers: Cache-Control: @@ -79,7 +79,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '388' + - '389' 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''; @@ -93,7 +93,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.1 + - 3.12.0-develop Keep-Alive: - timeout=15, max=99 Strict-Transport-Security: @@ -123,14 +123,14 @@ 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%22Test+Content+View%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/organizations/10/content_views?search=name%3D%22Test+Content+View%22&per_page=4294967296 response: body: string: '{"total":2,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Content View\"","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":[18],"id":10,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":5,"organization":{"name":"Test - Organization","label":"Test_Organization","id":5},"created_at":"2023-11-15 - 09:55:08 UTC","updated_at":"2023-11-15 09:55:08 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":18,"name":"Test + Content View\"","sort":{"by":"name","order":"asc"},"results":[{"composite":false,"component_ids":[],"duplicate_repositories_to_publish":[],"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":[],"filtered":false,"repository_ids":[20],"id":17,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":10,"organization":{"name":"Test + Organization","label":"Test_Organization","id":10},"created_at":"2024-07-25 + 07:24:40 UTC","updated_at":"2024-07-25 07:24:40 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":20,"name":"Test Repository","label":"Test_Repository","content_type":"yum"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]}]} ' @@ -140,7 +140,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '1050' + - '1070' 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''; @@ -152,9 +152,9 @@ interactions: Foreman_current_location: - ; ANY Foreman_current_organization: - - 5; Test Organization + - 10; Test Organization Foreman_version: - - 3.7.1 + - 3.12.0-develop Keep-Alive: - timeout=15, max=98 Strict-Transport-Security: @@ -184,14 +184,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%22Test+Product%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/organizations/10/products?search=name%3D%22Test+Product%22&per_page=4294967296 response: body: string: '{"total":1,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Product\"","sort":{"by":"name","order":"asc"},"results":[{"id":10,"cp_id":"347380074197","name":"Test - Product","label":"Test_Product","description":"A happy little test product","provider_id":7,"sync_plan_id":null,"sync_summary":{"success":3},"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-15 09:54:59 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":3}]} + Product\"","sort":{"by":"name","order":"asc"},"results":[{"id":8,"cp_id":"527370220153","name":"Test + Product","label":"Test_Product","description":"A happy little test product","provider_id":17,"sync_plan_id":null,"sync_summary":{"success":2},"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":"2024-07-25 07:24:35 UTC","last_sync_words":"less than + a minute","organization_id":10,"organization":{"name":"Test Organization","label":"Test_Organization","id":10},"sync_plan":null,"repository_count":2}]} ' headers: @@ -200,7 +200,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '691' + - '693' 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''; @@ -212,9 +212,9 @@ interactions: Foreman_current_location: - ; ANY Foreman_current_organization: - - 5; Test Organization + - 10; Test Organization Foreman_version: - - 3.7.1 + - 3.12.0-develop Keep-Alive: - timeout=15, max=97 Strict-Transport-Security: @@ -244,17 +244,17 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/products/10/repositories?search=name%3D%22Test+Repository%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/products/8/repositories?search=name%3D%22Test+Repository%22&per_page=4294967296 response: body: - string: '{"total":3,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Repository\"","sort":{"by":"name","order":"asc"},"results":[{"backend_identifier":"29b3d88f-d4d9-4411-b1db-69f3a9c7df12","relative_path":"Test_Organization/Library/custom/Test_Product/Test_Repository","container_repository_name":null,"full_path":"https://centos8-stream-katello-4-9.tanso.example.com/pulp/content/Test_Organization/Library/custom/Test_Product/Test_Repository/","library_instance_id":null,"version_href":"/pulp/api/v3/repositories/rpm/rpm/00e6944a-841e-4bfe-9416-070861ef58fb/versions/1/","remote_href":"/pulp/api/v3/remotes/rpm/rpm/7e1e16ba-4432-4a52-988e-3da939154cbe/","publication_href":"/pulp/api/v3/publications/rpm/rpm/9695e87f-67d7-4765-9f98-e9a13987baef/","content_counts":{"rpm":32,"erratum":4,"package_group":2,"srpm":0,"module_stream":0},"mirroring_policy":"mirror_content_only","id":18,"name":"Test - Repository","label":"Test_Repository","description":null,"content_view_versions":[],"filters":[],"last_sync":{"id":"0c110a6a-16e1-487f-a587-0ab648d99eda","username":"admin","started_at":"2023-11-15 - 09:54:33 UTC","ended_at":"2023-11-15 09:54:46 UTC","state":"stopped","result":"success","progress":1.0},"content_view":{"id":9,"name":"Default - Organization View"},"content_view_version":{"id":8,"name":"Default Organization - View 1.0","content_view_id":9},"kt_environment":{"id":4,"name":"Library"},"content_type":"yum","url":"https://repos.fedorapeople.org/pulp/pulp/demo_repos/zoo/","arch":"noarch","os_versions":[],"content_id":"1700042066424","generic_remote_options":null,"major":null,"minor":null,"product":{"id":10,"cp_id":"347380074197","name":"Test - Product","orphaned":false,"redhat":false,"sync_plan":null},"content_label":"Test_Organization_Test_Product_Test_Repository","last_sync_words":"1 - minute"}],"org_repository_count":3} + string: '{"total":2,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test + Repository\"","sort":{"by":"name","order":"asc"},"results":[{"backend_identifier":"c42d6bfb-3280-4660-9f2c-c76c786fa382","relative_path":"Test_Organization/Library/custom/Test_Product/Test_Repository","container_repository_name":"test_organization-test_product-test_repository","full_path":"https://centos8-stream-katello-nightly.tanso.example.com/pulp/content/Test_Organization/Library/custom/Test_Product/Test_Repository/","library_instance_id":null,"version_href":"/pulp/api/v3/repositories/rpm/rpm/0190e8c6-b36d-7e8e-80f0-a0b6470e39c9/versions/1/","remote_href":"/pulp/api/v3/remotes/rpm/rpm/0190e8c6-b9d8-7aa7-a1d8-f8f81d2e719a/","publication_href":"/pulp/api/v3/publications/rpm/rpm/0190e8c6-d0e6-72f6-84b8-8a095de927df/","content_counts":{"rpm":32,"erratum":4,"package_group":2,"srpm":0,"module_stream":0},"mirroring_policy":"mirror_content_only","id":20,"name":"Test + Repository","label":"Test_Repository","description":null,"content_view_versions":[],"filters":[],"last_sync":{"id":"13c7ce53-a0e4-4a3c-9a5e-27f4671e300d","username":"admin","started_at":"2024-07-25 + 07:24:18 UTC","ended_at":"2024-07-25 07:24:23 UTC","state":"stopped","result":"success","progress":1.0},"content_view":{"id":16,"name":"Default + Organization View"},"content_view_version":{"id":9,"name":"Default Organization + View 1.0","content_view_id":16},"kt_environment":{"id":9,"name":"Library"},"content_type":"yum","url":"https://repos.fedorapeople.org/pulp/pulp/demo_repos/zoo/","arch":"noarch","os_versions":[],"content_id":"1721892254686","generic_remote_options":null,"major":null,"minor":null,"product":{"id":8,"cp_id":"527370220153","name":"Test + Product","orphaned":false,"redhat":false,"sync_plan":null},"content_label":"Test_Organization_Test_Product_Test_Repository","last_sync_words":"less + than a minute"}],"org_repository_count":2} ' headers: @@ -263,7 +263,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '1869' + - '1928' 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''; @@ -277,7 +277,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.1 + - 3.12.0-develop Keep-Alive: - timeout=15, max=96 Strict-Transport-Security: @@ -307,7 +307,7 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/content_views/10/filters?search=name%3D%22Test+Errata+date+Content+View+Filter%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/content_views/17/filters?search=name%3D%22Test+Errata+date+Content+View+Filter%22&per_page=4294967296 response: body: string: '{"total":0,"subtotal":0,"selectable":0,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test @@ -334,7 +334,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.1 + - 3.12.0-develop Keep-Alive: - timeout=15, max=95 Strict-Transport-Security: @@ -354,7 +354,7 @@ interactions: message: OK - request: body: '{"name": "Test Errata date Content View Filter", "type": "erratum", "inclusion": - false, "repository_ids": [18]}' + false, "repository_ids": [20]}' headers: Accept: - application/json;version=2 @@ -369,25 +369,25 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: POST - uri: https://foreman.example.org/katello/api/content_views/10/filters + uri: https://foreman.example.org/katello/api/content_views/17/filters response: body: - string: ' {"inclusion":false,"id":10,"name":"Test Errata date Content View - Filter","description":null,"created_at":"2023-11-15 09:55:19 UTC","updated_at":"2023-11-15 - 09:55:19 UTC","content_view":{"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":true,"repository_ids":[18],"id":10,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":5,"organization":{"name":"Test - Organization","label":"Test_Organization","id":5},"created_at":"2023-11-15 - 09:55:08 UTC","updated_at":"2023-11-15 09:55:08 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":18,"name":"Test - Repository","label":"Test_Repository","content_type":"yum","product":{"id":10,"name":"Test - Product"},"content_counts":{"docker_manifest":0,"docker_tag":0,"rpm":32,"package":32,"package_group":2,"erratum":4,"module_stream":0}}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]},"repositories":[{"backend_identifier":"29b3d88f-d4d9-4411-b1db-69f3a9c7df12","relative_path":"Test_Organization/Library/custom/Test_Product/Test_Repository","container_repository_name":null,"full_path":"https://centos8-stream-katello-4-9.tanso.example.com/pulp/content/Test_Organization/Library/custom/Test_Product/Test_Repository/","library_instance_id":null,"version_href":"/pulp/api/v3/repositories/rpm/rpm/00e6944a-841e-4bfe-9416-070861ef58fb/versions/1/","remote_href":"/pulp/api/v3/remotes/rpm/rpm/7e1e16ba-4432-4a52-988e-3da939154cbe/","publication_href":"/pulp/api/v3/publications/rpm/rpm/9695e87f-67d7-4765-9f98-e9a13987baef/","content_counts":{"rpm":32,"erratum":4,"package_group":2,"srpm":0,"module_stream":0},"mirroring_policy":"mirror_content_only","id":18,"name":"Test - Repository","label":"Test_Repository","description":null,"content_view_versions":[],"filters":[{"content_view_filter_id":10,"content_view_filter_name":"Test - Errata date Content View Filter","content_view_id":10,"content_view_name":"Test - Content View","last_affected_repo":true}],"last_sync":{"id":"0c110a6a-16e1-487f-a587-0ab648d99eda","username":"admin","started_at":"2023-11-15 - 09:54:33 UTC","ended_at":"2023-11-15 09:54:46 UTC","state":"stopped","result":"success","progress":1.0},"content_view":{"id":9,"name":"Default - Organization View"},"content_view_version":{"id":8,"name":"Default Organization - View 1.0","content_view_id":9},"kt_environment":{"id":4,"name":"Library"},"content_type":"yum","url":"https://repos.fedorapeople.org/pulp/pulp/demo_repos/zoo/","arch":"noarch","os_versions":[],"content_id":"1700042066424","generic_remote_options":null,"major":null,"minor":null,"product":{"id":10,"cp_id":"347380074197","name":"Test - Product","orphaned":false,"redhat":false,"sync_plan":null},"content_label":"Test_Organization_Test_Product_Test_Repository","last_sync_words":"1 - minute"}],"type":"erratum","rules":[]} + string: ' {"inclusion":false,"id":80,"name":"Test Errata date Content View + Filter","description":null,"created_at":"2024-07-25 07:24:50 UTC","updated_at":"2024-07-25 + 07:24:50 UTC","content_view":{"composite":false,"component_ids":[],"duplicate_repositories_to_publish":[],"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":[],"filtered":true,"repository_ids":[20],"id":17,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":10,"organization":{"name":"Test + Organization","label":"Test_Organization","id":10},"created_at":"2024-07-25 + 07:24:40 UTC","updated_at":"2024-07-25 07:24:40 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":20,"name":"Test + Repository","label":"Test_Repository","content_type":"yum","product":{"id":8,"name":"Test + Product"},"content_counts":{"docker_manifest":0,"docker_tag":0,"rpm":32,"package":32,"package_group":2,"erratum":4,"module_stream":0}}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]},"repositories":[{"backend_identifier":"c42d6bfb-3280-4660-9f2c-c76c786fa382","relative_path":"Test_Organization/Library/custom/Test_Product/Test_Repository","container_repository_name":"test_organization-test_product-test_repository","full_path":"https://centos8-stream-katello-nightly.tanso.example.com/pulp/content/Test_Organization/Library/custom/Test_Product/Test_Repository/","library_instance_id":null,"version_href":"/pulp/api/v3/repositories/rpm/rpm/0190e8c6-b36d-7e8e-80f0-a0b6470e39c9/versions/1/","remote_href":"/pulp/api/v3/remotes/rpm/rpm/0190e8c6-b9d8-7aa7-a1d8-f8f81d2e719a/","publication_href":"/pulp/api/v3/publications/rpm/rpm/0190e8c6-d0e6-72f6-84b8-8a095de927df/","content_counts":{"rpm":32,"erratum":4,"package_group":2,"srpm":0,"module_stream":0},"mirroring_policy":"mirror_content_only","id":20,"name":"Test + Repository","label":"Test_Repository","description":null,"content_view_versions":[],"filters":[{"content_view_filter_id":80,"content_view_filter_name":"Test + Errata date Content View Filter","content_view_id":17,"content_view_name":"Test + Content View","last_affected_repo":true}],"last_sync":{"id":"13c7ce53-a0e4-4a3c-9a5e-27f4671e300d","username":"admin","started_at":"2024-07-25 + 07:24:18 UTC","ended_at":"2024-07-25 07:24:23 UTC","state":"stopped","result":"success","progress":1.0},"content_view":{"id":16,"name":"Default + Organization View"},"content_view_version":{"id":9,"name":"Default Organization + View 1.0","content_view_id":16},"kt_environment":{"id":9,"name":"Library"},"content_type":"yum","url":"https://repos.fedorapeople.org/pulp/pulp/demo_repos/zoo/","arch":"noarch","os_versions":[],"content_id":"1721892254686","generic_remote_options":null,"major":null,"minor":null,"product":{"id":8,"cp_id":"527370220153","name":"Test + Product","orphaned":false,"redhat":false,"sync_plan":null},"content_label":"Test_Organization_Test_Product_Test_Repository","last_sync_words":"less + than a minute"}],"type":"erratum","rules":[]} ' headers: @@ -396,7 +396,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '3134' + - '3212' 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''; @@ -410,7 +410,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.1 + - 3.12.0-develop Keep-Alive: - timeout=15, max=94 Strict-Transport-Security: diff --git a/tests/test_playbooks/fixtures/content_view_filter-12.yml b/tests/test_playbooks/fixtures/content_view_filter-12.yml index 2a233a226..fa2b387c7 100644 --- a/tests/test_playbooks/fixtures/content_view_filter-12.yml +++ b/tests/test_playbooks/fixtures/content_view_filter-12.yml @@ -14,14 +14,14 @@ interactions: uri: https://foreman.example.org/api/status response: body: - string: '{"result":"ok","status":200,"version":"3.7.1","api_version":2}' + string: '{"result":"ok","status":200,"version":"3.12.0-develop","api_version":2}' headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive Content-Length: - - '62' + - '71' 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''; @@ -35,7 +35,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.1 + - 3.12.0-develop Keep-Alive: - timeout=15, max=100 Strict-Transport-Security: @@ -70,8 +70,8 @@ interactions: body: 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-15 - 09:54:22 UTC\",\"updated_at\":\"2023-11-15 09:54:23 UTC\",\"id\":5,\"name\":\"Test + {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\":\"Test_Organization\",\"created_at\":\"2024-07-25 + 07:24:10 UTC\",\"updated_at\":\"2024-07-25 07:24:12 UTC\",\"id\":10,\"name\":\"Test Organization\",\"title\":\"Test Organization\",\"description\":\"A test organization\"}]\n}\n" headers: Cache-Control: @@ -79,7 +79,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '388' + - '389' 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''; @@ -93,7 +93,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.1 + - 3.12.0-develop Keep-Alive: - timeout=15, max=99 Strict-Transport-Security: @@ -123,14 +123,14 @@ 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%22Test+Content+View%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/organizations/10/content_views?search=name%3D%22Test+Content+View%22&per_page=4294967296 response: body: string: '{"total":2,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Content View\"","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":true,"repository_ids":[18],"id":10,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":5,"organization":{"name":"Test - Organization","label":"Test_Organization","id":5},"created_at":"2023-11-15 - 09:55:08 UTC","updated_at":"2023-11-15 09:55:08 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":18,"name":"Test + Content View\"","sort":{"by":"name","order":"asc"},"results":[{"composite":false,"component_ids":[],"duplicate_repositories_to_publish":[],"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":[],"filtered":true,"repository_ids":[20],"id":17,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":10,"organization":{"name":"Test + Organization","label":"Test_Organization","id":10},"created_at":"2024-07-25 + 07:24:40 UTC","updated_at":"2024-07-25 07:24:40 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":20,"name":"Test Repository","label":"Test_Repository","content_type":"yum"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]}]} ' @@ -140,7 +140,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '1049' + - '1069' 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''; @@ -152,9 +152,9 @@ interactions: Foreman_current_location: - ; ANY Foreman_current_organization: - - 5; Test Organization + - 10; Test Organization Foreman_version: - - 3.7.1 + - 3.12.0-develop Keep-Alive: - timeout=15, max=98 Strict-Transport-Security: @@ -184,14 +184,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%22Test+Product%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/organizations/10/products?search=name%3D%22Test+Product%22&per_page=4294967296 response: body: string: '{"total":1,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Product\"","sort":{"by":"name","order":"asc"},"results":[{"id":10,"cp_id":"347380074197","name":"Test - Product","label":"Test_Product","description":"A happy little test product","provider_id":7,"sync_plan_id":null,"sync_summary":{"success":3},"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-15 09:54:59 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":3}]} + Product\"","sort":{"by":"name","order":"asc"},"results":[{"id":8,"cp_id":"527370220153","name":"Test + Product","label":"Test_Product","description":"A happy little test product","provider_id":17,"sync_plan_id":null,"sync_summary":{"success":2},"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":"2024-07-25 07:24:35 UTC","last_sync_words":"less than + a minute","organization_id":10,"organization":{"name":"Test Organization","label":"Test_Organization","id":10},"sync_plan":null,"repository_count":2}]} ' headers: @@ -200,7 +200,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '691' + - '693' 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''; @@ -212,9 +212,9 @@ interactions: Foreman_current_location: - ; ANY Foreman_current_organization: - - 5; Test Organization + - 10; Test Organization Foreman_version: - - 3.7.1 + - 3.12.0-develop Keep-Alive: - timeout=15, max=97 Strict-Transport-Security: @@ -244,19 +244,19 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/products/10/repositories?search=name%3D%22Test+Repository%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/products/8/repositories?search=name%3D%22Test+Repository%22&per_page=4294967296 response: body: - string: '{"total":3,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Repository\"","sort":{"by":"name","order":"asc"},"results":[{"backend_identifier":"29b3d88f-d4d9-4411-b1db-69f3a9c7df12","relative_path":"Test_Organization/Library/custom/Test_Product/Test_Repository","container_repository_name":null,"full_path":"https://centos8-stream-katello-4-9.tanso.example.com/pulp/content/Test_Organization/Library/custom/Test_Product/Test_Repository/","library_instance_id":null,"version_href":"/pulp/api/v3/repositories/rpm/rpm/00e6944a-841e-4bfe-9416-070861ef58fb/versions/1/","remote_href":"/pulp/api/v3/remotes/rpm/rpm/7e1e16ba-4432-4a52-988e-3da939154cbe/","publication_href":"/pulp/api/v3/publications/rpm/rpm/9695e87f-67d7-4765-9f98-e9a13987baef/","content_counts":{"rpm":32,"erratum":4,"package_group":2,"srpm":0,"module_stream":0},"mirroring_policy":"mirror_content_only","id":18,"name":"Test - Repository","label":"Test_Repository","description":null,"content_view_versions":[],"filters":[{"content_view_filter_id":10,"content_view_filter_name":"Test - Errata date Content View Filter","content_view_id":10,"content_view_name":"Test - Content View","last_affected_repo":true}],"last_sync":{"id":"0c110a6a-16e1-487f-a587-0ab648d99eda","username":"admin","started_at":"2023-11-15 - 09:54:33 UTC","ended_at":"2023-11-15 09:54:46 UTC","state":"stopped","result":"success","progress":1.0},"content_view":{"id":9,"name":"Default - Organization View"},"content_view_version":{"id":8,"name":"Default Organization - View 1.0","content_view_id":9},"kt_environment":{"id":4,"name":"Library"},"content_type":"yum","url":"https://repos.fedorapeople.org/pulp/pulp/demo_repos/zoo/","arch":"noarch","os_versions":[],"content_id":"1700042066424","generic_remote_options":null,"major":null,"minor":null,"product":{"id":10,"cp_id":"347380074197","name":"Test - Product","orphaned":false,"redhat":false,"sync_plan":null},"content_label":"Test_Organization_Test_Product_Test_Repository","last_sync_words":"1 - minute"}],"org_repository_count":3} + string: '{"total":2,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test + Repository\"","sort":{"by":"name","order":"asc"},"results":[{"backend_identifier":"c42d6bfb-3280-4660-9f2c-c76c786fa382","relative_path":"Test_Organization/Library/custom/Test_Product/Test_Repository","container_repository_name":"test_organization-test_product-test_repository","full_path":"https://centos8-stream-katello-nightly.tanso.example.com/pulp/content/Test_Organization/Library/custom/Test_Product/Test_Repository/","library_instance_id":null,"version_href":"/pulp/api/v3/repositories/rpm/rpm/0190e8c6-b36d-7e8e-80f0-a0b6470e39c9/versions/1/","remote_href":"/pulp/api/v3/remotes/rpm/rpm/0190e8c6-b9d8-7aa7-a1d8-f8f81d2e719a/","publication_href":"/pulp/api/v3/publications/rpm/rpm/0190e8c6-d0e6-72f6-84b8-8a095de927df/","content_counts":{"rpm":32,"erratum":4,"package_group":2,"srpm":0,"module_stream":0},"mirroring_policy":"mirror_content_only","id":20,"name":"Test + Repository","label":"Test_Repository","description":null,"content_view_versions":[],"filters":[{"content_view_filter_id":80,"content_view_filter_name":"Test + Errata date Content View Filter","content_view_id":17,"content_view_name":"Test + Content View","last_affected_repo":true}],"last_sync":{"id":"13c7ce53-a0e4-4a3c-9a5e-27f4671e300d","username":"admin","started_at":"2024-07-25 + 07:24:18 UTC","ended_at":"2024-07-25 07:24:23 UTC","state":"stopped","result":"success","progress":1.0},"content_view":{"id":16,"name":"Default + Organization View"},"content_view_version":{"id":9,"name":"Default Organization + View 1.0","content_view_id":16},"kt_environment":{"id":9,"name":"Library"},"content_type":"yum","url":"https://repos.fedorapeople.org/pulp/pulp/demo_repos/zoo/","arch":"noarch","os_versions":[],"content_id":"1721892254686","generic_remote_options":null,"major":null,"minor":null,"product":{"id":8,"cp_id":"527370220153","name":"Test + Product","orphaned":false,"redhat":false,"sync_plan":null},"content_label":"Test_Organization_Test_Product_Test_Repository","last_sync_words":"less + than a minute"}],"org_repository_count":2} ' headers: @@ -265,7 +265,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '2051' + - '2110' 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''; @@ -279,7 +279,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.1 + - 3.12.0-develop Keep-Alive: - timeout=15, max=96 Strict-Transport-Security: @@ -309,25 +309,25 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/content_views/10/filters?search=name%3D%22Test+Errata+date+Content+View+Filter%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/content_views/17/filters?search=name%3D%22Test+Errata+date+Content+View+Filter%22&per_page=4294967296 response: body: string: '{"total":1,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Errata date Content View Filter\"","sort":{"by":"name","order":"asc"},"results":[{"inclusion":false,"id":10,"name":"Test - Errata date Content View Filter","description":null,"created_at":"2023-11-15 - 09:55:19 UTC","updated_at":"2023-11-15 09:55:19 UTC","content_view":{"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":true,"repository_ids":[18],"id":10,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":5,"organization":{"name":"Test - Organization","label":"Test_Organization","id":5},"created_at":"2023-11-15 - 09:55:08 UTC","updated_at":"2023-11-15 09:55:08 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":18,"name":"Test - Repository","label":"Test_Repository","content_type":"yum"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]},"repositories":[{"backend_identifier":"29b3d88f-d4d9-4411-b1db-69f3a9c7df12","relative_path":"Test_Organization/Library/custom/Test_Product/Test_Repository","container_repository_name":null,"full_path":"https://centos8-stream-katello-4-9.tanso.example.com/pulp/content/Test_Organization/Library/custom/Test_Product/Test_Repository/","library_instance_id":null,"version_href":"/pulp/api/v3/repositories/rpm/rpm/00e6944a-841e-4bfe-9416-070861ef58fb/versions/1/","remote_href":"/pulp/api/v3/remotes/rpm/rpm/7e1e16ba-4432-4a52-988e-3da939154cbe/","publication_href":"/pulp/api/v3/publications/rpm/rpm/9695e87f-67d7-4765-9f98-e9a13987baef/","content_counts":{"rpm":32,"erratum":4,"package_group":2,"srpm":0,"module_stream":0},"mirroring_policy":"mirror_content_only","id":18,"name":"Test - Repository","label":"Test_Repository","description":null,"content_view_versions":[],"filters":[{"content_view_filter_id":10,"content_view_filter_name":"Test - Errata date Content View Filter","content_view_id":10,"content_view_name":"Test - Content View","last_affected_repo":true}],"last_sync":{"id":"0c110a6a-16e1-487f-a587-0ab648d99eda","username":"admin","started_at":"2023-11-15 - 09:54:33 UTC","ended_at":"2023-11-15 09:54:46 UTC","state":"stopped","result":"success","progress":1.0},"content_view":{"id":9,"name":"Default - Organization View"},"content_view_version":{"id":8,"name":"Default Organization - View 1.0","content_view_id":9},"kt_environment":{"id":4,"name":"Library"},"content_type":"yum","url":"https://repos.fedorapeople.org/pulp/pulp/demo_repos/zoo/","arch":"noarch","os_versions":[],"content_id":"1700042066424","generic_remote_options":null,"major":null,"minor":null,"product":{"id":10,"cp_id":"347380074197","name":"Test - Product","orphaned":false,"redhat":false,"sync_plan":null},"content_label":"Test_Organization_Test_Product_Test_Repository","last_sync_words":"1 - minute"}],"type":"erratum","rules":[]}]} + Errata date Content View Filter\"","sort":{"by":"name","order":"asc"},"results":[{"inclusion":false,"id":80,"name":"Test + Errata date Content View Filter","description":null,"created_at":"2024-07-25 + 07:24:50 UTC","updated_at":"2024-07-25 07:24:50 UTC","content_view":{"composite":false,"component_ids":[],"duplicate_repositories_to_publish":[],"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":[],"filtered":true,"repository_ids":[20],"id":17,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":10,"organization":{"name":"Test + Organization","label":"Test_Organization","id":10},"created_at":"2024-07-25 + 07:24:40 UTC","updated_at":"2024-07-25 07:24:40 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":20,"name":"Test + Repository","label":"Test_Repository","content_type":"yum"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]},"repositories":[{"backend_identifier":"c42d6bfb-3280-4660-9f2c-c76c786fa382","relative_path":"Test_Organization/Library/custom/Test_Product/Test_Repository","container_repository_name":"test_organization-test_product-test_repository","full_path":"https://centos8-stream-katello-nightly.tanso.example.com/pulp/content/Test_Organization/Library/custom/Test_Product/Test_Repository/","library_instance_id":null,"version_href":"/pulp/api/v3/repositories/rpm/rpm/0190e8c6-b36d-7e8e-80f0-a0b6470e39c9/versions/1/","remote_href":"/pulp/api/v3/remotes/rpm/rpm/0190e8c6-b9d8-7aa7-a1d8-f8f81d2e719a/","publication_href":"/pulp/api/v3/publications/rpm/rpm/0190e8c6-d0e6-72f6-84b8-8a095de927df/","content_counts":{"rpm":32,"erratum":4,"package_group":2,"srpm":0,"module_stream":0},"mirroring_policy":"mirror_content_only","id":20,"name":"Test + Repository","label":"Test_Repository","description":null,"content_view_versions":[],"filters":[{"content_view_filter_id":80,"content_view_filter_name":"Test + Errata date Content View Filter","content_view_id":17,"content_view_name":"Test + Content View","last_affected_repo":true}],"last_sync":{"id":"13c7ce53-a0e4-4a3c-9a5e-27f4671e300d","username":"admin","started_at":"2024-07-25 + 07:24:18 UTC","ended_at":"2024-07-25 07:24:23 UTC","state":"stopped","result":"success","progress":1.0},"content_view":{"id":16,"name":"Default + Organization View"},"content_view_version":{"id":9,"name":"Default Organization + View 1.0","content_view_id":16},"kt_environment":{"id":9,"name":"Library"},"content_type":"yum","url":"https://repos.fedorapeople.org/pulp/pulp/demo_repos/zoo/","arch":"noarch","os_versions":[],"content_id":"1721892254686","generic_remote_options":null,"major":null,"minor":null,"product":{"id":8,"cp_id":"527370220153","name":"Test + Product","orphaned":false,"redhat":false,"sync_plan":null},"content_label":"Test_Organization_Test_Product_Test_Repository","last_sync_words":"less + than a minute"}],"type":"erratum","rules":[]}]} ' headers: @@ -336,7 +336,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '3156' + - '3235' 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''; @@ -350,7 +350,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.1 + - 3.12.0-develop Keep-Alive: - timeout=15, max=95 Strict-Transport-Security: @@ -380,25 +380,25 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/content_views/10/filters/10 + uri: https://foreman.example.org/katello/api/content_views/17/filters/80 response: body: - string: ' {"inclusion":false,"id":10,"name":"Test Errata date Content View - Filter","description":null,"created_at":"2023-11-15 09:55:19 UTC","updated_at":"2023-11-15 - 09:55:19 UTC","content_view":{"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":true,"repository_ids":[18],"id":10,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":5,"organization":{"name":"Test - Organization","label":"Test_Organization","id":5},"created_at":"2023-11-15 - 09:55:08 UTC","updated_at":"2023-11-15 09:55:08 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":18,"name":"Test - Repository","label":"Test_Repository","content_type":"yum","product":{"id":10,"name":"Test - Product"},"content_counts":{"docker_manifest":0,"docker_tag":0,"rpm":32,"package":32,"package_group":2,"erratum":4,"module_stream":0}}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]},"repositories":[{"backend_identifier":"29b3d88f-d4d9-4411-b1db-69f3a9c7df12","relative_path":"Test_Organization/Library/custom/Test_Product/Test_Repository","container_repository_name":null,"full_path":"https://centos8-stream-katello-4-9.tanso.example.com/pulp/content/Test_Organization/Library/custom/Test_Product/Test_Repository/","library_instance_id":null,"version_href":"/pulp/api/v3/repositories/rpm/rpm/00e6944a-841e-4bfe-9416-070861ef58fb/versions/1/","remote_href":"/pulp/api/v3/remotes/rpm/rpm/7e1e16ba-4432-4a52-988e-3da939154cbe/","publication_href":"/pulp/api/v3/publications/rpm/rpm/9695e87f-67d7-4765-9f98-e9a13987baef/","content_counts":{"rpm":32,"erratum":4,"package_group":2,"srpm":0,"module_stream":0},"mirroring_policy":"mirror_content_only","id":18,"name":"Test - Repository","label":"Test_Repository","description":null,"content_view_versions":[],"filters":[{"content_view_filter_id":10,"content_view_filter_name":"Test - Errata date Content View Filter","content_view_id":10,"content_view_name":"Test - Content View","last_affected_repo":true}],"last_sync":{"id":"0c110a6a-16e1-487f-a587-0ab648d99eda","username":"admin","started_at":"2023-11-15 - 09:54:33 UTC","ended_at":"2023-11-15 09:54:46 UTC","state":"stopped","result":"success","progress":1.0},"content_view":{"id":9,"name":"Default - Organization View"},"content_view_version":{"id":8,"name":"Default Organization - View 1.0","content_view_id":9},"kt_environment":{"id":4,"name":"Library"},"content_type":"yum","url":"https://repos.fedorapeople.org/pulp/pulp/demo_repos/zoo/","arch":"noarch","os_versions":[],"content_id":"1700042066424","generic_remote_options":null,"major":null,"minor":null,"product":{"id":10,"cp_id":"347380074197","name":"Test - Product","orphaned":false,"redhat":false,"sync_plan":null},"content_label":"Test_Organization_Test_Product_Test_Repository","last_sync_words":"1 - minute"}],"type":"erratum","rules":[]} + string: ' {"inclusion":false,"id":80,"name":"Test Errata date Content View + Filter","description":null,"created_at":"2024-07-25 07:24:50 UTC","updated_at":"2024-07-25 + 07:24:50 UTC","content_view":{"composite":false,"component_ids":[],"duplicate_repositories_to_publish":[],"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":[],"filtered":true,"repository_ids":[20],"id":17,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":10,"organization":{"name":"Test + Organization","label":"Test_Organization","id":10},"created_at":"2024-07-25 + 07:24:40 UTC","updated_at":"2024-07-25 07:24:40 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":20,"name":"Test + Repository","label":"Test_Repository","content_type":"yum","product":{"id":8,"name":"Test + Product"},"content_counts":{"docker_manifest":0,"docker_tag":0,"rpm":32,"package":32,"package_group":2,"erratum":4,"module_stream":0}}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]},"repositories":[{"backend_identifier":"c42d6bfb-3280-4660-9f2c-c76c786fa382","relative_path":"Test_Organization/Library/custom/Test_Product/Test_Repository","container_repository_name":"test_organization-test_product-test_repository","full_path":"https://centos8-stream-katello-nightly.tanso.example.com/pulp/content/Test_Organization/Library/custom/Test_Product/Test_Repository/","library_instance_id":null,"version_href":"/pulp/api/v3/repositories/rpm/rpm/0190e8c6-b36d-7e8e-80f0-a0b6470e39c9/versions/1/","remote_href":"/pulp/api/v3/remotes/rpm/rpm/0190e8c6-b9d8-7aa7-a1d8-f8f81d2e719a/","publication_href":"/pulp/api/v3/publications/rpm/rpm/0190e8c6-d0e6-72f6-84b8-8a095de927df/","content_counts":{"rpm":32,"erratum":4,"package_group":2,"srpm":0,"module_stream":0},"mirroring_policy":"mirror_content_only","id":20,"name":"Test + Repository","label":"Test_Repository","description":null,"content_view_versions":[],"filters":[{"content_view_filter_id":80,"content_view_filter_name":"Test + Errata date Content View Filter","content_view_id":17,"content_view_name":"Test + Content View","last_affected_repo":true}],"last_sync":{"id":"13c7ce53-a0e4-4a3c-9a5e-27f4671e300d","username":"admin","started_at":"2024-07-25 + 07:24:18 UTC","ended_at":"2024-07-25 07:24:23 UTC","state":"stopped","result":"success","progress":1.0},"content_view":{"id":16,"name":"Default + Organization View"},"content_view_version":{"id":9,"name":"Default Organization + View 1.0","content_view_id":16},"kt_environment":{"id":9,"name":"Library"},"content_type":"yum","url":"https://repos.fedorapeople.org/pulp/pulp/demo_repos/zoo/","arch":"noarch","os_versions":[],"content_id":"1721892254686","generic_remote_options":null,"major":null,"minor":null,"product":{"id":8,"cp_id":"527370220153","name":"Test + Product","orphaned":false,"redhat":false,"sync_plan":null},"content_label":"Test_Organization_Test_Product_Test_Repository","last_sync_words":"less + than a minute"}],"type":"erratum","rules":[]} ' headers: @@ -407,7 +407,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '3134' + - '3212' 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''; @@ -421,7 +421,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.1 + - 3.12.0-develop Keep-Alive: - timeout=15, max=94 Strict-Transport-Security: diff --git a/tests/test_playbooks/fixtures/content_view_filter-13.yml b/tests/test_playbooks/fixtures/content_view_filter-13.yml index 1e0727b4c..cdefc421e 100644 --- a/tests/test_playbooks/fixtures/content_view_filter-13.yml +++ b/tests/test_playbooks/fixtures/content_view_filter-13.yml @@ -14,14 +14,14 @@ interactions: uri: https://foreman.example.org/api/status response: body: - string: '{"result":"ok","status":200,"version":"3.7.1","api_version":2}' + string: '{"result":"ok","status":200,"version":"3.12.0-develop","api_version":2}' headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive Content-Length: - - '62' + - '71' 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''; @@ -35,7 +35,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.1 + - 3.12.0-develop Keep-Alive: - timeout=15, max=100 Strict-Transport-Security: @@ -70,8 +70,8 @@ interactions: body: 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-15 - 09:54:22 UTC\",\"updated_at\":\"2023-11-15 09:54:23 UTC\",\"id\":5,\"name\":\"Test + {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\":\"Test_Organization\",\"created_at\":\"2024-07-25 + 07:24:10 UTC\",\"updated_at\":\"2024-07-25 07:24:12 UTC\",\"id\":10,\"name\":\"Test Organization\",\"title\":\"Test Organization\",\"description\":\"A test organization\"}]\n}\n" headers: Cache-Control: @@ -79,7 +79,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '388' + - '389' 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''; @@ -93,7 +93,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.1 + - 3.12.0-develop Keep-Alive: - timeout=15, max=99 Strict-Transport-Security: @@ -123,14 +123,14 @@ 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%22Test+Content+View%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/organizations/10/content_views?search=name%3D%22Test+Content+View%22&per_page=4294967296 response: body: string: '{"total":2,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Content View\"","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":true,"repository_ids":[18],"id":10,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":5,"organization":{"name":"Test - Organization","label":"Test_Organization","id":5},"created_at":"2023-11-15 - 09:55:08 UTC","updated_at":"2023-11-15 09:55:08 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":18,"name":"Test + Content View\"","sort":{"by":"name","order":"asc"},"results":[{"composite":false,"component_ids":[],"duplicate_repositories_to_publish":[],"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":[],"filtered":true,"repository_ids":[20],"id":17,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":10,"organization":{"name":"Test + Organization","label":"Test_Organization","id":10},"created_at":"2024-07-25 + 07:24:40 UTC","updated_at":"2024-07-25 07:24:40 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":20,"name":"Test Repository","label":"Test_Repository","content_type":"yum"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]}]} ' @@ -140,7 +140,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '1049' + - '1069' 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''; @@ -152,9 +152,9 @@ interactions: Foreman_current_location: - ; ANY Foreman_current_organization: - - 5; Test Organization + - 10; Test Organization Foreman_version: - - 3.7.1 + - 3.12.0-develop Keep-Alive: - timeout=15, max=98 Strict-Transport-Security: @@ -184,14 +184,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%22Test+Product%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/organizations/10/products?search=name%3D%22Test+Product%22&per_page=4294967296 response: body: string: '{"total":1,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Product\"","sort":{"by":"name","order":"asc"},"results":[{"id":10,"cp_id":"347380074197","name":"Test - Product","label":"Test_Product","description":"A happy little test product","provider_id":7,"sync_plan_id":null,"sync_summary":{"success":3},"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-15 09:54:59 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":3}]} + Product\"","sort":{"by":"name","order":"asc"},"results":[{"id":8,"cp_id":"527370220153","name":"Test + Product","label":"Test_Product","description":"A happy little test product","provider_id":17,"sync_plan_id":null,"sync_summary":{"success":2},"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":"2024-07-25 07:24:35 UTC","last_sync_words":"less than + a minute","organization_id":10,"organization":{"name":"Test Organization","label":"Test_Organization","id":10},"sync_plan":null,"repository_count":2}]} ' headers: @@ -200,7 +200,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '691' + - '693' 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''; @@ -212,9 +212,9 @@ interactions: Foreman_current_location: - ; ANY Foreman_current_organization: - - 5; Test Organization + - 10; Test Organization Foreman_version: - - 3.7.1 + - 3.12.0-develop Keep-Alive: - timeout=15, max=97 Strict-Transport-Security: @@ -244,19 +244,19 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/products/10/repositories?search=name%3D%22Test+Repository%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/products/8/repositories?search=name%3D%22Test+Repository%22&per_page=4294967296 response: body: - string: '{"total":3,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Repository\"","sort":{"by":"name","order":"asc"},"results":[{"backend_identifier":"29b3d88f-d4d9-4411-b1db-69f3a9c7df12","relative_path":"Test_Organization/Library/custom/Test_Product/Test_Repository","container_repository_name":null,"full_path":"https://centos8-stream-katello-4-9.tanso.example.com/pulp/content/Test_Organization/Library/custom/Test_Product/Test_Repository/","library_instance_id":null,"version_href":"/pulp/api/v3/repositories/rpm/rpm/00e6944a-841e-4bfe-9416-070861ef58fb/versions/1/","remote_href":"/pulp/api/v3/remotes/rpm/rpm/7e1e16ba-4432-4a52-988e-3da939154cbe/","publication_href":"/pulp/api/v3/publications/rpm/rpm/9695e87f-67d7-4765-9f98-e9a13987baef/","content_counts":{"rpm":32,"erratum":4,"package_group":2,"srpm":0,"module_stream":0},"mirroring_policy":"mirror_content_only","id":18,"name":"Test - Repository","label":"Test_Repository","description":null,"content_view_versions":[],"filters":[{"content_view_filter_id":10,"content_view_filter_name":"Test - Errata date Content View Filter","content_view_id":10,"content_view_name":"Test - Content View","last_affected_repo":true}],"last_sync":{"id":"0c110a6a-16e1-487f-a587-0ab648d99eda","username":"admin","started_at":"2023-11-15 - 09:54:33 UTC","ended_at":"2023-11-15 09:54:46 UTC","state":"stopped","result":"success","progress":1.0},"content_view":{"id":9,"name":"Default - Organization View"},"content_view_version":{"id":8,"name":"Default Organization - View 1.0","content_view_id":9},"kt_environment":{"id":4,"name":"Library"},"content_type":"yum","url":"https://repos.fedorapeople.org/pulp/pulp/demo_repos/zoo/","arch":"noarch","os_versions":[],"content_id":"1700042066424","generic_remote_options":null,"major":null,"minor":null,"product":{"id":10,"cp_id":"347380074197","name":"Test - Product","orphaned":false,"redhat":false,"sync_plan":null},"content_label":"Test_Organization_Test_Product_Test_Repository","last_sync_words":"1 - minute"}],"org_repository_count":3} + string: '{"total":2,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test + Repository\"","sort":{"by":"name","order":"asc"},"results":[{"backend_identifier":"c42d6bfb-3280-4660-9f2c-c76c786fa382","relative_path":"Test_Organization/Library/custom/Test_Product/Test_Repository","container_repository_name":"test_organization-test_product-test_repository","full_path":"https://centos8-stream-katello-nightly.tanso.example.com/pulp/content/Test_Organization/Library/custom/Test_Product/Test_Repository/","library_instance_id":null,"version_href":"/pulp/api/v3/repositories/rpm/rpm/0190e8c6-b36d-7e8e-80f0-a0b6470e39c9/versions/1/","remote_href":"/pulp/api/v3/remotes/rpm/rpm/0190e8c6-b9d8-7aa7-a1d8-f8f81d2e719a/","publication_href":"/pulp/api/v3/publications/rpm/rpm/0190e8c6-d0e6-72f6-84b8-8a095de927df/","content_counts":{"rpm":32,"erratum":4,"package_group":2,"srpm":0,"module_stream":0},"mirroring_policy":"mirror_content_only","id":20,"name":"Test + Repository","label":"Test_Repository","description":null,"content_view_versions":[],"filters":[{"content_view_filter_id":80,"content_view_filter_name":"Test + Errata date Content View Filter","content_view_id":17,"content_view_name":"Test + Content View","last_affected_repo":true}],"last_sync":{"id":"13c7ce53-a0e4-4a3c-9a5e-27f4671e300d","username":"admin","started_at":"2024-07-25 + 07:24:18 UTC","ended_at":"2024-07-25 07:24:23 UTC","state":"stopped","result":"success","progress":1.0},"content_view":{"id":16,"name":"Default + Organization View"},"content_view_version":{"id":9,"name":"Default Organization + View 1.0","content_view_id":16},"kt_environment":{"id":9,"name":"Library"},"content_type":"yum","url":"https://repos.fedorapeople.org/pulp/pulp/demo_repos/zoo/","arch":"noarch","os_versions":[],"content_id":"1721892254686","generic_remote_options":null,"major":null,"minor":null,"product":{"id":8,"cp_id":"527370220153","name":"Test + Product","orphaned":false,"redhat":false,"sync_plan":null},"content_label":"Test_Organization_Test_Product_Test_Repository","last_sync_words":"less + than a minute"}],"org_repository_count":2} ' headers: @@ -265,7 +265,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '2051' + - '2110' 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''; @@ -279,7 +279,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.1 + - 3.12.0-develop Keep-Alive: - timeout=15, max=96 Strict-Transport-Security: @@ -309,25 +309,25 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/content_views/10/filters?search=name%3D%22Test+Errata+date+Content+View+Filter%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/content_views/17/filters?search=name%3D%22Test+Errata+date+Content+View+Filter%22&per_page=4294967296 response: body: string: '{"total":1,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Errata date Content View Filter\"","sort":{"by":"name","order":"asc"},"results":[{"inclusion":false,"id":10,"name":"Test - Errata date Content View Filter","description":null,"created_at":"2023-11-15 - 09:55:19 UTC","updated_at":"2023-11-15 09:55:19 UTC","content_view":{"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":true,"repository_ids":[18],"id":10,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":5,"organization":{"name":"Test - Organization","label":"Test_Organization","id":5},"created_at":"2023-11-15 - 09:55:08 UTC","updated_at":"2023-11-15 09:55:08 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":18,"name":"Test - Repository","label":"Test_Repository","content_type":"yum"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]},"repositories":[{"backend_identifier":"29b3d88f-d4d9-4411-b1db-69f3a9c7df12","relative_path":"Test_Organization/Library/custom/Test_Product/Test_Repository","container_repository_name":null,"full_path":"https://centos8-stream-katello-4-9.tanso.example.com/pulp/content/Test_Organization/Library/custom/Test_Product/Test_Repository/","library_instance_id":null,"version_href":"/pulp/api/v3/repositories/rpm/rpm/00e6944a-841e-4bfe-9416-070861ef58fb/versions/1/","remote_href":"/pulp/api/v3/remotes/rpm/rpm/7e1e16ba-4432-4a52-988e-3da939154cbe/","publication_href":"/pulp/api/v3/publications/rpm/rpm/9695e87f-67d7-4765-9f98-e9a13987baef/","content_counts":{"rpm":32,"erratum":4,"package_group":2,"srpm":0,"module_stream":0},"mirroring_policy":"mirror_content_only","id":18,"name":"Test - Repository","label":"Test_Repository","description":null,"content_view_versions":[],"filters":[{"content_view_filter_id":10,"content_view_filter_name":"Test - Errata date Content View Filter","content_view_id":10,"content_view_name":"Test - Content View","last_affected_repo":true}],"last_sync":{"id":"0c110a6a-16e1-487f-a587-0ab648d99eda","username":"admin","started_at":"2023-11-15 - 09:54:33 UTC","ended_at":"2023-11-15 09:54:46 UTC","state":"stopped","result":"success","progress":1.0},"content_view":{"id":9,"name":"Default - Organization View"},"content_view_version":{"id":8,"name":"Default Organization - View 1.0","content_view_id":9},"kt_environment":{"id":4,"name":"Library"},"content_type":"yum","url":"https://repos.fedorapeople.org/pulp/pulp/demo_repos/zoo/","arch":"noarch","os_versions":[],"content_id":"1700042066424","generic_remote_options":null,"major":null,"minor":null,"product":{"id":10,"cp_id":"347380074197","name":"Test - Product","orphaned":false,"redhat":false,"sync_plan":null},"content_label":"Test_Organization_Test_Product_Test_Repository","last_sync_words":"1 - minute"}],"type":"erratum","rules":[]}]} + Errata date Content View Filter\"","sort":{"by":"name","order":"asc"},"results":[{"inclusion":false,"id":80,"name":"Test + Errata date Content View Filter","description":null,"created_at":"2024-07-25 + 07:24:50 UTC","updated_at":"2024-07-25 07:24:50 UTC","content_view":{"composite":false,"component_ids":[],"duplicate_repositories_to_publish":[],"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":[],"filtered":true,"repository_ids":[20],"id":17,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":10,"organization":{"name":"Test + Organization","label":"Test_Organization","id":10},"created_at":"2024-07-25 + 07:24:40 UTC","updated_at":"2024-07-25 07:24:40 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":20,"name":"Test + Repository","label":"Test_Repository","content_type":"yum"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]},"repositories":[{"backend_identifier":"c42d6bfb-3280-4660-9f2c-c76c786fa382","relative_path":"Test_Organization/Library/custom/Test_Product/Test_Repository","container_repository_name":"test_organization-test_product-test_repository","full_path":"https://centos8-stream-katello-nightly.tanso.example.com/pulp/content/Test_Organization/Library/custom/Test_Product/Test_Repository/","library_instance_id":null,"version_href":"/pulp/api/v3/repositories/rpm/rpm/0190e8c6-b36d-7e8e-80f0-a0b6470e39c9/versions/1/","remote_href":"/pulp/api/v3/remotes/rpm/rpm/0190e8c6-b9d8-7aa7-a1d8-f8f81d2e719a/","publication_href":"/pulp/api/v3/publications/rpm/rpm/0190e8c6-d0e6-72f6-84b8-8a095de927df/","content_counts":{"rpm":32,"erratum":4,"package_group":2,"srpm":0,"module_stream":0},"mirroring_policy":"mirror_content_only","id":20,"name":"Test + Repository","label":"Test_Repository","description":null,"content_view_versions":[],"filters":[{"content_view_filter_id":80,"content_view_filter_name":"Test + Errata date Content View Filter","content_view_id":17,"content_view_name":"Test + Content View","last_affected_repo":true}],"last_sync":{"id":"13c7ce53-a0e4-4a3c-9a5e-27f4671e300d","username":"admin","started_at":"2024-07-25 + 07:24:18 UTC","ended_at":"2024-07-25 07:24:23 UTC","state":"stopped","result":"success","progress":1.0},"content_view":{"id":16,"name":"Default + Organization View"},"content_view_version":{"id":9,"name":"Default Organization + View 1.0","content_view_id":16},"kt_environment":{"id":9,"name":"Library"},"content_type":"yum","url":"https://repos.fedorapeople.org/pulp/pulp/demo_repos/zoo/","arch":"noarch","os_versions":[],"content_id":"1721892254686","generic_remote_options":null,"major":null,"minor":null,"product":{"id":8,"cp_id":"527370220153","name":"Test + Product","orphaned":false,"redhat":false,"sync_plan":null},"content_label":"Test_Organization_Test_Product_Test_Repository","last_sync_words":"less + than a minute"}],"type":"erratum","rules":[]}]} ' headers: @@ -336,7 +336,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '3156' + - '3235' 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''; @@ -350,7 +350,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.1 + - 3.12.0-develop Keep-Alive: - timeout=15, max=95 Strict-Transport-Security: @@ -368,77 +368,6 @@ 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/content_views/10/filters/10 - response: - body: - string: ' {"inclusion":false,"id":10,"name":"Test Errata date Content View - Filter","description":null,"created_at":"2023-11-15 09:55:19 UTC","updated_at":"2023-11-15 - 09:55:19 UTC","content_view":{"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":true,"repository_ids":[18],"id":10,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":5,"organization":{"name":"Test - Organization","label":"Test_Organization","id":5},"created_at":"2023-11-15 - 09:55:08 UTC","updated_at":"2023-11-15 09:55:08 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":18,"name":"Test - Repository","label":"Test_Repository","content_type":"yum","product":{"id":10,"name":"Test - Product"},"content_counts":{"docker_manifest":0,"docker_tag":0,"rpm":32,"package":32,"package_group":2,"erratum":4,"module_stream":0}}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]},"repositories":[{"backend_identifier":"29b3d88f-d4d9-4411-b1db-69f3a9c7df12","relative_path":"Test_Organization/Library/custom/Test_Product/Test_Repository","container_repository_name":null,"full_path":"https://centos8-stream-katello-4-9.tanso.example.com/pulp/content/Test_Organization/Library/custom/Test_Product/Test_Repository/","library_instance_id":null,"version_href":"/pulp/api/v3/repositories/rpm/rpm/00e6944a-841e-4bfe-9416-070861ef58fb/versions/1/","remote_href":"/pulp/api/v3/remotes/rpm/rpm/7e1e16ba-4432-4a52-988e-3da939154cbe/","publication_href":"/pulp/api/v3/publications/rpm/rpm/9695e87f-67d7-4765-9f98-e9a13987baef/","content_counts":{"rpm":32,"erratum":4,"package_group":2,"srpm":0,"module_stream":0},"mirroring_policy":"mirror_content_only","id":18,"name":"Test - Repository","label":"Test_Repository","description":null,"content_view_versions":[],"filters":[{"content_view_filter_id":10,"content_view_filter_name":"Test - Errata date Content View Filter","content_view_id":10,"content_view_name":"Test - Content View","last_affected_repo":true}],"last_sync":{"id":"0c110a6a-16e1-487f-a587-0ab648d99eda","username":"admin","started_at":"2023-11-15 - 09:54:33 UTC","ended_at":"2023-11-15 09:54:46 UTC","state":"stopped","result":"success","progress":1.0},"content_view":{"id":9,"name":"Default - Organization View"},"content_view_version":{"id":8,"name":"Default Organization - View 1.0","content_view_id":9},"kt_environment":{"id":4,"name":"Library"},"content_type":"yum","url":"https://repos.fedorapeople.org/pulp/pulp/demo_repos/zoo/","arch":"noarch","os_versions":[],"content_id":"1700042066424","generic_remote_options":null,"major":null,"minor":null,"product":{"id":10,"cp_id":"347380074197","name":"Test - Product","orphaned":false,"redhat":false,"sync_plan":null},"content_label":"Test_Organization_Test_Product_Test_Repository","last_sync_words":"1 - minute"}],"type":"erratum","rules":[]} - - ' - headers: - Cache-Control: - - max-age=0, private, must-revalidate - Connection: - - Keep-Alive - Content-Length: - - '3134' - 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 - request: body: null headers: @@ -453,16 +382,16 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: DELETE - uri: https://foreman.example.org/katello/api/content_views/10/filters/10 + uri: https://foreman.example.org/katello/api/content_views/17/filters/80 response: body: - string: ' {"inclusion":false,"id":10,"name":"Test Errata date Content View - Filter","description":null,"created_at":"2023-11-15 09:55:19 UTC","updated_at":"2023-11-15 - 09:55:19 UTC","content_view":{"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":[18],"id":10,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":5,"organization":{"name":"Test - Organization","label":"Test_Organization","id":5},"created_at":"2023-11-15 - 09:55:08 UTC","updated_at":"2023-11-15 09:55:08 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":18,"name":"Test - Repository","label":"Test_Repository","content_type":"yum","product":{"id":10,"name":"Test + string: ' {"inclusion":false,"id":80,"name":"Test Errata date Content View + Filter","description":null,"created_at":"2024-07-25 07:24:50 UTC","updated_at":"2024-07-25 + 07:24:50 UTC","content_view":{"composite":false,"component_ids":[],"duplicate_repositories_to_publish":[],"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":[],"filtered":false,"repository_ids":[20],"id":17,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":10,"organization":{"name":"Test + Organization","label":"Test_Organization","id":10},"created_at":"2024-07-25 + 07:24:40 UTC","updated_at":"2024-07-25 07:24:40 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":20,"name":"Test + Repository","label":"Test_Repository","content_type":"yum","product":{"id":8,"name":"Test Product"},"content_counts":{"docker_manifest":0,"docker_tag":0,"rpm":32,"package":32,"package_group":2,"erratum":4,"module_stream":0}}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]},"repositories":[],"type":"erratum","rules":[]} ' @@ -472,7 +401,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '1279' + - '1298' 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''; @@ -486,9 +415,9 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.1 + - 3.12.0-develop Keep-Alive: - - timeout=15, max=93 + - timeout=15, max=94 Strict-Transport-Security: - max-age=631139040; includeSubdomains X-Content-Type-Options: diff --git a/tests/test_playbooks/fixtures/content_view_filter-14.yml b/tests/test_playbooks/fixtures/content_view_filter-14.yml index 021428a65..b4fa515d1 100644 --- a/tests/test_playbooks/fixtures/content_view_filter-14.yml +++ b/tests/test_playbooks/fixtures/content_view_filter-14.yml @@ -14,14 +14,14 @@ interactions: uri: https://foreman.example.org/api/status response: body: - string: '{"result":"ok","status":200,"version":"3.7.1","api_version":2}' + string: '{"result":"ok","status":200,"version":"3.12.0-develop","api_version":2}' headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive Content-Length: - - '62' + - '71' 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''; @@ -35,7 +35,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.1 + - 3.12.0-develop Keep-Alive: - timeout=15, max=100 Strict-Transport-Security: @@ -70,8 +70,8 @@ interactions: body: 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-15 - 09:54:22 UTC\",\"updated_at\":\"2023-11-15 09:54:23 UTC\",\"id\":5,\"name\":\"Test + {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\":\"Test_Organization\",\"created_at\":\"2024-07-25 + 07:24:10 UTC\",\"updated_at\":\"2024-07-25 07:24:12 UTC\",\"id\":10,\"name\":\"Test Organization\",\"title\":\"Test Organization\",\"description\":\"A test organization\"}]\n}\n" headers: Cache-Control: @@ -79,7 +79,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '388' + - '389' 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''; @@ -93,7 +93,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.1 + - 3.12.0-develop Keep-Alive: - timeout=15, max=99 Strict-Transport-Security: @@ -123,14 +123,14 @@ 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%22Test+Content+View%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/organizations/10/content_views?search=name%3D%22Test+Content+View%22&per_page=4294967296 response: body: string: '{"total":2,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Content View\"","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":[18],"id":10,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":5,"organization":{"name":"Test - Organization","label":"Test_Organization","id":5},"created_at":"2023-11-15 - 09:55:08 UTC","updated_at":"2023-11-15 09:55:08 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":18,"name":"Test + Content View\"","sort":{"by":"name","order":"asc"},"results":[{"composite":false,"component_ids":[],"duplicate_repositories_to_publish":[],"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":[],"filtered":false,"repository_ids":[20],"id":17,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":10,"organization":{"name":"Test + Organization","label":"Test_Organization","id":10},"created_at":"2024-07-25 + 07:24:40 UTC","updated_at":"2024-07-25 07:24:40 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":20,"name":"Test Repository","label":"Test_Repository","content_type":"yum"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]}]} ' @@ -140,7 +140,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '1050' + - '1070' 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''; @@ -152,9 +152,9 @@ interactions: Foreman_current_location: - ; ANY Foreman_current_organization: - - 5; Test Organization + - 10; Test Organization Foreman_version: - - 3.7.1 + - 3.12.0-develop Keep-Alive: - timeout=15, max=98 Strict-Transport-Security: @@ -184,7 +184,7 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/content_views/10/filters?search=name%3D%22Test+Package+Group+Content+View+Filter%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/content_views/17/filters?search=name%3D%22Test+Package+Group+Content+View+Filter%22&per_page=4294967296 response: body: string: '{"total":0,"subtotal":0,"selectable":0,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test @@ -211,7 +211,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.1 + - 3.12.0-develop Keep-Alive: - timeout=15, max=97 Strict-Transport-Security: @@ -246,16 +246,16 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: POST - uri: https://foreman.example.org/katello/api/content_views/10/filters + uri: https://foreman.example.org/katello/api/content_views/17/filters response: body: - string: ' {"inclusion":false,"id":11,"name":"Test Package Group Content View - Filter","description":null,"created_at":"2023-11-15 09:55:21 UTC","updated_at":"2023-11-15 - 09:55:21 UTC","content_view":{"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":true,"repository_ids":[18],"id":10,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":5,"organization":{"name":"Test - Organization","label":"Test_Organization","id":5},"created_at":"2023-11-15 - 09:55:08 UTC","updated_at":"2023-11-15 09:55:08 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":18,"name":"Test - Repository","label":"Test_Repository","content_type":"yum","product":{"id":10,"name":"Test + string: ' {"inclusion":false,"id":81,"name":"Test Package Group Content View + Filter","description":null,"created_at":"2024-07-25 07:24:52 UTC","updated_at":"2024-07-25 + 07:24:52 UTC","content_view":{"composite":false,"component_ids":[],"duplicate_repositories_to_publish":[],"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":[],"filtered":true,"repository_ids":[20],"id":17,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":10,"organization":{"name":"Test + Organization","label":"Test_Organization","id":10},"created_at":"2024-07-25 + 07:24:40 UTC","updated_at":"2024-07-25 07:24:40 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":20,"name":"Test + Repository","label":"Test_Repository","content_type":"yum","product":{"id":8,"name":"Test Product"},"content_counts":{"docker_manifest":0,"docker_tag":0,"rpm":32,"package":32,"package_group":2,"erratum":4,"module_stream":0}}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]},"repositories":[],"type":"package_group","rules":[]} ' @@ -265,7 +265,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '1286' + - '1305' 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''; @@ -279,7 +279,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.1 + - 3.12.0-develop Keep-Alive: - timeout=15, max=96 Strict-Transport-Security: diff --git a/tests/test_playbooks/fixtures/content_view_filter-15.yml b/tests/test_playbooks/fixtures/content_view_filter-15.yml index e529f5953..9d836ed65 100644 --- a/tests/test_playbooks/fixtures/content_view_filter-15.yml +++ b/tests/test_playbooks/fixtures/content_view_filter-15.yml @@ -14,14 +14,14 @@ interactions: uri: https://foreman.example.org/api/status response: body: - string: '{"result":"ok","status":200,"version":"3.7.1","api_version":2}' + string: '{"result":"ok","status":200,"version":"3.12.0-develop","api_version":2}' headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive Content-Length: - - '62' + - '71' 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''; @@ -35,7 +35,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.1 + - 3.12.0-develop Keep-Alive: - timeout=15, max=100 Strict-Transport-Security: @@ -70,8 +70,8 @@ interactions: body: 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-15 - 09:54:22 UTC\",\"updated_at\":\"2023-11-15 09:54:23 UTC\",\"id\":5,\"name\":\"Test + {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\":\"Test_Organization\",\"created_at\":\"2024-07-25 + 07:24:10 UTC\",\"updated_at\":\"2024-07-25 07:24:12 UTC\",\"id\":10,\"name\":\"Test Organization\",\"title\":\"Test Organization\",\"description\":\"A test organization\"}]\n}\n" headers: Cache-Control: @@ -79,7 +79,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '388' + - '389' 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''; @@ -93,7 +93,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.1 + - 3.12.0-develop Keep-Alive: - timeout=15, max=99 Strict-Transport-Security: @@ -123,14 +123,14 @@ 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%22Test+Content+View%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/organizations/10/content_views?search=name%3D%22Test+Content+View%22&per_page=4294967296 response: body: string: '{"total":2,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Content View\"","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":true,"repository_ids":[18],"id":10,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":5,"organization":{"name":"Test - Organization","label":"Test_Organization","id":5},"created_at":"2023-11-15 - 09:55:08 UTC","updated_at":"2023-11-15 09:55:08 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":18,"name":"Test + Content View\"","sort":{"by":"name","order":"asc"},"results":[{"composite":false,"component_ids":[],"duplicate_repositories_to_publish":[],"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":[],"filtered":true,"repository_ids":[20],"id":17,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":10,"organization":{"name":"Test + Organization","label":"Test_Organization","id":10},"created_at":"2024-07-25 + 07:24:40 UTC","updated_at":"2024-07-25 07:24:40 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":20,"name":"Test Repository","label":"Test_Repository","content_type":"yum"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]}]} ' @@ -140,7 +140,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '1049' + - '1069' 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''; @@ -152,9 +152,9 @@ interactions: Foreman_current_location: - ; ANY Foreman_current_organization: - - 5; Test Organization + - 10; Test Organization Foreman_version: - - 3.7.1 + - 3.12.0-develop Keep-Alive: - timeout=15, max=98 Strict-Transport-Security: @@ -184,16 +184,16 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/content_views/10/filters?search=name%3D%22Test+Package+Group+Content+View+Filter%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/content_views/17/filters?search=name%3D%22Test+Package+Group+Content+View+Filter%22&per_page=4294967296 response: body: string: '{"total":1,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Package Group Content View Filter\"","sort":{"by":"name","order":"asc"},"results":[{"inclusion":false,"id":11,"name":"Test - Package Group Content View Filter","description":null,"created_at":"2023-11-15 - 09:55:21 UTC","updated_at":"2023-11-15 09:55:21 UTC","content_view":{"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":true,"repository_ids":[18],"id":10,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":5,"organization":{"name":"Test - Organization","label":"Test_Organization","id":5},"created_at":"2023-11-15 - 09:55:08 UTC","updated_at":"2023-11-15 09:55:08 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":18,"name":"Test + Package Group Content View Filter\"","sort":{"by":"name","order":"asc"},"results":[{"inclusion":false,"id":81,"name":"Test + Package Group Content View Filter","description":null,"created_at":"2024-07-25 + 07:24:52 UTC","updated_at":"2024-07-25 07:24:52 UTC","content_view":{"composite":false,"component_ids":[],"duplicate_repositories_to_publish":[],"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":[],"filtered":true,"repository_ids":[20],"id":17,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":10,"organization":{"name":"Test + Organization","label":"Test_Organization","id":10},"created_at":"2024-07-25 + 07:24:40 UTC","updated_at":"2024-07-25 07:24:40 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":20,"name":"Test Repository","label":"Test_Repository","content_type":"yum"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]},"repositories":[],"type":"package_group","rules":[]}]} ' @@ -203,7 +203,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '1310' + - '1330' 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''; @@ -217,7 +217,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.1 + - 3.12.0-develop Keep-Alive: - timeout=15, max=97 Strict-Transport-Security: @@ -247,16 +247,16 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/content_views/10/filters/11 + uri: https://foreman.example.org/katello/api/content_views/17/filters/81 response: body: - string: ' {"inclusion":false,"id":11,"name":"Test Package Group Content View - Filter","description":null,"created_at":"2023-11-15 09:55:21 UTC","updated_at":"2023-11-15 - 09:55:21 UTC","content_view":{"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":true,"repository_ids":[18],"id":10,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":5,"organization":{"name":"Test - Organization","label":"Test_Organization","id":5},"created_at":"2023-11-15 - 09:55:08 UTC","updated_at":"2023-11-15 09:55:08 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":18,"name":"Test - Repository","label":"Test_Repository","content_type":"yum","product":{"id":10,"name":"Test + string: ' {"inclusion":false,"id":81,"name":"Test Package Group Content View + Filter","description":null,"created_at":"2024-07-25 07:24:52 UTC","updated_at":"2024-07-25 + 07:24:52 UTC","content_view":{"composite":false,"component_ids":[],"duplicate_repositories_to_publish":[],"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":[],"filtered":true,"repository_ids":[20],"id":17,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":10,"organization":{"name":"Test + Organization","label":"Test_Organization","id":10},"created_at":"2024-07-25 + 07:24:40 UTC","updated_at":"2024-07-25 07:24:40 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":20,"name":"Test + Repository","label":"Test_Repository","content_type":"yum","product":{"id":8,"name":"Test Product"},"content_counts":{"docker_manifest":0,"docker_tag":0,"rpm":32,"package":32,"package_group":2,"erratum":4,"module_stream":0}}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]},"repositories":[],"type":"package_group","rules":[]} ' @@ -266,7 +266,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '1286' + - '1305' 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''; @@ -280,7 +280,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.1 + - 3.12.0-develop Keep-Alive: - timeout=15, max=96 Strict-Transport-Security: diff --git a/tests/test_playbooks/fixtures/content_view_filter-16.yml b/tests/test_playbooks/fixtures/content_view_filter-16.yml index a62048fca..4f4edb1a5 100644 --- a/tests/test_playbooks/fixtures/content_view_filter-16.yml +++ b/tests/test_playbooks/fixtures/content_view_filter-16.yml @@ -14,14 +14,14 @@ interactions: uri: https://foreman.example.org/api/status response: body: - string: '{"result":"ok","status":200,"version":"3.7.1","api_version":2}' + string: '{"result":"ok","status":200,"version":"3.12.0-develop","api_version":2}' headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive Content-Length: - - '62' + - '71' 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''; @@ -35,7 +35,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.1 + - 3.12.0-develop Keep-Alive: - timeout=15, max=100 Strict-Transport-Security: @@ -70,8 +70,8 @@ interactions: body: 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-15 - 09:54:22 UTC\",\"updated_at\":\"2023-11-15 09:54:23 UTC\",\"id\":5,\"name\":\"Test + {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\":\"Test_Organization\",\"created_at\":\"2024-07-25 + 07:24:10 UTC\",\"updated_at\":\"2024-07-25 07:24:12 UTC\",\"id\":10,\"name\":\"Test Organization\",\"title\":\"Test Organization\",\"description\":\"A test organization\"}]\n}\n" headers: Cache-Control: @@ -79,7 +79,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '388' + - '389' 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''; @@ -93,7 +93,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.1 + - 3.12.0-develop Keep-Alive: - timeout=15, max=99 Strict-Transport-Security: @@ -123,14 +123,14 @@ 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%22Test+Content+View%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/organizations/10/content_views?search=name%3D%22Test+Content+View%22&per_page=4294967296 response: body: string: '{"total":2,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Content View\"","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":true,"repository_ids":[18],"id":10,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":5,"organization":{"name":"Test - Organization","label":"Test_Organization","id":5},"created_at":"2023-11-15 - 09:55:08 UTC","updated_at":"2023-11-15 09:55:08 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":18,"name":"Test + Content View\"","sort":{"by":"name","order":"asc"},"results":[{"composite":false,"component_ids":[],"duplicate_repositories_to_publish":[],"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":[],"filtered":true,"repository_ids":[20],"id":17,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":10,"organization":{"name":"Test + Organization","label":"Test_Organization","id":10},"created_at":"2024-07-25 + 07:24:40 UTC","updated_at":"2024-07-25 07:24:40 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":20,"name":"Test Repository","label":"Test_Repository","content_type":"yum"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]}]} ' @@ -140,7 +140,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '1049' + - '1069' 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''; @@ -152,9 +152,9 @@ interactions: Foreman_current_location: - ; ANY Foreman_current_organization: - - 5; Test Organization + - 10; Test Organization Foreman_version: - - 3.7.1 + - 3.12.0-develop Keep-Alive: - timeout=15, max=98 Strict-Transport-Security: @@ -184,16 +184,16 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/content_views/10/filters?search=name%3D%22Test+Package+Group+Content+View+Filter%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/content_views/17/filters?search=name%3D%22Test+Package+Group+Content+View+Filter%22&per_page=4294967296 response: body: string: '{"total":1,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Package Group Content View Filter\"","sort":{"by":"name","order":"asc"},"results":[{"inclusion":false,"id":11,"name":"Test - Package Group Content View Filter","description":null,"created_at":"2023-11-15 - 09:55:21 UTC","updated_at":"2023-11-15 09:55:21 UTC","content_view":{"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":true,"repository_ids":[18],"id":10,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":5,"organization":{"name":"Test - Organization","label":"Test_Organization","id":5},"created_at":"2023-11-15 - 09:55:08 UTC","updated_at":"2023-11-15 09:55:08 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":18,"name":"Test + Package Group Content View Filter\"","sort":{"by":"name","order":"asc"},"results":[{"inclusion":false,"id":81,"name":"Test + Package Group Content View Filter","description":null,"created_at":"2024-07-25 + 07:24:52 UTC","updated_at":"2024-07-25 07:24:52 UTC","content_view":{"composite":false,"component_ids":[],"duplicate_repositories_to_publish":[],"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":[],"filtered":true,"repository_ids":[20],"id":17,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":10,"organization":{"name":"Test + Organization","label":"Test_Organization","id":10},"created_at":"2024-07-25 + 07:24:40 UTC","updated_at":"2024-07-25 07:24:40 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":20,"name":"Test Repository","label":"Test_Repository","content_type":"yum"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]},"repositories":[],"type":"package_group","rules":[]}]} ' @@ -203,7 +203,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '1310' + - '1330' 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''; @@ -217,7 +217,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.1 + - 3.12.0-develop Keep-Alive: - timeout=15, max=97 Strict-Transport-Security: @@ -235,69 +235,6 @@ 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/content_views/10/filters/11 - response: - body: - string: ' {"inclusion":false,"id":11,"name":"Test Package Group Content View - Filter","description":null,"created_at":"2023-11-15 09:55:21 UTC","updated_at":"2023-11-15 - 09:55:21 UTC","content_view":{"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":true,"repository_ids":[18],"id":10,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":5,"organization":{"name":"Test - Organization","label":"Test_Organization","id":5},"created_at":"2023-11-15 - 09:55:08 UTC","updated_at":"2023-11-15 09:55:08 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":18,"name":"Test - Repository","label":"Test_Repository","content_type":"yum","product":{"id":10,"name":"Test - Product"},"content_counts":{"docker_manifest":0,"docker_tag":0,"rpm":32,"package":32,"package_group":2,"erratum":4,"module_stream":0}}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]},"repositories":[],"type":"package_group","rules":[]} - - ' - headers: - Cache-Control: - - max-age=0, private, must-revalidate - Connection: - - Keep-Alive - Content-Length: - - '1286' - 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=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: null headers: @@ -312,16 +249,16 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: DELETE - uri: https://foreman.example.org/katello/api/content_views/10/filters/11 + uri: https://foreman.example.org/katello/api/content_views/17/filters/81 response: body: - string: ' {"inclusion":false,"id":11,"name":"Test Package Group Content View - Filter","description":null,"created_at":"2023-11-15 09:55:21 UTC","updated_at":"2023-11-15 - 09:55:21 UTC","content_view":{"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":[18],"id":10,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":5,"organization":{"name":"Test - Organization","label":"Test_Organization","id":5},"created_at":"2023-11-15 - 09:55:08 UTC","updated_at":"2023-11-15 09:55:08 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":18,"name":"Test - Repository","label":"Test_Repository","content_type":"yum","product":{"id":10,"name":"Test + string: ' {"inclusion":false,"id":81,"name":"Test Package Group Content View + Filter","description":null,"created_at":"2024-07-25 07:24:52 UTC","updated_at":"2024-07-25 + 07:24:52 UTC","content_view":{"composite":false,"component_ids":[],"duplicate_repositories_to_publish":[],"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":[],"filtered":false,"repository_ids":[20],"id":17,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":10,"organization":{"name":"Test + Organization","label":"Test_Organization","id":10},"created_at":"2024-07-25 + 07:24:40 UTC","updated_at":"2024-07-25 07:24:40 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":20,"name":"Test + Repository","label":"Test_Repository","content_type":"yum","product":{"id":8,"name":"Test Product"},"content_counts":{"docker_manifest":0,"docker_tag":0,"rpm":32,"package":32,"package_group":2,"erratum":4,"module_stream":0}}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]},"repositories":[],"type":"package_group","rules":[]} ' @@ -331,7 +268,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '1287' + - '1306' 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''; @@ -345,9 +282,9 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.1 + - 3.12.0-develop Keep-Alive: - - timeout=15, max=95 + - timeout=15, max=96 Strict-Transport-Security: - max-age=631139040; includeSubdomains X-Content-Type-Options: diff --git a/tests/test_playbooks/fixtures/content_view_filter-17.yml b/tests/test_playbooks/fixtures/content_view_filter-17.yml index 0a7b8fbf7..adf3a659c 100644 --- a/tests/test_playbooks/fixtures/content_view_filter-17.yml +++ b/tests/test_playbooks/fixtures/content_view_filter-17.yml @@ -14,14 +14,14 @@ interactions: uri: https://foreman.example.org/api/status response: body: - string: '{"result":"ok","status":200,"version":"3.7.1","api_version":2}' + string: '{"result":"ok","status":200,"version":"3.12.0-develop","api_version":2}' headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive Content-Length: - - '62' + - '71' 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''; @@ -35,7 +35,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.1 + - 3.12.0-develop Keep-Alive: - timeout=15, max=100 Strict-Transport-Security: @@ -70,8 +70,8 @@ interactions: body: 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-15 - 09:54:22 UTC\",\"updated_at\":\"2023-11-15 09:54:23 UTC\",\"id\":5,\"name\":\"Test + {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\":\"Test_Organization\",\"created_at\":\"2024-07-25 + 07:24:10 UTC\",\"updated_at\":\"2024-07-25 07:24:12 UTC\",\"id\":10,\"name\":\"Test Organization\",\"title\":\"Test Organization\",\"description\":\"A test organization\"}]\n}\n" headers: Cache-Control: @@ -79,7 +79,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '388' + - '389' 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''; @@ -93,7 +93,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.1 + - 3.12.0-develop Keep-Alive: - timeout=15, max=99 Strict-Transport-Security: @@ -123,14 +123,14 @@ 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%22Test+Content+View%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/organizations/10/content_views?search=name%3D%22Test+Content+View%22&per_page=4294967296 response: body: string: '{"total":2,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Content View\"","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":[18],"id":10,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":5,"organization":{"name":"Test - Organization","label":"Test_Organization","id":5},"created_at":"2023-11-15 - 09:55:08 UTC","updated_at":"2023-11-15 09:55:08 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":18,"name":"Test + Content View\"","sort":{"by":"name","order":"asc"},"results":[{"composite":false,"component_ids":[],"duplicate_repositories_to_publish":[],"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":[],"filtered":false,"repository_ids":[20],"id":17,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":10,"organization":{"name":"Test + Organization","label":"Test_Organization","id":10},"created_at":"2024-07-25 + 07:24:40 UTC","updated_at":"2024-07-25 07:24:40 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":20,"name":"Test Repository","label":"Test_Repository","content_type":"yum"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]}]} ' @@ -140,7 +140,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '1050' + - '1070' 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''; @@ -152,9 +152,9 @@ interactions: Foreman_current_location: - ; ANY Foreman_current_organization: - - 5; Test Organization + - 10; Test Organization Foreman_version: - - 3.7.1 + - 3.12.0-develop Keep-Alive: - timeout=15, max=98 Strict-Transport-Security: @@ -184,7 +184,7 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/content_views/10/filters?search=name%3D%22Test+Docker+Content+View+Filter%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/content_views/17/filters?search=name%3D%22Test+Docker+Content+View+Filter%22&per_page=4294967296 response: body: string: '{"total":0,"subtotal":0,"selectable":0,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test @@ -211,7 +211,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.1 + - 3.12.0-develop Keep-Alive: - timeout=15, max=97 Strict-Transport-Security: @@ -246,15 +246,15 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: POST - uri: https://foreman.example.org/katello/api/content_views/10/filters + uri: https://foreman.example.org/katello/api/content_views/17/filters response: body: - string: ' {"inclusion":false,"id":12,"name":"Test Docker Content View Filter","description":null,"created_at":"2023-11-15 - 09:55:24 UTC","updated_at":"2023-11-15 09:55:24 UTC","content_view":{"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":true,"repository_ids":[18],"id":10,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":5,"organization":{"name":"Test - Organization","label":"Test_Organization","id":5},"created_at":"2023-11-15 - 09:55:08 UTC","updated_at":"2023-11-15 09:55:08 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":18,"name":"Test - Repository","label":"Test_Repository","content_type":"yum","product":{"id":10,"name":"Test + string: ' {"inclusion":false,"id":82,"name":"Test Docker Content View Filter","description":null,"created_at":"2024-07-25 + 07:24:54 UTC","updated_at":"2024-07-25 07:24:54 UTC","content_view":{"composite":false,"component_ids":[],"duplicate_repositories_to_publish":[],"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":[],"filtered":true,"repository_ids":[20],"id":17,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":10,"organization":{"name":"Test + Organization","label":"Test_Organization","id":10},"created_at":"2024-07-25 + 07:24:40 UTC","updated_at":"2024-07-25 07:24:40 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":20,"name":"Test + Repository","label":"Test_Repository","content_type":"yum","product":{"id":8,"name":"Test Product"},"content_counts":{"docker_manifest":0,"docker_tag":0,"rpm":32,"package":32,"package_group":2,"erratum":4,"module_stream":0}}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]},"repositories":[],"type":"docker","rules":[]} ' @@ -264,7 +264,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '1272' + - '1291' 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''; @@ -278,7 +278,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.1 + - 3.12.0-develop Keep-Alive: - timeout=15, max=96 Strict-Transport-Security: diff --git a/tests/test_playbooks/fixtures/content_view_filter-18.yml b/tests/test_playbooks/fixtures/content_view_filter-18.yml index 0a9eb24ea..e21566920 100644 --- a/tests/test_playbooks/fixtures/content_view_filter-18.yml +++ b/tests/test_playbooks/fixtures/content_view_filter-18.yml @@ -14,14 +14,14 @@ interactions: uri: https://foreman.example.org/api/status response: body: - string: '{"result":"ok","status":200,"version":"3.7.1","api_version":2}' + string: '{"result":"ok","status":200,"version":"3.12.0-develop","api_version":2}' headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive Content-Length: - - '62' + - '71' 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''; @@ -35,7 +35,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.1 + - 3.12.0-develop Keep-Alive: - timeout=15, max=100 Strict-Transport-Security: @@ -70,8 +70,8 @@ interactions: body: 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-15 - 09:54:22 UTC\",\"updated_at\":\"2023-11-15 09:54:23 UTC\",\"id\":5,\"name\":\"Test + {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\":\"Test_Organization\",\"created_at\":\"2024-07-25 + 07:24:10 UTC\",\"updated_at\":\"2024-07-25 07:24:12 UTC\",\"id\":10,\"name\":\"Test Organization\",\"title\":\"Test Organization\",\"description\":\"A test organization\"}]\n}\n" headers: Cache-Control: @@ -79,7 +79,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '388' + - '389' 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''; @@ -93,7 +93,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.1 + - 3.12.0-develop Keep-Alive: - timeout=15, max=99 Strict-Transport-Security: @@ -123,14 +123,14 @@ 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%22Test+Content+View%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/organizations/10/content_views?search=name%3D%22Test+Content+View%22&per_page=4294967296 response: body: string: '{"total":2,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Content View\"","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":true,"repository_ids":[18],"id":10,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":5,"organization":{"name":"Test - Organization","label":"Test_Organization","id":5},"created_at":"2023-11-15 - 09:55:08 UTC","updated_at":"2023-11-15 09:55:08 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":18,"name":"Test + Content View\"","sort":{"by":"name","order":"asc"},"results":[{"composite":false,"component_ids":[],"duplicate_repositories_to_publish":[],"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":[],"filtered":true,"repository_ids":[20],"id":17,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":10,"organization":{"name":"Test + Organization","label":"Test_Organization","id":10},"created_at":"2024-07-25 + 07:24:40 UTC","updated_at":"2024-07-25 07:24:40 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":20,"name":"Test Repository","label":"Test_Repository","content_type":"yum"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]}]} ' @@ -140,7 +140,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '1049' + - '1069' 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''; @@ -152,9 +152,9 @@ interactions: Foreman_current_location: - ; ANY Foreman_current_organization: - - 5; Test Organization + - 10; Test Organization Foreman_version: - - 3.7.1 + - 3.12.0-develop Keep-Alive: - timeout=15, max=98 Strict-Transport-Security: @@ -184,16 +184,16 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/content_views/10/filters?search=name%3D%22Test+Docker+Content+View+Filter%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/content_views/17/filters?search=name%3D%22Test+Docker+Content+View+Filter%22&per_page=4294967296 response: body: string: '{"total":1,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Docker Content View Filter\"","sort":{"by":"name","order":"asc"},"results":[{"inclusion":false,"id":12,"name":"Test - Docker Content View Filter","description":null,"created_at":"2023-11-15 09:55:24 - UTC","updated_at":"2023-11-15 09:55:24 UTC","content_view":{"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":true,"repository_ids":[18],"id":10,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":5,"organization":{"name":"Test - Organization","label":"Test_Organization","id":5},"created_at":"2023-11-15 - 09:55:08 UTC","updated_at":"2023-11-15 09:55:08 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":18,"name":"Test + Docker Content View Filter\"","sort":{"by":"name","order":"asc"},"results":[{"inclusion":false,"id":82,"name":"Test + Docker Content View Filter","description":null,"created_at":"2024-07-25 07:24:54 + UTC","updated_at":"2024-07-25 07:24:54 UTC","content_view":{"composite":false,"component_ids":[],"duplicate_repositories_to_publish":[],"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":[],"filtered":true,"repository_ids":[20],"id":17,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":10,"organization":{"name":"Test + Organization","label":"Test_Organization","id":10},"created_at":"2024-07-25 + 07:24:40 UTC","updated_at":"2024-07-25 07:24:40 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":20,"name":"Test Repository","label":"Test_Repository","content_type":"yum"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]},"repositories":[],"type":"docker","rules":[]}]} ' @@ -203,7 +203,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '1289' + - '1309' 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''; @@ -217,7 +217,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.1 + - 3.12.0-develop Keep-Alive: - timeout=15, max=97 Strict-Transport-Security: @@ -247,15 +247,15 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/content_views/10/filters/12 + uri: https://foreman.example.org/katello/api/content_views/17/filters/82 response: body: - string: ' {"inclusion":false,"id":12,"name":"Test Docker Content View Filter","description":null,"created_at":"2023-11-15 - 09:55:24 UTC","updated_at":"2023-11-15 09:55:24 UTC","content_view":{"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":true,"repository_ids":[18],"id":10,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":5,"organization":{"name":"Test - Organization","label":"Test_Organization","id":5},"created_at":"2023-11-15 - 09:55:08 UTC","updated_at":"2023-11-15 09:55:08 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":18,"name":"Test - Repository","label":"Test_Repository","content_type":"yum","product":{"id":10,"name":"Test + string: ' {"inclusion":false,"id":82,"name":"Test Docker Content View Filter","description":null,"created_at":"2024-07-25 + 07:24:54 UTC","updated_at":"2024-07-25 07:24:54 UTC","content_view":{"composite":false,"component_ids":[],"duplicate_repositories_to_publish":[],"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":[],"filtered":true,"repository_ids":[20],"id":17,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":10,"organization":{"name":"Test + Organization","label":"Test_Organization","id":10},"created_at":"2024-07-25 + 07:24:40 UTC","updated_at":"2024-07-25 07:24:40 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":20,"name":"Test + Repository","label":"Test_Repository","content_type":"yum","product":{"id":8,"name":"Test Product"},"content_counts":{"docker_manifest":0,"docker_tag":0,"rpm":32,"package":32,"package_group":2,"erratum":4,"module_stream":0}}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]},"repositories":[],"type":"docker","rules":[]} ' @@ -265,7 +265,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '1272' + - '1291' 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''; @@ -279,7 +279,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.1 + - 3.12.0-develop Keep-Alive: - timeout=15, max=96 Strict-Transport-Security: diff --git a/tests/test_playbooks/fixtures/content_view_filter-19.yml b/tests/test_playbooks/fixtures/content_view_filter-19.yml index f36ce96e6..63a1ab4fd 100644 --- a/tests/test_playbooks/fixtures/content_view_filter-19.yml +++ b/tests/test_playbooks/fixtures/content_view_filter-19.yml @@ -14,14 +14,14 @@ interactions: uri: https://foreman.example.org/api/status response: body: - string: '{"result":"ok","status":200,"version":"3.7.1","api_version":2}' + string: '{"result":"ok","status":200,"version":"3.12.0-develop","api_version":2}' headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive Content-Length: - - '62' + - '71' 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''; @@ -35,7 +35,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.1 + - 3.12.0-develop Keep-Alive: - timeout=15, max=100 Strict-Transport-Security: @@ -70,8 +70,8 @@ interactions: body: 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-15 - 09:54:22 UTC\",\"updated_at\":\"2023-11-15 09:54:23 UTC\",\"id\":5,\"name\":\"Test + {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\":\"Test_Organization\",\"created_at\":\"2024-07-25 + 07:24:10 UTC\",\"updated_at\":\"2024-07-25 07:24:12 UTC\",\"id\":10,\"name\":\"Test Organization\",\"title\":\"Test Organization\",\"description\":\"A test organization\"}]\n}\n" headers: Cache-Control: @@ -79,7 +79,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '388' + - '389' 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''; @@ -93,7 +93,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.1 + - 3.12.0-develop Keep-Alive: - timeout=15, max=99 Strict-Transport-Security: @@ -123,14 +123,14 @@ 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%22Test+Content+View%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/organizations/10/content_views?search=name%3D%22Test+Content+View%22&per_page=4294967296 response: body: string: '{"total":2,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Content View\"","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":true,"repository_ids":[18],"id":10,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":5,"organization":{"name":"Test - Organization","label":"Test_Organization","id":5},"created_at":"2023-11-15 - 09:55:08 UTC","updated_at":"2023-11-15 09:55:08 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":18,"name":"Test + Content View\"","sort":{"by":"name","order":"asc"},"results":[{"composite":false,"component_ids":[],"duplicate_repositories_to_publish":[],"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":[],"filtered":true,"repository_ids":[20],"id":17,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":10,"organization":{"name":"Test + Organization","label":"Test_Organization","id":10},"created_at":"2024-07-25 + 07:24:40 UTC","updated_at":"2024-07-25 07:24:40 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":20,"name":"Test Repository","label":"Test_Repository","content_type":"yum"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]}]} ' @@ -140,7 +140,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '1049' + - '1069' 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''; @@ -152,9 +152,9 @@ interactions: Foreman_current_location: - ; ANY Foreman_current_organization: - - 5; Test Organization + - 10; Test Organization Foreman_version: - - 3.7.1 + - 3.12.0-develop Keep-Alive: - timeout=15, max=98 Strict-Transport-Security: @@ -184,16 +184,16 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/content_views/10/filters?search=name%3D%22Test+Docker+Content+View+Filter%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/content_views/17/filters?search=name%3D%22Test+Docker+Content+View+Filter%22&per_page=4294967296 response: body: string: '{"total":1,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Docker Content View Filter\"","sort":{"by":"name","order":"asc"},"results":[{"inclusion":false,"id":12,"name":"Test - Docker Content View Filter","description":null,"created_at":"2023-11-15 09:55:24 - UTC","updated_at":"2023-11-15 09:55:24 UTC","content_view":{"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":true,"repository_ids":[18],"id":10,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":5,"organization":{"name":"Test - Organization","label":"Test_Organization","id":5},"created_at":"2023-11-15 - 09:55:08 UTC","updated_at":"2023-11-15 09:55:08 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":18,"name":"Test + Docker Content View Filter\"","sort":{"by":"name","order":"asc"},"results":[{"inclusion":false,"id":82,"name":"Test + Docker Content View Filter","description":null,"created_at":"2024-07-25 07:24:54 + UTC","updated_at":"2024-07-25 07:24:54 UTC","content_view":{"composite":false,"component_ids":[],"duplicate_repositories_to_publish":[],"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":[],"filtered":true,"repository_ids":[20],"id":17,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":10,"organization":{"name":"Test + Organization","label":"Test_Organization","id":10},"created_at":"2024-07-25 + 07:24:40 UTC","updated_at":"2024-07-25 07:24:40 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":20,"name":"Test Repository","label":"Test_Repository","content_type":"yum"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]},"repositories":[],"type":"docker","rules":[]}]} ' @@ -203,7 +203,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '1289' + - '1309' 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''; @@ -217,7 +217,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.1 + - 3.12.0-develop Keep-Alive: - timeout=15, max=97 Strict-Transport-Security: @@ -235,68 +235,6 @@ 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/content_views/10/filters/12 - response: - body: - string: ' {"inclusion":false,"id":12,"name":"Test Docker Content View Filter","description":null,"created_at":"2023-11-15 - 09:55:24 UTC","updated_at":"2023-11-15 09:55:24 UTC","content_view":{"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":true,"repository_ids":[18],"id":10,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":5,"organization":{"name":"Test - Organization","label":"Test_Organization","id":5},"created_at":"2023-11-15 - 09:55:08 UTC","updated_at":"2023-11-15 09:55:08 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":18,"name":"Test - Repository","label":"Test_Repository","content_type":"yum","product":{"id":10,"name":"Test - Product"},"content_counts":{"docker_manifest":0,"docker_tag":0,"rpm":32,"package":32,"package_group":2,"erratum":4,"module_stream":0}}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]},"repositories":[],"type":"docker","rules":[]} - - ' - headers: - Cache-Control: - - max-age=0, private, must-revalidate - Connection: - - Keep-Alive - Content-Length: - - '1272' - 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=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: null headers: @@ -311,15 +249,15 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: DELETE - uri: https://foreman.example.org/katello/api/content_views/10/filters/12 + uri: https://foreman.example.org/katello/api/content_views/17/filters/82 response: body: - string: ' {"inclusion":false,"id":12,"name":"Test Docker Content View Filter","description":null,"created_at":"2023-11-15 - 09:55:24 UTC","updated_at":"2023-11-15 09:55:24 UTC","content_view":{"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":[18],"id":10,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":5,"organization":{"name":"Test - Organization","label":"Test_Organization","id":5},"created_at":"2023-11-15 - 09:55:08 UTC","updated_at":"2023-11-15 09:55:08 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":18,"name":"Test - Repository","label":"Test_Repository","content_type":"yum","product":{"id":10,"name":"Test + string: ' {"inclusion":false,"id":82,"name":"Test Docker Content View Filter","description":null,"created_at":"2024-07-25 + 07:24:54 UTC","updated_at":"2024-07-25 07:24:54 UTC","content_view":{"composite":false,"component_ids":[],"duplicate_repositories_to_publish":[],"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":[],"filtered":false,"repository_ids":[20],"id":17,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":10,"organization":{"name":"Test + Organization","label":"Test_Organization","id":10},"created_at":"2024-07-25 + 07:24:40 UTC","updated_at":"2024-07-25 07:24:40 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":20,"name":"Test + Repository","label":"Test_Repository","content_type":"yum","product":{"id":8,"name":"Test Product"},"content_counts":{"docker_manifest":0,"docker_tag":0,"rpm":32,"package":32,"package_group":2,"erratum":4,"module_stream":0}}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]},"repositories":[],"type":"docker","rules":[]} ' @@ -329,7 +267,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '1273' + - '1292' 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''; @@ -343,9 +281,9 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.1 + - 3.12.0-develop Keep-Alive: - - timeout=15, max=95 + - timeout=15, max=96 Strict-Transport-Security: - max-age=631139040; includeSubdomains X-Content-Type-Options: diff --git a/tests/test_playbooks/fixtures/content_view_filter-2.yml b/tests/test_playbooks/fixtures/content_view_filter-2.yml index 2f19f4621..6a7f81071 100644 --- a/tests/test_playbooks/fixtures/content_view_filter-2.yml +++ b/tests/test_playbooks/fixtures/content_view_filter-2.yml @@ -14,14 +14,14 @@ interactions: uri: https://foreman.example.org/api/status response: body: - string: '{"result":"ok","status":200,"version":"3.7.1","api_version":2}' + string: '{"result":"ok","status":200,"version":"3.12.0-develop","api_version":2}' headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive Content-Length: - - '62' + - '71' 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''; @@ -35,7 +35,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.1 + - 3.12.0-develop Keep-Alive: - timeout=15, max=100 Strict-Transport-Security: @@ -70,8 +70,8 @@ interactions: body: 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-15 - 09:54:22 UTC\",\"updated_at\":\"2023-11-15 09:54:23 UTC\",\"id\":5,\"name\":\"Test + {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\":\"Test_Organization\",\"created_at\":\"2024-07-25 + 07:24:10 UTC\",\"updated_at\":\"2024-07-25 07:24:12 UTC\",\"id\":10,\"name\":\"Test Organization\",\"title\":\"Test Organization\",\"description\":\"A test organization\"}]\n}\n" headers: Cache-Control: @@ -79,7 +79,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '388' + - '389' 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''; @@ -93,7 +93,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.1 + - 3.12.0-develop Keep-Alive: - timeout=15, max=99 Strict-Transport-Security: @@ -123,14 +123,14 @@ 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%22Test+Content+View%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/organizations/10/content_views?search=name%3D%22Test+Content+View%22&per_page=4294967296 response: body: string: '{"total":2,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Content View\"","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":true,"repository_ids":[18],"id":10,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":5,"organization":{"name":"Test - Organization","label":"Test_Organization","id":5},"created_at":"2023-11-15 - 09:55:08 UTC","updated_at":"2023-11-15 09:55:08 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":18,"name":"Test + Content View\"","sort":{"by":"name","order":"asc"},"results":[{"composite":false,"component_ids":[],"duplicate_repositories_to_publish":[],"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":[],"filtered":true,"repository_ids":[20],"id":17,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":10,"organization":{"name":"Test + Organization","label":"Test_Organization","id":10},"created_at":"2024-07-25 + 07:24:40 UTC","updated_at":"2024-07-25 07:24:40 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":20,"name":"Test Repository","label":"Test_Repository","content_type":"yum"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]}]} ' @@ -140,7 +140,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '1049' + - '1069' 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''; @@ -152,9 +152,9 @@ interactions: Foreman_current_location: - ; ANY Foreman_current_organization: - - 5; Test Organization + - 10; Test Organization Foreman_version: - - 3.7.1 + - 3.12.0-develop Keep-Alive: - timeout=15, max=98 Strict-Transport-Security: @@ -184,14 +184,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%22Test+Product%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/organizations/10/products?search=name%3D%22Test+Product%22&per_page=4294967296 response: body: string: '{"total":1,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Product\"","sort":{"by":"name","order":"asc"},"results":[{"id":10,"cp_id":"347380074197","name":"Test - Product","label":"Test_Product","description":"A happy little test product","provider_id":7,"sync_plan_id":null,"sync_summary":{"success":3},"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-15 09:54:59 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":3}]} + Product\"","sort":{"by":"name","order":"asc"},"results":[{"id":8,"cp_id":"527370220153","name":"Test + Product","label":"Test_Product","description":"A happy little test product","provider_id":17,"sync_plan_id":null,"sync_summary":{"success":2},"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":"2024-07-25 07:24:35 UTC","last_sync_words":"less than + a minute","organization_id":10,"organization":{"name":"Test Organization","label":"Test_Organization","id":10},"sync_plan":null,"repository_count":2}]} ' headers: @@ -200,7 +200,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '691' + - '693' 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''; @@ -212,9 +212,9 @@ interactions: Foreman_current_location: - ; ANY Foreman_current_organization: - - 5; Test Organization + - 10; Test Organization Foreman_version: - - 3.7.1 + - 3.12.0-develop Keep-Alive: - timeout=15, max=97 Strict-Transport-Security: @@ -244,19 +244,19 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/products/10/repositories?search=name%3D%22Test+Repository%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/products/8/repositories?search=name%3D%22Test+Repository%22&per_page=4294967296 response: body: - string: '{"total":3,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Repository\"","sort":{"by":"name","order":"asc"},"results":[{"backend_identifier":"29b3d88f-d4d9-4411-b1db-69f3a9c7df12","relative_path":"Test_Organization/Library/custom/Test_Product/Test_Repository","container_repository_name":null,"full_path":"https://centos8-stream-katello-4-9.tanso.example.com/pulp/content/Test_Organization/Library/custom/Test_Product/Test_Repository/","library_instance_id":null,"version_href":"/pulp/api/v3/repositories/rpm/rpm/00e6944a-841e-4bfe-9416-070861ef58fb/versions/1/","remote_href":"/pulp/api/v3/remotes/rpm/rpm/7e1e16ba-4432-4a52-988e-3da939154cbe/","publication_href":"/pulp/api/v3/publications/rpm/rpm/9695e87f-67d7-4765-9f98-e9a13987baef/","content_counts":{"rpm":32,"erratum":4,"package_group":2,"srpm":0,"module_stream":0},"mirroring_policy":"mirror_content_only","id":18,"name":"Test - Repository","label":"Test_Repository","description":null,"content_view_versions":[],"filters":[{"content_view_filter_id":8,"content_view_filter_name":"Test - Package Content View Filter","content_view_id":10,"content_view_name":"Test - Content View","last_affected_repo":true}],"last_sync":{"id":"0c110a6a-16e1-487f-a587-0ab648d99eda","username":"admin","started_at":"2023-11-15 - 09:54:33 UTC","ended_at":"2023-11-15 09:54:46 UTC","state":"stopped","result":"success","progress":1.0},"content_view":{"id":9,"name":"Default - Organization View"},"content_view_version":{"id":8,"name":"Default Organization - View 1.0","content_view_id":9},"kt_environment":{"id":4,"name":"Library"},"content_type":"yum","url":"https://repos.fedorapeople.org/pulp/pulp/demo_repos/zoo/","arch":"noarch","os_versions":[],"content_id":"1700042066424","generic_remote_options":null,"major":null,"minor":null,"product":{"id":10,"cp_id":"347380074197","name":"Test + string: '{"total":2,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test + Repository\"","sort":{"by":"name","order":"asc"},"results":[{"backend_identifier":"c42d6bfb-3280-4660-9f2c-c76c786fa382","relative_path":"Test_Organization/Library/custom/Test_Product/Test_Repository","container_repository_name":"test_organization-test_product-test_repository","full_path":"https://centos8-stream-katello-nightly.tanso.example.com/pulp/content/Test_Organization/Library/custom/Test_Product/Test_Repository/","library_instance_id":null,"version_href":"/pulp/api/v3/repositories/rpm/rpm/0190e8c6-b36d-7e8e-80f0-a0b6470e39c9/versions/1/","remote_href":"/pulp/api/v3/remotes/rpm/rpm/0190e8c6-b9d8-7aa7-a1d8-f8f81d2e719a/","publication_href":"/pulp/api/v3/publications/rpm/rpm/0190e8c6-d0e6-72f6-84b8-8a095de927df/","content_counts":{"rpm":32,"erratum":4,"package_group":2,"srpm":0,"module_stream":0},"mirroring_policy":"mirror_content_only","id":20,"name":"Test + Repository","label":"Test_Repository","description":null,"content_view_versions":[],"filters":[{"content_view_filter_id":78,"content_view_filter_name":"Test + Package Content View Filter","content_view_id":17,"content_view_name":"Test + Content View","last_affected_repo":true}],"last_sync":{"id":"13c7ce53-a0e4-4a3c-9a5e-27f4671e300d","username":"admin","started_at":"2024-07-25 + 07:24:18 UTC","ended_at":"2024-07-25 07:24:23 UTC","state":"stopped","result":"success","progress":1.0},"content_view":{"id":16,"name":"Default + Organization View"},"content_view_version":{"id":9,"name":"Default Organization + View 1.0","content_view_id":16},"kt_environment":{"id":9,"name":"Library"},"content_type":"yum","url":"https://repos.fedorapeople.org/pulp/pulp/demo_repos/zoo/","arch":"noarch","os_versions":[],"content_id":"1721892254686","generic_remote_options":null,"major":null,"minor":null,"product":{"id":8,"cp_id":"527370220153","name":"Test Product","orphaned":false,"redhat":false,"sync_plan":null},"content_label":"Test_Organization_Test_Product_Test_Repository","last_sync_words":"less - than a minute"}],"org_repository_count":3} + than a minute"}],"org_repository_count":2} ' headers: @@ -265,7 +265,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '2056' + - '2106' 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''; @@ -279,7 +279,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.1 + - 3.12.0-develop Keep-Alive: - timeout=15, max=96 Strict-Transport-Security: @@ -309,23 +309,23 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/content_views/10/filters?search=name%3D%22Test+Package+Content+View+Filter%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/content_views/17/filters?search=name%3D%22Test+Package+Content+View+Filter%22&per_page=4294967296 response: body: string: '{"total":1,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Package Content View Filter\"","sort":{"by":"name","order":"asc"},"results":[{"inclusion":false,"id":8,"name":"Test - Package Content View Filter","description":null,"created_at":"2023-11-15 09:55:10 - UTC","updated_at":"2023-11-15 09:55:10 UTC","content_view":{"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":true,"repository_ids":[18],"id":10,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":5,"organization":{"name":"Test - Organization","label":"Test_Organization","id":5},"created_at":"2023-11-15 - 09:55:08 UTC","updated_at":"2023-11-15 09:55:08 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":18,"name":"Test - Repository","label":"Test_Repository","content_type":"yum"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]},"repositories":[{"backend_identifier":"29b3d88f-d4d9-4411-b1db-69f3a9c7df12","relative_path":"Test_Organization/Library/custom/Test_Product/Test_Repository","container_repository_name":null,"full_path":"https://centos8-stream-katello-4-9.tanso.example.com/pulp/content/Test_Organization/Library/custom/Test_Product/Test_Repository/","library_instance_id":null,"version_href":"/pulp/api/v3/repositories/rpm/rpm/00e6944a-841e-4bfe-9416-070861ef58fb/versions/1/","remote_href":"/pulp/api/v3/remotes/rpm/rpm/7e1e16ba-4432-4a52-988e-3da939154cbe/","publication_href":"/pulp/api/v3/publications/rpm/rpm/9695e87f-67d7-4765-9f98-e9a13987baef/","content_counts":{"rpm":32,"erratum":4,"package_group":2,"srpm":0,"module_stream":0},"mirroring_policy":"mirror_content_only","id":18,"name":"Test - Repository","label":"Test_Repository","description":null,"content_view_versions":[],"filters":[{"content_view_filter_id":8,"content_view_filter_name":"Test - Package Content View Filter","content_view_id":10,"content_view_name":"Test - Content View","last_affected_repo":true}],"last_sync":{"id":"0c110a6a-16e1-487f-a587-0ab648d99eda","username":"admin","started_at":"2023-11-15 - 09:54:33 UTC","ended_at":"2023-11-15 09:54:46 UTC","state":"stopped","result":"success","progress":1.0},"content_view":{"id":9,"name":"Default - Organization View"},"content_view_version":{"id":8,"name":"Default Organization - View 1.0","content_view_id":9},"kt_environment":{"id":4,"name":"Library"},"content_type":"yum","url":"https://repos.fedorapeople.org/pulp/pulp/demo_repos/zoo/","arch":"noarch","os_versions":[],"content_id":"1700042066424","generic_remote_options":null,"major":null,"minor":null,"product":{"id":10,"cp_id":"347380074197","name":"Test + Package Content View Filter\"","sort":{"by":"name","order":"asc"},"results":[{"inclusion":false,"id":78,"name":"Test + Package Content View Filter","description":null,"created_at":"2024-07-25 07:24:41 + UTC","updated_at":"2024-07-25 07:24:41 UTC","content_view":{"composite":false,"component_ids":[],"duplicate_repositories_to_publish":[],"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":[],"filtered":true,"repository_ids":[20],"id":17,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":10,"organization":{"name":"Test + Organization","label":"Test_Organization","id":10},"created_at":"2024-07-25 + 07:24:40 UTC","updated_at":"2024-07-25 07:24:40 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":20,"name":"Test + Repository","label":"Test_Repository","content_type":"yum"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]},"repositories":[{"backend_identifier":"c42d6bfb-3280-4660-9f2c-c76c786fa382","relative_path":"Test_Organization/Library/custom/Test_Product/Test_Repository","container_repository_name":"test_organization-test_product-test_repository","full_path":"https://centos8-stream-katello-nightly.tanso.example.com/pulp/content/Test_Organization/Library/custom/Test_Product/Test_Repository/","library_instance_id":null,"version_href":"/pulp/api/v3/repositories/rpm/rpm/0190e8c6-b36d-7e8e-80f0-a0b6470e39c9/versions/1/","remote_href":"/pulp/api/v3/remotes/rpm/rpm/0190e8c6-b9d8-7aa7-a1d8-f8f81d2e719a/","publication_href":"/pulp/api/v3/publications/rpm/rpm/0190e8c6-d0e6-72f6-84b8-8a095de927df/","content_counts":{"rpm":32,"erratum":4,"package_group":2,"srpm":0,"module_stream":0},"mirroring_policy":"mirror_content_only","id":20,"name":"Test + Repository","label":"Test_Repository","description":null,"content_view_versions":[],"filters":[{"content_view_filter_id":78,"content_view_filter_name":"Test + Package Content View Filter","content_view_id":17,"content_view_name":"Test + Content View","last_affected_repo":true}],"last_sync":{"id":"13c7ce53-a0e4-4a3c-9a5e-27f4671e300d","username":"admin","started_at":"2024-07-25 + 07:24:18 UTC","ended_at":"2024-07-25 07:24:23 UTC","state":"stopped","result":"success","progress":1.0},"content_view":{"id":16,"name":"Default + Organization View"},"content_view_version":{"id":9,"name":"Default Organization + View 1.0","content_view_id":16},"kt_environment":{"id":9,"name":"Library"},"content_type":"yum","url":"https://repos.fedorapeople.org/pulp/pulp/demo_repos/zoo/","arch":"noarch","os_versions":[],"content_id":"1721892254686","generic_remote_options":null,"major":null,"minor":null,"product":{"id":8,"cp_id":"527370220153","name":"Test Product","orphaned":false,"redhat":false,"sync_plan":null},"content_label":"Test_Organization_Test_Product_Test_Repository","last_sync_words":"less than a minute"}],"type":"rpm","rules":[]}]} @@ -336,7 +336,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '3148' + - '3219' 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''; @@ -350,7 +350,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.1 + - 3.12.0-develop Keep-Alive: - timeout=15, max=95 Strict-Transport-Security: @@ -380,23 +380,23 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/content_views/10/filters/8 + uri: https://foreman.example.org/katello/api/content_views/17/filters/78 response: body: - string: ' {"inclusion":false,"original_packages":false,"id":8,"name":"Test - Package Content View Filter","description":null,"created_at":"2023-11-15 09:55:10 - UTC","updated_at":"2023-11-15 09:55:10 UTC","content_view":{"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":true,"repository_ids":[18],"id":10,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":5,"organization":{"name":"Test - Organization","label":"Test_Organization","id":5},"created_at":"2023-11-15 - 09:55:08 UTC","updated_at":"2023-11-15 09:55:08 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":18,"name":"Test - Repository","label":"Test_Repository","content_type":"yum","product":{"id":10,"name":"Test - Product"},"content_counts":{"docker_manifest":0,"docker_tag":0,"rpm":32,"package":32,"package_group":2,"erratum":4,"module_stream":0}}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]},"repositories":[{"backend_identifier":"29b3d88f-d4d9-4411-b1db-69f3a9c7df12","relative_path":"Test_Organization/Library/custom/Test_Product/Test_Repository","container_repository_name":null,"full_path":"https://centos8-stream-katello-4-9.tanso.example.com/pulp/content/Test_Organization/Library/custom/Test_Product/Test_Repository/","library_instance_id":null,"version_href":"/pulp/api/v3/repositories/rpm/rpm/00e6944a-841e-4bfe-9416-070861ef58fb/versions/1/","remote_href":"/pulp/api/v3/remotes/rpm/rpm/7e1e16ba-4432-4a52-988e-3da939154cbe/","publication_href":"/pulp/api/v3/publications/rpm/rpm/9695e87f-67d7-4765-9f98-e9a13987baef/","content_counts":{"rpm":32,"erratum":4,"package_group":2,"srpm":0,"module_stream":0},"mirroring_policy":"mirror_content_only","id":18,"name":"Test - Repository","label":"Test_Repository","description":null,"content_view_versions":[],"filters":[{"content_view_filter_id":8,"content_view_filter_name":"Test - Package Content View Filter","content_view_id":10,"content_view_name":"Test - Content View","last_affected_repo":true}],"last_sync":{"id":"0c110a6a-16e1-487f-a587-0ab648d99eda","username":"admin","started_at":"2023-11-15 - 09:54:33 UTC","ended_at":"2023-11-15 09:54:46 UTC","state":"stopped","result":"success","progress":1.0},"content_view":{"id":9,"name":"Default - Organization View"},"content_view_version":{"id":8,"name":"Default Organization - View 1.0","content_view_id":9},"kt_environment":{"id":4,"name":"Library"},"content_type":"yum","url":"https://repos.fedorapeople.org/pulp/pulp/demo_repos/zoo/","arch":"noarch","os_versions":[],"content_id":"1700042066424","generic_remote_options":null,"major":null,"minor":null,"product":{"id":10,"cp_id":"347380074197","name":"Test + string: ' {"inclusion":false,"original_packages":false,"id":78,"name":"Test + Package Content View Filter","description":null,"created_at":"2024-07-25 07:24:41 + UTC","updated_at":"2024-07-25 07:24:41 UTC","content_view":{"composite":false,"component_ids":[],"duplicate_repositories_to_publish":[],"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":[],"filtered":true,"repository_ids":[20],"id":17,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":10,"organization":{"name":"Test + Organization","label":"Test_Organization","id":10},"created_at":"2024-07-25 + 07:24:40 UTC","updated_at":"2024-07-25 07:24:40 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":20,"name":"Test + Repository","label":"Test_Repository","content_type":"yum","product":{"id":8,"name":"Test + Product"},"content_counts":{"docker_manifest":0,"docker_tag":0,"rpm":32,"package":32,"package_group":2,"erratum":4,"module_stream":0}}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]},"repositories":[{"backend_identifier":"c42d6bfb-3280-4660-9f2c-c76c786fa382","relative_path":"Test_Organization/Library/custom/Test_Product/Test_Repository","container_repository_name":"test_organization-test_product-test_repository","full_path":"https://centos8-stream-katello-nightly.tanso.example.com/pulp/content/Test_Organization/Library/custom/Test_Product/Test_Repository/","library_instance_id":null,"version_href":"/pulp/api/v3/repositories/rpm/rpm/0190e8c6-b36d-7e8e-80f0-a0b6470e39c9/versions/1/","remote_href":"/pulp/api/v3/remotes/rpm/rpm/0190e8c6-b9d8-7aa7-a1d8-f8f81d2e719a/","publication_href":"/pulp/api/v3/publications/rpm/rpm/0190e8c6-d0e6-72f6-84b8-8a095de927df/","content_counts":{"rpm":32,"erratum":4,"package_group":2,"srpm":0,"module_stream":0},"mirroring_policy":"mirror_content_only","id":20,"name":"Test + Repository","label":"Test_Repository","description":null,"content_view_versions":[],"filters":[{"content_view_filter_id":78,"content_view_filter_name":"Test + Package Content View Filter","content_view_id":17,"content_view_name":"Test + Content View","last_affected_repo":true}],"last_sync":{"id":"13c7ce53-a0e4-4a3c-9a5e-27f4671e300d","username":"admin","started_at":"2024-07-25 + 07:24:18 UTC","ended_at":"2024-07-25 07:24:23 UTC","state":"stopped","result":"success","progress":1.0},"content_view":{"id":16,"name":"Default + Organization View"},"content_view_version":{"id":9,"name":"Default Organization + View 1.0","content_view_id":16},"kt_environment":{"id":9,"name":"Library"},"content_type":"yum","url":"https://repos.fedorapeople.org/pulp/pulp/demo_repos/zoo/","arch":"noarch","os_versions":[],"content_id":"1721892254686","generic_remote_options":null,"major":null,"minor":null,"product":{"id":8,"cp_id":"527370220153","name":"Test Product","orphaned":false,"redhat":false,"sync_plan":null},"content_label":"Test_Organization_Test_Product_Test_Repository","last_sync_words":"less than a minute"}],"type":"rpm","rules":[]} @@ -407,7 +407,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '3156' + - '3226' 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''; @@ -421,7 +421,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.1 + - 3.12.0-develop Keep-Alive: - timeout=15, max=94 Strict-Transport-Security: @@ -455,23 +455,23 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: PUT - uri: https://foreman.example.org/katello/api/content_views/10/filters/8 + uri: https://foreman.example.org/katello/api/content_views/17/filters/78 response: body: - string: ' {"inclusion":false,"original_packages":true,"id":8,"name":"Test Package - Content View Filter","description":null,"created_at":"2023-11-15 09:55:10 - UTC","updated_at":"2023-11-15 09:55:11 UTC","content_view":{"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":true,"repository_ids":[18],"id":10,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":5,"organization":{"name":"Test - Organization","label":"Test_Organization","id":5},"created_at":"2023-11-15 - 09:55:08 UTC","updated_at":"2023-11-15 09:55:08 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":18,"name":"Test - Repository","label":"Test_Repository","content_type":"yum","product":{"id":10,"name":"Test - Product"},"content_counts":{"docker_manifest":0,"docker_tag":0,"rpm":32,"package":32,"package_group":2,"erratum":4,"module_stream":0}}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]},"repositories":[{"backend_identifier":"29b3d88f-d4d9-4411-b1db-69f3a9c7df12","relative_path":"Test_Organization/Library/custom/Test_Product/Test_Repository","container_repository_name":null,"full_path":"https://centos8-stream-katello-4-9.tanso.example.com/pulp/content/Test_Organization/Library/custom/Test_Product/Test_Repository/","library_instance_id":null,"version_href":"/pulp/api/v3/repositories/rpm/rpm/00e6944a-841e-4bfe-9416-070861ef58fb/versions/1/","remote_href":"/pulp/api/v3/remotes/rpm/rpm/7e1e16ba-4432-4a52-988e-3da939154cbe/","publication_href":"/pulp/api/v3/publications/rpm/rpm/9695e87f-67d7-4765-9f98-e9a13987baef/","content_counts":{"rpm":32,"erratum":4,"package_group":2,"srpm":0,"module_stream":0},"mirroring_policy":"mirror_content_only","id":18,"name":"Test - Repository","label":"Test_Repository","description":null,"content_view_versions":[],"filters":[{"content_view_filter_id":8,"content_view_filter_name":"Test - Package Content View Filter","content_view_id":10,"content_view_name":"Test - Content View","last_affected_repo":true}],"last_sync":{"id":"0c110a6a-16e1-487f-a587-0ab648d99eda","username":"admin","started_at":"2023-11-15 - 09:54:33 UTC","ended_at":"2023-11-15 09:54:46 UTC","state":"stopped","result":"success","progress":1.0},"content_view":{"id":9,"name":"Default - Organization View"},"content_view_version":{"id":8,"name":"Default Organization - View 1.0","content_view_id":9},"kt_environment":{"id":4,"name":"Library"},"content_type":"yum","url":"https://repos.fedorapeople.org/pulp/pulp/demo_repos/zoo/","arch":"noarch","os_versions":[],"content_id":"1700042066424","generic_remote_options":null,"major":null,"minor":null,"product":{"id":10,"cp_id":"347380074197","name":"Test + string: ' {"inclusion":false,"original_packages":true,"id":78,"name":"Test + Package Content View Filter","description":null,"created_at":"2024-07-25 07:24:41 + UTC","updated_at":"2024-07-25 07:24:43 UTC","content_view":{"composite":false,"component_ids":[],"duplicate_repositories_to_publish":[],"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":[],"filtered":true,"repository_ids":[20],"id":17,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":10,"organization":{"name":"Test + Organization","label":"Test_Organization","id":10},"created_at":"2024-07-25 + 07:24:40 UTC","updated_at":"2024-07-25 07:24:40 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":20,"name":"Test + Repository","label":"Test_Repository","content_type":"yum","product":{"id":8,"name":"Test + Product"},"content_counts":{"docker_manifest":0,"docker_tag":0,"rpm":32,"package":32,"package_group":2,"erratum":4,"module_stream":0}}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]},"repositories":[{"backend_identifier":"c42d6bfb-3280-4660-9f2c-c76c786fa382","relative_path":"Test_Organization/Library/custom/Test_Product/Test_Repository","container_repository_name":"test_organization-test_product-test_repository","full_path":"https://centos8-stream-katello-nightly.tanso.example.com/pulp/content/Test_Organization/Library/custom/Test_Product/Test_Repository/","library_instance_id":null,"version_href":"/pulp/api/v3/repositories/rpm/rpm/0190e8c6-b36d-7e8e-80f0-a0b6470e39c9/versions/1/","remote_href":"/pulp/api/v3/remotes/rpm/rpm/0190e8c6-b9d8-7aa7-a1d8-f8f81d2e719a/","publication_href":"/pulp/api/v3/publications/rpm/rpm/0190e8c6-d0e6-72f6-84b8-8a095de927df/","content_counts":{"rpm":32,"erratum":4,"package_group":2,"srpm":0,"module_stream":0},"mirroring_policy":"mirror_content_only","id":20,"name":"Test + Repository","label":"Test_Repository","description":null,"content_view_versions":[],"filters":[{"content_view_filter_id":78,"content_view_filter_name":"Test + Package Content View Filter","content_view_id":17,"content_view_name":"Test + Content View","last_affected_repo":true}],"last_sync":{"id":"13c7ce53-a0e4-4a3c-9a5e-27f4671e300d","username":"admin","started_at":"2024-07-25 + 07:24:18 UTC","ended_at":"2024-07-25 07:24:23 UTC","state":"stopped","result":"success","progress":1.0},"content_view":{"id":16,"name":"Default + Organization View"},"content_view_version":{"id":9,"name":"Default Organization + View 1.0","content_view_id":16},"kt_environment":{"id":9,"name":"Library"},"content_type":"yum","url":"https://repos.fedorapeople.org/pulp/pulp/demo_repos/zoo/","arch":"noarch","os_versions":[],"content_id":"1721892254686","generic_remote_options":null,"major":null,"minor":null,"product":{"id":8,"cp_id":"527370220153","name":"Test Product","orphaned":false,"redhat":false,"sync_plan":null},"content_label":"Test_Organization_Test_Product_Test_Repository","last_sync_words":"less than a minute"}],"type":"rpm","rules":[]} @@ -482,7 +482,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '3155' + - '3225' 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''; @@ -496,7 +496,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.1 + - 3.12.0-develop Keep-Alive: - timeout=15, max=93 Strict-Transport-Security: diff --git a/tests/test_playbooks/fixtures/content_view_filter-20.yml b/tests/test_playbooks/fixtures/content_view_filter-20.yml index e3ea8a48c..0d04dbd04 100644 --- a/tests/test_playbooks/fixtures/content_view_filter-20.yml +++ b/tests/test_playbooks/fixtures/content_view_filter-20.yml @@ -14,14 +14,14 @@ interactions: uri: https://foreman.example.org/api/status response: body: - string: '{"result":"ok","status":200,"version":"3.7.1","api_version":2}' + string: '{"result":"ok","status":200,"version":"3.12.0-develop","api_version":2}' headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive Content-Length: - - '62' + - '71' 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''; @@ -35,7 +35,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.1 + - 3.12.0-develop Keep-Alive: - timeout=15, max=100 Strict-Transport-Security: @@ -70,8 +70,8 @@ interactions: body: 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-15 - 09:54:22 UTC\",\"updated_at\":\"2023-11-15 09:54:23 UTC\",\"id\":5,\"name\":\"Test + {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\":\"Test_Organization\",\"created_at\":\"2024-07-25 + 07:24:10 UTC\",\"updated_at\":\"2024-07-25 07:24:12 UTC\",\"id\":10,\"name\":\"Test Organization\",\"title\":\"Test Organization\",\"description\":\"A test organization\"}]\n}\n" headers: Cache-Control: @@ -79,7 +79,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '388' + - '389' 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''; @@ -93,7 +93,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.1 + - 3.12.0-develop Keep-Alive: - timeout=15, max=99 Strict-Transport-Security: @@ -123,14 +123,14 @@ 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%22Test+Content+View%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/organizations/10/content_views?search=name%3D%22Test+Content+View%22&per_page=4294967296 response: body: string: '{"total":2,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Content View\"","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":[18],"id":10,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":5,"organization":{"name":"Test - Organization","label":"Test_Organization","id":5},"created_at":"2023-11-15 - 09:55:08 UTC","updated_at":"2023-11-15 09:55:08 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":18,"name":"Test + Content View\"","sort":{"by":"name","order":"asc"},"results":[{"composite":false,"component_ids":[],"duplicate_repositories_to_publish":[],"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":[],"filtered":false,"repository_ids":[20],"id":17,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":10,"organization":{"name":"Test + Organization","label":"Test_Organization","id":10},"created_at":"2024-07-25 + 07:24:40 UTC","updated_at":"2024-07-25 07:24:40 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":20,"name":"Test Repository","label":"Test_Repository","content_type":"yum"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]}]} ' @@ -140,7 +140,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '1050' + - '1070' 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''; @@ -152,9 +152,9 @@ interactions: Foreman_current_location: - ; ANY Foreman_current_organization: - - 5; Test Organization + - 10; Test Organization Foreman_version: - - 3.7.1 + - 3.12.0-develop Keep-Alive: - timeout=15, max=98 Strict-Transport-Security: @@ -184,7 +184,7 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/content_views/10/filters?search=name%3D%22Test+Content+View+Filter+-+modulemd%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/content_views/17/filters?search=name%3D%22Test+Content+View+Filter+-+modulemd%22&per_page=4294967296 response: body: string: '{"total":0,"subtotal":0,"selectable":0,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test @@ -211,7 +211,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.1 + - 3.12.0-develop Keep-Alive: - timeout=15, max=97 Strict-Transport-Security: @@ -246,16 +246,16 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: POST - uri: https://foreman.example.org/katello/api/content_views/10/filters + uri: https://foreman.example.org/katello/api/content_views/17/filters response: body: - string: ' {"inclusion":false,"original_module_streams":false,"id":13,"name":"Test - Content View Filter - modulemd","description":null,"created_at":"2023-11-15 - 09:55:26 UTC","updated_at":"2023-11-15 09:55:26 UTC","content_view":{"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":true,"repository_ids":[18],"id":10,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":5,"organization":{"name":"Test - Organization","label":"Test_Organization","id":5},"created_at":"2023-11-15 - 09:55:08 UTC","updated_at":"2023-11-15 09:55:08 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":18,"name":"Test - Repository","label":"Test_Repository","content_type":"yum","product":{"id":10,"name":"Test + string: ' {"inclusion":false,"original_module_streams":false,"id":83,"name":"Test + Content View Filter - modulemd","description":null,"created_at":"2024-07-25 + 07:24:56 UTC","updated_at":"2024-07-25 07:24:56 UTC","content_view":{"composite":false,"component_ids":[],"duplicate_repositories_to_publish":[],"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":[],"filtered":true,"repository_ids":[20],"id":17,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":10,"organization":{"name":"Test + Organization","label":"Test_Organization","id":10},"created_at":"2024-07-25 + 07:24:40 UTC","updated_at":"2024-07-25 07:24:40 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":20,"name":"Test + Repository","label":"Test_Repository","content_type":"yum","product":{"id":8,"name":"Test Product"},"content_counts":{"docker_manifest":0,"docker_tag":0,"rpm":32,"package":32,"package_group":2,"erratum":4,"module_stream":0}}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]},"repositories":[],"type":"modulemd","rules":[]} ' @@ -265,7 +265,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '1310' + - '1329' 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''; @@ -279,7 +279,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.1 + - 3.12.0-develop Keep-Alive: - timeout=15, max=96 Strict-Transport-Security: diff --git a/tests/test_playbooks/fixtures/content_view_filter-21.yml b/tests/test_playbooks/fixtures/content_view_filter-21.yml index 09268d1f7..2394d5c60 100644 --- a/tests/test_playbooks/fixtures/content_view_filter-21.yml +++ b/tests/test_playbooks/fixtures/content_view_filter-21.yml @@ -14,14 +14,14 @@ interactions: uri: https://foreman.example.org/api/status response: body: - string: '{"result":"ok","status":200,"version":"3.7.1","api_version":2}' + string: '{"result":"ok","status":200,"version":"3.12.0-develop","api_version":2}' headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive Content-Length: - - '62' + - '71' 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''; @@ -35,7 +35,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.1 + - 3.12.0-develop Keep-Alive: - timeout=15, max=100 Strict-Transport-Security: @@ -70,8 +70,8 @@ interactions: body: 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-15 - 09:54:22 UTC\",\"updated_at\":\"2023-11-15 09:54:23 UTC\",\"id\":5,\"name\":\"Test + {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\":\"Test_Organization\",\"created_at\":\"2024-07-25 + 07:24:10 UTC\",\"updated_at\":\"2024-07-25 07:24:12 UTC\",\"id\":10,\"name\":\"Test Organization\",\"title\":\"Test Organization\",\"description\":\"A test organization\"}]\n}\n" headers: Cache-Control: @@ -79,7 +79,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '388' + - '389' 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''; @@ -93,7 +93,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.1 + - 3.12.0-develop Keep-Alive: - timeout=15, max=99 Strict-Transport-Security: @@ -123,14 +123,14 @@ 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%22Test+Content+View%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/organizations/10/content_views?search=name%3D%22Test+Content+View%22&per_page=4294967296 response: body: string: '{"total":2,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Content View\"","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":true,"repository_ids":[18],"id":10,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":5,"organization":{"name":"Test - Organization","label":"Test_Organization","id":5},"created_at":"2023-11-15 - 09:55:08 UTC","updated_at":"2023-11-15 09:55:08 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":18,"name":"Test + Content View\"","sort":{"by":"name","order":"asc"},"results":[{"composite":false,"component_ids":[],"duplicate_repositories_to_publish":[],"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":[],"filtered":true,"repository_ids":[20],"id":17,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":10,"organization":{"name":"Test + Organization","label":"Test_Organization","id":10},"created_at":"2024-07-25 + 07:24:40 UTC","updated_at":"2024-07-25 07:24:40 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":20,"name":"Test Repository","label":"Test_Repository","content_type":"yum"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]}]} ' @@ -140,7 +140,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '1049' + - '1069' 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''; @@ -152,9 +152,9 @@ interactions: Foreman_current_location: - ; ANY Foreman_current_organization: - - 5; Test Organization + - 10; Test Organization Foreman_version: - - 3.7.1 + - 3.12.0-develop Keep-Alive: - timeout=15, max=98 Strict-Transport-Security: @@ -184,16 +184,16 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/content_views/10/filters?search=name%3D%22Test+Content+View+Filter+-+modulemd%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/content_views/17/filters?search=name%3D%22Test+Content+View+Filter+-+modulemd%22&per_page=4294967296 response: body: string: '{"total":1,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Content View Filter - modulemd\"","sort":{"by":"name","order":"asc"},"results":[{"inclusion":false,"id":13,"name":"Test - Content View Filter - modulemd","description":null,"created_at":"2023-11-15 - 09:55:26 UTC","updated_at":"2023-11-15 09:55:26 UTC","content_view":{"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":true,"repository_ids":[18],"id":10,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":5,"organization":{"name":"Test - Organization","label":"Test_Organization","id":5},"created_at":"2023-11-15 - 09:55:08 UTC","updated_at":"2023-11-15 09:55:08 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":18,"name":"Test + Content View Filter - modulemd\"","sort":{"by":"name","order":"asc"},"results":[{"inclusion":false,"id":83,"name":"Test + Content View Filter - modulemd","description":null,"created_at":"2024-07-25 + 07:24:56 UTC","updated_at":"2024-07-25 07:24:56 UTC","content_view":{"composite":false,"component_ids":[],"duplicate_repositories_to_publish":[],"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":[],"filtered":true,"repository_ids":[20],"id":17,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":10,"organization":{"name":"Test + Organization","label":"Test_Organization","id":10},"created_at":"2024-07-25 + 07:24:40 UTC","updated_at":"2024-07-25 07:24:40 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":20,"name":"Test Repository","label":"Test_Repository","content_type":"yum"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]},"repositories":[],"type":"modulemd","rules":[]}]} ' @@ -203,7 +203,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '1299' + - '1319' 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''; @@ -217,7 +217,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.1 + - 3.12.0-develop Keep-Alive: - timeout=15, max=97 Strict-Transport-Security: @@ -247,16 +247,16 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/content_views/10/filters/13 + uri: https://foreman.example.org/katello/api/content_views/17/filters/83 response: body: - string: ' {"inclusion":false,"original_module_streams":false,"id":13,"name":"Test - Content View Filter - modulemd","description":null,"created_at":"2023-11-15 - 09:55:26 UTC","updated_at":"2023-11-15 09:55:26 UTC","content_view":{"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":true,"repository_ids":[18],"id":10,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":5,"organization":{"name":"Test - Organization","label":"Test_Organization","id":5},"created_at":"2023-11-15 - 09:55:08 UTC","updated_at":"2023-11-15 09:55:08 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":18,"name":"Test - Repository","label":"Test_Repository","content_type":"yum","product":{"id":10,"name":"Test + string: ' {"inclusion":false,"original_module_streams":false,"id":83,"name":"Test + Content View Filter - modulemd","description":null,"created_at":"2024-07-25 + 07:24:56 UTC","updated_at":"2024-07-25 07:24:56 UTC","content_view":{"composite":false,"component_ids":[],"duplicate_repositories_to_publish":[],"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":[],"filtered":true,"repository_ids":[20],"id":17,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":10,"organization":{"name":"Test + Organization","label":"Test_Organization","id":10},"created_at":"2024-07-25 + 07:24:40 UTC","updated_at":"2024-07-25 07:24:40 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":20,"name":"Test + Repository","label":"Test_Repository","content_type":"yum","product":{"id":8,"name":"Test Product"},"content_counts":{"docker_manifest":0,"docker_tag":0,"rpm":32,"package":32,"package_group":2,"erratum":4,"module_stream":0}}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]},"repositories":[],"type":"modulemd","rules":[]} ' @@ -266,7 +266,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '1310' + - '1329' 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''; @@ -280,7 +280,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.1 + - 3.12.0-develop Keep-Alive: - timeout=15, max=96 Strict-Transport-Security: diff --git a/tests/test_playbooks/fixtures/content_view_filter-22.yml b/tests/test_playbooks/fixtures/content_view_filter-22.yml index 51d44b2d1..39c71183b 100644 --- a/tests/test_playbooks/fixtures/content_view_filter-22.yml +++ b/tests/test_playbooks/fixtures/content_view_filter-22.yml @@ -14,14 +14,14 @@ interactions: uri: https://foreman.example.org/api/status response: body: - string: '{"result":"ok","status":200,"version":"3.7.1","api_version":2}' + string: '{"result":"ok","status":200,"version":"3.12.0-develop","api_version":2}' headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive Content-Length: - - '62' + - '71' 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''; @@ -35,7 +35,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.1 + - 3.12.0-develop Keep-Alive: - timeout=15, max=100 Strict-Transport-Security: @@ -70,8 +70,8 @@ interactions: body: 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-15 - 09:54:22 UTC\",\"updated_at\":\"2023-11-15 09:54:23 UTC\",\"id\":5,\"name\":\"Test + {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\":\"Test_Organization\",\"created_at\":\"2024-07-25 + 07:24:10 UTC\",\"updated_at\":\"2024-07-25 07:24:12 UTC\",\"id\":10,\"name\":\"Test Organization\",\"title\":\"Test Organization\",\"description\":\"A test organization\"}]\n}\n" headers: Cache-Control: @@ -79,7 +79,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '388' + - '389' 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''; @@ -93,7 +93,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.1 + - 3.12.0-develop Keep-Alive: - timeout=15, max=99 Strict-Transport-Security: @@ -123,14 +123,14 @@ 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%22Test+Content+View%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/organizations/10/content_views?search=name%3D%22Test+Content+View%22&per_page=4294967296 response: body: string: '{"total":2,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Content View\"","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":true,"repository_ids":[18],"id":10,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":5,"organization":{"name":"Test - Organization","label":"Test_Organization","id":5},"created_at":"2023-11-15 - 09:55:08 UTC","updated_at":"2023-11-15 09:55:08 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":18,"name":"Test + Content View\"","sort":{"by":"name","order":"asc"},"results":[{"composite":false,"component_ids":[],"duplicate_repositories_to_publish":[],"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":[],"filtered":true,"repository_ids":[20],"id":17,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":10,"organization":{"name":"Test + Organization","label":"Test_Organization","id":10},"created_at":"2024-07-25 + 07:24:40 UTC","updated_at":"2024-07-25 07:24:40 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":20,"name":"Test Repository","label":"Test_Repository","content_type":"yum"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]}]} ' @@ -140,7 +140,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '1049' + - '1069' 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''; @@ -152,9 +152,9 @@ interactions: Foreman_current_location: - ; ANY Foreman_current_organization: - - 5; Test Organization + - 10; Test Organization Foreman_version: - - 3.7.1 + - 3.12.0-develop Keep-Alive: - timeout=15, max=98 Strict-Transport-Security: @@ -184,16 +184,16 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/content_views/10/filters?search=name%3D%22Test+Content+View+Filter+-+modulemd%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/content_views/17/filters?search=name%3D%22Test+Content+View+Filter+-+modulemd%22&per_page=4294967296 response: body: string: '{"total":1,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Content View Filter - modulemd\"","sort":{"by":"name","order":"asc"},"results":[{"inclusion":false,"id":13,"name":"Test - Content View Filter - modulemd","description":null,"created_at":"2023-11-15 - 09:55:26 UTC","updated_at":"2023-11-15 09:55:26 UTC","content_view":{"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":true,"repository_ids":[18],"id":10,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":5,"organization":{"name":"Test - Organization","label":"Test_Organization","id":5},"created_at":"2023-11-15 - 09:55:08 UTC","updated_at":"2023-11-15 09:55:08 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":18,"name":"Test + Content View Filter - modulemd\"","sort":{"by":"name","order":"asc"},"results":[{"inclusion":false,"id":83,"name":"Test + Content View Filter - modulemd","description":null,"created_at":"2024-07-25 + 07:24:56 UTC","updated_at":"2024-07-25 07:24:56 UTC","content_view":{"composite":false,"component_ids":[],"duplicate_repositories_to_publish":[],"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":[],"filtered":true,"repository_ids":[20],"id":17,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":10,"organization":{"name":"Test + Organization","label":"Test_Organization","id":10},"created_at":"2024-07-25 + 07:24:40 UTC","updated_at":"2024-07-25 07:24:40 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":20,"name":"Test Repository","label":"Test_Repository","content_type":"yum"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]},"repositories":[],"type":"modulemd","rules":[]}]} ' @@ -203,7 +203,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '1299' + - '1319' 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''; @@ -217,7 +217,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.1 + - 3.12.0-develop Keep-Alive: - timeout=15, max=97 Strict-Transport-Security: @@ -235,69 +235,6 @@ 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/content_views/10/filters/13 - response: - body: - string: ' {"inclusion":false,"original_module_streams":false,"id":13,"name":"Test - Content View Filter - modulemd","description":null,"created_at":"2023-11-15 - 09:55:26 UTC","updated_at":"2023-11-15 09:55:26 UTC","content_view":{"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":true,"repository_ids":[18],"id":10,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":5,"organization":{"name":"Test - Organization","label":"Test_Organization","id":5},"created_at":"2023-11-15 - 09:55:08 UTC","updated_at":"2023-11-15 09:55:08 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":18,"name":"Test - Repository","label":"Test_Repository","content_type":"yum","product":{"id":10,"name":"Test - Product"},"content_counts":{"docker_manifest":0,"docker_tag":0,"rpm":32,"package":32,"package_group":2,"erratum":4,"module_stream":0}}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]},"repositories":[],"type":"modulemd","rules":[]} - - ' - headers: - Cache-Control: - - max-age=0, private, must-revalidate - Connection: - - Keep-Alive - Content-Length: - - '1310' - 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=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: null headers: @@ -312,16 +249,16 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: DELETE - uri: https://foreman.example.org/katello/api/content_views/10/filters/13 + uri: https://foreman.example.org/katello/api/content_views/17/filters/83 response: body: - string: ' {"inclusion":false,"original_module_streams":false,"id":13,"name":"Test - Content View Filter - modulemd","description":null,"created_at":"2023-11-15 - 09:55:26 UTC","updated_at":"2023-11-15 09:55:26 UTC","content_view":{"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":[18],"id":10,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":5,"organization":{"name":"Test - Organization","label":"Test_Organization","id":5},"created_at":"2023-11-15 - 09:55:08 UTC","updated_at":"2023-11-15 09:55:08 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":18,"name":"Test - Repository","label":"Test_Repository","content_type":"yum","product":{"id":10,"name":"Test + string: ' {"inclusion":false,"original_module_streams":false,"id":83,"name":"Test + Content View Filter - modulemd","description":null,"created_at":"2024-07-25 + 07:24:56 UTC","updated_at":"2024-07-25 07:24:56 UTC","content_view":{"composite":false,"component_ids":[],"duplicate_repositories_to_publish":[],"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":[],"filtered":false,"repository_ids":[20],"id":17,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":10,"organization":{"name":"Test + Organization","label":"Test_Organization","id":10},"created_at":"2024-07-25 + 07:24:40 UTC","updated_at":"2024-07-25 07:24:40 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":20,"name":"Test + Repository","label":"Test_Repository","content_type":"yum","product":{"id":8,"name":"Test Product"},"content_counts":{"docker_manifest":0,"docker_tag":0,"rpm":32,"package":32,"package_group":2,"erratum":4,"module_stream":0}}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]},"repositories":[],"type":"modulemd","rules":[]} ' @@ -331,7 +268,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '1311' + - '1330' 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''; @@ -345,9 +282,9 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.1 + - 3.12.0-develop Keep-Alive: - - timeout=15, max=95 + - timeout=15, max=96 Strict-Transport-Security: - max-age=631139040; includeSubdomains X-Content-Type-Options: diff --git a/tests/test_playbooks/fixtures/content_view_filter-26.yml b/tests/test_playbooks/fixtures/content_view_filter-26.yml deleted file mode 100644 index e9042ad32..000000000 --- a/tests/test_playbooks/fixtures/content_view_filter-26.yml +++ /dev/null @@ -1,505 +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: '{"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: - - '62' - 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=100 - 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?search=name%3D%22Test+Organization%22&per_page=4294967296 - response: - body: - 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-15 - 09:54:22 UTC\",\"updated_at\":\"2023-11-15 09:54:23 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-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''; - 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=99 - 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/5/content_views?search=name%3D%22Test+Content+View%22&per_page=4294967296 - response: - body: - string: '{"total":2,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Content View\"","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":true,"repository_ids":[18],"id":10,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":5,"organization":{"name":"Test - Organization","label":"Test_Organization","id":5},"created_at":"2023-11-15 - 09:55:08 UTC","updated_at":"2023-11-15 09:55:08 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":18,"name":"Test - Repository","label":"Test_Repository","content_type":"yum"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]}]} - - ' - headers: - Cache-Control: - - max-age=0, private, must-revalidate - Connection: - - Keep-Alive - Content-Length: - - '1049' - 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.1 - Keep-Alive: - - timeout=15, max=98 - 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/5/products?search=name%3D%22Test+Product%22&per_page=4294967296 - response: - body: - string: '{"total":1,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Product\"","sort":{"by":"name","order":"asc"},"results":[{"id":10,"cp_id":"347380074197","name":"Test - Product","label":"Test_Product","description":"A happy little test product","provider_id":7,"sync_plan_id":null,"sync_summary":{"success":3},"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-15 09:54:59 UTC","last_sync_words":"1 minute","organization_id":5,"organization":{"name":"Test - Organization","label":"Test_Organization","id":5},"sync_plan":null,"repository_count":3}]} - - ' - headers: - Cache-Control: - - max-age=0, private, must-revalidate - Connection: - - Keep-Alive - Content-Length: - - '681' - 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.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/products/10/repositories?search=name%3D%22Test+Repository%22&per_page=4294967296 - response: - body: - string: '{"total":3,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Repository\"","sort":{"by":"name","order":"asc"},"results":[{"backend_identifier":"29b3d88f-d4d9-4411-b1db-69f3a9c7df12","relative_path":"Test_Organization/Library/custom/Test_Product/Test_Repository","container_repository_name":null,"full_path":"https://centos8-stream-katello-4-9.tanso.example.com/pulp/content/Test_Organization/Library/custom/Test_Product/Test_Repository/","library_instance_id":null,"version_href":"/pulp/api/v3/repositories/rpm/rpm/00e6944a-841e-4bfe-9416-070861ef58fb/versions/1/","remote_href":"/pulp/api/v3/remotes/rpm/rpm/7e1e16ba-4432-4a52-988e-3da939154cbe/","publication_href":"/pulp/api/v3/publications/rpm/rpm/9695e87f-67d7-4765-9f98-e9a13987baef/","content_counts":{"rpm":32,"erratum":4,"package_group":2,"srpm":0,"module_stream":0},"mirroring_policy":"mirror_content_only","id":18,"name":"Test - Repository","label":"Test_Repository","description":null,"content_view_versions":[],"filters":[{"content_view_filter_id":14,"content_view_filter_name":"Test - Deb Content View Filter","content_view_id":10,"content_view_name":"Test Content - View","last_affected_repo":true}],"last_sync":{"id":"0c110a6a-16e1-487f-a587-0ab648d99eda","username":"admin","started_at":"2023-11-15 - 09:54:33 UTC","ended_at":"2023-11-15 09:54:46 UTC","state":"stopped","result":"success","progress":1.0},"content_view":{"id":9,"name":"Default - Organization View"},"content_view_version":{"id":8,"name":"Default Organization - View 1.0","content_view_id":9},"kt_environment":{"id":4,"name":"Library"},"content_type":"yum","url":"https://repos.fedorapeople.org/pulp/pulp/demo_repos/zoo/","arch":"noarch","os_versions":[],"content_id":"1700042066424","generic_remote_options":null,"major":null,"minor":null,"product":{"id":10,"cp_id":"347380074197","name":"Test - Product","orphaned":false,"redhat":false,"sync_plan":null},"content_label":"Test_Organization_Test_Product_Test_Repository","last_sync_words":"1 - minute"}],"org_repository_count":3} - - ' - headers: - Cache-Control: - - max-age=0, private, must-revalidate - Connection: - - Keep-Alive - Content-Length: - - '2043' - 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=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: 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_views/10/filters?search=name%3D%22Test+Deb+Content+View+Filter%22&per_page=4294967296 - response: - body: - string: '{"total":1,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Deb Content View Filter\"","sort":{"by":"name","order":"asc"},"results":[{"inclusion":true,"id":14,"name":"Test - Deb Content View Filter","description":null,"created_at":"2023-11-15 09:55:28 - UTC","updated_at":"2023-11-15 09:55:30 UTC","content_view":{"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":true,"repository_ids":[18],"id":10,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":5,"organization":{"name":"Test - Organization","label":"Test_Organization","id":5},"created_at":"2023-11-15 - 09:55:08 UTC","updated_at":"2023-11-15 09:55:08 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":18,"name":"Test - Repository","label":"Test_Repository","content_type":"yum"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]},"repositories":[{"backend_identifier":"29b3d88f-d4d9-4411-b1db-69f3a9c7df12","relative_path":"Test_Organization/Library/custom/Test_Product/Test_Repository","container_repository_name":null,"full_path":"https://centos8-stream-katello-4-9.tanso.example.com/pulp/content/Test_Organization/Library/custom/Test_Product/Test_Repository/","library_instance_id":null,"version_href":"/pulp/api/v3/repositories/rpm/rpm/00e6944a-841e-4bfe-9416-070861ef58fb/versions/1/","remote_href":"/pulp/api/v3/remotes/rpm/rpm/7e1e16ba-4432-4a52-988e-3da939154cbe/","publication_href":"/pulp/api/v3/publications/rpm/rpm/9695e87f-67d7-4765-9f98-e9a13987baef/","content_counts":{"rpm":32,"erratum":4,"package_group":2,"srpm":0,"module_stream":0},"mirroring_policy":"mirror_content_only","id":18,"name":"Test - Repository","label":"Test_Repository","description":null,"content_view_versions":[],"filters":[{"content_view_filter_id":14,"content_view_filter_name":"Test - Deb Content View Filter","content_view_id":10,"content_view_name":"Test Content - View","last_affected_repo":true}],"last_sync":{"id":"0c110a6a-16e1-487f-a587-0ab648d99eda","username":"admin","started_at":"2023-11-15 - 09:54:33 UTC","ended_at":"2023-11-15 09:54:46 UTC","state":"stopped","result":"success","progress":1.0},"content_view":{"id":9,"name":"Default - Organization View"},"content_view_version":{"id":8,"name":"Default Organization - View 1.0","content_view_id":9},"kt_environment":{"id":4,"name":"Library"},"content_type":"yum","url":"https://repos.fedorapeople.org/pulp/pulp/demo_repos/zoo/","arch":"noarch","os_versions":[],"content_id":"1700042066424","generic_remote_options":null,"major":null,"minor":null,"product":{"id":10,"cp_id":"347380074197","name":"Test - Product","orphaned":false,"redhat":false,"sync_plan":null},"content_label":"Test_Organization_Test_Product_Test_Repository","last_sync_words":"1 - minute"}],"type":"deb","rules":[]}]} - - ' - headers: - Cache-Control: - - max-age=0, private, must-revalidate - Connection: - - Keep-Alive - Content-Length: - - '3127' - 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/katello/api/content_views/10/filters/14 - response: - body: - string: ' {"inclusion":true,"id":14,"name":"Test Deb Content View Filter","description":null,"created_at":"2023-11-15 - 09:55:28 UTC","updated_at":"2023-11-15 09:55:30 UTC","content_view":{"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":true,"repository_ids":[18],"id":10,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":5,"organization":{"name":"Test - Organization","label":"Test_Organization","id":5},"created_at":"2023-11-15 - 09:55:08 UTC","updated_at":"2023-11-15 09:55:08 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":18,"name":"Test - Repository","label":"Test_Repository","content_type":"yum","product":{"id":10,"name":"Test - Product"},"content_counts":{"docker_manifest":0,"docker_tag":0,"rpm":32,"package":32,"package_group":2,"erratum":4,"module_stream":0}}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]},"repositories":[{"backend_identifier":"29b3d88f-d4d9-4411-b1db-69f3a9c7df12","relative_path":"Test_Organization/Library/custom/Test_Product/Test_Repository","container_repository_name":null,"full_path":"https://centos8-stream-katello-4-9.tanso.example.com/pulp/content/Test_Organization/Library/custom/Test_Product/Test_Repository/","library_instance_id":null,"version_href":"/pulp/api/v3/repositories/rpm/rpm/00e6944a-841e-4bfe-9416-070861ef58fb/versions/1/","remote_href":"/pulp/api/v3/remotes/rpm/rpm/7e1e16ba-4432-4a52-988e-3da939154cbe/","publication_href":"/pulp/api/v3/publications/rpm/rpm/9695e87f-67d7-4765-9f98-e9a13987baef/","content_counts":{"rpm":32,"erratum":4,"package_group":2,"srpm":0,"module_stream":0},"mirroring_policy":"mirror_content_only","id":18,"name":"Test - Repository","label":"Test_Repository","description":null,"content_view_versions":[],"filters":[{"content_view_filter_id":14,"content_view_filter_name":"Test - Deb Content View Filter","content_view_id":10,"content_view_name":"Test Content - View","last_affected_repo":true}],"last_sync":{"id":"0c110a6a-16e1-487f-a587-0ab648d99eda","username":"admin","started_at":"2023-11-15 - 09:54:33 UTC","ended_at":"2023-11-15 09:54:46 UTC","state":"stopped","result":"success","progress":1.0},"content_view":{"id":9,"name":"Default - Organization View"},"content_view_version":{"id":8,"name":"Default Organization - View 1.0","content_view_id":9},"kt_environment":{"id":4,"name":"Library"},"content_type":"yum","url":"https://repos.fedorapeople.org/pulp/pulp/demo_repos/zoo/","arch":"noarch","os_versions":[],"content_id":"1700042066424","generic_remote_options":null,"major":null,"minor":null,"product":{"id":10,"cp_id":"347380074197","name":"Test - Product","orphaned":false,"redhat":false,"sync_plan":null},"content_label":"Test_Organization_Test_Product_Test_Repository","last_sync_words":"1 - minute"}],"type":"deb","rules":[]} - - ' - headers: - Cache-Control: - - max-age=0, private, must-revalidate - Connection: - - Keep-Alive - Content-Length: - - '3113' - 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 -- request: - body: null - headers: - Accept: - - application/json;version=2 - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '0' - User-Agent: - - apypie (https://github.com/Apipie/apypie) - method: DELETE - uri: https://foreman.example.org/katello/api/content_views/10/filters/14 - response: - body: - string: ' {"inclusion":true,"id":14,"name":"Test Deb Content View Filter","description":null,"created_at":"2023-11-15 - 09:55:28 UTC","updated_at":"2023-11-15 09:55:30 UTC","content_view":{"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":[18],"id":10,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":5,"organization":{"name":"Test - Organization","label":"Test_Organization","id":5},"created_at":"2023-11-15 - 09:55:08 UTC","updated_at":"2023-11-15 09:55:08 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":18,"name":"Test - Repository","label":"Test_Repository","content_type":"yum","product":{"id":10,"name":"Test - Product"},"content_counts":{"docker_manifest":0,"docker_tag":0,"rpm":32,"package":32,"package_group":2,"erratum":4,"module_stream":0}}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]},"repositories":[],"type":"deb","rules":[]} - - ' - headers: - Cache-Control: - - max-age=0, private, must-revalidate - Connection: - - Keep-Alive - Content-Length: - - '1266' - 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=93 - 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/content_view_filter-3.yml b/tests/test_playbooks/fixtures/content_view_filter-3.yml index cc1ff58f3..84b75cf08 100644 --- a/tests/test_playbooks/fixtures/content_view_filter-3.yml +++ b/tests/test_playbooks/fixtures/content_view_filter-3.yml @@ -14,14 +14,14 @@ interactions: uri: https://foreman.example.org/api/status response: body: - string: '{"result":"ok","status":200,"version":"3.7.1","api_version":2}' + string: '{"result":"ok","status":200,"version":"3.12.0-develop","api_version":2}' headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive Content-Length: - - '62' + - '71' 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''; @@ -35,7 +35,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.1 + - 3.12.0-develop Keep-Alive: - timeout=15, max=100 Strict-Transport-Security: @@ -70,8 +70,8 @@ interactions: body: 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-15 - 09:54:22 UTC\",\"updated_at\":\"2023-11-15 09:54:23 UTC\",\"id\":5,\"name\":\"Test + {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\":\"Test_Organization\",\"created_at\":\"2024-07-25 + 07:24:10 UTC\",\"updated_at\":\"2024-07-25 07:24:12 UTC\",\"id\":10,\"name\":\"Test Organization\",\"title\":\"Test Organization\",\"description\":\"A test organization\"}]\n}\n" headers: Cache-Control: @@ -79,7 +79,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '388' + - '389' 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''; @@ -93,7 +93,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.1 + - 3.12.0-develop Keep-Alive: - timeout=15, max=99 Strict-Transport-Security: @@ -123,14 +123,14 @@ 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%22Test+Content+View%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/organizations/10/content_views?search=name%3D%22Test+Content+View%22&per_page=4294967296 response: body: string: '{"total":2,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Content View\"","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":true,"repository_ids":[18],"id":10,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":5,"organization":{"name":"Test - Organization","label":"Test_Organization","id":5},"created_at":"2023-11-15 - 09:55:08 UTC","updated_at":"2023-11-15 09:55:08 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":18,"name":"Test + Content View\"","sort":{"by":"name","order":"asc"},"results":[{"composite":false,"component_ids":[],"duplicate_repositories_to_publish":[],"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":[],"filtered":true,"repository_ids":[20],"id":17,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":10,"organization":{"name":"Test + Organization","label":"Test_Organization","id":10},"created_at":"2024-07-25 + 07:24:40 UTC","updated_at":"2024-07-25 07:24:40 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":20,"name":"Test Repository","label":"Test_Repository","content_type":"yum"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]}]} ' @@ -140,7 +140,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '1049' + - '1069' 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''; @@ -152,9 +152,9 @@ interactions: Foreman_current_location: - ; ANY Foreman_current_organization: - - 5; Test Organization + - 10; Test Organization Foreman_version: - - 3.7.1 + - 3.12.0-develop Keep-Alive: - timeout=15, max=98 Strict-Transport-Security: @@ -184,14 +184,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%22Test+Product%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/organizations/10/products?search=name%3D%22Test+Product%22&per_page=4294967296 response: body: string: '{"total":1,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Product\"","sort":{"by":"name","order":"asc"},"results":[{"id":10,"cp_id":"347380074197","name":"Test - Product","label":"Test_Product","description":"A happy little test product","provider_id":7,"sync_plan_id":null,"sync_summary":{"success":3},"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-15 09:54:59 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":3}]} + Product\"","sort":{"by":"name","order":"asc"},"results":[{"id":8,"cp_id":"527370220153","name":"Test + Product","label":"Test_Product","description":"A happy little test product","provider_id":17,"sync_plan_id":null,"sync_summary":{"success":2},"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":"2024-07-25 07:24:35 UTC","last_sync_words":"less than + a minute","organization_id":10,"organization":{"name":"Test Organization","label":"Test_Organization","id":10},"sync_plan":null,"repository_count":2}]} ' headers: @@ -200,7 +200,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '691' + - '693' 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''; @@ -212,9 +212,9 @@ interactions: Foreman_current_location: - ; ANY Foreman_current_organization: - - 5; Test Organization + - 10; Test Organization Foreman_version: - - 3.7.1 + - 3.12.0-develop Keep-Alive: - timeout=15, max=97 Strict-Transport-Security: @@ -244,19 +244,19 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/products/10/repositories?search=name%3D%22Test+Repository%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/products/8/repositories?search=name%3D%22Test+Repository%22&per_page=4294967296 response: body: - string: '{"total":3,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Repository\"","sort":{"by":"name","order":"asc"},"results":[{"backend_identifier":"29b3d88f-d4d9-4411-b1db-69f3a9c7df12","relative_path":"Test_Organization/Library/custom/Test_Product/Test_Repository","container_repository_name":null,"full_path":"https://centos8-stream-katello-4-9.tanso.example.com/pulp/content/Test_Organization/Library/custom/Test_Product/Test_Repository/","library_instance_id":null,"version_href":"/pulp/api/v3/repositories/rpm/rpm/00e6944a-841e-4bfe-9416-070861ef58fb/versions/1/","remote_href":"/pulp/api/v3/remotes/rpm/rpm/7e1e16ba-4432-4a52-988e-3da939154cbe/","publication_href":"/pulp/api/v3/publications/rpm/rpm/9695e87f-67d7-4765-9f98-e9a13987baef/","content_counts":{"rpm":32,"erratum":4,"package_group":2,"srpm":0,"module_stream":0},"mirroring_policy":"mirror_content_only","id":18,"name":"Test - Repository","label":"Test_Repository","description":null,"content_view_versions":[],"filters":[{"content_view_filter_id":8,"content_view_filter_name":"Test - Package Content View Filter","content_view_id":10,"content_view_name":"Test - Content View","last_affected_repo":true}],"last_sync":{"id":"0c110a6a-16e1-487f-a587-0ab648d99eda","username":"admin","started_at":"2023-11-15 - 09:54:33 UTC","ended_at":"2023-11-15 09:54:46 UTC","state":"stopped","result":"success","progress":1.0},"content_view":{"id":9,"name":"Default - Organization View"},"content_view_version":{"id":8,"name":"Default Organization - View 1.0","content_view_id":9},"kt_environment":{"id":4,"name":"Library"},"content_type":"yum","url":"https://repos.fedorapeople.org/pulp/pulp/demo_repos/zoo/","arch":"noarch","os_versions":[],"content_id":"1700042066424","generic_remote_options":null,"major":null,"minor":null,"product":{"id":10,"cp_id":"347380074197","name":"Test + string: '{"total":2,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test + Repository\"","sort":{"by":"name","order":"asc"},"results":[{"backend_identifier":"c42d6bfb-3280-4660-9f2c-c76c786fa382","relative_path":"Test_Organization/Library/custom/Test_Product/Test_Repository","container_repository_name":"test_organization-test_product-test_repository","full_path":"https://centos8-stream-katello-nightly.tanso.example.com/pulp/content/Test_Organization/Library/custom/Test_Product/Test_Repository/","library_instance_id":null,"version_href":"/pulp/api/v3/repositories/rpm/rpm/0190e8c6-b36d-7e8e-80f0-a0b6470e39c9/versions/1/","remote_href":"/pulp/api/v3/remotes/rpm/rpm/0190e8c6-b9d8-7aa7-a1d8-f8f81d2e719a/","publication_href":"/pulp/api/v3/publications/rpm/rpm/0190e8c6-d0e6-72f6-84b8-8a095de927df/","content_counts":{"rpm":32,"erratum":4,"package_group":2,"srpm":0,"module_stream":0},"mirroring_policy":"mirror_content_only","id":20,"name":"Test + Repository","label":"Test_Repository","description":null,"content_view_versions":[],"filters":[{"content_view_filter_id":78,"content_view_filter_name":"Test + Package Content View Filter","content_view_id":17,"content_view_name":"Test + Content View","last_affected_repo":true}],"last_sync":{"id":"13c7ce53-a0e4-4a3c-9a5e-27f4671e300d","username":"admin","started_at":"2024-07-25 + 07:24:18 UTC","ended_at":"2024-07-25 07:24:23 UTC","state":"stopped","result":"success","progress":1.0},"content_view":{"id":16,"name":"Default + Organization View"},"content_view_version":{"id":9,"name":"Default Organization + View 1.0","content_view_id":16},"kt_environment":{"id":9,"name":"Library"},"content_type":"yum","url":"https://repos.fedorapeople.org/pulp/pulp/demo_repos/zoo/","arch":"noarch","os_versions":[],"content_id":"1721892254686","generic_remote_options":null,"major":null,"minor":null,"product":{"id":8,"cp_id":"527370220153","name":"Test Product","orphaned":false,"redhat":false,"sync_plan":null},"content_label":"Test_Organization_Test_Product_Test_Repository","last_sync_words":"less - than a minute"}],"org_repository_count":3} + than a minute"}],"org_repository_count":2} ' headers: @@ -265,7 +265,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '2056' + - '2106' 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''; @@ -279,7 +279,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.1 + - 3.12.0-develop Keep-Alive: - timeout=15, max=96 Strict-Transport-Security: @@ -309,23 +309,23 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/content_views/10/filters?search=name%3D%22Test+Package+Content+View+Filter%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/content_views/17/filters?search=name%3D%22Test+Package+Content+View+Filter%22&per_page=4294967296 response: body: string: '{"total":1,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Package Content View Filter\"","sort":{"by":"name","order":"asc"},"results":[{"inclusion":false,"id":8,"name":"Test - Package Content View Filter","description":null,"created_at":"2023-11-15 09:55:10 - UTC","updated_at":"2023-11-15 09:55:11 UTC","content_view":{"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":true,"repository_ids":[18],"id":10,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":5,"organization":{"name":"Test - Organization","label":"Test_Organization","id":5},"created_at":"2023-11-15 - 09:55:08 UTC","updated_at":"2023-11-15 09:55:08 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":18,"name":"Test - Repository","label":"Test_Repository","content_type":"yum"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]},"repositories":[{"backend_identifier":"29b3d88f-d4d9-4411-b1db-69f3a9c7df12","relative_path":"Test_Organization/Library/custom/Test_Product/Test_Repository","container_repository_name":null,"full_path":"https://centos8-stream-katello-4-9.tanso.example.com/pulp/content/Test_Organization/Library/custom/Test_Product/Test_Repository/","library_instance_id":null,"version_href":"/pulp/api/v3/repositories/rpm/rpm/00e6944a-841e-4bfe-9416-070861ef58fb/versions/1/","remote_href":"/pulp/api/v3/remotes/rpm/rpm/7e1e16ba-4432-4a52-988e-3da939154cbe/","publication_href":"/pulp/api/v3/publications/rpm/rpm/9695e87f-67d7-4765-9f98-e9a13987baef/","content_counts":{"rpm":32,"erratum":4,"package_group":2,"srpm":0,"module_stream":0},"mirroring_policy":"mirror_content_only","id":18,"name":"Test - Repository","label":"Test_Repository","description":null,"content_view_versions":[],"filters":[{"content_view_filter_id":8,"content_view_filter_name":"Test - Package Content View Filter","content_view_id":10,"content_view_name":"Test - Content View","last_affected_repo":true}],"last_sync":{"id":"0c110a6a-16e1-487f-a587-0ab648d99eda","username":"admin","started_at":"2023-11-15 - 09:54:33 UTC","ended_at":"2023-11-15 09:54:46 UTC","state":"stopped","result":"success","progress":1.0},"content_view":{"id":9,"name":"Default - Organization View"},"content_view_version":{"id":8,"name":"Default Organization - View 1.0","content_view_id":9},"kt_environment":{"id":4,"name":"Library"},"content_type":"yum","url":"https://repos.fedorapeople.org/pulp/pulp/demo_repos/zoo/","arch":"noarch","os_versions":[],"content_id":"1700042066424","generic_remote_options":null,"major":null,"minor":null,"product":{"id":10,"cp_id":"347380074197","name":"Test + Package Content View Filter\"","sort":{"by":"name","order":"asc"},"results":[{"inclusion":false,"id":78,"name":"Test + Package Content View Filter","description":null,"created_at":"2024-07-25 07:24:41 + UTC","updated_at":"2024-07-25 07:24:43 UTC","content_view":{"composite":false,"component_ids":[],"duplicate_repositories_to_publish":[],"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":[],"filtered":true,"repository_ids":[20],"id":17,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":10,"organization":{"name":"Test + Organization","label":"Test_Organization","id":10},"created_at":"2024-07-25 + 07:24:40 UTC","updated_at":"2024-07-25 07:24:40 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":20,"name":"Test + Repository","label":"Test_Repository","content_type":"yum"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]},"repositories":[{"backend_identifier":"c42d6bfb-3280-4660-9f2c-c76c786fa382","relative_path":"Test_Organization/Library/custom/Test_Product/Test_Repository","container_repository_name":"test_organization-test_product-test_repository","full_path":"https://centos8-stream-katello-nightly.tanso.example.com/pulp/content/Test_Organization/Library/custom/Test_Product/Test_Repository/","library_instance_id":null,"version_href":"/pulp/api/v3/repositories/rpm/rpm/0190e8c6-b36d-7e8e-80f0-a0b6470e39c9/versions/1/","remote_href":"/pulp/api/v3/remotes/rpm/rpm/0190e8c6-b9d8-7aa7-a1d8-f8f81d2e719a/","publication_href":"/pulp/api/v3/publications/rpm/rpm/0190e8c6-d0e6-72f6-84b8-8a095de927df/","content_counts":{"rpm":32,"erratum":4,"package_group":2,"srpm":0,"module_stream":0},"mirroring_policy":"mirror_content_only","id":20,"name":"Test + Repository","label":"Test_Repository","description":null,"content_view_versions":[],"filters":[{"content_view_filter_id":78,"content_view_filter_name":"Test + Package Content View Filter","content_view_id":17,"content_view_name":"Test + Content View","last_affected_repo":true}],"last_sync":{"id":"13c7ce53-a0e4-4a3c-9a5e-27f4671e300d","username":"admin","started_at":"2024-07-25 + 07:24:18 UTC","ended_at":"2024-07-25 07:24:23 UTC","state":"stopped","result":"success","progress":1.0},"content_view":{"id":16,"name":"Default + Organization View"},"content_view_version":{"id":9,"name":"Default Organization + View 1.0","content_view_id":16},"kt_environment":{"id":9,"name":"Library"},"content_type":"yum","url":"https://repos.fedorapeople.org/pulp/pulp/demo_repos/zoo/","arch":"noarch","os_versions":[],"content_id":"1721892254686","generic_remote_options":null,"major":null,"minor":null,"product":{"id":8,"cp_id":"527370220153","name":"Test Product","orphaned":false,"redhat":false,"sync_plan":null},"content_label":"Test_Organization_Test_Product_Test_Repository","last_sync_words":"less than a minute"}],"type":"rpm","rules":[]}]} @@ -336,7 +336,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '3148' + - '3219' 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''; @@ -350,7 +350,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.1 + - 3.12.0-develop Keep-Alive: - timeout=15, max=95 Strict-Transport-Security: @@ -380,23 +380,23 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/content_views/10/filters/8 + uri: https://foreman.example.org/katello/api/content_views/17/filters/78 response: body: - string: ' {"inclusion":false,"original_packages":true,"id":8,"name":"Test Package - Content View Filter","description":null,"created_at":"2023-11-15 09:55:10 - UTC","updated_at":"2023-11-15 09:55:11 UTC","content_view":{"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":true,"repository_ids":[18],"id":10,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":5,"organization":{"name":"Test - Organization","label":"Test_Organization","id":5},"created_at":"2023-11-15 - 09:55:08 UTC","updated_at":"2023-11-15 09:55:08 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":18,"name":"Test - Repository","label":"Test_Repository","content_type":"yum","product":{"id":10,"name":"Test - Product"},"content_counts":{"docker_manifest":0,"docker_tag":0,"rpm":32,"package":32,"package_group":2,"erratum":4,"module_stream":0}}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]},"repositories":[{"backend_identifier":"29b3d88f-d4d9-4411-b1db-69f3a9c7df12","relative_path":"Test_Organization/Library/custom/Test_Product/Test_Repository","container_repository_name":null,"full_path":"https://centos8-stream-katello-4-9.tanso.example.com/pulp/content/Test_Organization/Library/custom/Test_Product/Test_Repository/","library_instance_id":null,"version_href":"/pulp/api/v3/repositories/rpm/rpm/00e6944a-841e-4bfe-9416-070861ef58fb/versions/1/","remote_href":"/pulp/api/v3/remotes/rpm/rpm/7e1e16ba-4432-4a52-988e-3da939154cbe/","publication_href":"/pulp/api/v3/publications/rpm/rpm/9695e87f-67d7-4765-9f98-e9a13987baef/","content_counts":{"rpm":32,"erratum":4,"package_group":2,"srpm":0,"module_stream":0},"mirroring_policy":"mirror_content_only","id":18,"name":"Test - Repository","label":"Test_Repository","description":null,"content_view_versions":[],"filters":[{"content_view_filter_id":8,"content_view_filter_name":"Test - Package Content View Filter","content_view_id":10,"content_view_name":"Test - Content View","last_affected_repo":true}],"last_sync":{"id":"0c110a6a-16e1-487f-a587-0ab648d99eda","username":"admin","started_at":"2023-11-15 - 09:54:33 UTC","ended_at":"2023-11-15 09:54:46 UTC","state":"stopped","result":"success","progress":1.0},"content_view":{"id":9,"name":"Default - Organization View"},"content_view_version":{"id":8,"name":"Default Organization - View 1.0","content_view_id":9},"kt_environment":{"id":4,"name":"Library"},"content_type":"yum","url":"https://repos.fedorapeople.org/pulp/pulp/demo_repos/zoo/","arch":"noarch","os_versions":[],"content_id":"1700042066424","generic_remote_options":null,"major":null,"minor":null,"product":{"id":10,"cp_id":"347380074197","name":"Test + string: ' {"inclusion":false,"original_packages":true,"id":78,"name":"Test + Package Content View Filter","description":null,"created_at":"2024-07-25 07:24:41 + UTC","updated_at":"2024-07-25 07:24:43 UTC","content_view":{"composite":false,"component_ids":[],"duplicate_repositories_to_publish":[],"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":[],"filtered":true,"repository_ids":[20],"id":17,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":10,"organization":{"name":"Test + Organization","label":"Test_Organization","id":10},"created_at":"2024-07-25 + 07:24:40 UTC","updated_at":"2024-07-25 07:24:40 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":20,"name":"Test + Repository","label":"Test_Repository","content_type":"yum","product":{"id":8,"name":"Test + Product"},"content_counts":{"docker_manifest":0,"docker_tag":0,"rpm":32,"package":32,"package_group":2,"erratum":4,"module_stream":0}}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]},"repositories":[{"backend_identifier":"c42d6bfb-3280-4660-9f2c-c76c786fa382","relative_path":"Test_Organization/Library/custom/Test_Product/Test_Repository","container_repository_name":"test_organization-test_product-test_repository","full_path":"https://centos8-stream-katello-nightly.tanso.example.com/pulp/content/Test_Organization/Library/custom/Test_Product/Test_Repository/","library_instance_id":null,"version_href":"/pulp/api/v3/repositories/rpm/rpm/0190e8c6-b36d-7e8e-80f0-a0b6470e39c9/versions/1/","remote_href":"/pulp/api/v3/remotes/rpm/rpm/0190e8c6-b9d8-7aa7-a1d8-f8f81d2e719a/","publication_href":"/pulp/api/v3/publications/rpm/rpm/0190e8c6-d0e6-72f6-84b8-8a095de927df/","content_counts":{"rpm":32,"erratum":4,"package_group":2,"srpm":0,"module_stream":0},"mirroring_policy":"mirror_content_only","id":20,"name":"Test + Repository","label":"Test_Repository","description":null,"content_view_versions":[],"filters":[{"content_view_filter_id":78,"content_view_filter_name":"Test + Package Content View Filter","content_view_id":17,"content_view_name":"Test + Content View","last_affected_repo":true}],"last_sync":{"id":"13c7ce53-a0e4-4a3c-9a5e-27f4671e300d","username":"admin","started_at":"2024-07-25 + 07:24:18 UTC","ended_at":"2024-07-25 07:24:23 UTC","state":"stopped","result":"success","progress":1.0},"content_view":{"id":16,"name":"Default + Organization View"},"content_view_version":{"id":9,"name":"Default Organization + View 1.0","content_view_id":16},"kt_environment":{"id":9,"name":"Library"},"content_type":"yum","url":"https://repos.fedorapeople.org/pulp/pulp/demo_repos/zoo/","arch":"noarch","os_versions":[],"content_id":"1721892254686","generic_remote_options":null,"major":null,"minor":null,"product":{"id":8,"cp_id":"527370220153","name":"Test Product","orphaned":false,"redhat":false,"sync_plan":null},"content_label":"Test_Organization_Test_Product_Test_Repository","last_sync_words":"less than a minute"}],"type":"rpm","rules":[]} @@ -407,7 +407,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '3155' + - '3225' 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''; @@ -421,7 +421,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.1 + - 3.12.0-develop Keep-Alive: - timeout=15, max=94 Strict-Transport-Security: diff --git a/tests/test_playbooks/fixtures/content_view_filter-4.yml b/tests/test_playbooks/fixtures/content_view_filter-4.yml index 1eacb557d..74821406a 100644 --- a/tests/test_playbooks/fixtures/content_view_filter-4.yml +++ b/tests/test_playbooks/fixtures/content_view_filter-4.yml @@ -14,14 +14,14 @@ interactions: uri: https://foreman.example.org/api/status response: body: - string: '{"result":"ok","status":200,"version":"3.7.1","api_version":2}' + string: '{"result":"ok","status":200,"version":"3.12.0-develop","api_version":2}' headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive Content-Length: - - '62' + - '71' 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''; @@ -35,7 +35,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.1 + - 3.12.0-develop Keep-Alive: - timeout=15, max=100 Strict-Transport-Security: @@ -70,8 +70,8 @@ interactions: body: 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-15 - 09:54:22 UTC\",\"updated_at\":\"2023-11-15 09:54:23 UTC\",\"id\":5,\"name\":\"Test + {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\":\"Test_Organization\",\"created_at\":\"2024-07-25 + 07:24:10 UTC\",\"updated_at\":\"2024-07-25 07:24:12 UTC\",\"id\":10,\"name\":\"Test Organization\",\"title\":\"Test Organization\",\"description\":\"A test organization\"}]\n}\n" headers: Cache-Control: @@ -79,7 +79,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '388' + - '389' 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''; @@ -93,7 +93,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.1 + - 3.12.0-develop Keep-Alive: - timeout=15, max=99 Strict-Transport-Security: @@ -123,14 +123,14 @@ 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%22Test+Content+View%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/organizations/10/content_views?search=name%3D%22Test+Content+View%22&per_page=4294967296 response: body: string: '{"total":2,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Content View\"","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":true,"repository_ids":[18],"id":10,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":5,"organization":{"name":"Test - Organization","label":"Test_Organization","id":5},"created_at":"2023-11-15 - 09:55:08 UTC","updated_at":"2023-11-15 09:55:08 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":18,"name":"Test + Content View\"","sort":{"by":"name","order":"asc"},"results":[{"composite":false,"component_ids":[],"duplicate_repositories_to_publish":[],"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":[],"filtered":true,"repository_ids":[20],"id":17,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":10,"organization":{"name":"Test + Organization","label":"Test_Organization","id":10},"created_at":"2024-07-25 + 07:24:40 UTC","updated_at":"2024-07-25 07:24:40 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":20,"name":"Test Repository","label":"Test_Repository","content_type":"yum"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]}]} ' @@ -140,7 +140,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '1049' + - '1069' 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''; @@ -152,9 +152,9 @@ interactions: Foreman_current_location: - ; ANY Foreman_current_organization: - - 5; Test Organization + - 10; Test Organization Foreman_version: - - 3.7.1 + - 3.12.0-develop Keep-Alive: - timeout=15, max=98 Strict-Transport-Security: @@ -184,14 +184,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%22Test+Product%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/organizations/10/products?search=name%3D%22Test+Product%22&per_page=4294967296 response: body: string: '{"total":1,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Product\"","sort":{"by":"name","order":"asc"},"results":[{"id":10,"cp_id":"347380074197","name":"Test - Product","label":"Test_Product","description":"A happy little test product","provider_id":7,"sync_plan_id":null,"sync_summary":{"success":3},"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-15 09:54:59 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":3}]} + Product\"","sort":{"by":"name","order":"asc"},"results":[{"id":8,"cp_id":"527370220153","name":"Test + Product","label":"Test_Product","description":"A happy little test product","provider_id":17,"sync_plan_id":null,"sync_summary":{"success":2},"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":"2024-07-25 07:24:35 UTC","last_sync_words":"less than + a minute","organization_id":10,"organization":{"name":"Test Organization","label":"Test_Organization","id":10},"sync_plan":null,"repository_count":2}]} ' headers: @@ -200,7 +200,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '691' + - '693' 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''; @@ -212,9 +212,9 @@ interactions: Foreman_current_location: - ; ANY Foreman_current_organization: - - 5; Test Organization + - 10; Test Organization Foreman_version: - - 3.7.1 + - 3.12.0-develop Keep-Alive: - timeout=15, max=97 Strict-Transport-Security: @@ -244,19 +244,19 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/products/10/repositories?search=name%3D%22Test+Repository%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/products/8/repositories?search=name%3D%22Test+Repository%22&per_page=4294967296 response: body: - string: '{"total":3,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Repository\"","sort":{"by":"name","order":"asc"},"results":[{"backend_identifier":"29b3d88f-d4d9-4411-b1db-69f3a9c7df12","relative_path":"Test_Organization/Library/custom/Test_Product/Test_Repository","container_repository_name":null,"full_path":"https://centos8-stream-katello-4-9.tanso.example.com/pulp/content/Test_Organization/Library/custom/Test_Product/Test_Repository/","library_instance_id":null,"version_href":"/pulp/api/v3/repositories/rpm/rpm/00e6944a-841e-4bfe-9416-070861ef58fb/versions/1/","remote_href":"/pulp/api/v3/remotes/rpm/rpm/7e1e16ba-4432-4a52-988e-3da939154cbe/","publication_href":"/pulp/api/v3/publications/rpm/rpm/9695e87f-67d7-4765-9f98-e9a13987baef/","content_counts":{"rpm":32,"erratum":4,"package_group":2,"srpm":0,"module_stream":0},"mirroring_policy":"mirror_content_only","id":18,"name":"Test - Repository","label":"Test_Repository","description":null,"content_view_versions":[],"filters":[{"content_view_filter_id":8,"content_view_filter_name":"Test - Package Content View Filter","content_view_id":10,"content_view_name":"Test - Content View","last_affected_repo":true}],"last_sync":{"id":"0c110a6a-16e1-487f-a587-0ab648d99eda","username":"admin","started_at":"2023-11-15 - 09:54:33 UTC","ended_at":"2023-11-15 09:54:46 UTC","state":"stopped","result":"success","progress":1.0},"content_view":{"id":9,"name":"Default - Organization View"},"content_view_version":{"id":8,"name":"Default Organization - View 1.0","content_view_id":9},"kt_environment":{"id":4,"name":"Library"},"content_type":"yum","url":"https://repos.fedorapeople.org/pulp/pulp/demo_repos/zoo/","arch":"noarch","os_versions":[],"content_id":"1700042066424","generic_remote_options":null,"major":null,"minor":null,"product":{"id":10,"cp_id":"347380074197","name":"Test + string: '{"total":2,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test + Repository\"","sort":{"by":"name","order":"asc"},"results":[{"backend_identifier":"c42d6bfb-3280-4660-9f2c-c76c786fa382","relative_path":"Test_Organization/Library/custom/Test_Product/Test_Repository","container_repository_name":"test_organization-test_product-test_repository","full_path":"https://centos8-stream-katello-nightly.tanso.example.com/pulp/content/Test_Organization/Library/custom/Test_Product/Test_Repository/","library_instance_id":null,"version_href":"/pulp/api/v3/repositories/rpm/rpm/0190e8c6-b36d-7e8e-80f0-a0b6470e39c9/versions/1/","remote_href":"/pulp/api/v3/remotes/rpm/rpm/0190e8c6-b9d8-7aa7-a1d8-f8f81d2e719a/","publication_href":"/pulp/api/v3/publications/rpm/rpm/0190e8c6-d0e6-72f6-84b8-8a095de927df/","content_counts":{"rpm":32,"erratum":4,"package_group":2,"srpm":0,"module_stream":0},"mirroring_policy":"mirror_content_only","id":20,"name":"Test + Repository","label":"Test_Repository","description":null,"content_view_versions":[],"filters":[{"content_view_filter_id":78,"content_view_filter_name":"Test + Package Content View Filter","content_view_id":17,"content_view_name":"Test + Content View","last_affected_repo":true}],"last_sync":{"id":"13c7ce53-a0e4-4a3c-9a5e-27f4671e300d","username":"admin","started_at":"2024-07-25 + 07:24:18 UTC","ended_at":"2024-07-25 07:24:23 UTC","state":"stopped","result":"success","progress":1.0},"content_view":{"id":16,"name":"Default + Organization View"},"content_view_version":{"id":9,"name":"Default Organization + View 1.0","content_view_id":16},"kt_environment":{"id":9,"name":"Library"},"content_type":"yum","url":"https://repos.fedorapeople.org/pulp/pulp/demo_repos/zoo/","arch":"noarch","os_versions":[],"content_id":"1721892254686","generic_remote_options":null,"major":null,"minor":null,"product":{"id":8,"cp_id":"527370220153","name":"Test Product","orphaned":false,"redhat":false,"sync_plan":null},"content_label":"Test_Organization_Test_Product_Test_Repository","last_sync_words":"less - than a minute"}],"org_repository_count":3} + than a minute"}],"org_repository_count":2} ' headers: @@ -265,7 +265,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '2056' + - '2106' 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''; @@ -279,7 +279,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.1 + - 3.12.0-develop Keep-Alive: - timeout=15, max=96 Strict-Transport-Security: @@ -309,23 +309,23 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/content_views/10/filters?search=name%3D%22Test+Package+Content+View+Filter%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/content_views/17/filters?search=name%3D%22Test+Package+Content+View+Filter%22&per_page=4294967296 response: body: string: '{"total":1,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Package Content View Filter\"","sort":{"by":"name","order":"asc"},"results":[{"inclusion":false,"id":8,"name":"Test - Package Content View Filter","description":null,"created_at":"2023-11-15 09:55:10 - UTC","updated_at":"2023-11-15 09:55:11 UTC","content_view":{"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":true,"repository_ids":[18],"id":10,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":5,"organization":{"name":"Test - Organization","label":"Test_Organization","id":5},"created_at":"2023-11-15 - 09:55:08 UTC","updated_at":"2023-11-15 09:55:08 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":18,"name":"Test - Repository","label":"Test_Repository","content_type":"yum"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]},"repositories":[{"backend_identifier":"29b3d88f-d4d9-4411-b1db-69f3a9c7df12","relative_path":"Test_Organization/Library/custom/Test_Product/Test_Repository","container_repository_name":null,"full_path":"https://centos8-stream-katello-4-9.tanso.example.com/pulp/content/Test_Organization/Library/custom/Test_Product/Test_Repository/","library_instance_id":null,"version_href":"/pulp/api/v3/repositories/rpm/rpm/00e6944a-841e-4bfe-9416-070861ef58fb/versions/1/","remote_href":"/pulp/api/v3/remotes/rpm/rpm/7e1e16ba-4432-4a52-988e-3da939154cbe/","publication_href":"/pulp/api/v3/publications/rpm/rpm/9695e87f-67d7-4765-9f98-e9a13987baef/","content_counts":{"rpm":32,"erratum":4,"package_group":2,"srpm":0,"module_stream":0},"mirroring_policy":"mirror_content_only","id":18,"name":"Test - Repository","label":"Test_Repository","description":null,"content_view_versions":[],"filters":[{"content_view_filter_id":8,"content_view_filter_name":"Test - Package Content View Filter","content_view_id":10,"content_view_name":"Test - Content View","last_affected_repo":true}],"last_sync":{"id":"0c110a6a-16e1-487f-a587-0ab648d99eda","username":"admin","started_at":"2023-11-15 - 09:54:33 UTC","ended_at":"2023-11-15 09:54:46 UTC","state":"stopped","result":"success","progress":1.0},"content_view":{"id":9,"name":"Default - Organization View"},"content_view_version":{"id":8,"name":"Default Organization - View 1.0","content_view_id":9},"kt_environment":{"id":4,"name":"Library"},"content_type":"yum","url":"https://repos.fedorapeople.org/pulp/pulp/demo_repos/zoo/","arch":"noarch","os_versions":[],"content_id":"1700042066424","generic_remote_options":null,"major":null,"minor":null,"product":{"id":10,"cp_id":"347380074197","name":"Test + Package Content View Filter\"","sort":{"by":"name","order":"asc"},"results":[{"inclusion":false,"id":78,"name":"Test + Package Content View Filter","description":null,"created_at":"2024-07-25 07:24:41 + UTC","updated_at":"2024-07-25 07:24:43 UTC","content_view":{"composite":false,"component_ids":[],"duplicate_repositories_to_publish":[],"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":[],"filtered":true,"repository_ids":[20],"id":17,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":10,"organization":{"name":"Test + Organization","label":"Test_Organization","id":10},"created_at":"2024-07-25 + 07:24:40 UTC","updated_at":"2024-07-25 07:24:40 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":20,"name":"Test + Repository","label":"Test_Repository","content_type":"yum"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]},"repositories":[{"backend_identifier":"c42d6bfb-3280-4660-9f2c-c76c786fa382","relative_path":"Test_Organization/Library/custom/Test_Product/Test_Repository","container_repository_name":"test_organization-test_product-test_repository","full_path":"https://centos8-stream-katello-nightly.tanso.example.com/pulp/content/Test_Organization/Library/custom/Test_Product/Test_Repository/","library_instance_id":null,"version_href":"/pulp/api/v3/repositories/rpm/rpm/0190e8c6-b36d-7e8e-80f0-a0b6470e39c9/versions/1/","remote_href":"/pulp/api/v3/remotes/rpm/rpm/0190e8c6-b9d8-7aa7-a1d8-f8f81d2e719a/","publication_href":"/pulp/api/v3/publications/rpm/rpm/0190e8c6-d0e6-72f6-84b8-8a095de927df/","content_counts":{"rpm":32,"erratum":4,"package_group":2,"srpm":0,"module_stream":0},"mirroring_policy":"mirror_content_only","id":20,"name":"Test + Repository","label":"Test_Repository","description":null,"content_view_versions":[],"filters":[{"content_view_filter_id":78,"content_view_filter_name":"Test + Package Content View Filter","content_view_id":17,"content_view_name":"Test + Content View","last_affected_repo":true}],"last_sync":{"id":"13c7ce53-a0e4-4a3c-9a5e-27f4671e300d","username":"admin","started_at":"2024-07-25 + 07:24:18 UTC","ended_at":"2024-07-25 07:24:23 UTC","state":"stopped","result":"success","progress":1.0},"content_view":{"id":16,"name":"Default + Organization View"},"content_view_version":{"id":9,"name":"Default Organization + View 1.0","content_view_id":16},"kt_environment":{"id":9,"name":"Library"},"content_type":"yum","url":"https://repos.fedorapeople.org/pulp/pulp/demo_repos/zoo/","arch":"noarch","os_versions":[],"content_id":"1721892254686","generic_remote_options":null,"major":null,"minor":null,"product":{"id":8,"cp_id":"527370220153","name":"Test Product","orphaned":false,"redhat":false,"sync_plan":null},"content_label":"Test_Organization_Test_Product_Test_Repository","last_sync_words":"less than a minute"}],"type":"rpm","rules":[]}]} @@ -336,7 +336,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '3148' + - '3219' 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''; @@ -350,7 +350,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.1 + - 3.12.0-develop Keep-Alive: - timeout=15, max=95 Strict-Transport-Security: @@ -380,23 +380,23 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/content_views/10/filters/8 + uri: https://foreman.example.org/katello/api/content_views/17/filters/78 response: body: - string: ' {"inclusion":false,"original_packages":true,"id":8,"name":"Test Package - Content View Filter","description":null,"created_at":"2023-11-15 09:55:10 - UTC","updated_at":"2023-11-15 09:55:11 UTC","content_view":{"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":true,"repository_ids":[18],"id":10,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":5,"organization":{"name":"Test - Organization","label":"Test_Organization","id":5},"created_at":"2023-11-15 - 09:55:08 UTC","updated_at":"2023-11-15 09:55:08 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":18,"name":"Test - Repository","label":"Test_Repository","content_type":"yum","product":{"id":10,"name":"Test - Product"},"content_counts":{"docker_manifest":0,"docker_tag":0,"rpm":32,"package":32,"package_group":2,"erratum":4,"module_stream":0}}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]},"repositories":[{"backend_identifier":"29b3d88f-d4d9-4411-b1db-69f3a9c7df12","relative_path":"Test_Organization/Library/custom/Test_Product/Test_Repository","container_repository_name":null,"full_path":"https://centos8-stream-katello-4-9.tanso.example.com/pulp/content/Test_Organization/Library/custom/Test_Product/Test_Repository/","library_instance_id":null,"version_href":"/pulp/api/v3/repositories/rpm/rpm/00e6944a-841e-4bfe-9416-070861ef58fb/versions/1/","remote_href":"/pulp/api/v3/remotes/rpm/rpm/7e1e16ba-4432-4a52-988e-3da939154cbe/","publication_href":"/pulp/api/v3/publications/rpm/rpm/9695e87f-67d7-4765-9f98-e9a13987baef/","content_counts":{"rpm":32,"erratum":4,"package_group":2,"srpm":0,"module_stream":0},"mirroring_policy":"mirror_content_only","id":18,"name":"Test - Repository","label":"Test_Repository","description":null,"content_view_versions":[],"filters":[{"content_view_filter_id":8,"content_view_filter_name":"Test - Package Content View Filter","content_view_id":10,"content_view_name":"Test - Content View","last_affected_repo":true}],"last_sync":{"id":"0c110a6a-16e1-487f-a587-0ab648d99eda","username":"admin","started_at":"2023-11-15 - 09:54:33 UTC","ended_at":"2023-11-15 09:54:46 UTC","state":"stopped","result":"success","progress":1.0},"content_view":{"id":9,"name":"Default - Organization View"},"content_view_version":{"id":8,"name":"Default Organization - View 1.0","content_view_id":9},"kt_environment":{"id":4,"name":"Library"},"content_type":"yum","url":"https://repos.fedorapeople.org/pulp/pulp/demo_repos/zoo/","arch":"noarch","os_versions":[],"content_id":"1700042066424","generic_remote_options":null,"major":null,"minor":null,"product":{"id":10,"cp_id":"347380074197","name":"Test + string: ' {"inclusion":false,"original_packages":true,"id":78,"name":"Test + Package Content View Filter","description":null,"created_at":"2024-07-25 07:24:41 + UTC","updated_at":"2024-07-25 07:24:43 UTC","content_view":{"composite":false,"component_ids":[],"duplicate_repositories_to_publish":[],"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":[],"filtered":true,"repository_ids":[20],"id":17,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":10,"organization":{"name":"Test + Organization","label":"Test_Organization","id":10},"created_at":"2024-07-25 + 07:24:40 UTC","updated_at":"2024-07-25 07:24:40 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":20,"name":"Test + Repository","label":"Test_Repository","content_type":"yum","product":{"id":8,"name":"Test + Product"},"content_counts":{"docker_manifest":0,"docker_tag":0,"rpm":32,"package":32,"package_group":2,"erratum":4,"module_stream":0}}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]},"repositories":[{"backend_identifier":"c42d6bfb-3280-4660-9f2c-c76c786fa382","relative_path":"Test_Organization/Library/custom/Test_Product/Test_Repository","container_repository_name":"test_organization-test_product-test_repository","full_path":"https://centos8-stream-katello-nightly.tanso.example.com/pulp/content/Test_Organization/Library/custom/Test_Product/Test_Repository/","library_instance_id":null,"version_href":"/pulp/api/v3/repositories/rpm/rpm/0190e8c6-b36d-7e8e-80f0-a0b6470e39c9/versions/1/","remote_href":"/pulp/api/v3/remotes/rpm/rpm/0190e8c6-b9d8-7aa7-a1d8-f8f81d2e719a/","publication_href":"/pulp/api/v3/publications/rpm/rpm/0190e8c6-d0e6-72f6-84b8-8a095de927df/","content_counts":{"rpm":32,"erratum":4,"package_group":2,"srpm":0,"module_stream":0},"mirroring_policy":"mirror_content_only","id":20,"name":"Test + Repository","label":"Test_Repository","description":null,"content_view_versions":[],"filters":[{"content_view_filter_id":78,"content_view_filter_name":"Test + Package Content View Filter","content_view_id":17,"content_view_name":"Test + Content View","last_affected_repo":true}],"last_sync":{"id":"13c7ce53-a0e4-4a3c-9a5e-27f4671e300d","username":"admin","started_at":"2024-07-25 + 07:24:18 UTC","ended_at":"2024-07-25 07:24:23 UTC","state":"stopped","result":"success","progress":1.0},"content_view":{"id":16,"name":"Default + Organization View"},"content_view_version":{"id":9,"name":"Default Organization + View 1.0","content_view_id":16},"kt_environment":{"id":9,"name":"Library"},"content_type":"yum","url":"https://repos.fedorapeople.org/pulp/pulp/demo_repos/zoo/","arch":"noarch","os_versions":[],"content_id":"1721892254686","generic_remote_options":null,"major":null,"minor":null,"product":{"id":8,"cp_id":"527370220153","name":"Test Product","orphaned":false,"redhat":false,"sync_plan":null},"content_label":"Test_Organization_Test_Product_Test_Repository","last_sync_words":"less than a minute"}],"type":"rpm","rules":[]} @@ -407,7 +407,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '3155' + - '3225' 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''; @@ -421,7 +421,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.1 + - 3.12.0-develop Keep-Alive: - timeout=15, max=94 Strict-Transport-Security: @@ -455,23 +455,23 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: PUT - uri: https://foreman.example.org/katello/api/content_views/10/filters/8 + uri: https://foreman.example.org/katello/api/content_views/17/filters/78 response: body: - string: ' {"inclusion":false,"original_packages":false,"id":8,"name":"Test - Package Content View Filter","description":null,"created_at":"2023-11-15 09:55:10 - UTC","updated_at":"2023-11-15 09:55:13 UTC","content_view":{"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":true,"repository_ids":[18],"id":10,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":5,"organization":{"name":"Test - Organization","label":"Test_Organization","id":5},"created_at":"2023-11-15 - 09:55:08 UTC","updated_at":"2023-11-15 09:55:08 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":18,"name":"Test - Repository","label":"Test_Repository","content_type":"yum","product":{"id":10,"name":"Test - Product"},"content_counts":{"docker_manifest":0,"docker_tag":0,"rpm":32,"package":32,"package_group":2,"erratum":4,"module_stream":0}}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]},"repositories":[{"backend_identifier":"29b3d88f-d4d9-4411-b1db-69f3a9c7df12","relative_path":"Test_Organization/Library/custom/Test_Product/Test_Repository","container_repository_name":null,"full_path":"https://centos8-stream-katello-4-9.tanso.example.com/pulp/content/Test_Organization/Library/custom/Test_Product/Test_Repository/","library_instance_id":null,"version_href":"/pulp/api/v3/repositories/rpm/rpm/00e6944a-841e-4bfe-9416-070861ef58fb/versions/1/","remote_href":"/pulp/api/v3/remotes/rpm/rpm/7e1e16ba-4432-4a52-988e-3da939154cbe/","publication_href":"/pulp/api/v3/publications/rpm/rpm/9695e87f-67d7-4765-9f98-e9a13987baef/","content_counts":{"rpm":32,"erratum":4,"package_group":2,"srpm":0,"module_stream":0},"mirroring_policy":"mirror_content_only","id":18,"name":"Test - Repository","label":"Test_Repository","description":null,"content_view_versions":[],"filters":[{"content_view_filter_id":8,"content_view_filter_name":"Test - Package Content View Filter","content_view_id":10,"content_view_name":"Test - Content View","last_affected_repo":true}],"last_sync":{"id":"0c110a6a-16e1-487f-a587-0ab648d99eda","username":"admin","started_at":"2023-11-15 - 09:54:33 UTC","ended_at":"2023-11-15 09:54:46 UTC","state":"stopped","result":"success","progress":1.0},"content_view":{"id":9,"name":"Default - Organization View"},"content_view_version":{"id":8,"name":"Default Organization - View 1.0","content_view_id":9},"kt_environment":{"id":4,"name":"Library"},"content_type":"yum","url":"https://repos.fedorapeople.org/pulp/pulp/demo_repos/zoo/","arch":"noarch","os_versions":[],"content_id":"1700042066424","generic_remote_options":null,"major":null,"minor":null,"product":{"id":10,"cp_id":"347380074197","name":"Test + string: ' {"inclusion":false,"original_packages":false,"id":78,"name":"Test + Package Content View Filter","description":null,"created_at":"2024-07-25 07:24:41 + UTC","updated_at":"2024-07-25 07:24:45 UTC","content_view":{"composite":false,"component_ids":[],"duplicate_repositories_to_publish":[],"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":[],"filtered":true,"repository_ids":[20],"id":17,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":10,"organization":{"name":"Test + Organization","label":"Test_Organization","id":10},"created_at":"2024-07-25 + 07:24:40 UTC","updated_at":"2024-07-25 07:24:40 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":20,"name":"Test + Repository","label":"Test_Repository","content_type":"yum","product":{"id":8,"name":"Test + Product"},"content_counts":{"docker_manifest":0,"docker_tag":0,"rpm":32,"package":32,"package_group":2,"erratum":4,"module_stream":0}}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]},"repositories":[{"backend_identifier":"c42d6bfb-3280-4660-9f2c-c76c786fa382","relative_path":"Test_Organization/Library/custom/Test_Product/Test_Repository","container_repository_name":"test_organization-test_product-test_repository","full_path":"https://centos8-stream-katello-nightly.tanso.example.com/pulp/content/Test_Organization/Library/custom/Test_Product/Test_Repository/","library_instance_id":null,"version_href":"/pulp/api/v3/repositories/rpm/rpm/0190e8c6-b36d-7e8e-80f0-a0b6470e39c9/versions/1/","remote_href":"/pulp/api/v3/remotes/rpm/rpm/0190e8c6-b9d8-7aa7-a1d8-f8f81d2e719a/","publication_href":"/pulp/api/v3/publications/rpm/rpm/0190e8c6-d0e6-72f6-84b8-8a095de927df/","content_counts":{"rpm":32,"erratum":4,"package_group":2,"srpm":0,"module_stream":0},"mirroring_policy":"mirror_content_only","id":20,"name":"Test + Repository","label":"Test_Repository","description":null,"content_view_versions":[],"filters":[{"content_view_filter_id":78,"content_view_filter_name":"Test + Package Content View Filter","content_view_id":17,"content_view_name":"Test + Content View","last_affected_repo":true}],"last_sync":{"id":"13c7ce53-a0e4-4a3c-9a5e-27f4671e300d","username":"admin","started_at":"2024-07-25 + 07:24:18 UTC","ended_at":"2024-07-25 07:24:23 UTC","state":"stopped","result":"success","progress":1.0},"content_view":{"id":16,"name":"Default + Organization View"},"content_view_version":{"id":9,"name":"Default Organization + View 1.0","content_view_id":16},"kt_environment":{"id":9,"name":"Library"},"content_type":"yum","url":"https://repos.fedorapeople.org/pulp/pulp/demo_repos/zoo/","arch":"noarch","os_versions":[],"content_id":"1721892254686","generic_remote_options":null,"major":null,"minor":null,"product":{"id":8,"cp_id":"527370220153","name":"Test Product","orphaned":false,"redhat":false,"sync_plan":null},"content_label":"Test_Organization_Test_Product_Test_Repository","last_sync_words":"less than a minute"}],"type":"rpm","rules":[]} @@ -482,7 +482,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '3156' + - '3226' 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''; @@ -496,7 +496,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.1 + - 3.12.0-develop Keep-Alive: - timeout=15, max=93 Strict-Transport-Security: diff --git a/tests/test_playbooks/fixtures/content_view_filter-5.yml b/tests/test_playbooks/fixtures/content_view_filter-5.yml index a1ccd2fbe..ff2aad519 100644 --- a/tests/test_playbooks/fixtures/content_view_filter-5.yml +++ b/tests/test_playbooks/fixtures/content_view_filter-5.yml @@ -14,14 +14,14 @@ interactions: uri: https://foreman.example.org/api/status response: body: - string: '{"result":"ok","status":200,"version":"3.7.1","api_version":2}' + string: '{"result":"ok","status":200,"version":"3.12.0-develop","api_version":2}' headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive Content-Length: - - '62' + - '71' 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''; @@ -35,7 +35,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.1 + - 3.12.0-develop Keep-Alive: - timeout=15, max=100 Strict-Transport-Security: @@ -70,8 +70,8 @@ interactions: body: 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-15 - 09:54:22 UTC\",\"updated_at\":\"2023-11-15 09:54:23 UTC\",\"id\":5,\"name\":\"Test + {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\":\"Test_Organization\",\"created_at\":\"2024-07-25 + 07:24:10 UTC\",\"updated_at\":\"2024-07-25 07:24:12 UTC\",\"id\":10,\"name\":\"Test Organization\",\"title\":\"Test Organization\",\"description\":\"A test organization\"}]\n}\n" headers: Cache-Control: @@ -79,7 +79,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '388' + - '389' 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''; @@ -93,7 +93,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.1 + - 3.12.0-develop Keep-Alive: - timeout=15, max=99 Strict-Transport-Security: @@ -123,14 +123,14 @@ 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%22Test+Content+View%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/organizations/10/content_views?search=name%3D%22Test+Content+View%22&per_page=4294967296 response: body: string: '{"total":2,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Content View\"","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":true,"repository_ids":[18],"id":10,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":5,"organization":{"name":"Test - Organization","label":"Test_Organization","id":5},"created_at":"2023-11-15 - 09:55:08 UTC","updated_at":"2023-11-15 09:55:08 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":18,"name":"Test + Content View\"","sort":{"by":"name","order":"asc"},"results":[{"composite":false,"component_ids":[],"duplicate_repositories_to_publish":[],"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":[],"filtered":true,"repository_ids":[20],"id":17,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":10,"organization":{"name":"Test + Organization","label":"Test_Organization","id":10},"created_at":"2024-07-25 + 07:24:40 UTC","updated_at":"2024-07-25 07:24:40 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":20,"name":"Test Repository","label":"Test_Repository","content_type":"yum"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]}]} ' @@ -140,7 +140,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '1049' + - '1069' 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''; @@ -152,9 +152,9 @@ interactions: Foreman_current_location: - ; ANY Foreman_current_organization: - - 5; Test Organization + - 10; Test Organization Foreman_version: - - 3.7.1 + - 3.12.0-develop Keep-Alive: - timeout=15, max=98 Strict-Transport-Security: @@ -184,14 +184,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%22Test+Product%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/organizations/10/products?search=name%3D%22Test+Product%22&per_page=4294967296 response: body: string: '{"total":1,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Product\"","sort":{"by":"name","order":"asc"},"results":[{"id":10,"cp_id":"347380074197","name":"Test - Product","label":"Test_Product","description":"A happy little test product","provider_id":7,"sync_plan_id":null,"sync_summary":{"success":3},"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-15 09:54:59 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":3}]} + Product\"","sort":{"by":"name","order":"asc"},"results":[{"id":8,"cp_id":"527370220153","name":"Test + Product","label":"Test_Product","description":"A happy little test product","provider_id":17,"sync_plan_id":null,"sync_summary":{"success":2},"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":"2024-07-25 07:24:35 UTC","last_sync_words":"less than + a minute","organization_id":10,"organization":{"name":"Test Organization","label":"Test_Organization","id":10},"sync_plan":null,"repository_count":2}]} ' headers: @@ -200,7 +200,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '691' + - '693' 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''; @@ -212,9 +212,9 @@ interactions: Foreman_current_location: - ; ANY Foreman_current_organization: - - 5; Test Organization + - 10; Test Organization Foreman_version: - - 3.7.1 + - 3.12.0-develop Keep-Alive: - timeout=15, max=97 Strict-Transport-Security: @@ -244,19 +244,19 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/products/10/repositories?search=name%3D%22Test+Repository%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/products/8/repositories?search=name%3D%22Test+Repository%22&per_page=4294967296 response: body: - string: '{"total":3,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Repository\"","sort":{"by":"name","order":"asc"},"results":[{"backend_identifier":"29b3d88f-d4d9-4411-b1db-69f3a9c7df12","relative_path":"Test_Organization/Library/custom/Test_Product/Test_Repository","container_repository_name":null,"full_path":"https://centos8-stream-katello-4-9.tanso.example.com/pulp/content/Test_Organization/Library/custom/Test_Product/Test_Repository/","library_instance_id":null,"version_href":"/pulp/api/v3/repositories/rpm/rpm/00e6944a-841e-4bfe-9416-070861ef58fb/versions/1/","remote_href":"/pulp/api/v3/remotes/rpm/rpm/7e1e16ba-4432-4a52-988e-3da939154cbe/","publication_href":"/pulp/api/v3/publications/rpm/rpm/9695e87f-67d7-4765-9f98-e9a13987baef/","content_counts":{"rpm":32,"erratum":4,"package_group":2,"srpm":0,"module_stream":0},"mirroring_policy":"mirror_content_only","id":18,"name":"Test - Repository","label":"Test_Repository","description":null,"content_view_versions":[],"filters":[{"content_view_filter_id":8,"content_view_filter_name":"Test - Package Content View Filter","content_view_id":10,"content_view_name":"Test - Content View","last_affected_repo":true}],"last_sync":{"id":"0c110a6a-16e1-487f-a587-0ab648d99eda","username":"admin","started_at":"2023-11-15 - 09:54:33 UTC","ended_at":"2023-11-15 09:54:46 UTC","state":"stopped","result":"success","progress":1.0},"content_view":{"id":9,"name":"Default - Organization View"},"content_view_version":{"id":8,"name":"Default Organization - View 1.0","content_view_id":9},"kt_environment":{"id":4,"name":"Library"},"content_type":"yum","url":"https://repos.fedorapeople.org/pulp/pulp/demo_repos/zoo/","arch":"noarch","os_versions":[],"content_id":"1700042066424","generic_remote_options":null,"major":null,"minor":null,"product":{"id":10,"cp_id":"347380074197","name":"Test + string: '{"total":2,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test + Repository\"","sort":{"by":"name","order":"asc"},"results":[{"backend_identifier":"c42d6bfb-3280-4660-9f2c-c76c786fa382","relative_path":"Test_Organization/Library/custom/Test_Product/Test_Repository","container_repository_name":"test_organization-test_product-test_repository","full_path":"https://centos8-stream-katello-nightly.tanso.example.com/pulp/content/Test_Organization/Library/custom/Test_Product/Test_Repository/","library_instance_id":null,"version_href":"/pulp/api/v3/repositories/rpm/rpm/0190e8c6-b36d-7e8e-80f0-a0b6470e39c9/versions/1/","remote_href":"/pulp/api/v3/remotes/rpm/rpm/0190e8c6-b9d8-7aa7-a1d8-f8f81d2e719a/","publication_href":"/pulp/api/v3/publications/rpm/rpm/0190e8c6-d0e6-72f6-84b8-8a095de927df/","content_counts":{"rpm":32,"erratum":4,"package_group":2,"srpm":0,"module_stream":0},"mirroring_policy":"mirror_content_only","id":20,"name":"Test + Repository","label":"Test_Repository","description":null,"content_view_versions":[],"filters":[{"content_view_filter_id":78,"content_view_filter_name":"Test + Package Content View Filter","content_view_id":17,"content_view_name":"Test + Content View","last_affected_repo":true}],"last_sync":{"id":"13c7ce53-a0e4-4a3c-9a5e-27f4671e300d","username":"admin","started_at":"2024-07-25 + 07:24:18 UTC","ended_at":"2024-07-25 07:24:23 UTC","state":"stopped","result":"success","progress":1.0},"content_view":{"id":16,"name":"Default + Organization View"},"content_view_version":{"id":9,"name":"Default Organization + View 1.0","content_view_id":16},"kt_environment":{"id":9,"name":"Library"},"content_type":"yum","url":"https://repos.fedorapeople.org/pulp/pulp/demo_repos/zoo/","arch":"noarch","os_versions":[],"content_id":"1721892254686","generic_remote_options":null,"major":null,"minor":null,"product":{"id":8,"cp_id":"527370220153","name":"Test Product","orphaned":false,"redhat":false,"sync_plan":null},"content_label":"Test_Organization_Test_Product_Test_Repository","last_sync_words":"less - than a minute"}],"org_repository_count":3} + than a minute"}],"org_repository_count":2} ' headers: @@ -265,7 +265,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '2056' + - '2106' 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''; @@ -279,7 +279,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.1 + - 3.12.0-develop Keep-Alive: - timeout=15, max=96 Strict-Transport-Security: @@ -309,23 +309,23 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/content_views/10/filters?search=name%3D%22Test+Package+Content+View+Filter%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/content_views/17/filters?search=name%3D%22Test+Package+Content+View+Filter%22&per_page=4294967296 response: body: string: '{"total":1,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Package Content View Filter\"","sort":{"by":"name","order":"asc"},"results":[{"inclusion":false,"id":8,"name":"Test - Package Content View Filter","description":null,"created_at":"2023-11-15 09:55:10 - UTC","updated_at":"2023-11-15 09:55:13 UTC","content_view":{"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":true,"repository_ids":[18],"id":10,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":5,"organization":{"name":"Test - Organization","label":"Test_Organization","id":5},"created_at":"2023-11-15 - 09:55:08 UTC","updated_at":"2023-11-15 09:55:08 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":18,"name":"Test - Repository","label":"Test_Repository","content_type":"yum"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]},"repositories":[{"backend_identifier":"29b3d88f-d4d9-4411-b1db-69f3a9c7df12","relative_path":"Test_Organization/Library/custom/Test_Product/Test_Repository","container_repository_name":null,"full_path":"https://centos8-stream-katello-4-9.tanso.example.com/pulp/content/Test_Organization/Library/custom/Test_Product/Test_Repository/","library_instance_id":null,"version_href":"/pulp/api/v3/repositories/rpm/rpm/00e6944a-841e-4bfe-9416-070861ef58fb/versions/1/","remote_href":"/pulp/api/v3/remotes/rpm/rpm/7e1e16ba-4432-4a52-988e-3da939154cbe/","publication_href":"/pulp/api/v3/publications/rpm/rpm/9695e87f-67d7-4765-9f98-e9a13987baef/","content_counts":{"rpm":32,"erratum":4,"package_group":2,"srpm":0,"module_stream":0},"mirroring_policy":"mirror_content_only","id":18,"name":"Test - Repository","label":"Test_Repository","description":null,"content_view_versions":[],"filters":[{"content_view_filter_id":8,"content_view_filter_name":"Test - Package Content View Filter","content_view_id":10,"content_view_name":"Test - Content View","last_affected_repo":true}],"last_sync":{"id":"0c110a6a-16e1-487f-a587-0ab648d99eda","username":"admin","started_at":"2023-11-15 - 09:54:33 UTC","ended_at":"2023-11-15 09:54:46 UTC","state":"stopped","result":"success","progress":1.0},"content_view":{"id":9,"name":"Default - Organization View"},"content_view_version":{"id":8,"name":"Default Organization - View 1.0","content_view_id":9},"kt_environment":{"id":4,"name":"Library"},"content_type":"yum","url":"https://repos.fedorapeople.org/pulp/pulp/demo_repos/zoo/","arch":"noarch","os_versions":[],"content_id":"1700042066424","generic_remote_options":null,"major":null,"minor":null,"product":{"id":10,"cp_id":"347380074197","name":"Test + Package Content View Filter\"","sort":{"by":"name","order":"asc"},"results":[{"inclusion":false,"id":78,"name":"Test + Package Content View Filter","description":null,"created_at":"2024-07-25 07:24:41 + UTC","updated_at":"2024-07-25 07:24:45 UTC","content_view":{"composite":false,"component_ids":[],"duplicate_repositories_to_publish":[],"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":[],"filtered":true,"repository_ids":[20],"id":17,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":10,"organization":{"name":"Test + Organization","label":"Test_Organization","id":10},"created_at":"2024-07-25 + 07:24:40 UTC","updated_at":"2024-07-25 07:24:40 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":20,"name":"Test + Repository","label":"Test_Repository","content_type":"yum"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]},"repositories":[{"backend_identifier":"c42d6bfb-3280-4660-9f2c-c76c786fa382","relative_path":"Test_Organization/Library/custom/Test_Product/Test_Repository","container_repository_name":"test_organization-test_product-test_repository","full_path":"https://centos8-stream-katello-nightly.tanso.example.com/pulp/content/Test_Organization/Library/custom/Test_Product/Test_Repository/","library_instance_id":null,"version_href":"/pulp/api/v3/repositories/rpm/rpm/0190e8c6-b36d-7e8e-80f0-a0b6470e39c9/versions/1/","remote_href":"/pulp/api/v3/remotes/rpm/rpm/0190e8c6-b9d8-7aa7-a1d8-f8f81d2e719a/","publication_href":"/pulp/api/v3/publications/rpm/rpm/0190e8c6-d0e6-72f6-84b8-8a095de927df/","content_counts":{"rpm":32,"erratum":4,"package_group":2,"srpm":0,"module_stream":0},"mirroring_policy":"mirror_content_only","id":20,"name":"Test + Repository","label":"Test_Repository","description":null,"content_view_versions":[],"filters":[{"content_view_filter_id":78,"content_view_filter_name":"Test + Package Content View Filter","content_view_id":17,"content_view_name":"Test + Content View","last_affected_repo":true}],"last_sync":{"id":"13c7ce53-a0e4-4a3c-9a5e-27f4671e300d","username":"admin","started_at":"2024-07-25 + 07:24:18 UTC","ended_at":"2024-07-25 07:24:23 UTC","state":"stopped","result":"success","progress":1.0},"content_view":{"id":16,"name":"Default + Organization View"},"content_view_version":{"id":9,"name":"Default Organization + View 1.0","content_view_id":16},"kt_environment":{"id":9,"name":"Library"},"content_type":"yum","url":"https://repos.fedorapeople.org/pulp/pulp/demo_repos/zoo/","arch":"noarch","os_versions":[],"content_id":"1721892254686","generic_remote_options":null,"major":null,"minor":null,"product":{"id":8,"cp_id":"527370220153","name":"Test Product","orphaned":false,"redhat":false,"sync_plan":null},"content_label":"Test_Organization_Test_Product_Test_Repository","last_sync_words":"less than a minute"}],"type":"rpm","rules":[]}]} @@ -336,7 +336,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '3148' + - '3219' 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''; @@ -350,7 +350,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.1 + - 3.12.0-develop Keep-Alive: - timeout=15, max=95 Strict-Transport-Security: @@ -380,23 +380,23 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/content_views/10/filters/8 + uri: https://foreman.example.org/katello/api/content_views/17/filters/78 response: body: - string: ' {"inclusion":false,"original_packages":false,"id":8,"name":"Test - Package Content View Filter","description":null,"created_at":"2023-11-15 09:55:10 - UTC","updated_at":"2023-11-15 09:55:13 UTC","content_view":{"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":true,"repository_ids":[18],"id":10,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":5,"organization":{"name":"Test - Organization","label":"Test_Organization","id":5},"created_at":"2023-11-15 - 09:55:08 UTC","updated_at":"2023-11-15 09:55:08 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":18,"name":"Test - Repository","label":"Test_Repository","content_type":"yum","product":{"id":10,"name":"Test - Product"},"content_counts":{"docker_manifest":0,"docker_tag":0,"rpm":32,"package":32,"package_group":2,"erratum":4,"module_stream":0}}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]},"repositories":[{"backend_identifier":"29b3d88f-d4d9-4411-b1db-69f3a9c7df12","relative_path":"Test_Organization/Library/custom/Test_Product/Test_Repository","container_repository_name":null,"full_path":"https://centos8-stream-katello-4-9.tanso.example.com/pulp/content/Test_Organization/Library/custom/Test_Product/Test_Repository/","library_instance_id":null,"version_href":"/pulp/api/v3/repositories/rpm/rpm/00e6944a-841e-4bfe-9416-070861ef58fb/versions/1/","remote_href":"/pulp/api/v3/remotes/rpm/rpm/7e1e16ba-4432-4a52-988e-3da939154cbe/","publication_href":"/pulp/api/v3/publications/rpm/rpm/9695e87f-67d7-4765-9f98-e9a13987baef/","content_counts":{"rpm":32,"erratum":4,"package_group":2,"srpm":0,"module_stream":0},"mirroring_policy":"mirror_content_only","id":18,"name":"Test - Repository","label":"Test_Repository","description":null,"content_view_versions":[],"filters":[{"content_view_filter_id":8,"content_view_filter_name":"Test - Package Content View Filter","content_view_id":10,"content_view_name":"Test - Content View","last_affected_repo":true}],"last_sync":{"id":"0c110a6a-16e1-487f-a587-0ab648d99eda","username":"admin","started_at":"2023-11-15 - 09:54:33 UTC","ended_at":"2023-11-15 09:54:46 UTC","state":"stopped","result":"success","progress":1.0},"content_view":{"id":9,"name":"Default - Organization View"},"content_view_version":{"id":8,"name":"Default Organization - View 1.0","content_view_id":9},"kt_environment":{"id":4,"name":"Library"},"content_type":"yum","url":"https://repos.fedorapeople.org/pulp/pulp/demo_repos/zoo/","arch":"noarch","os_versions":[],"content_id":"1700042066424","generic_remote_options":null,"major":null,"minor":null,"product":{"id":10,"cp_id":"347380074197","name":"Test + string: ' {"inclusion":false,"original_packages":false,"id":78,"name":"Test + Package Content View Filter","description":null,"created_at":"2024-07-25 07:24:41 + UTC","updated_at":"2024-07-25 07:24:45 UTC","content_view":{"composite":false,"component_ids":[],"duplicate_repositories_to_publish":[],"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":[],"filtered":true,"repository_ids":[20],"id":17,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":10,"organization":{"name":"Test + Organization","label":"Test_Organization","id":10},"created_at":"2024-07-25 + 07:24:40 UTC","updated_at":"2024-07-25 07:24:40 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":20,"name":"Test + Repository","label":"Test_Repository","content_type":"yum","product":{"id":8,"name":"Test + Product"},"content_counts":{"docker_manifest":0,"docker_tag":0,"rpm":32,"package":32,"package_group":2,"erratum":4,"module_stream":0}}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]},"repositories":[{"backend_identifier":"c42d6bfb-3280-4660-9f2c-c76c786fa382","relative_path":"Test_Organization/Library/custom/Test_Product/Test_Repository","container_repository_name":"test_organization-test_product-test_repository","full_path":"https://centos8-stream-katello-nightly.tanso.example.com/pulp/content/Test_Organization/Library/custom/Test_Product/Test_Repository/","library_instance_id":null,"version_href":"/pulp/api/v3/repositories/rpm/rpm/0190e8c6-b36d-7e8e-80f0-a0b6470e39c9/versions/1/","remote_href":"/pulp/api/v3/remotes/rpm/rpm/0190e8c6-b9d8-7aa7-a1d8-f8f81d2e719a/","publication_href":"/pulp/api/v3/publications/rpm/rpm/0190e8c6-d0e6-72f6-84b8-8a095de927df/","content_counts":{"rpm":32,"erratum":4,"package_group":2,"srpm":0,"module_stream":0},"mirroring_policy":"mirror_content_only","id":20,"name":"Test + Repository","label":"Test_Repository","description":null,"content_view_versions":[],"filters":[{"content_view_filter_id":78,"content_view_filter_name":"Test + Package Content View Filter","content_view_id":17,"content_view_name":"Test + Content View","last_affected_repo":true}],"last_sync":{"id":"13c7ce53-a0e4-4a3c-9a5e-27f4671e300d","username":"admin","started_at":"2024-07-25 + 07:24:18 UTC","ended_at":"2024-07-25 07:24:23 UTC","state":"stopped","result":"success","progress":1.0},"content_view":{"id":16,"name":"Default + Organization View"},"content_view_version":{"id":9,"name":"Default Organization + View 1.0","content_view_id":16},"kt_environment":{"id":9,"name":"Library"},"content_type":"yum","url":"https://repos.fedorapeople.org/pulp/pulp/demo_repos/zoo/","arch":"noarch","os_versions":[],"content_id":"1721892254686","generic_remote_options":null,"major":null,"minor":null,"product":{"id":8,"cp_id":"527370220153","name":"Test Product","orphaned":false,"redhat":false,"sync_plan":null},"content_label":"Test_Organization_Test_Product_Test_Repository","last_sync_words":"less than a minute"}],"type":"rpm","rules":[]} @@ -407,7 +407,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '3156' + - '3226' 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''; @@ -421,7 +421,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.1 + - 3.12.0-develop Keep-Alive: - timeout=15, max=94 Strict-Transport-Security: diff --git a/tests/test_playbooks/fixtures/content_view_filter-6.yml b/tests/test_playbooks/fixtures/content_view_filter-6.yml index 8e5f4e59e..31e093093 100644 --- a/tests/test_playbooks/fixtures/content_view_filter-6.yml +++ b/tests/test_playbooks/fixtures/content_view_filter-6.yml @@ -14,14 +14,14 @@ interactions: uri: https://foreman.example.org/api/status response: body: - string: '{"result":"ok","status":200,"version":"3.7.1","api_version":2}' + string: '{"result":"ok","status":200,"version":"3.12.0-develop","api_version":2}' headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive Content-Length: - - '62' + - '71' 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''; @@ -35,7 +35,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.1 + - 3.12.0-develop Keep-Alive: - timeout=15, max=100 Strict-Transport-Security: @@ -70,8 +70,8 @@ interactions: body: 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-15 - 09:54:22 UTC\",\"updated_at\":\"2023-11-15 09:54:23 UTC\",\"id\":5,\"name\":\"Test + {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\":\"Test_Organization\",\"created_at\":\"2024-07-25 + 07:24:10 UTC\",\"updated_at\":\"2024-07-25 07:24:12 UTC\",\"id\":10,\"name\":\"Test Organization\",\"title\":\"Test Organization\",\"description\":\"A test organization\"}]\n}\n" headers: Cache-Control: @@ -79,7 +79,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '388' + - '389' 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''; @@ -93,7 +93,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.1 + - 3.12.0-develop Keep-Alive: - timeout=15, max=99 Strict-Transport-Security: @@ -123,14 +123,14 @@ 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%22Test+Content+View%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/organizations/10/content_views?search=name%3D%22Test+Content+View%22&per_page=4294967296 response: body: string: '{"total":2,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Content View\"","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":true,"repository_ids":[18],"id":10,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":5,"organization":{"name":"Test - Organization","label":"Test_Organization","id":5},"created_at":"2023-11-15 - 09:55:08 UTC","updated_at":"2023-11-15 09:55:08 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":18,"name":"Test + Content View\"","sort":{"by":"name","order":"asc"},"results":[{"composite":false,"component_ids":[],"duplicate_repositories_to_publish":[],"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":[],"filtered":true,"repository_ids":[20],"id":17,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":10,"organization":{"name":"Test + Organization","label":"Test_Organization","id":10},"created_at":"2024-07-25 + 07:24:40 UTC","updated_at":"2024-07-25 07:24:40 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":20,"name":"Test Repository","label":"Test_Repository","content_type":"yum"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]}]} ' @@ -140,7 +140,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '1049' + - '1069' 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''; @@ -152,9 +152,9 @@ interactions: Foreman_current_location: - ; ANY Foreman_current_organization: - - 5; Test Organization + - 10; Test Organization Foreman_version: - - 3.7.1 + - 3.12.0-develop Keep-Alive: - timeout=15, max=98 Strict-Transport-Security: @@ -184,14 +184,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%22Test+Product%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/organizations/10/products?search=name%3D%22Test+Product%22&per_page=4294967296 response: body: string: '{"total":1,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Product\"","sort":{"by":"name","order":"asc"},"results":[{"id":10,"cp_id":"347380074197","name":"Test - Product","label":"Test_Product","description":"A happy little test product","provider_id":7,"sync_plan_id":null,"sync_summary":{"success":3},"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-15 09:54:59 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":3}]} + Product\"","sort":{"by":"name","order":"asc"},"results":[{"id":8,"cp_id":"527370220153","name":"Test + Product","label":"Test_Product","description":"A happy little test product","provider_id":17,"sync_plan_id":null,"sync_summary":{"success":2},"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":"2024-07-25 07:24:35 UTC","last_sync_words":"less than + a minute","organization_id":10,"organization":{"name":"Test Organization","label":"Test_Organization","id":10},"sync_plan":null,"repository_count":2}]} ' headers: @@ -200,7 +200,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '691' + - '693' 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''; @@ -212,9 +212,9 @@ interactions: Foreman_current_location: - ; ANY Foreman_current_organization: - - 5; Test Organization + - 10; Test Organization Foreman_version: - - 3.7.1 + - 3.12.0-develop Keep-Alive: - timeout=15, max=97 Strict-Transport-Security: @@ -244,19 +244,19 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/products/10/repositories?search=name%3D%22Test+Repository%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/products/8/repositories?search=name%3D%22Test+Repository%22&per_page=4294967296 response: body: - string: '{"total":3,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Repository\"","sort":{"by":"name","order":"asc"},"results":[{"backend_identifier":"29b3d88f-d4d9-4411-b1db-69f3a9c7df12","relative_path":"Test_Organization/Library/custom/Test_Product/Test_Repository","container_repository_name":null,"full_path":"https://centos8-stream-katello-4-9.tanso.example.com/pulp/content/Test_Organization/Library/custom/Test_Product/Test_Repository/","library_instance_id":null,"version_href":"/pulp/api/v3/repositories/rpm/rpm/00e6944a-841e-4bfe-9416-070861ef58fb/versions/1/","remote_href":"/pulp/api/v3/remotes/rpm/rpm/7e1e16ba-4432-4a52-988e-3da939154cbe/","publication_href":"/pulp/api/v3/publications/rpm/rpm/9695e87f-67d7-4765-9f98-e9a13987baef/","content_counts":{"rpm":32,"erratum":4,"package_group":2,"srpm":0,"module_stream":0},"mirroring_policy":"mirror_content_only","id":18,"name":"Test - Repository","label":"Test_Repository","description":null,"content_view_versions":[],"filters":[{"content_view_filter_id":8,"content_view_filter_name":"Test - Package Content View Filter","content_view_id":10,"content_view_name":"Test - Content View","last_affected_repo":true}],"last_sync":{"id":"0c110a6a-16e1-487f-a587-0ab648d99eda","username":"admin","started_at":"2023-11-15 - 09:54:33 UTC","ended_at":"2023-11-15 09:54:46 UTC","state":"stopped","result":"success","progress":1.0},"content_view":{"id":9,"name":"Default - Organization View"},"content_view_version":{"id":8,"name":"Default Organization - View 1.0","content_view_id":9},"kt_environment":{"id":4,"name":"Library"},"content_type":"yum","url":"https://repos.fedorapeople.org/pulp/pulp/demo_repos/zoo/","arch":"noarch","os_versions":[],"content_id":"1700042066424","generic_remote_options":null,"major":null,"minor":null,"product":{"id":10,"cp_id":"347380074197","name":"Test + string: '{"total":2,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test + Repository\"","sort":{"by":"name","order":"asc"},"results":[{"backend_identifier":"c42d6bfb-3280-4660-9f2c-c76c786fa382","relative_path":"Test_Organization/Library/custom/Test_Product/Test_Repository","container_repository_name":"test_organization-test_product-test_repository","full_path":"https://centos8-stream-katello-nightly.tanso.example.com/pulp/content/Test_Organization/Library/custom/Test_Product/Test_Repository/","library_instance_id":null,"version_href":"/pulp/api/v3/repositories/rpm/rpm/0190e8c6-b36d-7e8e-80f0-a0b6470e39c9/versions/1/","remote_href":"/pulp/api/v3/remotes/rpm/rpm/0190e8c6-b9d8-7aa7-a1d8-f8f81d2e719a/","publication_href":"/pulp/api/v3/publications/rpm/rpm/0190e8c6-d0e6-72f6-84b8-8a095de927df/","content_counts":{"rpm":32,"erratum":4,"package_group":2,"srpm":0,"module_stream":0},"mirroring_policy":"mirror_content_only","id":20,"name":"Test + Repository","label":"Test_Repository","description":null,"content_view_versions":[],"filters":[{"content_view_filter_id":78,"content_view_filter_name":"Test + Package Content View Filter","content_view_id":17,"content_view_name":"Test + Content View","last_affected_repo":true}],"last_sync":{"id":"13c7ce53-a0e4-4a3c-9a5e-27f4671e300d","username":"admin","started_at":"2024-07-25 + 07:24:18 UTC","ended_at":"2024-07-25 07:24:23 UTC","state":"stopped","result":"success","progress":1.0},"content_view":{"id":16,"name":"Default + Organization View"},"content_view_version":{"id":9,"name":"Default Organization + View 1.0","content_view_id":16},"kt_environment":{"id":9,"name":"Library"},"content_type":"yum","url":"https://repos.fedorapeople.org/pulp/pulp/demo_repos/zoo/","arch":"noarch","os_versions":[],"content_id":"1721892254686","generic_remote_options":null,"major":null,"minor":null,"product":{"id":8,"cp_id":"527370220153","name":"Test Product","orphaned":false,"redhat":false,"sync_plan":null},"content_label":"Test_Organization_Test_Product_Test_Repository","last_sync_words":"less - than a minute"}],"org_repository_count":3} + than a minute"}],"org_repository_count":2} ' headers: @@ -265,7 +265,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '2056' + - '2106' 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''; @@ -279,7 +279,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.1 + - 3.12.0-develop Keep-Alive: - timeout=15, max=96 Strict-Transport-Security: @@ -309,23 +309,23 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/content_views/10/filters?search=name%3D%22Test+Package+Content+View+Filter%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/content_views/17/filters?search=name%3D%22Test+Package+Content+View+Filter%22&per_page=4294967296 response: body: string: '{"total":1,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Package Content View Filter\"","sort":{"by":"name","order":"asc"},"results":[{"inclusion":false,"id":8,"name":"Test - Package Content View Filter","description":null,"created_at":"2023-11-15 09:55:10 - UTC","updated_at":"2023-11-15 09:55:13 UTC","content_view":{"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":true,"repository_ids":[18],"id":10,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":5,"organization":{"name":"Test - Organization","label":"Test_Organization","id":5},"created_at":"2023-11-15 - 09:55:08 UTC","updated_at":"2023-11-15 09:55:08 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":18,"name":"Test - Repository","label":"Test_Repository","content_type":"yum"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]},"repositories":[{"backend_identifier":"29b3d88f-d4d9-4411-b1db-69f3a9c7df12","relative_path":"Test_Organization/Library/custom/Test_Product/Test_Repository","container_repository_name":null,"full_path":"https://centos8-stream-katello-4-9.tanso.example.com/pulp/content/Test_Organization/Library/custom/Test_Product/Test_Repository/","library_instance_id":null,"version_href":"/pulp/api/v3/repositories/rpm/rpm/00e6944a-841e-4bfe-9416-070861ef58fb/versions/1/","remote_href":"/pulp/api/v3/remotes/rpm/rpm/7e1e16ba-4432-4a52-988e-3da939154cbe/","publication_href":"/pulp/api/v3/publications/rpm/rpm/9695e87f-67d7-4765-9f98-e9a13987baef/","content_counts":{"rpm":32,"erratum":4,"package_group":2,"srpm":0,"module_stream":0},"mirroring_policy":"mirror_content_only","id":18,"name":"Test - Repository","label":"Test_Repository","description":null,"content_view_versions":[],"filters":[{"content_view_filter_id":8,"content_view_filter_name":"Test - Package Content View Filter","content_view_id":10,"content_view_name":"Test - Content View","last_affected_repo":true}],"last_sync":{"id":"0c110a6a-16e1-487f-a587-0ab648d99eda","username":"admin","started_at":"2023-11-15 - 09:54:33 UTC","ended_at":"2023-11-15 09:54:46 UTC","state":"stopped","result":"success","progress":1.0},"content_view":{"id":9,"name":"Default - Organization View"},"content_view_version":{"id":8,"name":"Default Organization - View 1.0","content_view_id":9},"kt_environment":{"id":4,"name":"Library"},"content_type":"yum","url":"https://repos.fedorapeople.org/pulp/pulp/demo_repos/zoo/","arch":"noarch","os_versions":[],"content_id":"1700042066424","generic_remote_options":null,"major":null,"minor":null,"product":{"id":10,"cp_id":"347380074197","name":"Test + Package Content View Filter\"","sort":{"by":"name","order":"asc"},"results":[{"inclusion":false,"id":78,"name":"Test + Package Content View Filter","description":null,"created_at":"2024-07-25 07:24:41 + UTC","updated_at":"2024-07-25 07:24:45 UTC","content_view":{"composite":false,"component_ids":[],"duplicate_repositories_to_publish":[],"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":[],"filtered":true,"repository_ids":[20],"id":17,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":10,"organization":{"name":"Test + Organization","label":"Test_Organization","id":10},"created_at":"2024-07-25 + 07:24:40 UTC","updated_at":"2024-07-25 07:24:40 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":20,"name":"Test + Repository","label":"Test_Repository","content_type":"yum"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]},"repositories":[{"backend_identifier":"c42d6bfb-3280-4660-9f2c-c76c786fa382","relative_path":"Test_Organization/Library/custom/Test_Product/Test_Repository","container_repository_name":"test_organization-test_product-test_repository","full_path":"https://centos8-stream-katello-nightly.tanso.example.com/pulp/content/Test_Organization/Library/custom/Test_Product/Test_Repository/","library_instance_id":null,"version_href":"/pulp/api/v3/repositories/rpm/rpm/0190e8c6-b36d-7e8e-80f0-a0b6470e39c9/versions/1/","remote_href":"/pulp/api/v3/remotes/rpm/rpm/0190e8c6-b9d8-7aa7-a1d8-f8f81d2e719a/","publication_href":"/pulp/api/v3/publications/rpm/rpm/0190e8c6-d0e6-72f6-84b8-8a095de927df/","content_counts":{"rpm":32,"erratum":4,"package_group":2,"srpm":0,"module_stream":0},"mirroring_policy":"mirror_content_only","id":20,"name":"Test + Repository","label":"Test_Repository","description":null,"content_view_versions":[],"filters":[{"content_view_filter_id":78,"content_view_filter_name":"Test + Package Content View Filter","content_view_id":17,"content_view_name":"Test + Content View","last_affected_repo":true}],"last_sync":{"id":"13c7ce53-a0e4-4a3c-9a5e-27f4671e300d","username":"admin","started_at":"2024-07-25 + 07:24:18 UTC","ended_at":"2024-07-25 07:24:23 UTC","state":"stopped","result":"success","progress":1.0},"content_view":{"id":16,"name":"Default + Organization View"},"content_view_version":{"id":9,"name":"Default Organization + View 1.0","content_view_id":16},"kt_environment":{"id":9,"name":"Library"},"content_type":"yum","url":"https://repos.fedorapeople.org/pulp/pulp/demo_repos/zoo/","arch":"noarch","os_versions":[],"content_id":"1721892254686","generic_remote_options":null,"major":null,"minor":null,"product":{"id":8,"cp_id":"527370220153","name":"Test Product","orphaned":false,"redhat":false,"sync_plan":null},"content_label":"Test_Organization_Test_Product_Test_Repository","last_sync_words":"less than a minute"}],"type":"rpm","rules":[]}]} @@ -336,7 +336,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '3148' + - '3219' 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''; @@ -350,7 +350,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.1 + - 3.12.0-develop Keep-Alive: - timeout=15, max=95 Strict-Transport-Security: @@ -380,23 +380,23 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/content_views/10/filters/8 + uri: https://foreman.example.org/katello/api/content_views/17/filters/78 response: body: - string: ' {"inclusion":false,"original_packages":false,"id":8,"name":"Test - Package Content View Filter","description":null,"created_at":"2023-11-15 09:55:10 - UTC","updated_at":"2023-11-15 09:55:13 UTC","content_view":{"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":true,"repository_ids":[18],"id":10,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":5,"organization":{"name":"Test - Organization","label":"Test_Organization","id":5},"created_at":"2023-11-15 - 09:55:08 UTC","updated_at":"2023-11-15 09:55:08 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":18,"name":"Test - Repository","label":"Test_Repository","content_type":"yum","product":{"id":10,"name":"Test - Product"},"content_counts":{"docker_manifest":0,"docker_tag":0,"rpm":32,"package":32,"package_group":2,"erratum":4,"module_stream":0}}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]},"repositories":[{"backend_identifier":"29b3d88f-d4d9-4411-b1db-69f3a9c7df12","relative_path":"Test_Organization/Library/custom/Test_Product/Test_Repository","container_repository_name":null,"full_path":"https://centos8-stream-katello-4-9.tanso.example.com/pulp/content/Test_Organization/Library/custom/Test_Product/Test_Repository/","library_instance_id":null,"version_href":"/pulp/api/v3/repositories/rpm/rpm/00e6944a-841e-4bfe-9416-070861ef58fb/versions/1/","remote_href":"/pulp/api/v3/remotes/rpm/rpm/7e1e16ba-4432-4a52-988e-3da939154cbe/","publication_href":"/pulp/api/v3/publications/rpm/rpm/9695e87f-67d7-4765-9f98-e9a13987baef/","content_counts":{"rpm":32,"erratum":4,"package_group":2,"srpm":0,"module_stream":0},"mirroring_policy":"mirror_content_only","id":18,"name":"Test - Repository","label":"Test_Repository","description":null,"content_view_versions":[],"filters":[{"content_view_filter_id":8,"content_view_filter_name":"Test - Package Content View Filter","content_view_id":10,"content_view_name":"Test - Content View","last_affected_repo":true}],"last_sync":{"id":"0c110a6a-16e1-487f-a587-0ab648d99eda","username":"admin","started_at":"2023-11-15 - 09:54:33 UTC","ended_at":"2023-11-15 09:54:46 UTC","state":"stopped","result":"success","progress":1.0},"content_view":{"id":9,"name":"Default - Organization View"},"content_view_version":{"id":8,"name":"Default Organization - View 1.0","content_view_id":9},"kt_environment":{"id":4,"name":"Library"},"content_type":"yum","url":"https://repos.fedorapeople.org/pulp/pulp/demo_repos/zoo/","arch":"noarch","os_versions":[],"content_id":"1700042066424","generic_remote_options":null,"major":null,"minor":null,"product":{"id":10,"cp_id":"347380074197","name":"Test + string: ' {"inclusion":false,"original_packages":false,"id":78,"name":"Test + Package Content View Filter","description":null,"created_at":"2024-07-25 07:24:41 + UTC","updated_at":"2024-07-25 07:24:45 UTC","content_view":{"composite":false,"component_ids":[],"duplicate_repositories_to_publish":[],"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":[],"filtered":true,"repository_ids":[20],"id":17,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":10,"organization":{"name":"Test + Organization","label":"Test_Organization","id":10},"created_at":"2024-07-25 + 07:24:40 UTC","updated_at":"2024-07-25 07:24:40 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":20,"name":"Test + Repository","label":"Test_Repository","content_type":"yum","product":{"id":8,"name":"Test + Product"},"content_counts":{"docker_manifest":0,"docker_tag":0,"rpm":32,"package":32,"package_group":2,"erratum":4,"module_stream":0}}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]},"repositories":[{"backend_identifier":"c42d6bfb-3280-4660-9f2c-c76c786fa382","relative_path":"Test_Organization/Library/custom/Test_Product/Test_Repository","container_repository_name":"test_organization-test_product-test_repository","full_path":"https://centos8-stream-katello-nightly.tanso.example.com/pulp/content/Test_Organization/Library/custom/Test_Product/Test_Repository/","library_instance_id":null,"version_href":"/pulp/api/v3/repositories/rpm/rpm/0190e8c6-b36d-7e8e-80f0-a0b6470e39c9/versions/1/","remote_href":"/pulp/api/v3/remotes/rpm/rpm/0190e8c6-b9d8-7aa7-a1d8-f8f81d2e719a/","publication_href":"/pulp/api/v3/publications/rpm/rpm/0190e8c6-d0e6-72f6-84b8-8a095de927df/","content_counts":{"rpm":32,"erratum":4,"package_group":2,"srpm":0,"module_stream":0},"mirroring_policy":"mirror_content_only","id":20,"name":"Test + Repository","label":"Test_Repository","description":null,"content_view_versions":[],"filters":[{"content_view_filter_id":78,"content_view_filter_name":"Test + Package Content View Filter","content_view_id":17,"content_view_name":"Test + Content View","last_affected_repo":true}],"last_sync":{"id":"13c7ce53-a0e4-4a3c-9a5e-27f4671e300d","username":"admin","started_at":"2024-07-25 + 07:24:18 UTC","ended_at":"2024-07-25 07:24:23 UTC","state":"stopped","result":"success","progress":1.0},"content_view":{"id":16,"name":"Default + Organization View"},"content_view_version":{"id":9,"name":"Default Organization + View 1.0","content_view_id":16},"kt_environment":{"id":9,"name":"Library"},"content_type":"yum","url":"https://repos.fedorapeople.org/pulp/pulp/demo_repos/zoo/","arch":"noarch","os_versions":[],"content_id":"1721892254686","generic_remote_options":null,"major":null,"minor":null,"product":{"id":8,"cp_id":"527370220153","name":"Test Product","orphaned":false,"redhat":false,"sync_plan":null},"content_label":"Test_Organization_Test_Product_Test_Repository","last_sync_words":"less than a minute"}],"type":"rpm","rules":[]} @@ -407,7 +407,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '3156' + - '3226' 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''; @@ -421,7 +421,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.1 + - 3.12.0-develop Keep-Alive: - timeout=15, max=94 Strict-Transport-Security: @@ -455,23 +455,23 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: PUT - uri: https://foreman.example.org/katello/api/content_views/10/filters/8 + uri: https://foreman.example.org/katello/api/content_views/17/filters/78 response: body: - string: ' {"inclusion":true,"original_packages":false,"id":8,"name":"Test Package - Content View Filter","description":null,"created_at":"2023-11-15 09:55:10 - UTC","updated_at":"2023-11-15 09:55:15 UTC","content_view":{"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":true,"repository_ids":[18],"id":10,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":5,"organization":{"name":"Test - Organization","label":"Test_Organization","id":5},"created_at":"2023-11-15 - 09:55:08 UTC","updated_at":"2023-11-15 09:55:08 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":18,"name":"Test - Repository","label":"Test_Repository","content_type":"yum","product":{"id":10,"name":"Test - Product"},"content_counts":{"docker_manifest":0,"docker_tag":0,"rpm":32,"package":32,"package_group":2,"erratum":4,"module_stream":0}}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]},"repositories":[{"backend_identifier":"29b3d88f-d4d9-4411-b1db-69f3a9c7df12","relative_path":"Test_Organization/Library/custom/Test_Product/Test_Repository","container_repository_name":null,"full_path":"https://centos8-stream-katello-4-9.tanso.example.com/pulp/content/Test_Organization/Library/custom/Test_Product/Test_Repository/","library_instance_id":null,"version_href":"/pulp/api/v3/repositories/rpm/rpm/00e6944a-841e-4bfe-9416-070861ef58fb/versions/1/","remote_href":"/pulp/api/v3/remotes/rpm/rpm/7e1e16ba-4432-4a52-988e-3da939154cbe/","publication_href":"/pulp/api/v3/publications/rpm/rpm/9695e87f-67d7-4765-9f98-e9a13987baef/","content_counts":{"rpm":32,"erratum":4,"package_group":2,"srpm":0,"module_stream":0},"mirroring_policy":"mirror_content_only","id":18,"name":"Test - Repository","label":"Test_Repository","description":null,"content_view_versions":[],"filters":[{"content_view_filter_id":8,"content_view_filter_name":"Test - Package Content View Filter","content_view_id":10,"content_view_name":"Test - Content View","last_affected_repo":true}],"last_sync":{"id":"0c110a6a-16e1-487f-a587-0ab648d99eda","username":"admin","started_at":"2023-11-15 - 09:54:33 UTC","ended_at":"2023-11-15 09:54:46 UTC","state":"stopped","result":"success","progress":1.0},"content_view":{"id":9,"name":"Default - Organization View"},"content_view_version":{"id":8,"name":"Default Organization - View 1.0","content_view_id":9},"kt_environment":{"id":4,"name":"Library"},"content_type":"yum","url":"https://repos.fedorapeople.org/pulp/pulp/demo_repos/zoo/","arch":"noarch","os_versions":[],"content_id":"1700042066424","generic_remote_options":null,"major":null,"minor":null,"product":{"id":10,"cp_id":"347380074197","name":"Test + string: ' {"inclusion":true,"original_packages":false,"id":78,"name":"Test + Package Content View Filter","description":null,"created_at":"2024-07-25 07:24:41 + UTC","updated_at":"2024-07-25 07:24:46 UTC","content_view":{"composite":false,"component_ids":[],"duplicate_repositories_to_publish":[],"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":[],"filtered":true,"repository_ids":[20],"id":17,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":10,"organization":{"name":"Test + Organization","label":"Test_Organization","id":10},"created_at":"2024-07-25 + 07:24:40 UTC","updated_at":"2024-07-25 07:24:40 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":20,"name":"Test + Repository","label":"Test_Repository","content_type":"yum","product":{"id":8,"name":"Test + Product"},"content_counts":{"docker_manifest":0,"docker_tag":0,"rpm":32,"package":32,"package_group":2,"erratum":4,"module_stream":0}}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]},"repositories":[{"backend_identifier":"c42d6bfb-3280-4660-9f2c-c76c786fa382","relative_path":"Test_Organization/Library/custom/Test_Product/Test_Repository","container_repository_name":"test_organization-test_product-test_repository","full_path":"https://centos8-stream-katello-nightly.tanso.example.com/pulp/content/Test_Organization/Library/custom/Test_Product/Test_Repository/","library_instance_id":null,"version_href":"/pulp/api/v3/repositories/rpm/rpm/0190e8c6-b36d-7e8e-80f0-a0b6470e39c9/versions/1/","remote_href":"/pulp/api/v3/remotes/rpm/rpm/0190e8c6-b9d8-7aa7-a1d8-f8f81d2e719a/","publication_href":"/pulp/api/v3/publications/rpm/rpm/0190e8c6-d0e6-72f6-84b8-8a095de927df/","content_counts":{"rpm":32,"erratum":4,"package_group":2,"srpm":0,"module_stream":0},"mirroring_policy":"mirror_content_only","id":20,"name":"Test + Repository","label":"Test_Repository","description":null,"content_view_versions":[],"filters":[{"content_view_filter_id":78,"content_view_filter_name":"Test + Package Content View Filter","content_view_id":17,"content_view_name":"Test + Content View","last_affected_repo":true}],"last_sync":{"id":"13c7ce53-a0e4-4a3c-9a5e-27f4671e300d","username":"admin","started_at":"2024-07-25 + 07:24:18 UTC","ended_at":"2024-07-25 07:24:23 UTC","state":"stopped","result":"success","progress":1.0},"content_view":{"id":16,"name":"Default + Organization View"},"content_view_version":{"id":9,"name":"Default Organization + View 1.0","content_view_id":16},"kt_environment":{"id":9,"name":"Library"},"content_type":"yum","url":"https://repos.fedorapeople.org/pulp/pulp/demo_repos/zoo/","arch":"noarch","os_versions":[],"content_id":"1721892254686","generic_remote_options":null,"major":null,"minor":null,"product":{"id":8,"cp_id":"527370220153","name":"Test Product","orphaned":false,"redhat":false,"sync_plan":null},"content_label":"Test_Organization_Test_Product_Test_Repository","last_sync_words":"less than a minute"}],"type":"rpm","rules":[]} @@ -482,7 +482,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '3155' + - '3225' 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''; @@ -496,7 +496,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.1 + - 3.12.0-develop Keep-Alive: - timeout=15, max=93 Strict-Transport-Security: diff --git a/tests/test_playbooks/fixtures/content_view_filter-7.yml b/tests/test_playbooks/fixtures/content_view_filter-7.yml index e9bc85193..51b73331c 100644 --- a/tests/test_playbooks/fixtures/content_view_filter-7.yml +++ b/tests/test_playbooks/fixtures/content_view_filter-7.yml @@ -14,14 +14,14 @@ interactions: uri: https://foreman.example.org/api/status response: body: - string: '{"result":"ok","status":200,"version":"3.7.1","api_version":2}' + string: '{"result":"ok","status":200,"version":"3.12.0-develop","api_version":2}' headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive Content-Length: - - '62' + - '71' 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''; @@ -35,7 +35,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.1 + - 3.12.0-develop Keep-Alive: - timeout=15, max=100 Strict-Transport-Security: @@ -70,8 +70,8 @@ interactions: body: 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-15 - 09:54:22 UTC\",\"updated_at\":\"2023-11-15 09:54:23 UTC\",\"id\":5,\"name\":\"Test + {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\":\"Test_Organization\",\"created_at\":\"2024-07-25 + 07:24:10 UTC\",\"updated_at\":\"2024-07-25 07:24:12 UTC\",\"id\":10,\"name\":\"Test Organization\",\"title\":\"Test Organization\",\"description\":\"A test organization\"}]\n}\n" headers: Cache-Control: @@ -79,7 +79,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '388' + - '389' 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''; @@ -93,7 +93,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.1 + - 3.12.0-develop Keep-Alive: - timeout=15, max=99 Strict-Transport-Security: @@ -123,14 +123,14 @@ 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%22Test+Content+View%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/organizations/10/content_views?search=name%3D%22Test+Content+View%22&per_page=4294967296 response: body: string: '{"total":2,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Content View\"","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":true,"repository_ids":[18],"id":10,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":5,"organization":{"name":"Test - Organization","label":"Test_Organization","id":5},"created_at":"2023-11-15 - 09:55:08 UTC","updated_at":"2023-11-15 09:55:08 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":18,"name":"Test + Content View\"","sort":{"by":"name","order":"asc"},"results":[{"composite":false,"component_ids":[],"duplicate_repositories_to_publish":[],"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":[],"filtered":true,"repository_ids":[20],"id":17,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":10,"organization":{"name":"Test + Organization","label":"Test_Organization","id":10},"created_at":"2024-07-25 + 07:24:40 UTC","updated_at":"2024-07-25 07:24:40 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":20,"name":"Test Repository","label":"Test_Repository","content_type":"yum"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]}]} ' @@ -140,7 +140,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '1049' + - '1069' 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''; @@ -152,9 +152,9 @@ interactions: Foreman_current_location: - ; ANY Foreman_current_organization: - - 5; Test Organization + - 10; Test Organization Foreman_version: - - 3.7.1 + - 3.12.0-develop Keep-Alive: - timeout=15, max=98 Strict-Transport-Security: @@ -184,14 +184,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%22Test+Product%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/organizations/10/products?search=name%3D%22Test+Product%22&per_page=4294967296 response: body: string: '{"total":1,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Product\"","sort":{"by":"name","order":"asc"},"results":[{"id":10,"cp_id":"347380074197","name":"Test - Product","label":"Test_Product","description":"A happy little test product","provider_id":7,"sync_plan_id":null,"sync_summary":{"success":3},"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-15 09:54:59 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":3}]} + Product\"","sort":{"by":"name","order":"asc"},"results":[{"id":8,"cp_id":"527370220153","name":"Test + Product","label":"Test_Product","description":"A happy little test product","provider_id":17,"sync_plan_id":null,"sync_summary":{"success":2},"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":"2024-07-25 07:24:35 UTC","last_sync_words":"less than + a minute","organization_id":10,"organization":{"name":"Test Organization","label":"Test_Organization","id":10},"sync_plan":null,"repository_count":2}]} ' headers: @@ -200,7 +200,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '691' + - '693' 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''; @@ -212,9 +212,9 @@ interactions: Foreman_current_location: - ; ANY Foreman_current_organization: - - 5; Test Organization + - 10; Test Organization Foreman_version: - - 3.7.1 + - 3.12.0-develop Keep-Alive: - timeout=15, max=97 Strict-Transport-Security: @@ -244,19 +244,19 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/products/10/repositories?search=name%3D%22Test+Repository%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/products/8/repositories?search=name%3D%22Test+Repository%22&per_page=4294967296 response: body: - string: '{"total":3,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Repository\"","sort":{"by":"name","order":"asc"},"results":[{"backend_identifier":"29b3d88f-d4d9-4411-b1db-69f3a9c7df12","relative_path":"Test_Organization/Library/custom/Test_Product/Test_Repository","container_repository_name":null,"full_path":"https://centos8-stream-katello-4-9.tanso.example.com/pulp/content/Test_Organization/Library/custom/Test_Product/Test_Repository/","library_instance_id":null,"version_href":"/pulp/api/v3/repositories/rpm/rpm/00e6944a-841e-4bfe-9416-070861ef58fb/versions/1/","remote_href":"/pulp/api/v3/remotes/rpm/rpm/7e1e16ba-4432-4a52-988e-3da939154cbe/","publication_href":"/pulp/api/v3/publications/rpm/rpm/9695e87f-67d7-4765-9f98-e9a13987baef/","content_counts":{"rpm":32,"erratum":4,"package_group":2,"srpm":0,"module_stream":0},"mirroring_policy":"mirror_content_only","id":18,"name":"Test - Repository","label":"Test_Repository","description":null,"content_view_versions":[],"filters":[{"content_view_filter_id":8,"content_view_filter_name":"Test - Package Content View Filter","content_view_id":10,"content_view_name":"Test - Content View","last_affected_repo":true}],"last_sync":{"id":"0c110a6a-16e1-487f-a587-0ab648d99eda","username":"admin","started_at":"2023-11-15 - 09:54:33 UTC","ended_at":"2023-11-15 09:54:46 UTC","state":"stopped","result":"success","progress":1.0},"content_view":{"id":9,"name":"Default - Organization View"},"content_view_version":{"id":8,"name":"Default Organization - View 1.0","content_view_id":9},"kt_environment":{"id":4,"name":"Library"},"content_type":"yum","url":"https://repos.fedorapeople.org/pulp/pulp/demo_repos/zoo/","arch":"noarch","os_versions":[],"content_id":"1700042066424","generic_remote_options":null,"major":null,"minor":null,"product":{"id":10,"cp_id":"347380074197","name":"Test + string: '{"total":2,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test + Repository\"","sort":{"by":"name","order":"asc"},"results":[{"backend_identifier":"c42d6bfb-3280-4660-9f2c-c76c786fa382","relative_path":"Test_Organization/Library/custom/Test_Product/Test_Repository","container_repository_name":"test_organization-test_product-test_repository","full_path":"https://centos8-stream-katello-nightly.tanso.example.com/pulp/content/Test_Organization/Library/custom/Test_Product/Test_Repository/","library_instance_id":null,"version_href":"/pulp/api/v3/repositories/rpm/rpm/0190e8c6-b36d-7e8e-80f0-a0b6470e39c9/versions/1/","remote_href":"/pulp/api/v3/remotes/rpm/rpm/0190e8c6-b9d8-7aa7-a1d8-f8f81d2e719a/","publication_href":"/pulp/api/v3/publications/rpm/rpm/0190e8c6-d0e6-72f6-84b8-8a095de927df/","content_counts":{"rpm":32,"erratum":4,"package_group":2,"srpm":0,"module_stream":0},"mirroring_policy":"mirror_content_only","id":20,"name":"Test + Repository","label":"Test_Repository","description":null,"content_view_versions":[],"filters":[{"content_view_filter_id":78,"content_view_filter_name":"Test + Package Content View Filter","content_view_id":17,"content_view_name":"Test + Content View","last_affected_repo":true}],"last_sync":{"id":"13c7ce53-a0e4-4a3c-9a5e-27f4671e300d","username":"admin","started_at":"2024-07-25 + 07:24:18 UTC","ended_at":"2024-07-25 07:24:23 UTC","state":"stopped","result":"success","progress":1.0},"content_view":{"id":16,"name":"Default + Organization View"},"content_view_version":{"id":9,"name":"Default Organization + View 1.0","content_view_id":16},"kt_environment":{"id":9,"name":"Library"},"content_type":"yum","url":"https://repos.fedorapeople.org/pulp/pulp/demo_repos/zoo/","arch":"noarch","os_versions":[],"content_id":"1721892254686","generic_remote_options":null,"major":null,"minor":null,"product":{"id":8,"cp_id":"527370220153","name":"Test Product","orphaned":false,"redhat":false,"sync_plan":null},"content_label":"Test_Organization_Test_Product_Test_Repository","last_sync_words":"less - than a minute"}],"org_repository_count":3} + than a minute"}],"org_repository_count":2} ' headers: @@ -265,7 +265,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '2056' + - '2106' 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''; @@ -279,7 +279,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.1 + - 3.12.0-develop Keep-Alive: - timeout=15, max=96 Strict-Transport-Security: @@ -309,25 +309,25 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/content_views/10/filters?search=name%3D%22Test+Package+Content+View+Filter%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/content_views/17/filters?search=name%3D%22Test+Package+Content+View+Filter%22&per_page=4294967296 response: body: string: '{"total":1,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Package Content View Filter\"","sort":{"by":"name","order":"asc"},"results":[{"inclusion":true,"id":8,"name":"Test - Package Content View Filter","description":null,"created_at":"2023-11-15 09:55:10 - UTC","updated_at":"2023-11-15 09:55:15 UTC","content_view":{"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":true,"repository_ids":[18],"id":10,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":5,"organization":{"name":"Test - Organization","label":"Test_Organization","id":5},"created_at":"2023-11-15 - 09:55:08 UTC","updated_at":"2023-11-15 09:55:08 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":18,"name":"Test - Repository","label":"Test_Repository","content_type":"yum"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]},"repositories":[{"backend_identifier":"29b3d88f-d4d9-4411-b1db-69f3a9c7df12","relative_path":"Test_Organization/Library/custom/Test_Product/Test_Repository","container_repository_name":null,"full_path":"https://centos8-stream-katello-4-9.tanso.example.com/pulp/content/Test_Organization/Library/custom/Test_Product/Test_Repository/","library_instance_id":null,"version_href":"/pulp/api/v3/repositories/rpm/rpm/00e6944a-841e-4bfe-9416-070861ef58fb/versions/1/","remote_href":"/pulp/api/v3/remotes/rpm/rpm/7e1e16ba-4432-4a52-988e-3da939154cbe/","publication_href":"/pulp/api/v3/publications/rpm/rpm/9695e87f-67d7-4765-9f98-e9a13987baef/","content_counts":{"rpm":32,"erratum":4,"package_group":2,"srpm":0,"module_stream":0},"mirroring_policy":"mirror_content_only","id":18,"name":"Test - Repository","label":"Test_Repository","description":null,"content_view_versions":[],"filters":[{"content_view_filter_id":8,"content_view_filter_name":"Test - Package Content View Filter","content_view_id":10,"content_view_name":"Test - Content View","last_affected_repo":true}],"last_sync":{"id":"0c110a6a-16e1-487f-a587-0ab648d99eda","username":"admin","started_at":"2023-11-15 - 09:54:33 UTC","ended_at":"2023-11-15 09:54:46 UTC","state":"stopped","result":"success","progress":1.0},"content_view":{"id":9,"name":"Default - Organization View"},"content_view_version":{"id":8,"name":"Default Organization - View 1.0","content_view_id":9},"kt_environment":{"id":4,"name":"Library"},"content_type":"yum","url":"https://repos.fedorapeople.org/pulp/pulp/demo_repos/zoo/","arch":"noarch","os_versions":[],"content_id":"1700042066424","generic_remote_options":null,"major":null,"minor":null,"product":{"id":10,"cp_id":"347380074197","name":"Test - Product","orphaned":false,"redhat":false,"sync_plan":null},"content_label":"Test_Organization_Test_Product_Test_Repository","last_sync_words":"1 - minute"}],"type":"rpm","rules":[]}]} + Package Content View Filter\"","sort":{"by":"name","order":"asc"},"results":[{"inclusion":true,"id":78,"name":"Test + Package Content View Filter","description":null,"created_at":"2024-07-25 07:24:41 + UTC","updated_at":"2024-07-25 07:24:46 UTC","content_view":{"composite":false,"component_ids":[],"duplicate_repositories_to_publish":[],"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":[],"filtered":true,"repository_ids":[20],"id":17,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":10,"organization":{"name":"Test + Organization","label":"Test_Organization","id":10},"created_at":"2024-07-25 + 07:24:40 UTC","updated_at":"2024-07-25 07:24:40 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":20,"name":"Test + Repository","label":"Test_Repository","content_type":"yum"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]},"repositories":[{"backend_identifier":"c42d6bfb-3280-4660-9f2c-c76c786fa382","relative_path":"Test_Organization/Library/custom/Test_Product/Test_Repository","container_repository_name":"test_organization-test_product-test_repository","full_path":"https://centos8-stream-katello-nightly.tanso.example.com/pulp/content/Test_Organization/Library/custom/Test_Product/Test_Repository/","library_instance_id":null,"version_href":"/pulp/api/v3/repositories/rpm/rpm/0190e8c6-b36d-7e8e-80f0-a0b6470e39c9/versions/1/","remote_href":"/pulp/api/v3/remotes/rpm/rpm/0190e8c6-b9d8-7aa7-a1d8-f8f81d2e719a/","publication_href":"/pulp/api/v3/publications/rpm/rpm/0190e8c6-d0e6-72f6-84b8-8a095de927df/","content_counts":{"rpm":32,"erratum":4,"package_group":2,"srpm":0,"module_stream":0},"mirroring_policy":"mirror_content_only","id":20,"name":"Test + Repository","label":"Test_Repository","description":null,"content_view_versions":[],"filters":[{"content_view_filter_id":78,"content_view_filter_name":"Test + Package Content View Filter","content_view_id":17,"content_view_name":"Test + Content View","last_affected_repo":true}],"last_sync":{"id":"13c7ce53-a0e4-4a3c-9a5e-27f4671e300d","username":"admin","started_at":"2024-07-25 + 07:24:18 UTC","ended_at":"2024-07-25 07:24:23 UTC","state":"stopped","result":"success","progress":1.0},"content_view":{"id":16,"name":"Default + Organization View"},"content_view_version":{"id":9,"name":"Default Organization + View 1.0","content_view_id":16},"kt_environment":{"id":9,"name":"Library"},"content_type":"yum","url":"https://repos.fedorapeople.org/pulp/pulp/demo_repos/zoo/","arch":"noarch","os_versions":[],"content_id":"1721892254686","generic_remote_options":null,"major":null,"minor":null,"product":{"id":8,"cp_id":"527370220153","name":"Test + Product","orphaned":false,"redhat":false,"sync_plan":null},"content_label":"Test_Organization_Test_Product_Test_Repository","last_sync_words":"less + than a minute"}],"type":"rpm","rules":[]}]} ' headers: @@ -336,7 +336,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '3137' + - '3218' 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''; @@ -350,7 +350,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.1 + - 3.12.0-develop Keep-Alive: - timeout=15, max=95 Strict-Transport-Security: @@ -368,77 +368,6 @@ 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/content_views/10/filters/8 - response: - body: - string: ' {"inclusion":true,"original_packages":false,"id":8,"name":"Test Package - Content View Filter","description":null,"created_at":"2023-11-15 09:55:10 - UTC","updated_at":"2023-11-15 09:55:15 UTC","content_view":{"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":true,"repository_ids":[18],"id":10,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":5,"organization":{"name":"Test - Organization","label":"Test_Organization","id":5},"created_at":"2023-11-15 - 09:55:08 UTC","updated_at":"2023-11-15 09:55:08 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":18,"name":"Test - Repository","label":"Test_Repository","content_type":"yum","product":{"id":10,"name":"Test - Product"},"content_counts":{"docker_manifest":0,"docker_tag":0,"rpm":32,"package":32,"package_group":2,"erratum":4,"module_stream":0}}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]},"repositories":[{"backend_identifier":"29b3d88f-d4d9-4411-b1db-69f3a9c7df12","relative_path":"Test_Organization/Library/custom/Test_Product/Test_Repository","container_repository_name":null,"full_path":"https://centos8-stream-katello-4-9.tanso.example.com/pulp/content/Test_Organization/Library/custom/Test_Product/Test_Repository/","library_instance_id":null,"version_href":"/pulp/api/v3/repositories/rpm/rpm/00e6944a-841e-4bfe-9416-070861ef58fb/versions/1/","remote_href":"/pulp/api/v3/remotes/rpm/rpm/7e1e16ba-4432-4a52-988e-3da939154cbe/","publication_href":"/pulp/api/v3/publications/rpm/rpm/9695e87f-67d7-4765-9f98-e9a13987baef/","content_counts":{"rpm":32,"erratum":4,"package_group":2,"srpm":0,"module_stream":0},"mirroring_policy":"mirror_content_only","id":18,"name":"Test - Repository","label":"Test_Repository","description":null,"content_view_versions":[],"filters":[{"content_view_filter_id":8,"content_view_filter_name":"Test - Package Content View Filter","content_view_id":10,"content_view_name":"Test - Content View","last_affected_repo":true}],"last_sync":{"id":"0c110a6a-16e1-487f-a587-0ab648d99eda","username":"admin","started_at":"2023-11-15 - 09:54:33 UTC","ended_at":"2023-11-15 09:54:46 UTC","state":"stopped","result":"success","progress":1.0},"content_view":{"id":9,"name":"Default - Organization View"},"content_view_version":{"id":8,"name":"Default Organization - View 1.0","content_view_id":9},"kt_environment":{"id":4,"name":"Library"},"content_type":"yum","url":"https://repos.fedorapeople.org/pulp/pulp/demo_repos/zoo/","arch":"noarch","os_versions":[],"content_id":"1700042066424","generic_remote_options":null,"major":null,"minor":null,"product":{"id":10,"cp_id":"347380074197","name":"Test - Product","orphaned":false,"redhat":false,"sync_plan":null},"content_label":"Test_Organization_Test_Product_Test_Repository","last_sync_words":"1 - minute"}],"type":"rpm","rules":[]} - - ' - headers: - Cache-Control: - - max-age=0, private, must-revalidate - Connection: - - Keep-Alive - Content-Length: - - '3145' - 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 - request: body: null headers: @@ -453,16 +382,16 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: DELETE - uri: https://foreman.example.org/katello/api/content_views/10/filters/8 + uri: https://foreman.example.org/katello/api/content_views/17/filters/78 response: body: - string: ' {"inclusion":true,"original_packages":false,"id":8,"name":"Test Package - Content View Filter","description":null,"created_at":"2023-11-15 09:55:10 - UTC","updated_at":"2023-11-15 09:55:15 UTC","content_view":{"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":[18],"id":10,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":5,"organization":{"name":"Test - Organization","label":"Test_Organization","id":5},"created_at":"2023-11-15 - 09:55:08 UTC","updated_at":"2023-11-15 09:55:08 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":18,"name":"Test - Repository","label":"Test_Repository","content_type":"yum","product":{"id":10,"name":"Test + string: ' {"inclusion":true,"original_packages":false,"id":78,"name":"Test + Package Content View Filter","description":null,"created_at":"2024-07-25 07:24:41 + UTC","updated_at":"2024-07-25 07:24:46 UTC","content_view":{"composite":false,"component_ids":[],"duplicate_repositories_to_publish":[],"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":[],"filtered":false,"repository_ids":[20],"id":17,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":10,"organization":{"name":"Test + Organization","label":"Test_Organization","id":10},"created_at":"2024-07-25 + 07:24:40 UTC","updated_at":"2024-07-25 07:24:40 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":20,"name":"Test + Repository","label":"Test_Repository","content_type":"yum","product":{"id":8,"name":"Test Product"},"content_counts":{"docker_manifest":0,"docker_tag":0,"rpm":32,"package":32,"package_group":2,"erratum":4,"module_stream":0}}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]},"repositories":[],"type":"rpm","rules":[]} ' @@ -472,7 +401,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '1295' + - '1315' 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''; @@ -486,9 +415,9 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.1 + - 3.12.0-develop Keep-Alive: - - timeout=15, max=93 + - timeout=15, max=94 Strict-Transport-Security: - max-age=631139040; includeSubdomains X-Content-Type-Options: diff --git a/tests/test_playbooks/fixtures/content_view_filter-8.yml b/tests/test_playbooks/fixtures/content_view_filter-8.yml index 3a6a23a3b..3218ba0bc 100644 --- a/tests/test_playbooks/fixtures/content_view_filter-8.yml +++ b/tests/test_playbooks/fixtures/content_view_filter-8.yml @@ -14,14 +14,14 @@ interactions: uri: https://foreman.example.org/api/status response: body: - string: '{"result":"ok","status":200,"version":"3.7.1","api_version":2}' + string: '{"result":"ok","status":200,"version":"3.12.0-develop","api_version":2}' headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive Content-Length: - - '62' + - '71' 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''; @@ -35,7 +35,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.1 + - 3.12.0-develop Keep-Alive: - timeout=15, max=100 Strict-Transport-Security: @@ -70,8 +70,8 @@ interactions: body: 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-15 - 09:54:22 UTC\",\"updated_at\":\"2023-11-15 09:54:23 UTC\",\"id\":5,\"name\":\"Test + {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\":\"Test_Organization\",\"created_at\":\"2024-07-25 + 07:24:10 UTC\",\"updated_at\":\"2024-07-25 07:24:12 UTC\",\"id\":10,\"name\":\"Test Organization\",\"title\":\"Test Organization\",\"description\":\"A test organization\"}]\n}\n" headers: Cache-Control: @@ -79,7 +79,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '388' + - '389' 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''; @@ -93,7 +93,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.1 + - 3.12.0-develop Keep-Alive: - timeout=15, max=99 Strict-Transport-Security: @@ -123,14 +123,14 @@ 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%22Test+Content+View%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/organizations/10/content_views?search=name%3D%22Test+Content+View%22&per_page=4294967296 response: body: string: '{"total":2,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Content View\"","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":[18],"id":10,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":5,"organization":{"name":"Test - Organization","label":"Test_Organization","id":5},"created_at":"2023-11-15 - 09:55:08 UTC","updated_at":"2023-11-15 09:55:08 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":18,"name":"Test + Content View\"","sort":{"by":"name","order":"asc"},"results":[{"composite":false,"component_ids":[],"duplicate_repositories_to_publish":[],"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":[],"filtered":false,"repository_ids":[20],"id":17,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":10,"organization":{"name":"Test + Organization","label":"Test_Organization","id":10},"created_at":"2024-07-25 + 07:24:40 UTC","updated_at":"2024-07-25 07:24:40 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":20,"name":"Test Repository","label":"Test_Repository","content_type":"yum"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]}]} ' @@ -140,7 +140,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '1050' + - '1070' 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''; @@ -152,9 +152,9 @@ interactions: Foreman_current_location: - ; ANY Foreman_current_organization: - - 5; Test Organization + - 10; Test Organization Foreman_version: - - 3.7.1 + - 3.12.0-develop Keep-Alive: - timeout=15, max=98 Strict-Transport-Security: @@ -184,7 +184,7 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/content_views/10/filters?search=name%3D%22Test+Errata+id+Content+View+Filter%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/content_views/17/filters?search=name%3D%22Test+Errata+id+Content+View+Filter%22&per_page=4294967296 response: body: string: '{"total":0,"subtotal":0,"selectable":0,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test @@ -211,7 +211,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.1 + - 3.12.0-develop Keep-Alive: - timeout=15, max=97 Strict-Transport-Security: @@ -246,15 +246,15 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: POST - uri: https://foreman.example.org/katello/api/content_views/10/filters + uri: https://foreman.example.org/katello/api/content_views/17/filters response: body: - string: ' {"inclusion":false,"id":9,"name":"Test Errata id Content View Filter","description":null,"created_at":"2023-11-15 - 09:55:16 UTC","updated_at":"2023-11-15 09:55:16 UTC","content_view":{"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":true,"repository_ids":[18],"id":10,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":5,"organization":{"name":"Test - Organization","label":"Test_Organization","id":5},"created_at":"2023-11-15 - 09:55:08 UTC","updated_at":"2023-11-15 09:55:08 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":18,"name":"Test - Repository","label":"Test_Repository","content_type":"yum","product":{"id":10,"name":"Test + string: ' {"inclusion":false,"id":79,"name":"Test Errata id Content View Filter","description":null,"created_at":"2024-07-25 + 07:24:48 UTC","updated_at":"2024-07-25 07:24:48 UTC","content_view":{"composite":false,"component_ids":[],"duplicate_repositories_to_publish":[],"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":[],"filtered":true,"repository_ids":[20],"id":17,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":10,"organization":{"name":"Test + Organization","label":"Test_Organization","id":10},"created_at":"2024-07-25 + 07:24:40 UTC","updated_at":"2024-07-25 07:24:40 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":20,"name":"Test + Repository","label":"Test_Repository","content_type":"yum","product":{"id":8,"name":"Test Product"},"content_counts":{"docker_manifest":0,"docker_tag":0,"rpm":32,"package":32,"package_group":2,"erratum":4,"module_stream":0}}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]},"repositories":[],"type":"erratum","rules":[]} ' @@ -264,7 +264,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '1275' + - '1295' 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''; @@ -278,7 +278,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.1 + - 3.12.0-develop Keep-Alive: - timeout=15, max=96 Strict-Transport-Security: diff --git a/tests/test_playbooks/fixtures/content_view_filter-9.yml b/tests/test_playbooks/fixtures/content_view_filter-9.yml index f88172534..34b555f31 100644 --- a/tests/test_playbooks/fixtures/content_view_filter-9.yml +++ b/tests/test_playbooks/fixtures/content_view_filter-9.yml @@ -14,14 +14,14 @@ interactions: uri: https://foreman.example.org/api/status response: body: - string: '{"result":"ok","status":200,"version":"3.7.1","api_version":2}' + string: '{"result":"ok","status":200,"version":"3.12.0-develop","api_version":2}' headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive Content-Length: - - '62' + - '71' 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''; @@ -35,7 +35,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.1 + - 3.12.0-develop Keep-Alive: - timeout=15, max=100 Strict-Transport-Security: @@ -70,8 +70,8 @@ interactions: body: 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-15 - 09:54:22 UTC\",\"updated_at\":\"2023-11-15 09:54:23 UTC\",\"id\":5,\"name\":\"Test + {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\":\"Test_Organization\",\"created_at\":\"2024-07-25 + 07:24:10 UTC\",\"updated_at\":\"2024-07-25 07:24:12 UTC\",\"id\":10,\"name\":\"Test Organization\",\"title\":\"Test Organization\",\"description\":\"A test organization\"}]\n}\n" headers: Cache-Control: @@ -79,7 +79,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '388' + - '389' 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''; @@ -93,7 +93,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.1 + - 3.12.0-develop Keep-Alive: - timeout=15, max=99 Strict-Transport-Security: @@ -123,14 +123,14 @@ 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%22Test+Content+View%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/organizations/10/content_views?search=name%3D%22Test+Content+View%22&per_page=4294967296 response: body: string: '{"total":2,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Content View\"","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":true,"repository_ids":[18],"id":10,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":5,"organization":{"name":"Test - Organization","label":"Test_Organization","id":5},"created_at":"2023-11-15 - 09:55:08 UTC","updated_at":"2023-11-15 09:55:08 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":18,"name":"Test + Content View\"","sort":{"by":"name","order":"asc"},"results":[{"composite":false,"component_ids":[],"duplicate_repositories_to_publish":[],"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":[],"filtered":true,"repository_ids":[20],"id":17,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":10,"organization":{"name":"Test + Organization","label":"Test_Organization","id":10},"created_at":"2024-07-25 + 07:24:40 UTC","updated_at":"2024-07-25 07:24:40 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":20,"name":"Test Repository","label":"Test_Repository","content_type":"yum"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]}]} ' @@ -140,7 +140,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '1049' + - '1069' 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''; @@ -152,9 +152,9 @@ interactions: Foreman_current_location: - ; ANY Foreman_current_organization: - - 5; Test Organization + - 10; Test Organization Foreman_version: - - 3.7.1 + - 3.12.0-develop Keep-Alive: - timeout=15, max=98 Strict-Transport-Security: @@ -184,16 +184,16 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/content_views/10/filters?search=name%3D%22Test+Errata+id+Content+View+Filter%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/content_views/17/filters?search=name%3D%22Test+Errata+id+Content+View+Filter%22&per_page=4294967296 response: body: string: '{"total":1,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Errata id Content View Filter\"","sort":{"by":"name","order":"asc"},"results":[{"inclusion":false,"id":9,"name":"Test - Errata id Content View Filter","description":null,"created_at":"2023-11-15 - 09:55:16 UTC","updated_at":"2023-11-15 09:55:16 UTC","content_view":{"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":true,"repository_ids":[18],"id":10,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":5,"organization":{"name":"Test - Organization","label":"Test_Organization","id":5},"created_at":"2023-11-15 - 09:55:08 UTC","updated_at":"2023-11-15 09:55:08 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":18,"name":"Test + Errata id Content View Filter\"","sort":{"by":"name","order":"asc"},"results":[{"inclusion":false,"id":79,"name":"Test + Errata id Content View Filter","description":null,"created_at":"2024-07-25 + 07:24:48 UTC","updated_at":"2024-07-25 07:24:48 UTC","content_view":{"composite":false,"component_ids":[],"duplicate_repositories_to_publish":[],"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":[],"filtered":true,"repository_ids":[20],"id":17,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":10,"organization":{"name":"Test + Organization","label":"Test_Organization","id":10},"created_at":"2024-07-25 + 07:24:40 UTC","updated_at":"2024-07-25 07:24:40 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":20,"name":"Test Repository","label":"Test_Repository","content_type":"yum"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]},"repositories":[],"type":"erratum","rules":[]}]} ' @@ -203,7 +203,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '1295' + - '1316' 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''; @@ -217,7 +217,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.1 + - 3.12.0-develop Keep-Alive: - timeout=15, max=97 Strict-Transport-Security: @@ -247,15 +247,15 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/content_views/10/filters/9 + uri: https://foreman.example.org/katello/api/content_views/17/filters/79 response: body: - string: ' {"inclusion":false,"id":9,"name":"Test Errata id Content View Filter","description":null,"created_at":"2023-11-15 - 09:55:16 UTC","updated_at":"2023-11-15 09:55:16 UTC","content_view":{"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":true,"repository_ids":[18],"id":10,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":5,"organization":{"name":"Test - Organization","label":"Test_Organization","id":5},"created_at":"2023-11-15 - 09:55:08 UTC","updated_at":"2023-11-15 09:55:08 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":18,"name":"Test - Repository","label":"Test_Repository","content_type":"yum","product":{"id":10,"name":"Test + string: ' {"inclusion":false,"id":79,"name":"Test Errata id Content View Filter","description":null,"created_at":"2024-07-25 + 07:24:48 UTC","updated_at":"2024-07-25 07:24:48 UTC","content_view":{"composite":false,"component_ids":[],"duplicate_repositories_to_publish":[],"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":[],"filtered":true,"repository_ids":[20],"id":17,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":10,"organization":{"name":"Test + Organization","label":"Test_Organization","id":10},"created_at":"2024-07-25 + 07:24:40 UTC","updated_at":"2024-07-25 07:24:40 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":20,"name":"Test + Repository","label":"Test_Repository","content_type":"yum","product":{"id":8,"name":"Test Product"},"content_counts":{"docker_manifest":0,"docker_tag":0,"rpm":32,"package":32,"package_group":2,"erratum":4,"module_stream":0}}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]},"repositories":[],"type":"erratum","rules":[]} ' @@ -265,7 +265,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '1275' + - '1295' 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''; @@ -279,7 +279,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.1 + - 3.12.0-develop Keep-Alive: - timeout=15, max=96 Strict-Transport-Security: diff --git a/tests/test_playbooks/fixtures/content_view_filter-23.yml b/tests/test_playbooks/fixtures/content_view_filter_deb-0.yml similarity index 61% rename from tests/test_playbooks/fixtures/content_view_filter-23.yml rename to tests/test_playbooks/fixtures/content_view_filter_deb-0.yml index fea5f028f..9e1c824ce 100644 --- a/tests/test_playbooks/fixtures/content_view_filter-23.yml +++ b/tests/test_playbooks/fixtures/content_view_filter_deb-0.yml @@ -14,14 +14,14 @@ interactions: uri: https://foreman.example.org/api/status response: body: - string: '{"result":"ok","status":200,"version":"3.7.1","api_version":2}' + string: '{"result":"ok","status":200,"version":"3.12.0-develop","api_version":2}' headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive Content-Length: - - '62' + - '71' 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''; @@ -35,7 +35,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.1 + - 3.12.0-develop Keep-Alive: - timeout=15, max=100 Strict-Transport-Security: @@ -70,8 +70,8 @@ interactions: body: 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-15 - 09:54:22 UTC\",\"updated_at\":\"2023-11-15 09:54:23 UTC\",\"id\":5,\"name\":\"Test + {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\":\"Test_Organization\",\"created_at\":\"2024-07-25 + 07:26:09 UTC\",\"updated_at\":\"2024-07-25 07:26:11 UTC\",\"id\":11,\"name\":\"Test Organization\",\"title\":\"Test Organization\",\"description\":\"A test organization\"}]\n}\n" headers: Cache-Control: @@ -79,7 +79,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '388' + - '389' 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''; @@ -93,7 +93,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.1 + - 3.12.0-develop Keep-Alive: - timeout=15, max=99 Strict-Transport-Security: @@ -123,15 +123,15 @@ 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%22Test+Content+View%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/organizations/11/content_views?search=name%3D%22Test+Content+View%22&per_page=4294967296 response: body: string: '{"total":2,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Content View\"","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":[18],"id":10,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":5,"organization":{"name":"Test - Organization","label":"Test_Organization","id":5},"created_at":"2023-11-15 - 09:55:08 UTC","updated_at":"2023-11-15 09:55:08 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":18,"name":"Test - Repository","label":"Test_Repository","content_type":"yum"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]}]} + Content View\"","sort":{"by":"name","order":"asc"},"results":[{"composite":false,"component_ids":[],"duplicate_repositories_to_publish":[],"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":[],"filtered":false,"repository_ids":[22],"id":19,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":11,"organization":{"name":"Test + Organization","label":"Test_Organization","id":11},"created_at":"2024-07-25 + 07:26:27 UTC","updated_at":"2024-07-25 07:26:27 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":22,"name":"Test + Debian Repository","label":"Test_Debian_Repository","content_type":"deb"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]}]} ' headers: @@ -140,7 +140,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '1050' + - '1084' 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''; @@ -152,9 +152,9 @@ interactions: Foreman_current_location: - ; ANY Foreman_current_organization: - - 5; Test Organization + - 11; Test Organization Foreman_version: - - 3.7.1 + - 3.12.0-develop Keep-Alive: - timeout=15, max=98 Strict-Transport-Security: @@ -184,14 +184,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%22Test+Product%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/organizations/11/products?search=name%3D%22Test+Product%22&per_page=4294967296 response: body: string: '{"total":1,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Product\"","sort":{"by":"name","order":"asc"},"results":[{"id":10,"cp_id":"347380074197","name":"Test - Product","label":"Test_Product","description":"A happy little test product","provider_id":7,"sync_plan_id":null,"sync_summary":{"success":3},"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-15 09:54:59 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":3}]} + Product\"","sort":{"by":"name","order":"asc"},"results":[{"id":9,"cp_id":"322281955515","name":"Test + Product","label":"Test_Product","description":"A happy little test product","provider_id":19,"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":"2024-07-25 07:29:39 UTC","last_sync_words":"less than + a minute","organization_id":11,"organization":{"name":"Test Organization","label":"Test_Organization","id":11},"sync_plan":null,"repository_count":1}]} ' headers: @@ -200,7 +200,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '691' + - '693' 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''; @@ -212,9 +212,9 @@ interactions: Foreman_current_location: - ; ANY Foreman_current_organization: - - 5; Test Organization + - 11; Test Organization Foreman_version: - - 3.7.1 + - 3.12.0-develop Keep-Alive: - timeout=15, max=97 Strict-Transport-Security: @@ -244,17 +244,17 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/products/10/repositories?search=name%3D%22Test+Repository%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/products/9/repositories?search=name%3D%22Test+Debian+Repository%22&per_page=4294967296 response: body: - string: '{"total":3,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Repository\"","sort":{"by":"name","order":"asc"},"results":[{"backend_identifier":"29b3d88f-d4d9-4411-b1db-69f3a9c7df12","relative_path":"Test_Organization/Library/custom/Test_Product/Test_Repository","container_repository_name":null,"full_path":"https://centos8-stream-katello-4-9.tanso.example.com/pulp/content/Test_Organization/Library/custom/Test_Product/Test_Repository/","library_instance_id":null,"version_href":"/pulp/api/v3/repositories/rpm/rpm/00e6944a-841e-4bfe-9416-070861ef58fb/versions/1/","remote_href":"/pulp/api/v3/remotes/rpm/rpm/7e1e16ba-4432-4a52-988e-3da939154cbe/","publication_href":"/pulp/api/v3/publications/rpm/rpm/9695e87f-67d7-4765-9f98-e9a13987baef/","content_counts":{"rpm":32,"erratum":4,"package_group":2,"srpm":0,"module_stream":0},"mirroring_policy":"mirror_content_only","id":18,"name":"Test - Repository","label":"Test_Repository","description":null,"content_view_versions":[],"filters":[],"last_sync":{"id":"0c110a6a-16e1-487f-a587-0ab648d99eda","username":"admin","started_at":"2023-11-15 - 09:54:33 UTC","ended_at":"2023-11-15 09:54:46 UTC","state":"stopped","result":"success","progress":1.0},"content_view":{"id":9,"name":"Default - Organization View"},"content_view_version":{"id":8,"name":"Default Organization - View 1.0","content_view_id":9},"kt_environment":{"id":4,"name":"Library"},"content_type":"yum","url":"https://repos.fedorapeople.org/pulp/pulp/demo_repos/zoo/","arch":"noarch","os_versions":[],"content_id":"1700042066424","generic_remote_options":null,"major":null,"minor":null,"product":{"id":10,"cp_id":"347380074197","name":"Test - Product","orphaned":false,"redhat":false,"sync_plan":null},"content_label":"Test_Organization_Test_Product_Test_Repository","last_sync_words":"1 - minute"}],"org_repository_count":3} + string: '{"total":1,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test + Debian Repository\"","sort":{"by":"name","order":"asc"},"results":[{"backend_identifier":"fb721752-18f2-4a0f-affc-964a8f34e999","relative_path":"Test_Organization/Library/custom/Test_Product/Test_Debian_Repository","container_repository_name":"test_organization-test_product-test_debian_repository","full_path":"https://centos8-stream-katello-nightly.tanso.example.com/pulp/content/Test_Organization/Library/custom/Test_Product/Test_Debian_Repository/","library_instance_id":null,"version_href":"/pulp/api/v3/repositories/deb/apt/0190e8c8-8431-7cd7-bb85-df33dcafcb51/versions/1/","remote_href":"/pulp/api/v3/remotes/deb/apt/0190e8c8-836f-7d29-93f2-a0de99de4f56/","publication_href":"/pulp/api/v3/publications/deb/apt/0190e8c8-9fed-7071-9bb3-8f81e2f73dfd/","content_counts":{"deb":289},"mirroring_policy":"mirror_content_only","id":22,"name":"Test + Debian Repository","label":"Test_Debian_Repository","description":null,"content_view_versions":[],"filters":[],"last_sync":{"id":"dfd3a9ea-7e5f-41ed-8d0f-87e09774c234","username":"admin","started_at":"2024-07-25 + 07:29:39 UTC","ended_at":"2024-07-25 07:29:41 UTC","state":"stopped","result":"success","progress":1.0},"content_view":{"id":18,"name":"Default + Organization View"},"content_view_version":{"id":10,"name":"Default Organization + View 1.0","content_view_id":18},"kt_environment":{"id":10,"name":"Library"},"content_type":"deb","url":"https://ftp.debian.org/debian","arch":"noarch","os_versions":null,"content_id":"1721892373658","generic_remote_options":null,"major":null,"minor":null,"product":{"id":9,"cp_id":"322281955515","name":"Test + Product","orphaned":false,"redhat":false,"sync_plan":null},"content_label":"Test_Organization_Test_Product_Test_Debian_Repository","last_sync_words":"less + than a minute"}],"org_repository_count":1} ' headers: @@ -263,7 +263,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '1869' + - '1898' 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''; @@ -277,7 +277,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.1 + - 3.12.0-develop Keep-Alive: - timeout=15, max=96 Strict-Transport-Security: @@ -307,7 +307,7 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/content_views/10/filters?search=name%3D%22Test+Deb+Content+View+Filter%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/content_views/19/filters?search=name%3D%22Test+Deb+Content+View+Filter%22&per_page=4294967296 response: body: string: '{"total":0,"subtotal":0,"selectable":0,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test @@ -334,7 +334,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.1 + - 3.12.0-develop Keep-Alive: - timeout=15, max=95 Strict-Transport-Security: @@ -354,7 +354,7 @@ interactions: message: OK - request: body: '{"name": "Test Deb Content View Filter", "type": "deb", "inclusion": false, - "repository_ids": [18]}' + "repository_ids": [22]}' headers: Accept: - application/json;version=2 @@ -369,24 +369,24 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: POST - uri: https://foreman.example.org/katello/api/content_views/10/filters + uri: https://foreman.example.org/katello/api/content_views/19/filters response: body: - string: ' {"inclusion":false,"id":14,"name":"Test Deb Content View Filter","description":null,"created_at":"2023-11-15 - 09:55:28 UTC","updated_at":"2023-11-15 09:55:28 UTC","content_view":{"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":true,"repository_ids":[18],"id":10,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":5,"organization":{"name":"Test - Organization","label":"Test_Organization","id":5},"created_at":"2023-11-15 - 09:55:08 UTC","updated_at":"2023-11-15 09:55:08 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":18,"name":"Test - Repository","label":"Test_Repository","content_type":"yum","product":{"id":10,"name":"Test - Product"},"content_counts":{"docker_manifest":0,"docker_tag":0,"rpm":32,"package":32,"package_group":2,"erratum":4,"module_stream":0}}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]},"repositories":[{"backend_identifier":"29b3d88f-d4d9-4411-b1db-69f3a9c7df12","relative_path":"Test_Organization/Library/custom/Test_Product/Test_Repository","container_repository_name":null,"full_path":"https://centos8-stream-katello-4-9.tanso.example.com/pulp/content/Test_Organization/Library/custom/Test_Product/Test_Repository/","library_instance_id":null,"version_href":"/pulp/api/v3/repositories/rpm/rpm/00e6944a-841e-4bfe-9416-070861ef58fb/versions/1/","remote_href":"/pulp/api/v3/remotes/rpm/rpm/7e1e16ba-4432-4a52-988e-3da939154cbe/","publication_href":"/pulp/api/v3/publications/rpm/rpm/9695e87f-67d7-4765-9f98-e9a13987baef/","content_counts":{"rpm":32,"erratum":4,"package_group":2,"srpm":0,"module_stream":0},"mirroring_policy":"mirror_content_only","id":18,"name":"Test - Repository","label":"Test_Repository","description":null,"content_view_versions":[],"filters":[{"content_view_filter_id":14,"content_view_filter_name":"Test - Deb Content View Filter","content_view_id":10,"content_view_name":"Test Content - View","last_affected_repo":true}],"last_sync":{"id":"0c110a6a-16e1-487f-a587-0ab648d99eda","username":"admin","started_at":"2023-11-15 - 09:54:33 UTC","ended_at":"2023-11-15 09:54:46 UTC","state":"stopped","result":"success","progress":1.0},"content_view":{"id":9,"name":"Default - Organization View"},"content_view_version":{"id":8,"name":"Default Organization - View 1.0","content_view_id":9},"kt_environment":{"id":4,"name":"Library"},"content_type":"yum","url":"https://repos.fedorapeople.org/pulp/pulp/demo_repos/zoo/","arch":"noarch","os_versions":[],"content_id":"1700042066424","generic_remote_options":null,"major":null,"minor":null,"product":{"id":10,"cp_id":"347380074197","name":"Test - Product","orphaned":false,"redhat":false,"sync_plan":null},"content_label":"Test_Organization_Test_Product_Test_Repository","last_sync_words":"1 - minute"}],"type":"deb","rules":[]} + string: ' {"inclusion":false,"id":84,"name":"Test Deb Content View Filter","description":null,"created_at":"2024-07-25 + 07:29:45 UTC","updated_at":"2024-07-25 07:29:45 UTC","content_view":{"composite":false,"component_ids":[],"duplicate_repositories_to_publish":[],"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":[],"filtered":true,"repository_ids":[22],"id":19,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":11,"organization":{"name":"Test + Organization","label":"Test_Organization","id":11},"created_at":"2024-07-25 + 07:26:27 UTC","updated_at":"2024-07-25 07:26:27 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":22,"name":"Test + Debian Repository","label":"Test_Debian_Repository","content_type":"deb","product":{"id":9,"name":"Test + Product"},"content_counts":{"docker_manifest":0,"docker_tag":0,"rpm":0,"package":0,"package_group":0,"erratum":0,"module_stream":0}}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]},"repositories":[{"backend_identifier":"fb721752-18f2-4a0f-affc-964a8f34e999","relative_path":"Test_Organization/Library/custom/Test_Product/Test_Debian_Repository","container_repository_name":"test_organization-test_product-test_debian_repository","full_path":"https://centos8-stream-katello-nightly.tanso.example.com/pulp/content/Test_Organization/Library/custom/Test_Product/Test_Debian_Repository/","library_instance_id":null,"version_href":"/pulp/api/v3/repositories/deb/apt/0190e8c8-8431-7cd7-bb85-df33dcafcb51/versions/1/","remote_href":"/pulp/api/v3/remotes/deb/apt/0190e8c8-836f-7d29-93f2-a0de99de4f56/","publication_href":"/pulp/api/v3/publications/deb/apt/0190e8c8-9fed-7071-9bb3-8f81e2f73dfd/","content_counts":{"deb":289},"mirroring_policy":"mirror_content_only","id":22,"name":"Test + Debian Repository","label":"Test_Debian_Repository","description":null,"content_view_versions":[],"filters":[{"content_view_filter_id":84,"content_view_filter_name":"Test + Deb Content View Filter","content_view_id":19,"content_view_name":"Test Content + View","last_affected_repo":true}],"last_sync":{"id":"dfd3a9ea-7e5f-41ed-8d0f-87e09774c234","username":"admin","started_at":"2024-07-25 + 07:29:39 UTC","ended_at":"2024-07-25 07:29:41 UTC","state":"stopped","result":"success","progress":1.0},"content_view":{"id":18,"name":"Default + Organization View"},"content_view_version":{"id":10,"name":"Default Organization + View 1.0","content_view_id":18},"kt_environment":{"id":10,"name":"Library"},"content_type":"deb","url":"https://ftp.debian.org/debian","arch":"noarch","os_versions":null,"content_id":"1721892373658","generic_remote_options":null,"major":null,"minor":null,"product":{"id":9,"cp_id":"322281955515","name":"Test + Product","orphaned":false,"redhat":false,"sync_plan":null},"content_label":"Test_Organization_Test_Product_Test_Debian_Repository","last_sync_words":"less + than a minute"}],"type":"deb","rules":[]} ' headers: @@ -395,7 +395,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '3114' + - '3167' 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''; @@ -409,7 +409,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.1 + - 3.12.0-develop Keep-Alive: - timeout=15, max=94 Strict-Transport-Security: diff --git a/tests/test_playbooks/fixtures/content_view_filter-24.yml b/tests/test_playbooks/fixtures/content_view_filter_deb-1.yml similarity index 52% rename from tests/test_playbooks/fixtures/content_view_filter-24.yml rename to tests/test_playbooks/fixtures/content_view_filter_deb-1.yml index bab95ebad..a57bfc242 100644 --- a/tests/test_playbooks/fixtures/content_view_filter-24.yml +++ b/tests/test_playbooks/fixtures/content_view_filter_deb-1.yml @@ -14,14 +14,14 @@ interactions: uri: https://foreman.example.org/api/status response: body: - string: '{"result":"ok","status":200,"version":"3.7.1","api_version":2}' + string: '{"result":"ok","status":200,"version":"3.12.0-develop","api_version":2}' headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive Content-Length: - - '62' + - '71' 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''; @@ -35,7 +35,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.1 + - 3.12.0-develop Keep-Alive: - timeout=15, max=100 Strict-Transport-Security: @@ -70,8 +70,8 @@ interactions: body: 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-15 - 09:54:22 UTC\",\"updated_at\":\"2023-11-15 09:54:23 UTC\",\"id\":5,\"name\":\"Test + {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\":\"Test_Organization\",\"created_at\":\"2024-07-25 + 07:26:09 UTC\",\"updated_at\":\"2024-07-25 07:26:11 UTC\",\"id\":11,\"name\":\"Test Organization\",\"title\":\"Test Organization\",\"description\":\"A test organization\"}]\n}\n" headers: Cache-Control: @@ -79,7 +79,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '388' + - '389' 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''; @@ -93,7 +93,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.1 + - 3.12.0-develop Keep-Alive: - timeout=15, max=99 Strict-Transport-Security: @@ -123,15 +123,15 @@ 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%22Test+Content+View%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/organizations/11/content_views?search=name%3D%22Test+Content+View%22&per_page=4294967296 response: body: string: '{"total":2,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Content View\"","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":true,"repository_ids":[18],"id":10,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":5,"organization":{"name":"Test - Organization","label":"Test_Organization","id":5},"created_at":"2023-11-15 - 09:55:08 UTC","updated_at":"2023-11-15 09:55:08 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":18,"name":"Test - Repository","label":"Test_Repository","content_type":"yum"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]}]} + Content View\"","sort":{"by":"name","order":"asc"},"results":[{"composite":false,"component_ids":[],"duplicate_repositories_to_publish":[],"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":[],"filtered":true,"repository_ids":[22],"id":19,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":11,"organization":{"name":"Test + Organization","label":"Test_Organization","id":11},"created_at":"2024-07-25 + 07:26:27 UTC","updated_at":"2024-07-25 07:26:27 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":22,"name":"Test + Debian Repository","label":"Test_Debian_Repository","content_type":"deb"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]}]} ' headers: @@ -140,7 +140,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '1049' + - '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''; @@ -152,9 +152,9 @@ interactions: Foreman_current_location: - ; ANY Foreman_current_organization: - - 5; Test Organization + - 11; Test Organization Foreman_version: - - 3.7.1 + - 3.12.0-develop Keep-Alive: - timeout=15, max=98 Strict-Transport-Security: @@ -184,14 +184,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%22Test+Product%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/organizations/11/products?search=name%3D%22Test+Product%22&per_page=4294967296 response: body: string: '{"total":1,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Product\"","sort":{"by":"name","order":"asc"},"results":[{"id":10,"cp_id":"347380074197","name":"Test - Product","label":"Test_Product","description":"A happy little test product","provider_id":7,"sync_plan_id":null,"sync_summary":{"success":3},"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-15 09:54:59 UTC","last_sync_words":"1 minute","organization_id":5,"organization":{"name":"Test - Organization","label":"Test_Organization","id":5},"sync_plan":null,"repository_count":3}]} + Product\"","sort":{"by":"name","order":"asc"},"results":[{"id":9,"cp_id":"322281955515","name":"Test + Product","label":"Test_Product","description":"A happy little test product","provider_id":19,"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":"2024-07-25 07:29:39 UTC","last_sync_words":"less than + a minute","organization_id":11,"organization":{"name":"Test Organization","label":"Test_Organization","id":11},"sync_plan":null,"repository_count":1}]} ' headers: @@ -200,7 +200,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '681' + - '693' 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''; @@ -212,9 +212,9 @@ interactions: Foreman_current_location: - ; ANY Foreman_current_organization: - - 5; Test Organization + - 11; Test Organization Foreman_version: - - 3.7.1 + - 3.12.0-develop Keep-Alive: - timeout=15, max=97 Strict-Transport-Security: @@ -244,19 +244,19 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/products/10/repositories?search=name%3D%22Test+Repository%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/products/9/repositories?search=name%3D%22Test+Debian+Repository%22&per_page=4294967296 response: body: - string: '{"total":3,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Repository\"","sort":{"by":"name","order":"asc"},"results":[{"backend_identifier":"29b3d88f-d4d9-4411-b1db-69f3a9c7df12","relative_path":"Test_Organization/Library/custom/Test_Product/Test_Repository","container_repository_name":null,"full_path":"https://centos8-stream-katello-4-9.tanso.example.com/pulp/content/Test_Organization/Library/custom/Test_Product/Test_Repository/","library_instance_id":null,"version_href":"/pulp/api/v3/repositories/rpm/rpm/00e6944a-841e-4bfe-9416-070861ef58fb/versions/1/","remote_href":"/pulp/api/v3/remotes/rpm/rpm/7e1e16ba-4432-4a52-988e-3da939154cbe/","publication_href":"/pulp/api/v3/publications/rpm/rpm/9695e87f-67d7-4765-9f98-e9a13987baef/","content_counts":{"rpm":32,"erratum":4,"package_group":2,"srpm":0,"module_stream":0},"mirroring_policy":"mirror_content_only","id":18,"name":"Test - Repository","label":"Test_Repository","description":null,"content_view_versions":[],"filters":[{"content_view_filter_id":14,"content_view_filter_name":"Test - Deb Content View Filter","content_view_id":10,"content_view_name":"Test Content - View","last_affected_repo":true}],"last_sync":{"id":"0c110a6a-16e1-487f-a587-0ab648d99eda","username":"admin","started_at":"2023-11-15 - 09:54:33 UTC","ended_at":"2023-11-15 09:54:46 UTC","state":"stopped","result":"success","progress":1.0},"content_view":{"id":9,"name":"Default - Organization View"},"content_view_version":{"id":8,"name":"Default Organization - View 1.0","content_view_id":9},"kt_environment":{"id":4,"name":"Library"},"content_type":"yum","url":"https://repos.fedorapeople.org/pulp/pulp/demo_repos/zoo/","arch":"noarch","os_versions":[],"content_id":"1700042066424","generic_remote_options":null,"major":null,"minor":null,"product":{"id":10,"cp_id":"347380074197","name":"Test - Product","orphaned":false,"redhat":false,"sync_plan":null},"content_label":"Test_Organization_Test_Product_Test_Repository","last_sync_words":"1 - minute"}],"org_repository_count":3} + string: '{"total":1,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test + Debian Repository\"","sort":{"by":"name","order":"asc"},"results":[{"backend_identifier":"fb721752-18f2-4a0f-affc-964a8f34e999","relative_path":"Test_Organization/Library/custom/Test_Product/Test_Debian_Repository","container_repository_name":"test_organization-test_product-test_debian_repository","full_path":"https://centos8-stream-katello-nightly.tanso.example.com/pulp/content/Test_Organization/Library/custom/Test_Product/Test_Debian_Repository/","library_instance_id":null,"version_href":"/pulp/api/v3/repositories/deb/apt/0190e8c8-8431-7cd7-bb85-df33dcafcb51/versions/1/","remote_href":"/pulp/api/v3/remotes/deb/apt/0190e8c8-836f-7d29-93f2-a0de99de4f56/","publication_href":"/pulp/api/v3/publications/deb/apt/0190e8c8-9fed-7071-9bb3-8f81e2f73dfd/","content_counts":{"deb":289},"mirroring_policy":"mirror_content_only","id":22,"name":"Test + Debian Repository","label":"Test_Debian_Repository","description":null,"content_view_versions":[],"filters":[{"content_view_filter_id":84,"content_view_filter_name":"Test + Deb Content View Filter","content_view_id":19,"content_view_name":"Test Content + View","last_affected_repo":true}],"last_sync":{"id":"dfd3a9ea-7e5f-41ed-8d0f-87e09774c234","username":"admin","started_at":"2024-07-25 + 07:29:39 UTC","ended_at":"2024-07-25 07:29:41 UTC","state":"stopped","result":"success","progress":1.0},"content_view":{"id":18,"name":"Default + Organization View"},"content_view_version":{"id":10,"name":"Default Organization + View 1.0","content_view_id":18},"kt_environment":{"id":10,"name":"Library"},"content_type":"deb","url":"https://ftp.debian.org/debian","arch":"noarch","os_versions":null,"content_id":"1721892373658","generic_remote_options":null,"major":null,"minor":null,"product":{"id":9,"cp_id":"322281955515","name":"Test + Product","orphaned":false,"redhat":false,"sync_plan":null},"content_label":"Test_Organization_Test_Product_Test_Debian_Repository","last_sync_words":"less + than a minute"}],"org_repository_count":1} ' headers: @@ -265,7 +265,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '2043' + - '2072' 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''; @@ -279,7 +279,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.1 + - 3.12.0-develop Keep-Alive: - timeout=15, max=96 Strict-Transport-Security: @@ -309,25 +309,25 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/content_views/10/filters?search=name%3D%22Test+Deb+Content+View+Filter%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/content_views/19/filters?search=name%3D%22Test+Deb+Content+View+Filter%22&per_page=4294967296 response: body: string: '{"total":1,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Deb Content View Filter\"","sort":{"by":"name","order":"asc"},"results":[{"inclusion":false,"id":14,"name":"Test - Deb Content View Filter","description":null,"created_at":"2023-11-15 09:55:28 - UTC","updated_at":"2023-11-15 09:55:28 UTC","content_view":{"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":true,"repository_ids":[18],"id":10,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":5,"organization":{"name":"Test - Organization","label":"Test_Organization","id":5},"created_at":"2023-11-15 - 09:55:08 UTC","updated_at":"2023-11-15 09:55:08 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":18,"name":"Test - Repository","label":"Test_Repository","content_type":"yum"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]},"repositories":[{"backend_identifier":"29b3d88f-d4d9-4411-b1db-69f3a9c7df12","relative_path":"Test_Organization/Library/custom/Test_Product/Test_Repository","container_repository_name":null,"full_path":"https://centos8-stream-katello-4-9.tanso.example.com/pulp/content/Test_Organization/Library/custom/Test_Product/Test_Repository/","library_instance_id":null,"version_href":"/pulp/api/v3/repositories/rpm/rpm/00e6944a-841e-4bfe-9416-070861ef58fb/versions/1/","remote_href":"/pulp/api/v3/remotes/rpm/rpm/7e1e16ba-4432-4a52-988e-3da939154cbe/","publication_href":"/pulp/api/v3/publications/rpm/rpm/9695e87f-67d7-4765-9f98-e9a13987baef/","content_counts":{"rpm":32,"erratum":4,"package_group":2,"srpm":0,"module_stream":0},"mirroring_policy":"mirror_content_only","id":18,"name":"Test - Repository","label":"Test_Repository","description":null,"content_view_versions":[],"filters":[{"content_view_filter_id":14,"content_view_filter_name":"Test - Deb Content View Filter","content_view_id":10,"content_view_name":"Test Content - View","last_affected_repo":true}],"last_sync":{"id":"0c110a6a-16e1-487f-a587-0ab648d99eda","username":"admin","started_at":"2023-11-15 - 09:54:33 UTC","ended_at":"2023-11-15 09:54:46 UTC","state":"stopped","result":"success","progress":1.0},"content_view":{"id":9,"name":"Default - Organization View"},"content_view_version":{"id":8,"name":"Default Organization - View 1.0","content_view_id":9},"kt_environment":{"id":4,"name":"Library"},"content_type":"yum","url":"https://repos.fedorapeople.org/pulp/pulp/demo_repos/zoo/","arch":"noarch","os_versions":[],"content_id":"1700042066424","generic_remote_options":null,"major":null,"minor":null,"product":{"id":10,"cp_id":"347380074197","name":"Test - Product","orphaned":false,"redhat":false,"sync_plan":null},"content_label":"Test_Organization_Test_Product_Test_Repository","last_sync_words":"1 - minute"}],"type":"deb","rules":[]}]} + Deb Content View Filter\"","sort":{"by":"name","order":"asc"},"results":[{"inclusion":false,"id":84,"name":"Test + Deb Content View Filter","description":null,"created_at":"2024-07-25 07:29:45 + UTC","updated_at":"2024-07-25 07:29:45 UTC","content_view":{"composite":false,"component_ids":[],"duplicate_repositories_to_publish":[],"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":[],"filtered":true,"repository_ids":[22],"id":19,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":11,"organization":{"name":"Test + Organization","label":"Test_Organization","id":11},"created_at":"2024-07-25 + 07:26:27 UTC","updated_at":"2024-07-25 07:26:27 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":22,"name":"Test + Debian Repository","label":"Test_Debian_Repository","content_type":"deb"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]},"repositories":[{"backend_identifier":"fb721752-18f2-4a0f-affc-964a8f34e999","relative_path":"Test_Organization/Library/custom/Test_Product/Test_Debian_Repository","container_repository_name":"test_organization-test_product-test_debian_repository","full_path":"https://centos8-stream-katello-nightly.tanso.example.com/pulp/content/Test_Organization/Library/custom/Test_Product/Test_Debian_Repository/","library_instance_id":null,"version_href":"/pulp/api/v3/repositories/deb/apt/0190e8c8-8431-7cd7-bb85-df33dcafcb51/versions/1/","remote_href":"/pulp/api/v3/remotes/deb/apt/0190e8c8-836f-7d29-93f2-a0de99de4f56/","publication_href":"/pulp/api/v3/publications/deb/apt/0190e8c8-9fed-7071-9bb3-8f81e2f73dfd/","content_counts":{"deb":289},"mirroring_policy":"mirror_content_only","id":22,"name":"Test + Debian Repository","label":"Test_Debian_Repository","description":null,"content_view_versions":[],"filters":[{"content_view_filter_id":84,"content_view_filter_name":"Test + Deb Content View Filter","content_view_id":19,"content_view_name":"Test Content + View","last_affected_repo":true}],"last_sync":{"id":"dfd3a9ea-7e5f-41ed-8d0f-87e09774c234","username":"admin","started_at":"2024-07-25 + 07:29:39 UTC","ended_at":"2024-07-25 07:29:41 UTC","state":"stopped","result":"success","progress":1.0},"content_view":{"id":18,"name":"Default + Organization View"},"content_view_version":{"id":10,"name":"Default Organization + View 1.0","content_view_id":18},"kt_environment":{"id":10,"name":"Library"},"content_type":"deb","url":"https://ftp.debian.org/debian","arch":"noarch","os_versions":null,"content_id":"1721892373658","generic_remote_options":null,"major":null,"minor":null,"product":{"id":9,"cp_id":"322281955515","name":"Test + Product","orphaned":false,"redhat":false,"sync_plan":null},"content_label":"Test_Organization_Test_Product_Test_Debian_Repository","last_sync_words":"less + than a minute"}],"type":"deb","rules":[]}]} ' headers: @@ -336,7 +336,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '3128' + - '3184' 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''; @@ -350,7 +350,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.1 + - 3.12.0-develop Keep-Alive: - timeout=15, max=95 Strict-Transport-Security: @@ -380,24 +380,24 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/content_views/10/filters/14 + uri: https://foreman.example.org/katello/api/content_views/19/filters/84 response: body: - string: ' {"inclusion":false,"id":14,"name":"Test Deb Content View Filter","description":null,"created_at":"2023-11-15 - 09:55:28 UTC","updated_at":"2023-11-15 09:55:28 UTC","content_view":{"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":true,"repository_ids":[18],"id":10,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":5,"organization":{"name":"Test - Organization","label":"Test_Organization","id":5},"created_at":"2023-11-15 - 09:55:08 UTC","updated_at":"2023-11-15 09:55:08 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":18,"name":"Test - Repository","label":"Test_Repository","content_type":"yum","product":{"id":10,"name":"Test - Product"},"content_counts":{"docker_manifest":0,"docker_tag":0,"rpm":32,"package":32,"package_group":2,"erratum":4,"module_stream":0}}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]},"repositories":[{"backend_identifier":"29b3d88f-d4d9-4411-b1db-69f3a9c7df12","relative_path":"Test_Organization/Library/custom/Test_Product/Test_Repository","container_repository_name":null,"full_path":"https://centos8-stream-katello-4-9.tanso.example.com/pulp/content/Test_Organization/Library/custom/Test_Product/Test_Repository/","library_instance_id":null,"version_href":"/pulp/api/v3/repositories/rpm/rpm/00e6944a-841e-4bfe-9416-070861ef58fb/versions/1/","remote_href":"/pulp/api/v3/remotes/rpm/rpm/7e1e16ba-4432-4a52-988e-3da939154cbe/","publication_href":"/pulp/api/v3/publications/rpm/rpm/9695e87f-67d7-4765-9f98-e9a13987baef/","content_counts":{"rpm":32,"erratum":4,"package_group":2,"srpm":0,"module_stream":0},"mirroring_policy":"mirror_content_only","id":18,"name":"Test - Repository","label":"Test_Repository","description":null,"content_view_versions":[],"filters":[{"content_view_filter_id":14,"content_view_filter_name":"Test - Deb Content View Filter","content_view_id":10,"content_view_name":"Test Content - View","last_affected_repo":true}],"last_sync":{"id":"0c110a6a-16e1-487f-a587-0ab648d99eda","username":"admin","started_at":"2023-11-15 - 09:54:33 UTC","ended_at":"2023-11-15 09:54:46 UTC","state":"stopped","result":"success","progress":1.0},"content_view":{"id":9,"name":"Default - Organization View"},"content_view_version":{"id":8,"name":"Default Organization - View 1.0","content_view_id":9},"kt_environment":{"id":4,"name":"Library"},"content_type":"yum","url":"https://repos.fedorapeople.org/pulp/pulp/demo_repos/zoo/","arch":"noarch","os_versions":[],"content_id":"1700042066424","generic_remote_options":null,"major":null,"minor":null,"product":{"id":10,"cp_id":"347380074197","name":"Test - Product","orphaned":false,"redhat":false,"sync_plan":null},"content_label":"Test_Organization_Test_Product_Test_Repository","last_sync_words":"1 - minute"}],"type":"deb","rules":[]} + string: ' {"inclusion":false,"id":84,"name":"Test Deb Content View Filter","description":null,"created_at":"2024-07-25 + 07:29:45 UTC","updated_at":"2024-07-25 07:29:45 UTC","content_view":{"composite":false,"component_ids":[],"duplicate_repositories_to_publish":[],"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":[],"filtered":true,"repository_ids":[22],"id":19,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":11,"organization":{"name":"Test + Organization","label":"Test_Organization","id":11},"created_at":"2024-07-25 + 07:26:27 UTC","updated_at":"2024-07-25 07:26:27 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":22,"name":"Test + Debian Repository","label":"Test_Debian_Repository","content_type":"deb","product":{"id":9,"name":"Test + Product"},"content_counts":{"docker_manifest":0,"docker_tag":0,"rpm":0,"package":0,"package_group":0,"erratum":0,"module_stream":0}}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]},"repositories":[{"backend_identifier":"fb721752-18f2-4a0f-affc-964a8f34e999","relative_path":"Test_Organization/Library/custom/Test_Product/Test_Debian_Repository","container_repository_name":"test_organization-test_product-test_debian_repository","full_path":"https://centos8-stream-katello-nightly.tanso.example.com/pulp/content/Test_Organization/Library/custom/Test_Product/Test_Debian_Repository/","library_instance_id":null,"version_href":"/pulp/api/v3/repositories/deb/apt/0190e8c8-8431-7cd7-bb85-df33dcafcb51/versions/1/","remote_href":"/pulp/api/v3/remotes/deb/apt/0190e8c8-836f-7d29-93f2-a0de99de4f56/","publication_href":"/pulp/api/v3/publications/deb/apt/0190e8c8-9fed-7071-9bb3-8f81e2f73dfd/","content_counts":{"deb":289},"mirroring_policy":"mirror_content_only","id":22,"name":"Test + Debian Repository","label":"Test_Debian_Repository","description":null,"content_view_versions":[],"filters":[{"content_view_filter_id":84,"content_view_filter_name":"Test + Deb Content View Filter","content_view_id":19,"content_view_name":"Test Content + View","last_affected_repo":true}],"last_sync":{"id":"dfd3a9ea-7e5f-41ed-8d0f-87e09774c234","username":"admin","started_at":"2024-07-25 + 07:29:39 UTC","ended_at":"2024-07-25 07:29:41 UTC","state":"stopped","result":"success","progress":1.0},"content_view":{"id":18,"name":"Default + Organization View"},"content_view_version":{"id":10,"name":"Default Organization + View 1.0","content_view_id":18},"kt_environment":{"id":10,"name":"Library"},"content_type":"deb","url":"https://ftp.debian.org/debian","arch":"noarch","os_versions":null,"content_id":"1721892373658","generic_remote_options":null,"major":null,"minor":null,"product":{"id":9,"cp_id":"322281955515","name":"Test + Product","orphaned":false,"redhat":false,"sync_plan":null},"content_label":"Test_Organization_Test_Product_Test_Debian_Repository","last_sync_words":"less + than a minute"}],"type":"deb","rules":[]} ' headers: @@ -406,7 +406,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '3114' + - '3167' 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''; @@ -420,7 +420,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.1 + - 3.12.0-develop Keep-Alive: - timeout=15, max=94 Strict-Transport-Security: diff --git a/tests/test_playbooks/fixtures/content_view_filter-25.yml b/tests/test_playbooks/fixtures/content_view_filter_deb-2.yml similarity index 50% rename from tests/test_playbooks/fixtures/content_view_filter-25.yml rename to tests/test_playbooks/fixtures/content_view_filter_deb-2.yml index e94e4b2e7..98ba0bfbd 100644 --- a/tests/test_playbooks/fixtures/content_view_filter-25.yml +++ b/tests/test_playbooks/fixtures/content_view_filter_deb-2.yml @@ -14,14 +14,14 @@ interactions: uri: https://foreman.example.org/api/status response: body: - string: '{"result":"ok","status":200,"version":"3.7.1","api_version":2}' + string: '{"result":"ok","status":200,"version":"3.12.0-develop","api_version":2}' headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive Content-Length: - - '62' + - '71' 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''; @@ -35,7 +35,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.1 + - 3.12.0-develop Keep-Alive: - timeout=15, max=100 Strict-Transport-Security: @@ -70,8 +70,8 @@ interactions: body: 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-15 - 09:54:22 UTC\",\"updated_at\":\"2023-11-15 09:54:23 UTC\",\"id\":5,\"name\":\"Test + {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\":\"Test_Organization\",\"created_at\":\"2024-07-25 + 07:26:09 UTC\",\"updated_at\":\"2024-07-25 07:26:11 UTC\",\"id\":11,\"name\":\"Test Organization\",\"title\":\"Test Organization\",\"description\":\"A test organization\"}]\n}\n" headers: Cache-Control: @@ -79,7 +79,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '388' + - '389' 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''; @@ -93,7 +93,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.1 + - 3.12.0-develop Keep-Alive: - timeout=15, max=99 Strict-Transport-Security: @@ -123,15 +123,15 @@ 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%22Test+Content+View%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/organizations/11/content_views?search=name%3D%22Test+Content+View%22&per_page=4294967296 response: body: string: '{"total":2,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Content View\"","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":true,"repository_ids":[18],"id":10,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":5,"organization":{"name":"Test - Organization","label":"Test_Organization","id":5},"created_at":"2023-11-15 - 09:55:08 UTC","updated_at":"2023-11-15 09:55:08 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":18,"name":"Test - Repository","label":"Test_Repository","content_type":"yum"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]}]} + Content View\"","sort":{"by":"name","order":"asc"},"results":[{"composite":false,"component_ids":[],"duplicate_repositories_to_publish":[],"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":[],"filtered":true,"repository_ids":[22],"id":19,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":11,"organization":{"name":"Test + Organization","label":"Test_Organization","id":11},"created_at":"2024-07-25 + 07:26:27 UTC","updated_at":"2024-07-25 07:26:27 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":22,"name":"Test + Debian Repository","label":"Test_Debian_Repository","content_type":"deb"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]}]} ' headers: @@ -140,7 +140,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '1049' + - '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''; @@ -152,9 +152,9 @@ interactions: Foreman_current_location: - ; ANY Foreman_current_organization: - - 5; Test Organization + - 11; Test Organization Foreman_version: - - 3.7.1 + - 3.12.0-develop Keep-Alive: - timeout=15, max=98 Strict-Transport-Security: @@ -184,14 +184,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%22Test+Product%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/organizations/11/products?search=name%3D%22Test+Product%22&per_page=4294967296 response: body: string: '{"total":1,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Product\"","sort":{"by":"name","order":"asc"},"results":[{"id":10,"cp_id":"347380074197","name":"Test - Product","label":"Test_Product","description":"A happy little test product","provider_id":7,"sync_plan_id":null,"sync_summary":{"success":3},"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-15 09:54:59 UTC","last_sync_words":"1 minute","organization_id":5,"organization":{"name":"Test - Organization","label":"Test_Organization","id":5},"sync_plan":null,"repository_count":3}]} + Product\"","sort":{"by":"name","order":"asc"},"results":[{"id":9,"cp_id":"322281955515","name":"Test + Product","label":"Test_Product","description":"A happy little test product","provider_id":19,"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":"2024-07-25 07:29:39 UTC","last_sync_words":"less than + a minute","organization_id":11,"organization":{"name":"Test Organization","label":"Test_Organization","id":11},"sync_plan":null,"repository_count":1}]} ' headers: @@ -200,7 +200,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '681' + - '693' 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''; @@ -212,9 +212,9 @@ interactions: Foreman_current_location: - ; ANY Foreman_current_organization: - - 5; Test Organization + - 11; Test Organization Foreman_version: - - 3.7.1 + - 3.12.0-develop Keep-Alive: - timeout=15, max=97 Strict-Transport-Security: @@ -244,19 +244,19 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/products/10/repositories?search=name%3D%22Test+Repository%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/products/9/repositories?search=name%3D%22Test+Debian+Repository%22&per_page=4294967296 response: body: - string: '{"total":3,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Repository\"","sort":{"by":"name","order":"asc"},"results":[{"backend_identifier":"29b3d88f-d4d9-4411-b1db-69f3a9c7df12","relative_path":"Test_Organization/Library/custom/Test_Product/Test_Repository","container_repository_name":null,"full_path":"https://centos8-stream-katello-4-9.tanso.example.com/pulp/content/Test_Organization/Library/custom/Test_Product/Test_Repository/","library_instance_id":null,"version_href":"/pulp/api/v3/repositories/rpm/rpm/00e6944a-841e-4bfe-9416-070861ef58fb/versions/1/","remote_href":"/pulp/api/v3/remotes/rpm/rpm/7e1e16ba-4432-4a52-988e-3da939154cbe/","publication_href":"/pulp/api/v3/publications/rpm/rpm/9695e87f-67d7-4765-9f98-e9a13987baef/","content_counts":{"rpm":32,"erratum":4,"package_group":2,"srpm":0,"module_stream":0},"mirroring_policy":"mirror_content_only","id":18,"name":"Test - Repository","label":"Test_Repository","description":null,"content_view_versions":[],"filters":[{"content_view_filter_id":14,"content_view_filter_name":"Test - Deb Content View Filter","content_view_id":10,"content_view_name":"Test Content - View","last_affected_repo":true}],"last_sync":{"id":"0c110a6a-16e1-487f-a587-0ab648d99eda","username":"admin","started_at":"2023-11-15 - 09:54:33 UTC","ended_at":"2023-11-15 09:54:46 UTC","state":"stopped","result":"success","progress":1.0},"content_view":{"id":9,"name":"Default - Organization View"},"content_view_version":{"id":8,"name":"Default Organization - View 1.0","content_view_id":9},"kt_environment":{"id":4,"name":"Library"},"content_type":"yum","url":"https://repos.fedorapeople.org/pulp/pulp/demo_repos/zoo/","arch":"noarch","os_versions":[],"content_id":"1700042066424","generic_remote_options":null,"major":null,"minor":null,"product":{"id":10,"cp_id":"347380074197","name":"Test - Product","orphaned":false,"redhat":false,"sync_plan":null},"content_label":"Test_Organization_Test_Product_Test_Repository","last_sync_words":"1 - minute"}],"org_repository_count":3} + string: '{"total":1,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test + Debian Repository\"","sort":{"by":"name","order":"asc"},"results":[{"backend_identifier":"fb721752-18f2-4a0f-affc-964a8f34e999","relative_path":"Test_Organization/Library/custom/Test_Product/Test_Debian_Repository","container_repository_name":"test_organization-test_product-test_debian_repository","full_path":"https://centos8-stream-katello-nightly.tanso.example.com/pulp/content/Test_Organization/Library/custom/Test_Product/Test_Debian_Repository/","library_instance_id":null,"version_href":"/pulp/api/v3/repositories/deb/apt/0190e8c8-8431-7cd7-bb85-df33dcafcb51/versions/1/","remote_href":"/pulp/api/v3/remotes/deb/apt/0190e8c8-836f-7d29-93f2-a0de99de4f56/","publication_href":"/pulp/api/v3/publications/deb/apt/0190e8c8-9fed-7071-9bb3-8f81e2f73dfd/","content_counts":{"deb":289},"mirroring_policy":"mirror_content_only","id":22,"name":"Test + Debian Repository","label":"Test_Debian_Repository","description":null,"content_view_versions":[],"filters":[{"content_view_filter_id":84,"content_view_filter_name":"Test + Deb Content View Filter","content_view_id":19,"content_view_name":"Test Content + View","last_affected_repo":true}],"last_sync":{"id":"dfd3a9ea-7e5f-41ed-8d0f-87e09774c234","username":"admin","started_at":"2024-07-25 + 07:29:39 UTC","ended_at":"2024-07-25 07:29:41 UTC","state":"stopped","result":"success","progress":1.0},"content_view":{"id":18,"name":"Default + Organization View"},"content_view_version":{"id":10,"name":"Default Organization + View 1.0","content_view_id":18},"kt_environment":{"id":10,"name":"Library"},"content_type":"deb","url":"https://ftp.debian.org/debian","arch":"noarch","os_versions":null,"content_id":"1721892373658","generic_remote_options":null,"major":null,"minor":null,"product":{"id":9,"cp_id":"322281955515","name":"Test + Product","orphaned":false,"redhat":false,"sync_plan":null},"content_label":"Test_Organization_Test_Product_Test_Debian_Repository","last_sync_words":"less + than a minute"}],"org_repository_count":1} ' headers: @@ -265,7 +265,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '2043' + - '2072' 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''; @@ -279,7 +279,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.1 + - 3.12.0-develop Keep-Alive: - timeout=15, max=96 Strict-Transport-Security: @@ -309,25 +309,25 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/content_views/10/filters?search=name%3D%22Test+Deb+Content+View+Filter%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/content_views/19/filters?search=name%3D%22Test+Deb+Content+View+Filter%22&per_page=4294967296 response: body: string: '{"total":1,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Deb Content View Filter\"","sort":{"by":"name","order":"asc"},"results":[{"inclusion":false,"id":14,"name":"Test - Deb Content View Filter","description":null,"created_at":"2023-11-15 09:55:28 - UTC","updated_at":"2023-11-15 09:55:28 UTC","content_view":{"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":true,"repository_ids":[18],"id":10,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":5,"organization":{"name":"Test - Organization","label":"Test_Organization","id":5},"created_at":"2023-11-15 - 09:55:08 UTC","updated_at":"2023-11-15 09:55:08 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":18,"name":"Test - Repository","label":"Test_Repository","content_type":"yum"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]},"repositories":[{"backend_identifier":"29b3d88f-d4d9-4411-b1db-69f3a9c7df12","relative_path":"Test_Organization/Library/custom/Test_Product/Test_Repository","container_repository_name":null,"full_path":"https://centos8-stream-katello-4-9.tanso.example.com/pulp/content/Test_Organization/Library/custom/Test_Product/Test_Repository/","library_instance_id":null,"version_href":"/pulp/api/v3/repositories/rpm/rpm/00e6944a-841e-4bfe-9416-070861ef58fb/versions/1/","remote_href":"/pulp/api/v3/remotes/rpm/rpm/7e1e16ba-4432-4a52-988e-3da939154cbe/","publication_href":"/pulp/api/v3/publications/rpm/rpm/9695e87f-67d7-4765-9f98-e9a13987baef/","content_counts":{"rpm":32,"erratum":4,"package_group":2,"srpm":0,"module_stream":0},"mirroring_policy":"mirror_content_only","id":18,"name":"Test - Repository","label":"Test_Repository","description":null,"content_view_versions":[],"filters":[{"content_view_filter_id":14,"content_view_filter_name":"Test - Deb Content View Filter","content_view_id":10,"content_view_name":"Test Content - View","last_affected_repo":true}],"last_sync":{"id":"0c110a6a-16e1-487f-a587-0ab648d99eda","username":"admin","started_at":"2023-11-15 - 09:54:33 UTC","ended_at":"2023-11-15 09:54:46 UTC","state":"stopped","result":"success","progress":1.0},"content_view":{"id":9,"name":"Default - Organization View"},"content_view_version":{"id":8,"name":"Default Organization - View 1.0","content_view_id":9},"kt_environment":{"id":4,"name":"Library"},"content_type":"yum","url":"https://repos.fedorapeople.org/pulp/pulp/demo_repos/zoo/","arch":"noarch","os_versions":[],"content_id":"1700042066424","generic_remote_options":null,"major":null,"minor":null,"product":{"id":10,"cp_id":"347380074197","name":"Test - Product","orphaned":false,"redhat":false,"sync_plan":null},"content_label":"Test_Organization_Test_Product_Test_Repository","last_sync_words":"1 - minute"}],"type":"deb","rules":[]}]} + Deb Content View Filter\"","sort":{"by":"name","order":"asc"},"results":[{"inclusion":false,"id":84,"name":"Test + Deb Content View Filter","description":null,"created_at":"2024-07-25 07:29:45 + UTC","updated_at":"2024-07-25 07:29:45 UTC","content_view":{"composite":false,"component_ids":[],"duplicate_repositories_to_publish":[],"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":[],"filtered":true,"repository_ids":[22],"id":19,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":11,"organization":{"name":"Test + Organization","label":"Test_Organization","id":11},"created_at":"2024-07-25 + 07:26:27 UTC","updated_at":"2024-07-25 07:26:27 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":22,"name":"Test + Debian Repository","label":"Test_Debian_Repository","content_type":"deb"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]},"repositories":[{"backend_identifier":"fb721752-18f2-4a0f-affc-964a8f34e999","relative_path":"Test_Organization/Library/custom/Test_Product/Test_Debian_Repository","container_repository_name":"test_organization-test_product-test_debian_repository","full_path":"https://centos8-stream-katello-nightly.tanso.example.com/pulp/content/Test_Organization/Library/custom/Test_Product/Test_Debian_Repository/","library_instance_id":null,"version_href":"/pulp/api/v3/repositories/deb/apt/0190e8c8-8431-7cd7-bb85-df33dcafcb51/versions/1/","remote_href":"/pulp/api/v3/remotes/deb/apt/0190e8c8-836f-7d29-93f2-a0de99de4f56/","publication_href":"/pulp/api/v3/publications/deb/apt/0190e8c8-9fed-7071-9bb3-8f81e2f73dfd/","content_counts":{"deb":289},"mirroring_policy":"mirror_content_only","id":22,"name":"Test + Debian Repository","label":"Test_Debian_Repository","description":null,"content_view_versions":[],"filters":[{"content_view_filter_id":84,"content_view_filter_name":"Test + Deb Content View Filter","content_view_id":19,"content_view_name":"Test Content + View","last_affected_repo":true}],"last_sync":{"id":"dfd3a9ea-7e5f-41ed-8d0f-87e09774c234","username":"admin","started_at":"2024-07-25 + 07:29:39 UTC","ended_at":"2024-07-25 07:29:41 UTC","state":"stopped","result":"success","progress":1.0},"content_view":{"id":18,"name":"Default + Organization View"},"content_view_version":{"id":10,"name":"Default Organization + View 1.0","content_view_id":18},"kt_environment":{"id":10,"name":"Library"},"content_type":"deb","url":"https://ftp.debian.org/debian","arch":"noarch","os_versions":null,"content_id":"1721892373658","generic_remote_options":null,"major":null,"minor":null,"product":{"id":9,"cp_id":"322281955515","name":"Test + Product","orphaned":false,"redhat":false,"sync_plan":null},"content_label":"Test_Organization_Test_Product_Test_Debian_Repository","last_sync_words":"less + than a minute"}],"type":"deb","rules":[]}]} ' headers: @@ -336,7 +336,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '3128' + - '3184' 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''; @@ -350,7 +350,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.1 + - 3.12.0-develop Keep-Alive: - timeout=15, max=95 Strict-Transport-Security: @@ -380,24 +380,24 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/content_views/10/filters/14 + uri: https://foreman.example.org/katello/api/content_views/19/filters/84 response: body: - string: ' {"inclusion":false,"id":14,"name":"Test Deb Content View Filter","description":null,"created_at":"2023-11-15 - 09:55:28 UTC","updated_at":"2023-11-15 09:55:28 UTC","content_view":{"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":true,"repository_ids":[18],"id":10,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":5,"organization":{"name":"Test - Organization","label":"Test_Organization","id":5},"created_at":"2023-11-15 - 09:55:08 UTC","updated_at":"2023-11-15 09:55:08 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":18,"name":"Test - Repository","label":"Test_Repository","content_type":"yum","product":{"id":10,"name":"Test - Product"},"content_counts":{"docker_manifest":0,"docker_tag":0,"rpm":32,"package":32,"package_group":2,"erratum":4,"module_stream":0}}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]},"repositories":[{"backend_identifier":"29b3d88f-d4d9-4411-b1db-69f3a9c7df12","relative_path":"Test_Organization/Library/custom/Test_Product/Test_Repository","container_repository_name":null,"full_path":"https://centos8-stream-katello-4-9.tanso.example.com/pulp/content/Test_Organization/Library/custom/Test_Product/Test_Repository/","library_instance_id":null,"version_href":"/pulp/api/v3/repositories/rpm/rpm/00e6944a-841e-4bfe-9416-070861ef58fb/versions/1/","remote_href":"/pulp/api/v3/remotes/rpm/rpm/7e1e16ba-4432-4a52-988e-3da939154cbe/","publication_href":"/pulp/api/v3/publications/rpm/rpm/9695e87f-67d7-4765-9f98-e9a13987baef/","content_counts":{"rpm":32,"erratum":4,"package_group":2,"srpm":0,"module_stream":0},"mirroring_policy":"mirror_content_only","id":18,"name":"Test - Repository","label":"Test_Repository","description":null,"content_view_versions":[],"filters":[{"content_view_filter_id":14,"content_view_filter_name":"Test - Deb Content View Filter","content_view_id":10,"content_view_name":"Test Content - View","last_affected_repo":true}],"last_sync":{"id":"0c110a6a-16e1-487f-a587-0ab648d99eda","username":"admin","started_at":"2023-11-15 - 09:54:33 UTC","ended_at":"2023-11-15 09:54:46 UTC","state":"stopped","result":"success","progress":1.0},"content_view":{"id":9,"name":"Default - Organization View"},"content_view_version":{"id":8,"name":"Default Organization - View 1.0","content_view_id":9},"kt_environment":{"id":4,"name":"Library"},"content_type":"yum","url":"https://repos.fedorapeople.org/pulp/pulp/demo_repos/zoo/","arch":"noarch","os_versions":[],"content_id":"1700042066424","generic_remote_options":null,"major":null,"minor":null,"product":{"id":10,"cp_id":"347380074197","name":"Test - Product","orphaned":false,"redhat":false,"sync_plan":null},"content_label":"Test_Organization_Test_Product_Test_Repository","last_sync_words":"1 - minute"}],"type":"deb","rules":[]} + string: ' {"inclusion":false,"id":84,"name":"Test Deb Content View Filter","description":null,"created_at":"2024-07-25 + 07:29:45 UTC","updated_at":"2024-07-25 07:29:45 UTC","content_view":{"composite":false,"component_ids":[],"duplicate_repositories_to_publish":[],"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":[],"filtered":true,"repository_ids":[22],"id":19,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":11,"organization":{"name":"Test + Organization","label":"Test_Organization","id":11},"created_at":"2024-07-25 + 07:26:27 UTC","updated_at":"2024-07-25 07:26:27 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":22,"name":"Test + Debian Repository","label":"Test_Debian_Repository","content_type":"deb","product":{"id":9,"name":"Test + Product"},"content_counts":{"docker_manifest":0,"docker_tag":0,"rpm":0,"package":0,"package_group":0,"erratum":0,"module_stream":0}}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]},"repositories":[{"backend_identifier":"fb721752-18f2-4a0f-affc-964a8f34e999","relative_path":"Test_Organization/Library/custom/Test_Product/Test_Debian_Repository","container_repository_name":"test_organization-test_product-test_debian_repository","full_path":"https://centos8-stream-katello-nightly.tanso.example.com/pulp/content/Test_Organization/Library/custom/Test_Product/Test_Debian_Repository/","library_instance_id":null,"version_href":"/pulp/api/v3/repositories/deb/apt/0190e8c8-8431-7cd7-bb85-df33dcafcb51/versions/1/","remote_href":"/pulp/api/v3/remotes/deb/apt/0190e8c8-836f-7d29-93f2-a0de99de4f56/","publication_href":"/pulp/api/v3/publications/deb/apt/0190e8c8-9fed-7071-9bb3-8f81e2f73dfd/","content_counts":{"deb":289},"mirroring_policy":"mirror_content_only","id":22,"name":"Test + Debian Repository","label":"Test_Debian_Repository","description":null,"content_view_versions":[],"filters":[{"content_view_filter_id":84,"content_view_filter_name":"Test + Deb Content View Filter","content_view_id":19,"content_view_name":"Test Content + View","last_affected_repo":true}],"last_sync":{"id":"dfd3a9ea-7e5f-41ed-8d0f-87e09774c234","username":"admin","started_at":"2024-07-25 + 07:29:39 UTC","ended_at":"2024-07-25 07:29:41 UTC","state":"stopped","result":"success","progress":1.0},"content_view":{"id":18,"name":"Default + Organization View"},"content_view_version":{"id":10,"name":"Default Organization + View 1.0","content_view_id":18},"kt_environment":{"id":10,"name":"Library"},"content_type":"deb","url":"https://ftp.debian.org/debian","arch":"noarch","os_versions":null,"content_id":"1721892373658","generic_remote_options":null,"major":null,"minor":null,"product":{"id":9,"cp_id":"322281955515","name":"Test + Product","orphaned":false,"redhat":false,"sync_plan":null},"content_label":"Test_Organization_Test_Product_Test_Debian_Repository","last_sync_words":"less + than a minute"}],"type":"deb","rules":[]} ' headers: @@ -406,7 +406,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '3114' + - '3167' 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''; @@ -420,7 +420,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.1 + - 3.12.0-develop Keep-Alive: - timeout=15, max=94 Strict-Transport-Security: @@ -454,24 +454,24 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: PUT - uri: https://foreman.example.org/katello/api/content_views/10/filters/14 + uri: https://foreman.example.org/katello/api/content_views/19/filters/84 response: body: - string: ' {"inclusion":true,"id":14,"name":"Test Deb Content View Filter","description":null,"created_at":"2023-11-15 - 09:55:28 UTC","updated_at":"2023-11-15 09:55:30 UTC","content_view":{"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":true,"repository_ids":[18],"id":10,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":5,"organization":{"name":"Test - Organization","label":"Test_Organization","id":5},"created_at":"2023-11-15 - 09:55:08 UTC","updated_at":"2023-11-15 09:55:08 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":18,"name":"Test - Repository","label":"Test_Repository","content_type":"yum","product":{"id":10,"name":"Test - Product"},"content_counts":{"docker_manifest":0,"docker_tag":0,"rpm":32,"package":32,"package_group":2,"erratum":4,"module_stream":0}}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]},"repositories":[{"backend_identifier":"29b3d88f-d4d9-4411-b1db-69f3a9c7df12","relative_path":"Test_Organization/Library/custom/Test_Product/Test_Repository","container_repository_name":null,"full_path":"https://centos8-stream-katello-4-9.tanso.example.com/pulp/content/Test_Organization/Library/custom/Test_Product/Test_Repository/","library_instance_id":null,"version_href":"/pulp/api/v3/repositories/rpm/rpm/00e6944a-841e-4bfe-9416-070861ef58fb/versions/1/","remote_href":"/pulp/api/v3/remotes/rpm/rpm/7e1e16ba-4432-4a52-988e-3da939154cbe/","publication_href":"/pulp/api/v3/publications/rpm/rpm/9695e87f-67d7-4765-9f98-e9a13987baef/","content_counts":{"rpm":32,"erratum":4,"package_group":2,"srpm":0,"module_stream":0},"mirroring_policy":"mirror_content_only","id":18,"name":"Test - Repository","label":"Test_Repository","description":null,"content_view_versions":[],"filters":[{"content_view_filter_id":14,"content_view_filter_name":"Test - Deb Content View Filter","content_view_id":10,"content_view_name":"Test Content - View","last_affected_repo":true}],"last_sync":{"id":"0c110a6a-16e1-487f-a587-0ab648d99eda","username":"admin","started_at":"2023-11-15 - 09:54:33 UTC","ended_at":"2023-11-15 09:54:46 UTC","state":"stopped","result":"success","progress":1.0},"content_view":{"id":9,"name":"Default - Organization View"},"content_view_version":{"id":8,"name":"Default Organization - View 1.0","content_view_id":9},"kt_environment":{"id":4,"name":"Library"},"content_type":"yum","url":"https://repos.fedorapeople.org/pulp/pulp/demo_repos/zoo/","arch":"noarch","os_versions":[],"content_id":"1700042066424","generic_remote_options":null,"major":null,"minor":null,"product":{"id":10,"cp_id":"347380074197","name":"Test - Product","orphaned":false,"redhat":false,"sync_plan":null},"content_label":"Test_Organization_Test_Product_Test_Repository","last_sync_words":"1 - minute"}],"type":"deb","rules":[]} + string: ' {"inclusion":true,"id":84,"name":"Test Deb Content View Filter","description":null,"created_at":"2024-07-25 + 07:29:45 UTC","updated_at":"2024-07-25 07:29:47 UTC","content_view":{"composite":false,"component_ids":[],"duplicate_repositories_to_publish":[],"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":[],"filtered":true,"repository_ids":[22],"id":19,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":11,"organization":{"name":"Test + Organization","label":"Test_Organization","id":11},"created_at":"2024-07-25 + 07:26:27 UTC","updated_at":"2024-07-25 07:26:27 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":22,"name":"Test + Debian Repository","label":"Test_Debian_Repository","content_type":"deb","product":{"id":9,"name":"Test + Product"},"content_counts":{"docker_manifest":0,"docker_tag":0,"rpm":0,"package":0,"package_group":0,"erratum":0,"module_stream":0}}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]},"repositories":[{"backend_identifier":"fb721752-18f2-4a0f-affc-964a8f34e999","relative_path":"Test_Organization/Library/custom/Test_Product/Test_Debian_Repository","container_repository_name":"test_organization-test_product-test_debian_repository","full_path":"https://centos8-stream-katello-nightly.tanso.example.com/pulp/content/Test_Organization/Library/custom/Test_Product/Test_Debian_Repository/","library_instance_id":null,"version_href":"/pulp/api/v3/repositories/deb/apt/0190e8c8-8431-7cd7-bb85-df33dcafcb51/versions/1/","remote_href":"/pulp/api/v3/remotes/deb/apt/0190e8c8-836f-7d29-93f2-a0de99de4f56/","publication_href":"/pulp/api/v3/publications/deb/apt/0190e8c8-9fed-7071-9bb3-8f81e2f73dfd/","content_counts":{"deb":289},"mirroring_policy":"mirror_content_only","id":22,"name":"Test + Debian Repository","label":"Test_Debian_Repository","description":null,"content_view_versions":[],"filters":[{"content_view_filter_id":84,"content_view_filter_name":"Test + Deb Content View Filter","content_view_id":19,"content_view_name":"Test Content + View","last_affected_repo":true}],"last_sync":{"id":"dfd3a9ea-7e5f-41ed-8d0f-87e09774c234","username":"admin","started_at":"2024-07-25 + 07:29:39 UTC","ended_at":"2024-07-25 07:29:41 UTC","state":"stopped","result":"success","progress":1.0},"content_view":{"id":18,"name":"Default + Organization View"},"content_view_version":{"id":10,"name":"Default Organization + View 1.0","content_view_id":18},"kt_environment":{"id":10,"name":"Library"},"content_type":"deb","url":"https://ftp.debian.org/debian","arch":"noarch","os_versions":null,"content_id":"1721892373658","generic_remote_options":null,"major":null,"minor":null,"product":{"id":9,"cp_id":"322281955515","name":"Test + Product","orphaned":false,"redhat":false,"sync_plan":null},"content_label":"Test_Organization_Test_Product_Test_Debian_Repository","last_sync_words":"less + than a minute"}],"type":"deb","rules":[]} ' headers: @@ -480,7 +480,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '3113' + - '3166' 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''; @@ -494,7 +494,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.1 + - 3.12.0-develop Keep-Alive: - timeout=15, max=93 Strict-Transport-Security: diff --git a/tests/test_playbooks/fixtures/content_view_filter_rule-30.yml b/tests/test_playbooks/fixtures/content_view_filter_deb-3.yml similarity index 56% rename from tests/test_playbooks/fixtures/content_view_filter_rule-30.yml rename to tests/test_playbooks/fixtures/content_view_filter_deb-3.yml index 464280713..fafd18ce3 100644 --- a/tests/test_playbooks/fixtures/content_view_filter_rule-30.yml +++ b/tests/test_playbooks/fixtures/content_view_filter_deb-3.yml @@ -14,14 +14,14 @@ interactions: uri: https://foreman.example.org/api/status response: body: - string: '{"result":"ok","status":200,"version":"3.7.0-rc2","api_version":2}' + string: '{"result":"ok","status":200,"version":"3.12.0-develop","api_version":2}' headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive Content-Length: - - '66' + - '71' 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''; @@ -35,7 +35,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=100 Strict-Transport-Security: @@ -70,8 +70,8 @@ interactions: body: 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-05 - 22:32:12 UTC\",\"updated_at\":\"2023-06-05 22:32:15 UTC\",\"id\":11,\"name\":\"Test + {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\":\"Test_Organization\",\"created_at\":\"2024-07-25 + 07:26:09 UTC\",\"updated_at\":\"2024-07-25 07:26:11 UTC\",\"id\":11,\"name\":\"Test Organization\",\"title\":\"Test Organization\",\"description\":\"A test organization\"}]\n}\n" headers: Cache-Control: @@ -93,7 +93,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=99 Strict-Transport-Security: @@ -127,13 +127,10 @@ interactions: response: body: string: '{"total":2,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Content View\"","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":true,"repository_ids":[31,32,33,34],"id":19,"name":"Test + Content View\"","sort":{"by":"name","order":"asc"},"results":[{"composite":false,"component_ids":[],"duplicate_repositories_to_publish":[],"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":[],"filtered":true,"repository_ids":[22],"id":19,"name":"Test Content View","label":"Test_Content_View","description":null,"organization_id":11,"organization":{"name":"Test - Organization","label":"Test_Organization","id":11},"created_at":"2023-06-05 - 22:34:51 UTC","updated_at":"2023-06-05 22:34:51 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":31,"name":"Test - Repository","label":"Test_Repository","content_type":"yum"},{"id":32,"name":"Test - Modular Repository","label":"Test_Modular_Repository","content_type":"yum"},{"id":33,"name":"Test - Docker Repository","label":"Test_Docker_Repository","content_type":"docker"},{"id":34,"name":"Test + Organization","label":"Test_Organization","id":11},"created_at":"2024-07-25 + 07:26:27 UTC","updated_at":"2024-07-25 07:26:27 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":22,"name":"Test Debian Repository","label":"Test_Debian_Repository","content_type":"deb"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]}]} ' @@ -143,7 +140,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '1353' + - '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''; @@ -157,7 +154,7 @@ interactions: Foreman_current_organization: - 11; Test Organization Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=98 Strict-Transport-Security: @@ -187,21 +184,14 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/content_views/19/filters?search=name%3D%22Test+Content+View+Filter+-+modulemd%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/organizations/11/products?search=name%3D%22Test+Product%22&per_page=4294967296 response: body: - string: '{"total":10,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Content View Filter - modulemd\"","sort":{"by":"name","order":"asc"},"results":[{"inclusion":false,"id":63,"name":"Test - Content View Filter - modulemd","description":null,"created_at":"2023-06-05 - 22:35:00 UTC","updated_at":"2023-06-05 22:35:00 UTC","content_view":{"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":true,"repository_ids":[31,32,33,34],"id":19,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":11,"organization":{"name":"Test - Organization","label":"Test_Organization","id":11},"created_at":"2023-06-05 - 22:34:51 UTC","updated_at":"2023-06-05 22:34:51 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":31,"name":"Test - Repository","label":"Test_Repository","content_type":"yum"},{"id":32,"name":"Test - Modular Repository","label":"Test_Modular_Repository","content_type":"yum"},{"id":33,"name":"Test - Docker Repository","label":"Test_Docker_Repository","content_type":"docker"},{"id":34,"name":"Test - Debian Repository","label":"Test_Debian_Repository","content_type":"deb"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]},"repositories":[],"type":"modulemd","rules":[{"content_view_filter_id":63,"module_stream_id":11,"id":5,"created_at":"2023-06-05 - 22:35:14 UTC","updated_at":"2023-06-05 22:35:14 UTC"}]}]} + string: '{"total":1,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test + Product\"","sort":{"by":"name","order":"asc"},"results":[{"id":9,"cp_id":"322281955515","name":"Test + Product","label":"Test_Product","description":"A happy little test product","provider_id":19,"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":"2024-07-25 07:29:39 UTC","last_sync_words":"less than + a minute","organization_id":11,"organization":{"name":"Test Organization","label":"Test_Organization","id":11},"sync_plan":null,"repository_count":1}]} ' headers: @@ -210,7 +200,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '1740' + - '693' 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''; @@ -222,9 +212,9 @@ interactions: Foreman_current_location: - ; ANY Foreman_current_organization: - - ; ANY + - 11; Test Organization Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=97 Strict-Transport-Security: @@ -254,15 +244,19 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/module_streams?search=name%3D%22nextcloud%22%2Cstream%3D%2223%22%2Cversion%3D%22820220801190052%22%2Ccontext%3D%22nx4%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/products/9/repositories?search=name%3D%22Test+Debian+Repository%22&per_page=4294967296 response: body: - string: '{"total":24,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"nextcloud\",stream=\"23\",version=\"820220801190052\",context=\"nx4\"","sort":{"by":"name","order":"asc"},"results":[{"id":11,"name":"nextcloud","pulp_id":"/pulp/api/v3/content/rpm/modulemds/54d698dc-212f-403e-ac6d-76bb3641559c/","version":"820220801190052","context":"nx4","stream":"23","arch":"x86_64","description":"Nextcloud - gives you universal access to your files through a web interface or WebDAV. - It also provides a platform to easily view & sync your contacts, calendars - and bookmarks across all your devices and enables basic editing right on the - web. Nextcloud is extendable via a simple but powerful API for applications - and plugins.","summary":null,"module_spec":"nextcloud:23:820220801190052:nx4:x86_64","uuid":"/pulp/api/v3/content/rpm/modulemds/54d698dc-212f-403e-ac6d-76bb3641559c/"}]} + string: '{"total":1,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test + Debian Repository\"","sort":{"by":"name","order":"asc"},"results":[{"backend_identifier":"fb721752-18f2-4a0f-affc-964a8f34e999","relative_path":"Test_Organization/Library/custom/Test_Product/Test_Debian_Repository","container_repository_name":"test_organization-test_product-test_debian_repository","full_path":"https://centos8-stream-katello-nightly.tanso.example.com/pulp/content/Test_Organization/Library/custom/Test_Product/Test_Debian_Repository/","library_instance_id":null,"version_href":"/pulp/api/v3/repositories/deb/apt/0190e8c8-8431-7cd7-bb85-df33dcafcb51/versions/1/","remote_href":"/pulp/api/v3/remotes/deb/apt/0190e8c8-836f-7d29-93f2-a0de99de4f56/","publication_href":"/pulp/api/v3/publications/deb/apt/0190e8c8-9fed-7071-9bb3-8f81e2f73dfd/","content_counts":{"deb":289},"mirroring_policy":"mirror_content_only","id":22,"name":"Test + Debian Repository","label":"Test_Debian_Repository","description":null,"content_view_versions":[],"filters":[{"content_view_filter_id":84,"content_view_filter_name":"Test + Deb Content View Filter","content_view_id":19,"content_view_name":"Test Content + View","last_affected_repo":true}],"last_sync":{"id":"dfd3a9ea-7e5f-41ed-8d0f-87e09774c234","username":"admin","started_at":"2024-07-25 + 07:29:39 UTC","ended_at":"2024-07-25 07:29:41 UTC","state":"stopped","result":"success","progress":1.0},"content_view":{"id":18,"name":"Default + Organization View"},"content_view_version":{"id":10,"name":"Default Organization + View 1.0","content_view_id":18},"kt_environment":{"id":10,"name":"Library"},"content_type":"deb","url":"https://ftp.debian.org/debian","arch":"noarch","os_versions":null,"content_id":"1721892373658","generic_remote_options":null,"major":null,"minor":null,"product":{"id":9,"cp_id":"322281955515","name":"Test + Product","orphaned":false,"redhat":false,"sync_plan":null},"content_label":"Test_Organization_Test_Product_Test_Debian_Repository","last_sync_words":"less + than a minute"}],"org_repository_count":1} ' headers: @@ -271,7 +265,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '906' + - '2072' 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''; @@ -285,7 +279,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=96 Strict-Transport-Security: @@ -315,11 +309,25 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/content_view_filters/63/rules?search=id%3D%225%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/content_views/19/filters?search=name%3D%22Test+Deb+Content+View+Filter%22&per_page=4294967296 response: body: - string: '{"total":1,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"id=\"5\"","sort":{"by":"id","order":"asc"},"results":[{"content_view_filter_id":63,"module_stream_id":11,"id":5,"created_at":"2023-06-05 - 22:35:14 UTC","updated_at":"2023-06-05 22:35:14 UTC"}]} + string: '{"total":1,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test + Deb Content View Filter\"","sort":{"by":"name","order":"asc"},"results":[{"inclusion":true,"id":84,"name":"Test + Deb Content View Filter","description":null,"created_at":"2024-07-25 07:29:45 + UTC","updated_at":"2024-07-25 07:29:47 UTC","content_view":{"composite":false,"component_ids":[],"duplicate_repositories_to_publish":[],"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":[],"filtered":true,"repository_ids":[22],"id":19,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":11,"organization":{"name":"Test + Organization","label":"Test_Organization","id":11},"created_at":"2024-07-25 + 07:26:27 UTC","updated_at":"2024-07-25 07:26:27 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":22,"name":"Test + Debian Repository","label":"Test_Debian_Repository","content_type":"deb"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]},"repositories":[{"backend_identifier":"fb721752-18f2-4a0f-affc-964a8f34e999","relative_path":"Test_Organization/Library/custom/Test_Product/Test_Debian_Repository","container_repository_name":"test_organization-test_product-test_debian_repository","full_path":"https://centos8-stream-katello-nightly.tanso.example.com/pulp/content/Test_Organization/Library/custom/Test_Product/Test_Debian_Repository/","library_instance_id":null,"version_href":"/pulp/api/v3/repositories/deb/apt/0190e8c8-8431-7cd7-bb85-df33dcafcb51/versions/1/","remote_href":"/pulp/api/v3/remotes/deb/apt/0190e8c8-836f-7d29-93f2-a0de99de4f56/","publication_href":"/pulp/api/v3/publications/deb/apt/0190e8c8-9fed-7071-9bb3-8f81e2f73dfd/","content_counts":{"deb":289},"mirroring_policy":"mirror_content_only","id":22,"name":"Test + Debian Repository","label":"Test_Debian_Repository","description":null,"content_view_versions":[],"filters":[{"content_view_filter_id":84,"content_view_filter_name":"Test + Deb Content View Filter","content_view_id":19,"content_view_name":"Test Content + View","last_affected_repo":true}],"last_sync":{"id":"dfd3a9ea-7e5f-41ed-8d0f-87e09774c234","username":"admin","started_at":"2024-07-25 + 07:29:39 UTC","ended_at":"2024-07-25 07:29:41 UTC","state":"stopped","result":"success","progress":1.0},"content_view":{"id":18,"name":"Default + Organization View"},"content_view_version":{"id":10,"name":"Default Organization + View 1.0","content_view_id":18},"kt_environment":{"id":10,"name":"Library"},"content_type":"deb","url":"https://ftp.debian.org/debian","arch":"noarch","os_versions":null,"content_id":"1721892373658","generic_remote_options":null,"major":null,"minor":null,"product":{"id":9,"cp_id":"322281955515","name":"Test + Product","orphaned":false,"redhat":false,"sync_plan":null},"content_label":"Test_Organization_Test_Product_Test_Debian_Repository","last_sync_words":"less + than a minute"}],"type":"deb","rules":[]}]} ' headers: @@ -328,7 +336,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '288' + - '3183' 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,7 +350,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=95 Strict-Transport-Security: @@ -374,11 +382,16 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: DELETE - uri: https://foreman.example.org/katello/api/content_view_filters/63/rules/5 + uri: https://foreman.example.org/katello/api/content_views/19/filters/84 response: body: - string: ' {"content_view_filter_id":63,"module_stream_id":11,"id":5,"created_at":"2023-06-05 - 22:35:14 UTC","updated_at":"2023-06-05 22:35:14 UTC"} + string: ' {"inclusion":true,"id":84,"name":"Test Deb Content View Filter","description":null,"created_at":"2024-07-25 + 07:29:45 UTC","updated_at":"2024-07-25 07:29:47 UTC","content_view":{"composite":false,"component_ids":[],"duplicate_repositories_to_publish":[],"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":[],"filtered":false,"repository_ids":[22],"id":19,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":11,"organization":{"name":"Test + Organization","label":"Test_Organization","id":11},"created_at":"2024-07-25 + 07:26:27 UTC","updated_at":"2024-07-25 07:26:27 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":22,"name":"Test + Debian Repository","label":"Test_Debian_Repository","content_type":"deb","product":{"id":9,"name":"Test + Product"},"content_counts":{"docker_manifest":0,"docker_tag":0,"rpm":0,"package":0,"package_group":0,"erratum":0,"module_stream":0}}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]},"repositories":[],"type":"deb","rules":[]} ' headers: @@ -387,7 +400,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '139' + - '1297' 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''; @@ -401,7 +414,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=94 Strict-Transport-Security: diff --git a/tests/test_playbooks/fixtures/content_view_filter_info-0.yml b/tests/test_playbooks/fixtures/content_view_filter_info-0.yml index 1dac3dbfa..6c53a3ea5 100644 --- a/tests/test_playbooks/fixtures/content_view_filter_info-0.yml +++ b/tests/test_playbooks/fixtures/content_view_filter_info-0.yml @@ -14,14 +14,14 @@ interactions: uri: https://foreman.example.org/api/status response: body: - string: '{"result":"ok","status":200,"version":"3.7.0-rc2","api_version":2}' + string: '{"result":"ok","status":200,"version":"3.12.0-develop","api_version":2}' headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive Content-Length: - - '66' + - '71' 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''; @@ -35,7 +35,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=100 Strict-Transport-Security: @@ -70,8 +70,8 @@ interactions: body: 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-05 - 22:21:52 UTC\",\"updated_at\":\"2023-06-05 22:21:54 UTC\",\"id\":9,\"name\":\"Test + {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\":\"Test_Organization\",\"created_at\":\"2024-07-25 + 07:48:37 UTC\",\"updated_at\":\"2024-07-25 07:48:39 UTC\",\"id\":13,\"name\":\"Test Organization\",\"title\":\"Test Organization\",\"description\":\"A test organization\"}]\n}\n" headers: Cache-Control: @@ -79,7 +79,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '388' + - '389' 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''; @@ -93,7 +93,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=99 Strict-Transport-Security: @@ -123,18 +123,17 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/organizations/9/content_views?search=name%3D%22Test+Content+View%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/organizations/13/content_views?search=name%3D%22Test+Content+View%22&per_page=4294967296 response: body: string: '{"total":2,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Content View\"","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":true,"repository_ids":[23,24,25,26],"id":15,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":9,"organization":{"name":"Test - Organization","label":"Test_Organization","id":9},"created_at":"2023-06-05 - 22:23:21 UTC","updated_at":"2023-06-05 22:23:21 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":23,"name":"Test - Repository","label":"Test_Repository","content_type":"yum"},{"id":24,"name":"Test - Modular Repository","label":"Test_Modular_Repository","content_type":"yum"},{"id":25,"name":"Test - Docker Repository","label":"Test_Docker_Repository","content_type":"docker"},{"id":26,"name":"Test - Debian Repository","label":"Test_Debian_Repository","content_type":"deb"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]}]} + Content View\"","sort":{"by":"name","order":"asc"},"results":[{"composite":false,"component_ids":[],"duplicate_repositories_to_publish":[],"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":[],"filtered":true,"repository_ids":[27,28,29],"id":23,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":13,"organization":{"name":"Test + Organization","label":"Test_Organization","id":13},"created_at":"2024-07-25 + 07:49:22 UTC","updated_at":"2024-07-25 07:49:22 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":27,"name":"Test + Repository","label":"Test_Repository","content_type":"yum"},{"id":28,"name":"Test + Modular Repository","label":"Test_Modular_Repository","content_type":"yum"},{"id":29,"name":"Test + Docker Repository","label":"Test_Docker_Repository","content_type":"docker"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]}]} ' headers: @@ -143,7 +142,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '1351' + - '1272' 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''; @@ -155,9 +154,9 @@ interactions: Foreman_current_location: - ; ANY Foreman_current_organization: - - 9; Test Organization + - 13; Test Organization Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=98 Strict-Transport-Security: @@ -187,20 +186,19 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/content_views/15/filters?search=name%3D%22Test+Content+View+Filter+-+AllRPMsNoErrata%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/content_views/23/filters?search=name%3D%22Test+Content+View+Filter+-+AllRPMsNoErrata%22&per_page=4294967296 response: body: string: '{"total":10,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Content View Filter - AllRPMsNoErrata\"","sort":{"by":"name","order":"asc"},"results":[{"inclusion":true,"id":35,"name":"Test - Content View Filter - AllRPMsNoErrata","description":null,"created_at":"2023-06-05 - 22:23:22 UTC","updated_at":"2023-06-05 22:23:22 UTC","content_view":{"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":true,"repository_ids":[23,24,25,26],"id":15,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":9,"organization":{"name":"Test - Organization","label":"Test_Organization","id":9},"created_at":"2023-06-05 - 22:23:21 UTC","updated_at":"2023-06-05 22:23:21 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":23,"name":"Test - Repository","label":"Test_Repository","content_type":"yum"},{"id":24,"name":"Test - Modular Repository","label":"Test_Modular_Repository","content_type":"yum"},{"id":25,"name":"Test - Docker Repository","label":"Test_Docker_Repository","content_type":"docker"},{"id":26,"name":"Test - Debian Repository","label":"Test_Debian_Repository","content_type":"deb"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]},"repositories":[],"type":"rpm","rules":[]}]} + Content View Filter - AllRPMsNoErrata\"","sort":{"by":"name","order":"asc"},"results":[{"inclusion":true,"id":95,"name":"Test + Content View Filter - AllRPMsNoErrata","description":null,"created_at":"2024-07-25 + 07:49:23 UTC","updated_at":"2024-07-25 07:49:23 UTC","content_view":{"composite":false,"component_ids":[],"duplicate_repositories_to_publish":[],"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":[],"filtered":true,"repository_ids":[29,27,28],"id":23,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":13,"organization":{"name":"Test + Organization","label":"Test_Organization","id":13},"created_at":"2024-07-25 + 07:49:22 UTC","updated_at":"2024-07-25 07:49:22 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":29,"name":"Test + Docker Repository","label":"Test_Docker_Repository","content_type":"docker"},{"id":27,"name":"Test + Repository","label":"Test_Repository","content_type":"yum"},{"id":28,"name":"Test + Modular Repository","label":"Test_Modular_Repository","content_type":"yum"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]},"repositories":[],"type":"rpm","rules":[]}]} ' headers: @@ -209,7 +207,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '1610' + - '1531' 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''; @@ -223,7 +221,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=97 Strict-Transport-Security: @@ -253,23 +251,21 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/content_views/15/filters/35 + uri: https://foreman.example.org/katello/api/content_views/23/filters/95 response: body: - string: ' {"inclusion":true,"original_packages":true,"id":35,"name":"Test Content - View Filter - AllRPMsNoErrata","description":null,"created_at":"2023-06-05 - 22:23:22 UTC","updated_at":"2023-06-05 22:23:22 UTC","content_view":{"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":true,"repository_ids":[23,24,25,26],"id":15,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":9,"organization":{"name":"Test - Organization","label":"Test_Organization","id":9},"created_at":"2023-06-05 - 22:23:21 UTC","updated_at":"2023-06-05 22:23:21 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":23,"name":"Test - Repository","label":"Test_Repository","content_type":"yum","product":{"id":8,"name":"Test - Product"},"content_counts":{"docker_manifest":0,"docker_tag":0,"rpm":32,"package":32,"package_group":2,"erratum":4,"module_stream":0}},{"id":24,"name":"Test - Modular Repository","label":"Test_Modular_Repository","content_type":"yum","product":{"id":8,"name":"Test - Product"},"content_counts":{"docker_manifest":0,"docker_tag":0,"rpm":290,"package":290,"package_group":0,"erratum":14,"module_stream":24}},{"id":25,"name":"Test - Docker Repository","label":"Test_Docker_Repository","content_type":"docker","product":{"id":8,"name":"Test - Product"},"content_counts":{"docker_manifest":72,"docker_tag":23,"rpm":0,"package":0,"package_group":0,"erratum":0,"module_stream":0}},{"id":26,"name":"Test - Debian Repository","label":"Test_Debian_Repository","content_type":"deb","product":{"id":8,"name":"Test - Product"},"content_counts":{"docker_manifest":0,"docker_tag":0,"rpm":0,"package":0,"package_group":0,"erratum":0,"module_stream":0}}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]},"repositories":[],"type":"rpm","rules":[]} + string: ' {"inclusion":true,"original_packages":true,"id":95,"name":"Test Content + View Filter - AllRPMsNoErrata","description":null,"created_at":"2024-07-25 + 07:49:23 UTC","updated_at":"2024-07-25 07:49:23 UTC","content_view":{"composite":false,"component_ids":[],"duplicate_repositories_to_publish":[],"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":[],"filtered":true,"repository_ids":[29,27,28],"id":23,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":13,"organization":{"name":"Test + Organization","label":"Test_Organization","id":13},"created_at":"2024-07-25 + 07:49:22 UTC","updated_at":"2024-07-25 07:49:22 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":29,"name":"Test + Docker Repository","label":"Test_Docker_Repository","content_type":"docker","product":{"id":11,"name":"Test + Product"},"content_counts":{"docker_manifest":177,"docker_tag":70,"rpm":0,"package":0,"package_group":0,"erratum":0,"module_stream":0}},{"id":27,"name":"Test + Repository","label":"Test_Repository","content_type":"yum","product":{"id":11,"name":"Test + Product"},"content_counts":{"docker_manifest":0,"docker_tag":0,"rpm":32,"package":32,"package_group":2,"erratum":4,"module_stream":0}},{"id":28,"name":"Test + Modular Repository","label":"Test_Modular_Repository","content_type":"yum","product":{"id":11,"name":"Test + Product"},"content_counts":{"docker_manifest":0,"docker_tag":0,"rpm":290,"package":290,"package_group":0,"erratum":14,"module_stream":24}}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]},"repositories":[],"type":"rpm","rules":[]} ' headers: @@ -278,7 +274,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '2102' + - '1864' 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''; @@ -292,7 +288,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=96 Strict-Transport-Security: diff --git a/tests/test_playbooks/fixtures/content_view_filter_info-1.yml b/tests/test_playbooks/fixtures/content_view_filter_info-1.yml index a08ba52ec..f91204ec4 100644 --- a/tests/test_playbooks/fixtures/content_view_filter_info-1.yml +++ b/tests/test_playbooks/fixtures/content_view_filter_info-1.yml @@ -14,14 +14,14 @@ interactions: uri: https://foreman.example.org/api/status response: body: - string: '{"result":"ok","status":200,"version":"3.7.0-rc2","api_version":2}' + string: '{"result":"ok","status":200,"version":"3.12.0-develop","api_version":2}' headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive Content-Length: - - '66' + - '71' 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''; @@ -35,7 +35,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=100 Strict-Transport-Security: @@ -70,8 +70,8 @@ interactions: body: 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-05 - 22:21:52 UTC\",\"updated_at\":\"2023-06-05 22:21:54 UTC\",\"id\":9,\"name\":\"Test + {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\":\"Test_Organization\",\"created_at\":\"2024-07-25 + 07:48:37 UTC\",\"updated_at\":\"2024-07-25 07:48:39 UTC\",\"id\":13,\"name\":\"Test Organization\",\"title\":\"Test Organization\",\"description\":\"A test organization\"}]\n}\n" headers: Cache-Control: @@ -79,7 +79,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '388' + - '389' 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''; @@ -93,7 +93,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=99 Strict-Transport-Security: @@ -123,18 +123,17 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/organizations/9/content_views?search=name%3D%22Test+Content+View%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/organizations/13/content_views?search=name%3D%22Test+Content+View%22&per_page=4294967296 response: body: string: '{"total":2,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Content View\"","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":true,"repository_ids":[23,24,25,26],"id":15,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":9,"organization":{"name":"Test - Organization","label":"Test_Organization","id":9},"created_at":"2023-06-05 - 22:23:21 UTC","updated_at":"2023-06-05 22:23:21 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":23,"name":"Test - Repository","label":"Test_Repository","content_type":"yum"},{"id":24,"name":"Test - Modular Repository","label":"Test_Modular_Repository","content_type":"yum"},{"id":25,"name":"Test - Docker Repository","label":"Test_Docker_Repository","content_type":"docker"},{"id":26,"name":"Test - Debian Repository","label":"Test_Debian_Repository","content_type":"deb"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]}]} + Content View\"","sort":{"by":"name","order":"asc"},"results":[{"composite":false,"component_ids":[],"duplicate_repositories_to_publish":[],"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":[],"filtered":true,"repository_ids":[27,28,29],"id":23,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":13,"organization":{"name":"Test + Organization","label":"Test_Organization","id":13},"created_at":"2024-07-25 + 07:49:22 UTC","updated_at":"2024-07-25 07:49:22 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":27,"name":"Test + Repository","label":"Test_Repository","content_type":"yum"},{"id":28,"name":"Test + Modular Repository","label":"Test_Modular_Repository","content_type":"yum"},{"id":29,"name":"Test + Docker Repository","label":"Test_Docker_Repository","content_type":"docker"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]}]} ' headers: @@ -143,7 +142,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '1351' + - '1272' 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''; @@ -155,9 +154,9 @@ interactions: Foreman_current_location: - ; ANY Foreman_current_organization: - - 9; Test Organization + - 13; Test Organization Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=98 Strict-Transport-Security: @@ -187,20 +186,19 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/content_views/15/filters?search=name%3D%22Test+Content+View+Filter+-+AllModuleStreamsNoErrata%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/content_views/23/filters?search=name%3D%22Test+Content+View+Filter+-+AllModuleStreamsNoErrata%22&per_page=4294967296 response: body: string: '{"total":10,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Content View Filter - AllModuleStreamsNoErrata\"","sort":{"by":"name","order":"asc"},"results":[{"inclusion":true,"id":36,"name":"Test - Content View Filter - AllModuleStreamsNoErrata","description":null,"created_at":"2023-06-05 - 22:23:23 UTC","updated_at":"2023-06-05 22:23:23 UTC","content_view":{"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":true,"repository_ids":[23,24,25,26],"id":15,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":9,"organization":{"name":"Test - Organization","label":"Test_Organization","id":9},"created_at":"2023-06-05 - 22:23:21 UTC","updated_at":"2023-06-05 22:23:21 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":23,"name":"Test - Repository","label":"Test_Repository","content_type":"yum"},{"id":24,"name":"Test - Modular Repository","label":"Test_Modular_Repository","content_type":"yum"},{"id":25,"name":"Test - Docker Repository","label":"Test_Docker_Repository","content_type":"docker"},{"id":26,"name":"Test - Debian Repository","label":"Test_Debian_Repository","content_type":"deb"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]},"repositories":[],"type":"modulemd","rules":[]}]} + Content View Filter - AllModuleStreamsNoErrata\"","sort":{"by":"name","order":"asc"},"results":[{"inclusion":true,"id":96,"name":"Test + Content View Filter - AllModuleStreamsNoErrata","description":null,"created_at":"2024-07-25 + 07:49:23 UTC","updated_at":"2024-07-25 07:49:23 UTC","content_view":{"composite":false,"component_ids":[],"duplicate_repositories_to_publish":[],"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":[],"filtered":true,"repository_ids":[29,27,28],"id":23,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":13,"organization":{"name":"Test + Organization","label":"Test_Organization","id":13},"created_at":"2024-07-25 + 07:49:22 UTC","updated_at":"2024-07-25 07:49:22 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":29,"name":"Test + Docker Repository","label":"Test_Docker_Repository","content_type":"docker"},{"id":27,"name":"Test + Repository","label":"Test_Repository","content_type":"yum"},{"id":28,"name":"Test + Modular Repository","label":"Test_Modular_Repository","content_type":"yum"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]},"repositories":[],"type":"modulemd","rules":[]}]} ' headers: @@ -209,7 +207,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '1633' + - '1554' 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''; @@ -223,7 +221,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=97 Strict-Transport-Security: @@ -253,23 +251,21 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/content_views/15/filters/36 + uri: https://foreman.example.org/katello/api/content_views/23/filters/96 response: body: - string: ' {"inclusion":true,"original_module_streams":true,"id":36,"name":"Test - Content View Filter - AllModuleStreamsNoErrata","description":null,"created_at":"2023-06-05 - 22:23:23 UTC","updated_at":"2023-06-05 22:23:23 UTC","content_view":{"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":true,"repository_ids":[23,24,25,26],"id":15,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":9,"organization":{"name":"Test - Organization","label":"Test_Organization","id":9},"created_at":"2023-06-05 - 22:23:21 UTC","updated_at":"2023-06-05 22:23:21 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":23,"name":"Test - Repository","label":"Test_Repository","content_type":"yum","product":{"id":8,"name":"Test - Product"},"content_counts":{"docker_manifest":0,"docker_tag":0,"rpm":32,"package":32,"package_group":2,"erratum":4,"module_stream":0}},{"id":24,"name":"Test - Modular Repository","label":"Test_Modular_Repository","content_type":"yum","product":{"id":8,"name":"Test - Product"},"content_counts":{"docker_manifest":0,"docker_tag":0,"rpm":290,"package":290,"package_group":0,"erratum":14,"module_stream":24}},{"id":25,"name":"Test - Docker Repository","label":"Test_Docker_Repository","content_type":"docker","product":{"id":8,"name":"Test - Product"},"content_counts":{"docker_manifest":72,"docker_tag":23,"rpm":0,"package":0,"package_group":0,"erratum":0,"module_stream":0}},{"id":26,"name":"Test - Debian Repository","label":"Test_Debian_Repository","content_type":"deb","product":{"id":8,"name":"Test - Product"},"content_counts":{"docker_manifest":0,"docker_tag":0,"rpm":0,"package":0,"package_group":0,"erratum":0,"module_stream":0}}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]},"repositories":[],"type":"modulemd","rules":[]} + string: ' {"inclusion":true,"original_module_streams":true,"id":96,"name":"Test + Content View Filter - AllModuleStreamsNoErrata","description":null,"created_at":"2024-07-25 + 07:49:23 UTC","updated_at":"2024-07-25 07:49:23 UTC","content_view":{"composite":false,"component_ids":[],"duplicate_repositories_to_publish":[],"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":[],"filtered":true,"repository_ids":[29,27,28],"id":23,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":13,"organization":{"name":"Test + Organization","label":"Test_Organization","id":13},"created_at":"2024-07-25 + 07:49:22 UTC","updated_at":"2024-07-25 07:49:22 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":29,"name":"Test + Docker Repository","label":"Test_Docker_Repository","content_type":"docker","product":{"id":11,"name":"Test + Product"},"content_counts":{"docker_manifest":177,"docker_tag":70,"rpm":0,"package":0,"package_group":0,"erratum":0,"module_stream":0}},{"id":27,"name":"Test + Repository","label":"Test_Repository","content_type":"yum","product":{"id":11,"name":"Test + Product"},"content_counts":{"docker_manifest":0,"docker_tag":0,"rpm":32,"package":32,"package_group":2,"erratum":4,"module_stream":0}},{"id":28,"name":"Test + Modular Repository","label":"Test_Modular_Repository","content_type":"yum","product":{"id":11,"name":"Test + Product"},"content_counts":{"docker_manifest":0,"docker_tag":0,"rpm":290,"package":290,"package_group":0,"erratum":14,"module_stream":24}}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]},"repositories":[],"type":"modulemd","rules":[]} ' headers: @@ -278,7 +274,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '2122' + - '1884' 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''; @@ -292,7 +288,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=96 Strict-Transport-Security: diff --git a/tests/test_playbooks/fixtures/content_view_filter_info-2.yml b/tests/test_playbooks/fixtures/content_view_filter_info-2.yml index bd6644498..ec6bada4a 100644 --- a/tests/test_playbooks/fixtures/content_view_filter_info-2.yml +++ b/tests/test_playbooks/fixtures/content_view_filter_info-2.yml @@ -14,14 +14,14 @@ interactions: uri: https://foreman.example.org/api/status response: body: - string: '{"result":"ok","status":200,"version":"3.7.0-rc2","api_version":2}' + string: '{"result":"ok","status":200,"version":"3.12.0-develop","api_version":2}' headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive Content-Length: - - '66' + - '71' 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''; @@ -35,7 +35,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=100 Strict-Transport-Security: @@ -70,8 +70,8 @@ interactions: body: 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-05 - 22:21:52 UTC\",\"updated_at\":\"2023-06-05 22:21:54 UTC\",\"id\":9,\"name\":\"Test + {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\":\"Test_Organization\",\"created_at\":\"2024-07-25 + 07:48:37 UTC\",\"updated_at\":\"2024-07-25 07:48:39 UTC\",\"id\":13,\"name\":\"Test Organization\",\"title\":\"Test Organization\",\"description\":\"A test organization\"}]\n}\n" headers: Cache-Control: @@ -79,7 +79,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '388' + - '389' 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''; @@ -93,7 +93,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=99 Strict-Transport-Security: @@ -123,18 +123,17 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/organizations/9/content_views?search=name%3D%22Test+Content+View%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/organizations/13/content_views?search=name%3D%22Test+Content+View%22&per_page=4294967296 response: body: string: '{"total":2,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Content View\"","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":true,"repository_ids":[23,24,25,26],"id":15,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":9,"organization":{"name":"Test - Organization","label":"Test_Organization","id":9},"created_at":"2023-06-05 - 22:23:21 UTC","updated_at":"2023-06-05 22:23:21 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":23,"name":"Test - Repository","label":"Test_Repository","content_type":"yum"},{"id":24,"name":"Test - Modular Repository","label":"Test_Modular_Repository","content_type":"yum"},{"id":25,"name":"Test - Docker Repository","label":"Test_Docker_Repository","content_type":"docker"},{"id":26,"name":"Test - Debian Repository","label":"Test_Debian_Repository","content_type":"deb"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]}]} + Content View\"","sort":{"by":"name","order":"asc"},"results":[{"composite":false,"component_ids":[],"duplicate_repositories_to_publish":[],"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":[],"filtered":true,"repository_ids":[27,28,29],"id":23,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":13,"organization":{"name":"Test + Organization","label":"Test_Organization","id":13},"created_at":"2024-07-25 + 07:49:22 UTC","updated_at":"2024-07-25 07:49:22 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":27,"name":"Test + Repository","label":"Test_Repository","content_type":"yum"},{"id":28,"name":"Test + Modular Repository","label":"Test_Modular_Repository","content_type":"yum"},{"id":29,"name":"Test + Docker Repository","label":"Test_Docker_Repository","content_type":"docker"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]}]} ' headers: @@ -143,7 +142,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '1351' + - '1272' 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''; @@ -155,9 +154,9 @@ interactions: Foreman_current_location: - ; ANY Foreman_current_organization: - - 9; Test Organization + - 13; Test Organization Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=98 Strict-Transport-Security: @@ -187,20 +186,19 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/content_views/15/filters?search=name%3D%22Test+Content+View+Filter+-+AllDebs%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/content_views/23/filters?search=name%3D%22Test+Content+View+Filter+-+rpm%22&per_page=4294967296 response: body: string: '{"total":10,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Content View Filter - AllDebs\"","sort":{"by":"name","order":"asc"},"results":[{"inclusion":true,"id":37,"name":"Test - Content View Filter - AllDebs","description":null,"created_at":"2023-06-05 - 22:23:24 UTC","updated_at":"2023-06-05 22:23:24 UTC","content_view":{"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":true,"repository_ids":[23,24,25,26],"id":15,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":9,"organization":{"name":"Test - Organization","label":"Test_Organization","id":9},"created_at":"2023-06-05 - 22:23:21 UTC","updated_at":"2023-06-05 22:23:21 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":23,"name":"Test - Repository","label":"Test_Repository","content_type":"yum"},{"id":24,"name":"Test - Modular Repository","label":"Test_Modular_Repository","content_type":"yum"},{"id":25,"name":"Test - Docker Repository","label":"Test_Docker_Repository","content_type":"docker"},{"id":26,"name":"Test - Debian Repository","label":"Test_Debian_Repository","content_type":"deb"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]},"repositories":[],"type":"deb","rules":[]}]} + Content View Filter - rpm\"","sort":{"by":"name","order":"asc"},"results":[{"inclusion":false,"id":98,"name":"Test + Content View Filter - rpm","description":null,"created_at":"2024-07-25 07:49:24 + UTC","updated_at":"2024-07-25 07:49:24 UTC","content_view":{"composite":false,"component_ids":[],"duplicate_repositories_to_publish":[],"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":[],"filtered":true,"repository_ids":[29,27,28],"id":23,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":13,"organization":{"name":"Test + Organization","label":"Test_Organization","id":13},"created_at":"2024-07-25 + 07:49:22 UTC","updated_at":"2024-07-25 07:49:22 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":29,"name":"Test + Docker Repository","label":"Test_Docker_Repository","content_type":"docker"},{"id":27,"name":"Test + Repository","label":"Test_Repository","content_type":"yum"},{"id":28,"name":"Test + Modular Repository","label":"Test_Modular_Repository","content_type":"yum"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]},"repositories":[],"type":"rpm","rules":[]}]} ' headers: @@ -209,7 +207,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '1594' + - '1508' 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''; @@ -223,7 +221,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=97 Strict-Transport-Security: @@ -253,22 +251,21 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/content_views/15/filters/37 + uri: https://foreman.example.org/katello/api/content_views/23/filters/98 response: body: - string: ' {"inclusion":true,"id":37,"name":"Test Content View Filter - AllDebs","description":null,"created_at":"2023-06-05 - 22:23:24 UTC","updated_at":"2023-06-05 22:23:24 UTC","content_view":{"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":true,"repository_ids":[23,24,25,26],"id":15,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":9,"organization":{"name":"Test - Organization","label":"Test_Organization","id":9},"created_at":"2023-06-05 - 22:23:21 UTC","updated_at":"2023-06-05 22:23:21 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":23,"name":"Test - Repository","label":"Test_Repository","content_type":"yum","product":{"id":8,"name":"Test - Product"},"content_counts":{"docker_manifest":0,"docker_tag":0,"rpm":32,"package":32,"package_group":2,"erratum":4,"module_stream":0}},{"id":24,"name":"Test - Modular Repository","label":"Test_Modular_Repository","content_type":"yum","product":{"id":8,"name":"Test - Product"},"content_counts":{"docker_manifest":0,"docker_tag":0,"rpm":290,"package":290,"package_group":0,"erratum":14,"module_stream":24}},{"id":25,"name":"Test - Docker Repository","label":"Test_Docker_Repository","content_type":"docker","product":{"id":8,"name":"Test - Product"},"content_counts":{"docker_manifest":72,"docker_tag":23,"rpm":0,"package":0,"package_group":0,"erratum":0,"module_stream":0}},{"id":26,"name":"Test - Debian Repository","label":"Test_Debian_Repository","content_type":"deb","product":{"id":8,"name":"Test - Product"},"content_counts":{"docker_manifest":0,"docker_tag":0,"rpm":0,"package":0,"package_group":0,"erratum":0,"module_stream":0}}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]},"repositories":[],"type":"deb","rules":[]} + string: ' {"inclusion":false,"original_packages":false,"id":98,"name":"Test + Content View Filter - rpm","description":null,"created_at":"2024-07-25 07:49:24 + UTC","updated_at":"2024-07-25 07:49:24 UTC","content_view":{"composite":false,"component_ids":[],"duplicate_repositories_to_publish":[],"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":[],"filtered":true,"repository_ids":[29,27,28],"id":23,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":13,"organization":{"name":"Test + Organization","label":"Test_Organization","id":13},"created_at":"2024-07-25 + 07:49:22 UTC","updated_at":"2024-07-25 07:49:22 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":29,"name":"Test + Docker Repository","label":"Test_Docker_Repository","content_type":"docker","product":{"id":11,"name":"Test + Product"},"content_counts":{"docker_manifest":177,"docker_tag":70,"rpm":0,"package":0,"package_group":0,"erratum":0,"module_stream":0}},{"id":27,"name":"Test + Repository","label":"Test_Repository","content_type":"yum","product":{"id":11,"name":"Test + Product"},"content_counts":{"docker_manifest":0,"docker_tag":0,"rpm":32,"package":32,"package_group":2,"erratum":4,"module_stream":0}},{"id":28,"name":"Test + Modular Repository","label":"Test_Modular_Repository","content_type":"yum","product":{"id":11,"name":"Test + Product"},"content_counts":{"docker_manifest":0,"docker_tag":0,"rpm":290,"package":290,"package_group":0,"erratum":14,"module_stream":24}}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]},"repositories":[],"type":"rpm","rules":[]} ' headers: @@ -277,7 +274,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '2069' + - '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''; @@ -291,7 +288,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=96 Strict-Transport-Security: diff --git a/tests/test_playbooks/fixtures/content_view_filter_info-3.yml b/tests/test_playbooks/fixtures/content_view_filter_info-3.yml index e2c220364..070e7d752 100644 --- a/tests/test_playbooks/fixtures/content_view_filter_info-3.yml +++ b/tests/test_playbooks/fixtures/content_view_filter_info-3.yml @@ -14,14 +14,14 @@ interactions: uri: https://foreman.example.org/api/status response: body: - string: '{"result":"ok","status":200,"version":"3.7.0-rc2","api_version":2}' + string: '{"result":"ok","status":200,"version":"3.12.0-develop","api_version":2}' headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive Content-Length: - - '66' + - '71' 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''; @@ -35,7 +35,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=100 Strict-Transport-Security: @@ -70,8 +70,8 @@ interactions: body: 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-05 - 22:21:52 UTC\",\"updated_at\":\"2023-06-05 22:21:54 UTC\",\"id\":9,\"name\":\"Test + {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\":\"Test_Organization\",\"created_at\":\"2024-07-25 + 07:48:37 UTC\",\"updated_at\":\"2024-07-25 07:48:39 UTC\",\"id\":13,\"name\":\"Test Organization\",\"title\":\"Test Organization\",\"description\":\"A test organization\"}]\n}\n" headers: Cache-Control: @@ -79,7 +79,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '388' + - '389' 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''; @@ -93,7 +93,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=99 Strict-Transport-Security: @@ -123,18 +123,17 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/organizations/9/content_views?search=name%3D%22Test+Content+View%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/organizations/13/content_views?search=name%3D%22Test+Content+View%22&per_page=4294967296 response: body: string: '{"total":2,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Content View\"","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":true,"repository_ids":[23,24,25,26],"id":15,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":9,"organization":{"name":"Test - Organization","label":"Test_Organization","id":9},"created_at":"2023-06-05 - 22:23:21 UTC","updated_at":"2023-06-05 22:23:21 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":23,"name":"Test - Repository","label":"Test_Repository","content_type":"yum"},{"id":24,"name":"Test - Modular Repository","label":"Test_Modular_Repository","content_type":"yum"},{"id":25,"name":"Test - Docker Repository","label":"Test_Docker_Repository","content_type":"docker"},{"id":26,"name":"Test - Debian Repository","label":"Test_Debian_Repository","content_type":"deb"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]}]} + Content View\"","sort":{"by":"name","order":"asc"},"results":[{"composite":false,"component_ids":[],"duplicate_repositories_to_publish":[],"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":[],"filtered":true,"repository_ids":[27,28,29],"id":23,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":13,"organization":{"name":"Test + Organization","label":"Test_Organization","id":13},"created_at":"2024-07-25 + 07:49:22 UTC","updated_at":"2024-07-25 07:49:22 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":27,"name":"Test + Repository","label":"Test_Repository","content_type":"yum"},{"id":28,"name":"Test + Modular Repository","label":"Test_Modular_Repository","content_type":"yum"},{"id":29,"name":"Test + Docker Repository","label":"Test_Docker_Repository","content_type":"docker"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]}]} ' headers: @@ -143,7 +142,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '1351' + - '1272' 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''; @@ -155,9 +154,9 @@ interactions: Foreman_current_location: - ; ANY Foreman_current_organization: - - 9; Test Organization + - 13; Test Organization Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=98 Strict-Transport-Security: @@ -187,20 +186,19 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/content_views/15/filters?search=name%3D%22Test+Content+View+Filter+-+rpm%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/content_views/23/filters?search=name%3D%22Test+Content+View+Filter+-+package_group%22&per_page=4294967296 response: body: string: '{"total":10,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Content View Filter - rpm\"","sort":{"by":"name","order":"asc"},"results":[{"inclusion":false,"id":38,"name":"Test - Content View Filter - rpm","description":null,"created_at":"2023-06-05 22:23:25 - UTC","updated_at":"2023-06-05 22:23:25 UTC","content_view":{"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":true,"repository_ids":[23,24,25,26],"id":15,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":9,"organization":{"name":"Test - Organization","label":"Test_Organization","id":9},"created_at":"2023-06-05 - 22:23:21 UTC","updated_at":"2023-06-05 22:23:21 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":23,"name":"Test - Repository","label":"Test_Repository","content_type":"yum"},{"id":24,"name":"Test - Modular Repository","label":"Test_Modular_Repository","content_type":"yum"},{"id":25,"name":"Test - Docker Repository","label":"Test_Docker_Repository","content_type":"docker"},{"id":26,"name":"Test - Debian Repository","label":"Test_Debian_Repository","content_type":"deb"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]},"repositories":[],"type":"rpm","rules":[]}]} + Content View Filter - package_group\"","sort":{"by":"name","order":"asc"},"results":[{"inclusion":false,"id":99,"name":"Test + Content View Filter - package_group","description":null,"created_at":"2024-07-25 + 07:49:25 UTC","updated_at":"2024-07-25 07:49:25 UTC","content_view":{"composite":false,"component_ids":[],"duplicate_repositories_to_publish":[],"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":[],"filtered":true,"repository_ids":[29,27,28],"id":23,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":13,"organization":{"name":"Test + Organization","label":"Test_Organization","id":13},"created_at":"2024-07-25 + 07:49:22 UTC","updated_at":"2024-07-25 07:49:22 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":29,"name":"Test + Docker Repository","label":"Test_Docker_Repository","content_type":"docker"},{"id":27,"name":"Test + Repository","label":"Test_Repository","content_type":"yum"},{"id":28,"name":"Test + Modular Repository","label":"Test_Modular_Repository","content_type":"yum"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]},"repositories":[],"type":"package_group","rules":[]}]} ' headers: @@ -209,7 +207,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '1587' + - '1538' 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''; @@ -223,7 +221,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=97 Strict-Transport-Security: @@ -253,23 +251,20 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/content_views/15/filters/38 + uri: https://foreman.example.org/katello/api/content_views/23/filters/99 response: body: - string: ' {"inclusion":false,"original_packages":false,"id":38,"name":"Test - Content View Filter - rpm","description":null,"created_at":"2023-06-05 22:23:25 - UTC","updated_at":"2023-06-05 22:23:25 UTC","content_view":{"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":true,"repository_ids":[23,24,25,26],"id":15,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":9,"organization":{"name":"Test - Organization","label":"Test_Organization","id":9},"created_at":"2023-06-05 - 22:23:21 UTC","updated_at":"2023-06-05 22:23:21 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":23,"name":"Test - Repository","label":"Test_Repository","content_type":"yum","product":{"id":8,"name":"Test - Product"},"content_counts":{"docker_manifest":0,"docker_tag":0,"rpm":32,"package":32,"package_group":2,"erratum":4,"module_stream":0}},{"id":24,"name":"Test - Modular Repository","label":"Test_Modular_Repository","content_type":"yum","product":{"id":8,"name":"Test - Product"},"content_counts":{"docker_manifest":0,"docker_tag":0,"rpm":290,"package":290,"package_group":0,"erratum":14,"module_stream":24}},{"id":25,"name":"Test - Docker Repository","label":"Test_Docker_Repository","content_type":"docker","product":{"id":8,"name":"Test - Product"},"content_counts":{"docker_manifest":72,"docker_tag":23,"rpm":0,"package":0,"package_group":0,"erratum":0,"module_stream":0}},{"id":26,"name":"Test - Debian Repository","label":"Test_Debian_Repository","content_type":"deb","product":{"id":8,"name":"Test - Product"},"content_counts":{"docker_manifest":0,"docker_tag":0,"rpm":0,"package":0,"package_group":0,"erratum":0,"module_stream":0}}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]},"repositories":[],"type":"rpm","rules":[]} + string: ' {"inclusion":false,"id":99,"name":"Test Content View Filter - package_group","description":null,"created_at":"2024-07-25 + 07:49:25 UTC","updated_at":"2024-07-25 07:49:25 UTC","content_view":{"composite":false,"component_ids":[],"duplicate_repositories_to_publish":[],"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":[],"filtered":true,"repository_ids":[29,27,28],"id":23,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":13,"organization":{"name":"Test + Organization","label":"Test_Organization","id":13},"created_at":"2024-07-25 + 07:49:22 UTC","updated_at":"2024-07-25 07:49:22 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":29,"name":"Test + Docker Repository","label":"Test_Docker_Repository","content_type":"docker","product":{"id":11,"name":"Test + Product"},"content_counts":{"docker_manifest":177,"docker_tag":70,"rpm":0,"package":0,"package_group":0,"erratum":0,"module_stream":0}},{"id":27,"name":"Test + Repository","label":"Test_Repository","content_type":"yum","product":{"id":11,"name":"Test + Product"},"content_counts":{"docker_manifest":0,"docker_tag":0,"rpm":32,"package":32,"package_group":2,"erratum":4,"module_stream":0}},{"id":28,"name":"Test + Modular Repository","label":"Test_Modular_Repository","content_type":"yum","product":{"id":11,"name":"Test + Product"},"content_counts":{"docker_manifest":0,"docker_tag":0,"rpm":290,"package":290,"package_group":0,"erratum":14,"module_stream":24}}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]},"repositories":[],"type":"package_group","rules":[]} ' headers: @@ -278,7 +273,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '2092' + - '1848' 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''; @@ -292,7 +287,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=96 Strict-Transport-Security: diff --git a/tests/test_playbooks/fixtures/content_view_filter_info-4.yml b/tests/test_playbooks/fixtures/content_view_filter_info-4.yml index ba804a2e5..c5d256d52 100644 --- a/tests/test_playbooks/fixtures/content_view_filter_info-4.yml +++ b/tests/test_playbooks/fixtures/content_view_filter_info-4.yml @@ -14,14 +14,14 @@ interactions: uri: https://foreman.example.org/api/status response: body: - string: '{"result":"ok","status":200,"version":"3.7.0-rc2","api_version":2}' + string: '{"result":"ok","status":200,"version":"3.12.0-develop","api_version":2}' headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive Content-Length: - - '66' + - '71' 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''; @@ -35,7 +35,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=100 Strict-Transport-Security: @@ -70,8 +70,8 @@ interactions: body: 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-05 - 22:21:52 UTC\",\"updated_at\":\"2023-06-05 22:21:54 UTC\",\"id\":9,\"name\":\"Test + {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\":\"Test_Organization\",\"created_at\":\"2024-07-25 + 07:48:37 UTC\",\"updated_at\":\"2024-07-25 07:48:39 UTC\",\"id\":13,\"name\":\"Test Organization\",\"title\":\"Test Organization\",\"description\":\"A test organization\"}]\n}\n" headers: Cache-Control: @@ -79,7 +79,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '388' + - '389' 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''; @@ -93,7 +93,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=99 Strict-Transport-Security: @@ -123,18 +123,17 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/organizations/9/content_views?search=name%3D%22Test+Content+View%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/organizations/13/content_views?search=name%3D%22Test+Content+View%22&per_page=4294967296 response: body: string: '{"total":2,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Content View\"","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":true,"repository_ids":[23,24,25,26],"id":15,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":9,"organization":{"name":"Test - Organization","label":"Test_Organization","id":9},"created_at":"2023-06-05 - 22:23:21 UTC","updated_at":"2023-06-05 22:23:21 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":23,"name":"Test - Repository","label":"Test_Repository","content_type":"yum"},{"id":24,"name":"Test - Modular Repository","label":"Test_Modular_Repository","content_type":"yum"},{"id":25,"name":"Test - Docker Repository","label":"Test_Docker_Repository","content_type":"docker"},{"id":26,"name":"Test - Debian Repository","label":"Test_Debian_Repository","content_type":"deb"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]}]} + Content View\"","sort":{"by":"name","order":"asc"},"results":[{"composite":false,"component_ids":[],"duplicate_repositories_to_publish":[],"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":[],"filtered":true,"repository_ids":[27,28,29],"id":23,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":13,"organization":{"name":"Test + Organization","label":"Test_Organization","id":13},"created_at":"2024-07-25 + 07:49:22 UTC","updated_at":"2024-07-25 07:49:22 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":27,"name":"Test + Repository","label":"Test_Repository","content_type":"yum"},{"id":28,"name":"Test + Modular Repository","label":"Test_Modular_Repository","content_type":"yum"},{"id":29,"name":"Test + Docker Repository","label":"Test_Docker_Repository","content_type":"docker"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]}]} ' headers: @@ -143,7 +142,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '1351' + - '1272' 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''; @@ -155,9 +154,9 @@ interactions: Foreman_current_location: - ; ANY Foreman_current_organization: - - 9; Test Organization + - 13; Test Organization Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=98 Strict-Transport-Security: @@ -187,20 +186,19 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/content_views/15/filters?search=name%3D%22Test+Content+View+Filter+-+package_group%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/content_views/23/filters?search=name%3D%22Test+Content+View+Filter+-+erratum_by_id%22&per_page=4294967296 response: body: string: '{"total":10,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Content View Filter - package_group\"","sort":{"by":"name","order":"asc"},"results":[{"inclusion":false,"id":39,"name":"Test - Content View Filter - package_group","description":null,"created_at":"2023-06-05 - 22:23:26 UTC","updated_at":"2023-06-05 22:23:26 UTC","content_view":{"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":true,"repository_ids":[23,24,25,26],"id":15,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":9,"organization":{"name":"Test - Organization","label":"Test_Organization","id":9},"created_at":"2023-06-05 - 22:23:21 UTC","updated_at":"2023-06-05 22:23:21 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":23,"name":"Test - Repository","label":"Test_Repository","content_type":"yum"},{"id":24,"name":"Test - Modular Repository","label":"Test_Modular_Repository","content_type":"yum"},{"id":25,"name":"Test - Docker Repository","label":"Test_Docker_Repository","content_type":"docker"},{"id":26,"name":"Test - Debian Repository","label":"Test_Debian_Repository","content_type":"deb"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]},"repositories":[],"type":"package_group","rules":[]}]} + Content View Filter - erratum_by_id\"","sort":{"by":"name","order":"asc"},"results":[{"inclusion":false,"id":100,"name":"Test + Content View Filter - erratum_by_id","description":null,"created_at":"2024-07-25 + 07:49:25 UTC","updated_at":"2024-07-25 07:49:25 UTC","content_view":{"composite":false,"component_ids":[],"duplicate_repositories_to_publish":[],"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":[],"filtered":true,"repository_ids":[29,27,28],"id":23,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":13,"organization":{"name":"Test + Organization","label":"Test_Organization","id":13},"created_at":"2024-07-25 + 07:49:22 UTC","updated_at":"2024-07-25 07:49:22 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":29,"name":"Test + Docker Repository","label":"Test_Docker_Repository","content_type":"docker"},{"id":27,"name":"Test + Repository","label":"Test_Repository","content_type":"yum"},{"id":28,"name":"Test + Modular Repository","label":"Test_Modular_Repository","content_type":"yum"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]},"repositories":[],"type":"erratum","rules":[]}]} ' headers: @@ -209,7 +207,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '1617' + - '1533' 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''; @@ -223,7 +221,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=97 Strict-Transport-Security: @@ -253,22 +251,20 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/content_views/15/filters/39 + uri: https://foreman.example.org/katello/api/content_views/23/filters/100 response: body: - string: ' {"inclusion":false,"id":39,"name":"Test Content View Filter - package_group","description":null,"created_at":"2023-06-05 - 22:23:26 UTC","updated_at":"2023-06-05 22:23:26 UTC","content_view":{"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":true,"repository_ids":[23,24,25,26],"id":15,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":9,"organization":{"name":"Test - Organization","label":"Test_Organization","id":9},"created_at":"2023-06-05 - 22:23:21 UTC","updated_at":"2023-06-05 22:23:21 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":23,"name":"Test - Repository","label":"Test_Repository","content_type":"yum","product":{"id":8,"name":"Test - Product"},"content_counts":{"docker_manifest":0,"docker_tag":0,"rpm":32,"package":32,"package_group":2,"erratum":4,"module_stream":0}},{"id":24,"name":"Test - Modular Repository","label":"Test_Modular_Repository","content_type":"yum","product":{"id":8,"name":"Test - Product"},"content_counts":{"docker_manifest":0,"docker_tag":0,"rpm":290,"package":290,"package_group":0,"erratum":14,"module_stream":24}},{"id":25,"name":"Test - Docker Repository","label":"Test_Docker_Repository","content_type":"docker","product":{"id":8,"name":"Test - Product"},"content_counts":{"docker_manifest":72,"docker_tag":23,"rpm":0,"package":0,"package_group":0,"erratum":0,"module_stream":0}},{"id":26,"name":"Test - Debian Repository","label":"Test_Debian_Repository","content_type":"deb","product":{"id":8,"name":"Test - Product"},"content_counts":{"docker_manifest":0,"docker_tag":0,"rpm":0,"package":0,"package_group":0,"erratum":0,"module_stream":0}}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]},"repositories":[],"type":"package_group","rules":[]} + string: ' {"inclusion":false,"id":100,"name":"Test Content View Filter - erratum_by_id","description":null,"created_at":"2024-07-25 + 07:49:25 UTC","updated_at":"2024-07-25 07:49:25 UTC","content_view":{"composite":false,"component_ids":[],"duplicate_repositories_to_publish":[],"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":[],"filtered":true,"repository_ids":[29,27,28],"id":23,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":13,"organization":{"name":"Test + Organization","label":"Test_Organization","id":13},"created_at":"2024-07-25 + 07:49:22 UTC","updated_at":"2024-07-25 07:49:22 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":29,"name":"Test + Docker Repository","label":"Test_Docker_Repository","content_type":"docker","product":{"id":11,"name":"Test + Product"},"content_counts":{"docker_manifest":177,"docker_tag":70,"rpm":0,"package":0,"package_group":0,"erratum":0,"module_stream":0}},{"id":27,"name":"Test + Repository","label":"Test_Repository","content_type":"yum","product":{"id":11,"name":"Test + Product"},"content_counts":{"docker_manifest":0,"docker_tag":0,"rpm":32,"package":32,"package_group":2,"erratum":4,"module_stream":0}},{"id":28,"name":"Test + Modular Repository","label":"Test_Modular_Repository","content_type":"yum","product":{"id":11,"name":"Test + Product"},"content_counts":{"docker_manifest":0,"docker_tag":0,"rpm":290,"package":290,"package_group":0,"erratum":14,"module_stream":24}}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]},"repositories":[],"type":"erratum","rules":[]} ' headers: @@ -277,7 +273,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '2086' + - '1843' 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''; @@ -291,7 +287,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=96 Strict-Transport-Security: diff --git a/tests/test_playbooks/fixtures/content_view_filter_info-5.yml b/tests/test_playbooks/fixtures/content_view_filter_info-5.yml index 4f4e6a650..6154cc3c3 100644 --- a/tests/test_playbooks/fixtures/content_view_filter_info-5.yml +++ b/tests/test_playbooks/fixtures/content_view_filter_info-5.yml @@ -14,14 +14,14 @@ interactions: uri: https://foreman.example.org/api/status response: body: - string: '{"result":"ok","status":200,"version":"3.7.0-rc2","api_version":2}' + string: '{"result":"ok","status":200,"version":"3.12.0-develop","api_version":2}' headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive Content-Length: - - '66' + - '71' 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''; @@ -35,7 +35,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=100 Strict-Transport-Security: @@ -70,8 +70,8 @@ interactions: body: 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-05 - 22:21:52 UTC\",\"updated_at\":\"2023-06-05 22:21:54 UTC\",\"id\":9,\"name\":\"Test + {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\":\"Test_Organization\",\"created_at\":\"2024-07-25 + 07:48:37 UTC\",\"updated_at\":\"2024-07-25 07:48:39 UTC\",\"id\":13,\"name\":\"Test Organization\",\"title\":\"Test Organization\",\"description\":\"A test organization\"}]\n}\n" headers: Cache-Control: @@ -79,7 +79,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '388' + - '389' 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''; @@ -93,7 +93,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=99 Strict-Transport-Security: @@ -123,18 +123,17 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/organizations/9/content_views?search=name%3D%22Test+Content+View%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/organizations/13/content_views?search=name%3D%22Test+Content+View%22&per_page=4294967296 response: body: string: '{"total":2,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Content View\"","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":true,"repository_ids":[23,24,25,26],"id":15,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":9,"organization":{"name":"Test - Organization","label":"Test_Organization","id":9},"created_at":"2023-06-05 - 22:23:21 UTC","updated_at":"2023-06-05 22:23:21 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":23,"name":"Test - Repository","label":"Test_Repository","content_type":"yum"},{"id":24,"name":"Test - Modular Repository","label":"Test_Modular_Repository","content_type":"yum"},{"id":25,"name":"Test - Docker Repository","label":"Test_Docker_Repository","content_type":"docker"},{"id":26,"name":"Test - Debian Repository","label":"Test_Debian_Repository","content_type":"deb"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]}]} + Content View\"","sort":{"by":"name","order":"asc"},"results":[{"composite":false,"component_ids":[],"duplicate_repositories_to_publish":[],"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":[],"filtered":true,"repository_ids":[27,28,29],"id":23,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":13,"organization":{"name":"Test + Organization","label":"Test_Organization","id":13},"created_at":"2024-07-25 + 07:49:22 UTC","updated_at":"2024-07-25 07:49:22 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":27,"name":"Test + Repository","label":"Test_Repository","content_type":"yum"},{"id":28,"name":"Test + Modular Repository","label":"Test_Modular_Repository","content_type":"yum"},{"id":29,"name":"Test + Docker Repository","label":"Test_Docker_Repository","content_type":"docker"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]}]} ' headers: @@ -143,7 +142,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '1351' + - '1272' 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''; @@ -155,9 +154,9 @@ interactions: Foreman_current_location: - ; ANY Foreman_current_organization: - - 9; Test Organization + - 13; Test Organization Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=98 Strict-Transport-Security: @@ -187,20 +186,19 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/content_views/15/filters?search=name%3D%22Test+Content+View+Filter+-+erratum_by_id%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/content_views/23/filters?search=name%3D%22Test+Content+View+Filter+-+erratum_by_date%22&per_page=4294967296 response: body: string: '{"total":10,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Content View Filter - erratum_by_id\"","sort":{"by":"name","order":"asc"},"results":[{"inclusion":false,"id":40,"name":"Test - Content View Filter - erratum_by_id","description":null,"created_at":"2023-06-05 - 22:23:27 UTC","updated_at":"2023-06-05 22:23:27 UTC","content_view":{"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":true,"repository_ids":[23,24,25,26],"id":15,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":9,"organization":{"name":"Test - Organization","label":"Test_Organization","id":9},"created_at":"2023-06-05 - 22:23:21 UTC","updated_at":"2023-06-05 22:23:21 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":23,"name":"Test - Repository","label":"Test_Repository","content_type":"yum"},{"id":24,"name":"Test - Modular Repository","label":"Test_Modular_Repository","content_type":"yum"},{"id":25,"name":"Test - Docker Repository","label":"Test_Docker_Repository","content_type":"docker"},{"id":26,"name":"Test - Debian Repository","label":"Test_Debian_Repository","content_type":"deb"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]},"repositories":[],"type":"erratum","rules":[]}]} + Content View Filter - erratum_by_date\"","sort":{"by":"name","order":"asc"},"results":[{"inclusion":false,"id":101,"name":"Test + Content View Filter - erratum_by_date","description":null,"created_at":"2024-07-25 + 07:49:26 UTC","updated_at":"2024-07-25 07:49:26 UTC","content_view":{"composite":false,"component_ids":[],"duplicate_repositories_to_publish":[],"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":[],"filtered":true,"repository_ids":[29,27,28],"id":23,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":13,"organization":{"name":"Test + Organization","label":"Test_Organization","id":13},"created_at":"2024-07-25 + 07:49:22 UTC","updated_at":"2024-07-25 07:49:22 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":29,"name":"Test + Docker Repository","label":"Test_Docker_Repository","content_type":"docker"},{"id":27,"name":"Test + Repository","label":"Test_Repository","content_type":"yum"},{"id":28,"name":"Test + Modular Repository","label":"Test_Modular_Repository","content_type":"yum"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]},"repositories":[],"type":"erratum","rules":[]}]} ' headers: @@ -209,7 +207,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '1611' + - '1537' 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''; @@ -223,7 +221,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=97 Strict-Transport-Security: @@ -253,22 +251,20 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/content_views/15/filters/40 + uri: https://foreman.example.org/katello/api/content_views/23/filters/101 response: body: - string: ' {"inclusion":false,"id":40,"name":"Test Content View Filter - erratum_by_id","description":null,"created_at":"2023-06-05 - 22:23:27 UTC","updated_at":"2023-06-05 22:23:27 UTC","content_view":{"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":true,"repository_ids":[23,24,25,26],"id":15,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":9,"organization":{"name":"Test - Organization","label":"Test_Organization","id":9},"created_at":"2023-06-05 - 22:23:21 UTC","updated_at":"2023-06-05 22:23:21 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":23,"name":"Test - Repository","label":"Test_Repository","content_type":"yum","product":{"id":8,"name":"Test - Product"},"content_counts":{"docker_manifest":0,"docker_tag":0,"rpm":32,"package":32,"package_group":2,"erratum":4,"module_stream":0}},{"id":24,"name":"Test - Modular Repository","label":"Test_Modular_Repository","content_type":"yum","product":{"id":8,"name":"Test - Product"},"content_counts":{"docker_manifest":0,"docker_tag":0,"rpm":290,"package":290,"package_group":0,"erratum":14,"module_stream":24}},{"id":25,"name":"Test - Docker Repository","label":"Test_Docker_Repository","content_type":"docker","product":{"id":8,"name":"Test - Product"},"content_counts":{"docker_manifest":72,"docker_tag":23,"rpm":0,"package":0,"package_group":0,"erratum":0,"module_stream":0}},{"id":26,"name":"Test - Debian Repository","label":"Test_Debian_Repository","content_type":"deb","product":{"id":8,"name":"Test - Product"},"content_counts":{"docker_manifest":0,"docker_tag":0,"rpm":0,"package":0,"package_group":0,"erratum":0,"module_stream":0}}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]},"repositories":[],"type":"erratum","rules":[]} + string: ' {"inclusion":false,"id":101,"name":"Test Content View Filter - erratum_by_date","description":null,"created_at":"2024-07-25 + 07:49:26 UTC","updated_at":"2024-07-25 07:49:26 UTC","content_view":{"composite":false,"component_ids":[],"duplicate_repositories_to_publish":[],"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":[],"filtered":true,"repository_ids":[29,27,28],"id":23,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":13,"organization":{"name":"Test + Organization","label":"Test_Organization","id":13},"created_at":"2024-07-25 + 07:49:22 UTC","updated_at":"2024-07-25 07:49:22 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":29,"name":"Test + Docker Repository","label":"Test_Docker_Repository","content_type":"docker","product":{"id":11,"name":"Test + Product"},"content_counts":{"docker_manifest":177,"docker_tag":70,"rpm":0,"package":0,"package_group":0,"erratum":0,"module_stream":0}},{"id":27,"name":"Test + Repository","label":"Test_Repository","content_type":"yum","product":{"id":11,"name":"Test + Product"},"content_counts":{"docker_manifest":0,"docker_tag":0,"rpm":32,"package":32,"package_group":2,"erratum":4,"module_stream":0}},{"id":28,"name":"Test + Modular Repository","label":"Test_Modular_Repository","content_type":"yum","product":{"id":11,"name":"Test + Product"},"content_counts":{"docker_manifest":0,"docker_tag":0,"rpm":290,"package":290,"package_group":0,"erratum":14,"module_stream":24}}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]},"repositories":[],"type":"erratum","rules":[]} ' headers: @@ -277,7 +273,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '2080' + - '1845' 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''; @@ -291,7 +287,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=96 Strict-Transport-Security: diff --git a/tests/test_playbooks/fixtures/content_view_filter_info-6.yml b/tests/test_playbooks/fixtures/content_view_filter_info-6.yml index fcc4abd6c..80d414cae 100644 --- a/tests/test_playbooks/fixtures/content_view_filter_info-6.yml +++ b/tests/test_playbooks/fixtures/content_view_filter_info-6.yml @@ -14,14 +14,14 @@ interactions: uri: https://foreman.example.org/api/status response: body: - string: '{"result":"ok","status":200,"version":"3.7.0-rc2","api_version":2}' + string: '{"result":"ok","status":200,"version":"3.12.0-develop","api_version":2}' headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive Content-Length: - - '66' + - '71' 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''; @@ -35,7 +35,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=100 Strict-Transport-Security: @@ -70,8 +70,8 @@ interactions: body: 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-05 - 22:21:52 UTC\",\"updated_at\":\"2023-06-05 22:21:54 UTC\",\"id\":9,\"name\":\"Test + {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\":\"Test_Organization\",\"created_at\":\"2024-07-25 + 07:48:37 UTC\",\"updated_at\":\"2024-07-25 07:48:39 UTC\",\"id\":13,\"name\":\"Test Organization\",\"title\":\"Test Organization\",\"description\":\"A test organization\"}]\n}\n" headers: Cache-Control: @@ -79,7 +79,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '388' + - '389' 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''; @@ -93,7 +93,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=99 Strict-Transport-Security: @@ -123,18 +123,17 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/organizations/9/content_views?search=name%3D%22Test+Content+View%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/organizations/13/content_views?search=name%3D%22Test+Content+View%22&per_page=4294967296 response: body: string: '{"total":2,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Content View\"","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":true,"repository_ids":[23,24,25,26],"id":15,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":9,"organization":{"name":"Test - Organization","label":"Test_Organization","id":9},"created_at":"2023-06-05 - 22:23:21 UTC","updated_at":"2023-06-05 22:23:21 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":23,"name":"Test - Repository","label":"Test_Repository","content_type":"yum"},{"id":24,"name":"Test - Modular Repository","label":"Test_Modular_Repository","content_type":"yum"},{"id":25,"name":"Test - Docker Repository","label":"Test_Docker_Repository","content_type":"docker"},{"id":26,"name":"Test - Debian Repository","label":"Test_Debian_Repository","content_type":"deb"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]}]} + Content View\"","sort":{"by":"name","order":"asc"},"results":[{"composite":false,"component_ids":[],"duplicate_repositories_to_publish":[],"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":[],"filtered":true,"repository_ids":[27,28,29],"id":23,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":13,"organization":{"name":"Test + Organization","label":"Test_Organization","id":13},"created_at":"2024-07-25 + 07:49:22 UTC","updated_at":"2024-07-25 07:49:22 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":27,"name":"Test + Repository","label":"Test_Repository","content_type":"yum"},{"id":28,"name":"Test + Modular Repository","label":"Test_Modular_Repository","content_type":"yum"},{"id":29,"name":"Test + Docker Repository","label":"Test_Docker_Repository","content_type":"docker"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]}]} ' headers: @@ -143,7 +142,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '1351' + - '1272' 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''; @@ -155,9 +154,9 @@ interactions: Foreman_current_location: - ; ANY Foreman_current_organization: - - 9; Test Organization + - 13; Test Organization Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=98 Strict-Transport-Security: @@ -187,20 +186,19 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/content_views/15/filters?search=name%3D%22Test+Content+View+Filter+-+erratum_by_date%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/content_views/23/filters?search=name%3D%22Test+Content+View+Filter+-+docker%22&per_page=4294967296 response: body: string: '{"total":10,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Content View Filter - erratum_by_date\"","sort":{"by":"name","order":"asc"},"results":[{"inclusion":false,"id":41,"name":"Test - Content View Filter - erratum_by_date","description":null,"created_at":"2023-06-05 - 22:23:28 UTC","updated_at":"2023-06-05 22:23:28 UTC","content_view":{"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":true,"repository_ids":[23,24,25,26],"id":15,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":9,"organization":{"name":"Test - Organization","label":"Test_Organization","id":9},"created_at":"2023-06-05 - 22:23:21 UTC","updated_at":"2023-06-05 22:23:21 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":23,"name":"Test - Repository","label":"Test_Repository","content_type":"yum"},{"id":24,"name":"Test - Modular Repository","label":"Test_Modular_Repository","content_type":"yum"},{"id":25,"name":"Test - Docker Repository","label":"Test_Docker_Repository","content_type":"docker"},{"id":26,"name":"Test - Debian Repository","label":"Test_Debian_Repository","content_type":"deb"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]},"repositories":[],"type":"erratum","rules":[]}]} + Content View Filter - docker\"","sort":{"by":"name","order":"asc"},"results":[{"inclusion":false,"id":102,"name":"Test + Content View Filter - docker","description":null,"created_at":"2024-07-25 + 07:49:26 UTC","updated_at":"2024-07-25 07:49:26 UTC","content_view":{"composite":false,"component_ids":[],"duplicate_repositories_to_publish":[],"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":[],"filtered":true,"repository_ids":[29,27,28],"id":23,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":13,"organization":{"name":"Test + Organization","label":"Test_Organization","id":13},"created_at":"2024-07-25 + 07:49:22 UTC","updated_at":"2024-07-25 07:49:22 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":29,"name":"Test + Docker Repository","label":"Test_Docker_Repository","content_type":"docker"},{"id":27,"name":"Test + Repository","label":"Test_Repository","content_type":"yum"},{"id":28,"name":"Test + Modular Repository","label":"Test_Modular_Repository","content_type":"yum"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]},"repositories":[],"type":"docker","rules":[]}]} ' headers: @@ -209,7 +207,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '1615' + - '1518' 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''; @@ -223,7 +221,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=97 Strict-Transport-Security: @@ -253,22 +251,20 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/content_views/15/filters/41 + uri: https://foreman.example.org/katello/api/content_views/23/filters/102 response: body: - string: ' {"inclusion":false,"id":41,"name":"Test Content View Filter - erratum_by_date","description":null,"created_at":"2023-06-05 - 22:23:28 UTC","updated_at":"2023-06-05 22:23:28 UTC","content_view":{"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":true,"repository_ids":[23,24,25,26],"id":15,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":9,"organization":{"name":"Test - Organization","label":"Test_Organization","id":9},"created_at":"2023-06-05 - 22:23:21 UTC","updated_at":"2023-06-05 22:23:21 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":23,"name":"Test - Repository","label":"Test_Repository","content_type":"yum","product":{"id":8,"name":"Test - Product"},"content_counts":{"docker_manifest":0,"docker_tag":0,"rpm":32,"package":32,"package_group":2,"erratum":4,"module_stream":0}},{"id":24,"name":"Test - Modular Repository","label":"Test_Modular_Repository","content_type":"yum","product":{"id":8,"name":"Test - Product"},"content_counts":{"docker_manifest":0,"docker_tag":0,"rpm":290,"package":290,"package_group":0,"erratum":14,"module_stream":24}},{"id":25,"name":"Test - Docker Repository","label":"Test_Docker_Repository","content_type":"docker","product":{"id":8,"name":"Test - Product"},"content_counts":{"docker_manifest":72,"docker_tag":23,"rpm":0,"package":0,"package_group":0,"erratum":0,"module_stream":0}},{"id":26,"name":"Test - Debian Repository","label":"Test_Debian_Repository","content_type":"deb","product":{"id":8,"name":"Test - Product"},"content_counts":{"docker_manifest":0,"docker_tag":0,"rpm":0,"package":0,"package_group":0,"erratum":0,"module_stream":0}}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]},"repositories":[],"type":"erratum","rules":[]} + string: ' {"inclusion":false,"id":102,"name":"Test Content View Filter - docker","description":null,"created_at":"2024-07-25 + 07:49:26 UTC","updated_at":"2024-07-25 07:49:26 UTC","content_view":{"composite":false,"component_ids":[],"duplicate_repositories_to_publish":[],"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":[],"filtered":true,"repository_ids":[29,27,28],"id":23,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":13,"organization":{"name":"Test + Organization","label":"Test_Organization","id":13},"created_at":"2024-07-25 + 07:49:22 UTC","updated_at":"2024-07-25 07:49:22 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":29,"name":"Test + Docker Repository","label":"Test_Docker_Repository","content_type":"docker","product":{"id":11,"name":"Test + Product"},"content_counts":{"docker_manifest":177,"docker_tag":70,"rpm":0,"package":0,"package_group":0,"erratum":0,"module_stream":0}},{"id":27,"name":"Test + Repository","label":"Test_Repository","content_type":"yum","product":{"id":11,"name":"Test + Product"},"content_counts":{"docker_manifest":0,"docker_tag":0,"rpm":32,"package":32,"package_group":2,"erratum":4,"module_stream":0}},{"id":28,"name":"Test + Modular Repository","label":"Test_Modular_Repository","content_type":"yum","product":{"id":11,"name":"Test + Product"},"content_counts":{"docker_manifest":0,"docker_tag":0,"rpm":290,"package":290,"package_group":0,"erratum":14,"module_stream":24}}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]},"repositories":[],"type":"docker","rules":[]} ' headers: @@ -277,7 +273,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '2082' + - '1835' 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''; @@ -291,7 +287,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=96 Strict-Transport-Security: diff --git a/tests/test_playbooks/fixtures/content_view_filter_info-7.yml b/tests/test_playbooks/fixtures/content_view_filter_info-7.yml index d6ca93e58..4ad455584 100644 --- a/tests/test_playbooks/fixtures/content_view_filter_info-7.yml +++ b/tests/test_playbooks/fixtures/content_view_filter_info-7.yml @@ -14,14 +14,14 @@ interactions: uri: https://foreman.example.org/api/status response: body: - string: '{"result":"ok","status":200,"version":"3.7.0-rc2","api_version":2}' + string: '{"result":"ok","status":200,"version":"3.12.0-develop","api_version":2}' headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive Content-Length: - - '66' + - '71' 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''; @@ -35,7 +35,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=100 Strict-Transport-Security: @@ -70,8 +70,8 @@ interactions: body: 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-05 - 22:21:52 UTC\",\"updated_at\":\"2023-06-05 22:21:54 UTC\",\"id\":9,\"name\":\"Test + {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\":\"Test_Organization\",\"created_at\":\"2024-07-25 + 07:48:37 UTC\",\"updated_at\":\"2024-07-25 07:48:39 UTC\",\"id\":13,\"name\":\"Test Organization\",\"title\":\"Test Organization\",\"description\":\"A test organization\"}]\n}\n" headers: Cache-Control: @@ -79,7 +79,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '388' + - '389' 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''; @@ -93,7 +93,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=99 Strict-Transport-Security: @@ -123,18 +123,17 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/organizations/9/content_views?search=name%3D%22Test+Content+View%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/organizations/13/content_views?search=name%3D%22Test+Content+View%22&per_page=4294967296 response: body: string: '{"total":2,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Content View\"","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":true,"repository_ids":[23,24,25,26],"id":15,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":9,"organization":{"name":"Test - Organization","label":"Test_Organization","id":9},"created_at":"2023-06-05 - 22:23:21 UTC","updated_at":"2023-06-05 22:23:21 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":23,"name":"Test - Repository","label":"Test_Repository","content_type":"yum"},{"id":24,"name":"Test - Modular Repository","label":"Test_Modular_Repository","content_type":"yum"},{"id":25,"name":"Test - Docker Repository","label":"Test_Docker_Repository","content_type":"docker"},{"id":26,"name":"Test - Debian Repository","label":"Test_Debian_Repository","content_type":"deb"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]}]} + Content View\"","sort":{"by":"name","order":"asc"},"results":[{"composite":false,"component_ids":[],"duplicate_repositories_to_publish":[],"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":[],"filtered":true,"repository_ids":[27,28,29],"id":23,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":13,"organization":{"name":"Test + Organization","label":"Test_Organization","id":13},"created_at":"2024-07-25 + 07:49:22 UTC","updated_at":"2024-07-25 07:49:22 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":27,"name":"Test + Repository","label":"Test_Repository","content_type":"yum"},{"id":28,"name":"Test + Modular Repository","label":"Test_Modular_Repository","content_type":"yum"},{"id":29,"name":"Test + Docker Repository","label":"Test_Docker_Repository","content_type":"docker"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]}]} ' headers: @@ -143,7 +142,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '1351' + - '1272' 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''; @@ -155,9 +154,9 @@ interactions: Foreman_current_location: - ; ANY Foreman_current_organization: - - 9; Test Organization + - 13; Test Organization Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=98 Strict-Transport-Security: @@ -187,20 +186,19 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/content_views/15/filters?search=name%3D%22Test+Content+View+Filter+-+docker%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/content_views/23/filters?search=name%3D%22Test+Content+View+Filter+-+modulemd%22&per_page=4294967296 response: body: string: '{"total":10,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Content View Filter - docker\"","sort":{"by":"name","order":"asc"},"results":[{"inclusion":false,"id":42,"name":"Test - Content View Filter - docker","description":null,"created_at":"2023-06-05 - 22:23:29 UTC","updated_at":"2023-06-05 22:23:29 UTC","content_view":{"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":true,"repository_ids":[23,24,25,26],"id":15,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":9,"organization":{"name":"Test - Organization","label":"Test_Organization","id":9},"created_at":"2023-06-05 - 22:23:21 UTC","updated_at":"2023-06-05 22:23:21 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":23,"name":"Test - Repository","label":"Test_Repository","content_type":"yum"},{"id":24,"name":"Test - Modular Repository","label":"Test_Modular_Repository","content_type":"yum"},{"id":25,"name":"Test - Docker Repository","label":"Test_Docker_Repository","content_type":"docker"},{"id":26,"name":"Test - Debian Repository","label":"Test_Debian_Repository","content_type":"deb"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]},"repositories":[],"type":"docker","rules":[]}]} + Content View Filter - modulemd\"","sort":{"by":"name","order":"asc"},"results":[{"inclusion":false,"id":103,"name":"Test + Content View Filter - modulemd","description":null,"created_at":"2024-07-25 + 07:49:27 UTC","updated_at":"2024-07-25 07:49:27 UTC","content_view":{"composite":false,"component_ids":[],"duplicate_repositories_to_publish":[],"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":[],"filtered":true,"repository_ids":[29,27,28],"id":23,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":13,"organization":{"name":"Test + Organization","label":"Test_Organization","id":13},"created_at":"2024-07-25 + 07:49:22 UTC","updated_at":"2024-07-25 07:49:22 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":29,"name":"Test + Docker Repository","label":"Test_Docker_Repository","content_type":"docker"},{"id":27,"name":"Test + Repository","label":"Test_Repository","content_type":"yum"},{"id":28,"name":"Test + Modular Repository","label":"Test_Modular_Repository","content_type":"yum"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]},"repositories":[],"type":"modulemd","rules":[]}]} ' headers: @@ -209,7 +207,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '1596' + - '1524' 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''; @@ -223,7 +221,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=97 Strict-Transport-Security: @@ -253,22 +251,21 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/content_views/15/filters/42 + uri: https://foreman.example.org/katello/api/content_views/23/filters/103 response: body: - string: ' {"inclusion":false,"id":42,"name":"Test Content View Filter - docker","description":null,"created_at":"2023-06-05 - 22:23:29 UTC","updated_at":"2023-06-05 22:23:29 UTC","content_view":{"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":true,"repository_ids":[23,24,25,26],"id":15,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":9,"organization":{"name":"Test - Organization","label":"Test_Organization","id":9},"created_at":"2023-06-05 - 22:23:21 UTC","updated_at":"2023-06-05 22:23:21 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":23,"name":"Test - Repository","label":"Test_Repository","content_type":"yum","product":{"id":8,"name":"Test - Product"},"content_counts":{"docker_manifest":0,"docker_tag":0,"rpm":32,"package":32,"package_group":2,"erratum":4,"module_stream":0}},{"id":24,"name":"Test - Modular Repository","label":"Test_Modular_Repository","content_type":"yum","product":{"id":8,"name":"Test - Product"},"content_counts":{"docker_manifest":0,"docker_tag":0,"rpm":290,"package":290,"package_group":0,"erratum":14,"module_stream":24}},{"id":25,"name":"Test - Docker Repository","label":"Test_Docker_Repository","content_type":"docker","product":{"id":8,"name":"Test - Product"},"content_counts":{"docker_manifest":72,"docker_tag":23,"rpm":0,"package":0,"package_group":0,"erratum":0,"module_stream":0}},{"id":26,"name":"Test - Debian Repository","label":"Test_Debian_Repository","content_type":"deb","product":{"id":8,"name":"Test - Product"},"content_counts":{"docker_manifest":0,"docker_tag":0,"rpm":0,"package":0,"package_group":0,"erratum":0,"module_stream":0}}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]},"repositories":[],"type":"docker","rules":[]} + string: ' {"inclusion":false,"original_module_streams":false,"id":103,"name":"Test + Content View Filter - modulemd","description":null,"created_at":"2024-07-25 + 07:49:27 UTC","updated_at":"2024-07-25 07:49:27 UTC","content_view":{"composite":false,"component_ids":[],"duplicate_repositories_to_publish":[],"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":[],"filtered":true,"repository_ids":[29,27,28],"id":23,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":13,"organization":{"name":"Test + Organization","label":"Test_Organization","id":13},"created_at":"2024-07-25 + 07:49:22 UTC","updated_at":"2024-07-25 07:49:22 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":29,"name":"Test + Docker Repository","label":"Test_Docker_Repository","content_type":"docker","product":{"id":11,"name":"Test + Product"},"content_counts":{"docker_manifest":177,"docker_tag":70,"rpm":0,"package":0,"package_group":0,"erratum":0,"module_stream":0}},{"id":27,"name":"Test + Repository","label":"Test_Repository","content_type":"yum","product":{"id":11,"name":"Test + Product"},"content_counts":{"docker_manifest":0,"docker_tag":0,"rpm":32,"package":32,"package_group":2,"erratum":4,"module_stream":0}},{"id":28,"name":"Test + Modular Repository","label":"Test_Modular_Repository","content_type":"yum","product":{"id":11,"name":"Test + Product"},"content_counts":{"docker_manifest":0,"docker_tag":0,"rpm":290,"package":290,"package_group":0,"erratum":14,"module_stream":24}}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]},"repositories":[],"type":"modulemd","rules":[]} ' headers: @@ -277,7 +274,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '2072' + - '1871' 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''; @@ -291,7 +288,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=96 Strict-Transport-Security: diff --git a/tests/test_playbooks/fixtures/content_view_filter_info-8.yml b/tests/test_playbooks/fixtures/content_view_filter_info_deb-0.yml similarity index 64% rename from tests/test_playbooks/fixtures/content_view_filter_info-8.yml rename to tests/test_playbooks/fixtures/content_view_filter_info_deb-0.yml index 1570c8c00..cbffcd9ec 100644 --- a/tests/test_playbooks/fixtures/content_view_filter_info-8.yml +++ b/tests/test_playbooks/fixtures/content_view_filter_info_deb-0.yml @@ -14,14 +14,14 @@ interactions: uri: https://foreman.example.org/api/status response: body: - string: '{"result":"ok","status":200,"version":"3.7.0-rc2","api_version":2}' + string: '{"result":"ok","status":200,"version":"3.12.0-develop","api_version":2}' headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive Content-Length: - - '66' + - '71' 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''; @@ -35,7 +35,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=100 Strict-Transport-Security: @@ -70,8 +70,8 @@ interactions: body: 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-05 - 22:21:52 UTC\",\"updated_at\":\"2023-06-05 22:21:54 UTC\",\"id\":9,\"name\":\"Test + {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\":\"Test_Organization\",\"created_at\":\"2024-07-25 + 07:51:35 UTC\",\"updated_at\":\"2024-07-25 07:51:37 UTC\",\"id\":14,\"name\":\"Test Organization\",\"title\":\"Test Organization\",\"description\":\"A test organization\"}]\n}\n" headers: Cache-Control: @@ -79,7 +79,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '388' + - '389' 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''; @@ -93,7 +93,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=99 Strict-Transport-Security: @@ -123,17 +123,14 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/organizations/9/content_views?search=name%3D%22Test+Content+View%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/organizations/14/content_views?search=name%3D%22Test+Content+View%22&per_page=4294967296 response: body: string: '{"total":2,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Content View\"","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":true,"repository_ids":[23,24,25,26],"id":15,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":9,"organization":{"name":"Test - Organization","label":"Test_Organization","id":9},"created_at":"2023-06-05 - 22:23:21 UTC","updated_at":"2023-06-05 22:23:21 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":23,"name":"Test - Repository","label":"Test_Repository","content_type":"yum"},{"id":24,"name":"Test - Modular Repository","label":"Test_Modular_Repository","content_type":"yum"},{"id":25,"name":"Test - Docker Repository","label":"Test_Docker_Repository","content_type":"docker"},{"id":26,"name":"Test + Content View\"","sort":{"by":"name","order":"asc"},"results":[{"composite":false,"component_ids":[],"duplicate_repositories_to_publish":[],"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":[],"filtered":true,"repository_ids":[30],"id":25,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":14,"organization":{"name":"Test + Organization","label":"Test_Organization","id":14},"created_at":"2024-07-25 + 07:51:54 UTC","updated_at":"2024-07-25 07:51:54 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":30,"name":"Test Debian Repository","label":"Test_Debian_Repository","content_type":"deb"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]}]} ' @@ -143,7 +140,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '1351' + - '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''; @@ -155,9 +152,9 @@ interactions: Foreman_current_location: - ; ANY Foreman_current_organization: - - 9; Test Organization + - 14; Test Organization Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=98 Strict-Transport-Security: @@ -187,20 +184,17 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/content_views/15/filters?search=name%3D%22Test+Content+View+Filter+-+modulemd%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/content_views/25/filters?search=name%3D%22Test+Content+View+Filter+-+AllDebs%22&per_page=4294967296 response: body: string: '{"total":10,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Content View Filter - modulemd\"","sort":{"by":"name","order":"asc"},"results":[{"inclusion":false,"id":43,"name":"Test - Content View Filter - modulemd","description":null,"created_at":"2023-06-05 - 22:23:30 UTC","updated_at":"2023-06-05 22:23:30 UTC","content_view":{"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":true,"repository_ids":[23,24,25,26],"id":15,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":9,"organization":{"name":"Test - Organization","label":"Test_Organization","id":9},"created_at":"2023-06-05 - 22:23:21 UTC","updated_at":"2023-06-05 22:23:21 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":23,"name":"Test - Repository","label":"Test_Repository","content_type":"yum"},{"id":24,"name":"Test - Modular Repository","label":"Test_Modular_Repository","content_type":"yum"},{"id":25,"name":"Test - Docker Repository","label":"Test_Docker_Repository","content_type":"docker"},{"id":26,"name":"Test - Debian Repository","label":"Test_Debian_Repository","content_type":"deb"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]},"repositories":[],"type":"modulemd","rules":[]}]} + Content View Filter - AllDebs\"","sort":{"by":"name","order":"asc"},"results":[{"inclusion":true,"id":107,"name":"Test + Content View Filter - AllDebs","description":null,"created_at":"2024-07-25 + 07:51:55 UTC","updated_at":"2024-07-25 07:51:55 UTC","content_view":{"composite":false,"component_ids":[],"duplicate_repositories_to_publish":[],"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":[],"filtered":true,"repository_ids":[30],"id":25,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":14,"organization":{"name":"Test + Organization","label":"Test_Organization","id":14},"created_at":"2024-07-25 + 07:51:54 UTC","updated_at":"2024-07-25 07:51:54 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":30,"name":"Test + Debian Repository","label":"Test_Debian_Repository","content_type":"deb"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]},"repositories":[],"type":"deb","rules":[]}]} ' headers: @@ -209,7 +203,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '1602' + - '1327' 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''; @@ -223,7 +217,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=97 Strict-Transport-Security: @@ -253,23 +247,16 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/content_views/15/filters/43 + uri: https://foreman.example.org/katello/api/content_views/25/filters/107 response: body: - string: ' {"inclusion":false,"original_module_streams":false,"id":43,"name":"Test - Content View Filter - modulemd","description":null,"created_at":"2023-06-05 - 22:23:30 UTC","updated_at":"2023-06-05 22:23:30 UTC","content_view":{"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":true,"repository_ids":[23,24,25,26],"id":15,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":9,"organization":{"name":"Test - Organization","label":"Test_Organization","id":9},"created_at":"2023-06-05 - 22:23:21 UTC","updated_at":"2023-06-05 22:23:21 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":23,"name":"Test - Repository","label":"Test_Repository","content_type":"yum","product":{"id":8,"name":"Test - Product"},"content_counts":{"docker_manifest":0,"docker_tag":0,"rpm":32,"package":32,"package_group":2,"erratum":4,"module_stream":0}},{"id":24,"name":"Test - Modular Repository","label":"Test_Modular_Repository","content_type":"yum","product":{"id":8,"name":"Test - Product"},"content_counts":{"docker_manifest":0,"docker_tag":0,"rpm":290,"package":290,"package_group":0,"erratum":14,"module_stream":24}},{"id":25,"name":"Test - Docker Repository","label":"Test_Docker_Repository","content_type":"docker","product":{"id":8,"name":"Test - Product"},"content_counts":{"docker_manifest":72,"docker_tag":23,"rpm":0,"package":0,"package_group":0,"erratum":0,"module_stream":0}},{"id":26,"name":"Test - Debian Repository","label":"Test_Debian_Repository","content_type":"deb","product":{"id":8,"name":"Test - Product"},"content_counts":{"docker_manifest":0,"docker_tag":0,"rpm":0,"package":0,"package_group":0,"erratum":0,"module_stream":0}}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]},"repositories":[],"type":"modulemd","rules":[]} + string: ' {"inclusion":true,"id":107,"name":"Test Content View Filter - AllDebs","description":null,"created_at":"2024-07-25 + 07:51:55 UTC","updated_at":"2024-07-25 07:51:55 UTC","content_view":{"composite":false,"component_ids":[],"duplicate_repositories_to_publish":[],"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":[],"filtered":true,"repository_ids":[30],"id":25,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":14,"organization":{"name":"Test + Organization","label":"Test_Organization","id":14},"created_at":"2024-07-25 + 07:51:54 UTC","updated_at":"2024-07-25 07:51:54 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":30,"name":"Test + Debian Repository","label":"Test_Debian_Repository","content_type":"deb","product":{"id":12,"name":"Test + Product"},"content_counts":{"docker_manifest":0,"docker_tag":0,"rpm":0,"package":0,"package_group":0,"erratum":0,"module_stream":0}}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]},"repositories":[],"type":"deb","rules":[]} ' headers: @@ -278,7 +265,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '2108' + - '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''; @@ -292,7 +279,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=96 Strict-Transport-Security: diff --git a/tests/test_playbooks/fixtures/content_view_filter_info-9.yml b/tests/test_playbooks/fixtures/content_view_filter_info_deb-1.yml similarity index 67% rename from tests/test_playbooks/fixtures/content_view_filter_info-9.yml rename to tests/test_playbooks/fixtures/content_view_filter_info_deb-1.yml index 5fc0f22ac..0a1df4efc 100644 --- a/tests/test_playbooks/fixtures/content_view_filter_info-9.yml +++ b/tests/test_playbooks/fixtures/content_view_filter_info_deb-1.yml @@ -14,14 +14,14 @@ interactions: uri: https://foreman.example.org/api/status response: body: - string: '{"result":"ok","status":200,"version":"3.7.0-rc2","api_version":2}' + string: '{"result":"ok","status":200,"version":"3.12.0-develop","api_version":2}' headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive Content-Length: - - '66' + - '71' 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''; @@ -35,7 +35,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=100 Strict-Transport-Security: @@ -70,8 +70,8 @@ interactions: body: 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-05 - 22:21:52 UTC\",\"updated_at\":\"2023-06-05 22:21:54 UTC\",\"id\":9,\"name\":\"Test + {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\":\"Test_Organization\",\"created_at\":\"2024-07-25 + 07:51:35 UTC\",\"updated_at\":\"2024-07-25 07:51:37 UTC\",\"id\":14,\"name\":\"Test Organization\",\"title\":\"Test Organization\",\"description\":\"A test organization\"}]\n}\n" headers: Cache-Control: @@ -79,7 +79,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '388' + - '389' 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''; @@ -93,7 +93,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=99 Strict-Transport-Security: @@ -123,17 +123,14 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/organizations/9/content_views?search=name%3D%22Test+Content+View%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/organizations/14/content_views?search=name%3D%22Test+Content+View%22&per_page=4294967296 response: body: string: '{"total":2,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Content View\"","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":true,"repository_ids":[23,24,25,26],"id":15,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":9,"organization":{"name":"Test - Organization","label":"Test_Organization","id":9},"created_at":"2023-06-05 - 22:23:21 UTC","updated_at":"2023-06-05 22:23:21 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":23,"name":"Test - Repository","label":"Test_Repository","content_type":"yum"},{"id":24,"name":"Test - Modular Repository","label":"Test_Modular_Repository","content_type":"yum"},{"id":25,"name":"Test - Docker Repository","label":"Test_Docker_Repository","content_type":"docker"},{"id":26,"name":"Test + Content View\"","sort":{"by":"name","order":"asc"},"results":[{"composite":false,"component_ids":[],"duplicate_repositories_to_publish":[],"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":[],"filtered":true,"repository_ids":[30],"id":25,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":14,"organization":{"name":"Test + Organization","label":"Test_Organization","id":14},"created_at":"2024-07-25 + 07:51:54 UTC","updated_at":"2024-07-25 07:51:54 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":30,"name":"Test Debian Repository","label":"Test_Debian_Repository","content_type":"deb"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]}]} ' @@ -143,7 +140,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '1351' + - '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''; @@ -155,9 +152,9 @@ interactions: Foreman_current_location: - ; ANY Foreman_current_organization: - - 9; Test Organization + - 14; Test Organization Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=98 Strict-Transport-Security: @@ -187,19 +184,16 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/content_views/15/filters?search=name%3D%22Test+Content+View+Filter+-+deb%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/content_views/25/filters?search=name%3D%22Test+Content+View+Filter+-+deb%22&per_page=4294967296 response: body: string: '{"total":10,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Content View Filter - deb\"","sort":{"by":"name","order":"asc"},"results":[{"inclusion":false,"id":44,"name":"Test - Content View Filter - deb","description":null,"created_at":"2023-06-05 22:23:31 - UTC","updated_at":"2023-06-05 22:23:31 UTC","content_view":{"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":true,"repository_ids":[23,24,25,26],"id":15,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":9,"organization":{"name":"Test - Organization","label":"Test_Organization","id":9},"created_at":"2023-06-05 - 22:23:21 UTC","updated_at":"2023-06-05 22:23:21 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":23,"name":"Test - Repository","label":"Test_Repository","content_type":"yum"},{"id":24,"name":"Test - Modular Repository","label":"Test_Modular_Repository","content_type":"yum"},{"id":25,"name":"Test - Docker Repository","label":"Test_Docker_Repository","content_type":"docker"},{"id":26,"name":"Test + Content View Filter - deb\"","sort":{"by":"name","order":"asc"},"results":[{"inclusion":false,"id":114,"name":"Test + Content View Filter - deb","description":null,"created_at":"2024-07-25 07:51:58 + UTC","updated_at":"2024-07-25 07:51:58 UTC","content_view":{"composite":false,"component_ids":[],"duplicate_repositories_to_publish":[],"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":[],"filtered":true,"repository_ids":[30],"id":25,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":14,"organization":{"name":"Test + Organization","label":"Test_Organization","id":14},"created_at":"2024-07-25 + 07:51:54 UTC","updated_at":"2024-07-25 07:51:54 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":30,"name":"Test Debian Repository","label":"Test_Debian_Repository","content_type":"deb"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]},"repositories":[],"type":"deb","rules":[]}]} ' @@ -209,7 +203,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '1587' + - '1320' 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''; @@ -223,7 +217,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=97 Strict-Transport-Security: @@ -253,21 +247,15 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/content_views/15/filters/44 + uri: https://foreman.example.org/katello/api/content_views/25/filters/114 response: body: - string: ' {"inclusion":false,"id":44,"name":"Test Content View Filter - deb","description":null,"created_at":"2023-06-05 - 22:23:31 UTC","updated_at":"2023-06-05 22:23:31 UTC","content_view":{"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":true,"repository_ids":[23,24,25,26],"id":15,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":9,"organization":{"name":"Test - Organization","label":"Test_Organization","id":9},"created_at":"2023-06-05 - 22:23:21 UTC","updated_at":"2023-06-05 22:23:21 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":23,"name":"Test - Repository","label":"Test_Repository","content_type":"yum","product":{"id":8,"name":"Test - Product"},"content_counts":{"docker_manifest":0,"docker_tag":0,"rpm":32,"package":32,"package_group":2,"erratum":4,"module_stream":0}},{"id":24,"name":"Test - Modular Repository","label":"Test_Modular_Repository","content_type":"yum","product":{"id":8,"name":"Test - Product"},"content_counts":{"docker_manifest":0,"docker_tag":0,"rpm":290,"package":290,"package_group":0,"erratum":14,"module_stream":24}},{"id":25,"name":"Test - Docker Repository","label":"Test_Docker_Repository","content_type":"docker","product":{"id":8,"name":"Test - Product"},"content_counts":{"docker_manifest":72,"docker_tag":23,"rpm":0,"package":0,"package_group":0,"erratum":0,"module_stream":0}},{"id":26,"name":"Test - Debian Repository","label":"Test_Debian_Repository","content_type":"deb","product":{"id":8,"name":"Test + string: ' {"inclusion":false,"id":114,"name":"Test Content View Filter - deb","description":null,"created_at":"2024-07-25 + 07:51:58 UTC","updated_at":"2024-07-25 07:51:58 UTC","content_view":{"composite":false,"component_ids":[],"duplicate_repositories_to_publish":[],"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":[],"filtered":true,"repository_ids":[30],"id":25,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":14,"organization":{"name":"Test + Organization","label":"Test_Organization","id":14},"created_at":"2024-07-25 + 07:51:54 UTC","updated_at":"2024-07-25 07:51:54 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":30,"name":"Test + Debian Repository","label":"Test_Debian_Repository","content_type":"deb","product":{"id":12,"name":"Test Product"},"content_counts":{"docker_manifest":0,"docker_tag":0,"rpm":0,"package":0,"package_group":0,"erratum":0,"module_stream":0}}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]},"repositories":[],"type":"deb","rules":[]} ' @@ -277,7 +265,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '2066' + - '1301' 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''; @@ -291,7 +279,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=96 Strict-Transport-Security: diff --git a/tests/test_playbooks/fixtures/content_view_filter_rule-0.yml b/tests/test_playbooks/fixtures/content_view_filter_rule-0.yml index 417aa3512..f85983489 100644 --- a/tests/test_playbooks/fixtures/content_view_filter_rule-0.yml +++ b/tests/test_playbooks/fixtures/content_view_filter_rule-0.yml @@ -14,14 +14,14 @@ interactions: uri: https://foreman.example.org/api/status response: body: - string: '{"result":"ok","status":200,"version":"3.7.0-rc2","api_version":2}' + string: '{"result":"ok","status":200,"version":"3.12.0-develop","api_version":2}' headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive Content-Length: - - '66' + - '71' 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''; @@ -35,7 +35,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=100 Strict-Transport-Security: @@ -70,8 +70,8 @@ interactions: body: 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-05 - 22:32:12 UTC\",\"updated_at\":\"2023-06-05 22:32:15 UTC\",\"id\":11,\"name\":\"Test + {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\":\"Test_Organization\",\"created_at\":\"2024-07-24 + 14:53:36 UTC\",\"updated_at\":\"2024-07-24 14:53:38 UTC\",\"id\":7,\"name\":\"Test Organization\",\"title\":\"Test Organization\",\"description\":\"A test organization\"}]\n}\n" headers: Cache-Control: @@ -79,7 +79,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '389' + - '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''; @@ -93,7 +93,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=99 Strict-Transport-Security: @@ -123,18 +123,17 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/organizations/11/content_views?search=name%3D%22Test+Content+View%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/organizations/7/content_views?search=name%3D%22Test+Content+View%22&per_page=4294967296 response: body: string: '{"total":2,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Content View\"","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":true,"repository_ids":[31,32,33,34],"id":19,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":11,"organization":{"name":"Test - Organization","label":"Test_Organization","id":11},"created_at":"2023-06-05 - 22:34:51 UTC","updated_at":"2023-06-05 22:34:51 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":31,"name":"Test - Repository","label":"Test_Repository","content_type":"yum"},{"id":32,"name":"Test - Modular Repository","label":"Test_Modular_Repository","content_type":"yum"},{"id":33,"name":"Test - Docker Repository","label":"Test_Docker_Repository","content_type":"docker"},{"id":34,"name":"Test - Debian Repository","label":"Test_Debian_Repository","content_type":"deb"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]}]} + Content View\"","sort":{"by":"name","order":"asc"},"results":[{"composite":false,"component_ids":[],"duplicate_repositories_to_publish":[],"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":[],"filtered":true,"repository_ids":[13,14,15],"id":11,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":7,"organization":{"name":"Test + Organization","label":"Test_Organization","id":7},"created_at":"2024-07-24 + 14:54:40 UTC","updated_at":"2024-07-24 14:54:40 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":13,"name":"Test + Repository","label":"Test_Repository","content_type":"yum"},{"id":14,"name":"Test + Modular Repository","label":"Test_Modular_Repository","content_type":"yum"},{"id":15,"name":"Test + Docker Repository","label":"Test_Docker_Repository","content_type":"docker"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]}]} ' headers: @@ -143,7 +142,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '1353' + - '1270' 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''; @@ -155,9 +154,9 @@ interactions: Foreman_current_location: - ; ANY Foreman_current_organization: - - 11; Test Organization + - 7; Test Organization Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=98 Strict-Transport-Security: @@ -187,20 +186,19 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/content_views/19/filters?search=name%3D%22Test+Content+View+Filter+-+rpm%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/content_views/11/filters?search=name%3D%22Test+Content+View+Filter+-+rpm%22&per_page=4294967296 response: body: string: '{"total":10,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Content View Filter - rpm\"","sort":{"by":"name","order":"asc"},"results":[{"inclusion":false,"id":58,"name":"Test - Content View Filter - rpm","description":null,"created_at":"2023-06-05 22:34:55 - UTC","updated_at":"2023-06-05 22:34:55 UTC","content_view":{"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":true,"repository_ids":[31,32,33,34],"id":19,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":11,"organization":{"name":"Test - Organization","label":"Test_Organization","id":11},"created_at":"2023-06-05 - 22:34:51 UTC","updated_at":"2023-06-05 22:34:51 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":31,"name":"Test - Repository","label":"Test_Repository","content_type":"yum"},{"id":32,"name":"Test - Modular Repository","label":"Test_Modular_Repository","content_type":"yum"},{"id":33,"name":"Test - Docker Repository","label":"Test_Docker_Repository","content_type":"docker"},{"id":34,"name":"Test - Debian Repository","label":"Test_Debian_Repository","content_type":"deb"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]},"repositories":[],"type":"rpm","rules":[]}]} + Content View Filter - rpm\"","sort":{"by":"name","order":"asc"},"results":[{"inclusion":false,"id":54,"name":"Test + Content View Filter - rpm","description":null,"created_at":"2024-07-24 14:54:42 + UTC","updated_at":"2024-07-24 14:54:42 UTC","content_view":{"composite":false,"component_ids":[],"duplicate_repositories_to_publish":[],"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":[],"filtered":true,"repository_ids":[13,14,15],"id":11,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":7,"organization":{"name":"Test + Organization","label":"Test_Organization","id":7},"created_at":"2024-07-24 + 14:54:40 UTC","updated_at":"2024-07-24 14:54:40 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":13,"name":"Test + Repository","label":"Test_Repository","content_type":"yum"},{"id":14,"name":"Test + Modular Repository","label":"Test_Modular_Repository","content_type":"yum"},{"id":15,"name":"Test + Docker Repository","label":"Test_Docker_Repository","content_type":"docker"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]},"repositories":[],"type":"rpm","rules":[]}]} ' headers: @@ -209,7 +207,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '1589' + - '1506' 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''; @@ -223,7 +221,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=97 Strict-Transport-Security: @@ -253,7 +251,7 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/content_view_filters/58/rules?search=name%3D%22bear%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/content_view_filters/54/rules?search=name%3D%22bear%22&per_page=4294967296 response: body: string: '{"total":0,"subtotal":0,"selectable":0,"page":1,"per_page":"4294967296","error":null,"search":"name=\"bear\"","sort":{"by":"id","order":"asc"},"results":[]} @@ -279,7 +277,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=96 Strict-Transport-Security: @@ -313,11 +311,11 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: POST - uri: https://foreman.example.org/katello/api/content_view_filters/58/rules + uri: https://foreman.example.org/katello/api/content_view_filters/54/rules response: body: - string: ' {"content_view_filter_id":58,"id":7,"name":"bear","created_at":"2023-06-05 - 22:35:02 UTC","updated_at":"2023-06-05 22:35:02 UTC"} + string: ' {"content_view_filter_id":54,"id":7,"name":"bear","created_at":"2024-07-24 + 14:54:45 UTC","updated_at":"2024-07-24 14:54:45 UTC"} ' headers: @@ -340,7 +338,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=95 Strict-Transport-Security: diff --git a/tests/test_playbooks/fixtures/content_view_filter_rule-1.yml b/tests/test_playbooks/fixtures/content_view_filter_rule-1.yml index 4684d8d91..770990af6 100644 --- a/tests/test_playbooks/fixtures/content_view_filter_rule-1.yml +++ b/tests/test_playbooks/fixtures/content_view_filter_rule-1.yml @@ -14,14 +14,14 @@ interactions: uri: https://foreman.example.org/api/status response: body: - string: '{"result":"ok","status":200,"version":"3.7.0-rc2","api_version":2}' + string: '{"result":"ok","status":200,"version":"3.12.0-develop","api_version":2}' headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive Content-Length: - - '66' + - '71' 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''; @@ -35,7 +35,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=100 Strict-Transport-Security: @@ -70,8 +70,8 @@ interactions: body: 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-05 - 22:32:12 UTC\",\"updated_at\":\"2023-06-05 22:32:15 UTC\",\"id\":11,\"name\":\"Test + {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\":\"Test_Organization\",\"created_at\":\"2024-07-24 + 14:53:36 UTC\",\"updated_at\":\"2024-07-24 14:53:38 UTC\",\"id\":7,\"name\":\"Test Organization\",\"title\":\"Test Organization\",\"description\":\"A test organization\"}]\n}\n" headers: Cache-Control: @@ -79,7 +79,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '389' + - '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''; @@ -93,7 +93,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=99 Strict-Transport-Security: @@ -123,18 +123,17 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/organizations/11/content_views?search=name%3D%22Test+Content+View%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/organizations/7/content_views?search=name%3D%22Test+Content+View%22&per_page=4294967296 response: body: string: '{"total":2,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Content View\"","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":true,"repository_ids":[31,32,33,34],"id":19,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":11,"organization":{"name":"Test - Organization","label":"Test_Organization","id":11},"created_at":"2023-06-05 - 22:34:51 UTC","updated_at":"2023-06-05 22:34:51 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":31,"name":"Test - Repository","label":"Test_Repository","content_type":"yum"},{"id":32,"name":"Test - Modular Repository","label":"Test_Modular_Repository","content_type":"yum"},{"id":33,"name":"Test - Docker Repository","label":"Test_Docker_Repository","content_type":"docker"},{"id":34,"name":"Test - Debian Repository","label":"Test_Debian_Repository","content_type":"deb"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]}]} + Content View\"","sort":{"by":"name","order":"asc"},"results":[{"composite":false,"component_ids":[],"duplicate_repositories_to_publish":[],"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":[],"filtered":true,"repository_ids":[13,14,15],"id":11,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":7,"organization":{"name":"Test + Organization","label":"Test_Organization","id":7},"created_at":"2024-07-24 + 14:54:40 UTC","updated_at":"2024-07-24 14:54:40 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":13,"name":"Test + Repository","label":"Test_Repository","content_type":"yum"},{"id":14,"name":"Test + Modular Repository","label":"Test_Modular_Repository","content_type":"yum"},{"id":15,"name":"Test + Docker Repository","label":"Test_Docker_Repository","content_type":"docker"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]}]} ' headers: @@ -143,7 +142,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '1353' + - '1270' 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''; @@ -155,9 +154,9 @@ interactions: Foreman_current_location: - ; ANY Foreman_current_organization: - - 11; Test Organization + - 7; Test Organization Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=98 Strict-Transport-Security: @@ -187,21 +186,20 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/content_views/19/filters?search=name%3D%22Test+Content+View+Filter+-+rpm%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/content_views/11/filters?search=name%3D%22Test+Content+View+Filter+-+rpm%22&per_page=4294967296 response: body: string: '{"total":10,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Content View Filter - rpm\"","sort":{"by":"name","order":"asc"},"results":[{"inclusion":false,"id":58,"name":"Test - Content View Filter - rpm","description":null,"created_at":"2023-06-05 22:34:55 - UTC","updated_at":"2023-06-05 22:34:55 UTC","content_view":{"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":true,"repository_ids":[31,32,33,34],"id":19,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":11,"organization":{"name":"Test - Organization","label":"Test_Organization","id":11},"created_at":"2023-06-05 - 22:34:51 UTC","updated_at":"2023-06-05 22:34:51 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":31,"name":"Test - Repository","label":"Test_Repository","content_type":"yum"},{"id":32,"name":"Test - Modular Repository","label":"Test_Modular_Repository","content_type":"yum"},{"id":33,"name":"Test - Docker Repository","label":"Test_Docker_Repository","content_type":"docker"},{"id":34,"name":"Test - Debian Repository","label":"Test_Debian_Repository","content_type":"deb"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]},"repositories":[],"type":"rpm","rules":[{"content_view_filter_id":58,"id":7,"name":"bear","created_at":"2023-06-05 - 22:35:02 UTC","updated_at":"2023-06-05 22:35:02 UTC"}]}]} + Content View Filter - rpm\"","sort":{"by":"name","order":"asc"},"results":[{"inclusion":false,"id":54,"name":"Test + Content View Filter - rpm","description":null,"created_at":"2024-07-24 14:54:42 + UTC","updated_at":"2024-07-24 14:54:42 UTC","content_view":{"composite":false,"component_ids":[],"duplicate_repositories_to_publish":[],"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":[],"filtered":true,"repository_ids":[13,14,15],"id":11,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":7,"organization":{"name":"Test + Organization","label":"Test_Organization","id":7},"created_at":"2024-07-24 + 14:54:40 UTC","updated_at":"2024-07-24 14:54:40 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":13,"name":"Test + Repository","label":"Test_Repository","content_type":"yum"},{"id":14,"name":"Test + Modular Repository","label":"Test_Modular_Repository","content_type":"yum"},{"id":15,"name":"Test + Docker Repository","label":"Test_Docker_Repository","content_type":"docker"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]},"repositories":[],"type":"rpm","rules":[{"content_view_filter_id":54,"id":7,"name":"bear","created_at":"2024-07-24 + 14:54:45 UTC","updated_at":"2024-07-24 14:54:45 UTC"}]}]} ' headers: @@ -210,7 +208,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '1717' + - '1634' 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''; @@ -224,7 +222,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=97 Strict-Transport-Security: @@ -254,7 +252,7 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/content_view_filters/58/rules?search=name%3D%22camel%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/content_view_filters/54/rules?search=name%3D%22camel%22&per_page=4294967296 response: body: string: '{"total":1,"subtotal":0,"selectable":0,"page":1,"per_page":"4294967296","error":null,"search":"name=\"camel\"","sort":{"by":"id","order":"asc"},"results":[]} @@ -280,7 +278,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=96 Strict-Transport-Security: @@ -314,11 +312,11 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: POST - uri: https://foreman.example.org/katello/api/content_view_filters/58/rules + uri: https://foreman.example.org/katello/api/content_view_filters/54/rules response: body: - string: ' {"content_view_filter_id":58,"id":8,"name":"camel","created_at":"2023-06-05 - 22:35:03 UTC","updated_at":"2023-06-05 22:35:03 UTC"} + string: ' {"content_view_filter_id":54,"id":8,"name":"camel","created_at":"2024-07-24 + 14:54:46 UTC","updated_at":"2024-07-24 14:54:46 UTC"} ' headers: @@ -341,7 +339,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=95 Strict-Transport-Security: diff --git a/tests/test_playbooks/fixtures/content_view_filter_rule-10.yml b/tests/test_playbooks/fixtures/content_view_filter_rule-10.yml index 88f5a3fe1..d24a3cdfe 100644 --- a/tests/test_playbooks/fixtures/content_view_filter_rule-10.yml +++ b/tests/test_playbooks/fixtures/content_view_filter_rule-10.yml @@ -14,14 +14,14 @@ interactions: uri: https://foreman.example.org/api/status response: body: - string: '{"result":"ok","status":200,"version":"3.7.0-rc2","api_version":2}' + string: '{"result":"ok","status":200,"version":"3.12.0-develop","api_version":2}' headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive Content-Length: - - '66' + - '71' 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''; @@ -35,7 +35,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=100 Strict-Transport-Security: @@ -70,8 +70,8 @@ interactions: body: 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-05 - 22:32:12 UTC\",\"updated_at\":\"2023-06-05 22:32:15 UTC\",\"id\":11,\"name\":\"Test + {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\":\"Test_Organization\",\"created_at\":\"2024-07-24 + 14:53:36 UTC\",\"updated_at\":\"2024-07-24 14:53:38 UTC\",\"id\":7,\"name\":\"Test Organization\",\"title\":\"Test Organization\",\"description\":\"A test organization\"}]\n}\n" headers: Cache-Control: @@ -79,7 +79,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '389' + - '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''; @@ -93,7 +93,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=99 Strict-Transport-Security: @@ -123,18 +123,17 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/organizations/11/content_views?search=name%3D%22Test+Content+View%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/organizations/7/content_views?search=name%3D%22Test+Content+View%22&per_page=4294967296 response: body: string: '{"total":2,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Content View\"","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":true,"repository_ids":[31,32,33,34],"id":19,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":11,"organization":{"name":"Test - Organization","label":"Test_Organization","id":11},"created_at":"2023-06-05 - 22:34:51 UTC","updated_at":"2023-06-05 22:34:51 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":31,"name":"Test - Repository","label":"Test_Repository","content_type":"yum"},{"id":32,"name":"Test - Modular Repository","label":"Test_Modular_Repository","content_type":"yum"},{"id":33,"name":"Test - Docker Repository","label":"Test_Docker_Repository","content_type":"docker"},{"id":34,"name":"Test - Debian Repository","label":"Test_Debian_Repository","content_type":"deb"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]}]} + Content View\"","sort":{"by":"name","order":"asc"},"results":[{"composite":false,"component_ids":[],"duplicate_repositories_to_publish":[],"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":[],"filtered":true,"repository_ids":[13,14,15],"id":11,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":7,"organization":{"name":"Test + Organization","label":"Test_Organization","id":7},"created_at":"2024-07-24 + 14:54:40 UTC","updated_at":"2024-07-24 14:54:40 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":13,"name":"Test + Repository","label":"Test_Repository","content_type":"yum"},{"id":14,"name":"Test + Modular Repository","label":"Test_Modular_Repository","content_type":"yum"},{"id":15,"name":"Test + Docker Repository","label":"Test_Docker_Repository","content_type":"docker"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]}]} ' headers: @@ -143,7 +142,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '1353' + - '1270' 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''; @@ -155,9 +154,9 @@ interactions: Foreman_current_location: - ; ANY Foreman_current_organization: - - 11; Test Organization + - 7; Test Organization Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=98 Strict-Transport-Security: @@ -187,21 +186,20 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/content_views/19/filters?search=name%3D%22Test+Content+View+Filter+-+docker%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/content_views/11/filters?search=name%3D%22Test+Content+View+Filter+-+docker%22&per_page=4294967296 response: body: string: '{"total":10,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Content View Filter - docker\"","sort":{"by":"name","order":"asc"},"results":[{"inclusion":false,"id":62,"name":"Test - Content View Filter - docker","description":null,"created_at":"2023-06-05 - 22:34:59 UTC","updated_at":"2023-06-05 22:34:59 UTC","content_view":{"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":true,"repository_ids":[31,32,33,34],"id":19,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":11,"organization":{"name":"Test - Organization","label":"Test_Organization","id":11},"created_at":"2023-06-05 - 22:34:51 UTC","updated_at":"2023-06-05 22:34:51 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":31,"name":"Test - Repository","label":"Test_Repository","content_type":"yum"},{"id":32,"name":"Test - Modular Repository","label":"Test_Modular_Repository","content_type":"yum"},{"id":33,"name":"Test - Docker Repository","label":"Test_Docker_Repository","content_type":"docker"},{"id":34,"name":"Test - Debian Repository","label":"Test_Debian_Repository","content_type":"deb"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]},"repositories":[],"type":"docker","rules":[{"content_view_filter_id":62,"id":6,"name":"8.7-929","created_at":"2023-06-05 - 22:35:11 UTC","updated_at":"2023-06-05 22:35:11 UTC"}]}]} + Content View Filter - docker\"","sort":{"by":"name","order":"asc"},"results":[{"inclusion":false,"id":58,"name":"Test + Content View Filter - docker","description":null,"created_at":"2024-07-24 + 14:54:44 UTC","updated_at":"2024-07-24 14:54:44 UTC","content_view":{"composite":false,"component_ids":[],"duplicate_repositories_to_publish":[],"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":[],"filtered":true,"repository_ids":[13,14,15],"id":11,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":7,"organization":{"name":"Test + Organization","label":"Test_Organization","id":7},"created_at":"2024-07-24 + 14:54:40 UTC","updated_at":"2024-07-24 14:54:40 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":13,"name":"Test + Repository","label":"Test_Repository","content_type":"yum"},{"id":14,"name":"Test + Modular Repository","label":"Test_Modular_Repository","content_type":"yum"},{"id":15,"name":"Test + Docker Repository","label":"Test_Docker_Repository","content_type":"docker"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]},"repositories":[],"type":"docker","rules":[{"content_view_filter_id":58,"id":7,"name":"8.7-929","created_at":"2024-07-24 + 14:54:50 UTC","updated_at":"2024-07-24 14:54:50 UTC"}]}]} ' headers: @@ -210,7 +208,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '1729' + - '1646' 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''; @@ -224,7 +222,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=97 Strict-Transport-Security: @@ -254,7 +252,7 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/content_view_filters/62/rules?search=name%3D%228.6-990%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/content_view_filters/58/rules?search=name%3D%228.6-990%22&per_page=4294967296 response: body: string: '{"total":1,"subtotal":0,"selectable":0,"page":1,"per_page":"4294967296","error":null,"search":"name=\"8.6-990\"","sort":{"by":"id","order":"asc"},"results":[]} @@ -280,7 +278,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=96 Strict-Transport-Security: @@ -314,11 +312,11 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: POST - uri: https://foreman.example.org/katello/api/content_view_filters/62/rules + uri: https://foreman.example.org/katello/api/content_view_filters/58/rules response: body: - string: ' {"content_view_filter_id":62,"id":7,"name":"8.6-990","created_at":"2023-06-05 - 22:35:12 UTC","updated_at":"2023-06-05 22:35:12 UTC"} + string: ' {"content_view_filter_id":58,"id":8,"name":"8.6-990","created_at":"2024-07-24 + 14:54:50 UTC","updated_at":"2024-07-24 14:54:50 UTC"} ' headers: @@ -341,7 +339,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=95 Strict-Transport-Security: diff --git a/tests/test_playbooks/fixtures/content_view_filter_rule-11.yml b/tests/test_playbooks/fixtures/content_view_filter_rule-11.yml index 90a801810..246c16abe 100644 --- a/tests/test_playbooks/fixtures/content_view_filter_rule-11.yml +++ b/tests/test_playbooks/fixtures/content_view_filter_rule-11.yml @@ -14,14 +14,14 @@ interactions: uri: https://foreman.example.org/api/status response: body: - string: '{"result":"ok","status":200,"version":"3.7.0-rc2","api_version":2}' + string: '{"result":"ok","status":200,"version":"3.12.0-develop","api_version":2}' headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive Content-Length: - - '66' + - '71' 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''; @@ -35,7 +35,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=100 Strict-Transport-Security: @@ -70,8 +70,8 @@ interactions: body: 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-05 - 22:32:12 UTC\",\"updated_at\":\"2023-06-05 22:32:15 UTC\",\"id\":11,\"name\":\"Test + {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\":\"Test_Organization\",\"created_at\":\"2024-07-24 + 14:53:36 UTC\",\"updated_at\":\"2024-07-24 14:53:38 UTC\",\"id\":7,\"name\":\"Test Organization\",\"title\":\"Test Organization\",\"description\":\"A test organization\"}]\n}\n" headers: Cache-Control: @@ -79,7 +79,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '389' + - '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''; @@ -93,7 +93,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=99 Strict-Transport-Security: @@ -123,18 +123,17 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/organizations/11/content_views?search=name%3D%22Test+Content+View%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/organizations/7/content_views?search=name%3D%22Test+Content+View%22&per_page=4294967296 response: body: string: '{"total":2,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Content View\"","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":true,"repository_ids":[31,32,33,34],"id":19,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":11,"organization":{"name":"Test - Organization","label":"Test_Organization","id":11},"created_at":"2023-06-05 - 22:34:51 UTC","updated_at":"2023-06-05 22:34:51 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":31,"name":"Test - Repository","label":"Test_Repository","content_type":"yum"},{"id":32,"name":"Test - Modular Repository","label":"Test_Modular_Repository","content_type":"yum"},{"id":33,"name":"Test - Docker Repository","label":"Test_Docker_Repository","content_type":"docker"},{"id":34,"name":"Test - Debian Repository","label":"Test_Debian_Repository","content_type":"deb"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]}]} + Content View\"","sort":{"by":"name","order":"asc"},"results":[{"composite":false,"component_ids":[],"duplicate_repositories_to_publish":[],"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":[],"filtered":true,"repository_ids":[13,14,15],"id":11,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":7,"organization":{"name":"Test + Organization","label":"Test_Organization","id":7},"created_at":"2024-07-24 + 14:54:40 UTC","updated_at":"2024-07-24 14:54:40 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":13,"name":"Test + Repository","label":"Test_Repository","content_type":"yum"},{"id":14,"name":"Test + Modular Repository","label":"Test_Modular_Repository","content_type":"yum"},{"id":15,"name":"Test + Docker Repository","label":"Test_Docker_Repository","content_type":"docker"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]}]} ' headers: @@ -143,7 +142,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '1353' + - '1270' 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''; @@ -155,9 +154,9 @@ interactions: Foreman_current_location: - ; ANY Foreman_current_organization: - - 11; Test Organization + - 7; Test Organization Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=98 Strict-Transport-Security: @@ -187,20 +186,19 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/content_views/19/filters?search=name%3D%22Test+Content+View+Filter+-+modulemd%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/content_views/11/filters?search=name%3D%22Test+Content+View+Filter+-+modulemd%22&per_page=4294967296 response: body: string: '{"total":10,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Content View Filter - modulemd\"","sort":{"by":"name","order":"asc"},"results":[{"inclusion":false,"id":63,"name":"Test - Content View Filter - modulemd","description":null,"created_at":"2023-06-05 - 22:35:00 UTC","updated_at":"2023-06-05 22:35:00 UTC","content_view":{"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":true,"repository_ids":[31,32,33,34],"id":19,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":11,"organization":{"name":"Test - Organization","label":"Test_Organization","id":11},"created_at":"2023-06-05 - 22:34:51 UTC","updated_at":"2023-06-05 22:34:51 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":31,"name":"Test - Repository","label":"Test_Repository","content_type":"yum"},{"id":32,"name":"Test - Modular Repository","label":"Test_Modular_Repository","content_type":"yum"},{"id":33,"name":"Test - Docker Repository","label":"Test_Docker_Repository","content_type":"docker"},{"id":34,"name":"Test - Debian Repository","label":"Test_Debian_Repository","content_type":"deb"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]},"repositories":[],"type":"modulemd","rules":[]}]} + Content View Filter - modulemd\"","sort":{"by":"name","order":"asc"},"results":[{"inclusion":false,"id":59,"name":"Test + Content View Filter - modulemd","description":null,"created_at":"2024-07-24 + 14:54:44 UTC","updated_at":"2024-07-24 14:54:44 UTC","content_view":{"composite":false,"component_ids":[],"duplicate_repositories_to_publish":[],"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":[],"filtered":true,"repository_ids":[13,14,15],"id":11,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":7,"organization":{"name":"Test + Organization","label":"Test_Organization","id":7},"created_at":"2024-07-24 + 14:54:40 UTC","updated_at":"2024-07-24 14:54:40 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":13,"name":"Test + Repository","label":"Test_Repository","content_type":"yum"},{"id":14,"name":"Test + Modular Repository","label":"Test_Modular_Repository","content_type":"yum"},{"id":15,"name":"Test + Docker Repository","label":"Test_Docker_Repository","content_type":"docker"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]},"repositories":[],"type":"modulemd","rules":[]}]} ' headers: @@ -209,7 +207,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '1604' + - '1521' 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''; @@ -223,7 +221,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=97 Strict-Transport-Security: @@ -256,8 +254,8 @@ interactions: uri: https://foreman.example.org/katello/api/module_streams?search=name%3D%22389-directory-server%22%2Cstream%3D%22next%22%2Cversion%3D%22820220325123957%22%2Ccontext%3D%229edba152%22&per_page=4294967296 response: body: - string: '{"total":24,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"389-directory-server\",stream=\"next\",version=\"820220325123957\",context=\"9edba152\"","sort":{"by":"name","order":"asc"},"results":[{"id":24,"name":"389-directory-server","pulp_id":"/pulp/api/v3/content/rpm/modulemds/0e721ce9-6995-40e8-8086-a5a47b89af0b/","version":"820220325123957","context":"9edba152","stream":"next","arch":"x86_64","description":"389 - Directory Server is an LDAPv3 compliant server.","summary":null,"module_spec":"389-directory-server:next:820220325123957:9edba152:x86_64","uuid":"/pulp/api/v3/content/rpm/modulemds/0e721ce9-6995-40e8-8086-a5a47b89af0b/"}]} + string: '{"total":24,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"389-directory-server\",stream=\"next\",version=\"820220325123957\",context=\"9edba152\"","sort":{"by":"name","order":"asc"},"results":[{"id":24,"name":"389-directory-server","pulp_id":"/pulp/api/v3/content/rpm/modulemds/0190e45f-010d-74d7-a9a1-cd01d6fdc194/","version":"820220325123957","context":"9edba152","stream":"next","arch":"x86_64","description":"389 + Directory Server is an LDAPv3 compliant server.","summary":null,"module_spec":"389-directory-server:next:820220325123957:9edba152:x86_64","uuid":"/pulp/api/v3/content/rpm/modulemds/0190e45f-010d-74d7-a9a1-cd01d6fdc194/"}]} ' headers: @@ -280,7 +278,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=96 Strict-Transport-Security: @@ -313,9 +311,9 @@ interactions: uri: https://foreman.example.org/katello/api/module_streams/24 response: body: - string: ' {"id":24,"name":"389-directory-server","pulp_id":"/pulp/api/v3/content/rpm/modulemds/0e721ce9-6995-40e8-8086-a5a47b89af0b/","version":"820220325123957","context":"9edba152","stream":"next","arch":"x86_64","description":"389 - Directory Server is an LDAPv3 compliant server.","summary":null,"module_spec":"389-directory-server:next:820220325123957:9edba152:x86_64","uuid":"/pulp/api/v3/content/rpm/modulemds/0e721ce9-6995-40e8-8086-a5a47b89af0b/","artifacts":[{"id":411,"name":"389-ds-base-0:2.0.15-1.module_el8+14202+84d723da.src"},{"id":412,"name":"389-ds-base-0:2.0.15-1.module_el8+14202+84d723da.x86_64"},{"id":413,"name":"389-ds-base-debuginfo-0:2.0.15-1.module_el8+14202+84d723da.x86_64"},{"id":414,"name":"389-ds-base-debugsource-0:2.0.15-1.module_el8+14202+84d723da.x86_64"},{"id":415,"name":"389-ds-base-devel-0:2.0.15-1.module_el8+14202+84d723da.x86_64"},{"id":416,"name":"389-ds-base-libs-0:2.0.15-1.module_el8+14202+84d723da.x86_64"},{"id":417,"name":"389-ds-base-libs-debuginfo-0:2.0.15-1.module_el8+14202+84d723da.x86_64"},{"id":418,"name":"389-ds-base-snmp-0:2.0.15-1.module_el8+14202+84d723da.x86_64"},{"id":419,"name":"389-ds-base-snmp-debuginfo-0:2.0.15-1.module_el8+14202+84d723da.x86_64"},{"id":420,"name":"cockpit-389-ds-0:2.0.15-1.module_el8+14202+84d723da.noarch"},{"id":421,"name":"python3-lib389-0:2.0.15-1.module_el8+14202+84d723da.noarch"}],"profiles":[{"id":50,"name":"default","rpms":[{"id":91,"name":"389-ds-base"},{"id":92,"name":"cockpit-389-ds"}]},{"id":51,"name":"minimal","rpms":[{"id":93,"name":"389-ds-base"}]}],"repositories":[{"id":32,"name":"Test - Modular Repository","product_id":10,"product_name":"Test Product"}]} + string: ' {"id":24,"name":"389-directory-server","pulp_id":"/pulp/api/v3/content/rpm/modulemds/0190e45f-010d-74d7-a9a1-cd01d6fdc194/","version":"820220325123957","context":"9edba152","stream":"next","arch":"x86_64","description":"389 + Directory Server is an LDAPv3 compliant server.","summary":null,"module_spec":"389-directory-server:next:820220325123957:9edba152:x86_64","uuid":"/pulp/api/v3/content/rpm/modulemds/0190e45f-010d-74d7-a9a1-cd01d6fdc194/","artifacts":[{"id":411,"name":"389-ds-base-0:2.0.15-1.module_el8+14202+84d723da.src"},{"id":412,"name":"389-ds-base-0:2.0.15-1.module_el8+14202+84d723da.x86_64"},{"id":413,"name":"389-ds-base-debuginfo-0:2.0.15-1.module_el8+14202+84d723da.x86_64"},{"id":414,"name":"389-ds-base-debugsource-0:2.0.15-1.module_el8+14202+84d723da.x86_64"},{"id":415,"name":"389-ds-base-devel-0:2.0.15-1.module_el8+14202+84d723da.x86_64"},{"id":416,"name":"389-ds-base-libs-0:2.0.15-1.module_el8+14202+84d723da.x86_64"},{"id":417,"name":"389-ds-base-libs-debuginfo-0:2.0.15-1.module_el8+14202+84d723da.x86_64"},{"id":418,"name":"389-ds-base-snmp-0:2.0.15-1.module_el8+14202+84d723da.x86_64"},{"id":419,"name":"389-ds-base-snmp-debuginfo-0:2.0.15-1.module_el8+14202+84d723da.x86_64"},{"id":420,"name":"cockpit-389-ds-0:2.0.15-1.module_el8+14202+84d723da.noarch"},{"id":421,"name":"python3-lib389-0:2.0.15-1.module_el8+14202+84d723da.noarch"}],"profiles":[{"id":50,"name":"default","rpms":[{"id":91,"name":"389-ds-base"},{"id":92,"name":"cockpit-389-ds"}]},{"id":51,"name":"minimal","rpms":[{"id":93,"name":"389-ds-base"}]}],"repositories":[{"id":14,"name":"Test + Modular Repository","product_id":5,"product_name":"Test Product"}]} ' headers: @@ -324,7 +322,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '1655' + - '1654' 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''; @@ -338,7 +336,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=95 Strict-Transport-Security: @@ -372,11 +370,11 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: POST - uri: https://foreman.example.org/katello/api/content_view_filters/63/rules + uri: https://foreman.example.org/katello/api/content_view_filters/59/rules response: body: - string: ' {"content_view_filter_id":63,"module_stream_id":24,"id":4,"created_at":"2023-06-05 - 22:35:13 UTC","updated_at":"2023-06-05 22:35:13 UTC"} + string: ' {"content_view_filter_id":59,"module_stream_id":24,"id":10,"created_at":"2024-07-24 + 14:54:51 UTC","updated_at":"2024-07-24 14:54:51 UTC","module_stream":{"module_stream_id":24,"module_stream_name":"389-directory-server","module_stream_stream":"next"}} ' headers: @@ -385,7 +383,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '139' + - '254' 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''; @@ -399,7 +397,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=94 Strict-Transport-Security: diff --git a/tests/test_playbooks/fixtures/content_view_filter_rule-12.yml b/tests/test_playbooks/fixtures/content_view_filter_rule-12.yml index 40e20f071..4ffdfb086 100644 --- a/tests/test_playbooks/fixtures/content_view_filter_rule-12.yml +++ b/tests/test_playbooks/fixtures/content_view_filter_rule-12.yml @@ -14,14 +14,14 @@ interactions: uri: https://foreman.example.org/api/status response: body: - string: '{"result":"ok","status":200,"version":"3.7.0-rc2","api_version":2}' + string: '{"result":"ok","status":200,"version":"3.12.0-develop","api_version":2}' headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive Content-Length: - - '66' + - '71' 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''; @@ -35,7 +35,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=100 Strict-Transport-Security: @@ -70,8 +70,8 @@ interactions: body: 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-05 - 22:32:12 UTC\",\"updated_at\":\"2023-06-05 22:32:15 UTC\",\"id\":11,\"name\":\"Test + {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\":\"Test_Organization\",\"created_at\":\"2024-07-24 + 14:53:36 UTC\",\"updated_at\":\"2024-07-24 14:53:38 UTC\",\"id\":7,\"name\":\"Test Organization\",\"title\":\"Test Organization\",\"description\":\"A test organization\"}]\n}\n" headers: Cache-Control: @@ -79,7 +79,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '389' + - '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''; @@ -93,7 +93,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=99 Strict-Transport-Security: @@ -123,18 +123,17 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/organizations/11/content_views?search=name%3D%22Test+Content+View%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/organizations/7/content_views?search=name%3D%22Test+Content+View%22&per_page=4294967296 response: body: string: '{"total":2,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Content View\"","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":true,"repository_ids":[31,32,33,34],"id":19,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":11,"organization":{"name":"Test - Organization","label":"Test_Organization","id":11},"created_at":"2023-06-05 - 22:34:51 UTC","updated_at":"2023-06-05 22:34:51 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":31,"name":"Test - Repository","label":"Test_Repository","content_type":"yum"},{"id":32,"name":"Test - Modular Repository","label":"Test_Modular_Repository","content_type":"yum"},{"id":33,"name":"Test - Docker Repository","label":"Test_Docker_Repository","content_type":"docker"},{"id":34,"name":"Test - Debian Repository","label":"Test_Debian_Repository","content_type":"deb"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]}]} + Content View\"","sort":{"by":"name","order":"asc"},"results":[{"composite":false,"component_ids":[],"duplicate_repositories_to_publish":[],"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":[],"filtered":true,"repository_ids":[13,14,15],"id":11,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":7,"organization":{"name":"Test + Organization","label":"Test_Organization","id":7},"created_at":"2024-07-24 + 14:54:40 UTC","updated_at":"2024-07-24 14:54:40 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":13,"name":"Test + Repository","label":"Test_Repository","content_type":"yum"},{"id":14,"name":"Test + Modular Repository","label":"Test_Modular_Repository","content_type":"yum"},{"id":15,"name":"Test + Docker Repository","label":"Test_Docker_Repository","content_type":"docker"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]}]} ' headers: @@ -143,7 +142,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '1353' + - '1270' 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''; @@ -155,9 +154,9 @@ interactions: Foreman_current_location: - ; ANY Foreman_current_organization: - - 11; Test Organization + - 7; Test Organization Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=98 Strict-Transport-Security: @@ -187,21 +186,20 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/content_views/19/filters?search=name%3D%22Test+Content+View+Filter+-+modulemd%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/content_views/11/filters?search=name%3D%22Test+Content+View+Filter+-+modulemd%22&per_page=4294967296 response: body: string: '{"total":10,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Content View Filter - modulemd\"","sort":{"by":"name","order":"asc"},"results":[{"inclusion":false,"id":63,"name":"Test - Content View Filter - modulemd","description":null,"created_at":"2023-06-05 - 22:35:00 UTC","updated_at":"2023-06-05 22:35:00 UTC","content_view":{"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":true,"repository_ids":[31,32,33,34],"id":19,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":11,"organization":{"name":"Test - Organization","label":"Test_Organization","id":11},"created_at":"2023-06-05 - 22:34:51 UTC","updated_at":"2023-06-05 22:34:51 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":31,"name":"Test - Repository","label":"Test_Repository","content_type":"yum"},{"id":32,"name":"Test - Modular Repository","label":"Test_Modular_Repository","content_type":"yum"},{"id":33,"name":"Test - Docker Repository","label":"Test_Docker_Repository","content_type":"docker"},{"id":34,"name":"Test - Debian Repository","label":"Test_Debian_Repository","content_type":"deb"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]},"repositories":[],"type":"modulemd","rules":[{"content_view_filter_id":63,"module_stream_id":24,"id":4,"created_at":"2023-06-05 - 22:35:13 UTC","updated_at":"2023-06-05 22:35:13 UTC"}]}]} + Content View Filter - modulemd\"","sort":{"by":"name","order":"asc"},"results":[{"inclusion":false,"id":59,"name":"Test + Content View Filter - modulemd","description":null,"created_at":"2024-07-24 + 14:54:44 UTC","updated_at":"2024-07-24 14:54:44 UTC","content_view":{"composite":false,"component_ids":[],"duplicate_repositories_to_publish":[],"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":[],"filtered":true,"repository_ids":[13,14,15],"id":11,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":7,"organization":{"name":"Test + Organization","label":"Test_Organization","id":7},"created_at":"2024-07-24 + 14:54:40 UTC","updated_at":"2024-07-24 14:54:40 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":13,"name":"Test + Repository","label":"Test_Repository","content_type":"yum"},{"id":14,"name":"Test + Modular Repository","label":"Test_Modular_Repository","content_type":"yum"},{"id":15,"name":"Test + Docker Repository","label":"Test_Docker_Repository","content_type":"docker"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]},"repositories":[],"type":"modulemd","rules":[{"content_view_filter_id":59,"module_stream_id":24,"id":10,"created_at":"2024-07-24 + 14:54:51 UTC","updated_at":"2024-07-24 14:54:51 UTC"}]}]} ' headers: @@ -210,7 +208,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '1740' + - '1658' 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''; @@ -224,7 +222,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=97 Strict-Transport-Security: @@ -257,12 +255,12 @@ interactions: uri: https://foreman.example.org/katello/api/module_streams?search=name%3D%22nextcloud%22%2Cstream%3D%2223%22%2Cversion%3D%22820220801190052%22%2Ccontext%3D%22nx4%22&per_page=4294967296 response: body: - string: '{"total":24,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"nextcloud\",stream=\"23\",version=\"820220801190052\",context=\"nx4\"","sort":{"by":"name","order":"asc"},"results":[{"id":11,"name":"nextcloud","pulp_id":"/pulp/api/v3/content/rpm/modulemds/54d698dc-212f-403e-ac6d-76bb3641559c/","version":"820220801190052","context":"nx4","stream":"23","arch":"x86_64","description":"Nextcloud + string: '{"total":24,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"nextcloud\",stream=\"23\",version=\"820220801190052\",context=\"nx4\"","sort":{"by":"name","order":"asc"},"results":[{"id":11,"name":"nextcloud","pulp_id":"/pulp/api/v3/content/rpm/modulemds/0190e45f-011a-770d-8383-f0816ccf0835/","version":"820220801190052","context":"nx4","stream":"23","arch":"x86_64","description":"Nextcloud gives you universal access to your files through a web interface or WebDAV. It also provides a platform to easily view & sync your contacts, calendars and bookmarks across all your devices and enables basic editing right on the web. Nextcloud is extendable via a simple but powerful API for applications - and plugins.","summary":null,"module_spec":"nextcloud:23:820220801190052:nx4:x86_64","uuid":"/pulp/api/v3/content/rpm/modulemds/54d698dc-212f-403e-ac6d-76bb3641559c/"}]} + and plugins.","summary":null,"module_spec":"nextcloud:23:820220801190052:nx4:x86_64","uuid":"/pulp/api/v3/content/rpm/modulemds/0190e45f-011a-770d-8383-f0816ccf0835/"}]} ' headers: @@ -285,7 +283,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=96 Strict-Transport-Security: @@ -318,13 +316,13 @@ interactions: uri: https://foreman.example.org/katello/api/module_streams/11 response: body: - string: ' {"id":11,"name":"nextcloud","pulp_id":"/pulp/api/v3/content/rpm/modulemds/54d698dc-212f-403e-ac6d-76bb3641559c/","version":"820220801190052","context":"nx4","stream":"23","arch":"x86_64","description":"Nextcloud + string: ' {"id":11,"name":"nextcloud","pulp_id":"/pulp/api/v3/content/rpm/modulemds/0190e45f-011a-770d-8383-f0816ccf0835/","version":"820220801190052","context":"nx4","stream":"23","arch":"x86_64","description":"Nextcloud gives you universal access to your files through a web interface or WebDAV. It also provides a platform to easily view & sync your contacts, calendars and bookmarks across all your devices and enables basic editing right on the web. Nextcloud is extendable via a simple but powerful API for applications - and plugins.","summary":null,"module_spec":"nextcloud:23:820220801190052:nx4:x86_64","uuid":"/pulp/api/v3/content/rpm/modulemds/54d698dc-212f-403e-ac6d-76bb3641559c/","artifacts":[{"id":197,"name":"nextcloud-0:23.0.7-2.module_el8+14924+d94496fa.noarch"},{"id":198,"name":"nextcloud-0:23.0.7-2.module_el8+14924+d94496fa.src"},{"id":199,"name":"nextcloud-httpd-0:23.0.7-2.module_el8+14924+d94496fa.noarch"},{"id":200,"name":"nextcloud-mysql-0:23.0.7-2.module_el8+14924+d94496fa.noarch"},{"id":201,"name":"nextcloud-nginx-0:23.0.7-2.module_el8+14924+d94496fa.noarch"},{"id":202,"name":"nextcloud-postgresql-0:23.0.7-2.module_el8+14924+d94496fa.noarch"},{"id":203,"name":"nextcloud-sqlite-0:23.0.7-2.module_el8+14924+d94496fa.noarch"}],"profiles":[{"id":25,"name":"default","rpms":[{"id":48,"name":"nextcloud"},{"id":49,"name":"nextcloud-httpd"},{"id":50,"name":"nextcloud-mysql"}]},{"id":26,"name":"testing","rpms":[{"id":51,"name":"nextcloud"},{"id":52,"name":"nextcloud-httpd"},{"id":53,"name":"nextcloud-sqlite"}]}],"repositories":[{"id":32,"name":"Test - Modular Repository","product_id":10,"product_name":"Test Product"}]} + and plugins.","summary":null,"module_spec":"nextcloud:23:820220801190052:nx4:x86_64","uuid":"/pulp/api/v3/content/rpm/modulemds/0190e45f-011a-770d-8383-f0816ccf0835/","artifacts":[{"id":197,"name":"nextcloud-0:23.0.7-2.module_el8+14924+d94496fa.noarch"},{"id":198,"name":"nextcloud-0:23.0.7-2.module_el8+14924+d94496fa.src"},{"id":199,"name":"nextcloud-httpd-0:23.0.7-2.module_el8+14924+d94496fa.noarch"},{"id":200,"name":"nextcloud-mysql-0:23.0.7-2.module_el8+14924+d94496fa.noarch"},{"id":201,"name":"nextcloud-nginx-0:23.0.7-2.module_el8+14924+d94496fa.noarch"},{"id":202,"name":"nextcloud-postgresql-0:23.0.7-2.module_el8+14924+d94496fa.noarch"},{"id":203,"name":"nextcloud-sqlite-0:23.0.7-2.module_el8+14924+d94496fa.noarch"}],"profiles":[{"id":25,"name":"default","rpms":[{"id":48,"name":"nextcloud"},{"id":49,"name":"nextcloud-httpd"},{"id":50,"name":"nextcloud-mysql"}]},{"id":26,"name":"testing","rpms":[{"id":51,"name":"nextcloud"},{"id":52,"name":"nextcloud-httpd"},{"id":53,"name":"nextcloud-sqlite"}]}],"repositories":[{"id":14,"name":"Test + Modular Repository","product_id":5,"product_name":"Test Product"}]} ' headers: @@ -333,7 +331,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '1641' + - '1640' 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''; @@ -347,7 +345,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=95 Strict-Transport-Security: @@ -381,11 +379,11 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: POST - uri: https://foreman.example.org/katello/api/content_view_filters/63/rules + uri: https://foreman.example.org/katello/api/content_view_filters/59/rules response: body: - string: ' {"content_view_filter_id":63,"module_stream_id":11,"id":5,"created_at":"2023-06-05 - 22:35:14 UTC","updated_at":"2023-06-05 22:35:14 UTC"} + string: ' {"content_view_filter_id":59,"module_stream_id":11,"id":11,"created_at":"2024-07-24 + 14:54:51 UTC","updated_at":"2024-07-24 14:54:51 UTC","module_stream":{"module_stream_id":11,"module_stream_name":"nextcloud","module_stream_stream":"23"}} ' headers: @@ -394,7 +392,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '139' + - '241' 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''; @@ -408,7 +406,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=94 Strict-Transport-Security: diff --git a/tests/test_playbooks/fixtures/content_view_filter_rule-13.yml b/tests/test_playbooks/fixtures/content_view_filter_rule-13.yml index 7929538be..ee1fd99d6 100644 --- a/tests/test_playbooks/fixtures/content_view_filter_rule-13.yml +++ b/tests/test_playbooks/fixtures/content_view_filter_rule-13.yml @@ -14,14 +14,14 @@ interactions: uri: https://foreman.example.org/api/status response: body: - string: '{"result":"ok","status":200,"version":"3.7.0-rc2","api_version":2}' + string: '{"result":"ok","status":200,"version":"3.12.0-develop","api_version":2}' headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive Content-Length: - - '66' + - '71' 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''; @@ -35,7 +35,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=100 Strict-Transport-Security: @@ -70,8 +70,8 @@ interactions: body: 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-05 - 22:32:12 UTC\",\"updated_at\":\"2023-06-05 22:32:15 UTC\",\"id\":11,\"name\":\"Test + {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\":\"Test_Organization\",\"created_at\":\"2024-07-24 + 14:53:36 UTC\",\"updated_at\":\"2024-07-24 14:53:38 UTC\",\"id\":7,\"name\":\"Test Organization\",\"title\":\"Test Organization\",\"description\":\"A test organization\"}]\n}\n" headers: Cache-Control: @@ -79,7 +79,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '389' + - '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''; @@ -93,7 +93,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=99 Strict-Transport-Security: @@ -123,18 +123,17 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/organizations/11/content_views?search=name%3D%22Test+Content+View%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/organizations/7/content_views?search=name%3D%22Test+Content+View%22&per_page=4294967296 response: body: string: '{"total":2,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Content View\"","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":true,"repository_ids":[31,32,33,34],"id":19,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":11,"organization":{"name":"Test - Organization","label":"Test_Organization","id":11},"created_at":"2023-06-05 - 22:34:51 UTC","updated_at":"2023-06-05 22:34:51 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":31,"name":"Test - Repository","label":"Test_Repository","content_type":"yum"},{"id":32,"name":"Test - Modular Repository","label":"Test_Modular_Repository","content_type":"yum"},{"id":33,"name":"Test - Docker Repository","label":"Test_Docker_Repository","content_type":"docker"},{"id":34,"name":"Test - Debian Repository","label":"Test_Debian_Repository","content_type":"deb"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]}]} + Content View\"","sort":{"by":"name","order":"asc"},"results":[{"composite":false,"component_ids":[],"duplicate_repositories_to_publish":[],"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":[],"filtered":true,"repository_ids":[13,14,15],"id":11,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":7,"organization":{"name":"Test + Organization","label":"Test_Organization","id":7},"created_at":"2024-07-24 + 14:54:40 UTC","updated_at":"2024-07-24 14:54:40 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":13,"name":"Test + Repository","label":"Test_Repository","content_type":"yum"},{"id":14,"name":"Test + Modular Repository","label":"Test_Modular_Repository","content_type":"yum"},{"id":15,"name":"Test + Docker Repository","label":"Test_Docker_Repository","content_type":"docker"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]}]} ' headers: @@ -143,7 +142,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '1353' + - '1270' 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''; @@ -155,9 +154,9 @@ interactions: Foreman_current_location: - ; ANY Foreman_current_organization: - - 11; Test Organization + - 7; Test Organization Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=98 Strict-Transport-Security: @@ -187,22 +186,21 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/content_views/19/filters?search=name%3D%22Test+Content+View+Filter+-+modulemd%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/content_views/11/filters?search=name%3D%22Test+Content+View+Filter+-+modulemd%22&per_page=4294967296 response: body: string: '{"total":10,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Content View Filter - modulemd\"","sort":{"by":"name","order":"asc"},"results":[{"inclusion":false,"id":63,"name":"Test - Content View Filter - modulemd","description":null,"created_at":"2023-06-05 - 22:35:00 UTC","updated_at":"2023-06-05 22:35:00 UTC","content_view":{"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":true,"repository_ids":[31,32,33,34],"id":19,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":11,"organization":{"name":"Test - Organization","label":"Test_Organization","id":11},"created_at":"2023-06-05 - 22:34:51 UTC","updated_at":"2023-06-05 22:34:51 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":31,"name":"Test - Repository","label":"Test_Repository","content_type":"yum"},{"id":32,"name":"Test - Modular Repository","label":"Test_Modular_Repository","content_type":"yum"},{"id":33,"name":"Test - Docker Repository","label":"Test_Docker_Repository","content_type":"docker"},{"id":34,"name":"Test - Debian Repository","label":"Test_Debian_Repository","content_type":"deb"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]},"repositories":[],"type":"modulemd","rules":[{"content_view_filter_id":63,"module_stream_id":24,"id":4,"created_at":"2023-06-05 - 22:35:13 UTC","updated_at":"2023-06-05 22:35:13 UTC"},{"content_view_filter_id":63,"module_stream_id":11,"id":5,"created_at":"2023-06-05 - 22:35:14 UTC","updated_at":"2023-06-05 22:35:14 UTC"}]}]} + Content View Filter - modulemd\"","sort":{"by":"name","order":"asc"},"results":[{"inclusion":false,"id":59,"name":"Test + Content View Filter - modulemd","description":null,"created_at":"2024-07-24 + 14:54:44 UTC","updated_at":"2024-07-24 14:54:44 UTC","content_view":{"composite":false,"component_ids":[],"duplicate_repositories_to_publish":[],"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":[],"filtered":true,"repository_ids":[13,14,15],"id":11,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":7,"organization":{"name":"Test + Organization","label":"Test_Organization","id":7},"created_at":"2024-07-24 + 14:54:40 UTC","updated_at":"2024-07-24 14:54:40 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":13,"name":"Test + Repository","label":"Test_Repository","content_type":"yum"},{"id":14,"name":"Test + Modular Repository","label":"Test_Modular_Repository","content_type":"yum"},{"id":15,"name":"Test + Docker Repository","label":"Test_Docker_Repository","content_type":"docker"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]},"repositories":[],"type":"modulemd","rules":[{"content_view_filter_id":59,"module_stream_id":24,"id":10,"created_at":"2024-07-24 + 14:54:51 UTC","updated_at":"2024-07-24 14:54:51 UTC"},{"content_view_filter_id":59,"module_stream_id":11,"id":11,"created_at":"2024-07-24 + 14:54:51 UTC","updated_at":"2024-07-24 14:54:51 UTC"}]}]} ' headers: @@ -211,7 +209,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '1877' + - '1796' 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''; @@ -225,7 +223,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=97 Strict-Transport-Security: @@ -258,8 +256,8 @@ interactions: uri: https://foreman.example.org/katello/api/module_streams?search=name%3D%22389-directory-server%22%2Cstream%3D%22next%22%2Cversion%3D%22820220325123957%22%2Ccontext%3D%229edba152%22&per_page=4294967296 response: body: - string: '{"total":24,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"389-directory-server\",stream=\"next\",version=\"820220325123957\",context=\"9edba152\"","sort":{"by":"name","order":"asc"},"results":[{"id":24,"name":"389-directory-server","pulp_id":"/pulp/api/v3/content/rpm/modulemds/0e721ce9-6995-40e8-8086-a5a47b89af0b/","version":"820220325123957","context":"9edba152","stream":"next","arch":"x86_64","description":"389 - Directory Server is an LDAPv3 compliant server.","summary":null,"module_spec":"389-directory-server:next:820220325123957:9edba152:x86_64","uuid":"/pulp/api/v3/content/rpm/modulemds/0e721ce9-6995-40e8-8086-a5a47b89af0b/"}]} + string: '{"total":24,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"389-directory-server\",stream=\"next\",version=\"820220325123957\",context=\"9edba152\"","sort":{"by":"name","order":"asc"},"results":[{"id":24,"name":"389-directory-server","pulp_id":"/pulp/api/v3/content/rpm/modulemds/0190e45f-010d-74d7-a9a1-cd01d6fdc194/","version":"820220325123957","context":"9edba152","stream":"next","arch":"x86_64","description":"389 + Directory Server is an LDAPv3 compliant server.","summary":null,"module_spec":"389-directory-server:next:820220325123957:9edba152:x86_64","uuid":"/pulp/api/v3/content/rpm/modulemds/0190e45f-010d-74d7-a9a1-cd01d6fdc194/"}]} ' headers: @@ -282,7 +280,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=96 Strict-Transport-Security: @@ -315,9 +313,9 @@ interactions: uri: https://foreman.example.org/katello/api/module_streams/24 response: body: - string: ' {"id":24,"name":"389-directory-server","pulp_id":"/pulp/api/v3/content/rpm/modulemds/0e721ce9-6995-40e8-8086-a5a47b89af0b/","version":"820220325123957","context":"9edba152","stream":"next","arch":"x86_64","description":"389 - Directory Server is an LDAPv3 compliant server.","summary":null,"module_spec":"389-directory-server:next:820220325123957:9edba152:x86_64","uuid":"/pulp/api/v3/content/rpm/modulemds/0e721ce9-6995-40e8-8086-a5a47b89af0b/","artifacts":[{"id":411,"name":"389-ds-base-0:2.0.15-1.module_el8+14202+84d723da.src"},{"id":412,"name":"389-ds-base-0:2.0.15-1.module_el8+14202+84d723da.x86_64"},{"id":413,"name":"389-ds-base-debuginfo-0:2.0.15-1.module_el8+14202+84d723da.x86_64"},{"id":414,"name":"389-ds-base-debugsource-0:2.0.15-1.module_el8+14202+84d723da.x86_64"},{"id":415,"name":"389-ds-base-devel-0:2.0.15-1.module_el8+14202+84d723da.x86_64"},{"id":416,"name":"389-ds-base-libs-0:2.0.15-1.module_el8+14202+84d723da.x86_64"},{"id":417,"name":"389-ds-base-libs-debuginfo-0:2.0.15-1.module_el8+14202+84d723da.x86_64"},{"id":418,"name":"389-ds-base-snmp-0:2.0.15-1.module_el8+14202+84d723da.x86_64"},{"id":419,"name":"389-ds-base-snmp-debuginfo-0:2.0.15-1.module_el8+14202+84d723da.x86_64"},{"id":420,"name":"cockpit-389-ds-0:2.0.15-1.module_el8+14202+84d723da.noarch"},{"id":421,"name":"python3-lib389-0:2.0.15-1.module_el8+14202+84d723da.noarch"}],"profiles":[{"id":50,"name":"default","rpms":[{"id":91,"name":"389-ds-base"},{"id":92,"name":"cockpit-389-ds"}]},{"id":51,"name":"minimal","rpms":[{"id":93,"name":"389-ds-base"}]}],"repositories":[{"id":32,"name":"Test - Modular Repository","product_id":10,"product_name":"Test Product"}]} + string: ' {"id":24,"name":"389-directory-server","pulp_id":"/pulp/api/v3/content/rpm/modulemds/0190e45f-010d-74d7-a9a1-cd01d6fdc194/","version":"820220325123957","context":"9edba152","stream":"next","arch":"x86_64","description":"389 + Directory Server is an LDAPv3 compliant server.","summary":null,"module_spec":"389-directory-server:next:820220325123957:9edba152:x86_64","uuid":"/pulp/api/v3/content/rpm/modulemds/0190e45f-010d-74d7-a9a1-cd01d6fdc194/","artifacts":[{"id":411,"name":"389-ds-base-0:2.0.15-1.module_el8+14202+84d723da.src"},{"id":412,"name":"389-ds-base-0:2.0.15-1.module_el8+14202+84d723da.x86_64"},{"id":413,"name":"389-ds-base-debuginfo-0:2.0.15-1.module_el8+14202+84d723da.x86_64"},{"id":414,"name":"389-ds-base-debugsource-0:2.0.15-1.module_el8+14202+84d723da.x86_64"},{"id":415,"name":"389-ds-base-devel-0:2.0.15-1.module_el8+14202+84d723da.x86_64"},{"id":416,"name":"389-ds-base-libs-0:2.0.15-1.module_el8+14202+84d723da.x86_64"},{"id":417,"name":"389-ds-base-libs-debuginfo-0:2.0.15-1.module_el8+14202+84d723da.x86_64"},{"id":418,"name":"389-ds-base-snmp-0:2.0.15-1.module_el8+14202+84d723da.x86_64"},{"id":419,"name":"389-ds-base-snmp-debuginfo-0:2.0.15-1.module_el8+14202+84d723da.x86_64"},{"id":420,"name":"cockpit-389-ds-0:2.0.15-1.module_el8+14202+84d723da.noarch"},{"id":421,"name":"python3-lib389-0:2.0.15-1.module_el8+14202+84d723da.noarch"}],"profiles":[{"id":50,"name":"default","rpms":[{"id":91,"name":"389-ds-base"},{"id":92,"name":"cockpit-389-ds"}]},{"id":51,"name":"minimal","rpms":[{"id":93,"name":"389-ds-base"}]}],"repositories":[{"id":14,"name":"Test + Modular Repository","product_id":5,"product_name":"Test Product"}]} ' headers: @@ -326,7 +324,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '1655' + - '1654' 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''; @@ -340,7 +338,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=95 Strict-Transport-Security: @@ -370,11 +368,11 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/content_view_filters/63/rules?search=id%3D%224%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/content_view_filters/59/rules?search=id%3D%2210%22&per_page=4294967296 response: body: - string: '{"total":2,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"id=\"4\"","sort":{"by":"id","order":"asc"},"results":[{"content_view_filter_id":63,"module_stream_id":24,"id":4,"created_at":"2023-06-05 - 22:35:13 UTC","updated_at":"2023-06-05 22:35:13 UTC"}]} + string: '{"total":2,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"id=\"10\"","sort":{"by":"id","order":"asc"},"results":[{"content_view_filter_id":59,"module_stream_id":24,"id":10,"created_at":"2024-07-24 + 14:54:51 UTC","updated_at":"2024-07-24 14:54:51 UTC"}]} ' headers: @@ -383,7 +381,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '288' + - '290' 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''; @@ -397,7 +395,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=94 Strict-Transport-Security: @@ -427,11 +425,11 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/content_view_filters/63/rules/4 + uri: https://foreman.example.org/katello/api/content_view_filters/59/rules/10 response: body: - string: ' {"content_view_filter_id":63,"module_stream_id":24,"id":4,"created_at":"2023-06-05 - 22:35:13 UTC","updated_at":"2023-06-05 22:35:13 UTC"} + string: ' {"content_view_filter_id":59,"module_stream_id":24,"id":10,"created_at":"2024-07-24 + 14:54:51 UTC","updated_at":"2024-07-24 14:54:51 UTC","module_stream":{"module_stream_id":24,"module_stream_name":"389-directory-server","module_stream_stream":"next"}} ' headers: @@ -440,7 +438,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '139' + - '254' 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''; @@ -454,7 +452,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=93 Strict-Transport-Security: diff --git a/tests/test_playbooks/fixtures/content_view_filter_rule-14.yml b/tests/test_playbooks/fixtures/content_view_filter_rule-14.yml index b73bd3b30..2b72e7e89 100644 --- a/tests/test_playbooks/fixtures/content_view_filter_rule-14.yml +++ b/tests/test_playbooks/fixtures/content_view_filter_rule-14.yml @@ -14,14 +14,14 @@ interactions: uri: https://foreman.example.org/api/status response: body: - string: '{"result":"ok","status":200,"version":"3.7.0-rc2","api_version":2}' + string: '{"result":"ok","status":200,"version":"3.12.0-develop","api_version":2}' headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive Content-Length: - - '66' + - '71' 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''; @@ -35,7 +35,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=100 Strict-Transport-Security: @@ -70,8 +70,8 @@ interactions: body: 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-05 - 22:32:12 UTC\",\"updated_at\":\"2023-06-05 22:32:15 UTC\",\"id\":11,\"name\":\"Test + {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\":\"Test_Organization\",\"created_at\":\"2024-07-24 + 14:53:36 UTC\",\"updated_at\":\"2024-07-24 14:53:38 UTC\",\"id\":7,\"name\":\"Test Organization\",\"title\":\"Test Organization\",\"description\":\"A test organization\"}]\n}\n" headers: Cache-Control: @@ -79,7 +79,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '389' + - '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''; @@ -93,7 +93,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=99 Strict-Transport-Security: @@ -123,18 +123,17 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/organizations/11/content_views?search=name%3D%22Test+Content+View%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/organizations/7/content_views?search=name%3D%22Test+Content+View%22&per_page=4294967296 response: body: string: '{"total":2,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Content View\"","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":true,"repository_ids":[31,32,33,34],"id":19,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":11,"organization":{"name":"Test - Organization","label":"Test_Organization","id":11},"created_at":"2023-06-05 - 22:34:51 UTC","updated_at":"2023-06-05 22:34:51 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":31,"name":"Test - Repository","label":"Test_Repository","content_type":"yum"},{"id":32,"name":"Test - Modular Repository","label":"Test_Modular_Repository","content_type":"yum"},{"id":33,"name":"Test - Docker Repository","label":"Test_Docker_Repository","content_type":"docker"},{"id":34,"name":"Test - Debian Repository","label":"Test_Debian_Repository","content_type":"deb"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]}]} + Content View\"","sort":{"by":"name","order":"asc"},"results":[{"composite":false,"component_ids":[],"duplicate_repositories_to_publish":[],"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":[],"filtered":true,"repository_ids":[13,14,15],"id":11,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":7,"organization":{"name":"Test + Organization","label":"Test_Organization","id":7},"created_at":"2024-07-24 + 14:54:40 UTC","updated_at":"2024-07-24 14:54:40 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":13,"name":"Test + Repository","label":"Test_Repository","content_type":"yum"},{"id":14,"name":"Test + Modular Repository","label":"Test_Modular_Repository","content_type":"yum"},{"id":15,"name":"Test + Docker Repository","label":"Test_Docker_Repository","content_type":"docker"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]}]} ' headers: @@ -143,7 +142,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '1353' + - '1270' 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''; @@ -155,9 +154,9 @@ interactions: Foreman_current_location: - ; ANY Foreman_current_organization: - - 11; Test Organization + - 7; Test Organization Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=98 Strict-Transport-Security: @@ -187,22 +186,21 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/content_views/19/filters?search=name%3D%22Test+Content+View+Filter+-+modulemd%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/content_views/11/filters?search=name%3D%22Test+Content+View+Filter+-+modulemd%22&per_page=4294967296 response: body: string: '{"total":10,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Content View Filter - modulemd\"","sort":{"by":"name","order":"asc"},"results":[{"inclusion":false,"id":63,"name":"Test - Content View Filter - modulemd","description":null,"created_at":"2023-06-05 - 22:35:00 UTC","updated_at":"2023-06-05 22:35:00 UTC","content_view":{"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":true,"repository_ids":[31,32,33,34],"id":19,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":11,"organization":{"name":"Test - Organization","label":"Test_Organization","id":11},"created_at":"2023-06-05 - 22:34:51 UTC","updated_at":"2023-06-05 22:34:51 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":31,"name":"Test - Repository","label":"Test_Repository","content_type":"yum"},{"id":32,"name":"Test - Modular Repository","label":"Test_Modular_Repository","content_type":"yum"},{"id":33,"name":"Test - Docker Repository","label":"Test_Docker_Repository","content_type":"docker"},{"id":34,"name":"Test - Debian Repository","label":"Test_Debian_Repository","content_type":"deb"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]},"repositories":[],"type":"modulemd","rules":[{"content_view_filter_id":63,"module_stream_id":24,"id":4,"created_at":"2023-06-05 - 22:35:13 UTC","updated_at":"2023-06-05 22:35:13 UTC"},{"content_view_filter_id":63,"module_stream_id":11,"id":5,"created_at":"2023-06-05 - 22:35:14 UTC","updated_at":"2023-06-05 22:35:14 UTC"}]}]} + Content View Filter - modulemd\"","sort":{"by":"name","order":"asc"},"results":[{"inclusion":false,"id":59,"name":"Test + Content View Filter - modulemd","description":null,"created_at":"2024-07-24 + 14:54:44 UTC","updated_at":"2024-07-24 14:54:44 UTC","content_view":{"composite":false,"component_ids":[],"duplicate_repositories_to_publish":[],"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":[],"filtered":true,"repository_ids":[13,14,15],"id":11,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":7,"organization":{"name":"Test + Organization","label":"Test_Organization","id":7},"created_at":"2024-07-24 + 14:54:40 UTC","updated_at":"2024-07-24 14:54:40 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":13,"name":"Test + Repository","label":"Test_Repository","content_type":"yum"},{"id":14,"name":"Test + Modular Repository","label":"Test_Modular_Repository","content_type":"yum"},{"id":15,"name":"Test + Docker Repository","label":"Test_Docker_Repository","content_type":"docker"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]},"repositories":[],"type":"modulemd","rules":[{"content_view_filter_id":59,"module_stream_id":24,"id":10,"created_at":"2024-07-24 + 14:54:51 UTC","updated_at":"2024-07-24 14:54:51 UTC"},{"content_view_filter_id":59,"module_stream_id":11,"id":11,"created_at":"2024-07-24 + 14:54:51 UTC","updated_at":"2024-07-24 14:54:51 UTC"}]}]} ' headers: @@ -211,7 +209,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '1877' + - '1796' 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''; @@ -225,7 +223,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=97 Strict-Transport-Security: @@ -258,8 +256,8 @@ interactions: uri: https://foreman.example.org/katello/api/module_streams?search=name%3D%22389-directory-server%22%2Cstream%3D%22next%22%2Cversion%3D%22820220325123957%22%2Ccontext%3D%229edba152%22&per_page=4294967296 response: body: - string: '{"total":24,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"389-directory-server\",stream=\"next\",version=\"820220325123957\",context=\"9edba152\"","sort":{"by":"name","order":"asc"},"results":[{"id":24,"name":"389-directory-server","pulp_id":"/pulp/api/v3/content/rpm/modulemds/0e721ce9-6995-40e8-8086-a5a47b89af0b/","version":"820220325123957","context":"9edba152","stream":"next","arch":"x86_64","description":"389 - Directory Server is an LDAPv3 compliant server.","summary":null,"module_spec":"389-directory-server:next:820220325123957:9edba152:x86_64","uuid":"/pulp/api/v3/content/rpm/modulemds/0e721ce9-6995-40e8-8086-a5a47b89af0b/"}]} + string: '{"total":24,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"389-directory-server\",stream=\"next\",version=\"820220325123957\",context=\"9edba152\"","sort":{"by":"name","order":"asc"},"results":[{"id":24,"name":"389-directory-server","pulp_id":"/pulp/api/v3/content/rpm/modulemds/0190e45f-010d-74d7-a9a1-cd01d6fdc194/","version":"820220325123957","context":"9edba152","stream":"next","arch":"x86_64","description":"389 + Directory Server is an LDAPv3 compliant server.","summary":null,"module_spec":"389-directory-server:next:820220325123957:9edba152:x86_64","uuid":"/pulp/api/v3/content/rpm/modulemds/0190e45f-010d-74d7-a9a1-cd01d6fdc194/"}]} ' headers: @@ -282,7 +280,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=96 Strict-Transport-Security: @@ -312,11 +310,11 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/content_view_filters/63/rules?search=id%3D%224%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/content_view_filters/59/rules?search=id%3D%2210%22&per_page=4294967296 response: body: - string: '{"total":2,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"id=\"4\"","sort":{"by":"id","order":"asc"},"results":[{"content_view_filter_id":63,"module_stream_id":24,"id":4,"created_at":"2023-06-05 - 22:35:13 UTC","updated_at":"2023-06-05 22:35:13 UTC"}]} + string: '{"total":2,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"id=\"10\"","sort":{"by":"id","order":"asc"},"results":[{"content_view_filter_id":59,"module_stream_id":24,"id":10,"created_at":"2024-07-24 + 14:54:51 UTC","updated_at":"2024-07-24 14:54:51 UTC"}]} ' headers: @@ -325,7 +323,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '288' + - '290' 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''; @@ -339,7 +337,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=95 Strict-Transport-Security: @@ -371,11 +369,11 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: DELETE - uri: https://foreman.example.org/katello/api/content_view_filters/63/rules/4 + uri: https://foreman.example.org/katello/api/content_view_filters/59/rules/10 response: body: - string: ' {"content_view_filter_id":63,"module_stream_id":24,"id":4,"created_at":"2023-06-05 - 22:35:13 UTC","updated_at":"2023-06-05 22:35:13 UTC"} + string: ' {"content_view_filter_id":59,"module_stream_id":24,"id":10,"created_at":"2024-07-24 + 14:54:51 UTC","updated_at":"2024-07-24 14:54:51 UTC","module_stream":{"module_stream_id":24,"module_stream_name":"389-directory-server","module_stream_stream":"next"}} ' headers: @@ -384,7 +382,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '139' + - '254' 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''; @@ -398,7 +396,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=94 Strict-Transport-Security: diff --git a/tests/test_playbooks/fixtures/content_view_filter_rule-15.yml b/tests/test_playbooks/fixtures/content_view_filter_rule-15.yml index db46e0ce2..74c7d264b 100644 --- a/tests/test_playbooks/fixtures/content_view_filter_rule-15.yml +++ b/tests/test_playbooks/fixtures/content_view_filter_rule-15.yml @@ -14,14 +14,14 @@ interactions: uri: https://foreman.example.org/api/status response: body: - string: '{"result":"ok","status":200,"version":"3.7.0-rc2","api_version":2}' + string: '{"result":"ok","status":200,"version":"3.12.0-develop","api_version":2}' headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive Content-Length: - - '66' + - '71' 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''; @@ -35,7 +35,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=100 Strict-Transport-Security: @@ -70,8 +70,8 @@ interactions: body: 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-05 - 22:32:12 UTC\",\"updated_at\":\"2023-06-05 22:32:15 UTC\",\"id\":11,\"name\":\"Test + {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\":\"Test_Organization\",\"created_at\":\"2024-07-24 + 14:53:36 UTC\",\"updated_at\":\"2024-07-24 14:53:38 UTC\",\"id\":7,\"name\":\"Test Organization\",\"title\":\"Test Organization\",\"description\":\"A test organization\"}]\n}\n" headers: Cache-Control: @@ -79,7 +79,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '389' + - '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''; @@ -93,7 +93,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=99 Strict-Transport-Security: @@ -123,18 +123,17 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/organizations/11/content_views?search=name%3D%22Test+Content+View%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/organizations/7/content_views?search=name%3D%22Test+Content+View%22&per_page=4294967296 response: body: string: '{"total":2,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Content View\"","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":true,"repository_ids":[31,32,33,34],"id":19,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":11,"organization":{"name":"Test - Organization","label":"Test_Organization","id":11},"created_at":"2023-06-05 - 22:34:51 UTC","updated_at":"2023-06-05 22:34:51 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":31,"name":"Test - Repository","label":"Test_Repository","content_type":"yum"},{"id":32,"name":"Test - Modular Repository","label":"Test_Modular_Repository","content_type":"yum"},{"id":33,"name":"Test - Docker Repository","label":"Test_Docker_Repository","content_type":"docker"},{"id":34,"name":"Test - Debian Repository","label":"Test_Debian_Repository","content_type":"deb"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]}]} + Content View\"","sort":{"by":"name","order":"asc"},"results":[{"composite":false,"component_ids":[],"duplicate_repositories_to_publish":[],"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":[],"filtered":true,"repository_ids":[13,14,15],"id":11,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":7,"organization":{"name":"Test + Organization","label":"Test_Organization","id":7},"created_at":"2024-07-24 + 14:54:40 UTC","updated_at":"2024-07-24 14:54:40 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":13,"name":"Test + Repository","label":"Test_Repository","content_type":"yum"},{"id":14,"name":"Test + Modular Repository","label":"Test_Modular_Repository","content_type":"yum"},{"id":15,"name":"Test + Docker Repository","label":"Test_Docker_Repository","content_type":"docker"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]}]} ' headers: @@ -143,7 +142,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '1353' + - '1270' 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''; @@ -155,9 +154,9 @@ interactions: Foreman_current_location: - ; ANY Foreman_current_organization: - - 11; Test Organization + - 7; Test Organization Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=98 Strict-Transport-Security: @@ -187,21 +186,20 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/content_views/19/filters?search=name%3D%22Test+Content+View+Filter+-+modulemd%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/content_views/11/filters?search=name%3D%22Test+Content+View+Filter+-+modulemd%22&per_page=4294967296 response: body: string: '{"total":10,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Content View Filter - modulemd\"","sort":{"by":"name","order":"asc"},"results":[{"inclusion":false,"id":63,"name":"Test - Content View Filter - modulemd","description":null,"created_at":"2023-06-05 - 22:35:00 UTC","updated_at":"2023-06-05 22:35:00 UTC","content_view":{"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":true,"repository_ids":[31,32,33,34],"id":19,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":11,"organization":{"name":"Test - Organization","label":"Test_Organization","id":11},"created_at":"2023-06-05 - 22:34:51 UTC","updated_at":"2023-06-05 22:34:51 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":31,"name":"Test - Repository","label":"Test_Repository","content_type":"yum"},{"id":32,"name":"Test - Modular Repository","label":"Test_Modular_Repository","content_type":"yum"},{"id":33,"name":"Test - Docker Repository","label":"Test_Docker_Repository","content_type":"docker"},{"id":34,"name":"Test - Debian Repository","label":"Test_Debian_Repository","content_type":"deb"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]},"repositories":[],"type":"modulemd","rules":[{"content_view_filter_id":63,"module_stream_id":11,"id":5,"created_at":"2023-06-05 - 22:35:14 UTC","updated_at":"2023-06-05 22:35:14 UTC"}]}]} + Content View Filter - modulemd\"","sort":{"by":"name","order":"asc"},"results":[{"inclusion":false,"id":59,"name":"Test + Content View Filter - modulemd","description":null,"created_at":"2024-07-24 + 14:54:44 UTC","updated_at":"2024-07-24 14:54:44 UTC","content_view":{"composite":false,"component_ids":[],"duplicate_repositories_to_publish":[],"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":[],"filtered":true,"repository_ids":[13,14,15],"id":11,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":7,"organization":{"name":"Test + Organization","label":"Test_Organization","id":7},"created_at":"2024-07-24 + 14:54:40 UTC","updated_at":"2024-07-24 14:54:40 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":13,"name":"Test + Repository","label":"Test_Repository","content_type":"yum"},{"id":14,"name":"Test + Modular Repository","label":"Test_Modular_Repository","content_type":"yum"},{"id":15,"name":"Test + Docker Repository","label":"Test_Docker_Repository","content_type":"docker"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]},"repositories":[],"type":"modulemd","rules":[{"content_view_filter_id":59,"module_stream_id":11,"id":11,"created_at":"2024-07-24 + 14:54:51 UTC","updated_at":"2024-07-24 14:54:51 UTC"}]}]} ' headers: @@ -210,7 +208,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '1740' + - '1658' 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''; @@ -224,7 +222,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=97 Strict-Transport-Security: @@ -257,8 +255,8 @@ interactions: uri: https://foreman.example.org/katello/api/module_streams?search=name%3D%22389-directory-server%22%2Cstream%3D%22next%22%2Cversion%3D%22820220325123957%22%2Ccontext%3D%229edba152%22&per_page=4294967296 response: body: - string: '{"total":24,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"389-directory-server\",stream=\"next\",version=\"820220325123957\",context=\"9edba152\"","sort":{"by":"name","order":"asc"},"results":[{"id":24,"name":"389-directory-server","pulp_id":"/pulp/api/v3/content/rpm/modulemds/0e721ce9-6995-40e8-8086-a5a47b89af0b/","version":"820220325123957","context":"9edba152","stream":"next","arch":"x86_64","description":"389 - Directory Server is an LDAPv3 compliant server.","summary":null,"module_spec":"389-directory-server:next:820220325123957:9edba152:x86_64","uuid":"/pulp/api/v3/content/rpm/modulemds/0e721ce9-6995-40e8-8086-a5a47b89af0b/"}]} + string: '{"total":24,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"389-directory-server\",stream=\"next\",version=\"820220325123957\",context=\"9edba152\"","sort":{"by":"name","order":"asc"},"results":[{"id":24,"name":"389-directory-server","pulp_id":"/pulp/api/v3/content/rpm/modulemds/0190e45f-010d-74d7-a9a1-cd01d6fdc194/","version":"820220325123957","context":"9edba152","stream":"next","arch":"x86_64","description":"389 + Directory Server is an LDAPv3 compliant server.","summary":null,"module_spec":"389-directory-server:next:820220325123957:9edba152:x86_64","uuid":"/pulp/api/v3/content/rpm/modulemds/0190e45f-010d-74d7-a9a1-cd01d6fdc194/"}]} ' headers: @@ -281,7 +279,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=96 Strict-Transport-Security: diff --git a/tests/test_playbooks/fixtures/content_view_filter_rule-16.yml b/tests/test_playbooks/fixtures/content_view_filter_rule-16.yml index 65c15a5a1..1c458592a 100644 --- a/tests/test_playbooks/fixtures/content_view_filter_rule-16.yml +++ b/tests/test_playbooks/fixtures/content_view_filter_rule-16.yml @@ -14,14 +14,14 @@ interactions: uri: https://foreman.example.org/api/status response: body: - string: '{"result":"ok","status":200,"version":"3.7.0-rc2","api_version":2}' + string: '{"result":"ok","status":200,"version":"3.12.0-develop","api_version":2}' headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive Content-Length: - - '66' + - '71' 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''; @@ -35,7 +35,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=100 Strict-Transport-Security: @@ -70,8 +70,8 @@ interactions: body: 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-05 - 22:32:12 UTC\",\"updated_at\":\"2023-06-05 22:32:15 UTC\",\"id\":11,\"name\":\"Test + {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\":\"Test_Organization\",\"created_at\":\"2024-07-24 + 14:53:36 UTC\",\"updated_at\":\"2024-07-24 14:53:38 UTC\",\"id\":7,\"name\":\"Test Organization\",\"title\":\"Test Organization\",\"description\":\"A test organization\"}]\n}\n" headers: Cache-Control: @@ -79,7 +79,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '389' + - '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''; @@ -93,7 +93,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=99 Strict-Transport-Security: @@ -123,18 +123,17 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/organizations/11/content_views?search=name%3D%22Test+Content+View%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/organizations/7/content_views?search=name%3D%22Test+Content+View%22&per_page=4294967296 response: body: string: '{"total":2,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Content View\"","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":true,"repository_ids":[31,32,33,34],"id":19,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":11,"organization":{"name":"Test - Organization","label":"Test_Organization","id":11},"created_at":"2023-06-05 - 22:34:51 UTC","updated_at":"2023-06-05 22:34:51 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":31,"name":"Test - Repository","label":"Test_Repository","content_type":"yum"},{"id":32,"name":"Test - Modular Repository","label":"Test_Modular_Repository","content_type":"yum"},{"id":33,"name":"Test - Docker Repository","label":"Test_Docker_Repository","content_type":"docker"},{"id":34,"name":"Test - Debian Repository","label":"Test_Debian_Repository","content_type":"deb"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]}]} + Content View\"","sort":{"by":"name","order":"asc"},"results":[{"composite":false,"component_ids":[],"duplicate_repositories_to_publish":[],"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":[],"filtered":true,"repository_ids":[13,14,15],"id":11,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":7,"organization":{"name":"Test + Organization","label":"Test_Organization","id":7},"created_at":"2024-07-24 + 14:54:40 UTC","updated_at":"2024-07-24 14:54:40 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":13,"name":"Test + Repository","label":"Test_Repository","content_type":"yum"},{"id":14,"name":"Test + Modular Repository","label":"Test_Modular_Repository","content_type":"yum"},{"id":15,"name":"Test + Docker Repository","label":"Test_Docker_Repository","content_type":"docker"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]}]} ' headers: @@ -143,7 +142,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '1353' + - '1270' 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''; @@ -155,9 +154,9 @@ interactions: Foreman_current_location: - ; ANY Foreman_current_organization: - - 11; Test Organization + - 7; Test Organization Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=98 Strict-Transport-Security: @@ -187,21 +186,20 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/content_views/19/filters?search=name%3D%22Test+Content+View+Filter+-+modulemd%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/content_views/11/filters?search=name%3D%22Test+Content+View+Filter+-+modulemd%22&per_page=4294967296 response: body: string: '{"total":10,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Content View Filter - modulemd\"","sort":{"by":"name","order":"asc"},"results":[{"inclusion":false,"id":63,"name":"Test - Content View Filter - modulemd","description":null,"created_at":"2023-06-05 - 22:35:00 UTC","updated_at":"2023-06-05 22:35:00 UTC","content_view":{"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":true,"repository_ids":[31,32,33,34],"id":19,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":11,"organization":{"name":"Test - Organization","label":"Test_Organization","id":11},"created_at":"2023-06-05 - 22:34:51 UTC","updated_at":"2023-06-05 22:34:51 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":31,"name":"Test - Repository","label":"Test_Repository","content_type":"yum"},{"id":32,"name":"Test - Modular Repository","label":"Test_Modular_Repository","content_type":"yum"},{"id":33,"name":"Test - Docker Repository","label":"Test_Docker_Repository","content_type":"docker"},{"id":34,"name":"Test - Debian Repository","label":"Test_Debian_Repository","content_type":"deb"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]},"repositories":[],"type":"modulemd","rules":[{"content_view_filter_id":63,"module_stream_id":11,"id":5,"created_at":"2023-06-05 - 22:35:14 UTC","updated_at":"2023-06-05 22:35:14 UTC"}]}]} + Content View Filter - modulemd\"","sort":{"by":"name","order":"asc"},"results":[{"inclusion":false,"id":59,"name":"Test + Content View Filter - modulemd","description":null,"created_at":"2024-07-24 + 14:54:44 UTC","updated_at":"2024-07-24 14:54:44 UTC","content_view":{"composite":false,"component_ids":[],"duplicate_repositories_to_publish":[],"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":[],"filtered":true,"repository_ids":[13,14,15],"id":11,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":7,"organization":{"name":"Test + Organization","label":"Test_Organization","id":7},"created_at":"2024-07-24 + 14:54:40 UTC","updated_at":"2024-07-24 14:54:40 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":13,"name":"Test + Repository","label":"Test_Repository","content_type":"yum"},{"id":14,"name":"Test + Modular Repository","label":"Test_Modular_Repository","content_type":"yum"},{"id":15,"name":"Test + Docker Repository","label":"Test_Docker_Repository","content_type":"docker"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]},"repositories":[],"type":"modulemd","rules":[{"content_view_filter_id":59,"module_stream_id":11,"id":11,"created_at":"2024-07-24 + 14:54:51 UTC","updated_at":"2024-07-24 14:54:51 UTC"}]}]} ' headers: @@ -210,7 +208,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '1740' + - '1658' 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''; @@ -224,7 +222,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=97 Strict-Transport-Security: @@ -257,8 +255,8 @@ interactions: uri: https://foreman.example.org/katello/api/module_streams?search=name%3D%22389-directory-server%22%2Cstream%3D%22next%22%2Cversion%3D%22820220325123957%22%2Ccontext%3D%229edba152%22&per_page=4294967296 response: body: - string: '{"total":24,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"389-directory-server\",stream=\"next\",version=\"820220325123957\",context=\"9edba152\"","sort":{"by":"name","order":"asc"},"results":[{"id":24,"name":"389-directory-server","pulp_id":"/pulp/api/v3/content/rpm/modulemds/0e721ce9-6995-40e8-8086-a5a47b89af0b/","version":"820220325123957","context":"9edba152","stream":"next","arch":"x86_64","description":"389 - Directory Server is an LDAPv3 compliant server.","summary":null,"module_spec":"389-directory-server:next:820220325123957:9edba152:x86_64","uuid":"/pulp/api/v3/content/rpm/modulemds/0e721ce9-6995-40e8-8086-a5a47b89af0b/"}]} + string: '{"total":24,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"389-directory-server\",stream=\"next\",version=\"820220325123957\",context=\"9edba152\"","sort":{"by":"name","order":"asc"},"results":[{"id":24,"name":"389-directory-server","pulp_id":"/pulp/api/v3/content/rpm/modulemds/0190e45f-010d-74d7-a9a1-cd01d6fdc194/","version":"820220325123957","context":"9edba152","stream":"next","arch":"x86_64","description":"389 + Directory Server is an LDAPv3 compliant server.","summary":null,"module_spec":"389-directory-server:next:820220325123957:9edba152:x86_64","uuid":"/pulp/api/v3/content/rpm/modulemds/0190e45f-010d-74d7-a9a1-cd01d6fdc194/"}]} ' headers: @@ -281,7 +279,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=96 Strict-Transport-Security: @@ -314,9 +312,9 @@ interactions: uri: https://foreman.example.org/katello/api/module_streams/24 response: body: - string: ' {"id":24,"name":"389-directory-server","pulp_id":"/pulp/api/v3/content/rpm/modulemds/0e721ce9-6995-40e8-8086-a5a47b89af0b/","version":"820220325123957","context":"9edba152","stream":"next","arch":"x86_64","description":"389 - Directory Server is an LDAPv3 compliant server.","summary":null,"module_spec":"389-directory-server:next:820220325123957:9edba152:x86_64","uuid":"/pulp/api/v3/content/rpm/modulemds/0e721ce9-6995-40e8-8086-a5a47b89af0b/","artifacts":[{"id":411,"name":"389-ds-base-0:2.0.15-1.module_el8+14202+84d723da.src"},{"id":412,"name":"389-ds-base-0:2.0.15-1.module_el8+14202+84d723da.x86_64"},{"id":413,"name":"389-ds-base-debuginfo-0:2.0.15-1.module_el8+14202+84d723da.x86_64"},{"id":414,"name":"389-ds-base-debugsource-0:2.0.15-1.module_el8+14202+84d723da.x86_64"},{"id":415,"name":"389-ds-base-devel-0:2.0.15-1.module_el8+14202+84d723da.x86_64"},{"id":416,"name":"389-ds-base-libs-0:2.0.15-1.module_el8+14202+84d723da.x86_64"},{"id":417,"name":"389-ds-base-libs-debuginfo-0:2.0.15-1.module_el8+14202+84d723da.x86_64"},{"id":418,"name":"389-ds-base-snmp-0:2.0.15-1.module_el8+14202+84d723da.x86_64"},{"id":419,"name":"389-ds-base-snmp-debuginfo-0:2.0.15-1.module_el8+14202+84d723da.x86_64"},{"id":420,"name":"cockpit-389-ds-0:2.0.15-1.module_el8+14202+84d723da.noarch"},{"id":421,"name":"python3-lib389-0:2.0.15-1.module_el8+14202+84d723da.noarch"}],"profiles":[{"id":50,"name":"default","rpms":[{"id":91,"name":"389-ds-base"},{"id":92,"name":"cockpit-389-ds"}]},{"id":51,"name":"minimal","rpms":[{"id":93,"name":"389-ds-base"}]}],"repositories":[{"id":32,"name":"Test - Modular Repository","product_id":10,"product_name":"Test Product"}]} + string: ' {"id":24,"name":"389-directory-server","pulp_id":"/pulp/api/v3/content/rpm/modulemds/0190e45f-010d-74d7-a9a1-cd01d6fdc194/","version":"820220325123957","context":"9edba152","stream":"next","arch":"x86_64","description":"389 + Directory Server is an LDAPv3 compliant server.","summary":null,"module_spec":"389-directory-server:next:820220325123957:9edba152:x86_64","uuid":"/pulp/api/v3/content/rpm/modulemds/0190e45f-010d-74d7-a9a1-cd01d6fdc194/","artifacts":[{"id":411,"name":"389-ds-base-0:2.0.15-1.module_el8+14202+84d723da.src"},{"id":412,"name":"389-ds-base-0:2.0.15-1.module_el8+14202+84d723da.x86_64"},{"id":413,"name":"389-ds-base-debuginfo-0:2.0.15-1.module_el8+14202+84d723da.x86_64"},{"id":414,"name":"389-ds-base-debugsource-0:2.0.15-1.module_el8+14202+84d723da.x86_64"},{"id":415,"name":"389-ds-base-devel-0:2.0.15-1.module_el8+14202+84d723da.x86_64"},{"id":416,"name":"389-ds-base-libs-0:2.0.15-1.module_el8+14202+84d723da.x86_64"},{"id":417,"name":"389-ds-base-libs-debuginfo-0:2.0.15-1.module_el8+14202+84d723da.x86_64"},{"id":418,"name":"389-ds-base-snmp-0:2.0.15-1.module_el8+14202+84d723da.x86_64"},{"id":419,"name":"389-ds-base-snmp-debuginfo-0:2.0.15-1.module_el8+14202+84d723da.x86_64"},{"id":420,"name":"cockpit-389-ds-0:2.0.15-1.module_el8+14202+84d723da.noarch"},{"id":421,"name":"python3-lib389-0:2.0.15-1.module_el8+14202+84d723da.noarch"}],"profiles":[{"id":50,"name":"default","rpms":[{"id":91,"name":"389-ds-base"},{"id":92,"name":"cockpit-389-ds"}]},{"id":51,"name":"minimal","rpms":[{"id":93,"name":"389-ds-base"}]}],"repositories":[{"id":14,"name":"Test + Modular Repository","product_id":5,"product_name":"Test Product"}]} ' headers: @@ -325,7 +323,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '1655' + - '1654' 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''; @@ -339,7 +337,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=95 Strict-Transport-Security: @@ -373,11 +371,11 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: POST - uri: https://foreman.example.org/katello/api/content_view_filters/63/rules + uri: https://foreman.example.org/katello/api/content_view_filters/59/rules response: body: - string: ' {"content_view_filter_id":63,"module_stream_id":24,"id":6,"created_at":"2023-06-05 - 22:35:19 UTC","updated_at":"2023-06-05 22:35:19 UTC"} + string: ' {"content_view_filter_id":59,"module_stream_id":24,"id":12,"created_at":"2024-07-24 + 14:54:53 UTC","updated_at":"2024-07-24 14:54:53 UTC","module_stream":{"module_stream_id":24,"module_stream_name":"389-directory-server","module_stream_stream":"next"}} ' headers: @@ -386,7 +384,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '139' + - '254' 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''; @@ -400,7 +398,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=94 Strict-Transport-Security: diff --git a/tests/test_playbooks/fixtures/content_view_filter_rule-17.yml b/tests/test_playbooks/fixtures/content_view_filter_rule-17.yml index 296471582..9c129894a 100644 --- a/tests/test_playbooks/fixtures/content_view_filter_rule-17.yml +++ b/tests/test_playbooks/fixtures/content_view_filter_rule-17.yml @@ -14,14 +14,14 @@ interactions: uri: https://foreman.example.org/api/status response: body: - string: '{"result":"ok","status":200,"version":"3.7.0-rc2","api_version":2}' + string: '{"result":"ok","status":200,"version":"3.12.0-develop","api_version":2}' headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive Content-Length: - - '66' + - '71' 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''; @@ -35,7 +35,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=100 Strict-Transport-Security: @@ -70,8 +70,8 @@ interactions: body: 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-05 - 22:32:12 UTC\",\"updated_at\":\"2023-06-05 22:32:15 UTC\",\"id\":11,\"name\":\"Test + {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\":\"Test_Organization\",\"created_at\":\"2024-07-24 + 14:53:36 UTC\",\"updated_at\":\"2024-07-24 14:53:38 UTC\",\"id\":7,\"name\":\"Test Organization\",\"title\":\"Test Organization\",\"description\":\"A test organization\"}]\n}\n" headers: Cache-Control: @@ -79,7 +79,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '389' + - '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''; @@ -93,7 +93,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=99 Strict-Transport-Security: @@ -123,18 +123,17 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/organizations/11/content_views?search=name%3D%22Test+Content+View%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/organizations/7/content_views?search=name%3D%22Test+Content+View%22&per_page=4294967296 response: body: string: '{"total":2,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Content View\"","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":true,"repository_ids":[31,32,33,34],"id":19,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":11,"organization":{"name":"Test - Organization","label":"Test_Organization","id":11},"created_at":"2023-06-05 - 22:34:51 UTC","updated_at":"2023-06-05 22:34:51 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":31,"name":"Test - Repository","label":"Test_Repository","content_type":"yum"},{"id":32,"name":"Test - Modular Repository","label":"Test_Modular_Repository","content_type":"yum"},{"id":33,"name":"Test - Docker Repository","label":"Test_Docker_Repository","content_type":"docker"},{"id":34,"name":"Test - Debian Repository","label":"Test_Debian_Repository","content_type":"deb"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]}]} + Content View\"","sort":{"by":"name","order":"asc"},"results":[{"composite":false,"component_ids":[],"duplicate_repositories_to_publish":[],"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":[],"filtered":true,"repository_ids":[13,14,15],"id":11,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":7,"organization":{"name":"Test + Organization","label":"Test_Organization","id":7},"created_at":"2024-07-24 + 14:54:40 UTC","updated_at":"2024-07-24 14:54:40 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":13,"name":"Test + Repository","label":"Test_Repository","content_type":"yum"},{"id":14,"name":"Test + Modular Repository","label":"Test_Modular_Repository","content_type":"yum"},{"id":15,"name":"Test + Docker Repository","label":"Test_Docker_Repository","content_type":"docker"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]}]} ' headers: @@ -143,7 +142,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '1353' + - '1270' 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''; @@ -155,9 +154,9 @@ interactions: Foreman_current_location: - ; ANY Foreman_current_organization: - - 11; Test Organization + - 7; Test Organization Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=98 Strict-Transport-Security: @@ -187,20 +186,21 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/content_views/19/filters?search=name%3D%22Test+Content+View+Filter+-+deb%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/content_views/11/filters?search=name%3D%22Test+Content+View+Filter+-+rpm%22&per_page=4294967296 response: body: string: '{"total":10,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Content View Filter - deb\"","sort":{"by":"name","order":"asc"},"results":[{"inclusion":false,"id":64,"name":"Test - Content View Filter - deb","description":null,"created_at":"2023-06-05 22:35:01 - UTC","updated_at":"2023-06-05 22:35:01 UTC","content_view":{"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":true,"repository_ids":[31,32,33,34],"id":19,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":11,"organization":{"name":"Test - Organization","label":"Test_Organization","id":11},"created_at":"2023-06-05 - 22:34:51 UTC","updated_at":"2023-06-05 22:34:51 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":31,"name":"Test - Repository","label":"Test_Repository","content_type":"yum"},{"id":32,"name":"Test - Modular Repository","label":"Test_Modular_Repository","content_type":"yum"},{"id":33,"name":"Test - Docker Repository","label":"Test_Docker_Repository","content_type":"docker"},{"id":34,"name":"Test - Debian Repository","label":"Test_Debian_Repository","content_type":"deb"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]},"repositories":[],"type":"deb","rules":[]}]} + Content View Filter - rpm\"","sort":{"by":"name","order":"asc"},"results":[{"inclusion":false,"id":54,"name":"Test + Content View Filter - rpm","description":null,"created_at":"2024-07-24 14:54:42 + UTC","updated_at":"2024-07-24 14:54:42 UTC","content_view":{"composite":false,"component_ids":[],"duplicate_repositories_to_publish":[],"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":[],"filtered":true,"repository_ids":[13,14,15],"id":11,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":7,"organization":{"name":"Test + Organization","label":"Test_Organization","id":7},"created_at":"2024-07-24 + 14:54:40 UTC","updated_at":"2024-07-24 14:54:40 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":13,"name":"Test + Repository","label":"Test_Repository","content_type":"yum"},{"id":14,"name":"Test + Modular Repository","label":"Test_Modular_Repository","content_type":"yum"},{"id":15,"name":"Test + Docker Repository","label":"Test_Docker_Repository","content_type":"docker"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]},"repositories":[],"type":"rpm","rules":[{"content_view_filter_id":54,"id":7,"name":"bear","created_at":"2024-07-24 + 14:54:45 UTC","updated_at":"2024-07-24 14:54:45 UTC"},{"content_view_filter_id":54,"id":8,"name":"camel","created_at":"2024-07-24 + 14:54:46 UTC","updated_at":"2024-07-24 14:54:46 UTC"}]}]} ' headers: @@ -209,7 +209,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '1589' + - '1764' 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''; @@ -223,7 +223,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=97 Strict-Transport-Security: @@ -253,10 +253,11 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/content_view_filters/64/rules?search=name%3D%22bear%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/content_view_filters/54/rules?search=name%3D%22bear%22&per_page=4294967296 response: body: - string: '{"total":0,"subtotal":0,"selectable":0,"page":1,"per_page":"4294967296","error":null,"search":"name=\"bear\"","sort":{"by":"id","order":"asc"},"results":[]} + string: '{"total":2,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"bear\"","sort":{"by":"id","order":"asc"},"results":[{"content_view_filter_id":54,"id":7,"name":"bear","created_at":"2024-07-24 + 14:54:45 UTC","updated_at":"2024-07-24 14:54:45 UTC"}]} ' headers: @@ -265,7 +266,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '157' + - '285' 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''; @@ -279,7 +280,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=96 Strict-Transport-Security: @@ -298,7 +299,7 @@ interactions: code: 200 message: OK - request: - body: '{"name": "bear"}' + body: null headers: Accept: - application/json;version=2 @@ -307,17 +308,15 @@ interactions: Connection: - keep-alive Content-Length: - - '16' - Content-Type: - - application/json + - '0' User-Agent: - apypie (https://github.com/Apipie/apypie) - method: POST - uri: https://foreman.example.org/katello/api/content_view_filters/64/rules + method: DELETE + uri: https://foreman.example.org/katello/api/content_view_filters/54/rules/7 response: body: - string: ' {"content_view_filter_id":64,"id":3,"name":"bear","created_at":"2023-06-05 - 22:35:20 UTC","updated_at":"2023-06-05 22:35:20 UTC"} + string: ' {"content_view_filter_id":54,"id":7,"name":"bear","created_at":"2024-07-24 + 14:54:45 UTC","updated_at":"2024-07-24 14:54:45 UTC"} ' headers: @@ -340,7 +339,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=95 Strict-Transport-Security: @@ -356,6 +355,6 @@ interactions: X-XSS-Protection: - 1; mode=block status: - code: 201 - message: Created + code: 200 + message: OK version: 1 diff --git a/tests/test_playbooks/fixtures/content_view_filter_rule-18.yml b/tests/test_playbooks/fixtures/content_view_filter_rule-18.yml index 9f54ae6d0..ed32cd907 100644 --- a/tests/test_playbooks/fixtures/content_view_filter_rule-18.yml +++ b/tests/test_playbooks/fixtures/content_view_filter_rule-18.yml @@ -14,14 +14,14 @@ interactions: uri: https://foreman.example.org/api/status response: body: - string: '{"result":"ok","status":200,"version":"3.7.0-rc2","api_version":2}' + string: '{"result":"ok","status":200,"version":"3.12.0-develop","api_version":2}' headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive Content-Length: - - '66' + - '71' 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''; @@ -35,7 +35,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=100 Strict-Transport-Security: @@ -70,8 +70,8 @@ interactions: body: 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-05 - 22:32:12 UTC\",\"updated_at\":\"2023-06-05 22:32:15 UTC\",\"id\":11,\"name\":\"Test + {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\":\"Test_Organization\",\"created_at\":\"2024-07-24 + 14:53:36 UTC\",\"updated_at\":\"2024-07-24 14:53:38 UTC\",\"id\":7,\"name\":\"Test Organization\",\"title\":\"Test Organization\",\"description\":\"A test organization\"}]\n}\n" headers: Cache-Control: @@ -79,7 +79,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '389' + - '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''; @@ -93,7 +93,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=99 Strict-Transport-Security: @@ -123,18 +123,17 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/organizations/11/content_views?search=name%3D%22Test+Content+View%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/organizations/7/content_views?search=name%3D%22Test+Content+View%22&per_page=4294967296 response: body: string: '{"total":2,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Content View\"","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":true,"repository_ids":[31,32,33,34],"id":19,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":11,"organization":{"name":"Test - Organization","label":"Test_Organization","id":11},"created_at":"2023-06-05 - 22:34:51 UTC","updated_at":"2023-06-05 22:34:51 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":31,"name":"Test - Repository","label":"Test_Repository","content_type":"yum"},{"id":32,"name":"Test - Modular Repository","label":"Test_Modular_Repository","content_type":"yum"},{"id":33,"name":"Test - Docker Repository","label":"Test_Docker_Repository","content_type":"docker"},{"id":34,"name":"Test - Debian Repository","label":"Test_Debian_Repository","content_type":"deb"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]}]} + Content View\"","sort":{"by":"name","order":"asc"},"results":[{"composite":false,"component_ids":[],"duplicate_repositories_to_publish":[],"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":[],"filtered":true,"repository_ids":[13,14,15],"id":11,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":7,"organization":{"name":"Test + Organization","label":"Test_Organization","id":7},"created_at":"2024-07-24 + 14:54:40 UTC","updated_at":"2024-07-24 14:54:40 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":13,"name":"Test + Repository","label":"Test_Repository","content_type":"yum"},{"id":14,"name":"Test + Modular Repository","label":"Test_Modular_Repository","content_type":"yum"},{"id":15,"name":"Test + Docker Repository","label":"Test_Docker_Repository","content_type":"docker"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]}]} ' headers: @@ -143,7 +142,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '1353' + - '1270' 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''; @@ -155,9 +154,9 @@ interactions: Foreman_current_location: - ; ANY Foreman_current_organization: - - 11; Test Organization + - 7; Test Organization Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=98 Strict-Transport-Security: @@ -187,21 +186,20 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/content_views/19/filters?search=name%3D%22Test+Content+View+Filter+-+deb%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/content_views/11/filters?search=name%3D%22Test+Content+View+Filter+-+rpm%22&per_page=4294967296 response: body: string: '{"total":10,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Content View Filter - deb\"","sort":{"by":"name","order":"asc"},"results":[{"inclusion":false,"id":64,"name":"Test - Content View Filter - deb","description":null,"created_at":"2023-06-05 22:35:01 - UTC","updated_at":"2023-06-05 22:35:01 UTC","content_view":{"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":true,"repository_ids":[31,32,33,34],"id":19,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":11,"organization":{"name":"Test - Organization","label":"Test_Organization","id":11},"created_at":"2023-06-05 - 22:34:51 UTC","updated_at":"2023-06-05 22:34:51 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":31,"name":"Test - Repository","label":"Test_Repository","content_type":"yum"},{"id":32,"name":"Test - Modular Repository","label":"Test_Modular_Repository","content_type":"yum"},{"id":33,"name":"Test - Docker Repository","label":"Test_Docker_Repository","content_type":"docker"},{"id":34,"name":"Test - Debian Repository","label":"Test_Debian_Repository","content_type":"deb"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]},"repositories":[],"type":"deb","rules":[{"content_view_filter_id":64,"id":3,"name":"bear","created_at":"2023-06-05 - 22:35:20 UTC","updated_at":"2023-06-05 22:35:20 UTC"}]}]} + Content View Filter - rpm\"","sort":{"by":"name","order":"asc"},"results":[{"inclusion":false,"id":54,"name":"Test + Content View Filter - rpm","description":null,"created_at":"2024-07-24 14:54:42 + UTC","updated_at":"2024-07-24 14:54:42 UTC","content_view":{"composite":false,"component_ids":[],"duplicate_repositories_to_publish":[],"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":[],"filtered":true,"repository_ids":[13,14,15],"id":11,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":7,"organization":{"name":"Test + Organization","label":"Test_Organization","id":7},"created_at":"2024-07-24 + 14:54:40 UTC","updated_at":"2024-07-24 14:54:40 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":13,"name":"Test + Repository","label":"Test_Repository","content_type":"yum"},{"id":14,"name":"Test + Modular Repository","label":"Test_Modular_Repository","content_type":"yum"},{"id":15,"name":"Test + Docker Repository","label":"Test_Docker_Repository","content_type":"docker"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]},"repositories":[],"type":"rpm","rules":[{"content_view_filter_id":54,"id":8,"name":"camel","created_at":"2024-07-24 + 14:54:46 UTC","updated_at":"2024-07-24 14:54:46 UTC"}]}]} ' headers: @@ -210,7 +208,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '1717' + - '1635' 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''; @@ -224,7 +222,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=97 Strict-Transport-Security: @@ -254,10 +252,11 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/content_view_filters/64/rules?search=name%3D%22camel%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/content_view_filters/54/rules?search=name%3D%22camel%22&per_page=4294967296 response: body: - string: '{"total":1,"subtotal":0,"selectable":0,"page":1,"per_page":"4294967296","error":null,"search":"name=\"camel\"","sort":{"by":"id","order":"asc"},"results":[]} + string: '{"total":1,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"camel\"","sort":{"by":"id","order":"asc"},"results":[{"content_view_filter_id":54,"id":8,"name":"camel","created_at":"2024-07-24 + 14:54:46 UTC","updated_at":"2024-07-24 14:54:46 UTC"}]} ' headers: @@ -266,7 +265,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '158' + - '287' 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''; @@ -280,7 +279,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=96 Strict-Transport-Security: @@ -299,7 +298,7 @@ interactions: code: 200 message: OK - request: - body: '{"name": "camel"}' + body: null headers: Accept: - application/json;version=2 @@ -308,17 +307,15 @@ interactions: Connection: - keep-alive Content-Length: - - '17' - Content-Type: - - application/json + - '0' User-Agent: - apypie (https://github.com/Apipie/apypie) - method: POST - uri: https://foreman.example.org/katello/api/content_view_filters/64/rules + method: DELETE + uri: https://foreman.example.org/katello/api/content_view_filters/54/rules/8 response: body: - string: ' {"content_view_filter_id":64,"id":4,"name":"camel","created_at":"2023-06-05 - 22:35:21 UTC","updated_at":"2023-06-05 22:35:21 UTC"} + string: ' {"content_view_filter_id":54,"id":8,"name":"camel","created_at":"2024-07-24 + 14:54:46 UTC","updated_at":"2024-07-24 14:54:46 UTC"} ' headers: @@ -341,7 +338,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=95 Strict-Transport-Security: @@ -357,6 +354,6 @@ interactions: X-XSS-Protection: - 1; mode=block status: - code: 201 - message: Created + code: 200 + message: OK version: 1 diff --git a/tests/test_playbooks/fixtures/content_view_filter_rule-19.yml b/tests/test_playbooks/fixtures/content_view_filter_rule-19.yml index daa2d34c8..7f047f936 100644 --- a/tests/test_playbooks/fixtures/content_view_filter_rule-19.yml +++ b/tests/test_playbooks/fixtures/content_view_filter_rule-19.yml @@ -14,14 +14,14 @@ interactions: uri: https://foreman.example.org/api/status response: body: - string: '{"result":"ok","status":200,"version":"3.7.0-rc2","api_version":2}' + string: '{"result":"ok","status":200,"version":"3.12.0-develop","api_version":2}' headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive Content-Length: - - '66' + - '71' 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''; @@ -35,7 +35,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=100 Strict-Transport-Security: @@ -70,8 +70,8 @@ interactions: body: 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-05 - 22:32:12 UTC\",\"updated_at\":\"2023-06-05 22:32:15 UTC\",\"id\":11,\"name\":\"Test + {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\":\"Test_Organization\",\"created_at\":\"2024-07-24 + 14:53:36 UTC\",\"updated_at\":\"2024-07-24 14:53:38 UTC\",\"id\":7,\"name\":\"Test Organization\",\"title\":\"Test Organization\",\"description\":\"A test organization\"}]\n}\n" headers: Cache-Control: @@ -79,7 +79,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '389' + - '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''; @@ -93,7 +93,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=99 Strict-Transport-Security: @@ -123,18 +123,17 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/organizations/11/content_views?search=name%3D%22Test+Content+View%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/organizations/7/content_views?search=name%3D%22Test+Content+View%22&per_page=4294967296 response: body: string: '{"total":2,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Content View\"","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":true,"repository_ids":[31,32,33,34],"id":19,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":11,"organization":{"name":"Test - Organization","label":"Test_Organization","id":11},"created_at":"2023-06-05 - 22:34:51 UTC","updated_at":"2023-06-05 22:34:51 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":31,"name":"Test - Repository","label":"Test_Repository","content_type":"yum"},{"id":32,"name":"Test - Modular Repository","label":"Test_Modular_Repository","content_type":"yum"},{"id":33,"name":"Test - Docker Repository","label":"Test_Docker_Repository","content_type":"docker"},{"id":34,"name":"Test - Debian Repository","label":"Test_Debian_Repository","content_type":"deb"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]}]} + Content View\"","sort":{"by":"name","order":"asc"},"results":[{"composite":false,"component_ids":[],"duplicate_repositories_to_publish":[],"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":[],"filtered":true,"repository_ids":[13,14,15],"id":11,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":7,"organization":{"name":"Test + Organization","label":"Test_Organization","id":7},"created_at":"2024-07-24 + 14:54:40 UTC","updated_at":"2024-07-24 14:54:40 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":13,"name":"Test + Repository","label":"Test_Repository","content_type":"yum"},{"id":14,"name":"Test + Modular Repository","label":"Test_Modular_Repository","content_type":"yum"},{"id":15,"name":"Test + Docker Repository","label":"Test_Docker_Repository","content_type":"docker"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]}]} ' headers: @@ -143,7 +142,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '1353' + - '1270' 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''; @@ -155,9 +154,9 @@ interactions: Foreman_current_location: - ; ANY Foreman_current_organization: - - 11; Test Organization + - 7; Test Organization Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=98 Strict-Transport-Security: @@ -187,22 +186,21 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/content_views/19/filters?search=name%3D%22Test+Content+View+Filter+-+deb%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/content_views/11/filters?search=name%3D%22Test+Content+View+Filter+-+package_group%22&per_page=4294967296 response: body: string: '{"total":10,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Content View Filter - deb\"","sort":{"by":"name","order":"asc"},"results":[{"inclusion":false,"id":64,"name":"Test - Content View Filter - deb","description":null,"created_at":"2023-06-05 22:35:01 - UTC","updated_at":"2023-06-05 22:35:01 UTC","content_view":{"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":true,"repository_ids":[31,32,33,34],"id":19,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":11,"organization":{"name":"Test - Organization","label":"Test_Organization","id":11},"created_at":"2023-06-05 - 22:34:51 UTC","updated_at":"2023-06-05 22:34:51 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":31,"name":"Test - Repository","label":"Test_Repository","content_type":"yum"},{"id":32,"name":"Test - Modular Repository","label":"Test_Modular_Repository","content_type":"yum"},{"id":33,"name":"Test - Docker Repository","label":"Test_Docker_Repository","content_type":"docker"},{"id":34,"name":"Test - Debian Repository","label":"Test_Debian_Repository","content_type":"deb"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]},"repositories":[],"type":"deb","rules":[{"content_view_filter_id":64,"id":3,"name":"bear","created_at":"2023-06-05 - 22:35:20 UTC","updated_at":"2023-06-05 22:35:20 UTC"},{"content_view_filter_id":64,"id":4,"name":"camel","created_at":"2023-06-05 - 22:35:21 UTC","updated_at":"2023-06-05 22:35:21 UTC"}]}]} + Content View Filter - package_group\"","sort":{"by":"name","order":"asc"},"results":[{"inclusion":false,"id":55,"name":"Test + Content View Filter - package_group","description":null,"created_at":"2024-07-24 + 14:54:42 UTC","updated_at":"2024-07-24 14:54:42 UTC","content_view":{"composite":false,"component_ids":[],"duplicate_repositories_to_publish":[],"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":[],"filtered":true,"repository_ids":[13,14,15],"id":11,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":7,"organization":{"name":"Test + Organization","label":"Test_Organization","id":7},"created_at":"2024-07-24 + 14:54:40 UTC","updated_at":"2024-07-24 14:54:40 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":13,"name":"Test + Repository","label":"Test_Repository","content_type":"yum"},{"id":14,"name":"Test + Modular Repository","label":"Test_Modular_Repository","content_type":"yum"},{"id":15,"name":"Test + Docker Repository","label":"Test_Docker_Repository","content_type":"docker"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]},"repositories":[],"type":"package_group","rules":[{"content_view_filter_id":55,"uuid":"/pulp/api/v3/content/rpm/packagegroups/0190e45e-fd99-76f9-872f-f31298c228c1/","id":7,"name":"birds","created_at":"2024-07-24 + 14:54:47 UTC","updated_at":"2024-07-24 14:54:47 UTC"},{"content_view_filter_id":55,"uuid":"/pulp/api/v3/content/rpm/packagegroups/0190e45e-fd9a-7fce-b8b1-2ddf3e619951/","id":8,"name":"mammals","created_at":"2024-07-24 + 14:54:47 UTC","updated_at":"2024-07-24 14:54:47 UTC"}]}]} ' headers: @@ -211,7 +209,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '1847' + - '1969' 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''; @@ -225,7 +223,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=97 Strict-Transport-Security: @@ -255,11 +253,11 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/content_view_filters/64/rules?search=name%3D%22bear%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/content_view_filters/55/rules?search=name%3D%22birds%22&per_page=4294967296 response: body: - string: '{"total":2,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"bear\"","sort":{"by":"id","order":"asc"},"results":[{"content_view_filter_id":64,"id":3,"name":"bear","created_at":"2023-06-05 - 22:35:20 UTC","updated_at":"2023-06-05 22:35:20 UTC"}]} + string: '{"total":2,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"birds\"","sort":{"by":"id","order":"asc"},"results":[{"content_view_filter_id":55,"uuid":"/pulp/api/v3/content/rpm/packagegroups/0190e45e-fd99-76f9-872f-f31298c228c1/","id":7,"name":"birds","created_at":"2024-07-24 + 14:54:47 UTC","updated_at":"2024-07-24 14:54:47 UTC"}]} ' headers: @@ -268,7 +266,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '285' + - '373' 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''; @@ -282,7 +280,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=96 Strict-Transport-Security: @@ -312,11 +310,11 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/content_view_filters/64/rules/3 + uri: https://foreman.example.org/katello/api/package_groups?search=name%3D%22birds%22&per_page=4294967296 response: body: - string: ' {"content_view_filter_id":64,"id":3,"name":"bear","created_at":"2023-06-05 - 22:35:20 UTC","updated_at":"2023-06-05 22:35:20 UTC"} + string: '{"total":2,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"birds\"","sort":{"by":"name","order":"asc"},"results":[{"id":2,"name":"birds","pulp_id":"/pulp/api/v3/content/rpm/packagegroups/0190e45e-fd99-76f9-872f-f31298c228c1/","uuid":"/pulp/api/v3/content/rpm/packagegroups/0190e45e-fd99-76f9-872f-f31298c228c1/","description":"","repository":{"id":13,"name":"Test + Repository","product":{"id":5,"name":"Test Product"}}}]} ' headers: @@ -325,7 +323,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '131' + - '464' 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''; @@ -339,7 +337,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=95 Strict-Transport-Security: @@ -357,4 +355,63 @@ interactions: status: code: 200 message: OK +- request: + body: null + headers: + Accept: + - application/json;version=2 + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '0' + User-Agent: + - apypie (https://github.com/Apipie/apypie) + method: DELETE + uri: https://foreman.example.org/katello/api/content_view_filters/55/rules/7 + response: + body: + string: ' {"content_view_filter_id":55,"uuid":"/pulp/api/v3/content/rpm/packagegroups/0190e45e-fd99-76f9-872f-f31298c228c1/","id":7,"name":"birds","created_at":"2024-07-24 + 14:54:47 UTC","updated_at":"2024-07-24 14:54:47 UTC"} + + ' + headers: + Cache-Control: + - max-age=0, private, must-revalidate + Connection: + - Keep-Alive + Content-Length: + - '218' + 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.12.0-develop + 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/content_view_filter_rule-2.yml b/tests/test_playbooks/fixtures/content_view_filter_rule-2.yml index 8210b395c..a4ffa1131 100644 --- a/tests/test_playbooks/fixtures/content_view_filter_rule-2.yml +++ b/tests/test_playbooks/fixtures/content_view_filter_rule-2.yml @@ -14,14 +14,14 @@ interactions: uri: https://foreman.example.org/api/status response: body: - string: '{"result":"ok","status":200,"version":"3.7.0-rc2","api_version":2}' + string: '{"result":"ok","status":200,"version":"3.12.0-develop","api_version":2}' headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive Content-Length: - - '66' + - '71' 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''; @@ -35,7 +35,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=100 Strict-Transport-Security: @@ -70,8 +70,8 @@ interactions: body: 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-05 - 22:32:12 UTC\",\"updated_at\":\"2023-06-05 22:32:15 UTC\",\"id\":11,\"name\":\"Test + {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\":\"Test_Organization\",\"created_at\":\"2024-07-24 + 14:53:36 UTC\",\"updated_at\":\"2024-07-24 14:53:38 UTC\",\"id\":7,\"name\":\"Test Organization\",\"title\":\"Test Organization\",\"description\":\"A test organization\"}]\n}\n" headers: Cache-Control: @@ -79,7 +79,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '389' + - '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''; @@ -93,7 +93,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=99 Strict-Transport-Security: @@ -123,18 +123,17 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/organizations/11/content_views?search=name%3D%22Test+Content+View%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/organizations/7/content_views?search=name%3D%22Test+Content+View%22&per_page=4294967296 response: body: string: '{"total":2,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Content View\"","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":true,"repository_ids":[31,32,33,34],"id":19,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":11,"organization":{"name":"Test - Organization","label":"Test_Organization","id":11},"created_at":"2023-06-05 - 22:34:51 UTC","updated_at":"2023-06-05 22:34:51 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":31,"name":"Test - Repository","label":"Test_Repository","content_type":"yum"},{"id":32,"name":"Test - Modular Repository","label":"Test_Modular_Repository","content_type":"yum"},{"id":33,"name":"Test - Docker Repository","label":"Test_Docker_Repository","content_type":"docker"},{"id":34,"name":"Test - Debian Repository","label":"Test_Debian_Repository","content_type":"deb"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]}]} + Content View\"","sort":{"by":"name","order":"asc"},"results":[{"composite":false,"component_ids":[],"duplicate_repositories_to_publish":[],"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":[],"filtered":true,"repository_ids":[13,14,15],"id":11,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":7,"organization":{"name":"Test + Organization","label":"Test_Organization","id":7},"created_at":"2024-07-24 + 14:54:40 UTC","updated_at":"2024-07-24 14:54:40 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":13,"name":"Test + Repository","label":"Test_Repository","content_type":"yum"},{"id":14,"name":"Test + Modular Repository","label":"Test_Modular_Repository","content_type":"yum"},{"id":15,"name":"Test + Docker Repository","label":"Test_Docker_Repository","content_type":"docker"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]}]} ' headers: @@ -143,7 +142,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '1353' + - '1270' 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''; @@ -155,9 +154,9 @@ interactions: Foreman_current_location: - ; ANY Foreman_current_organization: - - 11; Test Organization + - 7; Test Organization Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=98 Strict-Transport-Security: @@ -187,22 +186,21 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/content_views/19/filters?search=name%3D%22Test+Content+View+Filter+-+rpm%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/content_views/11/filters?search=name%3D%22Test+Content+View+Filter+-+rpm%22&per_page=4294967296 response: body: string: '{"total":10,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Content View Filter - rpm\"","sort":{"by":"name","order":"asc"},"results":[{"inclusion":false,"id":58,"name":"Test - Content View Filter - rpm","description":null,"created_at":"2023-06-05 22:34:55 - UTC","updated_at":"2023-06-05 22:34:55 UTC","content_view":{"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":true,"repository_ids":[31,32,33,34],"id":19,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":11,"organization":{"name":"Test - Organization","label":"Test_Organization","id":11},"created_at":"2023-06-05 - 22:34:51 UTC","updated_at":"2023-06-05 22:34:51 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":31,"name":"Test - Repository","label":"Test_Repository","content_type":"yum"},{"id":32,"name":"Test - Modular Repository","label":"Test_Modular_Repository","content_type":"yum"},{"id":33,"name":"Test - Docker Repository","label":"Test_Docker_Repository","content_type":"docker"},{"id":34,"name":"Test - Debian Repository","label":"Test_Debian_Repository","content_type":"deb"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]},"repositories":[],"type":"rpm","rules":[{"content_view_filter_id":58,"id":7,"name":"bear","created_at":"2023-06-05 - 22:35:02 UTC","updated_at":"2023-06-05 22:35:02 UTC"},{"content_view_filter_id":58,"id":8,"name":"camel","created_at":"2023-06-05 - 22:35:03 UTC","updated_at":"2023-06-05 22:35:03 UTC"}]}]} + Content View Filter - rpm\"","sort":{"by":"name","order":"asc"},"results":[{"inclusion":false,"id":54,"name":"Test + Content View Filter - rpm","description":null,"created_at":"2024-07-24 14:54:42 + UTC","updated_at":"2024-07-24 14:54:42 UTC","content_view":{"composite":false,"component_ids":[],"duplicate_repositories_to_publish":[],"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":[],"filtered":true,"repository_ids":[13,14,15],"id":11,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":7,"organization":{"name":"Test + Organization","label":"Test_Organization","id":7},"created_at":"2024-07-24 + 14:54:40 UTC","updated_at":"2024-07-24 14:54:40 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":13,"name":"Test + Repository","label":"Test_Repository","content_type":"yum"},{"id":14,"name":"Test + Modular Repository","label":"Test_Modular_Repository","content_type":"yum"},{"id":15,"name":"Test + Docker Repository","label":"Test_Docker_Repository","content_type":"docker"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]},"repositories":[],"type":"rpm","rules":[{"content_view_filter_id":54,"id":7,"name":"bear","created_at":"2024-07-24 + 14:54:45 UTC","updated_at":"2024-07-24 14:54:45 UTC"},{"content_view_filter_id":54,"id":8,"name":"camel","created_at":"2024-07-24 + 14:54:46 UTC","updated_at":"2024-07-24 14:54:46 UTC"}]}]} ' headers: @@ -211,7 +209,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '1847' + - '1764' 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''; @@ -225,7 +223,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=97 Strict-Transport-Security: @@ -255,11 +253,11 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/content_view_filters/58/rules?search=name%3D%22bear%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/content_view_filters/54/rules?search=name%3D%22bear%22&per_page=4294967296 response: body: - string: '{"total":2,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"bear\"","sort":{"by":"id","order":"asc"},"results":[{"content_view_filter_id":58,"id":7,"name":"bear","created_at":"2023-06-05 - 22:35:02 UTC","updated_at":"2023-06-05 22:35:02 UTC"}]} + string: '{"total":2,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"bear\"","sort":{"by":"id","order":"asc"},"results":[{"content_view_filter_id":54,"id":7,"name":"bear","created_at":"2024-07-24 + 14:54:45 UTC","updated_at":"2024-07-24 14:54:45 UTC"}]} ' headers: @@ -282,7 +280,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=96 Strict-Transport-Security: @@ -312,11 +310,11 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/content_view_filters/58/rules/7 + uri: https://foreman.example.org/katello/api/content_view_filters/54/rules/7 response: body: - string: ' {"content_view_filter_id":58,"id":7,"name":"bear","created_at":"2023-06-05 - 22:35:02 UTC","updated_at":"2023-06-05 22:35:02 UTC"} + string: ' {"content_view_filter_id":54,"id":7,"name":"bear","created_at":"2024-07-24 + 14:54:45 UTC","updated_at":"2024-07-24 14:54:45 UTC"} ' headers: @@ -339,7 +337,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=95 Strict-Transport-Security: diff --git a/tests/test_playbooks/fixtures/content_view_filter_rule-20.yml b/tests/test_playbooks/fixtures/content_view_filter_rule-20.yml index d48f19e26..986d6e7a2 100644 --- a/tests/test_playbooks/fixtures/content_view_filter_rule-20.yml +++ b/tests/test_playbooks/fixtures/content_view_filter_rule-20.yml @@ -14,14 +14,14 @@ interactions: uri: https://foreman.example.org/api/status response: body: - string: '{"result":"ok","status":200,"version":"3.7.0-rc2","api_version":2}' + string: '{"result":"ok","status":200,"version":"3.12.0-develop","api_version":2}' headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive Content-Length: - - '66' + - '71' 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''; @@ -35,7 +35,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=100 Strict-Transport-Security: @@ -70,8 +70,8 @@ interactions: body: 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-05 - 22:32:12 UTC\",\"updated_at\":\"2023-06-05 22:32:15 UTC\",\"id\":11,\"name\":\"Test + {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\":\"Test_Organization\",\"created_at\":\"2024-07-24 + 14:53:36 UTC\",\"updated_at\":\"2024-07-24 14:53:38 UTC\",\"id\":7,\"name\":\"Test Organization\",\"title\":\"Test Organization\",\"description\":\"A test organization\"}]\n}\n" headers: Cache-Control: @@ -79,7 +79,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '389' + - '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''; @@ -93,7 +93,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=99 Strict-Transport-Security: @@ -123,18 +123,17 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/organizations/11/content_views?search=name%3D%22Test+Content+View%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/organizations/7/content_views?search=name%3D%22Test+Content+View%22&per_page=4294967296 response: body: string: '{"total":2,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Content View\"","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":true,"repository_ids":[31,32,33,34],"id":19,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":11,"organization":{"name":"Test - Organization","label":"Test_Organization","id":11},"created_at":"2023-06-05 - 22:34:51 UTC","updated_at":"2023-06-05 22:34:51 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":31,"name":"Test - Repository","label":"Test_Repository","content_type":"yum"},{"id":32,"name":"Test - Modular Repository","label":"Test_Modular_Repository","content_type":"yum"},{"id":33,"name":"Test - Docker Repository","label":"Test_Docker_Repository","content_type":"docker"},{"id":34,"name":"Test - Debian Repository","label":"Test_Debian_Repository","content_type":"deb"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]}]} + Content View\"","sort":{"by":"name","order":"asc"},"results":[{"composite":false,"component_ids":[],"duplicate_repositories_to_publish":[],"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":[],"filtered":true,"repository_ids":[13,14,15],"id":11,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":7,"organization":{"name":"Test + Organization","label":"Test_Organization","id":7},"created_at":"2024-07-24 + 14:54:40 UTC","updated_at":"2024-07-24 14:54:40 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":13,"name":"Test + Repository","label":"Test_Repository","content_type":"yum"},{"id":14,"name":"Test + Modular Repository","label":"Test_Modular_Repository","content_type":"yum"},{"id":15,"name":"Test + Docker Repository","label":"Test_Docker_Repository","content_type":"docker"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]}]} ' headers: @@ -143,7 +142,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '1353' + - '1270' 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''; @@ -155,9 +154,9 @@ interactions: Foreman_current_location: - ; ANY Foreman_current_organization: - - 11; Test Organization + - 7; Test Organization Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=98 Strict-Transport-Security: @@ -187,22 +186,20 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/content_views/19/filters?search=name%3D%22Test+Content+View+Filter+-+rpm%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/content_views/11/filters?search=name%3D%22Test+Content+View+Filter+-+package_group%22&per_page=4294967296 response: body: string: '{"total":10,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Content View Filter - rpm\"","sort":{"by":"name","order":"asc"},"results":[{"inclusion":false,"id":58,"name":"Test - Content View Filter - rpm","description":null,"created_at":"2023-06-05 22:34:55 - UTC","updated_at":"2023-06-05 22:34:55 UTC","content_view":{"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":true,"repository_ids":[31,32,33,34],"id":19,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":11,"organization":{"name":"Test - Organization","label":"Test_Organization","id":11},"created_at":"2023-06-05 - 22:34:51 UTC","updated_at":"2023-06-05 22:34:51 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":31,"name":"Test - Repository","label":"Test_Repository","content_type":"yum"},{"id":32,"name":"Test - Modular Repository","label":"Test_Modular_Repository","content_type":"yum"},{"id":33,"name":"Test - Docker Repository","label":"Test_Docker_Repository","content_type":"docker"},{"id":34,"name":"Test - Debian Repository","label":"Test_Debian_Repository","content_type":"deb"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]},"repositories":[],"type":"rpm","rules":[{"content_view_filter_id":58,"id":7,"name":"bear","created_at":"2023-06-05 - 22:35:02 UTC","updated_at":"2023-06-05 22:35:02 UTC"},{"content_view_filter_id":58,"id":8,"name":"camel","created_at":"2023-06-05 - 22:35:03 UTC","updated_at":"2023-06-05 22:35:03 UTC"}]}]} + Content View Filter - package_group\"","sort":{"by":"name","order":"asc"},"results":[{"inclusion":false,"id":55,"name":"Test + Content View Filter - package_group","description":null,"created_at":"2024-07-24 + 14:54:42 UTC","updated_at":"2024-07-24 14:54:42 UTC","content_view":{"composite":false,"component_ids":[],"duplicate_repositories_to_publish":[],"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":[],"filtered":true,"repository_ids":[13,14,15],"id":11,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":7,"organization":{"name":"Test + Organization","label":"Test_Organization","id":7},"created_at":"2024-07-24 + 14:54:40 UTC","updated_at":"2024-07-24 14:54:40 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":13,"name":"Test + Repository","label":"Test_Repository","content_type":"yum"},{"id":14,"name":"Test + Modular Repository","label":"Test_Modular_Repository","content_type":"yum"},{"id":15,"name":"Test + Docker Repository","label":"Test_Docker_Repository","content_type":"docker"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]},"repositories":[],"type":"package_group","rules":[{"content_view_filter_id":55,"uuid":"/pulp/api/v3/content/rpm/packagegroups/0190e45e-fd9a-7fce-b8b1-2ddf3e619951/","id":8,"name":"mammals","created_at":"2024-07-24 + 14:54:47 UTC","updated_at":"2024-07-24 14:54:47 UTC"}]}]} ' headers: @@ -211,7 +208,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '1847' + - '1753' 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''; @@ -225,7 +222,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=97 Strict-Transport-Security: @@ -255,11 +252,11 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/content_view_filters/58/rules?search=name%3D%22bear%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/content_view_filters/55/rules?search=name%3D%22mammals%22&per_page=4294967296 response: body: - string: '{"total":2,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"bear\"","sort":{"by":"id","order":"asc"},"results":[{"content_view_filter_id":58,"id":7,"name":"bear","created_at":"2023-06-05 - 22:35:02 UTC","updated_at":"2023-06-05 22:35:02 UTC"}]} + string: '{"total":1,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"mammals\"","sort":{"by":"id","order":"asc"},"results":[{"content_view_filter_id":55,"uuid":"/pulp/api/v3/content/rpm/packagegroups/0190e45e-fd9a-7fce-b8b1-2ddf3e619951/","id":8,"name":"mammals","created_at":"2024-07-24 + 14:54:47 UTC","updated_at":"2024-07-24 14:54:47 UTC"}]} ' headers: @@ -268,7 +265,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '285' + - '377' 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''; @@ -282,7 +279,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=96 Strict-Transport-Security: @@ -300,6 +297,63 @@ 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/package_groups?search=name%3D%22mammals%22&per_page=4294967296 + response: + body: + string: '{"total":2,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"mammals\"","sort":{"by":"name","order":"asc"},"results":[{"id":1,"name":"mammals","pulp_id":"/pulp/api/v3/content/rpm/packagegroups/0190e45e-fd9a-7fce-b8b1-2ddf3e619951/","uuid":"/pulp/api/v3/content/rpm/packagegroups/0190e45e-fd9a-7fce-b8b1-2ddf3e619951/","description":"","repository":{"id":13,"name":"Test + Repository","product":{"id":5,"name":"Test Product"}}}]} + + ' + headers: + Cache-Control: + - max-age=0, private, must-revalidate + Connection: + - Keep-Alive + Content-Length: + - '468' + 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.12.0-develop + 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: @@ -314,11 +368,11 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: DELETE - uri: https://foreman.example.org/katello/api/content_view_filters/58/rules/7 + uri: https://foreman.example.org/katello/api/content_view_filters/55/rules/8 response: body: - string: ' {"content_view_filter_id":58,"id":7,"name":"bear","created_at":"2023-06-05 - 22:35:02 UTC","updated_at":"2023-06-05 22:35:02 UTC"} + string: ' {"content_view_filter_id":55,"uuid":"/pulp/api/v3/content/rpm/packagegroups/0190e45e-fd9a-7fce-b8b1-2ddf3e619951/","id":8,"name":"mammals","created_at":"2024-07-24 + 14:54:47 UTC","updated_at":"2024-07-24 14:54:47 UTC"} ' headers: @@ -327,7 +381,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '131' + - '220' 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''; @@ -341,9 +395,9 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - - timeout=15, max=95 + - timeout=15, max=94 Strict-Transport-Security: - max-age=631139040; includeSubdomains X-Content-Type-Options: diff --git a/tests/test_playbooks/fixtures/content_view_filter_rule-21.yml b/tests/test_playbooks/fixtures/content_view_filter_rule-21.yml index 48d14bdae..2f7d8d2f7 100644 --- a/tests/test_playbooks/fixtures/content_view_filter_rule-21.yml +++ b/tests/test_playbooks/fixtures/content_view_filter_rule-21.yml @@ -14,14 +14,14 @@ interactions: uri: https://foreman.example.org/api/status response: body: - string: '{"result":"ok","status":200,"version":"3.7.0-rc2","api_version":2}' + string: '{"result":"ok","status":200,"version":"3.12.0-develop","api_version":2}' headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive Content-Length: - - '66' + - '71' 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''; @@ -35,7 +35,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=100 Strict-Transport-Security: @@ -70,8 +70,8 @@ interactions: body: 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-05 - 22:32:12 UTC\",\"updated_at\":\"2023-06-05 22:32:15 UTC\",\"id\":11,\"name\":\"Test + {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\":\"Test_Organization\",\"created_at\":\"2024-07-24 + 14:53:36 UTC\",\"updated_at\":\"2024-07-24 14:53:38 UTC\",\"id\":7,\"name\":\"Test Organization\",\"title\":\"Test Organization\",\"description\":\"A test organization\"}]\n}\n" headers: Cache-Control: @@ -79,7 +79,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '389' + - '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''; @@ -93,7 +93,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=99 Strict-Transport-Security: @@ -123,18 +123,17 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/organizations/11/content_views?search=name%3D%22Test+Content+View%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/organizations/7/content_views?search=name%3D%22Test+Content+View%22&per_page=4294967296 response: body: string: '{"total":2,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Content View\"","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":true,"repository_ids":[31,32,33,34],"id":19,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":11,"organization":{"name":"Test - Organization","label":"Test_Organization","id":11},"created_at":"2023-06-05 - 22:34:51 UTC","updated_at":"2023-06-05 22:34:51 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":31,"name":"Test - Repository","label":"Test_Repository","content_type":"yum"},{"id":32,"name":"Test - Modular Repository","label":"Test_Modular_Repository","content_type":"yum"},{"id":33,"name":"Test - Docker Repository","label":"Test_Docker_Repository","content_type":"docker"},{"id":34,"name":"Test - Debian Repository","label":"Test_Debian_Repository","content_type":"deb"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]}]} + Content View\"","sort":{"by":"name","order":"asc"},"results":[{"composite":false,"component_ids":[],"duplicate_repositories_to_publish":[],"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":[],"filtered":true,"repository_ids":[13,14,15],"id":11,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":7,"organization":{"name":"Test + Organization","label":"Test_Organization","id":7},"created_at":"2024-07-24 + 14:54:40 UTC","updated_at":"2024-07-24 14:54:40 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":13,"name":"Test + Repository","label":"Test_Repository","content_type":"yum"},{"id":14,"name":"Test + Modular Repository","label":"Test_Modular_Repository","content_type":"yum"},{"id":15,"name":"Test + Docker Repository","label":"Test_Docker_Repository","content_type":"docker"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]}]} ' headers: @@ -143,7 +142,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '1353' + - '1270' 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''; @@ -155,9 +154,9 @@ interactions: Foreman_current_location: - ; ANY Foreman_current_organization: - - 11; Test Organization + - 7; Test Organization Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=98 Strict-Transport-Security: @@ -187,21 +186,21 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/content_views/19/filters?search=name%3D%22Test+Content+View+Filter+-+rpm%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/content_views/11/filters?search=name%3D%22Test+Content+View+Filter+-+erratum_by_id%22&per_page=4294967296 response: body: string: '{"total":10,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Content View Filter - rpm\"","sort":{"by":"name","order":"asc"},"results":[{"inclusion":false,"id":58,"name":"Test - Content View Filter - rpm","description":null,"created_at":"2023-06-05 22:34:55 - UTC","updated_at":"2023-06-05 22:34:55 UTC","content_view":{"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":true,"repository_ids":[31,32,33,34],"id":19,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":11,"organization":{"name":"Test - Organization","label":"Test_Organization","id":11},"created_at":"2023-06-05 - 22:34:51 UTC","updated_at":"2023-06-05 22:34:51 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":31,"name":"Test - Repository","label":"Test_Repository","content_type":"yum"},{"id":32,"name":"Test - Modular Repository","label":"Test_Modular_Repository","content_type":"yum"},{"id":33,"name":"Test - Docker Repository","label":"Test_Docker_Repository","content_type":"docker"},{"id":34,"name":"Test - Debian Repository","label":"Test_Debian_Repository","content_type":"deb"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]},"repositories":[],"type":"rpm","rules":[{"content_view_filter_id":58,"id":8,"name":"camel","created_at":"2023-06-05 - 22:35:03 UTC","updated_at":"2023-06-05 22:35:03 UTC"}]}]} + Content View Filter - erratum_by_id\"","sort":{"by":"name","order":"asc"},"results":[{"inclusion":false,"id":56,"name":"Test + Content View Filter - erratum_by_id","description":null,"created_at":"2024-07-24 + 14:54:43 UTC","updated_at":"2024-07-24 14:54:43 UTC","content_view":{"composite":false,"component_ids":[],"duplicate_repositories_to_publish":[],"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":[],"filtered":true,"repository_ids":[13,14,15],"id":11,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":7,"organization":{"name":"Test + Organization","label":"Test_Organization","id":7},"created_at":"2024-07-24 + 14:54:40 UTC","updated_at":"2024-07-24 14:54:40 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":13,"name":"Test + Repository","label":"Test_Repository","content_type":"yum"},{"id":14,"name":"Test + Modular Repository","label":"Test_Modular_Repository","content_type":"yum"},{"id":15,"name":"Test + Docker Repository","label":"Test_Docker_Repository","content_type":"docker"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]},"repositories":[],"type":"erratum","rules":[{"content_view_filter_id":56,"errata_id":"RHEA-2012:0004","date_type":"updated","id":10,"created_at":"2024-07-24 + 14:54:48 UTC","updated_at":"2024-07-24 14:54:48 UTC"},{"content_view_filter_id":56,"errata_id":"RHEA-2012:0003","date_type":"updated","id":11,"created_at":"2024-07-24 + 14:54:48 UTC","updated_at":"2024-07-24 14:54:48 UTC"}]}]} ' headers: @@ -210,7 +209,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '1718' + - '1863' 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''; @@ -224,7 +223,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=97 Strict-Transport-Security: @@ -254,11 +253,11 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/content_view_filters/58/rules?search=name%3D%22camel%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/content_view_filters/56/rules?errata_id=RHEA-2012%3A0004&per_page=4294967296 response: body: - string: '{"total":1,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"camel\"","sort":{"by":"id","order":"asc"},"results":[{"content_view_filter_id":58,"id":8,"name":"camel","created_at":"2023-06-05 - 22:35:03 UTC","updated_at":"2023-06-05 22:35:03 UTC"}]} + string: '{"total":1,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":null,"sort":{"by":"id","order":"asc"},"results":[{"content_view_filter_id":56,"errata_id":"RHEA-2012:0004","date_type":"updated","id":10,"created_at":"2024-07-24 + 14:54:48 UTC","updated_at":"2024-07-24 14:54:48 UTC"}]} ' headers: @@ -267,7 +266,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '287' + - '312' 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''; @@ -281,7 +280,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=96 Strict-Transport-Security: @@ -313,11 +312,11 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: DELETE - uri: https://foreman.example.org/katello/api/content_view_filters/58/rules/8 + uri: https://foreman.example.org/katello/api/content_view_filters/56/rules/10 response: body: - string: ' {"content_view_filter_id":58,"id":8,"name":"camel","created_at":"2023-06-05 - 22:35:03 UTC","updated_at":"2023-06-05 22:35:03 UTC"} + string: ' {"content_view_filter_id":56,"errata_id":"RHEA-2012:0004","date_type":"updated","id":10,"created_at":"2024-07-24 + 14:54:48 UTC","updated_at":"2024-07-24 14:54:48 UTC"} ' headers: @@ -326,7 +325,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '132' + - '169' 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''; @@ -340,7 +339,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=95 Strict-Transport-Security: diff --git a/tests/test_playbooks/fixtures/content_view_filter_rule-22.yml b/tests/test_playbooks/fixtures/content_view_filter_rule-22.yml index b8803e75f..33eea0091 100644 --- a/tests/test_playbooks/fixtures/content_view_filter_rule-22.yml +++ b/tests/test_playbooks/fixtures/content_view_filter_rule-22.yml @@ -14,14 +14,14 @@ interactions: uri: https://foreman.example.org/api/status response: body: - string: '{"result":"ok","status":200,"version":"3.7.0-rc2","api_version":2}' + string: '{"result":"ok","status":200,"version":"3.12.0-develop","api_version":2}' headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive Content-Length: - - '66' + - '71' 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''; @@ -35,7 +35,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=100 Strict-Transport-Security: @@ -70,8 +70,8 @@ interactions: body: 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-05 - 22:32:12 UTC\",\"updated_at\":\"2023-06-05 22:32:15 UTC\",\"id\":11,\"name\":\"Test + {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\":\"Test_Organization\",\"created_at\":\"2024-07-24 + 14:53:36 UTC\",\"updated_at\":\"2024-07-24 14:53:38 UTC\",\"id\":7,\"name\":\"Test Organization\",\"title\":\"Test Organization\",\"description\":\"A test organization\"}]\n}\n" headers: Cache-Control: @@ -79,7 +79,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '389' + - '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''; @@ -93,7 +93,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=99 Strict-Transport-Security: @@ -123,18 +123,17 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/organizations/11/content_views?search=name%3D%22Test+Content+View%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/organizations/7/content_views?search=name%3D%22Test+Content+View%22&per_page=4294967296 response: body: string: '{"total":2,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Content View\"","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":true,"repository_ids":[31,32,33,34],"id":19,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":11,"organization":{"name":"Test - Organization","label":"Test_Organization","id":11},"created_at":"2023-06-05 - 22:34:51 UTC","updated_at":"2023-06-05 22:34:51 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":31,"name":"Test - Repository","label":"Test_Repository","content_type":"yum"},{"id":32,"name":"Test - Modular Repository","label":"Test_Modular_Repository","content_type":"yum"},{"id":33,"name":"Test - Docker Repository","label":"Test_Docker_Repository","content_type":"docker"},{"id":34,"name":"Test - Debian Repository","label":"Test_Debian_Repository","content_type":"deb"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]}]} + Content View\"","sort":{"by":"name","order":"asc"},"results":[{"composite":false,"component_ids":[],"duplicate_repositories_to_publish":[],"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":[],"filtered":true,"repository_ids":[13,14,15],"id":11,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":7,"organization":{"name":"Test + Organization","label":"Test_Organization","id":7},"created_at":"2024-07-24 + 14:54:40 UTC","updated_at":"2024-07-24 14:54:40 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":13,"name":"Test + Repository","label":"Test_Repository","content_type":"yum"},{"id":14,"name":"Test + Modular Repository","label":"Test_Modular_Repository","content_type":"yum"},{"id":15,"name":"Test + Docker Repository","label":"Test_Docker_Repository","content_type":"docker"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]}]} ' headers: @@ -143,7 +142,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '1353' + - '1270' 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''; @@ -155,9 +154,9 @@ interactions: Foreman_current_location: - ; ANY Foreman_current_organization: - - 11; Test Organization + - 7; Test Organization Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=98 Strict-Transport-Security: @@ -187,22 +186,20 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/content_views/19/filters?search=name%3D%22Test+Content+View+Filter+-+package_group%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/content_views/11/filters?search=name%3D%22Test+Content+View+Filter+-+erratum_by_id%22&per_page=4294967296 response: body: string: '{"total":10,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Content View Filter - package_group\"","sort":{"by":"name","order":"asc"},"results":[{"inclusion":false,"id":59,"name":"Test - Content View Filter - package_group","description":null,"created_at":"2023-06-05 - 22:34:56 UTC","updated_at":"2023-06-05 22:34:56 UTC","content_view":{"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":true,"repository_ids":[31,32,33,34],"id":19,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":11,"organization":{"name":"Test - Organization","label":"Test_Organization","id":11},"created_at":"2023-06-05 - 22:34:51 UTC","updated_at":"2023-06-05 22:34:51 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":31,"name":"Test - Repository","label":"Test_Repository","content_type":"yum"},{"id":32,"name":"Test - Modular Repository","label":"Test_Modular_Repository","content_type":"yum"},{"id":33,"name":"Test - Docker Repository","label":"Test_Docker_Repository","content_type":"docker"},{"id":34,"name":"Test - Debian Repository","label":"Test_Debian_Repository","content_type":"deb"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]},"repositories":[],"type":"package_group","rules":[{"content_view_filter_id":59,"uuid":"/pulp/api/v3/content/rpm/packagegroups/86fae512-5a7b-4f10-956c-df69a9218856/","id":6,"name":"birds","created_at":"2023-06-05 - 22:35:05 UTC","updated_at":"2023-06-05 22:35:05 UTC"},{"content_view_filter_id":59,"uuid":"/pulp/api/v3/content/rpm/packagegroups/07751227-7da7-4dc6-8da0-df1ec8fc5e05/","id":7,"name":"mammals","created_at":"2023-06-05 - 22:35:06 UTC","updated_at":"2023-06-05 22:35:06 UTC"}]}]} + Content View Filter - erratum_by_id\"","sort":{"by":"name","order":"asc"},"results":[{"inclusion":false,"id":56,"name":"Test + Content View Filter - erratum_by_id","description":null,"created_at":"2024-07-24 + 14:54:43 UTC","updated_at":"2024-07-24 14:54:43 UTC","content_view":{"composite":false,"component_ids":[],"duplicate_repositories_to_publish":[],"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":[],"filtered":true,"repository_ids":[13,14,15],"id":11,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":7,"organization":{"name":"Test + Organization","label":"Test_Organization","id":7},"created_at":"2024-07-24 + 14:54:40 UTC","updated_at":"2024-07-24 14:54:40 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":13,"name":"Test + Repository","label":"Test_Repository","content_type":"yum"},{"id":14,"name":"Test + Modular Repository","label":"Test_Modular_Repository","content_type":"yum"},{"id":15,"name":"Test + Docker Repository","label":"Test_Docker_Repository","content_type":"docker"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]},"repositories":[],"type":"erratum","rules":[{"content_view_filter_id":56,"errata_id":"RHEA-2012:0003","date_type":"updated","id":11,"created_at":"2024-07-24 + 14:54:48 UTC","updated_at":"2024-07-24 14:54:48 UTC"}]}]} ' headers: @@ -211,7 +208,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '2052' + - '1696' 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''; @@ -225,7 +222,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=97 Strict-Transport-Security: @@ -255,11 +252,11 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/content_view_filters/59/rules?search=name%3D%22birds%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/content_view_filters/56/rules?errata_id=RHEA-2012%3A0003&per_page=4294967296 response: body: - string: '{"total":2,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"birds\"","sort":{"by":"id","order":"asc"},"results":[{"content_view_filter_id":59,"uuid":"/pulp/api/v3/content/rpm/packagegroups/86fae512-5a7b-4f10-956c-df69a9218856/","id":6,"name":"birds","created_at":"2023-06-05 - 22:35:05 UTC","updated_at":"2023-06-05 22:35:05 UTC"}]} + string: '{"total":1,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":null,"sort":{"by":"id","order":"asc"},"results":[{"content_view_filter_id":56,"errata_id":"RHEA-2012:0003","date_type":"updated","id":11,"created_at":"2024-07-24 + 14:54:48 UTC","updated_at":"2024-07-24 14:54:48 UTC"}]} ' headers: @@ -268,7 +265,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '373' + - '312' 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''; @@ -282,7 +279,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=96 Strict-Transport-Security: @@ -300,63 +297,6 @@ 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/package_groups?search=name%3D%22birds%22&per_page=4294967296 - response: - body: - string: '{"total":2,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"birds\"","sort":{"by":"name","order":"asc"},"results":[{"id":2,"name":"birds","pulp_id":"/pulp/api/v3/content/rpm/packagegroups/86fae512-5a7b-4f10-956c-df69a9218856/","uuid":"/pulp/api/v3/content/rpm/packagegroups/86fae512-5a7b-4f10-956c-df69a9218856/","description":"","repository":{"id":31,"name":"Test - Repository","product":{"id":10,"name":"Test Product"}}}]} - - ' - headers: - Cache-Control: - - max-age=0, private, must-revalidate - Connection: - - Keep-Alive - Content-Length: - - '465' - 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-rc2 - 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: @@ -371,11 +311,11 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: DELETE - uri: https://foreman.example.org/katello/api/content_view_filters/59/rules/6 + uri: https://foreman.example.org/katello/api/content_view_filters/56/rules/11 response: body: - string: ' {"content_view_filter_id":59,"uuid":"/pulp/api/v3/content/rpm/packagegroups/86fae512-5a7b-4f10-956c-df69a9218856/","id":6,"name":"birds","created_at":"2023-06-05 - 22:35:05 UTC","updated_at":"2023-06-05 22:35:05 UTC"} + string: ' {"content_view_filter_id":56,"errata_id":"RHEA-2012:0003","date_type":"updated","id":11,"created_at":"2024-07-24 + 14:54:48 UTC","updated_at":"2024-07-24 14:54:48 UTC"} ' headers: @@ -384,7 +324,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '218' + - '169' 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''; @@ -398,9 +338,9 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - - timeout=15, max=94 + - timeout=15, max=95 Strict-Transport-Security: - max-age=631139040; includeSubdomains X-Content-Type-Options: diff --git a/tests/test_playbooks/fixtures/content_view_filter_rule-23.yml b/tests/test_playbooks/fixtures/content_view_filter_rule-23.yml index cce77cb10..d14efae01 100644 --- a/tests/test_playbooks/fixtures/content_view_filter_rule-23.yml +++ b/tests/test_playbooks/fixtures/content_view_filter_rule-23.yml @@ -14,14 +14,14 @@ interactions: uri: https://foreman.example.org/api/status response: body: - string: '{"result":"ok","status":200,"version":"3.7.0-rc2","api_version":2}' + string: '{"result":"ok","status":200,"version":"3.12.0-develop","api_version":2}' headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive Content-Length: - - '66' + - '71' 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''; @@ -35,7 +35,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=100 Strict-Transport-Security: @@ -70,8 +70,8 @@ interactions: body: 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-05 - 22:32:12 UTC\",\"updated_at\":\"2023-06-05 22:32:15 UTC\",\"id\":11,\"name\":\"Test + {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\":\"Test_Organization\",\"created_at\":\"2024-07-24 + 14:53:36 UTC\",\"updated_at\":\"2024-07-24 14:53:38 UTC\",\"id\":7,\"name\":\"Test Organization\",\"title\":\"Test Organization\",\"description\":\"A test organization\"}]\n}\n" headers: Cache-Control: @@ -79,7 +79,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '389' + - '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''; @@ -93,7 +93,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=99 Strict-Transport-Security: @@ -123,18 +123,17 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/organizations/11/content_views?search=name%3D%22Test+Content+View%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/organizations/7/content_views?search=name%3D%22Test+Content+View%22&per_page=4294967296 response: body: string: '{"total":2,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Content View\"","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":true,"repository_ids":[31,32,33,34],"id":19,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":11,"organization":{"name":"Test - Organization","label":"Test_Organization","id":11},"created_at":"2023-06-05 - 22:34:51 UTC","updated_at":"2023-06-05 22:34:51 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":31,"name":"Test - Repository","label":"Test_Repository","content_type":"yum"},{"id":32,"name":"Test - Modular Repository","label":"Test_Modular_Repository","content_type":"yum"},{"id":33,"name":"Test - Docker Repository","label":"Test_Docker_Repository","content_type":"docker"},{"id":34,"name":"Test - Debian Repository","label":"Test_Debian_Repository","content_type":"deb"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]}]} + Content View\"","sort":{"by":"name","order":"asc"},"results":[{"composite":false,"component_ids":[],"duplicate_repositories_to_publish":[],"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":[],"filtered":true,"repository_ids":[13,14,15],"id":11,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":7,"organization":{"name":"Test + Organization","label":"Test_Organization","id":7},"created_at":"2024-07-24 + 14:54:40 UTC","updated_at":"2024-07-24 14:54:40 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":13,"name":"Test + Repository","label":"Test_Repository","content_type":"yum"},{"id":14,"name":"Test + Modular Repository","label":"Test_Modular_Repository","content_type":"yum"},{"id":15,"name":"Test + Docker Repository","label":"Test_Docker_Repository","content_type":"docker"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]}]} ' headers: @@ -143,7 +142,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '1353' + - '1270' 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''; @@ -155,9 +154,9 @@ interactions: Foreman_current_location: - ; ANY Foreman_current_organization: - - 11; Test Organization + - 7; Test Organization Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=98 Strict-Transport-Security: @@ -187,21 +186,20 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/content_views/19/filters?search=name%3D%22Test+Content+View+Filter+-+package_group%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/content_views/11/filters?search=name%3D%22Test+Content+View+Filter+-+erratum_by_date%22&per_page=4294967296 response: body: string: '{"total":10,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Content View Filter - package_group\"","sort":{"by":"name","order":"asc"},"results":[{"inclusion":false,"id":59,"name":"Test - Content View Filter - package_group","description":null,"created_at":"2023-06-05 - 22:34:56 UTC","updated_at":"2023-06-05 22:34:56 UTC","content_view":{"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":true,"repository_ids":[31,32,33,34],"id":19,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":11,"organization":{"name":"Test - Organization","label":"Test_Organization","id":11},"created_at":"2023-06-05 - 22:34:51 UTC","updated_at":"2023-06-05 22:34:51 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":31,"name":"Test - Repository","label":"Test_Repository","content_type":"yum"},{"id":32,"name":"Test - Modular Repository","label":"Test_Modular_Repository","content_type":"yum"},{"id":33,"name":"Test - Docker Repository","label":"Test_Docker_Repository","content_type":"docker"},{"id":34,"name":"Test - Debian Repository","label":"Test_Debian_Repository","content_type":"deb"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]},"repositories":[],"type":"package_group","rules":[{"content_view_filter_id":59,"uuid":"/pulp/api/v3/content/rpm/packagegroups/07751227-7da7-4dc6-8da0-df1ec8fc5e05/","id":7,"name":"mammals","created_at":"2023-06-05 - 22:35:06 UTC","updated_at":"2023-06-05 22:35:06 UTC"}]}]} + Content View Filter - erratum_by_date\"","sort":{"by":"name","order":"asc"},"results":[{"inclusion":false,"id":57,"name":"Test + Content View Filter - erratum_by_date","description":null,"created_at":"2024-07-24 + 14:54:43 UTC","updated_at":"2024-07-24 14:54:43 UTC","content_view":{"composite":false,"component_ids":[],"duplicate_repositories_to_publish":[],"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":[],"filtered":true,"repository_ids":[13,14,15],"id":11,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":7,"organization":{"name":"Test + Organization","label":"Test_Organization","id":7},"created_at":"2024-07-24 + 14:54:40 UTC","updated_at":"2024-07-24 14:54:40 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":13,"name":"Test + Repository","label":"Test_Repository","content_type":"yum"},{"id":14,"name":"Test + Modular Repository","label":"Test_Modular_Repository","content_type":"yum"},{"id":15,"name":"Test + Docker Repository","label":"Test_Docker_Repository","content_type":"docker"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]},"repositories":[],"type":"erratum","rules":[{"content_view_filter_id":57,"start_date":"2017-01-03","end_date":"2019-01-03","types":["bugfix","enhancement","security"],"date_type":"updated","id":12,"created_at":"2024-07-24 + 14:54:49 UTC","updated_at":"2024-07-24 14:54:49 UTC"}]}]} ' headers: @@ -210,7 +208,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '1836' + - '1765' 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''; @@ -224,7 +222,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=97 Strict-Transport-Security: @@ -254,11 +252,11 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/content_view_filters/59/rules?search=name%3D%22mammals%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/content_view_filters/57/rules?per_page=4294967296 response: body: - string: '{"total":1,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"mammals\"","sort":{"by":"id","order":"asc"},"results":[{"content_view_filter_id":59,"uuid":"/pulp/api/v3/content/rpm/packagegroups/07751227-7da7-4dc6-8da0-df1ec8fc5e05/","id":7,"name":"mammals","created_at":"2023-06-05 - 22:35:06 UTC","updated_at":"2023-06-05 22:35:06 UTC"}]} + string: '{"total":1,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":null,"sort":{"by":"id","order":"asc"},"results":[{"content_view_filter_id":57,"start_date":"2017-01-03","end_date":"2019-01-03","types":["bugfix","enhancement","security"],"date_type":"updated","id":12,"created_at":"2024-07-24 + 14:54:49 UTC","updated_at":"2024-07-24 14:54:49 UTC"}]} ' headers: @@ -281,7 +279,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=96 Strict-Transport-Security: @@ -299,63 +297,6 @@ 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/package_groups?search=name%3D%22mammals%22&per_page=4294967296 - response: - body: - string: '{"total":2,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"mammals\"","sort":{"by":"name","order":"asc"},"results":[{"id":1,"name":"mammals","pulp_id":"/pulp/api/v3/content/rpm/packagegroups/07751227-7da7-4dc6-8da0-df1ec8fc5e05/","uuid":"/pulp/api/v3/content/rpm/packagegroups/07751227-7da7-4dc6-8da0-df1ec8fc5e05/","description":"","repository":{"id":31,"name":"Test - Repository","product":{"id":10,"name":"Test Product"}}}]} - - ' - headers: - Cache-Control: - - max-age=0, private, must-revalidate - Connection: - - Keep-Alive - Content-Length: - - '469' - 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-rc2 - 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: @@ -370,11 +311,11 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: DELETE - uri: https://foreman.example.org/katello/api/content_view_filters/59/rules/7 + uri: https://foreman.example.org/katello/api/content_view_filters/57/rules/12 response: body: - string: ' {"content_view_filter_id":59,"uuid":"/pulp/api/v3/content/rpm/packagegroups/07751227-7da7-4dc6-8da0-df1ec8fc5e05/","id":7,"name":"mammals","created_at":"2023-06-05 - 22:35:06 UTC","updated_at":"2023-06-05 22:35:06 UTC"} + string: ' {"content_view_filter_id":57,"start_date":"2017-01-03","end_date":"2019-01-03","types":["bugfix","enhancement","security"],"date_type":"updated","id":12,"created_at":"2024-07-24 + 14:54:49 UTC","updated_at":"2024-07-24 14:54:49 UTC"} ' headers: @@ -383,7 +324,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '220' + - '234' 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''; @@ -397,9 +338,9 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - - timeout=15, max=94 + - timeout=15, max=95 Strict-Transport-Security: - max-age=631139040; includeSubdomains X-Content-Type-Options: diff --git a/tests/test_playbooks/fixtures/content_view_filter_rule-24.yml b/tests/test_playbooks/fixtures/content_view_filter_rule-24.yml index a60fe1c3e..b6abe29db 100644 --- a/tests/test_playbooks/fixtures/content_view_filter_rule-24.yml +++ b/tests/test_playbooks/fixtures/content_view_filter_rule-24.yml @@ -14,14 +14,14 @@ interactions: uri: https://foreman.example.org/api/status response: body: - string: '{"result":"ok","status":200,"version":"3.7.0-rc2","api_version":2}' + string: '{"result":"ok","status":200,"version":"3.12.0-develop","api_version":2}' headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive Content-Length: - - '66' + - '71' 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''; @@ -35,7 +35,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=100 Strict-Transport-Security: @@ -70,8 +70,8 @@ interactions: body: 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-05 - 22:32:12 UTC\",\"updated_at\":\"2023-06-05 22:32:15 UTC\",\"id\":11,\"name\":\"Test + {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\":\"Test_Organization\",\"created_at\":\"2024-07-24 + 14:53:36 UTC\",\"updated_at\":\"2024-07-24 14:53:38 UTC\",\"id\":7,\"name\":\"Test Organization\",\"title\":\"Test Organization\",\"description\":\"A test organization\"}]\n}\n" headers: Cache-Control: @@ -79,7 +79,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '389' + - '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''; @@ -93,7 +93,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=99 Strict-Transport-Security: @@ -123,18 +123,17 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/organizations/11/content_views?search=name%3D%22Test+Content+View%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/organizations/7/content_views?search=name%3D%22Test+Content+View%22&per_page=4294967296 response: body: string: '{"total":2,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Content View\"","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":true,"repository_ids":[31,32,33,34],"id":19,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":11,"organization":{"name":"Test - Organization","label":"Test_Organization","id":11},"created_at":"2023-06-05 - 22:34:51 UTC","updated_at":"2023-06-05 22:34:51 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":31,"name":"Test - Repository","label":"Test_Repository","content_type":"yum"},{"id":32,"name":"Test - Modular Repository","label":"Test_Modular_Repository","content_type":"yum"},{"id":33,"name":"Test - Docker Repository","label":"Test_Docker_Repository","content_type":"docker"},{"id":34,"name":"Test - Debian Repository","label":"Test_Debian_Repository","content_type":"deb"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]}]} + Content View\"","sort":{"by":"name","order":"asc"},"results":[{"composite":false,"component_ids":[],"duplicate_repositories_to_publish":[],"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":[],"filtered":true,"repository_ids":[13,14,15],"id":11,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":7,"organization":{"name":"Test + Organization","label":"Test_Organization","id":7},"created_at":"2024-07-24 + 14:54:40 UTC","updated_at":"2024-07-24 14:54:40 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":13,"name":"Test + Repository","label":"Test_Repository","content_type":"yum"},{"id":14,"name":"Test + Modular Repository","label":"Test_Modular_Repository","content_type":"yum"},{"id":15,"name":"Test + Docker Repository","label":"Test_Docker_Repository","content_type":"docker"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]}]} ' headers: @@ -143,7 +142,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '1353' + - '1270' 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''; @@ -155,9 +154,9 @@ interactions: Foreman_current_location: - ; ANY Foreman_current_organization: - - 11; Test Organization + - 7; Test Organization Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=98 Strict-Transport-Security: @@ -187,22 +186,21 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/content_views/19/filters?search=name%3D%22Test+Content+View+Filter+-+erratum_by_id%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/content_views/11/filters?search=name%3D%22Test+Content+View+Filter+-+docker%22&per_page=4294967296 response: body: string: '{"total":10,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Content View Filter - erratum_by_id\"","sort":{"by":"name","order":"asc"},"results":[{"inclusion":false,"id":60,"name":"Test - Content View Filter - erratum_by_id","description":null,"created_at":"2023-06-05 - 22:34:57 UTC","updated_at":"2023-06-05 22:34:57 UTC","content_view":{"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":true,"repository_ids":[31,32,33,34],"id":19,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":11,"organization":{"name":"Test - Organization","label":"Test_Organization","id":11},"created_at":"2023-06-05 - 22:34:51 UTC","updated_at":"2023-06-05 22:34:51 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":31,"name":"Test - Repository","label":"Test_Repository","content_type":"yum"},{"id":32,"name":"Test - Modular Repository","label":"Test_Modular_Repository","content_type":"yum"},{"id":33,"name":"Test - Docker Repository","label":"Test_Docker_Repository","content_type":"docker"},{"id":34,"name":"Test - Debian Repository","label":"Test_Debian_Repository","content_type":"deb"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]},"repositories":[],"type":"erratum","rules":[{"content_view_filter_id":60,"errata_id":"RHEA-2012:0004","date_type":"updated","id":10,"created_at":"2023-06-05 - 22:35:07 UTC","updated_at":"2023-06-05 22:35:07 UTC"},{"content_view_filter_id":60,"errata_id":"RHEA-2012:0003","date_type":"updated","id":11,"created_at":"2023-06-05 - 22:35:08 UTC","updated_at":"2023-06-05 22:35:08 UTC"}]}]} + Content View Filter - docker\"","sort":{"by":"name","order":"asc"},"results":[{"inclusion":false,"id":58,"name":"Test + Content View Filter - docker","description":null,"created_at":"2024-07-24 + 14:54:44 UTC","updated_at":"2024-07-24 14:54:44 UTC","content_view":{"composite":false,"component_ids":[],"duplicate_repositories_to_publish":[],"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":[],"filtered":true,"repository_ids":[13,14,15],"id":11,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":7,"organization":{"name":"Test + Organization","label":"Test_Organization","id":7},"created_at":"2024-07-24 + 14:54:40 UTC","updated_at":"2024-07-24 14:54:40 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":13,"name":"Test + Repository","label":"Test_Repository","content_type":"yum"},{"id":14,"name":"Test + Modular Repository","label":"Test_Modular_Repository","content_type":"yum"},{"id":15,"name":"Test + Docker Repository","label":"Test_Docker_Repository","content_type":"docker"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]},"repositories":[],"type":"docker","rules":[{"content_view_filter_id":58,"id":7,"name":"8.7-929","created_at":"2024-07-24 + 14:54:50 UTC","updated_at":"2024-07-24 14:54:50 UTC"},{"content_view_filter_id":58,"id":8,"name":"8.6-990","created_at":"2024-07-24 + 14:54:50 UTC","updated_at":"2024-07-24 14:54:50 UTC"}]}]} ' headers: @@ -211,7 +209,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '1946' + - '1778' 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''; @@ -225,7 +223,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=97 Strict-Transport-Security: @@ -255,11 +253,11 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/content_view_filters/60/rules?errata_id=RHEA-2012%3A0004&per_page=4294967296 + uri: https://foreman.example.org/katello/api/content_view_filters/58/rules?search=name%3D%228.7-929%22&per_page=4294967296 response: body: - string: '{"total":1,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":null,"sort":{"by":"id","order":"asc"},"results":[{"content_view_filter_id":60,"errata_id":"RHEA-2012:0004","date_type":"updated","id":10,"created_at":"2023-06-05 - 22:35:07 UTC","updated_at":"2023-06-05 22:35:07 UTC"}]} + string: '{"total":2,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"8.7-929\"","sort":{"by":"id","order":"asc"},"results":[{"content_view_filter_id":58,"id":7,"name":"8.7-929","created_at":"2024-07-24 + 14:54:50 UTC","updated_at":"2024-07-24 14:54:50 UTC"}]} ' headers: @@ -268,7 +266,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '312' + - '291' 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''; @@ -282,7 +280,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=96 Strict-Transport-Security: @@ -314,11 +312,11 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: DELETE - uri: https://foreman.example.org/katello/api/content_view_filters/60/rules/10 + uri: https://foreman.example.org/katello/api/content_view_filters/58/rules/7 response: body: - string: ' {"content_view_filter_id":60,"errata_id":"RHEA-2012:0004","date_type":"updated","id":10,"created_at":"2023-06-05 - 22:35:07 UTC","updated_at":"2023-06-05 22:35:07 UTC"} + string: ' {"content_view_filter_id":58,"id":7,"name":"8.7-929","created_at":"2024-07-24 + 14:54:50 UTC","updated_at":"2024-07-24 14:54:50 UTC"} ' headers: @@ -327,7 +325,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '169' + - '134' 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''; @@ -341,7 +339,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=95 Strict-Transport-Security: diff --git a/tests/test_playbooks/fixtures/content_view_filter_rule-25.yml b/tests/test_playbooks/fixtures/content_view_filter_rule-25.yml index 515ed4239..61de15100 100644 --- a/tests/test_playbooks/fixtures/content_view_filter_rule-25.yml +++ b/tests/test_playbooks/fixtures/content_view_filter_rule-25.yml @@ -14,14 +14,14 @@ interactions: uri: https://foreman.example.org/api/status response: body: - string: '{"result":"ok","status":200,"version":"3.7.0-rc2","api_version":2}' + string: '{"result":"ok","status":200,"version":"3.12.0-develop","api_version":2}' headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive Content-Length: - - '66' + - '71' 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''; @@ -35,7 +35,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=100 Strict-Transport-Security: @@ -70,8 +70,8 @@ interactions: body: 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-05 - 22:32:12 UTC\",\"updated_at\":\"2023-06-05 22:32:15 UTC\",\"id\":11,\"name\":\"Test + {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\":\"Test_Organization\",\"created_at\":\"2024-07-24 + 14:53:36 UTC\",\"updated_at\":\"2024-07-24 14:53:38 UTC\",\"id\":7,\"name\":\"Test Organization\",\"title\":\"Test Organization\",\"description\":\"A test organization\"}]\n}\n" headers: Cache-Control: @@ -79,7 +79,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '389' + - '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''; @@ -93,7 +93,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=99 Strict-Transport-Security: @@ -123,18 +123,17 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/organizations/11/content_views?search=name%3D%22Test+Content+View%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/organizations/7/content_views?search=name%3D%22Test+Content+View%22&per_page=4294967296 response: body: string: '{"total":2,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Content View\"","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":true,"repository_ids":[31,32,33,34],"id":19,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":11,"organization":{"name":"Test - Organization","label":"Test_Organization","id":11},"created_at":"2023-06-05 - 22:34:51 UTC","updated_at":"2023-06-05 22:34:51 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":31,"name":"Test - Repository","label":"Test_Repository","content_type":"yum"},{"id":32,"name":"Test - Modular Repository","label":"Test_Modular_Repository","content_type":"yum"},{"id":33,"name":"Test - Docker Repository","label":"Test_Docker_Repository","content_type":"docker"},{"id":34,"name":"Test - Debian Repository","label":"Test_Debian_Repository","content_type":"deb"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]}]} + Content View\"","sort":{"by":"name","order":"asc"},"results":[{"composite":false,"component_ids":[],"duplicate_repositories_to_publish":[],"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":[],"filtered":true,"repository_ids":[13,14,15],"id":11,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":7,"organization":{"name":"Test + Organization","label":"Test_Organization","id":7},"created_at":"2024-07-24 + 14:54:40 UTC","updated_at":"2024-07-24 14:54:40 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":13,"name":"Test + Repository","label":"Test_Repository","content_type":"yum"},{"id":14,"name":"Test + Modular Repository","label":"Test_Modular_Repository","content_type":"yum"},{"id":15,"name":"Test + Docker Repository","label":"Test_Docker_Repository","content_type":"docker"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]}]} ' headers: @@ -143,7 +142,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '1353' + - '1270' 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''; @@ -155,9 +154,9 @@ interactions: Foreman_current_location: - ; ANY Foreman_current_organization: - - 11; Test Organization + - 7; Test Organization Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=98 Strict-Transport-Security: @@ -187,21 +186,20 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/content_views/19/filters?search=name%3D%22Test+Content+View+Filter+-+erratum_by_id%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/content_views/11/filters?search=name%3D%22Test+Content+View+Filter+-+docker%22&per_page=4294967296 response: body: string: '{"total":10,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Content View Filter - erratum_by_id\"","sort":{"by":"name","order":"asc"},"results":[{"inclusion":false,"id":60,"name":"Test - Content View Filter - erratum_by_id","description":null,"created_at":"2023-06-05 - 22:34:57 UTC","updated_at":"2023-06-05 22:34:57 UTC","content_view":{"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":true,"repository_ids":[31,32,33,34],"id":19,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":11,"organization":{"name":"Test - Organization","label":"Test_Organization","id":11},"created_at":"2023-06-05 - 22:34:51 UTC","updated_at":"2023-06-05 22:34:51 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":31,"name":"Test - Repository","label":"Test_Repository","content_type":"yum"},{"id":32,"name":"Test - Modular Repository","label":"Test_Modular_Repository","content_type":"yum"},{"id":33,"name":"Test - Docker Repository","label":"Test_Docker_Repository","content_type":"docker"},{"id":34,"name":"Test - Debian Repository","label":"Test_Debian_Repository","content_type":"deb"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]},"repositories":[],"type":"erratum","rules":[{"content_view_filter_id":60,"errata_id":"RHEA-2012:0003","date_type":"updated","id":11,"created_at":"2023-06-05 - 22:35:08 UTC","updated_at":"2023-06-05 22:35:08 UTC"}]}]} + Content View Filter - docker\"","sort":{"by":"name","order":"asc"},"results":[{"inclusion":false,"id":58,"name":"Test + Content View Filter - docker","description":null,"created_at":"2024-07-24 + 14:54:44 UTC","updated_at":"2024-07-24 14:54:44 UTC","content_view":{"composite":false,"component_ids":[],"duplicate_repositories_to_publish":[],"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":[],"filtered":true,"repository_ids":[13,14,15],"id":11,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":7,"organization":{"name":"Test + Organization","label":"Test_Organization","id":7},"created_at":"2024-07-24 + 14:54:40 UTC","updated_at":"2024-07-24 14:54:40 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":13,"name":"Test + Repository","label":"Test_Repository","content_type":"yum"},{"id":14,"name":"Test + Modular Repository","label":"Test_Modular_Repository","content_type":"yum"},{"id":15,"name":"Test + Docker Repository","label":"Test_Docker_Repository","content_type":"docker"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]},"repositories":[],"type":"docker","rules":[{"content_view_filter_id":58,"id":8,"name":"8.6-990","created_at":"2024-07-24 + 14:54:50 UTC","updated_at":"2024-07-24 14:54:50 UTC"}]}]} ' headers: @@ -210,7 +208,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '1779' + - '1646' 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''; @@ -224,7 +222,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=97 Strict-Transport-Security: @@ -254,11 +252,11 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/content_view_filters/60/rules?errata_id=RHEA-2012%3A0003&per_page=4294967296 + uri: https://foreman.example.org/katello/api/content_view_filters/58/rules?search=name%3D%228.6-990%22&per_page=4294967296 response: body: - string: '{"total":1,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":null,"sort":{"by":"id","order":"asc"},"results":[{"content_view_filter_id":60,"errata_id":"RHEA-2012:0003","date_type":"updated","id":11,"created_at":"2023-06-05 - 22:35:08 UTC","updated_at":"2023-06-05 22:35:08 UTC"}]} + string: '{"total":1,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"8.6-990\"","sort":{"by":"id","order":"asc"},"results":[{"content_view_filter_id":58,"id":8,"name":"8.6-990","created_at":"2024-07-24 + 14:54:50 UTC","updated_at":"2024-07-24 14:54:50 UTC"}]} ' headers: @@ -267,7 +265,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '312' + - '291' 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''; @@ -281,7 +279,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=96 Strict-Transport-Security: @@ -313,11 +311,11 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: DELETE - uri: https://foreman.example.org/katello/api/content_view_filters/60/rules/11 + uri: https://foreman.example.org/katello/api/content_view_filters/58/rules/8 response: body: - string: ' {"content_view_filter_id":60,"errata_id":"RHEA-2012:0003","date_type":"updated","id":11,"created_at":"2023-06-05 - 22:35:08 UTC","updated_at":"2023-06-05 22:35:08 UTC"} + string: ' {"content_view_filter_id":58,"id":8,"name":"8.6-990","created_at":"2024-07-24 + 14:54:50 UTC","updated_at":"2024-07-24 14:54:50 UTC"} ' headers: @@ -326,7 +324,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '169' + - '134' 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''; @@ -340,7 +338,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=95 Strict-Transport-Security: diff --git a/tests/test_playbooks/fixtures/content_view_filter_rule-26.yml b/tests/test_playbooks/fixtures/content_view_filter_rule-26.yml index 63a5fdc1f..7256108da 100644 --- a/tests/test_playbooks/fixtures/content_view_filter_rule-26.yml +++ b/tests/test_playbooks/fixtures/content_view_filter_rule-26.yml @@ -14,14 +14,14 @@ interactions: uri: https://foreman.example.org/api/status response: body: - string: '{"result":"ok","status":200,"version":"3.7.0-rc2","api_version":2}' + string: '{"result":"ok","status":200,"version":"3.12.0-develop","api_version":2}' headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive Content-Length: - - '66' + - '71' 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''; @@ -35,7 +35,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=100 Strict-Transport-Security: @@ -70,8 +70,8 @@ interactions: body: 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-05 - 22:32:12 UTC\",\"updated_at\":\"2023-06-05 22:32:15 UTC\",\"id\":11,\"name\":\"Test + {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\":\"Test_Organization\",\"created_at\":\"2024-07-24 + 14:53:36 UTC\",\"updated_at\":\"2024-07-24 14:53:38 UTC\",\"id\":7,\"name\":\"Test Organization\",\"title\":\"Test Organization\",\"description\":\"A test organization\"}]\n}\n" headers: Cache-Control: @@ -79,7 +79,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '389' + - '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''; @@ -93,7 +93,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=99 Strict-Transport-Security: @@ -123,18 +123,17 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/organizations/11/content_views?search=name%3D%22Test+Content+View%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/organizations/7/content_views?search=name%3D%22Test+Content+View%22&per_page=4294967296 response: body: string: '{"total":2,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Content View\"","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":true,"repository_ids":[31,32,33,34],"id":19,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":11,"organization":{"name":"Test - Organization","label":"Test_Organization","id":11},"created_at":"2023-06-05 - 22:34:51 UTC","updated_at":"2023-06-05 22:34:51 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":31,"name":"Test - Repository","label":"Test_Repository","content_type":"yum"},{"id":32,"name":"Test - Modular Repository","label":"Test_Modular_Repository","content_type":"yum"},{"id":33,"name":"Test - Docker Repository","label":"Test_Docker_Repository","content_type":"docker"},{"id":34,"name":"Test - Debian Repository","label":"Test_Debian_Repository","content_type":"deb"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]}]} + Content View\"","sort":{"by":"name","order":"asc"},"results":[{"composite":false,"component_ids":[],"duplicate_repositories_to_publish":[],"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":[],"filtered":true,"repository_ids":[13,14,15],"id":11,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":7,"organization":{"name":"Test + Organization","label":"Test_Organization","id":7},"created_at":"2024-07-24 + 14:54:40 UTC","updated_at":"2024-07-24 14:54:40 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":13,"name":"Test + Repository","label":"Test_Repository","content_type":"yum"},{"id":14,"name":"Test + Modular Repository","label":"Test_Modular_Repository","content_type":"yum"},{"id":15,"name":"Test + Docker Repository","label":"Test_Docker_Repository","content_type":"docker"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]}]} ' headers: @@ -143,7 +142,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '1353' + - '1270' 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''; @@ -155,9 +154,9 @@ interactions: Foreman_current_location: - ; ANY Foreman_current_organization: - - 11; Test Organization + - 7; Test Organization Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=98 Strict-Transport-Security: @@ -187,21 +186,21 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/content_views/19/filters?search=name%3D%22Test+Content+View+Filter+-+erratum_by_date%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/content_views/11/filters?search=name%3D%22Test+Content+View+Filter+-+modulemd%22&per_page=4294967296 response: body: string: '{"total":10,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Content View Filter - erratum_by_date\"","sort":{"by":"name","order":"asc"},"results":[{"inclusion":false,"id":61,"name":"Test - Content View Filter - erratum_by_date","description":null,"created_at":"2023-06-05 - 22:34:58 UTC","updated_at":"2023-06-05 22:34:58 UTC","content_view":{"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":true,"repository_ids":[31,32,33,34],"id":19,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":11,"organization":{"name":"Test - Organization","label":"Test_Organization","id":11},"created_at":"2023-06-05 - 22:34:51 UTC","updated_at":"2023-06-05 22:34:51 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":31,"name":"Test - Repository","label":"Test_Repository","content_type":"yum"},{"id":32,"name":"Test - Modular Repository","label":"Test_Modular_Repository","content_type":"yum"},{"id":33,"name":"Test - Docker Repository","label":"Test_Docker_Repository","content_type":"docker"},{"id":34,"name":"Test - Debian Repository","label":"Test_Debian_Repository","content_type":"deb"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]},"repositories":[],"type":"erratum","rules":[{"content_view_filter_id":61,"start_date":"2017-01-03","end_date":"2019-01-03","types":["bugfix","enhancement","security"],"date_type":"updated","id":12,"created_at":"2023-06-05 - 22:35:09 UTC","updated_at":"2023-06-05 22:35:10 UTC"}]}]} + Content View Filter - modulemd\"","sort":{"by":"name","order":"asc"},"results":[{"inclusion":false,"id":59,"name":"Test + Content View Filter - modulemd","description":null,"created_at":"2024-07-24 + 14:54:44 UTC","updated_at":"2024-07-24 14:54:44 UTC","content_view":{"composite":false,"component_ids":[],"duplicate_repositories_to_publish":[],"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":[],"filtered":true,"repository_ids":[13,14,15],"id":11,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":7,"organization":{"name":"Test + Organization","label":"Test_Organization","id":7},"created_at":"2024-07-24 + 14:54:40 UTC","updated_at":"2024-07-24 14:54:40 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":13,"name":"Test + Repository","label":"Test_Repository","content_type":"yum"},{"id":14,"name":"Test + Modular Repository","label":"Test_Modular_Repository","content_type":"yum"},{"id":15,"name":"Test + Docker Repository","label":"Test_Docker_Repository","content_type":"docker"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]},"repositories":[],"type":"modulemd","rules":[{"content_view_filter_id":59,"module_stream_id":11,"id":11,"created_at":"2024-07-24 + 14:54:51 UTC","updated_at":"2024-07-24 14:54:51 UTC"},{"content_view_filter_id":59,"module_stream_id":24,"id":12,"created_at":"2024-07-24 + 14:54:53 UTC","updated_at":"2024-07-24 14:54:53 UTC"}]}]} ' headers: @@ -210,7 +209,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '1848' + - '1796' 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''; @@ -224,7 +223,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=97 Strict-Transport-Security: @@ -254,11 +253,11 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/content_view_filters/61/rules?per_page=4294967296 + uri: https://foreman.example.org/katello/api/module_streams?search=name%3D%22389-directory-server%22%2Cstream%3D%22next%22%2Cversion%3D%22820220325123957%22%2Ccontext%3D%229edba152%22&per_page=4294967296 response: body: - string: '{"total":1,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":null,"sort":{"by":"id","order":"asc"},"results":[{"content_view_filter_id":61,"start_date":"2017-01-03","end_date":"2019-01-03","types":["bugfix","enhancement","security"],"date_type":"updated","id":12,"created_at":"2023-06-05 - 22:35:09 UTC","updated_at":"2023-06-05 22:35:10 UTC"}]} + string: '{"total":24,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"389-directory-server\",stream=\"next\",version=\"820220325123957\",context=\"9edba152\"","sort":{"by":"name","order":"asc"},"results":[{"id":24,"name":"389-directory-server","pulp_id":"/pulp/api/v3/content/rpm/modulemds/0190e45f-010d-74d7-a9a1-cd01d6fdc194/","version":"820220325123957","context":"9edba152","stream":"next","arch":"x86_64","description":"389 + Directory Server is an LDAPv3 compliant server.","summary":null,"module_spec":"389-directory-server:next:820220325123957:9edba152:x86_64","uuid":"/pulp/api/v3/content/rpm/modulemds/0190e45f-010d-74d7-a9a1-cd01d6fdc194/"}]} ' headers: @@ -267,7 +266,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '377' + - '685' 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''; @@ -281,7 +280,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=96 Strict-Transport-Security: @@ -299,6 +298,63 @@ 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/content_view_filters/59/rules?search=id%3D%2212%22&per_page=4294967296 + response: + body: + string: '{"total":2,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"id=\"12\"","sort":{"by":"id","order":"asc"},"results":[{"content_view_filter_id":59,"module_stream_id":24,"id":12,"created_at":"2024-07-24 + 14:54:53 UTC","updated_at":"2024-07-24 14:54:53 UTC"}]} + + ' + headers: + Cache-Control: + - max-age=0, private, must-revalidate + Connection: + - Keep-Alive + Content-Length: + - '290' + 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.12.0-develop + 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: @@ -313,11 +369,11 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: DELETE - uri: https://foreman.example.org/katello/api/content_view_filters/61/rules/12 + uri: https://foreman.example.org/katello/api/content_view_filters/59/rules/12 response: body: - string: ' {"content_view_filter_id":61,"start_date":"2017-01-03","end_date":"2019-01-03","types":["bugfix","enhancement","security"],"date_type":"updated","id":12,"created_at":"2023-06-05 - 22:35:09 UTC","updated_at":"2023-06-05 22:35:10 UTC"} + string: ' {"content_view_filter_id":59,"module_stream_id":24,"id":12,"created_at":"2024-07-24 + 14:54:53 UTC","updated_at":"2024-07-24 14:54:53 UTC","module_stream":{"module_stream_id":24,"module_stream_name":"389-directory-server","module_stream_stream":"next"}} ' headers: @@ -326,7 +382,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '234' + - '254' 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''; @@ -340,9 +396,9 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - - timeout=15, max=95 + - timeout=15, max=94 Strict-Transport-Security: - max-age=631139040; includeSubdomains X-Content-Type-Options: diff --git a/tests/test_playbooks/fixtures/content_view_filter_rule-27.yml b/tests/test_playbooks/fixtures/content_view_filter_rule-27.yml index ef07055fd..7693fe46c 100644 --- a/tests/test_playbooks/fixtures/content_view_filter_rule-27.yml +++ b/tests/test_playbooks/fixtures/content_view_filter_rule-27.yml @@ -14,14 +14,14 @@ interactions: uri: https://foreman.example.org/api/status response: body: - string: '{"result":"ok","status":200,"version":"3.7.0-rc2","api_version":2}' + string: '{"result":"ok","status":200,"version":"3.12.0-develop","api_version":2}' headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive Content-Length: - - '66' + - '71' 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''; @@ -35,7 +35,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=100 Strict-Transport-Security: @@ -70,8 +70,8 @@ interactions: body: 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-05 - 22:32:12 UTC\",\"updated_at\":\"2023-06-05 22:32:15 UTC\",\"id\":11,\"name\":\"Test + {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\":\"Test_Organization\",\"created_at\":\"2024-07-24 + 14:53:36 UTC\",\"updated_at\":\"2024-07-24 14:53:38 UTC\",\"id\":7,\"name\":\"Test Organization\",\"title\":\"Test Organization\",\"description\":\"A test organization\"}]\n}\n" headers: Cache-Control: @@ -79,7 +79,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '389' + - '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''; @@ -93,7 +93,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=99 Strict-Transport-Security: @@ -123,18 +123,17 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/organizations/11/content_views?search=name%3D%22Test+Content+View%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/organizations/7/content_views?search=name%3D%22Test+Content+View%22&per_page=4294967296 response: body: string: '{"total":2,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Content View\"","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":true,"repository_ids":[31,32,33,34],"id":19,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":11,"organization":{"name":"Test - Organization","label":"Test_Organization","id":11},"created_at":"2023-06-05 - 22:34:51 UTC","updated_at":"2023-06-05 22:34:51 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":31,"name":"Test - Repository","label":"Test_Repository","content_type":"yum"},{"id":32,"name":"Test - Modular Repository","label":"Test_Modular_Repository","content_type":"yum"},{"id":33,"name":"Test - Docker Repository","label":"Test_Docker_Repository","content_type":"docker"},{"id":34,"name":"Test - Debian Repository","label":"Test_Debian_Repository","content_type":"deb"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]}]} + Content View\"","sort":{"by":"name","order":"asc"},"results":[{"composite":false,"component_ids":[],"duplicate_repositories_to_publish":[],"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":[],"filtered":true,"repository_ids":[13,14,15],"id":11,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":7,"organization":{"name":"Test + Organization","label":"Test_Organization","id":7},"created_at":"2024-07-24 + 14:54:40 UTC","updated_at":"2024-07-24 14:54:40 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":13,"name":"Test + Repository","label":"Test_Repository","content_type":"yum"},{"id":14,"name":"Test + Modular Repository","label":"Test_Modular_Repository","content_type":"yum"},{"id":15,"name":"Test + Docker Repository","label":"Test_Docker_Repository","content_type":"docker"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]}]} ' headers: @@ -143,7 +142,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '1353' + - '1270' 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''; @@ -155,9 +154,9 @@ interactions: Foreman_current_location: - ; ANY Foreman_current_organization: - - 11; Test Organization + - 7; Test Organization Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=98 Strict-Transport-Security: @@ -187,22 +186,20 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/content_views/19/filters?search=name%3D%22Test+Content+View+Filter+-+docker%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/content_views/11/filters?search=name%3D%22Test+Content+View+Filter+-+modulemd%22&per_page=4294967296 response: body: string: '{"total":10,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Content View Filter - docker\"","sort":{"by":"name","order":"asc"},"results":[{"inclusion":false,"id":62,"name":"Test - Content View Filter - docker","description":null,"created_at":"2023-06-05 - 22:34:59 UTC","updated_at":"2023-06-05 22:34:59 UTC","content_view":{"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":true,"repository_ids":[31,32,33,34],"id":19,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":11,"organization":{"name":"Test - Organization","label":"Test_Organization","id":11},"created_at":"2023-06-05 - 22:34:51 UTC","updated_at":"2023-06-05 22:34:51 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":31,"name":"Test - Repository","label":"Test_Repository","content_type":"yum"},{"id":32,"name":"Test - Modular Repository","label":"Test_Modular_Repository","content_type":"yum"},{"id":33,"name":"Test - Docker Repository","label":"Test_Docker_Repository","content_type":"docker"},{"id":34,"name":"Test - Debian Repository","label":"Test_Debian_Repository","content_type":"deb"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]},"repositories":[],"type":"docker","rules":[{"content_view_filter_id":62,"id":6,"name":"8.7-929","created_at":"2023-06-05 - 22:35:11 UTC","updated_at":"2023-06-05 22:35:11 UTC"},{"content_view_filter_id":62,"id":7,"name":"8.6-990","created_at":"2023-06-05 - 22:35:12 UTC","updated_at":"2023-06-05 22:35:12 UTC"}]}]} + Content View Filter - modulemd\"","sort":{"by":"name","order":"asc"},"results":[{"inclusion":false,"id":59,"name":"Test + Content View Filter - modulemd","description":null,"created_at":"2024-07-24 + 14:54:44 UTC","updated_at":"2024-07-24 14:54:44 UTC","content_view":{"composite":false,"component_ids":[],"duplicate_repositories_to_publish":[],"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":[],"filtered":true,"repository_ids":[13,14,15],"id":11,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":7,"organization":{"name":"Test + Organization","label":"Test_Organization","id":7},"created_at":"2024-07-24 + 14:54:40 UTC","updated_at":"2024-07-24 14:54:40 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":13,"name":"Test + Repository","label":"Test_Repository","content_type":"yum"},{"id":14,"name":"Test + Modular Repository","label":"Test_Modular_Repository","content_type":"yum"},{"id":15,"name":"Test + Docker Repository","label":"Test_Docker_Repository","content_type":"docker"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]},"repositories":[],"type":"modulemd","rules":[{"content_view_filter_id":59,"module_stream_id":11,"id":11,"created_at":"2024-07-24 + 14:54:51 UTC","updated_at":"2024-07-24 14:54:51 UTC"}]}]} ' headers: @@ -211,7 +208,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '1861' + - '1658' 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''; @@ -225,7 +222,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=97 Strict-Transport-Security: @@ -255,11 +252,15 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/content_view_filters/62/rules?search=name%3D%228.7-929%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/module_streams?search=name%3D%22nextcloud%22%2Cstream%3D%2223%22%2Cversion%3D%22820220801190052%22%2Ccontext%3D%22nx4%22&per_page=4294967296 response: body: - string: '{"total":2,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"8.7-929\"","sort":{"by":"id","order":"asc"},"results":[{"content_view_filter_id":62,"id":6,"name":"8.7-929","created_at":"2023-06-05 - 22:35:11 UTC","updated_at":"2023-06-05 22:35:11 UTC"}]} + string: '{"total":24,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"nextcloud\",stream=\"23\",version=\"820220801190052\",context=\"nx4\"","sort":{"by":"name","order":"asc"},"results":[{"id":11,"name":"nextcloud","pulp_id":"/pulp/api/v3/content/rpm/modulemds/0190e45f-011a-770d-8383-f0816ccf0835/","version":"820220801190052","context":"nx4","stream":"23","arch":"x86_64","description":"Nextcloud + gives you universal access to your files through a web interface or WebDAV. + It also provides a platform to easily view & sync your contacts, calendars + and bookmarks across all your devices and enables basic editing right on the + web. Nextcloud is extendable via a simple but powerful API for applications + and plugins.","summary":null,"module_spec":"nextcloud:23:820220801190052:nx4:x86_64","uuid":"/pulp/api/v3/content/rpm/modulemds/0190e45f-011a-770d-8383-f0816ccf0835/"}]} ' headers: @@ -268,7 +269,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '291' + - '906' 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''; @@ -282,7 +283,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=96 Strict-Transport-Security: @@ -300,6 +301,63 @@ 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/content_view_filters/59/rules?search=id%3D%2211%22&per_page=4294967296 + response: + body: + string: '{"total":1,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"id=\"11\"","sort":{"by":"id","order":"asc"},"results":[{"content_view_filter_id":59,"module_stream_id":11,"id":11,"created_at":"2024-07-24 + 14:54:51 UTC","updated_at":"2024-07-24 14:54:51 UTC"}]} + + ' + headers: + Cache-Control: + - max-age=0, private, must-revalidate + Connection: + - Keep-Alive + Content-Length: + - '290' + 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.12.0-develop + 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: @@ -314,11 +372,11 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: DELETE - uri: https://foreman.example.org/katello/api/content_view_filters/62/rules/6 + uri: https://foreman.example.org/katello/api/content_view_filters/59/rules/11 response: body: - string: ' {"content_view_filter_id":62,"id":6,"name":"8.7-929","created_at":"2023-06-05 - 22:35:11 UTC","updated_at":"2023-06-05 22:35:11 UTC"} + string: ' {"content_view_filter_id":59,"module_stream_id":11,"id":11,"created_at":"2024-07-24 + 14:54:51 UTC","updated_at":"2024-07-24 14:54:51 UTC","module_stream":{"module_stream_id":11,"module_stream_name":"nextcloud","module_stream_stream":"23"}} ' headers: @@ -327,7 +385,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '134' + - '241' 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''; @@ -341,9 +399,9 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - - timeout=15, max=95 + - timeout=15, max=94 Strict-Transport-Security: - max-age=631139040; includeSubdomains X-Content-Type-Options: diff --git a/tests/test_playbooks/fixtures/content_view_filter_rule-29.yml b/tests/test_playbooks/fixtures/content_view_filter_rule-29.yml deleted file mode 100644 index edee56438..000000000 --- a/tests/test_playbooks/fixtures/content_view_filter_rule-29.yml +++ /dev/null @@ -1,419 +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: '{"result":"ok","status":200,"version":"3.7.0-rc2","api_version":2}' - headers: - Cache-Control: - - max-age=0, private, must-revalidate - Connection: - - Keep-Alive - Content-Length: - - '66' - 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-rc2 - Keep-Alive: - - timeout=15, max=100 - 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?search=name%3D%22Test+Organization%22&per_page=4294967296 - response: - body: - 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-05 - 22:32:12 UTC\",\"updated_at\":\"2023-06-05 22:32:15 UTC\",\"id\":11,\"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: - - '389' - 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-rc2 - Keep-Alive: - - timeout=15, max=99 - 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/11/content_views?search=name%3D%22Test+Content+View%22&per_page=4294967296 - response: - body: - string: '{"total":2,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Content View\"","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":true,"repository_ids":[31,32,33,34],"id":19,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":11,"organization":{"name":"Test - Organization","label":"Test_Organization","id":11},"created_at":"2023-06-05 - 22:34:51 UTC","updated_at":"2023-06-05 22:34:51 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":31,"name":"Test - Repository","label":"Test_Repository","content_type":"yum"},{"id":32,"name":"Test - Modular Repository","label":"Test_Modular_Repository","content_type":"yum"},{"id":33,"name":"Test - Docker Repository","label":"Test_Docker_Repository","content_type":"docker"},{"id":34,"name":"Test - Debian Repository","label":"Test_Debian_Repository","content_type":"deb"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]}]} - - ' - headers: - Cache-Control: - - max-age=0, private, must-revalidate - Connection: - - Keep-Alive - Content-Length: - - '1353' - 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: - - 11; Test Organization - Foreman_version: - - 3.7.0-rc2 - Keep-Alive: - - timeout=15, max=98 - 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/content_views/19/filters?search=name%3D%22Test+Content+View+Filter+-+modulemd%22&per_page=4294967296 - response: - body: - string: '{"total":10,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Content View Filter - modulemd\"","sort":{"by":"name","order":"asc"},"results":[{"inclusion":false,"id":63,"name":"Test - Content View Filter - modulemd","description":null,"created_at":"2023-06-05 - 22:35:00 UTC","updated_at":"2023-06-05 22:35:00 UTC","content_view":{"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":true,"repository_ids":[31,32,33,34],"id":19,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":11,"organization":{"name":"Test - Organization","label":"Test_Organization","id":11},"created_at":"2023-06-05 - 22:34:51 UTC","updated_at":"2023-06-05 22:34:51 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":31,"name":"Test - Repository","label":"Test_Repository","content_type":"yum"},{"id":32,"name":"Test - Modular Repository","label":"Test_Modular_Repository","content_type":"yum"},{"id":33,"name":"Test - Docker Repository","label":"Test_Docker_Repository","content_type":"docker"},{"id":34,"name":"Test - Debian Repository","label":"Test_Debian_Repository","content_type":"deb"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]},"repositories":[],"type":"modulemd","rules":[{"content_view_filter_id":63,"module_stream_id":11,"id":5,"created_at":"2023-06-05 - 22:35:14 UTC","updated_at":"2023-06-05 22:35:14 UTC"},{"content_view_filter_id":63,"module_stream_id":24,"id":6,"created_at":"2023-06-05 - 22:35:19 UTC","updated_at":"2023-06-05 22:35:19 UTC"}]}]} - - ' - headers: - Cache-Control: - - max-age=0, private, must-revalidate - Connection: - - Keep-Alive - Content-Length: - - '1877' - 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-rc2 - 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/module_streams?search=name%3D%22389-directory-server%22%2Cstream%3D%22next%22%2Cversion%3D%22820220325123957%22%2Ccontext%3D%229edba152%22&per_page=4294967296 - response: - body: - string: '{"total":24,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"389-directory-server\",stream=\"next\",version=\"820220325123957\",context=\"9edba152\"","sort":{"by":"name","order":"asc"},"results":[{"id":24,"name":"389-directory-server","pulp_id":"/pulp/api/v3/content/rpm/modulemds/0e721ce9-6995-40e8-8086-a5a47b89af0b/","version":"820220325123957","context":"9edba152","stream":"next","arch":"x86_64","description":"389 - Directory Server is an LDAPv3 compliant server.","summary":null,"module_spec":"389-directory-server:next:820220325123957:9edba152:x86_64","uuid":"/pulp/api/v3/content/rpm/modulemds/0e721ce9-6995-40e8-8086-a5a47b89af0b/"}]} - - ' - headers: - Cache-Control: - - max-age=0, private, must-revalidate - Connection: - - Keep-Alive - Content-Length: - - '685' - 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-rc2 - 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: 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_filters/63/rules?search=id%3D%226%22&per_page=4294967296 - response: - body: - string: '{"total":2,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"id=\"6\"","sort":{"by":"id","order":"asc"},"results":[{"content_view_filter_id":63,"module_stream_id":24,"id":6,"created_at":"2023-06-05 - 22:35:19 UTC","updated_at":"2023-06-05 22:35:19 UTC"}]} - - ' - headers: - Cache-Control: - - max-age=0, private, must-revalidate - Connection: - - Keep-Alive - Content-Length: - - '288' - 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-rc2 - 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 - Content-Length: - - '0' - User-Agent: - - apypie (https://github.com/Apipie/apypie) - method: DELETE - uri: https://foreman.example.org/katello/api/content_view_filters/63/rules/6 - response: - body: - string: ' {"content_view_filter_id":63,"module_stream_id":24,"id":6,"created_at":"2023-06-05 - 22:35:19 UTC","updated_at":"2023-06-05 22:35:19 UTC"} - - ' - headers: - Cache-Control: - - max-age=0, private, must-revalidate - Connection: - - Keep-Alive - Content-Length: - - '139' - 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-rc2 - 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/content_view_filter_rule-3.yml b/tests/test_playbooks/fixtures/content_view_filter_rule-3.yml index 90f34c60a..3063846b1 100644 --- a/tests/test_playbooks/fixtures/content_view_filter_rule-3.yml +++ b/tests/test_playbooks/fixtures/content_view_filter_rule-3.yml @@ -14,14 +14,14 @@ interactions: uri: https://foreman.example.org/api/status response: body: - string: '{"result":"ok","status":200,"version":"3.7.0-rc2","api_version":2}' + string: '{"result":"ok","status":200,"version":"3.12.0-develop","api_version":2}' headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive Content-Length: - - '66' + - '71' 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''; @@ -35,7 +35,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=100 Strict-Transport-Security: @@ -70,8 +70,8 @@ interactions: body: 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-05 - 22:32:12 UTC\",\"updated_at\":\"2023-06-05 22:32:15 UTC\",\"id\":11,\"name\":\"Test + {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\":\"Test_Organization\",\"created_at\":\"2024-07-24 + 14:53:36 UTC\",\"updated_at\":\"2024-07-24 14:53:38 UTC\",\"id\":7,\"name\":\"Test Organization\",\"title\":\"Test Organization\",\"description\":\"A test organization\"}]\n}\n" headers: Cache-Control: @@ -79,7 +79,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '389' + - '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''; @@ -93,7 +93,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=99 Strict-Transport-Security: @@ -123,18 +123,17 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/organizations/11/content_views?search=name%3D%22Test+Content+View%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/organizations/7/content_views?search=name%3D%22Test+Content+View%22&per_page=4294967296 response: body: string: '{"total":2,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Content View\"","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":true,"repository_ids":[31,32,33,34],"id":19,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":11,"organization":{"name":"Test - Organization","label":"Test_Organization","id":11},"created_at":"2023-06-05 - 22:34:51 UTC","updated_at":"2023-06-05 22:34:51 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":31,"name":"Test - Repository","label":"Test_Repository","content_type":"yum"},{"id":32,"name":"Test - Modular Repository","label":"Test_Modular_Repository","content_type":"yum"},{"id":33,"name":"Test - Docker Repository","label":"Test_Docker_Repository","content_type":"docker"},{"id":34,"name":"Test - Debian Repository","label":"Test_Debian_Repository","content_type":"deb"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]}]} + Content View\"","sort":{"by":"name","order":"asc"},"results":[{"composite":false,"component_ids":[],"duplicate_repositories_to_publish":[],"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":[],"filtered":true,"repository_ids":[13,14,15],"id":11,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":7,"organization":{"name":"Test + Organization","label":"Test_Organization","id":7},"created_at":"2024-07-24 + 14:54:40 UTC","updated_at":"2024-07-24 14:54:40 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":13,"name":"Test + Repository","label":"Test_Repository","content_type":"yum"},{"id":14,"name":"Test + Modular Repository","label":"Test_Modular_Repository","content_type":"yum"},{"id":15,"name":"Test + Docker Repository","label":"Test_Docker_Repository","content_type":"docker"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]}]} ' headers: @@ -143,7 +142,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '1353' + - '1270' 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''; @@ -155,9 +154,9 @@ interactions: Foreman_current_location: - ; ANY Foreman_current_organization: - - 11; Test Organization + - 7; Test Organization Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=98 Strict-Transport-Security: @@ -187,20 +186,19 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/content_views/19/filters?search=name%3D%22Test+Content+View+Filter+-+package_group%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/content_views/11/filters?search=name%3D%22Test+Content+View+Filter+-+package_group%22&per_page=4294967296 response: body: string: '{"total":10,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Content View Filter - package_group\"","sort":{"by":"name","order":"asc"},"results":[{"inclusion":false,"id":59,"name":"Test - Content View Filter - package_group","description":null,"created_at":"2023-06-05 - 22:34:56 UTC","updated_at":"2023-06-05 22:34:56 UTC","content_view":{"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":true,"repository_ids":[31,32,33,34],"id":19,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":11,"organization":{"name":"Test - Organization","label":"Test_Organization","id":11},"created_at":"2023-06-05 - 22:34:51 UTC","updated_at":"2023-06-05 22:34:51 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":31,"name":"Test - Repository","label":"Test_Repository","content_type":"yum"},{"id":32,"name":"Test - Modular Repository","label":"Test_Modular_Repository","content_type":"yum"},{"id":33,"name":"Test - Docker Repository","label":"Test_Docker_Repository","content_type":"docker"},{"id":34,"name":"Test - Debian Repository","label":"Test_Debian_Repository","content_type":"deb"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]},"repositories":[],"type":"package_group","rules":[]}]} + Content View Filter - package_group\"","sort":{"by":"name","order":"asc"},"results":[{"inclusion":false,"id":55,"name":"Test + Content View Filter - package_group","description":null,"created_at":"2024-07-24 + 14:54:42 UTC","updated_at":"2024-07-24 14:54:42 UTC","content_view":{"composite":false,"component_ids":[],"duplicate_repositories_to_publish":[],"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":[],"filtered":true,"repository_ids":[13,14,15],"id":11,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":7,"organization":{"name":"Test + Organization","label":"Test_Organization","id":7},"created_at":"2024-07-24 + 14:54:40 UTC","updated_at":"2024-07-24 14:54:40 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":13,"name":"Test + Repository","label":"Test_Repository","content_type":"yum"},{"id":14,"name":"Test + Modular Repository","label":"Test_Modular_Repository","content_type":"yum"},{"id":15,"name":"Test + Docker Repository","label":"Test_Docker_Repository","content_type":"docker"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]},"repositories":[],"type":"package_group","rules":[]}]} ' headers: @@ -209,7 +207,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '1619' + - '1536' 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''; @@ -223,7 +221,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=97 Strict-Transport-Security: @@ -253,7 +251,7 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/content_view_filters/59/rules?search=name%3D%22birds%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/content_view_filters/55/rules?search=name%3D%22birds%22&per_page=4294967296 response: body: string: '{"total":0,"subtotal":0,"selectable":0,"page":1,"per_page":"4294967296","error":null,"search":"name=\"birds\"","sort":{"by":"id","order":"asc"},"results":[]} @@ -279,7 +277,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=96 Strict-Transport-Security: @@ -312,8 +310,8 @@ interactions: uri: https://foreman.example.org/katello/api/package_groups?search=name%3D%22birds%22&per_page=4294967296 response: body: - string: '{"total":2,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"birds\"","sort":{"by":"name","order":"asc"},"results":[{"id":2,"name":"birds","pulp_id":"/pulp/api/v3/content/rpm/packagegroups/86fae512-5a7b-4f10-956c-df69a9218856/","uuid":"/pulp/api/v3/content/rpm/packagegroups/86fae512-5a7b-4f10-956c-df69a9218856/","description":"","repository":{"id":31,"name":"Test - Repository","product":{"id":10,"name":"Test Product"}}}]} + string: '{"total":2,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"birds\"","sort":{"by":"name","order":"asc"},"results":[{"id":2,"name":"birds","pulp_id":"/pulp/api/v3/content/rpm/packagegroups/0190e45e-fd99-76f9-872f-f31298c228c1/","uuid":"/pulp/api/v3/content/rpm/packagegroups/0190e45e-fd99-76f9-872f-f31298c228c1/","description":"","repository":{"id":13,"name":"Test + Repository","product":{"id":5,"name":"Test Product"}}}]} ' headers: @@ -322,7 +320,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '465' + - '464' 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,7 +334,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=95 Strict-Transport-Security: @@ -369,8 +367,8 @@ interactions: uri: https://foreman.example.org/katello/api/package_groups/2 response: body: - string: ' {"id":2,"name":"birds","pulp_id":"/pulp/api/v3/content/rpm/packagegroups/86fae512-5a7b-4f10-956c-df69a9218856/","uuid":"/pulp/api/v3/content/rpm/packagegroups/86fae512-5a7b-4f10-956c-df69a9218856/","description":"","repository":{"id":31,"name":"Test - Repository","product":{"id":10,"name":"Test Product"}},"default_package_names":[],"mandatory_package_names":["cockateel","duck","penguin","stork"],"conditional_package_names":[],"optional_package_names":[]} + string: ' {"id":2,"name":"birds","pulp_id":"/pulp/api/v3/content/rpm/packagegroups/0190e45e-fd99-76f9-872f-f31298c228c1/","uuid":"/pulp/api/v3/content/rpm/packagegroups/0190e45e-fd99-76f9-872f-f31298c228c1/","description":"","repository":{"id":13,"name":"Test + Repository","product":{"id":5,"name":"Test Product"}},"default_package_names":[],"mandatory_package_names":["cockateel","duck","penguin","stork"],"conditional_package_names":[],"optional_package_names":[]} ' headers: @@ -379,7 +377,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '459' + - '458' 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''; @@ -393,7 +391,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=94 Strict-Transport-Security: @@ -412,7 +410,7 @@ interactions: code: 200 message: OK - request: - body: '{"name": "birds", "uuid": "/pulp/api/v3/content/rpm/packagegroups/86fae512-5a7b-4f10-956c-df69a9218856/"}' + body: '{"name": "birds", "uuid": "/pulp/api/v3/content/rpm/packagegroups/0190e45e-fd99-76f9-872f-f31298c228c1/"}' headers: Accept: - application/json;version=2 @@ -427,11 +425,11 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: POST - uri: https://foreman.example.org/katello/api/content_view_filters/59/rules + uri: https://foreman.example.org/katello/api/content_view_filters/55/rules response: body: - string: ' {"content_view_filter_id":59,"uuid":"/pulp/api/v3/content/rpm/packagegroups/86fae512-5a7b-4f10-956c-df69a9218856/","id":6,"name":"birds","created_at":"2023-06-05 - 22:35:05 UTC","updated_at":"2023-06-05 22:35:05 UTC"} + string: ' {"content_view_filter_id":55,"uuid":"/pulp/api/v3/content/rpm/packagegroups/0190e45e-fd99-76f9-872f-f31298c228c1/","id":7,"name":"birds","created_at":"2024-07-24 + 14:54:47 UTC","updated_at":"2024-07-24 14:54:47 UTC"} ' headers: @@ -454,7 +452,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=93 Strict-Transport-Security: diff --git a/tests/test_playbooks/fixtures/content_view_filter_rule-4.yml b/tests/test_playbooks/fixtures/content_view_filter_rule-4.yml index b2c6c56a3..75b5c361f 100644 --- a/tests/test_playbooks/fixtures/content_view_filter_rule-4.yml +++ b/tests/test_playbooks/fixtures/content_view_filter_rule-4.yml @@ -14,14 +14,14 @@ interactions: uri: https://foreman.example.org/api/status response: body: - string: '{"result":"ok","status":200,"version":"3.7.0-rc2","api_version":2}' + string: '{"result":"ok","status":200,"version":"3.12.0-develop","api_version":2}' headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive Content-Length: - - '66' + - '71' 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''; @@ -35,7 +35,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=100 Strict-Transport-Security: @@ -70,8 +70,8 @@ interactions: body: 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-05 - 22:32:12 UTC\",\"updated_at\":\"2023-06-05 22:32:15 UTC\",\"id\":11,\"name\":\"Test + {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\":\"Test_Organization\",\"created_at\":\"2024-07-24 + 14:53:36 UTC\",\"updated_at\":\"2024-07-24 14:53:38 UTC\",\"id\":7,\"name\":\"Test Organization\",\"title\":\"Test Organization\",\"description\":\"A test organization\"}]\n}\n" headers: Cache-Control: @@ -79,7 +79,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '389' + - '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''; @@ -93,7 +93,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=99 Strict-Transport-Security: @@ -123,18 +123,17 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/organizations/11/content_views?search=name%3D%22Test+Content+View%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/organizations/7/content_views?search=name%3D%22Test+Content+View%22&per_page=4294967296 response: body: string: '{"total":2,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Content View\"","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":true,"repository_ids":[31,32,33,34],"id":19,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":11,"organization":{"name":"Test - Organization","label":"Test_Organization","id":11},"created_at":"2023-06-05 - 22:34:51 UTC","updated_at":"2023-06-05 22:34:51 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":31,"name":"Test - Repository","label":"Test_Repository","content_type":"yum"},{"id":32,"name":"Test - Modular Repository","label":"Test_Modular_Repository","content_type":"yum"},{"id":33,"name":"Test - Docker Repository","label":"Test_Docker_Repository","content_type":"docker"},{"id":34,"name":"Test - Debian Repository","label":"Test_Debian_Repository","content_type":"deb"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]}]} + Content View\"","sort":{"by":"name","order":"asc"},"results":[{"composite":false,"component_ids":[],"duplicate_repositories_to_publish":[],"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":[],"filtered":true,"repository_ids":[13,14,15],"id":11,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":7,"organization":{"name":"Test + Organization","label":"Test_Organization","id":7},"created_at":"2024-07-24 + 14:54:40 UTC","updated_at":"2024-07-24 14:54:40 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":13,"name":"Test + Repository","label":"Test_Repository","content_type":"yum"},{"id":14,"name":"Test + Modular Repository","label":"Test_Modular_Repository","content_type":"yum"},{"id":15,"name":"Test + Docker Repository","label":"Test_Docker_Repository","content_type":"docker"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]}]} ' headers: @@ -143,7 +142,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '1353' + - '1270' 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''; @@ -155,9 +154,9 @@ interactions: Foreman_current_location: - ; ANY Foreman_current_organization: - - 11; Test Organization + - 7; Test Organization Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=98 Strict-Transport-Security: @@ -187,21 +186,20 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/content_views/19/filters?search=name%3D%22Test+Content+View+Filter+-+package_group%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/content_views/11/filters?search=name%3D%22Test+Content+View+Filter+-+package_group%22&per_page=4294967296 response: body: string: '{"total":10,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Content View Filter - package_group\"","sort":{"by":"name","order":"asc"},"results":[{"inclusion":false,"id":59,"name":"Test - Content View Filter - package_group","description":null,"created_at":"2023-06-05 - 22:34:56 UTC","updated_at":"2023-06-05 22:34:56 UTC","content_view":{"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":true,"repository_ids":[31,32,33,34],"id":19,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":11,"organization":{"name":"Test - Organization","label":"Test_Organization","id":11},"created_at":"2023-06-05 - 22:34:51 UTC","updated_at":"2023-06-05 22:34:51 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":31,"name":"Test - Repository","label":"Test_Repository","content_type":"yum"},{"id":32,"name":"Test - Modular Repository","label":"Test_Modular_Repository","content_type":"yum"},{"id":33,"name":"Test - Docker Repository","label":"Test_Docker_Repository","content_type":"docker"},{"id":34,"name":"Test - Debian Repository","label":"Test_Debian_Repository","content_type":"deb"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]},"repositories":[],"type":"package_group","rules":[{"content_view_filter_id":59,"uuid":"/pulp/api/v3/content/rpm/packagegroups/86fae512-5a7b-4f10-956c-df69a9218856/","id":6,"name":"birds","created_at":"2023-06-05 - 22:35:05 UTC","updated_at":"2023-06-05 22:35:05 UTC"}]}]} + Content View Filter - package_group\"","sort":{"by":"name","order":"asc"},"results":[{"inclusion":false,"id":55,"name":"Test + Content View Filter - package_group","description":null,"created_at":"2024-07-24 + 14:54:42 UTC","updated_at":"2024-07-24 14:54:42 UTC","content_view":{"composite":false,"component_ids":[],"duplicate_repositories_to_publish":[],"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":[],"filtered":true,"repository_ids":[13,14,15],"id":11,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":7,"organization":{"name":"Test + Organization","label":"Test_Organization","id":7},"created_at":"2024-07-24 + 14:54:40 UTC","updated_at":"2024-07-24 14:54:40 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":13,"name":"Test + Repository","label":"Test_Repository","content_type":"yum"},{"id":14,"name":"Test + Modular Repository","label":"Test_Modular_Repository","content_type":"yum"},{"id":15,"name":"Test + Docker Repository","label":"Test_Docker_Repository","content_type":"docker"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]},"repositories":[],"type":"package_group","rules":[{"content_view_filter_id":55,"uuid":"/pulp/api/v3/content/rpm/packagegroups/0190e45e-fd99-76f9-872f-f31298c228c1/","id":7,"name":"birds","created_at":"2024-07-24 + 14:54:47 UTC","updated_at":"2024-07-24 14:54:47 UTC"}]}]} ' headers: @@ -210,7 +208,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '1834' + - '1751' 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''; @@ -224,7 +222,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=97 Strict-Transport-Security: @@ -254,7 +252,7 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/content_view_filters/59/rules?search=name%3D%22mammals%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/content_view_filters/55/rules?search=name%3D%22mammals%22&per_page=4294967296 response: body: string: '{"total":1,"subtotal":0,"selectable":0,"page":1,"per_page":"4294967296","error":null,"search":"name=\"mammals\"","sort":{"by":"id","order":"asc"},"results":[]} @@ -280,7 +278,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=96 Strict-Transport-Security: @@ -313,8 +311,8 @@ interactions: uri: https://foreman.example.org/katello/api/package_groups?search=name%3D%22mammals%22&per_page=4294967296 response: body: - string: '{"total":2,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"mammals\"","sort":{"by":"name","order":"asc"},"results":[{"id":1,"name":"mammals","pulp_id":"/pulp/api/v3/content/rpm/packagegroups/07751227-7da7-4dc6-8da0-df1ec8fc5e05/","uuid":"/pulp/api/v3/content/rpm/packagegroups/07751227-7da7-4dc6-8da0-df1ec8fc5e05/","description":"","repository":{"id":31,"name":"Test - Repository","product":{"id":10,"name":"Test Product"}}}]} + string: '{"total":2,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"mammals\"","sort":{"by":"name","order":"asc"},"results":[{"id":1,"name":"mammals","pulp_id":"/pulp/api/v3/content/rpm/packagegroups/0190e45e-fd9a-7fce-b8b1-2ddf3e619951/","uuid":"/pulp/api/v3/content/rpm/packagegroups/0190e45e-fd9a-7fce-b8b1-2ddf3e619951/","description":"","repository":{"id":13,"name":"Test + Repository","product":{"id":5,"name":"Test Product"}}}]} ' headers: @@ -323,7 +321,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '469' + - '468' 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,7 +335,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=95 Strict-Transport-Security: @@ -370,8 +368,8 @@ interactions: uri: https://foreman.example.org/katello/api/package_groups/1 response: body: - string: ' {"id":1,"name":"mammals","pulp_id":"/pulp/api/v3/content/rpm/packagegroups/07751227-7da7-4dc6-8da0-df1ec8fc5e05/","uuid":"/pulp/api/v3/content/rpm/packagegroups/07751227-7da7-4dc6-8da0-df1ec8fc5e05/","description":"","repository":{"id":31,"name":"Test - Repository","product":{"id":10,"name":"Test Product"}},"default_package_names":[],"mandatory_package_names":["bear","camel","cat","cheetah","chimpanzee","cow","dog","dolphin","elephant","fox","giraffe","gorilla","horse","kangaroo","lion","mouse","squirrel","tiger","walrus","whale","wolf","zebra"],"conditional_package_names":[],"optional_package_names":[]} + string: ' {"id":1,"name":"mammals","pulp_id":"/pulp/api/v3/content/rpm/packagegroups/0190e45e-fd9a-7fce-b8b1-2ddf3e619951/","uuid":"/pulp/api/v3/content/rpm/packagegroups/0190e45e-fd9a-7fce-b8b1-2ddf3e619951/","description":"","repository":{"id":13,"name":"Test + Repository","product":{"id":5,"name":"Test Product"}},"default_package_names":[],"mandatory_package_names":["bear","camel","cat","cheetah","chimpanzee","cow","dog","dolphin","elephant","fox","giraffe","gorilla","horse","kangaroo","lion","mouse","squirrel","tiger","walrus","whale","wolf","zebra"],"conditional_package_names":[],"optional_package_names":[]} ' headers: @@ -380,7 +378,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '612' + - '611' 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''; @@ -394,7 +392,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=94 Strict-Transport-Security: @@ -413,7 +411,7 @@ interactions: code: 200 message: OK - request: - body: '{"name": "mammals", "uuid": "/pulp/api/v3/content/rpm/packagegroups/07751227-7da7-4dc6-8da0-df1ec8fc5e05/"}' + body: '{"name": "mammals", "uuid": "/pulp/api/v3/content/rpm/packagegroups/0190e45e-fd9a-7fce-b8b1-2ddf3e619951/"}' headers: Accept: - application/json;version=2 @@ -428,11 +426,11 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: POST - uri: https://foreman.example.org/katello/api/content_view_filters/59/rules + uri: https://foreman.example.org/katello/api/content_view_filters/55/rules response: body: - string: ' {"content_view_filter_id":59,"uuid":"/pulp/api/v3/content/rpm/packagegroups/07751227-7da7-4dc6-8da0-df1ec8fc5e05/","id":7,"name":"mammals","created_at":"2023-06-05 - 22:35:06 UTC","updated_at":"2023-06-05 22:35:06 UTC"} + string: ' {"content_view_filter_id":55,"uuid":"/pulp/api/v3/content/rpm/packagegroups/0190e45e-fd9a-7fce-b8b1-2ddf3e619951/","id":8,"name":"mammals","created_at":"2024-07-24 + 14:54:47 UTC","updated_at":"2024-07-24 14:54:47 UTC"} ' headers: @@ -455,7 +453,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=93 Strict-Transport-Security: diff --git a/tests/test_playbooks/fixtures/content_view_filter_rule-5.yml b/tests/test_playbooks/fixtures/content_view_filter_rule-5.yml index 46a61badf..5bb7c5da9 100644 --- a/tests/test_playbooks/fixtures/content_view_filter_rule-5.yml +++ b/tests/test_playbooks/fixtures/content_view_filter_rule-5.yml @@ -14,14 +14,14 @@ interactions: uri: https://foreman.example.org/api/status response: body: - string: '{"result":"ok","status":200,"version":"3.7.0-rc2","api_version":2}' + string: '{"result":"ok","status":200,"version":"3.12.0-develop","api_version":2}' headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive Content-Length: - - '66' + - '71' 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''; @@ -35,7 +35,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=100 Strict-Transport-Security: @@ -70,8 +70,8 @@ interactions: body: 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-05 - 22:32:12 UTC\",\"updated_at\":\"2023-06-05 22:32:15 UTC\",\"id\":11,\"name\":\"Test + {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\":\"Test_Organization\",\"created_at\":\"2024-07-24 + 14:53:36 UTC\",\"updated_at\":\"2024-07-24 14:53:38 UTC\",\"id\":7,\"name\":\"Test Organization\",\"title\":\"Test Organization\",\"description\":\"A test organization\"}]\n}\n" headers: Cache-Control: @@ -79,7 +79,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '389' + - '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''; @@ -93,7 +93,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=99 Strict-Transport-Security: @@ -123,18 +123,17 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/organizations/11/content_views?search=name%3D%22Test+Content+View%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/organizations/7/content_views?search=name%3D%22Test+Content+View%22&per_page=4294967296 response: body: string: '{"total":2,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Content View\"","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":true,"repository_ids":[31,32,33,34],"id":19,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":11,"organization":{"name":"Test - Organization","label":"Test_Organization","id":11},"created_at":"2023-06-05 - 22:34:51 UTC","updated_at":"2023-06-05 22:34:51 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":31,"name":"Test - Repository","label":"Test_Repository","content_type":"yum"},{"id":32,"name":"Test - Modular Repository","label":"Test_Modular_Repository","content_type":"yum"},{"id":33,"name":"Test - Docker Repository","label":"Test_Docker_Repository","content_type":"docker"},{"id":34,"name":"Test - Debian Repository","label":"Test_Debian_Repository","content_type":"deb"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]}]} + Content View\"","sort":{"by":"name","order":"asc"},"results":[{"composite":false,"component_ids":[],"duplicate_repositories_to_publish":[],"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":[],"filtered":true,"repository_ids":[13,14,15],"id":11,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":7,"organization":{"name":"Test + Organization","label":"Test_Organization","id":7},"created_at":"2024-07-24 + 14:54:40 UTC","updated_at":"2024-07-24 14:54:40 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":13,"name":"Test + Repository","label":"Test_Repository","content_type":"yum"},{"id":14,"name":"Test + Modular Repository","label":"Test_Modular_Repository","content_type":"yum"},{"id":15,"name":"Test + Docker Repository","label":"Test_Docker_Repository","content_type":"docker"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]}]} ' headers: @@ -143,7 +142,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '1353' + - '1270' 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''; @@ -155,9 +154,9 @@ interactions: Foreman_current_location: - ; ANY Foreman_current_organization: - - 11; Test Organization + - 7; Test Organization Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=98 Strict-Transport-Security: @@ -187,20 +186,19 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/content_views/19/filters?search=name%3D%22Test+Content+View+Filter+-+erratum_by_id%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/content_views/11/filters?search=name%3D%22Test+Content+View+Filter+-+erratum_by_id%22&per_page=4294967296 response: body: string: '{"total":10,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Content View Filter - erratum_by_id\"","sort":{"by":"name","order":"asc"},"results":[{"inclusion":false,"id":60,"name":"Test - Content View Filter - erratum_by_id","description":null,"created_at":"2023-06-05 - 22:34:57 UTC","updated_at":"2023-06-05 22:34:57 UTC","content_view":{"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":true,"repository_ids":[31,32,33,34],"id":19,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":11,"organization":{"name":"Test - Organization","label":"Test_Organization","id":11},"created_at":"2023-06-05 - 22:34:51 UTC","updated_at":"2023-06-05 22:34:51 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":31,"name":"Test - Repository","label":"Test_Repository","content_type":"yum"},{"id":32,"name":"Test - Modular Repository","label":"Test_Modular_Repository","content_type":"yum"},{"id":33,"name":"Test - Docker Repository","label":"Test_Docker_Repository","content_type":"docker"},{"id":34,"name":"Test - Debian Repository","label":"Test_Debian_Repository","content_type":"deb"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]},"repositories":[],"type":"erratum","rules":[]}]} + Content View Filter - erratum_by_id\"","sort":{"by":"name","order":"asc"},"results":[{"inclusion":false,"id":56,"name":"Test + Content View Filter - erratum_by_id","description":null,"created_at":"2024-07-24 + 14:54:43 UTC","updated_at":"2024-07-24 14:54:43 UTC","content_view":{"composite":false,"component_ids":[],"duplicate_repositories_to_publish":[],"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":[],"filtered":true,"repository_ids":[13,14,15],"id":11,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":7,"organization":{"name":"Test + Organization","label":"Test_Organization","id":7},"created_at":"2024-07-24 + 14:54:40 UTC","updated_at":"2024-07-24 14:54:40 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":13,"name":"Test + Repository","label":"Test_Repository","content_type":"yum"},{"id":14,"name":"Test + Modular Repository","label":"Test_Modular_Repository","content_type":"yum"},{"id":15,"name":"Test + Docker Repository","label":"Test_Docker_Repository","content_type":"docker"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]},"repositories":[],"type":"erratum","rules":[]}]} ' headers: @@ -209,7 +207,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '1613' + - '1530' 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''; @@ -223,7 +221,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=97 Strict-Transport-Security: @@ -253,7 +251,7 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/content_view_filters/60/rules?errata_id=RHEA-2012%3A0004&per_page=4294967296 + uri: https://foreman.example.org/katello/api/content_view_filters/56/rules?errata_id=RHEA-2012%3A0004&per_page=4294967296 response: body: string: '{"total":0,"subtotal":0,"selectable":0,"page":1,"per_page":"4294967296","error":null,"search":null,"sort":{"by":"id","order":"asc"},"results":[]} @@ -279,7 +277,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=96 Strict-Transport-Security: @@ -313,11 +311,11 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: POST - uri: https://foreman.example.org/katello/api/content_view_filters/60/rules + uri: https://foreman.example.org/katello/api/content_view_filters/56/rules response: body: - string: ' {"content_view_filter_id":60,"errata_id":"RHEA-2012:0004","date_type":"updated","id":10,"created_at":"2023-06-05 - 22:35:07 UTC","updated_at":"2023-06-05 22:35:07 UTC"} + string: ' {"content_view_filter_id":56,"errata_id":"RHEA-2012:0004","date_type":"updated","id":10,"created_at":"2024-07-24 + 14:54:48 UTC","updated_at":"2024-07-24 14:54:48 UTC"} ' headers: @@ -340,7 +338,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=95 Strict-Transport-Security: diff --git a/tests/test_playbooks/fixtures/content_view_filter_rule-6.yml b/tests/test_playbooks/fixtures/content_view_filter_rule-6.yml index 32340e2b1..22853cdd7 100644 --- a/tests/test_playbooks/fixtures/content_view_filter_rule-6.yml +++ b/tests/test_playbooks/fixtures/content_view_filter_rule-6.yml @@ -14,14 +14,14 @@ interactions: uri: https://foreman.example.org/api/status response: body: - string: '{"result":"ok","status":200,"version":"3.7.0-rc2","api_version":2}' + string: '{"result":"ok","status":200,"version":"3.12.0-develop","api_version":2}' headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive Content-Length: - - '66' + - '71' 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''; @@ -35,7 +35,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=100 Strict-Transport-Security: @@ -70,8 +70,8 @@ interactions: body: 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-05 - 22:32:12 UTC\",\"updated_at\":\"2023-06-05 22:32:15 UTC\",\"id\":11,\"name\":\"Test + {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\":\"Test_Organization\",\"created_at\":\"2024-07-24 + 14:53:36 UTC\",\"updated_at\":\"2024-07-24 14:53:38 UTC\",\"id\":7,\"name\":\"Test Organization\",\"title\":\"Test Organization\",\"description\":\"A test organization\"}]\n}\n" headers: Cache-Control: @@ -79,7 +79,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '389' + - '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''; @@ -93,7 +93,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=99 Strict-Transport-Security: @@ -123,18 +123,17 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/organizations/11/content_views?search=name%3D%22Test+Content+View%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/organizations/7/content_views?search=name%3D%22Test+Content+View%22&per_page=4294967296 response: body: string: '{"total":2,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Content View\"","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":true,"repository_ids":[31,32,33,34],"id":19,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":11,"organization":{"name":"Test - Organization","label":"Test_Organization","id":11},"created_at":"2023-06-05 - 22:34:51 UTC","updated_at":"2023-06-05 22:34:51 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":31,"name":"Test - Repository","label":"Test_Repository","content_type":"yum"},{"id":32,"name":"Test - Modular Repository","label":"Test_Modular_Repository","content_type":"yum"},{"id":33,"name":"Test - Docker Repository","label":"Test_Docker_Repository","content_type":"docker"},{"id":34,"name":"Test - Debian Repository","label":"Test_Debian_Repository","content_type":"deb"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]}]} + Content View\"","sort":{"by":"name","order":"asc"},"results":[{"composite":false,"component_ids":[],"duplicate_repositories_to_publish":[],"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":[],"filtered":true,"repository_ids":[13,14,15],"id":11,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":7,"organization":{"name":"Test + Organization","label":"Test_Organization","id":7},"created_at":"2024-07-24 + 14:54:40 UTC","updated_at":"2024-07-24 14:54:40 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":13,"name":"Test + Repository","label":"Test_Repository","content_type":"yum"},{"id":14,"name":"Test + Modular Repository","label":"Test_Modular_Repository","content_type":"yum"},{"id":15,"name":"Test + Docker Repository","label":"Test_Docker_Repository","content_type":"docker"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]}]} ' headers: @@ -143,7 +142,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '1353' + - '1270' 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''; @@ -155,9 +154,9 @@ interactions: Foreman_current_location: - ; ANY Foreman_current_organization: - - 11; Test Organization + - 7; Test Organization Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=98 Strict-Transport-Security: @@ -187,21 +186,20 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/content_views/19/filters?search=name%3D%22Test+Content+View+Filter+-+erratum_by_id%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/content_views/11/filters?search=name%3D%22Test+Content+View+Filter+-+erratum_by_id%22&per_page=4294967296 response: body: string: '{"total":10,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Content View Filter - erratum_by_id\"","sort":{"by":"name","order":"asc"},"results":[{"inclusion":false,"id":60,"name":"Test - Content View Filter - erratum_by_id","description":null,"created_at":"2023-06-05 - 22:34:57 UTC","updated_at":"2023-06-05 22:34:57 UTC","content_view":{"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":true,"repository_ids":[31,32,33,34],"id":19,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":11,"organization":{"name":"Test - Organization","label":"Test_Organization","id":11},"created_at":"2023-06-05 - 22:34:51 UTC","updated_at":"2023-06-05 22:34:51 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":31,"name":"Test - Repository","label":"Test_Repository","content_type":"yum"},{"id":32,"name":"Test - Modular Repository","label":"Test_Modular_Repository","content_type":"yum"},{"id":33,"name":"Test - Docker Repository","label":"Test_Docker_Repository","content_type":"docker"},{"id":34,"name":"Test - Debian Repository","label":"Test_Debian_Repository","content_type":"deb"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]},"repositories":[],"type":"erratum","rules":[{"content_view_filter_id":60,"errata_id":"RHEA-2012:0004","date_type":"updated","id":10,"created_at":"2023-06-05 - 22:35:07 UTC","updated_at":"2023-06-05 22:35:07 UTC"}]}]} + Content View Filter - erratum_by_id\"","sort":{"by":"name","order":"asc"},"results":[{"inclusion":false,"id":56,"name":"Test + Content View Filter - erratum_by_id","description":null,"created_at":"2024-07-24 + 14:54:43 UTC","updated_at":"2024-07-24 14:54:43 UTC","content_view":{"composite":false,"component_ids":[],"duplicate_repositories_to_publish":[],"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":[],"filtered":true,"repository_ids":[13,14,15],"id":11,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":7,"organization":{"name":"Test + Organization","label":"Test_Organization","id":7},"created_at":"2024-07-24 + 14:54:40 UTC","updated_at":"2024-07-24 14:54:40 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":13,"name":"Test + Repository","label":"Test_Repository","content_type":"yum"},{"id":14,"name":"Test + Modular Repository","label":"Test_Modular_Repository","content_type":"yum"},{"id":15,"name":"Test + Docker Repository","label":"Test_Docker_Repository","content_type":"docker"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]},"repositories":[],"type":"erratum","rules":[{"content_view_filter_id":56,"errata_id":"RHEA-2012:0004","date_type":"updated","id":10,"created_at":"2024-07-24 + 14:54:48 UTC","updated_at":"2024-07-24 14:54:48 UTC"}]}]} ' headers: @@ -210,7 +208,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '1779' + - '1696' 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''; @@ -224,7 +222,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=97 Strict-Transport-Security: @@ -254,7 +252,7 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/content_view_filters/60/rules?errata_id=RHEA-2012%3A0003&per_page=4294967296 + uri: https://foreman.example.org/katello/api/content_view_filters/56/rules?errata_id=RHEA-2012%3A0003&per_page=4294967296 response: body: string: '{"total":0,"subtotal":0,"selectable":0,"page":1,"per_page":"4294967296","error":null,"search":null,"sort":{"by":"id","order":"asc"},"results":[]} @@ -280,7 +278,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=96 Strict-Transport-Security: @@ -314,11 +312,11 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: POST - uri: https://foreman.example.org/katello/api/content_view_filters/60/rules + uri: https://foreman.example.org/katello/api/content_view_filters/56/rules response: body: - string: ' {"content_view_filter_id":60,"errata_id":"RHEA-2012:0003","date_type":"updated","id":11,"created_at":"2023-06-05 - 22:35:08 UTC","updated_at":"2023-06-05 22:35:08 UTC"} + string: ' {"content_view_filter_id":56,"errata_id":"RHEA-2012:0003","date_type":"updated","id":11,"created_at":"2024-07-24 + 14:54:48 UTC","updated_at":"2024-07-24 14:54:48 UTC"} ' headers: @@ -341,7 +339,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=95 Strict-Transport-Security: diff --git a/tests/test_playbooks/fixtures/content_view_filter_rule-7.yml b/tests/test_playbooks/fixtures/content_view_filter_rule-7.yml index 6fed15f3d..17c7dc2aa 100644 --- a/tests/test_playbooks/fixtures/content_view_filter_rule-7.yml +++ b/tests/test_playbooks/fixtures/content_view_filter_rule-7.yml @@ -14,14 +14,14 @@ interactions: uri: https://foreman.example.org/api/status response: body: - string: '{"result":"ok","status":200,"version":"3.7.0-rc2","api_version":2}' + string: '{"result":"ok","status":200,"version":"3.12.0-develop","api_version":2}' headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive Content-Length: - - '66' + - '71' 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''; @@ -35,7 +35,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=100 Strict-Transport-Security: @@ -70,8 +70,8 @@ interactions: body: 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-05 - 22:32:12 UTC\",\"updated_at\":\"2023-06-05 22:32:15 UTC\",\"id\":11,\"name\":\"Test + {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\":\"Test_Organization\",\"created_at\":\"2024-07-24 + 14:53:36 UTC\",\"updated_at\":\"2024-07-24 14:53:38 UTC\",\"id\":7,\"name\":\"Test Organization\",\"title\":\"Test Organization\",\"description\":\"A test organization\"}]\n}\n" headers: Cache-Control: @@ -79,7 +79,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '389' + - '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''; @@ -93,7 +93,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=99 Strict-Transport-Security: @@ -123,18 +123,17 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/organizations/11/content_views?search=name%3D%22Test+Content+View%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/organizations/7/content_views?search=name%3D%22Test+Content+View%22&per_page=4294967296 response: body: string: '{"total":2,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Content View\"","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":true,"repository_ids":[31,32,33,34],"id":19,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":11,"organization":{"name":"Test - Organization","label":"Test_Organization","id":11},"created_at":"2023-06-05 - 22:34:51 UTC","updated_at":"2023-06-05 22:34:51 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":31,"name":"Test - Repository","label":"Test_Repository","content_type":"yum"},{"id":32,"name":"Test - Modular Repository","label":"Test_Modular_Repository","content_type":"yum"},{"id":33,"name":"Test - Docker Repository","label":"Test_Docker_Repository","content_type":"docker"},{"id":34,"name":"Test - Debian Repository","label":"Test_Debian_Repository","content_type":"deb"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]}]} + Content View\"","sort":{"by":"name","order":"asc"},"results":[{"composite":false,"component_ids":[],"duplicate_repositories_to_publish":[],"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":[],"filtered":true,"repository_ids":[13,14,15],"id":11,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":7,"organization":{"name":"Test + Organization","label":"Test_Organization","id":7},"created_at":"2024-07-24 + 14:54:40 UTC","updated_at":"2024-07-24 14:54:40 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":13,"name":"Test + Repository","label":"Test_Repository","content_type":"yum"},{"id":14,"name":"Test + Modular Repository","label":"Test_Modular_Repository","content_type":"yum"},{"id":15,"name":"Test + Docker Repository","label":"Test_Docker_Repository","content_type":"docker"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]}]} ' headers: @@ -143,7 +142,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '1353' + - '1270' 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''; @@ -155,9 +154,9 @@ interactions: Foreman_current_location: - ; ANY Foreman_current_organization: - - 11; Test Organization + - 7; Test Organization Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=98 Strict-Transport-Security: @@ -187,20 +186,19 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/content_views/19/filters?search=name%3D%22Test+Content+View+Filter+-+erratum_by_date%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/content_views/11/filters?search=name%3D%22Test+Content+View+Filter+-+erratum_by_date%22&per_page=4294967296 response: body: string: '{"total":10,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Content View Filter - erratum_by_date\"","sort":{"by":"name","order":"asc"},"results":[{"inclusion":false,"id":61,"name":"Test - Content View Filter - erratum_by_date","description":null,"created_at":"2023-06-05 - 22:34:58 UTC","updated_at":"2023-06-05 22:34:58 UTC","content_view":{"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":true,"repository_ids":[31,32,33,34],"id":19,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":11,"organization":{"name":"Test - Organization","label":"Test_Organization","id":11},"created_at":"2023-06-05 - 22:34:51 UTC","updated_at":"2023-06-05 22:34:51 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":31,"name":"Test - Repository","label":"Test_Repository","content_type":"yum"},{"id":32,"name":"Test - Modular Repository","label":"Test_Modular_Repository","content_type":"yum"},{"id":33,"name":"Test - Docker Repository","label":"Test_Docker_Repository","content_type":"docker"},{"id":34,"name":"Test - Debian Repository","label":"Test_Debian_Repository","content_type":"deb"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]},"repositories":[],"type":"erratum","rules":[]}]} + Content View Filter - erratum_by_date\"","sort":{"by":"name","order":"asc"},"results":[{"inclusion":false,"id":57,"name":"Test + Content View Filter - erratum_by_date","description":null,"created_at":"2024-07-24 + 14:54:43 UTC","updated_at":"2024-07-24 14:54:43 UTC","content_view":{"composite":false,"component_ids":[],"duplicate_repositories_to_publish":[],"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":[],"filtered":true,"repository_ids":[13,14,15],"id":11,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":7,"organization":{"name":"Test + Organization","label":"Test_Organization","id":7},"created_at":"2024-07-24 + 14:54:40 UTC","updated_at":"2024-07-24 14:54:40 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":13,"name":"Test + Repository","label":"Test_Repository","content_type":"yum"},{"id":14,"name":"Test + Modular Repository","label":"Test_Modular_Repository","content_type":"yum"},{"id":15,"name":"Test + Docker Repository","label":"Test_Docker_Repository","content_type":"docker"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]},"repositories":[],"type":"erratum","rules":[]}]} ' headers: @@ -209,7 +207,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '1617' + - '1534' 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''; @@ -223,7 +221,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=97 Strict-Transport-Security: @@ -253,7 +251,7 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/content_view_filters/61/rules?per_page=4294967296 + uri: https://foreman.example.org/katello/api/content_view_filters/57/rules?per_page=4294967296 response: body: string: '{"total":0,"subtotal":0,"selectable":0,"page":1,"per_page":"4294967296","error":null,"search":null,"sort":{"by":"id","order":"asc"},"results":[]} @@ -279,7 +277,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=96 Strict-Transport-Security: @@ -314,11 +312,11 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: POST - uri: https://foreman.example.org/katello/api/content_view_filters/61/rules + uri: https://foreman.example.org/katello/api/content_view_filters/57/rules response: body: - string: ' {"content_view_filter_id":61,"start_date":"2017-01-03","end_date":"2018-01-03","types":["bugfix","enhancement","security"],"date_type":"updated","id":12,"created_at":"2023-06-05 - 22:35:09 UTC","updated_at":"2023-06-05 22:35:09 UTC"} + string: ' {"content_view_filter_id":57,"start_date":"2017-01-03","end_date":"2018-01-03","types":["bugfix","enhancement","security"],"date_type":"updated","id":12,"created_at":"2024-07-24 + 14:54:49 UTC","updated_at":"2024-07-24 14:54:49 UTC"} ' headers: @@ -341,7 +339,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=95 Strict-Transport-Security: diff --git a/tests/test_playbooks/fixtures/content_view_filter_rule-8.yml b/tests/test_playbooks/fixtures/content_view_filter_rule-8.yml index 6d5c7e473..f9a7bd9a7 100644 --- a/tests/test_playbooks/fixtures/content_view_filter_rule-8.yml +++ b/tests/test_playbooks/fixtures/content_view_filter_rule-8.yml @@ -14,14 +14,14 @@ interactions: uri: https://foreman.example.org/api/status response: body: - string: '{"result":"ok","status":200,"version":"3.7.0-rc2","api_version":2}' + string: '{"result":"ok","status":200,"version":"3.12.0-develop","api_version":2}' headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive Content-Length: - - '66' + - '71' 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''; @@ -35,7 +35,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=100 Strict-Transport-Security: @@ -70,8 +70,8 @@ interactions: body: 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-05 - 22:32:12 UTC\",\"updated_at\":\"2023-06-05 22:32:15 UTC\",\"id\":11,\"name\":\"Test + {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\":\"Test_Organization\",\"created_at\":\"2024-07-24 + 14:53:36 UTC\",\"updated_at\":\"2024-07-24 14:53:38 UTC\",\"id\":7,\"name\":\"Test Organization\",\"title\":\"Test Organization\",\"description\":\"A test organization\"}]\n}\n" headers: Cache-Control: @@ -79,7 +79,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '389' + - '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''; @@ -93,7 +93,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=99 Strict-Transport-Security: @@ -123,18 +123,17 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/organizations/11/content_views?search=name%3D%22Test+Content+View%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/organizations/7/content_views?search=name%3D%22Test+Content+View%22&per_page=4294967296 response: body: string: '{"total":2,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Content View\"","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":true,"repository_ids":[31,32,33,34],"id":19,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":11,"organization":{"name":"Test - Organization","label":"Test_Organization","id":11},"created_at":"2023-06-05 - 22:34:51 UTC","updated_at":"2023-06-05 22:34:51 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":31,"name":"Test - Repository","label":"Test_Repository","content_type":"yum"},{"id":32,"name":"Test - Modular Repository","label":"Test_Modular_Repository","content_type":"yum"},{"id":33,"name":"Test - Docker Repository","label":"Test_Docker_Repository","content_type":"docker"},{"id":34,"name":"Test - Debian Repository","label":"Test_Debian_Repository","content_type":"deb"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]}]} + Content View\"","sort":{"by":"name","order":"asc"},"results":[{"composite":false,"component_ids":[],"duplicate_repositories_to_publish":[],"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":[],"filtered":true,"repository_ids":[13,14,15],"id":11,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":7,"organization":{"name":"Test + Organization","label":"Test_Organization","id":7},"created_at":"2024-07-24 + 14:54:40 UTC","updated_at":"2024-07-24 14:54:40 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":13,"name":"Test + Repository","label":"Test_Repository","content_type":"yum"},{"id":14,"name":"Test + Modular Repository","label":"Test_Modular_Repository","content_type":"yum"},{"id":15,"name":"Test + Docker Repository","label":"Test_Docker_Repository","content_type":"docker"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]}]} ' headers: @@ -143,7 +142,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '1353' + - '1270' 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''; @@ -155,9 +154,9 @@ interactions: Foreman_current_location: - ; ANY Foreman_current_organization: - - 11; Test Organization + - 7; Test Organization Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=98 Strict-Transport-Security: @@ -187,21 +186,20 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/content_views/19/filters?search=name%3D%22Test+Content+View+Filter+-+erratum_by_date%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/content_views/11/filters?search=name%3D%22Test+Content+View+Filter+-+erratum_by_date%22&per_page=4294967296 response: body: string: '{"total":10,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Content View Filter - erratum_by_date\"","sort":{"by":"name","order":"asc"},"results":[{"inclusion":false,"id":61,"name":"Test - Content View Filter - erratum_by_date","description":null,"created_at":"2023-06-05 - 22:34:58 UTC","updated_at":"2023-06-05 22:34:58 UTC","content_view":{"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":true,"repository_ids":[31,32,33,34],"id":19,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":11,"organization":{"name":"Test - Organization","label":"Test_Organization","id":11},"created_at":"2023-06-05 - 22:34:51 UTC","updated_at":"2023-06-05 22:34:51 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":31,"name":"Test - Repository","label":"Test_Repository","content_type":"yum"},{"id":32,"name":"Test - Modular Repository","label":"Test_Modular_Repository","content_type":"yum"},{"id":33,"name":"Test - Docker Repository","label":"Test_Docker_Repository","content_type":"docker"},{"id":34,"name":"Test - Debian Repository","label":"Test_Debian_Repository","content_type":"deb"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]},"repositories":[],"type":"erratum","rules":[{"content_view_filter_id":61,"start_date":"2017-01-03","end_date":"2018-01-03","types":["bugfix","enhancement","security"],"date_type":"updated","id":12,"created_at":"2023-06-05 - 22:35:09 UTC","updated_at":"2023-06-05 22:35:09 UTC"}]}]} + Content View Filter - erratum_by_date\"","sort":{"by":"name","order":"asc"},"results":[{"inclusion":false,"id":57,"name":"Test + Content View Filter - erratum_by_date","description":null,"created_at":"2024-07-24 + 14:54:43 UTC","updated_at":"2024-07-24 14:54:43 UTC","content_view":{"composite":false,"component_ids":[],"duplicate_repositories_to_publish":[],"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":[],"filtered":true,"repository_ids":[13,14,15],"id":11,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":7,"organization":{"name":"Test + Organization","label":"Test_Organization","id":7},"created_at":"2024-07-24 + 14:54:40 UTC","updated_at":"2024-07-24 14:54:40 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":13,"name":"Test + Repository","label":"Test_Repository","content_type":"yum"},{"id":14,"name":"Test + Modular Repository","label":"Test_Modular_Repository","content_type":"yum"},{"id":15,"name":"Test + Docker Repository","label":"Test_Docker_Repository","content_type":"docker"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]},"repositories":[],"type":"erratum","rules":[{"content_view_filter_id":57,"start_date":"2017-01-03","end_date":"2018-01-03","types":["bugfix","enhancement","security"],"date_type":"updated","id":12,"created_at":"2024-07-24 + 14:54:49 UTC","updated_at":"2024-07-24 14:54:49 UTC"}]}]} ' headers: @@ -210,7 +208,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '1848' + - '1765' 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''; @@ -224,7 +222,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=97 Strict-Transport-Security: @@ -254,11 +252,11 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/content_view_filters/61/rules?per_page=4294967296 + uri: https://foreman.example.org/katello/api/content_view_filters/57/rules?per_page=4294967296 response: body: - string: '{"total":1,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":null,"sort":{"by":"id","order":"asc"},"results":[{"content_view_filter_id":61,"start_date":"2017-01-03","end_date":"2018-01-03","types":["bugfix","enhancement","security"],"date_type":"updated","id":12,"created_at":"2023-06-05 - 22:35:09 UTC","updated_at":"2023-06-05 22:35:09 UTC"}]} + string: '{"total":1,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":null,"sort":{"by":"id","order":"asc"},"results":[{"content_view_filter_id":57,"start_date":"2017-01-03","end_date":"2018-01-03","types":["bugfix","enhancement","security"],"date_type":"updated","id":12,"created_at":"2024-07-24 + 14:54:49 UTC","updated_at":"2024-07-24 14:54:49 UTC"}]} ' headers: @@ -281,7 +279,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=96 Strict-Transport-Security: @@ -311,11 +309,11 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/content_view_filters/61/rules/12 + uri: https://foreman.example.org/katello/api/content_view_filters/57/rules/12 response: body: - string: ' {"content_view_filter_id":61,"start_date":"2017-01-03","end_date":"2018-01-03","types":["bugfix","enhancement","security"],"date_type":"updated","id":12,"created_at":"2023-06-05 - 22:35:09 UTC","updated_at":"2023-06-05 22:35:09 UTC"} + string: ' {"content_view_filter_id":57,"start_date":"2017-01-03","end_date":"2018-01-03","types":["bugfix","enhancement","security"],"date_type":"updated","id":12,"created_at":"2024-07-24 + 14:54:49 UTC","updated_at":"2024-07-24 14:54:49 UTC"} ' headers: @@ -338,7 +336,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=95 Strict-Transport-Security: @@ -372,11 +370,11 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: PUT - uri: https://foreman.example.org/katello/api/content_view_filters/61/rules/12 + uri: https://foreman.example.org/katello/api/content_view_filters/57/rules/12 response: body: - string: ' {"content_view_filter_id":61,"start_date":"2017-01-03","end_date":"2019-01-03","types":["bugfix","enhancement","security"],"date_type":"updated","id":12,"created_at":"2023-06-05 - 22:35:09 UTC","updated_at":"2023-06-05 22:35:10 UTC"} + string: ' {"content_view_filter_id":57,"start_date":"2017-01-03","end_date":"2019-01-03","types":["bugfix","enhancement","security"],"date_type":"updated","id":12,"created_at":"2024-07-24 + 14:54:49 UTC","updated_at":"2024-07-24 14:54:49 UTC"} ' headers: @@ -399,7 +397,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=94 Strict-Transport-Security: diff --git a/tests/test_playbooks/fixtures/content_view_filter_rule-9.yml b/tests/test_playbooks/fixtures/content_view_filter_rule-9.yml index fd68765e4..4ae3f0f12 100644 --- a/tests/test_playbooks/fixtures/content_view_filter_rule-9.yml +++ b/tests/test_playbooks/fixtures/content_view_filter_rule-9.yml @@ -14,14 +14,14 @@ interactions: uri: https://foreman.example.org/api/status response: body: - string: '{"result":"ok","status":200,"version":"3.7.0-rc2","api_version":2}' + string: '{"result":"ok","status":200,"version":"3.12.0-develop","api_version":2}' headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive Content-Length: - - '66' + - '71' 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''; @@ -35,7 +35,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=100 Strict-Transport-Security: @@ -70,8 +70,8 @@ interactions: body: 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-05 - 22:32:12 UTC\",\"updated_at\":\"2023-06-05 22:32:15 UTC\",\"id\":11,\"name\":\"Test + {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\":\"Test_Organization\",\"created_at\":\"2024-07-24 + 14:53:36 UTC\",\"updated_at\":\"2024-07-24 14:53:38 UTC\",\"id\":7,\"name\":\"Test Organization\",\"title\":\"Test Organization\",\"description\":\"A test organization\"}]\n}\n" headers: Cache-Control: @@ -79,7 +79,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '389' + - '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''; @@ -93,7 +93,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=99 Strict-Transport-Security: @@ -123,18 +123,17 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/organizations/11/content_views?search=name%3D%22Test+Content+View%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/organizations/7/content_views?search=name%3D%22Test+Content+View%22&per_page=4294967296 response: body: string: '{"total":2,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Content View\"","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":true,"repository_ids":[31,32,33,34],"id":19,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":11,"organization":{"name":"Test - Organization","label":"Test_Organization","id":11},"created_at":"2023-06-05 - 22:34:51 UTC","updated_at":"2023-06-05 22:34:51 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":31,"name":"Test - Repository","label":"Test_Repository","content_type":"yum"},{"id":32,"name":"Test - Modular Repository","label":"Test_Modular_Repository","content_type":"yum"},{"id":33,"name":"Test - Docker Repository","label":"Test_Docker_Repository","content_type":"docker"},{"id":34,"name":"Test - Debian Repository","label":"Test_Debian_Repository","content_type":"deb"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]}]} + Content View\"","sort":{"by":"name","order":"asc"},"results":[{"composite":false,"component_ids":[],"duplicate_repositories_to_publish":[],"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":[],"filtered":true,"repository_ids":[13,14,15],"id":11,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":7,"organization":{"name":"Test + Organization","label":"Test_Organization","id":7},"created_at":"2024-07-24 + 14:54:40 UTC","updated_at":"2024-07-24 14:54:40 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":13,"name":"Test + Repository","label":"Test_Repository","content_type":"yum"},{"id":14,"name":"Test + Modular Repository","label":"Test_Modular_Repository","content_type":"yum"},{"id":15,"name":"Test + Docker Repository","label":"Test_Docker_Repository","content_type":"docker"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]}]} ' headers: @@ -143,7 +142,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '1353' + - '1270' 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''; @@ -155,9 +154,9 @@ interactions: Foreman_current_location: - ; ANY Foreman_current_organization: - - 11; Test Organization + - 7; Test Organization Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=98 Strict-Transport-Security: @@ -187,20 +186,19 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/content_views/19/filters?search=name%3D%22Test+Content+View+Filter+-+docker%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/content_views/11/filters?search=name%3D%22Test+Content+View+Filter+-+docker%22&per_page=4294967296 response: body: string: '{"total":10,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Content View Filter - docker\"","sort":{"by":"name","order":"asc"},"results":[{"inclusion":false,"id":62,"name":"Test - Content View Filter - docker","description":null,"created_at":"2023-06-05 - 22:34:59 UTC","updated_at":"2023-06-05 22:34:59 UTC","content_view":{"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":true,"repository_ids":[31,32,33,34],"id":19,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":11,"organization":{"name":"Test - Organization","label":"Test_Organization","id":11},"created_at":"2023-06-05 - 22:34:51 UTC","updated_at":"2023-06-05 22:34:51 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":31,"name":"Test - Repository","label":"Test_Repository","content_type":"yum"},{"id":32,"name":"Test - Modular Repository","label":"Test_Modular_Repository","content_type":"yum"},{"id":33,"name":"Test - Docker Repository","label":"Test_Docker_Repository","content_type":"docker"},{"id":34,"name":"Test - Debian Repository","label":"Test_Debian_Repository","content_type":"deb"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]},"repositories":[],"type":"docker","rules":[]}]} + Content View Filter - docker\"","sort":{"by":"name","order":"asc"},"results":[{"inclusion":false,"id":58,"name":"Test + Content View Filter - docker","description":null,"created_at":"2024-07-24 + 14:54:44 UTC","updated_at":"2024-07-24 14:54:44 UTC","content_view":{"composite":false,"component_ids":[],"duplicate_repositories_to_publish":[],"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":[],"filtered":true,"repository_ids":[13,14,15],"id":11,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":7,"organization":{"name":"Test + Organization","label":"Test_Organization","id":7},"created_at":"2024-07-24 + 14:54:40 UTC","updated_at":"2024-07-24 14:54:40 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":13,"name":"Test + Repository","label":"Test_Repository","content_type":"yum"},{"id":14,"name":"Test + Modular Repository","label":"Test_Modular_Repository","content_type":"yum"},{"id":15,"name":"Test + Docker Repository","label":"Test_Docker_Repository","content_type":"docker"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]},"repositories":[],"type":"docker","rules":[]}]} ' headers: @@ -209,7 +207,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '1598' + - '1515' 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''; @@ -223,7 +221,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=97 Strict-Transport-Security: @@ -253,7 +251,7 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/content_view_filters/62/rules?search=name%3D%228.7-929%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/content_view_filters/58/rules?search=name%3D%228.7-929%22&per_page=4294967296 response: body: string: '{"total":0,"subtotal":0,"selectable":0,"page":1,"per_page":"4294967296","error":null,"search":"name=\"8.7-929\"","sort":{"by":"id","order":"asc"},"results":[]} @@ -279,7 +277,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=96 Strict-Transport-Security: @@ -313,11 +311,11 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: POST - uri: https://foreman.example.org/katello/api/content_view_filters/62/rules + uri: https://foreman.example.org/katello/api/content_view_filters/58/rules response: body: - string: ' {"content_view_filter_id":62,"id":6,"name":"8.7-929","created_at":"2023-06-05 - 22:35:11 UTC","updated_at":"2023-06-05 22:35:11 UTC"} + string: ' {"content_view_filter_id":58,"id":7,"name":"8.7-929","created_at":"2024-07-24 + 14:54:50 UTC","updated_at":"2024-07-24 14:54:50 UTC"} ' headers: @@ -340,7 +338,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=95 Strict-Transport-Security: diff --git a/tests/test_playbooks/fixtures/content_view_filter_rule_deb-0.yml b/tests/test_playbooks/fixtures/content_view_filter_rule_deb-0.yml new file mode 100644 index 000000000..9839810ae --- /dev/null +++ b/tests/test_playbooks/fixtures/content_view_filter_rule_deb-0.yml @@ -0,0 +1,355 @@ +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: '{"result":"ok","status":200,"version":"3.12.0-develop","api_version":2}' + headers: + Cache-Control: + - max-age=0, private, must-revalidate + Connection: + - Keep-Alive + Content-Length: + - '71' + 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.12.0-develop + Keep-Alive: + - timeout=15, max=100 + 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?search=name%3D%22Test+Organization%22&per_page=4294967296 + response: + body: + 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\":\"2024-07-24 + 14:58:36 UTC\",\"updated_at\":\"2024-07-24 14:58:38 UTC\",\"id\":8,\"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''; + 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.12.0-develop + Keep-Alive: + - timeout=15, max=99 + 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/8/content_views?search=name%3D%22Test+Content+View%22&per_page=4294967296 + response: + body: + string: '{"total":2,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test + Content View\"","sort":{"by":"name","order":"asc"},"results":[{"composite":false,"component_ids":[],"duplicate_repositories_to_publish":[],"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":[],"filtered":true,"repository_ids":[16],"id":13,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":8,"organization":{"name":"Test + Organization","label":"Test_Organization","id":8},"created_at":"2024-07-24 + 14:58:54 UTC","updated_at":"2024-07-24 14:58:54 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":16,"name":"Test + Debian Repository","label":"Test_Debian_Repository","content_type":"deb"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]}]} + + ' + headers: + Cache-Control: + - max-age=0, private, must-revalidate + Connection: + - Keep-Alive + Content-Length: + - '1081' + 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: + - 8; Test Organization + Foreman_version: + - 3.12.0-develop + Keep-Alive: + - timeout=15, max=98 + 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/content_views/13/filters?search=name%3D%22Test+Content+View+Filter+-+deb%22&per_page=4294967296 + response: + body: + string: '{"total":10,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test + Content View Filter - deb\"","sort":{"by":"name","order":"asc"},"results":[{"inclusion":false,"id":70,"name":"Test + Content View Filter - deb","description":null,"created_at":"2024-07-24 14:58:59 + UTC","updated_at":"2024-07-24 14:58:59 UTC","content_view":{"composite":false,"component_ids":[],"duplicate_repositories_to_publish":[],"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":[],"filtered":true,"repository_ids":[16],"id":13,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":8,"organization":{"name":"Test + Organization","label":"Test_Organization","id":8},"created_at":"2024-07-24 + 14:58:54 UTC","updated_at":"2024-07-24 14:58:54 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":16,"name":"Test + Debian Repository","label":"Test_Debian_Repository","content_type":"deb"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]},"repositories":[],"type":"deb","rules":[]}]} + + ' + headers: + Cache-Control: + - max-age=0, private, must-revalidate + Connection: + - Keep-Alive + Content-Length: + - '1317' + 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.12.0-develop + 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/content_view_filters/70/rules?search=name%3D%22bear%22&per_page=4294967296 + response: + body: + string: '{"total":0,"subtotal":0,"selectable":0,"page":1,"per_page":"4294967296","error":null,"search":"name=\"bear\"","sort":{"by":"id","order":"asc"},"results":[]} + + ' + headers: + Cache-Control: + - max-age=0, private, must-revalidate + Connection: + - Keep-Alive + Content-Length: + - '157' + 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.12.0-develop + 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: '{"name": "bear"}' + headers: + Accept: + - application/json;version=2 + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '16' + Content-Type: + - application/json + User-Agent: + - apypie (https://github.com/Apipie/apypie) + method: POST + uri: https://foreman.example.org/katello/api/content_view_filters/70/rules + response: + body: + string: ' {"content_view_filter_id":70,"id":11,"name":"bear","created_at":"2024-07-24 + 15:00:12 UTC","updated_at":"2024-07-24 15:00:12 UTC"} + + ' + headers: + Cache-Control: + - max-age=0, private, must-revalidate + Connection: + - Keep-Alive + Content-Length: + - '132' + 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.12.0-develop + 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/content_view_filter_rule-28.yml b/tests/test_playbooks/fixtures/content_view_filter_rule_deb-1.yml similarity index 72% rename from tests/test_playbooks/fixtures/content_view_filter_rule-28.yml rename to tests/test_playbooks/fixtures/content_view_filter_rule_deb-1.yml index b3ce764b0..37c820d5b 100644 --- a/tests/test_playbooks/fixtures/content_view_filter_rule-28.yml +++ b/tests/test_playbooks/fixtures/content_view_filter_rule_deb-1.yml @@ -14,14 +14,14 @@ interactions: uri: https://foreman.example.org/api/status response: body: - string: '{"result":"ok","status":200,"version":"3.7.0-rc2","api_version":2}' + string: '{"result":"ok","status":200,"version":"3.12.0-develop","api_version":2}' headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive Content-Length: - - '66' + - '71' 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''; @@ -35,7 +35,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=100 Strict-Transport-Security: @@ -70,8 +70,8 @@ interactions: body: 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-05 - 22:32:12 UTC\",\"updated_at\":\"2023-06-05 22:32:15 UTC\",\"id\":11,\"name\":\"Test + {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\":\"Test_Organization\",\"created_at\":\"2024-07-24 + 14:58:36 UTC\",\"updated_at\":\"2024-07-24 14:58:38 UTC\",\"id\":8,\"name\":\"Test Organization\",\"title\":\"Test Organization\",\"description\":\"A test organization\"}]\n}\n" headers: Cache-Control: @@ -79,7 +79,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '389' + - '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''; @@ -93,7 +93,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=99 Strict-Transport-Security: @@ -123,17 +123,14 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/organizations/11/content_views?search=name%3D%22Test+Content+View%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/organizations/8/content_views?search=name%3D%22Test+Content+View%22&per_page=4294967296 response: body: string: '{"total":2,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Content View\"","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":true,"repository_ids":[31,32,33,34],"id":19,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":11,"organization":{"name":"Test - Organization","label":"Test_Organization","id":11},"created_at":"2023-06-05 - 22:34:51 UTC","updated_at":"2023-06-05 22:34:51 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":31,"name":"Test - Repository","label":"Test_Repository","content_type":"yum"},{"id":32,"name":"Test - Modular Repository","label":"Test_Modular_Repository","content_type":"yum"},{"id":33,"name":"Test - Docker Repository","label":"Test_Docker_Repository","content_type":"docker"},{"id":34,"name":"Test + Content View\"","sort":{"by":"name","order":"asc"},"results":[{"composite":false,"component_ids":[],"duplicate_repositories_to_publish":[],"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":[],"filtered":true,"repository_ids":[16],"id":13,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":8,"organization":{"name":"Test + Organization","label":"Test_Organization","id":8},"created_at":"2024-07-24 + 14:58:54 UTC","updated_at":"2024-07-24 14:58:54 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":16,"name":"Test Debian Repository","label":"Test_Debian_Repository","content_type":"deb"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]}]} ' @@ -143,7 +140,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '1353' + - '1081' 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''; @@ -155,9 +152,9 @@ interactions: Foreman_current_location: - ; ANY Foreman_current_organization: - - 11; Test Organization + - 8; Test Organization Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=98 Strict-Transport-Security: @@ -187,21 +184,18 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/content_views/19/filters?search=name%3D%22Test+Content+View+Filter+-+docker%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/content_views/13/filters?search=name%3D%22Test+Content+View+Filter+-+deb%22&per_page=4294967296 response: body: string: '{"total":10,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Content View Filter - docker\"","sort":{"by":"name","order":"asc"},"results":[{"inclusion":false,"id":62,"name":"Test - Content View Filter - docker","description":null,"created_at":"2023-06-05 - 22:34:59 UTC","updated_at":"2023-06-05 22:34:59 UTC","content_view":{"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":true,"repository_ids":[31,32,33,34],"id":19,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":11,"organization":{"name":"Test - Organization","label":"Test_Organization","id":11},"created_at":"2023-06-05 - 22:34:51 UTC","updated_at":"2023-06-05 22:34:51 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":31,"name":"Test - Repository","label":"Test_Repository","content_type":"yum"},{"id":32,"name":"Test - Modular Repository","label":"Test_Modular_Repository","content_type":"yum"},{"id":33,"name":"Test - Docker Repository","label":"Test_Docker_Repository","content_type":"docker"},{"id":34,"name":"Test - Debian Repository","label":"Test_Debian_Repository","content_type":"deb"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]},"repositories":[],"type":"docker","rules":[{"content_view_filter_id":62,"id":7,"name":"8.6-990","created_at":"2023-06-05 - 22:35:12 UTC","updated_at":"2023-06-05 22:35:12 UTC"}]}]} + Content View Filter - deb\"","sort":{"by":"name","order":"asc"},"results":[{"inclusion":false,"id":70,"name":"Test + Content View Filter - deb","description":null,"created_at":"2024-07-24 14:58:59 + UTC","updated_at":"2024-07-24 14:58:59 UTC","content_view":{"composite":false,"component_ids":[],"duplicate_repositories_to_publish":[],"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":[],"filtered":true,"repository_ids":[16],"id":13,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":8,"organization":{"name":"Test + Organization","label":"Test_Organization","id":8},"created_at":"2024-07-24 + 14:58:54 UTC","updated_at":"2024-07-24 14:58:54 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":16,"name":"Test + Debian Repository","label":"Test_Debian_Repository","content_type":"deb"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]},"repositories":[],"type":"deb","rules":[{"content_view_filter_id":70,"id":11,"name":"bear","created_at":"2024-07-24 + 15:00:12 UTC","updated_at":"2024-07-24 15:00:12 UTC"}]}]} ' headers: @@ -210,7 +204,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '1729' + - '1446' 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''; @@ -224,7 +218,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=97 Strict-Transport-Security: @@ -254,11 +248,10 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/content_view_filters/62/rules?search=name%3D%228.6-990%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/content_view_filters/70/rules?search=name%3D%22camel%22&per_page=4294967296 response: body: - string: '{"total":1,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"8.6-990\"","sort":{"by":"id","order":"asc"},"results":[{"content_view_filter_id":62,"id":7,"name":"8.6-990","created_at":"2023-06-05 - 22:35:12 UTC","updated_at":"2023-06-05 22:35:12 UTC"}]} + string: '{"total":1,"subtotal":0,"selectable":0,"page":1,"per_page":"4294967296","error":null,"search":"name=\"camel\"","sort":{"by":"id","order":"asc"},"results":[]} ' headers: @@ -267,7 +260,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '291' + - '158' 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''; @@ -281,7 +274,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=96 Strict-Transport-Security: @@ -300,7 +293,7 @@ interactions: code: 200 message: OK - request: - body: null + body: '{"name": "camel"}' headers: Accept: - application/json;version=2 @@ -309,15 +302,17 @@ interactions: Connection: - keep-alive Content-Length: - - '0' + - '17' + Content-Type: + - application/json User-Agent: - apypie (https://github.com/Apipie/apypie) - method: DELETE - uri: https://foreman.example.org/katello/api/content_view_filters/62/rules/7 + method: POST + uri: https://foreman.example.org/katello/api/content_view_filters/70/rules response: body: - string: ' {"content_view_filter_id":62,"id":7,"name":"8.6-990","created_at":"2023-06-05 - 22:35:12 UTC","updated_at":"2023-06-05 22:35:12 UTC"} + string: ' {"content_view_filter_id":70,"id":12,"name":"camel","created_at":"2024-07-24 + 15:00:13 UTC","updated_at":"2024-07-24 15:00:13 UTC"} ' headers: @@ -326,7 +321,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '134' + - '133' 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''; @@ -340,7 +335,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=95 Strict-Transport-Security: @@ -356,6 +351,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/content_view_filter_rule_info-6.yml b/tests/test_playbooks/fixtures/content_view_filter_rule_deb-2.yml similarity index 75% rename from tests/test_playbooks/fixtures/content_view_filter_rule_info-6.yml rename to tests/test_playbooks/fixtures/content_view_filter_rule_deb-2.yml index 574f70c3f..337b1c02c 100644 --- a/tests/test_playbooks/fixtures/content_view_filter_rule_info-6.yml +++ b/tests/test_playbooks/fixtures/content_view_filter_rule_deb-2.yml @@ -14,14 +14,14 @@ interactions: uri: https://foreman.example.org/api/status response: body: - string: '{"result":"ok","status":200,"version":"3.7.0-rc2","api_version":2}' + string: '{"result":"ok","status":200,"version":"3.12.0-develop","api_version":2}' headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive Content-Length: - - '66' + - '71' 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''; @@ -35,7 +35,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=100 Strict-Transport-Security: @@ -70,8 +70,8 @@ interactions: body: 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-05 - 22:27:50 UTC\",\"updated_at\":\"2023-06-05 22:27:54 UTC\",\"id\":10,\"name\":\"Test + {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\":\"Test_Organization\",\"created_at\":\"2024-07-24 + 14:58:36 UTC\",\"updated_at\":\"2024-07-24 14:58:38 UTC\",\"id\":8,\"name\":\"Test Organization\",\"title\":\"Test Organization\",\"description\":\"A test organization\"}]\n}\n" headers: Cache-Control: @@ -79,7 +79,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '389' + - '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''; @@ -93,7 +93,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=99 Strict-Transport-Security: @@ -123,17 +123,14 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/organizations/10/content_views?search=name%3D%22Test+Content+View%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/organizations/8/content_views?search=name%3D%22Test+Content+View%22&per_page=4294967296 response: body: string: '{"total":2,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Content View\"","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":true,"repository_ids":[27,28,29,30],"id":17,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":10,"organization":{"name":"Test - Organization","label":"Test_Organization","id":10},"created_at":"2023-06-05 - 22:29:16 UTC","updated_at":"2023-06-05 22:29:16 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":27,"name":"Test - Repository","label":"Test_Repository","content_type":"yum"},{"id":28,"name":"Test - Modular Repository","label":"Test_Modular_Repository","content_type":"yum"},{"id":29,"name":"Test - Docker Repository","label":"Test_Docker_Repository","content_type":"docker"},{"id":30,"name":"Test + Content View\"","sort":{"by":"name","order":"asc"},"results":[{"composite":false,"component_ids":[],"duplicate_repositories_to_publish":[],"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":[],"filtered":true,"repository_ids":[16],"id":13,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":8,"organization":{"name":"Test + Organization","label":"Test_Organization","id":8},"created_at":"2024-07-24 + 14:58:54 UTC","updated_at":"2024-07-24 14:58:54 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":16,"name":"Test Debian Repository","label":"Test_Debian_Repository","content_type":"deb"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]}]} ' @@ -143,7 +140,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '1353' + - '1081' 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''; @@ -155,9 +152,9 @@ interactions: Foreman_current_location: - ; ANY Foreman_current_organization: - - 10; Test Organization + - 8; Test Organization Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=98 Strict-Transport-Security: @@ -187,22 +184,19 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/content_views/17/filters?search=name%3D%22Test+Content+View+Filter+-+deb%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/content_views/13/filters?search=name%3D%22Test+Content+View+Filter+-+deb%22&per_page=4294967296 response: body: string: '{"total":10,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Content View Filter - deb\"","sort":{"by":"name","order":"asc"},"results":[{"inclusion":false,"id":54,"name":"Test - Content View Filter - deb","description":null,"created_at":"2023-06-05 22:29:28 - UTC","updated_at":"2023-06-05 22:29:28 UTC","content_view":{"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":true,"repository_ids":[27,28,29,30],"id":17,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":10,"organization":{"name":"Test - Organization","label":"Test_Organization","id":10},"created_at":"2023-06-05 - 22:29:16 UTC","updated_at":"2023-06-05 22:29:16 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":27,"name":"Test - Repository","label":"Test_Repository","content_type":"yum"},{"id":28,"name":"Test - Modular Repository","label":"Test_Modular_Repository","content_type":"yum"},{"id":29,"name":"Test - Docker Repository","label":"Test_Docker_Repository","content_type":"docker"},{"id":30,"name":"Test - Debian Repository","label":"Test_Debian_Repository","content_type":"deb"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]},"repositories":[],"type":"deb","rules":[{"content_view_filter_id":54,"id":1,"name":"bear","created_at":"2023-06-05 - 22:29:46 UTC","updated_at":"2023-06-05 22:29:46 UTC"},{"content_view_filter_id":54,"id":2,"name":"camel","created_at":"2023-06-05 - 22:29:46 UTC","updated_at":"2023-06-05 22:29:46 UTC"}]}]} + Content View Filter - deb\"","sort":{"by":"name","order":"asc"},"results":[{"inclusion":false,"id":70,"name":"Test + Content View Filter - deb","description":null,"created_at":"2024-07-24 14:58:59 + UTC","updated_at":"2024-07-24 14:58:59 UTC","content_view":{"composite":false,"component_ids":[],"duplicate_repositories_to_publish":[],"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":[],"filtered":true,"repository_ids":[16],"id":13,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":8,"organization":{"name":"Test + Organization","label":"Test_Organization","id":8},"created_at":"2024-07-24 + 14:58:54 UTC","updated_at":"2024-07-24 14:58:54 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":16,"name":"Test + Debian Repository","label":"Test_Debian_Repository","content_type":"deb"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]},"repositories":[],"type":"deb","rules":[{"content_view_filter_id":70,"id":11,"name":"bear","created_at":"2024-07-24 + 15:00:12 UTC","updated_at":"2024-07-24 15:00:12 UTC"},{"content_view_filter_id":70,"id":12,"name":"camel","created_at":"2024-07-24 + 15:00:13 UTC","updated_at":"2024-07-24 15:00:13 UTC"}]}]} ' headers: @@ -211,7 +205,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '1847' + - '1577' 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''; @@ -225,7 +219,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=97 Strict-Transport-Security: @@ -255,11 +249,11 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/content_view_filters/54/rules?search=name%3D%22bear%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/content_view_filters/70/rules?search=name%3D%22bear%22&per_page=4294967296 response: body: - string: '{"total":2,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"bear\"","sort":{"by":"id","order":"asc"},"results":[{"content_view_filter_id":54,"id":1,"name":"bear","created_at":"2023-06-05 - 22:29:46 UTC","updated_at":"2023-06-05 22:29:46 UTC"}]} + string: '{"total":2,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"bear\"","sort":{"by":"id","order":"asc"},"results":[{"content_view_filter_id":70,"id":11,"name":"bear","created_at":"2024-07-24 + 15:00:12 UTC","updated_at":"2024-07-24 15:00:12 UTC"}]} ' headers: @@ -268,7 +262,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '285' + - '286' 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''; @@ -282,7 +276,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=96 Strict-Transport-Security: @@ -312,11 +306,11 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/content_view_filters/54/rules/1 + uri: https://foreman.example.org/katello/api/content_view_filters/70/rules/11 response: body: - string: ' {"content_view_filter_id":54,"id":1,"name":"bear","created_at":"2023-06-05 - 22:29:46 UTC","updated_at":"2023-06-05 22:29:46 UTC"} + string: ' {"content_view_filter_id":70,"id":11,"name":"bear","created_at":"2024-07-24 + 15:00:12 UTC","updated_at":"2024-07-24 15:00:12 UTC"} ' headers: @@ -325,7 +319,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '131' + - '132' 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''; @@ -339,7 +333,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=95 Strict-Transport-Security: diff --git a/tests/test_playbooks/fixtures/content_view_filter_rule-31.yml b/tests/test_playbooks/fixtures/content_view_filter_rule_deb-3.yml similarity index 75% rename from tests/test_playbooks/fixtures/content_view_filter_rule-31.yml rename to tests/test_playbooks/fixtures/content_view_filter_rule_deb-3.yml index b739d0dca..bd675923e 100644 --- a/tests/test_playbooks/fixtures/content_view_filter_rule-31.yml +++ b/tests/test_playbooks/fixtures/content_view_filter_rule_deb-3.yml @@ -14,14 +14,14 @@ interactions: uri: https://foreman.example.org/api/status response: body: - string: '{"result":"ok","status":200,"version":"3.7.0-rc2","api_version":2}' + string: '{"result":"ok","status":200,"version":"3.12.0-develop","api_version":2}' headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive Content-Length: - - '66' + - '71' 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''; @@ -35,7 +35,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=100 Strict-Transport-Security: @@ -70,8 +70,8 @@ interactions: body: 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-05 - 22:32:12 UTC\",\"updated_at\":\"2023-06-05 22:32:15 UTC\",\"id\":11,\"name\":\"Test + {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\":\"Test_Organization\",\"created_at\":\"2024-07-24 + 14:58:36 UTC\",\"updated_at\":\"2024-07-24 14:58:38 UTC\",\"id\":8,\"name\":\"Test Organization\",\"title\":\"Test Organization\",\"description\":\"A test organization\"}]\n}\n" headers: Cache-Control: @@ -79,7 +79,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '389' + - '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''; @@ -93,7 +93,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=99 Strict-Transport-Security: @@ -123,17 +123,14 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/organizations/11/content_views?search=name%3D%22Test+Content+View%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/organizations/8/content_views?search=name%3D%22Test+Content+View%22&per_page=4294967296 response: body: string: '{"total":2,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Content View\"","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":true,"repository_ids":[31,32,33,34],"id":19,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":11,"organization":{"name":"Test - Organization","label":"Test_Organization","id":11},"created_at":"2023-06-05 - 22:34:51 UTC","updated_at":"2023-06-05 22:34:51 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":31,"name":"Test - Repository","label":"Test_Repository","content_type":"yum"},{"id":32,"name":"Test - Modular Repository","label":"Test_Modular_Repository","content_type":"yum"},{"id":33,"name":"Test - Docker Repository","label":"Test_Docker_Repository","content_type":"docker"},{"id":34,"name":"Test + Content View\"","sort":{"by":"name","order":"asc"},"results":[{"composite":false,"component_ids":[],"duplicate_repositories_to_publish":[],"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":[],"filtered":true,"repository_ids":[16],"id":13,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":8,"organization":{"name":"Test + Organization","label":"Test_Organization","id":8},"created_at":"2024-07-24 + 14:58:54 UTC","updated_at":"2024-07-24 14:58:54 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":16,"name":"Test Debian Repository","label":"Test_Debian_Repository","content_type":"deb"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]}]} ' @@ -143,7 +140,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '1353' + - '1081' 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''; @@ -155,9 +152,9 @@ interactions: Foreman_current_location: - ; ANY Foreman_current_organization: - - 11; Test Organization + - 8; Test Organization Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=98 Strict-Transport-Security: @@ -187,22 +184,19 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/content_views/19/filters?search=name%3D%22Test+Content+View+Filter+-+deb%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/content_views/13/filters?search=name%3D%22Test+Content+View+Filter+-+deb%22&per_page=4294967296 response: body: string: '{"total":10,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Content View Filter - deb\"","sort":{"by":"name","order":"asc"},"results":[{"inclusion":false,"id":64,"name":"Test - Content View Filter - deb","description":null,"created_at":"2023-06-05 22:35:01 - UTC","updated_at":"2023-06-05 22:35:01 UTC","content_view":{"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":true,"repository_ids":[31,32,33,34],"id":19,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":11,"organization":{"name":"Test - Organization","label":"Test_Organization","id":11},"created_at":"2023-06-05 - 22:34:51 UTC","updated_at":"2023-06-05 22:34:51 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":31,"name":"Test - Repository","label":"Test_Repository","content_type":"yum"},{"id":32,"name":"Test - Modular Repository","label":"Test_Modular_Repository","content_type":"yum"},{"id":33,"name":"Test - Docker Repository","label":"Test_Docker_Repository","content_type":"docker"},{"id":34,"name":"Test - Debian Repository","label":"Test_Debian_Repository","content_type":"deb"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]},"repositories":[],"type":"deb","rules":[{"content_view_filter_id":64,"id":3,"name":"bear","created_at":"2023-06-05 - 22:35:20 UTC","updated_at":"2023-06-05 22:35:20 UTC"},{"content_view_filter_id":64,"id":4,"name":"camel","created_at":"2023-06-05 - 22:35:21 UTC","updated_at":"2023-06-05 22:35:21 UTC"}]}]} + Content View Filter - deb\"","sort":{"by":"name","order":"asc"},"results":[{"inclusion":false,"id":70,"name":"Test + Content View Filter - deb","description":null,"created_at":"2024-07-24 14:58:59 + UTC","updated_at":"2024-07-24 14:58:59 UTC","content_view":{"composite":false,"component_ids":[],"duplicate_repositories_to_publish":[],"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":[],"filtered":true,"repository_ids":[16],"id":13,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":8,"organization":{"name":"Test + Organization","label":"Test_Organization","id":8},"created_at":"2024-07-24 + 14:58:54 UTC","updated_at":"2024-07-24 14:58:54 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":16,"name":"Test + Debian Repository","label":"Test_Debian_Repository","content_type":"deb"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]},"repositories":[],"type":"deb","rules":[{"content_view_filter_id":70,"id":11,"name":"bear","created_at":"2024-07-24 + 15:00:12 UTC","updated_at":"2024-07-24 15:00:12 UTC"},{"content_view_filter_id":70,"id":12,"name":"camel","created_at":"2024-07-24 + 15:00:13 UTC","updated_at":"2024-07-24 15:00:13 UTC"}]}]} ' headers: @@ -211,7 +205,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '1847' + - '1577' 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''; @@ -225,7 +219,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=97 Strict-Transport-Security: @@ -255,11 +249,11 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/content_view_filters/64/rules?search=name%3D%22bear%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/content_view_filters/70/rules?search=name%3D%22bear%22&per_page=4294967296 response: body: - string: '{"total":2,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"bear\"","sort":{"by":"id","order":"asc"},"results":[{"content_view_filter_id":64,"id":3,"name":"bear","created_at":"2023-06-05 - 22:35:20 UTC","updated_at":"2023-06-05 22:35:20 UTC"}]} + string: '{"total":2,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"bear\"","sort":{"by":"id","order":"asc"},"results":[{"content_view_filter_id":70,"id":11,"name":"bear","created_at":"2024-07-24 + 15:00:12 UTC","updated_at":"2024-07-24 15:00:12 UTC"}]} ' headers: @@ -268,7 +262,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '285' + - '286' 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''; @@ -282,7 +276,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=96 Strict-Transport-Security: @@ -314,11 +308,11 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: DELETE - uri: https://foreman.example.org/katello/api/content_view_filters/64/rules/3 + uri: https://foreman.example.org/katello/api/content_view_filters/70/rules/11 response: body: - string: ' {"content_view_filter_id":64,"id":3,"name":"bear","created_at":"2023-06-05 - 22:35:20 UTC","updated_at":"2023-06-05 22:35:20 UTC"} + string: ' {"content_view_filter_id":70,"id":11,"name":"bear","created_at":"2024-07-24 + 15:00:12 UTC","updated_at":"2024-07-24 15:00:12 UTC"} ' headers: @@ -327,7 +321,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '131' + - '132' 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''; @@ -341,7 +335,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=95 Strict-Transport-Security: diff --git a/tests/test_playbooks/fixtures/content_view_filter_rule-32.yml b/tests/test_playbooks/fixtures/content_view_filter_rule_deb-4.yml similarity index 76% rename from tests/test_playbooks/fixtures/content_view_filter_rule-32.yml rename to tests/test_playbooks/fixtures/content_view_filter_rule_deb-4.yml index b0ffe8df5..1509e9338 100644 --- a/tests/test_playbooks/fixtures/content_view_filter_rule-32.yml +++ b/tests/test_playbooks/fixtures/content_view_filter_rule_deb-4.yml @@ -14,14 +14,14 @@ interactions: uri: https://foreman.example.org/api/status response: body: - string: '{"result":"ok","status":200,"version":"3.7.0-rc2","api_version":2}' + string: '{"result":"ok","status":200,"version":"3.12.0-develop","api_version":2}' headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive Content-Length: - - '66' + - '71' 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''; @@ -35,7 +35,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=100 Strict-Transport-Security: @@ -70,8 +70,8 @@ interactions: body: 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-05 - 22:32:12 UTC\",\"updated_at\":\"2023-06-05 22:32:15 UTC\",\"id\":11,\"name\":\"Test + {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\":\"Test_Organization\",\"created_at\":\"2024-07-24 + 14:58:36 UTC\",\"updated_at\":\"2024-07-24 14:58:38 UTC\",\"id\":8,\"name\":\"Test Organization\",\"title\":\"Test Organization\",\"description\":\"A test organization\"}]\n}\n" headers: Cache-Control: @@ -79,7 +79,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '389' + - '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''; @@ -93,7 +93,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=99 Strict-Transport-Security: @@ -123,17 +123,14 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/organizations/11/content_views?search=name%3D%22Test+Content+View%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/organizations/8/content_views?search=name%3D%22Test+Content+View%22&per_page=4294967296 response: body: string: '{"total":2,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Content View\"","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":true,"repository_ids":[31,32,33,34],"id":19,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":11,"organization":{"name":"Test - Organization","label":"Test_Organization","id":11},"created_at":"2023-06-05 - 22:34:51 UTC","updated_at":"2023-06-05 22:34:51 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":31,"name":"Test - Repository","label":"Test_Repository","content_type":"yum"},{"id":32,"name":"Test - Modular Repository","label":"Test_Modular_Repository","content_type":"yum"},{"id":33,"name":"Test - Docker Repository","label":"Test_Docker_Repository","content_type":"docker"},{"id":34,"name":"Test + Content View\"","sort":{"by":"name","order":"asc"},"results":[{"composite":false,"component_ids":[],"duplicate_repositories_to_publish":[],"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":[],"filtered":true,"repository_ids":[16],"id":13,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":8,"organization":{"name":"Test + Organization","label":"Test_Organization","id":8},"created_at":"2024-07-24 + 14:58:54 UTC","updated_at":"2024-07-24 14:58:54 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":16,"name":"Test Debian Repository","label":"Test_Debian_Repository","content_type":"deb"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]}]} ' @@ -143,7 +140,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '1353' + - '1081' 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''; @@ -155,9 +152,9 @@ interactions: Foreman_current_location: - ; ANY Foreman_current_organization: - - 11; Test Organization + - 8; Test Organization Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=98 Strict-Transport-Security: @@ -187,21 +184,18 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/content_views/19/filters?search=name%3D%22Test+Content+View+Filter+-+deb%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/content_views/13/filters?search=name%3D%22Test+Content+View+Filter+-+deb%22&per_page=4294967296 response: body: string: '{"total":10,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Content View Filter - deb\"","sort":{"by":"name","order":"asc"},"results":[{"inclusion":false,"id":64,"name":"Test - Content View Filter - deb","description":null,"created_at":"2023-06-05 22:35:01 - UTC","updated_at":"2023-06-05 22:35:01 UTC","content_view":{"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":true,"repository_ids":[31,32,33,34],"id":19,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":11,"organization":{"name":"Test - Organization","label":"Test_Organization","id":11},"created_at":"2023-06-05 - 22:34:51 UTC","updated_at":"2023-06-05 22:34:51 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":31,"name":"Test - Repository","label":"Test_Repository","content_type":"yum"},{"id":32,"name":"Test - Modular Repository","label":"Test_Modular_Repository","content_type":"yum"},{"id":33,"name":"Test - Docker Repository","label":"Test_Docker_Repository","content_type":"docker"},{"id":34,"name":"Test - Debian Repository","label":"Test_Debian_Repository","content_type":"deb"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]},"repositories":[],"type":"deb","rules":[{"content_view_filter_id":64,"id":4,"name":"camel","created_at":"2023-06-05 - 22:35:21 UTC","updated_at":"2023-06-05 22:35:21 UTC"}]}]} + Content View Filter - deb\"","sort":{"by":"name","order":"asc"},"results":[{"inclusion":false,"id":70,"name":"Test + Content View Filter - deb","description":null,"created_at":"2024-07-24 14:58:59 + UTC","updated_at":"2024-07-24 14:58:59 UTC","content_view":{"composite":false,"component_ids":[],"duplicate_repositories_to_publish":[],"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":[],"filtered":true,"repository_ids":[16],"id":13,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":8,"organization":{"name":"Test + Organization","label":"Test_Organization","id":8},"created_at":"2024-07-24 + 14:58:54 UTC","updated_at":"2024-07-24 14:58:54 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":16,"name":"Test + Debian Repository","label":"Test_Debian_Repository","content_type":"deb"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]},"repositories":[],"type":"deb","rules":[{"content_view_filter_id":70,"id":12,"name":"camel","created_at":"2024-07-24 + 15:00:13 UTC","updated_at":"2024-07-24 15:00:13 UTC"}]}]} ' headers: @@ -210,7 +204,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '1718' + - '1447' 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''; @@ -224,7 +218,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=97 Strict-Transport-Security: @@ -254,11 +248,11 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/content_view_filters/64/rules?search=name%3D%22camel%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/content_view_filters/70/rules?search=name%3D%22camel%22&per_page=4294967296 response: body: - string: '{"total":1,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"camel\"","sort":{"by":"id","order":"asc"},"results":[{"content_view_filter_id":64,"id":4,"name":"camel","created_at":"2023-06-05 - 22:35:21 UTC","updated_at":"2023-06-05 22:35:21 UTC"}]} + string: '{"total":1,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"camel\"","sort":{"by":"id","order":"asc"},"results":[{"content_view_filter_id":70,"id":12,"name":"camel","created_at":"2024-07-24 + 15:00:13 UTC","updated_at":"2024-07-24 15:00:13 UTC"}]} ' headers: @@ -267,7 +261,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '287' + - '288' 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''; @@ -281,7 +275,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=96 Strict-Transport-Security: @@ -313,11 +307,11 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: DELETE - uri: https://foreman.example.org/katello/api/content_view_filters/64/rules/4 + uri: https://foreman.example.org/katello/api/content_view_filters/70/rules/12 response: body: - string: ' {"content_view_filter_id":64,"id":4,"name":"camel","created_at":"2023-06-05 - 22:35:21 UTC","updated_at":"2023-06-05 22:35:21 UTC"} + string: ' {"content_view_filter_id":70,"id":12,"name":"camel","created_at":"2024-07-24 + 15:00:13 UTC","updated_at":"2024-07-24 15:00:13 UTC"} ' headers: @@ -326,7 +320,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '132' + - '133' 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''; @@ -340,7 +334,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=95 Strict-Transport-Security: diff --git a/tests/test_playbooks/fixtures/content_view_filter_rule_info-0.yml b/tests/test_playbooks/fixtures/content_view_filter_rule_info-0.yml index 1f3fa1771..03a9fe6c4 100644 --- a/tests/test_playbooks/fixtures/content_view_filter_rule_info-0.yml +++ b/tests/test_playbooks/fixtures/content_view_filter_rule_info-0.yml @@ -14,14 +14,14 @@ interactions: uri: https://foreman.example.org/api/status response: body: - string: '{"result":"ok","status":200,"version":"3.7.0-rc2","api_version":2}' + string: '{"result":"ok","status":200,"version":"3.12.0-develop","api_version":2}' headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive Content-Length: - - '66' + - '71' 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''; @@ -35,7 +35,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=100 Strict-Transport-Security: @@ -70,8 +70,8 @@ interactions: body: 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-05 - 22:27:50 UTC\",\"updated_at\":\"2023-06-05 22:27:54 UTC\",\"id\":10,\"name\":\"Test + {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\":\"Test_Organization\",\"created_at\":\"2024-07-24 + 12:33:39 UTC\",\"updated_at\":\"2024-07-24 12:33:41 UTC\",\"id\":4,\"name\":\"Test Organization\",\"title\":\"Test Organization\",\"description\":\"A test organization\"}]\n}\n" headers: Cache-Control: @@ -79,7 +79,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '389' + - '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''; @@ -93,7 +93,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=99 Strict-Transport-Security: @@ -123,18 +123,17 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/organizations/10/content_views?search=name%3D%22Test+Content+View%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/organizations/4/content_views?search=name%3D%22Test+Content+View%22&per_page=4294967296 response: body: string: '{"total":2,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Content View\"","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":true,"repository_ids":[27,28,29,30],"id":17,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":10,"organization":{"name":"Test - Organization","label":"Test_Organization","id":10},"created_at":"2023-06-05 - 22:29:16 UTC","updated_at":"2023-06-05 22:29:16 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":27,"name":"Test - Repository","label":"Test_Repository","content_type":"yum"},{"id":28,"name":"Test - Modular Repository","label":"Test_Modular_Repository","content_type":"yum"},{"id":29,"name":"Test - Docker Repository","label":"Test_Docker_Repository","content_type":"docker"},{"id":30,"name":"Test - Debian Repository","label":"Test_Debian_Repository","content_type":"deb"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]}]} + Content View\"","sort":{"by":"name","order":"asc"},"results":[{"composite":false,"component_ids":[],"duplicate_repositories_to_publish":[],"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":[],"filtered":true,"repository_ids":[5,6,7],"id":5,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":4,"organization":{"name":"Test + Organization","label":"Test_Organization","id":4},"created_at":"2024-07-24 + 12:34:25 UTC","updated_at":"2024-07-24 12:34:25 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":5,"name":"Test + Repository","label":"Test_Repository","content_type":"yum"},{"id":6,"name":"Test + Modular Repository","label":"Test_Modular_Repository","content_type":"yum"},{"id":7,"name":"Test + Docker Repository","label":"Test_Docker_Repository","content_type":"docker"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]}]} ' headers: @@ -143,7 +142,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '1353' + - '1263' 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''; @@ -155,9 +154,9 @@ interactions: Foreman_current_location: - ; ANY Foreman_current_organization: - - 10; Test Organization + - 4; Test Organization Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=98 Strict-Transport-Security: @@ -187,22 +186,21 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/content_views/17/filters?search=name%3D%22Test+Content+View+Filter+-+rpm%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/content_views/5/filters?search=name%3D%22Test+Content+View+Filter+-+rpm%22&per_page=4294967296 response: body: string: '{"total":10,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Content View Filter - rpm\"","sort":{"by":"name","order":"asc"},"results":[{"inclusion":false,"id":48,"name":"Test - Content View Filter - rpm","description":null,"created_at":"2023-06-05 22:29:22 - UTC","updated_at":"2023-06-05 22:29:22 UTC","content_view":{"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":true,"repository_ids":[27,28,29,30],"id":17,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":10,"organization":{"name":"Test - Organization","label":"Test_Organization","id":10},"created_at":"2023-06-05 - 22:29:16 UTC","updated_at":"2023-06-05 22:29:16 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":27,"name":"Test - Repository","label":"Test_Repository","content_type":"yum"},{"id":28,"name":"Test - Modular Repository","label":"Test_Modular_Repository","content_type":"yum"},{"id":29,"name":"Test - Docker Repository","label":"Test_Docker_Repository","content_type":"docker"},{"id":30,"name":"Test - Debian Repository","label":"Test_Debian_Repository","content_type":"deb"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]},"repositories":[],"type":"rpm","rules":[{"content_view_filter_id":48,"id":5,"name":"bear","created_at":"2023-06-05 - 22:29:29 UTC","updated_at":"2023-06-05 22:29:29 UTC"},{"content_view_filter_id":48,"id":6,"name":"camel","created_at":"2023-06-05 - 22:29:30 UTC","updated_at":"2023-06-05 22:29:30 UTC"}]}]} + Content View Filter - rpm\"","sort":{"by":"name","order":"asc"},"results":[{"inclusion":false,"id":14,"name":"Test + Content View Filter - rpm","description":null,"created_at":"2024-07-24 12:34:28 + UTC","updated_at":"2024-07-24 12:34:28 UTC","content_view":{"composite":false,"component_ids":[],"duplicate_repositories_to_publish":[],"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":[],"filtered":true,"repository_ids":[5,6,7],"id":5,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":4,"organization":{"name":"Test + Organization","label":"Test_Organization","id":4},"created_at":"2024-07-24 + 12:34:25 UTC","updated_at":"2024-07-24 12:34:25 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":5,"name":"Test + Repository","label":"Test_Repository","content_type":"yum"},{"id":6,"name":"Test + Modular Repository","label":"Test_Modular_Repository","content_type":"yum"},{"id":7,"name":"Test + Docker Repository","label":"Test_Docker_Repository","content_type":"docker"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]},"repositories":[],"type":"rpm","rules":[{"content_view_filter_id":14,"id":3,"name":"bear","created_at":"2024-07-24 + 12:34:32 UTC","updated_at":"2024-07-24 12:34:32 UTC"},{"content_view_filter_id":14,"id":4,"name":"camel","created_at":"2024-07-24 + 12:34:32 UTC","updated_at":"2024-07-24 12:34:32 UTC"}]}]} ' headers: @@ -211,7 +209,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '1847' + - '1757' 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''; @@ -225,7 +223,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=97 Strict-Transport-Security: @@ -255,11 +253,11 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/content_view_filters/48/rules?search=name%3D%22bear%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/content_view_filters/14/rules?search=name%3D%22bear%22&per_page=4294967296 response: body: - string: '{"total":2,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"bear\"","sort":{"by":"id","order":"asc"},"results":[{"content_view_filter_id":48,"id":5,"name":"bear","created_at":"2023-06-05 - 22:29:29 UTC","updated_at":"2023-06-05 22:29:29 UTC"}]} + string: '{"total":2,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"bear\"","sort":{"by":"id","order":"asc"},"results":[{"content_view_filter_id":14,"id":3,"name":"bear","created_at":"2024-07-24 + 12:34:32 UTC","updated_at":"2024-07-24 12:34:32 UTC"}]} ' headers: @@ -282,7 +280,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=96 Strict-Transport-Security: @@ -312,11 +310,11 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/content_view_filters/48/rules/5 + uri: https://foreman.example.org/katello/api/content_view_filters/14/rules/3 response: body: - string: ' {"content_view_filter_id":48,"id":5,"name":"bear","created_at":"2023-06-05 - 22:29:29 UTC","updated_at":"2023-06-05 22:29:29 UTC"} + string: ' {"content_view_filter_id":14,"id":3,"name":"bear","created_at":"2024-07-24 + 12:34:32 UTC","updated_at":"2024-07-24 12:34:32 UTC"} ' headers: @@ -339,7 +337,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=95 Strict-Transport-Security: diff --git a/tests/test_playbooks/fixtures/content_view_filter_rule_info-1.yml b/tests/test_playbooks/fixtures/content_view_filter_rule_info-1.yml index 93180f39b..2943f1cc1 100644 --- a/tests/test_playbooks/fixtures/content_view_filter_rule_info-1.yml +++ b/tests/test_playbooks/fixtures/content_view_filter_rule_info-1.yml @@ -14,14 +14,14 @@ interactions: uri: https://foreman.example.org/api/status response: body: - string: '{"result":"ok","status":200,"version":"3.7.0-rc2","api_version":2}' + string: '{"result":"ok","status":200,"version":"3.12.0-develop","api_version":2}' headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive Content-Length: - - '66' + - '71' 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''; @@ -35,7 +35,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=100 Strict-Transport-Security: @@ -70,8 +70,8 @@ interactions: body: 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-05 - 22:27:50 UTC\",\"updated_at\":\"2023-06-05 22:27:54 UTC\",\"id\":10,\"name\":\"Test + {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\":\"Test_Organization\",\"created_at\":\"2024-07-24 + 12:33:39 UTC\",\"updated_at\":\"2024-07-24 12:33:41 UTC\",\"id\":4,\"name\":\"Test Organization\",\"title\":\"Test Organization\",\"description\":\"A test organization\"}]\n}\n" headers: Cache-Control: @@ -79,7 +79,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '389' + - '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''; @@ -93,7 +93,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=99 Strict-Transport-Security: @@ -123,18 +123,17 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/organizations/10/content_views?search=name%3D%22Test+Content+View%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/organizations/4/content_views?search=name%3D%22Test+Content+View%22&per_page=4294967296 response: body: string: '{"total":2,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Content View\"","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":true,"repository_ids":[27,28,29,30],"id":17,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":10,"organization":{"name":"Test - Organization","label":"Test_Organization","id":10},"created_at":"2023-06-05 - 22:29:16 UTC","updated_at":"2023-06-05 22:29:16 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":27,"name":"Test - Repository","label":"Test_Repository","content_type":"yum"},{"id":28,"name":"Test - Modular Repository","label":"Test_Modular_Repository","content_type":"yum"},{"id":29,"name":"Test - Docker Repository","label":"Test_Docker_Repository","content_type":"docker"},{"id":30,"name":"Test - Debian Repository","label":"Test_Debian_Repository","content_type":"deb"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]}]} + Content View\"","sort":{"by":"name","order":"asc"},"results":[{"composite":false,"component_ids":[],"duplicate_repositories_to_publish":[],"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":[],"filtered":true,"repository_ids":[5,6,7],"id":5,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":4,"organization":{"name":"Test + Organization","label":"Test_Organization","id":4},"created_at":"2024-07-24 + 12:34:25 UTC","updated_at":"2024-07-24 12:34:25 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":5,"name":"Test + Repository","label":"Test_Repository","content_type":"yum"},{"id":6,"name":"Test + Modular Repository","label":"Test_Modular_Repository","content_type":"yum"},{"id":7,"name":"Test + Docker Repository","label":"Test_Docker_Repository","content_type":"docker"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]}]} ' headers: @@ -143,7 +142,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '1353' + - '1263' 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''; @@ -155,9 +154,9 @@ interactions: Foreman_current_location: - ; ANY Foreman_current_organization: - - 10; Test Organization + - 4; Test Organization Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=98 Strict-Transport-Security: @@ -187,22 +186,21 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/content_views/17/filters?search=name%3D%22Test+Content+View+Filter+-+package_group%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/content_views/5/filters?search=name%3D%22Test+Content+View+Filter+-+package_group%22&per_page=4294967296 response: body: string: '{"total":10,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Content View Filter - package_group\"","sort":{"by":"name","order":"asc"},"results":[{"inclusion":false,"id":49,"name":"Test - Content View Filter - package_group","description":null,"created_at":"2023-06-05 - 22:29:23 UTC","updated_at":"2023-06-05 22:29:23 UTC","content_view":{"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":true,"repository_ids":[27,28,29,30],"id":17,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":10,"organization":{"name":"Test - Organization","label":"Test_Organization","id":10},"created_at":"2023-06-05 - 22:29:16 UTC","updated_at":"2023-06-05 22:29:16 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":27,"name":"Test - Repository","label":"Test_Repository","content_type":"yum"},{"id":28,"name":"Test - Modular Repository","label":"Test_Modular_Repository","content_type":"yum"},{"id":29,"name":"Test - Docker Repository","label":"Test_Docker_Repository","content_type":"docker"},{"id":30,"name":"Test - Debian Repository","label":"Test_Debian_Repository","content_type":"deb"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]},"repositories":[],"type":"package_group","rules":[{"content_view_filter_id":49,"uuid":"/pulp/api/v3/content/rpm/packagegroups/86fae512-5a7b-4f10-956c-df69a9218856/","id":4,"name":"birds","created_at":"2023-06-05 - 22:29:32 UTC","updated_at":"2023-06-05 22:29:32 UTC"},{"content_view_filter_id":49,"uuid":"/pulp/api/v3/content/rpm/packagegroups/07751227-7da7-4dc6-8da0-df1ec8fc5e05/","id":5,"name":"mammals","created_at":"2023-06-05 - 22:29:33 UTC","updated_at":"2023-06-05 22:29:33 UTC"}]}]} + Content View Filter - package_group\"","sort":{"by":"name","order":"asc"},"results":[{"inclusion":false,"id":15,"name":"Test + Content View Filter - package_group","description":null,"created_at":"2024-07-24 + 12:34:28 UTC","updated_at":"2024-07-24 12:34:28 UTC","content_view":{"composite":false,"component_ids":[],"duplicate_repositories_to_publish":[],"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":[],"filtered":true,"repository_ids":[5,6,7],"id":5,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":4,"organization":{"name":"Test + Organization","label":"Test_Organization","id":4},"created_at":"2024-07-24 + 12:34:25 UTC","updated_at":"2024-07-24 12:34:25 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":5,"name":"Test + Repository","label":"Test_Repository","content_type":"yum"},{"id":6,"name":"Test + Modular Repository","label":"Test_Modular_Repository","content_type":"yum"},{"id":7,"name":"Test + Docker Repository","label":"Test_Docker_Repository","content_type":"docker"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]},"repositories":[],"type":"package_group","rules":[{"content_view_filter_id":15,"uuid":"/pulp/api/v3/content/rpm/packagegroups/0190e45e-fd99-76f9-872f-f31298c228c1/","id":3,"name":"birds","created_at":"2024-07-24 + 12:34:34 UTC","updated_at":"2024-07-24 12:34:34 UTC"},{"content_view_filter_id":15,"uuid":"/pulp/api/v3/content/rpm/packagegroups/0190e45e-fd9a-7fce-b8b1-2ddf3e619951/","id":4,"name":"mammals","created_at":"2024-07-24 + 12:34:34 UTC","updated_at":"2024-07-24 12:34:34 UTC"}]}]} ' headers: @@ -211,7 +209,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '2052' + - '1962' 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''; @@ -225,7 +223,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=97 Strict-Transport-Security: @@ -255,11 +253,11 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/content_view_filters/49/rules?search=name%3D%22birds%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/content_view_filters/15/rules?search=name%3D%22birds%22&per_page=4294967296 response: body: - string: '{"total":2,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"birds\"","sort":{"by":"id","order":"asc"},"results":[{"content_view_filter_id":49,"uuid":"/pulp/api/v3/content/rpm/packagegroups/86fae512-5a7b-4f10-956c-df69a9218856/","id":4,"name":"birds","created_at":"2023-06-05 - 22:29:32 UTC","updated_at":"2023-06-05 22:29:32 UTC"}]} + string: '{"total":2,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"birds\"","sort":{"by":"id","order":"asc"},"results":[{"content_view_filter_id":15,"uuid":"/pulp/api/v3/content/rpm/packagegroups/0190e45e-fd99-76f9-872f-f31298c228c1/","id":3,"name":"birds","created_at":"2024-07-24 + 12:34:34 UTC","updated_at":"2024-07-24 12:34:34 UTC"}]} ' headers: @@ -282,7 +280,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=96 Strict-Transport-Security: @@ -312,11 +310,11 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/content_view_filters/49/rules/4 + uri: https://foreman.example.org/katello/api/content_view_filters/15/rules/3 response: body: - string: ' {"content_view_filter_id":49,"uuid":"/pulp/api/v3/content/rpm/packagegroups/86fae512-5a7b-4f10-956c-df69a9218856/","id":4,"name":"birds","created_at":"2023-06-05 - 22:29:32 UTC","updated_at":"2023-06-05 22:29:32 UTC"} + string: ' {"content_view_filter_id":15,"uuid":"/pulp/api/v3/content/rpm/packagegroups/0190e45e-fd99-76f9-872f-f31298c228c1/","id":3,"name":"birds","created_at":"2024-07-24 + 12:34:34 UTC","updated_at":"2024-07-24 12:34:34 UTC"} ' headers: @@ -339,7 +337,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=95 Strict-Transport-Security: diff --git a/tests/test_playbooks/fixtures/content_view_filter_rule_info-2.yml b/tests/test_playbooks/fixtures/content_view_filter_rule_info-2.yml index 88bf7b700..2e7a27c2b 100644 --- a/tests/test_playbooks/fixtures/content_view_filter_rule_info-2.yml +++ b/tests/test_playbooks/fixtures/content_view_filter_rule_info-2.yml @@ -14,14 +14,14 @@ interactions: uri: https://foreman.example.org/api/status response: body: - string: '{"result":"ok","status":200,"version":"3.7.0-rc2","api_version":2}' + string: '{"result":"ok","status":200,"version":"3.12.0-develop","api_version":2}' headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive Content-Length: - - '66' + - '71' 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''; @@ -35,7 +35,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=100 Strict-Transport-Security: @@ -70,8 +70,8 @@ interactions: body: 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-05 - 22:27:50 UTC\",\"updated_at\":\"2023-06-05 22:27:54 UTC\",\"id\":10,\"name\":\"Test + {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\":\"Test_Organization\",\"created_at\":\"2024-07-24 + 12:33:39 UTC\",\"updated_at\":\"2024-07-24 12:33:41 UTC\",\"id\":4,\"name\":\"Test Organization\",\"title\":\"Test Organization\",\"description\":\"A test organization\"}]\n}\n" headers: Cache-Control: @@ -79,7 +79,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '389' + - '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''; @@ -93,7 +93,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=99 Strict-Transport-Security: @@ -123,18 +123,17 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/organizations/10/content_views?search=name%3D%22Test+Content+View%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/organizations/4/content_views?search=name%3D%22Test+Content+View%22&per_page=4294967296 response: body: string: '{"total":2,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Content View\"","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":true,"repository_ids":[27,28,29,30],"id":17,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":10,"organization":{"name":"Test - Organization","label":"Test_Organization","id":10},"created_at":"2023-06-05 - 22:29:16 UTC","updated_at":"2023-06-05 22:29:16 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":27,"name":"Test - Repository","label":"Test_Repository","content_type":"yum"},{"id":28,"name":"Test - Modular Repository","label":"Test_Modular_Repository","content_type":"yum"},{"id":29,"name":"Test - Docker Repository","label":"Test_Docker_Repository","content_type":"docker"},{"id":30,"name":"Test - Debian Repository","label":"Test_Debian_Repository","content_type":"deb"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]}]} + Content View\"","sort":{"by":"name","order":"asc"},"results":[{"composite":false,"component_ids":[],"duplicate_repositories_to_publish":[],"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":[],"filtered":true,"repository_ids":[5,6,7],"id":5,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":4,"organization":{"name":"Test + Organization","label":"Test_Organization","id":4},"created_at":"2024-07-24 + 12:34:25 UTC","updated_at":"2024-07-24 12:34:25 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":5,"name":"Test + Repository","label":"Test_Repository","content_type":"yum"},{"id":6,"name":"Test + Modular Repository","label":"Test_Modular_Repository","content_type":"yum"},{"id":7,"name":"Test + Docker Repository","label":"Test_Docker_Repository","content_type":"docker"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]}]} ' headers: @@ -143,7 +142,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '1353' + - '1263' 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''; @@ -155,9 +154,9 @@ interactions: Foreman_current_location: - ; ANY Foreman_current_organization: - - 10; Test Organization + - 4; Test Organization Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=98 Strict-Transport-Security: @@ -187,22 +186,21 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/content_views/17/filters?search=name%3D%22Test+Content+View+Filter+-+erratum_by_id%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/content_views/5/filters?search=name%3D%22Test+Content+View+Filter+-+erratum_by_id%22&per_page=4294967296 response: body: string: '{"total":10,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Content View Filter - erratum_by_id\"","sort":{"by":"name","order":"asc"},"results":[{"inclusion":false,"id":50,"name":"Test - Content View Filter - erratum_by_id","description":null,"created_at":"2023-06-05 - 22:29:24 UTC","updated_at":"2023-06-05 22:29:24 UTC","content_view":{"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":true,"repository_ids":[27,28,29,30],"id":17,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":10,"organization":{"name":"Test - Organization","label":"Test_Organization","id":10},"created_at":"2023-06-05 - 22:29:16 UTC","updated_at":"2023-06-05 22:29:16 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":27,"name":"Test - Repository","label":"Test_Repository","content_type":"yum"},{"id":28,"name":"Test - Modular Repository","label":"Test_Modular_Repository","content_type":"yum"},{"id":29,"name":"Test - Docker Repository","label":"Test_Docker_Repository","content_type":"docker"},{"id":30,"name":"Test - Debian Repository","label":"Test_Debian_Repository","content_type":"deb"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]},"repositories":[],"type":"erratum","rules":[{"content_view_filter_id":50,"errata_id":"RHEA-2012:0004","date_type":"updated","id":7,"created_at":"2023-06-05 - 22:29:34 UTC","updated_at":"2023-06-05 22:29:34 UTC"},{"content_view_filter_id":50,"errata_id":"RHEA-2012:0003","date_type":"updated","id":8,"created_at":"2023-06-05 - 22:29:35 UTC","updated_at":"2023-06-05 22:29:35 UTC"}]}]} + Content View Filter - erratum_by_id\"","sort":{"by":"name","order":"asc"},"results":[{"inclusion":false,"id":16,"name":"Test + Content View Filter - erratum_by_id","description":null,"created_at":"2024-07-24 + 12:34:29 UTC","updated_at":"2024-07-24 12:34:29 UTC","content_view":{"composite":false,"component_ids":[],"duplicate_repositories_to_publish":[],"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":[],"filtered":true,"repository_ids":[5,6,7],"id":5,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":4,"organization":{"name":"Test + Organization","label":"Test_Organization","id":4},"created_at":"2024-07-24 + 12:34:25 UTC","updated_at":"2024-07-24 12:34:25 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":5,"name":"Test + Repository","label":"Test_Repository","content_type":"yum"},{"id":6,"name":"Test + Modular Repository","label":"Test_Modular_Repository","content_type":"yum"},{"id":7,"name":"Test + Docker Repository","label":"Test_Docker_Repository","content_type":"docker"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]},"repositories":[],"type":"erratum","rules":[{"content_view_filter_id":16,"errata_id":"RHEA-2012:0004","date_type":"updated","id":4,"created_at":"2024-07-24 + 12:34:35 UTC","updated_at":"2024-07-24 12:34:35 UTC"},{"content_view_filter_id":16,"errata_id":"RHEA-2012:0003","date_type":"updated","id":5,"created_at":"2024-07-24 + 12:34:35 UTC","updated_at":"2024-07-24 12:34:35 UTC"}]}]} ' headers: @@ -211,7 +209,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '1944' + - '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''; @@ -225,7 +223,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=97 Strict-Transport-Security: @@ -255,11 +253,11 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/content_view_filters/50/rules?errata_id=RHEA-2012%3A0004&per_page=4294967296 + uri: https://foreman.example.org/katello/api/content_view_filters/16/rules?errata_id=RHEA-2012%3A0004&per_page=4294967296 response: body: - string: '{"total":1,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":null,"sort":{"by":"id","order":"asc"},"results":[{"content_view_filter_id":50,"errata_id":"RHEA-2012:0004","date_type":"updated","id":7,"created_at":"2023-06-05 - 22:29:34 UTC","updated_at":"2023-06-05 22:29:34 UTC"}]} + string: '{"total":1,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":null,"sort":{"by":"id","order":"asc"},"results":[{"content_view_filter_id":16,"errata_id":"RHEA-2012:0004","date_type":"updated","id":4,"created_at":"2024-07-24 + 12:34:35 UTC","updated_at":"2024-07-24 12:34:35 UTC"}]} ' headers: @@ -282,7 +280,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=96 Strict-Transport-Security: diff --git a/tests/test_playbooks/fixtures/content_view_filter_rule_info-3.yml b/tests/test_playbooks/fixtures/content_view_filter_rule_info-3.yml index 19887747a..50e5d9e6b 100644 --- a/tests/test_playbooks/fixtures/content_view_filter_rule_info-3.yml +++ b/tests/test_playbooks/fixtures/content_view_filter_rule_info-3.yml @@ -14,14 +14,14 @@ interactions: uri: https://foreman.example.org/api/status response: body: - string: '{"result":"ok","status":200,"version":"3.7.0-rc2","api_version":2}' + string: '{"result":"ok","status":200,"version":"3.12.0-develop","api_version":2}' headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive Content-Length: - - '66' + - '71' 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''; @@ -35,7 +35,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=100 Strict-Transport-Security: @@ -70,8 +70,8 @@ interactions: body: 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-05 - 22:27:50 UTC\",\"updated_at\":\"2023-06-05 22:27:54 UTC\",\"id\":10,\"name\":\"Test + {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\":\"Test_Organization\",\"created_at\":\"2024-07-24 + 12:33:39 UTC\",\"updated_at\":\"2024-07-24 12:33:41 UTC\",\"id\":4,\"name\":\"Test Organization\",\"title\":\"Test Organization\",\"description\":\"A test organization\"}]\n}\n" headers: Cache-Control: @@ -79,7 +79,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '389' + - '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''; @@ -93,7 +93,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=99 Strict-Transport-Security: @@ -123,18 +123,17 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/organizations/10/content_views?search=name%3D%22Test+Content+View%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/organizations/4/content_views?search=name%3D%22Test+Content+View%22&per_page=4294967296 response: body: string: '{"total":2,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Content View\"","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":true,"repository_ids":[27,28,29,30],"id":17,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":10,"organization":{"name":"Test - Organization","label":"Test_Organization","id":10},"created_at":"2023-06-05 - 22:29:16 UTC","updated_at":"2023-06-05 22:29:16 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":27,"name":"Test - Repository","label":"Test_Repository","content_type":"yum"},{"id":28,"name":"Test - Modular Repository","label":"Test_Modular_Repository","content_type":"yum"},{"id":29,"name":"Test - Docker Repository","label":"Test_Docker_Repository","content_type":"docker"},{"id":30,"name":"Test - Debian Repository","label":"Test_Debian_Repository","content_type":"deb"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]}]} + Content View\"","sort":{"by":"name","order":"asc"},"results":[{"composite":false,"component_ids":[],"duplicate_repositories_to_publish":[],"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":[],"filtered":true,"repository_ids":[5,6,7],"id":5,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":4,"organization":{"name":"Test + Organization","label":"Test_Organization","id":4},"created_at":"2024-07-24 + 12:34:25 UTC","updated_at":"2024-07-24 12:34:25 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":5,"name":"Test + Repository","label":"Test_Repository","content_type":"yum"},{"id":6,"name":"Test + Modular Repository","label":"Test_Modular_Repository","content_type":"yum"},{"id":7,"name":"Test + Docker Repository","label":"Test_Docker_Repository","content_type":"docker"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]}]} ' headers: @@ -143,7 +142,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '1353' + - '1263' 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''; @@ -155,9 +154,9 @@ interactions: Foreman_current_location: - ; ANY Foreman_current_organization: - - 10; Test Organization + - 4; Test Organization Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=98 Strict-Transport-Security: @@ -187,21 +186,20 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/content_views/17/filters?search=name%3D%22Test+Content+View+Filter+-+erratum_by_date%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/content_views/5/filters?search=name%3D%22Test+Content+View+Filter+-+erratum_by_date%22&per_page=4294967296 response: body: string: '{"total":10,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Content View Filter - erratum_by_date\"","sort":{"by":"name","order":"asc"},"results":[{"inclusion":false,"id":51,"name":"Test - Content View Filter - erratum_by_date","description":null,"created_at":"2023-06-05 - 22:29:25 UTC","updated_at":"2023-06-05 22:29:25 UTC","content_view":{"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":true,"repository_ids":[27,28,29,30],"id":17,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":10,"organization":{"name":"Test - Organization","label":"Test_Organization","id":10},"created_at":"2023-06-05 - 22:29:16 UTC","updated_at":"2023-06-05 22:29:16 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":27,"name":"Test - Repository","label":"Test_Repository","content_type":"yum"},{"id":28,"name":"Test - Modular Repository","label":"Test_Modular_Repository","content_type":"yum"},{"id":29,"name":"Test - Docker Repository","label":"Test_Docker_Repository","content_type":"docker"},{"id":30,"name":"Test - Debian Repository","label":"Test_Debian_Repository","content_type":"deb"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]},"repositories":[],"type":"erratum","rules":[{"content_view_filter_id":51,"start_date":"2017-01-03","end_date":"2019-01-03","types":["bugfix","enhancement","security"],"date_type":"updated","id":9,"created_at":"2023-06-05 - 22:29:36 UTC","updated_at":"2023-06-05 22:29:37 UTC"}]}]} + Content View Filter - erratum_by_date\"","sort":{"by":"name","order":"asc"},"results":[{"inclusion":false,"id":17,"name":"Test + Content View Filter - erratum_by_date","description":null,"created_at":"2024-07-24 + 12:34:29 UTC","updated_at":"2024-07-24 12:34:29 UTC","content_view":{"composite":false,"component_ids":[],"duplicate_repositories_to_publish":[],"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":[],"filtered":true,"repository_ids":[5,6,7],"id":5,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":4,"organization":{"name":"Test + Organization","label":"Test_Organization","id":4},"created_at":"2024-07-24 + 12:34:25 UTC","updated_at":"2024-07-24 12:34:25 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":5,"name":"Test + Repository","label":"Test_Repository","content_type":"yum"},{"id":6,"name":"Test + Modular Repository","label":"Test_Modular_Repository","content_type":"yum"},{"id":7,"name":"Test + Docker Repository","label":"Test_Docker_Repository","content_type":"docker"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]},"repositories":[],"type":"erratum","rules":[{"content_view_filter_id":17,"start_date":"2017-01-03","end_date":"2019-01-03","types":["bugfix","enhancement","security"],"date_type":"updated","id":6,"created_at":"2024-07-24 + 12:34:36 UTC","updated_at":"2024-07-24 12:34:37 UTC"}]}]} ' headers: @@ -210,7 +208,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '1847' + - '1757' 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''; @@ -224,7 +222,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=97 Strict-Transport-Security: @@ -254,11 +252,11 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/content_view_filters/51/rules?per_page=4294967296 + uri: https://foreman.example.org/katello/api/content_view_filters/17/rules?per_page=4294967296 response: body: - string: '{"total":1,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":null,"sort":{"by":"id","order":"asc"},"results":[{"content_view_filter_id":51,"start_date":"2017-01-03","end_date":"2019-01-03","types":["bugfix","enhancement","security"],"date_type":"updated","id":9,"created_at":"2023-06-05 - 22:29:36 UTC","updated_at":"2023-06-05 22:29:37 UTC"}]} + string: '{"total":1,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":null,"sort":{"by":"id","order":"asc"},"results":[{"content_view_filter_id":17,"start_date":"2017-01-03","end_date":"2019-01-03","types":["bugfix","enhancement","security"],"date_type":"updated","id":6,"created_at":"2024-07-24 + 12:34:36 UTC","updated_at":"2024-07-24 12:34:37 UTC"}]} ' headers: @@ -281,7 +279,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=96 Strict-Transport-Security: diff --git a/tests/test_playbooks/fixtures/content_view_filter_rule_info-4.yml b/tests/test_playbooks/fixtures/content_view_filter_rule_info-4.yml index 9c172f1c4..dd4cf670d 100644 --- a/tests/test_playbooks/fixtures/content_view_filter_rule_info-4.yml +++ b/tests/test_playbooks/fixtures/content_view_filter_rule_info-4.yml @@ -14,14 +14,14 @@ interactions: uri: https://foreman.example.org/api/status response: body: - string: '{"result":"ok","status":200,"version":"3.7.0-rc2","api_version":2}' + string: '{"result":"ok","status":200,"version":"3.12.0-develop","api_version":2}' headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive Content-Length: - - '66' + - '71' 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''; @@ -35,7 +35,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=100 Strict-Transport-Security: @@ -70,8 +70,8 @@ interactions: body: 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-05 - 22:27:50 UTC\",\"updated_at\":\"2023-06-05 22:27:54 UTC\",\"id\":10,\"name\":\"Test + {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\":\"Test_Organization\",\"created_at\":\"2024-07-24 + 12:33:39 UTC\",\"updated_at\":\"2024-07-24 12:33:41 UTC\",\"id\":4,\"name\":\"Test Organization\",\"title\":\"Test Organization\",\"description\":\"A test organization\"}]\n}\n" headers: Cache-Control: @@ -79,7 +79,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '389' + - '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''; @@ -93,7 +93,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=99 Strict-Transport-Security: @@ -123,18 +123,17 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/organizations/10/content_views?search=name%3D%22Test+Content+View%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/organizations/4/content_views?search=name%3D%22Test+Content+View%22&per_page=4294967296 response: body: string: '{"total":2,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Content View\"","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":true,"repository_ids":[27,28,29,30],"id":17,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":10,"organization":{"name":"Test - Organization","label":"Test_Organization","id":10},"created_at":"2023-06-05 - 22:29:16 UTC","updated_at":"2023-06-05 22:29:16 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":27,"name":"Test - Repository","label":"Test_Repository","content_type":"yum"},{"id":28,"name":"Test - Modular Repository","label":"Test_Modular_Repository","content_type":"yum"},{"id":29,"name":"Test - Docker Repository","label":"Test_Docker_Repository","content_type":"docker"},{"id":30,"name":"Test - Debian Repository","label":"Test_Debian_Repository","content_type":"deb"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]}]} + Content View\"","sort":{"by":"name","order":"asc"},"results":[{"composite":false,"component_ids":[],"duplicate_repositories_to_publish":[],"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":[],"filtered":true,"repository_ids":[5,6,7],"id":5,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":4,"organization":{"name":"Test + Organization","label":"Test_Organization","id":4},"created_at":"2024-07-24 + 12:34:25 UTC","updated_at":"2024-07-24 12:34:25 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":5,"name":"Test + Repository","label":"Test_Repository","content_type":"yum"},{"id":6,"name":"Test + Modular Repository","label":"Test_Modular_Repository","content_type":"yum"},{"id":7,"name":"Test + Docker Repository","label":"Test_Docker_Repository","content_type":"docker"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]}]} ' headers: @@ -143,7 +142,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '1353' + - '1263' 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''; @@ -155,9 +154,9 @@ interactions: Foreman_current_location: - ; ANY Foreman_current_organization: - - 10; Test Organization + - 4; Test Organization Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=98 Strict-Transport-Security: @@ -187,22 +186,21 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/content_views/17/filters?search=name%3D%22Test+Content+View+Filter+-+docker%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/content_views/5/filters?search=name%3D%22Test+Content+View+Filter+-+docker%22&per_page=4294967296 response: body: string: '{"total":10,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Content View Filter - docker\"","sort":{"by":"name","order":"asc"},"results":[{"inclusion":false,"id":52,"name":"Test - Content View Filter - docker","description":null,"created_at":"2023-06-05 - 22:29:26 UTC","updated_at":"2023-06-05 22:29:26 UTC","content_view":{"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":true,"repository_ids":[27,28,29,30],"id":17,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":10,"organization":{"name":"Test - Organization","label":"Test_Organization","id":10},"created_at":"2023-06-05 - 22:29:16 UTC","updated_at":"2023-06-05 22:29:16 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":27,"name":"Test - Repository","label":"Test_Repository","content_type":"yum"},{"id":28,"name":"Test - Modular Repository","label":"Test_Modular_Repository","content_type":"yum"},{"id":29,"name":"Test - Docker Repository","label":"Test_Docker_Repository","content_type":"docker"},{"id":30,"name":"Test - Debian Repository","label":"Test_Debian_Repository","content_type":"deb"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]},"repositories":[],"type":"docker","rules":[{"content_view_filter_id":52,"id":4,"name":"8.7-929","created_at":"2023-06-05 - 22:29:38 UTC","updated_at":"2023-06-05 22:29:38 UTC"},{"content_view_filter_id":52,"id":5,"name":"8.6-990","created_at":"2023-06-05 - 22:29:39 UTC","updated_at":"2023-06-05 22:29:39 UTC"}]}]} + Content View Filter - docker\"","sort":{"by":"name","order":"asc"},"results":[{"inclusion":false,"id":18,"name":"Test + Content View Filter - docker","description":null,"created_at":"2024-07-24 + 12:34:30 UTC","updated_at":"2024-07-24 12:34:30 UTC","content_view":{"composite":false,"component_ids":[],"duplicate_repositories_to_publish":[],"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":[],"filtered":true,"repository_ids":[5,6,7],"id":5,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":4,"organization":{"name":"Test + Organization","label":"Test_Organization","id":4},"created_at":"2024-07-24 + 12:34:25 UTC","updated_at":"2024-07-24 12:34:25 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":5,"name":"Test + Repository","label":"Test_Repository","content_type":"yum"},{"id":6,"name":"Test + Modular Repository","label":"Test_Modular_Repository","content_type":"yum"},{"id":7,"name":"Test + Docker Repository","label":"Test_Docker_Repository","content_type":"docker"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]},"repositories":[],"type":"docker","rules":[{"content_view_filter_id":18,"id":3,"name":"8.7-929","created_at":"2024-07-24 + 12:34:37 UTC","updated_at":"2024-07-24 12:34:37 UTC"},{"content_view_filter_id":18,"id":4,"name":"8.6-990","created_at":"2024-07-24 + 12:34:38 UTC","updated_at":"2024-07-24 12:34:38 UTC"}]}]} ' headers: @@ -211,7 +209,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '1861' + - '1771' 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''; @@ -225,7 +223,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=97 Strict-Transport-Security: @@ -255,11 +253,11 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/content_view_filters/52/rules?search=name%3D%228.7-929%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/content_view_filters/18/rules?search=name%3D%228.7-929%22&per_page=4294967296 response: body: - string: '{"total":2,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"8.7-929\"","sort":{"by":"id","order":"asc"},"results":[{"content_view_filter_id":52,"id":4,"name":"8.7-929","created_at":"2023-06-05 - 22:29:38 UTC","updated_at":"2023-06-05 22:29:38 UTC"}]} + string: '{"total":2,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"8.7-929\"","sort":{"by":"id","order":"asc"},"results":[{"content_view_filter_id":18,"id":3,"name":"8.7-929","created_at":"2024-07-24 + 12:34:37 UTC","updated_at":"2024-07-24 12:34:37 UTC"}]} ' headers: @@ -282,7 +280,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=96 Strict-Transport-Security: @@ -312,11 +310,11 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/content_view_filters/52/rules/4 + uri: https://foreman.example.org/katello/api/content_view_filters/18/rules/3 response: body: - string: ' {"content_view_filter_id":52,"id":4,"name":"8.7-929","created_at":"2023-06-05 - 22:29:38 UTC","updated_at":"2023-06-05 22:29:38 UTC"} + string: ' {"content_view_filter_id":18,"id":3,"name":"8.7-929","created_at":"2024-07-24 + 12:34:37 UTC","updated_at":"2024-07-24 12:34:37 UTC"} ' headers: @@ -339,7 +337,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=95 Strict-Transport-Security: diff --git a/tests/test_playbooks/fixtures/content_view_filter_rule_info-5.yml b/tests/test_playbooks/fixtures/content_view_filter_rule_info-5.yml index 4133ff3f5..a8a62f181 100644 --- a/tests/test_playbooks/fixtures/content_view_filter_rule_info-5.yml +++ b/tests/test_playbooks/fixtures/content_view_filter_rule_info-5.yml @@ -14,14 +14,14 @@ interactions: uri: https://foreman.example.org/api/status response: body: - string: '{"result":"ok","status":200,"version":"3.7.0-rc2","api_version":2}' + string: '{"result":"ok","status":200,"version":"3.12.0-develop","api_version":2}' headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive Content-Length: - - '66' + - '71' 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''; @@ -35,7 +35,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=100 Strict-Transport-Security: @@ -70,8 +70,8 @@ interactions: body: 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-05 - 22:27:50 UTC\",\"updated_at\":\"2023-06-05 22:27:54 UTC\",\"id\":10,\"name\":\"Test + {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\":\"Test_Organization\",\"created_at\":\"2024-07-24 + 12:33:39 UTC\",\"updated_at\":\"2024-07-24 12:33:41 UTC\",\"id\":4,\"name\":\"Test Organization\",\"title\":\"Test Organization\",\"description\":\"A test organization\"}]\n}\n" headers: Cache-Control: @@ -79,7 +79,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '389' + - '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''; @@ -93,7 +93,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=99 Strict-Transport-Security: @@ -123,18 +123,17 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/organizations/10/content_views?search=name%3D%22Test+Content+View%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/organizations/4/content_views?search=name%3D%22Test+Content+View%22&per_page=4294967296 response: body: string: '{"total":2,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Content View\"","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":true,"repository_ids":[27,28,29,30],"id":17,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":10,"organization":{"name":"Test - Organization","label":"Test_Organization","id":10},"created_at":"2023-06-05 - 22:29:16 UTC","updated_at":"2023-06-05 22:29:16 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":27,"name":"Test - Repository","label":"Test_Repository","content_type":"yum"},{"id":28,"name":"Test - Modular Repository","label":"Test_Modular_Repository","content_type":"yum"},{"id":29,"name":"Test - Docker Repository","label":"Test_Docker_Repository","content_type":"docker"},{"id":30,"name":"Test - Debian Repository","label":"Test_Debian_Repository","content_type":"deb"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]}]} + Content View\"","sort":{"by":"name","order":"asc"},"results":[{"composite":false,"component_ids":[],"duplicate_repositories_to_publish":[],"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":[],"filtered":true,"repository_ids":[5,6,7],"id":5,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":4,"organization":{"name":"Test + Organization","label":"Test_Organization","id":4},"created_at":"2024-07-24 + 12:34:25 UTC","updated_at":"2024-07-24 12:34:25 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":5,"name":"Test + Repository","label":"Test_Repository","content_type":"yum"},{"id":6,"name":"Test + Modular Repository","label":"Test_Modular_Repository","content_type":"yum"},{"id":7,"name":"Test + Docker Repository","label":"Test_Docker_Repository","content_type":"docker"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]}]} ' headers: @@ -143,7 +142,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '1353' + - '1263' 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''; @@ -155,9 +154,9 @@ interactions: Foreman_current_location: - ; ANY Foreman_current_organization: - - 10; Test Organization + - 4; Test Organization Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=98 Strict-Transport-Security: @@ -187,22 +186,21 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/content_views/17/filters?search=name%3D%22Test+Content+View+Filter+-+modulemd%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/content_views/5/filters?search=name%3D%22Test+Content+View+Filter+-+modulemd%22&per_page=4294967296 response: body: string: '{"total":10,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Content View Filter - modulemd\"","sort":{"by":"name","order":"asc"},"results":[{"inclusion":false,"id":53,"name":"Test - Content View Filter - modulemd","description":null,"created_at":"2023-06-05 - 22:29:27 UTC","updated_at":"2023-06-05 22:29:27 UTC","content_view":{"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":true,"repository_ids":[27,28,29,30],"id":17,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":10,"organization":{"name":"Test - Organization","label":"Test_Organization","id":10},"created_at":"2023-06-05 - 22:29:16 UTC","updated_at":"2023-06-05 22:29:16 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":27,"name":"Test - Repository","label":"Test_Repository","content_type":"yum"},{"id":28,"name":"Test - Modular Repository","label":"Test_Modular_Repository","content_type":"yum"},{"id":29,"name":"Test - Docker Repository","label":"Test_Docker_Repository","content_type":"docker"},{"id":30,"name":"Test - Debian Repository","label":"Test_Debian_Repository","content_type":"deb"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]},"repositories":[],"type":"modulemd","rules":[{"content_view_filter_id":53,"module_stream_id":11,"id":2,"created_at":"2023-06-05 - 22:29:41 UTC","updated_at":"2023-06-05 22:29:41 UTC"},{"content_view_filter_id":53,"module_stream_id":24,"id":3,"created_at":"2023-06-05 - 22:29:45 UTC","updated_at":"2023-06-05 22:29:45 UTC"}]}]} + Content View Filter - modulemd\"","sort":{"by":"name","order":"asc"},"results":[{"inclusion":false,"id":19,"name":"Test + Content View Filter - modulemd","description":null,"created_at":"2024-07-24 + 12:34:30 UTC","updated_at":"2024-07-24 12:34:30 UTC","content_view":{"composite":false,"component_ids":[],"duplicate_repositories_to_publish":[],"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":[],"filtered":true,"repository_ids":[5,6,7],"id":5,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":4,"organization":{"name":"Test + Organization","label":"Test_Organization","id":4},"created_at":"2024-07-24 + 12:34:25 UTC","updated_at":"2024-07-24 12:34:25 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":5,"name":"Test + Repository","label":"Test_Repository","content_type":"yum"},{"id":6,"name":"Test + Modular Repository","label":"Test_Modular_Repository","content_type":"yum"},{"id":7,"name":"Test + Docker Repository","label":"Test_Docker_Repository","content_type":"docker"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]},"repositories":[],"type":"modulemd","rules":[{"content_view_filter_id":19,"module_stream_id":11,"id":5,"created_at":"2024-07-24 + 12:34:39 UTC","updated_at":"2024-07-24 12:34:39 UTC"},{"content_view_filter_id":19,"module_stream_id":24,"id":6,"created_at":"2024-07-24 + 12:34:41 UTC","updated_at":"2024-07-24 12:34:41 UTC"}]}]} ' headers: @@ -211,7 +209,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '1877' + - '1787' 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''; @@ -225,7 +223,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=97 Strict-Transport-Security: @@ -255,12 +253,12 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/content_view_filters/53/rules?per_page=4294967296 + uri: https://foreman.example.org/katello/api/content_view_filters/19/rules?per_page=4294967296 response: body: - string: '{"total":2,"subtotal":2,"selectable":2,"page":1,"per_page":"4294967296","error":null,"search":null,"sort":{"by":"id","order":"asc"},"results":[{"content_view_filter_id":53,"module_stream_id":11,"id":2,"created_at":"2023-06-05 - 22:29:41 UTC","updated_at":"2023-06-05 22:29:41 UTC"},{"content_view_filter_id":53,"module_stream_id":24,"id":3,"created_at":"2023-06-05 - 22:29:45 UTC","updated_at":"2023-06-05 22:29:45 UTC"}]} + string: '{"total":2,"subtotal":2,"selectable":2,"page":1,"per_page":"4294967296","error":null,"search":null,"sort":{"by":"id","order":"asc"},"results":[{"content_view_filter_id":19,"module_stream_id":11,"id":5,"created_at":"2024-07-24 + 12:34:39 UTC","updated_at":"2024-07-24 12:34:39 UTC"},{"content_view_filter_id":19,"module_stream_id":24,"id":6,"created_at":"2024-07-24 + 12:34:41 UTC","updated_at":"2024-07-24 12:34:41 UTC"}]} ' headers: @@ -283,7 +281,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=96 Strict-Transport-Security: diff --git a/tests/test_playbooks/fixtures/content_view_filter_rule_info_deb-0.yml b/tests/test_playbooks/fixtures/content_view_filter_rule_info_deb-0.yml new file mode 100644 index 000000000..0c9800907 --- /dev/null +++ b/tests/test_playbooks/fixtures/content_view_filter_rule_info_deb-0.yml @@ -0,0 +1,354 @@ +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: '{"result":"ok","status":200,"version":"3.12.0-develop","api_version":2}' + headers: + Cache-Control: + - max-age=0, private, must-revalidate + Connection: + - Keep-Alive + Content-Length: + - '71' + 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.12.0-develop + Keep-Alive: + - timeout=15, max=100 + 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?search=name%3D%22Test+Organization%22&per_page=4294967296 + response: + body: + 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\":\"2024-07-24 + 12:37:06 UTC\",\"updated_at\":\"2024-07-24 12:37:09 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-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''; + 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.12.0-develop + Keep-Alive: + - timeout=15, max=99 + 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/5/content_views?search=name%3D%22Test+Content+View%22&per_page=4294967296 + response: + body: + string: '{"total":2,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test + Content View\"","sort":{"by":"name","order":"asc"},"results":[{"composite":false,"component_ids":[],"duplicate_repositories_to_publish":[],"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":[],"filtered":true,"repository_ids":[8],"id":7,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":5,"organization":{"name":"Test + Organization","label":"Test_Organization","id":5},"created_at":"2024-07-24 + 12:42:49 UTC","updated_at":"2024-07-24 12:42:49 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":8,"name":"Test + Debian Repository","label":"Test_Debian_Repository","content_type":"deb"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]}]} + + ' + headers: + Cache-Control: + - max-age=0, private, must-revalidate + Connection: + - Keep-Alive + Content-Length: + - '1078' + 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.12.0-develop + Keep-Alive: + - timeout=15, max=98 + 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/content_views/7/filters?search=name%3D%22Test+Content+View+Filter+-+deb%22&per_page=4294967296 + response: + body: + string: '{"total":10,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test + Content View Filter - deb\"","sort":{"by":"name","order":"asc"},"results":[{"inclusion":false,"id":40,"name":"Test + Content View Filter - deb","description":null,"created_at":"2024-07-24 12:48:10 + UTC","updated_at":"2024-07-24 12:48:10 UTC","content_view":{"composite":false,"component_ids":[],"duplicate_repositories_to_publish":[],"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":[],"filtered":true,"repository_ids":[8],"id":7,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":5,"organization":{"name":"Test + Organization","label":"Test_Organization","id":5},"created_at":"2024-07-24 + 12:42:49 UTC","updated_at":"2024-07-24 12:42:49 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":8,"name":"Test + Debian Repository","label":"Test_Debian_Repository","content_type":"deb"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]},"repositories":[],"type":"deb","rules":[{"content_view_filter_id":40,"id":5,"name":"bear","created_at":"2024-07-24 + 12:48:11 UTC","updated_at":"2024-07-24 12:48:11 UTC"},{"content_view_filter_id":40,"id":6,"name":"camel","created_at":"2024-07-24 + 12:48:11 UTC","updated_at":"2024-07-24 12:48:11 UTC"}]}]} + + ' + headers: + Cache-Control: + - max-age=0, private, must-revalidate + Connection: + - Keep-Alive + Content-Length: + - '1572' + 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.12.0-develop + 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/content_view_filters/40/rules?search=name%3D%22bear%22&per_page=4294967296 + response: + body: + string: '{"total":2,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"bear\"","sort":{"by":"id","order":"asc"},"results":[{"content_view_filter_id":40,"id":5,"name":"bear","created_at":"2024-07-24 + 12:48:11 UTC","updated_at":"2024-07-24 12:48:11 UTC"}]} + + ' + headers: + Cache-Control: + - max-age=0, private, must-revalidate + Connection: + - Keep-Alive + Content-Length: + - '285' + 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.12.0-develop + 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: 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_filters/40/rules/5 + response: + body: + string: ' {"content_view_filter_id":40,"id":5,"name":"bear","created_at":"2024-07-24 + 12:48:11 UTC","updated_at":"2024-07-24 12:48:11 UTC"} + + ' + headers: + Cache-Control: + - max-age=0, private, must-revalidate + Connection: + - Keep-Alive + Content-Length: + - '131' + 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.12.0-develop + 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 +version: 1 diff --git a/tests/test_playbooks/fixtures/location-0.yml b/tests/test_playbooks/fixtures/location-0.yml index 33046cc2d..e69a3d1d0 100644 --- a/tests/test_playbooks/fixtures/location-0.yml +++ b/tests/test_playbooks/fixtures/location-0.yml @@ -14,12 +14,14 @@ interactions: uri: https://foreman.example.org/api/status response: body: - string: '{"result":"ok","status":200,"version":"3.4.0","api_version":2}' + string: '{"result":"ok","status":200,"version":"3.11.0-develop","api_version":2}' headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive + Content-Length: + - '71' 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.4.0 + - 3.11.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: @@ -76,6 +76,8 @@ interactions: - max-age=0, private, must-revalidate Connection: - Keep-Alive + Content-Length: + - '180' 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 +91,11 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.4.0 + - 3.11.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: @@ -128,118 +128,130 @@ interactions: uri: https://foreman.example.org/api/locations response: body: - string: '{"select_all_types":[],"description":null,"created_at":"2022-11-08 - 09:29:05 UTC","updated_at":"2022-11-08 09:29:05 UTC","ancestry":null,"parent_id":null,"parent_name":null,"id":4,"name":"Test - Location","title":"Test Location","users":[],"smart_proxies":[],"subnets":[],"compute_resources":[],"media":[],"ptables":[{"description":null,"os_family":"Suse","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"AutoYaST entire - SCSI disk","id":120,"inherited":false},{"description":null,"os_family":"Suse","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"AutoYaST entire - virtual disk","id":121,"inherited":false},{"description":null,"os_family":"Suse","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"AutoYaST LVM","id":122,"inherited":false},{"description":null,"os_family":"Coreos","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"CoreOS default - fake","id":123,"inherited":false},{"description":null,"os_family":"Rancheros","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Empty","id":124,"inherited":false},{"description":null,"os_family":"Freebsd","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"FreeBSD default - fake","id":125,"inherited":false},{"description":null,"os_family":"Solaris","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Jumpstart default","id":126,"inherited":false},{"description":null,"os_family":"Solaris","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Jumpstart mirrored","id":127,"inherited":false},{"description":null,"os_family":"Junos","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Junos default - fake","id":128,"inherited":false},{"description":null,"os_family":"Redhat","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Kickstart custom","id":129,"inherited":false},{"description":null,"os_family":"Redhat","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Kickstart default","id":130,"inherited":false},{"description":null,"os_family":"Redhat","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Kickstart default - thin","id":131,"inherited":false},{"description":null,"os_family":"Redhat","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Kickstart dynamic","id":132,"inherited":false},{"description":null,"os_family":"NXOS","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"NX-OS default - fake","id":133,"inherited":false},{"description":null,"os_family":"Debian","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Preseed default","id":134,"inherited":false},{"description":"Preseed + string: '{"select_all_types":[],"description":null,"created_at":"2024-07-25 + 12:00:01 UTC","updated_at":"2024-07-25 12:00:01 UTC","ancestry":null,"parent_id":null,"parent_name":null,"id":7,"name":"Test + Location","title":"Test Location","users":[],"smart_proxies":[],"subnets":[],"compute_resources":[],"media":[],"ptables":[{"description":null,"os_family":"Suse","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"AutoYaST entire + virtual disk","id":127,"inherited":false},{"description":null,"os_family":"Solaris","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"Jumpstart default","id":132,"inherited":false},{"description":null,"os_family":"Solaris","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"Jumpstart mirrored","id":133,"inherited":false},{"description":null,"os_family":"Junos","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"Junos default + fake","id":134,"inherited":false},{"description":null,"os_family":"Suse","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"AutoYaST LVM","id":128,"inherited":false},{"description":null,"os_family":"Coreos","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"CoreOS default + fake","id":129,"inherited":false},{"description":null,"os_family":"Rancheros","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"Empty","id":130,"inherited":false},{"description":null,"os_family":"Suse","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"AutoYaST entire + SCSI disk","id":126,"inherited":false},{"description":null,"os_family":"Freebsd","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"FreeBSD default + fake","id":131,"inherited":false},{"description":null,"os_family":"Redhat","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"Kickstart custom","id":135,"inherited":false},{"description":null,"os_family":"Redhat","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"Kickstart default","id":136,"inherited":false},{"description":null,"os_family":"Redhat","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"Kickstart default + thin","id":137,"inherited":false},{"description":null,"os_family":"Redhat","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"Kickstart dynamic","id":138,"inherited":false},{"description":null,"os_family":"NXOS","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"NX-OS default + fake","id":139,"inherited":false},{"description":null,"os_family":"Debian","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"Preseed default","id":140,"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":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Preseed default - autoinstall","id":135,"inherited":false},{"description":null,"os_family":"Debian","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Preseed default - LVM","id":136,"inherited":false},{"description":null,"os_family":"Windows","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Windows default - partition table","id":137,"inherited":false},{"description":null,"os_family":"Windows","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Windows default - GPT EFI partition table","id":138,"inherited":false},{"description":null,"os_family":"Xenserver","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"XenServer default","id":139,"inherited":false}],"provisioning_templates":[{"id":1,"name":"NX-OS + LVM. The snippet is automatically indented by 2 spaces. For reference:\nhttps://ubuntu.com/server/docs/install/autoinstall-reference","os_family":"Debian","created_at":"2024-04-15 + 09:11:37 UTC","updated_at":"2024-04-15 09:11:37 UTC","name":"Preseed default + autoinstall","id":141,"inherited":false},{"description":null,"os_family":"Debian","created_at":"2024-04-15 + 09:11:37 UTC","updated_at":"2024-04-15 09:11:37 UTC","name":"Preseed default + LVM","id":142,"inherited":false},{"description":null,"os_family":"Windows","created_at":"2024-04-15 + 09:11:37 UTC","updated_at":"2024-04-15 09:11:37 UTC","name":"Windows default + partition table","id":143,"inherited":false},{"description":null,"os_family":"Windows","created_at":"2024-04-15 + 09:11:37 UTC","updated_at":"2024-04-15 09:11:37 UTC","name":"Windows default + GPT EFI partition table","id":144,"inherited":false},{"description":null,"os_family":"Xenserver","created_at":"2024-04-15 + 09:11:37 UTC","updated_at":"2024-04-15 09:11:37 UTC","name":"XenServer default","id":145,"inherited":false},{"description":null,"os_family":"Redhat","created_at":"2024-04-22 + 11:15:26 UTC","updated_at":"2024-04-22 11:15:26 UTC","name":"Kickstart default + encrypted","id":152,"inherited":false},{"description":"Preseed Autoinstall + default storage snippet configures drives automatically\nwith LVM and disk + encryption.\nRequires Ubuntu >= 22.04.3.\nThe snippet is automatically indented + by 2 spaces. For reference:\nhttps://ubuntu.com/server/docs/install/autoinstall-reference","os_family":"Debian","created_at":"2024-04-22 + 11:15:26 UTC","updated_at":"2024-04-22 11:15:26 UTC","name":"Preseed default + autoinstall encrypted","id":153,"inherited":false}],"provisioning_templates":[{"id":1,"name":"NX-OS default POAP setup","template_kind_id":11,"template_kind_name":"POAP","inherited":false},{"id":2,"name":"AutoYaST default PXEGrub","template_kind_id":3,"template_kind_name":"PXEGrub","inherited":false},{"id":3,"name":"Jumpstart default PXEGrub","template_kind_id":3,"template_kind_name":"PXEGrub","inherited":false},{"id":4,"name":"Kickstart default PXEGrub","template_kind_id":3,"template_kind_name":"PXEGrub","inherited":false},{"id":5,"name":"PXEGrub default local boot","template_kind_id":3,"template_kind_name":"PXEGrub","inherited":false},{"id":6,"name":"PXEGrub - global default","template_kind_id":3,"template_kind_name":"PXEGrub","inherited":false},{"id":49,"name":"AutoYaST - default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":7,"name":"AutoYaST + global default","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":8,"name":"Kickstart default PXEGrub2","template_kind_id":4,"template_kind_name":"PXEGrub2","inherited":false},{"id":9,"name":"Preseed - default PXEGrub2","template_kind_id":4,"template_kind_name":"PXEGrub2","inherited":false},{"id":10,"name":"PXEGrub2 - default local boot","template_kind_id":4,"template_kind_name":"PXEGrub2","inherited":false},{"id":11,"name":"PXEGrub2 - global default","template_kind_id":4,"template_kind_name":"PXEGrub2","inherited":false},{"id":12,"name":"Alterator - default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":50,"name":"AutoYaST - SLES default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":13,"name":"AutoYaST - default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":14,"name":"CoreOS - PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":15,"name":"FreeBSD - (mfsBSD) PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":16,"name":"Kickstart - default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":17,"name":"Kickstart - oVirt-RHVH PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":18,"name":"Preseed - default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":19,"name":"Preseed - default PXELinux Autoinstall","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":20,"name":"PXELinux - chain iPXE","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":21,"name":"PXELinux - chain iPXE UNDI","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":22,"name":"PXELinux - default local boot","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":23,"name":"PXELinux - default memdisk","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":24,"name":"PXELinux - global default","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":25,"name":"RancherOS - PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":26,"name":"WAIK - default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":27,"name":"Windows - default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":28,"name":"XenServer - default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":29,"name":"Junos - default ZTP config","template_kind_id":10,"template_kind_name":"ZTP","inherited":false},{"id":30,"name":"CloudInit - default","template_kind_id":12,"template_kind_name":"cloud-init","inherited":false},{"id":31,"name":"Alterator - default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":73,"name":"chef_client","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":32,"name":"FreeBSD - (mfsBSD) finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":33,"name":"Jumpstart - default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":34,"name":"Junos - default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":35,"name":"Kickstart - default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":36,"name":"Preseed - default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":37,"name":"Windows - default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":38,"name":"XenServer - default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":39,"name":"Linux - host_init_config default","template_kind_id":1,"template_kind_name":"host_init_config","inherited":false},{"id":40,"name":"AutoYaST - default iPXE","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":41,"name":"iPXE - default local boot","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":42,"name":"iPXE - global default","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":51,"name":"CoreOS - provision","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":43,"name":"iPXE - intermediate script","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":44,"name":"Kickstart - default iPXE","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":45,"name":"Preseed - default iPXE","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":46,"name":"Windows - default iPXE","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":47,"name":"Alterator - default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":48,"name":"Atomic - Kickstart default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":52,"name":"FreeBSD - (mfsBSD) provision","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":53,"name":"Jumpstart - default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":54,"name":"Junos - default SLAX","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":55,"name":"Kickstart - default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":56,"name":"Kickstart - oVirt-RHVH","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":57,"name":"Preseed - default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":58,"name":"RancherOS - provision","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":59,"name":"Windows - default provision","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":60,"name":"XenServer - default answerfile","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":61,"name":"Global - Registration","template_kind_id":13,"template_kind_name":"registration","inherited":false},{"id":62,"name":"remote_execution_pull_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":63,"name":"Grubby - default","template_kind_id":8,"template_kind_name":"script","inherited":false},{"id":64,"name":"Windows - peSetup.cmd","template_kind_id":8,"template_kind_name":"script","inherited":false},{"id":65,"name":"alterator_pkglist","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":66,"name":"saltstack_minion","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":67,"name":"ansible_provisioning_callback","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":68,"name":"ansible_tower_callback_script","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":69,"name":"ansible_tower_callback_service","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":70,"name":"blacklist_kernel_modules","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":71,"name":"bmc_nic_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":72,"name":"built","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":74,"name":"coreos_cloudconfig","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":75,"name":"create_users","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":76,"name":"csr_attributes.yaml","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":77,"name":"efibootmgr_netboot","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":78,"name":"eject_cdrom","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":79,"name":"epel","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":80,"name":"fips_packages","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":81,"name":"fix_hosts","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":82,"name":"freeipa_register","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":83,"name":"http_proxy","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":84,"name":"insights","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":85,"name":"kickstart_ifcfg_bond_interface","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":86,"name":"kickstart_ifcfg_bonded_interface","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":87,"name":"rancheros_cloudconfig","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":111,"name":"schedule_reboot","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":88,"name":"kickstart_ifcfg_generic_interface","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":89,"name":"redhat_register","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":90,"name":"kickstart_ifcfg_get_identifier_names","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":91,"name":"kickstart_kernel_options","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":92,"name":"kickstart_networking_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":93,"name":"ntp","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":94,"name":"pkg_manager","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":95,"name":"preseed_kernel_options","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":96,"name":"remote_execution_ssh_keys","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":97,"name":"preseed_netplan_generic_interface","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":98,"name":"preseed_netplan_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":99,"name":"preseed_networking_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":100,"name":"puppet.conf","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":101,"name":"puppet_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":102,"name":"puppetlabs_repo","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":103,"name":"pxegrub2_chainload","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":104,"name":"pxegrub2_discovery","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":105,"name":"pxegrub2_mac","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":106,"name":"pxegrub_chainload","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":107,"name":"pxegrub_discovery","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":108,"name":"pxelinux_chainload","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":109,"name":"pxelinux_discovery","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":110,"name":"saltstack_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":112,"name":"Windows - network","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":113,"name":"yum_proxy","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":114,"name":"AutoYaST - default user data","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":115,"name":"Kickstart - default user data","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":116,"name":"Preseed - Autoinstall cloud-init user data","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":117,"name":"Preseed - default user data","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":118,"name":"UserData - default","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":119,"name":"UserData - open-vm-tools","template_kind_id":9,"template_kind_name":"user_data","inherited":false}],"domains":[],"realms":[],"hostgroups":[],"organizations":[],"hosts_count":0,"parameters":[],"deprecations":{"environments":"Environments + 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":11,"name":"PXEGrub2 + default local boot","template_kind_id":4,"template_kind_name":"PXEGrub2","inherited":false},{"id":12,"name":"PXEGrub2 + global default","template_kind_id":4,"template_kind_name":"PXEGrub2","inherited":false},{"id":13,"name":"Alterator + default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":14,"name":"AutoYaST + default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":15,"name":"CoreOS + PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":16,"name":"FreeBSD + (mfsBSD) PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":17,"name":"Kickstart + default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":18,"name":"Kickstart + oVirt-RHVH PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","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":79,"name":"eject_cdrom","template_kind_id":null,"template_kind_name":null,"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":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":25,"name":"PXELinux + global default","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":26,"name":"RancherOS + PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":27,"name":"WAIK + default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":28,"name":"Windows + default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":29,"name":"XenServer + default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":30,"name":"Junos + default ZTP config","template_kind_id":10,"template_kind_name":"ZTP","inherited":false},{"id":32,"name":"Alterator + default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":80,"name":"epel","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":34,"name":"Jumpstart + default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":35,"name":"Junos + default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":37,"name":"Preseed + default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":38,"name":"Windows + default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":39,"name":"XenServer + default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":40,"name":"Linux + host_init_config default","template_kind_id":1,"template_kind_name":"host_init_config","inherited":false},{"id":41,"name":"AutoYaST + default iPXE","template_kind_id":5,"template_kind_name":"iPXE","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":72,"name":"bmc_nic_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":44,"name":"iPXE + intermediate script","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":45,"name":"Kickstart + default iPXE","template_kind_id":5,"template_kind_name":"iPXE","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":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":81,"name":"fips_packages","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":50,"name":"Alterator + default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":51,"name":"AutoYaST + default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":52,"name":"AutoYaST + SLES default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":53,"name":"CoreOS + provision","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":54,"name":"FreeBSD + (mfsBSD) provision","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":55,"name":"Jumpstart + default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":56,"name":"Junos + default SLAX","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":70,"name":"ansible_tower_callback_service","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":59,"name":"Preseed + default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":60,"name":"RancherOS + provision","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":61,"name":"Windows + default provision","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":62,"name":"XenServer + default answerfile","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":63,"name":"Global + Registration","template_kind_id":13,"template_kind_name":"registration","inherited":false},{"id":64,"name":"remote_execution_pull_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":65,"name":"Grubby + default","template_kind_id":8,"template_kind_name":"script","inherited":false},{"id":66,"name":"Windows + peSetup.cmd","template_kind_id":8,"template_kind_name":"script","inherited":false},{"id":67,"name":"alterator_pkglist","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":68,"name":"ansible_provisioning_callback","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":69,"name":"ansible_tower_callback_script","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":71,"name":"blacklist_kernel_modules","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":73,"name":"built","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":74,"name":"chef_client","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":75,"name":"coreos_cloudconfig","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":76,"name":"create_users","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":77,"name":"csr_attributes.yaml","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":78,"name":"efibootmgr_netboot","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":82,"name":"fix_hosts","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":83,"name":"freeipa_register","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":84,"name":"http_proxy","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":85,"name":"insights","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":86,"name":"kickstart_ifcfg_bond_interface","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":87,"name":"kickstart_ifcfg_bonded_interface","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":88,"name":"kickstart_ifcfg_generic_interface","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":89,"name":"kickstart_ifcfg_get_identifier_names","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":91,"name":"kickstart_networking_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":92,"name":"kickstart_rhsm","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":93,"name":"ntp","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":95,"name":"preseed_kernel_options","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":96,"name":"preseed_kernel_options_autoinstall","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":97,"name":"preseed_netplan_generic_interface","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":98,"name":"preseed_netplan_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":99,"name":"preseed_networking_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":106,"name":"pxegrub_chainload","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":100,"name":"puppet.conf","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":101,"name":"puppet_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":102,"name":"puppetlabs_repo","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":103,"name":"pxegrub2_chainload","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":104,"name":"pxegrub2_discovery","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":105,"name":"pxegrub2_mac","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":107,"name":"pxegrub_discovery","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":108,"name":"pxelinux_chainload","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":109,"name":"pxelinux_discovery","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":110,"name":"rancheros_cloudconfig","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":124,"name":"UserData + open-vm-tools","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":125,"name":"Windows + default user data","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":112,"name":"remote_execution_ssh_keys","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":113,"name":"saltstack_minion","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":114,"name":"saltstack_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":115,"name":"schedule_reboot","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":117,"name":"Windows + network","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":118,"name":"yum_proxy","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":119,"name":"AutoYaST + default user data","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":120,"name":"Kickstart + default user data","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":122,"name":"Preseed + default user data","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":90,"name":"kickstart_kernel_options","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":36,"name":"Kickstart + default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":57,"name":"Kickstart + default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":58,"name":"Kickstart + oVirt-RHVH","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":149,"name":"disk_enc_clevis_tang","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":150,"name":"kickstart_network_interface","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":94,"name":"pkg_manager","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":151,"name":"preseed_autoinstall_clevis_tang_wrapper","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":111,"name":"redhat_register","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":116,"name":"subscription_manager_setup","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}],"domains":[],"realms":[],"hostgroups":[],"organizations":[],"hosts_count":0,"parameters":[],"deprecations":{"environments":"Environments got deprecated from this endpoint."}}' headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive + Content-Length: + - '19114' 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''; @@ -253,13 +265,11 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.4.0 + - 3.11.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: diff --git a/tests/test_playbooks/fixtures/location-1.yml b/tests/test_playbooks/fixtures/location-1.yml index c1bacd6d9..3909f5ca6 100644 --- a/tests/test_playbooks/fixtures/location-1.yml +++ b/tests/test_playbooks/fixtures/location-1.yml @@ -14,12 +14,14 @@ interactions: uri: https://foreman.example.org/api/status response: body: - string: '{"result":"ok","status":200,"version":"3.4.0","api_version":2}' + string: '{"result":"ok","status":200,"version":"3.11.0-develop","api_version":2}' headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive + Content-Length: + - '71' 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.4.0 + - 3.11.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: @@ -70,14 +70,16 @@ interactions: body: string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": 4294967296,\n \"search\": \"title=\\\"Test Location\\\"\",\n \"sort\": {\n - \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"ancestry\":null,\"parent_id\":null,\"parent_name\":null,\"created_at\":\"2022-11-08 - 09:29:05 UTC\",\"updated_at\":\"2022-11-08 09:29:05 UTC\",\"id\":4,\"name\":\"Test + \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"ancestry\":null,\"parent_id\":null,\"parent_name\":null,\"created_at\":\"2024-07-25 + 12:00:01 UTC\",\"updated_at\":\"2024-07-25 12:00:01 UTC\",\"id\":7,\"name\":\"Test Location\",\"title\":\"Test Location\",\"description\":null}]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive + Content-Length: + - '384' 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.4.0 + - 3.11.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: @@ -123,121 +123,133 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/api/locations/4 + uri: https://foreman.example.org/api/locations/7 response: body: - string: '{"select_all_types":[],"description":null,"created_at":"2022-11-08 - 09:29:05 UTC","updated_at":"2022-11-08 09:29:05 UTC","ancestry":null,"parent_id":null,"parent_name":null,"id":4,"name":"Test - Location","title":"Test Location","users":[],"smart_proxies":[],"subnets":[],"compute_resources":[],"media":[],"ptables":[{"description":null,"os_family":"Suse","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"AutoYaST entire - SCSI disk","id":120,"inherited":false},{"description":null,"os_family":"Suse","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"AutoYaST entire - virtual disk","id":121,"inherited":false},{"description":null,"os_family":"Suse","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"AutoYaST LVM","id":122,"inherited":false},{"description":null,"os_family":"Coreos","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"CoreOS default - fake","id":123,"inherited":false},{"description":null,"os_family":"Rancheros","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Empty","id":124,"inherited":false},{"description":null,"os_family":"Freebsd","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"FreeBSD default - fake","id":125,"inherited":false},{"description":null,"os_family":"Solaris","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Jumpstart default","id":126,"inherited":false},{"description":null,"os_family":"Solaris","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Jumpstart mirrored","id":127,"inherited":false},{"description":null,"os_family":"Junos","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Junos default - fake","id":128,"inherited":false},{"description":null,"os_family":"Redhat","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Kickstart custom","id":129,"inherited":false},{"description":null,"os_family":"Redhat","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Kickstart default","id":130,"inherited":false},{"description":null,"os_family":"Redhat","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Kickstart default - thin","id":131,"inherited":false},{"description":null,"os_family":"Redhat","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Kickstart dynamic","id":132,"inherited":false},{"description":null,"os_family":"NXOS","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"NX-OS default - fake","id":133,"inherited":false},{"description":null,"os_family":"Debian","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Preseed default","id":134,"inherited":false},{"description":"Preseed + string: '{"select_all_types":[],"description":null,"created_at":"2024-07-25 + 12:00:01 UTC","updated_at":"2024-07-25 12:00:01 UTC","ancestry":null,"parent_id":null,"parent_name":null,"id":7,"name":"Test + Location","title":"Test Location","users":[],"smart_proxies":[],"subnets":[],"compute_resources":[],"media":[],"ptables":[{"description":null,"os_family":"Suse","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"AutoYaST entire + SCSI disk","id":126,"inherited":false},{"description":null,"os_family":"Suse","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"AutoYaST entire + virtual disk","id":127,"inherited":false},{"description":null,"os_family":"Suse","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"AutoYaST LVM","id":128,"inherited":false},{"description":null,"os_family":"Coreos","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"CoreOS default + fake","id":129,"inherited":false},{"description":null,"os_family":"Rancheros","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"Empty","id":130,"inherited":false},{"description":null,"os_family":"Freebsd","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"FreeBSD default + fake","id":131,"inherited":false},{"description":null,"os_family":"Solaris","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"Jumpstart default","id":132,"inherited":false},{"description":null,"os_family":"Solaris","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"Jumpstart mirrored","id":133,"inherited":false},{"description":null,"os_family":"Junos","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"Junos default + fake","id":134,"inherited":false},{"description":null,"os_family":"Redhat","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"Kickstart custom","id":135,"inherited":false},{"description":null,"os_family":"Redhat","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"Kickstart default","id":136,"inherited":false},{"description":null,"os_family":"Redhat","created_at":"2024-04-22 + 11:15:26 UTC","updated_at":"2024-04-22 11:15:26 UTC","name":"Kickstart default + encrypted","id":152,"inherited":false},{"description":null,"os_family":"Redhat","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"Kickstart default + thin","id":137,"inherited":false},{"description":null,"os_family":"Redhat","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"Kickstart dynamic","id":138,"inherited":false},{"description":null,"os_family":"NXOS","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"NX-OS default + fake","id":139,"inherited":false},{"description":null,"os_family":"Debian","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"Preseed default","id":140,"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":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Preseed default - autoinstall","id":135,"inherited":false},{"description":null,"os_family":"Debian","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Preseed default - LVM","id":136,"inherited":false},{"description":null,"os_family":"Windows","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Windows default - GPT EFI partition table","id":138,"inherited":false},{"description":null,"os_family":"Windows","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Windows default - partition table","id":137,"inherited":false},{"description":null,"os_family":"Xenserver","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"XenServer default","id":139,"inherited":false}],"provisioning_templates":[{"id":47,"name":"Alterator - default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":31,"name":"Alterator - default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":12,"name":"Alterator - default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":65,"name":"alterator_pkglist","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":67,"name":"ansible_provisioning_callback","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":68,"name":"ansible_tower_callback_script","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":69,"name":"ansible_tower_callback_service","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":48,"name":"Atomic - Kickstart default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":49,"name":"AutoYaST - default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":40,"name":"AutoYaST + LVM. The snippet is automatically indented by 2 spaces. For reference:\nhttps://ubuntu.com/server/docs/install/autoinstall-reference","os_family":"Debian","created_at":"2024-04-15 + 09:11:37 UTC","updated_at":"2024-04-15 09:11:37 UTC","name":"Preseed default + autoinstall","id":141,"inherited":false},{"description":"Preseed Autoinstall + default storage snippet configures drives automatically\nwith LVM and disk + encryption.\nRequires Ubuntu >= 22.04.3.\nThe snippet is automatically indented + by 2 spaces. For reference:\nhttps://ubuntu.com/server/docs/install/autoinstall-reference","os_family":"Debian","created_at":"2024-04-22 + 11:15:26 UTC","updated_at":"2024-04-22 11:15:26 UTC","name":"Preseed default + autoinstall encrypted","id":153,"inherited":false},{"description":null,"os_family":"Debian","created_at":"2024-04-15 + 09:11:37 UTC","updated_at":"2024-04-15 09:11:37 UTC","name":"Preseed default + LVM","id":142,"inherited":false},{"description":null,"os_family":"Windows","created_at":"2024-04-15 + 09:11:37 UTC","updated_at":"2024-04-15 09:11:37 UTC","name":"Windows default + GPT EFI partition table","id":144,"inherited":false},{"description":null,"os_family":"Windows","created_at":"2024-04-15 + 09:11:37 UTC","updated_at":"2024-04-15 09:11:37 UTC","name":"Windows default + partition table","id":143,"inherited":false},{"description":null,"os_family":"Xenserver","created_at":"2024-04-15 + 09:11:37 UTC","updated_at":"2024-04-15 09:11:37 UTC","name":"XenServer default","id":145,"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":67,"name":"alterator_pkglist","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":68,"name":"ansible_provisioning_callback","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":69,"name":"ansible_tower_callback_script","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":70,"name":"ansible_tower_callback_service","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":51,"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":13,"name":"AutoYaST - default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":114,"name":"AutoYaST - default user data","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":50,"name":"AutoYaST - SLES default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":70,"name":"blacklist_kernel_modules","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":71,"name":"bmc_nic_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":72,"name":"built","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":73,"name":"chef_client","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":30,"name":"CloudInit - default","template_kind_id":12,"template_kind_name":"cloud-init","inherited":false},{"id":74,"name":"coreos_cloudconfig","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":51,"name":"CoreOS - provision","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":14,"name":"CoreOS - PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":75,"name":"create_users","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":76,"name":"csr_attributes.yaml","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":77,"name":"efibootmgr_netboot","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":78,"name":"eject_cdrom","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":79,"name":"epel","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":80,"name":"fips_packages","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":81,"name":"fix_hosts","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":32,"name":"FreeBSD - (mfsBSD) finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":52,"name":"FreeBSD - (mfsBSD) provision","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":15,"name":"FreeBSD - (mfsBSD) PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":82,"name":"freeipa_register","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":61,"name":"Global - Registration","template_kind_id":13,"template_kind_name":"registration","inherited":false},{"id":63,"name":"Grubby - default","template_kind_id":8,"template_kind_name":"script","inherited":false},{"id":83,"name":"http_proxy","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":84,"name":"insights","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":41,"name":"iPXE - default local boot","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":42,"name":"iPXE - global default","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":43,"name":"iPXE - intermediate script","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":53,"name":"Jumpstart - default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":33,"name":"Jumpstart + 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":52,"name":"AutoYaST + SLES default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":71,"name":"blacklist_kernel_modules","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":72,"name":"bmc_nic_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":73,"name":"built","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":74,"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":75,"name":"coreos_cloudconfig","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":53,"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":76,"name":"create_users","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":77,"name":"csr_attributes.yaml","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":149,"name":"disk_enc_clevis_tang","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":78,"name":"efibootmgr_netboot","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":79,"name":"eject_cdrom","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":80,"name":"epel","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":81,"name":"fips_packages","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":82,"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":54,"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":83,"name":"freeipa_register","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":63,"name":"Global + Registration","template_kind_id":13,"template_kind_name":"registration","inherited":false},{"id":65,"name":"Grubby + default","template_kind_id":8,"template_kind_name":"script","inherited":false},{"id":84,"name":"http_proxy","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":85,"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":55,"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":34,"name":"Junos - default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":54,"name":"Junos - default SLAX","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":29,"name":"Junos - default ZTP config","template_kind_id":10,"template_kind_name":"ZTP","inherited":false},{"id":55,"name":"Kickstart - default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":35,"name":"Kickstart - default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":44,"name":"Kickstart + 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":56,"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":57,"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":16,"name":"Kickstart - default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":115,"name":"Kickstart - default user data","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":86,"name":"kickstart_ifcfg_bonded_interface","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":85,"name":"kickstart_ifcfg_bond_interface","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":88,"name":"kickstart_ifcfg_generic_interface","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":90,"name":"kickstart_ifcfg_get_identifier_names","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":91,"name":"kickstart_kernel_options","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":92,"name":"kickstart_networking_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":56,"name":"Kickstart - oVirt-RHVH","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":17,"name":"Kickstart - oVirt-RHVH PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":39,"name":"Linux + 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":87,"name":"kickstart_ifcfg_bonded_interface","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":86,"name":"kickstart_ifcfg_bond_interface","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":88,"name":"kickstart_ifcfg_generic_interface","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":89,"name":"kickstart_ifcfg_get_identifier_names","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":90,"name":"kickstart_kernel_options","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":91,"name":"kickstart_networking_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":150,"name":"kickstart_network_interface","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":58,"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":92,"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":93,"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":94,"name":"pkg_manager","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":116,"name":"Preseed - Autoinstall cloud-init user data","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":57,"name":"Preseed - default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":36,"name":"Preseed - default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":45,"name":"Preseed - default iPXE","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":18,"name":"Preseed - default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":19,"name":"Preseed - default PXELinux Autoinstall","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":117,"name":"Preseed - default user data","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":95,"name":"preseed_kernel_options","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":97,"name":"preseed_netplan_generic_interface","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":98,"name":"preseed_netplan_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":99,"name":"preseed_networking_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":100,"name":"puppet.conf","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":102,"name":"puppetlabs_repo","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":101,"name":"puppet_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":103,"name":"pxegrub2_chainload","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":10,"name":"PXEGrub2 - default local boot","template_kind_id":4,"template_kind_name":"PXEGrub2","inherited":false},{"id":104,"name":"pxegrub2_discovery","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":11,"name":"PXEGrub2 + default POAP setup","template_kind_id":11,"template_kind_name":"POAP","inherited":false},{"id":94,"name":"pkg_manager","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":151,"name":"preseed_autoinstall_clevis_tang_wrapper","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":59,"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":95,"name":"preseed_kernel_options","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":96,"name":"preseed_kernel_options_autoinstall","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":97,"name":"preseed_netplan_generic_interface","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":98,"name":"preseed_netplan_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":99,"name":"preseed_networking_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":100,"name":"puppet.conf","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":102,"name":"puppetlabs_repo","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":101,"name":"puppet_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":103,"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":104,"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":105,"name":"pxegrub2_mac","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":106,"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":107,"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":20,"name":"PXELinux - chain iPXE","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":21,"name":"PXELinux - chain iPXE UNDI","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":108,"name":"pxelinux_chainload","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":22,"name":"PXELinux - default local boot","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":23,"name":"PXELinux - default memdisk","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":109,"name":"pxelinux_discovery","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":24,"name":"PXELinux - global default","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":87,"name":"rancheros_cloudconfig","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":58,"name":"RancherOS - provision","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":25,"name":"RancherOS - PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":89,"name":"redhat_register","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":62,"name":"remote_execution_pull_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":96,"name":"remote_execution_ssh_keys","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":66,"name":"saltstack_minion","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":110,"name":"saltstack_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":111,"name":"schedule_reboot","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":118,"name":"UserData - default","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":119,"name":"UserData - open-vm-tools","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":26,"name":"WAIK - default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":37,"name":"Windows - default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":46,"name":"Windows - default iPXE","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":59,"name":"Windows - default provision","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":27,"name":"Windows - default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":112,"name":"Windows - network","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":64,"name":"Windows - peSetup.cmd","template_kind_id":8,"template_kind_name":"script","inherited":false},{"id":60,"name":"XenServer - default answerfile","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":38,"name":"XenServer - default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":28,"name":"XenServer - default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":113,"name":"yum_proxy","template_kind_id":null,"template_kind_name":null,"inherited":false}],"domains":[],"realms":[],"hostgroups":[],"organizations":[],"hosts_count":0,"parameters":[],"deprecations":{"environments":"Environments + 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":108,"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":109,"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":110,"name":"rancheros_cloudconfig","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":60,"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":111,"name":"redhat_register","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":64,"name":"remote_execution_pull_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":112,"name":"remote_execution_ssh_keys","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":113,"name":"saltstack_minion","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":114,"name":"saltstack_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":115,"name":"schedule_reboot","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":116,"name":"subscription_manager_setup","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":61,"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":125,"name":"Windows + default user data","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":117,"name":"Windows + network","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":66,"name":"Windows + peSetup.cmd","template_kind_id":8,"template_kind_name":"script","inherited":false},{"id":62,"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":118,"name":"yum_proxy","template_kind_id":null,"template_kind_name":null,"inherited":false}],"domains":[],"realms":[],"hostgroups":[],"organizations":[],"hosts_count":0,"parameters":[],"deprecations":{"environments":"Environments got deprecated from this endpoint."}}' headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive + Content-Length: + - '19114' 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''; @@ -251,13 +263,11 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.4.0 + - 3.11.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: diff --git a/tests/test_playbooks/fixtures/location-10.yml b/tests/test_playbooks/fixtures/location-10.yml index 92ba571ad..05a67b0fe 100644 --- a/tests/test_playbooks/fixtures/location-10.yml +++ b/tests/test_playbooks/fixtures/location-10.yml @@ -14,12 +14,14 @@ interactions: uri: https://foreman.example.org/api/status response: body: - string: '{"result":"ok","status":200,"version":"3.4.0","api_version":2}' + string: '{"result":"ok","status":200,"version":"3.11.0-develop","api_version":2}' headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive + Content-Length: + - '71' 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.4.0 + - 3.11.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: @@ -71,15 +71,17 @@ interactions: string: "{\n \"total\": 5,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": 4294967296,\n \"search\": \"title=\\\"Test Location/Sub Location 1/Sub Location 2\\\"\",\n \"sort\": {\n \"by\": null,\n \"order\": null\n },\n \"results\": - [{\"ancestry\":\"4/5\",\"parent_id\":5,\"parent_name\":\"Test Location/Sub - Location 1\",\"created_at\":\"2022-11-08 09:29:09 UTC\",\"updated_at\":\"2022-11-08 - 09:29:09 UTC\",\"id\":6,\"name\":\"Sub Location 2\",\"title\":\"Test Location/Sub + [{\"ancestry\":\"7/8\",\"parent_id\":8,\"parent_name\":\"Test Location/Sub + Location 1\",\"created_at\":\"2024-07-25 12:00:07 UTC\",\"updated_at\":\"2024-07-25 + 12:00:07 UTC\",\"id\":9,\"name\":\"Sub Location 2\",\"title\":\"Test Location/Sub Location 1/Sub Location 2\",\"description\":null}]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive + Content-Length: + - '469' 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''; @@ -93,13 +95,11 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.4.0 + - 3.11.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: @@ -131,14 +131,16 @@ interactions: string: "{\n \"total\": 5,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": 4294967296,\n \"search\": \"title=\\\"Test Location/Sub Location 1\\\"\",\n \ \"sort\": {\n \"by\": null,\n \"order\": null\n },\n \"results\": - [{\"ancestry\":\"4\",\"parent_id\":4,\"parent_name\":\"Test Location\",\"created_at\":\"2022-11-08 - 09:29:07 UTC\",\"updated_at\":\"2022-11-08 09:29:07 UTC\",\"id\":5,\"name\":\"Sub + [{\"ancestry\":\"7\",\"parent_id\":7,\"parent_name\":\"Test Location\",\"created_at\":\"2024-07-25 + 12:00:04 UTC\",\"updated_at\":\"2024-07-25 12:00:04 UTC\",\"id\":8,\"name\":\"Sub Location 1\",\"title\":\"Test Location/Sub Location 1\",\"description\":null}]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive + Content-Length: + - '422' 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''; @@ -152,13 +154,11 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.4.0 + - 3.11.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: @@ -186,16 +186,18 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: DELETE - uri: https://foreman.example.org/api/locations/6 + uri: https://foreman.example.org/api/locations/9 response: body: - string: '{"id":6,"name":"Sub Location 2","created_at":"2022-11-08T09:29:09.414Z","updated_at":"2022-11-08T09:29:09.414Z","ignore_types":[],"ancestry":"4/5","title":"Test + string: '{"id":9,"name":"Sub Location 2","created_at":"2024-07-25T12:00:07.163Z","updated_at":"2024-07-25T12:00:07.163Z","ignore_types":[],"ancestry":"7/8","title":"Test Location/Sub Location 1/Sub Location 2","description":null}' headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive + Content-Length: + - '220' 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 +211,11 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.4.0 + - 3.11.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: diff --git a/tests/test_playbooks/fixtures/location-11.yml b/tests/test_playbooks/fixtures/location-11.yml index 19491c0f0..e01157090 100644 --- a/tests/test_playbooks/fixtures/location-11.yml +++ b/tests/test_playbooks/fixtures/location-11.yml @@ -14,12 +14,14 @@ interactions: uri: https://foreman.example.org/api/status response: body: - string: '{"result":"ok","status":200,"version":"3.4.0","api_version":2}' + string: '{"result":"ok","status":200,"version":"3.11.0-develop","api_version":2}' headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive + Content-Length: + - '71' 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.4.0 + - 3.11.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: @@ -71,14 +71,16 @@ interactions: string: "{\n \"total\": 4,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": 4294967296,\n \"search\": \"title=\\\"Test Location/Sub Location 1\\\"\",\n \ \"sort\": {\n \"by\": null,\n \"order\": null\n },\n \"results\": - [{\"ancestry\":\"4\",\"parent_id\":4,\"parent_name\":\"Test Location\",\"created_at\":\"2022-11-08 - 09:29:07 UTC\",\"updated_at\":\"2022-11-08 09:29:07 UTC\",\"id\":5,\"name\":\"Sub + [{\"ancestry\":\"7\",\"parent_id\":7,\"parent_name\":\"Test Location\",\"created_at\":\"2024-07-25 + 12:00:04 UTC\",\"updated_at\":\"2024-07-25 12:00:04 UTC\",\"id\":8,\"name\":\"Sub Location 1\",\"title\":\"Test Location/Sub Location 1\",\"description\":null}]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive + Content-Length: + - '422' 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''; @@ -92,13 +94,11 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.4.0 + - 3.11.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: @@ -129,14 +129,16 @@ interactions: body: string: "{\n \"total\": 4,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": 4294967296,\n \"search\": \"title=\\\"Test Location\\\"\",\n \"sort\": {\n - \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"ancestry\":null,\"parent_id\":null,\"parent_name\":null,\"created_at\":\"2022-11-08 - 09:29:05 UTC\",\"updated_at\":\"2022-11-08 09:29:05 UTC\",\"id\":4,\"name\":\"Test + \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"ancestry\":null,\"parent_id\":null,\"parent_name\":null,\"created_at\":\"2024-07-25 + 12:00:01 UTC\",\"updated_at\":\"2024-07-25 12:00:01 UTC\",\"id\":7,\"name\":\"Test Location\",\"title\":\"Test Location\",\"description\":null}]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive + Content-Length: + - '384' 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''; @@ -150,13 +152,11 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.4.0 + - 3.11.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: @@ -184,16 +184,18 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: DELETE - uri: https://foreman.example.org/api/locations/5 + uri: https://foreman.example.org/api/locations/8 response: body: - string: '{"id":5,"name":"Sub Location 1","created_at":"2022-11-08T09:29:07.656Z","updated_at":"2022-11-08T09:29:07.656Z","ignore_types":[],"ancestry":"4","title":"Test + string: '{"id":8,"name":"Sub Location 1","created_at":"2024-07-25T12:00:04.339Z","updated_at":"2024-07-25T12:00:04.339Z","ignore_types":[],"ancestry":"7","title":"Test Location/Sub Location 1","description":null}' headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive + Content-Length: + - '203' 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.4.0 + - 3.11.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: diff --git a/tests/test_playbooks/fixtures/location-12.yml b/tests/test_playbooks/fixtures/location-12.yml index dfcf3b8a8..e6f04110c 100644 --- a/tests/test_playbooks/fixtures/location-12.yml +++ b/tests/test_playbooks/fixtures/location-12.yml @@ -14,12 +14,14 @@ interactions: uri: https://foreman.example.org/api/status response: body: - string: '{"result":"ok","status":200,"version":"3.4.0","api_version":2}' + string: '{"result":"ok","status":200,"version":"3.11.0-develop","api_version":2}' headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive + Content-Length: + - '71' 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.4.0 + - 3.11.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: @@ -71,14 +71,16 @@ interactions: string: "{\n \"total\": 3,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": 4294967296,\n \"search\": \"title=\\\"Test Location/Sub Location 2\\\"\",\n \ \"sort\": {\n \"by\": null,\n \"order\": null\n },\n \"results\": - [{\"ancestry\":\"4\",\"parent_id\":4,\"parent_name\":\"Test Location\",\"created_at\":\"2022-11-08 - 09:29:12 UTC\",\"updated_at\":\"2022-11-08 09:29:12 UTC\",\"id\":7,\"name\":\"Sub + [{\"ancestry\":\"7\",\"parent_id\":7,\"parent_name\":\"Test Location\",\"created_at\":\"2024-07-25 + 12:00:12 UTC\",\"updated_at\":\"2024-07-25 12:00:12 UTC\",\"id\":10,\"name\":\"Sub Location 2\",\"title\":\"Test Location/Sub Location 2\",\"description\":null}]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive + Content-Length: + - '423' 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''; @@ -92,13 +94,11 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.4.0 + - 3.11.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: @@ -129,14 +129,16 @@ interactions: body: string: "{\n \"total\": 3,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": 4294967296,\n \"search\": \"title=\\\"Test Location\\\"\",\n \"sort\": {\n - \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"ancestry\":null,\"parent_id\":null,\"parent_name\":null,\"created_at\":\"2022-11-08 - 09:29:05 UTC\",\"updated_at\":\"2022-11-08 09:29:05 UTC\",\"id\":4,\"name\":\"Test + \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"ancestry\":null,\"parent_id\":null,\"parent_name\":null,\"created_at\":\"2024-07-25 + 12:00:01 UTC\",\"updated_at\":\"2024-07-25 12:00:01 UTC\",\"id\":7,\"name\":\"Test Location\",\"title\":\"Test Location\",\"description\":null}]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive + Content-Length: + - '384' 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''; @@ -150,13 +152,11 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.4.0 + - 3.11.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: @@ -184,16 +184,18 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: DELETE - uri: https://foreman.example.org/api/locations/7 + uri: https://foreman.example.org/api/locations/10 response: body: - string: '{"id":7,"name":"Sub Location 2","created_at":"2022-11-08T09:29:12.729Z","updated_at":"2022-11-08T09:29:12.729Z","ignore_types":[],"ancestry":"4","title":"Test + string: '{"id":10,"name":"Sub Location 2","created_at":"2024-07-25T12:00:12.588Z","updated_at":"2024-07-25T12:00:12.588Z","ignore_types":[],"ancestry":"7","title":"Test Location/Sub Location 2","description":null}' headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive + Content-Length: + - '204' 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.4.0 + - 3.11.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: diff --git a/tests/test_playbooks/fixtures/location-13.yml b/tests/test_playbooks/fixtures/location-13.yml index 62fa24260..dd0141349 100644 --- a/tests/test_playbooks/fixtures/location-13.yml +++ b/tests/test_playbooks/fixtures/location-13.yml @@ -14,12 +14,14 @@ interactions: uri: https://foreman.example.org/api/status response: body: - string: '{"result":"ok","status":200,"version":"3.4.0","api_version":2}' + string: '{"result":"ok","status":200,"version":"3.11.0-develop","api_version":2}' headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive + Content-Length: + - '71' 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.4.0 + - 3.11.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: @@ -77,6 +77,8 @@ interactions: - max-age=0, private, must-revalidate Connection: - Keep-Alive + Content-Length: + - '195' 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''; @@ -90,13 +92,11 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.4.0 + - 3.11.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: @@ -127,14 +127,16 @@ interactions: body: string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": 4294967296,\n \"search\": \"title=\\\"Test Location\\\"\",\n \"sort\": {\n - \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"ancestry\":null,\"parent_id\":null,\"parent_name\":null,\"created_at\":\"2022-11-08 - 09:29:05 UTC\",\"updated_at\":\"2022-11-08 09:29:05 UTC\",\"id\":4,\"name\":\"Test + \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"ancestry\":null,\"parent_id\":null,\"parent_name\":null,\"created_at\":\"2024-07-25 + 12:00:01 UTC\",\"updated_at\":\"2024-07-25 12:00:01 UTC\",\"id\":7,\"name\":\"Test Location\",\"title\":\"Test Location\",\"description\":null}]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive + Content-Length: + - '384' 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 +150,11 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.4.0 + - 3.11.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: diff --git a/tests/test_playbooks/fixtures/location-14.yml b/tests/test_playbooks/fixtures/location-14.yml index 081806ed2..239bb0513 100644 --- a/tests/test_playbooks/fixtures/location-14.yml +++ b/tests/test_playbooks/fixtures/location-14.yml @@ -14,12 +14,14 @@ interactions: uri: https://foreman.example.org/api/status response: body: - string: '{"result":"ok","status":200,"version":"3.4.0","api_version":2}' + string: '{"result":"ok","status":200,"version":"3.11.0-develop","api_version":2}' headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive + Content-Length: + - '71' 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.4.0 + - 3.11.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: @@ -77,6 +77,8 @@ interactions: - max-age=0, private, must-revalidate Connection: - Keep-Alive + Content-Length: + - '195' 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''; @@ -90,13 +92,11 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.4.0 + - 3.11.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: @@ -127,14 +127,16 @@ interactions: body: string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": 4294967296,\n \"search\": \"title=\\\"Test Location\\\"\",\n \"sort\": {\n - \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"ancestry\":null,\"parent_id\":null,\"parent_name\":null,\"created_at\":\"2022-11-08 - 09:29:05 UTC\",\"updated_at\":\"2022-11-08 09:29:05 UTC\",\"id\":4,\"name\":\"Test + \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"ancestry\":null,\"parent_id\":null,\"parent_name\":null,\"created_at\":\"2024-07-25 + 12:00:01 UTC\",\"updated_at\":\"2024-07-25 12:00:01 UTC\",\"id\":7,\"name\":\"Test Location\",\"title\":\"Test Location\",\"description\":null}]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive + Content-Length: + - '384' 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 +150,11 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.4.0 + - 3.11.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: diff --git a/tests/test_playbooks/fixtures/location-15.yml b/tests/test_playbooks/fixtures/location-15.yml index 4c7ef98d8..8377d3278 100644 --- a/tests/test_playbooks/fixtures/location-15.yml +++ b/tests/test_playbooks/fixtures/location-15.yml @@ -14,12 +14,14 @@ interactions: uri: https://foreman.example.org/api/status response: body: - string: '{"result":"ok","status":200,"version":"3.4.0","api_version":2}' + string: '{"result":"ok","status":200,"version":"3.11.0-develop","api_version":2}' headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive + Content-Length: + - '71' 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.4.0 + - 3.11.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: @@ -70,14 +70,16 @@ interactions: body: string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": 4294967296,\n \"search\": \"title=\\\"Test Location\\\"\",\n \"sort\": {\n - \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"ancestry\":null,\"parent_id\":null,\"parent_name\":null,\"created_at\":\"2022-11-08 - 09:29:05 UTC\",\"updated_at\":\"2022-11-08 09:29:05 UTC\",\"id\":4,\"name\":\"Test + \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"ancestry\":null,\"parent_id\":null,\"parent_name\":null,\"created_at\":\"2024-07-25 + 12:00:01 UTC\",\"updated_at\":\"2024-07-25 12:00:01 UTC\",\"id\":7,\"name\":\"Test Location\",\"title\":\"Test Location\",\"description\":null}]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive + Content-Length: + - '384' 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.4.0 + - 3.11.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 +125,18 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: DELETE - uri: https://foreman.example.org/api/locations/4 + uri: https://foreman.example.org/api/locations/7 response: body: - string: '{"id":4,"name":"Test Location","created_at":"2022-11-08T09:29:05.978Z","updated_at":"2022-11-08T09:29:05.978Z","ignore_types":[],"ancestry":null,"title":"Test + string: '{"id":7,"name":"Test Location","created_at":"2024-07-25T12:00:01.947Z","updated_at":"2024-07-25T12:00:01.947Z","ignore_types":[],"ancestry":null,"title":"Test Location","description":null}' headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive + Content-Length: + - '188' 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 +150,11 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.4.0 + - 3.11.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: diff --git a/tests/test_playbooks/fixtures/location-16.yml b/tests/test_playbooks/fixtures/location-16.yml index c57ba6f0f..3f9d44382 100644 --- a/tests/test_playbooks/fixtures/location-16.yml +++ b/tests/test_playbooks/fixtures/location-16.yml @@ -14,12 +14,14 @@ interactions: uri: https://foreman.example.org/api/status response: body: - string: '{"result":"ok","status":200,"version":"3.4.0","api_version":2}' + string: '{"result":"ok","status":200,"version":"3.11.0-develop","api_version":2}' headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive + Content-Length: + - '71' 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.4.0 + - 3.11.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: @@ -76,6 +76,8 @@ interactions: - max-age=0, private, must-revalidate Connection: - Keep-Alive + Content-Length: + - '180' 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 +91,11 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.4.0 + - 3.11.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: @@ -128,118 +128,130 @@ interactions: uri: https://foreman.example.org/api/locations response: body: - string: '{"select_all_types":[],"description":null,"created_at":"2022-11-08 - 09:29:18 UTC","updated_at":"2022-11-08 09:29:18 UTC","ancestry":null,"parent_id":null,"parent_name":null,"id":8,"name":"Test - Location","title":"Test Location","users":[],"smart_proxies":[],"subnets":[],"compute_resources":[],"media":[],"ptables":[{"description":null,"os_family":"Suse","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"AutoYaST entire - SCSI disk","id":120,"inherited":false},{"description":null,"os_family":"Suse","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"AutoYaST entire - virtual disk","id":121,"inherited":false},{"description":null,"os_family":"Suse","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"AutoYaST LVM","id":122,"inherited":false},{"description":null,"os_family":"Coreos","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"CoreOS default - fake","id":123,"inherited":false},{"description":null,"os_family":"Rancheros","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Empty","id":124,"inherited":false},{"description":null,"os_family":"Freebsd","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"FreeBSD default - fake","id":125,"inherited":false},{"description":null,"os_family":"Solaris","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Jumpstart default","id":126,"inherited":false},{"description":null,"os_family":"Solaris","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Jumpstart mirrored","id":127,"inherited":false},{"description":null,"os_family":"Junos","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Junos default - fake","id":128,"inherited":false},{"description":null,"os_family":"Redhat","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Kickstart custom","id":129,"inherited":false},{"description":null,"os_family":"Redhat","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Kickstart default","id":130,"inherited":false},{"description":null,"os_family":"Redhat","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Kickstart default - thin","id":131,"inherited":false},{"description":null,"os_family":"Redhat","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Kickstart dynamic","id":132,"inherited":false},{"description":null,"os_family":"NXOS","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"NX-OS default - fake","id":133,"inherited":false},{"description":null,"os_family":"Debian","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Preseed default","id":134,"inherited":false},{"description":"Preseed + string: '{"select_all_types":[],"description":null,"created_at":"2024-07-25 + 12:00:20 UTC","updated_at":"2024-07-25 12:00:20 UTC","ancestry":null,"parent_id":null,"parent_name":null,"id":11,"name":"Test + Location","title":"Test Location","users":[],"smart_proxies":[],"subnets":[],"compute_resources":[],"media":[],"ptables":[{"description":null,"os_family":"Suse","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"AutoYaST entire + virtual disk","id":127,"inherited":false},{"description":null,"os_family":"Solaris","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"Jumpstart default","id":132,"inherited":false},{"description":null,"os_family":"Solaris","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"Jumpstart mirrored","id":133,"inherited":false},{"description":null,"os_family":"Junos","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"Junos default + fake","id":134,"inherited":false},{"description":null,"os_family":"Suse","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"AutoYaST LVM","id":128,"inherited":false},{"description":null,"os_family":"Coreos","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"CoreOS default + fake","id":129,"inherited":false},{"description":null,"os_family":"Rancheros","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"Empty","id":130,"inherited":false},{"description":null,"os_family":"Suse","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"AutoYaST entire + SCSI disk","id":126,"inherited":false},{"description":null,"os_family":"Freebsd","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"FreeBSD default + fake","id":131,"inherited":false},{"description":null,"os_family":"Redhat","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"Kickstart custom","id":135,"inherited":false},{"description":null,"os_family":"Redhat","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"Kickstart default","id":136,"inherited":false},{"description":null,"os_family":"Redhat","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"Kickstart default + thin","id":137,"inherited":false},{"description":null,"os_family":"Redhat","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"Kickstart dynamic","id":138,"inherited":false},{"description":null,"os_family":"NXOS","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"NX-OS default + fake","id":139,"inherited":false},{"description":null,"os_family":"Debian","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"Preseed default","id":140,"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":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Preseed default - autoinstall","id":135,"inherited":false},{"description":null,"os_family":"Debian","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Preseed default - LVM","id":136,"inherited":false},{"description":null,"os_family":"Windows","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Windows default - partition table","id":137,"inherited":false},{"description":null,"os_family":"Windows","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Windows default - GPT EFI partition table","id":138,"inherited":false},{"description":null,"os_family":"Xenserver","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"XenServer default","id":139,"inherited":false}],"provisioning_templates":[{"id":1,"name":"NX-OS + LVM. The snippet is automatically indented by 2 spaces. For reference:\nhttps://ubuntu.com/server/docs/install/autoinstall-reference","os_family":"Debian","created_at":"2024-04-15 + 09:11:37 UTC","updated_at":"2024-04-15 09:11:37 UTC","name":"Preseed default + autoinstall","id":141,"inherited":false},{"description":null,"os_family":"Debian","created_at":"2024-04-15 + 09:11:37 UTC","updated_at":"2024-04-15 09:11:37 UTC","name":"Preseed default + LVM","id":142,"inherited":false},{"description":null,"os_family":"Windows","created_at":"2024-04-15 + 09:11:37 UTC","updated_at":"2024-04-15 09:11:37 UTC","name":"Windows default + partition table","id":143,"inherited":false},{"description":null,"os_family":"Windows","created_at":"2024-04-15 + 09:11:37 UTC","updated_at":"2024-04-15 09:11:37 UTC","name":"Windows default + GPT EFI partition table","id":144,"inherited":false},{"description":null,"os_family":"Xenserver","created_at":"2024-04-15 + 09:11:37 UTC","updated_at":"2024-04-15 09:11:37 UTC","name":"XenServer default","id":145,"inherited":false},{"description":null,"os_family":"Redhat","created_at":"2024-04-22 + 11:15:26 UTC","updated_at":"2024-04-22 11:15:26 UTC","name":"Kickstart default + encrypted","id":152,"inherited":false},{"description":"Preseed Autoinstall + default storage snippet configures drives automatically\nwith LVM and disk + encryption.\nRequires Ubuntu >= 22.04.3.\nThe snippet is automatically indented + by 2 spaces. For reference:\nhttps://ubuntu.com/server/docs/install/autoinstall-reference","os_family":"Debian","created_at":"2024-04-22 + 11:15:26 UTC","updated_at":"2024-04-22 11:15:26 UTC","name":"Preseed default + autoinstall encrypted","id":153,"inherited":false}],"provisioning_templates":[{"id":1,"name":"NX-OS default POAP setup","template_kind_id":11,"template_kind_name":"POAP","inherited":false},{"id":2,"name":"AutoYaST default PXEGrub","template_kind_id":3,"template_kind_name":"PXEGrub","inherited":false},{"id":3,"name":"Jumpstart default PXEGrub","template_kind_id":3,"template_kind_name":"PXEGrub","inherited":false},{"id":4,"name":"Kickstart default PXEGrub","template_kind_id":3,"template_kind_name":"PXEGrub","inherited":false},{"id":5,"name":"PXEGrub default local boot","template_kind_id":3,"template_kind_name":"PXEGrub","inherited":false},{"id":6,"name":"PXEGrub - global default","template_kind_id":3,"template_kind_name":"PXEGrub","inherited":false},{"id":49,"name":"AutoYaST - default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":7,"name":"AutoYaST + global default","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":8,"name":"Kickstart default PXEGrub2","template_kind_id":4,"template_kind_name":"PXEGrub2","inherited":false},{"id":9,"name":"Preseed - default PXEGrub2","template_kind_id":4,"template_kind_name":"PXEGrub2","inherited":false},{"id":10,"name":"PXEGrub2 - default local boot","template_kind_id":4,"template_kind_name":"PXEGrub2","inherited":false},{"id":11,"name":"PXEGrub2 - global default","template_kind_id":4,"template_kind_name":"PXEGrub2","inherited":false},{"id":12,"name":"Alterator - default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":50,"name":"AutoYaST - SLES default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":13,"name":"AutoYaST - default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":14,"name":"CoreOS - PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":15,"name":"FreeBSD - (mfsBSD) PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":16,"name":"Kickstart - default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":17,"name":"Kickstart - oVirt-RHVH PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":18,"name":"Preseed - default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":19,"name":"Preseed - default PXELinux Autoinstall","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":20,"name":"PXELinux - chain iPXE","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":21,"name":"PXELinux - chain iPXE UNDI","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":22,"name":"PXELinux - default local boot","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":23,"name":"PXELinux - default memdisk","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":24,"name":"PXELinux - global default","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":25,"name":"RancherOS - PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":26,"name":"WAIK - default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":27,"name":"Windows - default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":28,"name":"XenServer - default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":29,"name":"Junos - default ZTP config","template_kind_id":10,"template_kind_name":"ZTP","inherited":false},{"id":30,"name":"CloudInit - default","template_kind_id":12,"template_kind_name":"cloud-init","inherited":false},{"id":31,"name":"Alterator - default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":73,"name":"chef_client","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":32,"name":"FreeBSD - (mfsBSD) finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":33,"name":"Jumpstart - default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":34,"name":"Junos - default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":35,"name":"Kickstart - default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":36,"name":"Preseed - default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":37,"name":"Windows - default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":38,"name":"XenServer - default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":39,"name":"Linux - host_init_config default","template_kind_id":1,"template_kind_name":"host_init_config","inherited":false},{"id":40,"name":"AutoYaST - default iPXE","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":41,"name":"iPXE - default local boot","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":42,"name":"iPXE - global default","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":51,"name":"CoreOS - provision","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":43,"name":"iPXE - intermediate script","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":44,"name":"Kickstart - default iPXE","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":45,"name":"Preseed - default iPXE","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":46,"name":"Windows - default iPXE","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":47,"name":"Alterator - default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":48,"name":"Atomic - Kickstart default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":52,"name":"FreeBSD - (mfsBSD) provision","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":53,"name":"Jumpstart - default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":54,"name":"Junos - default SLAX","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":55,"name":"Kickstart - default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":56,"name":"Kickstart - oVirt-RHVH","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":57,"name":"Preseed - default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":58,"name":"RancherOS - provision","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":59,"name":"Windows - default provision","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":60,"name":"XenServer - default answerfile","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":61,"name":"Global - Registration","template_kind_id":13,"template_kind_name":"registration","inherited":false},{"id":62,"name":"remote_execution_pull_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":63,"name":"Grubby - default","template_kind_id":8,"template_kind_name":"script","inherited":false},{"id":64,"name":"Windows - peSetup.cmd","template_kind_id":8,"template_kind_name":"script","inherited":false},{"id":65,"name":"alterator_pkglist","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":66,"name":"saltstack_minion","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":67,"name":"ansible_provisioning_callback","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":68,"name":"ansible_tower_callback_script","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":69,"name":"ansible_tower_callback_service","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":70,"name":"blacklist_kernel_modules","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":71,"name":"bmc_nic_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":72,"name":"built","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":74,"name":"coreos_cloudconfig","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":75,"name":"create_users","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":76,"name":"csr_attributes.yaml","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":77,"name":"efibootmgr_netboot","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":78,"name":"eject_cdrom","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":79,"name":"epel","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":80,"name":"fips_packages","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":81,"name":"fix_hosts","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":82,"name":"freeipa_register","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":83,"name":"http_proxy","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":84,"name":"insights","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":85,"name":"kickstart_ifcfg_bond_interface","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":86,"name":"kickstart_ifcfg_bonded_interface","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":87,"name":"rancheros_cloudconfig","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":111,"name":"schedule_reboot","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":88,"name":"kickstart_ifcfg_generic_interface","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":89,"name":"redhat_register","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":90,"name":"kickstart_ifcfg_get_identifier_names","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":91,"name":"kickstart_kernel_options","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":92,"name":"kickstart_networking_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":93,"name":"ntp","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":94,"name":"pkg_manager","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":95,"name":"preseed_kernel_options","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":96,"name":"remote_execution_ssh_keys","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":97,"name":"preseed_netplan_generic_interface","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":98,"name":"preseed_netplan_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":99,"name":"preseed_networking_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":100,"name":"puppet.conf","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":101,"name":"puppet_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":102,"name":"puppetlabs_repo","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":103,"name":"pxegrub2_chainload","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":104,"name":"pxegrub2_discovery","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":105,"name":"pxegrub2_mac","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":106,"name":"pxegrub_chainload","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":107,"name":"pxegrub_discovery","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":108,"name":"pxelinux_chainload","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":109,"name":"pxelinux_discovery","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":110,"name":"saltstack_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":112,"name":"Windows - network","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":113,"name":"yum_proxy","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":114,"name":"AutoYaST - default user data","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":115,"name":"Kickstart - default user data","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":116,"name":"Preseed - Autoinstall cloud-init user data","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":117,"name":"Preseed - default user data","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":118,"name":"UserData - default","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":119,"name":"UserData - open-vm-tools","template_kind_id":9,"template_kind_name":"user_data","inherited":false}],"domains":[],"realms":[],"hostgroups":[],"organizations":[],"hosts_count":0,"parameters":[],"deprecations":{"environments":"Environments + 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":11,"name":"PXEGrub2 + default local boot","template_kind_id":4,"template_kind_name":"PXEGrub2","inherited":false},{"id":12,"name":"PXEGrub2 + global default","template_kind_id":4,"template_kind_name":"PXEGrub2","inherited":false},{"id":13,"name":"Alterator + default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":14,"name":"AutoYaST + default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":15,"name":"CoreOS + PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":16,"name":"FreeBSD + (mfsBSD) PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":17,"name":"Kickstart + default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":18,"name":"Kickstart + oVirt-RHVH PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","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":79,"name":"eject_cdrom","template_kind_id":null,"template_kind_name":null,"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":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":25,"name":"PXELinux + global default","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":26,"name":"RancherOS + PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":27,"name":"WAIK + default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":28,"name":"Windows + default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":29,"name":"XenServer + default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":30,"name":"Junos + default ZTP config","template_kind_id":10,"template_kind_name":"ZTP","inherited":false},{"id":32,"name":"Alterator + default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":80,"name":"epel","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":34,"name":"Jumpstart + default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":35,"name":"Junos + default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":37,"name":"Preseed + default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":38,"name":"Windows + default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":39,"name":"XenServer + default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":40,"name":"Linux + host_init_config default","template_kind_id":1,"template_kind_name":"host_init_config","inherited":false},{"id":41,"name":"AutoYaST + default iPXE","template_kind_id":5,"template_kind_name":"iPXE","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":72,"name":"bmc_nic_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":44,"name":"iPXE + intermediate script","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":45,"name":"Kickstart + default iPXE","template_kind_id":5,"template_kind_name":"iPXE","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":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":81,"name":"fips_packages","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":50,"name":"Alterator + default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":51,"name":"AutoYaST + default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":52,"name":"AutoYaST + SLES default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":53,"name":"CoreOS + provision","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":54,"name":"FreeBSD + (mfsBSD) provision","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":55,"name":"Jumpstart + default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":56,"name":"Junos + default SLAX","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":70,"name":"ansible_tower_callback_service","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":59,"name":"Preseed + default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":60,"name":"RancherOS + provision","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":61,"name":"Windows + default provision","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":62,"name":"XenServer + default answerfile","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":63,"name":"Global + Registration","template_kind_id":13,"template_kind_name":"registration","inherited":false},{"id":64,"name":"remote_execution_pull_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":65,"name":"Grubby + default","template_kind_id":8,"template_kind_name":"script","inherited":false},{"id":66,"name":"Windows + peSetup.cmd","template_kind_id":8,"template_kind_name":"script","inherited":false},{"id":67,"name":"alterator_pkglist","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":68,"name":"ansible_provisioning_callback","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":69,"name":"ansible_tower_callback_script","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":71,"name":"blacklist_kernel_modules","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":73,"name":"built","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":74,"name":"chef_client","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":75,"name":"coreos_cloudconfig","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":76,"name":"create_users","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":77,"name":"csr_attributes.yaml","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":78,"name":"efibootmgr_netboot","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":82,"name":"fix_hosts","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":83,"name":"freeipa_register","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":84,"name":"http_proxy","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":85,"name":"insights","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":86,"name":"kickstart_ifcfg_bond_interface","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":87,"name":"kickstart_ifcfg_bonded_interface","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":88,"name":"kickstart_ifcfg_generic_interface","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":89,"name":"kickstart_ifcfg_get_identifier_names","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":91,"name":"kickstart_networking_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":92,"name":"kickstart_rhsm","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":93,"name":"ntp","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":95,"name":"preseed_kernel_options","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":96,"name":"preseed_kernel_options_autoinstall","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":97,"name":"preseed_netplan_generic_interface","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":98,"name":"preseed_netplan_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":99,"name":"preseed_networking_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":106,"name":"pxegrub_chainload","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":100,"name":"puppet.conf","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":101,"name":"puppet_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":102,"name":"puppetlabs_repo","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":103,"name":"pxegrub2_chainload","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":104,"name":"pxegrub2_discovery","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":105,"name":"pxegrub2_mac","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":107,"name":"pxegrub_discovery","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":108,"name":"pxelinux_chainload","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":109,"name":"pxelinux_discovery","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":110,"name":"rancheros_cloudconfig","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":124,"name":"UserData + open-vm-tools","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":125,"name":"Windows + default user data","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":112,"name":"remote_execution_ssh_keys","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":113,"name":"saltstack_minion","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":114,"name":"saltstack_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":115,"name":"schedule_reboot","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":117,"name":"Windows + network","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":118,"name":"yum_proxy","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":119,"name":"AutoYaST + default user data","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":120,"name":"Kickstart + default user data","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":122,"name":"Preseed + default user data","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":90,"name":"kickstart_kernel_options","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":36,"name":"Kickstart + default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":57,"name":"Kickstart + default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":58,"name":"Kickstart + oVirt-RHVH","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":149,"name":"disk_enc_clevis_tang","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":150,"name":"kickstart_network_interface","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":94,"name":"pkg_manager","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":151,"name":"preseed_autoinstall_clevis_tang_wrapper","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":111,"name":"redhat_register","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":116,"name":"subscription_manager_setup","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}],"domains":[],"realms":[],"hostgroups":[],"organizations":[],"hosts_count":0,"parameters":[],"deprecations":{"environments":"Environments got deprecated from this endpoint."}}' headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive + Content-Length: + - '19115' 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''; @@ -253,13 +265,11 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.4.0 + - 3.11.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: diff --git a/tests/test_playbooks/fixtures/location-17.yml b/tests/test_playbooks/fixtures/location-17.yml index 50a71bcfa..4d6f5711e 100644 --- a/tests/test_playbooks/fixtures/location-17.yml +++ b/tests/test_playbooks/fixtures/location-17.yml @@ -14,12 +14,14 @@ interactions: uri: https://foreman.example.org/api/status response: body: - string: '{"result":"ok","status":200,"version":"3.4.0","api_version":2}' + string: '{"result":"ok","status":200,"version":"3.11.0-develop","api_version":2}' headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive + Content-Length: + - '71' 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.4.0 + - 3.11.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: @@ -70,14 +70,16 @@ interactions: body: string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": 4294967296,\n \"search\": \"title=\\\"Test Location\\\"\",\n \"sort\": {\n - \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"ancestry\":null,\"parent_id\":null,\"parent_name\":null,\"created_at\":\"2022-11-08 - 09:29:18 UTC\",\"updated_at\":\"2022-11-08 09:29:18 UTC\",\"id\":8,\"name\":\"Test + \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"ancestry\":null,\"parent_id\":null,\"parent_name\":null,\"created_at\":\"2024-07-25 + 12:00:20 UTC\",\"updated_at\":\"2024-07-25 12:00:20 UTC\",\"id\":11,\"name\":\"Test Location\",\"title\":\"Test Location\",\"description\":null}]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive + Content-Length: + - '385' 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.4.0 + - 3.11.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: @@ -123,121 +123,133 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/api/locations/8 + uri: https://foreman.example.org/api/locations/11 response: body: - string: '{"select_all_types":[],"description":null,"created_at":"2022-11-08 - 09:29:18 UTC","updated_at":"2022-11-08 09:29:18 UTC","ancestry":null,"parent_id":null,"parent_name":null,"id":8,"name":"Test - Location","title":"Test Location","users":[],"smart_proxies":[],"subnets":[],"compute_resources":[],"media":[],"ptables":[{"description":null,"os_family":"Suse","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"AutoYaST entire - SCSI disk","id":120,"inherited":false},{"description":null,"os_family":"Suse","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"AutoYaST entire - virtual disk","id":121,"inherited":false},{"description":null,"os_family":"Suse","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"AutoYaST LVM","id":122,"inherited":false},{"description":null,"os_family":"Coreos","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"CoreOS default - fake","id":123,"inherited":false},{"description":null,"os_family":"Rancheros","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Empty","id":124,"inherited":false},{"description":null,"os_family":"Freebsd","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"FreeBSD default - fake","id":125,"inherited":false},{"description":null,"os_family":"Solaris","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Jumpstart default","id":126,"inherited":false},{"description":null,"os_family":"Solaris","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Jumpstart mirrored","id":127,"inherited":false},{"description":null,"os_family":"Junos","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Junos default - fake","id":128,"inherited":false},{"description":null,"os_family":"Redhat","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Kickstart custom","id":129,"inherited":false},{"description":null,"os_family":"Redhat","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Kickstart default","id":130,"inherited":false},{"description":null,"os_family":"Redhat","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Kickstart default - thin","id":131,"inherited":false},{"description":null,"os_family":"Redhat","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Kickstart dynamic","id":132,"inherited":false},{"description":null,"os_family":"NXOS","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"NX-OS default - fake","id":133,"inherited":false},{"description":null,"os_family":"Debian","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Preseed default","id":134,"inherited":false},{"description":"Preseed + string: '{"select_all_types":[],"description":null,"created_at":"2024-07-25 + 12:00:20 UTC","updated_at":"2024-07-25 12:00:20 UTC","ancestry":null,"parent_id":null,"parent_name":null,"id":11,"name":"Test + Location","title":"Test Location","users":[],"smart_proxies":[],"subnets":[],"compute_resources":[],"media":[],"ptables":[{"description":null,"os_family":"Suse","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"AutoYaST entire + SCSI disk","id":126,"inherited":false},{"description":null,"os_family":"Suse","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"AutoYaST entire + virtual disk","id":127,"inherited":false},{"description":null,"os_family":"Suse","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"AutoYaST LVM","id":128,"inherited":false},{"description":null,"os_family":"Coreos","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"CoreOS default + fake","id":129,"inherited":false},{"description":null,"os_family":"Rancheros","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"Empty","id":130,"inherited":false},{"description":null,"os_family":"Freebsd","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"FreeBSD default + fake","id":131,"inherited":false},{"description":null,"os_family":"Solaris","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"Jumpstart default","id":132,"inherited":false},{"description":null,"os_family":"Solaris","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"Jumpstart mirrored","id":133,"inherited":false},{"description":null,"os_family":"Junos","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"Junos default + fake","id":134,"inherited":false},{"description":null,"os_family":"Redhat","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"Kickstart custom","id":135,"inherited":false},{"description":null,"os_family":"Redhat","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"Kickstart default","id":136,"inherited":false},{"description":null,"os_family":"Redhat","created_at":"2024-04-22 + 11:15:26 UTC","updated_at":"2024-04-22 11:15:26 UTC","name":"Kickstart default + encrypted","id":152,"inherited":false},{"description":null,"os_family":"Redhat","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"Kickstart default + thin","id":137,"inherited":false},{"description":null,"os_family":"Redhat","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"Kickstart dynamic","id":138,"inherited":false},{"description":null,"os_family":"NXOS","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"NX-OS default + fake","id":139,"inherited":false},{"description":null,"os_family":"Debian","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"Preseed default","id":140,"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":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Preseed default - autoinstall","id":135,"inherited":false},{"description":null,"os_family":"Debian","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Preseed default - LVM","id":136,"inherited":false},{"description":null,"os_family":"Windows","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Windows default - GPT EFI partition table","id":138,"inherited":false},{"description":null,"os_family":"Windows","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Windows default - partition table","id":137,"inherited":false},{"description":null,"os_family":"Xenserver","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"XenServer default","id":139,"inherited":false}],"provisioning_templates":[{"id":47,"name":"Alterator - default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":31,"name":"Alterator - default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":12,"name":"Alterator - default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":65,"name":"alterator_pkglist","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":67,"name":"ansible_provisioning_callback","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":68,"name":"ansible_tower_callback_script","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":69,"name":"ansible_tower_callback_service","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":48,"name":"Atomic - Kickstart default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":49,"name":"AutoYaST - default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":40,"name":"AutoYaST + LVM. The snippet is automatically indented by 2 spaces. For reference:\nhttps://ubuntu.com/server/docs/install/autoinstall-reference","os_family":"Debian","created_at":"2024-04-15 + 09:11:37 UTC","updated_at":"2024-04-15 09:11:37 UTC","name":"Preseed default + autoinstall","id":141,"inherited":false},{"description":"Preseed Autoinstall + default storage snippet configures drives automatically\nwith LVM and disk + encryption.\nRequires Ubuntu >= 22.04.3.\nThe snippet is automatically indented + by 2 spaces. For reference:\nhttps://ubuntu.com/server/docs/install/autoinstall-reference","os_family":"Debian","created_at":"2024-04-22 + 11:15:26 UTC","updated_at":"2024-04-22 11:15:26 UTC","name":"Preseed default + autoinstall encrypted","id":153,"inherited":false},{"description":null,"os_family":"Debian","created_at":"2024-04-15 + 09:11:37 UTC","updated_at":"2024-04-15 09:11:37 UTC","name":"Preseed default + LVM","id":142,"inherited":false},{"description":null,"os_family":"Windows","created_at":"2024-04-15 + 09:11:37 UTC","updated_at":"2024-04-15 09:11:37 UTC","name":"Windows default + GPT EFI partition table","id":144,"inherited":false},{"description":null,"os_family":"Windows","created_at":"2024-04-15 + 09:11:37 UTC","updated_at":"2024-04-15 09:11:37 UTC","name":"Windows default + partition table","id":143,"inherited":false},{"description":null,"os_family":"Xenserver","created_at":"2024-04-15 + 09:11:37 UTC","updated_at":"2024-04-15 09:11:37 UTC","name":"XenServer default","id":145,"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":67,"name":"alterator_pkglist","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":68,"name":"ansible_provisioning_callback","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":69,"name":"ansible_tower_callback_script","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":70,"name":"ansible_tower_callback_service","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":51,"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":13,"name":"AutoYaST - default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":114,"name":"AutoYaST - default user data","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":50,"name":"AutoYaST - SLES default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":70,"name":"blacklist_kernel_modules","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":71,"name":"bmc_nic_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":72,"name":"built","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":73,"name":"chef_client","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":30,"name":"CloudInit - default","template_kind_id":12,"template_kind_name":"cloud-init","inherited":false},{"id":74,"name":"coreos_cloudconfig","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":51,"name":"CoreOS - provision","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":14,"name":"CoreOS - PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":75,"name":"create_users","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":76,"name":"csr_attributes.yaml","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":77,"name":"efibootmgr_netboot","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":78,"name":"eject_cdrom","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":79,"name":"epel","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":80,"name":"fips_packages","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":81,"name":"fix_hosts","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":32,"name":"FreeBSD - (mfsBSD) finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":52,"name":"FreeBSD - (mfsBSD) provision","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":15,"name":"FreeBSD - (mfsBSD) PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":82,"name":"freeipa_register","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":61,"name":"Global - Registration","template_kind_id":13,"template_kind_name":"registration","inherited":false},{"id":63,"name":"Grubby - default","template_kind_id":8,"template_kind_name":"script","inherited":false},{"id":83,"name":"http_proxy","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":84,"name":"insights","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":41,"name":"iPXE - default local boot","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":42,"name":"iPXE - global default","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":43,"name":"iPXE - intermediate script","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":53,"name":"Jumpstart - default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":33,"name":"Jumpstart + 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":52,"name":"AutoYaST + SLES default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":71,"name":"blacklist_kernel_modules","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":72,"name":"bmc_nic_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":73,"name":"built","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":74,"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":75,"name":"coreos_cloudconfig","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":53,"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":76,"name":"create_users","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":77,"name":"csr_attributes.yaml","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":149,"name":"disk_enc_clevis_tang","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":78,"name":"efibootmgr_netboot","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":79,"name":"eject_cdrom","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":80,"name":"epel","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":81,"name":"fips_packages","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":82,"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":54,"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":83,"name":"freeipa_register","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":63,"name":"Global + Registration","template_kind_id":13,"template_kind_name":"registration","inherited":false},{"id":65,"name":"Grubby + default","template_kind_id":8,"template_kind_name":"script","inherited":false},{"id":84,"name":"http_proxy","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":85,"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":55,"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":34,"name":"Junos - default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":54,"name":"Junos - default SLAX","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":29,"name":"Junos - default ZTP config","template_kind_id":10,"template_kind_name":"ZTP","inherited":false},{"id":55,"name":"Kickstart - default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":35,"name":"Kickstart - default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":44,"name":"Kickstart + 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":56,"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":57,"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":16,"name":"Kickstart - default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":115,"name":"Kickstart - default user data","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":86,"name":"kickstart_ifcfg_bonded_interface","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":85,"name":"kickstart_ifcfg_bond_interface","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":88,"name":"kickstart_ifcfg_generic_interface","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":90,"name":"kickstart_ifcfg_get_identifier_names","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":91,"name":"kickstart_kernel_options","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":92,"name":"kickstart_networking_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":56,"name":"Kickstart - oVirt-RHVH","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":17,"name":"Kickstart - oVirt-RHVH PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":39,"name":"Linux + 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":87,"name":"kickstart_ifcfg_bonded_interface","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":86,"name":"kickstart_ifcfg_bond_interface","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":88,"name":"kickstart_ifcfg_generic_interface","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":89,"name":"kickstart_ifcfg_get_identifier_names","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":90,"name":"kickstart_kernel_options","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":91,"name":"kickstart_networking_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":150,"name":"kickstart_network_interface","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":58,"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":92,"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":93,"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":94,"name":"pkg_manager","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":116,"name":"Preseed - Autoinstall cloud-init user data","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":57,"name":"Preseed - default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":36,"name":"Preseed - default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":45,"name":"Preseed - default iPXE","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":18,"name":"Preseed - default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":19,"name":"Preseed - default PXELinux Autoinstall","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":117,"name":"Preseed - default user data","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":95,"name":"preseed_kernel_options","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":97,"name":"preseed_netplan_generic_interface","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":98,"name":"preseed_netplan_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":99,"name":"preseed_networking_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":100,"name":"puppet.conf","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":102,"name":"puppetlabs_repo","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":101,"name":"puppet_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":103,"name":"pxegrub2_chainload","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":10,"name":"PXEGrub2 - default local boot","template_kind_id":4,"template_kind_name":"PXEGrub2","inherited":false},{"id":104,"name":"pxegrub2_discovery","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":11,"name":"PXEGrub2 + default POAP setup","template_kind_id":11,"template_kind_name":"POAP","inherited":false},{"id":94,"name":"pkg_manager","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":151,"name":"preseed_autoinstall_clevis_tang_wrapper","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":59,"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":95,"name":"preseed_kernel_options","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":96,"name":"preseed_kernel_options_autoinstall","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":97,"name":"preseed_netplan_generic_interface","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":98,"name":"preseed_netplan_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":99,"name":"preseed_networking_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":100,"name":"puppet.conf","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":102,"name":"puppetlabs_repo","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":101,"name":"puppet_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":103,"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":104,"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":105,"name":"pxegrub2_mac","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":106,"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":107,"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":20,"name":"PXELinux - chain iPXE","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":21,"name":"PXELinux - chain iPXE UNDI","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":108,"name":"pxelinux_chainload","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":22,"name":"PXELinux - default local boot","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":23,"name":"PXELinux - default memdisk","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":109,"name":"pxelinux_discovery","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":24,"name":"PXELinux - global default","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":87,"name":"rancheros_cloudconfig","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":58,"name":"RancherOS - provision","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":25,"name":"RancherOS - PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":89,"name":"redhat_register","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":62,"name":"remote_execution_pull_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":96,"name":"remote_execution_ssh_keys","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":66,"name":"saltstack_minion","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":110,"name":"saltstack_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":111,"name":"schedule_reboot","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":118,"name":"UserData - default","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":119,"name":"UserData - open-vm-tools","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":26,"name":"WAIK - default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":37,"name":"Windows - default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":46,"name":"Windows - default iPXE","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":59,"name":"Windows - default provision","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":27,"name":"Windows - default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":112,"name":"Windows - network","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":64,"name":"Windows - peSetup.cmd","template_kind_id":8,"template_kind_name":"script","inherited":false},{"id":60,"name":"XenServer - default answerfile","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":38,"name":"XenServer - default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":28,"name":"XenServer - default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":113,"name":"yum_proxy","template_kind_id":null,"template_kind_name":null,"inherited":false}],"domains":[],"realms":[],"hostgroups":[],"organizations":[],"hosts_count":0,"parameters":[],"deprecations":{"environments":"Environments + 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":108,"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":109,"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":110,"name":"rancheros_cloudconfig","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":60,"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":111,"name":"redhat_register","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":64,"name":"remote_execution_pull_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":112,"name":"remote_execution_ssh_keys","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":113,"name":"saltstack_minion","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":114,"name":"saltstack_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":115,"name":"schedule_reboot","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":116,"name":"subscription_manager_setup","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":61,"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":125,"name":"Windows + default user data","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":117,"name":"Windows + network","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":66,"name":"Windows + peSetup.cmd","template_kind_id":8,"template_kind_name":"script","inherited":false},{"id":62,"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":118,"name":"yum_proxy","template_kind_id":null,"template_kind_name":null,"inherited":false}],"domains":[],"realms":[],"hostgroups":[],"organizations":[],"hosts_count":0,"parameters":[],"deprecations":{"environments":"Environments got deprecated from this endpoint."}}' headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive + Content-Length: + - '19115' 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''; @@ -251,13 +263,11 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.4.0 + - 3.11.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: diff --git a/tests/test_playbooks/fixtures/location-18.yml b/tests/test_playbooks/fixtures/location-18.yml index ef57f513d..eef30b2eb 100644 --- a/tests/test_playbooks/fixtures/location-18.yml +++ b/tests/test_playbooks/fixtures/location-18.yml @@ -14,12 +14,14 @@ interactions: uri: https://foreman.example.org/api/status response: body: - string: '{"result":"ok","status":200,"version":"3.4.0","api_version":2}' + string: '{"result":"ok","status":200,"version":"3.11.0-develop","api_version":2}' headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive + Content-Length: + - '71' 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.4.0 + - 3.11.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: @@ -70,14 +70,16 @@ interactions: body: string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": 4294967296,\n \"search\": \"title=\\\"Test Location\\\"\",\n \"sort\": {\n - \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"ancestry\":null,\"parent_id\":null,\"parent_name\":null,\"created_at\":\"2022-11-08 - 09:29:18 UTC\",\"updated_at\":\"2022-11-08 09:29:18 UTC\",\"id\":8,\"name\":\"Test + \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"ancestry\":null,\"parent_id\":null,\"parent_name\":null,\"created_at\":\"2024-07-25 + 12:00:20 UTC\",\"updated_at\":\"2024-07-25 12:00:20 UTC\",\"id\":11,\"name\":\"Test Location\",\"title\":\"Test Location\",\"description\":null}]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive + Content-Length: + - '385' 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.4.0 + - 3.11.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: @@ -123,121 +123,133 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/api/locations/8 + uri: https://foreman.example.org/api/locations/11 response: body: - string: '{"select_all_types":[],"description":null,"created_at":"2022-11-08 - 09:29:18 UTC","updated_at":"2022-11-08 09:29:18 UTC","ancestry":null,"parent_id":null,"parent_name":null,"id":8,"name":"Test - Location","title":"Test Location","users":[],"smart_proxies":[],"subnets":[],"compute_resources":[],"media":[],"ptables":[{"description":null,"os_family":"Suse","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"AutoYaST entire - SCSI disk","id":120,"inherited":false},{"description":null,"os_family":"Suse","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"AutoYaST entire - virtual disk","id":121,"inherited":false},{"description":null,"os_family":"Suse","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"AutoYaST LVM","id":122,"inherited":false},{"description":null,"os_family":"Coreos","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"CoreOS default - fake","id":123,"inherited":false},{"description":null,"os_family":"Rancheros","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Empty","id":124,"inherited":false},{"description":null,"os_family":"Freebsd","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"FreeBSD default - fake","id":125,"inherited":false},{"description":null,"os_family":"Solaris","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Jumpstart default","id":126,"inherited":false},{"description":null,"os_family":"Solaris","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Jumpstart mirrored","id":127,"inherited":false},{"description":null,"os_family":"Junos","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Junos default - fake","id":128,"inherited":false},{"description":null,"os_family":"Redhat","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Kickstart custom","id":129,"inherited":false},{"description":null,"os_family":"Redhat","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Kickstart default","id":130,"inherited":false},{"description":null,"os_family":"Redhat","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Kickstart default - thin","id":131,"inherited":false},{"description":null,"os_family":"Redhat","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Kickstart dynamic","id":132,"inherited":false},{"description":null,"os_family":"NXOS","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"NX-OS default - fake","id":133,"inherited":false},{"description":null,"os_family":"Debian","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Preseed default","id":134,"inherited":false},{"description":"Preseed + string: '{"select_all_types":[],"description":null,"created_at":"2024-07-25 + 12:00:20 UTC","updated_at":"2024-07-25 12:00:20 UTC","ancestry":null,"parent_id":null,"parent_name":null,"id":11,"name":"Test + Location","title":"Test Location","users":[],"smart_proxies":[],"subnets":[],"compute_resources":[],"media":[],"ptables":[{"description":null,"os_family":"Suse","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"AutoYaST entire + SCSI disk","id":126,"inherited":false},{"description":null,"os_family":"Suse","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"AutoYaST entire + virtual disk","id":127,"inherited":false},{"description":null,"os_family":"Suse","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"AutoYaST LVM","id":128,"inherited":false},{"description":null,"os_family":"Coreos","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"CoreOS default + fake","id":129,"inherited":false},{"description":null,"os_family":"Rancheros","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"Empty","id":130,"inherited":false},{"description":null,"os_family":"Freebsd","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"FreeBSD default + fake","id":131,"inherited":false},{"description":null,"os_family":"Solaris","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"Jumpstart default","id":132,"inherited":false},{"description":null,"os_family":"Solaris","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"Jumpstart mirrored","id":133,"inherited":false},{"description":null,"os_family":"Junos","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"Junos default + fake","id":134,"inherited":false},{"description":null,"os_family":"Redhat","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"Kickstart custom","id":135,"inherited":false},{"description":null,"os_family":"Redhat","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"Kickstart default","id":136,"inherited":false},{"description":null,"os_family":"Redhat","created_at":"2024-04-22 + 11:15:26 UTC","updated_at":"2024-04-22 11:15:26 UTC","name":"Kickstart default + encrypted","id":152,"inherited":false},{"description":null,"os_family":"Redhat","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"Kickstart default + thin","id":137,"inherited":false},{"description":null,"os_family":"Redhat","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"Kickstart dynamic","id":138,"inherited":false},{"description":null,"os_family":"NXOS","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"NX-OS default + fake","id":139,"inherited":false},{"description":null,"os_family":"Debian","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"Preseed default","id":140,"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":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Preseed default - autoinstall","id":135,"inherited":false},{"description":null,"os_family":"Debian","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Preseed default - LVM","id":136,"inherited":false},{"description":null,"os_family":"Windows","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Windows default - GPT EFI partition table","id":138,"inherited":false},{"description":null,"os_family":"Windows","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Windows default - partition table","id":137,"inherited":false},{"description":null,"os_family":"Xenserver","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"XenServer default","id":139,"inherited":false}],"provisioning_templates":[{"id":47,"name":"Alterator - default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":31,"name":"Alterator - default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":12,"name":"Alterator - default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":65,"name":"alterator_pkglist","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":67,"name":"ansible_provisioning_callback","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":68,"name":"ansible_tower_callback_script","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":69,"name":"ansible_tower_callback_service","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":48,"name":"Atomic - Kickstart default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":49,"name":"AutoYaST - default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":40,"name":"AutoYaST + LVM. The snippet is automatically indented by 2 spaces. For reference:\nhttps://ubuntu.com/server/docs/install/autoinstall-reference","os_family":"Debian","created_at":"2024-04-15 + 09:11:37 UTC","updated_at":"2024-04-15 09:11:37 UTC","name":"Preseed default + autoinstall","id":141,"inherited":false},{"description":"Preseed Autoinstall + default storage snippet configures drives automatically\nwith LVM and disk + encryption.\nRequires Ubuntu >= 22.04.3.\nThe snippet is automatically indented + by 2 spaces. For reference:\nhttps://ubuntu.com/server/docs/install/autoinstall-reference","os_family":"Debian","created_at":"2024-04-22 + 11:15:26 UTC","updated_at":"2024-04-22 11:15:26 UTC","name":"Preseed default + autoinstall encrypted","id":153,"inherited":false},{"description":null,"os_family":"Debian","created_at":"2024-04-15 + 09:11:37 UTC","updated_at":"2024-04-15 09:11:37 UTC","name":"Preseed default + LVM","id":142,"inherited":false},{"description":null,"os_family":"Windows","created_at":"2024-04-15 + 09:11:37 UTC","updated_at":"2024-04-15 09:11:37 UTC","name":"Windows default + GPT EFI partition table","id":144,"inherited":false},{"description":null,"os_family":"Windows","created_at":"2024-04-15 + 09:11:37 UTC","updated_at":"2024-04-15 09:11:37 UTC","name":"Windows default + partition table","id":143,"inherited":false},{"description":null,"os_family":"Xenserver","created_at":"2024-04-15 + 09:11:37 UTC","updated_at":"2024-04-15 09:11:37 UTC","name":"XenServer default","id":145,"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":67,"name":"alterator_pkglist","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":68,"name":"ansible_provisioning_callback","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":69,"name":"ansible_tower_callback_script","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":70,"name":"ansible_tower_callback_service","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":51,"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":13,"name":"AutoYaST - default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":114,"name":"AutoYaST - default user data","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":50,"name":"AutoYaST - SLES default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":70,"name":"blacklist_kernel_modules","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":71,"name":"bmc_nic_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":72,"name":"built","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":73,"name":"chef_client","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":30,"name":"CloudInit - default","template_kind_id":12,"template_kind_name":"cloud-init","inherited":false},{"id":74,"name":"coreos_cloudconfig","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":51,"name":"CoreOS - provision","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":14,"name":"CoreOS - PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":75,"name":"create_users","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":76,"name":"csr_attributes.yaml","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":77,"name":"efibootmgr_netboot","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":78,"name":"eject_cdrom","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":79,"name":"epel","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":80,"name":"fips_packages","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":81,"name":"fix_hosts","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":32,"name":"FreeBSD - (mfsBSD) finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":52,"name":"FreeBSD - (mfsBSD) provision","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":15,"name":"FreeBSD - (mfsBSD) PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":82,"name":"freeipa_register","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":61,"name":"Global - Registration","template_kind_id":13,"template_kind_name":"registration","inherited":false},{"id":63,"name":"Grubby - default","template_kind_id":8,"template_kind_name":"script","inherited":false},{"id":83,"name":"http_proxy","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":84,"name":"insights","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":41,"name":"iPXE - default local boot","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":42,"name":"iPXE - global default","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":43,"name":"iPXE - intermediate script","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":53,"name":"Jumpstart - default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":33,"name":"Jumpstart + 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":52,"name":"AutoYaST + SLES default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":71,"name":"blacklist_kernel_modules","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":72,"name":"bmc_nic_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":73,"name":"built","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":74,"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":75,"name":"coreos_cloudconfig","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":53,"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":76,"name":"create_users","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":77,"name":"csr_attributes.yaml","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":149,"name":"disk_enc_clevis_tang","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":78,"name":"efibootmgr_netboot","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":79,"name":"eject_cdrom","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":80,"name":"epel","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":81,"name":"fips_packages","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":82,"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":54,"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":83,"name":"freeipa_register","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":63,"name":"Global + Registration","template_kind_id":13,"template_kind_name":"registration","inherited":false},{"id":65,"name":"Grubby + default","template_kind_id":8,"template_kind_name":"script","inherited":false},{"id":84,"name":"http_proxy","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":85,"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":55,"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":34,"name":"Junos - default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":54,"name":"Junos - default SLAX","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":29,"name":"Junos - default ZTP config","template_kind_id":10,"template_kind_name":"ZTP","inherited":false},{"id":55,"name":"Kickstart - default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":35,"name":"Kickstart - default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":44,"name":"Kickstart + 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":56,"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":57,"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":16,"name":"Kickstart - default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":115,"name":"Kickstart - default user data","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":86,"name":"kickstart_ifcfg_bonded_interface","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":85,"name":"kickstart_ifcfg_bond_interface","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":88,"name":"kickstart_ifcfg_generic_interface","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":90,"name":"kickstart_ifcfg_get_identifier_names","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":91,"name":"kickstart_kernel_options","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":92,"name":"kickstart_networking_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":56,"name":"Kickstart - oVirt-RHVH","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":17,"name":"Kickstart - oVirt-RHVH PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":39,"name":"Linux + 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":87,"name":"kickstart_ifcfg_bonded_interface","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":86,"name":"kickstart_ifcfg_bond_interface","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":88,"name":"kickstart_ifcfg_generic_interface","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":89,"name":"kickstart_ifcfg_get_identifier_names","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":90,"name":"kickstart_kernel_options","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":91,"name":"kickstart_networking_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":150,"name":"kickstart_network_interface","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":58,"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":92,"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":93,"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":94,"name":"pkg_manager","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":116,"name":"Preseed - Autoinstall cloud-init user data","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":57,"name":"Preseed - default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":36,"name":"Preseed - default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":45,"name":"Preseed - default iPXE","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":18,"name":"Preseed - default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":19,"name":"Preseed - default PXELinux Autoinstall","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":117,"name":"Preseed - default user data","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":95,"name":"preseed_kernel_options","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":97,"name":"preseed_netplan_generic_interface","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":98,"name":"preseed_netplan_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":99,"name":"preseed_networking_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":100,"name":"puppet.conf","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":102,"name":"puppetlabs_repo","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":101,"name":"puppet_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":103,"name":"pxegrub2_chainload","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":10,"name":"PXEGrub2 - default local boot","template_kind_id":4,"template_kind_name":"PXEGrub2","inherited":false},{"id":104,"name":"pxegrub2_discovery","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":11,"name":"PXEGrub2 + default POAP setup","template_kind_id":11,"template_kind_name":"POAP","inherited":false},{"id":94,"name":"pkg_manager","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":151,"name":"preseed_autoinstall_clevis_tang_wrapper","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":59,"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":95,"name":"preseed_kernel_options","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":96,"name":"preseed_kernel_options_autoinstall","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":97,"name":"preseed_netplan_generic_interface","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":98,"name":"preseed_netplan_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":99,"name":"preseed_networking_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":100,"name":"puppet.conf","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":102,"name":"puppetlabs_repo","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":101,"name":"puppet_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":103,"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":104,"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":105,"name":"pxegrub2_mac","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":106,"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":107,"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":20,"name":"PXELinux - chain iPXE","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":21,"name":"PXELinux - chain iPXE UNDI","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":108,"name":"pxelinux_chainload","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":22,"name":"PXELinux - default local boot","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":23,"name":"PXELinux - default memdisk","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":109,"name":"pxelinux_discovery","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":24,"name":"PXELinux - global default","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":87,"name":"rancheros_cloudconfig","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":58,"name":"RancherOS - provision","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":25,"name":"RancherOS - PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":89,"name":"redhat_register","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":62,"name":"remote_execution_pull_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":96,"name":"remote_execution_ssh_keys","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":66,"name":"saltstack_minion","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":110,"name":"saltstack_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":111,"name":"schedule_reboot","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":118,"name":"UserData - default","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":119,"name":"UserData - open-vm-tools","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":26,"name":"WAIK - default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":37,"name":"Windows - default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":46,"name":"Windows - default iPXE","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":59,"name":"Windows - default provision","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":27,"name":"Windows - default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":112,"name":"Windows - network","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":64,"name":"Windows - peSetup.cmd","template_kind_id":8,"template_kind_name":"script","inherited":false},{"id":60,"name":"XenServer - default answerfile","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":38,"name":"XenServer - default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":28,"name":"XenServer - default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":113,"name":"yum_proxy","template_kind_id":null,"template_kind_name":null,"inherited":false}],"domains":[],"realms":[],"hostgroups":[],"organizations":[],"hosts_count":0,"parameters":[],"deprecations":{"environments":"Environments + 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":108,"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":109,"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":110,"name":"rancheros_cloudconfig","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":60,"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":111,"name":"redhat_register","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":64,"name":"remote_execution_pull_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":112,"name":"remote_execution_ssh_keys","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":113,"name":"saltstack_minion","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":114,"name":"saltstack_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":115,"name":"schedule_reboot","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":116,"name":"subscription_manager_setup","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":61,"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":125,"name":"Windows + default user data","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":117,"name":"Windows + network","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":66,"name":"Windows + peSetup.cmd","template_kind_id":8,"template_kind_name":"script","inherited":false},{"id":62,"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":118,"name":"yum_proxy","template_kind_id":null,"template_kind_name":null,"inherited":false}],"domains":[],"realms":[],"hostgroups":[],"organizations":[],"hosts_count":0,"parameters":[],"deprecations":{"environments":"Environments got deprecated from this endpoint."}}' headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive + Content-Length: + - '19115' 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''; @@ -251,13 +263,11 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.4.0 + - 3.11.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: @@ -283,7 +293,7 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/api/locations/8/parameters?per_page=4294967296 + uri: https://foreman.example.org/api/locations/11/parameters?per_page=4294967296 response: body: string: "{\n \"total\": 0,\n \"subtotal\": 0,\n \"page\": 1,\n \"per_page\": @@ -294,6 +304,8 @@ interactions: - max-age=0, private, must-revalidate Connection: - Keep-Alive + Content-Length: + - '159' 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''; @@ -303,17 +315,15 @@ interactions: Foreman_api_version: - '2' Foreman_current_location: - - 8; Test Location + - 11; Test Location Foreman_current_organization: - ; ANY Foreman_version: - - 3.4.0 + - 3.11.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: @@ -344,17 +354,19 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: POST - uri: https://foreman.example.org/api/locations/8/parameters + uri: https://foreman.example.org/api/locations/11/parameters response: body: - string: '{"priority":20,"created_at":"2022-11-08 09:29:19 UTC","updated_at":"2022-11-08 - 09:29:19 UTC","id":4,"name":"my_param","parameter_type":"string","value":"my + string: '{"priority":20,"created_at":"2024-07-25 12:00:24 UTC","updated_at":"2024-07-25 + 12:00:24 UTC","id":4,"name":"my_param","parameter_type":"string","associated_type":"location","hidden_value?":false,"value":"my value"}' headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive + Content-Length: + - '214' 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''; @@ -364,17 +376,15 @@ interactions: Foreman_api_version: - '2' Foreman_current_location: - - 8; Test Location + - 11; Test Location Foreman_current_organization: - ; ANY Foreman_version: - - 3.4.0 + - 3.11.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: @@ -405,17 +415,19 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: POST - uri: https://foreman.example.org/api/locations/8/parameters + uri: https://foreman.example.org/api/locations/11/parameters response: body: - string: '{"priority":20,"created_at":"2022-11-08 09:29:19 UTC","updated_at":"2022-11-08 - 09:29:19 UTC","id":5,"name":"my_param2","parameter_type":"string","value":"my + string: '{"priority":20,"created_at":"2024-07-25 12:00:24 UTC","updated_at":"2024-07-25 + 12:00:24 UTC","id":5,"name":"my_param2","parameter_type":"string","associated_type":"location","hidden_value?":false,"value":"my other value"}' headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive + Content-Length: + - '221' 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''; @@ -425,17 +437,15 @@ interactions: Foreman_api_version: - '2' Foreman_current_location: - - 8; Test Location + - 11; Test Location Foreman_current_organization: - ; ANY Foreman_version: - - 3.4.0 + - 3.11.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: @@ -466,16 +476,18 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: POST - uri: https://foreman.example.org/api/locations/8/parameters + uri: https://foreman.example.org/api/locations/11/parameters response: body: - string: '{"priority":20,"created_at":"2022-11-08 09:29:19 UTC","updated_at":"2022-11-08 - 09:29:19 UTC","id":6,"name":"my_param3","parameter_type":"array","value":["array","value"]}' + string: '{"priority":20,"created_at":"2024-07-25 12:00:24 UTC","updated_at":"2024-07-25 + 12:00:24 UTC","id":6,"name":"my_param3","parameter_type":"array","associated_type":"location","hidden_value?":false,"value":["array","value"]}' headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive + Content-Length: + - '221' 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''; @@ -485,17 +497,15 @@ interactions: Foreman_api_version: - '2' Foreman_current_location: - - 8; Test Location + - 11; Test Location Foreman_current_organization: - ; ANY Foreman_version: - - 3.4.0 + - 3.11.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: diff --git a/tests/test_playbooks/fixtures/location-19.yml b/tests/test_playbooks/fixtures/location-19.yml index 5564a13d6..fbcd2c3a9 100644 --- a/tests/test_playbooks/fixtures/location-19.yml +++ b/tests/test_playbooks/fixtures/location-19.yml @@ -14,12 +14,14 @@ interactions: uri: https://foreman.example.org/api/status response: body: - string: '{"result":"ok","status":200,"version":"3.4.0","api_version":2}' + string: '{"result":"ok","status":200,"version":"3.11.0-develop","api_version":2}' headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive + Content-Length: + - '71' 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.4.0 + - 3.11.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: @@ -70,14 +70,16 @@ interactions: body: string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": 4294967296,\n \"search\": \"title=\\\"Test Location\\\"\",\n \"sort\": {\n - \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"ancestry\":null,\"parent_id\":null,\"parent_name\":null,\"created_at\":\"2022-11-08 - 09:29:18 UTC\",\"updated_at\":\"2022-11-08 09:29:18 UTC\",\"id\":8,\"name\":\"Test + \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"ancestry\":null,\"parent_id\":null,\"parent_name\":null,\"created_at\":\"2024-07-25 + 12:00:20 UTC\",\"updated_at\":\"2024-07-25 12:00:20 UTC\",\"id\":11,\"name\":\"Test Location\",\"title\":\"Test Location\",\"description\":null}]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive + Content-Length: + - '385' 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.4.0 + - 3.11.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: @@ -123,126 +123,138 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/api/locations/8 + uri: https://foreman.example.org/api/locations/11 response: body: - string: '{"select_all_types":[],"description":null,"created_at":"2022-11-08 - 09:29:18 UTC","updated_at":"2022-11-08 09:29:18 UTC","ancestry":null,"parent_id":null,"parent_name":null,"id":8,"name":"Test - Location","title":"Test Location","users":[],"smart_proxies":[],"subnets":[],"compute_resources":[],"media":[],"ptables":[{"description":null,"os_family":"Suse","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"AutoYaST entire - SCSI disk","id":120,"inherited":false},{"description":null,"os_family":"Suse","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"AutoYaST entire - virtual disk","id":121,"inherited":false},{"description":null,"os_family":"Suse","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"AutoYaST LVM","id":122,"inherited":false},{"description":null,"os_family":"Coreos","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"CoreOS default - fake","id":123,"inherited":false},{"description":null,"os_family":"Rancheros","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Empty","id":124,"inherited":false},{"description":null,"os_family":"Freebsd","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"FreeBSD default - fake","id":125,"inherited":false},{"description":null,"os_family":"Solaris","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Jumpstart default","id":126,"inherited":false},{"description":null,"os_family":"Solaris","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Jumpstart mirrored","id":127,"inherited":false},{"description":null,"os_family":"Junos","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Junos default - fake","id":128,"inherited":false},{"description":null,"os_family":"Redhat","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Kickstart custom","id":129,"inherited":false},{"description":null,"os_family":"Redhat","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Kickstart default","id":130,"inherited":false},{"description":null,"os_family":"Redhat","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Kickstart default - thin","id":131,"inherited":false},{"description":null,"os_family":"Redhat","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Kickstart dynamic","id":132,"inherited":false},{"description":null,"os_family":"NXOS","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"NX-OS default - fake","id":133,"inherited":false},{"description":null,"os_family":"Debian","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Preseed default","id":134,"inherited":false},{"description":"Preseed + string: '{"select_all_types":[],"description":null,"created_at":"2024-07-25 + 12:00:20 UTC","updated_at":"2024-07-25 12:00:20 UTC","ancestry":null,"parent_id":null,"parent_name":null,"id":11,"name":"Test + Location","title":"Test Location","users":[],"smart_proxies":[],"subnets":[],"compute_resources":[],"media":[],"ptables":[{"description":null,"os_family":"Suse","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"AutoYaST entire + SCSI disk","id":126,"inherited":false},{"description":null,"os_family":"Suse","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"AutoYaST entire + virtual disk","id":127,"inherited":false},{"description":null,"os_family":"Suse","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"AutoYaST LVM","id":128,"inherited":false},{"description":null,"os_family":"Coreos","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"CoreOS default + fake","id":129,"inherited":false},{"description":null,"os_family":"Rancheros","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"Empty","id":130,"inherited":false},{"description":null,"os_family":"Freebsd","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"FreeBSD default + fake","id":131,"inherited":false},{"description":null,"os_family":"Solaris","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"Jumpstart default","id":132,"inherited":false},{"description":null,"os_family":"Solaris","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"Jumpstart mirrored","id":133,"inherited":false},{"description":null,"os_family":"Junos","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"Junos default + fake","id":134,"inherited":false},{"description":null,"os_family":"Redhat","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"Kickstart custom","id":135,"inherited":false},{"description":null,"os_family":"Redhat","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"Kickstart default","id":136,"inherited":false},{"description":null,"os_family":"Redhat","created_at":"2024-04-22 + 11:15:26 UTC","updated_at":"2024-04-22 11:15:26 UTC","name":"Kickstart default + encrypted","id":152,"inherited":false},{"description":null,"os_family":"Redhat","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"Kickstart default + thin","id":137,"inherited":false},{"description":null,"os_family":"Redhat","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"Kickstart dynamic","id":138,"inherited":false},{"description":null,"os_family":"NXOS","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"NX-OS default + fake","id":139,"inherited":false},{"description":null,"os_family":"Debian","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"Preseed default","id":140,"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":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Preseed default - autoinstall","id":135,"inherited":false},{"description":null,"os_family":"Debian","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Preseed default - LVM","id":136,"inherited":false},{"description":null,"os_family":"Windows","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Windows default - GPT EFI partition table","id":138,"inherited":false},{"description":null,"os_family":"Windows","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Windows default - partition table","id":137,"inherited":false},{"description":null,"os_family":"Xenserver","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"XenServer default","id":139,"inherited":false}],"provisioning_templates":[{"id":47,"name":"Alterator - default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":31,"name":"Alterator - default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":12,"name":"Alterator - default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":65,"name":"alterator_pkglist","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":67,"name":"ansible_provisioning_callback","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":68,"name":"ansible_tower_callback_script","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":69,"name":"ansible_tower_callback_service","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":48,"name":"Atomic - Kickstart default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":49,"name":"AutoYaST - default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":40,"name":"AutoYaST + LVM. The snippet is automatically indented by 2 spaces. For reference:\nhttps://ubuntu.com/server/docs/install/autoinstall-reference","os_family":"Debian","created_at":"2024-04-15 + 09:11:37 UTC","updated_at":"2024-04-15 09:11:37 UTC","name":"Preseed default + autoinstall","id":141,"inherited":false},{"description":"Preseed Autoinstall + default storage snippet configures drives automatically\nwith LVM and disk + encryption.\nRequires Ubuntu >= 22.04.3.\nThe snippet is automatically indented + by 2 spaces. For reference:\nhttps://ubuntu.com/server/docs/install/autoinstall-reference","os_family":"Debian","created_at":"2024-04-22 + 11:15:26 UTC","updated_at":"2024-04-22 11:15:26 UTC","name":"Preseed default + autoinstall encrypted","id":153,"inherited":false},{"description":null,"os_family":"Debian","created_at":"2024-04-15 + 09:11:37 UTC","updated_at":"2024-04-15 09:11:37 UTC","name":"Preseed default + LVM","id":142,"inherited":false},{"description":null,"os_family":"Windows","created_at":"2024-04-15 + 09:11:37 UTC","updated_at":"2024-04-15 09:11:37 UTC","name":"Windows default + GPT EFI partition table","id":144,"inherited":false},{"description":null,"os_family":"Windows","created_at":"2024-04-15 + 09:11:37 UTC","updated_at":"2024-04-15 09:11:37 UTC","name":"Windows default + partition table","id":143,"inherited":false},{"description":null,"os_family":"Xenserver","created_at":"2024-04-15 + 09:11:37 UTC","updated_at":"2024-04-15 09:11:37 UTC","name":"XenServer default","id":145,"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":67,"name":"alterator_pkglist","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":68,"name":"ansible_provisioning_callback","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":69,"name":"ansible_tower_callback_script","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":70,"name":"ansible_tower_callback_service","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":51,"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":13,"name":"AutoYaST - default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":114,"name":"AutoYaST - default user data","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":50,"name":"AutoYaST - SLES default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":70,"name":"blacklist_kernel_modules","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":71,"name":"bmc_nic_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":72,"name":"built","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":73,"name":"chef_client","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":30,"name":"CloudInit - default","template_kind_id":12,"template_kind_name":"cloud-init","inherited":false},{"id":74,"name":"coreos_cloudconfig","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":51,"name":"CoreOS - provision","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":14,"name":"CoreOS - PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":75,"name":"create_users","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":76,"name":"csr_attributes.yaml","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":77,"name":"efibootmgr_netboot","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":78,"name":"eject_cdrom","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":79,"name":"epel","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":80,"name":"fips_packages","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":81,"name":"fix_hosts","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":32,"name":"FreeBSD - (mfsBSD) finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":52,"name":"FreeBSD - (mfsBSD) provision","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":15,"name":"FreeBSD - (mfsBSD) PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":82,"name":"freeipa_register","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":61,"name":"Global - Registration","template_kind_id":13,"template_kind_name":"registration","inherited":false},{"id":63,"name":"Grubby - default","template_kind_id":8,"template_kind_name":"script","inherited":false},{"id":83,"name":"http_proxy","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":84,"name":"insights","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":41,"name":"iPXE - default local boot","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":42,"name":"iPXE - global default","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":43,"name":"iPXE - intermediate script","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":53,"name":"Jumpstart - default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":33,"name":"Jumpstart + 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":52,"name":"AutoYaST + SLES default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":71,"name":"blacklist_kernel_modules","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":72,"name":"bmc_nic_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":73,"name":"built","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":74,"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":75,"name":"coreos_cloudconfig","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":53,"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":76,"name":"create_users","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":77,"name":"csr_attributes.yaml","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":149,"name":"disk_enc_clevis_tang","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":78,"name":"efibootmgr_netboot","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":79,"name":"eject_cdrom","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":80,"name":"epel","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":81,"name":"fips_packages","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":82,"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":54,"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":83,"name":"freeipa_register","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":63,"name":"Global + Registration","template_kind_id":13,"template_kind_name":"registration","inherited":false},{"id":65,"name":"Grubby + default","template_kind_id":8,"template_kind_name":"script","inherited":false},{"id":84,"name":"http_proxy","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":85,"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":55,"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":34,"name":"Junos - default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":54,"name":"Junos - default SLAX","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":29,"name":"Junos - default ZTP config","template_kind_id":10,"template_kind_name":"ZTP","inherited":false},{"id":55,"name":"Kickstart - default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":35,"name":"Kickstart - default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":44,"name":"Kickstart + 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":56,"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":57,"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":16,"name":"Kickstart - default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":115,"name":"Kickstart - default user data","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":86,"name":"kickstart_ifcfg_bonded_interface","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":85,"name":"kickstart_ifcfg_bond_interface","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":88,"name":"kickstart_ifcfg_generic_interface","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":90,"name":"kickstart_ifcfg_get_identifier_names","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":91,"name":"kickstart_kernel_options","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":92,"name":"kickstart_networking_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":56,"name":"Kickstart - oVirt-RHVH","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":17,"name":"Kickstart - oVirt-RHVH PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":39,"name":"Linux + 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":87,"name":"kickstart_ifcfg_bonded_interface","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":86,"name":"kickstart_ifcfg_bond_interface","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":88,"name":"kickstart_ifcfg_generic_interface","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":89,"name":"kickstart_ifcfg_get_identifier_names","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":90,"name":"kickstart_kernel_options","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":91,"name":"kickstart_networking_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":150,"name":"kickstart_network_interface","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":58,"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":92,"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":93,"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":94,"name":"pkg_manager","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":116,"name":"Preseed - Autoinstall cloud-init user data","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":57,"name":"Preseed - default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":36,"name":"Preseed - default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":45,"name":"Preseed - default iPXE","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":18,"name":"Preseed - default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":19,"name":"Preseed - default PXELinux Autoinstall","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":117,"name":"Preseed - default user data","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":95,"name":"preseed_kernel_options","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":97,"name":"preseed_netplan_generic_interface","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":98,"name":"preseed_netplan_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":99,"name":"preseed_networking_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":100,"name":"puppet.conf","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":102,"name":"puppetlabs_repo","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":101,"name":"puppet_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":103,"name":"pxegrub2_chainload","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":10,"name":"PXEGrub2 - default local boot","template_kind_id":4,"template_kind_name":"PXEGrub2","inherited":false},{"id":104,"name":"pxegrub2_discovery","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":11,"name":"PXEGrub2 + default POAP setup","template_kind_id":11,"template_kind_name":"POAP","inherited":false},{"id":94,"name":"pkg_manager","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":151,"name":"preseed_autoinstall_clevis_tang_wrapper","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":59,"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":95,"name":"preseed_kernel_options","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":96,"name":"preseed_kernel_options_autoinstall","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":97,"name":"preseed_netplan_generic_interface","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":98,"name":"preseed_netplan_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":99,"name":"preseed_networking_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":100,"name":"puppet.conf","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":102,"name":"puppetlabs_repo","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":101,"name":"puppet_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":103,"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":104,"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":105,"name":"pxegrub2_mac","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":106,"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":107,"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":20,"name":"PXELinux - chain iPXE","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":21,"name":"PXELinux - chain iPXE UNDI","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":108,"name":"pxelinux_chainload","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":22,"name":"PXELinux - default local boot","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":23,"name":"PXELinux - default memdisk","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":109,"name":"pxelinux_discovery","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":24,"name":"PXELinux - global default","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":87,"name":"rancheros_cloudconfig","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":58,"name":"RancherOS - provision","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":25,"name":"RancherOS - PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":89,"name":"redhat_register","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":62,"name":"remote_execution_pull_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":96,"name":"remote_execution_ssh_keys","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":66,"name":"saltstack_minion","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":110,"name":"saltstack_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":111,"name":"schedule_reboot","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":118,"name":"UserData - default","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":119,"name":"UserData - open-vm-tools","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":26,"name":"WAIK - default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":37,"name":"Windows - default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":46,"name":"Windows - default iPXE","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":59,"name":"Windows - default provision","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":27,"name":"Windows - default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":112,"name":"Windows - network","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":64,"name":"Windows - peSetup.cmd","template_kind_id":8,"template_kind_name":"script","inherited":false},{"id":60,"name":"XenServer - default answerfile","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":38,"name":"XenServer - default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":28,"name":"XenServer - default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":113,"name":"yum_proxy","template_kind_id":null,"template_kind_name":null,"inherited":false}],"domains":[],"realms":[],"hostgroups":[],"organizations":[],"hosts_count":0,"parameters":[{"priority":20,"created_at":"2022-11-08 - 09:29:19 UTC","updated_at":"2022-11-08 09:29:19 UTC","id":4,"name":"my_param","parameter_type":"string","value":"my - value"},{"priority":20,"created_at":"2022-11-08 09:29:19 UTC","updated_at":"2022-11-08 - 09:29:19 UTC","id":5,"name":"my_param2","parameter_type":"string","value":"my - other value"},{"priority":20,"created_at":"2022-11-08 09:29:19 UTC","updated_at":"2022-11-08 - 09:29:19 UTC","id":6,"name":"my_param3","parameter_type":"array","value":["array","value"]}],"deprecations":{"environments":"Environments + 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":108,"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":109,"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":110,"name":"rancheros_cloudconfig","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":60,"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":111,"name":"redhat_register","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":64,"name":"remote_execution_pull_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":112,"name":"remote_execution_ssh_keys","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":113,"name":"saltstack_minion","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":114,"name":"saltstack_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":115,"name":"schedule_reboot","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":116,"name":"subscription_manager_setup","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":61,"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":125,"name":"Windows + default user data","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":117,"name":"Windows + network","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":66,"name":"Windows + peSetup.cmd","template_kind_id":8,"template_kind_name":"script","inherited":false},{"id":62,"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":118,"name":"yum_proxy","template_kind_id":null,"template_kind_name":null,"inherited":false}],"domains":[],"realms":[],"hostgroups":[],"organizations":[],"hosts_count":0,"parameters":[{"priority":20,"created_at":"2024-07-25 + 12:00:24 UTC","updated_at":"2024-07-25 12:00:24 UTC","id":4,"name":"my_param","parameter_type":"string","associated_type":"location","hidden_value?":false,"value":"my + value"},{"priority":20,"created_at":"2024-07-25 12:00:24 UTC","updated_at":"2024-07-25 + 12:00:24 UTC","id":5,"name":"my_param2","parameter_type":"string","associated_type":"location","hidden_value?":false,"value":"my + other value"},{"priority":20,"created_at":"2024-07-25 12:00:24 UTC","updated_at":"2024-07-25 + 12:00:24 UTC","id":6,"name":"my_param3","parameter_type":"array","associated_type":"location","hidden_value?":false,"value":["array","value"]}],"deprecations":{"environments":"Environments got deprecated from this endpoint."}}' headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive + Content-Length: + - '19773' 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''; @@ -256,13 +268,11 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.4.0 + - 3.11.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: @@ -288,22 +298,24 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/api/locations/8/parameters?per_page=4294967296 + uri: https://foreman.example.org/api/locations/11/parameters?per_page=4294967296 response: body: string: "{\n \"total\": 3,\n \"subtotal\": 3,\n \"page\": 1,\n \"per_page\": 4294967296,\n \"search\": null,\n \"sort\": {\n \"by\": null,\n \"order\": - null\n },\n \"results\": [{\"priority\":20,\"created_at\":\"2022-11-08 09:29:19 - UTC\",\"updated_at\":\"2022-11-08 09:29:19 UTC\",\"id\":4,\"name\":\"my_param\",\"parameter_type\":\"string\",\"value\":\"my - value\"},{\"priority\":20,\"created_at\":\"2022-11-08 09:29:19 UTC\",\"updated_at\":\"2022-11-08 - 09:29:19 UTC\",\"id\":5,\"name\":\"my_param2\",\"parameter_type\":\"string\",\"value\":\"my - other value\"},{\"priority\":20,\"created_at\":\"2022-11-08 09:29:19 UTC\",\"updated_at\":\"2022-11-08 - 09:29:19 UTC\",\"id\":6,\"name\":\"my_param3\",\"parameter_type\":\"array\",\"value\":[\"array\",\"value\"]}]\n}\n" + null\n },\n \"results\": [{\"priority\":20,\"created_at\":\"2024-07-25 12:00:24 + UTC\",\"updated_at\":\"2024-07-25 12:00:24 UTC\",\"id\":4,\"name\":\"my_param\",\"parameter_type\":\"string\",\"associated_type\":\"location\",\"hidden_value?\":false,\"value\":\"my + value\"},{\"priority\":20,\"created_at\":\"2024-07-25 12:00:24 UTC\",\"updated_at\":\"2024-07-25 + 12:00:24 UTC\",\"id\":5,\"name\":\"my_param2\",\"parameter_type\":\"string\",\"associated_type\":\"location\",\"hidden_value?\":false,\"value\":\"my + other value\"},{\"priority\":20,\"created_at\":\"2024-07-25 12:00:24 UTC\",\"updated_at\":\"2024-07-25 + 12:00:24 UTC\",\"id\":6,\"name\":\"my_param3\",\"parameter_type\":\"array\",\"associated_type\":\"location\",\"hidden_value?\":false,\"value\":[\"array\",\"value\"]}]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive + Content-Length: + - '817' 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''; @@ -313,17 +325,15 @@ interactions: Foreman_api_version: - '2' Foreman_current_location: - - 8; Test Location + - 11; Test Location Foreman_current_organization: - ; ANY Foreman_version: - - 3.4.0 + - 3.11.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: diff --git a/tests/test_playbooks/fixtures/location-2.yml b/tests/test_playbooks/fixtures/location-2.yml index cfdb06e59..fbb670dae 100644 --- a/tests/test_playbooks/fixtures/location-2.yml +++ b/tests/test_playbooks/fixtures/location-2.yml @@ -14,12 +14,14 @@ interactions: uri: https://foreman.example.org/api/status response: body: - string: '{"result":"ok","status":200,"version":"3.4.0","api_version":2}' + string: '{"result":"ok","status":200,"version":"3.11.0-develop","api_version":2}' headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive + Content-Length: + - '71' 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.4.0 + - 3.11.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: @@ -77,6 +77,8 @@ interactions: - max-age=0, private, must-revalidate Connection: - Keep-Alive + Content-Length: + - '195' 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''; @@ -90,13 +92,11 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.4.0 + - 3.11.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: @@ -127,14 +127,16 @@ interactions: body: string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": 4294967296,\n \"search\": \"title=\\\"Test Location\\\"\",\n \"sort\": {\n - \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"ancestry\":null,\"parent_id\":null,\"parent_name\":null,\"created_at\":\"2022-11-08 - 09:29:05 UTC\",\"updated_at\":\"2022-11-08 09:29:05 UTC\",\"id\":4,\"name\":\"Test + \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"ancestry\":null,\"parent_id\":null,\"parent_name\":null,\"created_at\":\"2024-07-25 + 12:00:01 UTC\",\"updated_at\":\"2024-07-25 12:00:01 UTC\",\"id\":7,\"name\":\"Test Location\",\"title\":\"Test Location\",\"description\":null}]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive + Content-Length: + - '384' 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 +150,11 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.4.0 + - 3.11.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: @@ -185,14 +185,16 @@ interactions: body: 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\": [{\"ancestry\":null,\"parent_id\":null,\"parent_name\":null,\"created_at\":\"2022-11-08 - 09:29:04 UTC\",\"updated_at\":\"2022-11-08 09:29:04 UTC\",\"id\":3,\"name\":\"Test + {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"ancestry\":null,\"parent_id\":null,\"parent_name\":null,\"created_at\":\"2024-07-25 + 12:00:00 UTC\",\"updated_at\":\"2024-07-25 12:00:00 UTC\",\"id\":6,\"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: + - '412' 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.4.0 + - 3.11.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: @@ -227,8 +227,8 @@ interactions: code: 200 message: OK - request: - body: '{"location": {"name": "Sub Location 1", "parent_id": 4, "organization_ids": - [3]}}' + body: '{"location": {"name": "Sub Location 1", "parent_id": 7, "organization_ids": + [6]}}' headers: Accept: - application/json;version=2 @@ -246,113 +246,123 @@ interactions: uri: https://foreman.example.org/api/locations response: body: - string: '{"select_all_types":[],"description":null,"created_at":"2022-11-08 - 09:29:07 UTC","updated_at":"2022-11-08 09:29:07 UTC","ancestry":"4","parent_id":4,"parent_name":"Test - Location","id":5,"name":"Sub Location 1","title":"Test Location/Sub Location - 1","users":[],"smart_proxies":[],"subnets":[],"compute_resources":[],"media":[],"ptables":[{"description":null,"os_family":"Suse","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"AutoYaST entire - SCSI disk","id":120,"inherited":false},{"description":null,"os_family":"Suse","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"AutoYaST entire - virtual disk","id":121,"inherited":false},{"description":null,"os_family":"Suse","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"AutoYaST LVM","id":122,"inherited":false},{"description":null,"os_family":"Coreos","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"CoreOS default - fake","id":123,"inherited":false},{"description":null,"os_family":"Rancheros","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Empty","id":124,"inherited":false},{"description":null,"os_family":"Freebsd","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"FreeBSD default - fake","id":125,"inherited":false},{"description":null,"os_family":"Solaris","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Jumpstart default","id":126,"inherited":false},{"description":null,"os_family":"Solaris","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Jumpstart mirrored","id":127,"inherited":false},{"description":null,"os_family":"Junos","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Junos default - fake","id":128,"inherited":false},{"description":null,"os_family":"Redhat","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Kickstart custom","id":129,"inherited":false},{"description":null,"os_family":"Redhat","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Kickstart default","id":130,"inherited":false},{"description":null,"os_family":"Redhat","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Kickstart default - thin","id":131,"inherited":false},{"description":null,"os_family":"Redhat","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Kickstart dynamic","id":132,"inherited":false},{"description":null,"os_family":"NXOS","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"NX-OS default - fake","id":133,"inherited":false},{"description":null,"os_family":"Debian","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Preseed default","id":134,"inherited":false},{"description":"Preseed + string: '{"select_all_types":[],"description":null,"created_at":"2024-07-25 + 12:00:04 UTC","updated_at":"2024-07-25 12:00:04 UTC","ancestry":"7","parent_id":7,"parent_name":"Test + Location","id":8,"name":"Sub Location 1","title":"Test Location/Sub Location + 1","users":[],"smart_proxies":[],"subnets":[],"compute_resources":[],"media":[],"ptables":[{"description":null,"os_family":"Suse","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"AutoYaST entire + virtual disk","id":127,"inherited":false},{"description":null,"os_family":"Solaris","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"Jumpstart default","id":132,"inherited":false},{"description":null,"os_family":"Solaris","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"Jumpstart mirrored","id":133,"inherited":false},{"description":null,"os_family":"Junos","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"Junos default + fake","id":134,"inherited":false},{"description":null,"os_family":"Suse","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"AutoYaST LVM","id":128,"inherited":false},{"description":null,"os_family":"Coreos","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"CoreOS default + fake","id":129,"inherited":false},{"description":null,"os_family":"Rancheros","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"Empty","id":130,"inherited":false},{"description":null,"os_family":"Suse","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"AutoYaST entire + SCSI disk","id":126,"inherited":false},{"description":null,"os_family":"Freebsd","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"FreeBSD default + fake","id":131,"inherited":false},{"description":null,"os_family":"Redhat","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"Kickstart custom","id":135,"inherited":false},{"description":null,"os_family":"Redhat","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"Kickstart default","id":136,"inherited":false},{"description":null,"os_family":"Redhat","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"Kickstart default + thin","id":137,"inherited":false},{"description":null,"os_family":"Redhat","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"Kickstart dynamic","id":138,"inherited":false},{"description":null,"os_family":"NXOS","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"NX-OS default + fake","id":139,"inherited":false},{"description":null,"os_family":"Debian","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"Preseed default","id":140,"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":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Preseed default - autoinstall","id":135,"inherited":false},{"description":null,"os_family":"Debian","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Preseed default - LVM","id":136,"inherited":false},{"description":null,"os_family":"Windows","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Windows default - partition table","id":137,"inherited":false},{"description":null,"os_family":"Windows","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Windows default - GPT EFI partition table","id":138,"inherited":false},{"description":null,"os_family":"Xenserver","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"XenServer default","id":139,"inherited":false}],"provisioning_templates":[{"id":1,"name":"NX-OS + LVM. The snippet is automatically indented by 2 spaces. For reference:\nhttps://ubuntu.com/server/docs/install/autoinstall-reference","os_family":"Debian","created_at":"2024-04-15 + 09:11:37 UTC","updated_at":"2024-04-15 09:11:37 UTC","name":"Preseed default + autoinstall","id":141,"inherited":false},{"description":null,"os_family":"Debian","created_at":"2024-04-15 + 09:11:37 UTC","updated_at":"2024-04-15 09:11:37 UTC","name":"Preseed default + LVM","id":142,"inherited":false},{"description":null,"os_family":"Windows","created_at":"2024-04-15 + 09:11:37 UTC","updated_at":"2024-04-15 09:11:37 UTC","name":"Windows default + partition table","id":143,"inherited":false},{"description":null,"os_family":"Windows","created_at":"2024-04-15 + 09:11:37 UTC","updated_at":"2024-04-15 09:11:37 UTC","name":"Windows default + GPT EFI partition table","id":144,"inherited":false},{"description":null,"os_family":"Xenserver","created_at":"2024-04-15 + 09:11:37 UTC","updated_at":"2024-04-15 09:11:37 UTC","name":"XenServer default","id":145,"inherited":false},{"description":null,"os_family":"Redhat","created_at":"2024-04-22 + 11:15:26 UTC","updated_at":"2024-04-22 11:15:26 UTC","name":"Kickstart default + encrypted","id":152,"inherited":false},{"description":"Preseed Autoinstall + default storage snippet configures drives automatically\nwith LVM and disk + encryption.\nRequires Ubuntu >= 22.04.3.\nThe snippet is automatically indented + by 2 spaces. For reference:\nhttps://ubuntu.com/server/docs/install/autoinstall-reference","os_family":"Debian","created_at":"2024-04-22 + 11:15:26 UTC","updated_at":"2024-04-22 11:15:26 UTC","name":"Preseed default + autoinstall encrypted","id":153,"inherited":false}],"provisioning_templates":[{"id":1,"name":"NX-OS default POAP setup","template_kind_id":11,"template_kind_name":"POAP","inherited":false},{"id":2,"name":"AutoYaST default PXEGrub","template_kind_id":3,"template_kind_name":"PXEGrub","inherited":false},{"id":3,"name":"Jumpstart default PXEGrub","template_kind_id":3,"template_kind_name":"PXEGrub","inherited":false},{"id":4,"name":"Kickstart default PXEGrub","template_kind_id":3,"template_kind_name":"PXEGrub","inherited":false},{"id":5,"name":"PXEGrub default local boot","template_kind_id":3,"template_kind_name":"PXEGrub","inherited":false},{"id":6,"name":"PXEGrub - global default","template_kind_id":3,"template_kind_name":"PXEGrub","inherited":false},{"id":49,"name":"AutoYaST - default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":7,"name":"AutoYaST + global default","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":8,"name":"Kickstart default PXEGrub2","template_kind_id":4,"template_kind_name":"PXEGrub2","inherited":false},{"id":9,"name":"Preseed - default PXEGrub2","template_kind_id":4,"template_kind_name":"PXEGrub2","inherited":false},{"id":10,"name":"PXEGrub2 - default local boot","template_kind_id":4,"template_kind_name":"PXEGrub2","inherited":false},{"id":11,"name":"PXEGrub2 - global default","template_kind_id":4,"template_kind_name":"PXEGrub2","inherited":false},{"id":12,"name":"Alterator - default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":50,"name":"AutoYaST - SLES default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":13,"name":"AutoYaST - default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":14,"name":"CoreOS - PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":15,"name":"FreeBSD - (mfsBSD) PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":16,"name":"Kickstart - default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":17,"name":"Kickstart - oVirt-RHVH PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":18,"name":"Preseed - default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":19,"name":"Preseed - default PXELinux Autoinstall","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":20,"name":"PXELinux - chain iPXE","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":21,"name":"PXELinux - chain iPXE UNDI","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":22,"name":"PXELinux - default local boot","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":23,"name":"PXELinux - default memdisk","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":24,"name":"PXELinux - global default","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":25,"name":"RancherOS - PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":26,"name":"WAIK - default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":27,"name":"Windows - default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":28,"name":"XenServer - default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":29,"name":"Junos - default ZTP config","template_kind_id":10,"template_kind_name":"ZTP","inherited":false},{"id":30,"name":"CloudInit - default","template_kind_id":12,"template_kind_name":"cloud-init","inherited":false},{"id":31,"name":"Alterator - default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":73,"name":"chef_client","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":32,"name":"FreeBSD - (mfsBSD) finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":33,"name":"Jumpstart - default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":34,"name":"Junos - default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":35,"name":"Kickstart - default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":36,"name":"Preseed - default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":37,"name":"Windows - default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":38,"name":"XenServer - default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":39,"name":"Linux - host_init_config default","template_kind_id":1,"template_kind_name":"host_init_config","inherited":false},{"id":40,"name":"AutoYaST - default iPXE","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":41,"name":"iPXE - default local boot","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":42,"name":"iPXE - global default","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":51,"name":"CoreOS - provision","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":43,"name":"iPXE - intermediate script","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":44,"name":"Kickstart - default iPXE","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":45,"name":"Preseed - default iPXE","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":46,"name":"Windows - default iPXE","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":47,"name":"Alterator - default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":48,"name":"Atomic - Kickstart default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":52,"name":"FreeBSD - (mfsBSD) provision","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":53,"name":"Jumpstart - default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":54,"name":"Junos - default SLAX","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":55,"name":"Kickstart - default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":56,"name":"Kickstart - oVirt-RHVH","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":57,"name":"Preseed - default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":58,"name":"RancherOS - provision","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":59,"name":"Windows - default provision","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":60,"name":"XenServer - default answerfile","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":61,"name":"Global - Registration","template_kind_id":13,"template_kind_name":"registration","inherited":false},{"id":62,"name":"remote_execution_pull_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":63,"name":"Grubby - default","template_kind_id":8,"template_kind_name":"script","inherited":false},{"id":64,"name":"Windows - peSetup.cmd","template_kind_id":8,"template_kind_name":"script","inherited":false},{"id":65,"name":"alterator_pkglist","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":66,"name":"saltstack_minion","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":67,"name":"ansible_provisioning_callback","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":68,"name":"ansible_tower_callback_script","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":69,"name":"ansible_tower_callback_service","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":70,"name":"blacklist_kernel_modules","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":71,"name":"bmc_nic_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":72,"name":"built","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":74,"name":"coreos_cloudconfig","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":75,"name":"create_users","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":76,"name":"csr_attributes.yaml","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":77,"name":"efibootmgr_netboot","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":78,"name":"eject_cdrom","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":79,"name":"epel","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":80,"name":"fips_packages","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":81,"name":"fix_hosts","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":82,"name":"freeipa_register","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":83,"name":"http_proxy","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":84,"name":"insights","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":85,"name":"kickstart_ifcfg_bond_interface","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":86,"name":"kickstart_ifcfg_bonded_interface","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":87,"name":"rancheros_cloudconfig","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":111,"name":"schedule_reboot","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":88,"name":"kickstart_ifcfg_generic_interface","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":89,"name":"redhat_register","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":90,"name":"kickstart_ifcfg_get_identifier_names","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":91,"name":"kickstart_kernel_options","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":92,"name":"kickstart_networking_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":93,"name":"ntp","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":94,"name":"pkg_manager","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":95,"name":"preseed_kernel_options","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":96,"name":"remote_execution_ssh_keys","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":97,"name":"preseed_netplan_generic_interface","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":98,"name":"preseed_netplan_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":99,"name":"preseed_networking_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":100,"name":"puppet.conf","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":101,"name":"puppet_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":102,"name":"puppetlabs_repo","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":103,"name":"pxegrub2_chainload","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":104,"name":"pxegrub2_discovery","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":105,"name":"pxegrub2_mac","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":106,"name":"pxegrub_chainload","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":107,"name":"pxegrub_discovery","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":108,"name":"pxelinux_chainload","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":109,"name":"pxelinux_discovery","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":110,"name":"saltstack_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":112,"name":"Windows - network","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":113,"name":"yum_proxy","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":114,"name":"AutoYaST - default user data","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":115,"name":"Kickstart - default user data","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":116,"name":"Preseed - Autoinstall cloud-init user data","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":117,"name":"Preseed - default user data","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":118,"name":"UserData - default","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":119,"name":"UserData - open-vm-tools","template_kind_id":9,"template_kind_name":"user_data","inherited":false}],"domains":[],"realms":[],"hostgroups":[],"organizations":[{"id":3,"name":"Test + 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":11,"name":"PXEGrub2 + default local boot","template_kind_id":4,"template_kind_name":"PXEGrub2","inherited":false},{"id":12,"name":"PXEGrub2 + global default","template_kind_id":4,"template_kind_name":"PXEGrub2","inherited":false},{"id":13,"name":"Alterator + default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":14,"name":"AutoYaST + default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":15,"name":"CoreOS + PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":16,"name":"FreeBSD + (mfsBSD) PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":17,"name":"Kickstart + default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":18,"name":"Kickstart + oVirt-RHVH PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","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":79,"name":"eject_cdrom","template_kind_id":null,"template_kind_name":null,"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":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":25,"name":"PXELinux + global default","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":26,"name":"RancherOS + PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":27,"name":"WAIK + default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":28,"name":"Windows + default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":29,"name":"XenServer + default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":30,"name":"Junos + default ZTP config","template_kind_id":10,"template_kind_name":"ZTP","inherited":false},{"id":32,"name":"Alterator + default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":80,"name":"epel","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":34,"name":"Jumpstart + default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":35,"name":"Junos + default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":37,"name":"Preseed + default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":38,"name":"Windows + default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":39,"name":"XenServer + default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":40,"name":"Linux + host_init_config default","template_kind_id":1,"template_kind_name":"host_init_config","inherited":false},{"id":41,"name":"AutoYaST + default iPXE","template_kind_id":5,"template_kind_name":"iPXE","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":72,"name":"bmc_nic_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":44,"name":"iPXE + intermediate script","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":45,"name":"Kickstart + default iPXE","template_kind_id":5,"template_kind_name":"iPXE","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":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":81,"name":"fips_packages","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":50,"name":"Alterator + default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":51,"name":"AutoYaST + default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":52,"name":"AutoYaST + SLES default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":53,"name":"CoreOS + provision","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":54,"name":"FreeBSD + (mfsBSD) provision","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":55,"name":"Jumpstart + default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":56,"name":"Junos + default SLAX","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":70,"name":"ansible_tower_callback_service","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":59,"name":"Preseed + default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":60,"name":"RancherOS + provision","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":61,"name":"Windows + default provision","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":62,"name":"XenServer + default answerfile","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":63,"name":"Global + Registration","template_kind_id":13,"template_kind_name":"registration","inherited":false},{"id":64,"name":"remote_execution_pull_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":65,"name":"Grubby + default","template_kind_id":8,"template_kind_name":"script","inherited":false},{"id":66,"name":"Windows + peSetup.cmd","template_kind_id":8,"template_kind_name":"script","inherited":false},{"id":67,"name":"alterator_pkglist","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":68,"name":"ansible_provisioning_callback","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":69,"name":"ansible_tower_callback_script","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":71,"name":"blacklist_kernel_modules","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":73,"name":"built","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":74,"name":"chef_client","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":75,"name":"coreos_cloudconfig","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":76,"name":"create_users","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":77,"name":"csr_attributes.yaml","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":78,"name":"efibootmgr_netboot","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":82,"name":"fix_hosts","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":83,"name":"freeipa_register","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":84,"name":"http_proxy","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":85,"name":"insights","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":86,"name":"kickstart_ifcfg_bond_interface","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":87,"name":"kickstart_ifcfg_bonded_interface","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":88,"name":"kickstart_ifcfg_generic_interface","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":89,"name":"kickstart_ifcfg_get_identifier_names","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":91,"name":"kickstart_networking_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":92,"name":"kickstart_rhsm","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":93,"name":"ntp","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":95,"name":"preseed_kernel_options","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":96,"name":"preseed_kernel_options_autoinstall","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":97,"name":"preseed_netplan_generic_interface","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":98,"name":"preseed_netplan_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":99,"name":"preseed_networking_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":106,"name":"pxegrub_chainload","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":100,"name":"puppet.conf","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":101,"name":"puppet_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":102,"name":"puppetlabs_repo","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":103,"name":"pxegrub2_chainload","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":104,"name":"pxegrub2_discovery","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":105,"name":"pxegrub2_mac","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":107,"name":"pxegrub_discovery","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":108,"name":"pxelinux_chainload","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":109,"name":"pxelinux_discovery","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":110,"name":"rancheros_cloudconfig","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":124,"name":"UserData + open-vm-tools","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":125,"name":"Windows + default user data","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":112,"name":"remote_execution_ssh_keys","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":113,"name":"saltstack_minion","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":114,"name":"saltstack_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":115,"name":"schedule_reboot","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":117,"name":"Windows + network","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":118,"name":"yum_proxy","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":119,"name":"AutoYaST + default user data","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":120,"name":"Kickstart + default user data","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":122,"name":"Preseed + default user data","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":90,"name":"kickstart_kernel_options","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":36,"name":"Kickstart + default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":57,"name":"Kickstart + default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":58,"name":"Kickstart + oVirt-RHVH","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":149,"name":"disk_enc_clevis_tang","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":150,"name":"kickstart_network_interface","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":94,"name":"pkg_manager","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":151,"name":"preseed_autoinstall_clevis_tang_wrapper","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":111,"name":"redhat_register","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":116,"name":"subscription_manager_setup","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}],"domains":[],"realms":[],"hostgroups":[],"organizations":[{"id":6,"name":"Test Organization","title":"Test Organization","description":"A test organization"}],"hosts_count":0,"parameters":[{}],"deprecations":{"environments":"Environments got deprecated from this endpoint."}}' headers: @@ -360,6 +370,8 @@ interactions: - max-age=0, private, must-revalidate Connection: - Keep-Alive + Content-Length: + - '19238' 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''; @@ -373,13 +385,11 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.4.0 + - 3.11.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: diff --git a/tests/test_playbooks/fixtures/location-20.yml b/tests/test_playbooks/fixtures/location-20.yml index 640469aeb..9725e1dcb 100644 --- a/tests/test_playbooks/fixtures/location-20.yml +++ b/tests/test_playbooks/fixtures/location-20.yml @@ -14,12 +14,14 @@ interactions: uri: https://foreman.example.org/api/status response: body: - string: '{"result":"ok","status":200,"version":"3.4.0","api_version":2}' + string: '{"result":"ok","status":200,"version":"3.11.0-develop","api_version":2}' headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive + Content-Length: + - '71' 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.4.0 + - 3.11.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: @@ -70,14 +70,16 @@ interactions: body: string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": 4294967296,\n \"search\": \"title=\\\"Test Location\\\"\",\n \"sort\": {\n - \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"ancestry\":null,\"parent_id\":null,\"parent_name\":null,\"created_at\":\"2022-11-08 - 09:29:18 UTC\",\"updated_at\":\"2022-11-08 09:29:18 UTC\",\"id\":8,\"name\":\"Test + \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"ancestry\":null,\"parent_id\":null,\"parent_name\":null,\"created_at\":\"2024-07-25 + 12:00:20 UTC\",\"updated_at\":\"2024-07-25 12:00:20 UTC\",\"id\":11,\"name\":\"Test Location\",\"title\":\"Test Location\",\"description\":null}]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive + Content-Length: + - '385' 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.4.0 + - 3.11.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: @@ -123,126 +123,138 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/api/locations/8 + uri: https://foreman.example.org/api/locations/11 response: body: - string: '{"select_all_types":[],"description":null,"created_at":"2022-11-08 - 09:29:18 UTC","updated_at":"2022-11-08 09:29:18 UTC","ancestry":null,"parent_id":null,"parent_name":null,"id":8,"name":"Test - Location","title":"Test Location","users":[],"smart_proxies":[],"subnets":[],"compute_resources":[],"media":[],"ptables":[{"description":null,"os_family":"Suse","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"AutoYaST entire - SCSI disk","id":120,"inherited":false},{"description":null,"os_family":"Suse","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"AutoYaST entire - virtual disk","id":121,"inherited":false},{"description":null,"os_family":"Suse","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"AutoYaST LVM","id":122,"inherited":false},{"description":null,"os_family":"Coreos","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"CoreOS default - fake","id":123,"inherited":false},{"description":null,"os_family":"Rancheros","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Empty","id":124,"inherited":false},{"description":null,"os_family":"Freebsd","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"FreeBSD default - fake","id":125,"inherited":false},{"description":null,"os_family":"Solaris","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Jumpstart default","id":126,"inherited":false},{"description":null,"os_family":"Solaris","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Jumpstart mirrored","id":127,"inherited":false},{"description":null,"os_family":"Junos","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Junos default - fake","id":128,"inherited":false},{"description":null,"os_family":"Redhat","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Kickstart custom","id":129,"inherited":false},{"description":null,"os_family":"Redhat","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Kickstart default","id":130,"inherited":false},{"description":null,"os_family":"Redhat","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Kickstart default - thin","id":131,"inherited":false},{"description":null,"os_family":"Redhat","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Kickstart dynamic","id":132,"inherited":false},{"description":null,"os_family":"NXOS","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"NX-OS default - fake","id":133,"inherited":false},{"description":null,"os_family":"Debian","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Preseed default","id":134,"inherited":false},{"description":"Preseed + string: '{"select_all_types":[],"description":null,"created_at":"2024-07-25 + 12:00:20 UTC","updated_at":"2024-07-25 12:00:20 UTC","ancestry":null,"parent_id":null,"parent_name":null,"id":11,"name":"Test + Location","title":"Test Location","users":[],"smart_proxies":[],"subnets":[],"compute_resources":[],"media":[],"ptables":[{"description":null,"os_family":"Suse","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"AutoYaST entire + SCSI disk","id":126,"inherited":false},{"description":null,"os_family":"Suse","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"AutoYaST entire + virtual disk","id":127,"inherited":false},{"description":null,"os_family":"Suse","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"AutoYaST LVM","id":128,"inherited":false},{"description":null,"os_family":"Coreos","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"CoreOS default + fake","id":129,"inherited":false},{"description":null,"os_family":"Rancheros","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"Empty","id":130,"inherited":false},{"description":null,"os_family":"Freebsd","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"FreeBSD default + fake","id":131,"inherited":false},{"description":null,"os_family":"Solaris","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"Jumpstart default","id":132,"inherited":false},{"description":null,"os_family":"Solaris","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"Jumpstart mirrored","id":133,"inherited":false},{"description":null,"os_family":"Junos","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"Junos default + fake","id":134,"inherited":false},{"description":null,"os_family":"Redhat","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"Kickstart custom","id":135,"inherited":false},{"description":null,"os_family":"Redhat","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"Kickstart default","id":136,"inherited":false},{"description":null,"os_family":"Redhat","created_at":"2024-04-22 + 11:15:26 UTC","updated_at":"2024-04-22 11:15:26 UTC","name":"Kickstart default + encrypted","id":152,"inherited":false},{"description":null,"os_family":"Redhat","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"Kickstart default + thin","id":137,"inherited":false},{"description":null,"os_family":"Redhat","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"Kickstart dynamic","id":138,"inherited":false},{"description":null,"os_family":"NXOS","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"NX-OS default + fake","id":139,"inherited":false},{"description":null,"os_family":"Debian","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"Preseed default","id":140,"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":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Preseed default - autoinstall","id":135,"inherited":false},{"description":null,"os_family":"Debian","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Preseed default - LVM","id":136,"inherited":false},{"description":null,"os_family":"Windows","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Windows default - GPT EFI partition table","id":138,"inherited":false},{"description":null,"os_family":"Windows","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Windows default - partition table","id":137,"inherited":false},{"description":null,"os_family":"Xenserver","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"XenServer default","id":139,"inherited":false}],"provisioning_templates":[{"id":47,"name":"Alterator - default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":31,"name":"Alterator - default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":12,"name":"Alterator - default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":65,"name":"alterator_pkglist","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":67,"name":"ansible_provisioning_callback","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":68,"name":"ansible_tower_callback_script","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":69,"name":"ansible_tower_callback_service","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":48,"name":"Atomic - Kickstart default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":49,"name":"AutoYaST - default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":40,"name":"AutoYaST + LVM. The snippet is automatically indented by 2 spaces. For reference:\nhttps://ubuntu.com/server/docs/install/autoinstall-reference","os_family":"Debian","created_at":"2024-04-15 + 09:11:37 UTC","updated_at":"2024-04-15 09:11:37 UTC","name":"Preseed default + autoinstall","id":141,"inherited":false},{"description":"Preseed Autoinstall + default storage snippet configures drives automatically\nwith LVM and disk + encryption.\nRequires Ubuntu >= 22.04.3.\nThe snippet is automatically indented + by 2 spaces. For reference:\nhttps://ubuntu.com/server/docs/install/autoinstall-reference","os_family":"Debian","created_at":"2024-04-22 + 11:15:26 UTC","updated_at":"2024-04-22 11:15:26 UTC","name":"Preseed default + autoinstall encrypted","id":153,"inherited":false},{"description":null,"os_family":"Debian","created_at":"2024-04-15 + 09:11:37 UTC","updated_at":"2024-04-15 09:11:37 UTC","name":"Preseed default + LVM","id":142,"inherited":false},{"description":null,"os_family":"Windows","created_at":"2024-04-15 + 09:11:37 UTC","updated_at":"2024-04-15 09:11:37 UTC","name":"Windows default + GPT EFI partition table","id":144,"inherited":false},{"description":null,"os_family":"Windows","created_at":"2024-04-15 + 09:11:37 UTC","updated_at":"2024-04-15 09:11:37 UTC","name":"Windows default + partition table","id":143,"inherited":false},{"description":null,"os_family":"Xenserver","created_at":"2024-04-15 + 09:11:37 UTC","updated_at":"2024-04-15 09:11:37 UTC","name":"XenServer default","id":145,"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":67,"name":"alterator_pkglist","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":68,"name":"ansible_provisioning_callback","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":69,"name":"ansible_tower_callback_script","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":70,"name":"ansible_tower_callback_service","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":51,"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":13,"name":"AutoYaST - default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":114,"name":"AutoYaST - default user data","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":50,"name":"AutoYaST - SLES default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":70,"name":"blacklist_kernel_modules","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":71,"name":"bmc_nic_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":72,"name":"built","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":73,"name":"chef_client","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":30,"name":"CloudInit - default","template_kind_id":12,"template_kind_name":"cloud-init","inherited":false},{"id":74,"name":"coreos_cloudconfig","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":51,"name":"CoreOS - provision","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":14,"name":"CoreOS - PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":75,"name":"create_users","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":76,"name":"csr_attributes.yaml","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":77,"name":"efibootmgr_netboot","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":78,"name":"eject_cdrom","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":79,"name":"epel","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":80,"name":"fips_packages","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":81,"name":"fix_hosts","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":32,"name":"FreeBSD - (mfsBSD) finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":52,"name":"FreeBSD - (mfsBSD) provision","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":15,"name":"FreeBSD - (mfsBSD) PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":82,"name":"freeipa_register","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":61,"name":"Global - Registration","template_kind_id":13,"template_kind_name":"registration","inherited":false},{"id":63,"name":"Grubby - default","template_kind_id":8,"template_kind_name":"script","inherited":false},{"id":83,"name":"http_proxy","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":84,"name":"insights","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":41,"name":"iPXE - default local boot","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":42,"name":"iPXE - global default","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":43,"name":"iPXE - intermediate script","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":53,"name":"Jumpstart - default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":33,"name":"Jumpstart + 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":52,"name":"AutoYaST + SLES default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":71,"name":"blacklist_kernel_modules","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":72,"name":"bmc_nic_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":73,"name":"built","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":74,"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":75,"name":"coreos_cloudconfig","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":53,"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":76,"name":"create_users","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":77,"name":"csr_attributes.yaml","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":149,"name":"disk_enc_clevis_tang","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":78,"name":"efibootmgr_netboot","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":79,"name":"eject_cdrom","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":80,"name":"epel","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":81,"name":"fips_packages","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":82,"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":54,"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":83,"name":"freeipa_register","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":63,"name":"Global + Registration","template_kind_id":13,"template_kind_name":"registration","inherited":false},{"id":65,"name":"Grubby + default","template_kind_id":8,"template_kind_name":"script","inherited":false},{"id":84,"name":"http_proxy","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":85,"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":55,"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":34,"name":"Junos - default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":54,"name":"Junos - default SLAX","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":29,"name":"Junos - default ZTP config","template_kind_id":10,"template_kind_name":"ZTP","inherited":false},{"id":55,"name":"Kickstart - default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":35,"name":"Kickstart - default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":44,"name":"Kickstart + 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":56,"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":57,"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":16,"name":"Kickstart - default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":115,"name":"Kickstart - default user data","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":86,"name":"kickstart_ifcfg_bonded_interface","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":85,"name":"kickstart_ifcfg_bond_interface","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":88,"name":"kickstart_ifcfg_generic_interface","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":90,"name":"kickstart_ifcfg_get_identifier_names","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":91,"name":"kickstart_kernel_options","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":92,"name":"kickstart_networking_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":56,"name":"Kickstart - oVirt-RHVH","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":17,"name":"Kickstart - oVirt-RHVH PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":39,"name":"Linux + 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":87,"name":"kickstart_ifcfg_bonded_interface","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":86,"name":"kickstart_ifcfg_bond_interface","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":88,"name":"kickstart_ifcfg_generic_interface","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":89,"name":"kickstart_ifcfg_get_identifier_names","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":90,"name":"kickstart_kernel_options","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":91,"name":"kickstart_networking_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":150,"name":"kickstart_network_interface","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":58,"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":92,"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":93,"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":94,"name":"pkg_manager","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":116,"name":"Preseed - Autoinstall cloud-init user data","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":57,"name":"Preseed - default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":36,"name":"Preseed - default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":45,"name":"Preseed - default iPXE","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":18,"name":"Preseed - default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":19,"name":"Preseed - default PXELinux Autoinstall","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":117,"name":"Preseed - default user data","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":95,"name":"preseed_kernel_options","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":97,"name":"preseed_netplan_generic_interface","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":98,"name":"preseed_netplan_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":99,"name":"preseed_networking_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":100,"name":"puppet.conf","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":102,"name":"puppetlabs_repo","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":101,"name":"puppet_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":103,"name":"pxegrub2_chainload","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":10,"name":"PXEGrub2 - default local boot","template_kind_id":4,"template_kind_name":"PXEGrub2","inherited":false},{"id":104,"name":"pxegrub2_discovery","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":11,"name":"PXEGrub2 + default POAP setup","template_kind_id":11,"template_kind_name":"POAP","inherited":false},{"id":94,"name":"pkg_manager","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":151,"name":"preseed_autoinstall_clevis_tang_wrapper","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":59,"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":95,"name":"preseed_kernel_options","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":96,"name":"preseed_kernel_options_autoinstall","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":97,"name":"preseed_netplan_generic_interface","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":98,"name":"preseed_netplan_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":99,"name":"preseed_networking_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":100,"name":"puppet.conf","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":102,"name":"puppetlabs_repo","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":101,"name":"puppet_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":103,"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":104,"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":105,"name":"pxegrub2_mac","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":106,"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":107,"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":20,"name":"PXELinux - chain iPXE","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":21,"name":"PXELinux - chain iPXE UNDI","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":108,"name":"pxelinux_chainload","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":22,"name":"PXELinux - default local boot","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":23,"name":"PXELinux - default memdisk","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":109,"name":"pxelinux_discovery","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":24,"name":"PXELinux - global default","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":87,"name":"rancheros_cloudconfig","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":58,"name":"RancherOS - provision","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":25,"name":"RancherOS - PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":89,"name":"redhat_register","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":62,"name":"remote_execution_pull_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":96,"name":"remote_execution_ssh_keys","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":66,"name":"saltstack_minion","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":110,"name":"saltstack_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":111,"name":"schedule_reboot","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":118,"name":"UserData - default","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":119,"name":"UserData - open-vm-tools","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":26,"name":"WAIK - default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":37,"name":"Windows - default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":46,"name":"Windows - default iPXE","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":59,"name":"Windows - default provision","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":27,"name":"Windows - default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":112,"name":"Windows - network","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":64,"name":"Windows - peSetup.cmd","template_kind_id":8,"template_kind_name":"script","inherited":false},{"id":60,"name":"XenServer - default answerfile","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":38,"name":"XenServer - default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":28,"name":"XenServer - default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":113,"name":"yum_proxy","template_kind_id":null,"template_kind_name":null,"inherited":false}],"domains":[],"realms":[],"hostgroups":[],"organizations":[],"hosts_count":0,"parameters":[{"priority":20,"created_at":"2022-11-08 - 09:29:19 UTC","updated_at":"2022-11-08 09:29:19 UTC","id":4,"name":"my_param","parameter_type":"string","value":"my - value"},{"priority":20,"created_at":"2022-11-08 09:29:19 UTC","updated_at":"2022-11-08 - 09:29:19 UTC","id":5,"name":"my_param2","parameter_type":"string","value":"my - other value"},{"priority":20,"created_at":"2022-11-08 09:29:19 UTC","updated_at":"2022-11-08 - 09:29:19 UTC","id":6,"name":"my_param3","parameter_type":"array","value":["array","value"]}],"deprecations":{"environments":"Environments + 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":108,"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":109,"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":110,"name":"rancheros_cloudconfig","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":60,"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":111,"name":"redhat_register","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":64,"name":"remote_execution_pull_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":112,"name":"remote_execution_ssh_keys","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":113,"name":"saltstack_minion","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":114,"name":"saltstack_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":115,"name":"schedule_reboot","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":116,"name":"subscription_manager_setup","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":61,"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":125,"name":"Windows + default user data","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":117,"name":"Windows + network","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":66,"name":"Windows + peSetup.cmd","template_kind_id":8,"template_kind_name":"script","inherited":false},{"id":62,"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":118,"name":"yum_proxy","template_kind_id":null,"template_kind_name":null,"inherited":false}],"domains":[],"realms":[],"hostgroups":[],"organizations":[],"hosts_count":0,"parameters":[{"priority":20,"created_at":"2024-07-25 + 12:00:24 UTC","updated_at":"2024-07-25 12:00:24 UTC","id":4,"name":"my_param","parameter_type":"string","associated_type":"location","hidden_value?":false,"value":"my + value"},{"priority":20,"created_at":"2024-07-25 12:00:24 UTC","updated_at":"2024-07-25 + 12:00:24 UTC","id":5,"name":"my_param2","parameter_type":"string","associated_type":"location","hidden_value?":false,"value":"my + other value"},{"priority":20,"created_at":"2024-07-25 12:00:24 UTC","updated_at":"2024-07-25 + 12:00:24 UTC","id":6,"name":"my_param3","parameter_type":"array","associated_type":"location","hidden_value?":false,"value":["array","value"]}],"deprecations":{"environments":"Environments got deprecated from this endpoint."}}' headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive + Content-Length: + - '19773' 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''; @@ -256,13 +268,11 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.4.0 + - 3.11.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: @@ -288,22 +298,24 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/api/locations/8/parameters?per_page=4294967296 + uri: https://foreman.example.org/api/locations/11/parameters?per_page=4294967296 response: body: string: "{\n \"total\": 3,\n \"subtotal\": 3,\n \"page\": 1,\n \"per_page\": 4294967296,\n \"search\": null,\n \"sort\": {\n \"by\": null,\n \"order\": - null\n },\n \"results\": [{\"priority\":20,\"created_at\":\"2022-11-08 09:29:19 - UTC\",\"updated_at\":\"2022-11-08 09:29:19 UTC\",\"id\":4,\"name\":\"my_param\",\"parameter_type\":\"string\",\"value\":\"my - value\"},{\"priority\":20,\"created_at\":\"2022-11-08 09:29:19 UTC\",\"updated_at\":\"2022-11-08 - 09:29:19 UTC\",\"id\":5,\"name\":\"my_param2\",\"parameter_type\":\"string\",\"value\":\"my - other value\"},{\"priority\":20,\"created_at\":\"2022-11-08 09:29:19 UTC\",\"updated_at\":\"2022-11-08 - 09:29:19 UTC\",\"id\":6,\"name\":\"my_param3\",\"parameter_type\":\"array\",\"value\":[\"array\",\"value\"]}]\n}\n" + null\n },\n \"results\": [{\"priority\":20,\"created_at\":\"2024-07-25 12:00:24 + UTC\",\"updated_at\":\"2024-07-25 12:00:24 UTC\",\"id\":4,\"name\":\"my_param\",\"parameter_type\":\"string\",\"associated_type\":\"location\",\"hidden_value?\":false,\"value\":\"my + value\"},{\"priority\":20,\"created_at\":\"2024-07-25 12:00:24 UTC\",\"updated_at\":\"2024-07-25 + 12:00:24 UTC\",\"id\":5,\"name\":\"my_param2\",\"parameter_type\":\"string\",\"associated_type\":\"location\",\"hidden_value?\":false,\"value\":\"my + other value\"},{\"priority\":20,\"created_at\":\"2024-07-25 12:00:24 UTC\",\"updated_at\":\"2024-07-25 + 12:00:24 UTC\",\"id\":6,\"name\":\"my_param3\",\"parameter_type\":\"array\",\"associated_type\":\"location\",\"hidden_value?\":false,\"value\":[\"array\",\"value\"]}]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive + Content-Length: + - '817' 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''; @@ -313,17 +325,15 @@ interactions: Foreman_api_version: - '2' Foreman_current_location: - - 8; Test Location + - 11; Test Location Foreman_current_organization: - ; ANY Foreman_version: - - 3.4.0 + - 3.11.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: @@ -351,16 +361,18 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: DELETE - uri: https://foreman.example.org/api/locations/8/parameters/5 + uri: https://foreman.example.org/api/locations/11/parameters/5 response: body: - string: '{"id":5,"name":"my_param2","value":"my other value","reference_id":8,"created_at":"2022-11-08T09:29:19.973Z","updated_at":"2022-11-08T09:29:19.973Z","priority":20,"hidden_value":"*****","key_type":"string","searchable_value":"my + string: '{"id":5,"name":"my_param2","value":"my other value","reference_id":11,"created_at":"2024-07-25T12:00:24.079Z","updated_at":"2024-07-25T12:00:24.079Z","priority":20,"hidden_value":"*****","key_type":"string","searchable_value":"my other value"}' headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive + Content-Length: + - '243' 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''; @@ -370,17 +382,15 @@ interactions: Foreman_api_version: - '2' Foreman_current_location: - - 8; Test Location + - 11; Test Location Foreman_current_organization: - ; ANY Foreman_version: - - 3.4.0 + - 3.11.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: @@ -408,15 +418,17 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: DELETE - uri: https://foreman.example.org/api/locations/8/parameters/6 + uri: https://foreman.example.org/api/locations/11/parameters/6 response: body: - string: '{"id":6,"name":"my_param3","value":["array","value"],"reference_id":8,"created_at":"2022-11-08T09:29:19.997Z","updated_at":"2022-11-08T09:29:19.997Z","priority":20,"hidden_value":"*****","key_type":"array","searchable_value":"[\"array\",\"value\"]"}' + string: '{"id":6,"name":"my_param3","value":["array","value"],"reference_id":11,"created_at":"2024-07-25T12:00:24.123Z","updated_at":"2024-07-25T12:00:24.123Z","priority":20,"hidden_value":"*****","key_type":"array","searchable_value":"[\"array\",\"value\"]"}' headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive + Content-Length: + - '250' 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''; @@ -426,17 +438,15 @@ interactions: Foreman_api_version: - '2' Foreman_current_location: - - 8; Test Location + - 11; Test Location Foreman_current_organization: - ; ANY Foreman_version: - - 3.4.0 + - 3.11.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: diff --git a/tests/test_playbooks/fixtures/location-21.yml b/tests/test_playbooks/fixtures/location-21.yml index a11da5344..e2904cfbe 100644 --- a/tests/test_playbooks/fixtures/location-21.yml +++ b/tests/test_playbooks/fixtures/location-21.yml @@ -14,12 +14,14 @@ interactions: uri: https://foreman.example.org/api/status response: body: - string: '{"result":"ok","status":200,"version":"3.4.0","api_version":2}' + string: '{"result":"ok","status":200,"version":"3.11.0-develop","api_version":2}' headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive + Content-Length: + - '71' 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.4.0 + - 3.11.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: @@ -70,14 +70,16 @@ interactions: body: string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": 4294967296,\n \"search\": \"title=\\\"Test Location\\\"\",\n \"sort\": {\n - \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"ancestry\":null,\"parent_id\":null,\"parent_name\":null,\"created_at\":\"2022-11-08 - 09:29:18 UTC\",\"updated_at\":\"2022-11-08 09:29:18 UTC\",\"id\":8,\"name\":\"Test + \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"ancestry\":null,\"parent_id\":null,\"parent_name\":null,\"created_at\":\"2024-07-25 + 12:00:20 UTC\",\"updated_at\":\"2024-07-25 12:00:20 UTC\",\"id\":11,\"name\":\"Test Location\",\"title\":\"Test Location\",\"description\":null}]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive + Content-Length: + - '385' 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.4.0 + - 3.11.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: @@ -123,116 +123,126 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/api/locations/8 + uri: https://foreman.example.org/api/locations/11 response: body: - string: '{"select_all_types":[],"description":null,"created_at":"2022-11-08 - 09:29:18 UTC","updated_at":"2022-11-08 09:29:18 UTC","ancestry":null,"parent_id":null,"parent_name":null,"id":8,"name":"Test - Location","title":"Test Location","users":[],"smart_proxies":[],"subnets":[],"compute_resources":[],"media":[],"ptables":[{"description":null,"os_family":"Suse","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"AutoYaST entire - SCSI disk","id":120,"inherited":false},{"description":null,"os_family":"Suse","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"AutoYaST entire - virtual disk","id":121,"inherited":false},{"description":null,"os_family":"Suse","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"AutoYaST LVM","id":122,"inherited":false},{"description":null,"os_family":"Coreos","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"CoreOS default - fake","id":123,"inherited":false},{"description":null,"os_family":"Rancheros","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Empty","id":124,"inherited":false},{"description":null,"os_family":"Freebsd","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"FreeBSD default - fake","id":125,"inherited":false},{"description":null,"os_family":"Solaris","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Jumpstart default","id":126,"inherited":false},{"description":null,"os_family":"Solaris","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Jumpstart mirrored","id":127,"inherited":false},{"description":null,"os_family":"Junos","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Junos default - fake","id":128,"inherited":false},{"description":null,"os_family":"Redhat","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Kickstart custom","id":129,"inherited":false},{"description":null,"os_family":"Redhat","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Kickstart default","id":130,"inherited":false},{"description":null,"os_family":"Redhat","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Kickstart default - thin","id":131,"inherited":false},{"description":null,"os_family":"Redhat","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Kickstart dynamic","id":132,"inherited":false},{"description":null,"os_family":"NXOS","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"NX-OS default - fake","id":133,"inherited":false},{"description":null,"os_family":"Debian","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Preseed default","id":134,"inherited":false},{"description":"Preseed + string: '{"select_all_types":[],"description":null,"created_at":"2024-07-25 + 12:00:20 UTC","updated_at":"2024-07-25 12:00:20 UTC","ancestry":null,"parent_id":null,"parent_name":null,"id":11,"name":"Test + Location","title":"Test Location","users":[],"smart_proxies":[],"subnets":[],"compute_resources":[],"media":[],"ptables":[{"description":null,"os_family":"Suse","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"AutoYaST entire + SCSI disk","id":126,"inherited":false},{"description":null,"os_family":"Suse","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"AutoYaST entire + virtual disk","id":127,"inherited":false},{"description":null,"os_family":"Suse","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"AutoYaST LVM","id":128,"inherited":false},{"description":null,"os_family":"Coreos","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"CoreOS default + fake","id":129,"inherited":false},{"description":null,"os_family":"Rancheros","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"Empty","id":130,"inherited":false},{"description":null,"os_family":"Freebsd","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"FreeBSD default + fake","id":131,"inherited":false},{"description":null,"os_family":"Solaris","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"Jumpstart default","id":132,"inherited":false},{"description":null,"os_family":"Solaris","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"Jumpstart mirrored","id":133,"inherited":false},{"description":null,"os_family":"Junos","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"Junos default + fake","id":134,"inherited":false},{"description":null,"os_family":"Redhat","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"Kickstart custom","id":135,"inherited":false},{"description":null,"os_family":"Redhat","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"Kickstart default","id":136,"inherited":false},{"description":null,"os_family":"Redhat","created_at":"2024-04-22 + 11:15:26 UTC","updated_at":"2024-04-22 11:15:26 UTC","name":"Kickstart default + encrypted","id":152,"inherited":false},{"description":null,"os_family":"Redhat","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"Kickstart default + thin","id":137,"inherited":false},{"description":null,"os_family":"Redhat","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"Kickstart dynamic","id":138,"inherited":false},{"description":null,"os_family":"NXOS","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"NX-OS default + fake","id":139,"inherited":false},{"description":null,"os_family":"Debian","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"Preseed default","id":140,"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":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Preseed default - autoinstall","id":135,"inherited":false},{"description":null,"os_family":"Debian","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Preseed default - LVM","id":136,"inherited":false},{"description":null,"os_family":"Windows","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Windows default - GPT EFI partition table","id":138,"inherited":false},{"description":null,"os_family":"Windows","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Windows default - partition table","id":137,"inherited":false},{"description":null,"os_family":"Xenserver","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"XenServer default","id":139,"inherited":false}],"provisioning_templates":[{"id":47,"name":"Alterator - default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":31,"name":"Alterator - default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":12,"name":"Alterator - default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":65,"name":"alterator_pkglist","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":67,"name":"ansible_provisioning_callback","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":68,"name":"ansible_tower_callback_script","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":69,"name":"ansible_tower_callback_service","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":48,"name":"Atomic - Kickstart default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":49,"name":"AutoYaST - default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":40,"name":"AutoYaST + LVM. The snippet is automatically indented by 2 spaces. For reference:\nhttps://ubuntu.com/server/docs/install/autoinstall-reference","os_family":"Debian","created_at":"2024-04-15 + 09:11:37 UTC","updated_at":"2024-04-15 09:11:37 UTC","name":"Preseed default + autoinstall","id":141,"inherited":false},{"description":"Preseed Autoinstall + default storage snippet configures drives automatically\nwith LVM and disk + encryption.\nRequires Ubuntu >= 22.04.3.\nThe snippet is automatically indented + by 2 spaces. For reference:\nhttps://ubuntu.com/server/docs/install/autoinstall-reference","os_family":"Debian","created_at":"2024-04-22 + 11:15:26 UTC","updated_at":"2024-04-22 11:15:26 UTC","name":"Preseed default + autoinstall encrypted","id":153,"inherited":false},{"description":null,"os_family":"Debian","created_at":"2024-04-15 + 09:11:37 UTC","updated_at":"2024-04-15 09:11:37 UTC","name":"Preseed default + LVM","id":142,"inherited":false},{"description":null,"os_family":"Windows","created_at":"2024-04-15 + 09:11:37 UTC","updated_at":"2024-04-15 09:11:37 UTC","name":"Windows default + GPT EFI partition table","id":144,"inherited":false},{"description":null,"os_family":"Windows","created_at":"2024-04-15 + 09:11:37 UTC","updated_at":"2024-04-15 09:11:37 UTC","name":"Windows default + partition table","id":143,"inherited":false},{"description":null,"os_family":"Xenserver","created_at":"2024-04-15 + 09:11:37 UTC","updated_at":"2024-04-15 09:11:37 UTC","name":"XenServer default","id":145,"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":67,"name":"alterator_pkglist","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":68,"name":"ansible_provisioning_callback","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":69,"name":"ansible_tower_callback_script","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":70,"name":"ansible_tower_callback_service","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":51,"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":13,"name":"AutoYaST - default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":114,"name":"AutoYaST - default user data","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":50,"name":"AutoYaST - SLES default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":70,"name":"blacklist_kernel_modules","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":71,"name":"bmc_nic_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":72,"name":"built","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":73,"name":"chef_client","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":30,"name":"CloudInit - default","template_kind_id":12,"template_kind_name":"cloud-init","inherited":false},{"id":74,"name":"coreos_cloudconfig","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":51,"name":"CoreOS - provision","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":14,"name":"CoreOS - PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":75,"name":"create_users","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":76,"name":"csr_attributes.yaml","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":77,"name":"efibootmgr_netboot","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":78,"name":"eject_cdrom","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":79,"name":"epel","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":80,"name":"fips_packages","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":81,"name":"fix_hosts","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":32,"name":"FreeBSD - (mfsBSD) finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":52,"name":"FreeBSD - (mfsBSD) provision","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":15,"name":"FreeBSD - (mfsBSD) PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":82,"name":"freeipa_register","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":61,"name":"Global - Registration","template_kind_id":13,"template_kind_name":"registration","inherited":false},{"id":63,"name":"Grubby - default","template_kind_id":8,"template_kind_name":"script","inherited":false},{"id":83,"name":"http_proxy","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":84,"name":"insights","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":41,"name":"iPXE - default local boot","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":42,"name":"iPXE - global default","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":43,"name":"iPXE - intermediate script","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":53,"name":"Jumpstart - default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":33,"name":"Jumpstart + 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":52,"name":"AutoYaST + SLES default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":71,"name":"blacklist_kernel_modules","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":72,"name":"bmc_nic_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":73,"name":"built","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":74,"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":75,"name":"coreos_cloudconfig","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":53,"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":76,"name":"create_users","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":77,"name":"csr_attributes.yaml","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":149,"name":"disk_enc_clevis_tang","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":78,"name":"efibootmgr_netboot","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":79,"name":"eject_cdrom","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":80,"name":"epel","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":81,"name":"fips_packages","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":82,"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":54,"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":83,"name":"freeipa_register","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":63,"name":"Global + Registration","template_kind_id":13,"template_kind_name":"registration","inherited":false},{"id":65,"name":"Grubby + default","template_kind_id":8,"template_kind_name":"script","inherited":false},{"id":84,"name":"http_proxy","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":85,"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":55,"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":34,"name":"Junos - default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":54,"name":"Junos - default SLAX","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":29,"name":"Junos - default ZTP config","template_kind_id":10,"template_kind_name":"ZTP","inherited":false},{"id":55,"name":"Kickstart - default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":35,"name":"Kickstart - default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":44,"name":"Kickstart + 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":56,"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":57,"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":16,"name":"Kickstart - default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":115,"name":"Kickstart - default user data","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":86,"name":"kickstart_ifcfg_bonded_interface","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":85,"name":"kickstart_ifcfg_bond_interface","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":88,"name":"kickstart_ifcfg_generic_interface","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":90,"name":"kickstart_ifcfg_get_identifier_names","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":91,"name":"kickstart_kernel_options","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":92,"name":"kickstart_networking_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":56,"name":"Kickstart - oVirt-RHVH","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":17,"name":"Kickstart - oVirt-RHVH PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":39,"name":"Linux + 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":87,"name":"kickstart_ifcfg_bonded_interface","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":86,"name":"kickstart_ifcfg_bond_interface","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":88,"name":"kickstart_ifcfg_generic_interface","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":89,"name":"kickstart_ifcfg_get_identifier_names","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":90,"name":"kickstart_kernel_options","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":91,"name":"kickstart_networking_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":150,"name":"kickstart_network_interface","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":58,"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":92,"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":93,"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":94,"name":"pkg_manager","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":116,"name":"Preseed - Autoinstall cloud-init user data","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":57,"name":"Preseed - default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":36,"name":"Preseed - default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":45,"name":"Preseed - default iPXE","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":18,"name":"Preseed - default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":19,"name":"Preseed - default PXELinux Autoinstall","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":117,"name":"Preseed - default user data","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":95,"name":"preseed_kernel_options","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":97,"name":"preseed_netplan_generic_interface","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":98,"name":"preseed_netplan_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":99,"name":"preseed_networking_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":100,"name":"puppet.conf","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":102,"name":"puppetlabs_repo","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":101,"name":"puppet_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":103,"name":"pxegrub2_chainload","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":10,"name":"PXEGrub2 - default local boot","template_kind_id":4,"template_kind_name":"PXEGrub2","inherited":false},{"id":104,"name":"pxegrub2_discovery","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":11,"name":"PXEGrub2 + default POAP setup","template_kind_id":11,"template_kind_name":"POAP","inherited":false},{"id":94,"name":"pkg_manager","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":151,"name":"preseed_autoinstall_clevis_tang_wrapper","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":59,"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":95,"name":"preseed_kernel_options","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":96,"name":"preseed_kernel_options_autoinstall","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":97,"name":"preseed_netplan_generic_interface","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":98,"name":"preseed_netplan_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":99,"name":"preseed_networking_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":100,"name":"puppet.conf","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":102,"name":"puppetlabs_repo","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":101,"name":"puppet_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":103,"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":104,"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":105,"name":"pxegrub2_mac","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":106,"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":107,"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":20,"name":"PXELinux - chain iPXE","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":21,"name":"PXELinux - chain iPXE UNDI","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":108,"name":"pxelinux_chainload","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":22,"name":"PXELinux - default local boot","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":23,"name":"PXELinux - default memdisk","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":109,"name":"pxelinux_discovery","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":24,"name":"PXELinux - global default","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":87,"name":"rancheros_cloudconfig","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":58,"name":"RancherOS - provision","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":25,"name":"RancherOS - PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":89,"name":"redhat_register","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":62,"name":"remote_execution_pull_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":96,"name":"remote_execution_ssh_keys","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":66,"name":"saltstack_minion","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":110,"name":"saltstack_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":111,"name":"schedule_reboot","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":118,"name":"UserData - default","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":119,"name":"UserData - open-vm-tools","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":26,"name":"WAIK - default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":37,"name":"Windows - default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":46,"name":"Windows - default iPXE","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":59,"name":"Windows - default provision","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":27,"name":"Windows - default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":112,"name":"Windows - network","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":64,"name":"Windows - peSetup.cmd","template_kind_id":8,"template_kind_name":"script","inherited":false},{"id":60,"name":"XenServer - default answerfile","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":38,"name":"XenServer - default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":28,"name":"XenServer - default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":113,"name":"yum_proxy","template_kind_id":null,"template_kind_name":null,"inherited":false}],"domains":[],"realms":[],"hostgroups":[],"organizations":[],"hosts_count":0,"parameters":[{"priority":20,"created_at":"2022-11-08 - 09:29:19 UTC","updated_at":"2022-11-08 09:29:19 UTC","id":4,"name":"my_param","parameter_type":"string","value":"my + 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":108,"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":109,"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":110,"name":"rancheros_cloudconfig","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":60,"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":111,"name":"redhat_register","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":64,"name":"remote_execution_pull_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":112,"name":"remote_execution_ssh_keys","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":113,"name":"saltstack_minion","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":114,"name":"saltstack_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":115,"name":"schedule_reboot","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":116,"name":"subscription_manager_setup","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":61,"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":125,"name":"Windows + default user data","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":117,"name":"Windows + network","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":66,"name":"Windows + peSetup.cmd","template_kind_id":8,"template_kind_name":"script","inherited":false},{"id":62,"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":118,"name":"yum_proxy","template_kind_id":null,"template_kind_name":null,"inherited":false}],"domains":[],"realms":[],"hostgroups":[],"organizations":[],"hosts_count":0,"parameters":[{"priority":20,"created_at":"2024-07-25 + 12:00:24 UTC","updated_at":"2024-07-25 12:00:24 UTC","id":4,"name":"my_param","parameter_type":"string","associated_type":"location","hidden_value?":false,"value":"my value"}],"deprecations":{"environments":"Environments got deprecated from this endpoint."}}' headers: @@ -240,6 +250,8 @@ interactions: - max-age=0, private, must-revalidate Connection: - Keep-Alive + Content-Length: + - '19329' 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''; @@ -253,13 +265,11 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.4.0 + - 3.11.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: @@ -285,19 +295,21 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/api/locations/8/parameters?per_page=4294967296 + uri: https://foreman.example.org/api/locations/11/parameters?per_page=4294967296 response: body: string: "{\n \"total\": 1,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": 4294967296,\n \"search\": null,\n \"sort\": {\n \"by\": null,\n \"order\": - null\n },\n \"results\": [{\"priority\":20,\"created_at\":\"2022-11-08 09:29:19 - UTC\",\"updated_at\":\"2022-11-08 09:29:19 UTC\",\"id\":4,\"name\":\"my_param\",\"parameter_type\":\"string\",\"value\":\"my + null\n },\n \"results\": [{\"priority\":20,\"created_at\":\"2024-07-25 12:00:24 + UTC\",\"updated_at\":\"2024-07-25 12:00:24 UTC\",\"id\":4,\"name\":\"my_param\",\"parameter_type\":\"string\",\"associated_type\":\"location\",\"hidden_value?\":false,\"value\":\"my value\"}]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive + Content-Length: + - '373' 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''; @@ -307,17 +319,15 @@ interactions: Foreman_api_version: - '2' Foreman_current_location: - - 8; Test Location + - 11; Test Location Foreman_current_organization: - ; ANY Foreman_version: - - 3.4.0 + - 3.11.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: diff --git a/tests/test_playbooks/fixtures/location-22.yml b/tests/test_playbooks/fixtures/location-22.yml index 5cf4efa55..67c3ff4fb 100644 --- a/tests/test_playbooks/fixtures/location-22.yml +++ b/tests/test_playbooks/fixtures/location-22.yml @@ -14,12 +14,14 @@ interactions: uri: https://foreman.example.org/api/status response: body: - string: '{"result":"ok","status":200,"version":"3.4.0","api_version":2}' + string: '{"result":"ok","status":200,"version":"3.11.0-develop","api_version":2}' headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive + Content-Length: + - '71' 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.4.0 + - 3.11.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: @@ -70,14 +70,16 @@ interactions: body: string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": 4294967296,\n \"search\": \"title=\\\"Test Location\\\"\",\n \"sort\": {\n - \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"ancestry\":null,\"parent_id\":null,\"parent_name\":null,\"created_at\":\"2022-11-08 - 09:29:18 UTC\",\"updated_at\":\"2022-11-08 09:29:18 UTC\",\"id\":8,\"name\":\"Test + \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"ancestry\":null,\"parent_id\":null,\"parent_name\":null,\"created_at\":\"2024-07-25 + 12:00:20 UTC\",\"updated_at\":\"2024-07-25 12:00:20 UTC\",\"id\":11,\"name\":\"Test Location\",\"title\":\"Test Location\",\"description\":null}]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive + Content-Length: + - '385' 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.4.0 + - 3.11.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: @@ -123,116 +123,126 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/api/locations/8 + uri: https://foreman.example.org/api/locations/11 response: body: - string: '{"select_all_types":[],"description":null,"created_at":"2022-11-08 - 09:29:18 UTC","updated_at":"2022-11-08 09:29:18 UTC","ancestry":null,"parent_id":null,"parent_name":null,"id":8,"name":"Test - Location","title":"Test Location","users":[],"smart_proxies":[],"subnets":[],"compute_resources":[],"media":[],"ptables":[{"description":null,"os_family":"Suse","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"AutoYaST entire - SCSI disk","id":120,"inherited":false},{"description":null,"os_family":"Suse","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"AutoYaST entire - virtual disk","id":121,"inherited":false},{"description":null,"os_family":"Suse","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"AutoYaST LVM","id":122,"inherited":false},{"description":null,"os_family":"Coreos","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"CoreOS default - fake","id":123,"inherited":false},{"description":null,"os_family":"Rancheros","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Empty","id":124,"inherited":false},{"description":null,"os_family":"Freebsd","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"FreeBSD default - fake","id":125,"inherited":false},{"description":null,"os_family":"Solaris","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Jumpstart default","id":126,"inherited":false},{"description":null,"os_family":"Solaris","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Jumpstart mirrored","id":127,"inherited":false},{"description":null,"os_family":"Junos","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Junos default - fake","id":128,"inherited":false},{"description":null,"os_family":"Redhat","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Kickstart custom","id":129,"inherited":false},{"description":null,"os_family":"Redhat","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Kickstart default","id":130,"inherited":false},{"description":null,"os_family":"Redhat","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Kickstart default - thin","id":131,"inherited":false},{"description":null,"os_family":"Redhat","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Kickstart dynamic","id":132,"inherited":false},{"description":null,"os_family":"NXOS","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"NX-OS default - fake","id":133,"inherited":false},{"description":null,"os_family":"Debian","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Preseed default","id":134,"inherited":false},{"description":"Preseed + string: '{"select_all_types":[],"description":null,"created_at":"2024-07-25 + 12:00:20 UTC","updated_at":"2024-07-25 12:00:20 UTC","ancestry":null,"parent_id":null,"parent_name":null,"id":11,"name":"Test + Location","title":"Test Location","users":[],"smart_proxies":[],"subnets":[],"compute_resources":[],"media":[],"ptables":[{"description":null,"os_family":"Suse","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"AutoYaST entire + SCSI disk","id":126,"inherited":false},{"description":null,"os_family":"Suse","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"AutoYaST entire + virtual disk","id":127,"inherited":false},{"description":null,"os_family":"Suse","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"AutoYaST LVM","id":128,"inherited":false},{"description":null,"os_family":"Coreos","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"CoreOS default + fake","id":129,"inherited":false},{"description":null,"os_family":"Rancheros","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"Empty","id":130,"inherited":false},{"description":null,"os_family":"Freebsd","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"FreeBSD default + fake","id":131,"inherited":false},{"description":null,"os_family":"Solaris","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"Jumpstart default","id":132,"inherited":false},{"description":null,"os_family":"Solaris","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"Jumpstart mirrored","id":133,"inherited":false},{"description":null,"os_family":"Junos","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"Junos default + fake","id":134,"inherited":false},{"description":null,"os_family":"Redhat","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"Kickstart custom","id":135,"inherited":false},{"description":null,"os_family":"Redhat","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"Kickstart default","id":136,"inherited":false},{"description":null,"os_family":"Redhat","created_at":"2024-04-22 + 11:15:26 UTC","updated_at":"2024-04-22 11:15:26 UTC","name":"Kickstart default + encrypted","id":152,"inherited":false},{"description":null,"os_family":"Redhat","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"Kickstart default + thin","id":137,"inherited":false},{"description":null,"os_family":"Redhat","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"Kickstart dynamic","id":138,"inherited":false},{"description":null,"os_family":"NXOS","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"NX-OS default + fake","id":139,"inherited":false},{"description":null,"os_family":"Debian","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"Preseed default","id":140,"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":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Preseed default - autoinstall","id":135,"inherited":false},{"description":null,"os_family":"Debian","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Preseed default - LVM","id":136,"inherited":false},{"description":null,"os_family":"Windows","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Windows default - GPT EFI partition table","id":138,"inherited":false},{"description":null,"os_family":"Windows","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Windows default - partition table","id":137,"inherited":false},{"description":null,"os_family":"Xenserver","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"XenServer default","id":139,"inherited":false}],"provisioning_templates":[{"id":47,"name":"Alterator - default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":31,"name":"Alterator - default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":12,"name":"Alterator - default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":65,"name":"alterator_pkglist","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":67,"name":"ansible_provisioning_callback","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":68,"name":"ansible_tower_callback_script","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":69,"name":"ansible_tower_callback_service","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":48,"name":"Atomic - Kickstart default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":49,"name":"AutoYaST - default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":40,"name":"AutoYaST + LVM. The snippet is automatically indented by 2 spaces. For reference:\nhttps://ubuntu.com/server/docs/install/autoinstall-reference","os_family":"Debian","created_at":"2024-04-15 + 09:11:37 UTC","updated_at":"2024-04-15 09:11:37 UTC","name":"Preseed default + autoinstall","id":141,"inherited":false},{"description":"Preseed Autoinstall + default storage snippet configures drives automatically\nwith LVM and disk + encryption.\nRequires Ubuntu >= 22.04.3.\nThe snippet is automatically indented + by 2 spaces. For reference:\nhttps://ubuntu.com/server/docs/install/autoinstall-reference","os_family":"Debian","created_at":"2024-04-22 + 11:15:26 UTC","updated_at":"2024-04-22 11:15:26 UTC","name":"Preseed default + autoinstall encrypted","id":153,"inherited":false},{"description":null,"os_family":"Debian","created_at":"2024-04-15 + 09:11:37 UTC","updated_at":"2024-04-15 09:11:37 UTC","name":"Preseed default + LVM","id":142,"inherited":false},{"description":null,"os_family":"Windows","created_at":"2024-04-15 + 09:11:37 UTC","updated_at":"2024-04-15 09:11:37 UTC","name":"Windows default + GPT EFI partition table","id":144,"inherited":false},{"description":null,"os_family":"Windows","created_at":"2024-04-15 + 09:11:37 UTC","updated_at":"2024-04-15 09:11:37 UTC","name":"Windows default + partition table","id":143,"inherited":false},{"description":null,"os_family":"Xenserver","created_at":"2024-04-15 + 09:11:37 UTC","updated_at":"2024-04-15 09:11:37 UTC","name":"XenServer default","id":145,"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":67,"name":"alterator_pkglist","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":68,"name":"ansible_provisioning_callback","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":69,"name":"ansible_tower_callback_script","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":70,"name":"ansible_tower_callback_service","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":51,"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":13,"name":"AutoYaST - default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":114,"name":"AutoYaST - default user data","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":50,"name":"AutoYaST - SLES default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":70,"name":"blacklist_kernel_modules","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":71,"name":"bmc_nic_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":72,"name":"built","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":73,"name":"chef_client","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":30,"name":"CloudInit - default","template_kind_id":12,"template_kind_name":"cloud-init","inherited":false},{"id":74,"name":"coreos_cloudconfig","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":51,"name":"CoreOS - provision","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":14,"name":"CoreOS - PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":75,"name":"create_users","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":76,"name":"csr_attributes.yaml","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":77,"name":"efibootmgr_netboot","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":78,"name":"eject_cdrom","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":79,"name":"epel","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":80,"name":"fips_packages","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":81,"name":"fix_hosts","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":32,"name":"FreeBSD - (mfsBSD) finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":52,"name":"FreeBSD - (mfsBSD) provision","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":15,"name":"FreeBSD - (mfsBSD) PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":82,"name":"freeipa_register","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":61,"name":"Global - Registration","template_kind_id":13,"template_kind_name":"registration","inherited":false},{"id":63,"name":"Grubby - default","template_kind_id":8,"template_kind_name":"script","inherited":false},{"id":83,"name":"http_proxy","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":84,"name":"insights","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":41,"name":"iPXE - default local boot","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":42,"name":"iPXE - global default","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":43,"name":"iPXE - intermediate script","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":53,"name":"Jumpstart - default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":33,"name":"Jumpstart + 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":52,"name":"AutoYaST + SLES default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":71,"name":"blacklist_kernel_modules","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":72,"name":"bmc_nic_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":73,"name":"built","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":74,"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":75,"name":"coreos_cloudconfig","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":53,"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":76,"name":"create_users","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":77,"name":"csr_attributes.yaml","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":149,"name":"disk_enc_clevis_tang","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":78,"name":"efibootmgr_netboot","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":79,"name":"eject_cdrom","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":80,"name":"epel","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":81,"name":"fips_packages","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":82,"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":54,"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":83,"name":"freeipa_register","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":63,"name":"Global + Registration","template_kind_id":13,"template_kind_name":"registration","inherited":false},{"id":65,"name":"Grubby + default","template_kind_id":8,"template_kind_name":"script","inherited":false},{"id":84,"name":"http_proxy","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":85,"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":55,"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":34,"name":"Junos - default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":54,"name":"Junos - default SLAX","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":29,"name":"Junos - default ZTP config","template_kind_id":10,"template_kind_name":"ZTP","inherited":false},{"id":55,"name":"Kickstart - default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":35,"name":"Kickstart - default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":44,"name":"Kickstart + 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":56,"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":57,"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":16,"name":"Kickstart - default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":115,"name":"Kickstart - default user data","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":86,"name":"kickstart_ifcfg_bonded_interface","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":85,"name":"kickstart_ifcfg_bond_interface","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":88,"name":"kickstart_ifcfg_generic_interface","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":90,"name":"kickstart_ifcfg_get_identifier_names","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":91,"name":"kickstart_kernel_options","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":92,"name":"kickstart_networking_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":56,"name":"Kickstart - oVirt-RHVH","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":17,"name":"Kickstart - oVirt-RHVH PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":39,"name":"Linux + 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":87,"name":"kickstart_ifcfg_bonded_interface","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":86,"name":"kickstart_ifcfg_bond_interface","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":88,"name":"kickstart_ifcfg_generic_interface","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":89,"name":"kickstart_ifcfg_get_identifier_names","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":90,"name":"kickstart_kernel_options","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":91,"name":"kickstart_networking_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":150,"name":"kickstart_network_interface","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":58,"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":92,"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":93,"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":94,"name":"pkg_manager","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":116,"name":"Preseed - Autoinstall cloud-init user data","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":57,"name":"Preseed - default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":36,"name":"Preseed - default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":45,"name":"Preseed - default iPXE","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":18,"name":"Preseed - default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":19,"name":"Preseed - default PXELinux Autoinstall","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":117,"name":"Preseed - default user data","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":95,"name":"preseed_kernel_options","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":97,"name":"preseed_netplan_generic_interface","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":98,"name":"preseed_netplan_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":99,"name":"preseed_networking_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":100,"name":"puppet.conf","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":102,"name":"puppetlabs_repo","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":101,"name":"puppet_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":103,"name":"pxegrub2_chainload","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":10,"name":"PXEGrub2 - default local boot","template_kind_id":4,"template_kind_name":"PXEGrub2","inherited":false},{"id":104,"name":"pxegrub2_discovery","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":11,"name":"PXEGrub2 + default POAP setup","template_kind_id":11,"template_kind_name":"POAP","inherited":false},{"id":94,"name":"pkg_manager","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":151,"name":"preseed_autoinstall_clevis_tang_wrapper","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":59,"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":95,"name":"preseed_kernel_options","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":96,"name":"preseed_kernel_options_autoinstall","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":97,"name":"preseed_netplan_generic_interface","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":98,"name":"preseed_netplan_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":99,"name":"preseed_networking_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":100,"name":"puppet.conf","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":102,"name":"puppetlabs_repo","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":101,"name":"puppet_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":103,"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":104,"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":105,"name":"pxegrub2_mac","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":106,"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":107,"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":20,"name":"PXELinux - chain iPXE","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":21,"name":"PXELinux - chain iPXE UNDI","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":108,"name":"pxelinux_chainload","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":22,"name":"PXELinux - default local boot","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":23,"name":"PXELinux - default memdisk","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":109,"name":"pxelinux_discovery","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":24,"name":"PXELinux - global default","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":87,"name":"rancheros_cloudconfig","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":58,"name":"RancherOS - provision","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":25,"name":"RancherOS - PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":89,"name":"redhat_register","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":62,"name":"remote_execution_pull_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":96,"name":"remote_execution_ssh_keys","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":66,"name":"saltstack_minion","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":110,"name":"saltstack_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":111,"name":"schedule_reboot","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":118,"name":"UserData - default","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":119,"name":"UserData - open-vm-tools","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":26,"name":"WAIK - default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":37,"name":"Windows - default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":46,"name":"Windows - default iPXE","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":59,"name":"Windows - default provision","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":27,"name":"Windows - default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":112,"name":"Windows - network","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":64,"name":"Windows - peSetup.cmd","template_kind_id":8,"template_kind_name":"script","inherited":false},{"id":60,"name":"XenServer - default answerfile","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":38,"name":"XenServer - default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":28,"name":"XenServer - default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":113,"name":"yum_proxy","template_kind_id":null,"template_kind_name":null,"inherited":false}],"domains":[],"realms":[],"hostgroups":[],"organizations":[],"hosts_count":0,"parameters":[{"priority":20,"created_at":"2022-11-08 - 09:29:19 UTC","updated_at":"2022-11-08 09:29:19 UTC","id":4,"name":"my_param","parameter_type":"string","value":"my + 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":108,"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":109,"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":110,"name":"rancheros_cloudconfig","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":60,"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":111,"name":"redhat_register","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":64,"name":"remote_execution_pull_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":112,"name":"remote_execution_ssh_keys","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":113,"name":"saltstack_minion","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":114,"name":"saltstack_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":115,"name":"schedule_reboot","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":116,"name":"subscription_manager_setup","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":61,"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":125,"name":"Windows + default user data","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":117,"name":"Windows + network","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":66,"name":"Windows + peSetup.cmd","template_kind_id":8,"template_kind_name":"script","inherited":false},{"id":62,"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":118,"name":"yum_proxy","template_kind_id":null,"template_kind_name":null,"inherited":false}],"domains":[],"realms":[],"hostgroups":[],"organizations":[],"hosts_count":0,"parameters":[{"priority":20,"created_at":"2024-07-25 + 12:00:24 UTC","updated_at":"2024-07-25 12:00:24 UTC","id":4,"name":"my_param","parameter_type":"string","associated_type":"location","hidden_value?":false,"value":"my value"}],"deprecations":{"environments":"Environments got deprecated from this endpoint."}}' headers: @@ -240,6 +250,8 @@ interactions: - max-age=0, private, must-revalidate Connection: - Keep-Alive + Content-Length: + - '19329' 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''; @@ -253,13 +265,11 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.4.0 + - 3.11.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: @@ -285,19 +295,21 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/api/locations/8/parameters?per_page=4294967296 + uri: https://foreman.example.org/api/locations/11/parameters?per_page=4294967296 response: body: string: "{\n \"total\": 1,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": 4294967296,\n \"search\": null,\n \"sort\": {\n \"by\": null,\n \"order\": - null\n },\n \"results\": [{\"priority\":20,\"created_at\":\"2022-11-08 09:29:19 - UTC\",\"updated_at\":\"2022-11-08 09:29:19 UTC\",\"id\":4,\"name\":\"my_param\",\"parameter_type\":\"string\",\"value\":\"my + null\n },\n \"results\": [{\"priority\":20,\"created_at\":\"2024-07-25 12:00:24 + UTC\",\"updated_at\":\"2024-07-25 12:00:24 UTC\",\"id\":4,\"name\":\"my_param\",\"parameter_type\":\"string\",\"associated_type\":\"location\",\"hidden_value?\":false,\"value\":\"my value\"}]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive + Content-Length: + - '373' 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''; @@ -307,17 +319,15 @@ interactions: Foreman_api_version: - '2' Foreman_current_location: - - 8; Test Location + - 11; Test Location Foreman_current_organization: - ; ANY Foreman_version: - - 3.4.0 + - 3.11.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: @@ -345,16 +355,18 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: DELETE - uri: https://foreman.example.org/api/locations/8/parameters/4 + uri: https://foreman.example.org/api/locations/11/parameters/4 response: body: - string: '{"id":4,"name":"my_param","value":"my value","reference_id":8,"created_at":"2022-11-08T09:29:19.947Z","updated_at":"2022-11-08T09:29:19.947Z","priority":20,"hidden_value":"*****","key_type":"string","searchable_value":"my + string: '{"id":4,"name":"my_param","value":"my value","reference_id":11,"created_at":"2024-07-25T12:00:24.026Z","updated_at":"2024-07-25T12:00:24.026Z","priority":20,"hidden_value":"*****","key_type":"string","searchable_value":"my value"}' headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive + Content-Length: + - '230' 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''; @@ -364,17 +376,15 @@ interactions: Foreman_api_version: - '2' Foreman_current_location: - - 8; Test Location + - 11; Test Location Foreman_current_organization: - ; ANY Foreman_version: - - 3.4.0 + - 3.11.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: diff --git a/tests/test_playbooks/fixtures/location-23.yml b/tests/test_playbooks/fixtures/location-23.yml index 50a71bcfa..4d6f5711e 100644 --- a/tests/test_playbooks/fixtures/location-23.yml +++ b/tests/test_playbooks/fixtures/location-23.yml @@ -14,12 +14,14 @@ interactions: uri: https://foreman.example.org/api/status response: body: - string: '{"result":"ok","status":200,"version":"3.4.0","api_version":2}' + string: '{"result":"ok","status":200,"version":"3.11.0-develop","api_version":2}' headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive + Content-Length: + - '71' 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.4.0 + - 3.11.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: @@ -70,14 +70,16 @@ interactions: body: string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": 4294967296,\n \"search\": \"title=\\\"Test Location\\\"\",\n \"sort\": {\n - \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"ancestry\":null,\"parent_id\":null,\"parent_name\":null,\"created_at\":\"2022-11-08 - 09:29:18 UTC\",\"updated_at\":\"2022-11-08 09:29:18 UTC\",\"id\":8,\"name\":\"Test + \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"ancestry\":null,\"parent_id\":null,\"parent_name\":null,\"created_at\":\"2024-07-25 + 12:00:20 UTC\",\"updated_at\":\"2024-07-25 12:00:20 UTC\",\"id\":11,\"name\":\"Test Location\",\"title\":\"Test Location\",\"description\":null}]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive + Content-Length: + - '385' 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.4.0 + - 3.11.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: @@ -123,121 +123,133 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/api/locations/8 + uri: https://foreman.example.org/api/locations/11 response: body: - string: '{"select_all_types":[],"description":null,"created_at":"2022-11-08 - 09:29:18 UTC","updated_at":"2022-11-08 09:29:18 UTC","ancestry":null,"parent_id":null,"parent_name":null,"id":8,"name":"Test - Location","title":"Test Location","users":[],"smart_proxies":[],"subnets":[],"compute_resources":[],"media":[],"ptables":[{"description":null,"os_family":"Suse","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"AutoYaST entire - SCSI disk","id":120,"inherited":false},{"description":null,"os_family":"Suse","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"AutoYaST entire - virtual disk","id":121,"inherited":false},{"description":null,"os_family":"Suse","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"AutoYaST LVM","id":122,"inherited":false},{"description":null,"os_family":"Coreos","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"CoreOS default - fake","id":123,"inherited":false},{"description":null,"os_family":"Rancheros","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Empty","id":124,"inherited":false},{"description":null,"os_family":"Freebsd","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"FreeBSD default - fake","id":125,"inherited":false},{"description":null,"os_family":"Solaris","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Jumpstart default","id":126,"inherited":false},{"description":null,"os_family":"Solaris","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Jumpstart mirrored","id":127,"inherited":false},{"description":null,"os_family":"Junos","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Junos default - fake","id":128,"inherited":false},{"description":null,"os_family":"Redhat","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Kickstart custom","id":129,"inherited":false},{"description":null,"os_family":"Redhat","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Kickstart default","id":130,"inherited":false},{"description":null,"os_family":"Redhat","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Kickstart default - thin","id":131,"inherited":false},{"description":null,"os_family":"Redhat","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Kickstart dynamic","id":132,"inherited":false},{"description":null,"os_family":"NXOS","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"NX-OS default - fake","id":133,"inherited":false},{"description":null,"os_family":"Debian","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Preseed default","id":134,"inherited":false},{"description":"Preseed + string: '{"select_all_types":[],"description":null,"created_at":"2024-07-25 + 12:00:20 UTC","updated_at":"2024-07-25 12:00:20 UTC","ancestry":null,"parent_id":null,"parent_name":null,"id":11,"name":"Test + Location","title":"Test Location","users":[],"smart_proxies":[],"subnets":[],"compute_resources":[],"media":[],"ptables":[{"description":null,"os_family":"Suse","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"AutoYaST entire + SCSI disk","id":126,"inherited":false},{"description":null,"os_family":"Suse","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"AutoYaST entire + virtual disk","id":127,"inherited":false},{"description":null,"os_family":"Suse","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"AutoYaST LVM","id":128,"inherited":false},{"description":null,"os_family":"Coreos","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"CoreOS default + fake","id":129,"inherited":false},{"description":null,"os_family":"Rancheros","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"Empty","id":130,"inherited":false},{"description":null,"os_family":"Freebsd","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"FreeBSD default + fake","id":131,"inherited":false},{"description":null,"os_family":"Solaris","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"Jumpstart default","id":132,"inherited":false},{"description":null,"os_family":"Solaris","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"Jumpstart mirrored","id":133,"inherited":false},{"description":null,"os_family":"Junos","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"Junos default + fake","id":134,"inherited":false},{"description":null,"os_family":"Redhat","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"Kickstart custom","id":135,"inherited":false},{"description":null,"os_family":"Redhat","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"Kickstart default","id":136,"inherited":false},{"description":null,"os_family":"Redhat","created_at":"2024-04-22 + 11:15:26 UTC","updated_at":"2024-04-22 11:15:26 UTC","name":"Kickstart default + encrypted","id":152,"inherited":false},{"description":null,"os_family":"Redhat","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"Kickstart default + thin","id":137,"inherited":false},{"description":null,"os_family":"Redhat","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"Kickstart dynamic","id":138,"inherited":false},{"description":null,"os_family":"NXOS","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"NX-OS default + fake","id":139,"inherited":false},{"description":null,"os_family":"Debian","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"Preseed default","id":140,"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":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Preseed default - autoinstall","id":135,"inherited":false},{"description":null,"os_family":"Debian","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Preseed default - LVM","id":136,"inherited":false},{"description":null,"os_family":"Windows","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Windows default - GPT EFI partition table","id":138,"inherited":false},{"description":null,"os_family":"Windows","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Windows default - partition table","id":137,"inherited":false},{"description":null,"os_family":"Xenserver","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"XenServer default","id":139,"inherited":false}],"provisioning_templates":[{"id":47,"name":"Alterator - default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":31,"name":"Alterator - default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":12,"name":"Alterator - default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":65,"name":"alterator_pkglist","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":67,"name":"ansible_provisioning_callback","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":68,"name":"ansible_tower_callback_script","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":69,"name":"ansible_tower_callback_service","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":48,"name":"Atomic - Kickstart default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":49,"name":"AutoYaST - default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":40,"name":"AutoYaST + LVM. The snippet is automatically indented by 2 spaces. For reference:\nhttps://ubuntu.com/server/docs/install/autoinstall-reference","os_family":"Debian","created_at":"2024-04-15 + 09:11:37 UTC","updated_at":"2024-04-15 09:11:37 UTC","name":"Preseed default + autoinstall","id":141,"inherited":false},{"description":"Preseed Autoinstall + default storage snippet configures drives automatically\nwith LVM and disk + encryption.\nRequires Ubuntu >= 22.04.3.\nThe snippet is automatically indented + by 2 spaces. For reference:\nhttps://ubuntu.com/server/docs/install/autoinstall-reference","os_family":"Debian","created_at":"2024-04-22 + 11:15:26 UTC","updated_at":"2024-04-22 11:15:26 UTC","name":"Preseed default + autoinstall encrypted","id":153,"inherited":false},{"description":null,"os_family":"Debian","created_at":"2024-04-15 + 09:11:37 UTC","updated_at":"2024-04-15 09:11:37 UTC","name":"Preseed default + LVM","id":142,"inherited":false},{"description":null,"os_family":"Windows","created_at":"2024-04-15 + 09:11:37 UTC","updated_at":"2024-04-15 09:11:37 UTC","name":"Windows default + GPT EFI partition table","id":144,"inherited":false},{"description":null,"os_family":"Windows","created_at":"2024-04-15 + 09:11:37 UTC","updated_at":"2024-04-15 09:11:37 UTC","name":"Windows default + partition table","id":143,"inherited":false},{"description":null,"os_family":"Xenserver","created_at":"2024-04-15 + 09:11:37 UTC","updated_at":"2024-04-15 09:11:37 UTC","name":"XenServer default","id":145,"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":67,"name":"alterator_pkglist","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":68,"name":"ansible_provisioning_callback","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":69,"name":"ansible_tower_callback_script","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":70,"name":"ansible_tower_callback_service","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":51,"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":13,"name":"AutoYaST - default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":114,"name":"AutoYaST - default user data","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":50,"name":"AutoYaST - SLES default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":70,"name":"blacklist_kernel_modules","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":71,"name":"bmc_nic_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":72,"name":"built","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":73,"name":"chef_client","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":30,"name":"CloudInit - default","template_kind_id":12,"template_kind_name":"cloud-init","inherited":false},{"id":74,"name":"coreos_cloudconfig","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":51,"name":"CoreOS - provision","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":14,"name":"CoreOS - PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":75,"name":"create_users","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":76,"name":"csr_attributes.yaml","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":77,"name":"efibootmgr_netboot","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":78,"name":"eject_cdrom","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":79,"name":"epel","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":80,"name":"fips_packages","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":81,"name":"fix_hosts","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":32,"name":"FreeBSD - (mfsBSD) finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":52,"name":"FreeBSD - (mfsBSD) provision","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":15,"name":"FreeBSD - (mfsBSD) PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":82,"name":"freeipa_register","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":61,"name":"Global - Registration","template_kind_id":13,"template_kind_name":"registration","inherited":false},{"id":63,"name":"Grubby - default","template_kind_id":8,"template_kind_name":"script","inherited":false},{"id":83,"name":"http_proxy","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":84,"name":"insights","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":41,"name":"iPXE - default local boot","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":42,"name":"iPXE - global default","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":43,"name":"iPXE - intermediate script","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":53,"name":"Jumpstart - default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":33,"name":"Jumpstart + 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":52,"name":"AutoYaST + SLES default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":71,"name":"blacklist_kernel_modules","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":72,"name":"bmc_nic_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":73,"name":"built","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":74,"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":75,"name":"coreos_cloudconfig","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":53,"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":76,"name":"create_users","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":77,"name":"csr_attributes.yaml","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":149,"name":"disk_enc_clevis_tang","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":78,"name":"efibootmgr_netboot","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":79,"name":"eject_cdrom","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":80,"name":"epel","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":81,"name":"fips_packages","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":82,"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":54,"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":83,"name":"freeipa_register","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":63,"name":"Global + Registration","template_kind_id":13,"template_kind_name":"registration","inherited":false},{"id":65,"name":"Grubby + default","template_kind_id":8,"template_kind_name":"script","inherited":false},{"id":84,"name":"http_proxy","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":85,"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":55,"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":34,"name":"Junos - default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":54,"name":"Junos - default SLAX","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":29,"name":"Junos - default ZTP config","template_kind_id":10,"template_kind_name":"ZTP","inherited":false},{"id":55,"name":"Kickstart - default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":35,"name":"Kickstart - default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":44,"name":"Kickstart + 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":56,"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":57,"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":16,"name":"Kickstart - default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":115,"name":"Kickstart - default user data","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":86,"name":"kickstart_ifcfg_bonded_interface","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":85,"name":"kickstart_ifcfg_bond_interface","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":88,"name":"kickstart_ifcfg_generic_interface","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":90,"name":"kickstart_ifcfg_get_identifier_names","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":91,"name":"kickstart_kernel_options","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":92,"name":"kickstart_networking_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":56,"name":"Kickstart - oVirt-RHVH","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":17,"name":"Kickstart - oVirt-RHVH PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":39,"name":"Linux + 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":87,"name":"kickstart_ifcfg_bonded_interface","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":86,"name":"kickstart_ifcfg_bond_interface","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":88,"name":"kickstart_ifcfg_generic_interface","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":89,"name":"kickstart_ifcfg_get_identifier_names","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":90,"name":"kickstart_kernel_options","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":91,"name":"kickstart_networking_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":150,"name":"kickstart_network_interface","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":58,"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":92,"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":93,"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":94,"name":"pkg_manager","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":116,"name":"Preseed - Autoinstall cloud-init user data","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":57,"name":"Preseed - default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":36,"name":"Preseed - default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":45,"name":"Preseed - default iPXE","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":18,"name":"Preseed - default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":19,"name":"Preseed - default PXELinux Autoinstall","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":117,"name":"Preseed - default user data","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":95,"name":"preseed_kernel_options","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":97,"name":"preseed_netplan_generic_interface","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":98,"name":"preseed_netplan_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":99,"name":"preseed_networking_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":100,"name":"puppet.conf","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":102,"name":"puppetlabs_repo","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":101,"name":"puppet_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":103,"name":"pxegrub2_chainload","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":10,"name":"PXEGrub2 - default local boot","template_kind_id":4,"template_kind_name":"PXEGrub2","inherited":false},{"id":104,"name":"pxegrub2_discovery","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":11,"name":"PXEGrub2 + default POAP setup","template_kind_id":11,"template_kind_name":"POAP","inherited":false},{"id":94,"name":"pkg_manager","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":151,"name":"preseed_autoinstall_clevis_tang_wrapper","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":59,"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":95,"name":"preseed_kernel_options","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":96,"name":"preseed_kernel_options_autoinstall","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":97,"name":"preseed_netplan_generic_interface","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":98,"name":"preseed_netplan_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":99,"name":"preseed_networking_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":100,"name":"puppet.conf","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":102,"name":"puppetlabs_repo","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":101,"name":"puppet_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":103,"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":104,"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":105,"name":"pxegrub2_mac","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":106,"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":107,"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":20,"name":"PXELinux - chain iPXE","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":21,"name":"PXELinux - chain iPXE UNDI","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":108,"name":"pxelinux_chainload","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":22,"name":"PXELinux - default local boot","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":23,"name":"PXELinux - default memdisk","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":109,"name":"pxelinux_discovery","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":24,"name":"PXELinux - global default","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":87,"name":"rancheros_cloudconfig","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":58,"name":"RancherOS - provision","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":25,"name":"RancherOS - PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":89,"name":"redhat_register","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":62,"name":"remote_execution_pull_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":96,"name":"remote_execution_ssh_keys","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":66,"name":"saltstack_minion","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":110,"name":"saltstack_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":111,"name":"schedule_reboot","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":118,"name":"UserData - default","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":119,"name":"UserData - open-vm-tools","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":26,"name":"WAIK - default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":37,"name":"Windows - default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":46,"name":"Windows - default iPXE","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":59,"name":"Windows - default provision","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":27,"name":"Windows - default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":112,"name":"Windows - network","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":64,"name":"Windows - peSetup.cmd","template_kind_id":8,"template_kind_name":"script","inherited":false},{"id":60,"name":"XenServer - default answerfile","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":38,"name":"XenServer - default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":28,"name":"XenServer - default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":113,"name":"yum_proxy","template_kind_id":null,"template_kind_name":null,"inherited":false}],"domains":[],"realms":[],"hostgroups":[],"organizations":[],"hosts_count":0,"parameters":[],"deprecations":{"environments":"Environments + 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":108,"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":109,"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":110,"name":"rancheros_cloudconfig","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":60,"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":111,"name":"redhat_register","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":64,"name":"remote_execution_pull_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":112,"name":"remote_execution_ssh_keys","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":113,"name":"saltstack_minion","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":114,"name":"saltstack_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":115,"name":"schedule_reboot","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":116,"name":"subscription_manager_setup","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":61,"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":125,"name":"Windows + default user data","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":117,"name":"Windows + network","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":66,"name":"Windows + peSetup.cmd","template_kind_id":8,"template_kind_name":"script","inherited":false},{"id":62,"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":118,"name":"yum_proxy","template_kind_id":null,"template_kind_name":null,"inherited":false}],"domains":[],"realms":[],"hostgroups":[],"organizations":[],"hosts_count":0,"parameters":[],"deprecations":{"environments":"Environments got deprecated from this endpoint."}}' headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive + Content-Length: + - '19115' 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''; @@ -251,13 +263,11 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.4.0 + - 3.11.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: diff --git a/tests/test_playbooks/fixtures/location-24.yml b/tests/test_playbooks/fixtures/location-24.yml index a53f1c74f..17ce6b642 100644 --- a/tests/test_playbooks/fixtures/location-24.yml +++ b/tests/test_playbooks/fixtures/location-24.yml @@ -14,12 +14,14 @@ interactions: uri: https://foreman.example.org/api/status response: body: - string: '{"result":"ok","status":200,"version":"3.4.0","api_version":2}' + string: '{"result":"ok","status":200,"version":"3.11.0-develop","api_version":2}' headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive + Content-Length: + - '71' 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.4.0 + - 3.11.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: @@ -70,14 +70,16 @@ interactions: body: string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": 4294967296,\n \"search\": \"title=\\\"Test Location\\\"\",\n \"sort\": {\n - \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"ancestry\":null,\"parent_id\":null,\"parent_name\":null,\"created_at\":\"2022-11-08 - 09:29:18 UTC\",\"updated_at\":\"2022-11-08 09:29:18 UTC\",\"id\":8,\"name\":\"Test + \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"ancestry\":null,\"parent_id\":null,\"parent_name\":null,\"created_at\":\"2024-07-25 + 12:00:20 UTC\",\"updated_at\":\"2024-07-25 12:00:20 UTC\",\"id\":11,\"name\":\"Test Location\",\"title\":\"Test Location\",\"description\":null}]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive + Content-Length: + - '385' 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.4.0 + - 3.11.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 +125,18 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: DELETE - uri: https://foreman.example.org/api/locations/8 + uri: https://foreman.example.org/api/locations/11 response: body: - string: '{"id":8,"name":"Test Location","created_at":"2022-11-08T09:29:18.149Z","updated_at":"2022-11-08T09:29:18.149Z","ignore_types":[],"ancestry":null,"title":"Test + string: '{"id":11,"name":"Test Location","created_at":"2024-07-25T12:00:20.587Z","updated_at":"2024-07-25T12:00:20.587Z","ignore_types":[],"ancestry":null,"title":"Test Location","description":null}' headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive + Content-Length: + - '189' 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 +150,11 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.4.0 + - 3.11.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: diff --git a/tests/test_playbooks/fixtures/location-25.yml b/tests/test_playbooks/fixtures/location-25.yml index 938c01197..98e10a57c 100644 --- a/tests/test_playbooks/fixtures/location-25.yml +++ b/tests/test_playbooks/fixtures/location-25.yml @@ -14,12 +14,14 @@ interactions: uri: https://foreman.example.org/api/status response: body: - string: '{"result":"ok","status":200,"version":"3.4.0","api_version":2}' + string: '{"result":"ok","status":200,"version":"3.11.0-develop","api_version":2}' headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive + Content-Length: + - '71' 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.4.0 + - 3.11.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: @@ -76,6 +76,8 @@ interactions: - max-age=0, private, must-revalidate Connection: - Keep-Alive + Content-Length: + - '190' 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 +91,11 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.4.0 + - 3.11.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: @@ -132,6 +132,8 @@ interactions: - max-age=0, private, must-revalidate Connection: - Keep-Alive + Content-Length: + - '178' 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,13 +147,11 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.4.0 + - 3.11.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: diff --git a/tests/test_playbooks/fixtures/location-26.yml b/tests/test_playbooks/fixtures/location-26.yml new file mode 100644 index 000000000..c9f587671 --- /dev/null +++ b/tests/test_playbooks/fixtures/location-26.yml @@ -0,0 +1,286 @@ +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: '{"result":"ok","status":200,"version":"3.11.0-develop","api_version":2}' + headers: + Cache-Control: + - max-age=0, private, must-revalidate + Connection: + - Keep-Alive + Content-Length: + - '71' + 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.11.0-develop + Keep-Alive: + - timeout=15, max=100 + 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/api/locations?search=title%3D%22Test+Location%22&per_page=4294967296 + response: + body: + string: "{\n \"total\": 1,\n \"subtotal\": 0,\n \"page\": 1,\n \"per_page\": + 4294967296,\n \"search\": \"title=\\\"Test Location\\\"\",\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: + - '180' + 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.11.0-develop + Keep-Alive: + - timeout=15, max=99 + 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: '{"location": {"name": "Test Location", "description": "MyNewLocationWithADescription"}}' + headers: + Accept: + - application/json;version=2 + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '87' + Content-Type: + - application/json + User-Agent: + - apypie (https://github.com/Apipie/apypie) + method: POST + uri: https://foreman.example.org/api/locations + response: + body: + string: '{"select_all_types":[],"description":"MyNewLocationWithADescription","created_at":"2024-07-25 + 12:00:30 UTC","updated_at":"2024-07-25 12:00:30 UTC","ancestry":null,"parent_id":null,"parent_name":null,"id":12,"name":"Test + Location","title":"Test Location","users":[],"smart_proxies":[],"subnets":[],"compute_resources":[],"media":[],"ptables":[{"description":null,"os_family":"Suse","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"AutoYaST entire + virtual disk","id":127,"inherited":false},{"description":null,"os_family":"Solaris","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"Jumpstart default","id":132,"inherited":false},{"description":null,"os_family":"Solaris","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"Jumpstart mirrored","id":133,"inherited":false},{"description":null,"os_family":"Junos","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"Junos default + fake","id":134,"inherited":false},{"description":null,"os_family":"Suse","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"AutoYaST LVM","id":128,"inherited":false},{"description":null,"os_family":"Coreos","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"CoreOS default + fake","id":129,"inherited":false},{"description":null,"os_family":"Rancheros","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"Empty","id":130,"inherited":false},{"description":null,"os_family":"Suse","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"AutoYaST entire + SCSI disk","id":126,"inherited":false},{"description":null,"os_family":"Freebsd","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"FreeBSD default + fake","id":131,"inherited":false},{"description":null,"os_family":"Redhat","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"Kickstart custom","id":135,"inherited":false},{"description":null,"os_family":"Redhat","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"Kickstart default","id":136,"inherited":false},{"description":null,"os_family":"Redhat","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"Kickstart default + thin","id":137,"inherited":false},{"description":null,"os_family":"Redhat","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"Kickstart dynamic","id":138,"inherited":false},{"description":null,"os_family":"NXOS","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"NX-OS default + fake","id":139,"inherited":false},{"description":null,"os_family":"Debian","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"Preseed default","id":140,"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":"2024-04-15 + 09:11:37 UTC","updated_at":"2024-04-15 09:11:37 UTC","name":"Preseed default + autoinstall","id":141,"inherited":false},{"description":null,"os_family":"Debian","created_at":"2024-04-15 + 09:11:37 UTC","updated_at":"2024-04-15 09:11:37 UTC","name":"Preseed default + LVM","id":142,"inherited":false},{"description":null,"os_family":"Windows","created_at":"2024-04-15 + 09:11:37 UTC","updated_at":"2024-04-15 09:11:37 UTC","name":"Windows default + partition table","id":143,"inherited":false},{"description":null,"os_family":"Windows","created_at":"2024-04-15 + 09:11:37 UTC","updated_at":"2024-04-15 09:11:37 UTC","name":"Windows default + GPT EFI partition table","id":144,"inherited":false},{"description":null,"os_family":"Xenserver","created_at":"2024-04-15 + 09:11:37 UTC","updated_at":"2024-04-15 09:11:37 UTC","name":"XenServer default","id":145,"inherited":false},{"description":null,"os_family":"Redhat","created_at":"2024-04-22 + 11:15:26 UTC","updated_at":"2024-04-22 11:15:26 UTC","name":"Kickstart default + encrypted","id":152,"inherited":false},{"description":"Preseed Autoinstall + default storage snippet configures drives automatically\nwith LVM and disk + encryption.\nRequires Ubuntu >= 22.04.3.\nThe snippet is automatically indented + by 2 spaces. For reference:\nhttps://ubuntu.com/server/docs/install/autoinstall-reference","os_family":"Debian","created_at":"2024-04-22 + 11:15:26 UTC","updated_at":"2024-04-22 11:15:26 UTC","name":"Preseed default + autoinstall encrypted","id":153,"inherited":false}],"provisioning_templates":[{"id":1,"name":"NX-OS + default POAP setup","template_kind_id":11,"template_kind_name":"POAP","inherited":false},{"id":2,"name":"AutoYaST + default PXEGrub","template_kind_id":3,"template_kind_name":"PXEGrub","inherited":false},{"id":3,"name":"Jumpstart + default PXEGrub","template_kind_id":3,"template_kind_name":"PXEGrub","inherited":false},{"id":4,"name":"Kickstart + default PXEGrub","template_kind_id":3,"template_kind_name":"PXEGrub","inherited":false},{"id":5,"name":"PXEGrub + default local boot","template_kind_id":3,"template_kind_name":"PXEGrub","inherited":false},{"id":6,"name":"PXEGrub + global default","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":8,"name":"Kickstart + default PXEGrub2","template_kind_id":4,"template_kind_name":"PXEGrub2","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":11,"name":"PXEGrub2 + default local boot","template_kind_id":4,"template_kind_name":"PXEGrub2","inherited":false},{"id":12,"name":"PXEGrub2 + global default","template_kind_id":4,"template_kind_name":"PXEGrub2","inherited":false},{"id":13,"name":"Alterator + default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":14,"name":"AutoYaST + default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":15,"name":"CoreOS + PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":16,"name":"FreeBSD + (mfsBSD) PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":17,"name":"Kickstart + default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":18,"name":"Kickstart + oVirt-RHVH PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","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":79,"name":"eject_cdrom","template_kind_id":null,"template_kind_name":null,"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":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":25,"name":"PXELinux + global default","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":26,"name":"RancherOS + PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":27,"name":"WAIK + default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":28,"name":"Windows + default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":29,"name":"XenServer + default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":30,"name":"Junos + default ZTP config","template_kind_id":10,"template_kind_name":"ZTP","inherited":false},{"id":32,"name":"Alterator + default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":80,"name":"epel","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":34,"name":"Jumpstart + default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":35,"name":"Junos + default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":37,"name":"Preseed + default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":38,"name":"Windows + default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":39,"name":"XenServer + default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":40,"name":"Linux + host_init_config default","template_kind_id":1,"template_kind_name":"host_init_config","inherited":false},{"id":41,"name":"AutoYaST + default iPXE","template_kind_id":5,"template_kind_name":"iPXE","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":72,"name":"bmc_nic_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":44,"name":"iPXE + intermediate script","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":45,"name":"Kickstart + default iPXE","template_kind_id":5,"template_kind_name":"iPXE","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":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":81,"name":"fips_packages","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":50,"name":"Alterator + default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":51,"name":"AutoYaST + default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":52,"name":"AutoYaST + SLES default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":53,"name":"CoreOS + provision","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":54,"name":"FreeBSD + (mfsBSD) provision","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":55,"name":"Jumpstart + default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":56,"name":"Junos + default SLAX","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":70,"name":"ansible_tower_callback_service","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":59,"name":"Preseed + default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":60,"name":"RancherOS + provision","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":61,"name":"Windows + default provision","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":62,"name":"XenServer + default answerfile","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":63,"name":"Global + Registration","template_kind_id":13,"template_kind_name":"registration","inherited":false},{"id":64,"name":"remote_execution_pull_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":65,"name":"Grubby + default","template_kind_id":8,"template_kind_name":"script","inherited":false},{"id":66,"name":"Windows + peSetup.cmd","template_kind_id":8,"template_kind_name":"script","inherited":false},{"id":67,"name":"alterator_pkglist","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":68,"name":"ansible_provisioning_callback","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":69,"name":"ansible_tower_callback_script","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":71,"name":"blacklist_kernel_modules","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":73,"name":"built","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":74,"name":"chef_client","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":75,"name":"coreos_cloudconfig","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":76,"name":"create_users","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":77,"name":"csr_attributes.yaml","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":78,"name":"efibootmgr_netboot","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":82,"name":"fix_hosts","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":83,"name":"freeipa_register","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":84,"name":"http_proxy","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":85,"name":"insights","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":86,"name":"kickstart_ifcfg_bond_interface","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":87,"name":"kickstart_ifcfg_bonded_interface","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":88,"name":"kickstart_ifcfg_generic_interface","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":89,"name":"kickstart_ifcfg_get_identifier_names","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":91,"name":"kickstart_networking_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":92,"name":"kickstart_rhsm","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":93,"name":"ntp","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":95,"name":"preseed_kernel_options","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":96,"name":"preseed_kernel_options_autoinstall","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":97,"name":"preseed_netplan_generic_interface","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":98,"name":"preseed_netplan_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":99,"name":"preseed_networking_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":106,"name":"pxegrub_chainload","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":100,"name":"puppet.conf","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":101,"name":"puppet_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":102,"name":"puppetlabs_repo","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":103,"name":"pxegrub2_chainload","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":104,"name":"pxegrub2_discovery","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":105,"name":"pxegrub2_mac","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":107,"name":"pxegrub_discovery","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":108,"name":"pxelinux_chainload","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":109,"name":"pxelinux_discovery","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":110,"name":"rancheros_cloudconfig","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":124,"name":"UserData + open-vm-tools","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":125,"name":"Windows + default user data","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":112,"name":"remote_execution_ssh_keys","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":113,"name":"saltstack_minion","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":114,"name":"saltstack_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":115,"name":"schedule_reboot","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":117,"name":"Windows + network","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":118,"name":"yum_proxy","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":119,"name":"AutoYaST + default user data","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":120,"name":"Kickstart + default user data","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":122,"name":"Preseed + default user data","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":90,"name":"kickstart_kernel_options","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":36,"name":"Kickstart + default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":57,"name":"Kickstart + default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":58,"name":"Kickstart + oVirt-RHVH","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":149,"name":"disk_enc_clevis_tang","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":150,"name":"kickstart_network_interface","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":94,"name":"pkg_manager","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":151,"name":"preseed_autoinstall_clevis_tang_wrapper","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":111,"name":"redhat_register","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":116,"name":"subscription_manager_setup","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}],"domains":[],"realms":[],"hostgroups":[],"organizations":[],"hosts_count":0,"parameters":[],"deprecations":{"environments":"Environments + got deprecated from this endpoint."}}' + headers: + Cache-Control: + - max-age=0, private, must-revalidate + Connection: + - Keep-Alive + Content-Length: + - '19142' + 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.11.0-develop + Keep-Alive: + - timeout=15, max=98 + 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/location-27.yml b/tests/test_playbooks/fixtures/location-27.yml new file mode 100644 index 000000000..6a8807645 --- /dev/null +++ b/tests/test_playbooks/fixtures/location-27.yml @@ -0,0 +1,284 @@ +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: '{"result":"ok","status":200,"version":"3.11.0-develop","api_version":2}' + headers: + Cache-Control: + - max-age=0, private, must-revalidate + Connection: + - Keep-Alive + Content-Length: + - '71' + 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.11.0-develop + Keep-Alive: + - timeout=15, max=100 + 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/api/locations?search=title%3D%22Test+Location%22&per_page=4294967296 + response: + body: + string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": + 4294967296,\n \"search\": \"title=\\\"Test Location\\\"\",\n \"sort\": {\n + \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"ancestry\":null,\"parent_id\":null,\"parent_name\":null,\"created_at\":\"2024-07-25 + 12:00:30 UTC\",\"updated_at\":\"2024-07-25 12:00:30 UTC\",\"id\":12,\"name\":\"Test + Location\",\"title\":\"Test Location\",\"description\":\"MyNewLocationWithADescription\"}]\n}\n" + headers: + Cache-Control: + - max-age=0, private, must-revalidate + Connection: + - Keep-Alive + Content-Length: + - '412' + 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.11.0-develop + Keep-Alive: + - timeout=15, max=99 + 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/api/locations/12 + response: + body: + string: '{"select_all_types":[],"description":"MyNewLocationWithADescription","created_at":"2024-07-25 + 12:00:30 UTC","updated_at":"2024-07-25 12:00:30 UTC","ancestry":null,"parent_id":null,"parent_name":null,"id":12,"name":"Test + Location","title":"Test Location","users":[],"smart_proxies":[],"subnets":[],"compute_resources":[],"media":[],"ptables":[{"description":null,"os_family":"Suse","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"AutoYaST entire + SCSI disk","id":126,"inherited":false},{"description":null,"os_family":"Suse","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"AutoYaST entire + virtual disk","id":127,"inherited":false},{"description":null,"os_family":"Suse","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"AutoYaST LVM","id":128,"inherited":false},{"description":null,"os_family":"Coreos","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"CoreOS default + fake","id":129,"inherited":false},{"description":null,"os_family":"Rancheros","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"Empty","id":130,"inherited":false},{"description":null,"os_family":"Freebsd","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"FreeBSD default + fake","id":131,"inherited":false},{"description":null,"os_family":"Solaris","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"Jumpstart default","id":132,"inherited":false},{"description":null,"os_family":"Solaris","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"Jumpstart mirrored","id":133,"inherited":false},{"description":null,"os_family":"Junos","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"Junos default + fake","id":134,"inherited":false},{"description":null,"os_family":"Redhat","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"Kickstart custom","id":135,"inherited":false},{"description":null,"os_family":"Redhat","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"Kickstart default","id":136,"inherited":false},{"description":null,"os_family":"Redhat","created_at":"2024-04-22 + 11:15:26 UTC","updated_at":"2024-04-22 11:15:26 UTC","name":"Kickstart default + encrypted","id":152,"inherited":false},{"description":null,"os_family":"Redhat","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"Kickstart default + thin","id":137,"inherited":false},{"description":null,"os_family":"Redhat","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"Kickstart dynamic","id":138,"inherited":false},{"description":null,"os_family":"NXOS","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"NX-OS default + fake","id":139,"inherited":false},{"description":null,"os_family":"Debian","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"Preseed default","id":140,"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":"2024-04-15 + 09:11:37 UTC","updated_at":"2024-04-15 09:11:37 UTC","name":"Preseed default + autoinstall","id":141,"inherited":false},{"description":"Preseed Autoinstall + default storage snippet configures drives automatically\nwith LVM and disk + encryption.\nRequires Ubuntu >= 22.04.3.\nThe snippet is automatically indented + by 2 spaces. For reference:\nhttps://ubuntu.com/server/docs/install/autoinstall-reference","os_family":"Debian","created_at":"2024-04-22 + 11:15:26 UTC","updated_at":"2024-04-22 11:15:26 UTC","name":"Preseed default + autoinstall encrypted","id":153,"inherited":false},{"description":null,"os_family":"Debian","created_at":"2024-04-15 + 09:11:37 UTC","updated_at":"2024-04-15 09:11:37 UTC","name":"Preseed default + LVM","id":142,"inherited":false},{"description":null,"os_family":"Windows","created_at":"2024-04-15 + 09:11:37 UTC","updated_at":"2024-04-15 09:11:37 UTC","name":"Windows default + GPT EFI partition table","id":144,"inherited":false},{"description":null,"os_family":"Windows","created_at":"2024-04-15 + 09:11:37 UTC","updated_at":"2024-04-15 09:11:37 UTC","name":"Windows default + partition table","id":143,"inherited":false},{"description":null,"os_family":"Xenserver","created_at":"2024-04-15 + 09:11:37 UTC","updated_at":"2024-04-15 09:11:37 UTC","name":"XenServer default","id":145,"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":67,"name":"alterator_pkglist","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":68,"name":"ansible_provisioning_callback","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":69,"name":"ansible_tower_callback_script","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":70,"name":"ansible_tower_callback_service","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":51,"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":52,"name":"AutoYaST + SLES default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":71,"name":"blacklist_kernel_modules","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":72,"name":"bmc_nic_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":73,"name":"built","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":74,"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":75,"name":"coreos_cloudconfig","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":53,"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":76,"name":"create_users","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":77,"name":"csr_attributes.yaml","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":149,"name":"disk_enc_clevis_tang","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":78,"name":"efibootmgr_netboot","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":79,"name":"eject_cdrom","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":80,"name":"epel","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":81,"name":"fips_packages","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":82,"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":54,"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":83,"name":"freeipa_register","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":63,"name":"Global + Registration","template_kind_id":13,"template_kind_name":"registration","inherited":false},{"id":65,"name":"Grubby + default","template_kind_id":8,"template_kind_name":"script","inherited":false},{"id":84,"name":"http_proxy","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":85,"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":55,"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":56,"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":57,"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":87,"name":"kickstart_ifcfg_bonded_interface","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":86,"name":"kickstart_ifcfg_bond_interface","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":88,"name":"kickstart_ifcfg_generic_interface","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":89,"name":"kickstart_ifcfg_get_identifier_names","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":90,"name":"kickstart_kernel_options","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":91,"name":"kickstart_networking_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":150,"name":"kickstart_network_interface","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":58,"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":92,"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":93,"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":94,"name":"pkg_manager","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":151,"name":"preseed_autoinstall_clevis_tang_wrapper","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":59,"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":95,"name":"preseed_kernel_options","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":96,"name":"preseed_kernel_options_autoinstall","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":97,"name":"preseed_netplan_generic_interface","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":98,"name":"preseed_netplan_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":99,"name":"preseed_networking_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":100,"name":"puppet.conf","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":102,"name":"puppetlabs_repo","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":101,"name":"puppet_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":103,"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":104,"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":105,"name":"pxegrub2_mac","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":106,"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":107,"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":108,"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":109,"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":110,"name":"rancheros_cloudconfig","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":60,"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":111,"name":"redhat_register","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":64,"name":"remote_execution_pull_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":112,"name":"remote_execution_ssh_keys","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":113,"name":"saltstack_minion","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":114,"name":"saltstack_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":115,"name":"schedule_reboot","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":116,"name":"subscription_manager_setup","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":61,"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":125,"name":"Windows + default user data","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":117,"name":"Windows + network","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":66,"name":"Windows + peSetup.cmd","template_kind_id":8,"template_kind_name":"script","inherited":false},{"id":62,"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":118,"name":"yum_proxy","template_kind_id":null,"template_kind_name":null,"inherited":false}],"domains":[],"realms":[],"hostgroups":[],"organizations":[],"hosts_count":0,"parameters":[],"deprecations":{"environments":"Environments + got deprecated from this endpoint."}}' + headers: + Cache-Control: + - max-age=0, private, must-revalidate + Connection: + - Keep-Alive + Content-Length: + - '19142' + 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.11.0-develop + Keep-Alive: + - timeout=15, max=98 + 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/location-3.yml b/tests/test_playbooks/fixtures/location-3.yml index 27eaa2d8c..da5dfd0c3 100644 --- a/tests/test_playbooks/fixtures/location-3.yml +++ b/tests/test_playbooks/fixtures/location-3.yml @@ -14,12 +14,14 @@ interactions: uri: https://foreman.example.org/api/status response: body: - string: '{"result":"ok","status":200,"version":"3.4.0","api_version":2}' + string: '{"result":"ok","status":200,"version":"3.11.0-develop","api_version":2}' headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive + Content-Length: + - '71' 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.4.0 + - 3.11.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: @@ -71,14 +71,16 @@ interactions: string: "{\n \"total\": 3,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": 4294967296,\n \"search\": \"title=\\\"Test Location/Sub Location 1\\\"\",\n \ \"sort\": {\n \"by\": null,\n \"order\": null\n },\n \"results\": - [{\"ancestry\":\"4\",\"parent_id\":4,\"parent_name\":\"Test Location\",\"created_at\":\"2022-11-08 - 09:29:07 UTC\",\"updated_at\":\"2022-11-08 09:29:07 UTC\",\"id\":5,\"name\":\"Sub + [{\"ancestry\":\"7\",\"parent_id\":7,\"parent_name\":\"Test Location\",\"created_at\":\"2024-07-25 + 12:00:04 UTC\",\"updated_at\":\"2024-07-25 12:00:04 UTC\",\"id\":8,\"name\":\"Sub Location 1\",\"title\":\"Test Location/Sub Location 1\",\"description\":null}]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive + Content-Length: + - '422' 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''; @@ -92,13 +94,11 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.4.0 + - 3.11.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: @@ -124,116 +124,126 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/api/locations/5 + uri: https://foreman.example.org/api/locations/8 response: body: - string: '{"select_all_types":[],"description":null,"created_at":"2022-11-08 - 09:29:07 UTC","updated_at":"2022-11-08 09:29:07 UTC","ancestry":"4","parent_id":4,"parent_name":"Test - Location","id":5,"name":"Sub Location 1","title":"Test Location/Sub Location - 1","users":[],"smart_proxies":[],"subnets":[],"compute_resources":[],"media":[],"ptables":[{"description":null,"os_family":"Suse","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"AutoYaST entire - SCSI disk","id":120,"inherited":false},{"description":null,"os_family":"Suse","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"AutoYaST entire - virtual disk","id":121,"inherited":false},{"description":null,"os_family":"Suse","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"AutoYaST LVM","id":122,"inherited":false},{"description":null,"os_family":"Coreos","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"CoreOS default - fake","id":123,"inherited":false},{"description":null,"os_family":"Rancheros","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Empty","id":124,"inherited":false},{"description":null,"os_family":"Freebsd","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"FreeBSD default - fake","id":125,"inherited":false},{"description":null,"os_family":"Solaris","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Jumpstart default","id":126,"inherited":false},{"description":null,"os_family":"Solaris","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Jumpstart mirrored","id":127,"inherited":false},{"description":null,"os_family":"Junos","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Junos default - fake","id":128,"inherited":false},{"description":null,"os_family":"Redhat","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Kickstart custom","id":129,"inherited":false},{"description":null,"os_family":"Redhat","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Kickstart default","id":130,"inherited":false},{"description":null,"os_family":"Redhat","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Kickstart default - thin","id":131,"inherited":false},{"description":null,"os_family":"Redhat","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Kickstart dynamic","id":132,"inherited":false},{"description":null,"os_family":"NXOS","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"NX-OS default - fake","id":133,"inherited":false},{"description":null,"os_family":"Debian","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Preseed default","id":134,"inherited":false},{"description":"Preseed + string: '{"select_all_types":[],"description":null,"created_at":"2024-07-25 + 12:00:04 UTC","updated_at":"2024-07-25 12:00:04 UTC","ancestry":"7","parent_id":7,"parent_name":"Test + Location","id":8,"name":"Sub Location 1","title":"Test Location/Sub Location + 1","users":[],"smart_proxies":[],"subnets":[],"compute_resources":[],"media":[],"ptables":[{"description":null,"os_family":"Suse","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"AutoYaST entire + SCSI disk","id":126,"inherited":false},{"description":null,"os_family":"Suse","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"AutoYaST entire + virtual disk","id":127,"inherited":false},{"description":null,"os_family":"Suse","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"AutoYaST LVM","id":128,"inherited":false},{"description":null,"os_family":"Coreos","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"CoreOS default + fake","id":129,"inherited":false},{"description":null,"os_family":"Rancheros","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"Empty","id":130,"inherited":false},{"description":null,"os_family":"Freebsd","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"FreeBSD default + fake","id":131,"inherited":false},{"description":null,"os_family":"Solaris","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"Jumpstart default","id":132,"inherited":false},{"description":null,"os_family":"Solaris","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"Jumpstart mirrored","id":133,"inherited":false},{"description":null,"os_family":"Junos","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"Junos default + fake","id":134,"inherited":false},{"description":null,"os_family":"Redhat","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"Kickstart custom","id":135,"inherited":false},{"description":null,"os_family":"Redhat","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"Kickstart default","id":136,"inherited":false},{"description":null,"os_family":"Redhat","created_at":"2024-04-22 + 11:15:26 UTC","updated_at":"2024-04-22 11:15:26 UTC","name":"Kickstart default + encrypted","id":152,"inherited":false},{"description":null,"os_family":"Redhat","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"Kickstart default + thin","id":137,"inherited":false},{"description":null,"os_family":"Redhat","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"Kickstart dynamic","id":138,"inherited":false},{"description":null,"os_family":"NXOS","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"NX-OS default + fake","id":139,"inherited":false},{"description":null,"os_family":"Debian","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"Preseed default","id":140,"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":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Preseed default - autoinstall","id":135,"inherited":false},{"description":null,"os_family":"Debian","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Preseed default - LVM","id":136,"inherited":false},{"description":null,"os_family":"Windows","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Windows default - GPT EFI partition table","id":138,"inherited":false},{"description":null,"os_family":"Windows","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Windows default - partition table","id":137,"inherited":false},{"description":null,"os_family":"Xenserver","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"XenServer default","id":139,"inherited":false}],"provisioning_templates":[{"id":47,"name":"Alterator - default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":31,"name":"Alterator - default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":12,"name":"Alterator - default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":65,"name":"alterator_pkglist","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":67,"name":"ansible_provisioning_callback","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":68,"name":"ansible_tower_callback_script","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":69,"name":"ansible_tower_callback_service","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":48,"name":"Atomic - Kickstart default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":49,"name":"AutoYaST - default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":40,"name":"AutoYaST + LVM. The snippet is automatically indented by 2 spaces. For reference:\nhttps://ubuntu.com/server/docs/install/autoinstall-reference","os_family":"Debian","created_at":"2024-04-15 + 09:11:37 UTC","updated_at":"2024-04-15 09:11:37 UTC","name":"Preseed default + autoinstall","id":141,"inherited":false},{"description":"Preseed Autoinstall + default storage snippet configures drives automatically\nwith LVM and disk + encryption.\nRequires Ubuntu >= 22.04.3.\nThe snippet is automatically indented + by 2 spaces. For reference:\nhttps://ubuntu.com/server/docs/install/autoinstall-reference","os_family":"Debian","created_at":"2024-04-22 + 11:15:26 UTC","updated_at":"2024-04-22 11:15:26 UTC","name":"Preseed default + autoinstall encrypted","id":153,"inherited":false},{"description":null,"os_family":"Debian","created_at":"2024-04-15 + 09:11:37 UTC","updated_at":"2024-04-15 09:11:37 UTC","name":"Preseed default + LVM","id":142,"inherited":false},{"description":null,"os_family":"Windows","created_at":"2024-04-15 + 09:11:37 UTC","updated_at":"2024-04-15 09:11:37 UTC","name":"Windows default + GPT EFI partition table","id":144,"inherited":false},{"description":null,"os_family":"Windows","created_at":"2024-04-15 + 09:11:37 UTC","updated_at":"2024-04-15 09:11:37 UTC","name":"Windows default + partition table","id":143,"inherited":false},{"description":null,"os_family":"Xenserver","created_at":"2024-04-15 + 09:11:37 UTC","updated_at":"2024-04-15 09:11:37 UTC","name":"XenServer default","id":145,"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":67,"name":"alterator_pkglist","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":68,"name":"ansible_provisioning_callback","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":69,"name":"ansible_tower_callback_script","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":70,"name":"ansible_tower_callback_service","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":51,"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":13,"name":"AutoYaST - default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":114,"name":"AutoYaST - default user data","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":50,"name":"AutoYaST - SLES default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":70,"name":"blacklist_kernel_modules","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":71,"name":"bmc_nic_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":72,"name":"built","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":73,"name":"chef_client","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":30,"name":"CloudInit - default","template_kind_id":12,"template_kind_name":"cloud-init","inherited":false},{"id":74,"name":"coreos_cloudconfig","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":51,"name":"CoreOS - provision","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":14,"name":"CoreOS - PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":75,"name":"create_users","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":76,"name":"csr_attributes.yaml","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":77,"name":"efibootmgr_netboot","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":78,"name":"eject_cdrom","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":79,"name":"epel","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":80,"name":"fips_packages","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":81,"name":"fix_hosts","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":32,"name":"FreeBSD - (mfsBSD) finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":52,"name":"FreeBSD - (mfsBSD) provision","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":15,"name":"FreeBSD - (mfsBSD) PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":82,"name":"freeipa_register","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":61,"name":"Global - Registration","template_kind_id":13,"template_kind_name":"registration","inherited":false},{"id":63,"name":"Grubby - default","template_kind_id":8,"template_kind_name":"script","inherited":false},{"id":83,"name":"http_proxy","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":84,"name":"insights","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":41,"name":"iPXE - default local boot","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":42,"name":"iPXE - global default","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":43,"name":"iPXE - intermediate script","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":53,"name":"Jumpstart - default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":33,"name":"Jumpstart + 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":52,"name":"AutoYaST + SLES default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":71,"name":"blacklist_kernel_modules","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":72,"name":"bmc_nic_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":73,"name":"built","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":74,"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":75,"name":"coreos_cloudconfig","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":53,"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":76,"name":"create_users","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":77,"name":"csr_attributes.yaml","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":149,"name":"disk_enc_clevis_tang","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":78,"name":"efibootmgr_netboot","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":79,"name":"eject_cdrom","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":80,"name":"epel","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":81,"name":"fips_packages","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":82,"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":54,"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":83,"name":"freeipa_register","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":63,"name":"Global + Registration","template_kind_id":13,"template_kind_name":"registration","inherited":false},{"id":65,"name":"Grubby + default","template_kind_id":8,"template_kind_name":"script","inherited":false},{"id":84,"name":"http_proxy","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":85,"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":55,"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":34,"name":"Junos - default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":54,"name":"Junos - default SLAX","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":29,"name":"Junos - default ZTP config","template_kind_id":10,"template_kind_name":"ZTP","inherited":false},{"id":55,"name":"Kickstart - default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":35,"name":"Kickstart - default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":44,"name":"Kickstart + 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":56,"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":57,"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":16,"name":"Kickstart - default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":115,"name":"Kickstart - default user data","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":86,"name":"kickstart_ifcfg_bonded_interface","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":85,"name":"kickstart_ifcfg_bond_interface","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":88,"name":"kickstart_ifcfg_generic_interface","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":90,"name":"kickstart_ifcfg_get_identifier_names","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":91,"name":"kickstart_kernel_options","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":92,"name":"kickstart_networking_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":56,"name":"Kickstart - oVirt-RHVH","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":17,"name":"Kickstart - oVirt-RHVH PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":39,"name":"Linux + 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":87,"name":"kickstart_ifcfg_bonded_interface","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":86,"name":"kickstart_ifcfg_bond_interface","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":88,"name":"kickstart_ifcfg_generic_interface","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":89,"name":"kickstart_ifcfg_get_identifier_names","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":90,"name":"kickstart_kernel_options","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":91,"name":"kickstart_networking_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":150,"name":"kickstart_network_interface","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":58,"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":92,"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":93,"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":94,"name":"pkg_manager","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":116,"name":"Preseed - Autoinstall cloud-init user data","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":57,"name":"Preseed - default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":36,"name":"Preseed - default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":45,"name":"Preseed - default iPXE","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":18,"name":"Preseed - default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":19,"name":"Preseed - default PXELinux Autoinstall","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":117,"name":"Preseed - default user data","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":95,"name":"preseed_kernel_options","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":97,"name":"preseed_netplan_generic_interface","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":98,"name":"preseed_netplan_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":99,"name":"preseed_networking_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":100,"name":"puppet.conf","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":102,"name":"puppetlabs_repo","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":101,"name":"puppet_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":103,"name":"pxegrub2_chainload","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":10,"name":"PXEGrub2 - default local boot","template_kind_id":4,"template_kind_name":"PXEGrub2","inherited":false},{"id":104,"name":"pxegrub2_discovery","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":11,"name":"PXEGrub2 + default POAP setup","template_kind_id":11,"template_kind_name":"POAP","inherited":false},{"id":94,"name":"pkg_manager","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":151,"name":"preseed_autoinstall_clevis_tang_wrapper","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":59,"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":95,"name":"preseed_kernel_options","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":96,"name":"preseed_kernel_options_autoinstall","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":97,"name":"preseed_netplan_generic_interface","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":98,"name":"preseed_netplan_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":99,"name":"preseed_networking_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":100,"name":"puppet.conf","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":102,"name":"puppetlabs_repo","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":101,"name":"puppet_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":103,"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":104,"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":105,"name":"pxegrub2_mac","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":106,"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":107,"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":20,"name":"PXELinux - chain iPXE","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":21,"name":"PXELinux - chain iPXE UNDI","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":108,"name":"pxelinux_chainload","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":22,"name":"PXELinux - default local boot","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":23,"name":"PXELinux - default memdisk","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":109,"name":"pxelinux_discovery","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":24,"name":"PXELinux - global default","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":87,"name":"rancheros_cloudconfig","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":58,"name":"RancherOS - provision","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":25,"name":"RancherOS - PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":89,"name":"redhat_register","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":62,"name":"remote_execution_pull_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":96,"name":"remote_execution_ssh_keys","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":66,"name":"saltstack_minion","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":110,"name":"saltstack_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":111,"name":"schedule_reboot","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":118,"name":"UserData - default","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":119,"name":"UserData - open-vm-tools","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":26,"name":"WAIK - default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":37,"name":"Windows - default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":46,"name":"Windows - default iPXE","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":59,"name":"Windows - default provision","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":27,"name":"Windows - default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":112,"name":"Windows - network","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":64,"name":"Windows - peSetup.cmd","template_kind_id":8,"template_kind_name":"script","inherited":false},{"id":60,"name":"XenServer - default answerfile","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":38,"name":"XenServer - default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":28,"name":"XenServer - default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":113,"name":"yum_proxy","template_kind_id":null,"template_kind_name":null,"inherited":false}],"domains":[],"realms":[],"hostgroups":[],"organizations":[{"id":3,"name":"Test + 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":108,"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":109,"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":110,"name":"rancheros_cloudconfig","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":60,"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":111,"name":"redhat_register","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":64,"name":"remote_execution_pull_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":112,"name":"remote_execution_ssh_keys","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":113,"name":"saltstack_minion","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":114,"name":"saltstack_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":115,"name":"schedule_reboot","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":116,"name":"subscription_manager_setup","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":61,"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":125,"name":"Windows + default user data","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":117,"name":"Windows + network","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":66,"name":"Windows + peSetup.cmd","template_kind_id":8,"template_kind_name":"script","inherited":false},{"id":62,"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":118,"name":"yum_proxy","template_kind_id":null,"template_kind_name":null,"inherited":false}],"domains":[],"realms":[],"hostgroups":[],"organizations":[{"id":6,"name":"Test Organization","title":"Test Organization","description":"A test organization"}],"hosts_count":0,"parameters":[{}],"deprecations":{"environments":"Environments got deprecated from this endpoint."}}' headers: @@ -241,6 +251,8 @@ interactions: - max-age=0, private, must-revalidate Connection: - Keep-Alive + Content-Length: + - '19238' 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''; @@ -254,13 +266,11 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.4.0 + - 3.11.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: @@ -291,14 +301,16 @@ interactions: body: string: "{\n \"total\": 3,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": 4294967296,\n \"search\": \"title=\\\"Test Location\\\"\",\n \"sort\": {\n - \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"ancestry\":null,\"parent_id\":null,\"parent_name\":null,\"created_at\":\"2022-11-08 - 09:29:05 UTC\",\"updated_at\":\"2022-11-08 09:29:05 UTC\",\"id\":4,\"name\":\"Test + \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"ancestry\":null,\"parent_id\":null,\"parent_name\":null,\"created_at\":\"2024-07-25 + 12:00:01 UTC\",\"updated_at\":\"2024-07-25 12:00:01 UTC\",\"id\":7,\"name\":\"Test Location\",\"title\":\"Test Location\",\"description\":null}]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive + Content-Length: + - '384' 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''; @@ -312,13 +324,11 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.4.0 + - 3.11.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: @@ -349,14 +359,16 @@ interactions: body: 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\": [{\"ancestry\":null,\"parent_id\":null,\"parent_name\":null,\"created_at\":\"2022-11-08 - 09:29:04 UTC\",\"updated_at\":\"2022-11-08 09:29:04 UTC\",\"id\":3,\"name\":\"Test + {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"ancestry\":null,\"parent_id\":null,\"parent_name\":null,\"created_at\":\"2024-07-25 + 12:00:00 UTC\",\"updated_at\":\"2024-07-25 12:00:00 UTC\",\"id\":6,\"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: + - '412' 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''; @@ -370,13 +382,11 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.4.0 + - 3.11.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: diff --git a/tests/test_playbooks/fixtures/location-4.yml b/tests/test_playbooks/fixtures/location-4.yml index 91af3205f..7033796af 100644 --- a/tests/test_playbooks/fixtures/location-4.yml +++ b/tests/test_playbooks/fixtures/location-4.yml @@ -14,12 +14,14 @@ interactions: uri: https://foreman.example.org/api/status response: body: - string: '{"result":"ok","status":200,"version":"3.4.0","api_version":2}' + string: '{"result":"ok","status":200,"version":"3.11.0-develop","api_version":2}' headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive + Content-Length: + - '71' 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.4.0 + - 3.11.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: @@ -77,6 +77,8 @@ interactions: - max-age=0, private, must-revalidate Connection: - Keep-Alive + Content-Length: + - '210' 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''; @@ -90,13 +92,11 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.4.0 + - 3.11.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: @@ -128,14 +128,16 @@ interactions: string: "{\n \"total\": 3,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": 4294967296,\n \"search\": \"title=\\\"Test Location/Sub Location 1\\\"\",\n \ \"sort\": {\n \"by\": null,\n \"order\": null\n },\n \"results\": - [{\"ancestry\":\"4\",\"parent_id\":4,\"parent_name\":\"Test Location\",\"created_at\":\"2022-11-08 - 09:29:07 UTC\",\"updated_at\":\"2022-11-08 09:29:07 UTC\",\"id\":5,\"name\":\"Sub + [{\"ancestry\":\"7\",\"parent_id\":7,\"parent_name\":\"Test Location\",\"created_at\":\"2024-07-25 + 12:00:04 UTC\",\"updated_at\":\"2024-07-25 12:00:04 UTC\",\"id\":8,\"name\":\"Sub Location 1\",\"title\":\"Test Location/Sub Location 1\",\"description\":null}]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive + Content-Length: + - '422' 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,13 +151,11 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.4.0 + - 3.11.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: @@ -170,7 +170,7 @@ interactions: code: 200 message: OK - request: - body: '{"location": {"name": "Sub Location 2", "parent_id": 5}}' + body: '{"location": {"name": "Sub Location 2", "parent_id": 8}}' headers: Accept: - application/json;version=2 @@ -188,119 +188,131 @@ interactions: uri: https://foreman.example.org/api/locations response: body: - string: '{"select_all_types":[],"description":null,"created_at":"2022-11-08 - 09:29:09 UTC","updated_at":"2022-11-08 09:29:09 UTC","ancestry":"4/5","parent_id":5,"parent_name":"Test - Location/Sub Location 1","id":6,"name":"Sub Location 2","title":"Test Location/Sub - Location 1/Sub Location 2","users":[],"smart_proxies":[],"subnets":[],"compute_resources":[],"media":[],"ptables":[{"description":null,"os_family":"Suse","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"AutoYaST entire - SCSI disk","id":120,"inherited":false},{"description":null,"os_family":"Suse","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"AutoYaST entire - virtual disk","id":121,"inherited":false},{"description":null,"os_family":"Suse","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"AutoYaST LVM","id":122,"inherited":false},{"description":null,"os_family":"Coreos","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"CoreOS default - fake","id":123,"inherited":false},{"description":null,"os_family":"Rancheros","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Empty","id":124,"inherited":false},{"description":null,"os_family":"Freebsd","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"FreeBSD default - fake","id":125,"inherited":false},{"description":null,"os_family":"Solaris","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Jumpstart default","id":126,"inherited":false},{"description":null,"os_family":"Solaris","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Jumpstart mirrored","id":127,"inherited":false},{"description":null,"os_family":"Junos","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Junos default - fake","id":128,"inherited":false},{"description":null,"os_family":"Redhat","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Kickstart custom","id":129,"inherited":false},{"description":null,"os_family":"Redhat","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Kickstart default","id":130,"inherited":false},{"description":null,"os_family":"Redhat","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Kickstart default - thin","id":131,"inherited":false},{"description":null,"os_family":"Redhat","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Kickstart dynamic","id":132,"inherited":false},{"description":null,"os_family":"NXOS","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"NX-OS default - fake","id":133,"inherited":false},{"description":null,"os_family":"Debian","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Preseed default","id":134,"inherited":false},{"description":"Preseed + string: '{"select_all_types":[],"description":null,"created_at":"2024-07-25 + 12:00:07 UTC","updated_at":"2024-07-25 12:00:07 UTC","ancestry":"7/8","parent_id":8,"parent_name":"Test + Location/Sub Location 1","id":9,"name":"Sub Location 2","title":"Test Location/Sub + Location 1/Sub Location 2","users":[],"smart_proxies":[],"subnets":[],"compute_resources":[],"media":[],"ptables":[{"description":null,"os_family":"Suse","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"AutoYaST entire + virtual disk","id":127,"inherited":false},{"description":null,"os_family":"Solaris","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"Jumpstart default","id":132,"inherited":false},{"description":null,"os_family":"Solaris","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"Jumpstart mirrored","id":133,"inherited":false},{"description":null,"os_family":"Junos","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"Junos default + fake","id":134,"inherited":false},{"description":null,"os_family":"Suse","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"AutoYaST LVM","id":128,"inherited":false},{"description":null,"os_family":"Coreos","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"CoreOS default + fake","id":129,"inherited":false},{"description":null,"os_family":"Rancheros","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"Empty","id":130,"inherited":false},{"description":null,"os_family":"Suse","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"AutoYaST entire + SCSI disk","id":126,"inherited":false},{"description":null,"os_family":"Freebsd","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"FreeBSD default + fake","id":131,"inherited":false},{"description":null,"os_family":"Redhat","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"Kickstart custom","id":135,"inherited":false},{"description":null,"os_family":"Redhat","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"Kickstart default","id":136,"inherited":false},{"description":null,"os_family":"Redhat","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"Kickstart default + thin","id":137,"inherited":false},{"description":null,"os_family":"Redhat","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"Kickstart dynamic","id":138,"inherited":false},{"description":null,"os_family":"NXOS","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"NX-OS default + fake","id":139,"inherited":false},{"description":null,"os_family":"Debian","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"Preseed default","id":140,"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":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Preseed default - autoinstall","id":135,"inherited":false},{"description":null,"os_family":"Debian","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Preseed default - LVM","id":136,"inherited":false},{"description":null,"os_family":"Windows","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Windows default - partition table","id":137,"inherited":false},{"description":null,"os_family":"Windows","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Windows default - GPT EFI partition table","id":138,"inherited":false},{"description":null,"os_family":"Xenserver","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"XenServer default","id":139,"inherited":false}],"provisioning_templates":[{"id":1,"name":"NX-OS + LVM. The snippet is automatically indented by 2 spaces. For reference:\nhttps://ubuntu.com/server/docs/install/autoinstall-reference","os_family":"Debian","created_at":"2024-04-15 + 09:11:37 UTC","updated_at":"2024-04-15 09:11:37 UTC","name":"Preseed default + autoinstall","id":141,"inherited":false},{"description":null,"os_family":"Debian","created_at":"2024-04-15 + 09:11:37 UTC","updated_at":"2024-04-15 09:11:37 UTC","name":"Preseed default + LVM","id":142,"inherited":false},{"description":null,"os_family":"Windows","created_at":"2024-04-15 + 09:11:37 UTC","updated_at":"2024-04-15 09:11:37 UTC","name":"Windows default + partition table","id":143,"inherited":false},{"description":null,"os_family":"Windows","created_at":"2024-04-15 + 09:11:37 UTC","updated_at":"2024-04-15 09:11:37 UTC","name":"Windows default + GPT EFI partition table","id":144,"inherited":false},{"description":null,"os_family":"Xenserver","created_at":"2024-04-15 + 09:11:37 UTC","updated_at":"2024-04-15 09:11:37 UTC","name":"XenServer default","id":145,"inherited":false},{"description":null,"os_family":"Redhat","created_at":"2024-04-22 + 11:15:26 UTC","updated_at":"2024-04-22 11:15:26 UTC","name":"Kickstart default + encrypted","id":152,"inherited":false},{"description":"Preseed Autoinstall + default storage snippet configures drives automatically\nwith LVM and disk + encryption.\nRequires Ubuntu >= 22.04.3.\nThe snippet is automatically indented + by 2 spaces. For reference:\nhttps://ubuntu.com/server/docs/install/autoinstall-reference","os_family":"Debian","created_at":"2024-04-22 + 11:15:26 UTC","updated_at":"2024-04-22 11:15:26 UTC","name":"Preseed default + autoinstall encrypted","id":153,"inherited":false}],"provisioning_templates":[{"id":1,"name":"NX-OS default POAP setup","template_kind_id":11,"template_kind_name":"POAP","inherited":false},{"id":2,"name":"AutoYaST default PXEGrub","template_kind_id":3,"template_kind_name":"PXEGrub","inherited":false},{"id":3,"name":"Jumpstart default PXEGrub","template_kind_id":3,"template_kind_name":"PXEGrub","inherited":false},{"id":4,"name":"Kickstart default PXEGrub","template_kind_id":3,"template_kind_name":"PXEGrub","inherited":false},{"id":5,"name":"PXEGrub default local boot","template_kind_id":3,"template_kind_name":"PXEGrub","inherited":false},{"id":6,"name":"PXEGrub - global default","template_kind_id":3,"template_kind_name":"PXEGrub","inherited":false},{"id":49,"name":"AutoYaST - default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":7,"name":"AutoYaST + global default","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":8,"name":"Kickstart default PXEGrub2","template_kind_id":4,"template_kind_name":"PXEGrub2","inherited":false},{"id":9,"name":"Preseed - default PXEGrub2","template_kind_id":4,"template_kind_name":"PXEGrub2","inherited":false},{"id":10,"name":"PXEGrub2 - default local boot","template_kind_id":4,"template_kind_name":"PXEGrub2","inherited":false},{"id":11,"name":"PXEGrub2 - global default","template_kind_id":4,"template_kind_name":"PXEGrub2","inherited":false},{"id":12,"name":"Alterator - default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":50,"name":"AutoYaST - SLES default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":13,"name":"AutoYaST - default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":14,"name":"CoreOS - PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":15,"name":"FreeBSD - (mfsBSD) PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":16,"name":"Kickstart - default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":17,"name":"Kickstart - oVirt-RHVH PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":18,"name":"Preseed - default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":19,"name":"Preseed - default PXELinux Autoinstall","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":20,"name":"PXELinux - chain iPXE","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":21,"name":"PXELinux - chain iPXE UNDI","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":22,"name":"PXELinux - default local boot","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":23,"name":"PXELinux - default memdisk","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":24,"name":"PXELinux - global default","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":25,"name":"RancherOS - PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":26,"name":"WAIK - default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":27,"name":"Windows - default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":28,"name":"XenServer - default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":29,"name":"Junos - default ZTP config","template_kind_id":10,"template_kind_name":"ZTP","inherited":false},{"id":30,"name":"CloudInit - default","template_kind_id":12,"template_kind_name":"cloud-init","inherited":false},{"id":31,"name":"Alterator - default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":73,"name":"chef_client","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":32,"name":"FreeBSD - (mfsBSD) finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":33,"name":"Jumpstart - default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":34,"name":"Junos - default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":35,"name":"Kickstart - default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":36,"name":"Preseed - default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":37,"name":"Windows - default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":38,"name":"XenServer - default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":39,"name":"Linux - host_init_config default","template_kind_id":1,"template_kind_name":"host_init_config","inherited":false},{"id":40,"name":"AutoYaST - default iPXE","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":41,"name":"iPXE - default local boot","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":42,"name":"iPXE - global default","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":51,"name":"CoreOS - provision","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":43,"name":"iPXE - intermediate script","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":44,"name":"Kickstart - default iPXE","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":45,"name":"Preseed - default iPXE","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":46,"name":"Windows - default iPXE","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":47,"name":"Alterator - default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":48,"name":"Atomic - Kickstart default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":52,"name":"FreeBSD - (mfsBSD) provision","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":53,"name":"Jumpstart - default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":54,"name":"Junos - default SLAX","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":55,"name":"Kickstart - default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":56,"name":"Kickstart - oVirt-RHVH","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":57,"name":"Preseed - default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":58,"name":"RancherOS - provision","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":59,"name":"Windows - default provision","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":60,"name":"XenServer - default answerfile","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":61,"name":"Global - Registration","template_kind_id":13,"template_kind_name":"registration","inherited":false},{"id":62,"name":"remote_execution_pull_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":63,"name":"Grubby - default","template_kind_id":8,"template_kind_name":"script","inherited":false},{"id":64,"name":"Windows - peSetup.cmd","template_kind_id":8,"template_kind_name":"script","inherited":false},{"id":65,"name":"alterator_pkglist","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":66,"name":"saltstack_minion","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":67,"name":"ansible_provisioning_callback","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":68,"name":"ansible_tower_callback_script","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":69,"name":"ansible_tower_callback_service","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":70,"name":"blacklist_kernel_modules","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":71,"name":"bmc_nic_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":72,"name":"built","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":74,"name":"coreos_cloudconfig","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":75,"name":"create_users","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":76,"name":"csr_attributes.yaml","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":77,"name":"efibootmgr_netboot","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":78,"name":"eject_cdrom","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":79,"name":"epel","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":80,"name":"fips_packages","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":81,"name":"fix_hosts","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":82,"name":"freeipa_register","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":83,"name":"http_proxy","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":84,"name":"insights","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":85,"name":"kickstart_ifcfg_bond_interface","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":86,"name":"kickstart_ifcfg_bonded_interface","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":87,"name":"rancheros_cloudconfig","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":111,"name":"schedule_reboot","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":88,"name":"kickstart_ifcfg_generic_interface","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":89,"name":"redhat_register","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":90,"name":"kickstart_ifcfg_get_identifier_names","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":91,"name":"kickstart_kernel_options","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":92,"name":"kickstart_networking_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":93,"name":"ntp","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":94,"name":"pkg_manager","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":95,"name":"preseed_kernel_options","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":96,"name":"remote_execution_ssh_keys","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":97,"name":"preseed_netplan_generic_interface","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":98,"name":"preseed_netplan_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":99,"name":"preseed_networking_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":100,"name":"puppet.conf","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":101,"name":"puppet_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":102,"name":"puppetlabs_repo","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":103,"name":"pxegrub2_chainload","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":104,"name":"pxegrub2_discovery","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":105,"name":"pxegrub2_mac","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":106,"name":"pxegrub_chainload","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":107,"name":"pxegrub_discovery","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":108,"name":"pxelinux_chainload","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":109,"name":"pxelinux_discovery","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":110,"name":"saltstack_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":112,"name":"Windows - network","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":113,"name":"yum_proxy","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":114,"name":"AutoYaST - default user data","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":115,"name":"Kickstart - default user data","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":116,"name":"Preseed - Autoinstall cloud-init user data","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":117,"name":"Preseed - default user data","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":118,"name":"UserData - default","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":119,"name":"UserData - open-vm-tools","template_kind_id":9,"template_kind_name":"user_data","inherited":false}],"domains":[],"realms":[],"hostgroups":[],"organizations":[],"hosts_count":0,"parameters":[{}],"deprecations":{"environments":"Environments + 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":11,"name":"PXEGrub2 + default local boot","template_kind_id":4,"template_kind_name":"PXEGrub2","inherited":false},{"id":12,"name":"PXEGrub2 + global default","template_kind_id":4,"template_kind_name":"PXEGrub2","inherited":false},{"id":13,"name":"Alterator + default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":14,"name":"AutoYaST + default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":15,"name":"CoreOS + PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":16,"name":"FreeBSD + (mfsBSD) PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":17,"name":"Kickstart + default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":18,"name":"Kickstart + oVirt-RHVH PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","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":79,"name":"eject_cdrom","template_kind_id":null,"template_kind_name":null,"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":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":25,"name":"PXELinux + global default","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":26,"name":"RancherOS + PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":27,"name":"WAIK + default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":28,"name":"Windows + default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":29,"name":"XenServer + default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":30,"name":"Junos + default ZTP config","template_kind_id":10,"template_kind_name":"ZTP","inherited":false},{"id":32,"name":"Alterator + default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":80,"name":"epel","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":34,"name":"Jumpstart + default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":35,"name":"Junos + default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":37,"name":"Preseed + default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":38,"name":"Windows + default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":39,"name":"XenServer + default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":40,"name":"Linux + host_init_config default","template_kind_id":1,"template_kind_name":"host_init_config","inherited":false},{"id":41,"name":"AutoYaST + default iPXE","template_kind_id":5,"template_kind_name":"iPXE","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":72,"name":"bmc_nic_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":44,"name":"iPXE + intermediate script","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":45,"name":"Kickstart + default iPXE","template_kind_id":5,"template_kind_name":"iPXE","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":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":81,"name":"fips_packages","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":50,"name":"Alterator + default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":51,"name":"AutoYaST + default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":52,"name":"AutoYaST + SLES default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":53,"name":"CoreOS + provision","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":54,"name":"FreeBSD + (mfsBSD) provision","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":55,"name":"Jumpstart + default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":56,"name":"Junos + default SLAX","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":70,"name":"ansible_tower_callback_service","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":59,"name":"Preseed + default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":60,"name":"RancherOS + provision","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":61,"name":"Windows + default provision","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":62,"name":"XenServer + default answerfile","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":63,"name":"Global + Registration","template_kind_id":13,"template_kind_name":"registration","inherited":false},{"id":64,"name":"remote_execution_pull_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":65,"name":"Grubby + default","template_kind_id":8,"template_kind_name":"script","inherited":false},{"id":66,"name":"Windows + peSetup.cmd","template_kind_id":8,"template_kind_name":"script","inherited":false},{"id":67,"name":"alterator_pkglist","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":68,"name":"ansible_provisioning_callback","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":69,"name":"ansible_tower_callback_script","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":71,"name":"blacklist_kernel_modules","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":73,"name":"built","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":74,"name":"chef_client","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":75,"name":"coreos_cloudconfig","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":76,"name":"create_users","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":77,"name":"csr_attributes.yaml","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":78,"name":"efibootmgr_netboot","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":82,"name":"fix_hosts","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":83,"name":"freeipa_register","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":84,"name":"http_proxy","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":85,"name":"insights","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":86,"name":"kickstart_ifcfg_bond_interface","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":87,"name":"kickstart_ifcfg_bonded_interface","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":88,"name":"kickstart_ifcfg_generic_interface","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":89,"name":"kickstart_ifcfg_get_identifier_names","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":91,"name":"kickstart_networking_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":92,"name":"kickstart_rhsm","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":93,"name":"ntp","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":95,"name":"preseed_kernel_options","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":96,"name":"preseed_kernel_options_autoinstall","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":97,"name":"preseed_netplan_generic_interface","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":98,"name":"preseed_netplan_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":99,"name":"preseed_networking_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":106,"name":"pxegrub_chainload","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":100,"name":"puppet.conf","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":101,"name":"puppet_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":102,"name":"puppetlabs_repo","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":103,"name":"pxegrub2_chainload","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":104,"name":"pxegrub2_discovery","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":105,"name":"pxegrub2_mac","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":107,"name":"pxegrub_discovery","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":108,"name":"pxelinux_chainload","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":109,"name":"pxelinux_discovery","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":110,"name":"rancheros_cloudconfig","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":124,"name":"UserData + open-vm-tools","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":125,"name":"Windows + default user data","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":112,"name":"remote_execution_ssh_keys","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":113,"name":"saltstack_minion","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":114,"name":"saltstack_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":115,"name":"schedule_reboot","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":117,"name":"Windows + network","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":118,"name":"yum_proxy","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":119,"name":"AutoYaST + default user data","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":120,"name":"Kickstart + default user data","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":122,"name":"Preseed + default user data","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":90,"name":"kickstart_kernel_options","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":36,"name":"Kickstart + default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":57,"name":"Kickstart + default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":58,"name":"Kickstart + oVirt-RHVH","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":149,"name":"disk_enc_clevis_tang","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":150,"name":"kickstart_network_interface","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":94,"name":"pkg_manager","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":151,"name":"preseed_autoinstall_clevis_tang_wrapper","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":111,"name":"redhat_register","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":116,"name":"subscription_manager_setup","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}],"domains":[],"realms":[],"hostgroups":[],"organizations":[],"hosts_count":0,"parameters":[{}],"deprecations":{"environments":"Environments got deprecated from this endpoint."}}' headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive + Content-Length: + - '19171' 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''; @@ -314,13 +326,11 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.4.0 + - 3.11.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: diff --git a/tests/test_playbooks/fixtures/location-5.yml b/tests/test_playbooks/fixtures/location-5.yml index 37b5de06c..d56ec316d 100644 --- a/tests/test_playbooks/fixtures/location-5.yml +++ b/tests/test_playbooks/fixtures/location-5.yml @@ -14,12 +14,14 @@ interactions: uri: https://foreman.example.org/api/status response: body: - string: '{"result":"ok","status":200,"version":"3.4.0","api_version":2}' + string: '{"result":"ok","status":200,"version":"3.11.0-develop","api_version":2}' headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive + Content-Length: + - '71' 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.4.0 + - 3.11.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: @@ -71,15 +71,17 @@ interactions: string: "{\n \"total\": 4,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": 4294967296,\n \"search\": \"title=\\\"Test Location/Sub Location 1/Sub Location 2\\\"\",\n \"sort\": {\n \"by\": null,\n \"order\": null\n },\n \"results\": - [{\"ancestry\":\"4/5\",\"parent_id\":5,\"parent_name\":\"Test Location/Sub - Location 1\",\"created_at\":\"2022-11-08 09:29:09 UTC\",\"updated_at\":\"2022-11-08 - 09:29:09 UTC\",\"id\":6,\"name\":\"Sub Location 2\",\"title\":\"Test Location/Sub + [{\"ancestry\":\"7/8\",\"parent_id\":8,\"parent_name\":\"Test Location/Sub + Location 1\",\"created_at\":\"2024-07-25 12:00:07 UTC\",\"updated_at\":\"2024-07-25 + 12:00:07 UTC\",\"id\":9,\"name\":\"Sub Location 2\",\"title\":\"Test Location/Sub Location 1/Sub Location 2\",\"description\":null}]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive + Content-Length: + - '469' 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''; @@ -93,13 +95,11 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.4.0 + - 3.11.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,122 +125,134 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/api/locations/6 + uri: https://foreman.example.org/api/locations/9 response: body: - string: '{"select_all_types":[],"description":null,"created_at":"2022-11-08 - 09:29:09 UTC","updated_at":"2022-11-08 09:29:09 UTC","ancestry":"4/5","parent_id":5,"parent_name":"Test - Location/Sub Location 1","id":6,"name":"Sub Location 2","title":"Test Location/Sub - Location 1/Sub Location 2","users":[],"smart_proxies":[],"subnets":[],"compute_resources":[],"media":[],"ptables":[{"description":null,"os_family":"Suse","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"AutoYaST entire - SCSI disk","id":120,"inherited":false},{"description":null,"os_family":"Suse","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"AutoYaST entire - virtual disk","id":121,"inherited":false},{"description":null,"os_family":"Suse","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"AutoYaST LVM","id":122,"inherited":false},{"description":null,"os_family":"Coreos","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"CoreOS default - fake","id":123,"inherited":false},{"description":null,"os_family":"Rancheros","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Empty","id":124,"inherited":false},{"description":null,"os_family":"Freebsd","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"FreeBSD default - fake","id":125,"inherited":false},{"description":null,"os_family":"Solaris","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Jumpstart default","id":126,"inherited":false},{"description":null,"os_family":"Solaris","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Jumpstart mirrored","id":127,"inherited":false},{"description":null,"os_family":"Junos","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Junos default - fake","id":128,"inherited":false},{"description":null,"os_family":"Redhat","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Kickstart custom","id":129,"inherited":false},{"description":null,"os_family":"Redhat","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Kickstart default","id":130,"inherited":false},{"description":null,"os_family":"Redhat","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Kickstart default - thin","id":131,"inherited":false},{"description":null,"os_family":"Redhat","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Kickstart dynamic","id":132,"inherited":false},{"description":null,"os_family":"NXOS","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"NX-OS default - fake","id":133,"inherited":false},{"description":null,"os_family":"Debian","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Preseed default","id":134,"inherited":false},{"description":"Preseed + string: '{"select_all_types":[],"description":null,"created_at":"2024-07-25 + 12:00:07 UTC","updated_at":"2024-07-25 12:00:07 UTC","ancestry":"7/8","parent_id":8,"parent_name":"Test + Location/Sub Location 1","id":9,"name":"Sub Location 2","title":"Test Location/Sub + Location 1/Sub Location 2","users":[],"smart_proxies":[],"subnets":[],"compute_resources":[],"media":[],"ptables":[{"description":null,"os_family":"Suse","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"AutoYaST entire + SCSI disk","id":126,"inherited":false},{"description":null,"os_family":"Suse","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"AutoYaST entire + virtual disk","id":127,"inherited":false},{"description":null,"os_family":"Suse","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"AutoYaST LVM","id":128,"inherited":false},{"description":null,"os_family":"Coreos","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"CoreOS default + fake","id":129,"inherited":false},{"description":null,"os_family":"Rancheros","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"Empty","id":130,"inherited":false},{"description":null,"os_family":"Freebsd","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"FreeBSD default + fake","id":131,"inherited":false},{"description":null,"os_family":"Solaris","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"Jumpstart default","id":132,"inherited":false},{"description":null,"os_family":"Solaris","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"Jumpstart mirrored","id":133,"inherited":false},{"description":null,"os_family":"Junos","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"Junos default + fake","id":134,"inherited":false},{"description":null,"os_family":"Redhat","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"Kickstart custom","id":135,"inherited":false},{"description":null,"os_family":"Redhat","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"Kickstart default","id":136,"inherited":false},{"description":null,"os_family":"Redhat","created_at":"2024-04-22 + 11:15:26 UTC","updated_at":"2024-04-22 11:15:26 UTC","name":"Kickstart default + encrypted","id":152,"inherited":false},{"description":null,"os_family":"Redhat","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"Kickstart default + thin","id":137,"inherited":false},{"description":null,"os_family":"Redhat","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"Kickstart dynamic","id":138,"inherited":false},{"description":null,"os_family":"NXOS","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"NX-OS default + fake","id":139,"inherited":false},{"description":null,"os_family":"Debian","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"Preseed default","id":140,"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":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Preseed default - autoinstall","id":135,"inherited":false},{"description":null,"os_family":"Debian","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Preseed default - LVM","id":136,"inherited":false},{"description":null,"os_family":"Windows","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Windows default - GPT EFI partition table","id":138,"inherited":false},{"description":null,"os_family":"Windows","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Windows default - partition table","id":137,"inherited":false},{"description":null,"os_family":"Xenserver","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"XenServer default","id":139,"inherited":false}],"provisioning_templates":[{"id":47,"name":"Alterator - default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":31,"name":"Alterator - default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":12,"name":"Alterator - default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":65,"name":"alterator_pkglist","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":67,"name":"ansible_provisioning_callback","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":68,"name":"ansible_tower_callback_script","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":69,"name":"ansible_tower_callback_service","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":48,"name":"Atomic - Kickstart default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":49,"name":"AutoYaST - default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":40,"name":"AutoYaST + LVM. The snippet is automatically indented by 2 spaces. For reference:\nhttps://ubuntu.com/server/docs/install/autoinstall-reference","os_family":"Debian","created_at":"2024-04-15 + 09:11:37 UTC","updated_at":"2024-04-15 09:11:37 UTC","name":"Preseed default + autoinstall","id":141,"inherited":false},{"description":"Preseed Autoinstall + default storage snippet configures drives automatically\nwith LVM and disk + encryption.\nRequires Ubuntu >= 22.04.3.\nThe snippet is automatically indented + by 2 spaces. For reference:\nhttps://ubuntu.com/server/docs/install/autoinstall-reference","os_family":"Debian","created_at":"2024-04-22 + 11:15:26 UTC","updated_at":"2024-04-22 11:15:26 UTC","name":"Preseed default + autoinstall encrypted","id":153,"inherited":false},{"description":null,"os_family":"Debian","created_at":"2024-04-15 + 09:11:37 UTC","updated_at":"2024-04-15 09:11:37 UTC","name":"Preseed default + LVM","id":142,"inherited":false},{"description":null,"os_family":"Windows","created_at":"2024-04-15 + 09:11:37 UTC","updated_at":"2024-04-15 09:11:37 UTC","name":"Windows default + GPT EFI partition table","id":144,"inherited":false},{"description":null,"os_family":"Windows","created_at":"2024-04-15 + 09:11:37 UTC","updated_at":"2024-04-15 09:11:37 UTC","name":"Windows default + partition table","id":143,"inherited":false},{"description":null,"os_family":"Xenserver","created_at":"2024-04-15 + 09:11:37 UTC","updated_at":"2024-04-15 09:11:37 UTC","name":"XenServer default","id":145,"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":67,"name":"alterator_pkglist","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":68,"name":"ansible_provisioning_callback","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":69,"name":"ansible_tower_callback_script","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":70,"name":"ansible_tower_callback_service","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":51,"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":13,"name":"AutoYaST - default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":114,"name":"AutoYaST - default user data","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":50,"name":"AutoYaST - SLES default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":70,"name":"blacklist_kernel_modules","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":71,"name":"bmc_nic_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":72,"name":"built","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":73,"name":"chef_client","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":30,"name":"CloudInit - default","template_kind_id":12,"template_kind_name":"cloud-init","inherited":false},{"id":74,"name":"coreos_cloudconfig","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":51,"name":"CoreOS - provision","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":14,"name":"CoreOS - PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":75,"name":"create_users","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":76,"name":"csr_attributes.yaml","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":77,"name":"efibootmgr_netboot","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":78,"name":"eject_cdrom","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":79,"name":"epel","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":80,"name":"fips_packages","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":81,"name":"fix_hosts","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":32,"name":"FreeBSD - (mfsBSD) finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":52,"name":"FreeBSD - (mfsBSD) provision","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":15,"name":"FreeBSD - (mfsBSD) PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":82,"name":"freeipa_register","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":61,"name":"Global - Registration","template_kind_id":13,"template_kind_name":"registration","inherited":false},{"id":63,"name":"Grubby - default","template_kind_id":8,"template_kind_name":"script","inherited":false},{"id":83,"name":"http_proxy","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":84,"name":"insights","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":41,"name":"iPXE - default local boot","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":42,"name":"iPXE - global default","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":43,"name":"iPXE - intermediate script","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":53,"name":"Jumpstart - default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":33,"name":"Jumpstart + 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":52,"name":"AutoYaST + SLES default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":71,"name":"blacklist_kernel_modules","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":72,"name":"bmc_nic_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":73,"name":"built","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":74,"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":75,"name":"coreos_cloudconfig","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":53,"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":76,"name":"create_users","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":77,"name":"csr_attributes.yaml","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":149,"name":"disk_enc_clevis_tang","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":78,"name":"efibootmgr_netboot","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":79,"name":"eject_cdrom","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":80,"name":"epel","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":81,"name":"fips_packages","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":82,"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":54,"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":83,"name":"freeipa_register","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":63,"name":"Global + Registration","template_kind_id":13,"template_kind_name":"registration","inherited":false},{"id":65,"name":"Grubby + default","template_kind_id":8,"template_kind_name":"script","inherited":false},{"id":84,"name":"http_proxy","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":85,"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":55,"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":34,"name":"Junos - default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":54,"name":"Junos - default SLAX","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":29,"name":"Junos - default ZTP config","template_kind_id":10,"template_kind_name":"ZTP","inherited":false},{"id":55,"name":"Kickstart - default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":35,"name":"Kickstart - default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":44,"name":"Kickstart + 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":56,"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":57,"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":16,"name":"Kickstart - default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":115,"name":"Kickstart - default user data","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":86,"name":"kickstart_ifcfg_bonded_interface","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":85,"name":"kickstart_ifcfg_bond_interface","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":88,"name":"kickstart_ifcfg_generic_interface","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":90,"name":"kickstart_ifcfg_get_identifier_names","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":91,"name":"kickstart_kernel_options","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":92,"name":"kickstart_networking_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":56,"name":"Kickstart - oVirt-RHVH","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":17,"name":"Kickstart - oVirt-RHVH PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":39,"name":"Linux + 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":87,"name":"kickstart_ifcfg_bonded_interface","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":86,"name":"kickstart_ifcfg_bond_interface","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":88,"name":"kickstart_ifcfg_generic_interface","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":89,"name":"kickstart_ifcfg_get_identifier_names","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":90,"name":"kickstart_kernel_options","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":91,"name":"kickstart_networking_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":150,"name":"kickstart_network_interface","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":58,"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":92,"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":93,"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":94,"name":"pkg_manager","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":116,"name":"Preseed - Autoinstall cloud-init user data","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":57,"name":"Preseed - default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":36,"name":"Preseed - default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":45,"name":"Preseed - default iPXE","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":18,"name":"Preseed - default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":19,"name":"Preseed - default PXELinux Autoinstall","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":117,"name":"Preseed - default user data","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":95,"name":"preseed_kernel_options","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":97,"name":"preseed_netplan_generic_interface","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":98,"name":"preseed_netplan_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":99,"name":"preseed_networking_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":100,"name":"puppet.conf","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":102,"name":"puppetlabs_repo","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":101,"name":"puppet_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":103,"name":"pxegrub2_chainload","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":10,"name":"PXEGrub2 - default local boot","template_kind_id":4,"template_kind_name":"PXEGrub2","inherited":false},{"id":104,"name":"pxegrub2_discovery","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":11,"name":"PXEGrub2 + default POAP setup","template_kind_id":11,"template_kind_name":"POAP","inherited":false},{"id":94,"name":"pkg_manager","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":151,"name":"preseed_autoinstall_clevis_tang_wrapper","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":59,"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":95,"name":"preseed_kernel_options","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":96,"name":"preseed_kernel_options_autoinstall","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":97,"name":"preseed_netplan_generic_interface","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":98,"name":"preseed_netplan_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":99,"name":"preseed_networking_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":100,"name":"puppet.conf","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":102,"name":"puppetlabs_repo","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":101,"name":"puppet_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":103,"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":104,"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":105,"name":"pxegrub2_mac","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":106,"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":107,"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":20,"name":"PXELinux - chain iPXE","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":21,"name":"PXELinux - chain iPXE UNDI","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":108,"name":"pxelinux_chainload","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":22,"name":"PXELinux - default local boot","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":23,"name":"PXELinux - default memdisk","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":109,"name":"pxelinux_discovery","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":24,"name":"PXELinux - global default","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":87,"name":"rancheros_cloudconfig","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":58,"name":"RancherOS - provision","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":25,"name":"RancherOS - PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":89,"name":"redhat_register","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":62,"name":"remote_execution_pull_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":96,"name":"remote_execution_ssh_keys","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":66,"name":"saltstack_minion","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":110,"name":"saltstack_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":111,"name":"schedule_reboot","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":118,"name":"UserData - default","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":119,"name":"UserData - open-vm-tools","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":26,"name":"WAIK - default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":37,"name":"Windows - default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":46,"name":"Windows - default iPXE","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":59,"name":"Windows - default provision","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":27,"name":"Windows - default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":112,"name":"Windows - network","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":64,"name":"Windows - peSetup.cmd","template_kind_id":8,"template_kind_name":"script","inherited":false},{"id":60,"name":"XenServer - default answerfile","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":38,"name":"XenServer - default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":28,"name":"XenServer - default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":113,"name":"yum_proxy","template_kind_id":null,"template_kind_name":null,"inherited":false}],"domains":[],"realms":[],"hostgroups":[],"organizations":[],"hosts_count":0,"parameters":[{}],"deprecations":{"environments":"Environments + 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":108,"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":109,"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":110,"name":"rancheros_cloudconfig","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":60,"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":111,"name":"redhat_register","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":64,"name":"remote_execution_pull_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":112,"name":"remote_execution_ssh_keys","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":113,"name":"saltstack_minion","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":114,"name":"saltstack_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":115,"name":"schedule_reboot","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":116,"name":"subscription_manager_setup","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":61,"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":125,"name":"Windows + default user data","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":117,"name":"Windows + network","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":66,"name":"Windows + peSetup.cmd","template_kind_id":8,"template_kind_name":"script","inherited":false},{"id":62,"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":118,"name":"yum_proxy","template_kind_id":null,"template_kind_name":null,"inherited":false}],"domains":[],"realms":[],"hostgroups":[],"organizations":[],"hosts_count":0,"parameters":[{}],"deprecations":{"environments":"Environments got deprecated from this endpoint."}}' headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive + Content-Length: + - '19171' 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''; @@ -254,13 +266,11 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.4.0 + - 3.11.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: @@ -292,14 +302,16 @@ interactions: string: "{\n \"total\": 4,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": 4294967296,\n \"search\": \"title=\\\"Test Location/Sub Location 1\\\"\",\n \ \"sort\": {\n \"by\": null,\n \"order\": null\n },\n \"results\": - [{\"ancestry\":\"4\",\"parent_id\":4,\"parent_name\":\"Test Location\",\"created_at\":\"2022-11-08 - 09:29:07 UTC\",\"updated_at\":\"2022-11-08 09:29:07 UTC\",\"id\":5,\"name\":\"Sub + [{\"ancestry\":\"7\",\"parent_id\":7,\"parent_name\":\"Test Location\",\"created_at\":\"2024-07-25 + 12:00:04 UTC\",\"updated_at\":\"2024-07-25 12:00:04 UTC\",\"id\":8,\"name\":\"Sub Location 1\",\"title\":\"Test Location/Sub Location 1\",\"description\":null}]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive + Content-Length: + - '422' 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''; @@ -313,13 +325,11 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.4.0 + - 3.11.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: diff --git a/tests/test_playbooks/fixtures/location-6.yml b/tests/test_playbooks/fixtures/location-6.yml index 37b5de06c..d56ec316d 100644 --- a/tests/test_playbooks/fixtures/location-6.yml +++ b/tests/test_playbooks/fixtures/location-6.yml @@ -14,12 +14,14 @@ interactions: uri: https://foreman.example.org/api/status response: body: - string: '{"result":"ok","status":200,"version":"3.4.0","api_version":2}' + string: '{"result":"ok","status":200,"version":"3.11.0-develop","api_version":2}' headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive + Content-Length: + - '71' 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.4.0 + - 3.11.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: @@ -71,15 +71,17 @@ interactions: string: "{\n \"total\": 4,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": 4294967296,\n \"search\": \"title=\\\"Test Location/Sub Location 1/Sub Location 2\\\"\",\n \"sort\": {\n \"by\": null,\n \"order\": null\n },\n \"results\": - [{\"ancestry\":\"4/5\",\"parent_id\":5,\"parent_name\":\"Test Location/Sub - Location 1\",\"created_at\":\"2022-11-08 09:29:09 UTC\",\"updated_at\":\"2022-11-08 - 09:29:09 UTC\",\"id\":6,\"name\":\"Sub Location 2\",\"title\":\"Test Location/Sub + [{\"ancestry\":\"7/8\",\"parent_id\":8,\"parent_name\":\"Test Location/Sub + Location 1\",\"created_at\":\"2024-07-25 12:00:07 UTC\",\"updated_at\":\"2024-07-25 + 12:00:07 UTC\",\"id\":9,\"name\":\"Sub Location 2\",\"title\":\"Test Location/Sub Location 1/Sub Location 2\",\"description\":null}]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive + Content-Length: + - '469' 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''; @@ -93,13 +95,11 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.4.0 + - 3.11.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,122 +125,134 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/api/locations/6 + uri: https://foreman.example.org/api/locations/9 response: body: - string: '{"select_all_types":[],"description":null,"created_at":"2022-11-08 - 09:29:09 UTC","updated_at":"2022-11-08 09:29:09 UTC","ancestry":"4/5","parent_id":5,"parent_name":"Test - Location/Sub Location 1","id":6,"name":"Sub Location 2","title":"Test Location/Sub - Location 1/Sub Location 2","users":[],"smart_proxies":[],"subnets":[],"compute_resources":[],"media":[],"ptables":[{"description":null,"os_family":"Suse","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"AutoYaST entire - SCSI disk","id":120,"inherited":false},{"description":null,"os_family":"Suse","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"AutoYaST entire - virtual disk","id":121,"inherited":false},{"description":null,"os_family":"Suse","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"AutoYaST LVM","id":122,"inherited":false},{"description":null,"os_family":"Coreos","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"CoreOS default - fake","id":123,"inherited":false},{"description":null,"os_family":"Rancheros","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Empty","id":124,"inherited":false},{"description":null,"os_family":"Freebsd","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"FreeBSD default - fake","id":125,"inherited":false},{"description":null,"os_family":"Solaris","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Jumpstart default","id":126,"inherited":false},{"description":null,"os_family":"Solaris","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Jumpstart mirrored","id":127,"inherited":false},{"description":null,"os_family":"Junos","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Junos default - fake","id":128,"inherited":false},{"description":null,"os_family":"Redhat","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Kickstart custom","id":129,"inherited":false},{"description":null,"os_family":"Redhat","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Kickstart default","id":130,"inherited":false},{"description":null,"os_family":"Redhat","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Kickstart default - thin","id":131,"inherited":false},{"description":null,"os_family":"Redhat","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Kickstart dynamic","id":132,"inherited":false},{"description":null,"os_family":"NXOS","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"NX-OS default - fake","id":133,"inherited":false},{"description":null,"os_family":"Debian","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Preseed default","id":134,"inherited":false},{"description":"Preseed + string: '{"select_all_types":[],"description":null,"created_at":"2024-07-25 + 12:00:07 UTC","updated_at":"2024-07-25 12:00:07 UTC","ancestry":"7/8","parent_id":8,"parent_name":"Test + Location/Sub Location 1","id":9,"name":"Sub Location 2","title":"Test Location/Sub + Location 1/Sub Location 2","users":[],"smart_proxies":[],"subnets":[],"compute_resources":[],"media":[],"ptables":[{"description":null,"os_family":"Suse","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"AutoYaST entire + SCSI disk","id":126,"inherited":false},{"description":null,"os_family":"Suse","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"AutoYaST entire + virtual disk","id":127,"inherited":false},{"description":null,"os_family":"Suse","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"AutoYaST LVM","id":128,"inherited":false},{"description":null,"os_family":"Coreos","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"CoreOS default + fake","id":129,"inherited":false},{"description":null,"os_family":"Rancheros","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"Empty","id":130,"inherited":false},{"description":null,"os_family":"Freebsd","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"FreeBSD default + fake","id":131,"inherited":false},{"description":null,"os_family":"Solaris","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"Jumpstart default","id":132,"inherited":false},{"description":null,"os_family":"Solaris","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"Jumpstart mirrored","id":133,"inherited":false},{"description":null,"os_family":"Junos","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"Junos default + fake","id":134,"inherited":false},{"description":null,"os_family":"Redhat","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"Kickstart custom","id":135,"inherited":false},{"description":null,"os_family":"Redhat","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"Kickstart default","id":136,"inherited":false},{"description":null,"os_family":"Redhat","created_at":"2024-04-22 + 11:15:26 UTC","updated_at":"2024-04-22 11:15:26 UTC","name":"Kickstart default + encrypted","id":152,"inherited":false},{"description":null,"os_family":"Redhat","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"Kickstart default + thin","id":137,"inherited":false},{"description":null,"os_family":"Redhat","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"Kickstart dynamic","id":138,"inherited":false},{"description":null,"os_family":"NXOS","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"NX-OS default + fake","id":139,"inherited":false},{"description":null,"os_family":"Debian","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"Preseed default","id":140,"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":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Preseed default - autoinstall","id":135,"inherited":false},{"description":null,"os_family":"Debian","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Preseed default - LVM","id":136,"inherited":false},{"description":null,"os_family":"Windows","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Windows default - GPT EFI partition table","id":138,"inherited":false},{"description":null,"os_family":"Windows","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Windows default - partition table","id":137,"inherited":false},{"description":null,"os_family":"Xenserver","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"XenServer default","id":139,"inherited":false}],"provisioning_templates":[{"id":47,"name":"Alterator - default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":31,"name":"Alterator - default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":12,"name":"Alterator - default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":65,"name":"alterator_pkglist","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":67,"name":"ansible_provisioning_callback","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":68,"name":"ansible_tower_callback_script","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":69,"name":"ansible_tower_callback_service","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":48,"name":"Atomic - Kickstart default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":49,"name":"AutoYaST - default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":40,"name":"AutoYaST + LVM. The snippet is automatically indented by 2 spaces. For reference:\nhttps://ubuntu.com/server/docs/install/autoinstall-reference","os_family":"Debian","created_at":"2024-04-15 + 09:11:37 UTC","updated_at":"2024-04-15 09:11:37 UTC","name":"Preseed default + autoinstall","id":141,"inherited":false},{"description":"Preseed Autoinstall + default storage snippet configures drives automatically\nwith LVM and disk + encryption.\nRequires Ubuntu >= 22.04.3.\nThe snippet is automatically indented + by 2 spaces. For reference:\nhttps://ubuntu.com/server/docs/install/autoinstall-reference","os_family":"Debian","created_at":"2024-04-22 + 11:15:26 UTC","updated_at":"2024-04-22 11:15:26 UTC","name":"Preseed default + autoinstall encrypted","id":153,"inherited":false},{"description":null,"os_family":"Debian","created_at":"2024-04-15 + 09:11:37 UTC","updated_at":"2024-04-15 09:11:37 UTC","name":"Preseed default + LVM","id":142,"inherited":false},{"description":null,"os_family":"Windows","created_at":"2024-04-15 + 09:11:37 UTC","updated_at":"2024-04-15 09:11:37 UTC","name":"Windows default + GPT EFI partition table","id":144,"inherited":false},{"description":null,"os_family":"Windows","created_at":"2024-04-15 + 09:11:37 UTC","updated_at":"2024-04-15 09:11:37 UTC","name":"Windows default + partition table","id":143,"inherited":false},{"description":null,"os_family":"Xenserver","created_at":"2024-04-15 + 09:11:37 UTC","updated_at":"2024-04-15 09:11:37 UTC","name":"XenServer default","id":145,"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":67,"name":"alterator_pkglist","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":68,"name":"ansible_provisioning_callback","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":69,"name":"ansible_tower_callback_script","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":70,"name":"ansible_tower_callback_service","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":51,"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":13,"name":"AutoYaST - default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":114,"name":"AutoYaST - default user data","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":50,"name":"AutoYaST - SLES default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":70,"name":"blacklist_kernel_modules","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":71,"name":"bmc_nic_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":72,"name":"built","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":73,"name":"chef_client","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":30,"name":"CloudInit - default","template_kind_id":12,"template_kind_name":"cloud-init","inherited":false},{"id":74,"name":"coreos_cloudconfig","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":51,"name":"CoreOS - provision","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":14,"name":"CoreOS - PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":75,"name":"create_users","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":76,"name":"csr_attributes.yaml","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":77,"name":"efibootmgr_netboot","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":78,"name":"eject_cdrom","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":79,"name":"epel","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":80,"name":"fips_packages","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":81,"name":"fix_hosts","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":32,"name":"FreeBSD - (mfsBSD) finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":52,"name":"FreeBSD - (mfsBSD) provision","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":15,"name":"FreeBSD - (mfsBSD) PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":82,"name":"freeipa_register","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":61,"name":"Global - Registration","template_kind_id":13,"template_kind_name":"registration","inherited":false},{"id":63,"name":"Grubby - default","template_kind_id":8,"template_kind_name":"script","inherited":false},{"id":83,"name":"http_proxy","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":84,"name":"insights","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":41,"name":"iPXE - default local boot","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":42,"name":"iPXE - global default","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":43,"name":"iPXE - intermediate script","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":53,"name":"Jumpstart - default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":33,"name":"Jumpstart + 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":52,"name":"AutoYaST + SLES default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":71,"name":"blacklist_kernel_modules","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":72,"name":"bmc_nic_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":73,"name":"built","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":74,"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":75,"name":"coreos_cloudconfig","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":53,"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":76,"name":"create_users","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":77,"name":"csr_attributes.yaml","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":149,"name":"disk_enc_clevis_tang","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":78,"name":"efibootmgr_netboot","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":79,"name":"eject_cdrom","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":80,"name":"epel","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":81,"name":"fips_packages","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":82,"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":54,"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":83,"name":"freeipa_register","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":63,"name":"Global + Registration","template_kind_id":13,"template_kind_name":"registration","inherited":false},{"id":65,"name":"Grubby + default","template_kind_id":8,"template_kind_name":"script","inherited":false},{"id":84,"name":"http_proxy","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":85,"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":55,"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":34,"name":"Junos - default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":54,"name":"Junos - default SLAX","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":29,"name":"Junos - default ZTP config","template_kind_id":10,"template_kind_name":"ZTP","inherited":false},{"id":55,"name":"Kickstart - default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":35,"name":"Kickstart - default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":44,"name":"Kickstart + 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":56,"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":57,"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":16,"name":"Kickstart - default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":115,"name":"Kickstart - default user data","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":86,"name":"kickstart_ifcfg_bonded_interface","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":85,"name":"kickstart_ifcfg_bond_interface","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":88,"name":"kickstart_ifcfg_generic_interface","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":90,"name":"kickstart_ifcfg_get_identifier_names","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":91,"name":"kickstart_kernel_options","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":92,"name":"kickstart_networking_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":56,"name":"Kickstart - oVirt-RHVH","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":17,"name":"Kickstart - oVirt-RHVH PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":39,"name":"Linux + 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":87,"name":"kickstart_ifcfg_bonded_interface","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":86,"name":"kickstart_ifcfg_bond_interface","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":88,"name":"kickstart_ifcfg_generic_interface","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":89,"name":"kickstart_ifcfg_get_identifier_names","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":90,"name":"kickstart_kernel_options","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":91,"name":"kickstart_networking_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":150,"name":"kickstart_network_interface","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":58,"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":92,"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":93,"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":94,"name":"pkg_manager","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":116,"name":"Preseed - Autoinstall cloud-init user data","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":57,"name":"Preseed - default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":36,"name":"Preseed - default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":45,"name":"Preseed - default iPXE","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":18,"name":"Preseed - default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":19,"name":"Preseed - default PXELinux Autoinstall","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":117,"name":"Preseed - default user data","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":95,"name":"preseed_kernel_options","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":97,"name":"preseed_netplan_generic_interface","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":98,"name":"preseed_netplan_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":99,"name":"preseed_networking_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":100,"name":"puppet.conf","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":102,"name":"puppetlabs_repo","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":101,"name":"puppet_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":103,"name":"pxegrub2_chainload","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":10,"name":"PXEGrub2 - default local boot","template_kind_id":4,"template_kind_name":"PXEGrub2","inherited":false},{"id":104,"name":"pxegrub2_discovery","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":11,"name":"PXEGrub2 + default POAP setup","template_kind_id":11,"template_kind_name":"POAP","inherited":false},{"id":94,"name":"pkg_manager","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":151,"name":"preseed_autoinstall_clevis_tang_wrapper","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":59,"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":95,"name":"preseed_kernel_options","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":96,"name":"preseed_kernel_options_autoinstall","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":97,"name":"preseed_netplan_generic_interface","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":98,"name":"preseed_netplan_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":99,"name":"preseed_networking_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":100,"name":"puppet.conf","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":102,"name":"puppetlabs_repo","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":101,"name":"puppet_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":103,"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":104,"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":105,"name":"pxegrub2_mac","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":106,"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":107,"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":20,"name":"PXELinux - chain iPXE","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":21,"name":"PXELinux - chain iPXE UNDI","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":108,"name":"pxelinux_chainload","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":22,"name":"PXELinux - default local boot","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":23,"name":"PXELinux - default memdisk","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":109,"name":"pxelinux_discovery","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":24,"name":"PXELinux - global default","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":87,"name":"rancheros_cloudconfig","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":58,"name":"RancherOS - provision","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":25,"name":"RancherOS - PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":89,"name":"redhat_register","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":62,"name":"remote_execution_pull_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":96,"name":"remote_execution_ssh_keys","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":66,"name":"saltstack_minion","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":110,"name":"saltstack_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":111,"name":"schedule_reboot","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":118,"name":"UserData - default","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":119,"name":"UserData - open-vm-tools","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":26,"name":"WAIK - default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":37,"name":"Windows - default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":46,"name":"Windows - default iPXE","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":59,"name":"Windows - default provision","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":27,"name":"Windows - default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":112,"name":"Windows - network","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":64,"name":"Windows - peSetup.cmd","template_kind_id":8,"template_kind_name":"script","inherited":false},{"id":60,"name":"XenServer - default answerfile","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":38,"name":"XenServer - default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":28,"name":"XenServer - default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":113,"name":"yum_proxy","template_kind_id":null,"template_kind_name":null,"inherited":false}],"domains":[],"realms":[],"hostgroups":[],"organizations":[],"hosts_count":0,"parameters":[{}],"deprecations":{"environments":"Environments + 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":108,"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":109,"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":110,"name":"rancheros_cloudconfig","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":60,"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":111,"name":"redhat_register","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":64,"name":"remote_execution_pull_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":112,"name":"remote_execution_ssh_keys","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":113,"name":"saltstack_minion","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":114,"name":"saltstack_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":115,"name":"schedule_reboot","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":116,"name":"subscription_manager_setup","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":61,"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":125,"name":"Windows + default user data","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":117,"name":"Windows + network","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":66,"name":"Windows + peSetup.cmd","template_kind_id":8,"template_kind_name":"script","inherited":false},{"id":62,"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":118,"name":"yum_proxy","template_kind_id":null,"template_kind_name":null,"inherited":false}],"domains":[],"realms":[],"hostgroups":[],"organizations":[],"hosts_count":0,"parameters":[{}],"deprecations":{"environments":"Environments got deprecated from this endpoint."}}' headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive + Content-Length: + - '19171' 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''; @@ -254,13 +266,11 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.4.0 + - 3.11.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: @@ -292,14 +302,16 @@ interactions: string: "{\n \"total\": 4,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": 4294967296,\n \"search\": \"title=\\\"Test Location/Sub Location 1\\\"\",\n \ \"sort\": {\n \"by\": null,\n \"order\": null\n },\n \"results\": - [{\"ancestry\":\"4\",\"parent_id\":4,\"parent_name\":\"Test Location\",\"created_at\":\"2022-11-08 - 09:29:07 UTC\",\"updated_at\":\"2022-11-08 09:29:07 UTC\",\"id\":5,\"name\":\"Sub + [{\"ancestry\":\"7\",\"parent_id\":7,\"parent_name\":\"Test Location\",\"created_at\":\"2024-07-25 + 12:00:04 UTC\",\"updated_at\":\"2024-07-25 12:00:04 UTC\",\"id\":8,\"name\":\"Sub Location 1\",\"title\":\"Test Location/Sub Location 1\",\"description\":null}]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive + Content-Length: + - '422' 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''; @@ -313,13 +325,11 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.4.0 + - 3.11.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: diff --git a/tests/test_playbooks/fixtures/location-7.yml b/tests/test_playbooks/fixtures/location-7.yml index 6e2d8b54d..fd9bb9e3d 100644 --- a/tests/test_playbooks/fixtures/location-7.yml +++ b/tests/test_playbooks/fixtures/location-7.yml @@ -14,12 +14,14 @@ interactions: uri: https://foreman.example.org/api/status response: body: - string: '{"result":"ok","status":200,"version":"3.4.0","api_version":2}' + string: '{"result":"ok","status":200,"version":"3.11.0-develop","api_version":2}' headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive + Content-Length: + - '71' 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.4.0 + - 3.11.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: @@ -71,15 +71,17 @@ interactions: string: "{\n \"total\": 4,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": 4294967296,\n \"search\": \"title=\\\"Test Location/Sub Location 1/Sub Location 2\\\"\",\n \"sort\": {\n \"by\": null,\n \"order\": null\n },\n \"results\": - [{\"ancestry\":\"4/5\",\"parent_id\":5,\"parent_name\":\"Test Location/Sub - Location 1\",\"created_at\":\"2022-11-08 09:29:09 UTC\",\"updated_at\":\"2022-11-08 - 09:29:09 UTC\",\"id\":6,\"name\":\"Sub Location 2\",\"title\":\"Test Location/Sub + [{\"ancestry\":\"7/8\",\"parent_id\":8,\"parent_name\":\"Test Location/Sub + Location 1\",\"created_at\":\"2024-07-25 12:00:07 UTC\",\"updated_at\":\"2024-07-25 + 12:00:07 UTC\",\"id\":9,\"name\":\"Sub Location 2\",\"title\":\"Test Location/Sub Location 1/Sub Location 2\",\"description\":null}]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive + Content-Length: + - '469' 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''; @@ -93,13 +95,11 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.4.0 + - 3.11.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,122 +125,134 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/api/locations/6 + uri: https://foreman.example.org/api/locations/9 response: body: - string: '{"select_all_types":[],"description":null,"created_at":"2022-11-08 - 09:29:09 UTC","updated_at":"2022-11-08 09:29:09 UTC","ancestry":"4/5","parent_id":5,"parent_name":"Test - Location/Sub Location 1","id":6,"name":"Sub Location 2","title":"Test Location/Sub - Location 1/Sub Location 2","users":[],"smart_proxies":[],"subnets":[],"compute_resources":[],"media":[],"ptables":[{"description":null,"os_family":"Suse","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"AutoYaST entire - SCSI disk","id":120,"inherited":false},{"description":null,"os_family":"Suse","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"AutoYaST entire - virtual disk","id":121,"inherited":false},{"description":null,"os_family":"Suse","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"AutoYaST LVM","id":122,"inherited":false},{"description":null,"os_family":"Coreos","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"CoreOS default - fake","id":123,"inherited":false},{"description":null,"os_family":"Rancheros","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Empty","id":124,"inherited":false},{"description":null,"os_family":"Freebsd","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"FreeBSD default - fake","id":125,"inherited":false},{"description":null,"os_family":"Solaris","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Jumpstart default","id":126,"inherited":false},{"description":null,"os_family":"Solaris","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Jumpstart mirrored","id":127,"inherited":false},{"description":null,"os_family":"Junos","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Junos default - fake","id":128,"inherited":false},{"description":null,"os_family":"Redhat","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Kickstart custom","id":129,"inherited":false},{"description":null,"os_family":"Redhat","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Kickstart default","id":130,"inherited":false},{"description":null,"os_family":"Redhat","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Kickstart default - thin","id":131,"inherited":false},{"description":null,"os_family":"Redhat","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Kickstart dynamic","id":132,"inherited":false},{"description":null,"os_family":"NXOS","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"NX-OS default - fake","id":133,"inherited":false},{"description":null,"os_family":"Debian","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Preseed default","id":134,"inherited":false},{"description":"Preseed + string: '{"select_all_types":[],"description":null,"created_at":"2024-07-25 + 12:00:07 UTC","updated_at":"2024-07-25 12:00:07 UTC","ancestry":"7/8","parent_id":8,"parent_name":"Test + Location/Sub Location 1","id":9,"name":"Sub Location 2","title":"Test Location/Sub + Location 1/Sub Location 2","users":[],"smart_proxies":[],"subnets":[],"compute_resources":[],"media":[],"ptables":[{"description":null,"os_family":"Suse","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"AutoYaST entire + SCSI disk","id":126,"inherited":false},{"description":null,"os_family":"Suse","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"AutoYaST entire + virtual disk","id":127,"inherited":false},{"description":null,"os_family":"Suse","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"AutoYaST LVM","id":128,"inherited":false},{"description":null,"os_family":"Coreos","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"CoreOS default + fake","id":129,"inherited":false},{"description":null,"os_family":"Rancheros","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"Empty","id":130,"inherited":false},{"description":null,"os_family":"Freebsd","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"FreeBSD default + fake","id":131,"inherited":false},{"description":null,"os_family":"Solaris","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"Jumpstart default","id":132,"inherited":false},{"description":null,"os_family":"Solaris","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"Jumpstart mirrored","id":133,"inherited":false},{"description":null,"os_family":"Junos","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"Junos default + fake","id":134,"inherited":false},{"description":null,"os_family":"Redhat","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"Kickstart custom","id":135,"inherited":false},{"description":null,"os_family":"Redhat","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"Kickstart default","id":136,"inherited":false},{"description":null,"os_family":"Redhat","created_at":"2024-04-22 + 11:15:26 UTC","updated_at":"2024-04-22 11:15:26 UTC","name":"Kickstart default + encrypted","id":152,"inherited":false},{"description":null,"os_family":"Redhat","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"Kickstart default + thin","id":137,"inherited":false},{"description":null,"os_family":"Redhat","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"Kickstart dynamic","id":138,"inherited":false},{"description":null,"os_family":"NXOS","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"NX-OS default + fake","id":139,"inherited":false},{"description":null,"os_family":"Debian","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"Preseed default","id":140,"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":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Preseed default - autoinstall","id":135,"inherited":false},{"description":null,"os_family":"Debian","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Preseed default - LVM","id":136,"inherited":false},{"description":null,"os_family":"Windows","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Windows default - GPT EFI partition table","id":138,"inherited":false},{"description":null,"os_family":"Windows","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Windows default - partition table","id":137,"inherited":false},{"description":null,"os_family":"Xenserver","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"XenServer default","id":139,"inherited":false}],"provisioning_templates":[{"id":47,"name":"Alterator - default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":31,"name":"Alterator - default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":12,"name":"Alterator - default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":65,"name":"alterator_pkglist","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":67,"name":"ansible_provisioning_callback","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":68,"name":"ansible_tower_callback_script","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":69,"name":"ansible_tower_callback_service","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":48,"name":"Atomic - Kickstart default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":49,"name":"AutoYaST - default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":40,"name":"AutoYaST + LVM. The snippet is automatically indented by 2 spaces. For reference:\nhttps://ubuntu.com/server/docs/install/autoinstall-reference","os_family":"Debian","created_at":"2024-04-15 + 09:11:37 UTC","updated_at":"2024-04-15 09:11:37 UTC","name":"Preseed default + autoinstall","id":141,"inherited":false},{"description":"Preseed Autoinstall + default storage snippet configures drives automatically\nwith LVM and disk + encryption.\nRequires Ubuntu >= 22.04.3.\nThe snippet is automatically indented + by 2 spaces. For reference:\nhttps://ubuntu.com/server/docs/install/autoinstall-reference","os_family":"Debian","created_at":"2024-04-22 + 11:15:26 UTC","updated_at":"2024-04-22 11:15:26 UTC","name":"Preseed default + autoinstall encrypted","id":153,"inherited":false},{"description":null,"os_family":"Debian","created_at":"2024-04-15 + 09:11:37 UTC","updated_at":"2024-04-15 09:11:37 UTC","name":"Preseed default + LVM","id":142,"inherited":false},{"description":null,"os_family":"Windows","created_at":"2024-04-15 + 09:11:37 UTC","updated_at":"2024-04-15 09:11:37 UTC","name":"Windows default + GPT EFI partition table","id":144,"inherited":false},{"description":null,"os_family":"Windows","created_at":"2024-04-15 + 09:11:37 UTC","updated_at":"2024-04-15 09:11:37 UTC","name":"Windows default + partition table","id":143,"inherited":false},{"description":null,"os_family":"Xenserver","created_at":"2024-04-15 + 09:11:37 UTC","updated_at":"2024-04-15 09:11:37 UTC","name":"XenServer default","id":145,"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":67,"name":"alterator_pkglist","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":68,"name":"ansible_provisioning_callback","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":69,"name":"ansible_tower_callback_script","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":70,"name":"ansible_tower_callback_service","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":51,"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":13,"name":"AutoYaST - default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":114,"name":"AutoYaST - default user data","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":50,"name":"AutoYaST - SLES default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":70,"name":"blacklist_kernel_modules","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":71,"name":"bmc_nic_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":72,"name":"built","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":73,"name":"chef_client","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":30,"name":"CloudInit - default","template_kind_id":12,"template_kind_name":"cloud-init","inherited":false},{"id":74,"name":"coreos_cloudconfig","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":51,"name":"CoreOS - provision","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":14,"name":"CoreOS - PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":75,"name":"create_users","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":76,"name":"csr_attributes.yaml","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":77,"name":"efibootmgr_netboot","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":78,"name":"eject_cdrom","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":79,"name":"epel","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":80,"name":"fips_packages","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":81,"name":"fix_hosts","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":32,"name":"FreeBSD - (mfsBSD) finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":52,"name":"FreeBSD - (mfsBSD) provision","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":15,"name":"FreeBSD - (mfsBSD) PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":82,"name":"freeipa_register","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":61,"name":"Global - Registration","template_kind_id":13,"template_kind_name":"registration","inherited":false},{"id":63,"name":"Grubby - default","template_kind_id":8,"template_kind_name":"script","inherited":false},{"id":83,"name":"http_proxy","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":84,"name":"insights","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":41,"name":"iPXE - default local boot","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":42,"name":"iPXE - global default","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":43,"name":"iPXE - intermediate script","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":53,"name":"Jumpstart - default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":33,"name":"Jumpstart + 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":52,"name":"AutoYaST + SLES default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":71,"name":"blacklist_kernel_modules","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":72,"name":"bmc_nic_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":73,"name":"built","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":74,"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":75,"name":"coreos_cloudconfig","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":53,"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":76,"name":"create_users","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":77,"name":"csr_attributes.yaml","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":149,"name":"disk_enc_clevis_tang","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":78,"name":"efibootmgr_netboot","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":79,"name":"eject_cdrom","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":80,"name":"epel","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":81,"name":"fips_packages","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":82,"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":54,"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":83,"name":"freeipa_register","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":63,"name":"Global + Registration","template_kind_id":13,"template_kind_name":"registration","inherited":false},{"id":65,"name":"Grubby + default","template_kind_id":8,"template_kind_name":"script","inherited":false},{"id":84,"name":"http_proxy","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":85,"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":55,"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":34,"name":"Junos - default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":54,"name":"Junos - default SLAX","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":29,"name":"Junos - default ZTP config","template_kind_id":10,"template_kind_name":"ZTP","inherited":false},{"id":55,"name":"Kickstart - default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":35,"name":"Kickstart - default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":44,"name":"Kickstart + 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":56,"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":57,"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":16,"name":"Kickstart - default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":115,"name":"Kickstart - default user data","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":86,"name":"kickstart_ifcfg_bonded_interface","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":85,"name":"kickstart_ifcfg_bond_interface","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":88,"name":"kickstart_ifcfg_generic_interface","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":90,"name":"kickstart_ifcfg_get_identifier_names","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":91,"name":"kickstart_kernel_options","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":92,"name":"kickstart_networking_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":56,"name":"Kickstart - oVirt-RHVH","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":17,"name":"Kickstart - oVirt-RHVH PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":39,"name":"Linux + 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":87,"name":"kickstart_ifcfg_bonded_interface","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":86,"name":"kickstart_ifcfg_bond_interface","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":88,"name":"kickstart_ifcfg_generic_interface","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":89,"name":"kickstart_ifcfg_get_identifier_names","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":90,"name":"kickstart_kernel_options","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":91,"name":"kickstart_networking_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":150,"name":"kickstart_network_interface","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":58,"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":92,"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":93,"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":94,"name":"pkg_manager","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":116,"name":"Preseed - Autoinstall cloud-init user data","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":57,"name":"Preseed - default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":36,"name":"Preseed - default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":45,"name":"Preseed - default iPXE","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":18,"name":"Preseed - default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":19,"name":"Preseed - default PXELinux Autoinstall","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":117,"name":"Preseed - default user data","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":95,"name":"preseed_kernel_options","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":97,"name":"preseed_netplan_generic_interface","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":98,"name":"preseed_netplan_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":99,"name":"preseed_networking_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":100,"name":"puppet.conf","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":102,"name":"puppetlabs_repo","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":101,"name":"puppet_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":103,"name":"pxegrub2_chainload","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":10,"name":"PXEGrub2 - default local boot","template_kind_id":4,"template_kind_name":"PXEGrub2","inherited":false},{"id":104,"name":"pxegrub2_discovery","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":11,"name":"PXEGrub2 + default POAP setup","template_kind_id":11,"template_kind_name":"POAP","inherited":false},{"id":94,"name":"pkg_manager","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":151,"name":"preseed_autoinstall_clevis_tang_wrapper","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":59,"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":95,"name":"preseed_kernel_options","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":96,"name":"preseed_kernel_options_autoinstall","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":97,"name":"preseed_netplan_generic_interface","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":98,"name":"preseed_netplan_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":99,"name":"preseed_networking_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":100,"name":"puppet.conf","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":102,"name":"puppetlabs_repo","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":101,"name":"puppet_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":103,"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":104,"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":105,"name":"pxegrub2_mac","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":106,"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":107,"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":20,"name":"PXELinux - chain iPXE","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":21,"name":"PXELinux - chain iPXE UNDI","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":108,"name":"pxelinux_chainload","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":22,"name":"PXELinux - default local boot","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":23,"name":"PXELinux - default memdisk","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":109,"name":"pxelinux_discovery","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":24,"name":"PXELinux - global default","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":87,"name":"rancheros_cloudconfig","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":58,"name":"RancherOS - provision","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":25,"name":"RancherOS - PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":89,"name":"redhat_register","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":62,"name":"remote_execution_pull_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":96,"name":"remote_execution_ssh_keys","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":66,"name":"saltstack_minion","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":110,"name":"saltstack_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":111,"name":"schedule_reboot","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":118,"name":"UserData - default","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":119,"name":"UserData - open-vm-tools","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":26,"name":"WAIK - default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":37,"name":"Windows - default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":46,"name":"Windows - default iPXE","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":59,"name":"Windows - default provision","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":27,"name":"Windows - default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":112,"name":"Windows - network","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":64,"name":"Windows - peSetup.cmd","template_kind_id":8,"template_kind_name":"script","inherited":false},{"id":60,"name":"XenServer - default answerfile","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":38,"name":"XenServer - default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":28,"name":"XenServer - default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":113,"name":"yum_proxy","template_kind_id":null,"template_kind_name":null,"inherited":false}],"domains":[],"realms":[],"hostgroups":[],"organizations":[],"hosts_count":0,"parameters":[{}],"deprecations":{"environments":"Environments + 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":108,"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":109,"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":110,"name":"rancheros_cloudconfig","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":60,"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":111,"name":"redhat_register","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":64,"name":"remote_execution_pull_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":112,"name":"remote_execution_ssh_keys","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":113,"name":"saltstack_minion","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":114,"name":"saltstack_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":115,"name":"schedule_reboot","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":116,"name":"subscription_manager_setup","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":61,"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":125,"name":"Windows + default user data","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":117,"name":"Windows + network","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":66,"name":"Windows + peSetup.cmd","template_kind_id":8,"template_kind_name":"script","inherited":false},{"id":62,"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":118,"name":"yum_proxy","template_kind_id":null,"template_kind_name":null,"inherited":false}],"domains":[],"realms":[],"hostgroups":[],"organizations":[],"hosts_count":0,"parameters":[{}],"deprecations":{"environments":"Environments got deprecated from this endpoint."}}' headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive + Content-Length: + - '19171' 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''; @@ -254,13 +266,11 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.4.0 + - 3.11.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: @@ -292,14 +302,16 @@ interactions: string: "{\n \"total\": 4,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": 4294967296,\n \"search\": \"title=\\\"Test Location/Sub Location 1\\\"\",\n \ \"sort\": {\n \"by\": null,\n \"order\": null\n },\n \"results\": - [{\"ancestry\":\"4\",\"parent_id\":4,\"parent_name\":\"Test Location\",\"created_at\":\"2022-11-08 - 09:29:07 UTC\",\"updated_at\":\"2022-11-08 09:29:07 UTC\",\"id\":5,\"name\":\"Sub + [{\"ancestry\":\"7\",\"parent_id\":7,\"parent_name\":\"Test Location\",\"created_at\":\"2024-07-25 + 12:00:04 UTC\",\"updated_at\":\"2024-07-25 12:00:04 UTC\",\"id\":8,\"name\":\"Sub Location 1\",\"title\":\"Test Location/Sub Location 1\",\"description\":null}]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive + Content-Length: + - '422' 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''; @@ -313,13 +325,11 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.4.0 + - 3.11.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: @@ -350,14 +360,16 @@ interactions: body: 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\": [{\"ancestry\":null,\"parent_id\":null,\"parent_name\":null,\"created_at\":\"2022-11-08 - 09:29:04 UTC\",\"updated_at\":\"2022-11-08 09:29:04 UTC\",\"id\":3,\"name\":\"Test + {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"ancestry\":null,\"parent_id\":null,\"parent_name\":null,\"created_at\":\"2024-07-25 + 12:00:00 UTC\",\"updated_at\":\"2024-07-25 12:00:00 UTC\",\"id\":6,\"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: + - '412' 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''; @@ -371,13 +383,11 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.4.0 + - 3.11.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: @@ -392,7 +402,7 @@ interactions: code: 200 message: OK - request: - body: '{"location": {"organization_ids": [3]}}' + body: '{"location": {"organization_ids": [6]}}' headers: Accept: - application/json;version=2 @@ -407,116 +417,126 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: PUT - uri: https://foreman.example.org/api/locations/6 + uri: https://foreman.example.org/api/locations/9 response: body: - string: '{"select_all_types":[],"description":null,"created_at":"2022-11-08 - 09:29:09 UTC","updated_at":"2022-11-08 09:29:09 UTC","ancestry":"4/5","parent_id":5,"parent_name":"Test - Location/Sub Location 1","id":6,"name":"Sub Location 2","title":"Test Location/Sub - Location 1/Sub Location 2","users":[],"smart_proxies":[],"subnets":[],"compute_resources":[],"media":[],"ptables":[{"description":null,"os_family":"Suse","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"AutoYaST entire - SCSI disk","id":120,"inherited":false},{"description":null,"os_family":"Suse","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"AutoYaST entire - virtual disk","id":121,"inherited":false},{"description":null,"os_family":"Suse","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"AutoYaST LVM","id":122,"inherited":false},{"description":null,"os_family":"Coreos","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"CoreOS default - fake","id":123,"inherited":false},{"description":null,"os_family":"Rancheros","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Empty","id":124,"inherited":false},{"description":null,"os_family":"Freebsd","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"FreeBSD default - fake","id":125,"inherited":false},{"description":null,"os_family":"Solaris","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Jumpstart default","id":126,"inherited":false},{"description":null,"os_family":"Solaris","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Jumpstart mirrored","id":127,"inherited":false},{"description":null,"os_family":"Junos","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Junos default - fake","id":128,"inherited":false},{"description":null,"os_family":"Redhat","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Kickstart custom","id":129,"inherited":false},{"description":null,"os_family":"Redhat","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Kickstart default","id":130,"inherited":false},{"description":null,"os_family":"Redhat","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Kickstart default - thin","id":131,"inherited":false},{"description":null,"os_family":"Redhat","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Kickstart dynamic","id":132,"inherited":false},{"description":null,"os_family":"NXOS","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"NX-OS default - fake","id":133,"inherited":false},{"description":null,"os_family":"Debian","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Preseed default","id":134,"inherited":false},{"description":"Preseed + string: '{"select_all_types":[],"description":null,"created_at":"2024-07-25 + 12:00:07 UTC","updated_at":"2024-07-25 12:00:07 UTC","ancestry":"7/8","parent_id":8,"parent_name":"Test + Location/Sub Location 1","id":9,"name":"Sub Location 2","title":"Test Location/Sub + Location 1/Sub Location 2","users":[],"smart_proxies":[],"subnets":[],"compute_resources":[],"media":[],"ptables":[{"description":null,"os_family":"Suse","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"AutoYaST entire + SCSI disk","id":126,"inherited":false},{"description":null,"os_family":"Suse","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"AutoYaST entire + virtual disk","id":127,"inherited":false},{"description":null,"os_family":"Suse","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"AutoYaST LVM","id":128,"inherited":false},{"description":null,"os_family":"Coreos","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"CoreOS default + fake","id":129,"inherited":false},{"description":null,"os_family":"Rancheros","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"Empty","id":130,"inherited":false},{"description":null,"os_family":"Freebsd","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"FreeBSD default + fake","id":131,"inherited":false},{"description":null,"os_family":"Solaris","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"Jumpstart default","id":132,"inherited":false},{"description":null,"os_family":"Solaris","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"Jumpstart mirrored","id":133,"inherited":false},{"description":null,"os_family":"Junos","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"Junos default + fake","id":134,"inherited":false},{"description":null,"os_family":"Redhat","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"Kickstart custom","id":135,"inherited":false},{"description":null,"os_family":"Redhat","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"Kickstart default","id":136,"inherited":false},{"description":null,"os_family":"Redhat","created_at":"2024-04-22 + 11:15:26 UTC","updated_at":"2024-04-22 11:15:26 UTC","name":"Kickstart default + encrypted","id":152,"inherited":false},{"description":null,"os_family":"Redhat","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"Kickstart default + thin","id":137,"inherited":false},{"description":null,"os_family":"Redhat","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"Kickstart dynamic","id":138,"inherited":false},{"description":null,"os_family":"NXOS","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"NX-OS default + fake","id":139,"inherited":false},{"description":null,"os_family":"Debian","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"Preseed default","id":140,"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":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Preseed default - autoinstall","id":135,"inherited":false},{"description":null,"os_family":"Debian","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Preseed default - LVM","id":136,"inherited":false},{"description":null,"os_family":"Windows","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Windows default - GPT EFI partition table","id":138,"inherited":false},{"description":null,"os_family":"Windows","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Windows default - partition table","id":137,"inherited":false},{"description":null,"os_family":"Xenserver","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"XenServer default","id":139,"inherited":false}],"provisioning_templates":[{"id":47,"name":"Alterator - default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":31,"name":"Alterator - default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":12,"name":"Alterator - default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":65,"name":"alterator_pkglist","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":67,"name":"ansible_provisioning_callback","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":68,"name":"ansible_tower_callback_script","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":69,"name":"ansible_tower_callback_service","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":48,"name":"Atomic - Kickstart default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":49,"name":"AutoYaST - default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":40,"name":"AutoYaST + LVM. The snippet is automatically indented by 2 spaces. For reference:\nhttps://ubuntu.com/server/docs/install/autoinstall-reference","os_family":"Debian","created_at":"2024-04-15 + 09:11:37 UTC","updated_at":"2024-04-15 09:11:37 UTC","name":"Preseed default + autoinstall","id":141,"inherited":false},{"description":"Preseed Autoinstall + default storage snippet configures drives automatically\nwith LVM and disk + encryption.\nRequires Ubuntu >= 22.04.3.\nThe snippet is automatically indented + by 2 spaces. For reference:\nhttps://ubuntu.com/server/docs/install/autoinstall-reference","os_family":"Debian","created_at":"2024-04-22 + 11:15:26 UTC","updated_at":"2024-04-22 11:15:26 UTC","name":"Preseed default + autoinstall encrypted","id":153,"inherited":false},{"description":null,"os_family":"Debian","created_at":"2024-04-15 + 09:11:37 UTC","updated_at":"2024-04-15 09:11:37 UTC","name":"Preseed default + LVM","id":142,"inherited":false},{"description":null,"os_family":"Windows","created_at":"2024-04-15 + 09:11:37 UTC","updated_at":"2024-04-15 09:11:37 UTC","name":"Windows default + GPT EFI partition table","id":144,"inherited":false},{"description":null,"os_family":"Windows","created_at":"2024-04-15 + 09:11:37 UTC","updated_at":"2024-04-15 09:11:37 UTC","name":"Windows default + partition table","id":143,"inherited":false},{"description":null,"os_family":"Xenserver","created_at":"2024-04-15 + 09:11:37 UTC","updated_at":"2024-04-15 09:11:37 UTC","name":"XenServer default","id":145,"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":67,"name":"alterator_pkglist","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":68,"name":"ansible_provisioning_callback","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":69,"name":"ansible_tower_callback_script","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":70,"name":"ansible_tower_callback_service","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":51,"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":13,"name":"AutoYaST - default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":114,"name":"AutoYaST - default user data","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":50,"name":"AutoYaST - SLES default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":70,"name":"blacklist_kernel_modules","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":71,"name":"bmc_nic_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":72,"name":"built","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":73,"name":"chef_client","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":30,"name":"CloudInit - default","template_kind_id":12,"template_kind_name":"cloud-init","inherited":false},{"id":74,"name":"coreos_cloudconfig","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":51,"name":"CoreOS - provision","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":14,"name":"CoreOS - PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":75,"name":"create_users","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":76,"name":"csr_attributes.yaml","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":77,"name":"efibootmgr_netboot","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":78,"name":"eject_cdrom","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":79,"name":"epel","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":80,"name":"fips_packages","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":81,"name":"fix_hosts","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":32,"name":"FreeBSD - (mfsBSD) finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":52,"name":"FreeBSD - (mfsBSD) provision","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":15,"name":"FreeBSD - (mfsBSD) PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":82,"name":"freeipa_register","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":61,"name":"Global - Registration","template_kind_id":13,"template_kind_name":"registration","inherited":false},{"id":63,"name":"Grubby - default","template_kind_id":8,"template_kind_name":"script","inherited":false},{"id":83,"name":"http_proxy","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":84,"name":"insights","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":41,"name":"iPXE - default local boot","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":42,"name":"iPXE - global default","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":43,"name":"iPXE - intermediate script","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":53,"name":"Jumpstart - default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":33,"name":"Jumpstart + 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":52,"name":"AutoYaST + SLES default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":71,"name":"blacklist_kernel_modules","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":72,"name":"bmc_nic_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":73,"name":"built","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":74,"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":75,"name":"coreos_cloudconfig","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":53,"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":76,"name":"create_users","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":77,"name":"csr_attributes.yaml","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":149,"name":"disk_enc_clevis_tang","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":78,"name":"efibootmgr_netboot","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":79,"name":"eject_cdrom","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":80,"name":"epel","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":81,"name":"fips_packages","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":82,"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":54,"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":83,"name":"freeipa_register","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":63,"name":"Global + Registration","template_kind_id":13,"template_kind_name":"registration","inherited":false},{"id":65,"name":"Grubby + default","template_kind_id":8,"template_kind_name":"script","inherited":false},{"id":84,"name":"http_proxy","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":85,"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":55,"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":34,"name":"Junos - default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":54,"name":"Junos - default SLAX","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":29,"name":"Junos - default ZTP config","template_kind_id":10,"template_kind_name":"ZTP","inherited":false},{"id":55,"name":"Kickstart - default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":35,"name":"Kickstart - default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":44,"name":"Kickstart + 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":56,"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":57,"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":16,"name":"Kickstart - default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":115,"name":"Kickstart - default user data","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":86,"name":"kickstart_ifcfg_bonded_interface","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":85,"name":"kickstart_ifcfg_bond_interface","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":88,"name":"kickstart_ifcfg_generic_interface","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":90,"name":"kickstart_ifcfg_get_identifier_names","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":91,"name":"kickstart_kernel_options","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":92,"name":"kickstart_networking_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":56,"name":"Kickstart - oVirt-RHVH","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":17,"name":"Kickstart - oVirt-RHVH PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":39,"name":"Linux + 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":87,"name":"kickstart_ifcfg_bonded_interface","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":86,"name":"kickstart_ifcfg_bond_interface","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":88,"name":"kickstart_ifcfg_generic_interface","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":89,"name":"kickstart_ifcfg_get_identifier_names","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":90,"name":"kickstart_kernel_options","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":91,"name":"kickstart_networking_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":150,"name":"kickstart_network_interface","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":58,"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":92,"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":93,"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":94,"name":"pkg_manager","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":116,"name":"Preseed - Autoinstall cloud-init user data","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":57,"name":"Preseed - default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":36,"name":"Preseed - default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":45,"name":"Preseed - default iPXE","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":18,"name":"Preseed - default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":19,"name":"Preseed - default PXELinux Autoinstall","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":117,"name":"Preseed - default user data","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":95,"name":"preseed_kernel_options","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":97,"name":"preseed_netplan_generic_interface","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":98,"name":"preseed_netplan_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":99,"name":"preseed_networking_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":100,"name":"puppet.conf","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":102,"name":"puppetlabs_repo","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":101,"name":"puppet_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":103,"name":"pxegrub2_chainload","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":10,"name":"PXEGrub2 - default local boot","template_kind_id":4,"template_kind_name":"PXEGrub2","inherited":false},{"id":104,"name":"pxegrub2_discovery","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":11,"name":"PXEGrub2 + default POAP setup","template_kind_id":11,"template_kind_name":"POAP","inherited":false},{"id":94,"name":"pkg_manager","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":151,"name":"preseed_autoinstall_clevis_tang_wrapper","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":59,"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":95,"name":"preseed_kernel_options","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":96,"name":"preseed_kernel_options_autoinstall","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":97,"name":"preseed_netplan_generic_interface","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":98,"name":"preseed_netplan_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":99,"name":"preseed_networking_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":100,"name":"puppet.conf","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":102,"name":"puppetlabs_repo","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":101,"name":"puppet_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":103,"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":104,"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":105,"name":"pxegrub2_mac","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":106,"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":107,"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":20,"name":"PXELinux - chain iPXE","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":21,"name":"PXELinux - chain iPXE UNDI","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":108,"name":"pxelinux_chainload","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":22,"name":"PXELinux - default local boot","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":23,"name":"PXELinux - default memdisk","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":109,"name":"pxelinux_discovery","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":24,"name":"PXELinux - global default","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":87,"name":"rancheros_cloudconfig","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":58,"name":"RancherOS - provision","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":25,"name":"RancherOS - PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":89,"name":"redhat_register","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":62,"name":"remote_execution_pull_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":96,"name":"remote_execution_ssh_keys","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":66,"name":"saltstack_minion","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":110,"name":"saltstack_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":111,"name":"schedule_reboot","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":118,"name":"UserData - default","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":119,"name":"UserData - open-vm-tools","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":26,"name":"WAIK - default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":37,"name":"Windows - default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":46,"name":"Windows - default iPXE","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":59,"name":"Windows - default provision","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":27,"name":"Windows - default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":112,"name":"Windows - network","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":64,"name":"Windows - peSetup.cmd","template_kind_id":8,"template_kind_name":"script","inherited":false},{"id":60,"name":"XenServer - default answerfile","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":38,"name":"XenServer - default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":28,"name":"XenServer - default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":113,"name":"yum_proxy","template_kind_id":null,"template_kind_name":null,"inherited":false}],"domains":[],"realms":[],"hostgroups":[],"organizations":[{"id":3,"name":"Test + 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":108,"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":109,"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":110,"name":"rancheros_cloudconfig","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":60,"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":111,"name":"redhat_register","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":64,"name":"remote_execution_pull_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":112,"name":"remote_execution_ssh_keys","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":113,"name":"saltstack_minion","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":114,"name":"saltstack_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":115,"name":"schedule_reboot","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":116,"name":"subscription_manager_setup","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":61,"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":125,"name":"Windows + default user data","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":117,"name":"Windows + network","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":66,"name":"Windows + peSetup.cmd","template_kind_id":8,"template_kind_name":"script","inherited":false},{"id":62,"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":118,"name":"yum_proxy","template_kind_id":null,"template_kind_name":null,"inherited":false}],"domains":[],"realms":[],"hostgroups":[],"organizations":[{"id":6,"name":"Test Organization","title":"Test Organization","description":"A test organization"}],"hosts_count":0,"parameters":[{}],"deprecations":{"environments":"Environments got deprecated from this endpoint."}}' headers: @@ -524,6 +544,8 @@ interactions: - max-age=0, private, must-revalidate Connection: - Keep-Alive + Content-Length: + - '19270' 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''; @@ -537,13 +559,11 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.4.0 + - 3.11.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: diff --git a/tests/test_playbooks/fixtures/location-8.yml b/tests/test_playbooks/fixtures/location-8.yml index d9611b5fd..2b012618b 100644 --- a/tests/test_playbooks/fixtures/location-8.yml +++ b/tests/test_playbooks/fixtures/location-8.yml @@ -14,12 +14,14 @@ interactions: uri: https://foreman.example.org/api/status response: body: - string: '{"result":"ok","status":200,"version":"3.4.0","api_version":2}' + string: '{"result":"ok","status":200,"version":"3.11.0-develop","api_version":2}' headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive + Content-Length: + - '71' 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.4.0 + - 3.11.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: @@ -77,6 +77,8 @@ interactions: - max-age=0, private, must-revalidate Connection: - Keep-Alive + Content-Length: + - '195' 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''; @@ -90,13 +92,11 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.4.0 + - 3.11.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: @@ -127,14 +127,16 @@ interactions: body: string: "{\n \"total\": 4,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": 4294967296,\n \"search\": \"title=\\\"Test Location\\\"\",\n \"sort\": {\n - \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"ancestry\":null,\"parent_id\":null,\"parent_name\":null,\"created_at\":\"2022-11-08 - 09:29:05 UTC\",\"updated_at\":\"2022-11-08 09:29:05 UTC\",\"id\":4,\"name\":\"Test + \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"ancestry\":null,\"parent_id\":null,\"parent_name\":null,\"created_at\":\"2024-07-25 + 12:00:01 UTC\",\"updated_at\":\"2024-07-25 12:00:01 UTC\",\"id\":7,\"name\":\"Test Location\",\"title\":\"Test Location\",\"description\":null}]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive + Content-Length: + - '384' 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 +150,11 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.4.0 + - 3.11.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: @@ -169,7 +169,7 @@ interactions: code: 200 message: OK - request: - body: '{"location": {"name": "Sub Location 2", "parent_id": 4}}' + body: '{"location": {"name": "Sub Location 2", "parent_id": 7}}' headers: Accept: - application/json;version=2 @@ -187,119 +187,131 @@ interactions: uri: https://foreman.example.org/api/locations response: body: - string: '{"select_all_types":[],"description":null,"created_at":"2022-11-08 - 09:29:12 UTC","updated_at":"2022-11-08 09:29:12 UTC","ancestry":"4","parent_id":4,"parent_name":"Test - Location","id":7,"name":"Sub Location 2","title":"Test Location/Sub Location - 2","users":[],"smart_proxies":[],"subnets":[],"compute_resources":[],"media":[],"ptables":[{"description":null,"os_family":"Suse","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"AutoYaST entire - SCSI disk","id":120,"inherited":false},{"description":null,"os_family":"Suse","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"AutoYaST entire - virtual disk","id":121,"inherited":false},{"description":null,"os_family":"Suse","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"AutoYaST LVM","id":122,"inherited":false},{"description":null,"os_family":"Coreos","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"CoreOS default - fake","id":123,"inherited":false},{"description":null,"os_family":"Rancheros","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Empty","id":124,"inherited":false},{"description":null,"os_family":"Freebsd","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"FreeBSD default - fake","id":125,"inherited":false},{"description":null,"os_family":"Solaris","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Jumpstart default","id":126,"inherited":false},{"description":null,"os_family":"Solaris","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Jumpstart mirrored","id":127,"inherited":false},{"description":null,"os_family":"Junos","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Junos default - fake","id":128,"inherited":false},{"description":null,"os_family":"Redhat","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Kickstart custom","id":129,"inherited":false},{"description":null,"os_family":"Redhat","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Kickstart default","id":130,"inherited":false},{"description":null,"os_family":"Redhat","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Kickstart default - thin","id":131,"inherited":false},{"description":null,"os_family":"Redhat","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Kickstart dynamic","id":132,"inherited":false},{"description":null,"os_family":"NXOS","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"NX-OS default - fake","id":133,"inherited":false},{"description":null,"os_family":"Debian","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Preseed default","id":134,"inherited":false},{"description":"Preseed + string: '{"select_all_types":[],"description":null,"created_at":"2024-07-25 + 12:00:12 UTC","updated_at":"2024-07-25 12:00:12 UTC","ancestry":"7","parent_id":7,"parent_name":"Test + Location","id":10,"name":"Sub Location 2","title":"Test Location/Sub Location + 2","users":[],"smart_proxies":[],"subnets":[],"compute_resources":[],"media":[],"ptables":[{"description":null,"os_family":"Suse","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"AutoYaST entire + virtual disk","id":127,"inherited":false},{"description":null,"os_family":"Solaris","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"Jumpstart default","id":132,"inherited":false},{"description":null,"os_family":"Solaris","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"Jumpstart mirrored","id":133,"inherited":false},{"description":null,"os_family":"Junos","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"Junos default + fake","id":134,"inherited":false},{"description":null,"os_family":"Suse","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"AutoYaST LVM","id":128,"inherited":false},{"description":null,"os_family":"Coreos","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"CoreOS default + fake","id":129,"inherited":false},{"description":null,"os_family":"Rancheros","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"Empty","id":130,"inherited":false},{"description":null,"os_family":"Suse","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"AutoYaST entire + SCSI disk","id":126,"inherited":false},{"description":null,"os_family":"Freebsd","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"FreeBSD default + fake","id":131,"inherited":false},{"description":null,"os_family":"Redhat","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"Kickstart custom","id":135,"inherited":false},{"description":null,"os_family":"Redhat","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"Kickstart default","id":136,"inherited":false},{"description":null,"os_family":"Redhat","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"Kickstart default + thin","id":137,"inherited":false},{"description":null,"os_family":"Redhat","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"Kickstart dynamic","id":138,"inherited":false},{"description":null,"os_family":"NXOS","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"NX-OS default + fake","id":139,"inherited":false},{"description":null,"os_family":"Debian","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"Preseed default","id":140,"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":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Preseed default - autoinstall","id":135,"inherited":false},{"description":null,"os_family":"Debian","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Preseed default - LVM","id":136,"inherited":false},{"description":null,"os_family":"Windows","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Windows default - partition table","id":137,"inherited":false},{"description":null,"os_family":"Windows","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Windows default - GPT EFI partition table","id":138,"inherited":false},{"description":null,"os_family":"Xenserver","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"XenServer default","id":139,"inherited":false}],"provisioning_templates":[{"id":1,"name":"NX-OS + LVM. The snippet is automatically indented by 2 spaces. For reference:\nhttps://ubuntu.com/server/docs/install/autoinstall-reference","os_family":"Debian","created_at":"2024-04-15 + 09:11:37 UTC","updated_at":"2024-04-15 09:11:37 UTC","name":"Preseed default + autoinstall","id":141,"inherited":false},{"description":null,"os_family":"Debian","created_at":"2024-04-15 + 09:11:37 UTC","updated_at":"2024-04-15 09:11:37 UTC","name":"Preseed default + LVM","id":142,"inherited":false},{"description":null,"os_family":"Windows","created_at":"2024-04-15 + 09:11:37 UTC","updated_at":"2024-04-15 09:11:37 UTC","name":"Windows default + partition table","id":143,"inherited":false},{"description":null,"os_family":"Windows","created_at":"2024-04-15 + 09:11:37 UTC","updated_at":"2024-04-15 09:11:37 UTC","name":"Windows default + GPT EFI partition table","id":144,"inherited":false},{"description":null,"os_family":"Xenserver","created_at":"2024-04-15 + 09:11:37 UTC","updated_at":"2024-04-15 09:11:37 UTC","name":"XenServer default","id":145,"inherited":false},{"description":null,"os_family":"Redhat","created_at":"2024-04-22 + 11:15:26 UTC","updated_at":"2024-04-22 11:15:26 UTC","name":"Kickstart default + encrypted","id":152,"inherited":false},{"description":"Preseed Autoinstall + default storage snippet configures drives automatically\nwith LVM and disk + encryption.\nRequires Ubuntu >= 22.04.3.\nThe snippet is automatically indented + by 2 spaces. For reference:\nhttps://ubuntu.com/server/docs/install/autoinstall-reference","os_family":"Debian","created_at":"2024-04-22 + 11:15:26 UTC","updated_at":"2024-04-22 11:15:26 UTC","name":"Preseed default + autoinstall encrypted","id":153,"inherited":false}],"provisioning_templates":[{"id":1,"name":"NX-OS default POAP setup","template_kind_id":11,"template_kind_name":"POAP","inherited":false},{"id":2,"name":"AutoYaST default PXEGrub","template_kind_id":3,"template_kind_name":"PXEGrub","inherited":false},{"id":3,"name":"Jumpstart default PXEGrub","template_kind_id":3,"template_kind_name":"PXEGrub","inherited":false},{"id":4,"name":"Kickstart default PXEGrub","template_kind_id":3,"template_kind_name":"PXEGrub","inherited":false},{"id":5,"name":"PXEGrub default local boot","template_kind_id":3,"template_kind_name":"PXEGrub","inherited":false},{"id":6,"name":"PXEGrub - global default","template_kind_id":3,"template_kind_name":"PXEGrub","inherited":false},{"id":49,"name":"AutoYaST - default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":7,"name":"AutoYaST + global default","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":8,"name":"Kickstart default PXEGrub2","template_kind_id":4,"template_kind_name":"PXEGrub2","inherited":false},{"id":9,"name":"Preseed - default PXEGrub2","template_kind_id":4,"template_kind_name":"PXEGrub2","inherited":false},{"id":10,"name":"PXEGrub2 - default local boot","template_kind_id":4,"template_kind_name":"PXEGrub2","inherited":false},{"id":11,"name":"PXEGrub2 - global default","template_kind_id":4,"template_kind_name":"PXEGrub2","inherited":false},{"id":12,"name":"Alterator - default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":50,"name":"AutoYaST - SLES default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":13,"name":"AutoYaST - default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":14,"name":"CoreOS - PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":15,"name":"FreeBSD - (mfsBSD) PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":16,"name":"Kickstart - default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":17,"name":"Kickstart - oVirt-RHVH PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":18,"name":"Preseed - default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":19,"name":"Preseed - default PXELinux Autoinstall","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":20,"name":"PXELinux - chain iPXE","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":21,"name":"PXELinux - chain iPXE UNDI","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":22,"name":"PXELinux - default local boot","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":23,"name":"PXELinux - default memdisk","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":24,"name":"PXELinux - global default","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":25,"name":"RancherOS - PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":26,"name":"WAIK - default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":27,"name":"Windows - default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":28,"name":"XenServer - default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":29,"name":"Junos - default ZTP config","template_kind_id":10,"template_kind_name":"ZTP","inherited":false},{"id":30,"name":"CloudInit - default","template_kind_id":12,"template_kind_name":"cloud-init","inherited":false},{"id":31,"name":"Alterator - default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":73,"name":"chef_client","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":32,"name":"FreeBSD - (mfsBSD) finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":33,"name":"Jumpstart - default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":34,"name":"Junos - default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":35,"name":"Kickstart - default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":36,"name":"Preseed - default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":37,"name":"Windows - default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":38,"name":"XenServer - default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":39,"name":"Linux - host_init_config default","template_kind_id":1,"template_kind_name":"host_init_config","inherited":false},{"id":40,"name":"AutoYaST - default iPXE","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":41,"name":"iPXE - default local boot","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":42,"name":"iPXE - global default","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":51,"name":"CoreOS - provision","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":43,"name":"iPXE - intermediate script","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":44,"name":"Kickstart - default iPXE","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":45,"name":"Preseed - default iPXE","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":46,"name":"Windows - default iPXE","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":47,"name":"Alterator - default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":48,"name":"Atomic - Kickstart default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":52,"name":"FreeBSD - (mfsBSD) provision","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":53,"name":"Jumpstart - default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":54,"name":"Junos - default SLAX","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":55,"name":"Kickstart - default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":56,"name":"Kickstart - oVirt-RHVH","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":57,"name":"Preseed - default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":58,"name":"RancherOS - provision","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":59,"name":"Windows - default provision","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":60,"name":"XenServer - default answerfile","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":61,"name":"Global - Registration","template_kind_id":13,"template_kind_name":"registration","inherited":false},{"id":62,"name":"remote_execution_pull_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":63,"name":"Grubby - default","template_kind_id":8,"template_kind_name":"script","inherited":false},{"id":64,"name":"Windows - peSetup.cmd","template_kind_id":8,"template_kind_name":"script","inherited":false},{"id":65,"name":"alterator_pkglist","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":66,"name":"saltstack_minion","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":67,"name":"ansible_provisioning_callback","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":68,"name":"ansible_tower_callback_script","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":69,"name":"ansible_tower_callback_service","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":70,"name":"blacklist_kernel_modules","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":71,"name":"bmc_nic_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":72,"name":"built","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":74,"name":"coreos_cloudconfig","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":75,"name":"create_users","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":76,"name":"csr_attributes.yaml","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":77,"name":"efibootmgr_netboot","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":78,"name":"eject_cdrom","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":79,"name":"epel","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":80,"name":"fips_packages","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":81,"name":"fix_hosts","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":82,"name":"freeipa_register","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":83,"name":"http_proxy","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":84,"name":"insights","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":85,"name":"kickstart_ifcfg_bond_interface","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":86,"name":"kickstart_ifcfg_bonded_interface","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":87,"name":"rancheros_cloudconfig","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":111,"name":"schedule_reboot","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":88,"name":"kickstart_ifcfg_generic_interface","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":89,"name":"redhat_register","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":90,"name":"kickstart_ifcfg_get_identifier_names","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":91,"name":"kickstart_kernel_options","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":92,"name":"kickstart_networking_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":93,"name":"ntp","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":94,"name":"pkg_manager","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":95,"name":"preseed_kernel_options","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":96,"name":"remote_execution_ssh_keys","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":97,"name":"preseed_netplan_generic_interface","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":98,"name":"preseed_netplan_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":99,"name":"preseed_networking_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":100,"name":"puppet.conf","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":101,"name":"puppet_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":102,"name":"puppetlabs_repo","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":103,"name":"pxegrub2_chainload","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":104,"name":"pxegrub2_discovery","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":105,"name":"pxegrub2_mac","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":106,"name":"pxegrub_chainload","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":107,"name":"pxegrub_discovery","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":108,"name":"pxelinux_chainload","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":109,"name":"pxelinux_discovery","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":110,"name":"saltstack_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":112,"name":"Windows - network","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":113,"name":"yum_proxy","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":114,"name":"AutoYaST - default user data","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":115,"name":"Kickstart - default user data","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":116,"name":"Preseed - Autoinstall cloud-init user data","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":117,"name":"Preseed - default user data","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":118,"name":"UserData - default","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":119,"name":"UserData - open-vm-tools","template_kind_id":9,"template_kind_name":"user_data","inherited":false}],"domains":[],"realms":[],"hostgroups":[],"organizations":[],"hosts_count":0,"parameters":[{}],"deprecations":{"environments":"Environments + 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":11,"name":"PXEGrub2 + default local boot","template_kind_id":4,"template_kind_name":"PXEGrub2","inherited":false},{"id":12,"name":"PXEGrub2 + global default","template_kind_id":4,"template_kind_name":"PXEGrub2","inherited":false},{"id":13,"name":"Alterator + default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":14,"name":"AutoYaST + default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":15,"name":"CoreOS + PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":16,"name":"FreeBSD + (mfsBSD) PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":17,"name":"Kickstart + default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":18,"name":"Kickstart + oVirt-RHVH PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","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":79,"name":"eject_cdrom","template_kind_id":null,"template_kind_name":null,"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":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":25,"name":"PXELinux + global default","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":26,"name":"RancherOS + PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":27,"name":"WAIK + default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":28,"name":"Windows + default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":29,"name":"XenServer + default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":30,"name":"Junos + default ZTP config","template_kind_id":10,"template_kind_name":"ZTP","inherited":false},{"id":32,"name":"Alterator + default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":80,"name":"epel","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":34,"name":"Jumpstart + default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":35,"name":"Junos + default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":37,"name":"Preseed + default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":38,"name":"Windows + default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":39,"name":"XenServer + default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":40,"name":"Linux + host_init_config default","template_kind_id":1,"template_kind_name":"host_init_config","inherited":false},{"id":41,"name":"AutoYaST + default iPXE","template_kind_id":5,"template_kind_name":"iPXE","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":72,"name":"bmc_nic_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":44,"name":"iPXE + intermediate script","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":45,"name":"Kickstart + default iPXE","template_kind_id":5,"template_kind_name":"iPXE","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":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":81,"name":"fips_packages","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":50,"name":"Alterator + default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":51,"name":"AutoYaST + default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":52,"name":"AutoYaST + SLES default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":53,"name":"CoreOS + provision","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":54,"name":"FreeBSD + (mfsBSD) provision","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":55,"name":"Jumpstart + default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":56,"name":"Junos + default SLAX","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":70,"name":"ansible_tower_callback_service","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":59,"name":"Preseed + default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":60,"name":"RancherOS + provision","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":61,"name":"Windows + default provision","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":62,"name":"XenServer + default answerfile","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":63,"name":"Global + Registration","template_kind_id":13,"template_kind_name":"registration","inherited":false},{"id":64,"name":"remote_execution_pull_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":65,"name":"Grubby + default","template_kind_id":8,"template_kind_name":"script","inherited":false},{"id":66,"name":"Windows + peSetup.cmd","template_kind_id":8,"template_kind_name":"script","inherited":false},{"id":67,"name":"alterator_pkglist","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":68,"name":"ansible_provisioning_callback","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":69,"name":"ansible_tower_callback_script","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":71,"name":"blacklist_kernel_modules","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":73,"name":"built","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":74,"name":"chef_client","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":75,"name":"coreos_cloudconfig","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":76,"name":"create_users","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":77,"name":"csr_attributes.yaml","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":78,"name":"efibootmgr_netboot","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":82,"name":"fix_hosts","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":83,"name":"freeipa_register","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":84,"name":"http_proxy","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":85,"name":"insights","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":86,"name":"kickstart_ifcfg_bond_interface","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":87,"name":"kickstart_ifcfg_bonded_interface","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":88,"name":"kickstart_ifcfg_generic_interface","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":89,"name":"kickstart_ifcfg_get_identifier_names","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":91,"name":"kickstart_networking_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":92,"name":"kickstart_rhsm","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":93,"name":"ntp","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":95,"name":"preseed_kernel_options","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":96,"name":"preseed_kernel_options_autoinstall","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":97,"name":"preseed_netplan_generic_interface","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":98,"name":"preseed_netplan_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":99,"name":"preseed_networking_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":106,"name":"pxegrub_chainload","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":100,"name":"puppet.conf","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":101,"name":"puppet_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":102,"name":"puppetlabs_repo","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":103,"name":"pxegrub2_chainload","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":104,"name":"pxegrub2_discovery","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":105,"name":"pxegrub2_mac","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":107,"name":"pxegrub_discovery","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":108,"name":"pxelinux_chainload","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":109,"name":"pxelinux_discovery","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":110,"name":"rancheros_cloudconfig","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":124,"name":"UserData + open-vm-tools","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":125,"name":"Windows + default user data","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":112,"name":"remote_execution_ssh_keys","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":113,"name":"saltstack_minion","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":114,"name":"saltstack_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":115,"name":"schedule_reboot","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":117,"name":"Windows + network","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":118,"name":"yum_proxy","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":119,"name":"AutoYaST + default user data","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":120,"name":"Kickstart + default user data","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":122,"name":"Preseed + default user data","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":90,"name":"kickstart_kernel_options","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":36,"name":"Kickstart + default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":57,"name":"Kickstart + default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":58,"name":"Kickstart + oVirt-RHVH","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":149,"name":"disk_enc_clevis_tang","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":150,"name":"kickstart_network_interface","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":94,"name":"pkg_manager","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":151,"name":"preseed_autoinstall_clevis_tang_wrapper","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":111,"name":"redhat_register","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":116,"name":"subscription_manager_setup","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}],"domains":[],"realms":[],"hostgroups":[],"organizations":[],"hosts_count":0,"parameters":[{}],"deprecations":{"environments":"Environments got deprecated from this endpoint."}}' headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive + Content-Length: + - '19140' 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''; @@ -313,13 +325,11 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.4.0 + - 3.11.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: diff --git a/tests/test_playbooks/fixtures/location-9.yml b/tests/test_playbooks/fixtures/location-9.yml index 938d1eb4e..7d6b35d83 100644 --- a/tests/test_playbooks/fixtures/location-9.yml +++ b/tests/test_playbooks/fixtures/location-9.yml @@ -14,12 +14,14 @@ interactions: uri: https://foreman.example.org/api/status response: body: - string: '{"result":"ok","status":200,"version":"3.4.0","api_version":2}' + string: '{"result":"ok","status":200,"version":"3.11.0-develop","api_version":2}' headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive + Content-Length: + - '71' 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.4.0 + - 3.11.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: @@ -70,14 +70,16 @@ interactions: body: string: "{\n \"total\": 5,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": 4294967296,\n \"search\": \"title=\\\"Test Location\\\"\",\n \"sort\": {\n - \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"ancestry\":null,\"parent_id\":null,\"parent_name\":null,\"created_at\":\"2022-11-08 - 09:29:05 UTC\",\"updated_at\":\"2022-11-08 09:29:05 UTC\",\"id\":4,\"name\":\"Test + \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"ancestry\":null,\"parent_id\":null,\"parent_name\":null,\"created_at\":\"2024-07-25 + 12:00:01 UTC\",\"updated_at\":\"2024-07-25 12:00:01 UTC\",\"id\":7,\"name\":\"Test Location\",\"title\":\"Test Location\",\"description\":null}]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive + Content-Length: + - '384' 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.4.0 + - 3.11.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,7 +125,7 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: DELETE - uri: https://foreman.example.org/api/locations/4 + uri: https://foreman.example.org/api/locations/7 response: body: string: '{"error":{"message":"Cannot delete Test Location because it has nested @@ -135,6 +135,8 @@ interactions: - max-age=0, private, must-revalidate Connection: - Keep-Alive + Content-Length: + - '83' 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 +150,11 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.4.0 + - 3.11.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: diff --git a/tests/test_playbooks/fixtures/locations_role-0.yml b/tests/test_playbooks/fixtures/locations_role-0.yml index b855fde87..23861074c 100644 --- a/tests/test_playbooks/fixtures/locations_role-0.yml +++ b/tests/test_playbooks/fixtures/locations_role-0.yml @@ -14,14 +14,14 @@ interactions: uri: https://foreman.example.org/api/status response: body: - string: '{"result":"ok","status":200,"version":"3.7.0","api_version":2}' + string: '{"result":"ok","status":200,"version":"3.11.0-develop","api_version":2}' headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive Content-Length: - - '62' + - '71' 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''; @@ -35,7 +35,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0 + - 3.11.0-develop Keep-Alive: - timeout=15, max=100 Strict-Transport-Security: @@ -91,7 +91,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0 + - 3.11.0-develop Keep-Alive: - timeout=15, max=99 Strict-Transport-Security: @@ -128,42 +128,49 @@ interactions: uri: https://foreman.example.org/api/locations response: body: - string: '{"select_all_types":["ProvisioningTemplate","Hostgroup"],"description":null,"created_at":"2023-06-26 - 09:25:00 UTC","updated_at":"2023-06-26 09:25:00 UTC","ancestry":null,"parent_id":null,"parent_name":null,"id":4,"name":"Test - Location 1","title":"Test Location 1","users":[],"smart_proxies":[],"subnets":[],"compute_resources":[],"media":[],"ptables":[{"description":null,"os_family":"Suse","created_at":"2023-06-23 - 10:34:42 UTC","updated_at":"2023-06-23 10:34:42 UTC","name":"AutoYaST entire - SCSI disk","id":125,"inherited":false},{"description":null,"os_family":"Suse","created_at":"2023-06-23 - 10:34:43 UTC","updated_at":"2023-06-23 10:34:43 UTC","name":"AutoYaST entire - virtual disk","id":126,"inherited":false},{"description":null,"os_family":"Suse","created_at":"2023-06-23 - 10:34:43 UTC","updated_at":"2023-06-23 10:34:43 UTC","name":"AutoYaST LVM","id":127,"inherited":false},{"description":null,"os_family":"Coreos","created_at":"2023-06-23 - 10:34:43 UTC","updated_at":"2023-06-23 10:34:43 UTC","name":"CoreOS default - fake","id":128,"inherited":false},{"description":null,"os_family":"Rancheros","created_at":"2023-06-23 - 10:34:43 UTC","updated_at":"2023-06-23 10:34:43 UTC","name":"Empty","id":129,"inherited":false},{"description":null,"os_family":"Freebsd","created_at":"2023-06-23 - 10:34:43 UTC","updated_at":"2023-06-23 10:34:43 UTC","name":"FreeBSD default - fake","id":130,"inherited":false},{"description":null,"os_family":"Solaris","created_at":"2023-06-23 - 10:34:43 UTC","updated_at":"2023-06-23 10:34:43 UTC","name":"Jumpstart default","id":131,"inherited":false},{"description":null,"os_family":"Solaris","created_at":"2023-06-23 - 10:34:43 UTC","updated_at":"2023-06-23 10:34:43 UTC","name":"Jumpstart mirrored","id":132,"inherited":false},{"description":null,"os_family":"Junos","created_at":"2023-06-23 - 10:34:43 UTC","updated_at":"2023-06-23 10:34:43 UTC","name":"Junos default - fake","id":133,"inherited":false},{"description":null,"os_family":"Redhat","created_at":"2023-06-23 - 10:34:43 UTC","updated_at":"2023-06-23 10:34:43 UTC","name":"Kickstart custom","id":134,"inherited":false},{"description":null,"os_family":"Redhat","created_at":"2023-06-23 - 10:34:43 UTC","updated_at":"2023-06-23 10:34:43 UTC","name":"Kickstart default","id":135,"inherited":false},{"description":null,"os_family":"Redhat","created_at":"2023-06-23 - 10:34:43 UTC","updated_at":"2023-06-23 10:34:43 UTC","name":"Kickstart default - thin","id":136,"inherited":false},{"description":null,"os_family":"Redhat","created_at":"2023-06-23 - 10:34:43 UTC","updated_at":"2023-06-23 10:34:43 UTC","name":"Kickstart dynamic","id":137,"inherited":false},{"description":null,"os_family":"NXOS","created_at":"2023-06-23 - 10:34:43 UTC","updated_at":"2023-06-23 10:34:43 UTC","name":"NX-OS default - fake","id":138,"inherited":false},{"description":null,"os_family":"Debian","created_at":"2023-06-23 - 10:34:43 UTC","updated_at":"2023-06-23 10:34:43 UTC","name":"Preseed default","id":139,"inherited":false},{"description":"Preseed + string: '{"select_all_types":[],"description":null,"created_at":"2024-07-25 + 12:15:08 UTC","updated_at":"2024-07-25 12:15:08 UTC","ancestry":null,"parent_id":null,"parent_name":null,"id":13,"name":"Test + Location 1","title":"Test Location 1","users":[],"smart_proxies":[],"subnets":[],"compute_resources":[],"media":[],"ptables":[{"description":null,"os_family":"Suse","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"AutoYaST entire + virtual disk","id":127,"inherited":false},{"description":null,"os_family":"Solaris","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"Jumpstart default","id":132,"inherited":false},{"description":null,"os_family":"Solaris","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"Jumpstart mirrored","id":133,"inherited":false},{"description":null,"os_family":"Junos","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"Junos default + fake","id":134,"inherited":false},{"description":null,"os_family":"Suse","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"AutoYaST LVM","id":128,"inherited":false},{"description":null,"os_family":"Coreos","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"CoreOS default + fake","id":129,"inherited":false},{"description":null,"os_family":"Rancheros","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"Empty","id":130,"inherited":false},{"description":null,"os_family":"Suse","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"AutoYaST entire + SCSI disk","id":126,"inherited":false},{"description":null,"os_family":"Freebsd","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"FreeBSD default + fake","id":131,"inherited":false},{"description":null,"os_family":"Redhat","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"Kickstart custom","id":135,"inherited":false},{"description":null,"os_family":"Redhat","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"Kickstart default","id":136,"inherited":false},{"description":null,"os_family":"Redhat","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"Kickstart default + thin","id":137,"inherited":false},{"description":null,"os_family":"Redhat","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"Kickstart dynamic","id":138,"inherited":false},{"description":null,"os_family":"NXOS","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"NX-OS default + fake","id":139,"inherited":false},{"description":null,"os_family":"Debian","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"Preseed default","id":140,"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-06-23 - 10:34:43 UTC","updated_at":"2023-06-23 10:34:43 UTC","name":"Preseed default - autoinstall","id":140,"inherited":false},{"description":null,"os_family":"Debian","created_at":"2023-06-23 - 10:34:43 UTC","updated_at":"2023-06-23 10:34:43 UTC","name":"Preseed default - LVM","id":141,"inherited":false},{"description":null,"os_family":"Windows","created_at":"2023-06-23 - 10:34:43 UTC","updated_at":"2023-06-23 10:34:43 UTC","name":"Windows default - partition table","id":142,"inherited":false},{"description":null,"os_family":"Windows","created_at":"2023-06-23 - 10:34:43 UTC","updated_at":"2023-06-23 10:34:43 UTC","name":"Windows default - GPT EFI partition table","id":143,"inherited":false},{"description":null,"os_family":"Xenserver","created_at":"2023-06-23 - 10:34:43 UTC","updated_at":"2023-06-23 10:34:43 UTC","name":"XenServer default","id":144,"inherited":false}],"provisioning_templates":[{"id":1,"name":"NX-OS + LVM. The snippet is automatically indented by 2 spaces. For reference:\nhttps://ubuntu.com/server/docs/install/autoinstall-reference","os_family":"Debian","created_at":"2024-04-15 + 09:11:37 UTC","updated_at":"2024-04-15 09:11:37 UTC","name":"Preseed default + autoinstall","id":141,"inherited":false},{"description":null,"os_family":"Debian","created_at":"2024-04-15 + 09:11:37 UTC","updated_at":"2024-04-15 09:11:37 UTC","name":"Preseed default + LVM","id":142,"inherited":false},{"description":null,"os_family":"Windows","created_at":"2024-04-15 + 09:11:37 UTC","updated_at":"2024-04-15 09:11:37 UTC","name":"Windows default + partition table","id":143,"inherited":false},{"description":null,"os_family":"Windows","created_at":"2024-04-15 + 09:11:37 UTC","updated_at":"2024-04-15 09:11:37 UTC","name":"Windows default + GPT EFI partition table","id":144,"inherited":false},{"description":null,"os_family":"Xenserver","created_at":"2024-04-15 + 09:11:37 UTC","updated_at":"2024-04-15 09:11:37 UTC","name":"XenServer default","id":145,"inherited":false},{"description":null,"os_family":"Redhat","created_at":"2024-04-22 + 11:15:26 UTC","updated_at":"2024-04-22 11:15:26 UTC","name":"Kickstart default + encrypted","id":152,"inherited":false},{"description":"Preseed Autoinstall + default storage snippet configures drives automatically\nwith LVM and disk + encryption.\nRequires Ubuntu >= 22.04.3.\nThe snippet is automatically indented + by 2 spaces. For reference:\nhttps://ubuntu.com/server/docs/install/autoinstall-reference","os_family":"Debian","created_at":"2024-04-22 + 11:15:26 UTC","updated_at":"2024-04-22 11:15:26 UTC","name":"Preseed default + autoinstall encrypted","id":153,"inherited":false}],"provisioning_templates":[{"id":1,"name":"NX-OS default POAP setup","template_kind_id":11,"template_kind_name":"POAP","inherited":false},{"id":2,"name":"AutoYaST default PXEGrub","template_kind_id":3,"template_kind_name":"PXEGrub","inherited":false},{"id":3,"name":"Jumpstart default PXEGrub","template_kind_id":3,"template_kind_name":"PXEGrub","inherited":false},{"id":4,"name":"Kickstart @@ -182,9 +189,8 @@ interactions: (mfsBSD) PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":17,"name":"Kickstart default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":18,"name":"Kickstart oVirt-RHVH PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":19,"name":"Preseed - default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":57,"name":"Junos - default SLAX","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":20,"name":"Preseed - default PXELinux Autoinstall","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":21,"name":"PXELinux + 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":79,"name":"eject_cdrom","template_kind_id":null,"template_kind_name":null,"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":23,"name":"PXELinux default local boot","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":24,"name":"PXELinux @@ -194,12 +200,10 @@ interactions: default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":28,"name":"Windows default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":29,"name":"XenServer default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":30,"name":"Junos - default ZTP config","template_kind_id":10,"template_kind_name":"ZTP","inherited":false},{"id":31,"name":"CloudInit - default","template_kind_id":12,"template_kind_name":"cloud-init","inherited":false},{"id":32,"name":"Alterator - default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":33,"name":"FreeBSD + default ZTP config","template_kind_id":10,"template_kind_name":"ZTP","inherited":false},{"id":32,"name":"Alterator + default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":80,"name":"epel","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":34,"name":"Jumpstart default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":35,"name":"Junos - default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":36,"name":"Kickstart default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":37,"name":"Preseed default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":38,"name":"Windows default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":39,"name":"XenServer @@ -207,36 +211,40 @@ interactions: host_init_config default","template_kind_id":1,"template_kind_name":"host_init_config","inherited":false},{"id":41,"name":"AutoYaST default iPXE","template_kind_id":5,"template_kind_name":"iPXE","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 + global default","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":72,"name":"bmc_nic_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":44,"name":"iPXE intermediate script","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":45,"name":"Kickstart default iPXE","template_kind_id":5,"template_kind_name":"iPXE","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":104,"name":"pkg_manager","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":48,"name":"Windows + default iPXE Autoinstall","template_kind_id":5,"template_kind_name":"iPXE","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":50,"name":"Alterator - default","template_kind_id":6,"template_kind_name":"provision","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":53,"name":"AutoYaST - SLES default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":54,"name":"CoreOS - provision","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":55,"name":"FreeBSD - (mfsBSD) provision","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":56,"name":"Jumpstart - default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":58,"name":"Kickstart - default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":59,"name":"Kickstart - oVirt-RHVH","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":60,"name":"Preseed - default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":61,"name":"RancherOS - provision","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":62,"name":"Windows - default provision","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":63,"name":"XenServer - default answerfile","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":64,"name":"Global - Registration","template_kind_id":13,"template_kind_name":"registration","inherited":false},{"id":65,"name":"remote_execution_pull_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":66,"name":"Grubby - default","template_kind_id":8,"template_kind_name":"script","inherited":false},{"id":67,"name":"Windows - peSetup.cmd","template_kind_id":8,"template_kind_name":"script","inherited":false},{"id":68,"name":"alterator_pkglist","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":70,"name":"ansible_provisioning_callback","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":72,"name":"ansible_tower_callback_script","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":74,"name":"ansible_tower_callback_service","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":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":80,"name":"coreos_cloudconfig","template_kind_id":null,"template_kind_name":null,"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":88,"name":"freeipa_register","template_kind_id":null,"template_kind_name":null,"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":91,"name":"Windows - network","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":93,"name":"pxegrub_discovery","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":94,"name":"kickstart_ifcfg_bonded_interface","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":95,"name":"pxelinux_chainload","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":103,"name":"ntp","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":97,"name":"pxelinux_discovery","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":99,"name":"yum_proxy","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":102,"name":"kickstart_rhsm","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":105,"name":"preseed_kernel_options","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":106,"name":"rancheros_cloudconfig","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":108,"name":"redhat_register","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":113,"name":"puppet_setup","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":115,"name":"pxegrub2_chainload","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":116,"name":"pxegrub2_discovery","template_kind_id":null,"template_kind_name":null,"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":119,"name":"AutoYaST + default iPXE httpboot","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":81,"name":"fips_packages","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":50,"name":"Alterator + default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":51,"name":"AutoYaST + default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":52,"name":"AutoYaST + SLES default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":53,"name":"CoreOS + provision","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":54,"name":"FreeBSD + (mfsBSD) provision","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":55,"name":"Jumpstart + default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":56,"name":"Junos + default SLAX","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":70,"name":"ansible_tower_callback_service","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":59,"name":"Preseed + default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":60,"name":"RancherOS + provision","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":61,"name":"Windows + default provision","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":62,"name":"XenServer + default answerfile","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":63,"name":"Global + Registration","template_kind_id":13,"template_kind_name":"registration","inherited":false},{"id":64,"name":"remote_execution_pull_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":65,"name":"Grubby + default","template_kind_id":8,"template_kind_name":"script","inherited":false},{"id":66,"name":"Windows + peSetup.cmd","template_kind_id":8,"template_kind_name":"script","inherited":false},{"id":67,"name":"alterator_pkglist","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":68,"name":"ansible_provisioning_callback","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":69,"name":"ansible_tower_callback_script","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":71,"name":"blacklist_kernel_modules","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":73,"name":"built","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":74,"name":"chef_client","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":75,"name":"coreos_cloudconfig","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":76,"name":"create_users","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":77,"name":"csr_attributes.yaml","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":78,"name":"efibootmgr_netboot","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":82,"name":"fix_hosts","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":83,"name":"freeipa_register","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":84,"name":"http_proxy","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":85,"name":"insights","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":86,"name":"kickstart_ifcfg_bond_interface","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":87,"name":"kickstart_ifcfg_bonded_interface","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":88,"name":"kickstart_ifcfg_generic_interface","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":89,"name":"kickstart_ifcfg_get_identifier_names","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":91,"name":"kickstart_networking_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":92,"name":"kickstart_rhsm","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":93,"name":"ntp","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":95,"name":"preseed_kernel_options","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":96,"name":"preseed_kernel_options_autoinstall","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":97,"name":"preseed_netplan_generic_interface","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":98,"name":"preseed_netplan_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":99,"name":"preseed_networking_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":106,"name":"pxegrub_chainload","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":100,"name":"puppet.conf","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":101,"name":"puppet_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":102,"name":"puppetlabs_repo","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":103,"name":"pxegrub2_chainload","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":104,"name":"pxegrub2_discovery","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":105,"name":"pxegrub2_mac","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":107,"name":"pxegrub_discovery","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":108,"name":"pxelinux_chainload","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":109,"name":"pxelinux_discovery","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":110,"name":"rancheros_cloudconfig","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":124,"name":"UserData + open-vm-tools","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":125,"name":"Windows + default user data","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":112,"name":"remote_execution_ssh_keys","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":113,"name":"saltstack_minion","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":114,"name":"saltstack_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":115,"name":"schedule_reboot","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":117,"name":"Windows + network","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":118,"name":"yum_proxy","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":119,"name":"AutoYaST default user data","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":120,"name":"Kickstart - default user data","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":121,"name":"Preseed - Autoinstall cloud-init user data","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":122,"name":"Preseed - default user data","template_kind_id":9,"template_kind_name":"user_data","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}],"domains":[],"realms":[],"hostgroups":[],"organizations":[],"hosts_count":0,"parameters":[],"deprecations":{"environments":"Environments + default user data","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":122,"name":"Preseed + default user data","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":90,"name":"kickstart_kernel_options","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":36,"name":"Kickstart + default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":57,"name":"Kickstart + default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":58,"name":"Kickstart + oVirt-RHVH","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":149,"name":"disk_enc_clevis_tang","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":150,"name":"kickstart_network_interface","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":94,"name":"pkg_manager","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":151,"name":"preseed_autoinstall_clevis_tang_wrapper","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":111,"name":"redhat_register","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":116,"name":"subscription_manager_setup","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}],"domains":[],"realms":[],"hostgroups":[],"organizations":[{"id":1,"name":"Default + Organization","title":"Default Organization","description":null}],"hosts_count":0,"parameters":[],"deprecations":{"environments":"Environments got deprecated from this endpoint."}}' headers: Cache-Control: @@ -244,7 +252,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '18043' + - '19207' 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''; @@ -258,7 +266,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0 + - 3.11.0-develop Keep-Alive: - timeout=15, max=98 Strict-Transport-Security: diff --git a/tests/test_playbooks/fixtures/locations_role-1.yml b/tests/test_playbooks/fixtures/locations_role-1.yml index 6fc377fb4..4ecf74939 100644 --- a/tests/test_playbooks/fixtures/locations_role-1.yml +++ b/tests/test_playbooks/fixtures/locations_role-1.yml @@ -14,14 +14,14 @@ interactions: uri: https://foreman.example.org/api/status response: body: - string: '{"result":"ok","status":200,"version":"3.7.0","api_version":2}' + string: '{"result":"ok","status":200,"version":"3.11.0-develop","api_version":2}' headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive Content-Length: - - '62' + - '71' 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''; @@ -35,7 +35,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0 + - 3.11.0-develop Keep-Alive: - timeout=15, max=100 Strict-Transport-Security: @@ -91,7 +91,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0 + - 3.11.0-develop Keep-Alive: - timeout=15, max=99 Strict-Transport-Security: @@ -110,7 +110,7 @@ interactions: code: 200 message: OK - request: - body: '{"location": {"name": "Test Location 2"}}' + body: '{"location": {"name": "Test Location 2", "description": "2nd location"}}' headers: Accept: - application/json;version=2 @@ -119,7 +119,7 @@ interactions: Connection: - keep-alive Content-Length: - - '41' + - '72' Content-Type: - application/json User-Agent: @@ -128,42 +128,49 @@ interactions: uri: https://foreman.example.org/api/locations response: body: - string: '{"select_all_types":["ProvisioningTemplate","Hostgroup"],"description":null,"created_at":"2023-06-26 - 09:25:02 UTC","updated_at":"2023-06-26 09:25:02 UTC","ancestry":null,"parent_id":null,"parent_name":null,"id":5,"name":"Test - Location 2","title":"Test Location 2","users":[],"smart_proxies":[],"subnets":[],"compute_resources":[],"media":[],"ptables":[{"description":null,"os_family":"Suse","created_at":"2023-06-23 - 10:34:42 UTC","updated_at":"2023-06-23 10:34:42 UTC","name":"AutoYaST entire - SCSI disk","id":125,"inherited":false},{"description":null,"os_family":"Suse","created_at":"2023-06-23 - 10:34:43 UTC","updated_at":"2023-06-23 10:34:43 UTC","name":"AutoYaST entire - virtual disk","id":126,"inherited":false},{"description":null,"os_family":"Suse","created_at":"2023-06-23 - 10:34:43 UTC","updated_at":"2023-06-23 10:34:43 UTC","name":"AutoYaST LVM","id":127,"inherited":false},{"description":null,"os_family":"Coreos","created_at":"2023-06-23 - 10:34:43 UTC","updated_at":"2023-06-23 10:34:43 UTC","name":"CoreOS default - fake","id":128,"inherited":false},{"description":null,"os_family":"Rancheros","created_at":"2023-06-23 - 10:34:43 UTC","updated_at":"2023-06-23 10:34:43 UTC","name":"Empty","id":129,"inherited":false},{"description":null,"os_family":"Freebsd","created_at":"2023-06-23 - 10:34:43 UTC","updated_at":"2023-06-23 10:34:43 UTC","name":"FreeBSD default - fake","id":130,"inherited":false},{"description":null,"os_family":"Solaris","created_at":"2023-06-23 - 10:34:43 UTC","updated_at":"2023-06-23 10:34:43 UTC","name":"Jumpstart default","id":131,"inherited":false},{"description":null,"os_family":"Solaris","created_at":"2023-06-23 - 10:34:43 UTC","updated_at":"2023-06-23 10:34:43 UTC","name":"Jumpstart mirrored","id":132,"inherited":false},{"description":null,"os_family":"Junos","created_at":"2023-06-23 - 10:34:43 UTC","updated_at":"2023-06-23 10:34:43 UTC","name":"Junos default - fake","id":133,"inherited":false},{"description":null,"os_family":"Redhat","created_at":"2023-06-23 - 10:34:43 UTC","updated_at":"2023-06-23 10:34:43 UTC","name":"Kickstart custom","id":134,"inherited":false},{"description":null,"os_family":"Redhat","created_at":"2023-06-23 - 10:34:43 UTC","updated_at":"2023-06-23 10:34:43 UTC","name":"Kickstart default","id":135,"inherited":false},{"description":null,"os_family":"Redhat","created_at":"2023-06-23 - 10:34:43 UTC","updated_at":"2023-06-23 10:34:43 UTC","name":"Kickstart default - thin","id":136,"inherited":false},{"description":null,"os_family":"Redhat","created_at":"2023-06-23 - 10:34:43 UTC","updated_at":"2023-06-23 10:34:43 UTC","name":"Kickstart dynamic","id":137,"inherited":false},{"description":null,"os_family":"NXOS","created_at":"2023-06-23 - 10:34:43 UTC","updated_at":"2023-06-23 10:34:43 UTC","name":"NX-OS default - fake","id":138,"inherited":false},{"description":null,"os_family":"Debian","created_at":"2023-06-23 - 10:34:43 UTC","updated_at":"2023-06-23 10:34:43 UTC","name":"Preseed default","id":139,"inherited":false},{"description":"Preseed + string: '{"select_all_types":[],"description":"2nd location","created_at":"2024-07-25 + 12:15:09 UTC","updated_at":"2024-07-25 12:15:09 UTC","ancestry":null,"parent_id":null,"parent_name":null,"id":14,"name":"Test + Location 2","title":"Test Location 2","users":[],"smart_proxies":[],"subnets":[],"compute_resources":[],"media":[],"ptables":[{"description":null,"os_family":"Suse","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"AutoYaST entire + virtual disk","id":127,"inherited":false},{"description":null,"os_family":"Solaris","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"Jumpstart default","id":132,"inherited":false},{"description":null,"os_family":"Solaris","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"Jumpstart mirrored","id":133,"inherited":false},{"description":null,"os_family":"Junos","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"Junos default + fake","id":134,"inherited":false},{"description":null,"os_family":"Suse","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"AutoYaST LVM","id":128,"inherited":false},{"description":null,"os_family":"Coreos","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"CoreOS default + fake","id":129,"inherited":false},{"description":null,"os_family":"Rancheros","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"Empty","id":130,"inherited":false},{"description":null,"os_family":"Suse","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"AutoYaST entire + SCSI disk","id":126,"inherited":false},{"description":null,"os_family":"Freebsd","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"FreeBSD default + fake","id":131,"inherited":false},{"description":null,"os_family":"Redhat","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"Kickstart custom","id":135,"inherited":false},{"description":null,"os_family":"Redhat","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"Kickstart default","id":136,"inherited":false},{"description":null,"os_family":"Redhat","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"Kickstart default + thin","id":137,"inherited":false},{"description":null,"os_family":"Redhat","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"Kickstart dynamic","id":138,"inherited":false},{"description":null,"os_family":"NXOS","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"NX-OS default + fake","id":139,"inherited":false},{"description":null,"os_family":"Debian","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"Preseed default","id":140,"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-06-23 - 10:34:43 UTC","updated_at":"2023-06-23 10:34:43 UTC","name":"Preseed default - autoinstall","id":140,"inherited":false},{"description":null,"os_family":"Debian","created_at":"2023-06-23 - 10:34:43 UTC","updated_at":"2023-06-23 10:34:43 UTC","name":"Preseed default - LVM","id":141,"inherited":false},{"description":null,"os_family":"Windows","created_at":"2023-06-23 - 10:34:43 UTC","updated_at":"2023-06-23 10:34:43 UTC","name":"Windows default - partition table","id":142,"inherited":false},{"description":null,"os_family":"Windows","created_at":"2023-06-23 - 10:34:43 UTC","updated_at":"2023-06-23 10:34:43 UTC","name":"Windows default - GPT EFI partition table","id":143,"inherited":false},{"description":null,"os_family":"Xenserver","created_at":"2023-06-23 - 10:34:43 UTC","updated_at":"2023-06-23 10:34:43 UTC","name":"XenServer default","id":144,"inherited":false}],"provisioning_templates":[{"id":1,"name":"NX-OS + LVM. The snippet is automatically indented by 2 spaces. For reference:\nhttps://ubuntu.com/server/docs/install/autoinstall-reference","os_family":"Debian","created_at":"2024-04-15 + 09:11:37 UTC","updated_at":"2024-04-15 09:11:37 UTC","name":"Preseed default + autoinstall","id":141,"inherited":false},{"description":null,"os_family":"Debian","created_at":"2024-04-15 + 09:11:37 UTC","updated_at":"2024-04-15 09:11:37 UTC","name":"Preseed default + LVM","id":142,"inherited":false},{"description":null,"os_family":"Windows","created_at":"2024-04-15 + 09:11:37 UTC","updated_at":"2024-04-15 09:11:37 UTC","name":"Windows default + partition table","id":143,"inherited":false},{"description":null,"os_family":"Windows","created_at":"2024-04-15 + 09:11:37 UTC","updated_at":"2024-04-15 09:11:37 UTC","name":"Windows default + GPT EFI partition table","id":144,"inherited":false},{"description":null,"os_family":"Xenserver","created_at":"2024-04-15 + 09:11:37 UTC","updated_at":"2024-04-15 09:11:37 UTC","name":"XenServer default","id":145,"inherited":false},{"description":null,"os_family":"Redhat","created_at":"2024-04-22 + 11:15:26 UTC","updated_at":"2024-04-22 11:15:26 UTC","name":"Kickstart default + encrypted","id":152,"inherited":false},{"description":"Preseed Autoinstall + default storage snippet configures drives automatically\nwith LVM and disk + encryption.\nRequires Ubuntu >= 22.04.3.\nThe snippet is automatically indented + by 2 spaces. For reference:\nhttps://ubuntu.com/server/docs/install/autoinstall-reference","os_family":"Debian","created_at":"2024-04-22 + 11:15:26 UTC","updated_at":"2024-04-22 11:15:26 UTC","name":"Preseed default + autoinstall encrypted","id":153,"inherited":false}],"provisioning_templates":[{"id":1,"name":"NX-OS default POAP setup","template_kind_id":11,"template_kind_name":"POAP","inherited":false},{"id":2,"name":"AutoYaST default PXEGrub","template_kind_id":3,"template_kind_name":"PXEGrub","inherited":false},{"id":3,"name":"Jumpstart default PXEGrub","template_kind_id":3,"template_kind_name":"PXEGrub","inherited":false},{"id":4,"name":"Kickstart @@ -182,9 +189,8 @@ interactions: (mfsBSD) PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":17,"name":"Kickstart default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":18,"name":"Kickstart oVirt-RHVH PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":19,"name":"Preseed - default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":57,"name":"Junos - default SLAX","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":20,"name":"Preseed - default PXELinux Autoinstall","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":21,"name":"PXELinux + 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":79,"name":"eject_cdrom","template_kind_id":null,"template_kind_name":null,"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":23,"name":"PXELinux default local boot","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":24,"name":"PXELinux @@ -194,12 +200,10 @@ interactions: default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":28,"name":"Windows default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":29,"name":"XenServer default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":30,"name":"Junos - default ZTP config","template_kind_id":10,"template_kind_name":"ZTP","inherited":false},{"id":31,"name":"CloudInit - default","template_kind_id":12,"template_kind_name":"cloud-init","inherited":false},{"id":32,"name":"Alterator - default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":33,"name":"FreeBSD + default ZTP config","template_kind_id":10,"template_kind_name":"ZTP","inherited":false},{"id":32,"name":"Alterator + default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":80,"name":"epel","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":34,"name":"Jumpstart default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":35,"name":"Junos - default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":36,"name":"Kickstart default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":37,"name":"Preseed default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":38,"name":"Windows default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":39,"name":"XenServer @@ -207,36 +211,40 @@ interactions: host_init_config default","template_kind_id":1,"template_kind_name":"host_init_config","inherited":false},{"id":41,"name":"AutoYaST default iPXE","template_kind_id":5,"template_kind_name":"iPXE","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 + global default","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":72,"name":"bmc_nic_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":44,"name":"iPXE intermediate script","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":45,"name":"Kickstart default iPXE","template_kind_id":5,"template_kind_name":"iPXE","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":104,"name":"pkg_manager","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":48,"name":"Windows + default iPXE Autoinstall","template_kind_id":5,"template_kind_name":"iPXE","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":50,"name":"Alterator - default","template_kind_id":6,"template_kind_name":"provision","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":53,"name":"AutoYaST - SLES default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":54,"name":"CoreOS - provision","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":55,"name":"FreeBSD - (mfsBSD) provision","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":56,"name":"Jumpstart - default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":58,"name":"Kickstart - default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":59,"name":"Kickstart - oVirt-RHVH","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":60,"name":"Preseed - default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":61,"name":"RancherOS - provision","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":62,"name":"Windows - default provision","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":63,"name":"XenServer - default answerfile","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":64,"name":"Global - Registration","template_kind_id":13,"template_kind_name":"registration","inherited":false},{"id":65,"name":"remote_execution_pull_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":66,"name":"Grubby - default","template_kind_id":8,"template_kind_name":"script","inherited":false},{"id":67,"name":"Windows - peSetup.cmd","template_kind_id":8,"template_kind_name":"script","inherited":false},{"id":68,"name":"alterator_pkglist","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":70,"name":"ansible_provisioning_callback","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":72,"name":"ansible_tower_callback_script","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":74,"name":"ansible_tower_callback_service","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":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":80,"name":"coreos_cloudconfig","template_kind_id":null,"template_kind_name":null,"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":88,"name":"freeipa_register","template_kind_id":null,"template_kind_name":null,"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":91,"name":"Windows - network","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":93,"name":"pxegrub_discovery","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":94,"name":"kickstart_ifcfg_bonded_interface","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":95,"name":"pxelinux_chainload","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":103,"name":"ntp","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":97,"name":"pxelinux_discovery","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":99,"name":"yum_proxy","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":102,"name":"kickstart_rhsm","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":105,"name":"preseed_kernel_options","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":106,"name":"rancheros_cloudconfig","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":108,"name":"redhat_register","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":113,"name":"puppet_setup","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":115,"name":"pxegrub2_chainload","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":116,"name":"pxegrub2_discovery","template_kind_id":null,"template_kind_name":null,"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":119,"name":"AutoYaST + default iPXE httpboot","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":81,"name":"fips_packages","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":50,"name":"Alterator + default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":51,"name":"AutoYaST + default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":52,"name":"AutoYaST + SLES default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":53,"name":"CoreOS + provision","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":54,"name":"FreeBSD + (mfsBSD) provision","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":55,"name":"Jumpstart + default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":56,"name":"Junos + default SLAX","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":70,"name":"ansible_tower_callback_service","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":59,"name":"Preseed + default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":60,"name":"RancherOS + provision","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":61,"name":"Windows + default provision","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":62,"name":"XenServer + default answerfile","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":63,"name":"Global + Registration","template_kind_id":13,"template_kind_name":"registration","inherited":false},{"id":64,"name":"remote_execution_pull_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":65,"name":"Grubby + default","template_kind_id":8,"template_kind_name":"script","inherited":false},{"id":66,"name":"Windows + peSetup.cmd","template_kind_id":8,"template_kind_name":"script","inherited":false},{"id":67,"name":"alterator_pkglist","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":68,"name":"ansible_provisioning_callback","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":69,"name":"ansible_tower_callback_script","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":71,"name":"blacklist_kernel_modules","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":73,"name":"built","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":74,"name":"chef_client","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":75,"name":"coreos_cloudconfig","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":76,"name":"create_users","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":77,"name":"csr_attributes.yaml","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":78,"name":"efibootmgr_netboot","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":82,"name":"fix_hosts","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":83,"name":"freeipa_register","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":84,"name":"http_proxy","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":85,"name":"insights","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":86,"name":"kickstart_ifcfg_bond_interface","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":87,"name":"kickstart_ifcfg_bonded_interface","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":88,"name":"kickstart_ifcfg_generic_interface","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":89,"name":"kickstart_ifcfg_get_identifier_names","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":91,"name":"kickstart_networking_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":92,"name":"kickstart_rhsm","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":93,"name":"ntp","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":95,"name":"preseed_kernel_options","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":96,"name":"preseed_kernel_options_autoinstall","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":97,"name":"preseed_netplan_generic_interface","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":98,"name":"preseed_netplan_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":99,"name":"preseed_networking_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":106,"name":"pxegrub_chainload","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":100,"name":"puppet.conf","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":101,"name":"puppet_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":102,"name":"puppetlabs_repo","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":103,"name":"pxegrub2_chainload","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":104,"name":"pxegrub2_discovery","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":105,"name":"pxegrub2_mac","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":107,"name":"pxegrub_discovery","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":108,"name":"pxelinux_chainload","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":109,"name":"pxelinux_discovery","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":110,"name":"rancheros_cloudconfig","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":124,"name":"UserData + open-vm-tools","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":125,"name":"Windows + default user data","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":112,"name":"remote_execution_ssh_keys","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":113,"name":"saltstack_minion","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":114,"name":"saltstack_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":115,"name":"schedule_reboot","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":117,"name":"Windows + network","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":118,"name":"yum_proxy","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":119,"name":"AutoYaST default user data","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":120,"name":"Kickstart - default user data","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":121,"name":"Preseed - Autoinstall cloud-init user data","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":122,"name":"Preseed - default user data","template_kind_id":9,"template_kind_name":"user_data","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}],"domains":[],"realms":[],"hostgroups":[],"organizations":[],"hosts_count":0,"parameters":[],"deprecations":{"environments":"Environments + default user data","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":122,"name":"Preseed + default user data","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":90,"name":"kickstart_kernel_options","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":36,"name":"Kickstart + default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":57,"name":"Kickstart + default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":58,"name":"Kickstart + oVirt-RHVH","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":149,"name":"disk_enc_clevis_tang","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":150,"name":"kickstart_network_interface","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":94,"name":"pkg_manager","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":151,"name":"preseed_autoinstall_clevis_tang_wrapper","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":111,"name":"redhat_register","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":116,"name":"subscription_manager_setup","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}],"domains":[],"realms":[],"hostgroups":[],"organizations":[{"id":1,"name":"Default + Organization","title":"Default Organization","description":null}],"hosts_count":0,"parameters":[],"deprecations":{"environments":"Environments got deprecated from this endpoint."}}' headers: Cache-Control: @@ -244,7 +252,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '18043' + - '19217' 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''; @@ -258,7 +266,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0 + - 3.11.0-develop Keep-Alive: - timeout=15, max=98 Strict-Transport-Security: diff --git a/tests/test_playbooks/fixtures/redhat_manifest-0.yml b/tests/test_playbooks/fixtures/redhat_manifest-0.yml index 45667107e..0d360cd63 100644 --- a/tests/test_playbooks/fixtures/redhat_manifest-0.yml +++ b/tests/test_playbooks/fixtures/redhat_manifest-0.yml @@ -1,15 +1,11 @@ interactions: - request: - body: '{}' + body: null headers: Accept: - application/json Connection: - close - Content-Length: - - '2' - Content-Type: - - application/json Host: - subscription.rhsm.redhat.com User-Agent: @@ -34,16 +30,12 @@ interactions: code: 200 message: OK - request: - body: '{}' + body: null headers: Accept: - application/json Connection: - close - Content-Length: - - '2' - Content-Type: - - application/json Host: - subscription.rhsm.redhat.com User-Agent: @@ -107,16 +99,12 @@ interactions: code: 200 message: OK - request: - body: '{}' + body: null headers: Accept: - application/json Connection: - close - Content-Length: - - '2' - Content-Type: - - application/json Host: - subscription.rhsm.redhat.com User-Agent: @@ -141,16 +129,12 @@ interactions: code: 200 message: OK - request: - body: '{}' + body: null headers: Accept: - application/json Connection: - close - Content-Length: - - '2' - Content-Type: - - application/json Host: - subscription.rhsm.redhat.com User-Agent: diff --git a/tests/test_playbooks/fixtures/redhat_manifest-1.yml b/tests/test_playbooks/fixtures/redhat_manifest-1.yml index 555a10fe6..20017436b 100644 --- a/tests/test_playbooks/fixtures/redhat_manifest-1.yml +++ b/tests/test_playbooks/fixtures/redhat_manifest-1.yml @@ -1,15 +1,11 @@ interactions: - request: - body: '{}' + body: null headers: Accept: - application/json Connection: - close - Content-Length: - - '2' - Content-Type: - - application/json Host: - subscription.rhsm.redhat.com User-Agent: @@ -34,16 +30,12 @@ interactions: code: 200 message: OK - request: - body: '{}' + body: null headers: Accept: - application/json Connection: - close - Content-Length: - - '2' - Content-Type: - - application/json Host: - subscription.rhsm.redhat.com User-Agent: @@ -68,16 +60,12 @@ interactions: code: 200 message: OK - request: - body: '{}' + body: null headers: Accept: - application/json Connection: - close - Content-Length: - - '2' - Content-Type: - - application/json Host: - subscription.rhsm.redhat.com User-Agent: diff --git a/tests/test_playbooks/fixtures/redhat_manifest-2.yml b/tests/test_playbooks/fixtures/redhat_manifest-2.yml index e0d06689e..be28bea0a 100644 --- a/tests/test_playbooks/fixtures/redhat_manifest-2.yml +++ b/tests/test_playbooks/fixtures/redhat_manifest-2.yml @@ -1,15 +1,11 @@ interactions: - request: - body: '{}' + body: null headers: Accept: - application/json Connection: - close - Content-Length: - - '2' - Content-Type: - - application/json Host: - subscription.rhsm.redhat.com User-Agent: @@ -34,16 +30,12 @@ interactions: code: 200 message: OK - request: - body: '{}' + body: null headers: Accept: - application/json Connection: - close - Content-Length: - - '2' - Content-Type: - - application/json Host: - subscription.rhsm.redhat.com User-Agent: @@ -68,16 +60,12 @@ interactions: code: 200 message: OK - request: - body: '{}' + body: null headers: Accept: - application/json Connection: - close - Content-Length: - - '2' - Content-Type: - - application/json Host: - subscription.rhsm.redhat.com User-Agent: diff --git a/tests/test_playbooks/fixtures/sync_plan-0.yml b/tests/test_playbooks/fixtures/sync_plan-0.yml index 0af0d8957..39f6e7b3e 100644 --- a/tests/test_playbooks/fixtures/sync_plan-0.yml +++ b/tests/test_playbooks/fixtures/sync_plan-0.yml @@ -14,12 +14,14 @@ interactions: uri: https://foreman.example.org/api/status response: body: - string: '{"result":"ok","status":200,"version":"2.1.2","api_version":2}' + string: '{"result":"ok","status":200,"version":"3.12.0-develop","api_version":2}' headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive + Content-Length: + - '71' 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: - - 2.1.2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=100 Strict-Transport-Security: - max-age=631139040; includeSubdomains - Vary: - - Accept-Encoding X-Content-Type-Options: - nosniff X-Download-Options: @@ -50,8 +50,6 @@ interactions: - none X-XSS-Protection: - 1; mode=block - content-length: - - '62' status: code: 200 message: OK @@ -70,17 +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\": 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\":\"2020-09-04 13:03:52 UTC\",\"updated_at\"\ - :\"2020-09-04 13:03:52 UTC\",\"id\":6,\"name\":\"Test Organization\",\"title\"\ - :\"Test Organization\",\"description\":\"A test organization\"}]\n}\n" + 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\":\"2024-07-18 + 10:23:39 UTC\",\"updated_at\":\"2024-07-18 10:23:41 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''; @@ -94,13 +93,11 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 2.1.2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=99 Strict-Transport-Security: - max-age=631139040; includeSubdomains - Vary: - - Accept-Encoding X-Content-Type-Options: - nosniff X-Download-Options: @@ -111,8 +108,6 @@ interactions: - none X-XSS-Protection: - 1; mode=block - content-length: - - '388' status: code: 200 message: OK @@ -128,10 +123,10 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/organizations/6/sync_plans?search=name%3D%22Test+Sync+Plan%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/organizations/4/sync_plans?search=name%3D%22Test+Sync+Plan%22&per_page=4294967296 response: body: - string: '{"total":0,"subtotal":0,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test + string: '{"total":0,"subtotal":0,"selectable":0,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test Sync Plan\"","sort":{"by":"name","order":"asc"},"results":[]} ' @@ -140,6 +135,8 @@ interactions: - max-age=0, private, must-revalidate Connection: - Keep-Alive + Content-Length: + - '169' 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''; @@ -151,15 +148,13 @@ interactions: Foreman_current_location: - ; ANY Foreman_current_organization: - - 6; Test Organization + - 4; Test Organization Foreman_version: - - 2.1.2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=98 Strict-Transport-Security: - max-age=631139040; includeSubdomains - Vary: - - Accept-Encoding X-Content-Type-Options: - nosniff X-Download-Options: @@ -170,14 +165,12 @@ interactions: - none X-XSS-Protection: - 1; mode=block - content-length: - - '154' status: code: 200 message: OK - request: body: '{"name": "Test Sync Plan", "interval": "weekly", "sync_date": "2017-01-01 - 00:00:00 UTC", "enabled": false}' + 00:00:00 +0000", "enabled": false}' headers: Accept: - application/json;version=2 @@ -186,18 +179,18 @@ interactions: Connection: - keep-alive Content-Length: - - '106' + - '108' Content-Type: - application/json User-Agent: - apypie (https://github.com/Apipie/apypie) method: POST - uri: https://foreman.example.org/katello/api/organizations/6/sync_plans + uri: https://foreman.example.org/katello/api/organizations/4/sync_plans response: body: - string: ' {"id":2,"organization_id":6,"name":"Test Sync Plan","description":null,"interval":"weekly","next_sync":null,"sync_date":"2017-01-01 - 00:00:00 UTC","created_at":"2020-09-04 13:03:57 UTC","updated_at":"2020-09-04 - 13:03:57 UTC","enabled":false,"foreman_tasks_recurring_logic_id":2,"cron_expression":null,"products":[],"permissions":{"view_sync_plans":true,"edit_sync_plans":true,"destroy_sync_plans":true}} + string: ' {"id":6,"organization_id":4,"name":"Test Sync Plan","description":null,"interval":"weekly","next_sync":null,"sync_date":"2017-01-01 + 00:00:00 +0000","created_at":"2024-07-18 10:36:19 UTC","updated_at":"2024-07-18 + 10:36:19 UTC","enabled":false,"foreman_tasks_recurring_logic_id":9,"cron_expression":null,"products":[],"permissions":{"view_sync_plans":true,"edit_sync_plans":true,"destroy_sync_plans":true}} ' headers: @@ -205,6 +198,8 @@ interactions: - max-age=0, private, must-revalidate Connection: - Keep-Alive + Content-Length: + - '407' 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 +211,13 @@ interactions: Foreman_current_location: - ; ANY Foreman_current_organization: - - 6; Test Organization + - 4; Test Organization Foreman_version: - - 2.1.2 + - 3.12.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: diff --git a/tests/test_playbooks/fixtures/sync_plan-1.yml b/tests/test_playbooks/fixtures/sync_plan-1.yml index b1a6a64ef..b64073559 100644 --- a/tests/test_playbooks/fixtures/sync_plan-1.yml +++ b/tests/test_playbooks/fixtures/sync_plan-1.yml @@ -14,12 +14,14 @@ interactions: uri: https://foreman.example.org/api/status response: body: - string: '{"result":"ok","status":200,"version":"2.1.2","api_version":2}' + string: '{"result":"ok","status":200,"version":"3.12.0-develop","api_version":2}' headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive + Content-Length: + - '71' 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: - - 2.1.2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=100 Strict-Transport-Security: - max-age=631139040; includeSubdomains - Vary: - - Accept-Encoding X-Content-Type-Options: - nosniff X-Download-Options: @@ -50,8 +50,6 @@ interactions: - none X-XSS-Protection: - 1; mode=block - content-length: - - '62' status: code: 200 message: OK @@ -70,17 +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\": 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\":\"2020-09-04 13:03:52 UTC\",\"updated_at\"\ - :\"2020-09-04 13:03:52 UTC\",\"id\":6,\"name\":\"Test Organization\",\"title\"\ - :\"Test Organization\",\"description\":\"A test organization\"}]\n}\n" + 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\":\"2024-07-18 + 10:23:39 UTC\",\"updated_at\":\"2024-07-18 10:23:41 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''; @@ -94,13 +93,11 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 2.1.2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=99 Strict-Transport-Security: - max-age=631139040; includeSubdomains - Vary: - - Accept-Encoding X-Content-Type-Options: - nosniff X-Download-Options: @@ -111,8 +108,6 @@ interactions: - none X-XSS-Protection: - 1; mode=block - content-length: - - '388' status: code: 200 message: OK @@ -128,14 +123,14 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/organizations/6/sync_plans?search=name%3D%22Test+Sync+Plan%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/organizations/4/sync_plans?search=name%3D%22Test+Sync+Plan%22&per_page=4294967296 response: body: - string: '{"total":1,"subtotal":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Sync Plan\"","sort":{"by":"name","order":"asc"},"results":[{"id":2,"organization_id":6,"name":"Test + string: '{"total":1,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test + Sync Plan\"","sort":{"by":"name","order":"asc"},"results":[{"id":6,"organization_id":4,"name":"Test Sync Plan","description":null,"interval":"weekly","next_sync":null,"sync_date":"2017-01-01 - 00:00:00 UTC","created_at":"2020-09-04 13:03:57 UTC","updated_at":"2020-09-04 - 13:03:57 UTC","enabled":false,"foreman_tasks_recurring_logic_id":2,"cron_expression":null,"products":[],"permissions":{"view_sync_plans":true,"edit_sync_plans":true,"destroy_sync_plans":true}}]} + 00:00:00 +0000","created_at":"2024-07-18 10:36:19 UTC","updated_at":"2024-07-18 + 10:36:19 UTC","enabled":false,"foreman_tasks_recurring_logic_id":9,"cron_expression":null,"products":[],"permissions":{"view_sync_plans":true,"edit_sync_plans":true,"destroy_sync_plans":true}}]} ' headers: @@ -143,6 +138,8 @@ interactions: - max-age=0, private, must-revalidate Connection: - Keep-Alive + Content-Length: + - '573' 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''; @@ -154,15 +151,13 @@ interactions: Foreman_current_location: - ; ANY Foreman_current_organization: - - 6; Test Organization + - 4; Test Organization Foreman_version: - - 2.1.2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=98 Strict-Transport-Security: - max-age=631139040; includeSubdomains - Vary: - - Accept-Encoding X-Content-Type-Options: - nosniff X-Download-Options: @@ -173,8 +168,6 @@ interactions: - none X-XSS-Protection: - 1; mode=block - content-length: - - '556' status: code: 200 message: OK @@ -190,12 +183,12 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/organizations/6/sync_plans/2 + uri: https://foreman.example.org/katello/api/organizations/4/sync_plans/6 response: body: - string: ' {"id":2,"organization_id":6,"name":"Test Sync Plan","description":null,"interval":"weekly","next_sync":null,"sync_date":"2017-01-01 - 00:00:00 UTC","created_at":"2020-09-04 13:03:57 UTC","updated_at":"2020-09-04 - 13:03:57 UTC","enabled":false,"foreman_tasks_recurring_logic_id":2,"cron_expression":null,"products":[],"permissions":{"view_sync_plans":true,"edit_sync_plans":true,"destroy_sync_plans":true}} + string: ' {"id":6,"organization_id":4,"name":"Test Sync Plan","description":null,"interval":"weekly","next_sync":null,"sync_date":"2017-01-01 + 00:00:00 +0000","created_at":"2024-07-18 10:36:19 UTC","updated_at":"2024-07-18 + 10:36:19 UTC","enabled":false,"foreman_tasks_recurring_logic_id":9,"cron_expression":null,"products":[],"permissions":{"view_sync_plans":true,"edit_sync_plans":true,"destroy_sync_plans":true}} ' headers: @@ -203,6 +196,8 @@ interactions: - max-age=0, private, must-revalidate Connection: - Keep-Alive + Content-Length: + - '407' 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''; @@ -214,15 +209,13 @@ interactions: Foreman_current_location: - ; ANY Foreman_current_organization: - - 6; Test Organization + - 4; Test Organization Foreman_version: - - 2.1.2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=97 Strict-Transport-Security: - max-age=631139040; includeSubdomains - Vary: - - Accept-Encoding X-Content-Type-Options: - nosniff X-Download-Options: @@ -233,8 +226,6 @@ interactions: - none X-XSS-Protection: - 1; mode=block - content-length: - - '405' status: code: 200 message: OK @@ -250,13 +241,13 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/organizations/6/products?search=name%3D%22Test+Product%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/organizations/4/products?search=name%3D%22Test+Product%22&per_page=4294967296 response: body: - string: '{"total":1,"subtotal":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Product\"","sort":{"by":"name","order":"asc"},"results":[{"id":6,"cp_id":"679719757090","name":"Test - Product","label":"Test_Product","description":"A happy little test product","provider_id":9,"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":6,"organization":{"name":"Test - Organization","label":"Test_Organization","id":6},"sync_plan":null,"repository_count":0}]} + string: '{"total":1,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test + Product\"","sort":{"by":"name","order":"asc"},"results":[{"id":1,"cp_id":"393573755764","name":"Test + Product","label":"Test_Product","description":"A happy little test product","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: @@ -264,6 +255,8 @@ interactions: - max-age=0, private, must-revalidate Connection: - Keep-Alive + Content-Length: + - '627' 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,15 +268,13 @@ interactions: Foreman_current_location: - ; ANY Foreman_current_organization: - - 6; Test Organization + - 4; Test Organization Foreman_version: - - 2.1.2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=96 Strict-Transport-Security: - max-age=631139040; includeSubdomains - Vary: - - Accept-Encoding X-Content-Type-Options: - nosniff X-Download-Options: @@ -294,13 +285,11 @@ interactions: - none X-XSS-Protection: - 1; mode=block - content-length: - - '612' status: code: 200 message: OK - request: - body: '{"product_ids": [6]}' + body: '{"product_ids": [1]}' headers: Accept: - application/json;version=2 @@ -315,12 +304,12 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: PUT - uri: https://foreman.example.org/katello/api/organizations/6/sync_plans/2/add_products + uri: https://foreman.example.org/katello/api/organizations/4/sync_plans/6/add_products response: body: - string: ' {"id":2,"organization_id":6,"name":"Test Sync Plan","description":null,"interval":"weekly","next_sync":null,"sync_date":"2017-01-01 - 00:00:00 UTC","created_at":"2020-09-04 13:03:57 UTC","updated_at":"2020-09-04 - 13:03:57 UTC","enabled":false,"foreman_tasks_recurring_logic_id":2,"cron_expression":null,"products":[{"id":6,"cp_id":"679719757090","name":"Test + string: ' {"id":6,"organization_id":4,"name":"Test Sync Plan","description":null,"interval":"weekly","next_sync":null,"sync_date":"2017-01-01 + 00:00:00 +0000","created_at":"2024-07-18 10:36:19 UTC","updated_at":"2024-07-18 + 10:36:19 UTC","enabled":false,"foreman_tasks_recurring_logic_id":9,"cron_expression":null,"products":[{"id":1,"cp_id":"393573755764","name":"Test Product","label":"Test_Product","description":"A happy little test product","sync_state":null,"last_sync":null,"last_sync_words":null,"repository_count":0}],"permissions":{"view_sync_plans":true,"edit_sync_plans":true,"destroy_sync_plans":true}} ' @@ -329,6 +318,8 @@ interactions: - max-age=0, private, must-revalidate Connection: - Keep-Alive + Content-Length: + - '606' 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''; @@ -340,15 +331,13 @@ interactions: Foreman_current_location: - ; ANY Foreman_current_organization: - - 6; Test Organization + - 4; Test Organization Foreman_version: - - 2.1.2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=95 Strict-Transport-Security: - max-age=631139040; includeSubdomains - Vary: - - Accept-Encoding X-Content-Type-Options: - nosniff X-Download-Options: @@ -359,8 +348,6 @@ interactions: - none X-XSS-Protection: - 1; mode=block - content-length: - - '604' status: code: 200 message: OK diff --git a/tests/test_playbooks/fixtures/sync_plan-2.yml b/tests/test_playbooks/fixtures/sync_plan-2.yml index 89a08bc6c..4519a0410 100644 --- a/tests/test_playbooks/fixtures/sync_plan-2.yml +++ b/tests/test_playbooks/fixtures/sync_plan-2.yml @@ -14,12 +14,14 @@ interactions: uri: https://foreman.example.org/api/status response: body: - string: '{"result":"ok","status":200,"version":"2.1.2","api_version":2}' + string: '{"result":"ok","status":200,"version":"3.12.0-develop","api_version":2}' headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive + Content-Length: + - '71' 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: - - 2.1.2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=100 Strict-Transport-Security: - max-age=631139040; includeSubdomains - Vary: - - Accept-Encoding X-Content-Type-Options: - nosniff X-Download-Options: @@ -50,8 +50,6 @@ interactions: - none X-XSS-Protection: - 1; mode=block - content-length: - - '62' status: code: 200 message: OK @@ -70,17 +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\": 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\":\"2020-09-04 13:03:52 UTC\",\"updated_at\"\ - :\"2020-09-04 13:03:52 UTC\",\"id\":6,\"name\":\"Test Organization\",\"title\"\ - :\"Test Organization\",\"description\":\"A test organization\"}]\n}\n" + 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\":\"2024-07-18 + 10:23:39 UTC\",\"updated_at\":\"2024-07-18 10:23:41 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''; @@ -94,13 +93,11 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 2.1.2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=99 Strict-Transport-Security: - max-age=631139040; includeSubdomains - Vary: - - Accept-Encoding X-Content-Type-Options: - nosniff X-Download-Options: @@ -111,8 +108,6 @@ interactions: - none X-XSS-Protection: - 1; mode=block - content-length: - - '388' status: code: 200 message: OK @@ -128,14 +123,14 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/organizations/6/sync_plans?search=name%3D%22Test+Sync+Plan%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/organizations/4/sync_plans?search=name%3D%22Test+Sync+Plan%22&per_page=4294967296 response: body: - string: '{"total":1,"subtotal":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Sync Plan\"","sort":{"by":"name","order":"asc"},"results":[{"id":2,"organization_id":6,"name":"Test + string: '{"total":1,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test + Sync Plan\"","sort":{"by":"name","order":"asc"},"results":[{"id":6,"organization_id":4,"name":"Test Sync Plan","description":null,"interval":"weekly","next_sync":null,"sync_date":"2017-01-01 - 00:00:00 UTC","created_at":"2020-09-04 13:03:57 UTC","updated_at":"2020-09-04 - 13:03:57 UTC","enabled":false,"foreman_tasks_recurring_logic_id":2,"cron_expression":null,"products":[{"id":6,"cp_id":"679719757090","name":"Test + 00:00:00 +0000","created_at":"2024-07-18 10:36:19 UTC","updated_at":"2024-07-18 + 10:36:19 UTC","enabled":false,"foreman_tasks_recurring_logic_id":9,"cron_expression":null,"products":[{"id":1,"cp_id":"393573755764","name":"Test Product","label":"Test_Product","description":"A happy little test product","sync_state":null,"last_sync":null,"last_sync_words":null,"repository_count":0}],"permissions":{"view_sync_plans":true,"edit_sync_plans":true,"destroy_sync_plans":true}}]} ' @@ -144,6 +139,8 @@ interactions: - max-age=0, private, must-revalidate Connection: - Keep-Alive + Content-Length: + - '772' 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''; @@ -155,15 +152,13 @@ interactions: Foreman_current_location: - ; ANY Foreman_current_organization: - - 6; Test Organization + - 4; Test Organization Foreman_version: - - 2.1.2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=98 Strict-Transport-Security: - max-age=631139040; includeSubdomains - Vary: - - Accept-Encoding X-Content-Type-Options: - nosniff X-Download-Options: @@ -174,8 +169,6 @@ interactions: - none X-XSS-Protection: - 1; mode=block - content-length: - - '755' status: code: 200 message: OK @@ -191,12 +184,12 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/organizations/6/sync_plans/2 + uri: https://foreman.example.org/katello/api/organizations/4/sync_plans/6 response: body: - string: ' {"id":2,"organization_id":6,"name":"Test Sync Plan","description":null,"interval":"weekly","next_sync":null,"sync_date":"2017-01-01 - 00:00:00 UTC","created_at":"2020-09-04 13:03:57 UTC","updated_at":"2020-09-04 - 13:03:57 UTC","enabled":false,"foreman_tasks_recurring_logic_id":2,"cron_expression":null,"products":[{"id":6,"cp_id":"679719757090","name":"Test + string: ' {"id":6,"organization_id":4,"name":"Test Sync Plan","description":null,"interval":"weekly","next_sync":null,"sync_date":"2017-01-01 + 00:00:00 +0000","created_at":"2024-07-18 10:36:19 UTC","updated_at":"2024-07-18 + 10:36:19 UTC","enabled":false,"foreman_tasks_recurring_logic_id":9,"cron_expression":null,"products":[{"id":1,"cp_id":"393573755764","name":"Test Product","label":"Test_Product","description":"A happy little test product","sync_state":null,"last_sync":null,"last_sync_words":null,"repository_count":0}],"permissions":{"view_sync_plans":true,"edit_sync_plans":true,"destroy_sync_plans":true}} ' @@ -205,6 +198,8 @@ interactions: - max-age=0, private, must-revalidate Connection: - Keep-Alive + Content-Length: + - '606' 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 +211,13 @@ interactions: Foreman_current_location: - ; ANY Foreman_current_organization: - - 6; Test Organization + - 4; Test Organization Foreman_version: - - 2.1.2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=97 Strict-Transport-Security: - max-age=631139040; includeSubdomains - Vary: - - Accept-Encoding X-Content-Type-Options: - nosniff X-Download-Options: @@ -235,8 +228,6 @@ interactions: - none X-XSS-Protection: - 1; mode=block - content-length: - - '604' status: code: 200 message: OK @@ -252,13 +243,13 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/organizations/6/products?search=name%3D%22Test+Product%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/organizations/4/products?search=name%3D%22Test+Product%22&per_page=4294967296 response: body: - string: '{"total":1,"subtotal":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Product\"","sort":{"by":"name","order":"asc"},"results":[{"id":6,"cp_id":"679719757090","name":"Test - Product","label":"Test_Product","description":"A happy little test product","provider_id":9,"sync_plan_id":2,"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":6,"organization":{"name":"Test - Organization","label":"Test_Organization","id":6},"sync_plan":{"id":2,"name":"Test + string: '{"total":1,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test + Product\"","sort":{"by":"name","order":"asc"},"results":[{"id":1,"cp_id":"393573755764","name":"Test + Product","label":"Test_Product","description":"A happy little test product","provider_id":5,"sync_plan_id":6,"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":{"id":6,"name":"Test Sync Plan","description":null,"sync_date":"2017-01-01 00:00:00 UTC","interval":"weekly","next_sync":null,"cron_expression":null},"repository_count":0}]} ' @@ -267,6 +258,8 @@ interactions: - max-age=0, private, must-revalidate Connection: - Keep-Alive + Content-Length: + - '769' 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''; @@ -278,15 +271,13 @@ interactions: Foreman_current_location: - ; ANY Foreman_current_organization: - - 6; Test Organization + - 4; Test Organization Foreman_version: - - 2.1.2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=96 Strict-Transport-Security: - max-age=631139040; includeSubdomains - Vary: - - Accept-Encoding X-Content-Type-Options: - nosniff X-Download-Options: @@ -297,8 +288,6 @@ interactions: - none X-XSS-Protection: - 1; mode=block - content-length: - - '754' status: code: 200 message: OK diff --git a/tests/test_playbooks/fixtures/sync_plan-3.yml b/tests/test_playbooks/fixtures/sync_plan-3.yml index d78b96456..acc503cb7 100644 --- a/tests/test_playbooks/fixtures/sync_plan-3.yml +++ b/tests/test_playbooks/fixtures/sync_plan-3.yml @@ -14,12 +14,14 @@ interactions: uri: https://foreman.example.org/api/status response: body: - string: '{"result":"ok","status":200,"version":"2.1.2","api_version":2}' + string: '{"result":"ok","status":200,"version":"3.12.0-develop","api_version":2}' headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive + Content-Length: + - '71' 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: - - 2.1.2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=100 Strict-Transport-Security: - max-age=631139040; includeSubdomains - Vary: - - Accept-Encoding X-Content-Type-Options: - nosniff X-Download-Options: @@ -50,8 +50,6 @@ interactions: - none X-XSS-Protection: - 1; mode=block - content-length: - - '62' status: code: 200 message: OK @@ -70,17 +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\": 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\":\"2020-09-04 13:03:52 UTC\",\"updated_at\"\ - :\"2020-09-04 13:03:52 UTC\",\"id\":6,\"name\":\"Test Organization\",\"title\"\ - :\"Test Organization\",\"description\":\"A test organization\"}]\n}\n" + 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\":\"2024-07-18 + 10:23:39 UTC\",\"updated_at\":\"2024-07-18 10:23:41 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''; @@ -94,13 +93,11 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 2.1.2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=99 Strict-Transport-Security: - max-age=631139040; includeSubdomains - Vary: - - Accept-Encoding X-Content-Type-Options: - nosniff X-Download-Options: @@ -111,8 +108,6 @@ interactions: - none X-XSS-Protection: - 1; mode=block - content-length: - - '388' status: code: 200 message: OK @@ -128,14 +123,14 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/organizations/6/sync_plans?search=name%3D%22Test+Sync+Plan%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/organizations/4/sync_plans?search=name%3D%22Test+Sync+Plan%22&per_page=4294967296 response: body: - string: '{"total":1,"subtotal":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Sync Plan\"","sort":{"by":"name","order":"asc"},"results":[{"id":2,"organization_id":6,"name":"Test + string: '{"total":1,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test + Sync Plan\"","sort":{"by":"name","order":"asc"},"results":[{"id":6,"organization_id":4,"name":"Test Sync Plan","description":null,"interval":"weekly","next_sync":null,"sync_date":"2017-01-01 - 00:00:00 UTC","created_at":"2020-09-04 13:03:57 UTC","updated_at":"2020-09-04 - 13:03:57 UTC","enabled":false,"foreman_tasks_recurring_logic_id":2,"cron_expression":null,"products":[{"id":6,"cp_id":"679719757090","name":"Test + 00:00:00 +0000","created_at":"2024-07-18 10:36:19 UTC","updated_at":"2024-07-18 + 10:36:19 UTC","enabled":false,"foreman_tasks_recurring_logic_id":9,"cron_expression":null,"products":[{"id":1,"cp_id":"393573755764","name":"Test Product","label":"Test_Product","description":"A happy little test product","sync_state":null,"last_sync":null,"last_sync_words":null,"repository_count":0}],"permissions":{"view_sync_plans":true,"edit_sync_plans":true,"destroy_sync_plans":true}}]} ' @@ -144,6 +139,8 @@ interactions: - max-age=0, private, must-revalidate Connection: - Keep-Alive + Content-Length: + - '772' 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''; @@ -155,15 +152,13 @@ interactions: Foreman_current_location: - ; ANY Foreman_current_organization: - - 6; Test Organization + - 4; Test Organization Foreman_version: - - 2.1.2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=98 Strict-Transport-Security: - max-age=631139040; includeSubdomains - Vary: - - Accept-Encoding X-Content-Type-Options: - nosniff X-Download-Options: @@ -174,8 +169,6 @@ interactions: - none X-XSS-Protection: - 1; mode=block - content-length: - - '755' status: code: 200 message: OK @@ -191,12 +184,12 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/organizations/6/sync_plans/2 + uri: https://foreman.example.org/katello/api/organizations/4/sync_plans/6 response: body: - string: ' {"id":2,"organization_id":6,"name":"Test Sync Plan","description":null,"interval":"weekly","next_sync":null,"sync_date":"2017-01-01 - 00:00:00 UTC","created_at":"2020-09-04 13:03:57 UTC","updated_at":"2020-09-04 - 13:03:57 UTC","enabled":false,"foreman_tasks_recurring_logic_id":2,"cron_expression":null,"products":[{"id":6,"cp_id":"679719757090","name":"Test + string: ' {"id":6,"organization_id":4,"name":"Test Sync Plan","description":null,"interval":"weekly","next_sync":null,"sync_date":"2017-01-01 + 00:00:00 +0000","created_at":"2024-07-18 10:36:19 UTC","updated_at":"2024-07-18 + 10:36:19 UTC","enabled":false,"foreman_tasks_recurring_logic_id":9,"cron_expression":null,"products":[{"id":1,"cp_id":"393573755764","name":"Test Product","label":"Test_Product","description":"A happy little test product","sync_state":null,"last_sync":null,"last_sync_words":null,"repository_count":0}],"permissions":{"view_sync_plans":true,"edit_sync_plans":true,"destroy_sync_plans":true}} ' @@ -205,6 +198,8 @@ interactions: - max-age=0, private, must-revalidate Connection: - Keep-Alive + Content-Length: + - '606' 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 +211,13 @@ interactions: Foreman_current_location: - ; ANY Foreman_current_organization: - - 6; Test Organization + - 4; Test Organization Foreman_version: - - 2.1.2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=97 Strict-Transport-Security: - max-age=631139040; includeSubdomains - Vary: - - Accept-Encoding X-Content-Type-Options: - nosniff X-Download-Options: @@ -235,13 +228,11 @@ interactions: - none X-XSS-Protection: - 1; mode=block - content-length: - - '604' status: code: 200 message: OK - request: - body: '{"product_ids": [6]}' + body: '{"product_ids": [1]}' headers: Accept: - application/json;version=2 @@ -256,12 +247,12 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: PUT - uri: https://foreman.example.org/katello/api/organizations/6/sync_plans/2/remove_products + uri: https://foreman.example.org/katello/api/organizations/4/sync_plans/6/remove_products response: body: - string: ' {"id":2,"organization_id":6,"name":"Test Sync Plan","description":null,"interval":"weekly","next_sync":null,"sync_date":"2017-01-01 - 00:00:00 UTC","created_at":"2020-09-04 13:03:57 UTC","updated_at":"2020-09-04 - 13:03:57 UTC","enabled":false,"foreman_tasks_recurring_logic_id":2,"cron_expression":null,"products":[],"permissions":{"view_sync_plans":true,"edit_sync_plans":true,"destroy_sync_plans":true}} + string: ' {"id":6,"organization_id":4,"name":"Test Sync Plan","description":null,"interval":"weekly","next_sync":null,"sync_date":"2017-01-01 + 00:00:00 +0000","created_at":"2024-07-18 10:36:19 UTC","updated_at":"2024-07-18 + 10:36:19 UTC","enabled":false,"foreman_tasks_recurring_logic_id":9,"cron_expression":null,"products":[],"permissions":{"view_sync_plans":true,"edit_sync_plans":true,"destroy_sync_plans":true}} ' headers: @@ -269,6 +260,8 @@ interactions: - max-age=0, private, must-revalidate Connection: - Keep-Alive + Content-Length: + - '407' 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''; @@ -280,15 +273,13 @@ interactions: Foreman_current_location: - ; ANY Foreman_current_organization: - - 6; Test Organization + - 4; Test Organization Foreman_version: - - 2.1.2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=96 Strict-Transport-Security: - max-age=631139040; includeSubdomains - Vary: - - Accept-Encoding X-Content-Type-Options: - nosniff X-Download-Options: @@ -299,8 +290,6 @@ interactions: - none X-XSS-Protection: - 1; mode=block - content-length: - - '405' status: code: 200 message: OK diff --git a/tests/test_playbooks/fixtures/sync_plan-4.yml b/tests/test_playbooks/fixtures/sync_plan-4.yml index e0216ae71..fb36012d5 100644 --- a/tests/test_playbooks/fixtures/sync_plan-4.yml +++ b/tests/test_playbooks/fixtures/sync_plan-4.yml @@ -14,12 +14,14 @@ interactions: uri: https://foreman.example.org/api/status response: body: - string: '{"result":"ok","status":200,"version":"2.1.2","api_version":2}' + string: '{"result":"ok","status":200,"version":"3.12.0-develop","api_version":2}' headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive + Content-Length: + - '71' 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: - - 2.1.2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=100 Strict-Transport-Security: - max-age=631139040; includeSubdomains - Vary: - - Accept-Encoding X-Content-Type-Options: - nosniff X-Download-Options: @@ -50,8 +50,6 @@ interactions: - none X-XSS-Protection: - 1; mode=block - content-length: - - '62' status: code: 200 message: OK @@ -70,17 +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\": 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\":\"2020-09-04 13:03:52 UTC\",\"updated_at\"\ - :\"2020-09-04 13:03:52 UTC\",\"id\":6,\"name\":\"Test Organization\",\"title\"\ - :\"Test Organization\",\"description\":\"A test organization\"}]\n}\n" + 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\":\"2024-07-18 + 10:23:39 UTC\",\"updated_at\":\"2024-07-18 10:23:41 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''; @@ -94,13 +93,11 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 2.1.2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=99 Strict-Transport-Security: - max-age=631139040; includeSubdomains - Vary: - - Accept-Encoding X-Content-Type-Options: - nosniff X-Download-Options: @@ -111,8 +108,6 @@ interactions: - none X-XSS-Protection: - 1; mode=block - content-length: - - '388' status: code: 200 message: OK @@ -128,14 +123,14 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/organizations/6/sync_plans?search=name%3D%22Test+Sync+Plan%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/organizations/4/sync_plans?search=name%3D%22Test+Sync+Plan%22&per_page=4294967296 response: body: - string: '{"total":1,"subtotal":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Sync Plan\"","sort":{"by":"name","order":"asc"},"results":[{"id":2,"organization_id":6,"name":"Test + string: '{"total":1,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test + Sync Plan\"","sort":{"by":"name","order":"asc"},"results":[{"id":6,"organization_id":4,"name":"Test Sync Plan","description":null,"interval":"weekly","next_sync":null,"sync_date":"2017-01-01 - 00:00:00 UTC","created_at":"2020-09-04 13:03:57 UTC","updated_at":"2020-09-04 - 13:03:57 UTC","enabled":false,"foreman_tasks_recurring_logic_id":2,"cron_expression":null,"products":[],"permissions":{"view_sync_plans":true,"edit_sync_plans":true,"destroy_sync_plans":true}}]} + 00:00:00 +0000","created_at":"2024-07-18 10:36:19 UTC","updated_at":"2024-07-18 + 10:36:19 UTC","enabled":false,"foreman_tasks_recurring_logic_id":9,"cron_expression":null,"products":[],"permissions":{"view_sync_plans":true,"edit_sync_plans":true,"destroy_sync_plans":true}}]} ' headers: @@ -143,6 +138,8 @@ interactions: - max-age=0, private, must-revalidate Connection: - Keep-Alive + Content-Length: + - '573' 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''; @@ -154,15 +151,13 @@ interactions: Foreman_current_location: - ; ANY Foreman_current_organization: - - 6; Test Organization + - 4; Test Organization Foreman_version: - - 2.1.2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=98 Strict-Transport-Security: - max-age=631139040; includeSubdomains - Vary: - - Accept-Encoding X-Content-Type-Options: - nosniff X-Download-Options: @@ -173,8 +168,6 @@ interactions: - none X-XSS-Protection: - 1; mode=block - content-length: - - '556' status: code: 200 message: OK @@ -190,12 +183,12 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/organizations/6/sync_plans/2 + uri: https://foreman.example.org/katello/api/organizations/4/sync_plans/6 response: body: - string: ' {"id":2,"organization_id":6,"name":"Test Sync Plan","description":null,"interval":"weekly","next_sync":null,"sync_date":"2017-01-01 - 00:00:00 UTC","created_at":"2020-09-04 13:03:57 UTC","updated_at":"2020-09-04 - 13:03:57 UTC","enabled":false,"foreman_tasks_recurring_logic_id":2,"cron_expression":null,"products":[],"permissions":{"view_sync_plans":true,"edit_sync_plans":true,"destroy_sync_plans":true}} + string: ' {"id":6,"organization_id":4,"name":"Test Sync Plan","description":null,"interval":"weekly","next_sync":null,"sync_date":"2017-01-01 + 00:00:00 +0000","created_at":"2024-07-18 10:36:19 UTC","updated_at":"2024-07-18 + 10:36:19 UTC","enabled":false,"foreman_tasks_recurring_logic_id":9,"cron_expression":null,"products":[],"permissions":{"view_sync_plans":true,"edit_sync_plans":true,"destroy_sync_plans":true}} ' headers: @@ -203,6 +196,8 @@ interactions: - max-age=0, private, must-revalidate Connection: - Keep-Alive + Content-Length: + - '407' 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''; @@ -214,15 +209,13 @@ interactions: Foreman_current_location: - ; ANY Foreman_current_organization: - - 6; Test Organization + - 4; Test Organization Foreman_version: - - 2.1.2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=97 Strict-Transport-Security: - max-age=631139040; includeSubdomains - Vary: - - Accept-Encoding X-Content-Type-Options: - nosniff X-Download-Options: @@ -233,8 +226,6 @@ interactions: - none X-XSS-Protection: - 1; mode=block - content-length: - - '405' status: code: 200 message: OK @@ -254,13 +245,13 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: PUT - uri: https://foreman.example.org/katello/api/organizations/6/sync_plans/2 + uri: https://foreman.example.org/katello/api/organizations/4/sync_plans/6 response: body: - string: ' {"id":2,"organization_id":6,"name":"Test Sync Plan","description":"Sync - daily, not weekly","interval":"daily","next_sync":"2020-09-05 00:00:00 UTC","sync_date":"2017-01-01 - 00:00:00 UTC","created_at":"2020-09-04 13:03:57 UTC","updated_at":"2020-09-04 - 13:04:00 UTC","enabled":true,"foreman_tasks_recurring_logic_id":3,"cron_expression":null,"products":[],"permissions":{"view_sync_plans":true,"edit_sync_plans":true,"destroy_sync_plans":true}} + string: ' {"id":6,"organization_id":4,"name":"Test Sync Plan","description":"Sync + daily, not weekly","interval":"daily","next_sync":"2024-07-19 00:00:00 UTC","sync_date":"2017-01-01 + 00:00:00 +0000","created_at":"2024-07-18 10:36:19 UTC","updated_at":"2024-07-18 + 10:36:21 UTC","enabled":true,"foreman_tasks_recurring_logic_id":10,"cron_expression":null,"products":[],"permissions":{"view_sync_plans":true,"edit_sync_plans":true,"destroy_sync_plans":true}} ' headers: @@ -268,6 +259,8 @@ interactions: - max-age=0, private, must-revalidate Connection: - Keep-Alive + Content-Length: + - '447' 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''; @@ -279,15 +272,13 @@ interactions: Foreman_current_location: - ; ANY Foreman_current_organization: - - 6; Test Organization + - 4; Test Organization Foreman_version: - - 2.1.2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=96 Strict-Transport-Security: - max-age=631139040; includeSubdomains - Vary: - - Accept-Encoding X-Content-Type-Options: - nosniff X-Download-Options: @@ -298,8 +289,6 @@ interactions: - none X-XSS-Protection: - 1; mode=block - content-length: - - '444' status: code: 200 message: OK diff --git a/tests/test_playbooks/fixtures/sync_plan-5.yml b/tests/test_playbooks/fixtures/sync_plan-5.yml index 075dd0695..e61d3aa57 100644 --- a/tests/test_playbooks/fixtures/sync_plan-5.yml +++ b/tests/test_playbooks/fixtures/sync_plan-5.yml @@ -14,12 +14,14 @@ interactions: uri: https://foreman.example.org/api/status response: body: - string: '{"result":"ok","status":200,"version":"2.1.2","api_version":2}' + string: '{"result":"ok","status":200,"version":"3.12.0-develop","api_version":2}' headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive + Content-Length: + - '71' 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: - - 2.1.2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=100 Strict-Transport-Security: - max-age=631139040; includeSubdomains - Vary: - - Accept-Encoding X-Content-Type-Options: - nosniff X-Download-Options: @@ -50,8 +50,6 @@ interactions: - none X-XSS-Protection: - 1; mode=block - content-length: - - '62' status: code: 200 message: OK @@ -70,17 +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\": 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\":\"2020-09-04 13:03:52 UTC\",\"updated_at\"\ - :\"2020-09-04 13:03:52 UTC\",\"id\":6,\"name\":\"Test Organization\",\"title\"\ - :\"Test Organization\",\"description\":\"A test organization\"}]\n}\n" + 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\":\"2024-07-18 + 10:23:39 UTC\",\"updated_at\":\"2024-07-18 10:23:41 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''; @@ -94,13 +93,11 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 2.1.2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=99 Strict-Transport-Security: - max-age=631139040; includeSubdomains - Vary: - - Accept-Encoding X-Content-Type-Options: - nosniff X-Download-Options: @@ -111,8 +108,6 @@ interactions: - none X-XSS-Protection: - 1; mode=block - content-length: - - '388' status: code: 200 message: OK @@ -128,14 +123,14 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/organizations/6/sync_plans?search=name%3D%22Test+Sync+Plan%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/organizations/4/sync_plans?search=name%3D%22Test+Sync+Plan%22&per_page=4294967296 response: body: - string: '{"total":1,"subtotal":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Sync Plan\"","sort":{"by":"name","order":"asc"},"results":[{"id":2,"organization_id":6,"name":"Test - Sync Plan","description":"Sync daily, not weekly","interval":"daily","next_sync":"2020-09-05 - 00:00:00 UTC","sync_date":"2017-01-01 00:00:00 UTC","created_at":"2020-09-04 - 13:03:57 UTC","updated_at":"2020-09-04 13:04:00 UTC","enabled":true,"foreman_tasks_recurring_logic_id":3,"cron_expression":null,"products":[],"permissions":{"view_sync_plans":true,"edit_sync_plans":true,"destroy_sync_plans":true}}]} + string: '{"total":1,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test + Sync Plan\"","sort":{"by":"name","order":"asc"},"results":[{"id":6,"organization_id":4,"name":"Test + Sync Plan","description":"Sync daily, not weekly","interval":"daily","next_sync":"2024-07-19 + 00:00:00 UTC","sync_date":"2017-01-01 00:00:00 +0000","created_at":"2024-07-18 + 10:36:19 UTC","updated_at":"2024-07-18 10:36:21 UTC","enabled":true,"foreman_tasks_recurring_logic_id":10,"cron_expression":null,"products":[],"permissions":{"view_sync_plans":true,"edit_sync_plans":true,"destroy_sync_plans":true}}]} ' headers: @@ -143,6 +138,8 @@ interactions: - max-age=0, private, must-revalidate Connection: - Keep-Alive + Content-Length: + - '613' 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''; @@ -154,15 +151,13 @@ interactions: Foreman_current_location: - ; ANY Foreman_current_organization: - - 6; Test Organization + - 4; Test Organization Foreman_version: - - 2.1.2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=98 Strict-Transport-Security: - max-age=631139040; includeSubdomains - Vary: - - Accept-Encoding X-Content-Type-Options: - nosniff X-Download-Options: @@ -173,8 +168,6 @@ interactions: - none X-XSS-Protection: - 1; mode=block - content-length: - - '595' status: code: 200 message: OK @@ -190,13 +183,13 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/organizations/6/sync_plans/2 + uri: https://foreman.example.org/katello/api/organizations/4/sync_plans/6 response: body: - string: ' {"id":2,"organization_id":6,"name":"Test Sync Plan","description":"Sync - daily, not weekly","interval":"daily","next_sync":"2020-09-05 00:00:00 UTC","sync_date":"2017-01-01 - 00:00:00 UTC","created_at":"2020-09-04 13:03:57 UTC","updated_at":"2020-09-04 - 13:04:00 UTC","enabled":true,"foreman_tasks_recurring_logic_id":3,"cron_expression":null,"products":[],"permissions":{"view_sync_plans":true,"edit_sync_plans":true,"destroy_sync_plans":true}} + string: ' {"id":6,"organization_id":4,"name":"Test Sync Plan","description":"Sync + daily, not weekly","interval":"daily","next_sync":"2024-07-19 00:00:00 UTC","sync_date":"2017-01-01 + 00:00:00 +0000","created_at":"2024-07-18 10:36:19 UTC","updated_at":"2024-07-18 + 10:36:21 UTC","enabled":true,"foreman_tasks_recurring_logic_id":10,"cron_expression":null,"products":[],"permissions":{"view_sync_plans":true,"edit_sync_plans":true,"destroy_sync_plans":true}} ' headers: @@ -204,6 +197,8 @@ interactions: - max-age=0, private, must-revalidate Connection: - Keep-Alive + Content-Length: + - '447' 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''; @@ -215,15 +210,13 @@ interactions: Foreman_current_location: - ; ANY Foreman_current_organization: - - 6; Test Organization + - 4; Test Organization Foreman_version: - - 2.1.2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=97 Strict-Transport-Security: - max-age=631139040; includeSubdomains - Vary: - - Accept-Encoding X-Content-Type-Options: - nosniff X-Download-Options: @@ -234,8 +227,6 @@ interactions: - none X-XSS-Protection: - 1; mode=block - content-length: - - '444' status: code: 200 message: OK @@ -256,13 +247,13 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: PUT - uri: https://foreman.example.org/katello/api/organizations/6/sync_plans/2 + uri: https://foreman.example.org/katello/api/organizations/4/sync_plans/6 response: body: - string: ' {"id":2,"organization_id":6,"name":"Test Sync Plan","description":"Sync + string: ' {"id":6,"organization_id":4,"name":"Test Sync Plan","description":"Sync daily, not weekly","interval":"custom cron","next_sync":null,"sync_date":"2017-01-01 - 00:00:00 UTC","created_at":"2020-09-04 13:03:57 UTC","updated_at":"2020-09-04 - 13:04:01 UTC","enabled":false,"foreman_tasks_recurring_logic_id":4,"cron_expression":"* + 00:00:00 +0000","created_at":"2024-07-18 10:36:19 UTC","updated_at":"2024-07-18 + 10:36:22 UTC","enabled":false,"foreman_tasks_recurring_logic_id":11,"cron_expression":"* * * * */5","products":[],"permissions":{"view_sync_plans":true,"edit_sync_plans":true,"destroy_sync_plans":true}} ' @@ -271,6 +262,8 @@ interactions: - max-age=0, private, must-revalidate Connection: - Keep-Alive + Content-Length: + - '442' 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''; @@ -282,15 +275,13 @@ interactions: Foreman_current_location: - ; ANY Foreman_current_organization: - - 6; Test Organization + - 4; Test Organization Foreman_version: - - 2.1.2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=96 Strict-Transport-Security: - max-age=631139040; includeSubdomains - Vary: - - Accept-Encoding X-Content-Type-Options: - nosniff X-Download-Options: @@ -301,8 +292,6 @@ interactions: - none X-XSS-Protection: - 1; mode=block - content-length: - - '439' status: code: 200 message: OK diff --git a/tests/test_playbooks/fixtures/sync_plan-6.yml b/tests/test_playbooks/fixtures/sync_plan-6.yml index de6365b0f..57df1a3a0 100644 --- a/tests/test_playbooks/fixtures/sync_plan-6.yml +++ b/tests/test_playbooks/fixtures/sync_plan-6.yml @@ -14,12 +14,14 @@ interactions: uri: https://foreman.example.org/api/status response: body: - string: '{"result":"ok","status":200,"version":"2.1.2","api_version":2}' + string: '{"result":"ok","status":200,"version":"3.12.0-develop","api_version":2}' headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive + Content-Length: + - '71' 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: - - 2.1.2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=100 Strict-Transport-Security: - max-age=631139040; includeSubdomains - Vary: - - Accept-Encoding X-Content-Type-Options: - nosniff X-Download-Options: @@ -50,8 +50,6 @@ interactions: - none X-XSS-Protection: - 1; mode=block - content-length: - - '62' status: code: 200 message: OK @@ -70,17 +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\": 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\":\"2020-09-04 13:03:52 UTC\",\"updated_at\"\ - :\"2020-09-04 13:03:52 UTC\",\"id\":6,\"name\":\"Test Organization\",\"title\"\ - :\"Test Organization\",\"description\":\"A test organization\"}]\n}\n" + 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\":\"2024-07-18 + 10:23:39 UTC\",\"updated_at\":\"2024-07-18 10:23:41 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''; @@ -94,13 +93,11 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 2.1.2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=99 Strict-Transport-Security: - max-age=631139040; includeSubdomains - Vary: - - Accept-Encoding X-Content-Type-Options: - nosniff X-Download-Options: @@ -111,8 +108,6 @@ interactions: - none X-XSS-Protection: - 1; mode=block - content-length: - - '388' status: code: 200 message: OK @@ -128,14 +123,14 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/organizations/6/sync_plans?search=name%3D%22Test+Sync+Plan%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/organizations/4/sync_plans?search=name%3D%22Test+Sync+Plan%22&per_page=4294967296 response: body: - string: '{"total":1,"subtotal":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Sync Plan\"","sort":{"by":"name","order":"asc"},"results":[{"id":2,"organization_id":6,"name":"Test + string: '{"total":1,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test + Sync Plan\"","sort":{"by":"name","order":"asc"},"results":[{"id":6,"organization_id":4,"name":"Test Sync Plan","description":"Sync daily, not weekly","interval":"custom cron","next_sync":null,"sync_date":"2017-01-01 - 00:00:00 UTC","created_at":"2020-09-04 13:03:57 UTC","updated_at":"2020-09-04 - 13:04:01 UTC","enabled":false,"foreman_tasks_recurring_logic_id":4,"cron_expression":"* + 00:00:00 +0000","created_at":"2024-07-18 10:36:19 UTC","updated_at":"2024-07-18 + 10:36:22 UTC","enabled":false,"foreman_tasks_recurring_logic_id":11,"cron_expression":"* * * * */5","products":[],"permissions":{"view_sync_plans":true,"edit_sync_plans":true,"destroy_sync_plans":true}}]} ' @@ -144,6 +139,8 @@ interactions: - max-age=0, private, must-revalidate Connection: - Keep-Alive + Content-Length: + - '608' 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''; @@ -155,15 +152,13 @@ interactions: Foreman_current_location: - ; ANY Foreman_current_organization: - - 6; Test Organization + - 4; Test Organization Foreman_version: - - 2.1.2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=98 Strict-Transport-Security: - max-age=631139040; includeSubdomains - Vary: - - Accept-Encoding X-Content-Type-Options: - nosniff X-Download-Options: @@ -174,8 +169,6 @@ interactions: - none X-XSS-Protection: - 1; mode=block - content-length: - - '590' status: code: 200 message: OK @@ -191,13 +184,13 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/organizations/6/products?search=name%3D%22Test+Product%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/organizations/4/products?search=name%3D%22Test+Product%22&per_page=4294967296 response: body: - string: '{"total":1,"subtotal":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Product\"","sort":{"by":"name","order":"asc"},"results":[{"id":6,"cp_id":"679719757090","name":"Test - Product","label":"Test_Product","description":"A happy little test product","provider_id":9,"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":6,"organization":{"name":"Test - Organization","label":"Test_Organization","id":6},"sync_plan":null,"repository_count":0}]} + string: '{"total":1,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test + Product\"","sort":{"by":"name","order":"asc"},"results":[{"id":1,"cp_id":"393573755764","name":"Test + Product","label":"Test_Product","description":"A happy little test product","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: @@ -205,6 +198,8 @@ interactions: - max-age=0, private, must-revalidate Connection: - Keep-Alive + Content-Length: + - '627' 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 +211,13 @@ interactions: Foreman_current_location: - ; ANY Foreman_current_organization: - - 6; Test Organization + - 4; Test Organization Foreman_version: - - 2.1.2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=97 Strict-Transport-Security: - max-age=631139040; includeSubdomains - Vary: - - Accept-Encoding X-Content-Type-Options: - nosniff X-Download-Options: @@ -235,8 +228,6 @@ interactions: - none X-XSS-Protection: - 1; mode=block - content-length: - - '612' status: code: 200 message: OK @@ -252,13 +243,13 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/products/6?organization_id=6 + uri: https://foreman.example.org/katello/api/products/1?organization_id=4 response: body: - string: ' {"sync_state_aggregated":null,"redhat":false,"id":6,"cp_id":"679719757090","name":"Test - Product","label":"Test_Product","description":"A happy little test product","provider_id":9,"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":6,"organization":{"name":"Test - Organization","label":"Test_Organization","id":6},"sync_plan":null,"repository_count":0,"created_at":"2020-09-04 - 13:03:55 UTC","updated_at":"2020-09-04 13:03:57 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":1,"cp_id":"393573755764","name":"Test + Product","label":"Test_Product","description":"A happy little test product","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":"2024-07-18 + 10:23:42 UTC","updated_at":"2024-07-18 10:36:19 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: @@ -266,6 +257,8 @@ interactions: - max-age=0, private, must-revalidate Connection: - Keep-Alive + Content-Length: + - '1106' 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''; @@ -277,15 +270,13 @@ interactions: Foreman_current_location: - ; ANY Foreman_current_organization: - - 6; Test Organization + - 4; Test Organization Foreman_version: - - 2.1.2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=96 Strict-Transport-Security: - max-age=631139040; includeSubdomains - Vary: - - Accept-Encoding X-Content-Type-Options: - nosniff X-Download-Options: @@ -296,13 +287,11 @@ interactions: - none X-XSS-Protection: - 1; mode=block - content-length: - - '1065' status: code: 200 message: OK - request: - body: '{"sync_plan_id": 2}' + body: '{"sync_plan_id": 6}' headers: Accept: - application/json;version=2 @@ -317,16 +306,16 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: PUT - uri: https://foreman.example.org/katello/api/products/6 + uri: https://foreman.example.org/katello/api/products/1 response: body: - string: ' {"sync_state_aggregated":null,"redhat":false,"id":6,"cp_id":"679719757090","name":"Test - Product","label":"Test_Product","description":"A happy little test product","provider_id":9,"sync_plan_id":2,"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":6,"organization":{"name":"Test - Organization","label":"Test_Organization","id":6},"sync_plan":{"id":2,"name":"Test + string: ' {"sync_state_aggregated":null,"redhat":false,"id":1,"cp_id":"393573755764","name":"Test + Product","label":"Test_Product","description":"A happy little test product","provider_id":5,"sync_plan_id":6,"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":{"id":6,"name":"Test Sync Plan","description":"Sync daily, not weekly","sync_date":"2017-01-01 00:00:00 UTC","interval":"custom cron","next_sync":null,"cron_expression":"* - * * * */5"},"repository_count":0,"created_at":"2020-09-04 13:03:55 UTC","updated_at":"2020-09-04 - 13:04:02 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} + * * * */5"},"repository_count":0,"created_at":"2024-07-18 10:23:42 UTC","updated_at":"2024-07-18 + 10:36:23 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: @@ -334,6 +323,8 @@ interactions: - max-age=0, private, must-revalidate Connection: - Keep-Alive + Content-Length: + - '1282' 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''; @@ -347,13 +338,11 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 2.1.2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=95 Strict-Transport-Security: - max-age=631139040; includeSubdomains - Vary: - - Accept-Encoding X-Content-Type-Options: - nosniff X-Download-Options: @@ -364,8 +353,6 @@ interactions: - none X-XSS-Protection: - 1; mode=block - content-length: - - '1241' status: code: 200 message: OK diff --git a/tests/test_playbooks/fixtures/sync_plan-7.yml b/tests/test_playbooks/fixtures/sync_plan-7.yml index 7b8360ad8..22ee258d0 100644 --- a/tests/test_playbooks/fixtures/sync_plan-7.yml +++ b/tests/test_playbooks/fixtures/sync_plan-7.yml @@ -14,12 +14,14 @@ interactions: uri: https://foreman.example.org/api/status response: body: - string: '{"result":"ok","status":200,"version":"2.1.2","api_version":2}' + string: '{"result":"ok","status":200,"version":"3.12.0-develop","api_version":2}' headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive + Content-Length: + - '71' 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: - - 2.1.2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=100 Strict-Transport-Security: - max-age=631139040; includeSubdomains - Vary: - - Accept-Encoding X-Content-Type-Options: - nosniff X-Download-Options: @@ -50,8 +50,6 @@ interactions: - none X-XSS-Protection: - 1; mode=block - content-length: - - '62' status: code: 200 message: OK @@ -70,17 +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\": 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\":\"2020-09-04 13:03:52 UTC\",\"updated_at\"\ - :\"2020-09-04 13:03:52 UTC\",\"id\":6,\"name\":\"Test Organization\",\"title\"\ - :\"Test Organization\",\"description\":\"A test organization\"}]\n}\n" + 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\":\"2024-07-18 + 10:23:39 UTC\",\"updated_at\":\"2024-07-18 10:23:41 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''; @@ -94,13 +93,11 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 2.1.2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=99 Strict-Transport-Security: - max-age=631139040; includeSubdomains - Vary: - - Accept-Encoding X-Content-Type-Options: - nosniff X-Download-Options: @@ -111,8 +108,6 @@ interactions: - none X-XSS-Protection: - 1; mode=block - content-length: - - '388' status: code: 200 message: OK @@ -128,15 +123,15 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/organizations/6/sync_plans?search=name%3D%22Test+Sync+Plan%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/organizations/4/sync_plans?search=name%3D%22Test+Sync+Plan%22&per_page=4294967296 response: body: - string: '{"total":1,"subtotal":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Sync Plan\"","sort":{"by":"name","order":"asc"},"results":[{"id":2,"organization_id":6,"name":"Test + string: '{"total":1,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test + Sync Plan\"","sort":{"by":"name","order":"asc"},"results":[{"id":6,"organization_id":4,"name":"Test Sync Plan","description":"Sync daily, not weekly","interval":"custom cron","next_sync":null,"sync_date":"2017-01-01 - 00:00:00 UTC","created_at":"2020-09-04 13:03:57 UTC","updated_at":"2020-09-04 - 13:04:01 UTC","enabled":false,"foreman_tasks_recurring_logic_id":4,"cron_expression":"* - * * * */5","products":[{"id":6,"cp_id":"679719757090","name":"Test Product","label":"Test_Product","description":"A + 00:00:00 +0000","created_at":"2024-07-18 10:36:19 UTC","updated_at":"2024-07-18 + 10:36:22 UTC","enabled":false,"foreman_tasks_recurring_logic_id":11,"cron_expression":"* + * * * */5","products":[{"id":1,"cp_id":"393573755764","name":"Test Product","label":"Test_Product","description":"A happy little test product","sync_state":null,"last_sync":null,"last_sync_words":null,"repository_count":0}],"permissions":{"view_sync_plans":true,"edit_sync_plans":true,"destroy_sync_plans":true}}]} ' @@ -145,6 +140,8 @@ interactions: - max-age=0, private, must-revalidate Connection: - Keep-Alive + Content-Length: + - '807' 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''; @@ -156,15 +153,13 @@ interactions: Foreman_current_location: - ; ANY Foreman_current_organization: - - 6; Test Organization + - 4; Test Organization Foreman_version: - - 2.1.2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=98 Strict-Transport-Security: - max-age=631139040; includeSubdomains - Vary: - - Accept-Encoding X-Content-Type-Options: - nosniff X-Download-Options: @@ -175,8 +170,6 @@ interactions: - none X-XSS-Protection: - 1; mode=block - content-length: - - '789' status: code: 200 message: OK @@ -192,14 +185,14 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/organizations/6/sync_plans/2 + uri: https://foreman.example.org/katello/api/organizations/4/sync_plans/6 response: body: - string: ' {"id":2,"organization_id":6,"name":"Test Sync Plan","description":"Sync + string: ' {"id":6,"organization_id":4,"name":"Test Sync Plan","description":"Sync daily, not weekly","interval":"custom cron","next_sync":null,"sync_date":"2017-01-01 - 00:00:00 UTC","created_at":"2020-09-04 13:03:57 UTC","updated_at":"2020-09-04 - 13:04:01 UTC","enabled":false,"foreman_tasks_recurring_logic_id":4,"cron_expression":"* - * * * */5","products":[{"id":6,"cp_id":"679719757090","name":"Test Product","label":"Test_Product","description":"A + 00:00:00 +0000","created_at":"2024-07-18 10:36:19 UTC","updated_at":"2024-07-18 + 10:36:22 UTC","enabled":false,"foreman_tasks_recurring_logic_id":11,"cron_expression":"* + * * * */5","products":[{"id":1,"cp_id":"393573755764","name":"Test Product","label":"Test_Product","description":"A happy little test product","sync_state":null,"last_sync":null,"last_sync_words":null,"repository_count":0}],"permissions":{"view_sync_plans":true,"edit_sync_plans":true,"destroy_sync_plans":true}} ' @@ -208,6 +201,8 @@ interactions: - max-age=0, private, must-revalidate Connection: - Keep-Alive + Content-Length: + - '641' 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''; @@ -219,15 +214,13 @@ interactions: Foreman_current_location: - ; ANY Foreman_current_organization: - - 6; Test Organization + - 4; Test Organization Foreman_version: - - 2.1.2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=97 Strict-Transport-Security: - max-age=631139040; includeSubdomains - Vary: - - Accept-Encoding X-Content-Type-Options: - nosniff X-Download-Options: @@ -238,8 +231,6 @@ interactions: - none X-XSS-Protection: - 1; mode=block - content-length: - - '638' status: code: 200 message: OK diff --git a/tests/test_playbooks/fixtures/sync_plan-8.yml b/tests/test_playbooks/fixtures/sync_plan-8.yml index aff1ebfc8..1026b2b3a 100644 --- a/tests/test_playbooks/fixtures/sync_plan-8.yml +++ b/tests/test_playbooks/fixtures/sync_plan-8.yml @@ -14,12 +14,14 @@ interactions: uri: https://foreman.example.org/api/status response: body: - string: '{"result":"ok","status":200,"version":"2.1.2","api_version":2}' + string: '{"result":"ok","status":200,"version":"3.12.0-develop","api_version":2}' headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive + Content-Length: + - '71' 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: - - 2.1.2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=100 Strict-Transport-Security: - max-age=631139040; includeSubdomains - Vary: - - Accept-Encoding X-Content-Type-Options: - nosniff X-Download-Options: @@ -50,8 +50,6 @@ interactions: - none X-XSS-Protection: - 1; mode=block - content-length: - - '62' status: code: 200 message: OK @@ -70,17 +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\": 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\":\"2020-09-04 13:03:52 UTC\",\"updated_at\"\ - :\"2020-09-04 13:03:52 UTC\",\"id\":6,\"name\":\"Test Organization\",\"title\"\ - :\"Test Organization\",\"description\":\"A test organization\"}]\n}\n" + 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\":\"2024-07-18 + 10:23:39 UTC\",\"updated_at\":\"2024-07-18 10:23:41 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''; @@ -94,13 +93,11 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 2.1.2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=99 Strict-Transport-Security: - max-age=631139040; includeSubdomains - Vary: - - Accept-Encoding X-Content-Type-Options: - nosniff X-Download-Options: @@ -111,8 +108,6 @@ interactions: - none X-XSS-Protection: - 1; mode=block - content-length: - - '388' status: code: 200 message: OK @@ -128,15 +123,15 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/organizations/6/sync_plans?search=name%3D%22Test+Sync+Plan%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/organizations/4/sync_plans?search=name%3D%22Test+Sync+Plan%22&per_page=4294967296 response: body: - string: '{"total":1,"subtotal":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Sync Plan\"","sort":{"by":"name","order":"asc"},"results":[{"id":2,"organization_id":6,"name":"Test + string: '{"total":1,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test + Sync Plan\"","sort":{"by":"name","order":"asc"},"results":[{"id":6,"organization_id":4,"name":"Test Sync Plan","description":"Sync daily, not weekly","interval":"custom cron","next_sync":null,"sync_date":"2017-01-01 - 00:00:00 UTC","created_at":"2020-09-04 13:03:57 UTC","updated_at":"2020-09-04 - 13:04:01 UTC","enabled":false,"foreman_tasks_recurring_logic_id":4,"cron_expression":"* - * * * */5","products":[{"id":6,"cp_id":"679719757090","name":"Test Product","label":"Test_Product","description":"A + 00:00:00 +0000","created_at":"2024-07-18 10:36:19 UTC","updated_at":"2024-07-18 + 10:36:22 UTC","enabled":false,"foreman_tasks_recurring_logic_id":11,"cron_expression":"* + * * * */5","products":[{"id":1,"cp_id":"393573755764","name":"Test Product","label":"Test_Product","description":"A happy little test product","sync_state":null,"last_sync":null,"last_sync_words":null,"repository_count":0}],"permissions":{"view_sync_plans":true,"edit_sync_plans":true,"destroy_sync_plans":true}}]} ' @@ -145,6 +140,8 @@ interactions: - max-age=0, private, must-revalidate Connection: - Keep-Alive + Content-Length: + - '807' 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''; @@ -156,15 +153,13 @@ interactions: Foreman_current_location: - ; ANY Foreman_current_organization: - - 6; Test Organization + - 4; Test Organization Foreman_version: - - 2.1.2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=98 Strict-Transport-Security: - max-age=631139040; includeSubdomains - Vary: - - Accept-Encoding X-Content-Type-Options: - nosniff X-Download-Options: @@ -175,8 +170,6 @@ interactions: - none X-XSS-Protection: - 1; mode=block - content-length: - - '789' status: code: 200 message: OK @@ -194,7 +187,7 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: DELETE - uri: https://foreman.example.org/katello/api/organizations/6/sync_plans/2 + uri: https://foreman.example.org/katello/api/organizations/4/sync_plans/6 response: body: string: '' @@ -212,9 +205,9 @@ interactions: Foreman_current_location: - ; ANY Foreman_current_organization: - - 6; Test Organization + - 4; Test Organization Foreman_version: - - 2.1.2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=97 Strict-Transport-Security: diff --git a/tests/test_playbooks/location.yml b/tests/test_playbooks/location.yml index 8c49ea421..aab694a5e 100644 --- a/tests/test_playbooks/location.yml +++ b/tests/test_playbooks/location.yml @@ -194,6 +194,22 @@ expected_change: false expected_error: false + - name: Add a description to "Test Location" + include_tasks: tasks/location.yml + vars: + location_name: Test Location + location_description: MyNewLocationWithADescription + location_state: present + expected_change: true + + - name: Add a description to "Test Location" a second time + include_tasks: tasks/location.yml + vars: + location_name: Test Location + location_description: MyNewLocationWithADescription + location_state: present + expected_change: false + - hosts: localhost collections: - redhat.satellite diff --git a/tests/test_playbooks/tasks/content_view_filter.yml b/tests/test_playbooks/tasks/content_view_filter.yml index 01e78962e..9f0fc9324 100644 --- a/tests/test_playbooks/tasks/content_view_filter.yml +++ b/tests/test_playbooks/tasks/content_view_filter.yml @@ -8,7 +8,6 @@ inclusion: true original_packages: true filter_state: present - rule_state: absent content_view_filter: username: "{{ foreman_username }}" password: "{{ foreman_password }}" @@ -21,13 +20,7 @@ inclusion: "{{ inclusion | default(omit) }}" original_module_streams: "{{ original_module_streams | default(omit) }}" original_packages: "{{ original_packages | default(omit) }}" - errata_id: "{{ errata_id | default(omit) }}" - end_date: "{{ end_date | default(omit) }}" - start_date: "{{ start_date | default(omit) }}" - package_group: "{{ package_group | default(omit) }}" - tag: "{{ tag | default(omit) }}" filter_state: "{{ filter_state }}" - rule_state: "{{ rule_state }}" register: result - name: "Assert Result" @@ -49,7 +42,6 @@ inclusion: true original_module_streams: true filter_state: present - rule_state: absent content_view_filter: username: "{{ foreman_username }}" password: "{{ foreman_password }}" @@ -62,13 +54,7 @@ inclusion: "{{ inclusion | default(omit) }}" original_module_streams: "{{ original_module_streams | default(omit) }}" original_packages: "{{ original_packages | default(omit) }}" - errata_id: "{{ errata_id | default(omit) }}" - end_date: "{{ end_date | default(omit) }}" - start_date: "{{ start_date | default(omit) }}" - package_group: "{{ package_group | default(omit) }}" - tag: "{{ tag | default(omit) }}" filter_state: "{{ filter_state }}" - rule_state: "{{ rule_state }}" register: result - name: "Assert Result" @@ -89,7 +75,6 @@ filter_type: deb inclusion: true filter_state: present - rule_state: absent content_view_filter: username: "{{ foreman_username }}" password: "{{ foreman_password }}" @@ -102,13 +87,7 @@ inclusion: "{{ inclusion | default(omit) }}" original_module_streams: "{{ original_module_streams | default(omit) }}" original_packages: "{{ original_packages | default(omit) }}" - errata_id: "{{ errata_id | default(omit) }}" - end_date: "{{ end_date | default(omit) }}" - start_date: "{{ start_date | default(omit) }}" - package_group: "{{ package_group | default(omit) }}" - tag: "{{ tag | default(omit) }}" filter_state: "{{ filter_state }}" - rule_state: "{{ rule_state }}" register: result - name: "Assert Result" @@ -128,7 +107,6 @@ content_view_name: "Test Content View" filter_type: rpm filter_state: present - rule_state: absent content_view_filter: username: "{{ foreman_username }}" password: "{{ foreman_password }}" @@ -141,13 +119,7 @@ inclusion: "{{ inclusion | default(omit) }}" original_module_streams: "{{ original_module_streams | default(omit) }}" original_packages: "{{ original_packages | default(omit) }}" - errata_id: "{{ errata_id | default(omit) }}" - end_date: "{{ end_date | default(omit) }}" - start_date: "{{ start_date | default(omit) }}" - package_group: "{{ package_group | default(omit) }}" - tag: "{{ tag | default(omit) }}" filter_state: "{{ filter_state }}" - rule_state: "{{ rule_state }}" register: result - name: "Assert Result" @@ -167,8 +139,6 @@ content_view_name: "Test Content View" filter_type: package_group filter_state: present - package_group: birds - rule_state: absent content_view_filter: username: "{{ foreman_username }}" password: "{{ foreman_password }}" @@ -181,13 +151,7 @@ inclusion: "{{ inclusion | default(omit) }}" original_module_streams: "{{ original_module_streams | default(omit) }}" original_packages: "{{ original_packages | default(omit) }}" - errata_id: "{{ errata_id | default(omit) }}" - end_date: "{{ end_date | default(omit) }}" - start_date: "{{ start_date | default(omit) }}" - package_group: "{{ package_group | default(omit) }}" - tag: "{{ tag | default(omit) }}" filter_state: "{{ filter_state }}" - rule_state: "{{ rule_state }}" register: result - name: "Assert Result" @@ -205,10 +169,8 @@ content_view_filter_name: "Test Content View Filter - erratum_by_id" organization_name: "Test Organization" content_view_name: "Test Content View" - errata_id: "RHEA-2012:0004" filter_type: erratum filter_state: present - rule_state: absent content_view_filter: username: "{{ foreman_username }}" password: "{{ foreman_password }}" @@ -221,13 +183,7 @@ inclusion: "{{ inclusion | default(omit) }}" original_module_streams: "{{ original_module_streams | default(omit) }}" original_packages: "{{ original_packages | default(omit) }}" - errata_id: "{{ errata_id | default(omit) }}" - end_date: "{{ end_date | default(omit) }}" - start_date: "{{ start_date | default(omit) }}" - package_group: "{{ package_group | default(omit) }}" - tag: "{{ tag | default(omit) }}" filter_state: "{{ filter_state }}" - rule_state: "{{ rule_state }}" register: result - name: "Assert Result" @@ -246,10 +202,7 @@ organization_name: "Test Organization" content_view_name: "Test Content View" filter_type: erratum - end_date: "2018-01-03" - start_date: "2017-01-03" filter_state: present - rule_state: absent content_view_filter: username: "{{ foreman_username }}" password: "{{ foreman_password }}" @@ -262,13 +215,7 @@ inclusion: "{{ inclusion | default(omit) }}" original_module_streams: "{{ original_module_streams | default(omit) }}" original_packages: "{{ original_packages | default(omit) }}" - errata_id: "{{ errata_id | default(omit) }}" - end_date: "{{ end_date | default(omit) }}" - start_date: "{{ start_date | default(omit) }}" - package_group: "{{ package_group | default(omit) }}" - tag: "{{ tag | default(omit) }}" filter_state: "{{ filter_state }}" - rule_state: "{{ rule_state }}" register: result - name: "Assert Result" @@ -287,9 +234,7 @@ organization_name: "Test Organization" content_view_name: "Test Content View" filter_type: docker - tag: birds filter_state: present - rule_state: absent content_view_filter: username: "{{ foreman_username }}" password: "{{ foreman_password }}" @@ -302,13 +247,7 @@ inclusion: "{{ inclusion | default(omit) }}" original_module_streams: "{{ original_module_streams | default(omit) }}" original_packages: "{{ original_packages | default(omit) }}" - errata_id: "{{ errata_id | default(omit) }}" - end_date: "{{ end_date | default(omit) }}" - start_date: "{{ start_date | default(omit) }}" - package_group: "{{ package_group | default(omit) }}" - tag: "{{ tag | default(omit) }}" filter_state: "{{ filter_state }}" - rule_state: "{{ rule_state }}" register: result - name: "Assert Result" @@ -328,7 +267,6 @@ content_view_name: "Test Content View" filter_type: modulemd filter_state: present - rule_state: absent content_view_filter: username: "{{ foreman_username }}" password: "{{ foreman_password }}" @@ -341,13 +279,7 @@ inclusion: "{{ inclusion | default(omit) }}" original_module_streams: "{{ original_module_streams | default(omit) }}" original_packages: "{{ original_packages | default(omit) }}" - errata_id: "{{ errata_id | default(omit) }}" - end_date: "{{ end_date | default(omit) }}" - start_date: "{{ start_date | default(omit) }}" - package_group: "{{ package_group | default(omit) }}" - tag: "{{ tag | default(omit) }}" filter_state: "{{ filter_state }}" - rule_state: "{{ rule_state }}" register: result - name: "Assert Result" @@ -367,7 +299,6 @@ content_view_name: "Test Content View" filter_type: deb filter_state: present - rule_state: absent content_view_filter: username: "{{ foreman_username }}" password: "{{ foreman_password }}" @@ -380,13 +311,7 @@ inclusion: "{{ inclusion | default(omit) }}" original_module_streams: "{{ original_module_streams | default(omit) }}" original_packages: "{{ original_packages | default(omit) }}" - errata_id: "{{ errata_id | default(omit) }}" - end_date: "{{ end_date | default(omit) }}" - start_date: "{{ start_date | default(omit) }}" - package_group: "{{ package_group | default(omit) }}" - tag: "{{ tag | default(omit) }}" filter_state: "{{ filter_state }}" - rule_state: "{{ rule_state }}" register: result - name: "Assert Result" diff --git a/tests/test_playbooks/tasks/content_view_filter_deb.yml b/tests/test_playbooks/tasks/content_view_filter_deb.yml index 07098ab87..f4c87480f 100644 --- a/tests/test_playbooks/tasks/content_view_filter_deb.yml +++ b/tests/test_playbooks/tasks/content_view_filter_deb.yml @@ -5,7 +5,7 @@ content_view_name: "Test Content View" organization_name: "Test Organization" repositories: - - name: "Test Repository" + - name: "Test Debian Repository" product: "Test Product" filter_state: present content_view_filter: diff --git a/tests/test_playbooks/tasks/content_view_filter_rule_cleanup.yml b/tests/test_playbooks/tasks/content_view_filter_rule_cleanup.yml index 22f9cd231..cf2296ba4 100644 --- a/tests/test_playbooks/tasks/content_view_filter_rule_cleanup.yml +++ b/tests/test_playbooks/tasks/content_view_filter_rule_cleanup.yml @@ -344,62 +344,3 @@ when: expected_change is defined vars: rule_state: absent - -- name: "Delete Content View Filter Rule for deb package 1" - vars: - content_view_filter_name: "Test Content View Filter - deb" - content_view_name: "Test Content View" - organization_name: "Test Organization" - package_name: "bear" - rule_state: absent - content_view_filter_rule: - username: "{{ foreman_username }}" - password: "{{ foreman_password }}" - server_url: "{{ foreman_server_url }}" - validate_certs: "{{ foreman_validate_certs }}" - organization: "{{ organization_name }}" - content_view: "{{ content_view_name }}" - content_view_filter: "{{ content_view_filter_name }}" - name: "{{ package_name }}" - state: "{{ rule_state }}" - register: result - - -- name: "Assert Result" - ansible.builtin.assert: - fail_msg: "Ensuring content view filter rule is {{ rule_state }} failed! (expected_change: {{ expected_change | default('unknown') }})" - that: - - result.changed == expected_change - when: expected_change is defined - vars: - rule_state: absent - - -- name: "Delete Content View Filter Rule for deb package 2" - vars: - content_view_filter_name: "Test Content View Filter - deb" - content_view_name: "Test Content View" - organization_name: "Test Organization" - package_name: "camel" - rule_state: absent - content_view_filter_rule: - username: "{{ foreman_username }}" - password: "{{ foreman_password }}" - server_url: "{{ foreman_server_url }}" - validate_certs: "{{ foreman_validate_certs }}" - organization: "{{ organization_name }}" - content_view: "{{ content_view_name }}" - content_view_filter: "{{ content_view_filter_name }}" - name: "{{ package_name }}" - state: "{{ rule_state }}" - register: result - - -- name: "Assert Result" - ansible.builtin.assert: - fail_msg: "Ensuring content view filter rule is {{ rule_state }} failed! (expected_change: {{ expected_change | default('unknown') }})" - that: - - result.changed == expected_change - when: expected_change is defined - vars: - rule_state: absent diff --git a/tests/test_playbooks/tasks/content_view_filter_rule_deb.yml b/tests/test_playbooks/tasks/content_view_filter_rule_deb.yml index 2ffe446d1..4ddbba334 100644 --- a/tests/test_playbooks/tasks/content_view_filter_rule_deb.yml +++ b/tests/test_playbooks/tasks/content_view_filter_rule_deb.yml @@ -89,3 +89,61 @@ vars: rule_state: present expected_change: false + +- name: "Delete Content View Filter Rule for deb package 1" + vars: + content_view_filter_name: "Test Content View Filter - deb" + content_view_name: "Test Content View" + organization_name: "Test Organization" + package_name: "bear" + rule_state: absent + content_view_filter_rule: + username: "{{ foreman_username }}" + password: "{{ foreman_password }}" + server_url: "{{ foreman_server_url }}" + validate_certs: "{{ foreman_validate_certs }}" + organization: "{{ organization_name }}" + content_view: "{{ content_view_name }}" + content_view_filter: "{{ content_view_filter_name }}" + name: "{{ package_name }}" + state: "{{ rule_state }}" + register: result + + +- name: "Assert Result" + ansible.builtin.assert: + fail_msg: "Ensuring content view filter rule is {{ rule_state }} failed! (expected_change: {{ expected_change | default('unknown') }})" + that: + - result.changed == expected_change + when: expected_change is defined + vars: + rule_state: absent + +- name: "Delete Content View Filter Rule for deb package 2" + vars: + content_view_filter_name: "Test Content View Filter - deb" + content_view_name: "Test Content View" + organization_name: "Test Organization" + package_name: "camel" + rule_state: absent + content_view_filter_rule: + username: "{{ foreman_username }}" + password: "{{ foreman_password }}" + server_url: "{{ foreman_server_url }}" + validate_certs: "{{ foreman_validate_certs }}" + organization: "{{ organization_name }}" + content_view: "{{ content_view_name }}" + content_view_filter: "{{ content_view_filter_name }}" + name: "{{ package_name }}" + state: "{{ rule_state }}" + register: result + + +- name: "Assert Result" + ansible.builtin.assert: + fail_msg: "Ensuring content view filter rule is {{ rule_state }} failed! (expected_change: {{ expected_change | default('unknown') }})" + that: + - result.changed == expected_change + when: expected_change is defined + vars: + rule_state: absent diff --git a/tests/test_playbooks/tasks/katello_sync.yml b/tests/test_playbooks/tasks/katello_sync.yml index 17e73a2ca..377527413 100644 --- a/tests/test_playbooks/tasks/katello_sync.yml +++ b/tests/test_playbooks/tasks/katello_sync.yml @@ -24,6 +24,7 @@ that: - (( result.task.ended_at | replace(' UTC', '') | to_datetime ) - ( result.task.started_at | replace(' UTC', '') | to_datetime )).total_seconds() >= 2 when: + - expected_time is not defined or expected_time - expected_fail is not defined or not expected_fail - result.task - assert: diff --git a/tests/test_playbooks/tasks/location.yml b/tests/test_playbooks/tasks/location.yml index ce048f677..5851129ee 100644 --- a/tests/test_playbooks/tasks/location.yml +++ b/tests/test_playbooks/tasks/location.yml @@ -8,6 +8,7 @@ server_url: "{{ foreman_server_url }}" validate_certs: "{{ foreman_validate_certs }}" name: "{{ location_name }}" + description: "{{ location_description | default(omit) }}" parent: "{{ location_parent | default(omit) }}" organizations: "{{ location_organizations | default(omit) }}" parameters: "{{ location_parameters | default(omit) }}" diff --git a/tests/test_playbooks/tasks/sync_plan.yml b/tests/test_playbooks/tasks/sync_plan.yml index 02acc3de6..10b643d8b 100644 --- a/tests/test_playbooks/tasks/sync_plan.yml +++ b/tests/test_playbooks/tasks/sync_plan.yml @@ -5,7 +5,7 @@ sync_plan_organization: "Test Organization" sync_plan_interval: "weekly" sync_plan_enabled: false - sync_plan_sync_date: "2017-01-01 00:00:00 UTC" + sync_plan_sync_date: "2017-01-01 00:00:00 +0000" sync_plan_state: present sync_plan: username: "{{ foreman_username }}"