diff --git a/module_utils/ansible_nailgun_cement.py b/module_utils/ansible_nailgun_cement.py index b462a03aa5..46267a4553 100644 --- a/module_utils/ansible_nailgun_cement.py +++ b/module_utils/ansible_nailgun_cement.py @@ -10,14 +10,18 @@ _check_for_value, ActivationKey, Entity, + AbstractContentViewFilter, CommonParameter, ContentView, + ContentViewFilterRule, ContentViewVersion, Domain, + Errata, LifecycleEnvironment, Location, OperatingSystem, Organization, + PackageGroup, Ping, Product, Realm, @@ -231,12 +235,12 @@ def update_fields(new, old, fields): # Common functionality to manipulate entities -def naildown_entity_state(entity_class, entity_dict, entity, state, module): - changed, _ = naildown_entity(entity_class, entity_dict, entity, state, module) +def naildown_entity_state(entity_class, entity_dict, entity, state, module, check_missing=None): + changed, _ = naildown_entity(entity_class, entity_dict, entity, state, module, check_missing) return changed -def naildown_entity(entity_class, entity_dict, entity, state, module): +def naildown_entity(entity_class, entity_dict, entity, state, module, check_missing=None): """ Ensure that a given entity has a certain state """ changed, changed_entity = False, entity if state == 'present_with_defaults': @@ -246,7 +250,7 @@ def naildown_entity(entity_class, entity_dict, entity, state, module): if entity is None: changed, changed_entity = create_entity(entity_class, entity_dict, module) else: - changed, changed_entity = update_entity(entity, entity_dict, module) + changed, changed_entity = update_entity(entity, entity_dict, module, check_missing) elif state == 'copied': new_entity = entity_class(name=entity_dict['new_name'], organization=entity_dict['organization']).search() if entity is not None and len(new_entity) == 0: @@ -323,7 +327,7 @@ def fields_equal(value1, value2): return value1 == value2 -def update_entity(old_entity, entity_dict, module): +def update_entity(old_entity, entity_dict, module, check_missing): try: volatile_entity = old_entity.read() result = volatile_entity @@ -332,6 +336,18 @@ def update_entity(old_entity, entity_dict, module): if key in entity_dict and not fields_equal(value, entity_dict[key]): volatile_entity.__setattr__(key, entity_dict[key]) fields.append(key) + # check_missing is a special case, Foreman sometimes returns different values + # depending on what 'type' of same object you are requesting. Content View + # Filters are a prime example. We list these attributes in `check_missing` + # so we can ensure the entity is as the user specified. + if check_missing is not None and key not in entity_dict and key in check_missing: + volatile_entity.__setattr__(key, None) + fields.append(key) + if check_missing is not None: + for key in check_missing: + if key in entity_dict and key not in volatile_entity.get_values(): + volatile_entity.__setattr__(key, entity_dict[key]) + fields.append(key) if len(fields) > 0: if not module.check_mode: result = volatile_entity.update(fields) @@ -357,6 +373,16 @@ def find_activation_key(module, name, organization, failsafe=False): return handle_find_response(module, activation_key.search(), message="No activation key found for %s" % name, failsafe=failsafe) +def find_package_group(module, name, failsafe=False): + package_group = PackageGroup().search(set(), {'search': 'name="{}"'.format(name)}) + return handle_find_response(module, package_group, message="No package group found for %s" % name, failsafe=failsafe) + + +def find_errata(module, id, organization, failsafe=False): + errata = Errata().search(set(), {'search': 'id="{}"'.format(id)}) + return handle_find_response(module, errata, message="No errata found for %s" % id, failsafe=failsafe) + + def find_content_view(module, name, organization, failsafe=False): content_view = ContentView(name=name, organization=organization) return handle_find_response(module, content_view.search(), message="No content view found for %s" % name, failsafe=failsafe) @@ -373,6 +399,19 @@ def find_content_view_version(module, content_view, environment=None, version=No format(content_view.name, version), failsafe=failsafe) +def find_content_view_filter_rule(module, content_view_filter, name=False, errata=False, failsafe=False): + if errata is not False: + content_view_filter_rule = ContentViewFilterRule(content_view_filter=content_view_filter, errata=errata).search() + else: + content_view_filter_rule = ContentViewFilterRule(name=name, content_view_filter=content_view_filter).search() + return handle_find_response(module, content_view_filter_rule, message="No content view filter rule found for %s" % name or errata, failsafe=failsafe) + + +def find_content_view_filter(module, name, content_view, failsafe=False): + content_view_filter = AbstractContentViewFilter(name=name, content_view=content_view) + return handle_find_response(module, content_view_filter.search(), message="No content view filter found for %s" % name, failsafe=failsafe) + + def find_organizations(module, organizations): return list(map(lambda organization: find_organization(module, organization), organizations)) diff --git a/modules/katello_content_view_filter.py b/modules/katello_content_view_filter.py new file mode 100755 index 0000000000..b9e4bc678f --- /dev/null +++ b/modules/katello_content_view_filter.py @@ -0,0 +1,324 @@ +#!/usr/bin/python +# -*- coding: utf-8 -*- +# (c) 2018, Sean O'Keeffe +# +# This file is part of Ansible +# +# Ansible is free software: you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# Ansible is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with Ansible. If not, see . + +DOCUMENTATION = ''' +--- +module: katello_content_view_filter +short_description: Create and Manage Katello content View filters +description: + - Create and Manage Katello content View filters +author: "Sean O'Keeffe (@sean797)" +requirements: + - "nailgun >= 0.28.0" + - "python >= 2.6" +options: + server_url: + description: + - URL of Foreman server + required: true + username: + description: + - Username on Foreman server + required: true + password: + description: + - Password for user accessing Foreman server + required: true + verify_ssl: + description: + - Verify SSL of the Foreman server + default: true + type: bool + content_view: + description: + - Name of the content view + required: true + organization: + description: + - Organization that the Content View is in + required: true + filter_state: + description: + - State of the content view filter + default: present + choices: + - present + - absent + repositories: + description: + - List of repositories that include name and product + - An empty Array means all current and future repositories + default: [] + type: list + rule_state: + description: + - State of the content view filter rule + default: present + choices: + - present + - absent + filter_type: + description: + - Content view filter type + required: true + choices: + - rpm + - package_group + - erratum + - docker + rule_name: + description: + - Content view filter rule name or package name + alias: + - package_name + - package_group + - tag + default: C(name) + date_type: + description: + - Search using the 'Issued On' or 'Updated On' + - Valid on C(filter_type) erratum only + default: updated + choices: + - issued + - updated + end_date: + description: + - erratum end date (YYYY-MM-DD) + start_date: + description: + - erratum start date (YYYY-MM-DD) + errata_id: + description: + - erratum id + max_version: + description: + - package maximum version + min_version: + description: + - package minimum version + types: + description: + - erratum types (enhancement, bugfix, security) + default: ["bugfix", "enhancement", "security"] + version: + description: + - package version + inclusion: + description: + - Create an include filter + default: False +''' + +EXAMPLES = ''' +- name: Exclude csh + katello_content_view_filter: + username: "admin" + password: "changeme" + server_url: "https://foreman.example.com" + name: "package filter 1" + organization: "Default Organization" + content_view: Web Servers + filter_type: "rpm" + package_name: tcsh + +- name: Include newer csh versions + katello_content_view_filter: + username: "admin" + password: "changeme" + server_url: "https://foreman.example.com" + name: "package filter 1" + organization: "Default Organization" + content_view: Web Servers + filter_type: "rpm" + package_name: tcsh + min_version: 6.20.00 + inclusion: True +''' + +RETURN = '''# ''' + +try: + from nailgun.entities import ( + AbstractContentViewFilter, + ContentViewFilterRule, + ) + + from ansible.module_utils.ansible_nailgun_cement import ( + create_server, + ping_server, + find_organization, + find_content_view, + find_content_view_filter, + find_repositories, + find_content_view_filter_rule, + find_errata, + find_package_group, + naildown_entity_state, + sanitize_entity_dict, + ) + + has_import_error = False +except ImportError as e: + has_import_error = True + import_error_msg = str(e) + +from ansible.module_utils.basic import AnsibleModule + +content_filter_map = { + 'name': 'name', + 'description': 'description', + 'repositories': 'repository', + 'inclusion': 'inclusion', + 'content_view': 'content_view', + 'filter_type': 'type', +} + +content_filter_rule_erratum_map = { + 'content_view_filter': 'content_view_filter', + 'date_type': 'date_type', + 'end_date': 'end_date', + 'start_date': 'start_date', + 'types': 'types', +} + +content_filter_rule_erratum_id_map = { + 'content_view_filter': 'content_view_filter', + 'errata': 'errata', + 'date_type': 'date_type', +} + +content_filter_rule_rpm_map = { + 'rule_name': 'name', + 'content_view_filter': 'content_view_filter', + 'end_date': 'end_date', + 'max_version': 'max_version', + 'min_version': 'min_version', + 'version': 'version', + 'architecture': 'architecture', +} + +content_filter_rule_package_group_map = { + 'rule_name': 'name', + 'content_view_filter': 'content_view_filter', + 'uuid': 'uuid', + +} + +content_filter_rule_docker_map = { + 'rule_name': 'name', + 'content_view_filter': 'content_view_filter', + +} + + +def main(): + module = AnsibleModule( + argument_spec=dict( + server_url=dict(required=True), + username=dict(required=True, no_log=True), + password=dict(required=True, no_log=True), + verify_ssl=dict(type='bool', default=True), + name=dict(required=True), + description=dict(), + repositories=dict(type='list', default=[]), + inclusion=dict(type='bool', default=False), + content_view=dict(required=True), + filter_type=dict(required=True, choices=['rpm', 'package_group', 'erratum', 'docker']), + organization=dict(required=True), + filter_state=dict(default='present', choices=['present', 'absent']), + rule_state=dict(default='present', choices=['present', 'absent']), + rule_name=dict(aliases=['package_name', 'package_group', 'tag']), + date_type=dict(default='updated', choices=['issued', 'updated']), + end_date=dict(), + errata_id=dict(), + max_version=dict(), + min_version=dict(), + start_date=dict(), + types=dict(default=["bugfix", "enhancement", "security"], type='list'), + version=dict(), + ), + supports_check_mode=False, + ) + + if has_import_error: + module.fail_json(msg=import_error_msg) + + entity_dict = dict( + [(k, v) for (k, v) in module.params.items() if v is not None]) + + server_url = entity_dict.pop('server_url') + username = entity_dict.pop('username') + password = entity_dict.pop('password') + verify_ssl = entity_dict.pop('verify_ssl') + filter_state = entity_dict.pop('filter_state') + rule_state = entity_dict.pop('rule_state') + + try: + create_server(server_url, (username, password), verify_ssl) + except Exception as e: + module.fail_json(msg="Failed to connect to Foreman server: %s " % e) + + ping_server(module) + + organization = find_organization(module, name=entity_dict.pop('organization')) + entity_dict['content_view'] = find_content_view(module, name=entity_dict['content_view'], organization=organization) + if len(entity_dict['repositories']) > 0: + entity_dict['repositories'] = find_repositories(module, entity_dict['repositories'], organization) + + content_view_filter_entity = find_content_view_filter(module, name=entity_dict['name'], content_view=entity_dict['content_view'], failsafe=True) + content_view_filter_dict = sanitize_entity_dict(entity_dict, content_filter_map) + + content_view_filter_changed = naildown_entity_state(AbstractContentViewFilter, content_view_filter_dict, content_view_filter_entity, filter_state, module) + + if entity_dict['filter_type'] == 'erratum': + entity_dict['rule_name'] = None + elif 'rule_name' not in entity_dict: + entity_dict['rule_name'] = entity_dict['name'] + + # Find content_view_filter again as it may have just been created + entity_dict['content_view_filter'] = find_content_view_filter(module, name=entity_dict['name'], content_view=entity_dict['content_view'], failsafe=True) + + if entity_dict['content_view_filter'] is not None: + if 'errata_id' in entity_dict: + rule_map = content_filter_rule_erratum_id_map + entity_dict['errata'] = find_errata(module, id=entity_dict['errata_id'], organization=organization) + content_view_filter_rule_entity = find_content_view_filter_rule(module, content_view_filter=entity_dict['content_view_filter'], + errata=entity_dict['errata'], failsafe=True) + else: + rule_map = globals()['content_filter_rule_%s_map' % (entity_dict['filter_type'])] + content_view_filter_rule_entity = find_content_view_filter_rule(module, content_view_filter=entity_dict['content_view_filter'], + name=entity_dict['rule_name'], failsafe=True) + + if entity_dict['filter_type'] == 'package_group': + entity_dict['uuid'] = find_package_group(module, name=entity_dict['rule_name']).uuid + + content_view_filter_rule_dict = sanitize_entity_dict(entity_dict, rule_map) + check_missing = ['min_version', 'max_version', 'version', 'start_date', 'end_date', 'architecture', 'date_type'] + content_view_filter_rule_changed = naildown_entity_state(ContentViewFilterRule, content_view_filter_rule_dict, content_view_filter_rule_entity, + rule_state, module, check_missing) + changed = content_view_filter_changed or content_view_filter_rule_changed + else: + changed = content_view_filter_changed + + module.exit_json(changed=changed) + + +if __name__ == '__main__': + main() diff --git a/test/test_crud.py b/test/test_crud.py index ca994c5ae1..b3eb322634 100644 --- a/test/test_crud.py +++ b/test/test_crud.py @@ -9,6 +9,7 @@ 'activation_key', 'compute_profile', 'content_view', + 'content_view_filter', 'domain', 'global_parameter', 'job_template', diff --git a/test/test_playbooks/content_view_filter.yml b/test/test_playbooks/content_view_filter.yml new file mode 100644 index 0000000000..722c2b5b77 --- /dev/null +++ b/test/test_playbooks/content_view_filter.yml @@ -0,0 +1,168 @@ +--- +- hosts: fixtures + tasks: + - name: Load server config + include_vars: + file: server_vars.yml + - include: tasks/organization.yml + vars: + organization_state: present + - include: tasks/product.yml + vars: + product_state: present + - include: tasks/repository.yml + vars: + repository_state: present + - include: tasks/repository.yml + vars: + repository_state: present + - include: tasks/repository.yml + vars: + repository_state: present + repository_name: Test Docker Repository + repository_content_type: docker + repository_url: https://registry.hub.docker.com + repository_docker_upstream_name: library/busybox + - include: tasks/repository_sync.yml + - include: tasks/repository_sync.yml + vars: + repository: Test Docker Repository + - include: tasks/content_view.yml + +- hosts: tests + gather_facts: false + tasks: + - name: Load server config + include_vars: + file: server_vars.yml + + - name: Test Content View Filter Package + block: + - include: tasks/content_view_filter_package.yml + vars: + expected_change: true + - include: tasks/content_view_filter_package.yml + vars: + expected_change: false + + - include: tasks/content_view_filter_package.yml + vars: + version: 1 + expected_change: true + - include: tasks/content_view_filter_package.yml + vars: + version: 1 + expected_change: false + + - include: tasks/content_view_filter_package.yml + vars: + max_version: 1 + expected_change: true + - include: tasks/content_view_filter_package.yml + vars: + max_version: 1 + expected_change: false + + - include: tasks/content_view_filter_package.yml + vars: + min_version: 1 + expected_change: true + - include: tasks/content_view_filter_package.yml + vars: + min_version: 1 + expected_change: false + + - include: tasks/content_view_filter_package.yml + vars: + inclusion: true + expected_change: true + - include: tasks/content_view_filter_package.yml + vars: + filter_state: absent + rule_state: absent + expected_change: true + + - name: Test Content View Filter Errata ID + block: + - include: tasks/content_view_filter_errata_id.yml + vars: + expected_change: true + - include: tasks/content_view_filter_errata_id.yml + vars: + expected_change: false + - include: tasks/content_view_filter_errata_id.yml + vars: + filter_state: absent + rule_state: absent + expected_change: true + + - name: Test Content View Filter Errata Date + block: + - include: tasks/content_view_filter_errata_date.yml + vars: + expected_change: true + - include: tasks/content_view_filter_errata_date.yml + vars: + expected_change: false + - include: tasks/content_view_filter_errata_date.yml + vars: + date_type: issued + expected_change: true + - include: tasks/content_view_filter_errata_date.yml + vars: + types: security + expected_change: true + - include: tasks/content_view_filter_errata_date.yml + vars: + filter_state: absent + rule_state: absent + expected_change: true + + - name: Test Content View Filter Package Groups + block: + - include: tasks/content_view_filter_package_group.yml + vars: + expected_change: true + - include: tasks/content_view_filter_package_group.yml + vars: + expected_change: false + - include: tasks/content_view_filter_package_group.yml + vars: + filter_state: absent + rule_state: absent + expected_change: true + + - name: Test Content View Filter Docker + block: + - include: tasks/content_view_filter_docker.yml + vars: + expected_change: true + - include: tasks/content_view_filter_docker.yml + vars: + expected_change: false + - include: tasks/content_view_filter_docker.yml + vars: + filter_state: absent + rule_state: absent + expected_change: true + +- hosts: fixtures + gather_facts: false + tasks: + - name: 'Load server config' + include_vars: + file: server_vars.yml + - include: tasks/repository.yml + vars: + repository_name: Test Docker Repository + repository_state: absent + - include: tasks/repository.yml + vars: + repository_state: absent + - include: tasks/product.yml + vars: + product_state: absent + - include: tasks/organization.yml + vars: + organization_state: absent +... diff --git a/test/test_playbooks/fixtures/content_view_filter-1.yml b/test/test_playbooks/fixtures/content_view_filter-1.yml new file mode 100644 index 0000000000..b2b8e5b3b8 --- /dev/null +++ b/test/test_playbooks/fixtures/content_view_filter-1.yml @@ -0,0 +1,506 @@ +interactions: +- request: + body: !!python/unicode '{}' + headers: + Accept: ['*/*'] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Length: ['2'] + User-Agent: [python-requests/2.18.4] + content-type: [application/json] + method: GET + uri: https://centos7-katello-3-6.sean.example.com/katello/api/v2/ping + response: + body: + string: !!binary | + H4sIAAAAAAAAA43NMQ6AIAwF0N1TmM4OOhiNlyGNYiQoEFpcCHdX3Jhwav7P+2nbRiBGDgQLWA0d + kPS3WuWbI7hwunxLsQWPrKwRV67GGVL3SYGBjxofpsxXNNspnTJV3hf834shb3br5YVGMJKm6mSE + lFLzADRdxsUOAQAA + headers: + apipie-checksum: [83fd72067f1c96eb1196b17193cc48d0] + cache-control: ['max-age=0, private, must-revalidate'] + connection: [Keep-Alive] + content-encoding: [gzip] + content-length: ['126'] + content-security-policy: ['default-src ''self''; child-src ''self''; connect-src + ''self'' ws: wss:; img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' + ''unsafe-inline'' ''self''; style-src ''unsafe-inline'' ''self'''] + content-type: [application/json; charset=utf-8] + date: ['Wed, 25 Jul 2018 15:12:47 GMT'] + etag: [W/"ea8cabbc6e00b49718e3c58d4d7dd09b-gzip"] + foreman_api_version: ['2'] + foreman_version: [1.17.1] + keep-alive: ['timeout=5, max=10000'] + server: [Apache/2.4.6 (CentOS)] + set-cookie: [_session_id=acb386808d0167e89834d27a087925d2; path=/; secure; HttpOnly] + status: [200 OK] + strict-transport-security: [max-age=631139040; includeSubdomains] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-download-options: [noopen] + x-frame-options: [sameorigin] + x-permitted-cross-domain-policies: [none] + x-powered-by: [Phusion Passenger 4.0.53] + x-request-id: [0a99af8b-a5c1-4ac4-908d-f2b04552c82d] + x-runtime: ['0.151056'] + x-xss-protection: [1; mode=block] + status: {code: 200, message: OK} +- request: + body: !!python/unicode '{"search": "name=\"Test Organization\""}' + headers: + Accept: ['*/*'] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Length: ['40'] + User-Agent: [python-requests/2.18.4] + content-type: [application/json] + method: GET + uri: https://centos7-katello-3-6.sean.example.com/katello/api/v2/organizations + response: + body: + string: !!binary | + H4sIAAAAAAAAA42PwWrDMAyG73kKo3MKcdjYathpD7BLd2pHUGLRGdwkyMqhC3n3qU7GxmCwm77P + v/mluTAGZBCM4Exd3ihN7ZewWYx4pm8gbjZRV2uekLt3ZejxQk8nOFAS88Jn7MMHShj6E8CaHFg0 + N+us1F517qcYy5UH9sSbUrPkL0xpipJUH2eI2JKulQuanwVQQseEQr5BbYC6so+76mFX3Rt752rr + 7N68Hp41No3+P7Hgwe3LfNDWZ371SZD415un1HEYM7nbOctbsRSfKnwYS2sBAAA= + headers: + apipie-checksum: [83fd72067f1c96eb1196b17193cc48d0] + cache-control: ['max-age=0, private, must-revalidate'] + connection: [Keep-Alive] + content-encoding: [gzip] + content-length: ['218'] + content-security-policy: ['default-src ''self''; child-src ''self''; connect-src + ''self'' ws: wss:; img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' + ''unsafe-inline'' ''self''; style-src ''unsafe-inline'' ''self'''] + content-type: [application/json; charset=utf-8] + date: ['Wed, 25 Jul 2018 15:12:47 GMT'] + etag: [W/"33eb541f7daf03e7d506a757939a7889-gzip"] + foreman_api_version: ['2'] + foreman_version: [1.17.1] + keep-alive: ['timeout=5, max=10000'] + server: [Apache/2.4.6 (CentOS)] + set-cookie: [_session_id=7ab5d38fe1a5b220a7c94c470f9651cf; path=/; secure; HttpOnly] + status: [200 OK] + strict-transport-security: [max-age=631139040; includeSubdomains] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-download-options: [noopen] + x-frame-options: [sameorigin] + x-permitted-cross-domain-policies: [none] + x-powered-by: [Phusion Passenger 4.0.53] + x-request-id: [22c5fc14-f9c1-40e4-9ed4-f767c727c996] + x-runtime: ['0.052780'] + x-xss-protection: [1; mode=block] + status: {code: 200, message: OK} +- request: + body: !!python/unicode '{"organization_id": 9, "name": "Test Content View"}' + headers: + Accept: ['*/*'] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Length: ['51'] + User-Agent: [python-requests/2.18.4] + content-type: [application/json] + method: GET + uri: https://centos7-katello-3-6.sean.example.com/katello/api/v2/content_views + response: + body: + string: !!binary | + H4sIAAAAAAAAA41SwW7bMAy97ysCnt0hTht087UfMGBoeykKQbGYVpgtCpTkzQ3876Vj1XWCFNhN + 5Hvkox55gEhRN1CVBYS0+wy8fsHpgaymYLMuAJmJoXKpaaQANdevc0QcoTrArocKnG4RCiA2KHTQ + oYahAMaQmhigejpATa2nYKM03usmYDFlHLqorBk5zwUY3GupmCl74hqVT95jVOg6y+RaqZgJHXKw + 5FRNaczKxI2OGKLKwMewjEdx4j6LldciZ418+baYpq/gXgpXd+SiKKweLf6Fsd0Om4ypjKmMGQw1 + Wx8XOsQv2tk3PebU2P7naW40bKn2a4mdqZ1hx25ias0oXzRKy39hsy5/XK1vrzbbVbmtyk11s109 + 3N8JPXnzP7SFqXkHs1UWp80dXbo+den37Of51CdInQ2LvR9L+9TCIBJ5oS2Z1GCWzQvL0Xwbczw1 + 6sR5dQ7qOtpusvwP9jnp8N/iCqD8vj5OKhP6tGtseEXzsTQ5+daGrH6ArPEpKNnISa4NjY2XETmF + yNRfBrPgFyBTSxEVsWJsqcNLtGF4Hr69A9j2DxC8AwAA + headers: + apipie-checksum: [83fd72067f1c96eb1196b17193cc48d0] + cache-control: ['max-age=0, private, must-revalidate'] + connection: [Keep-Alive] + content-encoding: [gzip] + content-length: ['432'] + content-security-policy: ['default-src ''self''; child-src ''self''; connect-src + ''self'' ws: wss:; img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' + ''unsafe-inline'' ''self''; style-src ''unsafe-inline'' ''self'''] + content-type: [application/json; charset=utf-8] + date: ['Wed, 25 Jul 2018 15:12:47 GMT'] + etag: [W/"e5377be671b535aa8045efc383418dc4-gzip"] + foreman_api_version: ['2'] + foreman_version: [1.17.1] + keep-alive: ['timeout=5, max=10000'] + server: [Apache/2.4.6 (CentOS)] + set-cookie: [_session_id=db8e3647940a406915ebd4c792d326e1; path=/; secure; HttpOnly] + status: [200 OK] + strict-transport-security: [max-age=631139040; includeSubdomains] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-download-options: [noopen] + x-frame-options: [sameorigin] + x-permitted-cross-domain-policies: [none] + x-powered-by: [Phusion Passenger 4.0.53] + x-request-id: [d126ae67-0211-402d-ac55-73f0452d3544] + x-runtime: ['0.066865'] + x-xss-protection: [1; mode=block] + status: {code: 200, message: OK} +- request: + body: !!python/unicode '{"organization_id": 9, "name": "Test Product"}' + headers: + Accept: ['*/*'] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Length: ['46'] + User-Agent: [python-requests/2.18.4] + content-type: [application/json] + method: GET + uri: https://centos7-katello-3-6.sean.example.com/katello/api/v2/products + response: + body: + string: !!binary | + H4sIAAAAAAAAA2VQy07DMBC88xXWnlOUBEIb31A/ACTKCSHLdVapVce2/ACFqv+OnZY2KrfdmVl7 + Zg4QTOAKaFWAj9vrYnmPpwEdOy11WQA6ZxxQHZVKB8id2F024wLQA2xHoKD5gFCAcR0mOXAv4FiA + Qx9V8EA/DiA7oG0BwrI8wfKhLdt2tXxsnsp0ON1T2KAP5NWZLoqQUMW3qM4wu8IdeuGkDdLoRD6T + Hbd2JEqGoJCE/IS9aNP0JZOp6deqSbZHLZhVXE/IOUrGfBwG7sYcyUch0CffdQrR257tcfwnDzxk + y29pkbonazNYhQHvJ9/Jb1Ylvi6r1aJcLuqGVA2tSlq15H2znqvYd+rNZy0ZpI4pwVRlz7X84Tkl + O5c3x7LPeWsvc+6muhtueu04q+IvmENrvAzGjUyYqEMu4PN49wvMEgD3NQIAAA== + headers: + apipie-checksum: [83fd72067f1c96eb1196b17193cc48d0] + cache-control: ['max-age=0, private, must-revalidate'] + connection: [Keep-Alive] + content-encoding: [gzip] + content-length: ['331'] + content-security-policy: ['default-src ''self''; child-src ''self''; connect-src + ''self'' ws: wss:; img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' + ''unsafe-inline'' ''self''; style-src ''unsafe-inline'' ''self'''] + content-type: [application/json; charset=utf-8] + date: ['Wed, 25 Jul 2018 15:12:47 GMT'] + etag: [W/"29fb7d27538378c07d5476d051e6262c-gzip"] + foreman_api_version: ['2'] + foreman_version: [1.17.1] + keep-alive: ['timeout=5, max=10000'] + server: [Apache/2.4.6 (CentOS)] + set-cookie: [_session_id=d7bc3fcca86faad5aa9234626755510d; path=/; secure; HttpOnly] + status: [200 OK] + strict-transport-security: [max-age=631139040; includeSubdomains] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-download-options: [noopen] + x-frame-options: [sameorigin] + x-permitted-cross-domain-policies: [none] + x-powered-by: [Phusion Passenger 4.0.53] + x-request-id: [f1d8f321-916f-4173-8318-3d17a1eebb3d] + x-runtime: ['0.095189'] + x-xss-protection: [1; mode=block] + status: {code: 200, message: OK} +- request: + body: !!python/unicode '{"product_id": 9, "name": "Test Repository"}' + headers: + Accept: ['*/*'] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Length: ['44'] + User-Agent: [python-requests/2.18.4] + content-type: [application/json] + method: GET + uri: https://centos7-katello-3-6.sean.example.com/katello/api/v2/repositories + response: + body: + string: !!binary | + H4sIAAAAAAAAA3VTyY7bMAy99ysCnuPY8TJerr0WaFFMT8VAkCU6I4xtCVqmzQT591K202nQ9mKT + IkU9vkdewGvPR+iOe3Chf3cMP+FqoGWrk2d7QGu1hW4O40gXkFvx/NvT1kN3gf4MHcx8QtiDthIp + HbgTcN2DRRdG76D7fgGhZ4+zZ/5sqDacw0T5wdLr8Oy9cV2aWjTaHQaU2nKD2ox40PaUmjCa9SNx + 0mzJSt+0TiG+MHKvXpEge0IGj+g8+2xPfFZvFNBz+kn1lttzKoLzekqXhC9WyyD86nyN9ZTX9kz1 + 1gZh1ouxh56LF5wlU5Kwq0Gt3bUZr/ohT5qHRiRlnh2TVoohKUSPZVVz3pQt3b11PPIexxtrShLL + xX4lbMW7u0OwZcPf2MyKOnIeq7T0gmHRgrpos7Zt6rJ6yOC+9tYqnbrzLJgZ+Uxy3PSS6IRVJhJ1 + y5Dcx4gi7PaVhoPK4U/PYgyerhGf27wNBxRVw3PZN0nxIIeklEIkfZX3SZ23dVnUXOYyj1o7tBsy + Lie1POi59SgZp6aAaGySrE7yanesumPWZdnu2+NHSiMB/pt0LLYkquVjbVLZGJRwm754FIRA51YK + Tzaa3fGQXd8lEjrMcU4voJ23iIxmZo6TQCsgNY2AZRON1ECM/uuMjeo+4Plpca2ZoCtyQrdYWdwz + 8bJsVzzdHHayOhhauGXfuKfV6EqKBmrEs4kEHHG5PKjNkNjT/0812A/aPRfV2BG3waOD69P1wy/D + RJa48AMAAA== + headers: + apipie-checksum: [83fd72067f1c96eb1196b17193cc48d0] + cache-control: ['max-age=0, private, must-revalidate'] + connection: [Keep-Alive] + content-encoding: [gzip] + content-length: ['577'] + content-security-policy: ['default-src ''self''; child-src ''self''; connect-src + ''self'' ws: wss:; img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' + ''unsafe-inline'' ''self''; style-src ''unsafe-inline'' ''self'''] + content-type: [application/json; charset=utf-8] + date: ['Wed, 25 Jul 2018 15:12:47 GMT'] + etag: [W/"4800e2cb797f73e5a7b98036a1a0314c-gzip"] + foreman_api_version: ['2'] + foreman_version: [1.17.1] + keep-alive: ['timeout=5, max=10000'] + server: [Apache/2.4.6 (CentOS)] + set-cookie: [_session_id=f7e7311a6b8e41e9a02bf845f38c21db; path=/; secure; HttpOnly] + status: [200 OK] + strict-transport-security: [max-age=631139040; includeSubdomains] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-download-options: [noopen] + x-frame-options: [sameorigin] + x-permitted-cross-domain-policies: [none] + x-powered-by: [Phusion Passenger 4.0.53] + x-request-id: [17c1ff32-2d51-4388-b29d-bcd6a6098a0e] + x-runtime: ['0.101651'] + x-xss-protection: [1; mode=block] + status: {code: 200, message: OK} +- request: + body: !!python/unicode '{"content_view_id": 17, "name": "Test Package Content + View Filter"}' + headers: + Accept: ['*/*'] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Length: ['67'] + User-Agent: [python-requests/2.18.4] + content-type: [application/json] + method: GET + uri: https://centos7-katello-3-6.sean.example.com/katello/api/v2/content_view_filters + response: + body: + string: !!binary | + H4sIAAAAAAAAA0XLsQqAMBAD0N3PyNxBHe9XRORaDx1qK9d2kOK/WxB0ywtJRY6ZPag3SMX+OHkT + 0NCC6PJibLWoRgWF4n07CKvbP0XNoAp7gRD4EBhEXaXNwcnhNlBJxecEmua7ewAzgtzWewAAAA== + headers: + apipie-checksum: [83fd72067f1c96eb1196b17193cc48d0] + cache-control: ['max-age=0, private, must-revalidate'] + connection: [Keep-Alive] + content-encoding: [gzip] + content-length: ['112'] + content-security-policy: ['default-src ''self''; child-src ''self''; connect-src + ''self'' ws: wss:; img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' + ''unsafe-inline'' ''self''; style-src ''unsafe-inline'' ''self'''] + content-type: [application/json; charset=utf-8] + date: ['Wed, 25 Jul 2018 15:12:47 GMT'] + etag: [W/"956e0fd5b832fbda8d01b01a5b7de844-gzip"] + foreman_api_version: ['2'] + foreman_version: [1.17.1] + keep-alive: ['timeout=5, max=10000'] + server: [Apache/2.4.6 (CentOS)] + set-cookie: [_session_id=ae4a6adc7133b87ab71b8a1985acc526; path=/; secure; HttpOnly] + status: [200 OK] + strict-transport-security: [max-age=631139040; includeSubdomains] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-download-options: [noopen] + x-frame-options: [sameorigin] + x-permitted-cross-domain-policies: [none] + x-powered-by: [Phusion Passenger 4.0.53] + x-request-id: [0cddf5d8-0caf-4f14-aca5-c88fcffde3ac] + x-runtime: ['0.059063'] + x-xss-protection: [1; mode=block] + status: {code: 200, message: OK} +- request: + body: !!python/unicode '{"content_view_id": 17, "inclusion": false, "repository_ids": + [13], "type": "rpm", "name": "Test Package Content View Filter"}' + headers: + Accept: ['*/*'] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Length: ['126'] + User-Agent: [python-requests/2.18.4] + content-type: [application/json] + method: POST + uri: https://centos7-katello-3-6.sean.example.com/katello/api/v2/content_view_filters + response: + body: + string: !!binary | + H4sIAAAAAAAAA6VVwW7bOBC99ysEnq1IluzI1rXAnhZosWh7CQKCIkcOEUkkSMpdN/C/d0jRiu06 + bYFcbHJmyBm9eW+YJC9EDrwbrVQDqVvWWVgQZeRODqyjmvFntgM7e6QgdbFckIH1QGryBaxLPk9B + yUc1OBhc8k3C9+Qf2TkwZEEEWG6kduH+Yey6BeEGmANBmcMriny5SfMqLdbJcl0vi3pVJV+/fMST + oxZ/E8antHSPaUn9gvteKysdzEUHy+BjpMBPeXj0VbVs7Nwc0irDgepRa3AUhr00aujxxBywB+Mh + olyN3povSIfFWUw7OU7fZiAkV+YQky3Lxwm2ZXUJ2zlcxF/XQBd9NPpo9N3AUJkdG+QP5m3UX7+9 + tHkkzrN9OvddZbvyhduOf2zT+u/adAo7AzX2YIZKeoI9vEwolZco/TfjeV31hedEAnfQ/uhh7NGo + jRIjdx6KiNAFbaP3+Ho6NNf6eGWdAaCNYQN/Cu0Wij+DoT0i1eLxc5tju7A1uid1WWDiSREXG7oz + atSoHoTCGOawwnqF3olyPdbS4YH8eHy8Mka0Is/ibqb0vH8VAb12Mu7kfmLKMxyicYD/z8hLlnd5 + ABiB1WPTSfsE4sQ1DaaXNmZ/ITHHa0K0OjOiSEBId9uDDHZGHW47Y8I3nEb1ygFVhhro1R5uhR2P + N+h0kxOj8QR6ck7bOsvCmbsWhDJMg9Id3KGIMj12evoRmJKGqOyHUhnxaVD4EsvQzD3dUlD2r0Ta + mEPGR+tUn4WASLbsV+Yy4wlGBhUWC9IgXWAQqGmsXbYSh2hN2DZn66Yt0s39hqcrVFm6FbxNS97A + al0xtlltz1QQdTJ17x2q+lVAXIdhQ6pym2+3m2q1vve8uaWrBbGHgVPdMeTXwxRyOcpihB8ffuxg + 7WbPOhK56X3k8RhJGXaxDlKuN6wQzSYt70WbrgTnabMumrQqttWqrJgoROF7bcHEypjoZUjomHlr + WOV1ns/DSrwZtCxjEN7lHxn8VyhXEbhhw6NC7Mg5WDtBuDN+WaPC3j9qTjaKgvn9DLJhlb9rGOG7 + KONCQOOn01k36Hdl/AtHygSxHfExJH52RbX57FjNaX4dP/wEHCUeJmoIAAA= + headers: + apipie-checksum: [83fd72067f1c96eb1196b17193cc48d0] + cache-control: ['max-age=0, private, must-revalidate'] + connection: [Keep-Alive] + content-encoding: [gzip] + content-length: ['842'] + content-security-policy: ['default-src ''self''; child-src ''self''; connect-src + ''self'' ws: wss:; img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' + ''unsafe-inline'' ''self''; style-src ''unsafe-inline'' ''self'''] + content-type: [application/json; charset=utf-8] + date: ['Wed, 25 Jul 2018 15:12:47 GMT'] + etag: [W/"7e2ffbe457ea0579398a002b4a9e9a09-gzip"] + foreman_api_version: ['2'] + foreman_version: [1.17.1] + keep-alive: ['timeout=5, max=10000'] + server: [Apache/2.4.6 (CentOS)] + set-cookie: [request_method=POST; path=/, _session_id=4acb3b98085666c114a442ddebde214b; + path=/; secure; HttpOnly] + status: [200 OK] + strict-transport-security: [max-age=631139040; includeSubdomains] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-download-options: [noopen] + x-frame-options: [sameorigin] + x-permitted-cross-domain-policies: [none] + x-powered-by: [Phusion Passenger 4.0.53] + x-request-id: [a725ee9a-42da-4de1-a43d-0c10d951c560] + x-runtime: ['0.186616'] + x-xss-protection: [1; mode=block] + status: {code: 200, message: OK} +- request: + body: !!python/unicode '{"content_view_id": 17, "name": "Test Package Content + View Filter"}' + headers: + Accept: ['*/*'] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Length: ['67'] + User-Agent: [python-requests/2.18.4] + content-type: [application/json] + method: GET + uri: https://centos7-katello-3-6.sean.example.com/katello/api/v2/content_view_filters + response: + body: + string: !!binary | + H4sIAAAAAAAAA6VVwY7bIBC99ysizvHasZN14mulnip1VbW9VCuEYZxFaxsEOG268r93wMSbpFm1 + Ui8JzAy88Zs3wwtxyrGWVKslsUP9utFsD9MCDJ02ebYkYIwypOqHtsUDwAx/mnfKOFK9kPpIKtKz + DsiSKCMAwwmznIxLYsAOrbOk+v5CZM/bwUrVk6phrYUlkQIxEDGcrcgXsG7xwPgzgi/eq95B7xbf + JPxYfJCtw2uXRIDlRmoXbpmy4AaYA0EZ5kLybLVNsjLJN4vVplrl1bpcfP3yHk8OWvxLGJ9g6QFh + /bdx1WllpYM56WDpfYwU/sMefVYNw8+cQxplOFA9aA2OQn+QRvUdnpgDDmA8EZSrwVuR5haTswg7 + OU7fZiCAK3OMYKvicaJtVV7Sdk4X8dfV0EYfjT4afTc4VGbPevmLeRv11+8ubZ6Jc7RP574rtCtf + uG38a5k2/1amU9gZqbEGM1USotw8S8UlS59nPq+zvvCcROCO2h89Dh0ZESIWtFNiaCHCxoLF3ayN + ef+qJnrtZNzJw0T5MxyjsYefZyogq7ssZIoZ6qFupX0CcSoa9mknbUR/IRHjFRCtzgyoNhDS3fag + FJxRx9vOCPiG06hOOaDKUAOdOsCtsHG8UZcb5GLZja/Ek3PaVmkaztw1IJRhGpRu4Q7VmOqh1dOP + QEgaotJfSqXEw2AHSUxDM/d0S4rpR1kbZo4pH6xTXRoCHgzWkrv0TwlMc470KiyWpMaxBL3A5sDc + ZSOnIbfL2KZu8mR7v+XJGuWa7ARvkoLXsN6UjG3XuzM5RcFN1fsPeeopa1/02Ktch64lZbHLdrtt + ud7ce91czNV4CMf2sedUtwz19f00ts9nQozwfej7F3M3B3wjoja9jzyOUZRhF/MgxWbLclFvk+Je + NMlacJ7Um7xOynxXrouSiVzkvtYWTMyMiU4GQMfMW12fVVk2d714M2hVxCC8y09r/FfYroKcHiFv + GjgHaycK98YvK+yw8bVEYSCHdlLYGQAUNdN7JeCIFgolYGiHkmqQ0Vs2ig1z4XBsH7ZGd6Qqcswu + rDL/3IZ3brLGDd0bNWh8E8Ozyxy2RrW+mjvhcCPjQkCN/+fVoD/wCba+GgvkdsBXJcyu2G0eHbM5 + za/xcXz3G/VnfIkRCAAA + headers: + apipie-checksum: [83fd72067f1c96eb1196b17193cc48d0] + cache-control: ['max-age=0, private, must-revalidate'] + connection: [Keep-Alive] + content-encoding: [gzip] + content-length: ['870'] + content-security-policy: ['default-src ''self''; child-src ''self''; connect-src + ''self'' ws: wss:; img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' + ''unsafe-inline'' ''self''; style-src ''unsafe-inline'' ''self'''] + content-type: [application/json; charset=utf-8] + date: ['Wed, 25 Jul 2018 15:12:48 GMT'] + etag: [W/"ddd75726e5342dcd8e28e9ffd81eb71b-gzip"] + foreman_api_version: ['2'] + foreman_version: [1.17.1] + keep-alive: ['timeout=5, max=10000'] + server: [Apache/2.4.6 (CentOS)] + set-cookie: [_session_id=cb3d843267b5bdc87f941b05bb0aa2e3; path=/; secure; HttpOnly] + status: [200 OK] + strict-transport-security: [max-age=631139040; includeSubdomains] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-download-options: [noopen] + x-frame-options: [sameorigin] + x-permitted-cross-domain-policies: [none] + x-powered-by: [Phusion Passenger 4.0.53] + x-request-id: [af364d64-ef7b-4b76-8f56-12b7e7d96c80] + x-runtime: ['0.111755'] + x-xss-protection: [1; mode=block] + status: {code: 200, message: OK} +- request: + body: !!python/unicode '{"content_view_filter_id": 21, "name": "bear"}' + headers: + Accept: ['*/*'] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Length: ['46'] + User-Agent: [python-requests/2.18.4] + content-type: [application/json] + method: GET + uri: https://centos7-katello-3-6.sean.example.com/katello/api/v2/content_view_filters/21/rules + response: + body: + string: !!binary | + H4sIAAAAAAAAA0XLsQqAMBAD0N3PyNxBHe9XRKSthwqHlWs7SOm/WxB0ywtJQQrJCqg3iNn9uOzG + oKEF1uXF2GpWDQo6s0g7sFW/fwqaQAXuBuFYYRB05TaGjR7VQDlmSRE0zbV7AKfVSwR5AAAA + headers: + apipie-checksum: [83fd72067f1c96eb1196b17193cc48d0] + cache-control: ['max-age=0, private, must-revalidate'] + connection: [Keep-Alive] + content-encoding: [gzip] + content-length: ['111'] + content-security-policy: ['default-src ''self''; child-src ''self''; connect-src + ''self'' ws: wss:; img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' + ''unsafe-inline'' ''self''; style-src ''unsafe-inline'' ''self'''] + content-type: [application/json; charset=utf-8] + date: ['Wed, 25 Jul 2018 15:12:48 GMT'] + etag: [W/"2515bdcde58d61e5000459519256b95b-gzip"] + foreman_api_version: ['2'] + foreman_version: [1.17.1] + keep-alive: ['timeout=5, max=10000'] + server: [Apache/2.4.6 (CentOS)] + set-cookie: [_session_id=656cba599b2bae8e5e3d7a803afd5661; path=/; secure; HttpOnly] + status: [200 OK] + strict-transport-security: [max-age=631139040; includeSubdomains] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-download-options: [noopen] + x-frame-options: [sameorigin] + x-permitted-cross-domain-policies: [none] + x-powered-by: [Phusion Passenger 4.0.53] + x-request-id: [21ca498b-49d3-4001-bc81-372f71389d5a] + x-runtime: ['0.060818'] + x-xss-protection: [1; mode=block] + status: {code: 200, message: OK} +- request: + body: !!python/unicode '{"name": "bear", "content_view_filter_id": 21}' + headers: + Accept: ['*/*'] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Length: ['46'] + User-Agent: [python-requests/2.18.4] + content-type: [application/json] + method: POST + uri: https://centos7-katello-3-6.sean.example.com/katello/api/v2/content_view_filters/21/rules + response: + body: + string: !!binary | + H4sIAAAAAAAAA1NQqFZKzs8rSc0riS/LTC2PT8vMKUktis9MUbIyMtRRAtHmOkp5ibmpSlZKSamJ + RUo6SslFqYklqSnxiSVAMSMDQwtdA3NdI1MFQ1MrQyMrEwuF0BBnoLLSghTCymq5ANUpg62DAAAA + headers: + apipie-checksum: [83fd72067f1c96eb1196b17193cc48d0] + cache-control: ['max-age=0, private, must-revalidate'] + connection: [Keep-Alive] + content-encoding: [gzip] + content-length: ['114'] + content-security-policy: ['default-src ''self''; child-src ''self''; connect-src + ''self'' ws: wss:; img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' + ''unsafe-inline'' ''self''; style-src ''unsafe-inline'' ''self'''] + content-type: [application/json; charset=utf-8] + date: ['Wed, 25 Jul 2018 15:12:48 GMT'] + etag: [W/"1a6ef3d16e7997484bdbe81f817b2d7c-gzip"] + foreman_api_version: ['2'] + foreman_version: [1.17.1] + keep-alive: ['timeout=5, max=10000'] + server: [Apache/2.4.6 (CentOS)] + set-cookie: [request_method=POST; path=/, _session_id=a5474d8ad3d1884cca90dcc4f927cf28; + path=/; secure; HttpOnly] + status: [200 OK] + strict-transport-security: [max-age=631139040; includeSubdomains] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-download-options: [noopen] + x-frame-options: [sameorigin] + x-permitted-cross-domain-policies: [none] + x-powered-by: [Phusion Passenger 4.0.53] + x-request-id: [932b2aa1-455a-4a00-b1ae-d0dca2193826] + x-runtime: ['0.063179'] + x-xss-protection: [1; mode=block] + status: {code: 200, message: OK} +version: 1 diff --git a/test/test_playbooks/fixtures/content_view_filter-11.yml b/test/test_playbooks/fixtures/content_view_filter-11.yml new file mode 100644 index 0000000000..ee215b9edd --- /dev/null +++ b/test/test_playbooks/fixtures/content_view_filter-11.yml @@ -0,0 +1,519 @@ +interactions: +- request: + body: !!python/unicode '{}' + headers: + Accept: ['*/*'] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Length: ['2'] + User-Agent: [python-requests/2.18.4] + content-type: [application/json] + method: GET + uri: https://centos7-katello-3-6.sean.example.com/katello/api/v2/ping + response: + body: + string: !!binary | + H4sIAAAAAAAAA43NPQqAMAwF4N1TSGYHf0DBy5SgFUtrW5rURXp3rZtTncIL3+PV9QXEyJFgBqeh + AZLhVIt88gU+Gp/vV6wxICtnxZFfwwSpeaXAyHuJd2PmC9rVSK9skQ8f/m+iz53NBXmgFYykqVQZ + 22cnpeoGh/5ykw8BAAA= + headers: + apipie-checksum: [83fd72067f1c96eb1196b17193cc48d0] + cache-control: ['max-age=0, private, must-revalidate'] + connection: [Keep-Alive] + content-encoding: [gzip] + content-length: ['128'] + content-security-policy: ['default-src ''self''; child-src ''self''; connect-src + ''self'' ws: wss:; img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' + ''unsafe-inline'' ''self''; style-src ''unsafe-inline'' ''self'''] + content-type: [application/json; charset=utf-8] + date: ['Wed, 25 Jul 2018 15:13:02 GMT'] + etag: [W/"ca096dc9d4ac0020b520555b14e83f68-gzip"] + foreman_api_version: ['2'] + foreman_version: [1.17.1] + keep-alive: ['timeout=5, max=10000'] + server: [Apache/2.4.6 (CentOS)] + set-cookie: [_session_id=a6b1bed1f04a8aadbde5124e9d83899d; path=/; secure; HttpOnly] + status: [200 OK] + strict-transport-security: [max-age=631139040; includeSubdomains] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-download-options: [noopen] + x-frame-options: [sameorigin] + x-permitted-cross-domain-policies: [none] + x-powered-by: [Phusion Passenger 4.0.53] + x-request-id: [9480f3ee-359b-4f4e-a507-5432fce7464c] + x-runtime: ['0.728828'] + x-xss-protection: [1; mode=block] + status: {code: 200, message: OK} +- request: + body: !!python/unicode '{"search": "name=\"Test Organization\""}' + headers: + Accept: ['*/*'] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Length: ['40'] + User-Agent: [python-requests/2.18.4] + content-type: [application/json] + method: GET + uri: https://centos7-katello-3-6.sean.example.com/katello/api/v2/organizations + response: + body: + string: !!binary | + H4sIAAAAAAAAA42PwWrDMAyG73kKo3MKcdjYathpD7BLd2pHUGLRGdwkyMqhC3n3qU7GxmCwm77P + v/mluTAGZBCM4Exd3ihN7ZewWYx4pm8gbjZRV2uekLt3ZejxQk8nOFAS88Jn7MMHShj6E8CaHFg0 + N+us1F517qcYy5UH9sSbUrPkL0xpipJUH2eI2JKulQuanwVQQseEQr5BbYC6so+76mFX3Rt752rr + 7N68Hp41No3+P7Hgwe3LfNDWZ371SZD415un1HEYM7nbOctbsRSfKnwYS2sBAAA= + headers: + apipie-checksum: [83fd72067f1c96eb1196b17193cc48d0] + cache-control: ['max-age=0, private, must-revalidate'] + connection: [Keep-Alive] + content-encoding: [gzip] + content-length: ['218'] + content-security-policy: ['default-src ''self''; child-src ''self''; connect-src + ''self'' ws: wss:; img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' + ''unsafe-inline'' ''self''; style-src ''unsafe-inline'' ''self'''] + content-type: [application/json; charset=utf-8] + date: ['Wed, 25 Jul 2018 15:13:03 GMT'] + etag: [W/"33eb541f7daf03e7d506a757939a7889-gzip"] + foreman_api_version: ['2'] + foreman_version: [1.17.1] + keep-alive: ['timeout=5, max=10000'] + server: [Apache/2.4.6 (CentOS)] + set-cookie: [_session_id=32ff67192212d359e3a1739dc36e6bd5; path=/; secure; HttpOnly] + status: [200 OK] + strict-transport-security: [max-age=631139040; includeSubdomains] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-download-options: [noopen] + x-frame-options: [sameorigin] + x-permitted-cross-domain-policies: [none] + x-powered-by: [Phusion Passenger 4.0.53] + x-request-id: [547ee68b-2dd0-4043-83c2-4860690a0325] + x-runtime: ['0.054322'] + x-xss-protection: [1; mode=block] + status: {code: 200, message: OK} +- request: + body: !!python/unicode '{"organization_id": 9, "name": "Test Content View"}' + headers: + Accept: ['*/*'] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Length: ['51'] + User-Agent: [python-requests/2.18.4] + content-type: [application/json] + method: GET + uri: https://centos7-katello-3-6.sean.example.com/katello/api/v2/content_views + response: + body: + string: !!binary | + H4sIAAAAAAAAA41SwW7bMAy97ysCnt0hTht087UfMGBoeykKQbGYVpgtCpTkzQ3876Vj1XWCFNhN + 5Hvkox55gEhRN1CVBYS0+wy8fsHpgaymYLMuAJmJoXKpaaQANdevc0QcoTrArocKnG4RCiA2KHTQ + oYahAMaQmhigejpATa2nYKM03usmYDFlHLqorBk5zwUY3GupmCl74hqVT95jVOg6y+RaqZgJHXKw + 5FRNaczKxI2OGKLKwMewjEdx4j6LldciZ418+baYpq/gXgpXd+SiKKweLf6Fsd0Om4ypjKmMGQw1 + Wx8XOsQv2tk3PebU2P7naW40bKn2a4mdqZ1hx25ias0oXzRKy39hsy5/XK1vrzbbVbmtyk11s109 + 3N8JPXnzP7SFqXkHs1UWp80dXbo+den37Of51CdInQ2LvR9L+9TCIBJ5oS2Z1GCWzQvL0Xwbczw1 + 6sR5dQ7qOtpusvwP9jnp8N/iCqD8vj5OKhP6tGtseEXzsTQ5+daGrH6ArPEpKNnISa4NjY2XETmF + yNRfBrPgFyBTSxEVsWJsqcNLtGF4Hr69A9j2DxC8AwAA + headers: + apipie-checksum: [83fd72067f1c96eb1196b17193cc48d0] + cache-control: ['max-age=0, private, must-revalidate'] + connection: [Keep-Alive] + content-encoding: [gzip] + content-length: ['432'] + content-security-policy: ['default-src ''self''; child-src ''self''; connect-src + ''self'' ws: wss:; img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' + ''unsafe-inline'' ''self''; style-src ''unsafe-inline'' ''self'''] + content-type: [application/json; charset=utf-8] + date: ['Wed, 25 Jul 2018 15:13:03 GMT'] + etag: [W/"e5377be671b535aa8045efc383418dc4-gzip"] + foreman_api_version: ['2'] + foreman_version: [1.17.1] + keep-alive: ['timeout=5, max=10000'] + server: [Apache/2.4.6 (CentOS)] + set-cookie: [_session_id=523c4a3f314b5b6fbaf9caa90686f3c3; path=/; secure; HttpOnly] + status: [200 OK] + strict-transport-security: [max-age=631139040; includeSubdomains] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-download-options: [noopen] + x-frame-options: [sameorigin] + x-permitted-cross-domain-policies: [none] + x-powered-by: [Phusion Passenger 4.0.53] + x-request-id: [ae3503f1-3fa5-47db-b225-0f9428cc8634] + x-runtime: ['0.083712'] + x-xss-protection: [1; mode=block] + status: {code: 200, message: OK} +- request: + body: !!python/unicode '{"organization_id": 9, "name": "Test Product"}' + headers: + Accept: ['*/*'] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Length: ['46'] + User-Agent: [python-requests/2.18.4] + content-type: [application/json] + method: GET + uri: https://centos7-katello-3-6.sean.example.com/katello/api/v2/products + response: + body: + string: !!binary | + H4sIAAAAAAAAA2VQy07DMBC88xXWnlOUpIQ2vqF+AEiUE0KW66xSC8e2/ACFqv+OnZY2Krfd2dnd + mTlAMIEroFUBPu6ujeU9ngp07NTUZQHonHFAdVQqLSB3Yn/pjAtAD7AbgYLmA0IBxnWY6MC9gGMB + Dn1UwQN9P4DsgLYFCMtyBatlW7btevXQPJZpcdqnsEUfyIszXRQhoYrvUJ1hdoU79MJJG6TRafhE + 9tzakSgZgkIS8gl74abqSyZR09eqSbJHLZhVXE/I2UrGfBwG7sZsyUch0CfddTLR25594viPHnjI + kl9TI3VPNmawCgPeT7qT3sxK87qs1otytagbUjW0KmnVkrftZs5i3ym39A2WZJA6JgdTlD3X8odn + l+wc3hzLOuepPc9nN9HdzKZrx1kUf8YcWuNlMG5kwkQdcgAfx7tfwzLIbjUCAAA= + headers: + apipie-checksum: [83fd72067f1c96eb1196b17193cc48d0] + cache-control: ['max-age=0, private, must-revalidate'] + connection: [Keep-Alive] + content-encoding: [gzip] + content-length: ['332'] + content-security-policy: ['default-src ''self''; child-src ''self''; connect-src + ''self'' ws: wss:; img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' + ''unsafe-inline'' ''self''; style-src ''unsafe-inline'' ''self'''] + content-type: [application/json; charset=utf-8] + date: ['Wed, 25 Jul 2018 15:13:03 GMT'] + etag: [W/"e094e3b621673748cc58c93af2f043f8-gzip"] + foreman_api_version: ['2'] + foreman_version: [1.17.1] + keep-alive: ['timeout=5, max=10000'] + server: [Apache/2.4.6 (CentOS)] + set-cookie: [_session_id=b3461edd0c00baaffcec48e664eac8f9; path=/; secure; HttpOnly] + status: [200 OK] + strict-transport-security: [max-age=631139040; includeSubdomains] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-download-options: [noopen] + x-frame-options: [sameorigin] + x-permitted-cross-domain-policies: [none] + x-powered-by: [Phusion Passenger 4.0.53] + x-request-id: [d0c38655-3ff5-4191-8c3b-dc5e973f88ca] + x-runtime: ['0.111692'] + x-xss-protection: [1; mode=block] + status: {code: 200, message: OK} +- request: + body: !!python/unicode '{"product_id": 9, "name": "Test Repository"}' + headers: + Accept: ['*/*'] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Length: ['44'] + User-Agent: [python-requests/2.18.4] + content-type: [application/json] + method: GET + uri: https://centos7-katello-3-6.sean.example.com/katello/api/v2/repositories + response: + body: + string: !!binary | + H4sIAAAAAAAAA3VTyY7bMAy99ysCnuPY8TJerr0WaFFMT8VAkCU6I4xtCVqmzQT591K202nQ9mKT + IkU9vkdewGvPR+iOe3Chf3cMP+FqoGWrk2d7QGu1hW4O40gXkFvx/NvT1kN3gf4MHcx8QtiDthIp + HbgTcN2DRRdG76D7fgGhZ4+zZ/5sqDacw0T5wdLr8Oy9cV2aWjTaHQaU2nKD2ox40PaUmjCa9SNx + 0mzJSt+0TiG+MHKvXpEge0IGj+g8+2xPfFZvFNBz+kn1lttzKoLzekqXhC9WyyD86nyN9ZTX9kz1 + 1gZh1ouxh56LF5wlU5Kwq0Gt3bUZr/ohT5qHRiRlnh2TVoohKUSPZVVz3pQt3b11PPIexxtrShLL + xX4lbMW7u0OwZcPf2MyKOnIeq7T0gmHRgrpos7Zt6rJ6yOC+9tYqnbrzLJgZ+Uxy3PSS6IRVJhJ1 + y5Dcx4gi7PaVhoPK4U/PYgyerhGf27wNBxRVw3PZN0nxIIeklEIkfZX3SZ23dVnUXOYyj1o7tBsy + Lie1POi59SgZp6aAaGySrE7yanesumPWZdnu2+NHSiMB/pt0LLYkquVjbVLZGJRwm754FIRA51YK + Tzaa3fGQXd8lEjrMcU4voJ23iIxmZo6TQCsgNY2AZRON1ECM/uuMjeo+4Plpca2ZoCtyQrdYWdwz + 8bJsVzzdHHayOhhauGXfuKfV6EqKBmrEs4kEHHG5PKjNkNjT/0812A/aPRfV2BG3waOD69P1wy/D + RJa48AMAAA== + headers: + apipie-checksum: [83fd72067f1c96eb1196b17193cc48d0] + cache-control: ['max-age=0, private, must-revalidate'] + connection: [Keep-Alive] + content-encoding: [gzip] + content-length: ['577'] + content-security-policy: ['default-src ''self''; child-src ''self''; connect-src + ''self'' ws: wss:; img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' + ''unsafe-inline'' ''self''; style-src ''unsafe-inline'' ''self'''] + content-type: [application/json; charset=utf-8] + date: ['Wed, 25 Jul 2018 15:13:03 GMT'] + etag: [W/"4800e2cb797f73e5a7b98036a1a0314c-gzip"] + foreman_api_version: ['2'] + foreman_version: [1.17.1] + keep-alive: ['timeout=5, max=10000'] + server: [Apache/2.4.6 (CentOS)] + set-cookie: [_session_id=7da2e85bf410a0325ae7d396bb0b8126; path=/; secure; HttpOnly] + status: [200 OK] + strict-transport-security: [max-age=631139040; includeSubdomains] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-download-options: [noopen] + x-frame-options: [sameorigin] + x-permitted-cross-domain-policies: [none] + x-powered-by: [Phusion Passenger 4.0.53] + x-request-id: [1de3b558-e2e9-436e-a348-49b027382785] + x-runtime: ['0.106365'] + x-xss-protection: [1; mode=block] + status: {code: 200, message: OK} +- request: + body: !!python/unicode '{"content_view_id": 17, "name": "Test Package Content + View Filter"}' + headers: + Accept: ['*/*'] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Length: ['67'] + User-Agent: [python-requests/2.18.4] + content-type: [application/json] + method: GET + uri: https://centos7-katello-3-6.sean.example.com/katello/api/v2/content_view_filters + response: + body: + string: !!binary | + H4sIAAAAAAAAA6VWUY/aOBB+769AfiabkMAG8lrpnk666tS7l2plOfaEtZrElu3QUsR/79gxIVBW + XalCAntm7G88880MJ+KUYy2pVktih/q60WwP4wIMHTd5tiRgjDKk6oe2xQPADH+ddso4Up1IfSQV + 6VkHZEmUEYDmhFlOzktiwA6ts6T6ciKy5+1gpepJ1bDWwpJIgRiIGM5W5DNYt/jE+FcEX3xUvYPe + Lf6X8G3xl2wdXrskAiw3Urtwy+gFN8AcCMrQF5Jnq22SlUm+Waw21Sqv1uXiv88f8eSgxXvM+AhL + Dwjr38ZVp5WVDiang6T3NlL4h714rxqGz5xMGmU4UD1oDY5Cf5BG9R2emAwOYHwgKFeDl2KYW3TO + IuyouLzNQABX5hjBVsXLGLZVeRu2ebiIv66GNupo1NGoexBDZfaslz+Yl1F//e5W5iMxR/tnrrtD + u9OF286/TdPmfWm6mM2CGnMwhUpCpJuPUnEbpX+neN57faO5kMAdtT96HDpyRoiY0E6JoYUIGxMW + dxM3pv2VTfReybiThzHkX+EYhT18n7GArJ6y4Cl6qIe6lfYVxCVpWKedtBH9RCLGFRClzgzINhDS + PdYgFZxRx8fKCPiG0qhOOaDKUAOdOsAjs/P5QV4eBBfTbnwmXp3TtkrTcOapAaEM06B0C0/IxlQP + rR6/BELSYJX+UColHgYrSKIbmrnXR1RM/5a1YeaY8sE61aXB4JPBXHKX/kqBsc+RXoXFktTYlqAX + WBzou2zk2OR2GdvUTZ5sn7c8WSNdk53gTVLwGtabkrHtejejUyTcmL0/oKcevfZJj7XKdahaUha7 + bLfbluvNs+fNTV+Nh7BtH3tOdcuQX18ubXveE6KFr0Nfv+i7OeCMiNz0OvJyjqQMu+gHKTZblot6 + mxTPoknWgvOk3uR1Uua7cl2UTOQi97m2YKJnTHQyADpm3qr6rMqyqerFm0arIhrhXb5b46/CchXk + MoS8aOAcrB1DuDd+WWGFna8pCg05lJPCygCgyJneMwFbtFBIAUM7pFSDEX0ko1gwNwrH9mFrdEeq + Ikfvwirz4zbMuVEaN3Rv1KBxJoaxyxyWRrW+6zvhcCPjQkCNv/Ns0G84gq3PxgJjO+BUCb0rVptH + R29i/zrdNqgmTFl6mcod+z7vRLGXX+dOjX8GyG8b+/Ydjb24pPj8gp8PPwHACGFkowgAAA== + headers: + apipie-checksum: [83fd72067f1c96eb1196b17193cc48d0] + cache-control: ['max-age=0, private, must-revalidate'] + connection: [Keep-Alive] + content-encoding: [gzip] + content-length: ['907'] + content-security-policy: ['default-src ''self''; child-src ''self''; connect-src + ''self'' ws: wss:; img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' + ''unsafe-inline'' ''self''; style-src ''unsafe-inline'' ''self'''] + content-type: [application/json; charset=utf-8] + date: ['Wed, 25 Jul 2018 15:13:03 GMT'] + etag: [W/"8473f35aa6e3b0a67381381f4ac7ccda-gzip"] + foreman_api_version: ['2'] + foreman_version: [1.17.1] + keep-alive: ['timeout=5, max=10000'] + server: [Apache/2.4.6 (CentOS)] + set-cookie: [_session_id=3d953bf186a3bffc3582e94ed1fd42e5; path=/; secure; HttpOnly] + status: [200 OK] + strict-transport-security: [max-age=631139040; includeSubdomains] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-download-options: [noopen] + x-frame-options: [sameorigin] + x-permitted-cross-domain-policies: [none] + x-powered-by: [Phusion Passenger 4.0.53] + x-request-id: [bf8cb6c3-09e2-46dd-80b7-1b5f88b86313] + x-runtime: ['0.127104'] + x-xss-protection: [1; mode=block] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: ['*/*'] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + User-Agent: [python-requests/2.18.4] + content-type: [application/json] + method: GET + uri: https://centos7-katello-3-6.sean.example.com/katello/api/v2/content_view_filters/21 + response: + body: + string: !!binary | + H4sIAAAAAAAAA6VWwW7bOBC99ysEnq1YluzY1rVATwvsYtHdS2AQFDlyiEgiQVJuXUP/3iFFK7br + tAFyscWZIWf0+N6MkuREZMeb3krVkbJmjYUZUUbuZccaqhl/YXuwk0cKUuaLGelYC6QkX8G65J8x + KPmsOgedS/6X8C35IhsHhsyIAMuN1C6c3/VNMyPcAHMgKHN4RJ4tNmm2TvNVsliVi7xcrpP/vn7G + nb0W7wnjY1p6wLSkPOG61cpKB1PRwdL5GCnwVZ52vqqa9Y2bQmplOFDdaw2OQneQRnUt7pgCDmA8 + RJSr3luzGWmwOItpR8f53QyE5MocY7JFsRthW6yvYbuEi/jjKmiij0Yfjb47GCqzZ538wbyN+uO3 + 1zaPxGW2vy99N9lufOG04Y/XtHrfNZ3DLkCNdzBBJT3Bnk4jSsU1Sv9OeN5WfeU5k8Adtd967Fs0 + aqNEz52HIiJ0RdvoHV53h8u1Pl5ZZwBoZVjHn8N1C8VfwNAWkapx+6XNsX1YGt2Sssgx8aiIqwXd + G9VrVA9CYQxzWGG5RO9IuRZraXBDNgy7G2NEK/IsriZKT+tXEdBbJ+NOHkamvMAxGjv4fkFesnjI + AsAIrO6rRtpnEGeuaTCttDH7icQcrwnR6kyPIgEh3X0PMtgZdbzvjAnfcBrVKgdUGWqgVQe4FzYM + d+h0lxO98QR6dk7bcj4Pex5qEMowDUo38IAimuu+0eOPwJQ0RM1/KDUnPg0KX2IZmrnnewqa/yWR + NuY45711qp2HgEi2+a/MZcYTjHQqPMxIhXSBTqCmsXZZS2yiJWHbjK2qOk83jxueLlFl6VbwOi14 + BcvVmrHNcnuhgqiT8fY+oKpfBcR1aDZkXWyz7XazXq4ePW/u6WpG7LHjVDcM+fU0hly3shjh24dv + O1i7ObCGRG56H9kNkZRhFesgxWrDclFt0uJR1OlScJ5Wq7xK1/l2vSzWTOQi93dtwcTKmGhlSOiY + eatZZWWWTc1KvBm0KGIQnuWHDP4rlKsI3LBhqBDbcw7WjhDujX8sUWEfbzVnG0XB/L4H2fCUfagZ + 4VyU8UFA5bvTxW3Qb8r4CUeKBLHtcRgS37ui2nx2rCb2r9N1g6rDxwE9f0y07PtlJ4oj6HVcVsD8 + l8Qf5tHmHfOoOF/xsBs+/QSH4SvF/AgAAA== + headers: + apipie-checksum: [83fd72067f1c96eb1196b17193cc48d0] + cache-control: ['max-age=0, private, must-revalidate'] + connection: [Keep-Alive] + content-encoding: [gzip] + content-length: ['880'] + content-security-policy: ['default-src ''self''; child-src ''self''; connect-src + ''self'' ws: wss:; img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' + ''unsafe-inline'' ''self''; style-src ''unsafe-inline'' ''self'''] + content-type: [application/json; charset=utf-8] + date: ['Wed, 25 Jul 2018 15:13:03 GMT'] + etag: [W/"c48daf382a0507c36c05e6677e58d41b-gzip"] + foreman_api_version: ['2'] + foreman_version: [1.17.1] + keep-alive: ['timeout=5, max=10000'] + server: [Apache/2.4.6 (CentOS)] + set-cookie: [_session_id=66fd49f2a691dba6747cd34fa55235e5; path=/; secure; HttpOnly] + status: [200 OK] + strict-transport-security: [max-age=631139040; includeSubdomains] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-download-options: [noopen] + x-frame-options: [sameorigin] + x-permitted-cross-domain-policies: [none] + x-powered-by: [Phusion Passenger 4.0.53] + x-request-id: [b0343308-4a58-4ba8-b46c-75e122d156bc] + x-runtime: ['0.133757'] + x-xss-protection: [1; mode=block] + status: {code: 200, message: OK} +- request: + body: !!python/unicode '{"content_view_id": 17, "name": "Test Package Content + View Filter"}' + headers: + Accept: ['*/*'] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Length: ['67'] + User-Agent: [python-requests/2.18.4] + content-type: [application/json] + method: GET + uri: https://centos7-katello-3-6.sean.example.com/katello/api/v2/content_view_filters + response: + body: + string: !!binary | + H4sIAAAAAAAAA6VWUY/aOBB+769AfiabkMAG8lrpnk666tS7l2plOfaEtZrElu3QUsR/79gxIVBW + XalCAntm7G88880MJ+KUYy2pVktih/q60WwP4wIMHTd5tiRgjDKk6oe2xQPADH+ddso4Up1IfSQV + 6VkHZEmUEYDmhFlOzktiwA6ts6T6ciKy5+1gpepJ1bDWwpJIgRiIGM5W5DNYt/jE+FcEX3xUvYPe + Lf6X8G3xl2wdXrskAiw3Urtwy+gFN8AcCMrQF5Jnq22SlUm+Waw21Sqv1uXiv88f8eSgxXvM+AhL + Dwjr38ZVp5WVDiang6T3NlL4h714rxqGz5xMGmU4UD1oDY5Cf5BG9R2emAwOYHwgKFeDl2KYW3TO + IuyouLzNQABX5hjBVsXLGLZVeRu2ebiIv66GNupo1NGoexBDZfaslz+Yl1F//e5W5iMxR/tnrrtD + u9OF286/TdPmfWm6mM2CGnMwhUpCpJuPUnEbpX+neN57faO5kMAdtT96HDpyRoiY0E6JoYUIGxMW + dxM3pv2VTfReybiThzHkX+EYhT18n7GArJ6y4Cl6qIe6lfYVxCVpWKedtBH9RCLGFRClzgzINhDS + PdYgFZxRx8fKCPiG0qhOOaDKUAOdOsAjs/P5QV4eBBfTbnwmXp3TtkrTcOapAaEM06B0C0/IxlQP + rR6/BELSYJX+UColHgYrSKIbmrnXR1RM/5a1YeaY8sE61aXB4JPBXHKX/kqBsc+RXoXFktTYlqAX + WBzou2zk2OR2GdvUTZ5sn7c8WSNdk53gTVLwGtabkrHtejejUyTcmL0/oKcevfZJj7XKdahaUha7 + bLfbluvNs+fNTV+Nh7BtH3tOdcuQX18ubXveE6KFr0Nfv+i7OeCMiNz0OvJyjqQMu+gHKTZblot6 + mxTPoknWgvOk3uR1Uua7cl2UTOQi97m2YKJnTHQyADpm3qr6rMqyqerFm0arIhrhXb5b46/CchXk + MoS8aOAcrB1DuDd+WWGFna8pCg05lJPCygCgyJneMwFbtFBIAUM7pFSDEX0ko1gwNwrH9mFrdEeq + Ikfvwirz4zbMuVEaN3Rv1KBxJoaxyxyWRrW+6zvhcCPjQkCNv/Ns0G84gq3PxgJjO+BUCb0rVptH + R29i/zrdNqgmTFl6mcod+z7vRLGXX+dOjX8GyG8b+/Ydjb24pPj8gp8PPwHACGFkowgAAA== + headers: + apipie-checksum: [83fd72067f1c96eb1196b17193cc48d0] + cache-control: ['max-age=0, private, must-revalidate'] + connection: [Keep-Alive] + content-encoding: [gzip] + content-length: ['907'] + content-security-policy: ['default-src ''self''; child-src ''self''; connect-src + ''self'' ws: wss:; img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' + ''unsafe-inline'' ''self''; style-src ''unsafe-inline'' ''self'''] + content-type: [application/json; charset=utf-8] + date: ['Wed, 25 Jul 2018 15:13:03 GMT'] + etag: [W/"8473f35aa6e3b0a67381381f4ac7ccda-gzip"] + foreman_api_version: ['2'] + foreman_version: [1.17.1] + keep-alive: ['timeout=5, max=10000'] + server: [Apache/2.4.6 (CentOS)] + set-cookie: [_session_id=abe476d0f8bf56c22d7a931355e9c979; path=/; secure; HttpOnly] + status: [200 OK] + strict-transport-security: [max-age=631139040; includeSubdomains] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-download-options: [noopen] + x-frame-options: [sameorigin] + x-permitted-cross-domain-policies: [none] + x-powered-by: [Phusion Passenger 4.0.53] + x-request-id: [42d390f4-b517-47f1-9714-9d0e3d160e0a] + x-runtime: ['0.145290'] + x-xss-protection: [1; mode=block] + status: {code: 200, message: OK} +- request: + body: !!python/unicode '{"content_view_filter_id": 21, "name": "bear"}' + headers: + Accept: ['*/*'] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Length: ['46'] + User-Agent: [python-requests/2.18.4] + content-type: [application/json] + method: GET + uri: https://centos7-katello-3-6.sean.example.com/katello/api/v2/content_view_filters/21/rules + response: + body: + string: !!binary | + H4sIAAAAAAAAA3WOQWoDMQxF9z1F+GsHbCchQdteoV2VYjwzajvg2EH2JC3D3D1KAu2qO3/rfT3N + aKXFBHIGder+wil+8uPBEh7BWwMWKQLKU0pa4Cj9128q0kAzuh8QxgEGRQZWGLH2WAyE65RaBb3N + 6EtunFs4j3wJH2NqatEOeTUe43c4s9SxZC07XXSb7A1yPOoZ6FSrn71wbDyEqFZ46w5ru1/73crt + yHnaHlavL8+KTafhX2xD1t6x5X15ugJJhCVzCwEAAA== + headers: + apipie-checksum: [83fd72067f1c96eb1196b17193cc48d0] + cache-control: ['max-age=0, private, must-revalidate'] + connection: [Keep-Alive] + content-encoding: [gzip] + content-length: ['202'] + content-security-policy: ['default-src ''self''; child-src ''self''; connect-src + ''self'' ws: wss:; img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' + ''unsafe-inline'' ''self''; style-src ''unsafe-inline'' ''self'''] + content-type: [application/json; charset=utf-8] + date: ['Wed, 25 Jul 2018 15:13:03 GMT'] + etag: [W/"ed2149efcd559b2a255bfe0b34b1b762-gzip"] + foreman_api_version: ['2'] + foreman_version: [1.17.1] + keep-alive: ['timeout=5, max=10000'] + server: [Apache/2.4.6 (CentOS)] + set-cookie: [_session_id=093a9623275b0b7731304a26659c8be4; path=/; secure; HttpOnly] + status: [200 OK] + strict-transport-security: [max-age=631139040; includeSubdomains] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-download-options: [noopen] + x-frame-options: [sameorigin] + x-permitted-cross-domain-policies: [none] + x-powered-by: [Phusion Passenger 4.0.53] + x-request-id: [85e93f21-6b35-4a49-b51a-92a1026d7b58] + x-runtime: ['0.057009'] + x-xss-protection: [1; mode=block] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: ['*/*'] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + User-Agent: [python-requests/2.18.4] + content-type: [application/json] + method: GET + uri: https://centos7-katello-3-6.sean.example.com/katello/api/v2/content_view_filters/21/rules/7 + response: + body: + string: !!binary | + H4sIAAAAAAAAA3XKwQrCMAyA4btPUXLuoKmOjVx9BT2HuEYouE5qnIL47lbvXr//d+4F01JMi/Ga + 9cHnfDGtnBNQRA+zPHnVestLAQIED98yeCgya5OTSm04VRXTxGLNYsCxC0MXe4c9YaTd6I6Hfdvu + 1/R321IIv+29+QBajeM2lQAAAA== + headers: + apipie-checksum: [83fd72067f1c96eb1196b17193cc48d0] + cache-control: ['max-age=0, private, must-revalidate'] + connection: [Keep-Alive] + content-encoding: [gzip] + content-length: ['133'] + content-security-policy: ['default-src ''self''; child-src ''self''; connect-src + ''self'' ws: wss:; img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' + ''unsafe-inline'' ''self''; style-src ''unsafe-inline'' ''self'''] + content-type: [application/json; charset=utf-8] + date: ['Wed, 25 Jul 2018 15:13:04 GMT'] + etag: [W/"4f0c716eb996f8aed9eeb1d3c0e14bc1-gzip"] + foreman_api_version: ['2'] + foreman_version: [1.17.1] + keep-alive: ['timeout=5, max=10000'] + server: [Apache/2.4.6 (CentOS)] + set-cookie: [_session_id=c30ca22826072ee90a898c56b7821064; path=/; secure; HttpOnly] + status: [200 OK] + strict-transport-security: [max-age=631139040; includeSubdomains] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-download-options: [noopen] + x-frame-options: [sameorigin] + x-permitted-cross-domain-policies: [none] + x-powered-by: [Phusion Passenger 4.0.53] + x-request-id: [2eb77acb-b238-4aeb-aa51-dc75b3895410] + x-runtime: ['0.060956'] + x-xss-protection: [1; mode=block] + status: {code: 200, message: OK} +version: 1 diff --git a/test/test_playbooks/fixtures/content_view_filter-13.yml b/test/test_playbooks/fixtures/content_view_filter-13.yml new file mode 100644 index 0000000000..3d67256a90 --- /dev/null +++ b/test/test_playbooks/fixtures/content_view_filter-13.yml @@ -0,0 +1,566 @@ +interactions: +- request: + body: !!python/unicode '{}' + headers: + Accept: ['*/*'] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Length: ['2'] + User-Agent: [python-requests/2.18.4] + content-type: [application/json] + method: GET + uri: https://centos7-katello-3-6.sean.example.com/katello/api/v2/ping + response: + body: + string: !!binary | + H4sIAAAAAAAAA43NMQ6AIAwF0N1TkM4uxMTBy5BGMBIUCC0uhrsrbE44Nf/n/VSIG4iRM8ECwcEI + ZNJlV/PmG2I+Yr1foXNCtsGrs1bTDGVsUmHmvcdl4yt6fZhofZfLD//3om22kMyJXjGSo+5kglLK + 8AB6AwsaDgEAAA== + headers: + apipie-checksum: [83fd72067f1c96eb1196b17193cc48d0] + cache-control: ['max-age=0, private, must-revalidate'] + connection: [Keep-Alive] + content-encoding: [gzip] + content-length: ['124'] + content-security-policy: ['default-src ''self''; child-src ''self''; connect-src + ''self'' ws: wss:; img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' + ''unsafe-inline'' ''self''; style-src ''unsafe-inline'' ''self'''] + content-type: [application/json; charset=utf-8] + date: ['Wed, 25 Jul 2018 15:13:05 GMT'] + etag: [W/"c353a9fe8770ef59979cedb3c644100d-gzip"] + foreman_api_version: ['2'] + foreman_version: [1.17.1] + keep-alive: ['timeout=5, max=10000'] + server: [Apache/2.4.6 (CentOS)] + set-cookie: [_session_id=d9d23386f8508b85df138ba6008a40d8; path=/; secure; HttpOnly] + status: [200 OK] + strict-transport-security: [max-age=631139040; includeSubdomains] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-download-options: [noopen] + x-frame-options: [sameorigin] + x-permitted-cross-domain-policies: [none] + x-powered-by: [Phusion Passenger 4.0.53] + x-request-id: [98cfee28-1f68-4a1a-a1fb-b92a592eeb4c] + x-runtime: ['0.137078'] + x-xss-protection: [1; mode=block] + status: {code: 200, message: OK} +- request: + body: !!python/unicode '{"search": "name=\"Test Organization\""}' + headers: + Accept: ['*/*'] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Length: ['40'] + User-Agent: [python-requests/2.18.4] + content-type: [application/json] + method: GET + uri: https://centos7-katello-3-6.sean.example.com/katello/api/v2/organizations + response: + body: + string: !!binary | + H4sIAAAAAAAAA42PwWrDMAyG73kKo3MKcdjYathpD7BLd2pHUGLRGdwkyMqhC3n3qU7GxmCwm77P + v/mluTAGZBCM4Exd3ihN7ZewWYx4pm8gbjZRV2uekLt3ZejxQk8nOFAS88Jn7MMHShj6E8CaHFg0 + N+us1F517qcYy5UH9sSbUrPkL0xpipJUH2eI2JKulQuanwVQQseEQr5BbYC6so+76mFX3Rt752rr + 7N68Hp41No3+P7Hgwe3LfNDWZ371SZD415un1HEYM7nbOctbsRSfKnwYS2sBAAA= + headers: + apipie-checksum: [83fd72067f1c96eb1196b17193cc48d0] + cache-control: ['max-age=0, private, must-revalidate'] + connection: [Keep-Alive] + content-encoding: [gzip] + content-length: ['218'] + content-security-policy: ['default-src ''self''; child-src ''self''; connect-src + ''self'' ws: wss:; img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' + ''unsafe-inline'' ''self''; style-src ''unsafe-inline'' ''self'''] + content-type: [application/json; charset=utf-8] + date: ['Wed, 25 Jul 2018 15:13:05 GMT'] + etag: [W/"33eb541f7daf03e7d506a757939a7889-gzip"] + foreman_api_version: ['2'] + foreman_version: [1.17.1] + keep-alive: ['timeout=5, max=10000'] + server: [Apache/2.4.6 (CentOS)] + set-cookie: [_session_id=0ed80d47b59ee29074f2f28a813a3565; path=/; secure; HttpOnly] + status: [200 OK] + strict-transport-security: [max-age=631139040; includeSubdomains] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-download-options: [noopen] + x-frame-options: [sameorigin] + x-permitted-cross-domain-policies: [none] + x-powered-by: [Phusion Passenger 4.0.53] + x-request-id: [51a02ed7-e097-4909-a715-ec040646c539] + x-runtime: ['0.051824'] + x-xss-protection: [1; mode=block] + status: {code: 200, message: OK} +- request: + body: !!python/unicode '{"organization_id": 9, "name": "Test Content View"}' + headers: + Accept: ['*/*'] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Length: ['51'] + User-Agent: [python-requests/2.18.4] + content-type: [application/json] + method: GET + uri: https://centos7-katello-3-6.sean.example.com/katello/api/v2/content_views + response: + body: + string: !!binary | + H4sIAAAAAAAAA41SwW7bMAy97ysCnt0hTht087UfMGBoeykKQbGYVpgtCpTkzQ3876Vj1XWCFNhN + 5Hvkox55gEhRN1CVBYS0+wy8fsHpgaymYLMuAJmJoXKpaaQANdevc0QcoTrArocKnG4RCiA2KHTQ + oYahAMaQmhigejpATa2nYKM03usmYDFlHLqorBk5zwUY3GupmCl74hqVT95jVOg6y+RaqZgJHXKw + 5FRNaczKxI2OGKLKwMewjEdx4j6LldciZ418+baYpq/gXgpXd+SiKKweLf6Fsd0Om4ypjKmMGQw1 + Wx8XOsQv2tk3PebU2P7naW40bKn2a4mdqZ1hx25ias0oXzRKy39hsy5/XK1vrzbbVbmtyk11s109 + 3N8JPXnzP7SFqXkHs1UWp80dXbo+den37Of51CdInQ2LvR9L+9TCIBJ5oS2Z1GCWzQvL0Xwbczw1 + 6sR5dQ7qOtpusvwP9jnp8N/iCqD8vj5OKhP6tGtseEXzsTQ5+daGrH6ArPEpKNnISa4NjY2XETmF + yNRfBrPgFyBTSxEVsWJsqcNLtGF4Hr69A9j2DxC8AwAA + headers: + apipie-checksum: [83fd72067f1c96eb1196b17193cc48d0] + cache-control: ['max-age=0, private, must-revalidate'] + connection: [Keep-Alive] + content-encoding: [gzip] + content-length: ['432'] + content-security-policy: ['default-src ''self''; child-src ''self''; connect-src + ''self'' ws: wss:; img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' + ''unsafe-inline'' ''self''; style-src ''unsafe-inline'' ''self'''] + content-type: [application/json; charset=utf-8] + date: ['Wed, 25 Jul 2018 15:13:05 GMT'] + etag: [W/"e5377be671b535aa8045efc383418dc4-gzip"] + foreman_api_version: ['2'] + foreman_version: [1.17.1] + keep-alive: ['timeout=5, max=10000'] + server: [Apache/2.4.6 (CentOS)] + set-cookie: [_session_id=e765433b7f63b324fb7e6dd5e92aba72; path=/; secure; HttpOnly] + status: [200 OK] + strict-transport-security: [max-age=631139040; includeSubdomains] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-download-options: [noopen] + x-frame-options: [sameorigin] + x-permitted-cross-domain-policies: [none] + x-powered-by: [Phusion Passenger 4.0.53] + x-request-id: [6d2a5246-d204-4485-99c9-b4c40bc32a0f] + x-runtime: ['0.076147'] + x-xss-protection: [1; mode=block] + status: {code: 200, message: OK} +- request: + body: !!python/unicode '{"organization_id": 9, "name": "Test Product"}' + headers: + Accept: ['*/*'] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Length: ['46'] + User-Agent: [python-requests/2.18.4] + content-type: [application/json] + method: GET + uri: https://centos7-katello-3-6.sean.example.com/katello/api/v2/products + response: + body: + string: !!binary | + H4sIAAAAAAAAA2VQy07DMBC88xXWnlOUpIQ2vqF+AEiUE0KW66xSC8e2/ACFqv+OnZY2Krfd2dnd + mTlAMIEroFUBPu6ujeU9ngp07NTUZQHonHFAdVQqLSB3Yn/pjAtAD7AbgYLmA0IBxnWY6MC9gGMB + Dn1UwQN9P4DsgLYFCMtyBatlW7btevXQPJZpcdqnsEUfyIszXRQhoYrvUJ1hdoU79MJJG6TRafhE + 9tzakSgZgkIS8gl74abqSyZR09eqSbJHLZhVXE/I2UrGfBwG7sZsyUch0CfddTLR25594viPHnjI + kl9TI3VPNmawCgPeT7qT3sxK87qs1otytagbUjW0KmnVkrftZs5i3ym39A2WZJA6JgdTlD3X8odn + l+wc3hzLOuepPc9nN9HdzKZrx1kUf8YcWuNlMG5kwkQdcgAfx7tfwzLIbjUCAAA= + headers: + apipie-checksum: [83fd72067f1c96eb1196b17193cc48d0] + cache-control: ['max-age=0, private, must-revalidate'] + connection: [Keep-Alive] + content-encoding: [gzip] + content-length: ['332'] + content-security-policy: ['default-src ''self''; child-src ''self''; connect-src + ''self'' ws: wss:; img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' + ''unsafe-inline'' ''self''; style-src ''unsafe-inline'' ''self'''] + content-type: [application/json; charset=utf-8] + date: ['Wed, 25 Jul 2018 15:13:05 GMT'] + etag: [W/"e094e3b621673748cc58c93af2f043f8-gzip"] + foreman_api_version: ['2'] + foreman_version: [1.17.1] + keep-alive: ['timeout=5, max=10000'] + server: [Apache/2.4.6 (CentOS)] + set-cookie: [_session_id=6882e5d16b29d3d4708c048cd583813e; path=/; secure; HttpOnly] + status: [200 OK] + strict-transport-security: [max-age=631139040; includeSubdomains] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-download-options: [noopen] + x-frame-options: [sameorigin] + x-permitted-cross-domain-policies: [none] + x-powered-by: [Phusion Passenger 4.0.53] + x-request-id: [a8e483ba-521f-4238-9a61-93f9b883da77] + x-runtime: ['0.117745'] + x-xss-protection: [1; mode=block] + status: {code: 200, message: OK} +- request: + body: !!python/unicode '{"product_id": 9, "name": "Test Repository"}' + headers: + Accept: ['*/*'] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Length: ['44'] + User-Agent: [python-requests/2.18.4] + content-type: [application/json] + method: GET + uri: https://centos7-katello-3-6.sean.example.com/katello/api/v2/repositories + response: + body: + string: !!binary | + H4sIAAAAAAAAA3VTyY7bMAy99ysCnuPY8TJerr0WaFFMT8VAkCU6I4xtCVqmzQT591K202nQ9mKT + IkU9vkdewGvPR+iOe3Chf3cMP+FqoGWrk2d7QGu1hW4O40gXkFvx/NvT1kN3gf4MHcx8QtiDthIp + HbgTcN2DRRdG76D7fgGhZ4+zZ/5sqDacw0T5wdLr8Oy9cV2aWjTaHQaU2nKD2ox40PaUmjCa9SNx + 0mzJSt+0TiG+MHKvXpEge0IGj+g8+2xPfFZvFNBz+kn1lttzKoLzekqXhC9WyyD86nyN9ZTX9kz1 + 1gZh1ouxh56LF5wlU5Kwq0Gt3bUZr/ohT5qHRiRlnh2TVoohKUSPZVVz3pQt3b11PPIexxtrShLL + xX4lbMW7u0OwZcPf2MyKOnIeq7T0gmHRgrpos7Zt6rJ6yOC+9tYqnbrzLJgZ+Uxy3PSS6IRVJhJ1 + y5Dcx4gi7PaVhoPK4U/PYgyerhGf27wNBxRVw3PZN0nxIIeklEIkfZX3SZ23dVnUXOYyj1o7tBsy + Lie1POi59SgZp6aAaGySrE7yanesumPWZdnu2+NHSiMB/pt0LLYkquVjbVLZGJRwm754FIRA51YK + Tzaa3fGQXd8lEjrMcU4voJ23iIxmZo6TQCsgNY2AZRON1ECM/uuMjeo+4Plpca2ZoCtyQrdYWdwz + 8bJsVzzdHHayOhhauGXfuKfV6EqKBmrEs4kEHHG5PKjNkNjT/0812A/aPRfV2BG3waOD69P1wy/D + RJa48AMAAA== + headers: + apipie-checksum: [83fd72067f1c96eb1196b17193cc48d0] + cache-control: ['max-age=0, private, must-revalidate'] + connection: [Keep-Alive] + content-encoding: [gzip] + content-length: ['577'] + content-security-policy: ['default-src ''self''; child-src ''self''; connect-src + ''self'' ws: wss:; img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' + ''unsafe-inline'' ''self''; style-src ''unsafe-inline'' ''self'''] + content-type: [application/json; charset=utf-8] + date: ['Wed, 25 Jul 2018 15:13:05 GMT'] + etag: [W/"4800e2cb797f73e5a7b98036a1a0314c-gzip"] + foreman_api_version: ['2'] + foreman_version: [1.17.1] + keep-alive: ['timeout=5, max=10000'] + server: [Apache/2.4.6 (CentOS)] + set-cookie: [_session_id=3d301e99745ddc15b690e1110a46337f; path=/; secure; HttpOnly] + status: [200 OK] + strict-transport-security: [max-age=631139040; includeSubdomains] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-download-options: [noopen] + x-frame-options: [sameorigin] + x-permitted-cross-domain-policies: [none] + x-powered-by: [Phusion Passenger 4.0.53] + x-request-id: [7ef2654a-3de9-4ab8-bf4a-a4f8c7497644] + x-runtime: ['0.109569'] + x-xss-protection: [1; mode=block] + status: {code: 200, message: OK} +- request: + body: !!python/unicode '{"content_view_id": 17, "name": "Test Package Content + View Filter"}' + headers: + Accept: ['*/*'] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Length: ['67'] + User-Agent: [python-requests/2.18.4] + content-type: [application/json] + method: GET + uri: https://centos7-katello-3-6.sean.example.com/katello/api/v2/content_view_filters + response: + body: + string: !!binary | + H4sIAAAAAAAAA6VWUY/aOBB+769AfiabkMAG8lrpnk666tS7l2plOfaEtZrElu3QUsR/79gxIVBW + XalCAntm7G88880MJ+KUYy2pVktih/q60WwP4wIMHTd5tiRgjDKk6oe2xQPADH+ddso4Up1IfSQV + 6VkHZEmUEYDmhFlOzktiwA6ts6T6ciKy5+1gpepJ1bDWwpJIgRiIGM5W5DNYt/jE+FcEX3xUvYPe + Lf6X8G3xl2wdXrskAiw3Urtwy+gFN8AcCMrQF5Jnq22SlUm+Waw21Sqv1uXiv88f8eSgxXvM+AhL + Dwjr38ZVp5WVDiang6T3NlL4h714rxqGz5xMGmU4UD1oDY5Cf5BG9R2emAwOYHwgKFeDl2KYW3TO + IuyouLzNQABX5hjBVsXLGLZVeRu2ebiIv66GNupo1NGoexBDZfaslz+Yl1F//e5W5iMxR/tnrrtD + u9OF286/TdPmfWm6mM2CGnMwhUpCpJuPUnEbpX+neN57faO5kMAdtT96HDpyRoiY0E6JoYUIGxMW + dxM3pv2VTfReybiThzHkX+EYhT18n7GArJ6y4Cl6qIe6lfYVxCVpWKedtBH9RCLGFRClzgzINhDS + PdYgFZxRx8fKCPiG0qhOOaDKUAOdOsAjs/P5QV4eBBfTbnwmXp3TtkrTcOapAaEM06B0C0/IxlQP + rR6/BELSYJX+UColHgYrSKIbmrnXR1RM/5a1YeaY8sE61aXB4JPBXHKX/kqBsc+RXoXFktTYlqAX + WBzou2zk2OR2GdvUTZ5sn7c8WSNdk53gTVLwGtabkrHtejejUyTcmL0/oKcevfZJj7XKdahaUha7 + bLfbluvNs+fNTV+Nh7BtH3tOdcuQX18ubXveE6KFr0Nfv+i7OeCMiNz0OvJyjqQMu+gHKTZblot6 + mxTPoknWgvOk3uR1Uua7cl2UTOQi97m2YKJnTHQyADpm3qr6rMqyqerFm0arIhrhXb5b46/CchXk + MoS8aOAcrB1DuDd+WWGFna8pCg05lJPCygCgyJneMwFbtFBIAUM7pFSDEX0ko1gwNwrH9mFrdEeq + Ikfvwirz4zbMuVEaN3Rv1KBxJoaxyxyWRrW+6zvhcCPjQkCNv/Ns0G84gq3PxgJjO+BUCb0rVptH + R29i/zrdNqgmTFl6mcod+z7vRLGXX+dOjX8GyG8b+/Ydjb24pPj8gp8PPwHACGFkowgAAA== + headers: + apipie-checksum: [83fd72067f1c96eb1196b17193cc48d0] + cache-control: ['max-age=0, private, must-revalidate'] + connection: [Keep-Alive] + content-encoding: [gzip] + content-length: ['907'] + content-security-policy: ['default-src ''self''; child-src ''self''; connect-src + ''self'' ws: wss:; img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' + ''unsafe-inline'' ''self''; style-src ''unsafe-inline'' ''self'''] + content-type: [application/json; charset=utf-8] + date: ['Wed, 25 Jul 2018 15:13:06 GMT'] + etag: [W/"8473f35aa6e3b0a67381381f4ac7ccda-gzip"] + foreman_api_version: ['2'] + foreman_version: [1.17.1] + keep-alive: ['timeout=5, max=10000'] + server: [Apache/2.4.6 (CentOS)] + set-cookie: [_session_id=c3a799272a3b82723d2978f88b3809d5; path=/; secure; HttpOnly] + status: [200 OK] + strict-transport-security: [max-age=631139040; includeSubdomains] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-download-options: [noopen] + x-frame-options: [sameorigin] + x-permitted-cross-domain-policies: [none] + x-powered-by: [Phusion Passenger 4.0.53] + x-request-id: [8e3d7a7c-20f9-4861-8c2d-a072bc43986d] + x-runtime: ['0.122734'] + x-xss-protection: [1; mode=block] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: ['*/*'] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + User-Agent: [python-requests/2.18.4] + content-type: [application/json] + method: GET + uri: https://centos7-katello-3-6.sean.example.com/katello/api/v2/content_view_filters/21 + response: + body: + string: !!binary | + H4sIAAAAAAAAA6VWwW7bOBC99ysEnq1YluzY1rVATwvsYtHdS2AQFDlyiEgiQVJuXUP/3iFFK7br + tAFyscWZIWf0+N6MkuREZMeb3krVkbJmjYUZUUbuZccaqhl/YXuwk0cKUuaLGelYC6QkX8G65J8x + KPmsOgedS/6X8C35IhsHhsyIAMuN1C6c3/VNMyPcAHMgKHN4RJ4tNmm2TvNVsliVi7xcrpP/vn7G + nb0W7wnjY1p6wLSkPOG61cpKB1PRwdL5GCnwVZ52vqqa9Y2bQmplOFDdaw2OQneQRnUt7pgCDmA8 + RJSr3luzGWmwOItpR8f53QyE5MocY7JFsRthW6yvYbuEi/jjKmiij0Yfjb47GCqzZ538wbyN+uO3 + 1zaPxGW2vy99N9lufOG04Y/XtHrfNZ3DLkCNdzBBJT3Bnk4jSsU1Sv9OeN5WfeU5k8Adtd967Fs0 + aqNEz52HIiJ0RdvoHV53h8u1Pl5ZZwBoZVjHn8N1C8VfwNAWkapx+6XNsX1YGt2Sssgx8aiIqwXd + G9VrVA9CYQxzWGG5RO9IuRZraXBDNgy7G2NEK/IsriZKT+tXEdBbJ+NOHkamvMAxGjv4fkFesnjI + AsAIrO6rRtpnEGeuaTCttDH7icQcrwnR6kyPIgEh3X0PMtgZdbzvjAnfcBrVKgdUGWqgVQe4FzYM + d+h0lxO98QR6dk7bcj4Pex5qEMowDUo38IAimuu+0eOPwJQ0RM1/KDUnPg0KX2IZmrnnewqa/yWR + NuY45711qp2HgEi2+a/MZcYTjHQqPMxIhXSBTqCmsXZZS2yiJWHbjK2qOk83jxueLlFl6VbwOi14 + BcvVmrHNcnuhgqiT8fY+oKpfBcR1aDZkXWyz7XazXq4ePW/u6WpG7LHjVDcM+fU0hly3shjh24dv + O1i7ObCGRG56H9kNkZRhFesgxWrDclFt0uJR1OlScJ5Wq7xK1/l2vSzWTOQi93dtwcTKmGhlSOiY + eatZZWWWTc1KvBm0KGIQnuWHDP4rlKsI3LBhqBDbcw7WjhDujX8sUWEfbzVnG0XB/L4H2fCUfagZ + 4VyU8UFA5bvTxW3Qb8r4CUeKBLHtcRgS37ui2nx2rCb2r9N1g6rDxwE9f0y07PtlJ4oj6HVcVsD8 + l8Qf5tHmHfOoOF/xsBs+/QSH4SvF/AgAAA== + headers: + apipie-checksum: [83fd72067f1c96eb1196b17193cc48d0] + cache-control: ['max-age=0, private, must-revalidate'] + connection: [Keep-Alive] + content-encoding: [gzip] + content-length: ['880'] + content-security-policy: ['default-src ''self''; child-src ''self''; connect-src + ''self'' ws: wss:; img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' + ''unsafe-inline'' ''self''; style-src ''unsafe-inline'' ''self'''] + content-type: [application/json; charset=utf-8] + date: ['Wed, 25 Jul 2018 15:13:06 GMT'] + etag: [W/"c48daf382a0507c36c05e6677e58d41b-gzip"] + foreman_api_version: ['2'] + foreman_version: [1.17.1] + keep-alive: ['timeout=5, max=10000'] + server: [Apache/2.4.6 (CentOS)] + set-cookie: [_session_id=48235b8e57de4b3478c21a2bad387588; path=/; secure; HttpOnly] + status: [200 OK] + strict-transport-security: [max-age=631139040; includeSubdomains] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-download-options: [noopen] + x-frame-options: [sameorigin] + x-permitted-cross-domain-policies: [none] + x-powered-by: [Phusion Passenger 4.0.53] + x-request-id: [c9453b91-8f54-419d-924f-528395d6f9de] + x-runtime: ['0.129162'] + x-xss-protection: [1; mode=block] + status: {code: 200, message: OK} +- request: + body: !!python/unicode '{"content_view_id": 17, "name": "Test Package Content + View Filter"}' + headers: + Accept: ['*/*'] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Length: ['67'] + User-Agent: [python-requests/2.18.4] + content-type: [application/json] + method: GET + uri: https://centos7-katello-3-6.sean.example.com/katello/api/v2/content_view_filters + response: + body: + string: !!binary | + H4sIAAAAAAAAA6VWUY/aOBB+769AfiabkMAG8lrpnk666tS7l2plOfaEtZrElu3QUsR/79gxIVBW + XalCAntm7G88880MJ+KUYy2pVktih/q60WwP4wIMHTd5tiRgjDKk6oe2xQPADH+ddso4Up1IfSQV + 6VkHZEmUEYDmhFlOzktiwA6ts6T6ciKy5+1gpepJ1bDWwpJIgRiIGM5W5DNYt/jE+FcEX3xUvYPe + Lf6X8G3xl2wdXrskAiw3Urtwy+gFN8AcCMrQF5Jnq22SlUm+Waw21Sqv1uXiv88f8eSgxXvM+AhL + Dwjr38ZVp5WVDiang6T3NlL4h714rxqGz5xMGmU4UD1oDY5Cf5BG9R2emAwOYHwgKFeDl2KYW3TO + IuyouLzNQABX5hjBVsXLGLZVeRu2ebiIv66GNupo1NGoexBDZfaslz+Yl1F//e5W5iMxR/tnrrtD + u9OF286/TdPmfWm6mM2CGnMwhUpCpJuPUnEbpX+neN57faO5kMAdtT96HDpyRoiY0E6JoYUIGxMW + dxM3pv2VTfReybiThzHkX+EYhT18n7GArJ6y4Cl6qIe6lfYVxCVpWKedtBH9RCLGFRClzgzINhDS + PdYgFZxRx8fKCPiG0qhOOaDKUAOdOsAjs/P5QV4eBBfTbnwmXp3TtkrTcOapAaEM06B0C0/IxlQP + rR6/BELSYJX+UColHgYrSKIbmrnXR1RM/5a1YeaY8sE61aXB4JPBXHKX/kqBsc+RXoXFktTYlqAX + WBzou2zk2OR2GdvUTZ5sn7c8WSNdk53gTVLwGtabkrHtejejUyTcmL0/oKcevfZJj7XKdahaUha7 + bLfbluvNs+fNTV+Nh7BtH3tOdcuQX18ubXveE6KFr0Nfv+i7OeCMiNz0OvJyjqQMu+gHKTZblot6 + mxTPoknWgvOk3uR1Uua7cl2UTOQi97m2YKJnTHQyADpm3qr6rMqyqerFm0arIhrhXb5b46/CchXk + MoS8aOAcrB1DuDd+WWGFna8pCg05lJPCygCgyJneMwFbtFBIAUM7pFSDEX0ko1gwNwrH9mFrdEeq + Ikfvwirz4zbMuVEaN3Rv1KBxJoaxyxyWRrW+6zvhcCPjQkCNv/Ns0G84gq3PxgJjO+BUCb0rVptH + R29i/zrdNqgmTFl6mcod+z7vRLGXX+dOjX8GyG8b+/Ydjb24pPj8gp8PPwHACGFkowgAAA== + headers: + apipie-checksum: [83fd72067f1c96eb1196b17193cc48d0] + cache-control: ['max-age=0, private, must-revalidate'] + connection: [Keep-Alive] + content-encoding: [gzip] + content-length: ['907'] + content-security-policy: ['default-src ''self''; child-src ''self''; connect-src + ''self'' ws: wss:; img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' + ''unsafe-inline'' ''self''; style-src ''unsafe-inline'' ''self'''] + content-type: [application/json; charset=utf-8] + date: ['Wed, 25 Jul 2018 15:13:06 GMT'] + etag: [W/"8473f35aa6e3b0a67381381f4ac7ccda-gzip"] + foreman_api_version: ['2'] + foreman_version: [1.17.1] + keep-alive: ['timeout=5, max=10000'] + server: [Apache/2.4.6 (CentOS)] + set-cookie: [_session_id=5f2119568fd496312a71c0cff57fc802; path=/; secure; HttpOnly] + status: [200 OK] + strict-transport-security: [max-age=631139040; includeSubdomains] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-download-options: [noopen] + x-frame-options: [sameorigin] + x-permitted-cross-domain-policies: [none] + x-powered-by: [Phusion Passenger 4.0.53] + x-request-id: [45240f46-6cba-48a8-8d20-6cc561401551] + x-runtime: ['0.127146'] + x-xss-protection: [1; mode=block] + status: {code: 200, message: OK} +- request: + body: !!python/unicode '{"content_view_filter_id": 21, "name": "bear"}' + headers: + Accept: ['*/*'] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Length: ['46'] + User-Agent: [python-requests/2.18.4] + content-type: [application/json] + method: GET + uri: https://centos7-katello-3-6.sean.example.com/katello/api/v2/content_view_filters/21/rules + response: + body: + string: !!binary | + H4sIAAAAAAAAA3WOQWoDMQxF9z1F+GsHbCchQdteoV2VYjwzajvg2EH2JC3D3D1KAu2qO3/rfT3N + aKXFBHIGder+wil+8uPBEh7BWwMWKQLKU0pa4Cj9128q0kAzuh8QxgEGRQZWGLH2WAyE65RaBb3N + 6EtunFs4j3wJH2NqatEOeTUe43c4s9SxZC07XXSb7A1yPOoZ6FSrn71wbDyEqFZ46w5ru1/73crt + yHnaHlavL8+KTafhX2xD1t6x5X15ugJJhCVzCwEAAA== + headers: + apipie-checksum: [83fd72067f1c96eb1196b17193cc48d0] + cache-control: ['max-age=0, private, must-revalidate'] + connection: [Keep-Alive] + content-encoding: [gzip] + content-length: ['202'] + content-security-policy: ['default-src ''self''; child-src ''self''; connect-src + ''self'' ws: wss:; img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' + ''unsafe-inline'' ''self''; style-src ''unsafe-inline'' ''self'''] + content-type: [application/json; charset=utf-8] + date: ['Wed, 25 Jul 2018 15:13:06 GMT'] + etag: [W/"ed2149efcd559b2a255bfe0b34b1b762-gzip"] + foreman_api_version: ['2'] + foreman_version: [1.17.1] + keep-alive: ['timeout=5, max=10000'] + server: [Apache/2.4.6 (CentOS)] + set-cookie: [_session_id=2d5f1346af4b11b1a08ee621d1f3e154; path=/; secure; HttpOnly] + status: [200 OK] + strict-transport-security: [max-age=631139040; includeSubdomains] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-download-options: [noopen] + x-frame-options: [sameorigin] + x-permitted-cross-domain-policies: [none] + x-powered-by: [Phusion Passenger 4.0.53] + x-request-id: [300c6300-1c7d-4122-9b60-54bb298da0aa] + x-runtime: ['0.053132'] + x-xss-protection: [1; mode=block] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: ['*/*'] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + User-Agent: [python-requests/2.18.4] + content-type: [application/json] + method: GET + uri: https://centos7-katello-3-6.sean.example.com/katello/api/v2/content_view_filters/21/rules/7 + response: + body: + string: !!binary | + H4sIAAAAAAAAA3XKwQrCMAyA4btPUXLuoKmOjVx9BT2HuEYouE5qnIL47lbvXr//d+4F01JMi/Ga + 9cHnfDGtnBNQRA+zPHnVestLAQIED98yeCgya5OTSm04VRXTxGLNYsCxC0MXe4c9YaTd6I6Hfdvu + 1/R321IIv+29+QBajeM2lQAAAA== + headers: + apipie-checksum: [83fd72067f1c96eb1196b17193cc48d0] + cache-control: ['max-age=0, private, must-revalidate'] + connection: [Keep-Alive] + content-encoding: [gzip] + content-length: ['133'] + content-security-policy: ['default-src ''self''; child-src ''self''; connect-src + ''self'' ws: wss:; img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' + ''unsafe-inline'' ''self''; style-src ''unsafe-inline'' ''self'''] + content-type: [application/json; charset=utf-8] + date: ['Wed, 25 Jul 2018 15:13:06 GMT'] + etag: [W/"4f0c716eb996f8aed9eeb1d3c0e14bc1-gzip"] + foreman_api_version: ['2'] + foreman_version: [1.17.1] + keep-alive: ['timeout=5, max=10000'] + server: [Apache/2.4.6 (CentOS)] + set-cookie: [_session_id=73b995834885843d61f5afa9672fd467; path=/; secure; HttpOnly] + status: [200 OK] + strict-transport-security: [max-age=631139040; includeSubdomains] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-download-options: [noopen] + x-frame-options: [sameorigin] + x-permitted-cross-domain-policies: [none] + x-powered-by: [Phusion Passenger 4.0.53] + x-request-id: [1dfc9731-6884-4ae7-aa1d-d2651eee84db] + x-runtime: ['0.053633'] + x-xss-protection: [1; mode=block] + status: {code: 200, message: OK} +- request: + body: !!python/unicode '{"min_version": "1", "max_version": null}' + headers: + Accept: ['*/*'] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Length: ['41'] + User-Agent: [python-requests/2.18.4] + content-type: [application/json] + method: PUT + uri: https://centos7-katello-3-6.sean.example.com/katello/api/v2/content_view_filters/21/rules/7 + response: + body: + string: !!binary | + H4sIAAAAAAAAA3XKMQ7CMAxA0Z1TRJ5TKQ6UVlm5AsxWaIxkiboomDIg7k5gZ33/O/eCaVFjNVqF + n3SRq3ElKZAiephFaeV6l0UhAYKHbxk8aJ65yZlzbThVzsaFsjWLAccuDF3sHfYJY9qN7nQ8tO1x + K3+3bQr73/befADMIRZHlQAAAA== + headers: + apipie-checksum: [83fd72067f1c96eb1196b17193cc48d0] + cache-control: ['max-age=0, private, must-revalidate'] + connection: [Keep-Alive] + content-encoding: [gzip] + content-length: ['133'] + content-security-policy: ['default-src ''self''; child-src ''self''; connect-src + ''self'' ws: wss:; img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' + ''unsafe-inline'' ''self''; style-src ''unsafe-inline'' ''self'''] + content-type: [application/json; charset=utf-8] + date: ['Wed, 25 Jul 2018 15:13:06 GMT'] + etag: [W/"4013e2507cc2b27c5532193bd9449b06-gzip"] + foreman_api_version: ['2'] + foreman_version: [1.17.1] + keep-alive: ['timeout=5, max=10000'] + server: [Apache/2.4.6 (CentOS)] + set-cookie: [request_method=PUT; path=/, _session_id=2d72c2770aab6d4849f131411e2c49a0; + path=/; secure; HttpOnly] + status: [200 OK] + strict-transport-security: [max-age=631139040; includeSubdomains] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-download-options: [noopen] + x-frame-options: [sameorigin] + x-permitted-cross-domain-policies: [none] + x-powered-by: [Phusion Passenger 4.0.53] + x-request-id: [db647a96-0ba1-4cfd-8701-54aeb9f7cd2b] + x-runtime: ['0.065032'] + x-xss-protection: [1; mode=block] + status: {code: 200, message: OK} +version: 1 diff --git a/test/test_playbooks/fixtures/content_view_filter-15.yml b/test/test_playbooks/fixtures/content_view_filter-15.yml new file mode 100644 index 0000000000..cc53020680 --- /dev/null +++ b/test/test_playbooks/fixtures/content_view_filter-15.yml @@ -0,0 +1,519 @@ +interactions: +- request: + body: !!python/unicode '{}' + headers: + Accept: ['*/*'] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Length: ['2'] + User-Agent: [python-requests/2.18.4] + content-type: [application/json] + method: GET + uri: https://centos7-katello-3-6.sean.example.com/katello/api/v2/ping + response: + body: + string: !!binary | + H4sIAAAAAAAAA43OMQqAMAwF0N1TSGaXiqh4mRK0YlHb0qQu0rvbujnVKfzwPkld30CMHAgmsDs0 + QMpfelYp3+DC4fL8iiV4ZG2NPPOqExCbV0oMvJW46DOf0SyHctoUufjwfyfa3FmtVycayUg7lSrj + kN6KsXoAoR6O8g8BAAA= + headers: + apipie-checksum: [83fd72067f1c96eb1196b17193cc48d0] + cache-control: ['max-age=0, private, must-revalidate'] + connection: [Keep-Alive] + content-encoding: [gzip] + content-length: ['128'] + content-security-policy: ['default-src ''self''; child-src ''self''; connect-src + ''self'' ws: wss:; img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' + ''unsafe-inline'' ''self''; style-src ''unsafe-inline'' ''self'''] + content-type: [application/json; charset=utf-8] + date: ['Wed, 25 Jul 2018 15:13:08 GMT'] + etag: [W/"24e30d0a7a2d1855fef2824058c5bee3-gzip"] + foreman_api_version: ['2'] + foreman_version: [1.17.1] + keep-alive: ['timeout=5, max=10000'] + server: [Apache/2.4.6 (CentOS)] + set-cookie: [_session_id=860e3d73fda46e41ed78386314c37527; path=/; secure; HttpOnly] + status: [200 OK] + strict-transport-security: [max-age=631139040; includeSubdomains] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-download-options: [noopen] + x-frame-options: [sameorigin] + x-permitted-cross-domain-policies: [none] + x-powered-by: [Phusion Passenger 4.0.53] + x-request-id: [689b9cd4-a287-4df7-9d78-7b0f714aada3] + x-runtime: ['1.005430'] + x-xss-protection: [1; mode=block] + status: {code: 200, message: OK} +- request: + body: !!python/unicode '{"search": "name=\"Test Organization\""}' + headers: + Accept: ['*/*'] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Length: ['40'] + User-Agent: [python-requests/2.18.4] + content-type: [application/json] + method: GET + uri: https://centos7-katello-3-6.sean.example.com/katello/api/v2/organizations + response: + body: + string: !!binary | + H4sIAAAAAAAAA42PwWrDMAyG73kKo3MKcdjYathpD7BLd2pHUGLRGdwkyMqhC3n3qU7GxmCwm77P + v/mluTAGZBCM4Exd3ihN7ZewWYx4pm8gbjZRV2uekLt3ZejxQk8nOFAS88Jn7MMHShj6E8CaHFg0 + N+us1F517qcYy5UH9sSbUrPkL0xpipJUH2eI2JKulQuanwVQQseEQr5BbYC6so+76mFX3Rt752rr + 7N68Hp41No3+P7Hgwe3LfNDWZ371SZD415un1HEYM7nbOctbsRSfKnwYS2sBAAA= + headers: + apipie-checksum: [83fd72067f1c96eb1196b17193cc48d0] + cache-control: ['max-age=0, private, must-revalidate'] + connection: [Keep-Alive] + content-encoding: [gzip] + content-length: ['218'] + content-security-policy: ['default-src ''self''; child-src ''self''; connect-src + ''self'' ws: wss:; img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' + ''unsafe-inline'' ''self''; style-src ''unsafe-inline'' ''self'''] + content-type: [application/json; charset=utf-8] + date: ['Wed, 25 Jul 2018 15:13:09 GMT'] + etag: [W/"33eb541f7daf03e7d506a757939a7889-gzip"] + foreman_api_version: ['2'] + foreman_version: [1.17.1] + keep-alive: ['timeout=5, max=10000'] + server: [Apache/2.4.6 (CentOS)] + set-cookie: [_session_id=cf50d774bd6efee08711feb7fe55a16c; path=/; secure; HttpOnly] + status: [200 OK] + strict-transport-security: [max-age=631139040; includeSubdomains] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-download-options: [noopen] + x-frame-options: [sameorigin] + x-permitted-cross-domain-policies: [none] + x-powered-by: [Phusion Passenger 4.0.53] + x-request-id: [2dbf79b0-2814-45b7-9c88-3be37c08a523] + x-runtime: ['0.067868'] + x-xss-protection: [1; mode=block] + status: {code: 200, message: OK} +- request: + body: !!python/unicode '{"organization_id": 9, "name": "Test Content View"}' + headers: + Accept: ['*/*'] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Length: ['51'] + User-Agent: [python-requests/2.18.4] + content-type: [application/json] + method: GET + uri: https://centos7-katello-3-6.sean.example.com/katello/api/v2/content_views + response: + body: + string: !!binary | + H4sIAAAAAAAAA41SwW7bMAy97ysCnt0hTht087UfMGBoeykKQbGYVpgtCpTkzQ3876Vj1XWCFNhN + 5Hvkox55gEhRN1CVBYS0+wy8fsHpgaymYLMuAJmJoXKpaaQANdevc0QcoTrArocKnG4RCiA2KHTQ + oYahAMaQmhigejpATa2nYKM03usmYDFlHLqorBk5zwUY3GupmCl74hqVT95jVOg6y+RaqZgJHXKw + 5FRNaczKxI2OGKLKwMewjEdx4j6LldciZ418+baYpq/gXgpXd+SiKKweLf6Fsd0Om4ypjKmMGQw1 + Wx8XOsQv2tk3PebU2P7naW40bKn2a4mdqZ1hx25ias0oXzRKy39hsy5/XK1vrzbbVbmtyk11s109 + 3N8JPXnzP7SFqXkHs1UWp80dXbo+den37Of51CdInQ2LvR9L+9TCIBJ5oS2Z1GCWzQvL0Xwbczw1 + 6sR5dQ7qOtpusvwP9jnp8N/iCqD8vj5OKhP6tGtseEXzsTQ5+daGrH6ArPEpKNnISa4NjY2XETmF + yNRfBrPgFyBTSxEVsWJsqcNLtGF4Hr69A9j2DxC8AwAA + headers: + apipie-checksum: [83fd72067f1c96eb1196b17193cc48d0] + cache-control: ['max-age=0, private, must-revalidate'] + connection: [Keep-Alive] + content-encoding: [gzip] + content-length: ['432'] + content-security-policy: ['default-src ''self''; child-src ''self''; connect-src + ''self'' ws: wss:; img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' + ''unsafe-inline'' ''self''; style-src ''unsafe-inline'' ''self'''] + content-type: [application/json; charset=utf-8] + date: ['Wed, 25 Jul 2018 15:13:09 GMT'] + etag: [W/"e5377be671b535aa8045efc383418dc4-gzip"] + foreman_api_version: ['2'] + foreman_version: [1.17.1] + keep-alive: ['timeout=5, max=10000'] + server: [Apache/2.4.6 (CentOS)] + set-cookie: [_session_id=debb10b368adf6c44ba79839fe241a9b; path=/; secure; HttpOnly] + status: [200 OK] + strict-transport-security: [max-age=631139040; includeSubdomains] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-download-options: [noopen] + x-frame-options: [sameorigin] + x-permitted-cross-domain-policies: [none] + x-powered-by: [Phusion Passenger 4.0.53] + x-request-id: [9e043440-532d-44f4-a682-4553060671b6] + x-runtime: ['0.079433'] + x-xss-protection: [1; mode=block] + status: {code: 200, message: OK} +- request: + body: !!python/unicode '{"organization_id": 9, "name": "Test Product"}' + headers: + Accept: ['*/*'] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Length: ['46'] + User-Agent: [python-requests/2.18.4] + content-type: [application/json] + method: GET + uri: https://centos7-katello-3-6.sean.example.com/katello/api/v2/products + response: + body: + string: !!binary | + H4sIAAAAAAAAA2VQy07DMBC88xXWnlOUpIQ2vqF+AEiUE0KW66xSC8e2/ACFqv+OnZY2Krfd2dnd + mTlAMIEroFUBPu6ujeU9ngp07NTUZQHonHFAdVQqLSB3Yn/pjAtAD7AbgYLmA0IBxnWY6MC9gGMB + Dn1UwQN9P4DsgLYFCMtyBatlW7btevXQPJZpcdqnsEUfyIszXRQhoYrvUJ1hdoU79MJJG6TRafhE + 9tzakSgZgkIS8gl74abqSyZR09eqSbJHLZhVXE/I2UrGfBwG7sZsyUch0CfddTLR25594viPHnjI + kl9TI3VPNmawCgPeT7qT3sxK87qs1otytagbUjW0KmnVkrftZs5i3ym39A2WZJA6JgdTlD3X8odn + l+wc3hzLOuepPc9nN9HdzKZrx1kUf8YcWuNlMG5kwkQdcgAfx7tfwzLIbjUCAAA= + headers: + apipie-checksum: [83fd72067f1c96eb1196b17193cc48d0] + cache-control: ['max-age=0, private, must-revalidate'] + connection: [Keep-Alive] + content-encoding: [gzip] + content-length: ['332'] + content-security-policy: ['default-src ''self''; child-src ''self''; connect-src + ''self'' ws: wss:; img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' + ''unsafe-inline'' ''self''; style-src ''unsafe-inline'' ''self'''] + content-type: [application/json; charset=utf-8] + date: ['Wed, 25 Jul 2018 15:13:09 GMT'] + etag: [W/"e094e3b621673748cc58c93af2f043f8-gzip"] + foreman_api_version: ['2'] + foreman_version: [1.17.1] + keep-alive: ['timeout=5, max=10000'] + server: [Apache/2.4.6 (CentOS)] + set-cookie: [_session_id=3c16d366ee8acb5ba20a4df6a3424089; path=/; secure; HttpOnly] + status: [200 OK] + strict-transport-security: [max-age=631139040; includeSubdomains] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-download-options: [noopen] + x-frame-options: [sameorigin] + x-permitted-cross-domain-policies: [none] + x-powered-by: [Phusion Passenger 4.0.53] + x-request-id: [2d071139-71b2-4e57-9b0a-2976dd68859e] + x-runtime: ['0.119123'] + x-xss-protection: [1; mode=block] + status: {code: 200, message: OK} +- request: + body: !!python/unicode '{"product_id": 9, "name": "Test Repository"}' + headers: + Accept: ['*/*'] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Length: ['44'] + User-Agent: [python-requests/2.18.4] + content-type: [application/json] + method: GET + uri: https://centos7-katello-3-6.sean.example.com/katello/api/v2/repositories + response: + body: + string: !!binary | + H4sIAAAAAAAAA3VTyY7bMAy99ysCnuPY8TJerr0WaFFMT8VAkCU6I4xtCVqmzQT591K202nQ9mKT + IkU9vkdewGvPR+iOe3Chf3cMP+FqoGWrk2d7QGu1hW4O40gXkFvx/NvT1kN3gf4MHcx8QtiDthIp + HbgTcN2DRRdG76D7fgGhZ4+zZ/5sqDacw0T5wdLr8Oy9cV2aWjTaHQaU2nKD2ox40PaUmjCa9SNx + 0mzJSt+0TiG+MHKvXpEge0IGj+g8+2xPfFZvFNBz+kn1lttzKoLzekqXhC9WyyD86nyN9ZTX9kz1 + 1gZh1ouxh56LF5wlU5Kwq0Gt3bUZr/ohT5qHRiRlnh2TVoohKUSPZVVz3pQt3b11PPIexxtrShLL + xX4lbMW7u0OwZcPf2MyKOnIeq7T0gmHRgrpos7Zt6rJ6yOC+9tYqnbrzLJgZ+Uxy3PSS6IRVJhJ1 + y5Dcx4gi7PaVhoPK4U/PYgyerhGf27wNBxRVw3PZN0nxIIeklEIkfZX3SZ23dVnUXOYyj1o7tBsy + Lie1POi59SgZp6aAaGySrE7yanesumPWZdnu2+NHSiMB/pt0LLYkquVjbVLZGJRwm754FIRA51YK + Tzaa3fGQXd8lEjrMcU4voJ23iIxmZo6TQCsgNY2AZRON1ECM/uuMjeo+4Plpca2ZoCtyQrdYWdwz + 8bJsVzzdHHayOhhauGXfuKfV6EqKBmrEs4kEHHG5PKjNkNjT/0812A/aPRfV2BG3waOD69P1wy/D + RJa48AMAAA== + headers: + apipie-checksum: [83fd72067f1c96eb1196b17193cc48d0] + cache-control: ['max-age=0, private, must-revalidate'] + connection: [Keep-Alive] + content-encoding: [gzip] + content-length: ['577'] + content-security-policy: ['default-src ''self''; child-src ''self''; connect-src + ''self'' ws: wss:; img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' + ''unsafe-inline'' ''self''; style-src ''unsafe-inline'' ''self'''] + content-type: [application/json; charset=utf-8] + date: ['Wed, 25 Jul 2018 15:13:09 GMT'] + etag: [W/"4800e2cb797f73e5a7b98036a1a0314c-gzip"] + foreman_api_version: ['2'] + foreman_version: [1.17.1] + keep-alive: ['timeout=5, max=10000'] + server: [Apache/2.4.6 (CentOS)] + set-cookie: [_session_id=65d696f171036fafa9cd298ed11240ca; path=/; secure; HttpOnly] + status: [200 OK] + strict-transport-security: [max-age=631139040; includeSubdomains] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-download-options: [noopen] + x-frame-options: [sameorigin] + x-permitted-cross-domain-policies: [none] + x-powered-by: [Phusion Passenger 4.0.53] + x-request-id: [affa5710-7ff8-43f8-9faa-ee10ba15e5c9] + x-runtime: ['0.113737'] + x-xss-protection: [1; mode=block] + status: {code: 200, message: OK} +- request: + body: !!python/unicode '{"content_view_id": 17, "name": "Test Package Content + View Filter"}' + headers: + Accept: ['*/*'] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Length: ['67'] + User-Agent: [python-requests/2.18.4] + content-type: [application/json] + method: GET + uri: https://centos7-katello-3-6.sean.example.com/katello/api/v2/content_view_filters + response: + body: + string: !!binary | + H4sIAAAAAAAAA6VWUY/aOBB+769AfiabkMAG8lqpTyddderdS7WyHHvCWk1iy3boUcR/79gxIVBW + XalCAtsz4288880MJ+KUYy2pVktih/q60WwP4wIMHTd5tiRgjDKk6oe2RQNghr9OO2UcqU6kPpKK + 9KwDsiTKCEB1wiwn5yUxYIfWWVJ9PRHZ83awUvWkalhrYUmkQAxEDLYV+QLWLT4z/g3BFx9V76B3 + i/8kfF98kq3Da5dEgOVGahduGb3gBpgDQRn6QvJstU2yMsk3i9WmWuXVulz8++UjWg5avEeNj7D0 + gLD+bVx1WlnpYHI6nPReRwr/sBfvVcPwmZNKowwHqgetwVHoD9KovkOLSeEAxgeCcjX4Uwxzi85Z + hB0Fl7cZCODKHCPYqngZw7Yqb8M2Dxfx19XQRhmNMhplD2KozJ718gfzZ9Rfv7s985GYo/09l92h + 3cnCbeffpmnzvjRd1GZBjTmYQiUh0s1HqbiN0j9TPO+9vpFcSOCO2pseh46cESImtFNiaCHCxoTF + 3cSNaX9lE70XMu7kYQz5NzjGwx7+n7GArJ6y4Cl6qIe6lfYVxCVpWKedtBH9RCLGFRBPnRmQbSCk + eyxBKjijjo+FEfANoVGdckCVoQY6dYBHaufzg7w8CC6m3fhMvDqnbZWmweapAaEM06B0C0/IxlQP + rR6/BELSoJX+UColHgYrSKIbmrnXR1RM/5K1YeaY8sE61aVB4bPBXHKX/kqBsc+RXoXFktTYlqAX + WBzou2zk2OR2GdvUTZ5sn7c8WSNdk53gTVLwGtabkrHtejejUyTcmL0/oKcevfZJj7XKdahaUha7 + bLfbluvNs+fNTV+NRti2jz2numXIr6+Xtj3vCVHD16GvX/TdHHBGRG56GXk5R1KGXfSDFJsty0W9 + TYpn0SRrwXlSb/I6KfNduS5KJnKR+1xbMNEzJjoZAB0zb1V9VmXZVPXiTaVVEZXwLt+t8VdhuQpy + GUL+aOAcrB1DuDd+WWGFna8pCg05lJPCygCgyJneMwFbtFBIAUM7pFSDEX10RrFgbgSO7cPW6I5U + RY7ehVXmx22Yc+Np3NC9UYPGmRjGLnNYGtX6ru8E40bGhYAaf+fZoN9xBFufjQXGdsCpEnpXrDaP + jt7E/nW6bVBNmLL0MpXRfN6JYi+/zp0a/wyQ3zb27Tsae1Flz0Ht/IKfDz8B7kbhYqMIAAA= + headers: + apipie-checksum: [83fd72067f1c96eb1196b17193cc48d0] + cache-control: ['max-age=0, private, must-revalidate'] + connection: [Keep-Alive] + content-encoding: [gzip] + content-length: ['908'] + content-security-policy: ['default-src ''self''; child-src ''self''; connect-src + ''self'' ws: wss:; img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' + ''unsafe-inline'' ''self''; style-src ''unsafe-inline'' ''self'''] + content-type: [application/json; charset=utf-8] + date: ['Wed, 25 Jul 2018 15:13:09 GMT'] + etag: [W/"cdee0e4853935596112c498e53aa62e9-gzip"] + foreman_api_version: ['2'] + foreman_version: [1.17.1] + keep-alive: ['timeout=5, max=10000'] + server: [Apache/2.4.6 (CentOS)] + set-cookie: [_session_id=f515d1eaa7cae46cf44234f691892633; path=/; secure; HttpOnly] + status: [200 OK] + strict-transport-security: [max-age=631139040; includeSubdomains] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-download-options: [noopen] + x-frame-options: [sameorigin] + x-permitted-cross-domain-policies: [none] + x-powered-by: [Phusion Passenger 4.0.53] + x-request-id: [8e99c50a-5d77-4fd3-bc32-a2d9d67adb07] + x-runtime: ['0.120773'] + x-xss-protection: [1; mode=block] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: ['*/*'] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + User-Agent: [python-requests/2.18.4] + content-type: [application/json] + method: GET + uri: https://centos7-katello-3-6.sean.example.com/katello/api/v2/content_view_filters/21 + response: + body: + string: !!binary | + H4sIAAAAAAAAA6VWwW7bOBC99ysEnq1YluzY1rXAnhZosejuJTAIihw5RCSRICl3XcP/3iFFK7Lr + tAFyscWZIWf0+N6MkuREZMeb3krVkbJmjYUZUUbuZccaqhl/YXuwo0cKUuaLGelYC6Qk38C65OsQ + lHxWnYPOJf9J+J78JRsHhsyIAMuN1C6c3/VNMyPcAHMgKHN4RJ4tNmm2TvNVsliVi7xcrpN/v33G + nb0W7wnjQ1p6wLSkPOG61cpKB2PRwdL5GCnwVZ52vqqa9Y0bQ2plOFDdaw2OQneQRnUt7hgDDmA8 + RJSr3luzGWmwOItpB8fl3QyE5MocY7JFsRtgW6yvYZvCRfxxFTTRR6OPRt8dDJXZs07+YN5G/fHb + a5tHYprty9R3k+3GF047//GaVu+7pkvYBNR4ByNU0hPs6TSgVFyj9M+I523VV54LCdxR+63HvkWj + Nkr03HkoIkJXtI3e8+vucLnWxyvrDACtDOv4c7huofgLGNoiUjVun9oc24el0S0pixwTD4q4WtC9 + Ub1G9SAUxjCHFZZL9A6Ua7GWBjdk5/PuxhjRijyLq5HS4/pVBPTWybiTh4EpL3CMxg7+n5CXLB6y + ADACq/uqkfYZxIVrGkwrbcx+IjHHa0K0OtOjSEBId9+DDHZGHe87Y8I3nEa1ygFVhhpo1QHuhZ3P + d+h0lxO98QR6dk7bcj4Pex5qEMowDUo38IAimuu+0cOPwJQ0RM1/KDUnPg0KX2IZmrnnewqa/y2R + NuY45711qp2HgEi2+a/MZcYTjHQqPMxIhXSBTqCmsXZZS2yiJWHbjK2qOk83jxueLlFl6VbwOi14 + BcvVmrHNcjtRQdTJcHsfUNWvAuI6NBuyLrbZdrtZL1ePnjf3dDUj9thxqhuG/HoaQq5bWYzw7cO3 + HazdHFhDIje9j+zOkZRhFesgxWrDclFt0uJR1OlScJ5Wq7xK1/l2vSzWTOQi93dtwcTKmGhlSOiY + eatZZWWWjc1KvBm0KGIQnuWHDP4rlKsI3LBhqBDbcw7WDhDujX8sUWEfbzUXG0XB/L4H2fCUfagZ + 4VyU8UFA5bvT5Dbod2X8hCNFgtj2OAyJ711RbT47VhP71+m6QdXh44BePiZw+7QTxRH0Oi4rYP5L + 4g/zaPOOeVSU2WMIO+/On34CLVJQPfwIAAA= + headers: + apipie-checksum: [83fd72067f1c96eb1196b17193cc48d0] + cache-control: ['max-age=0, private, must-revalidate'] + connection: [Keep-Alive] + content-encoding: [gzip] + content-length: ['881'] + content-security-policy: ['default-src ''self''; child-src ''self''; connect-src + ''self'' ws: wss:; img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' + ''unsafe-inline'' ''self''; style-src ''unsafe-inline'' ''self'''] + content-type: [application/json; charset=utf-8] + date: ['Wed, 25 Jul 2018 15:13:09 GMT'] + etag: [W/"bb25167020b780665246db50591b9ff6-gzip"] + foreman_api_version: ['2'] + foreman_version: [1.17.1] + keep-alive: ['timeout=5, max=10000'] + server: [Apache/2.4.6 (CentOS)] + set-cookie: [_session_id=c9645f6cd36b43625f462ca111098f75; path=/; secure; HttpOnly] + status: [200 OK] + strict-transport-security: [max-age=631139040; includeSubdomains] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-download-options: [noopen] + x-frame-options: [sameorigin] + x-permitted-cross-domain-policies: [none] + x-powered-by: [Phusion Passenger 4.0.53] + x-request-id: [42b90d22-fece-435b-8605-8b11137a9a80] + x-runtime: ['0.130392'] + x-xss-protection: [1; mode=block] + status: {code: 200, message: OK} +- request: + body: !!python/unicode '{"content_view_id": 17, "name": "Test Package Content + View Filter"}' + headers: + Accept: ['*/*'] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Length: ['67'] + User-Agent: [python-requests/2.18.4] + content-type: [application/json] + method: GET + uri: https://centos7-katello-3-6.sean.example.com/katello/api/v2/content_view_filters + response: + body: + string: !!binary | + H4sIAAAAAAAAA6VWUY/aOBB+769AfiabkMAG8lqpTyddderdS7WyHHvCWk1iy3boUcR/79gxIVBW + XalCAtsz4288880MJ+KUYy2pVktih/q60WwP4wIMHTd5tiRgjDKk6oe2RQNghr9OO2UcqU6kPpKK + 9KwDsiTKCEB1wiwn5yUxYIfWWVJ9PRHZ83awUvWkalhrYUmkQAxEDLYV+QLWLT4z/g3BFx9V76B3 + i/8kfF98kq3Da5dEgOVGahduGb3gBpgDQRn6QvJstU2yMsk3i9WmWuXVulz8++UjWg5avEeNj7D0 + gLD+bVx1WlnpYHI6nPReRwr/sBfvVcPwmZNKowwHqgetwVHoD9KovkOLSeEAxgeCcjX4Uwxzi85Z + hB0Fl7cZCODKHCPYqngZw7Yqb8M2Dxfx19XQRhmNMhplD2KozJ718gfzZ9Rfv7s985GYo/09l92h + 3cnCbeffpmnzvjRd1GZBjTmYQiUh0s1HqbiN0j9TPO+9vpFcSOCO2pseh46cESImtFNiaCHCxoTF + 3cSNaX9lE70XMu7kYQz5NzjGwx7+n7GArJ6y4Cl6qIe6lfYVxCVpWKedtBH9RCLGFRBPnRmQbSCk + eyxBKjijjo+FEfANoVGdckCVoQY6dYBHaufzg7w8CC6m3fhMvDqnbZWmweapAaEM06B0C0/IxlQP + rR6/BELSoJX+UColHgYrSKIbmrnXR1RM/5K1YeaY8sE61aVB4bPBXHKX/kqBsc+RXoXFktTYlqAX + WBzou2zk2OR2GdvUTZ5sn7c8WSNdk53gTVLwGtabkrHtejejUyTcmL0/oKcevfZJj7XKdahaUha7 + bLfbluvNs+fNTV+NRti2jz2numXIr6+Xtj3vCVHD16GvX/TdHHBGRG56GXk5R1KGXfSDFJsty0W9 + TYpn0SRrwXlSb/I6KfNduS5KJnKR+1xbMNEzJjoZAB0zb1V9VmXZVPXiTaVVEZXwLt+t8VdhuQpy + GUL+aOAcrB1DuDd+WWGFna8pCg05lJPCygCgyJneMwFbtFBIAUM7pFSDEX10RrFgbgSO7cPW6I5U + RY7ehVXmx22Yc+Np3NC9UYPGmRjGLnNYGtX6ru8E40bGhYAaf+fZoN9xBFufjQXGdsCpEnpXrDaP + jt7E/nW6bVBNmLL0MpXRfN6JYi+/zp0a/wyQ3zb27Tsae1Flz0Ht/IKfDz8B7kbhYqMIAAA= + headers: + apipie-checksum: [83fd72067f1c96eb1196b17193cc48d0] + cache-control: ['max-age=0, private, must-revalidate'] + connection: [Keep-Alive] + content-encoding: [gzip] + content-length: ['908'] + content-security-policy: ['default-src ''self''; child-src ''self''; connect-src + ''self'' ws: wss:; img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' + ''unsafe-inline'' ''self''; style-src ''unsafe-inline'' ''self'''] + content-type: [application/json; charset=utf-8] + date: ['Wed, 25 Jul 2018 15:13:09 GMT'] + etag: [W/"cdee0e4853935596112c498e53aa62e9-gzip"] + foreman_api_version: ['2'] + foreman_version: [1.17.1] + keep-alive: ['timeout=5, max=10000'] + server: [Apache/2.4.6 (CentOS)] + set-cookie: [_session_id=2963cc1edbfb90d45129287814c9aa1c; path=/; secure; HttpOnly] + status: [200 OK] + strict-transport-security: [max-age=631139040; includeSubdomains] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-download-options: [noopen] + x-frame-options: [sameorigin] + x-permitted-cross-domain-policies: [none] + x-powered-by: [Phusion Passenger 4.0.53] + x-request-id: [c13bc3cb-216e-45cd-aa33-9f72508ca062] + x-runtime: ['0.131416'] + x-xss-protection: [1; mode=block] + status: {code: 200, message: OK} +- request: + body: !!python/unicode '{"content_view_filter_id": 21, "name": "bear"}' + headers: + Accept: ['*/*'] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Length: ['46'] + User-Agent: [python-requests/2.18.4] + content-type: [application/json] + method: GET + uri: https://centos7-katello-3-6.sean.example.com/katello/api/v2/content_view_filters/21/rules + response: + body: + string: !!binary | + H4sIAAAAAAAAA3WOQWoDMQxF9z1F+GsHxk7SBG17hXZVivHMqK3BsYPsSSjD3D1KAu2qO3/rfT3N + aKWFBLIGder/wil88ePB4h/BdQYsUgSUp5S0wEGG799UpIFm9D8gxBEGRUZWGKEOWAyE65RaBb3P + GEpunJs/R774z5iaWrRDTo3HmP2ZpcaStWx10W2yN8jhqGegV61+DsKh8eiDWuE6e1h3+7XbreyO + rKPtYfX2+qLYdBr/xTbUPd+x5WN5ugLjN16LCwEAAA== + headers: + apipie-checksum: [83fd72067f1c96eb1196b17193cc48d0] + cache-control: ['max-age=0, private, must-revalidate'] + connection: [Keep-Alive] + content-encoding: [gzip] + content-length: ['202'] + content-security-policy: ['default-src ''self''; child-src ''self''; connect-src + ''self'' ws: wss:; img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' + ''unsafe-inline'' ''self''; style-src ''unsafe-inline'' ''self'''] + content-type: [application/json; charset=utf-8] + date: ['Wed, 25 Jul 2018 15:13:09 GMT'] + etag: [W/"76bb4f49a13394689829bd59ea43b945-gzip"] + foreman_api_version: ['2'] + foreman_version: [1.17.1] + keep-alive: ['timeout=5, max=10000'] + server: [Apache/2.4.6 (CentOS)] + set-cookie: [_session_id=a8ad01e5b1c752cd05850fcd1d8e3fc1; path=/; secure; HttpOnly] + status: [200 OK] + strict-transport-security: [max-age=631139040; includeSubdomains] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-download-options: [noopen] + x-frame-options: [sameorigin] + x-permitted-cross-domain-policies: [none] + x-powered-by: [Phusion Passenger 4.0.53] + x-request-id: [2ed62c20-65e1-4005-bf87-9201188df077] + x-runtime: ['0.085105'] + x-xss-protection: [1; mode=block] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: ['*/*'] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + User-Agent: [python-requests/2.18.4] + content-type: [application/json] + method: GET + uri: https://centos7-katello-3-6.sean.example.com/katello/api/v2/content_view_filters/21/rules/7 + response: + body: + string: !!binary | + H4sIAAAAAAAAA3XKMQ7CMAxA0Z1TRJ5TKQ6UVlm5AsxWaIxkiboomDIg7k5gZ33/O/eCaVFjNVqF + n3SRq3ElKZAiephFaeV6l0UhAYKHbxk8aJ65yZlzbThVzsaFsjWLAccuDF3sHfYJY9qN7nQ8tO1x + K3+3bQr73/befADMIRZHlQAAAA== + headers: + apipie-checksum: [83fd72067f1c96eb1196b17193cc48d0] + cache-control: ['max-age=0, private, must-revalidate'] + connection: [Keep-Alive] + content-encoding: [gzip] + content-length: ['133'] + content-security-policy: ['default-src ''self''; child-src ''self''; connect-src + ''self'' ws: wss:; img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' + ''unsafe-inline'' ''self''; style-src ''unsafe-inline'' ''self'''] + content-type: [application/json; charset=utf-8] + date: ['Wed, 25 Jul 2018 15:13:10 GMT'] + etag: [W/"4013e2507cc2b27c5532193bd9449b06-gzip"] + foreman_api_version: ['2'] + foreman_version: [1.17.1] + keep-alive: ['timeout=5, max=10000'] + server: [Apache/2.4.6 (CentOS)] + set-cookie: [_session_id=8fbbeb0d75cbd80ce28be9efd6651919; path=/; secure; HttpOnly] + status: [200 OK] + strict-transport-security: [max-age=631139040; includeSubdomains] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-download-options: [noopen] + x-frame-options: [sameorigin] + x-permitted-cross-domain-policies: [none] + x-powered-by: [Phusion Passenger 4.0.53] + x-request-id: [e812d139-6ae2-43d1-86ea-410478914063] + x-runtime: ['0.057592'] + x-xss-protection: [1; mode=block] + status: {code: 200, message: OK} +version: 1 diff --git a/test/test_playbooks/fixtures/content_view_filter-17.yml b/test/test_playbooks/fixtures/content_view_filter-17.yml new file mode 100644 index 0000000000..5ebb38e27a --- /dev/null +++ b/test/test_playbooks/fixtures/content_view_filter-17.yml @@ -0,0 +1,626 @@ +interactions: +- request: + body: !!python/unicode '{}' + headers: + Accept: ['*/*'] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Length: ['2'] + User-Agent: [python-requests/2.18.4] + content-type: [application/json] + method: GET + uri: https://centos7-katello-3-6.sean.example.com/katello/api/v2/ping + response: + body: + string: !!binary | + H4sIAAAAAAAAA43NOwqAMBAE0N5TyNY2frDwMmHRiMH8yG5sJHfXpLOK1TLDG7ZtbyBGjgQLuBM6 + IBkutco33+Cj9vl+xRYDsnJWmFyNM6SuSIGRjxrvC1/Rblp6Zau8//B/L4a82V2QBq1gpJOqkwlS + Ss0DbkXxLg4BAAA= + headers: + apipie-checksum: [83fd72067f1c96eb1196b17193cc48d0] + cache-control: ['max-age=0, private, must-revalidate'] + connection: [Keep-Alive] + content-encoding: [gzip] + content-length: ['125'] + content-security-policy: ['default-src ''self''; child-src ''self''; connect-src + ''self'' ws: wss:; img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' + ''unsafe-inline'' ''self''; style-src ''unsafe-inline'' ''self'''] + content-type: [application/json; charset=utf-8] + date: ['Wed, 25 Jul 2018 15:13:11 GMT'] + etag: [W/"efd033233afe86d20355ae6fc48d94ed-gzip"] + foreman_api_version: ['2'] + foreman_version: [1.17.1] + keep-alive: ['timeout=5, max=10000'] + server: [Apache/2.4.6 (CentOS)] + set-cookie: [_session_id=a6b8d02a87f7d66edde7b197c4db90ab; path=/; secure; HttpOnly] + status: [200 OK] + strict-transport-security: [max-age=631139040; includeSubdomains] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-download-options: [noopen] + x-frame-options: [sameorigin] + x-permitted-cross-domain-policies: [none] + x-powered-by: [Phusion Passenger 4.0.53] + x-request-id: [49e26061-ec2d-46d1-978a-e442c26403a8] + x-runtime: ['0.139146'] + x-xss-protection: [1; mode=block] + status: {code: 200, message: OK} +- request: + body: !!python/unicode '{"search": "name=\"Test Organization\""}' + headers: + Accept: ['*/*'] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Length: ['40'] + User-Agent: [python-requests/2.18.4] + content-type: [application/json] + method: GET + uri: https://centos7-katello-3-6.sean.example.com/katello/api/v2/organizations + response: + body: + string: !!binary | + H4sIAAAAAAAAA42PwWrDMAyG73kKo3MKcdjYathpD7BLd2pHUGLRGdwkyMqhC3n3qU7GxmCwm77P + v/mluTAGZBCM4Exd3ihN7ZewWYx4pm8gbjZRV2uekLt3ZejxQk8nOFAS88Jn7MMHShj6E8CaHFg0 + N+us1F517qcYy5UH9sSbUrPkL0xpipJUH2eI2JKulQuanwVQQseEQr5BbYC6so+76mFX3Rt752rr + 7N68Hp41No3+P7Hgwe3LfNDWZ371SZD415un1HEYM7nbOctbsRSfKnwYS2sBAAA= + headers: + apipie-checksum: [83fd72067f1c96eb1196b17193cc48d0] + cache-control: ['max-age=0, private, must-revalidate'] + connection: [Keep-Alive] + content-encoding: [gzip] + content-length: ['218'] + content-security-policy: ['default-src ''self''; child-src ''self''; connect-src + ''self'' ws: wss:; img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' + ''unsafe-inline'' ''self''; style-src ''unsafe-inline'' ''self'''] + content-type: [application/json; charset=utf-8] + date: ['Wed, 25 Jul 2018 15:13:11 GMT'] + etag: [W/"33eb541f7daf03e7d506a757939a7889-gzip"] + foreman_api_version: ['2'] + foreman_version: [1.17.1] + keep-alive: ['timeout=5, max=10000'] + server: [Apache/2.4.6 (CentOS)] + set-cookie: [_session_id=3f1aa2864ce7a349baf24df60dd13f9e; path=/; secure; HttpOnly] + status: [200 OK] + strict-transport-security: [max-age=631139040; includeSubdomains] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-download-options: [noopen] + x-frame-options: [sameorigin] + x-permitted-cross-domain-policies: [none] + x-powered-by: [Phusion Passenger 4.0.53] + x-request-id: [ceb041bf-1f28-4666-aa02-b560c330cb64] + x-runtime: ['0.052723'] + x-xss-protection: [1; mode=block] + status: {code: 200, message: OK} +- request: + body: !!python/unicode '{"organization_id": 9, "name": "Test Content View"}' + headers: + Accept: ['*/*'] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Length: ['51'] + User-Agent: [python-requests/2.18.4] + content-type: [application/json] + method: GET + uri: https://centos7-katello-3-6.sean.example.com/katello/api/v2/content_views + response: + body: + string: !!binary | + H4sIAAAAAAAAA41SwW7bMAy97ysCnt0hTht087UfMGBoeykKQbGYVpgtCpTkzQ3876Vj1XWCFNhN + 5Hvkox55gEhRN1CVBYS0+wy8fsHpgaymYLMuAJmJoXKpaaQANdevc0QcoTrArocKnG4RCiA2KHTQ + oYahAMaQmhigejpATa2nYKM03usmYDFlHLqorBk5zwUY3GupmCl74hqVT95jVOg6y+RaqZgJHXKw + 5FRNaczKxI2OGKLKwMewjEdx4j6LldciZ418+baYpq/gXgpXd+SiKKweLf6Fsd0Om4ypjKmMGQw1 + Wx8XOsQv2tk3PebU2P7naW40bKn2a4mdqZ1hx25ias0oXzRKy39hsy5/XK1vrzbbVbmtyk11s109 + 3N8JPXnzP7SFqXkHs1UWp80dXbo+den37Of51CdInQ2LvR9L+9TCIBJ5oS2Z1GCWzQvL0Xwbczw1 + 6sR5dQ7qOtpusvwP9jnp8N/iCqD8vj5OKhP6tGtseEXzsTQ5+daGrH6ArPEpKNnISa4NjY2XETmF + yNRfBrPgFyBTSxEVsWJsqcNLtGF4Hr69A9j2DxC8AwAA + headers: + apipie-checksum: [83fd72067f1c96eb1196b17193cc48d0] + cache-control: ['max-age=0, private, must-revalidate'] + connection: [Keep-Alive] + content-encoding: [gzip] + content-length: ['432'] + content-security-policy: ['default-src ''self''; child-src ''self''; connect-src + ''self'' ws: wss:; img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' + ''unsafe-inline'' ''self''; style-src ''unsafe-inline'' ''self'''] + content-type: [application/json; charset=utf-8] + date: ['Wed, 25 Jul 2018 15:13:11 GMT'] + etag: [W/"e5377be671b535aa8045efc383418dc4-gzip"] + foreman_api_version: ['2'] + foreman_version: [1.17.1] + keep-alive: ['timeout=5, max=10000'] + server: [Apache/2.4.6 (CentOS)] + set-cookie: [_session_id=e5f874013887f95be7529c50390e07d2; path=/; secure; HttpOnly] + status: [200 OK] + strict-transport-security: [max-age=631139040; includeSubdomains] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-download-options: [noopen] + x-frame-options: [sameorigin] + x-permitted-cross-domain-policies: [none] + x-powered-by: [Phusion Passenger 4.0.53] + x-request-id: [7f8f25b8-f1f7-41fc-9e9b-e91456caf5f3] + x-runtime: ['0.081995'] + x-xss-protection: [1; mode=block] + status: {code: 200, message: OK} +- request: + body: !!python/unicode '{"organization_id": 9, "name": "Test Product"}' + headers: + Accept: ['*/*'] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Length: ['46'] + User-Agent: [python-requests/2.18.4] + content-type: [application/json] + method: GET + uri: https://centos7-katello-3-6.sean.example.com/katello/api/v2/products + response: + body: + string: !!binary | + H4sIAAAAAAAAA2VQy07DMBC88xXWnlOUpIQ2vqF+AEiUE0KW66xSC8e2/ACFqv+OnZY2Krfd2dnd + mTlAMIEroFUBPu6ujeU9ngp07NTUZQHonHFAdVQqLSB3Yn/pjAtAD7AbgYLmA0IBxnWY6MC9gGMB + Dn1UwQN9P4DsgLYFCMtyBatlW7btevXQPJZpcdqnsEUfyIszXRQhoYrvUJ1hdoU79MJJG6TRafhE + 9tzakSgZgkIS8gl74abqSyZR09eqSbJHLZhVXE/I2UrGfBwG7sZsyUch0CfddTLR25594viPHnjI + kl9TI3VPNmawCgPeT7qT3sxK87qs1otytagbUjW0KmnVkrftZs5i3ym39A2WZJA6JgdTlD3X8odn + l+wc3hzLOuepPc9nN9HdzKZrx1kUf8YcWuNlMG5kwkQdcgAfx7tfwzLIbjUCAAA= + headers: + apipie-checksum: [83fd72067f1c96eb1196b17193cc48d0] + cache-control: ['max-age=0, private, must-revalidate'] + connection: [Keep-Alive] + content-encoding: [gzip] + content-length: ['332'] + content-security-policy: ['default-src ''self''; child-src ''self''; connect-src + ''self'' ws: wss:; img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' + ''unsafe-inline'' ''self''; style-src ''unsafe-inline'' ''self'''] + content-type: [application/json; charset=utf-8] + date: ['Wed, 25 Jul 2018 15:13:11 GMT'] + etag: [W/"e094e3b621673748cc58c93af2f043f8-gzip"] + foreman_api_version: ['2'] + foreman_version: [1.17.1] + keep-alive: ['timeout=5, max=10000'] + server: [Apache/2.4.6 (CentOS)] + set-cookie: [_session_id=6a03fb354a87b8953314eef7ab4798a3; path=/; secure; HttpOnly] + status: [200 OK] + strict-transport-security: [max-age=631139040; includeSubdomains] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-download-options: [noopen] + x-frame-options: [sameorigin] + x-permitted-cross-domain-policies: [none] + x-powered-by: [Phusion Passenger 4.0.53] + x-request-id: [4935f578-c0ee-4bad-9feb-f8682d564b3a] + x-runtime: ['0.112103'] + x-xss-protection: [1; mode=block] + status: {code: 200, message: OK} +- request: + body: !!python/unicode '{"product_id": 9, "name": "Test Repository"}' + headers: + Accept: ['*/*'] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Length: ['44'] + User-Agent: [python-requests/2.18.4] + content-type: [application/json] + method: GET + uri: https://centos7-katello-3-6.sean.example.com/katello/api/v2/repositories + response: + body: + string: !!binary | + H4sIAAAAAAAAA3VTyY7bMAy99ysCnuPY8TJerr0WaFFMT8VAkCU6I4xtCVqmzQT591K202nQ9mKT + IkU9vkdewGvPR+iOe3Chf3cMP+FqoGWrk2d7QGu1hW4O40gXkFvx/NvT1kN3gf4MHcx8QtiDthIp + HbgTcN2DRRdG76D7fgGhZ4+zZ/5sqDacw0T5wdLr8Oy9cV2aWjTaHQaU2nKD2ox40PaUmjCa9SNx + 0mzJSt+0TiG+MHKvXpEge0IGj+g8+2xPfFZvFNBz+kn1lttzKoLzekqXhC9WyyD86nyN9ZTX9kz1 + 1gZh1ouxh56LF5wlU5Kwq0Gt3bUZr/ohT5qHRiRlnh2TVoohKUSPZVVz3pQt3b11PPIexxtrShLL + xX4lbMW7u0OwZcPf2MyKOnIeq7T0gmHRgrpos7Zt6rJ6yOC+9tYqnbrzLJgZ+Uxy3PSS6IRVJhJ1 + y5Dcx4gi7PaVhoPK4U/PYgyerhGf27wNBxRVw3PZN0nxIIeklEIkfZX3SZ23dVnUXOYyj1o7tBsy + Lie1POi59SgZp6aAaGySrE7yanesumPWZdnu2+NHSiMB/pt0LLYkquVjbVLZGJRwm754FIRA51YK + Tzaa3fGQXd8lEjrMcU4voJ23iIxmZo6TQCsgNY2AZRON1ECM/uuMjeo+4Plpca2ZoCtyQrdYWdwz + 8bJsVzzdHHayOhhauGXfuKfV6EqKBmrEs4kEHHG5PKjNkNjT/0812A/aPRfV2BG3waOD69P1wy/D + RJa48AMAAA== + headers: + apipie-checksum: [83fd72067f1c96eb1196b17193cc48d0] + cache-control: ['max-age=0, private, must-revalidate'] + connection: [Keep-Alive] + content-encoding: [gzip] + content-length: ['577'] + content-security-policy: ['default-src ''self''; child-src ''self''; connect-src + ''self'' ws: wss:; img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' + ''unsafe-inline'' ''self''; style-src ''unsafe-inline'' ''self'''] + content-type: [application/json; charset=utf-8] + date: ['Wed, 25 Jul 2018 15:13:11 GMT'] + etag: [W/"4800e2cb797f73e5a7b98036a1a0314c-gzip"] + foreman_api_version: ['2'] + foreman_version: [1.17.1] + keep-alive: ['timeout=5, max=10000'] + server: [Apache/2.4.6 (CentOS)] + set-cookie: [_session_id=d4b53edce8e7e6aa1a49dc7da6684c3c; path=/; secure; HttpOnly] + status: [200 OK] + strict-transport-security: [max-age=631139040; includeSubdomains] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-download-options: [noopen] + x-frame-options: [sameorigin] + x-permitted-cross-domain-policies: [none] + x-powered-by: [Phusion Passenger 4.0.53] + x-request-id: [72d042ae-a0ca-473a-8335-45ab5cf98d56] + x-runtime: ['0.122166'] + x-xss-protection: [1; mode=block] + status: {code: 200, message: OK} +- request: + body: !!python/unicode '{"content_view_id": 17, "name": "Test Package Content + View Filter"}' + headers: + Accept: ['*/*'] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Length: ['67'] + User-Agent: [python-requests/2.18.4] + content-type: [application/json] + method: GET + uri: https://centos7-katello-3-6.sean.example.com/katello/api/v2/content_view_filters + response: + body: + string: !!binary | + H4sIAAAAAAAAA6VWUY/aOBB+769AfiabkMAG8lqpTyddderdS7WyHHvCWk1iy3boUcR/79gxIVBW + XalCAtsz4288880MJ+KUYy2pVktih/q60WwP4wIMHTd5tiRgjDKk6oe2RQNghr9OO2UcqU6kPpKK + 9KwDsiTKCEB1wiwn5yUxYIfWWVJ9PRHZ83awUvWkalhrYUmkQAxEDLYV+QLWLT4z/g3BFx9V76B3 + i/8kfF98kq3Da5dEgOVGahduGb3gBpgDQRn6QvJstU2yMsk3i9WmWuXVulz8++UjWg5avEeNj7D0 + gLD+bVx1WlnpYHI6nPReRwr/sBfvVcPwmZNKowwHqgetwVHoD9KovkOLSeEAxgeCcjX4Uwxzi85Z + hB0Fl7cZCODKHCPYqngZw7Yqb8M2Dxfx19XQRhmNMhplD2KozJ718gfzZ9Rfv7s985GYo/09l92h + 3cnCbeffpmnzvjRd1GZBjTmYQiUh0s1HqbiN0j9TPO+9vpFcSOCO2pseh46cESImtFNiaCHCxoTF + 3cSNaX9lE70XMu7kYQz5NzjGwx7+n7GArJ6y4Cl6qIe6lfYVxCVpWKedtBH9RCLGFRBPnRmQbSCk + eyxBKjijjo+FEfANoVGdckCVoQY6dYBHaufzg7w8CC6m3fhMvDqnbZWmweapAaEM06B0C0/IxlQP + rR6/BELSoJX+UColHgYrSKIbmrnXR1RM/5K1YeaY8sE61aVB4bPBXHKX/kqBsc+RXoXFktTYlqAX + WBzou2zk2OR2GdvUTZ5sn7c8WSNdk53gTVLwGtabkrHtejejUyTcmL0/oKcevfZJj7XKdahaUha7 + bLfbluvNs+fNTV+NRti2jz2numXIr6+Xtj3vCVHD16GvX/TdHHBGRG56GXk5R1KGXfSDFJsty0W9 + TYpn0SRrwXlSb/I6KfNduS5KJnKR+1xbMNEzJjoZAB0zb1V9VmXZVPXiTaVVEZXwLt+t8VdhuQpy + GUL+aOAcrB1DuDd+WWGFna8pCg05lJPCygCgyJneMwFbtFBIAUM7pFSDEX10RrFgbgSO7cPW6I5U + RY7ehVXmx22Yc+Np3NC9UYPGmRjGLnNYGtX6ru8E40bGhYAaf+fZoN9xBFufjQXGdsCpEnpXrDaP + jt7E/nW6bVBNmLL0MpXRfN6JYi+/zp0a/wyQ3zb27Tsae1Flz0Ht/IKfDz8B7kbhYqMIAAA= + headers: + apipie-checksum: [83fd72067f1c96eb1196b17193cc48d0] + cache-control: ['max-age=0, private, must-revalidate'] + connection: [Keep-Alive] + content-encoding: [gzip] + content-length: ['908'] + content-security-policy: ['default-src ''self''; child-src ''self''; connect-src + ''self'' ws: wss:; img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' + ''unsafe-inline'' ''self''; style-src ''unsafe-inline'' ''self'''] + content-type: [application/json; charset=utf-8] + date: ['Wed, 25 Jul 2018 15:13:12 GMT'] + etag: [W/"cdee0e4853935596112c498e53aa62e9-gzip"] + foreman_api_version: ['2'] + foreman_version: [1.17.1] + keep-alive: ['timeout=5, max=10000'] + server: [Apache/2.4.6 (CentOS)] + set-cookie: [_session_id=5cba2d36a1109a84399c31c335acbd8a; path=/; secure; HttpOnly] + status: [200 OK] + strict-transport-security: [max-age=631139040; includeSubdomains] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-download-options: [noopen] + x-frame-options: [sameorigin] + x-permitted-cross-domain-policies: [none] + x-powered-by: [Phusion Passenger 4.0.53] + x-request-id: [57fbec1a-7198-4883-a570-3fc5370e3fca] + x-runtime: ['0.121568'] + x-xss-protection: [1; mode=block] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: ['*/*'] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + User-Agent: [python-requests/2.18.4] + content-type: [application/json] + method: GET + uri: https://centos7-katello-3-6.sean.example.com/katello/api/v2/content_view_filters/21 + response: + body: + string: !!binary | + H4sIAAAAAAAAA6VWwW7bOBC99ysEnq1YluzY1rXAnhZosejuJTAIihw5RCSRICl3XcP/3iFFK7Lr + tAFyscWZIWf0+N6MkuREZMeb3krVkbJmjYUZUUbuZccaqhl/YXuwo0cKUuaLGelYC6Qk38C65OsQ + lHxWnYPOJf9J+J78JRsHhsyIAMuN1C6c3/VNMyPcAHMgKHN4RJ4tNmm2TvNVsliVi7xcrpN/v33G + nb0W7wnjQ1p6wLSkPOG61cpKB2PRwdL5GCnwVZ52vqqa9Y0bQ2plOFDdaw2OQneQRnUt7hgDDmA8 + RJSr3luzGWmwOItpB8fl3QyE5MocY7JFsRtgW6yvYZvCRfxxFTTRR6OPRt8dDJXZs07+YN5G/fHb + a5tHYprty9R3k+3GF047//GaVu+7pkvYBNR4ByNU0hPs6TSgVFyj9M+I523VV54LCdxR+63HvkWj + Nkr03HkoIkJXtI3e8+vucLnWxyvrDACtDOv4c7huofgLGNoiUjVun9oc24el0S0pixwTD4q4WtC9 + Ub1G9SAUxjCHFZZL9A6Ua7GWBjdk5/PuxhjRijyLq5HS4/pVBPTWybiTh4EpL3CMxg7+n5CXLB6y + ADACq/uqkfYZxIVrGkwrbcx+IjHHa0K0OtOjSEBId9+DDHZGHe87Y8I3nEa1ygFVhhpo1QHuhZ3P + d+h0lxO98QR6dk7bcj4Pex5qEMowDUo38IAimuu+0cOPwJQ0RM1/KDUnPg0KX2IZmrnnewqa/y2R + NuY45711qp2HgEi2+a/MZcYTjHQqPMxIhXSBTqCmsXZZS2yiJWHbjK2qOk83jxueLlFl6VbwOi14 + BcvVmrHNcjtRQdTJcHsfUNWvAuI6NBuyLrbZdrtZL1ePnjf3dDUj9thxqhuG/HoaQq5bWYzw7cO3 + HazdHFhDIje9j+zOkZRhFesgxWrDclFt0uJR1OlScJ5Wq7xK1/l2vSzWTOQi93dtwcTKmGhlSOiY + eatZZWWWjc1KvBm0KGIQnuWHDP4rlKsI3LBhqBDbcw7WDhDujX8sUWEfbzUXG0XB/L4H2fCUfagZ + 4VyU8UFA5bvT5Dbod2X8hCNFgtj2OAyJ711RbT47VhP71+m6QdXh44BePiZw+7QTxRH0Oi4rYP5L + 4g/zaPOOeVSU2WMIO+/On34CLVJQPfwIAAA= + headers: + apipie-checksum: [83fd72067f1c96eb1196b17193cc48d0] + cache-control: ['max-age=0, private, must-revalidate'] + connection: [Keep-Alive] + content-encoding: [gzip] + content-length: ['881'] + content-security-policy: ['default-src ''self''; child-src ''self''; connect-src + ''self'' ws: wss:; img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' + ''unsafe-inline'' ''self''; style-src ''unsafe-inline'' ''self'''] + content-type: [application/json; charset=utf-8] + date: ['Wed, 25 Jul 2018 15:13:12 GMT'] + etag: [W/"bb25167020b780665246db50591b9ff6-gzip"] + foreman_api_version: ['2'] + foreman_version: [1.17.1] + keep-alive: ['timeout=5, max=10000'] + server: [Apache/2.4.6 (CentOS)] + set-cookie: [_session_id=16b1b484e60578cf61074ddea9facc81; path=/; secure; HttpOnly] + status: [200 OK] + strict-transport-security: [max-age=631139040; includeSubdomains] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-download-options: [noopen] + x-frame-options: [sameorigin] + x-permitted-cross-domain-policies: [none] + x-powered-by: [Phusion Passenger 4.0.53] + x-request-id: [b843f2f6-bfc4-45cc-b8a0-c5031e685e98] + x-runtime: ['0.134348'] + x-xss-protection: [1; mode=block] + status: {code: 200, message: OK} +- request: + body: !!python/unicode '{"inclusion": true}' + headers: + Accept: ['*/*'] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Length: ['19'] + User-Agent: [python-requests/2.18.4] + content-type: [application/json] + method: PUT + uri: https://centos7-katello-3-6.sean.example.com/katello/api/v2/content_view_filters/21 + response: + body: + string: !!binary | + H4sIAAAAAAAAA6VWQY/bKhC+91dEnOO1YyfrxNdKPVV6T09tL6sIYRhn0doGAU5fGuW/d8Ak66TZ + ttJeEpgZmPHH9w3MZkcie94OVqqeVM4MMCfKyJ3sWUs14y9sB5ZUDWsteqQgVb6Yk551QCryBayb + /TsGzT6q3kHvZt8kfJ99kq0DQ+ZEgOVGahe274e2nRNugDkQlDncIs8W6yQrk3w1W6yqRV4ty9nX + Lx9x5aDFm2EFRsYwPqale0xLqiPOO62sdHApOlh6HyMFfsrT1lfVsKF1l5BGGQ5UD1qDo9DvpVF9 + hysuAXswHiHK1eCt2Zy0WJzFtKPj/G0GQnJlDjHZotiOsC3Ka9imcBG/XQ1t9NHoo9F3B0NldqyX + P5i3Ub/95trmkZhm+2fqu8l24wu7nf54TKu/OKZJ2ATUeAYXqKQn2NNxRKm4Rum/C563VV95ziRw + B+2XHoYOjdooMXDnoYgIXdE2ek+vq8PhWh+vrDMAtDas58/huIXiL2Boh0g1uHxqc2wXpkZ3pCpy + TDwq4mpCd0YNGtWDUBjDHFZYLdE7Uq7DWlpckJ1O2xtjRCvyLM4ulL7MX0VAb52MO7kfmfICh2js + 4f8JecniIQsAI7B6qFtpn0GcuabBdNLG7EcSc7wmtOe+AUK6+x5ksDPqcN8ZE77hNKpTDqgy1ECn + 9nAv7HS6Q6e7nBiMJ9Czc9pWaRrWPDQglGEalG7hAUWU6qHV44/AlDREpT+USolPg8KXWIZm7vme + gtLPEmljDikfrFNdGgIi2dJfmcuMJxjpVRjMSY10gV6gprF22UhsohVhm4yt6iZP1o9rnixRZclG + 8CYpeA3LVcnYermZqCDqZDy9d6jqVwFxHZoNKYtNttmsy+Xq0fPmnq7mxB56TnXLkF9PY8h1K4sR + vn34toO1mz1rSeSm95HtKZIyzGIdpFitWS7qdVI8iiZZCs6TepXXSZlvymVRMpGL3J+1BRMrY6KT + IaFj5q1mlVVZdmlW4s2gRRGDcC9/yeC/QrmKwA0bLhViB87B2hHCnfHDChX2/lZztlEUzO97kA2j + 7F3NCO9FGQcCat+dJqdBvyvjbzhSzBDbAS9D4ntXVJvPjtXE/nW8blBNeBzQ82MCl087UbyCXq/L + Gph/SfzhPlr/1bMhewxhp+3pw08aA50x+wgAAA== + headers: + apipie-checksum: [83fd72067f1c96eb1196b17193cc48d0] + cache-control: ['max-age=0, private, must-revalidate'] + connection: [Keep-Alive] + content-encoding: [gzip] + content-length: ['883'] + content-security-policy: ['default-src ''self''; child-src ''self''; connect-src + ''self'' ws: wss:; img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' + ''unsafe-inline'' ''self''; style-src ''unsafe-inline'' ''self'''] + content-type: [application/json; charset=utf-8] + date: ['Wed, 25 Jul 2018 15:13:12 GMT'] + etag: [W/"6e8bd7e076f591ee1fa9208095b62e57-gzip"] + foreman_api_version: ['2'] + foreman_version: [1.17.1] + keep-alive: ['timeout=5, max=10000'] + server: [Apache/2.4.6 (CentOS)] + set-cookie: [request_method=PUT; path=/, _session_id=f0cf3c51633a1ec0c9497c0e42e181b5; + path=/; secure; HttpOnly] + status: [200 OK] + strict-transport-security: [max-age=631139040; includeSubdomains] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-download-options: [noopen] + x-frame-options: [sameorigin] + x-permitted-cross-domain-policies: [none] + x-powered-by: [Phusion Passenger 4.0.53] + x-request-id: [47d3b604-d86e-4038-b672-2c107821be4b] + x-runtime: ['0.135077'] + x-xss-protection: [1; mode=block] + status: {code: 200, message: OK} +- request: + body: !!python/unicode '{"content_view_id": 17, "name": "Test Package Content + View Filter"}' + headers: + Accept: ['*/*'] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Length: ['67'] + User-Agent: [python-requests/2.18.4] + content-type: [application/json] + method: GET + uri: https://centos7-katello-3-6.sean.example.com/katello/api/v2/content_view_filters + response: + body: + string: !!binary | + H4sIAAAAAAAAA6VWUY/aMAx+369AeabX0sIV+nrSniZtmra9TKcoTVwuuraJkpSNIf77nDRAYZw2 + aUKCJLbzOfZnmwNxyrGWVIs5sUN92Wi2hXEBho6bPJsTMEYZUvVD26IBMMNfzjtlHKkOpN6TivSs + AzInyghAdcIsJ8c5MWCH1llSfT8Q2fN2sFL1pHJmgDmRAiEQMJhW5AtYN/vE+Ctiz55U76B3s28S + fszey9bhrXMiwHIjtQuXjE5wA8yBoAxdIXm2WCdZmeSr2WJVLfJqWc6+fnlCy0GLN9UK1IxqfISl + O4T1T+Oq08pKh/41rLUwH096ryOFf9ez96ph+MqzSqMMB6oHrcFR6HfSqL5Di7PCDoyPA+Vq8KcY + 5Radswg7Ck5vMxDAldlHsEXxPIZtUV6HbRou4q+roY0yGmU0yu7EUJkt6+Uv5s+ov35zfeYjMUX7 + OJXdoN3Iwm3Hv6Zp9Q9pmqhNghpzcA6VhMg2H6XiOkqfz/G89fpKciKB22tvuh86ckSImNBOiaGF + CBsTFndnbpz3FzbRWyHjTu7GkL/CPh728HPCArJ4yIKn6KEe6lbaFxCnpGGZdtJG9AOJGBdAeyoz + ENLdlyAVnFH7+8II+IbQqE45oMpQA53awT214/FOXu4EF9NufCZenNO2StNg89CAUIZpULqFB2Rj + qodWj18CIWnQSn8plRIPgxUk0Q3N3Ms9KqYfZG2Y2ad8sE51aVD4ZDCX3KV/UmBsc6RXYTEnNbYl + 6AUWB/ouGzn2uE3GVnWTJ+vHNU+WSNdkI3iTFLyG5apkbL3cTOgUCTdm7z/oqUevfdJjrXIdqpaU + xSbbbNblcvXoeXPVV6MRdu19z6luGfLr+6lrT3tC1PB16OsXfTc7HBGRm15Gno+RlGEX/SDFas1y + Ua+T4lE0yVJwntSrvE7KfFMui5KJXOQ+1xZM9IyJTgZAx8xbVZ9VWXauevGm0qKISniX79b4q7Bc + BTnNIH80cA7WjiHcGr+ssMKOlxSFhhzKSWFlAFDkTO+ZgC1aKKSAoR1SqsGI3jujWDBXAse2YWt0 + R6oiR+/CKvPTNsy58TRu6NaoQeNMDFOXOSyNannTd4JxI+NCQI2/02zQHziBrc/GDGM74FQJvStW + m0dHb2L/Olw3qCZMWXqaymg+7USxl1/mTo3/BchfG/v6n+Zv9hjUjs/4efcbI0frcKIIAAA= + headers: + apipie-checksum: [83fd72067f1c96eb1196b17193cc48d0] + cache-control: ['max-age=0, private, must-revalidate'] + connection: [Keep-Alive] + content-encoding: [gzip] + content-length: ['908'] + content-security-policy: ['default-src ''self''; child-src ''self''; connect-src + ''self'' ws: wss:; img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' + ''unsafe-inline'' ''self''; style-src ''unsafe-inline'' ''self'''] + content-type: [application/json; charset=utf-8] + date: ['Wed, 25 Jul 2018 15:13:12 GMT'] + etag: [W/"f6617d7c1689c2762272112fa0bccd59-gzip"] + foreman_api_version: ['2'] + foreman_version: [1.17.1] + keep-alive: ['timeout=5, max=10000'] + server: [Apache/2.4.6 (CentOS)] + set-cookie: [_session_id=af512537903e2ade70da2dbfe8ad447c; path=/; secure; HttpOnly] + status: [200 OK] + strict-transport-security: [max-age=631139040; includeSubdomains] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-download-options: [noopen] + x-frame-options: [sameorigin] + x-permitted-cross-domain-policies: [none] + x-powered-by: [Phusion Passenger 4.0.53] + x-request-id: [3f32a1b4-b227-47e0-a767-ac0c3f904056] + x-runtime: ['0.123813'] + x-xss-protection: [1; mode=block] + status: {code: 200, message: OK} +- request: + body: !!python/unicode '{"content_view_filter_id": 21, "name": "bear"}' + headers: + Accept: ['*/*'] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Length: ['46'] + User-Agent: [python-requests/2.18.4] + content-type: [application/json] + method: GET + uri: https://centos7-katello-3-6.sean.example.com/katello/api/v2/content_view_filters/21/rules + response: + body: + string: !!binary | + H4sIAAAAAAAAA3WOQWoDMQxF9z1F+GsHxk7SBG17hXZVivHMqK3BsYPsSSjD3D1KAu2qO3/rfT3N + aKWFBLIGder/wil88ePB4h/BdQYsUgSUp5S0wEGG799UpIFm9D8gxBEGRUZWGKEOWAyE65RaBb3P + GEpunJs/R774z5iaWrRDTo3HmP2ZpcaStWx10W2yN8jhqGegV61+DsKh8eiDWuE6e1h3+7XbreyO + rKPtYfX2+qLYdBr/xTbUPd+x5WN5ugLjN16LCwEAAA== + headers: + apipie-checksum: [83fd72067f1c96eb1196b17193cc48d0] + cache-control: ['max-age=0, private, must-revalidate'] + connection: [Keep-Alive] + content-encoding: [gzip] + content-length: ['202'] + content-security-policy: ['default-src ''self''; child-src ''self''; connect-src + ''self'' ws: wss:; img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' + ''unsafe-inline'' ''self''; style-src ''unsafe-inline'' ''self'''] + content-type: [application/json; charset=utf-8] + date: ['Wed, 25 Jul 2018 15:13:12 GMT'] + etag: [W/"76bb4f49a13394689829bd59ea43b945-gzip"] + foreman_api_version: ['2'] + foreman_version: [1.17.1] + keep-alive: ['timeout=5, max=10000'] + server: [Apache/2.4.6 (CentOS)] + set-cookie: [_session_id=b847239bae5d54bbd07b4fd3e70f5847; path=/; secure; HttpOnly] + status: [200 OK] + strict-transport-security: [max-age=631139040; includeSubdomains] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-download-options: [noopen] + x-frame-options: [sameorigin] + x-permitted-cross-domain-policies: [none] + x-powered-by: [Phusion Passenger 4.0.53] + x-request-id: [deb695a8-5196-4631-b281-ddbda5f15ce0] + x-runtime: ['0.053208'] + x-xss-protection: [1; mode=block] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: ['*/*'] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + User-Agent: [python-requests/2.18.4] + content-type: [application/json] + method: GET + uri: https://centos7-katello-3-6.sean.example.com/katello/api/v2/content_view_filters/21/rules/7 + response: + body: + string: !!binary | + H4sIAAAAAAAAA3XKMQ7CMAxA0Z1TRJ5TKQ6UVlm5AsxWaIxkiboomDIg7k5gZ33/O/eCaVFjNVqF + n3SRq3ElKZAiephFaeV6l0UhAYKHbxk8aJ65yZlzbThVzsaFsjWLAccuDF3sHfYJY9qN7nQ8tO1x + K3+3bQr73/befADMIRZHlQAAAA== + headers: + apipie-checksum: [83fd72067f1c96eb1196b17193cc48d0] + cache-control: ['max-age=0, private, must-revalidate'] + connection: [Keep-Alive] + content-encoding: [gzip] + content-length: ['133'] + content-security-policy: ['default-src ''self''; child-src ''self''; connect-src + ''self'' ws: wss:; img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' + ''unsafe-inline'' ''self''; style-src ''unsafe-inline'' ''self'''] + content-type: [application/json; charset=utf-8] + date: ['Wed, 25 Jul 2018 15:13:12 GMT'] + etag: [W/"4013e2507cc2b27c5532193bd9449b06-gzip"] + foreman_api_version: ['2'] + foreman_version: [1.17.1] + keep-alive: ['timeout=5, max=10000'] + server: [Apache/2.4.6 (CentOS)] + set-cookie: [_session_id=b0b16fc0dc21b291dee26512cdeb6672; path=/; secure; HttpOnly] + status: [200 OK] + strict-transport-security: [max-age=631139040; includeSubdomains] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-download-options: [noopen] + x-frame-options: [sameorigin] + x-permitted-cross-domain-policies: [none] + x-powered-by: [Phusion Passenger 4.0.53] + x-request-id: [f1a40a15-04af-40d4-9e87-3d14d3ae3a4d] + x-runtime: ['0.055594'] + x-xss-protection: [1; mode=block] + status: {code: 200, message: OK} +- request: + body: !!python/unicode '{"min_version": null}' + headers: + Accept: ['*/*'] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Length: ['21'] + User-Agent: [python-requests/2.18.4] + content-type: [application/json] + method: PUT + uri: https://centos7-katello-3-6.sean.example.com/katello/api/v2/content_view_filters/21/rules/7 + response: + body: + string: !!binary | + H4sIAAAAAAAAA1NQqFZKzs8rSc0riS/LTC2PT8vMKUktis9MUbIyMtRRAtHmOkp5ibmpSlZKSamJ + RUo6SslFqYklqSnxiSVAMSMDQwtdA3NdI1MFQ1MrQyMrEwuF0BBnoLLSghScyoyBKsHKarkAkq9a + t4MAAAA= + headers: + apipie-checksum: [83fd72067f1c96eb1196b17193cc48d0] + cache-control: ['max-age=0, private, must-revalidate'] + connection: [Keep-Alive] + content-encoding: [gzip] + content-length: ['119'] + content-security-policy: ['default-src ''self''; child-src ''self''; connect-src + ''self'' ws: wss:; img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' + ''unsafe-inline'' ''self''; style-src ''unsafe-inline'' ''self'''] + content-type: [application/json; charset=utf-8] + date: ['Wed, 25 Jul 2018 15:13:12 GMT'] + etag: [W/"7d6507de39c8ffbcc2820eed065c509a-gzip"] + foreman_api_version: ['2'] + foreman_version: [1.17.1] + keep-alive: ['timeout=5, max=10000'] + server: [Apache/2.4.6 (CentOS)] + set-cookie: [request_method=PUT; path=/, _session_id=1f38c0ec1ad6ec6424696880f47bb727; + path=/; secure; HttpOnly] + status: [200 OK] + strict-transport-security: [max-age=631139040; includeSubdomains] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-download-options: [noopen] + x-frame-options: [sameorigin] + x-permitted-cross-domain-policies: [none] + x-powered-by: [Phusion Passenger 4.0.53] + x-request-id: [18735a15-ca4b-42b4-9685-2c7f0657d9af] + x-runtime: ['0.061962'] + x-xss-protection: [1; mode=block] + status: {code: 200, message: OK} +version: 1 diff --git a/test/test_playbooks/fixtures/content_view_filter-19.yml b/test/test_playbooks/fixtures/content_view_filter-19.yml new file mode 100644 index 0000000000..09a986afbe --- /dev/null +++ b/test/test_playbooks/fixtures/content_view_filter-19.yml @@ -0,0 +1,409 @@ +interactions: +- request: + body: !!python/unicode '{}' + headers: + Accept: ['*/*'] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Length: ['2'] + User-Agent: [python-requests/2.18.4] + content-type: [application/json] + method: GET + uri: https://centos7-katello-3-6.sean.example.com/katello/api/v2/ping + response: + body: + string: !!binary | + H4sIAAAAAAAAA43NOwqAMBAE0N5TyNYWfsDfZcKiEYOahOzGRnJ3jZ1VrJYZ3rB5fgExsicYwWxQ + AEl3qkk++QLrdxvvV8zeISujxRGrpoNQvFKg5zXFqyHyCfW8S6t0klcf/u9FHTeLcfJALRhpo9Sk + 7UsIIWQ3tUU7Jw8BAAA= + headers: + apipie-checksum: [83fd72067f1c96eb1196b17193cc48d0] + cache-control: ['max-age=0, private, must-revalidate'] + connection: [Keep-Alive] + content-encoding: [gzip] + content-length: ['128'] + content-security-policy: ['default-src ''self''; child-src ''self''; connect-src + ''self'' ws: wss:; img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' + ''unsafe-inline'' ''self''; style-src ''unsafe-inline'' ''self'''] + content-type: [application/json; charset=utf-8] + date: ['Wed, 25 Jul 2018 15:13:14 GMT'] + etag: [W/"f1a02d61230d0c6f0bd054fa5e80d0d2-gzip"] + foreman_api_version: ['2'] + foreman_version: [1.17.1] + keep-alive: ['timeout=5, max=10000'] + server: [Apache/2.4.6 (CentOS)] + set-cookie: [_session_id=ffff534535853defa6eaa9db6a18d9b9; path=/; secure; HttpOnly] + status: [200 OK] + strict-transport-security: [max-age=631139040; includeSubdomains] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-download-options: [noopen] + x-frame-options: [sameorigin] + x-permitted-cross-domain-policies: [none] + x-powered-by: [Phusion Passenger 4.0.53] + x-request-id: [e0652d08-7354-4175-88e0-f8406d0f5115] + x-runtime: ['0.803411'] + x-xss-protection: [1; mode=block] + status: {code: 200, message: OK} +- request: + body: !!python/unicode '{"search": "name=\"Test Organization\""}' + headers: + Accept: ['*/*'] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Length: ['40'] + User-Agent: [python-requests/2.18.4] + content-type: [application/json] + method: GET + uri: https://centos7-katello-3-6.sean.example.com/katello/api/v2/organizations + response: + body: + string: !!binary | + H4sIAAAAAAAAA42PwWrDMAyG73kKo3MKcdjYathpD7BLd2pHUGLRGdwkyMqhC3n3qU7GxmCwm77P + v/mluTAGZBCM4Exd3ihN7ZewWYx4pm8gbjZRV2uekLt3ZejxQk8nOFAS88Jn7MMHShj6E8CaHFg0 + N+us1F517qcYy5UH9sSbUrPkL0xpipJUH2eI2JKulQuanwVQQseEQr5BbYC6so+76mFX3Rt752rr + 7N68Hp41No3+P7Hgwe3LfNDWZ371SZD415un1HEYM7nbOctbsRSfKnwYS2sBAAA= + headers: + apipie-checksum: [83fd72067f1c96eb1196b17193cc48d0] + cache-control: ['max-age=0, private, must-revalidate'] + connection: [Keep-Alive] + content-encoding: [gzip] + content-length: ['218'] + content-security-policy: ['default-src ''self''; child-src ''self''; connect-src + ''self'' ws: wss:; img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' + ''unsafe-inline'' ''self''; style-src ''unsafe-inline'' ''self'''] + content-type: [application/json; charset=utf-8] + date: ['Wed, 25 Jul 2018 15:13:15 GMT'] + etag: [W/"33eb541f7daf03e7d506a757939a7889-gzip"] + foreman_api_version: ['2'] + foreman_version: [1.17.1] + keep-alive: ['timeout=5, max=10000'] + server: [Apache/2.4.6 (CentOS)] + set-cookie: [_session_id=9f4048e8ff927c847120e63e177f6c1f; path=/; secure; HttpOnly] + status: [200 OK] + strict-transport-security: [max-age=631139040; includeSubdomains] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-download-options: [noopen] + x-frame-options: [sameorigin] + x-permitted-cross-domain-policies: [none] + x-powered-by: [Phusion Passenger 4.0.53] + x-request-id: [cb4434dd-4ef0-44a8-a5e9-3d06b8899bdc] + x-runtime: ['0.056044'] + x-xss-protection: [1; mode=block] + status: {code: 200, message: OK} +- request: + body: !!python/unicode '{"organization_id": 9, "name": "Test Content View"}' + headers: + Accept: ['*/*'] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Length: ['51'] + User-Agent: [python-requests/2.18.4] + content-type: [application/json] + method: GET + uri: https://centos7-katello-3-6.sean.example.com/katello/api/v2/content_views + response: + body: + string: !!binary | + H4sIAAAAAAAAA41SwW7bMAy97ysCnt0hTht087UfMGBoeykKQbGYVpgtCpTkzQ3876Vj1XWCFNhN + 5Hvkox55gEhRN1CVBYS0+wy8fsHpgaymYLMuAJmJoXKpaaQANdevc0QcoTrArocKnG4RCiA2KHTQ + oYahAMaQmhigejpATa2nYKM03usmYDFlHLqorBk5zwUY3GupmCl74hqVT95jVOg6y+RaqZgJHXKw + 5FRNaczKxI2OGKLKwMewjEdx4j6LldciZ418+baYpq/gXgpXd+SiKKweLf6Fsd0Om4ypjKmMGQw1 + Wx8XOsQv2tk3PebU2P7naW40bKn2a4mdqZ1hx25ias0oXzRKy39hsy5/XK1vrzbbVbmtyk11s109 + 3N8JPXnzP7SFqXkHs1UWp80dXbo+den37Of51CdInQ2LvR9L+9TCIBJ5oS2Z1GCWzQvL0Xwbczw1 + 6sR5dQ7qOtpusvwP9jnp8N/iCqD8vj5OKhP6tGtseEXzsTQ5+daGrH6ArPEpKNnISa4NjY2XETmF + yNRfBrPgFyBTSxEVsWJsqcNLtGF4Hr69A9j2DxC8AwAA + headers: + apipie-checksum: [83fd72067f1c96eb1196b17193cc48d0] + cache-control: ['max-age=0, private, must-revalidate'] + connection: [Keep-Alive] + content-encoding: [gzip] + content-length: ['432'] + content-security-policy: ['default-src ''self''; child-src ''self''; connect-src + ''self'' ws: wss:; img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' + ''unsafe-inline'' ''self''; style-src ''unsafe-inline'' ''self'''] + content-type: [application/json; charset=utf-8] + date: ['Wed, 25 Jul 2018 15:13:15 GMT'] + etag: [W/"e5377be671b535aa8045efc383418dc4-gzip"] + foreman_api_version: ['2'] + foreman_version: [1.17.1] + keep-alive: ['timeout=5, max=10000'] + server: [Apache/2.4.6 (CentOS)] + set-cookie: [_session_id=5259695451b98601c8bd010f9085dc92; path=/; secure; HttpOnly] + status: [200 OK] + strict-transport-security: [max-age=631139040; includeSubdomains] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-download-options: [noopen] + x-frame-options: [sameorigin] + x-permitted-cross-domain-policies: [none] + x-powered-by: [Phusion Passenger 4.0.53] + x-request-id: [f55194bd-573b-4b94-8ea2-83fbe28f1c2d] + x-runtime: ['0.085513'] + x-xss-protection: [1; mode=block] + status: {code: 200, message: OK} +- request: + body: !!python/unicode '{"organization_id": 9, "name": "Test Product"}' + headers: + Accept: ['*/*'] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Length: ['46'] + User-Agent: [python-requests/2.18.4] + content-type: [application/json] + method: GET + uri: https://centos7-katello-3-6.sean.example.com/katello/api/v2/products + response: + body: + string: !!binary | + H4sIAAAAAAAAA2VQy07DMBC88xXWnlOUpIQ2vqF+AEiUE0KW66xSC8e2/ACFqv+OnZY2Krfd2dnd + mTlAMIEroFUBPu6ujeU9ngp07NTUZQHonHFAdVQqLSB3Yn/pjAtAD7AbgYLmA0IBxnWY6MC9gGMB + Dn1UwQN9P4DsgLYFCMtyBatlW7btevXQPJZpcdqnsEUfyIszXRQhoYrvUJ1hdoU79MJJG6TRafhE + 9tzakSgZgkIS8gl74abqSyZR09eqSbJHLZhVXE/I2UrGfBwG7sZsyUch0CfddTLR25594viPHnjI + kl9TI3VPNmawCgPeT7qT3sxK87qs1otytagbUjW0KmnVkrftZs5i3ym39A2WZJA6JgdTlD3X8odn + l+wc3hzLOuepPc9nN9HdzKZrx1kUf8YcWuNlMG5kwkQdcgAfx7tfwzLIbjUCAAA= + headers: + apipie-checksum: [83fd72067f1c96eb1196b17193cc48d0] + cache-control: ['max-age=0, private, must-revalidate'] + connection: [Keep-Alive] + content-encoding: [gzip] + content-length: ['332'] + content-security-policy: ['default-src ''self''; child-src ''self''; connect-src + ''self'' ws: wss:; img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' + ''unsafe-inline'' ''self''; style-src ''unsafe-inline'' ''self'''] + content-type: [application/json; charset=utf-8] + date: ['Wed, 25 Jul 2018 15:13:15 GMT'] + etag: [W/"e094e3b621673748cc58c93af2f043f8-gzip"] + foreman_api_version: ['2'] + foreman_version: [1.17.1] + keep-alive: ['timeout=5, max=10000'] + server: [Apache/2.4.6 (CentOS)] + set-cookie: [_session_id=0414680825cf78d3883cc0f4b40c1a4e; path=/; secure; HttpOnly] + status: [200 OK] + strict-transport-security: [max-age=631139040; includeSubdomains] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-download-options: [noopen] + x-frame-options: [sameorigin] + x-permitted-cross-domain-policies: [none] + x-powered-by: [Phusion Passenger 4.0.53] + x-request-id: [d0d10f69-3042-4e0d-8da2-a541eda20255] + x-runtime: ['0.121093'] + x-xss-protection: [1; mode=block] + status: {code: 200, message: OK} +- request: + body: !!python/unicode '{"product_id": 9, "name": "Test Repository"}' + headers: + Accept: ['*/*'] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Length: ['44'] + User-Agent: [python-requests/2.18.4] + content-type: [application/json] + method: GET + uri: https://centos7-katello-3-6.sean.example.com/katello/api/v2/repositories + response: + body: + string: !!binary | + H4sIAAAAAAAAA3VTyY7bMAy99ysCnuPY8TJerr0WaFFMT8VAkCU6I4xtCVqmzQT591K202nQ9mKT + IkU9vkdewGvPR+iOe3Chf3cMP+FqoGWrk2d7QGu1hW4O40gXkFvx/NvT1kN3gf4MHcx8QtiDthIp + HbgTcN2DRRdG76D7fgGhZ4+zZ/5sqDacw0T5wdLr8Oy9cV2aWjTaHQaU2nKD2ox40PaUmjCa9SNx + 0mzJSt+0TiG+MHKvXpEge0IGj+g8+2xPfFZvFNBz+kn1lttzKoLzekqXhC9WyyD86nyN9ZTX9kz1 + 1gZh1ouxh56LF5wlU5Kwq0Gt3bUZr/ohT5qHRiRlnh2TVoohKUSPZVVz3pQt3b11PPIexxtrShLL + xX4lbMW7u0OwZcPf2MyKOnIeq7T0gmHRgrpos7Zt6rJ6yOC+9tYqnbrzLJgZ+Uxy3PSS6IRVJhJ1 + y5Dcx4gi7PaVhoPK4U/PYgyerhGf27wNBxRVw3PZN0nxIIeklEIkfZX3SZ23dVnUXOYyj1o7tBsy + Lie1POi59SgZp6aAaGySrE7yanesumPWZdnu2+NHSiMB/pt0LLYkquVjbVLZGJRwm754FIRA51YK + Tzaa3fGQXd8lEjrMcU4voJ23iIxmZo6TQCsgNY2AZRON1ECM/uuMjeo+4Plpca2ZoCtyQrdYWdwz + 8bJsVzzdHHayOhhauGXfuKfV6EqKBmrEs4kEHHG5PKjNkNjT/0812A/aPRfV2BG3waOD69P1wy/D + RJa48AMAAA== + headers: + apipie-checksum: [83fd72067f1c96eb1196b17193cc48d0] + cache-control: ['max-age=0, private, must-revalidate'] + connection: [Keep-Alive] + content-encoding: [gzip] + content-length: ['577'] + content-security-policy: ['default-src ''self''; child-src ''self''; connect-src + ''self'' ws: wss:; img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' + ''unsafe-inline'' ''self''; style-src ''unsafe-inline'' ''self'''] + content-type: [application/json; charset=utf-8] + date: ['Wed, 25 Jul 2018 15:13:15 GMT'] + etag: [W/"4800e2cb797f73e5a7b98036a1a0314c-gzip"] + foreman_api_version: ['2'] + foreman_version: [1.17.1] + keep-alive: ['timeout=5, max=10000'] + server: [Apache/2.4.6 (CentOS)] + set-cookie: [_session_id=4f9f1c4ed361730088d1c67080736904; path=/; secure; HttpOnly] + status: [200 OK] + strict-transport-security: [max-age=631139040; includeSubdomains] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-download-options: [noopen] + x-frame-options: [sameorigin] + x-permitted-cross-domain-policies: [none] + x-powered-by: [Phusion Passenger 4.0.53] + x-request-id: [59e84e12-2194-44e4-a852-aa1074a00e87] + x-runtime: ['0.126471'] + x-xss-protection: [1; mode=block] + status: {code: 200, message: OK} +- request: + body: !!python/unicode '{"content_view_id": 17, "name": "Test Package Content + View Filter"}' + headers: + Accept: ['*/*'] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Length: ['67'] + User-Agent: [python-requests/2.18.4] + content-type: [application/json] + method: GET + uri: https://centos7-katello-3-6.sean.example.com/katello/api/v2/content_view_filters + response: + body: + string: !!binary | + H4sIAAAAAAAAA6VVUY/aMAx+369AeabX0sIV+jppT5M2TdteplOUJi4XrW2iJGVjiP8+Jw1QGKfb + NCHRJLbzOfZn+0Cccqwl1WJO7FBfNpptYVyAoeMmz+YEjFGGVP3QtmgAzPDn804ZR6oDqfekIj3r + gMyJMgJQnTDLyXFODNihdZZU3w5E9rwdrFQ9qZwZYE6kQAgEDKYV+QzWzT4y/h2xZ29V76B3s68S + fszeydbhrXMiwHIjtQuXjE5wA8yBoAxdIXm2WCdZmeSr2WJVLfJqWc6+fH6LloMWL6oVqBnV+AhL + dwjrn8ZVp5WVDv1rWGthPp70XkcK/64n71XD8JVnlUYZDlQPWoOj0O+kUX2HFmeFHRgfB8rV4E8x + yi06ZxF2FJzeZiCAK7OPYIviaQzborwO2zRcxF9XQxtlNMpolN2JoTJb1stfzJ9Rf/3m+sxHYor2 + YSq7QbuRhduOr6Zp9RdpmqhNghpzcA6VhMg2H6XiOkqfzvG89fpKciKB22tvuh86ckSImNBOiaGF + CBsTFndnbpz3FzbRWyHjTu7GkH+HfTzs4eeEBWTxkAVP0UM91K20zyBOScMy7aSN6AcSMS6A9lRm + IKS7L0EqOKP294UR8AWhUZ1yQJWhBjq1g3tqx+OdvNwJLqbd+Ew8O6dtlabB5qEBoQzToHQLD8jG + VA+tHv8EQtKglf5SKiUeBitIohuaued7VEzfy9ows0/5YJ3q0qDw0WAuuUv/pMDY5kivwmJOamxL + 0AssDvRdNnLscZuMreomT9aPa54ska7JRvAmKXgNy1XJ2Hq5mdApEm7M3n/QU49e+6THWuU6VC0p + i0222azL5erR8+aqr0Yj7Nr7nlPdMuTXt1PXnvaEqOHr0Ncv+m52OCIiN72MPB0jKcMu+kGK1Zrl + ol4nxaNokqXgPKlXeZ2U+aZcFiUTuch9ri2Y6BkTnQyAjpmXqj6rsuxc9eJFpUURlfAu363xq7Bc + BTnNIH80cA7WjiHcGr+ssMKOlxSFhhzKSWFlAFDkTO+ZgC1aKKSAoR1SqsGI3jujWDBXAse2YWt0 + R6oiR+/CKvPTNsy58TRu6NaoQeNMDFOXOSyNannTd4JxI+NCQI3faTboD5zA1mdjhrEdcKqE3hWr + zaOjN7F/Ha4bVBOmLD1NZf+9TJkaJz95tY2v/2XaHp/w9+Y36xoltpAIAAA= + headers: + apipie-checksum: [83fd72067f1c96eb1196b17193cc48d0] + cache-control: ['max-age=0, private, must-revalidate'] + connection: [Keep-Alive] + content-encoding: [gzip] + content-length: ['899'] + content-security-policy: ['default-src ''self''; child-src ''self''; connect-src + ''self'' ws: wss:; img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' + ''unsafe-inline'' ''self''; style-src ''unsafe-inline'' ''self'''] + content-type: [application/json; charset=utf-8] + date: ['Wed, 25 Jul 2018 15:13:15 GMT'] + etag: [W/"7413942bb19d300f02f0a64479bec1f5-gzip"] + foreman_api_version: ['2'] + foreman_version: [1.17.1] + keep-alive: ['timeout=5, max=10000'] + server: [Apache/2.4.6 (CentOS)] + set-cookie: [_session_id=b0d9557428c3e6001de8137952a0156a; path=/; secure; HttpOnly] + status: [200 OK] + strict-transport-security: [max-age=631139040; includeSubdomains] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-download-options: [noopen] + x-frame-options: [sameorigin] + x-permitted-cross-domain-policies: [none] + x-powered-by: [Phusion Passenger 4.0.53] + x-request-id: [567927e1-eb8b-441c-8971-82e22a0dd370] + x-runtime: ['0.133163'] + x-xss-protection: [1; mode=block] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: ['*/*'] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Length: ['0'] + User-Agent: [python-requests/2.18.4] + content-type: [application/json] + method: DELETE + uri: https://centos7-katello-3-6.sean.example.com/katello/api/v2/content_view_filters/21 + response: + body: + string: !!binary | + H4sIAAAAAAAAA41UwW7bMAy97ysMndMhThpk87XArhuGbpciEBSZSYXIkkBJ2bLA/z7KVhw7TbEd + yUfyUY/PLoozU0bq6JU1rAoYYcYsqr0yQnMn5EHswbNqJ7QnRNWsWpQzZkQDrGLP4EPxrS8qnqwJ + YELxU8Gv4ovSAZDNWA1eonKhG2+i1jMmEUSAmotAIxbz8tPDfP2wWBXlqioX1eO6+PH8RJ3R1e+W + Lakyl8melh+JllVnihtnvQowLN1lTKpRNT3lZZO22omow1CysyiBu+gcBA7mqNCahjqGgiNgUohL + G1N2PmOalvNE2wOXtyF05BZPmaxcbnrZyvVUtrFcLI3bgs4YzxjP2B0NLe6FUX9EyvE0/vM0l5QY + s30dYzdsN1g3rf3nmVb/caZR2UjUfINBKpUM9nLuVVpOVfo+6Hm79QS5mCCcXGo9xYaSDm0dZUhS + ZIUmts1oe+3ujutTvfUBAfgWhZGv3blrKw+AvCGldtQ+zgWx70J0DauWCyLuv4hJwPdoo6Ovh6RA + FIE2rB4J7S3X0C6aGuZtu7lJZrWyz3I0WHqIrx8BvwWFDOrYO+UAp5w08HtkXlZ+nHcCk7AubrXy + r1BfvOYAG+Uz+5lljiuhv/w3oFbhPkIODmhP98FM+A6ItrEBuEWO0Ngj3Ctr2zd2oidmM6SzEHyR + sv3wFyav4IH0BAAA + headers: + apipie-checksum: [83fd72067f1c96eb1196b17193cc48d0] + cache-control: ['max-age=0, private, must-revalidate'] + connection: [Keep-Alive] + content-encoding: [gzip] + content-length: ['525'] + content-security-policy: ['default-src ''self''; child-src ''self''; connect-src + ''self'' ws: wss:; img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' + ''unsafe-inline'' ''self''; style-src ''unsafe-inline'' ''self'''] + content-type: [application/json; charset=utf-8] + date: ['Wed, 25 Jul 2018 15:13:15 GMT'] + etag: [W/"789a3593f539ed98333a68f38dbf0f68-gzip"] + foreman_api_version: ['2'] + foreman_version: [1.17.1] + keep-alive: ['timeout=5, max=10000'] + server: [Apache/2.4.6 (CentOS)] + set-cookie: [request_method=DELETE; path=/, _session_id=019b695a9ad1f74021804662d59623f8; + path=/; secure; HttpOnly] + status: [200 OK] + strict-transport-security: [max-age=631139040; includeSubdomains] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-download-options: [noopen] + x-frame-options: [sameorigin] + x-permitted-cross-domain-policies: [none] + x-powered-by: [Phusion Passenger 4.0.53] + x-request-id: [c5cfa604-b7e1-43ee-a28f-317848cd8a1b] + x-runtime: ['0.105657'] + x-xss-protection: [1; mode=block] + status: {code: 200, message: OK} +- request: + body: !!python/unicode '{"content_view_id": 17, "name": "Test Package Content + View Filter"}' + headers: + Accept: ['*/*'] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Length: ['67'] + User-Agent: [python-requests/2.18.4] + content-type: [application/json] + method: GET + uri: https://centos7-katello-3-6.sean.example.com/katello/api/v2/content_view_filters + response: + body: + string: !!binary | + H4sIAAAAAAAAA0XLsQqAMBAD0N3PyNxBHe9XRORaDx1qK9d2kOK/WxB0ywtJRY6ZPag3SMX+OHkT + 0NCC6PJibLWoRgWF4n07CKvbP0XNoAp7gRD4EBhEXaXNwcnhNlBJxecEmua7ewAzgtzWewAAAA== + headers: + apipie-checksum: [83fd72067f1c96eb1196b17193cc48d0] + cache-control: ['max-age=0, private, must-revalidate'] + connection: [Keep-Alive] + content-encoding: [gzip] + content-length: ['112'] + content-security-policy: ['default-src ''self''; child-src ''self''; connect-src + ''self'' ws: wss:; img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' + ''unsafe-inline'' ''self''; style-src ''unsafe-inline'' ''self'''] + content-type: [application/json; charset=utf-8] + date: ['Wed, 25 Jul 2018 15:13:15 GMT'] + etag: [W/"956e0fd5b832fbda8d01b01a5b7de844-gzip"] + foreman_api_version: ['2'] + foreman_version: [1.17.1] + keep-alive: ['timeout=5, max=10000'] + server: [Apache/2.4.6 (CentOS)] + set-cookie: [_session_id=13be75f83db4fc1a0e48ed80657e8663; path=/; secure; HttpOnly] + status: [200 OK] + strict-transport-security: [max-age=631139040; includeSubdomains] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-download-options: [noopen] + x-frame-options: [sameorigin] + x-permitted-cross-domain-policies: [none] + x-powered-by: [Phusion Passenger 4.0.53] + x-request-id: [01b63d81-ebb1-4cf5-a05a-a5d5824534b2] + x-runtime: ['0.053960'] + x-xss-protection: [1; mode=block] + status: {code: 200, message: OK} +version: 1 diff --git a/test/test_playbooks/fixtures/content_view_filter-21.yml b/test/test_playbooks/fixtures/content_view_filter-21.yml new file mode 100644 index 0000000000..e4fa136b74 --- /dev/null +++ b/test/test_playbooks/fixtures/content_view_filter-21.yml @@ -0,0 +1,443 @@ +interactions: +- request: + body: !!python/unicode '{}' + headers: + Accept: ['*/*'] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Length: ['2'] + User-Agent: [python-requests/2.18.4] + content-type: [application/json] + method: GET + uri: https://centos7-katello-3-6.sean.example.com/katello/api/v2/ping + response: + body: + string: !!binary | + H4sIAAAAAAAAA43NPQqAMAyA0d1TSGYH/xD0MiXYikVtS5O6SO+udXOqU0h4HynLC4iRA8EEdoMK + SPlTz+rZL3Bhd2l+hQweWVsjjnTqa4jVKwUGXnO8GROf0chdOW2yvPvwfy+G1CzWqwONYKSNckn7 + JDEWN9+fwJoOAQAA + headers: + apipie-checksum: [83fd72067f1c96eb1196b17193cc48d0] + cache-control: ['max-age=0, private, must-revalidate'] + connection: [Keep-Alive] + content-encoding: [gzip] + content-length: ['126'] + content-security-policy: ['default-src ''self''; child-src ''self''; connect-src + ''self'' ws: wss:; img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' + ''unsafe-inline'' ''self''; style-src ''unsafe-inline'' ''self'''] + content-type: [application/json; charset=utf-8] + date: ['Wed, 25 Jul 2018 15:13:17 GMT'] + etag: [W/"cc9dfd87ebc6d8976ffcb97d3dfef4b7-gzip"] + foreman_api_version: ['2'] + foreman_version: [1.17.1] + keep-alive: ['timeout=5, max=10000'] + server: [Apache/2.4.6 (CentOS)] + set-cookie: [_session_id=c45a251ce23b474a85991b31c0094f0a; path=/; secure; HttpOnly] + status: [200 OK] + strict-transport-security: [max-age=631139040; includeSubdomains] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-download-options: [noopen] + x-frame-options: [sameorigin] + x-permitted-cross-domain-policies: [none] + x-powered-by: [Phusion Passenger 4.0.53] + x-request-id: [609cb3f1-1bb7-4c73-97cd-ab4fba22e72c] + x-runtime: ['0.167210'] + x-xss-protection: [1; mode=block] + status: {code: 200, message: OK} +- request: + body: !!python/unicode '{"search": "name=\"Test Organization\""}' + headers: + Accept: ['*/*'] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Length: ['40'] + User-Agent: [python-requests/2.18.4] + content-type: [application/json] + method: GET + uri: https://centos7-katello-3-6.sean.example.com/katello/api/v2/organizations + response: + body: + string: !!binary | + H4sIAAAAAAAAA42PwWrDMAyG73kKo3MKcdjYathpD7BLd2pHUGLRGdwkyMqhC3n3qU7GxmCwm77P + v/mluTAGZBCM4Exd3ihN7ZewWYx4pm8gbjZRV2uekLt3ZejxQk8nOFAS88Jn7MMHShj6E8CaHFg0 + N+us1F517qcYy5UH9sSbUrPkL0xpipJUH2eI2JKulQuanwVQQseEQr5BbYC6so+76mFX3Rt752rr + 7N68Hp41No3+P7Hgwe3LfNDWZ371SZD415un1HEYM7nbOctbsRSfKnwYS2sBAAA= + headers: + apipie-checksum: [83fd72067f1c96eb1196b17193cc48d0] + cache-control: ['max-age=0, private, must-revalidate'] + connection: [Keep-Alive] + content-encoding: [gzip] + content-length: ['218'] + content-security-policy: ['default-src ''self''; child-src ''self''; connect-src + ''self'' ws: wss:; img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' + ''unsafe-inline'' ''self''; style-src ''unsafe-inline'' ''self'''] + content-type: [application/json; charset=utf-8] + date: ['Wed, 25 Jul 2018 15:13:17 GMT'] + etag: [W/"33eb541f7daf03e7d506a757939a7889-gzip"] + foreman_api_version: ['2'] + foreman_version: [1.17.1] + keep-alive: ['timeout=5, max=10000'] + server: [Apache/2.4.6 (CentOS)] + set-cookie: [_session_id=8063d6ccd4baf34ebabc71fbb26f1c3e; path=/; secure; HttpOnly] + status: [200 OK] + strict-transport-security: [max-age=631139040; includeSubdomains] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-download-options: [noopen] + x-frame-options: [sameorigin] + x-permitted-cross-domain-policies: [none] + x-powered-by: [Phusion Passenger 4.0.53] + x-request-id: [c8e6ab82-bc88-452c-a5db-6dae8d075435] + x-runtime: ['0.056870'] + x-xss-protection: [1; mode=block] + status: {code: 200, message: OK} +- request: + body: !!python/unicode '{"organization_id": 9, "name": "Test Content View"}' + headers: + Accept: ['*/*'] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Length: ['51'] + User-Agent: [python-requests/2.18.4] + content-type: [application/json] + method: GET + uri: https://centos7-katello-3-6.sean.example.com/katello/api/v2/content_views + response: + body: + string: !!binary | + H4sIAAAAAAAAA41SwW7bMAy97ysCnt0hTht087UfMGBoeykKQbGYVpgtCpTkzQ3876Vj1XWCFNhN + 5Hvkox55gEhRN1CVBYS0+wy8fsHpgaymYLMuAJmJoXKpaaQANdevc0QcoTrArocKnG4RCiA2KHTQ + oYahAMaQmhigejpATa2nYKM03usmYDFlHLqorBk5zwUY3GupmCl74hqVT95jVOg6y+RaqZgJHXKw + 5FRNaczKxI2OGKLKwMewjEdx4j6LldciZ418+baYpq/gXgpXd+SiKKweLf6Fsd0Om4ypjKmMGQw1 + Wx8XOsQv2tk3PebU2P7naW40bKn2a4mdqZ1hx25ias0oXzRKy39hsy5/XK1vrzbbVbmtyk11s109 + 3N8JPXnzP7SFqXkHs1UWp80dXbo+den37Of51CdInQ2LvR9L+9TCIBJ5oS2Z1GCWzQvL0Xwbczw1 + 6sR5dQ7qOtpusvwP9jnp8N/iCqD8vj5OKhP6tGtseEXzsTQ5+daGrH6ArPEpKNnISa4NjY2XETmF + yNRfBrPgFyBTSxEVsWJsqcNLtGF4Hr69A9j2DxC8AwAA + headers: + apipie-checksum: [83fd72067f1c96eb1196b17193cc48d0] + cache-control: ['max-age=0, private, must-revalidate'] + connection: [Keep-Alive] + content-encoding: [gzip] + content-length: ['432'] + content-security-policy: ['default-src ''self''; child-src ''self''; connect-src + ''self'' ws: wss:; img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' + ''unsafe-inline'' ''self''; style-src ''unsafe-inline'' ''self'''] + content-type: [application/json; charset=utf-8] + date: ['Wed, 25 Jul 2018 15:13:17 GMT'] + etag: [W/"e5377be671b535aa8045efc383418dc4-gzip"] + foreman_api_version: ['2'] + foreman_version: [1.17.1] + keep-alive: ['timeout=5, max=10000'] + server: [Apache/2.4.6 (CentOS)] + set-cookie: [_session_id=f3936ec7e211f8cdc42c9d14214eda11; path=/; secure; HttpOnly] + status: [200 OK] + strict-transport-security: [max-age=631139040; includeSubdomains] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-download-options: [noopen] + x-frame-options: [sameorigin] + x-permitted-cross-domain-policies: [none] + x-powered-by: [Phusion Passenger 4.0.53] + x-request-id: [a64ae778-bece-47b2-b61a-217ceb3cee66] + x-runtime: ['0.093953'] + x-xss-protection: [1; mode=block] + status: {code: 200, message: OK} +- request: + body: !!python/unicode '{"content_view_id": 17, "name": "Test Errata id Content + View Filter"}' + headers: + Accept: ['*/*'] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Length: ['69'] + User-Agent: [python-requests/2.18.4] + content-type: [application/json] + method: GET + uri: https://centos7-katello-3-6.sean.example.com/katello/api/v2/content_view_filters + response: + body: + string: !!binary | + H4sIAAAAAAAAA0XLsQqAMBAD0N3PyNxBHe9XRORaDx1qK9d2kOK/WxB0ywtJRY6ZPag3SMX+OHkT + 0NCC6PJibLWoRgWF4n07CKvbP0XNoAp7gRD4EBhEXaXNwcnhNlBJxecEmua7ewAzgtzWewAAAA== + headers: + apipie-checksum: [83fd72067f1c96eb1196b17193cc48d0] + cache-control: ['max-age=0, private, must-revalidate'] + connection: [Keep-Alive] + content-encoding: [gzip] + content-length: ['112'] + content-security-policy: ['default-src ''self''; child-src ''self''; connect-src + ''self'' ws: wss:; img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' + ''unsafe-inline'' ''self''; style-src ''unsafe-inline'' ''self'''] + content-type: [application/json; charset=utf-8] + date: ['Wed, 25 Jul 2018 15:13:17 GMT'] + etag: [W/"956e0fd5b832fbda8d01b01a5b7de844-gzip"] + foreman_api_version: ['2'] + foreman_version: [1.17.1] + keep-alive: ['timeout=5, max=10000'] + server: [Apache/2.4.6 (CentOS)] + set-cookie: [_session_id=5fda160f82e41d392f371d5b871f6302; path=/; secure; HttpOnly] + status: [200 OK] + strict-transport-security: [max-age=631139040; includeSubdomains] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-download-options: [noopen] + x-frame-options: [sameorigin] + x-permitted-cross-domain-policies: [none] + x-powered-by: [Phusion Passenger 4.0.53] + x-request-id: [da2df8a0-25c9-4471-a4ee-ad63dc795b9b] + x-runtime: ['0.069803'] + x-xss-protection: [1; mode=block] + status: {code: 200, message: OK} +- request: + body: !!python/unicode '{"content_view_id": 17, "inclusion": false, "repository_ids": + [], "type": "erratum", "name": "Test Errata id Content View Filter"}' + headers: + Accept: ['*/*'] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Length: ['130'] + User-Agent: [python-requests/2.18.4] + content-type: [application/json] + method: POST + uri: https://centos7-katello-3-6.sean.example.com/katello/api/v2/content_view_filters + response: + body: + string: !!binary | + H4sIAAAAAAAAA41TwY7TMBC98xWRz13UpFsVcl3BFYQWLqiyXGfatZrY1tgOlCr/zjhx06Rb0B7n + vZl54zfjLDszpWUdnDKalXtRO1gwVbGyKBZMiwZYyZ7B+ewTovAiU1X2ZLQH7bMfCn5ln1XtAdmC + VeAkKuv7PjrU9YJJBOGh4sJTk2KZf3hYbh6KdZavy3xV5pvs+/MTVQZbvSVNDrK8JVlWnilurHHK + wzh2j+iYoyrHyp/bONVehNqPKXuDErgN1oLnoFuFRjdUMSa0gNEKLk2I6HLBahrOkexAXN6G0Isb + PCWxfLUdjMs3c+OmdrHYbgd14njieOLueGjwILT6IyLGY/uPcyw6MVX7MuVu1G64vlv3/zUV5eP6 + DWuapE1MTTsYrVIQkfPg0mru0rfRz9upZ8zlCPzJxtJTaAi0aKogfbQiOTTt/DWx3bW6X66L+cZ5 + BOA7FFq+9OuujDwC8oac2lP5FPPi0IdoG1au6H9YIY/iALOAH9AES/+HrIhfhiYsH4kdTq6hWWoq + WHbd9gZMbqU7S9F40mN8/QT8lhTSq3a4lCOcEqjh9+R4Wf5+2RtMxtqwq5V7gepyaxawUS6pn1nS + uAoS6jHQJ4FK+fsMXbBHc7pPJsF/kGga44Eb5AiNaeFeWte9Oid6YjqGi92UcrGze/cXkzUwK+EE + AAA= + headers: + apipie-checksum: [83fd72067f1c96eb1196b17193cc48d0] + cache-control: ['max-age=0, private, must-revalidate'] + connection: [Keep-Alive] + content-encoding: [gzip] + content-length: ['515'] + content-security-policy: ['default-src ''self''; child-src ''self''; connect-src + ''self'' ws: wss:; img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' + ''unsafe-inline'' ''self''; style-src ''unsafe-inline'' ''self'''] + content-type: [application/json; charset=utf-8] + date: ['Wed, 25 Jul 2018 15:13:17 GMT'] + etag: [W/"24994818d6ed83546c809c1a500e0cd1-gzip"] + foreman_api_version: ['2'] + foreman_version: [1.17.1] + keep-alive: ['timeout=5, max=10000'] + server: [Apache/2.4.6 (CentOS)] + set-cookie: [request_method=POST; path=/, _session_id=0fa063f536fc0c229f926052a15c11f9; + path=/; secure; HttpOnly] + status: [200 OK] + strict-transport-security: [max-age=631139040; includeSubdomains] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-download-options: [noopen] + x-frame-options: [sameorigin] + x-permitted-cross-domain-policies: [none] + x-powered-by: [Phusion Passenger 4.0.53] + x-request-id: [4f901ccd-2811-4cdd-a2ab-cd2c89dd2827] + x-runtime: ['0.154162'] + x-xss-protection: [1; mode=block] + status: {code: 200, message: OK} +- request: + body: !!python/unicode '{"content_view_id": 17, "name": "Test Errata id Content + View Filter"}' + headers: + Accept: ['*/*'] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Length: ['69'] + User-Agent: [python-requests/2.18.4] + content-type: [application/json] + method: GET + uri: https://centos7-katello-3-6.sean.example.com/katello/api/v2/content_view_filters + response: + body: + string: !!binary | + H4sIAAAAAAAAA41TQa/TMAy+8ysqn/vQ2jENen2CKxJ6cEFTlLXeexFpUjlJoUz97zhr1nVjoHeL + /dn+7M/OEbz1UkNV5ODC/mJ08hmnB5KYjHKVAxJZgsoErTkBJdUvs2XJQ3WE/QAVGNki5GCpQQ4H + 6WoYcyB0QXsH1fcjKFPr4JQ1UB2kdpiDapijzKfcCp7Q+ewjkfQyU032aI1H47NvCn9mn5T2XDiH + Bl1NqvOnOlMfNaH02AjJ3UC5Kt4/rLYP5SYrNlWxropt9vXpkTND17wmrJ5oRc+0cbratp11yuPc + 9sljYoxq4mi72NVB8qBzyMFSjaILXYdeoOkVWdNyxhzQI0UpRG1D9LLQmptzTDsB59kIT+SWhkRW + rHeTcMX2WrilXBDL7VEnTCRMJOyOhpaepVG/ZfSJWP7DtS8qsWT7vMRu2G6wU7Xx/2sqq3ebV6xp + EbYQNe1glkphOrio0vpapS+znrddXyHnI/BDF1OH0MLIFGmhrW2CxkSbFpas+TZm+3JN4haUtVf9 + JPkPHJLT4K/FFUDxdnXqlDvswl4r94LNeWn8U1vlEvsREseFkL2eAl8bNsrfR/gUPNnhPpgI/wGS + ba1HYUkQtrbHe2Hj+NdeeMSkKsavzspyyFnOcTe++QOLqhfHogQAAA== + headers: + apipie-checksum: [83fd72067f1c96eb1196b17193cc48d0] + cache-control: ['max-age=0, private, must-revalidate'] + connection: [Keep-Alive] + content-encoding: [gzip] + content-length: ['496'] + content-security-policy: ['default-src ''self''; child-src ''self''; connect-src + ''self'' ws: wss:; img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' + ''unsafe-inline'' ''self''; style-src ''unsafe-inline'' ''self'''] + content-type: [application/json; charset=utf-8] + date: ['Wed, 25 Jul 2018 15:13:17 GMT'] + etag: [W/"b7ca7cd27fa9b8e3b6b0976243bc23d2-gzip"] + foreman_api_version: ['2'] + foreman_version: [1.17.1] + keep-alive: ['timeout=5, max=10000'] + server: [Apache/2.4.6 (CentOS)] + set-cookie: [_session_id=b28e00497d4f790626e8ff8922b812e3; path=/; secure; HttpOnly] + status: [200 OK] + strict-transport-security: [max-age=631139040; includeSubdomains] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-download-options: [noopen] + x-frame-options: [sameorigin] + x-permitted-cross-domain-policies: [none] + x-powered-by: [Phusion Passenger 4.0.53] + x-request-id: [3e8f3f31-6f59-4049-b0b1-252b9edd6d95] + x-runtime: ['0.102956'] + x-xss-protection: [1; mode=block] + status: {code: 200, message: OK} +- request: + body: !!python/unicode '{"search": "id=\"RHEA-2012:0003\""}' + headers: + Accept: ['*/*'] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Length: ['35'] + User-Agent: [python-requests/2.18.4] + content-type: [application/json] + method: GET + uri: https://centos7-katello-3-6.sean.example.com/katello/api/v2/errata + response: + body: + string: !!binary | + H4sIAAAAAAAAA22RQW/CMAyF7/sZPjcoDQxYpR02CWnnXQeq0tRARGgqJ2FCiP8+p8C0sd3i7yXP + z84Joo/aQTUpIKTmWpQF9HqDlwNSfSmULACJPEHVJef4AWoyW6jAts9LeH9bvAglS1VJKcdLAL7g + KUJ1gubIl1Lf6ogtY08tsgm0GAycCyAMycUA1ceJrYauKeUDlHqsyseZFKYdSzGZKiV0s14LpZ5k + M5nhel5O2DDa6DggvFpq6wWRjmkPQ1gddT04/U7Hog0hYVYyFLIUasb0FvIOBzwg2ZjH4CrnJttH + 67u/TYN36arkKu33mq7vCBvvYx3SZoNh6LLWLmABnd7/Ez8e+0wDmjT0LsAcMG9pVcDWhxhqfdDW + 6cZhbXzqeNXyW+l7Z82d1Guz45/MFmDIfwo5moty1PnhG3muZHbMpj9ZiJ4y5GWoG12dV+eHLzEL + OoM6AgAA + headers: + apipie-checksum: [83fd72067f1c96eb1196b17193cc48d0] + cache-control: ['max-age=0, private, must-revalidate'] + connection: [Keep-Alive] + content-encoding: [gzip] + content-length: ['348'] + content-security-policy: ['default-src ''self''; child-src ''self''; connect-src + ''self'' ws: wss:; img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' + ''unsafe-inline'' ''self''; style-src ''unsafe-inline'' ''self'''] + content-type: [application/json; charset=utf-8] + date: ['Wed, 25 Jul 2018 15:13:18 GMT'] + etag: [W/"1ec4c63cb15888dab6505390e0579a52-gzip"] + foreman_api_version: ['2'] + foreman_version: [1.17.1] + keep-alive: ['timeout=5, max=10000'] + server: [Apache/2.4.6 (CentOS)] + set-cookie: [_session_id=79bd0e11e398055d9732023173fe29a9; path=/; secure; HttpOnly] + status: [200 OK] + strict-transport-security: [max-age=631139040; includeSubdomains] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-download-options: [noopen] + x-frame-options: [sameorigin] + x-permitted-cross-domain-policies: [none] + x-powered-by: [Phusion Passenger 4.0.53] + x-request-id: [09afbb5c-2dbb-445d-b344-1e828cc3f690] + x-runtime: ['0.119300'] + x-xss-protection: [1; mode=block] + status: {code: 200, message: OK} +- request: + body: !!python/unicode '{"content_view_filter_id": 22, "errata_id": "RHEA-2012:0003"}' + headers: + Accept: ['*/*'] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Length: ['61'] + User-Agent: [python-requests/2.18.4] + content-type: [application/json] + method: GET + uri: https://centos7-katello-3-6.sean.example.com/katello/api/v2/content_view_filters/22/rules + response: + body: + string: !!binary | + H4sIAAAAAAAAA0XLsQqAMBAD0N3PyNxBHe9XRKSthwqHlWs7SOm/WxB0ywtJQQrJCqg3iNn9uOzG + oKEF1uXF2GpWDQo6s0g7sFW/fwqaQAXuBuFYYRB05TaGjR7VQDlmSRE0zbV7AKfVSwR5AAAA + headers: + apipie-checksum: [83fd72067f1c96eb1196b17193cc48d0] + cache-control: ['max-age=0, private, must-revalidate'] + connection: [Keep-Alive] + content-encoding: [gzip] + content-length: ['111'] + content-security-policy: ['default-src ''self''; child-src ''self''; connect-src + ''self'' ws: wss:; img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' + ''unsafe-inline'' ''self''; style-src ''unsafe-inline'' ''self'''] + content-type: [application/json; charset=utf-8] + date: ['Wed, 25 Jul 2018 15:13:18 GMT'] + etag: [W/"2515bdcde58d61e5000459519256b95b-gzip"] + foreman_api_version: ['2'] + foreman_version: [1.17.1] + keep-alive: ['timeout=5, max=10000'] + server: [Apache/2.4.6 (CentOS)] + set-cookie: [_session_id=c8f6cf74e75e5932a7b3a584c6a636b4; path=/; secure; HttpOnly] + status: [200 OK] + strict-transport-security: [max-age=631139040; includeSubdomains] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-download-options: [noopen] + x-frame-options: [sameorigin] + x-permitted-cross-domain-policies: [none] + x-powered-by: [Phusion Passenger 4.0.53] + x-request-id: [2a773484-85d1-4912-9874-a128e3d5e2e4] + x-runtime: ['0.057264'] + x-xss-protection: [1; mode=block] + status: {code: 200, message: OK} +- request: + body: !!python/unicode '{"errata_id": "RHEA-2012:0003", "content_view_filter_id": + 22, "date_type": "updated"}' + headers: + Accept: ['*/*'] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Length: ['85'] + User-Agent: [python-requests/2.18.4] + content-type: [application/json] + method: POST + uri: https://centos7-katello-3-6.sean.example.com/katello/api/v2/content_view_filters/22/rules + response: + body: + string: !!binary | + H4sIAAAAAAAAA1NQqFZKzs8rSc0riS/LTC2PT8vMKUktis9MUbIyMtJRSi0qSixJBHOVgjxcHXWN + DAyNrAwMDIyVdJRSEktS40sqC1KBkqUFIF4KUBSs1VBHKbkoFSQSn1gClAZqs9A1MNc1MlUwNLUy + NLYytFAIDXEGKodqxK+slgsA6dAWI6kAAAA= + headers: + apipie-checksum: [83fd72067f1c96eb1196b17193cc48d0] + cache-control: ['max-age=0, private, must-revalidate'] + connection: [Keep-Alive] + content-encoding: [gzip] + content-length: ['140'] + content-security-policy: ['default-src ''self''; child-src ''self''; connect-src + ''self'' ws: wss:; img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' + ''unsafe-inline'' ''self''; style-src ''unsafe-inline'' ''self'''] + content-type: [application/json; charset=utf-8] + date: ['Wed, 25 Jul 2018 15:13:18 GMT'] + etag: [W/"cf65a006481f8f6355d7ad2baf9045cf-gzip"] + foreman_api_version: ['2'] + foreman_version: [1.17.1] + keep-alive: ['timeout=5, max=10000'] + server: [Apache/2.4.6 (CentOS)] + set-cookie: [request_method=POST; path=/, _session_id=387986076b8191f1fb19ca91e3fa40e7; + path=/; secure; HttpOnly] + status: [200 OK] + strict-transport-security: [max-age=631139040; includeSubdomains] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-download-options: [noopen] + x-frame-options: [sameorigin] + x-permitted-cross-domain-policies: [none] + x-powered-by: [Phusion Passenger 4.0.53] + x-request-id: [1ed8fbf1-33df-4fff-8abe-4a4d6de3e75b] + x-runtime: ['0.076363'] + x-xss-protection: [1; mode=block] + status: {code: 200, message: OK} +version: 1 diff --git a/test/test_playbooks/fixtures/content_view_filter-23.yml b/test/test_playbooks/fixtures/content_view_filter-23.yml new file mode 100644 index 0000000000..c2ef04b628 --- /dev/null +++ b/test/test_playbooks/fixtures/content_view_filter-23.yml @@ -0,0 +1,448 @@ +interactions: +- request: + body: !!python/unicode '{}' + headers: + Accept: ['*/*'] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Length: ['2'] + User-Agent: [python-requests/2.18.4] + content-type: [application/json] + method: GET + uri: https://centos7-katello-3-6.sean.example.com/katello/api/v2/ping + response: + body: + string: !!binary | + H4sIAAAAAAAAA1NQqFYqLkksKS1WslLKz1bSUSpOLSrLTE4F8quVCkpzCkA0qoqU0qLEksz8vPhc + kJCxmVKtDlhlfGJpSQYh5YZg5cmJeSk5qQWZeQSVG6MoJ84KE5CetPyi1NzEvPiSxOLsYmJcVVvL + BQCA7U5hDgEAAA== + headers: + apipie-checksum: [83fd72067f1c96eb1196b17193cc48d0] + cache-control: ['max-age=0, private, must-revalidate'] + connection: [Keep-Alive] + content-encoding: [gzip] + content-length: ['124'] + content-security-policy: ['default-src ''self''; child-src ''self''; connect-src + ''self'' ws: wss:; img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' + ''unsafe-inline'' ''self''; style-src ''unsafe-inline'' ''self'''] + content-type: [application/json; charset=utf-8] + date: ['Wed, 25 Jul 2018 15:13:19 GMT'] + etag: [W/"feafcf0e820ff0f61533fa1ab3c9f058-gzip"] + foreman_api_version: ['2'] + foreman_version: [1.17.1] + keep-alive: ['timeout=5, max=10000'] + server: [Apache/2.4.6 (CentOS)] + set-cookie: [_session_id=7c7582f8c22d0226d7c260200a348b43; path=/; secure; HttpOnly] + status: [200 OK] + strict-transport-security: [max-age=631139040; includeSubdomains] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-download-options: [noopen] + x-frame-options: [sameorigin] + x-permitted-cross-domain-policies: [none] + x-powered-by: [Phusion Passenger 4.0.53] + x-request-id: [cd7796e4-863d-4233-ba02-b7c83438d978] + x-runtime: ['0.148581'] + x-xss-protection: [1; mode=block] + status: {code: 200, message: OK} +- request: + body: !!python/unicode '{"search": "name=\"Test Organization\""}' + headers: + Accept: ['*/*'] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Length: ['40'] + User-Agent: [python-requests/2.18.4] + content-type: [application/json] + method: GET + uri: https://centos7-katello-3-6.sean.example.com/katello/api/v2/organizations + response: + body: + string: !!binary | + H4sIAAAAAAAAA42PwWrDMAyG73kKo3MKcdjYathpD7BLd2pHUGLRGdwkyMqhC3n3qU7GxmCwm77P + v/mluTAGZBCM4Exd3ihN7ZewWYx4pm8gbjZRV2uekLt3ZejxQk8nOFAS88Jn7MMHShj6E8CaHFg0 + N+us1F517qcYy5UH9sSbUrPkL0xpipJUH2eI2JKulQuanwVQQseEQr5BbYC6so+76mFX3Rt752rr + 7N68Hp41No3+P7Hgwe3LfNDWZ371SZD415un1HEYM7nbOctbsRSfKnwYS2sBAAA= + headers: + apipie-checksum: [83fd72067f1c96eb1196b17193cc48d0] + cache-control: ['max-age=0, private, must-revalidate'] + connection: [Keep-Alive] + content-encoding: [gzip] + content-length: ['218'] + content-security-policy: ['default-src ''self''; child-src ''self''; connect-src + ''self'' ws: wss:; img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' + ''unsafe-inline'' ''self''; style-src ''unsafe-inline'' ''self'''] + content-type: [application/json; charset=utf-8] + date: ['Wed, 25 Jul 2018 15:13:19 GMT'] + etag: [W/"33eb541f7daf03e7d506a757939a7889-gzip"] + foreman_api_version: ['2'] + foreman_version: [1.17.1] + keep-alive: ['timeout=5, max=10000'] + server: [Apache/2.4.6 (CentOS)] + set-cookie: [_session_id=7c43ad70f8269cea1b14f4b7616c0c52; path=/; secure; HttpOnly] + status: [200 OK] + strict-transport-security: [max-age=631139040; includeSubdomains] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-download-options: [noopen] + x-frame-options: [sameorigin] + x-permitted-cross-domain-policies: [none] + x-powered-by: [Phusion Passenger 4.0.53] + x-request-id: [006d8dc4-13eb-444d-bfa5-503df614013f] + x-runtime: ['0.058893'] + x-xss-protection: [1; mode=block] + status: {code: 200, message: OK} +- request: + body: !!python/unicode '{"organization_id": 9, "name": "Test Content View"}' + headers: + Accept: ['*/*'] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Length: ['51'] + User-Agent: [python-requests/2.18.4] + content-type: [application/json] + method: GET + uri: https://centos7-katello-3-6.sean.example.com/katello/api/v2/content_views + response: + body: + string: !!binary | + H4sIAAAAAAAAA41SwW7bMAy97ysCnt0hTht087UfMGBoeykKQbGYVpgtCpTkzQ3876Vj1XWCFNhN + 5Hvkox55gEhRN1CVBYS0+wy8fsHpgaymYLMuAJmJoXKpaaQANdevc0QcoTrArocKnG4RCiA2KHTQ + oYahAMaQmhigejpATa2nYKM03usmYDFlHLqorBk5zwUY3GupmCl74hqVT95jVOg6y+RaqZgJHXKw + 5FRNaczKxI2OGKLKwMewjEdx4j6LldciZ418+baYpq/gXgpXd+SiKKweLf6Fsd0Om4ypjKmMGQw1 + Wx8XOsQv2tk3PebU2P7naW40bKn2a4mdqZ1hx25ias0oXzRKy39hsy5/XK1vrzbbVbmtyk11s109 + 3N8JPXnzP7SFqXkHs1UWp80dXbo+den37Of51CdInQ2LvR9L+9TCIBJ5oS2Z1GCWzQvL0Xwbczw1 + 6sR5dQ7qOtpusvwP9jnp8N/iCqD8vj5OKhP6tGtseEXzsTQ5+daGrH6ArPEpKNnISa4NjY2XETmF + yNRfBrPgFyBTSxEVsWJsqcNLtGF4Hr69A9j2DxC8AwAA + headers: + apipie-checksum: [83fd72067f1c96eb1196b17193cc48d0] + cache-control: ['max-age=0, private, must-revalidate'] + connection: [Keep-Alive] + content-encoding: [gzip] + content-length: ['432'] + content-security-policy: ['default-src ''self''; child-src ''self''; connect-src + ''self'' ws: wss:; img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' + ''unsafe-inline'' ''self''; style-src ''unsafe-inline'' ''self'''] + content-type: [application/json; charset=utf-8] + date: ['Wed, 25 Jul 2018 15:13:19 GMT'] + etag: [W/"e5377be671b535aa8045efc383418dc4-gzip"] + foreman_api_version: ['2'] + foreman_version: [1.17.1] + keep-alive: ['timeout=5, max=10000'] + server: [Apache/2.4.6 (CentOS)] + set-cookie: [_session_id=1925ebded8830283facc01171712cd3b; path=/; secure; HttpOnly] + status: [200 OK] + strict-transport-security: [max-age=631139040; includeSubdomains] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-download-options: [noopen] + x-frame-options: [sameorigin] + x-permitted-cross-domain-policies: [none] + x-powered-by: [Phusion Passenger 4.0.53] + x-request-id: [1743a658-f4f1-4000-9cf5-8c08ea57cb7c] + x-runtime: ['0.098907'] + x-xss-protection: [1; mode=block] + status: {code: 200, message: OK} +- request: + body: !!python/unicode '{"content_view_id": 17, "name": "Test Errata id Content + View Filter"}' + headers: + Accept: ['*/*'] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Length: ['69'] + User-Agent: [python-requests/2.18.4] + content-type: [application/json] + method: GET + uri: https://centos7-katello-3-6.sean.example.com/katello/api/v2/content_view_filters + response: + body: + string: !!binary | + H4sIAAAAAAAAA41UwY6bMBC99yvQnEkFpFG2vlWrXe2t0mrbSxVZDkx2rQJGY5OWRvx7x+AQkqZt + xIWZN/Ybv3n2AZxxqgSRxmDb7Slo1CuOP0hyDLIkBiQyBKJuy5IXoKL8bYoMORAH2HYgoFYVQgyG + CuRyUDaHPgZC25bOgvh2AF3nZWu1qUHsVGkxBl0wRxaPawW8oHXRA5FyKtJFdG9qh7WLvmr8ET3q + 0vHGMRRoc9KNG/YZ+8gJlcNCKu4GsiS9WyTrRbaK0pVIlyJdR19e7nll2xS3lOUjrdwzrT9dbqrG + WO1wanvI1L5GF/5oG9/VTvFBp5KdoRxl0zYNOon1XpOpK14xFeyRvBQyN63PstAlN2eZdgSOZyMc + yA11gSxdbkbh0vW5cHO5wG+3xTJgMmAyYFc0NPSqav1L+Zz02388z3kl5myf59gF2wU27Nb/e0yZ + +LC6YUyzspmoYQaTVBqD4bxKy3OVnic9L7s+Q44mcF3jl3ZtBT1ThIFWpmhLDLRhYCGavDHFJzfJ + S1DlTu9Hyb9jF5I1/py5ANL3ydApd9i021LbNyyOQ+ObWmkb2A8QOE6EnHXUstuw0O46wlZwZLrr + YCD8C0imMg6lIUlYmT1eK+v7P+bCRwyqor/qrCyXBDkP53rthksvj8/EUK+GEJ6fHj4t2B2ZSJJk + 6T3NpjmOK1goeC9L//tE3N32RIxl/Ya/d78B6bBRqEgFAAA= + headers: + apipie-checksum: [83fd72067f1c96eb1196b17193cc48d0] + cache-control: ['max-age=0, private, must-revalidate'] + connection: [Keep-Alive] + content-encoding: [gzip] + content-length: ['548'] + content-security-policy: ['default-src ''self''; child-src ''self''; connect-src + ''self'' ws: wss:; img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' + ''unsafe-inline'' ''self''; style-src ''unsafe-inline'' ''self'''] + content-type: [application/json; charset=utf-8] + date: ['Wed, 25 Jul 2018 15:13:20 GMT'] + etag: [W/"f7db89fbea4a4a3f61f6dfa029ef653b-gzip"] + foreman_api_version: ['2'] + foreman_version: [1.17.1] + keep-alive: ['timeout=5, max=10000'] + server: [Apache/2.4.6 (CentOS)] + set-cookie: [_session_id=5ee9868dc5aae8ede07c0634167248a9; path=/; secure; HttpOnly] + status: [200 OK] + strict-transport-security: [max-age=631139040; includeSubdomains] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-download-options: [noopen] + x-frame-options: [sameorigin] + x-permitted-cross-domain-policies: [none] + x-powered-by: [Phusion Passenger 4.0.53] + x-request-id: [ad5ae0c6-b02f-48d8-b2f8-dabbd1f034e3] + x-runtime: ['0.098050'] + x-xss-protection: [1; mode=block] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: ['*/*'] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + User-Agent: [python-requests/2.18.4] + content-type: [application/json] + method: GET + uri: https://centos7-katello-3-6.sean.example.com/katello/api/v2/content_view_filters/22 + response: + body: + string: !!binary | + H4sIAAAAAAAAA41UTW/bMAy971cYOieD7TRI59tQtOhtQ9HtMgSCIjOpEFsSaDlbFvi/j7Jlx06z + LUfy8UuPj4qiE1NaFnWljGbZVhQVzJjKWZamM6ZFCSxjr1C56BFROBGpPHow2oF20XcFP6MnVThA + NmM5VBKVdW0dXRfFjEkE4SDnwlGRNE7u5/Fqni6jZJkliyxZRd9eHyiztvktYbJryw/UlmUnsktr + KuVgGLv1aB+j8oplP9Z+qq2oCzeEbA1K4La2FhwHfVBodEkZQ8AB0FPBpam9N56xgoarqG0H9G9D + aJsbPIZmyWLdEZespsSN6WK+3AaKgPGA8YBd4dDgTmj1W3gf9+U/TX2eiXG3L2PsotsF1lZr/r2m + NLtb3rCmUdiI1LCDgSoF3nPqWFpMWXoZ+LyceoL0InBH61OPdUlOiyavpfNUBIbGlb8GtDlnt8ut + fLypHALwDQot39p150buAXlJTG0pfexzYteaaEuWLeg+rJB7sYOJwXdoakv3Q1T4k6EJsztCO8mV + NEtBCXHTrC+cga2gs2ANkh7s8xHwS1BIpw6dUvZwDE4Nv0biZcnHuCWYiLX1plDVG+S91ixgqarQ + /cRCj3ND8jqs6UggV+46Qgp2aI7XwdDwLyCa0jjgBjlCaQ5wLaxp3smJnhjE0NNNIYHO05SvbftX + 8f53a+NFa7KX58fPcxJ1msVxvPCnSFrvVRaUH04mTf77s93f9rN1Yc26+fAHPVMf2ocFAAA= + headers: + apipie-checksum: [83fd72067f1c96eb1196b17193cc48d0] + cache-control: ['max-age=0, private, must-revalidate'] + connection: [Keep-Alive] + content-encoding: [gzip] + content-length: ['566'] + content-security-policy: ['default-src ''self''; child-src ''self''; connect-src + ''self'' ws: wss:; img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' + ''unsafe-inline'' ''self''; style-src ''unsafe-inline'' ''self'''] + content-type: [application/json; charset=utf-8] + date: ['Wed, 25 Jul 2018 15:13:20 GMT'] + etag: [W/"52ba0ccfb13c9389cf44f50483f15b61-gzip"] + foreman_api_version: ['2'] + foreman_version: [1.17.1] + keep-alive: ['timeout=5, max=10000'] + server: [Apache/2.4.6 (CentOS)] + set-cookie: [_session_id=7191870c0b7650b131ba4e1333b224ff; path=/; secure; HttpOnly] + status: [200 OK] + strict-transport-security: [max-age=631139040; includeSubdomains] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-download-options: [noopen] + x-frame-options: [sameorigin] + x-permitted-cross-domain-policies: [none] + x-powered-by: [Phusion Passenger 4.0.53] + x-request-id: [ef6fc2a9-5f7e-4952-8f20-41669e7fc227] + x-runtime: ['0.125004'] + x-xss-protection: [1; mode=block] + status: {code: 200, message: OK} +- request: + body: !!python/unicode '{"content_view_id": 17, "name": "Test Errata id Content + View Filter"}' + headers: + Accept: ['*/*'] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Length: ['69'] + User-Agent: [python-requests/2.18.4] + content-type: [application/json] + method: GET + uri: https://centos7-katello-3-6.sean.example.com/katello/api/v2/content_view_filters + response: + body: + string: !!binary | + H4sIAAAAAAAAA41UwY6bMBC99yvQnEkFpFG2vlWrXe2t0mrbSxVZDkx2rQJGY5OWRvx7x+AQkqZt + xIWZN/Ybv3n2AZxxqgSRxmDb7Slo1CuOP0hyDLIkBiQyBKJuy5IXoKL8bYoMORAH2HYgoFYVQgyG + CuRyUDaHPgZC25bOgvh2AF3nZWu1qUHsVGkxBl0wRxaPawW8oHXRA5FyKtJFdG9qh7WLvmr8ET3q + 0vHGMRRoc9KNG/YZ+8gJlcNCKu4GsiS9WyTrRbaK0pVIlyJdR19e7nll2xS3lOUjrdwzrT9dbqrG + WO1wanvI1L5GF/5oG9/VTvFBp5KdoRxl0zYNOon1XpOpK14xFeyRvBQyN63PstAlN2eZdgSOZyMc + yA11gSxdbkbh0vW5cHO5wG+3xTJgMmAyYFc0NPSqav1L+Zz02388z3kl5myf59gF2wU27Nb/e0yZ + +LC6YUyzspmoYQaTVBqD4bxKy3OVnic9L7s+Q44mcF3jl3ZtBT1ThIFWpmhLDLRhYCGavDHFJzfJ + S1DlTu9Hyb9jF5I1/py5ANL3ydApd9i021LbNyyOQ+ObWmkb2A8QOE6EnHXUstuw0O46wlZwZLrr + YCD8C0imMg6lIUlYmT1eK+v7P+bCRwyqor/qrCyXBDkP53rthksvj8/EUK+GEJ6fHj4t2B2ZSJJk + 6T3NpjmOK1goeC9L//tE3N32RIxl/Ya/d78B6bBRqEgFAAA= + headers: + apipie-checksum: [83fd72067f1c96eb1196b17193cc48d0] + cache-control: ['max-age=0, private, must-revalidate'] + connection: [Keep-Alive] + content-encoding: [gzip] + content-length: ['548'] + content-security-policy: ['default-src ''self''; child-src ''self''; connect-src + ''self'' ws: wss:; img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' + ''unsafe-inline'' ''self''; style-src ''unsafe-inline'' ''self'''] + content-type: [application/json; charset=utf-8] + date: ['Wed, 25 Jul 2018 15:13:20 GMT'] + etag: [W/"f7db89fbea4a4a3f61f6dfa029ef653b-gzip"] + foreman_api_version: ['2'] + foreman_version: [1.17.1] + keep-alive: ['timeout=5, max=10000'] + server: [Apache/2.4.6 (CentOS)] + set-cookie: [_session_id=74ab30f236aa99810b7e6cad843f2bbe; path=/; secure; HttpOnly] + status: [200 OK] + strict-transport-security: [max-age=631139040; includeSubdomains] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-download-options: [noopen] + x-frame-options: [sameorigin] + x-permitted-cross-domain-policies: [none] + x-powered-by: [Phusion Passenger 4.0.53] + x-request-id: [68ebeffe-9e7e-4501-8870-671fd8a3ac8b] + x-runtime: ['0.106097'] + x-xss-protection: [1; mode=block] + status: {code: 200, message: OK} +- request: + body: !!python/unicode '{"search": "id=\"RHEA-2012:0003\""}' + headers: + Accept: ['*/*'] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Length: ['35'] + User-Agent: [python-requests/2.18.4] + content-type: [application/json] + method: GET + uri: https://centos7-katello-3-6.sean.example.com/katello/api/v2/errata + response: + body: + string: !!binary | + H4sIAAAAAAAAA22RQW/CMAyF7/sZPjcoDQxYpR02CWnnXQeq0tRARGgqJ2FCiP8+p8C0sd3i7yXP + z84Joo/aQTUpIKTmWpQF9HqDlwNSfSmULACJPEHVJef4AWoyW6jAts9LeH9bvAglS1VJKcdLAL7g + KUJ1gubIl1Lf6ogtY08tsgm0GAycCyAMycUA1ceJrYauKeUDlHqsyseZFKYdSzGZKiV0s14LpZ5k + M5nhel5O2DDa6DggvFpq6wWRjmkPQ1gddT04/U7Hog0hYVYyFLIUasb0FvIOBzwg2ZjH4CrnJttH + 67u/TYN36arkKu33mq7vCBvvYx3SZoNh6LLWLmABnd7/Ez8e+0wDmjT0LsAcMG9pVcDWhxhqfdDW + 6cZhbXzqeNXyW+l7Z82d1Guz45/MFmDIfwo5moty1PnhG3muZHbMpj9ZiJ4y5GWoG12dV+eHLzEL + OoM6AgAA + headers: + apipie-checksum: [83fd72067f1c96eb1196b17193cc48d0] + cache-control: ['max-age=0, private, must-revalidate'] + connection: [Keep-Alive] + content-encoding: [gzip] + content-length: ['348'] + content-security-policy: ['default-src ''self''; child-src ''self''; connect-src + ''self'' ws: wss:; img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' + ''unsafe-inline'' ''self''; style-src ''unsafe-inline'' ''self'''] + content-type: [application/json; charset=utf-8] + date: ['Wed, 25 Jul 2018 15:13:20 GMT'] + etag: [W/"1ec4c63cb15888dab6505390e0579a52-gzip"] + foreman_api_version: ['2'] + foreman_version: [1.17.1] + keep-alive: ['timeout=5, max=10000'] + server: [Apache/2.4.6 (CentOS)] + set-cookie: [_session_id=8f7a369260da2f67216f9cd3072c1dea; path=/; secure; HttpOnly] + status: [200 OK] + strict-transport-security: [max-age=631139040; includeSubdomains] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-download-options: [noopen] + x-frame-options: [sameorigin] + x-permitted-cross-domain-policies: [none] + x-powered-by: [Phusion Passenger 4.0.53] + x-request-id: [8f023bd0-1657-488f-b57c-ea7c1c4919a4] + x-runtime: ['0.078307'] + x-xss-protection: [1; mode=block] + status: {code: 200, message: OK} +- request: + body: !!python/unicode '{"content_view_filter_id": 22, "errata_id": "RHEA-2012:0003"}' + headers: + Accept: ['*/*'] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Length: ['61'] + User-Agent: [python-requests/2.18.4] + content-type: [application/json] + method: GET + uri: https://centos7-katello-3-6.sean.example.com/katello/api/v2/content_view_filters/22/rules + response: + body: + string: !!binary | + H4sIAAAAAAAAA32OQUvEMBCF7/6K5Z1bSLIsLnMTWfAsehIJ2XbUQmjKdKospf/daVf05i1feN+8 + N0OLpgzyFcbp/AdDeufrgyVeIbgKLFIE1E85m8BJmo9fKqKgGecLCF2LCkVatjDS2GCpIDxOWUfQ + y4ym9Mq9xs+Ov+Jbl9VazKEQto6kaUM8Ppzu6uB8IOfc3m62STnqZbA9mIaV1qZNtbGN8PoTky2B + acfa3dbhsPMH8nvyx93z073Ff8T/Y8vrcvMNSYgHSx8BAAA= + headers: + apipie-checksum: [83fd72067f1c96eb1196b17193cc48d0] + cache-control: ['max-age=0, private, must-revalidate'] + connection: [Keep-Alive] + content-encoding: [gzip] + content-length: ['206'] + content-security-policy: ['default-src ''self''; child-src ''self''; connect-src + ''self'' ws: wss:; img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' + ''unsafe-inline'' ''self''; style-src ''unsafe-inline'' ''self'''] + content-type: [application/json; charset=utf-8] + date: ['Wed, 25 Jul 2018 15:13:20 GMT'] + etag: [W/"781958dfea13971fe7365c9d93c94ef9-gzip"] + foreman_api_version: ['2'] + foreman_version: [1.17.1] + keep-alive: ['timeout=5, max=10000'] + server: [Apache/2.4.6 (CentOS)] + set-cookie: [_session_id=1f7b797cd7b52ebcfbec440f9dbe05bf; path=/; secure; HttpOnly] + status: [200 OK] + strict-transport-security: [max-age=631139040; includeSubdomains] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-download-options: [noopen] + x-frame-options: [sameorigin] + x-permitted-cross-domain-policies: [none] + x-powered-by: [Phusion Passenger 4.0.53] + x-request-id: [e6279f6c-270d-4125-b30d-0bb4d5db1175] + x-runtime: ['0.060965'] + x-xss-protection: [1; mode=block] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: ['*/*'] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + User-Agent: [python-requests/2.18.4] + content-type: [application/json] + method: GET + uri: https://centos7-katello-3-6.sean.example.com/katello/api/v2/content_view_filters/22/rules/21 + response: + body: + string: !!binary | + H4sIAAAAAAAAA1NQqFZKzs8rSc0riS/LTC2PT8vMKUktis9MUbIyMtJRSi0qSixJBHOVgjxcHXWN + DAyNrAwMDIyVdJRSEktS40sqC1KBkqUFIF4KUBSs1VBHKbkoFSQSn1gClAZqs9A1MNc1MlUwNLUy + NLYytFAIDXEGKodqxK+slgsA6dAWI6kAAAA= + headers: + apipie-checksum: [83fd72067f1c96eb1196b17193cc48d0] + cache-control: ['max-age=0, private, must-revalidate'] + connection: [Keep-Alive] + content-encoding: [gzip] + content-length: ['140'] + content-security-policy: ['default-src ''self''; child-src ''self''; connect-src + ''self'' ws: wss:; img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' + ''unsafe-inline'' ''self''; style-src ''unsafe-inline'' ''self'''] + content-type: [application/json; charset=utf-8] + date: ['Wed, 25 Jul 2018 15:13:20 GMT'] + etag: [W/"cf65a006481f8f6355d7ad2baf9045cf-gzip"] + foreman_api_version: ['2'] + foreman_version: [1.17.1] + keep-alive: ['timeout=5, max=10000'] + server: [Apache/2.4.6 (CentOS)] + set-cookie: [_session_id=0e9bcc5e96c60f2c1da58cc16ece181c; path=/; secure; HttpOnly] + status: [200 OK] + strict-transport-security: [max-age=631139040; includeSubdomains] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-download-options: [noopen] + x-frame-options: [sameorigin] + x-permitted-cross-domain-policies: [none] + x-powered-by: [Phusion Passenger 4.0.53] + x-request-id: [bbd9bcde-9085-4793-8e5e-62e8c34cc64f] + x-runtime: ['0.058996'] + x-xss-protection: [1; mode=block] + status: {code: 200, message: OK} +version: 1 diff --git a/test/test_playbooks/fixtures/content_view_filter-25.yml b/test/test_playbooks/fixtures/content_view_filter-25.yml new file mode 100644 index 0000000000..c5c151d208 --- /dev/null +++ b/test/test_playbooks/fixtures/content_view_filter-25.yml @@ -0,0 +1,300 @@ +interactions: +- request: + body: !!python/unicode '{}' + headers: + Accept: ['*/*'] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Length: ['2'] + User-Agent: [python-requests/2.18.4] + content-type: [application/json] + method: GET + uri: https://centos7-katello-3-6.sean.example.com/katello/api/v2/ping + response: + body: + string: !!binary | + H4sIAAAAAAAAA43NOwqAMBAE0N5TyNY2fvB3mbBoxKAmIbuxkdxdY2cVq2WGN2yeX0CM7AlGMBsU + QNKdapJPvsD63cb7FbN3yMpoccSqqSAUrxToeU3xso18Qj3v0iqd5PWH/3sxxM1inDxQC0baKDXp + +w5CCNkNmkS+aA8BAAA= + headers: + apipie-checksum: [83fd72067f1c96eb1196b17193cc48d0] + cache-control: ['max-age=0, private, must-revalidate'] + connection: [Keep-Alive] + content-encoding: [gzip] + content-length: ['128'] + content-security-policy: ['default-src ''self''; child-src ''self''; connect-src + ''self'' ws: wss:; img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' + ''unsafe-inline'' ''self''; style-src ''unsafe-inline'' ''self'''] + content-type: [application/json; charset=utf-8] + date: ['Wed, 25 Jul 2018 15:13:22 GMT'] + etag: [W/"e1150fa0a3df7a6111ca605234ff436a-gzip"] + foreman_api_version: ['2'] + foreman_version: [1.17.1] + keep-alive: ['timeout=5, max=10000'] + server: [Apache/2.4.6 (CentOS)] + set-cookie: [_session_id=00da6c6271bcfccfa90a30a31b4d0419; path=/; secure; HttpOnly] + status: [200 OK] + strict-transport-security: [max-age=631139040; includeSubdomains] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-download-options: [noopen] + x-frame-options: [sameorigin] + x-permitted-cross-domain-policies: [none] + x-powered-by: [Phusion Passenger 4.0.53] + x-request-id: [69b1e5b5-7e9b-46c6-b9bb-bd4818b9aeb0] + x-runtime: ['1.032182'] + x-xss-protection: [1; mode=block] + status: {code: 200, message: OK} +- request: + body: !!python/unicode '{"search": "name=\"Test Organization\""}' + headers: + Accept: ['*/*'] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Length: ['40'] + User-Agent: [python-requests/2.18.4] + content-type: [application/json] + method: GET + uri: https://centos7-katello-3-6.sean.example.com/katello/api/v2/organizations + response: + body: + string: !!binary | + H4sIAAAAAAAAA42PwWrDMAyG73kKo3MKcdjYathpD7BLd2pHUGLRGdwkyMqhC3n3qU7GxmCwm77P + v/mluTAGZBCM4Exd3ihN7ZewWYx4pm8gbjZRV2uekLt3ZejxQk8nOFAS88Jn7MMHShj6E8CaHFg0 + N+us1F517qcYy5UH9sSbUrPkL0xpipJUH2eI2JKulQuanwVQQseEQr5BbYC6so+76mFX3Rt752rr + 7N68Hp41No3+P7Hgwe3LfNDWZ371SZD415un1HEYM7nbOctbsRSfKnwYS2sBAAA= + headers: + apipie-checksum: [83fd72067f1c96eb1196b17193cc48d0] + cache-control: ['max-age=0, private, must-revalidate'] + connection: [Keep-Alive] + content-encoding: [gzip] + content-length: ['218'] + content-security-policy: ['default-src ''self''; child-src ''self''; connect-src + ''self'' ws: wss:; img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' + ''unsafe-inline'' ''self''; style-src ''unsafe-inline'' ''self'''] + content-type: [application/json; charset=utf-8] + date: ['Wed, 25 Jul 2018 15:13:23 GMT'] + etag: [W/"33eb541f7daf03e7d506a757939a7889-gzip"] + foreman_api_version: ['2'] + foreman_version: [1.17.1] + keep-alive: ['timeout=5, max=10000'] + server: [Apache/2.4.6 (CentOS)] + set-cookie: [_session_id=4fb23f42b9222f6946d62172c0b86325; path=/; secure; HttpOnly] + status: [200 OK] + strict-transport-security: [max-age=631139040; includeSubdomains] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-download-options: [noopen] + x-frame-options: [sameorigin] + x-permitted-cross-domain-policies: [none] + x-powered-by: [Phusion Passenger 4.0.53] + x-request-id: [cd5b8fb2-548f-493a-8d4a-79a73efa3cf5] + x-runtime: ['0.054644'] + x-xss-protection: [1; mode=block] + status: {code: 200, message: OK} +- request: + body: !!python/unicode '{"organization_id": 9, "name": "Test Content View"}' + headers: + Accept: ['*/*'] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Length: ['51'] + User-Agent: [python-requests/2.18.4] + content-type: [application/json] + method: GET + uri: https://centos7-katello-3-6.sean.example.com/katello/api/v2/content_views + response: + body: + string: !!binary | + H4sIAAAAAAAAA41SwW7bMAy97ysCnt0hTht087UfMGBoeykKQbGYVpgtCpTkzQ3876Vj1XWCFNhN + 5Hvkox55gEhRN1CVBYS0+wy8fsHpgaymYLMuAJmJoXKpaaQANdevc0QcoTrArocKnG4RCiA2KHTQ + oYahAMaQmhigejpATa2nYKM03usmYDFlHLqorBk5zwUY3GupmCl74hqVT95jVOg6y+RaqZgJHXKw + 5FRNaczKxI2OGKLKwMewjEdx4j6LldciZ418+baYpq/gXgpXd+SiKKweLf6Fsd0Om4ypjKmMGQw1 + Wx8XOsQv2tk3PebU2P7naW40bKn2a4mdqZ1hx25ias0oXzRKy39hsy5/XK1vrzbbVbmtyk11s109 + 3N8JPXnzP7SFqXkHs1UWp80dXbo+den37Of51CdInQ2LvR9L+9TCIBJ5oS2Z1GCWzQvL0Xwbczw1 + 6sR5dQ7qOtpusvwP9jnp8N/iCqD8vj5OKhP6tGtseEXzsTQ5+daGrH6ArPEpKNnISa4NjY2XETmF + yNRfBrPgFyBTSxEVsWJsqcNLtGF4Hr69A9j2DxC8AwAA + headers: + apipie-checksum: [83fd72067f1c96eb1196b17193cc48d0] + cache-control: ['max-age=0, private, must-revalidate'] + connection: [Keep-Alive] + content-encoding: [gzip] + content-length: ['432'] + content-security-policy: ['default-src ''self''; child-src ''self''; connect-src + ''self'' ws: wss:; img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' + ''unsafe-inline'' ''self''; style-src ''unsafe-inline'' ''self'''] + content-type: [application/json; charset=utf-8] + date: ['Wed, 25 Jul 2018 15:13:23 GMT'] + etag: [W/"e5377be671b535aa8045efc383418dc4-gzip"] + foreman_api_version: ['2'] + foreman_version: [1.17.1] + keep-alive: ['timeout=5, max=10000'] + server: [Apache/2.4.6 (CentOS)] + set-cookie: [_session_id=c869825c033d242f3ddcb860f1e3f185; path=/; secure; HttpOnly] + status: [200 OK] + strict-transport-security: [max-age=631139040; includeSubdomains] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-download-options: [noopen] + x-frame-options: [sameorigin] + x-permitted-cross-domain-policies: [none] + x-powered-by: [Phusion Passenger 4.0.53] + x-request-id: [a1f0416b-6671-40a8-9bcf-d2eadc454aba] + x-runtime: ['0.084134'] + x-xss-protection: [1; mode=block] + status: {code: 200, message: OK} +- request: + body: !!python/unicode '{"content_view_id": 17, "name": "Test Errata id Content + View Filter"}' + headers: + Accept: ['*/*'] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Length: ['69'] + User-Agent: [python-requests/2.18.4] + content-type: [application/json] + method: GET + uri: https://centos7-katello-3-6.sean.example.com/katello/api/v2/content_view_filters + response: + body: + string: !!binary | + H4sIAAAAAAAAA41UwY6bMBC99yvQnEkFpFG2vlWrXe2t0mrbSxVZDkx2rQJGY5OWRvx7x+AQkqZt + xIWZN/Ybv3n2AZxxqgSRxmDb7Slo1CuOP0hyDLIkBiQyBKJuy5IXoKL8bYoMORAH2HYgoFYVQgyG + CuRyUDaHPgZC25bOgvh2AF3nZWu1qUHsVGkxBl0wRxaPawW8oHXRA5FyKtJFdG9qh7WLvmr8ET3q + 0vHGMRRoc9KNG/YZ+8gJlcNCKu4GsiS9WyTrRbaK0pVIlyJdR19e7nll2xS3lOUjrdwzrT9dbqrG + WO1wanvI1L5GF/5oG9/VTvFBp5KdoRxl0zYNOon1XpOpK14xFeyRvBQyN63PstAlN2eZdgSOZyMc + yA11gSxdbkbh0vW5cHO5wG+3xTJgMmAyYFc0NPSqav1L+Zz02388z3kl5myf59gF2wU27Nb/e0yZ + +LC6YUyzspmoYQaTVBqD4bxKy3OVnic9L7s+Q44mcF3jl3ZtBT1ThIFWpmhLDLRhYCGavDHFJzfJ + S1DlTu9Hyb9jF5I1/py5ANL3ydApd9i021LbNyyOQ+ObWmkb2A8QOE6EnHXUstuw0O46wlZwZLrr + YCD8C0imMg6lIUlYmT1eK+v7P+bCRwyqor/qrCyXBDkP53rthksvj8/EUK+GEJ6fHj4t2B2ZSJJk + 6T3NpjmOK1goeC9L//tE3N32RIxl/Ya/d78B6bBRqEgFAAA= + headers: + apipie-checksum: [83fd72067f1c96eb1196b17193cc48d0] + cache-control: ['max-age=0, private, must-revalidate'] + connection: [Keep-Alive] + content-encoding: [gzip] + content-length: ['548'] + content-security-policy: ['default-src ''self''; child-src ''self''; connect-src + ''self'' ws: wss:; img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' + ''unsafe-inline'' ''self''; style-src ''unsafe-inline'' ''self'''] + content-type: [application/json; charset=utf-8] + date: ['Wed, 25 Jul 2018 15:13:23 GMT'] + etag: [W/"f7db89fbea4a4a3f61f6dfa029ef653b-gzip"] + foreman_api_version: ['2'] + foreman_version: [1.17.1] + keep-alive: ['timeout=5, max=10000'] + server: [Apache/2.4.6 (CentOS)] + set-cookie: [_session_id=922e13192692d717879b723c0c29bb37; path=/; secure; HttpOnly] + status: [200 OK] + strict-transport-security: [max-age=631139040; includeSubdomains] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-download-options: [noopen] + x-frame-options: [sameorigin] + x-permitted-cross-domain-policies: [none] + x-powered-by: [Phusion Passenger 4.0.53] + x-request-id: [d6fa6526-a892-469c-a1be-af99d8f4c1a1] + x-runtime: ['0.083190'] + x-xss-protection: [1; mode=block] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: ['*/*'] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Length: ['0'] + User-Agent: [python-requests/2.18.4] + content-type: [application/json] + method: DELETE + uri: https://centos7-katello-3-6.sean.example.com/katello/api/v2/content_view_filters/22 + response: + body: + string: !!binary | + H4sIAAAAAAAAA41TwY7TMBC98xWRz13UpFsVcl3BFYQWLqiyXGfatZrY1tgOlCr/zjhx06Rb0B7n + vZl54zfjLDszpWUdnDKalXtRO1gwVbGyKBZMiwZYyZ7B+ewTovAiU1X2ZLQH7bMfCn5ln1XtAdmC + VeAkKuv7PjrU9YJJBOGh4sJTk2KZf3hYbh6KdZavy3xV5pvs+/MTVQZbvSVNDrK8JVlWnilurHHK + wzh2j+iYoyrHyp/bONVehNqPKXuDErgN1oLnoFuFRjdUMSa0gNEKLk2I6HLBahrOkexAXN6G0Isb + PCWxfLUdjMs3c+OmdrHYbgd14njieOLueGjwILT6IyLGY/uPcyw6MVX7MuVu1G64vlv3/zUV5eP6 + DWuapE1MTTsYrVIQkfPg0mru0rfRz9upZ8zlCPzJxtJTaAi0aKogfbQiOTTt/DWx3bW6X66L+cZ5 + BOA7FFq+9OuujDwC8oac2lP5FPPi0IdoG1au6H9YIY/iALOAH9AES/+HrIhfhiYsH4kdTq6hWWoq + WHbd9gZMbqU7S9F40mN8/QT8lhTSq3a4lCOcEqjh9+R4Wf5+2RtMxtqwq5V7gepyaxawUS6pn1nS + uAoS6jHQJ4FK+fsMXbBHc7pPJsF/kGga44Eb5AiNaeFeWte9Oid6YjqGi92UcrGze/cXkzUwK+EE + AAA= + headers: + apipie-checksum: [83fd72067f1c96eb1196b17193cc48d0] + cache-control: ['max-age=0, private, must-revalidate'] + connection: [Keep-Alive] + content-encoding: [gzip] + content-length: ['515'] + content-security-policy: ['default-src ''self''; child-src ''self''; connect-src + ''self'' ws: wss:; img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' + ''unsafe-inline'' ''self''; style-src ''unsafe-inline'' ''self'''] + content-type: [application/json; charset=utf-8] + date: ['Wed, 25 Jul 2018 15:13:23 GMT'] + etag: [W/"24994818d6ed83546c809c1a500e0cd1-gzip"] + foreman_api_version: ['2'] + foreman_version: [1.17.1] + keep-alive: ['timeout=5, max=10000'] + server: [Apache/2.4.6 (CentOS)] + set-cookie: [request_method=DELETE; path=/, _session_id=515a45855572a14a76f8dbacb0d077ea; + path=/; secure; HttpOnly] + status: [200 OK] + strict-transport-security: [max-age=631139040; includeSubdomains] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-download-options: [noopen] + x-frame-options: [sameorigin] + x-permitted-cross-domain-policies: [none] + x-powered-by: [Phusion Passenger 4.0.53] + x-request-id: [047e4da9-83cf-4b2a-8c6a-a0ee91214797] + x-runtime: ['0.120414'] + x-xss-protection: [1; mode=block] + status: {code: 200, message: OK} +- request: + body: !!python/unicode '{"content_view_id": 17, "name": "Test Errata id Content + View Filter"}' + headers: + Accept: ['*/*'] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Length: ['69'] + User-Agent: [python-requests/2.18.4] + content-type: [application/json] + method: GET + uri: https://centos7-katello-3-6.sean.example.com/katello/api/v2/content_view_filters + response: + body: + string: !!binary | + H4sIAAAAAAAAA0XLsQqAMBAD0N3PyNxBHe9XRORaDx1qK9d2kOK/WxB0ywtJRY6ZPag3SMX+OHkT + 0NCC6PJibLWoRgWF4n07CKvbP0XNoAp7gRD4EBhEXaXNwcnhNlBJxecEmua7ewAzgtzWewAAAA== + headers: + apipie-checksum: [83fd72067f1c96eb1196b17193cc48d0] + cache-control: ['max-age=0, private, must-revalidate'] + connection: [Keep-Alive] + content-encoding: [gzip] + content-length: ['112'] + content-security-policy: ['default-src ''self''; child-src ''self''; connect-src + ''self'' ws: wss:; img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' + ''unsafe-inline'' ''self''; style-src ''unsafe-inline'' ''self'''] + content-type: [application/json; charset=utf-8] + date: ['Wed, 25 Jul 2018 15:13:23 GMT'] + etag: [W/"956e0fd5b832fbda8d01b01a5b7de844-gzip"] + foreman_api_version: ['2'] + foreman_version: [1.17.1] + keep-alive: ['timeout=5, max=10000'] + server: [Apache/2.4.6 (CentOS)] + set-cookie: [_session_id=ddb6b1d166ecf8c663cd591650ce1f2f; path=/; secure; HttpOnly] + status: [200 OK] + strict-transport-security: [max-age=631139040; includeSubdomains] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-download-options: [noopen] + x-frame-options: [sameorigin] + x-permitted-cross-domain-policies: [none] + x-powered-by: [Phusion Passenger 4.0.53] + x-request-id: [374d0eda-394f-4bf2-99fa-49611bcd135c] + x-runtime: ['0.052858'] + x-xss-protection: [1; mode=block] + status: {code: 200, message: OK} +version: 1 diff --git a/test/test_playbooks/fixtures/content_view_filter-27.yml b/test/test_playbooks/fixtures/content_view_filter-27.yml new file mode 100644 index 0000000000..1708ddff82 --- /dev/null +++ b/test/test_playbooks/fixtures/content_view_filter-27.yml @@ -0,0 +1,508 @@ +interactions: +- request: + body: !!python/unicode '{}' + headers: + Accept: ['*/*'] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Length: ['2'] + User-Agent: [python-requests/2.18.4] + content-type: [application/json] + method: GET + uri: https://centos7-katello-3-6.sean.example.com/katello/api/v2/ping + response: + body: + string: !!binary | + H4sIAAAAAAAAA43NMQ6AIAwF0N1TkM4uGgfjZUgDGAkKhBYXw90VNyadmv/zfirEBcTImWCB4KAH + Mum0yjz5gpj3WG8rdE7INnh51GoaoPSvlJh5++LDXLlCr3cTrf/kY8P/vZjqZg3JHOglIzn6Myml + uwEIzT5aDgEAAA== + headers: + apipie-checksum: [83fd72067f1c96eb1196b17193cc48d0] + cache-control: ['max-age=0, private, must-revalidate'] + connection: [Keep-Alive] + content-encoding: [gzip] + content-length: ['124'] + content-security-policy: ['default-src ''self''; child-src ''self''; connect-src + ''self'' ws: wss:; img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' + ''unsafe-inline'' ''self''; style-src ''unsafe-inline'' ''self'''] + content-type: [application/json; charset=utf-8] + date: ['Wed, 25 Jul 2018 15:13:24 GMT'] + etag: [W/"75cbc4cf24513af7df7f4599fe04ac41-gzip"] + foreman_api_version: ['2'] + foreman_version: [1.17.1] + keep-alive: ['timeout=5, max=10000'] + server: [Apache/2.4.6 (CentOS)] + set-cookie: [_session_id=26f7e2a82a52dab4702d0071143f7c23; path=/; secure; HttpOnly] + status: [200 OK] + strict-transport-security: [max-age=631139040; includeSubdomains] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-download-options: [noopen] + x-frame-options: [sameorigin] + x-permitted-cross-domain-policies: [none] + x-powered-by: [Phusion Passenger 4.0.53] + x-request-id: [f04bb652-92c3-4522-ba3b-882ec8428a9f] + x-runtime: ['0.164397'] + x-xss-protection: [1; mode=block] + status: {code: 200, message: OK} +- request: + body: !!python/unicode '{"search": "name=\"Test Organization\""}' + headers: + Accept: ['*/*'] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Length: ['40'] + User-Agent: [python-requests/2.18.4] + content-type: [application/json] + method: GET + uri: https://centos7-katello-3-6.sean.example.com/katello/api/v2/organizations + response: + body: + string: !!binary | + H4sIAAAAAAAAA42PwWrDMAyG73kKo3MKcdjYathpD7BLd2pHUGLRGdwkyMqhC3n3qU7GxmCwm77P + v/mluTAGZBCM4Exd3ihN7ZewWYx4pm8gbjZRV2uekLt3ZejxQk8nOFAS88Jn7MMHShj6E8CaHFg0 + N+us1F517qcYy5UH9sSbUrPkL0xpipJUH2eI2JKulQuanwVQQseEQr5BbYC6so+76mFX3Rt752rr + 7N68Hp41No3+P7Hgwe3LfNDWZ371SZD415un1HEYM7nbOctbsRSfKnwYS2sBAAA= + headers: + apipie-checksum: [83fd72067f1c96eb1196b17193cc48d0] + cache-control: ['max-age=0, private, must-revalidate'] + connection: [Keep-Alive] + content-encoding: [gzip] + content-length: ['218'] + content-security-policy: ['default-src ''self''; child-src ''self''; connect-src + ''self'' ws: wss:; img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' + ''unsafe-inline'' ''self''; style-src ''unsafe-inline'' ''self'''] + content-type: [application/json; charset=utf-8] + date: ['Wed, 25 Jul 2018 15:13:25 GMT'] + etag: [W/"33eb541f7daf03e7d506a757939a7889-gzip"] + foreman_api_version: ['2'] + foreman_version: [1.17.1] + keep-alive: ['timeout=5, max=10000'] + server: [Apache/2.4.6 (CentOS)] + set-cookie: [_session_id=838158b32e54d5d0c96657c43280d7a2; path=/; secure; HttpOnly] + status: [200 OK] + strict-transport-security: [max-age=631139040; includeSubdomains] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-download-options: [noopen] + x-frame-options: [sameorigin] + x-permitted-cross-domain-policies: [none] + x-powered-by: [Phusion Passenger 4.0.53] + x-request-id: [76d80909-9a5a-4292-8c1f-59e2a47ffab1] + x-runtime: ['0.055715'] + x-xss-protection: [1; mode=block] + status: {code: 200, message: OK} +- request: + body: !!python/unicode '{"organization_id": 9, "name": "Test Content View"}' + headers: + Accept: ['*/*'] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Length: ['51'] + User-Agent: [python-requests/2.18.4] + content-type: [application/json] + method: GET + uri: https://centos7-katello-3-6.sean.example.com/katello/api/v2/content_views + response: + body: + string: !!binary | + H4sIAAAAAAAAA41SwW7bMAy97ysCnt0hTht087UfMGBoeykKQbGYVpgtCpTkzQ3876Vj1XWCFNhN + 5Hvkox55gEhRN1CVBYS0+wy8fsHpgaymYLMuAJmJoXKpaaQANdevc0QcoTrArocKnG4RCiA2KHTQ + oYahAMaQmhigejpATa2nYKM03usmYDFlHLqorBk5zwUY3GupmCl74hqVT95jVOg6y+RaqZgJHXKw + 5FRNaczKxI2OGKLKwMewjEdx4j6LldciZ418+baYpq/gXgpXd+SiKKweLf6Fsd0Om4ypjKmMGQw1 + Wx8XOsQv2tk3PebU2P7naW40bKn2a4mdqZ1hx25ias0oXzRKy39hsy5/XK1vrzbbVbmtyk11s109 + 3N8JPXnzP7SFqXkHs1UWp80dXbo+den37Of51CdInQ2LvR9L+9TCIBJ5oS2Z1GCWzQvL0Xwbczw1 + 6sR5dQ7qOtpusvwP9jnp8N/iCqD8vj5OKhP6tGtseEXzsTQ5+daGrH6ArPEpKNnISa4NjY2XETmF + yNRfBrPgFyBTSxEVsWJsqcNLtGF4Hr69A9j2DxC8AwAA + headers: + apipie-checksum: [83fd72067f1c96eb1196b17193cc48d0] + cache-control: ['max-age=0, private, must-revalidate'] + connection: [Keep-Alive] + content-encoding: [gzip] + content-length: ['432'] + content-security-policy: ['default-src ''self''; child-src ''self''; connect-src + ''self'' ws: wss:; img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' + ''unsafe-inline'' ''self''; style-src ''unsafe-inline'' ''self'''] + content-type: [application/json; charset=utf-8] + date: ['Wed, 25 Jul 2018 15:13:25 GMT'] + etag: [W/"e5377be671b535aa8045efc383418dc4-gzip"] + foreman_api_version: ['2'] + foreman_version: [1.17.1] + keep-alive: ['timeout=5, max=10000'] + server: [Apache/2.4.6 (CentOS)] + set-cookie: [_session_id=096cd2fc173d3a0707a59a1059d8674c; path=/; secure; HttpOnly] + status: [200 OK] + strict-transport-security: [max-age=631139040; includeSubdomains] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-download-options: [noopen] + x-frame-options: [sameorigin] + x-permitted-cross-domain-policies: [none] + x-powered-by: [Phusion Passenger 4.0.53] + x-request-id: [8cd076ad-adb1-4b46-8d57-7335571a715d] + x-runtime: ['0.079728'] + x-xss-protection: [1; mode=block] + status: {code: 200, message: OK} +- request: + body: !!python/unicode '{"organization_id": 9, "name": "Test Product"}' + headers: + Accept: ['*/*'] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Length: ['46'] + User-Agent: [python-requests/2.18.4] + content-type: [application/json] + method: GET + uri: https://centos7-katello-3-6.sean.example.com/katello/api/v2/products + response: + body: + string: !!binary | + H4sIAAAAAAAAA2VQy07DMBC88xXWnlOUpIQ2vqF+AEiUE0KW66xSC8e2/ACFqv+OnZY2Krfd2dnd + mTlAMIEroFUBPu6ujeU9ngp07NTUZQHonHFAdVQqLSB3Yn/pjAtAD7AbgYLmA0IBxnWY6MC9gGMB + Dn1UwQN9P4DsgLYFCMtyBatlW7btevXQPJZpcdqnsEUfyIszXRQhoYrvUJ1hdoU79MJJG6TRafhE + 9tzakSgZgkIS8gl74abqSyZR09eqSbJHLZhVXE/I2UrGfBwG7sZsyUch0CfddTLR25594viPHnjI + kl9TI3VPNmawCgPeT7qT3sxK87qs1otytagbUjW0KmnVkrftZs5i3ym39A2WZJA6JgdTlD3X8odn + l+wc3hzLOuepPc9nN9HdzKZrx1kUf8YcWuNlMG5kwkQdcgAfx7tfwzLIbjUCAAA= + headers: + apipie-checksum: [83fd72067f1c96eb1196b17193cc48d0] + cache-control: ['max-age=0, private, must-revalidate'] + connection: [Keep-Alive] + content-encoding: [gzip] + content-length: ['332'] + content-security-policy: ['default-src ''self''; child-src ''self''; connect-src + ''self'' ws: wss:; img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' + ''unsafe-inline'' ''self''; style-src ''unsafe-inline'' ''self'''] + content-type: [application/json; charset=utf-8] + date: ['Wed, 25 Jul 2018 15:13:25 GMT'] + etag: [W/"e094e3b621673748cc58c93af2f043f8-gzip"] + foreman_api_version: ['2'] + foreman_version: [1.17.1] + keep-alive: ['timeout=5, max=10000'] + server: [Apache/2.4.6 (CentOS)] + set-cookie: [_session_id=fea51aaea479d538c7a623fb86af1b6d; path=/; secure; HttpOnly] + status: [200 OK] + strict-transport-security: [max-age=631139040; includeSubdomains] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-download-options: [noopen] + x-frame-options: [sameorigin] + x-permitted-cross-domain-policies: [none] + x-powered-by: [Phusion Passenger 4.0.53] + x-request-id: [c3dd7296-d823-42bc-aeb4-ff46c1f74ba8] + x-runtime: ['0.132701'] + x-xss-protection: [1; mode=block] + status: {code: 200, message: OK} +- request: + body: !!python/unicode '{"product_id": 9, "name": "Test Repository"}' + headers: + Accept: ['*/*'] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Length: ['44'] + User-Agent: [python-requests/2.18.4] + content-type: [application/json] + method: GET + uri: https://centos7-katello-3-6.sean.example.com/katello/api/v2/repositories + response: + body: + string: !!binary | + H4sIAAAAAAAAA3VTyY7bMAy99ysCnuPY8TJerr0WaFFMT8VAkCU6I4xtCVqmzQT591K202nQ9mKT + IkU9vkdewGvPR+iOe3Chf3cMP+FqoGWrk2d7QGu1hW4O40gXkFvx/NvT1kN3gf4MHcx8QtiDthIp + HbgTcN2DRRdG76D7fgGhZ4+zZ/5sqDacw0T5wdLr8Oy9cV2aWjTaHQaU2nKD2ox40PaUmjCa9SNx + 0mzJSt+0TiG+MHKvXpEge0IGj+g8+2xPfFZvFNBz+kn1lttzKoLzekqXhC9WyyD86nyN9ZTX9kz1 + 1gZh1ouxh56LF5wlU5Kwq0Gt3bUZr/ohT5qHRiRlnh2TVoohKUSPZVVz3pQt3b11PPIexxtrShLL + xX4lbMW7u0OwZcPf2MyKOnIeq7T0gmHRgrpos7Zt6rJ6yOC+9tYqnbrzLJgZ+Uxy3PSS6IRVJhJ1 + y5Dcx4gi7PaVhoPK4U/PYgyerhGf27wNBxRVw3PZN0nxIIeklEIkfZX3SZ23dVnUXOYyj1o7tBsy + Lie1POi59SgZp6aAaGySrE7yanesumPWZdnu2+NHSiMB/pt0LLYkquVjbVLZGJRwm754FIRA51YK + Tzaa3fGQXd8lEjrMcU4voJ23iIxmZo6TQCsgNY2AZRON1ECM/uuMjeo+4Plpca2ZoCtyQrdYWdwz + 8bJsVzzdHHayOhhauGXfuKfV6EqKBmrEs4kEHHG5PKjNkNjT/0812A/aPRfV2BG3waOD69P1wy/D + RJa48AMAAA== + headers: + apipie-checksum: [83fd72067f1c96eb1196b17193cc48d0] + cache-control: ['max-age=0, private, must-revalidate'] + connection: [Keep-Alive] + content-encoding: [gzip] + content-length: ['577'] + content-security-policy: ['default-src ''self''; child-src ''self''; connect-src + ''self'' ws: wss:; img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' + ''unsafe-inline'' ''self''; style-src ''unsafe-inline'' ''self'''] + content-type: [application/json; charset=utf-8] + date: ['Wed, 25 Jul 2018 15:13:25 GMT'] + etag: [W/"4800e2cb797f73e5a7b98036a1a0314c-gzip"] + foreman_api_version: ['2'] + foreman_version: [1.17.1] + keep-alive: ['timeout=5, max=10000'] + server: [Apache/2.4.6 (CentOS)] + set-cookie: [_session_id=4fcb67aec0b64ee98a7362380abe8244; path=/; secure; HttpOnly] + status: [200 OK] + strict-transport-security: [max-age=631139040; includeSubdomains] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-download-options: [noopen] + x-frame-options: [sameorigin] + x-permitted-cross-domain-policies: [none] + x-powered-by: [Phusion Passenger 4.0.53] + x-request-id: [41f9b8c4-87af-4725-9f80-d6a1cc704f4c] + x-runtime: ['0.107758'] + x-xss-protection: [1; mode=block] + status: {code: 200, message: OK} +- request: + body: !!python/unicode '{"content_view_id": 17, "name": "Test Errata date Content + View Filter"}' + headers: + Accept: ['*/*'] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Length: ['71'] + User-Agent: [python-requests/2.18.4] + content-type: [application/json] + method: GET + uri: https://centos7-katello-3-6.sean.example.com/katello/api/v2/content_view_filters + response: + body: + string: !!binary | + H4sIAAAAAAAAA0XLsQqAMBAD0N3PyNxBHe9XRORaDx1qK9d2kOK/WxB0ywtJRY6ZPag3SMX+OHkT + 0NCC6PJibLWoRgWF4n07CKvbP0XNoAp7gRD4EBhEXaXNwcnhNlBJxecEmua7ewAzgtzWewAAAA== + headers: + apipie-checksum: [83fd72067f1c96eb1196b17193cc48d0] + cache-control: ['max-age=0, private, must-revalidate'] + connection: [Keep-Alive] + content-encoding: [gzip] + content-length: ['112'] + content-security-policy: ['default-src ''self''; child-src ''self''; connect-src + ''self'' ws: wss:; img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' + ''unsafe-inline'' ''self''; style-src ''unsafe-inline'' ''self'''] + content-type: [application/json; charset=utf-8] + date: ['Wed, 25 Jul 2018 15:13:25 GMT'] + etag: [W/"956e0fd5b832fbda8d01b01a5b7de844-gzip"] + foreman_api_version: ['2'] + foreman_version: [1.17.1] + keep-alive: ['timeout=5, max=10000'] + server: [Apache/2.4.6 (CentOS)] + set-cookie: [_session_id=5e9e929401edd67981a024e16b31ab7e; path=/; secure; HttpOnly] + status: [200 OK] + strict-transport-security: [max-age=631139040; includeSubdomains] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-download-options: [noopen] + x-frame-options: [sameorigin] + x-permitted-cross-domain-policies: [none] + x-powered-by: [Phusion Passenger 4.0.53] + x-request-id: [c58c9b6c-6e17-422e-86b5-5c2135ec81a1] + x-runtime: ['0.051571'] + x-xss-protection: [1; mode=block] + status: {code: 200, message: OK} +- request: + body: !!python/unicode '{"content_view_id": 17, "inclusion": false, "repository_ids": + [13], "type": "erratum", "name": "Test Errata date Content View Filter"}' + headers: + Accept: ['*/*'] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Length: ['134'] + User-Agent: [python-requests/2.18.4] + content-type: [application/json] + method: POST + uri: https://centos7-katello-3-6.sean.example.com/katello/api/v2/content_view_filters + response: + body: + string: !!binary | + H4sIAAAAAAAAA6VVwW7bMAy97ysMnePasZMm8bXYTgM2DNsuQyHIEp0KtS1BktNlRf59lKykTpoO + A3qJJZIimaf3qCR5JrLn7WCl6knVsNbCjEhBqqKckZ51QCryHaxLPhrDHEsEc5Dcqd5B75KfEp6S + T7J1YMiMCLDcSO1Cpn5o2xnhBjBeUOYwTZHP12m+SotlMl9W87LCxY/vd3hy0OJ/wvhYlu6wLKme + cd9pZaWDU+PB0vsYKSypft37rho2tO4U0ijDgepBa3AU+p00qu/wxClgB8aDQbkavDWfkRabs1h2 + dBz/m4FQXJl9LDYv70fo5qtz6KZwEZ+uhjb6aPTR6LuCoTJb1ss/zNuoT785t3kkptW+TH0X1S58 + Idvh39dUVIv/uaZJ2ATUeAcnqCR4y/OI0gXBvp3wvOz6zHMkgdtrf3Q/dGjURomBOw9FRGia+Wv0 + Hl5Oh8u1Pl5ZZwBobVjPH8J1C8UfwdAOkWrw+NTm2DZsje5IVRZYmPFHtoWzDd0aNWhUEELhRYMd + Vgv0jpTrsJcWD+SHw/2FMaIVeRZ3J0qf9i8ioJdOxp3cjUx5hH009vB7Ql4yv8kDwAisHupW2gcQ + R65pMJ20sfoziTVeCqLVmQFFAkK66x5ksDNqf90ZC77hNKpTDqgy1ECndnAt7HC4QqernBiMJ9CD + c9pWWRbO3DQglGEalG7hBkWU6aHV44/AkjREZX+Uyogvg8KX2IZm7uGagrLPEmlj9hkfrFNdFgIi + 2bLXzGXGE4z0KixmpEa6QC9Q09i7bCQO0YqwTc6WdVOk69s1TxeosnQjeJOWvIbFcsXYerGZqCDq + ZLy9d6jqtYC4DsOGrMpNvtmsV4vlrefNNV3NiN33nOqWIb9+jSHnoyxG+PHhxw72bnasJZGb3kfu + D5GUYRf7IOVyzQpRr9PyVjTpQnCe1suiTlfFZrUoV0wUovB3bcHEzpjoZCjomHlrWOVVnp+GlXgz + aF7GIMzlHxn8KpSrCNyw4VEhduAcrB0h3Bq/rFBh7x81RxtFwfx7Btmwyt81jPBdlHEhoPbTaXIb + 9EkZ/8KRMkFsB3wMiZ9dUW3HtNjRcYYdPvwFEcr9UlgIAAA= + headers: + apipie-checksum: [83fd72067f1c96eb1196b17193cc48d0] + cache-control: ['max-age=0, private, must-revalidate'] + connection: [Keep-Alive] + content-encoding: [gzip] + content-length: ['833'] + content-security-policy: ['default-src ''self''; child-src ''self''; connect-src + ''self'' ws: wss:; img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' + ''unsafe-inline'' ''self''; style-src ''unsafe-inline'' ''self'''] + content-type: [application/json; charset=utf-8] + date: ['Wed, 25 Jul 2018 15:13:25 GMT'] + etag: [W/"d2752e7fa20ebc0e29582a1108158daf-gzip"] + foreman_api_version: ['2'] + foreman_version: [1.17.1] + keep-alive: ['timeout=5, max=10000'] + server: [Apache/2.4.6 (CentOS)] + set-cookie: [request_method=POST; path=/, _session_id=47fea565d67926fb8e872662844c2533; + path=/; secure; HttpOnly] + status: [200 OK] + strict-transport-security: [max-age=631139040; includeSubdomains] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-download-options: [noopen] + x-frame-options: [sameorigin] + x-permitted-cross-domain-policies: [none] + x-powered-by: [Phusion Passenger 4.0.53] + x-request-id: [535253b9-5a4d-4acf-a69b-2c09e780aace] + x-runtime: ['0.162877'] + x-xss-protection: [1; mode=block] + status: {code: 200, message: OK} +- request: + body: !!python/unicode '{"content_view_id": 17, "name": "Test Errata date Content + View Filter"}' + headers: + Accept: ['*/*'] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Length: ['71'] + User-Agent: [python-requests/2.18.4] + content-type: [application/json] + method: GET + uri: https://centos7-katello-3-6.sean.example.com/katello/api/v2/content_view_filters + response: + body: + string: !!binary | + H4sIAAAAAAAAA6VVTY/jNgy991cEOscTx04mia+L7alAi2Lby2IgyBKdEca2BErONjvIfy8lKx5P + mikW2IstfkiPIh+pV+aNFy2r1kvmhvpNsOII4wKQj0KRLxkgGmRVP7QtbQCB8nmSDHpWvbL6zCrW + iw7YkhlUQO5MOMkuS4bghtY7Vn19ZbqX7eC06VnViNbBkmlFGOVy3FuxL+D84jOi8GKhhIfFJ9N7 + 6P3ibw3fFr/q1tPRS6bASdTWx5PGSCQC+SsuKB5W5Ot9lu+yYrtYb6t1WdHiry+faOdg1Y+4yRGW + nwg23E+azhqnPUyBR00ffLQKl3sKUTWCrjq5NAYlcDtYC55Df9Jo+o52TA4nwJAMLs0QtJTqloJz + BDsarndDiOAGzwlsXT6NqVvv3qduni4WjquhTTaebDzZ7uTQ4FH0+rsIOh6OP7zXhUzM0X6f227Q + bmzxtMv/l6moNj9SppnbLKmpBlOqNCTKhSzdEOzPKZ+3Ub+zXEngzzZsPQ8duxBEKmhn1NBCgk0F + S9LEjUl+YxO/NQrp9WlM+Quck7KHf2YsYOuHPEZKEdqhbrV7BnUtGvVqp11Cf2UJ4w2QtB4HYhso + 7e9biAoezfm+MQF+YETTGQ/cIEfozAnuuV0ud+pyJ7lUdgyVePbeumq1inseGlAGhQVjW3ggNq7s + 0NrxowiSR6/Vd2NWLMBQB2kKwwr/fI+Kq990jQLPKzk4b7pVdPgDqZbSr/5LgXHWsd7ExZLVQr5A + r6g5KHbd6HHQHXKxrZsi2z/uZbYhumYHJZuslDVstjsh9pvDjE6JcGP1foKedow6FD31qrSxa9mu + POSHw3632T4G3szPTlclrTv3kttWEL++Xkf3fCYkj9CHoX8pdjzRO5G4GWzs6ZJIGaUUByu3e1Go + ep+Vj6rJNkrKrN4WdbYrDrtNuROqUEWotQNMkQnV6QjoBX7U9XmV51PXqw+d1mVyorPCtKa/oXZV + 7PoQBdUgJTg3pvCIYVlRh13eShQHcmwnQ50BwIkzfWACjWhliALIO6JUQxm9p+PUMO8MXhyjiLZj + VVlQdHGVhydXvsSHNmiTwI9oBkvvYnx6hafWqDY3cydubnRaKKjpP68G/0bPsAvVWFBuB3pV4uxK + 3XY9liK6zrDL0+WXfwEB6JsaGQgAAA== + headers: + apipie-checksum: [83fd72067f1c96eb1196b17193cc48d0] + cache-control: ['max-age=0, private, must-revalidate'] + connection: [Keep-Alive] + content-encoding: [gzip] + content-length: ['877'] + content-security-policy: ['default-src ''self''; child-src ''self''; connect-src + ''self'' ws: wss:; img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' + ''unsafe-inline'' ''self''; style-src ''unsafe-inline'' ''self'''] + content-type: [application/json; charset=utf-8] + date: ['Wed, 25 Jul 2018 15:13:25 GMT'] + etag: [W/"9193e5716c8141737be1341a6ffe124c-gzip"] + foreman_api_version: ['2'] + foreman_version: [1.17.1] + keep-alive: ['timeout=5, max=10000'] + server: [Apache/2.4.6 (CentOS)] + set-cookie: [_session_id=e4789880a310a7d0023f7bfab30c5421; path=/; secure; HttpOnly] + status: [200 OK] + strict-transport-security: [max-age=631139040; includeSubdomains] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-download-options: [noopen] + x-frame-options: [sameorigin] + x-permitted-cross-domain-policies: [none] + x-powered-by: [Phusion Passenger 4.0.53] + x-request-id: [b51e770a-5216-4ea2-a01a-c4369c148ebf] + x-runtime: ['0.119678'] + x-xss-protection: [1; mode=block] + status: {code: 200, message: OK} +- request: + body: !!python/unicode '{"content_view_filter_id": 23, "name": null}' + headers: + Accept: ['*/*'] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Length: ['44'] + User-Agent: [python-requests/2.18.4] + content-type: [application/json] + method: GET + uri: https://centos7-katello-3-6.sean.example.com/katello/api/v2/content_view_filters/23/rules + response: + body: + string: !!binary | + H4sIAAAAAAAAA0XLsQqAMBAD0N3PyNxBHe9XRKSthwqHlWs7SOm/WxB0ywtJQQrJCqg3iNn9uOzG + oKEF1uXF2GpWDQo6s0g7sFW/fwqaQAXuBuFYYRB05TaGjR7VQDlmSRE0zbV7AKfVSwR5AAAA + headers: + apipie-checksum: [83fd72067f1c96eb1196b17193cc48d0] + cache-control: ['max-age=0, private, must-revalidate'] + connection: [Keep-Alive] + content-encoding: [gzip] + content-length: ['111'] + content-security-policy: ['default-src ''self''; child-src ''self''; connect-src + ''self'' ws: wss:; img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' + ''unsafe-inline'' ''self''; style-src ''unsafe-inline'' ''self'''] + content-type: [application/json; charset=utf-8] + date: ['Wed, 25 Jul 2018 15:13:26 GMT'] + etag: [W/"2515bdcde58d61e5000459519256b95b-gzip"] + foreman_api_version: ['2'] + foreman_version: [1.17.1] + keep-alive: ['timeout=5, max=10000'] + server: [Apache/2.4.6 (CentOS)] + set-cookie: [_session_id=91000c2d2ff480eef3374ee215fe4a68; path=/; secure; HttpOnly] + status: [200 OK] + strict-transport-security: [max-age=631139040; includeSubdomains] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-download-options: [noopen] + x-frame-options: [sameorigin] + x-permitted-cross-domain-policies: [none] + x-powered-by: [Phusion Passenger 4.0.53] + x-request-id: [de88a042-a978-40ab-9219-1283affe41d3] + x-runtime: ['0.049989'] + x-xss-protection: [1; mode=block] + status: {code: 200, message: OK} +- request: + body: !!python/unicode '{"end_date": "2018-01-03", "date_type": "updated", "content_view_filter_id": + 23, "start_date": "2017-01-03", "types": ["bugfix", "enhancement", "security"]}' + headers: + Accept: ['*/*'] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Length: ['156'] + User-Agent: [python-requests/2.18.4] + content-type: [application/json] + method: POST + uri: https://centos7-katello-3-6.sean.example.com/katello/api/v2/content_view_filters/23/rules + response: + body: + string: !!binary | + H4sIAAAAAAAAA32NQQrCMBRE954i/HUKTUqtZOsVdCUSYvKrAU1L+qsW8e4mRYorlzO8N8PYC2wX + CAPpu8eHbv2VMGrvQMmKw0AmknaGEBTIUjRFKYqyAg4Y3E+/WXqaehxAHeA0nlv/nMmLCRZv6SOl + Ae0YPU1w5JB9nYU0MvY5uUTM35KDjZgbbWj5aApZM1ErUSm5ZvvdNuFf8T/2Xn0AqSj0p+oAAAA= + headers: + apipie-checksum: [83fd72067f1c96eb1196b17193cc48d0] + cache-control: ['max-age=0, private, must-revalidate'] + connection: [Keep-Alive] + content-encoding: [gzip] + content-length: ['170'] + content-security-policy: ['default-src ''self''; child-src ''self''; connect-src + ''self'' ws: wss:; img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' + ''unsafe-inline'' ''self''; style-src ''unsafe-inline'' ''self'''] + content-type: [application/json; charset=utf-8] + date: ['Wed, 25 Jul 2018 15:13:26 GMT'] + etag: [W/"d6af451459b5fc825fbdb90d516c41af-gzip"] + foreman_api_version: ['2'] + foreman_version: [1.17.1] + keep-alive: ['timeout=5, max=10000'] + server: [Apache/2.4.6 (CentOS)] + set-cookie: [request_method=POST; path=/, _session_id=c092eb6050fadb1576e0123a2287dbfa; + path=/; secure; HttpOnly] + status: [200 OK] + strict-transport-security: [max-age=631139040; includeSubdomains] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-download-options: [noopen] + x-frame-options: [sameorigin] + x-permitted-cross-domain-policies: [none] + x-powered-by: [Phusion Passenger 4.0.53] + x-request-id: [460bb7ed-3909-436a-be14-73d08711e419] + x-runtime: ['0.069366'] + x-xss-protection: [1; mode=block] + status: {code: 200, message: OK} +version: 1 diff --git a/test/test_playbooks/fixtures/content_view_filter-29.yml b/test/test_playbooks/fixtures/content_view_filter-29.yml new file mode 100644 index 0000000000..b6b1c166c9 --- /dev/null +++ b/test/test_playbooks/fixtures/content_view_filter-29.yml @@ -0,0 +1,522 @@ +interactions: +- request: + body: !!python/unicode '{}' + headers: + Accept: ['*/*'] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Length: ['2'] + User-Agent: [python-requests/2.18.4] + content-type: [application/json] + method: GET + uri: https://centos7-katello-3-6.sean.example.com/katello/api/v2/ping + response: + body: + string: !!binary | + H4sIAAAAAAAAA43NPQqAMAwF4N1TSOYuKgp6mRK0YrF/NKmL9O5aNyedHnl84dX1CcTIiWACv4MA + UvHQs7rvE0IyoeRbLCkia++kLVU3QhaPlJh4++LNUPiMbjEqaPfJ+xf/N9GWn9VHZdFJRtrpz0zO + 1QWyG1/1DgEAAA== + headers: + apipie-checksum: [83fd72067f1c96eb1196b17193cc48d0] + cache-control: ['max-age=0, private, must-revalidate'] + connection: [Keep-Alive] + content-encoding: [gzip] + content-length: ['124'] + content-security-policy: ['default-src ''self''; child-src ''self''; connect-src + ''self'' ws: wss:; img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' + ''unsafe-inline'' ''self''; style-src ''unsafe-inline'' ''self'''] + content-type: [application/json; charset=utf-8] + date: ['Wed, 25 Jul 2018 15:13:27 GMT'] + etag: [W/"7b1f863038903a56ef04a32b22dfeb4e-gzip"] + foreman_api_version: ['2'] + foreman_version: [1.17.1] + keep-alive: ['timeout=5, max=10000'] + server: [Apache/2.4.6 (CentOS)] + set-cookie: [_session_id=b5defdc684248f606051833990c3ffaa; path=/; secure; HttpOnly] + status: [200 OK] + strict-transport-security: [max-age=631139040; includeSubdomains] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-download-options: [noopen] + x-frame-options: [sameorigin] + x-permitted-cross-domain-policies: [none] + x-powered-by: [Phusion Passenger 4.0.53] + x-request-id: [2acfaa7e-8b94-41b8-9d8d-42dff473e494] + x-runtime: ['0.149889'] + x-xss-protection: [1; mode=block] + status: {code: 200, message: OK} +- request: + body: !!python/unicode '{"search": "name=\"Test Organization\""}' + headers: + Accept: ['*/*'] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Length: ['40'] + User-Agent: [python-requests/2.18.4] + content-type: [application/json] + method: GET + uri: https://centos7-katello-3-6.sean.example.com/katello/api/v2/organizations + response: + body: + string: !!binary | + H4sIAAAAAAAAA42PwWrDMAyG73kKo3MKcdjYathpD7BLd2pHUGLRGdwkyMqhC3n3qU7GxmCwm77P + v/mluTAGZBCM4Exd3ihN7ZewWYx4pm8gbjZRV2uekLt3ZejxQk8nOFAS88Jn7MMHShj6E8CaHFg0 + N+us1F517qcYy5UH9sSbUrPkL0xpipJUH2eI2JKulQuanwVQQseEQr5BbYC6so+76mFX3Rt752rr + 7N68Hp41No3+P7Hgwe3LfNDWZ371SZD415un1HEYM7nbOctbsRSfKnwYS2sBAAA= + headers: + apipie-checksum: [83fd72067f1c96eb1196b17193cc48d0] + cache-control: ['max-age=0, private, must-revalidate'] + connection: [Keep-Alive] + content-encoding: [gzip] + content-length: ['218'] + content-security-policy: ['default-src ''self''; child-src ''self''; connect-src + ''self'' ws: wss:; img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' + ''unsafe-inline'' ''self''; style-src ''unsafe-inline'' ''self'''] + content-type: [application/json; charset=utf-8] + date: ['Wed, 25 Jul 2018 15:13:27 GMT'] + etag: [W/"33eb541f7daf03e7d506a757939a7889-gzip"] + foreman_api_version: ['2'] + foreman_version: [1.17.1] + keep-alive: ['timeout=5, max=10000'] + server: [Apache/2.4.6 (CentOS)] + set-cookie: [_session_id=50f2dfa7fae5dea77e1ca596adb9e0ec; path=/; secure; HttpOnly] + status: [200 OK] + strict-transport-security: [max-age=631139040; includeSubdomains] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-download-options: [noopen] + x-frame-options: [sameorigin] + x-permitted-cross-domain-policies: [none] + x-powered-by: [Phusion Passenger 4.0.53] + x-request-id: [24158213-75e9-422f-8980-395b0d78621d] + x-runtime: ['0.055351'] + x-xss-protection: [1; mode=block] + status: {code: 200, message: OK} +- request: + body: !!python/unicode '{"organization_id": 9, "name": "Test Content View"}' + headers: + Accept: ['*/*'] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Length: ['51'] + User-Agent: [python-requests/2.18.4] + content-type: [application/json] + method: GET + uri: https://centos7-katello-3-6.sean.example.com/katello/api/v2/content_views + response: + body: + string: !!binary | + H4sIAAAAAAAAA41SwW7bMAy97ysCnt0hTht087UfMGBoeykKQbGYVpgtCpTkzQ3876Vj1XWCFNhN + 5Hvkox55gEhRN1CVBYS0+wy8fsHpgaymYLMuAJmJoXKpaaQANdevc0QcoTrArocKnG4RCiA2KHTQ + oYahAMaQmhigejpATa2nYKM03usmYDFlHLqorBk5zwUY3GupmCl74hqVT95jVOg6y+RaqZgJHXKw + 5FRNaczKxI2OGKLKwMewjEdx4j6LldciZ418+baYpq/gXgpXd+SiKKweLf6Fsd0Om4ypjKmMGQw1 + Wx8XOsQv2tk3PebU2P7naW40bKn2a4mdqZ1hx25ias0oXzRKy39hsy5/XK1vrzbbVbmtyk11s109 + 3N8JPXnzP7SFqXkHs1UWp80dXbo+den37Of51CdInQ2LvR9L+9TCIBJ5oS2Z1GCWzQvL0Xwbczw1 + 6sR5dQ7qOtpusvwP9jnp8N/iCqD8vj5OKhP6tGtseEXzsTQ5+daGrH6ArPEpKNnISa4NjY2XETmF + yNRfBrPgFyBTSxEVsWJsqcNLtGF4Hr69A9j2DxC8AwAA + headers: + apipie-checksum: [83fd72067f1c96eb1196b17193cc48d0] + cache-control: ['max-age=0, private, must-revalidate'] + connection: [Keep-Alive] + content-encoding: [gzip] + content-length: ['432'] + content-security-policy: ['default-src ''self''; child-src ''self''; connect-src + ''self'' ws: wss:; img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' + ''unsafe-inline'' ''self''; style-src ''unsafe-inline'' ''self'''] + content-type: [application/json; charset=utf-8] + date: ['Wed, 25 Jul 2018 15:13:27 GMT'] + etag: [W/"e5377be671b535aa8045efc383418dc4-gzip"] + foreman_api_version: ['2'] + foreman_version: [1.17.1] + keep-alive: ['timeout=5, max=10000'] + server: [Apache/2.4.6 (CentOS)] + set-cookie: [_session_id=a570917b90893462ce60c54da8556055; path=/; secure; HttpOnly] + status: [200 OK] + strict-transport-security: [max-age=631139040; includeSubdomains] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-download-options: [noopen] + x-frame-options: [sameorigin] + x-permitted-cross-domain-policies: [none] + x-powered-by: [Phusion Passenger 4.0.53] + x-request-id: [b0d7b93e-b601-4095-b050-1ae43c6c9f99] + x-runtime: ['0.084715'] + x-xss-protection: [1; mode=block] + status: {code: 200, message: OK} +- request: + body: !!python/unicode '{"organization_id": 9, "name": "Test Product"}' + headers: + Accept: ['*/*'] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Length: ['46'] + User-Agent: [python-requests/2.18.4] + content-type: [application/json] + method: GET + uri: https://centos7-katello-3-6.sean.example.com/katello/api/v2/products + response: + body: + string: !!binary | + H4sIAAAAAAAAA2VQy07DMBC88xXWnlOUpIQ2vqF+AEiUE0KW66xSC8e2/ACFqv+OnZY2Krfd2dnd + mTlAMIEroFUBPu6ujeU9ngp07NTUZQHonHFAdVQqLSB3Yn/pjAtAD7AbgYLmA0IBxnWY6MC9gGMB + Dn1UwQN9P4DsgLYFCMtyBatlW7btevXQPJZpcdqnsEUfyIszXRQhoYrvUJ1hdoU79MJJG6TRafhE + 9tzakSgZgkIS8gl74abqSyZR09eqSbJHLZhVXE/I2UrGfBwG7sZsyUch0CfddTLR25594viPHnjI + kl9TI3VPNmawCgPeT7qT3sxK87qs1otytagbUjW0KmnVkrftZs5i3ym39A2WZJA6JgdTlD3X8odn + l+wc3hzLOuepPc9nN9HdzKZrx1kUf8YcWuNlMG5kwkQdcgAfx7tfwzLIbjUCAAA= + headers: + apipie-checksum: [83fd72067f1c96eb1196b17193cc48d0] + cache-control: ['max-age=0, private, must-revalidate'] + connection: [Keep-Alive] + content-encoding: [gzip] + content-length: ['332'] + content-security-policy: ['default-src ''self''; child-src ''self''; connect-src + ''self'' ws: wss:; img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' + ''unsafe-inline'' ''self''; style-src ''unsafe-inline'' ''self'''] + content-type: [application/json; charset=utf-8] + date: ['Wed, 25 Jul 2018 15:13:27 GMT'] + etag: [W/"e094e3b621673748cc58c93af2f043f8-gzip"] + foreman_api_version: ['2'] + foreman_version: [1.17.1] + keep-alive: ['timeout=5, max=10000'] + server: [Apache/2.4.6 (CentOS)] + set-cookie: [_session_id=6299b40f5971a88c9e769621f4032659; path=/; secure; HttpOnly] + status: [200 OK] + strict-transport-security: [max-age=631139040; includeSubdomains] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-download-options: [noopen] + x-frame-options: [sameorigin] + x-permitted-cross-domain-policies: [none] + x-powered-by: [Phusion Passenger 4.0.53] + x-request-id: [a8c42855-b00c-41a8-902f-e25170888d5d] + x-runtime: ['0.134046'] + x-xss-protection: [1; mode=block] + status: {code: 200, message: OK} +- request: + body: !!python/unicode '{"product_id": 9, "name": "Test Repository"}' + headers: + Accept: ['*/*'] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Length: ['44'] + User-Agent: [python-requests/2.18.4] + content-type: [application/json] + method: GET + uri: https://centos7-katello-3-6.sean.example.com/katello/api/v2/repositories + response: + body: + string: !!binary | + H4sIAAAAAAAAA3VTyY7bMAy99ysCnuPY8TJerr0WaFFMT8VAkCU6I4xtCVqmzQT591K202nQ9mKT + IkU9vkdewGvPR+iOe3Chf3cMP+FqoGWrk2d7QGu1hW4O40gXkFvx/NvT1kN3gf4MHcx8QtiDthIp + HbgTcN2DRRdG76D7fgGhZ4+zZ/5sqDacw0T5wdLr8Oy9cV2aWjTaHQaU2nKD2ox40PaUmjCa9SNx + 0mzJSt+0TiG+MHKvXpEge0IGj+g8+2xPfFZvFNBz+kn1lttzKoLzekqXhC9WyyD86nyN9ZTX9kz1 + 1gZh1ouxh56LF5wlU5Kwq0Gt3bUZr/ohT5qHRiRlnh2TVoohKUSPZVVz3pQt3b11PPIexxtrShLL + xX4lbMW7u0OwZcPf2MyKOnIeq7T0gmHRgrpos7Zt6rJ6yOC+9tYqnbrzLJgZ+Uxy3PSS6IRVJhJ1 + y5Dcx4gi7PaVhoPK4U/PYgyerhGf27wNBxRVw3PZN0nxIIeklEIkfZX3SZ23dVnUXOYyj1o7tBsy + Lie1POi59SgZp6aAaGySrE7yanesumPWZdnu2+NHSiMB/pt0LLYkquVjbVLZGJRwm754FIRA51YK + Tzaa3fGQXd8lEjrMcU4voJ23iIxmZo6TQCsgNY2AZRON1ECM/uuMjeo+4Plpca2ZoCtyQrdYWdwz + 8bJsVzzdHHayOhhauGXfuKfV6EqKBmrEs4kEHHG5PKjNkNjT/0812A/aPRfV2BG3waOD69P1wy/D + RJa48AMAAA== + headers: + apipie-checksum: [83fd72067f1c96eb1196b17193cc48d0] + cache-control: ['max-age=0, private, must-revalidate'] + connection: [Keep-Alive] + content-encoding: [gzip] + content-length: ['577'] + content-security-policy: ['default-src ''self''; child-src ''self''; connect-src + ''self'' ws: wss:; img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' + ''unsafe-inline'' ''self''; style-src ''unsafe-inline'' ''self'''] + content-type: [application/json; charset=utf-8] + date: ['Wed, 25 Jul 2018 15:13:28 GMT'] + etag: [W/"4800e2cb797f73e5a7b98036a1a0314c-gzip"] + foreman_api_version: ['2'] + foreman_version: [1.17.1] + keep-alive: ['timeout=5, max=10000'] + server: [Apache/2.4.6 (CentOS)] + set-cookie: [_session_id=61303336cf850154961084e0d68db111; path=/; secure; HttpOnly] + status: [200 OK] + strict-transport-security: [max-age=631139040; includeSubdomains] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-download-options: [noopen] + x-frame-options: [sameorigin] + x-permitted-cross-domain-policies: [none] + x-powered-by: [Phusion Passenger 4.0.53] + x-request-id: [0d69f2a3-5e74-47b9-8746-7053eb829cb1] + x-runtime: ['0.111855'] + x-xss-protection: [1; mode=block] + status: {code: 200, message: OK} +- request: + body: !!python/unicode '{"content_view_id": 17, "name": "Test Errata date Content + View Filter"}' + headers: + Accept: ['*/*'] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Length: ['71'] + User-Agent: [python-requests/2.18.4] + content-type: [application/json] + method: GET + uri: https://centos7-katello-3-6.sean.example.com/katello/api/v2/content_view_filters + response: + body: + string: !!binary | + H4sIAAAAAAAAA6VWUY/iNhB+769AfiabkMACeT3dPVVqVV37clpZjj0Ba5PYsh3ucoj/3rFjsoGy + 7UoVEtgzY3/jmW9mOBOnHGtIuVoS21dvG80OMC7A0HGTZ0sCxihDyq5vGjwAzPDjtFPGkfJMqoGU + pGMtkCVRRgCaE2Y5uSyJAds3zpLy25nIjje9laojZc0aC0siBWIUy/FsSb6CdYvPxjDHFoI5WHxS + nYPOLf6S8H3xRTYOr14SAZYbqV24afSEG0B7QRn6Q/JstUuybZJvFqtNuSpKXPz59ROe7LX4iBkf + YekJYf37uGq1stLB5HiQdN5GCv+4F+9VzfCpk0mtDAeqe63BUehO0qiuxROTwQmMDwblqvdSDHWD + zlmEHRXXtxkI4MoMEWxVvIyhW21vQzcPF/HXVdBEHY06GnUPYqjMgXXyJ/My6q/f38p8JOZov811 + d2h3unDb5d/TlJfrj6RpZjYLaszBFCoJkXI+SncE+2OK573XN5orCdyg/dGhb8kFIWJCWyX6BiJs + TFjcTdyY9m9sovdKxp08jSF/hSEKO/gxYwFZPWXBU/RQ91Uj7RHENWlYq620Ef1MIsYbIEqd6ZFt + IKR7rEEqOKOGx8oI+I7SqFY5oMpQA606wSOzy+VBXh4EF9NufCaOzmlbpmk481SDUIZpULqBJ2Rj + qvtGj18CIWmwSn8qlRIPgxUk0Q3N3PERFdNfZWWYGVLeW6faNBj8bjCX3KX/pMDY60inwmJJKsZf + oRNYHOi7rOXY6PYZ21R1nuyedzxZI12TveB1UvAK1pstY7v1fkanSLgxe/+Dnnr02ic91irXoWrJ + tthn+/1uu948e97M745PRakdOk51w5Bf366te94TooWvQ1+/6Ls54ZyI3PQ68nKJpAy76AcpNjuW + i2qXFM+iTtaC86Ta5FWyzffbdbFlIhe5z7UFEz1jopUB0DHzXtVnZZZNVS/eNVoV0Qjv8t0afxWW + qyDXQeRFPedg7RjCg/HLEivs8pai0JBDOSmsDACKnOk8E7BFC4UUMLRFStUY0UcyigVzo3DsELZG + t6QscvQurDI/cvlrGLReGjf0YFSvcS6G0csclka5vus74XAt40JAhb/zbNDvOIatz8YCY9vjVAm9 + K1bb9Vr0KPaw822TqsOkpdfpHBIzUiHEfJsgx7NizMVMvpvkHsjfS6r+UMsfwfKIMYQwAP3fCN4b + 6Qbi5yaev/aB2PjjxMjz/xzszx8b7KPZ5QU/v/wNynoDKwAJAAA= + headers: + apipie-checksum: [83fd72067f1c96eb1196b17193cc48d0] + cache-control: ['max-age=0, private, must-revalidate'] + connection: [Keep-Alive] + content-encoding: [gzip] + content-length: ['950'] + content-security-policy: ['default-src ''self''; child-src ''self''; connect-src + ''self'' ws: wss:; img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' + ''unsafe-inline'' ''self''; style-src ''unsafe-inline'' ''self'''] + content-type: [application/json; charset=utf-8] + date: ['Wed, 25 Jul 2018 15:13:28 GMT'] + etag: [W/"003c3afbf2eb08b6986c768f05cd476c-gzip"] + foreman_api_version: ['2'] + foreman_version: [1.17.1] + keep-alive: ['timeout=5, max=10000'] + server: [Apache/2.4.6 (CentOS)] + set-cookie: [_session_id=38b75ce607f492c80373f77f459f5483; path=/; secure; HttpOnly] + status: [200 OK] + strict-transport-security: [max-age=631139040; includeSubdomains] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-download-options: [noopen] + x-frame-options: [sameorigin] + x-permitted-cross-domain-policies: [none] + x-powered-by: [Phusion Passenger 4.0.53] + x-request-id: [2d472170-2e1d-45d0-9a47-b5835c0a4bf6] + x-runtime: ['0.118811'] + x-xss-protection: [1; mode=block] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: ['*/*'] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + User-Agent: [python-requests/2.18.4] + content-type: [application/json] + method: GET + uri: https://centos7-katello-3-6.sean.example.com/katello/api/v2/content_view_filters/23 + response: + body: + string: !!binary | + H4sIAAAAAAAAA6VWwY7jNgy99ysCneOxYyeTxNdFeyrQotj2sggEWaITYWxLkOTsZgP/eylZyTjZ + zO4Ac5lIJEVyHh9Jz2ZnIjve9FaqjpQ1ayzMiRSkzIs56VgLpCSfwbrZ78Ywx2aCOZh9Up2Dzs3+ + k/B19odsHBgyJwIsN1K74Knrm2ZOuAG0F5Q5dJNni02SrZN8NVusykVR4uHfz5/wZa/Fe8z4GJYe + MSwpz3hvtbLSwTXxIOm8jRSWlF92Pqua9Y27mtTKcKC61xoche4ojepafHE1OILxYFCuei/N5qTB + 5CyGHRWX/81ACK7MKQZbFLsRusX6FropXMS7q6CJOhp1NOoeYKjMnnXyO/My6t1vb2UeiWm0v6a6 + u2h3uuBt+HmZ8nL5njJNzCagxhpcoZLgJecRpTuC/XPF8z7rG82FBO6k/dNT36JQGyV67jwUEaGp + 57+jdnh9HYprvb2yzgDQyrCOH0K5heIvYGiLSNX4fCpzbB+uRrekLHIMzPgL28PNhe6N6jV2EELh + mwYzLJeoHSnXYi4NPsiGYXcnjGhFnsXbldLX+2sT0Hsl404eR6a8wCkKO/g2IS9ZPGUBYARW91Uj + 7QHEhWsaTCttjH4mMcZrQJQ602OTgJDusQYZ7Iw6PVbGgG8ojWqVA6oMNdCqIzwyG4YHdHrIid54 + Ah2c07ZM0/DmqQahDNOgdANP2ESp7hs9/hEYkgar9LtSKfFhsPElpqGZOzzqoPRPibQxp5T31qk2 + DQaRbOmPzGXGE4x0KhzmpEK6QCewpzF3WUscoiVh24ytqjpPNs8bniyxy5Kt4HVS8AqWqzVjm+V2 + 0gWxT8bqfaCrfmwgrsOwIetim223m/Vy9ex586iv5sSeOk51w5BfX0aT21EWLfz48GMHczdH1pDI + Ta8juyGSMtxiHqRYbVguqk1SPIs6WQrOk2qVV8k6366XxZqJXOS+1hZMzIyJVoaAjpm3hlVWZtl1 + WIk3jRZFNEJffsngr8J2FYEbNiwVYnvOwdoRwr3xxxI77OOj5iKj2DA/n0E2nLIPDSPcizIeBFR+ + Ok2qQb8q4zccKWaIbY/LkPjZFbvt4hYzijPsfDuk6vCBQC8fFaEwIxUC5usEOZ4VYy0m8s1V7gN5 + v6Tq97X8FiwPiCGEvY0egfdGuhPx6x7fX+ZA3Fdx0eX5L79Hnt/3PTKaDbvht/8BSUSFDD8JAAA= + headers: + apipie-checksum: [83fd72067f1c96eb1196b17193cc48d0] + cache-control: ['max-age=0, private, must-revalidate'] + connection: [Keep-Alive] + content-encoding: [gzip] + content-length: ['911'] + content-security-policy: ['default-src ''self''; child-src ''self''; connect-src + ''self'' ws: wss:; img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' + ''unsafe-inline'' ''self''; style-src ''unsafe-inline'' ''self'''] + content-type: [application/json; charset=utf-8] + date: ['Wed, 25 Jul 2018 15:13:28 GMT'] + etag: [W/"025b84e54b298b61d9e3bab35681c731-gzip"] + foreman_api_version: ['2'] + foreman_version: [1.17.1] + keep-alive: ['timeout=5, max=10000'] + server: [Apache/2.4.6 (CentOS)] + set-cookie: [_session_id=896fb2b06347eebd30b50700cf94ec30; path=/; secure; HttpOnly] + status: [200 OK] + strict-transport-security: [max-age=631139040; includeSubdomains] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-download-options: [noopen] + x-frame-options: [sameorigin] + x-permitted-cross-domain-policies: [none] + x-powered-by: [Phusion Passenger 4.0.53] + x-request-id: [cd9297da-f91d-4eca-92ef-19c5ca5b7259] + x-runtime: ['0.152074'] + x-xss-protection: [1; mode=block] + status: {code: 200, message: OK} +- request: + body: !!python/unicode '{"content_view_id": 17, "name": "Test Errata date Content + View Filter"}' + headers: + Accept: ['*/*'] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Length: ['71'] + User-Agent: [python-requests/2.18.4] + content-type: [application/json] + method: GET + uri: https://centos7-katello-3-6.sean.example.com/katello/api/v2/content_view_filters + response: + body: + string: !!binary | + H4sIAAAAAAAAA6VWUY/iNhB+769AfiabkMACeT3dPVVqVV37clpZjj0Ba5PYsh3ucoj/3rFjsoGy + 7UoVEtgzY3/jmW9mOBOnHGtIuVoS21dvG80OMC7A0HGTZ0sCxihDyq5vGjwAzPDjtFPGkfJMqoGU + pGMtkCVRRgCaE2Y5uSyJAds3zpLy25nIjje9laojZc0aC0siBWIUy/FsSb6CdYvPxjDHFoI5WHxS + nYPOLf6S8H3xRTYOr14SAZYbqV24afSEG0B7QRn6Q/JstUuybZJvFqtNuSpKXPz59ROe7LX4iBkf + YekJYf37uGq1stLB5HiQdN5GCv+4F+9VzfCpk0mtDAeqe63BUehO0qiuxROTwQmMDwblqvdSDHWD + zlmEHRXXtxkI4MoMEWxVvIyhW21vQzcPF/HXVdBEHY06GnUPYqjMgXXyJ/My6q/f38p8JOZov811 + d2h3unDb5d/TlJfrj6RpZjYLaszBFCoJkXI+SncE+2OK573XN5orCdyg/dGhb8kFIWJCWyX6BiJs + TFjcTdyY9m9sovdKxp08jSF/hSEKO/gxYwFZPWXBU/RQ91Uj7RHENWlYq620Ef1MIsYbIEqd6ZFt + IKR7rEEqOKOGx8oI+I7SqFY5oMpQA606wSOzy+VBXh4EF9NufCaOzmlbpmk481SDUIZpULqBJ2Rj + qvtGj18CIWmwSn8qlRIPgxUk0Q3N3PERFdNfZWWYGVLeW6faNBj8bjCX3KX/pMDY60inwmJJKsZf + oRNYHOi7rOXY6PYZ21R1nuyedzxZI12TveB1UvAK1pstY7v1fkanSLgxe/+Dnnr02ic91irXoWrJ + tthn+/1uu948e97M745PRakdOk51w5Bf366te94TooWvQ1+/6Ls54ZyI3PQ68nKJpAy76AcpNjuW + i2qXFM+iTtaC86Ta5FWyzffbdbFlIhe5z7UFEz1jopUB0DHzXtVnZZZNVS/eNVoV0Qjv8t0afxWW + qyDXQeRFPedg7RjCg/HLEivs8pai0JBDOSmsDACKnOk8E7BFC4UUMLRFStUY0UcyigVzo3DsELZG + t6QscvQurDI/cvlrGLReGjf0YFSvcS6G0csclka5vus74XAt40JAhb/zbNDvOIatz8YCY9vjVAm9 + K1bb9Vr0KPaw822TqsOkpdfpHBIzUiHEfJsgx7NizMVMvpvkHsjfS6r+UMsfwfKIMYQwAP3fCN4b + 6Qbi5yaev/aB2PjjxMjz/xzszx8b7KPZ5QU/v/wNynoDKwAJAAA= + headers: + apipie-checksum: [83fd72067f1c96eb1196b17193cc48d0] + cache-control: ['max-age=0, private, must-revalidate'] + connection: [Keep-Alive] + content-encoding: [gzip] + content-length: ['950'] + content-security-policy: ['default-src ''self''; child-src ''self''; connect-src + ''self'' ws: wss:; img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' + ''unsafe-inline'' ''self''; style-src ''unsafe-inline'' ''self'''] + content-type: [application/json; charset=utf-8] + date: ['Wed, 25 Jul 2018 15:13:28 GMT'] + etag: [W/"003c3afbf2eb08b6986c768f05cd476c-gzip"] + foreman_api_version: ['2'] + foreman_version: [1.17.1] + keep-alive: ['timeout=5, max=10000'] + server: [Apache/2.4.6 (CentOS)] + set-cookie: [_session_id=8b875e6955140b75b341f9f0aa933be7; path=/; secure; HttpOnly] + status: [200 OK] + strict-transport-security: [max-age=631139040; includeSubdomains] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-download-options: [noopen] + x-frame-options: [sameorigin] + x-permitted-cross-domain-policies: [none] + x-powered-by: [Phusion Passenger 4.0.53] + x-request-id: [be3559f3-dada-4987-8e81-4065457291c7] + x-runtime: ['0.133864'] + x-xss-protection: [1; mode=block] + status: {code: 200, message: OK} +- request: + body: !!python/unicode '{"content_view_filter_id": 23, "name": null}' + headers: + Accept: ['*/*'] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Length: ['44'] + User-Agent: [python-requests/2.18.4] + content-type: [application/json] + method: GET + uri: https://centos7-katello-3-6.sean.example.com/katello/api/v2/content_view_filters/23/rules + response: + body: + string: !!binary | + H4sIAAAAAAAAA32OwWrDMBBE7/2KMGcZbJk0Rdf+QnsqQcjyJjG4slmvmhjjf6+UFLen3naGeTO7 + QAZxPUylMMXmV4zuTI+D2D6ELhWIeWCYEPs+AeTYXzY1sMAsaGYYdC0UBm4pheEmj1WBaYq9TDAf + C/wQhILYr46u9tT1klYSY3SdisSx2NZJ2oQuq0NRVkVZp0IK7R//ZfNlHin3oonnU3e7Jy8uePpM + G8iP+sidzDgqZN5mIJXEMav86n1bK3im7Fgn28ah0PtdtTdVbfTz7v3tNcV/wP9j63F9+gYpLpjU + YAEAAA== + headers: + apipie-checksum: [83fd72067f1c96eb1196b17193cc48d0] + cache-control: ['max-age=0, private, must-revalidate'] + connection: [Keep-Alive] + content-encoding: [gzip] + content-length: ['232'] + content-security-policy: ['default-src ''self''; child-src ''self''; connect-src + ''self'' ws: wss:; img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' + ''unsafe-inline'' ''self''; style-src ''unsafe-inline'' ''self'''] + content-type: [application/json; charset=utf-8] + date: ['Wed, 25 Jul 2018 15:13:28 GMT'] + etag: [W/"ef35656e3dd685e6b3fa6a839b91f2e4-gzip"] + foreman_api_version: ['2'] + foreman_version: [1.17.1] + keep-alive: ['timeout=5, max=10000'] + server: [Apache/2.4.6 (CentOS)] + set-cookie: [_session_id=b082eb04819bc0cf53d8231505f0d62c; path=/; secure; HttpOnly] + status: [200 OK] + strict-transport-security: [max-age=631139040; includeSubdomains] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-download-options: [noopen] + x-frame-options: [sameorigin] + x-permitted-cross-domain-policies: [none] + x-powered-by: [Phusion Passenger 4.0.53] + x-request-id: [0a00b72d-884f-4308-b9a4-60ace375a436] + x-runtime: ['0.070605'] + x-xss-protection: [1; mode=block] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: ['*/*'] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + User-Agent: [python-requests/2.18.4] + content-type: [application/json] + method: GET + uri: https://centos7-katello-3-6.sean.example.com/katello/api/v2/content_view_filters/23/rules/22 + response: + body: + string: !!binary | + H4sIAAAAAAAAA32NQQrCMBRE954i/HUKTUqtZOsVdCUSYvKrAU1L+qsW8e4mRYorlzO8N8PYC2wX + CAPpu8eHbv2VMGrvQMmKw0AmknaGEBTIUjRFKYqyAg4Y3E+/WXqaehxAHeA0nlv/nMmLCRZv6SOl + Ae0YPU1w5JB9nYU0MvY5uUTM35KDjZgbbWj5aApZM1ErUSm5ZvvdNuFf8T/2Xn0AqSj0p+oAAAA= + headers: + apipie-checksum: [83fd72067f1c96eb1196b17193cc48d0] + cache-control: ['max-age=0, private, must-revalidate'] + connection: [Keep-Alive] + content-encoding: [gzip] + content-length: ['170'] + content-security-policy: ['default-src ''self''; child-src ''self''; connect-src + ''self'' ws: wss:; img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' + ''unsafe-inline'' ''self''; style-src ''unsafe-inline'' ''self'''] + content-type: [application/json; charset=utf-8] + date: ['Wed, 25 Jul 2018 15:13:28 GMT'] + etag: [W/"d6af451459b5fc825fbdb90d516c41af-gzip"] + foreman_api_version: ['2'] + foreman_version: [1.17.1] + keep-alive: ['timeout=5, max=10000'] + server: [Apache/2.4.6 (CentOS)] + set-cookie: [_session_id=2c8390de513fbbb096d84dbe2ec7ad94; path=/; secure; HttpOnly] + status: [200 OK] + strict-transport-security: [max-age=631139040; includeSubdomains] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-download-options: [noopen] + x-frame-options: [sameorigin] + x-permitted-cross-domain-policies: [none] + x-powered-by: [Phusion Passenger 4.0.53] + x-request-id: [914c4337-71bb-40c1-b845-bacc344370c6] + x-runtime: ['0.075691'] + x-xss-protection: [1; mode=block] + status: {code: 200, message: OK} +version: 1 diff --git a/test/test_playbooks/fixtures/content_view_filter-3.yml b/test/test_playbooks/fixtures/content_view_filter-3.yml new file mode 100644 index 0000000000..b569973109 --- /dev/null +++ b/test/test_playbooks/fixtures/content_view_filter-3.yml @@ -0,0 +1,518 @@ +interactions: +- request: + body: !!python/unicode '{}' + headers: + Accept: ['*/*'] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Length: ['2'] + User-Agent: [python-requests/2.18.4] + content-type: [application/json] + method: GET + uri: https://centos7-katello-3-6.sean.example.com/katello/api/v2/ping + response: + body: + string: !!binary | + H4sIAAAAAAAAA43NPQ6AIAwF4N1TmM4O/izqZUgjGIkKhBYXwt0VNyecXvryNa+uIxAjB4IZ7A4N + kPKXXtRzR3DhcDm/QgaPrK0RZ66GEVLzSoGBtxLvXr6gkYdy2pR43374v4k+/6zWqxONYKSdijMT + pJSqG8Q6aycOAQAA + headers: + apipie-checksum: [83fd72067f1c96eb1196b17193cc48d0] + cache-control: ['max-age=0, private, must-revalidate'] + connection: [Keep-Alive] + content-encoding: [gzip] + content-length: ['126'] + content-security-policy: ['default-src ''self''; child-src ''self''; connect-src + ''self'' ws: wss:; img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' + ''unsafe-inline'' ''self''; style-src ''unsafe-inline'' ''self'''] + content-type: [application/json; charset=utf-8] + date: ['Wed, 25 Jul 2018 15:12:49 GMT'] + etag: [W/"d0f4a830bfd067bba2dc7e56f2e0025e-gzip"] + foreman_api_version: ['2'] + foreman_version: [1.17.1] + keep-alive: ['timeout=5, max=10000'] + server: [Apache/2.4.6 (CentOS)] + set-cookie: [_session_id=9576b622f676588ef53d8ce68fad03de; path=/; secure; HttpOnly] + status: [200 OK] + strict-transport-security: [max-age=631139040; includeSubdomains] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-download-options: [noopen] + x-frame-options: [sameorigin] + x-permitted-cross-domain-policies: [none] + x-powered-by: [Phusion Passenger 4.0.53] + x-request-id: [6d3c4171-b8a1-4167-9b19-a5e70f66ece1] + x-runtime: ['0.159696'] + x-xss-protection: [1; mode=block] + status: {code: 200, message: OK} +- request: + body: !!python/unicode '{"search": "name=\"Test Organization\""}' + headers: + Accept: ['*/*'] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Length: ['40'] + User-Agent: [python-requests/2.18.4] + content-type: [application/json] + method: GET + uri: https://centos7-katello-3-6.sean.example.com/katello/api/v2/organizations + response: + body: + string: !!binary | + H4sIAAAAAAAAA42PwWrDMAyG73kKo3MKcdjYathpD7BLd2pHUGLRGdwkyMqhC3n3qU7GxmCwm77P + v/mluTAGZBCM4Exd3ihN7ZewWYx4pm8gbjZRV2uekLt3ZejxQk8nOFAS88Jn7MMHShj6E8CaHFg0 + N+us1F517qcYy5UH9sSbUrPkL0xpipJUH2eI2JKulQuanwVQQseEQr5BbYC6so+76mFX3Rt752rr + 7N68Hp41No3+P7Hgwe3LfNDWZ371SZD415un1HEYM7nbOctbsRSfKnwYS2sBAAA= + headers: + apipie-checksum: [83fd72067f1c96eb1196b17193cc48d0] + cache-control: ['max-age=0, private, must-revalidate'] + connection: [Keep-Alive] + content-encoding: [gzip] + content-length: ['218'] + content-security-policy: ['default-src ''self''; child-src ''self''; connect-src + ''self'' ws: wss:; img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' + ''unsafe-inline'' ''self''; style-src ''unsafe-inline'' ''self'''] + content-type: [application/json; charset=utf-8] + date: ['Wed, 25 Jul 2018 15:12:49 GMT'] + etag: [W/"33eb541f7daf03e7d506a757939a7889-gzip"] + foreman_api_version: ['2'] + foreman_version: [1.17.1] + keep-alive: ['timeout=5, max=10000'] + server: [Apache/2.4.6 (CentOS)] + set-cookie: [_session_id=3c91871b3b5570b3830e8f0cd728ae66; path=/; secure; HttpOnly] + status: [200 OK] + strict-transport-security: [max-age=631139040; includeSubdomains] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-download-options: [noopen] + x-frame-options: [sameorigin] + x-permitted-cross-domain-policies: [none] + x-powered-by: [Phusion Passenger 4.0.53] + x-request-id: [ef651b7d-cce8-432e-9bea-70606d1c4d57] + x-runtime: ['0.050922'] + x-xss-protection: [1; mode=block] + status: {code: 200, message: OK} +- request: + body: !!python/unicode '{"organization_id": 9, "name": "Test Content View"}' + headers: + Accept: ['*/*'] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Length: ['51'] + User-Agent: [python-requests/2.18.4] + content-type: [application/json] + method: GET + uri: https://centos7-katello-3-6.sean.example.com/katello/api/v2/content_views + response: + body: + string: !!binary | + H4sIAAAAAAAAA41SwW7bMAy97ysCnt0hTht087UfMGBoeykKQbGYVpgtCpTkzQ3876Vj1XWCFNhN + 5Hvkox55gEhRN1CVBYS0+wy8fsHpgaymYLMuAJmJoXKpaaQANdevc0QcoTrArocKnG4RCiA2KHTQ + oYahAMaQmhigejpATa2nYKM03usmYDFlHLqorBk5zwUY3GupmCl74hqVT95jVOg6y+RaqZgJHXKw + 5FRNaczKxI2OGKLKwMewjEdx4j6LldciZ418+baYpq/gXgpXd+SiKKweLf6Fsd0Om4ypjKmMGQw1 + Wx8XOsQv2tk3PebU2P7naW40bKn2a4mdqZ1hx25ias0oXzRKy39hsy5/XK1vrzbbVbmtyk11s109 + 3N8JPXnzP7SFqXkHs1UWp80dXbo+den37Of51CdInQ2LvR9L+9TCIBJ5oS2Z1GCWzQvL0Xwbczw1 + 6sR5dQ7qOtpusvwP9jnp8N/iCqD8vj5OKhP6tGtseEXzsTQ5+daGrH6ArPEpKNnISa4NjY2XETmF + yNRfBrPgFyBTSxEVsWJsqcNLtGF4Hr69A9j2DxC8AwAA + headers: + apipie-checksum: [83fd72067f1c96eb1196b17193cc48d0] + cache-control: ['max-age=0, private, must-revalidate'] + connection: [Keep-Alive] + content-encoding: [gzip] + content-length: ['432'] + content-security-policy: ['default-src ''self''; child-src ''self''; connect-src + ''self'' ws: wss:; img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' + ''unsafe-inline'' ''self''; style-src ''unsafe-inline'' ''self'''] + content-type: [application/json; charset=utf-8] + date: ['Wed, 25 Jul 2018 15:12:49 GMT'] + etag: [W/"e5377be671b535aa8045efc383418dc4-gzip"] + foreman_api_version: ['2'] + foreman_version: [1.17.1] + keep-alive: ['timeout=5, max=10000'] + server: [Apache/2.4.6 (CentOS)] + set-cookie: [_session_id=da6056d740ff0392f89d40fe8c583102; path=/; secure; HttpOnly] + status: [200 OK] + strict-transport-security: [max-age=631139040; includeSubdomains] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-download-options: [noopen] + x-frame-options: [sameorigin] + x-permitted-cross-domain-policies: [none] + x-powered-by: [Phusion Passenger 4.0.53] + x-request-id: [83e565c0-9337-4f5a-9013-89a8ed1f0881] + x-runtime: ['0.067197'] + x-xss-protection: [1; mode=block] + status: {code: 200, message: OK} +- request: + body: !!python/unicode '{"organization_id": 9, "name": "Test Product"}' + headers: + Accept: ['*/*'] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Length: ['46'] + User-Agent: [python-requests/2.18.4] + content-type: [application/json] + method: GET + uri: https://centos7-katello-3-6.sean.example.com/katello/api/v2/products + response: + body: + string: !!binary | + H4sIAAAAAAAAA2VQy07DMBC88xXWnlOUpIQ2vqF+AEiUE0KW66xSC8e2/ACFqv+OnZY2Krfd2dnd + mTlAMIEroFUBPu6ujeU9ngp07NTUZQHonHFAdVQqLSB3Yn/pjAtAD7AbgYLmA0IBxnWY6MC9gGMB + Dn1UwQN9P4DsgLYFCMtyBatlW7btevXQPJZpcdqnsEUfyIszXRQhoYrvUJ1hdoU79MJJG6TRafhE + 9tzakSgZgkIS8gl74abqSyZR09eqSbJHLZhVXE/I2UrGfBwG7sZsyUch0CfddTLR25594viPHnjI + kl9TI3VPNmawCgPeT7qT3sxK87qs1otytagbUjW0KmnVkrftZs5i3ym39A2WZJA6JgdTlD3X8odn + l+wc3hzLOuepPc9nN9HdzKZrx1kUf8YcWuNlMG5kwkQdcgAfx7tfwzLIbjUCAAA= + headers: + apipie-checksum: [83fd72067f1c96eb1196b17193cc48d0] + cache-control: ['max-age=0, private, must-revalidate'] + connection: [Keep-Alive] + content-encoding: [gzip] + content-length: ['332'] + content-security-policy: ['default-src ''self''; child-src ''self''; connect-src + ''self'' ws: wss:; img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' + ''unsafe-inline'' ''self''; style-src ''unsafe-inline'' ''self'''] + content-type: [application/json; charset=utf-8] + date: ['Wed, 25 Jul 2018 15:12:49 GMT'] + etag: [W/"e094e3b621673748cc58c93af2f043f8-gzip"] + foreman_api_version: ['2'] + foreman_version: [1.17.1] + keep-alive: ['timeout=5, max=10000'] + server: [Apache/2.4.6 (CentOS)] + set-cookie: [_session_id=7e152aa9d0d82d2743913814a33d877c; path=/; secure; HttpOnly] + status: [200 OK] + strict-transport-security: [max-age=631139040; includeSubdomains] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-download-options: [noopen] + x-frame-options: [sameorigin] + x-permitted-cross-domain-policies: [none] + x-powered-by: [Phusion Passenger 4.0.53] + x-request-id: [5ba50374-6101-4ad3-9442-3deccc162bf0] + x-runtime: ['0.120438'] + x-xss-protection: [1; mode=block] + status: {code: 200, message: OK} +- request: + body: !!python/unicode '{"product_id": 9, "name": "Test Repository"}' + headers: + Accept: ['*/*'] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Length: ['44'] + User-Agent: [python-requests/2.18.4] + content-type: [application/json] + method: GET + uri: https://centos7-katello-3-6.sean.example.com/katello/api/v2/repositories + response: + body: + string: !!binary | + H4sIAAAAAAAAA3VTyY7bMAy99ysCnuPY8TJerr0WaFFMT8VAkCU6I4xtCVqmzQT591K202nQ9mKT + IkU9vkdewGvPR+iOe3Chf3cMP+FqoGWrk2d7QGu1hW4O40gXkFvx/NvT1kN3gf4MHcx8QtiDthIp + HbgTcN2DRRdG76D7fgGhZ4+zZ/5sqDacw0T5wdLr8Oy9cV2aWjTaHQaU2nKD2ox40PaUmjCa9SNx + 0mzJSt+0TiG+MHKvXpEge0IGj+g8+2xPfFZvFNBz+kn1lttzKoLzekqXhC9WyyD86nyN9ZTX9kz1 + 1gZh1ouxh56LF5wlU5Kwq0Gt3bUZr/ohT5qHRiRlnh2TVoohKUSPZVVz3pQt3b11PPIexxtrShLL + xX4lbMW7u0OwZcPf2MyKOnIeq7T0gmHRgrpos7Zt6rJ6yOC+9tYqnbrzLJgZ+Uxy3PSS6IRVJhJ1 + y5Dcx4gi7PaVhoPK4U/PYgyerhGf27wNBxRVw3PZN0nxIIeklEIkfZX3SZ23dVnUXOYyj1o7tBsy + Lie1POi59SgZp6aAaGySrE7yanesumPWZdnu2+NHSiMB/pt0LLYkquVjbVLZGJRwm754FIRA51YK + Tzaa3fGQXd8lEjrMcU4voJ23iIxmZo6TQCsgNY2AZRON1ECM/uuMjeo+4Plpca2ZoCtyQrdYWdwz + 8bJsVzzdHHayOhhauGXfuKfV6EqKBmrEs4kEHHG5PKjNkNjT/0812A/aPRfV2BG3waOD69P1wy/D + RJa48AMAAA== + headers: + apipie-checksum: [83fd72067f1c96eb1196b17193cc48d0] + cache-control: ['max-age=0, private, must-revalidate'] + connection: [Keep-Alive] + content-encoding: [gzip] + content-length: ['577'] + content-security-policy: ['default-src ''self''; child-src ''self''; connect-src + ''self'' ws: wss:; img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' + ''unsafe-inline'' ''self''; style-src ''unsafe-inline'' ''self'''] + content-type: [application/json; charset=utf-8] + date: ['Wed, 25 Jul 2018 15:12:50 GMT'] + etag: [W/"4800e2cb797f73e5a7b98036a1a0314c-gzip"] + foreman_api_version: ['2'] + foreman_version: [1.17.1] + keep-alive: ['timeout=5, max=10000'] + server: [Apache/2.4.6 (CentOS)] + set-cookie: [_session_id=9a792065ccb67cb0195057cf68c81d2a; path=/; secure; HttpOnly] + status: [200 OK] + strict-transport-security: [max-age=631139040; includeSubdomains] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-download-options: [noopen] + x-frame-options: [sameorigin] + x-permitted-cross-domain-policies: [none] + x-powered-by: [Phusion Passenger 4.0.53] + x-request-id: [e6315293-9554-488f-bb94-7b3205c3bbe0] + x-runtime: ['0.103729'] + x-xss-protection: [1; mode=block] + status: {code: 200, message: OK} +- request: + body: !!python/unicode '{"content_view_id": 17, "name": "Test Package Content + View Filter"}' + headers: + Accept: ['*/*'] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Length: ['67'] + User-Agent: [python-requests/2.18.4] + content-type: [application/json] + method: GET + uri: https://centos7-katello-3-6.sean.example.com/katello/api/v2/content_view_filters + response: + body: + string: !!binary | + H4sIAAAAAAAAA6VV34/bIAx+319R8dxc0qS9tHmdtKdJm6ZtL9MJEXB6aElAQLp1Vf/3GULTH+vp + TpoqNWAbPmN/tg/EKcdaUi3mxA71eaPZFsYFGDpu8mxOwBhlSNUPbYsHgBn+PO2UcaQ6kHpPKtKz + DsicKCMAzQmznBznxIAdWmdJ9eNAZM/bwUrVk6phrYU5kQIxEDGcrchXsG72mfGfCD57r3oHvZt9 + l/Br9kG2Dq+dEwGWG6lduGX0ghtgDgRl6AvJs8U6ycokX80Wq2qRV8ty9u3rezw5aPEWMz7C0h3C + +rdx1WllpYPJ6SDpvY0U/mFP3quG4TMnk0YZDlQPWoOj0O+kUX2HJyaDHRgfCMrV4KUY5hadswg7 + Kk5vMxDAldlHsEXxNIZtUV6H7TJcxF9XQxt1NOpo1N2JoTJb1ss/zMuov35zLfORuET7dKm7QbvR + hduOr6Zp9bY0ncwughpzMIVKQqSbj1JxHaUvUzxvvb7SnEjg9tof3Q8dOSJETGinxNBChI0Ji7uJ + G9P+zCZ6q2Tcyd0Y8p+wj8Iefl+wgCwesuApeqiHupX2GcQpaVinnbQR/UAixhkQpc4MyDYQ0t3X + IBWcUfv7ygj4gtKoTjmgylADndrBPbPj8U5e7gQX0258Jp6d07ZK03DmoQGhDNOgdAsPyMZUD60e + /wRC0mCV/lEqJR4GK0iiG5q553tUTD/K2jCzT/lgnerSYPDZYC65S/+lwNjnSK/CYk5qbEvQCywO + 9F02cmxym4yt6iZP1o9rniyRrslG8CYpeA3LVcnYerm5oFMk3Ji9/6CnHr32SY+1ynWoWlIWm2yz + WZfL1aPnzVVfjYewbe97TnXLkF8/Tm37sidEC1+Hvn7Rd7PDGRG56XXk6RhJGXbRD1Ks1iwX9Top + HkWTLAXnSb3K66TMN+WyKJnIRe5zbcFEz5joZAB0zLxU9VmVZVPVixeNFkU0wrt8t8avwnIV5DSE + vGjgHKwdQ7g1fllhhR3PKQoNOZSTwsoAoMiZ3jMBW7RQSAFDO6RUgxG9J6NYMFcKx7Zha3RHqiJH + 78Iq8+M2zLlRGjd0a9SgcSaGscsclka1vOk74XAj40JAjd/LbNBfOIKtz8YMYzvgVAm9K1abR0dv + Yv86XDeoJkxZeprK/nueMjWOfvJqG1+/rY2PZscn/L37C6vDvq2RCAAA + headers: + apipie-checksum: [83fd72067f1c96eb1196b17193cc48d0] + cache-control: ['max-age=0, private, must-revalidate'] + connection: [Keep-Alive] + content-encoding: [gzip] + content-length: ['897'] + content-security-policy: ['default-src ''self''; child-src ''self''; connect-src + ''self'' ws: wss:; img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' + ''unsafe-inline'' ''self''; style-src ''unsafe-inline'' ''self'''] + content-type: [application/json; charset=utf-8] + date: ['Wed, 25 Jul 2018 15:12:50 GMT'] + etag: [W/"8fcd7cb991e31ab9e76aa340c6859cb5-gzip"] + foreman_api_version: ['2'] + foreman_version: [1.17.1] + keep-alive: ['timeout=5, max=10000'] + server: [Apache/2.4.6 (CentOS)] + set-cookie: [_session_id=c8750584d9aed5d3fde2e644652fe25b; path=/; secure; HttpOnly] + status: [200 OK] + strict-transport-security: [max-age=631139040; includeSubdomains] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-download-options: [noopen] + x-frame-options: [sameorigin] + x-permitted-cross-domain-policies: [none] + x-powered-by: [Phusion Passenger 4.0.53] + x-request-id: [e443292e-c01c-425b-9913-ecfa3be07a96] + x-runtime: ['0.111999'] + x-xss-protection: [1; mode=block] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: ['*/*'] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + User-Agent: [python-requests/2.18.4] + content-type: [application/json] + method: GET + uri: https://centos7-katello-3-6.sean.example.com/katello/api/v2/content_view_filters/21 + response: + body: + string: !!binary | + H4sIAAAAAAAAA6VWwW7bOBC99ysEnq1YluzY1rXAnhZosejuJTAIihw5RCSRICl3XUP/3iFFK7br + tAFyscSZIWf8+N6MkuREZMeb3krVkbJmjYUZUUbuZccaqhl/YXuwk0cKUuaLGelYC6Qk38C65OsY + lHxWnYPOJf9J+J78JRsHhsyIAMuN1C6c3/VNMyPcAHMgKHN4RJ4tNmm2TvNVsliVi7xcrpN/v33G + nb0W7wnjY1p6wLSkPOG61cpKB1PRwdL5GCnwrzztfFU16xs3hdTKcKC61xoche4gjepa3DEFHMB4 + iChXvbdmM9JgcRbTjo7zfzMQkitzjMkWxW6EbbG+hu0SLuKPq6CJPhp9NPruYKjMnnXyB/M26o/f + Xts8EpfZvlz6brLd+MJpwx+vafW+azqHXYAa72CCSnqCPZ1GlIprlP6Z8Lyt+spzJoE7ar/12Ldo + 1EaJnjsPRUToirbRO7zuDpdrfbyyzgDQyrCOP4frFoq/gKEtIlXj9kubY/uwNLolZZFj4lERVwu6 + N6rXqB6EwhjmsMJyid6Rci3W0uCGbBh2N8aIVuRZXE2UntavIqC3TsadPIxMeYFjNHbw/wV5yeIh + CwAjsLqvGmmfQZy5psG00sbsJxJzvCZEqzM9igSEdPc9yGBn1PG+MyZ8w2lUqxxQZaiBVh3gXtgw + 3KHTXU70xhPo2Tlty/k87HmoQSjDNCjdwAOKaK77Ro8/AlPSEDX/odSc+DQofIllaOae7ylo/rdE + 2pjjnPfWqXYeAiLZ5r8ylxlPMNKp8DIjFdIFOoGaxtplLbGJloRtM7aq6jzdPG54ukSVpVvB67Tg + FSxXa8Y2y+2FCqJOxtv7gKp+FRDXodmQdbHNttvNerl69Ly5p6sZsceOU90w5NfTGHLdymKEbx++ + 7WDt5sAaErnpfWQ3RFKGVayDFKsNy0W1SYtHUadLwXlarfIqXefb9bJYM5GL3N+1BRMrY6KVIaFj + 5q1mlZVZNjUr8WbQoohBeJYfMvhUKFcRuGHDUCG25xysHSHcG/9aosI+3mrONoqC+X0PsuEt+1Az + wrko44uAyneni9ug35XxE44UCWLb4zAkvndFtfnsWE3sX6frBlWHjwN6/pjwz9fhWAHz3w1/mD6b + 902fMWzYDZ9+AnArYK3qCAAA + headers: + apipie-checksum: [83fd72067f1c96eb1196b17193cc48d0] + cache-control: ['max-age=0, private, must-revalidate'] + connection: [Keep-Alive] + content-encoding: [gzip] + content-length: ['873'] + content-security-policy: ['default-src ''self''; child-src ''self''; connect-src + ''self'' ws: wss:; img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' + ''unsafe-inline'' ''self''; style-src ''unsafe-inline'' ''self'''] + content-type: [application/json; charset=utf-8] + date: ['Wed, 25 Jul 2018 15:12:50 GMT'] + etag: [W/"4ee721aba05d01d544cb74f334494fe0-gzip"] + foreman_api_version: ['2'] + foreman_version: [1.17.1] + keep-alive: ['timeout=5, max=10000'] + server: [Apache/2.4.6 (CentOS)] + set-cookie: [_session_id=3d5eaf2a8121241295c32a2c5e62b605; path=/; secure; HttpOnly] + status: [200 OK] + strict-transport-security: [max-age=631139040; includeSubdomains] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-download-options: [noopen] + x-frame-options: [sameorigin] + x-permitted-cross-domain-policies: [none] + x-powered-by: [Phusion Passenger 4.0.53] + x-request-id: [42f31264-8495-40e0-ba1b-10b2681bbf8f] + x-runtime: ['0.125851'] + x-xss-protection: [1; mode=block] + status: {code: 200, message: OK} +- request: + body: !!python/unicode '{"content_view_id": 17, "name": "Test Package Content + View Filter"}' + headers: + Accept: ['*/*'] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Length: ['67'] + User-Agent: [python-requests/2.18.4] + content-type: [application/json] + method: GET + uri: https://centos7-katello-3-6.sean.example.com/katello/api/v2/content_view_filters + response: + body: + string: !!binary | + H4sIAAAAAAAAA6VV34/bIAx+319R8dxc0qS9tHmdtKdJm6ZtL9MJEXB6aElAQLp1Vf/3GULTH+vp + TpoqNWAbPmN/tg/EKcdaUi3mxA71eaPZFsYFGDpu8mxOwBhlSNUPbYsHgBn+PO2UcaQ6kHpPKtKz + DsicKCMAzQmznBznxIAdWmdJ9eNAZM/bwUrVk6phrYU5kQIxEDGcrchXsG72mfGfCD57r3oHvZt9 + l/Br9kG2Dq+dEwGWG6lduGX0ghtgDgRl6AvJs8U6ycokX80Wq2qRV8ty9u3rezw5aPEWMz7C0h3C + +rdx1WllpYPJ6SDpvY0U/mFP3quG4TMnk0YZDlQPWoOj0O+kUX2HJyaDHRgfCMrV4KUY5hadswg7 + Kk5vMxDAldlHsEXxNIZtUV6H7TJcxF9XQxt1NOpo1N2JoTJb1ss/zMuov35zLfORuET7dKm7QbvR + hduOr6Zp9bY0ncwughpzMIVKQqSbj1JxHaUvUzxvvb7SnEjg9tof3Q8dOSJETGinxNBChI0Ji7uJ + G9P+zCZ6q2Tcyd0Y8p+wj8Iefl+wgCwesuApeqiHupX2GcQpaVinnbQR/UAixhkQpc4MyDYQ0t3X + IBWcUfv7ygj4gtKoTjmgylADndrBPbPj8U5e7gQX0258Jp6d07ZK03DmoQGhDNOgdAsPyMZUD60e + /wRC0mCV/lEqJR4GK0iiG5q553tUTD/K2jCzT/lgnerSYPDZYC65S/+lwNjnSK/CYk5qbEvQCywO + 9F02cmxym4yt6iZP1o9rniyRrslG8CYpeA3LVcnYerm5oFMk3Ji9/6CnHr32SY+1ynWoWlIWm2yz + WZfL1aPnzVVfjYewbe97TnXLkF8/Tm37sidEC1+Hvn7Rd7PDGRG56XXk6RhJGXbRD1Ks1iwX9Top + HkWTLAXnSb3K66TMN+WyKJnIRe5zbcFEz5joZAB0zLxU9VmVZVPVixeNFkU0wrt8t8avwnIV5DSE + vGjgHKwdQ7g1fllhhR3PKQoNOZSTwsoAoMiZ3jMBW7RQSAFDO6RUgxG9J6NYMFcKx7Zha3RHqiJH + 78Iq8+M2zLlRGjd0a9SgcSaGscsclka1vOk74XAj40JAjd/LbNBfOIKtz8YMYzvgVAm9K1abR0dv + Yv86XDeoJkxZeprK/nueMjWOfvJqG1+/rY2PZscn/L37C6vDvq2RCAAA + headers: + apipie-checksum: [83fd72067f1c96eb1196b17193cc48d0] + cache-control: ['max-age=0, private, must-revalidate'] + connection: [Keep-Alive] + content-encoding: [gzip] + content-length: ['897'] + content-security-policy: ['default-src ''self''; child-src ''self''; connect-src + ''self'' ws: wss:; img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' + ''unsafe-inline'' ''self''; style-src ''unsafe-inline'' ''self'''] + content-type: [application/json; charset=utf-8] + date: ['Wed, 25 Jul 2018 15:12:50 GMT'] + etag: [W/"8fcd7cb991e31ab9e76aa340c6859cb5-gzip"] + foreman_api_version: ['2'] + foreman_version: [1.17.1] + keep-alive: ['timeout=5, max=10000'] + server: [Apache/2.4.6 (CentOS)] + set-cookie: [_session_id=e19a7e7b22b8ad1abab917717fb1cac5; path=/; secure; HttpOnly] + status: [200 OK] + strict-transport-security: [max-age=631139040; includeSubdomains] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-download-options: [noopen] + x-frame-options: [sameorigin] + x-permitted-cross-domain-policies: [none] + x-powered-by: [Phusion Passenger 4.0.53] + x-request-id: [8eeb6982-9408-4b7d-adcc-5e6af9405340] + x-runtime: ['0.106805'] + x-xss-protection: [1; mode=block] + status: {code: 200, message: OK} +- request: + body: !!python/unicode '{"content_view_filter_id": 21, "name": "bear"}' + headers: + Accept: ['*/*'] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Length: ['46'] + User-Agent: [python-requests/2.18.4] + content-type: [application/json] + method: GET + uri: https://centos7-katello-3-6.sean.example.com/katello/api/v2/content_view_filters/21/rules + response: + body: + string: !!binary | + H4sIAAAAAAAAA4WNwQrCMBBE735FmXMKbbC05Oov6EmkpOmqhdiUTapI6b+7IujR087Am30LUkjW + w5QKce5+ZbIX+gTi9lN0oUDMgWHG2XsZkGV3/bbACWZB94TB0EMhcE8Cw0aHVYEpzj5FmOMCF8ZE + Y2rvAz3a8+CTWGRjtBjft1YY7U2k6EQivxyTTdS3VhzQRdnkRZ3rKisrU2qzbbLDfifYPPX/sfW0 + bl5p5/Q0+QAAAA== + headers: + apipie-checksum: [83fd72067f1c96eb1196b17193cc48d0] + cache-control: ['max-age=0, private, must-revalidate'] + connection: [Keep-Alive] + content-encoding: [gzip] + content-length: ['181'] + content-security-policy: ['default-src ''self''; child-src ''self''; connect-src + ''self'' ws: wss:; img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' + ''unsafe-inline'' ''self''; style-src ''unsafe-inline'' ''self'''] + content-type: [application/json; charset=utf-8] + date: ['Wed, 25 Jul 2018 15:12:50 GMT'] + etag: [W/"1c4e66d41c0fb59ca2f0d38ebbf837a8-gzip"] + foreman_api_version: ['2'] + foreman_version: [1.17.1] + keep-alive: ['timeout=5, max=10000'] + server: [Apache/2.4.6 (CentOS)] + set-cookie: [_session_id=fb5feae541ed8dd0faa1e6081fcf7bf7; path=/; secure; HttpOnly] + status: [200 OK] + strict-transport-security: [max-age=631139040; includeSubdomains] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-download-options: [noopen] + x-frame-options: [sameorigin] + x-permitted-cross-domain-policies: [none] + x-powered-by: [Phusion Passenger 4.0.53] + x-request-id: [382ca773-99cb-403c-82e8-aa06f0650118] + x-runtime: ['0.052540'] + x-xss-protection: [1; mode=block] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: ['*/*'] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + User-Agent: [python-requests/2.18.4] + content-type: [application/json] + method: GET + uri: https://centos7-katello-3-6.sean.example.com/katello/api/v2/content_view_filters/21/rules/7 + response: + body: + string: !!binary | + H4sIAAAAAAAAA1NQqFZKzs8rSc0riS/LTC2PT8vMKUktis9MUbIyMtRRAtHmOkp5ibmpSlZKSamJ + RUo6SslFqYklqSnxiSVAMSMDQwtdA3NdI1MFQ1MrQyMrEwuF0BBnoLLSghTCymq5ANUpg62DAAAA + headers: + apipie-checksum: [83fd72067f1c96eb1196b17193cc48d0] + cache-control: ['max-age=0, private, must-revalidate'] + connection: [Keep-Alive] + content-encoding: [gzip] + content-length: ['114'] + content-security-policy: ['default-src ''self''; child-src ''self''; connect-src + ''self'' ws: wss:; img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' + ''unsafe-inline'' ''self''; style-src ''unsafe-inline'' ''self'''] + content-type: [application/json; charset=utf-8] + date: ['Wed, 25 Jul 2018 15:12:50 GMT'] + etag: [W/"1a6ef3d16e7997484bdbe81f817b2d7c-gzip"] + foreman_api_version: ['2'] + foreman_version: [1.17.1] + keep-alive: ['timeout=5, max=10000'] + server: [Apache/2.4.6 (CentOS)] + set-cookie: [_session_id=b5ea193763b4782349b4f99e5cd9b50a; path=/; secure; HttpOnly] + status: [200 OK] + strict-transport-security: [max-age=631139040; includeSubdomains] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-download-options: [noopen] + x-frame-options: [sameorigin] + x-permitted-cross-domain-policies: [none] + x-powered-by: [Phusion Passenger 4.0.53] + x-request-id: [e023afba-dce3-4162-a3fc-12969051cace] + x-runtime: ['0.059473'] + x-xss-protection: [1; mode=block] + status: {code: 200, message: OK} +version: 1 diff --git a/test/test_playbooks/fixtures/content_view_filter-31.yml b/test/test_playbooks/fixtures/content_view_filter-31.yml new file mode 100644 index 0000000000..8c9e2c7d71 --- /dev/null +++ b/test/test_playbooks/fixtures/content_view_filter-31.yml @@ -0,0 +1,570 @@ +interactions: +- request: + body: !!python/unicode '{}' + headers: + Accept: ['*/*'] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Length: ['2'] + User-Agent: [python-requests/2.18.4] + content-type: [application/json] + method: GET + uri: https://centos7-katello-3-6.sean.example.com/katello/api/v2/ping + response: + body: + string: !!binary | + H4sIAAAAAAAAA1NQqFYqLkksKS1WslLKz1bSUSpOLSrLTE4F8quVCkpzCkA0qoqU0qLEksz8vPhc + kJCxuVKtDlhlfGJpSQYh5YZg5cmJeSk5qQWZeSQqJ84KY5CetPyi1NzEvPiSxOLsYkJazC0MlWpr + a7kASk3nqg8BAAA= + headers: + apipie-checksum: [83fd72067f1c96eb1196b17193cc48d0] + cache-control: ['max-age=0, private, must-revalidate'] + connection: [Keep-Alive] + content-encoding: [gzip] + content-length: ['125'] + content-security-policy: ['default-src ''self''; child-src ''self''; connect-src + ''self'' ws: wss:; img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' + ''unsafe-inline'' ''self''; style-src ''unsafe-inline'' ''self'''] + content-type: [application/json; charset=utf-8] + date: ['Wed, 25 Jul 2018 15:13:30 GMT'] + etag: [W/"8164ff854dceb783418bf6668871972d-gzip"] + foreman_api_version: ['2'] + foreman_version: [1.17.1] + keep-alive: ['timeout=5, max=10000'] + server: [Apache/2.4.6 (CentOS)] + set-cookie: [_session_id=115ebfe491b19f44c6cd95e95532617a; path=/; secure; HttpOnly] + status: [200 OK] + strict-transport-security: [max-age=631139040; includeSubdomains] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-download-options: [noopen] + x-frame-options: [sameorigin] + x-permitted-cross-domain-policies: [none] + x-powered-by: [Phusion Passenger 4.0.53] + x-request-id: [442a8354-c2ad-4966-aca4-1be2082b4d75] + x-runtime: ['0.920226'] + x-xss-protection: [1; mode=block] + status: {code: 200, message: OK} +- request: + body: !!python/unicode '{"search": "name=\"Test Organization\""}' + headers: + Accept: ['*/*'] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Length: ['40'] + User-Agent: [python-requests/2.18.4] + content-type: [application/json] + method: GET + uri: https://centos7-katello-3-6.sean.example.com/katello/api/v2/organizations + response: + body: + string: !!binary | + H4sIAAAAAAAAA42PwWrDMAyG73kKo3MKcdjYathpD7BLd2pHUGLRGdwkyMqhC3n3qU7GxmCwm77P + v/mluTAGZBCM4Exd3ihN7ZewWYx4pm8gbjZRV2uekLt3ZejxQk8nOFAS88Jn7MMHShj6E8CaHFg0 + N+us1F517qcYy5UH9sSbUrPkL0xpipJUH2eI2JKulQuanwVQQseEQr5BbYC6so+76mFX3Rt752rr + 7N68Hp41No3+P7Hgwe3LfNDWZ371SZD415un1HEYM7nbOctbsRSfKnwYS2sBAAA= + headers: + apipie-checksum: [83fd72067f1c96eb1196b17193cc48d0] + cache-control: ['max-age=0, private, must-revalidate'] + connection: [Keep-Alive] + content-encoding: [gzip] + content-length: ['218'] + content-security-policy: ['default-src ''self''; child-src ''self''; connect-src + ''self'' ws: wss:; img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' + ''unsafe-inline'' ''self''; style-src ''unsafe-inline'' ''self'''] + content-type: [application/json; charset=utf-8] + date: ['Wed, 25 Jul 2018 15:13:31 GMT'] + etag: [W/"33eb541f7daf03e7d506a757939a7889-gzip"] + foreman_api_version: ['2'] + foreman_version: [1.17.1] + keep-alive: ['timeout=5, max=10000'] + server: [Apache/2.4.6 (CentOS)] + set-cookie: [_session_id=c7813d17697fc4eafd4107e57dd98947; path=/; secure; HttpOnly] + status: [200 OK] + strict-transport-security: [max-age=631139040; includeSubdomains] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-download-options: [noopen] + x-frame-options: [sameorigin] + x-permitted-cross-domain-policies: [none] + x-powered-by: [Phusion Passenger 4.0.53] + x-request-id: [a71e2986-69a7-451b-8b52-6bfa9cdc4344] + x-runtime: ['0.080363'] + x-xss-protection: [1; mode=block] + status: {code: 200, message: OK} +- request: + body: !!python/unicode '{"organization_id": 9, "name": "Test Content View"}' + headers: + Accept: ['*/*'] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Length: ['51'] + User-Agent: [python-requests/2.18.4] + content-type: [application/json] + method: GET + uri: https://centos7-katello-3-6.sean.example.com/katello/api/v2/content_views + response: + body: + string: !!binary | + H4sIAAAAAAAAA41SwW7bMAy97ysCnt0hTht087UfMGBoeykKQbGYVpgtCpTkzQ3876Vj1XWCFNhN + 5Hvkox55gEhRN1CVBYS0+wy8fsHpgaymYLMuAJmJoXKpaaQANdevc0QcoTrArocKnG4RCiA2KHTQ + oYahAMaQmhigejpATa2nYKM03usmYDFlHLqorBk5zwUY3GupmCl74hqVT95jVOg6y+RaqZgJHXKw + 5FRNaczKxI2OGKLKwMewjEdx4j6LldciZ418+baYpq/gXgpXd+SiKKweLf6Fsd0Om4ypjKmMGQw1 + Wx8XOsQv2tk3PebU2P7naW40bKn2a4mdqZ1hx25ias0oXzRKy39hsy5/XK1vrzbbVbmtyk11s109 + 3N8JPXnzP7SFqXkHs1UWp80dXbo+den37Of51CdInQ2LvR9L+9TCIBJ5oS2Z1GCWzQvL0Xwbczw1 + 6sR5dQ7qOtpusvwP9jnp8N/iCqD8vj5OKhP6tGtseEXzsTQ5+daGrH6ArPEpKNnISa4NjY2XETmF + yNRfBrPgFyBTSxEVsWJsqcNLtGF4Hr69A9j2DxC8AwAA + headers: + apipie-checksum: [83fd72067f1c96eb1196b17193cc48d0] + cache-control: ['max-age=0, private, must-revalidate'] + connection: [Keep-Alive] + content-encoding: [gzip] + content-length: ['432'] + content-security-policy: ['default-src ''self''; child-src ''self''; connect-src + ''self'' ws: wss:; img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' + ''unsafe-inline'' ''self''; style-src ''unsafe-inline'' ''self'''] + content-type: [application/json; charset=utf-8] + date: ['Wed, 25 Jul 2018 15:13:31 GMT'] + etag: [W/"e5377be671b535aa8045efc383418dc4-gzip"] + foreman_api_version: ['2'] + foreman_version: [1.17.1] + keep-alive: ['timeout=5, max=10000'] + server: [Apache/2.4.6 (CentOS)] + set-cookie: [_session_id=0dd4adfafb709ccbd34991bbf3f972a3; path=/; secure; HttpOnly] + status: [200 OK] + strict-transport-security: [max-age=631139040; includeSubdomains] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-download-options: [noopen] + x-frame-options: [sameorigin] + x-permitted-cross-domain-policies: [none] + x-powered-by: [Phusion Passenger 4.0.53] + x-request-id: [f6152d62-b50b-47db-b56b-0d709c01bd10] + x-runtime: ['0.105581'] + x-xss-protection: [1; mode=block] + status: {code: 200, message: OK} +- request: + body: !!python/unicode '{"organization_id": 9, "name": "Test Product"}' + headers: + Accept: ['*/*'] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Length: ['46'] + User-Agent: [python-requests/2.18.4] + content-type: [application/json] + method: GET + uri: https://centos7-katello-3-6.sean.example.com/katello/api/v2/products + response: + body: + string: !!binary | + H4sIAAAAAAAAA2VQy07DMBC88xXWnlOUpIQ2vqF+AEiUE0KW66xSC8e2/ACFqv+OnZY2Krfd2dnd + mTlAMIEroFUBPu6ujeU9ngp07NTUZQHonHFAdVQqLSB3Yn/pjAtAD7AbgYLmA0IBxnWY6MC9gGMB + Dn1UwQN9P4DsgLYFCMtyBatlW7btevXQPJZpcdqnsEUfyIszXRQhoYrvUJ1hdoU79MJJG6TRafhE + 9tzakSgZgkIS8gl74abqSyZR09eqSbJHLZhVXE/I2UrGfBwG7sZsyUch0CfddTLR25594viPHnjI + kl9TI3VPNmawCgPeT7qT3sxK87qs1otytagbUjW0KmnVkrftZs5i3ym39A2WZJA6JgdTlD3X8odn + l+wc3hzLOuepPc9nN9HdzKZrx1kUf8YcWuNlMG5kwkQdcgAfx7tfwzLIbjUCAAA= + headers: + apipie-checksum: [83fd72067f1c96eb1196b17193cc48d0] + cache-control: ['max-age=0, private, must-revalidate'] + connection: [Keep-Alive] + content-encoding: [gzip] + content-length: ['332'] + content-security-policy: ['default-src ''self''; child-src ''self''; connect-src + ''self'' ws: wss:; img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' + ''unsafe-inline'' ''self''; style-src ''unsafe-inline'' ''self'''] + content-type: [application/json; charset=utf-8] + date: ['Wed, 25 Jul 2018 15:13:31 GMT'] + etag: [W/"e094e3b621673748cc58c93af2f043f8-gzip"] + foreman_api_version: ['2'] + foreman_version: [1.17.1] + keep-alive: ['timeout=5, max=10000'] + server: [Apache/2.4.6 (CentOS)] + set-cookie: [_session_id=2c9c73d451bfcb6f603c08cd443b18a7; path=/; secure; HttpOnly] + status: [200 OK] + strict-transport-security: [max-age=631139040; includeSubdomains] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-download-options: [noopen] + x-frame-options: [sameorigin] + x-permitted-cross-domain-policies: [none] + x-powered-by: [Phusion Passenger 4.0.53] + x-request-id: [805abad8-ee63-4371-bd32-71540d969d17] + x-runtime: ['0.136456'] + x-xss-protection: [1; mode=block] + status: {code: 200, message: OK} +- request: + body: !!python/unicode '{"product_id": 9, "name": "Test Repository"}' + headers: + Accept: ['*/*'] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Length: ['44'] + User-Agent: [python-requests/2.18.4] + content-type: [application/json] + method: GET + uri: https://centos7-katello-3-6.sean.example.com/katello/api/v2/repositories + response: + body: + string: !!binary | + H4sIAAAAAAAAA3VTyY7bMAy99ysCnuPY8TJerr0WaFFMT8VAkCU6I4xtCVqmzQT591K202nQ9mKT + IkU9vkdewGvPR+iOe3Chf3cMP+FqoGWrk2d7QGu1hW4O40gXkFvx/NvT1kN3gf4MHcx8QtiDthIp + HbgTcN2DRRdG76D7fgGhZ4+zZ/5sqDacw0T5wdLr8Oy9cV2aWjTaHQaU2nKD2ox40PaUmjCa9SNx + 0mzJSt+0TiG+MHKvXpEge0IGj+g8+2xPfFZvFNBz+kn1lttzKoLzekqXhC9WyyD86nyN9ZTX9kz1 + 1gZh1ouxh56LF5wlU5Kwq0Gt3bUZr/ohT5qHRiRlnh2TVoohKUSPZVVz3pQt3b11PPIexxtrShLL + xX4lbMW7u0OwZcPf2MyKOnIeq7T0gmHRgrpos7Zt6rJ6yOC+9tYqnbrzLJgZ+Uxy3PSS6IRVJhJ1 + y5Dcx4gi7PaVhoPK4U/PYgyerhGf27wNBxRVw3PZN0nxIIeklEIkfZX3SZ23dVnUXOYyj1o7tBsy + Lie1POi59SgZp6aAaGySrE7yanesumPWZdnu2+NHSiMB/pt0LLYkquVjbVLZGJRwm754FIRA51YK + Tzaa3fGQXd8lEjrMcU4voJ23iIxmZo6TQCsgNY2AZRON1ECM/uuMjeo+4Plpca2ZoCtyQrdYWdwz + 8bJsVzzdHHayOhhauGXfuKfV6EqKBmrEs4kEHHG5PKjNkNjT/0812A/aPRfV2BG3waOD69P1wy/D + RJa48AMAAA== + headers: + apipie-checksum: [83fd72067f1c96eb1196b17193cc48d0] + cache-control: ['max-age=0, private, must-revalidate'] + connection: [Keep-Alive] + content-encoding: [gzip] + content-length: ['577'] + content-security-policy: ['default-src ''self''; child-src ''self''; connect-src + ''self'' ws: wss:; img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' + ''unsafe-inline'' ''self''; style-src ''unsafe-inline'' ''self'''] + content-type: [application/json; charset=utf-8] + date: ['Wed, 25 Jul 2018 15:13:31 GMT'] + etag: [W/"4800e2cb797f73e5a7b98036a1a0314c-gzip"] + foreman_api_version: ['2'] + foreman_version: [1.17.1] + keep-alive: ['timeout=5, max=10000'] + server: [Apache/2.4.6 (CentOS)] + set-cookie: [_session_id=d69dda033e4c2b1c2bbae24b4aa328c1; path=/; secure; HttpOnly] + status: [200 OK] + strict-transport-security: [max-age=631139040; includeSubdomains] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-download-options: [noopen] + x-frame-options: [sameorigin] + x-permitted-cross-domain-policies: [none] + x-powered-by: [Phusion Passenger 4.0.53] + x-request-id: [30e02f04-d249-46eb-8fb2-846c5cc70bc0] + x-runtime: ['0.124641'] + x-xss-protection: [1; mode=block] + status: {code: 200, message: OK} +- request: + body: !!python/unicode '{"content_view_id": 17, "name": "Test Errata date Content + View Filter"}' + headers: + Accept: ['*/*'] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Length: ['71'] + User-Agent: [python-requests/2.18.4] + content-type: [application/json] + method: GET + uri: https://centos7-katello-3-6.sean.example.com/katello/api/v2/content_view_filters + response: + body: + string: !!binary | + H4sIAAAAAAAAA6VWUY/iNhB+769AfiabkMACeT3dPVVqVV37clpZjj0Ba5PYsh3ucoj/3rFjsoGy + 7UoVEtgzY3/jmW9mOBOnHGtIuVoS21dvG80OMC7A0HGTZ0sCxihDyq5vGjwAzPDjtFPGkfJMqoGU + pGMtkCVRRgCaE2Y5uSyJAds3zpLy25nIjje9laojZc0aC0siBWIUy/FsSb6CdYvPxjDHFoI5WHxS + nYPOLf6S8H3xRTYOr14SAZYbqV24afSEG0B7QRn6Q/JstUuybZJvFqtNuSpKXPz59ROe7LX4iBkf + YekJYf37uGq1stLB5HiQdN5GCv+4F+9VzfCpk0mtDAeqe63BUehO0qiuxROTwQmMDwblqvdSDHWD + zlmEHRXXtxkI4MoMEWxVvIyhW21vQzcPF/HXVdBEHY06GnUPYqjMgXXyJ/My6q/f38p8JOZov811 + d2h3unDb5d/TlJfrj6RpZjYLaszBFCoJkXI+SncE+2OK573XN5orCdyg/dGhb8kFIWJCWyX6BiJs + TFjcTdyY9m9sovdKxp08jSF/hSEKO/gxYwFZPWXBU/RQ91Uj7RHENWlYq620Ef1MIsYbIEqd6ZFt + IKR7rEEqOKOGx8oI+I7SqFY5oMpQA606wSOzy+VBXh4EF9NufCaOzmlbpmk481SDUIZpULqBJ2Rj + qvtGj18CIWmwSn8qlRIPgxUk0Q3N3PERFdNfZWWYGVLeW6faNBj8bjCX3KX/pMDY60inwmJJKsZf + oRNYHOi7rOXY6PYZ21R1nuyedzxZI12TveB1UvAK1pstY7v1fkanSLgxe/+Dnnr02ic91irXoWrJ + tthn+/1uu948e97M745PRakdOk51w5Bf366te94TooWvQ1+/6Ls54ZyI3PQ68nKJpAy76AcpNjuW + i2qXFM+iTtaC86Ta5FWyzffbdbFlIhe5z7UFEz1jopUB0DHzXtVnZZZNVS/eNVoV0Qjv8t0afxWW + qyDXQeRFPedg7RjCg/HLEivs8pai0JBDOSmsDACKnOk8E7BFC4UUMLRFStUY0UcyigVzo3DsELZG + t6QscvQurDI/cvlrGLReGjf0YFSvcS6G0csclka5vus74XAt40JAhb/zbNDvOIatz8YCY9vjVAm9 + K1bb9Vr0KPaw822TqsOkpdfpHBIzUiHEfJsgx7NizMVMvpvkHsjfS6r+UMsfwfKIMYQwAP3fCN4b + 6Qbi5yaev/aB2PjjxMjz/xzszx8b7KPZ5QU/v/wNynoDKwAJAAA= + headers: + apipie-checksum: [83fd72067f1c96eb1196b17193cc48d0] + cache-control: ['max-age=0, private, must-revalidate'] + connection: [Keep-Alive] + content-encoding: [gzip] + content-length: ['950'] + content-security-policy: ['default-src ''self''; child-src ''self''; connect-src + ''self'' ws: wss:; img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' + ''unsafe-inline'' ''self''; style-src ''unsafe-inline'' ''self'''] + content-type: [application/json; charset=utf-8] + date: ['Wed, 25 Jul 2018 15:13:31 GMT'] + etag: [W/"003c3afbf2eb08b6986c768f05cd476c-gzip"] + foreman_api_version: ['2'] + foreman_version: [1.17.1] + keep-alive: ['timeout=5, max=10000'] + server: [Apache/2.4.6 (CentOS)] + set-cookie: [_session_id=80faae07fdb58d5e9286c7e8cd6b7359; path=/; secure; HttpOnly] + status: [200 OK] + strict-transport-security: [max-age=631139040; includeSubdomains] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-download-options: [noopen] + x-frame-options: [sameorigin] + x-permitted-cross-domain-policies: [none] + x-powered-by: [Phusion Passenger 4.0.53] + x-request-id: [78890d99-7006-4aa5-a0db-a20aab9e9905] + x-runtime: ['0.127488'] + x-xss-protection: [1; mode=block] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: ['*/*'] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + User-Agent: [python-requests/2.18.4] + content-type: [application/json] + method: GET + uri: https://centos7-katello-3-6.sean.example.com/katello/api/v2/content_view_filters/23 + response: + body: + string: !!binary | + H4sIAAAAAAAAA6VWwY7jNgy99ysCneOxYyeTxNdFeyrQotj2sggEWaITYWxLkOTsZgP/eylZyTjZ + zO4Ac5lIJEVyHh9Jz2ZnIjve9FaqjpQ1ayzMiRSkzIs56VgLpCSfwbrZ78Ywx2aCOZh9Up2Dzs3+ + k/B19odsHBgyJwIsN1K74Knrm2ZOuAG0F5Q5dJNni02SrZN8NVusykVR4uHfz5/wZa/Fe8z4GJYe + MSwpz3hvtbLSwTXxIOm8jRSWlF92Pqua9Y27mtTKcKC61xoche4ojepafHE1OILxYFCuei/N5qTB + 5CyGHRWX/81ACK7MKQZbFLsRusX6FropXMS7q6CJOhp1NOoeYKjMnnXyO/My6t1vb2UeiWm0v6a6 + u2h3uuBt+HmZ8nL5njJNzCagxhpcoZLgJecRpTuC/XPF8z7rG82FBO6k/dNT36JQGyV67jwUEaGp + 57+jdnh9HYprvb2yzgDQyrCOH0K5heIvYGiLSNX4fCpzbB+uRrekLHIMzPgL28PNhe6N6jV2EELh + mwYzLJeoHSnXYi4NPsiGYXcnjGhFnsXbldLX+2sT0Hsl404eR6a8wCkKO/g2IS9ZPGUBYARW91Uj + 7QHEhWsaTCttjH4mMcZrQJQ602OTgJDusQYZ7Iw6PVbGgG8ojWqVA6oMNdCqIzwyG4YHdHrIid54 + Ah2c07ZM0/DmqQahDNOgdANP2ESp7hs9/hEYkgar9LtSKfFhsPElpqGZOzzqoPRPibQxp5T31qk2 + DQaRbOmPzGXGE4x0KhzmpEK6QCewpzF3WUscoiVh24ytqjpPNs8bniyxy5Kt4HVS8AqWqzVjm+V2 + 0gWxT8bqfaCrfmwgrsOwIetim223m/Vy9ex586iv5sSeOk51w5BfX0aT21EWLfz48GMHczdH1pDI + Ta8juyGSMtxiHqRYbVguqk1SPIs6WQrOk2qVV8k6366XxZqJXOS+1hZMzIyJVoaAjpm3hlVWZtl1 + WIk3jRZFNEJffsngr8J2FYEbNiwVYnvOwdoRwr3xxxI77OOj5iKj2DA/n0E2nLIPDSPcizIeBFR+ + Ok2qQb8q4zccKWaIbY/LkPjZFbvt4hYzijPsfDuk6vCBQC8fFaEwIxUC5usEOZ4VYy0m8s1V7gN5 + v6Tq97X8FiwPiCGEvY0egfdGuhPx6x7fX+ZA3Fdx0eX5L79Hnt/3PTKaDbvht/8BSUSFDD8JAAA= + headers: + apipie-checksum: [83fd72067f1c96eb1196b17193cc48d0] + cache-control: ['max-age=0, private, must-revalidate'] + connection: [Keep-Alive] + content-encoding: [gzip] + content-length: ['911'] + content-security-policy: ['default-src ''self''; child-src ''self''; connect-src + ''self'' ws: wss:; img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' + ''unsafe-inline'' ''self''; style-src ''unsafe-inline'' ''self'''] + content-type: [application/json; charset=utf-8] + date: ['Wed, 25 Jul 2018 15:13:31 GMT'] + etag: [W/"025b84e54b298b61d9e3bab35681c731-gzip"] + foreman_api_version: ['2'] + foreman_version: [1.17.1] + keep-alive: ['timeout=5, max=10000'] + server: [Apache/2.4.6 (CentOS)] + set-cookie: [_session_id=d14fed10758a6355eff5e0b952769c5a; path=/; secure; HttpOnly] + status: [200 OK] + strict-transport-security: [max-age=631139040; includeSubdomains] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-download-options: [noopen] + x-frame-options: [sameorigin] + x-permitted-cross-domain-policies: [none] + x-powered-by: [Phusion Passenger 4.0.53] + x-request-id: [546b653f-efca-4af2-9da8-321950b97ca7] + x-runtime: ['0.151010'] + x-xss-protection: [1; mode=block] + status: {code: 200, message: OK} +- request: + body: !!python/unicode '{"content_view_id": 17, "name": "Test Errata date Content + View Filter"}' + headers: + Accept: ['*/*'] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Length: ['71'] + User-Agent: [python-requests/2.18.4] + content-type: [application/json] + method: GET + uri: https://centos7-katello-3-6.sean.example.com/katello/api/v2/content_view_filters + response: + body: + string: !!binary | + H4sIAAAAAAAAA6VWUY/iNhB+769AfiabkMACeT3dPVVqVV37clpZjj0Ba5PYsh3ucoj/3rFjsoGy + 7UoVEtgzY3/jmW9mOBOnHGtIuVoS21dvG80OMC7A0HGTZ0sCxihDyq5vGjwAzPDjtFPGkfJMqoGU + pGMtkCVRRgCaE2Y5uSyJAds3zpLy25nIjje9laojZc0aC0siBWIUy/FsSb6CdYvPxjDHFoI5WHxS + nYPOLf6S8H3xRTYOr14SAZYbqV24afSEG0B7QRn6Q/JstUuybZJvFqtNuSpKXPz59ROe7LX4iBkf + YekJYf37uGq1stLB5HiQdN5GCv+4F+9VzfCpk0mtDAeqe63BUehO0qiuxROTwQmMDwblqvdSDHWD + zlmEHRXXtxkI4MoMEWxVvIyhW21vQzcPF/HXVdBEHY06GnUPYqjMgXXyJ/My6q/f38p8JOZov811 + d2h3unDb5d/TlJfrj6RpZjYLaszBFCoJkXI+SncE+2OK573XN5orCdyg/dGhb8kFIWJCWyX6BiJs + TFjcTdyY9m9sovdKxp08jSF/hSEKO/gxYwFZPWXBU/RQ91Uj7RHENWlYq620Ef1MIsYbIEqd6ZFt + IKR7rEEqOKOGx8oI+I7SqFY5oMpQA606wSOzy+VBXh4EF9NufCaOzmlbpmk481SDUIZpULqBJ2Rj + qvtGj18CIWmwSn8qlRIPgxUk0Q3N3PERFdNfZWWYGVLeW6faNBj8bjCX3KX/pMDY60inwmJJKsZf + oRNYHOi7rOXY6PYZ21R1nuyedzxZI12TveB1UvAK1pstY7v1fkanSLgxe/+Dnnr02ic91irXoWrJ + tthn+/1uu948e97M745PRakdOk51w5Bf366te94TooWvQ1+/6Ls54ZyI3PQ68nKJpAy76AcpNjuW + i2qXFM+iTtaC86Ta5FWyzffbdbFlIhe5z7UFEz1jopUB0DHzXtVnZZZNVS/eNVoV0Qjv8t0afxWW + qyDXQeRFPedg7RjCg/HLEivs8pai0JBDOSmsDACKnOk8E7BFC4UUMLRFStUY0UcyigVzo3DsELZG + t6QscvQurDI/cvlrGLReGjf0YFSvcS6G0csclka5vus74XAt40JAhb/zbNDvOIatz8YCY9vjVAm9 + K1bb9Vr0KPaw822TqsOkpdfpHBIzUiHEfJsgx7NizMVMvpvkHsjfS6r+UMsfwfKIMYQwAP3fCN4b + 6Qbi5yaev/aB2PjjxMjz/xzszx8b7KPZ5QU/v/wNynoDKwAJAAA= + headers: + apipie-checksum: [83fd72067f1c96eb1196b17193cc48d0] + cache-control: ['max-age=0, private, must-revalidate'] + connection: [Keep-Alive] + content-encoding: [gzip] + content-length: ['950'] + content-security-policy: ['default-src ''self''; child-src ''self''; connect-src + ''self'' ws: wss:; img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' + ''unsafe-inline'' ''self''; style-src ''unsafe-inline'' ''self'''] + content-type: [application/json; charset=utf-8] + date: ['Wed, 25 Jul 2018 15:13:31 GMT'] + etag: [W/"003c3afbf2eb08b6986c768f05cd476c-gzip"] + foreman_api_version: ['2'] + foreman_version: [1.17.1] + keep-alive: ['timeout=5, max=10000'] + server: [Apache/2.4.6 (CentOS)] + set-cookie: [_session_id=361eebb5cdb82f4a1c8c2e30ad262817; path=/; secure; HttpOnly] + status: [200 OK] + strict-transport-security: [max-age=631139040; includeSubdomains] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-download-options: [noopen] + x-frame-options: [sameorigin] + x-permitted-cross-domain-policies: [none] + x-powered-by: [Phusion Passenger 4.0.53] + x-request-id: [66c0e1b6-cdc6-4b42-93a7-70c98043fe4e] + x-runtime: ['0.143756'] + x-xss-protection: [1; mode=block] + status: {code: 200, message: OK} +- request: + body: !!python/unicode '{"content_view_filter_id": 23, "name": null}' + headers: + Accept: ['*/*'] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Length: ['44'] + User-Agent: [python-requests/2.18.4] + content-type: [application/json] + method: GET + uri: https://centos7-katello-3-6.sean.example.com/katello/api/v2/content_view_filters/23/rules + response: + body: + string: !!binary | + H4sIAAAAAAAAA32OwWrDMBBE7/2KMGcZbJk0Rdf+QnsqQcjyJjG4slmvmhjjf6+UFLen3naGeTO7 + QAZxPUylMMXmV4zuTI+D2D6ELhWIeWCYEPs+AeTYXzY1sMAsaGYYdC0UBm4pheEmj1WBaYq9TDAf + C/wQhILYr46u9tT1klYSY3SdisSx2NZJ2oQuq0NRVkVZp0IK7R//ZfNlHin3oonnU3e7Jy8uePpM + G8iP+sidzDgqZN5mIJXEMav86n1bK3im7Fgn28ah0PtdtTdVbfTz7v3tNcV/wP9j63F9+gYpLpjU + YAEAAA== + headers: + apipie-checksum: [83fd72067f1c96eb1196b17193cc48d0] + cache-control: ['max-age=0, private, must-revalidate'] + connection: [Keep-Alive] + content-encoding: [gzip] + content-length: ['232'] + content-security-policy: ['default-src ''self''; child-src ''self''; connect-src + ''self'' ws: wss:; img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' + ''unsafe-inline'' ''self''; style-src ''unsafe-inline'' ''self'''] + content-type: [application/json; charset=utf-8] + date: ['Wed, 25 Jul 2018 15:13:32 GMT'] + etag: [W/"ef35656e3dd685e6b3fa6a839b91f2e4-gzip"] + foreman_api_version: ['2'] + foreman_version: [1.17.1] + keep-alive: ['timeout=5, max=10000'] + server: [Apache/2.4.6 (CentOS)] + set-cookie: [_session_id=0daae63621e21c2d47c3c304246f052c; path=/; secure; HttpOnly] + status: [200 OK] + strict-transport-security: [max-age=631139040; includeSubdomains] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-download-options: [noopen] + x-frame-options: [sameorigin] + x-permitted-cross-domain-policies: [none] + x-powered-by: [Phusion Passenger 4.0.53] + x-request-id: [e43cf78c-957b-46d2-8f85-3dc650ba3dfd] + x-runtime: ['0.065382'] + x-xss-protection: [1; mode=block] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: ['*/*'] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + User-Agent: [python-requests/2.18.4] + content-type: [application/json] + method: GET + uri: https://centos7-katello-3-6.sean.example.com/katello/api/v2/content_view_filters/23/rules/22 + response: + body: + string: !!binary | + H4sIAAAAAAAAA32NQQrCMBRE954i/HUKTUqtZOsVdCUSYvKrAU1L+qsW8e4mRYorlzO8N8PYC2wX + CAPpu8eHbv2VMGrvQMmKw0AmknaGEBTIUjRFKYqyAg4Y3E+/WXqaehxAHeA0nlv/nMmLCRZv6SOl + Ae0YPU1w5JB9nYU0MvY5uUTM35KDjZgbbWj5aApZM1ErUSm5ZvvdNuFf8T/2Xn0AqSj0p+oAAAA= + headers: + apipie-checksum: [83fd72067f1c96eb1196b17193cc48d0] + cache-control: ['max-age=0, private, must-revalidate'] + connection: [Keep-Alive] + content-encoding: [gzip] + content-length: ['170'] + content-security-policy: ['default-src ''self''; child-src ''self''; connect-src + ''self'' ws: wss:; img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' + ''unsafe-inline'' ''self''; style-src ''unsafe-inline'' ''self'''] + content-type: [application/json; charset=utf-8] + date: ['Wed, 25 Jul 2018 15:13:32 GMT'] + etag: [W/"d6af451459b5fc825fbdb90d516c41af-gzip"] + foreman_api_version: ['2'] + foreman_version: [1.17.1] + keep-alive: ['timeout=5, max=10000'] + server: [Apache/2.4.6 (CentOS)] + set-cookie: [_session_id=8035aac8ea061726b5b432a3619a0192; path=/; secure; HttpOnly] + status: [200 OK] + strict-transport-security: [max-age=631139040; includeSubdomains] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-download-options: [noopen] + x-frame-options: [sameorigin] + x-permitted-cross-domain-policies: [none] + x-powered-by: [Phusion Passenger 4.0.53] + x-request-id: [537733b6-a5ca-4b47-990d-b1376e6d04dd] + x-runtime: ['0.062957'] + x-xss-protection: [1; mode=block] + status: {code: 200, message: OK} +- request: + body: !!python/unicode '{"date_type": "issued"}' + headers: + Accept: ['*/*'] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Length: ['23'] + User-Agent: [python-requests/2.18.4] + content-type: [application/json] + method: PUT + uri: https://centos7-katello-3-6.sean.example.com/katello/api/v2/content_view_filters/23/rules/22 + response: + body: + string: !!binary | + H4sIAAAAAAAAA32NQQ7CIBBF956CzJomLaTWsPUKujKGIEyVRLGBQW2Md5d20bhyOX/e/4+xN9h7 + IAykHx6fuvdXwqi9AyUkh0QmknaGEBSIuumquqlqCRwwuJ98s+Q0DphAHeCUz71/zeTFBIu34ihX + QpujpxGOHKa+ngplxKeU0RVgVgsONmJ5O21oUXSVaFnTqkYqsWb73bbgeXB/MClm7LP6ArGraivp + AAAA + headers: + apipie-checksum: [83fd72067f1c96eb1196b17193cc48d0] + cache-control: ['max-age=0, private, must-revalidate'] + connection: [Keep-Alive] + content-encoding: [gzip] + content-length: ['174'] + content-security-policy: ['default-src ''self''; child-src ''self''; connect-src + ''self'' ws: wss:; img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' + ''unsafe-inline'' ''self''; style-src ''unsafe-inline'' ''self'''] + content-type: [application/json; charset=utf-8] + date: ['Wed, 25 Jul 2018 15:13:32 GMT'] + etag: [W/"b0e3b3c9b824a0f55bc57ed7bb27e2bc-gzip"] + foreman_api_version: ['2'] + foreman_version: [1.17.1] + keep-alive: ['timeout=5, max=10000'] + server: [Apache/2.4.6 (CentOS)] + set-cookie: [request_method=PUT; path=/, _session_id=19026f13b1c7715c1fea0765d5d554ce; + path=/; secure; HttpOnly] + status: [200 OK] + strict-transport-security: [max-age=631139040; includeSubdomains] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-download-options: [noopen] + x-frame-options: [sameorigin] + x-permitted-cross-domain-policies: [none] + x-powered-by: [Phusion Passenger 4.0.53] + x-request-id: [f5326d3f-dc89-40e4-8e0f-afbf88a7ad07] + x-runtime: ['0.070429'] + x-xss-protection: [1; mode=block] + status: {code: 200, message: OK} +version: 1 diff --git a/test/test_playbooks/fixtures/content_view_filter-33.yml b/test/test_playbooks/fixtures/content_view_filter-33.yml new file mode 100644 index 0000000000..4da68dad4b --- /dev/null +++ b/test/test_playbooks/fixtures/content_view_filter-33.yml @@ -0,0 +1,570 @@ +interactions: +- request: + body: !!python/unicode '{}' + headers: + Accept: ['*/*'] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Length: ['2'] + User-Agent: [python-requests/2.18.4] + content-type: [application/json] + method: GET + uri: https://centos7-katello-3-6.sean.example.com/katello/api/v2/ping + response: + body: + string: !!binary | + H4sIAAAAAAAAA43NPQqAMAwF4N1TSGYXQUW8TAlasdg/mtRFendtN6c6hff4HmnbG4iRI8EC7oQO + SIZLrfLNN/iofb5fscWArJwVJlfDBKkrUmDko8b7wle0m5Ze2SofPvzfizFvdhekQSsY6aTqZIaU + UvMAMP7LEQ4BAAA= + headers: + apipie-checksum: [83fd72067f1c96eb1196b17193cc48d0] + cache-control: ['max-age=0, private, must-revalidate'] + connection: [Keep-Alive] + content-encoding: [gzip] + content-length: ['125'] + content-security-policy: ['default-src ''self''; child-src ''self''; connect-src + ''self'' ws: wss:; img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' + ''unsafe-inline'' ''self''; style-src ''unsafe-inline'' ''self'''] + content-type: [application/json; charset=utf-8] + date: ['Wed, 25 Jul 2018 15:13:33 GMT'] + etag: [W/"bdbea1e8bded71ee5e220a1b1fef377d-gzip"] + foreman_api_version: ['2'] + foreman_version: [1.17.1] + keep-alive: ['timeout=5, max=10000'] + server: [Apache/2.4.6 (CentOS)] + set-cookie: [_session_id=4ebd0fb5cfea4318d28406cba9cad7a6; path=/; secure; HttpOnly] + status: [200 OK] + strict-transport-security: [max-age=631139040; includeSubdomains] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-download-options: [noopen] + x-frame-options: [sameorigin] + x-permitted-cross-domain-policies: [none] + x-powered-by: [Phusion Passenger 4.0.53] + x-request-id: [d9bdec72-a3af-4cce-8f40-44eb64e124a0] + x-runtime: ['0.166893'] + x-xss-protection: [1; mode=block] + status: {code: 200, message: OK} +- request: + body: !!python/unicode '{"search": "name=\"Test Organization\""}' + headers: + Accept: ['*/*'] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Length: ['40'] + User-Agent: [python-requests/2.18.4] + content-type: [application/json] + method: GET + uri: https://centos7-katello-3-6.sean.example.com/katello/api/v2/organizations + response: + body: + string: !!binary | + H4sIAAAAAAAAA42PwWrDMAyG73kKo3MKcdjYathpD7BLd2pHUGLRGdwkyMqhC3n3qU7GxmCwm77P + v/mluTAGZBCM4Exd3ihN7ZewWYx4pm8gbjZRV2uekLt3ZejxQk8nOFAS88Jn7MMHShj6E8CaHFg0 + N+us1F517qcYy5UH9sSbUrPkL0xpipJUH2eI2JKulQuanwVQQseEQr5BbYC6so+76mFX3Rt752rr + 7N68Hp41No3+P7Hgwe3LfNDWZ371SZD415un1HEYM7nbOctbsRSfKnwYS2sBAAA= + headers: + apipie-checksum: [83fd72067f1c96eb1196b17193cc48d0] + cache-control: ['max-age=0, private, must-revalidate'] + connection: [Keep-Alive] + content-encoding: [gzip] + content-length: ['218'] + content-security-policy: ['default-src ''self''; child-src ''self''; connect-src + ''self'' ws: wss:; img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' + ''unsafe-inline'' ''self''; style-src ''unsafe-inline'' ''self'''] + content-type: [application/json; charset=utf-8] + date: ['Wed, 25 Jul 2018 15:13:33 GMT'] + etag: [W/"33eb541f7daf03e7d506a757939a7889-gzip"] + foreman_api_version: ['2'] + foreman_version: [1.17.1] + keep-alive: ['timeout=5, max=10000'] + server: [Apache/2.4.6 (CentOS)] + set-cookie: [_session_id=ae1f28c6bafda0c00802eb0f9d9b5877; path=/; secure; HttpOnly] + status: [200 OK] + strict-transport-security: [max-age=631139040; includeSubdomains] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-download-options: [noopen] + x-frame-options: [sameorigin] + x-permitted-cross-domain-policies: [none] + x-powered-by: [Phusion Passenger 4.0.53] + x-request-id: [bffef147-da56-4a0f-b7e0-3587e067f0e3] + x-runtime: ['0.065323'] + x-xss-protection: [1; mode=block] + status: {code: 200, message: OK} +- request: + body: !!python/unicode '{"organization_id": 9, "name": "Test Content View"}' + headers: + Accept: ['*/*'] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Length: ['51'] + User-Agent: [python-requests/2.18.4] + content-type: [application/json] + method: GET + uri: https://centos7-katello-3-6.sean.example.com/katello/api/v2/content_views + response: + body: + string: !!binary | + H4sIAAAAAAAAA41SwW7bMAy97ysCnt0hTht087UfMGBoeykKQbGYVpgtCpTkzQ3876Vj1XWCFNhN + 5Hvkox55gEhRN1CVBYS0+wy8fsHpgaymYLMuAJmJoXKpaaQANdevc0QcoTrArocKnG4RCiA2KHTQ + oYahAMaQmhigejpATa2nYKM03usmYDFlHLqorBk5zwUY3GupmCl74hqVT95jVOg6y+RaqZgJHXKw + 5FRNaczKxI2OGKLKwMewjEdx4j6LldciZ418+baYpq/gXgpXd+SiKKweLf6Fsd0Om4ypjKmMGQw1 + Wx8XOsQv2tk3PebU2P7naW40bKn2a4mdqZ1hx25ias0oXzRKy39hsy5/XK1vrzbbVbmtyk11s109 + 3N8JPXnzP7SFqXkHs1UWp80dXbo+den37Of51CdInQ2LvR9L+9TCIBJ5oS2Z1GCWzQvL0Xwbczw1 + 6sR5dQ7qOtpusvwP9jnp8N/iCqD8vj5OKhP6tGtseEXzsTQ5+daGrH6ArPEpKNnISa4NjY2XETmF + yNRfBrPgFyBTSxEVsWJsqcNLtGF4Hr69A9j2DxC8AwAA + headers: + apipie-checksum: [83fd72067f1c96eb1196b17193cc48d0] + cache-control: ['max-age=0, private, must-revalidate'] + connection: [Keep-Alive] + content-encoding: [gzip] + content-length: ['432'] + content-security-policy: ['default-src ''self''; child-src ''self''; connect-src + ''self'' ws: wss:; img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' + ''unsafe-inline'' ''self''; style-src ''unsafe-inline'' ''self'''] + content-type: [application/json; charset=utf-8] + date: ['Wed, 25 Jul 2018 15:13:33 GMT'] + etag: [W/"e5377be671b535aa8045efc383418dc4-gzip"] + foreman_api_version: ['2'] + foreman_version: [1.17.1] + keep-alive: ['timeout=5, max=10000'] + server: [Apache/2.4.6 (CentOS)] + set-cookie: [_session_id=f2736acbc238dca741d1ccce1e45b680; path=/; secure; HttpOnly] + status: [200 OK] + strict-transport-security: [max-age=631139040; includeSubdomains] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-download-options: [noopen] + x-frame-options: [sameorigin] + x-permitted-cross-domain-policies: [none] + x-powered-by: [Phusion Passenger 4.0.53] + x-request-id: [35e9886d-b2f8-4141-9881-d499cdd18ba4] + x-runtime: ['0.103471'] + x-xss-protection: [1; mode=block] + status: {code: 200, message: OK} +- request: + body: !!python/unicode '{"organization_id": 9, "name": "Test Product"}' + headers: + Accept: ['*/*'] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Length: ['46'] + User-Agent: [python-requests/2.18.4] + content-type: [application/json] + method: GET + uri: https://centos7-katello-3-6.sean.example.com/katello/api/v2/products + response: + body: + string: !!binary | + H4sIAAAAAAAAA2VQy07DMBC88xXWnlOUpIQ2vqF+AEiUE0KW66xSC8e2/ACFqv+OnZY2Krfd2dnd + mTlAMIEroFUBPu6ujeU9ngp07NTUZQHonHFAdVQqLSB3Yn/pjAtAD7AbgYLmA0IBxnWY6MC9gGMB + Dn1UwQN9P4DsgLYFCMtyBatlW7btevXQPJZpcdqnsEUfyIszXRQhoYrvUJ1hdoU79MJJG6TRafhE + 9tzakSgZgkIS8gl74abqSyZR09eqSbJHLZhVXE/I2UrGfBwG7sZsyUch0CfddTLR25594viPHnjI + kl9TI3VPNmawCgPeT7qT3sxK87qs1otytagbUjW0KmnVkrftZs5i3ym39A2WZJA6JgdTlD3X8odn + l+wc3hzLOuepPc9nN9HdzKZrx1kUf8YcWuNlMG5kwkQdcgAfx7tfwzLIbjUCAAA= + headers: + apipie-checksum: [83fd72067f1c96eb1196b17193cc48d0] + cache-control: ['max-age=0, private, must-revalidate'] + connection: [Keep-Alive] + content-encoding: [gzip] + content-length: ['332'] + content-security-policy: ['default-src ''self''; child-src ''self''; connect-src + ''self'' ws: wss:; img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' + ''unsafe-inline'' ''self''; style-src ''unsafe-inline'' ''self'''] + content-type: [application/json; charset=utf-8] + date: ['Wed, 25 Jul 2018 15:13:34 GMT'] + etag: [W/"e094e3b621673748cc58c93af2f043f8-gzip"] + foreman_api_version: ['2'] + foreman_version: [1.17.1] + keep-alive: ['timeout=5, max=10000'] + server: [Apache/2.4.6 (CentOS)] + set-cookie: [_session_id=51d72206d49d6bf2c40c55ec3d7f9fde; path=/; secure; HttpOnly] + status: [200 OK] + strict-transport-security: [max-age=631139040; includeSubdomains] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-download-options: [noopen] + x-frame-options: [sameorigin] + x-permitted-cross-domain-policies: [none] + x-powered-by: [Phusion Passenger 4.0.53] + x-request-id: [75a14f37-2c14-488d-a8ed-602139b63234] + x-runtime: ['0.129315'] + x-xss-protection: [1; mode=block] + status: {code: 200, message: OK} +- request: + body: !!python/unicode '{"product_id": 9, "name": "Test Repository"}' + headers: + Accept: ['*/*'] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Length: ['44'] + User-Agent: [python-requests/2.18.4] + content-type: [application/json] + method: GET + uri: https://centos7-katello-3-6.sean.example.com/katello/api/v2/repositories + response: + body: + string: !!binary | + H4sIAAAAAAAAA3VTyY7bMAy99ysCnuPY8TJerr0WaFFMT8VAkCU6I4xtCVqmzQT591K202nQ9mKT + IkU9vkdewGvPR+iOe3Chf3cMP+FqoGWrk2d7QGu1hW4O40gXkFvx/NvT1kN3gf4MHcx8QtiDthIp + HbgTcN2DRRdG76D7fgGhZ4+zZ/5sqDacw0T5wdLr8Oy9cV2aWjTaHQaU2nKD2ox40PaUmjCa9SNx + 0mzJSt+0TiG+MHKvXpEge0IGj+g8+2xPfFZvFNBz+kn1lttzKoLzekqXhC9WyyD86nyN9ZTX9kz1 + 1gZh1ouxh56LF5wlU5Kwq0Gt3bUZr/ohT5qHRiRlnh2TVoohKUSPZVVz3pQt3b11PPIexxtrShLL + xX4lbMW7u0OwZcPf2MyKOnIeq7T0gmHRgrpos7Zt6rJ6yOC+9tYqnbrzLJgZ+Uxy3PSS6IRVJhJ1 + y5Dcx4gi7PaVhoPK4U/PYgyerhGf27wNBxRVw3PZN0nxIIeklEIkfZX3SZ23dVnUXOYyj1o7tBsy + Lie1POi59SgZp6aAaGySrE7yanesumPWZdnu2+NHSiMB/pt0LLYkquVjbVLZGJRwm754FIRA51YK + Tzaa3fGQXd8lEjrMcU4voJ23iIxmZo6TQCsgNY2AZRON1ECM/uuMjeo+4Plpca2ZoCtyQrdYWdwz + 8bJsVzzdHHayOhhauGXfuKfV6EqKBmrEs4kEHHG5PKjNkNjT/0812A/aPRfV2BG3waOD69P1wy/D + RJa48AMAAA== + headers: + apipie-checksum: [83fd72067f1c96eb1196b17193cc48d0] + cache-control: ['max-age=0, private, must-revalidate'] + connection: [Keep-Alive] + content-encoding: [gzip] + content-length: ['577'] + content-security-policy: ['default-src ''self''; child-src ''self''; connect-src + ''self'' ws: wss:; img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' + ''unsafe-inline'' ''self''; style-src ''unsafe-inline'' ''self'''] + content-type: [application/json; charset=utf-8] + date: ['Wed, 25 Jul 2018 15:13:34 GMT'] + etag: [W/"4800e2cb797f73e5a7b98036a1a0314c-gzip"] + foreman_api_version: ['2'] + foreman_version: [1.17.1] + keep-alive: ['timeout=5, max=10000'] + server: [Apache/2.4.6 (CentOS)] + set-cookie: [_session_id=a38f0264f5707eaea77422f326ebe5e8; path=/; secure; HttpOnly] + status: [200 OK] + strict-transport-security: [max-age=631139040; includeSubdomains] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-download-options: [noopen] + x-frame-options: [sameorigin] + x-permitted-cross-domain-policies: [none] + x-powered-by: [Phusion Passenger 4.0.53] + x-request-id: [946aedf6-25dd-4586-8edb-4b0a2e75af06] + x-runtime: ['0.148209'] + x-xss-protection: [1; mode=block] + status: {code: 200, message: OK} +- request: + body: !!python/unicode '{"content_view_id": 17, "name": "Test Errata date Content + View Filter"}' + headers: + Accept: ['*/*'] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Length: ['71'] + User-Agent: [python-requests/2.18.4] + content-type: [application/json] + method: GET + uri: https://centos7-katello-3-6.sean.example.com/katello/api/v2/content_view_filters + response: + body: + string: !!binary | + H4sIAAAAAAAAA6VW34/iNhB+71+B/EyWkMACeT3dPVVqVV37clpZjj0Ba5PY8g/uOMT/3rFjsoGy + 7UoVEtgzY3/jmW9mOBOnHGtJtZwT6+u3jWZ7GBZg6LAp8jkBY5QhVe/bFg8AM/ww7pRxpDqT+kQq + 0rMOyJwoIwDNCbOcXObEgPWts6T6diay5623UvWkalhrYU6kQIxyPpytyFewbvbZGObYTDAHs0+q + d9C72V8Svs++yNbh1XMiwHIjtYs3DZ5wA2gvKEN/SJEvt1m+yYr1bLmulmWFiz+/fsKTXouPmPEB + lh4RNryPq04rKx2MjkdJH2ykCI97CV41DJ86mjTKcKDaaw2OQn+URvUdnhgNjmBCMChXPkgx1C06 + ZxF2UFzfZiCCK3NKYMvyZQjdcnMbumm4SLiuhjbpaNLRpHsQQ2X2rJc/WZDRcP3uVhYiMUX7baq7 + Q7vTxdsu/56molp9JE0Ts0lQUw7GUElIlAtRuiPYH2M8772+0VxJ4E46HD35jlwQIiW0U8K3kGBT + wtJu5Ma4f2MTvVcy7uRxCPkrnJKwhx8TFpDlUx49RQ+1r1tpDyCuScNa7aRN6GeSMN4AUeqMR7aB + kO6xBqngjDo9VibAd5RGdcoBVYYa6NQRHpldLg/y8iC4mHYTMnFwTttqsYhnnhoQyjANSrfwhGxc + aN/q4UsgJI1Wi59KLUiAwQqS6IZm7vCIiotfZW2YOS24t051i2jwu8Fccrf4JwWGXkd6FRdzUjP+ + Cr3A4kDfZSOHRrfL2bpuimz7vOXZCuma7QRvspLXsFpvGNuudhM6JcIN2fsf9NSD1yHpqVa5jlVL + NuUu3+22m9X6OfBmend6KkrtqedUtwz59e3auqc9IVmEOgz1i76bI86JxM2gIy+XRMq4S36Qcr1l + hai3WfksmmwlOM/qdVFnm2K3WZUbJgpRhFxbMMkzJjoZAR0z71V9XuX5WPXiXaNlmYzwrtCt8Vdh + uQpyHURB5DkHa4cQ7k1YVlhhl7cUxYYcy0lhZQBQ5EwfmIAtWiikgKEdUqrBiD6SUSyYG4Vj+7g1 + uiNVWaB3cZWHkctf46AN0rShe6O8xrkYRy9zWBrV6q7vxMONTAsBNf5Os0G/4xi2IRszjK3HqRJ7 + V6q267XoUeph59sm1cRJS6/TOSZmoEKM+SZDjuflkIuJfDvKA1C4l9R+38gf0fKAMYQ4AMPfCO6N + dCcS5iaev/YB7GQ+ZitCF/85158/NNfLIppdXvDzy98w6zIy/wgAAA== + headers: + apipie-checksum: [83fd72067f1c96eb1196b17193cc48d0] + cache-control: ['max-age=0, private, must-revalidate'] + connection: [Keep-Alive] + content-encoding: [gzip] + content-length: ['952'] + content-security-policy: ['default-src ''self''; child-src ''self''; connect-src + ''self'' ws: wss:; img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' + ''unsafe-inline'' ''self''; style-src ''unsafe-inline'' ''self'''] + content-type: [application/json; charset=utf-8] + date: ['Wed, 25 Jul 2018 15:13:34 GMT'] + etag: [W/"d76be2d9da44d560bc063c7d53897968-gzip"] + foreman_api_version: ['2'] + foreman_version: [1.17.1] + keep-alive: ['timeout=5, max=10000'] + server: [Apache/2.4.6 (CentOS)] + set-cookie: [_session_id=46411f3d0f6b7b8fabe696574f9cef70; path=/; secure; HttpOnly] + status: [200 OK] + strict-transport-security: [max-age=631139040; includeSubdomains] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-download-options: [noopen] + x-frame-options: [sameorigin] + x-permitted-cross-domain-policies: [none] + x-powered-by: [Phusion Passenger 4.0.53] + x-request-id: [c5438bc6-60d4-4873-a36c-4a6d5bebf05f] + x-runtime: ['0.129608'] + x-xss-protection: [1; mode=block] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: ['*/*'] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + User-Agent: [python-requests/2.18.4] + content-type: [application/json] + method: GET + uri: https://centos7-katello-3-6.sean.example.com/katello/api/v2/content_view_filters/23 + response: + body: + string: !!binary | + H4sIAAAAAAAAA6VWS4/iOBC+769APpMmJNBArqPd00q7Ws3uZYQsx66A1Uls+cEMg/jvW3YMHRh6 + pqW+NHa9+6uvyplMTkT2vPVWqp5UDWstTIkUpCrKKelZB6Qin8G6ye/GMMcmgjmYfFK9g95N/pPw + dfKHbB0YMiUCLDdSuxip9207JdwA2gvKHIYp8vk6y1dZsZzMl9W8rPDw7+dP6Om1eI8ZH9LSA6Yl + 1QnvnVZWOrgWHiV9sJHCkurLNlTVMN+6q0mjDAeqvdbgKPQHaVTfocfV4AAmgEG58kGaT0mLxVlM + Oygu/5uBmFyZY0o2L7cDdPPVLXRjuEgIV0ObdDTpaNI9wFCZHevldxZkNITf3MoCEuNsf411d9nu + dDHa+edtKqrFe9o0MhuBmnpwhUpCkJwGlO4I9s8Vz/uqbzQXErijDq5H36FQGyU8dwGKhNA48t9J + e371js21wV5ZZwBobVjP97HdQvEXMLRDpBp0H8sc28Wr0R2pygITM/7CdnBzoTujvMYJQijC0GCF + 1QK1A+U6rKVFh/x83t4JE1qJZ+l2pfT1/joE9F7JuJOHgSkvcEzCHr6NyEvmT3kEGIHVvm6l3YO4 + cE2D6aRN2U8k5XhNiFJnPA4JCOkea5DBzqjjY2VK+IbSqE45oMpQA506wCOz8/kBnR5ywptAoL1z + 2lazWfR5akAowzQo3cITDtFM+1YPfwSmpNFq9l2pGQlpcPAllqGZ2z+aoNmfEmljjjPurVPdLBok + ss1+ZC4zgWCkV/EwJTXSBXqBM421y0biEq0I2+RsWTdFtn5e82yBU5ZtBG+yktewWK4YWy82oylI + czJ07wNT9eMAcR2XDVmVm3yzWa8Wy+fAm0dzNSX22HOqW4b8+jKY3K6yZBHWR1g7WLs5sJYkbgYd + 2Z4TKeMt1UHK5ZoVol5n5bNosoXgPKuXRZ2tis1qUa6YKEQRem3BpMqY6GRM6Jh5a1nlVZ5fl5V4 + 02heJiOMFR4Z/FU4riJyw8ZHhVjPOVg7QLgz4VjhhH181VxkFAfm5zvIxlP+oWWE76JMBwF12E6j + btCvyoQXjpQTxNbjY0jC7krTdgmLFaUddrpdUk38QKCXj4rYmIEKEfNVhhzPy6EXI/n6Kg+JQlxS + +10jv0XLPWII8d3GiMC9ke5IwnOP/pc9gJvMx27F1MUvP0ee3/U5UhbR7Lw9//Y/gM1gdD4JAAA= + headers: + apipie-checksum: [83fd72067f1c96eb1196b17193cc48d0] + cache-control: ['max-age=0, private, must-revalidate'] + connection: [Keep-Alive] + content-encoding: [gzip] + content-length: ['911'] + content-security-policy: ['default-src ''self''; child-src ''self''; connect-src + ''self'' ws: wss:; img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' + ''unsafe-inline'' ''self''; style-src ''unsafe-inline'' ''self'''] + content-type: [application/json; charset=utf-8] + date: ['Wed, 25 Jul 2018 15:13:34 GMT'] + etag: [W/"20a6f1cd142c16b43874ef488c714c32-gzip"] + foreman_api_version: ['2'] + foreman_version: [1.17.1] + keep-alive: ['timeout=5, max=10000'] + server: [Apache/2.4.6 (CentOS)] + set-cookie: [_session_id=93eec194a8ab3745165200fe637ab6d9; path=/; secure; HttpOnly] + status: [200 OK] + strict-transport-security: [max-age=631139040; includeSubdomains] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-download-options: [noopen] + x-frame-options: [sameorigin] + x-permitted-cross-domain-policies: [none] + x-powered-by: [Phusion Passenger 4.0.53] + x-request-id: [2d47581e-8e37-4677-8245-9acfa1a970fa] + x-runtime: ['0.188975'] + x-xss-protection: [1; mode=block] + status: {code: 200, message: OK} +- request: + body: !!python/unicode '{"content_view_id": 17, "name": "Test Errata date Content + View Filter"}' + headers: + Accept: ['*/*'] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Length: ['71'] + User-Agent: [python-requests/2.18.4] + content-type: [application/json] + method: GET + uri: https://centos7-katello-3-6.sean.example.com/katello/api/v2/content_view_filters + response: + body: + string: !!binary | + H4sIAAAAAAAAA6VW34/iNhB+71+B/EyWkMACeT3dPVVqVV37clpZjj0Ba5PY8g/uOMT/3rFjsoGy + 7UoVEtgzY3/jmW9mOBOnHGtJtZwT6+u3jWZ7GBZg6LAp8jkBY5QhVe/bFg8AM/ww7pRxpDqT+kQq + 0rMOyJwoIwDNCbOcXObEgPWts6T6diay5623UvWkalhrYU6kQIxyPpytyFewbvbZGObYTDAHs0+q + d9C72V8Svs++yNbh1XMiwHIjtYs3DZ5wA2gvKEN/SJEvt1m+yYr1bLmulmWFiz+/fsKTXouPmPEB + lh4RNryPq04rKx2MjkdJH2ykCI97CV41DJ86mjTKcKDaaw2OQn+URvUdnhgNjmBCMChXPkgx1C06 + ZxF2UFzfZiCCK3NKYMvyZQjdcnMbumm4SLiuhjbpaNLRpHsQQ2X2rJc/WZDRcP3uVhYiMUX7baq7 + Q7vTxdsu/56molp9JE0Ts0lQUw7GUElIlAtRuiPYH2M8772+0VxJ4E46HD35jlwQIiW0U8K3kGBT + wtJu5Ma4f2MTvVcy7uRxCPkrnJKwhx8TFpDlUx49RQ+1r1tpDyCuScNa7aRN6GeSMN4AUeqMR7aB + kO6xBqngjDo9VibAd5RGdcoBVYYa6NQRHpldLg/y8iC4mHYTMnFwTttqsYhnnhoQyjANSrfwhGxc + aN/q4UsgJI1Wi59KLUiAwQqS6IZm7vCIiotfZW2YOS24t051i2jwu8Fccrf4JwWGXkd6FRdzUjP+ + Cr3A4kDfZSOHRrfL2bpuimz7vOXZCuma7QRvspLXsFpvGNuudhM6JcIN2fsf9NSD1yHpqVa5jlVL + NuUu3+22m9X6OfBmend6KkrtqedUtwz59e3auqc9IVmEOgz1i76bI86JxM2gIy+XRMq4S36Qcr1l + hai3WfksmmwlOM/qdVFnm2K3WZUbJgpRhFxbMMkzJjoZAR0z71V9XuX5WPXiXaNlmYzwrtCt8Vdh + uQpyHURB5DkHa4cQ7k1YVlhhl7cUxYYcy0lhZQBQ5EwfmIAtWiikgKEdUqrBiD6SUSyYG4Vj+7g1 + uiNVWaB3cZWHkctf46AN0rShe6O8xrkYRy9zWBrV6q7vxMONTAsBNf5Os0G/4xi2IRszjK3HqRJ7 + V6q267XoUeph59sm1cRJS6/TOSZmoEKM+SZDjuflkIuJfDvKA1C4l9R+38gf0fKAMYQ4AMPfCO6N + dCcS5iaev/YB7GQ+ZitCF/85158/NNfLIppdXvDzy98w6zIy/wgAAA== + headers: + apipie-checksum: [83fd72067f1c96eb1196b17193cc48d0] + cache-control: ['max-age=0, private, must-revalidate'] + connection: [Keep-Alive] + content-encoding: [gzip] + content-length: ['952'] + content-security-policy: ['default-src ''self''; child-src ''self''; connect-src + ''self'' ws: wss:; img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' + ''unsafe-inline'' ''self''; style-src ''unsafe-inline'' ''self'''] + content-type: [application/json; charset=utf-8] + date: ['Wed, 25 Jul 2018 15:13:34 GMT'] + etag: [W/"d76be2d9da44d560bc063c7d53897968-gzip"] + foreman_api_version: ['2'] + foreman_version: [1.17.1] + keep-alive: ['timeout=5, max=10000'] + server: [Apache/2.4.6 (CentOS)] + set-cookie: [_session_id=45347b573b836bb892569119b51126a4; path=/; secure; HttpOnly] + status: [200 OK] + strict-transport-security: [max-age=631139040; includeSubdomains] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-download-options: [noopen] + x-frame-options: [sameorigin] + x-permitted-cross-domain-policies: [none] + x-powered-by: [Phusion Passenger 4.0.53] + x-request-id: [9e8b6a92-f903-4f7e-b5d5-5a7018ced54f] + x-runtime: ['0.246905'] + x-xss-protection: [1; mode=block] + status: {code: 200, message: OK} +- request: + body: !!python/unicode '{"content_view_filter_id": 23, "name": null}' + headers: + Accept: ['*/*'] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Length: ['44'] + User-Agent: [python-requests/2.18.4] + content-type: [application/json] + method: GET + uri: https://centos7-katello-3-6.sean.example.com/katello/api/v2/content_view_filters/23/rules + response: + body: + string: !!binary | + H4sIAAAAAAAAA32OwW7DIBBE7/2KaM5YsrHSVFz7C+mpihCGTWLJxRYsbS3L/15wJLen3phlZt4s + 4JHNANUIxNT9isnc6PGgoB9C1gIUwhigfBqGHCAT7H1XY2CoBd0Mhd5BYAyOshkmWqwCgWIaOEK9 + L7CjZ/KsP3v60td+4EzJGSXbXMQmsHaGMxOybk5V3VR1mwvJuz/3l/3O80SlF126XfvvzXk33tJH + ZqAMtSn0POMiUPK6BMrKGBOVpRtaCthA+dtpwzviVMnjoTmqplXy+fB2fs32NLl/bK3cbOtlffoB + KHchZF8BAAA= + headers: + apipie-checksum: [83fd72067f1c96eb1196b17193cc48d0] + cache-control: ['max-age=0, private, must-revalidate'] + connection: [Keep-Alive] + content-encoding: [gzip] + content-length: ['236'] + content-security-policy: ['default-src ''self''; child-src ''self''; connect-src + ''self'' ws: wss:; img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' + ''unsafe-inline'' ''self''; style-src ''unsafe-inline'' ''self'''] + content-type: [application/json; charset=utf-8] + date: ['Wed, 25 Jul 2018 15:13:35 GMT'] + etag: [W/"02ffbb408bbd1ac53017edbbf9044dd6-gzip"] + foreman_api_version: ['2'] + foreman_version: [1.17.1] + keep-alive: ['timeout=5, max=10000'] + server: [Apache/2.4.6 (CentOS)] + set-cookie: [_session_id=bfe72bd20343dd205bed522554805b5b; path=/; secure; HttpOnly] + status: [200 OK] + strict-transport-security: [max-age=631139040; includeSubdomains] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-download-options: [noopen] + x-frame-options: [sameorigin] + x-permitted-cross-domain-policies: [none] + x-powered-by: [Phusion Passenger 4.0.53] + x-request-id: [db33aaf1-722d-4582-aac0-6a00fde1fd6d] + x-runtime: ['0.183465'] + x-xss-protection: [1; mode=block] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: ['*/*'] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + User-Agent: [python-requests/2.18.4] + content-type: [application/json] + method: GET + uri: https://centos7-katello-3-6.sean.example.com/katello/api/v2/content_view_filters/23/rules/22 + response: + body: + string: !!binary | + H4sIAAAAAAAAA32NQQ7CIBBF956CzJomLaTWsPUKujKGIEyVRLGBQW2Md5d20bhyOX/e/4+xN9h7 + IAykHx6fuvdXwqi9AyUkh0QmknaGEBSIuumquqlqCRwwuJ98s+Q0DphAHeCUz71/zeTFBIu34ihX + QpujpxGOHKa+ngplxKeU0RVgVgsONmJ5O21oUXSVaFnTqkYqsWb73bbgeXB/MClm7LP6ArGraivp + AAAA + headers: + apipie-checksum: [83fd72067f1c96eb1196b17193cc48d0] + cache-control: ['max-age=0, private, must-revalidate'] + connection: [Keep-Alive] + content-encoding: [gzip] + content-length: ['174'] + content-security-policy: ['default-src ''self''; child-src ''self''; connect-src + ''self'' ws: wss:; img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' + ''unsafe-inline'' ''self''; style-src ''unsafe-inline'' ''self'''] + content-type: [application/json; charset=utf-8] + date: ['Wed, 25 Jul 2018 15:13:35 GMT'] + etag: [W/"b0e3b3c9b824a0f55bc57ed7bb27e2bc-gzip"] + foreman_api_version: ['2'] + foreman_version: [1.17.1] + keep-alive: ['timeout=5, max=10000'] + server: [Apache/2.4.6 (CentOS)] + set-cookie: [_session_id=d45d9b7a3e15f59aa5ccaa570410570b; path=/; secure; HttpOnly] + status: [200 OK] + strict-transport-security: [max-age=631139040; includeSubdomains] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-download-options: [noopen] + x-frame-options: [sameorigin] + x-permitted-cross-domain-policies: [none] + x-powered-by: [Phusion Passenger 4.0.53] + x-request-id: [56cc4fc1-301b-4fce-beec-cbf9ad77b1eb] + x-runtime: ['0.115245'] + x-xss-protection: [1; mode=block] + status: {code: 200, message: OK} +- request: + body: !!python/unicode '{"date_type": "updated", "types": ["security"]}' + headers: + Accept: ['*/*'] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Length: ['47'] + User-Agent: [python-requests/2.18.4] + content-type: [application/json] + method: PUT + uri: https://centos7-katello-3-6.sean.example.com/katello/api/v2/content_view_filters/23/rules/22 + response: + body: + string: !!binary | + H4sIAAAAAAAAA3XNTQrCMBAF4L2nCLNOIT/ESrZeoa5EQkhGCEgsyVQp4t1tihQ3LufN92YYe0G4 + Z8JM7pHw6a7pRlhcimCV5lDJF3LRE4IFJWTfCdkJDRwwx5/8sOU0j1jBnqFimEqiGS4cGnRts+hp + bFNc6PpEcQgFW+I8bcf6ThkmjZXaqj07DceFf4t/mDYre+8+tobWkNMAAAA= + headers: + apipie-checksum: [83fd72067f1c96eb1196b17193cc48d0] + cache-control: ['max-age=0, private, must-revalidate'] + connection: [Keep-Alive] + content-encoding: [gzip] + content-length: ['158'] + content-security-policy: ['default-src ''self''; child-src ''self''; connect-src + ''self'' ws: wss:; img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' + ''unsafe-inline'' ''self''; style-src ''unsafe-inline'' ''self'''] + content-type: [application/json; charset=utf-8] + date: ['Wed, 25 Jul 2018 15:13:35 GMT'] + etag: [W/"8e34506fc629a99ca67b7d09792973fc-gzip"] + foreman_api_version: ['2'] + foreman_version: [1.17.1] + keep-alive: ['timeout=5, max=10000'] + server: [Apache/2.4.6 (CentOS)] + set-cookie: [request_method=PUT; path=/, _session_id=6d4a614cdd78c7ee8e9dde6b1da194f0; + path=/; secure; HttpOnly] + status: [200 OK] + strict-transport-security: [max-age=631139040; includeSubdomains] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-download-options: [noopen] + x-frame-options: [sameorigin] + x-permitted-cross-domain-policies: [none] + x-powered-by: [Phusion Passenger 4.0.53] + x-request-id: [49624035-62ec-4816-8ca9-ad6fe0de412c] + x-runtime: ['0.095751'] + x-xss-protection: [1; mode=block] + status: {code: 200, message: OK} +version: 1 diff --git a/test/test_playbooks/fixtures/content_view_filter-35.yml b/test/test_playbooks/fixtures/content_view_filter-35.yml new file mode 100644 index 0000000000..1e9372be9e --- /dev/null +++ b/test/test_playbooks/fixtures/content_view_filter-35.yml @@ -0,0 +1,410 @@ +interactions: +- request: + body: !!python/unicode '{}' + headers: + Accept: ['*/*'] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Length: ['2'] + User-Agent: [python-requests/2.18.4] + content-type: [application/json] + method: GET + uri: https://centos7-katello-3-6.sean.example.com/katello/api/v2/ping + response: + body: + string: !!binary | + H4sIAAAAAAAAA43OPQqAMAwF4N1TSGYX/0C8TAlasbS2pUldpHfXujnVKbzHBy91fQExciSYwWlo + gGQ41SKffIGPxuf7FWsMyMpZceSqHyA1rxQYeS/xdsx8Qbsa6ZUt8u7D/028H20uyAOtYCRN5ZkJ + UkrVDZCgxtIPAQAA + headers: + apipie-checksum: [83fd72067f1c96eb1196b17193cc48d0] + cache-control: ['max-age=0, private, must-revalidate'] + connection: [Keep-Alive] + content-encoding: [gzip] + content-length: ['126'] + content-security-policy: ['default-src ''self''; child-src ''self''; connect-src + ''self'' ws: wss:; img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' + ''unsafe-inline'' ''self''; style-src ''unsafe-inline'' ''self'''] + content-type: [application/json; charset=utf-8] + date: ['Wed, 25 Jul 2018 15:13:36 GMT'] + etag: [W/"529a04bc7ed74a8dfd322e75a159d08d-gzip"] + foreman_api_version: ['2'] + foreman_version: [1.17.1] + keep-alive: ['timeout=5, max=10000'] + server: [Apache/2.4.6 (CentOS)] + set-cookie: [_session_id=6e0dc1745fd414f03e901dc9a57e3496; path=/; secure; HttpOnly] + status: [200 OK] + strict-transport-security: [max-age=631139040; includeSubdomains] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-download-options: [noopen] + x-frame-options: [sameorigin] + x-permitted-cross-domain-policies: [none] + x-powered-by: [Phusion Passenger 4.0.53] + x-request-id: [2cf43c5e-822d-42d1-a493-f570e72679ad] + x-runtime: ['0.260705'] + x-xss-protection: [1; mode=block] + status: {code: 200, message: OK} +- request: + body: !!python/unicode '{"search": "name=\"Test Organization\""}' + headers: + Accept: ['*/*'] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Length: ['40'] + User-Agent: [python-requests/2.18.4] + content-type: [application/json] + method: GET + uri: https://centos7-katello-3-6.sean.example.com/katello/api/v2/organizations + response: + body: + string: !!binary | + H4sIAAAAAAAAA42PwWrDMAyG73kKo3MKcdjYathpD7BLd2pHUGLRGdwkyMqhC3n3qU7GxmCwm77P + v/mluTAGZBCM4Exd3ihN7ZewWYx4pm8gbjZRV2uekLt3ZejxQk8nOFAS88Jn7MMHShj6E8CaHFg0 + N+us1F517qcYy5UH9sSbUrPkL0xpipJUH2eI2JKulQuanwVQQseEQr5BbYC6so+76mFX3Rt752rr + 7N68Hp41No3+P7Hgwe3LfNDWZ371SZD415un1HEYM7nbOctbsRSfKnwYS2sBAAA= + headers: + apipie-checksum: [83fd72067f1c96eb1196b17193cc48d0] + cache-control: ['max-age=0, private, must-revalidate'] + connection: [Keep-Alive] + content-encoding: [gzip] + content-length: ['218'] + content-security-policy: ['default-src ''self''; child-src ''self''; connect-src + ''self'' ws: wss:; img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' + ''unsafe-inline'' ''self''; style-src ''unsafe-inline'' ''self'''] + content-type: [application/json; charset=utf-8] + date: ['Wed, 25 Jul 2018 15:13:37 GMT'] + etag: [W/"33eb541f7daf03e7d506a757939a7889-gzip"] + foreman_api_version: ['2'] + foreman_version: [1.17.1] + keep-alive: ['timeout=5, max=10000'] + server: [Apache/2.4.6 (CentOS)] + set-cookie: [_session_id=360710d5d40424a11f499a0cfb95ab3c; path=/; secure; HttpOnly] + status: [200 OK] + strict-transport-security: [max-age=631139040; includeSubdomains] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-download-options: [noopen] + x-frame-options: [sameorigin] + x-permitted-cross-domain-policies: [none] + x-powered-by: [Phusion Passenger 4.0.53] + x-request-id: [4f9131f7-842f-4d37-9500-1be97c2cae18] + x-runtime: ['0.064198'] + x-xss-protection: [1; mode=block] + status: {code: 200, message: OK} +- request: + body: !!python/unicode '{"organization_id": 9, "name": "Test Content View"}' + headers: + Accept: ['*/*'] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Length: ['51'] + User-Agent: [python-requests/2.18.4] + content-type: [application/json] + method: GET + uri: https://centos7-katello-3-6.sean.example.com/katello/api/v2/content_views + response: + body: + string: !!binary | + H4sIAAAAAAAAA41SwW7bMAy97ysCnt0hTht087UfMGBoeykKQbGYVpgtCpTkzQ3876Vj1XWCFNhN + 5Hvkox55gEhRN1CVBYS0+wy8fsHpgaymYLMuAJmJoXKpaaQANdevc0QcoTrArocKnG4RCiA2KHTQ + oYahAMaQmhigejpATa2nYKM03usmYDFlHLqorBk5zwUY3GupmCl74hqVT95jVOg6y+RaqZgJHXKw + 5FRNaczKxI2OGKLKwMewjEdx4j6LldciZ418+baYpq/gXgpXd+SiKKweLf6Fsd0Om4ypjKmMGQw1 + Wx8XOsQv2tk3PebU2P7naW40bKn2a4mdqZ1hx25ias0oXzRKy39hsy5/XK1vrzbbVbmtyk11s109 + 3N8JPXnzP7SFqXkHs1UWp80dXbo+den37Of51CdInQ2LvR9L+9TCIBJ5oS2Z1GCWzQvL0Xwbczw1 + 6sR5dQ7qOtpusvwP9jnp8N/iCqD8vj5OKhP6tGtseEXzsTQ5+daGrH6ArPEpKNnISa4NjY2XETmF + yNRfBrPgFyBTSxEVsWJsqcNLtGF4Hr69A9j2DxC8AwAA + headers: + apipie-checksum: [83fd72067f1c96eb1196b17193cc48d0] + cache-control: ['max-age=0, private, must-revalidate'] + connection: [Keep-Alive] + content-encoding: [gzip] + content-length: ['432'] + content-security-policy: ['default-src ''self''; child-src ''self''; connect-src + ''self'' ws: wss:; img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' + ''unsafe-inline'' ''self''; style-src ''unsafe-inline'' ''self'''] + content-type: [application/json; charset=utf-8] + date: ['Wed, 25 Jul 2018 15:13:37 GMT'] + etag: [W/"e5377be671b535aa8045efc383418dc4-gzip"] + foreman_api_version: ['2'] + foreman_version: [1.17.1] + keep-alive: ['timeout=5, max=10000'] + server: [Apache/2.4.6 (CentOS)] + set-cookie: [_session_id=34813a881c4fc1da29e8f645bfc23528; path=/; secure; HttpOnly] + status: [200 OK] + strict-transport-security: [max-age=631139040; includeSubdomains] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-download-options: [noopen] + x-frame-options: [sameorigin] + x-permitted-cross-domain-policies: [none] + x-powered-by: [Phusion Passenger 4.0.53] + x-request-id: [7d72a2ab-48c9-4741-8509-a4b91932d378] + x-runtime: ['0.091551'] + x-xss-protection: [1; mode=block] + status: {code: 200, message: OK} +- request: + body: !!python/unicode '{"organization_id": 9, "name": "Test Product"}' + headers: + Accept: ['*/*'] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Length: ['46'] + User-Agent: [python-requests/2.18.4] + content-type: [application/json] + method: GET + uri: https://centos7-katello-3-6.sean.example.com/katello/api/v2/products + response: + body: + string: !!binary | + H4sIAAAAAAAAA2VQy07DMBC88xXWnlOUpIQ2vqF+AEiUE0KW66xSC8e2/ACFqv+OnZY2Krfd2dnd + mTlAMIEroFUBPu6ujeU9ngp07NTUZQHonHFAdVQqLSB3Yn/pjAtAD7AbgYLmA0IBxnWY6MC9gGMB + Dn1UwQN9P4DsgLYFCMtyBatlW7btevXQPJZpcdqnsEUfyIszXRQhoYrvUJ1hdoU79MJJG6TRafhE + 9tzakSgZgkIS8gl74abqSyZR09eqSbJHLZhVXE/I2UrGfBwG7sZsyUch0CfddTLR25594viPHnjI + kl9TI3VPNmawCgPeT7qT3sxK87qs1otytagbUjW0KmnVkrftZs5i3ym39A2WZJA6JgdTlD3X8odn + l+wc3hzLOuepPc9nN9HdzKZrx1kUf8YcWuNlMG5kwkQdcgAfx7tfwzLIbjUCAAA= + headers: + apipie-checksum: [83fd72067f1c96eb1196b17193cc48d0] + cache-control: ['max-age=0, private, must-revalidate'] + connection: [Keep-Alive] + content-encoding: [gzip] + content-length: ['332'] + content-security-policy: ['default-src ''self''; child-src ''self''; connect-src + ''self'' ws: wss:; img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' + ''unsafe-inline'' ''self''; style-src ''unsafe-inline'' ''self'''] + content-type: [application/json; charset=utf-8] + date: ['Wed, 25 Jul 2018 15:13:37 GMT'] + etag: [W/"e094e3b621673748cc58c93af2f043f8-gzip"] + foreman_api_version: ['2'] + foreman_version: [1.17.1] + keep-alive: ['timeout=5, max=10000'] + server: [Apache/2.4.6 (CentOS)] + set-cookie: [_session_id=9c9e6e92119fab8e1d95b553322f6b1f; path=/; secure; HttpOnly] + status: [200 OK] + strict-transport-security: [max-age=631139040; includeSubdomains] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-download-options: [noopen] + x-frame-options: [sameorigin] + x-permitted-cross-domain-policies: [none] + x-powered-by: [Phusion Passenger 4.0.53] + x-request-id: [161ca1b7-2c91-4d3e-b2fa-7bd406111a74] + x-runtime: ['0.150403'] + x-xss-protection: [1; mode=block] + status: {code: 200, message: OK} +- request: + body: !!python/unicode '{"product_id": 9, "name": "Test Repository"}' + headers: + Accept: ['*/*'] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Length: ['44'] + User-Agent: [python-requests/2.18.4] + content-type: [application/json] + method: GET + uri: https://centos7-katello-3-6.sean.example.com/katello/api/v2/repositories + response: + body: + string: !!binary | + H4sIAAAAAAAAA3VTyY7bMAy99ysCnuPY8TJerr0WaFFMT8VAkCU6I4xtCVqmzQT591K202nQ9mKT + IkU9vkdewGvPR+iOe3Chf3cMP+FqoGWrk2d7QGu1hW4O40gXkFvx/NvT1kN3gf4MHcx8QtiDthIp + HbgTcN2DRRdG76D7fgGhZ4+zZ/5sqDacw0T5wdLr8Oy9cV2aWjTaHQaU2nKD2ox40PaUmjCa9SNx + 0mzJSt+0TiG+MHKvXpEge0IGj+g8+2xPfFZvFNBz+kn1lttzKoLzekqXhC9WyyD86nyN9ZTX9kz1 + 1gZh1ouxh56LF5wlU5Kwq0Gt3bUZr/ohT5qHRiRlnh2TVoohKUSPZVVz3pQt3b11PPIexxtrShLL + xX4lbMW7u0OwZcPf2MyKOnIeq7T0gmHRgrpos7Zt6rJ6yOC+9tYqnbrzLJgZ+Uxy3PSS6IRVJhJ1 + y5Dcx4gi7PaVhoPK4U/PYgyerhGf27wNBxRVw3PZN0nxIIeklEIkfZX3SZ23dVnUXOYyj1o7tBsy + Lie1POi59SgZp6aAaGySrE7yanesumPWZdnu2+NHSiMB/pt0LLYkquVjbVLZGJRwm754FIRA51YK + Tzaa3fGQXd8lEjrMcU4voJ23iIxmZo6TQCsgNY2AZRON1ECM/uuMjeo+4Plpca2ZoCtyQrdYWdwz + 8bJsVzzdHHayOhhauGXfuKfV6EqKBmrEs4kEHHG5PKjNkNjT/0812A/aPRfV2BG3waOD69P1wy/D + RJa48AMAAA== + headers: + apipie-checksum: [83fd72067f1c96eb1196b17193cc48d0] + cache-control: ['max-age=0, private, must-revalidate'] + connection: [Keep-Alive] + content-encoding: [gzip] + content-length: ['577'] + content-security-policy: ['default-src ''self''; child-src ''self''; connect-src + ''self'' ws: wss:; img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' + ''unsafe-inline'' ''self''; style-src ''unsafe-inline'' ''self'''] + content-type: [application/json; charset=utf-8] + date: ['Wed, 25 Jul 2018 15:13:37 GMT'] + etag: [W/"4800e2cb797f73e5a7b98036a1a0314c-gzip"] + foreman_api_version: ['2'] + foreman_version: [1.17.1] + keep-alive: ['timeout=5, max=10000'] + server: [Apache/2.4.6 (CentOS)] + set-cookie: [_session_id=8df8da027b6dd0c275e7b56c2c880f81; path=/; secure; HttpOnly] + status: [200 OK] + strict-transport-security: [max-age=631139040; includeSubdomains] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-download-options: [noopen] + x-frame-options: [sameorigin] + x-permitted-cross-domain-policies: [none] + x-powered-by: [Phusion Passenger 4.0.53] + x-request-id: [b138908f-8143-4ef6-b598-ca3de6b52526] + x-runtime: ['0.140292'] + x-xss-protection: [1; mode=block] + status: {code: 200, message: OK} +- request: + body: !!python/unicode '{"content_view_id": 17, "name": "Test Errata date Content + View Filter"}' + headers: + Accept: ['*/*'] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Length: ['71'] + User-Agent: [python-requests/2.18.4] + content-type: [application/json] + method: GET + uri: https://centos7-katello-3-6.sean.example.com/katello/api/v2/content_view_filters + response: + body: + string: !!binary | + H4sIAAAAAAAAA6VWwY7bOAy971cEOsdjx04mia9F97RAi0XbSzEQZInOCGNbgiSn6wb596VkxeOk + md0BigCJRFIixfdI5kSccqwh5WpJbF+9bjQ7wLgAQ8dNni0JGKMMKbu+afAAMMOfp50yjpQnUg2k + JB1rgSyJMgLQnDDLyXlJDNi+cZaU309EdrzprVQdKWvWWFgSKdBHsRzPluQLWLf4aAxzbCGYg8UH + 1Tno3OKbhB+LP2Xj8OolEWC5kdqFm8ZIuAG0F5RhPCTPVrsk2yb5ZrHalKuixMXXLx/wZK/Fe8z4 + 6JYe0a1/H1etVlY6mAIPks7bSOEf9+Sjqhk+dTKpleFAda81OArdURrVtXhiMjiC8cmgXPVeiqlu + MDiLbkfF5W0GgnNlhuhsVTyNqVttr1M3Txfx11XQRB2NOhp1d3KozIF18ifzMuqv31/LfCbm3j7N + dTfebnThtvN/w5SX6/fANDObJTViMKVKQqScz9INwf6e8nkb9ZXmQgI3aH906FtyRhcR0FaJvoHo + NgIWdxM3pv0rm+itknEnj2PKX2CIwg7+mbGArB6yEClGqPuqkfYZxAU0rNVW2uj9RKKPV4codaZH + toGQ7r4GqeCMGu4ro8M3lEa1ygFVhhpo1RHumZ3Pd3C5k1yE3Xgknp3TtkzTcOahBqEM06B0Aw/I + xlT3jR6/BLqkwSr9qVRKvBusIIlhaOae71Ex/UtWhpkh5b11qk2DwWeDWHKX/kqBsdeRToXFklSM + v0AnsDgwdlnLsdHtM7ap6jzZPe54ska6JnvB66TgFaw3W8Z26/2MTpFwI3q/QU89Ru1Bj7XKdaha + si322X6/2643j54387vjU1Fqh45T3TDk1/dL6573hGjh69DXL8ZujjgnIje9jjydIynDLsZBis2O + 5aLaJcWjqJO14DypNnmVbPP9dl1smchF7rG2YGJkTLQyOHTMvFX1WZllU9WLN41WRTTCu3y3xl+F + 5SrIZRB5Uc85WDum8GD8ssQKO79CFBpyKCeFlQFAkTOdZwK2aKGQAoa2SKkaM3pPRrFgrhSOHcLW + 6JaURY7RhVXmRy5/CYPWS+OGHozqNc7FMHqZw9Io1zd9JxyuZVwIqPB3jgb9gWPYejQWmNsep0ro + XbHaLtdiRLGHna6bVB0mLb1M5wDMSIWQ822CHM+KEYuZfDfJvSN/L/5f4L2RbiB+QKLhpeBjh4+j + Ic//d4I/vmuCF+NoOD/h549/ATXIjszpCAAA + headers: + apipie-checksum: [83fd72067f1c96eb1196b17193cc48d0] + cache-control: ['max-age=0, private, must-revalidate'] + connection: [Keep-Alive] + content-encoding: [gzip] + content-length: ['939'] + content-security-policy: ['default-src ''self''; child-src ''self''; connect-src + ''self'' ws: wss:; img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' + ''unsafe-inline'' ''self''; style-src ''unsafe-inline'' ''self'''] + content-type: [application/json; charset=utf-8] + date: ['Wed, 25 Jul 2018 15:13:37 GMT'] + etag: [W/"cb6d0b0e8085af108f8dab0436662e33-gzip"] + foreman_api_version: ['2'] + foreman_version: [1.17.1] + keep-alive: ['timeout=5, max=10000'] + server: [Apache/2.4.6 (CentOS)] + set-cookie: [_session_id=1409500a445e98dc1471c48d6f156698; path=/; secure; HttpOnly] + status: [200 OK] + strict-transport-security: [max-age=631139040; includeSubdomains] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-download-options: [noopen] + x-frame-options: [sameorigin] + x-permitted-cross-domain-policies: [none] + x-powered-by: [Phusion Passenger 4.0.53] + x-request-id: [6eec39b7-3ed6-4b57-b005-7c2e4c005ee2] + x-runtime: ['0.141418'] + x-xss-protection: [1; mode=block] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: ['*/*'] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Length: ['0'] + User-Agent: [python-requests/2.18.4] + content-type: [application/json] + method: DELETE + uri: https://centos7-katello-3-6.sean.example.com/katello/api/v2/content_view_filters/23 + response: + body: + string: !!binary | + H4sIAAAAAAAAA41TwW7bMAy97ysMnd0hdlp087XYrhuGbpchEBSZSYXYkkBJ3rLA/z7KVhzHzYbe + TD6Sj358yrITU1o2wSmjWbUTjYOcqZpV5TpnWrTAKvYMzmefEIUXWS08ZE9Ge9A++6HgV/ZZNR6Q + 5awGJ1FZP0zSoWlyJhGovubC05hyVXy4Wz3elQ9Z8VAV64o+vj8/UWew9VvK5EjLO6Jl1Yni1hqn + PEyLDxkda1TtWPVzE7faidD4qWRnUAK3wVrwHHSn0OiWOqaCDjCKwaUJMbvKWUPLOaIdgfO/IQzk + Bo+JrFhvRumKx2vp5nKxOG4LTcJ4wnjCbmhocC+0+iNijsfxH69zUYk525c5tmBbYMO0/v9nKqv7 + t5xpVjYTNd1gkkpBzJxGlRYG+zbpudz6CjmbwB9tbD2GlpIWTR2kj1IkheaTvya0v3QPx3Wx3jiP + AHyLQsuX4dy1kQdA3pJSO2qf57zYDyHallXrkoiFPIg9XAV8jyZYekEkRXw0tGF1T+houZZ2aahh + 1febRTKplXyWosnSU3x5BHwJCulVNzrlAMeU1PB7Zl5WvF8NApOwNmwb5V6gPnvNArbKJfYTSxwX + Qsp6DPRIoFb+NkIO9miOt8FE+A8QTWs8cIMcoTUd3Crr+1d2ol9MZjjLTSVnOft3fwGd18XZ4wQA + AA== + headers: + apipie-checksum: [83fd72067f1c96eb1196b17193cc48d0] + cache-control: ['max-age=0, private, must-revalidate'] + connection: [Keep-Alive] + content-encoding: [gzip] + content-length: ['514'] + content-security-policy: ['default-src ''self''; child-src ''self''; connect-src + ''self'' ws: wss:; img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' + ''unsafe-inline'' ''self''; style-src ''unsafe-inline'' ''self'''] + content-type: [application/json; charset=utf-8] + date: ['Wed, 25 Jul 2018 15:13:37 GMT'] + etag: [W/"f75d023373b5bbcbee24ef29c5f4ee30-gzip"] + foreman_api_version: ['2'] + foreman_version: [1.17.1] + keep-alive: ['timeout=5, max=10000'] + server: [Apache/2.4.6 (CentOS)] + set-cookie: [request_method=DELETE; path=/, _session_id=bef8d731a0d02d2be45f2cd60fb5e95a; + path=/; secure; HttpOnly] + status: [200 OK] + strict-transport-security: [max-age=631139040; includeSubdomains] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-download-options: [noopen] + x-frame-options: [sameorigin] + x-permitted-cross-domain-policies: [none] + x-powered-by: [Phusion Passenger 4.0.53] + x-request-id: [1e106bbc-bed9-40d6-8ae7-d01dc978c8d3] + x-runtime: ['0.134024'] + x-xss-protection: [1; mode=block] + status: {code: 200, message: OK} +- request: + body: !!python/unicode '{"content_view_id": 17, "name": "Test Errata date Content + View Filter"}' + headers: + Accept: ['*/*'] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Length: ['71'] + User-Agent: [python-requests/2.18.4] + content-type: [application/json] + method: GET + uri: https://centos7-katello-3-6.sean.example.com/katello/api/v2/content_view_filters + response: + body: + string: !!binary | + H4sIAAAAAAAAA0XLsQqAMBAD0N3PyNxBHe9XRORaDx1qK9d2kOK/WxB0ywtJRY6ZPag3SMX+OHkT + 0NCC6PJibLWoRgWF4n07CKvbP0XNoAp7gRD4EBhEXaXNwcnhNlBJxecEmua7ewAzgtzWewAAAA== + headers: + apipie-checksum: [83fd72067f1c96eb1196b17193cc48d0] + cache-control: ['max-age=0, private, must-revalidate'] + connection: [Keep-Alive] + content-encoding: [gzip] + content-length: ['112'] + content-security-policy: ['default-src ''self''; child-src ''self''; connect-src + ''self'' ws: wss:; img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' + ''unsafe-inline'' ''self''; style-src ''unsafe-inline'' ''self'''] + content-type: [application/json; charset=utf-8] + date: ['Wed, 25 Jul 2018 15:13:38 GMT'] + etag: [W/"956e0fd5b832fbda8d01b01a5b7de844-gzip"] + foreman_api_version: ['2'] + foreman_version: [1.17.1] + keep-alive: ['timeout=5, max=10000'] + server: [Apache/2.4.6 (CentOS)] + set-cookie: [_session_id=888ca43d69da1e7b50bf4539deff4a62; path=/; secure; HttpOnly] + status: [200 OK] + strict-transport-security: [max-age=631139040; includeSubdomains] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-download-options: [noopen] + x-frame-options: [sameorigin] + x-permitted-cross-domain-policies: [none] + x-powered-by: [Phusion Passenger 4.0.53] + x-request-id: [2dff42b1-fc05-4358-994a-26e16b7805ec] + x-runtime: ['0.082979'] + x-xss-protection: [1; mode=block] + status: {code: 200, message: OK} +version: 1 diff --git a/test/test_playbooks/fixtures/content_view_filter-37.yml b/test/test_playbooks/fixtures/content_view_filter-37.yml new file mode 100644 index 0000000000..1dd4373efc --- /dev/null +++ b/test/test_playbooks/fixtures/content_view_filter-37.yml @@ -0,0 +1,440 @@ +interactions: +- request: + body: !!python/unicode '{}' + headers: + Accept: ['*/*'] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Length: ['2'] + User-Agent: [python-requests/2.18.4] + content-type: [application/json] + method: GET + uri: https://centos7-katello-3-6.sean.example.com/katello/api/v2/ping + response: + body: + string: !!binary | + H4sIAAAAAAAAA43NPQqAMAwF4N1TSGaXiiJ4mRK0YtH+0KQu0rtr3TrVKbzH90jb3kCMHAlmcAd0 + QCpcelFvvsHH0+dbijUGZO2sNLkaRkjdJyVG3mtcTJkvaNdTeW2rXBT834s+bzYXlEErGemg6mSA + lFLzAOJgkKgOAQAA + headers: + apipie-checksum: [83fd72067f1c96eb1196b17193cc48d0] + cache-control: ['max-age=0, private, must-revalidate'] + connection: [Keep-Alive] + content-encoding: [gzip] + content-length: ['126'] + content-security-policy: ['default-src ''self''; child-src ''self''; connect-src + ''self'' ws: wss:; img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' + ''unsafe-inline'' ''self''; style-src ''unsafe-inline'' ''self'''] + content-type: [application/json; charset=utf-8] + date: ['Wed, 25 Jul 2018 15:13:39 GMT'] + etag: [W/"458adeb3f177e0ae404c27113ef1108d-gzip"] + foreman_api_version: ['2'] + foreman_version: [1.17.1] + keep-alive: ['timeout=5, max=10000'] + server: [Apache/2.4.6 (CentOS)] + set-cookie: [_session_id=98cacbcdb5806b61f1cdfe6f9b069c57; path=/; secure; HttpOnly] + status: [200 OK] + strict-transport-security: [max-age=631139040; includeSubdomains] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-download-options: [noopen] + x-frame-options: [sameorigin] + x-permitted-cross-domain-policies: [none] + x-powered-by: [Phusion Passenger 4.0.53] + x-request-id: [c2fe5fdd-ddd7-41dd-bccc-6022f9d52d74] + x-runtime: ['0.154011'] + x-xss-protection: [1; mode=block] + status: {code: 200, message: OK} +- request: + body: !!python/unicode '{"search": "name=\"Test Organization\""}' + headers: + Accept: ['*/*'] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Length: ['40'] + User-Agent: [python-requests/2.18.4] + content-type: [application/json] + method: GET + uri: https://centos7-katello-3-6.sean.example.com/katello/api/v2/organizations + response: + body: + string: !!binary | + H4sIAAAAAAAAA42PwWrDMAyG73kKo3MKcdjYathpD7BLd2pHUGLRGdwkyMqhC3n3qU7GxmCwm77P + v/mluTAGZBCM4Exd3ihN7ZewWYx4pm8gbjZRV2uekLt3ZejxQk8nOFAS88Jn7MMHShj6E8CaHFg0 + N+us1F517qcYy5UH9sSbUrPkL0xpipJUH2eI2JKulQuanwVQQseEQr5BbYC6so+76mFX3Rt752rr + 7N68Hp41No3+P7Hgwe3LfNDWZ371SZD415un1HEYM7nbOctbsRSfKnwYS2sBAAA= + headers: + apipie-checksum: [83fd72067f1c96eb1196b17193cc48d0] + cache-control: ['max-age=0, private, must-revalidate'] + connection: [Keep-Alive] + content-encoding: [gzip] + content-length: ['218'] + content-security-policy: ['default-src ''self''; child-src ''self''; connect-src + ''self'' ws: wss:; img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' + ''unsafe-inline'' ''self''; style-src ''unsafe-inline'' ''self'''] + content-type: [application/json; charset=utf-8] + date: ['Wed, 25 Jul 2018 15:13:39 GMT'] + etag: [W/"33eb541f7daf03e7d506a757939a7889-gzip"] + foreman_api_version: ['2'] + foreman_version: [1.17.1] + keep-alive: ['timeout=5, max=10000'] + server: [Apache/2.4.6 (CentOS)] + set-cookie: [_session_id=90567dd8b9722b951abda0601dc3d81f; path=/; secure; HttpOnly] + status: [200 OK] + strict-transport-security: [max-age=631139040; includeSubdomains] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-download-options: [noopen] + x-frame-options: [sameorigin] + x-permitted-cross-domain-policies: [none] + x-powered-by: [Phusion Passenger 4.0.53] + x-request-id: [1da75225-beda-4b9e-a894-74666bedf2e7] + x-runtime: ['0.062558'] + x-xss-protection: [1; mode=block] + status: {code: 200, message: OK} +- request: + body: !!python/unicode '{"organization_id": 9, "name": "Test Content View"}' + headers: + Accept: ['*/*'] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Length: ['51'] + User-Agent: [python-requests/2.18.4] + content-type: [application/json] + method: GET + uri: https://centos7-katello-3-6.sean.example.com/katello/api/v2/content_views + response: + body: + string: !!binary | + H4sIAAAAAAAAA41SwW7bMAy97ysCnt0hTht087UfMGBoeykKQbGYVpgtCpTkzQ3876Vj1XWCFNhN + 5Hvkox55gEhRN1CVBYS0+wy8fsHpgaymYLMuAJmJoXKpaaQANdevc0QcoTrArocKnG4RCiA2KHTQ + oYahAMaQmhigejpATa2nYKM03usmYDFlHLqorBk5zwUY3GupmCl74hqVT95jVOg6y+RaqZgJHXKw + 5FRNaczKxI2OGKLKwMewjEdx4j6LldciZ418+baYpq/gXgpXd+SiKKweLf6Fsd0Om4ypjKmMGQw1 + Wx8XOsQv2tk3PebU2P7naW40bKn2a4mdqZ1hx25ias0oXzRKy39hsy5/XK1vrzbbVbmtyk11s109 + 3N8JPXnzP7SFqXkHs1UWp80dXbo+den37Of51CdInQ2LvR9L+9TCIBJ5oS2Z1GCWzQvL0Xwbczw1 + 6sR5dQ7qOtpusvwP9jnp8N/iCqD8vj5OKhP6tGtseEXzsTQ5+daGrH6ArPEpKNnISa4NjY2XETmF + yNRfBrPgFyBTSxEVsWJsqcNLtGF4Hr69A9j2DxC8AwAA + headers: + apipie-checksum: [83fd72067f1c96eb1196b17193cc48d0] + cache-control: ['max-age=0, private, must-revalidate'] + connection: [Keep-Alive] + content-encoding: [gzip] + content-length: ['432'] + content-security-policy: ['default-src ''self''; child-src ''self''; connect-src + ''self'' ws: wss:; img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' + ''unsafe-inline'' ''self''; style-src ''unsafe-inline'' ''self'''] + content-type: [application/json; charset=utf-8] + date: ['Wed, 25 Jul 2018 15:13:39 GMT'] + etag: [W/"e5377be671b535aa8045efc383418dc4-gzip"] + foreman_api_version: ['2'] + foreman_version: [1.17.1] + keep-alive: ['timeout=5, max=10000'] + server: [Apache/2.4.6 (CentOS)] + set-cookie: [_session_id=69dbd281ece0ce7b539470be394f6d56; path=/; secure; HttpOnly] + status: [200 OK] + strict-transport-security: [max-age=631139040; includeSubdomains] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-download-options: [noopen] + x-frame-options: [sameorigin] + x-permitted-cross-domain-policies: [none] + x-powered-by: [Phusion Passenger 4.0.53] + x-request-id: [8877cff9-e4cd-4bd3-a434-074fe2947a94] + x-runtime: ['0.096091'] + x-xss-protection: [1; mode=block] + status: {code: 200, message: OK} +- request: + body: !!python/unicode '{"content_view_id": 17, "name": "Test Package Group Content + View Filter"}' + headers: + Accept: ['*/*'] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Length: ['73'] + User-Agent: [python-requests/2.18.4] + content-type: [application/json] + method: GET + uri: https://centos7-katello-3-6.sean.example.com/katello/api/v2/content_view_filters + response: + body: + string: !!binary | + H4sIAAAAAAAAA0XLsQqAMBAD0N3PyNxBHe9XRORaDx1qK9d2kOK/WxB0ywtJRY6ZPag3SMX+OHkT + 0NCC6PJibLWoRgWF4n07CKvbP0XNoAp7gRD4EBhEXaXNwcnhNlBJxecEmua7ewAzgtzWewAAAA== + headers: + apipie-checksum: [83fd72067f1c96eb1196b17193cc48d0] + cache-control: ['max-age=0, private, must-revalidate'] + connection: [Keep-Alive] + content-encoding: [gzip] + content-length: ['112'] + content-security-policy: ['default-src ''self''; child-src ''self''; connect-src + ''self'' ws: wss:; img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' + ''unsafe-inline'' ''self''; style-src ''unsafe-inline'' ''self'''] + content-type: [application/json; charset=utf-8] + date: ['Wed, 25 Jul 2018 15:13:39 GMT'] + etag: [W/"956e0fd5b832fbda8d01b01a5b7de844-gzip"] + foreman_api_version: ['2'] + foreman_version: [1.17.1] + keep-alive: ['timeout=5, max=10000'] + server: [Apache/2.4.6 (CentOS)] + set-cookie: [_session_id=8db8037aed3db628bbcda8f901eb041f; path=/; secure; HttpOnly] + status: [200 OK] + strict-transport-security: [max-age=631139040; includeSubdomains] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-download-options: [noopen] + x-frame-options: [sameorigin] + x-permitted-cross-domain-policies: [none] + x-powered-by: [Phusion Passenger 4.0.53] + x-request-id: [92eed9db-18f6-47d8-8c19-e8c2a736ef20] + x-runtime: ['0.073325'] + x-xss-protection: [1; mode=block] + status: {code: 200, message: OK} +- request: + body: !!python/unicode '{"content_view_id": 17, "inclusion": false, "repository_ids": + [], "type": "package_group", "name": "Test Package Group Content View Filter"}' + headers: + Accept: ['*/*'] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Length: ['140'] + User-Agent: [python-requests/2.18.4] + content-type: [application/json] + method: POST + uri: https://centos7-katello-3-6.sean.example.com/katello/api/v2/content_view_filters + response: + body: + string: !!binary | + H4sIAAAAAAAAA41TwW7bMAy97ysMndMhtht09bXAeuwwdLsMgaDITCrElgRKypYF/vdRtuLYWTb0 + SD5Sj3p8zLITU1o2wSmjWbUVjYMFUzWrivsF06IFVrFXcD77IuRe7CB7RhNs9mS0B+2z7wp+Zp9V + 4wHZgtXgJCrr+7d0aJoFkwjCQ82Fp4eKZf7pbvlwV6yyfFXlZVU+Zt9en6gz2Po9ZXKg5QeiZdWJ + 4tYapzyMo/cZHWtU7Vj1Yx2n2orQ+LFka1ACt8Fa8Bz0QaHRLXWMBQfAKAeXJsTscsEaGs4R7QCc + /4bQkxs8JrK8XA/i5Q9z8aZysfjcBpqE8YTxhN3Q0OBOaPVbxByPzz/Oc1GJKdvLFLtiu8L617r/ + r6mo7lfvWNOkbCJq2sEolYKYOQ0qlXOVvo56Xk89Q84m8EcbW4+hpaRFUwfpoxRJoZl5E9pduvvl + ulhvnEcAvkGh5Vu/7trIPSBvSakttU9zXuz6EG3LqrIg4uEuZgHfxSOhGyIpEIWnCSs6p2S5lmZp + qGHZdeurZFIr+SxFo6XH+HIE/BoU0qvD4JQ9HFNSw6+JeVn+cdkLTMLasGmUe4P67DUL2CqX2E8s + cVwIKesx0JFArfxthBzs0Rxvg4nwHyCa1njgBjlCaw5wq6zr/rITfTGZYb4AKjyL2n34A6xJ5fDr + BAAA + headers: + apipie-checksum: [83fd72067f1c96eb1196b17193cc48d0] + cache-control: ['max-age=0, private, must-revalidate'] + connection: [Keep-Alive] + content-encoding: [gzip] + content-length: ['516'] + content-security-policy: ['default-src ''self''; child-src ''self''; connect-src + ''self'' ws: wss:; img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' + ''unsafe-inline'' ''self''; style-src ''unsafe-inline'' ''self'''] + content-type: [application/json; charset=utf-8] + date: ['Wed, 25 Jul 2018 15:13:39 GMT'] + etag: [W/"2e2f535eef7aed9a7d60bbe72e194c90-gzip"] + foreman_api_version: ['2'] + foreman_version: [1.17.1] + keep-alive: ['timeout=5, max=10000'] + server: [Apache/2.4.6 (CentOS)] + set-cookie: [request_method=POST; path=/, _session_id=930dca4b5db286ea4c0486d121d2cd55; + path=/; secure; HttpOnly] + status: [200 OK] + strict-transport-security: [max-age=631139040; includeSubdomains] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-download-options: [noopen] + x-frame-options: [sameorigin] + x-permitted-cross-domain-policies: [none] + x-powered-by: [Phusion Passenger 4.0.53] + x-request-id: [a622c00e-b351-46ff-899a-cc6da061b2e4] + x-runtime: ['0.181717'] + x-xss-protection: [1; mode=block] + status: {code: 200, message: OK} +- request: + body: !!python/unicode '{"content_view_id": 17, "name": "Test Package Group Content + View Filter"}' + headers: + Accept: ['*/*'] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Length: ['73'] + User-Agent: [python-requests/2.18.4] + content-type: [application/json] + method: GET + uri: https://centos7-katello-3-6.sean.example.com/katello/api/v2/content_view_filters + response: + body: + string: !!binary | + H4sIAAAAAAAAA41TwW7bMAy97ysMnt0hThp09bXAdtwwdLsMgaDITCpUlgRK8uYF/vdJseI4WTb0 + JvKRfOQjdQBvPFdQVyW4sD0blu9xfCCx0VguSkAiQ1DroFRMQE7iZbIMeagPsO2hBs1bhBIMNRjD + gTsBQwmELijvoP5xAKmFCk4aDfWOK4clyCZy3Jdjbg3P6HzxhYvXSF58IhNs8WS0R+2L7xJ/Fh+l + 8rF4CQ06QdL6Y62xF0HIPTaMx45guag+3C0e7pbrolrX1apePRbfnp9iZrDNW8LESMu6SJsmFKa1 + xkmPU+tHj04xsknjbVJXOx6HnUJ2hgQyG6xFz1B3koxuY8YU0CElOZgwIXmj2Co25yLtCJxmIzyS + G+ozWbXajOJVD5fizeWCVG6LKmMsYyxjNzQ0tOda/ubJx1L5x0tfUmLO9nmOXbFdYcdqw//XtKzv + 129Y0yxsJmrewSSVxHx0SaXVpUpfJz2vu75ATkfge5tS+9DCECnyQlvTBIWZNi8sW9NtTPb5mtg1 + yIWX3Sj5K/bZqfHX7Aqger84dho7tGGrpHvB5rS0+Ftb6TL7ATLHmTB6PYV4bdhIfxuJp+DJ9LfB + TPgPkExrPDJDjLA1Hd4KG4a/9hJHzKra8buzffrucUg6iTpshnd/AEn44FGsBAAA + headers: + apipie-checksum: [83fd72067f1c96eb1196b17193cc48d0] + cache-control: ['max-age=0, private, must-revalidate'] + connection: [Keep-Alive] + content-encoding: [gzip] + content-length: ['504'] + content-security-policy: ['default-src ''self''; child-src ''self''; connect-src + ''self'' ws: wss:; img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' + ''unsafe-inline'' ''self''; style-src ''unsafe-inline'' ''self'''] + content-type: [application/json; charset=utf-8] + date: ['Wed, 25 Jul 2018 15:13:40 GMT'] + etag: [W/"1af6967320df5995cc0b02d6465ca79b-gzip"] + foreman_api_version: ['2'] + foreman_version: [1.17.1] + keep-alive: ['timeout=5, max=10000'] + server: [Apache/2.4.6 (CentOS)] + set-cookie: [_session_id=da8f029e571bc6115afce53e91586da2; path=/; secure; HttpOnly] + status: [200 OK] + strict-transport-security: [max-age=631139040; includeSubdomains] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-download-options: [noopen] + x-frame-options: [sameorigin] + x-permitted-cross-domain-policies: [none] + x-powered-by: [Phusion Passenger 4.0.53] + x-request-id: [8bffe10c-8ed6-4b77-8444-4b949419a5d9] + x-runtime: ['0.107508'] + x-xss-protection: [1; mode=block] + status: {code: 200, message: OK} +- request: + body: !!python/unicode '{"content_view_filter_id": 24, "name": "birds"}' + headers: + Accept: ['*/*'] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Length: ['47'] + User-Agent: [python-requests/2.18.4] + content-type: [application/json] + method: GET + uri: https://centos7-katello-3-6.sean.example.com/katello/api/v2/content_view_filters/24/rules + response: + body: + string: !!binary | + H4sIAAAAAAAAA0XLsQqAMBAD0N3PyNxBHe9XRKSthwqHlWs7SOm/WxB0ywtJQQrJCqg3iNn9uOzG + oKEF1uXF2GpWDQo6s0g7sFW/fwqaQAXuBuFYYRB05TaGjR7VQDlmSRE0zbV7AKfVSwR5AAAA + headers: + apipie-checksum: [83fd72067f1c96eb1196b17193cc48d0] + cache-control: ['max-age=0, private, must-revalidate'] + connection: [Keep-Alive] + content-encoding: [gzip] + content-length: ['111'] + content-security-policy: ['default-src ''self''; child-src ''self''; connect-src + ''self'' ws: wss:; img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' + ''unsafe-inline'' ''self''; style-src ''unsafe-inline'' ''self'''] + content-type: [application/json; charset=utf-8] + date: ['Wed, 25 Jul 2018 15:13:40 GMT'] + etag: [W/"2515bdcde58d61e5000459519256b95b-gzip"] + foreman_api_version: ['2'] + foreman_version: [1.17.1] + keep-alive: ['timeout=5, max=10000'] + server: [Apache/2.4.6 (CentOS)] + set-cookie: [_session_id=5730e493da91dc44b6b7eec5c728b61f; path=/; secure; HttpOnly] + status: [200 OK] + strict-transport-security: [max-age=631139040; includeSubdomains] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-download-options: [noopen] + x-frame-options: [sameorigin] + x-permitted-cross-domain-policies: [none] + x-powered-by: [Phusion Passenger 4.0.53] + x-request-id: [e45f7254-7450-414d-abf5-299bbd617075] + x-runtime: ['0.067304'] + x-xss-protection: [1; mode=block] + status: {code: 200, message: OK} +- request: + body: !!python/unicode '{"search": "name=\"birds\""}' + headers: + Accept: ['*/*'] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Length: ['28'] + User-Agent: [python-requests/2.18.4] + content-type: [application/json] + method: GET + uri: https://centos7-katello-3-6.sean.example.com/katello/api/v2/package_groups + response: + body: + string: !!binary | + H4sIAAAAAAAAA1WPy2rDMBBF9/2KctcyxI84taD/UEp3TSl6TBqBa5mRtAhG/14ZOy3dDDNzz53H + guijGiEbgZD0XtQCs/qiLSH+3IrmIEDMniGnNI7FQIrNFRKT+qbnM7RjG85AUTxHyAX6tqul59lS + sUIFgyzAFNIYA+T7AmchT2ID5TamGFJa+2i73lxUr6sLNbrq2uFQDcf+qYTOnhR1R13bQlsKht0c + nZ/u9zHNPrjo+bbesg6r298tbxTi4+sfUT5lb5OJd3b4j77sas75Iz/8AEwIm0U4AQAA + headers: + apipie-checksum: [83fd72067f1c96eb1196b17193cc48d0] + cache-control: ['max-age=0, private, must-revalidate'] + connection: [Keep-Alive] + content-encoding: [gzip] + content-length: ['222'] + content-security-policy: ['default-src ''self''; child-src ''self''; connect-src + ''self'' ws: wss:; img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' + ''unsafe-inline'' ''self''; style-src ''unsafe-inline'' ''self'''] + content-type: [application/json; charset=utf-8] + date: ['Wed, 25 Jul 2018 15:13:40 GMT'] + etag: [W/"37db290ea381d29fc381244fcfe2498b-gzip"] + foreman_api_version: ['2'] + foreman_version: [1.17.1] + keep-alive: ['timeout=5, max=10000'] + server: [Apache/2.4.6 (CentOS)] + set-cookie: [_session_id=0e5e173f03ee2830bfe7f952e3fda66d; path=/; secure; HttpOnly] + status: [200 OK] + strict-transport-security: [max-age=631139040; includeSubdomains] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-download-options: [noopen] + x-frame-options: [sameorigin] + x-permitted-cross-domain-policies: [none] + x-powered-by: [Phusion Passenger 4.0.53] + x-request-id: [bdf31528-90c6-46a0-8c76-bfbde0f904e0] + x-runtime: ['0.128110'] + x-xss-protection: [1; mode=block] + status: {code: 200, message: OK} +- request: + body: !!python/unicode '{"uuid": "346cfa6b-fe2b-4390-9568-954d7ae45b1d", "content_view_filter_id": + 24, "name": "birds"}' + headers: + Accept: ['*/*'] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Length: ['95'] + User-Agent: [python-requests/2.18.4] + content-type: [application/json] + method: POST + uri: https://centos7-katello-3-6.sean.example.com/katello/api/v2/content_view_filters/24/rules + response: + body: + string: !!binary | + H4sIAAAAAAAAA4WLSwrCMBRF564ivHEC+bfN1C3oOOTzAgGtJaY6EPduugInl8PhXEI+kB5rx7X7 + V8W3L/XWsfmawUlNYd8PAqVtKsFGVlBGptXC2WLsPEbnKaA2UWSgcLSCwhruOE6xtvwcNjUMHbMP + fUjJxcz4xKQhwjihnObkejmPbN/y/+x7+gHuwCNSsgAAAA== + headers: + apipie-checksum: [83fd72067f1c96eb1196b17193cc48d0] + cache-control: ['max-age=0, private, must-revalidate'] + connection: [Keep-Alive] + content-encoding: [gzip] + content-length: ['148'] + content-security-policy: ['default-src ''self''; child-src ''self''; connect-src + ''self'' ws: wss:; img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' + ''unsafe-inline'' ''self''; style-src ''unsafe-inline'' ''self'''] + content-type: [application/json; charset=utf-8] + date: ['Wed, 25 Jul 2018 15:13:40 GMT'] + etag: [W/"5e664df0824c624b6df580c173c8a41a-gzip"] + foreman_api_version: ['2'] + foreman_version: [1.17.1] + keep-alive: ['timeout=5, max=10000'] + server: [Apache/2.4.6 (CentOS)] + set-cookie: [request_method=POST; path=/, _session_id=92d834c97ca92fa6063caaef7df25f72; + path=/; secure; HttpOnly] + status: [200 OK] + strict-transport-security: [max-age=631139040; includeSubdomains] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-download-options: [noopen] + x-frame-options: [sameorigin] + x-permitted-cross-domain-policies: [none] + x-powered-by: [Phusion Passenger 4.0.53] + x-request-id: [8ea3e7e0-57cf-49c2-b261-a425e1d1c2df] + x-runtime: ['0.080871'] + x-xss-protection: [1; mode=block] + status: {code: 200, message: OK} +version: 1 diff --git a/test/test_playbooks/fixtures/content_view_filter-39.yml b/test/test_playbooks/fixtures/content_view_filter-39.yml new file mode 100644 index 0000000000..8003933524 --- /dev/null +++ b/test/test_playbooks/fixtures/content_view_filter-39.yml @@ -0,0 +1,446 @@ +interactions: +- request: + body: !!python/unicode '{}' + headers: + Accept: ['*/*'] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Length: ['2'] + User-Agent: [python-requests/2.18.4] + content-type: [application/json] + method: GET + uri: https://centos7-katello-3-6.sean.example.com/katello/api/v2/ping + response: + body: + string: !!binary | + H4sIAAAAAAAAA43NOwqAMBAE0N5TyNY2AT/gZcKiEYPmQ3ZjI7m7xi5VrJYZ3rBtewMxciSYwR3Q + Aalw6UW9+QYfT59vKdYYkLWz0uSqnyB1n5QYea9xMWa+oF1P5bWt8qHg/16IvNlcUAatZKSDqpMe + UkrNAxb0dJQOAQAA + headers: + apipie-checksum: [83fd72067f1c96eb1196b17193cc48d0] + cache-control: ['max-age=0, private, must-revalidate'] + connection: [Keep-Alive] + content-encoding: [gzip] + content-length: ['126'] + content-security-policy: ['default-src ''self''; child-src ''self''; connect-src + ''self'' ws: wss:; img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' + ''unsafe-inline'' ''self''; style-src ''unsafe-inline'' ''self'''] + content-type: [application/json; charset=utf-8] + date: ['Wed, 25 Jul 2018 15:13:41 GMT'] + etag: [W/"2cff7e7780c01c55147c887af7bc00c5-gzip"] + foreman_api_version: ['2'] + foreman_version: [1.17.1] + keep-alive: ['timeout=5, max=10000'] + server: [Apache/2.4.6 (CentOS)] + set-cookie: [_session_id=7be4b352c658f058aba94eb38af12a20; path=/; secure; HttpOnly] + status: [200 OK] + strict-transport-security: [max-age=631139040; includeSubdomains] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-download-options: [noopen] + x-frame-options: [sameorigin] + x-permitted-cross-domain-policies: [none] + x-powered-by: [Phusion Passenger 4.0.53] + x-request-id: [03566be8-af21-4cc7-beb7-36a34ff8330c] + x-runtime: ['0.159761'] + x-xss-protection: [1; mode=block] + status: {code: 200, message: OK} +- request: + body: !!python/unicode '{"search": "name=\"Test Organization\""}' + headers: + Accept: ['*/*'] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Length: ['40'] + User-Agent: [python-requests/2.18.4] + content-type: [application/json] + method: GET + uri: https://centos7-katello-3-6.sean.example.com/katello/api/v2/organizations + response: + body: + string: !!binary | + H4sIAAAAAAAAA42PwWrDMAyG73kKo3MKcdjYathpD7BLd2pHUGLRGdwkyMqhC3n3qU7GxmCwm77P + v/mluTAGZBCM4Exd3ihN7ZewWYx4pm8gbjZRV2uekLt3ZejxQk8nOFAS88Jn7MMHShj6E8CaHFg0 + N+us1F517qcYy5UH9sSbUrPkL0xpipJUH2eI2JKulQuanwVQQseEQr5BbYC6so+76mFX3Rt752rr + 7N68Hp41No3+P7Hgwe3LfNDWZ371SZD415un1HEYM7nbOctbsRSfKnwYS2sBAAA= + headers: + apipie-checksum: [83fd72067f1c96eb1196b17193cc48d0] + cache-control: ['max-age=0, private, must-revalidate'] + connection: [Keep-Alive] + content-encoding: [gzip] + content-length: ['218'] + content-security-policy: ['default-src ''self''; child-src ''self''; connect-src + ''self'' ws: wss:; img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' + ''unsafe-inline'' ''self''; style-src ''unsafe-inline'' ''self'''] + content-type: [application/json; charset=utf-8] + date: ['Wed, 25 Jul 2018 15:13:42 GMT'] + etag: [W/"33eb541f7daf03e7d506a757939a7889-gzip"] + foreman_api_version: ['2'] + foreman_version: [1.17.1] + keep-alive: ['timeout=5, max=10000'] + server: [Apache/2.4.6 (CentOS)] + set-cookie: [_session_id=e2d9a0bc2063ddbf5853f38371fd28e8; path=/; secure; HttpOnly] + status: [200 OK] + strict-transport-security: [max-age=631139040; includeSubdomains] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-download-options: [noopen] + x-frame-options: [sameorigin] + x-permitted-cross-domain-policies: [none] + x-powered-by: [Phusion Passenger 4.0.53] + x-request-id: [dbe463ed-49ea-4aea-97a4-70c91017af4f] + x-runtime: ['0.064298'] + x-xss-protection: [1; mode=block] + status: {code: 200, message: OK} +- request: + body: !!python/unicode '{"organization_id": 9, "name": "Test Content View"}' + headers: + Accept: ['*/*'] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Length: ['51'] + User-Agent: [python-requests/2.18.4] + content-type: [application/json] + method: GET + uri: https://centos7-katello-3-6.sean.example.com/katello/api/v2/content_views + response: + body: + string: !!binary | + H4sIAAAAAAAAA41SwW7bMAy97ysCnt0hTht087UfMGBoeykKQbGYVpgtCpTkzQ3876Vj1XWCFNhN + 5Hvkox55gEhRN1CVBYS0+wy8fsHpgaymYLMuAJmJoXKpaaQANdevc0QcoTrArocKnG4RCiA2KHTQ + oYahAMaQmhigejpATa2nYKM03usmYDFlHLqorBk5zwUY3GupmCl74hqVT95jVOg6y+RaqZgJHXKw + 5FRNaczKxI2OGKLKwMewjEdx4j6LldciZ418+baYpq/gXgpXd+SiKKweLf6Fsd0Om4ypjKmMGQw1 + Wx8XOsQv2tk3PebU2P7naW40bKn2a4mdqZ1hx25ias0oXzRKy39hsy5/XK1vrzbbVbmtyk11s109 + 3N8JPXnzP7SFqXkHs1UWp80dXbo+den37Of51CdInQ2LvR9L+9TCIBJ5oS2Z1GCWzQvL0Xwbczw1 + 6sR5dQ7qOtpusvwP9jnp8N/iCqD8vj5OKhP6tGtseEXzsTQ5+daGrH6ArPEpKNnISa4NjY2XETmF + yNRfBrPgFyBTSxEVsWJsqcNLtGF4Hr69A9j2DxC8AwAA + headers: + apipie-checksum: [83fd72067f1c96eb1196b17193cc48d0] + cache-control: ['max-age=0, private, must-revalidate'] + connection: [Keep-Alive] + content-encoding: [gzip] + content-length: ['432'] + content-security-policy: ['default-src ''self''; child-src ''self''; connect-src + ''self'' ws: wss:; img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' + ''unsafe-inline'' ''self''; style-src ''unsafe-inline'' ''self'''] + content-type: [application/json; charset=utf-8] + date: ['Wed, 25 Jul 2018 15:13:42 GMT'] + etag: [W/"e5377be671b535aa8045efc383418dc4-gzip"] + foreman_api_version: ['2'] + foreman_version: [1.17.1] + keep-alive: ['timeout=5, max=10000'] + server: [Apache/2.4.6 (CentOS)] + set-cookie: [_session_id=5ec78b4643be5778ccbbefb42995ea71; path=/; secure; HttpOnly] + status: [200 OK] + strict-transport-security: [max-age=631139040; includeSubdomains] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-download-options: [noopen] + x-frame-options: [sameorigin] + x-permitted-cross-domain-policies: [none] + x-powered-by: [Phusion Passenger 4.0.53] + x-request-id: [c89d06ab-f687-4078-aee0-bbae88a31a64] + x-runtime: ['0.112335'] + x-xss-protection: [1; mode=block] + status: {code: 200, message: OK} +- request: + body: !!python/unicode '{"content_view_id": 17, "name": "Test Package Group Content + View Filter"}' + headers: + Accept: ['*/*'] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Length: ['73'] + User-Agent: [python-requests/2.18.4] + content-type: [application/json] + method: GET + uri: https://centos7-katello-3-6.sean.example.com/katello/api/v2/content_view_filters + response: + body: + string: !!binary | + H4sIAAAAAAAAA41U0a6bMAx931cgP9MJCm1veb3S9rhputvLVEUBTG90gSAn6cYq/n1JSSntuq2q + VBEfO8c+tnMELTWvIYtDUCa/HDq+x/EDiY2HZRQCEkmCrDV1bQOQU/E6nSRpyI6Q95BByxuEECSV + aN2BqwKGEAiVqbWC7PsRRFvURgnZQlbxWmEIorQcaTjGZvCCSgefefFmyYOPJE0XPMtWY6uDbwJ/ + BB9Ere3lIZSoChKdPt015lIQco0l4zYjWEbx0yLaLJarIF5lcZIl2+Dry7ONNF35iFsx0rKDpXUV + FrLppBIap9RPltb5iNKVt3NZVdwWO7lUkgpknek61AzbgyDZNjZicjggOTlYIY2zWrFrm5yytCNw + ro3wRC6p92RxshvFizfX4s3lAnddjrXHmMeYx+5oKGnPW/GLOxtz12+vbU6JOdunOXbDdoOdbhv+ + 3aZllq4eaNPMbSaq78EklUA/dE6l5FqlL5Oet1lfIech0H3nQnvTwGApfEMbWZoaPa1vmD9NszGd + L9PEbkFeaHEYJX/D3htb/DmbAojfR6dMbYadyWuhXrE8N81uayOUZz+C57gQWqsmY6cNS6HvI3YU + NMn+PugJ/wKSbKRGJokRNvKA99yG4Y++2BK9qt247mzv1t0WSV7U47Vq1Wn12fnBMMZ9QZKui4qv + 80WFy3yRJttosV2tn+xfWm44pqs8Lv3wxdMI5ILsEv3vxUijh14M7zbs7O/db7zRz01bBQAA + headers: + apipie-checksum: [83fd72067f1c96eb1196b17193cc48d0] + cache-control: ['max-age=0, private, must-revalidate'] + connection: [Keep-Alive] + content-encoding: [gzip] + content-length: ['567'] + content-security-policy: ['default-src ''self''; child-src ''self''; connect-src + ''self'' ws: wss:; img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' + ''unsafe-inline'' ''self''; style-src ''unsafe-inline'' ''self'''] + content-type: [application/json; charset=utf-8] + date: ['Wed, 25 Jul 2018 15:13:42 GMT'] + etag: [W/"9d53a7e6f2ae0985fd8ab340eb827f9b-gzip"] + foreman_api_version: ['2'] + foreman_version: [1.17.1] + keep-alive: ['timeout=5, max=10000'] + server: [Apache/2.4.6 (CentOS)] + set-cookie: [_session_id=7c13c5531e1edf42a2df6c424bf3f185; path=/; secure; HttpOnly] + status: [200 OK] + strict-transport-security: [max-age=631139040; includeSubdomains] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-download-options: [noopen] + x-frame-options: [sameorigin] + x-permitted-cross-domain-policies: [none] + x-powered-by: [Phusion Passenger 4.0.53] + x-request-id: [f5fc8a2f-53e2-4732-b77b-49f0d767bf9e] + x-runtime: ['0.104560'] + x-xss-protection: [1; mode=block] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: ['*/*'] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + User-Agent: [python-requests/2.18.4] + content-type: [application/json] + method: GET + uri: https://centos7-katello-3-6.sean.example.com/katello/api/v2/content_view_filters/24 + response: + body: + string: !!binary | + H4sIAAAAAAAAA41UTY/aMBC991dEPkOVL9gl15XaY6tq20uFLMeZsBaJbTk2LUX57x0HExJKWy4I + z5vxm7x54yg6ESF54zqhJClq1nSwIKIiRZoviGQtkIK8Qmejz4zv2Q6ij0Y5Hb0oaUHa6JuAH9EH + 0VgwZEEq6LgR2g53Sdc0C8INMAsVZRYvSuPkeRk/LdNVlKyKJCuyTfT19QUrna4eSeNnWnpAWlKc + 8Nxq1QkLY+tDRPocUXWk+L71XdXMNXZMqZXhQLXTGiwFeRBGyRYrxoQDGC8H5cr5aLwgDTbXIe0Z + uHybgYFcmWMgS7LtWbzkaS7eVC7iryuhCRgNGA3YHQ2V2TEpfjEfo/76zTzmlZiyfZpiN2w32HBb + /+8xpUW+emBMk7SJqGEGo1QCfOR0Vimbq/Rl1PO26xlyMYE9al96dC0GtVGV49ZLERSamTeg/bV6 + GG7n81VnDQAtDZP8bRh3pfgeDG1RqRrLpzHLdsPR6JYUWYrE572YHejOLwnuEEphDLPYYYHrFCzX + Yi8NFsR9v70JBrWCz8JptPR4vi4BvQUZt+JwdsoejiEo4efEvCR5Hw8Co7DalY3o3qC6eE2DaUUX + 2E8kcFwJMWqNwyWBStj7CDrYGnW8DwbCv4BGtcoCVYYaaNUB7qX1/R92wk8MZpgPABODqKe5avXw + YtHLO+ec/0eyfM1rti6XNaTlMs828XKzWj/jT149MchXZVKFnUlGf5XC4O7/76HL44ceupDWb/t3 + vwH74wrnmgUAAA== + headers: + apipie-checksum: [83fd72067f1c96eb1196b17193cc48d0] + cache-control: ['max-age=0, private, must-revalidate'] + connection: [Keep-Alive] + content-encoding: [gzip] + content-length: ['580'] + content-security-policy: ['default-src ''self''; child-src ''self''; connect-src + ''self'' ws: wss:; img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' + ''unsafe-inline'' ''self''; style-src ''unsafe-inline'' ''self'''] + content-type: [application/json; charset=utf-8] + date: ['Wed, 25 Jul 2018 15:13:42 GMT'] + etag: [W/"54cb5e765e5733679a60ce4702ebdff7-gzip"] + foreman_api_version: ['2'] + foreman_version: [1.17.1] + keep-alive: ['timeout=5, max=10000'] + server: [Apache/2.4.6 (CentOS)] + set-cookie: [_session_id=1889f794c12985ff474de64f161c8d23; path=/; secure; HttpOnly] + status: [200 OK] + strict-transport-security: [max-age=631139040; includeSubdomains] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-download-options: [noopen] + x-frame-options: [sameorigin] + x-permitted-cross-domain-policies: [none] + x-powered-by: [Phusion Passenger 4.0.53] + x-request-id: [5e698612-7b30-438a-b7bc-cb6814bd46ea] + x-runtime: ['0.130799'] + x-xss-protection: [1; mode=block] + status: {code: 200, message: OK} +- request: + body: !!python/unicode '{"content_view_id": 17, "name": "Test Package Group Content + View Filter"}' + headers: + Accept: ['*/*'] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Length: ['73'] + User-Agent: [python-requests/2.18.4] + content-type: [application/json] + method: GET + uri: https://centos7-katello-3-6.sean.example.com/katello/api/v2/content_view_filters + response: + body: + string: !!binary | + H4sIAAAAAAAAA41U0a6bMAx931cgP9MJCm1veb3S9rhputvLVEUBTG90gSAn6cYq/n1JSSntuq2q + VBEfO8c+tnMELTWvIYtDUCa/HDq+x/EDiY2HZRQCEkmCrDV1bQOQU/E6nSRpyI6Q95BByxuEECSV + aN2BqwKGEAiVqbWC7PsRRFvURgnZQlbxWmEIorQcaTjGZvCCSgefefFmyYOPJE0XPMtWY6uDbwJ/ + BB9Ere3lIZSoChKdPt015lIQco0l4zYjWEbx0yLaLJarIF5lcZIl2+Dry7ONNF35iFsx0rKDpXUV + FrLppBIap9RPltb5iNKVt3NZVdwWO7lUkgpknek61AzbgyDZNjZicjggOTlYIY2zWrFrm5yytCNw + ro3wRC6p92RxshvFizfX4s3lAnddjrXHmMeYx+5oKGnPW/GLOxtz12+vbU6JOdunOXbDdoOdbhv+ + 3aZllq4eaNPMbSaq78EklUA/dE6l5FqlL5Oet1lfIech0H3nQnvTwGApfEMbWZoaPa1vmD9NszGd + L9PEbkFeaHEYJX/D3htb/DmbAojfR6dMbYadyWuhXrE8N81uayOUZz+C57gQWqsmY6cNS6HvI3YU + NMn+PugJ/wKSbKRGJokRNvKA99yG4Y++2BK9qt247mzv1t0WSV7U47Vq1Wn12fnBMMZ9QZKui4qv + 80WFy3yRJttosV2tn+xfWm44pqs8Lv3wxdMI5ILsEv3vxUijh14M7zbs7O/db7zRz01bBQAA + headers: + apipie-checksum: [83fd72067f1c96eb1196b17193cc48d0] + cache-control: ['max-age=0, private, must-revalidate'] + connection: [Keep-Alive] + content-encoding: [gzip] + content-length: ['567'] + content-security-policy: ['default-src ''self''; child-src ''self''; connect-src + ''self'' ws: wss:; img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' + ''unsafe-inline'' ''self''; style-src ''unsafe-inline'' ''self'''] + content-type: [application/json; charset=utf-8] + date: ['Wed, 25 Jul 2018 15:13:42 GMT'] + etag: [W/"9d53a7e6f2ae0985fd8ab340eb827f9b-gzip"] + foreman_api_version: ['2'] + foreman_version: [1.17.1] + keep-alive: ['timeout=5, max=10000'] + server: [Apache/2.4.6 (CentOS)] + set-cookie: [_session_id=55afad74baeadf3a4e67993cc78f2c02; path=/; secure; HttpOnly] + status: [200 OK] + strict-transport-security: [max-age=631139040; includeSubdomains] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-download-options: [noopen] + x-frame-options: [sameorigin] + x-permitted-cross-domain-policies: [none] + x-powered-by: [Phusion Passenger 4.0.53] + x-request-id: [2bfec42b-7d28-4022-8207-e2baa6540c3a] + x-runtime: ['0.114937'] + x-xss-protection: [1; mode=block] + status: {code: 200, message: OK} +- request: + body: !!python/unicode '{"content_view_filter_id": 24, "name": "birds"}' + headers: + Accept: ['*/*'] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Length: ['47'] + User-Agent: [python-requests/2.18.4] + content-type: [application/json] + method: GET + uri: https://centos7-katello-3-6.sean.example.com/katello/api/v2/content_view_filters/24/rules + response: + body: + string: !!binary | + H4sIAAAAAAAAA4WOzWrEMAyE732KRWcbHMfJ7vraV2hPpQT/KG3AjRfZbikh716FhfbYi5gR3zCz + Qc3VJbCdgNL8n7m5N7wLpOlutBKARJnAri0lDqCj8P7rMlWwG/hvsLBEEJApIsPgSoBdAGFpqRaw + LxuEvFZc6/S54Nc0L6lyC2esNgJaOxT0ZgyzG72cUXtp+quS12G88DHx7NAMvjtKDpZnru6DJ4Jf + KBb+BkJXMU6OJ4FW3UWqs9TDqRts11ujTs9Pj4y1W/wf21/3hx9VsJMXKAEAAA== + headers: + apipie-checksum: [83fd72067f1c96eb1196b17193cc48d0] + cache-control: ['max-age=0, private, must-revalidate'] + connection: [Keep-Alive] + content-encoding: [gzip] + content-length: ['217'] + content-security-policy: ['default-src ''self''; child-src ''self''; connect-src + ''self'' ws: wss:; img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' + ''unsafe-inline'' ''self''; style-src ''unsafe-inline'' ''self'''] + content-type: [application/json; charset=utf-8] + date: ['Wed, 25 Jul 2018 15:13:42 GMT'] + etag: [W/"60fc8a41aaa8778e1e3d4c69acdbd7a9-gzip"] + foreman_api_version: ['2'] + foreman_version: [1.17.1] + keep-alive: ['timeout=5, max=10000'] + server: [Apache/2.4.6 (CentOS)] + set-cookie: [_session_id=316f0148f1f818324470bd345e9ab22f; path=/; secure; HttpOnly] + status: [200 OK] + strict-transport-security: [max-age=631139040; includeSubdomains] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-download-options: [noopen] + x-frame-options: [sameorigin] + x-permitted-cross-domain-policies: [none] + x-powered-by: [Phusion Passenger 4.0.53] + x-request-id: [ff5d2154-d9a8-4e28-90eb-7e7a19a5d955] + x-runtime: ['0.070182'] + x-xss-protection: [1; mode=block] + status: {code: 200, message: OK} +- request: + body: !!python/unicode '{"search": "name=\"birds\""}' + headers: + Accept: ['*/*'] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Length: ['28'] + User-Agent: [python-requests/2.18.4] + content-type: [application/json] + method: GET + uri: https://centos7-katello-3-6.sean.example.com/katello/api/v2/package_groups + response: + body: + string: !!binary | + H4sIAAAAAAAAA1WPy2rDMBBF9/2KctcyxI84taD/UEp3TSl6TBqBa5mRtAhG/14ZOy3dDDNzz53H + guijGiEbgZD0XtQCs/qiLSH+3IrmIEDMniGnNI7FQIrNFRKT+qbnM7RjG85AUTxHyAX6tqul59lS + sUIFgyzAFNIYA+T7AmchT2ID5TamGFJa+2i73lxUr6sLNbrq2uFQDcf+qYTOnhR1R13bQlsKht0c + nZ/u9zHNPrjo+bbesg6r298tbxTi4+sfUT5lb5OJd3b4j77sas75Iz/8AEwIm0U4AQAA + headers: + apipie-checksum: [83fd72067f1c96eb1196b17193cc48d0] + cache-control: ['max-age=0, private, must-revalidate'] + connection: [Keep-Alive] + content-encoding: [gzip] + content-length: ['222'] + content-security-policy: ['default-src ''self''; child-src ''self''; connect-src + ''self'' ws: wss:; img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' + ''unsafe-inline'' ''self''; style-src ''unsafe-inline'' ''self'''] + content-type: [application/json; charset=utf-8] + date: ['Wed, 25 Jul 2018 15:13:42 GMT'] + etag: [W/"37db290ea381d29fc381244fcfe2498b-gzip"] + foreman_api_version: ['2'] + foreman_version: [1.17.1] + keep-alive: ['timeout=5, max=10000'] + server: [Apache/2.4.6 (CentOS)] + set-cookie: [_session_id=a8376334ab97ed5ae0984115ab56b459; path=/; secure; HttpOnly] + status: [200 OK] + strict-transport-security: [max-age=631139040; includeSubdomains] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-download-options: [noopen] + x-frame-options: [sameorigin] + x-permitted-cross-domain-policies: [none] + x-powered-by: [Phusion Passenger 4.0.53] + x-request-id: [22b2b9dc-0f90-4467-825e-0f82010fbd53] + x-runtime: ['0.082716'] + x-xss-protection: [1; mode=block] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: ['*/*'] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + User-Agent: [python-requests/2.18.4] + content-type: [application/json] + method: GET + uri: https://centos7-katello-3-6.sean.example.com/katello/api/v2/content_view_filters/24/rules/1 + response: + body: + string: !!binary | + H4sIAAAAAAAAA4WLSwrCMBRF564ivHEC+bfN1C3oOOTzAgGtJaY6EPduugInl8PhXEI+kB5rx7X7 + V8W3L/XWsfmawUlNYd8PAqVtKsFGVlBGptXC2WLsPEbnKaA2UWSgcLSCwhruOE6xtvwcNjUMHbMP + fUjJxcz4xKQhwjihnObkejmPbN/y/+x7+gHuwCNSsgAAAA== + headers: + apipie-checksum: [83fd72067f1c96eb1196b17193cc48d0] + cache-control: ['max-age=0, private, must-revalidate'] + connection: [Keep-Alive] + content-encoding: [gzip] + content-length: ['148'] + content-security-policy: ['default-src ''self''; child-src ''self''; connect-src + ''self'' ws: wss:; img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' + ''unsafe-inline'' ''self''; style-src ''unsafe-inline'' ''self'''] + content-type: [application/json; charset=utf-8] + date: ['Wed, 25 Jul 2018 15:13:42 GMT'] + etag: [W/"5e664df0824c624b6df580c173c8a41a-gzip"] + foreman_api_version: ['2'] + foreman_version: [1.17.1] + keep-alive: ['timeout=5, max=10000'] + server: [Apache/2.4.6 (CentOS)] + set-cookie: [_session_id=147459387be6615bf308fa2a86eccb98; path=/; secure; HttpOnly] + status: [200 OK] + strict-transport-security: [max-age=631139040; includeSubdomains] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-download-options: [noopen] + x-frame-options: [sameorigin] + x-permitted-cross-domain-policies: [none] + x-powered-by: [Phusion Passenger 4.0.53] + x-request-id: [fd263832-a018-4564-86e0-123f94c350ba] + x-runtime: ['0.085872'] + x-xss-protection: [1; mode=block] + status: {code: 200, message: OK} +version: 1 diff --git a/test/test_playbooks/fixtures/content_view_filter-41.yml b/test/test_playbooks/fixtures/content_view_filter-41.yml new file mode 100644 index 0000000000..bf66b6e225 --- /dev/null +++ b/test/test_playbooks/fixtures/content_view_filter-41.yml @@ -0,0 +1,300 @@ +interactions: +- request: + body: !!python/unicode '{}' + headers: + Accept: ['*/*'] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Length: ['2'] + User-Agent: [python-requests/2.18.4] + content-type: [application/json] + method: GET + uri: https://centos7-katello-3-6.sean.example.com/katello/api/v2/ping + response: + body: + string: !!binary | + H4sIAAAAAAAAA43NPQqAMAwF4N1TSGYXfxD1MiVoxaK2pUldSu+udXOqU3iP75GyDECM7AkmMDtU + QNJdapZPDmD9YdP9isU7ZGW0OFPV9RCrVwr0vOV4PSY+o14OaZXO8vrD/71o0mY1Tp6oBSPtlJv0 + 7QAxxuIGw3Qx+A8BAAA= + headers: + apipie-checksum: [83fd72067f1c96eb1196b17193cc48d0] + cache-control: ['max-age=0, private, must-revalidate'] + connection: [Keep-Alive] + content-encoding: [gzip] + content-length: ['128'] + content-security-policy: ['default-src ''self''; child-src ''self''; connect-src + ''self'' ws: wss:; img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' + ''unsafe-inline'' ''self''; style-src ''unsafe-inline'' ''self'''] + content-type: [application/json; charset=utf-8] + date: ['Wed, 25 Jul 2018 15:13:44 GMT'] + etag: [W/"e2ee4b20b601a66b44c422b1ca8ed889-gzip"] + foreman_api_version: ['2'] + foreman_version: [1.17.1] + keep-alive: ['timeout=5, max=10000'] + server: [Apache/2.4.6 (CentOS)] + set-cookie: [_session_id=9292a328e3fcf67e858989ddfa0dc23e; path=/; secure; HttpOnly] + status: [200 OK] + strict-transport-security: [max-age=631139040; includeSubdomains] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-download-options: [noopen] + x-frame-options: [sameorigin] + x-permitted-cross-domain-policies: [none] + x-powered-by: [Phusion Passenger 4.0.53] + x-request-id: [04a3536f-fdcb-47d9-b3d7-bcc42a7b00b1] + x-runtime: ['0.782712'] + x-xss-protection: [1; mode=block] + status: {code: 200, message: OK} +- request: + body: !!python/unicode '{"search": "name=\"Test Organization\""}' + headers: + Accept: ['*/*'] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Length: ['40'] + User-Agent: [python-requests/2.18.4] + content-type: [application/json] + method: GET + uri: https://centos7-katello-3-6.sean.example.com/katello/api/v2/organizations + response: + body: + string: !!binary | + H4sIAAAAAAAAA42PwWrDMAyG73kKo3MKcdjYathpD7BLd2pHUGLRGdwkyMqhC3n3qU7GxmCwm77P + v/mluTAGZBCM4Exd3ihN7ZewWYx4pm8gbjZRV2uekLt3ZejxQk8nOFAS88Jn7MMHShj6E8CaHFg0 + N+us1F517qcYy5UH9sSbUrPkL0xpipJUH2eI2JKulQuanwVQQseEQr5BbYC6so+76mFX3Rt752rr + 7N68Hp41No3+P7Hgwe3LfNDWZ371SZD415un1HEYM7nbOctbsRSfKnwYS2sBAAA= + headers: + apipie-checksum: [83fd72067f1c96eb1196b17193cc48d0] + cache-control: ['max-age=0, private, must-revalidate'] + connection: [Keep-Alive] + content-encoding: [gzip] + content-length: ['218'] + content-security-policy: ['default-src ''self''; child-src ''self''; connect-src + ''self'' ws: wss:; img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' + ''unsafe-inline'' ''self''; style-src ''unsafe-inline'' ''self'''] + content-type: [application/json; charset=utf-8] + date: ['Wed, 25 Jul 2018 15:13:45 GMT'] + etag: [W/"33eb541f7daf03e7d506a757939a7889-gzip"] + foreman_api_version: ['2'] + foreman_version: [1.17.1] + keep-alive: ['timeout=5, max=10000'] + server: [Apache/2.4.6 (CentOS)] + set-cookie: [_session_id=790c5cb1f2e39c70be5768ad89f76164; path=/; secure; HttpOnly] + status: [200 OK] + strict-transport-security: [max-age=631139040; includeSubdomains] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-download-options: [noopen] + x-frame-options: [sameorigin] + x-permitted-cross-domain-policies: [none] + x-powered-by: [Phusion Passenger 4.0.53] + x-request-id: [8d425874-e52c-4395-87ce-bab3fbdbe789] + x-runtime: ['0.073165'] + x-xss-protection: [1; mode=block] + status: {code: 200, message: OK} +- request: + body: !!python/unicode '{"organization_id": 9, "name": "Test Content View"}' + headers: + Accept: ['*/*'] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Length: ['51'] + User-Agent: [python-requests/2.18.4] + content-type: [application/json] + method: GET + uri: https://centos7-katello-3-6.sean.example.com/katello/api/v2/content_views + response: + body: + string: !!binary | + H4sIAAAAAAAAA41SwW7bMAy97ysCnt0hTht087UfMGBoeykKQbGYVpgtCpTkzQ3876Vj1XWCFNhN + 5Hvkox55gEhRN1CVBYS0+wy8fsHpgaymYLMuAJmJoXKpaaQANdevc0QcoTrArocKnG4RCiA2KHTQ + oYahAMaQmhigejpATa2nYKM03usmYDFlHLqorBk5zwUY3GupmCl74hqVT95jVOg6y+RaqZgJHXKw + 5FRNaczKxI2OGKLKwMewjEdx4j6LldciZ418+baYpq/gXgpXd+SiKKweLf6Fsd0Om4ypjKmMGQw1 + Wx8XOsQv2tk3PebU2P7naW40bKn2a4mdqZ1hx25ias0oXzRKy39hsy5/XK1vrzbbVbmtyk11s109 + 3N8JPXnzP7SFqXkHs1UWp80dXbo+den37Of51CdInQ2LvR9L+9TCIBJ5oS2Z1GCWzQvL0Xwbczw1 + 6sR5dQ7qOtpusvwP9jnp8N/iCqD8vj5OKhP6tGtseEXzsTQ5+daGrH6ArPEpKNnISa4NjY2XETmF + yNRfBrPgFyBTSxEVsWJsqcNLtGF4Hr69A9j2DxC8AwAA + headers: + apipie-checksum: [83fd72067f1c96eb1196b17193cc48d0] + cache-control: ['max-age=0, private, must-revalidate'] + connection: [Keep-Alive] + content-encoding: [gzip] + content-length: ['432'] + content-security-policy: ['default-src ''self''; child-src ''self''; connect-src + ''self'' ws: wss:; img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' + ''unsafe-inline'' ''self''; style-src ''unsafe-inline'' ''self'''] + content-type: [application/json; charset=utf-8] + date: ['Wed, 25 Jul 2018 15:13:45 GMT'] + etag: [W/"e5377be671b535aa8045efc383418dc4-gzip"] + foreman_api_version: ['2'] + foreman_version: [1.17.1] + keep-alive: ['timeout=5, max=10000'] + server: [Apache/2.4.6 (CentOS)] + set-cookie: [_session_id=54df7e55f4064c92e385a2d68a3a9695; path=/; secure; HttpOnly] + status: [200 OK] + strict-transport-security: [max-age=631139040; includeSubdomains] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-download-options: [noopen] + x-frame-options: [sameorigin] + x-permitted-cross-domain-policies: [none] + x-powered-by: [Phusion Passenger 4.0.53] + x-request-id: [d43ef9ae-7a76-4757-b4ec-f51763143bb1] + x-runtime: ['0.095528'] + x-xss-protection: [1; mode=block] + status: {code: 200, message: OK} +- request: + body: !!python/unicode '{"content_view_id": 17, "name": "Test Package Group Content + View Filter"}' + headers: + Accept: ['*/*'] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Length: ['73'] + User-Agent: [python-requests/2.18.4] + content-type: [application/json] + method: GET + uri: https://centos7-katello-3-6.sean.example.com/katello/api/v2/content_view_filters + response: + body: + string: !!binary | + H4sIAAAAAAAAA41U0a6bMAx931cgP9MJCm1veb3S9rhputvLVEUBTG90gSAn6cYq/n1JSSntuq2q + VBEfO8c+tnMELTWvIYtDUCa/HDq+x/EDiY2HZRQCEkmCrDV1bQOQU/E6nSRpyI6Q95BByxuEECSV + aN2BqwKGEAiVqbWC7PsRRFvURgnZQlbxWmEIorQcaTjGZvCCSgefefFmyYOPJE0XPMtWY6uDbwJ/ + BB9Ere3lIZSoChKdPt015lIQco0l4zYjWEbx0yLaLJarIF5lcZIl2+Dry7ONNF35iFsx0rKDpXUV + FrLppBIap9RPltb5iNKVt3NZVdwWO7lUkgpknek61AzbgyDZNjZicjggOTlYIY2zWrFrm5yytCNw + ro3wRC6p92RxshvFizfX4s3lAnddjrXHmMeYx+5oKGnPW/GLOxtz12+vbU6JOdunOXbDdoOdbhv+ + 3aZllq4eaNPMbSaq78EklUA/dE6l5FqlL5Oet1lfIech0H3nQnvTwGApfEMbWZoaPa1vmD9NszGd + L9PEbkFeaHEYJX/D3htb/DmbAojfR6dMbYadyWuhXrE8N81uayOUZz+C57gQWqsmY6cNS6HvI3YU + NMn+PugJ/wKSbKRGJokRNvKA99yG4Y++2BK9qt247mzv1t0WSV7U47Vq1Wn12fnBMMZ9QZKui4qv + 80WFy3yRJttosV2tn+xfWm44pqs8Lv3wxdMI5ILsEv3vxUijh14M7zbs7O/db7zRz01bBQAA + headers: + apipie-checksum: [83fd72067f1c96eb1196b17193cc48d0] + cache-control: ['max-age=0, private, must-revalidate'] + connection: [Keep-Alive] + content-encoding: [gzip] + content-length: ['567'] + content-security-policy: ['default-src ''self''; child-src ''self''; connect-src + ''self'' ws: wss:; img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' + ''unsafe-inline'' ''self''; style-src ''unsafe-inline'' ''self'''] + content-type: [application/json; charset=utf-8] + date: ['Wed, 25 Jul 2018 15:13:45 GMT'] + etag: [W/"9d53a7e6f2ae0985fd8ab340eb827f9b-gzip"] + foreman_api_version: ['2'] + foreman_version: [1.17.1] + keep-alive: ['timeout=5, max=10000'] + server: [Apache/2.4.6 (CentOS)] + set-cookie: [_session_id=8eee5984373ae0de7aacab0d02d02021; path=/; secure; HttpOnly] + status: [200 OK] + strict-transport-security: [max-age=631139040; includeSubdomains] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-download-options: [noopen] + x-frame-options: [sameorigin] + x-permitted-cross-domain-policies: [none] + x-powered-by: [Phusion Passenger 4.0.53] + x-request-id: [ae2cb1f8-e945-4854-be56-41cf77e5a604] + x-runtime: ['0.132624'] + x-xss-protection: [1; mode=block] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: ['*/*'] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Length: ['0'] + User-Agent: [python-requests/2.18.4] + content-type: [application/json] + method: DELETE + uri: https://centos7-katello-3-6.sean.example.com/katello/api/v2/content_view_filters/24 + response: + body: + string: !!binary | + H4sIAAAAAAAAA41TwW7bMAy97ysMndMhtht09bXAeuwwdLsMgaDITCrElgRKypYF/vdRtuLYWTb0 + SD5Sj3p8zLITU1o2wSmjWbUVjYMFUzWrivsF06IFVrFXcD77IuRe7CB7RhNs9mS0B+2z7wp+Zp9V + 4wHZgtXgJCrr+7d0aJoFkwjCQ82Fp4eKZf7pbvlwV6yyfFXlZVU+Zt9en6gz2Po9ZXKg5QeiZdWJ + 4tYapzyMo/cZHWtU7Vj1Yx2n2orQ+LFka1ACt8Fa8Bz0QaHRLXWMBQfAKAeXJsTscsEaGs4R7QCc + /4bQkxs8JrK8XA/i5Q9z8aZysfjcBpqE8YTxhN3Q0OBOaPVbxByPzz/Oc1GJKdvLFLtiu8L617r/ + r6mo7lfvWNOkbCJq2sEolYKYOQ0qlXOVvo56Xk89Q84m8EcbW4+hpaRFUwfpoxRJoZl5E9pduvvl + ulhvnEcAvkGh5Vu/7trIPSBvSakttU9zXuz6EG3LqrIg4uEuZgHfxSOhGyIpEIWnCSs6p2S5lmZp + qGHZdeurZFIr+SxFo6XH+HIE/BoU0qvD4JQ9HFNSw6+JeVn+cdkLTMLasGmUe4P67DUL2CqX2E8s + cVwIKesx0JFArfxthBzs0Rxvg4nwHyCa1njgBjlCaw5wq6zr/rITfTGZYb4AKjyL2n34A6xJ5fDr + BAAA + headers: + apipie-checksum: [83fd72067f1c96eb1196b17193cc48d0] + cache-control: ['max-age=0, private, must-revalidate'] + connection: [Keep-Alive] + content-encoding: [gzip] + content-length: ['516'] + content-security-policy: ['default-src ''self''; child-src ''self''; connect-src + ''self'' ws: wss:; img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' + ''unsafe-inline'' ''self''; style-src ''unsafe-inline'' ''self'''] + content-type: [application/json; charset=utf-8] + date: ['Wed, 25 Jul 2018 15:13:45 GMT'] + etag: [W/"2e2f535eef7aed9a7d60bbe72e194c90-gzip"] + foreman_api_version: ['2'] + foreman_version: [1.17.1] + keep-alive: ['timeout=5, max=10000'] + server: [Apache/2.4.6 (CentOS)] + set-cookie: [request_method=DELETE; path=/, _session_id=efbac080e6a7aec5ac23fe0e96bf7193; + path=/; secure; HttpOnly] + status: [200 OK] + strict-transport-security: [max-age=631139040; includeSubdomains] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-download-options: [noopen] + x-frame-options: [sameorigin] + x-permitted-cross-domain-policies: [none] + x-powered-by: [Phusion Passenger 4.0.53] + x-request-id: [db16d002-f7f9-4b31-95ab-dd47eb07f511] + x-runtime: ['0.130275'] + x-xss-protection: [1; mode=block] + status: {code: 200, message: OK} +- request: + body: !!python/unicode '{"content_view_id": 17, "name": "Test Package Group Content + View Filter"}' + headers: + Accept: ['*/*'] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Length: ['73'] + User-Agent: [python-requests/2.18.4] + content-type: [application/json] + method: GET + uri: https://centos7-katello-3-6.sean.example.com/katello/api/v2/content_view_filters + response: + body: + string: !!binary | + H4sIAAAAAAAAA0XLsQqAMBAD0N3PyNxBHe9XRORaDx1qK9d2kOK/WxB0ywtJRY6ZPag3SMX+OHkT + 0NCC6PJibLWoRgWF4n07CKvbP0XNoAp7gRD4EBhEXaXNwcnhNlBJxecEmua7ewAzgtzWewAAAA== + headers: + apipie-checksum: [83fd72067f1c96eb1196b17193cc48d0] + cache-control: ['max-age=0, private, must-revalidate'] + connection: [Keep-Alive] + content-encoding: [gzip] + content-length: ['112'] + content-security-policy: ['default-src ''self''; child-src ''self''; connect-src + ''self'' ws: wss:; img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' + ''unsafe-inline'' ''self''; style-src ''unsafe-inline'' ''self'''] + content-type: [application/json; charset=utf-8] + date: ['Wed, 25 Jul 2018 15:13:45 GMT'] + etag: [W/"956e0fd5b832fbda8d01b01a5b7de844-gzip"] + foreman_api_version: ['2'] + foreman_version: [1.17.1] + keep-alive: ['timeout=5, max=10000'] + server: [Apache/2.4.6 (CentOS)] + set-cookie: [_session_id=f9832c1e5615e5cb8166a96cac5748e9; path=/; secure; HttpOnly] + status: [200 OK] + strict-transport-security: [max-age=631139040; includeSubdomains] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-download-options: [noopen] + x-frame-options: [sameorigin] + x-permitted-cross-domain-policies: [none] + x-powered-by: [Phusion Passenger 4.0.53] + x-request-id: [aa57c5bf-bf9b-48ff-9679-ae1bc5bdbf1a] + x-runtime: ['0.061057'] + x-xss-protection: [1; mode=block] + status: {code: 200, message: OK} +version: 1 diff --git a/test/test_playbooks/fixtures/content_view_filter-43.yml b/test/test_playbooks/fixtures/content_view_filter-43.yml new file mode 100644 index 0000000000..c6acb3d5b6 --- /dev/null +++ b/test/test_playbooks/fixtures/content_view_filter-43.yml @@ -0,0 +1,391 @@ +interactions: +- request: + body: !!python/unicode '{}' + headers: + Accept: ['*/*'] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Length: ['2'] + User-Agent: [python-requests/2.18.4] + content-type: [application/json] + method: GET + uri: https://centos7-katello-3-6.sean.example.com/katello/api/v2/ping + response: + body: + string: !!binary | + H4sIAAAAAAAAA43NPQqAMAwF4N1TSGYHfxG8TAlasahtaVKX0rtr3ZzqFN7je6QsAxAje4IJzA4V + kHSXmuWTA1h/2HS/YvEOWRktzlQNNcTqlQI9bznejInPqJdDWqWzvPvwfy/atFmNkydqwUg7ZSc9 + xBiLG6XyVHMOAQAA + headers: + apipie-checksum: [83fd72067f1c96eb1196b17193cc48d0] + cache-control: ['max-age=0, private, must-revalidate'] + connection: [Keep-Alive] + content-encoding: [gzip] + content-length: ['126'] + content-security-policy: ['default-src ''self''; child-src ''self''; connect-src + ''self'' ws: wss:; img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' + ''unsafe-inline'' ''self''; style-src ''unsafe-inline'' ''self'''] + content-type: [application/json; charset=utf-8] + date: ['Wed, 25 Jul 2018 15:13:47 GMT'] + etag: [W/"1c1854bc18caf1d543f3904e936d705b-gzip"] + foreman_api_version: ['2'] + foreman_version: [1.17.1] + keep-alive: ['timeout=5, max=10000'] + server: [Apache/2.4.6 (CentOS)] + set-cookie: [_session_id=0e5c083155ef44abfa22a147166ef8b1; path=/; secure; HttpOnly] + status: [200 OK] + strict-transport-security: [max-age=631139040; includeSubdomains] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-download-options: [noopen] + x-frame-options: [sameorigin] + x-permitted-cross-domain-policies: [none] + x-powered-by: [Phusion Passenger 4.0.53] + x-request-id: [ff9d655a-f2a7-45c2-89b6-e375d7c0582d] + x-runtime: ['0.159696'] + x-xss-protection: [1; mode=block] + status: {code: 200, message: OK} +- request: + body: !!python/unicode '{"search": "name=\"Test Organization\""}' + headers: + Accept: ['*/*'] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Length: ['40'] + User-Agent: [python-requests/2.18.4] + content-type: [application/json] + method: GET + uri: https://centos7-katello-3-6.sean.example.com/katello/api/v2/organizations + response: + body: + string: !!binary | + H4sIAAAAAAAAA42PwWrDMAyG73kKo3MKcdjYathpD7BLd2pHUGLRGdwkyMqhC3n3qU7GxmCwm77P + v/mluTAGZBCM4Exd3ihN7ZewWYx4pm8gbjZRV2uekLt3ZejxQk8nOFAS88Jn7MMHShj6E8CaHFg0 + N+us1F517qcYy5UH9sSbUrPkL0xpipJUH2eI2JKulQuanwVQQseEQr5BbYC6so+76mFX3Rt752rr + 7N68Hp41No3+P7Hgwe3LfNDWZ371SZD415un1HEYM7nbOctbsRSfKnwYS2sBAAA= + headers: + apipie-checksum: [83fd72067f1c96eb1196b17193cc48d0] + cache-control: ['max-age=0, private, must-revalidate'] + connection: [Keep-Alive] + content-encoding: [gzip] + content-length: ['218'] + content-security-policy: ['default-src ''self''; child-src ''self''; connect-src + ''self'' ws: wss:; img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' + ''unsafe-inline'' ''self''; style-src ''unsafe-inline'' ''self'''] + content-type: [application/json; charset=utf-8] + date: ['Wed, 25 Jul 2018 15:13:47 GMT'] + etag: [W/"33eb541f7daf03e7d506a757939a7889-gzip"] + foreman_api_version: ['2'] + foreman_version: [1.17.1] + keep-alive: ['timeout=5, max=10000'] + server: [Apache/2.4.6 (CentOS)] + set-cookie: [_session_id=472a6b80ae77ca0af9e93391f9df331f; path=/; secure; HttpOnly] + status: [200 OK] + strict-transport-security: [max-age=631139040; includeSubdomains] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-download-options: [noopen] + x-frame-options: [sameorigin] + x-permitted-cross-domain-policies: [none] + x-powered-by: [Phusion Passenger 4.0.53] + x-request-id: [888275b5-d493-463b-ba71-8e03ea4b2bfb] + x-runtime: ['0.059943'] + x-xss-protection: [1; mode=block] + status: {code: 200, message: OK} +- request: + body: !!python/unicode '{"organization_id": 9, "name": "Test Content View"}' + headers: + Accept: ['*/*'] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Length: ['51'] + User-Agent: [python-requests/2.18.4] + content-type: [application/json] + method: GET + uri: https://centos7-katello-3-6.sean.example.com/katello/api/v2/content_views + response: + body: + string: !!binary | + H4sIAAAAAAAAA41SwW7bMAy97ysCnt0hTht087UfMGBoeykKQbGYVpgtCpTkzQ3876Vj1XWCFNhN + 5Hvkox55gEhRN1CVBYS0+wy8fsHpgaymYLMuAJmJoXKpaaQANdevc0QcoTrArocKnG4RCiA2KHTQ + oYahAMaQmhigejpATa2nYKM03usmYDFlHLqorBk5zwUY3GupmCl74hqVT95jVOg6y+RaqZgJHXKw + 5FRNaczKxI2OGKLKwMewjEdx4j6LldciZ418+baYpq/gXgpXd+SiKKweLf6Fsd0Om4ypjKmMGQw1 + Wx8XOsQv2tk3PebU2P7naW40bKn2a4mdqZ1hx25ias0oXzRKy39hsy5/XK1vrzbbVbmtyk11s109 + 3N8JPXnzP7SFqXkHs1UWp80dXbo+den37Of51CdInQ2LvR9L+9TCIBJ5oS2Z1GCWzQvL0Xwbczw1 + 6sR5dQ7qOtpusvwP9jnp8N/iCqD8vj5OKhP6tGtseEXzsTQ5+daGrH6ArPEpKNnISa4NjY2XETmF + yNRfBrPgFyBTSxEVsWJsqcNLtGF4Hr69A9j2DxC8AwAA + headers: + apipie-checksum: [83fd72067f1c96eb1196b17193cc48d0] + cache-control: ['max-age=0, private, must-revalidate'] + connection: [Keep-Alive] + content-encoding: [gzip] + content-length: ['432'] + content-security-policy: ['default-src ''self''; child-src ''self''; connect-src + ''self'' ws: wss:; img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' + ''unsafe-inline'' ''self''; style-src ''unsafe-inline'' ''self'''] + content-type: [application/json; charset=utf-8] + date: ['Wed, 25 Jul 2018 15:13:47 GMT'] + etag: [W/"e5377be671b535aa8045efc383418dc4-gzip"] + foreman_api_version: ['2'] + foreman_version: [1.17.1] + keep-alive: ['timeout=5, max=10000'] + server: [Apache/2.4.6 (CentOS)] + set-cookie: [_session_id=68e54147c381ebbc16e12747159eaf0c; path=/; secure; HttpOnly] + status: [200 OK] + strict-transport-security: [max-age=631139040; includeSubdomains] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-download-options: [noopen] + x-frame-options: [sameorigin] + x-permitted-cross-domain-policies: [none] + x-powered-by: [Phusion Passenger 4.0.53] + x-request-id: [76897900-1186-446b-ac78-cbdad475c6fd] + x-runtime: ['0.097804'] + x-xss-protection: [1; mode=block] + status: {code: 200, message: OK} +- request: + body: !!python/unicode '{"content_view_id": 17, "name": "Test Docker Content View + Filter"}' + headers: + Accept: ['*/*'] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Length: ['66'] + User-Agent: [python-requests/2.18.4] + content-type: [application/json] + method: GET + uri: https://centos7-katello-3-6.sean.example.com/katello/api/v2/content_view_filters + response: + body: + string: !!binary | + H4sIAAAAAAAAA0XLsQqAMBAD0N3PyNxBHe9XRORaDx1qK9d2kOK/WxB0ywtJRY6ZPag3SMX+OHkT + 0NCC6PJibLWoRgWF4n07CKvbP0XNoAp7gRD4EBhEXaXNwcnhNlBJxecEmua7ewAzgtzWewAAAA== + headers: + apipie-checksum: [83fd72067f1c96eb1196b17193cc48d0] + cache-control: ['max-age=0, private, must-revalidate'] + connection: [Keep-Alive] + content-encoding: [gzip] + content-length: ['112'] + content-security-policy: ['default-src ''self''; child-src ''self''; connect-src + ''self'' ws: wss:; img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' + ''unsafe-inline'' ''self''; style-src ''unsafe-inline'' ''self'''] + content-type: [application/json; charset=utf-8] + date: ['Wed, 25 Jul 2018 15:13:47 GMT'] + etag: [W/"956e0fd5b832fbda8d01b01a5b7de844-gzip"] + foreman_api_version: ['2'] + foreman_version: [1.17.1] + keep-alive: ['timeout=5, max=10000'] + server: [Apache/2.4.6 (CentOS)] + set-cookie: [_session_id=48c07cb7a8323dc5d34cd83beb616f8e; path=/; secure; HttpOnly] + status: [200 OK] + strict-transport-security: [max-age=631139040; includeSubdomains] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-download-options: [noopen] + x-frame-options: [sameorigin] + x-permitted-cross-domain-policies: [none] + x-powered-by: [Phusion Passenger 4.0.53] + x-request-id: [e61bb2fa-c35e-49e2-8033-f72d5ee7ae49] + x-runtime: ['0.071088'] + x-xss-protection: [1; mode=block] + status: {code: 200, message: OK} +- request: + body: !!python/unicode '{"content_view_id": 17, "inclusion": false, "repository_ids": + [], "type": "docker", "name": "Test Docker Content View Filter"}' + headers: + Accept: ['*/*'] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Length: ['126'] + User-Agent: [python-requests/2.18.4] + content-type: [application/json] + method: POST + uri: https://centos7-katello-3-6.sean.example.com/katello/api/v2/content_view_filters + response: + body: + string: !!binary | + H4sIAAAAAAAAA41TwW7bMAy97ysMnd0hdhJk87XDri2GbpchEBSZSYXYkkBJ2bLA/z7KVhwnzYYe + yUfyUY9PWXZiSssmOGU0q7aicZAzVbOqXOZMixZYxV7A+eyLkXvA7NFoD9pnPxT8yr6qxgOynNXg + JCrr+yE6NE3OJILwUHPhaUI5Kz49zFYP5TIrllUxrxar7PvLI3UGW7+nTA60/EC0rDpR3FrjlIdx + 5z6jY42qHat+ruNWWxEaP5ZsDUrgNlgLnoM+KDS6pY6x4AAYdeDShJid5ayh5RzRDsD5bQg9ucFj + Iivm60G1YnWt2lQuFsdtoEkYTxhP2B0NDe6EVn9EzPE4/vN1LioxZXuaYjdsN1g/rfv/mcpqsXzH + mSZlE1HTDUapFMTMaVBpfq3St1HP262vkLMJ/NHG1mNoKWnR1EH6KEVSaDr5OaHdpbs/rov1xnkE + 4BsUWr725657k/OWlNpS+zTnxa4P0basmpdELORe7OAq4Ds0wdLnISkQhacNqwWhg+Va2qWhhlnX + rW+SSa3ksxSNlh7jyyfgt6CQXh0Gp+zhmJIafk/My4qPs15gEtaGTaPcK9Rnr1nAVrnEfmKJ40JI + WY+BPgnUyt9HyMEezfE+mAj/AaJpjQdukCO05gD3yrrujZ3oickMw5XodXhWs/vwF3e/h1ndBAAA + headers: + apipie-checksum: [83fd72067f1c96eb1196b17193cc48d0] + cache-control: ['max-age=0, private, must-revalidate'] + connection: [Keep-Alive] + content-encoding: [gzip] + content-length: ['513'] + content-security-policy: ['default-src ''self''; child-src ''self''; connect-src + ''self'' ws: wss:; img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' + ''unsafe-inline'' ''self''; style-src ''unsafe-inline'' ''self'''] + content-type: [application/json; charset=utf-8] + date: ['Wed, 25 Jul 2018 15:13:47 GMT'] + etag: [W/"2d4a035b6293a42326764eb94ed89b80-gzip"] + foreman_api_version: ['2'] + foreman_version: [1.17.1] + keep-alive: ['timeout=5, max=10000'] + server: [Apache/2.4.6 (CentOS)] + set-cookie: [request_method=POST; path=/, _session_id=19ab291a04c5cc5aa3992440969d8743; + path=/; secure; HttpOnly] + status: [200 OK] + strict-transport-security: [max-age=631139040; includeSubdomains] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-download-options: [noopen] + x-frame-options: [sameorigin] + x-permitted-cross-domain-policies: [none] + x-powered-by: [Phusion Passenger 4.0.53] + x-request-id: [03ec414c-d36a-428c-a9cd-b2141625bf18] + x-runtime: ['0.157053'] + x-xss-protection: [1; mode=block] + status: {code: 200, message: OK} +- request: + body: !!python/unicode '{"content_view_id": 17, "name": "Test Docker Content View + Filter"}' + headers: + Accept: ['*/*'] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Length: ['66'] + User-Agent: [python-requests/2.18.4] + content-type: [application/json] + method: GET + uri: https://centos7-katello-3-6.sean.example.com/katello/api/v2/content_view_filters + response: + body: + string: !!binary | + H4sIAAAAAAAAA41TwW7bMAy97ysMnt0hThpk07VDrwWGbpchEBSZaYXKkkFJ2bzA/z7JVhwny4be + RD6Sj3ykjuCtFxpYVYILu7PRihccH0h8NJaLEpDIEjATtI4JKEi+TpYlD+wIuw4YGNEglGCpxhgO + wknoSyB0QXsH7McRlJE6OGUNsL3QDktQdeRYl2Mug2d0vvhi5RtS8WCNR+OL7wp/Fo9K+1i1hBqd + JNX6ocjYhCQUHmsuYiuwXFSf7habu+W6qNasWrH7TfHt+SFmhrZ+T5gcafkh0qbRpG1a65THqefB + Y1KMqtNc29TVXsQpp5C9JYm8DW2LnqM5KLKmiRlTwAEp6cClDckbVdaxORdpR+A0G+FAbqnLZNVq + O6pWbS5Vm8sFqdwOdcZ4xnjGbmho6UUY9VskH0/lP1/6khJztqc5dsV2hQ3V+v+vacnu1+9Y0yxs + JmrewSSVwnxtSaXVpUpfJz2vu75ATkfguzaldqGBPlLkhTa2DhozbV5YtqbbmOzzNfFrUEivDqPk + b9hlp8FfsyuA6uNi6DR22IadVu4V69PS4jdtlMvsR8gcZ8Lo9RTitWGt/G0knoIn290GM+E/QLKN + 9cgtccLGHvBWWN//tZc4Yla1Hv55nI5Oavbb/sMfgtJYnJ4EAAA= + headers: + apipie-checksum: [83fd72067f1c96eb1196b17193cc48d0] + cache-control: ['max-age=0, private, must-revalidate'] + connection: [Keep-Alive] + content-encoding: [gzip] + content-length: ['494'] + content-security-policy: ['default-src ''self''; child-src ''self''; connect-src + ''self'' ws: wss:; img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' + ''unsafe-inline'' ''self''; style-src ''unsafe-inline'' ''self'''] + content-type: [application/json; charset=utf-8] + date: ['Wed, 25 Jul 2018 15:13:47 GMT'] + etag: [W/"29c09f857ca2b14598772a4b99359ced-gzip"] + foreman_api_version: ['2'] + foreman_version: [1.17.1] + keep-alive: ['timeout=5, max=10000'] + server: [Apache/2.4.6 (CentOS)] + set-cookie: [_session_id=bf37f1bac51fe67b655c02606956f2c5; path=/; secure; HttpOnly] + status: [200 OK] + strict-transport-security: [max-age=631139040; includeSubdomains] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-download-options: [noopen] + x-frame-options: [sameorigin] + x-permitted-cross-domain-policies: [none] + x-powered-by: [Phusion Passenger 4.0.53] + x-request-id: [c37e5ae9-2549-4e9c-b315-3abf6ff828ac] + x-runtime: ['0.090306'] + x-xss-protection: [1; mode=block] + status: {code: 200, message: OK} +- request: + body: !!python/unicode '{"content_view_filter_id": 25, "name": "birds"}' + headers: + Accept: ['*/*'] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Length: ['47'] + User-Agent: [python-requests/2.18.4] + content-type: [application/json] + method: GET + uri: https://centos7-katello-3-6.sean.example.com/katello/api/v2/content_view_filters/25/rules + response: + body: + string: !!binary | + H4sIAAAAAAAAA0XLsQqAMBAD0N3PyNxBHe9XRKSthwqHlWs7SOm/WxB0ywtJQQrJCqg3iNn9uOzG + oKEF1uXF2GpWDQo6s0g7sFW/fwqaQAXuBuFYYRB05TaGjR7VQDlmSRE0zbV7AKfVSwR5AAAA + headers: + apipie-checksum: [83fd72067f1c96eb1196b17193cc48d0] + cache-control: ['max-age=0, private, must-revalidate'] + connection: [Keep-Alive] + content-encoding: [gzip] + content-length: ['111'] + content-security-policy: ['default-src ''self''; child-src ''self''; connect-src + ''self'' ws: wss:; img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' + ''unsafe-inline'' ''self''; style-src ''unsafe-inline'' ''self'''] + content-type: [application/json; charset=utf-8] + date: ['Wed, 25 Jul 2018 15:13:47 GMT'] + etag: [W/"2515bdcde58d61e5000459519256b95b-gzip"] + foreman_api_version: ['2'] + foreman_version: [1.17.1] + keep-alive: ['timeout=5, max=10000'] + server: [Apache/2.4.6 (CentOS)] + set-cookie: [_session_id=f079e3fd73d36535809b695be9a2c64a; path=/; secure; HttpOnly] + status: [200 OK] + strict-transport-security: [max-age=631139040; includeSubdomains] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-download-options: [noopen] + x-frame-options: [sameorigin] + x-permitted-cross-domain-policies: [none] + x-powered-by: [Phusion Passenger 4.0.53] + x-request-id: [42a918c2-1147-4c50-91e0-b3ea049abc7d] + x-runtime: ['0.076803'] + x-xss-protection: [1; mode=block] + status: {code: 200, message: OK} +- request: + body: !!python/unicode '{"name": "birds", "content_view_filter_id": 25}' + headers: + Accept: ['*/*'] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Length: ['47'] + User-Agent: [python-requests/2.18.4] + content-type: [application/json] + method: POST + uri: https://centos7-katello-3-6.sean.example.com/katello/api/v2/content_view_filters/25/rules + response: + body: + string: !!binary | + H4sIAAAAAAAAA1NQqFZKzs8rSc0riS/LTC2PT8vMKUktis9MUbIyMtVRAtHGOkp5ibmpSlZKSZlF + KcVKOkrJRamJJakp8YklQEEjA0MLXQNzXSNTBUNTK0NjKxNzhdAQZ6Cy0oIUwspquQAvVRVjhAAA + AA== + headers: + apipie-checksum: [83fd72067f1c96eb1196b17193cc48d0] + cache-control: ['max-age=0, private, must-revalidate'] + connection: [Keep-Alive] + content-encoding: [gzip] + content-length: ['115'] + content-security-policy: ['default-src ''self''; child-src ''self''; connect-src + ''self'' ws: wss:; img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' + ''unsafe-inline'' ''self''; style-src ''unsafe-inline'' ''self'''] + content-type: [application/json; charset=utf-8] + date: ['Wed, 25 Jul 2018 15:13:47 GMT'] + etag: [W/"58996647fb0b994a610f6008ca3d8d92-gzip"] + foreman_api_version: ['2'] + foreman_version: [1.17.1] + keep-alive: ['timeout=5, max=10000'] + server: [Apache/2.4.6 (CentOS)] + set-cookie: [request_method=POST; path=/, _session_id=a441b40f1988e474ad668e7536798f0f; + path=/; secure; HttpOnly] + status: [200 OK] + strict-transport-security: [max-age=631139040; includeSubdomains] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-download-options: [noopen] + x-frame-options: [sameorigin] + x-permitted-cross-domain-policies: [none] + x-powered-by: [Phusion Passenger 4.0.53] + x-request-id: [98b7c506-9108-4f5e-bf87-11262c853e89] + x-runtime: ['0.084345'] + x-xss-protection: [1; mode=block] + status: {code: 200, message: OK} +version: 1 diff --git a/test/test_playbooks/fixtures/content_view_filter-45.yml b/test/test_playbooks/fixtures/content_view_filter-45.yml new file mode 100644 index 0000000000..b419708861 --- /dev/null +++ b/test/test_playbooks/fixtures/content_view_filter-45.yml @@ -0,0 +1,398 @@ +interactions: +- request: + body: !!python/unicode '{}' + headers: + Accept: ['*/*'] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Length: ['2'] + User-Agent: [python-requests/2.18.4] + content-type: [application/json] + method: GET + uri: https://centos7-katello-3-6.sean.example.com/katello/api/v2/ping + response: + body: + string: !!binary | + H4sIAAAAAAAAA43NPQqAMAwF4N1TSGYXURS8TAlasdg/mtRFendtN6c6hff4HmnbG4iRI8EC7oQO + SIZLrfLNN/iofb5fscWArJwVJlfjDKkrUmDko8b7wle0m5Ze2SofPvzfiz5vdhekQSsY6aTqZIKU + UvMAnrZ7Ng4BAAA= + headers: + apipie-checksum: [83fd72067f1c96eb1196b17193cc48d0] + cache-control: ['max-age=0, private, must-revalidate'] + connection: [Keep-Alive] + content-encoding: [gzip] + content-length: ['125'] + content-security-policy: ['default-src ''self''; child-src ''self''; connect-src + ''self'' ws: wss:; img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' + ''unsafe-inline'' ''self''; style-src ''unsafe-inline'' ''self'''] + content-type: [application/json; charset=utf-8] + date: ['Wed, 25 Jul 2018 15:13:49 GMT'] + etag: [W/"f9f2b7b4127d60861cf4e5a022bc850c-gzip"] + foreman_api_version: ['2'] + foreman_version: [1.17.1] + keep-alive: ['timeout=5, max=10000'] + server: [Apache/2.4.6 (CentOS)] + set-cookie: [_session_id=4cce1a781c1e0d5fd25c4a1e6994c656; path=/; secure; HttpOnly] + status: [200 OK] + strict-transport-security: [max-age=631139040; includeSubdomains] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-download-options: [noopen] + x-frame-options: [sameorigin] + x-permitted-cross-domain-policies: [none] + x-powered-by: [Phusion Passenger 4.0.53] + x-request-id: [f21712fb-7dc0-4b15-b8ff-0ed7f04653c7] + x-runtime: ['0.161774'] + x-xss-protection: [1; mode=block] + status: {code: 200, message: OK} +- request: + body: !!python/unicode '{"search": "name=\"Test Organization\""}' + headers: + Accept: ['*/*'] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Length: ['40'] + User-Agent: [python-requests/2.18.4] + content-type: [application/json] + method: GET + uri: https://centos7-katello-3-6.sean.example.com/katello/api/v2/organizations + response: + body: + string: !!binary | + H4sIAAAAAAAAA42PwWrDMAyG73kKo3MKcdjYathpD7BLd2pHUGLRGdwkyMqhC3n3qU7GxmCwm77P + v/mluTAGZBCM4Exd3ihN7ZewWYx4pm8gbjZRV2uekLt3ZejxQk8nOFAS88Jn7MMHShj6E8CaHFg0 + N+us1F517qcYy5UH9sSbUrPkL0xpipJUH2eI2JKulQuanwVQQseEQr5BbYC6so+76mFX3Rt752rr + 7N68Hp41No3+P7Hgwe3LfNDWZ371SZD415un1HEYM7nbOctbsRSfKnwYS2sBAAA= + headers: + apipie-checksum: [83fd72067f1c96eb1196b17193cc48d0] + cache-control: ['max-age=0, private, must-revalidate'] + connection: [Keep-Alive] + content-encoding: [gzip] + content-length: ['218'] + content-security-policy: ['default-src ''self''; child-src ''self''; connect-src + ''self'' ws: wss:; img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' + ''unsafe-inline'' ''self''; style-src ''unsafe-inline'' ''self'''] + content-type: [application/json; charset=utf-8] + date: ['Wed, 25 Jul 2018 15:13:49 GMT'] + etag: [W/"33eb541f7daf03e7d506a757939a7889-gzip"] + foreman_api_version: ['2'] + foreman_version: [1.17.1] + keep-alive: ['timeout=5, max=10000'] + server: [Apache/2.4.6 (CentOS)] + set-cookie: [_session_id=95a7c674d1c8574c3f3a2d2993f9bf59; path=/; secure; HttpOnly] + status: [200 OK] + strict-transport-security: [max-age=631139040; includeSubdomains] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-download-options: [noopen] + x-frame-options: [sameorigin] + x-permitted-cross-domain-policies: [none] + x-powered-by: [Phusion Passenger 4.0.53] + x-request-id: [bef799e2-29f7-4ea7-8dbc-224e3405a16a] + x-runtime: ['0.069893'] + x-xss-protection: [1; mode=block] + status: {code: 200, message: OK} +- request: + body: !!python/unicode '{"organization_id": 9, "name": "Test Content View"}' + headers: + Accept: ['*/*'] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Length: ['51'] + User-Agent: [python-requests/2.18.4] + content-type: [application/json] + method: GET + uri: https://centos7-katello-3-6.sean.example.com/katello/api/v2/content_views + response: + body: + string: !!binary | + H4sIAAAAAAAAA41SwW7bMAy97ysCnt0hTht087UfMGBoeykKQbGYVpgtCpTkzQ3876Vj1XWCFNhN + 5Hvkox55gEhRN1CVBYS0+wy8fsHpgaymYLMuAJmJoXKpaaQANdevc0QcoTrArocKnG4RCiA2KHTQ + oYahAMaQmhigejpATa2nYKM03usmYDFlHLqorBk5zwUY3GupmCl74hqVT95jVOg6y+RaqZgJHXKw + 5FRNaczKxI2OGKLKwMewjEdx4j6LldciZ418+baYpq/gXgpXd+SiKKweLf6Fsd0Om4ypjKmMGQw1 + Wx8XOsQv2tk3PebU2P7naW40bKn2a4mdqZ1hx25ias0oXzRKy39hsy5/XK1vrzbbVbmtyk11s109 + 3N8JPXnzP7SFqXkHs1UWp80dXbo+den37Of51CdInQ2LvR9L+9TCIBJ5oS2Z1GCWzQvL0Xwbczw1 + 6sR5dQ7qOtpusvwP9jnp8N/iCqD8vj5OKhP6tGtseEXzsTQ5+daGrH6ArPEpKNnISa4NjY2XETmF + yNRfBrPgFyBTSxEVsWJsqcNLtGF4Hr69A9j2DxC8AwAA + headers: + apipie-checksum: [83fd72067f1c96eb1196b17193cc48d0] + cache-control: ['max-age=0, private, must-revalidate'] + connection: [Keep-Alive] + content-encoding: [gzip] + content-length: ['432'] + content-security-policy: ['default-src ''self''; child-src ''self''; connect-src + ''self'' ws: wss:; img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' + ''unsafe-inline'' ''self''; style-src ''unsafe-inline'' ''self'''] + content-type: [application/json; charset=utf-8] + date: ['Wed, 25 Jul 2018 15:13:49 GMT'] + etag: [W/"e5377be671b535aa8045efc383418dc4-gzip"] + foreman_api_version: ['2'] + foreman_version: [1.17.1] + keep-alive: ['timeout=5, max=10000'] + server: [Apache/2.4.6 (CentOS)] + set-cookie: [_session_id=c4e97db742e2bf0375a39203773e4a6e; path=/; secure; HttpOnly] + status: [200 OK] + strict-transport-security: [max-age=631139040; includeSubdomains] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-download-options: [noopen] + x-frame-options: [sameorigin] + x-permitted-cross-domain-policies: [none] + x-powered-by: [Phusion Passenger 4.0.53] + x-request-id: [5ad252bc-765d-4649-8d12-5f3739992537] + x-runtime: ['0.100755'] + x-xss-protection: [1; mode=block] + status: {code: 200, message: OK} +- request: + body: !!python/unicode '{"content_view_id": 17, "name": "Test Docker Content View + Filter"}' + headers: + Accept: ['*/*'] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Length: ['66'] + User-Agent: [python-requests/2.18.4] + content-type: [application/json] + method: GET + uri: https://centos7-katello-3-6.sean.example.com/katello/api/v2/content_view_filters + response: + body: + string: !!binary | + H4sIAAAAAAAAA61UwW7bMAy97ysMnt0hThpk87XDrgOGbpchEBSZaYXakkFJ2bzA/z7KVhwnzYYe + hhwS8lF85COZI3jrZQ1lkYMLu7PRyiccfyCJ0VguckAiS1CaUNf8ACWp58my5KE8wq6DEoxsEHKw + VCGHg3QK+hwIXai9g/LHEbRRdXDaGij3snaYg66YY52Pb0t4ROezT1a9IGUP1ng0Pvuu8Wf2Wdee + s+ZQoVOkWz8kGYtQhNJjJSSXAstF8eFusblbrrNiXRar8n6TfXt84Jehrd4SpkZacWDa2JqyTWud + 9jjVPHhMjNFV7Gsbq9pL7nIK2VtSKNrQtugFmoMmaxp+MQUckKIOQtkQvaxyzcU5ph2BU2+EA7ml + LpEVq+2oWrG5VG0uF8R0O6wTJhImEnZDQ0tP0ujfMvpETP/x0heVmLN9mWNXbFfYkK3/95iW5f36 + DWOahc1ETTOYpNKYti2qtLpU6euk53XVF8hpCXzXxqddaKBnijTQxlahxkSbBpasaTcm+7xN4hqU + yuvDKPkLdslp8NdsC6B4vxgq5QrbsKu1e8bqNDQ+00a7xH6ExHEmZK+nwNuGlfa3EV4FT7a7DSbC + v4BkG+tRWBKEjT3grbC+fzUXbjGpWg13zt1RUvN4Kdd+uHlx+ouI3+dp7jTxPfzf4++3/Hn3B/0n + ZWQfBQAA + headers: + apipie-checksum: [83fd72067f1c96eb1196b17193cc48d0] + cache-control: ['max-age=0, private, must-revalidate'] + connection: [Keep-Alive] + content-encoding: [gzip] + content-length: ['519'] + content-security-policy: ['default-src ''self''; child-src ''self''; connect-src + ''self'' ws: wss:; img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' + ''unsafe-inline'' ''self''; style-src ''unsafe-inline'' ''self'''] + content-type: [application/json; charset=utf-8] + date: ['Wed, 25 Jul 2018 15:13:49 GMT'] + etag: [W/"f2b63904e5bbd1094ea12a3b6ae041e7-gzip"] + foreman_api_version: ['2'] + foreman_version: [1.17.1] + keep-alive: ['timeout=5, max=10000'] + server: [Apache/2.4.6 (CentOS)] + set-cookie: [_session_id=819c8c384e723ca52d9ad10b23a08289; path=/; secure; HttpOnly] + status: [200 OK] + strict-transport-security: [max-age=631139040; includeSubdomains] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-download-options: [noopen] + x-frame-options: [sameorigin] + x-permitted-cross-domain-policies: [none] + x-powered-by: [Phusion Passenger 4.0.53] + x-request-id: [d0b7b112-d44a-47e8-8d9d-8fff2c209e21] + x-runtime: ['0.103200'] + x-xss-protection: [1; mode=block] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: ['*/*'] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + User-Agent: [python-requests/2.18.4] + content-type: [application/json] + method: GET + uri: https://centos7-katello-3-6.sean.example.com/katello/api/v2/content_view_filters/25 + response: + body: + string: !!binary | + H4sIAAAAAAAAA61UTY/TMBC98ysin7uo6YcKue5qryC0cEGV5TrTrtXEtsZ2oVT574wTN01CQXvg + FHnezLzxm+dk2YUpLavglNGs2IvKwYypkhWL9YxpUQMr2As4nz0ZeQTMHo32oH32TcGP7FlVHpDN + WAlOorK+baJDVc2YRBAeSi48dVjM8w8P883DYp3l6yJfFqtN9vXlkSqDLd+SJjtafiJaVlzoXFvj + lId+5jaiY44qHSu+b+NUexEq36fsDUrgNlgLnoM+KTS6poo+4QQYdeDShBidz1hFwzmi7YDr3RBa + coPnRJYvt51q+Was2lAuFtvtoEoYTxhP2B0NDR6EVr9EjPHY/uM4FpUYsn0aYhO2CdZ2a/69pkWx + Wr9hTYO0gahpB71UCmLk0qm0HKv0pddzOvUIuZrAn20sPYeaghZNGaSPUiSFhp0/J7S5VbfLdTHf + OI8AfIdCy9d23WVrcl6TUnsqH8a8OLRHtDUrlgsiFvIoDjA68AOaYOnxkBSIwtOExYrQznI1zVJR + wbxptpNgUiv5LJ16S/fn2yPgU1BIr06dU45wTkENPwfmZfn7eSswCWvDrlLuFcqr1yxgrVxiv7DE + cSOkqMdAjwRK5e8j5GCP5nwfTIR/AdHUxgM3yBFqc4J7aU3zh53oiskM3ZbodpjUvIzl2re/Kn79 + s8XvzYQ7hfSM/+8/q9k2734DWNZa814FAAA= + headers: + apipie-checksum: [83fd72067f1c96eb1196b17193cc48d0] + cache-control: ['max-age=0, private, must-revalidate'] + connection: [Keep-Alive] + content-encoding: [gzip] + content-length: ['539'] + content-security-policy: ['default-src ''self''; child-src ''self''; connect-src + ''self'' ws: wss:; img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' + ''unsafe-inline'' ''self''; style-src ''unsafe-inline'' ''self'''] + content-type: [application/json; charset=utf-8] + date: ['Wed, 25 Jul 2018 15:13:49 GMT'] + etag: [W/"c24bad8d4aa00208afa98351cafe5735-gzip"] + foreman_api_version: ['2'] + foreman_version: [1.17.1] + keep-alive: ['timeout=5, max=10000'] + server: [Apache/2.4.6 (CentOS)] + set-cookie: [_session_id=12c1b694ab89ca31efb5a475ee85c180; path=/; secure; HttpOnly] + status: [200 OK] + strict-transport-security: [max-age=631139040; includeSubdomains] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-download-options: [noopen] + x-frame-options: [sameorigin] + x-permitted-cross-domain-policies: [none] + x-powered-by: [Phusion Passenger 4.0.53] + x-request-id: [dfcce3db-8719-404a-8133-444b621764d1] + x-runtime: ['0.118894'] + x-xss-protection: [1; mode=block] + status: {code: 200, message: OK} +- request: + body: !!python/unicode '{"content_view_id": 17, "name": "Test Docker Content View + Filter"}' + headers: + Accept: ['*/*'] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Length: ['66'] + User-Agent: [python-requests/2.18.4] + content-type: [application/json] + method: GET + uri: https://centos7-katello-3-6.sean.example.com/katello/api/v2/content_view_filters + response: + body: + string: !!binary | + H4sIAAAAAAAAA61UwW7bMAy97ysMnt0hThpk87XDrgOGbpchEBSZaYXakkFJ2bzA/z7KVhwnzYYe + hhwS8lF85COZI3jrZQ1lkYMLu7PRyiccfyCJ0VguckAiS1CaUNf8ACWp58my5KE8wq6DEoxsEHKw + VCGHg3QK+hwIXai9g/LHEbRRdXDaGij3snaYg66YY52Pb0t4ROezT1a9IGUP1ng0Pvuu8Wf2Wdee + s+ZQoVOkWz8kGYtQhNJjJSSXAstF8eFusblbrrNiXRar8n6TfXt84Jehrd4SpkZacWDa2JqyTWud + 9jjVPHhMjNFV7Gsbq9pL7nIK2VtSKNrQtugFmoMmaxp+MQUckKIOQtkQvaxyzcU5ph2BU2+EA7ml + LpEVq+2oWrG5VG0uF8R0O6wTJhImEnZDQ0tP0ujfMvpETP/x0heVmLN9mWNXbFfYkK3/95iW5f36 + DWOahc1ETTOYpNKYti2qtLpU6euk53XVF8hpCXzXxqddaKBnijTQxlahxkSbBpasaTcm+7xN4hqU + yuvDKPkLdslp8NdsC6B4vxgq5QrbsKu1e8bqNDQ+00a7xH6ExHEmZK+nwNuGlfa3EV4FT7a7DSbC + v4BkG+tRWBKEjT3grbC+fzUXbjGpWg13zt1RUvN4Kdd+uHlx+ouI3+dp7jTxPfzf4++3/Hn3B/0n + ZWQfBQAA + headers: + apipie-checksum: [83fd72067f1c96eb1196b17193cc48d0] + cache-control: ['max-age=0, private, must-revalidate'] + connection: [Keep-Alive] + content-encoding: [gzip] + content-length: ['519'] + content-security-policy: ['default-src ''self''; child-src ''self''; connect-src + ''self'' ws: wss:; img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' + ''unsafe-inline'' ''self''; style-src ''unsafe-inline'' ''self'''] + content-type: [application/json; charset=utf-8] + date: ['Wed, 25 Jul 2018 15:13:49 GMT'] + etag: [W/"f2b63904e5bbd1094ea12a3b6ae041e7-gzip"] + foreman_api_version: ['2'] + foreman_version: [1.17.1] + keep-alive: ['timeout=5, max=10000'] + server: [Apache/2.4.6 (CentOS)] + set-cookie: [_session_id=2a2303ed49718c559388732a1c1b7971; path=/; secure; HttpOnly] + status: [200 OK] + strict-transport-security: [max-age=631139040; includeSubdomains] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-download-options: [noopen] + x-frame-options: [sameorigin] + x-permitted-cross-domain-policies: [none] + x-powered-by: [Phusion Passenger 4.0.53] + x-request-id: [dd25c876-9658-433d-9aa8-5119f58cb8d3] + x-runtime: ['0.138769'] + x-xss-protection: [1; mode=block] + status: {code: 200, message: OK} +- request: + body: !!python/unicode '{"content_view_filter_id": 25, "name": "birds"}' + headers: + Accept: ['*/*'] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Length: ['47'] + User-Agent: [python-requests/2.18.4] + content-type: [application/json] + method: GET + uri: https://centos7-katello-3-6.sean.example.com/katello/api/v2/content_view_filters/25/rules + response: + body: + string: !!binary | + H4sIAAAAAAAAA4WNywrCMBBF935FuesU+rBUZusv6EqkpM2ohdiUSapI6b8bKejS3Vw4Z86M4IK2 + oFzBT+1vjPrK68HSrKPIFFjECWiYrI0Ca+lu3+UkgGa0LxB6AwUnhiMM7TssCsJ+ssGDTjM6NwQe + QvPo+dlcehtiJTpUVOrjUqkw6HuMou3F+PisE9aBTaNjBEWW79KsTosqySvKS9rWyfGwj9g0mv/Y + cl42b32/wwn6AAAA + headers: + apipie-checksum: [83fd72067f1c96eb1196b17193cc48d0] + cache-control: ['max-age=0, private, must-revalidate'] + connection: [Keep-Alive] + content-encoding: [gzip] + content-length: ['183'] + content-security-policy: ['default-src ''self''; child-src ''self''; connect-src + ''self'' ws: wss:; img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' + ''unsafe-inline'' ''self''; style-src ''unsafe-inline'' ''self'''] + content-type: [application/json; charset=utf-8] + date: ['Wed, 25 Jul 2018 15:13:50 GMT'] + etag: [W/"ec985f74b55fd97c5205a20174d6da12-gzip"] + foreman_api_version: ['2'] + foreman_version: [1.17.1] + keep-alive: ['timeout=5, max=10000'] + server: [Apache/2.4.6 (CentOS)] + set-cookie: [_session_id=5a246ed6b5896edd990fd865fd43d0f1; path=/; secure; HttpOnly] + status: [200 OK] + strict-transport-security: [max-age=631139040; includeSubdomains] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-download-options: [noopen] + x-frame-options: [sameorigin] + x-permitted-cross-domain-policies: [none] + x-powered-by: [Phusion Passenger 4.0.53] + x-request-id: [2022664b-c8bd-419c-9aef-108ba1d95618] + x-runtime: ['0.075245'] + x-xss-protection: [1; mode=block] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: ['*/*'] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + User-Agent: [python-requests/2.18.4] + content-type: [application/json] + method: GET + uri: https://centos7-katello-3-6.sean.example.com/katello/api/v2/content_view_filters/25/rules/3 + response: + body: + string: !!binary | + H4sIAAAAAAAAA1NQqFZKzs8rSc0riS/LTC2PT8vMKUktis9MUbIyMtVRAtHGOkp5ibmpSlZKSZlF + KcVKOkrJRamJJakp8YklQEEjA0MLXQNzXSNTBUNTK0NjKxNzhdAQZ6Cy0oIUwspquQAvVRVjhAAA + AA== + headers: + apipie-checksum: [83fd72067f1c96eb1196b17193cc48d0] + cache-control: ['max-age=0, private, must-revalidate'] + connection: [Keep-Alive] + content-encoding: [gzip] + content-length: ['115'] + content-security-policy: ['default-src ''self''; child-src ''self''; connect-src + ''self'' ws: wss:; img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' + ''unsafe-inline'' ''self''; style-src ''unsafe-inline'' ''self'''] + content-type: [application/json; charset=utf-8] + date: ['Wed, 25 Jul 2018 15:13:50 GMT'] + etag: [W/"58996647fb0b994a610f6008ca3d8d92-gzip"] + foreman_api_version: ['2'] + foreman_version: [1.17.1] + keep-alive: ['timeout=5, max=10000'] + server: [Apache/2.4.6 (CentOS)] + set-cookie: [_session_id=f21bf83c3588dbd60d0b714ff0b86a8f; path=/; secure; HttpOnly] + status: [200 OK] + strict-transport-security: [max-age=631139040; includeSubdomains] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-download-options: [noopen] + x-frame-options: [sameorigin] + x-permitted-cross-domain-policies: [none] + x-powered-by: [Phusion Passenger 4.0.53] + x-request-id: [4359feca-33fd-4778-a45f-301ea3d4a888] + x-runtime: ['0.071362'] + x-xss-protection: [1; mode=block] + status: {code: 200, message: OK} +version: 1 diff --git a/test/test_playbooks/fixtures/content_view_filter-47.yml b/test/test_playbooks/fixtures/content_view_filter-47.yml new file mode 100644 index 0000000000..90f4c25817 --- /dev/null +++ b/test/test_playbooks/fixtures/content_view_filter-47.yml @@ -0,0 +1,299 @@ +interactions: +- request: + body: !!python/unicode '{}' + headers: + Accept: ['*/*'] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Length: ['2'] + User-Agent: [python-requests/2.18.4] + content-type: [application/json] + method: GET + uri: https://centos7-katello-3-6.sean.example.com/katello/api/v2/ping + response: + body: + string: !!binary | + H4sIAAAAAAAAA1NQqFYqLkksKS1WslLKz1bSUSpOLSrLTE4F8quVCkpzCkA0qoqU0qLEksz8vPhc + kJCxqVKtDlhlfGJpSQYh5YZmIOXJiXkpOakFmXkElRuiKCfOChOQnrT8otTcxLz4ksTi7GJiXFVb + ywUA6B44zg4BAAA= + headers: + apipie-checksum: [83fd72067f1c96eb1196b17193cc48d0] + cache-control: ['max-age=0, private, must-revalidate'] + connection: [Keep-Alive] + content-encoding: [gzip] + content-length: ['125'] + content-security-policy: ['default-src ''self''; child-src ''self''; connect-src + ''self'' ws: wss:; img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' + ''unsafe-inline'' ''self''; style-src ''unsafe-inline'' ''self'''] + content-type: [application/json; charset=utf-8] + date: ['Wed, 25 Jul 2018 15:13:51 GMT'] + etag: [W/"48a32cd5728b3c65af3fb790b3e3cab9-gzip"] + foreman_api_version: ['2'] + foreman_version: [1.17.1] + keep-alive: ['timeout=5, max=10000'] + server: [Apache/2.4.6 (CentOS)] + set-cookie: [_session_id=0e30a2a891c67da3af9e4ebdb5ff62d0; path=/; secure; HttpOnly] + status: [200 OK] + strict-transport-security: [max-age=631139040; includeSubdomains] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-download-options: [noopen] + x-frame-options: [sameorigin] + x-permitted-cross-domain-policies: [none] + x-powered-by: [Phusion Passenger 4.0.53] + x-request-id: [0f1c59cc-f65a-4f8e-87ab-69955e253a9b] + x-runtime: ['0.142348'] + x-xss-protection: [1; mode=block] + status: {code: 200, message: OK} +- request: + body: !!python/unicode '{"search": "name=\"Test Organization\""}' + headers: + Accept: ['*/*'] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Length: ['40'] + User-Agent: [python-requests/2.18.4] + content-type: [application/json] + method: GET + uri: https://centos7-katello-3-6.sean.example.com/katello/api/v2/organizations + response: + body: + string: !!binary | + H4sIAAAAAAAAA42PwWrDMAyG73kKo3MKcdjYathpD7BLd2pHUGLRGdwkyMqhC3n3qU7GxmCwm77P + v/mluTAGZBCM4Exd3ihN7ZewWYx4pm8gbjZRV2uekLt3ZejxQk8nOFAS88Jn7MMHShj6E8CaHFg0 + N+us1F517qcYy5UH9sSbUrPkL0xpipJUH2eI2JKulQuanwVQQseEQr5BbYC6so+76mFX3Rt752rr + 7N68Hp41No3+P7Hgwe3LfNDWZ371SZD415un1HEYM7nbOctbsRSfKnwYS2sBAAA= + headers: + apipie-checksum: [83fd72067f1c96eb1196b17193cc48d0] + cache-control: ['max-age=0, private, must-revalidate'] + connection: [Keep-Alive] + content-encoding: [gzip] + content-length: ['218'] + content-security-policy: ['default-src ''self''; child-src ''self''; connect-src + ''self'' ws: wss:; img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' + ''unsafe-inline'' ''self''; style-src ''unsafe-inline'' ''self'''] + content-type: [application/json; charset=utf-8] + date: ['Wed, 25 Jul 2018 15:13:51 GMT'] + etag: [W/"33eb541f7daf03e7d506a757939a7889-gzip"] + foreman_api_version: ['2'] + foreman_version: [1.17.1] + keep-alive: ['timeout=5, max=10000'] + server: [Apache/2.4.6 (CentOS)] + set-cookie: [_session_id=6ebf6f65fedcf242cd37dd1d0ff4fa1b; path=/; secure; HttpOnly] + status: [200 OK] + strict-transport-security: [max-age=631139040; includeSubdomains] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-download-options: [noopen] + x-frame-options: [sameorigin] + x-permitted-cross-domain-policies: [none] + x-powered-by: [Phusion Passenger 4.0.53] + x-request-id: [10a5da31-fae6-40d1-bfaf-b9a1880d25bc] + x-runtime: ['0.051278'] + x-xss-protection: [1; mode=block] + status: {code: 200, message: OK} +- request: + body: !!python/unicode '{"organization_id": 9, "name": "Test Content View"}' + headers: + Accept: ['*/*'] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Length: ['51'] + User-Agent: [python-requests/2.18.4] + content-type: [application/json] + method: GET + uri: https://centos7-katello-3-6.sean.example.com/katello/api/v2/content_views + response: + body: + string: !!binary | + H4sIAAAAAAAAA41SwW7bMAy97ysCnt0hTht087UfMGBoeykKQbGYVpgtCpTkzQ3876Vj1XWCFNhN + 5Hvkox55gEhRN1CVBYS0+wy8fsHpgaymYLMuAJmJoXKpaaQANdevc0QcoTrArocKnG4RCiA2KHTQ + oYahAMaQmhigejpATa2nYKM03usmYDFlHLqorBk5zwUY3GupmCl74hqVT95jVOg6y+RaqZgJHXKw + 5FRNaczKxI2OGKLKwMewjEdx4j6LldciZ418+baYpq/gXgpXd+SiKKweLf6Fsd0Om4ypjKmMGQw1 + Wx8XOsQv2tk3PebU2P7naW40bKn2a4mdqZ1hx25ias0oXzRKy39hsy5/XK1vrzbbVbmtyk11s109 + 3N8JPXnzP7SFqXkHs1UWp80dXbo+den37Of51CdInQ2LvR9L+9TCIBJ5oS2Z1GCWzQvL0Xwbczw1 + 6sR5dQ7qOtpusvwP9jnp8N/iCqD8vj5OKhP6tGtseEXzsTQ5+daGrH6ArPEpKNnISa4NjY2XETmF + yNRfBrPgFyBTSxEVsWJsqcNLtGF4Hr69A9j2DxC8AwAA + headers: + apipie-checksum: [83fd72067f1c96eb1196b17193cc48d0] + cache-control: ['max-age=0, private, must-revalidate'] + connection: [Keep-Alive] + content-encoding: [gzip] + content-length: ['432'] + content-security-policy: ['default-src ''self''; child-src ''self''; connect-src + ''self'' ws: wss:; img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' + ''unsafe-inline'' ''self''; style-src ''unsafe-inline'' ''self'''] + content-type: [application/json; charset=utf-8] + date: ['Wed, 25 Jul 2018 15:13:51 GMT'] + etag: [W/"e5377be671b535aa8045efc383418dc4-gzip"] + foreman_api_version: ['2'] + foreman_version: [1.17.1] + keep-alive: ['timeout=5, max=10000'] + server: [Apache/2.4.6 (CentOS)] + set-cookie: [_session_id=e45718d041e5265a6dc28c3c6da63513; path=/; secure; HttpOnly] + status: [200 OK] + strict-transport-security: [max-age=631139040; includeSubdomains] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-download-options: [noopen] + x-frame-options: [sameorigin] + x-permitted-cross-domain-policies: [none] + x-powered-by: [Phusion Passenger 4.0.53] + x-request-id: [b28dce83-71b1-4fa9-85f6-187cecafc75a] + x-runtime: ['0.083157'] + x-xss-protection: [1; mode=block] + status: {code: 200, message: OK} +- request: + body: !!python/unicode '{"content_view_id": 17, "name": "Test Docker Content View + Filter"}' + headers: + Accept: ['*/*'] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Length: ['66'] + User-Agent: [python-requests/2.18.4] + content-type: [application/json] + method: GET + uri: https://centos7-katello-3-6.sean.example.com/katello/api/v2/content_view_filters + response: + body: + string: !!binary | + H4sIAAAAAAAAA61UwW7bMAy97ysMnt0hThpk87XDrgOGbpchEBSZaYXakkFJ2bzA/z7KVhwnzYYe + hhwS8lF85COZI3jrZQ1lkYMLu7PRyiccfyCJ0VguckAiS1CaUNf8ACWp58my5KE8wq6DEoxsEHKw + VCGHg3QK+hwIXai9g/LHEbRRdXDaGij3snaYg66YY52Pb0t4ROezT1a9IGUP1ng0Pvuu8Wf2Wdee + s+ZQoVOkWz8kGYtQhNJjJSSXAstF8eFusblbrrNiXRar8n6TfXt84Jehrd4SpkZacWDa2JqyTWud + 9jjVPHhMjNFV7Gsbq9pL7nIK2VtSKNrQtugFmoMmaxp+MQUckKIOQtkQvaxyzcU5ph2BU2+EA7ml + LpEVq+2oWrG5VG0uF8R0O6wTJhImEnZDQ0tP0ujfMvpETP/x0heVmLN9mWNXbFfYkK3/95iW5f36 + DWOahc1ETTOYpNKYti2qtLpU6euk53XVF8hpCXzXxqddaKBnijTQxlahxkSbBpasaTcm+7xN4hqU + yuvDKPkLdslp8NdsC6B4vxgq5QrbsKu1e8bqNDQ+00a7xH6ExHEmZK+nwNuGlfa3EV4FT7a7DSbC + v4BkG+tRWBKEjT3grbC+fzUXbjGpWg13zt1RUvN4Kdd+uHlx+ouI3+dp7jTxPfzf4++3/Hn3B/0n + ZWQfBQAA + headers: + apipie-checksum: [83fd72067f1c96eb1196b17193cc48d0] + cache-control: ['max-age=0, private, must-revalidate'] + connection: [Keep-Alive] + content-encoding: [gzip] + content-length: ['519'] + content-security-policy: ['default-src ''self''; child-src ''self''; connect-src + ''self'' ws: wss:; img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' + ''unsafe-inline'' ''self''; style-src ''unsafe-inline'' ''self'''] + content-type: [application/json; charset=utf-8] + date: ['Wed, 25 Jul 2018 15:13:51 GMT'] + etag: [W/"f2b63904e5bbd1094ea12a3b6ae041e7-gzip"] + foreman_api_version: ['2'] + foreman_version: [1.17.1] + keep-alive: ['timeout=5, max=10000'] + server: [Apache/2.4.6 (CentOS)] + set-cookie: [_session_id=64d01b30a10a0544926738ca782d5395; path=/; secure; HttpOnly] + status: [200 OK] + strict-transport-security: [max-age=631139040; includeSubdomains] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-download-options: [noopen] + x-frame-options: [sameorigin] + x-permitted-cross-domain-policies: [none] + x-powered-by: [Phusion Passenger 4.0.53] + x-request-id: [837d9d32-9688-4401-a1f7-7030a4d3c748] + x-runtime: ['0.096534'] + x-xss-protection: [1; mode=block] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: ['*/*'] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Length: ['0'] + User-Agent: [python-requests/2.18.4] + content-type: [application/json] + method: DELETE + uri: https://centos7-katello-3-6.sean.example.com/katello/api/v2/content_view_filters/25 + response: + body: + string: !!binary | + H4sIAAAAAAAAA41TwW7bMAy97ysMnd0hdhJk87XDri2GbpchEBSZSYXYkkBJ2bLA/z7KVhwnzYYe + yUfyUY9PWXZiSssmOGU0q7aicZAzVbOqXOZMixZYxV7A+eyLkXvA7NFoD9pnPxT8yr6qxgOynNXg + JCrr+yE6NE3OJILwUHPhaUI5Kz49zFYP5TIrllUxrxar7PvLI3UGW7+nTA60/EC0rDpR3FrjlIdx + 5z6jY42qHat+ruNWWxEaP5ZsDUrgNlgLnoM+KDS6pY6x4AAYdeDShJid5ayh5RzRDsD5bQg9ucFj + Iivm60G1YnWt2lQuFsdtoEkYTxhP2B0NDe6EVn9EzPE4/vN1LioxZXuaYjdsN1g/rfv/mcpqsXzH + mSZlE1HTDUapFMTMaVBpfq3St1HP262vkLMJ/NHG1mNoKWnR1EH6KEVSaDr5OaHdpbs/rov1xnkE + 4BsUWr725657k/OWlNpS+zTnxa4P0basmpdELORe7OAq4Ds0wdLnISkQhacNqwWhg+Va2qWhhlnX + rW+SSa3ksxSNlh7jyyfgt6CQXh0Gp+zhmJIafk/My4qPs15gEtaGTaPcK9Rnr1nAVrnEfmKJ40JI + WY+BPgnUyt9HyMEezfE+mAj/AaJpjQdukCO05gD3yrrujZ3oickMw5XodXhWs/vwF3e/h1ndBAAA + headers: + apipie-checksum: [83fd72067f1c96eb1196b17193cc48d0] + cache-control: ['max-age=0, private, must-revalidate'] + connection: [Keep-Alive] + content-encoding: [gzip] + content-length: ['513'] + content-security-policy: ['default-src ''self''; child-src ''self''; connect-src + ''self'' ws: wss:; img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' + ''unsafe-inline'' ''self''; style-src ''unsafe-inline'' ''self'''] + content-type: [application/json; charset=utf-8] + date: ['Wed, 25 Jul 2018 15:13:52 GMT'] + etag: [W/"2d4a035b6293a42326764eb94ed89b80-gzip"] + foreman_api_version: ['2'] + foreman_version: [1.17.1] + keep-alive: ['timeout=5, max=10000'] + server: [Apache/2.4.6 (CentOS)] + set-cookie: [request_method=DELETE; path=/, _session_id=6fe9b14172b0896ec6ba32354af558d4; + path=/; secure; HttpOnly] + status: [200 OK] + strict-transport-security: [max-age=631139040; includeSubdomains] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-download-options: [noopen] + x-frame-options: [sameorigin] + x-permitted-cross-domain-policies: [none] + x-powered-by: [Phusion Passenger 4.0.53] + x-request-id: [635bee48-361c-4512-ab59-2c45548948a2] + x-runtime: ['0.111416'] + x-xss-protection: [1; mode=block] + status: {code: 200, message: OK} +- request: + body: !!python/unicode '{"content_view_id": 17, "name": "Test Docker Content View + Filter"}' + headers: + Accept: ['*/*'] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Length: ['66'] + User-Agent: [python-requests/2.18.4] + content-type: [application/json] + method: GET + uri: https://centos7-katello-3-6.sean.example.com/katello/api/v2/content_view_filters + response: + body: + string: !!binary | + H4sIAAAAAAAAA0XLsQqAMBAD0N3PyNxBHe9XRORaDx1qK9d2kOK/WxB0ywtJRY6ZPag3SMX+OHkT + 0NCC6PJibLWoRgWF4n07CKvbP0XNoAp7gRD4EBhEXaXNwcnhNlBJxecEmua7ewAzgtzWewAAAA== + headers: + apipie-checksum: [83fd72067f1c96eb1196b17193cc48d0] + cache-control: ['max-age=0, private, must-revalidate'] + connection: [Keep-Alive] + content-encoding: [gzip] + content-length: ['112'] + content-security-policy: ['default-src ''self''; child-src ''self''; connect-src + ''self'' ws: wss:; img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' + ''unsafe-inline'' ''self''; style-src ''unsafe-inline'' ''self'''] + content-type: [application/json; charset=utf-8] + date: ['Wed, 25 Jul 2018 15:13:52 GMT'] + etag: [W/"956e0fd5b832fbda8d01b01a5b7de844-gzip"] + foreman_api_version: ['2'] + foreman_version: [1.17.1] + keep-alive: ['timeout=5, max=10000'] + server: [Apache/2.4.6 (CentOS)] + set-cookie: [_session_id=25c788706ffc67065e2b59289ea08b25; path=/; secure; HttpOnly] + status: [200 OK] + strict-transport-security: [max-age=631139040; includeSubdomains] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-download-options: [noopen] + x-frame-options: [sameorigin] + x-permitted-cross-domain-policies: [none] + x-powered-by: [Phusion Passenger 4.0.53] + x-request-id: [2dd8b5a3-c4fa-4d7c-8fdc-39985895433b] + x-runtime: ['0.058764'] + x-xss-protection: [1; mode=block] + status: {code: 200, message: OK} +version: 1 diff --git a/test/test_playbooks/fixtures/content_view_filter-5.yml b/test/test_playbooks/fixtures/content_view_filter-5.yml new file mode 100644 index 0000000000..9ed0ff3af2 --- /dev/null +++ b/test/test_playbooks/fixtures/content_view_filter-5.yml @@ -0,0 +1,565 @@ +interactions: +- request: + body: !!python/unicode '{}' + headers: + Accept: ['*/*'] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Length: ['2'] + User-Agent: [python-requests/2.18.4] + content-type: [application/json] + method: GET + uri: https://centos7-katello-3-6.sean.example.com/katello/api/v2/ping + response: + body: + string: !!binary | + H4sIAAAAAAAAA43NPQqAMAwF4N1TSGYH/1D0MiVoxaK2pUldpHfXujnVKbzH90ieX0CM7AlGMBsU + QNKdapJPvsD63cb7FbN3yMpoccSq6SAUrxToeU3xqo98Qj3v0iqd5PWH/3vxbhbj5IFaMNJGqcnQ + lhBCyG5fCmCsDwEAAA== + headers: + apipie-checksum: [83fd72067f1c96eb1196b17193cc48d0] + cache-control: ['max-age=0, private, must-revalidate'] + connection: [Keep-Alive] + content-encoding: [gzip] + content-length: ['127'] + content-security-policy: ['default-src ''self''; child-src ''self''; connect-src + ''self'' ws: wss:; img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' + ''unsafe-inline'' ''self''; style-src ''unsafe-inline'' ''self'''] + content-type: [application/json; charset=utf-8] + date: ['Wed, 25 Jul 2018 15:12:51 GMT'] + etag: [W/"0723fabc40739aa2e81198f5e2f5a8ae-gzip"] + foreman_api_version: ['2'] + foreman_version: [1.17.1] + keep-alive: ['timeout=5, max=10000'] + server: [Apache/2.4.6 (CentOS)] + set-cookie: [_session_id=152e0cd424c2e43f0e5b532d1c0852fb; path=/; secure; HttpOnly] + status: [200 OK] + strict-transport-security: [max-age=631139040; includeSubdomains] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-download-options: [noopen] + x-frame-options: [sameorigin] + x-permitted-cross-domain-policies: [none] + x-powered-by: [Phusion Passenger 4.0.53] + x-request-id: [00560a2d-8c75-4d10-a3d6-382fc11bda9a] + x-runtime: ['1.076695'] + x-xss-protection: [1; mode=block] + status: {code: 200, message: OK} +- request: + body: !!python/unicode '{"search": "name=\"Test Organization\""}' + headers: + Accept: ['*/*'] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Length: ['40'] + User-Agent: [python-requests/2.18.4] + content-type: [application/json] + method: GET + uri: https://centos7-katello-3-6.sean.example.com/katello/api/v2/organizations + response: + body: + string: !!binary | + H4sIAAAAAAAAA42PwWrDMAyG73kKo3MKcdjYathpD7BLd2pHUGLRGdwkyMqhC3n3qU7GxmCwm77P + v/mluTAGZBCM4Exd3ihN7ZewWYx4pm8gbjZRV2uekLt3ZejxQk8nOFAS88Jn7MMHShj6E8CaHFg0 + N+us1F517qcYy5UH9sSbUrPkL0xpipJUH2eI2JKulQuanwVQQseEQr5BbYC6so+76mFX3Rt752rr + 7N68Hp41No3+P7Hgwe3LfNDWZ371SZD415un1HEYM7nbOctbsRSfKnwYS2sBAAA= + headers: + apipie-checksum: [83fd72067f1c96eb1196b17193cc48d0] + cache-control: ['max-age=0, private, must-revalidate'] + connection: [Keep-Alive] + content-encoding: [gzip] + content-length: ['218'] + content-security-policy: ['default-src ''self''; child-src ''self''; connect-src + ''self'' ws: wss:; img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' + ''unsafe-inline'' ''self''; style-src ''unsafe-inline'' ''self'''] + content-type: [application/json; charset=utf-8] + date: ['Wed, 25 Jul 2018 15:12:53 GMT'] + etag: [W/"33eb541f7daf03e7d506a757939a7889-gzip"] + foreman_api_version: ['2'] + foreman_version: [1.17.1] + keep-alive: ['timeout=5, max=10000'] + server: [Apache/2.4.6 (CentOS)] + set-cookie: [_session_id=34192b57e69132b23822448d9b3f51d7; path=/; secure; HttpOnly] + status: [200 OK] + strict-transport-security: [max-age=631139040; includeSubdomains] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-download-options: [noopen] + x-frame-options: [sameorigin] + x-permitted-cross-domain-policies: [none] + x-powered-by: [Phusion Passenger 4.0.53] + x-request-id: [a847ed95-798a-497d-a7aa-1c86b5993b8d] + x-runtime: ['0.143285'] + x-xss-protection: [1; mode=block] + status: {code: 200, message: OK} +- request: + body: !!python/unicode '{"organization_id": 9, "name": "Test Content View"}' + headers: + Accept: ['*/*'] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Length: ['51'] + User-Agent: [python-requests/2.18.4] + content-type: [application/json] + method: GET + uri: https://centos7-katello-3-6.sean.example.com/katello/api/v2/content_views + response: + body: + string: !!binary | + H4sIAAAAAAAAA41SwW7bMAy97ysCnt0hTht087UfMGBoeykKQbGYVpgtCpTkzQ3876Vj1XWCFNhN + 5Hvkox55gEhRN1CVBYS0+wy8fsHpgaymYLMuAJmJoXKpaaQANdevc0QcoTrArocKnG4RCiA2KHTQ + oYahAMaQmhigejpATa2nYKM03usmYDFlHLqorBk5zwUY3GupmCl74hqVT95jVOg6y+RaqZgJHXKw + 5FRNaczKxI2OGKLKwMewjEdx4j6LldciZ418+baYpq/gXgpXd+SiKKweLf6Fsd0Om4ypjKmMGQw1 + Wx8XOsQv2tk3PebU2P7naW40bKn2a4mdqZ1hx25ias0oXzRKy39hsy5/XK1vrzbbVbmtyk11s109 + 3N8JPXnzP7SFqXkHs1UWp80dXbo+den37Of51CdInQ2LvR9L+9TCIBJ5oS2Z1GCWzQvL0Xwbczw1 + 6sR5dQ7qOtpusvwP9jnp8N/iCqD8vj5OKhP6tGtseEXzsTQ5+daGrH6ArPEpKNnISa4NjY2XETmF + yNRfBrPgFyBTSxEVsWJsqcNLtGF4Hr69A9j2DxC8AwAA + headers: + apipie-checksum: [83fd72067f1c96eb1196b17193cc48d0] + cache-control: ['max-age=0, private, must-revalidate'] + connection: [Keep-Alive] + content-encoding: [gzip] + content-length: ['432'] + content-security-policy: ['default-src ''self''; child-src ''self''; connect-src + ''self'' ws: wss:; img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' + ''unsafe-inline'' ''self''; style-src ''unsafe-inline'' ''self'''] + content-type: [application/json; charset=utf-8] + date: ['Wed, 25 Jul 2018 15:12:53 GMT'] + etag: [W/"e5377be671b535aa8045efc383418dc4-gzip"] + foreman_api_version: ['2'] + foreman_version: [1.17.1] + keep-alive: ['timeout=5, max=10000'] + server: [Apache/2.4.6 (CentOS)] + set-cookie: [_session_id=5d232abc476c24291fa14e8d9c6e362a; path=/; secure; HttpOnly] + status: [200 OK] + strict-transport-security: [max-age=631139040; includeSubdomains] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-download-options: [noopen] + x-frame-options: [sameorigin] + x-permitted-cross-domain-policies: [none] + x-powered-by: [Phusion Passenger 4.0.53] + x-request-id: [ca183aa5-4a6c-46bb-aef5-eab238fb95f9] + x-runtime: ['0.120002'] + x-xss-protection: [1; mode=block] + status: {code: 200, message: OK} +- request: + body: !!python/unicode '{"organization_id": 9, "name": "Test Product"}' + headers: + Accept: ['*/*'] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Length: ['46'] + User-Agent: [python-requests/2.18.4] + content-type: [application/json] + method: GET + uri: https://centos7-katello-3-6.sean.example.com/katello/api/v2/products + response: + body: + string: !!binary | + H4sIAAAAAAAAA2VQy07DMBC88xXWnlOUpIQ2vqF+AEiUE0KW66xSC8e2/ACFqv+OnZY2Krfd2dnd + mTlAMIEroFUBPu6ujeU9ngp07NTUZQHonHFAdVQqLSB3Yn/pjAtAD7AbgYLmA0IBxnWY6MC9gGMB + Dn1UwQN9P4DsgLYFCMtyBatlW7btevXQPJZpcdqnsEUfyIszXRQhoYrvUJ1hdoU79MJJG6TRafhE + 9tzakSgZgkIS8gl74abqSyZR09eqSbJHLZhVXE/I2UrGfBwG7sZsyUch0CfddTLR25594viPHnjI + kl9TI3VPNmawCgPeT7qT3sxK87qs1otytagbUjW0KmnVkrftZs5i3ym39A2WZJA6JgdTlD3X8odn + l+wc3hzLOuepPc9nN9HdzKZrx1kUf8YcWuNlMG5kwkQdcgAfx7tfwzLIbjUCAAA= + headers: + apipie-checksum: [83fd72067f1c96eb1196b17193cc48d0] + cache-control: ['max-age=0, private, must-revalidate'] + connection: [Keep-Alive] + content-encoding: [gzip] + content-length: ['332'] + content-security-policy: ['default-src ''self''; child-src ''self''; connect-src + ''self'' ws: wss:; img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' + ''unsafe-inline'' ''self''; style-src ''unsafe-inline'' ''self'''] + content-type: [application/json; charset=utf-8] + date: ['Wed, 25 Jul 2018 15:12:53 GMT'] + etag: [W/"e094e3b621673748cc58c93af2f043f8-gzip"] + foreman_api_version: ['2'] + foreman_version: [1.17.1] + keep-alive: ['timeout=5, max=10000'] + server: [Apache/2.4.6 (CentOS)] + set-cookie: [_session_id=f92d70ab17836390006b2d381b02ff60; path=/; secure; HttpOnly] + status: [200 OK] + strict-transport-security: [max-age=631139040; includeSubdomains] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-download-options: [noopen] + x-frame-options: [sameorigin] + x-permitted-cross-domain-policies: [none] + x-powered-by: [Phusion Passenger 4.0.53] + x-request-id: [effac31a-c34b-4580-a303-bdc13df4ca1b] + x-runtime: ['0.118197'] + x-xss-protection: [1; mode=block] + status: {code: 200, message: OK} +- request: + body: !!python/unicode '{"product_id": 9, "name": "Test Repository"}' + headers: + Accept: ['*/*'] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Length: ['44'] + User-Agent: [python-requests/2.18.4] + content-type: [application/json] + method: GET + uri: https://centos7-katello-3-6.sean.example.com/katello/api/v2/repositories + response: + body: + string: !!binary | + H4sIAAAAAAAAA3VTyY7bMAy99ysCnuPY8TJerr0WaFFMT8VAkCU6I4xtCVqmzQT591K202nQ9mKT + IkU9vkdewGvPR+iOe3Chf3cMP+FqoGWrk2d7QGu1hW4O40gXkFvx/NvT1kN3gf4MHcx8QtiDthIp + HbgTcN2DRRdG76D7fgGhZ4+zZ/5sqDacw0T5wdLr8Oy9cV2aWjTaHQaU2nKD2ox40PaUmjCa9SNx + 0mzJSt+0TiG+MHKvXpEge0IGj+g8+2xPfFZvFNBz+kn1lttzKoLzekqXhC9WyyD86nyN9ZTX9kz1 + 1gZh1ouxh56LF5wlU5Kwq0Gt3bUZr/ohT5qHRiRlnh2TVoohKUSPZVVz3pQt3b11PPIexxtrShLL + xX4lbMW7u0OwZcPf2MyKOnIeq7T0gmHRgrpos7Zt6rJ6yOC+9tYqnbrzLJgZ+Uxy3PSS6IRVJhJ1 + y5Dcx4gi7PaVhoPK4U/PYgyerhGf27wNBxRVw3PZN0nxIIeklEIkfZX3SZ23dVnUXOYyj1o7tBsy + Lie1POi59SgZp6aAaGySrE7yanesumPWZdnu2+NHSiMB/pt0LLYkquVjbVLZGJRwm754FIRA51YK + Tzaa3fGQXd8lEjrMcU4voJ23iIxmZo6TQCsgNY2AZRON1ECM/uuMjeo+4Plpca2ZoCtyQrdYWdwz + 8bJsVzzdHHayOhhauGXfuKfV6EqKBmrEs4kEHHG5PKjNkNjT/0812A/aPRfV2BG3waOD69P1wy/D + RJa48AMAAA== + headers: + apipie-checksum: [83fd72067f1c96eb1196b17193cc48d0] + cache-control: ['max-age=0, private, must-revalidate'] + connection: [Keep-Alive] + content-encoding: [gzip] + content-length: ['577'] + content-security-policy: ['default-src ''self''; child-src ''self''; connect-src + ''self'' ws: wss:; img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' + ''unsafe-inline'' ''self''; style-src ''unsafe-inline'' ''self'''] + content-type: [application/json; charset=utf-8] + date: ['Wed, 25 Jul 2018 15:12:53 GMT'] + etag: [W/"4800e2cb797f73e5a7b98036a1a0314c-gzip"] + foreman_api_version: ['2'] + foreman_version: [1.17.1] + keep-alive: ['timeout=5, max=10000'] + server: [Apache/2.4.6 (CentOS)] + set-cookie: [_session_id=4cff99942611f996844f9fd1f1cfa963; path=/; secure; HttpOnly] + status: [200 OK] + strict-transport-security: [max-age=631139040; includeSubdomains] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-download-options: [noopen] + x-frame-options: [sameorigin] + x-permitted-cross-domain-policies: [none] + x-powered-by: [Phusion Passenger 4.0.53] + x-request-id: [ffa864fd-ec8b-48d6-9bf8-ed339657f4a9] + x-runtime: ['0.152412'] + x-xss-protection: [1; mode=block] + status: {code: 200, message: OK} +- request: + body: !!python/unicode '{"content_view_id": 17, "name": "Test Package Content + View Filter"}' + headers: + Accept: ['*/*'] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Length: ['67'] + User-Agent: [python-requests/2.18.4] + content-type: [application/json] + method: GET + uri: https://centos7-katello-3-6.sean.example.com/katello/api/v2/content_view_filters + response: + body: + string: !!binary | + H4sIAAAAAAAAA6VV34/bIAx+319R8dxc0qS9tHmdtKdJm6ZtL9MJEXB6aElAQLp1Vf/3GULTH+vp + TpoqNWAbPmN/tg/EKcdaUi3mxA71eaPZFsYFGDpu8mxOwBhlSNUPbYsHgBn+PO2UcaQ6kHpPKtKz + DsicKCMAzQmznBznxIAdWmdJ9eNAZM/bwUrVk6phrYU5kQIxEDGcrchXsG72mfGfCD57r3oHvZt9 + l/Br9kG2Dq+dEwGWG6lduGX0ghtgDgRl6AvJs8U6ycokX80Wq2qRV8ty9u3rezw5aPEWMz7C0h3C + +rdx1WllpYPJ6SDpvY0U/mFP3quG4TMnk0YZDlQPWoOj0O+kUX2HJyaDHRgfCMrV4KUY5hadswg7 + Kk5vMxDAldlHsEXxNIZtUV6H7TJcxF9XQxt1NOpo1N2JoTJb1ss/zMuov35zLfORuET7dKm7QbvR + hduOr6Zp9bY0ncwughpzMIVKQqSbj1JxHaUvUzxvvb7SnEjg9tof3Q8dOSJETGinxNBChI0Ji7uJ + G9P+zCZ6q2Tcyd0Y8p+wj8Iefl+wgCwesuApeqiHupX2GcQpaVinnbQR/UAixhkQpc4MyDYQ0t3X + IBWcUfv7ygj4gtKoTjmgylADndrBPbPj8U5e7gQX0258Jp6d07ZK03DmoQGhDNOgdAsPyMZUD60e + /wRC0mCV/lEqJR4GK0iiG5q553tUTD/K2jCzT/lgnerSYPDZYC65S/+lwNjnSK/CYk5qbEvQCywO + 9F02cmxym4yt6iZP1o9rniyRrslG8CYpeA3LVcnYerm5oFMk3Ji9/6CnHr32SY+1ynWoWlIWm2yz + WZfL1aPnzVVfjYewbe97TnXLkF8/Tm37sidEC1+Hvn7Rd7PDGRG56XXk6RhJGXbRD1Ks1iwX9Top + HkWTLAXnSb3K66TMN+WyKJnIRe5zbcFEz5joZAB0zLxU9VmVZVPVixeNFkU0wrt8t8avwnIV5DSE + vGjgHKwdQ7g1fllhhR3PKQoNOZSTwsoAoMiZ3jMBW7RQSAFDO6RUgxG9J6NYMFcKx7Zha3RHqiJH + 78Iq8+M2zLlRGjd0a9SgcSaGscsclka1vOk74XAj40JAjd/LbNBfOIKtz8YMYzvgVAm9K1abR0dv + Yv86XDeoJkxZeprK/nueMjWOfvJqG1+/rY2PZscn/L37C6vDvq2RCAAA + headers: + apipie-checksum: [83fd72067f1c96eb1196b17193cc48d0] + cache-control: ['max-age=0, private, must-revalidate'] + connection: [Keep-Alive] + content-encoding: [gzip] + content-length: ['897'] + content-security-policy: ['default-src ''self''; child-src ''self''; connect-src + ''self'' ws: wss:; img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' + ''unsafe-inline'' ''self''; style-src ''unsafe-inline'' ''self'''] + content-type: [application/json; charset=utf-8] + date: ['Wed, 25 Jul 2018 15:12:53 GMT'] + etag: [W/"8fcd7cb991e31ab9e76aa340c6859cb5-gzip"] + foreman_api_version: ['2'] + foreman_version: [1.17.1] + keep-alive: ['timeout=5, max=10000'] + server: [Apache/2.4.6 (CentOS)] + set-cookie: [_session_id=665d9dc354ae0e47778bae7deb3c9d6b; path=/; secure; HttpOnly] + status: [200 OK] + strict-transport-security: [max-age=631139040; includeSubdomains] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-download-options: [noopen] + x-frame-options: [sameorigin] + x-permitted-cross-domain-policies: [none] + x-powered-by: [Phusion Passenger 4.0.53] + x-request-id: [faa3b257-0604-43b2-ba8b-b5a153f02856] + x-runtime: ['0.141209'] + x-xss-protection: [1; mode=block] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: ['*/*'] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + User-Agent: [python-requests/2.18.4] + content-type: [application/json] + method: GET + uri: https://centos7-katello-3-6.sean.example.com/katello/api/v2/content_view_filters/21 + response: + body: + string: !!binary | + H4sIAAAAAAAAA6VWwW7bOBC99ysEnq1YluzY1rXAnhZosejuJTAIihw5RCSRICl3XUP/3iFFK7br + tAFyscSZIWf8+N6MkuREZMeb3krVkbJmjYUZUUbuZccaqhl/YXuwk0cKUuaLGelYC6Qk38C65OsY + lHxWnYPOJf9J+J78JRsHhsyIAMuN1C6c3/VNMyPcAHMgKHN4RJ4tNmm2TvNVsliVi7xcrpN/v33G + nb0W7wnjY1p6wLSkPOG61cpKB1PRwdL5GCnwrzztfFU16xs3hdTKcKC61xoche4gjepa3DEFHMB4 + iChXvbdmM9JgcRbTjo7zfzMQkitzjMkWxW6EbbG+hu0SLuKPq6CJPhp9NPruYKjMnnXyB/M26o/f + Xts8EpfZvlz6brLd+MJpwx+vafW+azqHXYAa72CCSnqCPZ1GlIprlP6Z8Lyt+spzJoE7ar/12Ldo + 1EaJnjsPRUToirbRO7zuDpdrfbyyzgDQyrCOP4frFoq/gKEtIlXj9kubY/uwNLolZZFj4lERVwu6 + N6rXqB6EwhjmsMJyid6Rci3W0uCGbBh2N8aIVuRZXE2UntavIqC3TsadPIxMeYFjNHbw/wV5yeIh + CwAjsLqvGmmfQZy5psG00sbsJxJzvCZEqzM9igSEdPc9yGBn1PG+MyZ8w2lUqxxQZaiBVh3gXtgw + 3KHTXU70xhPo2Tlty/k87HmoQSjDNCjdwAOKaK77Ro8/AlPSEDX/odSc+DQofIllaOae7ylo/rdE + 2pjjnPfWqXYeAiLZ5r8ylxlPMNKp8DIjFdIFOoGaxtplLbGJloRtM7aq6jzdPG54ukSVpVvB67Tg + FSxXa8Y2y+2FCqJOxtv7gKp+FRDXodmQdbHNttvNerl69Ly5p6sZsceOU90w5NfTGHLdymKEbx++ + 7WDt5sAaErnpfWQ3RFKGVayDFKsNy0W1SYtHUadLwXlarfIqXefb9bJYM5GL3N+1BRMrY6KVIaFj + 5q1mlZVZNjUr8WbQoohBeJYfMvhUKFcRuGHDUCG25xysHSHcG/9aosI+3mrONoqC+X0PsuEt+1Az + wrko44uAyneni9ug35XxE44UCWLb4zAkvndFtfnsWE3sX6frBlWHjwN6/pjwz9fhWAHz3w1/mD6b + 902fMWzYDZ9+AnArYK3qCAAA + headers: + apipie-checksum: [83fd72067f1c96eb1196b17193cc48d0] + cache-control: ['max-age=0, private, must-revalidate'] + connection: [Keep-Alive] + content-encoding: [gzip] + content-length: ['873'] + content-security-policy: ['default-src ''self''; child-src ''self''; connect-src + ''self'' ws: wss:; img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' + ''unsafe-inline'' ''self''; style-src ''unsafe-inline'' ''self'''] + content-type: [application/json; charset=utf-8] + date: ['Wed, 25 Jul 2018 15:12:53 GMT'] + etag: [W/"4ee721aba05d01d544cb74f334494fe0-gzip"] + foreman_api_version: ['2'] + foreman_version: [1.17.1] + keep-alive: ['timeout=5, max=10000'] + server: [Apache/2.4.6 (CentOS)] + set-cookie: [_session_id=b80faa1bd1f9969546686010ef623515; path=/; secure; HttpOnly] + status: [200 OK] + strict-transport-security: [max-age=631139040; includeSubdomains] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-download-options: [noopen] + x-frame-options: [sameorigin] + x-permitted-cross-domain-policies: [none] + x-powered-by: [Phusion Passenger 4.0.53] + x-request-id: [03f63442-3c37-42e7-8ce1-80eb850579e9] + x-runtime: ['0.157270'] + x-xss-protection: [1; mode=block] + status: {code: 200, message: OK} +- request: + body: !!python/unicode '{"content_view_id": 17, "name": "Test Package Content + View Filter"}' + headers: + Accept: ['*/*'] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Length: ['67'] + User-Agent: [python-requests/2.18.4] + content-type: [application/json] + method: GET + uri: https://centos7-katello-3-6.sean.example.com/katello/api/v2/content_view_filters + response: + body: + string: !!binary | + H4sIAAAAAAAAA6VV34/bIAx+319R8dxc0qS9tHmdtKdJm6ZtL9MJEXB6aElAQLp1Vf/3GULTH+vp + TpoqNWAbPmN/tg/EKcdaUi3mxA71eaPZFsYFGDpu8mxOwBhlSNUPbYsHgBn+PO2UcaQ6kHpPKtKz + DsicKCMAzQmznBznxIAdWmdJ9eNAZM/bwUrVk6phrYU5kQIxEDGcrchXsG72mfGfCD57r3oHvZt9 + l/Br9kG2Dq+dEwGWG6lduGX0ghtgDgRl6AvJs8U6ycokX80Wq2qRV8ty9u3rezw5aPEWMz7C0h3C + +rdx1WllpYPJ6SDpvY0U/mFP3quG4TMnk0YZDlQPWoOj0O+kUX2HJyaDHRgfCMrV4KUY5hadswg7 + Kk5vMxDAldlHsEXxNIZtUV6H7TJcxF9XQxt1NOpo1N2JoTJb1ss/zMuov35zLfORuET7dKm7QbvR + hduOr6Zp9bY0ncwughpzMIVKQqSbj1JxHaUvUzxvvb7SnEjg9tof3Q8dOSJETGinxNBChI0Ji7uJ + G9P+zCZ6q2Tcyd0Y8p+wj8Iefl+wgCwesuApeqiHupX2GcQpaVinnbQR/UAixhkQpc4MyDYQ0t3X + IBWcUfv7ygj4gtKoTjmgylADndrBPbPj8U5e7gQX0258Jp6d07ZK03DmoQGhDNOgdAsPyMZUD60e + /wRC0mCV/lEqJR4GK0iiG5q553tUTD/K2jCzT/lgnerSYPDZYC65S/+lwNjnSK/CYk5qbEvQCywO + 9F02cmxym4yt6iZP1o9rniyRrslG8CYpeA3LVcnYerm5oFMk3Ji9/6CnHr32SY+1ynWoWlIWm2yz + WZfL1aPnzVVfjYewbe97TnXLkF8/Tm37sidEC1+Hvn7Rd7PDGRG56XXk6RhJGXbRD1Ks1iwX9Top + HkWTLAXnSb3K66TMN+WyKJnIRe5zbcFEz5joZAB0zLxU9VmVZVPVixeNFkU0wrt8t8avwnIV5DSE + vGjgHKwdQ7g1fllhhR3PKQoNOZSTwsoAoMiZ3jMBW7RQSAFDO6RUgxG9J6NYMFcKx7Zha3RHqiJH + 78Iq8+M2zLlRGjd0a9SgcSaGscsclka1vOk74XAj40JAjd/LbNBfOIKtz8YMYzvgVAm9K1abR0dv + Yv86XDeoJkxZeprK/nueMjWOfvJqG1+/rY2PZscn/L37C6vDvq2RCAAA + headers: + apipie-checksum: [83fd72067f1c96eb1196b17193cc48d0] + cache-control: ['max-age=0, private, must-revalidate'] + connection: [Keep-Alive] + content-encoding: [gzip] + content-length: ['897'] + content-security-policy: ['default-src ''self''; child-src ''self''; connect-src + ''self'' ws: wss:; img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' + ''unsafe-inline'' ''self''; style-src ''unsafe-inline'' ''self'''] + content-type: [application/json; charset=utf-8] + date: ['Wed, 25 Jul 2018 15:12:54 GMT'] + etag: [W/"8fcd7cb991e31ab9e76aa340c6859cb5-gzip"] + foreman_api_version: ['2'] + foreman_version: [1.17.1] + keep-alive: ['timeout=5, max=10000'] + server: [Apache/2.4.6 (CentOS)] + set-cookie: [_session_id=5d2c7e79827ee03fcf7ad6d1edf54e7a; path=/; secure; HttpOnly] + status: [200 OK] + strict-transport-security: [max-age=631139040; includeSubdomains] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-download-options: [noopen] + x-frame-options: [sameorigin] + x-permitted-cross-domain-policies: [none] + x-powered-by: [Phusion Passenger 4.0.53] + x-request-id: [b57b8027-9284-4662-aa14-a13cbf1399b9] + x-runtime: ['0.150939'] + x-xss-protection: [1; mode=block] + status: {code: 200, message: OK} +- request: + body: !!python/unicode '{"content_view_filter_id": 21, "name": "bear"}' + headers: + Accept: ['*/*'] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Length: ['46'] + User-Agent: [python-requests/2.18.4] + content-type: [application/json] + method: GET + uri: https://centos7-katello-3-6.sean.example.com/katello/api/v2/content_view_filters/21/rules + response: + body: + string: !!binary | + H4sIAAAAAAAAA4WNwQrCMBBE735FmXMKbbC05Oov6EmkpOmqhdiUTapI6b+7IujR087Am30LUkjW + w5QKce5+ZbIX+gTi9lN0oUDMgWHG2XsZkGV3/bbACWZB94TB0EMhcE8Cw0aHVYEpzj5FmOMCF8ZE + Y2rvAz3a8+CTWGRjtBjft1YY7U2k6EQivxyTTdS3VhzQRdnkRZ3rKisrU2qzbbLDfifYPPX/sfW0 + bl5p5/Q0+QAAAA== + headers: + apipie-checksum: [83fd72067f1c96eb1196b17193cc48d0] + cache-control: ['max-age=0, private, must-revalidate'] + connection: [Keep-Alive] + content-encoding: [gzip] + content-length: ['181'] + content-security-policy: ['default-src ''self''; child-src ''self''; connect-src + ''self'' ws: wss:; img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' + ''unsafe-inline'' ''self''; style-src ''unsafe-inline'' ''self'''] + content-type: [application/json; charset=utf-8] + date: ['Wed, 25 Jul 2018 15:12:54 GMT'] + etag: [W/"1c4e66d41c0fb59ca2f0d38ebbf837a8-gzip"] + foreman_api_version: ['2'] + foreman_version: [1.17.1] + keep-alive: ['timeout=5, max=10000'] + server: [Apache/2.4.6 (CentOS)] + set-cookie: [_session_id=f01f97396a42d779dca3397705f0a53e; path=/; secure; HttpOnly] + status: [200 OK] + strict-transport-security: [max-age=631139040; includeSubdomains] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-download-options: [noopen] + x-frame-options: [sameorigin] + x-permitted-cross-domain-policies: [none] + x-powered-by: [Phusion Passenger 4.0.53] + x-request-id: [1072ad44-46d9-48dd-9936-0db739ea39ff] + x-runtime: ['0.062509'] + x-xss-protection: [1; mode=block] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: ['*/*'] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + User-Agent: [python-requests/2.18.4] + content-type: [application/json] + method: GET + uri: https://centos7-katello-3-6.sean.example.com/katello/api/v2/content_view_filters/21/rules/7 + response: + body: + string: !!binary | + H4sIAAAAAAAAA1NQqFZKzs8rSc0riS/LTC2PT8vMKUktis9MUbIyMtRRAtHmOkp5ibmpSlZKSamJ + RUo6SslFqYklqSnxiSVAMSMDQwtdA3NdI1MFQ1MrQyMrEwuF0BBnoLLSghTCymq5ANUpg62DAAAA + headers: + apipie-checksum: [83fd72067f1c96eb1196b17193cc48d0] + cache-control: ['max-age=0, private, must-revalidate'] + connection: [Keep-Alive] + content-encoding: [gzip] + content-length: ['114'] + content-security-policy: ['default-src ''self''; child-src ''self''; connect-src + ''self'' ws: wss:; img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' + ''unsafe-inline'' ''self''; style-src ''unsafe-inline'' ''self'''] + content-type: [application/json; charset=utf-8] + date: ['Wed, 25 Jul 2018 15:12:54 GMT'] + etag: [W/"1a6ef3d16e7997484bdbe81f817b2d7c-gzip"] + foreman_api_version: ['2'] + foreman_version: [1.17.1] + keep-alive: ['timeout=5, max=10000'] + server: [Apache/2.4.6 (CentOS)] + set-cookie: [_session_id=236b06851bcb0d448c3b46e89f7ff5f6; path=/; secure; HttpOnly] + status: [200 OK] + strict-transport-security: [max-age=631139040; includeSubdomains] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-download-options: [noopen] + x-frame-options: [sameorigin] + x-permitted-cross-domain-policies: [none] + x-powered-by: [Phusion Passenger 4.0.53] + x-request-id: [9d6581a6-83e7-4785-b6d4-690ca16555de] + x-runtime: ['0.074259'] + x-xss-protection: [1; mode=block] + status: {code: 200, message: OK} +- request: + body: !!python/unicode '{"version": "1"}' + headers: + Accept: ['*/*'] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Length: ['16'] + User-Agent: [python-requests/2.18.4] + content-type: [application/json] + method: PUT + uri: https://centos7-katello-3-6.sean.example.com/katello/api/v2/content_view_filters/21/rules/7 + response: + body: + string: !!binary | + H4sIAAAAAAAAA33KQQqDMBAAwHtfEfacgBsMkVz7hfYcolkhYGNJt3oQ/270AV6HEWKDYc5Mmf2S + aPVjmpiKTxGcRgkLlV+aMzhAkHCqlZDDh6r0FErFoVBgij5wNd1gpxqrtBFoHGrXduL9etb2/8ab + Ztqr7Y8DzcIS5ZEAAAA= + headers: + apipie-checksum: [83fd72067f1c96eb1196b17193cc48d0] + cache-control: ['max-age=0, private, must-revalidate'] + connection: [Keep-Alive] + content-encoding: [gzip] + content-length: ['128'] + content-security-policy: ['default-src ''self''; child-src ''self''; connect-src + ''self'' ws: wss:; img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' + ''unsafe-inline'' ''self''; style-src ''unsafe-inline'' ''self'''] + content-type: [application/json; charset=utf-8] + date: ['Wed, 25 Jul 2018 15:12:54 GMT'] + etag: [W/"d8c5ece4066f321eee7966a2f1782ee3-gzip"] + foreman_api_version: ['2'] + foreman_version: [1.17.1] + keep-alive: ['timeout=5, max=10000'] + server: [Apache/2.4.6 (CentOS)] + set-cookie: [request_method=PUT; path=/, _session_id=0c530f6083c21eb1bc752556d2129219; + path=/; secure; HttpOnly] + status: [200 OK] + strict-transport-security: [max-age=631139040; includeSubdomains] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-download-options: [noopen] + x-frame-options: [sameorigin] + x-permitted-cross-domain-policies: [none] + x-powered-by: [Phusion Passenger 4.0.53] + x-request-id: [7f14630c-37d4-49fc-898e-6da54be3c573] + x-runtime: ['0.084430'] + x-xss-protection: [1; mode=block] + status: {code: 200, message: OK} +version: 1 diff --git a/test/test_playbooks/fixtures/content_view_filter-7.yml b/test/test_playbooks/fixtures/content_view_filter-7.yml new file mode 100644 index 0000000000..dbccebec87 --- /dev/null +++ b/test/test_playbooks/fixtures/content_view_filter-7.yml @@ -0,0 +1,519 @@ +interactions: +- request: + body: !!python/unicode '{}' + headers: + Accept: ['*/*'] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Length: ['2'] + User-Agent: [python-requests/2.18.4] + content-type: [application/json] + method: GET + uri: https://centos7-katello-3-6.sean.example.com/katello/api/v2/ping + response: + body: + string: !!binary | + H4sIAAAAAAAAA43NMQqAMAwF0N1TSGYXFRW9TAlasahtaVKX0rtr3ZzqFP7nfVKWAYiRPcEEZocK + SLpLzfLJAaw/bLpfsXiHrIwWZ6q6FmL1SoGetxyvh8Rn1MshrdJZ3nz4vxd12qzGyRO1YKSdcpOx + 7yHGWNyPEW4MDwEAAA== + headers: + apipie-checksum: [83fd72067f1c96eb1196b17193cc48d0] + cache-control: ['max-age=0, private, must-revalidate'] + connection: [Keep-Alive] + content-encoding: [gzip] + content-length: ['127'] + content-security-policy: ['default-src ''self''; child-src ''self''; connect-src + ''self'' ws: wss:; img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' + ''unsafe-inline'' ''self''; style-src ''unsafe-inline'' ''self'''] + content-type: [application/json; charset=utf-8] + date: ['Wed, 25 Jul 2018 15:12:55 GMT'] + etag: [W/"1495a715157fbda83dacb76e06ceb756-gzip"] + foreman_api_version: ['2'] + foreman_version: [1.17.1] + keep-alive: ['timeout=5, max=10000'] + server: [Apache/2.4.6 (CentOS)] + set-cookie: [_session_id=3c5b6cd90ca49463894d01b9cc8bfc05; path=/; secure; HttpOnly] + status: [200 OK] + strict-transport-security: [max-age=631139040; includeSubdomains] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-download-options: [noopen] + x-frame-options: [sameorigin] + x-permitted-cross-domain-policies: [none] + x-powered-by: [Phusion Passenger 4.0.53] + x-request-id: [a16fa445-2a6d-4c4c-8779-b22f2a2f328d] + x-runtime: ['1.113601'] + x-xss-protection: [1; mode=block] + status: {code: 200, message: OK} +- request: + body: !!python/unicode '{"search": "name=\"Test Organization\""}' + headers: + Accept: ['*/*'] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Length: ['40'] + User-Agent: [python-requests/2.18.4] + content-type: [application/json] + method: GET + uri: https://centos7-katello-3-6.sean.example.com/katello/api/v2/organizations + response: + body: + string: !!binary | + H4sIAAAAAAAAA42PwWrDMAyG73kKo3MKcdjYathpD7BLd2pHUGLRGdwkyMqhC3n3qU7GxmCwm77P + v/mluTAGZBCM4Exd3ihN7ZewWYx4pm8gbjZRV2uekLt3ZejxQk8nOFAS88Jn7MMHShj6E8CaHFg0 + N+us1F517qcYy5UH9sSbUrPkL0xpipJUH2eI2JKulQuanwVQQseEQr5BbYC6so+76mFX3Rt752rr + 7N68Hp41No3+P7Hgwe3LfNDWZ371SZD415un1HEYM7nbOctbsRSfKnwYS2sBAAA= + headers: + apipie-checksum: [83fd72067f1c96eb1196b17193cc48d0] + cache-control: ['max-age=0, private, must-revalidate'] + connection: [Keep-Alive] + content-encoding: [gzip] + content-length: ['218'] + content-security-policy: ['default-src ''self''; child-src ''self''; connect-src + ''self'' ws: wss:; img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' + ''unsafe-inline'' ''self''; style-src ''unsafe-inline'' ''self'''] + content-type: [application/json; charset=utf-8] + date: ['Wed, 25 Jul 2018 15:12:57 GMT'] + etag: [W/"33eb541f7daf03e7d506a757939a7889-gzip"] + foreman_api_version: ['2'] + foreman_version: [1.17.1] + keep-alive: ['timeout=5, max=10000'] + server: [Apache/2.4.6 (CentOS)] + set-cookie: [_session_id=7ff597506a8eb6594c8ed30504395656; path=/; secure; HttpOnly] + status: [200 OK] + strict-transport-security: [max-age=631139040; includeSubdomains] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-download-options: [noopen] + x-frame-options: [sameorigin] + x-permitted-cross-domain-policies: [none] + x-powered-by: [Phusion Passenger 4.0.53] + x-request-id: [d4a5c613-7d62-4be4-b985-93ca87531529] + x-runtime: ['0.073787'] + x-xss-protection: [1; mode=block] + status: {code: 200, message: OK} +- request: + body: !!python/unicode '{"organization_id": 9, "name": "Test Content View"}' + headers: + Accept: ['*/*'] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Length: ['51'] + User-Agent: [python-requests/2.18.4] + content-type: [application/json] + method: GET + uri: https://centos7-katello-3-6.sean.example.com/katello/api/v2/content_views + response: + body: + string: !!binary | + H4sIAAAAAAAAA41SwW7bMAy97ysCnt0hTht087UfMGBoeykKQbGYVpgtCpTkzQ3876Vj1XWCFNhN + 5Hvkox55gEhRN1CVBYS0+wy8fsHpgaymYLMuAJmJoXKpaaQANdevc0QcoTrArocKnG4RCiA2KHTQ + oYahAMaQmhigejpATa2nYKM03usmYDFlHLqorBk5zwUY3GupmCl74hqVT95jVOg6y+RaqZgJHXKw + 5FRNaczKxI2OGKLKwMewjEdx4j6LldciZ418+baYpq/gXgpXd+SiKKweLf6Fsd0Om4ypjKmMGQw1 + Wx8XOsQv2tk3PebU2P7naW40bKn2a4mdqZ1hx25ias0oXzRKy39hsy5/XK1vrzbbVbmtyk11s109 + 3N8JPXnzP7SFqXkHs1UWp80dXbo+den37Of51CdInQ2LvR9L+9TCIBJ5oS2Z1GCWzQvL0Xwbczw1 + 6sR5dQ7qOtpusvwP9jnp8N/iCqD8vj5OKhP6tGtseEXzsTQ5+daGrH6ArPEpKNnISa4NjY2XETmF + yNRfBrPgFyBTSxEVsWJsqcNLtGF4Hr69A9j2DxC8AwAA + headers: + apipie-checksum: [83fd72067f1c96eb1196b17193cc48d0] + cache-control: ['max-age=0, private, must-revalidate'] + connection: [Keep-Alive] + content-encoding: [gzip] + content-length: ['432'] + content-security-policy: ['default-src ''self''; child-src ''self''; connect-src + ''self'' ws: wss:; img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' + ''unsafe-inline'' ''self''; style-src ''unsafe-inline'' ''self'''] + content-type: [application/json; charset=utf-8] + date: ['Wed, 25 Jul 2018 15:12:57 GMT'] + etag: [W/"e5377be671b535aa8045efc383418dc4-gzip"] + foreman_api_version: ['2'] + foreman_version: [1.17.1] + keep-alive: ['timeout=5, max=10000'] + server: [Apache/2.4.6 (CentOS)] + set-cookie: [_session_id=d0ae739667c4965f18bf9150544d03c1; path=/; secure; HttpOnly] + status: [200 OK] + strict-transport-security: [max-age=631139040; includeSubdomains] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-download-options: [noopen] + x-frame-options: [sameorigin] + x-permitted-cross-domain-policies: [none] + x-powered-by: [Phusion Passenger 4.0.53] + x-request-id: [de6c7411-e9d3-4af5-9df8-e5dbc1778354] + x-runtime: ['0.121997'] + x-xss-protection: [1; mode=block] + status: {code: 200, message: OK} +- request: + body: !!python/unicode '{"organization_id": 9, "name": "Test Product"}' + headers: + Accept: ['*/*'] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Length: ['46'] + User-Agent: [python-requests/2.18.4] + content-type: [application/json] + method: GET + uri: https://centos7-katello-3-6.sean.example.com/katello/api/v2/products + response: + body: + string: !!binary | + H4sIAAAAAAAAA2VQy07DMBC88xXWnlOUpIQ2vqF+AEiUE0KW66xSC8e2/ACFqv+OnZY2Krfd2dnd + mTlAMIEroFUBPu6ujeU9ngp07NTUZQHonHFAdVQqLSB3Yn/pjAtAD7AbgYLmA0IBxnWY6MC9gGMB + Dn1UwQN9P4DsgLYFCMtyBatlW7btevXQPJZpcdqnsEUfyIszXRQhoYrvUJ1hdoU79MJJG6TRafhE + 9tzakSgZgkIS8gl74abqSyZR09eqSbJHLZhVXE/I2UrGfBwG7sZsyUch0CfddTLR25594viPHnjI + kl9TI3VPNmawCgPeT7qT3sxK87qs1otytagbUjW0KmnVkrftZs5i3ym39A2WZJA6JgdTlD3X8odn + l+wc3hzLOuepPc9nN9HdzKZrx1kUf8YcWuNlMG5kwkQdcgAfx7tfwzLIbjUCAAA= + headers: + apipie-checksum: [83fd72067f1c96eb1196b17193cc48d0] + cache-control: ['max-age=0, private, must-revalidate'] + connection: [Keep-Alive] + content-encoding: [gzip] + content-length: ['332'] + content-security-policy: ['default-src ''self''; child-src ''self''; connect-src + ''self'' ws: wss:; img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' + ''unsafe-inline'' ''self''; style-src ''unsafe-inline'' ''self'''] + content-type: [application/json; charset=utf-8] + date: ['Wed, 25 Jul 2018 15:12:57 GMT'] + etag: [W/"e094e3b621673748cc58c93af2f043f8-gzip"] + foreman_api_version: ['2'] + foreman_version: [1.17.1] + keep-alive: ['timeout=5, max=10000'] + server: [Apache/2.4.6 (CentOS)] + set-cookie: [_session_id=ba3195263e8c61f45a40af2d518b9144; path=/; secure; HttpOnly] + status: [200 OK] + strict-transport-security: [max-age=631139040; includeSubdomains] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-download-options: [noopen] + x-frame-options: [sameorigin] + x-permitted-cross-domain-policies: [none] + x-powered-by: [Phusion Passenger 4.0.53] + x-request-id: [59358b1c-723f-4bca-894b-adaae78b2fdf] + x-runtime: ['0.158650'] + x-xss-protection: [1; mode=block] + status: {code: 200, message: OK} +- request: + body: !!python/unicode '{"product_id": 9, "name": "Test Repository"}' + headers: + Accept: ['*/*'] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Length: ['44'] + User-Agent: [python-requests/2.18.4] + content-type: [application/json] + method: GET + uri: https://centos7-katello-3-6.sean.example.com/katello/api/v2/repositories + response: + body: + string: !!binary | + H4sIAAAAAAAAA3VTyY7bMAy99ysCnuPY8TJerr0WaFFMT8VAkCU6I4xtCVqmzQT591K202nQ9mKT + IkU9vkdewGvPR+iOe3Chf3cMP+FqoGWrk2d7QGu1hW4O40gXkFvx/NvT1kN3gf4MHcx8QtiDthIp + HbgTcN2DRRdG76D7fgGhZ4+zZ/5sqDacw0T5wdLr8Oy9cV2aWjTaHQaU2nKD2ox40PaUmjCa9SNx + 0mzJSt+0TiG+MHKvXpEge0IGj+g8+2xPfFZvFNBz+kn1lttzKoLzekqXhC9WyyD86nyN9ZTX9kz1 + 1gZh1ouxh56LF5wlU5Kwq0Gt3bUZr/ohT5qHRiRlnh2TVoohKUSPZVVz3pQt3b11PPIexxtrShLL + xX4lbMW7u0OwZcPf2MyKOnIeq7T0gmHRgrpos7Zt6rJ6yOC+9tYqnbrzLJgZ+Uxy3PSS6IRVJhJ1 + y5Dcx4gi7PaVhoPK4U/PYgyerhGf27wNBxRVw3PZN0nxIIeklEIkfZX3SZ23dVnUXOYyj1o7tBsy + Lie1POi59SgZp6aAaGySrE7yanesumPWZdnu2+NHSiMB/pt0LLYkquVjbVLZGJRwm754FIRA51YK + Tzaa3fGQXd8lEjrMcU4voJ23iIxmZo6TQCsgNY2AZRON1ECM/uuMjeo+4Plpca2ZoCtyQrdYWdwz + 8bJsVzzdHHayOhhauGXfuKfV6EqKBmrEs4kEHHG5PKjNkNjT/0812A/aPRfV2BG3waOD69P1wy/D + RJa48AMAAA== + headers: + apipie-checksum: [83fd72067f1c96eb1196b17193cc48d0] + cache-control: ['max-age=0, private, must-revalidate'] + connection: [Keep-Alive] + content-encoding: [gzip] + content-length: ['577'] + content-security-policy: ['default-src ''self''; child-src ''self''; connect-src + ''self'' ws: wss:; img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' + ''unsafe-inline'' ''self''; style-src ''unsafe-inline'' ''self'''] + content-type: [application/json; charset=utf-8] + date: ['Wed, 25 Jul 2018 15:12:57 GMT'] + etag: [W/"4800e2cb797f73e5a7b98036a1a0314c-gzip"] + foreman_api_version: ['2'] + foreman_version: [1.17.1] + keep-alive: ['timeout=5, max=10000'] + server: [Apache/2.4.6 (CentOS)] + set-cookie: [_session_id=2dd21265ddaf7c182d85ad87b5621bb5; path=/; secure; HttpOnly] + status: [200 OK] + strict-transport-security: [max-age=631139040; includeSubdomains] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-download-options: [noopen] + x-frame-options: [sameorigin] + x-permitted-cross-domain-policies: [none] + x-powered-by: [Phusion Passenger 4.0.53] + x-request-id: [21a9bdb3-7aa4-4ab4-9986-5a938681537f] + x-runtime: ['0.145614'] + x-xss-protection: [1; mode=block] + status: {code: 200, message: OK} +- request: + body: !!python/unicode '{"content_view_id": 17, "name": "Test Package Content + View Filter"}' + headers: + Accept: ['*/*'] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Length: ['67'] + User-Agent: [python-requests/2.18.4] + content-type: [application/json] + method: GET + uri: https://centos7-katello-3-6.sean.example.com/katello/api/v2/content_view_filters + response: + body: + string: !!binary | + H4sIAAAAAAAAA6VWTY/bOAy991cEOsdjxx/jxNcCPS2wxaK7l2IgyBKdEWpbgiynmwb576VkxXHS + DDpAESCRSEqPIh/JnIhVlrWk2qzJMNbXjWZ7mBZg6LRJkzUBY5QhVT+2LR4AZvjrvFPGkupE6iOp + SM86IGuijAA0J2zg5LwmBoaxtQOpvp6I7Hk7DlL1pGpYO8CaSIEYiOjPVuQLDHb1mfFvCL76qHoL + vV39J+H76pNsLV67JgIGbqS2/pbJC26AWRCUoS8kTTbbKCmjtFhtimqTVnm5+vfLRzw5avEeMz7B + 0gPCurdx1Wk1SAuz017SOxsp3MNenFcNw2fOJo0yHKgetQZLoT9Io/oOT8wGBzAuEJSr0UkxzC06 + NyDspLi8zYAHV+YYwDbZyxS2TXkbtmW4iLuuhjboaNDRoHsQQ2X2rJc/mJNRd/3uVuYisUT7e6m7 + Q7vT+dvOv01T8b40XcwWQQ05mEMlIdDNRSm7jdI/czzvvb7RXEhgj9odPY4dOSNESGinxNhCgA0J + C7uZG/P+yiZ6r2TcysMU8m9wDMIe/l+wgGyeEu8peqjHupXDK4hL0rBOOzkE9BMJGFdAlFozIttA + SPtYg1SwRh0fKwPgG0qjOmWBKkMNdOoAj8zO5wd5eRBcTLtxmXi1Vg9VHPszTw0IZZgGpVt4QjbG + emz19CUQknqr+IdSMXEwWEES3dDMvj6iYvyXrA0zx5iPg1Vd7A0+G8wlt/GvFJj6HOmVX6xJjW0J + eoHFgb7LRk5Nbpewom7SaPu85VGOdI12gjdRxmvIi5Kxbb5b0CkQbsreH9BTT167pIda5dpXLSmz + XbLbbcu8eHa8uemr4RC27WPPqW4Z8uvrpW0ve0KwcHXo6hd9NwecEYGbTkdezoGUfhf8IFmxZamo + t1H2LJooF5xHdZHWUZnuyjwrmUhF6nI9gAmeMdFJD2iZeavqkypJ5qoXbxptsmCEd7lujb8Ky1WQ + yxByopFzGIYphHvjlhVW2PmaIt+QfTkprAwAipzpHROwRQuFFDC0Q0o1GNFHMooFc6OwbO+3Rnek + ylL0zq8SN279nJukYUP3Ro0aZ6Ifu8xiaVT5Xd/xhxsZFgJq/F1mg37HETy4bKwwtiNOFd+7QrU5 + dPQm9K/TbYNq/JSll6m86EKhj19nTo1/BMhvm/r2XU29yL3Z+QU/H34CmmbgO58IAAA= + headers: + apipie-checksum: [83fd72067f1c96eb1196b17193cc48d0] + cache-control: ['max-age=0, private, must-revalidate'] + connection: [Keep-Alive] + content-encoding: [gzip] + content-length: ['905'] + content-security-policy: ['default-src ''self''; child-src ''self''; connect-src + ''self'' ws: wss:; img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' + ''unsafe-inline'' ''self''; style-src ''unsafe-inline'' ''self'''] + content-type: [application/json; charset=utf-8] + date: ['Wed, 25 Jul 2018 15:12:57 GMT'] + etag: [W/"9b209ec7854215121b9efab4198e55b1-gzip"] + foreman_api_version: ['2'] + foreman_version: [1.17.1] + keep-alive: ['timeout=5, max=10000'] + server: [Apache/2.4.6 (CentOS)] + set-cookie: [_session_id=f22aaa0c9c8269ef455ed41caece1d76; path=/; secure; HttpOnly] + status: [200 OK] + strict-transport-security: [max-age=631139040; includeSubdomains] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-download-options: [noopen] + x-frame-options: [sameorigin] + x-permitted-cross-domain-policies: [none] + x-powered-by: [Phusion Passenger 4.0.53] + x-request-id: [f9a69e2f-b6f8-448f-89bb-9122570cdb9d] + x-runtime: ['0.133696'] + x-xss-protection: [1; mode=block] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: ['*/*'] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + User-Agent: [python-requests/2.18.4] + content-type: [application/json] + method: GET + uri: https://centos7-katello-3-6.sean.example.com/katello/api/v2/content_view_filters/21 + response: + body: + string: !!binary | + H4sIAAAAAAAAA6VWwW7bOBC99ysEnq1YluTY1rXAnhZosejuJTAIihw5RCSRICl3XcP/3iFFO7Lr + tAFyscWZIWf0+N6MkuRIZM/bwUrVk6phrYUZUUbuZM9aqhl/YTuwF48UpMoXM9KzDkhFvoF1ydcx + KPmsege9S/6T8D35S7YODJkRAZYbqV04vx/adka4AeZAUObwiDxbrNNslebLZLGsFnlVrpJ/v33G + nYMW7wnjY1q6x7SkOuK608pKB5eig6X3MVLgqzxtfVUNG1p3CWmU4UD1oDU4Cv1eGtV3uOMSsAfj + IaJcDd6azUiLxVlMOzrO72YgJFfmEJMtiu0I22J1DdsULuKPq6GNPhp9NPruYKjMjvXyB/M26o/f + XNs8EtNsX6a+m2w3vnDa6Y/XtHzfNZ3DJqDGO7hAJT3Bno4jSsU1Sv9c8Lyt+spzJoE7aL/1MHRo + 1EaJgTsPRUToirbRe3rdHS7X+nhlnQGgtWE9fw7XLRR/AUM7RKrB7VObY7uwNLojVZFj4lERVwu6 + M2rQqB6EwhjmsMKqRO9IuQ5raXFDdjptb4wRrcizuLpQ+rJ+FQG9dTLu5H5kygscorGH/yfkJYuH + LACMwOqhbqV9BnHmmgbTSRuzH0nM8ZoQrc4MKBIQ0t33IIOdUYf7zpjwDadRnXJAlaEGOrWHe2Gn + 0x063eXEYDyBnp3TtprPw56HBoQyTIPSLTygiOZ6aPX4IzAlDVHzH0rNiU+DwpdYhmbu+Z6C5n9L + pI05zPlgnermISCSbf4rc5nxBCO9Cg8zUiNdoBeoaaxdNhKbaEXYJmPLusnT9eOapyWqLN0I3qQF + r6Fcrhhbl5uJCqJOxtv7gKp+FRDXodmQVbHJNpv1qlw+et7c09WM2EPPqW4Z8utpDLluZTHCtw/f + drB2s2ctidz0PrI9RVKGVayDFMs1y0W9TotH0aSl4Dytl3mdrvLNqixWTOQi93dtwcTKmOhkSOiY + eatZZVWWXZqVeDNoUcQgPMsPGfxXKFcRuGHDUCF24BysHSHcGf9YocI+3mrONoqC+X0PsuEp+1Az + wrko44OA2nenyW3Q78r4CUeKBLEdcBgS37ui2nx2rCb2r+N1g2rCxwE9f0xMulAcP6+jsgbmvyL+ + MIvW75pFyzKEnbanTz8BYtz1qPgIAAA= + headers: + apipie-checksum: [83fd72067f1c96eb1196b17193cc48d0] + cache-control: ['max-age=0, private, must-revalidate'] + connection: [Keep-Alive] + content-encoding: [gzip] + content-length: ['878'] + content-security-policy: ['default-src ''self''; child-src ''self''; connect-src + ''self'' ws: wss:; img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' + ''unsafe-inline'' ''self''; style-src ''unsafe-inline'' ''self'''] + content-type: [application/json; charset=utf-8] + date: ['Wed, 25 Jul 2018 15:12:57 GMT'] + etag: [W/"fa4a07212e4174fafd1000cc501ce465-gzip"] + foreman_api_version: ['2'] + foreman_version: [1.17.1] + keep-alive: ['timeout=5, max=10000'] + server: [Apache/2.4.6 (CentOS)] + set-cookie: [_session_id=415d5787048622b31740aebe67f392b5; path=/; secure; HttpOnly] + status: [200 OK] + strict-transport-security: [max-age=631139040; includeSubdomains] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-download-options: [noopen] + x-frame-options: [sameorigin] + x-permitted-cross-domain-policies: [none] + x-powered-by: [Phusion Passenger 4.0.53] + x-request-id: [20198110-143e-455a-b37f-3672089524d3] + x-runtime: ['0.157350'] + x-xss-protection: [1; mode=block] + status: {code: 200, message: OK} +- request: + body: !!python/unicode '{"content_view_id": 17, "name": "Test Package Content + View Filter"}' + headers: + Accept: ['*/*'] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Length: ['67'] + User-Agent: [python-requests/2.18.4] + content-type: [application/json] + method: GET + uri: https://centos7-katello-3-6.sean.example.com/katello/api/v2/content_view_filters + response: + body: + string: !!binary | + H4sIAAAAAAAAA6VWTY/bOAy991cEOsdjxx/jxNcCPS2wxaK7l2IgyBKdEWpbgiynmwb576VkxXHS + DDpAESCRSEqPIh/JnIhVlrWk2qzJMNbXjWZ7mBZg6LRJkzUBY5QhVT+2LR4AZvjrvFPGkupE6iOp + SM86IGuijAA0J2zg5LwmBoaxtQOpvp6I7Hk7DlL1pGpYO8CaSIEYiOjPVuQLDHb1mfFvCL76qHoL + vV39J+H76pNsLV67JgIGbqS2/pbJC26AWRCUoS8kTTbbKCmjtFhtimqTVnm5+vfLRzw5avEeMz7B + 0gPCurdx1Wk1SAuz017SOxsp3MNenFcNw2fOJo0yHKgetQZLoT9Io/oOT8wGBzAuEJSr0UkxzC06 + NyDspLi8zYAHV+YYwDbZyxS2TXkbtmW4iLuuhjboaNDRoHsQQ2X2rJc/mJNRd/3uVuYisUT7e6m7 + Q7vT+dvOv01T8b40XcwWQQ05mEMlIdDNRSm7jdI/czzvvb7RXEhgj9odPY4dOSNESGinxNhCgA0J + C7uZG/P+yiZ6r2TcysMU8m9wDMIe/l+wgGyeEu8peqjHupXDK4hL0rBOOzkE9BMJGFdAlFozIttA + SPtYg1SwRh0fKwPgG0qjOmWBKkMNdOoAj8zO5wd5eRBcTLtxmXi1Vg9VHPszTw0IZZgGpVt4QjbG + emz19CUQknqr+IdSMXEwWEES3dDMvj6iYvyXrA0zx5iPg1Vd7A0+G8wlt/GvFJj6HOmVX6xJjW0J + eoHFgb7LRk5Nbpewom7SaPu85VGOdI12gjdRxmvIi5Kxbb5b0CkQbsreH9BTT167pIda5dpXLSmz + XbLbbcu8eHa8uemr4RC27WPPqW4Z8uvrpW0ve0KwcHXo6hd9NwecEYGbTkdezoGUfhf8IFmxZamo + t1H2LJooF5xHdZHWUZnuyjwrmUhF6nI9gAmeMdFJD2iZeavqkypJ5qoXbxptsmCEd7lujb8Ky1WQ + yxByopFzGIYphHvjlhVW2PmaIt+QfTkprAwAipzpHROwRQuFFDC0Q0o1GNFHMooFc6OwbO+3Rnek + ylL0zq8SN279nJukYUP3Ro0aZ6Ifu8xiaVT5Xd/xhxsZFgJq/F1mg37HETy4bKwwtiNOFd+7QrU5 + dPQm9K/TbYNq/JSll6m86EKhj19nTo1/BMhvm/r2XU29yL3Z+QU/H34CmmbgO58IAAA= + headers: + apipie-checksum: [83fd72067f1c96eb1196b17193cc48d0] + cache-control: ['max-age=0, private, must-revalidate'] + connection: [Keep-Alive] + content-encoding: [gzip] + content-length: ['905'] + content-security-policy: ['default-src ''self''; child-src ''self''; connect-src + ''self'' ws: wss:; img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' + ''unsafe-inline'' ''self''; style-src ''unsafe-inline'' ''self'''] + content-type: [application/json; charset=utf-8] + date: ['Wed, 25 Jul 2018 15:12:58 GMT'] + etag: [W/"9b209ec7854215121b9efab4198e55b1-gzip"] + foreman_api_version: ['2'] + foreman_version: [1.17.1] + keep-alive: ['timeout=5, max=10000'] + server: [Apache/2.4.6 (CentOS)] + set-cookie: [_session_id=8f548d8c254333a0d9dbcd209d9f97a4; path=/; secure; HttpOnly] + status: [200 OK] + strict-transport-security: [max-age=631139040; includeSubdomains] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-download-options: [noopen] + x-frame-options: [sameorigin] + x-permitted-cross-domain-policies: [none] + x-powered-by: [Phusion Passenger 4.0.53] + x-request-id: [8681ddb7-c6b5-4a6c-9b6d-710b8a699380] + x-runtime: ['0.134786'] + x-xss-protection: [1; mode=block] + status: {code: 200, message: OK} +- request: + body: !!python/unicode '{"content_view_filter_id": 21, "name": "bear"}' + headers: + Accept: ['*/*'] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Length: ['46'] + User-Agent: [python-requests/2.18.4] + content-type: [application/json] + method: GET + uri: https://centos7-katello-3-6.sean.example.com/katello/api/v2/content_view_filters/21/rules + response: + body: + string: !!binary | + H4sIAAAAAAAAA32OQQrCMBBF956i/HWEJlgq2XoFXYmUtB21EBOZpIqU3t1RQXfu5g/vz5sJOWbn + YbVCGttfuLoTfQbi5hNMqUDMkWHD6L0UyHF3/qbIGXZC+4DF0EMhck8Cw6UOswJTGn1OsPsJXQyZ + Qm5uA92b4+CzWKRjjRhvxGmIQYpajry2tUJwF3kBrShl2TG5TH3jxAhT6vWyrJemKnRltbGrdbHb + bgQbr/0frFq9sfkwL567ZM8qBwEAAA== + headers: + apipie-checksum: [83fd72067f1c96eb1196b17193cc48d0] + cache-control: ['max-age=0, private, must-revalidate'] + connection: [Keep-Alive] + content-encoding: [gzip] + content-length: ['193'] + content-security-policy: ['default-src ''self''; child-src ''self''; connect-src + ''self'' ws: wss:; img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' + ''unsafe-inline'' ''self''; style-src ''unsafe-inline'' ''self'''] + content-type: [application/json; charset=utf-8] + date: ['Wed, 25 Jul 2018 15:12:58 GMT'] + etag: [W/"9daf71bed20ad43d79aebf771f6e4756-gzip"] + foreman_api_version: ['2'] + foreman_version: [1.17.1] + keep-alive: ['timeout=5, max=10000'] + server: [Apache/2.4.6 (CentOS)] + set-cookie: [_session_id=e8c080aefa5b37f73bf9f5c021c2c19c; path=/; secure; HttpOnly] + status: [200 OK] + strict-transport-security: [max-age=631139040; includeSubdomains] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-download-options: [noopen] + x-frame-options: [sameorigin] + x-permitted-cross-domain-policies: [none] + x-powered-by: [Phusion Passenger 4.0.53] + x-request-id: [0c377d80-9e27-4c60-8b95-ffbfd99fc53c] + x-runtime: ['0.067801'] + x-xss-protection: [1; mode=block] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: ['*/*'] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + User-Agent: [python-requests/2.18.4] + content-type: [application/json] + method: GET + uri: https://centos7-katello-3-6.sean.example.com/katello/api/v2/content_view_filters/21/rules/7 + response: + body: + string: !!binary | + H4sIAAAAAAAAA33KQQqDMBAAwHtfEfacgBsMkVz7hfYcolkhYGNJt3oQ/270AV6HEWKDYc5Mmf2S + aPVjmpiKTxGcRgkLlV+aMzhAkHCqlZDDh6r0FErFoVBgij5wNd1gpxqrtBFoHGrXduL9etb2/8ab + Ztqr7Y8DzcIS5ZEAAAA= + headers: + apipie-checksum: [83fd72067f1c96eb1196b17193cc48d0] + cache-control: ['max-age=0, private, must-revalidate'] + connection: [Keep-Alive] + content-encoding: [gzip] + content-length: ['128'] + content-security-policy: ['default-src ''self''; child-src ''self''; connect-src + ''self'' ws: wss:; img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' + ''unsafe-inline'' ''self''; style-src ''unsafe-inline'' ''self'''] + content-type: [application/json; charset=utf-8] + date: ['Wed, 25 Jul 2018 15:12:58 GMT'] + etag: [W/"d8c5ece4066f321eee7966a2f1782ee3-gzip"] + foreman_api_version: ['2'] + foreman_version: [1.17.1] + keep-alive: ['timeout=5, max=10000'] + server: [Apache/2.4.6 (CentOS)] + set-cookie: [_session_id=bb841b11dc74a14b5ec1b9dedae61011; path=/; secure; HttpOnly] + status: [200 OK] + strict-transport-security: [max-age=631139040; includeSubdomains] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-download-options: [noopen] + x-frame-options: [sameorigin] + x-permitted-cross-domain-policies: [none] + x-powered-by: [Phusion Passenger 4.0.53] + x-request-id: [9dd72ef5-161e-4d41-be8e-ec50b11b22fe] + x-runtime: ['0.060552'] + x-xss-protection: [1; mode=block] + status: {code: 200, message: OK} +version: 1 diff --git a/test/test_playbooks/fixtures/content_view_filter-9.yml b/test/test_playbooks/fixtures/content_view_filter-9.yml new file mode 100644 index 0000000000..fd2a42b89d --- /dev/null +++ b/test/test_playbooks/fixtures/content_view_filter-9.yml @@ -0,0 +1,566 @@ +interactions: +- request: + body: !!python/unicode '{}' + headers: + Accept: ['*/*'] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Length: ['2'] + User-Agent: [python-requests/2.18.4] + content-type: [application/json] + method: GET + uri: https://centos7-katello-3-6.sean.example.com/katello/api/v2/ping + response: + body: + string: !!binary | + H4sIAAAAAAAAA43NPQqAMAwF4N1TSGYXURS8TAlasdg/mtRFendtN6c6hff4HmnbG4iRI8EC7oQO + SIZLrfLNN/iofb5fscWArJwVJlfDDKkrUmDko8b7KfMV7aalV7bK+w//96JsdhekQSsY6aTqZISU + UvMAccGkUg4BAAA= + headers: + apipie-checksum: [83fd72067f1c96eb1196b17193cc48d0] + cache-control: ['max-age=0, private, must-revalidate'] + connection: [Keep-Alive] + content-encoding: [gzip] + content-length: ['125'] + content-security-policy: ['default-src ''self''; child-src ''self''; connect-src + ''self'' ws: wss:; img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' + ''unsafe-inline'' ''self''; style-src ''unsafe-inline'' ''self'''] + content-type: [application/json; charset=utf-8] + date: ['Wed, 25 Jul 2018 15:12:59 GMT'] + etag: [W/"ebed1459faf3fd8837d9c12a61adcc9f-gzip"] + foreman_api_version: ['2'] + foreman_version: [1.17.1] + keep-alive: ['timeout=5, max=10000'] + server: [Apache/2.4.6 (CentOS)] + set-cookie: [_session_id=c4089e0360dadc390691aae2ccb53aec; path=/; secure; HttpOnly] + status: [200 OK] + strict-transport-security: [max-age=631139040; includeSubdomains] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-download-options: [noopen] + x-frame-options: [sameorigin] + x-permitted-cross-domain-policies: [none] + x-powered-by: [Phusion Passenger 4.0.53] + x-request-id: [940d2367-2566-47f7-b191-6522a41cda9e] + x-runtime: ['0.137448'] + x-xss-protection: [1; mode=block] + status: {code: 200, message: OK} +- request: + body: !!python/unicode '{"search": "name=\"Test Organization\""}' + headers: + Accept: ['*/*'] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Length: ['40'] + User-Agent: [python-requests/2.18.4] + content-type: [application/json] + method: GET + uri: https://centos7-katello-3-6.sean.example.com/katello/api/v2/organizations + response: + body: + string: !!binary | + H4sIAAAAAAAAA42PwWrDMAyG73kKo3MKcdjYathpD7BLd2pHUGLRGdwkyMqhC3n3qU7GxmCwm77P + v/mluTAGZBCM4Exd3ihN7ZewWYx4pm8gbjZRV2uekLt3ZejxQk8nOFAS88Jn7MMHShj6E8CaHFg0 + N+us1F517qcYy5UH9sSbUrPkL0xpipJUH2eI2JKulQuanwVQQseEQr5BbYC6so+76mFX3Rt752rr + 7N68Hp41No3+P7Hgwe3LfNDWZ371SZD415un1HEYM7nbOctbsRSfKnwYS2sBAAA= + headers: + apipie-checksum: [83fd72067f1c96eb1196b17193cc48d0] + cache-control: ['max-age=0, private, must-revalidate'] + connection: [Keep-Alive] + content-encoding: [gzip] + content-length: ['218'] + content-security-policy: ['default-src ''self''; child-src ''self''; connect-src + ''self'' ws: wss:; img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' + ''unsafe-inline'' ''self''; style-src ''unsafe-inline'' ''self'''] + content-type: [application/json; charset=utf-8] + date: ['Wed, 25 Jul 2018 15:12:59 GMT'] + etag: [W/"33eb541f7daf03e7d506a757939a7889-gzip"] + foreman_api_version: ['2'] + foreman_version: [1.17.1] + keep-alive: ['timeout=5, max=10000'] + server: [Apache/2.4.6 (CentOS)] + set-cookie: [_session_id=259fe42f704540f5216673c02ada2e99; path=/; secure; HttpOnly] + status: [200 OK] + strict-transport-security: [max-age=631139040; includeSubdomains] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-download-options: [noopen] + x-frame-options: [sameorigin] + x-permitted-cross-domain-policies: [none] + x-powered-by: [Phusion Passenger 4.0.53] + x-request-id: [a236cf4c-1748-421e-9a0e-3e1d89d01a99] + x-runtime: ['0.061859'] + x-xss-protection: [1; mode=block] + status: {code: 200, message: OK} +- request: + body: !!python/unicode '{"organization_id": 9, "name": "Test Content View"}' + headers: + Accept: ['*/*'] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Length: ['51'] + User-Agent: [python-requests/2.18.4] + content-type: [application/json] + method: GET + uri: https://centos7-katello-3-6.sean.example.com/katello/api/v2/content_views + response: + body: + string: !!binary | + H4sIAAAAAAAAA41SwW7bMAy97ysCnt0hTht087UfMGBoeykKQbGYVpgtCpTkzQ3876Vj1XWCFNhN + 5Hvkox55gEhRN1CVBYS0+wy8fsHpgaymYLMuAJmJoXKpaaQANdevc0QcoTrArocKnG4RCiA2KHTQ + oYahAMaQmhigejpATa2nYKM03usmYDFlHLqorBk5zwUY3GupmCl74hqVT95jVOg6y+RaqZgJHXKw + 5FRNaczKxI2OGKLKwMewjEdx4j6LldciZ418+baYpq/gXgpXd+SiKKweLf6Fsd0Om4ypjKmMGQw1 + Wx8XOsQv2tk3PebU2P7naW40bKn2a4mdqZ1hx25ias0oXzRKy39hsy5/XK1vrzbbVbmtyk11s109 + 3N8JPXnzP7SFqXkHs1UWp80dXbo+den37Of51CdInQ2LvR9L+9TCIBJ5oS2Z1GCWzQvL0Xwbczw1 + 6sR5dQ7qOtpusvwP9jnp8N/iCqD8vj5OKhP6tGtseEXzsTQ5+daGrH6ArPEpKNnISa4NjY2XETmF + yNRfBrPgFyBTSxEVsWJsqcNLtGF4Hr69A9j2DxC8AwAA + headers: + apipie-checksum: [83fd72067f1c96eb1196b17193cc48d0] + cache-control: ['max-age=0, private, must-revalidate'] + connection: [Keep-Alive] + content-encoding: [gzip] + content-length: ['432'] + content-security-policy: ['default-src ''self''; child-src ''self''; connect-src + ''self'' ws: wss:; img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' + ''unsafe-inline'' ''self''; style-src ''unsafe-inline'' ''self'''] + content-type: [application/json; charset=utf-8] + date: ['Wed, 25 Jul 2018 15:12:59 GMT'] + etag: [W/"e5377be671b535aa8045efc383418dc4-gzip"] + foreman_api_version: ['2'] + foreman_version: [1.17.1] + keep-alive: ['timeout=5, max=10000'] + server: [Apache/2.4.6 (CentOS)] + set-cookie: [_session_id=0bb68a9136e75f7cb7586e82b5f9440e; path=/; secure; HttpOnly] + status: [200 OK] + strict-transport-security: [max-age=631139040; includeSubdomains] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-download-options: [noopen] + x-frame-options: [sameorigin] + x-permitted-cross-domain-policies: [none] + x-powered-by: [Phusion Passenger 4.0.53] + x-request-id: [3922aa9b-f6f6-4934-9785-17b916965e49] + x-runtime: ['0.116467'] + x-xss-protection: [1; mode=block] + status: {code: 200, message: OK} +- request: + body: !!python/unicode '{"organization_id": 9, "name": "Test Product"}' + headers: + Accept: ['*/*'] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Length: ['46'] + User-Agent: [python-requests/2.18.4] + content-type: [application/json] + method: GET + uri: https://centos7-katello-3-6.sean.example.com/katello/api/v2/products + response: + body: + string: !!binary | + H4sIAAAAAAAAA2VQy07DMBC88xXWnlOUpIQ2vqF+AEiUE0KW66xSC8e2/ACFqv+OnZY2Krfd2dnd + mTlAMIEroFUBPu6ujeU9ngp07NTUZQHonHFAdVQqLSB3Yn/pjAtAD7AbgYLmA0IBxnWY6MC9gGMB + Dn1UwQN9P4DsgLYFCMtyBatlW7btevXQPJZpcdqnsEUfyIszXRQhoYrvUJ1hdoU79MJJG6TRafhE + 9tzakSgZgkIS8gl74abqSyZR09eqSbJHLZhVXE/I2UrGfBwG7sZsyUch0CfddTLR25594viPHnjI + kl9TI3VPNmawCgPeT7qT3sxK87qs1otytagbUjW0KmnVkrftZs5i3ym39A2WZJA6JgdTlD3X8odn + l+wc3hzLOuepPc9nN9HdzKZrx1kUf8YcWuNlMG5kwkQdcgAfx7tfwzLIbjUCAAA= + headers: + apipie-checksum: [83fd72067f1c96eb1196b17193cc48d0] + cache-control: ['max-age=0, private, must-revalidate'] + connection: [Keep-Alive] + content-encoding: [gzip] + content-length: ['332'] + content-security-policy: ['default-src ''self''; child-src ''self''; connect-src + ''self'' ws: wss:; img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' + ''unsafe-inline'' ''self''; style-src ''unsafe-inline'' ''self'''] + content-type: [application/json; charset=utf-8] + date: ['Wed, 25 Jul 2018 15:13:00 GMT'] + etag: [W/"e094e3b621673748cc58c93af2f043f8-gzip"] + foreman_api_version: ['2'] + foreman_version: [1.17.1] + keep-alive: ['timeout=5, max=10000'] + server: [Apache/2.4.6 (CentOS)] + set-cookie: [_session_id=aae90434e6098711ff4fd47afb41f686; path=/; secure; HttpOnly] + status: [200 OK] + strict-transport-security: [max-age=631139040; includeSubdomains] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-download-options: [noopen] + x-frame-options: [sameorigin] + x-permitted-cross-domain-policies: [none] + x-powered-by: [Phusion Passenger 4.0.53] + x-request-id: [43c931d5-78d5-4973-bce0-36246ee28bcf] + x-runtime: ['0.113047'] + x-xss-protection: [1; mode=block] + status: {code: 200, message: OK} +- request: + body: !!python/unicode '{"product_id": 9, "name": "Test Repository"}' + headers: + Accept: ['*/*'] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Length: ['44'] + User-Agent: [python-requests/2.18.4] + content-type: [application/json] + method: GET + uri: https://centos7-katello-3-6.sean.example.com/katello/api/v2/repositories + response: + body: + string: !!binary | + H4sIAAAAAAAAA3VTyY7bMAy99ysCnuPY8TJerr0WaFFMT8VAkCU6I4xtCVqmzQT591K202nQ9mKT + IkU9vkdewGvPR+iOe3Chf3cMP+FqoGWrk2d7QGu1hW4O40gXkFvx/NvT1kN3gf4MHcx8QtiDthIp + HbgTcN2DRRdG76D7fgGhZ4+zZ/5sqDacw0T5wdLr8Oy9cV2aWjTaHQaU2nKD2ox40PaUmjCa9SNx + 0mzJSt+0TiG+MHKvXpEge0IGj+g8+2xPfFZvFNBz+kn1lttzKoLzekqXhC9WyyD86nyN9ZTX9kz1 + 1gZh1ouxh56LF5wlU5Kwq0Gt3bUZr/ohT5qHRiRlnh2TVoohKUSPZVVz3pQt3b11PPIexxtrShLL + xX4lbMW7u0OwZcPf2MyKOnIeq7T0gmHRgrpos7Zt6rJ6yOC+9tYqnbrzLJgZ+Uxy3PSS6IRVJhJ1 + y5Dcx4gi7PaVhoPK4U/PYgyerhGf27wNBxRVw3PZN0nxIIeklEIkfZX3SZ23dVnUXOYyj1o7tBsy + Lie1POi59SgZp6aAaGySrE7yanesumPWZdnu2+NHSiMB/pt0LLYkquVjbVLZGJRwm754FIRA51YK + Tzaa3fGQXd8lEjrMcU4voJ23iIxmZo6TQCsgNY2AZRON1ECM/uuMjeo+4Plpca2ZoCtyQrdYWdwz + 8bJsVzzdHHayOhhauGXfuKfV6EqKBmrEs4kEHHG5PKjNkNjT/0812A/aPRfV2BG3waOD69P1wy/D + RJa48AMAAA== + headers: + apipie-checksum: [83fd72067f1c96eb1196b17193cc48d0] + cache-control: ['max-age=0, private, must-revalidate'] + connection: [Keep-Alive] + content-encoding: [gzip] + content-length: ['577'] + content-security-policy: ['default-src ''self''; child-src ''self''; connect-src + ''self'' ws: wss:; img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' + ''unsafe-inline'' ''self''; style-src ''unsafe-inline'' ''self'''] + content-type: [application/json; charset=utf-8] + date: ['Wed, 25 Jul 2018 15:13:00 GMT'] + etag: [W/"4800e2cb797f73e5a7b98036a1a0314c-gzip"] + foreman_api_version: ['2'] + foreman_version: [1.17.1] + keep-alive: ['timeout=5, max=10000'] + server: [Apache/2.4.6 (CentOS)] + set-cookie: [_session_id=43eb5c52039a7429067cdd6cb231f7c5; path=/; secure; HttpOnly] + status: [200 OK] + strict-transport-security: [max-age=631139040; includeSubdomains] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-download-options: [noopen] + x-frame-options: [sameorigin] + x-permitted-cross-domain-policies: [none] + x-powered-by: [Phusion Passenger 4.0.53] + x-request-id: [50b5b18e-ddf4-4a6c-8b5b-8a1d44b22582] + x-runtime: ['0.107550'] + x-xss-protection: [1; mode=block] + status: {code: 200, message: OK} +- request: + body: !!python/unicode '{"content_view_id": 17, "name": "Test Package Content + View Filter"}' + headers: + Accept: ['*/*'] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Length: ['67'] + User-Agent: [python-requests/2.18.4] + content-type: [application/json] + method: GET + uri: https://centos7-katello-3-6.sean.example.com/katello/api/v2/content_view_filters + response: + body: + string: !!binary | + H4sIAAAAAAAAA6VWTY/bOAy991cEOsdjxx/jxNcCPS2wxaK7l2IgyBKdEWpbgiynmwb576VkxXHS + DDpAESCRSEqPIh/JnIhVlrWk2qzJMNbXjWZ7mBZg6LRJkzUBY5QhVT+2LR4AZvjrvFPGkupE6iOp + SM86IGuijAA0J2zg5LwmBoaxtQOpvp6I7Hk7DlL1pGpYO8CaSIEYiOjPVuQLDHb1mfFvCL76qHoL + vV39J+H76pNsLV67JgIGbqS2/pbJC26AWRCUoS8kTTbbKCmjtFhtimqTVnm5+vfLRzw5avEeMz7B + 0gPCurdx1Wk1SAuz017SOxsp3MNenFcNw2fOJo0yHKgetQZLoT9Io/oOT8wGBzAuEJSr0UkxzC06 + NyDspLi8zYAHV+YYwDbZyxS2TXkbtmW4iLuuhjboaNDRoHsQQ2X2rJc/mJNRd/3uVuYisUT7e6m7 + Q7vT+dvOv01T8b40XcwWQQ05mEMlIdDNRSm7jdI/czzvvb7RXEhgj9odPY4dOSNESGinxNhCgA0J + C7uZG/P+yiZ6r2TcysMU8m9wDMIe/l+wgGyeEu8peqjHupXDK4hL0rBOOzkE9BMJGFdAlFozIttA + SPtYg1SwRh0fKwPgG0qjOmWBKkMNdOoAj8zO5wd5eRBcTLtxmXi1Vg9VHPszTw0IZZgGpVt4QjbG + emz19CUQknqr+IdSMXEwWEES3dDMvj6iYvyXrA0zx5iPg1Vd7A0+G8wlt/GvFJj6HOmVX6xJjW0J + eoHFgb7LRk5Nbpewom7SaPu85VGOdI12gjdRxmvIi5Kxbb5b0CkQbsreH9BTT167pIda5dpXLSmz + XbLbbcu8eHa8uemr4RC27WPPqW4Z8uvrpW0ve0KwcHXo6hd9NwecEYGbTkdezoGUfhf8IFmxZamo + t1H2LJooF5xHdZHWUZnuyjwrmUhF6nI9gAmeMdFJD2iZeavqkypJ5qoXbxptsmCEd7lujb8Ky1WQ + yxByopFzGIYphHvjlhVW2PmaIt+QfTkprAwAipzpHROwRQuFFDC0Q0o1GNFHMooFc6OwbO+3Rnek + ylL0zq8SN279nJukYUP3Ro0aZ6Ifu8xiaVT5Xd/xhxsZFgJq/F1mg37HETy4bKwwtiNOFd+7QrU5 + dPQm9K/TbYNq/JSll6m86EKhj19nTo1/BMhvm/r2XU29yL3Z+QU/H34CmmbgO58IAAA= + headers: + apipie-checksum: [83fd72067f1c96eb1196b17193cc48d0] + cache-control: ['max-age=0, private, must-revalidate'] + connection: [Keep-Alive] + content-encoding: [gzip] + content-length: ['905'] + content-security-policy: ['default-src ''self''; child-src ''self''; connect-src + ''self'' ws: wss:; img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' + ''unsafe-inline'' ''self''; style-src ''unsafe-inline'' ''self'''] + content-type: [application/json; charset=utf-8] + date: ['Wed, 25 Jul 2018 15:13:00 GMT'] + etag: [W/"9b209ec7854215121b9efab4198e55b1-gzip"] + foreman_api_version: ['2'] + foreman_version: [1.17.1] + keep-alive: ['timeout=5, max=10000'] + server: [Apache/2.4.6 (CentOS)] + set-cookie: [_session_id=8ca17f5d4dc82971874c8295047748f6; path=/; secure; HttpOnly] + status: [200 OK] + strict-transport-security: [max-age=631139040; includeSubdomains] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-download-options: [noopen] + x-frame-options: [sameorigin] + x-permitted-cross-domain-policies: [none] + x-powered-by: [Phusion Passenger 4.0.53] + x-request-id: [4cb2c16b-1fe3-47fa-a288-b4e9df872839] + x-runtime: ['0.127221'] + x-xss-protection: [1; mode=block] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: ['*/*'] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + User-Agent: [python-requests/2.18.4] + content-type: [application/json] + method: GET + uri: https://centos7-katello-3-6.sean.example.com/katello/api/v2/content_view_filters/21 + response: + body: + string: !!binary | + H4sIAAAAAAAAA6VWwW7bOBC99ysEnq1YluTY1rXAnhZosejuJTAIihw5RCSRICl3XcP/3iFFO7Lr + tAFyscWZIWf0+N6MkuRIZM/bwUrVk6phrYUZUUbuZM9aqhl/YTuwF48UpMoXM9KzDkhFvoF1ydcx + KPmsege9S/6T8D35S7YODJkRAZYbqV04vx/adka4AeZAUObwiDxbrNNslebLZLGsFnlVrpJ/v33G + nYMW7wnjY1q6x7SkOuK608pKB5eig6X3MVLgqzxtfVUNG1p3CWmU4UD1oDU4Cv1eGtV3uOMSsAfj + IaJcDd6azUiLxVlMOzrO72YgJFfmEJMtiu0I22J1DdsULuKPq6GNPhp9NPruYKjMjvXyB/M26o/f + XNs8EtNsX6a+m2w3vnDa6Y/XtHzfNZ3DJqDGO7hAJT3Bno4jSsU1Sv9c8Lyt+spzJoE7aL/1MHRo + 1EaJgTsPRUToirbRe3rdHS7X+nhlnQGgtWE9fw7XLRR/AUM7RKrB7VObY7uwNLojVZFj4lERVwu6 + M2rQqB6EwhjmsMKqRO9IuQ5raXFDdjptb4wRrcizuLpQ+rJ+FQG9dTLu5H5kygscorGH/yfkJYuH + LACMwOqhbqV9BnHmmgbTSRuzH0nM8ZoQrc4MKBIQ0t33IIOdUYf7zpjwDadRnXJAlaEGOrWHe2Gn + 0x063eXEYDyBnp3TtprPw56HBoQyTIPSLTygiOZ6aPX4IzAlDVHzH0rNiU+DwpdYhmbu+Z6C5n9L + pI05zPlgnermISCSbf4rc5nxBCO9Cg8zUiNdoBeoaaxdNhKbaEXYJmPLusnT9eOapyWqLN0I3qQF + r6Fcrhhbl5uJCqJOxtv7gKp+FRDXodmQVbHJNpv1qlw+et7c09WM2EPPqW4Z8utpDLluZTHCtw/f + drB2s2ctidz0PrI9RVKGVayDFMs1y0W9TotH0aSl4Dytl3mdrvLNqixWTOQi93dtwcTKmOhkSOiY + eatZZVWWXZqVeDNoUcQgPMsPGfxXKFcRuGHDUCF24BysHSHcGf9YocI+3mrONoqC+X0PsuEp+1Az + wrko44OA2nenyW3Q78r4CUeKBLEdcBgS37ui2nx2rCb2r+N1g2rCxwE9f0xMulAcP6+jsgbmvyL+ + MIvW75pFyzKEnbanTz8BYtz1qPgIAAA= + headers: + apipie-checksum: [83fd72067f1c96eb1196b17193cc48d0] + cache-control: ['max-age=0, private, must-revalidate'] + connection: [Keep-Alive] + content-encoding: [gzip] + content-length: ['878'] + content-security-policy: ['default-src ''self''; child-src ''self''; connect-src + ''self'' ws: wss:; img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' + ''unsafe-inline'' ''self''; style-src ''unsafe-inline'' ''self'''] + content-type: [application/json; charset=utf-8] + date: ['Wed, 25 Jul 2018 15:13:00 GMT'] + etag: [W/"fa4a07212e4174fafd1000cc501ce465-gzip"] + foreman_api_version: ['2'] + foreman_version: [1.17.1] + keep-alive: ['timeout=5, max=10000'] + server: [Apache/2.4.6 (CentOS)] + set-cookie: [_session_id=61f5c8cdbdf47ece274833d4df616a43; path=/; secure; HttpOnly] + status: [200 OK] + strict-transport-security: [max-age=631139040; includeSubdomains] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-download-options: [noopen] + x-frame-options: [sameorigin] + x-permitted-cross-domain-policies: [none] + x-powered-by: [Phusion Passenger 4.0.53] + x-request-id: [146f1e77-666c-4c12-8447-89442ff5026b] + x-runtime: ['0.140467'] + x-xss-protection: [1; mode=block] + status: {code: 200, message: OK} +- request: + body: !!python/unicode '{"content_view_id": 17, "name": "Test Package Content + View Filter"}' + headers: + Accept: ['*/*'] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Length: ['67'] + User-Agent: [python-requests/2.18.4] + content-type: [application/json] + method: GET + uri: https://centos7-katello-3-6.sean.example.com/katello/api/v2/content_view_filters + response: + body: + string: !!binary | + H4sIAAAAAAAAA6VWTY/bOAy991cEOsdjxx/jxNcCPS2wxaK7l2IgyBKdEWpbgiynmwb576VkxXHS + DDpAESCRSEqPIh/JnIhVlrWk2qzJMNbXjWZ7mBZg6LRJkzUBY5QhVT+2LR4AZvjrvFPGkupE6iOp + SM86IGuijAA0J2zg5LwmBoaxtQOpvp6I7Hk7DlL1pGpYO8CaSIEYiOjPVuQLDHb1mfFvCL76qHoL + vV39J+H76pNsLV67JgIGbqS2/pbJC26AWRCUoS8kTTbbKCmjtFhtimqTVnm5+vfLRzw5avEeMz7B + 0gPCurdx1Wk1SAuz017SOxsp3MNenFcNw2fOJo0yHKgetQZLoT9Io/oOT8wGBzAuEJSr0UkxzC06 + NyDspLi8zYAHV+YYwDbZyxS2TXkbtmW4iLuuhjboaNDRoHsQQ2X2rJc/mJNRd/3uVuYisUT7e6m7 + Q7vT+dvOv01T8b40XcwWQQ05mEMlIdDNRSm7jdI/czzvvb7RXEhgj9odPY4dOSNESGinxNhCgA0J + C7uZG/P+yiZ6r2TcysMU8m9wDMIe/l+wgGyeEu8peqjHupXDK4hL0rBOOzkE9BMJGFdAlFozIttA + SPtYg1SwRh0fKwPgG0qjOmWBKkMNdOoAj8zO5wd5eRBcTLtxmXi1Vg9VHPszTw0IZZgGpVt4QjbG + emz19CUQknqr+IdSMXEwWEES3dDMvj6iYvyXrA0zx5iPg1Vd7A0+G8wlt/GvFJj6HOmVX6xJjW0J + eoHFgb7LRk5Nbpewom7SaPu85VGOdI12gjdRxmvIi5Kxbb5b0CkQbsreH9BTT167pIda5dpXLSmz + XbLbbcu8eHa8uemr4RC27WPPqW4Z8uvrpW0ve0KwcHXo6hd9NwecEYGbTkdezoGUfhf8IFmxZamo + t1H2LJooF5xHdZHWUZnuyjwrmUhF6nI9gAmeMdFJD2iZeavqkypJ5qoXbxptsmCEd7lujb8Ky1WQ + yxByopFzGIYphHvjlhVW2PmaIt+QfTkprAwAipzpHROwRQuFFDC0Q0o1GNFHMooFc6OwbO+3Rnek + ylL0zq8SN279nJukYUP3Ro0aZ6Ifu8xiaVT5Xd/xhxsZFgJq/F1mg37HETy4bKwwtiNOFd+7QrU5 + dPQm9K/TbYNq/JSll6m86EKhj19nTo1/BMhvm/r2XU29yL3Z+QU/H34CmmbgO58IAAA= + headers: + apipie-checksum: [83fd72067f1c96eb1196b17193cc48d0] + cache-control: ['max-age=0, private, must-revalidate'] + connection: [Keep-Alive] + content-encoding: [gzip] + content-length: ['905'] + content-security-policy: ['default-src ''self''; child-src ''self''; connect-src + ''self'' ws: wss:; img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' + ''unsafe-inline'' ''self''; style-src ''unsafe-inline'' ''self'''] + content-type: [application/json; charset=utf-8] + date: ['Wed, 25 Jul 2018 15:13:00 GMT'] + etag: [W/"9b209ec7854215121b9efab4198e55b1-gzip"] + foreman_api_version: ['2'] + foreman_version: [1.17.1] + keep-alive: ['timeout=5, max=10000'] + server: [Apache/2.4.6 (CentOS)] + set-cookie: [_session_id=824694d20a1e19a6ff05dbaf1e502b93; path=/; secure; HttpOnly] + status: [200 OK] + strict-transport-security: [max-age=631139040; includeSubdomains] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-download-options: [noopen] + x-frame-options: [sameorigin] + x-permitted-cross-domain-policies: [none] + x-powered-by: [Phusion Passenger 4.0.53] + x-request-id: [a5d32c94-c54f-477d-87e1-ea4e32501120] + x-runtime: ['0.132118'] + x-xss-protection: [1; mode=block] + status: {code: 200, message: OK} +- request: + body: !!python/unicode '{"content_view_filter_id": 21, "name": "bear"}' + headers: + Accept: ['*/*'] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Length: ['46'] + User-Agent: [python-requests/2.18.4] + content-type: [application/json] + method: GET + uri: https://centos7-katello-3-6.sean.example.com/katello/api/v2/content_view_filters/21/rules + response: + body: + string: !!binary | + H4sIAAAAAAAAA32OQQrCMBBF956i/HWEJlgq2XoFXYmUtB21EBOZpIqU3t1RQXfu5g/vz5sJOWbn + YbVCGttfuLoTfQbi5hNMqUDMkWHD6L0UyHF3/qbIGXZC+4DF0EMhck8Cw6UOswJTGn1OsPsJXQyZ + Qm5uA92b4+CzWKRjjRhvxGmIQYpajry2tUJwF3kBrShl2TG5TH3jxAhT6vWyrJemKnRltbGrdbHb + bgQbr/0frFq9sfkwL567ZM8qBwEAAA== + headers: + apipie-checksum: [83fd72067f1c96eb1196b17193cc48d0] + cache-control: ['max-age=0, private, must-revalidate'] + connection: [Keep-Alive] + content-encoding: [gzip] + content-length: ['193'] + content-security-policy: ['default-src ''self''; child-src ''self''; connect-src + ''self'' ws: wss:; img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' + ''unsafe-inline'' ''self''; style-src ''unsafe-inline'' ''self'''] + content-type: [application/json; charset=utf-8] + date: ['Wed, 25 Jul 2018 15:13:00 GMT'] + etag: [W/"9daf71bed20ad43d79aebf771f6e4756-gzip"] + foreman_api_version: ['2'] + foreman_version: [1.17.1] + keep-alive: ['timeout=5, max=10000'] + server: [Apache/2.4.6 (CentOS)] + set-cookie: [_session_id=2f675516205a31ddac98ef21f62dcfe5; path=/; secure; HttpOnly] + status: [200 OK] + strict-transport-security: [max-age=631139040; includeSubdomains] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-download-options: [noopen] + x-frame-options: [sameorigin] + x-permitted-cross-domain-policies: [none] + x-powered-by: [Phusion Passenger 4.0.53] + x-request-id: [70b3fc55-2b99-495c-b22b-2d22df15d8f2] + x-runtime: ['0.049769'] + x-xss-protection: [1; mode=block] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: ['*/*'] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + User-Agent: [python-requests/2.18.4] + content-type: [application/json] + method: GET + uri: https://centos7-katello-3-6.sean.example.com/katello/api/v2/content_view_filters/21/rules/7 + response: + body: + string: !!binary | + H4sIAAAAAAAAA33KQQqDMBAAwHtfEfacgBsMkVz7hfYcolkhYGNJt3oQ/270AV6HEWKDYc5Mmf2S + aPVjmpiKTxGcRgkLlV+aMzhAkHCqlZDDh6r0FErFoVBgij5wNd1gpxqrtBFoHGrXduL9etb2/8ab + Ztqr7Y8DzcIS5ZEAAAA= + headers: + apipie-checksum: [83fd72067f1c96eb1196b17193cc48d0] + cache-control: ['max-age=0, private, must-revalidate'] + connection: [Keep-Alive] + content-encoding: [gzip] + content-length: ['128'] + content-security-policy: ['default-src ''self''; child-src ''self''; connect-src + ''self'' ws: wss:; img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' + ''unsafe-inline'' ''self''; style-src ''unsafe-inline'' ''self'''] + content-type: [application/json; charset=utf-8] + date: ['Wed, 25 Jul 2018 15:13:00 GMT'] + etag: [W/"d8c5ece4066f321eee7966a2f1782ee3-gzip"] + foreman_api_version: ['2'] + foreman_version: [1.17.1] + keep-alive: ['timeout=5, max=10000'] + server: [Apache/2.4.6 (CentOS)] + set-cookie: [_session_id=c79463dd9d32cacb4ef88d8e19fc29cd; path=/; secure; HttpOnly] + status: [200 OK] + strict-transport-security: [max-age=631139040; includeSubdomains] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-download-options: [noopen] + x-frame-options: [sameorigin] + x-permitted-cross-domain-policies: [none] + x-powered-by: [Phusion Passenger 4.0.53] + x-request-id: [2daa9084-8863-4e70-a391-cfd95b540c41] + x-runtime: ['0.055928'] + x-xss-protection: [1; mode=block] + status: {code: 200, message: OK} +- request: + body: !!python/unicode '{"version": null, "max_version": "1"}' + headers: + Accept: ['*/*'] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Length: ['37'] + User-Agent: [python-requests/2.18.4] + content-type: [application/json] + method: PUT + uri: https://centos7-katello-3-6.sean.example.com/katello/api/v2/content_view_filters/21/rules/7 + response: + body: + string: !!binary | + H4sIAAAAAAAAA3XKwQrCMAyA4btPUXLuoKmOjVx9BT2HuEYouE5qnIL47lbvXr//d+4F01JMi/Ga + 9cHnfDGtnBNQRA+zPHnVestLAQIED98yeCgya5OTSm04VRXTxGLNYsCxC0MXe4c9YaTd6I6Hfdvu + 1/R321IIv+29+QBajeM2lQAAAA== + headers: + apipie-checksum: [83fd72067f1c96eb1196b17193cc48d0] + cache-control: ['max-age=0, private, must-revalidate'] + connection: [Keep-Alive] + content-encoding: [gzip] + content-length: ['133'] + content-security-policy: ['default-src ''self''; child-src ''self''; connect-src + ''self'' ws: wss:; img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' + ''unsafe-inline'' ''self''; style-src ''unsafe-inline'' ''self'''] + content-type: [application/json; charset=utf-8] + date: ['Wed, 25 Jul 2018 15:13:00 GMT'] + etag: [W/"4f0c716eb996f8aed9eeb1d3c0e14bc1-gzip"] + foreman_api_version: ['2'] + foreman_version: [1.17.1] + keep-alive: ['timeout=5, max=10000'] + server: [Apache/2.4.6 (CentOS)] + set-cookie: [request_method=PUT; path=/, _session_id=b901bb0d200b47345a205c89c977fe29; + path=/; secure; HttpOnly] + status: [200 OK] + strict-transport-security: [max-age=631139040; includeSubdomains] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-download-options: [noopen] + x-frame-options: [sameorigin] + x-permitted-cross-domain-policies: [none] + x-powered-by: [Phusion Passenger 4.0.53] + x-request-id: [cfff7b93-fd8a-4b50-be83-7c36e28cfb7d] + x-runtime: ['0.059858'] + x-xss-protection: [1; mode=block] + status: {code: 200, message: OK} +version: 1 diff --git a/test/test_playbooks/tasks/content_view_filter.yml b/test/test_playbooks/tasks/content_view_filter.yml new file mode 100644 index 0000000000..37c0968723 --- /dev/null +++ b/test/test_playbooks/tasks/content_view_filter.yml @@ -0,0 +1,42 @@ +--- +- name: "Create/Update/Delete Package Content View Filter" + vars: + content_view_filter_name: "Test Package Content View Filter" + content_view_name: "Test Content View" + organization_name: "Test Organization" + repositories: + - name: "Test Repository" + product: "Test Product" + package_name: "bear" + +- name: "Create RPM content view filter" + katello_content_view_filter: + username: "{{ foreman_username }}" + password: "{{ foreman_password }}" + server_url: "{{ foreman_server_url }}" + verify_ssl: "{{ foreman_verify_ssl }}" + name: "{{ content_view_filter_name }}" + organization: "{{ organization_name }}" + content_view: "{{ content_view_name }}" + filter_type: "rpm" + repositories: "{{ repositories }}" + package_name: "{{ package_name }}" + version: "{{ version | default(omit) }}" + +- name: "Create errata date content view filter" + katello_content_view_filter: + username: "{{ foreman_username }}" + password: "{{ foreman_password }}" + server_url: "{{ foreman_server_url }}" + verify_ssl: "{{ foreman_verify_ssl }}" + name: "my errata filter" + organization: "Default Organization" + content_view: ss + filter_type: "erratum" + end_date: "2018-01-03" + start_date: "2017-01-03 + register: result +- fail: + msg: "Ensuring domain is {{ domain_state }} failed! (expected_change: {{ expected_change | default('unknown') }})" + when: (expected_change is defined) and (result.changed != expected_change) +... diff --git a/test/test_playbooks/tasks/content_view_filter_docker.yml b/test/test_playbooks/tasks/content_view_filter_docker.yml new file mode 100644 index 0000000000..f2d3ffc533 --- /dev/null +++ b/test/test_playbooks/tasks/content_view_filter_docker.yml @@ -0,0 +1,29 @@ +--- +- name: "Create/Update/Delete Docker Content View Filter" + vars: + content_view_filter_name: "Test Docker Content View Filter" + content_view_name: "Test Content View" + organization_name: "Test Organization" + tag: "birds" + filter_state: present + katello_content_view_filter: + username: "{{ foreman_username }}" + password: "{{ foreman_password }}" + server_url: "{{ foreman_server_url }}" + verify_ssl: "{{ foreman_verify_ssl }}" + name: "{{ content_view_filter_name }}" + organization: "{{ organization_name }}" + content_view: "{{ content_view_name }}" + filter_type: "docker" + repositories: "{{ repositories | default(omit) }}" + tag: "{{ tag }}" + inclusion: "{{ inclusion | default(omit) }}" + filter_state: "{{ filter_state }}" + rule_state: "{{ rule_state | default(omit) }}" + register: result +- fail: + msg: "Ensuring content view filter is {{ filter_state }} failed! (expected_change: {{ expected_change | default('unknown') }})" + when: (expected_change is defined) and (result.changed != expected_change) + vars: + filter_state: present +... diff --git a/test/test_playbooks/tasks/content_view_filter_errata_date.yml b/test/test_playbooks/tasks/content_view_filter_errata_date.yml new file mode 100644 index 0000000000..346522e63a --- /dev/null +++ b/test/test_playbooks/tasks/content_view_filter_errata_date.yml @@ -0,0 +1,36 @@ +--- +- name: "Create/Update/Delete Errata date Content View Filter" + vars: + content_view_filter_name: "Test Errata date Content View Filter" + content_view_name: "Test Content View" + organization_name: "Test Organization" + repositories: + - name: "Test Repository" + product: "Test Product" + end_date: "2018-01-03" + start_date: "2017-01-03" + filter_state: present + katello_content_view_filter: + username: "{{ foreman_username }}" + password: "{{ foreman_password }}" + server_url: "{{ foreman_server_url }}" + verify_ssl: "{{ foreman_verify_ssl }}" + name: "{{ content_view_filter_name }}" + organization: "{{ organization_name }}" + content_view: "{{ content_view_name }}" + filter_type: "erratum" + repositories: "{{ repositories }}" + end_date: "{{ end_date }}" + start_date: "{{ start_date }}" + types: "{{ types | default(omit) }}" + date_type: "{{ date_type | default(omit) }}" + inclusion: "{{ inclusion | default(omit) }}" + filter_state: "{{ filter_state }}" + rule_state: "{{ rule_state | default(omit) }}" + register: result +- fail: + msg: "Ensuring content view filter is {{ filter_state }} failed! (expected_change: {{ expected_change | default('unknown') }})" + when: (expected_change is defined) and (result.changed != expected_change) + vars: + filter_state: present +... diff --git a/test/test_playbooks/tasks/content_view_filter_errata_id.yml b/test/test_playbooks/tasks/content_view_filter_errata_id.yml new file mode 100644 index 0000000000..2f53d3b370 --- /dev/null +++ b/test/test_playbooks/tasks/content_view_filter_errata_id.yml @@ -0,0 +1,29 @@ +--- +- name: "Create/Update/Delete Errata id Content View Filter" + vars: + content_view_filter_name: "Test Errata id Content View Filter" + content_view_name: "Test Content View" + organization_name: "Test Organization" + errata_id: RHEA-2012:0003 + filter_state: present + katello_content_view_filter: + username: "{{ foreman_username }}" + password: "{{ foreman_password }}" + server_url: "{{ foreman_server_url }}" + verify_ssl: "{{ foreman_verify_ssl }}" + name: "{{ content_view_filter_name }}" + organization: "{{ organization_name }}" + content_view: "{{ content_view_name }}" + filter_type: "erratum" + repositories: "{{ repositories | default(omit) }}" + errata_id: "{{ errata_id }}" + inclusion: "{{ inclusion | default(omit) }}" + filter_state: "{{ filter_state }}" + rule_state: "{{ rule_state | default(omit) }}" + register: result +- fail: + msg: "Ensuring content view filter is {{ filter_state }} failed! (expected_change: {{ expected_change | default('unknown') }})" + when: (expected_change is defined) and (result.changed != expected_change) + vars: + filter_state: present +... diff --git a/test/test_playbooks/tasks/content_view_filter_package.yml b/test/test_playbooks/tasks/content_view_filter_package.yml new file mode 100644 index 0000000000..4dbc3c52e9 --- /dev/null +++ b/test/test_playbooks/tasks/content_view_filter_package.yml @@ -0,0 +1,35 @@ +--- +- name: "Create/Update/Delete Package Content View Filter" + vars: + content_view_filter_name: "Test Package Content View Filter" + content_view_name: "Test Content View" + organization_name: "Test Organization" + repositories: + - name: "Test Repository" + product: "Test Product" + package_name: "bear" + filter_state: present + katello_content_view_filter: + username: "{{ foreman_username }}" + password: "{{ foreman_password }}" + server_url: "{{ foreman_server_url }}" + verify_ssl: "{{ foreman_verify_ssl }}" + name: "{{ content_view_filter_name }}" + organization: "{{ organization_name }}" + content_view: "{{ content_view_name }}" + filter_type: "rpm" + repositories: "{{ repositories }}" + package_name: "{{ package_name }}" + version: "{{ version | default(omit) }}" + min_version: "{{ min_version | default(omit) }}" + max_version: "{{ max_version | default(omit) }}" + inclusion: "{{ inclusion | default(omit) }}" + filter_state: "{{ filter_state }}" + rule_state: "{{ rule_state | default(omit) }}" + register: result +- fail: + msg: "Ensuring content view filter is {{ filter_state }} failed! (expected_change: {{ expected_change | default('unknown') }})" + when: (expected_change is defined) and (result.changed != expected_change) + vars: + filter_state: present +... diff --git a/test/test_playbooks/tasks/content_view_filter_package_group.yml b/test/test_playbooks/tasks/content_view_filter_package_group.yml new file mode 100644 index 0000000000..706bb39ac9 --- /dev/null +++ b/test/test_playbooks/tasks/content_view_filter_package_group.yml @@ -0,0 +1,29 @@ +--- +- name: "Create/Update/Delete Package Group Content View Filter" + vars: + content_view_filter_name: "Test Package Group Content View Filter" + content_view_name: "Test Content View" + organization_name: "Test Organization" + package_group: "birds" + filter_state: present + katello_content_view_filter: + username: "{{ foreman_username }}" + password: "{{ foreman_password }}" + server_url: "{{ foreman_server_url }}" + verify_ssl: "{{ foreman_verify_ssl }}" + name: "{{ content_view_filter_name }}" + organization: "{{ organization_name }}" + content_view: "{{ content_view_name }}" + filter_type: "package_group" + repositories: "{{ repositories | default(omit) }}" + package_group: "{{ package_group }}" + inclusion: "{{ inclusion | default(omit) }}" + filter_state: "{{ filter_state }}" + rule_state: "{{ rule_state | default(omit) }}" + register: result +- fail: + msg: "Ensuring content view filter is {{ filter_state }} failed! (expected_change: {{ expected_change | default('unknown') }})" + when: (expected_change is defined) and (result.changed != expected_change) + vars: + filter_state: present +...