diff --git a/modules/katello_activation_key.py b/modules/katello_activation_key.py index 588bd5345e..75992aba1b 100755 --- a/modules/katello_activation_key.py +++ b/modules/katello_activation_key.py @@ -68,6 +68,16 @@ - Set Auto-Attach on or off default: true type: bool + state: + description: + - State of the Activation Key + default: present + choices: + - present + - copied + new_name: + description: + - Name of the new activation key when state == copied ''' EXAMPLES = ''' @@ -201,6 +211,25 @@ def activation_key(self, name, organization, lifecycle_environment=None, content return updated + def activation_key_copy(self, name, organization, new_name): + updated = False + organization = self.find_organization(organization) + + kwargs = {'name': name, 'organization': organization} + activation_key = self._entities.ActivationKey(self._server, **kwargs) + response = activation_key.search({'name', 'organization'}) + + kwargs = {'name': new_name, 'organization': organization} + new_activation_key = self._entities.ActivationKey(self._server, **kwargs) + new_response = new_activation_key.search({'name', 'organization'}) + + if len(response) == 1 and len(new_response) == 0: + if not self._module.check_mode: + new_activation_key = response[0].copy(data={'new_name': new_name}) + updated = True + + return updated + def main(): module = AnsibleModule( @@ -210,13 +239,18 @@ def main(): password=dict(required=True, no_log=True), verify_ssl=dict(type='bool', default=True), name=dict(required=True), + new_name=dict(), organization=dict(required=True), lifecycle_environment=dict(), content_view=dict(), subscriptions=dict(type='list'), auto_attach=dict(type='bool', default=True), + state=dict(default='present', choices=['present', 'copied']), ), supports_check_mode=True, + required_if=[ + ['state', 'copied', ['new_name']], + ], ) if has_import_error: @@ -232,6 +266,8 @@ def main(): content_view = module.params['content_view'] subscriptions = module.params['subscriptions'] auto_attach = module.params['auto_attach'] + new_name = module.params['new_name'] + state = module.params['state'] server = ServerConfig( url=server_url, @@ -248,8 +284,11 @@ def main(): module.fail_json(msg="Failed to connect to Foreman server: %s " % e) try: - changed = ng.activation_key(name, organization, lifecycle_environment=lifecycle_environment, content_view=content_view, subscriptions=subscriptions, - auto_attach=auto_attach) + if state == 'copied': + changed = ng.activation_key_copy(name, organization, new_name) + else: + changed = ng.activation_key(name, organization, lifecycle_environment=lifecycle_environment, content_view=content_view, + subscriptions=subscriptions, auto_attach=auto_attach) module.exit_json(changed=changed) except Exception as e: module.fail_json(msg=e) diff --git a/test/test_playbooks/activation_key.yml b/test/test_playbooks/activation_key.yml index 79e9925c6c..841f21103a 100644 --- a/test/test_playbooks/activation_key.yml +++ b/test/test_playbooks/activation_key.yml @@ -32,6 +32,9 @@ vars: activation_key_auto_attach: True expected_change: false + - include: tasks/activation_key_copy.yml + vars: + expected_change: true - hosts: fixtures gather_facts: false diff --git a/test/test_playbooks/fixtures/activation_key-1.yml b/test/test_playbooks/fixtures/activation_key-1.yml index 7be88533cb..30cb1f09fe 100644 --- a/test/test_playbooks/fixtures/activation_key-1.yml +++ b/test/test_playbooks/fixtures/activation_key-1.yml @@ -9,17 +9,17 @@ interactions: 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 + uri: https://foreman.example.com/katello/api/v2/organizations response: body: string: !!binary | - H4sIAAAAAAAAA42PzU7DMBCE73kKa8+pZKdQKl/LnUs5IRRt4qVYMkm0dg5tlHdn01SU8tubv5mx - ZmfIlILUJgxgVZFPFPvqUuhwRwJmBuLyJBR6zhNy/Src9CHMSstJeJC3ULX/5Am37IhPkijj8QtT - 7EOKIj8NELAiqYd7ekFRywfeYeMPmHzbQA41EyZyJUoJFNqsF3q1KG6VWVqjrb5Rj9uNxPrOXRPz - DqzJocE3OleqL5XJp/CH7SjW7Lsj2WnXmJ9XbCleP2FtjbHLu/8mXMamCauPCVPfb/f/5H0//jkb - s3eun9EdGQIAAA== + H4sIAAAAAAAAA42PzWrDMBCE734KsWcHJNOGoGty7yU9lWLW1jYVKLZZyYfW+N2zjkOSpn8BHfab + HTE7Q6YUpDZhAKuKfKLYV1+FDnckYGYgLk9CoWc/Idfvwk0fwqy0nIQHmYWqj6udcMuO+CSJMh6/ + MMU+pCjyywABK5J42NAbilo+8Q4b/4nJtw3kUDNhIleihEChzWqh5S2VXtpCW/OonrdrsfWdu8fm + HViTQ4N7ukSqm8jkU/hj7SjW7Lsj2anXmF9abCneXcEYq1fW6H8q3NimCg/nClPeb/f/tPt+/Gs2 + ZgfaukBkGQIAAA== headers: - apipie-checksum: [83fd72067f1c96eb1196b17193cc48d0] + apipie-checksum: [dab79c9ec668ec3e883819cf8cb0d52ed7b0b699] cache-control: ['max-age=0, private, must-revalidate'] connection: [Keep-Alive] content-encoding: [gzip] @@ -28,13 +28,14 @@ interactions: ''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: ['Mon, 25 Jun 2018 18:11:43 GMT'] - etag: [W/"1bbd6ea16aa12bcc2ae29b0d66604240-gzip"] + date: ['Mon, 06 Aug 2018 11:08:17 GMT'] + etag: [W/"e4b76139af4e38518f657cfd43eeb087-gzip"] foreman_api_version: ['2'] - foreman_version: [1.17.1] + foreman_version: [1.18.0] keep-alive: ['timeout=5, max=10000'] server: [Apache/2.4.6 (CentOS)] - set-cookie: [_session_id=db6a0274b2ffd070a92fbd51cac59135; path=/; secure; HttpOnly] + set-cookie: [_session_id=a64793077ece4a1cd40fdf085b712654; path=/; secure; HttpOnly; + SameSite=Lax] status: [200 OK] strict-transport-security: [max-age=631139040; includeSubdomains] vary: [Accept-Encoding] @@ -43,8 +44,8 @@ interactions: x-frame-options: [sameorigin] x-permitted-cross-domain-policies: [none] x-powered-by: [Phusion Passenger 4.0.53] - x-request-id: [75af7b12-7ba2-4e2f-a1a5-3534730f0adf] - x-runtime: ['0.103724'] + x-request-id: [c63d2096-e844-45bf-82a3-e78e35cf5ffb] + x-runtime: ['0.052618'] x-xss-protection: [1; mode=block] status: {code: 200, message: OK} - request: @@ -57,31 +58,32 @@ interactions: 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 + uri: https://foreman.example.com/katello/api/v2/organizations response: body: string: !!binary | - H4sIAAAAAAAAA42PwWrDMAyG73kKo3MKccq6YthpD7BLd1pHUGLRGbwkyMqhC3n3qU7GxmCwm77P - v/mluTAGZBCM4Exd3ihN7ZewWYx4oW8gbjZRV2uekLs3ZejxnR7OcKIk5okv2IcPlDD0Z4A1ObBo - btZZqb3q3E8xlisP7Ik3pWbJX5jSFCWpfpkhYku6Vi5ofhZACR0TCvkGtQHqyh531WFX3xl7dNa6 - /b15Pj1qbBr9f2LBgzuU+aCtz/zqkyDxrzdPqeMwZnK3c5bXYik+ARRjpkZrAQAA + H4sIAAAAAAAAA42PwUrEMBCG732KMOcKSRFZAp58AC/ryV3KtBnWQGzLZHpwS9/d2bSiCIKQw3xf + /vBnlsoYkFEwgTdNfaM8d1/CFTHhhb6BuN1FY7c8IfdvyjDgOz2e4EhZzDNfcIhXlDgOJ4AtObJo + btFZqfvQeZhTqjceORDvSs1anjDlOUlW/bpAwo70W6Wg/VkANfRMKBRa1AZorDvcWT0PxjlvD95Z + 83J80tg8hf/EYgB/X5eF9j7zq0+ipL/uAuWe41TI39ZZz9VafQLTBt/JawEAAA== headers: - apipie-checksum: [83fd72067f1c96eb1196b17193cc48d0] + apipie-checksum: [dab79c9ec668ec3e883819cf8cb0d52ed7b0b699] cache-control: ['max-age=0, private, must-revalidate'] connection: [Keep-Alive] content-encoding: [gzip] - content-length: ['219'] + 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: ['Mon, 25 Jun 2018 18:11:44 GMT'] - etag: [W/"9c8c8aaf7b83d2204e99c3ffd578804f-gzip"] + date: ['Mon, 06 Aug 2018 11:08:18 GMT'] + etag: [W/"6a2dc381b9d75bbfab5b6f936f1d77c9-gzip"] foreman_api_version: ['2'] - foreman_version: [1.17.1] + foreman_version: [1.18.0] keep-alive: ['timeout=5, max=10000'] server: [Apache/2.4.6 (CentOS)] - set-cookie: [_session_id=c67b8105c3b44d8bd2c36a8bec975de1; path=/; secure; HttpOnly] + set-cookie: [_session_id=668d398e3175b5049ea4fd0fdb1d9222; path=/; secure; HttpOnly; + SameSite=Lax] status: [200 OK] strict-transport-security: [max-age=631139040; includeSubdomains] vary: [Accept-Encoding] @@ -90,12 +92,12 @@ interactions: x-frame-options: [sameorigin] x-permitted-cross-domain-policies: [none] x-powered-by: [Phusion Passenger 4.0.53] - x-request-id: [8c1a66c2-ef2c-4885-ac9a-d507423984bb] - x-runtime: ['0.039680'] + x-request-id: [76fed7a7-9cd7-4f55-b9f0-902ef2da925e] + x-runtime: ['0.053746'] x-xss-protection: [1; mode=block] status: {code: 200, message: OK} - request: - body: !!python/unicode '{"organization_id": 6, "name": "Library"}' + body: !!python/unicode '{"organization_id": 4, "name": "Library"}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] @@ -104,35 +106,36 @@ interactions: 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/environments + uri: https://foreman.example.com/katello/api/v2/environments response: body: string: !!binary | - H4sIAAAAAAAAA41STU/jMBC98yuqOQepKQJVvu4ViUs5IWQ5zrS1cDzW2C6EKv8du0koXXYFN8+b - 5zdvPo4QKSoLoq4gpOYceLXD8YEsx2C1rACZiUG4ZG3+gIr1/jMijiCO0PQgwKkOoQLiFjMdVNAw - VMAYko0BxNMRrGlYceZGTliBaUHcVuM/AfdTsgKrGrQXSItBs/HRkJtLE++UM++qYLIo3V1ixdak - vMEQFw9fc+caJSf/yp3UsnXNqCK2UuUeYbWs19fLu+vV7aJei7oWN+vF4+ZPpiff/obm2XwZY9Ia - QzgDmpIrUzrml4vootxTKMCy+kQOBl9HxCv9kvczBcl7jLKjNtkJyitTURW1gDqxif1cp0m7rXmb - I3R75TR2WX2GpnMoQR5BnzrJ6CmYSGwm9Zb0S76Qb3g2zIjfcc/Zmi7N1MPpuDoTQh712O5pyNKa - LepeW5ToDobJFU9hvpTS+Q8UbE38gZKvKDL1/2VtlQ14sttRtkSlxY4OKC8WICP9Q30YnoerDxb4 - B3RaAwAA + H4sIAAAAAAAAA41STW/bMAy971cEPLuA3Q5F4euuA3bpTsUgyDKTCJUlgaKyuYH/e6nYTpp1Qwvo + ID4+Pn4egQNrB21TQcrdxYh6h/MHSc3GbV0BEgWC1mfnJAA1mf3ZCsTQHqEboQWvB4QKAvUodNDJ + wFQBYcqOE7RPR3C2I03CZcpYXDubmEZVIiUhM5JfpW0P7V01i7bwfYmswOkO3RXSYzJkI9twDg60 + 096+6IKpovT1Gis1L8qPmHjz463vkqP41F++k5r0ZQg1Y6+0DABu6+bhppZ3v2matn5om3rz8/Gb + 0HPsP0OLZN/MOBuDKV0AE7IvIzzKzzN6VvuQClBXZ+Rg8feMRG2eZXmLkWNEVkPos1sg2admXdQS + mkyWxzVPl3db+2e10O+1NziI+gott1IMGcGYB0UYQ7IcyC7qfTDPcj7vcCmYEN/jkaQ0U5ppptPl + DTYlGfXc7mnIytktmtE4VOgPloIvNaX1jErnH1Cwt/wBRa6IKYz/ZW21S3gqdwhSUigtDuGA6moB + isM/1Kfp1/TlFXYu5al3AwAA headers: - apipie-checksum: [83fd72067f1c96eb1196b17193cc48d0] + apipie-checksum: [dab79c9ec668ec3e883819cf8cb0d52ed7b0b699] cache-control: ['max-age=0, private, must-revalidate'] connection: [Keep-Alive] content-encoding: [gzip] - content-length: ['405'] + content-length: ['417'] 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: ['Mon, 25 Jun 2018 18:11:44 GMT'] - etag: [W/"14e1c72fd1500cf3d89471994aa29821-gzip"] + date: ['Mon, 06 Aug 2018 11:08:18 GMT'] + etag: [W/"7f2e2115dbc0cc9d55b30d99501a1857-gzip"] foreman_api_version: ['2'] - foreman_version: [1.17.1] + foreman_version: [1.18.0] keep-alive: ['timeout=5, max=10000'] server: [Apache/2.4.6 (CentOS)] - set-cookie: [_session_id=3403bf369aa742e912a0fc7dc7f55745; path=/; secure; HttpOnly] + set-cookie: [_session_id=86560991a0113c62db9616bfb0748d98; path=/; secure; HttpOnly; + SameSite=Lax] status: [200 OK] strict-transport-security: [max-age=631139040; includeSubdomains] vary: [Accept-Encoding] @@ -141,12 +144,12 @@ interactions: x-frame-options: [sameorigin] x-permitted-cross-domain-policies: [none] x-powered-by: [Phusion Passenger 4.0.53] - x-request-id: [30cbcef4-dbcf-418f-992b-ac8ef9c46440] - x-runtime: ['0.077637'] + x-request-id: [c0309325-8f50-4c2c-9cde-52a5993dd97b] + x-runtime: ['0.102191'] x-xss-protection: [1; mode=block] status: {code: 200, message: OK} - request: - body: !!python/unicode '{"organization_id": 6, "name": "Default Organization View"}' + body: !!python/unicode '{"organization_id": 4, "name": "Default Organization View"}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] @@ -155,36 +158,37 @@ interactions: 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 + uri: https://foreman.example.com/katello/api/v2/content_views response: body: string: !!binary | - H4sIAAAAAAAAA42TTY/aMBCG7/0VaM5JlcDCIl/bY6Vetr1UyHLsYdeqE0djJ22K+O8dkywESiVu - 8Xw+M+/kANFH5UCUGYSuujxa9YrjB5IcH8siAyTyBKLpnOMEVKTfzi9PEcQBqgEENKpGyMCTQQ4H - FTQcMyAMnYsBxI8DaF+3PtjIhffKBcxGS4NNlNakmF0GBveKM0BE6jhi70mjbLu2xSix6S35puaE - c4keKVjfSO27ZGV8pyKGKCcHo5QfC0gkp+aehksza0CssxFdwOex9eIrvarG/lGR0xffLf6CVLRC - l8Z6NitVoMmXa1PlT+sK8+2mxPx5qXW5qvZPZWEgTRE02TaeAMZl+VlVmRpvrm1pkRPIC/NfUcwA - kk/e+E7VeNmakGc3UvEiYFmU27zYMOii3IqyFKvt4tvLJw7vWvNI2Gzbo37X2/piK1I0zNAuFr6g - 2oa0/pDGYiyjKoejqMfjbqaGxUmLSePam8692yYNr9rf6tp2lbPhDc2jw0zyr3eJ43yBU0ftm5hi - epZd3jqVjrYfBfyJw2Rs8Pe/x+YUq/QY2c2upsYXivD+K6Cx8b6Hry2SH+47J4r/OMnXPqL0JAlr - 3+O9MBbs+OEvRRmJLjcEAAA= + H4sIAAAAAAAAA42TTY+bMBCG7/0V0ZyhgiW7JVzbY6Vetr1UkWXwsGvVYDQ2tGmU/95x8CYkm0qR + csDz+c48kz1466WBKk/AjfX5McgXnD+QxPx4yBJAIktQ9aMxnICSmtfTy5KHag/1DiroZYeQgCWF + HA7SNXBIgNCNxjuofu6hsd1gnfZcuJXGYTJbeuy90CrEbBNQ2ErOgMrTyBGtpQbFMA4DeoH9pMn2 + HSecSkxITtteNHYMVpZvpEfnRXSwlPxjxsLk6C0Xqo12r6dswqMiS7uzAq2gKpJ5ngq+zHpW3+hF + 9vqv9Fxz9UPjbwidauTdwRO260fZZmmBnzBdq3KT1ptik+Zl+ZgViFndFhBGcw3pwR9VzRu0i6oi + NF5f2sJ2o5BnHupCxUJA8Ikr37EaE2gIeSFKSN4OPGR5mWb8e1rleZWVVZ6tvj9/5vBxUPeELRDM + UC+39VXXJGm3kHa28Fl12gUmLozFspSsDc6kD4ftgobGyCKC76wazZstgr1ofw07ckZ17zARf7EN + Ok5nGTs2tvchZmLs4topG6+nGeAv3EVjj3/eX6CRTOk+ZVe7io3PKtzb/wOV9rc9fG2e7O62M6r4 + j5NsZz0KS4KwsxPeCmNghw//AP1U56NMBAAA headers: - apipie-checksum: [83fd72067f1c96eb1196b17193cc48d0] + apipie-checksum: [dab79c9ec668ec3e883819cf8cb0d52ed7b0b699] cache-control: ['max-age=0, private, must-revalidate'] connection: [Keep-Alive] content-encoding: [gzip] - content-length: ['473'] + content-length: ['483'] 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: ['Mon, 25 Jun 2018 18:11:44 GMT'] - etag: [W/"669bf3b1439d32cfdc5d8c8a736c1e96-gzip"] + date: ['Mon, 06 Aug 2018 11:08:18 GMT'] + etag: [W/"610d59fb333003a9d1069dd6a774a707-gzip"] foreman_api_version: ['2'] - foreman_version: [1.17.1] + foreman_version: [1.18.0] keep-alive: ['timeout=5, max=10000'] server: [Apache/2.4.6 (CentOS)] - set-cookie: [_session_id=15749e79beb90dd8f03e5fac3e264a42; path=/; secure; HttpOnly] + set-cookie: [_session_id=e20c002353d3723b8677eba1b542b287; path=/; secure; HttpOnly; + SameSite=Lax] status: [200 OK] strict-transport-security: [max-age=631139040; includeSubdomains] vary: [Accept-Encoding] @@ -193,12 +197,12 @@ interactions: x-frame-options: [sameorigin] x-permitted-cross-domain-policies: [none] x-powered-by: [Phusion Passenger 4.0.53] - x-request-id: [0c94c6d6-b450-4f4d-b0d3-1c71a874c956] - x-runtime: ['0.063249'] + x-request-id: [e4fd67c3-f0ea-42d7-82c3-b671160c99cf] + x-runtime: ['0.090729'] x-xss-protection: [1; mode=block] status: {code: 200, message: OK} - request: - body: !!python/unicode '{"organization_id": 6, "name": "Test Activation Key"}' + body: !!python/unicode '{"organization_id": 4, "name": "Test Activation Key"}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] @@ -207,14 +211,14 @@ interactions: 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/activation_keys + uri: https://foreman.example.com/katello/api/v2/activation_keys response: body: string: !!binary | H4sIAAAAAAAAA0XLsQqAMBAD0N3PyNxBHe9XRORaDx1qK9d2kOK/WxB0ywtJRY6ZPag3SMX+OHkT 0NCC6PJibLWoRgWF4n07CKvbP0XNoAp7gRD4EBhEXaXNwcnhNlBJxecEmua7ewAzgtzWewAAAA== headers: - apipie-checksum: [83fd72067f1c96eb1196b17193cc48d0] + apipie-checksum: [dab79c9ec668ec3e883819cf8cb0d52ed7b0b699] cache-control: ['max-age=0, private, must-revalidate'] connection: [Keep-Alive] content-encoding: [gzip] @@ -223,13 +227,14 @@ interactions: ''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: ['Mon, 25 Jun 2018 18:11:44 GMT'] + date: ['Mon, 06 Aug 2018 11:08:18 GMT'] etag: [W/"956e0fd5b832fbda8d01b01a5b7de844-gzip"] foreman_api_version: ['2'] - foreman_version: [1.17.1] + foreman_version: [1.18.0] keep-alive: ['timeout=5, max=10000'] server: [Apache/2.4.6 (CentOS)] - set-cookie: [_session_id=65801d8d40ef5ffba0aa8628ff73c6bf; path=/; secure; HttpOnly] + set-cookie: [_session_id=0e3a4eb0e29e64a12b08c47ebaac63fa; path=/; secure; HttpOnly; + SameSite=Lax] status: [200 OK] strict-transport-security: [max-age=631139040; includeSubdomains] vary: [Accept-Encoding] @@ -238,13 +243,13 @@ interactions: x-frame-options: [sameorigin] x-permitted-cross-domain-policies: [none] x-powered-by: [Phusion Passenger 4.0.53] - x-request-id: [7583cb1d-122d-4061-af7b-5a882af31211] - x-runtime: ['0.040832'] + x-request-id: [25ac9b81-361e-46b9-ba42-12de08ab4ae4] + x-runtime: ['0.064886'] x-xss-protection: [1; mode=block] status: {code: 200, message: OK} - request: - body: !!python/unicode '{"content_view_id": 5, "environment_id": 5, "organization_id": - 6, "auto_attach": false, "name": "Test Activation Key"}' + body: !!python/unicode '{"content_view_id": 3, "environment_id": 3, "organization_id": + 4, "auto_attach": false, "name": "Test Activation Key"}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] @@ -253,35 +258,35 @@ interactions: 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/activation_keys + uri: https://foreman.example.com/katello/api/v2/activation_keys response: body: string: !!binary | - H4sIAAAAAAAAA31Sy07DMBC88xXRnlOpqZqq8g3BDSQuhQtC1tbZUgvHjvwIhCr/jp2mpUHAMTOT - 3ZlZZ9kBHNlWCuKKWlLAdFAqB2G0J+25aclaWZED9vySg6yAlTlorAkYbMj57Fp42aKXRmd31EEO - USysbBJymha0krX0VPG9cT7O8jZQDhi84eg9ij2wHSpH34tbSe98XEe6ldboOuEjFBy+EhcmaA9s - nr7JDtwyhxo/TnuO6y0pQkc8ZnEXrox9RS0/B+/Dv6spBuwwSfpwyeWgcJv6Gjj+gxum9TGNJUyx - MbqExbxYz+ar2aLMijUrCrZcZo+bmygPTfWfrBxll90kc9Nr3NIOg5razJ6StJ9UeBHrXm4t2m40 - XEZdY00VhB/PnVqMJStFIk0b0YZsLZ07AgcYLoXnV8DfqDtfmCrp/+LiO/HWdL/TfX/1BY5DOtKc - AgAA + H4sIAAAAAAAAA41Sy07DMBC88xXRno2UUgSVbwhuIHEpXBCyts62tXDsyI9AqPLv2GlaUgQSki+e + Ge/OzrooduDJtUqS0NSSBm6i1gykNYFMELYl51RFHvjLKwNVAb9mYLAm4LAkH4obGVSLQVlT3FMH + DJJYOtVk5FAtGq1qFagSW+tDqhVcJAYYgxUYAsot8DVqT9+NW0XvIrebMyDTKmdNnfERih43JKSN + JgAv853cwF0yqPHj0Gff3pEm9CTSLH7iyroNGvU5eD+8nWLAdyeTPk45BhpXOa+BEz+4oVqfpnGE + eWxMLuGinC3Oy3SuitmMlws+WxRPy9skj031H9k0m2xuzGL0eEdrjPrUZvGcpf1JhJOxHtTKoetG + w/Oka5ytogzjunOKKWStSeZqI9qQq5X3e2AHw6bw+AvEG3XHDVOlwl9c+ifB2e53uu/PvgD6PFrD + nAIAAA== headers: - apipie-checksum: [83fd72067f1c96eb1196b17193cc48d0] + apipie-checksum: [dab79c9ec668ec3e883819cf8cb0d52ed7b0b699] cache-control: ['max-age=0, private, must-revalidate'] connection: [Keep-Alive] content-encoding: [gzip] - content-length: ['345'] + content-length: ['346'] 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: ['Mon, 25 Jun 2018 18:11:44 GMT'] - etag: [W/"2683b2ec75c864dee51113029e147b29-gzip"] + date: ['Mon, 06 Aug 2018 11:08:18 GMT'] + etag: [W/"6b1cb32a51b189e355f14a7d8cb22abb-gzip"] foreman_api_version: ['2'] - foreman_version: [1.17.1] + foreman_version: [1.18.0] keep-alive: ['timeout=5, max=10000'] server: [Apache/2.4.6 (CentOS)] - set-cookie: [request_method=POST; path=/, _session_id=48d2afbbd23b17f50ae0e88f8eeed392; - path=/; secure; HttpOnly] + set-cookie: [request_method=POST; path=/; secure; HttpOnly; SameSite=Lax, _session_id=72664b4a93e88027112ff3b20b3da9e8; + path=/; secure; HttpOnly; SameSite=Lax] status: [200 OK] strict-transport-security: [max-age=631139040; includeSubdomains] vary: [Accept-Encoding] @@ -290,12 +295,12 @@ interactions: x-frame-options: [sameorigin] x-permitted-cross-domain-policies: [none] x-powered-by: [Phusion Passenger 4.0.53] - x-request-id: [1248f495-5f2d-4b2e-afcb-a5c8e1701408] - x-runtime: ['1.349154'] + x-request-id: [fa3d02fa-90ac-4e48-8352-e1814f3f45e3] + x-runtime: ['0.563602'] x-xss-protection: [1; mode=block] status: {code: 200, message: OK} - request: - body: !!python/unicode '{"organization_id": 6, "search": "name=\"Test Product\""}' + body: !!python/unicode '{"organization_id": 4, "search": "name=\"Test Product\""}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] @@ -304,35 +309,36 @@ interactions: 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/subscriptions + uri: https://foreman.example.com/katello/api/v2/subscriptions response: body: string: !!binary | - H4sIAAAAAAAAA22QTW/bMAxA7/sVAc8OILlO7QrYYdh1Xxi60zoYtMykQmVJk6UMWZD/Ptqum63Y - SSL5RJHvDD4e0JnfmIx3oM6XApJPaEHJAsbcXYOAB1ouFNslKEUBFKOPoFy2lh8QRv0IChwO9PYB - 7mlMmy/R91mnBwAGfEz8C3QnhnRoTc9JH3viFoCjBv4/0phtGkF9PwPXVV08kwoqUTb7O9nfVje1 - 6GshJN+asqK96IS4qWCeedTRhGmf+VFVzNPw67+nmciEMbU9pqlWCtlsxe223G1ko6RUldx8u3/P - GLn+ClUzJOvXEB7RWOwsU1tW9DOjSyadlkh7N+aBeBb2hVr77FLr8tDRizhGUkT9Oj3mENhYa+lI - dk2GZYPFSC3LXbPbybq5a2a/+okmd2tblrkGEYf1ahwv7zS1A5s2wZrpSzkr0U/GHebeCzoTLU3r - WBr4XAvpFCYnnz5//fjuA1zH+r/s7AYMgfr2kLkAao92pAKOhrfzzp7+zfx69M+Jy4/Lmz/i/fWI - pQIAAA== + H4sIAAAAAAAAA22Qy27bMBBF9/0KY9YyIMmKKhHoIsi2LxTpqimEMTVxiFAky4cL1/C/dyhVcRsU + EKB53OHcOWew/oBG/cKorAFxvhQQbUQNoiogpP01cXigJSA/LEldFkDeWw/CJK15gNDLJxBgcKJ3 + D3BPIW4+ezsmGR8AWGB95C2wP60j1o/0Z553ewpJxwDi2xnUCGJXgHRDjqAp6+6xr6r2phypaajM + EZG86QjLsm5h9hukVy7fMg/VxeyEp/92kpURfRxGjLlXl1W3LflrN1Ulyk5Uzebr/R3LyIxXUcOK + t9u6fy3CIyqNe82qLeP5kdBEFU9LJq0JaSL2wqxQSptMHEya9vQCjSXRo3xdDsk5pjVoOpJei265 + YCHS17td37X9rm3rma18psxufZZhronHaQ2V4eONpGFi0spplVdWMxL5rMxhfnuRzoqB8jmaJv6v + jXhymcnHT18+3L6Hq63/w05mQudoHA6JGyAeUQcq4Kj4Omv06d/Kzyf7UkguRE/Z+1y4fL+8+Q1U + 0xI9sgIAAA== headers: - apipie-checksum: [83fd72067f1c96eb1196b17193cc48d0] + apipie-checksum: [dab79c9ec668ec3e883819cf8cb0d52ed7b0b699] cache-control: ['max-age=0, private, must-revalidate'] connection: [Keep-Alive] content-encoding: [gzip] - content-length: ['403'] + content-length: ['406'] 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: ['Mon, 25 Jun 2018 18:11:45 GMT'] - etag: [W/"e0f2f761aedbb41a0e59c090474183dd-gzip"] + date: ['Mon, 06 Aug 2018 11:08:19 GMT'] + etag: [W/"162457c7792f8732a0174bf707ff20d3-gzip"] foreman_api_version: ['2'] - foreman_version: [1.17.1] + foreman_version: [1.18.0] keep-alive: ['timeout=5, max=10000'] server: [Apache/2.4.6 (CentOS)] - set-cookie: [_session_id=8ce7762a1898a517b212a6d6b6ba4b54; path=/; secure; HttpOnly] + set-cookie: [_session_id=bd9cb7e510a6c35ba16e87e5a0dc961d; path=/; secure; HttpOnly; + SameSite=Lax] status: [200 OK] strict-transport-security: [max-age=631139040; includeSubdomains] vary: [Accept-Encoding] @@ -341,8 +347,8 @@ interactions: x-frame-options: [sameorigin] x-permitted-cross-domain-policies: [none] x-powered-by: [Phusion Passenger 4.0.53] - x-request-id: [4019e814-c635-4b77-b7bb-4fbdc0489c80] - x-runtime: ['0.092345'] + x-request-id: [b6e8dfd5-8810-4c34-b0ae-9d1df5b1ca39] + x-runtime: ['0.182506'] x-xss-protection: [1; mode=block] status: {code: 200, message: OK} - request: @@ -354,34 +360,35 @@ interactions: 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/subscriptions/7 + uri: https://foreman.example.com/katello/api/v2/subscriptions/3 response: body: string: !!binary | - H4sIAAAAAAAAA31STU/EIBS8+yuad+4m0O1ua2/G6/oRs56MaSi8dclSwBZqGuN/F1q7RmM8AfOG - ecw8kuQdWMePUMHVbgcpCOx5J62TRkOlvVIp9N5a07najRYXTAqoihS4reMOcpKVh0sqtvm6IKIg - hIZdmeV4IA0h6xyiSnNWni7lKWjWBkXYY++S+84Iz11kOha6CeZiLSO0XJHtKtsktKworXKaPO6v - Aw21+CblE4kWv0lsYFKxRgXWiqbw6pl20o3ziRvd+xbDW0hgcm68drX2bYPd4jNQXMf4b3iJROGA - agHt7GBOpKDZptxsaFFeltGT4Sd0/bdsh+dDx9pzrDqY1xzr1isnrZKxJZ0i4SepXybtmToxaox2 - FLZhXQrzmOD27uHmKk50edbfYXvdMmtR1C8+FKA6MNVjCoMM7oxW40/k7WjOwNH0rp4ym/ILbQYp - gtBXv2Dv6R3+GfTHcwzdyYFNX+KEY7zy/HHxCSPhy3OUAgAA + H4sIAAAAAAAAA31Sy2rDMBC89yvMnh2QH3Ft30qvfVHSUylGkbeNiCypsuRiQv69kh0ntJSCQdJo + NLsz6yg6ADVsBzXc3N1BDC32zHBtuZJQSydEDL3TWhnb2FHjgvEW6iwGppuwg5yk5XuVJMWatJjn + SMIOka1LpISkBQSV7Vl5epTGIGnnFWGDvY2ejGods4Fpqa/WUhvuUpKUK+K/IkqSmpR1kkcvm1tP + Q9leSLlnXK/S6jeJDpQLuhWetUpi+HRUWm7H+cSU7F2HvhfimYwpJ20jXbdFs/j0FGso+w0vkQgc + UCygnh3MiVRpllVlUWVFkQZPiu3R9hdZg+eDod05VunNS4ZN54TlWvBQMpkiYXsuPybtmToxGgx2 + BHZ+XS7mMcHD4/P9TZjo0tbfYTvZUa2xbT6cv4D6nYoeYxi4d6ekGH8iXzt1BpzurcHQ+wnYqd42 + U4hToL7uwFuvfGrA+309wD+TP76FKVg+0Okf2eMYnrwdr74B5dZ/SaUCAAA= headers: - apipie-checksum: [83fd72067f1c96eb1196b17193cc48d0] + apipie-checksum: [dab79c9ec668ec3e883819cf8cb0d52ed7b0b699] cache-control: ['max-age=0, private, must-revalidate'] connection: [Keep-Alive] content-encoding: [gzip] - content-length: ['378'] + content-length: ['386'] 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: ['Mon, 25 Jun 2018 18:11:45 GMT'] - etag: [W/"2756fb9e6d8e82749de49601e88b81ac-gzip"] + date: ['Mon, 06 Aug 2018 11:08:19 GMT'] + etag: [W/"66e3ecb76edb5ae97e5970ed53ec8e59-gzip"] foreman_api_version: ['2'] - foreman_version: [1.17.1] + foreman_version: [1.18.0] keep-alive: ['timeout=5, max=10000'] server: [Apache/2.4.6 (CentOS)] - set-cookie: [_session_id=e0c4efa2cf1aedfc1b3d7c42d2c41c8c; path=/; secure; HttpOnly] + set-cookie: [_session_id=0af70b2a1beef1d338812eec3b410dd8; path=/; secure; HttpOnly; + SameSite=Lax] status: [200 OK] strict-transport-security: [max-age=631139040; includeSubdomains] vary: [Accept-Encoding] @@ -390,8 +397,8 @@ interactions: x-frame-options: [sameorigin] x-permitted-cross-domain-policies: [none] x-powered-by: [Phusion Passenger 4.0.53] - x-request-id: [a34d3b04-0c7d-48fe-977c-3fbe99840502] - x-runtime: ['0.114897'] + x-request-id: [0226ae2b-9c73-45b0-8a4b-a6533a7d0c64] + x-runtime: ['0.143616'] x-xss-protection: [1; mode=block] status: {code: 200, message: OK} - request: @@ -403,30 +410,31 @@ interactions: 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/activation_keys/5/subscriptions + uri: https://foreman.example.com/katello/api/v2/activation_keys/7/subscriptions response: body: string: !!binary | - H4sIAAAAAAAAA0WNvQrDMAyE9z7GzR7ajnqVUoLiiNRgrCDLQxvy7hUE2u2+4352qK3cyoe9aAPt - R4KrcwVdE/qY/7DxKqBbCLHphHvYYqYGaqPWKAhbfv1IzWMS8xuEvE1lQYq/RSIP7hlxZtJH9Q56 - PI/LFx5OcciOAAAA + H4sIAAAAAAAAA0WNOw7CQAxEe44xdQqg9FUQQg5YIdJqjWa9BUS5O5bCp5s3ms8C56R1fmnMXiHL + OiA8tED2A1of//DQySCHFMbLBse0jXRCai8lC6a83n/kjJzE+Pw6zpt9wnlEa71Eg5zO6+4NFbY4 + OooAAAA= headers: - apipie-checksum: [83fd72067f1c96eb1196b17193cc48d0] + apipie-checksum: [dab79c9ec668ec3e883819cf8cb0d52ed7b0b699] cache-control: ['max-age=0, private, must-revalidate'] connection: [Keep-Alive] content-encoding: [gzip] - content-length: ['126'] + 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: ['Mon, 25 Jun 2018 18:11:46 GMT'] - etag: [W/"89d3659dbcfcec8354478db70133099a-gzip"] + date: ['Mon, 06 Aug 2018 11:08:19 GMT'] + etag: [W/"6a550dd85ac054f32eac617faad8599c-gzip"] foreman_api_version: ['2'] - foreman_version: [1.17.1] + foreman_version: [1.18.0] keep-alive: ['timeout=5, max=10000'] server: [Apache/2.4.6 (CentOS)] - set-cookie: [_session_id=7ad972e219c86db66d46ffd499feb10e; path=/; secure; HttpOnly] + set-cookie: [_session_id=d88def8460c0ae8c3e76d92d3422c6dc; path=/; secure; HttpOnly; + SameSite=Lax] status: [200 OK] strict-transport-security: [max-age=631139040; includeSubdomains] vary: [Accept-Encoding] @@ -435,12 +443,12 @@ interactions: x-frame-options: [sameorigin] x-permitted-cross-domain-policies: [none] x-powered-by: [Phusion Passenger 4.0.53] - x-request-id: [d9625b1d-0f09-4c97-9df2-3f9dc188f24e] - x-runtime: ['0.075277'] + x-request-id: [8cbd1f2f-99ac-4f76-9162-934023e5e17b] + x-runtime: ['0.103485'] x-xss-protection: [1; mode=block] status: {code: 200, message: OK} - request: - body: !!python/unicode '{"subscription_id": 7, "quantity": 1}' + body: !!python/unicode '{"subscription_id": 3, "quantity": 1}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] @@ -449,32 +457,32 @@ interactions: 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/activation_keys/5/add_subscriptions + uri: https://foreman.example.com/katello/api/v2/activation_keys/7/add_subscriptions response: body: string: !!binary | - H4sIAAAAAAAAA22QQU7EMAxF95wCed1NhpYmOQULdghVbmKGaDJJ5KRIqOrdSSgdhMTO3/72f/IK - JRb0oEUHeZl/RcIz7QXxdBPEHBl0WLyvfkI27zcVuYBeYf48OpEt/Zi3Dpjy4ksG/bKCs6D7Dkya - WgVWGGFP2Et8eOvVOKhZjrOiRyRljRUCOgh4rQTwTLncP3G0iynQiFOqsZOnD/JHbNrH++lRnAY5 - DGKUSraFaC7UIHariZXqEC7kgsHQdK2cLnnX4NtbCpqLC+fvg38j/qPaXre7L1ksgMdWAQAA + H4sIAAAAAAAAA22PQQqDMBBF9z1F+Ws3VZCaU3TRXSkhxqGVRhMmSaGId2+CVTfd/TcM8/5MCDYo + A3Eq4GO7g1MPWgKx3ICYLUOM0Zi0T4r1cyPLAWJC+1knljv6Lc8FmHw0wUPcJvQdRFlAO5kTmrKq + mnPdVHVdosCohmTDlXw4Xth2UQfkds4lhTT0JrNL9Yvy0QW1TZYV+tEHNWqSQ/L2zvS5TH5oOSn/ + aeb7fPgChpH9KhMBAAA= headers: - apipie-checksum: [83fd72067f1c96eb1196b17193cc48d0] + apipie-checksum: [dab79c9ec668ec3e883819cf8cb0d52ed7b0b699] cache-control: ['max-age=0, private, must-revalidate'] connection: [Keep-Alive] content-encoding: [gzip] - content-length: ['225'] + content-length: ['185'] 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: ['Mon, 25 Jun 2018 18:11:46 GMT'] - etag: [W/"4edc5877b1111142e88323b8b3bd1a8e-gzip"] + date: ['Mon, 06 Aug 2018 11:08:19 GMT'] + etag: [W/"3f1a38f42127a0cbef58890ce9fd20a9-gzip"] foreman_api_version: ['2'] - foreman_version: [1.17.1] + foreman_version: [1.18.0] keep-alive: ['timeout=5, max=10000'] server: [Apache/2.4.6 (CentOS)] - set-cookie: [request_method=PUT; path=/, _session_id=c4c7a3792f8d3f7c1a4ab4ca38d722ad; - path=/; secure; HttpOnly] + set-cookie: [request_method=PUT; path=/; secure; HttpOnly; SameSite=Lax, _session_id=bb46833f827ccaacb5a78af515b4453e; + path=/; secure; HttpOnly; SameSite=Lax] status: [200 OK] strict-transport-security: [max-age=631139040; includeSubdomains] vary: [Accept-Encoding] @@ -483,8 +491,8 @@ interactions: x-frame-options: [sameorigin] x-permitted-cross-domain-policies: [none] x-powered-by: [Phusion Passenger 4.0.53] - x-request-id: [4a6480cd-763a-49c6-8c8a-ea0e36090b27] - x-runtime: ['0.183296'] + x-request-id: [b3ac3c42-3428-45e9-9295-0a135028bb2b] + x-runtime: ['0.219919'] x-xss-protection: [1; mode=block] status: {code: 200, message: OK} version: 1 diff --git a/test/test_playbooks/fixtures/activation_key-3.yml b/test/test_playbooks/fixtures/activation_key-3.yml index aaae1d0df0..33c2dff826 100644 --- a/test/test_playbooks/fixtures/activation_key-3.yml +++ b/test/test_playbooks/fixtures/activation_key-3.yml @@ -9,17 +9,17 @@ interactions: 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 + uri: https://foreman.example.com/katello/api/v2/organizations response: body: string: !!binary | - H4sIAAAAAAAAA42PzU7DMBCE73kKa8+pZKdQKl/LnUs5IRRt4qVYMkm0dg5tlHdn01SU8tubv5mx - ZmfIlILUJgxgVZFPFPvqUuhwRwJmBuLyJBR6zhNy/Src9CHMSstJeJC3ULX/5Am37IhPkijj8QtT - 7EOKIj8NELAiqYd7ekFRywfeYeMPmHzbQA41EyZyJUoJFNqsF3q1KG6VWVqjrb5Rj9uNxPrOXRPz - DqzJocE3OleqL5XJp/CH7SjW7Lsj2WnXmJ9XbCleP2FtjbHLu/8mXMamCauPCVPfb/f/5H0//jkb - s3eun9EdGQIAAA== + H4sIAAAAAAAAA42PzWrDMBCE734KsWcHJNOGoGty7yU9lWLW1jYVKLZZyYfW+N2zjkOSpn8BHfab + HTE7Q6YUpDZhAKuKfKLYV1+FDnckYGYgLk9CoWc/Idfvwk0fwqy0nIQHmYWqj6udcMuO+CSJMh6/ + MMU+pCjyywABK5J42NAbilo+8Q4b/4nJtw3kUDNhIleihEChzWqh5S2VXtpCW/OonrdrsfWdu8fm + HViTQ4N7ukSqm8jkU/hj7SjW7Lsj2anXmF9abCneXcEYq1fW6H8q3NimCg/nClPeb/f/tPt+/Gs2 + ZgfaukBkGQIAAA== headers: - apipie-checksum: [83fd72067f1c96eb1196b17193cc48d0] + apipie-checksum: [dab79c9ec668ec3e883819cf8cb0d52ed7b0b699] cache-control: ['max-age=0, private, must-revalidate'] connection: [Keep-Alive] content-encoding: [gzip] @@ -28,13 +28,14 @@ interactions: ''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: ['Mon, 25 Jun 2018 18:11:47 GMT'] - etag: [W/"1bbd6ea16aa12bcc2ae29b0d66604240-gzip"] + date: ['Mon, 06 Aug 2018 11:08:21 GMT'] + etag: [W/"e4b76139af4e38518f657cfd43eeb087-gzip"] foreman_api_version: ['2'] - foreman_version: [1.17.1] + foreman_version: [1.18.0] keep-alive: ['timeout=5, max=10000'] server: [Apache/2.4.6 (CentOS)] - set-cookie: [_session_id=c7a0471e019d5570202129e5a958f9d4; path=/; secure; HttpOnly] + set-cookie: [_session_id=4a43fcf242f526e5d26b1adeb0257d70; path=/; secure; HttpOnly; + SameSite=Lax] status: [200 OK] strict-transport-security: [max-age=631139040; includeSubdomains] vary: [Accept-Encoding] @@ -43,8 +44,8 @@ interactions: x-frame-options: [sameorigin] x-permitted-cross-domain-policies: [none] x-powered-by: [Phusion Passenger 4.0.53] - x-request-id: [d904ae67-1e4a-4d46-a41a-9407a2f7ac03] - x-runtime: ['0.038187'] + x-request-id: [a19385e8-f787-42ce-8a13-e0ae1b57316f] + x-runtime: ['0.061401'] x-xss-protection: [1; mode=block] status: {code: 200, message: OK} - request: @@ -57,31 +58,32 @@ interactions: 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 + uri: https://foreman.example.com/katello/api/v2/organizations response: body: string: !!binary | - H4sIAAAAAAAAA42PwWrDMAyG73kKo3MKccq6YthpD7BLd1pHUGLRGbwkyMqhC3n3qU7GxmCwm77P - v/mluTAGZBCM4Exd3ihN7ZewWYx4oW8gbjZRV2uekLs3ZejxnR7OcKIk5okv2IcPlDD0Z4A1ObBo - btZZqb3q3E8xlisP7Ik3pWbJX5jSFCWpfpkhYku6Vi5ofhZACR0TCvkGtQHqyh531WFX3xl7dNa6 - /b15Pj1qbBr9f2LBgzuU+aCtz/zqkyDxrzdPqeMwZnK3c5bXYik+ARRjpkZrAQAA + H4sIAAAAAAAAA42PwUrEMBCG732KMOcKSRFZAp58AC/ryV3KtBnWQGzLZHpwS9/d2bSiCIKQw3xf + /vBnlsoYkFEwgTdNfaM8d1/CFTHhhb6BuN1FY7c8IfdvyjDgOz2e4EhZzDNfcIhXlDgOJ4AtObJo + btFZqfvQeZhTqjceORDvSs1anjDlOUlW/bpAwo70W6Wg/VkANfRMKBRa1AZorDvcWT0PxjlvD95Z + 83J80tg8hf/EYgB/X5eF9j7zq0+ipL/uAuWe41TI39ZZz9VafQLTBt/JawEAAA== headers: - apipie-checksum: [83fd72067f1c96eb1196b17193cc48d0] + apipie-checksum: [dab79c9ec668ec3e883819cf8cb0d52ed7b0b699] cache-control: ['max-age=0, private, must-revalidate'] connection: [Keep-Alive] content-encoding: [gzip] - content-length: ['219'] + 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: ['Mon, 25 Jun 2018 18:11:47 GMT'] - etag: [W/"9c8c8aaf7b83d2204e99c3ffd578804f-gzip"] + date: ['Mon, 06 Aug 2018 11:08:21 GMT'] + etag: [W/"6a2dc381b9d75bbfab5b6f936f1d77c9-gzip"] foreman_api_version: ['2'] - foreman_version: [1.17.1] + foreman_version: [1.18.0] keep-alive: ['timeout=5, max=10000'] server: [Apache/2.4.6 (CentOS)] - set-cookie: [_session_id=19c69dc27140f5d33a9b8959cf6c06b5; path=/; secure; HttpOnly] + set-cookie: [_session_id=db3191dd0a7b103b2ffd621ba62f308d; path=/; secure; HttpOnly; + SameSite=Lax] status: [200 OK] strict-transport-security: [max-age=631139040; includeSubdomains] vary: [Accept-Encoding] @@ -90,12 +92,12 @@ interactions: x-frame-options: [sameorigin] x-permitted-cross-domain-policies: [none] x-powered-by: [Phusion Passenger 4.0.53] - x-request-id: [ee26bdc0-6662-4f5e-922e-bbf67f8cee0d] - x-runtime: ['0.039050'] + x-request-id: [d8662e52-bcd8-42c2-8b99-4b6c8fa79a91] + x-runtime: ['0.058863'] x-xss-protection: [1; mode=block] status: {code: 200, message: OK} - request: - body: !!python/unicode '{"organization_id": 6, "name": "Library"}' + body: !!python/unicode '{"organization_id": 4, "name": "Library"}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] @@ -104,35 +106,36 @@ interactions: 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/environments + uri: https://foreman.example.com/katello/api/v2/environments response: body: string: !!binary | - H4sIAAAAAAAAA41STU/jMBC98yuqOQepKQJVvu4ViUs5IWQ5zrS1cDzW2C6EKv8du0koXXYFN8+b - 5zdvPo4QKSoLoq4gpOYceLXD8YEsx2C1rACZiUG4ZG3+gIr1/jMijiCO0PQgwKkOoQLiFjMdVNAw - VMAYko0BxNMRrGlYceZGTliBaUHcVuM/AfdTsgKrGrQXSItBs/HRkJtLE++UM++qYLIo3V1ixdak - vMEQFw9fc+caJSf/yp3UsnXNqCK2UuUeYbWs19fLu+vV7aJei7oWN+vF4+ZPpiff/obm2XwZY9Ia - QzgDmpIrUzrml4vootxTKMCy+kQOBl9HxCv9kvczBcl7jLKjNtkJyitTURW1gDqxif1cp0m7rXmb - I3R75TR2WX2GpnMoQR5BnzrJ6CmYSGwm9Zb0S76Qb3g2zIjfcc/Zmi7N1MPpuDoTQh712O5pyNKa - LepeW5ToDobJFU9hvpTS+Q8UbE38gZKvKDL1/2VtlQ14sttRtkSlxY4OKC8WICP9Q30YnoerDxb4 - B3RaAwAA + H4sIAAAAAAAAA41STW/bMAy971cEPLuA3Q5F4euuA3bpTsUgyDKTCJUlgaKyuYH/e6nYTpp1Qwvo + ID4+Pn4egQNrB21TQcrdxYh6h/MHSc3GbV0BEgWC1mfnJAA1mf3ZCsTQHqEboQWvB4QKAvUodNDJ + wFQBYcqOE7RPR3C2I03CZcpYXDubmEZVIiUhM5JfpW0P7V01i7bwfYmswOkO3RXSYzJkI9twDg60 + 096+6IKpovT1Gis1L8qPmHjz463vkqP41F++k5r0ZQg1Y6+0DABu6+bhppZ3v2matn5om3rz8/Gb + 0HPsP0OLZN/MOBuDKV0AE7IvIzzKzzN6VvuQClBXZ+Rg8feMRG2eZXmLkWNEVkPos1sg2admXdQS + mkyWxzVPl3db+2e10O+1NziI+gott1IMGcGYB0UYQ7IcyC7qfTDPcj7vcCmYEN/jkaQ0U5ppptPl + DTYlGfXc7mnIytktmtE4VOgPloIvNaX1jErnH1Cwt/wBRa6IKYz/ZW21S3gqdwhSUigtDuGA6moB + isM/1Kfp1/TlFXYu5al3AwAA headers: - apipie-checksum: [83fd72067f1c96eb1196b17193cc48d0] + apipie-checksum: [dab79c9ec668ec3e883819cf8cb0d52ed7b0b699] cache-control: ['max-age=0, private, must-revalidate'] connection: [Keep-Alive] content-encoding: [gzip] - content-length: ['405'] + content-length: ['417'] 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: ['Mon, 25 Jun 2018 18:11:47 GMT'] - etag: [W/"14e1c72fd1500cf3d89471994aa29821-gzip"] + date: ['Mon, 06 Aug 2018 11:08:21 GMT'] + etag: [W/"7f2e2115dbc0cc9d55b30d99501a1857-gzip"] foreman_api_version: ['2'] - foreman_version: [1.17.1] + foreman_version: [1.18.0] keep-alive: ['timeout=5, max=10000'] server: [Apache/2.4.6 (CentOS)] - set-cookie: [_session_id=3b03620153d9ba489e838e6750b2e682; path=/; secure; HttpOnly] + set-cookie: [_session_id=35259db41bda67f38a74cec6ce1e6392; path=/; secure; HttpOnly; + SameSite=Lax] status: [200 OK] strict-transport-security: [max-age=631139040; includeSubdomains] vary: [Accept-Encoding] @@ -141,12 +144,12 @@ interactions: x-frame-options: [sameorigin] x-permitted-cross-domain-policies: [none] x-powered-by: [Phusion Passenger 4.0.53] - x-request-id: [138ad2e5-9e46-4325-b735-80487c5d30f5] - x-runtime: ['0.074288'] + x-request-id: [4fe9eee4-da49-4d27-8423-6a4f5edcd77e] + x-runtime: ['0.112181'] x-xss-protection: [1; mode=block] status: {code: 200, message: OK} - request: - body: !!python/unicode '{"organization_id": 6, "name": "Default Organization View"}' + body: !!python/unicode '{"organization_id": 4, "name": "Default Organization View"}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] @@ -155,36 +158,37 @@ interactions: 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 + uri: https://foreman.example.com/katello/api/v2/content_views response: body: string: !!binary | - H4sIAAAAAAAAA42TwW7bMAyG73sKg2d7sJMmDXwb1tsG7NLtMgSCLDGtUNkyKNmbF+TdR8Vu4mQZ - kJtFUuTH/5f3EFyQFsoiBd9V50MrX3D8QBLjYZGngESOoGw6a/kCSlKvp5OjAOUeqgFKaGSNkIIj - jVwO0is4pEDoOxs8lD/3oFzdOm8CN95J6zEdIw02QRgda7YpaNxJvgFloI4rdo4UirZrWwwCm96Q - a2q+cGrRI3njGqFcF6OMb2VAH8SUYJTiYw6R5Djc0XAeZjSUq3REL+FpHJ18oxfZmD8y8PXkh8Ff - EJtWaONaj3opc9TZYqWr7GFVYbZZF5g9LpQqltXuocg1xC28ItOGI8Aolpt1FXHw+jIWhZxAnpn/ - gmIGEHPiKnfsxmIrQt5dC8lCwCIvNlm+ZtCk2JRFUS43yffnz1zetfqespnao3+Xan01FUkaZmjn - CL+g2vgov49rMZaWlcXR1MNhO3PD4OTF5HHtdGffY5OHF+OvfW27yhr/ivreZSb7V9vIcXqB00Tl - mhBrerZdXCelCqYfDXzD4ZYoR+c+ncqSLzhAHNPg739fpJVs5X34V4JOdGdU//6/oDbhdoafZCA3 - 3E5OFP9JkqtdQOFIENaux1tl7Orhw1/w7qXPXAQAAA== + H4sIAAAAAAAAA42TTW+bQBCG7/0VaM64guAkmFuV3Fqpl7SXylot7JCsCiyaXWip5f/eWUMAu65k + yQd2Pp+Zd3wAZ5ysIItDsF2+PFr5iuMHkhgfd1EISGQIsqarKk5AScXb/DLkIDtAPkAGjawRQjCk + kMNB2gKOIRDarnIWsh8HKEzdGqsdFy5lZTEcLQ02TmjlY/YhKCwlZ0DmqOOI0lCBou3aFp3Aptdk + mpoT5hI9ktWmEYXpvJXxK+nQOjE5GCX+GDGY7JzhQnml7ducTXgiMjQsBFpBloTjPBk8jzzBV3qV + jf4jHdcMvmv8Bb5Tjrw7eMByey/LaJPgI262Kt1t8l2y28Rpeh8liFFeJuBHswXp1p2oxg2aVVXh + G2/PbX67E8gLD3VGsQLwPnHhO1VjBQpCXogSkrcDd1GcbiL+PQRxnEVpFkfBt5cnDu9adUvYSoJR + 1PNtfdE5SRpWaIuFz6rW1mti/ViMpWRe4aj08bhfqaFx0mISvjaqq95tk7Bn7S/FnnRGdeswk/zJ + 3nPMZzl1LEzjfEzPsotLpyyc7kcBf+KwUD2GZ8p9msOCzziAb9Pg73/PtJIs5W34Fwud6BZU+/4n + QqXddQ+fpCMzXHdOFP9xkqmNQ2FIENamx2thrOrxw1+2J44LcQQAAA== headers: - apipie-checksum: [83fd72067f1c96eb1196b17193cc48d0] + apipie-checksum: [dab79c9ec668ec3e883819cf8cb0d52ed7b0b699] cache-control: ['max-age=0, private, must-revalidate'] connection: [Keep-Alive] content-encoding: [gzip] - content-length: ['487'] + 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: ['Mon, 25 Jun 2018 18:11:47 GMT'] - etag: [W/"0a63468407dd1e63b75bb4e6e969fead-gzip"] + date: ['Mon, 06 Aug 2018 11:08:21 GMT'] + etag: [W/"3e9be73cb389ceae581837b82f42aebf-gzip"] foreman_api_version: ['2'] - foreman_version: [1.17.1] + foreman_version: [1.18.0] keep-alive: ['timeout=5, max=10000'] server: [Apache/2.4.6 (CentOS)] - set-cookie: [_session_id=79ff6924817b3e410343c19bc52741bc; path=/; secure; HttpOnly] + set-cookie: [_session_id=20de7c6b14141e20b117145e7f38908f; path=/; secure; HttpOnly; + SameSite=Lax] status: [200 OK] strict-transport-security: [max-age=631139040; includeSubdomains] vary: [Accept-Encoding] @@ -193,12 +197,12 @@ interactions: x-frame-options: [sameorigin] x-permitted-cross-domain-policies: [none] x-powered-by: [Phusion Passenger 4.0.53] - x-request-id: [20fad7a5-4195-43da-9873-19264692ed06] - x-runtime: ['0.058243'] + x-request-id: [1e246307-ed20-43b2-8993-b66d3b3e28e9] + x-runtime: ['0.093079'] x-xss-protection: [1; mode=block] status: {code: 200, message: OK} - request: - body: !!python/unicode '{"organization_id": 6, "name": "Test Activation Key"}' + body: !!python/unicode '{"organization_id": 4, "name": "Test Activation Key"}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] @@ -207,34 +211,35 @@ interactions: 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/activation_keys + uri: https://foreman.example.com/katello/api/v2/activation_keys response: body: string: !!binary | - H4sIAAAAAAAAA31SwW7bMAy97ysMnlUgDpKi0G1Yby3QHtpdhkBgZLYVKksBJWXzAv/7JNtN7aHt - TeR7FB/5eILoI1qQtYCQ9u/BAZ9pfBCrMVivBBCzZ5AuWZsLCFm/nCPPEeQJ9h1IcNgSCPDcUKYD - Bg29AKaQbAwgf53ANCC3YiRKeKAQq+86miNG4111Q10ubyhoNoeSeeuSnDWtidSoFx/KV5ETCcAU - vcIYseh5QhtyTnsXyUV1NPRbTe3IHQ1715b8lEohT6e0Ty7LX5U4T1ywjYAW/7z1GdszWcJA6kgc - Zqo8P6MzfwftQ+3lMlf2Mp/0bo4JsLgnO2HqP2z4Le9OM2EZG7NKWK/qq4vV5cV6W9VXsq7lZlM9 - PvzI9HRovqJtJ9p8N0Xc0o1resJs1EJm9bNQ+8UKZ2Pdmj0jd5PgbeYd2DdJz9zeLN2+H3HodwLK - jrMF1pIuvUrNbji91oQwJk4w+IjnG1Gv1J39p8bEz7B8RZF99zHc97v+2z+sTSo1BgMAAA== + H4sIAAAAAAAAA41SwU7jMBC98xXRnL1SUlZL5RuCGyvtHlguqLKmzgAWjl2N7S6hyr9jN2lJEUhI + OWTem/G8mTc7iD6iBdkICGn9HmzwkcYfYjUGi1oAMXsG6ZK1uYCQ9dMx8hxB7mDdgwSHHYEAzy3l + dMCgYRDAFJKNAeT9DkwL8kKMiRJuKcTqUkezxWi8q26oz+UtBc1mU5BDl+Ss6UykVj35UJ6KnEgA + pugVxohFzwPakDHtXSQX1dbQf1XanWf9bmvYu67gE5RCnk5pn1yWX5c4T1y4nwI6fDn0GdszWcJA + akscZqo8P6Izr3vth9o5VvYyn/TPnBNgcU124tQHbv9a3p1mwjI2ZpWwqJvljzp/v6qmkfVSNsvq + 3+1VTk+b9jtp890UcdMuJo3X9IDZqBOZ1V1JHU5WOBvrt1kzcj8JPs95G/Zt0jO3F6du/x15GFYC + yo6zBdaSLr1KzWp/ep0JYQR2sPcRjzeinqk/+k+tiV9x+Yoi+/5zehhWw9kbYQXIiAYDAAA= headers: - apipie-checksum: [83fd72067f1c96eb1196b17193cc48d0] + apipie-checksum: [dab79c9ec668ec3e883819cf8cb0d52ed7b0b699] cache-control: ['max-age=0, private, must-revalidate'] connection: [Keep-Alive] content-encoding: [gzip] - content-length: ['394'] + content-length: ['395'] 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: ['Mon, 25 Jun 2018 18:11:47 GMT'] - etag: [W/"b23cc6b582c5e5574fb1a4fda8f1956d-gzip"] + date: ['Mon, 06 Aug 2018 11:08:21 GMT'] + etag: [W/"309447b98a6a90df948c403a45d072e6-gzip"] foreman_api_version: ['2'] - foreman_version: [1.17.1] + foreman_version: [1.18.0] keep-alive: ['timeout=5, max=10000'] server: [Apache/2.4.6 (CentOS)] - set-cookie: [_session_id=316eb4f8c776a3f80b2cb22d61fa7624; path=/; secure; HttpOnly] + set-cookie: [_session_id=dfcb99519d093acf3830caa3b97f53b4; path=/; secure; HttpOnly; + SameSite=Lax] status: [200 OK] strict-transport-security: [max-age=631139040; includeSubdomains] vary: [Accept-Encoding] @@ -243,12 +248,12 @@ interactions: x-frame-options: [sameorigin] x-permitted-cross-domain-policies: [none] x-powered-by: [Phusion Passenger 4.0.53] - x-request-id: [e3f72fdd-406b-482d-afc5-48535ed9588d] - x-runtime: ['0.065727'] + x-request-id: [d3003f23-619b-470a-bc4a-50d39508671a] + x-runtime: ['0.098233'] x-xss-protection: [1; mode=block] status: {code: 200, message: OK} - request: - body: !!python/unicode '{"organization_id": 6, "search": "name=\"Test Product\""}' + body: !!python/unicode '{"organization_id": 4, "search": "name=\"Test Product\""}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] @@ -257,35 +262,36 @@ interactions: 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/subscriptions + uri: https://foreman.example.com/katello/api/v2/subscriptions response: body: string: !!binary | - H4sIAAAAAAAAA22QTW/bMAxA7/sVAc8OILlO7QrYYdh1Xxi60zoYtMykQmVJk6UMWZD/Ptqum63Y - SSL5RJHvDD4e0JnfmIx3oM6XApJPaEHJAsbcXYOAB1ouFNslKEUBFKOPoFy2lh8QRv0IChwO9PYB - 7mlMmy/R91mnBwAGfEz8C3QnhnRoTc9JH3viFoCjBv4/0phtGkF9PwPXVV08kwoqUTb7O9nfVje1 - 6GshJN+asqK96IS4qWCeedTRhGmf+VFVzNPw67+nmciEMbU9pqlWCtlsxe223G1ko6RUldx8u3/P - GLn+ClUzJOvXEB7RWOwsU1tW9DOjSyadlkh7N+aBeBb2hVr77FLr8tDRizhGUkT9Oj3mENhYa+lI - dk2GZYPFSC3LXbPbybq5a2a/+okmd2tblrkGEYf1ahwv7zS1A5s2wZrpSzkr0U/GHebeCzoTLU3r - WBr4XAvpFCYnnz5//fjuA1zH+r/s7AYMgfr2kLkAao92pAKOhrfzzp7+zfx69M+Jy4/Lmz/i/fWI - pQIAAA== + H4sIAAAAAAAAA22Qy27bMBBF9/0KY9YyIMmKKhHoIsi2LxTpqimEMTVxiFAky4cL1/C/dyhVcRsU + EKB53OHcOWew/oBG/cKorAFxvhQQbUQNoiogpP01cXigJSA/LEldFkDeWw/CJK15gNDLJxBgcKJ3 + D3BPIW4+ezsmGR8AWGB95C2wP60j1o/0Z553ewpJxwDi2xnUCGJXgHRDjqAp6+6xr6r2phypaajM + EZG86QjLsm5h9hukVy7fMg/VxeyEp/92kpURfRxGjLlXl1W3LflrN1Ulyk5Uzebr/R3LyIxXUcOK + t9u6fy3CIyqNe82qLeP5kdBEFU9LJq0JaSL2wqxQSptMHEya9vQCjSXRo3xdDsk5pjVoOpJei265 + YCHS17td37X9rm3rma18psxufZZhronHaQ2V4eONpGFi0spplVdWMxL5rMxhfnuRzoqB8jmaJv6v + jXhymcnHT18+3L6Hq63/w05mQudoHA6JGyAeUQcq4Kj4Omv06d/Kzyf7UkguRE/Z+1y4fL+8+Q1U + 0xI9sgIAAA== headers: - apipie-checksum: [83fd72067f1c96eb1196b17193cc48d0] + apipie-checksum: [dab79c9ec668ec3e883819cf8cb0d52ed7b0b699] cache-control: ['max-age=0, private, must-revalidate'] connection: [Keep-Alive] content-encoding: [gzip] - content-length: ['403'] + content-length: ['406'] 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: ['Mon, 25 Jun 2018 18:11:47 GMT'] - etag: [W/"e0f2f761aedbb41a0e59c090474183dd-gzip"] + date: ['Mon, 06 Aug 2018 11:08:21 GMT'] + etag: [W/"162457c7792f8732a0174bf707ff20d3-gzip"] foreman_api_version: ['2'] - foreman_version: [1.17.1] + foreman_version: [1.18.0] keep-alive: ['timeout=5, max=10000'] server: [Apache/2.4.6 (CentOS)] - set-cookie: [_session_id=433615d027d1ba8edd6499768f81579a; path=/; secure; HttpOnly] + set-cookie: [_session_id=0f62d88ed62d6d75beba166da77ee8ff; path=/; secure; HttpOnly; + SameSite=Lax] status: [200 OK] strict-transport-security: [max-age=631139040; includeSubdomains] vary: [Accept-Encoding] @@ -294,8 +300,8 @@ interactions: x-frame-options: [sameorigin] x-permitted-cross-domain-policies: [none] x-powered-by: [Phusion Passenger 4.0.53] - x-request-id: [f03a0fee-7ce7-4463-8a4b-76cca758b74e] - x-runtime: ['0.100057'] + x-request-id: [ae2f3243-5ad1-4214-8158-34191301f7b8] + x-runtime: ['0.193080'] x-xss-protection: [1; mode=block] status: {code: 200, message: OK} - request: @@ -307,35 +313,37 @@ interactions: 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/subscriptions/7 + uri: https://foreman.example.com/katello/api/v2/subscriptions/3 response: body: string: !!binary | - H4sIAAAAAAAAA32SwY6bMBCG730K5DORbBYWllvU3pp2q2rbS7VCxkwSK8amxmZFV3n3jmEhTVr1 - ZHv8+Z+ZfxxFr4RbcSQl2e52JCYN9MLKzkmjSam9UjHpfdcZ6yo3drDEZEPKPCaiq8KOpDQp9g+s - uU/vctrklDLcFUkKe1pTepeSoFKvytOjNCaat6hInqB30RdrGi9cIB3HbA134S6hrNjQ+02SRawo - GStTFn17eo8Y6OYCpRPE8luID1wqXiukNiwmPz3XTrpxPgmje98C1kKRFMJ47Srt2xrs0iciznJx - G14sUTCAWoLd3MHsSM6SrMgylhcPRejJiBO4/iJrYT1Y3q62amxeC6har5zslAwp2WSJOEl9mLRn - dCIqCO0oaHFdLuYxkc+PXz9tw0SXsv5tttct7zpoqoPHC1LuueohJoPE7oxW43Xk5WjWwNH0rpo8 - m/zDNINsUOgtH7b345X8Z9Dn52C6kwOfvsQJxsuT7PrJdsWijzBi1RYU8B6qAWz/508FO0h072os - oLF0o2eLbuV3srbcjuQ8jxqZapDw8jf4AfYcHY8e7YFr+Wsu5ntAz+fn87vfiAzKq0gDAAA= + H4sIAAAAAAAAA31STY+bMBS891cgn4kEhGUJt6i9Ne1W1baXaoUc85JYMbbrD1Y04r/3GQJptlUl + JOzneeM3M46iC6GGnUhFtrsdiUkDlhmuHVeSVNILERPrtVbG1a7XMNd4Q6p1TJiuw4rkSVYeNmla + PCQN5DkkYQXAHkqgSZIVJLDsF+axKYuJpC0ykmewLvpiVOOZC0hH8baGunCWJWm5SvArojStkrJK + 8+jb83uEgWxuoBwRj6ts8xZEO8oF3QtErdKY/PRUOu76aceUtL4FnCVBJGPKS1dL3+7BzDoR4gxl + b8uzJQI6EHNRTwomRzbZer0pi826KLKgSbEzOHujNbBsDG0XWyWKlwzq1gvHteDhynS0hJ25PI7c + E3RE1BDkCGjxPx9MMZHPT18/bUOi81j/NtvLlmoNTX30eECqAxUWYtJxVKek6O8rrye1FLy2zkCY + /Vo4Kevq0cTRULy34w0yXwdAvT8u5D/JDy8hBcc7Or6RM/S3lsf7lu0Ciz5CjzIMCKAW6g6M/fPp + guk42nmXE0jUouTk2WV+ylf6Hd8banoyTNkjpu44vP4N/AAHihFET+ZIJf81DfM9QIfhZXj3G76V + oztZAwAA headers: - apipie-checksum: [83fd72067f1c96eb1196b17193cc48d0] + apipie-checksum: [dab79c9ec668ec3e883819cf8cb0d52ed7b0b699] cache-control: ['max-age=0, private, must-revalidate'] connection: [Keep-Alive] content-encoding: [gzip] - content-length: ['452'] + content-length: ['462'] 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: ['Mon, 25 Jun 2018 18:11:48 GMT'] - etag: [W/"5f89472163966f30d64f79a9355b9965-gzip"] + date: ['Mon, 06 Aug 2018 11:08:22 GMT'] + etag: [W/"dc47f41282d55bad1e20dff1a920a75b-gzip"] foreman_api_version: ['2'] - foreman_version: [1.17.1] + foreman_version: [1.18.0] keep-alive: ['timeout=5, max=10000'] server: [Apache/2.4.6 (CentOS)] - set-cookie: [_session_id=5d711877bf122f7a802ffdf3e8b0fe36; path=/; secure; HttpOnly] + set-cookie: [_session_id=af597523efc211e66c98315160bece1c; path=/; secure; HttpOnly; + SameSite=Lax] status: [200 OK] strict-transport-security: [max-age=631139040; includeSubdomains] vary: [Accept-Encoding] @@ -344,8 +352,8 @@ interactions: x-frame-options: [sameorigin] x-permitted-cross-domain-policies: [none] x-powered-by: [Phusion Passenger 4.0.53] - x-request-id: [cba3be31-0f58-4226-9db2-9b5cd1759e9f] - x-runtime: ['0.163337'] + x-request-id: [3d64ebcd-8ca0-4aa9-ad41-21edfb09d45a] + x-runtime: ['0.160028'] x-xss-protection: [1; mode=block] status: {code: 200, message: OK} - request: @@ -357,35 +365,36 @@ interactions: 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/activation_keys/5/subscriptions + uri: https://foreman.example.com/katello/api/v2/activation_keys/7/subscriptions response: body: string: !!binary | - H4sIAAAAAAAAA22QTW/bMAyG7/sVAc8OILlO7eo27Npuw9CdhsGgZSYRKkuaLGXIgvz30XbdYMVO - EsmHH+97AR8P6MwfTMY7UJdrAckntKBkAWPubkHAAy0fiu0SlKIAitFHUC5byw2EUR/fIh8Tj4Tu - DAp0aE0PBe/riXnAUQMvizRmm0ZQPy7wK6NLJp1bTAn1kfp5HXepunjtV1CJstk/yP6+uqtFXwsh - +deUFe1FJ8RdBfPZo44mTJLmpqoAhwMfDM80ps3X6Pus00QmjKntMU21UshmK+635W4jGyWlquTm - +/Mnxsj1N6iaIVm/h/CExmJnmdry2auYJdLejXmYFLFlqLXPLrUuDx29ecdIiqjfp8ccAvvYWjqR - XZNhUbA4Usty1+x2sm4emkmT1y80ObqOZYvXIOKwfo1j8U5TO7D/JlgzrZSzJfrFuMM8e0FnoqVJ - jqWB37WQzmHy5POXb08fH+F21v/Nzm7AEKhvD5kLoPZoRyrgZFidd/b8b+b30b8mrj+vH/4ClWSX - PagCAAA= + H4sIAAAAAAAAA21QTYvbMBC991cEnR2wHa9r+1Z63W1L2Z5KERN5NhErS6o0SklD/ntHdp3QpSDQ + zJs3H+9dhAsHsPo3kHZWDJdrIcgRGDFUhYhpf088HHAJMMglqctCYAguiMEmY7gBIajjLXOBeKTY + n1fEhRH/knlRwJgMRTF8v4ifCSxpOksgAnXEcV6l+dsVQnmZI9GUdffSV1X7UI7YNFjmCFE9dAhl + WbdiPjmqoH2WMzfVhbAw8bHiGSNtvgQ3JkWZSRBIjkC5VpdVty35tZuqGspuqJrNt+ePTEM73kkN + M95v6/4tCU6gDewNs7Z89ipmyZSzMU1ZEdsFSrlkSdo07fHmG1MogHoLx+Q9eygNntCsoF8ULI70 + 9W7Xd22/a9s6a3LqFbOj61i2eE0CTGuoLYu3CuXE/mtvdF5ZzZaoV20P8+yFOjMkZjkGJ/7XAp19 + 9uTT569PHx7F/az/m53sBN7jKA+JC2J4AROxECfN6pw153+RX0d3A5KPFDDfPgPXH9d3fwD44kqG + tQIAAA== headers: - apipie-checksum: [83fd72067f1c96eb1196b17193cc48d0] + apipie-checksum: [dab79c9ec668ec3e883819cf8cb0d52ed7b0b699] cache-control: ['max-age=0, private, must-revalidate'] connection: [Keep-Alive] content-encoding: [gzip] - content-length: ['404'] + content-length: ['403'] 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: ['Mon, 25 Jun 2018 18:11:48 GMT'] - etag: [W/"701ce637b176cb7aa9f528afde1f9a65-gzip"] + date: ['Mon, 06 Aug 2018 11:08:22 GMT'] + etag: [W/"d29787f20c81081993b014df1a4b5004-gzip"] foreman_api_version: ['2'] - foreman_version: [1.17.1] + foreman_version: [1.18.0] keep-alive: ['timeout=5, max=10000'] server: [Apache/2.4.6 (CentOS)] - set-cookie: [_session_id=a87041375eaf804fa61bb4a496839824; path=/; secure; HttpOnly] + set-cookie: [_session_id=d142d4c804ebe6861e0e8706c6e760f4; path=/; secure; HttpOnly; + SameSite=Lax] status: [200 OK] strict-transport-security: [max-age=631139040; includeSubdomains] vary: [Accept-Encoding] @@ -394,8 +403,8 @@ interactions: x-frame-options: [sameorigin] x-permitted-cross-domain-policies: [none] x-powered-by: [Phusion Passenger 4.0.53] - x-request-id: [e1a52a08-098e-463d-8066-2b56b06f4c7d] - x-runtime: ['0.086950'] + x-request-id: [f6670a23-847c-440d-9669-576c79e20b10] + x-runtime: ['0.181700'] x-xss-protection: [1; mode=block] status: {code: 200, message: OK} version: 1 diff --git a/test/test_playbooks/fixtures/activation_key-5.yml b/test/test_playbooks/fixtures/activation_key-5.yml index 555852a7a5..1c0e294390 100644 --- a/test/test_playbooks/fixtures/activation_key-5.yml +++ b/test/test_playbooks/fixtures/activation_key-5.yml @@ -9,17 +9,17 @@ interactions: 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 + uri: https://foreman.example.com/katello/api/v2/organizations response: body: string: !!binary | - H4sIAAAAAAAAA42PzU7DMBCE73kKa8+pZKdQKl/LnUs5IRRt4qVYMkm0dg5tlHdn01SU8tubv5mx - ZmfIlILUJgxgVZFPFPvqUuhwRwJmBuLyJBR6zhNy/Src9CHMSstJeJC3ULX/5Am37IhPkijj8QtT - 7EOKIj8NELAiqYd7ekFRywfeYeMPmHzbQA41EyZyJUoJFNqsF3q1KG6VWVqjrb5Rj9uNxPrOXRPz - DqzJocE3OleqL5XJp/CH7SjW7Lsj2WnXmJ9XbCleP2FtjbHLu/8mXMamCauPCVPfb/f/5H0//jkb - s3eun9EdGQIAAA== + H4sIAAAAAAAAA42PzWrDMBCE734KsWcHJNOGoGty7yU9lWLW1jYVKLZZyYfW+N2zjkOSpn8BHfab + HTE7Q6YUpDZhAKuKfKLYV1+FDnckYGYgLk9CoWc/Idfvwk0fwqy0nIQHmYWqj6udcMuO+CSJMh6/ + MMU+pCjyywABK5J42NAbilo+8Q4b/4nJtw3kUDNhIleihEChzWqh5S2VXtpCW/OonrdrsfWdu8fm + HViTQ4N7ukSqm8jkU/hj7SjW7Lsj2anXmF9abCneXcEYq1fW6H8q3NimCg/nClPeb/f/tPt+/Gs2 + ZgfaukBkGQIAAA== headers: - apipie-checksum: [83fd72067f1c96eb1196b17193cc48d0] + apipie-checksum: [dab79c9ec668ec3e883819cf8cb0d52ed7b0b699] cache-control: ['max-age=0, private, must-revalidate'] connection: [Keep-Alive] content-encoding: [gzip] @@ -28,13 +28,14 @@ interactions: ''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: ['Mon, 25 Jun 2018 18:11:49 GMT'] - etag: [W/"1bbd6ea16aa12bcc2ae29b0d66604240-gzip"] + date: ['Mon, 06 Aug 2018 11:08:23 GMT'] + etag: [W/"e4b76139af4e38518f657cfd43eeb087-gzip"] foreman_api_version: ['2'] - foreman_version: [1.17.1] + foreman_version: [1.18.0] keep-alive: ['timeout=5, max=10000'] server: [Apache/2.4.6 (CentOS)] - set-cookie: [_session_id=d25916aeff6eb30333129cc09f5060d5; path=/; secure; HttpOnly] + set-cookie: [_session_id=57da1de3c41f9ad163e3f8fa8315d957; path=/; secure; HttpOnly; + SameSite=Lax] status: [200 OK] strict-transport-security: [max-age=631139040; includeSubdomains] vary: [Accept-Encoding] @@ -43,8 +44,8 @@ interactions: x-frame-options: [sameorigin] x-permitted-cross-domain-policies: [none] x-powered-by: [Phusion Passenger 4.0.53] - x-request-id: [4f11c570-6b44-49dc-b7a4-28844bddad3c] - x-runtime: ['0.039405'] + x-request-id: [c253af9e-b4ee-40e2-b58c-7e9b04d8eb76] + x-runtime: ['0.045763'] x-xss-protection: [1; mode=block] status: {code: 200, message: OK} - request: @@ -57,31 +58,32 @@ interactions: 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 + uri: https://foreman.example.com/katello/api/v2/organizations response: body: string: !!binary | - H4sIAAAAAAAAA42PwWrDMAyG73kKo3MKccq6YthpD7BLd1pHUGLRGbwkyMqhC3n3qU7GxmCwm77P - v/mluTAGZBCM4Exd3ihN7ZewWYx4oW8gbjZRV2uekLs3ZejxnR7OcKIk5okv2IcPlDD0Z4A1ObBo - btZZqb3q3E8xlisP7Ik3pWbJX5jSFCWpfpkhYku6Vi5ofhZACR0TCvkGtQHqyh531WFX3xl7dNa6 - /b15Pj1qbBr9f2LBgzuU+aCtz/zqkyDxrzdPqeMwZnK3c5bXYik+ARRjpkZrAQAA + H4sIAAAAAAAAA42PwUrEMBCG732KMOcKSRFZAp58AC/ryV3KtBnWQGzLZHpwS9/d2bSiCIKQw3xf + /vBnlsoYkFEwgTdNfaM8d1/CFTHhhb6BuN1FY7c8IfdvyjDgOz2e4EhZzDNfcIhXlDgOJ4AtObJo + btFZqfvQeZhTqjceORDvSs1anjDlOUlW/bpAwo70W6Wg/VkANfRMKBRa1AZorDvcWT0PxjlvD95Z + 83J80tg8hf/EYgB/X5eF9j7zq0+ipL/uAuWe41TI39ZZz9VafQLTBt/JawEAAA== headers: - apipie-checksum: [83fd72067f1c96eb1196b17193cc48d0] + apipie-checksum: [dab79c9ec668ec3e883819cf8cb0d52ed7b0b699] cache-control: ['max-age=0, private, must-revalidate'] connection: [Keep-Alive] content-encoding: [gzip] - content-length: ['219'] + 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: ['Mon, 25 Jun 2018 18:11:49 GMT'] - etag: [W/"9c8c8aaf7b83d2204e99c3ffd578804f-gzip"] + date: ['Mon, 06 Aug 2018 11:08:24 GMT'] + etag: [W/"6a2dc381b9d75bbfab5b6f936f1d77c9-gzip"] foreman_api_version: ['2'] - foreman_version: [1.17.1] + foreman_version: [1.18.0] keep-alive: ['timeout=5, max=10000'] server: [Apache/2.4.6 (CentOS)] - set-cookie: [_session_id=18710e60a82e2a89e074f63465805c09; path=/; secure; HttpOnly] + set-cookie: [_session_id=907da1ecf20b03bcd5adacfc8878978b; path=/; secure; HttpOnly; + SameSite=Lax] status: [200 OK] strict-transport-security: [max-age=631139040; includeSubdomains] vary: [Accept-Encoding] @@ -90,12 +92,12 @@ interactions: x-frame-options: [sameorigin] x-permitted-cross-domain-policies: [none] x-powered-by: [Phusion Passenger 4.0.53] - x-request-id: [c7af44df-0774-422f-9a90-e4791fc1313b] - x-runtime: ['0.042479'] + x-request-id: [d32a242e-704b-42c9-8582-0ec8a273ba40] + x-runtime: ['0.050649'] x-xss-protection: [1; mode=block] status: {code: 200, message: OK} - request: - body: !!python/unicode '{"organization_id": 6, "name": "Library"}' + body: !!python/unicode '{"organization_id": 4, "name": "Library"}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] @@ -104,35 +106,36 @@ interactions: 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/environments + uri: https://foreman.example.com/katello/api/v2/environments response: body: string: !!binary | - H4sIAAAAAAAAA41STU/jMBC98yuqOQepKQJVvu4ViUs5IWQ5zrS1cDzW2C6EKv8du0koXXYFN8+b - 5zdvPo4QKSoLoq4gpOYceLXD8YEsx2C1rACZiUG4ZG3+gIr1/jMijiCO0PQgwKkOoQLiFjMdVNAw - VMAYko0BxNMRrGlYceZGTliBaUHcVuM/AfdTsgKrGrQXSItBs/HRkJtLE++UM++qYLIo3V1ixdak - vMEQFw9fc+caJSf/yp3UsnXNqCK2UuUeYbWs19fLu+vV7aJei7oWN+vF4+ZPpiff/obm2XwZY9Ia - QzgDmpIrUzrml4vootxTKMCy+kQOBl9HxCv9kvczBcl7jLKjNtkJyitTURW1gDqxif1cp0m7rXmb - I3R75TR2WX2GpnMoQR5BnzrJ6CmYSGwm9Zb0S76Qb3g2zIjfcc/Zmi7N1MPpuDoTQh712O5pyNKa - LepeW5ToDobJFU9hvpTS+Q8UbE38gZKvKDL1/2VtlQ14sttRtkSlxY4OKC8WICP9Q30YnoerDxb4 - B3RaAwAA + H4sIAAAAAAAAA41STW/bMAy971cEPLuA3Q5F4euuA3bpTsUgyDKTCJUlgaKyuYH/e6nYTpp1Qwvo + ID4+Pn4egQNrB21TQcrdxYh6h/MHSc3GbV0BEgWC1mfnJAA1mf3ZCsTQHqEboQWvB4QKAvUodNDJ + wFQBYcqOE7RPR3C2I03CZcpYXDubmEZVIiUhM5JfpW0P7V01i7bwfYmswOkO3RXSYzJkI9twDg60 + 096+6IKpovT1Gis1L8qPmHjz463vkqP41F++k5r0ZQg1Y6+0DABu6+bhppZ3v2matn5om3rz8/Gb + 0HPsP0OLZN/MOBuDKV0AE7IvIzzKzzN6VvuQClBXZ+Rg8feMRG2eZXmLkWNEVkPos1sg2admXdQS + mkyWxzVPl3db+2e10O+1NziI+gott1IMGcGYB0UYQ7IcyC7qfTDPcj7vcCmYEN/jkaQ0U5ppptPl + DTYlGfXc7mnIytktmtE4VOgPloIvNaX1jErnH1Cwt/wBRa6IKYz/ZW21S3gqdwhSUigtDuGA6moB + isM/1Kfp1/TlFXYu5al3AwAA headers: - apipie-checksum: [83fd72067f1c96eb1196b17193cc48d0] + apipie-checksum: [dab79c9ec668ec3e883819cf8cb0d52ed7b0b699] cache-control: ['max-age=0, private, must-revalidate'] connection: [Keep-Alive] content-encoding: [gzip] - content-length: ['405'] + content-length: ['417'] 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: ['Mon, 25 Jun 2018 18:11:49 GMT'] - etag: [W/"14e1c72fd1500cf3d89471994aa29821-gzip"] + date: ['Mon, 06 Aug 2018 11:08:24 GMT'] + etag: [W/"7f2e2115dbc0cc9d55b30d99501a1857-gzip"] foreman_api_version: ['2'] - foreman_version: [1.17.1] + foreman_version: [1.18.0] keep-alive: ['timeout=5, max=10000'] server: [Apache/2.4.6 (CentOS)] - set-cookie: [_session_id=26c5f9f73f4bc1b6f6f6a91fd534bb31; path=/; secure; HttpOnly] + set-cookie: [_session_id=190e7bcd33186a584f412fd0e5488aa4; path=/; secure; HttpOnly; + SameSite=Lax] status: [200 OK] strict-transport-security: [max-age=631139040; includeSubdomains] vary: [Accept-Encoding] @@ -141,12 +144,12 @@ interactions: x-frame-options: [sameorigin] x-permitted-cross-domain-policies: [none] x-powered-by: [Phusion Passenger 4.0.53] - x-request-id: [f78f13b4-4b33-49c6-bd3a-5b233cd7ba9a] - x-runtime: ['0.070721'] + x-request-id: [0dab1600-3833-47c8-af7b-00d7d38cf14b] + x-runtime: ['0.088144'] x-xss-protection: [1; mode=block] status: {code: 200, message: OK} - request: - body: !!python/unicode '{"organization_id": 6, "name": "Default Organization View"}' + body: !!python/unicode '{"organization_id": 4, "name": "Default Organization View"}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] @@ -155,36 +158,37 @@ interactions: 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 + uri: https://foreman.example.com/katello/api/v2/content_views response: body: string: !!binary | - H4sIAAAAAAAAA42TwW7bMAyG73sKg2d7sJMmDXwb1tsG7NLtMgSCLDGtUNkyKNmbF+TdR8Vu4mQZ - kJtFUuTH/5f3EFyQFsoiBd9V50MrX3D8QBLjYZGngESOoGw6a/kCSlKvp5OjAOUeqgFKaGSNkIIj - jVwO0is4pEDoOxs8lD/3oFzdOm8CN95J6zEdIw02QRgda7YpaNxJvgFloI4rdo4UirZrWwwCm96Q - a2q+cGrRI3njGqFcF6OMb2VAH8SUYJTiYw6R5Djc0XAeZjSUq3REL+FpHJ18oxfZmD8y8PXkh8Ff - EJtWaONaj3opc9TZYqWr7GFVYbZZF5g9LpQqltXuocg1xC28ItOGI8Aolpt1FXHw+jIWhZxAnpn/ - gmIGEHPiKnfsxmIrQt5dC8lCwCIvNlm+ZtCk2JRFUS43yffnz1zetfqespnao3+Xan01FUkaZmjn - CL+g2vgov49rMZaWlcXR1MNhO3PD4OTF5HHtdGffY5OHF+OvfW27yhr/ivreZSb7V9vIcXqB00Tl - mhBrerZdXCelCqYfDXzD4ZYoR+c+ncqSLzhAHNPg739fpJVs5X34V4JOdGdU//6/oDbhdoafZCA3 - 3E5OFP9JkqtdQOFIENaux1tl7Orhw1/w7qXPXAQAAA== + H4sIAAAAAAAAA42TTW+bQBCG7/0VaM64guAkmFuV3Fqpl7SXylot7JCsCiyaXWip5f/eWUMAu65k + yQd2Pp+Zd3wAZ5ysIItDsF2+PFr5iuMHkhgfd1EISGQIsqarKk5AScXb/DLkIDtAPkAGjawRQjCk + kMNB2gKOIRDarnIWsh8HKEzdGqsdFy5lZTEcLQ02TmjlY/YhKCwlZ0DmqOOI0lCBou3aFp3Aptdk + mpoT5hI9ktWmEYXpvJXxK+nQOjE5GCX+GDGY7JzhQnml7ducTXgiMjQsBFpBloTjPBk8jzzBV3qV + jf4jHdcMvmv8Bb5Tjrw7eMByey/LaJPgI262Kt1t8l2y28Rpeh8liFFeJuBHswXp1p2oxg2aVVXh + G2/PbX67E8gLD3VGsQLwPnHhO1VjBQpCXogSkrcDd1GcbiL+PQRxnEVpFkfBt5cnDu9adUvYSoJR + 1PNtfdE5SRpWaIuFz6rW1mti/ViMpWRe4aj08bhfqaFx0mISvjaqq95tk7Bn7S/FnnRGdeswk/zJ + 3nPMZzl1LEzjfEzPsotLpyyc7kcBf+KwUD2GZ8p9msOCzziAb9Pg73/PtJIs5W34Fwud6BZU+/4n + QqXddQ+fpCMzXHdOFP9xkqmNQ2FIENamx2thrOrxw1+2J44LcQQAAA== headers: - apipie-checksum: [83fd72067f1c96eb1196b17193cc48d0] + apipie-checksum: [dab79c9ec668ec3e883819cf8cb0d52ed7b0b699] cache-control: ['max-age=0, private, must-revalidate'] connection: [Keep-Alive] content-encoding: [gzip] - content-length: ['487'] + 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: ['Mon, 25 Jun 2018 18:11:49 GMT'] - etag: [W/"0a63468407dd1e63b75bb4e6e969fead-gzip"] + date: ['Mon, 06 Aug 2018 11:08:24 GMT'] + etag: [W/"3e9be73cb389ceae581837b82f42aebf-gzip"] foreman_api_version: ['2'] - foreman_version: [1.17.1] + foreman_version: [1.18.0] keep-alive: ['timeout=5, max=10000'] server: [Apache/2.4.6 (CentOS)] - set-cookie: [_session_id=3f4fa5b32233e981bd4ba560d500deb8; path=/; secure; HttpOnly] + set-cookie: [_session_id=6b26ebadcfae5e763ed9fab48711b79b; path=/; secure; HttpOnly; + SameSite=Lax] status: [200 OK] strict-transport-security: [max-age=631139040; includeSubdomains] vary: [Accept-Encoding] @@ -193,12 +197,12 @@ interactions: x-frame-options: [sameorigin] x-permitted-cross-domain-policies: [none] x-powered-by: [Phusion Passenger 4.0.53] - x-request-id: [77b7bd5d-41fb-445f-b9d1-dc4d1f7e38d9] - x-runtime: ['0.063265'] + x-request-id: [d5ed3872-214c-4237-8f26-dec5f0deb378] + x-runtime: ['0.071879'] x-xss-protection: [1; mode=block] status: {code: 200, message: OK} - request: - body: !!python/unicode '{"organization_id": 6, "name": "Test Activation Key"}' + body: !!python/unicode '{"organization_id": 4, "name": "Test Activation Key"}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] @@ -207,34 +211,35 @@ interactions: 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/activation_keys + uri: https://foreman.example.com/katello/api/v2/activation_keys response: body: string: !!binary | - H4sIAAAAAAAAA31SwW7bMAy97ysMnlUgDpKi0G1Yby3QHtpdhkBgZLYVKksBJWXzAv/7JNtN7aHt - TeR7FB/5eILoI1qQtYCQ9u/BAZ9pfBCrMVivBBCzZ5AuWZsLCFm/nCPPEeQJ9h1IcNgSCPDcUKYD - Bg29AKaQbAwgf53ANCC3YiRKeKAQq+86miNG4111Q10ubyhoNoeSeeuSnDWtidSoFx/KV5ETCcAU - vcIYseh5QhtyTnsXyUV1NPRbTe3IHQ1715b8lEohT6e0Ty7LX5U4T1ywjYAW/7z1GdszWcJA6kgc - Zqo8P6MzfwftQ+3lMlf2Mp/0bo4JsLgnO2HqP2z4Le9OM2EZG7NKWK/qq4vV5cV6W9VXsq7lZlM9 - PvzI9HRovqJtJ9p8N0Xc0o1resJs1EJm9bNQ+8UKZ2Pdmj0jd5PgbeYd2DdJz9zeLN2+H3HodwLK - jrMF1pIuvUrNbji91oQwJk4w+IjnG1Gv1J39p8bEz7B8RZF99zHc97v+2z+sTSo1BgMAAA== + H4sIAAAAAAAAA41SwU7jMBC98xXRnL1SUlZL5RuCGyvtHlguqLKmzgAWjl2N7S6hyr9jN2lJEUhI + OWTem/G8mTc7iD6iBdkICGn9HmzwkcYfYjUGi1oAMXsG6ZK1uYCQ9dMx8hxB7mDdgwSHHYEAzy3l + dMCgYRDAFJKNAeT9DkwL8kKMiRJuKcTqUkezxWi8q26oz+UtBc1mU5BDl+Ss6UykVj35UJ6KnEgA + pugVxohFzwPakDHtXSQX1dbQf1XanWf9bmvYu67gE5RCnk5pn1yWX5c4T1y4nwI6fDn0GdszWcJA + akscZqo8P6Izr3vth9o5VvYyn/TPnBNgcU124tQHbv9a3p1mwjI2ZpWwqJvljzp/v6qmkfVSNsvq + 3+1VTk+b9jtp890UcdMuJo3X9IDZqBOZ1V1JHU5WOBvrt1kzcj8JPs95G/Zt0jO3F6du/x15GFYC + yo6zBdaSLr1KzWp/ep0JYQR2sPcRjzeinqk/+k+tiV9x+Yoi+/5zehhWw9kbYQXIiAYDAAA= headers: - apipie-checksum: [83fd72067f1c96eb1196b17193cc48d0] + apipie-checksum: [dab79c9ec668ec3e883819cf8cb0d52ed7b0b699] cache-control: ['max-age=0, private, must-revalidate'] connection: [Keep-Alive] content-encoding: [gzip] - content-length: ['394'] + content-length: ['395'] 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: ['Mon, 25 Jun 2018 18:11:49 GMT'] - etag: [W/"b23cc6b582c5e5574fb1a4fda8f1956d-gzip"] + date: ['Mon, 06 Aug 2018 11:08:24 GMT'] + etag: [W/"309447b98a6a90df948c403a45d072e6-gzip"] foreman_api_version: ['2'] - foreman_version: [1.17.1] + foreman_version: [1.18.0] keep-alive: ['timeout=5, max=10000'] server: [Apache/2.4.6 (CentOS)] - set-cookie: [_session_id=2a2be5b099e7a69e45ea2488b7cb60d0; path=/; secure; HttpOnly] + set-cookie: [_session_id=47609bac60ad3a530d22752d81c11050; path=/; secure; HttpOnly; + SameSite=Lax] status: [200 OK] strict-transport-security: [max-age=631139040; includeSubdomains] vary: [Accept-Encoding] @@ -243,14 +248,14 @@ interactions: x-frame-options: [sameorigin] x-permitted-cross-domain-policies: [none] x-powered-by: [Phusion Passenger 4.0.53] - x-request-id: [729c3f95-88d9-4885-bc10-eafd80124cd7] - x-runtime: ['0.077516'] + x-request-id: [3ffefb23-f42f-4363-a69c-6af0d6e4252a] + x-runtime: ['0.071266'] x-xss-protection: [1; mode=block] status: {code: 200, message: OK} - request: - body: !!python/unicode '{"content_view_id": 5, "environment_id": 5, "max_hosts": - null, "description": null, "unlimited_hosts": true, "organization_id": 6, "auto_attach": - true, "host_collection_ids": [], "id": 5, "name": "Test Activation Key"}' + body: !!python/unicode '{"content_view_id": 3, "environment_id": 3, "max_hosts": + null, "description": null, "unlimited_hosts": true, "organization_id": 4, "auto_attach": + true, "host_collection_ids": [], "id": 7, "name": "Test Activation Key"}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] @@ -259,35 +264,35 @@ interactions: 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/activation_keys/5 + uri: https://foreman.example.com/katello/api/v2/activation_keys/7 response: body: string: !!binary | - H4sIAAAAAAAAA31Sy07DMBC88xXRnlMprZKq8g3BDSQ4FC4VslxnaS0cO/IjEKr8O3YeKEHA0TPj - 3ZndTZILWDSN4EglNiiBKC9lClwrh8pR3aAxokQL5PCSgiiBFCkoViEQ2KN1yTV3omFOaJXcYQsp - BDE3oo7IVM0rKSrhsKRnbV2o5YzHFJh3mjLnGD9P0NS3EfhOx26oGmG0qiI+Qt6yE1KuvXJAsvhG - 03N5ChX7mNoM3Q1KZBZpiGJnprQ5MSU+e+v93+0SA3JZBH2YcylIdozj6jn6g+urdSGNQRZTs+AS - Ntl6t8q2q02RrHdkvSZ5njztb4Lc1+U/siIbZfPZRHPLZdziK/NyaTN5jtJuMcJZrHtxNMy0o+Ei - 6GqjS8/j6A5D/Xy57MeBhy7cQpxxWIGUyGOv8UJqNJWwdgAu0O+RfZ8IfcP2e/1YCvcXF47IGd3+ - Tnfd1RcElEILuQIAAA== + H4sIAAAAAAAAA31Sy07DMBC88xXRno2UtBVUviG4gQSHwqVClussrYVjR34EQpV/x86jShEg5eKZ + ye7s7GbZERzaRgpkChtUQHVQioAw2qP2zDRorSzRAd2+EpAl0GsCmlcIFDbofHYjvGy4l0Zn99gC + gSgWVtYJmaoFrWQlPZbsYJyPtbwNSIAHbxj3novDBE19G4kfLHVbEkDdSGt0lfARCo7vkQkTtAea + pzfanlsRqPjn1GboblEhd8jiKG5mytg91/Krtz79O8eAHs8GfZxzBBTfpbh6jv3g+mpdnMYiT1Pz + 6BIWebG+zON3lRUFzde0WGfPm9soD3X5j2yxGmXzbJK5MYvR4x2+8aDObWYvSdqdRTgb60HuLLft + aHgZdbU1ZRApuu1Qf3G+7KeBhy7eQso4rkApFKnXeCE12ko6NwBH6PfITyfC3rE9rR9L6f/i4hF5 + a9rf6a67+AZU+9qmuQIAAA== headers: - apipie-checksum: [83fd72067f1c96eb1196b17193cc48d0] + apipie-checksum: [dab79c9ec668ec3e883819cf8cb0d52ed7b0b699] cache-control: ['max-age=0, private, must-revalidate'] connection: [Keep-Alive] content-encoding: [gzip] - content-length: ['355'] + content-length: ['358'] 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: ['Mon, 25 Jun 2018 18:11:50 GMT'] - etag: [W/"b161d1e2c273ee23bbf9662f31ad29f7-gzip"] + date: ['Mon, 06 Aug 2018 11:08:24 GMT'] + etag: [W/"f88e839fa3a698d5ef2dd9eca4fc4743-gzip"] foreman_api_version: ['2'] - foreman_version: [1.17.1] + foreman_version: [1.18.0] keep-alive: ['timeout=5, max=10000'] server: [Apache/2.4.6 (CentOS)] - set-cookie: [request_method=PUT; path=/, _session_id=f5b8f41a53b2c99d59e86bec43ecfc2e; - path=/; secure; HttpOnly] + set-cookie: [request_method=PUT; path=/; secure; HttpOnly; SameSite=Lax, _session_id=6408f4af9d7002ad5a53e61d0c47bf99; + path=/; secure; HttpOnly; SameSite=Lax] status: [200 OK] strict-transport-security: [max-age=631139040; includeSubdomains] vary: [Accept-Encoding] @@ -296,12 +301,12 @@ interactions: x-frame-options: [sameorigin] x-permitted-cross-domain-policies: [none] x-powered-by: [Phusion Passenger 4.0.53] - x-request-id: [4aa50e1c-05f3-4af4-b437-e30fcb789494] - x-runtime: ['0.347959'] + x-request-id: [405f79ab-79a8-4082-b68c-56240a2068ab] + x-runtime: ['0.495271'] x-xss-protection: [1; mode=block] status: {code: 200, message: OK} - request: - body: !!python/unicode '{"organization_id": 6, "search": "name=\"Test Product\""}' + body: !!python/unicode '{"organization_id": 4, "search": "name=\"Test Product\""}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] @@ -310,35 +315,36 @@ interactions: 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/subscriptions + uri: https://foreman.example.com/katello/api/v2/subscriptions response: body: string: !!binary | - H4sIAAAAAAAAA22QTW/bMAxA7/sVAc8OILlO7QrYYdh1Xxi60zoYtMykQmVJk6UMWZD/Ptqum63Y - SSL5RJHvDD4e0JnfmIx3oM6XApJPaEHJAsbcXYOAB1ouFNslKEUBFKOPoFy2lh8QRv0IChwO9PYB - 7mlMmy/R91mnBwAGfEz8C3QnhnRoTc9JH3viFoCjBv4/0phtGkF9PwPXVV08kwoqUTb7O9nfVje1 - 6GshJN+asqK96IS4qWCeedTRhGmf+VFVzNPw67+nmciEMbU9pqlWCtlsxe223G1ko6RUldx8u3/P - GLn+ClUzJOvXEB7RWOwsU1tW9DOjSyadlkh7N+aBeBb2hVr77FLr8tDRizhGUkT9Oj3mENhYa+lI - dk2GZYPFSC3LXbPbybq5a2a/+okmd2tblrkGEYf1ahwv7zS1A5s2wZrpSzkr0U/GHebeCzoTLU3r - WBr4XAvpFCYnnz5//fjuA1zH+r/s7AYMgfr2kLkAao92pAKOhrfzzp7+zfx69M+Jy4/Lmz/i/fWI - pQIAAA== + H4sIAAAAAAAAA22Qy27bMBBF9/0KY9YyIMmKKhHoIsi2LxTpqimEMTVxiFAky4cL1/C/dyhVcRsU + EKB53OHcOWew/oBG/cKorAFxvhQQbUQNoiogpP01cXigJSA/LEldFkDeWw/CJK15gNDLJxBgcKJ3 + D3BPIW4+ezsmGR8AWGB95C2wP60j1o/0Z553ewpJxwDi2xnUCGJXgHRDjqAp6+6xr6r2phypaajM + EZG86QjLsm5h9hukVy7fMg/VxeyEp/92kpURfRxGjLlXl1W3LflrN1Ulyk5Uzebr/R3LyIxXUcOK + t9u6fy3CIyqNe82qLeP5kdBEFU9LJq0JaSL2wqxQSptMHEya9vQCjSXRo3xdDsk5pjVoOpJei265 + YCHS17td37X9rm3rma18psxufZZhronHaQ2V4eONpGFi0spplVdWMxL5rMxhfnuRzoqB8jmaJv6v + jXhymcnHT18+3L6Hq63/w05mQudoHA6JGyAeUQcq4Kj4Omv06d/Kzyf7UkguRE/Z+1y4fL+8+Q1U + 0xI9sgIAAA== headers: - apipie-checksum: [83fd72067f1c96eb1196b17193cc48d0] + apipie-checksum: [dab79c9ec668ec3e883819cf8cb0d52ed7b0b699] cache-control: ['max-age=0, private, must-revalidate'] connection: [Keep-Alive] content-encoding: [gzip] - content-length: ['403'] + content-length: ['406'] 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: ['Mon, 25 Jun 2018 18:11:50 GMT'] - etag: [W/"e0f2f761aedbb41a0e59c090474183dd-gzip"] + date: ['Mon, 06 Aug 2018 11:08:24 GMT'] + etag: [W/"162457c7792f8732a0174bf707ff20d3-gzip"] foreman_api_version: ['2'] - foreman_version: [1.17.1] + foreman_version: [1.18.0] keep-alive: ['timeout=5, max=10000'] server: [Apache/2.4.6 (CentOS)] - set-cookie: [_session_id=fbe1ed801fd7bc7dbc7fbe6d76aaec06; path=/; secure; HttpOnly] + set-cookie: [_session_id=a36f09f5600cef70c07709bcbb31f5a2; path=/; secure; HttpOnly; + SameSite=Lax] status: [200 OK] strict-transport-security: [max-age=631139040; includeSubdomains] vary: [Accept-Encoding] @@ -347,8 +353,8 @@ interactions: x-frame-options: [sameorigin] x-permitted-cross-domain-policies: [none] x-powered-by: [Phusion Passenger 4.0.53] - x-request-id: [8288f71c-9453-48f6-9b73-0bacec6164f7] - x-runtime: ['0.091478'] + x-request-id: [9701eb8c-0406-4e91-93b5-3b92c3b947aa] + x-runtime: ['0.185950'] x-xss-protection: [1; mode=block] status: {code: 200, message: OK} - request: @@ -360,35 +366,37 @@ interactions: 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/subscriptions/7 + uri: https://foreman.example.com/katello/api/v2/subscriptions/3 response: body: string: !!binary | - H4sIAAAAAAAAA32SwY6bMBCG730K5DORbBYWllvU3pp2q2rbS7VCxkwSK8amxmZFV3n3jmEhTVr1 - ZHv8+Z+ZfxxFr4RbcSQl2e52JCYN9MLKzkmjSam9UjHpfdcZ6yo3drDEZEPKPCaiq8KOpDQp9g+s - uU/vctrklDLcFUkKe1pTepeSoFKvytOjNCaat6hInqB30RdrGi9cIB3HbA134S6hrNjQ+02SRawo - GStTFn17eo8Y6OYCpRPE8luID1wqXiukNiwmPz3XTrpxPgmje98C1kKRFMJ47Srt2xrs0iciznJx - G14sUTCAWoLd3MHsSM6SrMgylhcPRejJiBO4/iJrYT1Y3q62amxeC6har5zslAwp2WSJOEl9mLRn - dCIqCO0oaHFdLuYxkc+PXz9tw0SXsv5tttct7zpoqoPHC1LuueohJoPE7oxW43Xk5WjWwNH0rpo8 - m/zDNINsUOgtH7b345X8Z9Dn52C6kwOfvsQJxsuT7PrJdsWijzBi1RYU8B6qAWz/508FO0h072os - oLF0o2eLbuV3srbcjuQ8jxqZapDw8jf4AfYcHY8e7YFr+Wsu5ntAz+fn87vfiAzKq0gDAAA= + H4sIAAAAAAAAA31STY+bMBS891cgn4kEhGUJt6i9Ne1W1baXaoUc85JYMbbrD1Y04r/3GQJptlUl + JOzneeM3M46iC6GGnUhFtrsdiUkDlhmuHVeSVNILERPrtVbG1a7XMNd4Q6p1TJiuw4rkSVYeNmla + PCQN5DkkYQXAHkqgSZIVJLDsF+axKYuJpC0ykmewLvpiVOOZC0hH8baGunCWJWm5SvArojStkrJK + 8+jb83uEgWxuoBwRj6ts8xZEO8oF3QtErdKY/PRUOu76aceUtL4FnCVBJGPKS1dL3+7BzDoR4gxl + b8uzJQI6EHNRTwomRzbZer0pi826KLKgSbEzOHujNbBsDG0XWyWKlwzq1gvHteDhynS0hJ25PI7c + E3RE1BDkCGjxPx9MMZHPT18/bUOi81j/NtvLlmoNTX30eECqAxUWYtJxVKek6O8rrye1FLy2zkCY + /Vo4Kevq0cTRULy34w0yXwdAvT8u5D/JDy8hBcc7Or6RM/S3lsf7lu0Ciz5CjzIMCKAW6g6M/fPp + guk42nmXE0jUouTk2WV+ylf6Hd8banoyTNkjpu44vP4N/AAHihFET+ZIJf81DfM9QIfhZXj3G76V + oztZAwAA headers: - apipie-checksum: [83fd72067f1c96eb1196b17193cc48d0] + apipie-checksum: [dab79c9ec668ec3e883819cf8cb0d52ed7b0b699] cache-control: ['max-age=0, private, must-revalidate'] connection: [Keep-Alive] content-encoding: [gzip] - content-length: ['452'] + content-length: ['462'] 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: ['Mon, 25 Jun 2018 18:11:50 GMT'] - etag: [W/"5f89472163966f30d64f79a9355b9965-gzip"] + date: ['Mon, 06 Aug 2018 11:08:25 GMT'] + etag: [W/"dc47f41282d55bad1e20dff1a920a75b-gzip"] foreman_api_version: ['2'] - foreman_version: [1.17.1] + foreman_version: [1.18.0] keep-alive: ['timeout=5, max=10000'] server: [Apache/2.4.6 (CentOS)] - set-cookie: [_session_id=c46cef8abf8c5a353c640ffaf44b603a; path=/; secure; HttpOnly] + set-cookie: [_session_id=7068c1c38de720bcb90d8a988df33f4b; path=/; secure; HttpOnly; + SameSite=Lax] status: [200 OK] strict-transport-security: [max-age=631139040; includeSubdomains] vary: [Accept-Encoding] @@ -397,8 +405,8 @@ interactions: x-frame-options: [sameorigin] x-permitted-cross-domain-policies: [none] x-powered-by: [Phusion Passenger 4.0.53] - x-request-id: [9de81e59-bd11-44e6-87fb-61d179170d84] - x-runtime: ['0.164239'] + x-request-id: [e8d3b65f-1c38-4d18-8dc3-f12410126ca0] + x-runtime: ['0.157101'] x-xss-protection: [1; mode=block] status: {code: 200, message: OK} - request: @@ -410,35 +418,36 @@ interactions: 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/activation_keys/5/subscriptions + uri: https://foreman.example.com/katello/api/v2/activation_keys/7/subscriptions response: body: string: !!binary | - H4sIAAAAAAAAA22QTW/bMAyG7/sVAc8OILlO7eo27Npuw9CdhsGgZSYRKkuaLGXIgvz30XbdYMVO - EsmHH+97AR8P6MwfTMY7UJdrAckntKBkAWPubkHAAy0fiu0SlKIAitFHUC5byw2EUR/fIh8Tj4Tu - DAp0aE0PBe/riXnAUQMvizRmm0ZQPy7wK6NLJp1bTAn1kfp5HXepunjtV1CJstk/yP6+uqtFXwsh - +deUFe1FJ8RdBfPZo44mTJLmpqoAhwMfDM80ps3X6Pus00QmjKntMU21UshmK+635W4jGyWlquTm - +/Mnxsj1N6iaIVm/h/CExmJnmdry2auYJdLejXmYFLFlqLXPLrUuDx29ecdIiqjfp8ccAvvYWjqR - XZNhUbA4Usty1+x2sm4emkmT1y80ObqOZYvXIOKwfo1j8U5TO7D/JlgzrZSzJfrFuMM8e0FnoqVJ - jqWB37WQzmHy5POXb08fH+F21v/Nzm7AEKhvD5kLoPZoRyrgZFidd/b8b+b30b8mrj+vH/4ClWSX - PagCAAA= + H4sIAAAAAAAAA21QTYvbMBC991cEnR2wHa9r+1Z63W1L2Z5KERN5NhErS6o0SklD/ntHdp3QpSDQ + zJs3H+9dhAsHsPo3kHZWDJdrIcgRGDFUhYhpf088HHAJMMglqctCYAguiMEmY7gBIajjLXOBeKTY + n1fEhRH/knlRwJgMRTF8v4ifCSxpOksgAnXEcV6l+dsVQnmZI9GUdffSV1X7UI7YNFjmCFE9dAhl + WbdiPjmqoH2WMzfVhbAw8bHiGSNtvgQ3JkWZSRBIjkC5VpdVty35tZuqGspuqJrNt+ePTEM73kkN + M95v6/4tCU6gDewNs7Z89ipmyZSzMU1ZEdsFSrlkSdo07fHmG1MogHoLx+Q9eygNntCsoF8ULI70 + 9W7Xd22/a9s6a3LqFbOj61i2eE0CTGuoLYu3CuXE/mtvdF5ZzZaoV20P8+yFOjMkZjkGJ/7XAp19 + 9uTT569PHx7F/az/m53sBN7jKA+JC2J4AROxECfN6pw153+RX0d3A5KPFDDfPgPXH9d3fwD44kqG + tQIAAA== headers: - apipie-checksum: [83fd72067f1c96eb1196b17193cc48d0] + apipie-checksum: [dab79c9ec668ec3e883819cf8cb0d52ed7b0b699] cache-control: ['max-age=0, private, must-revalidate'] connection: [Keep-Alive] content-encoding: [gzip] - content-length: ['404'] + content-length: ['403'] 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: ['Mon, 25 Jun 2018 18:11:50 GMT'] - etag: [W/"701ce637b176cb7aa9f528afde1f9a65-gzip"] + date: ['Mon, 06 Aug 2018 11:08:25 GMT'] + etag: [W/"d29787f20c81081993b014df1a4b5004-gzip"] foreman_api_version: ['2'] - foreman_version: [1.17.1] + foreman_version: [1.18.0] keep-alive: ['timeout=5, max=10000'] server: [Apache/2.4.6 (CentOS)] - set-cookie: [_session_id=1d37b8c761ee2b331a70029ac879bb59; path=/; secure; HttpOnly] + set-cookie: [_session_id=38949393170acfb8081b8886ea15cc17; path=/; secure; HttpOnly; + SameSite=Lax] status: [200 OK] strict-transport-security: [max-age=631139040; includeSubdomains] vary: [Accept-Encoding] @@ -447,8 +456,8 @@ interactions: x-frame-options: [sameorigin] x-permitted-cross-domain-policies: [none] x-powered-by: [Phusion Passenger 4.0.53] - x-request-id: [b8b34899-8856-4c20-8042-45e8fa4a8d12] - x-runtime: ['0.083599'] + x-request-id: [5bf6b189-c65e-4a5e-80ed-ed0077e52d0f] + x-runtime: ['0.165258'] x-xss-protection: [1; mode=block] status: {code: 200, message: OK} version: 1 diff --git a/test/test_playbooks/fixtures/activation_key-7.yml b/test/test_playbooks/fixtures/activation_key-7.yml index 49ac4ec52e..0dea54f991 100644 --- a/test/test_playbooks/fixtures/activation_key-7.yml +++ b/test/test_playbooks/fixtures/activation_key-7.yml @@ -9,17 +9,17 @@ interactions: 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 + uri: https://foreman.example.com/katello/api/v2/organizations response: body: string: !!binary | - H4sIAAAAAAAAA42PzU7DMBCE73kKa8+pZKdQKl/LnUs5IRRt4qVYMkm0dg5tlHdn01SU8tubv5mx - ZmfIlILUJgxgVZFPFPvqUuhwRwJmBuLyJBR6zhNy/Src9CHMSstJeJC3ULX/5Am37IhPkijj8QtT - 7EOKIj8NELAiqYd7ekFRywfeYeMPmHzbQA41EyZyJUoJFNqsF3q1KG6VWVqjrb5Rj9uNxPrOXRPz - DqzJocE3OleqL5XJp/CH7SjW7Lsj2WnXmJ9XbCleP2FtjbHLu/8mXMamCauPCVPfb/f/5H0//jkb - s3eun9EdGQIAAA== + H4sIAAAAAAAAA42PzWrDMBCE734KsWcHJNOGoGty7yU9lWLW1jYVKLZZyYfW+N2zjkOSpn8BHfab + HTE7Q6YUpDZhAKuKfKLYV1+FDnckYGYgLk9CoWc/Idfvwk0fwqy0nIQHmYWqj6udcMuO+CSJMh6/ + MMU+pCjyywABK5J42NAbilo+8Q4b/4nJtw3kUDNhIleihEChzWqh5S2VXtpCW/OonrdrsfWdu8fm + HViTQ4N7ukSqm8jkU/hj7SjW7Lsj2anXmF9abCneXcEYq1fW6H8q3NimCg/nClPeb/f/tPt+/Gs2 + ZgfaukBkGQIAAA== headers: - apipie-checksum: [83fd72067f1c96eb1196b17193cc48d0] + apipie-checksum: [dab79c9ec668ec3e883819cf8cb0d52ed7b0b699] cache-control: ['max-age=0, private, must-revalidate'] connection: [Keep-Alive] content-encoding: [gzip] @@ -28,13 +28,14 @@ interactions: ''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: ['Mon, 25 Jun 2018 18:11:52 GMT'] - etag: [W/"1bbd6ea16aa12bcc2ae29b0d66604240-gzip"] + date: ['Mon, 06 Aug 2018 11:08:26 GMT'] + etag: [W/"e4b76139af4e38518f657cfd43eeb087-gzip"] foreman_api_version: ['2'] - foreman_version: [1.17.1] + foreman_version: [1.18.0] keep-alive: ['timeout=5, max=10000'] server: [Apache/2.4.6 (CentOS)] - set-cookie: [_session_id=20a6a287062dc91484afcaa5a0a2de1e; path=/; secure; HttpOnly] + set-cookie: [_session_id=7aa549b9820116d01534474006d4e756; path=/; secure; HttpOnly; + SameSite=Lax] status: [200 OK] strict-transport-security: [max-age=631139040; includeSubdomains] vary: [Accept-Encoding] @@ -43,8 +44,8 @@ interactions: x-frame-options: [sameorigin] x-permitted-cross-domain-policies: [none] x-powered-by: [Phusion Passenger 4.0.53] - x-request-id: [f7009143-3294-4a0b-a325-62b50483e13e] - x-runtime: ['0.037621'] + x-request-id: [8fa9d13d-5de3-4582-9bf6-fd6081d7468e] + x-runtime: ['0.061284'] x-xss-protection: [1; mode=block] status: {code: 200, message: OK} - request: @@ -57,31 +58,32 @@ interactions: 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 + uri: https://foreman.example.com/katello/api/v2/organizations response: body: string: !!binary | - H4sIAAAAAAAAA42PwWrDMAyG73kKo3MKccq6YthpD7BLd1pHUGLRGbwkyMqhC3n3qU7GxmCwm77P - v/mluTAGZBCM4Exd3ihN7ZewWYx4oW8gbjZRV2uekLs3ZejxnR7OcKIk5okv2IcPlDD0Z4A1ObBo - btZZqb3q3E8xlisP7Ik3pWbJX5jSFCWpfpkhYku6Vi5ofhZACR0TCvkGtQHqyh531WFX3xl7dNa6 - /b15Pj1qbBr9f2LBgzuU+aCtz/zqkyDxrzdPqeMwZnK3c5bXYik+ARRjpkZrAQAA + H4sIAAAAAAAAA42PwUrEMBCG732KMOcKSRFZAp58AC/ryV3KtBnWQGzLZHpwS9/d2bSiCIKQw3xf + /vBnlsoYkFEwgTdNfaM8d1/CFTHhhb6BuN1FY7c8IfdvyjDgOz2e4EhZzDNfcIhXlDgOJ4AtObJo + btFZqfvQeZhTqjceORDvSs1anjDlOUlW/bpAwo70W6Wg/VkANfRMKBRa1AZorDvcWT0PxjlvD95Z + 83J80tg8hf/EYgB/X5eF9j7zq0+ipL/uAuWe41TI39ZZz9VafQLTBt/JawEAAA== headers: - apipie-checksum: [83fd72067f1c96eb1196b17193cc48d0] + apipie-checksum: [dab79c9ec668ec3e883819cf8cb0d52ed7b0b699] cache-control: ['max-age=0, private, must-revalidate'] connection: [Keep-Alive] content-encoding: [gzip] - content-length: ['219'] + 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: ['Mon, 25 Jun 2018 18:11:52 GMT'] - etag: [W/"9c8c8aaf7b83d2204e99c3ffd578804f-gzip"] + date: ['Mon, 06 Aug 2018 11:08:27 GMT'] + etag: [W/"6a2dc381b9d75bbfab5b6f936f1d77c9-gzip"] foreman_api_version: ['2'] - foreman_version: [1.17.1] + foreman_version: [1.18.0] keep-alive: ['timeout=5, max=10000'] server: [Apache/2.4.6 (CentOS)] - set-cookie: [_session_id=3083c0b115a7d3d00af214cae41a81a6; path=/; secure; HttpOnly] + set-cookie: [_session_id=b4aa10311073948d80d8f60a42b96894; path=/; secure; HttpOnly; + SameSite=Lax] status: [200 OK] strict-transport-security: [max-age=631139040; includeSubdomains] vary: [Accept-Encoding] @@ -90,12 +92,12 @@ interactions: x-frame-options: [sameorigin] x-permitted-cross-domain-policies: [none] x-powered-by: [Phusion Passenger 4.0.53] - x-request-id: [5aa51087-9268-49be-aa8a-92c75c952065] - x-runtime: ['0.040672'] + x-request-id: [f74f9104-0af0-437f-84ed-e6535eb366d4] + x-runtime: ['0.062305'] x-xss-protection: [1; mode=block] status: {code: 200, message: OK} - request: - body: !!python/unicode '{"organization_id": 6, "name": "Library"}' + body: !!python/unicode '{"organization_id": 4, "name": "Library"}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] @@ -104,35 +106,36 @@ interactions: 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/environments + uri: https://foreman.example.com/katello/api/v2/environments response: body: string: !!binary | - H4sIAAAAAAAAA41STU/jMBC98yuqOQepKQJVvu4ViUs5IWQ5zrS1cDzW2C6EKv8du0koXXYFN8+b - 5zdvPo4QKSoLoq4gpOYceLXD8YEsx2C1rACZiUG4ZG3+gIr1/jMijiCO0PQgwKkOoQLiFjMdVNAw - VMAYko0BxNMRrGlYceZGTliBaUHcVuM/AfdTsgKrGrQXSItBs/HRkJtLE++UM++qYLIo3V1ixdak - vMEQFw9fc+caJSf/yp3UsnXNqCK2UuUeYbWs19fLu+vV7aJei7oWN+vF4+ZPpiff/obm2XwZY9Ia - QzgDmpIrUzrml4vootxTKMCy+kQOBl9HxCv9kvczBcl7jLKjNtkJyitTURW1gDqxif1cp0m7rXmb - I3R75TR2WX2GpnMoQR5BnzrJ6CmYSGwm9Zb0S76Qb3g2zIjfcc/Zmi7N1MPpuDoTQh712O5pyNKa - LepeW5ToDobJFU9hvpTS+Q8UbE38gZKvKDL1/2VtlQ14sttRtkSlxY4OKC8WICP9Q30YnoerDxb4 - B3RaAwAA + H4sIAAAAAAAAA41STW/bMAy971cEPLuA3Q5F4euuA3bpTsUgyDKTCJUlgaKyuYH/e6nYTpp1Qwvo + ID4+Pn4egQNrB21TQcrdxYh6h/MHSc3GbV0BEgWC1mfnJAA1mf3ZCsTQHqEboQWvB4QKAvUodNDJ + wFQBYcqOE7RPR3C2I03CZcpYXDubmEZVIiUhM5JfpW0P7V01i7bwfYmswOkO3RXSYzJkI9twDg60 + 096+6IKpovT1Gis1L8qPmHjz463vkqP41F++k5r0ZQg1Y6+0DABu6+bhppZ3v2matn5om3rz8/Gb + 0HPsP0OLZN/MOBuDKV0AE7IvIzzKzzN6VvuQClBXZ+Rg8feMRG2eZXmLkWNEVkPos1sg2admXdQS + mkyWxzVPl3db+2e10O+1NziI+gott1IMGcGYB0UYQ7IcyC7qfTDPcj7vcCmYEN/jkaQ0U5ppptPl + DTYlGfXc7mnIytktmtE4VOgPloIvNaX1jErnH1Cwt/wBRa6IKYz/ZW21S3gqdwhSUigtDuGA6moB + isM/1Kfp1/TlFXYu5al3AwAA headers: - apipie-checksum: [83fd72067f1c96eb1196b17193cc48d0] + apipie-checksum: [dab79c9ec668ec3e883819cf8cb0d52ed7b0b699] cache-control: ['max-age=0, private, must-revalidate'] connection: [Keep-Alive] content-encoding: [gzip] - content-length: ['405'] + content-length: ['417'] 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: ['Mon, 25 Jun 2018 18:11:52 GMT'] - etag: [W/"14e1c72fd1500cf3d89471994aa29821-gzip"] + date: ['Mon, 06 Aug 2018 11:08:27 GMT'] + etag: [W/"7f2e2115dbc0cc9d55b30d99501a1857-gzip"] foreman_api_version: ['2'] - foreman_version: [1.17.1] + foreman_version: [1.18.0] keep-alive: ['timeout=5, max=10000'] server: [Apache/2.4.6 (CentOS)] - set-cookie: [_session_id=96d56a206f1eca88e214d6a00503a370; path=/; secure; HttpOnly] + set-cookie: [_session_id=514cbcfdec77305a9b35c0242c0d0cfb; path=/; secure; HttpOnly; + SameSite=Lax] status: [200 OK] strict-transport-security: [max-age=631139040; includeSubdomains] vary: [Accept-Encoding] @@ -141,12 +144,12 @@ interactions: x-frame-options: [sameorigin] x-permitted-cross-domain-policies: [none] x-powered-by: [Phusion Passenger 4.0.53] - x-request-id: [2187423c-774f-4910-9123-2ac013d66276] - x-runtime: ['0.078312'] + x-request-id: [09d73b25-6803-41d5-a828-061818ff27d1] + x-runtime: ['0.112475'] x-xss-protection: [1; mode=block] status: {code: 200, message: OK} - request: - body: !!python/unicode '{"organization_id": 6, "name": "Default Organization View"}' + body: !!python/unicode '{"organization_id": 4, "name": "Default Organization View"}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] @@ -155,36 +158,37 @@ interactions: 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 + uri: https://foreman.example.com/katello/api/v2/content_views response: body: string: !!binary | - H4sIAAAAAAAAA42TwW7bMAyG73sKg2d7sJMmDXwb1tsG7NLtMgSCLDGtUNkyKNmbF+TdR8Vu4mQZ - kJtFUuTH/5f3EFyQFsoiBd9V50MrX3D8QBLjYZGngESOoGw6a/kCSlKvp5OjAOUeqgFKaGSNkIIj - jVwO0is4pEDoOxs8lD/3oFzdOm8CN95J6zEdIw02QRgda7YpaNxJvgFloI4rdo4UirZrWwwCm96Q - a2q+cGrRI3njGqFcF6OMb2VAH8SUYJTiYw6R5Djc0XAeZjSUq3REL+FpHJ18oxfZmD8y8PXkh8Ff - EJtWaONaj3opc9TZYqWr7GFVYbZZF5g9LpQqltXuocg1xC28ItOGI8Aolpt1FXHw+jIWhZxAnpn/ - gmIGEHPiKnfsxmIrQt5dC8lCwCIvNlm+ZtCk2JRFUS43yffnz1zetfqespnao3+Xan01FUkaZmjn - CL+g2vgov49rMZaWlcXR1MNhO3PD4OTF5HHtdGffY5OHF+OvfW27yhr/ivreZSb7V9vIcXqB00Tl - mhBrerZdXCelCqYfDXzD4ZYoR+c+ncqSLzhAHNPg739fpJVs5X34V4JOdGdU//6/oDbhdoafZCA3 - 3E5OFP9JkqtdQOFIENaux1tl7Orhw1/w7qXPXAQAAA== + H4sIAAAAAAAAA42TTW+bQBCG7/0VaM64guAkmFuV3Fqpl7SXylot7JCsCiyaXWip5f/eWUMAu65k + yQd2Pp+Zd3wAZ5ysIItDsF2+PFr5iuMHkhgfd1EISGQIsqarKk5AScXb/DLkIDtAPkAGjawRQjCk + kMNB2gKOIRDarnIWsh8HKEzdGqsdFy5lZTEcLQ02TmjlY/YhKCwlZ0DmqOOI0lCBou3aFp3Aptdk + mpoT5hI9ktWmEYXpvJXxK+nQOjE5GCX+GDGY7JzhQnml7ducTXgiMjQsBFpBloTjPBk8jzzBV3qV + jf4jHdcMvmv8Bb5Tjrw7eMByey/LaJPgI262Kt1t8l2y28Rpeh8liFFeJuBHswXp1p2oxg2aVVXh + G2/PbX67E8gLD3VGsQLwPnHhO1VjBQpCXogSkrcDd1GcbiL+PQRxnEVpFkfBt5cnDu9adUvYSoJR + 1PNtfdE5SRpWaIuFz6rW1mti/ViMpWRe4aj08bhfqaFx0mISvjaqq95tk7Bn7S/FnnRGdeswk/zJ + 3nPMZzl1LEzjfEzPsotLpyyc7kcBf+KwUD2GZ8p9msOCzziAb9Pg73/PtJIs5W34Fwud6BZU+/4n + QqXddQ+fpCMzXHdOFP9xkqmNQ2FIENamx2thrOrxw1+2J44LcQQAAA== headers: - apipie-checksum: [83fd72067f1c96eb1196b17193cc48d0] + apipie-checksum: [dab79c9ec668ec3e883819cf8cb0d52ed7b0b699] cache-control: ['max-age=0, private, must-revalidate'] connection: [Keep-Alive] content-encoding: [gzip] - content-length: ['487'] + 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: ['Mon, 25 Jun 2018 18:11:52 GMT'] - etag: [W/"0a63468407dd1e63b75bb4e6e969fead-gzip"] + date: ['Mon, 06 Aug 2018 11:08:27 GMT'] + etag: [W/"3e9be73cb389ceae581837b82f42aebf-gzip"] foreman_api_version: ['2'] - foreman_version: [1.17.1] + foreman_version: [1.18.0] keep-alive: ['timeout=5, max=10000'] server: [Apache/2.4.6 (CentOS)] - set-cookie: [_session_id=2758a064f59c892dc50010cb8ee8f309; path=/; secure; HttpOnly] + set-cookie: [_session_id=d246dd228c9da06e076eca20e234d76d; path=/; secure; HttpOnly; + SameSite=Lax] status: [200 OK] strict-transport-security: [max-age=631139040; includeSubdomains] vary: [Accept-Encoding] @@ -193,12 +197,12 @@ interactions: x-frame-options: [sameorigin] x-permitted-cross-domain-policies: [none] x-powered-by: [Phusion Passenger 4.0.53] - x-request-id: [018ef456-1a64-46d5-a728-c9e4d3d27625] - x-runtime: ['0.059163'] + x-request-id: [9e43cea5-6c66-4e99-9a6b-ce681f684c6f] + x-runtime: ['0.114581'] x-xss-protection: [1; mode=block] status: {code: 200, message: OK} - request: - body: !!python/unicode '{"organization_id": 6, "name": "Test Activation Key"}' + body: !!python/unicode '{"organization_id": 4, "name": "Test Activation Key"}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] @@ -207,34 +211,35 @@ interactions: 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/activation_keys + uri: https://foreman.example.com/katello/api/v2/activation_keys response: body: string: !!binary | - H4sIAAAAAAAAA31SwW7bMAy99ysMnlXADpKi0G3obivQHrpdikBgZK4VKksBJWVzA//7JNvN7GHb - TeR7FB/5eIboI1qQjYCQDr+DI77Q9CBWU7CpBRCzZ5AuWZsLCFm/XiLPEeQZDj1IcNgRCPDcUqYD - Bg2DAKaQbAwgn89gWpA7MRElPFGI1ScdzQmj8a76Qn0ubyloNseS+eiSnDWdidSqVx/KV5ETCcAU - vcIYseiZUtq7SC6qk6Efau5G7mTYu67k51QKeTilfXJZfV3iPHDBtgI6/PnRZurOZAkDqRNxWIjy - /ILOvI/Sx9qbda6sZTnowxITYPFAdsbUH9j4W16dZsIyNWaVsKmb2+v65nqzq5pb2TRyu62+Pt1l - ejq2/6Ht6pm23E0RtzbjM33H7NNKZvWtUIfVChdj3ZsDI/ez4F3mHdm3SS/M3q7NfpxwGPYCyo6z - BdaSLr1KzX68vM6EMCXOMPqIlxNRb9Rf7KfWxH9h+Ygi+/7v8DDsh6tfxB8FkAUDAAA= + H4sIAAAAAAAAA31STW/bMAy991cYPGuAnQRroFux3jpgO3S7FIHAyFwiVJYCSsrmBf7vk2Inc4qt + gA/me4/i48cJoo9oQTYCQtr+DQ64o/GHWI3BohZAzJ5BumRtTiBkvb9GniPIE2x7kOCwIxDguaUs + BwwaBgFMIdkYQL6cwLQg78UolPBMIVYPOpojRuNd9UR9Tm8paDaHglyqJGdNZyK1au9DeSpyIgGY + olcYIxY/I6S9i+SiOhr6qUq1Zbbvjoa96wo+QSnk5pT2yWX3dYlzw4VbCejw16XMWJ3JEgZSR+Iw + M+V5h878Plu/5M6xMpZ5o1/mnACLW7ITp95w59fy6DQTlq4xu4RF3aw/1Pn7WDWNrNeyWVffnj9l + eTq078gWq0k2n00xN81i8vhIPzDv6cZm9b1Ih5sRztr6bLaM3E+Gl1l3YN8mPVv24nbZX0ceho2A + MuO8AmtJl1olZ3O+vM6EMAInOO8RryeiXqm/rp9aE//H5SOK7Pt/08OwGe7+AMGTs/cFAwAA headers: - apipie-checksum: [83fd72067f1c96eb1196b17193cc48d0] + apipie-checksum: [dab79c9ec668ec3e883819cf8cb0d52ed7b0b699] cache-control: ['max-age=0, private, must-revalidate'] connection: [Keep-Alive] content-encoding: [gzip] - content-length: ['392'] + content-length: ['396'] 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: ['Mon, 25 Jun 2018 18:11:52 GMT'] - etag: [W/"5b365982e9983baba6844ab14d66c7db-gzip"] + date: ['Mon, 06 Aug 2018 11:08:27 GMT'] + etag: [W/"0a8eefd4e224169ad664a10f14a8f027-gzip"] foreman_api_version: ['2'] - foreman_version: [1.17.1] + foreman_version: [1.18.0] keep-alive: ['timeout=5, max=10000'] server: [Apache/2.4.6 (CentOS)] - set-cookie: [_session_id=418f9746adddca49ce4ca4b60b4e88ce; path=/; secure; HttpOnly] + set-cookie: [_session_id=6024f5c54885a51e7627d5dce3c384a3; path=/; secure; HttpOnly; + SameSite=Lax] status: [200 OK] strict-transport-security: [max-age=631139040; includeSubdomains] vary: [Accept-Encoding] @@ -243,12 +248,12 @@ interactions: x-frame-options: [sameorigin] x-permitted-cross-domain-policies: [none] x-powered-by: [Phusion Passenger 4.0.53] - x-request-id: [f117adc9-a945-40f5-a51c-c73518328ad6] - x-runtime: ['0.059642'] + x-request-id: [e97a4b61-29c2-4061-8cf1-6d0698e16618] + x-runtime: ['0.098168'] x-xss-protection: [1; mode=block] status: {code: 200, message: OK} - request: - body: !!python/unicode '{"organization_id": 6, "search": "name=\"Test Product\""}' + body: !!python/unicode '{"organization_id": 4, "search": "name=\"Test Product\""}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] @@ -257,35 +262,36 @@ interactions: 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/subscriptions + uri: https://foreman.example.com/katello/api/v2/subscriptions response: body: string: !!binary | - H4sIAAAAAAAAA22QTW/bMAxA7/sVAc8OILlO7QrYYdh1Xxi60zoYtMykQmVJk6UMWZD/Ptqum63Y - SSL5RJHvDD4e0JnfmIx3oM6XApJPaEHJAsbcXYOAB1ouFNslKEUBFKOPoFy2lh8QRv0IChwO9PYB - 7mlMmy/R91mnBwAGfEz8C3QnhnRoTc9JH3viFoCjBv4/0phtGkF9PwPXVV08kwoqUTb7O9nfVje1 - 6GshJN+asqK96IS4qWCeedTRhGmf+VFVzNPw67+nmciEMbU9pqlWCtlsxe223G1ko6RUldx8u3/P - GLn+ClUzJOvXEB7RWOwsU1tW9DOjSyadlkh7N+aBeBb2hVr77FLr8tDRizhGUkT9Oj3mENhYa+lI - dk2GZYPFSC3LXbPbybq5a2a/+okmd2tblrkGEYf1ahwv7zS1A5s2wZrpSzkr0U/GHebeCzoTLU3r - WBr4XAvpFCYnnz5//fjuA1zH+r/s7AYMgfr2kLkAao92pAKOhrfzzp7+zfx69M+Jy4/Lmz/i/fWI - pQIAAA== + H4sIAAAAAAAAA22Qy27bMBBF9/0KY9YyIMmKKhHoIsi2LxTpqimEMTVxiFAky4cL1/C/dyhVcRsU + EKB53OHcOWew/oBG/cKorAFxvhQQbUQNoiogpP01cXigJSA/LEldFkDeWw/CJK15gNDLJxBgcKJ3 + D3BPIW4+ezsmGR8AWGB95C2wP60j1o/0Z553ewpJxwDi2xnUCGJXgHRDjqAp6+6xr6r2phypaajM + EZG86QjLsm5h9hukVy7fMg/VxeyEp/92kpURfRxGjLlXl1W3LflrN1Ulyk5Uzebr/R3LyIxXUcOK + t9u6fy3CIyqNe82qLeP5kdBEFU9LJq0JaSL2wqxQSptMHEya9vQCjSXRo3xdDsk5pjVoOpJei265 + YCHS17td37X9rm3rma18psxufZZhronHaQ2V4eONpGFi0spplVdWMxL5rMxhfnuRzoqB8jmaJv6v + jXhymcnHT18+3L6Hq63/w05mQudoHA6JGyAeUQcq4Kj4Omv06d/Kzyf7UkguRE/Z+1y4fL+8+Q1U + 0xI9sgIAAA== headers: - apipie-checksum: [83fd72067f1c96eb1196b17193cc48d0] + apipie-checksum: [dab79c9ec668ec3e883819cf8cb0d52ed7b0b699] cache-control: ['max-age=0, private, must-revalidate'] connection: [Keep-Alive] content-encoding: [gzip] - content-length: ['403'] + content-length: ['406'] 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: ['Mon, 25 Jun 2018 18:11:52 GMT'] - etag: [W/"e0f2f761aedbb41a0e59c090474183dd-gzip"] + date: ['Mon, 06 Aug 2018 11:08:27 GMT'] + etag: [W/"162457c7792f8732a0174bf707ff20d3-gzip"] foreman_api_version: ['2'] - foreman_version: [1.17.1] + foreman_version: [1.18.0] keep-alive: ['timeout=5, max=10000'] server: [Apache/2.4.6 (CentOS)] - set-cookie: [_session_id=ea33184717dc85a315eac464e20f8065; path=/; secure; HttpOnly] + set-cookie: [_session_id=9c83854d1ce6c7e9fe4568ce64f50fd1; path=/; secure; HttpOnly; + SameSite=Lax] status: [200 OK] strict-transport-security: [max-age=631139040; includeSubdomains] vary: [Accept-Encoding] @@ -294,8 +300,8 @@ interactions: x-frame-options: [sameorigin] x-permitted-cross-domain-policies: [none] x-powered-by: [Phusion Passenger 4.0.53] - x-request-id: [1d472224-36a1-475d-8426-f25af33f83e5] - x-runtime: ['0.096973'] + x-request-id: [fe7a87f8-b333-4d77-91e9-8aa9a864187f] + x-runtime: ['0.184620'] x-xss-protection: [1; mode=block] status: {code: 200, message: OK} - request: @@ -307,35 +313,37 @@ interactions: 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/subscriptions/7 + uri: https://foreman.example.com/katello/api/v2/subscriptions/3 response: body: string: !!binary | - H4sIAAAAAAAAA32SwY6bMBCG730K5DORbBYWllvU3pp2q2rbS7VCxkwSK8amxmZFV3n3jmEhTVr1 - ZHv8+Z+ZfxxFr4RbcSQl2e52JCYN9MLKzkmjSam9UjHpfdcZ6yo3drDEZEPKPCaiq8KOpDQp9g+s - uU/vctrklDLcFUkKe1pTepeSoFKvytOjNCaat6hInqB30RdrGi9cIB3HbA134S6hrNjQ+02SRawo - GStTFn17eo8Y6OYCpRPE8luID1wqXiukNiwmPz3XTrpxPgmje98C1kKRFMJ47Srt2xrs0iciznJx - G14sUTCAWoLd3MHsSM6SrMgylhcPRejJiBO4/iJrYT1Y3q62amxeC6har5zslAwp2WSJOEl9mLRn - dCIqCO0oaHFdLuYxkc+PXz9tw0SXsv5tttct7zpoqoPHC1LuueohJoPE7oxW43Xk5WjWwNH0rpo8 - m/zDNINsUOgtH7b345X8Z9Dn52C6kwOfvsQJxsuT7PrJdsWijzBi1RYU8B6qAWz/508FO0h072os - oLF0o2eLbuV3srbcjuQ8jxqZapDw8jf4AfYcHY8e7YFr+Wsu5ntAz+fn87vfiAzKq0gDAAA= + H4sIAAAAAAAAA31STY+bMBS891cgn4kEhGUJt6i9Ne1W1baXaoUc85JYMbbrD1Y04r/3GQJptlUl + JOzneeM3M46iC6GGnUhFtrsdiUkDlhmuHVeSVNILERPrtVbG1a7XMNd4Q6p1TJiuw4rkSVYeNmla + PCQN5DkkYQXAHkqgSZIVJLDsF+axKYuJpC0ykmewLvpiVOOZC0hH8baGunCWJWm5SvArojStkrJK + 8+jb83uEgWxuoBwRj6ts8xZEO8oF3QtErdKY/PRUOu76aceUtL4FnCVBJGPKS1dL3+7BzDoR4gxl + b8uzJQI6EHNRTwomRzbZer0pi826KLKgSbEzOHujNbBsDG0XWyWKlwzq1gvHteDhynS0hJ25PI7c + E3RE1BDkCGjxPx9MMZHPT18/bUOi81j/NtvLlmoNTX30eECqAxUWYtJxVKek6O8rrye1FLy2zkCY + /Vo4Kevq0cTRULy34w0yXwdAvT8u5D/JDy8hBcc7Or6RM/S3lsf7lu0Ciz5CjzIMCKAW6g6M/fPp + guk42nmXE0jUouTk2WV+ylf6Hd8banoyTNkjpu44vP4N/AAHihFET+ZIJf81DfM9QIfhZXj3G76V + oztZAwAA headers: - apipie-checksum: [83fd72067f1c96eb1196b17193cc48d0] + apipie-checksum: [dab79c9ec668ec3e883819cf8cb0d52ed7b0b699] cache-control: ['max-age=0, private, must-revalidate'] connection: [Keep-Alive] content-encoding: [gzip] - content-length: ['452'] + content-length: ['462'] 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: ['Mon, 25 Jun 2018 18:11:52 GMT'] - etag: [W/"5f89472163966f30d64f79a9355b9965-gzip"] + date: ['Mon, 06 Aug 2018 11:08:27 GMT'] + etag: [W/"dc47f41282d55bad1e20dff1a920a75b-gzip"] foreman_api_version: ['2'] - foreman_version: [1.17.1] + foreman_version: [1.18.0] keep-alive: ['timeout=5, max=10000'] server: [Apache/2.4.6 (CentOS)] - set-cookie: [_session_id=59fb4784905a43c4798d715ff9701e02; path=/; secure; HttpOnly] + set-cookie: [_session_id=b03b76923855251256a5c3d2eefeabaf; path=/; secure; HttpOnly; + SameSite=Lax] status: [200 OK] strict-transport-security: [max-age=631139040; includeSubdomains] vary: [Accept-Encoding] @@ -344,8 +352,8 @@ interactions: x-frame-options: [sameorigin] x-permitted-cross-domain-policies: [none] x-powered-by: [Phusion Passenger 4.0.53] - x-request-id: [f412dc6f-07bd-4e4b-a246-59eab97cabfc] - x-runtime: ['0.172845'] + x-request-id: [f5700141-6852-40ff-935e-8a91172400de] + x-runtime: ['0.176737'] x-xss-protection: [1; mode=block] status: {code: 200, message: OK} - request: @@ -357,35 +365,36 @@ interactions: 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/activation_keys/5/subscriptions + uri: https://foreman.example.com/katello/api/v2/activation_keys/7/subscriptions response: body: string: !!binary | - H4sIAAAAAAAAA22QTW/bMAyG7/sVAc8OILlO7eo27Npuw9CdhsGgZSYRKkuaLGXIgvz30XbdYMVO - EsmHH+97AR8P6MwfTMY7UJdrAckntKBkAWPubkHAAy0fiu0SlKIAitFHUC5byw2EUR/fIh8Tj4Tu - DAp0aE0PBe/riXnAUQMvizRmm0ZQPy7wK6NLJp1bTAn1kfp5HXepunjtV1CJstk/yP6+uqtFXwsh - +deUFe1FJ8RdBfPZo44mTJLmpqoAhwMfDM80ps3X6Pus00QmjKntMU21UshmK+635W4jGyWlquTm - +/Mnxsj1N6iaIVm/h/CExmJnmdry2auYJdLejXmYFLFlqLXPLrUuDx29ecdIiqjfp8ccAvvYWjqR - XZNhUbA4Usty1+x2sm4emkmT1y80ObqOZYvXIOKwfo1j8U5TO7D/JlgzrZSzJfrFuMM8e0FnoqVJ - jqWB37WQzmHy5POXb08fH+F21v/Nzm7AEKhvD5kLoPZoRyrgZFidd/b8b+b30b8mrj+vH/4ClWSX - PagCAAA= + H4sIAAAAAAAAA21QTYvbMBC991cEnR2wHa9r+1Z63W1L2Z5KERN5NhErS6o0SklD/ntHdp3QpSDQ + zJs3H+9dhAsHsPo3kHZWDJdrIcgRGDFUhYhpf088HHAJMMglqctCYAguiMEmY7gBIajjLXOBeKTY + n1fEhRH/knlRwJgMRTF8v4ifCSxpOksgAnXEcV6l+dsVQnmZI9GUdffSV1X7UI7YNFjmCFE9dAhl + WbdiPjmqoH2WMzfVhbAw8bHiGSNtvgQ3JkWZSRBIjkC5VpdVty35tZuqGspuqJrNt+ePTEM73kkN + M95v6/4tCU6gDewNs7Z89ipmyZSzMU1ZEdsFSrlkSdo07fHmG1MogHoLx+Q9eygNntCsoF8ULI70 + 9W7Xd22/a9s6a3LqFbOj61i2eE0CTGuoLYu3CuXE/mtvdF5ZzZaoV20P8+yFOjMkZjkGJ/7XAp19 + 9uTT569PHx7F/az/m53sBN7jKA+JC2J4AROxECfN6pw153+RX0d3A5KPFDDfPgPXH9d3fwD44kqG + tQIAAA== headers: - apipie-checksum: [83fd72067f1c96eb1196b17193cc48d0] + apipie-checksum: [dab79c9ec668ec3e883819cf8cb0d52ed7b0b699] cache-control: ['max-age=0, private, must-revalidate'] connection: [Keep-Alive] content-encoding: [gzip] - content-length: ['404'] + content-length: ['403'] 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: ['Mon, 25 Jun 2018 18:11:52 GMT'] - etag: [W/"701ce637b176cb7aa9f528afde1f9a65-gzip"] + date: ['Mon, 06 Aug 2018 11:08:27 GMT'] + etag: [W/"d29787f20c81081993b014df1a4b5004-gzip"] foreman_api_version: ['2'] - foreman_version: [1.17.1] + foreman_version: [1.18.0] keep-alive: ['timeout=5, max=10000'] server: [Apache/2.4.6 (CentOS)] - set-cookie: [_session_id=828d40783d99c8731dcb028ab5e0fa6d; path=/; secure; HttpOnly] + set-cookie: [_session_id=a9c087713a9e3a25c87402f7b7e89f53; path=/; secure; HttpOnly; + SameSite=Lax] status: [200 OK] strict-transport-security: [max-age=631139040; includeSubdomains] vary: [Accept-Encoding] @@ -394,8 +403,8 @@ interactions: x-frame-options: [sameorigin] x-permitted-cross-domain-policies: [none] x-powered-by: [Phusion Passenger 4.0.53] - x-request-id: [4567bb76-ae74-41c2-aad9-32253a3210af] - x-runtime: ['0.078466'] + x-request-id: [9591a9b8-861d-423a-9539-aab2b7ac96de] + x-runtime: ['0.172089'] x-xss-protection: [1; mode=block] status: {code: 200, message: OK} version: 1 diff --git a/test/test_playbooks/fixtures/activation_key-9.yml b/test/test_playbooks/fixtures/activation_key-9.yml new file mode 100644 index 0000000000..94f6d1f748 --- /dev/null +++ b/test/test_playbooks/fixtures/activation_key-9.yml @@ -0,0 +1,247 @@ +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://foreman.example.com/katello/api/v2/organizations + response: + body: + string: !!binary | + H4sIAAAAAAAAA42PzWrDMBCE734KsWcHJNOGoGty7yU9lWLW1jYVKLZZyYfW+N2zjkOSpn8BHfab + HTE7Q6YUpDZhAKuKfKLYV1+FDnckYGYgLk9CoWc/Idfvwk0fwqy0nIQHmYWqj6udcMuO+CSJMh6/ + MMU+pCjyywABK5J42NAbilo+8Q4b/4nJtw3kUDNhIleihEChzWqh5S2VXtpCW/OonrdrsfWdu8fm + HViTQ4N7ukSqm8jkU/hj7SjW7Lsj2anXmF9abCneXcEYq1fW6H8q3NimCg/nClPeb/f/tPt+/Gs2 + ZgfaukBkGQIAAA== + headers: + apipie-checksum: [dab79c9ec668ec3e883819cf8cb0d52ed7b0b699] + cache-control: ['max-age=0, private, must-revalidate'] + connection: [Keep-Alive] + content-encoding: [gzip] + content-length: ['238'] + 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: ['Mon, 06 Aug 2018 11:08:29 GMT'] + etag: [W/"e4b76139af4e38518f657cfd43eeb087-gzip"] + foreman_api_version: ['2'] + foreman_version: [1.18.0] + keep-alive: ['timeout=5, max=10000'] + server: [Apache/2.4.6 (CentOS)] + set-cookie: [_session_id=f1934a87d636e7943b8bf04769da40ae; path=/; secure; HttpOnly; + SameSite=Lax] + 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: [46087189-a445-4c7e-8688-1d85b3294b3b] + x-runtime: ['0.051364'] + 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://foreman.example.com/katello/api/v2/organizations + response: + body: + string: !!binary | + H4sIAAAAAAAAA42PwUrEMBCG732KMOcKSRFZAp58AC/ryV3KtBnWQGzLZHpwS9/d2bSiCIKQw3xf + /vBnlsoYkFEwgTdNfaM8d1/CFTHhhb6BuN1FY7c8IfdvyjDgOz2e4EhZzDNfcIhXlDgOJ4AtObJo + btFZqfvQeZhTqjceORDvSs1anjDlOUlW/bpAwo70W6Wg/VkANfRMKBRa1AZorDvcWT0PxjlvD95Z + 83J80tg8hf/EYgB/X5eF9j7zq0+ipL/uAuWe41TI39ZZz9VafQLTBt/JawEAAA== + headers: + apipie-checksum: [dab79c9ec668ec3e883819cf8cb0d52ed7b0b699] + 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: ['Mon, 06 Aug 2018 11:08:29 GMT'] + etag: [W/"6a2dc381b9d75bbfab5b6f936f1d77c9-gzip"] + foreman_api_version: ['2'] + foreman_version: [1.18.0] + keep-alive: ['timeout=5, max=10000'] + server: [Apache/2.4.6 (CentOS)] + set-cookie: [_session_id=f9ddfa60f598c20658aa6d7843183222; path=/; secure; HttpOnly; + SameSite=Lax] + 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: [75d55822-4f79-4986-8f13-e035e54cd436] + x-runtime: ['0.045990'] + x-xss-protection: [1; mode=block] + status: {code: 200, message: OK} +- request: + body: !!python/unicode '{"organization_id": 4, "name": "Test Activation Key"}' + headers: + Accept: ['*/*'] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Length: ['53'] + User-Agent: [python-requests/2.18.4] + content-type: [application/json] + method: GET + uri: https://foreman.example.com/katello/api/v2/activation_keys + response: + body: + string: !!binary | + H4sIAAAAAAAAA31STW/bMAy991cYPGuAnQRroFux3jpgO3S7FIHAyFwiVJYCSsrmBf7vk2Inc4qt + gA/me4/i48cJoo9oQTYCQtr+DQ64o/GHWI3BohZAzJ5BumRtTiBkvb9GniPIE2x7kOCwIxDguaUs + BwwaBgFMIdkYQL6cwLQg78UolPBMIVYPOpojRuNd9UR9Tm8paDaHglyqJGdNZyK1au9DeSpyIgGY + olcYIxY/I6S9i+SiOhr6qUq1Zbbvjoa96wo+QSnk5pT2yWX3dYlzw4VbCejw16XMWJ3JEgZSR+Iw + M+V5h878Plu/5M6xMpZ5o1/mnACLW7ITp95w59fy6DQTlq4xu4RF3aw/1Pn7WDWNrNeyWVffnj9l + eTq078gWq0k2n00xN81i8vhIPzDv6cZm9b1Ih5sRztr6bLaM3E+Gl1l3YN8mPVv24nbZX0ceho2A + MuO8AmtJl1olZ3O+vM6EMAInOO8RryeiXqm/rp9aE//H5SOK7Pt/08OwGe7+AMGTs/cFAwAA + headers: + apipie-checksum: [dab79c9ec668ec3e883819cf8cb0d52ed7b0b699] + cache-control: ['max-age=0, private, must-revalidate'] + connection: [Keep-Alive] + content-encoding: [gzip] + content-length: ['396'] + 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: ['Mon, 06 Aug 2018 11:08:29 GMT'] + etag: [W/"0a8eefd4e224169ad664a10f14a8f027-gzip"] + foreman_api_version: ['2'] + foreman_version: [1.18.0] + keep-alive: ['timeout=5, max=10000'] + server: [Apache/2.4.6 (CentOS)] + set-cookie: [_session_id=380cdcbfd0cdd74c3957f0bcf9d8fd85; path=/; secure; HttpOnly; + SameSite=Lax] + 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: [c4f096c4-1b3a-48b1-af27-d5698ca97956] + x-runtime: ['0.087837'] + x-xss-protection: [1; mode=block] + status: {code: 200, message: OK} +- request: + body: !!python/unicode '{"organization_id": 4, "name": "Test Activation Key Copy"}' + headers: + Accept: ['*/*'] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Length: ['58'] + User-Agent: [python-requests/2.18.4] + content-type: [application/json] + method: GET + uri: https://foreman.example.com/katello/api/v2/activation_keys + response: + body: + string: !!binary | + H4sIAAAAAAAAA0XLsQqAMBAD0N3PyNxBHe9XRORaDx1qK9d2kOK/WxB0ywtJRY6ZPag3SMX+OHkT + 0NCC6PJibLWoRgWF4n07CKvbP0XNoAp7gRD4EBhEXaXNwcnhNlBJxecEmua7ewAzgtzWewAAAA== + headers: + apipie-checksum: [dab79c9ec668ec3e883819cf8cb0d52ed7b0b699] + 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: ['Mon, 06 Aug 2018 11:08:29 GMT'] + etag: [W/"956e0fd5b832fbda8d01b01a5b7de844-gzip"] + foreman_api_version: ['2'] + foreman_version: [1.18.0] + keep-alive: ['timeout=5, max=10000'] + server: [Apache/2.4.6 (CentOS)] + set-cookie: [_session_id=41bb0cecc55f43894f3bbf113931d743; path=/; secure; HttpOnly; + SameSite=Lax] + 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: [b3e1206f-953b-4287-a364-e0df131f9cf1] + x-runtime: ['0.061348'] + x-xss-protection: [1; mode=block] + status: {code: 200, message: OK} +- request: + body: !!python/unicode '{"new_name": "Test Activation Key Copy", "id": 7}' + headers: + Accept: ['*/*'] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Length: ['49'] + User-Agent: [python-requests/2.18.4] + content-type: [application/json] + method: POST + uri: https://foreman.example.com/katello/api/v2/activation_keys/7/copy + response: + body: + string: !!binary | + H4sIAAAAAAAAA41STUvEMBC9+yvCnCN0d0WW3GS9Kehh9bJIyKajG0yTko9qXfrfTbrt0oqC0Evf + m8x782YIOYJH1yiJXGODGpiJWlOQ1gQ0gdsGnVMlemC7FwqqBLamYESFwGCLPpAbGVQjgrKG3GFL + NrZugUJ6IZ2qMzy2jEarSgUs+cH6kBoGF5GCiMFyEYKQhxEaxRuFHzxLriigaZSzpsr4AEUv3pBL + G00AVuR/dD13RaESn6PMSd2hRuGRp3n8xJR1b8Kor97/+HaKATvOpn2YchS02OfMeo7/4PpuXZrG + ochTi+QSlsVifVmk75osFqxYs1VBnrabVB7r8j9l02yyuSGLweMtvoqo5zbJcy7tZhFOxrpXeydc + Oxhepbra2TLKHN3u1H853/jjiYcuHUTOOK1Aa5RZaziTGl2lvD8BR+j3KM53wt+xPa8fSxX+4tIR + BWfb3+muu/gGXbxEw74CAAA= + headers: + apipie-checksum: [dab79c9ec668ec3e883819cf8cb0d52ed7b0b699] + cache-control: ['max-age=0, private, must-revalidate'] + connection: [Keep-Alive] + content-encoding: [gzip] + content-length: ['359'] + 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: ['Mon, 06 Aug 2018 11:08:29 GMT'] + etag: [W/"2c26fe8123f165d6751dd8834d7351c6-gzip"] + foreman_api_version: ['2'] + foreman_version: [1.18.0] + keep-alive: ['timeout=5, max=10000'] + server: [Apache/2.4.6 (CentOS)] + set-cookie: [request_method=POST; path=/; secure; HttpOnly; SameSite=Lax, _session_id=c0262c4e0fa12fdf58452336bbd9e6c5; + path=/; secure; HttpOnly; SameSite=Lax] + 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: [b8a77951-67f1-44e1-b699-a7c91ffff480] + x-runtime: ['0.951309'] + x-xss-protection: [1; mode=block] + status: {code: 200, message: OK} +version: 1 diff --git a/test/test_playbooks/tasks/activation_key.yml b/test/test_playbooks/tasks/activation_key.yml index 07b8c76c53..dc507f46d0 100644 --- a/test/test_playbooks/tasks/activation_key.yml +++ b/test/test_playbooks/tasks/activation_key.yml @@ -13,7 +13,7 @@ password: "{{ foreman_password }}" server_url: "{{ foreman_server_url }}" verify_ssl: "{{ foreman_verify_ssl }}" - name: "{{activation_key_name }}" + name: "{{ activation_key_name }}" organization: "{{ activation_key_organization }}" lifecycle_environment: "{{ activation_key_lifecycle_environment }}" content_view: "{{ activation_key_content_view }}" diff --git a/test/test_playbooks/tasks/activation_key_copy.yml b/test/test_playbooks/tasks/activation_key_copy.yml new file mode 100644 index 0000000000..4547cfe1de --- /dev/null +++ b/test/test_playbooks/tasks/activation_key_copy.yml @@ -0,0 +1,29 @@ +--- +- name: "copy katello activation key" + vars: + activation_key_name: "Test Activation Key" + activation_key_new_name: "Test Activation Key Copy" + activation_key_organization: "Test Organization" + activation_key_lifecycle_environment: "Library" + activation_key_content_view: "Default Organization View" + activation_key_subscriptions: + - name: "Test Product" + activation_key_auto_attach: False + katello_activation_key: + username: "{{ foreman_username }}" + password: "{{ foreman_password }}" + server_url: "{{ foreman_server_url }}" + verify_ssl: "{{ foreman_verify_ssl }}" + name: "{{ activation_key_name }}" + new_name: "{{ activation_key_new_name }}" + organization: "{{ activation_key_organization }}" + lifecycle_environment: "{{ activation_key_lifecycle_environment }}" + content_view: "{{ activation_key_content_view }}" + subscriptions: "{{ activation_key_subscriptions }}" + auto_attach: "{{ activation_key_auto_attach }}" + state: 'copied' + register: result +- fail: + msg: "copy activation key failed! (expected_change: {{ expected_change | default('unknown') }})" + when: (expected_change is defined) and (result.changed != expected_change) +...