From c41b3f124eea1ee0794d6b4e4ce65f9876c5e414 Mon Sep 17 00:00:00 2001 From: Evgeni Golov Date: Fri, 12 Jul 2024 19:58:42 +0200 Subject: [PATCH 01/36] Bump version to 4.2.0-dev --- galaxy.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/galaxy.yml b/galaxy.yml index 5fc442b6..a4be1f36 100644 --- a/galaxy.yml +++ b/galaxy.yml @@ -105,7 +105,7 @@ authors: - "russianguppie <46544650+russianguppie@users.noreply.github.com>" - "willtome " - "yuqo2450 <79540477+yuqo2450@users.noreply.github.com>" -version: "4.1.0" +version: "4.2.0-dev" license: - "GPL-3.0-or-later" tags: From e76f0a36953ef5035122b867813d5e9be8e76832 Mon Sep 17 00:00:00 2001 From: Evgeni Golov Date: Thu, 18 Jul 2024 12:45:48 +0200 Subject: [PATCH 02/36] fix sync_plan tests seems Katello wants a time offset not a timezone name now also document this in the module --- plugins/modules/sync_plan.py | 3 +- tests/test_playbooks/fixtures/sync_plan-0.yml | 63 +++++----- tests/test_playbooks/fixtures/sync_plan-1.yml | 107 ++++++++--------- tests/test_playbooks/fixtures/sync_plan-2.yml | 87 ++++++-------- tests/test_playbooks/fixtures/sync_plan-3.yml | 87 ++++++-------- tests/test_playbooks/fixtures/sync_plan-4.yml | 87 ++++++-------- tests/test_playbooks/fixtures/sync_plan-5.yml | 89 ++++++-------- tests/test_playbooks/fixtures/sync_plan-6.yml | 111 ++++++++---------- tests/test_playbooks/fixtures/sync_plan-7.yml | 71 +++++------ tests/test_playbooks/fixtures/sync_plan-8.yml | 57 ++++----- tests/test_playbooks/tasks/sync_plan.yml | 2 +- 11 files changed, 336 insertions(+), 428 deletions(-) diff --git a/plugins/modules/sync_plan.py b/plugins/modules/sync_plan.py index ee8ebece..5c063391 100644 --- a/plugins/modules/sync_plan.py +++ b/plugins/modules/sync_plan.py @@ -57,7 +57,8 @@ type: bool sync_date: description: - - Start date and time of the first synchronization + - Start date and time of the first synchronization. + - Multiple formats are accepted, but only C(YYYY-mm-dd HH:MM:SS +z) (e.g. C(2024-08-01 00:00:00 +0000)) will be idempotent. required: true type: str cron_expression: diff --git a/tests/test_playbooks/fixtures/sync_plan-0.yml b/tests/test_playbooks/fixtures/sync_plan-0.yml index 0af0d895..39f6e7b3 100644 --- a/tests/test_playbooks/fixtures/sync_plan-0.yml +++ b/tests/test_playbooks/fixtures/sync_plan-0.yml @@ -14,12 +14,14 @@ interactions: uri: https://foreman.example.org/api/status response: body: - string: '{"result":"ok","status":200,"version":"2.1.2","api_version":2}' + string: '{"result":"ok","status":200,"version":"3.12.0-develop","api_version":2}' headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive + Content-Length: + - '71' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -33,13 +35,11 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 2.1.2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=100 Strict-Transport-Security: - max-age=631139040; includeSubdomains - Vary: - - Accept-Encoding X-Content-Type-Options: - nosniff X-Download-Options: @@ -50,8 +50,6 @@ interactions: - none X-XSS-Protection: - 1; mode=block - content-length: - - '62' status: code: 200 message: OK @@ -70,17 +68,18 @@ interactions: uri: https://foreman.example.org/katello/api/organizations?search=name%3D%22Test+Organization%22&per_page=4294967296 response: body: - string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ - : 4294967296,\n \"search\": \"name=\\\"Test Organization\\\"\",\n \"sort\"\ - : {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\"\ - :\"Test_Organization\",\"created_at\":\"2020-09-04 13:03:52 UTC\",\"updated_at\"\ - :\"2020-09-04 13:03:52 UTC\",\"id\":6,\"name\":\"Test Organization\",\"title\"\ - :\"Test Organization\",\"description\":\"A test organization\"}]\n}\n" + string: "{\n \"total\": 3,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": + 4294967296,\n \"search\": \"name=\\\"Test Organization\\\"\",\n \"sort\": + {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\":\"Test_Organization\",\"created_at\":\"2024-07-18 + 10:23:39 UTC\",\"updated_at\":\"2024-07-18 10:23:41 UTC\",\"id\":4,\"name\":\"Test + Organization\",\"title\":\"Test Organization\",\"description\":\"A test organization\"}]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive + Content-Length: + - '388' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -94,13 +93,11 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 2.1.2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=99 Strict-Transport-Security: - max-age=631139040; includeSubdomains - Vary: - - Accept-Encoding X-Content-Type-Options: - nosniff X-Download-Options: @@ -111,8 +108,6 @@ interactions: - none X-XSS-Protection: - 1; mode=block - content-length: - - '388' status: code: 200 message: OK @@ -128,10 +123,10 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/organizations/6/sync_plans?search=name%3D%22Test+Sync+Plan%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/organizations/4/sync_plans?search=name%3D%22Test+Sync+Plan%22&per_page=4294967296 response: body: - string: '{"total":0,"subtotal":0,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test + string: '{"total":0,"subtotal":0,"selectable":0,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test Sync Plan\"","sort":{"by":"name","order":"asc"},"results":[]} ' @@ -140,6 +135,8 @@ interactions: - max-age=0, private, must-revalidate Connection: - Keep-Alive + Content-Length: + - '169' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -151,15 +148,13 @@ interactions: Foreman_current_location: - ; ANY Foreman_current_organization: - - 6; Test Organization + - 4; Test Organization Foreman_version: - - 2.1.2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=98 Strict-Transport-Security: - max-age=631139040; includeSubdomains - Vary: - - Accept-Encoding X-Content-Type-Options: - nosniff X-Download-Options: @@ -170,14 +165,12 @@ interactions: - none X-XSS-Protection: - 1; mode=block - content-length: - - '154' status: code: 200 message: OK - request: body: '{"name": "Test Sync Plan", "interval": "weekly", "sync_date": "2017-01-01 - 00:00:00 UTC", "enabled": false}' + 00:00:00 +0000", "enabled": false}' headers: Accept: - application/json;version=2 @@ -186,18 +179,18 @@ interactions: Connection: - keep-alive Content-Length: - - '106' + - '108' Content-Type: - application/json User-Agent: - apypie (https://github.com/Apipie/apypie) method: POST - uri: https://foreman.example.org/katello/api/organizations/6/sync_plans + uri: https://foreman.example.org/katello/api/organizations/4/sync_plans response: body: - string: ' {"id":2,"organization_id":6,"name":"Test Sync Plan","description":null,"interval":"weekly","next_sync":null,"sync_date":"2017-01-01 - 00:00:00 UTC","created_at":"2020-09-04 13:03:57 UTC","updated_at":"2020-09-04 - 13:03:57 UTC","enabled":false,"foreman_tasks_recurring_logic_id":2,"cron_expression":null,"products":[],"permissions":{"view_sync_plans":true,"edit_sync_plans":true,"destroy_sync_plans":true}} + string: ' {"id":6,"organization_id":4,"name":"Test Sync Plan","description":null,"interval":"weekly","next_sync":null,"sync_date":"2017-01-01 + 00:00:00 +0000","created_at":"2024-07-18 10:36:19 UTC","updated_at":"2024-07-18 + 10:36:19 UTC","enabled":false,"foreman_tasks_recurring_logic_id":9,"cron_expression":null,"products":[],"permissions":{"view_sync_plans":true,"edit_sync_plans":true,"destroy_sync_plans":true}} ' headers: @@ -205,6 +198,8 @@ interactions: - max-age=0, private, must-revalidate Connection: - Keep-Alive + Content-Length: + - '407' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -216,15 +211,13 @@ interactions: Foreman_current_location: - ; ANY Foreman_current_organization: - - 6; Test Organization + - 4; Test Organization Foreman_version: - - 2.1.2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=97 Strict-Transport-Security: - max-age=631139040; includeSubdomains - Transfer-Encoding: - - chunked X-Content-Type-Options: - nosniff X-Download-Options: diff --git a/tests/test_playbooks/fixtures/sync_plan-1.yml b/tests/test_playbooks/fixtures/sync_plan-1.yml index b1a6a64e..b6407355 100644 --- a/tests/test_playbooks/fixtures/sync_plan-1.yml +++ b/tests/test_playbooks/fixtures/sync_plan-1.yml @@ -14,12 +14,14 @@ interactions: uri: https://foreman.example.org/api/status response: body: - string: '{"result":"ok","status":200,"version":"2.1.2","api_version":2}' + string: '{"result":"ok","status":200,"version":"3.12.0-develop","api_version":2}' headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive + Content-Length: + - '71' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -33,13 +35,11 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 2.1.2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=100 Strict-Transport-Security: - max-age=631139040; includeSubdomains - Vary: - - Accept-Encoding X-Content-Type-Options: - nosniff X-Download-Options: @@ -50,8 +50,6 @@ interactions: - none X-XSS-Protection: - 1; mode=block - content-length: - - '62' status: code: 200 message: OK @@ -70,17 +68,18 @@ interactions: uri: https://foreman.example.org/katello/api/organizations?search=name%3D%22Test+Organization%22&per_page=4294967296 response: body: - string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ - : 4294967296,\n \"search\": \"name=\\\"Test Organization\\\"\",\n \"sort\"\ - : {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\"\ - :\"Test_Organization\",\"created_at\":\"2020-09-04 13:03:52 UTC\",\"updated_at\"\ - :\"2020-09-04 13:03:52 UTC\",\"id\":6,\"name\":\"Test Organization\",\"title\"\ - :\"Test Organization\",\"description\":\"A test organization\"}]\n}\n" + string: "{\n \"total\": 3,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": + 4294967296,\n \"search\": \"name=\\\"Test Organization\\\"\",\n \"sort\": + {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\":\"Test_Organization\",\"created_at\":\"2024-07-18 + 10:23:39 UTC\",\"updated_at\":\"2024-07-18 10:23:41 UTC\",\"id\":4,\"name\":\"Test + Organization\",\"title\":\"Test Organization\",\"description\":\"A test organization\"}]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive + Content-Length: + - '388' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -94,13 +93,11 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 2.1.2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=99 Strict-Transport-Security: - max-age=631139040; includeSubdomains - Vary: - - Accept-Encoding X-Content-Type-Options: - nosniff X-Download-Options: @@ -111,8 +108,6 @@ interactions: - none X-XSS-Protection: - 1; mode=block - content-length: - - '388' status: code: 200 message: OK @@ -128,14 +123,14 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/organizations/6/sync_plans?search=name%3D%22Test+Sync+Plan%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/organizations/4/sync_plans?search=name%3D%22Test+Sync+Plan%22&per_page=4294967296 response: body: - string: '{"total":1,"subtotal":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Sync Plan\"","sort":{"by":"name","order":"asc"},"results":[{"id":2,"organization_id":6,"name":"Test + string: '{"total":1,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test + Sync Plan\"","sort":{"by":"name","order":"asc"},"results":[{"id":6,"organization_id":4,"name":"Test Sync Plan","description":null,"interval":"weekly","next_sync":null,"sync_date":"2017-01-01 - 00:00:00 UTC","created_at":"2020-09-04 13:03:57 UTC","updated_at":"2020-09-04 - 13:03:57 UTC","enabled":false,"foreman_tasks_recurring_logic_id":2,"cron_expression":null,"products":[],"permissions":{"view_sync_plans":true,"edit_sync_plans":true,"destroy_sync_plans":true}}]} + 00:00:00 +0000","created_at":"2024-07-18 10:36:19 UTC","updated_at":"2024-07-18 + 10:36:19 UTC","enabled":false,"foreman_tasks_recurring_logic_id":9,"cron_expression":null,"products":[],"permissions":{"view_sync_plans":true,"edit_sync_plans":true,"destroy_sync_plans":true}}]} ' headers: @@ -143,6 +138,8 @@ interactions: - max-age=0, private, must-revalidate Connection: - Keep-Alive + Content-Length: + - '573' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -154,15 +151,13 @@ interactions: Foreman_current_location: - ; ANY Foreman_current_organization: - - 6; Test Organization + - 4; Test Organization Foreman_version: - - 2.1.2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=98 Strict-Transport-Security: - max-age=631139040; includeSubdomains - Vary: - - Accept-Encoding X-Content-Type-Options: - nosniff X-Download-Options: @@ -173,8 +168,6 @@ interactions: - none X-XSS-Protection: - 1; mode=block - content-length: - - '556' status: code: 200 message: OK @@ -190,12 +183,12 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/organizations/6/sync_plans/2 + uri: https://foreman.example.org/katello/api/organizations/4/sync_plans/6 response: body: - string: ' {"id":2,"organization_id":6,"name":"Test Sync Plan","description":null,"interval":"weekly","next_sync":null,"sync_date":"2017-01-01 - 00:00:00 UTC","created_at":"2020-09-04 13:03:57 UTC","updated_at":"2020-09-04 - 13:03:57 UTC","enabled":false,"foreman_tasks_recurring_logic_id":2,"cron_expression":null,"products":[],"permissions":{"view_sync_plans":true,"edit_sync_plans":true,"destroy_sync_plans":true}} + string: ' {"id":6,"organization_id":4,"name":"Test Sync Plan","description":null,"interval":"weekly","next_sync":null,"sync_date":"2017-01-01 + 00:00:00 +0000","created_at":"2024-07-18 10:36:19 UTC","updated_at":"2024-07-18 + 10:36:19 UTC","enabled":false,"foreman_tasks_recurring_logic_id":9,"cron_expression":null,"products":[],"permissions":{"view_sync_plans":true,"edit_sync_plans":true,"destroy_sync_plans":true}} ' headers: @@ -203,6 +196,8 @@ interactions: - max-age=0, private, must-revalidate Connection: - Keep-Alive + Content-Length: + - '407' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -214,15 +209,13 @@ interactions: Foreman_current_location: - ; ANY Foreman_current_organization: - - 6; Test Organization + - 4; Test Organization Foreman_version: - - 2.1.2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=97 Strict-Transport-Security: - max-age=631139040; includeSubdomains - Vary: - - Accept-Encoding X-Content-Type-Options: - nosniff X-Download-Options: @@ -233,8 +226,6 @@ interactions: - none X-XSS-Protection: - 1; mode=block - content-length: - - '405' status: code: 200 message: OK @@ -250,13 +241,13 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/organizations/6/products?search=name%3D%22Test+Product%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/organizations/4/products?search=name%3D%22Test+Product%22&per_page=4294967296 response: body: - string: '{"total":1,"subtotal":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Product\"","sort":{"by":"name","order":"asc"},"results":[{"id":6,"cp_id":"679719757090","name":"Test - Product","label":"Test_Product","description":"A happy little test product","provider_id":9,"sync_plan_id":null,"sync_summary":{},"gpg_key_id":null,"ssl_ca_cert_id":null,"ssl_client_cert_id":null,"ssl_client_key_id":null,"sync_state":null,"last_sync":null,"last_sync_words":null,"organization_id":6,"organization":{"name":"Test - Organization","label":"Test_Organization","id":6},"sync_plan":null,"repository_count":0}]} + string: '{"total":1,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test + Product\"","sort":{"by":"name","order":"asc"},"results":[{"id":1,"cp_id":"393573755764","name":"Test + Product","label":"Test_Product","description":"A happy little test product","provider_id":5,"sync_plan_id":null,"sync_summary":{},"gpg_key_id":null,"ssl_ca_cert_id":null,"ssl_client_cert_id":null,"ssl_client_key_id":null,"sync_state":null,"last_sync":null,"last_sync_words":null,"organization_id":4,"organization":{"name":"Test + Organization","label":"Test_Organization","id":4},"sync_plan":null,"repository_count":0}]} ' headers: @@ -264,6 +255,8 @@ interactions: - max-age=0, private, must-revalidate Connection: - Keep-Alive + Content-Length: + - '627' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -275,15 +268,13 @@ interactions: Foreman_current_location: - ; ANY Foreman_current_organization: - - 6; Test Organization + - 4; Test Organization Foreman_version: - - 2.1.2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=96 Strict-Transport-Security: - max-age=631139040; includeSubdomains - Vary: - - Accept-Encoding X-Content-Type-Options: - nosniff X-Download-Options: @@ -294,13 +285,11 @@ interactions: - none X-XSS-Protection: - 1; mode=block - content-length: - - '612' status: code: 200 message: OK - request: - body: '{"product_ids": [6]}' + body: '{"product_ids": [1]}' headers: Accept: - application/json;version=2 @@ -315,12 +304,12 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: PUT - uri: https://foreman.example.org/katello/api/organizations/6/sync_plans/2/add_products + uri: https://foreman.example.org/katello/api/organizations/4/sync_plans/6/add_products response: body: - string: ' {"id":2,"organization_id":6,"name":"Test Sync Plan","description":null,"interval":"weekly","next_sync":null,"sync_date":"2017-01-01 - 00:00:00 UTC","created_at":"2020-09-04 13:03:57 UTC","updated_at":"2020-09-04 - 13:03:57 UTC","enabled":false,"foreman_tasks_recurring_logic_id":2,"cron_expression":null,"products":[{"id":6,"cp_id":"679719757090","name":"Test + string: ' {"id":6,"organization_id":4,"name":"Test Sync Plan","description":null,"interval":"weekly","next_sync":null,"sync_date":"2017-01-01 + 00:00:00 +0000","created_at":"2024-07-18 10:36:19 UTC","updated_at":"2024-07-18 + 10:36:19 UTC","enabled":false,"foreman_tasks_recurring_logic_id":9,"cron_expression":null,"products":[{"id":1,"cp_id":"393573755764","name":"Test Product","label":"Test_Product","description":"A happy little test product","sync_state":null,"last_sync":null,"last_sync_words":null,"repository_count":0}],"permissions":{"view_sync_plans":true,"edit_sync_plans":true,"destroy_sync_plans":true}} ' @@ -329,6 +318,8 @@ interactions: - max-age=0, private, must-revalidate Connection: - Keep-Alive + Content-Length: + - '606' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -340,15 +331,13 @@ interactions: Foreman_current_location: - ; ANY Foreman_current_organization: - - 6; Test Organization + - 4; Test Organization Foreman_version: - - 2.1.2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=95 Strict-Transport-Security: - max-age=631139040; includeSubdomains - Vary: - - Accept-Encoding X-Content-Type-Options: - nosniff X-Download-Options: @@ -359,8 +348,6 @@ interactions: - none X-XSS-Protection: - 1; mode=block - content-length: - - '604' status: code: 200 message: OK diff --git a/tests/test_playbooks/fixtures/sync_plan-2.yml b/tests/test_playbooks/fixtures/sync_plan-2.yml index 89a08bc6..4519a041 100644 --- a/tests/test_playbooks/fixtures/sync_plan-2.yml +++ b/tests/test_playbooks/fixtures/sync_plan-2.yml @@ -14,12 +14,14 @@ interactions: uri: https://foreman.example.org/api/status response: body: - string: '{"result":"ok","status":200,"version":"2.1.2","api_version":2}' + string: '{"result":"ok","status":200,"version":"3.12.0-develop","api_version":2}' headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive + Content-Length: + - '71' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -33,13 +35,11 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 2.1.2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=100 Strict-Transport-Security: - max-age=631139040; includeSubdomains - Vary: - - Accept-Encoding X-Content-Type-Options: - nosniff X-Download-Options: @@ -50,8 +50,6 @@ interactions: - none X-XSS-Protection: - 1; mode=block - content-length: - - '62' status: code: 200 message: OK @@ -70,17 +68,18 @@ interactions: uri: https://foreman.example.org/katello/api/organizations?search=name%3D%22Test+Organization%22&per_page=4294967296 response: body: - string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ - : 4294967296,\n \"search\": \"name=\\\"Test Organization\\\"\",\n \"sort\"\ - : {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\"\ - :\"Test_Organization\",\"created_at\":\"2020-09-04 13:03:52 UTC\",\"updated_at\"\ - :\"2020-09-04 13:03:52 UTC\",\"id\":6,\"name\":\"Test Organization\",\"title\"\ - :\"Test Organization\",\"description\":\"A test organization\"}]\n}\n" + string: "{\n \"total\": 3,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": + 4294967296,\n \"search\": \"name=\\\"Test Organization\\\"\",\n \"sort\": + {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\":\"Test_Organization\",\"created_at\":\"2024-07-18 + 10:23:39 UTC\",\"updated_at\":\"2024-07-18 10:23:41 UTC\",\"id\":4,\"name\":\"Test + Organization\",\"title\":\"Test Organization\",\"description\":\"A test organization\"}]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive + Content-Length: + - '388' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -94,13 +93,11 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 2.1.2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=99 Strict-Transport-Security: - max-age=631139040; includeSubdomains - Vary: - - Accept-Encoding X-Content-Type-Options: - nosniff X-Download-Options: @@ -111,8 +108,6 @@ interactions: - none X-XSS-Protection: - 1; mode=block - content-length: - - '388' status: code: 200 message: OK @@ -128,14 +123,14 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/organizations/6/sync_plans?search=name%3D%22Test+Sync+Plan%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/organizations/4/sync_plans?search=name%3D%22Test+Sync+Plan%22&per_page=4294967296 response: body: - string: '{"total":1,"subtotal":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Sync Plan\"","sort":{"by":"name","order":"asc"},"results":[{"id":2,"organization_id":6,"name":"Test + string: '{"total":1,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test + Sync Plan\"","sort":{"by":"name","order":"asc"},"results":[{"id":6,"organization_id":4,"name":"Test Sync Plan","description":null,"interval":"weekly","next_sync":null,"sync_date":"2017-01-01 - 00:00:00 UTC","created_at":"2020-09-04 13:03:57 UTC","updated_at":"2020-09-04 - 13:03:57 UTC","enabled":false,"foreman_tasks_recurring_logic_id":2,"cron_expression":null,"products":[{"id":6,"cp_id":"679719757090","name":"Test + 00:00:00 +0000","created_at":"2024-07-18 10:36:19 UTC","updated_at":"2024-07-18 + 10:36:19 UTC","enabled":false,"foreman_tasks_recurring_logic_id":9,"cron_expression":null,"products":[{"id":1,"cp_id":"393573755764","name":"Test Product","label":"Test_Product","description":"A happy little test product","sync_state":null,"last_sync":null,"last_sync_words":null,"repository_count":0}],"permissions":{"view_sync_plans":true,"edit_sync_plans":true,"destroy_sync_plans":true}}]} ' @@ -144,6 +139,8 @@ interactions: - max-age=0, private, must-revalidate Connection: - Keep-Alive + Content-Length: + - '772' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -155,15 +152,13 @@ interactions: Foreman_current_location: - ; ANY Foreman_current_organization: - - 6; Test Organization + - 4; Test Organization Foreman_version: - - 2.1.2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=98 Strict-Transport-Security: - max-age=631139040; includeSubdomains - Vary: - - Accept-Encoding X-Content-Type-Options: - nosniff X-Download-Options: @@ -174,8 +169,6 @@ interactions: - none X-XSS-Protection: - 1; mode=block - content-length: - - '755' status: code: 200 message: OK @@ -191,12 +184,12 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/organizations/6/sync_plans/2 + uri: https://foreman.example.org/katello/api/organizations/4/sync_plans/6 response: body: - string: ' {"id":2,"organization_id":6,"name":"Test Sync Plan","description":null,"interval":"weekly","next_sync":null,"sync_date":"2017-01-01 - 00:00:00 UTC","created_at":"2020-09-04 13:03:57 UTC","updated_at":"2020-09-04 - 13:03:57 UTC","enabled":false,"foreman_tasks_recurring_logic_id":2,"cron_expression":null,"products":[{"id":6,"cp_id":"679719757090","name":"Test + string: ' {"id":6,"organization_id":4,"name":"Test Sync Plan","description":null,"interval":"weekly","next_sync":null,"sync_date":"2017-01-01 + 00:00:00 +0000","created_at":"2024-07-18 10:36:19 UTC","updated_at":"2024-07-18 + 10:36:19 UTC","enabled":false,"foreman_tasks_recurring_logic_id":9,"cron_expression":null,"products":[{"id":1,"cp_id":"393573755764","name":"Test Product","label":"Test_Product","description":"A happy little test product","sync_state":null,"last_sync":null,"last_sync_words":null,"repository_count":0}],"permissions":{"view_sync_plans":true,"edit_sync_plans":true,"destroy_sync_plans":true}} ' @@ -205,6 +198,8 @@ interactions: - max-age=0, private, must-revalidate Connection: - Keep-Alive + Content-Length: + - '606' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -216,15 +211,13 @@ interactions: Foreman_current_location: - ; ANY Foreman_current_organization: - - 6; Test Organization + - 4; Test Organization Foreman_version: - - 2.1.2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=97 Strict-Transport-Security: - max-age=631139040; includeSubdomains - Vary: - - Accept-Encoding X-Content-Type-Options: - nosniff X-Download-Options: @@ -235,8 +228,6 @@ interactions: - none X-XSS-Protection: - 1; mode=block - content-length: - - '604' status: code: 200 message: OK @@ -252,13 +243,13 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/organizations/6/products?search=name%3D%22Test+Product%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/organizations/4/products?search=name%3D%22Test+Product%22&per_page=4294967296 response: body: - string: '{"total":1,"subtotal":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Product\"","sort":{"by":"name","order":"asc"},"results":[{"id":6,"cp_id":"679719757090","name":"Test - Product","label":"Test_Product","description":"A happy little test product","provider_id":9,"sync_plan_id":2,"sync_summary":{},"gpg_key_id":null,"ssl_ca_cert_id":null,"ssl_client_cert_id":null,"ssl_client_key_id":null,"sync_state":null,"last_sync":null,"last_sync_words":null,"organization_id":6,"organization":{"name":"Test - Organization","label":"Test_Organization","id":6},"sync_plan":{"id":2,"name":"Test + string: '{"total":1,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test + Product\"","sort":{"by":"name","order":"asc"},"results":[{"id":1,"cp_id":"393573755764","name":"Test + Product","label":"Test_Product","description":"A happy little test product","provider_id":5,"sync_plan_id":6,"sync_summary":{},"gpg_key_id":null,"ssl_ca_cert_id":null,"ssl_client_cert_id":null,"ssl_client_key_id":null,"sync_state":null,"last_sync":null,"last_sync_words":null,"organization_id":4,"organization":{"name":"Test + Organization","label":"Test_Organization","id":4},"sync_plan":{"id":6,"name":"Test Sync Plan","description":null,"sync_date":"2017-01-01 00:00:00 UTC","interval":"weekly","next_sync":null,"cron_expression":null},"repository_count":0}]} ' @@ -267,6 +258,8 @@ interactions: - max-age=0, private, must-revalidate Connection: - Keep-Alive + Content-Length: + - '769' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -278,15 +271,13 @@ interactions: Foreman_current_location: - ; ANY Foreman_current_organization: - - 6; Test Organization + - 4; Test Organization Foreman_version: - - 2.1.2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=96 Strict-Transport-Security: - max-age=631139040; includeSubdomains - Vary: - - Accept-Encoding X-Content-Type-Options: - nosniff X-Download-Options: @@ -297,8 +288,6 @@ interactions: - none X-XSS-Protection: - 1; mode=block - content-length: - - '754' status: code: 200 message: OK diff --git a/tests/test_playbooks/fixtures/sync_plan-3.yml b/tests/test_playbooks/fixtures/sync_plan-3.yml index d78b9645..acc503cb 100644 --- a/tests/test_playbooks/fixtures/sync_plan-3.yml +++ b/tests/test_playbooks/fixtures/sync_plan-3.yml @@ -14,12 +14,14 @@ interactions: uri: https://foreman.example.org/api/status response: body: - string: '{"result":"ok","status":200,"version":"2.1.2","api_version":2}' + string: '{"result":"ok","status":200,"version":"3.12.0-develop","api_version":2}' headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive + Content-Length: + - '71' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -33,13 +35,11 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 2.1.2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=100 Strict-Transport-Security: - max-age=631139040; includeSubdomains - Vary: - - Accept-Encoding X-Content-Type-Options: - nosniff X-Download-Options: @@ -50,8 +50,6 @@ interactions: - none X-XSS-Protection: - 1; mode=block - content-length: - - '62' status: code: 200 message: OK @@ -70,17 +68,18 @@ interactions: uri: https://foreman.example.org/katello/api/organizations?search=name%3D%22Test+Organization%22&per_page=4294967296 response: body: - string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ - : 4294967296,\n \"search\": \"name=\\\"Test Organization\\\"\",\n \"sort\"\ - : {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\"\ - :\"Test_Organization\",\"created_at\":\"2020-09-04 13:03:52 UTC\",\"updated_at\"\ - :\"2020-09-04 13:03:52 UTC\",\"id\":6,\"name\":\"Test Organization\",\"title\"\ - :\"Test Organization\",\"description\":\"A test organization\"}]\n}\n" + string: "{\n \"total\": 3,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": + 4294967296,\n \"search\": \"name=\\\"Test Organization\\\"\",\n \"sort\": + {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\":\"Test_Organization\",\"created_at\":\"2024-07-18 + 10:23:39 UTC\",\"updated_at\":\"2024-07-18 10:23:41 UTC\",\"id\":4,\"name\":\"Test + Organization\",\"title\":\"Test Organization\",\"description\":\"A test organization\"}]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive + Content-Length: + - '388' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -94,13 +93,11 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 2.1.2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=99 Strict-Transport-Security: - max-age=631139040; includeSubdomains - Vary: - - Accept-Encoding X-Content-Type-Options: - nosniff X-Download-Options: @@ -111,8 +108,6 @@ interactions: - none X-XSS-Protection: - 1; mode=block - content-length: - - '388' status: code: 200 message: OK @@ -128,14 +123,14 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/organizations/6/sync_plans?search=name%3D%22Test+Sync+Plan%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/organizations/4/sync_plans?search=name%3D%22Test+Sync+Plan%22&per_page=4294967296 response: body: - string: '{"total":1,"subtotal":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Sync Plan\"","sort":{"by":"name","order":"asc"},"results":[{"id":2,"organization_id":6,"name":"Test + string: '{"total":1,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test + Sync Plan\"","sort":{"by":"name","order":"asc"},"results":[{"id":6,"organization_id":4,"name":"Test Sync Plan","description":null,"interval":"weekly","next_sync":null,"sync_date":"2017-01-01 - 00:00:00 UTC","created_at":"2020-09-04 13:03:57 UTC","updated_at":"2020-09-04 - 13:03:57 UTC","enabled":false,"foreman_tasks_recurring_logic_id":2,"cron_expression":null,"products":[{"id":6,"cp_id":"679719757090","name":"Test + 00:00:00 +0000","created_at":"2024-07-18 10:36:19 UTC","updated_at":"2024-07-18 + 10:36:19 UTC","enabled":false,"foreman_tasks_recurring_logic_id":9,"cron_expression":null,"products":[{"id":1,"cp_id":"393573755764","name":"Test Product","label":"Test_Product","description":"A happy little test product","sync_state":null,"last_sync":null,"last_sync_words":null,"repository_count":0}],"permissions":{"view_sync_plans":true,"edit_sync_plans":true,"destroy_sync_plans":true}}]} ' @@ -144,6 +139,8 @@ interactions: - max-age=0, private, must-revalidate Connection: - Keep-Alive + Content-Length: + - '772' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -155,15 +152,13 @@ interactions: Foreman_current_location: - ; ANY Foreman_current_organization: - - 6; Test Organization + - 4; Test Organization Foreman_version: - - 2.1.2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=98 Strict-Transport-Security: - max-age=631139040; includeSubdomains - Vary: - - Accept-Encoding X-Content-Type-Options: - nosniff X-Download-Options: @@ -174,8 +169,6 @@ interactions: - none X-XSS-Protection: - 1; mode=block - content-length: - - '755' status: code: 200 message: OK @@ -191,12 +184,12 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/organizations/6/sync_plans/2 + uri: https://foreman.example.org/katello/api/organizations/4/sync_plans/6 response: body: - string: ' {"id":2,"organization_id":6,"name":"Test Sync Plan","description":null,"interval":"weekly","next_sync":null,"sync_date":"2017-01-01 - 00:00:00 UTC","created_at":"2020-09-04 13:03:57 UTC","updated_at":"2020-09-04 - 13:03:57 UTC","enabled":false,"foreman_tasks_recurring_logic_id":2,"cron_expression":null,"products":[{"id":6,"cp_id":"679719757090","name":"Test + string: ' {"id":6,"organization_id":4,"name":"Test Sync Plan","description":null,"interval":"weekly","next_sync":null,"sync_date":"2017-01-01 + 00:00:00 +0000","created_at":"2024-07-18 10:36:19 UTC","updated_at":"2024-07-18 + 10:36:19 UTC","enabled":false,"foreman_tasks_recurring_logic_id":9,"cron_expression":null,"products":[{"id":1,"cp_id":"393573755764","name":"Test Product","label":"Test_Product","description":"A happy little test product","sync_state":null,"last_sync":null,"last_sync_words":null,"repository_count":0}],"permissions":{"view_sync_plans":true,"edit_sync_plans":true,"destroy_sync_plans":true}} ' @@ -205,6 +198,8 @@ interactions: - max-age=0, private, must-revalidate Connection: - Keep-Alive + Content-Length: + - '606' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -216,15 +211,13 @@ interactions: Foreman_current_location: - ; ANY Foreman_current_organization: - - 6; Test Organization + - 4; Test Organization Foreman_version: - - 2.1.2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=97 Strict-Transport-Security: - max-age=631139040; includeSubdomains - Vary: - - Accept-Encoding X-Content-Type-Options: - nosniff X-Download-Options: @@ -235,13 +228,11 @@ interactions: - none X-XSS-Protection: - 1; mode=block - content-length: - - '604' status: code: 200 message: OK - request: - body: '{"product_ids": [6]}' + body: '{"product_ids": [1]}' headers: Accept: - application/json;version=2 @@ -256,12 +247,12 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: PUT - uri: https://foreman.example.org/katello/api/organizations/6/sync_plans/2/remove_products + uri: https://foreman.example.org/katello/api/organizations/4/sync_plans/6/remove_products response: body: - string: ' {"id":2,"organization_id":6,"name":"Test Sync Plan","description":null,"interval":"weekly","next_sync":null,"sync_date":"2017-01-01 - 00:00:00 UTC","created_at":"2020-09-04 13:03:57 UTC","updated_at":"2020-09-04 - 13:03:57 UTC","enabled":false,"foreman_tasks_recurring_logic_id":2,"cron_expression":null,"products":[],"permissions":{"view_sync_plans":true,"edit_sync_plans":true,"destroy_sync_plans":true}} + string: ' {"id":6,"organization_id":4,"name":"Test Sync Plan","description":null,"interval":"weekly","next_sync":null,"sync_date":"2017-01-01 + 00:00:00 +0000","created_at":"2024-07-18 10:36:19 UTC","updated_at":"2024-07-18 + 10:36:19 UTC","enabled":false,"foreman_tasks_recurring_logic_id":9,"cron_expression":null,"products":[],"permissions":{"view_sync_plans":true,"edit_sync_plans":true,"destroy_sync_plans":true}} ' headers: @@ -269,6 +260,8 @@ interactions: - max-age=0, private, must-revalidate Connection: - Keep-Alive + Content-Length: + - '407' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -280,15 +273,13 @@ interactions: Foreman_current_location: - ; ANY Foreman_current_organization: - - 6; Test Organization + - 4; Test Organization Foreman_version: - - 2.1.2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=96 Strict-Transport-Security: - max-age=631139040; includeSubdomains - Vary: - - Accept-Encoding X-Content-Type-Options: - nosniff X-Download-Options: @@ -299,8 +290,6 @@ interactions: - none X-XSS-Protection: - 1; mode=block - content-length: - - '405' status: code: 200 message: OK diff --git a/tests/test_playbooks/fixtures/sync_plan-4.yml b/tests/test_playbooks/fixtures/sync_plan-4.yml index e0216ae7..fb36012d 100644 --- a/tests/test_playbooks/fixtures/sync_plan-4.yml +++ b/tests/test_playbooks/fixtures/sync_plan-4.yml @@ -14,12 +14,14 @@ interactions: uri: https://foreman.example.org/api/status response: body: - string: '{"result":"ok","status":200,"version":"2.1.2","api_version":2}' + string: '{"result":"ok","status":200,"version":"3.12.0-develop","api_version":2}' headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive + Content-Length: + - '71' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -33,13 +35,11 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 2.1.2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=100 Strict-Transport-Security: - max-age=631139040; includeSubdomains - Vary: - - Accept-Encoding X-Content-Type-Options: - nosniff X-Download-Options: @@ -50,8 +50,6 @@ interactions: - none X-XSS-Protection: - 1; mode=block - content-length: - - '62' status: code: 200 message: OK @@ -70,17 +68,18 @@ interactions: uri: https://foreman.example.org/katello/api/organizations?search=name%3D%22Test+Organization%22&per_page=4294967296 response: body: - string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ - : 4294967296,\n \"search\": \"name=\\\"Test Organization\\\"\",\n \"sort\"\ - : {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\"\ - :\"Test_Organization\",\"created_at\":\"2020-09-04 13:03:52 UTC\",\"updated_at\"\ - :\"2020-09-04 13:03:52 UTC\",\"id\":6,\"name\":\"Test Organization\",\"title\"\ - :\"Test Organization\",\"description\":\"A test organization\"}]\n}\n" + string: "{\n \"total\": 3,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": + 4294967296,\n \"search\": \"name=\\\"Test Organization\\\"\",\n \"sort\": + {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\":\"Test_Organization\",\"created_at\":\"2024-07-18 + 10:23:39 UTC\",\"updated_at\":\"2024-07-18 10:23:41 UTC\",\"id\":4,\"name\":\"Test + Organization\",\"title\":\"Test Organization\",\"description\":\"A test organization\"}]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive + Content-Length: + - '388' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -94,13 +93,11 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 2.1.2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=99 Strict-Transport-Security: - max-age=631139040; includeSubdomains - Vary: - - Accept-Encoding X-Content-Type-Options: - nosniff X-Download-Options: @@ -111,8 +108,6 @@ interactions: - none X-XSS-Protection: - 1; mode=block - content-length: - - '388' status: code: 200 message: OK @@ -128,14 +123,14 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/organizations/6/sync_plans?search=name%3D%22Test+Sync+Plan%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/organizations/4/sync_plans?search=name%3D%22Test+Sync+Plan%22&per_page=4294967296 response: body: - string: '{"total":1,"subtotal":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Sync Plan\"","sort":{"by":"name","order":"asc"},"results":[{"id":2,"organization_id":6,"name":"Test + string: '{"total":1,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test + Sync Plan\"","sort":{"by":"name","order":"asc"},"results":[{"id":6,"organization_id":4,"name":"Test Sync Plan","description":null,"interval":"weekly","next_sync":null,"sync_date":"2017-01-01 - 00:00:00 UTC","created_at":"2020-09-04 13:03:57 UTC","updated_at":"2020-09-04 - 13:03:57 UTC","enabled":false,"foreman_tasks_recurring_logic_id":2,"cron_expression":null,"products":[],"permissions":{"view_sync_plans":true,"edit_sync_plans":true,"destroy_sync_plans":true}}]} + 00:00:00 +0000","created_at":"2024-07-18 10:36:19 UTC","updated_at":"2024-07-18 + 10:36:19 UTC","enabled":false,"foreman_tasks_recurring_logic_id":9,"cron_expression":null,"products":[],"permissions":{"view_sync_plans":true,"edit_sync_plans":true,"destroy_sync_plans":true}}]} ' headers: @@ -143,6 +138,8 @@ interactions: - max-age=0, private, must-revalidate Connection: - Keep-Alive + Content-Length: + - '573' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -154,15 +151,13 @@ interactions: Foreman_current_location: - ; ANY Foreman_current_organization: - - 6; Test Organization + - 4; Test Organization Foreman_version: - - 2.1.2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=98 Strict-Transport-Security: - max-age=631139040; includeSubdomains - Vary: - - Accept-Encoding X-Content-Type-Options: - nosniff X-Download-Options: @@ -173,8 +168,6 @@ interactions: - none X-XSS-Protection: - 1; mode=block - content-length: - - '556' status: code: 200 message: OK @@ -190,12 +183,12 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/organizations/6/sync_plans/2 + uri: https://foreman.example.org/katello/api/organizations/4/sync_plans/6 response: body: - string: ' {"id":2,"organization_id":6,"name":"Test Sync Plan","description":null,"interval":"weekly","next_sync":null,"sync_date":"2017-01-01 - 00:00:00 UTC","created_at":"2020-09-04 13:03:57 UTC","updated_at":"2020-09-04 - 13:03:57 UTC","enabled":false,"foreman_tasks_recurring_logic_id":2,"cron_expression":null,"products":[],"permissions":{"view_sync_plans":true,"edit_sync_plans":true,"destroy_sync_plans":true}} + string: ' {"id":6,"organization_id":4,"name":"Test Sync Plan","description":null,"interval":"weekly","next_sync":null,"sync_date":"2017-01-01 + 00:00:00 +0000","created_at":"2024-07-18 10:36:19 UTC","updated_at":"2024-07-18 + 10:36:19 UTC","enabled":false,"foreman_tasks_recurring_logic_id":9,"cron_expression":null,"products":[],"permissions":{"view_sync_plans":true,"edit_sync_plans":true,"destroy_sync_plans":true}} ' headers: @@ -203,6 +196,8 @@ interactions: - max-age=0, private, must-revalidate Connection: - Keep-Alive + Content-Length: + - '407' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -214,15 +209,13 @@ interactions: Foreman_current_location: - ; ANY Foreman_current_organization: - - 6; Test Organization + - 4; Test Organization Foreman_version: - - 2.1.2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=97 Strict-Transport-Security: - max-age=631139040; includeSubdomains - Vary: - - Accept-Encoding X-Content-Type-Options: - nosniff X-Download-Options: @@ -233,8 +226,6 @@ interactions: - none X-XSS-Protection: - 1; mode=block - content-length: - - '405' status: code: 200 message: OK @@ -254,13 +245,13 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: PUT - uri: https://foreman.example.org/katello/api/organizations/6/sync_plans/2 + uri: https://foreman.example.org/katello/api/organizations/4/sync_plans/6 response: body: - string: ' {"id":2,"organization_id":6,"name":"Test Sync Plan","description":"Sync - daily, not weekly","interval":"daily","next_sync":"2020-09-05 00:00:00 UTC","sync_date":"2017-01-01 - 00:00:00 UTC","created_at":"2020-09-04 13:03:57 UTC","updated_at":"2020-09-04 - 13:04:00 UTC","enabled":true,"foreman_tasks_recurring_logic_id":3,"cron_expression":null,"products":[],"permissions":{"view_sync_plans":true,"edit_sync_plans":true,"destroy_sync_plans":true}} + string: ' {"id":6,"organization_id":4,"name":"Test Sync Plan","description":"Sync + daily, not weekly","interval":"daily","next_sync":"2024-07-19 00:00:00 UTC","sync_date":"2017-01-01 + 00:00:00 +0000","created_at":"2024-07-18 10:36:19 UTC","updated_at":"2024-07-18 + 10:36:21 UTC","enabled":true,"foreman_tasks_recurring_logic_id":10,"cron_expression":null,"products":[],"permissions":{"view_sync_plans":true,"edit_sync_plans":true,"destroy_sync_plans":true}} ' headers: @@ -268,6 +259,8 @@ interactions: - max-age=0, private, must-revalidate Connection: - Keep-Alive + Content-Length: + - '447' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -279,15 +272,13 @@ interactions: Foreman_current_location: - ; ANY Foreman_current_organization: - - 6; Test Organization + - 4; Test Organization Foreman_version: - - 2.1.2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=96 Strict-Transport-Security: - max-age=631139040; includeSubdomains - Vary: - - Accept-Encoding X-Content-Type-Options: - nosniff X-Download-Options: @@ -298,8 +289,6 @@ interactions: - none X-XSS-Protection: - 1; mode=block - content-length: - - '444' status: code: 200 message: OK diff --git a/tests/test_playbooks/fixtures/sync_plan-5.yml b/tests/test_playbooks/fixtures/sync_plan-5.yml index 075dd069..e61d3aa5 100644 --- a/tests/test_playbooks/fixtures/sync_plan-5.yml +++ b/tests/test_playbooks/fixtures/sync_plan-5.yml @@ -14,12 +14,14 @@ interactions: uri: https://foreman.example.org/api/status response: body: - string: '{"result":"ok","status":200,"version":"2.1.2","api_version":2}' + string: '{"result":"ok","status":200,"version":"3.12.0-develop","api_version":2}' headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive + Content-Length: + - '71' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -33,13 +35,11 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 2.1.2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=100 Strict-Transport-Security: - max-age=631139040; includeSubdomains - Vary: - - Accept-Encoding X-Content-Type-Options: - nosniff X-Download-Options: @@ -50,8 +50,6 @@ interactions: - none X-XSS-Protection: - 1; mode=block - content-length: - - '62' status: code: 200 message: OK @@ -70,17 +68,18 @@ interactions: uri: https://foreman.example.org/katello/api/organizations?search=name%3D%22Test+Organization%22&per_page=4294967296 response: body: - string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ - : 4294967296,\n \"search\": \"name=\\\"Test Organization\\\"\",\n \"sort\"\ - : {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\"\ - :\"Test_Organization\",\"created_at\":\"2020-09-04 13:03:52 UTC\",\"updated_at\"\ - :\"2020-09-04 13:03:52 UTC\",\"id\":6,\"name\":\"Test Organization\",\"title\"\ - :\"Test Organization\",\"description\":\"A test organization\"}]\n}\n" + string: "{\n \"total\": 3,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": + 4294967296,\n \"search\": \"name=\\\"Test Organization\\\"\",\n \"sort\": + {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\":\"Test_Organization\",\"created_at\":\"2024-07-18 + 10:23:39 UTC\",\"updated_at\":\"2024-07-18 10:23:41 UTC\",\"id\":4,\"name\":\"Test + Organization\",\"title\":\"Test Organization\",\"description\":\"A test organization\"}]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive + Content-Length: + - '388' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -94,13 +93,11 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 2.1.2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=99 Strict-Transport-Security: - max-age=631139040; includeSubdomains - Vary: - - Accept-Encoding X-Content-Type-Options: - nosniff X-Download-Options: @@ -111,8 +108,6 @@ interactions: - none X-XSS-Protection: - 1; mode=block - content-length: - - '388' status: code: 200 message: OK @@ -128,14 +123,14 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/organizations/6/sync_plans?search=name%3D%22Test+Sync+Plan%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/organizations/4/sync_plans?search=name%3D%22Test+Sync+Plan%22&per_page=4294967296 response: body: - string: '{"total":1,"subtotal":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Sync Plan\"","sort":{"by":"name","order":"asc"},"results":[{"id":2,"organization_id":6,"name":"Test - Sync Plan","description":"Sync daily, not weekly","interval":"daily","next_sync":"2020-09-05 - 00:00:00 UTC","sync_date":"2017-01-01 00:00:00 UTC","created_at":"2020-09-04 - 13:03:57 UTC","updated_at":"2020-09-04 13:04:00 UTC","enabled":true,"foreman_tasks_recurring_logic_id":3,"cron_expression":null,"products":[],"permissions":{"view_sync_plans":true,"edit_sync_plans":true,"destroy_sync_plans":true}}]} + string: '{"total":1,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test + Sync Plan\"","sort":{"by":"name","order":"asc"},"results":[{"id":6,"organization_id":4,"name":"Test + Sync Plan","description":"Sync daily, not weekly","interval":"daily","next_sync":"2024-07-19 + 00:00:00 UTC","sync_date":"2017-01-01 00:00:00 +0000","created_at":"2024-07-18 + 10:36:19 UTC","updated_at":"2024-07-18 10:36:21 UTC","enabled":true,"foreman_tasks_recurring_logic_id":10,"cron_expression":null,"products":[],"permissions":{"view_sync_plans":true,"edit_sync_plans":true,"destroy_sync_plans":true}}]} ' headers: @@ -143,6 +138,8 @@ interactions: - max-age=0, private, must-revalidate Connection: - Keep-Alive + Content-Length: + - '613' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -154,15 +151,13 @@ interactions: Foreman_current_location: - ; ANY Foreman_current_organization: - - 6; Test Organization + - 4; Test Organization Foreman_version: - - 2.1.2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=98 Strict-Transport-Security: - max-age=631139040; includeSubdomains - Vary: - - Accept-Encoding X-Content-Type-Options: - nosniff X-Download-Options: @@ -173,8 +168,6 @@ interactions: - none X-XSS-Protection: - 1; mode=block - content-length: - - '595' status: code: 200 message: OK @@ -190,13 +183,13 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/organizations/6/sync_plans/2 + uri: https://foreman.example.org/katello/api/organizations/4/sync_plans/6 response: body: - string: ' {"id":2,"organization_id":6,"name":"Test Sync Plan","description":"Sync - daily, not weekly","interval":"daily","next_sync":"2020-09-05 00:00:00 UTC","sync_date":"2017-01-01 - 00:00:00 UTC","created_at":"2020-09-04 13:03:57 UTC","updated_at":"2020-09-04 - 13:04:00 UTC","enabled":true,"foreman_tasks_recurring_logic_id":3,"cron_expression":null,"products":[],"permissions":{"view_sync_plans":true,"edit_sync_plans":true,"destroy_sync_plans":true}} + string: ' {"id":6,"organization_id":4,"name":"Test Sync Plan","description":"Sync + daily, not weekly","interval":"daily","next_sync":"2024-07-19 00:00:00 UTC","sync_date":"2017-01-01 + 00:00:00 +0000","created_at":"2024-07-18 10:36:19 UTC","updated_at":"2024-07-18 + 10:36:21 UTC","enabled":true,"foreman_tasks_recurring_logic_id":10,"cron_expression":null,"products":[],"permissions":{"view_sync_plans":true,"edit_sync_plans":true,"destroy_sync_plans":true}} ' headers: @@ -204,6 +197,8 @@ interactions: - max-age=0, private, must-revalidate Connection: - Keep-Alive + Content-Length: + - '447' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -215,15 +210,13 @@ interactions: Foreman_current_location: - ; ANY Foreman_current_organization: - - 6; Test Organization + - 4; Test Organization Foreman_version: - - 2.1.2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=97 Strict-Transport-Security: - max-age=631139040; includeSubdomains - Vary: - - Accept-Encoding X-Content-Type-Options: - nosniff X-Download-Options: @@ -234,8 +227,6 @@ interactions: - none X-XSS-Protection: - 1; mode=block - content-length: - - '444' status: code: 200 message: OK @@ -256,13 +247,13 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: PUT - uri: https://foreman.example.org/katello/api/organizations/6/sync_plans/2 + uri: https://foreman.example.org/katello/api/organizations/4/sync_plans/6 response: body: - string: ' {"id":2,"organization_id":6,"name":"Test Sync Plan","description":"Sync + string: ' {"id":6,"organization_id":4,"name":"Test Sync Plan","description":"Sync daily, not weekly","interval":"custom cron","next_sync":null,"sync_date":"2017-01-01 - 00:00:00 UTC","created_at":"2020-09-04 13:03:57 UTC","updated_at":"2020-09-04 - 13:04:01 UTC","enabled":false,"foreman_tasks_recurring_logic_id":4,"cron_expression":"* + 00:00:00 +0000","created_at":"2024-07-18 10:36:19 UTC","updated_at":"2024-07-18 + 10:36:22 UTC","enabled":false,"foreman_tasks_recurring_logic_id":11,"cron_expression":"* * * * */5","products":[],"permissions":{"view_sync_plans":true,"edit_sync_plans":true,"destroy_sync_plans":true}} ' @@ -271,6 +262,8 @@ interactions: - max-age=0, private, must-revalidate Connection: - Keep-Alive + Content-Length: + - '442' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -282,15 +275,13 @@ interactions: Foreman_current_location: - ; ANY Foreman_current_organization: - - 6; Test Organization + - 4; Test Organization Foreman_version: - - 2.1.2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=96 Strict-Transport-Security: - max-age=631139040; includeSubdomains - Vary: - - Accept-Encoding X-Content-Type-Options: - nosniff X-Download-Options: @@ -301,8 +292,6 @@ interactions: - none X-XSS-Protection: - 1; mode=block - content-length: - - '439' status: code: 200 message: OK diff --git a/tests/test_playbooks/fixtures/sync_plan-6.yml b/tests/test_playbooks/fixtures/sync_plan-6.yml index de6365b0..57df1a3a 100644 --- a/tests/test_playbooks/fixtures/sync_plan-6.yml +++ b/tests/test_playbooks/fixtures/sync_plan-6.yml @@ -14,12 +14,14 @@ interactions: uri: https://foreman.example.org/api/status response: body: - string: '{"result":"ok","status":200,"version":"2.1.2","api_version":2}' + string: '{"result":"ok","status":200,"version":"3.12.0-develop","api_version":2}' headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive + Content-Length: + - '71' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -33,13 +35,11 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 2.1.2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=100 Strict-Transport-Security: - max-age=631139040; includeSubdomains - Vary: - - Accept-Encoding X-Content-Type-Options: - nosniff X-Download-Options: @@ -50,8 +50,6 @@ interactions: - none X-XSS-Protection: - 1; mode=block - content-length: - - '62' status: code: 200 message: OK @@ -70,17 +68,18 @@ interactions: uri: https://foreman.example.org/katello/api/organizations?search=name%3D%22Test+Organization%22&per_page=4294967296 response: body: - string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ - : 4294967296,\n \"search\": \"name=\\\"Test Organization\\\"\",\n \"sort\"\ - : {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\"\ - :\"Test_Organization\",\"created_at\":\"2020-09-04 13:03:52 UTC\",\"updated_at\"\ - :\"2020-09-04 13:03:52 UTC\",\"id\":6,\"name\":\"Test Organization\",\"title\"\ - :\"Test Organization\",\"description\":\"A test organization\"}]\n}\n" + string: "{\n \"total\": 3,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": + 4294967296,\n \"search\": \"name=\\\"Test Organization\\\"\",\n \"sort\": + {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\":\"Test_Organization\",\"created_at\":\"2024-07-18 + 10:23:39 UTC\",\"updated_at\":\"2024-07-18 10:23:41 UTC\",\"id\":4,\"name\":\"Test + Organization\",\"title\":\"Test Organization\",\"description\":\"A test organization\"}]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive + Content-Length: + - '388' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -94,13 +93,11 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 2.1.2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=99 Strict-Transport-Security: - max-age=631139040; includeSubdomains - Vary: - - Accept-Encoding X-Content-Type-Options: - nosniff X-Download-Options: @@ -111,8 +108,6 @@ interactions: - none X-XSS-Protection: - 1; mode=block - content-length: - - '388' status: code: 200 message: OK @@ -128,14 +123,14 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/organizations/6/sync_plans?search=name%3D%22Test+Sync+Plan%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/organizations/4/sync_plans?search=name%3D%22Test+Sync+Plan%22&per_page=4294967296 response: body: - string: '{"total":1,"subtotal":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Sync Plan\"","sort":{"by":"name","order":"asc"},"results":[{"id":2,"organization_id":6,"name":"Test + string: '{"total":1,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test + Sync Plan\"","sort":{"by":"name","order":"asc"},"results":[{"id":6,"organization_id":4,"name":"Test Sync Plan","description":"Sync daily, not weekly","interval":"custom cron","next_sync":null,"sync_date":"2017-01-01 - 00:00:00 UTC","created_at":"2020-09-04 13:03:57 UTC","updated_at":"2020-09-04 - 13:04:01 UTC","enabled":false,"foreman_tasks_recurring_logic_id":4,"cron_expression":"* + 00:00:00 +0000","created_at":"2024-07-18 10:36:19 UTC","updated_at":"2024-07-18 + 10:36:22 UTC","enabled":false,"foreman_tasks_recurring_logic_id":11,"cron_expression":"* * * * */5","products":[],"permissions":{"view_sync_plans":true,"edit_sync_plans":true,"destroy_sync_plans":true}}]} ' @@ -144,6 +139,8 @@ interactions: - max-age=0, private, must-revalidate Connection: - Keep-Alive + Content-Length: + - '608' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -155,15 +152,13 @@ interactions: Foreman_current_location: - ; ANY Foreman_current_organization: - - 6; Test Organization + - 4; Test Organization Foreman_version: - - 2.1.2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=98 Strict-Transport-Security: - max-age=631139040; includeSubdomains - Vary: - - Accept-Encoding X-Content-Type-Options: - nosniff X-Download-Options: @@ -174,8 +169,6 @@ interactions: - none X-XSS-Protection: - 1; mode=block - content-length: - - '590' status: code: 200 message: OK @@ -191,13 +184,13 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/organizations/6/products?search=name%3D%22Test+Product%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/organizations/4/products?search=name%3D%22Test+Product%22&per_page=4294967296 response: body: - string: '{"total":1,"subtotal":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Product\"","sort":{"by":"name","order":"asc"},"results":[{"id":6,"cp_id":"679719757090","name":"Test - Product","label":"Test_Product","description":"A happy little test product","provider_id":9,"sync_plan_id":null,"sync_summary":{},"gpg_key_id":null,"ssl_ca_cert_id":null,"ssl_client_cert_id":null,"ssl_client_key_id":null,"sync_state":null,"last_sync":null,"last_sync_words":null,"organization_id":6,"organization":{"name":"Test - Organization","label":"Test_Organization","id":6},"sync_plan":null,"repository_count":0}]} + string: '{"total":1,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test + Product\"","sort":{"by":"name","order":"asc"},"results":[{"id":1,"cp_id":"393573755764","name":"Test + Product","label":"Test_Product","description":"A happy little test product","provider_id":5,"sync_plan_id":null,"sync_summary":{},"gpg_key_id":null,"ssl_ca_cert_id":null,"ssl_client_cert_id":null,"ssl_client_key_id":null,"sync_state":null,"last_sync":null,"last_sync_words":null,"organization_id":4,"organization":{"name":"Test + Organization","label":"Test_Organization","id":4},"sync_plan":null,"repository_count":0}]} ' headers: @@ -205,6 +198,8 @@ interactions: - max-age=0, private, must-revalidate Connection: - Keep-Alive + Content-Length: + - '627' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -216,15 +211,13 @@ interactions: Foreman_current_location: - ; ANY Foreman_current_organization: - - 6; Test Organization + - 4; Test Organization Foreman_version: - - 2.1.2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=97 Strict-Transport-Security: - max-age=631139040; includeSubdomains - Vary: - - Accept-Encoding X-Content-Type-Options: - nosniff X-Download-Options: @@ -235,8 +228,6 @@ interactions: - none X-XSS-Protection: - 1; mode=block - content-length: - - '612' status: code: 200 message: OK @@ -252,13 +243,13 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/products/6?organization_id=6 + uri: https://foreman.example.org/katello/api/products/1?organization_id=4 response: body: - string: ' {"sync_state_aggregated":null,"redhat":false,"id":6,"cp_id":"679719757090","name":"Test - Product","label":"Test_Product","description":"A happy little test product","provider_id":9,"sync_plan_id":null,"sync_summary":{},"gpg_key_id":null,"ssl_ca_cert_id":null,"ssl_client_cert_id":null,"ssl_client_key_id":null,"sync_state":null,"last_sync":null,"last_sync_words":null,"organization_id":6,"organization":{"name":"Test - Organization","label":"Test_Organization","id":6},"sync_plan":null,"repository_count":0,"created_at":"2020-09-04 - 13:03:55 UTC","updated_at":"2020-09-04 13:03:57 UTC","product_content":[],"available_content":[],"repositories":[],"provider":{"name":"Anonymous"},"sync_status":{"id":null,"product_id":null,"progress":null,"sync_id":null,"state":null,"raw_state":null,"start_time":null,"finish_time":null,"duration":null,"display_size":null,"size":null,"is_running":null,"error_details":null},"permissions":{"view_products":true,"edit_products":true,"destroy_products":true,"sync_products":true},"published_content_view_ids":[],"active_task_count":0} + string: ' {"sync_state_aggregated":null,"redhat":false,"id":1,"cp_id":"393573755764","name":"Test + Product","label":"Test_Product","description":"A happy little test product","provider_id":5,"sync_plan_id":null,"sync_summary":{},"gpg_key_id":null,"ssl_ca_cert_id":null,"ssl_client_cert_id":null,"ssl_client_key_id":null,"sync_state":null,"last_sync":null,"last_sync_words":null,"organization_id":4,"organization":{"name":"Test + Organization","label":"Test_Organization","id":4},"sync_plan":null,"repository_count":0,"created_at":"2024-07-18 + 10:23:42 UTC","updated_at":"2024-07-18 10:36:19 UTC","product_content":[],"available_content":[],"repositories":[],"provider":{"name":"Anonymous"},"sync_status":{"id":null,"product_id":null,"progress":null,"sync_id":null,"state":null,"raw_state":null,"start_time":null,"finish_time":null,"duration":null,"display_size":null,"size":null,"is_running":null,"error_details":null},"permissions":{"view_products":true,"edit_products":true,"destroy_products":true,"sync_products":true},"published_content_view_ids":[],"has_last_affected_repo_in_filter":false,"active_task_count":0} ' headers: @@ -266,6 +257,8 @@ interactions: - max-age=0, private, must-revalidate Connection: - Keep-Alive + Content-Length: + - '1106' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -277,15 +270,13 @@ interactions: Foreman_current_location: - ; ANY Foreman_current_organization: - - 6; Test Organization + - 4; Test Organization Foreman_version: - - 2.1.2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=96 Strict-Transport-Security: - max-age=631139040; includeSubdomains - Vary: - - Accept-Encoding X-Content-Type-Options: - nosniff X-Download-Options: @@ -296,13 +287,11 @@ interactions: - none X-XSS-Protection: - 1; mode=block - content-length: - - '1065' status: code: 200 message: OK - request: - body: '{"sync_plan_id": 2}' + body: '{"sync_plan_id": 6}' headers: Accept: - application/json;version=2 @@ -317,16 +306,16 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: PUT - uri: https://foreman.example.org/katello/api/products/6 + uri: https://foreman.example.org/katello/api/products/1 response: body: - string: ' {"sync_state_aggregated":null,"redhat":false,"id":6,"cp_id":"679719757090","name":"Test - Product","label":"Test_Product","description":"A happy little test product","provider_id":9,"sync_plan_id":2,"sync_summary":{},"gpg_key_id":null,"ssl_ca_cert_id":null,"ssl_client_cert_id":null,"ssl_client_key_id":null,"sync_state":null,"last_sync":null,"last_sync_words":null,"organization_id":6,"organization":{"name":"Test - Organization","label":"Test_Organization","id":6},"sync_plan":{"id":2,"name":"Test + string: ' {"sync_state_aggregated":null,"redhat":false,"id":1,"cp_id":"393573755764","name":"Test + Product","label":"Test_Product","description":"A happy little test product","provider_id":5,"sync_plan_id":6,"sync_summary":{},"gpg_key_id":null,"ssl_ca_cert_id":null,"ssl_client_cert_id":null,"ssl_client_key_id":null,"sync_state":null,"last_sync":null,"last_sync_words":null,"organization_id":4,"organization":{"name":"Test + Organization","label":"Test_Organization","id":4},"sync_plan":{"id":6,"name":"Test Sync Plan","description":"Sync daily, not weekly","sync_date":"2017-01-01 00:00:00 UTC","interval":"custom cron","next_sync":null,"cron_expression":"* - * * * */5"},"repository_count":0,"created_at":"2020-09-04 13:03:55 UTC","updated_at":"2020-09-04 - 13:04:02 UTC","product_content":[],"available_content":[],"repositories":[],"provider":{"name":"Anonymous"},"sync_status":{"id":null,"product_id":null,"progress":null,"sync_id":null,"state":null,"raw_state":null,"start_time":null,"finish_time":null,"duration":null,"display_size":null,"size":null,"is_running":null,"error_details":null},"permissions":{"view_products":true,"edit_products":true,"destroy_products":true,"sync_products":true},"published_content_view_ids":[],"active_task_count":0} + * * * */5"},"repository_count":0,"created_at":"2024-07-18 10:23:42 UTC","updated_at":"2024-07-18 + 10:36:23 UTC","product_content":[],"available_content":[],"repositories":[],"provider":{"name":"Anonymous"},"sync_status":{"id":null,"product_id":null,"progress":null,"sync_id":null,"state":null,"raw_state":null,"start_time":null,"finish_time":null,"duration":null,"display_size":null,"size":null,"is_running":null,"error_details":null},"permissions":{"view_products":true,"edit_products":true,"destroy_products":true,"sync_products":true},"published_content_view_ids":[],"has_last_affected_repo_in_filter":false,"active_task_count":0} ' headers: @@ -334,6 +323,8 @@ interactions: - max-age=0, private, must-revalidate Connection: - Keep-Alive + Content-Length: + - '1282' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -347,13 +338,11 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 2.1.2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=95 Strict-Transport-Security: - max-age=631139040; includeSubdomains - Vary: - - Accept-Encoding X-Content-Type-Options: - nosniff X-Download-Options: @@ -364,8 +353,6 @@ interactions: - none X-XSS-Protection: - 1; mode=block - content-length: - - '1241' status: code: 200 message: OK diff --git a/tests/test_playbooks/fixtures/sync_plan-7.yml b/tests/test_playbooks/fixtures/sync_plan-7.yml index 7b8360ad..22ee258d 100644 --- a/tests/test_playbooks/fixtures/sync_plan-7.yml +++ b/tests/test_playbooks/fixtures/sync_plan-7.yml @@ -14,12 +14,14 @@ interactions: uri: https://foreman.example.org/api/status response: body: - string: '{"result":"ok","status":200,"version":"2.1.2","api_version":2}' + string: '{"result":"ok","status":200,"version":"3.12.0-develop","api_version":2}' headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive + Content-Length: + - '71' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -33,13 +35,11 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 2.1.2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=100 Strict-Transport-Security: - max-age=631139040; includeSubdomains - Vary: - - Accept-Encoding X-Content-Type-Options: - nosniff X-Download-Options: @@ -50,8 +50,6 @@ interactions: - none X-XSS-Protection: - 1; mode=block - content-length: - - '62' status: code: 200 message: OK @@ -70,17 +68,18 @@ interactions: uri: https://foreman.example.org/katello/api/organizations?search=name%3D%22Test+Organization%22&per_page=4294967296 response: body: - string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ - : 4294967296,\n \"search\": \"name=\\\"Test Organization\\\"\",\n \"sort\"\ - : {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\"\ - :\"Test_Organization\",\"created_at\":\"2020-09-04 13:03:52 UTC\",\"updated_at\"\ - :\"2020-09-04 13:03:52 UTC\",\"id\":6,\"name\":\"Test Organization\",\"title\"\ - :\"Test Organization\",\"description\":\"A test organization\"}]\n}\n" + string: "{\n \"total\": 3,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": + 4294967296,\n \"search\": \"name=\\\"Test Organization\\\"\",\n \"sort\": + {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\":\"Test_Organization\",\"created_at\":\"2024-07-18 + 10:23:39 UTC\",\"updated_at\":\"2024-07-18 10:23:41 UTC\",\"id\":4,\"name\":\"Test + Organization\",\"title\":\"Test Organization\",\"description\":\"A test organization\"}]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive + Content-Length: + - '388' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -94,13 +93,11 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 2.1.2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=99 Strict-Transport-Security: - max-age=631139040; includeSubdomains - Vary: - - Accept-Encoding X-Content-Type-Options: - nosniff X-Download-Options: @@ -111,8 +108,6 @@ interactions: - none X-XSS-Protection: - 1; mode=block - content-length: - - '388' status: code: 200 message: OK @@ -128,15 +123,15 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/organizations/6/sync_plans?search=name%3D%22Test+Sync+Plan%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/organizations/4/sync_plans?search=name%3D%22Test+Sync+Plan%22&per_page=4294967296 response: body: - string: '{"total":1,"subtotal":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Sync Plan\"","sort":{"by":"name","order":"asc"},"results":[{"id":2,"organization_id":6,"name":"Test + string: '{"total":1,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test + Sync Plan\"","sort":{"by":"name","order":"asc"},"results":[{"id":6,"organization_id":4,"name":"Test Sync Plan","description":"Sync daily, not weekly","interval":"custom cron","next_sync":null,"sync_date":"2017-01-01 - 00:00:00 UTC","created_at":"2020-09-04 13:03:57 UTC","updated_at":"2020-09-04 - 13:04:01 UTC","enabled":false,"foreman_tasks_recurring_logic_id":4,"cron_expression":"* - * * * */5","products":[{"id":6,"cp_id":"679719757090","name":"Test Product","label":"Test_Product","description":"A + 00:00:00 +0000","created_at":"2024-07-18 10:36:19 UTC","updated_at":"2024-07-18 + 10:36:22 UTC","enabled":false,"foreman_tasks_recurring_logic_id":11,"cron_expression":"* + * * * */5","products":[{"id":1,"cp_id":"393573755764","name":"Test Product","label":"Test_Product","description":"A happy little test product","sync_state":null,"last_sync":null,"last_sync_words":null,"repository_count":0}],"permissions":{"view_sync_plans":true,"edit_sync_plans":true,"destroy_sync_plans":true}}]} ' @@ -145,6 +140,8 @@ interactions: - max-age=0, private, must-revalidate Connection: - Keep-Alive + Content-Length: + - '807' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -156,15 +153,13 @@ interactions: Foreman_current_location: - ; ANY Foreman_current_organization: - - 6; Test Organization + - 4; Test Organization Foreman_version: - - 2.1.2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=98 Strict-Transport-Security: - max-age=631139040; includeSubdomains - Vary: - - Accept-Encoding X-Content-Type-Options: - nosniff X-Download-Options: @@ -175,8 +170,6 @@ interactions: - none X-XSS-Protection: - 1; mode=block - content-length: - - '789' status: code: 200 message: OK @@ -192,14 +185,14 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/organizations/6/sync_plans/2 + uri: https://foreman.example.org/katello/api/organizations/4/sync_plans/6 response: body: - string: ' {"id":2,"organization_id":6,"name":"Test Sync Plan","description":"Sync + string: ' {"id":6,"organization_id":4,"name":"Test Sync Plan","description":"Sync daily, not weekly","interval":"custom cron","next_sync":null,"sync_date":"2017-01-01 - 00:00:00 UTC","created_at":"2020-09-04 13:03:57 UTC","updated_at":"2020-09-04 - 13:04:01 UTC","enabled":false,"foreman_tasks_recurring_logic_id":4,"cron_expression":"* - * * * */5","products":[{"id":6,"cp_id":"679719757090","name":"Test Product","label":"Test_Product","description":"A + 00:00:00 +0000","created_at":"2024-07-18 10:36:19 UTC","updated_at":"2024-07-18 + 10:36:22 UTC","enabled":false,"foreman_tasks_recurring_logic_id":11,"cron_expression":"* + * * * */5","products":[{"id":1,"cp_id":"393573755764","name":"Test Product","label":"Test_Product","description":"A happy little test product","sync_state":null,"last_sync":null,"last_sync_words":null,"repository_count":0}],"permissions":{"view_sync_plans":true,"edit_sync_plans":true,"destroy_sync_plans":true}} ' @@ -208,6 +201,8 @@ interactions: - max-age=0, private, must-revalidate Connection: - Keep-Alive + Content-Length: + - '641' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -219,15 +214,13 @@ interactions: Foreman_current_location: - ; ANY Foreman_current_organization: - - 6; Test Organization + - 4; Test Organization Foreman_version: - - 2.1.2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=97 Strict-Transport-Security: - max-age=631139040; includeSubdomains - Vary: - - Accept-Encoding X-Content-Type-Options: - nosniff X-Download-Options: @@ -238,8 +231,6 @@ interactions: - none X-XSS-Protection: - 1; mode=block - content-length: - - '638' status: code: 200 message: OK diff --git a/tests/test_playbooks/fixtures/sync_plan-8.yml b/tests/test_playbooks/fixtures/sync_plan-8.yml index aff1ebfc..1026b2b3 100644 --- a/tests/test_playbooks/fixtures/sync_plan-8.yml +++ b/tests/test_playbooks/fixtures/sync_plan-8.yml @@ -14,12 +14,14 @@ interactions: uri: https://foreman.example.org/api/status response: body: - string: '{"result":"ok","status":200,"version":"2.1.2","api_version":2}' + string: '{"result":"ok","status":200,"version":"3.12.0-develop","api_version":2}' headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive + Content-Length: + - '71' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -33,13 +35,11 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 2.1.2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=100 Strict-Transport-Security: - max-age=631139040; includeSubdomains - Vary: - - Accept-Encoding X-Content-Type-Options: - nosniff X-Download-Options: @@ -50,8 +50,6 @@ interactions: - none X-XSS-Protection: - 1; mode=block - content-length: - - '62' status: code: 200 message: OK @@ -70,17 +68,18 @@ interactions: uri: https://foreman.example.org/katello/api/organizations?search=name%3D%22Test+Organization%22&per_page=4294967296 response: body: - string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ - : 4294967296,\n \"search\": \"name=\\\"Test Organization\\\"\",\n \"sort\"\ - : {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\"\ - :\"Test_Organization\",\"created_at\":\"2020-09-04 13:03:52 UTC\",\"updated_at\"\ - :\"2020-09-04 13:03:52 UTC\",\"id\":6,\"name\":\"Test Organization\",\"title\"\ - :\"Test Organization\",\"description\":\"A test organization\"}]\n}\n" + string: "{\n \"total\": 3,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": + 4294967296,\n \"search\": \"name=\\\"Test Organization\\\"\",\n \"sort\": + {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\":\"Test_Organization\",\"created_at\":\"2024-07-18 + 10:23:39 UTC\",\"updated_at\":\"2024-07-18 10:23:41 UTC\",\"id\":4,\"name\":\"Test + Organization\",\"title\":\"Test Organization\",\"description\":\"A test organization\"}]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive + Content-Length: + - '388' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -94,13 +93,11 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 2.1.2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=99 Strict-Transport-Security: - max-age=631139040; includeSubdomains - Vary: - - Accept-Encoding X-Content-Type-Options: - nosniff X-Download-Options: @@ -111,8 +108,6 @@ interactions: - none X-XSS-Protection: - 1; mode=block - content-length: - - '388' status: code: 200 message: OK @@ -128,15 +123,15 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/organizations/6/sync_plans?search=name%3D%22Test+Sync+Plan%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/organizations/4/sync_plans?search=name%3D%22Test+Sync+Plan%22&per_page=4294967296 response: body: - string: '{"total":1,"subtotal":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Sync Plan\"","sort":{"by":"name","order":"asc"},"results":[{"id":2,"organization_id":6,"name":"Test + string: '{"total":1,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test + Sync Plan\"","sort":{"by":"name","order":"asc"},"results":[{"id":6,"organization_id":4,"name":"Test Sync Plan","description":"Sync daily, not weekly","interval":"custom cron","next_sync":null,"sync_date":"2017-01-01 - 00:00:00 UTC","created_at":"2020-09-04 13:03:57 UTC","updated_at":"2020-09-04 - 13:04:01 UTC","enabled":false,"foreman_tasks_recurring_logic_id":4,"cron_expression":"* - * * * */5","products":[{"id":6,"cp_id":"679719757090","name":"Test Product","label":"Test_Product","description":"A + 00:00:00 +0000","created_at":"2024-07-18 10:36:19 UTC","updated_at":"2024-07-18 + 10:36:22 UTC","enabled":false,"foreman_tasks_recurring_logic_id":11,"cron_expression":"* + * * * */5","products":[{"id":1,"cp_id":"393573755764","name":"Test Product","label":"Test_Product","description":"A happy little test product","sync_state":null,"last_sync":null,"last_sync_words":null,"repository_count":0}],"permissions":{"view_sync_plans":true,"edit_sync_plans":true,"destroy_sync_plans":true}}]} ' @@ -145,6 +140,8 @@ interactions: - max-age=0, private, must-revalidate Connection: - Keep-Alive + Content-Length: + - '807' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -156,15 +153,13 @@ interactions: Foreman_current_location: - ; ANY Foreman_current_organization: - - 6; Test Organization + - 4; Test Organization Foreman_version: - - 2.1.2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=98 Strict-Transport-Security: - max-age=631139040; includeSubdomains - Vary: - - Accept-Encoding X-Content-Type-Options: - nosniff X-Download-Options: @@ -175,8 +170,6 @@ interactions: - none X-XSS-Protection: - 1; mode=block - content-length: - - '789' status: code: 200 message: OK @@ -194,7 +187,7 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: DELETE - uri: https://foreman.example.org/katello/api/organizations/6/sync_plans/2 + uri: https://foreman.example.org/katello/api/organizations/4/sync_plans/6 response: body: string: '' @@ -212,9 +205,9 @@ interactions: Foreman_current_location: - ; ANY Foreman_current_organization: - - 6; Test Organization + - 4; Test Organization Foreman_version: - - 2.1.2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=97 Strict-Transport-Security: diff --git a/tests/test_playbooks/tasks/sync_plan.yml b/tests/test_playbooks/tasks/sync_plan.yml index 02acc3de..10b643d8 100644 --- a/tests/test_playbooks/tasks/sync_plan.yml +++ b/tests/test_playbooks/tasks/sync_plan.yml @@ -5,7 +5,7 @@ sync_plan_organization: "Test Organization" sync_plan_interval: "weekly" sync_plan_enabled: false - sync_plan_sync_date: "2017-01-01 00:00:00 UTC" + sync_plan_sync_date: "2017-01-01 00:00:00 +0000" sync_plan_state: present sync_plan: username: "{{ foreman_username }}" From 251b53b092a82b2916ab6baa1a6de898a99539d9 Mon Sep 17 00:00:00 2001 From: Patrick Pfurtscheller Date: Wed, 3 Apr 2024 13:26:27 +0200 Subject: [PATCH 03/36] feat: add description parameter to location --- .../fragments/1724-location_description.yml | 2 + plugins/modules/location.py | 7 + roles/locations/tasks/main.yml | 1 + tests/test_playbooks/fixtures/location-0.yml | 226 +++++---- tests/test_playbooks/fixtures/location-1.yml | 230 +++++---- tests/test_playbooks/fixtures/location-10.yml | 40 +- tests/test_playbooks/fixtures/location-11.yml | 38 +- tests/test_playbooks/fixtures/location-12.yml | 38 +- tests/test_playbooks/fixtures/location-13.yml | 24 +- tests/test_playbooks/fixtures/location-14.yml | 24 +- tests/test_playbooks/fixtures/location-15.yml | 28 +- tests/test_playbooks/fixtures/location-16.yml | 226 +++++---- tests/test_playbooks/fixtures/location-17.yml | 230 +++++---- tests/test_playbooks/fixtures/location-18.yml | 282 ++++++----- tests/test_playbooks/fixtures/location-19.yml | 262 +++++----- tests/test_playbooks/fixtures/location-2.yml | 252 +++++----- tests/test_playbooks/fixtures/location-20.yml | 286 ++++++----- tests/test_playbooks/fixtures/location-21.yml | 246 ++++----- tests/test_playbooks/fixtures/location-22.yml | 258 +++++----- tests/test_playbooks/fixtures/location-23.yml | 230 +++++---- tests/test_playbooks/fixtures/location-24.yml | 28 +- tests/test_playbooks/fixtures/location-25.yml | 20 +- tests/test_playbooks/fixtures/location-26.yml | 286 +++++++++++ tests/test_playbooks/fixtures/location-27.yml | 284 +++++++++++ tests/test_playbooks/fixtures/location-3.yml | 252 +++++----- tests/test_playbooks/fixtures/location-4.yml | 240 ++++----- tests/test_playbooks/fixtures/location-5.yml | 244 ++++----- tests/test_playbooks/fixtures/location-6.yml | 244 ++++----- tests/test_playbooks/fixtures/location-7.yml | 470 +++++++++--------- tests/test_playbooks/fixtures/location-8.yml | 240 ++++----- tests/test_playbooks/fixtures/location-9.yml | 26 +- .../fixtures/locations_role-0.yml | 154 +++--- .../fixtures/locations_role-1.yml | 158 +++--- tests/test_playbooks/location.yml | 16 + tests/test_playbooks/tasks/location.yml | 1 + 35 files changed, 3193 insertions(+), 2400 deletions(-) create mode 100644 changelogs/fragments/1724-location_description.yml create mode 100644 tests/test_playbooks/fixtures/location-26.yml create mode 100644 tests/test_playbooks/fixtures/location-27.yml diff --git a/changelogs/fragments/1724-location_description.yml b/changelogs/fragments/1724-location_description.yml new file mode 100644 index 00000000..660d0411 --- /dev/null +++ b/changelogs/fragments/1724-location_description.yml @@ -0,0 +1,2 @@ +minor_changes: + - location, locations role - add ``description`` parameter to set the description diff --git a/plugins/modules/location.py b/plugins/modules/location.py index e440c49e..d921a7aa 100644 --- a/plugins/modules/location.py +++ b/plugins/modules/location.py @@ -34,6 +34,12 @@ - Name of the Location required: true type: str + description: + description: + - Description of the Location + required: false + type: str + version_added: 4.2.0 parent: description: - Title of a parent Location for nesting @@ -123,6 +129,7 @@ def main(): module = ForemanLocationModule( foreman_spec=dict( name=dict(required=True), + description=dict(required=False), parent=dict(type='entity'), organizations=dict(type='entity_list'), ignore_types=dict(type='list', elements='str', required=False, aliases=['select_all_types']), diff --git a/roles/locations/tasks/main.yml b/roles/locations/tasks/main.yml index 71c61fcd..b7bf6d27 100644 --- a/roles/locations/tasks/main.yml +++ b/roles/locations/tasks/main.yml @@ -6,6 +6,7 @@ server_url: "{{ foreman_server_url | default(omit) }}" validate_certs: "{{ foreman_validate_certs | default(omit) }}" name: "{{ item.name }}" + description: "{{ item.description | default(omit) }}" parent: "{{ item.parent | default(omit) }}" organizations: "{{ item.organizations | default(omit) }}" parameters: "{{ item.parameters | default(omit) }}" diff --git a/tests/test_playbooks/fixtures/location-0.yml b/tests/test_playbooks/fixtures/location-0.yml index 33046cc2..e69a3d1d 100644 --- a/tests/test_playbooks/fixtures/location-0.yml +++ b/tests/test_playbooks/fixtures/location-0.yml @@ -14,12 +14,14 @@ interactions: uri: https://foreman.example.org/api/status response: body: - string: '{"result":"ok","status":200,"version":"3.4.0","api_version":2}' + string: '{"result":"ok","status":200,"version":"3.11.0-develop","api_version":2}' headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive + Content-Length: + - '71' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -33,13 +35,11 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.4.0 + - 3.11.0-develop Keep-Alive: - timeout=15, max=100 Strict-Transport-Security: - max-age=631139040; includeSubdomains - Transfer-Encoding: - - chunked X-Content-Type-Options: - nosniff X-Download-Options: @@ -76,6 +76,8 @@ interactions: - max-age=0, private, must-revalidate Connection: - Keep-Alive + Content-Length: + - '180' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -89,13 +91,11 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.4.0 + - 3.11.0-develop Keep-Alive: - timeout=15, max=99 Strict-Transport-Security: - max-age=631139040; includeSubdomains - Transfer-Encoding: - - chunked X-Content-Type-Options: - nosniff X-Download-Options: @@ -128,118 +128,130 @@ interactions: uri: https://foreman.example.org/api/locations response: body: - string: '{"select_all_types":[],"description":null,"created_at":"2022-11-08 - 09:29:05 UTC","updated_at":"2022-11-08 09:29:05 UTC","ancestry":null,"parent_id":null,"parent_name":null,"id":4,"name":"Test - Location","title":"Test Location","users":[],"smart_proxies":[],"subnets":[],"compute_resources":[],"media":[],"ptables":[{"description":null,"os_family":"Suse","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"AutoYaST entire - SCSI disk","id":120,"inherited":false},{"description":null,"os_family":"Suse","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"AutoYaST entire - virtual disk","id":121,"inherited":false},{"description":null,"os_family":"Suse","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"AutoYaST LVM","id":122,"inherited":false},{"description":null,"os_family":"Coreos","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"CoreOS default - fake","id":123,"inherited":false},{"description":null,"os_family":"Rancheros","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Empty","id":124,"inherited":false},{"description":null,"os_family":"Freebsd","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"FreeBSD default - fake","id":125,"inherited":false},{"description":null,"os_family":"Solaris","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Jumpstart default","id":126,"inherited":false},{"description":null,"os_family":"Solaris","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Jumpstart mirrored","id":127,"inherited":false},{"description":null,"os_family":"Junos","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Junos default - fake","id":128,"inherited":false},{"description":null,"os_family":"Redhat","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Kickstart custom","id":129,"inherited":false},{"description":null,"os_family":"Redhat","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Kickstart default","id":130,"inherited":false},{"description":null,"os_family":"Redhat","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Kickstart default - thin","id":131,"inherited":false},{"description":null,"os_family":"Redhat","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Kickstart dynamic","id":132,"inherited":false},{"description":null,"os_family":"NXOS","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"NX-OS default - fake","id":133,"inherited":false},{"description":null,"os_family":"Debian","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Preseed default","id":134,"inherited":false},{"description":"Preseed + string: '{"select_all_types":[],"description":null,"created_at":"2024-07-25 + 12:00:01 UTC","updated_at":"2024-07-25 12:00:01 UTC","ancestry":null,"parent_id":null,"parent_name":null,"id":7,"name":"Test + Location","title":"Test Location","users":[],"smart_proxies":[],"subnets":[],"compute_resources":[],"media":[],"ptables":[{"description":null,"os_family":"Suse","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"AutoYaST entire + virtual disk","id":127,"inherited":false},{"description":null,"os_family":"Solaris","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"Jumpstart default","id":132,"inherited":false},{"description":null,"os_family":"Solaris","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"Jumpstart mirrored","id":133,"inherited":false},{"description":null,"os_family":"Junos","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"Junos default + fake","id":134,"inherited":false},{"description":null,"os_family":"Suse","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"AutoYaST LVM","id":128,"inherited":false},{"description":null,"os_family":"Coreos","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"CoreOS default + fake","id":129,"inherited":false},{"description":null,"os_family":"Rancheros","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"Empty","id":130,"inherited":false},{"description":null,"os_family":"Suse","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"AutoYaST entire + SCSI disk","id":126,"inherited":false},{"description":null,"os_family":"Freebsd","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"FreeBSD default + fake","id":131,"inherited":false},{"description":null,"os_family":"Redhat","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"Kickstart custom","id":135,"inherited":false},{"description":null,"os_family":"Redhat","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"Kickstart default","id":136,"inherited":false},{"description":null,"os_family":"Redhat","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"Kickstart default + thin","id":137,"inherited":false},{"description":null,"os_family":"Redhat","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"Kickstart dynamic","id":138,"inherited":false},{"description":null,"os_family":"NXOS","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"NX-OS default + fake","id":139,"inherited":false},{"description":null,"os_family":"Debian","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"Preseed default","id":140,"inherited":false},{"description":"Preseed Autoinstall default storage snippet configures drives automatically\nwith - LVM. The snippet is automatically indented by 2 spaces. For reference:\nhttps://ubuntu.com/server/docs/install/autoinstall-reference","os_family":"Debian","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Preseed default - autoinstall","id":135,"inherited":false},{"description":null,"os_family":"Debian","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Preseed default - LVM","id":136,"inherited":false},{"description":null,"os_family":"Windows","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Windows default - partition table","id":137,"inherited":false},{"description":null,"os_family":"Windows","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Windows default - GPT EFI partition table","id":138,"inherited":false},{"description":null,"os_family":"Xenserver","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"XenServer default","id":139,"inherited":false}],"provisioning_templates":[{"id":1,"name":"NX-OS + LVM. The snippet is automatically indented by 2 spaces. For reference:\nhttps://ubuntu.com/server/docs/install/autoinstall-reference","os_family":"Debian","created_at":"2024-04-15 + 09:11:37 UTC","updated_at":"2024-04-15 09:11:37 UTC","name":"Preseed default + autoinstall","id":141,"inherited":false},{"description":null,"os_family":"Debian","created_at":"2024-04-15 + 09:11:37 UTC","updated_at":"2024-04-15 09:11:37 UTC","name":"Preseed default + LVM","id":142,"inherited":false},{"description":null,"os_family":"Windows","created_at":"2024-04-15 + 09:11:37 UTC","updated_at":"2024-04-15 09:11:37 UTC","name":"Windows default + partition table","id":143,"inherited":false},{"description":null,"os_family":"Windows","created_at":"2024-04-15 + 09:11:37 UTC","updated_at":"2024-04-15 09:11:37 UTC","name":"Windows default + GPT EFI partition table","id":144,"inherited":false},{"description":null,"os_family":"Xenserver","created_at":"2024-04-15 + 09:11:37 UTC","updated_at":"2024-04-15 09:11:37 UTC","name":"XenServer default","id":145,"inherited":false},{"description":null,"os_family":"Redhat","created_at":"2024-04-22 + 11:15:26 UTC","updated_at":"2024-04-22 11:15:26 UTC","name":"Kickstart default + encrypted","id":152,"inherited":false},{"description":"Preseed Autoinstall + default storage snippet configures drives automatically\nwith LVM and disk + encryption.\nRequires Ubuntu >= 22.04.3.\nThe snippet is automatically indented + by 2 spaces. For reference:\nhttps://ubuntu.com/server/docs/install/autoinstall-reference","os_family":"Debian","created_at":"2024-04-22 + 11:15:26 UTC","updated_at":"2024-04-22 11:15:26 UTC","name":"Preseed default + autoinstall encrypted","id":153,"inherited":false}],"provisioning_templates":[{"id":1,"name":"NX-OS default POAP setup","template_kind_id":11,"template_kind_name":"POAP","inherited":false},{"id":2,"name":"AutoYaST default PXEGrub","template_kind_id":3,"template_kind_name":"PXEGrub","inherited":false},{"id":3,"name":"Jumpstart default PXEGrub","template_kind_id":3,"template_kind_name":"PXEGrub","inherited":false},{"id":4,"name":"Kickstart default PXEGrub","template_kind_id":3,"template_kind_name":"PXEGrub","inherited":false},{"id":5,"name":"PXEGrub default local boot","template_kind_id":3,"template_kind_name":"PXEGrub","inherited":false},{"id":6,"name":"PXEGrub - global default","template_kind_id":3,"template_kind_name":"PXEGrub","inherited":false},{"id":49,"name":"AutoYaST - default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":7,"name":"AutoYaST + global default","template_kind_id":3,"template_kind_name":"PXEGrub","inherited":false},{"id":7,"name":"AutoYaST default PXEGrub2","template_kind_id":4,"template_kind_name":"PXEGrub2","inherited":false},{"id":8,"name":"Kickstart default PXEGrub2","template_kind_id":4,"template_kind_name":"PXEGrub2","inherited":false},{"id":9,"name":"Preseed - default PXEGrub2","template_kind_id":4,"template_kind_name":"PXEGrub2","inherited":false},{"id":10,"name":"PXEGrub2 - default local boot","template_kind_id":4,"template_kind_name":"PXEGrub2","inherited":false},{"id":11,"name":"PXEGrub2 - global default","template_kind_id":4,"template_kind_name":"PXEGrub2","inherited":false},{"id":12,"name":"Alterator - default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":50,"name":"AutoYaST - SLES default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":13,"name":"AutoYaST - default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":14,"name":"CoreOS - PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":15,"name":"FreeBSD - (mfsBSD) PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":16,"name":"Kickstart - default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":17,"name":"Kickstart - oVirt-RHVH PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":18,"name":"Preseed - default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":19,"name":"Preseed - default PXELinux Autoinstall","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":20,"name":"PXELinux - chain iPXE","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":21,"name":"PXELinux - chain iPXE UNDI","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":22,"name":"PXELinux - default local boot","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":23,"name":"PXELinux - default memdisk","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":24,"name":"PXELinux - global default","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":25,"name":"RancherOS - PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":26,"name":"WAIK - default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":27,"name":"Windows - default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":28,"name":"XenServer - default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":29,"name":"Junos - default ZTP config","template_kind_id":10,"template_kind_name":"ZTP","inherited":false},{"id":30,"name":"CloudInit - default","template_kind_id":12,"template_kind_name":"cloud-init","inherited":false},{"id":31,"name":"Alterator - default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":73,"name":"chef_client","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":32,"name":"FreeBSD - (mfsBSD) finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":33,"name":"Jumpstart - default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":34,"name":"Junos - default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":35,"name":"Kickstart - default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":36,"name":"Preseed - default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":37,"name":"Windows - default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":38,"name":"XenServer - default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":39,"name":"Linux - host_init_config default","template_kind_id":1,"template_kind_name":"host_init_config","inherited":false},{"id":40,"name":"AutoYaST - default iPXE","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":41,"name":"iPXE - default local boot","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":42,"name":"iPXE - global default","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":51,"name":"CoreOS - provision","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":43,"name":"iPXE - intermediate script","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":44,"name":"Kickstart - default iPXE","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":45,"name":"Preseed - default iPXE","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":46,"name":"Windows - default iPXE","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":47,"name":"Alterator - default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":48,"name":"Atomic - Kickstart default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":52,"name":"FreeBSD - (mfsBSD) provision","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":53,"name":"Jumpstart - default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":54,"name":"Junos - default SLAX","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":55,"name":"Kickstart - default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":56,"name":"Kickstart - oVirt-RHVH","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":57,"name":"Preseed - default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":58,"name":"RancherOS - provision","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":59,"name":"Windows - default provision","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":60,"name":"XenServer - default answerfile","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":61,"name":"Global - Registration","template_kind_id":13,"template_kind_name":"registration","inherited":false},{"id":62,"name":"remote_execution_pull_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":63,"name":"Grubby - default","template_kind_id":8,"template_kind_name":"script","inherited":false},{"id":64,"name":"Windows - peSetup.cmd","template_kind_id":8,"template_kind_name":"script","inherited":false},{"id":65,"name":"alterator_pkglist","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":66,"name":"saltstack_minion","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":67,"name":"ansible_provisioning_callback","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":68,"name":"ansible_tower_callback_script","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":69,"name":"ansible_tower_callback_service","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":70,"name":"blacklist_kernel_modules","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":71,"name":"bmc_nic_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":72,"name":"built","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":74,"name":"coreos_cloudconfig","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":75,"name":"create_users","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":76,"name":"csr_attributes.yaml","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":77,"name":"efibootmgr_netboot","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":78,"name":"eject_cdrom","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":79,"name":"epel","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":80,"name":"fips_packages","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":81,"name":"fix_hosts","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":82,"name":"freeipa_register","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":83,"name":"http_proxy","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":84,"name":"insights","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":85,"name":"kickstart_ifcfg_bond_interface","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":86,"name":"kickstart_ifcfg_bonded_interface","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":87,"name":"rancheros_cloudconfig","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":111,"name":"schedule_reboot","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":88,"name":"kickstart_ifcfg_generic_interface","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":89,"name":"redhat_register","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":90,"name":"kickstart_ifcfg_get_identifier_names","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":91,"name":"kickstart_kernel_options","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":92,"name":"kickstart_networking_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":93,"name":"ntp","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":94,"name":"pkg_manager","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":95,"name":"preseed_kernel_options","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":96,"name":"remote_execution_ssh_keys","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":97,"name":"preseed_netplan_generic_interface","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":98,"name":"preseed_netplan_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":99,"name":"preseed_networking_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":100,"name":"puppet.conf","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":101,"name":"puppet_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":102,"name":"puppetlabs_repo","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":103,"name":"pxegrub2_chainload","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":104,"name":"pxegrub2_discovery","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":105,"name":"pxegrub2_mac","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":106,"name":"pxegrub_chainload","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":107,"name":"pxegrub_discovery","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":108,"name":"pxelinux_chainload","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":109,"name":"pxelinux_discovery","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":110,"name":"saltstack_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":112,"name":"Windows - network","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":113,"name":"yum_proxy","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":114,"name":"AutoYaST - default user data","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":115,"name":"Kickstart - default user data","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":116,"name":"Preseed - Autoinstall cloud-init user data","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":117,"name":"Preseed - default user data","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":118,"name":"UserData - default","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":119,"name":"UserData - open-vm-tools","template_kind_id":9,"template_kind_name":"user_data","inherited":false}],"domains":[],"realms":[],"hostgroups":[],"organizations":[],"hosts_count":0,"parameters":[],"deprecations":{"environments":"Environments + default PXEGrub2","template_kind_id":4,"template_kind_name":"PXEGrub2","inherited":false},{"id":10,"name":"Preseed + default PXEGrub2 Autoinstall","template_kind_id":4,"template_kind_name":"PXEGrub2","inherited":false},{"id":11,"name":"PXEGrub2 + default local boot","template_kind_id":4,"template_kind_name":"PXEGrub2","inherited":false},{"id":12,"name":"PXEGrub2 + global default","template_kind_id":4,"template_kind_name":"PXEGrub2","inherited":false},{"id":13,"name":"Alterator + default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":14,"name":"AutoYaST + default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":15,"name":"CoreOS + PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":16,"name":"FreeBSD + (mfsBSD) PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":17,"name":"Kickstart + default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":18,"name":"Kickstart + oVirt-RHVH PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":19,"name":"Preseed + default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":20,"name":"Preseed + default PXELinux Autoinstall","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":79,"name":"eject_cdrom","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":21,"name":"PXELinux + chain iPXE","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":22,"name":"PXELinux + chain iPXE UNDI","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":23,"name":"PXELinux + default local boot","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":24,"name":"PXELinux + default memdisk","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":25,"name":"PXELinux + global default","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":26,"name":"RancherOS + PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":27,"name":"WAIK + default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":28,"name":"Windows + default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":29,"name":"XenServer + default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":30,"name":"Junos + default ZTP config","template_kind_id":10,"template_kind_name":"ZTP","inherited":false},{"id":32,"name":"Alterator + default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":80,"name":"epel","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":33,"name":"FreeBSD + (mfsBSD) finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":34,"name":"Jumpstart + default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":35,"name":"Junos + default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":37,"name":"Preseed + default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":38,"name":"Windows + default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":39,"name":"XenServer + default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":40,"name":"Linux + host_init_config default","template_kind_id":1,"template_kind_name":"host_init_config","inherited":false},{"id":41,"name":"AutoYaST + default iPXE","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":42,"name":"iPXE + default local boot","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":43,"name":"iPXE + global default","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":72,"name":"bmc_nic_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":44,"name":"iPXE + intermediate script","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":45,"name":"Kickstart + default iPXE","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":46,"name":"Preseed + default iPXE","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":47,"name":"Preseed + default iPXE Autoinstall","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":48,"name":"Windows + default iPXE","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":49,"name":"Windows + default iPXE httpboot","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":81,"name":"fips_packages","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":50,"name":"Alterator + default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":51,"name":"AutoYaST + default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":52,"name":"AutoYaST + SLES default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":53,"name":"CoreOS + provision","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":54,"name":"FreeBSD + (mfsBSD) provision","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":55,"name":"Jumpstart + default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":56,"name":"Junos + default SLAX","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":70,"name":"ansible_tower_callback_service","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":59,"name":"Preseed + default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":60,"name":"RancherOS + provision","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":61,"name":"Windows + default provision","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":62,"name":"XenServer + default answerfile","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":63,"name":"Global + Registration","template_kind_id":13,"template_kind_name":"registration","inherited":false},{"id":64,"name":"remote_execution_pull_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":65,"name":"Grubby + default","template_kind_id":8,"template_kind_name":"script","inherited":false},{"id":66,"name":"Windows + peSetup.cmd","template_kind_id":8,"template_kind_name":"script","inherited":false},{"id":67,"name":"alterator_pkglist","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":68,"name":"ansible_provisioning_callback","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":69,"name":"ansible_tower_callback_script","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":71,"name":"blacklist_kernel_modules","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":73,"name":"built","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":74,"name":"chef_client","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":75,"name":"coreos_cloudconfig","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":76,"name":"create_users","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":77,"name":"csr_attributes.yaml","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":78,"name":"efibootmgr_netboot","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":82,"name":"fix_hosts","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":83,"name":"freeipa_register","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":84,"name":"http_proxy","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":85,"name":"insights","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":86,"name":"kickstart_ifcfg_bond_interface","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":87,"name":"kickstart_ifcfg_bonded_interface","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":88,"name":"kickstart_ifcfg_generic_interface","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":89,"name":"kickstart_ifcfg_get_identifier_names","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":91,"name":"kickstart_networking_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":92,"name":"kickstart_rhsm","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":93,"name":"ntp","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":95,"name":"preseed_kernel_options","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":96,"name":"preseed_kernel_options_autoinstall","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":97,"name":"preseed_netplan_generic_interface","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":98,"name":"preseed_netplan_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":99,"name":"preseed_networking_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":106,"name":"pxegrub_chainload","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":100,"name":"puppet.conf","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":101,"name":"puppet_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":102,"name":"puppetlabs_repo","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":103,"name":"pxegrub2_chainload","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":104,"name":"pxegrub2_discovery","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":105,"name":"pxegrub2_mac","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":123,"name":"UserData + default","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":107,"name":"pxegrub_discovery","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":108,"name":"pxelinux_chainload","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":109,"name":"pxelinux_discovery","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":110,"name":"rancheros_cloudconfig","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":124,"name":"UserData + open-vm-tools","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":125,"name":"Windows + default user data","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":112,"name":"remote_execution_ssh_keys","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":113,"name":"saltstack_minion","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":114,"name":"saltstack_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":115,"name":"schedule_reboot","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":117,"name":"Windows + network","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":118,"name":"yum_proxy","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":119,"name":"AutoYaST + default user data","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":120,"name":"Kickstart + default user data","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":122,"name":"Preseed + default user data","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":90,"name":"kickstart_kernel_options","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":31,"name":"CloudInit + default","template_kind_id":12,"template_kind_name":"cloud-init","inherited":false},{"id":36,"name":"Kickstart + default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":57,"name":"Kickstart + default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":58,"name":"Kickstart + oVirt-RHVH","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":149,"name":"disk_enc_clevis_tang","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":150,"name":"kickstart_network_interface","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":94,"name":"pkg_manager","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":151,"name":"preseed_autoinstall_clevis_tang_wrapper","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":111,"name":"redhat_register","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":116,"name":"subscription_manager_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":121,"name":"Preseed + Autoinstall cloud-init user data","template_kind_id":9,"template_kind_name":"user_data","inherited":false}],"domains":[],"realms":[],"hostgroups":[],"organizations":[],"hosts_count":0,"parameters":[],"deprecations":{"environments":"Environments got deprecated from this endpoint."}}' headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive + Content-Length: + - '19114' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -253,13 +265,11 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.4.0 + - 3.11.0-develop Keep-Alive: - timeout=15, max=98 Strict-Transport-Security: - max-age=631139040; includeSubdomains - Transfer-Encoding: - - chunked X-Content-Type-Options: - nosniff X-Download-Options: diff --git a/tests/test_playbooks/fixtures/location-1.yml b/tests/test_playbooks/fixtures/location-1.yml index c1bacd6d..3909f5ca 100644 --- a/tests/test_playbooks/fixtures/location-1.yml +++ b/tests/test_playbooks/fixtures/location-1.yml @@ -14,12 +14,14 @@ interactions: uri: https://foreman.example.org/api/status response: body: - string: '{"result":"ok","status":200,"version":"3.4.0","api_version":2}' + string: '{"result":"ok","status":200,"version":"3.11.0-develop","api_version":2}' headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive + Content-Length: + - '71' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -33,13 +35,11 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.4.0 + - 3.11.0-develop Keep-Alive: - timeout=15, max=100 Strict-Transport-Security: - max-age=631139040; includeSubdomains - Transfer-Encoding: - - chunked X-Content-Type-Options: - nosniff X-Download-Options: @@ -70,14 +70,16 @@ interactions: body: string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": 4294967296,\n \"search\": \"title=\\\"Test Location\\\"\",\n \"sort\": {\n - \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"ancestry\":null,\"parent_id\":null,\"parent_name\":null,\"created_at\":\"2022-11-08 - 09:29:05 UTC\",\"updated_at\":\"2022-11-08 09:29:05 UTC\",\"id\":4,\"name\":\"Test + \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"ancestry\":null,\"parent_id\":null,\"parent_name\":null,\"created_at\":\"2024-07-25 + 12:00:01 UTC\",\"updated_at\":\"2024-07-25 12:00:01 UTC\",\"id\":7,\"name\":\"Test Location\",\"title\":\"Test Location\",\"description\":null}]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive + Content-Length: + - '384' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -91,13 +93,11 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.4.0 + - 3.11.0-develop Keep-Alive: - timeout=15, max=99 Strict-Transport-Security: - max-age=631139040; includeSubdomains - Transfer-Encoding: - - chunked X-Content-Type-Options: - nosniff X-Download-Options: @@ -123,121 +123,133 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/api/locations/4 + uri: https://foreman.example.org/api/locations/7 response: body: - string: '{"select_all_types":[],"description":null,"created_at":"2022-11-08 - 09:29:05 UTC","updated_at":"2022-11-08 09:29:05 UTC","ancestry":null,"parent_id":null,"parent_name":null,"id":4,"name":"Test - Location","title":"Test Location","users":[],"smart_proxies":[],"subnets":[],"compute_resources":[],"media":[],"ptables":[{"description":null,"os_family":"Suse","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"AutoYaST entire - SCSI disk","id":120,"inherited":false},{"description":null,"os_family":"Suse","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"AutoYaST entire - virtual disk","id":121,"inherited":false},{"description":null,"os_family":"Suse","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"AutoYaST LVM","id":122,"inherited":false},{"description":null,"os_family":"Coreos","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"CoreOS default - fake","id":123,"inherited":false},{"description":null,"os_family":"Rancheros","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Empty","id":124,"inherited":false},{"description":null,"os_family":"Freebsd","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"FreeBSD default - fake","id":125,"inherited":false},{"description":null,"os_family":"Solaris","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Jumpstart default","id":126,"inherited":false},{"description":null,"os_family":"Solaris","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Jumpstart mirrored","id":127,"inherited":false},{"description":null,"os_family":"Junos","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Junos default - fake","id":128,"inherited":false},{"description":null,"os_family":"Redhat","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Kickstart custom","id":129,"inherited":false},{"description":null,"os_family":"Redhat","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Kickstart default","id":130,"inherited":false},{"description":null,"os_family":"Redhat","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Kickstart default - thin","id":131,"inherited":false},{"description":null,"os_family":"Redhat","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Kickstart dynamic","id":132,"inherited":false},{"description":null,"os_family":"NXOS","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"NX-OS default - fake","id":133,"inherited":false},{"description":null,"os_family":"Debian","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Preseed default","id":134,"inherited":false},{"description":"Preseed + string: '{"select_all_types":[],"description":null,"created_at":"2024-07-25 + 12:00:01 UTC","updated_at":"2024-07-25 12:00:01 UTC","ancestry":null,"parent_id":null,"parent_name":null,"id":7,"name":"Test + Location","title":"Test Location","users":[],"smart_proxies":[],"subnets":[],"compute_resources":[],"media":[],"ptables":[{"description":null,"os_family":"Suse","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"AutoYaST entire + SCSI disk","id":126,"inherited":false},{"description":null,"os_family":"Suse","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"AutoYaST entire + virtual disk","id":127,"inherited":false},{"description":null,"os_family":"Suse","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"AutoYaST LVM","id":128,"inherited":false},{"description":null,"os_family":"Coreos","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"CoreOS default + fake","id":129,"inherited":false},{"description":null,"os_family":"Rancheros","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"Empty","id":130,"inherited":false},{"description":null,"os_family":"Freebsd","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"FreeBSD default + fake","id":131,"inherited":false},{"description":null,"os_family":"Solaris","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"Jumpstart default","id":132,"inherited":false},{"description":null,"os_family":"Solaris","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"Jumpstart mirrored","id":133,"inherited":false},{"description":null,"os_family":"Junos","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"Junos default + fake","id":134,"inherited":false},{"description":null,"os_family":"Redhat","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"Kickstart custom","id":135,"inherited":false},{"description":null,"os_family":"Redhat","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"Kickstart default","id":136,"inherited":false},{"description":null,"os_family":"Redhat","created_at":"2024-04-22 + 11:15:26 UTC","updated_at":"2024-04-22 11:15:26 UTC","name":"Kickstart default + encrypted","id":152,"inherited":false},{"description":null,"os_family":"Redhat","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"Kickstart default + thin","id":137,"inherited":false},{"description":null,"os_family":"Redhat","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"Kickstart dynamic","id":138,"inherited":false},{"description":null,"os_family":"NXOS","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"NX-OS default + fake","id":139,"inherited":false},{"description":null,"os_family":"Debian","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"Preseed default","id":140,"inherited":false},{"description":"Preseed Autoinstall default storage snippet configures drives automatically\nwith - LVM. The snippet is automatically indented by 2 spaces. For reference:\nhttps://ubuntu.com/server/docs/install/autoinstall-reference","os_family":"Debian","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Preseed default - autoinstall","id":135,"inherited":false},{"description":null,"os_family":"Debian","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Preseed default - LVM","id":136,"inherited":false},{"description":null,"os_family":"Windows","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Windows default - GPT EFI partition table","id":138,"inherited":false},{"description":null,"os_family":"Windows","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Windows default - partition table","id":137,"inherited":false},{"description":null,"os_family":"Xenserver","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"XenServer default","id":139,"inherited":false}],"provisioning_templates":[{"id":47,"name":"Alterator - default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":31,"name":"Alterator - default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":12,"name":"Alterator - default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":65,"name":"alterator_pkglist","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":67,"name":"ansible_provisioning_callback","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":68,"name":"ansible_tower_callback_script","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":69,"name":"ansible_tower_callback_service","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":48,"name":"Atomic - Kickstart default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":49,"name":"AutoYaST - default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":40,"name":"AutoYaST + LVM. The snippet is automatically indented by 2 spaces. For reference:\nhttps://ubuntu.com/server/docs/install/autoinstall-reference","os_family":"Debian","created_at":"2024-04-15 + 09:11:37 UTC","updated_at":"2024-04-15 09:11:37 UTC","name":"Preseed default + autoinstall","id":141,"inherited":false},{"description":"Preseed Autoinstall + default storage snippet configures drives automatically\nwith LVM and disk + encryption.\nRequires Ubuntu >= 22.04.3.\nThe snippet is automatically indented + by 2 spaces. For reference:\nhttps://ubuntu.com/server/docs/install/autoinstall-reference","os_family":"Debian","created_at":"2024-04-22 + 11:15:26 UTC","updated_at":"2024-04-22 11:15:26 UTC","name":"Preseed default + autoinstall encrypted","id":153,"inherited":false},{"description":null,"os_family":"Debian","created_at":"2024-04-15 + 09:11:37 UTC","updated_at":"2024-04-15 09:11:37 UTC","name":"Preseed default + LVM","id":142,"inherited":false},{"description":null,"os_family":"Windows","created_at":"2024-04-15 + 09:11:37 UTC","updated_at":"2024-04-15 09:11:37 UTC","name":"Windows default + GPT EFI partition table","id":144,"inherited":false},{"description":null,"os_family":"Windows","created_at":"2024-04-15 + 09:11:37 UTC","updated_at":"2024-04-15 09:11:37 UTC","name":"Windows default + partition table","id":143,"inherited":false},{"description":null,"os_family":"Xenserver","created_at":"2024-04-15 + 09:11:37 UTC","updated_at":"2024-04-15 09:11:37 UTC","name":"XenServer default","id":145,"inherited":false}],"provisioning_templates":[{"id":50,"name":"Alterator + default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":32,"name":"Alterator + default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":13,"name":"Alterator + default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":67,"name":"alterator_pkglist","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":68,"name":"ansible_provisioning_callback","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":69,"name":"ansible_tower_callback_script","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":70,"name":"ansible_tower_callback_service","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":51,"name":"AutoYaST + default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":41,"name":"AutoYaST default iPXE","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":2,"name":"AutoYaST default PXEGrub","template_kind_id":3,"template_kind_name":"PXEGrub","inherited":false},{"id":7,"name":"AutoYaST - default PXEGrub2","template_kind_id":4,"template_kind_name":"PXEGrub2","inherited":false},{"id":13,"name":"AutoYaST - default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":114,"name":"AutoYaST - default user data","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":50,"name":"AutoYaST - SLES default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":70,"name":"blacklist_kernel_modules","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":71,"name":"bmc_nic_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":72,"name":"built","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":73,"name":"chef_client","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":30,"name":"CloudInit - default","template_kind_id":12,"template_kind_name":"cloud-init","inherited":false},{"id":74,"name":"coreos_cloudconfig","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":51,"name":"CoreOS - provision","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":14,"name":"CoreOS - PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":75,"name":"create_users","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":76,"name":"csr_attributes.yaml","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":77,"name":"efibootmgr_netboot","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":78,"name":"eject_cdrom","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":79,"name":"epel","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":80,"name":"fips_packages","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":81,"name":"fix_hosts","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":32,"name":"FreeBSD - (mfsBSD) finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":52,"name":"FreeBSD - (mfsBSD) provision","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":15,"name":"FreeBSD - (mfsBSD) PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":82,"name":"freeipa_register","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":61,"name":"Global - Registration","template_kind_id":13,"template_kind_name":"registration","inherited":false},{"id":63,"name":"Grubby - default","template_kind_id":8,"template_kind_name":"script","inherited":false},{"id":83,"name":"http_proxy","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":84,"name":"insights","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":41,"name":"iPXE - default local boot","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":42,"name":"iPXE - global default","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":43,"name":"iPXE - intermediate script","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":53,"name":"Jumpstart - default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":33,"name":"Jumpstart + default PXEGrub2","template_kind_id":4,"template_kind_name":"PXEGrub2","inherited":false},{"id":14,"name":"AutoYaST + default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":119,"name":"AutoYaST + default user data","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":52,"name":"AutoYaST + SLES default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":71,"name":"blacklist_kernel_modules","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":72,"name":"bmc_nic_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":73,"name":"built","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":74,"name":"chef_client","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":31,"name":"CloudInit + default","template_kind_id":12,"template_kind_name":"cloud-init","inherited":false},{"id":75,"name":"coreos_cloudconfig","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":53,"name":"CoreOS + provision","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":15,"name":"CoreOS + PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":76,"name":"create_users","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":77,"name":"csr_attributes.yaml","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":149,"name":"disk_enc_clevis_tang","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":78,"name":"efibootmgr_netboot","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":79,"name":"eject_cdrom","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":80,"name":"epel","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":81,"name":"fips_packages","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":82,"name":"fix_hosts","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":33,"name":"FreeBSD + (mfsBSD) finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":54,"name":"FreeBSD + (mfsBSD) provision","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":16,"name":"FreeBSD + (mfsBSD) PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":83,"name":"freeipa_register","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":63,"name":"Global + Registration","template_kind_id":13,"template_kind_name":"registration","inherited":false},{"id":65,"name":"Grubby + default","template_kind_id":8,"template_kind_name":"script","inherited":false},{"id":84,"name":"http_proxy","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":85,"name":"insights","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":42,"name":"iPXE + default local boot","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":43,"name":"iPXE + global default","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":44,"name":"iPXE + intermediate script","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":55,"name":"Jumpstart + default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":34,"name":"Jumpstart default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":3,"name":"Jumpstart - default PXEGrub","template_kind_id":3,"template_kind_name":"PXEGrub","inherited":false},{"id":34,"name":"Junos - default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":54,"name":"Junos - default SLAX","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":29,"name":"Junos - default ZTP config","template_kind_id":10,"template_kind_name":"ZTP","inherited":false},{"id":55,"name":"Kickstart - default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":35,"name":"Kickstart - default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":44,"name":"Kickstart + default PXEGrub","template_kind_id":3,"template_kind_name":"PXEGrub","inherited":false},{"id":35,"name":"Junos + default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":56,"name":"Junos + default SLAX","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":30,"name":"Junos + default ZTP config","template_kind_id":10,"template_kind_name":"ZTP","inherited":false},{"id":57,"name":"Kickstart + default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":36,"name":"Kickstart + default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":45,"name":"Kickstart default iPXE","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":4,"name":"Kickstart default PXEGrub","template_kind_id":3,"template_kind_name":"PXEGrub","inherited":false},{"id":8,"name":"Kickstart - default PXEGrub2","template_kind_id":4,"template_kind_name":"PXEGrub2","inherited":false},{"id":16,"name":"Kickstart - default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":115,"name":"Kickstart - default user data","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":86,"name":"kickstart_ifcfg_bonded_interface","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":85,"name":"kickstart_ifcfg_bond_interface","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":88,"name":"kickstart_ifcfg_generic_interface","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":90,"name":"kickstart_ifcfg_get_identifier_names","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":91,"name":"kickstart_kernel_options","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":92,"name":"kickstart_networking_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":56,"name":"Kickstart - oVirt-RHVH","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":17,"name":"Kickstart - oVirt-RHVH PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":39,"name":"Linux + default PXEGrub2","template_kind_id":4,"template_kind_name":"PXEGrub2","inherited":false},{"id":17,"name":"Kickstart + default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":120,"name":"Kickstart + default user data","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":87,"name":"kickstart_ifcfg_bonded_interface","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":86,"name":"kickstart_ifcfg_bond_interface","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":88,"name":"kickstart_ifcfg_generic_interface","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":89,"name":"kickstart_ifcfg_get_identifier_names","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":90,"name":"kickstart_kernel_options","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":91,"name":"kickstart_networking_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":150,"name":"kickstart_network_interface","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":58,"name":"Kickstart + oVirt-RHVH","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":18,"name":"Kickstart + oVirt-RHVH PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":92,"name":"kickstart_rhsm","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":40,"name":"Linux host_init_config default","template_kind_id":1,"template_kind_name":"host_init_config","inherited":false},{"id":93,"name":"ntp","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":1,"name":"NX-OS - default POAP setup","template_kind_id":11,"template_kind_name":"POAP","inherited":false},{"id":94,"name":"pkg_manager","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":116,"name":"Preseed - Autoinstall cloud-init user data","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":57,"name":"Preseed - default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":36,"name":"Preseed - default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":45,"name":"Preseed - default iPXE","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":9,"name":"Preseed - default PXEGrub2","template_kind_id":4,"template_kind_name":"PXEGrub2","inherited":false},{"id":18,"name":"Preseed - default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":19,"name":"Preseed - default PXELinux Autoinstall","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":117,"name":"Preseed - default user data","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":95,"name":"preseed_kernel_options","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":97,"name":"preseed_netplan_generic_interface","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":98,"name":"preseed_netplan_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":99,"name":"preseed_networking_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":100,"name":"puppet.conf","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":102,"name":"puppetlabs_repo","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":101,"name":"puppet_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":103,"name":"pxegrub2_chainload","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":10,"name":"PXEGrub2 - default local boot","template_kind_id":4,"template_kind_name":"PXEGrub2","inherited":false},{"id":104,"name":"pxegrub2_discovery","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":11,"name":"PXEGrub2 + default POAP setup","template_kind_id":11,"template_kind_name":"POAP","inherited":false},{"id":94,"name":"pkg_manager","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":151,"name":"preseed_autoinstall_clevis_tang_wrapper","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":121,"name":"Preseed + Autoinstall cloud-init user data","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":59,"name":"Preseed + default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":37,"name":"Preseed + default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":46,"name":"Preseed + default iPXE","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":47,"name":"Preseed + default iPXE Autoinstall","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":9,"name":"Preseed + default PXEGrub2","template_kind_id":4,"template_kind_name":"PXEGrub2","inherited":false},{"id":10,"name":"Preseed + default PXEGrub2 Autoinstall","template_kind_id":4,"template_kind_name":"PXEGrub2","inherited":false},{"id":19,"name":"Preseed + default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":20,"name":"Preseed + default PXELinux Autoinstall","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":122,"name":"Preseed + default user data","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":95,"name":"preseed_kernel_options","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":96,"name":"preseed_kernel_options_autoinstall","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":97,"name":"preseed_netplan_generic_interface","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":98,"name":"preseed_netplan_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":99,"name":"preseed_networking_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":100,"name":"puppet.conf","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":102,"name":"puppetlabs_repo","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":101,"name":"puppet_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":103,"name":"pxegrub2_chainload","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":11,"name":"PXEGrub2 + default local boot","template_kind_id":4,"template_kind_name":"PXEGrub2","inherited":false},{"id":104,"name":"pxegrub2_discovery","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":12,"name":"PXEGrub2 global default","template_kind_id":4,"template_kind_name":"PXEGrub2","inherited":false},{"id":105,"name":"pxegrub2_mac","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":106,"name":"pxegrub_chainload","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":5,"name":"PXEGrub default local boot","template_kind_id":3,"template_kind_name":"PXEGrub","inherited":false},{"id":107,"name":"pxegrub_discovery","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":6,"name":"PXEGrub - global default","template_kind_id":3,"template_kind_name":"PXEGrub","inherited":false},{"id":20,"name":"PXELinux - chain iPXE","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":21,"name":"PXELinux - chain iPXE UNDI","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":108,"name":"pxelinux_chainload","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":22,"name":"PXELinux - default local boot","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":23,"name":"PXELinux - default memdisk","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":109,"name":"pxelinux_discovery","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":24,"name":"PXELinux - global default","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":87,"name":"rancheros_cloudconfig","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":58,"name":"RancherOS - provision","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":25,"name":"RancherOS - PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":89,"name":"redhat_register","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":62,"name":"remote_execution_pull_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":96,"name":"remote_execution_ssh_keys","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":66,"name":"saltstack_minion","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":110,"name":"saltstack_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":111,"name":"schedule_reboot","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":118,"name":"UserData - default","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":119,"name":"UserData - open-vm-tools","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":26,"name":"WAIK - default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":37,"name":"Windows - default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":46,"name":"Windows - default iPXE","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":59,"name":"Windows - default provision","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":27,"name":"Windows - default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":112,"name":"Windows - network","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":64,"name":"Windows - peSetup.cmd","template_kind_id":8,"template_kind_name":"script","inherited":false},{"id":60,"name":"XenServer - default answerfile","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":38,"name":"XenServer - default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":28,"name":"XenServer - default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":113,"name":"yum_proxy","template_kind_id":null,"template_kind_name":null,"inherited":false}],"domains":[],"realms":[],"hostgroups":[],"organizations":[],"hosts_count":0,"parameters":[],"deprecations":{"environments":"Environments + global default","template_kind_id":3,"template_kind_name":"PXEGrub","inherited":false},{"id":21,"name":"PXELinux + chain iPXE","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":22,"name":"PXELinux + chain iPXE UNDI","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":108,"name":"pxelinux_chainload","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":23,"name":"PXELinux + default local boot","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":24,"name":"PXELinux + default memdisk","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":109,"name":"pxelinux_discovery","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":25,"name":"PXELinux + global default","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":110,"name":"rancheros_cloudconfig","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":60,"name":"RancherOS + provision","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":26,"name":"RancherOS + PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":111,"name":"redhat_register","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":64,"name":"remote_execution_pull_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":112,"name":"remote_execution_ssh_keys","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":113,"name":"saltstack_minion","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":114,"name":"saltstack_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":115,"name":"schedule_reboot","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":116,"name":"subscription_manager_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":123,"name":"UserData + default","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":124,"name":"UserData + open-vm-tools","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":27,"name":"WAIK + default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":38,"name":"Windows + default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":48,"name":"Windows + default iPXE","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":49,"name":"Windows + default iPXE httpboot","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":61,"name":"Windows + default provision","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":28,"name":"Windows + default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":125,"name":"Windows + default user data","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":117,"name":"Windows + network","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":66,"name":"Windows + peSetup.cmd","template_kind_id":8,"template_kind_name":"script","inherited":false},{"id":62,"name":"XenServer + default answerfile","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":39,"name":"XenServer + default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":29,"name":"XenServer + default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":118,"name":"yum_proxy","template_kind_id":null,"template_kind_name":null,"inherited":false}],"domains":[],"realms":[],"hostgroups":[],"organizations":[],"hosts_count":0,"parameters":[],"deprecations":{"environments":"Environments got deprecated from this endpoint."}}' headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive + Content-Length: + - '19114' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -251,13 +263,11 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.4.0 + - 3.11.0-develop Keep-Alive: - timeout=15, max=98 Strict-Transport-Security: - max-age=631139040; includeSubdomains - Transfer-Encoding: - - chunked X-Content-Type-Options: - nosniff X-Download-Options: diff --git a/tests/test_playbooks/fixtures/location-10.yml b/tests/test_playbooks/fixtures/location-10.yml index 92ba571a..05a67b0f 100644 --- a/tests/test_playbooks/fixtures/location-10.yml +++ b/tests/test_playbooks/fixtures/location-10.yml @@ -14,12 +14,14 @@ interactions: uri: https://foreman.example.org/api/status response: body: - string: '{"result":"ok","status":200,"version":"3.4.0","api_version":2}' + string: '{"result":"ok","status":200,"version":"3.11.0-develop","api_version":2}' headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive + Content-Length: + - '71' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -33,13 +35,11 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.4.0 + - 3.11.0-develop Keep-Alive: - timeout=15, max=100 Strict-Transport-Security: - max-age=631139040; includeSubdomains - Transfer-Encoding: - - chunked X-Content-Type-Options: - nosniff X-Download-Options: @@ -71,15 +71,17 @@ interactions: string: "{\n \"total\": 5,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": 4294967296,\n \"search\": \"title=\\\"Test Location/Sub Location 1/Sub Location 2\\\"\",\n \"sort\": {\n \"by\": null,\n \"order\": null\n },\n \"results\": - [{\"ancestry\":\"4/5\",\"parent_id\":5,\"parent_name\":\"Test Location/Sub - Location 1\",\"created_at\":\"2022-11-08 09:29:09 UTC\",\"updated_at\":\"2022-11-08 - 09:29:09 UTC\",\"id\":6,\"name\":\"Sub Location 2\",\"title\":\"Test Location/Sub + [{\"ancestry\":\"7/8\",\"parent_id\":8,\"parent_name\":\"Test Location/Sub + Location 1\",\"created_at\":\"2024-07-25 12:00:07 UTC\",\"updated_at\":\"2024-07-25 + 12:00:07 UTC\",\"id\":9,\"name\":\"Sub Location 2\",\"title\":\"Test Location/Sub Location 1/Sub Location 2\",\"description\":null}]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive + Content-Length: + - '469' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -93,13 +95,11 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.4.0 + - 3.11.0-develop Keep-Alive: - timeout=15, max=99 Strict-Transport-Security: - max-age=631139040; includeSubdomains - Transfer-Encoding: - - chunked X-Content-Type-Options: - nosniff X-Download-Options: @@ -131,14 +131,16 @@ interactions: string: "{\n \"total\": 5,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": 4294967296,\n \"search\": \"title=\\\"Test Location/Sub Location 1\\\"\",\n \ \"sort\": {\n \"by\": null,\n \"order\": null\n },\n \"results\": - [{\"ancestry\":\"4\",\"parent_id\":4,\"parent_name\":\"Test Location\",\"created_at\":\"2022-11-08 - 09:29:07 UTC\",\"updated_at\":\"2022-11-08 09:29:07 UTC\",\"id\":5,\"name\":\"Sub + [{\"ancestry\":\"7\",\"parent_id\":7,\"parent_name\":\"Test Location\",\"created_at\":\"2024-07-25 + 12:00:04 UTC\",\"updated_at\":\"2024-07-25 12:00:04 UTC\",\"id\":8,\"name\":\"Sub Location 1\",\"title\":\"Test Location/Sub Location 1\",\"description\":null}]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive + Content-Length: + - '422' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -152,13 +154,11 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.4.0 + - 3.11.0-develop Keep-Alive: - timeout=15, max=98 Strict-Transport-Security: - max-age=631139040; includeSubdomains - Transfer-Encoding: - - chunked X-Content-Type-Options: - nosniff X-Download-Options: @@ -186,16 +186,18 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: DELETE - uri: https://foreman.example.org/api/locations/6 + uri: https://foreman.example.org/api/locations/9 response: body: - string: '{"id":6,"name":"Sub Location 2","created_at":"2022-11-08T09:29:09.414Z","updated_at":"2022-11-08T09:29:09.414Z","ignore_types":[],"ancestry":"4/5","title":"Test + string: '{"id":9,"name":"Sub Location 2","created_at":"2024-07-25T12:00:07.163Z","updated_at":"2024-07-25T12:00:07.163Z","ignore_types":[],"ancestry":"7/8","title":"Test Location/Sub Location 1/Sub Location 2","description":null}' headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive + Content-Length: + - '220' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -209,13 +211,11 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.4.0 + - 3.11.0-develop Keep-Alive: - timeout=15, max=97 Strict-Transport-Security: - max-age=631139040; includeSubdomains - Transfer-Encoding: - - chunked X-Content-Type-Options: - nosniff X-Download-Options: diff --git a/tests/test_playbooks/fixtures/location-11.yml b/tests/test_playbooks/fixtures/location-11.yml index 19491c0f..e0115709 100644 --- a/tests/test_playbooks/fixtures/location-11.yml +++ b/tests/test_playbooks/fixtures/location-11.yml @@ -14,12 +14,14 @@ interactions: uri: https://foreman.example.org/api/status response: body: - string: '{"result":"ok","status":200,"version":"3.4.0","api_version":2}' + string: '{"result":"ok","status":200,"version":"3.11.0-develop","api_version":2}' headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive + Content-Length: + - '71' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -33,13 +35,11 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.4.0 + - 3.11.0-develop Keep-Alive: - timeout=15, max=100 Strict-Transport-Security: - max-age=631139040; includeSubdomains - Transfer-Encoding: - - chunked X-Content-Type-Options: - nosniff X-Download-Options: @@ -71,14 +71,16 @@ interactions: string: "{\n \"total\": 4,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": 4294967296,\n \"search\": \"title=\\\"Test Location/Sub Location 1\\\"\",\n \ \"sort\": {\n \"by\": null,\n \"order\": null\n },\n \"results\": - [{\"ancestry\":\"4\",\"parent_id\":4,\"parent_name\":\"Test Location\",\"created_at\":\"2022-11-08 - 09:29:07 UTC\",\"updated_at\":\"2022-11-08 09:29:07 UTC\",\"id\":5,\"name\":\"Sub + [{\"ancestry\":\"7\",\"parent_id\":7,\"parent_name\":\"Test Location\",\"created_at\":\"2024-07-25 + 12:00:04 UTC\",\"updated_at\":\"2024-07-25 12:00:04 UTC\",\"id\":8,\"name\":\"Sub Location 1\",\"title\":\"Test Location/Sub Location 1\",\"description\":null}]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive + Content-Length: + - '422' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -92,13 +94,11 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.4.0 + - 3.11.0-develop Keep-Alive: - timeout=15, max=99 Strict-Transport-Security: - max-age=631139040; includeSubdomains - Transfer-Encoding: - - chunked X-Content-Type-Options: - nosniff X-Download-Options: @@ -129,14 +129,16 @@ interactions: body: string: "{\n \"total\": 4,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": 4294967296,\n \"search\": \"title=\\\"Test Location\\\"\",\n \"sort\": {\n - \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"ancestry\":null,\"parent_id\":null,\"parent_name\":null,\"created_at\":\"2022-11-08 - 09:29:05 UTC\",\"updated_at\":\"2022-11-08 09:29:05 UTC\",\"id\":4,\"name\":\"Test + \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"ancestry\":null,\"parent_id\":null,\"parent_name\":null,\"created_at\":\"2024-07-25 + 12:00:01 UTC\",\"updated_at\":\"2024-07-25 12:00:01 UTC\",\"id\":7,\"name\":\"Test Location\",\"title\":\"Test Location\",\"description\":null}]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive + Content-Length: + - '384' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -150,13 +152,11 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.4.0 + - 3.11.0-develop Keep-Alive: - timeout=15, max=98 Strict-Transport-Security: - max-age=631139040; includeSubdomains - Transfer-Encoding: - - chunked X-Content-Type-Options: - nosniff X-Download-Options: @@ -184,16 +184,18 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: DELETE - uri: https://foreman.example.org/api/locations/5 + uri: https://foreman.example.org/api/locations/8 response: body: - string: '{"id":5,"name":"Sub Location 1","created_at":"2022-11-08T09:29:07.656Z","updated_at":"2022-11-08T09:29:07.656Z","ignore_types":[],"ancestry":"4","title":"Test + string: '{"id":8,"name":"Sub Location 1","created_at":"2024-07-25T12:00:04.339Z","updated_at":"2024-07-25T12:00:04.339Z","ignore_types":[],"ancestry":"7","title":"Test Location/Sub Location 1","description":null}' headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive + Content-Length: + - '203' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -207,13 +209,11 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.4.0 + - 3.11.0-develop Keep-Alive: - timeout=15, max=97 Strict-Transport-Security: - max-age=631139040; includeSubdomains - Transfer-Encoding: - - chunked X-Content-Type-Options: - nosniff X-Download-Options: diff --git a/tests/test_playbooks/fixtures/location-12.yml b/tests/test_playbooks/fixtures/location-12.yml index dfcf3b8a..e6f04110 100644 --- a/tests/test_playbooks/fixtures/location-12.yml +++ b/tests/test_playbooks/fixtures/location-12.yml @@ -14,12 +14,14 @@ interactions: uri: https://foreman.example.org/api/status response: body: - string: '{"result":"ok","status":200,"version":"3.4.0","api_version":2}' + string: '{"result":"ok","status":200,"version":"3.11.0-develop","api_version":2}' headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive + Content-Length: + - '71' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -33,13 +35,11 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.4.0 + - 3.11.0-develop Keep-Alive: - timeout=15, max=100 Strict-Transport-Security: - max-age=631139040; includeSubdomains - Transfer-Encoding: - - chunked X-Content-Type-Options: - nosniff X-Download-Options: @@ -71,14 +71,16 @@ interactions: string: "{\n \"total\": 3,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": 4294967296,\n \"search\": \"title=\\\"Test Location/Sub Location 2\\\"\",\n \ \"sort\": {\n \"by\": null,\n \"order\": null\n },\n \"results\": - [{\"ancestry\":\"4\",\"parent_id\":4,\"parent_name\":\"Test Location\",\"created_at\":\"2022-11-08 - 09:29:12 UTC\",\"updated_at\":\"2022-11-08 09:29:12 UTC\",\"id\":7,\"name\":\"Sub + [{\"ancestry\":\"7\",\"parent_id\":7,\"parent_name\":\"Test Location\",\"created_at\":\"2024-07-25 + 12:00:12 UTC\",\"updated_at\":\"2024-07-25 12:00:12 UTC\",\"id\":10,\"name\":\"Sub Location 2\",\"title\":\"Test Location/Sub Location 2\",\"description\":null}]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive + Content-Length: + - '423' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -92,13 +94,11 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.4.0 + - 3.11.0-develop Keep-Alive: - timeout=15, max=99 Strict-Transport-Security: - max-age=631139040; includeSubdomains - Transfer-Encoding: - - chunked X-Content-Type-Options: - nosniff X-Download-Options: @@ -129,14 +129,16 @@ interactions: body: string: "{\n \"total\": 3,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": 4294967296,\n \"search\": \"title=\\\"Test Location\\\"\",\n \"sort\": {\n - \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"ancestry\":null,\"parent_id\":null,\"parent_name\":null,\"created_at\":\"2022-11-08 - 09:29:05 UTC\",\"updated_at\":\"2022-11-08 09:29:05 UTC\",\"id\":4,\"name\":\"Test + \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"ancestry\":null,\"parent_id\":null,\"parent_name\":null,\"created_at\":\"2024-07-25 + 12:00:01 UTC\",\"updated_at\":\"2024-07-25 12:00:01 UTC\",\"id\":7,\"name\":\"Test Location\",\"title\":\"Test Location\",\"description\":null}]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive + Content-Length: + - '384' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -150,13 +152,11 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.4.0 + - 3.11.0-develop Keep-Alive: - timeout=15, max=98 Strict-Transport-Security: - max-age=631139040; includeSubdomains - Transfer-Encoding: - - chunked X-Content-Type-Options: - nosniff X-Download-Options: @@ -184,16 +184,18 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: DELETE - uri: https://foreman.example.org/api/locations/7 + uri: https://foreman.example.org/api/locations/10 response: body: - string: '{"id":7,"name":"Sub Location 2","created_at":"2022-11-08T09:29:12.729Z","updated_at":"2022-11-08T09:29:12.729Z","ignore_types":[],"ancestry":"4","title":"Test + string: '{"id":10,"name":"Sub Location 2","created_at":"2024-07-25T12:00:12.588Z","updated_at":"2024-07-25T12:00:12.588Z","ignore_types":[],"ancestry":"7","title":"Test Location/Sub Location 2","description":null}' headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive + Content-Length: + - '204' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -207,13 +209,11 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.4.0 + - 3.11.0-develop Keep-Alive: - timeout=15, max=97 Strict-Transport-Security: - max-age=631139040; includeSubdomains - Transfer-Encoding: - - chunked X-Content-Type-Options: - nosniff X-Download-Options: diff --git a/tests/test_playbooks/fixtures/location-13.yml b/tests/test_playbooks/fixtures/location-13.yml index 62fa2426..dd014134 100644 --- a/tests/test_playbooks/fixtures/location-13.yml +++ b/tests/test_playbooks/fixtures/location-13.yml @@ -14,12 +14,14 @@ interactions: uri: https://foreman.example.org/api/status response: body: - string: '{"result":"ok","status":200,"version":"3.4.0","api_version":2}' + string: '{"result":"ok","status":200,"version":"3.11.0-develop","api_version":2}' headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive + Content-Length: + - '71' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -33,13 +35,11 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.4.0 + - 3.11.0-develop Keep-Alive: - timeout=15, max=100 Strict-Transport-Security: - max-age=631139040; includeSubdomains - Transfer-Encoding: - - chunked X-Content-Type-Options: - nosniff X-Download-Options: @@ -77,6 +77,8 @@ interactions: - max-age=0, private, must-revalidate Connection: - Keep-Alive + Content-Length: + - '195' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -90,13 +92,11 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.4.0 + - 3.11.0-develop Keep-Alive: - timeout=15, max=99 Strict-Transport-Security: - max-age=631139040; includeSubdomains - Transfer-Encoding: - - chunked X-Content-Type-Options: - nosniff X-Download-Options: @@ -127,14 +127,16 @@ interactions: body: string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": 4294967296,\n \"search\": \"title=\\\"Test Location\\\"\",\n \"sort\": {\n - \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"ancestry\":null,\"parent_id\":null,\"parent_name\":null,\"created_at\":\"2022-11-08 - 09:29:05 UTC\",\"updated_at\":\"2022-11-08 09:29:05 UTC\",\"id\":4,\"name\":\"Test + \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"ancestry\":null,\"parent_id\":null,\"parent_name\":null,\"created_at\":\"2024-07-25 + 12:00:01 UTC\",\"updated_at\":\"2024-07-25 12:00:01 UTC\",\"id\":7,\"name\":\"Test Location\",\"title\":\"Test Location\",\"description\":null}]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive + Content-Length: + - '384' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -148,13 +150,11 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.4.0 + - 3.11.0-develop Keep-Alive: - timeout=15, max=98 Strict-Transport-Security: - max-age=631139040; includeSubdomains - Transfer-Encoding: - - chunked X-Content-Type-Options: - nosniff X-Download-Options: diff --git a/tests/test_playbooks/fixtures/location-14.yml b/tests/test_playbooks/fixtures/location-14.yml index 081806ed..239bb051 100644 --- a/tests/test_playbooks/fixtures/location-14.yml +++ b/tests/test_playbooks/fixtures/location-14.yml @@ -14,12 +14,14 @@ interactions: uri: https://foreman.example.org/api/status response: body: - string: '{"result":"ok","status":200,"version":"3.4.0","api_version":2}' + string: '{"result":"ok","status":200,"version":"3.11.0-develop","api_version":2}' headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive + Content-Length: + - '71' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -33,13 +35,11 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.4.0 + - 3.11.0-develop Keep-Alive: - timeout=15, max=100 Strict-Transport-Security: - max-age=631139040; includeSubdomains - Transfer-Encoding: - - chunked X-Content-Type-Options: - nosniff X-Download-Options: @@ -77,6 +77,8 @@ interactions: - max-age=0, private, must-revalidate Connection: - Keep-Alive + Content-Length: + - '195' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -90,13 +92,11 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.4.0 + - 3.11.0-develop Keep-Alive: - timeout=15, max=99 Strict-Transport-Security: - max-age=631139040; includeSubdomains - Transfer-Encoding: - - chunked X-Content-Type-Options: - nosniff X-Download-Options: @@ -127,14 +127,16 @@ interactions: body: string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": 4294967296,\n \"search\": \"title=\\\"Test Location\\\"\",\n \"sort\": {\n - \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"ancestry\":null,\"parent_id\":null,\"parent_name\":null,\"created_at\":\"2022-11-08 - 09:29:05 UTC\",\"updated_at\":\"2022-11-08 09:29:05 UTC\",\"id\":4,\"name\":\"Test + \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"ancestry\":null,\"parent_id\":null,\"parent_name\":null,\"created_at\":\"2024-07-25 + 12:00:01 UTC\",\"updated_at\":\"2024-07-25 12:00:01 UTC\",\"id\":7,\"name\":\"Test Location\",\"title\":\"Test Location\",\"description\":null}]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive + Content-Length: + - '384' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -148,13 +150,11 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.4.0 + - 3.11.0-develop Keep-Alive: - timeout=15, max=98 Strict-Transport-Security: - max-age=631139040; includeSubdomains - Transfer-Encoding: - - chunked X-Content-Type-Options: - nosniff X-Download-Options: diff --git a/tests/test_playbooks/fixtures/location-15.yml b/tests/test_playbooks/fixtures/location-15.yml index 4c7ef98d..8377d327 100644 --- a/tests/test_playbooks/fixtures/location-15.yml +++ b/tests/test_playbooks/fixtures/location-15.yml @@ -14,12 +14,14 @@ interactions: uri: https://foreman.example.org/api/status response: body: - string: '{"result":"ok","status":200,"version":"3.4.0","api_version":2}' + string: '{"result":"ok","status":200,"version":"3.11.0-develop","api_version":2}' headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive + Content-Length: + - '71' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -33,13 +35,11 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.4.0 + - 3.11.0-develop Keep-Alive: - timeout=15, max=100 Strict-Transport-Security: - max-age=631139040; includeSubdomains - Transfer-Encoding: - - chunked X-Content-Type-Options: - nosniff X-Download-Options: @@ -70,14 +70,16 @@ interactions: body: string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": 4294967296,\n \"search\": \"title=\\\"Test Location\\\"\",\n \"sort\": {\n - \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"ancestry\":null,\"parent_id\":null,\"parent_name\":null,\"created_at\":\"2022-11-08 - 09:29:05 UTC\",\"updated_at\":\"2022-11-08 09:29:05 UTC\",\"id\":4,\"name\":\"Test + \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"ancestry\":null,\"parent_id\":null,\"parent_name\":null,\"created_at\":\"2024-07-25 + 12:00:01 UTC\",\"updated_at\":\"2024-07-25 12:00:01 UTC\",\"id\":7,\"name\":\"Test Location\",\"title\":\"Test Location\",\"description\":null}]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive + Content-Length: + - '384' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -91,13 +93,11 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.4.0 + - 3.11.0-develop Keep-Alive: - timeout=15, max=99 Strict-Transport-Security: - max-age=631139040; includeSubdomains - Transfer-Encoding: - - chunked X-Content-Type-Options: - nosniff X-Download-Options: @@ -125,16 +125,18 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: DELETE - uri: https://foreman.example.org/api/locations/4 + uri: https://foreman.example.org/api/locations/7 response: body: - string: '{"id":4,"name":"Test Location","created_at":"2022-11-08T09:29:05.978Z","updated_at":"2022-11-08T09:29:05.978Z","ignore_types":[],"ancestry":null,"title":"Test + string: '{"id":7,"name":"Test Location","created_at":"2024-07-25T12:00:01.947Z","updated_at":"2024-07-25T12:00:01.947Z","ignore_types":[],"ancestry":null,"title":"Test Location","description":null}' headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive + Content-Length: + - '188' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -148,13 +150,11 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.4.0 + - 3.11.0-develop Keep-Alive: - timeout=15, max=98 Strict-Transport-Security: - max-age=631139040; includeSubdomains - Transfer-Encoding: - - chunked X-Content-Type-Options: - nosniff X-Download-Options: diff --git a/tests/test_playbooks/fixtures/location-16.yml b/tests/test_playbooks/fixtures/location-16.yml index c57ba6f0..3f9d4438 100644 --- a/tests/test_playbooks/fixtures/location-16.yml +++ b/tests/test_playbooks/fixtures/location-16.yml @@ -14,12 +14,14 @@ interactions: uri: https://foreman.example.org/api/status response: body: - string: '{"result":"ok","status":200,"version":"3.4.0","api_version":2}' + string: '{"result":"ok","status":200,"version":"3.11.0-develop","api_version":2}' headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive + Content-Length: + - '71' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -33,13 +35,11 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.4.0 + - 3.11.0-develop Keep-Alive: - timeout=15, max=100 Strict-Transport-Security: - max-age=631139040; includeSubdomains - Transfer-Encoding: - - chunked X-Content-Type-Options: - nosniff X-Download-Options: @@ -76,6 +76,8 @@ interactions: - max-age=0, private, must-revalidate Connection: - Keep-Alive + Content-Length: + - '180' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -89,13 +91,11 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.4.0 + - 3.11.0-develop Keep-Alive: - timeout=15, max=99 Strict-Transport-Security: - max-age=631139040; includeSubdomains - Transfer-Encoding: - - chunked X-Content-Type-Options: - nosniff X-Download-Options: @@ -128,118 +128,130 @@ interactions: uri: https://foreman.example.org/api/locations response: body: - string: '{"select_all_types":[],"description":null,"created_at":"2022-11-08 - 09:29:18 UTC","updated_at":"2022-11-08 09:29:18 UTC","ancestry":null,"parent_id":null,"parent_name":null,"id":8,"name":"Test - Location","title":"Test Location","users":[],"smart_proxies":[],"subnets":[],"compute_resources":[],"media":[],"ptables":[{"description":null,"os_family":"Suse","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"AutoYaST entire - SCSI disk","id":120,"inherited":false},{"description":null,"os_family":"Suse","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"AutoYaST entire - virtual disk","id":121,"inherited":false},{"description":null,"os_family":"Suse","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"AutoYaST LVM","id":122,"inherited":false},{"description":null,"os_family":"Coreos","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"CoreOS default - fake","id":123,"inherited":false},{"description":null,"os_family":"Rancheros","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Empty","id":124,"inherited":false},{"description":null,"os_family":"Freebsd","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"FreeBSD default - fake","id":125,"inherited":false},{"description":null,"os_family":"Solaris","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Jumpstart default","id":126,"inherited":false},{"description":null,"os_family":"Solaris","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Jumpstart mirrored","id":127,"inherited":false},{"description":null,"os_family":"Junos","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Junos default - fake","id":128,"inherited":false},{"description":null,"os_family":"Redhat","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Kickstart custom","id":129,"inherited":false},{"description":null,"os_family":"Redhat","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Kickstart default","id":130,"inherited":false},{"description":null,"os_family":"Redhat","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Kickstart default - thin","id":131,"inherited":false},{"description":null,"os_family":"Redhat","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Kickstart dynamic","id":132,"inherited":false},{"description":null,"os_family":"NXOS","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"NX-OS default - fake","id":133,"inherited":false},{"description":null,"os_family":"Debian","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Preseed default","id":134,"inherited":false},{"description":"Preseed + string: '{"select_all_types":[],"description":null,"created_at":"2024-07-25 + 12:00:20 UTC","updated_at":"2024-07-25 12:00:20 UTC","ancestry":null,"parent_id":null,"parent_name":null,"id":11,"name":"Test + Location","title":"Test Location","users":[],"smart_proxies":[],"subnets":[],"compute_resources":[],"media":[],"ptables":[{"description":null,"os_family":"Suse","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"AutoYaST entire + virtual disk","id":127,"inherited":false},{"description":null,"os_family":"Solaris","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"Jumpstart default","id":132,"inherited":false},{"description":null,"os_family":"Solaris","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"Jumpstart mirrored","id":133,"inherited":false},{"description":null,"os_family":"Junos","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"Junos default + fake","id":134,"inherited":false},{"description":null,"os_family":"Suse","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"AutoYaST LVM","id":128,"inherited":false},{"description":null,"os_family":"Coreos","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"CoreOS default + fake","id":129,"inherited":false},{"description":null,"os_family":"Rancheros","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"Empty","id":130,"inherited":false},{"description":null,"os_family":"Suse","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"AutoYaST entire + SCSI disk","id":126,"inherited":false},{"description":null,"os_family":"Freebsd","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"FreeBSD default + fake","id":131,"inherited":false},{"description":null,"os_family":"Redhat","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"Kickstart custom","id":135,"inherited":false},{"description":null,"os_family":"Redhat","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"Kickstart default","id":136,"inherited":false},{"description":null,"os_family":"Redhat","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"Kickstart default + thin","id":137,"inherited":false},{"description":null,"os_family":"Redhat","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"Kickstart dynamic","id":138,"inherited":false},{"description":null,"os_family":"NXOS","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"NX-OS default + fake","id":139,"inherited":false},{"description":null,"os_family":"Debian","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"Preseed default","id":140,"inherited":false},{"description":"Preseed Autoinstall default storage snippet configures drives automatically\nwith - LVM. The snippet is automatically indented by 2 spaces. For reference:\nhttps://ubuntu.com/server/docs/install/autoinstall-reference","os_family":"Debian","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Preseed default - autoinstall","id":135,"inherited":false},{"description":null,"os_family":"Debian","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Preseed default - LVM","id":136,"inherited":false},{"description":null,"os_family":"Windows","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Windows default - partition table","id":137,"inherited":false},{"description":null,"os_family":"Windows","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Windows default - GPT EFI partition table","id":138,"inherited":false},{"description":null,"os_family":"Xenserver","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"XenServer default","id":139,"inherited":false}],"provisioning_templates":[{"id":1,"name":"NX-OS + LVM. The snippet is automatically indented by 2 spaces. For reference:\nhttps://ubuntu.com/server/docs/install/autoinstall-reference","os_family":"Debian","created_at":"2024-04-15 + 09:11:37 UTC","updated_at":"2024-04-15 09:11:37 UTC","name":"Preseed default + autoinstall","id":141,"inherited":false},{"description":null,"os_family":"Debian","created_at":"2024-04-15 + 09:11:37 UTC","updated_at":"2024-04-15 09:11:37 UTC","name":"Preseed default + LVM","id":142,"inherited":false},{"description":null,"os_family":"Windows","created_at":"2024-04-15 + 09:11:37 UTC","updated_at":"2024-04-15 09:11:37 UTC","name":"Windows default + partition table","id":143,"inherited":false},{"description":null,"os_family":"Windows","created_at":"2024-04-15 + 09:11:37 UTC","updated_at":"2024-04-15 09:11:37 UTC","name":"Windows default + GPT EFI partition table","id":144,"inherited":false},{"description":null,"os_family":"Xenserver","created_at":"2024-04-15 + 09:11:37 UTC","updated_at":"2024-04-15 09:11:37 UTC","name":"XenServer default","id":145,"inherited":false},{"description":null,"os_family":"Redhat","created_at":"2024-04-22 + 11:15:26 UTC","updated_at":"2024-04-22 11:15:26 UTC","name":"Kickstart default + encrypted","id":152,"inherited":false},{"description":"Preseed Autoinstall + default storage snippet configures drives automatically\nwith LVM and disk + encryption.\nRequires Ubuntu >= 22.04.3.\nThe snippet is automatically indented + by 2 spaces. For reference:\nhttps://ubuntu.com/server/docs/install/autoinstall-reference","os_family":"Debian","created_at":"2024-04-22 + 11:15:26 UTC","updated_at":"2024-04-22 11:15:26 UTC","name":"Preseed default + autoinstall encrypted","id":153,"inherited":false}],"provisioning_templates":[{"id":1,"name":"NX-OS default POAP setup","template_kind_id":11,"template_kind_name":"POAP","inherited":false},{"id":2,"name":"AutoYaST default PXEGrub","template_kind_id":3,"template_kind_name":"PXEGrub","inherited":false},{"id":3,"name":"Jumpstart default PXEGrub","template_kind_id":3,"template_kind_name":"PXEGrub","inherited":false},{"id":4,"name":"Kickstart default PXEGrub","template_kind_id":3,"template_kind_name":"PXEGrub","inherited":false},{"id":5,"name":"PXEGrub default local boot","template_kind_id":3,"template_kind_name":"PXEGrub","inherited":false},{"id":6,"name":"PXEGrub - global default","template_kind_id":3,"template_kind_name":"PXEGrub","inherited":false},{"id":49,"name":"AutoYaST - default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":7,"name":"AutoYaST + global default","template_kind_id":3,"template_kind_name":"PXEGrub","inherited":false},{"id":7,"name":"AutoYaST default PXEGrub2","template_kind_id":4,"template_kind_name":"PXEGrub2","inherited":false},{"id":8,"name":"Kickstart default PXEGrub2","template_kind_id":4,"template_kind_name":"PXEGrub2","inherited":false},{"id":9,"name":"Preseed - default PXEGrub2","template_kind_id":4,"template_kind_name":"PXEGrub2","inherited":false},{"id":10,"name":"PXEGrub2 - default local boot","template_kind_id":4,"template_kind_name":"PXEGrub2","inherited":false},{"id":11,"name":"PXEGrub2 - global default","template_kind_id":4,"template_kind_name":"PXEGrub2","inherited":false},{"id":12,"name":"Alterator - default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":50,"name":"AutoYaST - SLES default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":13,"name":"AutoYaST - default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":14,"name":"CoreOS - PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":15,"name":"FreeBSD - (mfsBSD) PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":16,"name":"Kickstart - default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":17,"name":"Kickstart - oVirt-RHVH PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":18,"name":"Preseed - default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":19,"name":"Preseed - default PXELinux Autoinstall","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":20,"name":"PXELinux - chain iPXE","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":21,"name":"PXELinux - chain iPXE UNDI","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":22,"name":"PXELinux - default local boot","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":23,"name":"PXELinux - default memdisk","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":24,"name":"PXELinux - global default","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":25,"name":"RancherOS - PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":26,"name":"WAIK - default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":27,"name":"Windows - default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":28,"name":"XenServer - default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":29,"name":"Junos - default ZTP config","template_kind_id":10,"template_kind_name":"ZTP","inherited":false},{"id":30,"name":"CloudInit - default","template_kind_id":12,"template_kind_name":"cloud-init","inherited":false},{"id":31,"name":"Alterator - default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":73,"name":"chef_client","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":32,"name":"FreeBSD - (mfsBSD) finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":33,"name":"Jumpstart - default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":34,"name":"Junos - default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":35,"name":"Kickstart - default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":36,"name":"Preseed - default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":37,"name":"Windows - default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":38,"name":"XenServer - default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":39,"name":"Linux - host_init_config default","template_kind_id":1,"template_kind_name":"host_init_config","inherited":false},{"id":40,"name":"AutoYaST - default iPXE","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":41,"name":"iPXE - default local boot","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":42,"name":"iPXE - global default","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":51,"name":"CoreOS - provision","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":43,"name":"iPXE - intermediate script","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":44,"name":"Kickstart - default iPXE","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":45,"name":"Preseed - default iPXE","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":46,"name":"Windows - default iPXE","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":47,"name":"Alterator - default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":48,"name":"Atomic - Kickstart default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":52,"name":"FreeBSD - (mfsBSD) provision","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":53,"name":"Jumpstart - default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":54,"name":"Junos - default SLAX","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":55,"name":"Kickstart - default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":56,"name":"Kickstart - oVirt-RHVH","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":57,"name":"Preseed - default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":58,"name":"RancherOS - provision","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":59,"name":"Windows - default provision","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":60,"name":"XenServer - default answerfile","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":61,"name":"Global - Registration","template_kind_id":13,"template_kind_name":"registration","inherited":false},{"id":62,"name":"remote_execution_pull_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":63,"name":"Grubby - default","template_kind_id":8,"template_kind_name":"script","inherited":false},{"id":64,"name":"Windows - peSetup.cmd","template_kind_id":8,"template_kind_name":"script","inherited":false},{"id":65,"name":"alterator_pkglist","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":66,"name":"saltstack_minion","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":67,"name":"ansible_provisioning_callback","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":68,"name":"ansible_tower_callback_script","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":69,"name":"ansible_tower_callback_service","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":70,"name":"blacklist_kernel_modules","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":71,"name":"bmc_nic_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":72,"name":"built","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":74,"name":"coreos_cloudconfig","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":75,"name":"create_users","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":76,"name":"csr_attributes.yaml","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":77,"name":"efibootmgr_netboot","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":78,"name":"eject_cdrom","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":79,"name":"epel","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":80,"name":"fips_packages","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":81,"name":"fix_hosts","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":82,"name":"freeipa_register","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":83,"name":"http_proxy","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":84,"name":"insights","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":85,"name":"kickstart_ifcfg_bond_interface","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":86,"name":"kickstart_ifcfg_bonded_interface","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":87,"name":"rancheros_cloudconfig","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":111,"name":"schedule_reboot","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":88,"name":"kickstart_ifcfg_generic_interface","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":89,"name":"redhat_register","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":90,"name":"kickstart_ifcfg_get_identifier_names","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":91,"name":"kickstart_kernel_options","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":92,"name":"kickstart_networking_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":93,"name":"ntp","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":94,"name":"pkg_manager","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":95,"name":"preseed_kernel_options","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":96,"name":"remote_execution_ssh_keys","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":97,"name":"preseed_netplan_generic_interface","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":98,"name":"preseed_netplan_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":99,"name":"preseed_networking_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":100,"name":"puppet.conf","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":101,"name":"puppet_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":102,"name":"puppetlabs_repo","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":103,"name":"pxegrub2_chainload","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":104,"name":"pxegrub2_discovery","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":105,"name":"pxegrub2_mac","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":106,"name":"pxegrub_chainload","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":107,"name":"pxegrub_discovery","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":108,"name":"pxelinux_chainload","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":109,"name":"pxelinux_discovery","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":110,"name":"saltstack_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":112,"name":"Windows - network","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":113,"name":"yum_proxy","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":114,"name":"AutoYaST - default user data","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":115,"name":"Kickstart - default user data","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":116,"name":"Preseed - Autoinstall cloud-init user data","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":117,"name":"Preseed - default user data","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":118,"name":"UserData - default","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":119,"name":"UserData - open-vm-tools","template_kind_id":9,"template_kind_name":"user_data","inherited":false}],"domains":[],"realms":[],"hostgroups":[],"organizations":[],"hosts_count":0,"parameters":[],"deprecations":{"environments":"Environments + default PXEGrub2","template_kind_id":4,"template_kind_name":"PXEGrub2","inherited":false},{"id":10,"name":"Preseed + default PXEGrub2 Autoinstall","template_kind_id":4,"template_kind_name":"PXEGrub2","inherited":false},{"id":11,"name":"PXEGrub2 + default local boot","template_kind_id":4,"template_kind_name":"PXEGrub2","inherited":false},{"id":12,"name":"PXEGrub2 + global default","template_kind_id":4,"template_kind_name":"PXEGrub2","inherited":false},{"id":13,"name":"Alterator + default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":14,"name":"AutoYaST + default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":15,"name":"CoreOS + PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":16,"name":"FreeBSD + (mfsBSD) PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":17,"name":"Kickstart + default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":18,"name":"Kickstart + oVirt-RHVH PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":19,"name":"Preseed + default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":20,"name":"Preseed + default PXELinux Autoinstall","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":79,"name":"eject_cdrom","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":21,"name":"PXELinux + chain iPXE","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":22,"name":"PXELinux + chain iPXE UNDI","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":23,"name":"PXELinux + default local boot","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":24,"name":"PXELinux + default memdisk","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":25,"name":"PXELinux + global default","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":26,"name":"RancherOS + PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":27,"name":"WAIK + default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":28,"name":"Windows + default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":29,"name":"XenServer + default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":30,"name":"Junos + default ZTP config","template_kind_id":10,"template_kind_name":"ZTP","inherited":false},{"id":32,"name":"Alterator + default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":80,"name":"epel","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":33,"name":"FreeBSD + (mfsBSD) finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":34,"name":"Jumpstart + default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":35,"name":"Junos + default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":37,"name":"Preseed + default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":38,"name":"Windows + default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":39,"name":"XenServer + default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":40,"name":"Linux + host_init_config default","template_kind_id":1,"template_kind_name":"host_init_config","inherited":false},{"id":41,"name":"AutoYaST + default iPXE","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":42,"name":"iPXE + default local boot","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":43,"name":"iPXE + global default","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":72,"name":"bmc_nic_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":44,"name":"iPXE + intermediate script","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":45,"name":"Kickstart + default iPXE","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":46,"name":"Preseed + default iPXE","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":47,"name":"Preseed + default iPXE Autoinstall","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":48,"name":"Windows + default iPXE","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":49,"name":"Windows + default iPXE httpboot","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":81,"name":"fips_packages","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":50,"name":"Alterator + default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":51,"name":"AutoYaST + default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":52,"name":"AutoYaST + SLES default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":53,"name":"CoreOS + provision","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":54,"name":"FreeBSD + (mfsBSD) provision","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":55,"name":"Jumpstart + default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":56,"name":"Junos + default SLAX","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":70,"name":"ansible_tower_callback_service","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":59,"name":"Preseed + default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":60,"name":"RancherOS + provision","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":61,"name":"Windows + default provision","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":62,"name":"XenServer + default answerfile","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":63,"name":"Global + Registration","template_kind_id":13,"template_kind_name":"registration","inherited":false},{"id":64,"name":"remote_execution_pull_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":65,"name":"Grubby + default","template_kind_id":8,"template_kind_name":"script","inherited":false},{"id":66,"name":"Windows + peSetup.cmd","template_kind_id":8,"template_kind_name":"script","inherited":false},{"id":67,"name":"alterator_pkglist","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":68,"name":"ansible_provisioning_callback","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":69,"name":"ansible_tower_callback_script","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":71,"name":"blacklist_kernel_modules","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":73,"name":"built","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":74,"name":"chef_client","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":75,"name":"coreos_cloudconfig","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":76,"name":"create_users","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":77,"name":"csr_attributes.yaml","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":78,"name":"efibootmgr_netboot","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":82,"name":"fix_hosts","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":83,"name":"freeipa_register","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":84,"name":"http_proxy","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":85,"name":"insights","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":86,"name":"kickstart_ifcfg_bond_interface","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":87,"name":"kickstart_ifcfg_bonded_interface","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":88,"name":"kickstart_ifcfg_generic_interface","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":89,"name":"kickstart_ifcfg_get_identifier_names","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":91,"name":"kickstart_networking_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":92,"name":"kickstart_rhsm","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":93,"name":"ntp","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":95,"name":"preseed_kernel_options","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":96,"name":"preseed_kernel_options_autoinstall","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":97,"name":"preseed_netplan_generic_interface","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":98,"name":"preseed_netplan_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":99,"name":"preseed_networking_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":106,"name":"pxegrub_chainload","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":100,"name":"puppet.conf","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":101,"name":"puppet_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":102,"name":"puppetlabs_repo","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":103,"name":"pxegrub2_chainload","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":104,"name":"pxegrub2_discovery","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":105,"name":"pxegrub2_mac","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":123,"name":"UserData + default","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":107,"name":"pxegrub_discovery","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":108,"name":"pxelinux_chainload","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":109,"name":"pxelinux_discovery","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":110,"name":"rancheros_cloudconfig","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":124,"name":"UserData + open-vm-tools","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":125,"name":"Windows + default user data","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":112,"name":"remote_execution_ssh_keys","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":113,"name":"saltstack_minion","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":114,"name":"saltstack_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":115,"name":"schedule_reboot","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":117,"name":"Windows + network","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":118,"name":"yum_proxy","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":119,"name":"AutoYaST + default user data","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":120,"name":"Kickstart + default user data","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":122,"name":"Preseed + default user data","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":90,"name":"kickstart_kernel_options","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":31,"name":"CloudInit + default","template_kind_id":12,"template_kind_name":"cloud-init","inherited":false},{"id":36,"name":"Kickstart + default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":57,"name":"Kickstart + default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":58,"name":"Kickstart + oVirt-RHVH","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":149,"name":"disk_enc_clevis_tang","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":150,"name":"kickstart_network_interface","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":94,"name":"pkg_manager","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":151,"name":"preseed_autoinstall_clevis_tang_wrapper","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":111,"name":"redhat_register","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":116,"name":"subscription_manager_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":121,"name":"Preseed + Autoinstall cloud-init user data","template_kind_id":9,"template_kind_name":"user_data","inherited":false}],"domains":[],"realms":[],"hostgroups":[],"organizations":[],"hosts_count":0,"parameters":[],"deprecations":{"environments":"Environments got deprecated from this endpoint."}}' headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive + Content-Length: + - '19115' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -253,13 +265,11 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.4.0 + - 3.11.0-develop Keep-Alive: - timeout=15, max=98 Strict-Transport-Security: - max-age=631139040; includeSubdomains - Transfer-Encoding: - - chunked X-Content-Type-Options: - nosniff X-Download-Options: diff --git a/tests/test_playbooks/fixtures/location-17.yml b/tests/test_playbooks/fixtures/location-17.yml index 50a71bcf..4d6f5711 100644 --- a/tests/test_playbooks/fixtures/location-17.yml +++ b/tests/test_playbooks/fixtures/location-17.yml @@ -14,12 +14,14 @@ interactions: uri: https://foreman.example.org/api/status response: body: - string: '{"result":"ok","status":200,"version":"3.4.0","api_version":2}' + string: '{"result":"ok","status":200,"version":"3.11.0-develop","api_version":2}' headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive + Content-Length: + - '71' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -33,13 +35,11 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.4.0 + - 3.11.0-develop Keep-Alive: - timeout=15, max=100 Strict-Transport-Security: - max-age=631139040; includeSubdomains - Transfer-Encoding: - - chunked X-Content-Type-Options: - nosniff X-Download-Options: @@ -70,14 +70,16 @@ interactions: body: string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": 4294967296,\n \"search\": \"title=\\\"Test Location\\\"\",\n \"sort\": {\n - \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"ancestry\":null,\"parent_id\":null,\"parent_name\":null,\"created_at\":\"2022-11-08 - 09:29:18 UTC\",\"updated_at\":\"2022-11-08 09:29:18 UTC\",\"id\":8,\"name\":\"Test + \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"ancestry\":null,\"parent_id\":null,\"parent_name\":null,\"created_at\":\"2024-07-25 + 12:00:20 UTC\",\"updated_at\":\"2024-07-25 12:00:20 UTC\",\"id\":11,\"name\":\"Test Location\",\"title\":\"Test Location\",\"description\":null}]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive + Content-Length: + - '385' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -91,13 +93,11 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.4.0 + - 3.11.0-develop Keep-Alive: - timeout=15, max=99 Strict-Transport-Security: - max-age=631139040; includeSubdomains - Transfer-Encoding: - - chunked X-Content-Type-Options: - nosniff X-Download-Options: @@ -123,121 +123,133 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/api/locations/8 + uri: https://foreman.example.org/api/locations/11 response: body: - string: '{"select_all_types":[],"description":null,"created_at":"2022-11-08 - 09:29:18 UTC","updated_at":"2022-11-08 09:29:18 UTC","ancestry":null,"parent_id":null,"parent_name":null,"id":8,"name":"Test - Location","title":"Test Location","users":[],"smart_proxies":[],"subnets":[],"compute_resources":[],"media":[],"ptables":[{"description":null,"os_family":"Suse","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"AutoYaST entire - SCSI disk","id":120,"inherited":false},{"description":null,"os_family":"Suse","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"AutoYaST entire - virtual disk","id":121,"inherited":false},{"description":null,"os_family":"Suse","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"AutoYaST LVM","id":122,"inherited":false},{"description":null,"os_family":"Coreos","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"CoreOS default - fake","id":123,"inherited":false},{"description":null,"os_family":"Rancheros","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Empty","id":124,"inherited":false},{"description":null,"os_family":"Freebsd","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"FreeBSD default - fake","id":125,"inherited":false},{"description":null,"os_family":"Solaris","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Jumpstart default","id":126,"inherited":false},{"description":null,"os_family":"Solaris","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Jumpstart mirrored","id":127,"inherited":false},{"description":null,"os_family":"Junos","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Junos default - fake","id":128,"inherited":false},{"description":null,"os_family":"Redhat","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Kickstart custom","id":129,"inherited":false},{"description":null,"os_family":"Redhat","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Kickstart default","id":130,"inherited":false},{"description":null,"os_family":"Redhat","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Kickstart default - thin","id":131,"inherited":false},{"description":null,"os_family":"Redhat","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Kickstart dynamic","id":132,"inherited":false},{"description":null,"os_family":"NXOS","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"NX-OS default - fake","id":133,"inherited":false},{"description":null,"os_family":"Debian","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Preseed default","id":134,"inherited":false},{"description":"Preseed + string: '{"select_all_types":[],"description":null,"created_at":"2024-07-25 + 12:00:20 UTC","updated_at":"2024-07-25 12:00:20 UTC","ancestry":null,"parent_id":null,"parent_name":null,"id":11,"name":"Test + Location","title":"Test Location","users":[],"smart_proxies":[],"subnets":[],"compute_resources":[],"media":[],"ptables":[{"description":null,"os_family":"Suse","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"AutoYaST entire + SCSI disk","id":126,"inherited":false},{"description":null,"os_family":"Suse","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"AutoYaST entire + virtual disk","id":127,"inherited":false},{"description":null,"os_family":"Suse","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"AutoYaST LVM","id":128,"inherited":false},{"description":null,"os_family":"Coreos","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"CoreOS default + fake","id":129,"inherited":false},{"description":null,"os_family":"Rancheros","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"Empty","id":130,"inherited":false},{"description":null,"os_family":"Freebsd","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"FreeBSD default + fake","id":131,"inherited":false},{"description":null,"os_family":"Solaris","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"Jumpstart default","id":132,"inherited":false},{"description":null,"os_family":"Solaris","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"Jumpstart mirrored","id":133,"inherited":false},{"description":null,"os_family":"Junos","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"Junos default + fake","id":134,"inherited":false},{"description":null,"os_family":"Redhat","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"Kickstart custom","id":135,"inherited":false},{"description":null,"os_family":"Redhat","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"Kickstart default","id":136,"inherited":false},{"description":null,"os_family":"Redhat","created_at":"2024-04-22 + 11:15:26 UTC","updated_at":"2024-04-22 11:15:26 UTC","name":"Kickstart default + encrypted","id":152,"inherited":false},{"description":null,"os_family":"Redhat","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"Kickstart default + thin","id":137,"inherited":false},{"description":null,"os_family":"Redhat","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"Kickstart dynamic","id":138,"inherited":false},{"description":null,"os_family":"NXOS","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"NX-OS default + fake","id":139,"inherited":false},{"description":null,"os_family":"Debian","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"Preseed default","id":140,"inherited":false},{"description":"Preseed Autoinstall default storage snippet configures drives automatically\nwith - LVM. The snippet is automatically indented by 2 spaces. For reference:\nhttps://ubuntu.com/server/docs/install/autoinstall-reference","os_family":"Debian","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Preseed default - autoinstall","id":135,"inherited":false},{"description":null,"os_family":"Debian","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Preseed default - LVM","id":136,"inherited":false},{"description":null,"os_family":"Windows","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Windows default - GPT EFI partition table","id":138,"inherited":false},{"description":null,"os_family":"Windows","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Windows default - partition table","id":137,"inherited":false},{"description":null,"os_family":"Xenserver","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"XenServer default","id":139,"inherited":false}],"provisioning_templates":[{"id":47,"name":"Alterator - default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":31,"name":"Alterator - default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":12,"name":"Alterator - default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":65,"name":"alterator_pkglist","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":67,"name":"ansible_provisioning_callback","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":68,"name":"ansible_tower_callback_script","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":69,"name":"ansible_tower_callback_service","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":48,"name":"Atomic - Kickstart default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":49,"name":"AutoYaST - default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":40,"name":"AutoYaST + LVM. The snippet is automatically indented by 2 spaces. For reference:\nhttps://ubuntu.com/server/docs/install/autoinstall-reference","os_family":"Debian","created_at":"2024-04-15 + 09:11:37 UTC","updated_at":"2024-04-15 09:11:37 UTC","name":"Preseed default + autoinstall","id":141,"inherited":false},{"description":"Preseed Autoinstall + default storage snippet configures drives automatically\nwith LVM and disk + encryption.\nRequires Ubuntu >= 22.04.3.\nThe snippet is automatically indented + by 2 spaces. For reference:\nhttps://ubuntu.com/server/docs/install/autoinstall-reference","os_family":"Debian","created_at":"2024-04-22 + 11:15:26 UTC","updated_at":"2024-04-22 11:15:26 UTC","name":"Preseed default + autoinstall encrypted","id":153,"inherited":false},{"description":null,"os_family":"Debian","created_at":"2024-04-15 + 09:11:37 UTC","updated_at":"2024-04-15 09:11:37 UTC","name":"Preseed default + LVM","id":142,"inherited":false},{"description":null,"os_family":"Windows","created_at":"2024-04-15 + 09:11:37 UTC","updated_at":"2024-04-15 09:11:37 UTC","name":"Windows default + GPT EFI partition table","id":144,"inherited":false},{"description":null,"os_family":"Windows","created_at":"2024-04-15 + 09:11:37 UTC","updated_at":"2024-04-15 09:11:37 UTC","name":"Windows default + partition table","id":143,"inherited":false},{"description":null,"os_family":"Xenserver","created_at":"2024-04-15 + 09:11:37 UTC","updated_at":"2024-04-15 09:11:37 UTC","name":"XenServer default","id":145,"inherited":false}],"provisioning_templates":[{"id":50,"name":"Alterator + default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":32,"name":"Alterator + default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":13,"name":"Alterator + default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":67,"name":"alterator_pkglist","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":68,"name":"ansible_provisioning_callback","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":69,"name":"ansible_tower_callback_script","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":70,"name":"ansible_tower_callback_service","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":51,"name":"AutoYaST + default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":41,"name":"AutoYaST default iPXE","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":2,"name":"AutoYaST default PXEGrub","template_kind_id":3,"template_kind_name":"PXEGrub","inherited":false},{"id":7,"name":"AutoYaST - default PXEGrub2","template_kind_id":4,"template_kind_name":"PXEGrub2","inherited":false},{"id":13,"name":"AutoYaST - default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":114,"name":"AutoYaST - default user data","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":50,"name":"AutoYaST - SLES default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":70,"name":"blacklist_kernel_modules","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":71,"name":"bmc_nic_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":72,"name":"built","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":73,"name":"chef_client","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":30,"name":"CloudInit - default","template_kind_id":12,"template_kind_name":"cloud-init","inherited":false},{"id":74,"name":"coreos_cloudconfig","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":51,"name":"CoreOS - provision","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":14,"name":"CoreOS - PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":75,"name":"create_users","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":76,"name":"csr_attributes.yaml","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":77,"name":"efibootmgr_netboot","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":78,"name":"eject_cdrom","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":79,"name":"epel","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":80,"name":"fips_packages","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":81,"name":"fix_hosts","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":32,"name":"FreeBSD - (mfsBSD) finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":52,"name":"FreeBSD - (mfsBSD) provision","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":15,"name":"FreeBSD - (mfsBSD) PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":82,"name":"freeipa_register","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":61,"name":"Global - Registration","template_kind_id":13,"template_kind_name":"registration","inherited":false},{"id":63,"name":"Grubby - default","template_kind_id":8,"template_kind_name":"script","inherited":false},{"id":83,"name":"http_proxy","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":84,"name":"insights","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":41,"name":"iPXE - default local boot","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":42,"name":"iPXE - global default","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":43,"name":"iPXE - intermediate script","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":53,"name":"Jumpstart - default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":33,"name":"Jumpstart + default PXEGrub2","template_kind_id":4,"template_kind_name":"PXEGrub2","inherited":false},{"id":14,"name":"AutoYaST + default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":119,"name":"AutoYaST + default user data","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":52,"name":"AutoYaST + SLES default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":71,"name":"blacklist_kernel_modules","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":72,"name":"bmc_nic_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":73,"name":"built","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":74,"name":"chef_client","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":31,"name":"CloudInit + default","template_kind_id":12,"template_kind_name":"cloud-init","inherited":false},{"id":75,"name":"coreos_cloudconfig","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":53,"name":"CoreOS + provision","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":15,"name":"CoreOS + PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":76,"name":"create_users","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":77,"name":"csr_attributes.yaml","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":149,"name":"disk_enc_clevis_tang","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":78,"name":"efibootmgr_netboot","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":79,"name":"eject_cdrom","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":80,"name":"epel","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":81,"name":"fips_packages","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":82,"name":"fix_hosts","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":33,"name":"FreeBSD + (mfsBSD) finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":54,"name":"FreeBSD + (mfsBSD) provision","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":16,"name":"FreeBSD + (mfsBSD) PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":83,"name":"freeipa_register","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":63,"name":"Global + Registration","template_kind_id":13,"template_kind_name":"registration","inherited":false},{"id":65,"name":"Grubby + default","template_kind_id":8,"template_kind_name":"script","inherited":false},{"id":84,"name":"http_proxy","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":85,"name":"insights","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":42,"name":"iPXE + default local boot","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":43,"name":"iPXE + global default","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":44,"name":"iPXE + intermediate script","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":55,"name":"Jumpstart + default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":34,"name":"Jumpstart default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":3,"name":"Jumpstart - default PXEGrub","template_kind_id":3,"template_kind_name":"PXEGrub","inherited":false},{"id":34,"name":"Junos - default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":54,"name":"Junos - default SLAX","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":29,"name":"Junos - default ZTP config","template_kind_id":10,"template_kind_name":"ZTP","inherited":false},{"id":55,"name":"Kickstart - default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":35,"name":"Kickstart - default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":44,"name":"Kickstart + default PXEGrub","template_kind_id":3,"template_kind_name":"PXEGrub","inherited":false},{"id":35,"name":"Junos + default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":56,"name":"Junos + default SLAX","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":30,"name":"Junos + default ZTP config","template_kind_id":10,"template_kind_name":"ZTP","inherited":false},{"id":57,"name":"Kickstart + default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":36,"name":"Kickstart + default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":45,"name":"Kickstart default iPXE","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":4,"name":"Kickstart default PXEGrub","template_kind_id":3,"template_kind_name":"PXEGrub","inherited":false},{"id":8,"name":"Kickstart - default PXEGrub2","template_kind_id":4,"template_kind_name":"PXEGrub2","inherited":false},{"id":16,"name":"Kickstart - default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":115,"name":"Kickstart - default user data","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":86,"name":"kickstart_ifcfg_bonded_interface","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":85,"name":"kickstart_ifcfg_bond_interface","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":88,"name":"kickstart_ifcfg_generic_interface","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":90,"name":"kickstart_ifcfg_get_identifier_names","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":91,"name":"kickstart_kernel_options","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":92,"name":"kickstart_networking_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":56,"name":"Kickstart - oVirt-RHVH","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":17,"name":"Kickstart - oVirt-RHVH PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":39,"name":"Linux + default PXEGrub2","template_kind_id":4,"template_kind_name":"PXEGrub2","inherited":false},{"id":17,"name":"Kickstart + default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":120,"name":"Kickstart + default user data","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":87,"name":"kickstart_ifcfg_bonded_interface","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":86,"name":"kickstart_ifcfg_bond_interface","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":88,"name":"kickstart_ifcfg_generic_interface","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":89,"name":"kickstart_ifcfg_get_identifier_names","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":90,"name":"kickstart_kernel_options","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":91,"name":"kickstart_networking_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":150,"name":"kickstart_network_interface","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":58,"name":"Kickstart + oVirt-RHVH","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":18,"name":"Kickstart + oVirt-RHVH PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":92,"name":"kickstart_rhsm","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":40,"name":"Linux host_init_config default","template_kind_id":1,"template_kind_name":"host_init_config","inherited":false},{"id":93,"name":"ntp","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":1,"name":"NX-OS - default POAP setup","template_kind_id":11,"template_kind_name":"POAP","inherited":false},{"id":94,"name":"pkg_manager","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":116,"name":"Preseed - Autoinstall cloud-init user data","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":57,"name":"Preseed - default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":36,"name":"Preseed - default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":45,"name":"Preseed - default iPXE","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":9,"name":"Preseed - default PXEGrub2","template_kind_id":4,"template_kind_name":"PXEGrub2","inherited":false},{"id":18,"name":"Preseed - default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":19,"name":"Preseed - default PXELinux Autoinstall","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":117,"name":"Preseed - default user data","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":95,"name":"preseed_kernel_options","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":97,"name":"preseed_netplan_generic_interface","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":98,"name":"preseed_netplan_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":99,"name":"preseed_networking_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":100,"name":"puppet.conf","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":102,"name":"puppetlabs_repo","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":101,"name":"puppet_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":103,"name":"pxegrub2_chainload","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":10,"name":"PXEGrub2 - default local boot","template_kind_id":4,"template_kind_name":"PXEGrub2","inherited":false},{"id":104,"name":"pxegrub2_discovery","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":11,"name":"PXEGrub2 + default POAP setup","template_kind_id":11,"template_kind_name":"POAP","inherited":false},{"id":94,"name":"pkg_manager","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":151,"name":"preseed_autoinstall_clevis_tang_wrapper","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":121,"name":"Preseed + Autoinstall cloud-init user data","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":59,"name":"Preseed + default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":37,"name":"Preseed + default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":46,"name":"Preseed + default iPXE","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":47,"name":"Preseed + default iPXE Autoinstall","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":9,"name":"Preseed + default PXEGrub2","template_kind_id":4,"template_kind_name":"PXEGrub2","inherited":false},{"id":10,"name":"Preseed + default PXEGrub2 Autoinstall","template_kind_id":4,"template_kind_name":"PXEGrub2","inherited":false},{"id":19,"name":"Preseed + default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":20,"name":"Preseed + default PXELinux Autoinstall","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":122,"name":"Preseed + default user data","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":95,"name":"preseed_kernel_options","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":96,"name":"preseed_kernel_options_autoinstall","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":97,"name":"preseed_netplan_generic_interface","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":98,"name":"preseed_netplan_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":99,"name":"preseed_networking_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":100,"name":"puppet.conf","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":102,"name":"puppetlabs_repo","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":101,"name":"puppet_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":103,"name":"pxegrub2_chainload","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":11,"name":"PXEGrub2 + default local boot","template_kind_id":4,"template_kind_name":"PXEGrub2","inherited":false},{"id":104,"name":"pxegrub2_discovery","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":12,"name":"PXEGrub2 global default","template_kind_id":4,"template_kind_name":"PXEGrub2","inherited":false},{"id":105,"name":"pxegrub2_mac","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":106,"name":"pxegrub_chainload","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":5,"name":"PXEGrub default local boot","template_kind_id":3,"template_kind_name":"PXEGrub","inherited":false},{"id":107,"name":"pxegrub_discovery","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":6,"name":"PXEGrub - global default","template_kind_id":3,"template_kind_name":"PXEGrub","inherited":false},{"id":20,"name":"PXELinux - chain iPXE","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":21,"name":"PXELinux - chain iPXE UNDI","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":108,"name":"pxelinux_chainload","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":22,"name":"PXELinux - default local boot","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":23,"name":"PXELinux - default memdisk","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":109,"name":"pxelinux_discovery","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":24,"name":"PXELinux - global default","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":87,"name":"rancheros_cloudconfig","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":58,"name":"RancherOS - provision","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":25,"name":"RancherOS - PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":89,"name":"redhat_register","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":62,"name":"remote_execution_pull_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":96,"name":"remote_execution_ssh_keys","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":66,"name":"saltstack_minion","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":110,"name":"saltstack_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":111,"name":"schedule_reboot","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":118,"name":"UserData - default","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":119,"name":"UserData - open-vm-tools","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":26,"name":"WAIK - default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":37,"name":"Windows - default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":46,"name":"Windows - default iPXE","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":59,"name":"Windows - default provision","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":27,"name":"Windows - default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":112,"name":"Windows - network","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":64,"name":"Windows - peSetup.cmd","template_kind_id":8,"template_kind_name":"script","inherited":false},{"id":60,"name":"XenServer - default answerfile","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":38,"name":"XenServer - default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":28,"name":"XenServer - default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":113,"name":"yum_proxy","template_kind_id":null,"template_kind_name":null,"inherited":false}],"domains":[],"realms":[],"hostgroups":[],"organizations":[],"hosts_count":0,"parameters":[],"deprecations":{"environments":"Environments + global default","template_kind_id":3,"template_kind_name":"PXEGrub","inherited":false},{"id":21,"name":"PXELinux + chain iPXE","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":22,"name":"PXELinux + chain iPXE UNDI","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":108,"name":"pxelinux_chainload","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":23,"name":"PXELinux + default local boot","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":24,"name":"PXELinux + default memdisk","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":109,"name":"pxelinux_discovery","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":25,"name":"PXELinux + global default","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":110,"name":"rancheros_cloudconfig","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":60,"name":"RancherOS + provision","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":26,"name":"RancherOS + PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":111,"name":"redhat_register","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":64,"name":"remote_execution_pull_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":112,"name":"remote_execution_ssh_keys","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":113,"name":"saltstack_minion","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":114,"name":"saltstack_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":115,"name":"schedule_reboot","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":116,"name":"subscription_manager_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":123,"name":"UserData + default","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":124,"name":"UserData + open-vm-tools","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":27,"name":"WAIK + default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":38,"name":"Windows + default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":48,"name":"Windows + default iPXE","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":49,"name":"Windows + default iPXE httpboot","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":61,"name":"Windows + default provision","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":28,"name":"Windows + default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":125,"name":"Windows + default user data","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":117,"name":"Windows + network","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":66,"name":"Windows + peSetup.cmd","template_kind_id":8,"template_kind_name":"script","inherited":false},{"id":62,"name":"XenServer + default answerfile","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":39,"name":"XenServer + default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":29,"name":"XenServer + default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":118,"name":"yum_proxy","template_kind_id":null,"template_kind_name":null,"inherited":false}],"domains":[],"realms":[],"hostgroups":[],"organizations":[],"hosts_count":0,"parameters":[],"deprecations":{"environments":"Environments got deprecated from this endpoint."}}' headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive + Content-Length: + - '19115' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -251,13 +263,11 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.4.0 + - 3.11.0-develop Keep-Alive: - timeout=15, max=98 Strict-Transport-Security: - max-age=631139040; includeSubdomains - Transfer-Encoding: - - chunked X-Content-Type-Options: - nosniff X-Download-Options: diff --git a/tests/test_playbooks/fixtures/location-18.yml b/tests/test_playbooks/fixtures/location-18.yml index ef57f513..eef30b2e 100644 --- a/tests/test_playbooks/fixtures/location-18.yml +++ b/tests/test_playbooks/fixtures/location-18.yml @@ -14,12 +14,14 @@ interactions: uri: https://foreman.example.org/api/status response: body: - string: '{"result":"ok","status":200,"version":"3.4.0","api_version":2}' + string: '{"result":"ok","status":200,"version":"3.11.0-develop","api_version":2}' headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive + Content-Length: + - '71' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -33,13 +35,11 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.4.0 + - 3.11.0-develop Keep-Alive: - timeout=15, max=100 Strict-Transport-Security: - max-age=631139040; includeSubdomains - Transfer-Encoding: - - chunked X-Content-Type-Options: - nosniff X-Download-Options: @@ -70,14 +70,16 @@ interactions: body: string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": 4294967296,\n \"search\": \"title=\\\"Test Location\\\"\",\n \"sort\": {\n - \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"ancestry\":null,\"parent_id\":null,\"parent_name\":null,\"created_at\":\"2022-11-08 - 09:29:18 UTC\",\"updated_at\":\"2022-11-08 09:29:18 UTC\",\"id\":8,\"name\":\"Test + \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"ancestry\":null,\"parent_id\":null,\"parent_name\":null,\"created_at\":\"2024-07-25 + 12:00:20 UTC\",\"updated_at\":\"2024-07-25 12:00:20 UTC\",\"id\":11,\"name\":\"Test Location\",\"title\":\"Test Location\",\"description\":null}]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive + Content-Length: + - '385' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -91,13 +93,11 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.4.0 + - 3.11.0-develop Keep-Alive: - timeout=15, max=99 Strict-Transport-Security: - max-age=631139040; includeSubdomains - Transfer-Encoding: - - chunked X-Content-Type-Options: - nosniff X-Download-Options: @@ -123,121 +123,133 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/api/locations/8 + uri: https://foreman.example.org/api/locations/11 response: body: - string: '{"select_all_types":[],"description":null,"created_at":"2022-11-08 - 09:29:18 UTC","updated_at":"2022-11-08 09:29:18 UTC","ancestry":null,"parent_id":null,"parent_name":null,"id":8,"name":"Test - Location","title":"Test Location","users":[],"smart_proxies":[],"subnets":[],"compute_resources":[],"media":[],"ptables":[{"description":null,"os_family":"Suse","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"AutoYaST entire - SCSI disk","id":120,"inherited":false},{"description":null,"os_family":"Suse","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"AutoYaST entire - virtual disk","id":121,"inherited":false},{"description":null,"os_family":"Suse","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"AutoYaST LVM","id":122,"inherited":false},{"description":null,"os_family":"Coreos","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"CoreOS default - fake","id":123,"inherited":false},{"description":null,"os_family":"Rancheros","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Empty","id":124,"inherited":false},{"description":null,"os_family":"Freebsd","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"FreeBSD default - fake","id":125,"inherited":false},{"description":null,"os_family":"Solaris","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Jumpstart default","id":126,"inherited":false},{"description":null,"os_family":"Solaris","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Jumpstart mirrored","id":127,"inherited":false},{"description":null,"os_family":"Junos","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Junos default - fake","id":128,"inherited":false},{"description":null,"os_family":"Redhat","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Kickstart custom","id":129,"inherited":false},{"description":null,"os_family":"Redhat","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Kickstart default","id":130,"inherited":false},{"description":null,"os_family":"Redhat","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Kickstart default - thin","id":131,"inherited":false},{"description":null,"os_family":"Redhat","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Kickstart dynamic","id":132,"inherited":false},{"description":null,"os_family":"NXOS","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"NX-OS default - fake","id":133,"inherited":false},{"description":null,"os_family":"Debian","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Preseed default","id":134,"inherited":false},{"description":"Preseed + string: '{"select_all_types":[],"description":null,"created_at":"2024-07-25 + 12:00:20 UTC","updated_at":"2024-07-25 12:00:20 UTC","ancestry":null,"parent_id":null,"parent_name":null,"id":11,"name":"Test + Location","title":"Test Location","users":[],"smart_proxies":[],"subnets":[],"compute_resources":[],"media":[],"ptables":[{"description":null,"os_family":"Suse","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"AutoYaST entire + SCSI disk","id":126,"inherited":false},{"description":null,"os_family":"Suse","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"AutoYaST entire + virtual disk","id":127,"inherited":false},{"description":null,"os_family":"Suse","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"AutoYaST LVM","id":128,"inherited":false},{"description":null,"os_family":"Coreos","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"CoreOS default + fake","id":129,"inherited":false},{"description":null,"os_family":"Rancheros","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"Empty","id":130,"inherited":false},{"description":null,"os_family":"Freebsd","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"FreeBSD default + fake","id":131,"inherited":false},{"description":null,"os_family":"Solaris","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"Jumpstart default","id":132,"inherited":false},{"description":null,"os_family":"Solaris","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"Jumpstart mirrored","id":133,"inherited":false},{"description":null,"os_family":"Junos","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"Junos default + fake","id":134,"inherited":false},{"description":null,"os_family":"Redhat","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"Kickstart custom","id":135,"inherited":false},{"description":null,"os_family":"Redhat","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"Kickstart default","id":136,"inherited":false},{"description":null,"os_family":"Redhat","created_at":"2024-04-22 + 11:15:26 UTC","updated_at":"2024-04-22 11:15:26 UTC","name":"Kickstart default + encrypted","id":152,"inherited":false},{"description":null,"os_family":"Redhat","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"Kickstart default + thin","id":137,"inherited":false},{"description":null,"os_family":"Redhat","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"Kickstart dynamic","id":138,"inherited":false},{"description":null,"os_family":"NXOS","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"NX-OS default + fake","id":139,"inherited":false},{"description":null,"os_family":"Debian","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"Preseed default","id":140,"inherited":false},{"description":"Preseed Autoinstall default storage snippet configures drives automatically\nwith - LVM. The snippet is automatically indented by 2 spaces. For reference:\nhttps://ubuntu.com/server/docs/install/autoinstall-reference","os_family":"Debian","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Preseed default - autoinstall","id":135,"inherited":false},{"description":null,"os_family":"Debian","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Preseed default - LVM","id":136,"inherited":false},{"description":null,"os_family":"Windows","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Windows default - GPT EFI partition table","id":138,"inherited":false},{"description":null,"os_family":"Windows","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Windows default - partition table","id":137,"inherited":false},{"description":null,"os_family":"Xenserver","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"XenServer default","id":139,"inherited":false}],"provisioning_templates":[{"id":47,"name":"Alterator - default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":31,"name":"Alterator - default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":12,"name":"Alterator - default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":65,"name":"alterator_pkglist","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":67,"name":"ansible_provisioning_callback","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":68,"name":"ansible_tower_callback_script","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":69,"name":"ansible_tower_callback_service","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":48,"name":"Atomic - Kickstart default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":49,"name":"AutoYaST - default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":40,"name":"AutoYaST + LVM. The snippet is automatically indented by 2 spaces. For reference:\nhttps://ubuntu.com/server/docs/install/autoinstall-reference","os_family":"Debian","created_at":"2024-04-15 + 09:11:37 UTC","updated_at":"2024-04-15 09:11:37 UTC","name":"Preseed default + autoinstall","id":141,"inherited":false},{"description":"Preseed Autoinstall + default storage snippet configures drives automatically\nwith LVM and disk + encryption.\nRequires Ubuntu >= 22.04.3.\nThe snippet is automatically indented + by 2 spaces. For reference:\nhttps://ubuntu.com/server/docs/install/autoinstall-reference","os_family":"Debian","created_at":"2024-04-22 + 11:15:26 UTC","updated_at":"2024-04-22 11:15:26 UTC","name":"Preseed default + autoinstall encrypted","id":153,"inherited":false},{"description":null,"os_family":"Debian","created_at":"2024-04-15 + 09:11:37 UTC","updated_at":"2024-04-15 09:11:37 UTC","name":"Preseed default + LVM","id":142,"inherited":false},{"description":null,"os_family":"Windows","created_at":"2024-04-15 + 09:11:37 UTC","updated_at":"2024-04-15 09:11:37 UTC","name":"Windows default + GPT EFI partition table","id":144,"inherited":false},{"description":null,"os_family":"Windows","created_at":"2024-04-15 + 09:11:37 UTC","updated_at":"2024-04-15 09:11:37 UTC","name":"Windows default + partition table","id":143,"inherited":false},{"description":null,"os_family":"Xenserver","created_at":"2024-04-15 + 09:11:37 UTC","updated_at":"2024-04-15 09:11:37 UTC","name":"XenServer default","id":145,"inherited":false}],"provisioning_templates":[{"id":50,"name":"Alterator + default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":32,"name":"Alterator + default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":13,"name":"Alterator + default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":67,"name":"alterator_pkglist","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":68,"name":"ansible_provisioning_callback","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":69,"name":"ansible_tower_callback_script","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":70,"name":"ansible_tower_callback_service","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":51,"name":"AutoYaST + default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":41,"name":"AutoYaST default iPXE","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":2,"name":"AutoYaST default PXEGrub","template_kind_id":3,"template_kind_name":"PXEGrub","inherited":false},{"id":7,"name":"AutoYaST - default PXEGrub2","template_kind_id":4,"template_kind_name":"PXEGrub2","inherited":false},{"id":13,"name":"AutoYaST - default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":114,"name":"AutoYaST - default user data","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":50,"name":"AutoYaST - SLES default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":70,"name":"blacklist_kernel_modules","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":71,"name":"bmc_nic_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":72,"name":"built","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":73,"name":"chef_client","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":30,"name":"CloudInit - default","template_kind_id":12,"template_kind_name":"cloud-init","inherited":false},{"id":74,"name":"coreos_cloudconfig","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":51,"name":"CoreOS - provision","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":14,"name":"CoreOS - PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":75,"name":"create_users","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":76,"name":"csr_attributes.yaml","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":77,"name":"efibootmgr_netboot","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":78,"name":"eject_cdrom","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":79,"name":"epel","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":80,"name":"fips_packages","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":81,"name":"fix_hosts","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":32,"name":"FreeBSD - (mfsBSD) finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":52,"name":"FreeBSD - (mfsBSD) provision","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":15,"name":"FreeBSD - (mfsBSD) PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":82,"name":"freeipa_register","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":61,"name":"Global - Registration","template_kind_id":13,"template_kind_name":"registration","inherited":false},{"id":63,"name":"Grubby - default","template_kind_id":8,"template_kind_name":"script","inherited":false},{"id":83,"name":"http_proxy","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":84,"name":"insights","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":41,"name":"iPXE - default local boot","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":42,"name":"iPXE - global default","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":43,"name":"iPXE - intermediate script","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":53,"name":"Jumpstart - default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":33,"name":"Jumpstart + default PXEGrub2","template_kind_id":4,"template_kind_name":"PXEGrub2","inherited":false},{"id":14,"name":"AutoYaST + default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":119,"name":"AutoYaST + default user data","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":52,"name":"AutoYaST + SLES default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":71,"name":"blacklist_kernel_modules","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":72,"name":"bmc_nic_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":73,"name":"built","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":74,"name":"chef_client","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":31,"name":"CloudInit + default","template_kind_id":12,"template_kind_name":"cloud-init","inherited":false},{"id":75,"name":"coreos_cloudconfig","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":53,"name":"CoreOS + provision","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":15,"name":"CoreOS + PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":76,"name":"create_users","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":77,"name":"csr_attributes.yaml","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":149,"name":"disk_enc_clevis_tang","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":78,"name":"efibootmgr_netboot","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":79,"name":"eject_cdrom","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":80,"name":"epel","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":81,"name":"fips_packages","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":82,"name":"fix_hosts","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":33,"name":"FreeBSD + (mfsBSD) finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":54,"name":"FreeBSD + (mfsBSD) provision","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":16,"name":"FreeBSD + (mfsBSD) PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":83,"name":"freeipa_register","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":63,"name":"Global + Registration","template_kind_id":13,"template_kind_name":"registration","inherited":false},{"id":65,"name":"Grubby + default","template_kind_id":8,"template_kind_name":"script","inherited":false},{"id":84,"name":"http_proxy","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":85,"name":"insights","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":42,"name":"iPXE + default local boot","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":43,"name":"iPXE + global default","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":44,"name":"iPXE + intermediate script","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":55,"name":"Jumpstart + default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":34,"name":"Jumpstart default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":3,"name":"Jumpstart - default PXEGrub","template_kind_id":3,"template_kind_name":"PXEGrub","inherited":false},{"id":34,"name":"Junos - default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":54,"name":"Junos - default SLAX","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":29,"name":"Junos - default ZTP config","template_kind_id":10,"template_kind_name":"ZTP","inherited":false},{"id":55,"name":"Kickstart - default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":35,"name":"Kickstart - default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":44,"name":"Kickstart + default PXEGrub","template_kind_id":3,"template_kind_name":"PXEGrub","inherited":false},{"id":35,"name":"Junos + default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":56,"name":"Junos + default SLAX","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":30,"name":"Junos + default ZTP config","template_kind_id":10,"template_kind_name":"ZTP","inherited":false},{"id":57,"name":"Kickstart + default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":36,"name":"Kickstart + default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":45,"name":"Kickstart default iPXE","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":4,"name":"Kickstart default PXEGrub","template_kind_id":3,"template_kind_name":"PXEGrub","inherited":false},{"id":8,"name":"Kickstart - default PXEGrub2","template_kind_id":4,"template_kind_name":"PXEGrub2","inherited":false},{"id":16,"name":"Kickstart - default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":115,"name":"Kickstart - default user data","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":86,"name":"kickstart_ifcfg_bonded_interface","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":85,"name":"kickstart_ifcfg_bond_interface","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":88,"name":"kickstart_ifcfg_generic_interface","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":90,"name":"kickstart_ifcfg_get_identifier_names","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":91,"name":"kickstart_kernel_options","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":92,"name":"kickstart_networking_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":56,"name":"Kickstart - oVirt-RHVH","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":17,"name":"Kickstart - oVirt-RHVH PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":39,"name":"Linux + default PXEGrub2","template_kind_id":4,"template_kind_name":"PXEGrub2","inherited":false},{"id":17,"name":"Kickstart + default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":120,"name":"Kickstart + default user data","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":87,"name":"kickstart_ifcfg_bonded_interface","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":86,"name":"kickstart_ifcfg_bond_interface","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":88,"name":"kickstart_ifcfg_generic_interface","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":89,"name":"kickstart_ifcfg_get_identifier_names","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":90,"name":"kickstart_kernel_options","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":91,"name":"kickstart_networking_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":150,"name":"kickstart_network_interface","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":58,"name":"Kickstart + oVirt-RHVH","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":18,"name":"Kickstart + oVirt-RHVH PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":92,"name":"kickstart_rhsm","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":40,"name":"Linux host_init_config default","template_kind_id":1,"template_kind_name":"host_init_config","inherited":false},{"id":93,"name":"ntp","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":1,"name":"NX-OS - default POAP setup","template_kind_id":11,"template_kind_name":"POAP","inherited":false},{"id":94,"name":"pkg_manager","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":116,"name":"Preseed - Autoinstall cloud-init user data","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":57,"name":"Preseed - default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":36,"name":"Preseed - default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":45,"name":"Preseed - default iPXE","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":9,"name":"Preseed - default PXEGrub2","template_kind_id":4,"template_kind_name":"PXEGrub2","inherited":false},{"id":18,"name":"Preseed - default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":19,"name":"Preseed - default PXELinux Autoinstall","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":117,"name":"Preseed - default user data","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":95,"name":"preseed_kernel_options","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":97,"name":"preseed_netplan_generic_interface","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":98,"name":"preseed_netplan_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":99,"name":"preseed_networking_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":100,"name":"puppet.conf","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":102,"name":"puppetlabs_repo","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":101,"name":"puppet_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":103,"name":"pxegrub2_chainload","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":10,"name":"PXEGrub2 - default local boot","template_kind_id":4,"template_kind_name":"PXEGrub2","inherited":false},{"id":104,"name":"pxegrub2_discovery","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":11,"name":"PXEGrub2 + default POAP setup","template_kind_id":11,"template_kind_name":"POAP","inherited":false},{"id":94,"name":"pkg_manager","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":151,"name":"preseed_autoinstall_clevis_tang_wrapper","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":121,"name":"Preseed + Autoinstall cloud-init user data","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":59,"name":"Preseed + default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":37,"name":"Preseed + default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":46,"name":"Preseed + default iPXE","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":47,"name":"Preseed + default iPXE Autoinstall","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":9,"name":"Preseed + default PXEGrub2","template_kind_id":4,"template_kind_name":"PXEGrub2","inherited":false},{"id":10,"name":"Preseed + default PXEGrub2 Autoinstall","template_kind_id":4,"template_kind_name":"PXEGrub2","inherited":false},{"id":19,"name":"Preseed + default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":20,"name":"Preseed + default PXELinux Autoinstall","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":122,"name":"Preseed + default user data","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":95,"name":"preseed_kernel_options","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":96,"name":"preseed_kernel_options_autoinstall","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":97,"name":"preseed_netplan_generic_interface","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":98,"name":"preseed_netplan_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":99,"name":"preseed_networking_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":100,"name":"puppet.conf","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":102,"name":"puppetlabs_repo","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":101,"name":"puppet_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":103,"name":"pxegrub2_chainload","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":11,"name":"PXEGrub2 + default local boot","template_kind_id":4,"template_kind_name":"PXEGrub2","inherited":false},{"id":104,"name":"pxegrub2_discovery","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":12,"name":"PXEGrub2 global default","template_kind_id":4,"template_kind_name":"PXEGrub2","inherited":false},{"id":105,"name":"pxegrub2_mac","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":106,"name":"pxegrub_chainload","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":5,"name":"PXEGrub default local boot","template_kind_id":3,"template_kind_name":"PXEGrub","inherited":false},{"id":107,"name":"pxegrub_discovery","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":6,"name":"PXEGrub - global default","template_kind_id":3,"template_kind_name":"PXEGrub","inherited":false},{"id":20,"name":"PXELinux - chain iPXE","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":21,"name":"PXELinux - chain iPXE UNDI","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":108,"name":"pxelinux_chainload","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":22,"name":"PXELinux - default local boot","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":23,"name":"PXELinux - default memdisk","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":109,"name":"pxelinux_discovery","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":24,"name":"PXELinux - global default","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":87,"name":"rancheros_cloudconfig","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":58,"name":"RancherOS - provision","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":25,"name":"RancherOS - PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":89,"name":"redhat_register","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":62,"name":"remote_execution_pull_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":96,"name":"remote_execution_ssh_keys","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":66,"name":"saltstack_minion","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":110,"name":"saltstack_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":111,"name":"schedule_reboot","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":118,"name":"UserData - default","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":119,"name":"UserData - open-vm-tools","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":26,"name":"WAIK - default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":37,"name":"Windows - default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":46,"name":"Windows - default iPXE","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":59,"name":"Windows - default provision","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":27,"name":"Windows - default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":112,"name":"Windows - network","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":64,"name":"Windows - peSetup.cmd","template_kind_id":8,"template_kind_name":"script","inherited":false},{"id":60,"name":"XenServer - default answerfile","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":38,"name":"XenServer - default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":28,"name":"XenServer - default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":113,"name":"yum_proxy","template_kind_id":null,"template_kind_name":null,"inherited":false}],"domains":[],"realms":[],"hostgroups":[],"organizations":[],"hosts_count":0,"parameters":[],"deprecations":{"environments":"Environments + global default","template_kind_id":3,"template_kind_name":"PXEGrub","inherited":false},{"id":21,"name":"PXELinux + chain iPXE","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":22,"name":"PXELinux + chain iPXE UNDI","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":108,"name":"pxelinux_chainload","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":23,"name":"PXELinux + default local boot","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":24,"name":"PXELinux + default memdisk","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":109,"name":"pxelinux_discovery","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":25,"name":"PXELinux + global default","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":110,"name":"rancheros_cloudconfig","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":60,"name":"RancherOS + provision","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":26,"name":"RancherOS + PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":111,"name":"redhat_register","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":64,"name":"remote_execution_pull_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":112,"name":"remote_execution_ssh_keys","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":113,"name":"saltstack_minion","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":114,"name":"saltstack_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":115,"name":"schedule_reboot","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":116,"name":"subscription_manager_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":123,"name":"UserData + default","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":124,"name":"UserData + open-vm-tools","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":27,"name":"WAIK + default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":38,"name":"Windows + default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":48,"name":"Windows + default iPXE","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":49,"name":"Windows + default iPXE httpboot","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":61,"name":"Windows + default provision","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":28,"name":"Windows + default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":125,"name":"Windows + default user data","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":117,"name":"Windows + network","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":66,"name":"Windows + peSetup.cmd","template_kind_id":8,"template_kind_name":"script","inherited":false},{"id":62,"name":"XenServer + default answerfile","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":39,"name":"XenServer + default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":29,"name":"XenServer + default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":118,"name":"yum_proxy","template_kind_id":null,"template_kind_name":null,"inherited":false}],"domains":[],"realms":[],"hostgroups":[],"organizations":[],"hosts_count":0,"parameters":[],"deprecations":{"environments":"Environments got deprecated from this endpoint."}}' headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive + Content-Length: + - '19115' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -251,13 +263,11 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.4.0 + - 3.11.0-develop Keep-Alive: - timeout=15, max=98 Strict-Transport-Security: - max-age=631139040; includeSubdomains - Transfer-Encoding: - - chunked X-Content-Type-Options: - nosniff X-Download-Options: @@ -283,7 +293,7 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/api/locations/8/parameters?per_page=4294967296 + uri: https://foreman.example.org/api/locations/11/parameters?per_page=4294967296 response: body: string: "{\n \"total\": 0,\n \"subtotal\": 0,\n \"page\": 1,\n \"per_page\": @@ -294,6 +304,8 @@ interactions: - max-age=0, private, must-revalidate Connection: - Keep-Alive + Content-Length: + - '159' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -303,17 +315,15 @@ interactions: Foreman_api_version: - '2' Foreman_current_location: - - 8; Test Location + - 11; Test Location Foreman_current_organization: - ; ANY Foreman_version: - - 3.4.0 + - 3.11.0-develop Keep-Alive: - timeout=15, max=97 Strict-Transport-Security: - max-age=631139040; includeSubdomains - Transfer-Encoding: - - chunked X-Content-Type-Options: - nosniff X-Download-Options: @@ -344,17 +354,19 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: POST - uri: https://foreman.example.org/api/locations/8/parameters + uri: https://foreman.example.org/api/locations/11/parameters response: body: - string: '{"priority":20,"created_at":"2022-11-08 09:29:19 UTC","updated_at":"2022-11-08 - 09:29:19 UTC","id":4,"name":"my_param","parameter_type":"string","value":"my + string: '{"priority":20,"created_at":"2024-07-25 12:00:24 UTC","updated_at":"2024-07-25 + 12:00:24 UTC","id":4,"name":"my_param","parameter_type":"string","associated_type":"location","hidden_value?":false,"value":"my value"}' headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive + Content-Length: + - '214' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -364,17 +376,15 @@ interactions: Foreman_api_version: - '2' Foreman_current_location: - - 8; Test Location + - 11; Test Location Foreman_current_organization: - ; ANY Foreman_version: - - 3.4.0 + - 3.11.0-develop Keep-Alive: - timeout=15, max=96 Strict-Transport-Security: - max-age=631139040; includeSubdomains - Transfer-Encoding: - - chunked X-Content-Type-Options: - nosniff X-Download-Options: @@ -405,17 +415,19 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: POST - uri: https://foreman.example.org/api/locations/8/parameters + uri: https://foreman.example.org/api/locations/11/parameters response: body: - string: '{"priority":20,"created_at":"2022-11-08 09:29:19 UTC","updated_at":"2022-11-08 - 09:29:19 UTC","id":5,"name":"my_param2","parameter_type":"string","value":"my + string: '{"priority":20,"created_at":"2024-07-25 12:00:24 UTC","updated_at":"2024-07-25 + 12:00:24 UTC","id":5,"name":"my_param2","parameter_type":"string","associated_type":"location","hidden_value?":false,"value":"my other value"}' headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive + Content-Length: + - '221' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -425,17 +437,15 @@ interactions: Foreman_api_version: - '2' Foreman_current_location: - - 8; Test Location + - 11; Test Location Foreman_current_organization: - ; ANY Foreman_version: - - 3.4.0 + - 3.11.0-develop Keep-Alive: - timeout=15, max=95 Strict-Transport-Security: - max-age=631139040; includeSubdomains - Transfer-Encoding: - - chunked X-Content-Type-Options: - nosniff X-Download-Options: @@ -466,16 +476,18 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: POST - uri: https://foreman.example.org/api/locations/8/parameters + uri: https://foreman.example.org/api/locations/11/parameters response: body: - string: '{"priority":20,"created_at":"2022-11-08 09:29:19 UTC","updated_at":"2022-11-08 - 09:29:19 UTC","id":6,"name":"my_param3","parameter_type":"array","value":["array","value"]}' + string: '{"priority":20,"created_at":"2024-07-25 12:00:24 UTC","updated_at":"2024-07-25 + 12:00:24 UTC","id":6,"name":"my_param3","parameter_type":"array","associated_type":"location","hidden_value?":false,"value":["array","value"]}' headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive + Content-Length: + - '221' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -485,17 +497,15 @@ interactions: Foreman_api_version: - '2' Foreman_current_location: - - 8; Test Location + - 11; Test Location Foreman_current_organization: - ; ANY Foreman_version: - - 3.4.0 + - 3.11.0-develop Keep-Alive: - timeout=15, max=94 Strict-Transport-Security: - max-age=631139040; includeSubdomains - Transfer-Encoding: - - chunked X-Content-Type-Options: - nosniff X-Download-Options: diff --git a/tests/test_playbooks/fixtures/location-19.yml b/tests/test_playbooks/fixtures/location-19.yml index 5564a13d..fbcd2c3a 100644 --- a/tests/test_playbooks/fixtures/location-19.yml +++ b/tests/test_playbooks/fixtures/location-19.yml @@ -14,12 +14,14 @@ interactions: uri: https://foreman.example.org/api/status response: body: - string: '{"result":"ok","status":200,"version":"3.4.0","api_version":2}' + string: '{"result":"ok","status":200,"version":"3.11.0-develop","api_version":2}' headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive + Content-Length: + - '71' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -33,13 +35,11 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.4.0 + - 3.11.0-develop Keep-Alive: - timeout=15, max=100 Strict-Transport-Security: - max-age=631139040; includeSubdomains - Transfer-Encoding: - - chunked X-Content-Type-Options: - nosniff X-Download-Options: @@ -70,14 +70,16 @@ interactions: body: string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": 4294967296,\n \"search\": \"title=\\\"Test Location\\\"\",\n \"sort\": {\n - \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"ancestry\":null,\"parent_id\":null,\"parent_name\":null,\"created_at\":\"2022-11-08 - 09:29:18 UTC\",\"updated_at\":\"2022-11-08 09:29:18 UTC\",\"id\":8,\"name\":\"Test + \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"ancestry\":null,\"parent_id\":null,\"parent_name\":null,\"created_at\":\"2024-07-25 + 12:00:20 UTC\",\"updated_at\":\"2024-07-25 12:00:20 UTC\",\"id\":11,\"name\":\"Test Location\",\"title\":\"Test Location\",\"description\":null}]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive + Content-Length: + - '385' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -91,13 +93,11 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.4.0 + - 3.11.0-develop Keep-Alive: - timeout=15, max=99 Strict-Transport-Security: - max-age=631139040; includeSubdomains - Transfer-Encoding: - - chunked X-Content-Type-Options: - nosniff X-Download-Options: @@ -123,126 +123,138 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/api/locations/8 + uri: https://foreman.example.org/api/locations/11 response: body: - string: '{"select_all_types":[],"description":null,"created_at":"2022-11-08 - 09:29:18 UTC","updated_at":"2022-11-08 09:29:18 UTC","ancestry":null,"parent_id":null,"parent_name":null,"id":8,"name":"Test - Location","title":"Test Location","users":[],"smart_proxies":[],"subnets":[],"compute_resources":[],"media":[],"ptables":[{"description":null,"os_family":"Suse","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"AutoYaST entire - SCSI disk","id":120,"inherited":false},{"description":null,"os_family":"Suse","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"AutoYaST entire - virtual disk","id":121,"inherited":false},{"description":null,"os_family":"Suse","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"AutoYaST LVM","id":122,"inherited":false},{"description":null,"os_family":"Coreos","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"CoreOS default - fake","id":123,"inherited":false},{"description":null,"os_family":"Rancheros","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Empty","id":124,"inherited":false},{"description":null,"os_family":"Freebsd","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"FreeBSD default - fake","id":125,"inherited":false},{"description":null,"os_family":"Solaris","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Jumpstart default","id":126,"inherited":false},{"description":null,"os_family":"Solaris","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Jumpstart mirrored","id":127,"inherited":false},{"description":null,"os_family":"Junos","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Junos default - fake","id":128,"inherited":false},{"description":null,"os_family":"Redhat","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Kickstart custom","id":129,"inherited":false},{"description":null,"os_family":"Redhat","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Kickstart default","id":130,"inherited":false},{"description":null,"os_family":"Redhat","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Kickstart default - thin","id":131,"inherited":false},{"description":null,"os_family":"Redhat","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Kickstart dynamic","id":132,"inherited":false},{"description":null,"os_family":"NXOS","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"NX-OS default - fake","id":133,"inherited":false},{"description":null,"os_family":"Debian","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Preseed default","id":134,"inherited":false},{"description":"Preseed + string: '{"select_all_types":[],"description":null,"created_at":"2024-07-25 + 12:00:20 UTC","updated_at":"2024-07-25 12:00:20 UTC","ancestry":null,"parent_id":null,"parent_name":null,"id":11,"name":"Test + Location","title":"Test Location","users":[],"smart_proxies":[],"subnets":[],"compute_resources":[],"media":[],"ptables":[{"description":null,"os_family":"Suse","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"AutoYaST entire + SCSI disk","id":126,"inherited":false},{"description":null,"os_family":"Suse","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"AutoYaST entire + virtual disk","id":127,"inherited":false},{"description":null,"os_family":"Suse","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"AutoYaST LVM","id":128,"inherited":false},{"description":null,"os_family":"Coreos","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"CoreOS default + fake","id":129,"inherited":false},{"description":null,"os_family":"Rancheros","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"Empty","id":130,"inherited":false},{"description":null,"os_family":"Freebsd","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"FreeBSD default + fake","id":131,"inherited":false},{"description":null,"os_family":"Solaris","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"Jumpstart default","id":132,"inherited":false},{"description":null,"os_family":"Solaris","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"Jumpstart mirrored","id":133,"inherited":false},{"description":null,"os_family":"Junos","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"Junos default + fake","id":134,"inherited":false},{"description":null,"os_family":"Redhat","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"Kickstart custom","id":135,"inherited":false},{"description":null,"os_family":"Redhat","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"Kickstart default","id":136,"inherited":false},{"description":null,"os_family":"Redhat","created_at":"2024-04-22 + 11:15:26 UTC","updated_at":"2024-04-22 11:15:26 UTC","name":"Kickstart default + encrypted","id":152,"inherited":false},{"description":null,"os_family":"Redhat","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"Kickstart default + thin","id":137,"inherited":false},{"description":null,"os_family":"Redhat","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"Kickstart dynamic","id":138,"inherited":false},{"description":null,"os_family":"NXOS","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"NX-OS default + fake","id":139,"inherited":false},{"description":null,"os_family":"Debian","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"Preseed default","id":140,"inherited":false},{"description":"Preseed Autoinstall default storage snippet configures drives automatically\nwith - LVM. The snippet is automatically indented by 2 spaces. For reference:\nhttps://ubuntu.com/server/docs/install/autoinstall-reference","os_family":"Debian","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Preseed default - autoinstall","id":135,"inherited":false},{"description":null,"os_family":"Debian","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Preseed default - LVM","id":136,"inherited":false},{"description":null,"os_family":"Windows","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Windows default - GPT EFI partition table","id":138,"inherited":false},{"description":null,"os_family":"Windows","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Windows default - partition table","id":137,"inherited":false},{"description":null,"os_family":"Xenserver","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"XenServer default","id":139,"inherited":false}],"provisioning_templates":[{"id":47,"name":"Alterator - default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":31,"name":"Alterator - default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":12,"name":"Alterator - default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":65,"name":"alterator_pkglist","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":67,"name":"ansible_provisioning_callback","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":68,"name":"ansible_tower_callback_script","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":69,"name":"ansible_tower_callback_service","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":48,"name":"Atomic - Kickstart default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":49,"name":"AutoYaST - default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":40,"name":"AutoYaST + LVM. The snippet is automatically indented by 2 spaces. For reference:\nhttps://ubuntu.com/server/docs/install/autoinstall-reference","os_family":"Debian","created_at":"2024-04-15 + 09:11:37 UTC","updated_at":"2024-04-15 09:11:37 UTC","name":"Preseed default + autoinstall","id":141,"inherited":false},{"description":"Preseed Autoinstall + default storage snippet configures drives automatically\nwith LVM and disk + encryption.\nRequires Ubuntu >= 22.04.3.\nThe snippet is automatically indented + by 2 spaces. For reference:\nhttps://ubuntu.com/server/docs/install/autoinstall-reference","os_family":"Debian","created_at":"2024-04-22 + 11:15:26 UTC","updated_at":"2024-04-22 11:15:26 UTC","name":"Preseed default + autoinstall encrypted","id":153,"inherited":false},{"description":null,"os_family":"Debian","created_at":"2024-04-15 + 09:11:37 UTC","updated_at":"2024-04-15 09:11:37 UTC","name":"Preseed default + LVM","id":142,"inherited":false},{"description":null,"os_family":"Windows","created_at":"2024-04-15 + 09:11:37 UTC","updated_at":"2024-04-15 09:11:37 UTC","name":"Windows default + GPT EFI partition table","id":144,"inherited":false},{"description":null,"os_family":"Windows","created_at":"2024-04-15 + 09:11:37 UTC","updated_at":"2024-04-15 09:11:37 UTC","name":"Windows default + partition table","id":143,"inherited":false},{"description":null,"os_family":"Xenserver","created_at":"2024-04-15 + 09:11:37 UTC","updated_at":"2024-04-15 09:11:37 UTC","name":"XenServer default","id":145,"inherited":false}],"provisioning_templates":[{"id":50,"name":"Alterator + default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":32,"name":"Alterator + default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":13,"name":"Alterator + default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":67,"name":"alterator_pkglist","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":68,"name":"ansible_provisioning_callback","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":69,"name":"ansible_tower_callback_script","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":70,"name":"ansible_tower_callback_service","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":51,"name":"AutoYaST + default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":41,"name":"AutoYaST default iPXE","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":2,"name":"AutoYaST default PXEGrub","template_kind_id":3,"template_kind_name":"PXEGrub","inherited":false},{"id":7,"name":"AutoYaST - default PXEGrub2","template_kind_id":4,"template_kind_name":"PXEGrub2","inherited":false},{"id":13,"name":"AutoYaST - default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":114,"name":"AutoYaST - default user data","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":50,"name":"AutoYaST - SLES default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":70,"name":"blacklist_kernel_modules","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":71,"name":"bmc_nic_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":72,"name":"built","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":73,"name":"chef_client","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":30,"name":"CloudInit - default","template_kind_id":12,"template_kind_name":"cloud-init","inherited":false},{"id":74,"name":"coreos_cloudconfig","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":51,"name":"CoreOS - provision","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":14,"name":"CoreOS - PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":75,"name":"create_users","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":76,"name":"csr_attributes.yaml","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":77,"name":"efibootmgr_netboot","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":78,"name":"eject_cdrom","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":79,"name":"epel","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":80,"name":"fips_packages","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":81,"name":"fix_hosts","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":32,"name":"FreeBSD - (mfsBSD) finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":52,"name":"FreeBSD - (mfsBSD) provision","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":15,"name":"FreeBSD - (mfsBSD) PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":82,"name":"freeipa_register","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":61,"name":"Global - Registration","template_kind_id":13,"template_kind_name":"registration","inherited":false},{"id":63,"name":"Grubby - default","template_kind_id":8,"template_kind_name":"script","inherited":false},{"id":83,"name":"http_proxy","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":84,"name":"insights","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":41,"name":"iPXE - default local boot","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":42,"name":"iPXE - global default","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":43,"name":"iPXE - intermediate script","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":53,"name":"Jumpstart - default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":33,"name":"Jumpstart + default PXEGrub2","template_kind_id":4,"template_kind_name":"PXEGrub2","inherited":false},{"id":14,"name":"AutoYaST + default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":119,"name":"AutoYaST + default user data","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":52,"name":"AutoYaST + SLES default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":71,"name":"blacklist_kernel_modules","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":72,"name":"bmc_nic_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":73,"name":"built","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":74,"name":"chef_client","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":31,"name":"CloudInit + default","template_kind_id":12,"template_kind_name":"cloud-init","inherited":false},{"id":75,"name":"coreos_cloudconfig","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":53,"name":"CoreOS + provision","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":15,"name":"CoreOS + PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":76,"name":"create_users","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":77,"name":"csr_attributes.yaml","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":149,"name":"disk_enc_clevis_tang","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":78,"name":"efibootmgr_netboot","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":79,"name":"eject_cdrom","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":80,"name":"epel","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":81,"name":"fips_packages","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":82,"name":"fix_hosts","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":33,"name":"FreeBSD + (mfsBSD) finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":54,"name":"FreeBSD + (mfsBSD) provision","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":16,"name":"FreeBSD + (mfsBSD) PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":83,"name":"freeipa_register","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":63,"name":"Global + Registration","template_kind_id":13,"template_kind_name":"registration","inherited":false},{"id":65,"name":"Grubby + default","template_kind_id":8,"template_kind_name":"script","inherited":false},{"id":84,"name":"http_proxy","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":85,"name":"insights","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":42,"name":"iPXE + default local boot","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":43,"name":"iPXE + global default","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":44,"name":"iPXE + intermediate script","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":55,"name":"Jumpstart + default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":34,"name":"Jumpstart default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":3,"name":"Jumpstart - default PXEGrub","template_kind_id":3,"template_kind_name":"PXEGrub","inherited":false},{"id":34,"name":"Junos - default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":54,"name":"Junos - default SLAX","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":29,"name":"Junos - default ZTP config","template_kind_id":10,"template_kind_name":"ZTP","inherited":false},{"id":55,"name":"Kickstart - default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":35,"name":"Kickstart - default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":44,"name":"Kickstart + default PXEGrub","template_kind_id":3,"template_kind_name":"PXEGrub","inherited":false},{"id":35,"name":"Junos + default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":56,"name":"Junos + default SLAX","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":30,"name":"Junos + default ZTP config","template_kind_id":10,"template_kind_name":"ZTP","inherited":false},{"id":57,"name":"Kickstart + default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":36,"name":"Kickstart + default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":45,"name":"Kickstart default iPXE","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":4,"name":"Kickstart default PXEGrub","template_kind_id":3,"template_kind_name":"PXEGrub","inherited":false},{"id":8,"name":"Kickstart - default PXEGrub2","template_kind_id":4,"template_kind_name":"PXEGrub2","inherited":false},{"id":16,"name":"Kickstart - default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":115,"name":"Kickstart - default user data","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":86,"name":"kickstart_ifcfg_bonded_interface","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":85,"name":"kickstart_ifcfg_bond_interface","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":88,"name":"kickstart_ifcfg_generic_interface","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":90,"name":"kickstart_ifcfg_get_identifier_names","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":91,"name":"kickstart_kernel_options","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":92,"name":"kickstart_networking_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":56,"name":"Kickstart - oVirt-RHVH","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":17,"name":"Kickstart - oVirt-RHVH PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":39,"name":"Linux + default PXEGrub2","template_kind_id":4,"template_kind_name":"PXEGrub2","inherited":false},{"id":17,"name":"Kickstart + default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":120,"name":"Kickstart + default user data","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":87,"name":"kickstart_ifcfg_bonded_interface","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":86,"name":"kickstart_ifcfg_bond_interface","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":88,"name":"kickstart_ifcfg_generic_interface","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":89,"name":"kickstart_ifcfg_get_identifier_names","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":90,"name":"kickstart_kernel_options","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":91,"name":"kickstart_networking_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":150,"name":"kickstart_network_interface","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":58,"name":"Kickstart + oVirt-RHVH","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":18,"name":"Kickstart + oVirt-RHVH PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":92,"name":"kickstart_rhsm","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":40,"name":"Linux host_init_config default","template_kind_id":1,"template_kind_name":"host_init_config","inherited":false},{"id":93,"name":"ntp","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":1,"name":"NX-OS - default POAP setup","template_kind_id":11,"template_kind_name":"POAP","inherited":false},{"id":94,"name":"pkg_manager","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":116,"name":"Preseed - Autoinstall cloud-init user data","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":57,"name":"Preseed - default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":36,"name":"Preseed - default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":45,"name":"Preseed - default iPXE","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":9,"name":"Preseed - default PXEGrub2","template_kind_id":4,"template_kind_name":"PXEGrub2","inherited":false},{"id":18,"name":"Preseed - default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":19,"name":"Preseed - default PXELinux Autoinstall","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":117,"name":"Preseed - default user data","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":95,"name":"preseed_kernel_options","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":97,"name":"preseed_netplan_generic_interface","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":98,"name":"preseed_netplan_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":99,"name":"preseed_networking_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":100,"name":"puppet.conf","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":102,"name":"puppetlabs_repo","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":101,"name":"puppet_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":103,"name":"pxegrub2_chainload","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":10,"name":"PXEGrub2 - default local boot","template_kind_id":4,"template_kind_name":"PXEGrub2","inherited":false},{"id":104,"name":"pxegrub2_discovery","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":11,"name":"PXEGrub2 + default POAP setup","template_kind_id":11,"template_kind_name":"POAP","inherited":false},{"id":94,"name":"pkg_manager","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":151,"name":"preseed_autoinstall_clevis_tang_wrapper","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":121,"name":"Preseed + Autoinstall cloud-init user data","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":59,"name":"Preseed + default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":37,"name":"Preseed + default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":46,"name":"Preseed + default iPXE","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":47,"name":"Preseed + default iPXE Autoinstall","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":9,"name":"Preseed + default PXEGrub2","template_kind_id":4,"template_kind_name":"PXEGrub2","inherited":false},{"id":10,"name":"Preseed + default PXEGrub2 Autoinstall","template_kind_id":4,"template_kind_name":"PXEGrub2","inherited":false},{"id":19,"name":"Preseed + default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":20,"name":"Preseed + default PXELinux Autoinstall","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":122,"name":"Preseed + default user data","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":95,"name":"preseed_kernel_options","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":96,"name":"preseed_kernel_options_autoinstall","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":97,"name":"preseed_netplan_generic_interface","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":98,"name":"preseed_netplan_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":99,"name":"preseed_networking_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":100,"name":"puppet.conf","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":102,"name":"puppetlabs_repo","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":101,"name":"puppet_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":103,"name":"pxegrub2_chainload","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":11,"name":"PXEGrub2 + default local boot","template_kind_id":4,"template_kind_name":"PXEGrub2","inherited":false},{"id":104,"name":"pxegrub2_discovery","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":12,"name":"PXEGrub2 global default","template_kind_id":4,"template_kind_name":"PXEGrub2","inherited":false},{"id":105,"name":"pxegrub2_mac","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":106,"name":"pxegrub_chainload","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":5,"name":"PXEGrub default local boot","template_kind_id":3,"template_kind_name":"PXEGrub","inherited":false},{"id":107,"name":"pxegrub_discovery","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":6,"name":"PXEGrub - global default","template_kind_id":3,"template_kind_name":"PXEGrub","inherited":false},{"id":20,"name":"PXELinux - chain iPXE","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":21,"name":"PXELinux - chain iPXE UNDI","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":108,"name":"pxelinux_chainload","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":22,"name":"PXELinux - default local boot","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":23,"name":"PXELinux - default memdisk","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":109,"name":"pxelinux_discovery","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":24,"name":"PXELinux - global default","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":87,"name":"rancheros_cloudconfig","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":58,"name":"RancherOS - provision","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":25,"name":"RancherOS - PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":89,"name":"redhat_register","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":62,"name":"remote_execution_pull_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":96,"name":"remote_execution_ssh_keys","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":66,"name":"saltstack_minion","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":110,"name":"saltstack_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":111,"name":"schedule_reboot","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":118,"name":"UserData - default","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":119,"name":"UserData - open-vm-tools","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":26,"name":"WAIK - default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":37,"name":"Windows - default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":46,"name":"Windows - default iPXE","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":59,"name":"Windows - default provision","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":27,"name":"Windows - default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":112,"name":"Windows - network","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":64,"name":"Windows - peSetup.cmd","template_kind_id":8,"template_kind_name":"script","inherited":false},{"id":60,"name":"XenServer - default answerfile","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":38,"name":"XenServer - default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":28,"name":"XenServer - default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":113,"name":"yum_proxy","template_kind_id":null,"template_kind_name":null,"inherited":false}],"domains":[],"realms":[],"hostgroups":[],"organizations":[],"hosts_count":0,"parameters":[{"priority":20,"created_at":"2022-11-08 - 09:29:19 UTC","updated_at":"2022-11-08 09:29:19 UTC","id":4,"name":"my_param","parameter_type":"string","value":"my - value"},{"priority":20,"created_at":"2022-11-08 09:29:19 UTC","updated_at":"2022-11-08 - 09:29:19 UTC","id":5,"name":"my_param2","parameter_type":"string","value":"my - other value"},{"priority":20,"created_at":"2022-11-08 09:29:19 UTC","updated_at":"2022-11-08 - 09:29:19 UTC","id":6,"name":"my_param3","parameter_type":"array","value":["array","value"]}],"deprecations":{"environments":"Environments + global default","template_kind_id":3,"template_kind_name":"PXEGrub","inherited":false},{"id":21,"name":"PXELinux + chain iPXE","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":22,"name":"PXELinux + chain iPXE UNDI","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":108,"name":"pxelinux_chainload","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":23,"name":"PXELinux + default local boot","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":24,"name":"PXELinux + default memdisk","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":109,"name":"pxelinux_discovery","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":25,"name":"PXELinux + global default","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":110,"name":"rancheros_cloudconfig","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":60,"name":"RancherOS + provision","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":26,"name":"RancherOS + PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":111,"name":"redhat_register","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":64,"name":"remote_execution_pull_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":112,"name":"remote_execution_ssh_keys","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":113,"name":"saltstack_minion","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":114,"name":"saltstack_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":115,"name":"schedule_reboot","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":116,"name":"subscription_manager_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":123,"name":"UserData + default","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":124,"name":"UserData + open-vm-tools","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":27,"name":"WAIK + default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":38,"name":"Windows + default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":48,"name":"Windows + default iPXE","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":49,"name":"Windows + default iPXE httpboot","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":61,"name":"Windows + default provision","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":28,"name":"Windows + default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":125,"name":"Windows + default user data","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":117,"name":"Windows + network","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":66,"name":"Windows + peSetup.cmd","template_kind_id":8,"template_kind_name":"script","inherited":false},{"id":62,"name":"XenServer + default answerfile","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":39,"name":"XenServer + default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":29,"name":"XenServer + default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":118,"name":"yum_proxy","template_kind_id":null,"template_kind_name":null,"inherited":false}],"domains":[],"realms":[],"hostgroups":[],"organizations":[],"hosts_count":0,"parameters":[{"priority":20,"created_at":"2024-07-25 + 12:00:24 UTC","updated_at":"2024-07-25 12:00:24 UTC","id":4,"name":"my_param","parameter_type":"string","associated_type":"location","hidden_value?":false,"value":"my + value"},{"priority":20,"created_at":"2024-07-25 12:00:24 UTC","updated_at":"2024-07-25 + 12:00:24 UTC","id":5,"name":"my_param2","parameter_type":"string","associated_type":"location","hidden_value?":false,"value":"my + other value"},{"priority":20,"created_at":"2024-07-25 12:00:24 UTC","updated_at":"2024-07-25 + 12:00:24 UTC","id":6,"name":"my_param3","parameter_type":"array","associated_type":"location","hidden_value?":false,"value":["array","value"]}],"deprecations":{"environments":"Environments got deprecated from this endpoint."}}' headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive + Content-Length: + - '19773' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -256,13 +268,11 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.4.0 + - 3.11.0-develop Keep-Alive: - timeout=15, max=98 Strict-Transport-Security: - max-age=631139040; includeSubdomains - Transfer-Encoding: - - chunked X-Content-Type-Options: - nosniff X-Download-Options: @@ -288,22 +298,24 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/api/locations/8/parameters?per_page=4294967296 + uri: https://foreman.example.org/api/locations/11/parameters?per_page=4294967296 response: body: string: "{\n \"total\": 3,\n \"subtotal\": 3,\n \"page\": 1,\n \"per_page\": 4294967296,\n \"search\": null,\n \"sort\": {\n \"by\": null,\n \"order\": - null\n },\n \"results\": [{\"priority\":20,\"created_at\":\"2022-11-08 09:29:19 - UTC\",\"updated_at\":\"2022-11-08 09:29:19 UTC\",\"id\":4,\"name\":\"my_param\",\"parameter_type\":\"string\",\"value\":\"my - value\"},{\"priority\":20,\"created_at\":\"2022-11-08 09:29:19 UTC\",\"updated_at\":\"2022-11-08 - 09:29:19 UTC\",\"id\":5,\"name\":\"my_param2\",\"parameter_type\":\"string\",\"value\":\"my - other value\"},{\"priority\":20,\"created_at\":\"2022-11-08 09:29:19 UTC\",\"updated_at\":\"2022-11-08 - 09:29:19 UTC\",\"id\":6,\"name\":\"my_param3\",\"parameter_type\":\"array\",\"value\":[\"array\",\"value\"]}]\n}\n" + null\n },\n \"results\": [{\"priority\":20,\"created_at\":\"2024-07-25 12:00:24 + UTC\",\"updated_at\":\"2024-07-25 12:00:24 UTC\",\"id\":4,\"name\":\"my_param\",\"parameter_type\":\"string\",\"associated_type\":\"location\",\"hidden_value?\":false,\"value\":\"my + value\"},{\"priority\":20,\"created_at\":\"2024-07-25 12:00:24 UTC\",\"updated_at\":\"2024-07-25 + 12:00:24 UTC\",\"id\":5,\"name\":\"my_param2\",\"parameter_type\":\"string\",\"associated_type\":\"location\",\"hidden_value?\":false,\"value\":\"my + other value\"},{\"priority\":20,\"created_at\":\"2024-07-25 12:00:24 UTC\",\"updated_at\":\"2024-07-25 + 12:00:24 UTC\",\"id\":6,\"name\":\"my_param3\",\"parameter_type\":\"array\",\"associated_type\":\"location\",\"hidden_value?\":false,\"value\":[\"array\",\"value\"]}]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive + Content-Length: + - '817' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -313,17 +325,15 @@ interactions: Foreman_api_version: - '2' Foreman_current_location: - - 8; Test Location + - 11; Test Location Foreman_current_organization: - ; ANY Foreman_version: - - 3.4.0 + - 3.11.0-develop Keep-Alive: - timeout=15, max=97 Strict-Transport-Security: - max-age=631139040; includeSubdomains - Transfer-Encoding: - - chunked X-Content-Type-Options: - nosniff X-Download-Options: diff --git a/tests/test_playbooks/fixtures/location-2.yml b/tests/test_playbooks/fixtures/location-2.yml index cfdb06e5..fbb670da 100644 --- a/tests/test_playbooks/fixtures/location-2.yml +++ b/tests/test_playbooks/fixtures/location-2.yml @@ -14,12 +14,14 @@ interactions: uri: https://foreman.example.org/api/status response: body: - string: '{"result":"ok","status":200,"version":"3.4.0","api_version":2}' + string: '{"result":"ok","status":200,"version":"3.11.0-develop","api_version":2}' headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive + Content-Length: + - '71' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -33,13 +35,11 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.4.0 + - 3.11.0-develop Keep-Alive: - timeout=15, max=100 Strict-Transport-Security: - max-age=631139040; includeSubdomains - Transfer-Encoding: - - chunked X-Content-Type-Options: - nosniff X-Download-Options: @@ -77,6 +77,8 @@ interactions: - max-age=0, private, must-revalidate Connection: - Keep-Alive + Content-Length: + - '195' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -90,13 +92,11 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.4.0 + - 3.11.0-develop Keep-Alive: - timeout=15, max=99 Strict-Transport-Security: - max-age=631139040; includeSubdomains - Transfer-Encoding: - - chunked X-Content-Type-Options: - nosniff X-Download-Options: @@ -127,14 +127,16 @@ interactions: body: string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": 4294967296,\n \"search\": \"title=\\\"Test Location\\\"\",\n \"sort\": {\n - \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"ancestry\":null,\"parent_id\":null,\"parent_name\":null,\"created_at\":\"2022-11-08 - 09:29:05 UTC\",\"updated_at\":\"2022-11-08 09:29:05 UTC\",\"id\":4,\"name\":\"Test + \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"ancestry\":null,\"parent_id\":null,\"parent_name\":null,\"created_at\":\"2024-07-25 + 12:00:01 UTC\",\"updated_at\":\"2024-07-25 12:00:01 UTC\",\"id\":7,\"name\":\"Test Location\",\"title\":\"Test Location\",\"description\":null}]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive + Content-Length: + - '384' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -148,13 +150,11 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.4.0 + - 3.11.0-develop Keep-Alive: - timeout=15, max=98 Strict-Transport-Security: - max-age=631139040; includeSubdomains - Transfer-Encoding: - - chunked X-Content-Type-Options: - nosniff X-Download-Options: @@ -185,14 +185,16 @@ interactions: body: string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": 4294967296,\n \"search\": \"name=\\\"Test Organization\\\"\",\n \"sort\": - {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"ancestry\":null,\"parent_id\":null,\"parent_name\":null,\"created_at\":\"2022-11-08 - 09:29:04 UTC\",\"updated_at\":\"2022-11-08 09:29:04 UTC\",\"id\":3,\"name\":\"Test + {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"ancestry\":null,\"parent_id\":null,\"parent_name\":null,\"created_at\":\"2024-07-25 + 12:00:00 UTC\",\"updated_at\":\"2024-07-25 12:00:00 UTC\",\"id\":6,\"name\":\"Test Organization\",\"title\":\"Test Organization\",\"description\":\"A test organization\"}]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive + Content-Length: + - '412' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -206,13 +208,11 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.4.0 + - 3.11.0-develop Keep-Alive: - timeout=15, max=97 Strict-Transport-Security: - max-age=631139040; includeSubdomains - Transfer-Encoding: - - chunked X-Content-Type-Options: - nosniff X-Download-Options: @@ -227,8 +227,8 @@ interactions: code: 200 message: OK - request: - body: '{"location": {"name": "Sub Location 1", "parent_id": 4, "organization_ids": - [3]}}' + body: '{"location": {"name": "Sub Location 1", "parent_id": 7, "organization_ids": + [6]}}' headers: Accept: - application/json;version=2 @@ -246,113 +246,123 @@ interactions: uri: https://foreman.example.org/api/locations response: body: - string: '{"select_all_types":[],"description":null,"created_at":"2022-11-08 - 09:29:07 UTC","updated_at":"2022-11-08 09:29:07 UTC","ancestry":"4","parent_id":4,"parent_name":"Test - Location","id":5,"name":"Sub Location 1","title":"Test Location/Sub Location - 1","users":[],"smart_proxies":[],"subnets":[],"compute_resources":[],"media":[],"ptables":[{"description":null,"os_family":"Suse","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"AutoYaST entire - SCSI disk","id":120,"inherited":false},{"description":null,"os_family":"Suse","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"AutoYaST entire - virtual disk","id":121,"inherited":false},{"description":null,"os_family":"Suse","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"AutoYaST LVM","id":122,"inherited":false},{"description":null,"os_family":"Coreos","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"CoreOS default - fake","id":123,"inherited":false},{"description":null,"os_family":"Rancheros","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Empty","id":124,"inherited":false},{"description":null,"os_family":"Freebsd","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"FreeBSD default - fake","id":125,"inherited":false},{"description":null,"os_family":"Solaris","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Jumpstart default","id":126,"inherited":false},{"description":null,"os_family":"Solaris","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Jumpstart mirrored","id":127,"inherited":false},{"description":null,"os_family":"Junos","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Junos default - fake","id":128,"inherited":false},{"description":null,"os_family":"Redhat","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Kickstart custom","id":129,"inherited":false},{"description":null,"os_family":"Redhat","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Kickstart default","id":130,"inherited":false},{"description":null,"os_family":"Redhat","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Kickstart default - thin","id":131,"inherited":false},{"description":null,"os_family":"Redhat","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Kickstart dynamic","id":132,"inherited":false},{"description":null,"os_family":"NXOS","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"NX-OS default - fake","id":133,"inherited":false},{"description":null,"os_family":"Debian","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Preseed default","id":134,"inherited":false},{"description":"Preseed + string: '{"select_all_types":[],"description":null,"created_at":"2024-07-25 + 12:00:04 UTC","updated_at":"2024-07-25 12:00:04 UTC","ancestry":"7","parent_id":7,"parent_name":"Test + Location","id":8,"name":"Sub Location 1","title":"Test Location/Sub Location + 1","users":[],"smart_proxies":[],"subnets":[],"compute_resources":[],"media":[],"ptables":[{"description":null,"os_family":"Suse","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"AutoYaST entire + virtual disk","id":127,"inherited":false},{"description":null,"os_family":"Solaris","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"Jumpstart default","id":132,"inherited":false},{"description":null,"os_family":"Solaris","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"Jumpstart mirrored","id":133,"inherited":false},{"description":null,"os_family":"Junos","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"Junos default + fake","id":134,"inherited":false},{"description":null,"os_family":"Suse","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"AutoYaST LVM","id":128,"inherited":false},{"description":null,"os_family":"Coreos","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"CoreOS default + fake","id":129,"inherited":false},{"description":null,"os_family":"Rancheros","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"Empty","id":130,"inherited":false},{"description":null,"os_family":"Suse","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"AutoYaST entire + SCSI disk","id":126,"inherited":false},{"description":null,"os_family":"Freebsd","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"FreeBSD default + fake","id":131,"inherited":false},{"description":null,"os_family":"Redhat","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"Kickstart custom","id":135,"inherited":false},{"description":null,"os_family":"Redhat","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"Kickstart default","id":136,"inherited":false},{"description":null,"os_family":"Redhat","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"Kickstart default + thin","id":137,"inherited":false},{"description":null,"os_family":"Redhat","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"Kickstart dynamic","id":138,"inherited":false},{"description":null,"os_family":"NXOS","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"NX-OS default + fake","id":139,"inherited":false},{"description":null,"os_family":"Debian","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"Preseed default","id":140,"inherited":false},{"description":"Preseed Autoinstall default storage snippet configures drives automatically\nwith - LVM. The snippet is automatically indented by 2 spaces. For reference:\nhttps://ubuntu.com/server/docs/install/autoinstall-reference","os_family":"Debian","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Preseed default - autoinstall","id":135,"inherited":false},{"description":null,"os_family":"Debian","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Preseed default - LVM","id":136,"inherited":false},{"description":null,"os_family":"Windows","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Windows default - partition table","id":137,"inherited":false},{"description":null,"os_family":"Windows","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Windows default - GPT EFI partition table","id":138,"inherited":false},{"description":null,"os_family":"Xenserver","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"XenServer default","id":139,"inherited":false}],"provisioning_templates":[{"id":1,"name":"NX-OS + LVM. The snippet is automatically indented by 2 spaces. For reference:\nhttps://ubuntu.com/server/docs/install/autoinstall-reference","os_family":"Debian","created_at":"2024-04-15 + 09:11:37 UTC","updated_at":"2024-04-15 09:11:37 UTC","name":"Preseed default + autoinstall","id":141,"inherited":false},{"description":null,"os_family":"Debian","created_at":"2024-04-15 + 09:11:37 UTC","updated_at":"2024-04-15 09:11:37 UTC","name":"Preseed default + LVM","id":142,"inherited":false},{"description":null,"os_family":"Windows","created_at":"2024-04-15 + 09:11:37 UTC","updated_at":"2024-04-15 09:11:37 UTC","name":"Windows default + partition table","id":143,"inherited":false},{"description":null,"os_family":"Windows","created_at":"2024-04-15 + 09:11:37 UTC","updated_at":"2024-04-15 09:11:37 UTC","name":"Windows default + GPT EFI partition table","id":144,"inherited":false},{"description":null,"os_family":"Xenserver","created_at":"2024-04-15 + 09:11:37 UTC","updated_at":"2024-04-15 09:11:37 UTC","name":"XenServer default","id":145,"inherited":false},{"description":null,"os_family":"Redhat","created_at":"2024-04-22 + 11:15:26 UTC","updated_at":"2024-04-22 11:15:26 UTC","name":"Kickstart default + encrypted","id":152,"inherited":false},{"description":"Preseed Autoinstall + default storage snippet configures drives automatically\nwith LVM and disk + encryption.\nRequires Ubuntu >= 22.04.3.\nThe snippet is automatically indented + by 2 spaces. For reference:\nhttps://ubuntu.com/server/docs/install/autoinstall-reference","os_family":"Debian","created_at":"2024-04-22 + 11:15:26 UTC","updated_at":"2024-04-22 11:15:26 UTC","name":"Preseed default + autoinstall encrypted","id":153,"inherited":false}],"provisioning_templates":[{"id":1,"name":"NX-OS default POAP setup","template_kind_id":11,"template_kind_name":"POAP","inherited":false},{"id":2,"name":"AutoYaST default PXEGrub","template_kind_id":3,"template_kind_name":"PXEGrub","inherited":false},{"id":3,"name":"Jumpstart default PXEGrub","template_kind_id":3,"template_kind_name":"PXEGrub","inherited":false},{"id":4,"name":"Kickstart default PXEGrub","template_kind_id":3,"template_kind_name":"PXEGrub","inherited":false},{"id":5,"name":"PXEGrub default local boot","template_kind_id":3,"template_kind_name":"PXEGrub","inherited":false},{"id":6,"name":"PXEGrub - global default","template_kind_id":3,"template_kind_name":"PXEGrub","inherited":false},{"id":49,"name":"AutoYaST - default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":7,"name":"AutoYaST + global default","template_kind_id":3,"template_kind_name":"PXEGrub","inherited":false},{"id":7,"name":"AutoYaST default PXEGrub2","template_kind_id":4,"template_kind_name":"PXEGrub2","inherited":false},{"id":8,"name":"Kickstart default PXEGrub2","template_kind_id":4,"template_kind_name":"PXEGrub2","inherited":false},{"id":9,"name":"Preseed - default PXEGrub2","template_kind_id":4,"template_kind_name":"PXEGrub2","inherited":false},{"id":10,"name":"PXEGrub2 - default local boot","template_kind_id":4,"template_kind_name":"PXEGrub2","inherited":false},{"id":11,"name":"PXEGrub2 - global default","template_kind_id":4,"template_kind_name":"PXEGrub2","inherited":false},{"id":12,"name":"Alterator - default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":50,"name":"AutoYaST - SLES default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":13,"name":"AutoYaST - default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":14,"name":"CoreOS - PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":15,"name":"FreeBSD - (mfsBSD) PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":16,"name":"Kickstart - default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":17,"name":"Kickstart - oVirt-RHVH PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":18,"name":"Preseed - default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":19,"name":"Preseed - default PXELinux Autoinstall","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":20,"name":"PXELinux - chain iPXE","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":21,"name":"PXELinux - chain iPXE UNDI","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":22,"name":"PXELinux - default local boot","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":23,"name":"PXELinux - default memdisk","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":24,"name":"PXELinux - global default","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":25,"name":"RancherOS - PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":26,"name":"WAIK - default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":27,"name":"Windows - default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":28,"name":"XenServer - default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":29,"name":"Junos - default ZTP config","template_kind_id":10,"template_kind_name":"ZTP","inherited":false},{"id":30,"name":"CloudInit - default","template_kind_id":12,"template_kind_name":"cloud-init","inherited":false},{"id":31,"name":"Alterator - default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":73,"name":"chef_client","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":32,"name":"FreeBSD - (mfsBSD) finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":33,"name":"Jumpstart - default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":34,"name":"Junos - default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":35,"name":"Kickstart - default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":36,"name":"Preseed - default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":37,"name":"Windows - default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":38,"name":"XenServer - default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":39,"name":"Linux - host_init_config default","template_kind_id":1,"template_kind_name":"host_init_config","inherited":false},{"id":40,"name":"AutoYaST - default iPXE","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":41,"name":"iPXE - default local boot","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":42,"name":"iPXE - global default","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":51,"name":"CoreOS - provision","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":43,"name":"iPXE - intermediate script","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":44,"name":"Kickstart - default iPXE","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":45,"name":"Preseed - default iPXE","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":46,"name":"Windows - default iPXE","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":47,"name":"Alterator - default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":48,"name":"Atomic - Kickstart default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":52,"name":"FreeBSD - (mfsBSD) provision","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":53,"name":"Jumpstart - default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":54,"name":"Junos - default SLAX","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":55,"name":"Kickstart - default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":56,"name":"Kickstart - oVirt-RHVH","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":57,"name":"Preseed - default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":58,"name":"RancherOS - provision","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":59,"name":"Windows - default provision","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":60,"name":"XenServer - default answerfile","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":61,"name":"Global - Registration","template_kind_id":13,"template_kind_name":"registration","inherited":false},{"id":62,"name":"remote_execution_pull_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":63,"name":"Grubby - default","template_kind_id":8,"template_kind_name":"script","inherited":false},{"id":64,"name":"Windows - peSetup.cmd","template_kind_id":8,"template_kind_name":"script","inherited":false},{"id":65,"name":"alterator_pkglist","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":66,"name":"saltstack_minion","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":67,"name":"ansible_provisioning_callback","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":68,"name":"ansible_tower_callback_script","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":69,"name":"ansible_tower_callback_service","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":70,"name":"blacklist_kernel_modules","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":71,"name":"bmc_nic_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":72,"name":"built","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":74,"name":"coreos_cloudconfig","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":75,"name":"create_users","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":76,"name":"csr_attributes.yaml","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":77,"name":"efibootmgr_netboot","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":78,"name":"eject_cdrom","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":79,"name":"epel","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":80,"name":"fips_packages","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":81,"name":"fix_hosts","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":82,"name":"freeipa_register","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":83,"name":"http_proxy","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":84,"name":"insights","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":85,"name":"kickstart_ifcfg_bond_interface","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":86,"name":"kickstart_ifcfg_bonded_interface","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":87,"name":"rancheros_cloudconfig","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":111,"name":"schedule_reboot","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":88,"name":"kickstart_ifcfg_generic_interface","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":89,"name":"redhat_register","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":90,"name":"kickstart_ifcfg_get_identifier_names","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":91,"name":"kickstart_kernel_options","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":92,"name":"kickstart_networking_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":93,"name":"ntp","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":94,"name":"pkg_manager","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":95,"name":"preseed_kernel_options","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":96,"name":"remote_execution_ssh_keys","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":97,"name":"preseed_netplan_generic_interface","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":98,"name":"preseed_netplan_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":99,"name":"preseed_networking_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":100,"name":"puppet.conf","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":101,"name":"puppet_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":102,"name":"puppetlabs_repo","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":103,"name":"pxegrub2_chainload","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":104,"name":"pxegrub2_discovery","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":105,"name":"pxegrub2_mac","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":106,"name":"pxegrub_chainload","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":107,"name":"pxegrub_discovery","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":108,"name":"pxelinux_chainload","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":109,"name":"pxelinux_discovery","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":110,"name":"saltstack_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":112,"name":"Windows - network","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":113,"name":"yum_proxy","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":114,"name":"AutoYaST - default user data","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":115,"name":"Kickstart - default user data","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":116,"name":"Preseed - Autoinstall cloud-init user data","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":117,"name":"Preseed - default user data","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":118,"name":"UserData - default","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":119,"name":"UserData - open-vm-tools","template_kind_id":9,"template_kind_name":"user_data","inherited":false}],"domains":[],"realms":[],"hostgroups":[],"organizations":[{"id":3,"name":"Test + default PXEGrub2","template_kind_id":4,"template_kind_name":"PXEGrub2","inherited":false},{"id":10,"name":"Preseed + default PXEGrub2 Autoinstall","template_kind_id":4,"template_kind_name":"PXEGrub2","inherited":false},{"id":11,"name":"PXEGrub2 + default local boot","template_kind_id":4,"template_kind_name":"PXEGrub2","inherited":false},{"id":12,"name":"PXEGrub2 + global default","template_kind_id":4,"template_kind_name":"PXEGrub2","inherited":false},{"id":13,"name":"Alterator + default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":14,"name":"AutoYaST + default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":15,"name":"CoreOS + PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":16,"name":"FreeBSD + (mfsBSD) PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":17,"name":"Kickstart + default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":18,"name":"Kickstart + oVirt-RHVH PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":19,"name":"Preseed + default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":20,"name":"Preseed + default PXELinux Autoinstall","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":79,"name":"eject_cdrom","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":21,"name":"PXELinux + chain iPXE","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":22,"name":"PXELinux + chain iPXE UNDI","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":23,"name":"PXELinux + default local boot","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":24,"name":"PXELinux + default memdisk","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":25,"name":"PXELinux + global default","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":26,"name":"RancherOS + PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":27,"name":"WAIK + default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":28,"name":"Windows + default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":29,"name":"XenServer + default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":30,"name":"Junos + default ZTP config","template_kind_id":10,"template_kind_name":"ZTP","inherited":false},{"id":32,"name":"Alterator + default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":80,"name":"epel","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":33,"name":"FreeBSD + (mfsBSD) finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":34,"name":"Jumpstart + default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":35,"name":"Junos + default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":37,"name":"Preseed + default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":38,"name":"Windows + default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":39,"name":"XenServer + default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":40,"name":"Linux + host_init_config default","template_kind_id":1,"template_kind_name":"host_init_config","inherited":false},{"id":41,"name":"AutoYaST + default iPXE","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":42,"name":"iPXE + default local boot","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":43,"name":"iPXE + global default","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":72,"name":"bmc_nic_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":44,"name":"iPXE + intermediate script","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":45,"name":"Kickstart + default iPXE","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":46,"name":"Preseed + default iPXE","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":47,"name":"Preseed + default iPXE Autoinstall","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":48,"name":"Windows + default iPXE","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":49,"name":"Windows + default iPXE httpboot","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":81,"name":"fips_packages","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":50,"name":"Alterator + default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":51,"name":"AutoYaST + default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":52,"name":"AutoYaST + SLES default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":53,"name":"CoreOS + provision","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":54,"name":"FreeBSD + (mfsBSD) provision","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":55,"name":"Jumpstart + default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":56,"name":"Junos + default SLAX","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":70,"name":"ansible_tower_callback_service","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":59,"name":"Preseed + default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":60,"name":"RancherOS + provision","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":61,"name":"Windows + default provision","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":62,"name":"XenServer + default answerfile","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":63,"name":"Global + Registration","template_kind_id":13,"template_kind_name":"registration","inherited":false},{"id":64,"name":"remote_execution_pull_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":65,"name":"Grubby + default","template_kind_id":8,"template_kind_name":"script","inherited":false},{"id":66,"name":"Windows + peSetup.cmd","template_kind_id":8,"template_kind_name":"script","inherited":false},{"id":67,"name":"alterator_pkglist","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":68,"name":"ansible_provisioning_callback","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":69,"name":"ansible_tower_callback_script","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":71,"name":"blacklist_kernel_modules","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":73,"name":"built","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":74,"name":"chef_client","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":75,"name":"coreos_cloudconfig","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":76,"name":"create_users","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":77,"name":"csr_attributes.yaml","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":78,"name":"efibootmgr_netboot","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":82,"name":"fix_hosts","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":83,"name":"freeipa_register","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":84,"name":"http_proxy","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":85,"name":"insights","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":86,"name":"kickstart_ifcfg_bond_interface","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":87,"name":"kickstart_ifcfg_bonded_interface","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":88,"name":"kickstart_ifcfg_generic_interface","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":89,"name":"kickstart_ifcfg_get_identifier_names","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":91,"name":"kickstart_networking_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":92,"name":"kickstart_rhsm","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":93,"name":"ntp","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":95,"name":"preseed_kernel_options","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":96,"name":"preseed_kernel_options_autoinstall","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":97,"name":"preseed_netplan_generic_interface","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":98,"name":"preseed_netplan_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":99,"name":"preseed_networking_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":106,"name":"pxegrub_chainload","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":100,"name":"puppet.conf","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":101,"name":"puppet_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":102,"name":"puppetlabs_repo","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":103,"name":"pxegrub2_chainload","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":104,"name":"pxegrub2_discovery","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":105,"name":"pxegrub2_mac","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":123,"name":"UserData + default","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":107,"name":"pxegrub_discovery","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":108,"name":"pxelinux_chainload","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":109,"name":"pxelinux_discovery","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":110,"name":"rancheros_cloudconfig","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":124,"name":"UserData + open-vm-tools","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":125,"name":"Windows + default user data","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":112,"name":"remote_execution_ssh_keys","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":113,"name":"saltstack_minion","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":114,"name":"saltstack_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":115,"name":"schedule_reboot","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":117,"name":"Windows + network","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":118,"name":"yum_proxy","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":119,"name":"AutoYaST + default user data","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":120,"name":"Kickstart + default user data","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":122,"name":"Preseed + default user data","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":90,"name":"kickstart_kernel_options","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":31,"name":"CloudInit + default","template_kind_id":12,"template_kind_name":"cloud-init","inherited":false},{"id":36,"name":"Kickstart + default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":57,"name":"Kickstart + default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":58,"name":"Kickstart + oVirt-RHVH","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":149,"name":"disk_enc_clevis_tang","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":150,"name":"kickstart_network_interface","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":94,"name":"pkg_manager","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":151,"name":"preseed_autoinstall_clevis_tang_wrapper","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":111,"name":"redhat_register","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":116,"name":"subscription_manager_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":121,"name":"Preseed + Autoinstall cloud-init user data","template_kind_id":9,"template_kind_name":"user_data","inherited":false}],"domains":[],"realms":[],"hostgroups":[],"organizations":[{"id":6,"name":"Test Organization","title":"Test Organization","description":"A test organization"}],"hosts_count":0,"parameters":[{}],"deprecations":{"environments":"Environments got deprecated from this endpoint."}}' headers: @@ -360,6 +370,8 @@ interactions: - max-age=0, private, must-revalidate Connection: - Keep-Alive + Content-Length: + - '19238' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -373,13 +385,11 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.4.0 + - 3.11.0-develop Keep-Alive: - timeout=15, max=96 Strict-Transport-Security: - max-age=631139040; includeSubdomains - Transfer-Encoding: - - chunked X-Content-Type-Options: - nosniff X-Download-Options: diff --git a/tests/test_playbooks/fixtures/location-20.yml b/tests/test_playbooks/fixtures/location-20.yml index 640469ae..9725e1dc 100644 --- a/tests/test_playbooks/fixtures/location-20.yml +++ b/tests/test_playbooks/fixtures/location-20.yml @@ -14,12 +14,14 @@ interactions: uri: https://foreman.example.org/api/status response: body: - string: '{"result":"ok","status":200,"version":"3.4.0","api_version":2}' + string: '{"result":"ok","status":200,"version":"3.11.0-develop","api_version":2}' headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive + Content-Length: + - '71' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -33,13 +35,11 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.4.0 + - 3.11.0-develop Keep-Alive: - timeout=15, max=100 Strict-Transport-Security: - max-age=631139040; includeSubdomains - Transfer-Encoding: - - chunked X-Content-Type-Options: - nosniff X-Download-Options: @@ -70,14 +70,16 @@ interactions: body: string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": 4294967296,\n \"search\": \"title=\\\"Test Location\\\"\",\n \"sort\": {\n - \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"ancestry\":null,\"parent_id\":null,\"parent_name\":null,\"created_at\":\"2022-11-08 - 09:29:18 UTC\",\"updated_at\":\"2022-11-08 09:29:18 UTC\",\"id\":8,\"name\":\"Test + \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"ancestry\":null,\"parent_id\":null,\"parent_name\":null,\"created_at\":\"2024-07-25 + 12:00:20 UTC\",\"updated_at\":\"2024-07-25 12:00:20 UTC\",\"id\":11,\"name\":\"Test Location\",\"title\":\"Test Location\",\"description\":null}]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive + Content-Length: + - '385' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -91,13 +93,11 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.4.0 + - 3.11.0-develop Keep-Alive: - timeout=15, max=99 Strict-Transport-Security: - max-age=631139040; includeSubdomains - Transfer-Encoding: - - chunked X-Content-Type-Options: - nosniff X-Download-Options: @@ -123,126 +123,138 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/api/locations/8 + uri: https://foreman.example.org/api/locations/11 response: body: - string: '{"select_all_types":[],"description":null,"created_at":"2022-11-08 - 09:29:18 UTC","updated_at":"2022-11-08 09:29:18 UTC","ancestry":null,"parent_id":null,"parent_name":null,"id":8,"name":"Test - Location","title":"Test Location","users":[],"smart_proxies":[],"subnets":[],"compute_resources":[],"media":[],"ptables":[{"description":null,"os_family":"Suse","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"AutoYaST entire - SCSI disk","id":120,"inherited":false},{"description":null,"os_family":"Suse","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"AutoYaST entire - virtual disk","id":121,"inherited":false},{"description":null,"os_family":"Suse","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"AutoYaST LVM","id":122,"inherited":false},{"description":null,"os_family":"Coreos","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"CoreOS default - fake","id":123,"inherited":false},{"description":null,"os_family":"Rancheros","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Empty","id":124,"inherited":false},{"description":null,"os_family":"Freebsd","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"FreeBSD default - fake","id":125,"inherited":false},{"description":null,"os_family":"Solaris","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Jumpstart default","id":126,"inherited":false},{"description":null,"os_family":"Solaris","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Jumpstart mirrored","id":127,"inherited":false},{"description":null,"os_family":"Junos","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Junos default - fake","id":128,"inherited":false},{"description":null,"os_family":"Redhat","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Kickstart custom","id":129,"inherited":false},{"description":null,"os_family":"Redhat","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Kickstart default","id":130,"inherited":false},{"description":null,"os_family":"Redhat","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Kickstart default - thin","id":131,"inherited":false},{"description":null,"os_family":"Redhat","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Kickstart dynamic","id":132,"inherited":false},{"description":null,"os_family":"NXOS","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"NX-OS default - fake","id":133,"inherited":false},{"description":null,"os_family":"Debian","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Preseed default","id":134,"inherited":false},{"description":"Preseed + string: '{"select_all_types":[],"description":null,"created_at":"2024-07-25 + 12:00:20 UTC","updated_at":"2024-07-25 12:00:20 UTC","ancestry":null,"parent_id":null,"parent_name":null,"id":11,"name":"Test + Location","title":"Test Location","users":[],"smart_proxies":[],"subnets":[],"compute_resources":[],"media":[],"ptables":[{"description":null,"os_family":"Suse","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"AutoYaST entire + SCSI disk","id":126,"inherited":false},{"description":null,"os_family":"Suse","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"AutoYaST entire + virtual disk","id":127,"inherited":false},{"description":null,"os_family":"Suse","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"AutoYaST LVM","id":128,"inherited":false},{"description":null,"os_family":"Coreos","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"CoreOS default + fake","id":129,"inherited":false},{"description":null,"os_family":"Rancheros","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"Empty","id":130,"inherited":false},{"description":null,"os_family":"Freebsd","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"FreeBSD default + fake","id":131,"inherited":false},{"description":null,"os_family":"Solaris","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"Jumpstart default","id":132,"inherited":false},{"description":null,"os_family":"Solaris","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"Jumpstart mirrored","id":133,"inherited":false},{"description":null,"os_family":"Junos","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"Junos default + fake","id":134,"inherited":false},{"description":null,"os_family":"Redhat","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"Kickstart custom","id":135,"inherited":false},{"description":null,"os_family":"Redhat","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"Kickstart default","id":136,"inherited":false},{"description":null,"os_family":"Redhat","created_at":"2024-04-22 + 11:15:26 UTC","updated_at":"2024-04-22 11:15:26 UTC","name":"Kickstart default + encrypted","id":152,"inherited":false},{"description":null,"os_family":"Redhat","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"Kickstart default + thin","id":137,"inherited":false},{"description":null,"os_family":"Redhat","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"Kickstart dynamic","id":138,"inherited":false},{"description":null,"os_family":"NXOS","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"NX-OS default + fake","id":139,"inherited":false},{"description":null,"os_family":"Debian","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"Preseed default","id":140,"inherited":false},{"description":"Preseed Autoinstall default storage snippet configures drives automatically\nwith - LVM. The snippet is automatically indented by 2 spaces. For reference:\nhttps://ubuntu.com/server/docs/install/autoinstall-reference","os_family":"Debian","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Preseed default - autoinstall","id":135,"inherited":false},{"description":null,"os_family":"Debian","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Preseed default - LVM","id":136,"inherited":false},{"description":null,"os_family":"Windows","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Windows default - GPT EFI partition table","id":138,"inherited":false},{"description":null,"os_family":"Windows","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Windows default - partition table","id":137,"inherited":false},{"description":null,"os_family":"Xenserver","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"XenServer default","id":139,"inherited":false}],"provisioning_templates":[{"id":47,"name":"Alterator - default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":31,"name":"Alterator - default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":12,"name":"Alterator - default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":65,"name":"alterator_pkglist","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":67,"name":"ansible_provisioning_callback","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":68,"name":"ansible_tower_callback_script","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":69,"name":"ansible_tower_callback_service","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":48,"name":"Atomic - Kickstart default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":49,"name":"AutoYaST - default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":40,"name":"AutoYaST + LVM. The snippet is automatically indented by 2 spaces. For reference:\nhttps://ubuntu.com/server/docs/install/autoinstall-reference","os_family":"Debian","created_at":"2024-04-15 + 09:11:37 UTC","updated_at":"2024-04-15 09:11:37 UTC","name":"Preseed default + autoinstall","id":141,"inherited":false},{"description":"Preseed Autoinstall + default storage snippet configures drives automatically\nwith LVM and disk + encryption.\nRequires Ubuntu >= 22.04.3.\nThe snippet is automatically indented + by 2 spaces. For reference:\nhttps://ubuntu.com/server/docs/install/autoinstall-reference","os_family":"Debian","created_at":"2024-04-22 + 11:15:26 UTC","updated_at":"2024-04-22 11:15:26 UTC","name":"Preseed default + autoinstall encrypted","id":153,"inherited":false},{"description":null,"os_family":"Debian","created_at":"2024-04-15 + 09:11:37 UTC","updated_at":"2024-04-15 09:11:37 UTC","name":"Preseed default + LVM","id":142,"inherited":false},{"description":null,"os_family":"Windows","created_at":"2024-04-15 + 09:11:37 UTC","updated_at":"2024-04-15 09:11:37 UTC","name":"Windows default + GPT EFI partition table","id":144,"inherited":false},{"description":null,"os_family":"Windows","created_at":"2024-04-15 + 09:11:37 UTC","updated_at":"2024-04-15 09:11:37 UTC","name":"Windows default + partition table","id":143,"inherited":false},{"description":null,"os_family":"Xenserver","created_at":"2024-04-15 + 09:11:37 UTC","updated_at":"2024-04-15 09:11:37 UTC","name":"XenServer default","id":145,"inherited":false}],"provisioning_templates":[{"id":50,"name":"Alterator + default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":32,"name":"Alterator + default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":13,"name":"Alterator + default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":67,"name":"alterator_pkglist","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":68,"name":"ansible_provisioning_callback","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":69,"name":"ansible_tower_callback_script","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":70,"name":"ansible_tower_callback_service","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":51,"name":"AutoYaST + default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":41,"name":"AutoYaST default iPXE","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":2,"name":"AutoYaST default PXEGrub","template_kind_id":3,"template_kind_name":"PXEGrub","inherited":false},{"id":7,"name":"AutoYaST - default PXEGrub2","template_kind_id":4,"template_kind_name":"PXEGrub2","inherited":false},{"id":13,"name":"AutoYaST - default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":114,"name":"AutoYaST - default user data","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":50,"name":"AutoYaST - SLES default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":70,"name":"blacklist_kernel_modules","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":71,"name":"bmc_nic_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":72,"name":"built","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":73,"name":"chef_client","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":30,"name":"CloudInit - default","template_kind_id":12,"template_kind_name":"cloud-init","inherited":false},{"id":74,"name":"coreos_cloudconfig","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":51,"name":"CoreOS - provision","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":14,"name":"CoreOS - PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":75,"name":"create_users","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":76,"name":"csr_attributes.yaml","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":77,"name":"efibootmgr_netboot","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":78,"name":"eject_cdrom","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":79,"name":"epel","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":80,"name":"fips_packages","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":81,"name":"fix_hosts","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":32,"name":"FreeBSD - (mfsBSD) finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":52,"name":"FreeBSD - (mfsBSD) provision","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":15,"name":"FreeBSD - (mfsBSD) PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":82,"name":"freeipa_register","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":61,"name":"Global - Registration","template_kind_id":13,"template_kind_name":"registration","inherited":false},{"id":63,"name":"Grubby - default","template_kind_id":8,"template_kind_name":"script","inherited":false},{"id":83,"name":"http_proxy","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":84,"name":"insights","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":41,"name":"iPXE - default local boot","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":42,"name":"iPXE - global default","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":43,"name":"iPXE - intermediate script","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":53,"name":"Jumpstart - default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":33,"name":"Jumpstart + default PXEGrub2","template_kind_id":4,"template_kind_name":"PXEGrub2","inherited":false},{"id":14,"name":"AutoYaST + default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":119,"name":"AutoYaST + default user data","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":52,"name":"AutoYaST + SLES default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":71,"name":"blacklist_kernel_modules","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":72,"name":"bmc_nic_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":73,"name":"built","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":74,"name":"chef_client","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":31,"name":"CloudInit + default","template_kind_id":12,"template_kind_name":"cloud-init","inherited":false},{"id":75,"name":"coreos_cloudconfig","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":53,"name":"CoreOS + provision","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":15,"name":"CoreOS + PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":76,"name":"create_users","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":77,"name":"csr_attributes.yaml","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":149,"name":"disk_enc_clevis_tang","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":78,"name":"efibootmgr_netboot","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":79,"name":"eject_cdrom","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":80,"name":"epel","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":81,"name":"fips_packages","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":82,"name":"fix_hosts","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":33,"name":"FreeBSD + (mfsBSD) finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":54,"name":"FreeBSD + (mfsBSD) provision","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":16,"name":"FreeBSD + (mfsBSD) PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":83,"name":"freeipa_register","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":63,"name":"Global + Registration","template_kind_id":13,"template_kind_name":"registration","inherited":false},{"id":65,"name":"Grubby + default","template_kind_id":8,"template_kind_name":"script","inherited":false},{"id":84,"name":"http_proxy","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":85,"name":"insights","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":42,"name":"iPXE + default local boot","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":43,"name":"iPXE + global default","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":44,"name":"iPXE + intermediate script","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":55,"name":"Jumpstart + default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":34,"name":"Jumpstart default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":3,"name":"Jumpstart - default PXEGrub","template_kind_id":3,"template_kind_name":"PXEGrub","inherited":false},{"id":34,"name":"Junos - default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":54,"name":"Junos - default SLAX","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":29,"name":"Junos - default ZTP config","template_kind_id":10,"template_kind_name":"ZTP","inherited":false},{"id":55,"name":"Kickstart - default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":35,"name":"Kickstart - default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":44,"name":"Kickstart + default PXEGrub","template_kind_id":3,"template_kind_name":"PXEGrub","inherited":false},{"id":35,"name":"Junos + default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":56,"name":"Junos + default SLAX","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":30,"name":"Junos + default ZTP config","template_kind_id":10,"template_kind_name":"ZTP","inherited":false},{"id":57,"name":"Kickstart + default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":36,"name":"Kickstart + default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":45,"name":"Kickstart default iPXE","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":4,"name":"Kickstart default PXEGrub","template_kind_id":3,"template_kind_name":"PXEGrub","inherited":false},{"id":8,"name":"Kickstart - default PXEGrub2","template_kind_id":4,"template_kind_name":"PXEGrub2","inherited":false},{"id":16,"name":"Kickstart - default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":115,"name":"Kickstart - default user data","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":86,"name":"kickstart_ifcfg_bonded_interface","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":85,"name":"kickstart_ifcfg_bond_interface","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":88,"name":"kickstart_ifcfg_generic_interface","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":90,"name":"kickstart_ifcfg_get_identifier_names","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":91,"name":"kickstart_kernel_options","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":92,"name":"kickstart_networking_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":56,"name":"Kickstart - oVirt-RHVH","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":17,"name":"Kickstart - oVirt-RHVH PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":39,"name":"Linux + default PXEGrub2","template_kind_id":4,"template_kind_name":"PXEGrub2","inherited":false},{"id":17,"name":"Kickstart + default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":120,"name":"Kickstart + default user data","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":87,"name":"kickstart_ifcfg_bonded_interface","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":86,"name":"kickstart_ifcfg_bond_interface","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":88,"name":"kickstart_ifcfg_generic_interface","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":89,"name":"kickstart_ifcfg_get_identifier_names","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":90,"name":"kickstart_kernel_options","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":91,"name":"kickstart_networking_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":150,"name":"kickstart_network_interface","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":58,"name":"Kickstart + oVirt-RHVH","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":18,"name":"Kickstart + oVirt-RHVH PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":92,"name":"kickstart_rhsm","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":40,"name":"Linux host_init_config default","template_kind_id":1,"template_kind_name":"host_init_config","inherited":false},{"id":93,"name":"ntp","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":1,"name":"NX-OS - default POAP setup","template_kind_id":11,"template_kind_name":"POAP","inherited":false},{"id":94,"name":"pkg_manager","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":116,"name":"Preseed - Autoinstall cloud-init user data","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":57,"name":"Preseed - default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":36,"name":"Preseed - default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":45,"name":"Preseed - default iPXE","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":9,"name":"Preseed - default PXEGrub2","template_kind_id":4,"template_kind_name":"PXEGrub2","inherited":false},{"id":18,"name":"Preseed - default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":19,"name":"Preseed - default PXELinux Autoinstall","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":117,"name":"Preseed - default user data","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":95,"name":"preseed_kernel_options","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":97,"name":"preseed_netplan_generic_interface","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":98,"name":"preseed_netplan_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":99,"name":"preseed_networking_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":100,"name":"puppet.conf","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":102,"name":"puppetlabs_repo","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":101,"name":"puppet_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":103,"name":"pxegrub2_chainload","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":10,"name":"PXEGrub2 - default local boot","template_kind_id":4,"template_kind_name":"PXEGrub2","inherited":false},{"id":104,"name":"pxegrub2_discovery","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":11,"name":"PXEGrub2 + default POAP setup","template_kind_id":11,"template_kind_name":"POAP","inherited":false},{"id":94,"name":"pkg_manager","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":151,"name":"preseed_autoinstall_clevis_tang_wrapper","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":121,"name":"Preseed + Autoinstall cloud-init user data","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":59,"name":"Preseed + default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":37,"name":"Preseed + default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":46,"name":"Preseed + default iPXE","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":47,"name":"Preseed + default iPXE Autoinstall","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":9,"name":"Preseed + default PXEGrub2","template_kind_id":4,"template_kind_name":"PXEGrub2","inherited":false},{"id":10,"name":"Preseed + default PXEGrub2 Autoinstall","template_kind_id":4,"template_kind_name":"PXEGrub2","inherited":false},{"id":19,"name":"Preseed + default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":20,"name":"Preseed + default PXELinux Autoinstall","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":122,"name":"Preseed + default user data","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":95,"name":"preseed_kernel_options","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":96,"name":"preseed_kernel_options_autoinstall","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":97,"name":"preseed_netplan_generic_interface","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":98,"name":"preseed_netplan_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":99,"name":"preseed_networking_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":100,"name":"puppet.conf","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":102,"name":"puppetlabs_repo","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":101,"name":"puppet_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":103,"name":"pxegrub2_chainload","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":11,"name":"PXEGrub2 + default local boot","template_kind_id":4,"template_kind_name":"PXEGrub2","inherited":false},{"id":104,"name":"pxegrub2_discovery","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":12,"name":"PXEGrub2 global default","template_kind_id":4,"template_kind_name":"PXEGrub2","inherited":false},{"id":105,"name":"pxegrub2_mac","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":106,"name":"pxegrub_chainload","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":5,"name":"PXEGrub default local boot","template_kind_id":3,"template_kind_name":"PXEGrub","inherited":false},{"id":107,"name":"pxegrub_discovery","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":6,"name":"PXEGrub - global default","template_kind_id":3,"template_kind_name":"PXEGrub","inherited":false},{"id":20,"name":"PXELinux - chain iPXE","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":21,"name":"PXELinux - chain iPXE UNDI","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":108,"name":"pxelinux_chainload","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":22,"name":"PXELinux - default local boot","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":23,"name":"PXELinux - default memdisk","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":109,"name":"pxelinux_discovery","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":24,"name":"PXELinux - global default","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":87,"name":"rancheros_cloudconfig","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":58,"name":"RancherOS - provision","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":25,"name":"RancherOS - PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":89,"name":"redhat_register","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":62,"name":"remote_execution_pull_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":96,"name":"remote_execution_ssh_keys","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":66,"name":"saltstack_minion","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":110,"name":"saltstack_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":111,"name":"schedule_reboot","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":118,"name":"UserData - default","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":119,"name":"UserData - open-vm-tools","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":26,"name":"WAIK - default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":37,"name":"Windows - default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":46,"name":"Windows - default iPXE","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":59,"name":"Windows - default provision","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":27,"name":"Windows - default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":112,"name":"Windows - network","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":64,"name":"Windows - peSetup.cmd","template_kind_id":8,"template_kind_name":"script","inherited":false},{"id":60,"name":"XenServer - default answerfile","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":38,"name":"XenServer - default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":28,"name":"XenServer - default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":113,"name":"yum_proxy","template_kind_id":null,"template_kind_name":null,"inherited":false}],"domains":[],"realms":[],"hostgroups":[],"organizations":[],"hosts_count":0,"parameters":[{"priority":20,"created_at":"2022-11-08 - 09:29:19 UTC","updated_at":"2022-11-08 09:29:19 UTC","id":4,"name":"my_param","parameter_type":"string","value":"my - value"},{"priority":20,"created_at":"2022-11-08 09:29:19 UTC","updated_at":"2022-11-08 - 09:29:19 UTC","id":5,"name":"my_param2","parameter_type":"string","value":"my - other value"},{"priority":20,"created_at":"2022-11-08 09:29:19 UTC","updated_at":"2022-11-08 - 09:29:19 UTC","id":6,"name":"my_param3","parameter_type":"array","value":["array","value"]}],"deprecations":{"environments":"Environments + global default","template_kind_id":3,"template_kind_name":"PXEGrub","inherited":false},{"id":21,"name":"PXELinux + chain iPXE","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":22,"name":"PXELinux + chain iPXE UNDI","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":108,"name":"pxelinux_chainload","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":23,"name":"PXELinux + default local boot","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":24,"name":"PXELinux + default memdisk","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":109,"name":"pxelinux_discovery","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":25,"name":"PXELinux + global default","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":110,"name":"rancheros_cloudconfig","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":60,"name":"RancherOS + provision","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":26,"name":"RancherOS + PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":111,"name":"redhat_register","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":64,"name":"remote_execution_pull_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":112,"name":"remote_execution_ssh_keys","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":113,"name":"saltstack_minion","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":114,"name":"saltstack_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":115,"name":"schedule_reboot","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":116,"name":"subscription_manager_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":123,"name":"UserData + default","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":124,"name":"UserData + open-vm-tools","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":27,"name":"WAIK + default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":38,"name":"Windows + default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":48,"name":"Windows + default iPXE","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":49,"name":"Windows + default iPXE httpboot","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":61,"name":"Windows + default provision","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":28,"name":"Windows + default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":125,"name":"Windows + default user data","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":117,"name":"Windows + network","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":66,"name":"Windows + peSetup.cmd","template_kind_id":8,"template_kind_name":"script","inherited":false},{"id":62,"name":"XenServer + default answerfile","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":39,"name":"XenServer + default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":29,"name":"XenServer + default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":118,"name":"yum_proxy","template_kind_id":null,"template_kind_name":null,"inherited":false}],"domains":[],"realms":[],"hostgroups":[],"organizations":[],"hosts_count":0,"parameters":[{"priority":20,"created_at":"2024-07-25 + 12:00:24 UTC","updated_at":"2024-07-25 12:00:24 UTC","id":4,"name":"my_param","parameter_type":"string","associated_type":"location","hidden_value?":false,"value":"my + value"},{"priority":20,"created_at":"2024-07-25 12:00:24 UTC","updated_at":"2024-07-25 + 12:00:24 UTC","id":5,"name":"my_param2","parameter_type":"string","associated_type":"location","hidden_value?":false,"value":"my + other value"},{"priority":20,"created_at":"2024-07-25 12:00:24 UTC","updated_at":"2024-07-25 + 12:00:24 UTC","id":6,"name":"my_param3","parameter_type":"array","associated_type":"location","hidden_value?":false,"value":["array","value"]}],"deprecations":{"environments":"Environments got deprecated from this endpoint."}}' headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive + Content-Length: + - '19773' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -256,13 +268,11 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.4.0 + - 3.11.0-develop Keep-Alive: - timeout=15, max=98 Strict-Transport-Security: - max-age=631139040; includeSubdomains - Transfer-Encoding: - - chunked X-Content-Type-Options: - nosniff X-Download-Options: @@ -288,22 +298,24 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/api/locations/8/parameters?per_page=4294967296 + uri: https://foreman.example.org/api/locations/11/parameters?per_page=4294967296 response: body: string: "{\n \"total\": 3,\n \"subtotal\": 3,\n \"page\": 1,\n \"per_page\": 4294967296,\n \"search\": null,\n \"sort\": {\n \"by\": null,\n \"order\": - null\n },\n \"results\": [{\"priority\":20,\"created_at\":\"2022-11-08 09:29:19 - UTC\",\"updated_at\":\"2022-11-08 09:29:19 UTC\",\"id\":4,\"name\":\"my_param\",\"parameter_type\":\"string\",\"value\":\"my - value\"},{\"priority\":20,\"created_at\":\"2022-11-08 09:29:19 UTC\",\"updated_at\":\"2022-11-08 - 09:29:19 UTC\",\"id\":5,\"name\":\"my_param2\",\"parameter_type\":\"string\",\"value\":\"my - other value\"},{\"priority\":20,\"created_at\":\"2022-11-08 09:29:19 UTC\",\"updated_at\":\"2022-11-08 - 09:29:19 UTC\",\"id\":6,\"name\":\"my_param3\",\"parameter_type\":\"array\",\"value\":[\"array\",\"value\"]}]\n}\n" + null\n },\n \"results\": [{\"priority\":20,\"created_at\":\"2024-07-25 12:00:24 + UTC\",\"updated_at\":\"2024-07-25 12:00:24 UTC\",\"id\":4,\"name\":\"my_param\",\"parameter_type\":\"string\",\"associated_type\":\"location\",\"hidden_value?\":false,\"value\":\"my + value\"},{\"priority\":20,\"created_at\":\"2024-07-25 12:00:24 UTC\",\"updated_at\":\"2024-07-25 + 12:00:24 UTC\",\"id\":5,\"name\":\"my_param2\",\"parameter_type\":\"string\",\"associated_type\":\"location\",\"hidden_value?\":false,\"value\":\"my + other value\"},{\"priority\":20,\"created_at\":\"2024-07-25 12:00:24 UTC\",\"updated_at\":\"2024-07-25 + 12:00:24 UTC\",\"id\":6,\"name\":\"my_param3\",\"parameter_type\":\"array\",\"associated_type\":\"location\",\"hidden_value?\":false,\"value\":[\"array\",\"value\"]}]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive + Content-Length: + - '817' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -313,17 +325,15 @@ interactions: Foreman_api_version: - '2' Foreman_current_location: - - 8; Test Location + - 11; Test Location Foreman_current_organization: - ; ANY Foreman_version: - - 3.4.0 + - 3.11.0-develop Keep-Alive: - timeout=15, max=97 Strict-Transport-Security: - max-age=631139040; includeSubdomains - Transfer-Encoding: - - chunked X-Content-Type-Options: - nosniff X-Download-Options: @@ -351,16 +361,18 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: DELETE - uri: https://foreman.example.org/api/locations/8/parameters/5 + uri: https://foreman.example.org/api/locations/11/parameters/5 response: body: - string: '{"id":5,"name":"my_param2","value":"my other value","reference_id":8,"created_at":"2022-11-08T09:29:19.973Z","updated_at":"2022-11-08T09:29:19.973Z","priority":20,"hidden_value":"*****","key_type":"string","searchable_value":"my + string: '{"id":5,"name":"my_param2","value":"my other value","reference_id":11,"created_at":"2024-07-25T12:00:24.079Z","updated_at":"2024-07-25T12:00:24.079Z","priority":20,"hidden_value":"*****","key_type":"string","searchable_value":"my other value"}' headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive + Content-Length: + - '243' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -370,17 +382,15 @@ interactions: Foreman_api_version: - '2' Foreman_current_location: - - 8; Test Location + - 11; Test Location Foreman_current_organization: - ; ANY Foreman_version: - - 3.4.0 + - 3.11.0-develop Keep-Alive: - timeout=15, max=96 Strict-Transport-Security: - max-age=631139040; includeSubdomains - Transfer-Encoding: - - chunked X-Content-Type-Options: - nosniff X-Download-Options: @@ -408,15 +418,17 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: DELETE - uri: https://foreman.example.org/api/locations/8/parameters/6 + uri: https://foreman.example.org/api/locations/11/parameters/6 response: body: - string: '{"id":6,"name":"my_param3","value":["array","value"],"reference_id":8,"created_at":"2022-11-08T09:29:19.997Z","updated_at":"2022-11-08T09:29:19.997Z","priority":20,"hidden_value":"*****","key_type":"array","searchable_value":"[\"array\",\"value\"]"}' + string: '{"id":6,"name":"my_param3","value":["array","value"],"reference_id":11,"created_at":"2024-07-25T12:00:24.123Z","updated_at":"2024-07-25T12:00:24.123Z","priority":20,"hidden_value":"*****","key_type":"array","searchable_value":"[\"array\",\"value\"]"}' headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive + Content-Length: + - '250' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -426,17 +438,15 @@ interactions: Foreman_api_version: - '2' Foreman_current_location: - - 8; Test Location + - 11; Test Location Foreman_current_organization: - ; ANY Foreman_version: - - 3.4.0 + - 3.11.0-develop Keep-Alive: - timeout=15, max=95 Strict-Transport-Security: - max-age=631139040; includeSubdomains - Transfer-Encoding: - - chunked X-Content-Type-Options: - nosniff X-Download-Options: diff --git a/tests/test_playbooks/fixtures/location-21.yml b/tests/test_playbooks/fixtures/location-21.yml index a11da534..e2904cfb 100644 --- a/tests/test_playbooks/fixtures/location-21.yml +++ b/tests/test_playbooks/fixtures/location-21.yml @@ -14,12 +14,14 @@ interactions: uri: https://foreman.example.org/api/status response: body: - string: '{"result":"ok","status":200,"version":"3.4.0","api_version":2}' + string: '{"result":"ok","status":200,"version":"3.11.0-develop","api_version":2}' headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive + Content-Length: + - '71' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -33,13 +35,11 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.4.0 + - 3.11.0-develop Keep-Alive: - timeout=15, max=100 Strict-Transport-Security: - max-age=631139040; includeSubdomains - Transfer-Encoding: - - chunked X-Content-Type-Options: - nosniff X-Download-Options: @@ -70,14 +70,16 @@ interactions: body: string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": 4294967296,\n \"search\": \"title=\\\"Test Location\\\"\",\n \"sort\": {\n - \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"ancestry\":null,\"parent_id\":null,\"parent_name\":null,\"created_at\":\"2022-11-08 - 09:29:18 UTC\",\"updated_at\":\"2022-11-08 09:29:18 UTC\",\"id\":8,\"name\":\"Test + \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"ancestry\":null,\"parent_id\":null,\"parent_name\":null,\"created_at\":\"2024-07-25 + 12:00:20 UTC\",\"updated_at\":\"2024-07-25 12:00:20 UTC\",\"id\":11,\"name\":\"Test Location\",\"title\":\"Test Location\",\"description\":null}]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive + Content-Length: + - '385' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -91,13 +93,11 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.4.0 + - 3.11.0-develop Keep-Alive: - timeout=15, max=99 Strict-Transport-Security: - max-age=631139040; includeSubdomains - Transfer-Encoding: - - chunked X-Content-Type-Options: - nosniff X-Download-Options: @@ -123,116 +123,126 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/api/locations/8 + uri: https://foreman.example.org/api/locations/11 response: body: - string: '{"select_all_types":[],"description":null,"created_at":"2022-11-08 - 09:29:18 UTC","updated_at":"2022-11-08 09:29:18 UTC","ancestry":null,"parent_id":null,"parent_name":null,"id":8,"name":"Test - Location","title":"Test Location","users":[],"smart_proxies":[],"subnets":[],"compute_resources":[],"media":[],"ptables":[{"description":null,"os_family":"Suse","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"AutoYaST entire - SCSI disk","id":120,"inherited":false},{"description":null,"os_family":"Suse","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"AutoYaST entire - virtual disk","id":121,"inherited":false},{"description":null,"os_family":"Suse","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"AutoYaST LVM","id":122,"inherited":false},{"description":null,"os_family":"Coreos","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"CoreOS default - fake","id":123,"inherited":false},{"description":null,"os_family":"Rancheros","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Empty","id":124,"inherited":false},{"description":null,"os_family":"Freebsd","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"FreeBSD default - fake","id":125,"inherited":false},{"description":null,"os_family":"Solaris","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Jumpstart default","id":126,"inherited":false},{"description":null,"os_family":"Solaris","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Jumpstart mirrored","id":127,"inherited":false},{"description":null,"os_family":"Junos","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Junos default - fake","id":128,"inherited":false},{"description":null,"os_family":"Redhat","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Kickstart custom","id":129,"inherited":false},{"description":null,"os_family":"Redhat","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Kickstart default","id":130,"inherited":false},{"description":null,"os_family":"Redhat","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Kickstart default - thin","id":131,"inherited":false},{"description":null,"os_family":"Redhat","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Kickstart dynamic","id":132,"inherited":false},{"description":null,"os_family":"NXOS","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"NX-OS default - fake","id":133,"inherited":false},{"description":null,"os_family":"Debian","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Preseed default","id":134,"inherited":false},{"description":"Preseed + string: '{"select_all_types":[],"description":null,"created_at":"2024-07-25 + 12:00:20 UTC","updated_at":"2024-07-25 12:00:20 UTC","ancestry":null,"parent_id":null,"parent_name":null,"id":11,"name":"Test + Location","title":"Test Location","users":[],"smart_proxies":[],"subnets":[],"compute_resources":[],"media":[],"ptables":[{"description":null,"os_family":"Suse","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"AutoYaST entire + SCSI disk","id":126,"inherited":false},{"description":null,"os_family":"Suse","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"AutoYaST entire + virtual disk","id":127,"inherited":false},{"description":null,"os_family":"Suse","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"AutoYaST LVM","id":128,"inherited":false},{"description":null,"os_family":"Coreos","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"CoreOS default + fake","id":129,"inherited":false},{"description":null,"os_family":"Rancheros","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"Empty","id":130,"inherited":false},{"description":null,"os_family":"Freebsd","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"FreeBSD default + fake","id":131,"inherited":false},{"description":null,"os_family":"Solaris","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"Jumpstart default","id":132,"inherited":false},{"description":null,"os_family":"Solaris","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"Jumpstart mirrored","id":133,"inherited":false},{"description":null,"os_family":"Junos","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"Junos default + fake","id":134,"inherited":false},{"description":null,"os_family":"Redhat","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"Kickstart custom","id":135,"inherited":false},{"description":null,"os_family":"Redhat","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"Kickstart default","id":136,"inherited":false},{"description":null,"os_family":"Redhat","created_at":"2024-04-22 + 11:15:26 UTC","updated_at":"2024-04-22 11:15:26 UTC","name":"Kickstart default + encrypted","id":152,"inherited":false},{"description":null,"os_family":"Redhat","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"Kickstart default + thin","id":137,"inherited":false},{"description":null,"os_family":"Redhat","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"Kickstart dynamic","id":138,"inherited":false},{"description":null,"os_family":"NXOS","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"NX-OS default + fake","id":139,"inherited":false},{"description":null,"os_family":"Debian","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"Preseed default","id":140,"inherited":false},{"description":"Preseed Autoinstall default storage snippet configures drives automatically\nwith - LVM. The snippet is automatically indented by 2 spaces. For reference:\nhttps://ubuntu.com/server/docs/install/autoinstall-reference","os_family":"Debian","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Preseed default - autoinstall","id":135,"inherited":false},{"description":null,"os_family":"Debian","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Preseed default - LVM","id":136,"inherited":false},{"description":null,"os_family":"Windows","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Windows default - GPT EFI partition table","id":138,"inherited":false},{"description":null,"os_family":"Windows","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Windows default - partition table","id":137,"inherited":false},{"description":null,"os_family":"Xenserver","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"XenServer default","id":139,"inherited":false}],"provisioning_templates":[{"id":47,"name":"Alterator - default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":31,"name":"Alterator - default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":12,"name":"Alterator - default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":65,"name":"alterator_pkglist","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":67,"name":"ansible_provisioning_callback","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":68,"name":"ansible_tower_callback_script","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":69,"name":"ansible_tower_callback_service","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":48,"name":"Atomic - Kickstart default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":49,"name":"AutoYaST - default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":40,"name":"AutoYaST + LVM. The snippet is automatically indented by 2 spaces. For reference:\nhttps://ubuntu.com/server/docs/install/autoinstall-reference","os_family":"Debian","created_at":"2024-04-15 + 09:11:37 UTC","updated_at":"2024-04-15 09:11:37 UTC","name":"Preseed default + autoinstall","id":141,"inherited":false},{"description":"Preseed Autoinstall + default storage snippet configures drives automatically\nwith LVM and disk + encryption.\nRequires Ubuntu >= 22.04.3.\nThe snippet is automatically indented + by 2 spaces. For reference:\nhttps://ubuntu.com/server/docs/install/autoinstall-reference","os_family":"Debian","created_at":"2024-04-22 + 11:15:26 UTC","updated_at":"2024-04-22 11:15:26 UTC","name":"Preseed default + autoinstall encrypted","id":153,"inherited":false},{"description":null,"os_family":"Debian","created_at":"2024-04-15 + 09:11:37 UTC","updated_at":"2024-04-15 09:11:37 UTC","name":"Preseed default + LVM","id":142,"inherited":false},{"description":null,"os_family":"Windows","created_at":"2024-04-15 + 09:11:37 UTC","updated_at":"2024-04-15 09:11:37 UTC","name":"Windows default + GPT EFI partition table","id":144,"inherited":false},{"description":null,"os_family":"Windows","created_at":"2024-04-15 + 09:11:37 UTC","updated_at":"2024-04-15 09:11:37 UTC","name":"Windows default + partition table","id":143,"inherited":false},{"description":null,"os_family":"Xenserver","created_at":"2024-04-15 + 09:11:37 UTC","updated_at":"2024-04-15 09:11:37 UTC","name":"XenServer default","id":145,"inherited":false}],"provisioning_templates":[{"id":50,"name":"Alterator + default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":32,"name":"Alterator + default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":13,"name":"Alterator + default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":67,"name":"alterator_pkglist","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":68,"name":"ansible_provisioning_callback","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":69,"name":"ansible_tower_callback_script","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":70,"name":"ansible_tower_callback_service","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":51,"name":"AutoYaST + default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":41,"name":"AutoYaST default iPXE","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":2,"name":"AutoYaST default PXEGrub","template_kind_id":3,"template_kind_name":"PXEGrub","inherited":false},{"id":7,"name":"AutoYaST - default PXEGrub2","template_kind_id":4,"template_kind_name":"PXEGrub2","inherited":false},{"id":13,"name":"AutoYaST - default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":114,"name":"AutoYaST - default user data","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":50,"name":"AutoYaST - SLES default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":70,"name":"blacklist_kernel_modules","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":71,"name":"bmc_nic_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":72,"name":"built","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":73,"name":"chef_client","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":30,"name":"CloudInit - default","template_kind_id":12,"template_kind_name":"cloud-init","inherited":false},{"id":74,"name":"coreos_cloudconfig","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":51,"name":"CoreOS - provision","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":14,"name":"CoreOS - PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":75,"name":"create_users","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":76,"name":"csr_attributes.yaml","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":77,"name":"efibootmgr_netboot","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":78,"name":"eject_cdrom","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":79,"name":"epel","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":80,"name":"fips_packages","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":81,"name":"fix_hosts","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":32,"name":"FreeBSD - (mfsBSD) finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":52,"name":"FreeBSD - (mfsBSD) provision","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":15,"name":"FreeBSD - (mfsBSD) PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":82,"name":"freeipa_register","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":61,"name":"Global - Registration","template_kind_id":13,"template_kind_name":"registration","inherited":false},{"id":63,"name":"Grubby - default","template_kind_id":8,"template_kind_name":"script","inherited":false},{"id":83,"name":"http_proxy","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":84,"name":"insights","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":41,"name":"iPXE - default local boot","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":42,"name":"iPXE - global default","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":43,"name":"iPXE - intermediate script","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":53,"name":"Jumpstart - default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":33,"name":"Jumpstart + default PXEGrub2","template_kind_id":4,"template_kind_name":"PXEGrub2","inherited":false},{"id":14,"name":"AutoYaST + default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":119,"name":"AutoYaST + default user data","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":52,"name":"AutoYaST + SLES default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":71,"name":"blacklist_kernel_modules","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":72,"name":"bmc_nic_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":73,"name":"built","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":74,"name":"chef_client","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":31,"name":"CloudInit + default","template_kind_id":12,"template_kind_name":"cloud-init","inherited":false},{"id":75,"name":"coreos_cloudconfig","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":53,"name":"CoreOS + provision","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":15,"name":"CoreOS + PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":76,"name":"create_users","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":77,"name":"csr_attributes.yaml","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":149,"name":"disk_enc_clevis_tang","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":78,"name":"efibootmgr_netboot","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":79,"name":"eject_cdrom","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":80,"name":"epel","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":81,"name":"fips_packages","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":82,"name":"fix_hosts","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":33,"name":"FreeBSD + (mfsBSD) finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":54,"name":"FreeBSD + (mfsBSD) provision","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":16,"name":"FreeBSD + (mfsBSD) PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":83,"name":"freeipa_register","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":63,"name":"Global + Registration","template_kind_id":13,"template_kind_name":"registration","inherited":false},{"id":65,"name":"Grubby + default","template_kind_id":8,"template_kind_name":"script","inherited":false},{"id":84,"name":"http_proxy","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":85,"name":"insights","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":42,"name":"iPXE + default local boot","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":43,"name":"iPXE + global default","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":44,"name":"iPXE + intermediate script","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":55,"name":"Jumpstart + default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":34,"name":"Jumpstart default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":3,"name":"Jumpstart - default PXEGrub","template_kind_id":3,"template_kind_name":"PXEGrub","inherited":false},{"id":34,"name":"Junos - default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":54,"name":"Junos - default SLAX","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":29,"name":"Junos - default ZTP config","template_kind_id":10,"template_kind_name":"ZTP","inherited":false},{"id":55,"name":"Kickstart - default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":35,"name":"Kickstart - default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":44,"name":"Kickstart + default PXEGrub","template_kind_id":3,"template_kind_name":"PXEGrub","inherited":false},{"id":35,"name":"Junos + default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":56,"name":"Junos + default SLAX","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":30,"name":"Junos + default ZTP config","template_kind_id":10,"template_kind_name":"ZTP","inherited":false},{"id":57,"name":"Kickstart + default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":36,"name":"Kickstart + default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":45,"name":"Kickstart default iPXE","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":4,"name":"Kickstart default PXEGrub","template_kind_id":3,"template_kind_name":"PXEGrub","inherited":false},{"id":8,"name":"Kickstart - default PXEGrub2","template_kind_id":4,"template_kind_name":"PXEGrub2","inherited":false},{"id":16,"name":"Kickstart - default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":115,"name":"Kickstart - default user data","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":86,"name":"kickstart_ifcfg_bonded_interface","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":85,"name":"kickstart_ifcfg_bond_interface","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":88,"name":"kickstart_ifcfg_generic_interface","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":90,"name":"kickstart_ifcfg_get_identifier_names","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":91,"name":"kickstart_kernel_options","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":92,"name":"kickstart_networking_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":56,"name":"Kickstart - oVirt-RHVH","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":17,"name":"Kickstart - oVirt-RHVH PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":39,"name":"Linux + default PXEGrub2","template_kind_id":4,"template_kind_name":"PXEGrub2","inherited":false},{"id":17,"name":"Kickstart + default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":120,"name":"Kickstart + default user data","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":87,"name":"kickstart_ifcfg_bonded_interface","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":86,"name":"kickstart_ifcfg_bond_interface","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":88,"name":"kickstart_ifcfg_generic_interface","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":89,"name":"kickstart_ifcfg_get_identifier_names","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":90,"name":"kickstart_kernel_options","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":91,"name":"kickstart_networking_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":150,"name":"kickstart_network_interface","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":58,"name":"Kickstart + oVirt-RHVH","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":18,"name":"Kickstart + oVirt-RHVH PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":92,"name":"kickstart_rhsm","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":40,"name":"Linux host_init_config default","template_kind_id":1,"template_kind_name":"host_init_config","inherited":false},{"id":93,"name":"ntp","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":1,"name":"NX-OS - default POAP setup","template_kind_id":11,"template_kind_name":"POAP","inherited":false},{"id":94,"name":"pkg_manager","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":116,"name":"Preseed - Autoinstall cloud-init user data","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":57,"name":"Preseed - default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":36,"name":"Preseed - default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":45,"name":"Preseed - default iPXE","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":9,"name":"Preseed - default PXEGrub2","template_kind_id":4,"template_kind_name":"PXEGrub2","inherited":false},{"id":18,"name":"Preseed - default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":19,"name":"Preseed - default PXELinux Autoinstall","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":117,"name":"Preseed - default user data","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":95,"name":"preseed_kernel_options","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":97,"name":"preseed_netplan_generic_interface","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":98,"name":"preseed_netplan_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":99,"name":"preseed_networking_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":100,"name":"puppet.conf","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":102,"name":"puppetlabs_repo","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":101,"name":"puppet_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":103,"name":"pxegrub2_chainload","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":10,"name":"PXEGrub2 - default local boot","template_kind_id":4,"template_kind_name":"PXEGrub2","inherited":false},{"id":104,"name":"pxegrub2_discovery","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":11,"name":"PXEGrub2 + default POAP setup","template_kind_id":11,"template_kind_name":"POAP","inherited":false},{"id":94,"name":"pkg_manager","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":151,"name":"preseed_autoinstall_clevis_tang_wrapper","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":121,"name":"Preseed + Autoinstall cloud-init user data","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":59,"name":"Preseed + default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":37,"name":"Preseed + default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":46,"name":"Preseed + default iPXE","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":47,"name":"Preseed + default iPXE Autoinstall","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":9,"name":"Preseed + default PXEGrub2","template_kind_id":4,"template_kind_name":"PXEGrub2","inherited":false},{"id":10,"name":"Preseed + default PXEGrub2 Autoinstall","template_kind_id":4,"template_kind_name":"PXEGrub2","inherited":false},{"id":19,"name":"Preseed + default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":20,"name":"Preseed + default PXELinux Autoinstall","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":122,"name":"Preseed + default user data","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":95,"name":"preseed_kernel_options","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":96,"name":"preseed_kernel_options_autoinstall","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":97,"name":"preseed_netplan_generic_interface","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":98,"name":"preseed_netplan_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":99,"name":"preseed_networking_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":100,"name":"puppet.conf","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":102,"name":"puppetlabs_repo","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":101,"name":"puppet_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":103,"name":"pxegrub2_chainload","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":11,"name":"PXEGrub2 + default local boot","template_kind_id":4,"template_kind_name":"PXEGrub2","inherited":false},{"id":104,"name":"pxegrub2_discovery","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":12,"name":"PXEGrub2 global default","template_kind_id":4,"template_kind_name":"PXEGrub2","inherited":false},{"id":105,"name":"pxegrub2_mac","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":106,"name":"pxegrub_chainload","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":5,"name":"PXEGrub default local boot","template_kind_id":3,"template_kind_name":"PXEGrub","inherited":false},{"id":107,"name":"pxegrub_discovery","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":6,"name":"PXEGrub - global default","template_kind_id":3,"template_kind_name":"PXEGrub","inherited":false},{"id":20,"name":"PXELinux - chain iPXE","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":21,"name":"PXELinux - chain iPXE UNDI","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":108,"name":"pxelinux_chainload","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":22,"name":"PXELinux - default local boot","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":23,"name":"PXELinux - default memdisk","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":109,"name":"pxelinux_discovery","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":24,"name":"PXELinux - global default","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":87,"name":"rancheros_cloudconfig","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":58,"name":"RancherOS - provision","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":25,"name":"RancherOS - PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":89,"name":"redhat_register","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":62,"name":"remote_execution_pull_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":96,"name":"remote_execution_ssh_keys","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":66,"name":"saltstack_minion","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":110,"name":"saltstack_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":111,"name":"schedule_reboot","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":118,"name":"UserData - default","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":119,"name":"UserData - open-vm-tools","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":26,"name":"WAIK - default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":37,"name":"Windows - default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":46,"name":"Windows - default iPXE","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":59,"name":"Windows - default provision","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":27,"name":"Windows - default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":112,"name":"Windows - network","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":64,"name":"Windows - peSetup.cmd","template_kind_id":8,"template_kind_name":"script","inherited":false},{"id":60,"name":"XenServer - default answerfile","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":38,"name":"XenServer - default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":28,"name":"XenServer - default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":113,"name":"yum_proxy","template_kind_id":null,"template_kind_name":null,"inherited":false}],"domains":[],"realms":[],"hostgroups":[],"organizations":[],"hosts_count":0,"parameters":[{"priority":20,"created_at":"2022-11-08 - 09:29:19 UTC","updated_at":"2022-11-08 09:29:19 UTC","id":4,"name":"my_param","parameter_type":"string","value":"my + global default","template_kind_id":3,"template_kind_name":"PXEGrub","inherited":false},{"id":21,"name":"PXELinux + chain iPXE","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":22,"name":"PXELinux + chain iPXE UNDI","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":108,"name":"pxelinux_chainload","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":23,"name":"PXELinux + default local boot","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":24,"name":"PXELinux + default memdisk","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":109,"name":"pxelinux_discovery","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":25,"name":"PXELinux + global default","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":110,"name":"rancheros_cloudconfig","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":60,"name":"RancherOS + provision","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":26,"name":"RancherOS + PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":111,"name":"redhat_register","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":64,"name":"remote_execution_pull_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":112,"name":"remote_execution_ssh_keys","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":113,"name":"saltstack_minion","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":114,"name":"saltstack_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":115,"name":"schedule_reboot","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":116,"name":"subscription_manager_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":123,"name":"UserData + default","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":124,"name":"UserData + open-vm-tools","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":27,"name":"WAIK + default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":38,"name":"Windows + default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":48,"name":"Windows + default iPXE","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":49,"name":"Windows + default iPXE httpboot","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":61,"name":"Windows + default provision","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":28,"name":"Windows + default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":125,"name":"Windows + default user data","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":117,"name":"Windows + network","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":66,"name":"Windows + peSetup.cmd","template_kind_id":8,"template_kind_name":"script","inherited":false},{"id":62,"name":"XenServer + default answerfile","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":39,"name":"XenServer + default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":29,"name":"XenServer + default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":118,"name":"yum_proxy","template_kind_id":null,"template_kind_name":null,"inherited":false}],"domains":[],"realms":[],"hostgroups":[],"organizations":[],"hosts_count":0,"parameters":[{"priority":20,"created_at":"2024-07-25 + 12:00:24 UTC","updated_at":"2024-07-25 12:00:24 UTC","id":4,"name":"my_param","parameter_type":"string","associated_type":"location","hidden_value?":false,"value":"my value"}],"deprecations":{"environments":"Environments got deprecated from this endpoint."}}' headers: @@ -240,6 +250,8 @@ interactions: - max-age=0, private, must-revalidate Connection: - Keep-Alive + Content-Length: + - '19329' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -253,13 +265,11 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.4.0 + - 3.11.0-develop Keep-Alive: - timeout=15, max=98 Strict-Transport-Security: - max-age=631139040; includeSubdomains - Transfer-Encoding: - - chunked X-Content-Type-Options: - nosniff X-Download-Options: @@ -285,19 +295,21 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/api/locations/8/parameters?per_page=4294967296 + uri: https://foreman.example.org/api/locations/11/parameters?per_page=4294967296 response: body: string: "{\n \"total\": 1,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": 4294967296,\n \"search\": null,\n \"sort\": {\n \"by\": null,\n \"order\": - null\n },\n \"results\": [{\"priority\":20,\"created_at\":\"2022-11-08 09:29:19 - UTC\",\"updated_at\":\"2022-11-08 09:29:19 UTC\",\"id\":4,\"name\":\"my_param\",\"parameter_type\":\"string\",\"value\":\"my + null\n },\n \"results\": [{\"priority\":20,\"created_at\":\"2024-07-25 12:00:24 + UTC\",\"updated_at\":\"2024-07-25 12:00:24 UTC\",\"id\":4,\"name\":\"my_param\",\"parameter_type\":\"string\",\"associated_type\":\"location\",\"hidden_value?\":false,\"value\":\"my value\"}]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive + Content-Length: + - '373' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -307,17 +319,15 @@ interactions: Foreman_api_version: - '2' Foreman_current_location: - - 8; Test Location + - 11; Test Location Foreman_current_organization: - ; ANY Foreman_version: - - 3.4.0 + - 3.11.0-develop Keep-Alive: - timeout=15, max=97 Strict-Transport-Security: - max-age=631139040; includeSubdomains - Transfer-Encoding: - - chunked X-Content-Type-Options: - nosniff X-Download-Options: diff --git a/tests/test_playbooks/fixtures/location-22.yml b/tests/test_playbooks/fixtures/location-22.yml index 5cf4efa5..67c3ff4f 100644 --- a/tests/test_playbooks/fixtures/location-22.yml +++ b/tests/test_playbooks/fixtures/location-22.yml @@ -14,12 +14,14 @@ interactions: uri: https://foreman.example.org/api/status response: body: - string: '{"result":"ok","status":200,"version":"3.4.0","api_version":2}' + string: '{"result":"ok","status":200,"version":"3.11.0-develop","api_version":2}' headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive + Content-Length: + - '71' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -33,13 +35,11 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.4.0 + - 3.11.0-develop Keep-Alive: - timeout=15, max=100 Strict-Transport-Security: - max-age=631139040; includeSubdomains - Transfer-Encoding: - - chunked X-Content-Type-Options: - nosniff X-Download-Options: @@ -70,14 +70,16 @@ interactions: body: string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": 4294967296,\n \"search\": \"title=\\\"Test Location\\\"\",\n \"sort\": {\n - \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"ancestry\":null,\"parent_id\":null,\"parent_name\":null,\"created_at\":\"2022-11-08 - 09:29:18 UTC\",\"updated_at\":\"2022-11-08 09:29:18 UTC\",\"id\":8,\"name\":\"Test + \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"ancestry\":null,\"parent_id\":null,\"parent_name\":null,\"created_at\":\"2024-07-25 + 12:00:20 UTC\",\"updated_at\":\"2024-07-25 12:00:20 UTC\",\"id\":11,\"name\":\"Test Location\",\"title\":\"Test Location\",\"description\":null}]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive + Content-Length: + - '385' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -91,13 +93,11 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.4.0 + - 3.11.0-develop Keep-Alive: - timeout=15, max=99 Strict-Transport-Security: - max-age=631139040; includeSubdomains - Transfer-Encoding: - - chunked X-Content-Type-Options: - nosniff X-Download-Options: @@ -123,116 +123,126 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/api/locations/8 + uri: https://foreman.example.org/api/locations/11 response: body: - string: '{"select_all_types":[],"description":null,"created_at":"2022-11-08 - 09:29:18 UTC","updated_at":"2022-11-08 09:29:18 UTC","ancestry":null,"parent_id":null,"parent_name":null,"id":8,"name":"Test - Location","title":"Test Location","users":[],"smart_proxies":[],"subnets":[],"compute_resources":[],"media":[],"ptables":[{"description":null,"os_family":"Suse","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"AutoYaST entire - SCSI disk","id":120,"inherited":false},{"description":null,"os_family":"Suse","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"AutoYaST entire - virtual disk","id":121,"inherited":false},{"description":null,"os_family":"Suse","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"AutoYaST LVM","id":122,"inherited":false},{"description":null,"os_family":"Coreos","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"CoreOS default - fake","id":123,"inherited":false},{"description":null,"os_family":"Rancheros","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Empty","id":124,"inherited":false},{"description":null,"os_family":"Freebsd","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"FreeBSD default - fake","id":125,"inherited":false},{"description":null,"os_family":"Solaris","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Jumpstart default","id":126,"inherited":false},{"description":null,"os_family":"Solaris","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Jumpstart mirrored","id":127,"inherited":false},{"description":null,"os_family":"Junos","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Junos default - fake","id":128,"inherited":false},{"description":null,"os_family":"Redhat","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Kickstart custom","id":129,"inherited":false},{"description":null,"os_family":"Redhat","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Kickstart default","id":130,"inherited":false},{"description":null,"os_family":"Redhat","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Kickstart default - thin","id":131,"inherited":false},{"description":null,"os_family":"Redhat","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Kickstart dynamic","id":132,"inherited":false},{"description":null,"os_family":"NXOS","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"NX-OS default - fake","id":133,"inherited":false},{"description":null,"os_family":"Debian","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Preseed default","id":134,"inherited":false},{"description":"Preseed + string: '{"select_all_types":[],"description":null,"created_at":"2024-07-25 + 12:00:20 UTC","updated_at":"2024-07-25 12:00:20 UTC","ancestry":null,"parent_id":null,"parent_name":null,"id":11,"name":"Test + Location","title":"Test Location","users":[],"smart_proxies":[],"subnets":[],"compute_resources":[],"media":[],"ptables":[{"description":null,"os_family":"Suse","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"AutoYaST entire + SCSI disk","id":126,"inherited":false},{"description":null,"os_family":"Suse","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"AutoYaST entire + virtual disk","id":127,"inherited":false},{"description":null,"os_family":"Suse","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"AutoYaST LVM","id":128,"inherited":false},{"description":null,"os_family":"Coreos","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"CoreOS default + fake","id":129,"inherited":false},{"description":null,"os_family":"Rancheros","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"Empty","id":130,"inherited":false},{"description":null,"os_family":"Freebsd","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"FreeBSD default + fake","id":131,"inherited":false},{"description":null,"os_family":"Solaris","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"Jumpstart default","id":132,"inherited":false},{"description":null,"os_family":"Solaris","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"Jumpstart mirrored","id":133,"inherited":false},{"description":null,"os_family":"Junos","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"Junos default + fake","id":134,"inherited":false},{"description":null,"os_family":"Redhat","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"Kickstart custom","id":135,"inherited":false},{"description":null,"os_family":"Redhat","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"Kickstart default","id":136,"inherited":false},{"description":null,"os_family":"Redhat","created_at":"2024-04-22 + 11:15:26 UTC","updated_at":"2024-04-22 11:15:26 UTC","name":"Kickstart default + encrypted","id":152,"inherited":false},{"description":null,"os_family":"Redhat","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"Kickstart default + thin","id":137,"inherited":false},{"description":null,"os_family":"Redhat","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"Kickstart dynamic","id":138,"inherited":false},{"description":null,"os_family":"NXOS","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"NX-OS default + fake","id":139,"inherited":false},{"description":null,"os_family":"Debian","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"Preseed default","id":140,"inherited":false},{"description":"Preseed Autoinstall default storage snippet configures drives automatically\nwith - LVM. The snippet is automatically indented by 2 spaces. For reference:\nhttps://ubuntu.com/server/docs/install/autoinstall-reference","os_family":"Debian","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Preseed default - autoinstall","id":135,"inherited":false},{"description":null,"os_family":"Debian","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Preseed default - LVM","id":136,"inherited":false},{"description":null,"os_family":"Windows","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Windows default - GPT EFI partition table","id":138,"inherited":false},{"description":null,"os_family":"Windows","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Windows default - partition table","id":137,"inherited":false},{"description":null,"os_family":"Xenserver","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"XenServer default","id":139,"inherited":false}],"provisioning_templates":[{"id":47,"name":"Alterator - default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":31,"name":"Alterator - default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":12,"name":"Alterator - default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":65,"name":"alterator_pkglist","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":67,"name":"ansible_provisioning_callback","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":68,"name":"ansible_tower_callback_script","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":69,"name":"ansible_tower_callback_service","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":48,"name":"Atomic - Kickstart default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":49,"name":"AutoYaST - default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":40,"name":"AutoYaST + LVM. The snippet is automatically indented by 2 spaces. For reference:\nhttps://ubuntu.com/server/docs/install/autoinstall-reference","os_family":"Debian","created_at":"2024-04-15 + 09:11:37 UTC","updated_at":"2024-04-15 09:11:37 UTC","name":"Preseed default + autoinstall","id":141,"inherited":false},{"description":"Preseed Autoinstall + default storage snippet configures drives automatically\nwith LVM and disk + encryption.\nRequires Ubuntu >= 22.04.3.\nThe snippet is automatically indented + by 2 spaces. For reference:\nhttps://ubuntu.com/server/docs/install/autoinstall-reference","os_family":"Debian","created_at":"2024-04-22 + 11:15:26 UTC","updated_at":"2024-04-22 11:15:26 UTC","name":"Preseed default + autoinstall encrypted","id":153,"inherited":false},{"description":null,"os_family":"Debian","created_at":"2024-04-15 + 09:11:37 UTC","updated_at":"2024-04-15 09:11:37 UTC","name":"Preseed default + LVM","id":142,"inherited":false},{"description":null,"os_family":"Windows","created_at":"2024-04-15 + 09:11:37 UTC","updated_at":"2024-04-15 09:11:37 UTC","name":"Windows default + GPT EFI partition table","id":144,"inherited":false},{"description":null,"os_family":"Windows","created_at":"2024-04-15 + 09:11:37 UTC","updated_at":"2024-04-15 09:11:37 UTC","name":"Windows default + partition table","id":143,"inherited":false},{"description":null,"os_family":"Xenserver","created_at":"2024-04-15 + 09:11:37 UTC","updated_at":"2024-04-15 09:11:37 UTC","name":"XenServer default","id":145,"inherited":false}],"provisioning_templates":[{"id":50,"name":"Alterator + default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":32,"name":"Alterator + default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":13,"name":"Alterator + default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":67,"name":"alterator_pkglist","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":68,"name":"ansible_provisioning_callback","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":69,"name":"ansible_tower_callback_script","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":70,"name":"ansible_tower_callback_service","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":51,"name":"AutoYaST + default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":41,"name":"AutoYaST default iPXE","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":2,"name":"AutoYaST default PXEGrub","template_kind_id":3,"template_kind_name":"PXEGrub","inherited":false},{"id":7,"name":"AutoYaST - default PXEGrub2","template_kind_id":4,"template_kind_name":"PXEGrub2","inherited":false},{"id":13,"name":"AutoYaST - default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":114,"name":"AutoYaST - default user data","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":50,"name":"AutoYaST - SLES default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":70,"name":"blacklist_kernel_modules","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":71,"name":"bmc_nic_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":72,"name":"built","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":73,"name":"chef_client","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":30,"name":"CloudInit - default","template_kind_id":12,"template_kind_name":"cloud-init","inherited":false},{"id":74,"name":"coreos_cloudconfig","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":51,"name":"CoreOS - provision","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":14,"name":"CoreOS - PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":75,"name":"create_users","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":76,"name":"csr_attributes.yaml","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":77,"name":"efibootmgr_netboot","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":78,"name":"eject_cdrom","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":79,"name":"epel","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":80,"name":"fips_packages","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":81,"name":"fix_hosts","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":32,"name":"FreeBSD - (mfsBSD) finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":52,"name":"FreeBSD - (mfsBSD) provision","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":15,"name":"FreeBSD - (mfsBSD) PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":82,"name":"freeipa_register","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":61,"name":"Global - Registration","template_kind_id":13,"template_kind_name":"registration","inherited":false},{"id":63,"name":"Grubby - default","template_kind_id":8,"template_kind_name":"script","inherited":false},{"id":83,"name":"http_proxy","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":84,"name":"insights","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":41,"name":"iPXE - default local boot","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":42,"name":"iPXE - global default","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":43,"name":"iPXE - intermediate script","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":53,"name":"Jumpstart - default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":33,"name":"Jumpstart + default PXEGrub2","template_kind_id":4,"template_kind_name":"PXEGrub2","inherited":false},{"id":14,"name":"AutoYaST + default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":119,"name":"AutoYaST + default user data","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":52,"name":"AutoYaST + SLES default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":71,"name":"blacklist_kernel_modules","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":72,"name":"bmc_nic_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":73,"name":"built","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":74,"name":"chef_client","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":31,"name":"CloudInit + default","template_kind_id":12,"template_kind_name":"cloud-init","inherited":false},{"id":75,"name":"coreos_cloudconfig","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":53,"name":"CoreOS + provision","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":15,"name":"CoreOS + PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":76,"name":"create_users","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":77,"name":"csr_attributes.yaml","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":149,"name":"disk_enc_clevis_tang","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":78,"name":"efibootmgr_netboot","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":79,"name":"eject_cdrom","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":80,"name":"epel","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":81,"name":"fips_packages","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":82,"name":"fix_hosts","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":33,"name":"FreeBSD + (mfsBSD) finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":54,"name":"FreeBSD + (mfsBSD) provision","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":16,"name":"FreeBSD + (mfsBSD) PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":83,"name":"freeipa_register","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":63,"name":"Global + Registration","template_kind_id":13,"template_kind_name":"registration","inherited":false},{"id":65,"name":"Grubby + default","template_kind_id":8,"template_kind_name":"script","inherited":false},{"id":84,"name":"http_proxy","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":85,"name":"insights","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":42,"name":"iPXE + default local boot","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":43,"name":"iPXE + global default","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":44,"name":"iPXE + intermediate script","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":55,"name":"Jumpstart + default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":34,"name":"Jumpstart default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":3,"name":"Jumpstart - default PXEGrub","template_kind_id":3,"template_kind_name":"PXEGrub","inherited":false},{"id":34,"name":"Junos - default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":54,"name":"Junos - default SLAX","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":29,"name":"Junos - default ZTP config","template_kind_id":10,"template_kind_name":"ZTP","inherited":false},{"id":55,"name":"Kickstart - default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":35,"name":"Kickstart - default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":44,"name":"Kickstart + default PXEGrub","template_kind_id":3,"template_kind_name":"PXEGrub","inherited":false},{"id":35,"name":"Junos + default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":56,"name":"Junos + default SLAX","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":30,"name":"Junos + default ZTP config","template_kind_id":10,"template_kind_name":"ZTP","inherited":false},{"id":57,"name":"Kickstart + default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":36,"name":"Kickstart + default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":45,"name":"Kickstart default iPXE","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":4,"name":"Kickstart default PXEGrub","template_kind_id":3,"template_kind_name":"PXEGrub","inherited":false},{"id":8,"name":"Kickstart - default PXEGrub2","template_kind_id":4,"template_kind_name":"PXEGrub2","inherited":false},{"id":16,"name":"Kickstart - default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":115,"name":"Kickstart - default user data","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":86,"name":"kickstart_ifcfg_bonded_interface","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":85,"name":"kickstart_ifcfg_bond_interface","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":88,"name":"kickstart_ifcfg_generic_interface","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":90,"name":"kickstart_ifcfg_get_identifier_names","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":91,"name":"kickstart_kernel_options","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":92,"name":"kickstart_networking_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":56,"name":"Kickstart - oVirt-RHVH","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":17,"name":"Kickstart - oVirt-RHVH PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":39,"name":"Linux + default PXEGrub2","template_kind_id":4,"template_kind_name":"PXEGrub2","inherited":false},{"id":17,"name":"Kickstart + default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":120,"name":"Kickstart + default user data","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":87,"name":"kickstart_ifcfg_bonded_interface","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":86,"name":"kickstart_ifcfg_bond_interface","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":88,"name":"kickstart_ifcfg_generic_interface","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":89,"name":"kickstart_ifcfg_get_identifier_names","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":90,"name":"kickstart_kernel_options","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":91,"name":"kickstart_networking_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":150,"name":"kickstart_network_interface","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":58,"name":"Kickstart + oVirt-RHVH","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":18,"name":"Kickstart + oVirt-RHVH PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":92,"name":"kickstart_rhsm","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":40,"name":"Linux host_init_config default","template_kind_id":1,"template_kind_name":"host_init_config","inherited":false},{"id":93,"name":"ntp","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":1,"name":"NX-OS - default POAP setup","template_kind_id":11,"template_kind_name":"POAP","inherited":false},{"id":94,"name":"pkg_manager","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":116,"name":"Preseed - Autoinstall cloud-init user data","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":57,"name":"Preseed - default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":36,"name":"Preseed - default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":45,"name":"Preseed - default iPXE","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":9,"name":"Preseed - default PXEGrub2","template_kind_id":4,"template_kind_name":"PXEGrub2","inherited":false},{"id":18,"name":"Preseed - default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":19,"name":"Preseed - default PXELinux Autoinstall","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":117,"name":"Preseed - default user data","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":95,"name":"preseed_kernel_options","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":97,"name":"preseed_netplan_generic_interface","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":98,"name":"preseed_netplan_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":99,"name":"preseed_networking_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":100,"name":"puppet.conf","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":102,"name":"puppetlabs_repo","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":101,"name":"puppet_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":103,"name":"pxegrub2_chainload","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":10,"name":"PXEGrub2 - default local boot","template_kind_id":4,"template_kind_name":"PXEGrub2","inherited":false},{"id":104,"name":"pxegrub2_discovery","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":11,"name":"PXEGrub2 + default POAP setup","template_kind_id":11,"template_kind_name":"POAP","inherited":false},{"id":94,"name":"pkg_manager","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":151,"name":"preseed_autoinstall_clevis_tang_wrapper","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":121,"name":"Preseed + Autoinstall cloud-init user data","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":59,"name":"Preseed + default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":37,"name":"Preseed + default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":46,"name":"Preseed + default iPXE","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":47,"name":"Preseed + default iPXE Autoinstall","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":9,"name":"Preseed + default PXEGrub2","template_kind_id":4,"template_kind_name":"PXEGrub2","inherited":false},{"id":10,"name":"Preseed + default PXEGrub2 Autoinstall","template_kind_id":4,"template_kind_name":"PXEGrub2","inherited":false},{"id":19,"name":"Preseed + default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":20,"name":"Preseed + default PXELinux Autoinstall","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":122,"name":"Preseed + default user data","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":95,"name":"preseed_kernel_options","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":96,"name":"preseed_kernel_options_autoinstall","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":97,"name":"preseed_netplan_generic_interface","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":98,"name":"preseed_netplan_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":99,"name":"preseed_networking_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":100,"name":"puppet.conf","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":102,"name":"puppetlabs_repo","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":101,"name":"puppet_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":103,"name":"pxegrub2_chainload","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":11,"name":"PXEGrub2 + default local boot","template_kind_id":4,"template_kind_name":"PXEGrub2","inherited":false},{"id":104,"name":"pxegrub2_discovery","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":12,"name":"PXEGrub2 global default","template_kind_id":4,"template_kind_name":"PXEGrub2","inherited":false},{"id":105,"name":"pxegrub2_mac","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":106,"name":"pxegrub_chainload","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":5,"name":"PXEGrub default local boot","template_kind_id":3,"template_kind_name":"PXEGrub","inherited":false},{"id":107,"name":"pxegrub_discovery","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":6,"name":"PXEGrub - global default","template_kind_id":3,"template_kind_name":"PXEGrub","inherited":false},{"id":20,"name":"PXELinux - chain iPXE","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":21,"name":"PXELinux - chain iPXE UNDI","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":108,"name":"pxelinux_chainload","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":22,"name":"PXELinux - default local boot","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":23,"name":"PXELinux - default memdisk","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":109,"name":"pxelinux_discovery","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":24,"name":"PXELinux - global default","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":87,"name":"rancheros_cloudconfig","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":58,"name":"RancherOS - provision","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":25,"name":"RancherOS - PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":89,"name":"redhat_register","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":62,"name":"remote_execution_pull_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":96,"name":"remote_execution_ssh_keys","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":66,"name":"saltstack_minion","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":110,"name":"saltstack_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":111,"name":"schedule_reboot","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":118,"name":"UserData - default","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":119,"name":"UserData - open-vm-tools","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":26,"name":"WAIK - default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":37,"name":"Windows - default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":46,"name":"Windows - default iPXE","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":59,"name":"Windows - default provision","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":27,"name":"Windows - default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":112,"name":"Windows - network","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":64,"name":"Windows - peSetup.cmd","template_kind_id":8,"template_kind_name":"script","inherited":false},{"id":60,"name":"XenServer - default answerfile","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":38,"name":"XenServer - default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":28,"name":"XenServer - default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":113,"name":"yum_proxy","template_kind_id":null,"template_kind_name":null,"inherited":false}],"domains":[],"realms":[],"hostgroups":[],"organizations":[],"hosts_count":0,"parameters":[{"priority":20,"created_at":"2022-11-08 - 09:29:19 UTC","updated_at":"2022-11-08 09:29:19 UTC","id":4,"name":"my_param","parameter_type":"string","value":"my + global default","template_kind_id":3,"template_kind_name":"PXEGrub","inherited":false},{"id":21,"name":"PXELinux + chain iPXE","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":22,"name":"PXELinux + chain iPXE UNDI","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":108,"name":"pxelinux_chainload","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":23,"name":"PXELinux + default local boot","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":24,"name":"PXELinux + default memdisk","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":109,"name":"pxelinux_discovery","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":25,"name":"PXELinux + global default","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":110,"name":"rancheros_cloudconfig","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":60,"name":"RancherOS + provision","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":26,"name":"RancherOS + PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":111,"name":"redhat_register","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":64,"name":"remote_execution_pull_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":112,"name":"remote_execution_ssh_keys","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":113,"name":"saltstack_minion","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":114,"name":"saltstack_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":115,"name":"schedule_reboot","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":116,"name":"subscription_manager_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":123,"name":"UserData + default","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":124,"name":"UserData + open-vm-tools","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":27,"name":"WAIK + default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":38,"name":"Windows + default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":48,"name":"Windows + default iPXE","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":49,"name":"Windows + default iPXE httpboot","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":61,"name":"Windows + default provision","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":28,"name":"Windows + default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":125,"name":"Windows + default user data","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":117,"name":"Windows + network","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":66,"name":"Windows + peSetup.cmd","template_kind_id":8,"template_kind_name":"script","inherited":false},{"id":62,"name":"XenServer + default answerfile","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":39,"name":"XenServer + default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":29,"name":"XenServer + default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":118,"name":"yum_proxy","template_kind_id":null,"template_kind_name":null,"inherited":false}],"domains":[],"realms":[],"hostgroups":[],"organizations":[],"hosts_count":0,"parameters":[{"priority":20,"created_at":"2024-07-25 + 12:00:24 UTC","updated_at":"2024-07-25 12:00:24 UTC","id":4,"name":"my_param","parameter_type":"string","associated_type":"location","hidden_value?":false,"value":"my value"}],"deprecations":{"environments":"Environments got deprecated from this endpoint."}}' headers: @@ -240,6 +250,8 @@ interactions: - max-age=0, private, must-revalidate Connection: - Keep-Alive + Content-Length: + - '19329' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -253,13 +265,11 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.4.0 + - 3.11.0-develop Keep-Alive: - timeout=15, max=98 Strict-Transport-Security: - max-age=631139040; includeSubdomains - Transfer-Encoding: - - chunked X-Content-Type-Options: - nosniff X-Download-Options: @@ -285,19 +295,21 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/api/locations/8/parameters?per_page=4294967296 + uri: https://foreman.example.org/api/locations/11/parameters?per_page=4294967296 response: body: string: "{\n \"total\": 1,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": 4294967296,\n \"search\": null,\n \"sort\": {\n \"by\": null,\n \"order\": - null\n },\n \"results\": [{\"priority\":20,\"created_at\":\"2022-11-08 09:29:19 - UTC\",\"updated_at\":\"2022-11-08 09:29:19 UTC\",\"id\":4,\"name\":\"my_param\",\"parameter_type\":\"string\",\"value\":\"my + null\n },\n \"results\": [{\"priority\":20,\"created_at\":\"2024-07-25 12:00:24 + UTC\",\"updated_at\":\"2024-07-25 12:00:24 UTC\",\"id\":4,\"name\":\"my_param\",\"parameter_type\":\"string\",\"associated_type\":\"location\",\"hidden_value?\":false,\"value\":\"my value\"}]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive + Content-Length: + - '373' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -307,17 +319,15 @@ interactions: Foreman_api_version: - '2' Foreman_current_location: - - 8; Test Location + - 11; Test Location Foreman_current_organization: - ; ANY Foreman_version: - - 3.4.0 + - 3.11.0-develop Keep-Alive: - timeout=15, max=97 Strict-Transport-Security: - max-age=631139040; includeSubdomains - Transfer-Encoding: - - chunked X-Content-Type-Options: - nosniff X-Download-Options: @@ -345,16 +355,18 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: DELETE - uri: https://foreman.example.org/api/locations/8/parameters/4 + uri: https://foreman.example.org/api/locations/11/parameters/4 response: body: - string: '{"id":4,"name":"my_param","value":"my value","reference_id":8,"created_at":"2022-11-08T09:29:19.947Z","updated_at":"2022-11-08T09:29:19.947Z","priority":20,"hidden_value":"*****","key_type":"string","searchable_value":"my + string: '{"id":4,"name":"my_param","value":"my value","reference_id":11,"created_at":"2024-07-25T12:00:24.026Z","updated_at":"2024-07-25T12:00:24.026Z","priority":20,"hidden_value":"*****","key_type":"string","searchable_value":"my value"}' headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive + Content-Length: + - '230' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -364,17 +376,15 @@ interactions: Foreman_api_version: - '2' Foreman_current_location: - - 8; Test Location + - 11; Test Location Foreman_current_organization: - ; ANY Foreman_version: - - 3.4.0 + - 3.11.0-develop Keep-Alive: - timeout=15, max=96 Strict-Transport-Security: - max-age=631139040; includeSubdomains - Transfer-Encoding: - - chunked X-Content-Type-Options: - nosniff X-Download-Options: diff --git a/tests/test_playbooks/fixtures/location-23.yml b/tests/test_playbooks/fixtures/location-23.yml index 50a71bcf..4d6f5711 100644 --- a/tests/test_playbooks/fixtures/location-23.yml +++ b/tests/test_playbooks/fixtures/location-23.yml @@ -14,12 +14,14 @@ interactions: uri: https://foreman.example.org/api/status response: body: - string: '{"result":"ok","status":200,"version":"3.4.0","api_version":2}' + string: '{"result":"ok","status":200,"version":"3.11.0-develop","api_version":2}' headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive + Content-Length: + - '71' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -33,13 +35,11 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.4.0 + - 3.11.0-develop Keep-Alive: - timeout=15, max=100 Strict-Transport-Security: - max-age=631139040; includeSubdomains - Transfer-Encoding: - - chunked X-Content-Type-Options: - nosniff X-Download-Options: @@ -70,14 +70,16 @@ interactions: body: string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": 4294967296,\n \"search\": \"title=\\\"Test Location\\\"\",\n \"sort\": {\n - \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"ancestry\":null,\"parent_id\":null,\"parent_name\":null,\"created_at\":\"2022-11-08 - 09:29:18 UTC\",\"updated_at\":\"2022-11-08 09:29:18 UTC\",\"id\":8,\"name\":\"Test + \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"ancestry\":null,\"parent_id\":null,\"parent_name\":null,\"created_at\":\"2024-07-25 + 12:00:20 UTC\",\"updated_at\":\"2024-07-25 12:00:20 UTC\",\"id\":11,\"name\":\"Test Location\",\"title\":\"Test Location\",\"description\":null}]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive + Content-Length: + - '385' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -91,13 +93,11 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.4.0 + - 3.11.0-develop Keep-Alive: - timeout=15, max=99 Strict-Transport-Security: - max-age=631139040; includeSubdomains - Transfer-Encoding: - - chunked X-Content-Type-Options: - nosniff X-Download-Options: @@ -123,121 +123,133 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/api/locations/8 + uri: https://foreman.example.org/api/locations/11 response: body: - string: '{"select_all_types":[],"description":null,"created_at":"2022-11-08 - 09:29:18 UTC","updated_at":"2022-11-08 09:29:18 UTC","ancestry":null,"parent_id":null,"parent_name":null,"id":8,"name":"Test - Location","title":"Test Location","users":[],"smart_proxies":[],"subnets":[],"compute_resources":[],"media":[],"ptables":[{"description":null,"os_family":"Suse","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"AutoYaST entire - SCSI disk","id":120,"inherited":false},{"description":null,"os_family":"Suse","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"AutoYaST entire - virtual disk","id":121,"inherited":false},{"description":null,"os_family":"Suse","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"AutoYaST LVM","id":122,"inherited":false},{"description":null,"os_family":"Coreos","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"CoreOS default - fake","id":123,"inherited":false},{"description":null,"os_family":"Rancheros","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Empty","id":124,"inherited":false},{"description":null,"os_family":"Freebsd","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"FreeBSD default - fake","id":125,"inherited":false},{"description":null,"os_family":"Solaris","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Jumpstart default","id":126,"inherited":false},{"description":null,"os_family":"Solaris","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Jumpstart mirrored","id":127,"inherited":false},{"description":null,"os_family":"Junos","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Junos default - fake","id":128,"inherited":false},{"description":null,"os_family":"Redhat","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Kickstart custom","id":129,"inherited":false},{"description":null,"os_family":"Redhat","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Kickstart default","id":130,"inherited":false},{"description":null,"os_family":"Redhat","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Kickstart default - thin","id":131,"inherited":false},{"description":null,"os_family":"Redhat","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Kickstart dynamic","id":132,"inherited":false},{"description":null,"os_family":"NXOS","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"NX-OS default - fake","id":133,"inherited":false},{"description":null,"os_family":"Debian","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Preseed default","id":134,"inherited":false},{"description":"Preseed + string: '{"select_all_types":[],"description":null,"created_at":"2024-07-25 + 12:00:20 UTC","updated_at":"2024-07-25 12:00:20 UTC","ancestry":null,"parent_id":null,"parent_name":null,"id":11,"name":"Test + Location","title":"Test Location","users":[],"smart_proxies":[],"subnets":[],"compute_resources":[],"media":[],"ptables":[{"description":null,"os_family":"Suse","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"AutoYaST entire + SCSI disk","id":126,"inherited":false},{"description":null,"os_family":"Suse","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"AutoYaST entire + virtual disk","id":127,"inherited":false},{"description":null,"os_family":"Suse","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"AutoYaST LVM","id":128,"inherited":false},{"description":null,"os_family":"Coreos","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"CoreOS default + fake","id":129,"inherited":false},{"description":null,"os_family":"Rancheros","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"Empty","id":130,"inherited":false},{"description":null,"os_family":"Freebsd","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"FreeBSD default + fake","id":131,"inherited":false},{"description":null,"os_family":"Solaris","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"Jumpstart default","id":132,"inherited":false},{"description":null,"os_family":"Solaris","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"Jumpstart mirrored","id":133,"inherited":false},{"description":null,"os_family":"Junos","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"Junos default + fake","id":134,"inherited":false},{"description":null,"os_family":"Redhat","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"Kickstart custom","id":135,"inherited":false},{"description":null,"os_family":"Redhat","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"Kickstart default","id":136,"inherited":false},{"description":null,"os_family":"Redhat","created_at":"2024-04-22 + 11:15:26 UTC","updated_at":"2024-04-22 11:15:26 UTC","name":"Kickstart default + encrypted","id":152,"inherited":false},{"description":null,"os_family":"Redhat","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"Kickstart default + thin","id":137,"inherited":false},{"description":null,"os_family":"Redhat","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"Kickstart dynamic","id":138,"inherited":false},{"description":null,"os_family":"NXOS","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"NX-OS default + fake","id":139,"inherited":false},{"description":null,"os_family":"Debian","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"Preseed default","id":140,"inherited":false},{"description":"Preseed Autoinstall default storage snippet configures drives automatically\nwith - LVM. The snippet is automatically indented by 2 spaces. For reference:\nhttps://ubuntu.com/server/docs/install/autoinstall-reference","os_family":"Debian","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Preseed default - autoinstall","id":135,"inherited":false},{"description":null,"os_family":"Debian","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Preseed default - LVM","id":136,"inherited":false},{"description":null,"os_family":"Windows","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Windows default - GPT EFI partition table","id":138,"inherited":false},{"description":null,"os_family":"Windows","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Windows default - partition table","id":137,"inherited":false},{"description":null,"os_family":"Xenserver","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"XenServer default","id":139,"inherited":false}],"provisioning_templates":[{"id":47,"name":"Alterator - default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":31,"name":"Alterator - default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":12,"name":"Alterator - default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":65,"name":"alterator_pkglist","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":67,"name":"ansible_provisioning_callback","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":68,"name":"ansible_tower_callback_script","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":69,"name":"ansible_tower_callback_service","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":48,"name":"Atomic - Kickstart default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":49,"name":"AutoYaST - default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":40,"name":"AutoYaST + LVM. The snippet is automatically indented by 2 spaces. For reference:\nhttps://ubuntu.com/server/docs/install/autoinstall-reference","os_family":"Debian","created_at":"2024-04-15 + 09:11:37 UTC","updated_at":"2024-04-15 09:11:37 UTC","name":"Preseed default + autoinstall","id":141,"inherited":false},{"description":"Preseed Autoinstall + default storage snippet configures drives automatically\nwith LVM and disk + encryption.\nRequires Ubuntu >= 22.04.3.\nThe snippet is automatically indented + by 2 spaces. For reference:\nhttps://ubuntu.com/server/docs/install/autoinstall-reference","os_family":"Debian","created_at":"2024-04-22 + 11:15:26 UTC","updated_at":"2024-04-22 11:15:26 UTC","name":"Preseed default + autoinstall encrypted","id":153,"inherited":false},{"description":null,"os_family":"Debian","created_at":"2024-04-15 + 09:11:37 UTC","updated_at":"2024-04-15 09:11:37 UTC","name":"Preseed default + LVM","id":142,"inherited":false},{"description":null,"os_family":"Windows","created_at":"2024-04-15 + 09:11:37 UTC","updated_at":"2024-04-15 09:11:37 UTC","name":"Windows default + GPT EFI partition table","id":144,"inherited":false},{"description":null,"os_family":"Windows","created_at":"2024-04-15 + 09:11:37 UTC","updated_at":"2024-04-15 09:11:37 UTC","name":"Windows default + partition table","id":143,"inherited":false},{"description":null,"os_family":"Xenserver","created_at":"2024-04-15 + 09:11:37 UTC","updated_at":"2024-04-15 09:11:37 UTC","name":"XenServer default","id":145,"inherited":false}],"provisioning_templates":[{"id":50,"name":"Alterator + default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":32,"name":"Alterator + default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":13,"name":"Alterator + default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":67,"name":"alterator_pkglist","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":68,"name":"ansible_provisioning_callback","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":69,"name":"ansible_tower_callback_script","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":70,"name":"ansible_tower_callback_service","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":51,"name":"AutoYaST + default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":41,"name":"AutoYaST default iPXE","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":2,"name":"AutoYaST default PXEGrub","template_kind_id":3,"template_kind_name":"PXEGrub","inherited":false},{"id":7,"name":"AutoYaST - default PXEGrub2","template_kind_id":4,"template_kind_name":"PXEGrub2","inherited":false},{"id":13,"name":"AutoYaST - default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":114,"name":"AutoYaST - default user data","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":50,"name":"AutoYaST - SLES default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":70,"name":"blacklist_kernel_modules","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":71,"name":"bmc_nic_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":72,"name":"built","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":73,"name":"chef_client","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":30,"name":"CloudInit - default","template_kind_id":12,"template_kind_name":"cloud-init","inherited":false},{"id":74,"name":"coreos_cloudconfig","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":51,"name":"CoreOS - provision","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":14,"name":"CoreOS - PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":75,"name":"create_users","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":76,"name":"csr_attributes.yaml","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":77,"name":"efibootmgr_netboot","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":78,"name":"eject_cdrom","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":79,"name":"epel","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":80,"name":"fips_packages","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":81,"name":"fix_hosts","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":32,"name":"FreeBSD - (mfsBSD) finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":52,"name":"FreeBSD - (mfsBSD) provision","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":15,"name":"FreeBSD - (mfsBSD) PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":82,"name":"freeipa_register","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":61,"name":"Global - Registration","template_kind_id":13,"template_kind_name":"registration","inherited":false},{"id":63,"name":"Grubby - default","template_kind_id":8,"template_kind_name":"script","inherited":false},{"id":83,"name":"http_proxy","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":84,"name":"insights","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":41,"name":"iPXE - default local boot","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":42,"name":"iPXE - global default","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":43,"name":"iPXE - intermediate script","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":53,"name":"Jumpstart - default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":33,"name":"Jumpstart + default PXEGrub2","template_kind_id":4,"template_kind_name":"PXEGrub2","inherited":false},{"id":14,"name":"AutoYaST + default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":119,"name":"AutoYaST + default user data","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":52,"name":"AutoYaST + SLES default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":71,"name":"blacklist_kernel_modules","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":72,"name":"bmc_nic_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":73,"name":"built","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":74,"name":"chef_client","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":31,"name":"CloudInit + default","template_kind_id":12,"template_kind_name":"cloud-init","inherited":false},{"id":75,"name":"coreos_cloudconfig","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":53,"name":"CoreOS + provision","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":15,"name":"CoreOS + PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":76,"name":"create_users","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":77,"name":"csr_attributes.yaml","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":149,"name":"disk_enc_clevis_tang","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":78,"name":"efibootmgr_netboot","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":79,"name":"eject_cdrom","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":80,"name":"epel","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":81,"name":"fips_packages","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":82,"name":"fix_hosts","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":33,"name":"FreeBSD + (mfsBSD) finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":54,"name":"FreeBSD + (mfsBSD) provision","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":16,"name":"FreeBSD + (mfsBSD) PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":83,"name":"freeipa_register","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":63,"name":"Global + Registration","template_kind_id":13,"template_kind_name":"registration","inherited":false},{"id":65,"name":"Grubby + default","template_kind_id":8,"template_kind_name":"script","inherited":false},{"id":84,"name":"http_proxy","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":85,"name":"insights","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":42,"name":"iPXE + default local boot","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":43,"name":"iPXE + global default","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":44,"name":"iPXE + intermediate script","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":55,"name":"Jumpstart + default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":34,"name":"Jumpstart default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":3,"name":"Jumpstart - default PXEGrub","template_kind_id":3,"template_kind_name":"PXEGrub","inherited":false},{"id":34,"name":"Junos - default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":54,"name":"Junos - default SLAX","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":29,"name":"Junos - default ZTP config","template_kind_id":10,"template_kind_name":"ZTP","inherited":false},{"id":55,"name":"Kickstart - default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":35,"name":"Kickstart - default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":44,"name":"Kickstart + default PXEGrub","template_kind_id":3,"template_kind_name":"PXEGrub","inherited":false},{"id":35,"name":"Junos + default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":56,"name":"Junos + default SLAX","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":30,"name":"Junos + default ZTP config","template_kind_id":10,"template_kind_name":"ZTP","inherited":false},{"id":57,"name":"Kickstart + default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":36,"name":"Kickstart + default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":45,"name":"Kickstart default iPXE","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":4,"name":"Kickstart default PXEGrub","template_kind_id":3,"template_kind_name":"PXEGrub","inherited":false},{"id":8,"name":"Kickstart - default PXEGrub2","template_kind_id":4,"template_kind_name":"PXEGrub2","inherited":false},{"id":16,"name":"Kickstart - default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":115,"name":"Kickstart - default user data","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":86,"name":"kickstart_ifcfg_bonded_interface","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":85,"name":"kickstart_ifcfg_bond_interface","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":88,"name":"kickstart_ifcfg_generic_interface","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":90,"name":"kickstart_ifcfg_get_identifier_names","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":91,"name":"kickstart_kernel_options","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":92,"name":"kickstart_networking_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":56,"name":"Kickstart - oVirt-RHVH","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":17,"name":"Kickstart - oVirt-RHVH PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":39,"name":"Linux + default PXEGrub2","template_kind_id":4,"template_kind_name":"PXEGrub2","inherited":false},{"id":17,"name":"Kickstart + default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":120,"name":"Kickstart + default user data","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":87,"name":"kickstart_ifcfg_bonded_interface","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":86,"name":"kickstart_ifcfg_bond_interface","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":88,"name":"kickstart_ifcfg_generic_interface","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":89,"name":"kickstart_ifcfg_get_identifier_names","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":90,"name":"kickstart_kernel_options","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":91,"name":"kickstart_networking_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":150,"name":"kickstart_network_interface","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":58,"name":"Kickstart + oVirt-RHVH","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":18,"name":"Kickstart + oVirt-RHVH PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":92,"name":"kickstart_rhsm","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":40,"name":"Linux host_init_config default","template_kind_id":1,"template_kind_name":"host_init_config","inherited":false},{"id":93,"name":"ntp","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":1,"name":"NX-OS - default POAP setup","template_kind_id":11,"template_kind_name":"POAP","inherited":false},{"id":94,"name":"pkg_manager","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":116,"name":"Preseed - Autoinstall cloud-init user data","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":57,"name":"Preseed - default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":36,"name":"Preseed - default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":45,"name":"Preseed - default iPXE","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":9,"name":"Preseed - default PXEGrub2","template_kind_id":4,"template_kind_name":"PXEGrub2","inherited":false},{"id":18,"name":"Preseed - default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":19,"name":"Preseed - default PXELinux Autoinstall","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":117,"name":"Preseed - default user data","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":95,"name":"preseed_kernel_options","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":97,"name":"preseed_netplan_generic_interface","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":98,"name":"preseed_netplan_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":99,"name":"preseed_networking_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":100,"name":"puppet.conf","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":102,"name":"puppetlabs_repo","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":101,"name":"puppet_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":103,"name":"pxegrub2_chainload","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":10,"name":"PXEGrub2 - default local boot","template_kind_id":4,"template_kind_name":"PXEGrub2","inherited":false},{"id":104,"name":"pxegrub2_discovery","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":11,"name":"PXEGrub2 + default POAP setup","template_kind_id":11,"template_kind_name":"POAP","inherited":false},{"id":94,"name":"pkg_manager","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":151,"name":"preseed_autoinstall_clevis_tang_wrapper","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":121,"name":"Preseed + Autoinstall cloud-init user data","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":59,"name":"Preseed + default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":37,"name":"Preseed + default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":46,"name":"Preseed + default iPXE","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":47,"name":"Preseed + default iPXE Autoinstall","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":9,"name":"Preseed + default PXEGrub2","template_kind_id":4,"template_kind_name":"PXEGrub2","inherited":false},{"id":10,"name":"Preseed + default PXEGrub2 Autoinstall","template_kind_id":4,"template_kind_name":"PXEGrub2","inherited":false},{"id":19,"name":"Preseed + default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":20,"name":"Preseed + default PXELinux Autoinstall","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":122,"name":"Preseed + default user data","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":95,"name":"preseed_kernel_options","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":96,"name":"preseed_kernel_options_autoinstall","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":97,"name":"preseed_netplan_generic_interface","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":98,"name":"preseed_netplan_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":99,"name":"preseed_networking_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":100,"name":"puppet.conf","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":102,"name":"puppetlabs_repo","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":101,"name":"puppet_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":103,"name":"pxegrub2_chainload","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":11,"name":"PXEGrub2 + default local boot","template_kind_id":4,"template_kind_name":"PXEGrub2","inherited":false},{"id":104,"name":"pxegrub2_discovery","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":12,"name":"PXEGrub2 global default","template_kind_id":4,"template_kind_name":"PXEGrub2","inherited":false},{"id":105,"name":"pxegrub2_mac","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":106,"name":"pxegrub_chainload","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":5,"name":"PXEGrub default local boot","template_kind_id":3,"template_kind_name":"PXEGrub","inherited":false},{"id":107,"name":"pxegrub_discovery","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":6,"name":"PXEGrub - global default","template_kind_id":3,"template_kind_name":"PXEGrub","inherited":false},{"id":20,"name":"PXELinux - chain iPXE","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":21,"name":"PXELinux - chain iPXE UNDI","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":108,"name":"pxelinux_chainload","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":22,"name":"PXELinux - default local boot","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":23,"name":"PXELinux - default memdisk","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":109,"name":"pxelinux_discovery","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":24,"name":"PXELinux - global default","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":87,"name":"rancheros_cloudconfig","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":58,"name":"RancherOS - provision","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":25,"name":"RancherOS - PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":89,"name":"redhat_register","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":62,"name":"remote_execution_pull_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":96,"name":"remote_execution_ssh_keys","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":66,"name":"saltstack_minion","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":110,"name":"saltstack_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":111,"name":"schedule_reboot","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":118,"name":"UserData - default","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":119,"name":"UserData - open-vm-tools","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":26,"name":"WAIK - default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":37,"name":"Windows - default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":46,"name":"Windows - default iPXE","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":59,"name":"Windows - default provision","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":27,"name":"Windows - default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":112,"name":"Windows - network","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":64,"name":"Windows - peSetup.cmd","template_kind_id":8,"template_kind_name":"script","inherited":false},{"id":60,"name":"XenServer - default answerfile","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":38,"name":"XenServer - default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":28,"name":"XenServer - default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":113,"name":"yum_proxy","template_kind_id":null,"template_kind_name":null,"inherited":false}],"domains":[],"realms":[],"hostgroups":[],"organizations":[],"hosts_count":0,"parameters":[],"deprecations":{"environments":"Environments + global default","template_kind_id":3,"template_kind_name":"PXEGrub","inherited":false},{"id":21,"name":"PXELinux + chain iPXE","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":22,"name":"PXELinux + chain iPXE UNDI","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":108,"name":"pxelinux_chainload","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":23,"name":"PXELinux + default local boot","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":24,"name":"PXELinux + default memdisk","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":109,"name":"pxelinux_discovery","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":25,"name":"PXELinux + global default","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":110,"name":"rancheros_cloudconfig","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":60,"name":"RancherOS + provision","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":26,"name":"RancherOS + PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":111,"name":"redhat_register","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":64,"name":"remote_execution_pull_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":112,"name":"remote_execution_ssh_keys","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":113,"name":"saltstack_minion","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":114,"name":"saltstack_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":115,"name":"schedule_reboot","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":116,"name":"subscription_manager_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":123,"name":"UserData + default","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":124,"name":"UserData + open-vm-tools","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":27,"name":"WAIK + default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":38,"name":"Windows + default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":48,"name":"Windows + default iPXE","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":49,"name":"Windows + default iPXE httpboot","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":61,"name":"Windows + default provision","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":28,"name":"Windows + default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":125,"name":"Windows + default user data","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":117,"name":"Windows + network","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":66,"name":"Windows + peSetup.cmd","template_kind_id":8,"template_kind_name":"script","inherited":false},{"id":62,"name":"XenServer + default answerfile","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":39,"name":"XenServer + default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":29,"name":"XenServer + default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":118,"name":"yum_proxy","template_kind_id":null,"template_kind_name":null,"inherited":false}],"domains":[],"realms":[],"hostgroups":[],"organizations":[],"hosts_count":0,"parameters":[],"deprecations":{"environments":"Environments got deprecated from this endpoint."}}' headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive + Content-Length: + - '19115' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -251,13 +263,11 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.4.0 + - 3.11.0-develop Keep-Alive: - timeout=15, max=98 Strict-Transport-Security: - max-age=631139040; includeSubdomains - Transfer-Encoding: - - chunked X-Content-Type-Options: - nosniff X-Download-Options: diff --git a/tests/test_playbooks/fixtures/location-24.yml b/tests/test_playbooks/fixtures/location-24.yml index a53f1c74..17ce6b64 100644 --- a/tests/test_playbooks/fixtures/location-24.yml +++ b/tests/test_playbooks/fixtures/location-24.yml @@ -14,12 +14,14 @@ interactions: uri: https://foreman.example.org/api/status response: body: - string: '{"result":"ok","status":200,"version":"3.4.0","api_version":2}' + string: '{"result":"ok","status":200,"version":"3.11.0-develop","api_version":2}' headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive + Content-Length: + - '71' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -33,13 +35,11 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.4.0 + - 3.11.0-develop Keep-Alive: - timeout=15, max=100 Strict-Transport-Security: - max-age=631139040; includeSubdomains - Transfer-Encoding: - - chunked X-Content-Type-Options: - nosniff X-Download-Options: @@ -70,14 +70,16 @@ interactions: body: string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": 4294967296,\n \"search\": \"title=\\\"Test Location\\\"\",\n \"sort\": {\n - \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"ancestry\":null,\"parent_id\":null,\"parent_name\":null,\"created_at\":\"2022-11-08 - 09:29:18 UTC\",\"updated_at\":\"2022-11-08 09:29:18 UTC\",\"id\":8,\"name\":\"Test + \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"ancestry\":null,\"parent_id\":null,\"parent_name\":null,\"created_at\":\"2024-07-25 + 12:00:20 UTC\",\"updated_at\":\"2024-07-25 12:00:20 UTC\",\"id\":11,\"name\":\"Test Location\",\"title\":\"Test Location\",\"description\":null}]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive + Content-Length: + - '385' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -91,13 +93,11 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.4.0 + - 3.11.0-develop Keep-Alive: - timeout=15, max=99 Strict-Transport-Security: - max-age=631139040; includeSubdomains - Transfer-Encoding: - - chunked X-Content-Type-Options: - nosniff X-Download-Options: @@ -125,16 +125,18 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: DELETE - uri: https://foreman.example.org/api/locations/8 + uri: https://foreman.example.org/api/locations/11 response: body: - string: '{"id":8,"name":"Test Location","created_at":"2022-11-08T09:29:18.149Z","updated_at":"2022-11-08T09:29:18.149Z","ignore_types":[],"ancestry":null,"title":"Test + string: '{"id":11,"name":"Test Location","created_at":"2024-07-25T12:00:20.587Z","updated_at":"2024-07-25T12:00:20.587Z","ignore_types":[],"ancestry":null,"title":"Test Location","description":null}' headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive + Content-Length: + - '189' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -148,13 +150,11 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.4.0 + - 3.11.0-develop Keep-Alive: - timeout=15, max=98 Strict-Transport-Security: - max-age=631139040; includeSubdomains - Transfer-Encoding: - - chunked X-Content-Type-Options: - nosniff X-Download-Options: diff --git a/tests/test_playbooks/fixtures/location-25.yml b/tests/test_playbooks/fixtures/location-25.yml index 938c0119..98e10a57 100644 --- a/tests/test_playbooks/fixtures/location-25.yml +++ b/tests/test_playbooks/fixtures/location-25.yml @@ -14,12 +14,14 @@ interactions: uri: https://foreman.example.org/api/status response: body: - string: '{"result":"ok","status":200,"version":"3.4.0","api_version":2}' + string: '{"result":"ok","status":200,"version":"3.11.0-develop","api_version":2}' headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive + Content-Length: + - '71' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -33,13 +35,11 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.4.0 + - 3.11.0-develop Keep-Alive: - timeout=15, max=100 Strict-Transport-Security: - max-age=631139040; includeSubdomains - Transfer-Encoding: - - chunked X-Content-Type-Options: - nosniff X-Download-Options: @@ -76,6 +76,8 @@ interactions: - max-age=0, private, must-revalidate Connection: - Keep-Alive + Content-Length: + - '190' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -89,13 +91,11 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.4.0 + - 3.11.0-develop Keep-Alive: - timeout=15, max=99 Strict-Transport-Security: - max-age=631139040; includeSubdomains - Transfer-Encoding: - - chunked X-Content-Type-Options: - nosniff X-Download-Options: @@ -132,6 +132,8 @@ interactions: - max-age=0, private, must-revalidate Connection: - Keep-Alive + Content-Length: + - '178' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -145,13 +147,11 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.4.0 + - 3.11.0-develop Keep-Alive: - timeout=15, max=98 Strict-Transport-Security: - max-age=631139040; includeSubdomains - Transfer-Encoding: - - chunked X-Content-Type-Options: - nosniff X-Download-Options: diff --git a/tests/test_playbooks/fixtures/location-26.yml b/tests/test_playbooks/fixtures/location-26.yml new file mode 100644 index 00000000..c9f58767 --- /dev/null +++ b/tests/test_playbooks/fixtures/location-26.yml @@ -0,0 +1,286 @@ +interactions: +- request: + body: null + headers: + Accept: + - application/json;version=2 + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - apypie (https://github.com/Apipie/apypie) + method: GET + uri: https://foreman.example.org/api/status + response: + body: + string: '{"result":"ok","status":200,"version":"3.11.0-develop","api_version":2}' + headers: + Cache-Control: + - max-age=0, private, must-revalidate + Connection: + - Keep-Alive + Content-Length: + - '71' + Content-Security-Policy: + - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: + - application/json; charset=utf-8 + Foreman_api_version: + - '2' + Foreman_current_location: + - ; ANY + Foreman_current_organization: + - ; ANY + Foreman_version: + - 3.11.0-develop + Keep-Alive: + - timeout=15, max=100 + Strict-Transport-Security: + - max-age=631139040; includeSubdomains + X-Content-Type-Options: + - nosniff + X-Download-Options: + - noopen + X-Frame-Options: + - sameorigin + X-Permitted-Cross-Domain-Policies: + - none + X-XSS-Protection: + - 1; mode=block + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json;version=2 + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - apypie (https://github.com/Apipie/apypie) + method: GET + uri: https://foreman.example.org/api/locations?search=title%3D%22Test+Location%22&per_page=4294967296 + response: + body: + string: "{\n \"total\": 1,\n \"subtotal\": 0,\n \"page\": 1,\n \"per_page\": + 4294967296,\n \"search\": \"title=\\\"Test Location\\\"\",\n \"sort\": {\n + \ \"by\": null,\n \"order\": null\n },\n \"results\": []\n}\n" + headers: + Cache-Control: + - max-age=0, private, must-revalidate + Connection: + - Keep-Alive + Content-Length: + - '180' + Content-Security-Policy: + - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: + - application/json; charset=utf-8 + Foreman_api_version: + - '2' + Foreman_current_location: + - ; ANY + Foreman_current_organization: + - ; ANY + Foreman_version: + - 3.11.0-develop + Keep-Alive: + - timeout=15, max=99 + Strict-Transport-Security: + - max-age=631139040; includeSubdomains + X-Content-Type-Options: + - nosniff + X-Download-Options: + - noopen + X-Frame-Options: + - sameorigin + X-Permitted-Cross-Domain-Policies: + - none + X-XSS-Protection: + - 1; mode=block + status: + code: 200 + message: OK +- request: + body: '{"location": {"name": "Test Location", "description": "MyNewLocationWithADescription"}}' + headers: + Accept: + - application/json;version=2 + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '87' + Content-Type: + - application/json + User-Agent: + - apypie (https://github.com/Apipie/apypie) + method: POST + uri: https://foreman.example.org/api/locations + response: + body: + string: '{"select_all_types":[],"description":"MyNewLocationWithADescription","created_at":"2024-07-25 + 12:00:30 UTC","updated_at":"2024-07-25 12:00:30 UTC","ancestry":null,"parent_id":null,"parent_name":null,"id":12,"name":"Test + Location","title":"Test Location","users":[],"smart_proxies":[],"subnets":[],"compute_resources":[],"media":[],"ptables":[{"description":null,"os_family":"Suse","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"AutoYaST entire + virtual disk","id":127,"inherited":false},{"description":null,"os_family":"Solaris","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"Jumpstart default","id":132,"inherited":false},{"description":null,"os_family":"Solaris","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"Jumpstart mirrored","id":133,"inherited":false},{"description":null,"os_family":"Junos","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"Junos default + fake","id":134,"inherited":false},{"description":null,"os_family":"Suse","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"AutoYaST LVM","id":128,"inherited":false},{"description":null,"os_family":"Coreos","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"CoreOS default + fake","id":129,"inherited":false},{"description":null,"os_family":"Rancheros","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"Empty","id":130,"inherited":false},{"description":null,"os_family":"Suse","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"AutoYaST entire + SCSI disk","id":126,"inherited":false},{"description":null,"os_family":"Freebsd","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"FreeBSD default + fake","id":131,"inherited":false},{"description":null,"os_family":"Redhat","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"Kickstart custom","id":135,"inherited":false},{"description":null,"os_family":"Redhat","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"Kickstart default","id":136,"inherited":false},{"description":null,"os_family":"Redhat","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"Kickstart default + thin","id":137,"inherited":false},{"description":null,"os_family":"Redhat","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"Kickstart dynamic","id":138,"inherited":false},{"description":null,"os_family":"NXOS","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"NX-OS default + fake","id":139,"inherited":false},{"description":null,"os_family":"Debian","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"Preseed default","id":140,"inherited":false},{"description":"Preseed + Autoinstall default storage snippet configures drives automatically\nwith + LVM. The snippet is automatically indented by 2 spaces. For reference:\nhttps://ubuntu.com/server/docs/install/autoinstall-reference","os_family":"Debian","created_at":"2024-04-15 + 09:11:37 UTC","updated_at":"2024-04-15 09:11:37 UTC","name":"Preseed default + autoinstall","id":141,"inherited":false},{"description":null,"os_family":"Debian","created_at":"2024-04-15 + 09:11:37 UTC","updated_at":"2024-04-15 09:11:37 UTC","name":"Preseed default + LVM","id":142,"inherited":false},{"description":null,"os_family":"Windows","created_at":"2024-04-15 + 09:11:37 UTC","updated_at":"2024-04-15 09:11:37 UTC","name":"Windows default + partition table","id":143,"inherited":false},{"description":null,"os_family":"Windows","created_at":"2024-04-15 + 09:11:37 UTC","updated_at":"2024-04-15 09:11:37 UTC","name":"Windows default + GPT EFI partition table","id":144,"inherited":false},{"description":null,"os_family":"Xenserver","created_at":"2024-04-15 + 09:11:37 UTC","updated_at":"2024-04-15 09:11:37 UTC","name":"XenServer default","id":145,"inherited":false},{"description":null,"os_family":"Redhat","created_at":"2024-04-22 + 11:15:26 UTC","updated_at":"2024-04-22 11:15:26 UTC","name":"Kickstart default + encrypted","id":152,"inherited":false},{"description":"Preseed Autoinstall + default storage snippet configures drives automatically\nwith LVM and disk + encryption.\nRequires Ubuntu >= 22.04.3.\nThe snippet is automatically indented + by 2 spaces. For reference:\nhttps://ubuntu.com/server/docs/install/autoinstall-reference","os_family":"Debian","created_at":"2024-04-22 + 11:15:26 UTC","updated_at":"2024-04-22 11:15:26 UTC","name":"Preseed default + autoinstall encrypted","id":153,"inherited":false}],"provisioning_templates":[{"id":1,"name":"NX-OS + default POAP setup","template_kind_id":11,"template_kind_name":"POAP","inherited":false},{"id":2,"name":"AutoYaST + default PXEGrub","template_kind_id":3,"template_kind_name":"PXEGrub","inherited":false},{"id":3,"name":"Jumpstart + default PXEGrub","template_kind_id":3,"template_kind_name":"PXEGrub","inherited":false},{"id":4,"name":"Kickstart + default PXEGrub","template_kind_id":3,"template_kind_name":"PXEGrub","inherited":false},{"id":5,"name":"PXEGrub + default local boot","template_kind_id":3,"template_kind_name":"PXEGrub","inherited":false},{"id":6,"name":"PXEGrub + global default","template_kind_id":3,"template_kind_name":"PXEGrub","inherited":false},{"id":7,"name":"AutoYaST + default PXEGrub2","template_kind_id":4,"template_kind_name":"PXEGrub2","inherited":false},{"id":8,"name":"Kickstart + default PXEGrub2","template_kind_id":4,"template_kind_name":"PXEGrub2","inherited":false},{"id":9,"name":"Preseed + default PXEGrub2","template_kind_id":4,"template_kind_name":"PXEGrub2","inherited":false},{"id":10,"name":"Preseed + default PXEGrub2 Autoinstall","template_kind_id":4,"template_kind_name":"PXEGrub2","inherited":false},{"id":11,"name":"PXEGrub2 + default local boot","template_kind_id":4,"template_kind_name":"PXEGrub2","inherited":false},{"id":12,"name":"PXEGrub2 + global default","template_kind_id":4,"template_kind_name":"PXEGrub2","inherited":false},{"id":13,"name":"Alterator + default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":14,"name":"AutoYaST + default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":15,"name":"CoreOS + PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":16,"name":"FreeBSD + (mfsBSD) PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":17,"name":"Kickstart + default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":18,"name":"Kickstart + oVirt-RHVH PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":19,"name":"Preseed + default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":20,"name":"Preseed + default PXELinux Autoinstall","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":79,"name":"eject_cdrom","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":21,"name":"PXELinux + chain iPXE","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":22,"name":"PXELinux + chain iPXE UNDI","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":23,"name":"PXELinux + default local boot","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":24,"name":"PXELinux + default memdisk","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":25,"name":"PXELinux + global default","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":26,"name":"RancherOS + PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":27,"name":"WAIK + default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":28,"name":"Windows + default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":29,"name":"XenServer + default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":30,"name":"Junos + default ZTP config","template_kind_id":10,"template_kind_name":"ZTP","inherited":false},{"id":32,"name":"Alterator + default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":80,"name":"epel","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":33,"name":"FreeBSD + (mfsBSD) finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":34,"name":"Jumpstart + default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":35,"name":"Junos + default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":37,"name":"Preseed + default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":38,"name":"Windows + default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":39,"name":"XenServer + default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":40,"name":"Linux + host_init_config default","template_kind_id":1,"template_kind_name":"host_init_config","inherited":false},{"id":41,"name":"AutoYaST + default iPXE","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":42,"name":"iPXE + default local boot","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":43,"name":"iPXE + global default","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":72,"name":"bmc_nic_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":44,"name":"iPXE + intermediate script","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":45,"name":"Kickstart + default iPXE","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":46,"name":"Preseed + default iPXE","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":47,"name":"Preseed + default iPXE Autoinstall","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":48,"name":"Windows + default iPXE","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":49,"name":"Windows + default iPXE httpboot","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":81,"name":"fips_packages","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":50,"name":"Alterator + default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":51,"name":"AutoYaST + default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":52,"name":"AutoYaST + SLES default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":53,"name":"CoreOS + provision","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":54,"name":"FreeBSD + (mfsBSD) provision","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":55,"name":"Jumpstart + default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":56,"name":"Junos + default SLAX","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":70,"name":"ansible_tower_callback_service","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":59,"name":"Preseed + default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":60,"name":"RancherOS + provision","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":61,"name":"Windows + default provision","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":62,"name":"XenServer + default answerfile","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":63,"name":"Global + Registration","template_kind_id":13,"template_kind_name":"registration","inherited":false},{"id":64,"name":"remote_execution_pull_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":65,"name":"Grubby + default","template_kind_id":8,"template_kind_name":"script","inherited":false},{"id":66,"name":"Windows + peSetup.cmd","template_kind_id":8,"template_kind_name":"script","inherited":false},{"id":67,"name":"alterator_pkglist","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":68,"name":"ansible_provisioning_callback","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":69,"name":"ansible_tower_callback_script","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":71,"name":"blacklist_kernel_modules","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":73,"name":"built","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":74,"name":"chef_client","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":75,"name":"coreos_cloudconfig","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":76,"name":"create_users","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":77,"name":"csr_attributes.yaml","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":78,"name":"efibootmgr_netboot","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":82,"name":"fix_hosts","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":83,"name":"freeipa_register","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":84,"name":"http_proxy","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":85,"name":"insights","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":86,"name":"kickstart_ifcfg_bond_interface","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":87,"name":"kickstart_ifcfg_bonded_interface","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":88,"name":"kickstart_ifcfg_generic_interface","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":89,"name":"kickstart_ifcfg_get_identifier_names","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":91,"name":"kickstart_networking_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":92,"name":"kickstart_rhsm","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":93,"name":"ntp","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":95,"name":"preseed_kernel_options","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":96,"name":"preseed_kernel_options_autoinstall","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":97,"name":"preseed_netplan_generic_interface","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":98,"name":"preseed_netplan_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":99,"name":"preseed_networking_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":106,"name":"pxegrub_chainload","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":100,"name":"puppet.conf","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":101,"name":"puppet_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":102,"name":"puppetlabs_repo","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":103,"name":"pxegrub2_chainload","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":104,"name":"pxegrub2_discovery","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":105,"name":"pxegrub2_mac","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":123,"name":"UserData + default","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":107,"name":"pxegrub_discovery","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":108,"name":"pxelinux_chainload","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":109,"name":"pxelinux_discovery","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":110,"name":"rancheros_cloudconfig","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":124,"name":"UserData + open-vm-tools","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":125,"name":"Windows + default user data","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":112,"name":"remote_execution_ssh_keys","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":113,"name":"saltstack_minion","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":114,"name":"saltstack_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":115,"name":"schedule_reboot","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":117,"name":"Windows + network","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":118,"name":"yum_proxy","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":119,"name":"AutoYaST + default user data","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":120,"name":"Kickstart + default user data","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":122,"name":"Preseed + default user data","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":90,"name":"kickstart_kernel_options","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":31,"name":"CloudInit + default","template_kind_id":12,"template_kind_name":"cloud-init","inherited":false},{"id":36,"name":"Kickstart + default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":57,"name":"Kickstart + default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":58,"name":"Kickstart + oVirt-RHVH","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":149,"name":"disk_enc_clevis_tang","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":150,"name":"kickstart_network_interface","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":94,"name":"pkg_manager","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":151,"name":"preseed_autoinstall_clevis_tang_wrapper","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":111,"name":"redhat_register","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":116,"name":"subscription_manager_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":121,"name":"Preseed + Autoinstall cloud-init user data","template_kind_id":9,"template_kind_name":"user_data","inherited":false}],"domains":[],"realms":[],"hostgroups":[],"organizations":[],"hosts_count":0,"parameters":[],"deprecations":{"environments":"Environments + got deprecated from this endpoint."}}' + headers: + Cache-Control: + - max-age=0, private, must-revalidate + Connection: + - Keep-Alive + Content-Length: + - '19142' + Content-Security-Policy: + - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: + - application/json; charset=utf-8 + Foreman_api_version: + - '2' + Foreman_current_location: + - ; ANY + Foreman_current_organization: + - ; ANY + Foreman_version: + - 3.11.0-develop + Keep-Alive: + - timeout=15, max=98 + Strict-Transport-Security: + - max-age=631139040; includeSubdomains + X-Content-Type-Options: + - nosniff + X-Download-Options: + - noopen + X-Frame-Options: + - sameorigin + X-Permitted-Cross-Domain-Policies: + - none + X-XSS-Protection: + - 1; mode=block + status: + code: 201 + message: Created +version: 1 diff --git a/tests/test_playbooks/fixtures/location-27.yml b/tests/test_playbooks/fixtures/location-27.yml new file mode 100644 index 00000000..6a880764 --- /dev/null +++ b/tests/test_playbooks/fixtures/location-27.yml @@ -0,0 +1,284 @@ +interactions: +- request: + body: null + headers: + Accept: + - application/json;version=2 + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - apypie (https://github.com/Apipie/apypie) + method: GET + uri: https://foreman.example.org/api/status + response: + body: + string: '{"result":"ok","status":200,"version":"3.11.0-develop","api_version":2}' + headers: + Cache-Control: + - max-age=0, private, must-revalidate + Connection: + - Keep-Alive + Content-Length: + - '71' + Content-Security-Policy: + - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: + - application/json; charset=utf-8 + Foreman_api_version: + - '2' + Foreman_current_location: + - ; ANY + Foreman_current_organization: + - ; ANY + Foreman_version: + - 3.11.0-develop + Keep-Alive: + - timeout=15, max=100 + Strict-Transport-Security: + - max-age=631139040; includeSubdomains + X-Content-Type-Options: + - nosniff + X-Download-Options: + - noopen + X-Frame-Options: + - sameorigin + X-Permitted-Cross-Domain-Policies: + - none + X-XSS-Protection: + - 1; mode=block + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json;version=2 + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - apypie (https://github.com/Apipie/apypie) + method: GET + uri: https://foreman.example.org/api/locations?search=title%3D%22Test+Location%22&per_page=4294967296 + response: + body: + string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": + 4294967296,\n \"search\": \"title=\\\"Test Location\\\"\",\n \"sort\": {\n + \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"ancestry\":null,\"parent_id\":null,\"parent_name\":null,\"created_at\":\"2024-07-25 + 12:00:30 UTC\",\"updated_at\":\"2024-07-25 12:00:30 UTC\",\"id\":12,\"name\":\"Test + Location\",\"title\":\"Test Location\",\"description\":\"MyNewLocationWithADescription\"}]\n}\n" + headers: + Cache-Control: + - max-age=0, private, must-revalidate + Connection: + - Keep-Alive + Content-Length: + - '412' + Content-Security-Policy: + - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: + - application/json; charset=utf-8 + Foreman_api_version: + - '2' + Foreman_current_location: + - ; ANY + Foreman_current_organization: + - ; ANY + Foreman_version: + - 3.11.0-develop + Keep-Alive: + - timeout=15, max=99 + Strict-Transport-Security: + - max-age=631139040; includeSubdomains + X-Content-Type-Options: + - nosniff + X-Download-Options: + - noopen + X-Frame-Options: + - sameorigin + X-Permitted-Cross-Domain-Policies: + - none + X-XSS-Protection: + - 1; mode=block + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json;version=2 + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - apypie (https://github.com/Apipie/apypie) + method: GET + uri: https://foreman.example.org/api/locations/12 + response: + body: + string: '{"select_all_types":[],"description":"MyNewLocationWithADescription","created_at":"2024-07-25 + 12:00:30 UTC","updated_at":"2024-07-25 12:00:30 UTC","ancestry":null,"parent_id":null,"parent_name":null,"id":12,"name":"Test + Location","title":"Test Location","users":[],"smart_proxies":[],"subnets":[],"compute_resources":[],"media":[],"ptables":[{"description":null,"os_family":"Suse","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"AutoYaST entire + SCSI disk","id":126,"inherited":false},{"description":null,"os_family":"Suse","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"AutoYaST entire + virtual disk","id":127,"inherited":false},{"description":null,"os_family":"Suse","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"AutoYaST LVM","id":128,"inherited":false},{"description":null,"os_family":"Coreos","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"CoreOS default + fake","id":129,"inherited":false},{"description":null,"os_family":"Rancheros","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"Empty","id":130,"inherited":false},{"description":null,"os_family":"Freebsd","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"FreeBSD default + fake","id":131,"inherited":false},{"description":null,"os_family":"Solaris","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"Jumpstart default","id":132,"inherited":false},{"description":null,"os_family":"Solaris","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"Jumpstart mirrored","id":133,"inherited":false},{"description":null,"os_family":"Junos","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"Junos default + fake","id":134,"inherited":false},{"description":null,"os_family":"Redhat","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"Kickstart custom","id":135,"inherited":false},{"description":null,"os_family":"Redhat","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"Kickstart default","id":136,"inherited":false},{"description":null,"os_family":"Redhat","created_at":"2024-04-22 + 11:15:26 UTC","updated_at":"2024-04-22 11:15:26 UTC","name":"Kickstart default + encrypted","id":152,"inherited":false},{"description":null,"os_family":"Redhat","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"Kickstart default + thin","id":137,"inherited":false},{"description":null,"os_family":"Redhat","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"Kickstart dynamic","id":138,"inherited":false},{"description":null,"os_family":"NXOS","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"NX-OS default + fake","id":139,"inherited":false},{"description":null,"os_family":"Debian","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"Preseed default","id":140,"inherited":false},{"description":"Preseed + Autoinstall default storage snippet configures drives automatically\nwith + LVM. The snippet is automatically indented by 2 spaces. For reference:\nhttps://ubuntu.com/server/docs/install/autoinstall-reference","os_family":"Debian","created_at":"2024-04-15 + 09:11:37 UTC","updated_at":"2024-04-15 09:11:37 UTC","name":"Preseed default + autoinstall","id":141,"inherited":false},{"description":"Preseed Autoinstall + default storage snippet configures drives automatically\nwith LVM and disk + encryption.\nRequires Ubuntu >= 22.04.3.\nThe snippet is automatically indented + by 2 spaces. For reference:\nhttps://ubuntu.com/server/docs/install/autoinstall-reference","os_family":"Debian","created_at":"2024-04-22 + 11:15:26 UTC","updated_at":"2024-04-22 11:15:26 UTC","name":"Preseed default + autoinstall encrypted","id":153,"inherited":false},{"description":null,"os_family":"Debian","created_at":"2024-04-15 + 09:11:37 UTC","updated_at":"2024-04-15 09:11:37 UTC","name":"Preseed default + LVM","id":142,"inherited":false},{"description":null,"os_family":"Windows","created_at":"2024-04-15 + 09:11:37 UTC","updated_at":"2024-04-15 09:11:37 UTC","name":"Windows default + GPT EFI partition table","id":144,"inherited":false},{"description":null,"os_family":"Windows","created_at":"2024-04-15 + 09:11:37 UTC","updated_at":"2024-04-15 09:11:37 UTC","name":"Windows default + partition table","id":143,"inherited":false},{"description":null,"os_family":"Xenserver","created_at":"2024-04-15 + 09:11:37 UTC","updated_at":"2024-04-15 09:11:37 UTC","name":"XenServer default","id":145,"inherited":false}],"provisioning_templates":[{"id":50,"name":"Alterator + default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":32,"name":"Alterator + default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":13,"name":"Alterator + default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":67,"name":"alterator_pkglist","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":68,"name":"ansible_provisioning_callback","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":69,"name":"ansible_tower_callback_script","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":70,"name":"ansible_tower_callback_service","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":51,"name":"AutoYaST + default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":41,"name":"AutoYaST + default iPXE","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":2,"name":"AutoYaST + default PXEGrub","template_kind_id":3,"template_kind_name":"PXEGrub","inherited":false},{"id":7,"name":"AutoYaST + default PXEGrub2","template_kind_id":4,"template_kind_name":"PXEGrub2","inherited":false},{"id":14,"name":"AutoYaST + default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":119,"name":"AutoYaST + default user data","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":52,"name":"AutoYaST + SLES default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":71,"name":"blacklist_kernel_modules","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":72,"name":"bmc_nic_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":73,"name":"built","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":74,"name":"chef_client","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":31,"name":"CloudInit + default","template_kind_id":12,"template_kind_name":"cloud-init","inherited":false},{"id":75,"name":"coreos_cloudconfig","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":53,"name":"CoreOS + provision","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":15,"name":"CoreOS + PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":76,"name":"create_users","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":77,"name":"csr_attributes.yaml","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":149,"name":"disk_enc_clevis_tang","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":78,"name":"efibootmgr_netboot","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":79,"name":"eject_cdrom","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":80,"name":"epel","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":81,"name":"fips_packages","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":82,"name":"fix_hosts","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":33,"name":"FreeBSD + (mfsBSD) finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":54,"name":"FreeBSD + (mfsBSD) provision","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":16,"name":"FreeBSD + (mfsBSD) PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":83,"name":"freeipa_register","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":63,"name":"Global + Registration","template_kind_id":13,"template_kind_name":"registration","inherited":false},{"id":65,"name":"Grubby + default","template_kind_id":8,"template_kind_name":"script","inherited":false},{"id":84,"name":"http_proxy","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":85,"name":"insights","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":42,"name":"iPXE + default local boot","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":43,"name":"iPXE + global default","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":44,"name":"iPXE + intermediate script","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":55,"name":"Jumpstart + default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":34,"name":"Jumpstart + default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":3,"name":"Jumpstart + default PXEGrub","template_kind_id":3,"template_kind_name":"PXEGrub","inherited":false},{"id":35,"name":"Junos + default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":56,"name":"Junos + default SLAX","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":30,"name":"Junos + default ZTP config","template_kind_id":10,"template_kind_name":"ZTP","inherited":false},{"id":57,"name":"Kickstart + default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":36,"name":"Kickstart + default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":45,"name":"Kickstart + default iPXE","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":4,"name":"Kickstart + default PXEGrub","template_kind_id":3,"template_kind_name":"PXEGrub","inherited":false},{"id":8,"name":"Kickstart + default PXEGrub2","template_kind_id":4,"template_kind_name":"PXEGrub2","inherited":false},{"id":17,"name":"Kickstart + default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":120,"name":"Kickstart + default user data","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":87,"name":"kickstart_ifcfg_bonded_interface","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":86,"name":"kickstart_ifcfg_bond_interface","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":88,"name":"kickstart_ifcfg_generic_interface","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":89,"name":"kickstart_ifcfg_get_identifier_names","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":90,"name":"kickstart_kernel_options","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":91,"name":"kickstart_networking_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":150,"name":"kickstart_network_interface","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":58,"name":"Kickstart + oVirt-RHVH","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":18,"name":"Kickstart + oVirt-RHVH PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":92,"name":"kickstart_rhsm","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":40,"name":"Linux + host_init_config default","template_kind_id":1,"template_kind_name":"host_init_config","inherited":false},{"id":93,"name":"ntp","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":1,"name":"NX-OS + default POAP setup","template_kind_id":11,"template_kind_name":"POAP","inherited":false},{"id":94,"name":"pkg_manager","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":151,"name":"preseed_autoinstall_clevis_tang_wrapper","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":121,"name":"Preseed + Autoinstall cloud-init user data","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":59,"name":"Preseed + default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":37,"name":"Preseed + default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":46,"name":"Preseed + default iPXE","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":47,"name":"Preseed + default iPXE Autoinstall","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":9,"name":"Preseed + default PXEGrub2","template_kind_id":4,"template_kind_name":"PXEGrub2","inherited":false},{"id":10,"name":"Preseed + default PXEGrub2 Autoinstall","template_kind_id":4,"template_kind_name":"PXEGrub2","inherited":false},{"id":19,"name":"Preseed + default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":20,"name":"Preseed + default PXELinux Autoinstall","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":122,"name":"Preseed + default user data","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":95,"name":"preseed_kernel_options","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":96,"name":"preseed_kernel_options_autoinstall","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":97,"name":"preseed_netplan_generic_interface","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":98,"name":"preseed_netplan_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":99,"name":"preseed_networking_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":100,"name":"puppet.conf","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":102,"name":"puppetlabs_repo","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":101,"name":"puppet_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":103,"name":"pxegrub2_chainload","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":11,"name":"PXEGrub2 + default local boot","template_kind_id":4,"template_kind_name":"PXEGrub2","inherited":false},{"id":104,"name":"pxegrub2_discovery","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":12,"name":"PXEGrub2 + global default","template_kind_id":4,"template_kind_name":"PXEGrub2","inherited":false},{"id":105,"name":"pxegrub2_mac","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":106,"name":"pxegrub_chainload","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":5,"name":"PXEGrub + default local boot","template_kind_id":3,"template_kind_name":"PXEGrub","inherited":false},{"id":107,"name":"pxegrub_discovery","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":6,"name":"PXEGrub + global default","template_kind_id":3,"template_kind_name":"PXEGrub","inherited":false},{"id":21,"name":"PXELinux + chain iPXE","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":22,"name":"PXELinux + chain iPXE UNDI","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":108,"name":"pxelinux_chainload","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":23,"name":"PXELinux + default local boot","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":24,"name":"PXELinux + default memdisk","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":109,"name":"pxelinux_discovery","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":25,"name":"PXELinux + global default","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":110,"name":"rancheros_cloudconfig","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":60,"name":"RancherOS + provision","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":26,"name":"RancherOS + PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":111,"name":"redhat_register","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":64,"name":"remote_execution_pull_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":112,"name":"remote_execution_ssh_keys","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":113,"name":"saltstack_minion","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":114,"name":"saltstack_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":115,"name":"schedule_reboot","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":116,"name":"subscription_manager_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":123,"name":"UserData + default","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":124,"name":"UserData + open-vm-tools","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":27,"name":"WAIK + default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":38,"name":"Windows + default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":48,"name":"Windows + default iPXE","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":49,"name":"Windows + default iPXE httpboot","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":61,"name":"Windows + default provision","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":28,"name":"Windows + default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":125,"name":"Windows + default user data","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":117,"name":"Windows + network","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":66,"name":"Windows + peSetup.cmd","template_kind_id":8,"template_kind_name":"script","inherited":false},{"id":62,"name":"XenServer + default answerfile","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":39,"name":"XenServer + default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":29,"name":"XenServer + default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":118,"name":"yum_proxy","template_kind_id":null,"template_kind_name":null,"inherited":false}],"domains":[],"realms":[],"hostgroups":[],"organizations":[],"hosts_count":0,"parameters":[],"deprecations":{"environments":"Environments + got deprecated from this endpoint."}}' + headers: + Cache-Control: + - max-age=0, private, must-revalidate + Connection: + - Keep-Alive + Content-Length: + - '19142' + Content-Security-Policy: + - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: + - application/json; charset=utf-8 + Foreman_api_version: + - '2' + Foreman_current_location: + - ; ANY + Foreman_current_organization: + - ; ANY + Foreman_version: + - 3.11.0-develop + Keep-Alive: + - timeout=15, max=98 + Strict-Transport-Security: + - max-age=631139040; includeSubdomains + X-Content-Type-Options: + - nosniff + X-Download-Options: + - noopen + X-Frame-Options: + - sameorigin + X-Permitted-Cross-Domain-Policies: + - none + X-XSS-Protection: + - 1; mode=block + status: + code: 200 + message: OK +version: 1 diff --git a/tests/test_playbooks/fixtures/location-3.yml b/tests/test_playbooks/fixtures/location-3.yml index 27eaa2d8..da5dfd0c 100644 --- a/tests/test_playbooks/fixtures/location-3.yml +++ b/tests/test_playbooks/fixtures/location-3.yml @@ -14,12 +14,14 @@ interactions: uri: https://foreman.example.org/api/status response: body: - string: '{"result":"ok","status":200,"version":"3.4.0","api_version":2}' + string: '{"result":"ok","status":200,"version":"3.11.0-develop","api_version":2}' headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive + Content-Length: + - '71' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -33,13 +35,11 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.4.0 + - 3.11.0-develop Keep-Alive: - timeout=15, max=100 Strict-Transport-Security: - max-age=631139040; includeSubdomains - Transfer-Encoding: - - chunked X-Content-Type-Options: - nosniff X-Download-Options: @@ -71,14 +71,16 @@ interactions: string: "{\n \"total\": 3,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": 4294967296,\n \"search\": \"title=\\\"Test Location/Sub Location 1\\\"\",\n \ \"sort\": {\n \"by\": null,\n \"order\": null\n },\n \"results\": - [{\"ancestry\":\"4\",\"parent_id\":4,\"parent_name\":\"Test Location\",\"created_at\":\"2022-11-08 - 09:29:07 UTC\",\"updated_at\":\"2022-11-08 09:29:07 UTC\",\"id\":5,\"name\":\"Sub + [{\"ancestry\":\"7\",\"parent_id\":7,\"parent_name\":\"Test Location\",\"created_at\":\"2024-07-25 + 12:00:04 UTC\",\"updated_at\":\"2024-07-25 12:00:04 UTC\",\"id\":8,\"name\":\"Sub Location 1\",\"title\":\"Test Location/Sub Location 1\",\"description\":null}]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive + Content-Length: + - '422' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -92,13 +94,11 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.4.0 + - 3.11.0-develop Keep-Alive: - timeout=15, max=99 Strict-Transport-Security: - max-age=631139040; includeSubdomains - Transfer-Encoding: - - chunked X-Content-Type-Options: - nosniff X-Download-Options: @@ -124,116 +124,126 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/api/locations/5 + uri: https://foreman.example.org/api/locations/8 response: body: - string: '{"select_all_types":[],"description":null,"created_at":"2022-11-08 - 09:29:07 UTC","updated_at":"2022-11-08 09:29:07 UTC","ancestry":"4","parent_id":4,"parent_name":"Test - Location","id":5,"name":"Sub Location 1","title":"Test Location/Sub Location - 1","users":[],"smart_proxies":[],"subnets":[],"compute_resources":[],"media":[],"ptables":[{"description":null,"os_family":"Suse","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"AutoYaST entire - SCSI disk","id":120,"inherited":false},{"description":null,"os_family":"Suse","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"AutoYaST entire - virtual disk","id":121,"inherited":false},{"description":null,"os_family":"Suse","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"AutoYaST LVM","id":122,"inherited":false},{"description":null,"os_family":"Coreos","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"CoreOS default - fake","id":123,"inherited":false},{"description":null,"os_family":"Rancheros","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Empty","id":124,"inherited":false},{"description":null,"os_family":"Freebsd","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"FreeBSD default - fake","id":125,"inherited":false},{"description":null,"os_family":"Solaris","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Jumpstart default","id":126,"inherited":false},{"description":null,"os_family":"Solaris","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Jumpstart mirrored","id":127,"inherited":false},{"description":null,"os_family":"Junos","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Junos default - fake","id":128,"inherited":false},{"description":null,"os_family":"Redhat","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Kickstart custom","id":129,"inherited":false},{"description":null,"os_family":"Redhat","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Kickstart default","id":130,"inherited":false},{"description":null,"os_family":"Redhat","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Kickstart default - thin","id":131,"inherited":false},{"description":null,"os_family":"Redhat","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Kickstart dynamic","id":132,"inherited":false},{"description":null,"os_family":"NXOS","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"NX-OS default - fake","id":133,"inherited":false},{"description":null,"os_family":"Debian","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Preseed default","id":134,"inherited":false},{"description":"Preseed + string: '{"select_all_types":[],"description":null,"created_at":"2024-07-25 + 12:00:04 UTC","updated_at":"2024-07-25 12:00:04 UTC","ancestry":"7","parent_id":7,"parent_name":"Test + Location","id":8,"name":"Sub Location 1","title":"Test Location/Sub Location + 1","users":[],"smart_proxies":[],"subnets":[],"compute_resources":[],"media":[],"ptables":[{"description":null,"os_family":"Suse","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"AutoYaST entire + SCSI disk","id":126,"inherited":false},{"description":null,"os_family":"Suse","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"AutoYaST entire + virtual disk","id":127,"inherited":false},{"description":null,"os_family":"Suse","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"AutoYaST LVM","id":128,"inherited":false},{"description":null,"os_family":"Coreos","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"CoreOS default + fake","id":129,"inherited":false},{"description":null,"os_family":"Rancheros","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"Empty","id":130,"inherited":false},{"description":null,"os_family":"Freebsd","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"FreeBSD default + fake","id":131,"inherited":false},{"description":null,"os_family":"Solaris","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"Jumpstart default","id":132,"inherited":false},{"description":null,"os_family":"Solaris","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"Jumpstart mirrored","id":133,"inherited":false},{"description":null,"os_family":"Junos","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"Junos default + fake","id":134,"inherited":false},{"description":null,"os_family":"Redhat","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"Kickstart custom","id":135,"inherited":false},{"description":null,"os_family":"Redhat","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"Kickstart default","id":136,"inherited":false},{"description":null,"os_family":"Redhat","created_at":"2024-04-22 + 11:15:26 UTC","updated_at":"2024-04-22 11:15:26 UTC","name":"Kickstart default + encrypted","id":152,"inherited":false},{"description":null,"os_family":"Redhat","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"Kickstart default + thin","id":137,"inherited":false},{"description":null,"os_family":"Redhat","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"Kickstart dynamic","id":138,"inherited":false},{"description":null,"os_family":"NXOS","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"NX-OS default + fake","id":139,"inherited":false},{"description":null,"os_family":"Debian","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"Preseed default","id":140,"inherited":false},{"description":"Preseed Autoinstall default storage snippet configures drives automatically\nwith - LVM. The snippet is automatically indented by 2 spaces. For reference:\nhttps://ubuntu.com/server/docs/install/autoinstall-reference","os_family":"Debian","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Preseed default - autoinstall","id":135,"inherited":false},{"description":null,"os_family":"Debian","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Preseed default - LVM","id":136,"inherited":false},{"description":null,"os_family":"Windows","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Windows default - GPT EFI partition table","id":138,"inherited":false},{"description":null,"os_family":"Windows","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Windows default - partition table","id":137,"inherited":false},{"description":null,"os_family":"Xenserver","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"XenServer default","id":139,"inherited":false}],"provisioning_templates":[{"id":47,"name":"Alterator - default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":31,"name":"Alterator - default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":12,"name":"Alterator - default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":65,"name":"alterator_pkglist","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":67,"name":"ansible_provisioning_callback","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":68,"name":"ansible_tower_callback_script","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":69,"name":"ansible_tower_callback_service","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":48,"name":"Atomic - Kickstart default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":49,"name":"AutoYaST - default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":40,"name":"AutoYaST + LVM. The snippet is automatically indented by 2 spaces. For reference:\nhttps://ubuntu.com/server/docs/install/autoinstall-reference","os_family":"Debian","created_at":"2024-04-15 + 09:11:37 UTC","updated_at":"2024-04-15 09:11:37 UTC","name":"Preseed default + autoinstall","id":141,"inherited":false},{"description":"Preseed Autoinstall + default storage snippet configures drives automatically\nwith LVM and disk + encryption.\nRequires Ubuntu >= 22.04.3.\nThe snippet is automatically indented + by 2 spaces. For reference:\nhttps://ubuntu.com/server/docs/install/autoinstall-reference","os_family":"Debian","created_at":"2024-04-22 + 11:15:26 UTC","updated_at":"2024-04-22 11:15:26 UTC","name":"Preseed default + autoinstall encrypted","id":153,"inherited":false},{"description":null,"os_family":"Debian","created_at":"2024-04-15 + 09:11:37 UTC","updated_at":"2024-04-15 09:11:37 UTC","name":"Preseed default + LVM","id":142,"inherited":false},{"description":null,"os_family":"Windows","created_at":"2024-04-15 + 09:11:37 UTC","updated_at":"2024-04-15 09:11:37 UTC","name":"Windows default + GPT EFI partition table","id":144,"inherited":false},{"description":null,"os_family":"Windows","created_at":"2024-04-15 + 09:11:37 UTC","updated_at":"2024-04-15 09:11:37 UTC","name":"Windows default + partition table","id":143,"inherited":false},{"description":null,"os_family":"Xenserver","created_at":"2024-04-15 + 09:11:37 UTC","updated_at":"2024-04-15 09:11:37 UTC","name":"XenServer default","id":145,"inherited":false}],"provisioning_templates":[{"id":50,"name":"Alterator + default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":32,"name":"Alterator + default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":13,"name":"Alterator + default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":67,"name":"alterator_pkglist","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":68,"name":"ansible_provisioning_callback","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":69,"name":"ansible_tower_callback_script","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":70,"name":"ansible_tower_callback_service","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":51,"name":"AutoYaST + default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":41,"name":"AutoYaST default iPXE","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":2,"name":"AutoYaST default PXEGrub","template_kind_id":3,"template_kind_name":"PXEGrub","inherited":false},{"id":7,"name":"AutoYaST - default PXEGrub2","template_kind_id":4,"template_kind_name":"PXEGrub2","inherited":false},{"id":13,"name":"AutoYaST - default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":114,"name":"AutoYaST - default user data","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":50,"name":"AutoYaST - SLES default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":70,"name":"blacklist_kernel_modules","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":71,"name":"bmc_nic_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":72,"name":"built","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":73,"name":"chef_client","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":30,"name":"CloudInit - default","template_kind_id":12,"template_kind_name":"cloud-init","inherited":false},{"id":74,"name":"coreos_cloudconfig","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":51,"name":"CoreOS - provision","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":14,"name":"CoreOS - PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":75,"name":"create_users","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":76,"name":"csr_attributes.yaml","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":77,"name":"efibootmgr_netboot","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":78,"name":"eject_cdrom","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":79,"name":"epel","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":80,"name":"fips_packages","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":81,"name":"fix_hosts","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":32,"name":"FreeBSD - (mfsBSD) finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":52,"name":"FreeBSD - (mfsBSD) provision","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":15,"name":"FreeBSD - (mfsBSD) PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":82,"name":"freeipa_register","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":61,"name":"Global - Registration","template_kind_id":13,"template_kind_name":"registration","inherited":false},{"id":63,"name":"Grubby - default","template_kind_id":8,"template_kind_name":"script","inherited":false},{"id":83,"name":"http_proxy","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":84,"name":"insights","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":41,"name":"iPXE - default local boot","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":42,"name":"iPXE - global default","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":43,"name":"iPXE - intermediate script","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":53,"name":"Jumpstart - default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":33,"name":"Jumpstart + default PXEGrub2","template_kind_id":4,"template_kind_name":"PXEGrub2","inherited":false},{"id":14,"name":"AutoYaST + default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":119,"name":"AutoYaST + default user data","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":52,"name":"AutoYaST + SLES default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":71,"name":"blacklist_kernel_modules","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":72,"name":"bmc_nic_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":73,"name":"built","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":74,"name":"chef_client","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":31,"name":"CloudInit + default","template_kind_id":12,"template_kind_name":"cloud-init","inherited":false},{"id":75,"name":"coreos_cloudconfig","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":53,"name":"CoreOS + provision","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":15,"name":"CoreOS + PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":76,"name":"create_users","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":77,"name":"csr_attributes.yaml","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":149,"name":"disk_enc_clevis_tang","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":78,"name":"efibootmgr_netboot","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":79,"name":"eject_cdrom","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":80,"name":"epel","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":81,"name":"fips_packages","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":82,"name":"fix_hosts","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":33,"name":"FreeBSD + (mfsBSD) finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":54,"name":"FreeBSD + (mfsBSD) provision","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":16,"name":"FreeBSD + (mfsBSD) PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":83,"name":"freeipa_register","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":63,"name":"Global + Registration","template_kind_id":13,"template_kind_name":"registration","inherited":false},{"id":65,"name":"Grubby + default","template_kind_id":8,"template_kind_name":"script","inherited":false},{"id":84,"name":"http_proxy","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":85,"name":"insights","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":42,"name":"iPXE + default local boot","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":43,"name":"iPXE + global default","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":44,"name":"iPXE + intermediate script","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":55,"name":"Jumpstart + default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":34,"name":"Jumpstart default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":3,"name":"Jumpstart - default PXEGrub","template_kind_id":3,"template_kind_name":"PXEGrub","inherited":false},{"id":34,"name":"Junos - default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":54,"name":"Junos - default SLAX","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":29,"name":"Junos - default ZTP config","template_kind_id":10,"template_kind_name":"ZTP","inherited":false},{"id":55,"name":"Kickstart - default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":35,"name":"Kickstart - default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":44,"name":"Kickstart + default PXEGrub","template_kind_id":3,"template_kind_name":"PXEGrub","inherited":false},{"id":35,"name":"Junos + default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":56,"name":"Junos + default SLAX","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":30,"name":"Junos + default ZTP config","template_kind_id":10,"template_kind_name":"ZTP","inherited":false},{"id":57,"name":"Kickstart + default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":36,"name":"Kickstart + default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":45,"name":"Kickstart default iPXE","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":4,"name":"Kickstart default PXEGrub","template_kind_id":3,"template_kind_name":"PXEGrub","inherited":false},{"id":8,"name":"Kickstart - default PXEGrub2","template_kind_id":4,"template_kind_name":"PXEGrub2","inherited":false},{"id":16,"name":"Kickstart - default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":115,"name":"Kickstart - default user data","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":86,"name":"kickstart_ifcfg_bonded_interface","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":85,"name":"kickstart_ifcfg_bond_interface","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":88,"name":"kickstart_ifcfg_generic_interface","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":90,"name":"kickstart_ifcfg_get_identifier_names","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":91,"name":"kickstart_kernel_options","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":92,"name":"kickstart_networking_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":56,"name":"Kickstart - oVirt-RHVH","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":17,"name":"Kickstart - oVirt-RHVH PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":39,"name":"Linux + default PXEGrub2","template_kind_id":4,"template_kind_name":"PXEGrub2","inherited":false},{"id":17,"name":"Kickstart + default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":120,"name":"Kickstart + default user data","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":87,"name":"kickstart_ifcfg_bonded_interface","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":86,"name":"kickstart_ifcfg_bond_interface","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":88,"name":"kickstart_ifcfg_generic_interface","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":89,"name":"kickstart_ifcfg_get_identifier_names","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":90,"name":"kickstart_kernel_options","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":91,"name":"kickstart_networking_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":150,"name":"kickstart_network_interface","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":58,"name":"Kickstart + oVirt-RHVH","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":18,"name":"Kickstart + oVirt-RHVH PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":92,"name":"kickstart_rhsm","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":40,"name":"Linux host_init_config default","template_kind_id":1,"template_kind_name":"host_init_config","inherited":false},{"id":93,"name":"ntp","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":1,"name":"NX-OS - default POAP setup","template_kind_id":11,"template_kind_name":"POAP","inherited":false},{"id":94,"name":"pkg_manager","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":116,"name":"Preseed - Autoinstall cloud-init user data","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":57,"name":"Preseed - default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":36,"name":"Preseed - default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":45,"name":"Preseed - default iPXE","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":9,"name":"Preseed - default PXEGrub2","template_kind_id":4,"template_kind_name":"PXEGrub2","inherited":false},{"id":18,"name":"Preseed - default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":19,"name":"Preseed - default PXELinux Autoinstall","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":117,"name":"Preseed - default user data","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":95,"name":"preseed_kernel_options","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":97,"name":"preseed_netplan_generic_interface","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":98,"name":"preseed_netplan_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":99,"name":"preseed_networking_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":100,"name":"puppet.conf","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":102,"name":"puppetlabs_repo","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":101,"name":"puppet_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":103,"name":"pxegrub2_chainload","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":10,"name":"PXEGrub2 - default local boot","template_kind_id":4,"template_kind_name":"PXEGrub2","inherited":false},{"id":104,"name":"pxegrub2_discovery","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":11,"name":"PXEGrub2 + default POAP setup","template_kind_id":11,"template_kind_name":"POAP","inherited":false},{"id":94,"name":"pkg_manager","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":151,"name":"preseed_autoinstall_clevis_tang_wrapper","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":121,"name":"Preseed + Autoinstall cloud-init user data","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":59,"name":"Preseed + default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":37,"name":"Preseed + default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":46,"name":"Preseed + default iPXE","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":47,"name":"Preseed + default iPXE Autoinstall","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":9,"name":"Preseed + default PXEGrub2","template_kind_id":4,"template_kind_name":"PXEGrub2","inherited":false},{"id":10,"name":"Preseed + default PXEGrub2 Autoinstall","template_kind_id":4,"template_kind_name":"PXEGrub2","inherited":false},{"id":19,"name":"Preseed + default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":20,"name":"Preseed + default PXELinux Autoinstall","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":122,"name":"Preseed + default user data","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":95,"name":"preseed_kernel_options","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":96,"name":"preseed_kernel_options_autoinstall","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":97,"name":"preseed_netplan_generic_interface","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":98,"name":"preseed_netplan_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":99,"name":"preseed_networking_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":100,"name":"puppet.conf","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":102,"name":"puppetlabs_repo","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":101,"name":"puppet_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":103,"name":"pxegrub2_chainload","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":11,"name":"PXEGrub2 + default local boot","template_kind_id":4,"template_kind_name":"PXEGrub2","inherited":false},{"id":104,"name":"pxegrub2_discovery","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":12,"name":"PXEGrub2 global default","template_kind_id":4,"template_kind_name":"PXEGrub2","inherited":false},{"id":105,"name":"pxegrub2_mac","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":106,"name":"pxegrub_chainload","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":5,"name":"PXEGrub default local boot","template_kind_id":3,"template_kind_name":"PXEGrub","inherited":false},{"id":107,"name":"pxegrub_discovery","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":6,"name":"PXEGrub - global default","template_kind_id":3,"template_kind_name":"PXEGrub","inherited":false},{"id":20,"name":"PXELinux - chain iPXE","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":21,"name":"PXELinux - chain iPXE UNDI","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":108,"name":"pxelinux_chainload","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":22,"name":"PXELinux - default local boot","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":23,"name":"PXELinux - default memdisk","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":109,"name":"pxelinux_discovery","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":24,"name":"PXELinux - global default","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":87,"name":"rancheros_cloudconfig","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":58,"name":"RancherOS - provision","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":25,"name":"RancherOS - PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":89,"name":"redhat_register","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":62,"name":"remote_execution_pull_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":96,"name":"remote_execution_ssh_keys","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":66,"name":"saltstack_minion","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":110,"name":"saltstack_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":111,"name":"schedule_reboot","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":118,"name":"UserData - default","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":119,"name":"UserData - open-vm-tools","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":26,"name":"WAIK - default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":37,"name":"Windows - default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":46,"name":"Windows - default iPXE","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":59,"name":"Windows - default provision","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":27,"name":"Windows - default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":112,"name":"Windows - network","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":64,"name":"Windows - peSetup.cmd","template_kind_id":8,"template_kind_name":"script","inherited":false},{"id":60,"name":"XenServer - default answerfile","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":38,"name":"XenServer - default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":28,"name":"XenServer - default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":113,"name":"yum_proxy","template_kind_id":null,"template_kind_name":null,"inherited":false}],"domains":[],"realms":[],"hostgroups":[],"organizations":[{"id":3,"name":"Test + global default","template_kind_id":3,"template_kind_name":"PXEGrub","inherited":false},{"id":21,"name":"PXELinux + chain iPXE","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":22,"name":"PXELinux + chain iPXE UNDI","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":108,"name":"pxelinux_chainload","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":23,"name":"PXELinux + default local boot","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":24,"name":"PXELinux + default memdisk","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":109,"name":"pxelinux_discovery","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":25,"name":"PXELinux + global default","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":110,"name":"rancheros_cloudconfig","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":60,"name":"RancherOS + provision","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":26,"name":"RancherOS + PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":111,"name":"redhat_register","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":64,"name":"remote_execution_pull_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":112,"name":"remote_execution_ssh_keys","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":113,"name":"saltstack_minion","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":114,"name":"saltstack_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":115,"name":"schedule_reboot","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":116,"name":"subscription_manager_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":123,"name":"UserData + default","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":124,"name":"UserData + open-vm-tools","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":27,"name":"WAIK + default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":38,"name":"Windows + default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":48,"name":"Windows + default iPXE","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":49,"name":"Windows + default iPXE httpboot","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":61,"name":"Windows + default provision","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":28,"name":"Windows + default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":125,"name":"Windows + default user data","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":117,"name":"Windows + network","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":66,"name":"Windows + peSetup.cmd","template_kind_id":8,"template_kind_name":"script","inherited":false},{"id":62,"name":"XenServer + default answerfile","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":39,"name":"XenServer + default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":29,"name":"XenServer + default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":118,"name":"yum_proxy","template_kind_id":null,"template_kind_name":null,"inherited":false}],"domains":[],"realms":[],"hostgroups":[],"organizations":[{"id":6,"name":"Test Organization","title":"Test Organization","description":"A test organization"}],"hosts_count":0,"parameters":[{}],"deprecations":{"environments":"Environments got deprecated from this endpoint."}}' headers: @@ -241,6 +251,8 @@ interactions: - max-age=0, private, must-revalidate Connection: - Keep-Alive + Content-Length: + - '19238' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -254,13 +266,11 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.4.0 + - 3.11.0-develop Keep-Alive: - timeout=15, max=98 Strict-Transport-Security: - max-age=631139040; includeSubdomains - Transfer-Encoding: - - chunked X-Content-Type-Options: - nosniff X-Download-Options: @@ -291,14 +301,16 @@ interactions: body: string: "{\n \"total\": 3,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": 4294967296,\n \"search\": \"title=\\\"Test Location\\\"\",\n \"sort\": {\n - \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"ancestry\":null,\"parent_id\":null,\"parent_name\":null,\"created_at\":\"2022-11-08 - 09:29:05 UTC\",\"updated_at\":\"2022-11-08 09:29:05 UTC\",\"id\":4,\"name\":\"Test + \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"ancestry\":null,\"parent_id\":null,\"parent_name\":null,\"created_at\":\"2024-07-25 + 12:00:01 UTC\",\"updated_at\":\"2024-07-25 12:00:01 UTC\",\"id\":7,\"name\":\"Test Location\",\"title\":\"Test Location\",\"description\":null}]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive + Content-Length: + - '384' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -312,13 +324,11 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.4.0 + - 3.11.0-develop Keep-Alive: - timeout=15, max=97 Strict-Transport-Security: - max-age=631139040; includeSubdomains - Transfer-Encoding: - - chunked X-Content-Type-Options: - nosniff X-Download-Options: @@ -349,14 +359,16 @@ interactions: body: string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": 4294967296,\n \"search\": \"name=\\\"Test Organization\\\"\",\n \"sort\": - {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"ancestry\":null,\"parent_id\":null,\"parent_name\":null,\"created_at\":\"2022-11-08 - 09:29:04 UTC\",\"updated_at\":\"2022-11-08 09:29:04 UTC\",\"id\":3,\"name\":\"Test + {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"ancestry\":null,\"parent_id\":null,\"parent_name\":null,\"created_at\":\"2024-07-25 + 12:00:00 UTC\",\"updated_at\":\"2024-07-25 12:00:00 UTC\",\"id\":6,\"name\":\"Test Organization\",\"title\":\"Test Organization\",\"description\":\"A test organization\"}]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive + Content-Length: + - '412' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -370,13 +382,11 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.4.0 + - 3.11.0-develop Keep-Alive: - timeout=15, max=96 Strict-Transport-Security: - max-age=631139040; includeSubdomains - Transfer-Encoding: - - chunked X-Content-Type-Options: - nosniff X-Download-Options: diff --git a/tests/test_playbooks/fixtures/location-4.yml b/tests/test_playbooks/fixtures/location-4.yml index 91af3205..7033796a 100644 --- a/tests/test_playbooks/fixtures/location-4.yml +++ b/tests/test_playbooks/fixtures/location-4.yml @@ -14,12 +14,14 @@ interactions: uri: https://foreman.example.org/api/status response: body: - string: '{"result":"ok","status":200,"version":"3.4.0","api_version":2}' + string: '{"result":"ok","status":200,"version":"3.11.0-develop","api_version":2}' headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive + Content-Length: + - '71' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -33,13 +35,11 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.4.0 + - 3.11.0-develop Keep-Alive: - timeout=15, max=100 Strict-Transport-Security: - max-age=631139040; includeSubdomains - Transfer-Encoding: - - chunked X-Content-Type-Options: - nosniff X-Download-Options: @@ -77,6 +77,8 @@ interactions: - max-age=0, private, must-revalidate Connection: - Keep-Alive + Content-Length: + - '210' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -90,13 +92,11 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.4.0 + - 3.11.0-develop Keep-Alive: - timeout=15, max=99 Strict-Transport-Security: - max-age=631139040; includeSubdomains - Transfer-Encoding: - - chunked X-Content-Type-Options: - nosniff X-Download-Options: @@ -128,14 +128,16 @@ interactions: string: "{\n \"total\": 3,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": 4294967296,\n \"search\": \"title=\\\"Test Location/Sub Location 1\\\"\",\n \ \"sort\": {\n \"by\": null,\n \"order\": null\n },\n \"results\": - [{\"ancestry\":\"4\",\"parent_id\":4,\"parent_name\":\"Test Location\",\"created_at\":\"2022-11-08 - 09:29:07 UTC\",\"updated_at\":\"2022-11-08 09:29:07 UTC\",\"id\":5,\"name\":\"Sub + [{\"ancestry\":\"7\",\"parent_id\":7,\"parent_name\":\"Test Location\",\"created_at\":\"2024-07-25 + 12:00:04 UTC\",\"updated_at\":\"2024-07-25 12:00:04 UTC\",\"id\":8,\"name\":\"Sub Location 1\",\"title\":\"Test Location/Sub Location 1\",\"description\":null}]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive + Content-Length: + - '422' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -149,13 +151,11 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.4.0 + - 3.11.0-develop Keep-Alive: - timeout=15, max=98 Strict-Transport-Security: - max-age=631139040; includeSubdomains - Transfer-Encoding: - - chunked X-Content-Type-Options: - nosniff X-Download-Options: @@ -170,7 +170,7 @@ interactions: code: 200 message: OK - request: - body: '{"location": {"name": "Sub Location 2", "parent_id": 5}}' + body: '{"location": {"name": "Sub Location 2", "parent_id": 8}}' headers: Accept: - application/json;version=2 @@ -188,119 +188,131 @@ interactions: uri: https://foreman.example.org/api/locations response: body: - string: '{"select_all_types":[],"description":null,"created_at":"2022-11-08 - 09:29:09 UTC","updated_at":"2022-11-08 09:29:09 UTC","ancestry":"4/5","parent_id":5,"parent_name":"Test - Location/Sub Location 1","id":6,"name":"Sub Location 2","title":"Test Location/Sub - Location 1/Sub Location 2","users":[],"smart_proxies":[],"subnets":[],"compute_resources":[],"media":[],"ptables":[{"description":null,"os_family":"Suse","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"AutoYaST entire - SCSI disk","id":120,"inherited":false},{"description":null,"os_family":"Suse","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"AutoYaST entire - virtual disk","id":121,"inherited":false},{"description":null,"os_family":"Suse","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"AutoYaST LVM","id":122,"inherited":false},{"description":null,"os_family":"Coreos","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"CoreOS default - fake","id":123,"inherited":false},{"description":null,"os_family":"Rancheros","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Empty","id":124,"inherited":false},{"description":null,"os_family":"Freebsd","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"FreeBSD default - fake","id":125,"inherited":false},{"description":null,"os_family":"Solaris","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Jumpstart default","id":126,"inherited":false},{"description":null,"os_family":"Solaris","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Jumpstart mirrored","id":127,"inherited":false},{"description":null,"os_family":"Junos","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Junos default - fake","id":128,"inherited":false},{"description":null,"os_family":"Redhat","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Kickstart custom","id":129,"inherited":false},{"description":null,"os_family":"Redhat","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Kickstart default","id":130,"inherited":false},{"description":null,"os_family":"Redhat","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Kickstart default - thin","id":131,"inherited":false},{"description":null,"os_family":"Redhat","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Kickstart dynamic","id":132,"inherited":false},{"description":null,"os_family":"NXOS","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"NX-OS default - fake","id":133,"inherited":false},{"description":null,"os_family":"Debian","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Preseed default","id":134,"inherited":false},{"description":"Preseed + string: '{"select_all_types":[],"description":null,"created_at":"2024-07-25 + 12:00:07 UTC","updated_at":"2024-07-25 12:00:07 UTC","ancestry":"7/8","parent_id":8,"parent_name":"Test + Location/Sub Location 1","id":9,"name":"Sub Location 2","title":"Test Location/Sub + Location 1/Sub Location 2","users":[],"smart_proxies":[],"subnets":[],"compute_resources":[],"media":[],"ptables":[{"description":null,"os_family":"Suse","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"AutoYaST entire + virtual disk","id":127,"inherited":false},{"description":null,"os_family":"Solaris","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"Jumpstart default","id":132,"inherited":false},{"description":null,"os_family":"Solaris","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"Jumpstart mirrored","id":133,"inherited":false},{"description":null,"os_family":"Junos","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"Junos default + fake","id":134,"inherited":false},{"description":null,"os_family":"Suse","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"AutoYaST LVM","id":128,"inherited":false},{"description":null,"os_family":"Coreos","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"CoreOS default + fake","id":129,"inherited":false},{"description":null,"os_family":"Rancheros","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"Empty","id":130,"inherited":false},{"description":null,"os_family":"Suse","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"AutoYaST entire + SCSI disk","id":126,"inherited":false},{"description":null,"os_family":"Freebsd","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"FreeBSD default + fake","id":131,"inherited":false},{"description":null,"os_family":"Redhat","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"Kickstart custom","id":135,"inherited":false},{"description":null,"os_family":"Redhat","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"Kickstart default","id":136,"inherited":false},{"description":null,"os_family":"Redhat","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"Kickstart default + thin","id":137,"inherited":false},{"description":null,"os_family":"Redhat","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"Kickstart dynamic","id":138,"inherited":false},{"description":null,"os_family":"NXOS","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"NX-OS default + fake","id":139,"inherited":false},{"description":null,"os_family":"Debian","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"Preseed default","id":140,"inherited":false},{"description":"Preseed Autoinstall default storage snippet configures drives automatically\nwith - LVM. The snippet is automatically indented by 2 spaces. For reference:\nhttps://ubuntu.com/server/docs/install/autoinstall-reference","os_family":"Debian","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Preseed default - autoinstall","id":135,"inherited":false},{"description":null,"os_family":"Debian","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Preseed default - LVM","id":136,"inherited":false},{"description":null,"os_family":"Windows","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Windows default - partition table","id":137,"inherited":false},{"description":null,"os_family":"Windows","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Windows default - GPT EFI partition table","id":138,"inherited":false},{"description":null,"os_family":"Xenserver","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"XenServer default","id":139,"inherited":false}],"provisioning_templates":[{"id":1,"name":"NX-OS + LVM. The snippet is automatically indented by 2 spaces. For reference:\nhttps://ubuntu.com/server/docs/install/autoinstall-reference","os_family":"Debian","created_at":"2024-04-15 + 09:11:37 UTC","updated_at":"2024-04-15 09:11:37 UTC","name":"Preseed default + autoinstall","id":141,"inherited":false},{"description":null,"os_family":"Debian","created_at":"2024-04-15 + 09:11:37 UTC","updated_at":"2024-04-15 09:11:37 UTC","name":"Preseed default + LVM","id":142,"inherited":false},{"description":null,"os_family":"Windows","created_at":"2024-04-15 + 09:11:37 UTC","updated_at":"2024-04-15 09:11:37 UTC","name":"Windows default + partition table","id":143,"inherited":false},{"description":null,"os_family":"Windows","created_at":"2024-04-15 + 09:11:37 UTC","updated_at":"2024-04-15 09:11:37 UTC","name":"Windows default + GPT EFI partition table","id":144,"inherited":false},{"description":null,"os_family":"Xenserver","created_at":"2024-04-15 + 09:11:37 UTC","updated_at":"2024-04-15 09:11:37 UTC","name":"XenServer default","id":145,"inherited":false},{"description":null,"os_family":"Redhat","created_at":"2024-04-22 + 11:15:26 UTC","updated_at":"2024-04-22 11:15:26 UTC","name":"Kickstart default + encrypted","id":152,"inherited":false},{"description":"Preseed Autoinstall + default storage snippet configures drives automatically\nwith LVM and disk + encryption.\nRequires Ubuntu >= 22.04.3.\nThe snippet is automatically indented + by 2 spaces. For reference:\nhttps://ubuntu.com/server/docs/install/autoinstall-reference","os_family":"Debian","created_at":"2024-04-22 + 11:15:26 UTC","updated_at":"2024-04-22 11:15:26 UTC","name":"Preseed default + autoinstall encrypted","id":153,"inherited":false}],"provisioning_templates":[{"id":1,"name":"NX-OS default POAP setup","template_kind_id":11,"template_kind_name":"POAP","inherited":false},{"id":2,"name":"AutoYaST default PXEGrub","template_kind_id":3,"template_kind_name":"PXEGrub","inherited":false},{"id":3,"name":"Jumpstart default PXEGrub","template_kind_id":3,"template_kind_name":"PXEGrub","inherited":false},{"id":4,"name":"Kickstart default PXEGrub","template_kind_id":3,"template_kind_name":"PXEGrub","inherited":false},{"id":5,"name":"PXEGrub default local boot","template_kind_id":3,"template_kind_name":"PXEGrub","inherited":false},{"id":6,"name":"PXEGrub - global default","template_kind_id":3,"template_kind_name":"PXEGrub","inherited":false},{"id":49,"name":"AutoYaST - default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":7,"name":"AutoYaST + global default","template_kind_id":3,"template_kind_name":"PXEGrub","inherited":false},{"id":7,"name":"AutoYaST default PXEGrub2","template_kind_id":4,"template_kind_name":"PXEGrub2","inherited":false},{"id":8,"name":"Kickstart default PXEGrub2","template_kind_id":4,"template_kind_name":"PXEGrub2","inherited":false},{"id":9,"name":"Preseed - default PXEGrub2","template_kind_id":4,"template_kind_name":"PXEGrub2","inherited":false},{"id":10,"name":"PXEGrub2 - default local boot","template_kind_id":4,"template_kind_name":"PXEGrub2","inherited":false},{"id":11,"name":"PXEGrub2 - global default","template_kind_id":4,"template_kind_name":"PXEGrub2","inherited":false},{"id":12,"name":"Alterator - default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":50,"name":"AutoYaST - SLES default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":13,"name":"AutoYaST - default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":14,"name":"CoreOS - PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":15,"name":"FreeBSD - (mfsBSD) PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":16,"name":"Kickstart - default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":17,"name":"Kickstart - oVirt-RHVH PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":18,"name":"Preseed - default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":19,"name":"Preseed - default PXELinux Autoinstall","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":20,"name":"PXELinux - chain iPXE","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":21,"name":"PXELinux - chain iPXE UNDI","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":22,"name":"PXELinux - default local boot","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":23,"name":"PXELinux - default memdisk","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":24,"name":"PXELinux - global default","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":25,"name":"RancherOS - PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":26,"name":"WAIK - default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":27,"name":"Windows - default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":28,"name":"XenServer - default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":29,"name":"Junos - default ZTP config","template_kind_id":10,"template_kind_name":"ZTP","inherited":false},{"id":30,"name":"CloudInit - default","template_kind_id":12,"template_kind_name":"cloud-init","inherited":false},{"id":31,"name":"Alterator - default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":73,"name":"chef_client","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":32,"name":"FreeBSD - (mfsBSD) finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":33,"name":"Jumpstart - default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":34,"name":"Junos - default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":35,"name":"Kickstart - default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":36,"name":"Preseed - default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":37,"name":"Windows - default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":38,"name":"XenServer - default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":39,"name":"Linux - host_init_config default","template_kind_id":1,"template_kind_name":"host_init_config","inherited":false},{"id":40,"name":"AutoYaST - default iPXE","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":41,"name":"iPXE - default local boot","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":42,"name":"iPXE - global default","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":51,"name":"CoreOS - provision","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":43,"name":"iPXE - intermediate script","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":44,"name":"Kickstart - default iPXE","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":45,"name":"Preseed - default iPXE","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":46,"name":"Windows - default iPXE","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":47,"name":"Alterator - default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":48,"name":"Atomic - Kickstart default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":52,"name":"FreeBSD - (mfsBSD) provision","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":53,"name":"Jumpstart - default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":54,"name":"Junos - default SLAX","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":55,"name":"Kickstart - default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":56,"name":"Kickstart - oVirt-RHVH","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":57,"name":"Preseed - default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":58,"name":"RancherOS - provision","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":59,"name":"Windows - default provision","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":60,"name":"XenServer - default answerfile","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":61,"name":"Global - Registration","template_kind_id":13,"template_kind_name":"registration","inherited":false},{"id":62,"name":"remote_execution_pull_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":63,"name":"Grubby - default","template_kind_id":8,"template_kind_name":"script","inherited":false},{"id":64,"name":"Windows - peSetup.cmd","template_kind_id":8,"template_kind_name":"script","inherited":false},{"id":65,"name":"alterator_pkglist","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":66,"name":"saltstack_minion","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":67,"name":"ansible_provisioning_callback","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":68,"name":"ansible_tower_callback_script","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":69,"name":"ansible_tower_callback_service","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":70,"name":"blacklist_kernel_modules","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":71,"name":"bmc_nic_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":72,"name":"built","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":74,"name":"coreos_cloudconfig","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":75,"name":"create_users","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":76,"name":"csr_attributes.yaml","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":77,"name":"efibootmgr_netboot","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":78,"name":"eject_cdrom","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":79,"name":"epel","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":80,"name":"fips_packages","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":81,"name":"fix_hosts","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":82,"name":"freeipa_register","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":83,"name":"http_proxy","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":84,"name":"insights","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":85,"name":"kickstart_ifcfg_bond_interface","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":86,"name":"kickstart_ifcfg_bonded_interface","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":87,"name":"rancheros_cloudconfig","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":111,"name":"schedule_reboot","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":88,"name":"kickstart_ifcfg_generic_interface","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":89,"name":"redhat_register","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":90,"name":"kickstart_ifcfg_get_identifier_names","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":91,"name":"kickstart_kernel_options","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":92,"name":"kickstart_networking_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":93,"name":"ntp","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":94,"name":"pkg_manager","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":95,"name":"preseed_kernel_options","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":96,"name":"remote_execution_ssh_keys","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":97,"name":"preseed_netplan_generic_interface","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":98,"name":"preseed_netplan_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":99,"name":"preseed_networking_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":100,"name":"puppet.conf","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":101,"name":"puppet_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":102,"name":"puppetlabs_repo","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":103,"name":"pxegrub2_chainload","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":104,"name":"pxegrub2_discovery","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":105,"name":"pxegrub2_mac","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":106,"name":"pxegrub_chainload","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":107,"name":"pxegrub_discovery","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":108,"name":"pxelinux_chainload","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":109,"name":"pxelinux_discovery","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":110,"name":"saltstack_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":112,"name":"Windows - network","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":113,"name":"yum_proxy","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":114,"name":"AutoYaST - default user data","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":115,"name":"Kickstart - default user data","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":116,"name":"Preseed - Autoinstall cloud-init user data","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":117,"name":"Preseed - default user data","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":118,"name":"UserData - default","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":119,"name":"UserData - open-vm-tools","template_kind_id":9,"template_kind_name":"user_data","inherited":false}],"domains":[],"realms":[],"hostgroups":[],"organizations":[],"hosts_count":0,"parameters":[{}],"deprecations":{"environments":"Environments + default PXEGrub2","template_kind_id":4,"template_kind_name":"PXEGrub2","inherited":false},{"id":10,"name":"Preseed + default PXEGrub2 Autoinstall","template_kind_id":4,"template_kind_name":"PXEGrub2","inherited":false},{"id":11,"name":"PXEGrub2 + default local boot","template_kind_id":4,"template_kind_name":"PXEGrub2","inherited":false},{"id":12,"name":"PXEGrub2 + global default","template_kind_id":4,"template_kind_name":"PXEGrub2","inherited":false},{"id":13,"name":"Alterator + default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":14,"name":"AutoYaST + default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":15,"name":"CoreOS + PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":16,"name":"FreeBSD + (mfsBSD) PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":17,"name":"Kickstart + default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":18,"name":"Kickstart + oVirt-RHVH PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":19,"name":"Preseed + default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":20,"name":"Preseed + default PXELinux Autoinstall","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":79,"name":"eject_cdrom","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":21,"name":"PXELinux + chain iPXE","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":22,"name":"PXELinux + chain iPXE UNDI","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":23,"name":"PXELinux + default local boot","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":24,"name":"PXELinux + default memdisk","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":25,"name":"PXELinux + global default","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":26,"name":"RancherOS + PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":27,"name":"WAIK + default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":28,"name":"Windows + default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":29,"name":"XenServer + default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":30,"name":"Junos + default ZTP config","template_kind_id":10,"template_kind_name":"ZTP","inherited":false},{"id":32,"name":"Alterator + default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":80,"name":"epel","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":33,"name":"FreeBSD + (mfsBSD) finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":34,"name":"Jumpstart + default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":35,"name":"Junos + default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":37,"name":"Preseed + default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":38,"name":"Windows + default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":39,"name":"XenServer + default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":40,"name":"Linux + host_init_config default","template_kind_id":1,"template_kind_name":"host_init_config","inherited":false},{"id":41,"name":"AutoYaST + default iPXE","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":42,"name":"iPXE + default local boot","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":43,"name":"iPXE + global default","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":72,"name":"bmc_nic_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":44,"name":"iPXE + intermediate script","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":45,"name":"Kickstart + default iPXE","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":46,"name":"Preseed + default iPXE","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":47,"name":"Preseed + default iPXE Autoinstall","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":48,"name":"Windows + default iPXE","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":49,"name":"Windows + default iPXE httpboot","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":81,"name":"fips_packages","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":50,"name":"Alterator + default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":51,"name":"AutoYaST + default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":52,"name":"AutoYaST + SLES default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":53,"name":"CoreOS + provision","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":54,"name":"FreeBSD + (mfsBSD) provision","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":55,"name":"Jumpstart + default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":56,"name":"Junos + default SLAX","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":70,"name":"ansible_tower_callback_service","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":59,"name":"Preseed + default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":60,"name":"RancherOS + provision","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":61,"name":"Windows + default provision","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":62,"name":"XenServer + default answerfile","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":63,"name":"Global + Registration","template_kind_id":13,"template_kind_name":"registration","inherited":false},{"id":64,"name":"remote_execution_pull_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":65,"name":"Grubby + default","template_kind_id":8,"template_kind_name":"script","inherited":false},{"id":66,"name":"Windows + peSetup.cmd","template_kind_id":8,"template_kind_name":"script","inherited":false},{"id":67,"name":"alterator_pkglist","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":68,"name":"ansible_provisioning_callback","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":69,"name":"ansible_tower_callback_script","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":71,"name":"blacklist_kernel_modules","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":73,"name":"built","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":74,"name":"chef_client","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":75,"name":"coreos_cloudconfig","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":76,"name":"create_users","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":77,"name":"csr_attributes.yaml","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":78,"name":"efibootmgr_netboot","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":82,"name":"fix_hosts","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":83,"name":"freeipa_register","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":84,"name":"http_proxy","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":85,"name":"insights","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":86,"name":"kickstart_ifcfg_bond_interface","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":87,"name":"kickstart_ifcfg_bonded_interface","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":88,"name":"kickstart_ifcfg_generic_interface","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":89,"name":"kickstart_ifcfg_get_identifier_names","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":91,"name":"kickstart_networking_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":92,"name":"kickstart_rhsm","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":93,"name":"ntp","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":95,"name":"preseed_kernel_options","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":96,"name":"preseed_kernel_options_autoinstall","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":97,"name":"preseed_netplan_generic_interface","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":98,"name":"preseed_netplan_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":99,"name":"preseed_networking_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":106,"name":"pxegrub_chainload","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":100,"name":"puppet.conf","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":101,"name":"puppet_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":102,"name":"puppetlabs_repo","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":103,"name":"pxegrub2_chainload","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":104,"name":"pxegrub2_discovery","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":105,"name":"pxegrub2_mac","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":123,"name":"UserData + default","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":107,"name":"pxegrub_discovery","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":108,"name":"pxelinux_chainload","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":109,"name":"pxelinux_discovery","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":110,"name":"rancheros_cloudconfig","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":124,"name":"UserData + open-vm-tools","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":125,"name":"Windows + default user data","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":112,"name":"remote_execution_ssh_keys","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":113,"name":"saltstack_minion","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":114,"name":"saltstack_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":115,"name":"schedule_reboot","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":117,"name":"Windows + network","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":118,"name":"yum_proxy","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":119,"name":"AutoYaST + default user data","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":120,"name":"Kickstart + default user data","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":122,"name":"Preseed + default user data","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":90,"name":"kickstart_kernel_options","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":31,"name":"CloudInit + default","template_kind_id":12,"template_kind_name":"cloud-init","inherited":false},{"id":36,"name":"Kickstart + default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":57,"name":"Kickstart + default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":58,"name":"Kickstart + oVirt-RHVH","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":149,"name":"disk_enc_clevis_tang","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":150,"name":"kickstart_network_interface","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":94,"name":"pkg_manager","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":151,"name":"preseed_autoinstall_clevis_tang_wrapper","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":111,"name":"redhat_register","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":116,"name":"subscription_manager_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":121,"name":"Preseed + Autoinstall cloud-init user data","template_kind_id":9,"template_kind_name":"user_data","inherited":false}],"domains":[],"realms":[],"hostgroups":[],"organizations":[],"hosts_count":0,"parameters":[{}],"deprecations":{"environments":"Environments got deprecated from this endpoint."}}' headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive + Content-Length: + - '19171' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -314,13 +326,11 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.4.0 + - 3.11.0-develop Keep-Alive: - timeout=15, max=97 Strict-Transport-Security: - max-age=631139040; includeSubdomains - Transfer-Encoding: - - chunked X-Content-Type-Options: - nosniff X-Download-Options: diff --git a/tests/test_playbooks/fixtures/location-5.yml b/tests/test_playbooks/fixtures/location-5.yml index 37b5de06..d56ec316 100644 --- a/tests/test_playbooks/fixtures/location-5.yml +++ b/tests/test_playbooks/fixtures/location-5.yml @@ -14,12 +14,14 @@ interactions: uri: https://foreman.example.org/api/status response: body: - string: '{"result":"ok","status":200,"version":"3.4.0","api_version":2}' + string: '{"result":"ok","status":200,"version":"3.11.0-develop","api_version":2}' headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive + Content-Length: + - '71' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -33,13 +35,11 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.4.0 + - 3.11.0-develop Keep-Alive: - timeout=15, max=100 Strict-Transport-Security: - max-age=631139040; includeSubdomains - Transfer-Encoding: - - chunked X-Content-Type-Options: - nosniff X-Download-Options: @@ -71,15 +71,17 @@ interactions: string: "{\n \"total\": 4,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": 4294967296,\n \"search\": \"title=\\\"Test Location/Sub Location 1/Sub Location 2\\\"\",\n \"sort\": {\n \"by\": null,\n \"order\": null\n },\n \"results\": - [{\"ancestry\":\"4/5\",\"parent_id\":5,\"parent_name\":\"Test Location/Sub - Location 1\",\"created_at\":\"2022-11-08 09:29:09 UTC\",\"updated_at\":\"2022-11-08 - 09:29:09 UTC\",\"id\":6,\"name\":\"Sub Location 2\",\"title\":\"Test Location/Sub + [{\"ancestry\":\"7/8\",\"parent_id\":8,\"parent_name\":\"Test Location/Sub + Location 1\",\"created_at\":\"2024-07-25 12:00:07 UTC\",\"updated_at\":\"2024-07-25 + 12:00:07 UTC\",\"id\":9,\"name\":\"Sub Location 2\",\"title\":\"Test Location/Sub Location 1/Sub Location 2\",\"description\":null}]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive + Content-Length: + - '469' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -93,13 +95,11 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.4.0 + - 3.11.0-develop Keep-Alive: - timeout=15, max=99 Strict-Transport-Security: - max-age=631139040; includeSubdomains - Transfer-Encoding: - - chunked X-Content-Type-Options: - nosniff X-Download-Options: @@ -125,122 +125,134 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/api/locations/6 + uri: https://foreman.example.org/api/locations/9 response: body: - string: '{"select_all_types":[],"description":null,"created_at":"2022-11-08 - 09:29:09 UTC","updated_at":"2022-11-08 09:29:09 UTC","ancestry":"4/5","parent_id":5,"parent_name":"Test - Location/Sub Location 1","id":6,"name":"Sub Location 2","title":"Test Location/Sub - Location 1/Sub Location 2","users":[],"smart_proxies":[],"subnets":[],"compute_resources":[],"media":[],"ptables":[{"description":null,"os_family":"Suse","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"AutoYaST entire - SCSI disk","id":120,"inherited":false},{"description":null,"os_family":"Suse","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"AutoYaST entire - virtual disk","id":121,"inherited":false},{"description":null,"os_family":"Suse","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"AutoYaST LVM","id":122,"inherited":false},{"description":null,"os_family":"Coreos","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"CoreOS default - fake","id":123,"inherited":false},{"description":null,"os_family":"Rancheros","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Empty","id":124,"inherited":false},{"description":null,"os_family":"Freebsd","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"FreeBSD default - fake","id":125,"inherited":false},{"description":null,"os_family":"Solaris","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Jumpstart default","id":126,"inherited":false},{"description":null,"os_family":"Solaris","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Jumpstart mirrored","id":127,"inherited":false},{"description":null,"os_family":"Junos","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Junos default - fake","id":128,"inherited":false},{"description":null,"os_family":"Redhat","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Kickstart custom","id":129,"inherited":false},{"description":null,"os_family":"Redhat","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Kickstart default","id":130,"inherited":false},{"description":null,"os_family":"Redhat","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Kickstart default - thin","id":131,"inherited":false},{"description":null,"os_family":"Redhat","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Kickstart dynamic","id":132,"inherited":false},{"description":null,"os_family":"NXOS","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"NX-OS default - fake","id":133,"inherited":false},{"description":null,"os_family":"Debian","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Preseed default","id":134,"inherited":false},{"description":"Preseed + string: '{"select_all_types":[],"description":null,"created_at":"2024-07-25 + 12:00:07 UTC","updated_at":"2024-07-25 12:00:07 UTC","ancestry":"7/8","parent_id":8,"parent_name":"Test + Location/Sub Location 1","id":9,"name":"Sub Location 2","title":"Test Location/Sub + Location 1/Sub Location 2","users":[],"smart_proxies":[],"subnets":[],"compute_resources":[],"media":[],"ptables":[{"description":null,"os_family":"Suse","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"AutoYaST entire + SCSI disk","id":126,"inherited":false},{"description":null,"os_family":"Suse","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"AutoYaST entire + virtual disk","id":127,"inherited":false},{"description":null,"os_family":"Suse","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"AutoYaST LVM","id":128,"inherited":false},{"description":null,"os_family":"Coreos","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"CoreOS default + fake","id":129,"inherited":false},{"description":null,"os_family":"Rancheros","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"Empty","id":130,"inherited":false},{"description":null,"os_family":"Freebsd","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"FreeBSD default + fake","id":131,"inherited":false},{"description":null,"os_family":"Solaris","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"Jumpstart default","id":132,"inherited":false},{"description":null,"os_family":"Solaris","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"Jumpstart mirrored","id":133,"inherited":false},{"description":null,"os_family":"Junos","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"Junos default + fake","id":134,"inherited":false},{"description":null,"os_family":"Redhat","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"Kickstart custom","id":135,"inherited":false},{"description":null,"os_family":"Redhat","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"Kickstart default","id":136,"inherited":false},{"description":null,"os_family":"Redhat","created_at":"2024-04-22 + 11:15:26 UTC","updated_at":"2024-04-22 11:15:26 UTC","name":"Kickstart default + encrypted","id":152,"inherited":false},{"description":null,"os_family":"Redhat","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"Kickstart default + thin","id":137,"inherited":false},{"description":null,"os_family":"Redhat","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"Kickstart dynamic","id":138,"inherited":false},{"description":null,"os_family":"NXOS","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"NX-OS default + fake","id":139,"inherited":false},{"description":null,"os_family":"Debian","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"Preseed default","id":140,"inherited":false},{"description":"Preseed Autoinstall default storage snippet configures drives automatically\nwith - LVM. The snippet is automatically indented by 2 spaces. For reference:\nhttps://ubuntu.com/server/docs/install/autoinstall-reference","os_family":"Debian","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Preseed default - autoinstall","id":135,"inherited":false},{"description":null,"os_family":"Debian","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Preseed default - LVM","id":136,"inherited":false},{"description":null,"os_family":"Windows","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Windows default - GPT EFI partition table","id":138,"inherited":false},{"description":null,"os_family":"Windows","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Windows default - partition table","id":137,"inherited":false},{"description":null,"os_family":"Xenserver","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"XenServer default","id":139,"inherited":false}],"provisioning_templates":[{"id":47,"name":"Alterator - default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":31,"name":"Alterator - default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":12,"name":"Alterator - default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":65,"name":"alterator_pkglist","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":67,"name":"ansible_provisioning_callback","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":68,"name":"ansible_tower_callback_script","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":69,"name":"ansible_tower_callback_service","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":48,"name":"Atomic - Kickstart default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":49,"name":"AutoYaST - default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":40,"name":"AutoYaST + LVM. The snippet is automatically indented by 2 spaces. For reference:\nhttps://ubuntu.com/server/docs/install/autoinstall-reference","os_family":"Debian","created_at":"2024-04-15 + 09:11:37 UTC","updated_at":"2024-04-15 09:11:37 UTC","name":"Preseed default + autoinstall","id":141,"inherited":false},{"description":"Preseed Autoinstall + default storage snippet configures drives automatically\nwith LVM and disk + encryption.\nRequires Ubuntu >= 22.04.3.\nThe snippet is automatically indented + by 2 spaces. For reference:\nhttps://ubuntu.com/server/docs/install/autoinstall-reference","os_family":"Debian","created_at":"2024-04-22 + 11:15:26 UTC","updated_at":"2024-04-22 11:15:26 UTC","name":"Preseed default + autoinstall encrypted","id":153,"inherited":false},{"description":null,"os_family":"Debian","created_at":"2024-04-15 + 09:11:37 UTC","updated_at":"2024-04-15 09:11:37 UTC","name":"Preseed default + LVM","id":142,"inherited":false},{"description":null,"os_family":"Windows","created_at":"2024-04-15 + 09:11:37 UTC","updated_at":"2024-04-15 09:11:37 UTC","name":"Windows default + GPT EFI partition table","id":144,"inherited":false},{"description":null,"os_family":"Windows","created_at":"2024-04-15 + 09:11:37 UTC","updated_at":"2024-04-15 09:11:37 UTC","name":"Windows default + partition table","id":143,"inherited":false},{"description":null,"os_family":"Xenserver","created_at":"2024-04-15 + 09:11:37 UTC","updated_at":"2024-04-15 09:11:37 UTC","name":"XenServer default","id":145,"inherited":false}],"provisioning_templates":[{"id":50,"name":"Alterator + default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":32,"name":"Alterator + default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":13,"name":"Alterator + default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":67,"name":"alterator_pkglist","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":68,"name":"ansible_provisioning_callback","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":69,"name":"ansible_tower_callback_script","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":70,"name":"ansible_tower_callback_service","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":51,"name":"AutoYaST + default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":41,"name":"AutoYaST default iPXE","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":2,"name":"AutoYaST default PXEGrub","template_kind_id":3,"template_kind_name":"PXEGrub","inherited":false},{"id":7,"name":"AutoYaST - default PXEGrub2","template_kind_id":4,"template_kind_name":"PXEGrub2","inherited":false},{"id":13,"name":"AutoYaST - default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":114,"name":"AutoYaST - default user data","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":50,"name":"AutoYaST - SLES default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":70,"name":"blacklist_kernel_modules","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":71,"name":"bmc_nic_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":72,"name":"built","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":73,"name":"chef_client","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":30,"name":"CloudInit - default","template_kind_id":12,"template_kind_name":"cloud-init","inherited":false},{"id":74,"name":"coreos_cloudconfig","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":51,"name":"CoreOS - provision","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":14,"name":"CoreOS - PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":75,"name":"create_users","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":76,"name":"csr_attributes.yaml","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":77,"name":"efibootmgr_netboot","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":78,"name":"eject_cdrom","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":79,"name":"epel","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":80,"name":"fips_packages","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":81,"name":"fix_hosts","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":32,"name":"FreeBSD - (mfsBSD) finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":52,"name":"FreeBSD - (mfsBSD) provision","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":15,"name":"FreeBSD - (mfsBSD) PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":82,"name":"freeipa_register","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":61,"name":"Global - Registration","template_kind_id":13,"template_kind_name":"registration","inherited":false},{"id":63,"name":"Grubby - default","template_kind_id":8,"template_kind_name":"script","inherited":false},{"id":83,"name":"http_proxy","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":84,"name":"insights","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":41,"name":"iPXE - default local boot","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":42,"name":"iPXE - global default","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":43,"name":"iPXE - intermediate script","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":53,"name":"Jumpstart - default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":33,"name":"Jumpstart + default PXEGrub2","template_kind_id":4,"template_kind_name":"PXEGrub2","inherited":false},{"id":14,"name":"AutoYaST + default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":119,"name":"AutoYaST + default user data","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":52,"name":"AutoYaST + SLES default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":71,"name":"blacklist_kernel_modules","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":72,"name":"bmc_nic_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":73,"name":"built","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":74,"name":"chef_client","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":31,"name":"CloudInit + default","template_kind_id":12,"template_kind_name":"cloud-init","inherited":false},{"id":75,"name":"coreos_cloudconfig","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":53,"name":"CoreOS + provision","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":15,"name":"CoreOS + PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":76,"name":"create_users","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":77,"name":"csr_attributes.yaml","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":149,"name":"disk_enc_clevis_tang","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":78,"name":"efibootmgr_netboot","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":79,"name":"eject_cdrom","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":80,"name":"epel","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":81,"name":"fips_packages","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":82,"name":"fix_hosts","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":33,"name":"FreeBSD + (mfsBSD) finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":54,"name":"FreeBSD + (mfsBSD) provision","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":16,"name":"FreeBSD + (mfsBSD) PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":83,"name":"freeipa_register","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":63,"name":"Global + Registration","template_kind_id":13,"template_kind_name":"registration","inherited":false},{"id":65,"name":"Grubby + default","template_kind_id":8,"template_kind_name":"script","inherited":false},{"id":84,"name":"http_proxy","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":85,"name":"insights","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":42,"name":"iPXE + default local boot","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":43,"name":"iPXE + global default","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":44,"name":"iPXE + intermediate script","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":55,"name":"Jumpstart + default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":34,"name":"Jumpstart default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":3,"name":"Jumpstart - default PXEGrub","template_kind_id":3,"template_kind_name":"PXEGrub","inherited":false},{"id":34,"name":"Junos - default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":54,"name":"Junos - default SLAX","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":29,"name":"Junos - default ZTP config","template_kind_id":10,"template_kind_name":"ZTP","inherited":false},{"id":55,"name":"Kickstart - default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":35,"name":"Kickstart - default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":44,"name":"Kickstart + default PXEGrub","template_kind_id":3,"template_kind_name":"PXEGrub","inherited":false},{"id":35,"name":"Junos + default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":56,"name":"Junos + default SLAX","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":30,"name":"Junos + default ZTP config","template_kind_id":10,"template_kind_name":"ZTP","inherited":false},{"id":57,"name":"Kickstart + default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":36,"name":"Kickstart + default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":45,"name":"Kickstart default iPXE","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":4,"name":"Kickstart default PXEGrub","template_kind_id":3,"template_kind_name":"PXEGrub","inherited":false},{"id":8,"name":"Kickstart - default PXEGrub2","template_kind_id":4,"template_kind_name":"PXEGrub2","inherited":false},{"id":16,"name":"Kickstart - default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":115,"name":"Kickstart - default user data","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":86,"name":"kickstart_ifcfg_bonded_interface","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":85,"name":"kickstart_ifcfg_bond_interface","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":88,"name":"kickstart_ifcfg_generic_interface","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":90,"name":"kickstart_ifcfg_get_identifier_names","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":91,"name":"kickstart_kernel_options","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":92,"name":"kickstart_networking_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":56,"name":"Kickstart - oVirt-RHVH","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":17,"name":"Kickstart - oVirt-RHVH PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":39,"name":"Linux + default PXEGrub2","template_kind_id":4,"template_kind_name":"PXEGrub2","inherited":false},{"id":17,"name":"Kickstart + default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":120,"name":"Kickstart + default user data","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":87,"name":"kickstart_ifcfg_bonded_interface","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":86,"name":"kickstart_ifcfg_bond_interface","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":88,"name":"kickstart_ifcfg_generic_interface","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":89,"name":"kickstart_ifcfg_get_identifier_names","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":90,"name":"kickstart_kernel_options","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":91,"name":"kickstart_networking_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":150,"name":"kickstart_network_interface","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":58,"name":"Kickstart + oVirt-RHVH","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":18,"name":"Kickstart + oVirt-RHVH PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":92,"name":"kickstart_rhsm","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":40,"name":"Linux host_init_config default","template_kind_id":1,"template_kind_name":"host_init_config","inherited":false},{"id":93,"name":"ntp","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":1,"name":"NX-OS - default POAP setup","template_kind_id":11,"template_kind_name":"POAP","inherited":false},{"id":94,"name":"pkg_manager","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":116,"name":"Preseed - Autoinstall cloud-init user data","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":57,"name":"Preseed - default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":36,"name":"Preseed - default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":45,"name":"Preseed - default iPXE","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":9,"name":"Preseed - default PXEGrub2","template_kind_id":4,"template_kind_name":"PXEGrub2","inherited":false},{"id":18,"name":"Preseed - default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":19,"name":"Preseed - default PXELinux Autoinstall","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":117,"name":"Preseed - default user data","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":95,"name":"preseed_kernel_options","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":97,"name":"preseed_netplan_generic_interface","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":98,"name":"preseed_netplan_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":99,"name":"preseed_networking_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":100,"name":"puppet.conf","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":102,"name":"puppetlabs_repo","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":101,"name":"puppet_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":103,"name":"pxegrub2_chainload","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":10,"name":"PXEGrub2 - default local boot","template_kind_id":4,"template_kind_name":"PXEGrub2","inherited":false},{"id":104,"name":"pxegrub2_discovery","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":11,"name":"PXEGrub2 + default POAP setup","template_kind_id":11,"template_kind_name":"POAP","inherited":false},{"id":94,"name":"pkg_manager","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":151,"name":"preseed_autoinstall_clevis_tang_wrapper","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":121,"name":"Preseed + Autoinstall cloud-init user data","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":59,"name":"Preseed + default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":37,"name":"Preseed + default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":46,"name":"Preseed + default iPXE","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":47,"name":"Preseed + default iPXE Autoinstall","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":9,"name":"Preseed + default PXEGrub2","template_kind_id":4,"template_kind_name":"PXEGrub2","inherited":false},{"id":10,"name":"Preseed + default PXEGrub2 Autoinstall","template_kind_id":4,"template_kind_name":"PXEGrub2","inherited":false},{"id":19,"name":"Preseed + default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":20,"name":"Preseed + default PXELinux Autoinstall","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":122,"name":"Preseed + default user data","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":95,"name":"preseed_kernel_options","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":96,"name":"preseed_kernel_options_autoinstall","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":97,"name":"preseed_netplan_generic_interface","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":98,"name":"preseed_netplan_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":99,"name":"preseed_networking_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":100,"name":"puppet.conf","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":102,"name":"puppetlabs_repo","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":101,"name":"puppet_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":103,"name":"pxegrub2_chainload","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":11,"name":"PXEGrub2 + default local boot","template_kind_id":4,"template_kind_name":"PXEGrub2","inherited":false},{"id":104,"name":"pxegrub2_discovery","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":12,"name":"PXEGrub2 global default","template_kind_id":4,"template_kind_name":"PXEGrub2","inherited":false},{"id":105,"name":"pxegrub2_mac","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":106,"name":"pxegrub_chainload","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":5,"name":"PXEGrub default local boot","template_kind_id":3,"template_kind_name":"PXEGrub","inherited":false},{"id":107,"name":"pxegrub_discovery","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":6,"name":"PXEGrub - global default","template_kind_id":3,"template_kind_name":"PXEGrub","inherited":false},{"id":20,"name":"PXELinux - chain iPXE","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":21,"name":"PXELinux - chain iPXE UNDI","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":108,"name":"pxelinux_chainload","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":22,"name":"PXELinux - default local boot","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":23,"name":"PXELinux - default memdisk","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":109,"name":"pxelinux_discovery","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":24,"name":"PXELinux - global default","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":87,"name":"rancheros_cloudconfig","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":58,"name":"RancherOS - provision","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":25,"name":"RancherOS - PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":89,"name":"redhat_register","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":62,"name":"remote_execution_pull_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":96,"name":"remote_execution_ssh_keys","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":66,"name":"saltstack_minion","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":110,"name":"saltstack_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":111,"name":"schedule_reboot","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":118,"name":"UserData - default","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":119,"name":"UserData - open-vm-tools","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":26,"name":"WAIK - default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":37,"name":"Windows - default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":46,"name":"Windows - default iPXE","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":59,"name":"Windows - default provision","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":27,"name":"Windows - default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":112,"name":"Windows - network","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":64,"name":"Windows - peSetup.cmd","template_kind_id":8,"template_kind_name":"script","inherited":false},{"id":60,"name":"XenServer - default answerfile","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":38,"name":"XenServer - default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":28,"name":"XenServer - default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":113,"name":"yum_proxy","template_kind_id":null,"template_kind_name":null,"inherited":false}],"domains":[],"realms":[],"hostgroups":[],"organizations":[],"hosts_count":0,"parameters":[{}],"deprecations":{"environments":"Environments + global default","template_kind_id":3,"template_kind_name":"PXEGrub","inherited":false},{"id":21,"name":"PXELinux + chain iPXE","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":22,"name":"PXELinux + chain iPXE UNDI","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":108,"name":"pxelinux_chainload","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":23,"name":"PXELinux + default local boot","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":24,"name":"PXELinux + default memdisk","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":109,"name":"pxelinux_discovery","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":25,"name":"PXELinux + global default","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":110,"name":"rancheros_cloudconfig","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":60,"name":"RancherOS + provision","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":26,"name":"RancherOS + PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":111,"name":"redhat_register","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":64,"name":"remote_execution_pull_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":112,"name":"remote_execution_ssh_keys","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":113,"name":"saltstack_minion","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":114,"name":"saltstack_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":115,"name":"schedule_reboot","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":116,"name":"subscription_manager_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":123,"name":"UserData + default","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":124,"name":"UserData + open-vm-tools","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":27,"name":"WAIK + default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":38,"name":"Windows + default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":48,"name":"Windows + default iPXE","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":49,"name":"Windows + default iPXE httpboot","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":61,"name":"Windows + default provision","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":28,"name":"Windows + default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":125,"name":"Windows + default user data","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":117,"name":"Windows + network","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":66,"name":"Windows + peSetup.cmd","template_kind_id":8,"template_kind_name":"script","inherited":false},{"id":62,"name":"XenServer + default answerfile","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":39,"name":"XenServer + default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":29,"name":"XenServer + default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":118,"name":"yum_proxy","template_kind_id":null,"template_kind_name":null,"inherited":false}],"domains":[],"realms":[],"hostgroups":[],"organizations":[],"hosts_count":0,"parameters":[{}],"deprecations":{"environments":"Environments got deprecated from this endpoint."}}' headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive + Content-Length: + - '19171' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -254,13 +266,11 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.4.0 + - 3.11.0-develop Keep-Alive: - timeout=15, max=98 Strict-Transport-Security: - max-age=631139040; includeSubdomains - Transfer-Encoding: - - chunked X-Content-Type-Options: - nosniff X-Download-Options: @@ -292,14 +302,16 @@ interactions: string: "{\n \"total\": 4,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": 4294967296,\n \"search\": \"title=\\\"Test Location/Sub Location 1\\\"\",\n \ \"sort\": {\n \"by\": null,\n \"order\": null\n },\n \"results\": - [{\"ancestry\":\"4\",\"parent_id\":4,\"parent_name\":\"Test Location\",\"created_at\":\"2022-11-08 - 09:29:07 UTC\",\"updated_at\":\"2022-11-08 09:29:07 UTC\",\"id\":5,\"name\":\"Sub + [{\"ancestry\":\"7\",\"parent_id\":7,\"parent_name\":\"Test Location\",\"created_at\":\"2024-07-25 + 12:00:04 UTC\",\"updated_at\":\"2024-07-25 12:00:04 UTC\",\"id\":8,\"name\":\"Sub Location 1\",\"title\":\"Test Location/Sub Location 1\",\"description\":null}]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive + Content-Length: + - '422' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -313,13 +325,11 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.4.0 + - 3.11.0-develop Keep-Alive: - timeout=15, max=97 Strict-Transport-Security: - max-age=631139040; includeSubdomains - Transfer-Encoding: - - chunked X-Content-Type-Options: - nosniff X-Download-Options: diff --git a/tests/test_playbooks/fixtures/location-6.yml b/tests/test_playbooks/fixtures/location-6.yml index 37b5de06..d56ec316 100644 --- a/tests/test_playbooks/fixtures/location-6.yml +++ b/tests/test_playbooks/fixtures/location-6.yml @@ -14,12 +14,14 @@ interactions: uri: https://foreman.example.org/api/status response: body: - string: '{"result":"ok","status":200,"version":"3.4.0","api_version":2}' + string: '{"result":"ok","status":200,"version":"3.11.0-develop","api_version":2}' headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive + Content-Length: + - '71' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -33,13 +35,11 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.4.0 + - 3.11.0-develop Keep-Alive: - timeout=15, max=100 Strict-Transport-Security: - max-age=631139040; includeSubdomains - Transfer-Encoding: - - chunked X-Content-Type-Options: - nosniff X-Download-Options: @@ -71,15 +71,17 @@ interactions: string: "{\n \"total\": 4,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": 4294967296,\n \"search\": \"title=\\\"Test Location/Sub Location 1/Sub Location 2\\\"\",\n \"sort\": {\n \"by\": null,\n \"order\": null\n },\n \"results\": - [{\"ancestry\":\"4/5\",\"parent_id\":5,\"parent_name\":\"Test Location/Sub - Location 1\",\"created_at\":\"2022-11-08 09:29:09 UTC\",\"updated_at\":\"2022-11-08 - 09:29:09 UTC\",\"id\":6,\"name\":\"Sub Location 2\",\"title\":\"Test Location/Sub + [{\"ancestry\":\"7/8\",\"parent_id\":8,\"parent_name\":\"Test Location/Sub + Location 1\",\"created_at\":\"2024-07-25 12:00:07 UTC\",\"updated_at\":\"2024-07-25 + 12:00:07 UTC\",\"id\":9,\"name\":\"Sub Location 2\",\"title\":\"Test Location/Sub Location 1/Sub Location 2\",\"description\":null}]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive + Content-Length: + - '469' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -93,13 +95,11 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.4.0 + - 3.11.0-develop Keep-Alive: - timeout=15, max=99 Strict-Transport-Security: - max-age=631139040; includeSubdomains - Transfer-Encoding: - - chunked X-Content-Type-Options: - nosniff X-Download-Options: @@ -125,122 +125,134 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/api/locations/6 + uri: https://foreman.example.org/api/locations/9 response: body: - string: '{"select_all_types":[],"description":null,"created_at":"2022-11-08 - 09:29:09 UTC","updated_at":"2022-11-08 09:29:09 UTC","ancestry":"4/5","parent_id":5,"parent_name":"Test - Location/Sub Location 1","id":6,"name":"Sub Location 2","title":"Test Location/Sub - Location 1/Sub Location 2","users":[],"smart_proxies":[],"subnets":[],"compute_resources":[],"media":[],"ptables":[{"description":null,"os_family":"Suse","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"AutoYaST entire - SCSI disk","id":120,"inherited":false},{"description":null,"os_family":"Suse","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"AutoYaST entire - virtual disk","id":121,"inherited":false},{"description":null,"os_family":"Suse","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"AutoYaST LVM","id":122,"inherited":false},{"description":null,"os_family":"Coreos","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"CoreOS default - fake","id":123,"inherited":false},{"description":null,"os_family":"Rancheros","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Empty","id":124,"inherited":false},{"description":null,"os_family":"Freebsd","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"FreeBSD default - fake","id":125,"inherited":false},{"description":null,"os_family":"Solaris","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Jumpstart default","id":126,"inherited":false},{"description":null,"os_family":"Solaris","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Jumpstart mirrored","id":127,"inherited":false},{"description":null,"os_family":"Junos","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Junos default - fake","id":128,"inherited":false},{"description":null,"os_family":"Redhat","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Kickstart custom","id":129,"inherited":false},{"description":null,"os_family":"Redhat","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Kickstart default","id":130,"inherited":false},{"description":null,"os_family":"Redhat","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Kickstart default - thin","id":131,"inherited":false},{"description":null,"os_family":"Redhat","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Kickstart dynamic","id":132,"inherited":false},{"description":null,"os_family":"NXOS","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"NX-OS default - fake","id":133,"inherited":false},{"description":null,"os_family":"Debian","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Preseed default","id":134,"inherited":false},{"description":"Preseed + string: '{"select_all_types":[],"description":null,"created_at":"2024-07-25 + 12:00:07 UTC","updated_at":"2024-07-25 12:00:07 UTC","ancestry":"7/8","parent_id":8,"parent_name":"Test + Location/Sub Location 1","id":9,"name":"Sub Location 2","title":"Test Location/Sub + Location 1/Sub Location 2","users":[],"smart_proxies":[],"subnets":[],"compute_resources":[],"media":[],"ptables":[{"description":null,"os_family":"Suse","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"AutoYaST entire + SCSI disk","id":126,"inherited":false},{"description":null,"os_family":"Suse","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"AutoYaST entire + virtual disk","id":127,"inherited":false},{"description":null,"os_family":"Suse","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"AutoYaST LVM","id":128,"inherited":false},{"description":null,"os_family":"Coreos","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"CoreOS default + fake","id":129,"inherited":false},{"description":null,"os_family":"Rancheros","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"Empty","id":130,"inherited":false},{"description":null,"os_family":"Freebsd","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"FreeBSD default + fake","id":131,"inherited":false},{"description":null,"os_family":"Solaris","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"Jumpstart default","id":132,"inherited":false},{"description":null,"os_family":"Solaris","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"Jumpstart mirrored","id":133,"inherited":false},{"description":null,"os_family":"Junos","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"Junos default + fake","id":134,"inherited":false},{"description":null,"os_family":"Redhat","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"Kickstart custom","id":135,"inherited":false},{"description":null,"os_family":"Redhat","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"Kickstart default","id":136,"inherited":false},{"description":null,"os_family":"Redhat","created_at":"2024-04-22 + 11:15:26 UTC","updated_at":"2024-04-22 11:15:26 UTC","name":"Kickstart default + encrypted","id":152,"inherited":false},{"description":null,"os_family":"Redhat","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"Kickstart default + thin","id":137,"inherited":false},{"description":null,"os_family":"Redhat","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"Kickstart dynamic","id":138,"inherited":false},{"description":null,"os_family":"NXOS","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"NX-OS default + fake","id":139,"inherited":false},{"description":null,"os_family":"Debian","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"Preseed default","id":140,"inherited":false},{"description":"Preseed Autoinstall default storage snippet configures drives automatically\nwith - LVM. The snippet is automatically indented by 2 spaces. For reference:\nhttps://ubuntu.com/server/docs/install/autoinstall-reference","os_family":"Debian","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Preseed default - autoinstall","id":135,"inherited":false},{"description":null,"os_family":"Debian","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Preseed default - LVM","id":136,"inherited":false},{"description":null,"os_family":"Windows","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Windows default - GPT EFI partition table","id":138,"inherited":false},{"description":null,"os_family":"Windows","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Windows default - partition table","id":137,"inherited":false},{"description":null,"os_family":"Xenserver","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"XenServer default","id":139,"inherited":false}],"provisioning_templates":[{"id":47,"name":"Alterator - default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":31,"name":"Alterator - default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":12,"name":"Alterator - default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":65,"name":"alterator_pkglist","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":67,"name":"ansible_provisioning_callback","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":68,"name":"ansible_tower_callback_script","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":69,"name":"ansible_tower_callback_service","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":48,"name":"Atomic - Kickstart default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":49,"name":"AutoYaST - default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":40,"name":"AutoYaST + LVM. The snippet is automatically indented by 2 spaces. For reference:\nhttps://ubuntu.com/server/docs/install/autoinstall-reference","os_family":"Debian","created_at":"2024-04-15 + 09:11:37 UTC","updated_at":"2024-04-15 09:11:37 UTC","name":"Preseed default + autoinstall","id":141,"inherited":false},{"description":"Preseed Autoinstall + default storage snippet configures drives automatically\nwith LVM and disk + encryption.\nRequires Ubuntu >= 22.04.3.\nThe snippet is automatically indented + by 2 spaces. For reference:\nhttps://ubuntu.com/server/docs/install/autoinstall-reference","os_family":"Debian","created_at":"2024-04-22 + 11:15:26 UTC","updated_at":"2024-04-22 11:15:26 UTC","name":"Preseed default + autoinstall encrypted","id":153,"inherited":false},{"description":null,"os_family":"Debian","created_at":"2024-04-15 + 09:11:37 UTC","updated_at":"2024-04-15 09:11:37 UTC","name":"Preseed default + LVM","id":142,"inherited":false},{"description":null,"os_family":"Windows","created_at":"2024-04-15 + 09:11:37 UTC","updated_at":"2024-04-15 09:11:37 UTC","name":"Windows default + GPT EFI partition table","id":144,"inherited":false},{"description":null,"os_family":"Windows","created_at":"2024-04-15 + 09:11:37 UTC","updated_at":"2024-04-15 09:11:37 UTC","name":"Windows default + partition table","id":143,"inherited":false},{"description":null,"os_family":"Xenserver","created_at":"2024-04-15 + 09:11:37 UTC","updated_at":"2024-04-15 09:11:37 UTC","name":"XenServer default","id":145,"inherited":false}],"provisioning_templates":[{"id":50,"name":"Alterator + default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":32,"name":"Alterator + default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":13,"name":"Alterator + default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":67,"name":"alterator_pkglist","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":68,"name":"ansible_provisioning_callback","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":69,"name":"ansible_tower_callback_script","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":70,"name":"ansible_tower_callback_service","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":51,"name":"AutoYaST + default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":41,"name":"AutoYaST default iPXE","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":2,"name":"AutoYaST default PXEGrub","template_kind_id":3,"template_kind_name":"PXEGrub","inherited":false},{"id":7,"name":"AutoYaST - default PXEGrub2","template_kind_id":4,"template_kind_name":"PXEGrub2","inherited":false},{"id":13,"name":"AutoYaST - default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":114,"name":"AutoYaST - default user data","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":50,"name":"AutoYaST - SLES default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":70,"name":"blacklist_kernel_modules","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":71,"name":"bmc_nic_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":72,"name":"built","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":73,"name":"chef_client","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":30,"name":"CloudInit - default","template_kind_id":12,"template_kind_name":"cloud-init","inherited":false},{"id":74,"name":"coreos_cloudconfig","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":51,"name":"CoreOS - provision","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":14,"name":"CoreOS - PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":75,"name":"create_users","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":76,"name":"csr_attributes.yaml","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":77,"name":"efibootmgr_netboot","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":78,"name":"eject_cdrom","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":79,"name":"epel","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":80,"name":"fips_packages","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":81,"name":"fix_hosts","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":32,"name":"FreeBSD - (mfsBSD) finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":52,"name":"FreeBSD - (mfsBSD) provision","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":15,"name":"FreeBSD - (mfsBSD) PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":82,"name":"freeipa_register","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":61,"name":"Global - Registration","template_kind_id":13,"template_kind_name":"registration","inherited":false},{"id":63,"name":"Grubby - default","template_kind_id":8,"template_kind_name":"script","inherited":false},{"id":83,"name":"http_proxy","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":84,"name":"insights","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":41,"name":"iPXE - default local boot","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":42,"name":"iPXE - global default","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":43,"name":"iPXE - intermediate script","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":53,"name":"Jumpstart - default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":33,"name":"Jumpstart + default PXEGrub2","template_kind_id":4,"template_kind_name":"PXEGrub2","inherited":false},{"id":14,"name":"AutoYaST + default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":119,"name":"AutoYaST + default user data","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":52,"name":"AutoYaST + SLES default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":71,"name":"blacklist_kernel_modules","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":72,"name":"bmc_nic_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":73,"name":"built","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":74,"name":"chef_client","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":31,"name":"CloudInit + default","template_kind_id":12,"template_kind_name":"cloud-init","inherited":false},{"id":75,"name":"coreos_cloudconfig","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":53,"name":"CoreOS + provision","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":15,"name":"CoreOS + PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":76,"name":"create_users","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":77,"name":"csr_attributes.yaml","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":149,"name":"disk_enc_clevis_tang","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":78,"name":"efibootmgr_netboot","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":79,"name":"eject_cdrom","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":80,"name":"epel","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":81,"name":"fips_packages","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":82,"name":"fix_hosts","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":33,"name":"FreeBSD + (mfsBSD) finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":54,"name":"FreeBSD + (mfsBSD) provision","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":16,"name":"FreeBSD + (mfsBSD) PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":83,"name":"freeipa_register","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":63,"name":"Global + Registration","template_kind_id":13,"template_kind_name":"registration","inherited":false},{"id":65,"name":"Grubby + default","template_kind_id":8,"template_kind_name":"script","inherited":false},{"id":84,"name":"http_proxy","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":85,"name":"insights","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":42,"name":"iPXE + default local boot","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":43,"name":"iPXE + global default","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":44,"name":"iPXE + intermediate script","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":55,"name":"Jumpstart + default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":34,"name":"Jumpstart default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":3,"name":"Jumpstart - default PXEGrub","template_kind_id":3,"template_kind_name":"PXEGrub","inherited":false},{"id":34,"name":"Junos - default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":54,"name":"Junos - default SLAX","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":29,"name":"Junos - default ZTP config","template_kind_id":10,"template_kind_name":"ZTP","inherited":false},{"id":55,"name":"Kickstart - default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":35,"name":"Kickstart - default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":44,"name":"Kickstart + default PXEGrub","template_kind_id":3,"template_kind_name":"PXEGrub","inherited":false},{"id":35,"name":"Junos + default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":56,"name":"Junos + default SLAX","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":30,"name":"Junos + default ZTP config","template_kind_id":10,"template_kind_name":"ZTP","inherited":false},{"id":57,"name":"Kickstart + default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":36,"name":"Kickstart + default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":45,"name":"Kickstart default iPXE","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":4,"name":"Kickstart default PXEGrub","template_kind_id":3,"template_kind_name":"PXEGrub","inherited":false},{"id":8,"name":"Kickstart - default PXEGrub2","template_kind_id":4,"template_kind_name":"PXEGrub2","inherited":false},{"id":16,"name":"Kickstart - default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":115,"name":"Kickstart - default user data","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":86,"name":"kickstart_ifcfg_bonded_interface","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":85,"name":"kickstart_ifcfg_bond_interface","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":88,"name":"kickstart_ifcfg_generic_interface","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":90,"name":"kickstart_ifcfg_get_identifier_names","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":91,"name":"kickstart_kernel_options","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":92,"name":"kickstart_networking_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":56,"name":"Kickstart - oVirt-RHVH","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":17,"name":"Kickstart - oVirt-RHVH PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":39,"name":"Linux + default PXEGrub2","template_kind_id":4,"template_kind_name":"PXEGrub2","inherited":false},{"id":17,"name":"Kickstart + default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":120,"name":"Kickstart + default user data","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":87,"name":"kickstart_ifcfg_bonded_interface","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":86,"name":"kickstart_ifcfg_bond_interface","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":88,"name":"kickstart_ifcfg_generic_interface","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":89,"name":"kickstart_ifcfg_get_identifier_names","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":90,"name":"kickstart_kernel_options","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":91,"name":"kickstart_networking_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":150,"name":"kickstart_network_interface","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":58,"name":"Kickstart + oVirt-RHVH","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":18,"name":"Kickstart + oVirt-RHVH PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":92,"name":"kickstart_rhsm","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":40,"name":"Linux host_init_config default","template_kind_id":1,"template_kind_name":"host_init_config","inherited":false},{"id":93,"name":"ntp","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":1,"name":"NX-OS - default POAP setup","template_kind_id":11,"template_kind_name":"POAP","inherited":false},{"id":94,"name":"pkg_manager","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":116,"name":"Preseed - Autoinstall cloud-init user data","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":57,"name":"Preseed - default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":36,"name":"Preseed - default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":45,"name":"Preseed - default iPXE","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":9,"name":"Preseed - default PXEGrub2","template_kind_id":4,"template_kind_name":"PXEGrub2","inherited":false},{"id":18,"name":"Preseed - default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":19,"name":"Preseed - default PXELinux Autoinstall","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":117,"name":"Preseed - default user data","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":95,"name":"preseed_kernel_options","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":97,"name":"preseed_netplan_generic_interface","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":98,"name":"preseed_netplan_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":99,"name":"preseed_networking_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":100,"name":"puppet.conf","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":102,"name":"puppetlabs_repo","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":101,"name":"puppet_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":103,"name":"pxegrub2_chainload","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":10,"name":"PXEGrub2 - default local boot","template_kind_id":4,"template_kind_name":"PXEGrub2","inherited":false},{"id":104,"name":"pxegrub2_discovery","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":11,"name":"PXEGrub2 + default POAP setup","template_kind_id":11,"template_kind_name":"POAP","inherited":false},{"id":94,"name":"pkg_manager","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":151,"name":"preseed_autoinstall_clevis_tang_wrapper","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":121,"name":"Preseed + Autoinstall cloud-init user data","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":59,"name":"Preseed + default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":37,"name":"Preseed + default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":46,"name":"Preseed + default iPXE","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":47,"name":"Preseed + default iPXE Autoinstall","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":9,"name":"Preseed + default PXEGrub2","template_kind_id":4,"template_kind_name":"PXEGrub2","inherited":false},{"id":10,"name":"Preseed + default PXEGrub2 Autoinstall","template_kind_id":4,"template_kind_name":"PXEGrub2","inherited":false},{"id":19,"name":"Preseed + default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":20,"name":"Preseed + default PXELinux Autoinstall","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":122,"name":"Preseed + default user data","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":95,"name":"preseed_kernel_options","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":96,"name":"preseed_kernel_options_autoinstall","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":97,"name":"preseed_netplan_generic_interface","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":98,"name":"preseed_netplan_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":99,"name":"preseed_networking_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":100,"name":"puppet.conf","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":102,"name":"puppetlabs_repo","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":101,"name":"puppet_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":103,"name":"pxegrub2_chainload","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":11,"name":"PXEGrub2 + default local boot","template_kind_id":4,"template_kind_name":"PXEGrub2","inherited":false},{"id":104,"name":"pxegrub2_discovery","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":12,"name":"PXEGrub2 global default","template_kind_id":4,"template_kind_name":"PXEGrub2","inherited":false},{"id":105,"name":"pxegrub2_mac","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":106,"name":"pxegrub_chainload","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":5,"name":"PXEGrub default local boot","template_kind_id":3,"template_kind_name":"PXEGrub","inherited":false},{"id":107,"name":"pxegrub_discovery","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":6,"name":"PXEGrub - global default","template_kind_id":3,"template_kind_name":"PXEGrub","inherited":false},{"id":20,"name":"PXELinux - chain iPXE","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":21,"name":"PXELinux - chain iPXE UNDI","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":108,"name":"pxelinux_chainload","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":22,"name":"PXELinux - default local boot","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":23,"name":"PXELinux - default memdisk","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":109,"name":"pxelinux_discovery","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":24,"name":"PXELinux - global default","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":87,"name":"rancheros_cloudconfig","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":58,"name":"RancherOS - provision","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":25,"name":"RancherOS - PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":89,"name":"redhat_register","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":62,"name":"remote_execution_pull_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":96,"name":"remote_execution_ssh_keys","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":66,"name":"saltstack_minion","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":110,"name":"saltstack_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":111,"name":"schedule_reboot","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":118,"name":"UserData - default","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":119,"name":"UserData - open-vm-tools","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":26,"name":"WAIK - default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":37,"name":"Windows - default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":46,"name":"Windows - default iPXE","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":59,"name":"Windows - default provision","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":27,"name":"Windows - default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":112,"name":"Windows - network","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":64,"name":"Windows - peSetup.cmd","template_kind_id":8,"template_kind_name":"script","inherited":false},{"id":60,"name":"XenServer - default answerfile","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":38,"name":"XenServer - default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":28,"name":"XenServer - default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":113,"name":"yum_proxy","template_kind_id":null,"template_kind_name":null,"inherited":false}],"domains":[],"realms":[],"hostgroups":[],"organizations":[],"hosts_count":0,"parameters":[{}],"deprecations":{"environments":"Environments + global default","template_kind_id":3,"template_kind_name":"PXEGrub","inherited":false},{"id":21,"name":"PXELinux + chain iPXE","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":22,"name":"PXELinux + chain iPXE UNDI","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":108,"name":"pxelinux_chainload","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":23,"name":"PXELinux + default local boot","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":24,"name":"PXELinux + default memdisk","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":109,"name":"pxelinux_discovery","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":25,"name":"PXELinux + global default","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":110,"name":"rancheros_cloudconfig","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":60,"name":"RancherOS + provision","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":26,"name":"RancherOS + PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":111,"name":"redhat_register","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":64,"name":"remote_execution_pull_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":112,"name":"remote_execution_ssh_keys","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":113,"name":"saltstack_minion","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":114,"name":"saltstack_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":115,"name":"schedule_reboot","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":116,"name":"subscription_manager_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":123,"name":"UserData + default","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":124,"name":"UserData + open-vm-tools","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":27,"name":"WAIK + default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":38,"name":"Windows + default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":48,"name":"Windows + default iPXE","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":49,"name":"Windows + default iPXE httpboot","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":61,"name":"Windows + default provision","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":28,"name":"Windows + default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":125,"name":"Windows + default user data","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":117,"name":"Windows + network","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":66,"name":"Windows + peSetup.cmd","template_kind_id":8,"template_kind_name":"script","inherited":false},{"id":62,"name":"XenServer + default answerfile","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":39,"name":"XenServer + default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":29,"name":"XenServer + default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":118,"name":"yum_proxy","template_kind_id":null,"template_kind_name":null,"inherited":false}],"domains":[],"realms":[],"hostgroups":[],"organizations":[],"hosts_count":0,"parameters":[{}],"deprecations":{"environments":"Environments got deprecated from this endpoint."}}' headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive + Content-Length: + - '19171' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -254,13 +266,11 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.4.0 + - 3.11.0-develop Keep-Alive: - timeout=15, max=98 Strict-Transport-Security: - max-age=631139040; includeSubdomains - Transfer-Encoding: - - chunked X-Content-Type-Options: - nosniff X-Download-Options: @@ -292,14 +302,16 @@ interactions: string: "{\n \"total\": 4,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": 4294967296,\n \"search\": \"title=\\\"Test Location/Sub Location 1\\\"\",\n \ \"sort\": {\n \"by\": null,\n \"order\": null\n },\n \"results\": - [{\"ancestry\":\"4\",\"parent_id\":4,\"parent_name\":\"Test Location\",\"created_at\":\"2022-11-08 - 09:29:07 UTC\",\"updated_at\":\"2022-11-08 09:29:07 UTC\",\"id\":5,\"name\":\"Sub + [{\"ancestry\":\"7\",\"parent_id\":7,\"parent_name\":\"Test Location\",\"created_at\":\"2024-07-25 + 12:00:04 UTC\",\"updated_at\":\"2024-07-25 12:00:04 UTC\",\"id\":8,\"name\":\"Sub Location 1\",\"title\":\"Test Location/Sub Location 1\",\"description\":null}]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive + Content-Length: + - '422' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -313,13 +325,11 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.4.0 + - 3.11.0-develop Keep-Alive: - timeout=15, max=97 Strict-Transport-Security: - max-age=631139040; includeSubdomains - Transfer-Encoding: - - chunked X-Content-Type-Options: - nosniff X-Download-Options: diff --git a/tests/test_playbooks/fixtures/location-7.yml b/tests/test_playbooks/fixtures/location-7.yml index 6e2d8b54..fd9bb9e3 100644 --- a/tests/test_playbooks/fixtures/location-7.yml +++ b/tests/test_playbooks/fixtures/location-7.yml @@ -14,12 +14,14 @@ interactions: uri: https://foreman.example.org/api/status response: body: - string: '{"result":"ok","status":200,"version":"3.4.0","api_version":2}' + string: '{"result":"ok","status":200,"version":"3.11.0-develop","api_version":2}' headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive + Content-Length: + - '71' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -33,13 +35,11 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.4.0 + - 3.11.0-develop Keep-Alive: - timeout=15, max=100 Strict-Transport-Security: - max-age=631139040; includeSubdomains - Transfer-Encoding: - - chunked X-Content-Type-Options: - nosniff X-Download-Options: @@ -71,15 +71,17 @@ interactions: string: "{\n \"total\": 4,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": 4294967296,\n \"search\": \"title=\\\"Test Location/Sub Location 1/Sub Location 2\\\"\",\n \"sort\": {\n \"by\": null,\n \"order\": null\n },\n \"results\": - [{\"ancestry\":\"4/5\",\"parent_id\":5,\"parent_name\":\"Test Location/Sub - Location 1\",\"created_at\":\"2022-11-08 09:29:09 UTC\",\"updated_at\":\"2022-11-08 - 09:29:09 UTC\",\"id\":6,\"name\":\"Sub Location 2\",\"title\":\"Test Location/Sub + [{\"ancestry\":\"7/8\",\"parent_id\":8,\"parent_name\":\"Test Location/Sub + Location 1\",\"created_at\":\"2024-07-25 12:00:07 UTC\",\"updated_at\":\"2024-07-25 + 12:00:07 UTC\",\"id\":9,\"name\":\"Sub Location 2\",\"title\":\"Test Location/Sub Location 1/Sub Location 2\",\"description\":null}]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive + Content-Length: + - '469' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -93,13 +95,11 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.4.0 + - 3.11.0-develop Keep-Alive: - timeout=15, max=99 Strict-Transport-Security: - max-age=631139040; includeSubdomains - Transfer-Encoding: - - chunked X-Content-Type-Options: - nosniff X-Download-Options: @@ -125,122 +125,134 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/api/locations/6 + uri: https://foreman.example.org/api/locations/9 response: body: - string: '{"select_all_types":[],"description":null,"created_at":"2022-11-08 - 09:29:09 UTC","updated_at":"2022-11-08 09:29:09 UTC","ancestry":"4/5","parent_id":5,"parent_name":"Test - Location/Sub Location 1","id":6,"name":"Sub Location 2","title":"Test Location/Sub - Location 1/Sub Location 2","users":[],"smart_proxies":[],"subnets":[],"compute_resources":[],"media":[],"ptables":[{"description":null,"os_family":"Suse","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"AutoYaST entire - SCSI disk","id":120,"inherited":false},{"description":null,"os_family":"Suse","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"AutoYaST entire - virtual disk","id":121,"inherited":false},{"description":null,"os_family":"Suse","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"AutoYaST LVM","id":122,"inherited":false},{"description":null,"os_family":"Coreos","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"CoreOS default - fake","id":123,"inherited":false},{"description":null,"os_family":"Rancheros","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Empty","id":124,"inherited":false},{"description":null,"os_family":"Freebsd","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"FreeBSD default - fake","id":125,"inherited":false},{"description":null,"os_family":"Solaris","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Jumpstart default","id":126,"inherited":false},{"description":null,"os_family":"Solaris","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Jumpstart mirrored","id":127,"inherited":false},{"description":null,"os_family":"Junos","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Junos default - fake","id":128,"inherited":false},{"description":null,"os_family":"Redhat","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Kickstart custom","id":129,"inherited":false},{"description":null,"os_family":"Redhat","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Kickstart default","id":130,"inherited":false},{"description":null,"os_family":"Redhat","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Kickstart default - thin","id":131,"inherited":false},{"description":null,"os_family":"Redhat","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Kickstart dynamic","id":132,"inherited":false},{"description":null,"os_family":"NXOS","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"NX-OS default - fake","id":133,"inherited":false},{"description":null,"os_family":"Debian","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Preseed default","id":134,"inherited":false},{"description":"Preseed + string: '{"select_all_types":[],"description":null,"created_at":"2024-07-25 + 12:00:07 UTC","updated_at":"2024-07-25 12:00:07 UTC","ancestry":"7/8","parent_id":8,"parent_name":"Test + Location/Sub Location 1","id":9,"name":"Sub Location 2","title":"Test Location/Sub + Location 1/Sub Location 2","users":[],"smart_proxies":[],"subnets":[],"compute_resources":[],"media":[],"ptables":[{"description":null,"os_family":"Suse","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"AutoYaST entire + SCSI disk","id":126,"inherited":false},{"description":null,"os_family":"Suse","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"AutoYaST entire + virtual disk","id":127,"inherited":false},{"description":null,"os_family":"Suse","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"AutoYaST LVM","id":128,"inherited":false},{"description":null,"os_family":"Coreos","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"CoreOS default + fake","id":129,"inherited":false},{"description":null,"os_family":"Rancheros","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"Empty","id":130,"inherited":false},{"description":null,"os_family":"Freebsd","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"FreeBSD default + fake","id":131,"inherited":false},{"description":null,"os_family":"Solaris","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"Jumpstart default","id":132,"inherited":false},{"description":null,"os_family":"Solaris","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"Jumpstart mirrored","id":133,"inherited":false},{"description":null,"os_family":"Junos","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"Junos default + fake","id":134,"inherited":false},{"description":null,"os_family":"Redhat","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"Kickstart custom","id":135,"inherited":false},{"description":null,"os_family":"Redhat","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"Kickstart default","id":136,"inherited":false},{"description":null,"os_family":"Redhat","created_at":"2024-04-22 + 11:15:26 UTC","updated_at":"2024-04-22 11:15:26 UTC","name":"Kickstart default + encrypted","id":152,"inherited":false},{"description":null,"os_family":"Redhat","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"Kickstart default + thin","id":137,"inherited":false},{"description":null,"os_family":"Redhat","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"Kickstart dynamic","id":138,"inherited":false},{"description":null,"os_family":"NXOS","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"NX-OS default + fake","id":139,"inherited":false},{"description":null,"os_family":"Debian","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"Preseed default","id":140,"inherited":false},{"description":"Preseed Autoinstall default storage snippet configures drives automatically\nwith - LVM. The snippet is automatically indented by 2 spaces. For reference:\nhttps://ubuntu.com/server/docs/install/autoinstall-reference","os_family":"Debian","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Preseed default - autoinstall","id":135,"inherited":false},{"description":null,"os_family":"Debian","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Preseed default - LVM","id":136,"inherited":false},{"description":null,"os_family":"Windows","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Windows default - GPT EFI partition table","id":138,"inherited":false},{"description":null,"os_family":"Windows","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Windows default - partition table","id":137,"inherited":false},{"description":null,"os_family":"Xenserver","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"XenServer default","id":139,"inherited":false}],"provisioning_templates":[{"id":47,"name":"Alterator - default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":31,"name":"Alterator - default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":12,"name":"Alterator - default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":65,"name":"alterator_pkglist","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":67,"name":"ansible_provisioning_callback","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":68,"name":"ansible_tower_callback_script","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":69,"name":"ansible_tower_callback_service","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":48,"name":"Atomic - Kickstart default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":49,"name":"AutoYaST - default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":40,"name":"AutoYaST + LVM. The snippet is automatically indented by 2 spaces. For reference:\nhttps://ubuntu.com/server/docs/install/autoinstall-reference","os_family":"Debian","created_at":"2024-04-15 + 09:11:37 UTC","updated_at":"2024-04-15 09:11:37 UTC","name":"Preseed default + autoinstall","id":141,"inherited":false},{"description":"Preseed Autoinstall + default storage snippet configures drives automatically\nwith LVM and disk + encryption.\nRequires Ubuntu >= 22.04.3.\nThe snippet is automatically indented + by 2 spaces. For reference:\nhttps://ubuntu.com/server/docs/install/autoinstall-reference","os_family":"Debian","created_at":"2024-04-22 + 11:15:26 UTC","updated_at":"2024-04-22 11:15:26 UTC","name":"Preseed default + autoinstall encrypted","id":153,"inherited":false},{"description":null,"os_family":"Debian","created_at":"2024-04-15 + 09:11:37 UTC","updated_at":"2024-04-15 09:11:37 UTC","name":"Preseed default + LVM","id":142,"inherited":false},{"description":null,"os_family":"Windows","created_at":"2024-04-15 + 09:11:37 UTC","updated_at":"2024-04-15 09:11:37 UTC","name":"Windows default + GPT EFI partition table","id":144,"inherited":false},{"description":null,"os_family":"Windows","created_at":"2024-04-15 + 09:11:37 UTC","updated_at":"2024-04-15 09:11:37 UTC","name":"Windows default + partition table","id":143,"inherited":false},{"description":null,"os_family":"Xenserver","created_at":"2024-04-15 + 09:11:37 UTC","updated_at":"2024-04-15 09:11:37 UTC","name":"XenServer default","id":145,"inherited":false}],"provisioning_templates":[{"id":50,"name":"Alterator + default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":32,"name":"Alterator + default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":13,"name":"Alterator + default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":67,"name":"alterator_pkglist","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":68,"name":"ansible_provisioning_callback","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":69,"name":"ansible_tower_callback_script","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":70,"name":"ansible_tower_callback_service","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":51,"name":"AutoYaST + default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":41,"name":"AutoYaST default iPXE","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":2,"name":"AutoYaST default PXEGrub","template_kind_id":3,"template_kind_name":"PXEGrub","inherited":false},{"id":7,"name":"AutoYaST - default PXEGrub2","template_kind_id":4,"template_kind_name":"PXEGrub2","inherited":false},{"id":13,"name":"AutoYaST - default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":114,"name":"AutoYaST - default user data","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":50,"name":"AutoYaST - SLES default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":70,"name":"blacklist_kernel_modules","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":71,"name":"bmc_nic_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":72,"name":"built","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":73,"name":"chef_client","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":30,"name":"CloudInit - default","template_kind_id":12,"template_kind_name":"cloud-init","inherited":false},{"id":74,"name":"coreos_cloudconfig","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":51,"name":"CoreOS - provision","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":14,"name":"CoreOS - PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":75,"name":"create_users","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":76,"name":"csr_attributes.yaml","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":77,"name":"efibootmgr_netboot","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":78,"name":"eject_cdrom","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":79,"name":"epel","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":80,"name":"fips_packages","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":81,"name":"fix_hosts","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":32,"name":"FreeBSD - (mfsBSD) finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":52,"name":"FreeBSD - (mfsBSD) provision","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":15,"name":"FreeBSD - (mfsBSD) PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":82,"name":"freeipa_register","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":61,"name":"Global - Registration","template_kind_id":13,"template_kind_name":"registration","inherited":false},{"id":63,"name":"Grubby - default","template_kind_id":8,"template_kind_name":"script","inherited":false},{"id":83,"name":"http_proxy","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":84,"name":"insights","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":41,"name":"iPXE - default local boot","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":42,"name":"iPXE - global default","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":43,"name":"iPXE - intermediate script","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":53,"name":"Jumpstart - default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":33,"name":"Jumpstart + default PXEGrub2","template_kind_id":4,"template_kind_name":"PXEGrub2","inherited":false},{"id":14,"name":"AutoYaST + default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":119,"name":"AutoYaST + default user data","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":52,"name":"AutoYaST + SLES default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":71,"name":"blacklist_kernel_modules","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":72,"name":"bmc_nic_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":73,"name":"built","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":74,"name":"chef_client","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":31,"name":"CloudInit + default","template_kind_id":12,"template_kind_name":"cloud-init","inherited":false},{"id":75,"name":"coreos_cloudconfig","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":53,"name":"CoreOS + provision","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":15,"name":"CoreOS + PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":76,"name":"create_users","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":77,"name":"csr_attributes.yaml","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":149,"name":"disk_enc_clevis_tang","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":78,"name":"efibootmgr_netboot","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":79,"name":"eject_cdrom","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":80,"name":"epel","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":81,"name":"fips_packages","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":82,"name":"fix_hosts","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":33,"name":"FreeBSD + (mfsBSD) finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":54,"name":"FreeBSD + (mfsBSD) provision","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":16,"name":"FreeBSD + (mfsBSD) PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":83,"name":"freeipa_register","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":63,"name":"Global + Registration","template_kind_id":13,"template_kind_name":"registration","inherited":false},{"id":65,"name":"Grubby + default","template_kind_id":8,"template_kind_name":"script","inherited":false},{"id":84,"name":"http_proxy","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":85,"name":"insights","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":42,"name":"iPXE + default local boot","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":43,"name":"iPXE + global default","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":44,"name":"iPXE + intermediate script","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":55,"name":"Jumpstart + default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":34,"name":"Jumpstart default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":3,"name":"Jumpstart - default PXEGrub","template_kind_id":3,"template_kind_name":"PXEGrub","inherited":false},{"id":34,"name":"Junos - default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":54,"name":"Junos - default SLAX","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":29,"name":"Junos - default ZTP config","template_kind_id":10,"template_kind_name":"ZTP","inherited":false},{"id":55,"name":"Kickstart - default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":35,"name":"Kickstart - default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":44,"name":"Kickstart + default PXEGrub","template_kind_id":3,"template_kind_name":"PXEGrub","inherited":false},{"id":35,"name":"Junos + default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":56,"name":"Junos + default SLAX","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":30,"name":"Junos + default ZTP config","template_kind_id":10,"template_kind_name":"ZTP","inherited":false},{"id":57,"name":"Kickstart + default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":36,"name":"Kickstart + default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":45,"name":"Kickstart default iPXE","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":4,"name":"Kickstart default PXEGrub","template_kind_id":3,"template_kind_name":"PXEGrub","inherited":false},{"id":8,"name":"Kickstart - default PXEGrub2","template_kind_id":4,"template_kind_name":"PXEGrub2","inherited":false},{"id":16,"name":"Kickstart - default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":115,"name":"Kickstart - default user data","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":86,"name":"kickstart_ifcfg_bonded_interface","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":85,"name":"kickstart_ifcfg_bond_interface","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":88,"name":"kickstart_ifcfg_generic_interface","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":90,"name":"kickstart_ifcfg_get_identifier_names","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":91,"name":"kickstart_kernel_options","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":92,"name":"kickstart_networking_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":56,"name":"Kickstart - oVirt-RHVH","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":17,"name":"Kickstart - oVirt-RHVH PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":39,"name":"Linux + default PXEGrub2","template_kind_id":4,"template_kind_name":"PXEGrub2","inherited":false},{"id":17,"name":"Kickstart + default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":120,"name":"Kickstart + default user data","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":87,"name":"kickstart_ifcfg_bonded_interface","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":86,"name":"kickstart_ifcfg_bond_interface","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":88,"name":"kickstart_ifcfg_generic_interface","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":89,"name":"kickstart_ifcfg_get_identifier_names","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":90,"name":"kickstart_kernel_options","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":91,"name":"kickstart_networking_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":150,"name":"kickstart_network_interface","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":58,"name":"Kickstart + oVirt-RHVH","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":18,"name":"Kickstart + oVirt-RHVH PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":92,"name":"kickstart_rhsm","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":40,"name":"Linux host_init_config default","template_kind_id":1,"template_kind_name":"host_init_config","inherited":false},{"id":93,"name":"ntp","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":1,"name":"NX-OS - default POAP setup","template_kind_id":11,"template_kind_name":"POAP","inherited":false},{"id":94,"name":"pkg_manager","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":116,"name":"Preseed - Autoinstall cloud-init user data","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":57,"name":"Preseed - default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":36,"name":"Preseed - default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":45,"name":"Preseed - default iPXE","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":9,"name":"Preseed - default PXEGrub2","template_kind_id":4,"template_kind_name":"PXEGrub2","inherited":false},{"id":18,"name":"Preseed - default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":19,"name":"Preseed - default PXELinux Autoinstall","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":117,"name":"Preseed - default user data","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":95,"name":"preseed_kernel_options","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":97,"name":"preseed_netplan_generic_interface","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":98,"name":"preseed_netplan_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":99,"name":"preseed_networking_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":100,"name":"puppet.conf","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":102,"name":"puppetlabs_repo","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":101,"name":"puppet_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":103,"name":"pxegrub2_chainload","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":10,"name":"PXEGrub2 - default local boot","template_kind_id":4,"template_kind_name":"PXEGrub2","inherited":false},{"id":104,"name":"pxegrub2_discovery","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":11,"name":"PXEGrub2 + default POAP setup","template_kind_id":11,"template_kind_name":"POAP","inherited":false},{"id":94,"name":"pkg_manager","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":151,"name":"preseed_autoinstall_clevis_tang_wrapper","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":121,"name":"Preseed + Autoinstall cloud-init user data","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":59,"name":"Preseed + default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":37,"name":"Preseed + default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":46,"name":"Preseed + default iPXE","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":47,"name":"Preseed + default iPXE Autoinstall","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":9,"name":"Preseed + default PXEGrub2","template_kind_id":4,"template_kind_name":"PXEGrub2","inherited":false},{"id":10,"name":"Preseed + default PXEGrub2 Autoinstall","template_kind_id":4,"template_kind_name":"PXEGrub2","inherited":false},{"id":19,"name":"Preseed + default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":20,"name":"Preseed + default PXELinux Autoinstall","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":122,"name":"Preseed + default user data","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":95,"name":"preseed_kernel_options","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":96,"name":"preseed_kernel_options_autoinstall","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":97,"name":"preseed_netplan_generic_interface","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":98,"name":"preseed_netplan_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":99,"name":"preseed_networking_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":100,"name":"puppet.conf","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":102,"name":"puppetlabs_repo","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":101,"name":"puppet_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":103,"name":"pxegrub2_chainload","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":11,"name":"PXEGrub2 + default local boot","template_kind_id":4,"template_kind_name":"PXEGrub2","inherited":false},{"id":104,"name":"pxegrub2_discovery","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":12,"name":"PXEGrub2 global default","template_kind_id":4,"template_kind_name":"PXEGrub2","inherited":false},{"id":105,"name":"pxegrub2_mac","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":106,"name":"pxegrub_chainload","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":5,"name":"PXEGrub default local boot","template_kind_id":3,"template_kind_name":"PXEGrub","inherited":false},{"id":107,"name":"pxegrub_discovery","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":6,"name":"PXEGrub - global default","template_kind_id":3,"template_kind_name":"PXEGrub","inherited":false},{"id":20,"name":"PXELinux - chain iPXE","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":21,"name":"PXELinux - chain iPXE UNDI","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":108,"name":"pxelinux_chainload","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":22,"name":"PXELinux - default local boot","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":23,"name":"PXELinux - default memdisk","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":109,"name":"pxelinux_discovery","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":24,"name":"PXELinux - global default","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":87,"name":"rancheros_cloudconfig","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":58,"name":"RancherOS - provision","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":25,"name":"RancherOS - PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":89,"name":"redhat_register","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":62,"name":"remote_execution_pull_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":96,"name":"remote_execution_ssh_keys","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":66,"name":"saltstack_minion","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":110,"name":"saltstack_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":111,"name":"schedule_reboot","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":118,"name":"UserData - default","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":119,"name":"UserData - open-vm-tools","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":26,"name":"WAIK - default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":37,"name":"Windows - default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":46,"name":"Windows - default iPXE","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":59,"name":"Windows - default provision","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":27,"name":"Windows - default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":112,"name":"Windows - network","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":64,"name":"Windows - peSetup.cmd","template_kind_id":8,"template_kind_name":"script","inherited":false},{"id":60,"name":"XenServer - default answerfile","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":38,"name":"XenServer - default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":28,"name":"XenServer - default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":113,"name":"yum_proxy","template_kind_id":null,"template_kind_name":null,"inherited":false}],"domains":[],"realms":[],"hostgroups":[],"organizations":[],"hosts_count":0,"parameters":[{}],"deprecations":{"environments":"Environments + global default","template_kind_id":3,"template_kind_name":"PXEGrub","inherited":false},{"id":21,"name":"PXELinux + chain iPXE","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":22,"name":"PXELinux + chain iPXE UNDI","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":108,"name":"pxelinux_chainload","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":23,"name":"PXELinux + default local boot","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":24,"name":"PXELinux + default memdisk","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":109,"name":"pxelinux_discovery","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":25,"name":"PXELinux + global default","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":110,"name":"rancheros_cloudconfig","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":60,"name":"RancherOS + provision","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":26,"name":"RancherOS + PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":111,"name":"redhat_register","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":64,"name":"remote_execution_pull_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":112,"name":"remote_execution_ssh_keys","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":113,"name":"saltstack_minion","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":114,"name":"saltstack_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":115,"name":"schedule_reboot","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":116,"name":"subscription_manager_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":123,"name":"UserData + default","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":124,"name":"UserData + open-vm-tools","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":27,"name":"WAIK + default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":38,"name":"Windows + default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":48,"name":"Windows + default iPXE","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":49,"name":"Windows + default iPXE httpboot","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":61,"name":"Windows + default provision","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":28,"name":"Windows + default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":125,"name":"Windows + default user data","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":117,"name":"Windows + network","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":66,"name":"Windows + peSetup.cmd","template_kind_id":8,"template_kind_name":"script","inherited":false},{"id":62,"name":"XenServer + default answerfile","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":39,"name":"XenServer + default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":29,"name":"XenServer + default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":118,"name":"yum_proxy","template_kind_id":null,"template_kind_name":null,"inherited":false}],"domains":[],"realms":[],"hostgroups":[],"organizations":[],"hosts_count":0,"parameters":[{}],"deprecations":{"environments":"Environments got deprecated from this endpoint."}}' headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive + Content-Length: + - '19171' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -254,13 +266,11 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.4.0 + - 3.11.0-develop Keep-Alive: - timeout=15, max=98 Strict-Transport-Security: - max-age=631139040; includeSubdomains - Transfer-Encoding: - - chunked X-Content-Type-Options: - nosniff X-Download-Options: @@ -292,14 +302,16 @@ interactions: string: "{\n \"total\": 4,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": 4294967296,\n \"search\": \"title=\\\"Test Location/Sub Location 1\\\"\",\n \ \"sort\": {\n \"by\": null,\n \"order\": null\n },\n \"results\": - [{\"ancestry\":\"4\",\"parent_id\":4,\"parent_name\":\"Test Location\",\"created_at\":\"2022-11-08 - 09:29:07 UTC\",\"updated_at\":\"2022-11-08 09:29:07 UTC\",\"id\":5,\"name\":\"Sub + [{\"ancestry\":\"7\",\"parent_id\":7,\"parent_name\":\"Test Location\",\"created_at\":\"2024-07-25 + 12:00:04 UTC\",\"updated_at\":\"2024-07-25 12:00:04 UTC\",\"id\":8,\"name\":\"Sub Location 1\",\"title\":\"Test Location/Sub Location 1\",\"description\":null}]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive + Content-Length: + - '422' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -313,13 +325,11 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.4.0 + - 3.11.0-develop Keep-Alive: - timeout=15, max=97 Strict-Transport-Security: - max-age=631139040; includeSubdomains - Transfer-Encoding: - - chunked X-Content-Type-Options: - nosniff X-Download-Options: @@ -350,14 +360,16 @@ interactions: body: string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": 4294967296,\n \"search\": \"name=\\\"Test Organization\\\"\",\n \"sort\": - {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"ancestry\":null,\"parent_id\":null,\"parent_name\":null,\"created_at\":\"2022-11-08 - 09:29:04 UTC\",\"updated_at\":\"2022-11-08 09:29:04 UTC\",\"id\":3,\"name\":\"Test + {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"ancestry\":null,\"parent_id\":null,\"parent_name\":null,\"created_at\":\"2024-07-25 + 12:00:00 UTC\",\"updated_at\":\"2024-07-25 12:00:00 UTC\",\"id\":6,\"name\":\"Test Organization\",\"title\":\"Test Organization\",\"description\":\"A test organization\"}]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive + Content-Length: + - '412' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -371,13 +383,11 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.4.0 + - 3.11.0-develop Keep-Alive: - timeout=15, max=96 Strict-Transport-Security: - max-age=631139040; includeSubdomains - Transfer-Encoding: - - chunked X-Content-Type-Options: - nosniff X-Download-Options: @@ -392,7 +402,7 @@ interactions: code: 200 message: OK - request: - body: '{"location": {"organization_ids": [3]}}' + body: '{"location": {"organization_ids": [6]}}' headers: Accept: - application/json;version=2 @@ -407,116 +417,126 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: PUT - uri: https://foreman.example.org/api/locations/6 + uri: https://foreman.example.org/api/locations/9 response: body: - string: '{"select_all_types":[],"description":null,"created_at":"2022-11-08 - 09:29:09 UTC","updated_at":"2022-11-08 09:29:09 UTC","ancestry":"4/5","parent_id":5,"parent_name":"Test - Location/Sub Location 1","id":6,"name":"Sub Location 2","title":"Test Location/Sub - Location 1/Sub Location 2","users":[],"smart_proxies":[],"subnets":[],"compute_resources":[],"media":[],"ptables":[{"description":null,"os_family":"Suse","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"AutoYaST entire - SCSI disk","id":120,"inherited":false},{"description":null,"os_family":"Suse","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"AutoYaST entire - virtual disk","id":121,"inherited":false},{"description":null,"os_family":"Suse","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"AutoYaST LVM","id":122,"inherited":false},{"description":null,"os_family":"Coreos","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"CoreOS default - fake","id":123,"inherited":false},{"description":null,"os_family":"Rancheros","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Empty","id":124,"inherited":false},{"description":null,"os_family":"Freebsd","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"FreeBSD default - fake","id":125,"inherited":false},{"description":null,"os_family":"Solaris","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Jumpstart default","id":126,"inherited":false},{"description":null,"os_family":"Solaris","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Jumpstart mirrored","id":127,"inherited":false},{"description":null,"os_family":"Junos","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Junos default - fake","id":128,"inherited":false},{"description":null,"os_family":"Redhat","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Kickstart custom","id":129,"inherited":false},{"description":null,"os_family":"Redhat","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Kickstart default","id":130,"inherited":false},{"description":null,"os_family":"Redhat","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Kickstart default - thin","id":131,"inherited":false},{"description":null,"os_family":"Redhat","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Kickstart dynamic","id":132,"inherited":false},{"description":null,"os_family":"NXOS","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"NX-OS default - fake","id":133,"inherited":false},{"description":null,"os_family":"Debian","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Preseed default","id":134,"inherited":false},{"description":"Preseed + string: '{"select_all_types":[],"description":null,"created_at":"2024-07-25 + 12:00:07 UTC","updated_at":"2024-07-25 12:00:07 UTC","ancestry":"7/8","parent_id":8,"parent_name":"Test + Location/Sub Location 1","id":9,"name":"Sub Location 2","title":"Test Location/Sub + Location 1/Sub Location 2","users":[],"smart_proxies":[],"subnets":[],"compute_resources":[],"media":[],"ptables":[{"description":null,"os_family":"Suse","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"AutoYaST entire + SCSI disk","id":126,"inherited":false},{"description":null,"os_family":"Suse","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"AutoYaST entire + virtual disk","id":127,"inherited":false},{"description":null,"os_family":"Suse","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"AutoYaST LVM","id":128,"inherited":false},{"description":null,"os_family":"Coreos","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"CoreOS default + fake","id":129,"inherited":false},{"description":null,"os_family":"Rancheros","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"Empty","id":130,"inherited":false},{"description":null,"os_family":"Freebsd","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"FreeBSD default + fake","id":131,"inherited":false},{"description":null,"os_family":"Solaris","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"Jumpstart default","id":132,"inherited":false},{"description":null,"os_family":"Solaris","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"Jumpstart mirrored","id":133,"inherited":false},{"description":null,"os_family":"Junos","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"Junos default + fake","id":134,"inherited":false},{"description":null,"os_family":"Redhat","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"Kickstart custom","id":135,"inherited":false},{"description":null,"os_family":"Redhat","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"Kickstart default","id":136,"inherited":false},{"description":null,"os_family":"Redhat","created_at":"2024-04-22 + 11:15:26 UTC","updated_at":"2024-04-22 11:15:26 UTC","name":"Kickstart default + encrypted","id":152,"inherited":false},{"description":null,"os_family":"Redhat","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"Kickstart default + thin","id":137,"inherited":false},{"description":null,"os_family":"Redhat","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"Kickstart dynamic","id":138,"inherited":false},{"description":null,"os_family":"NXOS","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"NX-OS default + fake","id":139,"inherited":false},{"description":null,"os_family":"Debian","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"Preseed default","id":140,"inherited":false},{"description":"Preseed Autoinstall default storage snippet configures drives automatically\nwith - LVM. The snippet is automatically indented by 2 spaces. For reference:\nhttps://ubuntu.com/server/docs/install/autoinstall-reference","os_family":"Debian","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Preseed default - autoinstall","id":135,"inherited":false},{"description":null,"os_family":"Debian","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Preseed default - LVM","id":136,"inherited":false},{"description":null,"os_family":"Windows","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Windows default - GPT EFI partition table","id":138,"inherited":false},{"description":null,"os_family":"Windows","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Windows default - partition table","id":137,"inherited":false},{"description":null,"os_family":"Xenserver","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"XenServer default","id":139,"inherited":false}],"provisioning_templates":[{"id":47,"name":"Alterator - default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":31,"name":"Alterator - default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":12,"name":"Alterator - default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":65,"name":"alterator_pkglist","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":67,"name":"ansible_provisioning_callback","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":68,"name":"ansible_tower_callback_script","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":69,"name":"ansible_tower_callback_service","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":48,"name":"Atomic - Kickstart default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":49,"name":"AutoYaST - default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":40,"name":"AutoYaST + LVM. The snippet is automatically indented by 2 spaces. For reference:\nhttps://ubuntu.com/server/docs/install/autoinstall-reference","os_family":"Debian","created_at":"2024-04-15 + 09:11:37 UTC","updated_at":"2024-04-15 09:11:37 UTC","name":"Preseed default + autoinstall","id":141,"inherited":false},{"description":"Preseed Autoinstall + default storage snippet configures drives automatically\nwith LVM and disk + encryption.\nRequires Ubuntu >= 22.04.3.\nThe snippet is automatically indented + by 2 spaces. For reference:\nhttps://ubuntu.com/server/docs/install/autoinstall-reference","os_family":"Debian","created_at":"2024-04-22 + 11:15:26 UTC","updated_at":"2024-04-22 11:15:26 UTC","name":"Preseed default + autoinstall encrypted","id":153,"inherited":false},{"description":null,"os_family":"Debian","created_at":"2024-04-15 + 09:11:37 UTC","updated_at":"2024-04-15 09:11:37 UTC","name":"Preseed default + LVM","id":142,"inherited":false},{"description":null,"os_family":"Windows","created_at":"2024-04-15 + 09:11:37 UTC","updated_at":"2024-04-15 09:11:37 UTC","name":"Windows default + GPT EFI partition table","id":144,"inherited":false},{"description":null,"os_family":"Windows","created_at":"2024-04-15 + 09:11:37 UTC","updated_at":"2024-04-15 09:11:37 UTC","name":"Windows default + partition table","id":143,"inherited":false},{"description":null,"os_family":"Xenserver","created_at":"2024-04-15 + 09:11:37 UTC","updated_at":"2024-04-15 09:11:37 UTC","name":"XenServer default","id":145,"inherited":false}],"provisioning_templates":[{"id":50,"name":"Alterator + default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":32,"name":"Alterator + default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":13,"name":"Alterator + default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":67,"name":"alterator_pkglist","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":68,"name":"ansible_provisioning_callback","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":69,"name":"ansible_tower_callback_script","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":70,"name":"ansible_tower_callback_service","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":51,"name":"AutoYaST + default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":41,"name":"AutoYaST default iPXE","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":2,"name":"AutoYaST default PXEGrub","template_kind_id":3,"template_kind_name":"PXEGrub","inherited":false},{"id":7,"name":"AutoYaST - default PXEGrub2","template_kind_id":4,"template_kind_name":"PXEGrub2","inherited":false},{"id":13,"name":"AutoYaST - default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":114,"name":"AutoYaST - default user data","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":50,"name":"AutoYaST - SLES default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":70,"name":"blacklist_kernel_modules","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":71,"name":"bmc_nic_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":72,"name":"built","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":73,"name":"chef_client","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":30,"name":"CloudInit - default","template_kind_id":12,"template_kind_name":"cloud-init","inherited":false},{"id":74,"name":"coreos_cloudconfig","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":51,"name":"CoreOS - provision","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":14,"name":"CoreOS - PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":75,"name":"create_users","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":76,"name":"csr_attributes.yaml","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":77,"name":"efibootmgr_netboot","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":78,"name":"eject_cdrom","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":79,"name":"epel","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":80,"name":"fips_packages","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":81,"name":"fix_hosts","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":32,"name":"FreeBSD - (mfsBSD) finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":52,"name":"FreeBSD - (mfsBSD) provision","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":15,"name":"FreeBSD - (mfsBSD) PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":82,"name":"freeipa_register","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":61,"name":"Global - Registration","template_kind_id":13,"template_kind_name":"registration","inherited":false},{"id":63,"name":"Grubby - default","template_kind_id":8,"template_kind_name":"script","inherited":false},{"id":83,"name":"http_proxy","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":84,"name":"insights","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":41,"name":"iPXE - default local boot","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":42,"name":"iPXE - global default","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":43,"name":"iPXE - intermediate script","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":53,"name":"Jumpstart - default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":33,"name":"Jumpstart + default PXEGrub2","template_kind_id":4,"template_kind_name":"PXEGrub2","inherited":false},{"id":14,"name":"AutoYaST + default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":119,"name":"AutoYaST + default user data","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":52,"name":"AutoYaST + SLES default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":71,"name":"blacklist_kernel_modules","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":72,"name":"bmc_nic_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":73,"name":"built","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":74,"name":"chef_client","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":31,"name":"CloudInit + default","template_kind_id":12,"template_kind_name":"cloud-init","inherited":false},{"id":75,"name":"coreos_cloudconfig","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":53,"name":"CoreOS + provision","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":15,"name":"CoreOS + PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":76,"name":"create_users","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":77,"name":"csr_attributes.yaml","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":149,"name":"disk_enc_clevis_tang","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":78,"name":"efibootmgr_netboot","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":79,"name":"eject_cdrom","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":80,"name":"epel","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":81,"name":"fips_packages","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":82,"name":"fix_hosts","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":33,"name":"FreeBSD + (mfsBSD) finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":54,"name":"FreeBSD + (mfsBSD) provision","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":16,"name":"FreeBSD + (mfsBSD) PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":83,"name":"freeipa_register","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":63,"name":"Global + Registration","template_kind_id":13,"template_kind_name":"registration","inherited":false},{"id":65,"name":"Grubby + default","template_kind_id":8,"template_kind_name":"script","inherited":false},{"id":84,"name":"http_proxy","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":85,"name":"insights","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":42,"name":"iPXE + default local boot","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":43,"name":"iPXE + global default","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":44,"name":"iPXE + intermediate script","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":55,"name":"Jumpstart + default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":34,"name":"Jumpstart default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":3,"name":"Jumpstart - default PXEGrub","template_kind_id":3,"template_kind_name":"PXEGrub","inherited":false},{"id":34,"name":"Junos - default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":54,"name":"Junos - default SLAX","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":29,"name":"Junos - default ZTP config","template_kind_id":10,"template_kind_name":"ZTP","inherited":false},{"id":55,"name":"Kickstart - default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":35,"name":"Kickstart - default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":44,"name":"Kickstart + default PXEGrub","template_kind_id":3,"template_kind_name":"PXEGrub","inherited":false},{"id":35,"name":"Junos + default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":56,"name":"Junos + default SLAX","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":30,"name":"Junos + default ZTP config","template_kind_id":10,"template_kind_name":"ZTP","inherited":false},{"id":57,"name":"Kickstart + default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":36,"name":"Kickstart + default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":45,"name":"Kickstart default iPXE","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":4,"name":"Kickstart default PXEGrub","template_kind_id":3,"template_kind_name":"PXEGrub","inherited":false},{"id":8,"name":"Kickstart - default PXEGrub2","template_kind_id":4,"template_kind_name":"PXEGrub2","inherited":false},{"id":16,"name":"Kickstart - default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":115,"name":"Kickstart - default user data","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":86,"name":"kickstart_ifcfg_bonded_interface","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":85,"name":"kickstart_ifcfg_bond_interface","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":88,"name":"kickstart_ifcfg_generic_interface","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":90,"name":"kickstart_ifcfg_get_identifier_names","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":91,"name":"kickstart_kernel_options","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":92,"name":"kickstart_networking_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":56,"name":"Kickstart - oVirt-RHVH","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":17,"name":"Kickstart - oVirt-RHVH PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":39,"name":"Linux + default PXEGrub2","template_kind_id":4,"template_kind_name":"PXEGrub2","inherited":false},{"id":17,"name":"Kickstart + default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":120,"name":"Kickstart + default user data","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":87,"name":"kickstart_ifcfg_bonded_interface","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":86,"name":"kickstart_ifcfg_bond_interface","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":88,"name":"kickstart_ifcfg_generic_interface","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":89,"name":"kickstart_ifcfg_get_identifier_names","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":90,"name":"kickstart_kernel_options","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":91,"name":"kickstart_networking_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":150,"name":"kickstart_network_interface","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":58,"name":"Kickstart + oVirt-RHVH","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":18,"name":"Kickstart + oVirt-RHVH PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":92,"name":"kickstart_rhsm","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":40,"name":"Linux host_init_config default","template_kind_id":1,"template_kind_name":"host_init_config","inherited":false},{"id":93,"name":"ntp","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":1,"name":"NX-OS - default POAP setup","template_kind_id":11,"template_kind_name":"POAP","inherited":false},{"id":94,"name":"pkg_manager","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":116,"name":"Preseed - Autoinstall cloud-init user data","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":57,"name":"Preseed - default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":36,"name":"Preseed - default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":45,"name":"Preseed - default iPXE","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":9,"name":"Preseed - default PXEGrub2","template_kind_id":4,"template_kind_name":"PXEGrub2","inherited":false},{"id":18,"name":"Preseed - default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":19,"name":"Preseed - default PXELinux Autoinstall","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":117,"name":"Preseed - default user data","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":95,"name":"preseed_kernel_options","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":97,"name":"preseed_netplan_generic_interface","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":98,"name":"preseed_netplan_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":99,"name":"preseed_networking_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":100,"name":"puppet.conf","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":102,"name":"puppetlabs_repo","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":101,"name":"puppet_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":103,"name":"pxegrub2_chainload","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":10,"name":"PXEGrub2 - default local boot","template_kind_id":4,"template_kind_name":"PXEGrub2","inherited":false},{"id":104,"name":"pxegrub2_discovery","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":11,"name":"PXEGrub2 + default POAP setup","template_kind_id":11,"template_kind_name":"POAP","inherited":false},{"id":94,"name":"pkg_manager","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":151,"name":"preseed_autoinstall_clevis_tang_wrapper","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":121,"name":"Preseed + Autoinstall cloud-init user data","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":59,"name":"Preseed + default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":37,"name":"Preseed + default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":46,"name":"Preseed + default iPXE","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":47,"name":"Preseed + default iPXE Autoinstall","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":9,"name":"Preseed + default PXEGrub2","template_kind_id":4,"template_kind_name":"PXEGrub2","inherited":false},{"id":10,"name":"Preseed + default PXEGrub2 Autoinstall","template_kind_id":4,"template_kind_name":"PXEGrub2","inherited":false},{"id":19,"name":"Preseed + default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":20,"name":"Preseed + default PXELinux Autoinstall","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":122,"name":"Preseed + default user data","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":95,"name":"preseed_kernel_options","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":96,"name":"preseed_kernel_options_autoinstall","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":97,"name":"preseed_netplan_generic_interface","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":98,"name":"preseed_netplan_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":99,"name":"preseed_networking_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":100,"name":"puppet.conf","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":102,"name":"puppetlabs_repo","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":101,"name":"puppet_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":103,"name":"pxegrub2_chainload","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":11,"name":"PXEGrub2 + default local boot","template_kind_id":4,"template_kind_name":"PXEGrub2","inherited":false},{"id":104,"name":"pxegrub2_discovery","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":12,"name":"PXEGrub2 global default","template_kind_id":4,"template_kind_name":"PXEGrub2","inherited":false},{"id":105,"name":"pxegrub2_mac","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":106,"name":"pxegrub_chainload","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":5,"name":"PXEGrub default local boot","template_kind_id":3,"template_kind_name":"PXEGrub","inherited":false},{"id":107,"name":"pxegrub_discovery","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":6,"name":"PXEGrub - global default","template_kind_id":3,"template_kind_name":"PXEGrub","inherited":false},{"id":20,"name":"PXELinux - chain iPXE","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":21,"name":"PXELinux - chain iPXE UNDI","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":108,"name":"pxelinux_chainload","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":22,"name":"PXELinux - default local boot","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":23,"name":"PXELinux - default memdisk","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":109,"name":"pxelinux_discovery","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":24,"name":"PXELinux - global default","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":87,"name":"rancheros_cloudconfig","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":58,"name":"RancherOS - provision","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":25,"name":"RancherOS - PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":89,"name":"redhat_register","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":62,"name":"remote_execution_pull_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":96,"name":"remote_execution_ssh_keys","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":66,"name":"saltstack_minion","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":110,"name":"saltstack_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":111,"name":"schedule_reboot","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":118,"name":"UserData - default","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":119,"name":"UserData - open-vm-tools","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":26,"name":"WAIK - default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":37,"name":"Windows - default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":46,"name":"Windows - default iPXE","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":59,"name":"Windows - default provision","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":27,"name":"Windows - default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":112,"name":"Windows - network","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":64,"name":"Windows - peSetup.cmd","template_kind_id":8,"template_kind_name":"script","inherited":false},{"id":60,"name":"XenServer - default answerfile","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":38,"name":"XenServer - default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":28,"name":"XenServer - default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":113,"name":"yum_proxy","template_kind_id":null,"template_kind_name":null,"inherited":false}],"domains":[],"realms":[],"hostgroups":[],"organizations":[{"id":3,"name":"Test + global default","template_kind_id":3,"template_kind_name":"PXEGrub","inherited":false},{"id":21,"name":"PXELinux + chain iPXE","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":22,"name":"PXELinux + chain iPXE UNDI","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":108,"name":"pxelinux_chainload","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":23,"name":"PXELinux + default local boot","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":24,"name":"PXELinux + default memdisk","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":109,"name":"pxelinux_discovery","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":25,"name":"PXELinux + global default","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":110,"name":"rancheros_cloudconfig","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":60,"name":"RancherOS + provision","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":26,"name":"RancherOS + PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":111,"name":"redhat_register","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":64,"name":"remote_execution_pull_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":112,"name":"remote_execution_ssh_keys","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":113,"name":"saltstack_minion","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":114,"name":"saltstack_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":115,"name":"schedule_reboot","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":116,"name":"subscription_manager_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":123,"name":"UserData + default","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":124,"name":"UserData + open-vm-tools","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":27,"name":"WAIK + default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":38,"name":"Windows + default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":48,"name":"Windows + default iPXE","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":49,"name":"Windows + default iPXE httpboot","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":61,"name":"Windows + default provision","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":28,"name":"Windows + default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":125,"name":"Windows + default user data","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":117,"name":"Windows + network","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":66,"name":"Windows + peSetup.cmd","template_kind_id":8,"template_kind_name":"script","inherited":false},{"id":62,"name":"XenServer + default answerfile","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":39,"name":"XenServer + default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":29,"name":"XenServer + default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":118,"name":"yum_proxy","template_kind_id":null,"template_kind_name":null,"inherited":false}],"domains":[],"realms":[],"hostgroups":[],"organizations":[{"id":6,"name":"Test Organization","title":"Test Organization","description":"A test organization"}],"hosts_count":0,"parameters":[{}],"deprecations":{"environments":"Environments got deprecated from this endpoint."}}' headers: @@ -524,6 +544,8 @@ interactions: - max-age=0, private, must-revalidate Connection: - Keep-Alive + Content-Length: + - '19270' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -537,13 +559,11 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.4.0 + - 3.11.0-develop Keep-Alive: - timeout=15, max=95 Strict-Transport-Security: - max-age=631139040; includeSubdomains - Transfer-Encoding: - - chunked X-Content-Type-Options: - nosniff X-Download-Options: diff --git a/tests/test_playbooks/fixtures/location-8.yml b/tests/test_playbooks/fixtures/location-8.yml index d9611b5f..2b012618 100644 --- a/tests/test_playbooks/fixtures/location-8.yml +++ b/tests/test_playbooks/fixtures/location-8.yml @@ -14,12 +14,14 @@ interactions: uri: https://foreman.example.org/api/status response: body: - string: '{"result":"ok","status":200,"version":"3.4.0","api_version":2}' + string: '{"result":"ok","status":200,"version":"3.11.0-develop","api_version":2}' headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive + Content-Length: + - '71' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -33,13 +35,11 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.4.0 + - 3.11.0-develop Keep-Alive: - timeout=15, max=100 Strict-Transport-Security: - max-age=631139040; includeSubdomains - Transfer-Encoding: - - chunked X-Content-Type-Options: - nosniff X-Download-Options: @@ -77,6 +77,8 @@ interactions: - max-age=0, private, must-revalidate Connection: - Keep-Alive + Content-Length: + - '195' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -90,13 +92,11 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.4.0 + - 3.11.0-develop Keep-Alive: - timeout=15, max=99 Strict-Transport-Security: - max-age=631139040; includeSubdomains - Transfer-Encoding: - - chunked X-Content-Type-Options: - nosniff X-Download-Options: @@ -127,14 +127,16 @@ interactions: body: string: "{\n \"total\": 4,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": 4294967296,\n \"search\": \"title=\\\"Test Location\\\"\",\n \"sort\": {\n - \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"ancestry\":null,\"parent_id\":null,\"parent_name\":null,\"created_at\":\"2022-11-08 - 09:29:05 UTC\",\"updated_at\":\"2022-11-08 09:29:05 UTC\",\"id\":4,\"name\":\"Test + \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"ancestry\":null,\"parent_id\":null,\"parent_name\":null,\"created_at\":\"2024-07-25 + 12:00:01 UTC\",\"updated_at\":\"2024-07-25 12:00:01 UTC\",\"id\":7,\"name\":\"Test Location\",\"title\":\"Test Location\",\"description\":null}]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive + Content-Length: + - '384' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -148,13 +150,11 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.4.0 + - 3.11.0-develop Keep-Alive: - timeout=15, max=98 Strict-Transport-Security: - max-age=631139040; includeSubdomains - Transfer-Encoding: - - chunked X-Content-Type-Options: - nosniff X-Download-Options: @@ -169,7 +169,7 @@ interactions: code: 200 message: OK - request: - body: '{"location": {"name": "Sub Location 2", "parent_id": 4}}' + body: '{"location": {"name": "Sub Location 2", "parent_id": 7}}' headers: Accept: - application/json;version=2 @@ -187,119 +187,131 @@ interactions: uri: https://foreman.example.org/api/locations response: body: - string: '{"select_all_types":[],"description":null,"created_at":"2022-11-08 - 09:29:12 UTC","updated_at":"2022-11-08 09:29:12 UTC","ancestry":"4","parent_id":4,"parent_name":"Test - Location","id":7,"name":"Sub Location 2","title":"Test Location/Sub Location - 2","users":[],"smart_proxies":[],"subnets":[],"compute_resources":[],"media":[],"ptables":[{"description":null,"os_family":"Suse","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"AutoYaST entire - SCSI disk","id":120,"inherited":false},{"description":null,"os_family":"Suse","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"AutoYaST entire - virtual disk","id":121,"inherited":false},{"description":null,"os_family":"Suse","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"AutoYaST LVM","id":122,"inherited":false},{"description":null,"os_family":"Coreos","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"CoreOS default - fake","id":123,"inherited":false},{"description":null,"os_family":"Rancheros","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Empty","id":124,"inherited":false},{"description":null,"os_family":"Freebsd","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"FreeBSD default - fake","id":125,"inherited":false},{"description":null,"os_family":"Solaris","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Jumpstart default","id":126,"inherited":false},{"description":null,"os_family":"Solaris","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Jumpstart mirrored","id":127,"inherited":false},{"description":null,"os_family":"Junos","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Junos default - fake","id":128,"inherited":false},{"description":null,"os_family":"Redhat","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Kickstart custom","id":129,"inherited":false},{"description":null,"os_family":"Redhat","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Kickstart default","id":130,"inherited":false},{"description":null,"os_family":"Redhat","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Kickstart default - thin","id":131,"inherited":false},{"description":null,"os_family":"Redhat","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Kickstart dynamic","id":132,"inherited":false},{"description":null,"os_family":"NXOS","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"NX-OS default - fake","id":133,"inherited":false},{"description":null,"os_family":"Debian","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Preseed default","id":134,"inherited":false},{"description":"Preseed + string: '{"select_all_types":[],"description":null,"created_at":"2024-07-25 + 12:00:12 UTC","updated_at":"2024-07-25 12:00:12 UTC","ancestry":"7","parent_id":7,"parent_name":"Test + Location","id":10,"name":"Sub Location 2","title":"Test Location/Sub Location + 2","users":[],"smart_proxies":[],"subnets":[],"compute_resources":[],"media":[],"ptables":[{"description":null,"os_family":"Suse","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"AutoYaST entire + virtual disk","id":127,"inherited":false},{"description":null,"os_family":"Solaris","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"Jumpstart default","id":132,"inherited":false},{"description":null,"os_family":"Solaris","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"Jumpstart mirrored","id":133,"inherited":false},{"description":null,"os_family":"Junos","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"Junos default + fake","id":134,"inherited":false},{"description":null,"os_family":"Suse","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"AutoYaST LVM","id":128,"inherited":false},{"description":null,"os_family":"Coreos","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"CoreOS default + fake","id":129,"inherited":false},{"description":null,"os_family":"Rancheros","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"Empty","id":130,"inherited":false},{"description":null,"os_family":"Suse","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"AutoYaST entire + SCSI disk","id":126,"inherited":false},{"description":null,"os_family":"Freebsd","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"FreeBSD default + fake","id":131,"inherited":false},{"description":null,"os_family":"Redhat","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"Kickstart custom","id":135,"inherited":false},{"description":null,"os_family":"Redhat","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"Kickstart default","id":136,"inherited":false},{"description":null,"os_family":"Redhat","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"Kickstart default + thin","id":137,"inherited":false},{"description":null,"os_family":"Redhat","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"Kickstart dynamic","id":138,"inherited":false},{"description":null,"os_family":"NXOS","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"NX-OS default + fake","id":139,"inherited":false},{"description":null,"os_family":"Debian","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"Preseed default","id":140,"inherited":false},{"description":"Preseed Autoinstall default storage snippet configures drives automatically\nwith - LVM. The snippet is automatically indented by 2 spaces. For reference:\nhttps://ubuntu.com/server/docs/install/autoinstall-reference","os_family":"Debian","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Preseed default - autoinstall","id":135,"inherited":false},{"description":null,"os_family":"Debian","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Preseed default - LVM","id":136,"inherited":false},{"description":null,"os_family":"Windows","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Windows default - partition table","id":137,"inherited":false},{"description":null,"os_family":"Windows","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"Windows default - GPT EFI partition table","id":138,"inherited":false},{"description":null,"os_family":"Xenserver","created_at":"2022-11-08 - 09:24:16 UTC","updated_at":"2022-11-08 09:24:16 UTC","name":"XenServer default","id":139,"inherited":false}],"provisioning_templates":[{"id":1,"name":"NX-OS + LVM. The snippet is automatically indented by 2 spaces. For reference:\nhttps://ubuntu.com/server/docs/install/autoinstall-reference","os_family":"Debian","created_at":"2024-04-15 + 09:11:37 UTC","updated_at":"2024-04-15 09:11:37 UTC","name":"Preseed default + autoinstall","id":141,"inherited":false},{"description":null,"os_family":"Debian","created_at":"2024-04-15 + 09:11:37 UTC","updated_at":"2024-04-15 09:11:37 UTC","name":"Preseed default + LVM","id":142,"inherited":false},{"description":null,"os_family":"Windows","created_at":"2024-04-15 + 09:11:37 UTC","updated_at":"2024-04-15 09:11:37 UTC","name":"Windows default + partition table","id":143,"inherited":false},{"description":null,"os_family":"Windows","created_at":"2024-04-15 + 09:11:37 UTC","updated_at":"2024-04-15 09:11:37 UTC","name":"Windows default + GPT EFI partition table","id":144,"inherited":false},{"description":null,"os_family":"Xenserver","created_at":"2024-04-15 + 09:11:37 UTC","updated_at":"2024-04-15 09:11:37 UTC","name":"XenServer default","id":145,"inherited":false},{"description":null,"os_family":"Redhat","created_at":"2024-04-22 + 11:15:26 UTC","updated_at":"2024-04-22 11:15:26 UTC","name":"Kickstart default + encrypted","id":152,"inherited":false},{"description":"Preseed Autoinstall + default storage snippet configures drives automatically\nwith LVM and disk + encryption.\nRequires Ubuntu >= 22.04.3.\nThe snippet is automatically indented + by 2 spaces. For reference:\nhttps://ubuntu.com/server/docs/install/autoinstall-reference","os_family":"Debian","created_at":"2024-04-22 + 11:15:26 UTC","updated_at":"2024-04-22 11:15:26 UTC","name":"Preseed default + autoinstall encrypted","id":153,"inherited":false}],"provisioning_templates":[{"id":1,"name":"NX-OS default POAP setup","template_kind_id":11,"template_kind_name":"POAP","inherited":false},{"id":2,"name":"AutoYaST default PXEGrub","template_kind_id":3,"template_kind_name":"PXEGrub","inherited":false},{"id":3,"name":"Jumpstart default PXEGrub","template_kind_id":3,"template_kind_name":"PXEGrub","inherited":false},{"id":4,"name":"Kickstart default PXEGrub","template_kind_id":3,"template_kind_name":"PXEGrub","inherited":false},{"id":5,"name":"PXEGrub default local boot","template_kind_id":3,"template_kind_name":"PXEGrub","inherited":false},{"id":6,"name":"PXEGrub - global default","template_kind_id":3,"template_kind_name":"PXEGrub","inherited":false},{"id":49,"name":"AutoYaST - default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":7,"name":"AutoYaST + global default","template_kind_id":3,"template_kind_name":"PXEGrub","inherited":false},{"id":7,"name":"AutoYaST default PXEGrub2","template_kind_id":4,"template_kind_name":"PXEGrub2","inherited":false},{"id":8,"name":"Kickstart default PXEGrub2","template_kind_id":4,"template_kind_name":"PXEGrub2","inherited":false},{"id":9,"name":"Preseed - default PXEGrub2","template_kind_id":4,"template_kind_name":"PXEGrub2","inherited":false},{"id":10,"name":"PXEGrub2 - default local boot","template_kind_id":4,"template_kind_name":"PXEGrub2","inherited":false},{"id":11,"name":"PXEGrub2 - global default","template_kind_id":4,"template_kind_name":"PXEGrub2","inherited":false},{"id":12,"name":"Alterator - default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":50,"name":"AutoYaST - SLES default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":13,"name":"AutoYaST - default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":14,"name":"CoreOS - PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":15,"name":"FreeBSD - (mfsBSD) PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":16,"name":"Kickstart - default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":17,"name":"Kickstart - oVirt-RHVH PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":18,"name":"Preseed - default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":19,"name":"Preseed - default PXELinux Autoinstall","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":20,"name":"PXELinux - chain iPXE","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":21,"name":"PXELinux - chain iPXE UNDI","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":22,"name":"PXELinux - default local boot","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":23,"name":"PXELinux - default memdisk","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":24,"name":"PXELinux - global default","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":25,"name":"RancherOS - PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":26,"name":"WAIK - default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":27,"name":"Windows - default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":28,"name":"XenServer - default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":29,"name":"Junos - default ZTP config","template_kind_id":10,"template_kind_name":"ZTP","inherited":false},{"id":30,"name":"CloudInit - default","template_kind_id":12,"template_kind_name":"cloud-init","inherited":false},{"id":31,"name":"Alterator - default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":73,"name":"chef_client","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":32,"name":"FreeBSD - (mfsBSD) finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":33,"name":"Jumpstart - default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":34,"name":"Junos - default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":35,"name":"Kickstart - default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":36,"name":"Preseed - default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":37,"name":"Windows - default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":38,"name":"XenServer - default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":39,"name":"Linux - host_init_config default","template_kind_id":1,"template_kind_name":"host_init_config","inherited":false},{"id":40,"name":"AutoYaST - default iPXE","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":41,"name":"iPXE - default local boot","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":42,"name":"iPXE - global default","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":51,"name":"CoreOS - provision","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":43,"name":"iPXE - intermediate script","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":44,"name":"Kickstart - default iPXE","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":45,"name":"Preseed - default iPXE","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":46,"name":"Windows - default iPXE","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":47,"name":"Alterator - default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":48,"name":"Atomic - Kickstart default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":52,"name":"FreeBSD - (mfsBSD) provision","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":53,"name":"Jumpstart - default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":54,"name":"Junos - default SLAX","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":55,"name":"Kickstart - default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":56,"name":"Kickstart - oVirt-RHVH","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":57,"name":"Preseed - default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":58,"name":"RancherOS - provision","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":59,"name":"Windows - default provision","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":60,"name":"XenServer - default answerfile","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":61,"name":"Global - Registration","template_kind_id":13,"template_kind_name":"registration","inherited":false},{"id":62,"name":"remote_execution_pull_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":63,"name":"Grubby - default","template_kind_id":8,"template_kind_name":"script","inherited":false},{"id":64,"name":"Windows - peSetup.cmd","template_kind_id":8,"template_kind_name":"script","inherited":false},{"id":65,"name":"alterator_pkglist","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":66,"name":"saltstack_minion","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":67,"name":"ansible_provisioning_callback","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":68,"name":"ansible_tower_callback_script","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":69,"name":"ansible_tower_callback_service","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":70,"name":"blacklist_kernel_modules","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":71,"name":"bmc_nic_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":72,"name":"built","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":74,"name":"coreos_cloudconfig","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":75,"name":"create_users","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":76,"name":"csr_attributes.yaml","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":77,"name":"efibootmgr_netboot","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":78,"name":"eject_cdrom","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":79,"name":"epel","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":80,"name":"fips_packages","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":81,"name":"fix_hosts","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":82,"name":"freeipa_register","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":83,"name":"http_proxy","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":84,"name":"insights","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":85,"name":"kickstart_ifcfg_bond_interface","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":86,"name":"kickstart_ifcfg_bonded_interface","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":87,"name":"rancheros_cloudconfig","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":111,"name":"schedule_reboot","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":88,"name":"kickstart_ifcfg_generic_interface","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":89,"name":"redhat_register","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":90,"name":"kickstart_ifcfg_get_identifier_names","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":91,"name":"kickstart_kernel_options","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":92,"name":"kickstart_networking_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":93,"name":"ntp","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":94,"name":"pkg_manager","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":95,"name":"preseed_kernel_options","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":96,"name":"remote_execution_ssh_keys","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":97,"name":"preseed_netplan_generic_interface","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":98,"name":"preseed_netplan_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":99,"name":"preseed_networking_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":100,"name":"puppet.conf","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":101,"name":"puppet_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":102,"name":"puppetlabs_repo","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":103,"name":"pxegrub2_chainload","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":104,"name":"pxegrub2_discovery","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":105,"name":"pxegrub2_mac","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":106,"name":"pxegrub_chainload","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":107,"name":"pxegrub_discovery","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":108,"name":"pxelinux_chainload","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":109,"name":"pxelinux_discovery","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":110,"name":"saltstack_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":112,"name":"Windows - network","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":113,"name":"yum_proxy","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":114,"name":"AutoYaST - default user data","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":115,"name":"Kickstart - default user data","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":116,"name":"Preseed - Autoinstall cloud-init user data","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":117,"name":"Preseed - default user data","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":118,"name":"UserData - default","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":119,"name":"UserData - open-vm-tools","template_kind_id":9,"template_kind_name":"user_data","inherited":false}],"domains":[],"realms":[],"hostgroups":[],"organizations":[],"hosts_count":0,"parameters":[{}],"deprecations":{"environments":"Environments + default PXEGrub2","template_kind_id":4,"template_kind_name":"PXEGrub2","inherited":false},{"id":10,"name":"Preseed + default PXEGrub2 Autoinstall","template_kind_id":4,"template_kind_name":"PXEGrub2","inherited":false},{"id":11,"name":"PXEGrub2 + default local boot","template_kind_id":4,"template_kind_name":"PXEGrub2","inherited":false},{"id":12,"name":"PXEGrub2 + global default","template_kind_id":4,"template_kind_name":"PXEGrub2","inherited":false},{"id":13,"name":"Alterator + default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":14,"name":"AutoYaST + default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":15,"name":"CoreOS + PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":16,"name":"FreeBSD + (mfsBSD) PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":17,"name":"Kickstart + default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":18,"name":"Kickstart + oVirt-RHVH PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":19,"name":"Preseed + default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":20,"name":"Preseed + default PXELinux Autoinstall","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":79,"name":"eject_cdrom","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":21,"name":"PXELinux + chain iPXE","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":22,"name":"PXELinux + chain iPXE UNDI","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":23,"name":"PXELinux + default local boot","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":24,"name":"PXELinux + default memdisk","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":25,"name":"PXELinux + global default","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":26,"name":"RancherOS + PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":27,"name":"WAIK + default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":28,"name":"Windows + default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":29,"name":"XenServer + default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":30,"name":"Junos + default ZTP config","template_kind_id":10,"template_kind_name":"ZTP","inherited":false},{"id":32,"name":"Alterator + default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":80,"name":"epel","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":33,"name":"FreeBSD + (mfsBSD) finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":34,"name":"Jumpstart + default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":35,"name":"Junos + default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":37,"name":"Preseed + default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":38,"name":"Windows + default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":39,"name":"XenServer + default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":40,"name":"Linux + host_init_config default","template_kind_id":1,"template_kind_name":"host_init_config","inherited":false},{"id":41,"name":"AutoYaST + default iPXE","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":42,"name":"iPXE + default local boot","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":43,"name":"iPXE + global default","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":72,"name":"bmc_nic_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":44,"name":"iPXE + intermediate script","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":45,"name":"Kickstart + default iPXE","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":46,"name":"Preseed + default iPXE","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":47,"name":"Preseed + default iPXE Autoinstall","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":48,"name":"Windows + default iPXE","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":49,"name":"Windows + default iPXE httpboot","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":81,"name":"fips_packages","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":50,"name":"Alterator + default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":51,"name":"AutoYaST + default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":52,"name":"AutoYaST + SLES default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":53,"name":"CoreOS + provision","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":54,"name":"FreeBSD + (mfsBSD) provision","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":55,"name":"Jumpstart + default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":56,"name":"Junos + default SLAX","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":70,"name":"ansible_tower_callback_service","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":59,"name":"Preseed + default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":60,"name":"RancherOS + provision","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":61,"name":"Windows + default provision","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":62,"name":"XenServer + default answerfile","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":63,"name":"Global + Registration","template_kind_id":13,"template_kind_name":"registration","inherited":false},{"id":64,"name":"remote_execution_pull_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":65,"name":"Grubby + default","template_kind_id":8,"template_kind_name":"script","inherited":false},{"id":66,"name":"Windows + peSetup.cmd","template_kind_id":8,"template_kind_name":"script","inherited":false},{"id":67,"name":"alterator_pkglist","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":68,"name":"ansible_provisioning_callback","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":69,"name":"ansible_tower_callback_script","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":71,"name":"blacklist_kernel_modules","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":73,"name":"built","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":74,"name":"chef_client","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":75,"name":"coreos_cloudconfig","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":76,"name":"create_users","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":77,"name":"csr_attributes.yaml","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":78,"name":"efibootmgr_netboot","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":82,"name":"fix_hosts","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":83,"name":"freeipa_register","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":84,"name":"http_proxy","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":85,"name":"insights","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":86,"name":"kickstart_ifcfg_bond_interface","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":87,"name":"kickstart_ifcfg_bonded_interface","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":88,"name":"kickstart_ifcfg_generic_interface","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":89,"name":"kickstart_ifcfg_get_identifier_names","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":91,"name":"kickstart_networking_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":92,"name":"kickstart_rhsm","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":93,"name":"ntp","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":95,"name":"preseed_kernel_options","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":96,"name":"preseed_kernel_options_autoinstall","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":97,"name":"preseed_netplan_generic_interface","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":98,"name":"preseed_netplan_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":99,"name":"preseed_networking_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":106,"name":"pxegrub_chainload","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":100,"name":"puppet.conf","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":101,"name":"puppet_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":102,"name":"puppetlabs_repo","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":103,"name":"pxegrub2_chainload","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":104,"name":"pxegrub2_discovery","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":105,"name":"pxegrub2_mac","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":123,"name":"UserData + default","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":107,"name":"pxegrub_discovery","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":108,"name":"pxelinux_chainload","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":109,"name":"pxelinux_discovery","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":110,"name":"rancheros_cloudconfig","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":124,"name":"UserData + open-vm-tools","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":125,"name":"Windows + default user data","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":112,"name":"remote_execution_ssh_keys","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":113,"name":"saltstack_minion","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":114,"name":"saltstack_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":115,"name":"schedule_reboot","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":117,"name":"Windows + network","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":118,"name":"yum_proxy","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":119,"name":"AutoYaST + default user data","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":120,"name":"Kickstart + default user data","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":122,"name":"Preseed + default user data","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":90,"name":"kickstart_kernel_options","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":31,"name":"CloudInit + default","template_kind_id":12,"template_kind_name":"cloud-init","inherited":false},{"id":36,"name":"Kickstart + default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":57,"name":"Kickstart + default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":58,"name":"Kickstart + oVirt-RHVH","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":149,"name":"disk_enc_clevis_tang","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":150,"name":"kickstart_network_interface","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":94,"name":"pkg_manager","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":151,"name":"preseed_autoinstall_clevis_tang_wrapper","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":111,"name":"redhat_register","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":116,"name":"subscription_manager_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":121,"name":"Preseed + Autoinstall cloud-init user data","template_kind_id":9,"template_kind_name":"user_data","inherited":false}],"domains":[],"realms":[],"hostgroups":[],"organizations":[],"hosts_count":0,"parameters":[{}],"deprecations":{"environments":"Environments got deprecated from this endpoint."}}' headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive + Content-Length: + - '19140' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -313,13 +325,11 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.4.0 + - 3.11.0-develop Keep-Alive: - timeout=15, max=97 Strict-Transport-Security: - max-age=631139040; includeSubdomains - Transfer-Encoding: - - chunked X-Content-Type-Options: - nosniff X-Download-Options: diff --git a/tests/test_playbooks/fixtures/location-9.yml b/tests/test_playbooks/fixtures/location-9.yml index 938d1eb4..7d6b35d8 100644 --- a/tests/test_playbooks/fixtures/location-9.yml +++ b/tests/test_playbooks/fixtures/location-9.yml @@ -14,12 +14,14 @@ interactions: uri: https://foreman.example.org/api/status response: body: - string: '{"result":"ok","status":200,"version":"3.4.0","api_version":2}' + string: '{"result":"ok","status":200,"version":"3.11.0-develop","api_version":2}' headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive + Content-Length: + - '71' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -33,13 +35,11 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.4.0 + - 3.11.0-develop Keep-Alive: - timeout=15, max=100 Strict-Transport-Security: - max-age=631139040; includeSubdomains - Transfer-Encoding: - - chunked X-Content-Type-Options: - nosniff X-Download-Options: @@ -70,14 +70,16 @@ interactions: body: string: "{\n \"total\": 5,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": 4294967296,\n \"search\": \"title=\\\"Test Location\\\"\",\n \"sort\": {\n - \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"ancestry\":null,\"parent_id\":null,\"parent_name\":null,\"created_at\":\"2022-11-08 - 09:29:05 UTC\",\"updated_at\":\"2022-11-08 09:29:05 UTC\",\"id\":4,\"name\":\"Test + \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"ancestry\":null,\"parent_id\":null,\"parent_name\":null,\"created_at\":\"2024-07-25 + 12:00:01 UTC\",\"updated_at\":\"2024-07-25 12:00:01 UTC\",\"id\":7,\"name\":\"Test Location\",\"title\":\"Test Location\",\"description\":null}]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive + Content-Length: + - '384' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -91,13 +93,11 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.4.0 + - 3.11.0-develop Keep-Alive: - timeout=15, max=99 Strict-Transport-Security: - max-age=631139040; includeSubdomains - Transfer-Encoding: - - chunked X-Content-Type-Options: - nosniff X-Download-Options: @@ -125,7 +125,7 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: DELETE - uri: https://foreman.example.org/api/locations/4 + uri: https://foreman.example.org/api/locations/7 response: body: string: '{"error":{"message":"Cannot delete Test Location because it has nested @@ -135,6 +135,8 @@ interactions: - max-age=0, private, must-revalidate Connection: - Keep-Alive + Content-Length: + - '83' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -148,13 +150,11 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.4.0 + - 3.11.0-develop Keep-Alive: - timeout=15, max=98 Strict-Transport-Security: - max-age=631139040; includeSubdomains - Transfer-Encoding: - - chunked X-Content-Type-Options: - nosniff X-Download-Options: diff --git a/tests/test_playbooks/fixtures/locations_role-0.yml b/tests/test_playbooks/fixtures/locations_role-0.yml index b855fde8..23861074 100644 --- a/tests/test_playbooks/fixtures/locations_role-0.yml +++ b/tests/test_playbooks/fixtures/locations_role-0.yml @@ -14,14 +14,14 @@ interactions: uri: https://foreman.example.org/api/status response: body: - string: '{"result":"ok","status":200,"version":"3.7.0","api_version":2}' + string: '{"result":"ok","status":200,"version":"3.11.0-develop","api_version":2}' headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive Content-Length: - - '62' + - '71' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -35,7 +35,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0 + - 3.11.0-develop Keep-Alive: - timeout=15, max=100 Strict-Transport-Security: @@ -91,7 +91,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0 + - 3.11.0-develop Keep-Alive: - timeout=15, max=99 Strict-Transport-Security: @@ -128,42 +128,49 @@ interactions: uri: https://foreman.example.org/api/locations response: body: - string: '{"select_all_types":["ProvisioningTemplate","Hostgroup"],"description":null,"created_at":"2023-06-26 - 09:25:00 UTC","updated_at":"2023-06-26 09:25:00 UTC","ancestry":null,"parent_id":null,"parent_name":null,"id":4,"name":"Test - Location 1","title":"Test Location 1","users":[],"smart_proxies":[],"subnets":[],"compute_resources":[],"media":[],"ptables":[{"description":null,"os_family":"Suse","created_at":"2023-06-23 - 10:34:42 UTC","updated_at":"2023-06-23 10:34:42 UTC","name":"AutoYaST entire - SCSI disk","id":125,"inherited":false},{"description":null,"os_family":"Suse","created_at":"2023-06-23 - 10:34:43 UTC","updated_at":"2023-06-23 10:34:43 UTC","name":"AutoYaST entire - virtual disk","id":126,"inherited":false},{"description":null,"os_family":"Suse","created_at":"2023-06-23 - 10:34:43 UTC","updated_at":"2023-06-23 10:34:43 UTC","name":"AutoYaST LVM","id":127,"inherited":false},{"description":null,"os_family":"Coreos","created_at":"2023-06-23 - 10:34:43 UTC","updated_at":"2023-06-23 10:34:43 UTC","name":"CoreOS default - fake","id":128,"inherited":false},{"description":null,"os_family":"Rancheros","created_at":"2023-06-23 - 10:34:43 UTC","updated_at":"2023-06-23 10:34:43 UTC","name":"Empty","id":129,"inherited":false},{"description":null,"os_family":"Freebsd","created_at":"2023-06-23 - 10:34:43 UTC","updated_at":"2023-06-23 10:34:43 UTC","name":"FreeBSD default - fake","id":130,"inherited":false},{"description":null,"os_family":"Solaris","created_at":"2023-06-23 - 10:34:43 UTC","updated_at":"2023-06-23 10:34:43 UTC","name":"Jumpstart default","id":131,"inherited":false},{"description":null,"os_family":"Solaris","created_at":"2023-06-23 - 10:34:43 UTC","updated_at":"2023-06-23 10:34:43 UTC","name":"Jumpstart mirrored","id":132,"inherited":false},{"description":null,"os_family":"Junos","created_at":"2023-06-23 - 10:34:43 UTC","updated_at":"2023-06-23 10:34:43 UTC","name":"Junos default - fake","id":133,"inherited":false},{"description":null,"os_family":"Redhat","created_at":"2023-06-23 - 10:34:43 UTC","updated_at":"2023-06-23 10:34:43 UTC","name":"Kickstart custom","id":134,"inherited":false},{"description":null,"os_family":"Redhat","created_at":"2023-06-23 - 10:34:43 UTC","updated_at":"2023-06-23 10:34:43 UTC","name":"Kickstart default","id":135,"inherited":false},{"description":null,"os_family":"Redhat","created_at":"2023-06-23 - 10:34:43 UTC","updated_at":"2023-06-23 10:34:43 UTC","name":"Kickstart default - thin","id":136,"inherited":false},{"description":null,"os_family":"Redhat","created_at":"2023-06-23 - 10:34:43 UTC","updated_at":"2023-06-23 10:34:43 UTC","name":"Kickstart dynamic","id":137,"inherited":false},{"description":null,"os_family":"NXOS","created_at":"2023-06-23 - 10:34:43 UTC","updated_at":"2023-06-23 10:34:43 UTC","name":"NX-OS default - fake","id":138,"inherited":false},{"description":null,"os_family":"Debian","created_at":"2023-06-23 - 10:34:43 UTC","updated_at":"2023-06-23 10:34:43 UTC","name":"Preseed default","id":139,"inherited":false},{"description":"Preseed + string: '{"select_all_types":[],"description":null,"created_at":"2024-07-25 + 12:15:08 UTC","updated_at":"2024-07-25 12:15:08 UTC","ancestry":null,"parent_id":null,"parent_name":null,"id":13,"name":"Test + Location 1","title":"Test Location 1","users":[],"smart_proxies":[],"subnets":[],"compute_resources":[],"media":[],"ptables":[{"description":null,"os_family":"Suse","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"AutoYaST entire + virtual disk","id":127,"inherited":false},{"description":null,"os_family":"Solaris","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"Jumpstart default","id":132,"inherited":false},{"description":null,"os_family":"Solaris","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"Jumpstart mirrored","id":133,"inherited":false},{"description":null,"os_family":"Junos","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"Junos default + fake","id":134,"inherited":false},{"description":null,"os_family":"Suse","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"AutoYaST LVM","id":128,"inherited":false},{"description":null,"os_family":"Coreos","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"CoreOS default + fake","id":129,"inherited":false},{"description":null,"os_family":"Rancheros","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"Empty","id":130,"inherited":false},{"description":null,"os_family":"Suse","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"AutoYaST entire + SCSI disk","id":126,"inherited":false},{"description":null,"os_family":"Freebsd","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"FreeBSD default + fake","id":131,"inherited":false},{"description":null,"os_family":"Redhat","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"Kickstart custom","id":135,"inherited":false},{"description":null,"os_family":"Redhat","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"Kickstart default","id":136,"inherited":false},{"description":null,"os_family":"Redhat","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"Kickstart default + thin","id":137,"inherited":false},{"description":null,"os_family":"Redhat","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"Kickstart dynamic","id":138,"inherited":false},{"description":null,"os_family":"NXOS","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"NX-OS default + fake","id":139,"inherited":false},{"description":null,"os_family":"Debian","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"Preseed default","id":140,"inherited":false},{"description":"Preseed Autoinstall default storage snippet configures drives automatically\nwith - LVM. The snippet is automatically indented by 2 spaces. For reference:\nhttps://ubuntu.com/server/docs/install/autoinstall-reference","os_family":"Debian","created_at":"2023-06-23 - 10:34:43 UTC","updated_at":"2023-06-23 10:34:43 UTC","name":"Preseed default - autoinstall","id":140,"inherited":false},{"description":null,"os_family":"Debian","created_at":"2023-06-23 - 10:34:43 UTC","updated_at":"2023-06-23 10:34:43 UTC","name":"Preseed default - LVM","id":141,"inherited":false},{"description":null,"os_family":"Windows","created_at":"2023-06-23 - 10:34:43 UTC","updated_at":"2023-06-23 10:34:43 UTC","name":"Windows default - partition table","id":142,"inherited":false},{"description":null,"os_family":"Windows","created_at":"2023-06-23 - 10:34:43 UTC","updated_at":"2023-06-23 10:34:43 UTC","name":"Windows default - GPT EFI partition table","id":143,"inherited":false},{"description":null,"os_family":"Xenserver","created_at":"2023-06-23 - 10:34:43 UTC","updated_at":"2023-06-23 10:34:43 UTC","name":"XenServer default","id":144,"inherited":false}],"provisioning_templates":[{"id":1,"name":"NX-OS + LVM. The snippet is automatically indented by 2 spaces. For reference:\nhttps://ubuntu.com/server/docs/install/autoinstall-reference","os_family":"Debian","created_at":"2024-04-15 + 09:11:37 UTC","updated_at":"2024-04-15 09:11:37 UTC","name":"Preseed default + autoinstall","id":141,"inherited":false},{"description":null,"os_family":"Debian","created_at":"2024-04-15 + 09:11:37 UTC","updated_at":"2024-04-15 09:11:37 UTC","name":"Preseed default + LVM","id":142,"inherited":false},{"description":null,"os_family":"Windows","created_at":"2024-04-15 + 09:11:37 UTC","updated_at":"2024-04-15 09:11:37 UTC","name":"Windows default + partition table","id":143,"inherited":false},{"description":null,"os_family":"Windows","created_at":"2024-04-15 + 09:11:37 UTC","updated_at":"2024-04-15 09:11:37 UTC","name":"Windows default + GPT EFI partition table","id":144,"inherited":false},{"description":null,"os_family":"Xenserver","created_at":"2024-04-15 + 09:11:37 UTC","updated_at":"2024-04-15 09:11:37 UTC","name":"XenServer default","id":145,"inherited":false},{"description":null,"os_family":"Redhat","created_at":"2024-04-22 + 11:15:26 UTC","updated_at":"2024-04-22 11:15:26 UTC","name":"Kickstart default + encrypted","id":152,"inherited":false},{"description":"Preseed Autoinstall + default storage snippet configures drives automatically\nwith LVM and disk + encryption.\nRequires Ubuntu >= 22.04.3.\nThe snippet is automatically indented + by 2 spaces. For reference:\nhttps://ubuntu.com/server/docs/install/autoinstall-reference","os_family":"Debian","created_at":"2024-04-22 + 11:15:26 UTC","updated_at":"2024-04-22 11:15:26 UTC","name":"Preseed default + autoinstall encrypted","id":153,"inherited":false}],"provisioning_templates":[{"id":1,"name":"NX-OS default POAP setup","template_kind_id":11,"template_kind_name":"POAP","inherited":false},{"id":2,"name":"AutoYaST default PXEGrub","template_kind_id":3,"template_kind_name":"PXEGrub","inherited":false},{"id":3,"name":"Jumpstart default PXEGrub","template_kind_id":3,"template_kind_name":"PXEGrub","inherited":false},{"id":4,"name":"Kickstart @@ -182,9 +189,8 @@ interactions: (mfsBSD) PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":17,"name":"Kickstart default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":18,"name":"Kickstart oVirt-RHVH PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":19,"name":"Preseed - default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":57,"name":"Junos - default SLAX","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":20,"name":"Preseed - default PXELinux Autoinstall","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":21,"name":"PXELinux + default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":20,"name":"Preseed + default PXELinux Autoinstall","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":79,"name":"eject_cdrom","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":21,"name":"PXELinux chain iPXE","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":22,"name":"PXELinux chain iPXE UNDI","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":23,"name":"PXELinux default local boot","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":24,"name":"PXELinux @@ -194,12 +200,10 @@ interactions: default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":28,"name":"Windows default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":29,"name":"XenServer default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":30,"name":"Junos - default ZTP config","template_kind_id":10,"template_kind_name":"ZTP","inherited":false},{"id":31,"name":"CloudInit - default","template_kind_id":12,"template_kind_name":"cloud-init","inherited":false},{"id":32,"name":"Alterator - default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":33,"name":"FreeBSD + default ZTP config","template_kind_id":10,"template_kind_name":"ZTP","inherited":false},{"id":32,"name":"Alterator + default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":80,"name":"epel","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":33,"name":"FreeBSD (mfsBSD) finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":34,"name":"Jumpstart default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":35,"name":"Junos - default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":36,"name":"Kickstart default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":37,"name":"Preseed default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":38,"name":"Windows default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":39,"name":"XenServer @@ -207,36 +211,40 @@ interactions: host_init_config default","template_kind_id":1,"template_kind_name":"host_init_config","inherited":false},{"id":41,"name":"AutoYaST default iPXE","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":42,"name":"iPXE default local boot","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":43,"name":"iPXE - global default","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":44,"name":"iPXE + global default","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":72,"name":"bmc_nic_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":44,"name":"iPXE intermediate script","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":45,"name":"Kickstart default iPXE","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":46,"name":"Preseed default iPXE","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":47,"name":"Preseed - default iPXE Autoinstall","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":104,"name":"pkg_manager","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":48,"name":"Windows + default iPXE Autoinstall","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":48,"name":"Windows default iPXE","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":49,"name":"Windows - default iPXE httpboot","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":50,"name":"Alterator - default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":51,"name":"Atomic - Kickstart default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":52,"name":"AutoYaST - default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":53,"name":"AutoYaST - SLES default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":54,"name":"CoreOS - provision","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":55,"name":"FreeBSD - (mfsBSD) provision","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":56,"name":"Jumpstart - default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":58,"name":"Kickstart - default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":59,"name":"Kickstart - oVirt-RHVH","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":60,"name":"Preseed - default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":61,"name":"RancherOS - provision","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":62,"name":"Windows - default provision","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":63,"name":"XenServer - default answerfile","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":64,"name":"Global - Registration","template_kind_id":13,"template_kind_name":"registration","inherited":false},{"id":65,"name":"remote_execution_pull_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":66,"name":"Grubby - default","template_kind_id":8,"template_kind_name":"script","inherited":false},{"id":67,"name":"Windows - peSetup.cmd","template_kind_id":8,"template_kind_name":"script","inherited":false},{"id":68,"name":"alterator_pkglist","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":69,"name":"remote_execution_ssh_keys","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":70,"name":"ansible_provisioning_callback","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":71,"name":"saltstack_minion","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":72,"name":"ansible_tower_callback_script","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":73,"name":"schedule_reboot","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":74,"name":"ansible_tower_callback_service","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":75,"name":"saltstack_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":76,"name":"blacklist_kernel_modules","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":77,"name":"bmc_nic_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":78,"name":"built","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":79,"name":"chef_client","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":80,"name":"coreos_cloudconfig","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":81,"name":"create_users","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":82,"name":"csr_attributes.yaml","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":83,"name":"efibootmgr_netboot","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":84,"name":"eject_cdrom","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":85,"name":"epel","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":86,"name":"fips_packages","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":87,"name":"fix_hosts","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":88,"name":"freeipa_register","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":89,"name":"http_proxy","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":90,"name":"insights","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":91,"name":"Windows - network","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":92,"name":"kickstart_ifcfg_bond_interface","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":93,"name":"pxegrub_discovery","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":94,"name":"kickstart_ifcfg_bonded_interface","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":95,"name":"pxelinux_chainload","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":96,"name":"kickstart_ifcfg_generic_interface","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":103,"name":"ntp","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":97,"name":"pxelinux_discovery","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":98,"name":"kickstart_ifcfg_get_identifier_names","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":99,"name":"yum_proxy","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":100,"name":"kickstart_kernel_options","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":101,"name":"kickstart_networking_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":102,"name":"kickstart_rhsm","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":105,"name":"preseed_kernel_options","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":106,"name":"rancheros_cloudconfig","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":107,"name":"preseed_kernel_options_autoinstall","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":108,"name":"redhat_register","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":109,"name":"preseed_netplan_generic_interface","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":110,"name":"preseed_netplan_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":111,"name":"preseed_networking_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":112,"name":"puppet.conf","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":113,"name":"puppet_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":114,"name":"puppetlabs_repo","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":115,"name":"pxegrub2_chainload","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":116,"name":"pxegrub2_discovery","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":117,"name":"pxegrub2_mac","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":118,"name":"pxegrub_chainload","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":119,"name":"AutoYaST + default iPXE httpboot","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":81,"name":"fips_packages","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":50,"name":"Alterator + default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":51,"name":"AutoYaST + default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":52,"name":"AutoYaST + SLES default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":53,"name":"CoreOS + provision","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":54,"name":"FreeBSD + (mfsBSD) provision","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":55,"name":"Jumpstart + default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":56,"name":"Junos + default SLAX","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":70,"name":"ansible_tower_callback_service","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":59,"name":"Preseed + default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":60,"name":"RancherOS + provision","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":61,"name":"Windows + default provision","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":62,"name":"XenServer + default answerfile","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":63,"name":"Global + Registration","template_kind_id":13,"template_kind_name":"registration","inherited":false},{"id":64,"name":"remote_execution_pull_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":65,"name":"Grubby + default","template_kind_id":8,"template_kind_name":"script","inherited":false},{"id":66,"name":"Windows + peSetup.cmd","template_kind_id":8,"template_kind_name":"script","inherited":false},{"id":67,"name":"alterator_pkglist","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":68,"name":"ansible_provisioning_callback","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":69,"name":"ansible_tower_callback_script","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":71,"name":"blacklist_kernel_modules","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":73,"name":"built","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":74,"name":"chef_client","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":75,"name":"coreos_cloudconfig","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":76,"name":"create_users","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":77,"name":"csr_attributes.yaml","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":78,"name":"efibootmgr_netboot","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":82,"name":"fix_hosts","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":83,"name":"freeipa_register","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":84,"name":"http_proxy","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":85,"name":"insights","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":86,"name":"kickstart_ifcfg_bond_interface","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":87,"name":"kickstart_ifcfg_bonded_interface","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":88,"name":"kickstart_ifcfg_generic_interface","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":89,"name":"kickstart_ifcfg_get_identifier_names","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":91,"name":"kickstart_networking_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":92,"name":"kickstart_rhsm","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":93,"name":"ntp","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":95,"name":"preseed_kernel_options","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":96,"name":"preseed_kernel_options_autoinstall","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":97,"name":"preseed_netplan_generic_interface","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":98,"name":"preseed_netplan_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":99,"name":"preseed_networking_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":106,"name":"pxegrub_chainload","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":100,"name":"puppet.conf","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":101,"name":"puppet_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":102,"name":"puppetlabs_repo","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":103,"name":"pxegrub2_chainload","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":104,"name":"pxegrub2_discovery","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":105,"name":"pxegrub2_mac","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":123,"name":"UserData + default","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":107,"name":"pxegrub_discovery","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":108,"name":"pxelinux_chainload","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":109,"name":"pxelinux_discovery","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":110,"name":"rancheros_cloudconfig","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":124,"name":"UserData + open-vm-tools","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":125,"name":"Windows + default user data","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":112,"name":"remote_execution_ssh_keys","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":113,"name":"saltstack_minion","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":114,"name":"saltstack_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":115,"name":"schedule_reboot","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":117,"name":"Windows + network","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":118,"name":"yum_proxy","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":119,"name":"AutoYaST default user data","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":120,"name":"Kickstart - default user data","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":121,"name":"Preseed - Autoinstall cloud-init user data","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":122,"name":"Preseed - default user data","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":123,"name":"UserData - default","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":124,"name":"UserData - open-vm-tools","template_kind_id":9,"template_kind_name":"user_data","inherited":false}],"domains":[],"realms":[],"hostgroups":[],"organizations":[],"hosts_count":0,"parameters":[],"deprecations":{"environments":"Environments + default user data","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":122,"name":"Preseed + default user data","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":90,"name":"kickstart_kernel_options","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":31,"name":"CloudInit + default","template_kind_id":12,"template_kind_name":"cloud-init","inherited":false},{"id":36,"name":"Kickstart + default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":57,"name":"Kickstart + default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":58,"name":"Kickstart + oVirt-RHVH","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":149,"name":"disk_enc_clevis_tang","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":150,"name":"kickstart_network_interface","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":94,"name":"pkg_manager","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":151,"name":"preseed_autoinstall_clevis_tang_wrapper","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":111,"name":"redhat_register","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":116,"name":"subscription_manager_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":121,"name":"Preseed + Autoinstall cloud-init user data","template_kind_id":9,"template_kind_name":"user_data","inherited":false}],"domains":[],"realms":[],"hostgroups":[],"organizations":[{"id":1,"name":"Default + Organization","title":"Default Organization","description":null}],"hosts_count":0,"parameters":[],"deprecations":{"environments":"Environments got deprecated from this endpoint."}}' headers: Cache-Control: @@ -244,7 +252,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '18043' + - '19207' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -258,7 +266,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0 + - 3.11.0-develop Keep-Alive: - timeout=15, max=98 Strict-Transport-Security: diff --git a/tests/test_playbooks/fixtures/locations_role-1.yml b/tests/test_playbooks/fixtures/locations_role-1.yml index 6fc377fb..4ecf7493 100644 --- a/tests/test_playbooks/fixtures/locations_role-1.yml +++ b/tests/test_playbooks/fixtures/locations_role-1.yml @@ -14,14 +14,14 @@ interactions: uri: https://foreman.example.org/api/status response: body: - string: '{"result":"ok","status":200,"version":"3.7.0","api_version":2}' + string: '{"result":"ok","status":200,"version":"3.11.0-develop","api_version":2}' headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive Content-Length: - - '62' + - '71' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -35,7 +35,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0 + - 3.11.0-develop Keep-Alive: - timeout=15, max=100 Strict-Transport-Security: @@ -91,7 +91,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0 + - 3.11.0-develop Keep-Alive: - timeout=15, max=99 Strict-Transport-Security: @@ -110,7 +110,7 @@ interactions: code: 200 message: OK - request: - body: '{"location": {"name": "Test Location 2"}}' + body: '{"location": {"name": "Test Location 2", "description": "2nd location"}}' headers: Accept: - application/json;version=2 @@ -119,7 +119,7 @@ interactions: Connection: - keep-alive Content-Length: - - '41' + - '72' Content-Type: - application/json User-Agent: @@ -128,42 +128,49 @@ interactions: uri: https://foreman.example.org/api/locations response: body: - string: '{"select_all_types":["ProvisioningTemplate","Hostgroup"],"description":null,"created_at":"2023-06-26 - 09:25:02 UTC","updated_at":"2023-06-26 09:25:02 UTC","ancestry":null,"parent_id":null,"parent_name":null,"id":5,"name":"Test - Location 2","title":"Test Location 2","users":[],"smart_proxies":[],"subnets":[],"compute_resources":[],"media":[],"ptables":[{"description":null,"os_family":"Suse","created_at":"2023-06-23 - 10:34:42 UTC","updated_at":"2023-06-23 10:34:42 UTC","name":"AutoYaST entire - SCSI disk","id":125,"inherited":false},{"description":null,"os_family":"Suse","created_at":"2023-06-23 - 10:34:43 UTC","updated_at":"2023-06-23 10:34:43 UTC","name":"AutoYaST entire - virtual disk","id":126,"inherited":false},{"description":null,"os_family":"Suse","created_at":"2023-06-23 - 10:34:43 UTC","updated_at":"2023-06-23 10:34:43 UTC","name":"AutoYaST LVM","id":127,"inherited":false},{"description":null,"os_family":"Coreos","created_at":"2023-06-23 - 10:34:43 UTC","updated_at":"2023-06-23 10:34:43 UTC","name":"CoreOS default - fake","id":128,"inherited":false},{"description":null,"os_family":"Rancheros","created_at":"2023-06-23 - 10:34:43 UTC","updated_at":"2023-06-23 10:34:43 UTC","name":"Empty","id":129,"inherited":false},{"description":null,"os_family":"Freebsd","created_at":"2023-06-23 - 10:34:43 UTC","updated_at":"2023-06-23 10:34:43 UTC","name":"FreeBSD default - fake","id":130,"inherited":false},{"description":null,"os_family":"Solaris","created_at":"2023-06-23 - 10:34:43 UTC","updated_at":"2023-06-23 10:34:43 UTC","name":"Jumpstart default","id":131,"inherited":false},{"description":null,"os_family":"Solaris","created_at":"2023-06-23 - 10:34:43 UTC","updated_at":"2023-06-23 10:34:43 UTC","name":"Jumpstart mirrored","id":132,"inherited":false},{"description":null,"os_family":"Junos","created_at":"2023-06-23 - 10:34:43 UTC","updated_at":"2023-06-23 10:34:43 UTC","name":"Junos default - fake","id":133,"inherited":false},{"description":null,"os_family":"Redhat","created_at":"2023-06-23 - 10:34:43 UTC","updated_at":"2023-06-23 10:34:43 UTC","name":"Kickstart custom","id":134,"inherited":false},{"description":null,"os_family":"Redhat","created_at":"2023-06-23 - 10:34:43 UTC","updated_at":"2023-06-23 10:34:43 UTC","name":"Kickstart default","id":135,"inherited":false},{"description":null,"os_family":"Redhat","created_at":"2023-06-23 - 10:34:43 UTC","updated_at":"2023-06-23 10:34:43 UTC","name":"Kickstart default - thin","id":136,"inherited":false},{"description":null,"os_family":"Redhat","created_at":"2023-06-23 - 10:34:43 UTC","updated_at":"2023-06-23 10:34:43 UTC","name":"Kickstart dynamic","id":137,"inherited":false},{"description":null,"os_family":"NXOS","created_at":"2023-06-23 - 10:34:43 UTC","updated_at":"2023-06-23 10:34:43 UTC","name":"NX-OS default - fake","id":138,"inherited":false},{"description":null,"os_family":"Debian","created_at":"2023-06-23 - 10:34:43 UTC","updated_at":"2023-06-23 10:34:43 UTC","name":"Preseed default","id":139,"inherited":false},{"description":"Preseed + string: '{"select_all_types":[],"description":"2nd location","created_at":"2024-07-25 + 12:15:09 UTC","updated_at":"2024-07-25 12:15:09 UTC","ancestry":null,"parent_id":null,"parent_name":null,"id":14,"name":"Test + Location 2","title":"Test Location 2","users":[],"smart_proxies":[],"subnets":[],"compute_resources":[],"media":[],"ptables":[{"description":null,"os_family":"Suse","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"AutoYaST entire + virtual disk","id":127,"inherited":false},{"description":null,"os_family":"Solaris","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"Jumpstart default","id":132,"inherited":false},{"description":null,"os_family":"Solaris","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"Jumpstart mirrored","id":133,"inherited":false},{"description":null,"os_family":"Junos","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"Junos default + fake","id":134,"inherited":false},{"description":null,"os_family":"Suse","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"AutoYaST LVM","id":128,"inherited":false},{"description":null,"os_family":"Coreos","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"CoreOS default + fake","id":129,"inherited":false},{"description":null,"os_family":"Rancheros","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"Empty","id":130,"inherited":false},{"description":null,"os_family":"Suse","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"AutoYaST entire + SCSI disk","id":126,"inherited":false},{"description":null,"os_family":"Freebsd","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"FreeBSD default + fake","id":131,"inherited":false},{"description":null,"os_family":"Redhat","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"Kickstart custom","id":135,"inherited":false},{"description":null,"os_family":"Redhat","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"Kickstart default","id":136,"inherited":false},{"description":null,"os_family":"Redhat","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"Kickstart default + thin","id":137,"inherited":false},{"description":null,"os_family":"Redhat","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"Kickstart dynamic","id":138,"inherited":false},{"description":null,"os_family":"NXOS","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"NX-OS default + fake","id":139,"inherited":false},{"description":null,"os_family":"Debian","created_at":"2024-04-15 + 09:11:36 UTC","updated_at":"2024-04-15 09:11:36 UTC","name":"Preseed default","id":140,"inherited":false},{"description":"Preseed Autoinstall default storage snippet configures drives automatically\nwith - LVM. The snippet is automatically indented by 2 spaces. For reference:\nhttps://ubuntu.com/server/docs/install/autoinstall-reference","os_family":"Debian","created_at":"2023-06-23 - 10:34:43 UTC","updated_at":"2023-06-23 10:34:43 UTC","name":"Preseed default - autoinstall","id":140,"inherited":false},{"description":null,"os_family":"Debian","created_at":"2023-06-23 - 10:34:43 UTC","updated_at":"2023-06-23 10:34:43 UTC","name":"Preseed default - LVM","id":141,"inherited":false},{"description":null,"os_family":"Windows","created_at":"2023-06-23 - 10:34:43 UTC","updated_at":"2023-06-23 10:34:43 UTC","name":"Windows default - partition table","id":142,"inherited":false},{"description":null,"os_family":"Windows","created_at":"2023-06-23 - 10:34:43 UTC","updated_at":"2023-06-23 10:34:43 UTC","name":"Windows default - GPT EFI partition table","id":143,"inherited":false},{"description":null,"os_family":"Xenserver","created_at":"2023-06-23 - 10:34:43 UTC","updated_at":"2023-06-23 10:34:43 UTC","name":"XenServer default","id":144,"inherited":false}],"provisioning_templates":[{"id":1,"name":"NX-OS + LVM. The snippet is automatically indented by 2 spaces. For reference:\nhttps://ubuntu.com/server/docs/install/autoinstall-reference","os_family":"Debian","created_at":"2024-04-15 + 09:11:37 UTC","updated_at":"2024-04-15 09:11:37 UTC","name":"Preseed default + autoinstall","id":141,"inherited":false},{"description":null,"os_family":"Debian","created_at":"2024-04-15 + 09:11:37 UTC","updated_at":"2024-04-15 09:11:37 UTC","name":"Preseed default + LVM","id":142,"inherited":false},{"description":null,"os_family":"Windows","created_at":"2024-04-15 + 09:11:37 UTC","updated_at":"2024-04-15 09:11:37 UTC","name":"Windows default + partition table","id":143,"inherited":false},{"description":null,"os_family":"Windows","created_at":"2024-04-15 + 09:11:37 UTC","updated_at":"2024-04-15 09:11:37 UTC","name":"Windows default + GPT EFI partition table","id":144,"inherited":false},{"description":null,"os_family":"Xenserver","created_at":"2024-04-15 + 09:11:37 UTC","updated_at":"2024-04-15 09:11:37 UTC","name":"XenServer default","id":145,"inherited":false},{"description":null,"os_family":"Redhat","created_at":"2024-04-22 + 11:15:26 UTC","updated_at":"2024-04-22 11:15:26 UTC","name":"Kickstart default + encrypted","id":152,"inherited":false},{"description":"Preseed Autoinstall + default storage snippet configures drives automatically\nwith LVM and disk + encryption.\nRequires Ubuntu >= 22.04.3.\nThe snippet is automatically indented + by 2 spaces. For reference:\nhttps://ubuntu.com/server/docs/install/autoinstall-reference","os_family":"Debian","created_at":"2024-04-22 + 11:15:26 UTC","updated_at":"2024-04-22 11:15:26 UTC","name":"Preseed default + autoinstall encrypted","id":153,"inherited":false}],"provisioning_templates":[{"id":1,"name":"NX-OS default POAP setup","template_kind_id":11,"template_kind_name":"POAP","inherited":false},{"id":2,"name":"AutoYaST default PXEGrub","template_kind_id":3,"template_kind_name":"PXEGrub","inherited":false},{"id":3,"name":"Jumpstart default PXEGrub","template_kind_id":3,"template_kind_name":"PXEGrub","inherited":false},{"id":4,"name":"Kickstart @@ -182,9 +189,8 @@ interactions: (mfsBSD) PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":17,"name":"Kickstart default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":18,"name":"Kickstart oVirt-RHVH PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":19,"name":"Preseed - default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":57,"name":"Junos - default SLAX","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":20,"name":"Preseed - default PXELinux Autoinstall","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":21,"name":"PXELinux + default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":20,"name":"Preseed + default PXELinux Autoinstall","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":79,"name":"eject_cdrom","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":21,"name":"PXELinux chain iPXE","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":22,"name":"PXELinux chain iPXE UNDI","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":23,"name":"PXELinux default local boot","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":24,"name":"PXELinux @@ -194,12 +200,10 @@ interactions: default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":28,"name":"Windows default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":29,"name":"XenServer default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":30,"name":"Junos - default ZTP config","template_kind_id":10,"template_kind_name":"ZTP","inherited":false},{"id":31,"name":"CloudInit - default","template_kind_id":12,"template_kind_name":"cloud-init","inherited":false},{"id":32,"name":"Alterator - default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":33,"name":"FreeBSD + default ZTP config","template_kind_id":10,"template_kind_name":"ZTP","inherited":false},{"id":32,"name":"Alterator + default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":80,"name":"epel","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":33,"name":"FreeBSD (mfsBSD) finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":34,"name":"Jumpstart default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":35,"name":"Junos - default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":36,"name":"Kickstart default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":37,"name":"Preseed default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":38,"name":"Windows default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":39,"name":"XenServer @@ -207,36 +211,40 @@ interactions: host_init_config default","template_kind_id":1,"template_kind_name":"host_init_config","inherited":false},{"id":41,"name":"AutoYaST default iPXE","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":42,"name":"iPXE default local boot","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":43,"name":"iPXE - global default","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":44,"name":"iPXE + global default","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":72,"name":"bmc_nic_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":44,"name":"iPXE intermediate script","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":45,"name":"Kickstart default iPXE","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":46,"name":"Preseed default iPXE","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":47,"name":"Preseed - default iPXE Autoinstall","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":104,"name":"pkg_manager","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":48,"name":"Windows + default iPXE Autoinstall","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":48,"name":"Windows default iPXE","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":49,"name":"Windows - default iPXE httpboot","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":50,"name":"Alterator - default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":51,"name":"Atomic - Kickstart default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":52,"name":"AutoYaST - default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":53,"name":"AutoYaST - SLES default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":54,"name":"CoreOS - provision","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":55,"name":"FreeBSD - (mfsBSD) provision","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":56,"name":"Jumpstart - default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":58,"name":"Kickstart - default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":59,"name":"Kickstart - oVirt-RHVH","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":60,"name":"Preseed - default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":61,"name":"RancherOS - provision","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":62,"name":"Windows - default provision","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":63,"name":"XenServer - default answerfile","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":64,"name":"Global - Registration","template_kind_id":13,"template_kind_name":"registration","inherited":false},{"id":65,"name":"remote_execution_pull_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":66,"name":"Grubby - default","template_kind_id":8,"template_kind_name":"script","inherited":false},{"id":67,"name":"Windows - peSetup.cmd","template_kind_id":8,"template_kind_name":"script","inherited":false},{"id":68,"name":"alterator_pkglist","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":69,"name":"remote_execution_ssh_keys","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":70,"name":"ansible_provisioning_callback","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":71,"name":"saltstack_minion","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":72,"name":"ansible_tower_callback_script","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":73,"name":"schedule_reboot","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":74,"name":"ansible_tower_callback_service","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":75,"name":"saltstack_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":76,"name":"blacklist_kernel_modules","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":77,"name":"bmc_nic_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":78,"name":"built","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":79,"name":"chef_client","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":80,"name":"coreos_cloudconfig","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":81,"name":"create_users","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":82,"name":"csr_attributes.yaml","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":83,"name":"efibootmgr_netboot","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":84,"name":"eject_cdrom","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":85,"name":"epel","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":86,"name":"fips_packages","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":87,"name":"fix_hosts","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":88,"name":"freeipa_register","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":89,"name":"http_proxy","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":90,"name":"insights","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":91,"name":"Windows - network","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":92,"name":"kickstart_ifcfg_bond_interface","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":93,"name":"pxegrub_discovery","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":94,"name":"kickstart_ifcfg_bonded_interface","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":95,"name":"pxelinux_chainload","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":96,"name":"kickstart_ifcfg_generic_interface","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":103,"name":"ntp","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":97,"name":"pxelinux_discovery","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":98,"name":"kickstart_ifcfg_get_identifier_names","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":99,"name":"yum_proxy","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":100,"name":"kickstart_kernel_options","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":101,"name":"kickstart_networking_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":102,"name":"kickstart_rhsm","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":105,"name":"preseed_kernel_options","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":106,"name":"rancheros_cloudconfig","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":107,"name":"preseed_kernel_options_autoinstall","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":108,"name":"redhat_register","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":109,"name":"preseed_netplan_generic_interface","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":110,"name":"preseed_netplan_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":111,"name":"preseed_networking_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":112,"name":"puppet.conf","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":113,"name":"puppet_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":114,"name":"puppetlabs_repo","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":115,"name":"pxegrub2_chainload","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":116,"name":"pxegrub2_discovery","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":117,"name":"pxegrub2_mac","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":118,"name":"pxegrub_chainload","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":119,"name":"AutoYaST + default iPXE httpboot","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":81,"name":"fips_packages","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":50,"name":"Alterator + default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":51,"name":"AutoYaST + default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":52,"name":"AutoYaST + SLES default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":53,"name":"CoreOS + provision","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":54,"name":"FreeBSD + (mfsBSD) provision","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":55,"name":"Jumpstart + default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":56,"name":"Junos + default SLAX","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":70,"name":"ansible_tower_callback_service","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":59,"name":"Preseed + default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":60,"name":"RancherOS + provision","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":61,"name":"Windows + default provision","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":62,"name":"XenServer + default answerfile","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":63,"name":"Global + Registration","template_kind_id":13,"template_kind_name":"registration","inherited":false},{"id":64,"name":"remote_execution_pull_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":65,"name":"Grubby + default","template_kind_id":8,"template_kind_name":"script","inherited":false},{"id":66,"name":"Windows + peSetup.cmd","template_kind_id":8,"template_kind_name":"script","inherited":false},{"id":67,"name":"alterator_pkglist","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":68,"name":"ansible_provisioning_callback","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":69,"name":"ansible_tower_callback_script","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":71,"name":"blacklist_kernel_modules","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":73,"name":"built","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":74,"name":"chef_client","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":75,"name":"coreos_cloudconfig","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":76,"name":"create_users","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":77,"name":"csr_attributes.yaml","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":78,"name":"efibootmgr_netboot","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":82,"name":"fix_hosts","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":83,"name":"freeipa_register","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":84,"name":"http_proxy","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":85,"name":"insights","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":86,"name":"kickstart_ifcfg_bond_interface","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":87,"name":"kickstart_ifcfg_bonded_interface","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":88,"name":"kickstart_ifcfg_generic_interface","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":89,"name":"kickstart_ifcfg_get_identifier_names","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":91,"name":"kickstart_networking_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":92,"name":"kickstart_rhsm","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":93,"name":"ntp","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":95,"name":"preseed_kernel_options","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":96,"name":"preseed_kernel_options_autoinstall","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":97,"name":"preseed_netplan_generic_interface","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":98,"name":"preseed_netplan_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":99,"name":"preseed_networking_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":106,"name":"pxegrub_chainload","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":100,"name":"puppet.conf","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":101,"name":"puppet_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":102,"name":"puppetlabs_repo","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":103,"name":"pxegrub2_chainload","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":104,"name":"pxegrub2_discovery","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":105,"name":"pxegrub2_mac","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":123,"name":"UserData + default","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":107,"name":"pxegrub_discovery","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":108,"name":"pxelinux_chainload","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":109,"name":"pxelinux_discovery","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":110,"name":"rancheros_cloudconfig","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":124,"name":"UserData + open-vm-tools","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":125,"name":"Windows + default user data","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":112,"name":"remote_execution_ssh_keys","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":113,"name":"saltstack_minion","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":114,"name":"saltstack_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":115,"name":"schedule_reboot","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":117,"name":"Windows + network","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":118,"name":"yum_proxy","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":119,"name":"AutoYaST default user data","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":120,"name":"Kickstart - default user data","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":121,"name":"Preseed - Autoinstall cloud-init user data","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":122,"name":"Preseed - default user data","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":123,"name":"UserData - default","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":124,"name":"UserData - open-vm-tools","template_kind_id":9,"template_kind_name":"user_data","inherited":false}],"domains":[],"realms":[],"hostgroups":[],"organizations":[],"hosts_count":0,"parameters":[],"deprecations":{"environments":"Environments + default user data","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":122,"name":"Preseed + default user data","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":90,"name":"kickstart_kernel_options","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":31,"name":"CloudInit + default","template_kind_id":12,"template_kind_name":"cloud-init","inherited":false},{"id":36,"name":"Kickstart + default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":57,"name":"Kickstart + default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":58,"name":"Kickstart + oVirt-RHVH","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":149,"name":"disk_enc_clevis_tang","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":150,"name":"kickstart_network_interface","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":94,"name":"pkg_manager","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":151,"name":"preseed_autoinstall_clevis_tang_wrapper","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":111,"name":"redhat_register","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":116,"name":"subscription_manager_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":121,"name":"Preseed + Autoinstall cloud-init user data","template_kind_id":9,"template_kind_name":"user_data","inherited":false}],"domains":[],"realms":[],"hostgroups":[],"organizations":[{"id":1,"name":"Default + Organization","title":"Default Organization","description":null}],"hosts_count":0,"parameters":[],"deprecations":{"environments":"Environments got deprecated from this endpoint."}}' headers: Cache-Control: @@ -244,7 +252,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '18043' + - '19217' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -258,7 +266,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0 + - 3.11.0-develop Keep-Alive: - timeout=15, max=98 Strict-Transport-Security: diff --git a/tests/test_playbooks/location.yml b/tests/test_playbooks/location.yml index 3b674a1c..918a78cf 100644 --- a/tests/test_playbooks/location.yml +++ b/tests/test_playbooks/location.yml @@ -194,6 +194,22 @@ expected_change: false expected_error: false + - name: Add a description to "Test Location" + include_tasks: tasks/location.yml + vars: + location_name: Test Location + location_description: MyNewLocationWithADescription + location_state: present + expected_change: true + + - name: Add a description to "Test Location" a second time + include_tasks: tasks/location.yml + vars: + location_name: Test Location + location_description: MyNewLocationWithADescription + location_state: present + expected_change: false + - hosts: localhost collections: - theforeman.foreman diff --git a/tests/test_playbooks/tasks/location.yml b/tests/test_playbooks/tasks/location.yml index ce048f67..5851129e 100644 --- a/tests/test_playbooks/tasks/location.yml +++ b/tests/test_playbooks/tasks/location.yml @@ -8,6 +8,7 @@ server_url: "{{ foreman_server_url }}" validate_certs: "{{ foreman_validate_certs }}" name: "{{ location_name }}" + description: "{{ location_description | default(omit) }}" parent: "{{ location_parent | default(omit) }}" organizations: "{{ location_organizations | default(omit) }}" parameters: "{{ location_parameters | default(omit) }}" From 756ac2bc9fd8d23411a8c1bd843e77593560d51e Mon Sep 17 00:00:00 2001 From: Evgeni Golov Date: Thu, 25 Jul 2024 15:09:05 +0200 Subject: [PATCH 04/36] only allow chunk_size_gb for importable exports Fixes: #1738 --- changelogs/fragments/1738-export_chunk_size.yml | 2 ++ plugins/doc_fragments/foreman.py | 1 + plugins/module_utils/foreman_helper.py | 3 +++ 3 files changed, 6 insertions(+) create mode 100644 changelogs/fragments/1738-export_chunk_size.yml diff --git a/changelogs/fragments/1738-export_chunk_size.yml b/changelogs/fragments/1738-export_chunk_size.yml new file mode 100644 index 00000000..89b6b97b --- /dev/null +++ b/changelogs/fragments/1738-export_chunk_size.yml @@ -0,0 +1,2 @@ +minor_changes: + - content_export_* - document that ``chunk_size_gb`` parameter is only applicable for ``importable`` exports (https://github.com/theforeman/foreman-ansible-modules/issues/1738) diff --git a/plugins/doc_fragments/foreman.py b/plugins/doc_fragments/foreman.py index 0f33b3d1..4afd3b73 100644 --- a/plugins/doc_fragments/foreman.py +++ b/plugins/doc_fragments/foreman.py @@ -392,6 +392,7 @@ class ModuleDocFragment(object): chunk_size_gb: description: - Split the exported content into archives no greater than the specified size in gigabytes. + - Only applicable for C(format=importable). C(syncable) exports can't be split. required: false type: int format: diff --git a/plugins/module_utils/foreman_helper.py b/plugins/module_utils/foreman_helper.py index e6f64596..30d4f017 100644 --- a/plugins/module_utils/foreman_helper.py +++ b/plugins/module_utils/foreman_helper.py @@ -1585,6 +1585,9 @@ def run(self, **kwargs): if self.params.get('from_history_id') and incremental is not True: self.fail_json(msg='from_history_id is only valid for incremental exports') + if 'chunk_size_gb' in self.foreman_params and self.foreman_params['format'] == 'syncable': + self.fail_json(msg='chunk_size_gb is only valid for importable exports') + self.auto_lookup_entities() payload = _flatten_entity(self.foreman_params, self.foreman_spec) From 8a10c01c41b6e0f291f27a9edfdeac53500e5c7c Mon Sep 17 00:00:00 2001 From: cojmckee <32520575+cojmckee@users.noreply.github.com> Date: Fri, 26 Jul 2024 11:11:54 -0400 Subject: [PATCH 05/36] activation_keys role -- allow deleting of keys --- roles/activation_keys/README.md | 16 ++++++++++++++++ roles/activation_keys/tasks/main.yml | 4 ++-- 2 files changed, 18 insertions(+), 2 deletions(-) diff --git a/roles/activation_keys/README.md b/roles/activation_keys/README.md index 4b04c593..31412a63 100644 --- a/roles/activation_keys/README.md +++ b/roles/activation_keys/README.md @@ -77,3 +77,19 @@ Define two Activation Keys. The first registers hosts in the "ACME" organization ``` Following the second example, a Host which is registered using `subscription-manager register --activationkey ACME_App_Key,ACME_RHEL7_Base_Test` will get the ACME_App subscription, Test LCE, RHEL7_Base Content View, and auto-attach any additional necessary subscriptions from ACME Organization to cover the Base OS and any other products which require an entitlement certificate. + +To delete multiple activation_keys +```yaml +- hosts: localhost + roles: + - role: theforeman.foreman.activation_keys + vars: + foreman_server_url: https://foreman.example.com + foreman_username: "admin" + foreman_password: "changeme" + foreman_organization: "ACME" + foreman_activation_keys: + - name: "ACME_App_Key" + state: absent + - name: "ACME_OS_Key" + state: absent diff --git a/roles/activation_keys/tasks/main.yml b/roles/activation_keys/tasks/main.yml index 787c2ae8..64a12a7a 100644 --- a/roles/activation_keys/tasks/main.yml +++ b/roles/activation_keys/tasks/main.yml @@ -1,5 +1,5 @@ --- -- name: 'Create Activation Keys' # noqa: args[module] +- name: 'Create or Delete Activation Keys' # noqa: args[module] theforeman.foreman.activation_key: username: "{{ foreman_username | default(omit) }}" password: "{{ foreman_password | default(omit) }}" @@ -21,6 +21,6 @@ purpose_usage: "{{ item.purpose_usage | default(omit) }}" purpose_role: "{{ item.purpose_role | default(omit) }}" purpose_addons: "{{ item.purpose_addons | default(omit) }}" - state: present + state: "{{ item.state | default('present') }}" with_items: - "{{ foreman_activation_keys }}" From 8db28d91bfed075eee5761cca42961576aa80312 Mon Sep 17 00:00:00 2001 From: Evgeni Golov Date: Wed, 24 Jul 2024 14:09:20 +0200 Subject: [PATCH 06/36] don't pass params to cv_filter that are moved to cv_filter_rule --- .../tasks/content_view_filter.yml | 75 ------------------- 1 file changed, 75 deletions(-) diff --git a/tests/test_playbooks/tasks/content_view_filter.yml b/tests/test_playbooks/tasks/content_view_filter.yml index 01e78962..9f0fc932 100644 --- a/tests/test_playbooks/tasks/content_view_filter.yml +++ b/tests/test_playbooks/tasks/content_view_filter.yml @@ -8,7 +8,6 @@ inclusion: true original_packages: true filter_state: present - rule_state: absent content_view_filter: username: "{{ foreman_username }}" password: "{{ foreman_password }}" @@ -21,13 +20,7 @@ inclusion: "{{ inclusion | default(omit) }}" original_module_streams: "{{ original_module_streams | default(omit) }}" original_packages: "{{ original_packages | default(omit) }}" - errata_id: "{{ errata_id | default(omit) }}" - end_date: "{{ end_date | default(omit) }}" - start_date: "{{ start_date | default(omit) }}" - package_group: "{{ package_group | default(omit) }}" - tag: "{{ tag | default(omit) }}" filter_state: "{{ filter_state }}" - rule_state: "{{ rule_state }}" register: result - name: "Assert Result" @@ -49,7 +42,6 @@ inclusion: true original_module_streams: true filter_state: present - rule_state: absent content_view_filter: username: "{{ foreman_username }}" password: "{{ foreman_password }}" @@ -62,13 +54,7 @@ inclusion: "{{ inclusion | default(omit) }}" original_module_streams: "{{ original_module_streams | default(omit) }}" original_packages: "{{ original_packages | default(omit) }}" - errata_id: "{{ errata_id | default(omit) }}" - end_date: "{{ end_date | default(omit) }}" - start_date: "{{ start_date | default(omit) }}" - package_group: "{{ package_group | default(omit) }}" - tag: "{{ tag | default(omit) }}" filter_state: "{{ filter_state }}" - rule_state: "{{ rule_state }}" register: result - name: "Assert Result" @@ -89,7 +75,6 @@ filter_type: deb inclusion: true filter_state: present - rule_state: absent content_view_filter: username: "{{ foreman_username }}" password: "{{ foreman_password }}" @@ -102,13 +87,7 @@ inclusion: "{{ inclusion | default(omit) }}" original_module_streams: "{{ original_module_streams | default(omit) }}" original_packages: "{{ original_packages | default(omit) }}" - errata_id: "{{ errata_id | default(omit) }}" - end_date: "{{ end_date | default(omit) }}" - start_date: "{{ start_date | default(omit) }}" - package_group: "{{ package_group | default(omit) }}" - tag: "{{ tag | default(omit) }}" filter_state: "{{ filter_state }}" - rule_state: "{{ rule_state }}" register: result - name: "Assert Result" @@ -128,7 +107,6 @@ content_view_name: "Test Content View" filter_type: rpm filter_state: present - rule_state: absent content_view_filter: username: "{{ foreman_username }}" password: "{{ foreman_password }}" @@ -141,13 +119,7 @@ inclusion: "{{ inclusion | default(omit) }}" original_module_streams: "{{ original_module_streams | default(omit) }}" original_packages: "{{ original_packages | default(omit) }}" - errata_id: "{{ errata_id | default(omit) }}" - end_date: "{{ end_date | default(omit) }}" - start_date: "{{ start_date | default(omit) }}" - package_group: "{{ package_group | default(omit) }}" - tag: "{{ tag | default(omit) }}" filter_state: "{{ filter_state }}" - rule_state: "{{ rule_state }}" register: result - name: "Assert Result" @@ -167,8 +139,6 @@ content_view_name: "Test Content View" filter_type: package_group filter_state: present - package_group: birds - rule_state: absent content_view_filter: username: "{{ foreman_username }}" password: "{{ foreman_password }}" @@ -181,13 +151,7 @@ inclusion: "{{ inclusion | default(omit) }}" original_module_streams: "{{ original_module_streams | default(omit) }}" original_packages: "{{ original_packages | default(omit) }}" - errata_id: "{{ errata_id | default(omit) }}" - end_date: "{{ end_date | default(omit) }}" - start_date: "{{ start_date | default(omit) }}" - package_group: "{{ package_group | default(omit) }}" - tag: "{{ tag | default(omit) }}" filter_state: "{{ filter_state }}" - rule_state: "{{ rule_state }}" register: result - name: "Assert Result" @@ -205,10 +169,8 @@ content_view_filter_name: "Test Content View Filter - erratum_by_id" organization_name: "Test Organization" content_view_name: "Test Content View" - errata_id: "RHEA-2012:0004" filter_type: erratum filter_state: present - rule_state: absent content_view_filter: username: "{{ foreman_username }}" password: "{{ foreman_password }}" @@ -221,13 +183,7 @@ inclusion: "{{ inclusion | default(omit) }}" original_module_streams: "{{ original_module_streams | default(omit) }}" original_packages: "{{ original_packages | default(omit) }}" - errata_id: "{{ errata_id | default(omit) }}" - end_date: "{{ end_date | default(omit) }}" - start_date: "{{ start_date | default(omit) }}" - package_group: "{{ package_group | default(omit) }}" - tag: "{{ tag | default(omit) }}" filter_state: "{{ filter_state }}" - rule_state: "{{ rule_state }}" register: result - name: "Assert Result" @@ -246,10 +202,7 @@ organization_name: "Test Organization" content_view_name: "Test Content View" filter_type: erratum - end_date: "2018-01-03" - start_date: "2017-01-03" filter_state: present - rule_state: absent content_view_filter: username: "{{ foreman_username }}" password: "{{ foreman_password }}" @@ -262,13 +215,7 @@ inclusion: "{{ inclusion | default(omit) }}" original_module_streams: "{{ original_module_streams | default(omit) }}" original_packages: "{{ original_packages | default(omit) }}" - errata_id: "{{ errata_id | default(omit) }}" - end_date: "{{ end_date | default(omit) }}" - start_date: "{{ start_date | default(omit) }}" - package_group: "{{ package_group | default(omit) }}" - tag: "{{ tag | default(omit) }}" filter_state: "{{ filter_state }}" - rule_state: "{{ rule_state }}" register: result - name: "Assert Result" @@ -287,9 +234,7 @@ organization_name: "Test Organization" content_view_name: "Test Content View" filter_type: docker - tag: birds filter_state: present - rule_state: absent content_view_filter: username: "{{ foreman_username }}" password: "{{ foreman_password }}" @@ -302,13 +247,7 @@ inclusion: "{{ inclusion | default(omit) }}" original_module_streams: "{{ original_module_streams | default(omit) }}" original_packages: "{{ original_packages | default(omit) }}" - errata_id: "{{ errata_id | default(omit) }}" - end_date: "{{ end_date | default(omit) }}" - start_date: "{{ start_date | default(omit) }}" - package_group: "{{ package_group | default(omit) }}" - tag: "{{ tag | default(omit) }}" filter_state: "{{ filter_state }}" - rule_state: "{{ rule_state }}" register: result - name: "Assert Result" @@ -328,7 +267,6 @@ content_view_name: "Test Content View" filter_type: modulemd filter_state: present - rule_state: absent content_view_filter: username: "{{ foreman_username }}" password: "{{ foreman_password }}" @@ -341,13 +279,7 @@ inclusion: "{{ inclusion | default(omit) }}" original_module_streams: "{{ original_module_streams | default(omit) }}" original_packages: "{{ original_packages | default(omit) }}" - errata_id: "{{ errata_id | default(omit) }}" - end_date: "{{ end_date | default(omit) }}" - start_date: "{{ start_date | default(omit) }}" - package_group: "{{ package_group | default(omit) }}" - tag: "{{ tag | default(omit) }}" filter_state: "{{ filter_state }}" - rule_state: "{{ rule_state }}" register: result - name: "Assert Result" @@ -367,7 +299,6 @@ content_view_name: "Test Content View" filter_type: deb filter_state: present - rule_state: absent content_view_filter: username: "{{ foreman_username }}" password: "{{ foreman_password }}" @@ -380,13 +311,7 @@ inclusion: "{{ inclusion | default(omit) }}" original_module_streams: "{{ original_module_streams | default(omit) }}" original_packages: "{{ original_packages | default(omit) }}" - errata_id: "{{ errata_id | default(omit) }}" - end_date: "{{ end_date | default(omit) }}" - start_date: "{{ start_date | default(omit) }}" - package_group: "{{ package_group | default(omit) }}" - tag: "{{ tag | default(omit) }}" filter_state: "{{ filter_state }}" - rule_state: "{{ rule_state }}" register: result - name: "Assert Result" From c9b30294bf687c72fa8a9b9a88edd8f53fc00757 Mon Sep 17 00:00:00 2001 From: Evgeni Golov Date: Wed, 24 Jul 2024 14:27:36 +0200 Subject: [PATCH 07/36] do not sync finishes in the expected time for rule info setup --- tests/test_playbooks/content_view_filter_rule_info.yml | 5 +++++ tests/test_playbooks/tasks/katello_sync.yml | 1 + 2 files changed, 6 insertions(+) diff --git a/tests/test_playbooks/content_view_filter_rule_info.yml b/tests/test_playbooks/content_view_filter_rule_info.yml index 00e91bd0..b1f986a4 100644 --- a/tests/test_playbooks/content_view_filter_rule_info.yml +++ b/tests/test_playbooks/content_view_filter_rule_info.yml @@ -58,21 +58,26 @@ - name: "Sync content" ansible.builtin.include_tasks: tasks/katello_sync.yml + vars: + expected_time: false - name: "Sync content" ansible.builtin.include_tasks: tasks/katello_sync.yml vars: repository: Test Docker Repository + expected_time: false - name: "Sync content" ansible.builtin.include_tasks: tasks/katello_sync.yml vars: repository: Test Modular Repository + expected_time: false - name: "Sync content" ansible.builtin.include_tasks: tasks/katello_sync.yml vars: repository: Test Debian Repository + expected_time: false - name: "Create Content View" ansible.builtin.include_tasks: tasks/content_view.yml diff --git a/tests/test_playbooks/tasks/katello_sync.yml b/tests/test_playbooks/tasks/katello_sync.yml index 17e73a2c..37752741 100644 --- a/tests/test_playbooks/tasks/katello_sync.yml +++ b/tests/test_playbooks/tasks/katello_sync.yml @@ -24,6 +24,7 @@ that: - (( result.task.ended_at | replace(' UTC', '') | to_datetime ) - ( result.task.started_at | replace(' UTC', '') | to_datetime )).total_seconds() >= 2 when: + - expected_time is not defined or expected_time - expected_fail is not defined or not expected_fail - result.task - assert: From b7caf04ef7c87250d1a39de30d0b10eb0840f004 Mon Sep 17 00:00:00 2001 From: Evgeni Golov Date: Wed, 24 Jul 2024 14:27:56 +0200 Subject: [PATCH 08/36] sync repos as on_demand, we do not need the content for rule_info --- tests/test_playbooks/content_view_filter_rule_info.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tests/test_playbooks/content_view_filter_rule_info.yml b/tests/test_playbooks/content_view_filter_rule_info.yml index b1f986a4..0c154962 100644 --- a/tests/test_playbooks/content_view_filter_rule_info.yml +++ b/tests/test_playbooks/content_view_filter_rule_info.yml @@ -21,12 +21,14 @@ ansible.builtin.include_tasks: tasks/repository.yml vars: repository_state: present + repository_download_policy: "on_demand" - name: "Create Additional Repository" ansible.builtin.include_tasks: tasks/repository.yml vars: repository_state: present repository_url: "https://repos.fedorapeople.org/pulp/pulp/demo_repos/zoo/" + repository_download_policy: "on_demand" - name: "Create Module repository" ansible.builtin.include_tasks: tasks/repository.yml @@ -35,6 +37,7 @@ repository_name: "Test Modular Repository" repository_content_type: yum repository_url: "https://dl.fedoraproject.org/pub/epel/8/Modular/x86_64" + repository_download_policy: "on_demand" - name: "Create Container Repository" ansible.builtin.include_tasks: tasks/repository.yml @@ -44,6 +47,7 @@ repository_content_type: docker repository_url: https://registry.access.redhat.com repository_docker_upstream_name: ubi9 + repository_download_policy: "on_demand" - name: "Create Deb Repository" ansible.builtin.include_tasks: tasks/repository.yml @@ -55,6 +59,7 @@ repository_deb_releases: buster repository_deb_components: contrib repository_deb_architectures: amd64 + repository_download_policy: "on_demand" - name: "Sync content" ansible.builtin.include_tasks: tasks/katello_sync.yml From f4020eac5d825a9761163435aedd4514a9b75c0b Mon Sep 17 00:00:00 2001 From: Evgeni Golov Date: Wed, 24 Jul 2024 14:33:16 +0200 Subject: [PATCH 09/36] split out Debian cv_filter_rule_info tests --- .../content_view_filter_rule_info_deb.json | 1 + .../content_view_filter_rule_info.yml | 46 ------- .../content_view_filter_rule_info_deb.yml | 120 ++++++++++++++++++ 3 files changed, 121 insertions(+), 46 deletions(-) create mode 120000 tests/fixtures/apidoc/content_view_filter_rule_info_deb.json create mode 100644 tests/test_playbooks/content_view_filter_rule_info_deb.yml diff --git a/tests/fixtures/apidoc/content_view_filter_rule_info_deb.json b/tests/fixtures/apidoc/content_view_filter_rule_info_deb.json new file mode 120000 index 00000000..8e89899a --- /dev/null +++ b/tests/fixtures/apidoc/content_view_filter_rule_info_deb.json @@ -0,0 +1 @@ +katello.json \ No newline at end of file diff --git a/tests/test_playbooks/content_view_filter_rule_info.yml b/tests/test_playbooks/content_view_filter_rule_info.yml index 0c154962..ee054dfa 100644 --- a/tests/test_playbooks/content_view_filter_rule_info.yml +++ b/tests/test_playbooks/content_view_filter_rule_info.yml @@ -49,18 +49,6 @@ repository_docker_upstream_name: ubi9 repository_download_policy: "on_demand" - - name: "Create Deb Repository" - ansible.builtin.include_tasks: tasks/repository.yml - vars: - repository_state: present - repository_name: Test Debian Repository - repository_content_type: deb - repository_url: https://ftp.debian.org/debian - repository_deb_releases: buster - repository_deb_components: contrib - repository_deb_architectures: amd64 - repository_download_policy: "on_demand" - - name: "Sync content" ansible.builtin.include_tasks: tasks/katello_sync.yml vars: @@ -78,12 +66,6 @@ repository: Test Modular Repository expected_time: false - - name: "Sync content" - ansible.builtin.include_tasks: tasks/katello_sync.yml - vars: - repository: Test Debian Repository - expected_time: false - - name: "Create Content View" ansible.builtin.include_tasks: tasks/content_view.yml vars: @@ -101,8 +83,6 @@ product: "Test Product" - name: "Test Modular Repository" product: "Test Product" - - name: "Test Debian Repository" - product: "Test Product" - name: "Create content view filters" ansible.builtin.include_tasks: tasks/content_view_filter.yml @@ -125,9 +105,6 @@ - name: "Create Content View Filter Rule for module_streams" ansible.builtin.include_tasks: tasks/content_view_filter_rule_modulemd.yml - - name: "Create Content View Filter Rule for deb packages" - ansible.builtin.include_tasks: tasks/content_view_filter_rule_deb.yml - - name: "Test content_view_filter_rule_info" hosts: tests collections: @@ -280,29 +257,6 @@ - result['content_view_filter_rules']|length != 0 - - name: "Fetch content_view_filter_info - deb exlude" - vars: - content_view_filter_rule_name: "bear" - content_view_filter_name: "Test Content View Filter - deb" - content_view_name: "Test Content View" - organization_name: "Test Organization" - content_view_filter_rule_info: - username: "{{ foreman_username }}" - password: "{{ foreman_password }}" - server_url: "{{ foreman_server_url }}" - validate_certs: "{{ foreman_validate_certs }}" - organization: "{{ organization_name }}" - content_view: "{{ content_view_name }}" - content_view_filter: "{{ content_view_filter_name }}" - name: "{{ content_view_filter_rule_name }}" - register: result - - - name: "Assert Result" - ansible.builtin.assert: - fail_msg: "Ensuring content view filter rule info is valid failed!" - that: - - result['content_view_filter_rule']['name'] == "bear" - - name: "Clean up test dependencies" hosts: localhost collections: diff --git a/tests/test_playbooks/content_view_filter_rule_info_deb.yml b/tests/test_playbooks/content_view_filter_rule_info_deb.yml new file mode 100644 index 00000000..20935267 --- /dev/null +++ b/tests/test_playbooks/content_view_filter_rule_info_deb.yml @@ -0,0 +1,120 @@ +--- +- name: "Setup content_view_filter_info test prerequisites" + hosts: localhost + collections: + - theforeman.foreman + gather_facts: false + vars_files: + - vars/server.yml + tasks: + - name: "Create Test Organization" + ansible.builtin.include_tasks: tasks/organization.yml + vars: + organization_state: present + + - name: "Create Test Product" + ansible.builtin.include_tasks: tasks/product.yml + vars: + product_state: present + + - name: "Create Deb Repository" + ansible.builtin.include_tasks: tasks/repository.yml + vars: + repository_state: present + repository_name: Test Debian Repository + repository_content_type: deb + repository_url: https://ftp.debian.org/debian + repository_deb_releases: buster + repository_deb_components: contrib + repository_deb_architectures: amd64 + repository_download_policy: "on_demand" + + - name: "Sync content" + ansible.builtin.include_tasks: tasks/katello_sync.yml + vars: + repository: Test Debian Repository + expected_time: false + + - name: "Create Content View" + ansible.builtin.include_tasks: tasks/content_view.yml + vars: + repositories: + - name: "Test Debian Repository" + product: "Test Product" + + - name: "Cleanup Content View Filters" + ansible.builtin.include_tasks: tasks/content_view_filter.yml + vars: + filter_state: absent + + - name: "Create content view filters" + ansible.builtin.include_tasks: tasks/content_view_filter.yml + + - name: "Create Content View Filter Rule for deb packages" + ansible.builtin.include_tasks: tasks/content_view_filter_rule_deb.yml + +- name: "Test content_view_filter_rule_info" + hosts: tests + collections: + - theforeman.foreman + gather_facts: false + vars_files: + - vars/server.yml + tasks: + - name: "Fetch content_view_filter_info - deb exlude" + vars: + content_view_filter_rule_name: "bear" + content_view_filter_name: "Test Content View Filter - deb" + content_view_name: "Test Content View" + organization_name: "Test Organization" + content_view_filter_rule_info: + username: "{{ foreman_username }}" + password: "{{ foreman_password }}" + server_url: "{{ foreman_server_url }}" + validate_certs: "{{ foreman_validate_certs }}" + organization: "{{ organization_name }}" + content_view: "{{ content_view_name }}" + content_view_filter: "{{ content_view_filter_name }}" + name: "{{ content_view_filter_rule_name }}" + register: result + + - name: "Assert Result" + ansible.builtin.assert: + fail_msg: "Ensuring content view filter rule info is valid failed!" + that: + - result['content_view_filter_rule']['name'] == "bear" + +- name: "Clean up test dependencies" + hosts: localhost + collections: + - theforeman.foreman + gather_facts: false + vars_files: + - vars/server.yml + tasks: + - name: "Cleanup Content View Filters" + ansible.builtin.include_tasks: tasks/content_view_filter.yml + vars: + filter_state: absent + + - name: Clean up the content view + ansible.builtin.include_tasks: tasks/content_view.yml + vars: + content_view_state: absent + + - name: "Clean up repositories" + ansible.builtin.include_tasks: tasks/repository.yml + vars: + repository_name: Test Debian Repository + repository_state: absent + + - name: "Clean up products" + ansible.builtin.include_tasks: tasks/product.yml + vars: + product_state: absent + + - name: "Clean up Organizations" + ansible.builtin.include_tasks: tasks/organization.yml + vars: + organization_state: absent +... From bcbef969a74c78dc7c5988ce1aa2c20edc6b92d9 Mon Sep 17 00:00:00 2001 From: Evgeni Golov Date: Wed, 24 Jul 2024 14:36:19 +0200 Subject: [PATCH 10/36] re-record cv_filter_rule_info --- .../content_view_filter_rule_info-0.yml | 82 ++-- .../content_view_filter_rule_info-1.yml | 82 ++-- .../content_view_filter_rule_info-2.yml | 74 ++-- .../content_view_filter_rule_info-3.yml | 72 ++-- .../content_view_filter_rule_info-4.yml | 82 ++-- .../content_view_filter_rule_info-5.yml | 76 ++-- .../content_view_filter_rule_info-6.yml | 360 ------------------ 7 files changed, 228 insertions(+), 600 deletions(-) delete mode 100644 tests/test_playbooks/fixtures/content_view_filter_rule_info-6.yml diff --git a/tests/test_playbooks/fixtures/content_view_filter_rule_info-0.yml b/tests/test_playbooks/fixtures/content_view_filter_rule_info-0.yml index 1f3fa177..03a9fe6c 100644 --- a/tests/test_playbooks/fixtures/content_view_filter_rule_info-0.yml +++ b/tests/test_playbooks/fixtures/content_view_filter_rule_info-0.yml @@ -14,14 +14,14 @@ interactions: uri: https://foreman.example.org/api/status response: body: - string: '{"result":"ok","status":200,"version":"3.7.0-rc2","api_version":2}' + string: '{"result":"ok","status":200,"version":"3.12.0-develop","api_version":2}' headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive Content-Length: - - '66' + - '71' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -35,7 +35,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=100 Strict-Transport-Security: @@ -70,8 +70,8 @@ interactions: body: string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": 4294967296,\n \"search\": \"name=\\\"Test Organization\\\"\",\n \"sort\": - {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\":\"Test_Organization\",\"created_at\":\"2023-06-05 - 22:27:50 UTC\",\"updated_at\":\"2023-06-05 22:27:54 UTC\",\"id\":10,\"name\":\"Test + {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\":\"Test_Organization\",\"created_at\":\"2024-07-24 + 12:33:39 UTC\",\"updated_at\":\"2024-07-24 12:33:41 UTC\",\"id\":4,\"name\":\"Test Organization\",\"title\":\"Test Organization\",\"description\":\"A test organization\"}]\n}\n" headers: Cache-Control: @@ -79,7 +79,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '389' + - '388' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -93,7 +93,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=99 Strict-Transport-Security: @@ -123,18 +123,17 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/organizations/10/content_views?search=name%3D%22Test+Content+View%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/organizations/4/content_views?search=name%3D%22Test+Content+View%22&per_page=4294967296 response: body: string: '{"total":2,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Content View\"","sort":{"by":"name","order":"asc"},"results":[{"composite":false,"component_ids":[],"default":false,"version_count":0,"latest_version":null,"latest_version_id":null,"auto_publish":false,"solve_dependencies":false,"import_only":false,"generated_for":"none","related_cv_count":0,"related_composite_cvs":[],"needs_publish":true,"filtered":true,"repository_ids":[27,28,29,30],"id":17,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":10,"organization":{"name":"Test - Organization","label":"Test_Organization","id":10},"created_at":"2023-06-05 - 22:29:16 UTC","updated_at":"2023-06-05 22:29:16 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":27,"name":"Test - Repository","label":"Test_Repository","content_type":"yum"},{"id":28,"name":"Test - Modular Repository","label":"Test_Modular_Repository","content_type":"yum"},{"id":29,"name":"Test - Docker Repository","label":"Test_Docker_Repository","content_type":"docker"},{"id":30,"name":"Test - Debian Repository","label":"Test_Debian_Repository","content_type":"deb"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]}]} + Content View\"","sort":{"by":"name","order":"asc"},"results":[{"composite":false,"component_ids":[],"duplicate_repositories_to_publish":[],"default":false,"version_count":0,"latest_version":null,"latest_version_id":null,"auto_publish":false,"solve_dependencies":false,"import_only":false,"generated_for":"none","related_cv_count":0,"related_composite_cvs":[],"filtered":true,"repository_ids":[5,6,7],"id":5,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":4,"organization":{"name":"Test + Organization","label":"Test_Organization","id":4},"created_at":"2024-07-24 + 12:34:25 UTC","updated_at":"2024-07-24 12:34:25 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":5,"name":"Test + Repository","label":"Test_Repository","content_type":"yum"},{"id":6,"name":"Test + Modular Repository","label":"Test_Modular_Repository","content_type":"yum"},{"id":7,"name":"Test + Docker Repository","label":"Test_Docker_Repository","content_type":"docker"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]}]} ' headers: @@ -143,7 +142,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '1353' + - '1263' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -155,9 +154,9 @@ interactions: Foreman_current_location: - ; ANY Foreman_current_organization: - - 10; Test Organization + - 4; Test Organization Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=98 Strict-Transport-Security: @@ -187,22 +186,21 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/content_views/17/filters?search=name%3D%22Test+Content+View+Filter+-+rpm%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/content_views/5/filters?search=name%3D%22Test+Content+View+Filter+-+rpm%22&per_page=4294967296 response: body: string: '{"total":10,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Content View Filter - rpm\"","sort":{"by":"name","order":"asc"},"results":[{"inclusion":false,"id":48,"name":"Test - Content View Filter - rpm","description":null,"created_at":"2023-06-05 22:29:22 - UTC","updated_at":"2023-06-05 22:29:22 UTC","content_view":{"composite":false,"component_ids":[],"default":false,"version_count":0,"latest_version":null,"latest_version_id":null,"auto_publish":false,"solve_dependencies":false,"import_only":false,"generated_for":"none","related_cv_count":0,"related_composite_cvs":[],"needs_publish":true,"filtered":true,"repository_ids":[27,28,29,30],"id":17,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":10,"organization":{"name":"Test - Organization","label":"Test_Organization","id":10},"created_at":"2023-06-05 - 22:29:16 UTC","updated_at":"2023-06-05 22:29:16 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":27,"name":"Test - Repository","label":"Test_Repository","content_type":"yum"},{"id":28,"name":"Test - Modular Repository","label":"Test_Modular_Repository","content_type":"yum"},{"id":29,"name":"Test - Docker Repository","label":"Test_Docker_Repository","content_type":"docker"},{"id":30,"name":"Test - Debian Repository","label":"Test_Debian_Repository","content_type":"deb"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]},"repositories":[],"type":"rpm","rules":[{"content_view_filter_id":48,"id":5,"name":"bear","created_at":"2023-06-05 - 22:29:29 UTC","updated_at":"2023-06-05 22:29:29 UTC"},{"content_view_filter_id":48,"id":6,"name":"camel","created_at":"2023-06-05 - 22:29:30 UTC","updated_at":"2023-06-05 22:29:30 UTC"}]}]} + Content View Filter - rpm\"","sort":{"by":"name","order":"asc"},"results":[{"inclusion":false,"id":14,"name":"Test + Content View Filter - rpm","description":null,"created_at":"2024-07-24 12:34:28 + UTC","updated_at":"2024-07-24 12:34:28 UTC","content_view":{"composite":false,"component_ids":[],"duplicate_repositories_to_publish":[],"default":false,"version_count":0,"latest_version":null,"latest_version_id":null,"auto_publish":false,"solve_dependencies":false,"import_only":false,"generated_for":"none","related_cv_count":0,"related_composite_cvs":[],"filtered":true,"repository_ids":[5,6,7],"id":5,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":4,"organization":{"name":"Test + Organization","label":"Test_Organization","id":4},"created_at":"2024-07-24 + 12:34:25 UTC","updated_at":"2024-07-24 12:34:25 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":5,"name":"Test + Repository","label":"Test_Repository","content_type":"yum"},{"id":6,"name":"Test + Modular Repository","label":"Test_Modular_Repository","content_type":"yum"},{"id":7,"name":"Test + Docker Repository","label":"Test_Docker_Repository","content_type":"docker"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]},"repositories":[],"type":"rpm","rules":[{"content_view_filter_id":14,"id":3,"name":"bear","created_at":"2024-07-24 + 12:34:32 UTC","updated_at":"2024-07-24 12:34:32 UTC"},{"content_view_filter_id":14,"id":4,"name":"camel","created_at":"2024-07-24 + 12:34:32 UTC","updated_at":"2024-07-24 12:34:32 UTC"}]}]} ' headers: @@ -211,7 +209,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '1847' + - '1757' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -225,7 +223,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=97 Strict-Transport-Security: @@ -255,11 +253,11 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/content_view_filters/48/rules?search=name%3D%22bear%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/content_view_filters/14/rules?search=name%3D%22bear%22&per_page=4294967296 response: body: - string: '{"total":2,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"bear\"","sort":{"by":"id","order":"asc"},"results":[{"content_view_filter_id":48,"id":5,"name":"bear","created_at":"2023-06-05 - 22:29:29 UTC","updated_at":"2023-06-05 22:29:29 UTC"}]} + string: '{"total":2,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"bear\"","sort":{"by":"id","order":"asc"},"results":[{"content_view_filter_id":14,"id":3,"name":"bear","created_at":"2024-07-24 + 12:34:32 UTC","updated_at":"2024-07-24 12:34:32 UTC"}]} ' headers: @@ -282,7 +280,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=96 Strict-Transport-Security: @@ -312,11 +310,11 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/content_view_filters/48/rules/5 + uri: https://foreman.example.org/katello/api/content_view_filters/14/rules/3 response: body: - string: ' {"content_view_filter_id":48,"id":5,"name":"bear","created_at":"2023-06-05 - 22:29:29 UTC","updated_at":"2023-06-05 22:29:29 UTC"} + string: ' {"content_view_filter_id":14,"id":3,"name":"bear","created_at":"2024-07-24 + 12:34:32 UTC","updated_at":"2024-07-24 12:34:32 UTC"} ' headers: @@ -339,7 +337,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=95 Strict-Transport-Security: diff --git a/tests/test_playbooks/fixtures/content_view_filter_rule_info-1.yml b/tests/test_playbooks/fixtures/content_view_filter_rule_info-1.yml index 93180f39..2943f1cc 100644 --- a/tests/test_playbooks/fixtures/content_view_filter_rule_info-1.yml +++ b/tests/test_playbooks/fixtures/content_view_filter_rule_info-1.yml @@ -14,14 +14,14 @@ interactions: uri: https://foreman.example.org/api/status response: body: - string: '{"result":"ok","status":200,"version":"3.7.0-rc2","api_version":2}' + string: '{"result":"ok","status":200,"version":"3.12.0-develop","api_version":2}' headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive Content-Length: - - '66' + - '71' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -35,7 +35,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=100 Strict-Transport-Security: @@ -70,8 +70,8 @@ interactions: body: string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": 4294967296,\n \"search\": \"name=\\\"Test Organization\\\"\",\n \"sort\": - {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\":\"Test_Organization\",\"created_at\":\"2023-06-05 - 22:27:50 UTC\",\"updated_at\":\"2023-06-05 22:27:54 UTC\",\"id\":10,\"name\":\"Test + {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\":\"Test_Organization\",\"created_at\":\"2024-07-24 + 12:33:39 UTC\",\"updated_at\":\"2024-07-24 12:33:41 UTC\",\"id\":4,\"name\":\"Test Organization\",\"title\":\"Test Organization\",\"description\":\"A test organization\"}]\n}\n" headers: Cache-Control: @@ -79,7 +79,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '389' + - '388' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -93,7 +93,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=99 Strict-Transport-Security: @@ -123,18 +123,17 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/organizations/10/content_views?search=name%3D%22Test+Content+View%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/organizations/4/content_views?search=name%3D%22Test+Content+View%22&per_page=4294967296 response: body: string: '{"total":2,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Content View\"","sort":{"by":"name","order":"asc"},"results":[{"composite":false,"component_ids":[],"default":false,"version_count":0,"latest_version":null,"latest_version_id":null,"auto_publish":false,"solve_dependencies":false,"import_only":false,"generated_for":"none","related_cv_count":0,"related_composite_cvs":[],"needs_publish":true,"filtered":true,"repository_ids":[27,28,29,30],"id":17,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":10,"organization":{"name":"Test - Organization","label":"Test_Organization","id":10},"created_at":"2023-06-05 - 22:29:16 UTC","updated_at":"2023-06-05 22:29:16 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":27,"name":"Test - Repository","label":"Test_Repository","content_type":"yum"},{"id":28,"name":"Test - Modular Repository","label":"Test_Modular_Repository","content_type":"yum"},{"id":29,"name":"Test - Docker Repository","label":"Test_Docker_Repository","content_type":"docker"},{"id":30,"name":"Test - Debian Repository","label":"Test_Debian_Repository","content_type":"deb"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]}]} + Content View\"","sort":{"by":"name","order":"asc"},"results":[{"composite":false,"component_ids":[],"duplicate_repositories_to_publish":[],"default":false,"version_count":0,"latest_version":null,"latest_version_id":null,"auto_publish":false,"solve_dependencies":false,"import_only":false,"generated_for":"none","related_cv_count":0,"related_composite_cvs":[],"filtered":true,"repository_ids":[5,6,7],"id":5,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":4,"organization":{"name":"Test + Organization","label":"Test_Organization","id":4},"created_at":"2024-07-24 + 12:34:25 UTC","updated_at":"2024-07-24 12:34:25 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":5,"name":"Test + Repository","label":"Test_Repository","content_type":"yum"},{"id":6,"name":"Test + Modular Repository","label":"Test_Modular_Repository","content_type":"yum"},{"id":7,"name":"Test + Docker Repository","label":"Test_Docker_Repository","content_type":"docker"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]}]} ' headers: @@ -143,7 +142,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '1353' + - '1263' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -155,9 +154,9 @@ interactions: Foreman_current_location: - ; ANY Foreman_current_organization: - - 10; Test Organization + - 4; Test Organization Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=98 Strict-Transport-Security: @@ -187,22 +186,21 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/content_views/17/filters?search=name%3D%22Test+Content+View+Filter+-+package_group%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/content_views/5/filters?search=name%3D%22Test+Content+View+Filter+-+package_group%22&per_page=4294967296 response: body: string: '{"total":10,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Content View Filter - package_group\"","sort":{"by":"name","order":"asc"},"results":[{"inclusion":false,"id":49,"name":"Test - Content View Filter - package_group","description":null,"created_at":"2023-06-05 - 22:29:23 UTC","updated_at":"2023-06-05 22:29:23 UTC","content_view":{"composite":false,"component_ids":[],"default":false,"version_count":0,"latest_version":null,"latest_version_id":null,"auto_publish":false,"solve_dependencies":false,"import_only":false,"generated_for":"none","related_cv_count":0,"related_composite_cvs":[],"needs_publish":true,"filtered":true,"repository_ids":[27,28,29,30],"id":17,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":10,"organization":{"name":"Test - Organization","label":"Test_Organization","id":10},"created_at":"2023-06-05 - 22:29:16 UTC","updated_at":"2023-06-05 22:29:16 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":27,"name":"Test - Repository","label":"Test_Repository","content_type":"yum"},{"id":28,"name":"Test - Modular Repository","label":"Test_Modular_Repository","content_type":"yum"},{"id":29,"name":"Test - Docker Repository","label":"Test_Docker_Repository","content_type":"docker"},{"id":30,"name":"Test - Debian Repository","label":"Test_Debian_Repository","content_type":"deb"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]},"repositories":[],"type":"package_group","rules":[{"content_view_filter_id":49,"uuid":"/pulp/api/v3/content/rpm/packagegroups/86fae512-5a7b-4f10-956c-df69a9218856/","id":4,"name":"birds","created_at":"2023-06-05 - 22:29:32 UTC","updated_at":"2023-06-05 22:29:32 UTC"},{"content_view_filter_id":49,"uuid":"/pulp/api/v3/content/rpm/packagegroups/07751227-7da7-4dc6-8da0-df1ec8fc5e05/","id":5,"name":"mammals","created_at":"2023-06-05 - 22:29:33 UTC","updated_at":"2023-06-05 22:29:33 UTC"}]}]} + Content View Filter - package_group\"","sort":{"by":"name","order":"asc"},"results":[{"inclusion":false,"id":15,"name":"Test + Content View Filter - package_group","description":null,"created_at":"2024-07-24 + 12:34:28 UTC","updated_at":"2024-07-24 12:34:28 UTC","content_view":{"composite":false,"component_ids":[],"duplicate_repositories_to_publish":[],"default":false,"version_count":0,"latest_version":null,"latest_version_id":null,"auto_publish":false,"solve_dependencies":false,"import_only":false,"generated_for":"none","related_cv_count":0,"related_composite_cvs":[],"filtered":true,"repository_ids":[5,6,7],"id":5,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":4,"organization":{"name":"Test + Organization","label":"Test_Organization","id":4},"created_at":"2024-07-24 + 12:34:25 UTC","updated_at":"2024-07-24 12:34:25 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":5,"name":"Test + Repository","label":"Test_Repository","content_type":"yum"},{"id":6,"name":"Test + Modular Repository","label":"Test_Modular_Repository","content_type":"yum"},{"id":7,"name":"Test + Docker Repository","label":"Test_Docker_Repository","content_type":"docker"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]},"repositories":[],"type":"package_group","rules":[{"content_view_filter_id":15,"uuid":"/pulp/api/v3/content/rpm/packagegroups/0190e45e-fd99-76f9-872f-f31298c228c1/","id":3,"name":"birds","created_at":"2024-07-24 + 12:34:34 UTC","updated_at":"2024-07-24 12:34:34 UTC"},{"content_view_filter_id":15,"uuid":"/pulp/api/v3/content/rpm/packagegroups/0190e45e-fd9a-7fce-b8b1-2ddf3e619951/","id":4,"name":"mammals","created_at":"2024-07-24 + 12:34:34 UTC","updated_at":"2024-07-24 12:34:34 UTC"}]}]} ' headers: @@ -211,7 +209,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '2052' + - '1962' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -225,7 +223,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=97 Strict-Transport-Security: @@ -255,11 +253,11 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/content_view_filters/49/rules?search=name%3D%22birds%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/content_view_filters/15/rules?search=name%3D%22birds%22&per_page=4294967296 response: body: - string: '{"total":2,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"birds\"","sort":{"by":"id","order":"asc"},"results":[{"content_view_filter_id":49,"uuid":"/pulp/api/v3/content/rpm/packagegroups/86fae512-5a7b-4f10-956c-df69a9218856/","id":4,"name":"birds","created_at":"2023-06-05 - 22:29:32 UTC","updated_at":"2023-06-05 22:29:32 UTC"}]} + string: '{"total":2,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"birds\"","sort":{"by":"id","order":"asc"},"results":[{"content_view_filter_id":15,"uuid":"/pulp/api/v3/content/rpm/packagegroups/0190e45e-fd99-76f9-872f-f31298c228c1/","id":3,"name":"birds","created_at":"2024-07-24 + 12:34:34 UTC","updated_at":"2024-07-24 12:34:34 UTC"}]} ' headers: @@ -282,7 +280,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=96 Strict-Transport-Security: @@ -312,11 +310,11 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/content_view_filters/49/rules/4 + uri: https://foreman.example.org/katello/api/content_view_filters/15/rules/3 response: body: - string: ' {"content_view_filter_id":49,"uuid":"/pulp/api/v3/content/rpm/packagegroups/86fae512-5a7b-4f10-956c-df69a9218856/","id":4,"name":"birds","created_at":"2023-06-05 - 22:29:32 UTC","updated_at":"2023-06-05 22:29:32 UTC"} + string: ' {"content_view_filter_id":15,"uuid":"/pulp/api/v3/content/rpm/packagegroups/0190e45e-fd99-76f9-872f-f31298c228c1/","id":3,"name":"birds","created_at":"2024-07-24 + 12:34:34 UTC","updated_at":"2024-07-24 12:34:34 UTC"} ' headers: @@ -339,7 +337,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=95 Strict-Transport-Security: diff --git a/tests/test_playbooks/fixtures/content_view_filter_rule_info-2.yml b/tests/test_playbooks/fixtures/content_view_filter_rule_info-2.yml index 88bf7b70..2e7a27c2 100644 --- a/tests/test_playbooks/fixtures/content_view_filter_rule_info-2.yml +++ b/tests/test_playbooks/fixtures/content_view_filter_rule_info-2.yml @@ -14,14 +14,14 @@ interactions: uri: https://foreman.example.org/api/status response: body: - string: '{"result":"ok","status":200,"version":"3.7.0-rc2","api_version":2}' + string: '{"result":"ok","status":200,"version":"3.12.0-develop","api_version":2}' headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive Content-Length: - - '66' + - '71' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -35,7 +35,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=100 Strict-Transport-Security: @@ -70,8 +70,8 @@ interactions: body: string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": 4294967296,\n \"search\": \"name=\\\"Test Organization\\\"\",\n \"sort\": - {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\":\"Test_Organization\",\"created_at\":\"2023-06-05 - 22:27:50 UTC\",\"updated_at\":\"2023-06-05 22:27:54 UTC\",\"id\":10,\"name\":\"Test + {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\":\"Test_Organization\",\"created_at\":\"2024-07-24 + 12:33:39 UTC\",\"updated_at\":\"2024-07-24 12:33:41 UTC\",\"id\":4,\"name\":\"Test Organization\",\"title\":\"Test Organization\",\"description\":\"A test organization\"}]\n}\n" headers: Cache-Control: @@ -79,7 +79,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '389' + - '388' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -93,7 +93,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=99 Strict-Transport-Security: @@ -123,18 +123,17 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/organizations/10/content_views?search=name%3D%22Test+Content+View%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/organizations/4/content_views?search=name%3D%22Test+Content+View%22&per_page=4294967296 response: body: string: '{"total":2,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Content View\"","sort":{"by":"name","order":"asc"},"results":[{"composite":false,"component_ids":[],"default":false,"version_count":0,"latest_version":null,"latest_version_id":null,"auto_publish":false,"solve_dependencies":false,"import_only":false,"generated_for":"none","related_cv_count":0,"related_composite_cvs":[],"needs_publish":true,"filtered":true,"repository_ids":[27,28,29,30],"id":17,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":10,"organization":{"name":"Test - Organization","label":"Test_Organization","id":10},"created_at":"2023-06-05 - 22:29:16 UTC","updated_at":"2023-06-05 22:29:16 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":27,"name":"Test - Repository","label":"Test_Repository","content_type":"yum"},{"id":28,"name":"Test - Modular Repository","label":"Test_Modular_Repository","content_type":"yum"},{"id":29,"name":"Test - Docker Repository","label":"Test_Docker_Repository","content_type":"docker"},{"id":30,"name":"Test - Debian Repository","label":"Test_Debian_Repository","content_type":"deb"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]}]} + Content View\"","sort":{"by":"name","order":"asc"},"results":[{"composite":false,"component_ids":[],"duplicate_repositories_to_publish":[],"default":false,"version_count":0,"latest_version":null,"latest_version_id":null,"auto_publish":false,"solve_dependencies":false,"import_only":false,"generated_for":"none","related_cv_count":0,"related_composite_cvs":[],"filtered":true,"repository_ids":[5,6,7],"id":5,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":4,"organization":{"name":"Test + Organization","label":"Test_Organization","id":4},"created_at":"2024-07-24 + 12:34:25 UTC","updated_at":"2024-07-24 12:34:25 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":5,"name":"Test + Repository","label":"Test_Repository","content_type":"yum"},{"id":6,"name":"Test + Modular Repository","label":"Test_Modular_Repository","content_type":"yum"},{"id":7,"name":"Test + Docker Repository","label":"Test_Docker_Repository","content_type":"docker"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]}]} ' headers: @@ -143,7 +142,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '1353' + - '1263' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -155,9 +154,9 @@ interactions: Foreman_current_location: - ; ANY Foreman_current_organization: - - 10; Test Organization + - 4; Test Organization Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=98 Strict-Transport-Security: @@ -187,22 +186,21 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/content_views/17/filters?search=name%3D%22Test+Content+View+Filter+-+erratum_by_id%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/content_views/5/filters?search=name%3D%22Test+Content+View+Filter+-+erratum_by_id%22&per_page=4294967296 response: body: string: '{"total":10,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Content View Filter - erratum_by_id\"","sort":{"by":"name","order":"asc"},"results":[{"inclusion":false,"id":50,"name":"Test - Content View Filter - erratum_by_id","description":null,"created_at":"2023-06-05 - 22:29:24 UTC","updated_at":"2023-06-05 22:29:24 UTC","content_view":{"composite":false,"component_ids":[],"default":false,"version_count":0,"latest_version":null,"latest_version_id":null,"auto_publish":false,"solve_dependencies":false,"import_only":false,"generated_for":"none","related_cv_count":0,"related_composite_cvs":[],"needs_publish":true,"filtered":true,"repository_ids":[27,28,29,30],"id":17,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":10,"organization":{"name":"Test - Organization","label":"Test_Organization","id":10},"created_at":"2023-06-05 - 22:29:16 UTC","updated_at":"2023-06-05 22:29:16 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":27,"name":"Test - Repository","label":"Test_Repository","content_type":"yum"},{"id":28,"name":"Test - Modular Repository","label":"Test_Modular_Repository","content_type":"yum"},{"id":29,"name":"Test - Docker Repository","label":"Test_Docker_Repository","content_type":"docker"},{"id":30,"name":"Test - Debian Repository","label":"Test_Debian_Repository","content_type":"deb"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]},"repositories":[],"type":"erratum","rules":[{"content_view_filter_id":50,"errata_id":"RHEA-2012:0004","date_type":"updated","id":7,"created_at":"2023-06-05 - 22:29:34 UTC","updated_at":"2023-06-05 22:29:34 UTC"},{"content_view_filter_id":50,"errata_id":"RHEA-2012:0003","date_type":"updated","id":8,"created_at":"2023-06-05 - 22:29:35 UTC","updated_at":"2023-06-05 22:29:35 UTC"}]}]} + Content View Filter - erratum_by_id\"","sort":{"by":"name","order":"asc"},"results":[{"inclusion":false,"id":16,"name":"Test + Content View Filter - erratum_by_id","description":null,"created_at":"2024-07-24 + 12:34:29 UTC","updated_at":"2024-07-24 12:34:29 UTC","content_view":{"composite":false,"component_ids":[],"duplicate_repositories_to_publish":[],"default":false,"version_count":0,"latest_version":null,"latest_version_id":null,"auto_publish":false,"solve_dependencies":false,"import_only":false,"generated_for":"none","related_cv_count":0,"related_composite_cvs":[],"filtered":true,"repository_ids":[5,6,7],"id":5,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":4,"organization":{"name":"Test + Organization","label":"Test_Organization","id":4},"created_at":"2024-07-24 + 12:34:25 UTC","updated_at":"2024-07-24 12:34:25 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":5,"name":"Test + Repository","label":"Test_Repository","content_type":"yum"},{"id":6,"name":"Test + Modular Repository","label":"Test_Modular_Repository","content_type":"yum"},{"id":7,"name":"Test + Docker Repository","label":"Test_Docker_Repository","content_type":"docker"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]},"repositories":[],"type":"erratum","rules":[{"content_view_filter_id":16,"errata_id":"RHEA-2012:0004","date_type":"updated","id":4,"created_at":"2024-07-24 + 12:34:35 UTC","updated_at":"2024-07-24 12:34:35 UTC"},{"content_view_filter_id":16,"errata_id":"RHEA-2012:0003","date_type":"updated","id":5,"created_at":"2024-07-24 + 12:34:35 UTC","updated_at":"2024-07-24 12:34:35 UTC"}]}]} ' headers: @@ -211,7 +209,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '1944' + - '1854' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -225,7 +223,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=97 Strict-Transport-Security: @@ -255,11 +253,11 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/content_view_filters/50/rules?errata_id=RHEA-2012%3A0004&per_page=4294967296 + uri: https://foreman.example.org/katello/api/content_view_filters/16/rules?errata_id=RHEA-2012%3A0004&per_page=4294967296 response: body: - string: '{"total":1,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":null,"sort":{"by":"id","order":"asc"},"results":[{"content_view_filter_id":50,"errata_id":"RHEA-2012:0004","date_type":"updated","id":7,"created_at":"2023-06-05 - 22:29:34 UTC","updated_at":"2023-06-05 22:29:34 UTC"}]} + string: '{"total":1,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":null,"sort":{"by":"id","order":"asc"},"results":[{"content_view_filter_id":16,"errata_id":"RHEA-2012:0004","date_type":"updated","id":4,"created_at":"2024-07-24 + 12:34:35 UTC","updated_at":"2024-07-24 12:34:35 UTC"}]} ' headers: @@ -282,7 +280,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=96 Strict-Transport-Security: diff --git a/tests/test_playbooks/fixtures/content_view_filter_rule_info-3.yml b/tests/test_playbooks/fixtures/content_view_filter_rule_info-3.yml index 19887747..50e5d9e6 100644 --- a/tests/test_playbooks/fixtures/content_view_filter_rule_info-3.yml +++ b/tests/test_playbooks/fixtures/content_view_filter_rule_info-3.yml @@ -14,14 +14,14 @@ interactions: uri: https://foreman.example.org/api/status response: body: - string: '{"result":"ok","status":200,"version":"3.7.0-rc2","api_version":2}' + string: '{"result":"ok","status":200,"version":"3.12.0-develop","api_version":2}' headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive Content-Length: - - '66' + - '71' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -35,7 +35,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=100 Strict-Transport-Security: @@ -70,8 +70,8 @@ interactions: body: string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": 4294967296,\n \"search\": \"name=\\\"Test Organization\\\"\",\n \"sort\": - {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\":\"Test_Organization\",\"created_at\":\"2023-06-05 - 22:27:50 UTC\",\"updated_at\":\"2023-06-05 22:27:54 UTC\",\"id\":10,\"name\":\"Test + {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\":\"Test_Organization\",\"created_at\":\"2024-07-24 + 12:33:39 UTC\",\"updated_at\":\"2024-07-24 12:33:41 UTC\",\"id\":4,\"name\":\"Test Organization\",\"title\":\"Test Organization\",\"description\":\"A test organization\"}]\n}\n" headers: Cache-Control: @@ -79,7 +79,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '389' + - '388' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -93,7 +93,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=99 Strict-Transport-Security: @@ -123,18 +123,17 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/organizations/10/content_views?search=name%3D%22Test+Content+View%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/organizations/4/content_views?search=name%3D%22Test+Content+View%22&per_page=4294967296 response: body: string: '{"total":2,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Content View\"","sort":{"by":"name","order":"asc"},"results":[{"composite":false,"component_ids":[],"default":false,"version_count":0,"latest_version":null,"latest_version_id":null,"auto_publish":false,"solve_dependencies":false,"import_only":false,"generated_for":"none","related_cv_count":0,"related_composite_cvs":[],"needs_publish":true,"filtered":true,"repository_ids":[27,28,29,30],"id":17,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":10,"organization":{"name":"Test - Organization","label":"Test_Organization","id":10},"created_at":"2023-06-05 - 22:29:16 UTC","updated_at":"2023-06-05 22:29:16 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":27,"name":"Test - Repository","label":"Test_Repository","content_type":"yum"},{"id":28,"name":"Test - Modular Repository","label":"Test_Modular_Repository","content_type":"yum"},{"id":29,"name":"Test - Docker Repository","label":"Test_Docker_Repository","content_type":"docker"},{"id":30,"name":"Test - Debian Repository","label":"Test_Debian_Repository","content_type":"deb"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]}]} + Content View\"","sort":{"by":"name","order":"asc"},"results":[{"composite":false,"component_ids":[],"duplicate_repositories_to_publish":[],"default":false,"version_count":0,"latest_version":null,"latest_version_id":null,"auto_publish":false,"solve_dependencies":false,"import_only":false,"generated_for":"none","related_cv_count":0,"related_composite_cvs":[],"filtered":true,"repository_ids":[5,6,7],"id":5,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":4,"organization":{"name":"Test + Organization","label":"Test_Organization","id":4},"created_at":"2024-07-24 + 12:34:25 UTC","updated_at":"2024-07-24 12:34:25 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":5,"name":"Test + Repository","label":"Test_Repository","content_type":"yum"},{"id":6,"name":"Test + Modular Repository","label":"Test_Modular_Repository","content_type":"yum"},{"id":7,"name":"Test + Docker Repository","label":"Test_Docker_Repository","content_type":"docker"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]}]} ' headers: @@ -143,7 +142,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '1353' + - '1263' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -155,9 +154,9 @@ interactions: Foreman_current_location: - ; ANY Foreman_current_organization: - - 10; Test Organization + - 4; Test Organization Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=98 Strict-Transport-Security: @@ -187,21 +186,20 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/content_views/17/filters?search=name%3D%22Test+Content+View+Filter+-+erratum_by_date%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/content_views/5/filters?search=name%3D%22Test+Content+View+Filter+-+erratum_by_date%22&per_page=4294967296 response: body: string: '{"total":10,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Content View Filter - erratum_by_date\"","sort":{"by":"name","order":"asc"},"results":[{"inclusion":false,"id":51,"name":"Test - Content View Filter - erratum_by_date","description":null,"created_at":"2023-06-05 - 22:29:25 UTC","updated_at":"2023-06-05 22:29:25 UTC","content_view":{"composite":false,"component_ids":[],"default":false,"version_count":0,"latest_version":null,"latest_version_id":null,"auto_publish":false,"solve_dependencies":false,"import_only":false,"generated_for":"none","related_cv_count":0,"related_composite_cvs":[],"needs_publish":true,"filtered":true,"repository_ids":[27,28,29,30],"id":17,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":10,"organization":{"name":"Test - Organization","label":"Test_Organization","id":10},"created_at":"2023-06-05 - 22:29:16 UTC","updated_at":"2023-06-05 22:29:16 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":27,"name":"Test - Repository","label":"Test_Repository","content_type":"yum"},{"id":28,"name":"Test - Modular Repository","label":"Test_Modular_Repository","content_type":"yum"},{"id":29,"name":"Test - Docker Repository","label":"Test_Docker_Repository","content_type":"docker"},{"id":30,"name":"Test - Debian Repository","label":"Test_Debian_Repository","content_type":"deb"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]},"repositories":[],"type":"erratum","rules":[{"content_view_filter_id":51,"start_date":"2017-01-03","end_date":"2019-01-03","types":["bugfix","enhancement","security"],"date_type":"updated","id":9,"created_at":"2023-06-05 - 22:29:36 UTC","updated_at":"2023-06-05 22:29:37 UTC"}]}]} + Content View Filter - erratum_by_date\"","sort":{"by":"name","order":"asc"},"results":[{"inclusion":false,"id":17,"name":"Test + Content View Filter - erratum_by_date","description":null,"created_at":"2024-07-24 + 12:34:29 UTC","updated_at":"2024-07-24 12:34:29 UTC","content_view":{"composite":false,"component_ids":[],"duplicate_repositories_to_publish":[],"default":false,"version_count":0,"latest_version":null,"latest_version_id":null,"auto_publish":false,"solve_dependencies":false,"import_only":false,"generated_for":"none","related_cv_count":0,"related_composite_cvs":[],"filtered":true,"repository_ids":[5,6,7],"id":5,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":4,"organization":{"name":"Test + Organization","label":"Test_Organization","id":4},"created_at":"2024-07-24 + 12:34:25 UTC","updated_at":"2024-07-24 12:34:25 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":5,"name":"Test + Repository","label":"Test_Repository","content_type":"yum"},{"id":6,"name":"Test + Modular Repository","label":"Test_Modular_Repository","content_type":"yum"},{"id":7,"name":"Test + Docker Repository","label":"Test_Docker_Repository","content_type":"docker"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]},"repositories":[],"type":"erratum","rules":[{"content_view_filter_id":17,"start_date":"2017-01-03","end_date":"2019-01-03","types":["bugfix","enhancement","security"],"date_type":"updated","id":6,"created_at":"2024-07-24 + 12:34:36 UTC","updated_at":"2024-07-24 12:34:37 UTC"}]}]} ' headers: @@ -210,7 +208,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '1847' + - '1757' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -224,7 +222,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=97 Strict-Transport-Security: @@ -254,11 +252,11 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/content_view_filters/51/rules?per_page=4294967296 + uri: https://foreman.example.org/katello/api/content_view_filters/17/rules?per_page=4294967296 response: body: - string: '{"total":1,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":null,"sort":{"by":"id","order":"asc"},"results":[{"content_view_filter_id":51,"start_date":"2017-01-03","end_date":"2019-01-03","types":["bugfix","enhancement","security"],"date_type":"updated","id":9,"created_at":"2023-06-05 - 22:29:36 UTC","updated_at":"2023-06-05 22:29:37 UTC"}]} + string: '{"total":1,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":null,"sort":{"by":"id","order":"asc"},"results":[{"content_view_filter_id":17,"start_date":"2017-01-03","end_date":"2019-01-03","types":["bugfix","enhancement","security"],"date_type":"updated","id":6,"created_at":"2024-07-24 + 12:34:36 UTC","updated_at":"2024-07-24 12:34:37 UTC"}]} ' headers: @@ -281,7 +279,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=96 Strict-Transport-Security: diff --git a/tests/test_playbooks/fixtures/content_view_filter_rule_info-4.yml b/tests/test_playbooks/fixtures/content_view_filter_rule_info-4.yml index 9c172f1c..dd4cf670 100644 --- a/tests/test_playbooks/fixtures/content_view_filter_rule_info-4.yml +++ b/tests/test_playbooks/fixtures/content_view_filter_rule_info-4.yml @@ -14,14 +14,14 @@ interactions: uri: https://foreman.example.org/api/status response: body: - string: '{"result":"ok","status":200,"version":"3.7.0-rc2","api_version":2}' + string: '{"result":"ok","status":200,"version":"3.12.0-develop","api_version":2}' headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive Content-Length: - - '66' + - '71' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -35,7 +35,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=100 Strict-Transport-Security: @@ -70,8 +70,8 @@ interactions: body: string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": 4294967296,\n \"search\": \"name=\\\"Test Organization\\\"\",\n \"sort\": - {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\":\"Test_Organization\",\"created_at\":\"2023-06-05 - 22:27:50 UTC\",\"updated_at\":\"2023-06-05 22:27:54 UTC\",\"id\":10,\"name\":\"Test + {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\":\"Test_Organization\",\"created_at\":\"2024-07-24 + 12:33:39 UTC\",\"updated_at\":\"2024-07-24 12:33:41 UTC\",\"id\":4,\"name\":\"Test Organization\",\"title\":\"Test Organization\",\"description\":\"A test organization\"}]\n}\n" headers: Cache-Control: @@ -79,7 +79,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '389' + - '388' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -93,7 +93,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=99 Strict-Transport-Security: @@ -123,18 +123,17 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/organizations/10/content_views?search=name%3D%22Test+Content+View%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/organizations/4/content_views?search=name%3D%22Test+Content+View%22&per_page=4294967296 response: body: string: '{"total":2,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Content View\"","sort":{"by":"name","order":"asc"},"results":[{"composite":false,"component_ids":[],"default":false,"version_count":0,"latest_version":null,"latest_version_id":null,"auto_publish":false,"solve_dependencies":false,"import_only":false,"generated_for":"none","related_cv_count":0,"related_composite_cvs":[],"needs_publish":true,"filtered":true,"repository_ids":[27,28,29,30],"id":17,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":10,"organization":{"name":"Test - Organization","label":"Test_Organization","id":10},"created_at":"2023-06-05 - 22:29:16 UTC","updated_at":"2023-06-05 22:29:16 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":27,"name":"Test - Repository","label":"Test_Repository","content_type":"yum"},{"id":28,"name":"Test - Modular Repository","label":"Test_Modular_Repository","content_type":"yum"},{"id":29,"name":"Test - Docker Repository","label":"Test_Docker_Repository","content_type":"docker"},{"id":30,"name":"Test - Debian Repository","label":"Test_Debian_Repository","content_type":"deb"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]}]} + Content View\"","sort":{"by":"name","order":"asc"},"results":[{"composite":false,"component_ids":[],"duplicate_repositories_to_publish":[],"default":false,"version_count":0,"latest_version":null,"latest_version_id":null,"auto_publish":false,"solve_dependencies":false,"import_only":false,"generated_for":"none","related_cv_count":0,"related_composite_cvs":[],"filtered":true,"repository_ids":[5,6,7],"id":5,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":4,"organization":{"name":"Test + Organization","label":"Test_Organization","id":4},"created_at":"2024-07-24 + 12:34:25 UTC","updated_at":"2024-07-24 12:34:25 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":5,"name":"Test + Repository","label":"Test_Repository","content_type":"yum"},{"id":6,"name":"Test + Modular Repository","label":"Test_Modular_Repository","content_type":"yum"},{"id":7,"name":"Test + Docker Repository","label":"Test_Docker_Repository","content_type":"docker"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]}]} ' headers: @@ -143,7 +142,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '1353' + - '1263' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -155,9 +154,9 @@ interactions: Foreman_current_location: - ; ANY Foreman_current_organization: - - 10; Test Organization + - 4; Test Organization Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=98 Strict-Transport-Security: @@ -187,22 +186,21 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/content_views/17/filters?search=name%3D%22Test+Content+View+Filter+-+docker%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/content_views/5/filters?search=name%3D%22Test+Content+View+Filter+-+docker%22&per_page=4294967296 response: body: string: '{"total":10,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Content View Filter - docker\"","sort":{"by":"name","order":"asc"},"results":[{"inclusion":false,"id":52,"name":"Test - Content View Filter - docker","description":null,"created_at":"2023-06-05 - 22:29:26 UTC","updated_at":"2023-06-05 22:29:26 UTC","content_view":{"composite":false,"component_ids":[],"default":false,"version_count":0,"latest_version":null,"latest_version_id":null,"auto_publish":false,"solve_dependencies":false,"import_only":false,"generated_for":"none","related_cv_count":0,"related_composite_cvs":[],"needs_publish":true,"filtered":true,"repository_ids":[27,28,29,30],"id":17,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":10,"organization":{"name":"Test - Organization","label":"Test_Organization","id":10},"created_at":"2023-06-05 - 22:29:16 UTC","updated_at":"2023-06-05 22:29:16 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":27,"name":"Test - Repository","label":"Test_Repository","content_type":"yum"},{"id":28,"name":"Test - Modular Repository","label":"Test_Modular_Repository","content_type":"yum"},{"id":29,"name":"Test - Docker Repository","label":"Test_Docker_Repository","content_type":"docker"},{"id":30,"name":"Test - Debian Repository","label":"Test_Debian_Repository","content_type":"deb"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]},"repositories":[],"type":"docker","rules":[{"content_view_filter_id":52,"id":4,"name":"8.7-929","created_at":"2023-06-05 - 22:29:38 UTC","updated_at":"2023-06-05 22:29:38 UTC"},{"content_view_filter_id":52,"id":5,"name":"8.6-990","created_at":"2023-06-05 - 22:29:39 UTC","updated_at":"2023-06-05 22:29:39 UTC"}]}]} + Content View Filter - docker\"","sort":{"by":"name","order":"asc"},"results":[{"inclusion":false,"id":18,"name":"Test + Content View Filter - docker","description":null,"created_at":"2024-07-24 + 12:34:30 UTC","updated_at":"2024-07-24 12:34:30 UTC","content_view":{"composite":false,"component_ids":[],"duplicate_repositories_to_publish":[],"default":false,"version_count":0,"latest_version":null,"latest_version_id":null,"auto_publish":false,"solve_dependencies":false,"import_only":false,"generated_for":"none","related_cv_count":0,"related_composite_cvs":[],"filtered":true,"repository_ids":[5,6,7],"id":5,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":4,"organization":{"name":"Test + Organization","label":"Test_Organization","id":4},"created_at":"2024-07-24 + 12:34:25 UTC","updated_at":"2024-07-24 12:34:25 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":5,"name":"Test + Repository","label":"Test_Repository","content_type":"yum"},{"id":6,"name":"Test + Modular Repository","label":"Test_Modular_Repository","content_type":"yum"},{"id":7,"name":"Test + Docker Repository","label":"Test_Docker_Repository","content_type":"docker"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]},"repositories":[],"type":"docker","rules":[{"content_view_filter_id":18,"id":3,"name":"8.7-929","created_at":"2024-07-24 + 12:34:37 UTC","updated_at":"2024-07-24 12:34:37 UTC"},{"content_view_filter_id":18,"id":4,"name":"8.6-990","created_at":"2024-07-24 + 12:34:38 UTC","updated_at":"2024-07-24 12:34:38 UTC"}]}]} ' headers: @@ -211,7 +209,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '1861' + - '1771' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -225,7 +223,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=97 Strict-Transport-Security: @@ -255,11 +253,11 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/content_view_filters/52/rules?search=name%3D%228.7-929%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/content_view_filters/18/rules?search=name%3D%228.7-929%22&per_page=4294967296 response: body: - string: '{"total":2,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"8.7-929\"","sort":{"by":"id","order":"asc"},"results":[{"content_view_filter_id":52,"id":4,"name":"8.7-929","created_at":"2023-06-05 - 22:29:38 UTC","updated_at":"2023-06-05 22:29:38 UTC"}]} + string: '{"total":2,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"8.7-929\"","sort":{"by":"id","order":"asc"},"results":[{"content_view_filter_id":18,"id":3,"name":"8.7-929","created_at":"2024-07-24 + 12:34:37 UTC","updated_at":"2024-07-24 12:34:37 UTC"}]} ' headers: @@ -282,7 +280,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=96 Strict-Transport-Security: @@ -312,11 +310,11 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/content_view_filters/52/rules/4 + uri: https://foreman.example.org/katello/api/content_view_filters/18/rules/3 response: body: - string: ' {"content_view_filter_id":52,"id":4,"name":"8.7-929","created_at":"2023-06-05 - 22:29:38 UTC","updated_at":"2023-06-05 22:29:38 UTC"} + string: ' {"content_view_filter_id":18,"id":3,"name":"8.7-929","created_at":"2024-07-24 + 12:34:37 UTC","updated_at":"2024-07-24 12:34:37 UTC"} ' headers: @@ -339,7 +337,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=95 Strict-Transport-Security: diff --git a/tests/test_playbooks/fixtures/content_view_filter_rule_info-5.yml b/tests/test_playbooks/fixtures/content_view_filter_rule_info-5.yml index 4133ff3f..a8a62f18 100644 --- a/tests/test_playbooks/fixtures/content_view_filter_rule_info-5.yml +++ b/tests/test_playbooks/fixtures/content_view_filter_rule_info-5.yml @@ -14,14 +14,14 @@ interactions: uri: https://foreman.example.org/api/status response: body: - string: '{"result":"ok","status":200,"version":"3.7.0-rc2","api_version":2}' + string: '{"result":"ok","status":200,"version":"3.12.0-develop","api_version":2}' headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive Content-Length: - - '66' + - '71' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -35,7 +35,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=100 Strict-Transport-Security: @@ -70,8 +70,8 @@ interactions: body: string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": 4294967296,\n \"search\": \"name=\\\"Test Organization\\\"\",\n \"sort\": - {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\":\"Test_Organization\",\"created_at\":\"2023-06-05 - 22:27:50 UTC\",\"updated_at\":\"2023-06-05 22:27:54 UTC\",\"id\":10,\"name\":\"Test + {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\":\"Test_Organization\",\"created_at\":\"2024-07-24 + 12:33:39 UTC\",\"updated_at\":\"2024-07-24 12:33:41 UTC\",\"id\":4,\"name\":\"Test Organization\",\"title\":\"Test Organization\",\"description\":\"A test organization\"}]\n}\n" headers: Cache-Control: @@ -79,7 +79,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '389' + - '388' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -93,7 +93,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=99 Strict-Transport-Security: @@ -123,18 +123,17 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/organizations/10/content_views?search=name%3D%22Test+Content+View%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/organizations/4/content_views?search=name%3D%22Test+Content+View%22&per_page=4294967296 response: body: string: '{"total":2,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Content View\"","sort":{"by":"name","order":"asc"},"results":[{"composite":false,"component_ids":[],"default":false,"version_count":0,"latest_version":null,"latest_version_id":null,"auto_publish":false,"solve_dependencies":false,"import_only":false,"generated_for":"none","related_cv_count":0,"related_composite_cvs":[],"needs_publish":true,"filtered":true,"repository_ids":[27,28,29,30],"id":17,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":10,"organization":{"name":"Test - Organization","label":"Test_Organization","id":10},"created_at":"2023-06-05 - 22:29:16 UTC","updated_at":"2023-06-05 22:29:16 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":27,"name":"Test - Repository","label":"Test_Repository","content_type":"yum"},{"id":28,"name":"Test - Modular Repository","label":"Test_Modular_Repository","content_type":"yum"},{"id":29,"name":"Test - Docker Repository","label":"Test_Docker_Repository","content_type":"docker"},{"id":30,"name":"Test - Debian Repository","label":"Test_Debian_Repository","content_type":"deb"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]}]} + Content View\"","sort":{"by":"name","order":"asc"},"results":[{"composite":false,"component_ids":[],"duplicate_repositories_to_publish":[],"default":false,"version_count":0,"latest_version":null,"latest_version_id":null,"auto_publish":false,"solve_dependencies":false,"import_only":false,"generated_for":"none","related_cv_count":0,"related_composite_cvs":[],"filtered":true,"repository_ids":[5,6,7],"id":5,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":4,"organization":{"name":"Test + Organization","label":"Test_Organization","id":4},"created_at":"2024-07-24 + 12:34:25 UTC","updated_at":"2024-07-24 12:34:25 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":5,"name":"Test + Repository","label":"Test_Repository","content_type":"yum"},{"id":6,"name":"Test + Modular Repository","label":"Test_Modular_Repository","content_type":"yum"},{"id":7,"name":"Test + Docker Repository","label":"Test_Docker_Repository","content_type":"docker"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]}]} ' headers: @@ -143,7 +142,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '1353' + - '1263' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -155,9 +154,9 @@ interactions: Foreman_current_location: - ; ANY Foreman_current_organization: - - 10; Test Organization + - 4; Test Organization Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=98 Strict-Transport-Security: @@ -187,22 +186,21 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/content_views/17/filters?search=name%3D%22Test+Content+View+Filter+-+modulemd%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/content_views/5/filters?search=name%3D%22Test+Content+View+Filter+-+modulemd%22&per_page=4294967296 response: body: string: '{"total":10,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Content View Filter - modulemd\"","sort":{"by":"name","order":"asc"},"results":[{"inclusion":false,"id":53,"name":"Test - Content View Filter - modulemd","description":null,"created_at":"2023-06-05 - 22:29:27 UTC","updated_at":"2023-06-05 22:29:27 UTC","content_view":{"composite":false,"component_ids":[],"default":false,"version_count":0,"latest_version":null,"latest_version_id":null,"auto_publish":false,"solve_dependencies":false,"import_only":false,"generated_for":"none","related_cv_count":0,"related_composite_cvs":[],"needs_publish":true,"filtered":true,"repository_ids":[27,28,29,30],"id":17,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":10,"organization":{"name":"Test - Organization","label":"Test_Organization","id":10},"created_at":"2023-06-05 - 22:29:16 UTC","updated_at":"2023-06-05 22:29:16 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":27,"name":"Test - Repository","label":"Test_Repository","content_type":"yum"},{"id":28,"name":"Test - Modular Repository","label":"Test_Modular_Repository","content_type":"yum"},{"id":29,"name":"Test - Docker Repository","label":"Test_Docker_Repository","content_type":"docker"},{"id":30,"name":"Test - Debian Repository","label":"Test_Debian_Repository","content_type":"deb"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]},"repositories":[],"type":"modulemd","rules":[{"content_view_filter_id":53,"module_stream_id":11,"id":2,"created_at":"2023-06-05 - 22:29:41 UTC","updated_at":"2023-06-05 22:29:41 UTC"},{"content_view_filter_id":53,"module_stream_id":24,"id":3,"created_at":"2023-06-05 - 22:29:45 UTC","updated_at":"2023-06-05 22:29:45 UTC"}]}]} + Content View Filter - modulemd\"","sort":{"by":"name","order":"asc"},"results":[{"inclusion":false,"id":19,"name":"Test + Content View Filter - modulemd","description":null,"created_at":"2024-07-24 + 12:34:30 UTC","updated_at":"2024-07-24 12:34:30 UTC","content_view":{"composite":false,"component_ids":[],"duplicate_repositories_to_publish":[],"default":false,"version_count":0,"latest_version":null,"latest_version_id":null,"auto_publish":false,"solve_dependencies":false,"import_only":false,"generated_for":"none","related_cv_count":0,"related_composite_cvs":[],"filtered":true,"repository_ids":[5,6,7],"id":5,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":4,"organization":{"name":"Test + Organization","label":"Test_Organization","id":4},"created_at":"2024-07-24 + 12:34:25 UTC","updated_at":"2024-07-24 12:34:25 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":5,"name":"Test + Repository","label":"Test_Repository","content_type":"yum"},{"id":6,"name":"Test + Modular Repository","label":"Test_Modular_Repository","content_type":"yum"},{"id":7,"name":"Test + Docker Repository","label":"Test_Docker_Repository","content_type":"docker"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]},"repositories":[],"type":"modulemd","rules":[{"content_view_filter_id":19,"module_stream_id":11,"id":5,"created_at":"2024-07-24 + 12:34:39 UTC","updated_at":"2024-07-24 12:34:39 UTC"},{"content_view_filter_id":19,"module_stream_id":24,"id":6,"created_at":"2024-07-24 + 12:34:41 UTC","updated_at":"2024-07-24 12:34:41 UTC"}]}]} ' headers: @@ -211,7 +209,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '1877' + - '1787' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -225,7 +223,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=97 Strict-Transport-Security: @@ -255,12 +253,12 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/content_view_filters/53/rules?per_page=4294967296 + uri: https://foreman.example.org/katello/api/content_view_filters/19/rules?per_page=4294967296 response: body: - string: '{"total":2,"subtotal":2,"selectable":2,"page":1,"per_page":"4294967296","error":null,"search":null,"sort":{"by":"id","order":"asc"},"results":[{"content_view_filter_id":53,"module_stream_id":11,"id":2,"created_at":"2023-06-05 - 22:29:41 UTC","updated_at":"2023-06-05 22:29:41 UTC"},{"content_view_filter_id":53,"module_stream_id":24,"id":3,"created_at":"2023-06-05 - 22:29:45 UTC","updated_at":"2023-06-05 22:29:45 UTC"}]} + string: '{"total":2,"subtotal":2,"selectable":2,"page":1,"per_page":"4294967296","error":null,"search":null,"sort":{"by":"id","order":"asc"},"results":[{"content_view_filter_id":19,"module_stream_id":11,"id":5,"created_at":"2024-07-24 + 12:34:39 UTC","updated_at":"2024-07-24 12:34:39 UTC"},{"content_view_filter_id":19,"module_stream_id":24,"id":6,"created_at":"2024-07-24 + 12:34:41 UTC","updated_at":"2024-07-24 12:34:41 UTC"}]} ' headers: @@ -283,7 +281,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=96 Strict-Transport-Security: diff --git a/tests/test_playbooks/fixtures/content_view_filter_rule_info-6.yml b/tests/test_playbooks/fixtures/content_view_filter_rule_info-6.yml deleted file mode 100644 index 574f70c3..00000000 --- a/tests/test_playbooks/fixtures/content_view_filter_rule_info-6.yml +++ /dev/null @@ -1,360 +0,0 @@ -interactions: -- request: - body: null - headers: - Accept: - - application/json;version=2 - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - apypie (https://github.com/Apipie/apypie) - method: GET - uri: https://foreman.example.org/api/status - response: - body: - string: '{"result":"ok","status":200,"version":"3.7.0-rc2","api_version":2}' - headers: - Cache-Control: - - max-age=0, private, must-revalidate - Connection: - - Keep-Alive - Content-Length: - - '66' - Content-Security-Policy: - - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; - style-src ''unsafe-inline'' ''self''' - Content-Type: - - application/json; charset=utf-8 - Foreman_api_version: - - '2' - Foreman_current_location: - - ; ANY - Foreman_current_organization: - - ; ANY - Foreman_version: - - 3.7.0-rc2 - Keep-Alive: - - timeout=15, max=100 - Strict-Transport-Security: - - max-age=631139040; includeSubdomains - X-Content-Type-Options: - - nosniff - X-Download-Options: - - noopen - X-Frame-Options: - - sameorigin - X-Permitted-Cross-Domain-Policies: - - none - X-XSS-Protection: - - 1; mode=block - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json;version=2 - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - apypie (https://github.com/Apipie/apypie) - method: GET - uri: https://foreman.example.org/katello/api/organizations?search=name%3D%22Test+Organization%22&per_page=4294967296 - response: - body: - string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": - 4294967296,\n \"search\": \"name=\\\"Test Organization\\\"\",\n \"sort\": - {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\":\"Test_Organization\",\"created_at\":\"2023-06-05 - 22:27:50 UTC\",\"updated_at\":\"2023-06-05 22:27:54 UTC\",\"id\":10,\"name\":\"Test - Organization\",\"title\":\"Test Organization\",\"description\":\"A test organization\"}]\n}\n" - headers: - Cache-Control: - - max-age=0, private, must-revalidate - Connection: - - Keep-Alive - Content-Length: - - '389' - Content-Security-Policy: - - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; - style-src ''unsafe-inline'' ''self''' - Content-Type: - - application/json; charset=utf-8 - Foreman_api_version: - - '2' - Foreman_current_location: - - ; ANY - Foreman_current_organization: - - ; ANY - Foreman_version: - - 3.7.0-rc2 - Keep-Alive: - - timeout=15, max=99 - Strict-Transport-Security: - - max-age=631139040; includeSubdomains - X-Content-Type-Options: - - nosniff - X-Download-Options: - - noopen - X-Frame-Options: - - sameorigin - X-Permitted-Cross-Domain-Policies: - - none - X-XSS-Protection: - - 1; mode=block - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json;version=2 - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - apypie (https://github.com/Apipie/apypie) - method: GET - uri: https://foreman.example.org/katello/api/organizations/10/content_views?search=name%3D%22Test+Content+View%22&per_page=4294967296 - response: - body: - string: '{"total":2,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Content View\"","sort":{"by":"name","order":"asc"},"results":[{"composite":false,"component_ids":[],"default":false,"version_count":0,"latest_version":null,"latest_version_id":null,"auto_publish":false,"solve_dependencies":false,"import_only":false,"generated_for":"none","related_cv_count":0,"related_composite_cvs":[],"needs_publish":true,"filtered":true,"repository_ids":[27,28,29,30],"id":17,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":10,"organization":{"name":"Test - Organization","label":"Test_Organization","id":10},"created_at":"2023-06-05 - 22:29:16 UTC","updated_at":"2023-06-05 22:29:16 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":27,"name":"Test - Repository","label":"Test_Repository","content_type":"yum"},{"id":28,"name":"Test - Modular Repository","label":"Test_Modular_Repository","content_type":"yum"},{"id":29,"name":"Test - Docker Repository","label":"Test_Docker_Repository","content_type":"docker"},{"id":30,"name":"Test - Debian Repository","label":"Test_Debian_Repository","content_type":"deb"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]}]} - - ' - headers: - Cache-Control: - - max-age=0, private, must-revalidate - Connection: - - Keep-Alive - Content-Length: - - '1353' - Content-Security-Policy: - - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; - style-src ''unsafe-inline'' ''self''' - Content-Type: - - application/json; charset=utf-8 - Foreman_api_version: - - '2' - Foreman_current_location: - - ; ANY - Foreman_current_organization: - - 10; Test Organization - Foreman_version: - - 3.7.0-rc2 - Keep-Alive: - - timeout=15, max=98 - Strict-Transport-Security: - - max-age=631139040; includeSubdomains - X-Content-Type-Options: - - nosniff - X-Download-Options: - - noopen - X-Frame-Options: - - sameorigin - X-Permitted-Cross-Domain-Policies: - - none - X-XSS-Protection: - - 1; mode=block - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json;version=2 - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - apypie (https://github.com/Apipie/apypie) - method: GET - uri: https://foreman.example.org/katello/api/content_views/17/filters?search=name%3D%22Test+Content+View+Filter+-+deb%22&per_page=4294967296 - response: - body: - string: '{"total":10,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Content View Filter - deb\"","sort":{"by":"name","order":"asc"},"results":[{"inclusion":false,"id":54,"name":"Test - Content View Filter - deb","description":null,"created_at":"2023-06-05 22:29:28 - UTC","updated_at":"2023-06-05 22:29:28 UTC","content_view":{"composite":false,"component_ids":[],"default":false,"version_count":0,"latest_version":null,"latest_version_id":null,"auto_publish":false,"solve_dependencies":false,"import_only":false,"generated_for":"none","related_cv_count":0,"related_composite_cvs":[],"needs_publish":true,"filtered":true,"repository_ids":[27,28,29,30],"id":17,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":10,"organization":{"name":"Test - Organization","label":"Test_Organization","id":10},"created_at":"2023-06-05 - 22:29:16 UTC","updated_at":"2023-06-05 22:29:16 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":27,"name":"Test - Repository","label":"Test_Repository","content_type":"yum"},{"id":28,"name":"Test - Modular Repository","label":"Test_Modular_Repository","content_type":"yum"},{"id":29,"name":"Test - Docker Repository","label":"Test_Docker_Repository","content_type":"docker"},{"id":30,"name":"Test - Debian Repository","label":"Test_Debian_Repository","content_type":"deb"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]},"repositories":[],"type":"deb","rules":[{"content_view_filter_id":54,"id":1,"name":"bear","created_at":"2023-06-05 - 22:29:46 UTC","updated_at":"2023-06-05 22:29:46 UTC"},{"content_view_filter_id":54,"id":2,"name":"camel","created_at":"2023-06-05 - 22:29:46 UTC","updated_at":"2023-06-05 22:29:46 UTC"}]}]} - - ' - headers: - Cache-Control: - - max-age=0, private, must-revalidate - Connection: - - Keep-Alive - Content-Length: - - '1847' - Content-Security-Policy: - - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; - style-src ''unsafe-inline'' ''self''' - Content-Type: - - application/json; charset=utf-8 - Foreman_api_version: - - '2' - Foreman_current_location: - - ; ANY - Foreman_current_organization: - - ; ANY - Foreman_version: - - 3.7.0-rc2 - Keep-Alive: - - timeout=15, max=97 - Strict-Transport-Security: - - max-age=631139040; includeSubdomains - X-Content-Type-Options: - - nosniff - X-Download-Options: - - noopen - X-Frame-Options: - - sameorigin - X-Permitted-Cross-Domain-Policies: - - none - X-XSS-Protection: - - 1; mode=block - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json;version=2 - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - apypie (https://github.com/Apipie/apypie) - method: GET - uri: https://foreman.example.org/katello/api/content_view_filters/54/rules?search=name%3D%22bear%22&per_page=4294967296 - response: - body: - string: '{"total":2,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"bear\"","sort":{"by":"id","order":"asc"},"results":[{"content_view_filter_id":54,"id":1,"name":"bear","created_at":"2023-06-05 - 22:29:46 UTC","updated_at":"2023-06-05 22:29:46 UTC"}]} - - ' - headers: - Cache-Control: - - max-age=0, private, must-revalidate - Connection: - - Keep-Alive - Content-Length: - - '285' - Content-Security-Policy: - - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; - style-src ''unsafe-inline'' ''self''' - Content-Type: - - application/json; charset=utf-8 - Foreman_api_version: - - '2' - Foreman_current_location: - - ; ANY - Foreman_current_organization: - - ; ANY - Foreman_version: - - 3.7.0-rc2 - Keep-Alive: - - timeout=15, max=96 - Strict-Transport-Security: - - max-age=631139040; includeSubdomains - X-Content-Type-Options: - - nosniff - X-Download-Options: - - noopen - X-Frame-Options: - - sameorigin - X-Permitted-Cross-Domain-Policies: - - none - X-XSS-Protection: - - 1; mode=block - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json;version=2 - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - apypie (https://github.com/Apipie/apypie) - method: GET - uri: https://foreman.example.org/katello/api/content_view_filters/54/rules/1 - response: - body: - string: ' {"content_view_filter_id":54,"id":1,"name":"bear","created_at":"2023-06-05 - 22:29:46 UTC","updated_at":"2023-06-05 22:29:46 UTC"} - - ' - headers: - Cache-Control: - - max-age=0, private, must-revalidate - Connection: - - Keep-Alive - Content-Length: - - '131' - Content-Security-Policy: - - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; - style-src ''unsafe-inline'' ''self''' - Content-Type: - - application/json; charset=utf-8 - Foreman_api_version: - - '2' - Foreman_current_location: - - ; ANY - Foreman_current_organization: - - ; ANY - Foreman_version: - - 3.7.0-rc2 - Keep-Alive: - - timeout=15, max=95 - Strict-Transport-Security: - - max-age=631139040; includeSubdomains - X-Content-Type-Options: - - nosniff - X-Download-Options: - - noopen - X-Frame-Options: - - sameorigin - X-Permitted-Cross-Domain-Policies: - - none - X-XSS-Protection: - - 1; mode=block - status: - code: 200 - message: OK -version: 1 From 7d4a682108b310555f1f621007d2c32d50df74b5 Mon Sep 17 00:00:00 2001 From: Evgeni Golov Date: Wed, 24 Jul 2024 14:49:00 +0200 Subject: [PATCH 11/36] record cv_filter_rule_info Debian --- .../content_view_filter_rule_info_deb-0.yml | 354 ++++++++++++++++++ 1 file changed, 354 insertions(+) create mode 100644 tests/test_playbooks/fixtures/content_view_filter_rule_info_deb-0.yml diff --git a/tests/test_playbooks/fixtures/content_view_filter_rule_info_deb-0.yml b/tests/test_playbooks/fixtures/content_view_filter_rule_info_deb-0.yml new file mode 100644 index 00000000..0c980090 --- /dev/null +++ b/tests/test_playbooks/fixtures/content_view_filter_rule_info_deb-0.yml @@ -0,0 +1,354 @@ +interactions: +- request: + body: null + headers: + Accept: + - application/json;version=2 + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - apypie (https://github.com/Apipie/apypie) + method: GET + uri: https://foreman.example.org/api/status + response: + body: + string: '{"result":"ok","status":200,"version":"3.12.0-develop","api_version":2}' + headers: + Cache-Control: + - max-age=0, private, must-revalidate + Connection: + - Keep-Alive + Content-Length: + - '71' + Content-Security-Policy: + - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: + - application/json; charset=utf-8 + Foreman_api_version: + - '2' + Foreman_current_location: + - ; ANY + Foreman_current_organization: + - ; ANY + Foreman_version: + - 3.12.0-develop + Keep-Alive: + - timeout=15, max=100 + Strict-Transport-Security: + - max-age=631139040; includeSubdomains + X-Content-Type-Options: + - nosniff + X-Download-Options: + - noopen + X-Frame-Options: + - sameorigin + X-Permitted-Cross-Domain-Policies: + - none + X-XSS-Protection: + - 1; mode=block + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json;version=2 + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - apypie (https://github.com/Apipie/apypie) + method: GET + uri: https://foreman.example.org/katello/api/organizations?search=name%3D%22Test+Organization%22&per_page=4294967296 + response: + body: + string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": + 4294967296,\n \"search\": \"name=\\\"Test Organization\\\"\",\n \"sort\": + {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\":\"Test_Organization\",\"created_at\":\"2024-07-24 + 12:37:06 UTC\",\"updated_at\":\"2024-07-24 12:37:09 UTC\",\"id\":5,\"name\":\"Test + Organization\",\"title\":\"Test Organization\",\"description\":\"A test organization\"}]\n}\n" + headers: + Cache-Control: + - max-age=0, private, must-revalidate + Connection: + - Keep-Alive + Content-Length: + - '388' + Content-Security-Policy: + - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: + - application/json; charset=utf-8 + Foreman_api_version: + - '2' + Foreman_current_location: + - ; ANY + Foreman_current_organization: + - ; ANY + Foreman_version: + - 3.12.0-develop + Keep-Alive: + - timeout=15, max=99 + Strict-Transport-Security: + - max-age=631139040; includeSubdomains + X-Content-Type-Options: + - nosniff + X-Download-Options: + - noopen + X-Frame-Options: + - sameorigin + X-Permitted-Cross-Domain-Policies: + - none + X-XSS-Protection: + - 1; mode=block + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json;version=2 + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - apypie (https://github.com/Apipie/apypie) + method: GET + uri: https://foreman.example.org/katello/api/organizations/5/content_views?search=name%3D%22Test+Content+View%22&per_page=4294967296 + response: + body: + string: '{"total":2,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test + Content View\"","sort":{"by":"name","order":"asc"},"results":[{"composite":false,"component_ids":[],"duplicate_repositories_to_publish":[],"default":false,"version_count":0,"latest_version":null,"latest_version_id":null,"auto_publish":false,"solve_dependencies":false,"import_only":false,"generated_for":"none","related_cv_count":0,"related_composite_cvs":[],"filtered":true,"repository_ids":[8],"id":7,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":5,"organization":{"name":"Test + Organization","label":"Test_Organization","id":5},"created_at":"2024-07-24 + 12:42:49 UTC","updated_at":"2024-07-24 12:42:49 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":8,"name":"Test + Debian Repository","label":"Test_Debian_Repository","content_type":"deb"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]}]} + + ' + headers: + Cache-Control: + - max-age=0, private, must-revalidate + Connection: + - Keep-Alive + Content-Length: + - '1078' + Content-Security-Policy: + - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: + - application/json; charset=utf-8 + Foreman_api_version: + - '2' + Foreman_current_location: + - ; ANY + Foreman_current_organization: + - 5; Test Organization + Foreman_version: + - 3.12.0-develop + Keep-Alive: + - timeout=15, max=98 + Strict-Transport-Security: + - max-age=631139040; includeSubdomains + X-Content-Type-Options: + - nosniff + X-Download-Options: + - noopen + X-Frame-Options: + - sameorigin + X-Permitted-Cross-Domain-Policies: + - none + X-XSS-Protection: + - 1; mode=block + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json;version=2 + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - apypie (https://github.com/Apipie/apypie) + method: GET + uri: https://foreman.example.org/katello/api/content_views/7/filters?search=name%3D%22Test+Content+View+Filter+-+deb%22&per_page=4294967296 + response: + body: + string: '{"total":10,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test + Content View Filter - deb\"","sort":{"by":"name","order":"asc"},"results":[{"inclusion":false,"id":40,"name":"Test + Content View Filter - deb","description":null,"created_at":"2024-07-24 12:48:10 + UTC","updated_at":"2024-07-24 12:48:10 UTC","content_view":{"composite":false,"component_ids":[],"duplicate_repositories_to_publish":[],"default":false,"version_count":0,"latest_version":null,"latest_version_id":null,"auto_publish":false,"solve_dependencies":false,"import_only":false,"generated_for":"none","related_cv_count":0,"related_composite_cvs":[],"filtered":true,"repository_ids":[8],"id":7,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":5,"organization":{"name":"Test + Organization","label":"Test_Organization","id":5},"created_at":"2024-07-24 + 12:42:49 UTC","updated_at":"2024-07-24 12:42:49 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":8,"name":"Test + Debian Repository","label":"Test_Debian_Repository","content_type":"deb"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]},"repositories":[],"type":"deb","rules":[{"content_view_filter_id":40,"id":5,"name":"bear","created_at":"2024-07-24 + 12:48:11 UTC","updated_at":"2024-07-24 12:48:11 UTC"},{"content_view_filter_id":40,"id":6,"name":"camel","created_at":"2024-07-24 + 12:48:11 UTC","updated_at":"2024-07-24 12:48:11 UTC"}]}]} + + ' + headers: + Cache-Control: + - max-age=0, private, must-revalidate + Connection: + - Keep-Alive + Content-Length: + - '1572' + Content-Security-Policy: + - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: + - application/json; charset=utf-8 + Foreman_api_version: + - '2' + Foreman_current_location: + - ; ANY + Foreman_current_organization: + - ; ANY + Foreman_version: + - 3.12.0-develop + Keep-Alive: + - timeout=15, max=97 + Strict-Transport-Security: + - max-age=631139040; includeSubdomains + X-Content-Type-Options: + - nosniff + X-Download-Options: + - noopen + X-Frame-Options: + - sameorigin + X-Permitted-Cross-Domain-Policies: + - none + X-XSS-Protection: + - 1; mode=block + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json;version=2 + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - apypie (https://github.com/Apipie/apypie) + method: GET + uri: https://foreman.example.org/katello/api/content_view_filters/40/rules?search=name%3D%22bear%22&per_page=4294967296 + response: + body: + string: '{"total":2,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"bear\"","sort":{"by":"id","order":"asc"},"results":[{"content_view_filter_id":40,"id":5,"name":"bear","created_at":"2024-07-24 + 12:48:11 UTC","updated_at":"2024-07-24 12:48:11 UTC"}]} + + ' + headers: + Cache-Control: + - max-age=0, private, must-revalidate + Connection: + - Keep-Alive + Content-Length: + - '285' + Content-Security-Policy: + - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: + - application/json; charset=utf-8 + Foreman_api_version: + - '2' + Foreman_current_location: + - ; ANY + Foreman_current_organization: + - ; ANY + Foreman_version: + - 3.12.0-develop + Keep-Alive: + - timeout=15, max=96 + Strict-Transport-Security: + - max-age=631139040; includeSubdomains + X-Content-Type-Options: + - nosniff + X-Download-Options: + - noopen + X-Frame-Options: + - sameorigin + X-Permitted-Cross-Domain-Policies: + - none + X-XSS-Protection: + - 1; mode=block + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json;version=2 + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - apypie (https://github.com/Apipie/apypie) + method: GET + uri: https://foreman.example.org/katello/api/content_view_filters/40/rules/5 + response: + body: + string: ' {"content_view_filter_id":40,"id":5,"name":"bear","created_at":"2024-07-24 + 12:48:11 UTC","updated_at":"2024-07-24 12:48:11 UTC"} + + ' + headers: + Cache-Control: + - max-age=0, private, must-revalidate + Connection: + - Keep-Alive + Content-Length: + - '131' + Content-Security-Policy: + - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: + - application/json; charset=utf-8 + Foreman_api_version: + - '2' + Foreman_current_location: + - ; ANY + Foreman_current_organization: + - ; ANY + Foreman_version: + - 3.12.0-develop + Keep-Alive: + - timeout=15, max=95 + Strict-Transport-Security: + - max-age=631139040; includeSubdomains + X-Content-Type-Options: + - nosniff + X-Download-Options: + - noopen + X-Frame-Options: + - sameorigin + X-Permitted-Cross-Domain-Policies: + - none + X-XSS-Protection: + - 1; mode=block + status: + code: 200 + message: OK +version: 1 From 17e43a6d7161a30fe28b94ff4b6c89c34b75641f Mon Sep 17 00:00:00 2001 From: Evgeni Golov Date: Wed, 24 Jul 2024 16:49:03 +0200 Subject: [PATCH 12/36] set repos to on_demand for cv_filter_rule tests metadata is sufficient here too --- tests/test_playbooks/content_view_filter_rule.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tests/test_playbooks/content_view_filter_rule.yml b/tests/test_playbooks/content_view_filter_rule.yml index 59611153..f803e502 100644 --- a/tests/test_playbooks/content_view_filter_rule.yml +++ b/tests/test_playbooks/content_view_filter_rule.yml @@ -21,12 +21,14 @@ ansible.builtin.include_tasks: tasks/repository.yml vars: repository_state: present + repository_download_policy: "on_demand" - name: "Create Addititional Repository" ansible.builtin.include_tasks: tasks/repository.yml vars: repository_state: present repository_url: "https://repos.fedorapeople.org/pulp/pulp/demo_repos/zoo/" + repository_download_policy: "on_demand" - name: "Create Module repository" ansible.builtin.include_tasks: tasks/repository.yml @@ -35,6 +37,7 @@ repository_name: "Test Modular Repository" repository_content_type: yum repository_url: "https://dl.fedoraproject.org/pub/epel/8/Modular/x86_64" + repository_download_policy: "on_demand" - name: "Create Container repository" ansible.builtin.include_tasks: tasks/repository.yml @@ -44,6 +47,7 @@ repository_content_type: docker repository_url: https://registry.access.redhat.com repository_docker_upstream_name: ubi8 + repository_download_policy: "on_demand" - name: "Create Deb Repository" ansible.builtin.include_tasks: tasks/repository.yml @@ -55,6 +59,7 @@ repository_deb_releases: buster repository_deb_components: contrib repository_deb_architectures: amd64 + repository_download_policy: "on_demand" - name: "Sync content" ansible.builtin.include_tasks: tasks/katello_sync.yml From b0077bb44711b19bd6d76a0e55ac8fb4e6bca895 Mon Sep 17 00:00:00 2001 From: Evgeni Golov Date: Wed, 24 Jul 2024 16:49:22 +0200 Subject: [PATCH 13/36] do not expect a specific time to sync in cv_filter_rule tests --- tests/test_playbooks/content_view_filter_rule.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tests/test_playbooks/content_view_filter_rule.yml b/tests/test_playbooks/content_view_filter_rule.yml index f803e502..add02cc5 100644 --- a/tests/test_playbooks/content_view_filter_rule.yml +++ b/tests/test_playbooks/content_view_filter_rule.yml @@ -63,21 +63,26 @@ - name: "Sync content" ansible.builtin.include_tasks: tasks/katello_sync.yml + vars: + expected_time: false - name: "Sync content" ansible.builtin.include_tasks: tasks/katello_sync.yml vars: repository: Test Docker Repository + expected_time: false - name: "Sync content" ansible.builtin.include_tasks: tasks/katello_sync.yml vars: repository: Test Modular Repository + expected_time: false - name: "Sync content" ansible.builtin.include_tasks: tasks/katello_sync.yml vars: repository: Test Debian Repository + expected_time: false - name: "Create Content View" ansible.builtin.include_tasks: tasks/content_view.yml From fa2581e996dccaf99e2de871ce3cea88afcf76c7 Mon Sep 17 00:00:00 2001 From: Evgeni Golov Date: Wed, 24 Jul 2024 16:53:17 +0200 Subject: [PATCH 14/36] Split out Debian tests for content_view_filter_rule --- .../apidoc/content_view_filter_rule_deb.json | 1 + .../content_view_filter_rule.yml | 23 ----- .../content_view_filter_rule_deb.yml | 87 +++++++++++++++++++ .../content_view_filter_rule_cleanup.yml | 59 ------------- .../tasks/content_view_filter_rule_deb.yml | 58 +++++++++++++ 5 files changed, 146 insertions(+), 82 deletions(-) create mode 120000 tests/fixtures/apidoc/content_view_filter_rule_deb.json create mode 100644 tests/test_playbooks/content_view_filter_rule_deb.yml diff --git a/tests/fixtures/apidoc/content_view_filter_rule_deb.json b/tests/fixtures/apidoc/content_view_filter_rule_deb.json new file mode 120000 index 00000000..8e89899a --- /dev/null +++ b/tests/fixtures/apidoc/content_view_filter_rule_deb.json @@ -0,0 +1 @@ +katello.json \ No newline at end of file diff --git a/tests/test_playbooks/content_view_filter_rule.yml b/tests/test_playbooks/content_view_filter_rule.yml index add02cc5..3b13b567 100644 --- a/tests/test_playbooks/content_view_filter_rule.yml +++ b/tests/test_playbooks/content_view_filter_rule.yml @@ -49,18 +49,6 @@ repository_docker_upstream_name: ubi8 repository_download_policy: "on_demand" - - name: "Create Deb Repository" - ansible.builtin.include_tasks: tasks/repository.yml - vars: - repository_state: present - repository_name: Test Debian Repository - repository_content_type: deb - repository_url: https://ftp.debian.org/debian - repository_deb_releases: buster - repository_deb_components: contrib - repository_deb_architectures: amd64 - repository_download_policy: "on_demand" - - name: "Sync content" ansible.builtin.include_tasks: tasks/katello_sync.yml vars: @@ -78,12 +66,6 @@ repository: Test Modular Repository expected_time: false - - name: "Sync content" - ansible.builtin.include_tasks: tasks/katello_sync.yml - vars: - repository: Test Debian Repository - expected_time: false - - name: "Create Content View" ansible.builtin.include_tasks: tasks/content_view.yml vars: @@ -94,8 +76,6 @@ product: "Test Product" - name: "Test Modular Repository" product: "Test Product" - - name: "Test Debian Repository" - product: "Test Product" - name: "Create content view filters" ansible.builtin.include_tasks: tasks/content_view_filter.yml @@ -136,9 +116,6 @@ vars: expected_change: true - - name: "Create Content View Filter Rule for deb packages" - ansible.builtin.include_tasks: tasks/content_view_filter_rule_deb.yml - - name: "Cleanup Content View Filter Rules" ansible.builtin.include_tasks: tasks/content_view_filter_rule_cleanup.yml vars: diff --git a/tests/test_playbooks/content_view_filter_rule_deb.yml b/tests/test_playbooks/content_view_filter_rule_deb.yml new file mode 100644 index 00000000..8303c25b --- /dev/null +++ b/tests/test_playbooks/content_view_filter_rule_deb.yml @@ -0,0 +1,87 @@ +--- +- name: "Create test dependencies" + hosts: localhost + collections: + - theforeman.foreman + gather_facts: false + vars_files: + - vars/server.yml + tasks: + - name: "Create Test Organization" + ansible.builtin.include_tasks: tasks/organization.yml + vars: + organization_state: present + + - name: "Create Test Product" + ansible.builtin.include_tasks: tasks/product.yml + vars: + product_state: present + + - name: "Create Deb Repository" + ansible.builtin.include_tasks: tasks/repository.yml + vars: + repository_state: present + repository_name: Test Debian Repository + repository_content_type: deb + repository_url: https://ftp.debian.org/debian + repository_deb_releases: buster + repository_deb_components: contrib + repository_deb_architectures: amd64 + repository_download_policy: "on_demand" + + - name: "Sync content" + ansible.builtin.include_tasks: tasks/katello_sync.yml + vars: + repository: Test Debian Repository + expected_time: false + + - name: "Create Content View" + ansible.builtin.include_tasks: tasks/content_view.yml + vars: + repositories: + - name: "Test Debian Repository" + product: "Test Product" + + - name: "Create content view filters" + ansible.builtin.include_tasks: tasks/content_view_filter.yml + +- name: "Test content_view_filter_rule" + hosts: tests + collections: + - theforeman.foreman + gather_facts: false + vars_files: + - vars/server.yml + tasks: + - name: "Create Content View Filter Rule for deb packages" + ansible.builtin.include_tasks: tasks/content_view_filter_rule_deb.yml + +- name: "Clean up test dependencies" + hosts: localhost + collections: + - theforeman.foreman + gather_facts: false + vars_files: + - vars/server.yml + tasks: + - name: "Clean up repositories" + ansible.builtin.include_tasks: tasks/repository.yml + vars: + repository_name: Test Docker Repository + repository_state: absent + + - name: "Clean up repositories" + ansible.builtin.include_tasks: tasks/repository.yml + vars: + repository_state: absent + + - name: "Clean up products" + ansible.builtin.include_tasks: tasks/product.yml + vars: + product_state: absent + + - name: "Clean up Organizations" + ansible.builtin.include_tasks: tasks/organization.yml + vars: + organization_state: absent +... diff --git a/tests/test_playbooks/tasks/content_view_filter_rule_cleanup.yml b/tests/test_playbooks/tasks/content_view_filter_rule_cleanup.yml index 22f9cd23..cf2296ba 100644 --- a/tests/test_playbooks/tasks/content_view_filter_rule_cleanup.yml +++ b/tests/test_playbooks/tasks/content_view_filter_rule_cleanup.yml @@ -344,62 +344,3 @@ when: expected_change is defined vars: rule_state: absent - -- name: "Delete Content View Filter Rule for deb package 1" - vars: - content_view_filter_name: "Test Content View Filter - deb" - content_view_name: "Test Content View" - organization_name: "Test Organization" - package_name: "bear" - rule_state: absent - content_view_filter_rule: - username: "{{ foreman_username }}" - password: "{{ foreman_password }}" - server_url: "{{ foreman_server_url }}" - validate_certs: "{{ foreman_validate_certs }}" - organization: "{{ organization_name }}" - content_view: "{{ content_view_name }}" - content_view_filter: "{{ content_view_filter_name }}" - name: "{{ package_name }}" - state: "{{ rule_state }}" - register: result - - -- name: "Assert Result" - ansible.builtin.assert: - fail_msg: "Ensuring content view filter rule is {{ rule_state }} failed! (expected_change: {{ expected_change | default('unknown') }})" - that: - - result.changed == expected_change - when: expected_change is defined - vars: - rule_state: absent - - -- name: "Delete Content View Filter Rule for deb package 2" - vars: - content_view_filter_name: "Test Content View Filter - deb" - content_view_name: "Test Content View" - organization_name: "Test Organization" - package_name: "camel" - rule_state: absent - content_view_filter_rule: - username: "{{ foreman_username }}" - password: "{{ foreman_password }}" - server_url: "{{ foreman_server_url }}" - validate_certs: "{{ foreman_validate_certs }}" - organization: "{{ organization_name }}" - content_view: "{{ content_view_name }}" - content_view_filter: "{{ content_view_filter_name }}" - name: "{{ package_name }}" - state: "{{ rule_state }}" - register: result - - -- name: "Assert Result" - ansible.builtin.assert: - fail_msg: "Ensuring content view filter rule is {{ rule_state }} failed! (expected_change: {{ expected_change | default('unknown') }})" - that: - - result.changed == expected_change - when: expected_change is defined - vars: - rule_state: absent diff --git a/tests/test_playbooks/tasks/content_view_filter_rule_deb.yml b/tests/test_playbooks/tasks/content_view_filter_rule_deb.yml index 2ffe446d..4ddbba33 100644 --- a/tests/test_playbooks/tasks/content_view_filter_rule_deb.yml +++ b/tests/test_playbooks/tasks/content_view_filter_rule_deb.yml @@ -89,3 +89,61 @@ vars: rule_state: present expected_change: false + +- name: "Delete Content View Filter Rule for deb package 1" + vars: + content_view_filter_name: "Test Content View Filter - deb" + content_view_name: "Test Content View" + organization_name: "Test Organization" + package_name: "bear" + rule_state: absent + content_view_filter_rule: + username: "{{ foreman_username }}" + password: "{{ foreman_password }}" + server_url: "{{ foreman_server_url }}" + validate_certs: "{{ foreman_validate_certs }}" + organization: "{{ organization_name }}" + content_view: "{{ content_view_name }}" + content_view_filter: "{{ content_view_filter_name }}" + name: "{{ package_name }}" + state: "{{ rule_state }}" + register: result + + +- name: "Assert Result" + ansible.builtin.assert: + fail_msg: "Ensuring content view filter rule is {{ rule_state }} failed! (expected_change: {{ expected_change | default('unknown') }})" + that: + - result.changed == expected_change + when: expected_change is defined + vars: + rule_state: absent + +- name: "Delete Content View Filter Rule for deb package 2" + vars: + content_view_filter_name: "Test Content View Filter - deb" + content_view_name: "Test Content View" + organization_name: "Test Organization" + package_name: "camel" + rule_state: absent + content_view_filter_rule: + username: "{{ foreman_username }}" + password: "{{ foreman_password }}" + server_url: "{{ foreman_server_url }}" + validate_certs: "{{ foreman_validate_certs }}" + organization: "{{ organization_name }}" + content_view: "{{ content_view_name }}" + content_view_filter: "{{ content_view_filter_name }}" + name: "{{ package_name }}" + state: "{{ rule_state }}" + register: result + + +- name: "Assert Result" + ansible.builtin.assert: + fail_msg: "Ensuring content view filter rule is {{ rule_state }} failed! (expected_change: {{ expected_change | default('unknown') }})" + that: + - result.changed == expected_change + when: expected_change is defined + vars: + rule_state: absent From 687d146583f99596a9b47686eef4dd25f49f96ee Mon Sep 17 00:00:00 2001 From: Evgeni Golov Date: Wed, 24 Jul 2024 16:58:18 +0200 Subject: [PATCH 15/36] re-record cv_filter_rule --- .../fixtures/content_view_filter_rule-0.yml | 74 ++- .../fixtures/content_view_filter_rule-1.yml | 76 ++-- .../fixtures/content_view_filter_rule-10.yml | 76 ++-- .../fixtures/content_view_filter_rule-11.yml | 88 ++-- .../fixtures/content_view_filter_rule-12.yml | 90 ++-- .../fixtures/content_view_filter_rule-13.yml | 102 +++-- .../fixtures/content_view_filter_rule-14.yml | 92 ++-- .../fixtures/content_view_filter_rule-15.yml | 70 ++- .../fixtures/content_view_filter_rule-16.yml | 90 ++-- .../fixtures/content_view_filter_rule-17.yml | 93 ++-- .../fixtures/content_view_filter_rule-18.yml | 93 ++-- .../fixtures/content_view_filter_rule-19.yml | 145 ++++-- .../fixtures/content_view_filter_rule-2.yml | 82 ++-- .../fixtures/content_view_filter_rule-20.yml | 144 ++++-- .../fixtures/content_view_filter_rule-21.yml | 85 ++-- .../fixtures/content_view_filter_rule-22.yml | 144 ++---- .../fixtures/content_view_filter_rule-23.yml | 141 ++---- .../fixtures/content_view_filter_rule-24.yml | 86 ++-- .../fixtures/content_view_filter_rule-25.yml | 84 ++-- .../fixtures/content_view_filter_rule-26.yml | 144 ++++-- .../fixtures/content_view_filter_rule-27.yml | 148 ++++-- .../fixtures/content_view_filter_rule-28.yml | 361 --------------- .../fixtures/content_view_filter_rule-29.yml | 419 ----------------- .../fixtures/content_view_filter_rule-3.yml | 92 ++-- .../fixtures/content_view_filter_rule-30.yml | 422 ------------------ .../fixtures/content_view_filter_rule-31.yml | 362 --------------- .../fixtures/content_view_filter_rule-32.yml | 361 --------------- .../fixtures/content_view_filter_rule-4.yml | 94 ++-- .../fixtures/content_view_filter_rule-5.yml | 74 ++- .../fixtures/content_view_filter_rule-6.yml | 76 ++-- .../fixtures/content_view_filter_rule-7.yml | 74 ++- .../fixtures/content_view_filter_rule-8.yml | 88 ++-- .../fixtures/content_view_filter_rule-9.yml | 74 ++- 33 files changed, 1391 insertions(+), 3253 deletions(-) delete mode 100644 tests/test_playbooks/fixtures/content_view_filter_rule-28.yml delete mode 100644 tests/test_playbooks/fixtures/content_view_filter_rule-29.yml delete mode 100644 tests/test_playbooks/fixtures/content_view_filter_rule-30.yml delete mode 100644 tests/test_playbooks/fixtures/content_view_filter_rule-31.yml delete mode 100644 tests/test_playbooks/fixtures/content_view_filter_rule-32.yml diff --git a/tests/test_playbooks/fixtures/content_view_filter_rule-0.yml b/tests/test_playbooks/fixtures/content_view_filter_rule-0.yml index 417aa351..f8598348 100644 --- a/tests/test_playbooks/fixtures/content_view_filter_rule-0.yml +++ b/tests/test_playbooks/fixtures/content_view_filter_rule-0.yml @@ -14,14 +14,14 @@ interactions: uri: https://foreman.example.org/api/status response: body: - string: '{"result":"ok","status":200,"version":"3.7.0-rc2","api_version":2}' + string: '{"result":"ok","status":200,"version":"3.12.0-develop","api_version":2}' headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive Content-Length: - - '66' + - '71' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -35,7 +35,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=100 Strict-Transport-Security: @@ -70,8 +70,8 @@ interactions: body: string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": 4294967296,\n \"search\": \"name=\\\"Test Organization\\\"\",\n \"sort\": - {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\":\"Test_Organization\",\"created_at\":\"2023-06-05 - 22:32:12 UTC\",\"updated_at\":\"2023-06-05 22:32:15 UTC\",\"id\":11,\"name\":\"Test + {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\":\"Test_Organization\",\"created_at\":\"2024-07-24 + 14:53:36 UTC\",\"updated_at\":\"2024-07-24 14:53:38 UTC\",\"id\":7,\"name\":\"Test Organization\",\"title\":\"Test Organization\",\"description\":\"A test organization\"}]\n}\n" headers: Cache-Control: @@ -79,7 +79,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '389' + - '388' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -93,7 +93,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=99 Strict-Transport-Security: @@ -123,18 +123,17 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/organizations/11/content_views?search=name%3D%22Test+Content+View%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/organizations/7/content_views?search=name%3D%22Test+Content+View%22&per_page=4294967296 response: body: string: '{"total":2,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Content View\"","sort":{"by":"name","order":"asc"},"results":[{"composite":false,"component_ids":[],"default":false,"version_count":0,"latest_version":null,"latest_version_id":null,"auto_publish":false,"solve_dependencies":false,"import_only":false,"generated_for":"none","related_cv_count":0,"related_composite_cvs":[],"needs_publish":true,"filtered":true,"repository_ids":[31,32,33,34],"id":19,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":11,"organization":{"name":"Test - Organization","label":"Test_Organization","id":11},"created_at":"2023-06-05 - 22:34:51 UTC","updated_at":"2023-06-05 22:34:51 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":31,"name":"Test - Repository","label":"Test_Repository","content_type":"yum"},{"id":32,"name":"Test - Modular Repository","label":"Test_Modular_Repository","content_type":"yum"},{"id":33,"name":"Test - Docker Repository","label":"Test_Docker_Repository","content_type":"docker"},{"id":34,"name":"Test - Debian Repository","label":"Test_Debian_Repository","content_type":"deb"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]}]} + Content View\"","sort":{"by":"name","order":"asc"},"results":[{"composite":false,"component_ids":[],"duplicate_repositories_to_publish":[],"default":false,"version_count":0,"latest_version":null,"latest_version_id":null,"auto_publish":false,"solve_dependencies":false,"import_only":false,"generated_for":"none","related_cv_count":0,"related_composite_cvs":[],"filtered":true,"repository_ids":[13,14,15],"id":11,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":7,"organization":{"name":"Test + Organization","label":"Test_Organization","id":7},"created_at":"2024-07-24 + 14:54:40 UTC","updated_at":"2024-07-24 14:54:40 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":13,"name":"Test + Repository","label":"Test_Repository","content_type":"yum"},{"id":14,"name":"Test + Modular Repository","label":"Test_Modular_Repository","content_type":"yum"},{"id":15,"name":"Test + Docker Repository","label":"Test_Docker_Repository","content_type":"docker"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]}]} ' headers: @@ -143,7 +142,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '1353' + - '1270' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -155,9 +154,9 @@ interactions: Foreman_current_location: - ; ANY Foreman_current_organization: - - 11; Test Organization + - 7; Test Organization Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=98 Strict-Transport-Security: @@ -187,20 +186,19 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/content_views/19/filters?search=name%3D%22Test+Content+View+Filter+-+rpm%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/content_views/11/filters?search=name%3D%22Test+Content+View+Filter+-+rpm%22&per_page=4294967296 response: body: string: '{"total":10,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Content View Filter - rpm\"","sort":{"by":"name","order":"asc"},"results":[{"inclusion":false,"id":58,"name":"Test - Content View Filter - rpm","description":null,"created_at":"2023-06-05 22:34:55 - UTC","updated_at":"2023-06-05 22:34:55 UTC","content_view":{"composite":false,"component_ids":[],"default":false,"version_count":0,"latest_version":null,"latest_version_id":null,"auto_publish":false,"solve_dependencies":false,"import_only":false,"generated_for":"none","related_cv_count":0,"related_composite_cvs":[],"needs_publish":true,"filtered":true,"repository_ids":[31,32,33,34],"id":19,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":11,"organization":{"name":"Test - Organization","label":"Test_Organization","id":11},"created_at":"2023-06-05 - 22:34:51 UTC","updated_at":"2023-06-05 22:34:51 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":31,"name":"Test - Repository","label":"Test_Repository","content_type":"yum"},{"id":32,"name":"Test - Modular Repository","label":"Test_Modular_Repository","content_type":"yum"},{"id":33,"name":"Test - Docker Repository","label":"Test_Docker_Repository","content_type":"docker"},{"id":34,"name":"Test - Debian Repository","label":"Test_Debian_Repository","content_type":"deb"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]},"repositories":[],"type":"rpm","rules":[]}]} + Content View Filter - rpm\"","sort":{"by":"name","order":"asc"},"results":[{"inclusion":false,"id":54,"name":"Test + Content View Filter - rpm","description":null,"created_at":"2024-07-24 14:54:42 + UTC","updated_at":"2024-07-24 14:54:42 UTC","content_view":{"composite":false,"component_ids":[],"duplicate_repositories_to_publish":[],"default":false,"version_count":0,"latest_version":null,"latest_version_id":null,"auto_publish":false,"solve_dependencies":false,"import_only":false,"generated_for":"none","related_cv_count":0,"related_composite_cvs":[],"filtered":true,"repository_ids":[13,14,15],"id":11,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":7,"organization":{"name":"Test + Organization","label":"Test_Organization","id":7},"created_at":"2024-07-24 + 14:54:40 UTC","updated_at":"2024-07-24 14:54:40 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":13,"name":"Test + Repository","label":"Test_Repository","content_type":"yum"},{"id":14,"name":"Test + Modular Repository","label":"Test_Modular_Repository","content_type":"yum"},{"id":15,"name":"Test + Docker Repository","label":"Test_Docker_Repository","content_type":"docker"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]},"repositories":[],"type":"rpm","rules":[]}]} ' headers: @@ -209,7 +207,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '1589' + - '1506' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -223,7 +221,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=97 Strict-Transport-Security: @@ -253,7 +251,7 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/content_view_filters/58/rules?search=name%3D%22bear%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/content_view_filters/54/rules?search=name%3D%22bear%22&per_page=4294967296 response: body: string: '{"total":0,"subtotal":0,"selectable":0,"page":1,"per_page":"4294967296","error":null,"search":"name=\"bear\"","sort":{"by":"id","order":"asc"},"results":[]} @@ -279,7 +277,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=96 Strict-Transport-Security: @@ -313,11 +311,11 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: POST - uri: https://foreman.example.org/katello/api/content_view_filters/58/rules + uri: https://foreman.example.org/katello/api/content_view_filters/54/rules response: body: - string: ' {"content_view_filter_id":58,"id":7,"name":"bear","created_at":"2023-06-05 - 22:35:02 UTC","updated_at":"2023-06-05 22:35:02 UTC"} + string: ' {"content_view_filter_id":54,"id":7,"name":"bear","created_at":"2024-07-24 + 14:54:45 UTC","updated_at":"2024-07-24 14:54:45 UTC"} ' headers: @@ -340,7 +338,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=95 Strict-Transport-Security: diff --git a/tests/test_playbooks/fixtures/content_view_filter_rule-1.yml b/tests/test_playbooks/fixtures/content_view_filter_rule-1.yml index 4684d8d9..770990af 100644 --- a/tests/test_playbooks/fixtures/content_view_filter_rule-1.yml +++ b/tests/test_playbooks/fixtures/content_view_filter_rule-1.yml @@ -14,14 +14,14 @@ interactions: uri: https://foreman.example.org/api/status response: body: - string: '{"result":"ok","status":200,"version":"3.7.0-rc2","api_version":2}' + string: '{"result":"ok","status":200,"version":"3.12.0-develop","api_version":2}' headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive Content-Length: - - '66' + - '71' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -35,7 +35,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=100 Strict-Transport-Security: @@ -70,8 +70,8 @@ interactions: body: string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": 4294967296,\n \"search\": \"name=\\\"Test Organization\\\"\",\n \"sort\": - {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\":\"Test_Organization\",\"created_at\":\"2023-06-05 - 22:32:12 UTC\",\"updated_at\":\"2023-06-05 22:32:15 UTC\",\"id\":11,\"name\":\"Test + {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\":\"Test_Organization\",\"created_at\":\"2024-07-24 + 14:53:36 UTC\",\"updated_at\":\"2024-07-24 14:53:38 UTC\",\"id\":7,\"name\":\"Test Organization\",\"title\":\"Test Organization\",\"description\":\"A test organization\"}]\n}\n" headers: Cache-Control: @@ -79,7 +79,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '389' + - '388' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -93,7 +93,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=99 Strict-Transport-Security: @@ -123,18 +123,17 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/organizations/11/content_views?search=name%3D%22Test+Content+View%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/organizations/7/content_views?search=name%3D%22Test+Content+View%22&per_page=4294967296 response: body: string: '{"total":2,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Content View\"","sort":{"by":"name","order":"asc"},"results":[{"composite":false,"component_ids":[],"default":false,"version_count":0,"latest_version":null,"latest_version_id":null,"auto_publish":false,"solve_dependencies":false,"import_only":false,"generated_for":"none","related_cv_count":0,"related_composite_cvs":[],"needs_publish":true,"filtered":true,"repository_ids":[31,32,33,34],"id":19,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":11,"organization":{"name":"Test - Organization","label":"Test_Organization","id":11},"created_at":"2023-06-05 - 22:34:51 UTC","updated_at":"2023-06-05 22:34:51 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":31,"name":"Test - Repository","label":"Test_Repository","content_type":"yum"},{"id":32,"name":"Test - Modular Repository","label":"Test_Modular_Repository","content_type":"yum"},{"id":33,"name":"Test - Docker Repository","label":"Test_Docker_Repository","content_type":"docker"},{"id":34,"name":"Test - Debian Repository","label":"Test_Debian_Repository","content_type":"deb"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]}]} + Content View\"","sort":{"by":"name","order":"asc"},"results":[{"composite":false,"component_ids":[],"duplicate_repositories_to_publish":[],"default":false,"version_count":0,"latest_version":null,"latest_version_id":null,"auto_publish":false,"solve_dependencies":false,"import_only":false,"generated_for":"none","related_cv_count":0,"related_composite_cvs":[],"filtered":true,"repository_ids":[13,14,15],"id":11,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":7,"organization":{"name":"Test + Organization","label":"Test_Organization","id":7},"created_at":"2024-07-24 + 14:54:40 UTC","updated_at":"2024-07-24 14:54:40 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":13,"name":"Test + Repository","label":"Test_Repository","content_type":"yum"},{"id":14,"name":"Test + Modular Repository","label":"Test_Modular_Repository","content_type":"yum"},{"id":15,"name":"Test + Docker Repository","label":"Test_Docker_Repository","content_type":"docker"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]}]} ' headers: @@ -143,7 +142,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '1353' + - '1270' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -155,9 +154,9 @@ interactions: Foreman_current_location: - ; ANY Foreman_current_organization: - - 11; Test Organization + - 7; Test Organization Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=98 Strict-Transport-Security: @@ -187,21 +186,20 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/content_views/19/filters?search=name%3D%22Test+Content+View+Filter+-+rpm%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/content_views/11/filters?search=name%3D%22Test+Content+View+Filter+-+rpm%22&per_page=4294967296 response: body: string: '{"total":10,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Content View Filter - rpm\"","sort":{"by":"name","order":"asc"},"results":[{"inclusion":false,"id":58,"name":"Test - Content View Filter - rpm","description":null,"created_at":"2023-06-05 22:34:55 - UTC","updated_at":"2023-06-05 22:34:55 UTC","content_view":{"composite":false,"component_ids":[],"default":false,"version_count":0,"latest_version":null,"latest_version_id":null,"auto_publish":false,"solve_dependencies":false,"import_only":false,"generated_for":"none","related_cv_count":0,"related_composite_cvs":[],"needs_publish":true,"filtered":true,"repository_ids":[31,32,33,34],"id":19,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":11,"organization":{"name":"Test - Organization","label":"Test_Organization","id":11},"created_at":"2023-06-05 - 22:34:51 UTC","updated_at":"2023-06-05 22:34:51 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":31,"name":"Test - Repository","label":"Test_Repository","content_type":"yum"},{"id":32,"name":"Test - Modular Repository","label":"Test_Modular_Repository","content_type":"yum"},{"id":33,"name":"Test - Docker Repository","label":"Test_Docker_Repository","content_type":"docker"},{"id":34,"name":"Test - Debian Repository","label":"Test_Debian_Repository","content_type":"deb"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]},"repositories":[],"type":"rpm","rules":[{"content_view_filter_id":58,"id":7,"name":"bear","created_at":"2023-06-05 - 22:35:02 UTC","updated_at":"2023-06-05 22:35:02 UTC"}]}]} + Content View Filter - rpm\"","sort":{"by":"name","order":"asc"},"results":[{"inclusion":false,"id":54,"name":"Test + Content View Filter - rpm","description":null,"created_at":"2024-07-24 14:54:42 + UTC","updated_at":"2024-07-24 14:54:42 UTC","content_view":{"composite":false,"component_ids":[],"duplicate_repositories_to_publish":[],"default":false,"version_count":0,"latest_version":null,"latest_version_id":null,"auto_publish":false,"solve_dependencies":false,"import_only":false,"generated_for":"none","related_cv_count":0,"related_composite_cvs":[],"filtered":true,"repository_ids":[13,14,15],"id":11,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":7,"organization":{"name":"Test + Organization","label":"Test_Organization","id":7},"created_at":"2024-07-24 + 14:54:40 UTC","updated_at":"2024-07-24 14:54:40 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":13,"name":"Test + Repository","label":"Test_Repository","content_type":"yum"},{"id":14,"name":"Test + Modular Repository","label":"Test_Modular_Repository","content_type":"yum"},{"id":15,"name":"Test + Docker Repository","label":"Test_Docker_Repository","content_type":"docker"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]},"repositories":[],"type":"rpm","rules":[{"content_view_filter_id":54,"id":7,"name":"bear","created_at":"2024-07-24 + 14:54:45 UTC","updated_at":"2024-07-24 14:54:45 UTC"}]}]} ' headers: @@ -210,7 +208,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '1717' + - '1634' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -224,7 +222,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=97 Strict-Transport-Security: @@ -254,7 +252,7 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/content_view_filters/58/rules?search=name%3D%22camel%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/content_view_filters/54/rules?search=name%3D%22camel%22&per_page=4294967296 response: body: string: '{"total":1,"subtotal":0,"selectable":0,"page":1,"per_page":"4294967296","error":null,"search":"name=\"camel\"","sort":{"by":"id","order":"asc"},"results":[]} @@ -280,7 +278,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=96 Strict-Transport-Security: @@ -314,11 +312,11 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: POST - uri: https://foreman.example.org/katello/api/content_view_filters/58/rules + uri: https://foreman.example.org/katello/api/content_view_filters/54/rules response: body: - string: ' {"content_view_filter_id":58,"id":8,"name":"camel","created_at":"2023-06-05 - 22:35:03 UTC","updated_at":"2023-06-05 22:35:03 UTC"} + string: ' {"content_view_filter_id":54,"id":8,"name":"camel","created_at":"2024-07-24 + 14:54:46 UTC","updated_at":"2024-07-24 14:54:46 UTC"} ' headers: @@ -341,7 +339,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=95 Strict-Transport-Security: diff --git a/tests/test_playbooks/fixtures/content_view_filter_rule-10.yml b/tests/test_playbooks/fixtures/content_view_filter_rule-10.yml index 88f5a3fe..d24a3cdf 100644 --- a/tests/test_playbooks/fixtures/content_view_filter_rule-10.yml +++ b/tests/test_playbooks/fixtures/content_view_filter_rule-10.yml @@ -14,14 +14,14 @@ interactions: uri: https://foreman.example.org/api/status response: body: - string: '{"result":"ok","status":200,"version":"3.7.0-rc2","api_version":2}' + string: '{"result":"ok","status":200,"version":"3.12.0-develop","api_version":2}' headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive Content-Length: - - '66' + - '71' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -35,7 +35,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=100 Strict-Transport-Security: @@ -70,8 +70,8 @@ interactions: body: string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": 4294967296,\n \"search\": \"name=\\\"Test Organization\\\"\",\n \"sort\": - {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\":\"Test_Organization\",\"created_at\":\"2023-06-05 - 22:32:12 UTC\",\"updated_at\":\"2023-06-05 22:32:15 UTC\",\"id\":11,\"name\":\"Test + {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\":\"Test_Organization\",\"created_at\":\"2024-07-24 + 14:53:36 UTC\",\"updated_at\":\"2024-07-24 14:53:38 UTC\",\"id\":7,\"name\":\"Test Organization\",\"title\":\"Test Organization\",\"description\":\"A test organization\"}]\n}\n" headers: Cache-Control: @@ -79,7 +79,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '389' + - '388' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -93,7 +93,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=99 Strict-Transport-Security: @@ -123,18 +123,17 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/organizations/11/content_views?search=name%3D%22Test+Content+View%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/organizations/7/content_views?search=name%3D%22Test+Content+View%22&per_page=4294967296 response: body: string: '{"total":2,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Content View\"","sort":{"by":"name","order":"asc"},"results":[{"composite":false,"component_ids":[],"default":false,"version_count":0,"latest_version":null,"latest_version_id":null,"auto_publish":false,"solve_dependencies":false,"import_only":false,"generated_for":"none","related_cv_count":0,"related_composite_cvs":[],"needs_publish":true,"filtered":true,"repository_ids":[31,32,33,34],"id":19,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":11,"organization":{"name":"Test - Organization","label":"Test_Organization","id":11},"created_at":"2023-06-05 - 22:34:51 UTC","updated_at":"2023-06-05 22:34:51 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":31,"name":"Test - Repository","label":"Test_Repository","content_type":"yum"},{"id":32,"name":"Test - Modular Repository","label":"Test_Modular_Repository","content_type":"yum"},{"id":33,"name":"Test - Docker Repository","label":"Test_Docker_Repository","content_type":"docker"},{"id":34,"name":"Test - Debian Repository","label":"Test_Debian_Repository","content_type":"deb"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]}]} + Content View\"","sort":{"by":"name","order":"asc"},"results":[{"composite":false,"component_ids":[],"duplicate_repositories_to_publish":[],"default":false,"version_count":0,"latest_version":null,"latest_version_id":null,"auto_publish":false,"solve_dependencies":false,"import_only":false,"generated_for":"none","related_cv_count":0,"related_composite_cvs":[],"filtered":true,"repository_ids":[13,14,15],"id":11,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":7,"organization":{"name":"Test + Organization","label":"Test_Organization","id":7},"created_at":"2024-07-24 + 14:54:40 UTC","updated_at":"2024-07-24 14:54:40 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":13,"name":"Test + Repository","label":"Test_Repository","content_type":"yum"},{"id":14,"name":"Test + Modular Repository","label":"Test_Modular_Repository","content_type":"yum"},{"id":15,"name":"Test + Docker Repository","label":"Test_Docker_Repository","content_type":"docker"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]}]} ' headers: @@ -143,7 +142,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '1353' + - '1270' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -155,9 +154,9 @@ interactions: Foreman_current_location: - ; ANY Foreman_current_organization: - - 11; Test Organization + - 7; Test Organization Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=98 Strict-Transport-Security: @@ -187,21 +186,20 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/content_views/19/filters?search=name%3D%22Test+Content+View+Filter+-+docker%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/content_views/11/filters?search=name%3D%22Test+Content+View+Filter+-+docker%22&per_page=4294967296 response: body: string: '{"total":10,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Content View Filter - docker\"","sort":{"by":"name","order":"asc"},"results":[{"inclusion":false,"id":62,"name":"Test - Content View Filter - docker","description":null,"created_at":"2023-06-05 - 22:34:59 UTC","updated_at":"2023-06-05 22:34:59 UTC","content_view":{"composite":false,"component_ids":[],"default":false,"version_count":0,"latest_version":null,"latest_version_id":null,"auto_publish":false,"solve_dependencies":false,"import_only":false,"generated_for":"none","related_cv_count":0,"related_composite_cvs":[],"needs_publish":true,"filtered":true,"repository_ids":[31,32,33,34],"id":19,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":11,"organization":{"name":"Test - Organization","label":"Test_Organization","id":11},"created_at":"2023-06-05 - 22:34:51 UTC","updated_at":"2023-06-05 22:34:51 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":31,"name":"Test - Repository","label":"Test_Repository","content_type":"yum"},{"id":32,"name":"Test - Modular Repository","label":"Test_Modular_Repository","content_type":"yum"},{"id":33,"name":"Test - Docker Repository","label":"Test_Docker_Repository","content_type":"docker"},{"id":34,"name":"Test - Debian Repository","label":"Test_Debian_Repository","content_type":"deb"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]},"repositories":[],"type":"docker","rules":[{"content_view_filter_id":62,"id":6,"name":"8.7-929","created_at":"2023-06-05 - 22:35:11 UTC","updated_at":"2023-06-05 22:35:11 UTC"}]}]} + Content View Filter - docker\"","sort":{"by":"name","order":"asc"},"results":[{"inclusion":false,"id":58,"name":"Test + Content View Filter - docker","description":null,"created_at":"2024-07-24 + 14:54:44 UTC","updated_at":"2024-07-24 14:54:44 UTC","content_view":{"composite":false,"component_ids":[],"duplicate_repositories_to_publish":[],"default":false,"version_count":0,"latest_version":null,"latest_version_id":null,"auto_publish":false,"solve_dependencies":false,"import_only":false,"generated_for":"none","related_cv_count":0,"related_composite_cvs":[],"filtered":true,"repository_ids":[13,14,15],"id":11,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":7,"organization":{"name":"Test + Organization","label":"Test_Organization","id":7},"created_at":"2024-07-24 + 14:54:40 UTC","updated_at":"2024-07-24 14:54:40 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":13,"name":"Test + Repository","label":"Test_Repository","content_type":"yum"},{"id":14,"name":"Test + Modular Repository","label":"Test_Modular_Repository","content_type":"yum"},{"id":15,"name":"Test + Docker Repository","label":"Test_Docker_Repository","content_type":"docker"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]},"repositories":[],"type":"docker","rules":[{"content_view_filter_id":58,"id":7,"name":"8.7-929","created_at":"2024-07-24 + 14:54:50 UTC","updated_at":"2024-07-24 14:54:50 UTC"}]}]} ' headers: @@ -210,7 +208,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '1729' + - '1646' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -224,7 +222,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=97 Strict-Transport-Security: @@ -254,7 +252,7 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/content_view_filters/62/rules?search=name%3D%228.6-990%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/content_view_filters/58/rules?search=name%3D%228.6-990%22&per_page=4294967296 response: body: string: '{"total":1,"subtotal":0,"selectable":0,"page":1,"per_page":"4294967296","error":null,"search":"name=\"8.6-990\"","sort":{"by":"id","order":"asc"},"results":[]} @@ -280,7 +278,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=96 Strict-Transport-Security: @@ -314,11 +312,11 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: POST - uri: https://foreman.example.org/katello/api/content_view_filters/62/rules + uri: https://foreman.example.org/katello/api/content_view_filters/58/rules response: body: - string: ' {"content_view_filter_id":62,"id":7,"name":"8.6-990","created_at":"2023-06-05 - 22:35:12 UTC","updated_at":"2023-06-05 22:35:12 UTC"} + string: ' {"content_view_filter_id":58,"id":8,"name":"8.6-990","created_at":"2024-07-24 + 14:54:50 UTC","updated_at":"2024-07-24 14:54:50 UTC"} ' headers: @@ -341,7 +339,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=95 Strict-Transport-Security: diff --git a/tests/test_playbooks/fixtures/content_view_filter_rule-11.yml b/tests/test_playbooks/fixtures/content_view_filter_rule-11.yml index 90a80181..246c16ab 100644 --- a/tests/test_playbooks/fixtures/content_view_filter_rule-11.yml +++ b/tests/test_playbooks/fixtures/content_view_filter_rule-11.yml @@ -14,14 +14,14 @@ interactions: uri: https://foreman.example.org/api/status response: body: - string: '{"result":"ok","status":200,"version":"3.7.0-rc2","api_version":2}' + string: '{"result":"ok","status":200,"version":"3.12.0-develop","api_version":2}' headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive Content-Length: - - '66' + - '71' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -35,7 +35,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=100 Strict-Transport-Security: @@ -70,8 +70,8 @@ interactions: body: string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": 4294967296,\n \"search\": \"name=\\\"Test Organization\\\"\",\n \"sort\": - {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\":\"Test_Organization\",\"created_at\":\"2023-06-05 - 22:32:12 UTC\",\"updated_at\":\"2023-06-05 22:32:15 UTC\",\"id\":11,\"name\":\"Test + {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\":\"Test_Organization\",\"created_at\":\"2024-07-24 + 14:53:36 UTC\",\"updated_at\":\"2024-07-24 14:53:38 UTC\",\"id\":7,\"name\":\"Test Organization\",\"title\":\"Test Organization\",\"description\":\"A test organization\"}]\n}\n" headers: Cache-Control: @@ -79,7 +79,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '389' + - '388' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -93,7 +93,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=99 Strict-Transport-Security: @@ -123,18 +123,17 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/organizations/11/content_views?search=name%3D%22Test+Content+View%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/organizations/7/content_views?search=name%3D%22Test+Content+View%22&per_page=4294967296 response: body: string: '{"total":2,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Content View\"","sort":{"by":"name","order":"asc"},"results":[{"composite":false,"component_ids":[],"default":false,"version_count":0,"latest_version":null,"latest_version_id":null,"auto_publish":false,"solve_dependencies":false,"import_only":false,"generated_for":"none","related_cv_count":0,"related_composite_cvs":[],"needs_publish":true,"filtered":true,"repository_ids":[31,32,33,34],"id":19,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":11,"organization":{"name":"Test - Organization","label":"Test_Organization","id":11},"created_at":"2023-06-05 - 22:34:51 UTC","updated_at":"2023-06-05 22:34:51 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":31,"name":"Test - Repository","label":"Test_Repository","content_type":"yum"},{"id":32,"name":"Test - Modular Repository","label":"Test_Modular_Repository","content_type":"yum"},{"id":33,"name":"Test - Docker Repository","label":"Test_Docker_Repository","content_type":"docker"},{"id":34,"name":"Test - Debian Repository","label":"Test_Debian_Repository","content_type":"deb"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]}]} + Content View\"","sort":{"by":"name","order":"asc"},"results":[{"composite":false,"component_ids":[],"duplicate_repositories_to_publish":[],"default":false,"version_count":0,"latest_version":null,"latest_version_id":null,"auto_publish":false,"solve_dependencies":false,"import_only":false,"generated_for":"none","related_cv_count":0,"related_composite_cvs":[],"filtered":true,"repository_ids":[13,14,15],"id":11,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":7,"organization":{"name":"Test + Organization","label":"Test_Organization","id":7},"created_at":"2024-07-24 + 14:54:40 UTC","updated_at":"2024-07-24 14:54:40 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":13,"name":"Test + Repository","label":"Test_Repository","content_type":"yum"},{"id":14,"name":"Test + Modular Repository","label":"Test_Modular_Repository","content_type":"yum"},{"id":15,"name":"Test + Docker Repository","label":"Test_Docker_Repository","content_type":"docker"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]}]} ' headers: @@ -143,7 +142,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '1353' + - '1270' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -155,9 +154,9 @@ interactions: Foreman_current_location: - ; ANY Foreman_current_organization: - - 11; Test Organization + - 7; Test Organization Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=98 Strict-Transport-Security: @@ -187,20 +186,19 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/content_views/19/filters?search=name%3D%22Test+Content+View+Filter+-+modulemd%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/content_views/11/filters?search=name%3D%22Test+Content+View+Filter+-+modulemd%22&per_page=4294967296 response: body: string: '{"total":10,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Content View Filter - modulemd\"","sort":{"by":"name","order":"asc"},"results":[{"inclusion":false,"id":63,"name":"Test - Content View Filter - modulemd","description":null,"created_at":"2023-06-05 - 22:35:00 UTC","updated_at":"2023-06-05 22:35:00 UTC","content_view":{"composite":false,"component_ids":[],"default":false,"version_count":0,"latest_version":null,"latest_version_id":null,"auto_publish":false,"solve_dependencies":false,"import_only":false,"generated_for":"none","related_cv_count":0,"related_composite_cvs":[],"needs_publish":true,"filtered":true,"repository_ids":[31,32,33,34],"id":19,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":11,"organization":{"name":"Test - Organization","label":"Test_Organization","id":11},"created_at":"2023-06-05 - 22:34:51 UTC","updated_at":"2023-06-05 22:34:51 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":31,"name":"Test - Repository","label":"Test_Repository","content_type":"yum"},{"id":32,"name":"Test - Modular Repository","label":"Test_Modular_Repository","content_type":"yum"},{"id":33,"name":"Test - Docker Repository","label":"Test_Docker_Repository","content_type":"docker"},{"id":34,"name":"Test - Debian Repository","label":"Test_Debian_Repository","content_type":"deb"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]},"repositories":[],"type":"modulemd","rules":[]}]} + Content View Filter - modulemd\"","sort":{"by":"name","order":"asc"},"results":[{"inclusion":false,"id":59,"name":"Test + Content View Filter - modulemd","description":null,"created_at":"2024-07-24 + 14:54:44 UTC","updated_at":"2024-07-24 14:54:44 UTC","content_view":{"composite":false,"component_ids":[],"duplicate_repositories_to_publish":[],"default":false,"version_count":0,"latest_version":null,"latest_version_id":null,"auto_publish":false,"solve_dependencies":false,"import_only":false,"generated_for":"none","related_cv_count":0,"related_composite_cvs":[],"filtered":true,"repository_ids":[13,14,15],"id":11,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":7,"organization":{"name":"Test + Organization","label":"Test_Organization","id":7},"created_at":"2024-07-24 + 14:54:40 UTC","updated_at":"2024-07-24 14:54:40 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":13,"name":"Test + Repository","label":"Test_Repository","content_type":"yum"},{"id":14,"name":"Test + Modular Repository","label":"Test_Modular_Repository","content_type":"yum"},{"id":15,"name":"Test + Docker Repository","label":"Test_Docker_Repository","content_type":"docker"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]},"repositories":[],"type":"modulemd","rules":[]}]} ' headers: @@ -209,7 +207,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '1604' + - '1521' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -223,7 +221,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=97 Strict-Transport-Security: @@ -256,8 +254,8 @@ interactions: uri: https://foreman.example.org/katello/api/module_streams?search=name%3D%22389-directory-server%22%2Cstream%3D%22next%22%2Cversion%3D%22820220325123957%22%2Ccontext%3D%229edba152%22&per_page=4294967296 response: body: - string: '{"total":24,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"389-directory-server\",stream=\"next\",version=\"820220325123957\",context=\"9edba152\"","sort":{"by":"name","order":"asc"},"results":[{"id":24,"name":"389-directory-server","pulp_id":"/pulp/api/v3/content/rpm/modulemds/0e721ce9-6995-40e8-8086-a5a47b89af0b/","version":"820220325123957","context":"9edba152","stream":"next","arch":"x86_64","description":"389 - Directory Server is an LDAPv3 compliant server.","summary":null,"module_spec":"389-directory-server:next:820220325123957:9edba152:x86_64","uuid":"/pulp/api/v3/content/rpm/modulemds/0e721ce9-6995-40e8-8086-a5a47b89af0b/"}]} + string: '{"total":24,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"389-directory-server\",stream=\"next\",version=\"820220325123957\",context=\"9edba152\"","sort":{"by":"name","order":"asc"},"results":[{"id":24,"name":"389-directory-server","pulp_id":"/pulp/api/v3/content/rpm/modulemds/0190e45f-010d-74d7-a9a1-cd01d6fdc194/","version":"820220325123957","context":"9edba152","stream":"next","arch":"x86_64","description":"389 + Directory Server is an LDAPv3 compliant server.","summary":null,"module_spec":"389-directory-server:next:820220325123957:9edba152:x86_64","uuid":"/pulp/api/v3/content/rpm/modulemds/0190e45f-010d-74d7-a9a1-cd01d6fdc194/"}]} ' headers: @@ -280,7 +278,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=96 Strict-Transport-Security: @@ -313,9 +311,9 @@ interactions: uri: https://foreman.example.org/katello/api/module_streams/24 response: body: - string: ' {"id":24,"name":"389-directory-server","pulp_id":"/pulp/api/v3/content/rpm/modulemds/0e721ce9-6995-40e8-8086-a5a47b89af0b/","version":"820220325123957","context":"9edba152","stream":"next","arch":"x86_64","description":"389 - Directory Server is an LDAPv3 compliant server.","summary":null,"module_spec":"389-directory-server:next:820220325123957:9edba152:x86_64","uuid":"/pulp/api/v3/content/rpm/modulemds/0e721ce9-6995-40e8-8086-a5a47b89af0b/","artifacts":[{"id":411,"name":"389-ds-base-0:2.0.15-1.module_el8+14202+84d723da.src"},{"id":412,"name":"389-ds-base-0:2.0.15-1.module_el8+14202+84d723da.x86_64"},{"id":413,"name":"389-ds-base-debuginfo-0:2.0.15-1.module_el8+14202+84d723da.x86_64"},{"id":414,"name":"389-ds-base-debugsource-0:2.0.15-1.module_el8+14202+84d723da.x86_64"},{"id":415,"name":"389-ds-base-devel-0:2.0.15-1.module_el8+14202+84d723da.x86_64"},{"id":416,"name":"389-ds-base-libs-0:2.0.15-1.module_el8+14202+84d723da.x86_64"},{"id":417,"name":"389-ds-base-libs-debuginfo-0:2.0.15-1.module_el8+14202+84d723da.x86_64"},{"id":418,"name":"389-ds-base-snmp-0:2.0.15-1.module_el8+14202+84d723da.x86_64"},{"id":419,"name":"389-ds-base-snmp-debuginfo-0:2.0.15-1.module_el8+14202+84d723da.x86_64"},{"id":420,"name":"cockpit-389-ds-0:2.0.15-1.module_el8+14202+84d723da.noarch"},{"id":421,"name":"python3-lib389-0:2.0.15-1.module_el8+14202+84d723da.noarch"}],"profiles":[{"id":50,"name":"default","rpms":[{"id":91,"name":"389-ds-base"},{"id":92,"name":"cockpit-389-ds"}]},{"id":51,"name":"minimal","rpms":[{"id":93,"name":"389-ds-base"}]}],"repositories":[{"id":32,"name":"Test - Modular Repository","product_id":10,"product_name":"Test Product"}]} + string: ' {"id":24,"name":"389-directory-server","pulp_id":"/pulp/api/v3/content/rpm/modulemds/0190e45f-010d-74d7-a9a1-cd01d6fdc194/","version":"820220325123957","context":"9edba152","stream":"next","arch":"x86_64","description":"389 + Directory Server is an LDAPv3 compliant server.","summary":null,"module_spec":"389-directory-server:next:820220325123957:9edba152:x86_64","uuid":"/pulp/api/v3/content/rpm/modulemds/0190e45f-010d-74d7-a9a1-cd01d6fdc194/","artifacts":[{"id":411,"name":"389-ds-base-0:2.0.15-1.module_el8+14202+84d723da.src"},{"id":412,"name":"389-ds-base-0:2.0.15-1.module_el8+14202+84d723da.x86_64"},{"id":413,"name":"389-ds-base-debuginfo-0:2.0.15-1.module_el8+14202+84d723da.x86_64"},{"id":414,"name":"389-ds-base-debugsource-0:2.0.15-1.module_el8+14202+84d723da.x86_64"},{"id":415,"name":"389-ds-base-devel-0:2.0.15-1.module_el8+14202+84d723da.x86_64"},{"id":416,"name":"389-ds-base-libs-0:2.0.15-1.module_el8+14202+84d723da.x86_64"},{"id":417,"name":"389-ds-base-libs-debuginfo-0:2.0.15-1.module_el8+14202+84d723da.x86_64"},{"id":418,"name":"389-ds-base-snmp-0:2.0.15-1.module_el8+14202+84d723da.x86_64"},{"id":419,"name":"389-ds-base-snmp-debuginfo-0:2.0.15-1.module_el8+14202+84d723da.x86_64"},{"id":420,"name":"cockpit-389-ds-0:2.0.15-1.module_el8+14202+84d723da.noarch"},{"id":421,"name":"python3-lib389-0:2.0.15-1.module_el8+14202+84d723da.noarch"}],"profiles":[{"id":50,"name":"default","rpms":[{"id":91,"name":"389-ds-base"},{"id":92,"name":"cockpit-389-ds"}]},{"id":51,"name":"minimal","rpms":[{"id":93,"name":"389-ds-base"}]}],"repositories":[{"id":14,"name":"Test + Modular Repository","product_id":5,"product_name":"Test Product"}]} ' headers: @@ -324,7 +322,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '1655' + - '1654' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -338,7 +336,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=95 Strict-Transport-Security: @@ -372,11 +370,11 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: POST - uri: https://foreman.example.org/katello/api/content_view_filters/63/rules + uri: https://foreman.example.org/katello/api/content_view_filters/59/rules response: body: - string: ' {"content_view_filter_id":63,"module_stream_id":24,"id":4,"created_at":"2023-06-05 - 22:35:13 UTC","updated_at":"2023-06-05 22:35:13 UTC"} + string: ' {"content_view_filter_id":59,"module_stream_id":24,"id":10,"created_at":"2024-07-24 + 14:54:51 UTC","updated_at":"2024-07-24 14:54:51 UTC","module_stream":{"module_stream_id":24,"module_stream_name":"389-directory-server","module_stream_stream":"next"}} ' headers: @@ -385,7 +383,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '139' + - '254' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -399,7 +397,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=94 Strict-Transport-Security: diff --git a/tests/test_playbooks/fixtures/content_view_filter_rule-12.yml b/tests/test_playbooks/fixtures/content_view_filter_rule-12.yml index 40e20f07..4ffdfb08 100644 --- a/tests/test_playbooks/fixtures/content_view_filter_rule-12.yml +++ b/tests/test_playbooks/fixtures/content_view_filter_rule-12.yml @@ -14,14 +14,14 @@ interactions: uri: https://foreman.example.org/api/status response: body: - string: '{"result":"ok","status":200,"version":"3.7.0-rc2","api_version":2}' + string: '{"result":"ok","status":200,"version":"3.12.0-develop","api_version":2}' headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive Content-Length: - - '66' + - '71' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -35,7 +35,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=100 Strict-Transport-Security: @@ -70,8 +70,8 @@ interactions: body: string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": 4294967296,\n \"search\": \"name=\\\"Test Organization\\\"\",\n \"sort\": - {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\":\"Test_Organization\",\"created_at\":\"2023-06-05 - 22:32:12 UTC\",\"updated_at\":\"2023-06-05 22:32:15 UTC\",\"id\":11,\"name\":\"Test + {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\":\"Test_Organization\",\"created_at\":\"2024-07-24 + 14:53:36 UTC\",\"updated_at\":\"2024-07-24 14:53:38 UTC\",\"id\":7,\"name\":\"Test Organization\",\"title\":\"Test Organization\",\"description\":\"A test organization\"}]\n}\n" headers: Cache-Control: @@ -79,7 +79,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '389' + - '388' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -93,7 +93,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=99 Strict-Transport-Security: @@ -123,18 +123,17 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/organizations/11/content_views?search=name%3D%22Test+Content+View%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/organizations/7/content_views?search=name%3D%22Test+Content+View%22&per_page=4294967296 response: body: string: '{"total":2,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Content View\"","sort":{"by":"name","order":"asc"},"results":[{"composite":false,"component_ids":[],"default":false,"version_count":0,"latest_version":null,"latest_version_id":null,"auto_publish":false,"solve_dependencies":false,"import_only":false,"generated_for":"none","related_cv_count":0,"related_composite_cvs":[],"needs_publish":true,"filtered":true,"repository_ids":[31,32,33,34],"id":19,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":11,"organization":{"name":"Test - Organization","label":"Test_Organization","id":11},"created_at":"2023-06-05 - 22:34:51 UTC","updated_at":"2023-06-05 22:34:51 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":31,"name":"Test - Repository","label":"Test_Repository","content_type":"yum"},{"id":32,"name":"Test - Modular Repository","label":"Test_Modular_Repository","content_type":"yum"},{"id":33,"name":"Test - Docker Repository","label":"Test_Docker_Repository","content_type":"docker"},{"id":34,"name":"Test - Debian Repository","label":"Test_Debian_Repository","content_type":"deb"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]}]} + Content View\"","sort":{"by":"name","order":"asc"},"results":[{"composite":false,"component_ids":[],"duplicate_repositories_to_publish":[],"default":false,"version_count":0,"latest_version":null,"latest_version_id":null,"auto_publish":false,"solve_dependencies":false,"import_only":false,"generated_for":"none","related_cv_count":0,"related_composite_cvs":[],"filtered":true,"repository_ids":[13,14,15],"id":11,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":7,"organization":{"name":"Test + Organization","label":"Test_Organization","id":7},"created_at":"2024-07-24 + 14:54:40 UTC","updated_at":"2024-07-24 14:54:40 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":13,"name":"Test + Repository","label":"Test_Repository","content_type":"yum"},{"id":14,"name":"Test + Modular Repository","label":"Test_Modular_Repository","content_type":"yum"},{"id":15,"name":"Test + Docker Repository","label":"Test_Docker_Repository","content_type":"docker"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]}]} ' headers: @@ -143,7 +142,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '1353' + - '1270' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -155,9 +154,9 @@ interactions: Foreman_current_location: - ; ANY Foreman_current_organization: - - 11; Test Organization + - 7; Test Organization Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=98 Strict-Transport-Security: @@ -187,21 +186,20 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/content_views/19/filters?search=name%3D%22Test+Content+View+Filter+-+modulemd%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/content_views/11/filters?search=name%3D%22Test+Content+View+Filter+-+modulemd%22&per_page=4294967296 response: body: string: '{"total":10,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Content View Filter - modulemd\"","sort":{"by":"name","order":"asc"},"results":[{"inclusion":false,"id":63,"name":"Test - Content View Filter - modulemd","description":null,"created_at":"2023-06-05 - 22:35:00 UTC","updated_at":"2023-06-05 22:35:00 UTC","content_view":{"composite":false,"component_ids":[],"default":false,"version_count":0,"latest_version":null,"latest_version_id":null,"auto_publish":false,"solve_dependencies":false,"import_only":false,"generated_for":"none","related_cv_count":0,"related_composite_cvs":[],"needs_publish":true,"filtered":true,"repository_ids":[31,32,33,34],"id":19,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":11,"organization":{"name":"Test - Organization","label":"Test_Organization","id":11},"created_at":"2023-06-05 - 22:34:51 UTC","updated_at":"2023-06-05 22:34:51 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":31,"name":"Test - Repository","label":"Test_Repository","content_type":"yum"},{"id":32,"name":"Test - Modular Repository","label":"Test_Modular_Repository","content_type":"yum"},{"id":33,"name":"Test - Docker Repository","label":"Test_Docker_Repository","content_type":"docker"},{"id":34,"name":"Test - Debian Repository","label":"Test_Debian_Repository","content_type":"deb"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]},"repositories":[],"type":"modulemd","rules":[{"content_view_filter_id":63,"module_stream_id":24,"id":4,"created_at":"2023-06-05 - 22:35:13 UTC","updated_at":"2023-06-05 22:35:13 UTC"}]}]} + Content View Filter - modulemd\"","sort":{"by":"name","order":"asc"},"results":[{"inclusion":false,"id":59,"name":"Test + Content View Filter - modulemd","description":null,"created_at":"2024-07-24 + 14:54:44 UTC","updated_at":"2024-07-24 14:54:44 UTC","content_view":{"composite":false,"component_ids":[],"duplicate_repositories_to_publish":[],"default":false,"version_count":0,"latest_version":null,"latest_version_id":null,"auto_publish":false,"solve_dependencies":false,"import_only":false,"generated_for":"none","related_cv_count":0,"related_composite_cvs":[],"filtered":true,"repository_ids":[13,14,15],"id":11,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":7,"organization":{"name":"Test + Organization","label":"Test_Organization","id":7},"created_at":"2024-07-24 + 14:54:40 UTC","updated_at":"2024-07-24 14:54:40 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":13,"name":"Test + Repository","label":"Test_Repository","content_type":"yum"},{"id":14,"name":"Test + Modular Repository","label":"Test_Modular_Repository","content_type":"yum"},{"id":15,"name":"Test + Docker Repository","label":"Test_Docker_Repository","content_type":"docker"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]},"repositories":[],"type":"modulemd","rules":[{"content_view_filter_id":59,"module_stream_id":24,"id":10,"created_at":"2024-07-24 + 14:54:51 UTC","updated_at":"2024-07-24 14:54:51 UTC"}]}]} ' headers: @@ -210,7 +208,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '1740' + - '1658' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -224,7 +222,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=97 Strict-Transport-Security: @@ -257,12 +255,12 @@ interactions: uri: https://foreman.example.org/katello/api/module_streams?search=name%3D%22nextcloud%22%2Cstream%3D%2223%22%2Cversion%3D%22820220801190052%22%2Ccontext%3D%22nx4%22&per_page=4294967296 response: body: - string: '{"total":24,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"nextcloud\",stream=\"23\",version=\"820220801190052\",context=\"nx4\"","sort":{"by":"name","order":"asc"},"results":[{"id":11,"name":"nextcloud","pulp_id":"/pulp/api/v3/content/rpm/modulemds/54d698dc-212f-403e-ac6d-76bb3641559c/","version":"820220801190052","context":"nx4","stream":"23","arch":"x86_64","description":"Nextcloud + string: '{"total":24,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"nextcloud\",stream=\"23\",version=\"820220801190052\",context=\"nx4\"","sort":{"by":"name","order":"asc"},"results":[{"id":11,"name":"nextcloud","pulp_id":"/pulp/api/v3/content/rpm/modulemds/0190e45f-011a-770d-8383-f0816ccf0835/","version":"820220801190052","context":"nx4","stream":"23","arch":"x86_64","description":"Nextcloud gives you universal access to your files through a web interface or WebDAV. It also provides a platform to easily view & sync your contacts, calendars and bookmarks across all your devices and enables basic editing right on the web. Nextcloud is extendable via a simple but powerful API for applications - and plugins.","summary":null,"module_spec":"nextcloud:23:820220801190052:nx4:x86_64","uuid":"/pulp/api/v3/content/rpm/modulemds/54d698dc-212f-403e-ac6d-76bb3641559c/"}]} + and plugins.","summary":null,"module_spec":"nextcloud:23:820220801190052:nx4:x86_64","uuid":"/pulp/api/v3/content/rpm/modulemds/0190e45f-011a-770d-8383-f0816ccf0835/"}]} ' headers: @@ -285,7 +283,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=96 Strict-Transport-Security: @@ -318,13 +316,13 @@ interactions: uri: https://foreman.example.org/katello/api/module_streams/11 response: body: - string: ' {"id":11,"name":"nextcloud","pulp_id":"/pulp/api/v3/content/rpm/modulemds/54d698dc-212f-403e-ac6d-76bb3641559c/","version":"820220801190052","context":"nx4","stream":"23","arch":"x86_64","description":"Nextcloud + string: ' {"id":11,"name":"nextcloud","pulp_id":"/pulp/api/v3/content/rpm/modulemds/0190e45f-011a-770d-8383-f0816ccf0835/","version":"820220801190052","context":"nx4","stream":"23","arch":"x86_64","description":"Nextcloud gives you universal access to your files through a web interface or WebDAV. It also provides a platform to easily view & sync your contacts, calendars and bookmarks across all your devices and enables basic editing right on the web. Nextcloud is extendable via a simple but powerful API for applications - and plugins.","summary":null,"module_spec":"nextcloud:23:820220801190052:nx4:x86_64","uuid":"/pulp/api/v3/content/rpm/modulemds/54d698dc-212f-403e-ac6d-76bb3641559c/","artifacts":[{"id":197,"name":"nextcloud-0:23.0.7-2.module_el8+14924+d94496fa.noarch"},{"id":198,"name":"nextcloud-0:23.0.7-2.module_el8+14924+d94496fa.src"},{"id":199,"name":"nextcloud-httpd-0:23.0.7-2.module_el8+14924+d94496fa.noarch"},{"id":200,"name":"nextcloud-mysql-0:23.0.7-2.module_el8+14924+d94496fa.noarch"},{"id":201,"name":"nextcloud-nginx-0:23.0.7-2.module_el8+14924+d94496fa.noarch"},{"id":202,"name":"nextcloud-postgresql-0:23.0.7-2.module_el8+14924+d94496fa.noarch"},{"id":203,"name":"nextcloud-sqlite-0:23.0.7-2.module_el8+14924+d94496fa.noarch"}],"profiles":[{"id":25,"name":"default","rpms":[{"id":48,"name":"nextcloud"},{"id":49,"name":"nextcloud-httpd"},{"id":50,"name":"nextcloud-mysql"}]},{"id":26,"name":"testing","rpms":[{"id":51,"name":"nextcloud"},{"id":52,"name":"nextcloud-httpd"},{"id":53,"name":"nextcloud-sqlite"}]}],"repositories":[{"id":32,"name":"Test - Modular Repository","product_id":10,"product_name":"Test Product"}]} + and plugins.","summary":null,"module_spec":"nextcloud:23:820220801190052:nx4:x86_64","uuid":"/pulp/api/v3/content/rpm/modulemds/0190e45f-011a-770d-8383-f0816ccf0835/","artifacts":[{"id":197,"name":"nextcloud-0:23.0.7-2.module_el8+14924+d94496fa.noarch"},{"id":198,"name":"nextcloud-0:23.0.7-2.module_el8+14924+d94496fa.src"},{"id":199,"name":"nextcloud-httpd-0:23.0.7-2.module_el8+14924+d94496fa.noarch"},{"id":200,"name":"nextcloud-mysql-0:23.0.7-2.module_el8+14924+d94496fa.noarch"},{"id":201,"name":"nextcloud-nginx-0:23.0.7-2.module_el8+14924+d94496fa.noarch"},{"id":202,"name":"nextcloud-postgresql-0:23.0.7-2.module_el8+14924+d94496fa.noarch"},{"id":203,"name":"nextcloud-sqlite-0:23.0.7-2.module_el8+14924+d94496fa.noarch"}],"profiles":[{"id":25,"name":"default","rpms":[{"id":48,"name":"nextcloud"},{"id":49,"name":"nextcloud-httpd"},{"id":50,"name":"nextcloud-mysql"}]},{"id":26,"name":"testing","rpms":[{"id":51,"name":"nextcloud"},{"id":52,"name":"nextcloud-httpd"},{"id":53,"name":"nextcloud-sqlite"}]}],"repositories":[{"id":14,"name":"Test + Modular Repository","product_id":5,"product_name":"Test Product"}]} ' headers: @@ -333,7 +331,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '1641' + - '1640' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -347,7 +345,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=95 Strict-Transport-Security: @@ -381,11 +379,11 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: POST - uri: https://foreman.example.org/katello/api/content_view_filters/63/rules + uri: https://foreman.example.org/katello/api/content_view_filters/59/rules response: body: - string: ' {"content_view_filter_id":63,"module_stream_id":11,"id":5,"created_at":"2023-06-05 - 22:35:14 UTC","updated_at":"2023-06-05 22:35:14 UTC"} + string: ' {"content_view_filter_id":59,"module_stream_id":11,"id":11,"created_at":"2024-07-24 + 14:54:51 UTC","updated_at":"2024-07-24 14:54:51 UTC","module_stream":{"module_stream_id":11,"module_stream_name":"nextcloud","module_stream_stream":"23"}} ' headers: @@ -394,7 +392,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '139' + - '241' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -408,7 +406,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=94 Strict-Transport-Security: diff --git a/tests/test_playbooks/fixtures/content_view_filter_rule-13.yml b/tests/test_playbooks/fixtures/content_view_filter_rule-13.yml index 7929538b..ee1fd99d 100644 --- a/tests/test_playbooks/fixtures/content_view_filter_rule-13.yml +++ b/tests/test_playbooks/fixtures/content_view_filter_rule-13.yml @@ -14,14 +14,14 @@ interactions: uri: https://foreman.example.org/api/status response: body: - string: '{"result":"ok","status":200,"version":"3.7.0-rc2","api_version":2}' + string: '{"result":"ok","status":200,"version":"3.12.0-develop","api_version":2}' headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive Content-Length: - - '66' + - '71' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -35,7 +35,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=100 Strict-Transport-Security: @@ -70,8 +70,8 @@ interactions: body: string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": 4294967296,\n \"search\": \"name=\\\"Test Organization\\\"\",\n \"sort\": - {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\":\"Test_Organization\",\"created_at\":\"2023-06-05 - 22:32:12 UTC\",\"updated_at\":\"2023-06-05 22:32:15 UTC\",\"id\":11,\"name\":\"Test + {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\":\"Test_Organization\",\"created_at\":\"2024-07-24 + 14:53:36 UTC\",\"updated_at\":\"2024-07-24 14:53:38 UTC\",\"id\":7,\"name\":\"Test Organization\",\"title\":\"Test Organization\",\"description\":\"A test organization\"}]\n}\n" headers: Cache-Control: @@ -79,7 +79,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '389' + - '388' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -93,7 +93,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=99 Strict-Transport-Security: @@ -123,18 +123,17 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/organizations/11/content_views?search=name%3D%22Test+Content+View%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/organizations/7/content_views?search=name%3D%22Test+Content+View%22&per_page=4294967296 response: body: string: '{"total":2,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Content View\"","sort":{"by":"name","order":"asc"},"results":[{"composite":false,"component_ids":[],"default":false,"version_count":0,"latest_version":null,"latest_version_id":null,"auto_publish":false,"solve_dependencies":false,"import_only":false,"generated_for":"none","related_cv_count":0,"related_composite_cvs":[],"needs_publish":true,"filtered":true,"repository_ids":[31,32,33,34],"id":19,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":11,"organization":{"name":"Test - Organization","label":"Test_Organization","id":11},"created_at":"2023-06-05 - 22:34:51 UTC","updated_at":"2023-06-05 22:34:51 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":31,"name":"Test - Repository","label":"Test_Repository","content_type":"yum"},{"id":32,"name":"Test - Modular Repository","label":"Test_Modular_Repository","content_type":"yum"},{"id":33,"name":"Test - Docker Repository","label":"Test_Docker_Repository","content_type":"docker"},{"id":34,"name":"Test - Debian Repository","label":"Test_Debian_Repository","content_type":"deb"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]}]} + Content View\"","sort":{"by":"name","order":"asc"},"results":[{"composite":false,"component_ids":[],"duplicate_repositories_to_publish":[],"default":false,"version_count":0,"latest_version":null,"latest_version_id":null,"auto_publish":false,"solve_dependencies":false,"import_only":false,"generated_for":"none","related_cv_count":0,"related_composite_cvs":[],"filtered":true,"repository_ids":[13,14,15],"id":11,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":7,"organization":{"name":"Test + Organization","label":"Test_Organization","id":7},"created_at":"2024-07-24 + 14:54:40 UTC","updated_at":"2024-07-24 14:54:40 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":13,"name":"Test + Repository","label":"Test_Repository","content_type":"yum"},{"id":14,"name":"Test + Modular Repository","label":"Test_Modular_Repository","content_type":"yum"},{"id":15,"name":"Test + Docker Repository","label":"Test_Docker_Repository","content_type":"docker"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]}]} ' headers: @@ -143,7 +142,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '1353' + - '1270' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -155,9 +154,9 @@ interactions: Foreman_current_location: - ; ANY Foreman_current_organization: - - 11; Test Organization + - 7; Test Organization Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=98 Strict-Transport-Security: @@ -187,22 +186,21 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/content_views/19/filters?search=name%3D%22Test+Content+View+Filter+-+modulemd%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/content_views/11/filters?search=name%3D%22Test+Content+View+Filter+-+modulemd%22&per_page=4294967296 response: body: string: '{"total":10,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Content View Filter - modulemd\"","sort":{"by":"name","order":"asc"},"results":[{"inclusion":false,"id":63,"name":"Test - Content View Filter - modulemd","description":null,"created_at":"2023-06-05 - 22:35:00 UTC","updated_at":"2023-06-05 22:35:00 UTC","content_view":{"composite":false,"component_ids":[],"default":false,"version_count":0,"latest_version":null,"latest_version_id":null,"auto_publish":false,"solve_dependencies":false,"import_only":false,"generated_for":"none","related_cv_count":0,"related_composite_cvs":[],"needs_publish":true,"filtered":true,"repository_ids":[31,32,33,34],"id":19,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":11,"organization":{"name":"Test - Organization","label":"Test_Organization","id":11},"created_at":"2023-06-05 - 22:34:51 UTC","updated_at":"2023-06-05 22:34:51 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":31,"name":"Test - Repository","label":"Test_Repository","content_type":"yum"},{"id":32,"name":"Test - Modular Repository","label":"Test_Modular_Repository","content_type":"yum"},{"id":33,"name":"Test - Docker Repository","label":"Test_Docker_Repository","content_type":"docker"},{"id":34,"name":"Test - Debian Repository","label":"Test_Debian_Repository","content_type":"deb"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]},"repositories":[],"type":"modulemd","rules":[{"content_view_filter_id":63,"module_stream_id":24,"id":4,"created_at":"2023-06-05 - 22:35:13 UTC","updated_at":"2023-06-05 22:35:13 UTC"},{"content_view_filter_id":63,"module_stream_id":11,"id":5,"created_at":"2023-06-05 - 22:35:14 UTC","updated_at":"2023-06-05 22:35:14 UTC"}]}]} + Content View Filter - modulemd\"","sort":{"by":"name","order":"asc"},"results":[{"inclusion":false,"id":59,"name":"Test + Content View Filter - modulemd","description":null,"created_at":"2024-07-24 + 14:54:44 UTC","updated_at":"2024-07-24 14:54:44 UTC","content_view":{"composite":false,"component_ids":[],"duplicate_repositories_to_publish":[],"default":false,"version_count":0,"latest_version":null,"latest_version_id":null,"auto_publish":false,"solve_dependencies":false,"import_only":false,"generated_for":"none","related_cv_count":0,"related_composite_cvs":[],"filtered":true,"repository_ids":[13,14,15],"id":11,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":7,"organization":{"name":"Test + Organization","label":"Test_Organization","id":7},"created_at":"2024-07-24 + 14:54:40 UTC","updated_at":"2024-07-24 14:54:40 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":13,"name":"Test + Repository","label":"Test_Repository","content_type":"yum"},{"id":14,"name":"Test + Modular Repository","label":"Test_Modular_Repository","content_type":"yum"},{"id":15,"name":"Test + Docker Repository","label":"Test_Docker_Repository","content_type":"docker"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]},"repositories":[],"type":"modulemd","rules":[{"content_view_filter_id":59,"module_stream_id":24,"id":10,"created_at":"2024-07-24 + 14:54:51 UTC","updated_at":"2024-07-24 14:54:51 UTC"},{"content_view_filter_id":59,"module_stream_id":11,"id":11,"created_at":"2024-07-24 + 14:54:51 UTC","updated_at":"2024-07-24 14:54:51 UTC"}]}]} ' headers: @@ -211,7 +209,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '1877' + - '1796' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -225,7 +223,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=97 Strict-Transport-Security: @@ -258,8 +256,8 @@ interactions: uri: https://foreman.example.org/katello/api/module_streams?search=name%3D%22389-directory-server%22%2Cstream%3D%22next%22%2Cversion%3D%22820220325123957%22%2Ccontext%3D%229edba152%22&per_page=4294967296 response: body: - string: '{"total":24,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"389-directory-server\",stream=\"next\",version=\"820220325123957\",context=\"9edba152\"","sort":{"by":"name","order":"asc"},"results":[{"id":24,"name":"389-directory-server","pulp_id":"/pulp/api/v3/content/rpm/modulemds/0e721ce9-6995-40e8-8086-a5a47b89af0b/","version":"820220325123957","context":"9edba152","stream":"next","arch":"x86_64","description":"389 - Directory Server is an LDAPv3 compliant server.","summary":null,"module_spec":"389-directory-server:next:820220325123957:9edba152:x86_64","uuid":"/pulp/api/v3/content/rpm/modulemds/0e721ce9-6995-40e8-8086-a5a47b89af0b/"}]} + string: '{"total":24,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"389-directory-server\",stream=\"next\",version=\"820220325123957\",context=\"9edba152\"","sort":{"by":"name","order":"asc"},"results":[{"id":24,"name":"389-directory-server","pulp_id":"/pulp/api/v3/content/rpm/modulemds/0190e45f-010d-74d7-a9a1-cd01d6fdc194/","version":"820220325123957","context":"9edba152","stream":"next","arch":"x86_64","description":"389 + Directory Server is an LDAPv3 compliant server.","summary":null,"module_spec":"389-directory-server:next:820220325123957:9edba152:x86_64","uuid":"/pulp/api/v3/content/rpm/modulemds/0190e45f-010d-74d7-a9a1-cd01d6fdc194/"}]} ' headers: @@ -282,7 +280,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=96 Strict-Transport-Security: @@ -315,9 +313,9 @@ interactions: uri: https://foreman.example.org/katello/api/module_streams/24 response: body: - string: ' {"id":24,"name":"389-directory-server","pulp_id":"/pulp/api/v3/content/rpm/modulemds/0e721ce9-6995-40e8-8086-a5a47b89af0b/","version":"820220325123957","context":"9edba152","stream":"next","arch":"x86_64","description":"389 - Directory Server is an LDAPv3 compliant server.","summary":null,"module_spec":"389-directory-server:next:820220325123957:9edba152:x86_64","uuid":"/pulp/api/v3/content/rpm/modulemds/0e721ce9-6995-40e8-8086-a5a47b89af0b/","artifacts":[{"id":411,"name":"389-ds-base-0:2.0.15-1.module_el8+14202+84d723da.src"},{"id":412,"name":"389-ds-base-0:2.0.15-1.module_el8+14202+84d723da.x86_64"},{"id":413,"name":"389-ds-base-debuginfo-0:2.0.15-1.module_el8+14202+84d723da.x86_64"},{"id":414,"name":"389-ds-base-debugsource-0:2.0.15-1.module_el8+14202+84d723da.x86_64"},{"id":415,"name":"389-ds-base-devel-0:2.0.15-1.module_el8+14202+84d723da.x86_64"},{"id":416,"name":"389-ds-base-libs-0:2.0.15-1.module_el8+14202+84d723da.x86_64"},{"id":417,"name":"389-ds-base-libs-debuginfo-0:2.0.15-1.module_el8+14202+84d723da.x86_64"},{"id":418,"name":"389-ds-base-snmp-0:2.0.15-1.module_el8+14202+84d723da.x86_64"},{"id":419,"name":"389-ds-base-snmp-debuginfo-0:2.0.15-1.module_el8+14202+84d723da.x86_64"},{"id":420,"name":"cockpit-389-ds-0:2.0.15-1.module_el8+14202+84d723da.noarch"},{"id":421,"name":"python3-lib389-0:2.0.15-1.module_el8+14202+84d723da.noarch"}],"profiles":[{"id":50,"name":"default","rpms":[{"id":91,"name":"389-ds-base"},{"id":92,"name":"cockpit-389-ds"}]},{"id":51,"name":"minimal","rpms":[{"id":93,"name":"389-ds-base"}]}],"repositories":[{"id":32,"name":"Test - Modular Repository","product_id":10,"product_name":"Test Product"}]} + string: ' {"id":24,"name":"389-directory-server","pulp_id":"/pulp/api/v3/content/rpm/modulemds/0190e45f-010d-74d7-a9a1-cd01d6fdc194/","version":"820220325123957","context":"9edba152","stream":"next","arch":"x86_64","description":"389 + Directory Server is an LDAPv3 compliant server.","summary":null,"module_spec":"389-directory-server:next:820220325123957:9edba152:x86_64","uuid":"/pulp/api/v3/content/rpm/modulemds/0190e45f-010d-74d7-a9a1-cd01d6fdc194/","artifacts":[{"id":411,"name":"389-ds-base-0:2.0.15-1.module_el8+14202+84d723da.src"},{"id":412,"name":"389-ds-base-0:2.0.15-1.module_el8+14202+84d723da.x86_64"},{"id":413,"name":"389-ds-base-debuginfo-0:2.0.15-1.module_el8+14202+84d723da.x86_64"},{"id":414,"name":"389-ds-base-debugsource-0:2.0.15-1.module_el8+14202+84d723da.x86_64"},{"id":415,"name":"389-ds-base-devel-0:2.0.15-1.module_el8+14202+84d723da.x86_64"},{"id":416,"name":"389-ds-base-libs-0:2.0.15-1.module_el8+14202+84d723da.x86_64"},{"id":417,"name":"389-ds-base-libs-debuginfo-0:2.0.15-1.module_el8+14202+84d723da.x86_64"},{"id":418,"name":"389-ds-base-snmp-0:2.0.15-1.module_el8+14202+84d723da.x86_64"},{"id":419,"name":"389-ds-base-snmp-debuginfo-0:2.0.15-1.module_el8+14202+84d723da.x86_64"},{"id":420,"name":"cockpit-389-ds-0:2.0.15-1.module_el8+14202+84d723da.noarch"},{"id":421,"name":"python3-lib389-0:2.0.15-1.module_el8+14202+84d723da.noarch"}],"profiles":[{"id":50,"name":"default","rpms":[{"id":91,"name":"389-ds-base"},{"id":92,"name":"cockpit-389-ds"}]},{"id":51,"name":"minimal","rpms":[{"id":93,"name":"389-ds-base"}]}],"repositories":[{"id":14,"name":"Test + Modular Repository","product_id":5,"product_name":"Test Product"}]} ' headers: @@ -326,7 +324,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '1655' + - '1654' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -340,7 +338,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=95 Strict-Transport-Security: @@ -370,11 +368,11 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/content_view_filters/63/rules?search=id%3D%224%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/content_view_filters/59/rules?search=id%3D%2210%22&per_page=4294967296 response: body: - string: '{"total":2,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"id=\"4\"","sort":{"by":"id","order":"asc"},"results":[{"content_view_filter_id":63,"module_stream_id":24,"id":4,"created_at":"2023-06-05 - 22:35:13 UTC","updated_at":"2023-06-05 22:35:13 UTC"}]} + string: '{"total":2,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"id=\"10\"","sort":{"by":"id","order":"asc"},"results":[{"content_view_filter_id":59,"module_stream_id":24,"id":10,"created_at":"2024-07-24 + 14:54:51 UTC","updated_at":"2024-07-24 14:54:51 UTC"}]} ' headers: @@ -383,7 +381,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '288' + - '290' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -397,7 +395,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=94 Strict-Transport-Security: @@ -427,11 +425,11 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/content_view_filters/63/rules/4 + uri: https://foreman.example.org/katello/api/content_view_filters/59/rules/10 response: body: - string: ' {"content_view_filter_id":63,"module_stream_id":24,"id":4,"created_at":"2023-06-05 - 22:35:13 UTC","updated_at":"2023-06-05 22:35:13 UTC"} + string: ' {"content_view_filter_id":59,"module_stream_id":24,"id":10,"created_at":"2024-07-24 + 14:54:51 UTC","updated_at":"2024-07-24 14:54:51 UTC","module_stream":{"module_stream_id":24,"module_stream_name":"389-directory-server","module_stream_stream":"next"}} ' headers: @@ -440,7 +438,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '139' + - '254' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -454,7 +452,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=93 Strict-Transport-Security: diff --git a/tests/test_playbooks/fixtures/content_view_filter_rule-14.yml b/tests/test_playbooks/fixtures/content_view_filter_rule-14.yml index b73bd3b3..2b72e7e8 100644 --- a/tests/test_playbooks/fixtures/content_view_filter_rule-14.yml +++ b/tests/test_playbooks/fixtures/content_view_filter_rule-14.yml @@ -14,14 +14,14 @@ interactions: uri: https://foreman.example.org/api/status response: body: - string: '{"result":"ok","status":200,"version":"3.7.0-rc2","api_version":2}' + string: '{"result":"ok","status":200,"version":"3.12.0-develop","api_version":2}' headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive Content-Length: - - '66' + - '71' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -35,7 +35,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=100 Strict-Transport-Security: @@ -70,8 +70,8 @@ interactions: body: string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": 4294967296,\n \"search\": \"name=\\\"Test Organization\\\"\",\n \"sort\": - {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\":\"Test_Organization\",\"created_at\":\"2023-06-05 - 22:32:12 UTC\",\"updated_at\":\"2023-06-05 22:32:15 UTC\",\"id\":11,\"name\":\"Test + {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\":\"Test_Organization\",\"created_at\":\"2024-07-24 + 14:53:36 UTC\",\"updated_at\":\"2024-07-24 14:53:38 UTC\",\"id\":7,\"name\":\"Test Organization\",\"title\":\"Test Organization\",\"description\":\"A test organization\"}]\n}\n" headers: Cache-Control: @@ -79,7 +79,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '389' + - '388' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -93,7 +93,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=99 Strict-Transport-Security: @@ -123,18 +123,17 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/organizations/11/content_views?search=name%3D%22Test+Content+View%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/organizations/7/content_views?search=name%3D%22Test+Content+View%22&per_page=4294967296 response: body: string: '{"total":2,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Content View\"","sort":{"by":"name","order":"asc"},"results":[{"composite":false,"component_ids":[],"default":false,"version_count":0,"latest_version":null,"latest_version_id":null,"auto_publish":false,"solve_dependencies":false,"import_only":false,"generated_for":"none","related_cv_count":0,"related_composite_cvs":[],"needs_publish":true,"filtered":true,"repository_ids":[31,32,33,34],"id":19,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":11,"organization":{"name":"Test - Organization","label":"Test_Organization","id":11},"created_at":"2023-06-05 - 22:34:51 UTC","updated_at":"2023-06-05 22:34:51 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":31,"name":"Test - Repository","label":"Test_Repository","content_type":"yum"},{"id":32,"name":"Test - Modular Repository","label":"Test_Modular_Repository","content_type":"yum"},{"id":33,"name":"Test - Docker Repository","label":"Test_Docker_Repository","content_type":"docker"},{"id":34,"name":"Test - Debian Repository","label":"Test_Debian_Repository","content_type":"deb"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]}]} + Content View\"","sort":{"by":"name","order":"asc"},"results":[{"composite":false,"component_ids":[],"duplicate_repositories_to_publish":[],"default":false,"version_count":0,"latest_version":null,"latest_version_id":null,"auto_publish":false,"solve_dependencies":false,"import_only":false,"generated_for":"none","related_cv_count":0,"related_composite_cvs":[],"filtered":true,"repository_ids":[13,14,15],"id":11,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":7,"organization":{"name":"Test + Organization","label":"Test_Organization","id":7},"created_at":"2024-07-24 + 14:54:40 UTC","updated_at":"2024-07-24 14:54:40 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":13,"name":"Test + Repository","label":"Test_Repository","content_type":"yum"},{"id":14,"name":"Test + Modular Repository","label":"Test_Modular_Repository","content_type":"yum"},{"id":15,"name":"Test + Docker Repository","label":"Test_Docker_Repository","content_type":"docker"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]}]} ' headers: @@ -143,7 +142,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '1353' + - '1270' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -155,9 +154,9 @@ interactions: Foreman_current_location: - ; ANY Foreman_current_organization: - - 11; Test Organization + - 7; Test Organization Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=98 Strict-Transport-Security: @@ -187,22 +186,21 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/content_views/19/filters?search=name%3D%22Test+Content+View+Filter+-+modulemd%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/content_views/11/filters?search=name%3D%22Test+Content+View+Filter+-+modulemd%22&per_page=4294967296 response: body: string: '{"total":10,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Content View Filter - modulemd\"","sort":{"by":"name","order":"asc"},"results":[{"inclusion":false,"id":63,"name":"Test - Content View Filter - modulemd","description":null,"created_at":"2023-06-05 - 22:35:00 UTC","updated_at":"2023-06-05 22:35:00 UTC","content_view":{"composite":false,"component_ids":[],"default":false,"version_count":0,"latest_version":null,"latest_version_id":null,"auto_publish":false,"solve_dependencies":false,"import_only":false,"generated_for":"none","related_cv_count":0,"related_composite_cvs":[],"needs_publish":true,"filtered":true,"repository_ids":[31,32,33,34],"id":19,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":11,"organization":{"name":"Test - Organization","label":"Test_Organization","id":11},"created_at":"2023-06-05 - 22:34:51 UTC","updated_at":"2023-06-05 22:34:51 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":31,"name":"Test - Repository","label":"Test_Repository","content_type":"yum"},{"id":32,"name":"Test - Modular Repository","label":"Test_Modular_Repository","content_type":"yum"},{"id":33,"name":"Test - Docker Repository","label":"Test_Docker_Repository","content_type":"docker"},{"id":34,"name":"Test - Debian Repository","label":"Test_Debian_Repository","content_type":"deb"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]},"repositories":[],"type":"modulemd","rules":[{"content_view_filter_id":63,"module_stream_id":24,"id":4,"created_at":"2023-06-05 - 22:35:13 UTC","updated_at":"2023-06-05 22:35:13 UTC"},{"content_view_filter_id":63,"module_stream_id":11,"id":5,"created_at":"2023-06-05 - 22:35:14 UTC","updated_at":"2023-06-05 22:35:14 UTC"}]}]} + Content View Filter - modulemd\"","sort":{"by":"name","order":"asc"},"results":[{"inclusion":false,"id":59,"name":"Test + Content View Filter - modulemd","description":null,"created_at":"2024-07-24 + 14:54:44 UTC","updated_at":"2024-07-24 14:54:44 UTC","content_view":{"composite":false,"component_ids":[],"duplicate_repositories_to_publish":[],"default":false,"version_count":0,"latest_version":null,"latest_version_id":null,"auto_publish":false,"solve_dependencies":false,"import_only":false,"generated_for":"none","related_cv_count":0,"related_composite_cvs":[],"filtered":true,"repository_ids":[13,14,15],"id":11,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":7,"organization":{"name":"Test + Organization","label":"Test_Organization","id":7},"created_at":"2024-07-24 + 14:54:40 UTC","updated_at":"2024-07-24 14:54:40 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":13,"name":"Test + Repository","label":"Test_Repository","content_type":"yum"},{"id":14,"name":"Test + Modular Repository","label":"Test_Modular_Repository","content_type":"yum"},{"id":15,"name":"Test + Docker Repository","label":"Test_Docker_Repository","content_type":"docker"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]},"repositories":[],"type":"modulemd","rules":[{"content_view_filter_id":59,"module_stream_id":24,"id":10,"created_at":"2024-07-24 + 14:54:51 UTC","updated_at":"2024-07-24 14:54:51 UTC"},{"content_view_filter_id":59,"module_stream_id":11,"id":11,"created_at":"2024-07-24 + 14:54:51 UTC","updated_at":"2024-07-24 14:54:51 UTC"}]}]} ' headers: @@ -211,7 +209,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '1877' + - '1796' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -225,7 +223,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=97 Strict-Transport-Security: @@ -258,8 +256,8 @@ interactions: uri: https://foreman.example.org/katello/api/module_streams?search=name%3D%22389-directory-server%22%2Cstream%3D%22next%22%2Cversion%3D%22820220325123957%22%2Ccontext%3D%229edba152%22&per_page=4294967296 response: body: - string: '{"total":24,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"389-directory-server\",stream=\"next\",version=\"820220325123957\",context=\"9edba152\"","sort":{"by":"name","order":"asc"},"results":[{"id":24,"name":"389-directory-server","pulp_id":"/pulp/api/v3/content/rpm/modulemds/0e721ce9-6995-40e8-8086-a5a47b89af0b/","version":"820220325123957","context":"9edba152","stream":"next","arch":"x86_64","description":"389 - Directory Server is an LDAPv3 compliant server.","summary":null,"module_spec":"389-directory-server:next:820220325123957:9edba152:x86_64","uuid":"/pulp/api/v3/content/rpm/modulemds/0e721ce9-6995-40e8-8086-a5a47b89af0b/"}]} + string: '{"total":24,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"389-directory-server\",stream=\"next\",version=\"820220325123957\",context=\"9edba152\"","sort":{"by":"name","order":"asc"},"results":[{"id":24,"name":"389-directory-server","pulp_id":"/pulp/api/v3/content/rpm/modulemds/0190e45f-010d-74d7-a9a1-cd01d6fdc194/","version":"820220325123957","context":"9edba152","stream":"next","arch":"x86_64","description":"389 + Directory Server is an LDAPv3 compliant server.","summary":null,"module_spec":"389-directory-server:next:820220325123957:9edba152:x86_64","uuid":"/pulp/api/v3/content/rpm/modulemds/0190e45f-010d-74d7-a9a1-cd01d6fdc194/"}]} ' headers: @@ -282,7 +280,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=96 Strict-Transport-Security: @@ -312,11 +310,11 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/content_view_filters/63/rules?search=id%3D%224%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/content_view_filters/59/rules?search=id%3D%2210%22&per_page=4294967296 response: body: - string: '{"total":2,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"id=\"4\"","sort":{"by":"id","order":"asc"},"results":[{"content_view_filter_id":63,"module_stream_id":24,"id":4,"created_at":"2023-06-05 - 22:35:13 UTC","updated_at":"2023-06-05 22:35:13 UTC"}]} + string: '{"total":2,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"id=\"10\"","sort":{"by":"id","order":"asc"},"results":[{"content_view_filter_id":59,"module_stream_id":24,"id":10,"created_at":"2024-07-24 + 14:54:51 UTC","updated_at":"2024-07-24 14:54:51 UTC"}]} ' headers: @@ -325,7 +323,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '288' + - '290' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -339,7 +337,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=95 Strict-Transport-Security: @@ -371,11 +369,11 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: DELETE - uri: https://foreman.example.org/katello/api/content_view_filters/63/rules/4 + uri: https://foreman.example.org/katello/api/content_view_filters/59/rules/10 response: body: - string: ' {"content_view_filter_id":63,"module_stream_id":24,"id":4,"created_at":"2023-06-05 - 22:35:13 UTC","updated_at":"2023-06-05 22:35:13 UTC"} + string: ' {"content_view_filter_id":59,"module_stream_id":24,"id":10,"created_at":"2024-07-24 + 14:54:51 UTC","updated_at":"2024-07-24 14:54:51 UTC","module_stream":{"module_stream_id":24,"module_stream_name":"389-directory-server","module_stream_stream":"next"}} ' headers: @@ -384,7 +382,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '139' + - '254' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -398,7 +396,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=94 Strict-Transport-Security: diff --git a/tests/test_playbooks/fixtures/content_view_filter_rule-15.yml b/tests/test_playbooks/fixtures/content_view_filter_rule-15.yml index db46e0ce..74c7d264 100644 --- a/tests/test_playbooks/fixtures/content_view_filter_rule-15.yml +++ b/tests/test_playbooks/fixtures/content_view_filter_rule-15.yml @@ -14,14 +14,14 @@ interactions: uri: https://foreman.example.org/api/status response: body: - string: '{"result":"ok","status":200,"version":"3.7.0-rc2","api_version":2}' + string: '{"result":"ok","status":200,"version":"3.12.0-develop","api_version":2}' headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive Content-Length: - - '66' + - '71' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -35,7 +35,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=100 Strict-Transport-Security: @@ -70,8 +70,8 @@ interactions: body: string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": 4294967296,\n \"search\": \"name=\\\"Test Organization\\\"\",\n \"sort\": - {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\":\"Test_Organization\",\"created_at\":\"2023-06-05 - 22:32:12 UTC\",\"updated_at\":\"2023-06-05 22:32:15 UTC\",\"id\":11,\"name\":\"Test + {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\":\"Test_Organization\",\"created_at\":\"2024-07-24 + 14:53:36 UTC\",\"updated_at\":\"2024-07-24 14:53:38 UTC\",\"id\":7,\"name\":\"Test Organization\",\"title\":\"Test Organization\",\"description\":\"A test organization\"}]\n}\n" headers: Cache-Control: @@ -79,7 +79,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '389' + - '388' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -93,7 +93,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=99 Strict-Transport-Security: @@ -123,18 +123,17 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/organizations/11/content_views?search=name%3D%22Test+Content+View%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/organizations/7/content_views?search=name%3D%22Test+Content+View%22&per_page=4294967296 response: body: string: '{"total":2,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Content View\"","sort":{"by":"name","order":"asc"},"results":[{"composite":false,"component_ids":[],"default":false,"version_count":0,"latest_version":null,"latest_version_id":null,"auto_publish":false,"solve_dependencies":false,"import_only":false,"generated_for":"none","related_cv_count":0,"related_composite_cvs":[],"needs_publish":true,"filtered":true,"repository_ids":[31,32,33,34],"id":19,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":11,"organization":{"name":"Test - Organization","label":"Test_Organization","id":11},"created_at":"2023-06-05 - 22:34:51 UTC","updated_at":"2023-06-05 22:34:51 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":31,"name":"Test - Repository","label":"Test_Repository","content_type":"yum"},{"id":32,"name":"Test - Modular Repository","label":"Test_Modular_Repository","content_type":"yum"},{"id":33,"name":"Test - Docker Repository","label":"Test_Docker_Repository","content_type":"docker"},{"id":34,"name":"Test - Debian Repository","label":"Test_Debian_Repository","content_type":"deb"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]}]} + Content View\"","sort":{"by":"name","order":"asc"},"results":[{"composite":false,"component_ids":[],"duplicate_repositories_to_publish":[],"default":false,"version_count":0,"latest_version":null,"latest_version_id":null,"auto_publish":false,"solve_dependencies":false,"import_only":false,"generated_for":"none","related_cv_count":0,"related_composite_cvs":[],"filtered":true,"repository_ids":[13,14,15],"id":11,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":7,"organization":{"name":"Test + Organization","label":"Test_Organization","id":7},"created_at":"2024-07-24 + 14:54:40 UTC","updated_at":"2024-07-24 14:54:40 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":13,"name":"Test + Repository","label":"Test_Repository","content_type":"yum"},{"id":14,"name":"Test + Modular Repository","label":"Test_Modular_Repository","content_type":"yum"},{"id":15,"name":"Test + Docker Repository","label":"Test_Docker_Repository","content_type":"docker"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]}]} ' headers: @@ -143,7 +142,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '1353' + - '1270' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -155,9 +154,9 @@ interactions: Foreman_current_location: - ; ANY Foreman_current_organization: - - 11; Test Organization + - 7; Test Organization Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=98 Strict-Transport-Security: @@ -187,21 +186,20 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/content_views/19/filters?search=name%3D%22Test+Content+View+Filter+-+modulemd%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/content_views/11/filters?search=name%3D%22Test+Content+View+Filter+-+modulemd%22&per_page=4294967296 response: body: string: '{"total":10,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Content View Filter - modulemd\"","sort":{"by":"name","order":"asc"},"results":[{"inclusion":false,"id":63,"name":"Test - Content View Filter - modulemd","description":null,"created_at":"2023-06-05 - 22:35:00 UTC","updated_at":"2023-06-05 22:35:00 UTC","content_view":{"composite":false,"component_ids":[],"default":false,"version_count":0,"latest_version":null,"latest_version_id":null,"auto_publish":false,"solve_dependencies":false,"import_only":false,"generated_for":"none","related_cv_count":0,"related_composite_cvs":[],"needs_publish":true,"filtered":true,"repository_ids":[31,32,33,34],"id":19,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":11,"organization":{"name":"Test - Organization","label":"Test_Organization","id":11},"created_at":"2023-06-05 - 22:34:51 UTC","updated_at":"2023-06-05 22:34:51 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":31,"name":"Test - Repository","label":"Test_Repository","content_type":"yum"},{"id":32,"name":"Test - Modular Repository","label":"Test_Modular_Repository","content_type":"yum"},{"id":33,"name":"Test - Docker Repository","label":"Test_Docker_Repository","content_type":"docker"},{"id":34,"name":"Test - Debian Repository","label":"Test_Debian_Repository","content_type":"deb"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]},"repositories":[],"type":"modulemd","rules":[{"content_view_filter_id":63,"module_stream_id":11,"id":5,"created_at":"2023-06-05 - 22:35:14 UTC","updated_at":"2023-06-05 22:35:14 UTC"}]}]} + Content View Filter - modulemd\"","sort":{"by":"name","order":"asc"},"results":[{"inclusion":false,"id":59,"name":"Test + Content View Filter - modulemd","description":null,"created_at":"2024-07-24 + 14:54:44 UTC","updated_at":"2024-07-24 14:54:44 UTC","content_view":{"composite":false,"component_ids":[],"duplicate_repositories_to_publish":[],"default":false,"version_count":0,"latest_version":null,"latest_version_id":null,"auto_publish":false,"solve_dependencies":false,"import_only":false,"generated_for":"none","related_cv_count":0,"related_composite_cvs":[],"filtered":true,"repository_ids":[13,14,15],"id":11,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":7,"organization":{"name":"Test + Organization","label":"Test_Organization","id":7},"created_at":"2024-07-24 + 14:54:40 UTC","updated_at":"2024-07-24 14:54:40 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":13,"name":"Test + Repository","label":"Test_Repository","content_type":"yum"},{"id":14,"name":"Test + Modular Repository","label":"Test_Modular_Repository","content_type":"yum"},{"id":15,"name":"Test + Docker Repository","label":"Test_Docker_Repository","content_type":"docker"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]},"repositories":[],"type":"modulemd","rules":[{"content_view_filter_id":59,"module_stream_id":11,"id":11,"created_at":"2024-07-24 + 14:54:51 UTC","updated_at":"2024-07-24 14:54:51 UTC"}]}]} ' headers: @@ -210,7 +208,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '1740' + - '1658' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -224,7 +222,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=97 Strict-Transport-Security: @@ -257,8 +255,8 @@ interactions: uri: https://foreman.example.org/katello/api/module_streams?search=name%3D%22389-directory-server%22%2Cstream%3D%22next%22%2Cversion%3D%22820220325123957%22%2Ccontext%3D%229edba152%22&per_page=4294967296 response: body: - string: '{"total":24,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"389-directory-server\",stream=\"next\",version=\"820220325123957\",context=\"9edba152\"","sort":{"by":"name","order":"asc"},"results":[{"id":24,"name":"389-directory-server","pulp_id":"/pulp/api/v3/content/rpm/modulemds/0e721ce9-6995-40e8-8086-a5a47b89af0b/","version":"820220325123957","context":"9edba152","stream":"next","arch":"x86_64","description":"389 - Directory Server is an LDAPv3 compliant server.","summary":null,"module_spec":"389-directory-server:next:820220325123957:9edba152:x86_64","uuid":"/pulp/api/v3/content/rpm/modulemds/0e721ce9-6995-40e8-8086-a5a47b89af0b/"}]} + string: '{"total":24,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"389-directory-server\",stream=\"next\",version=\"820220325123957\",context=\"9edba152\"","sort":{"by":"name","order":"asc"},"results":[{"id":24,"name":"389-directory-server","pulp_id":"/pulp/api/v3/content/rpm/modulemds/0190e45f-010d-74d7-a9a1-cd01d6fdc194/","version":"820220325123957","context":"9edba152","stream":"next","arch":"x86_64","description":"389 + Directory Server is an LDAPv3 compliant server.","summary":null,"module_spec":"389-directory-server:next:820220325123957:9edba152:x86_64","uuid":"/pulp/api/v3/content/rpm/modulemds/0190e45f-010d-74d7-a9a1-cd01d6fdc194/"}]} ' headers: @@ -281,7 +279,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=96 Strict-Transport-Security: diff --git a/tests/test_playbooks/fixtures/content_view_filter_rule-16.yml b/tests/test_playbooks/fixtures/content_view_filter_rule-16.yml index 65c15a5a..1c458592 100644 --- a/tests/test_playbooks/fixtures/content_view_filter_rule-16.yml +++ b/tests/test_playbooks/fixtures/content_view_filter_rule-16.yml @@ -14,14 +14,14 @@ interactions: uri: https://foreman.example.org/api/status response: body: - string: '{"result":"ok","status":200,"version":"3.7.0-rc2","api_version":2}' + string: '{"result":"ok","status":200,"version":"3.12.0-develop","api_version":2}' headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive Content-Length: - - '66' + - '71' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -35,7 +35,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=100 Strict-Transport-Security: @@ -70,8 +70,8 @@ interactions: body: string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": 4294967296,\n \"search\": \"name=\\\"Test Organization\\\"\",\n \"sort\": - {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\":\"Test_Organization\",\"created_at\":\"2023-06-05 - 22:32:12 UTC\",\"updated_at\":\"2023-06-05 22:32:15 UTC\",\"id\":11,\"name\":\"Test + {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\":\"Test_Organization\",\"created_at\":\"2024-07-24 + 14:53:36 UTC\",\"updated_at\":\"2024-07-24 14:53:38 UTC\",\"id\":7,\"name\":\"Test Organization\",\"title\":\"Test Organization\",\"description\":\"A test organization\"}]\n}\n" headers: Cache-Control: @@ -79,7 +79,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '389' + - '388' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -93,7 +93,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=99 Strict-Transport-Security: @@ -123,18 +123,17 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/organizations/11/content_views?search=name%3D%22Test+Content+View%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/organizations/7/content_views?search=name%3D%22Test+Content+View%22&per_page=4294967296 response: body: string: '{"total":2,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Content View\"","sort":{"by":"name","order":"asc"},"results":[{"composite":false,"component_ids":[],"default":false,"version_count":0,"latest_version":null,"latest_version_id":null,"auto_publish":false,"solve_dependencies":false,"import_only":false,"generated_for":"none","related_cv_count":0,"related_composite_cvs":[],"needs_publish":true,"filtered":true,"repository_ids":[31,32,33,34],"id":19,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":11,"organization":{"name":"Test - Organization","label":"Test_Organization","id":11},"created_at":"2023-06-05 - 22:34:51 UTC","updated_at":"2023-06-05 22:34:51 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":31,"name":"Test - Repository","label":"Test_Repository","content_type":"yum"},{"id":32,"name":"Test - Modular Repository","label":"Test_Modular_Repository","content_type":"yum"},{"id":33,"name":"Test - Docker Repository","label":"Test_Docker_Repository","content_type":"docker"},{"id":34,"name":"Test - Debian Repository","label":"Test_Debian_Repository","content_type":"deb"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]}]} + Content View\"","sort":{"by":"name","order":"asc"},"results":[{"composite":false,"component_ids":[],"duplicate_repositories_to_publish":[],"default":false,"version_count":0,"latest_version":null,"latest_version_id":null,"auto_publish":false,"solve_dependencies":false,"import_only":false,"generated_for":"none","related_cv_count":0,"related_composite_cvs":[],"filtered":true,"repository_ids":[13,14,15],"id":11,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":7,"organization":{"name":"Test + Organization","label":"Test_Organization","id":7},"created_at":"2024-07-24 + 14:54:40 UTC","updated_at":"2024-07-24 14:54:40 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":13,"name":"Test + Repository","label":"Test_Repository","content_type":"yum"},{"id":14,"name":"Test + Modular Repository","label":"Test_Modular_Repository","content_type":"yum"},{"id":15,"name":"Test + Docker Repository","label":"Test_Docker_Repository","content_type":"docker"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]}]} ' headers: @@ -143,7 +142,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '1353' + - '1270' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -155,9 +154,9 @@ interactions: Foreman_current_location: - ; ANY Foreman_current_organization: - - 11; Test Organization + - 7; Test Organization Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=98 Strict-Transport-Security: @@ -187,21 +186,20 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/content_views/19/filters?search=name%3D%22Test+Content+View+Filter+-+modulemd%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/content_views/11/filters?search=name%3D%22Test+Content+View+Filter+-+modulemd%22&per_page=4294967296 response: body: string: '{"total":10,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Content View Filter - modulemd\"","sort":{"by":"name","order":"asc"},"results":[{"inclusion":false,"id":63,"name":"Test - Content View Filter - modulemd","description":null,"created_at":"2023-06-05 - 22:35:00 UTC","updated_at":"2023-06-05 22:35:00 UTC","content_view":{"composite":false,"component_ids":[],"default":false,"version_count":0,"latest_version":null,"latest_version_id":null,"auto_publish":false,"solve_dependencies":false,"import_only":false,"generated_for":"none","related_cv_count":0,"related_composite_cvs":[],"needs_publish":true,"filtered":true,"repository_ids":[31,32,33,34],"id":19,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":11,"organization":{"name":"Test - Organization","label":"Test_Organization","id":11},"created_at":"2023-06-05 - 22:34:51 UTC","updated_at":"2023-06-05 22:34:51 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":31,"name":"Test - Repository","label":"Test_Repository","content_type":"yum"},{"id":32,"name":"Test - Modular Repository","label":"Test_Modular_Repository","content_type":"yum"},{"id":33,"name":"Test - Docker Repository","label":"Test_Docker_Repository","content_type":"docker"},{"id":34,"name":"Test - Debian Repository","label":"Test_Debian_Repository","content_type":"deb"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]},"repositories":[],"type":"modulemd","rules":[{"content_view_filter_id":63,"module_stream_id":11,"id":5,"created_at":"2023-06-05 - 22:35:14 UTC","updated_at":"2023-06-05 22:35:14 UTC"}]}]} + Content View Filter - modulemd\"","sort":{"by":"name","order":"asc"},"results":[{"inclusion":false,"id":59,"name":"Test + Content View Filter - modulemd","description":null,"created_at":"2024-07-24 + 14:54:44 UTC","updated_at":"2024-07-24 14:54:44 UTC","content_view":{"composite":false,"component_ids":[],"duplicate_repositories_to_publish":[],"default":false,"version_count":0,"latest_version":null,"latest_version_id":null,"auto_publish":false,"solve_dependencies":false,"import_only":false,"generated_for":"none","related_cv_count":0,"related_composite_cvs":[],"filtered":true,"repository_ids":[13,14,15],"id":11,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":7,"organization":{"name":"Test + Organization","label":"Test_Organization","id":7},"created_at":"2024-07-24 + 14:54:40 UTC","updated_at":"2024-07-24 14:54:40 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":13,"name":"Test + Repository","label":"Test_Repository","content_type":"yum"},{"id":14,"name":"Test + Modular Repository","label":"Test_Modular_Repository","content_type":"yum"},{"id":15,"name":"Test + Docker Repository","label":"Test_Docker_Repository","content_type":"docker"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]},"repositories":[],"type":"modulemd","rules":[{"content_view_filter_id":59,"module_stream_id":11,"id":11,"created_at":"2024-07-24 + 14:54:51 UTC","updated_at":"2024-07-24 14:54:51 UTC"}]}]} ' headers: @@ -210,7 +208,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '1740' + - '1658' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -224,7 +222,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=97 Strict-Transport-Security: @@ -257,8 +255,8 @@ interactions: uri: https://foreman.example.org/katello/api/module_streams?search=name%3D%22389-directory-server%22%2Cstream%3D%22next%22%2Cversion%3D%22820220325123957%22%2Ccontext%3D%229edba152%22&per_page=4294967296 response: body: - string: '{"total":24,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"389-directory-server\",stream=\"next\",version=\"820220325123957\",context=\"9edba152\"","sort":{"by":"name","order":"asc"},"results":[{"id":24,"name":"389-directory-server","pulp_id":"/pulp/api/v3/content/rpm/modulemds/0e721ce9-6995-40e8-8086-a5a47b89af0b/","version":"820220325123957","context":"9edba152","stream":"next","arch":"x86_64","description":"389 - Directory Server is an LDAPv3 compliant server.","summary":null,"module_spec":"389-directory-server:next:820220325123957:9edba152:x86_64","uuid":"/pulp/api/v3/content/rpm/modulemds/0e721ce9-6995-40e8-8086-a5a47b89af0b/"}]} + string: '{"total":24,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"389-directory-server\",stream=\"next\",version=\"820220325123957\",context=\"9edba152\"","sort":{"by":"name","order":"asc"},"results":[{"id":24,"name":"389-directory-server","pulp_id":"/pulp/api/v3/content/rpm/modulemds/0190e45f-010d-74d7-a9a1-cd01d6fdc194/","version":"820220325123957","context":"9edba152","stream":"next","arch":"x86_64","description":"389 + Directory Server is an LDAPv3 compliant server.","summary":null,"module_spec":"389-directory-server:next:820220325123957:9edba152:x86_64","uuid":"/pulp/api/v3/content/rpm/modulemds/0190e45f-010d-74d7-a9a1-cd01d6fdc194/"}]} ' headers: @@ -281,7 +279,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=96 Strict-Transport-Security: @@ -314,9 +312,9 @@ interactions: uri: https://foreman.example.org/katello/api/module_streams/24 response: body: - string: ' {"id":24,"name":"389-directory-server","pulp_id":"/pulp/api/v3/content/rpm/modulemds/0e721ce9-6995-40e8-8086-a5a47b89af0b/","version":"820220325123957","context":"9edba152","stream":"next","arch":"x86_64","description":"389 - Directory Server is an LDAPv3 compliant server.","summary":null,"module_spec":"389-directory-server:next:820220325123957:9edba152:x86_64","uuid":"/pulp/api/v3/content/rpm/modulemds/0e721ce9-6995-40e8-8086-a5a47b89af0b/","artifacts":[{"id":411,"name":"389-ds-base-0:2.0.15-1.module_el8+14202+84d723da.src"},{"id":412,"name":"389-ds-base-0:2.0.15-1.module_el8+14202+84d723da.x86_64"},{"id":413,"name":"389-ds-base-debuginfo-0:2.0.15-1.module_el8+14202+84d723da.x86_64"},{"id":414,"name":"389-ds-base-debugsource-0:2.0.15-1.module_el8+14202+84d723da.x86_64"},{"id":415,"name":"389-ds-base-devel-0:2.0.15-1.module_el8+14202+84d723da.x86_64"},{"id":416,"name":"389-ds-base-libs-0:2.0.15-1.module_el8+14202+84d723da.x86_64"},{"id":417,"name":"389-ds-base-libs-debuginfo-0:2.0.15-1.module_el8+14202+84d723da.x86_64"},{"id":418,"name":"389-ds-base-snmp-0:2.0.15-1.module_el8+14202+84d723da.x86_64"},{"id":419,"name":"389-ds-base-snmp-debuginfo-0:2.0.15-1.module_el8+14202+84d723da.x86_64"},{"id":420,"name":"cockpit-389-ds-0:2.0.15-1.module_el8+14202+84d723da.noarch"},{"id":421,"name":"python3-lib389-0:2.0.15-1.module_el8+14202+84d723da.noarch"}],"profiles":[{"id":50,"name":"default","rpms":[{"id":91,"name":"389-ds-base"},{"id":92,"name":"cockpit-389-ds"}]},{"id":51,"name":"minimal","rpms":[{"id":93,"name":"389-ds-base"}]}],"repositories":[{"id":32,"name":"Test - Modular Repository","product_id":10,"product_name":"Test Product"}]} + string: ' {"id":24,"name":"389-directory-server","pulp_id":"/pulp/api/v3/content/rpm/modulemds/0190e45f-010d-74d7-a9a1-cd01d6fdc194/","version":"820220325123957","context":"9edba152","stream":"next","arch":"x86_64","description":"389 + Directory Server is an LDAPv3 compliant server.","summary":null,"module_spec":"389-directory-server:next:820220325123957:9edba152:x86_64","uuid":"/pulp/api/v3/content/rpm/modulemds/0190e45f-010d-74d7-a9a1-cd01d6fdc194/","artifacts":[{"id":411,"name":"389-ds-base-0:2.0.15-1.module_el8+14202+84d723da.src"},{"id":412,"name":"389-ds-base-0:2.0.15-1.module_el8+14202+84d723da.x86_64"},{"id":413,"name":"389-ds-base-debuginfo-0:2.0.15-1.module_el8+14202+84d723da.x86_64"},{"id":414,"name":"389-ds-base-debugsource-0:2.0.15-1.module_el8+14202+84d723da.x86_64"},{"id":415,"name":"389-ds-base-devel-0:2.0.15-1.module_el8+14202+84d723da.x86_64"},{"id":416,"name":"389-ds-base-libs-0:2.0.15-1.module_el8+14202+84d723da.x86_64"},{"id":417,"name":"389-ds-base-libs-debuginfo-0:2.0.15-1.module_el8+14202+84d723da.x86_64"},{"id":418,"name":"389-ds-base-snmp-0:2.0.15-1.module_el8+14202+84d723da.x86_64"},{"id":419,"name":"389-ds-base-snmp-debuginfo-0:2.0.15-1.module_el8+14202+84d723da.x86_64"},{"id":420,"name":"cockpit-389-ds-0:2.0.15-1.module_el8+14202+84d723da.noarch"},{"id":421,"name":"python3-lib389-0:2.0.15-1.module_el8+14202+84d723da.noarch"}],"profiles":[{"id":50,"name":"default","rpms":[{"id":91,"name":"389-ds-base"},{"id":92,"name":"cockpit-389-ds"}]},{"id":51,"name":"minimal","rpms":[{"id":93,"name":"389-ds-base"}]}],"repositories":[{"id":14,"name":"Test + Modular Repository","product_id":5,"product_name":"Test Product"}]} ' headers: @@ -325,7 +323,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '1655' + - '1654' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -339,7 +337,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=95 Strict-Transport-Security: @@ -373,11 +371,11 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: POST - uri: https://foreman.example.org/katello/api/content_view_filters/63/rules + uri: https://foreman.example.org/katello/api/content_view_filters/59/rules response: body: - string: ' {"content_view_filter_id":63,"module_stream_id":24,"id":6,"created_at":"2023-06-05 - 22:35:19 UTC","updated_at":"2023-06-05 22:35:19 UTC"} + string: ' {"content_view_filter_id":59,"module_stream_id":24,"id":12,"created_at":"2024-07-24 + 14:54:53 UTC","updated_at":"2024-07-24 14:54:53 UTC","module_stream":{"module_stream_id":24,"module_stream_name":"389-directory-server","module_stream_stream":"next"}} ' headers: @@ -386,7 +384,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '139' + - '254' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -400,7 +398,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=94 Strict-Transport-Security: diff --git a/tests/test_playbooks/fixtures/content_view_filter_rule-17.yml b/tests/test_playbooks/fixtures/content_view_filter_rule-17.yml index 29647158..9c129894 100644 --- a/tests/test_playbooks/fixtures/content_view_filter_rule-17.yml +++ b/tests/test_playbooks/fixtures/content_view_filter_rule-17.yml @@ -14,14 +14,14 @@ interactions: uri: https://foreman.example.org/api/status response: body: - string: '{"result":"ok","status":200,"version":"3.7.0-rc2","api_version":2}' + string: '{"result":"ok","status":200,"version":"3.12.0-develop","api_version":2}' headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive Content-Length: - - '66' + - '71' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -35,7 +35,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=100 Strict-Transport-Security: @@ -70,8 +70,8 @@ interactions: body: string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": 4294967296,\n \"search\": \"name=\\\"Test Organization\\\"\",\n \"sort\": - {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\":\"Test_Organization\",\"created_at\":\"2023-06-05 - 22:32:12 UTC\",\"updated_at\":\"2023-06-05 22:32:15 UTC\",\"id\":11,\"name\":\"Test + {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\":\"Test_Organization\",\"created_at\":\"2024-07-24 + 14:53:36 UTC\",\"updated_at\":\"2024-07-24 14:53:38 UTC\",\"id\":7,\"name\":\"Test Organization\",\"title\":\"Test Organization\",\"description\":\"A test organization\"}]\n}\n" headers: Cache-Control: @@ -79,7 +79,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '389' + - '388' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -93,7 +93,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=99 Strict-Transport-Security: @@ -123,18 +123,17 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/organizations/11/content_views?search=name%3D%22Test+Content+View%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/organizations/7/content_views?search=name%3D%22Test+Content+View%22&per_page=4294967296 response: body: string: '{"total":2,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Content View\"","sort":{"by":"name","order":"asc"},"results":[{"composite":false,"component_ids":[],"default":false,"version_count":0,"latest_version":null,"latest_version_id":null,"auto_publish":false,"solve_dependencies":false,"import_only":false,"generated_for":"none","related_cv_count":0,"related_composite_cvs":[],"needs_publish":true,"filtered":true,"repository_ids":[31,32,33,34],"id":19,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":11,"organization":{"name":"Test - Organization","label":"Test_Organization","id":11},"created_at":"2023-06-05 - 22:34:51 UTC","updated_at":"2023-06-05 22:34:51 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":31,"name":"Test - Repository","label":"Test_Repository","content_type":"yum"},{"id":32,"name":"Test - Modular Repository","label":"Test_Modular_Repository","content_type":"yum"},{"id":33,"name":"Test - Docker Repository","label":"Test_Docker_Repository","content_type":"docker"},{"id":34,"name":"Test - Debian Repository","label":"Test_Debian_Repository","content_type":"deb"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]}]} + Content View\"","sort":{"by":"name","order":"asc"},"results":[{"composite":false,"component_ids":[],"duplicate_repositories_to_publish":[],"default":false,"version_count":0,"latest_version":null,"latest_version_id":null,"auto_publish":false,"solve_dependencies":false,"import_only":false,"generated_for":"none","related_cv_count":0,"related_composite_cvs":[],"filtered":true,"repository_ids":[13,14,15],"id":11,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":7,"organization":{"name":"Test + Organization","label":"Test_Organization","id":7},"created_at":"2024-07-24 + 14:54:40 UTC","updated_at":"2024-07-24 14:54:40 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":13,"name":"Test + Repository","label":"Test_Repository","content_type":"yum"},{"id":14,"name":"Test + Modular Repository","label":"Test_Modular_Repository","content_type":"yum"},{"id":15,"name":"Test + Docker Repository","label":"Test_Docker_Repository","content_type":"docker"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]}]} ' headers: @@ -143,7 +142,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '1353' + - '1270' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -155,9 +154,9 @@ interactions: Foreman_current_location: - ; ANY Foreman_current_organization: - - 11; Test Organization + - 7; Test Organization Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=98 Strict-Transport-Security: @@ -187,20 +186,21 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/content_views/19/filters?search=name%3D%22Test+Content+View+Filter+-+deb%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/content_views/11/filters?search=name%3D%22Test+Content+View+Filter+-+rpm%22&per_page=4294967296 response: body: string: '{"total":10,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Content View Filter - deb\"","sort":{"by":"name","order":"asc"},"results":[{"inclusion":false,"id":64,"name":"Test - Content View Filter - deb","description":null,"created_at":"2023-06-05 22:35:01 - UTC","updated_at":"2023-06-05 22:35:01 UTC","content_view":{"composite":false,"component_ids":[],"default":false,"version_count":0,"latest_version":null,"latest_version_id":null,"auto_publish":false,"solve_dependencies":false,"import_only":false,"generated_for":"none","related_cv_count":0,"related_composite_cvs":[],"needs_publish":true,"filtered":true,"repository_ids":[31,32,33,34],"id":19,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":11,"organization":{"name":"Test - Organization","label":"Test_Organization","id":11},"created_at":"2023-06-05 - 22:34:51 UTC","updated_at":"2023-06-05 22:34:51 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":31,"name":"Test - Repository","label":"Test_Repository","content_type":"yum"},{"id":32,"name":"Test - Modular Repository","label":"Test_Modular_Repository","content_type":"yum"},{"id":33,"name":"Test - Docker Repository","label":"Test_Docker_Repository","content_type":"docker"},{"id":34,"name":"Test - Debian Repository","label":"Test_Debian_Repository","content_type":"deb"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]},"repositories":[],"type":"deb","rules":[]}]} + Content View Filter - rpm\"","sort":{"by":"name","order":"asc"},"results":[{"inclusion":false,"id":54,"name":"Test + Content View Filter - rpm","description":null,"created_at":"2024-07-24 14:54:42 + UTC","updated_at":"2024-07-24 14:54:42 UTC","content_view":{"composite":false,"component_ids":[],"duplicate_repositories_to_publish":[],"default":false,"version_count":0,"latest_version":null,"latest_version_id":null,"auto_publish":false,"solve_dependencies":false,"import_only":false,"generated_for":"none","related_cv_count":0,"related_composite_cvs":[],"filtered":true,"repository_ids":[13,14,15],"id":11,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":7,"organization":{"name":"Test + Organization","label":"Test_Organization","id":7},"created_at":"2024-07-24 + 14:54:40 UTC","updated_at":"2024-07-24 14:54:40 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":13,"name":"Test + Repository","label":"Test_Repository","content_type":"yum"},{"id":14,"name":"Test + Modular Repository","label":"Test_Modular_Repository","content_type":"yum"},{"id":15,"name":"Test + Docker Repository","label":"Test_Docker_Repository","content_type":"docker"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]},"repositories":[],"type":"rpm","rules":[{"content_view_filter_id":54,"id":7,"name":"bear","created_at":"2024-07-24 + 14:54:45 UTC","updated_at":"2024-07-24 14:54:45 UTC"},{"content_view_filter_id":54,"id":8,"name":"camel","created_at":"2024-07-24 + 14:54:46 UTC","updated_at":"2024-07-24 14:54:46 UTC"}]}]} ' headers: @@ -209,7 +209,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '1589' + - '1764' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -223,7 +223,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=97 Strict-Transport-Security: @@ -253,10 +253,11 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/content_view_filters/64/rules?search=name%3D%22bear%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/content_view_filters/54/rules?search=name%3D%22bear%22&per_page=4294967296 response: body: - string: '{"total":0,"subtotal":0,"selectable":0,"page":1,"per_page":"4294967296","error":null,"search":"name=\"bear\"","sort":{"by":"id","order":"asc"},"results":[]} + string: '{"total":2,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"bear\"","sort":{"by":"id","order":"asc"},"results":[{"content_view_filter_id":54,"id":7,"name":"bear","created_at":"2024-07-24 + 14:54:45 UTC","updated_at":"2024-07-24 14:54:45 UTC"}]} ' headers: @@ -265,7 +266,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '157' + - '285' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -279,7 +280,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=96 Strict-Transport-Security: @@ -298,7 +299,7 @@ interactions: code: 200 message: OK - request: - body: '{"name": "bear"}' + body: null headers: Accept: - application/json;version=2 @@ -307,17 +308,15 @@ interactions: Connection: - keep-alive Content-Length: - - '16' - Content-Type: - - application/json + - '0' User-Agent: - apypie (https://github.com/Apipie/apypie) - method: POST - uri: https://foreman.example.org/katello/api/content_view_filters/64/rules + method: DELETE + uri: https://foreman.example.org/katello/api/content_view_filters/54/rules/7 response: body: - string: ' {"content_view_filter_id":64,"id":3,"name":"bear","created_at":"2023-06-05 - 22:35:20 UTC","updated_at":"2023-06-05 22:35:20 UTC"} + string: ' {"content_view_filter_id":54,"id":7,"name":"bear","created_at":"2024-07-24 + 14:54:45 UTC","updated_at":"2024-07-24 14:54:45 UTC"} ' headers: @@ -340,7 +339,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=95 Strict-Transport-Security: @@ -356,6 +355,6 @@ interactions: X-XSS-Protection: - 1; mode=block status: - code: 201 - message: Created + code: 200 + message: OK version: 1 diff --git a/tests/test_playbooks/fixtures/content_view_filter_rule-18.yml b/tests/test_playbooks/fixtures/content_view_filter_rule-18.yml index 9f54ae6d..ed32cd90 100644 --- a/tests/test_playbooks/fixtures/content_view_filter_rule-18.yml +++ b/tests/test_playbooks/fixtures/content_view_filter_rule-18.yml @@ -14,14 +14,14 @@ interactions: uri: https://foreman.example.org/api/status response: body: - string: '{"result":"ok","status":200,"version":"3.7.0-rc2","api_version":2}' + string: '{"result":"ok","status":200,"version":"3.12.0-develop","api_version":2}' headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive Content-Length: - - '66' + - '71' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -35,7 +35,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=100 Strict-Transport-Security: @@ -70,8 +70,8 @@ interactions: body: string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": 4294967296,\n \"search\": \"name=\\\"Test Organization\\\"\",\n \"sort\": - {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\":\"Test_Organization\",\"created_at\":\"2023-06-05 - 22:32:12 UTC\",\"updated_at\":\"2023-06-05 22:32:15 UTC\",\"id\":11,\"name\":\"Test + {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\":\"Test_Organization\",\"created_at\":\"2024-07-24 + 14:53:36 UTC\",\"updated_at\":\"2024-07-24 14:53:38 UTC\",\"id\":7,\"name\":\"Test Organization\",\"title\":\"Test Organization\",\"description\":\"A test organization\"}]\n}\n" headers: Cache-Control: @@ -79,7 +79,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '389' + - '388' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -93,7 +93,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=99 Strict-Transport-Security: @@ -123,18 +123,17 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/organizations/11/content_views?search=name%3D%22Test+Content+View%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/organizations/7/content_views?search=name%3D%22Test+Content+View%22&per_page=4294967296 response: body: string: '{"total":2,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Content View\"","sort":{"by":"name","order":"asc"},"results":[{"composite":false,"component_ids":[],"default":false,"version_count":0,"latest_version":null,"latest_version_id":null,"auto_publish":false,"solve_dependencies":false,"import_only":false,"generated_for":"none","related_cv_count":0,"related_composite_cvs":[],"needs_publish":true,"filtered":true,"repository_ids":[31,32,33,34],"id":19,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":11,"organization":{"name":"Test - Organization","label":"Test_Organization","id":11},"created_at":"2023-06-05 - 22:34:51 UTC","updated_at":"2023-06-05 22:34:51 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":31,"name":"Test - Repository","label":"Test_Repository","content_type":"yum"},{"id":32,"name":"Test - Modular Repository","label":"Test_Modular_Repository","content_type":"yum"},{"id":33,"name":"Test - Docker Repository","label":"Test_Docker_Repository","content_type":"docker"},{"id":34,"name":"Test - Debian Repository","label":"Test_Debian_Repository","content_type":"deb"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]}]} + Content View\"","sort":{"by":"name","order":"asc"},"results":[{"composite":false,"component_ids":[],"duplicate_repositories_to_publish":[],"default":false,"version_count":0,"latest_version":null,"latest_version_id":null,"auto_publish":false,"solve_dependencies":false,"import_only":false,"generated_for":"none","related_cv_count":0,"related_composite_cvs":[],"filtered":true,"repository_ids":[13,14,15],"id":11,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":7,"organization":{"name":"Test + Organization","label":"Test_Organization","id":7},"created_at":"2024-07-24 + 14:54:40 UTC","updated_at":"2024-07-24 14:54:40 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":13,"name":"Test + Repository","label":"Test_Repository","content_type":"yum"},{"id":14,"name":"Test + Modular Repository","label":"Test_Modular_Repository","content_type":"yum"},{"id":15,"name":"Test + Docker Repository","label":"Test_Docker_Repository","content_type":"docker"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]}]} ' headers: @@ -143,7 +142,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '1353' + - '1270' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -155,9 +154,9 @@ interactions: Foreman_current_location: - ; ANY Foreman_current_organization: - - 11; Test Organization + - 7; Test Organization Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=98 Strict-Transport-Security: @@ -187,21 +186,20 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/content_views/19/filters?search=name%3D%22Test+Content+View+Filter+-+deb%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/content_views/11/filters?search=name%3D%22Test+Content+View+Filter+-+rpm%22&per_page=4294967296 response: body: string: '{"total":10,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Content View Filter - deb\"","sort":{"by":"name","order":"asc"},"results":[{"inclusion":false,"id":64,"name":"Test - Content View Filter - deb","description":null,"created_at":"2023-06-05 22:35:01 - UTC","updated_at":"2023-06-05 22:35:01 UTC","content_view":{"composite":false,"component_ids":[],"default":false,"version_count":0,"latest_version":null,"latest_version_id":null,"auto_publish":false,"solve_dependencies":false,"import_only":false,"generated_for":"none","related_cv_count":0,"related_composite_cvs":[],"needs_publish":true,"filtered":true,"repository_ids":[31,32,33,34],"id":19,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":11,"organization":{"name":"Test - Organization","label":"Test_Organization","id":11},"created_at":"2023-06-05 - 22:34:51 UTC","updated_at":"2023-06-05 22:34:51 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":31,"name":"Test - Repository","label":"Test_Repository","content_type":"yum"},{"id":32,"name":"Test - Modular Repository","label":"Test_Modular_Repository","content_type":"yum"},{"id":33,"name":"Test - Docker Repository","label":"Test_Docker_Repository","content_type":"docker"},{"id":34,"name":"Test - Debian Repository","label":"Test_Debian_Repository","content_type":"deb"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]},"repositories":[],"type":"deb","rules":[{"content_view_filter_id":64,"id":3,"name":"bear","created_at":"2023-06-05 - 22:35:20 UTC","updated_at":"2023-06-05 22:35:20 UTC"}]}]} + Content View Filter - rpm\"","sort":{"by":"name","order":"asc"},"results":[{"inclusion":false,"id":54,"name":"Test + Content View Filter - rpm","description":null,"created_at":"2024-07-24 14:54:42 + UTC","updated_at":"2024-07-24 14:54:42 UTC","content_view":{"composite":false,"component_ids":[],"duplicate_repositories_to_publish":[],"default":false,"version_count":0,"latest_version":null,"latest_version_id":null,"auto_publish":false,"solve_dependencies":false,"import_only":false,"generated_for":"none","related_cv_count":0,"related_composite_cvs":[],"filtered":true,"repository_ids":[13,14,15],"id":11,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":7,"organization":{"name":"Test + Organization","label":"Test_Organization","id":7},"created_at":"2024-07-24 + 14:54:40 UTC","updated_at":"2024-07-24 14:54:40 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":13,"name":"Test + Repository","label":"Test_Repository","content_type":"yum"},{"id":14,"name":"Test + Modular Repository","label":"Test_Modular_Repository","content_type":"yum"},{"id":15,"name":"Test + Docker Repository","label":"Test_Docker_Repository","content_type":"docker"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]},"repositories":[],"type":"rpm","rules":[{"content_view_filter_id":54,"id":8,"name":"camel","created_at":"2024-07-24 + 14:54:46 UTC","updated_at":"2024-07-24 14:54:46 UTC"}]}]} ' headers: @@ -210,7 +208,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '1717' + - '1635' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -224,7 +222,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=97 Strict-Transport-Security: @@ -254,10 +252,11 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/content_view_filters/64/rules?search=name%3D%22camel%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/content_view_filters/54/rules?search=name%3D%22camel%22&per_page=4294967296 response: body: - string: '{"total":1,"subtotal":0,"selectable":0,"page":1,"per_page":"4294967296","error":null,"search":"name=\"camel\"","sort":{"by":"id","order":"asc"},"results":[]} + string: '{"total":1,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"camel\"","sort":{"by":"id","order":"asc"},"results":[{"content_view_filter_id":54,"id":8,"name":"camel","created_at":"2024-07-24 + 14:54:46 UTC","updated_at":"2024-07-24 14:54:46 UTC"}]} ' headers: @@ -266,7 +265,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '158' + - '287' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -280,7 +279,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=96 Strict-Transport-Security: @@ -299,7 +298,7 @@ interactions: code: 200 message: OK - request: - body: '{"name": "camel"}' + body: null headers: Accept: - application/json;version=2 @@ -308,17 +307,15 @@ interactions: Connection: - keep-alive Content-Length: - - '17' - Content-Type: - - application/json + - '0' User-Agent: - apypie (https://github.com/Apipie/apypie) - method: POST - uri: https://foreman.example.org/katello/api/content_view_filters/64/rules + method: DELETE + uri: https://foreman.example.org/katello/api/content_view_filters/54/rules/8 response: body: - string: ' {"content_view_filter_id":64,"id":4,"name":"camel","created_at":"2023-06-05 - 22:35:21 UTC","updated_at":"2023-06-05 22:35:21 UTC"} + string: ' {"content_view_filter_id":54,"id":8,"name":"camel","created_at":"2024-07-24 + 14:54:46 UTC","updated_at":"2024-07-24 14:54:46 UTC"} ' headers: @@ -341,7 +338,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=95 Strict-Transport-Security: @@ -357,6 +354,6 @@ interactions: X-XSS-Protection: - 1; mode=block status: - code: 201 - message: Created + code: 200 + message: OK version: 1 diff --git a/tests/test_playbooks/fixtures/content_view_filter_rule-19.yml b/tests/test_playbooks/fixtures/content_view_filter_rule-19.yml index daa2d34c..7f047f93 100644 --- a/tests/test_playbooks/fixtures/content_view_filter_rule-19.yml +++ b/tests/test_playbooks/fixtures/content_view_filter_rule-19.yml @@ -14,14 +14,14 @@ interactions: uri: https://foreman.example.org/api/status response: body: - string: '{"result":"ok","status":200,"version":"3.7.0-rc2","api_version":2}' + string: '{"result":"ok","status":200,"version":"3.12.0-develop","api_version":2}' headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive Content-Length: - - '66' + - '71' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -35,7 +35,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=100 Strict-Transport-Security: @@ -70,8 +70,8 @@ interactions: body: string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": 4294967296,\n \"search\": \"name=\\\"Test Organization\\\"\",\n \"sort\": - {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\":\"Test_Organization\",\"created_at\":\"2023-06-05 - 22:32:12 UTC\",\"updated_at\":\"2023-06-05 22:32:15 UTC\",\"id\":11,\"name\":\"Test + {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\":\"Test_Organization\",\"created_at\":\"2024-07-24 + 14:53:36 UTC\",\"updated_at\":\"2024-07-24 14:53:38 UTC\",\"id\":7,\"name\":\"Test Organization\",\"title\":\"Test Organization\",\"description\":\"A test organization\"}]\n}\n" headers: Cache-Control: @@ -79,7 +79,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '389' + - '388' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -93,7 +93,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=99 Strict-Transport-Security: @@ -123,18 +123,17 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/organizations/11/content_views?search=name%3D%22Test+Content+View%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/organizations/7/content_views?search=name%3D%22Test+Content+View%22&per_page=4294967296 response: body: string: '{"total":2,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Content View\"","sort":{"by":"name","order":"asc"},"results":[{"composite":false,"component_ids":[],"default":false,"version_count":0,"latest_version":null,"latest_version_id":null,"auto_publish":false,"solve_dependencies":false,"import_only":false,"generated_for":"none","related_cv_count":0,"related_composite_cvs":[],"needs_publish":true,"filtered":true,"repository_ids":[31,32,33,34],"id":19,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":11,"organization":{"name":"Test - Organization","label":"Test_Organization","id":11},"created_at":"2023-06-05 - 22:34:51 UTC","updated_at":"2023-06-05 22:34:51 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":31,"name":"Test - Repository","label":"Test_Repository","content_type":"yum"},{"id":32,"name":"Test - Modular Repository","label":"Test_Modular_Repository","content_type":"yum"},{"id":33,"name":"Test - Docker Repository","label":"Test_Docker_Repository","content_type":"docker"},{"id":34,"name":"Test - Debian Repository","label":"Test_Debian_Repository","content_type":"deb"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]}]} + Content View\"","sort":{"by":"name","order":"asc"},"results":[{"composite":false,"component_ids":[],"duplicate_repositories_to_publish":[],"default":false,"version_count":0,"latest_version":null,"latest_version_id":null,"auto_publish":false,"solve_dependencies":false,"import_only":false,"generated_for":"none","related_cv_count":0,"related_composite_cvs":[],"filtered":true,"repository_ids":[13,14,15],"id":11,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":7,"organization":{"name":"Test + Organization","label":"Test_Organization","id":7},"created_at":"2024-07-24 + 14:54:40 UTC","updated_at":"2024-07-24 14:54:40 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":13,"name":"Test + Repository","label":"Test_Repository","content_type":"yum"},{"id":14,"name":"Test + Modular Repository","label":"Test_Modular_Repository","content_type":"yum"},{"id":15,"name":"Test + Docker Repository","label":"Test_Docker_Repository","content_type":"docker"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]}]} ' headers: @@ -143,7 +142,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '1353' + - '1270' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -155,9 +154,9 @@ interactions: Foreman_current_location: - ; ANY Foreman_current_organization: - - 11; Test Organization + - 7; Test Organization Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=98 Strict-Transport-Security: @@ -187,22 +186,21 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/content_views/19/filters?search=name%3D%22Test+Content+View+Filter+-+deb%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/content_views/11/filters?search=name%3D%22Test+Content+View+Filter+-+package_group%22&per_page=4294967296 response: body: string: '{"total":10,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Content View Filter - deb\"","sort":{"by":"name","order":"asc"},"results":[{"inclusion":false,"id":64,"name":"Test - Content View Filter - deb","description":null,"created_at":"2023-06-05 22:35:01 - UTC","updated_at":"2023-06-05 22:35:01 UTC","content_view":{"composite":false,"component_ids":[],"default":false,"version_count":0,"latest_version":null,"latest_version_id":null,"auto_publish":false,"solve_dependencies":false,"import_only":false,"generated_for":"none","related_cv_count":0,"related_composite_cvs":[],"needs_publish":true,"filtered":true,"repository_ids":[31,32,33,34],"id":19,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":11,"organization":{"name":"Test - Organization","label":"Test_Organization","id":11},"created_at":"2023-06-05 - 22:34:51 UTC","updated_at":"2023-06-05 22:34:51 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":31,"name":"Test - Repository","label":"Test_Repository","content_type":"yum"},{"id":32,"name":"Test - Modular Repository","label":"Test_Modular_Repository","content_type":"yum"},{"id":33,"name":"Test - Docker Repository","label":"Test_Docker_Repository","content_type":"docker"},{"id":34,"name":"Test - Debian Repository","label":"Test_Debian_Repository","content_type":"deb"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]},"repositories":[],"type":"deb","rules":[{"content_view_filter_id":64,"id":3,"name":"bear","created_at":"2023-06-05 - 22:35:20 UTC","updated_at":"2023-06-05 22:35:20 UTC"},{"content_view_filter_id":64,"id":4,"name":"camel","created_at":"2023-06-05 - 22:35:21 UTC","updated_at":"2023-06-05 22:35:21 UTC"}]}]} + Content View Filter - package_group\"","sort":{"by":"name","order":"asc"},"results":[{"inclusion":false,"id":55,"name":"Test + Content View Filter - package_group","description":null,"created_at":"2024-07-24 + 14:54:42 UTC","updated_at":"2024-07-24 14:54:42 UTC","content_view":{"composite":false,"component_ids":[],"duplicate_repositories_to_publish":[],"default":false,"version_count":0,"latest_version":null,"latest_version_id":null,"auto_publish":false,"solve_dependencies":false,"import_only":false,"generated_for":"none","related_cv_count":0,"related_composite_cvs":[],"filtered":true,"repository_ids":[13,14,15],"id":11,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":7,"organization":{"name":"Test + Organization","label":"Test_Organization","id":7},"created_at":"2024-07-24 + 14:54:40 UTC","updated_at":"2024-07-24 14:54:40 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":13,"name":"Test + Repository","label":"Test_Repository","content_type":"yum"},{"id":14,"name":"Test + Modular Repository","label":"Test_Modular_Repository","content_type":"yum"},{"id":15,"name":"Test + Docker Repository","label":"Test_Docker_Repository","content_type":"docker"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]},"repositories":[],"type":"package_group","rules":[{"content_view_filter_id":55,"uuid":"/pulp/api/v3/content/rpm/packagegroups/0190e45e-fd99-76f9-872f-f31298c228c1/","id":7,"name":"birds","created_at":"2024-07-24 + 14:54:47 UTC","updated_at":"2024-07-24 14:54:47 UTC"},{"content_view_filter_id":55,"uuid":"/pulp/api/v3/content/rpm/packagegroups/0190e45e-fd9a-7fce-b8b1-2ddf3e619951/","id":8,"name":"mammals","created_at":"2024-07-24 + 14:54:47 UTC","updated_at":"2024-07-24 14:54:47 UTC"}]}]} ' headers: @@ -211,7 +209,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '1847' + - '1969' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -225,7 +223,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=97 Strict-Transport-Security: @@ -255,11 +253,11 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/content_view_filters/64/rules?search=name%3D%22bear%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/content_view_filters/55/rules?search=name%3D%22birds%22&per_page=4294967296 response: body: - string: '{"total":2,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"bear\"","sort":{"by":"id","order":"asc"},"results":[{"content_view_filter_id":64,"id":3,"name":"bear","created_at":"2023-06-05 - 22:35:20 UTC","updated_at":"2023-06-05 22:35:20 UTC"}]} + string: '{"total":2,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"birds\"","sort":{"by":"id","order":"asc"},"results":[{"content_view_filter_id":55,"uuid":"/pulp/api/v3/content/rpm/packagegroups/0190e45e-fd99-76f9-872f-f31298c228c1/","id":7,"name":"birds","created_at":"2024-07-24 + 14:54:47 UTC","updated_at":"2024-07-24 14:54:47 UTC"}]} ' headers: @@ -268,7 +266,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '285' + - '373' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -282,7 +280,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=96 Strict-Transport-Security: @@ -312,11 +310,11 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/content_view_filters/64/rules/3 + uri: https://foreman.example.org/katello/api/package_groups?search=name%3D%22birds%22&per_page=4294967296 response: body: - string: ' {"content_view_filter_id":64,"id":3,"name":"bear","created_at":"2023-06-05 - 22:35:20 UTC","updated_at":"2023-06-05 22:35:20 UTC"} + string: '{"total":2,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"birds\"","sort":{"by":"name","order":"asc"},"results":[{"id":2,"name":"birds","pulp_id":"/pulp/api/v3/content/rpm/packagegroups/0190e45e-fd99-76f9-872f-f31298c228c1/","uuid":"/pulp/api/v3/content/rpm/packagegroups/0190e45e-fd99-76f9-872f-f31298c228c1/","description":"","repository":{"id":13,"name":"Test + Repository","product":{"id":5,"name":"Test Product"}}}]} ' headers: @@ -325,7 +323,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '131' + - '464' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -339,7 +337,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=95 Strict-Transport-Security: @@ -357,4 +355,63 @@ interactions: status: code: 200 message: OK +- request: + body: null + headers: + Accept: + - application/json;version=2 + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '0' + User-Agent: + - apypie (https://github.com/Apipie/apypie) + method: DELETE + uri: https://foreman.example.org/katello/api/content_view_filters/55/rules/7 + response: + body: + string: ' {"content_view_filter_id":55,"uuid":"/pulp/api/v3/content/rpm/packagegroups/0190e45e-fd99-76f9-872f-f31298c228c1/","id":7,"name":"birds","created_at":"2024-07-24 + 14:54:47 UTC","updated_at":"2024-07-24 14:54:47 UTC"} + + ' + headers: + Cache-Control: + - max-age=0, private, must-revalidate + Connection: + - Keep-Alive + Content-Length: + - '218' + Content-Security-Policy: + - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: + - application/json; charset=utf-8 + Foreman_api_version: + - '2' + Foreman_current_location: + - ; ANY + Foreman_current_organization: + - ; ANY + Foreman_version: + - 3.12.0-develop + Keep-Alive: + - timeout=15, max=94 + Strict-Transport-Security: + - max-age=631139040; includeSubdomains + X-Content-Type-Options: + - nosniff + X-Download-Options: + - noopen + X-Frame-Options: + - sameorigin + X-Permitted-Cross-Domain-Policies: + - none + X-XSS-Protection: + - 1; mode=block + status: + code: 200 + message: OK version: 1 diff --git a/tests/test_playbooks/fixtures/content_view_filter_rule-2.yml b/tests/test_playbooks/fixtures/content_view_filter_rule-2.yml index 8210b395..a4ffa113 100644 --- a/tests/test_playbooks/fixtures/content_view_filter_rule-2.yml +++ b/tests/test_playbooks/fixtures/content_view_filter_rule-2.yml @@ -14,14 +14,14 @@ interactions: uri: https://foreman.example.org/api/status response: body: - string: '{"result":"ok","status":200,"version":"3.7.0-rc2","api_version":2}' + string: '{"result":"ok","status":200,"version":"3.12.0-develop","api_version":2}' headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive Content-Length: - - '66' + - '71' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -35,7 +35,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=100 Strict-Transport-Security: @@ -70,8 +70,8 @@ interactions: body: string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": 4294967296,\n \"search\": \"name=\\\"Test Organization\\\"\",\n \"sort\": - {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\":\"Test_Organization\",\"created_at\":\"2023-06-05 - 22:32:12 UTC\",\"updated_at\":\"2023-06-05 22:32:15 UTC\",\"id\":11,\"name\":\"Test + {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\":\"Test_Organization\",\"created_at\":\"2024-07-24 + 14:53:36 UTC\",\"updated_at\":\"2024-07-24 14:53:38 UTC\",\"id\":7,\"name\":\"Test Organization\",\"title\":\"Test Organization\",\"description\":\"A test organization\"}]\n}\n" headers: Cache-Control: @@ -79,7 +79,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '389' + - '388' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -93,7 +93,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=99 Strict-Transport-Security: @@ -123,18 +123,17 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/organizations/11/content_views?search=name%3D%22Test+Content+View%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/organizations/7/content_views?search=name%3D%22Test+Content+View%22&per_page=4294967296 response: body: string: '{"total":2,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Content View\"","sort":{"by":"name","order":"asc"},"results":[{"composite":false,"component_ids":[],"default":false,"version_count":0,"latest_version":null,"latest_version_id":null,"auto_publish":false,"solve_dependencies":false,"import_only":false,"generated_for":"none","related_cv_count":0,"related_composite_cvs":[],"needs_publish":true,"filtered":true,"repository_ids":[31,32,33,34],"id":19,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":11,"organization":{"name":"Test - Organization","label":"Test_Organization","id":11},"created_at":"2023-06-05 - 22:34:51 UTC","updated_at":"2023-06-05 22:34:51 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":31,"name":"Test - Repository","label":"Test_Repository","content_type":"yum"},{"id":32,"name":"Test - Modular Repository","label":"Test_Modular_Repository","content_type":"yum"},{"id":33,"name":"Test - Docker Repository","label":"Test_Docker_Repository","content_type":"docker"},{"id":34,"name":"Test - Debian Repository","label":"Test_Debian_Repository","content_type":"deb"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]}]} + Content View\"","sort":{"by":"name","order":"asc"},"results":[{"composite":false,"component_ids":[],"duplicate_repositories_to_publish":[],"default":false,"version_count":0,"latest_version":null,"latest_version_id":null,"auto_publish":false,"solve_dependencies":false,"import_only":false,"generated_for":"none","related_cv_count":0,"related_composite_cvs":[],"filtered":true,"repository_ids":[13,14,15],"id":11,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":7,"organization":{"name":"Test + Organization","label":"Test_Organization","id":7},"created_at":"2024-07-24 + 14:54:40 UTC","updated_at":"2024-07-24 14:54:40 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":13,"name":"Test + Repository","label":"Test_Repository","content_type":"yum"},{"id":14,"name":"Test + Modular Repository","label":"Test_Modular_Repository","content_type":"yum"},{"id":15,"name":"Test + Docker Repository","label":"Test_Docker_Repository","content_type":"docker"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]}]} ' headers: @@ -143,7 +142,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '1353' + - '1270' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -155,9 +154,9 @@ interactions: Foreman_current_location: - ; ANY Foreman_current_organization: - - 11; Test Organization + - 7; Test Organization Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=98 Strict-Transport-Security: @@ -187,22 +186,21 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/content_views/19/filters?search=name%3D%22Test+Content+View+Filter+-+rpm%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/content_views/11/filters?search=name%3D%22Test+Content+View+Filter+-+rpm%22&per_page=4294967296 response: body: string: '{"total":10,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Content View Filter - rpm\"","sort":{"by":"name","order":"asc"},"results":[{"inclusion":false,"id":58,"name":"Test - Content View Filter - rpm","description":null,"created_at":"2023-06-05 22:34:55 - UTC","updated_at":"2023-06-05 22:34:55 UTC","content_view":{"composite":false,"component_ids":[],"default":false,"version_count":0,"latest_version":null,"latest_version_id":null,"auto_publish":false,"solve_dependencies":false,"import_only":false,"generated_for":"none","related_cv_count":0,"related_composite_cvs":[],"needs_publish":true,"filtered":true,"repository_ids":[31,32,33,34],"id":19,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":11,"organization":{"name":"Test - Organization","label":"Test_Organization","id":11},"created_at":"2023-06-05 - 22:34:51 UTC","updated_at":"2023-06-05 22:34:51 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":31,"name":"Test - Repository","label":"Test_Repository","content_type":"yum"},{"id":32,"name":"Test - Modular Repository","label":"Test_Modular_Repository","content_type":"yum"},{"id":33,"name":"Test - Docker Repository","label":"Test_Docker_Repository","content_type":"docker"},{"id":34,"name":"Test - Debian Repository","label":"Test_Debian_Repository","content_type":"deb"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]},"repositories":[],"type":"rpm","rules":[{"content_view_filter_id":58,"id":7,"name":"bear","created_at":"2023-06-05 - 22:35:02 UTC","updated_at":"2023-06-05 22:35:02 UTC"},{"content_view_filter_id":58,"id":8,"name":"camel","created_at":"2023-06-05 - 22:35:03 UTC","updated_at":"2023-06-05 22:35:03 UTC"}]}]} + Content View Filter - rpm\"","sort":{"by":"name","order":"asc"},"results":[{"inclusion":false,"id":54,"name":"Test + Content View Filter - rpm","description":null,"created_at":"2024-07-24 14:54:42 + UTC","updated_at":"2024-07-24 14:54:42 UTC","content_view":{"composite":false,"component_ids":[],"duplicate_repositories_to_publish":[],"default":false,"version_count":0,"latest_version":null,"latest_version_id":null,"auto_publish":false,"solve_dependencies":false,"import_only":false,"generated_for":"none","related_cv_count":0,"related_composite_cvs":[],"filtered":true,"repository_ids":[13,14,15],"id":11,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":7,"organization":{"name":"Test + Organization","label":"Test_Organization","id":7},"created_at":"2024-07-24 + 14:54:40 UTC","updated_at":"2024-07-24 14:54:40 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":13,"name":"Test + Repository","label":"Test_Repository","content_type":"yum"},{"id":14,"name":"Test + Modular Repository","label":"Test_Modular_Repository","content_type":"yum"},{"id":15,"name":"Test + Docker Repository","label":"Test_Docker_Repository","content_type":"docker"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]},"repositories":[],"type":"rpm","rules":[{"content_view_filter_id":54,"id":7,"name":"bear","created_at":"2024-07-24 + 14:54:45 UTC","updated_at":"2024-07-24 14:54:45 UTC"},{"content_view_filter_id":54,"id":8,"name":"camel","created_at":"2024-07-24 + 14:54:46 UTC","updated_at":"2024-07-24 14:54:46 UTC"}]}]} ' headers: @@ -211,7 +209,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '1847' + - '1764' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -225,7 +223,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=97 Strict-Transport-Security: @@ -255,11 +253,11 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/content_view_filters/58/rules?search=name%3D%22bear%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/content_view_filters/54/rules?search=name%3D%22bear%22&per_page=4294967296 response: body: - string: '{"total":2,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"bear\"","sort":{"by":"id","order":"asc"},"results":[{"content_view_filter_id":58,"id":7,"name":"bear","created_at":"2023-06-05 - 22:35:02 UTC","updated_at":"2023-06-05 22:35:02 UTC"}]} + string: '{"total":2,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"bear\"","sort":{"by":"id","order":"asc"},"results":[{"content_view_filter_id":54,"id":7,"name":"bear","created_at":"2024-07-24 + 14:54:45 UTC","updated_at":"2024-07-24 14:54:45 UTC"}]} ' headers: @@ -282,7 +280,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=96 Strict-Transport-Security: @@ -312,11 +310,11 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/content_view_filters/58/rules/7 + uri: https://foreman.example.org/katello/api/content_view_filters/54/rules/7 response: body: - string: ' {"content_view_filter_id":58,"id":7,"name":"bear","created_at":"2023-06-05 - 22:35:02 UTC","updated_at":"2023-06-05 22:35:02 UTC"} + string: ' {"content_view_filter_id":54,"id":7,"name":"bear","created_at":"2024-07-24 + 14:54:45 UTC","updated_at":"2024-07-24 14:54:45 UTC"} ' headers: @@ -339,7 +337,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=95 Strict-Transport-Security: diff --git a/tests/test_playbooks/fixtures/content_view_filter_rule-20.yml b/tests/test_playbooks/fixtures/content_view_filter_rule-20.yml index d48f19e2..986d6e7a 100644 --- a/tests/test_playbooks/fixtures/content_view_filter_rule-20.yml +++ b/tests/test_playbooks/fixtures/content_view_filter_rule-20.yml @@ -14,14 +14,14 @@ interactions: uri: https://foreman.example.org/api/status response: body: - string: '{"result":"ok","status":200,"version":"3.7.0-rc2","api_version":2}' + string: '{"result":"ok","status":200,"version":"3.12.0-develop","api_version":2}' headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive Content-Length: - - '66' + - '71' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -35,7 +35,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=100 Strict-Transport-Security: @@ -70,8 +70,8 @@ interactions: body: string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": 4294967296,\n \"search\": \"name=\\\"Test Organization\\\"\",\n \"sort\": - {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\":\"Test_Organization\",\"created_at\":\"2023-06-05 - 22:32:12 UTC\",\"updated_at\":\"2023-06-05 22:32:15 UTC\",\"id\":11,\"name\":\"Test + {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\":\"Test_Organization\",\"created_at\":\"2024-07-24 + 14:53:36 UTC\",\"updated_at\":\"2024-07-24 14:53:38 UTC\",\"id\":7,\"name\":\"Test Organization\",\"title\":\"Test Organization\",\"description\":\"A test organization\"}]\n}\n" headers: Cache-Control: @@ -79,7 +79,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '389' + - '388' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -93,7 +93,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=99 Strict-Transport-Security: @@ -123,18 +123,17 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/organizations/11/content_views?search=name%3D%22Test+Content+View%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/organizations/7/content_views?search=name%3D%22Test+Content+View%22&per_page=4294967296 response: body: string: '{"total":2,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Content View\"","sort":{"by":"name","order":"asc"},"results":[{"composite":false,"component_ids":[],"default":false,"version_count":0,"latest_version":null,"latest_version_id":null,"auto_publish":false,"solve_dependencies":false,"import_only":false,"generated_for":"none","related_cv_count":0,"related_composite_cvs":[],"needs_publish":true,"filtered":true,"repository_ids":[31,32,33,34],"id":19,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":11,"organization":{"name":"Test - Organization","label":"Test_Organization","id":11},"created_at":"2023-06-05 - 22:34:51 UTC","updated_at":"2023-06-05 22:34:51 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":31,"name":"Test - Repository","label":"Test_Repository","content_type":"yum"},{"id":32,"name":"Test - Modular Repository","label":"Test_Modular_Repository","content_type":"yum"},{"id":33,"name":"Test - Docker Repository","label":"Test_Docker_Repository","content_type":"docker"},{"id":34,"name":"Test - Debian Repository","label":"Test_Debian_Repository","content_type":"deb"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]}]} + Content View\"","sort":{"by":"name","order":"asc"},"results":[{"composite":false,"component_ids":[],"duplicate_repositories_to_publish":[],"default":false,"version_count":0,"latest_version":null,"latest_version_id":null,"auto_publish":false,"solve_dependencies":false,"import_only":false,"generated_for":"none","related_cv_count":0,"related_composite_cvs":[],"filtered":true,"repository_ids":[13,14,15],"id":11,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":7,"organization":{"name":"Test + Organization","label":"Test_Organization","id":7},"created_at":"2024-07-24 + 14:54:40 UTC","updated_at":"2024-07-24 14:54:40 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":13,"name":"Test + Repository","label":"Test_Repository","content_type":"yum"},{"id":14,"name":"Test + Modular Repository","label":"Test_Modular_Repository","content_type":"yum"},{"id":15,"name":"Test + Docker Repository","label":"Test_Docker_Repository","content_type":"docker"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]}]} ' headers: @@ -143,7 +142,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '1353' + - '1270' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -155,9 +154,9 @@ interactions: Foreman_current_location: - ; ANY Foreman_current_organization: - - 11; Test Organization + - 7; Test Organization Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=98 Strict-Transport-Security: @@ -187,22 +186,20 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/content_views/19/filters?search=name%3D%22Test+Content+View+Filter+-+rpm%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/content_views/11/filters?search=name%3D%22Test+Content+View+Filter+-+package_group%22&per_page=4294967296 response: body: string: '{"total":10,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Content View Filter - rpm\"","sort":{"by":"name","order":"asc"},"results":[{"inclusion":false,"id":58,"name":"Test - Content View Filter - rpm","description":null,"created_at":"2023-06-05 22:34:55 - UTC","updated_at":"2023-06-05 22:34:55 UTC","content_view":{"composite":false,"component_ids":[],"default":false,"version_count":0,"latest_version":null,"latest_version_id":null,"auto_publish":false,"solve_dependencies":false,"import_only":false,"generated_for":"none","related_cv_count":0,"related_composite_cvs":[],"needs_publish":true,"filtered":true,"repository_ids":[31,32,33,34],"id":19,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":11,"organization":{"name":"Test - Organization","label":"Test_Organization","id":11},"created_at":"2023-06-05 - 22:34:51 UTC","updated_at":"2023-06-05 22:34:51 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":31,"name":"Test - Repository","label":"Test_Repository","content_type":"yum"},{"id":32,"name":"Test - Modular Repository","label":"Test_Modular_Repository","content_type":"yum"},{"id":33,"name":"Test - Docker Repository","label":"Test_Docker_Repository","content_type":"docker"},{"id":34,"name":"Test - Debian Repository","label":"Test_Debian_Repository","content_type":"deb"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]},"repositories":[],"type":"rpm","rules":[{"content_view_filter_id":58,"id":7,"name":"bear","created_at":"2023-06-05 - 22:35:02 UTC","updated_at":"2023-06-05 22:35:02 UTC"},{"content_view_filter_id":58,"id":8,"name":"camel","created_at":"2023-06-05 - 22:35:03 UTC","updated_at":"2023-06-05 22:35:03 UTC"}]}]} + Content View Filter - package_group\"","sort":{"by":"name","order":"asc"},"results":[{"inclusion":false,"id":55,"name":"Test + Content View Filter - package_group","description":null,"created_at":"2024-07-24 + 14:54:42 UTC","updated_at":"2024-07-24 14:54:42 UTC","content_view":{"composite":false,"component_ids":[],"duplicate_repositories_to_publish":[],"default":false,"version_count":0,"latest_version":null,"latest_version_id":null,"auto_publish":false,"solve_dependencies":false,"import_only":false,"generated_for":"none","related_cv_count":0,"related_composite_cvs":[],"filtered":true,"repository_ids":[13,14,15],"id":11,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":7,"organization":{"name":"Test + Organization","label":"Test_Organization","id":7},"created_at":"2024-07-24 + 14:54:40 UTC","updated_at":"2024-07-24 14:54:40 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":13,"name":"Test + Repository","label":"Test_Repository","content_type":"yum"},{"id":14,"name":"Test + Modular Repository","label":"Test_Modular_Repository","content_type":"yum"},{"id":15,"name":"Test + Docker Repository","label":"Test_Docker_Repository","content_type":"docker"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]},"repositories":[],"type":"package_group","rules":[{"content_view_filter_id":55,"uuid":"/pulp/api/v3/content/rpm/packagegroups/0190e45e-fd9a-7fce-b8b1-2ddf3e619951/","id":8,"name":"mammals","created_at":"2024-07-24 + 14:54:47 UTC","updated_at":"2024-07-24 14:54:47 UTC"}]}]} ' headers: @@ -211,7 +208,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '1847' + - '1753' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -225,7 +222,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=97 Strict-Transport-Security: @@ -255,11 +252,11 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/content_view_filters/58/rules?search=name%3D%22bear%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/content_view_filters/55/rules?search=name%3D%22mammals%22&per_page=4294967296 response: body: - string: '{"total":2,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"bear\"","sort":{"by":"id","order":"asc"},"results":[{"content_view_filter_id":58,"id":7,"name":"bear","created_at":"2023-06-05 - 22:35:02 UTC","updated_at":"2023-06-05 22:35:02 UTC"}]} + string: '{"total":1,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"mammals\"","sort":{"by":"id","order":"asc"},"results":[{"content_view_filter_id":55,"uuid":"/pulp/api/v3/content/rpm/packagegroups/0190e45e-fd9a-7fce-b8b1-2ddf3e619951/","id":8,"name":"mammals","created_at":"2024-07-24 + 14:54:47 UTC","updated_at":"2024-07-24 14:54:47 UTC"}]} ' headers: @@ -268,7 +265,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '285' + - '377' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -282,7 +279,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=96 Strict-Transport-Security: @@ -300,6 +297,63 @@ interactions: status: code: 200 message: OK +- request: + body: null + headers: + Accept: + - application/json;version=2 + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - apypie (https://github.com/Apipie/apypie) + method: GET + uri: https://foreman.example.org/katello/api/package_groups?search=name%3D%22mammals%22&per_page=4294967296 + response: + body: + string: '{"total":2,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"mammals\"","sort":{"by":"name","order":"asc"},"results":[{"id":1,"name":"mammals","pulp_id":"/pulp/api/v3/content/rpm/packagegroups/0190e45e-fd9a-7fce-b8b1-2ddf3e619951/","uuid":"/pulp/api/v3/content/rpm/packagegroups/0190e45e-fd9a-7fce-b8b1-2ddf3e619951/","description":"","repository":{"id":13,"name":"Test + Repository","product":{"id":5,"name":"Test Product"}}}]} + + ' + headers: + Cache-Control: + - max-age=0, private, must-revalidate + Connection: + - Keep-Alive + Content-Length: + - '468' + Content-Security-Policy: + - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: + - application/json; charset=utf-8 + Foreman_api_version: + - '2' + Foreman_current_location: + - ; ANY + Foreman_current_organization: + - ; ANY + Foreman_version: + - 3.12.0-develop + Keep-Alive: + - timeout=15, max=95 + Strict-Transport-Security: + - max-age=631139040; includeSubdomains + X-Content-Type-Options: + - nosniff + X-Download-Options: + - noopen + X-Frame-Options: + - sameorigin + X-Permitted-Cross-Domain-Policies: + - none + X-XSS-Protection: + - 1; mode=block + status: + code: 200 + message: OK - request: body: null headers: @@ -314,11 +368,11 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: DELETE - uri: https://foreman.example.org/katello/api/content_view_filters/58/rules/7 + uri: https://foreman.example.org/katello/api/content_view_filters/55/rules/8 response: body: - string: ' {"content_view_filter_id":58,"id":7,"name":"bear","created_at":"2023-06-05 - 22:35:02 UTC","updated_at":"2023-06-05 22:35:02 UTC"} + string: ' {"content_view_filter_id":55,"uuid":"/pulp/api/v3/content/rpm/packagegroups/0190e45e-fd9a-7fce-b8b1-2ddf3e619951/","id":8,"name":"mammals","created_at":"2024-07-24 + 14:54:47 UTC","updated_at":"2024-07-24 14:54:47 UTC"} ' headers: @@ -327,7 +381,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '131' + - '220' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -341,9 +395,9 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - - timeout=15, max=95 + - timeout=15, max=94 Strict-Transport-Security: - max-age=631139040; includeSubdomains X-Content-Type-Options: diff --git a/tests/test_playbooks/fixtures/content_view_filter_rule-21.yml b/tests/test_playbooks/fixtures/content_view_filter_rule-21.yml index 48d14bda..2f7d8d2f 100644 --- a/tests/test_playbooks/fixtures/content_view_filter_rule-21.yml +++ b/tests/test_playbooks/fixtures/content_view_filter_rule-21.yml @@ -14,14 +14,14 @@ interactions: uri: https://foreman.example.org/api/status response: body: - string: '{"result":"ok","status":200,"version":"3.7.0-rc2","api_version":2}' + string: '{"result":"ok","status":200,"version":"3.12.0-develop","api_version":2}' headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive Content-Length: - - '66' + - '71' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -35,7 +35,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=100 Strict-Transport-Security: @@ -70,8 +70,8 @@ interactions: body: string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": 4294967296,\n \"search\": \"name=\\\"Test Organization\\\"\",\n \"sort\": - {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\":\"Test_Organization\",\"created_at\":\"2023-06-05 - 22:32:12 UTC\",\"updated_at\":\"2023-06-05 22:32:15 UTC\",\"id\":11,\"name\":\"Test + {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\":\"Test_Organization\",\"created_at\":\"2024-07-24 + 14:53:36 UTC\",\"updated_at\":\"2024-07-24 14:53:38 UTC\",\"id\":7,\"name\":\"Test Organization\",\"title\":\"Test Organization\",\"description\":\"A test organization\"}]\n}\n" headers: Cache-Control: @@ -79,7 +79,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '389' + - '388' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -93,7 +93,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=99 Strict-Transport-Security: @@ -123,18 +123,17 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/organizations/11/content_views?search=name%3D%22Test+Content+View%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/organizations/7/content_views?search=name%3D%22Test+Content+View%22&per_page=4294967296 response: body: string: '{"total":2,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Content View\"","sort":{"by":"name","order":"asc"},"results":[{"composite":false,"component_ids":[],"default":false,"version_count":0,"latest_version":null,"latest_version_id":null,"auto_publish":false,"solve_dependencies":false,"import_only":false,"generated_for":"none","related_cv_count":0,"related_composite_cvs":[],"needs_publish":true,"filtered":true,"repository_ids":[31,32,33,34],"id":19,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":11,"organization":{"name":"Test - Organization","label":"Test_Organization","id":11},"created_at":"2023-06-05 - 22:34:51 UTC","updated_at":"2023-06-05 22:34:51 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":31,"name":"Test - Repository","label":"Test_Repository","content_type":"yum"},{"id":32,"name":"Test - Modular Repository","label":"Test_Modular_Repository","content_type":"yum"},{"id":33,"name":"Test - Docker Repository","label":"Test_Docker_Repository","content_type":"docker"},{"id":34,"name":"Test - Debian Repository","label":"Test_Debian_Repository","content_type":"deb"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]}]} + Content View\"","sort":{"by":"name","order":"asc"},"results":[{"composite":false,"component_ids":[],"duplicate_repositories_to_publish":[],"default":false,"version_count":0,"latest_version":null,"latest_version_id":null,"auto_publish":false,"solve_dependencies":false,"import_only":false,"generated_for":"none","related_cv_count":0,"related_composite_cvs":[],"filtered":true,"repository_ids":[13,14,15],"id":11,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":7,"organization":{"name":"Test + Organization","label":"Test_Organization","id":7},"created_at":"2024-07-24 + 14:54:40 UTC","updated_at":"2024-07-24 14:54:40 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":13,"name":"Test + Repository","label":"Test_Repository","content_type":"yum"},{"id":14,"name":"Test + Modular Repository","label":"Test_Modular_Repository","content_type":"yum"},{"id":15,"name":"Test + Docker Repository","label":"Test_Docker_Repository","content_type":"docker"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]}]} ' headers: @@ -143,7 +142,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '1353' + - '1270' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -155,9 +154,9 @@ interactions: Foreman_current_location: - ; ANY Foreman_current_organization: - - 11; Test Organization + - 7; Test Organization Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=98 Strict-Transport-Security: @@ -187,21 +186,21 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/content_views/19/filters?search=name%3D%22Test+Content+View+Filter+-+rpm%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/content_views/11/filters?search=name%3D%22Test+Content+View+Filter+-+erratum_by_id%22&per_page=4294967296 response: body: string: '{"total":10,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Content View Filter - rpm\"","sort":{"by":"name","order":"asc"},"results":[{"inclusion":false,"id":58,"name":"Test - Content View Filter - rpm","description":null,"created_at":"2023-06-05 22:34:55 - UTC","updated_at":"2023-06-05 22:34:55 UTC","content_view":{"composite":false,"component_ids":[],"default":false,"version_count":0,"latest_version":null,"latest_version_id":null,"auto_publish":false,"solve_dependencies":false,"import_only":false,"generated_for":"none","related_cv_count":0,"related_composite_cvs":[],"needs_publish":true,"filtered":true,"repository_ids":[31,32,33,34],"id":19,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":11,"organization":{"name":"Test - Organization","label":"Test_Organization","id":11},"created_at":"2023-06-05 - 22:34:51 UTC","updated_at":"2023-06-05 22:34:51 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":31,"name":"Test - Repository","label":"Test_Repository","content_type":"yum"},{"id":32,"name":"Test - Modular Repository","label":"Test_Modular_Repository","content_type":"yum"},{"id":33,"name":"Test - Docker Repository","label":"Test_Docker_Repository","content_type":"docker"},{"id":34,"name":"Test - Debian Repository","label":"Test_Debian_Repository","content_type":"deb"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]},"repositories":[],"type":"rpm","rules":[{"content_view_filter_id":58,"id":8,"name":"camel","created_at":"2023-06-05 - 22:35:03 UTC","updated_at":"2023-06-05 22:35:03 UTC"}]}]} + Content View Filter - erratum_by_id\"","sort":{"by":"name","order":"asc"},"results":[{"inclusion":false,"id":56,"name":"Test + Content View Filter - erratum_by_id","description":null,"created_at":"2024-07-24 + 14:54:43 UTC","updated_at":"2024-07-24 14:54:43 UTC","content_view":{"composite":false,"component_ids":[],"duplicate_repositories_to_publish":[],"default":false,"version_count":0,"latest_version":null,"latest_version_id":null,"auto_publish":false,"solve_dependencies":false,"import_only":false,"generated_for":"none","related_cv_count":0,"related_composite_cvs":[],"filtered":true,"repository_ids":[13,14,15],"id":11,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":7,"organization":{"name":"Test + Organization","label":"Test_Organization","id":7},"created_at":"2024-07-24 + 14:54:40 UTC","updated_at":"2024-07-24 14:54:40 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":13,"name":"Test + Repository","label":"Test_Repository","content_type":"yum"},{"id":14,"name":"Test + Modular Repository","label":"Test_Modular_Repository","content_type":"yum"},{"id":15,"name":"Test + Docker Repository","label":"Test_Docker_Repository","content_type":"docker"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]},"repositories":[],"type":"erratum","rules":[{"content_view_filter_id":56,"errata_id":"RHEA-2012:0004","date_type":"updated","id":10,"created_at":"2024-07-24 + 14:54:48 UTC","updated_at":"2024-07-24 14:54:48 UTC"},{"content_view_filter_id":56,"errata_id":"RHEA-2012:0003","date_type":"updated","id":11,"created_at":"2024-07-24 + 14:54:48 UTC","updated_at":"2024-07-24 14:54:48 UTC"}]}]} ' headers: @@ -210,7 +209,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '1718' + - '1863' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -224,7 +223,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=97 Strict-Transport-Security: @@ -254,11 +253,11 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/content_view_filters/58/rules?search=name%3D%22camel%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/content_view_filters/56/rules?errata_id=RHEA-2012%3A0004&per_page=4294967296 response: body: - string: '{"total":1,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"camel\"","sort":{"by":"id","order":"asc"},"results":[{"content_view_filter_id":58,"id":8,"name":"camel","created_at":"2023-06-05 - 22:35:03 UTC","updated_at":"2023-06-05 22:35:03 UTC"}]} + string: '{"total":1,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":null,"sort":{"by":"id","order":"asc"},"results":[{"content_view_filter_id":56,"errata_id":"RHEA-2012:0004","date_type":"updated","id":10,"created_at":"2024-07-24 + 14:54:48 UTC","updated_at":"2024-07-24 14:54:48 UTC"}]} ' headers: @@ -267,7 +266,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '287' + - '312' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -281,7 +280,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=96 Strict-Transport-Security: @@ -313,11 +312,11 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: DELETE - uri: https://foreman.example.org/katello/api/content_view_filters/58/rules/8 + uri: https://foreman.example.org/katello/api/content_view_filters/56/rules/10 response: body: - string: ' {"content_view_filter_id":58,"id":8,"name":"camel","created_at":"2023-06-05 - 22:35:03 UTC","updated_at":"2023-06-05 22:35:03 UTC"} + string: ' {"content_view_filter_id":56,"errata_id":"RHEA-2012:0004","date_type":"updated","id":10,"created_at":"2024-07-24 + 14:54:48 UTC","updated_at":"2024-07-24 14:54:48 UTC"} ' headers: @@ -326,7 +325,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '132' + - '169' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -340,7 +339,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=95 Strict-Transport-Security: diff --git a/tests/test_playbooks/fixtures/content_view_filter_rule-22.yml b/tests/test_playbooks/fixtures/content_view_filter_rule-22.yml index b8803e75..33eea009 100644 --- a/tests/test_playbooks/fixtures/content_view_filter_rule-22.yml +++ b/tests/test_playbooks/fixtures/content_view_filter_rule-22.yml @@ -14,14 +14,14 @@ interactions: uri: https://foreman.example.org/api/status response: body: - string: '{"result":"ok","status":200,"version":"3.7.0-rc2","api_version":2}' + string: '{"result":"ok","status":200,"version":"3.12.0-develop","api_version":2}' headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive Content-Length: - - '66' + - '71' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -35,7 +35,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=100 Strict-Transport-Security: @@ -70,8 +70,8 @@ interactions: body: string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": 4294967296,\n \"search\": \"name=\\\"Test Organization\\\"\",\n \"sort\": - {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\":\"Test_Organization\",\"created_at\":\"2023-06-05 - 22:32:12 UTC\",\"updated_at\":\"2023-06-05 22:32:15 UTC\",\"id\":11,\"name\":\"Test + {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\":\"Test_Organization\",\"created_at\":\"2024-07-24 + 14:53:36 UTC\",\"updated_at\":\"2024-07-24 14:53:38 UTC\",\"id\":7,\"name\":\"Test Organization\",\"title\":\"Test Organization\",\"description\":\"A test organization\"}]\n}\n" headers: Cache-Control: @@ -79,7 +79,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '389' + - '388' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -93,7 +93,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=99 Strict-Transport-Security: @@ -123,18 +123,17 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/organizations/11/content_views?search=name%3D%22Test+Content+View%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/organizations/7/content_views?search=name%3D%22Test+Content+View%22&per_page=4294967296 response: body: string: '{"total":2,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Content View\"","sort":{"by":"name","order":"asc"},"results":[{"composite":false,"component_ids":[],"default":false,"version_count":0,"latest_version":null,"latest_version_id":null,"auto_publish":false,"solve_dependencies":false,"import_only":false,"generated_for":"none","related_cv_count":0,"related_composite_cvs":[],"needs_publish":true,"filtered":true,"repository_ids":[31,32,33,34],"id":19,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":11,"organization":{"name":"Test - Organization","label":"Test_Organization","id":11},"created_at":"2023-06-05 - 22:34:51 UTC","updated_at":"2023-06-05 22:34:51 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":31,"name":"Test - Repository","label":"Test_Repository","content_type":"yum"},{"id":32,"name":"Test - Modular Repository","label":"Test_Modular_Repository","content_type":"yum"},{"id":33,"name":"Test - Docker Repository","label":"Test_Docker_Repository","content_type":"docker"},{"id":34,"name":"Test - Debian Repository","label":"Test_Debian_Repository","content_type":"deb"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]}]} + Content View\"","sort":{"by":"name","order":"asc"},"results":[{"composite":false,"component_ids":[],"duplicate_repositories_to_publish":[],"default":false,"version_count":0,"latest_version":null,"latest_version_id":null,"auto_publish":false,"solve_dependencies":false,"import_only":false,"generated_for":"none","related_cv_count":0,"related_composite_cvs":[],"filtered":true,"repository_ids":[13,14,15],"id":11,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":7,"organization":{"name":"Test + Organization","label":"Test_Organization","id":7},"created_at":"2024-07-24 + 14:54:40 UTC","updated_at":"2024-07-24 14:54:40 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":13,"name":"Test + Repository","label":"Test_Repository","content_type":"yum"},{"id":14,"name":"Test + Modular Repository","label":"Test_Modular_Repository","content_type":"yum"},{"id":15,"name":"Test + Docker Repository","label":"Test_Docker_Repository","content_type":"docker"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]}]} ' headers: @@ -143,7 +142,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '1353' + - '1270' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -155,9 +154,9 @@ interactions: Foreman_current_location: - ; ANY Foreman_current_organization: - - 11; Test Organization + - 7; Test Organization Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=98 Strict-Transport-Security: @@ -187,22 +186,20 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/content_views/19/filters?search=name%3D%22Test+Content+View+Filter+-+package_group%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/content_views/11/filters?search=name%3D%22Test+Content+View+Filter+-+erratum_by_id%22&per_page=4294967296 response: body: string: '{"total":10,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Content View Filter - package_group\"","sort":{"by":"name","order":"asc"},"results":[{"inclusion":false,"id":59,"name":"Test - Content View Filter - package_group","description":null,"created_at":"2023-06-05 - 22:34:56 UTC","updated_at":"2023-06-05 22:34:56 UTC","content_view":{"composite":false,"component_ids":[],"default":false,"version_count":0,"latest_version":null,"latest_version_id":null,"auto_publish":false,"solve_dependencies":false,"import_only":false,"generated_for":"none","related_cv_count":0,"related_composite_cvs":[],"needs_publish":true,"filtered":true,"repository_ids":[31,32,33,34],"id":19,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":11,"organization":{"name":"Test - Organization","label":"Test_Organization","id":11},"created_at":"2023-06-05 - 22:34:51 UTC","updated_at":"2023-06-05 22:34:51 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":31,"name":"Test - Repository","label":"Test_Repository","content_type":"yum"},{"id":32,"name":"Test - Modular Repository","label":"Test_Modular_Repository","content_type":"yum"},{"id":33,"name":"Test - Docker Repository","label":"Test_Docker_Repository","content_type":"docker"},{"id":34,"name":"Test - Debian Repository","label":"Test_Debian_Repository","content_type":"deb"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]},"repositories":[],"type":"package_group","rules":[{"content_view_filter_id":59,"uuid":"/pulp/api/v3/content/rpm/packagegroups/86fae512-5a7b-4f10-956c-df69a9218856/","id":6,"name":"birds","created_at":"2023-06-05 - 22:35:05 UTC","updated_at":"2023-06-05 22:35:05 UTC"},{"content_view_filter_id":59,"uuid":"/pulp/api/v3/content/rpm/packagegroups/07751227-7da7-4dc6-8da0-df1ec8fc5e05/","id":7,"name":"mammals","created_at":"2023-06-05 - 22:35:06 UTC","updated_at":"2023-06-05 22:35:06 UTC"}]}]} + Content View Filter - erratum_by_id\"","sort":{"by":"name","order":"asc"},"results":[{"inclusion":false,"id":56,"name":"Test + Content View Filter - erratum_by_id","description":null,"created_at":"2024-07-24 + 14:54:43 UTC","updated_at":"2024-07-24 14:54:43 UTC","content_view":{"composite":false,"component_ids":[],"duplicate_repositories_to_publish":[],"default":false,"version_count":0,"latest_version":null,"latest_version_id":null,"auto_publish":false,"solve_dependencies":false,"import_only":false,"generated_for":"none","related_cv_count":0,"related_composite_cvs":[],"filtered":true,"repository_ids":[13,14,15],"id":11,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":7,"organization":{"name":"Test + Organization","label":"Test_Organization","id":7},"created_at":"2024-07-24 + 14:54:40 UTC","updated_at":"2024-07-24 14:54:40 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":13,"name":"Test + Repository","label":"Test_Repository","content_type":"yum"},{"id":14,"name":"Test + Modular Repository","label":"Test_Modular_Repository","content_type":"yum"},{"id":15,"name":"Test + Docker Repository","label":"Test_Docker_Repository","content_type":"docker"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]},"repositories":[],"type":"erratum","rules":[{"content_view_filter_id":56,"errata_id":"RHEA-2012:0003","date_type":"updated","id":11,"created_at":"2024-07-24 + 14:54:48 UTC","updated_at":"2024-07-24 14:54:48 UTC"}]}]} ' headers: @@ -211,7 +208,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '2052' + - '1696' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -225,7 +222,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=97 Strict-Transport-Security: @@ -255,11 +252,11 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/content_view_filters/59/rules?search=name%3D%22birds%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/content_view_filters/56/rules?errata_id=RHEA-2012%3A0003&per_page=4294967296 response: body: - string: '{"total":2,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"birds\"","sort":{"by":"id","order":"asc"},"results":[{"content_view_filter_id":59,"uuid":"/pulp/api/v3/content/rpm/packagegroups/86fae512-5a7b-4f10-956c-df69a9218856/","id":6,"name":"birds","created_at":"2023-06-05 - 22:35:05 UTC","updated_at":"2023-06-05 22:35:05 UTC"}]} + string: '{"total":1,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":null,"sort":{"by":"id","order":"asc"},"results":[{"content_view_filter_id":56,"errata_id":"RHEA-2012:0003","date_type":"updated","id":11,"created_at":"2024-07-24 + 14:54:48 UTC","updated_at":"2024-07-24 14:54:48 UTC"}]} ' headers: @@ -268,7 +265,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '373' + - '312' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -282,7 +279,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=96 Strict-Transport-Security: @@ -300,63 +297,6 @@ interactions: status: code: 200 message: OK -- request: - body: null - headers: - Accept: - - application/json;version=2 - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - apypie (https://github.com/Apipie/apypie) - method: GET - uri: https://foreman.example.org/katello/api/package_groups?search=name%3D%22birds%22&per_page=4294967296 - response: - body: - string: '{"total":2,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"birds\"","sort":{"by":"name","order":"asc"},"results":[{"id":2,"name":"birds","pulp_id":"/pulp/api/v3/content/rpm/packagegroups/86fae512-5a7b-4f10-956c-df69a9218856/","uuid":"/pulp/api/v3/content/rpm/packagegroups/86fae512-5a7b-4f10-956c-df69a9218856/","description":"","repository":{"id":31,"name":"Test - Repository","product":{"id":10,"name":"Test Product"}}}]} - - ' - headers: - Cache-Control: - - max-age=0, private, must-revalidate - Connection: - - Keep-Alive - Content-Length: - - '465' - Content-Security-Policy: - - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; - style-src ''unsafe-inline'' ''self''' - Content-Type: - - application/json; charset=utf-8 - Foreman_api_version: - - '2' - Foreman_current_location: - - ; ANY - Foreman_current_organization: - - ; ANY - Foreman_version: - - 3.7.0-rc2 - Keep-Alive: - - timeout=15, max=95 - Strict-Transport-Security: - - max-age=631139040; includeSubdomains - X-Content-Type-Options: - - nosniff - X-Download-Options: - - noopen - X-Frame-Options: - - sameorigin - X-Permitted-Cross-Domain-Policies: - - none - X-XSS-Protection: - - 1; mode=block - status: - code: 200 - message: OK - request: body: null headers: @@ -371,11 +311,11 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: DELETE - uri: https://foreman.example.org/katello/api/content_view_filters/59/rules/6 + uri: https://foreman.example.org/katello/api/content_view_filters/56/rules/11 response: body: - string: ' {"content_view_filter_id":59,"uuid":"/pulp/api/v3/content/rpm/packagegroups/86fae512-5a7b-4f10-956c-df69a9218856/","id":6,"name":"birds","created_at":"2023-06-05 - 22:35:05 UTC","updated_at":"2023-06-05 22:35:05 UTC"} + string: ' {"content_view_filter_id":56,"errata_id":"RHEA-2012:0003","date_type":"updated","id":11,"created_at":"2024-07-24 + 14:54:48 UTC","updated_at":"2024-07-24 14:54:48 UTC"} ' headers: @@ -384,7 +324,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '218' + - '169' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -398,9 +338,9 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - - timeout=15, max=94 + - timeout=15, max=95 Strict-Transport-Security: - max-age=631139040; includeSubdomains X-Content-Type-Options: diff --git a/tests/test_playbooks/fixtures/content_view_filter_rule-23.yml b/tests/test_playbooks/fixtures/content_view_filter_rule-23.yml index cce77cb1..d14efae0 100644 --- a/tests/test_playbooks/fixtures/content_view_filter_rule-23.yml +++ b/tests/test_playbooks/fixtures/content_view_filter_rule-23.yml @@ -14,14 +14,14 @@ interactions: uri: https://foreman.example.org/api/status response: body: - string: '{"result":"ok","status":200,"version":"3.7.0-rc2","api_version":2}' + string: '{"result":"ok","status":200,"version":"3.12.0-develop","api_version":2}' headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive Content-Length: - - '66' + - '71' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -35,7 +35,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=100 Strict-Transport-Security: @@ -70,8 +70,8 @@ interactions: body: string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": 4294967296,\n \"search\": \"name=\\\"Test Organization\\\"\",\n \"sort\": - {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\":\"Test_Organization\",\"created_at\":\"2023-06-05 - 22:32:12 UTC\",\"updated_at\":\"2023-06-05 22:32:15 UTC\",\"id\":11,\"name\":\"Test + {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\":\"Test_Organization\",\"created_at\":\"2024-07-24 + 14:53:36 UTC\",\"updated_at\":\"2024-07-24 14:53:38 UTC\",\"id\":7,\"name\":\"Test Organization\",\"title\":\"Test Organization\",\"description\":\"A test organization\"}]\n}\n" headers: Cache-Control: @@ -79,7 +79,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '389' + - '388' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -93,7 +93,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=99 Strict-Transport-Security: @@ -123,18 +123,17 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/organizations/11/content_views?search=name%3D%22Test+Content+View%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/organizations/7/content_views?search=name%3D%22Test+Content+View%22&per_page=4294967296 response: body: string: '{"total":2,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Content View\"","sort":{"by":"name","order":"asc"},"results":[{"composite":false,"component_ids":[],"default":false,"version_count":0,"latest_version":null,"latest_version_id":null,"auto_publish":false,"solve_dependencies":false,"import_only":false,"generated_for":"none","related_cv_count":0,"related_composite_cvs":[],"needs_publish":true,"filtered":true,"repository_ids":[31,32,33,34],"id":19,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":11,"organization":{"name":"Test - Organization","label":"Test_Organization","id":11},"created_at":"2023-06-05 - 22:34:51 UTC","updated_at":"2023-06-05 22:34:51 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":31,"name":"Test - Repository","label":"Test_Repository","content_type":"yum"},{"id":32,"name":"Test - Modular Repository","label":"Test_Modular_Repository","content_type":"yum"},{"id":33,"name":"Test - Docker Repository","label":"Test_Docker_Repository","content_type":"docker"},{"id":34,"name":"Test - Debian Repository","label":"Test_Debian_Repository","content_type":"deb"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]}]} + Content View\"","sort":{"by":"name","order":"asc"},"results":[{"composite":false,"component_ids":[],"duplicate_repositories_to_publish":[],"default":false,"version_count":0,"latest_version":null,"latest_version_id":null,"auto_publish":false,"solve_dependencies":false,"import_only":false,"generated_for":"none","related_cv_count":0,"related_composite_cvs":[],"filtered":true,"repository_ids":[13,14,15],"id":11,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":7,"organization":{"name":"Test + Organization","label":"Test_Organization","id":7},"created_at":"2024-07-24 + 14:54:40 UTC","updated_at":"2024-07-24 14:54:40 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":13,"name":"Test + Repository","label":"Test_Repository","content_type":"yum"},{"id":14,"name":"Test + Modular Repository","label":"Test_Modular_Repository","content_type":"yum"},{"id":15,"name":"Test + Docker Repository","label":"Test_Docker_Repository","content_type":"docker"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]}]} ' headers: @@ -143,7 +142,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '1353' + - '1270' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -155,9 +154,9 @@ interactions: Foreman_current_location: - ; ANY Foreman_current_organization: - - 11; Test Organization + - 7; Test Organization Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=98 Strict-Transport-Security: @@ -187,21 +186,20 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/content_views/19/filters?search=name%3D%22Test+Content+View+Filter+-+package_group%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/content_views/11/filters?search=name%3D%22Test+Content+View+Filter+-+erratum_by_date%22&per_page=4294967296 response: body: string: '{"total":10,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Content View Filter - package_group\"","sort":{"by":"name","order":"asc"},"results":[{"inclusion":false,"id":59,"name":"Test - Content View Filter - package_group","description":null,"created_at":"2023-06-05 - 22:34:56 UTC","updated_at":"2023-06-05 22:34:56 UTC","content_view":{"composite":false,"component_ids":[],"default":false,"version_count":0,"latest_version":null,"latest_version_id":null,"auto_publish":false,"solve_dependencies":false,"import_only":false,"generated_for":"none","related_cv_count":0,"related_composite_cvs":[],"needs_publish":true,"filtered":true,"repository_ids":[31,32,33,34],"id":19,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":11,"organization":{"name":"Test - Organization","label":"Test_Organization","id":11},"created_at":"2023-06-05 - 22:34:51 UTC","updated_at":"2023-06-05 22:34:51 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":31,"name":"Test - Repository","label":"Test_Repository","content_type":"yum"},{"id":32,"name":"Test - Modular Repository","label":"Test_Modular_Repository","content_type":"yum"},{"id":33,"name":"Test - Docker Repository","label":"Test_Docker_Repository","content_type":"docker"},{"id":34,"name":"Test - Debian Repository","label":"Test_Debian_Repository","content_type":"deb"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]},"repositories":[],"type":"package_group","rules":[{"content_view_filter_id":59,"uuid":"/pulp/api/v3/content/rpm/packagegroups/07751227-7da7-4dc6-8da0-df1ec8fc5e05/","id":7,"name":"mammals","created_at":"2023-06-05 - 22:35:06 UTC","updated_at":"2023-06-05 22:35:06 UTC"}]}]} + Content View Filter - erratum_by_date\"","sort":{"by":"name","order":"asc"},"results":[{"inclusion":false,"id":57,"name":"Test + Content View Filter - erratum_by_date","description":null,"created_at":"2024-07-24 + 14:54:43 UTC","updated_at":"2024-07-24 14:54:43 UTC","content_view":{"composite":false,"component_ids":[],"duplicate_repositories_to_publish":[],"default":false,"version_count":0,"latest_version":null,"latest_version_id":null,"auto_publish":false,"solve_dependencies":false,"import_only":false,"generated_for":"none","related_cv_count":0,"related_composite_cvs":[],"filtered":true,"repository_ids":[13,14,15],"id":11,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":7,"organization":{"name":"Test + Organization","label":"Test_Organization","id":7},"created_at":"2024-07-24 + 14:54:40 UTC","updated_at":"2024-07-24 14:54:40 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":13,"name":"Test + Repository","label":"Test_Repository","content_type":"yum"},{"id":14,"name":"Test + Modular Repository","label":"Test_Modular_Repository","content_type":"yum"},{"id":15,"name":"Test + Docker Repository","label":"Test_Docker_Repository","content_type":"docker"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]},"repositories":[],"type":"erratum","rules":[{"content_view_filter_id":57,"start_date":"2017-01-03","end_date":"2019-01-03","types":["bugfix","enhancement","security"],"date_type":"updated","id":12,"created_at":"2024-07-24 + 14:54:49 UTC","updated_at":"2024-07-24 14:54:49 UTC"}]}]} ' headers: @@ -210,7 +208,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '1836' + - '1765' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -224,7 +222,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=97 Strict-Transport-Security: @@ -254,11 +252,11 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/content_view_filters/59/rules?search=name%3D%22mammals%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/content_view_filters/57/rules?per_page=4294967296 response: body: - string: '{"total":1,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"mammals\"","sort":{"by":"id","order":"asc"},"results":[{"content_view_filter_id":59,"uuid":"/pulp/api/v3/content/rpm/packagegroups/07751227-7da7-4dc6-8da0-df1ec8fc5e05/","id":7,"name":"mammals","created_at":"2023-06-05 - 22:35:06 UTC","updated_at":"2023-06-05 22:35:06 UTC"}]} + string: '{"total":1,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":null,"sort":{"by":"id","order":"asc"},"results":[{"content_view_filter_id":57,"start_date":"2017-01-03","end_date":"2019-01-03","types":["bugfix","enhancement","security"],"date_type":"updated","id":12,"created_at":"2024-07-24 + 14:54:49 UTC","updated_at":"2024-07-24 14:54:49 UTC"}]} ' headers: @@ -281,7 +279,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=96 Strict-Transport-Security: @@ -299,63 +297,6 @@ interactions: status: code: 200 message: OK -- request: - body: null - headers: - Accept: - - application/json;version=2 - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - apypie (https://github.com/Apipie/apypie) - method: GET - uri: https://foreman.example.org/katello/api/package_groups?search=name%3D%22mammals%22&per_page=4294967296 - response: - body: - string: '{"total":2,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"mammals\"","sort":{"by":"name","order":"asc"},"results":[{"id":1,"name":"mammals","pulp_id":"/pulp/api/v3/content/rpm/packagegroups/07751227-7da7-4dc6-8da0-df1ec8fc5e05/","uuid":"/pulp/api/v3/content/rpm/packagegroups/07751227-7da7-4dc6-8da0-df1ec8fc5e05/","description":"","repository":{"id":31,"name":"Test - Repository","product":{"id":10,"name":"Test Product"}}}]} - - ' - headers: - Cache-Control: - - max-age=0, private, must-revalidate - Connection: - - Keep-Alive - Content-Length: - - '469' - Content-Security-Policy: - - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; - style-src ''unsafe-inline'' ''self''' - Content-Type: - - application/json; charset=utf-8 - Foreman_api_version: - - '2' - Foreman_current_location: - - ; ANY - Foreman_current_organization: - - ; ANY - Foreman_version: - - 3.7.0-rc2 - Keep-Alive: - - timeout=15, max=95 - Strict-Transport-Security: - - max-age=631139040; includeSubdomains - X-Content-Type-Options: - - nosniff - X-Download-Options: - - noopen - X-Frame-Options: - - sameorigin - X-Permitted-Cross-Domain-Policies: - - none - X-XSS-Protection: - - 1; mode=block - status: - code: 200 - message: OK - request: body: null headers: @@ -370,11 +311,11 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: DELETE - uri: https://foreman.example.org/katello/api/content_view_filters/59/rules/7 + uri: https://foreman.example.org/katello/api/content_view_filters/57/rules/12 response: body: - string: ' {"content_view_filter_id":59,"uuid":"/pulp/api/v3/content/rpm/packagegroups/07751227-7da7-4dc6-8da0-df1ec8fc5e05/","id":7,"name":"mammals","created_at":"2023-06-05 - 22:35:06 UTC","updated_at":"2023-06-05 22:35:06 UTC"} + string: ' {"content_view_filter_id":57,"start_date":"2017-01-03","end_date":"2019-01-03","types":["bugfix","enhancement","security"],"date_type":"updated","id":12,"created_at":"2024-07-24 + 14:54:49 UTC","updated_at":"2024-07-24 14:54:49 UTC"} ' headers: @@ -383,7 +324,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '220' + - '234' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -397,9 +338,9 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - - timeout=15, max=94 + - timeout=15, max=95 Strict-Transport-Security: - max-age=631139040; includeSubdomains X-Content-Type-Options: diff --git a/tests/test_playbooks/fixtures/content_view_filter_rule-24.yml b/tests/test_playbooks/fixtures/content_view_filter_rule-24.yml index a60fe1c3..b6abe29d 100644 --- a/tests/test_playbooks/fixtures/content_view_filter_rule-24.yml +++ b/tests/test_playbooks/fixtures/content_view_filter_rule-24.yml @@ -14,14 +14,14 @@ interactions: uri: https://foreman.example.org/api/status response: body: - string: '{"result":"ok","status":200,"version":"3.7.0-rc2","api_version":2}' + string: '{"result":"ok","status":200,"version":"3.12.0-develop","api_version":2}' headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive Content-Length: - - '66' + - '71' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -35,7 +35,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=100 Strict-Transport-Security: @@ -70,8 +70,8 @@ interactions: body: string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": 4294967296,\n \"search\": \"name=\\\"Test Organization\\\"\",\n \"sort\": - {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\":\"Test_Organization\",\"created_at\":\"2023-06-05 - 22:32:12 UTC\",\"updated_at\":\"2023-06-05 22:32:15 UTC\",\"id\":11,\"name\":\"Test + {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\":\"Test_Organization\",\"created_at\":\"2024-07-24 + 14:53:36 UTC\",\"updated_at\":\"2024-07-24 14:53:38 UTC\",\"id\":7,\"name\":\"Test Organization\",\"title\":\"Test Organization\",\"description\":\"A test organization\"}]\n}\n" headers: Cache-Control: @@ -79,7 +79,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '389' + - '388' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -93,7 +93,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=99 Strict-Transport-Security: @@ -123,18 +123,17 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/organizations/11/content_views?search=name%3D%22Test+Content+View%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/organizations/7/content_views?search=name%3D%22Test+Content+View%22&per_page=4294967296 response: body: string: '{"total":2,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Content View\"","sort":{"by":"name","order":"asc"},"results":[{"composite":false,"component_ids":[],"default":false,"version_count":0,"latest_version":null,"latest_version_id":null,"auto_publish":false,"solve_dependencies":false,"import_only":false,"generated_for":"none","related_cv_count":0,"related_composite_cvs":[],"needs_publish":true,"filtered":true,"repository_ids":[31,32,33,34],"id":19,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":11,"organization":{"name":"Test - Organization","label":"Test_Organization","id":11},"created_at":"2023-06-05 - 22:34:51 UTC","updated_at":"2023-06-05 22:34:51 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":31,"name":"Test - Repository","label":"Test_Repository","content_type":"yum"},{"id":32,"name":"Test - Modular Repository","label":"Test_Modular_Repository","content_type":"yum"},{"id":33,"name":"Test - Docker Repository","label":"Test_Docker_Repository","content_type":"docker"},{"id":34,"name":"Test - Debian Repository","label":"Test_Debian_Repository","content_type":"deb"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]}]} + Content View\"","sort":{"by":"name","order":"asc"},"results":[{"composite":false,"component_ids":[],"duplicate_repositories_to_publish":[],"default":false,"version_count":0,"latest_version":null,"latest_version_id":null,"auto_publish":false,"solve_dependencies":false,"import_only":false,"generated_for":"none","related_cv_count":0,"related_composite_cvs":[],"filtered":true,"repository_ids":[13,14,15],"id":11,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":7,"organization":{"name":"Test + Organization","label":"Test_Organization","id":7},"created_at":"2024-07-24 + 14:54:40 UTC","updated_at":"2024-07-24 14:54:40 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":13,"name":"Test + Repository","label":"Test_Repository","content_type":"yum"},{"id":14,"name":"Test + Modular Repository","label":"Test_Modular_Repository","content_type":"yum"},{"id":15,"name":"Test + Docker Repository","label":"Test_Docker_Repository","content_type":"docker"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]}]} ' headers: @@ -143,7 +142,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '1353' + - '1270' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -155,9 +154,9 @@ interactions: Foreman_current_location: - ; ANY Foreman_current_organization: - - 11; Test Organization + - 7; Test Organization Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=98 Strict-Transport-Security: @@ -187,22 +186,21 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/content_views/19/filters?search=name%3D%22Test+Content+View+Filter+-+erratum_by_id%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/content_views/11/filters?search=name%3D%22Test+Content+View+Filter+-+docker%22&per_page=4294967296 response: body: string: '{"total":10,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Content View Filter - erratum_by_id\"","sort":{"by":"name","order":"asc"},"results":[{"inclusion":false,"id":60,"name":"Test - Content View Filter - erratum_by_id","description":null,"created_at":"2023-06-05 - 22:34:57 UTC","updated_at":"2023-06-05 22:34:57 UTC","content_view":{"composite":false,"component_ids":[],"default":false,"version_count":0,"latest_version":null,"latest_version_id":null,"auto_publish":false,"solve_dependencies":false,"import_only":false,"generated_for":"none","related_cv_count":0,"related_composite_cvs":[],"needs_publish":true,"filtered":true,"repository_ids":[31,32,33,34],"id":19,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":11,"organization":{"name":"Test - Organization","label":"Test_Organization","id":11},"created_at":"2023-06-05 - 22:34:51 UTC","updated_at":"2023-06-05 22:34:51 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":31,"name":"Test - Repository","label":"Test_Repository","content_type":"yum"},{"id":32,"name":"Test - Modular Repository","label":"Test_Modular_Repository","content_type":"yum"},{"id":33,"name":"Test - Docker Repository","label":"Test_Docker_Repository","content_type":"docker"},{"id":34,"name":"Test - Debian Repository","label":"Test_Debian_Repository","content_type":"deb"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]},"repositories":[],"type":"erratum","rules":[{"content_view_filter_id":60,"errata_id":"RHEA-2012:0004","date_type":"updated","id":10,"created_at":"2023-06-05 - 22:35:07 UTC","updated_at":"2023-06-05 22:35:07 UTC"},{"content_view_filter_id":60,"errata_id":"RHEA-2012:0003","date_type":"updated","id":11,"created_at":"2023-06-05 - 22:35:08 UTC","updated_at":"2023-06-05 22:35:08 UTC"}]}]} + Content View Filter - docker\"","sort":{"by":"name","order":"asc"},"results":[{"inclusion":false,"id":58,"name":"Test + Content View Filter - docker","description":null,"created_at":"2024-07-24 + 14:54:44 UTC","updated_at":"2024-07-24 14:54:44 UTC","content_view":{"composite":false,"component_ids":[],"duplicate_repositories_to_publish":[],"default":false,"version_count":0,"latest_version":null,"latest_version_id":null,"auto_publish":false,"solve_dependencies":false,"import_only":false,"generated_for":"none","related_cv_count":0,"related_composite_cvs":[],"filtered":true,"repository_ids":[13,14,15],"id":11,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":7,"organization":{"name":"Test + Organization","label":"Test_Organization","id":7},"created_at":"2024-07-24 + 14:54:40 UTC","updated_at":"2024-07-24 14:54:40 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":13,"name":"Test + Repository","label":"Test_Repository","content_type":"yum"},{"id":14,"name":"Test + Modular Repository","label":"Test_Modular_Repository","content_type":"yum"},{"id":15,"name":"Test + Docker Repository","label":"Test_Docker_Repository","content_type":"docker"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]},"repositories":[],"type":"docker","rules":[{"content_view_filter_id":58,"id":7,"name":"8.7-929","created_at":"2024-07-24 + 14:54:50 UTC","updated_at":"2024-07-24 14:54:50 UTC"},{"content_view_filter_id":58,"id":8,"name":"8.6-990","created_at":"2024-07-24 + 14:54:50 UTC","updated_at":"2024-07-24 14:54:50 UTC"}]}]} ' headers: @@ -211,7 +209,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '1946' + - '1778' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -225,7 +223,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=97 Strict-Transport-Security: @@ -255,11 +253,11 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/content_view_filters/60/rules?errata_id=RHEA-2012%3A0004&per_page=4294967296 + uri: https://foreman.example.org/katello/api/content_view_filters/58/rules?search=name%3D%228.7-929%22&per_page=4294967296 response: body: - string: '{"total":1,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":null,"sort":{"by":"id","order":"asc"},"results":[{"content_view_filter_id":60,"errata_id":"RHEA-2012:0004","date_type":"updated","id":10,"created_at":"2023-06-05 - 22:35:07 UTC","updated_at":"2023-06-05 22:35:07 UTC"}]} + string: '{"total":2,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"8.7-929\"","sort":{"by":"id","order":"asc"},"results":[{"content_view_filter_id":58,"id":7,"name":"8.7-929","created_at":"2024-07-24 + 14:54:50 UTC","updated_at":"2024-07-24 14:54:50 UTC"}]} ' headers: @@ -268,7 +266,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '312' + - '291' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -282,7 +280,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=96 Strict-Transport-Security: @@ -314,11 +312,11 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: DELETE - uri: https://foreman.example.org/katello/api/content_view_filters/60/rules/10 + uri: https://foreman.example.org/katello/api/content_view_filters/58/rules/7 response: body: - string: ' {"content_view_filter_id":60,"errata_id":"RHEA-2012:0004","date_type":"updated","id":10,"created_at":"2023-06-05 - 22:35:07 UTC","updated_at":"2023-06-05 22:35:07 UTC"} + string: ' {"content_view_filter_id":58,"id":7,"name":"8.7-929","created_at":"2024-07-24 + 14:54:50 UTC","updated_at":"2024-07-24 14:54:50 UTC"} ' headers: @@ -327,7 +325,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '169' + - '134' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -341,7 +339,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=95 Strict-Transport-Security: diff --git a/tests/test_playbooks/fixtures/content_view_filter_rule-25.yml b/tests/test_playbooks/fixtures/content_view_filter_rule-25.yml index 515ed423..61de1510 100644 --- a/tests/test_playbooks/fixtures/content_view_filter_rule-25.yml +++ b/tests/test_playbooks/fixtures/content_view_filter_rule-25.yml @@ -14,14 +14,14 @@ interactions: uri: https://foreman.example.org/api/status response: body: - string: '{"result":"ok","status":200,"version":"3.7.0-rc2","api_version":2}' + string: '{"result":"ok","status":200,"version":"3.12.0-develop","api_version":2}' headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive Content-Length: - - '66' + - '71' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -35,7 +35,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=100 Strict-Transport-Security: @@ -70,8 +70,8 @@ interactions: body: string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": 4294967296,\n \"search\": \"name=\\\"Test Organization\\\"\",\n \"sort\": - {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\":\"Test_Organization\",\"created_at\":\"2023-06-05 - 22:32:12 UTC\",\"updated_at\":\"2023-06-05 22:32:15 UTC\",\"id\":11,\"name\":\"Test + {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\":\"Test_Organization\",\"created_at\":\"2024-07-24 + 14:53:36 UTC\",\"updated_at\":\"2024-07-24 14:53:38 UTC\",\"id\":7,\"name\":\"Test Organization\",\"title\":\"Test Organization\",\"description\":\"A test organization\"}]\n}\n" headers: Cache-Control: @@ -79,7 +79,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '389' + - '388' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -93,7 +93,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=99 Strict-Transport-Security: @@ -123,18 +123,17 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/organizations/11/content_views?search=name%3D%22Test+Content+View%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/organizations/7/content_views?search=name%3D%22Test+Content+View%22&per_page=4294967296 response: body: string: '{"total":2,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Content View\"","sort":{"by":"name","order":"asc"},"results":[{"composite":false,"component_ids":[],"default":false,"version_count":0,"latest_version":null,"latest_version_id":null,"auto_publish":false,"solve_dependencies":false,"import_only":false,"generated_for":"none","related_cv_count":0,"related_composite_cvs":[],"needs_publish":true,"filtered":true,"repository_ids":[31,32,33,34],"id":19,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":11,"organization":{"name":"Test - Organization","label":"Test_Organization","id":11},"created_at":"2023-06-05 - 22:34:51 UTC","updated_at":"2023-06-05 22:34:51 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":31,"name":"Test - Repository","label":"Test_Repository","content_type":"yum"},{"id":32,"name":"Test - Modular Repository","label":"Test_Modular_Repository","content_type":"yum"},{"id":33,"name":"Test - Docker Repository","label":"Test_Docker_Repository","content_type":"docker"},{"id":34,"name":"Test - Debian Repository","label":"Test_Debian_Repository","content_type":"deb"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]}]} + Content View\"","sort":{"by":"name","order":"asc"},"results":[{"composite":false,"component_ids":[],"duplicate_repositories_to_publish":[],"default":false,"version_count":0,"latest_version":null,"latest_version_id":null,"auto_publish":false,"solve_dependencies":false,"import_only":false,"generated_for":"none","related_cv_count":0,"related_composite_cvs":[],"filtered":true,"repository_ids":[13,14,15],"id":11,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":7,"organization":{"name":"Test + Organization","label":"Test_Organization","id":7},"created_at":"2024-07-24 + 14:54:40 UTC","updated_at":"2024-07-24 14:54:40 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":13,"name":"Test + Repository","label":"Test_Repository","content_type":"yum"},{"id":14,"name":"Test + Modular Repository","label":"Test_Modular_Repository","content_type":"yum"},{"id":15,"name":"Test + Docker Repository","label":"Test_Docker_Repository","content_type":"docker"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]}]} ' headers: @@ -143,7 +142,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '1353' + - '1270' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -155,9 +154,9 @@ interactions: Foreman_current_location: - ; ANY Foreman_current_organization: - - 11; Test Organization + - 7; Test Organization Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=98 Strict-Transport-Security: @@ -187,21 +186,20 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/content_views/19/filters?search=name%3D%22Test+Content+View+Filter+-+erratum_by_id%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/content_views/11/filters?search=name%3D%22Test+Content+View+Filter+-+docker%22&per_page=4294967296 response: body: string: '{"total":10,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Content View Filter - erratum_by_id\"","sort":{"by":"name","order":"asc"},"results":[{"inclusion":false,"id":60,"name":"Test - Content View Filter - erratum_by_id","description":null,"created_at":"2023-06-05 - 22:34:57 UTC","updated_at":"2023-06-05 22:34:57 UTC","content_view":{"composite":false,"component_ids":[],"default":false,"version_count":0,"latest_version":null,"latest_version_id":null,"auto_publish":false,"solve_dependencies":false,"import_only":false,"generated_for":"none","related_cv_count":0,"related_composite_cvs":[],"needs_publish":true,"filtered":true,"repository_ids":[31,32,33,34],"id":19,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":11,"organization":{"name":"Test - Organization","label":"Test_Organization","id":11},"created_at":"2023-06-05 - 22:34:51 UTC","updated_at":"2023-06-05 22:34:51 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":31,"name":"Test - Repository","label":"Test_Repository","content_type":"yum"},{"id":32,"name":"Test - Modular Repository","label":"Test_Modular_Repository","content_type":"yum"},{"id":33,"name":"Test - Docker Repository","label":"Test_Docker_Repository","content_type":"docker"},{"id":34,"name":"Test - Debian Repository","label":"Test_Debian_Repository","content_type":"deb"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]},"repositories":[],"type":"erratum","rules":[{"content_view_filter_id":60,"errata_id":"RHEA-2012:0003","date_type":"updated","id":11,"created_at":"2023-06-05 - 22:35:08 UTC","updated_at":"2023-06-05 22:35:08 UTC"}]}]} + Content View Filter - docker\"","sort":{"by":"name","order":"asc"},"results":[{"inclusion":false,"id":58,"name":"Test + Content View Filter - docker","description":null,"created_at":"2024-07-24 + 14:54:44 UTC","updated_at":"2024-07-24 14:54:44 UTC","content_view":{"composite":false,"component_ids":[],"duplicate_repositories_to_publish":[],"default":false,"version_count":0,"latest_version":null,"latest_version_id":null,"auto_publish":false,"solve_dependencies":false,"import_only":false,"generated_for":"none","related_cv_count":0,"related_composite_cvs":[],"filtered":true,"repository_ids":[13,14,15],"id":11,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":7,"organization":{"name":"Test + Organization","label":"Test_Organization","id":7},"created_at":"2024-07-24 + 14:54:40 UTC","updated_at":"2024-07-24 14:54:40 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":13,"name":"Test + Repository","label":"Test_Repository","content_type":"yum"},{"id":14,"name":"Test + Modular Repository","label":"Test_Modular_Repository","content_type":"yum"},{"id":15,"name":"Test + Docker Repository","label":"Test_Docker_Repository","content_type":"docker"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]},"repositories":[],"type":"docker","rules":[{"content_view_filter_id":58,"id":8,"name":"8.6-990","created_at":"2024-07-24 + 14:54:50 UTC","updated_at":"2024-07-24 14:54:50 UTC"}]}]} ' headers: @@ -210,7 +208,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '1779' + - '1646' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -224,7 +222,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=97 Strict-Transport-Security: @@ -254,11 +252,11 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/content_view_filters/60/rules?errata_id=RHEA-2012%3A0003&per_page=4294967296 + uri: https://foreman.example.org/katello/api/content_view_filters/58/rules?search=name%3D%228.6-990%22&per_page=4294967296 response: body: - string: '{"total":1,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":null,"sort":{"by":"id","order":"asc"},"results":[{"content_view_filter_id":60,"errata_id":"RHEA-2012:0003","date_type":"updated","id":11,"created_at":"2023-06-05 - 22:35:08 UTC","updated_at":"2023-06-05 22:35:08 UTC"}]} + string: '{"total":1,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"8.6-990\"","sort":{"by":"id","order":"asc"},"results":[{"content_view_filter_id":58,"id":8,"name":"8.6-990","created_at":"2024-07-24 + 14:54:50 UTC","updated_at":"2024-07-24 14:54:50 UTC"}]} ' headers: @@ -267,7 +265,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '312' + - '291' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -281,7 +279,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=96 Strict-Transport-Security: @@ -313,11 +311,11 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: DELETE - uri: https://foreman.example.org/katello/api/content_view_filters/60/rules/11 + uri: https://foreman.example.org/katello/api/content_view_filters/58/rules/8 response: body: - string: ' {"content_view_filter_id":60,"errata_id":"RHEA-2012:0003","date_type":"updated","id":11,"created_at":"2023-06-05 - 22:35:08 UTC","updated_at":"2023-06-05 22:35:08 UTC"} + string: ' {"content_view_filter_id":58,"id":8,"name":"8.6-990","created_at":"2024-07-24 + 14:54:50 UTC","updated_at":"2024-07-24 14:54:50 UTC"} ' headers: @@ -326,7 +324,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '169' + - '134' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -340,7 +338,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=95 Strict-Transport-Security: diff --git a/tests/test_playbooks/fixtures/content_view_filter_rule-26.yml b/tests/test_playbooks/fixtures/content_view_filter_rule-26.yml index 63a5fdc1..7256108d 100644 --- a/tests/test_playbooks/fixtures/content_view_filter_rule-26.yml +++ b/tests/test_playbooks/fixtures/content_view_filter_rule-26.yml @@ -14,14 +14,14 @@ interactions: uri: https://foreman.example.org/api/status response: body: - string: '{"result":"ok","status":200,"version":"3.7.0-rc2","api_version":2}' + string: '{"result":"ok","status":200,"version":"3.12.0-develop","api_version":2}' headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive Content-Length: - - '66' + - '71' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -35,7 +35,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=100 Strict-Transport-Security: @@ -70,8 +70,8 @@ interactions: body: string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": 4294967296,\n \"search\": \"name=\\\"Test Organization\\\"\",\n \"sort\": - {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\":\"Test_Organization\",\"created_at\":\"2023-06-05 - 22:32:12 UTC\",\"updated_at\":\"2023-06-05 22:32:15 UTC\",\"id\":11,\"name\":\"Test + {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\":\"Test_Organization\",\"created_at\":\"2024-07-24 + 14:53:36 UTC\",\"updated_at\":\"2024-07-24 14:53:38 UTC\",\"id\":7,\"name\":\"Test Organization\",\"title\":\"Test Organization\",\"description\":\"A test organization\"}]\n}\n" headers: Cache-Control: @@ -79,7 +79,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '389' + - '388' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -93,7 +93,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=99 Strict-Transport-Security: @@ -123,18 +123,17 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/organizations/11/content_views?search=name%3D%22Test+Content+View%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/organizations/7/content_views?search=name%3D%22Test+Content+View%22&per_page=4294967296 response: body: string: '{"total":2,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Content View\"","sort":{"by":"name","order":"asc"},"results":[{"composite":false,"component_ids":[],"default":false,"version_count":0,"latest_version":null,"latest_version_id":null,"auto_publish":false,"solve_dependencies":false,"import_only":false,"generated_for":"none","related_cv_count":0,"related_composite_cvs":[],"needs_publish":true,"filtered":true,"repository_ids":[31,32,33,34],"id":19,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":11,"organization":{"name":"Test - Organization","label":"Test_Organization","id":11},"created_at":"2023-06-05 - 22:34:51 UTC","updated_at":"2023-06-05 22:34:51 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":31,"name":"Test - Repository","label":"Test_Repository","content_type":"yum"},{"id":32,"name":"Test - Modular Repository","label":"Test_Modular_Repository","content_type":"yum"},{"id":33,"name":"Test - Docker Repository","label":"Test_Docker_Repository","content_type":"docker"},{"id":34,"name":"Test - Debian Repository","label":"Test_Debian_Repository","content_type":"deb"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]}]} + Content View\"","sort":{"by":"name","order":"asc"},"results":[{"composite":false,"component_ids":[],"duplicate_repositories_to_publish":[],"default":false,"version_count":0,"latest_version":null,"latest_version_id":null,"auto_publish":false,"solve_dependencies":false,"import_only":false,"generated_for":"none","related_cv_count":0,"related_composite_cvs":[],"filtered":true,"repository_ids":[13,14,15],"id":11,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":7,"organization":{"name":"Test + Organization","label":"Test_Organization","id":7},"created_at":"2024-07-24 + 14:54:40 UTC","updated_at":"2024-07-24 14:54:40 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":13,"name":"Test + Repository","label":"Test_Repository","content_type":"yum"},{"id":14,"name":"Test + Modular Repository","label":"Test_Modular_Repository","content_type":"yum"},{"id":15,"name":"Test + Docker Repository","label":"Test_Docker_Repository","content_type":"docker"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]}]} ' headers: @@ -143,7 +142,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '1353' + - '1270' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -155,9 +154,9 @@ interactions: Foreman_current_location: - ; ANY Foreman_current_organization: - - 11; Test Organization + - 7; Test Organization Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=98 Strict-Transport-Security: @@ -187,21 +186,21 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/content_views/19/filters?search=name%3D%22Test+Content+View+Filter+-+erratum_by_date%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/content_views/11/filters?search=name%3D%22Test+Content+View+Filter+-+modulemd%22&per_page=4294967296 response: body: string: '{"total":10,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Content View Filter - erratum_by_date\"","sort":{"by":"name","order":"asc"},"results":[{"inclusion":false,"id":61,"name":"Test - Content View Filter - erratum_by_date","description":null,"created_at":"2023-06-05 - 22:34:58 UTC","updated_at":"2023-06-05 22:34:58 UTC","content_view":{"composite":false,"component_ids":[],"default":false,"version_count":0,"latest_version":null,"latest_version_id":null,"auto_publish":false,"solve_dependencies":false,"import_only":false,"generated_for":"none","related_cv_count":0,"related_composite_cvs":[],"needs_publish":true,"filtered":true,"repository_ids":[31,32,33,34],"id":19,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":11,"organization":{"name":"Test - Organization","label":"Test_Organization","id":11},"created_at":"2023-06-05 - 22:34:51 UTC","updated_at":"2023-06-05 22:34:51 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":31,"name":"Test - Repository","label":"Test_Repository","content_type":"yum"},{"id":32,"name":"Test - Modular Repository","label":"Test_Modular_Repository","content_type":"yum"},{"id":33,"name":"Test - Docker Repository","label":"Test_Docker_Repository","content_type":"docker"},{"id":34,"name":"Test - Debian Repository","label":"Test_Debian_Repository","content_type":"deb"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]},"repositories":[],"type":"erratum","rules":[{"content_view_filter_id":61,"start_date":"2017-01-03","end_date":"2019-01-03","types":["bugfix","enhancement","security"],"date_type":"updated","id":12,"created_at":"2023-06-05 - 22:35:09 UTC","updated_at":"2023-06-05 22:35:10 UTC"}]}]} + Content View Filter - modulemd\"","sort":{"by":"name","order":"asc"},"results":[{"inclusion":false,"id":59,"name":"Test + Content View Filter - modulemd","description":null,"created_at":"2024-07-24 + 14:54:44 UTC","updated_at":"2024-07-24 14:54:44 UTC","content_view":{"composite":false,"component_ids":[],"duplicate_repositories_to_publish":[],"default":false,"version_count":0,"latest_version":null,"latest_version_id":null,"auto_publish":false,"solve_dependencies":false,"import_only":false,"generated_for":"none","related_cv_count":0,"related_composite_cvs":[],"filtered":true,"repository_ids":[13,14,15],"id":11,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":7,"organization":{"name":"Test + Organization","label":"Test_Organization","id":7},"created_at":"2024-07-24 + 14:54:40 UTC","updated_at":"2024-07-24 14:54:40 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":13,"name":"Test + Repository","label":"Test_Repository","content_type":"yum"},{"id":14,"name":"Test + Modular Repository","label":"Test_Modular_Repository","content_type":"yum"},{"id":15,"name":"Test + Docker Repository","label":"Test_Docker_Repository","content_type":"docker"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]},"repositories":[],"type":"modulemd","rules":[{"content_view_filter_id":59,"module_stream_id":11,"id":11,"created_at":"2024-07-24 + 14:54:51 UTC","updated_at":"2024-07-24 14:54:51 UTC"},{"content_view_filter_id":59,"module_stream_id":24,"id":12,"created_at":"2024-07-24 + 14:54:53 UTC","updated_at":"2024-07-24 14:54:53 UTC"}]}]} ' headers: @@ -210,7 +209,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '1848' + - '1796' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -224,7 +223,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=97 Strict-Transport-Security: @@ -254,11 +253,11 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/content_view_filters/61/rules?per_page=4294967296 + uri: https://foreman.example.org/katello/api/module_streams?search=name%3D%22389-directory-server%22%2Cstream%3D%22next%22%2Cversion%3D%22820220325123957%22%2Ccontext%3D%229edba152%22&per_page=4294967296 response: body: - string: '{"total":1,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":null,"sort":{"by":"id","order":"asc"},"results":[{"content_view_filter_id":61,"start_date":"2017-01-03","end_date":"2019-01-03","types":["bugfix","enhancement","security"],"date_type":"updated","id":12,"created_at":"2023-06-05 - 22:35:09 UTC","updated_at":"2023-06-05 22:35:10 UTC"}]} + string: '{"total":24,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"389-directory-server\",stream=\"next\",version=\"820220325123957\",context=\"9edba152\"","sort":{"by":"name","order":"asc"},"results":[{"id":24,"name":"389-directory-server","pulp_id":"/pulp/api/v3/content/rpm/modulemds/0190e45f-010d-74d7-a9a1-cd01d6fdc194/","version":"820220325123957","context":"9edba152","stream":"next","arch":"x86_64","description":"389 + Directory Server is an LDAPv3 compliant server.","summary":null,"module_spec":"389-directory-server:next:820220325123957:9edba152:x86_64","uuid":"/pulp/api/v3/content/rpm/modulemds/0190e45f-010d-74d7-a9a1-cd01d6fdc194/"}]} ' headers: @@ -267,7 +266,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '377' + - '685' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -281,7 +280,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=96 Strict-Transport-Security: @@ -299,6 +298,63 @@ interactions: status: code: 200 message: OK +- request: + body: null + headers: + Accept: + - application/json;version=2 + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - apypie (https://github.com/Apipie/apypie) + method: GET + uri: https://foreman.example.org/katello/api/content_view_filters/59/rules?search=id%3D%2212%22&per_page=4294967296 + response: + body: + string: '{"total":2,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"id=\"12\"","sort":{"by":"id","order":"asc"},"results":[{"content_view_filter_id":59,"module_stream_id":24,"id":12,"created_at":"2024-07-24 + 14:54:53 UTC","updated_at":"2024-07-24 14:54:53 UTC"}]} + + ' + headers: + Cache-Control: + - max-age=0, private, must-revalidate + Connection: + - Keep-Alive + Content-Length: + - '290' + Content-Security-Policy: + - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: + - application/json; charset=utf-8 + Foreman_api_version: + - '2' + Foreman_current_location: + - ; ANY + Foreman_current_organization: + - ; ANY + Foreman_version: + - 3.12.0-develop + Keep-Alive: + - timeout=15, max=95 + Strict-Transport-Security: + - max-age=631139040; includeSubdomains + X-Content-Type-Options: + - nosniff + X-Download-Options: + - noopen + X-Frame-Options: + - sameorigin + X-Permitted-Cross-Domain-Policies: + - none + X-XSS-Protection: + - 1; mode=block + status: + code: 200 + message: OK - request: body: null headers: @@ -313,11 +369,11 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: DELETE - uri: https://foreman.example.org/katello/api/content_view_filters/61/rules/12 + uri: https://foreman.example.org/katello/api/content_view_filters/59/rules/12 response: body: - string: ' {"content_view_filter_id":61,"start_date":"2017-01-03","end_date":"2019-01-03","types":["bugfix","enhancement","security"],"date_type":"updated","id":12,"created_at":"2023-06-05 - 22:35:09 UTC","updated_at":"2023-06-05 22:35:10 UTC"} + string: ' {"content_view_filter_id":59,"module_stream_id":24,"id":12,"created_at":"2024-07-24 + 14:54:53 UTC","updated_at":"2024-07-24 14:54:53 UTC","module_stream":{"module_stream_id":24,"module_stream_name":"389-directory-server","module_stream_stream":"next"}} ' headers: @@ -326,7 +382,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '234' + - '254' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -340,9 +396,9 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - - timeout=15, max=95 + - timeout=15, max=94 Strict-Transport-Security: - max-age=631139040; includeSubdomains X-Content-Type-Options: diff --git a/tests/test_playbooks/fixtures/content_view_filter_rule-27.yml b/tests/test_playbooks/fixtures/content_view_filter_rule-27.yml index ef07055f..7693fe46 100644 --- a/tests/test_playbooks/fixtures/content_view_filter_rule-27.yml +++ b/tests/test_playbooks/fixtures/content_view_filter_rule-27.yml @@ -14,14 +14,14 @@ interactions: uri: https://foreman.example.org/api/status response: body: - string: '{"result":"ok","status":200,"version":"3.7.0-rc2","api_version":2}' + string: '{"result":"ok","status":200,"version":"3.12.0-develop","api_version":2}' headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive Content-Length: - - '66' + - '71' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -35,7 +35,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=100 Strict-Transport-Security: @@ -70,8 +70,8 @@ interactions: body: string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": 4294967296,\n \"search\": \"name=\\\"Test Organization\\\"\",\n \"sort\": - {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\":\"Test_Organization\",\"created_at\":\"2023-06-05 - 22:32:12 UTC\",\"updated_at\":\"2023-06-05 22:32:15 UTC\",\"id\":11,\"name\":\"Test + {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\":\"Test_Organization\",\"created_at\":\"2024-07-24 + 14:53:36 UTC\",\"updated_at\":\"2024-07-24 14:53:38 UTC\",\"id\":7,\"name\":\"Test Organization\",\"title\":\"Test Organization\",\"description\":\"A test organization\"}]\n}\n" headers: Cache-Control: @@ -79,7 +79,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '389' + - '388' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -93,7 +93,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=99 Strict-Transport-Security: @@ -123,18 +123,17 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/organizations/11/content_views?search=name%3D%22Test+Content+View%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/organizations/7/content_views?search=name%3D%22Test+Content+View%22&per_page=4294967296 response: body: string: '{"total":2,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Content View\"","sort":{"by":"name","order":"asc"},"results":[{"composite":false,"component_ids":[],"default":false,"version_count":0,"latest_version":null,"latest_version_id":null,"auto_publish":false,"solve_dependencies":false,"import_only":false,"generated_for":"none","related_cv_count":0,"related_composite_cvs":[],"needs_publish":true,"filtered":true,"repository_ids":[31,32,33,34],"id":19,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":11,"organization":{"name":"Test - Organization","label":"Test_Organization","id":11},"created_at":"2023-06-05 - 22:34:51 UTC","updated_at":"2023-06-05 22:34:51 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":31,"name":"Test - Repository","label":"Test_Repository","content_type":"yum"},{"id":32,"name":"Test - Modular Repository","label":"Test_Modular_Repository","content_type":"yum"},{"id":33,"name":"Test - Docker Repository","label":"Test_Docker_Repository","content_type":"docker"},{"id":34,"name":"Test - Debian Repository","label":"Test_Debian_Repository","content_type":"deb"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]}]} + Content View\"","sort":{"by":"name","order":"asc"},"results":[{"composite":false,"component_ids":[],"duplicate_repositories_to_publish":[],"default":false,"version_count":0,"latest_version":null,"latest_version_id":null,"auto_publish":false,"solve_dependencies":false,"import_only":false,"generated_for":"none","related_cv_count":0,"related_composite_cvs":[],"filtered":true,"repository_ids":[13,14,15],"id":11,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":7,"organization":{"name":"Test + Organization","label":"Test_Organization","id":7},"created_at":"2024-07-24 + 14:54:40 UTC","updated_at":"2024-07-24 14:54:40 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":13,"name":"Test + Repository","label":"Test_Repository","content_type":"yum"},{"id":14,"name":"Test + Modular Repository","label":"Test_Modular_Repository","content_type":"yum"},{"id":15,"name":"Test + Docker Repository","label":"Test_Docker_Repository","content_type":"docker"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]}]} ' headers: @@ -143,7 +142,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '1353' + - '1270' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -155,9 +154,9 @@ interactions: Foreman_current_location: - ; ANY Foreman_current_organization: - - 11; Test Organization + - 7; Test Organization Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=98 Strict-Transport-Security: @@ -187,22 +186,20 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/content_views/19/filters?search=name%3D%22Test+Content+View+Filter+-+docker%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/content_views/11/filters?search=name%3D%22Test+Content+View+Filter+-+modulemd%22&per_page=4294967296 response: body: string: '{"total":10,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Content View Filter - docker\"","sort":{"by":"name","order":"asc"},"results":[{"inclusion":false,"id":62,"name":"Test - Content View Filter - docker","description":null,"created_at":"2023-06-05 - 22:34:59 UTC","updated_at":"2023-06-05 22:34:59 UTC","content_view":{"composite":false,"component_ids":[],"default":false,"version_count":0,"latest_version":null,"latest_version_id":null,"auto_publish":false,"solve_dependencies":false,"import_only":false,"generated_for":"none","related_cv_count":0,"related_composite_cvs":[],"needs_publish":true,"filtered":true,"repository_ids":[31,32,33,34],"id":19,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":11,"organization":{"name":"Test - Organization","label":"Test_Organization","id":11},"created_at":"2023-06-05 - 22:34:51 UTC","updated_at":"2023-06-05 22:34:51 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":31,"name":"Test - Repository","label":"Test_Repository","content_type":"yum"},{"id":32,"name":"Test - Modular Repository","label":"Test_Modular_Repository","content_type":"yum"},{"id":33,"name":"Test - Docker Repository","label":"Test_Docker_Repository","content_type":"docker"},{"id":34,"name":"Test - Debian Repository","label":"Test_Debian_Repository","content_type":"deb"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]},"repositories":[],"type":"docker","rules":[{"content_view_filter_id":62,"id":6,"name":"8.7-929","created_at":"2023-06-05 - 22:35:11 UTC","updated_at":"2023-06-05 22:35:11 UTC"},{"content_view_filter_id":62,"id":7,"name":"8.6-990","created_at":"2023-06-05 - 22:35:12 UTC","updated_at":"2023-06-05 22:35:12 UTC"}]}]} + Content View Filter - modulemd\"","sort":{"by":"name","order":"asc"},"results":[{"inclusion":false,"id":59,"name":"Test + Content View Filter - modulemd","description":null,"created_at":"2024-07-24 + 14:54:44 UTC","updated_at":"2024-07-24 14:54:44 UTC","content_view":{"composite":false,"component_ids":[],"duplicate_repositories_to_publish":[],"default":false,"version_count":0,"latest_version":null,"latest_version_id":null,"auto_publish":false,"solve_dependencies":false,"import_only":false,"generated_for":"none","related_cv_count":0,"related_composite_cvs":[],"filtered":true,"repository_ids":[13,14,15],"id":11,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":7,"organization":{"name":"Test + Organization","label":"Test_Organization","id":7},"created_at":"2024-07-24 + 14:54:40 UTC","updated_at":"2024-07-24 14:54:40 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":13,"name":"Test + Repository","label":"Test_Repository","content_type":"yum"},{"id":14,"name":"Test + Modular Repository","label":"Test_Modular_Repository","content_type":"yum"},{"id":15,"name":"Test + Docker Repository","label":"Test_Docker_Repository","content_type":"docker"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]},"repositories":[],"type":"modulemd","rules":[{"content_view_filter_id":59,"module_stream_id":11,"id":11,"created_at":"2024-07-24 + 14:54:51 UTC","updated_at":"2024-07-24 14:54:51 UTC"}]}]} ' headers: @@ -211,7 +208,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '1861' + - '1658' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -225,7 +222,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=97 Strict-Transport-Security: @@ -255,11 +252,15 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/content_view_filters/62/rules?search=name%3D%228.7-929%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/module_streams?search=name%3D%22nextcloud%22%2Cstream%3D%2223%22%2Cversion%3D%22820220801190052%22%2Ccontext%3D%22nx4%22&per_page=4294967296 response: body: - string: '{"total":2,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"8.7-929\"","sort":{"by":"id","order":"asc"},"results":[{"content_view_filter_id":62,"id":6,"name":"8.7-929","created_at":"2023-06-05 - 22:35:11 UTC","updated_at":"2023-06-05 22:35:11 UTC"}]} + string: '{"total":24,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"nextcloud\",stream=\"23\",version=\"820220801190052\",context=\"nx4\"","sort":{"by":"name","order":"asc"},"results":[{"id":11,"name":"nextcloud","pulp_id":"/pulp/api/v3/content/rpm/modulemds/0190e45f-011a-770d-8383-f0816ccf0835/","version":"820220801190052","context":"nx4","stream":"23","arch":"x86_64","description":"Nextcloud + gives you universal access to your files through a web interface or WebDAV. + It also provides a platform to easily view & sync your contacts, calendars + and bookmarks across all your devices and enables basic editing right on the + web. Nextcloud is extendable via a simple but powerful API for applications + and plugins.","summary":null,"module_spec":"nextcloud:23:820220801190052:nx4:x86_64","uuid":"/pulp/api/v3/content/rpm/modulemds/0190e45f-011a-770d-8383-f0816ccf0835/"}]} ' headers: @@ -268,7 +269,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '291' + - '906' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -282,7 +283,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=96 Strict-Transport-Security: @@ -300,6 +301,63 @@ interactions: status: code: 200 message: OK +- request: + body: null + headers: + Accept: + - application/json;version=2 + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - apypie (https://github.com/Apipie/apypie) + method: GET + uri: https://foreman.example.org/katello/api/content_view_filters/59/rules?search=id%3D%2211%22&per_page=4294967296 + response: + body: + string: '{"total":1,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"id=\"11\"","sort":{"by":"id","order":"asc"},"results":[{"content_view_filter_id":59,"module_stream_id":11,"id":11,"created_at":"2024-07-24 + 14:54:51 UTC","updated_at":"2024-07-24 14:54:51 UTC"}]} + + ' + headers: + Cache-Control: + - max-age=0, private, must-revalidate + Connection: + - Keep-Alive + Content-Length: + - '290' + Content-Security-Policy: + - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: + - application/json; charset=utf-8 + Foreman_api_version: + - '2' + Foreman_current_location: + - ; ANY + Foreman_current_organization: + - ; ANY + Foreman_version: + - 3.12.0-develop + Keep-Alive: + - timeout=15, max=95 + Strict-Transport-Security: + - max-age=631139040; includeSubdomains + X-Content-Type-Options: + - nosniff + X-Download-Options: + - noopen + X-Frame-Options: + - sameorigin + X-Permitted-Cross-Domain-Policies: + - none + X-XSS-Protection: + - 1; mode=block + status: + code: 200 + message: OK - request: body: null headers: @@ -314,11 +372,11 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: DELETE - uri: https://foreman.example.org/katello/api/content_view_filters/62/rules/6 + uri: https://foreman.example.org/katello/api/content_view_filters/59/rules/11 response: body: - string: ' {"content_view_filter_id":62,"id":6,"name":"8.7-929","created_at":"2023-06-05 - 22:35:11 UTC","updated_at":"2023-06-05 22:35:11 UTC"} + string: ' {"content_view_filter_id":59,"module_stream_id":11,"id":11,"created_at":"2024-07-24 + 14:54:51 UTC","updated_at":"2024-07-24 14:54:51 UTC","module_stream":{"module_stream_id":11,"module_stream_name":"nextcloud","module_stream_stream":"23"}} ' headers: @@ -327,7 +385,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '134' + - '241' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -341,9 +399,9 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - - timeout=15, max=95 + - timeout=15, max=94 Strict-Transport-Security: - max-age=631139040; includeSubdomains X-Content-Type-Options: diff --git a/tests/test_playbooks/fixtures/content_view_filter_rule-28.yml b/tests/test_playbooks/fixtures/content_view_filter_rule-28.yml deleted file mode 100644 index b3ce764b..00000000 --- a/tests/test_playbooks/fixtures/content_view_filter_rule-28.yml +++ /dev/null @@ -1,361 +0,0 @@ -interactions: -- request: - body: null - headers: - Accept: - - application/json;version=2 - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - apypie (https://github.com/Apipie/apypie) - method: GET - uri: https://foreman.example.org/api/status - response: - body: - string: '{"result":"ok","status":200,"version":"3.7.0-rc2","api_version":2}' - headers: - Cache-Control: - - max-age=0, private, must-revalidate - Connection: - - Keep-Alive - Content-Length: - - '66' - Content-Security-Policy: - - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; - style-src ''unsafe-inline'' ''self''' - Content-Type: - - application/json; charset=utf-8 - Foreman_api_version: - - '2' - Foreman_current_location: - - ; ANY - Foreman_current_organization: - - ; ANY - Foreman_version: - - 3.7.0-rc2 - Keep-Alive: - - timeout=15, max=100 - Strict-Transport-Security: - - max-age=631139040; includeSubdomains - X-Content-Type-Options: - - nosniff - X-Download-Options: - - noopen - X-Frame-Options: - - sameorigin - X-Permitted-Cross-Domain-Policies: - - none - X-XSS-Protection: - - 1; mode=block - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json;version=2 - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - apypie (https://github.com/Apipie/apypie) - method: GET - uri: https://foreman.example.org/katello/api/organizations?search=name%3D%22Test+Organization%22&per_page=4294967296 - response: - body: - string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": - 4294967296,\n \"search\": \"name=\\\"Test Organization\\\"\",\n \"sort\": - {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\":\"Test_Organization\",\"created_at\":\"2023-06-05 - 22:32:12 UTC\",\"updated_at\":\"2023-06-05 22:32:15 UTC\",\"id\":11,\"name\":\"Test - Organization\",\"title\":\"Test Organization\",\"description\":\"A test organization\"}]\n}\n" - headers: - Cache-Control: - - max-age=0, private, must-revalidate - Connection: - - Keep-Alive - Content-Length: - - '389' - Content-Security-Policy: - - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; - style-src ''unsafe-inline'' ''self''' - Content-Type: - - application/json; charset=utf-8 - Foreman_api_version: - - '2' - Foreman_current_location: - - ; ANY - Foreman_current_organization: - - ; ANY - Foreman_version: - - 3.7.0-rc2 - Keep-Alive: - - timeout=15, max=99 - Strict-Transport-Security: - - max-age=631139040; includeSubdomains - X-Content-Type-Options: - - nosniff - X-Download-Options: - - noopen - X-Frame-Options: - - sameorigin - X-Permitted-Cross-Domain-Policies: - - none - X-XSS-Protection: - - 1; mode=block - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json;version=2 - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - apypie (https://github.com/Apipie/apypie) - method: GET - uri: https://foreman.example.org/katello/api/organizations/11/content_views?search=name%3D%22Test+Content+View%22&per_page=4294967296 - response: - body: - string: '{"total":2,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Content View\"","sort":{"by":"name","order":"asc"},"results":[{"composite":false,"component_ids":[],"default":false,"version_count":0,"latest_version":null,"latest_version_id":null,"auto_publish":false,"solve_dependencies":false,"import_only":false,"generated_for":"none","related_cv_count":0,"related_composite_cvs":[],"needs_publish":true,"filtered":true,"repository_ids":[31,32,33,34],"id":19,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":11,"organization":{"name":"Test - Organization","label":"Test_Organization","id":11},"created_at":"2023-06-05 - 22:34:51 UTC","updated_at":"2023-06-05 22:34:51 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":31,"name":"Test - Repository","label":"Test_Repository","content_type":"yum"},{"id":32,"name":"Test - Modular Repository","label":"Test_Modular_Repository","content_type":"yum"},{"id":33,"name":"Test - Docker Repository","label":"Test_Docker_Repository","content_type":"docker"},{"id":34,"name":"Test - Debian Repository","label":"Test_Debian_Repository","content_type":"deb"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]}]} - - ' - headers: - Cache-Control: - - max-age=0, private, must-revalidate - Connection: - - Keep-Alive - Content-Length: - - '1353' - Content-Security-Policy: - - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; - style-src ''unsafe-inline'' ''self''' - Content-Type: - - application/json; charset=utf-8 - Foreman_api_version: - - '2' - Foreman_current_location: - - ; ANY - Foreman_current_organization: - - 11; Test Organization - Foreman_version: - - 3.7.0-rc2 - Keep-Alive: - - timeout=15, max=98 - Strict-Transport-Security: - - max-age=631139040; includeSubdomains - X-Content-Type-Options: - - nosniff - X-Download-Options: - - noopen - X-Frame-Options: - - sameorigin - X-Permitted-Cross-Domain-Policies: - - none - X-XSS-Protection: - - 1; mode=block - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json;version=2 - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - apypie (https://github.com/Apipie/apypie) - method: GET - uri: https://foreman.example.org/katello/api/content_views/19/filters?search=name%3D%22Test+Content+View+Filter+-+docker%22&per_page=4294967296 - response: - body: - string: '{"total":10,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Content View Filter - docker\"","sort":{"by":"name","order":"asc"},"results":[{"inclusion":false,"id":62,"name":"Test - Content View Filter - docker","description":null,"created_at":"2023-06-05 - 22:34:59 UTC","updated_at":"2023-06-05 22:34:59 UTC","content_view":{"composite":false,"component_ids":[],"default":false,"version_count":0,"latest_version":null,"latest_version_id":null,"auto_publish":false,"solve_dependencies":false,"import_only":false,"generated_for":"none","related_cv_count":0,"related_composite_cvs":[],"needs_publish":true,"filtered":true,"repository_ids":[31,32,33,34],"id":19,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":11,"organization":{"name":"Test - Organization","label":"Test_Organization","id":11},"created_at":"2023-06-05 - 22:34:51 UTC","updated_at":"2023-06-05 22:34:51 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":31,"name":"Test - Repository","label":"Test_Repository","content_type":"yum"},{"id":32,"name":"Test - Modular Repository","label":"Test_Modular_Repository","content_type":"yum"},{"id":33,"name":"Test - Docker Repository","label":"Test_Docker_Repository","content_type":"docker"},{"id":34,"name":"Test - Debian Repository","label":"Test_Debian_Repository","content_type":"deb"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]},"repositories":[],"type":"docker","rules":[{"content_view_filter_id":62,"id":7,"name":"8.6-990","created_at":"2023-06-05 - 22:35:12 UTC","updated_at":"2023-06-05 22:35:12 UTC"}]}]} - - ' - headers: - Cache-Control: - - max-age=0, private, must-revalidate - Connection: - - Keep-Alive - Content-Length: - - '1729' - Content-Security-Policy: - - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; - style-src ''unsafe-inline'' ''self''' - Content-Type: - - application/json; charset=utf-8 - Foreman_api_version: - - '2' - Foreman_current_location: - - ; ANY - Foreman_current_organization: - - ; ANY - Foreman_version: - - 3.7.0-rc2 - Keep-Alive: - - timeout=15, max=97 - Strict-Transport-Security: - - max-age=631139040; includeSubdomains - X-Content-Type-Options: - - nosniff - X-Download-Options: - - noopen - X-Frame-Options: - - sameorigin - X-Permitted-Cross-Domain-Policies: - - none - X-XSS-Protection: - - 1; mode=block - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json;version=2 - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - apypie (https://github.com/Apipie/apypie) - method: GET - uri: https://foreman.example.org/katello/api/content_view_filters/62/rules?search=name%3D%228.6-990%22&per_page=4294967296 - response: - body: - string: '{"total":1,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"8.6-990\"","sort":{"by":"id","order":"asc"},"results":[{"content_view_filter_id":62,"id":7,"name":"8.6-990","created_at":"2023-06-05 - 22:35:12 UTC","updated_at":"2023-06-05 22:35:12 UTC"}]} - - ' - headers: - Cache-Control: - - max-age=0, private, must-revalidate - Connection: - - Keep-Alive - Content-Length: - - '291' - Content-Security-Policy: - - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; - style-src ''unsafe-inline'' ''self''' - Content-Type: - - application/json; charset=utf-8 - Foreman_api_version: - - '2' - Foreman_current_location: - - ; ANY - Foreman_current_organization: - - ; ANY - Foreman_version: - - 3.7.0-rc2 - Keep-Alive: - - timeout=15, max=96 - Strict-Transport-Security: - - max-age=631139040; includeSubdomains - X-Content-Type-Options: - - nosniff - X-Download-Options: - - noopen - X-Frame-Options: - - sameorigin - X-Permitted-Cross-Domain-Policies: - - none - X-XSS-Protection: - - 1; mode=block - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json;version=2 - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '0' - User-Agent: - - apypie (https://github.com/Apipie/apypie) - method: DELETE - uri: https://foreman.example.org/katello/api/content_view_filters/62/rules/7 - response: - body: - string: ' {"content_view_filter_id":62,"id":7,"name":"8.6-990","created_at":"2023-06-05 - 22:35:12 UTC","updated_at":"2023-06-05 22:35:12 UTC"} - - ' - headers: - Cache-Control: - - max-age=0, private, must-revalidate - Connection: - - Keep-Alive - Content-Length: - - '134' - Content-Security-Policy: - - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; - style-src ''unsafe-inline'' ''self''' - Content-Type: - - application/json; charset=utf-8 - Foreman_api_version: - - '2' - Foreman_current_location: - - ; ANY - Foreman_current_organization: - - ; ANY - Foreman_version: - - 3.7.0-rc2 - Keep-Alive: - - timeout=15, max=95 - Strict-Transport-Security: - - max-age=631139040; includeSubdomains - X-Content-Type-Options: - - nosniff - X-Download-Options: - - noopen - X-Frame-Options: - - sameorigin - X-Permitted-Cross-Domain-Policies: - - none - X-XSS-Protection: - - 1; mode=block - status: - code: 200 - message: OK -version: 1 diff --git a/tests/test_playbooks/fixtures/content_view_filter_rule-29.yml b/tests/test_playbooks/fixtures/content_view_filter_rule-29.yml deleted file mode 100644 index edee5643..00000000 --- a/tests/test_playbooks/fixtures/content_view_filter_rule-29.yml +++ /dev/null @@ -1,419 +0,0 @@ -interactions: -- request: - body: null - headers: - Accept: - - application/json;version=2 - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - apypie (https://github.com/Apipie/apypie) - method: GET - uri: https://foreman.example.org/api/status - response: - body: - string: '{"result":"ok","status":200,"version":"3.7.0-rc2","api_version":2}' - headers: - Cache-Control: - - max-age=0, private, must-revalidate - Connection: - - Keep-Alive - Content-Length: - - '66' - Content-Security-Policy: - - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; - style-src ''unsafe-inline'' ''self''' - Content-Type: - - application/json; charset=utf-8 - Foreman_api_version: - - '2' - Foreman_current_location: - - ; ANY - Foreman_current_organization: - - ; ANY - Foreman_version: - - 3.7.0-rc2 - Keep-Alive: - - timeout=15, max=100 - Strict-Transport-Security: - - max-age=631139040; includeSubdomains - X-Content-Type-Options: - - nosniff - X-Download-Options: - - noopen - X-Frame-Options: - - sameorigin - X-Permitted-Cross-Domain-Policies: - - none - X-XSS-Protection: - - 1; mode=block - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json;version=2 - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - apypie (https://github.com/Apipie/apypie) - method: GET - uri: https://foreman.example.org/katello/api/organizations?search=name%3D%22Test+Organization%22&per_page=4294967296 - response: - body: - string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": - 4294967296,\n \"search\": \"name=\\\"Test Organization\\\"\",\n \"sort\": - {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\":\"Test_Organization\",\"created_at\":\"2023-06-05 - 22:32:12 UTC\",\"updated_at\":\"2023-06-05 22:32:15 UTC\",\"id\":11,\"name\":\"Test - Organization\",\"title\":\"Test Organization\",\"description\":\"A test organization\"}]\n}\n" - headers: - Cache-Control: - - max-age=0, private, must-revalidate - Connection: - - Keep-Alive - Content-Length: - - '389' - Content-Security-Policy: - - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; - style-src ''unsafe-inline'' ''self''' - Content-Type: - - application/json; charset=utf-8 - Foreman_api_version: - - '2' - Foreman_current_location: - - ; ANY - Foreman_current_organization: - - ; ANY - Foreman_version: - - 3.7.0-rc2 - Keep-Alive: - - timeout=15, max=99 - Strict-Transport-Security: - - max-age=631139040; includeSubdomains - X-Content-Type-Options: - - nosniff - X-Download-Options: - - noopen - X-Frame-Options: - - sameorigin - X-Permitted-Cross-Domain-Policies: - - none - X-XSS-Protection: - - 1; mode=block - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json;version=2 - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - apypie (https://github.com/Apipie/apypie) - method: GET - uri: https://foreman.example.org/katello/api/organizations/11/content_views?search=name%3D%22Test+Content+View%22&per_page=4294967296 - response: - body: - string: '{"total":2,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Content View\"","sort":{"by":"name","order":"asc"},"results":[{"composite":false,"component_ids":[],"default":false,"version_count":0,"latest_version":null,"latest_version_id":null,"auto_publish":false,"solve_dependencies":false,"import_only":false,"generated_for":"none","related_cv_count":0,"related_composite_cvs":[],"needs_publish":true,"filtered":true,"repository_ids":[31,32,33,34],"id":19,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":11,"organization":{"name":"Test - Organization","label":"Test_Organization","id":11},"created_at":"2023-06-05 - 22:34:51 UTC","updated_at":"2023-06-05 22:34:51 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":31,"name":"Test - Repository","label":"Test_Repository","content_type":"yum"},{"id":32,"name":"Test - Modular Repository","label":"Test_Modular_Repository","content_type":"yum"},{"id":33,"name":"Test - Docker Repository","label":"Test_Docker_Repository","content_type":"docker"},{"id":34,"name":"Test - Debian Repository","label":"Test_Debian_Repository","content_type":"deb"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]}]} - - ' - headers: - Cache-Control: - - max-age=0, private, must-revalidate - Connection: - - Keep-Alive - Content-Length: - - '1353' - Content-Security-Policy: - - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; - style-src ''unsafe-inline'' ''self''' - Content-Type: - - application/json; charset=utf-8 - Foreman_api_version: - - '2' - Foreman_current_location: - - ; ANY - Foreman_current_organization: - - 11; Test Organization - Foreman_version: - - 3.7.0-rc2 - Keep-Alive: - - timeout=15, max=98 - Strict-Transport-Security: - - max-age=631139040; includeSubdomains - X-Content-Type-Options: - - nosniff - X-Download-Options: - - noopen - X-Frame-Options: - - sameorigin - X-Permitted-Cross-Domain-Policies: - - none - X-XSS-Protection: - - 1; mode=block - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json;version=2 - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - apypie (https://github.com/Apipie/apypie) - method: GET - uri: https://foreman.example.org/katello/api/content_views/19/filters?search=name%3D%22Test+Content+View+Filter+-+modulemd%22&per_page=4294967296 - response: - body: - string: '{"total":10,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Content View Filter - modulemd\"","sort":{"by":"name","order":"asc"},"results":[{"inclusion":false,"id":63,"name":"Test - Content View Filter - modulemd","description":null,"created_at":"2023-06-05 - 22:35:00 UTC","updated_at":"2023-06-05 22:35:00 UTC","content_view":{"composite":false,"component_ids":[],"default":false,"version_count":0,"latest_version":null,"latest_version_id":null,"auto_publish":false,"solve_dependencies":false,"import_only":false,"generated_for":"none","related_cv_count":0,"related_composite_cvs":[],"needs_publish":true,"filtered":true,"repository_ids":[31,32,33,34],"id":19,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":11,"organization":{"name":"Test - Organization","label":"Test_Organization","id":11},"created_at":"2023-06-05 - 22:34:51 UTC","updated_at":"2023-06-05 22:34:51 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":31,"name":"Test - Repository","label":"Test_Repository","content_type":"yum"},{"id":32,"name":"Test - Modular Repository","label":"Test_Modular_Repository","content_type":"yum"},{"id":33,"name":"Test - Docker Repository","label":"Test_Docker_Repository","content_type":"docker"},{"id":34,"name":"Test - Debian Repository","label":"Test_Debian_Repository","content_type":"deb"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]},"repositories":[],"type":"modulemd","rules":[{"content_view_filter_id":63,"module_stream_id":11,"id":5,"created_at":"2023-06-05 - 22:35:14 UTC","updated_at":"2023-06-05 22:35:14 UTC"},{"content_view_filter_id":63,"module_stream_id":24,"id":6,"created_at":"2023-06-05 - 22:35:19 UTC","updated_at":"2023-06-05 22:35:19 UTC"}]}]} - - ' - headers: - Cache-Control: - - max-age=0, private, must-revalidate - Connection: - - Keep-Alive - Content-Length: - - '1877' - Content-Security-Policy: - - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; - style-src ''unsafe-inline'' ''self''' - Content-Type: - - application/json; charset=utf-8 - Foreman_api_version: - - '2' - Foreman_current_location: - - ; ANY - Foreman_current_organization: - - ; ANY - Foreman_version: - - 3.7.0-rc2 - Keep-Alive: - - timeout=15, max=97 - Strict-Transport-Security: - - max-age=631139040; includeSubdomains - X-Content-Type-Options: - - nosniff - X-Download-Options: - - noopen - X-Frame-Options: - - sameorigin - X-Permitted-Cross-Domain-Policies: - - none - X-XSS-Protection: - - 1; mode=block - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json;version=2 - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - apypie (https://github.com/Apipie/apypie) - method: GET - uri: https://foreman.example.org/katello/api/module_streams?search=name%3D%22389-directory-server%22%2Cstream%3D%22next%22%2Cversion%3D%22820220325123957%22%2Ccontext%3D%229edba152%22&per_page=4294967296 - response: - body: - string: '{"total":24,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"389-directory-server\",stream=\"next\",version=\"820220325123957\",context=\"9edba152\"","sort":{"by":"name","order":"asc"},"results":[{"id":24,"name":"389-directory-server","pulp_id":"/pulp/api/v3/content/rpm/modulemds/0e721ce9-6995-40e8-8086-a5a47b89af0b/","version":"820220325123957","context":"9edba152","stream":"next","arch":"x86_64","description":"389 - Directory Server is an LDAPv3 compliant server.","summary":null,"module_spec":"389-directory-server:next:820220325123957:9edba152:x86_64","uuid":"/pulp/api/v3/content/rpm/modulemds/0e721ce9-6995-40e8-8086-a5a47b89af0b/"}]} - - ' - headers: - Cache-Control: - - max-age=0, private, must-revalidate - Connection: - - Keep-Alive - Content-Length: - - '685' - Content-Security-Policy: - - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; - style-src ''unsafe-inline'' ''self''' - Content-Type: - - application/json; charset=utf-8 - Foreman_api_version: - - '2' - Foreman_current_location: - - ; ANY - Foreman_current_organization: - - ; ANY - Foreman_version: - - 3.7.0-rc2 - Keep-Alive: - - timeout=15, max=96 - Strict-Transport-Security: - - max-age=631139040; includeSubdomains - X-Content-Type-Options: - - nosniff - X-Download-Options: - - noopen - X-Frame-Options: - - sameorigin - X-Permitted-Cross-Domain-Policies: - - none - X-XSS-Protection: - - 1; mode=block - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json;version=2 - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - apypie (https://github.com/Apipie/apypie) - method: GET - uri: https://foreman.example.org/katello/api/content_view_filters/63/rules?search=id%3D%226%22&per_page=4294967296 - response: - body: - string: '{"total":2,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"id=\"6\"","sort":{"by":"id","order":"asc"},"results":[{"content_view_filter_id":63,"module_stream_id":24,"id":6,"created_at":"2023-06-05 - 22:35:19 UTC","updated_at":"2023-06-05 22:35:19 UTC"}]} - - ' - headers: - Cache-Control: - - max-age=0, private, must-revalidate - Connection: - - Keep-Alive - Content-Length: - - '288' - Content-Security-Policy: - - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; - style-src ''unsafe-inline'' ''self''' - Content-Type: - - application/json; charset=utf-8 - Foreman_api_version: - - '2' - Foreman_current_location: - - ; ANY - Foreman_current_organization: - - ; ANY - Foreman_version: - - 3.7.0-rc2 - Keep-Alive: - - timeout=15, max=95 - Strict-Transport-Security: - - max-age=631139040; includeSubdomains - X-Content-Type-Options: - - nosniff - X-Download-Options: - - noopen - X-Frame-Options: - - sameorigin - X-Permitted-Cross-Domain-Policies: - - none - X-XSS-Protection: - - 1; mode=block - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json;version=2 - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '0' - User-Agent: - - apypie (https://github.com/Apipie/apypie) - method: DELETE - uri: https://foreman.example.org/katello/api/content_view_filters/63/rules/6 - response: - body: - string: ' {"content_view_filter_id":63,"module_stream_id":24,"id":6,"created_at":"2023-06-05 - 22:35:19 UTC","updated_at":"2023-06-05 22:35:19 UTC"} - - ' - headers: - Cache-Control: - - max-age=0, private, must-revalidate - Connection: - - Keep-Alive - Content-Length: - - '139' - Content-Security-Policy: - - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; - style-src ''unsafe-inline'' ''self''' - Content-Type: - - application/json; charset=utf-8 - Foreman_api_version: - - '2' - Foreman_current_location: - - ; ANY - Foreman_current_organization: - - ; ANY - Foreman_version: - - 3.7.0-rc2 - Keep-Alive: - - timeout=15, max=94 - Strict-Transport-Security: - - max-age=631139040; includeSubdomains - X-Content-Type-Options: - - nosniff - X-Download-Options: - - noopen - X-Frame-Options: - - sameorigin - X-Permitted-Cross-Domain-Policies: - - none - X-XSS-Protection: - - 1; mode=block - status: - code: 200 - message: OK -version: 1 diff --git a/tests/test_playbooks/fixtures/content_view_filter_rule-3.yml b/tests/test_playbooks/fixtures/content_view_filter_rule-3.yml index 90f34c60..3063846b 100644 --- a/tests/test_playbooks/fixtures/content_view_filter_rule-3.yml +++ b/tests/test_playbooks/fixtures/content_view_filter_rule-3.yml @@ -14,14 +14,14 @@ interactions: uri: https://foreman.example.org/api/status response: body: - string: '{"result":"ok","status":200,"version":"3.7.0-rc2","api_version":2}' + string: '{"result":"ok","status":200,"version":"3.12.0-develop","api_version":2}' headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive Content-Length: - - '66' + - '71' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -35,7 +35,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=100 Strict-Transport-Security: @@ -70,8 +70,8 @@ interactions: body: string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": 4294967296,\n \"search\": \"name=\\\"Test Organization\\\"\",\n \"sort\": - {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\":\"Test_Organization\",\"created_at\":\"2023-06-05 - 22:32:12 UTC\",\"updated_at\":\"2023-06-05 22:32:15 UTC\",\"id\":11,\"name\":\"Test + {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\":\"Test_Organization\",\"created_at\":\"2024-07-24 + 14:53:36 UTC\",\"updated_at\":\"2024-07-24 14:53:38 UTC\",\"id\":7,\"name\":\"Test Organization\",\"title\":\"Test Organization\",\"description\":\"A test organization\"}]\n}\n" headers: Cache-Control: @@ -79,7 +79,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '389' + - '388' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -93,7 +93,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=99 Strict-Transport-Security: @@ -123,18 +123,17 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/organizations/11/content_views?search=name%3D%22Test+Content+View%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/organizations/7/content_views?search=name%3D%22Test+Content+View%22&per_page=4294967296 response: body: string: '{"total":2,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Content View\"","sort":{"by":"name","order":"asc"},"results":[{"composite":false,"component_ids":[],"default":false,"version_count":0,"latest_version":null,"latest_version_id":null,"auto_publish":false,"solve_dependencies":false,"import_only":false,"generated_for":"none","related_cv_count":0,"related_composite_cvs":[],"needs_publish":true,"filtered":true,"repository_ids":[31,32,33,34],"id":19,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":11,"organization":{"name":"Test - Organization","label":"Test_Organization","id":11},"created_at":"2023-06-05 - 22:34:51 UTC","updated_at":"2023-06-05 22:34:51 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":31,"name":"Test - Repository","label":"Test_Repository","content_type":"yum"},{"id":32,"name":"Test - Modular Repository","label":"Test_Modular_Repository","content_type":"yum"},{"id":33,"name":"Test - Docker Repository","label":"Test_Docker_Repository","content_type":"docker"},{"id":34,"name":"Test - Debian Repository","label":"Test_Debian_Repository","content_type":"deb"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]}]} + Content View\"","sort":{"by":"name","order":"asc"},"results":[{"composite":false,"component_ids":[],"duplicate_repositories_to_publish":[],"default":false,"version_count":0,"latest_version":null,"latest_version_id":null,"auto_publish":false,"solve_dependencies":false,"import_only":false,"generated_for":"none","related_cv_count":0,"related_composite_cvs":[],"filtered":true,"repository_ids":[13,14,15],"id":11,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":7,"organization":{"name":"Test + Organization","label":"Test_Organization","id":7},"created_at":"2024-07-24 + 14:54:40 UTC","updated_at":"2024-07-24 14:54:40 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":13,"name":"Test + Repository","label":"Test_Repository","content_type":"yum"},{"id":14,"name":"Test + Modular Repository","label":"Test_Modular_Repository","content_type":"yum"},{"id":15,"name":"Test + Docker Repository","label":"Test_Docker_Repository","content_type":"docker"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]}]} ' headers: @@ -143,7 +142,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '1353' + - '1270' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -155,9 +154,9 @@ interactions: Foreman_current_location: - ; ANY Foreman_current_organization: - - 11; Test Organization + - 7; Test Organization Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=98 Strict-Transport-Security: @@ -187,20 +186,19 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/content_views/19/filters?search=name%3D%22Test+Content+View+Filter+-+package_group%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/content_views/11/filters?search=name%3D%22Test+Content+View+Filter+-+package_group%22&per_page=4294967296 response: body: string: '{"total":10,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Content View Filter - package_group\"","sort":{"by":"name","order":"asc"},"results":[{"inclusion":false,"id":59,"name":"Test - Content View Filter - package_group","description":null,"created_at":"2023-06-05 - 22:34:56 UTC","updated_at":"2023-06-05 22:34:56 UTC","content_view":{"composite":false,"component_ids":[],"default":false,"version_count":0,"latest_version":null,"latest_version_id":null,"auto_publish":false,"solve_dependencies":false,"import_only":false,"generated_for":"none","related_cv_count":0,"related_composite_cvs":[],"needs_publish":true,"filtered":true,"repository_ids":[31,32,33,34],"id":19,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":11,"organization":{"name":"Test - Organization","label":"Test_Organization","id":11},"created_at":"2023-06-05 - 22:34:51 UTC","updated_at":"2023-06-05 22:34:51 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":31,"name":"Test - Repository","label":"Test_Repository","content_type":"yum"},{"id":32,"name":"Test - Modular Repository","label":"Test_Modular_Repository","content_type":"yum"},{"id":33,"name":"Test - Docker Repository","label":"Test_Docker_Repository","content_type":"docker"},{"id":34,"name":"Test - Debian Repository","label":"Test_Debian_Repository","content_type":"deb"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]},"repositories":[],"type":"package_group","rules":[]}]} + Content View Filter - package_group\"","sort":{"by":"name","order":"asc"},"results":[{"inclusion":false,"id":55,"name":"Test + Content View Filter - package_group","description":null,"created_at":"2024-07-24 + 14:54:42 UTC","updated_at":"2024-07-24 14:54:42 UTC","content_view":{"composite":false,"component_ids":[],"duplicate_repositories_to_publish":[],"default":false,"version_count":0,"latest_version":null,"latest_version_id":null,"auto_publish":false,"solve_dependencies":false,"import_only":false,"generated_for":"none","related_cv_count":0,"related_composite_cvs":[],"filtered":true,"repository_ids":[13,14,15],"id":11,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":7,"organization":{"name":"Test + Organization","label":"Test_Organization","id":7},"created_at":"2024-07-24 + 14:54:40 UTC","updated_at":"2024-07-24 14:54:40 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":13,"name":"Test + Repository","label":"Test_Repository","content_type":"yum"},{"id":14,"name":"Test + Modular Repository","label":"Test_Modular_Repository","content_type":"yum"},{"id":15,"name":"Test + Docker Repository","label":"Test_Docker_Repository","content_type":"docker"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]},"repositories":[],"type":"package_group","rules":[]}]} ' headers: @@ -209,7 +207,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '1619' + - '1536' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -223,7 +221,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=97 Strict-Transport-Security: @@ -253,7 +251,7 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/content_view_filters/59/rules?search=name%3D%22birds%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/content_view_filters/55/rules?search=name%3D%22birds%22&per_page=4294967296 response: body: string: '{"total":0,"subtotal":0,"selectable":0,"page":1,"per_page":"4294967296","error":null,"search":"name=\"birds\"","sort":{"by":"id","order":"asc"},"results":[]} @@ -279,7 +277,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=96 Strict-Transport-Security: @@ -312,8 +310,8 @@ interactions: uri: https://foreman.example.org/katello/api/package_groups?search=name%3D%22birds%22&per_page=4294967296 response: body: - string: '{"total":2,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"birds\"","sort":{"by":"name","order":"asc"},"results":[{"id":2,"name":"birds","pulp_id":"/pulp/api/v3/content/rpm/packagegroups/86fae512-5a7b-4f10-956c-df69a9218856/","uuid":"/pulp/api/v3/content/rpm/packagegroups/86fae512-5a7b-4f10-956c-df69a9218856/","description":"","repository":{"id":31,"name":"Test - Repository","product":{"id":10,"name":"Test Product"}}}]} + string: '{"total":2,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"birds\"","sort":{"by":"name","order":"asc"},"results":[{"id":2,"name":"birds","pulp_id":"/pulp/api/v3/content/rpm/packagegroups/0190e45e-fd99-76f9-872f-f31298c228c1/","uuid":"/pulp/api/v3/content/rpm/packagegroups/0190e45e-fd99-76f9-872f-f31298c228c1/","description":"","repository":{"id":13,"name":"Test + Repository","product":{"id":5,"name":"Test Product"}}}]} ' headers: @@ -322,7 +320,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '465' + - '464' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -336,7 +334,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=95 Strict-Transport-Security: @@ -369,8 +367,8 @@ interactions: uri: https://foreman.example.org/katello/api/package_groups/2 response: body: - string: ' {"id":2,"name":"birds","pulp_id":"/pulp/api/v3/content/rpm/packagegroups/86fae512-5a7b-4f10-956c-df69a9218856/","uuid":"/pulp/api/v3/content/rpm/packagegroups/86fae512-5a7b-4f10-956c-df69a9218856/","description":"","repository":{"id":31,"name":"Test - Repository","product":{"id":10,"name":"Test Product"}},"default_package_names":[],"mandatory_package_names":["cockateel","duck","penguin","stork"],"conditional_package_names":[],"optional_package_names":[]} + string: ' {"id":2,"name":"birds","pulp_id":"/pulp/api/v3/content/rpm/packagegroups/0190e45e-fd99-76f9-872f-f31298c228c1/","uuid":"/pulp/api/v3/content/rpm/packagegroups/0190e45e-fd99-76f9-872f-f31298c228c1/","description":"","repository":{"id":13,"name":"Test + Repository","product":{"id":5,"name":"Test Product"}},"default_package_names":[],"mandatory_package_names":["cockateel","duck","penguin","stork"],"conditional_package_names":[],"optional_package_names":[]} ' headers: @@ -379,7 +377,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '459' + - '458' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -393,7 +391,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=94 Strict-Transport-Security: @@ -412,7 +410,7 @@ interactions: code: 200 message: OK - request: - body: '{"name": "birds", "uuid": "/pulp/api/v3/content/rpm/packagegroups/86fae512-5a7b-4f10-956c-df69a9218856/"}' + body: '{"name": "birds", "uuid": "/pulp/api/v3/content/rpm/packagegroups/0190e45e-fd99-76f9-872f-f31298c228c1/"}' headers: Accept: - application/json;version=2 @@ -427,11 +425,11 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: POST - uri: https://foreman.example.org/katello/api/content_view_filters/59/rules + uri: https://foreman.example.org/katello/api/content_view_filters/55/rules response: body: - string: ' {"content_view_filter_id":59,"uuid":"/pulp/api/v3/content/rpm/packagegroups/86fae512-5a7b-4f10-956c-df69a9218856/","id":6,"name":"birds","created_at":"2023-06-05 - 22:35:05 UTC","updated_at":"2023-06-05 22:35:05 UTC"} + string: ' {"content_view_filter_id":55,"uuid":"/pulp/api/v3/content/rpm/packagegroups/0190e45e-fd99-76f9-872f-f31298c228c1/","id":7,"name":"birds","created_at":"2024-07-24 + 14:54:47 UTC","updated_at":"2024-07-24 14:54:47 UTC"} ' headers: @@ -454,7 +452,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=93 Strict-Transport-Security: diff --git a/tests/test_playbooks/fixtures/content_view_filter_rule-30.yml b/tests/test_playbooks/fixtures/content_view_filter_rule-30.yml deleted file mode 100644 index 46428071..00000000 --- a/tests/test_playbooks/fixtures/content_view_filter_rule-30.yml +++ /dev/null @@ -1,422 +0,0 @@ -interactions: -- request: - body: null - headers: - Accept: - - application/json;version=2 - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - apypie (https://github.com/Apipie/apypie) - method: GET - uri: https://foreman.example.org/api/status - response: - body: - string: '{"result":"ok","status":200,"version":"3.7.0-rc2","api_version":2}' - headers: - Cache-Control: - - max-age=0, private, must-revalidate - Connection: - - Keep-Alive - Content-Length: - - '66' - Content-Security-Policy: - - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; - style-src ''unsafe-inline'' ''self''' - Content-Type: - - application/json; charset=utf-8 - Foreman_api_version: - - '2' - Foreman_current_location: - - ; ANY - Foreman_current_organization: - - ; ANY - Foreman_version: - - 3.7.0-rc2 - Keep-Alive: - - timeout=15, max=100 - Strict-Transport-Security: - - max-age=631139040; includeSubdomains - X-Content-Type-Options: - - nosniff - X-Download-Options: - - noopen - X-Frame-Options: - - sameorigin - X-Permitted-Cross-Domain-Policies: - - none - X-XSS-Protection: - - 1; mode=block - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json;version=2 - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - apypie (https://github.com/Apipie/apypie) - method: GET - uri: https://foreman.example.org/katello/api/organizations?search=name%3D%22Test+Organization%22&per_page=4294967296 - response: - body: - string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": - 4294967296,\n \"search\": \"name=\\\"Test Organization\\\"\",\n \"sort\": - {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\":\"Test_Organization\",\"created_at\":\"2023-06-05 - 22:32:12 UTC\",\"updated_at\":\"2023-06-05 22:32:15 UTC\",\"id\":11,\"name\":\"Test - Organization\",\"title\":\"Test Organization\",\"description\":\"A test organization\"}]\n}\n" - headers: - Cache-Control: - - max-age=0, private, must-revalidate - Connection: - - Keep-Alive - Content-Length: - - '389' - Content-Security-Policy: - - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; - style-src ''unsafe-inline'' ''self''' - Content-Type: - - application/json; charset=utf-8 - Foreman_api_version: - - '2' - Foreman_current_location: - - ; ANY - Foreman_current_organization: - - ; ANY - Foreman_version: - - 3.7.0-rc2 - Keep-Alive: - - timeout=15, max=99 - Strict-Transport-Security: - - max-age=631139040; includeSubdomains - X-Content-Type-Options: - - nosniff - X-Download-Options: - - noopen - X-Frame-Options: - - sameorigin - X-Permitted-Cross-Domain-Policies: - - none - X-XSS-Protection: - - 1; mode=block - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json;version=2 - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - apypie (https://github.com/Apipie/apypie) - method: GET - uri: https://foreman.example.org/katello/api/organizations/11/content_views?search=name%3D%22Test+Content+View%22&per_page=4294967296 - response: - body: - string: '{"total":2,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Content View\"","sort":{"by":"name","order":"asc"},"results":[{"composite":false,"component_ids":[],"default":false,"version_count":0,"latest_version":null,"latest_version_id":null,"auto_publish":false,"solve_dependencies":false,"import_only":false,"generated_for":"none","related_cv_count":0,"related_composite_cvs":[],"needs_publish":true,"filtered":true,"repository_ids":[31,32,33,34],"id":19,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":11,"organization":{"name":"Test - Organization","label":"Test_Organization","id":11},"created_at":"2023-06-05 - 22:34:51 UTC","updated_at":"2023-06-05 22:34:51 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":31,"name":"Test - Repository","label":"Test_Repository","content_type":"yum"},{"id":32,"name":"Test - Modular Repository","label":"Test_Modular_Repository","content_type":"yum"},{"id":33,"name":"Test - Docker Repository","label":"Test_Docker_Repository","content_type":"docker"},{"id":34,"name":"Test - Debian Repository","label":"Test_Debian_Repository","content_type":"deb"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]}]} - - ' - headers: - Cache-Control: - - max-age=0, private, must-revalidate - Connection: - - Keep-Alive - Content-Length: - - '1353' - Content-Security-Policy: - - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; - style-src ''unsafe-inline'' ''self''' - Content-Type: - - application/json; charset=utf-8 - Foreman_api_version: - - '2' - Foreman_current_location: - - ; ANY - Foreman_current_organization: - - 11; Test Organization - Foreman_version: - - 3.7.0-rc2 - Keep-Alive: - - timeout=15, max=98 - Strict-Transport-Security: - - max-age=631139040; includeSubdomains - X-Content-Type-Options: - - nosniff - X-Download-Options: - - noopen - X-Frame-Options: - - sameorigin - X-Permitted-Cross-Domain-Policies: - - none - X-XSS-Protection: - - 1; mode=block - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json;version=2 - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - apypie (https://github.com/Apipie/apypie) - method: GET - uri: https://foreman.example.org/katello/api/content_views/19/filters?search=name%3D%22Test+Content+View+Filter+-+modulemd%22&per_page=4294967296 - response: - body: - string: '{"total":10,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Content View Filter - modulemd\"","sort":{"by":"name","order":"asc"},"results":[{"inclusion":false,"id":63,"name":"Test - Content View Filter - modulemd","description":null,"created_at":"2023-06-05 - 22:35:00 UTC","updated_at":"2023-06-05 22:35:00 UTC","content_view":{"composite":false,"component_ids":[],"default":false,"version_count":0,"latest_version":null,"latest_version_id":null,"auto_publish":false,"solve_dependencies":false,"import_only":false,"generated_for":"none","related_cv_count":0,"related_composite_cvs":[],"needs_publish":true,"filtered":true,"repository_ids":[31,32,33,34],"id":19,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":11,"organization":{"name":"Test - Organization","label":"Test_Organization","id":11},"created_at":"2023-06-05 - 22:34:51 UTC","updated_at":"2023-06-05 22:34:51 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":31,"name":"Test - Repository","label":"Test_Repository","content_type":"yum"},{"id":32,"name":"Test - Modular Repository","label":"Test_Modular_Repository","content_type":"yum"},{"id":33,"name":"Test - Docker Repository","label":"Test_Docker_Repository","content_type":"docker"},{"id":34,"name":"Test - Debian Repository","label":"Test_Debian_Repository","content_type":"deb"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]},"repositories":[],"type":"modulemd","rules":[{"content_view_filter_id":63,"module_stream_id":11,"id":5,"created_at":"2023-06-05 - 22:35:14 UTC","updated_at":"2023-06-05 22:35:14 UTC"}]}]} - - ' - headers: - Cache-Control: - - max-age=0, private, must-revalidate - Connection: - - Keep-Alive - Content-Length: - - '1740' - Content-Security-Policy: - - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; - style-src ''unsafe-inline'' ''self''' - Content-Type: - - application/json; charset=utf-8 - Foreman_api_version: - - '2' - Foreman_current_location: - - ; ANY - Foreman_current_organization: - - ; ANY - Foreman_version: - - 3.7.0-rc2 - Keep-Alive: - - timeout=15, max=97 - Strict-Transport-Security: - - max-age=631139040; includeSubdomains - X-Content-Type-Options: - - nosniff - X-Download-Options: - - noopen - X-Frame-Options: - - sameorigin - X-Permitted-Cross-Domain-Policies: - - none - X-XSS-Protection: - - 1; mode=block - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json;version=2 - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - apypie (https://github.com/Apipie/apypie) - method: GET - uri: https://foreman.example.org/katello/api/module_streams?search=name%3D%22nextcloud%22%2Cstream%3D%2223%22%2Cversion%3D%22820220801190052%22%2Ccontext%3D%22nx4%22&per_page=4294967296 - response: - body: - string: '{"total":24,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"nextcloud\",stream=\"23\",version=\"820220801190052\",context=\"nx4\"","sort":{"by":"name","order":"asc"},"results":[{"id":11,"name":"nextcloud","pulp_id":"/pulp/api/v3/content/rpm/modulemds/54d698dc-212f-403e-ac6d-76bb3641559c/","version":"820220801190052","context":"nx4","stream":"23","arch":"x86_64","description":"Nextcloud - gives you universal access to your files through a web interface or WebDAV. - It also provides a platform to easily view & sync your contacts, calendars - and bookmarks across all your devices and enables basic editing right on the - web. Nextcloud is extendable via a simple but powerful API for applications - and plugins.","summary":null,"module_spec":"nextcloud:23:820220801190052:nx4:x86_64","uuid":"/pulp/api/v3/content/rpm/modulemds/54d698dc-212f-403e-ac6d-76bb3641559c/"}]} - - ' - headers: - Cache-Control: - - max-age=0, private, must-revalidate - Connection: - - Keep-Alive - Content-Length: - - '906' - Content-Security-Policy: - - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; - style-src ''unsafe-inline'' ''self''' - Content-Type: - - application/json; charset=utf-8 - Foreman_api_version: - - '2' - Foreman_current_location: - - ; ANY - Foreman_current_organization: - - ; ANY - Foreman_version: - - 3.7.0-rc2 - Keep-Alive: - - timeout=15, max=96 - Strict-Transport-Security: - - max-age=631139040; includeSubdomains - X-Content-Type-Options: - - nosniff - X-Download-Options: - - noopen - X-Frame-Options: - - sameorigin - X-Permitted-Cross-Domain-Policies: - - none - X-XSS-Protection: - - 1; mode=block - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json;version=2 - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - apypie (https://github.com/Apipie/apypie) - method: GET - uri: https://foreman.example.org/katello/api/content_view_filters/63/rules?search=id%3D%225%22&per_page=4294967296 - response: - body: - string: '{"total":1,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"id=\"5\"","sort":{"by":"id","order":"asc"},"results":[{"content_view_filter_id":63,"module_stream_id":11,"id":5,"created_at":"2023-06-05 - 22:35:14 UTC","updated_at":"2023-06-05 22:35:14 UTC"}]} - - ' - headers: - Cache-Control: - - max-age=0, private, must-revalidate - Connection: - - Keep-Alive - Content-Length: - - '288' - Content-Security-Policy: - - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; - style-src ''unsafe-inline'' ''self''' - Content-Type: - - application/json; charset=utf-8 - Foreman_api_version: - - '2' - Foreman_current_location: - - ; ANY - Foreman_current_organization: - - ; ANY - Foreman_version: - - 3.7.0-rc2 - Keep-Alive: - - timeout=15, max=95 - Strict-Transport-Security: - - max-age=631139040; includeSubdomains - X-Content-Type-Options: - - nosniff - X-Download-Options: - - noopen - X-Frame-Options: - - sameorigin - X-Permitted-Cross-Domain-Policies: - - none - X-XSS-Protection: - - 1; mode=block - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json;version=2 - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '0' - User-Agent: - - apypie (https://github.com/Apipie/apypie) - method: DELETE - uri: https://foreman.example.org/katello/api/content_view_filters/63/rules/5 - response: - body: - string: ' {"content_view_filter_id":63,"module_stream_id":11,"id":5,"created_at":"2023-06-05 - 22:35:14 UTC","updated_at":"2023-06-05 22:35:14 UTC"} - - ' - headers: - Cache-Control: - - max-age=0, private, must-revalidate - Connection: - - Keep-Alive - Content-Length: - - '139' - Content-Security-Policy: - - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; - style-src ''unsafe-inline'' ''self''' - Content-Type: - - application/json; charset=utf-8 - Foreman_api_version: - - '2' - Foreman_current_location: - - ; ANY - Foreman_current_organization: - - ; ANY - Foreman_version: - - 3.7.0-rc2 - Keep-Alive: - - timeout=15, max=94 - Strict-Transport-Security: - - max-age=631139040; includeSubdomains - X-Content-Type-Options: - - nosniff - X-Download-Options: - - noopen - X-Frame-Options: - - sameorigin - X-Permitted-Cross-Domain-Policies: - - none - X-XSS-Protection: - - 1; mode=block - status: - code: 200 - message: OK -version: 1 diff --git a/tests/test_playbooks/fixtures/content_view_filter_rule-31.yml b/tests/test_playbooks/fixtures/content_view_filter_rule-31.yml deleted file mode 100644 index b739d0dc..00000000 --- a/tests/test_playbooks/fixtures/content_view_filter_rule-31.yml +++ /dev/null @@ -1,362 +0,0 @@ -interactions: -- request: - body: null - headers: - Accept: - - application/json;version=2 - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - apypie (https://github.com/Apipie/apypie) - method: GET - uri: https://foreman.example.org/api/status - response: - body: - string: '{"result":"ok","status":200,"version":"3.7.0-rc2","api_version":2}' - headers: - Cache-Control: - - max-age=0, private, must-revalidate - Connection: - - Keep-Alive - Content-Length: - - '66' - Content-Security-Policy: - - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; - style-src ''unsafe-inline'' ''self''' - Content-Type: - - application/json; charset=utf-8 - Foreman_api_version: - - '2' - Foreman_current_location: - - ; ANY - Foreman_current_organization: - - ; ANY - Foreman_version: - - 3.7.0-rc2 - Keep-Alive: - - timeout=15, max=100 - Strict-Transport-Security: - - max-age=631139040; includeSubdomains - X-Content-Type-Options: - - nosniff - X-Download-Options: - - noopen - X-Frame-Options: - - sameorigin - X-Permitted-Cross-Domain-Policies: - - none - X-XSS-Protection: - - 1; mode=block - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json;version=2 - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - apypie (https://github.com/Apipie/apypie) - method: GET - uri: https://foreman.example.org/katello/api/organizations?search=name%3D%22Test+Organization%22&per_page=4294967296 - response: - body: - string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": - 4294967296,\n \"search\": \"name=\\\"Test Organization\\\"\",\n \"sort\": - {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\":\"Test_Organization\",\"created_at\":\"2023-06-05 - 22:32:12 UTC\",\"updated_at\":\"2023-06-05 22:32:15 UTC\",\"id\":11,\"name\":\"Test - Organization\",\"title\":\"Test Organization\",\"description\":\"A test organization\"}]\n}\n" - headers: - Cache-Control: - - max-age=0, private, must-revalidate - Connection: - - Keep-Alive - Content-Length: - - '389' - Content-Security-Policy: - - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; - style-src ''unsafe-inline'' ''self''' - Content-Type: - - application/json; charset=utf-8 - Foreman_api_version: - - '2' - Foreman_current_location: - - ; ANY - Foreman_current_organization: - - ; ANY - Foreman_version: - - 3.7.0-rc2 - Keep-Alive: - - timeout=15, max=99 - Strict-Transport-Security: - - max-age=631139040; includeSubdomains - X-Content-Type-Options: - - nosniff - X-Download-Options: - - noopen - X-Frame-Options: - - sameorigin - X-Permitted-Cross-Domain-Policies: - - none - X-XSS-Protection: - - 1; mode=block - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json;version=2 - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - apypie (https://github.com/Apipie/apypie) - method: GET - uri: https://foreman.example.org/katello/api/organizations/11/content_views?search=name%3D%22Test+Content+View%22&per_page=4294967296 - response: - body: - string: '{"total":2,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Content View\"","sort":{"by":"name","order":"asc"},"results":[{"composite":false,"component_ids":[],"default":false,"version_count":0,"latest_version":null,"latest_version_id":null,"auto_publish":false,"solve_dependencies":false,"import_only":false,"generated_for":"none","related_cv_count":0,"related_composite_cvs":[],"needs_publish":true,"filtered":true,"repository_ids":[31,32,33,34],"id":19,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":11,"organization":{"name":"Test - Organization","label":"Test_Organization","id":11},"created_at":"2023-06-05 - 22:34:51 UTC","updated_at":"2023-06-05 22:34:51 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":31,"name":"Test - Repository","label":"Test_Repository","content_type":"yum"},{"id":32,"name":"Test - Modular Repository","label":"Test_Modular_Repository","content_type":"yum"},{"id":33,"name":"Test - Docker Repository","label":"Test_Docker_Repository","content_type":"docker"},{"id":34,"name":"Test - Debian Repository","label":"Test_Debian_Repository","content_type":"deb"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]}]} - - ' - headers: - Cache-Control: - - max-age=0, private, must-revalidate - Connection: - - Keep-Alive - Content-Length: - - '1353' - Content-Security-Policy: - - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; - style-src ''unsafe-inline'' ''self''' - Content-Type: - - application/json; charset=utf-8 - Foreman_api_version: - - '2' - Foreman_current_location: - - ; ANY - Foreman_current_organization: - - 11; Test Organization - Foreman_version: - - 3.7.0-rc2 - Keep-Alive: - - timeout=15, max=98 - Strict-Transport-Security: - - max-age=631139040; includeSubdomains - X-Content-Type-Options: - - nosniff - X-Download-Options: - - noopen - X-Frame-Options: - - sameorigin - X-Permitted-Cross-Domain-Policies: - - none - X-XSS-Protection: - - 1; mode=block - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json;version=2 - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - apypie (https://github.com/Apipie/apypie) - method: GET - uri: https://foreman.example.org/katello/api/content_views/19/filters?search=name%3D%22Test+Content+View+Filter+-+deb%22&per_page=4294967296 - response: - body: - string: '{"total":10,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Content View Filter - deb\"","sort":{"by":"name","order":"asc"},"results":[{"inclusion":false,"id":64,"name":"Test - Content View Filter - deb","description":null,"created_at":"2023-06-05 22:35:01 - UTC","updated_at":"2023-06-05 22:35:01 UTC","content_view":{"composite":false,"component_ids":[],"default":false,"version_count":0,"latest_version":null,"latest_version_id":null,"auto_publish":false,"solve_dependencies":false,"import_only":false,"generated_for":"none","related_cv_count":0,"related_composite_cvs":[],"needs_publish":true,"filtered":true,"repository_ids":[31,32,33,34],"id":19,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":11,"organization":{"name":"Test - Organization","label":"Test_Organization","id":11},"created_at":"2023-06-05 - 22:34:51 UTC","updated_at":"2023-06-05 22:34:51 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":31,"name":"Test - Repository","label":"Test_Repository","content_type":"yum"},{"id":32,"name":"Test - Modular Repository","label":"Test_Modular_Repository","content_type":"yum"},{"id":33,"name":"Test - Docker Repository","label":"Test_Docker_Repository","content_type":"docker"},{"id":34,"name":"Test - Debian Repository","label":"Test_Debian_Repository","content_type":"deb"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]},"repositories":[],"type":"deb","rules":[{"content_view_filter_id":64,"id":3,"name":"bear","created_at":"2023-06-05 - 22:35:20 UTC","updated_at":"2023-06-05 22:35:20 UTC"},{"content_view_filter_id":64,"id":4,"name":"camel","created_at":"2023-06-05 - 22:35:21 UTC","updated_at":"2023-06-05 22:35:21 UTC"}]}]} - - ' - headers: - Cache-Control: - - max-age=0, private, must-revalidate - Connection: - - Keep-Alive - Content-Length: - - '1847' - Content-Security-Policy: - - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; - style-src ''unsafe-inline'' ''self''' - Content-Type: - - application/json; charset=utf-8 - Foreman_api_version: - - '2' - Foreman_current_location: - - ; ANY - Foreman_current_organization: - - ; ANY - Foreman_version: - - 3.7.0-rc2 - Keep-Alive: - - timeout=15, max=97 - Strict-Transport-Security: - - max-age=631139040; includeSubdomains - X-Content-Type-Options: - - nosniff - X-Download-Options: - - noopen - X-Frame-Options: - - sameorigin - X-Permitted-Cross-Domain-Policies: - - none - X-XSS-Protection: - - 1; mode=block - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json;version=2 - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - apypie (https://github.com/Apipie/apypie) - method: GET - uri: https://foreman.example.org/katello/api/content_view_filters/64/rules?search=name%3D%22bear%22&per_page=4294967296 - response: - body: - string: '{"total":2,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"bear\"","sort":{"by":"id","order":"asc"},"results":[{"content_view_filter_id":64,"id":3,"name":"bear","created_at":"2023-06-05 - 22:35:20 UTC","updated_at":"2023-06-05 22:35:20 UTC"}]} - - ' - headers: - Cache-Control: - - max-age=0, private, must-revalidate - Connection: - - Keep-Alive - Content-Length: - - '285' - Content-Security-Policy: - - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; - style-src ''unsafe-inline'' ''self''' - Content-Type: - - application/json; charset=utf-8 - Foreman_api_version: - - '2' - Foreman_current_location: - - ; ANY - Foreman_current_organization: - - ; ANY - Foreman_version: - - 3.7.0-rc2 - Keep-Alive: - - timeout=15, max=96 - Strict-Transport-Security: - - max-age=631139040; includeSubdomains - X-Content-Type-Options: - - nosniff - X-Download-Options: - - noopen - X-Frame-Options: - - sameorigin - X-Permitted-Cross-Domain-Policies: - - none - X-XSS-Protection: - - 1; mode=block - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json;version=2 - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '0' - User-Agent: - - apypie (https://github.com/Apipie/apypie) - method: DELETE - uri: https://foreman.example.org/katello/api/content_view_filters/64/rules/3 - response: - body: - string: ' {"content_view_filter_id":64,"id":3,"name":"bear","created_at":"2023-06-05 - 22:35:20 UTC","updated_at":"2023-06-05 22:35:20 UTC"} - - ' - headers: - Cache-Control: - - max-age=0, private, must-revalidate - Connection: - - Keep-Alive - Content-Length: - - '131' - Content-Security-Policy: - - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; - style-src ''unsafe-inline'' ''self''' - Content-Type: - - application/json; charset=utf-8 - Foreman_api_version: - - '2' - Foreman_current_location: - - ; ANY - Foreman_current_organization: - - ; ANY - Foreman_version: - - 3.7.0-rc2 - Keep-Alive: - - timeout=15, max=95 - Strict-Transport-Security: - - max-age=631139040; includeSubdomains - X-Content-Type-Options: - - nosniff - X-Download-Options: - - noopen - X-Frame-Options: - - sameorigin - X-Permitted-Cross-Domain-Policies: - - none - X-XSS-Protection: - - 1; mode=block - status: - code: 200 - message: OK -version: 1 diff --git a/tests/test_playbooks/fixtures/content_view_filter_rule-32.yml b/tests/test_playbooks/fixtures/content_view_filter_rule-32.yml deleted file mode 100644 index b0ffe8df..00000000 --- a/tests/test_playbooks/fixtures/content_view_filter_rule-32.yml +++ /dev/null @@ -1,361 +0,0 @@ -interactions: -- request: - body: null - headers: - Accept: - - application/json;version=2 - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - apypie (https://github.com/Apipie/apypie) - method: GET - uri: https://foreman.example.org/api/status - response: - body: - string: '{"result":"ok","status":200,"version":"3.7.0-rc2","api_version":2}' - headers: - Cache-Control: - - max-age=0, private, must-revalidate - Connection: - - Keep-Alive - Content-Length: - - '66' - Content-Security-Policy: - - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; - style-src ''unsafe-inline'' ''self''' - Content-Type: - - application/json; charset=utf-8 - Foreman_api_version: - - '2' - Foreman_current_location: - - ; ANY - Foreman_current_organization: - - ; ANY - Foreman_version: - - 3.7.0-rc2 - Keep-Alive: - - timeout=15, max=100 - Strict-Transport-Security: - - max-age=631139040; includeSubdomains - X-Content-Type-Options: - - nosniff - X-Download-Options: - - noopen - X-Frame-Options: - - sameorigin - X-Permitted-Cross-Domain-Policies: - - none - X-XSS-Protection: - - 1; mode=block - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json;version=2 - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - apypie (https://github.com/Apipie/apypie) - method: GET - uri: https://foreman.example.org/katello/api/organizations?search=name%3D%22Test+Organization%22&per_page=4294967296 - response: - body: - string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": - 4294967296,\n \"search\": \"name=\\\"Test Organization\\\"\",\n \"sort\": - {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\":\"Test_Organization\",\"created_at\":\"2023-06-05 - 22:32:12 UTC\",\"updated_at\":\"2023-06-05 22:32:15 UTC\",\"id\":11,\"name\":\"Test - Organization\",\"title\":\"Test Organization\",\"description\":\"A test organization\"}]\n}\n" - headers: - Cache-Control: - - max-age=0, private, must-revalidate - Connection: - - Keep-Alive - Content-Length: - - '389' - Content-Security-Policy: - - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; - style-src ''unsafe-inline'' ''self''' - Content-Type: - - application/json; charset=utf-8 - Foreman_api_version: - - '2' - Foreman_current_location: - - ; ANY - Foreman_current_organization: - - ; ANY - Foreman_version: - - 3.7.0-rc2 - Keep-Alive: - - timeout=15, max=99 - Strict-Transport-Security: - - max-age=631139040; includeSubdomains - X-Content-Type-Options: - - nosniff - X-Download-Options: - - noopen - X-Frame-Options: - - sameorigin - X-Permitted-Cross-Domain-Policies: - - none - X-XSS-Protection: - - 1; mode=block - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json;version=2 - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - apypie (https://github.com/Apipie/apypie) - method: GET - uri: https://foreman.example.org/katello/api/organizations/11/content_views?search=name%3D%22Test+Content+View%22&per_page=4294967296 - response: - body: - string: '{"total":2,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Content View\"","sort":{"by":"name","order":"asc"},"results":[{"composite":false,"component_ids":[],"default":false,"version_count":0,"latest_version":null,"latest_version_id":null,"auto_publish":false,"solve_dependencies":false,"import_only":false,"generated_for":"none","related_cv_count":0,"related_composite_cvs":[],"needs_publish":true,"filtered":true,"repository_ids":[31,32,33,34],"id":19,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":11,"organization":{"name":"Test - Organization","label":"Test_Organization","id":11},"created_at":"2023-06-05 - 22:34:51 UTC","updated_at":"2023-06-05 22:34:51 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":31,"name":"Test - Repository","label":"Test_Repository","content_type":"yum"},{"id":32,"name":"Test - Modular Repository","label":"Test_Modular_Repository","content_type":"yum"},{"id":33,"name":"Test - Docker Repository","label":"Test_Docker_Repository","content_type":"docker"},{"id":34,"name":"Test - Debian Repository","label":"Test_Debian_Repository","content_type":"deb"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]}]} - - ' - headers: - Cache-Control: - - max-age=0, private, must-revalidate - Connection: - - Keep-Alive - Content-Length: - - '1353' - Content-Security-Policy: - - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; - style-src ''unsafe-inline'' ''self''' - Content-Type: - - application/json; charset=utf-8 - Foreman_api_version: - - '2' - Foreman_current_location: - - ; ANY - Foreman_current_organization: - - 11; Test Organization - Foreman_version: - - 3.7.0-rc2 - Keep-Alive: - - timeout=15, max=98 - Strict-Transport-Security: - - max-age=631139040; includeSubdomains - X-Content-Type-Options: - - nosniff - X-Download-Options: - - noopen - X-Frame-Options: - - sameorigin - X-Permitted-Cross-Domain-Policies: - - none - X-XSS-Protection: - - 1; mode=block - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json;version=2 - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - apypie (https://github.com/Apipie/apypie) - method: GET - uri: https://foreman.example.org/katello/api/content_views/19/filters?search=name%3D%22Test+Content+View+Filter+-+deb%22&per_page=4294967296 - response: - body: - string: '{"total":10,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Content View Filter - deb\"","sort":{"by":"name","order":"asc"},"results":[{"inclusion":false,"id":64,"name":"Test - Content View Filter - deb","description":null,"created_at":"2023-06-05 22:35:01 - UTC","updated_at":"2023-06-05 22:35:01 UTC","content_view":{"composite":false,"component_ids":[],"default":false,"version_count":0,"latest_version":null,"latest_version_id":null,"auto_publish":false,"solve_dependencies":false,"import_only":false,"generated_for":"none","related_cv_count":0,"related_composite_cvs":[],"needs_publish":true,"filtered":true,"repository_ids":[31,32,33,34],"id":19,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":11,"organization":{"name":"Test - Organization","label":"Test_Organization","id":11},"created_at":"2023-06-05 - 22:34:51 UTC","updated_at":"2023-06-05 22:34:51 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":31,"name":"Test - Repository","label":"Test_Repository","content_type":"yum"},{"id":32,"name":"Test - Modular Repository","label":"Test_Modular_Repository","content_type":"yum"},{"id":33,"name":"Test - Docker Repository","label":"Test_Docker_Repository","content_type":"docker"},{"id":34,"name":"Test - Debian Repository","label":"Test_Debian_Repository","content_type":"deb"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]},"repositories":[],"type":"deb","rules":[{"content_view_filter_id":64,"id":4,"name":"camel","created_at":"2023-06-05 - 22:35:21 UTC","updated_at":"2023-06-05 22:35:21 UTC"}]}]} - - ' - headers: - Cache-Control: - - max-age=0, private, must-revalidate - Connection: - - Keep-Alive - Content-Length: - - '1718' - Content-Security-Policy: - - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; - style-src ''unsafe-inline'' ''self''' - Content-Type: - - application/json; charset=utf-8 - Foreman_api_version: - - '2' - Foreman_current_location: - - ; ANY - Foreman_current_organization: - - ; ANY - Foreman_version: - - 3.7.0-rc2 - Keep-Alive: - - timeout=15, max=97 - Strict-Transport-Security: - - max-age=631139040; includeSubdomains - X-Content-Type-Options: - - nosniff - X-Download-Options: - - noopen - X-Frame-Options: - - sameorigin - X-Permitted-Cross-Domain-Policies: - - none - X-XSS-Protection: - - 1; mode=block - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json;version=2 - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - apypie (https://github.com/Apipie/apypie) - method: GET - uri: https://foreman.example.org/katello/api/content_view_filters/64/rules?search=name%3D%22camel%22&per_page=4294967296 - response: - body: - string: '{"total":1,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"camel\"","sort":{"by":"id","order":"asc"},"results":[{"content_view_filter_id":64,"id":4,"name":"camel","created_at":"2023-06-05 - 22:35:21 UTC","updated_at":"2023-06-05 22:35:21 UTC"}]} - - ' - headers: - Cache-Control: - - max-age=0, private, must-revalidate - Connection: - - Keep-Alive - Content-Length: - - '287' - Content-Security-Policy: - - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; - style-src ''unsafe-inline'' ''self''' - Content-Type: - - application/json; charset=utf-8 - Foreman_api_version: - - '2' - Foreman_current_location: - - ; ANY - Foreman_current_organization: - - ; ANY - Foreman_version: - - 3.7.0-rc2 - Keep-Alive: - - timeout=15, max=96 - Strict-Transport-Security: - - max-age=631139040; includeSubdomains - X-Content-Type-Options: - - nosniff - X-Download-Options: - - noopen - X-Frame-Options: - - sameorigin - X-Permitted-Cross-Domain-Policies: - - none - X-XSS-Protection: - - 1; mode=block - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json;version=2 - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '0' - User-Agent: - - apypie (https://github.com/Apipie/apypie) - method: DELETE - uri: https://foreman.example.org/katello/api/content_view_filters/64/rules/4 - response: - body: - string: ' {"content_view_filter_id":64,"id":4,"name":"camel","created_at":"2023-06-05 - 22:35:21 UTC","updated_at":"2023-06-05 22:35:21 UTC"} - - ' - headers: - Cache-Control: - - max-age=0, private, must-revalidate - Connection: - - Keep-Alive - Content-Length: - - '132' - Content-Security-Policy: - - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; - style-src ''unsafe-inline'' ''self''' - Content-Type: - - application/json; charset=utf-8 - Foreman_api_version: - - '2' - Foreman_current_location: - - ; ANY - Foreman_current_organization: - - ; ANY - Foreman_version: - - 3.7.0-rc2 - Keep-Alive: - - timeout=15, max=95 - Strict-Transport-Security: - - max-age=631139040; includeSubdomains - X-Content-Type-Options: - - nosniff - X-Download-Options: - - noopen - X-Frame-Options: - - sameorigin - X-Permitted-Cross-Domain-Policies: - - none - X-XSS-Protection: - - 1; mode=block - status: - code: 200 - message: OK -version: 1 diff --git a/tests/test_playbooks/fixtures/content_view_filter_rule-4.yml b/tests/test_playbooks/fixtures/content_view_filter_rule-4.yml index b2c6c56a..75b5c361 100644 --- a/tests/test_playbooks/fixtures/content_view_filter_rule-4.yml +++ b/tests/test_playbooks/fixtures/content_view_filter_rule-4.yml @@ -14,14 +14,14 @@ interactions: uri: https://foreman.example.org/api/status response: body: - string: '{"result":"ok","status":200,"version":"3.7.0-rc2","api_version":2}' + string: '{"result":"ok","status":200,"version":"3.12.0-develop","api_version":2}' headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive Content-Length: - - '66' + - '71' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -35,7 +35,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=100 Strict-Transport-Security: @@ -70,8 +70,8 @@ interactions: body: string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": 4294967296,\n \"search\": \"name=\\\"Test Organization\\\"\",\n \"sort\": - {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\":\"Test_Organization\",\"created_at\":\"2023-06-05 - 22:32:12 UTC\",\"updated_at\":\"2023-06-05 22:32:15 UTC\",\"id\":11,\"name\":\"Test + {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\":\"Test_Organization\",\"created_at\":\"2024-07-24 + 14:53:36 UTC\",\"updated_at\":\"2024-07-24 14:53:38 UTC\",\"id\":7,\"name\":\"Test Organization\",\"title\":\"Test Organization\",\"description\":\"A test organization\"}]\n}\n" headers: Cache-Control: @@ -79,7 +79,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '389' + - '388' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -93,7 +93,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=99 Strict-Transport-Security: @@ -123,18 +123,17 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/organizations/11/content_views?search=name%3D%22Test+Content+View%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/organizations/7/content_views?search=name%3D%22Test+Content+View%22&per_page=4294967296 response: body: string: '{"total":2,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Content View\"","sort":{"by":"name","order":"asc"},"results":[{"composite":false,"component_ids":[],"default":false,"version_count":0,"latest_version":null,"latest_version_id":null,"auto_publish":false,"solve_dependencies":false,"import_only":false,"generated_for":"none","related_cv_count":0,"related_composite_cvs":[],"needs_publish":true,"filtered":true,"repository_ids":[31,32,33,34],"id":19,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":11,"organization":{"name":"Test - Organization","label":"Test_Organization","id":11},"created_at":"2023-06-05 - 22:34:51 UTC","updated_at":"2023-06-05 22:34:51 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":31,"name":"Test - Repository","label":"Test_Repository","content_type":"yum"},{"id":32,"name":"Test - Modular Repository","label":"Test_Modular_Repository","content_type":"yum"},{"id":33,"name":"Test - Docker Repository","label":"Test_Docker_Repository","content_type":"docker"},{"id":34,"name":"Test - Debian Repository","label":"Test_Debian_Repository","content_type":"deb"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]}]} + Content View\"","sort":{"by":"name","order":"asc"},"results":[{"composite":false,"component_ids":[],"duplicate_repositories_to_publish":[],"default":false,"version_count":0,"latest_version":null,"latest_version_id":null,"auto_publish":false,"solve_dependencies":false,"import_only":false,"generated_for":"none","related_cv_count":0,"related_composite_cvs":[],"filtered":true,"repository_ids":[13,14,15],"id":11,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":7,"organization":{"name":"Test + Organization","label":"Test_Organization","id":7},"created_at":"2024-07-24 + 14:54:40 UTC","updated_at":"2024-07-24 14:54:40 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":13,"name":"Test + Repository","label":"Test_Repository","content_type":"yum"},{"id":14,"name":"Test + Modular Repository","label":"Test_Modular_Repository","content_type":"yum"},{"id":15,"name":"Test + Docker Repository","label":"Test_Docker_Repository","content_type":"docker"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]}]} ' headers: @@ -143,7 +142,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '1353' + - '1270' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -155,9 +154,9 @@ interactions: Foreman_current_location: - ; ANY Foreman_current_organization: - - 11; Test Organization + - 7; Test Organization Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=98 Strict-Transport-Security: @@ -187,21 +186,20 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/content_views/19/filters?search=name%3D%22Test+Content+View+Filter+-+package_group%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/content_views/11/filters?search=name%3D%22Test+Content+View+Filter+-+package_group%22&per_page=4294967296 response: body: string: '{"total":10,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Content View Filter - package_group\"","sort":{"by":"name","order":"asc"},"results":[{"inclusion":false,"id":59,"name":"Test - Content View Filter - package_group","description":null,"created_at":"2023-06-05 - 22:34:56 UTC","updated_at":"2023-06-05 22:34:56 UTC","content_view":{"composite":false,"component_ids":[],"default":false,"version_count":0,"latest_version":null,"latest_version_id":null,"auto_publish":false,"solve_dependencies":false,"import_only":false,"generated_for":"none","related_cv_count":0,"related_composite_cvs":[],"needs_publish":true,"filtered":true,"repository_ids":[31,32,33,34],"id":19,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":11,"organization":{"name":"Test - Organization","label":"Test_Organization","id":11},"created_at":"2023-06-05 - 22:34:51 UTC","updated_at":"2023-06-05 22:34:51 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":31,"name":"Test - Repository","label":"Test_Repository","content_type":"yum"},{"id":32,"name":"Test - Modular Repository","label":"Test_Modular_Repository","content_type":"yum"},{"id":33,"name":"Test - Docker Repository","label":"Test_Docker_Repository","content_type":"docker"},{"id":34,"name":"Test - Debian Repository","label":"Test_Debian_Repository","content_type":"deb"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]},"repositories":[],"type":"package_group","rules":[{"content_view_filter_id":59,"uuid":"/pulp/api/v3/content/rpm/packagegroups/86fae512-5a7b-4f10-956c-df69a9218856/","id":6,"name":"birds","created_at":"2023-06-05 - 22:35:05 UTC","updated_at":"2023-06-05 22:35:05 UTC"}]}]} + Content View Filter - package_group\"","sort":{"by":"name","order":"asc"},"results":[{"inclusion":false,"id":55,"name":"Test + Content View Filter - package_group","description":null,"created_at":"2024-07-24 + 14:54:42 UTC","updated_at":"2024-07-24 14:54:42 UTC","content_view":{"composite":false,"component_ids":[],"duplicate_repositories_to_publish":[],"default":false,"version_count":0,"latest_version":null,"latest_version_id":null,"auto_publish":false,"solve_dependencies":false,"import_only":false,"generated_for":"none","related_cv_count":0,"related_composite_cvs":[],"filtered":true,"repository_ids":[13,14,15],"id":11,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":7,"organization":{"name":"Test + Organization","label":"Test_Organization","id":7},"created_at":"2024-07-24 + 14:54:40 UTC","updated_at":"2024-07-24 14:54:40 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":13,"name":"Test + Repository","label":"Test_Repository","content_type":"yum"},{"id":14,"name":"Test + Modular Repository","label":"Test_Modular_Repository","content_type":"yum"},{"id":15,"name":"Test + Docker Repository","label":"Test_Docker_Repository","content_type":"docker"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]},"repositories":[],"type":"package_group","rules":[{"content_view_filter_id":55,"uuid":"/pulp/api/v3/content/rpm/packagegroups/0190e45e-fd99-76f9-872f-f31298c228c1/","id":7,"name":"birds","created_at":"2024-07-24 + 14:54:47 UTC","updated_at":"2024-07-24 14:54:47 UTC"}]}]} ' headers: @@ -210,7 +208,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '1834' + - '1751' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -224,7 +222,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=97 Strict-Transport-Security: @@ -254,7 +252,7 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/content_view_filters/59/rules?search=name%3D%22mammals%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/content_view_filters/55/rules?search=name%3D%22mammals%22&per_page=4294967296 response: body: string: '{"total":1,"subtotal":0,"selectable":0,"page":1,"per_page":"4294967296","error":null,"search":"name=\"mammals\"","sort":{"by":"id","order":"asc"},"results":[]} @@ -280,7 +278,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=96 Strict-Transport-Security: @@ -313,8 +311,8 @@ interactions: uri: https://foreman.example.org/katello/api/package_groups?search=name%3D%22mammals%22&per_page=4294967296 response: body: - string: '{"total":2,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"mammals\"","sort":{"by":"name","order":"asc"},"results":[{"id":1,"name":"mammals","pulp_id":"/pulp/api/v3/content/rpm/packagegroups/07751227-7da7-4dc6-8da0-df1ec8fc5e05/","uuid":"/pulp/api/v3/content/rpm/packagegroups/07751227-7da7-4dc6-8da0-df1ec8fc5e05/","description":"","repository":{"id":31,"name":"Test - Repository","product":{"id":10,"name":"Test Product"}}}]} + string: '{"total":2,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"mammals\"","sort":{"by":"name","order":"asc"},"results":[{"id":1,"name":"mammals","pulp_id":"/pulp/api/v3/content/rpm/packagegroups/0190e45e-fd9a-7fce-b8b1-2ddf3e619951/","uuid":"/pulp/api/v3/content/rpm/packagegroups/0190e45e-fd9a-7fce-b8b1-2ddf3e619951/","description":"","repository":{"id":13,"name":"Test + Repository","product":{"id":5,"name":"Test Product"}}}]} ' headers: @@ -323,7 +321,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '469' + - '468' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -337,7 +335,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=95 Strict-Transport-Security: @@ -370,8 +368,8 @@ interactions: uri: https://foreman.example.org/katello/api/package_groups/1 response: body: - string: ' {"id":1,"name":"mammals","pulp_id":"/pulp/api/v3/content/rpm/packagegroups/07751227-7da7-4dc6-8da0-df1ec8fc5e05/","uuid":"/pulp/api/v3/content/rpm/packagegroups/07751227-7da7-4dc6-8da0-df1ec8fc5e05/","description":"","repository":{"id":31,"name":"Test - Repository","product":{"id":10,"name":"Test Product"}},"default_package_names":[],"mandatory_package_names":["bear","camel","cat","cheetah","chimpanzee","cow","dog","dolphin","elephant","fox","giraffe","gorilla","horse","kangaroo","lion","mouse","squirrel","tiger","walrus","whale","wolf","zebra"],"conditional_package_names":[],"optional_package_names":[]} + string: ' {"id":1,"name":"mammals","pulp_id":"/pulp/api/v3/content/rpm/packagegroups/0190e45e-fd9a-7fce-b8b1-2ddf3e619951/","uuid":"/pulp/api/v3/content/rpm/packagegroups/0190e45e-fd9a-7fce-b8b1-2ddf3e619951/","description":"","repository":{"id":13,"name":"Test + Repository","product":{"id":5,"name":"Test Product"}},"default_package_names":[],"mandatory_package_names":["bear","camel","cat","cheetah","chimpanzee","cow","dog","dolphin","elephant","fox","giraffe","gorilla","horse","kangaroo","lion","mouse","squirrel","tiger","walrus","whale","wolf","zebra"],"conditional_package_names":[],"optional_package_names":[]} ' headers: @@ -380,7 +378,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '612' + - '611' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -394,7 +392,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=94 Strict-Transport-Security: @@ -413,7 +411,7 @@ interactions: code: 200 message: OK - request: - body: '{"name": "mammals", "uuid": "/pulp/api/v3/content/rpm/packagegroups/07751227-7da7-4dc6-8da0-df1ec8fc5e05/"}' + body: '{"name": "mammals", "uuid": "/pulp/api/v3/content/rpm/packagegroups/0190e45e-fd9a-7fce-b8b1-2ddf3e619951/"}' headers: Accept: - application/json;version=2 @@ -428,11 +426,11 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: POST - uri: https://foreman.example.org/katello/api/content_view_filters/59/rules + uri: https://foreman.example.org/katello/api/content_view_filters/55/rules response: body: - string: ' {"content_view_filter_id":59,"uuid":"/pulp/api/v3/content/rpm/packagegroups/07751227-7da7-4dc6-8da0-df1ec8fc5e05/","id":7,"name":"mammals","created_at":"2023-06-05 - 22:35:06 UTC","updated_at":"2023-06-05 22:35:06 UTC"} + string: ' {"content_view_filter_id":55,"uuid":"/pulp/api/v3/content/rpm/packagegroups/0190e45e-fd9a-7fce-b8b1-2ddf3e619951/","id":8,"name":"mammals","created_at":"2024-07-24 + 14:54:47 UTC","updated_at":"2024-07-24 14:54:47 UTC"} ' headers: @@ -455,7 +453,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=93 Strict-Transport-Security: diff --git a/tests/test_playbooks/fixtures/content_view_filter_rule-5.yml b/tests/test_playbooks/fixtures/content_view_filter_rule-5.yml index 46a61bad..5bb7c5da 100644 --- a/tests/test_playbooks/fixtures/content_view_filter_rule-5.yml +++ b/tests/test_playbooks/fixtures/content_view_filter_rule-5.yml @@ -14,14 +14,14 @@ interactions: uri: https://foreman.example.org/api/status response: body: - string: '{"result":"ok","status":200,"version":"3.7.0-rc2","api_version":2}' + string: '{"result":"ok","status":200,"version":"3.12.0-develop","api_version":2}' headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive Content-Length: - - '66' + - '71' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -35,7 +35,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=100 Strict-Transport-Security: @@ -70,8 +70,8 @@ interactions: body: string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": 4294967296,\n \"search\": \"name=\\\"Test Organization\\\"\",\n \"sort\": - {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\":\"Test_Organization\",\"created_at\":\"2023-06-05 - 22:32:12 UTC\",\"updated_at\":\"2023-06-05 22:32:15 UTC\",\"id\":11,\"name\":\"Test + {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\":\"Test_Organization\",\"created_at\":\"2024-07-24 + 14:53:36 UTC\",\"updated_at\":\"2024-07-24 14:53:38 UTC\",\"id\":7,\"name\":\"Test Organization\",\"title\":\"Test Organization\",\"description\":\"A test organization\"}]\n}\n" headers: Cache-Control: @@ -79,7 +79,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '389' + - '388' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -93,7 +93,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=99 Strict-Transport-Security: @@ -123,18 +123,17 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/organizations/11/content_views?search=name%3D%22Test+Content+View%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/organizations/7/content_views?search=name%3D%22Test+Content+View%22&per_page=4294967296 response: body: string: '{"total":2,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Content View\"","sort":{"by":"name","order":"asc"},"results":[{"composite":false,"component_ids":[],"default":false,"version_count":0,"latest_version":null,"latest_version_id":null,"auto_publish":false,"solve_dependencies":false,"import_only":false,"generated_for":"none","related_cv_count":0,"related_composite_cvs":[],"needs_publish":true,"filtered":true,"repository_ids":[31,32,33,34],"id":19,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":11,"organization":{"name":"Test - Organization","label":"Test_Organization","id":11},"created_at":"2023-06-05 - 22:34:51 UTC","updated_at":"2023-06-05 22:34:51 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":31,"name":"Test - Repository","label":"Test_Repository","content_type":"yum"},{"id":32,"name":"Test - Modular Repository","label":"Test_Modular_Repository","content_type":"yum"},{"id":33,"name":"Test - Docker Repository","label":"Test_Docker_Repository","content_type":"docker"},{"id":34,"name":"Test - Debian Repository","label":"Test_Debian_Repository","content_type":"deb"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]}]} + Content View\"","sort":{"by":"name","order":"asc"},"results":[{"composite":false,"component_ids":[],"duplicate_repositories_to_publish":[],"default":false,"version_count":0,"latest_version":null,"latest_version_id":null,"auto_publish":false,"solve_dependencies":false,"import_only":false,"generated_for":"none","related_cv_count":0,"related_composite_cvs":[],"filtered":true,"repository_ids":[13,14,15],"id":11,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":7,"organization":{"name":"Test + Organization","label":"Test_Organization","id":7},"created_at":"2024-07-24 + 14:54:40 UTC","updated_at":"2024-07-24 14:54:40 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":13,"name":"Test + Repository","label":"Test_Repository","content_type":"yum"},{"id":14,"name":"Test + Modular Repository","label":"Test_Modular_Repository","content_type":"yum"},{"id":15,"name":"Test + Docker Repository","label":"Test_Docker_Repository","content_type":"docker"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]}]} ' headers: @@ -143,7 +142,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '1353' + - '1270' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -155,9 +154,9 @@ interactions: Foreman_current_location: - ; ANY Foreman_current_organization: - - 11; Test Organization + - 7; Test Organization Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=98 Strict-Transport-Security: @@ -187,20 +186,19 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/content_views/19/filters?search=name%3D%22Test+Content+View+Filter+-+erratum_by_id%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/content_views/11/filters?search=name%3D%22Test+Content+View+Filter+-+erratum_by_id%22&per_page=4294967296 response: body: string: '{"total":10,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Content View Filter - erratum_by_id\"","sort":{"by":"name","order":"asc"},"results":[{"inclusion":false,"id":60,"name":"Test - Content View Filter - erratum_by_id","description":null,"created_at":"2023-06-05 - 22:34:57 UTC","updated_at":"2023-06-05 22:34:57 UTC","content_view":{"composite":false,"component_ids":[],"default":false,"version_count":0,"latest_version":null,"latest_version_id":null,"auto_publish":false,"solve_dependencies":false,"import_only":false,"generated_for":"none","related_cv_count":0,"related_composite_cvs":[],"needs_publish":true,"filtered":true,"repository_ids":[31,32,33,34],"id":19,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":11,"organization":{"name":"Test - Organization","label":"Test_Organization","id":11},"created_at":"2023-06-05 - 22:34:51 UTC","updated_at":"2023-06-05 22:34:51 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":31,"name":"Test - Repository","label":"Test_Repository","content_type":"yum"},{"id":32,"name":"Test - Modular Repository","label":"Test_Modular_Repository","content_type":"yum"},{"id":33,"name":"Test - Docker Repository","label":"Test_Docker_Repository","content_type":"docker"},{"id":34,"name":"Test - Debian Repository","label":"Test_Debian_Repository","content_type":"deb"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]},"repositories":[],"type":"erratum","rules":[]}]} + Content View Filter - erratum_by_id\"","sort":{"by":"name","order":"asc"},"results":[{"inclusion":false,"id":56,"name":"Test + Content View Filter - erratum_by_id","description":null,"created_at":"2024-07-24 + 14:54:43 UTC","updated_at":"2024-07-24 14:54:43 UTC","content_view":{"composite":false,"component_ids":[],"duplicate_repositories_to_publish":[],"default":false,"version_count":0,"latest_version":null,"latest_version_id":null,"auto_publish":false,"solve_dependencies":false,"import_only":false,"generated_for":"none","related_cv_count":0,"related_composite_cvs":[],"filtered":true,"repository_ids":[13,14,15],"id":11,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":7,"organization":{"name":"Test + Organization","label":"Test_Organization","id":7},"created_at":"2024-07-24 + 14:54:40 UTC","updated_at":"2024-07-24 14:54:40 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":13,"name":"Test + Repository","label":"Test_Repository","content_type":"yum"},{"id":14,"name":"Test + Modular Repository","label":"Test_Modular_Repository","content_type":"yum"},{"id":15,"name":"Test + Docker Repository","label":"Test_Docker_Repository","content_type":"docker"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]},"repositories":[],"type":"erratum","rules":[]}]} ' headers: @@ -209,7 +207,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '1613' + - '1530' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -223,7 +221,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=97 Strict-Transport-Security: @@ -253,7 +251,7 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/content_view_filters/60/rules?errata_id=RHEA-2012%3A0004&per_page=4294967296 + uri: https://foreman.example.org/katello/api/content_view_filters/56/rules?errata_id=RHEA-2012%3A0004&per_page=4294967296 response: body: string: '{"total":0,"subtotal":0,"selectable":0,"page":1,"per_page":"4294967296","error":null,"search":null,"sort":{"by":"id","order":"asc"},"results":[]} @@ -279,7 +277,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=96 Strict-Transport-Security: @@ -313,11 +311,11 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: POST - uri: https://foreman.example.org/katello/api/content_view_filters/60/rules + uri: https://foreman.example.org/katello/api/content_view_filters/56/rules response: body: - string: ' {"content_view_filter_id":60,"errata_id":"RHEA-2012:0004","date_type":"updated","id":10,"created_at":"2023-06-05 - 22:35:07 UTC","updated_at":"2023-06-05 22:35:07 UTC"} + string: ' {"content_view_filter_id":56,"errata_id":"RHEA-2012:0004","date_type":"updated","id":10,"created_at":"2024-07-24 + 14:54:48 UTC","updated_at":"2024-07-24 14:54:48 UTC"} ' headers: @@ -340,7 +338,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=95 Strict-Transport-Security: diff --git a/tests/test_playbooks/fixtures/content_view_filter_rule-6.yml b/tests/test_playbooks/fixtures/content_view_filter_rule-6.yml index 32340e2b..22853cdd 100644 --- a/tests/test_playbooks/fixtures/content_view_filter_rule-6.yml +++ b/tests/test_playbooks/fixtures/content_view_filter_rule-6.yml @@ -14,14 +14,14 @@ interactions: uri: https://foreman.example.org/api/status response: body: - string: '{"result":"ok","status":200,"version":"3.7.0-rc2","api_version":2}' + string: '{"result":"ok","status":200,"version":"3.12.0-develop","api_version":2}' headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive Content-Length: - - '66' + - '71' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -35,7 +35,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=100 Strict-Transport-Security: @@ -70,8 +70,8 @@ interactions: body: string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": 4294967296,\n \"search\": \"name=\\\"Test Organization\\\"\",\n \"sort\": - {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\":\"Test_Organization\",\"created_at\":\"2023-06-05 - 22:32:12 UTC\",\"updated_at\":\"2023-06-05 22:32:15 UTC\",\"id\":11,\"name\":\"Test + {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\":\"Test_Organization\",\"created_at\":\"2024-07-24 + 14:53:36 UTC\",\"updated_at\":\"2024-07-24 14:53:38 UTC\",\"id\":7,\"name\":\"Test Organization\",\"title\":\"Test Organization\",\"description\":\"A test organization\"}]\n}\n" headers: Cache-Control: @@ -79,7 +79,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '389' + - '388' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -93,7 +93,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=99 Strict-Transport-Security: @@ -123,18 +123,17 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/organizations/11/content_views?search=name%3D%22Test+Content+View%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/organizations/7/content_views?search=name%3D%22Test+Content+View%22&per_page=4294967296 response: body: string: '{"total":2,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Content View\"","sort":{"by":"name","order":"asc"},"results":[{"composite":false,"component_ids":[],"default":false,"version_count":0,"latest_version":null,"latest_version_id":null,"auto_publish":false,"solve_dependencies":false,"import_only":false,"generated_for":"none","related_cv_count":0,"related_composite_cvs":[],"needs_publish":true,"filtered":true,"repository_ids":[31,32,33,34],"id":19,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":11,"organization":{"name":"Test - Organization","label":"Test_Organization","id":11},"created_at":"2023-06-05 - 22:34:51 UTC","updated_at":"2023-06-05 22:34:51 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":31,"name":"Test - Repository","label":"Test_Repository","content_type":"yum"},{"id":32,"name":"Test - Modular Repository","label":"Test_Modular_Repository","content_type":"yum"},{"id":33,"name":"Test - Docker Repository","label":"Test_Docker_Repository","content_type":"docker"},{"id":34,"name":"Test - Debian Repository","label":"Test_Debian_Repository","content_type":"deb"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]}]} + Content View\"","sort":{"by":"name","order":"asc"},"results":[{"composite":false,"component_ids":[],"duplicate_repositories_to_publish":[],"default":false,"version_count":0,"latest_version":null,"latest_version_id":null,"auto_publish":false,"solve_dependencies":false,"import_only":false,"generated_for":"none","related_cv_count":0,"related_composite_cvs":[],"filtered":true,"repository_ids":[13,14,15],"id":11,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":7,"organization":{"name":"Test + Organization","label":"Test_Organization","id":7},"created_at":"2024-07-24 + 14:54:40 UTC","updated_at":"2024-07-24 14:54:40 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":13,"name":"Test + Repository","label":"Test_Repository","content_type":"yum"},{"id":14,"name":"Test + Modular Repository","label":"Test_Modular_Repository","content_type":"yum"},{"id":15,"name":"Test + Docker Repository","label":"Test_Docker_Repository","content_type":"docker"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]}]} ' headers: @@ -143,7 +142,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '1353' + - '1270' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -155,9 +154,9 @@ interactions: Foreman_current_location: - ; ANY Foreman_current_organization: - - 11; Test Organization + - 7; Test Organization Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=98 Strict-Transport-Security: @@ -187,21 +186,20 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/content_views/19/filters?search=name%3D%22Test+Content+View+Filter+-+erratum_by_id%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/content_views/11/filters?search=name%3D%22Test+Content+View+Filter+-+erratum_by_id%22&per_page=4294967296 response: body: string: '{"total":10,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Content View Filter - erratum_by_id\"","sort":{"by":"name","order":"asc"},"results":[{"inclusion":false,"id":60,"name":"Test - Content View Filter - erratum_by_id","description":null,"created_at":"2023-06-05 - 22:34:57 UTC","updated_at":"2023-06-05 22:34:57 UTC","content_view":{"composite":false,"component_ids":[],"default":false,"version_count":0,"latest_version":null,"latest_version_id":null,"auto_publish":false,"solve_dependencies":false,"import_only":false,"generated_for":"none","related_cv_count":0,"related_composite_cvs":[],"needs_publish":true,"filtered":true,"repository_ids":[31,32,33,34],"id":19,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":11,"organization":{"name":"Test - Organization","label":"Test_Organization","id":11},"created_at":"2023-06-05 - 22:34:51 UTC","updated_at":"2023-06-05 22:34:51 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":31,"name":"Test - Repository","label":"Test_Repository","content_type":"yum"},{"id":32,"name":"Test - Modular Repository","label":"Test_Modular_Repository","content_type":"yum"},{"id":33,"name":"Test - Docker Repository","label":"Test_Docker_Repository","content_type":"docker"},{"id":34,"name":"Test - Debian Repository","label":"Test_Debian_Repository","content_type":"deb"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]},"repositories":[],"type":"erratum","rules":[{"content_view_filter_id":60,"errata_id":"RHEA-2012:0004","date_type":"updated","id":10,"created_at":"2023-06-05 - 22:35:07 UTC","updated_at":"2023-06-05 22:35:07 UTC"}]}]} + Content View Filter - erratum_by_id\"","sort":{"by":"name","order":"asc"},"results":[{"inclusion":false,"id":56,"name":"Test + Content View Filter - erratum_by_id","description":null,"created_at":"2024-07-24 + 14:54:43 UTC","updated_at":"2024-07-24 14:54:43 UTC","content_view":{"composite":false,"component_ids":[],"duplicate_repositories_to_publish":[],"default":false,"version_count":0,"latest_version":null,"latest_version_id":null,"auto_publish":false,"solve_dependencies":false,"import_only":false,"generated_for":"none","related_cv_count":0,"related_composite_cvs":[],"filtered":true,"repository_ids":[13,14,15],"id":11,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":7,"organization":{"name":"Test + Organization","label":"Test_Organization","id":7},"created_at":"2024-07-24 + 14:54:40 UTC","updated_at":"2024-07-24 14:54:40 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":13,"name":"Test + Repository","label":"Test_Repository","content_type":"yum"},{"id":14,"name":"Test + Modular Repository","label":"Test_Modular_Repository","content_type":"yum"},{"id":15,"name":"Test + Docker Repository","label":"Test_Docker_Repository","content_type":"docker"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]},"repositories":[],"type":"erratum","rules":[{"content_view_filter_id":56,"errata_id":"RHEA-2012:0004","date_type":"updated","id":10,"created_at":"2024-07-24 + 14:54:48 UTC","updated_at":"2024-07-24 14:54:48 UTC"}]}]} ' headers: @@ -210,7 +208,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '1779' + - '1696' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -224,7 +222,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=97 Strict-Transport-Security: @@ -254,7 +252,7 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/content_view_filters/60/rules?errata_id=RHEA-2012%3A0003&per_page=4294967296 + uri: https://foreman.example.org/katello/api/content_view_filters/56/rules?errata_id=RHEA-2012%3A0003&per_page=4294967296 response: body: string: '{"total":0,"subtotal":0,"selectable":0,"page":1,"per_page":"4294967296","error":null,"search":null,"sort":{"by":"id","order":"asc"},"results":[]} @@ -280,7 +278,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=96 Strict-Transport-Security: @@ -314,11 +312,11 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: POST - uri: https://foreman.example.org/katello/api/content_view_filters/60/rules + uri: https://foreman.example.org/katello/api/content_view_filters/56/rules response: body: - string: ' {"content_view_filter_id":60,"errata_id":"RHEA-2012:0003","date_type":"updated","id":11,"created_at":"2023-06-05 - 22:35:08 UTC","updated_at":"2023-06-05 22:35:08 UTC"} + string: ' {"content_view_filter_id":56,"errata_id":"RHEA-2012:0003","date_type":"updated","id":11,"created_at":"2024-07-24 + 14:54:48 UTC","updated_at":"2024-07-24 14:54:48 UTC"} ' headers: @@ -341,7 +339,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=95 Strict-Transport-Security: diff --git a/tests/test_playbooks/fixtures/content_view_filter_rule-7.yml b/tests/test_playbooks/fixtures/content_view_filter_rule-7.yml index 6fed15f3..17c7dc2a 100644 --- a/tests/test_playbooks/fixtures/content_view_filter_rule-7.yml +++ b/tests/test_playbooks/fixtures/content_view_filter_rule-7.yml @@ -14,14 +14,14 @@ interactions: uri: https://foreman.example.org/api/status response: body: - string: '{"result":"ok","status":200,"version":"3.7.0-rc2","api_version":2}' + string: '{"result":"ok","status":200,"version":"3.12.0-develop","api_version":2}' headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive Content-Length: - - '66' + - '71' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -35,7 +35,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=100 Strict-Transport-Security: @@ -70,8 +70,8 @@ interactions: body: string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": 4294967296,\n \"search\": \"name=\\\"Test Organization\\\"\",\n \"sort\": - {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\":\"Test_Organization\",\"created_at\":\"2023-06-05 - 22:32:12 UTC\",\"updated_at\":\"2023-06-05 22:32:15 UTC\",\"id\":11,\"name\":\"Test + {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\":\"Test_Organization\",\"created_at\":\"2024-07-24 + 14:53:36 UTC\",\"updated_at\":\"2024-07-24 14:53:38 UTC\",\"id\":7,\"name\":\"Test Organization\",\"title\":\"Test Organization\",\"description\":\"A test organization\"}]\n}\n" headers: Cache-Control: @@ -79,7 +79,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '389' + - '388' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -93,7 +93,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=99 Strict-Transport-Security: @@ -123,18 +123,17 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/organizations/11/content_views?search=name%3D%22Test+Content+View%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/organizations/7/content_views?search=name%3D%22Test+Content+View%22&per_page=4294967296 response: body: string: '{"total":2,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Content View\"","sort":{"by":"name","order":"asc"},"results":[{"composite":false,"component_ids":[],"default":false,"version_count":0,"latest_version":null,"latest_version_id":null,"auto_publish":false,"solve_dependencies":false,"import_only":false,"generated_for":"none","related_cv_count":0,"related_composite_cvs":[],"needs_publish":true,"filtered":true,"repository_ids":[31,32,33,34],"id":19,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":11,"organization":{"name":"Test - Organization","label":"Test_Organization","id":11},"created_at":"2023-06-05 - 22:34:51 UTC","updated_at":"2023-06-05 22:34:51 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":31,"name":"Test - Repository","label":"Test_Repository","content_type":"yum"},{"id":32,"name":"Test - Modular Repository","label":"Test_Modular_Repository","content_type":"yum"},{"id":33,"name":"Test - Docker Repository","label":"Test_Docker_Repository","content_type":"docker"},{"id":34,"name":"Test - Debian Repository","label":"Test_Debian_Repository","content_type":"deb"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]}]} + Content View\"","sort":{"by":"name","order":"asc"},"results":[{"composite":false,"component_ids":[],"duplicate_repositories_to_publish":[],"default":false,"version_count":0,"latest_version":null,"latest_version_id":null,"auto_publish":false,"solve_dependencies":false,"import_only":false,"generated_for":"none","related_cv_count":0,"related_composite_cvs":[],"filtered":true,"repository_ids":[13,14,15],"id":11,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":7,"organization":{"name":"Test + Organization","label":"Test_Organization","id":7},"created_at":"2024-07-24 + 14:54:40 UTC","updated_at":"2024-07-24 14:54:40 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":13,"name":"Test + Repository","label":"Test_Repository","content_type":"yum"},{"id":14,"name":"Test + Modular Repository","label":"Test_Modular_Repository","content_type":"yum"},{"id":15,"name":"Test + Docker Repository","label":"Test_Docker_Repository","content_type":"docker"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]}]} ' headers: @@ -143,7 +142,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '1353' + - '1270' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -155,9 +154,9 @@ interactions: Foreman_current_location: - ; ANY Foreman_current_organization: - - 11; Test Organization + - 7; Test Organization Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=98 Strict-Transport-Security: @@ -187,20 +186,19 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/content_views/19/filters?search=name%3D%22Test+Content+View+Filter+-+erratum_by_date%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/content_views/11/filters?search=name%3D%22Test+Content+View+Filter+-+erratum_by_date%22&per_page=4294967296 response: body: string: '{"total":10,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Content View Filter - erratum_by_date\"","sort":{"by":"name","order":"asc"},"results":[{"inclusion":false,"id":61,"name":"Test - Content View Filter - erratum_by_date","description":null,"created_at":"2023-06-05 - 22:34:58 UTC","updated_at":"2023-06-05 22:34:58 UTC","content_view":{"composite":false,"component_ids":[],"default":false,"version_count":0,"latest_version":null,"latest_version_id":null,"auto_publish":false,"solve_dependencies":false,"import_only":false,"generated_for":"none","related_cv_count":0,"related_composite_cvs":[],"needs_publish":true,"filtered":true,"repository_ids":[31,32,33,34],"id":19,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":11,"organization":{"name":"Test - Organization","label":"Test_Organization","id":11},"created_at":"2023-06-05 - 22:34:51 UTC","updated_at":"2023-06-05 22:34:51 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":31,"name":"Test - Repository","label":"Test_Repository","content_type":"yum"},{"id":32,"name":"Test - Modular Repository","label":"Test_Modular_Repository","content_type":"yum"},{"id":33,"name":"Test - Docker Repository","label":"Test_Docker_Repository","content_type":"docker"},{"id":34,"name":"Test - Debian Repository","label":"Test_Debian_Repository","content_type":"deb"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]},"repositories":[],"type":"erratum","rules":[]}]} + Content View Filter - erratum_by_date\"","sort":{"by":"name","order":"asc"},"results":[{"inclusion":false,"id":57,"name":"Test + Content View Filter - erratum_by_date","description":null,"created_at":"2024-07-24 + 14:54:43 UTC","updated_at":"2024-07-24 14:54:43 UTC","content_view":{"composite":false,"component_ids":[],"duplicate_repositories_to_publish":[],"default":false,"version_count":0,"latest_version":null,"latest_version_id":null,"auto_publish":false,"solve_dependencies":false,"import_only":false,"generated_for":"none","related_cv_count":0,"related_composite_cvs":[],"filtered":true,"repository_ids":[13,14,15],"id":11,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":7,"organization":{"name":"Test + Organization","label":"Test_Organization","id":7},"created_at":"2024-07-24 + 14:54:40 UTC","updated_at":"2024-07-24 14:54:40 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":13,"name":"Test + Repository","label":"Test_Repository","content_type":"yum"},{"id":14,"name":"Test + Modular Repository","label":"Test_Modular_Repository","content_type":"yum"},{"id":15,"name":"Test + Docker Repository","label":"Test_Docker_Repository","content_type":"docker"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]},"repositories":[],"type":"erratum","rules":[]}]} ' headers: @@ -209,7 +207,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '1617' + - '1534' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -223,7 +221,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=97 Strict-Transport-Security: @@ -253,7 +251,7 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/content_view_filters/61/rules?per_page=4294967296 + uri: https://foreman.example.org/katello/api/content_view_filters/57/rules?per_page=4294967296 response: body: string: '{"total":0,"subtotal":0,"selectable":0,"page":1,"per_page":"4294967296","error":null,"search":null,"sort":{"by":"id","order":"asc"},"results":[]} @@ -279,7 +277,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=96 Strict-Transport-Security: @@ -314,11 +312,11 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: POST - uri: https://foreman.example.org/katello/api/content_view_filters/61/rules + uri: https://foreman.example.org/katello/api/content_view_filters/57/rules response: body: - string: ' {"content_view_filter_id":61,"start_date":"2017-01-03","end_date":"2018-01-03","types":["bugfix","enhancement","security"],"date_type":"updated","id":12,"created_at":"2023-06-05 - 22:35:09 UTC","updated_at":"2023-06-05 22:35:09 UTC"} + string: ' {"content_view_filter_id":57,"start_date":"2017-01-03","end_date":"2018-01-03","types":["bugfix","enhancement","security"],"date_type":"updated","id":12,"created_at":"2024-07-24 + 14:54:49 UTC","updated_at":"2024-07-24 14:54:49 UTC"} ' headers: @@ -341,7 +339,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=95 Strict-Transport-Security: diff --git a/tests/test_playbooks/fixtures/content_view_filter_rule-8.yml b/tests/test_playbooks/fixtures/content_view_filter_rule-8.yml index 6d5c7e47..f9a7bd9a 100644 --- a/tests/test_playbooks/fixtures/content_view_filter_rule-8.yml +++ b/tests/test_playbooks/fixtures/content_view_filter_rule-8.yml @@ -14,14 +14,14 @@ interactions: uri: https://foreman.example.org/api/status response: body: - string: '{"result":"ok","status":200,"version":"3.7.0-rc2","api_version":2}' + string: '{"result":"ok","status":200,"version":"3.12.0-develop","api_version":2}' headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive Content-Length: - - '66' + - '71' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -35,7 +35,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=100 Strict-Transport-Security: @@ -70,8 +70,8 @@ interactions: body: string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": 4294967296,\n \"search\": \"name=\\\"Test Organization\\\"\",\n \"sort\": - {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\":\"Test_Organization\",\"created_at\":\"2023-06-05 - 22:32:12 UTC\",\"updated_at\":\"2023-06-05 22:32:15 UTC\",\"id\":11,\"name\":\"Test + {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\":\"Test_Organization\",\"created_at\":\"2024-07-24 + 14:53:36 UTC\",\"updated_at\":\"2024-07-24 14:53:38 UTC\",\"id\":7,\"name\":\"Test Organization\",\"title\":\"Test Organization\",\"description\":\"A test organization\"}]\n}\n" headers: Cache-Control: @@ -79,7 +79,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '389' + - '388' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -93,7 +93,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=99 Strict-Transport-Security: @@ -123,18 +123,17 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/organizations/11/content_views?search=name%3D%22Test+Content+View%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/organizations/7/content_views?search=name%3D%22Test+Content+View%22&per_page=4294967296 response: body: string: '{"total":2,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Content View\"","sort":{"by":"name","order":"asc"},"results":[{"composite":false,"component_ids":[],"default":false,"version_count":0,"latest_version":null,"latest_version_id":null,"auto_publish":false,"solve_dependencies":false,"import_only":false,"generated_for":"none","related_cv_count":0,"related_composite_cvs":[],"needs_publish":true,"filtered":true,"repository_ids":[31,32,33,34],"id":19,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":11,"organization":{"name":"Test - Organization","label":"Test_Organization","id":11},"created_at":"2023-06-05 - 22:34:51 UTC","updated_at":"2023-06-05 22:34:51 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":31,"name":"Test - Repository","label":"Test_Repository","content_type":"yum"},{"id":32,"name":"Test - Modular Repository","label":"Test_Modular_Repository","content_type":"yum"},{"id":33,"name":"Test - Docker Repository","label":"Test_Docker_Repository","content_type":"docker"},{"id":34,"name":"Test - Debian Repository","label":"Test_Debian_Repository","content_type":"deb"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]}]} + Content View\"","sort":{"by":"name","order":"asc"},"results":[{"composite":false,"component_ids":[],"duplicate_repositories_to_publish":[],"default":false,"version_count":0,"latest_version":null,"latest_version_id":null,"auto_publish":false,"solve_dependencies":false,"import_only":false,"generated_for":"none","related_cv_count":0,"related_composite_cvs":[],"filtered":true,"repository_ids":[13,14,15],"id":11,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":7,"organization":{"name":"Test + Organization","label":"Test_Organization","id":7},"created_at":"2024-07-24 + 14:54:40 UTC","updated_at":"2024-07-24 14:54:40 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":13,"name":"Test + Repository","label":"Test_Repository","content_type":"yum"},{"id":14,"name":"Test + Modular Repository","label":"Test_Modular_Repository","content_type":"yum"},{"id":15,"name":"Test + Docker Repository","label":"Test_Docker_Repository","content_type":"docker"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]}]} ' headers: @@ -143,7 +142,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '1353' + - '1270' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -155,9 +154,9 @@ interactions: Foreman_current_location: - ; ANY Foreman_current_organization: - - 11; Test Organization + - 7; Test Organization Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=98 Strict-Transport-Security: @@ -187,21 +186,20 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/content_views/19/filters?search=name%3D%22Test+Content+View+Filter+-+erratum_by_date%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/content_views/11/filters?search=name%3D%22Test+Content+View+Filter+-+erratum_by_date%22&per_page=4294967296 response: body: string: '{"total":10,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Content View Filter - erratum_by_date\"","sort":{"by":"name","order":"asc"},"results":[{"inclusion":false,"id":61,"name":"Test - Content View Filter - erratum_by_date","description":null,"created_at":"2023-06-05 - 22:34:58 UTC","updated_at":"2023-06-05 22:34:58 UTC","content_view":{"composite":false,"component_ids":[],"default":false,"version_count":0,"latest_version":null,"latest_version_id":null,"auto_publish":false,"solve_dependencies":false,"import_only":false,"generated_for":"none","related_cv_count":0,"related_composite_cvs":[],"needs_publish":true,"filtered":true,"repository_ids":[31,32,33,34],"id":19,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":11,"organization":{"name":"Test - Organization","label":"Test_Organization","id":11},"created_at":"2023-06-05 - 22:34:51 UTC","updated_at":"2023-06-05 22:34:51 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":31,"name":"Test - Repository","label":"Test_Repository","content_type":"yum"},{"id":32,"name":"Test - Modular Repository","label":"Test_Modular_Repository","content_type":"yum"},{"id":33,"name":"Test - Docker Repository","label":"Test_Docker_Repository","content_type":"docker"},{"id":34,"name":"Test - Debian Repository","label":"Test_Debian_Repository","content_type":"deb"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]},"repositories":[],"type":"erratum","rules":[{"content_view_filter_id":61,"start_date":"2017-01-03","end_date":"2018-01-03","types":["bugfix","enhancement","security"],"date_type":"updated","id":12,"created_at":"2023-06-05 - 22:35:09 UTC","updated_at":"2023-06-05 22:35:09 UTC"}]}]} + Content View Filter - erratum_by_date\"","sort":{"by":"name","order":"asc"},"results":[{"inclusion":false,"id":57,"name":"Test + Content View Filter - erratum_by_date","description":null,"created_at":"2024-07-24 + 14:54:43 UTC","updated_at":"2024-07-24 14:54:43 UTC","content_view":{"composite":false,"component_ids":[],"duplicate_repositories_to_publish":[],"default":false,"version_count":0,"latest_version":null,"latest_version_id":null,"auto_publish":false,"solve_dependencies":false,"import_only":false,"generated_for":"none","related_cv_count":0,"related_composite_cvs":[],"filtered":true,"repository_ids":[13,14,15],"id":11,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":7,"organization":{"name":"Test + Organization","label":"Test_Organization","id":7},"created_at":"2024-07-24 + 14:54:40 UTC","updated_at":"2024-07-24 14:54:40 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":13,"name":"Test + Repository","label":"Test_Repository","content_type":"yum"},{"id":14,"name":"Test + Modular Repository","label":"Test_Modular_Repository","content_type":"yum"},{"id":15,"name":"Test + Docker Repository","label":"Test_Docker_Repository","content_type":"docker"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]},"repositories":[],"type":"erratum","rules":[{"content_view_filter_id":57,"start_date":"2017-01-03","end_date":"2018-01-03","types":["bugfix","enhancement","security"],"date_type":"updated","id":12,"created_at":"2024-07-24 + 14:54:49 UTC","updated_at":"2024-07-24 14:54:49 UTC"}]}]} ' headers: @@ -210,7 +208,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '1848' + - '1765' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -224,7 +222,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=97 Strict-Transport-Security: @@ -254,11 +252,11 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/content_view_filters/61/rules?per_page=4294967296 + uri: https://foreman.example.org/katello/api/content_view_filters/57/rules?per_page=4294967296 response: body: - string: '{"total":1,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":null,"sort":{"by":"id","order":"asc"},"results":[{"content_view_filter_id":61,"start_date":"2017-01-03","end_date":"2018-01-03","types":["bugfix","enhancement","security"],"date_type":"updated","id":12,"created_at":"2023-06-05 - 22:35:09 UTC","updated_at":"2023-06-05 22:35:09 UTC"}]} + string: '{"total":1,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":null,"sort":{"by":"id","order":"asc"},"results":[{"content_view_filter_id":57,"start_date":"2017-01-03","end_date":"2018-01-03","types":["bugfix","enhancement","security"],"date_type":"updated","id":12,"created_at":"2024-07-24 + 14:54:49 UTC","updated_at":"2024-07-24 14:54:49 UTC"}]} ' headers: @@ -281,7 +279,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=96 Strict-Transport-Security: @@ -311,11 +309,11 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/content_view_filters/61/rules/12 + uri: https://foreman.example.org/katello/api/content_view_filters/57/rules/12 response: body: - string: ' {"content_view_filter_id":61,"start_date":"2017-01-03","end_date":"2018-01-03","types":["bugfix","enhancement","security"],"date_type":"updated","id":12,"created_at":"2023-06-05 - 22:35:09 UTC","updated_at":"2023-06-05 22:35:09 UTC"} + string: ' {"content_view_filter_id":57,"start_date":"2017-01-03","end_date":"2018-01-03","types":["bugfix","enhancement","security"],"date_type":"updated","id":12,"created_at":"2024-07-24 + 14:54:49 UTC","updated_at":"2024-07-24 14:54:49 UTC"} ' headers: @@ -338,7 +336,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=95 Strict-Transport-Security: @@ -372,11 +370,11 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: PUT - uri: https://foreman.example.org/katello/api/content_view_filters/61/rules/12 + uri: https://foreman.example.org/katello/api/content_view_filters/57/rules/12 response: body: - string: ' {"content_view_filter_id":61,"start_date":"2017-01-03","end_date":"2019-01-03","types":["bugfix","enhancement","security"],"date_type":"updated","id":12,"created_at":"2023-06-05 - 22:35:09 UTC","updated_at":"2023-06-05 22:35:10 UTC"} + string: ' {"content_view_filter_id":57,"start_date":"2017-01-03","end_date":"2019-01-03","types":["bugfix","enhancement","security"],"date_type":"updated","id":12,"created_at":"2024-07-24 + 14:54:49 UTC","updated_at":"2024-07-24 14:54:49 UTC"} ' headers: @@ -399,7 +397,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=94 Strict-Transport-Security: diff --git a/tests/test_playbooks/fixtures/content_view_filter_rule-9.yml b/tests/test_playbooks/fixtures/content_view_filter_rule-9.yml index fd68765e..4ae3f0f1 100644 --- a/tests/test_playbooks/fixtures/content_view_filter_rule-9.yml +++ b/tests/test_playbooks/fixtures/content_view_filter_rule-9.yml @@ -14,14 +14,14 @@ interactions: uri: https://foreman.example.org/api/status response: body: - string: '{"result":"ok","status":200,"version":"3.7.0-rc2","api_version":2}' + string: '{"result":"ok","status":200,"version":"3.12.0-develop","api_version":2}' headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive Content-Length: - - '66' + - '71' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -35,7 +35,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=100 Strict-Transport-Security: @@ -70,8 +70,8 @@ interactions: body: string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": 4294967296,\n \"search\": \"name=\\\"Test Organization\\\"\",\n \"sort\": - {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\":\"Test_Organization\",\"created_at\":\"2023-06-05 - 22:32:12 UTC\",\"updated_at\":\"2023-06-05 22:32:15 UTC\",\"id\":11,\"name\":\"Test + {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\":\"Test_Organization\",\"created_at\":\"2024-07-24 + 14:53:36 UTC\",\"updated_at\":\"2024-07-24 14:53:38 UTC\",\"id\":7,\"name\":\"Test Organization\",\"title\":\"Test Organization\",\"description\":\"A test organization\"}]\n}\n" headers: Cache-Control: @@ -79,7 +79,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '389' + - '388' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -93,7 +93,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=99 Strict-Transport-Security: @@ -123,18 +123,17 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/organizations/11/content_views?search=name%3D%22Test+Content+View%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/organizations/7/content_views?search=name%3D%22Test+Content+View%22&per_page=4294967296 response: body: string: '{"total":2,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Content View\"","sort":{"by":"name","order":"asc"},"results":[{"composite":false,"component_ids":[],"default":false,"version_count":0,"latest_version":null,"latest_version_id":null,"auto_publish":false,"solve_dependencies":false,"import_only":false,"generated_for":"none","related_cv_count":0,"related_composite_cvs":[],"needs_publish":true,"filtered":true,"repository_ids":[31,32,33,34],"id":19,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":11,"organization":{"name":"Test - Organization","label":"Test_Organization","id":11},"created_at":"2023-06-05 - 22:34:51 UTC","updated_at":"2023-06-05 22:34:51 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":31,"name":"Test - Repository","label":"Test_Repository","content_type":"yum"},{"id":32,"name":"Test - Modular Repository","label":"Test_Modular_Repository","content_type":"yum"},{"id":33,"name":"Test - Docker Repository","label":"Test_Docker_Repository","content_type":"docker"},{"id":34,"name":"Test - Debian Repository","label":"Test_Debian_Repository","content_type":"deb"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]}]} + Content View\"","sort":{"by":"name","order":"asc"},"results":[{"composite":false,"component_ids":[],"duplicate_repositories_to_publish":[],"default":false,"version_count":0,"latest_version":null,"latest_version_id":null,"auto_publish":false,"solve_dependencies":false,"import_only":false,"generated_for":"none","related_cv_count":0,"related_composite_cvs":[],"filtered":true,"repository_ids":[13,14,15],"id":11,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":7,"organization":{"name":"Test + Organization","label":"Test_Organization","id":7},"created_at":"2024-07-24 + 14:54:40 UTC","updated_at":"2024-07-24 14:54:40 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":13,"name":"Test + Repository","label":"Test_Repository","content_type":"yum"},{"id":14,"name":"Test + Modular Repository","label":"Test_Modular_Repository","content_type":"yum"},{"id":15,"name":"Test + Docker Repository","label":"Test_Docker_Repository","content_type":"docker"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]}]} ' headers: @@ -143,7 +142,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '1353' + - '1270' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -155,9 +154,9 @@ interactions: Foreman_current_location: - ; ANY Foreman_current_organization: - - 11; Test Organization + - 7; Test Organization Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=98 Strict-Transport-Security: @@ -187,20 +186,19 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/content_views/19/filters?search=name%3D%22Test+Content+View+Filter+-+docker%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/content_views/11/filters?search=name%3D%22Test+Content+View+Filter+-+docker%22&per_page=4294967296 response: body: string: '{"total":10,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Content View Filter - docker\"","sort":{"by":"name","order":"asc"},"results":[{"inclusion":false,"id":62,"name":"Test - Content View Filter - docker","description":null,"created_at":"2023-06-05 - 22:34:59 UTC","updated_at":"2023-06-05 22:34:59 UTC","content_view":{"composite":false,"component_ids":[],"default":false,"version_count":0,"latest_version":null,"latest_version_id":null,"auto_publish":false,"solve_dependencies":false,"import_only":false,"generated_for":"none","related_cv_count":0,"related_composite_cvs":[],"needs_publish":true,"filtered":true,"repository_ids":[31,32,33,34],"id":19,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":11,"organization":{"name":"Test - Organization","label":"Test_Organization","id":11},"created_at":"2023-06-05 - 22:34:51 UTC","updated_at":"2023-06-05 22:34:51 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":31,"name":"Test - Repository","label":"Test_Repository","content_type":"yum"},{"id":32,"name":"Test - Modular Repository","label":"Test_Modular_Repository","content_type":"yum"},{"id":33,"name":"Test - Docker Repository","label":"Test_Docker_Repository","content_type":"docker"},{"id":34,"name":"Test - Debian Repository","label":"Test_Debian_Repository","content_type":"deb"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]},"repositories":[],"type":"docker","rules":[]}]} + Content View Filter - docker\"","sort":{"by":"name","order":"asc"},"results":[{"inclusion":false,"id":58,"name":"Test + Content View Filter - docker","description":null,"created_at":"2024-07-24 + 14:54:44 UTC","updated_at":"2024-07-24 14:54:44 UTC","content_view":{"composite":false,"component_ids":[],"duplicate_repositories_to_publish":[],"default":false,"version_count":0,"latest_version":null,"latest_version_id":null,"auto_publish":false,"solve_dependencies":false,"import_only":false,"generated_for":"none","related_cv_count":0,"related_composite_cvs":[],"filtered":true,"repository_ids":[13,14,15],"id":11,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":7,"organization":{"name":"Test + Organization","label":"Test_Organization","id":7},"created_at":"2024-07-24 + 14:54:40 UTC","updated_at":"2024-07-24 14:54:40 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":13,"name":"Test + Repository","label":"Test_Repository","content_type":"yum"},{"id":14,"name":"Test + Modular Repository","label":"Test_Modular_Repository","content_type":"yum"},{"id":15,"name":"Test + Docker Repository","label":"Test_Docker_Repository","content_type":"docker"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]},"repositories":[],"type":"docker","rules":[]}]} ' headers: @@ -209,7 +207,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '1598' + - '1515' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -223,7 +221,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=97 Strict-Transport-Security: @@ -253,7 +251,7 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/content_view_filters/62/rules?search=name%3D%228.7-929%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/content_view_filters/58/rules?search=name%3D%228.7-929%22&per_page=4294967296 response: body: string: '{"total":0,"subtotal":0,"selectable":0,"page":1,"per_page":"4294967296","error":null,"search":"name=\"8.7-929\"","sort":{"by":"id","order":"asc"},"results":[]} @@ -279,7 +277,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=96 Strict-Transport-Security: @@ -313,11 +311,11 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: POST - uri: https://foreman.example.org/katello/api/content_view_filters/62/rules + uri: https://foreman.example.org/katello/api/content_view_filters/58/rules response: body: - string: ' {"content_view_filter_id":62,"id":6,"name":"8.7-929","created_at":"2023-06-05 - 22:35:11 UTC","updated_at":"2023-06-05 22:35:11 UTC"} + string: ' {"content_view_filter_id":58,"id":7,"name":"8.7-929","created_at":"2024-07-24 + 14:54:50 UTC","updated_at":"2024-07-24 14:54:50 UTC"} ' headers: @@ -340,7 +338,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=95 Strict-Transport-Security: From 19a5a8f8b686a4a6010bcb8b49e55e6df235fd17 Mon Sep 17 00:00:00 2001 From: Evgeni Golov Date: Wed, 24 Jul 2024 17:01:12 +0200 Subject: [PATCH 16/36] record cv_filter_rule_deb --- .../content_view_filter_rule_deb-0.yml | 355 +++++++++++++++++ .../content_view_filter_rule_deb-1.yml | 356 ++++++++++++++++++ .../content_view_filter_rule_deb-2.yml | 354 +++++++++++++++++ .../content_view_filter_rule_deb-3.yml | 356 ++++++++++++++++++ .../content_view_filter_rule_deb-4.yml | 355 +++++++++++++++++ 5 files changed, 1776 insertions(+) create mode 100644 tests/test_playbooks/fixtures/content_view_filter_rule_deb-0.yml create mode 100644 tests/test_playbooks/fixtures/content_view_filter_rule_deb-1.yml create mode 100644 tests/test_playbooks/fixtures/content_view_filter_rule_deb-2.yml create mode 100644 tests/test_playbooks/fixtures/content_view_filter_rule_deb-3.yml create mode 100644 tests/test_playbooks/fixtures/content_view_filter_rule_deb-4.yml diff --git a/tests/test_playbooks/fixtures/content_view_filter_rule_deb-0.yml b/tests/test_playbooks/fixtures/content_view_filter_rule_deb-0.yml new file mode 100644 index 00000000..9839810a --- /dev/null +++ b/tests/test_playbooks/fixtures/content_view_filter_rule_deb-0.yml @@ -0,0 +1,355 @@ +interactions: +- request: + body: null + headers: + Accept: + - application/json;version=2 + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - apypie (https://github.com/Apipie/apypie) + method: GET + uri: https://foreman.example.org/api/status + response: + body: + string: '{"result":"ok","status":200,"version":"3.12.0-develop","api_version":2}' + headers: + Cache-Control: + - max-age=0, private, must-revalidate + Connection: + - Keep-Alive + Content-Length: + - '71' + Content-Security-Policy: + - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: + - application/json; charset=utf-8 + Foreman_api_version: + - '2' + Foreman_current_location: + - ; ANY + Foreman_current_organization: + - ; ANY + Foreman_version: + - 3.12.0-develop + Keep-Alive: + - timeout=15, max=100 + Strict-Transport-Security: + - max-age=631139040; includeSubdomains + X-Content-Type-Options: + - nosniff + X-Download-Options: + - noopen + X-Frame-Options: + - sameorigin + X-Permitted-Cross-Domain-Policies: + - none + X-XSS-Protection: + - 1; mode=block + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json;version=2 + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - apypie (https://github.com/Apipie/apypie) + method: GET + uri: https://foreman.example.org/katello/api/organizations?search=name%3D%22Test+Organization%22&per_page=4294967296 + response: + body: + string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": + 4294967296,\n \"search\": \"name=\\\"Test Organization\\\"\",\n \"sort\": + {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\":\"Test_Organization\",\"created_at\":\"2024-07-24 + 14:58:36 UTC\",\"updated_at\":\"2024-07-24 14:58:38 UTC\",\"id\":8,\"name\":\"Test + Organization\",\"title\":\"Test Organization\",\"description\":\"A test organization\"}]\n}\n" + headers: + Cache-Control: + - max-age=0, private, must-revalidate + Connection: + - Keep-Alive + Content-Length: + - '388' + Content-Security-Policy: + - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: + - application/json; charset=utf-8 + Foreman_api_version: + - '2' + Foreman_current_location: + - ; ANY + Foreman_current_organization: + - ; ANY + Foreman_version: + - 3.12.0-develop + Keep-Alive: + - timeout=15, max=99 + Strict-Transport-Security: + - max-age=631139040; includeSubdomains + X-Content-Type-Options: + - nosniff + X-Download-Options: + - noopen + X-Frame-Options: + - sameorigin + X-Permitted-Cross-Domain-Policies: + - none + X-XSS-Protection: + - 1; mode=block + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json;version=2 + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - apypie (https://github.com/Apipie/apypie) + method: GET + uri: https://foreman.example.org/katello/api/organizations/8/content_views?search=name%3D%22Test+Content+View%22&per_page=4294967296 + response: + body: + string: '{"total":2,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test + Content View\"","sort":{"by":"name","order":"asc"},"results":[{"composite":false,"component_ids":[],"duplicate_repositories_to_publish":[],"default":false,"version_count":0,"latest_version":null,"latest_version_id":null,"auto_publish":false,"solve_dependencies":false,"import_only":false,"generated_for":"none","related_cv_count":0,"related_composite_cvs":[],"filtered":true,"repository_ids":[16],"id":13,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":8,"organization":{"name":"Test + Organization","label":"Test_Organization","id":8},"created_at":"2024-07-24 + 14:58:54 UTC","updated_at":"2024-07-24 14:58:54 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":16,"name":"Test + Debian Repository","label":"Test_Debian_Repository","content_type":"deb"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]}]} + + ' + headers: + Cache-Control: + - max-age=0, private, must-revalidate + Connection: + - Keep-Alive + Content-Length: + - '1081' + Content-Security-Policy: + - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: + - application/json; charset=utf-8 + Foreman_api_version: + - '2' + Foreman_current_location: + - ; ANY + Foreman_current_organization: + - 8; Test Organization + Foreman_version: + - 3.12.0-develop + Keep-Alive: + - timeout=15, max=98 + Strict-Transport-Security: + - max-age=631139040; includeSubdomains + X-Content-Type-Options: + - nosniff + X-Download-Options: + - noopen + X-Frame-Options: + - sameorigin + X-Permitted-Cross-Domain-Policies: + - none + X-XSS-Protection: + - 1; mode=block + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json;version=2 + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - apypie (https://github.com/Apipie/apypie) + method: GET + uri: https://foreman.example.org/katello/api/content_views/13/filters?search=name%3D%22Test+Content+View+Filter+-+deb%22&per_page=4294967296 + response: + body: + string: '{"total":10,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test + Content View Filter - deb\"","sort":{"by":"name","order":"asc"},"results":[{"inclusion":false,"id":70,"name":"Test + Content View Filter - deb","description":null,"created_at":"2024-07-24 14:58:59 + UTC","updated_at":"2024-07-24 14:58:59 UTC","content_view":{"composite":false,"component_ids":[],"duplicate_repositories_to_publish":[],"default":false,"version_count":0,"latest_version":null,"latest_version_id":null,"auto_publish":false,"solve_dependencies":false,"import_only":false,"generated_for":"none","related_cv_count":0,"related_composite_cvs":[],"filtered":true,"repository_ids":[16],"id":13,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":8,"organization":{"name":"Test + Organization","label":"Test_Organization","id":8},"created_at":"2024-07-24 + 14:58:54 UTC","updated_at":"2024-07-24 14:58:54 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":16,"name":"Test + Debian Repository","label":"Test_Debian_Repository","content_type":"deb"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]},"repositories":[],"type":"deb","rules":[]}]} + + ' + headers: + Cache-Control: + - max-age=0, private, must-revalidate + Connection: + - Keep-Alive + Content-Length: + - '1317' + Content-Security-Policy: + - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: + - application/json; charset=utf-8 + Foreman_api_version: + - '2' + Foreman_current_location: + - ; ANY + Foreman_current_organization: + - ; ANY + Foreman_version: + - 3.12.0-develop + Keep-Alive: + - timeout=15, max=97 + Strict-Transport-Security: + - max-age=631139040; includeSubdomains + X-Content-Type-Options: + - nosniff + X-Download-Options: + - noopen + X-Frame-Options: + - sameorigin + X-Permitted-Cross-Domain-Policies: + - none + X-XSS-Protection: + - 1; mode=block + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json;version=2 + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - apypie (https://github.com/Apipie/apypie) + method: GET + uri: https://foreman.example.org/katello/api/content_view_filters/70/rules?search=name%3D%22bear%22&per_page=4294967296 + response: + body: + string: '{"total":0,"subtotal":0,"selectable":0,"page":1,"per_page":"4294967296","error":null,"search":"name=\"bear\"","sort":{"by":"id","order":"asc"},"results":[]} + + ' + headers: + Cache-Control: + - max-age=0, private, must-revalidate + Connection: + - Keep-Alive + Content-Length: + - '157' + Content-Security-Policy: + - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: + - application/json; charset=utf-8 + Foreman_api_version: + - '2' + Foreman_current_location: + - ; ANY + Foreman_current_organization: + - ; ANY + Foreman_version: + - 3.12.0-develop + Keep-Alive: + - timeout=15, max=96 + Strict-Transport-Security: + - max-age=631139040; includeSubdomains + X-Content-Type-Options: + - nosniff + X-Download-Options: + - noopen + X-Frame-Options: + - sameorigin + X-Permitted-Cross-Domain-Policies: + - none + X-XSS-Protection: + - 1; mode=block + status: + code: 200 + message: OK +- request: + body: '{"name": "bear"}' + headers: + Accept: + - application/json;version=2 + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '16' + Content-Type: + - application/json + User-Agent: + - apypie (https://github.com/Apipie/apypie) + method: POST + uri: https://foreman.example.org/katello/api/content_view_filters/70/rules + response: + body: + string: ' {"content_view_filter_id":70,"id":11,"name":"bear","created_at":"2024-07-24 + 15:00:12 UTC","updated_at":"2024-07-24 15:00:12 UTC"} + + ' + headers: + Cache-Control: + - max-age=0, private, must-revalidate + Connection: + - Keep-Alive + Content-Length: + - '132' + Content-Security-Policy: + - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: + - application/json; charset=utf-8 + Foreman_api_version: + - '2' + Foreman_current_location: + - ; ANY + Foreman_current_organization: + - ; ANY + Foreman_version: + - 3.12.0-develop + Keep-Alive: + - timeout=15, max=95 + Strict-Transport-Security: + - max-age=631139040; includeSubdomains + X-Content-Type-Options: + - nosniff + X-Download-Options: + - noopen + X-Frame-Options: + - sameorigin + X-Permitted-Cross-Domain-Policies: + - none + X-XSS-Protection: + - 1; mode=block + status: + code: 201 + message: Created +version: 1 diff --git a/tests/test_playbooks/fixtures/content_view_filter_rule_deb-1.yml b/tests/test_playbooks/fixtures/content_view_filter_rule_deb-1.yml new file mode 100644 index 00000000..37c820d5 --- /dev/null +++ b/tests/test_playbooks/fixtures/content_view_filter_rule_deb-1.yml @@ -0,0 +1,356 @@ +interactions: +- request: + body: null + headers: + Accept: + - application/json;version=2 + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - apypie (https://github.com/Apipie/apypie) + method: GET + uri: https://foreman.example.org/api/status + response: + body: + string: '{"result":"ok","status":200,"version":"3.12.0-develop","api_version":2}' + headers: + Cache-Control: + - max-age=0, private, must-revalidate + Connection: + - Keep-Alive + Content-Length: + - '71' + Content-Security-Policy: + - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: + - application/json; charset=utf-8 + Foreman_api_version: + - '2' + Foreman_current_location: + - ; ANY + Foreman_current_organization: + - ; ANY + Foreman_version: + - 3.12.0-develop + Keep-Alive: + - timeout=15, max=100 + Strict-Transport-Security: + - max-age=631139040; includeSubdomains + X-Content-Type-Options: + - nosniff + X-Download-Options: + - noopen + X-Frame-Options: + - sameorigin + X-Permitted-Cross-Domain-Policies: + - none + X-XSS-Protection: + - 1; mode=block + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json;version=2 + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - apypie (https://github.com/Apipie/apypie) + method: GET + uri: https://foreman.example.org/katello/api/organizations?search=name%3D%22Test+Organization%22&per_page=4294967296 + response: + body: + string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": + 4294967296,\n \"search\": \"name=\\\"Test Organization\\\"\",\n \"sort\": + {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\":\"Test_Organization\",\"created_at\":\"2024-07-24 + 14:58:36 UTC\",\"updated_at\":\"2024-07-24 14:58:38 UTC\",\"id\":8,\"name\":\"Test + Organization\",\"title\":\"Test Organization\",\"description\":\"A test organization\"}]\n}\n" + headers: + Cache-Control: + - max-age=0, private, must-revalidate + Connection: + - Keep-Alive + Content-Length: + - '388' + Content-Security-Policy: + - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: + - application/json; charset=utf-8 + Foreman_api_version: + - '2' + Foreman_current_location: + - ; ANY + Foreman_current_organization: + - ; ANY + Foreman_version: + - 3.12.0-develop + Keep-Alive: + - timeout=15, max=99 + Strict-Transport-Security: + - max-age=631139040; includeSubdomains + X-Content-Type-Options: + - nosniff + X-Download-Options: + - noopen + X-Frame-Options: + - sameorigin + X-Permitted-Cross-Domain-Policies: + - none + X-XSS-Protection: + - 1; mode=block + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json;version=2 + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - apypie (https://github.com/Apipie/apypie) + method: GET + uri: https://foreman.example.org/katello/api/organizations/8/content_views?search=name%3D%22Test+Content+View%22&per_page=4294967296 + response: + body: + string: '{"total":2,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test + Content View\"","sort":{"by":"name","order":"asc"},"results":[{"composite":false,"component_ids":[],"duplicate_repositories_to_publish":[],"default":false,"version_count":0,"latest_version":null,"latest_version_id":null,"auto_publish":false,"solve_dependencies":false,"import_only":false,"generated_for":"none","related_cv_count":0,"related_composite_cvs":[],"filtered":true,"repository_ids":[16],"id":13,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":8,"organization":{"name":"Test + Organization","label":"Test_Organization","id":8},"created_at":"2024-07-24 + 14:58:54 UTC","updated_at":"2024-07-24 14:58:54 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":16,"name":"Test + Debian Repository","label":"Test_Debian_Repository","content_type":"deb"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]}]} + + ' + headers: + Cache-Control: + - max-age=0, private, must-revalidate + Connection: + - Keep-Alive + Content-Length: + - '1081' + Content-Security-Policy: + - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: + - application/json; charset=utf-8 + Foreman_api_version: + - '2' + Foreman_current_location: + - ; ANY + Foreman_current_organization: + - 8; Test Organization + Foreman_version: + - 3.12.0-develop + Keep-Alive: + - timeout=15, max=98 + Strict-Transport-Security: + - max-age=631139040; includeSubdomains + X-Content-Type-Options: + - nosniff + X-Download-Options: + - noopen + X-Frame-Options: + - sameorigin + X-Permitted-Cross-Domain-Policies: + - none + X-XSS-Protection: + - 1; mode=block + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json;version=2 + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - apypie (https://github.com/Apipie/apypie) + method: GET + uri: https://foreman.example.org/katello/api/content_views/13/filters?search=name%3D%22Test+Content+View+Filter+-+deb%22&per_page=4294967296 + response: + body: + string: '{"total":10,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test + Content View Filter - deb\"","sort":{"by":"name","order":"asc"},"results":[{"inclusion":false,"id":70,"name":"Test + Content View Filter - deb","description":null,"created_at":"2024-07-24 14:58:59 + UTC","updated_at":"2024-07-24 14:58:59 UTC","content_view":{"composite":false,"component_ids":[],"duplicate_repositories_to_publish":[],"default":false,"version_count":0,"latest_version":null,"latest_version_id":null,"auto_publish":false,"solve_dependencies":false,"import_only":false,"generated_for":"none","related_cv_count":0,"related_composite_cvs":[],"filtered":true,"repository_ids":[16],"id":13,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":8,"organization":{"name":"Test + Organization","label":"Test_Organization","id":8},"created_at":"2024-07-24 + 14:58:54 UTC","updated_at":"2024-07-24 14:58:54 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":16,"name":"Test + Debian Repository","label":"Test_Debian_Repository","content_type":"deb"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]},"repositories":[],"type":"deb","rules":[{"content_view_filter_id":70,"id":11,"name":"bear","created_at":"2024-07-24 + 15:00:12 UTC","updated_at":"2024-07-24 15:00:12 UTC"}]}]} + + ' + headers: + Cache-Control: + - max-age=0, private, must-revalidate + Connection: + - Keep-Alive + Content-Length: + - '1446' + Content-Security-Policy: + - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: + - application/json; charset=utf-8 + Foreman_api_version: + - '2' + Foreman_current_location: + - ; ANY + Foreman_current_organization: + - ; ANY + Foreman_version: + - 3.12.0-develop + Keep-Alive: + - timeout=15, max=97 + Strict-Transport-Security: + - max-age=631139040; includeSubdomains + X-Content-Type-Options: + - nosniff + X-Download-Options: + - noopen + X-Frame-Options: + - sameorigin + X-Permitted-Cross-Domain-Policies: + - none + X-XSS-Protection: + - 1; mode=block + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json;version=2 + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - apypie (https://github.com/Apipie/apypie) + method: GET + uri: https://foreman.example.org/katello/api/content_view_filters/70/rules?search=name%3D%22camel%22&per_page=4294967296 + response: + body: + string: '{"total":1,"subtotal":0,"selectable":0,"page":1,"per_page":"4294967296","error":null,"search":"name=\"camel\"","sort":{"by":"id","order":"asc"},"results":[]} + + ' + headers: + Cache-Control: + - max-age=0, private, must-revalidate + Connection: + - Keep-Alive + Content-Length: + - '158' + Content-Security-Policy: + - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: + - application/json; charset=utf-8 + Foreman_api_version: + - '2' + Foreman_current_location: + - ; ANY + Foreman_current_organization: + - ; ANY + Foreman_version: + - 3.12.0-develop + Keep-Alive: + - timeout=15, max=96 + Strict-Transport-Security: + - max-age=631139040; includeSubdomains + X-Content-Type-Options: + - nosniff + X-Download-Options: + - noopen + X-Frame-Options: + - sameorigin + X-Permitted-Cross-Domain-Policies: + - none + X-XSS-Protection: + - 1; mode=block + status: + code: 200 + message: OK +- request: + body: '{"name": "camel"}' + headers: + Accept: + - application/json;version=2 + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '17' + Content-Type: + - application/json + User-Agent: + - apypie (https://github.com/Apipie/apypie) + method: POST + uri: https://foreman.example.org/katello/api/content_view_filters/70/rules + response: + body: + string: ' {"content_view_filter_id":70,"id":12,"name":"camel","created_at":"2024-07-24 + 15:00:13 UTC","updated_at":"2024-07-24 15:00:13 UTC"} + + ' + headers: + Cache-Control: + - max-age=0, private, must-revalidate + Connection: + - Keep-Alive + Content-Length: + - '133' + Content-Security-Policy: + - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: + - application/json; charset=utf-8 + Foreman_api_version: + - '2' + Foreman_current_location: + - ; ANY + Foreman_current_organization: + - ; ANY + Foreman_version: + - 3.12.0-develop + Keep-Alive: + - timeout=15, max=95 + Strict-Transport-Security: + - max-age=631139040; includeSubdomains + X-Content-Type-Options: + - nosniff + X-Download-Options: + - noopen + X-Frame-Options: + - sameorigin + X-Permitted-Cross-Domain-Policies: + - none + X-XSS-Protection: + - 1; mode=block + status: + code: 201 + message: Created +version: 1 diff --git a/tests/test_playbooks/fixtures/content_view_filter_rule_deb-2.yml b/tests/test_playbooks/fixtures/content_view_filter_rule_deb-2.yml new file mode 100644 index 00000000..337b1c02 --- /dev/null +++ b/tests/test_playbooks/fixtures/content_view_filter_rule_deb-2.yml @@ -0,0 +1,354 @@ +interactions: +- request: + body: null + headers: + Accept: + - application/json;version=2 + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - apypie (https://github.com/Apipie/apypie) + method: GET + uri: https://foreman.example.org/api/status + response: + body: + string: '{"result":"ok","status":200,"version":"3.12.0-develop","api_version":2}' + headers: + Cache-Control: + - max-age=0, private, must-revalidate + Connection: + - Keep-Alive + Content-Length: + - '71' + Content-Security-Policy: + - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: + - application/json; charset=utf-8 + Foreman_api_version: + - '2' + Foreman_current_location: + - ; ANY + Foreman_current_organization: + - ; ANY + Foreman_version: + - 3.12.0-develop + Keep-Alive: + - timeout=15, max=100 + Strict-Transport-Security: + - max-age=631139040; includeSubdomains + X-Content-Type-Options: + - nosniff + X-Download-Options: + - noopen + X-Frame-Options: + - sameorigin + X-Permitted-Cross-Domain-Policies: + - none + X-XSS-Protection: + - 1; mode=block + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json;version=2 + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - apypie (https://github.com/Apipie/apypie) + method: GET + uri: https://foreman.example.org/katello/api/organizations?search=name%3D%22Test+Organization%22&per_page=4294967296 + response: + body: + string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": + 4294967296,\n \"search\": \"name=\\\"Test Organization\\\"\",\n \"sort\": + {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\":\"Test_Organization\",\"created_at\":\"2024-07-24 + 14:58:36 UTC\",\"updated_at\":\"2024-07-24 14:58:38 UTC\",\"id\":8,\"name\":\"Test + Organization\",\"title\":\"Test Organization\",\"description\":\"A test organization\"}]\n}\n" + headers: + Cache-Control: + - max-age=0, private, must-revalidate + Connection: + - Keep-Alive + Content-Length: + - '388' + Content-Security-Policy: + - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: + - application/json; charset=utf-8 + Foreman_api_version: + - '2' + Foreman_current_location: + - ; ANY + Foreman_current_organization: + - ; ANY + Foreman_version: + - 3.12.0-develop + Keep-Alive: + - timeout=15, max=99 + Strict-Transport-Security: + - max-age=631139040; includeSubdomains + X-Content-Type-Options: + - nosniff + X-Download-Options: + - noopen + X-Frame-Options: + - sameorigin + X-Permitted-Cross-Domain-Policies: + - none + X-XSS-Protection: + - 1; mode=block + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json;version=2 + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - apypie (https://github.com/Apipie/apypie) + method: GET + uri: https://foreman.example.org/katello/api/organizations/8/content_views?search=name%3D%22Test+Content+View%22&per_page=4294967296 + response: + body: + string: '{"total":2,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test + Content View\"","sort":{"by":"name","order":"asc"},"results":[{"composite":false,"component_ids":[],"duplicate_repositories_to_publish":[],"default":false,"version_count":0,"latest_version":null,"latest_version_id":null,"auto_publish":false,"solve_dependencies":false,"import_only":false,"generated_for":"none","related_cv_count":0,"related_composite_cvs":[],"filtered":true,"repository_ids":[16],"id":13,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":8,"organization":{"name":"Test + Organization","label":"Test_Organization","id":8},"created_at":"2024-07-24 + 14:58:54 UTC","updated_at":"2024-07-24 14:58:54 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":16,"name":"Test + Debian Repository","label":"Test_Debian_Repository","content_type":"deb"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]}]} + + ' + headers: + Cache-Control: + - max-age=0, private, must-revalidate + Connection: + - Keep-Alive + Content-Length: + - '1081' + Content-Security-Policy: + - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: + - application/json; charset=utf-8 + Foreman_api_version: + - '2' + Foreman_current_location: + - ; ANY + Foreman_current_organization: + - 8; Test Organization + Foreman_version: + - 3.12.0-develop + Keep-Alive: + - timeout=15, max=98 + Strict-Transport-Security: + - max-age=631139040; includeSubdomains + X-Content-Type-Options: + - nosniff + X-Download-Options: + - noopen + X-Frame-Options: + - sameorigin + X-Permitted-Cross-Domain-Policies: + - none + X-XSS-Protection: + - 1; mode=block + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json;version=2 + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - apypie (https://github.com/Apipie/apypie) + method: GET + uri: https://foreman.example.org/katello/api/content_views/13/filters?search=name%3D%22Test+Content+View+Filter+-+deb%22&per_page=4294967296 + response: + body: + string: '{"total":10,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test + Content View Filter - deb\"","sort":{"by":"name","order":"asc"},"results":[{"inclusion":false,"id":70,"name":"Test + Content View Filter - deb","description":null,"created_at":"2024-07-24 14:58:59 + UTC","updated_at":"2024-07-24 14:58:59 UTC","content_view":{"composite":false,"component_ids":[],"duplicate_repositories_to_publish":[],"default":false,"version_count":0,"latest_version":null,"latest_version_id":null,"auto_publish":false,"solve_dependencies":false,"import_only":false,"generated_for":"none","related_cv_count":0,"related_composite_cvs":[],"filtered":true,"repository_ids":[16],"id":13,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":8,"organization":{"name":"Test + Organization","label":"Test_Organization","id":8},"created_at":"2024-07-24 + 14:58:54 UTC","updated_at":"2024-07-24 14:58:54 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":16,"name":"Test + Debian Repository","label":"Test_Debian_Repository","content_type":"deb"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]},"repositories":[],"type":"deb","rules":[{"content_view_filter_id":70,"id":11,"name":"bear","created_at":"2024-07-24 + 15:00:12 UTC","updated_at":"2024-07-24 15:00:12 UTC"},{"content_view_filter_id":70,"id":12,"name":"camel","created_at":"2024-07-24 + 15:00:13 UTC","updated_at":"2024-07-24 15:00:13 UTC"}]}]} + + ' + headers: + Cache-Control: + - max-age=0, private, must-revalidate + Connection: + - Keep-Alive + Content-Length: + - '1577' + Content-Security-Policy: + - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: + - application/json; charset=utf-8 + Foreman_api_version: + - '2' + Foreman_current_location: + - ; ANY + Foreman_current_organization: + - ; ANY + Foreman_version: + - 3.12.0-develop + Keep-Alive: + - timeout=15, max=97 + Strict-Transport-Security: + - max-age=631139040; includeSubdomains + X-Content-Type-Options: + - nosniff + X-Download-Options: + - noopen + X-Frame-Options: + - sameorigin + X-Permitted-Cross-Domain-Policies: + - none + X-XSS-Protection: + - 1; mode=block + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json;version=2 + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - apypie (https://github.com/Apipie/apypie) + method: GET + uri: https://foreman.example.org/katello/api/content_view_filters/70/rules?search=name%3D%22bear%22&per_page=4294967296 + response: + body: + string: '{"total":2,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"bear\"","sort":{"by":"id","order":"asc"},"results":[{"content_view_filter_id":70,"id":11,"name":"bear","created_at":"2024-07-24 + 15:00:12 UTC","updated_at":"2024-07-24 15:00:12 UTC"}]} + + ' + headers: + Cache-Control: + - max-age=0, private, must-revalidate + Connection: + - Keep-Alive + Content-Length: + - '286' + Content-Security-Policy: + - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: + - application/json; charset=utf-8 + Foreman_api_version: + - '2' + Foreman_current_location: + - ; ANY + Foreman_current_organization: + - ; ANY + Foreman_version: + - 3.12.0-develop + Keep-Alive: + - timeout=15, max=96 + Strict-Transport-Security: + - max-age=631139040; includeSubdomains + X-Content-Type-Options: + - nosniff + X-Download-Options: + - noopen + X-Frame-Options: + - sameorigin + X-Permitted-Cross-Domain-Policies: + - none + X-XSS-Protection: + - 1; mode=block + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json;version=2 + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - apypie (https://github.com/Apipie/apypie) + method: GET + uri: https://foreman.example.org/katello/api/content_view_filters/70/rules/11 + response: + body: + string: ' {"content_view_filter_id":70,"id":11,"name":"bear","created_at":"2024-07-24 + 15:00:12 UTC","updated_at":"2024-07-24 15:00:12 UTC"} + + ' + headers: + Cache-Control: + - max-age=0, private, must-revalidate + Connection: + - Keep-Alive + Content-Length: + - '132' + Content-Security-Policy: + - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: + - application/json; charset=utf-8 + Foreman_api_version: + - '2' + Foreman_current_location: + - ; ANY + Foreman_current_organization: + - ; ANY + Foreman_version: + - 3.12.0-develop + Keep-Alive: + - timeout=15, max=95 + Strict-Transport-Security: + - max-age=631139040; includeSubdomains + X-Content-Type-Options: + - nosniff + X-Download-Options: + - noopen + X-Frame-Options: + - sameorigin + X-Permitted-Cross-Domain-Policies: + - none + X-XSS-Protection: + - 1; mode=block + status: + code: 200 + message: OK +version: 1 diff --git a/tests/test_playbooks/fixtures/content_view_filter_rule_deb-3.yml b/tests/test_playbooks/fixtures/content_view_filter_rule_deb-3.yml new file mode 100644 index 00000000..bd675923 --- /dev/null +++ b/tests/test_playbooks/fixtures/content_view_filter_rule_deb-3.yml @@ -0,0 +1,356 @@ +interactions: +- request: + body: null + headers: + Accept: + - application/json;version=2 + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - apypie (https://github.com/Apipie/apypie) + method: GET + uri: https://foreman.example.org/api/status + response: + body: + string: '{"result":"ok","status":200,"version":"3.12.0-develop","api_version":2}' + headers: + Cache-Control: + - max-age=0, private, must-revalidate + Connection: + - Keep-Alive + Content-Length: + - '71' + Content-Security-Policy: + - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: + - application/json; charset=utf-8 + Foreman_api_version: + - '2' + Foreman_current_location: + - ; ANY + Foreman_current_organization: + - ; ANY + Foreman_version: + - 3.12.0-develop + Keep-Alive: + - timeout=15, max=100 + Strict-Transport-Security: + - max-age=631139040; includeSubdomains + X-Content-Type-Options: + - nosniff + X-Download-Options: + - noopen + X-Frame-Options: + - sameorigin + X-Permitted-Cross-Domain-Policies: + - none + X-XSS-Protection: + - 1; mode=block + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json;version=2 + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - apypie (https://github.com/Apipie/apypie) + method: GET + uri: https://foreman.example.org/katello/api/organizations?search=name%3D%22Test+Organization%22&per_page=4294967296 + response: + body: + string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": + 4294967296,\n \"search\": \"name=\\\"Test Organization\\\"\",\n \"sort\": + {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\":\"Test_Organization\",\"created_at\":\"2024-07-24 + 14:58:36 UTC\",\"updated_at\":\"2024-07-24 14:58:38 UTC\",\"id\":8,\"name\":\"Test + Organization\",\"title\":\"Test Organization\",\"description\":\"A test organization\"}]\n}\n" + headers: + Cache-Control: + - max-age=0, private, must-revalidate + Connection: + - Keep-Alive + Content-Length: + - '388' + Content-Security-Policy: + - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: + - application/json; charset=utf-8 + Foreman_api_version: + - '2' + Foreman_current_location: + - ; ANY + Foreman_current_organization: + - ; ANY + Foreman_version: + - 3.12.0-develop + Keep-Alive: + - timeout=15, max=99 + Strict-Transport-Security: + - max-age=631139040; includeSubdomains + X-Content-Type-Options: + - nosniff + X-Download-Options: + - noopen + X-Frame-Options: + - sameorigin + X-Permitted-Cross-Domain-Policies: + - none + X-XSS-Protection: + - 1; mode=block + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json;version=2 + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - apypie (https://github.com/Apipie/apypie) + method: GET + uri: https://foreman.example.org/katello/api/organizations/8/content_views?search=name%3D%22Test+Content+View%22&per_page=4294967296 + response: + body: + string: '{"total":2,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test + Content View\"","sort":{"by":"name","order":"asc"},"results":[{"composite":false,"component_ids":[],"duplicate_repositories_to_publish":[],"default":false,"version_count":0,"latest_version":null,"latest_version_id":null,"auto_publish":false,"solve_dependencies":false,"import_only":false,"generated_for":"none","related_cv_count":0,"related_composite_cvs":[],"filtered":true,"repository_ids":[16],"id":13,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":8,"organization":{"name":"Test + Organization","label":"Test_Organization","id":8},"created_at":"2024-07-24 + 14:58:54 UTC","updated_at":"2024-07-24 14:58:54 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":16,"name":"Test + Debian Repository","label":"Test_Debian_Repository","content_type":"deb"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]}]} + + ' + headers: + Cache-Control: + - max-age=0, private, must-revalidate + Connection: + - Keep-Alive + Content-Length: + - '1081' + Content-Security-Policy: + - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: + - application/json; charset=utf-8 + Foreman_api_version: + - '2' + Foreman_current_location: + - ; ANY + Foreman_current_organization: + - 8; Test Organization + Foreman_version: + - 3.12.0-develop + Keep-Alive: + - timeout=15, max=98 + Strict-Transport-Security: + - max-age=631139040; includeSubdomains + X-Content-Type-Options: + - nosniff + X-Download-Options: + - noopen + X-Frame-Options: + - sameorigin + X-Permitted-Cross-Domain-Policies: + - none + X-XSS-Protection: + - 1; mode=block + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json;version=2 + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - apypie (https://github.com/Apipie/apypie) + method: GET + uri: https://foreman.example.org/katello/api/content_views/13/filters?search=name%3D%22Test+Content+View+Filter+-+deb%22&per_page=4294967296 + response: + body: + string: '{"total":10,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test + Content View Filter - deb\"","sort":{"by":"name","order":"asc"},"results":[{"inclusion":false,"id":70,"name":"Test + Content View Filter - deb","description":null,"created_at":"2024-07-24 14:58:59 + UTC","updated_at":"2024-07-24 14:58:59 UTC","content_view":{"composite":false,"component_ids":[],"duplicate_repositories_to_publish":[],"default":false,"version_count":0,"latest_version":null,"latest_version_id":null,"auto_publish":false,"solve_dependencies":false,"import_only":false,"generated_for":"none","related_cv_count":0,"related_composite_cvs":[],"filtered":true,"repository_ids":[16],"id":13,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":8,"organization":{"name":"Test + Organization","label":"Test_Organization","id":8},"created_at":"2024-07-24 + 14:58:54 UTC","updated_at":"2024-07-24 14:58:54 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":16,"name":"Test + Debian Repository","label":"Test_Debian_Repository","content_type":"deb"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]},"repositories":[],"type":"deb","rules":[{"content_view_filter_id":70,"id":11,"name":"bear","created_at":"2024-07-24 + 15:00:12 UTC","updated_at":"2024-07-24 15:00:12 UTC"},{"content_view_filter_id":70,"id":12,"name":"camel","created_at":"2024-07-24 + 15:00:13 UTC","updated_at":"2024-07-24 15:00:13 UTC"}]}]} + + ' + headers: + Cache-Control: + - max-age=0, private, must-revalidate + Connection: + - Keep-Alive + Content-Length: + - '1577' + Content-Security-Policy: + - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: + - application/json; charset=utf-8 + Foreman_api_version: + - '2' + Foreman_current_location: + - ; ANY + Foreman_current_organization: + - ; ANY + Foreman_version: + - 3.12.0-develop + Keep-Alive: + - timeout=15, max=97 + Strict-Transport-Security: + - max-age=631139040; includeSubdomains + X-Content-Type-Options: + - nosniff + X-Download-Options: + - noopen + X-Frame-Options: + - sameorigin + X-Permitted-Cross-Domain-Policies: + - none + X-XSS-Protection: + - 1; mode=block + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json;version=2 + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - apypie (https://github.com/Apipie/apypie) + method: GET + uri: https://foreman.example.org/katello/api/content_view_filters/70/rules?search=name%3D%22bear%22&per_page=4294967296 + response: + body: + string: '{"total":2,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"bear\"","sort":{"by":"id","order":"asc"},"results":[{"content_view_filter_id":70,"id":11,"name":"bear","created_at":"2024-07-24 + 15:00:12 UTC","updated_at":"2024-07-24 15:00:12 UTC"}]} + + ' + headers: + Cache-Control: + - max-age=0, private, must-revalidate + Connection: + - Keep-Alive + Content-Length: + - '286' + Content-Security-Policy: + - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: + - application/json; charset=utf-8 + Foreman_api_version: + - '2' + Foreman_current_location: + - ; ANY + Foreman_current_organization: + - ; ANY + Foreman_version: + - 3.12.0-develop + Keep-Alive: + - timeout=15, max=96 + Strict-Transport-Security: + - max-age=631139040; includeSubdomains + X-Content-Type-Options: + - nosniff + X-Download-Options: + - noopen + X-Frame-Options: + - sameorigin + X-Permitted-Cross-Domain-Policies: + - none + X-XSS-Protection: + - 1; mode=block + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json;version=2 + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '0' + User-Agent: + - apypie (https://github.com/Apipie/apypie) + method: DELETE + uri: https://foreman.example.org/katello/api/content_view_filters/70/rules/11 + response: + body: + string: ' {"content_view_filter_id":70,"id":11,"name":"bear","created_at":"2024-07-24 + 15:00:12 UTC","updated_at":"2024-07-24 15:00:12 UTC"} + + ' + headers: + Cache-Control: + - max-age=0, private, must-revalidate + Connection: + - Keep-Alive + Content-Length: + - '132' + Content-Security-Policy: + - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: + - application/json; charset=utf-8 + Foreman_api_version: + - '2' + Foreman_current_location: + - ; ANY + Foreman_current_organization: + - ; ANY + Foreman_version: + - 3.12.0-develop + Keep-Alive: + - timeout=15, max=95 + Strict-Transport-Security: + - max-age=631139040; includeSubdomains + X-Content-Type-Options: + - nosniff + X-Download-Options: + - noopen + X-Frame-Options: + - sameorigin + X-Permitted-Cross-Domain-Policies: + - none + X-XSS-Protection: + - 1; mode=block + status: + code: 200 + message: OK +version: 1 diff --git a/tests/test_playbooks/fixtures/content_view_filter_rule_deb-4.yml b/tests/test_playbooks/fixtures/content_view_filter_rule_deb-4.yml new file mode 100644 index 00000000..1509e933 --- /dev/null +++ b/tests/test_playbooks/fixtures/content_view_filter_rule_deb-4.yml @@ -0,0 +1,355 @@ +interactions: +- request: + body: null + headers: + Accept: + - application/json;version=2 + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - apypie (https://github.com/Apipie/apypie) + method: GET + uri: https://foreman.example.org/api/status + response: + body: + string: '{"result":"ok","status":200,"version":"3.12.0-develop","api_version":2}' + headers: + Cache-Control: + - max-age=0, private, must-revalidate + Connection: + - Keep-Alive + Content-Length: + - '71' + Content-Security-Policy: + - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: + - application/json; charset=utf-8 + Foreman_api_version: + - '2' + Foreman_current_location: + - ; ANY + Foreman_current_organization: + - ; ANY + Foreman_version: + - 3.12.0-develop + Keep-Alive: + - timeout=15, max=100 + Strict-Transport-Security: + - max-age=631139040; includeSubdomains + X-Content-Type-Options: + - nosniff + X-Download-Options: + - noopen + X-Frame-Options: + - sameorigin + X-Permitted-Cross-Domain-Policies: + - none + X-XSS-Protection: + - 1; mode=block + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json;version=2 + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - apypie (https://github.com/Apipie/apypie) + method: GET + uri: https://foreman.example.org/katello/api/organizations?search=name%3D%22Test+Organization%22&per_page=4294967296 + response: + body: + string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": + 4294967296,\n \"search\": \"name=\\\"Test Organization\\\"\",\n \"sort\": + {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\":\"Test_Organization\",\"created_at\":\"2024-07-24 + 14:58:36 UTC\",\"updated_at\":\"2024-07-24 14:58:38 UTC\",\"id\":8,\"name\":\"Test + Organization\",\"title\":\"Test Organization\",\"description\":\"A test organization\"}]\n}\n" + headers: + Cache-Control: + - max-age=0, private, must-revalidate + Connection: + - Keep-Alive + Content-Length: + - '388' + Content-Security-Policy: + - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: + - application/json; charset=utf-8 + Foreman_api_version: + - '2' + Foreman_current_location: + - ; ANY + Foreman_current_organization: + - ; ANY + Foreman_version: + - 3.12.0-develop + Keep-Alive: + - timeout=15, max=99 + Strict-Transport-Security: + - max-age=631139040; includeSubdomains + X-Content-Type-Options: + - nosniff + X-Download-Options: + - noopen + X-Frame-Options: + - sameorigin + X-Permitted-Cross-Domain-Policies: + - none + X-XSS-Protection: + - 1; mode=block + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json;version=2 + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - apypie (https://github.com/Apipie/apypie) + method: GET + uri: https://foreman.example.org/katello/api/organizations/8/content_views?search=name%3D%22Test+Content+View%22&per_page=4294967296 + response: + body: + string: '{"total":2,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test + Content View\"","sort":{"by":"name","order":"asc"},"results":[{"composite":false,"component_ids":[],"duplicate_repositories_to_publish":[],"default":false,"version_count":0,"latest_version":null,"latest_version_id":null,"auto_publish":false,"solve_dependencies":false,"import_only":false,"generated_for":"none","related_cv_count":0,"related_composite_cvs":[],"filtered":true,"repository_ids":[16],"id":13,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":8,"organization":{"name":"Test + Organization","label":"Test_Organization","id":8},"created_at":"2024-07-24 + 14:58:54 UTC","updated_at":"2024-07-24 14:58:54 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":16,"name":"Test + Debian Repository","label":"Test_Debian_Repository","content_type":"deb"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]}]} + + ' + headers: + Cache-Control: + - max-age=0, private, must-revalidate + Connection: + - Keep-Alive + Content-Length: + - '1081' + Content-Security-Policy: + - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: + - application/json; charset=utf-8 + Foreman_api_version: + - '2' + Foreman_current_location: + - ; ANY + Foreman_current_organization: + - 8; Test Organization + Foreman_version: + - 3.12.0-develop + Keep-Alive: + - timeout=15, max=98 + Strict-Transport-Security: + - max-age=631139040; includeSubdomains + X-Content-Type-Options: + - nosniff + X-Download-Options: + - noopen + X-Frame-Options: + - sameorigin + X-Permitted-Cross-Domain-Policies: + - none + X-XSS-Protection: + - 1; mode=block + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json;version=2 + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - apypie (https://github.com/Apipie/apypie) + method: GET + uri: https://foreman.example.org/katello/api/content_views/13/filters?search=name%3D%22Test+Content+View+Filter+-+deb%22&per_page=4294967296 + response: + body: + string: '{"total":10,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test + Content View Filter - deb\"","sort":{"by":"name","order":"asc"},"results":[{"inclusion":false,"id":70,"name":"Test + Content View Filter - deb","description":null,"created_at":"2024-07-24 14:58:59 + UTC","updated_at":"2024-07-24 14:58:59 UTC","content_view":{"composite":false,"component_ids":[],"duplicate_repositories_to_publish":[],"default":false,"version_count":0,"latest_version":null,"latest_version_id":null,"auto_publish":false,"solve_dependencies":false,"import_only":false,"generated_for":"none","related_cv_count":0,"related_composite_cvs":[],"filtered":true,"repository_ids":[16],"id":13,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":8,"organization":{"name":"Test + Organization","label":"Test_Organization","id":8},"created_at":"2024-07-24 + 14:58:54 UTC","updated_at":"2024-07-24 14:58:54 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":16,"name":"Test + Debian Repository","label":"Test_Debian_Repository","content_type":"deb"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]},"repositories":[],"type":"deb","rules":[{"content_view_filter_id":70,"id":12,"name":"camel","created_at":"2024-07-24 + 15:00:13 UTC","updated_at":"2024-07-24 15:00:13 UTC"}]}]} + + ' + headers: + Cache-Control: + - max-age=0, private, must-revalidate + Connection: + - Keep-Alive + Content-Length: + - '1447' + Content-Security-Policy: + - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: + - application/json; charset=utf-8 + Foreman_api_version: + - '2' + Foreman_current_location: + - ; ANY + Foreman_current_organization: + - ; ANY + Foreman_version: + - 3.12.0-develop + Keep-Alive: + - timeout=15, max=97 + Strict-Transport-Security: + - max-age=631139040; includeSubdomains + X-Content-Type-Options: + - nosniff + X-Download-Options: + - noopen + X-Frame-Options: + - sameorigin + X-Permitted-Cross-Domain-Policies: + - none + X-XSS-Protection: + - 1; mode=block + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json;version=2 + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - apypie (https://github.com/Apipie/apypie) + method: GET + uri: https://foreman.example.org/katello/api/content_view_filters/70/rules?search=name%3D%22camel%22&per_page=4294967296 + response: + body: + string: '{"total":1,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"camel\"","sort":{"by":"id","order":"asc"},"results":[{"content_view_filter_id":70,"id":12,"name":"camel","created_at":"2024-07-24 + 15:00:13 UTC","updated_at":"2024-07-24 15:00:13 UTC"}]} + + ' + headers: + Cache-Control: + - max-age=0, private, must-revalidate + Connection: + - Keep-Alive + Content-Length: + - '288' + Content-Security-Policy: + - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: + - application/json; charset=utf-8 + Foreman_api_version: + - '2' + Foreman_current_location: + - ; ANY + Foreman_current_organization: + - ; ANY + Foreman_version: + - 3.12.0-develop + Keep-Alive: + - timeout=15, max=96 + Strict-Transport-Security: + - max-age=631139040; includeSubdomains + X-Content-Type-Options: + - nosniff + X-Download-Options: + - noopen + X-Frame-Options: + - sameorigin + X-Permitted-Cross-Domain-Policies: + - none + X-XSS-Protection: + - 1; mode=block + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json;version=2 + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '0' + User-Agent: + - apypie (https://github.com/Apipie/apypie) + method: DELETE + uri: https://foreman.example.org/katello/api/content_view_filters/70/rules/12 + response: + body: + string: ' {"content_view_filter_id":70,"id":12,"name":"camel","created_at":"2024-07-24 + 15:00:13 UTC","updated_at":"2024-07-24 15:00:13 UTC"} + + ' + headers: + Cache-Control: + - max-age=0, private, must-revalidate + Connection: + - Keep-Alive + Content-Length: + - '133' + Content-Security-Policy: + - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: + - application/json; charset=utf-8 + Foreman_api_version: + - '2' + Foreman_current_location: + - ; ANY + Foreman_current_organization: + - ; ANY + Foreman_version: + - 3.12.0-develop + Keep-Alive: + - timeout=15, max=95 + Strict-Transport-Security: + - max-age=631139040; includeSubdomains + X-Content-Type-Options: + - nosniff + X-Download-Options: + - noopen + X-Frame-Options: + - sameorigin + X-Permitted-Cross-Domain-Policies: + - none + X-XSS-Protection: + - 1; mode=block + status: + code: 200 + message: OK +version: 1 From b644f42d0677c75cad824197ee975154063a1745 Mon Sep 17 00:00:00 2001 From: Evgeni Golov Date: Thu, 25 Jul 2024 09:18:07 +0200 Subject: [PATCH 17/36] set repos in cv_filter test to on_demand --- tests/test_playbooks/content_view_filter.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/test_playbooks/content_view_filter.yml b/tests/test_playbooks/content_view_filter.yml index 5a5578b9..d13538f4 100644 --- a/tests/test_playbooks/content_view_filter.yml +++ b/tests/test_playbooks/content_view_filter.yml @@ -20,12 +20,14 @@ ansible.builtin.include_tasks: tasks/repository.yml vars: repository_state: present + repository_download_policy: "on_demand" - name: "Create Addititional Repository" ansible.builtin.include_tasks: tasks/repository.yml vars: repository_state: present repository_url: "https://repos.fedorapeople.org/pulp/pulp/demo_repos/zoo/" + repository_download_policy: "on_demand" - name: "Create Container repository" ansible.builtin.include_tasks: tasks/repository.yml @@ -35,6 +37,7 @@ repository_content_type: docker repository_url: https://quay.io repository_docker_upstream_name: quay/busybox + repository_download_policy: "on_demand" - name: "Create Deb Repository" ansible.builtin.include_tasks: tasks/repository.yml @@ -46,6 +49,7 @@ repository_deb_releases: buster repository_deb_components: contrib repository_deb_architectures: amd64 + repository_download_policy: "on_demand" - name: "Sync content" ansible.builtin.include_tasks: tasks/katello_sync.yml From 0e71b06be3f639ac4e5409ac81aca7699b005811 Mon Sep 17 00:00:00 2001 From: Evgeni Golov Date: Thu, 25 Jul 2024 09:18:19 +0200 Subject: [PATCH 18/36] don't assert sync times in cv_filter test --- tests/test_playbooks/content_view_filter.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/test_playbooks/content_view_filter.yml b/tests/test_playbooks/content_view_filter.yml index d13538f4..702409c8 100644 --- a/tests/test_playbooks/content_view_filter.yml +++ b/tests/test_playbooks/content_view_filter.yml @@ -53,16 +53,20 @@ - name: "Sync content" ansible.builtin.include_tasks: tasks/katello_sync.yml + vars: + expected_time: false - name: "Sync content" ansible.builtin.include_tasks: tasks/katello_sync.yml vars: repository: Test Docker Repository + expected_time: false - name: "Sync content" ansible.builtin.include_tasks: tasks/katello_sync.yml vars: repository: Test Debian Repository + expected_time: false - name: "Create Content View" ansible.builtin.include_tasks: tasks/content_view.yml From 78b4440c43a2ba4e67ba1873b51d1b06000cdf19 Mon Sep 17 00:00:00 2001 From: Evgeni Golov Date: Thu, 25 Jul 2024 09:23:54 +0200 Subject: [PATCH 19/36] Split out Debian tests for content_view_filter --- .../apidoc/content_view_filter_deb.json | 1 + tests/test_playbooks/content_view_filter.yml | 37 -------- .../content_view_filter_deb.yml | 92 +++++++++++++++++++ .../tasks/content_view_filter_deb.yml | 2 +- 4 files changed, 94 insertions(+), 38 deletions(-) create mode 120000 tests/fixtures/apidoc/content_view_filter_deb.json create mode 100644 tests/test_playbooks/content_view_filter_deb.yml diff --git a/tests/fixtures/apidoc/content_view_filter_deb.json b/tests/fixtures/apidoc/content_view_filter_deb.json new file mode 120000 index 00000000..8e89899a --- /dev/null +++ b/tests/fixtures/apidoc/content_view_filter_deb.json @@ -0,0 +1 @@ +katello.json \ No newline at end of file diff --git a/tests/test_playbooks/content_view_filter.yml b/tests/test_playbooks/content_view_filter.yml index 702409c8..ca5e2f88 100644 --- a/tests/test_playbooks/content_view_filter.yml +++ b/tests/test_playbooks/content_view_filter.yml @@ -39,18 +39,6 @@ repository_docker_upstream_name: quay/busybox repository_download_policy: "on_demand" - - name: "Create Deb Repository" - ansible.builtin.include_tasks: tasks/repository.yml - vars: - repository_state: present - repository_name: Test Debian Repository - repository_content_type: deb - repository_url: https://ftp.debian.org/debian - repository_deb_releases: buster - repository_deb_components: contrib - repository_deb_architectures: amd64 - repository_download_policy: "on_demand" - - name: "Sync content" ansible.builtin.include_tasks: tasks/katello_sync.yml vars: @@ -62,12 +50,6 @@ repository: Test Docker Repository expected_time: false - - name: "Sync content" - ansible.builtin.include_tasks: tasks/katello_sync.yml - vars: - repository: Test Debian Repository - expected_time: false - - name: "Create Content View" ansible.builtin.include_tasks: tasks/content_view.yml vars: @@ -193,25 +175,6 @@ filter_state: absent expected_change: true - - name: Test Content View Filter deb - block: - - include_tasks: tasks/content_view_filter_deb.yml - vars: - expected_change: true - - include_tasks: tasks/content_view_filter_deb.yml - vars: - expected_change: false - - - include_tasks: tasks/content_view_filter_deb.yml - vars: - inclusion: true - expected_change: true - - include_tasks: tasks/content_view_filter_deb.yml - vars: - filter_state: absent - rule_state: absent - expected_change: true - - hosts: localhost collections: - theforeman.foreman diff --git a/tests/test_playbooks/content_view_filter_deb.yml b/tests/test_playbooks/content_view_filter_deb.yml new file mode 100644 index 00000000..2a9223e9 --- /dev/null +++ b/tests/test_playbooks/content_view_filter_deb.yml @@ -0,0 +1,92 @@ +--- +- hosts: localhost + collections: + - theforeman.foreman + gather_facts: false + vars_files: + - vars/server.yml + tasks: + - name: "Create Test Organization" + ansible.builtin.include_tasks: tasks/organization.yml + vars: + organization_state: present + + - name: "Create Test Product" + ansible.builtin.include_tasks: tasks/product.yml + vars: + product_state: present + + - name: "Create Deb Repository" + ansible.builtin.include_tasks: tasks/repository.yml + vars: + repository_state: present + repository_name: Test Debian Repository + repository_content_type: deb + repository_url: https://ftp.debian.org/debian + repository_deb_releases: buster + repository_deb_components: contrib + repository_deb_architectures: amd64 + repository_download_policy: "on_demand" + + - name: "Sync content" + ansible.builtin.include_tasks: tasks/katello_sync.yml + vars: + repository: Test Debian Repository + expected_time: false + + - name: "Create Content View" + ansible.builtin.include_tasks: tasks/content_view.yml + vars: + repositories: + - name: "Test Debian Repository" + product: "Test Product" + + - name: "Make sure Content View Filter Rule for deb is absent" + ansible.builtin.include_tasks: tasks/content_view_filter_deb.yml + vars: + filter_state: absent + +- hosts: tests + collections: + - theforeman.foreman + gather_facts: false + vars_files: + - vars/server.yml + tasks: + - name: Test Content View Filter deb + block: + - include_tasks: tasks/content_view_filter_deb.yml + vars: + expected_change: true + - include_tasks: tasks/content_view_filter_deb.yml + vars: + expected_change: false + + - include_tasks: tasks/content_view_filter_deb.yml + vars: + inclusion: true + expected_change: true + - include_tasks: tasks/content_view_filter_deb.yml + vars: + filter_state: absent + rule_state: absent + expected_change: true + +- hosts: localhost + collections: + - theforeman.foreman + gather_facts: false + vars_files: + - vars/server.yml + tasks: + - include_tasks: tasks/repository.yml + vars: + repository_name: Test Debian Repository + repository_state: absent + - include_tasks: tasks/product.yml + vars: + product_state: absent + - include_tasks: tasks/organization.yml + vars: + organization_state: absent +... diff --git a/tests/test_playbooks/tasks/content_view_filter_deb.yml b/tests/test_playbooks/tasks/content_view_filter_deb.yml index 07098ab8..f4c87480 100644 --- a/tests/test_playbooks/tasks/content_view_filter_deb.yml +++ b/tests/test_playbooks/tasks/content_view_filter_deb.yml @@ -5,7 +5,7 @@ content_view_name: "Test Content View" organization_name: "Test Organization" repositories: - - name: "Test Repository" + - name: "Test Debian Repository" product: "Test Product" filter_state: present content_view_filter: From b7438a90e24cf0c53d7f092ce23ffde4a6e67d44 Mon Sep 17 00:00:00 2001 From: Evgeni Golov Date: Thu, 25 Jul 2024 09:25:49 +0200 Subject: [PATCH 20/36] re-record content_view_filter --- .../fixtures/content_view_filter-0.yml | 106 ++-- .../fixtures/content_view_filter-1.yml | 136 ++--- .../fixtures/content_view_filter-10.yml | 130 ++--- .../fixtures/content_view_filter-11.yml | 112 ++-- .../fixtures/content_view_filter-12.yml | 146 ++--- .../fixtures/content_view_filter-13.yml | 201 +++---- .../fixtures/content_view_filter-14.yml | 54 +- .../fixtures/content_view_filter-15.yml | 68 +-- .../fixtures/content_view_filter-16.yml | 133 ++--- .../fixtures/content_view_filter-17.yml | 52 +- .../fixtures/content_view_filter-18.yml | 66 +-- .../fixtures/content_view_filter-19.yml | 130 ++--- .../fixtures/content_view_filter-2.yml | 170 +++--- .../fixtures/content_view_filter-20.yml | 54 +- .../fixtures/content_view_filter-21.yml | 68 +-- .../fixtures/content_view_filter-22.yml | 133 ++--- .../fixtures/content_view_filter-23.yml | 430 --------------- .../fixtures/content_view_filter-24.yml | 441 --------------- .../fixtures/content_view_filter-25.yml | 515 ------------------ .../fixtures/content_view_filter-26.yml | 505 ----------------- .../fixtures/content_view_filter-3.yml | 136 ++--- .../fixtures/content_view_filter-4.yml | 170 +++--- .../fixtures/content_view_filter-5.yml | 136 ++--- .../fixtures/content_view_filter-6.yml | 170 +++--- .../fixtures/content_view_filter-7.yml | 199 +++---- .../fixtures/content_view_filter-8.yml | 52 +- .../fixtures/content_view_filter-9.yml | 66 +-- 27 files changed, 1148 insertions(+), 3431 deletions(-) delete mode 100644 tests/test_playbooks/fixtures/content_view_filter-23.yml delete mode 100644 tests/test_playbooks/fixtures/content_view_filter-24.yml delete mode 100644 tests/test_playbooks/fixtures/content_view_filter-25.yml delete mode 100644 tests/test_playbooks/fixtures/content_view_filter-26.yml diff --git a/tests/test_playbooks/fixtures/content_view_filter-0.yml b/tests/test_playbooks/fixtures/content_view_filter-0.yml index a203e4fd..6f90c5cc 100644 --- a/tests/test_playbooks/fixtures/content_view_filter-0.yml +++ b/tests/test_playbooks/fixtures/content_view_filter-0.yml @@ -14,14 +14,14 @@ interactions: uri: https://foreman.example.org/api/status response: body: - string: '{"result":"ok","status":200,"version":"3.7.1","api_version":2}' + string: '{"result":"ok","status":200,"version":"3.12.0-develop","api_version":2}' headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive Content-Length: - - '62' + - '71' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -35,7 +35,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.1 + - 3.12.0-develop Keep-Alive: - timeout=15, max=100 Strict-Transport-Security: @@ -70,8 +70,8 @@ interactions: body: string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": 4294967296,\n \"search\": \"name=\\\"Test Organization\\\"\",\n \"sort\": - {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\":\"Test_Organization\",\"created_at\":\"2023-11-15 - 09:54:22 UTC\",\"updated_at\":\"2023-11-15 09:54:23 UTC\",\"id\":5,\"name\":\"Test + {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\":\"Test_Organization\",\"created_at\":\"2024-07-25 + 07:24:10 UTC\",\"updated_at\":\"2024-07-25 07:24:12 UTC\",\"id\":10,\"name\":\"Test Organization\",\"title\":\"Test Organization\",\"description\":\"A test organization\"}]\n}\n" headers: Cache-Control: @@ -79,7 +79,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '388' + - '389' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -93,7 +93,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.1 + - 3.12.0-develop Keep-Alive: - timeout=15, max=99 Strict-Transport-Security: @@ -123,14 +123,14 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/organizations/5/content_views?search=name%3D%22Test+Content+View%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/organizations/10/content_views?search=name%3D%22Test+Content+View%22&per_page=4294967296 response: body: string: '{"total":2,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Content View\"","sort":{"by":"name","order":"asc"},"results":[{"composite":false,"component_ids":[],"default":false,"version_count":0,"latest_version":null,"latest_version_id":null,"auto_publish":false,"solve_dependencies":false,"import_only":false,"generated_for":"none","related_cv_count":0,"related_composite_cvs":[],"needs_publish":true,"filtered":false,"repository_ids":[18],"id":10,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":5,"organization":{"name":"Test - Organization","label":"Test_Organization","id":5},"created_at":"2023-11-15 - 09:55:08 UTC","updated_at":"2023-11-15 09:55:08 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":18,"name":"Test + Content View\"","sort":{"by":"name","order":"asc"},"results":[{"composite":false,"component_ids":[],"duplicate_repositories_to_publish":[],"default":false,"version_count":0,"latest_version":null,"latest_version_id":null,"auto_publish":false,"solve_dependencies":false,"import_only":false,"generated_for":"none","related_cv_count":0,"related_composite_cvs":[],"filtered":false,"repository_ids":[20],"id":17,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":10,"organization":{"name":"Test + Organization","label":"Test_Organization","id":10},"created_at":"2024-07-25 + 07:24:40 UTC","updated_at":"2024-07-25 07:24:40 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":20,"name":"Test Repository","label":"Test_Repository","content_type":"yum"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]}]} ' @@ -140,7 +140,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '1050' + - '1070' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -152,9 +152,9 @@ interactions: Foreman_current_location: - ; ANY Foreman_current_organization: - - 5; Test Organization + - 10; Test Organization Foreman_version: - - 3.7.1 + - 3.12.0-develop Keep-Alive: - timeout=15, max=98 Strict-Transport-Security: @@ -184,14 +184,14 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/organizations/5/products?search=name%3D%22Test+Product%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/organizations/10/products?search=name%3D%22Test+Product%22&per_page=4294967296 response: body: string: '{"total":1,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Product\"","sort":{"by":"name","order":"asc"},"results":[{"id":10,"cp_id":"347380074197","name":"Test - Product","label":"Test_Product","description":"A happy little test product","provider_id":7,"sync_plan_id":null,"sync_summary":{"success":3},"gpg_key_id":null,"ssl_ca_cert_id":null,"ssl_client_cert_id":null,"ssl_client_key_id":null,"sync_state":"Syncing - Complete.","last_sync":"2023-11-15 09:54:59 UTC","last_sync_words":"less than - a minute","organization_id":5,"organization":{"name":"Test Organization","label":"Test_Organization","id":5},"sync_plan":null,"repository_count":3}]} + Product\"","sort":{"by":"name","order":"asc"},"results":[{"id":8,"cp_id":"527370220153","name":"Test + Product","label":"Test_Product","description":"A happy little test product","provider_id":17,"sync_plan_id":null,"sync_summary":{"success":2},"gpg_key_id":null,"ssl_ca_cert_id":null,"ssl_client_cert_id":null,"ssl_client_key_id":null,"sync_state":"Syncing + Complete.","last_sync":"2024-07-25 07:24:35 UTC","last_sync_words":"less than + a minute","organization_id":10,"organization":{"name":"Test Organization","label":"Test_Organization","id":10},"sync_plan":null,"repository_count":2}]} ' headers: @@ -200,7 +200,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '691' + - '693' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -212,9 +212,9 @@ interactions: Foreman_current_location: - ; ANY Foreman_current_organization: - - 5; Test Organization + - 10; Test Organization Foreman_version: - - 3.7.1 + - 3.12.0-develop Keep-Alive: - timeout=15, max=97 Strict-Transport-Security: @@ -244,17 +244,17 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/products/10/repositories?search=name%3D%22Test+Repository%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/products/8/repositories?search=name%3D%22Test+Repository%22&per_page=4294967296 response: body: - string: '{"total":3,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Repository\"","sort":{"by":"name","order":"asc"},"results":[{"backend_identifier":"29b3d88f-d4d9-4411-b1db-69f3a9c7df12","relative_path":"Test_Organization/Library/custom/Test_Product/Test_Repository","container_repository_name":null,"full_path":"https://centos8-stream-katello-4-9.tanso.example.com/pulp/content/Test_Organization/Library/custom/Test_Product/Test_Repository/","library_instance_id":null,"version_href":"/pulp/api/v3/repositories/rpm/rpm/00e6944a-841e-4bfe-9416-070861ef58fb/versions/1/","remote_href":"/pulp/api/v3/remotes/rpm/rpm/7e1e16ba-4432-4a52-988e-3da939154cbe/","publication_href":"/pulp/api/v3/publications/rpm/rpm/9695e87f-67d7-4765-9f98-e9a13987baef/","content_counts":{"rpm":32,"erratum":4,"package_group":2,"srpm":0,"module_stream":0},"mirroring_policy":"mirror_content_only","id":18,"name":"Test - Repository","label":"Test_Repository","description":null,"content_view_versions":[],"filters":[],"last_sync":{"id":"0c110a6a-16e1-487f-a587-0ab648d99eda","username":"admin","started_at":"2023-11-15 - 09:54:33 UTC","ended_at":"2023-11-15 09:54:46 UTC","state":"stopped","result":"success","progress":1.0},"content_view":{"id":9,"name":"Default - Organization View"},"content_view_version":{"id":8,"name":"Default Organization - View 1.0","content_view_id":9},"kt_environment":{"id":4,"name":"Library"},"content_type":"yum","url":"https://repos.fedorapeople.org/pulp/pulp/demo_repos/zoo/","arch":"noarch","os_versions":[],"content_id":"1700042066424","generic_remote_options":null,"major":null,"minor":null,"product":{"id":10,"cp_id":"347380074197","name":"Test + string: '{"total":2,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test + Repository\"","sort":{"by":"name","order":"asc"},"results":[{"backend_identifier":"c42d6bfb-3280-4660-9f2c-c76c786fa382","relative_path":"Test_Organization/Library/custom/Test_Product/Test_Repository","container_repository_name":"test_organization-test_product-test_repository","full_path":"https://centos8-stream-katello-nightly.tanso.example.com/pulp/content/Test_Organization/Library/custom/Test_Product/Test_Repository/","library_instance_id":null,"version_href":"/pulp/api/v3/repositories/rpm/rpm/0190e8c6-b36d-7e8e-80f0-a0b6470e39c9/versions/1/","remote_href":"/pulp/api/v3/remotes/rpm/rpm/0190e8c6-b9d8-7aa7-a1d8-f8f81d2e719a/","publication_href":"/pulp/api/v3/publications/rpm/rpm/0190e8c6-d0e6-72f6-84b8-8a095de927df/","content_counts":{"rpm":32,"erratum":4,"package_group":2,"srpm":0,"module_stream":0},"mirroring_policy":"mirror_content_only","id":20,"name":"Test + Repository","label":"Test_Repository","description":null,"content_view_versions":[],"filters":[],"last_sync":{"id":"13c7ce53-a0e4-4a3c-9a5e-27f4671e300d","username":"admin","started_at":"2024-07-25 + 07:24:18 UTC","ended_at":"2024-07-25 07:24:23 UTC","state":"stopped","result":"success","progress":1.0},"content_view":{"id":16,"name":"Default + Organization View"},"content_view_version":{"id":9,"name":"Default Organization + View 1.0","content_view_id":16},"kt_environment":{"id":9,"name":"Library"},"content_type":"yum","url":"https://repos.fedorapeople.org/pulp/pulp/demo_repos/zoo/","arch":"noarch","os_versions":[],"content_id":"1721892254686","generic_remote_options":null,"major":null,"minor":null,"product":{"id":8,"cp_id":"527370220153","name":"Test Product","orphaned":false,"redhat":false,"sync_plan":null},"content_label":"Test_Organization_Test_Product_Test_Repository","last_sync_words":"less - than a minute"}],"org_repository_count":3} + than a minute"}],"org_repository_count":2} ' headers: @@ -263,7 +263,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '1879' + - '1928' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -277,7 +277,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.1 + - 3.12.0-develop Keep-Alive: - timeout=15, max=96 Strict-Transport-Security: @@ -307,7 +307,7 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/content_views/10/filters?search=name%3D%22Test+Package+Content+View+Filter%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/content_views/17/filters?search=name%3D%22Test+Package+Content+View+Filter%22&per_page=4294967296 response: body: string: '{"total":0,"subtotal":0,"selectable":0,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test @@ -334,7 +334,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.1 + - 3.12.0-develop Keep-Alive: - timeout=15, max=95 Strict-Transport-Security: @@ -354,7 +354,7 @@ interactions: message: OK - request: body: '{"name": "Test Package Content View Filter", "type": "rpm", "inclusion": - false, "repository_ids": [18]}' + false, "repository_ids": [20]}' headers: Accept: - application/json;version=2 @@ -369,23 +369,23 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: POST - uri: https://foreman.example.org/katello/api/content_views/10/filters + uri: https://foreman.example.org/katello/api/content_views/17/filters response: body: - string: ' {"inclusion":false,"original_packages":false,"id":8,"name":"Test - Package Content View Filter","description":null,"created_at":"2023-11-15 09:55:10 - UTC","updated_at":"2023-11-15 09:55:10 UTC","content_view":{"composite":false,"component_ids":[],"default":false,"version_count":0,"latest_version":null,"latest_version_id":null,"auto_publish":false,"solve_dependencies":false,"import_only":false,"generated_for":"none","related_cv_count":0,"related_composite_cvs":[],"needs_publish":true,"filtered":true,"repository_ids":[18],"id":10,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":5,"organization":{"name":"Test - Organization","label":"Test_Organization","id":5},"created_at":"2023-11-15 - 09:55:08 UTC","updated_at":"2023-11-15 09:55:08 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":18,"name":"Test - Repository","label":"Test_Repository","content_type":"yum","product":{"id":10,"name":"Test - Product"},"content_counts":{"docker_manifest":0,"docker_tag":0,"rpm":32,"package":32,"package_group":2,"erratum":4,"module_stream":0}}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]},"repositories":[{"backend_identifier":"29b3d88f-d4d9-4411-b1db-69f3a9c7df12","relative_path":"Test_Organization/Library/custom/Test_Product/Test_Repository","container_repository_name":null,"full_path":"https://centos8-stream-katello-4-9.tanso.example.com/pulp/content/Test_Organization/Library/custom/Test_Product/Test_Repository/","library_instance_id":null,"version_href":"/pulp/api/v3/repositories/rpm/rpm/00e6944a-841e-4bfe-9416-070861ef58fb/versions/1/","remote_href":"/pulp/api/v3/remotes/rpm/rpm/7e1e16ba-4432-4a52-988e-3da939154cbe/","publication_href":"/pulp/api/v3/publications/rpm/rpm/9695e87f-67d7-4765-9f98-e9a13987baef/","content_counts":{"rpm":32,"erratum":4,"package_group":2,"srpm":0,"module_stream":0},"mirroring_policy":"mirror_content_only","id":18,"name":"Test - Repository","label":"Test_Repository","description":null,"content_view_versions":[],"filters":[{"content_view_filter_id":8,"content_view_filter_name":"Test - Package Content View Filter","content_view_id":10,"content_view_name":"Test - Content View","last_affected_repo":true}],"last_sync":{"id":"0c110a6a-16e1-487f-a587-0ab648d99eda","username":"admin","started_at":"2023-11-15 - 09:54:33 UTC","ended_at":"2023-11-15 09:54:46 UTC","state":"stopped","result":"success","progress":1.0},"content_view":{"id":9,"name":"Default - Organization View"},"content_view_version":{"id":8,"name":"Default Organization - View 1.0","content_view_id":9},"kt_environment":{"id":4,"name":"Library"},"content_type":"yum","url":"https://repos.fedorapeople.org/pulp/pulp/demo_repos/zoo/","arch":"noarch","os_versions":[],"content_id":"1700042066424","generic_remote_options":null,"major":null,"minor":null,"product":{"id":10,"cp_id":"347380074197","name":"Test + string: ' {"inclusion":false,"original_packages":false,"id":78,"name":"Test + Package Content View Filter","description":null,"created_at":"2024-07-25 07:24:41 + UTC","updated_at":"2024-07-25 07:24:41 UTC","content_view":{"composite":false,"component_ids":[],"duplicate_repositories_to_publish":[],"default":false,"version_count":0,"latest_version":null,"latest_version_id":null,"auto_publish":false,"solve_dependencies":false,"import_only":false,"generated_for":"none","related_cv_count":0,"related_composite_cvs":[],"filtered":true,"repository_ids":[20],"id":17,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":10,"organization":{"name":"Test + Organization","label":"Test_Organization","id":10},"created_at":"2024-07-25 + 07:24:40 UTC","updated_at":"2024-07-25 07:24:40 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":20,"name":"Test + Repository","label":"Test_Repository","content_type":"yum","product":{"id":8,"name":"Test + Product"},"content_counts":{"docker_manifest":0,"docker_tag":0,"rpm":32,"package":32,"package_group":2,"erratum":4,"module_stream":0}}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]},"repositories":[{"backend_identifier":"c42d6bfb-3280-4660-9f2c-c76c786fa382","relative_path":"Test_Organization/Library/custom/Test_Product/Test_Repository","container_repository_name":"test_organization-test_product-test_repository","full_path":"https://centos8-stream-katello-nightly.tanso.example.com/pulp/content/Test_Organization/Library/custom/Test_Product/Test_Repository/","library_instance_id":null,"version_href":"/pulp/api/v3/repositories/rpm/rpm/0190e8c6-b36d-7e8e-80f0-a0b6470e39c9/versions/1/","remote_href":"/pulp/api/v3/remotes/rpm/rpm/0190e8c6-b9d8-7aa7-a1d8-f8f81d2e719a/","publication_href":"/pulp/api/v3/publications/rpm/rpm/0190e8c6-d0e6-72f6-84b8-8a095de927df/","content_counts":{"rpm":32,"erratum":4,"package_group":2,"srpm":0,"module_stream":0},"mirroring_policy":"mirror_content_only","id":20,"name":"Test + Repository","label":"Test_Repository","description":null,"content_view_versions":[],"filters":[{"content_view_filter_id":78,"content_view_filter_name":"Test + Package Content View Filter","content_view_id":17,"content_view_name":"Test + Content View","last_affected_repo":true}],"last_sync":{"id":"13c7ce53-a0e4-4a3c-9a5e-27f4671e300d","username":"admin","started_at":"2024-07-25 + 07:24:18 UTC","ended_at":"2024-07-25 07:24:23 UTC","state":"stopped","result":"success","progress":1.0},"content_view":{"id":16,"name":"Default + Organization View"},"content_view_version":{"id":9,"name":"Default Organization + View 1.0","content_view_id":16},"kt_environment":{"id":9,"name":"Library"},"content_type":"yum","url":"https://repos.fedorapeople.org/pulp/pulp/demo_repos/zoo/","arch":"noarch","os_versions":[],"content_id":"1721892254686","generic_remote_options":null,"major":null,"minor":null,"product":{"id":8,"cp_id":"527370220153","name":"Test Product","orphaned":false,"redhat":false,"sync_plan":null},"content_label":"Test_Organization_Test_Product_Test_Repository","last_sync_words":"less than a minute"}],"type":"rpm","rules":[]} @@ -396,7 +396,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '3156' + - '3226' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -410,7 +410,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.1 + - 3.12.0-develop Keep-Alive: - timeout=15, max=94 Strict-Transport-Security: diff --git a/tests/test_playbooks/fixtures/content_view_filter-1.yml b/tests/test_playbooks/fixtures/content_view_filter-1.yml index defe6f2f..403ed7bd 100644 --- a/tests/test_playbooks/fixtures/content_view_filter-1.yml +++ b/tests/test_playbooks/fixtures/content_view_filter-1.yml @@ -14,14 +14,14 @@ interactions: uri: https://foreman.example.org/api/status response: body: - string: '{"result":"ok","status":200,"version":"3.7.1","api_version":2}' + string: '{"result":"ok","status":200,"version":"3.12.0-develop","api_version":2}' headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive Content-Length: - - '62' + - '71' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -35,7 +35,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.1 + - 3.12.0-develop Keep-Alive: - timeout=15, max=100 Strict-Transport-Security: @@ -70,8 +70,8 @@ interactions: body: string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": 4294967296,\n \"search\": \"name=\\\"Test Organization\\\"\",\n \"sort\": - {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\":\"Test_Organization\",\"created_at\":\"2023-11-15 - 09:54:22 UTC\",\"updated_at\":\"2023-11-15 09:54:23 UTC\",\"id\":5,\"name\":\"Test + {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\":\"Test_Organization\",\"created_at\":\"2024-07-25 + 07:24:10 UTC\",\"updated_at\":\"2024-07-25 07:24:12 UTC\",\"id\":10,\"name\":\"Test Organization\",\"title\":\"Test Organization\",\"description\":\"A test organization\"}]\n}\n" headers: Cache-Control: @@ -79,7 +79,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '388' + - '389' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -93,7 +93,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.1 + - 3.12.0-develop Keep-Alive: - timeout=15, max=99 Strict-Transport-Security: @@ -123,14 +123,14 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/organizations/5/content_views?search=name%3D%22Test+Content+View%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/organizations/10/content_views?search=name%3D%22Test+Content+View%22&per_page=4294967296 response: body: string: '{"total":2,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Content View\"","sort":{"by":"name","order":"asc"},"results":[{"composite":false,"component_ids":[],"default":false,"version_count":0,"latest_version":null,"latest_version_id":null,"auto_publish":false,"solve_dependencies":false,"import_only":false,"generated_for":"none","related_cv_count":0,"related_composite_cvs":[],"needs_publish":true,"filtered":true,"repository_ids":[18],"id":10,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":5,"organization":{"name":"Test - Organization","label":"Test_Organization","id":5},"created_at":"2023-11-15 - 09:55:08 UTC","updated_at":"2023-11-15 09:55:08 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":18,"name":"Test + Content View\"","sort":{"by":"name","order":"asc"},"results":[{"composite":false,"component_ids":[],"duplicate_repositories_to_publish":[],"default":false,"version_count":0,"latest_version":null,"latest_version_id":null,"auto_publish":false,"solve_dependencies":false,"import_only":false,"generated_for":"none","related_cv_count":0,"related_composite_cvs":[],"filtered":true,"repository_ids":[20],"id":17,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":10,"organization":{"name":"Test + Organization","label":"Test_Organization","id":10},"created_at":"2024-07-25 + 07:24:40 UTC","updated_at":"2024-07-25 07:24:40 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":20,"name":"Test Repository","label":"Test_Repository","content_type":"yum"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]}]} ' @@ -140,7 +140,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '1049' + - '1069' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -152,9 +152,9 @@ interactions: Foreman_current_location: - ; ANY Foreman_current_organization: - - 5; Test Organization + - 10; Test Organization Foreman_version: - - 3.7.1 + - 3.12.0-develop Keep-Alive: - timeout=15, max=98 Strict-Transport-Security: @@ -184,14 +184,14 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/organizations/5/products?search=name%3D%22Test+Product%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/organizations/10/products?search=name%3D%22Test+Product%22&per_page=4294967296 response: body: string: '{"total":1,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Product\"","sort":{"by":"name","order":"asc"},"results":[{"id":10,"cp_id":"347380074197","name":"Test - Product","label":"Test_Product","description":"A happy little test product","provider_id":7,"sync_plan_id":null,"sync_summary":{"success":3},"gpg_key_id":null,"ssl_ca_cert_id":null,"ssl_client_cert_id":null,"ssl_client_key_id":null,"sync_state":"Syncing - Complete.","last_sync":"2023-11-15 09:54:59 UTC","last_sync_words":"less than - a minute","organization_id":5,"organization":{"name":"Test Organization","label":"Test_Organization","id":5},"sync_plan":null,"repository_count":3}]} + Product\"","sort":{"by":"name","order":"asc"},"results":[{"id":8,"cp_id":"527370220153","name":"Test + Product","label":"Test_Product","description":"A happy little test product","provider_id":17,"sync_plan_id":null,"sync_summary":{"success":2},"gpg_key_id":null,"ssl_ca_cert_id":null,"ssl_client_cert_id":null,"ssl_client_key_id":null,"sync_state":"Syncing + Complete.","last_sync":"2024-07-25 07:24:35 UTC","last_sync_words":"less than + a minute","organization_id":10,"organization":{"name":"Test Organization","label":"Test_Organization","id":10},"sync_plan":null,"repository_count":2}]} ' headers: @@ -200,7 +200,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '691' + - '693' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -212,9 +212,9 @@ interactions: Foreman_current_location: - ; ANY Foreman_current_organization: - - 5; Test Organization + - 10; Test Organization Foreman_version: - - 3.7.1 + - 3.12.0-develop Keep-Alive: - timeout=15, max=97 Strict-Transport-Security: @@ -244,19 +244,19 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/products/10/repositories?search=name%3D%22Test+Repository%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/products/8/repositories?search=name%3D%22Test+Repository%22&per_page=4294967296 response: body: - string: '{"total":3,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Repository\"","sort":{"by":"name","order":"asc"},"results":[{"backend_identifier":"29b3d88f-d4d9-4411-b1db-69f3a9c7df12","relative_path":"Test_Organization/Library/custom/Test_Product/Test_Repository","container_repository_name":null,"full_path":"https://centos8-stream-katello-4-9.tanso.example.com/pulp/content/Test_Organization/Library/custom/Test_Product/Test_Repository/","library_instance_id":null,"version_href":"/pulp/api/v3/repositories/rpm/rpm/00e6944a-841e-4bfe-9416-070861ef58fb/versions/1/","remote_href":"/pulp/api/v3/remotes/rpm/rpm/7e1e16ba-4432-4a52-988e-3da939154cbe/","publication_href":"/pulp/api/v3/publications/rpm/rpm/9695e87f-67d7-4765-9f98-e9a13987baef/","content_counts":{"rpm":32,"erratum":4,"package_group":2,"srpm":0,"module_stream":0},"mirroring_policy":"mirror_content_only","id":18,"name":"Test - Repository","label":"Test_Repository","description":null,"content_view_versions":[],"filters":[{"content_view_filter_id":8,"content_view_filter_name":"Test - Package Content View Filter","content_view_id":10,"content_view_name":"Test - Content View","last_affected_repo":true}],"last_sync":{"id":"0c110a6a-16e1-487f-a587-0ab648d99eda","username":"admin","started_at":"2023-11-15 - 09:54:33 UTC","ended_at":"2023-11-15 09:54:46 UTC","state":"stopped","result":"success","progress":1.0},"content_view":{"id":9,"name":"Default - Organization View"},"content_view_version":{"id":8,"name":"Default Organization - View 1.0","content_view_id":9},"kt_environment":{"id":4,"name":"Library"},"content_type":"yum","url":"https://repos.fedorapeople.org/pulp/pulp/demo_repos/zoo/","arch":"noarch","os_versions":[],"content_id":"1700042066424","generic_remote_options":null,"major":null,"minor":null,"product":{"id":10,"cp_id":"347380074197","name":"Test + string: '{"total":2,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test + Repository\"","sort":{"by":"name","order":"asc"},"results":[{"backend_identifier":"c42d6bfb-3280-4660-9f2c-c76c786fa382","relative_path":"Test_Organization/Library/custom/Test_Product/Test_Repository","container_repository_name":"test_organization-test_product-test_repository","full_path":"https://centos8-stream-katello-nightly.tanso.example.com/pulp/content/Test_Organization/Library/custom/Test_Product/Test_Repository/","library_instance_id":null,"version_href":"/pulp/api/v3/repositories/rpm/rpm/0190e8c6-b36d-7e8e-80f0-a0b6470e39c9/versions/1/","remote_href":"/pulp/api/v3/remotes/rpm/rpm/0190e8c6-b9d8-7aa7-a1d8-f8f81d2e719a/","publication_href":"/pulp/api/v3/publications/rpm/rpm/0190e8c6-d0e6-72f6-84b8-8a095de927df/","content_counts":{"rpm":32,"erratum":4,"package_group":2,"srpm":0,"module_stream":0},"mirroring_policy":"mirror_content_only","id":20,"name":"Test + Repository","label":"Test_Repository","description":null,"content_view_versions":[],"filters":[{"content_view_filter_id":78,"content_view_filter_name":"Test + Package Content View Filter","content_view_id":17,"content_view_name":"Test + Content View","last_affected_repo":true}],"last_sync":{"id":"13c7ce53-a0e4-4a3c-9a5e-27f4671e300d","username":"admin","started_at":"2024-07-25 + 07:24:18 UTC","ended_at":"2024-07-25 07:24:23 UTC","state":"stopped","result":"success","progress":1.0},"content_view":{"id":16,"name":"Default + Organization View"},"content_view_version":{"id":9,"name":"Default Organization + View 1.0","content_view_id":16},"kt_environment":{"id":9,"name":"Library"},"content_type":"yum","url":"https://repos.fedorapeople.org/pulp/pulp/demo_repos/zoo/","arch":"noarch","os_versions":[],"content_id":"1721892254686","generic_remote_options":null,"major":null,"minor":null,"product":{"id":8,"cp_id":"527370220153","name":"Test Product","orphaned":false,"redhat":false,"sync_plan":null},"content_label":"Test_Organization_Test_Product_Test_Repository","last_sync_words":"less - than a minute"}],"org_repository_count":3} + than a minute"}],"org_repository_count":2} ' headers: @@ -265,7 +265,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '2056' + - '2106' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -279,7 +279,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.1 + - 3.12.0-develop Keep-Alive: - timeout=15, max=96 Strict-Transport-Security: @@ -309,23 +309,23 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/content_views/10/filters?search=name%3D%22Test+Package+Content+View+Filter%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/content_views/17/filters?search=name%3D%22Test+Package+Content+View+Filter%22&per_page=4294967296 response: body: string: '{"total":1,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Package Content View Filter\"","sort":{"by":"name","order":"asc"},"results":[{"inclusion":false,"id":8,"name":"Test - Package Content View Filter","description":null,"created_at":"2023-11-15 09:55:10 - UTC","updated_at":"2023-11-15 09:55:10 UTC","content_view":{"composite":false,"component_ids":[],"default":false,"version_count":0,"latest_version":null,"latest_version_id":null,"auto_publish":false,"solve_dependencies":false,"import_only":false,"generated_for":"none","related_cv_count":0,"related_composite_cvs":[],"needs_publish":true,"filtered":true,"repository_ids":[18],"id":10,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":5,"organization":{"name":"Test - Organization","label":"Test_Organization","id":5},"created_at":"2023-11-15 - 09:55:08 UTC","updated_at":"2023-11-15 09:55:08 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":18,"name":"Test - Repository","label":"Test_Repository","content_type":"yum"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]},"repositories":[{"backend_identifier":"29b3d88f-d4d9-4411-b1db-69f3a9c7df12","relative_path":"Test_Organization/Library/custom/Test_Product/Test_Repository","container_repository_name":null,"full_path":"https://centos8-stream-katello-4-9.tanso.example.com/pulp/content/Test_Organization/Library/custom/Test_Product/Test_Repository/","library_instance_id":null,"version_href":"/pulp/api/v3/repositories/rpm/rpm/00e6944a-841e-4bfe-9416-070861ef58fb/versions/1/","remote_href":"/pulp/api/v3/remotes/rpm/rpm/7e1e16ba-4432-4a52-988e-3da939154cbe/","publication_href":"/pulp/api/v3/publications/rpm/rpm/9695e87f-67d7-4765-9f98-e9a13987baef/","content_counts":{"rpm":32,"erratum":4,"package_group":2,"srpm":0,"module_stream":0},"mirroring_policy":"mirror_content_only","id":18,"name":"Test - Repository","label":"Test_Repository","description":null,"content_view_versions":[],"filters":[{"content_view_filter_id":8,"content_view_filter_name":"Test - Package Content View Filter","content_view_id":10,"content_view_name":"Test - Content View","last_affected_repo":true}],"last_sync":{"id":"0c110a6a-16e1-487f-a587-0ab648d99eda","username":"admin","started_at":"2023-11-15 - 09:54:33 UTC","ended_at":"2023-11-15 09:54:46 UTC","state":"stopped","result":"success","progress":1.0},"content_view":{"id":9,"name":"Default - Organization View"},"content_view_version":{"id":8,"name":"Default Organization - View 1.0","content_view_id":9},"kt_environment":{"id":4,"name":"Library"},"content_type":"yum","url":"https://repos.fedorapeople.org/pulp/pulp/demo_repos/zoo/","arch":"noarch","os_versions":[],"content_id":"1700042066424","generic_remote_options":null,"major":null,"minor":null,"product":{"id":10,"cp_id":"347380074197","name":"Test + Package Content View Filter\"","sort":{"by":"name","order":"asc"},"results":[{"inclusion":false,"id":78,"name":"Test + Package Content View Filter","description":null,"created_at":"2024-07-25 07:24:41 + UTC","updated_at":"2024-07-25 07:24:41 UTC","content_view":{"composite":false,"component_ids":[],"duplicate_repositories_to_publish":[],"default":false,"version_count":0,"latest_version":null,"latest_version_id":null,"auto_publish":false,"solve_dependencies":false,"import_only":false,"generated_for":"none","related_cv_count":0,"related_composite_cvs":[],"filtered":true,"repository_ids":[20],"id":17,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":10,"organization":{"name":"Test + Organization","label":"Test_Organization","id":10},"created_at":"2024-07-25 + 07:24:40 UTC","updated_at":"2024-07-25 07:24:40 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":20,"name":"Test + Repository","label":"Test_Repository","content_type":"yum"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]},"repositories":[{"backend_identifier":"c42d6bfb-3280-4660-9f2c-c76c786fa382","relative_path":"Test_Organization/Library/custom/Test_Product/Test_Repository","container_repository_name":"test_organization-test_product-test_repository","full_path":"https://centos8-stream-katello-nightly.tanso.example.com/pulp/content/Test_Organization/Library/custom/Test_Product/Test_Repository/","library_instance_id":null,"version_href":"/pulp/api/v3/repositories/rpm/rpm/0190e8c6-b36d-7e8e-80f0-a0b6470e39c9/versions/1/","remote_href":"/pulp/api/v3/remotes/rpm/rpm/0190e8c6-b9d8-7aa7-a1d8-f8f81d2e719a/","publication_href":"/pulp/api/v3/publications/rpm/rpm/0190e8c6-d0e6-72f6-84b8-8a095de927df/","content_counts":{"rpm":32,"erratum":4,"package_group":2,"srpm":0,"module_stream":0},"mirroring_policy":"mirror_content_only","id":20,"name":"Test + Repository","label":"Test_Repository","description":null,"content_view_versions":[],"filters":[{"content_view_filter_id":78,"content_view_filter_name":"Test + Package Content View Filter","content_view_id":17,"content_view_name":"Test + Content View","last_affected_repo":true}],"last_sync":{"id":"13c7ce53-a0e4-4a3c-9a5e-27f4671e300d","username":"admin","started_at":"2024-07-25 + 07:24:18 UTC","ended_at":"2024-07-25 07:24:23 UTC","state":"stopped","result":"success","progress":1.0},"content_view":{"id":16,"name":"Default + Organization View"},"content_view_version":{"id":9,"name":"Default Organization + View 1.0","content_view_id":16},"kt_environment":{"id":9,"name":"Library"},"content_type":"yum","url":"https://repos.fedorapeople.org/pulp/pulp/demo_repos/zoo/","arch":"noarch","os_versions":[],"content_id":"1721892254686","generic_remote_options":null,"major":null,"minor":null,"product":{"id":8,"cp_id":"527370220153","name":"Test Product","orphaned":false,"redhat":false,"sync_plan":null},"content_label":"Test_Organization_Test_Product_Test_Repository","last_sync_words":"less than a minute"}],"type":"rpm","rules":[]}]} @@ -336,7 +336,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '3148' + - '3219' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -350,7 +350,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.1 + - 3.12.0-develop Keep-Alive: - timeout=15, max=95 Strict-Transport-Security: @@ -380,23 +380,23 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/content_views/10/filters/8 + uri: https://foreman.example.org/katello/api/content_views/17/filters/78 response: body: - string: ' {"inclusion":false,"original_packages":false,"id":8,"name":"Test - Package Content View Filter","description":null,"created_at":"2023-11-15 09:55:10 - UTC","updated_at":"2023-11-15 09:55:10 UTC","content_view":{"composite":false,"component_ids":[],"default":false,"version_count":0,"latest_version":null,"latest_version_id":null,"auto_publish":false,"solve_dependencies":false,"import_only":false,"generated_for":"none","related_cv_count":0,"related_composite_cvs":[],"needs_publish":true,"filtered":true,"repository_ids":[18],"id":10,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":5,"organization":{"name":"Test - Organization","label":"Test_Organization","id":5},"created_at":"2023-11-15 - 09:55:08 UTC","updated_at":"2023-11-15 09:55:08 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":18,"name":"Test - Repository","label":"Test_Repository","content_type":"yum","product":{"id":10,"name":"Test - Product"},"content_counts":{"docker_manifest":0,"docker_tag":0,"rpm":32,"package":32,"package_group":2,"erratum":4,"module_stream":0}}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]},"repositories":[{"backend_identifier":"29b3d88f-d4d9-4411-b1db-69f3a9c7df12","relative_path":"Test_Organization/Library/custom/Test_Product/Test_Repository","container_repository_name":null,"full_path":"https://centos8-stream-katello-4-9.tanso.example.com/pulp/content/Test_Organization/Library/custom/Test_Product/Test_Repository/","library_instance_id":null,"version_href":"/pulp/api/v3/repositories/rpm/rpm/00e6944a-841e-4bfe-9416-070861ef58fb/versions/1/","remote_href":"/pulp/api/v3/remotes/rpm/rpm/7e1e16ba-4432-4a52-988e-3da939154cbe/","publication_href":"/pulp/api/v3/publications/rpm/rpm/9695e87f-67d7-4765-9f98-e9a13987baef/","content_counts":{"rpm":32,"erratum":4,"package_group":2,"srpm":0,"module_stream":0},"mirroring_policy":"mirror_content_only","id":18,"name":"Test - Repository","label":"Test_Repository","description":null,"content_view_versions":[],"filters":[{"content_view_filter_id":8,"content_view_filter_name":"Test - Package Content View Filter","content_view_id":10,"content_view_name":"Test - Content View","last_affected_repo":true}],"last_sync":{"id":"0c110a6a-16e1-487f-a587-0ab648d99eda","username":"admin","started_at":"2023-11-15 - 09:54:33 UTC","ended_at":"2023-11-15 09:54:46 UTC","state":"stopped","result":"success","progress":1.0},"content_view":{"id":9,"name":"Default - Organization View"},"content_view_version":{"id":8,"name":"Default Organization - View 1.0","content_view_id":9},"kt_environment":{"id":4,"name":"Library"},"content_type":"yum","url":"https://repos.fedorapeople.org/pulp/pulp/demo_repos/zoo/","arch":"noarch","os_versions":[],"content_id":"1700042066424","generic_remote_options":null,"major":null,"minor":null,"product":{"id":10,"cp_id":"347380074197","name":"Test + string: ' {"inclusion":false,"original_packages":false,"id":78,"name":"Test + Package Content View Filter","description":null,"created_at":"2024-07-25 07:24:41 + UTC","updated_at":"2024-07-25 07:24:41 UTC","content_view":{"composite":false,"component_ids":[],"duplicate_repositories_to_publish":[],"default":false,"version_count":0,"latest_version":null,"latest_version_id":null,"auto_publish":false,"solve_dependencies":false,"import_only":false,"generated_for":"none","related_cv_count":0,"related_composite_cvs":[],"filtered":true,"repository_ids":[20],"id":17,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":10,"organization":{"name":"Test + Organization","label":"Test_Organization","id":10},"created_at":"2024-07-25 + 07:24:40 UTC","updated_at":"2024-07-25 07:24:40 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":20,"name":"Test + Repository","label":"Test_Repository","content_type":"yum","product":{"id":8,"name":"Test + Product"},"content_counts":{"docker_manifest":0,"docker_tag":0,"rpm":32,"package":32,"package_group":2,"erratum":4,"module_stream":0}}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]},"repositories":[{"backend_identifier":"c42d6bfb-3280-4660-9f2c-c76c786fa382","relative_path":"Test_Organization/Library/custom/Test_Product/Test_Repository","container_repository_name":"test_organization-test_product-test_repository","full_path":"https://centos8-stream-katello-nightly.tanso.example.com/pulp/content/Test_Organization/Library/custom/Test_Product/Test_Repository/","library_instance_id":null,"version_href":"/pulp/api/v3/repositories/rpm/rpm/0190e8c6-b36d-7e8e-80f0-a0b6470e39c9/versions/1/","remote_href":"/pulp/api/v3/remotes/rpm/rpm/0190e8c6-b9d8-7aa7-a1d8-f8f81d2e719a/","publication_href":"/pulp/api/v3/publications/rpm/rpm/0190e8c6-d0e6-72f6-84b8-8a095de927df/","content_counts":{"rpm":32,"erratum":4,"package_group":2,"srpm":0,"module_stream":0},"mirroring_policy":"mirror_content_only","id":20,"name":"Test + Repository","label":"Test_Repository","description":null,"content_view_versions":[],"filters":[{"content_view_filter_id":78,"content_view_filter_name":"Test + Package Content View Filter","content_view_id":17,"content_view_name":"Test + Content View","last_affected_repo":true}],"last_sync":{"id":"13c7ce53-a0e4-4a3c-9a5e-27f4671e300d","username":"admin","started_at":"2024-07-25 + 07:24:18 UTC","ended_at":"2024-07-25 07:24:23 UTC","state":"stopped","result":"success","progress":1.0},"content_view":{"id":16,"name":"Default + Organization View"},"content_view_version":{"id":9,"name":"Default Organization + View 1.0","content_view_id":16},"kt_environment":{"id":9,"name":"Library"},"content_type":"yum","url":"https://repos.fedorapeople.org/pulp/pulp/demo_repos/zoo/","arch":"noarch","os_versions":[],"content_id":"1721892254686","generic_remote_options":null,"major":null,"minor":null,"product":{"id":8,"cp_id":"527370220153","name":"Test Product","orphaned":false,"redhat":false,"sync_plan":null},"content_label":"Test_Organization_Test_Product_Test_Repository","last_sync_words":"less than a minute"}],"type":"rpm","rules":[]} @@ -407,7 +407,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '3156' + - '3226' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -421,7 +421,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.1 + - 3.12.0-develop Keep-Alive: - timeout=15, max=94 Strict-Transport-Security: diff --git a/tests/test_playbooks/fixtures/content_view_filter-10.yml b/tests/test_playbooks/fixtures/content_view_filter-10.yml index ad2dba0d..a627df29 100644 --- a/tests/test_playbooks/fixtures/content_view_filter-10.yml +++ b/tests/test_playbooks/fixtures/content_view_filter-10.yml @@ -14,14 +14,14 @@ interactions: uri: https://foreman.example.org/api/status response: body: - string: '{"result":"ok","status":200,"version":"3.7.1","api_version":2}' + string: '{"result":"ok","status":200,"version":"3.12.0-develop","api_version":2}' headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive Content-Length: - - '62' + - '71' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -35,7 +35,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.1 + - 3.12.0-develop Keep-Alive: - timeout=15, max=100 Strict-Transport-Security: @@ -70,8 +70,8 @@ interactions: body: string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": 4294967296,\n \"search\": \"name=\\\"Test Organization\\\"\",\n \"sort\": - {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\":\"Test_Organization\",\"created_at\":\"2023-11-15 - 09:54:22 UTC\",\"updated_at\":\"2023-11-15 09:54:23 UTC\",\"id\":5,\"name\":\"Test + {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\":\"Test_Organization\",\"created_at\":\"2024-07-25 + 07:24:10 UTC\",\"updated_at\":\"2024-07-25 07:24:12 UTC\",\"id\":10,\"name\":\"Test Organization\",\"title\":\"Test Organization\",\"description\":\"A test organization\"}]\n}\n" headers: Cache-Control: @@ -79,7 +79,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '388' + - '389' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -93,7 +93,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.1 + - 3.12.0-develop Keep-Alive: - timeout=15, max=99 Strict-Transport-Security: @@ -123,14 +123,14 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/organizations/5/content_views?search=name%3D%22Test+Content+View%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/organizations/10/content_views?search=name%3D%22Test+Content+View%22&per_page=4294967296 response: body: string: '{"total":2,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Content View\"","sort":{"by":"name","order":"asc"},"results":[{"composite":false,"component_ids":[],"default":false,"version_count":0,"latest_version":null,"latest_version_id":null,"auto_publish":false,"solve_dependencies":false,"import_only":false,"generated_for":"none","related_cv_count":0,"related_composite_cvs":[],"needs_publish":true,"filtered":true,"repository_ids":[18],"id":10,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":5,"organization":{"name":"Test - Organization","label":"Test_Organization","id":5},"created_at":"2023-11-15 - 09:55:08 UTC","updated_at":"2023-11-15 09:55:08 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":18,"name":"Test + Content View\"","sort":{"by":"name","order":"asc"},"results":[{"composite":false,"component_ids":[],"duplicate_repositories_to_publish":[],"default":false,"version_count":0,"latest_version":null,"latest_version_id":null,"auto_publish":false,"solve_dependencies":false,"import_only":false,"generated_for":"none","related_cv_count":0,"related_composite_cvs":[],"filtered":true,"repository_ids":[20],"id":17,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":10,"organization":{"name":"Test + Organization","label":"Test_Organization","id":10},"created_at":"2024-07-25 + 07:24:40 UTC","updated_at":"2024-07-25 07:24:40 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":20,"name":"Test Repository","label":"Test_Repository","content_type":"yum"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]}]} ' @@ -140,7 +140,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '1049' + - '1069' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -152,9 +152,9 @@ interactions: Foreman_current_location: - ; ANY Foreman_current_organization: - - 5; Test Organization + - 10; Test Organization Foreman_version: - - 3.7.1 + - 3.12.0-develop Keep-Alive: - timeout=15, max=98 Strict-Transport-Security: @@ -184,16 +184,16 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/content_views/10/filters?search=name%3D%22Test+Errata+id+Content+View+Filter%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/content_views/17/filters?search=name%3D%22Test+Errata+id+Content+View+Filter%22&per_page=4294967296 response: body: string: '{"total":1,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Errata id Content View Filter\"","sort":{"by":"name","order":"asc"},"results":[{"inclusion":false,"id":9,"name":"Test - Errata id Content View Filter","description":null,"created_at":"2023-11-15 - 09:55:16 UTC","updated_at":"2023-11-15 09:55:16 UTC","content_view":{"composite":false,"component_ids":[],"default":false,"version_count":0,"latest_version":null,"latest_version_id":null,"auto_publish":false,"solve_dependencies":false,"import_only":false,"generated_for":"none","related_cv_count":0,"related_composite_cvs":[],"needs_publish":true,"filtered":true,"repository_ids":[18],"id":10,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":5,"organization":{"name":"Test - Organization","label":"Test_Organization","id":5},"created_at":"2023-11-15 - 09:55:08 UTC","updated_at":"2023-11-15 09:55:08 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":18,"name":"Test + Errata id Content View Filter\"","sort":{"by":"name","order":"asc"},"results":[{"inclusion":false,"id":79,"name":"Test + Errata id Content View Filter","description":null,"created_at":"2024-07-25 + 07:24:48 UTC","updated_at":"2024-07-25 07:24:48 UTC","content_view":{"composite":false,"component_ids":[],"duplicate_repositories_to_publish":[],"default":false,"version_count":0,"latest_version":null,"latest_version_id":null,"auto_publish":false,"solve_dependencies":false,"import_only":false,"generated_for":"none","related_cv_count":0,"related_composite_cvs":[],"filtered":true,"repository_ids":[20],"id":17,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":10,"organization":{"name":"Test + Organization","label":"Test_Organization","id":10},"created_at":"2024-07-25 + 07:24:40 UTC","updated_at":"2024-07-25 07:24:40 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":20,"name":"Test Repository","label":"Test_Repository","content_type":"yum"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]},"repositories":[],"type":"erratum","rules":[]}]} ' @@ -203,7 +203,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '1295' + - '1316' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -217,7 +217,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.1 + - 3.12.0-develop Keep-Alive: - timeout=15, max=97 Strict-Transport-Security: @@ -235,68 +235,6 @@ interactions: status: code: 200 message: OK -- request: - body: null - headers: - Accept: - - application/json;version=2 - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - apypie (https://github.com/Apipie/apypie) - method: GET - uri: https://foreman.example.org/katello/api/content_views/10/filters/9 - response: - body: - string: ' {"inclusion":false,"id":9,"name":"Test Errata id Content View Filter","description":null,"created_at":"2023-11-15 - 09:55:16 UTC","updated_at":"2023-11-15 09:55:16 UTC","content_view":{"composite":false,"component_ids":[],"default":false,"version_count":0,"latest_version":null,"latest_version_id":null,"auto_publish":false,"solve_dependencies":false,"import_only":false,"generated_for":"none","related_cv_count":0,"related_composite_cvs":[],"needs_publish":true,"filtered":true,"repository_ids":[18],"id":10,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":5,"organization":{"name":"Test - Organization","label":"Test_Organization","id":5},"created_at":"2023-11-15 - 09:55:08 UTC","updated_at":"2023-11-15 09:55:08 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":18,"name":"Test - Repository","label":"Test_Repository","content_type":"yum","product":{"id":10,"name":"Test - Product"},"content_counts":{"docker_manifest":0,"docker_tag":0,"rpm":32,"package":32,"package_group":2,"erratum":4,"module_stream":0}}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]},"repositories":[],"type":"erratum","rules":[]} - - ' - headers: - Cache-Control: - - max-age=0, private, must-revalidate - Connection: - - Keep-Alive - Content-Length: - - '1275' - Content-Security-Policy: - - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; - style-src ''unsafe-inline'' ''self''' - Content-Type: - - application/json; charset=utf-8 - Foreman_api_version: - - '2' - Foreman_current_location: - - ; ANY - Foreman_current_organization: - - ; ANY - Foreman_version: - - 3.7.1 - Keep-Alive: - - timeout=15, max=96 - Strict-Transport-Security: - - max-age=631139040; includeSubdomains - X-Content-Type-Options: - - nosniff - X-Download-Options: - - noopen - X-Frame-Options: - - sameorigin - X-Permitted-Cross-Domain-Policies: - - none - X-XSS-Protection: - - 1; mode=block - status: - code: 200 - message: OK - request: body: null headers: @@ -311,15 +249,15 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: DELETE - uri: https://foreman.example.org/katello/api/content_views/10/filters/9 + uri: https://foreman.example.org/katello/api/content_views/17/filters/79 response: body: - string: ' {"inclusion":false,"id":9,"name":"Test Errata id Content View Filter","description":null,"created_at":"2023-11-15 - 09:55:16 UTC","updated_at":"2023-11-15 09:55:16 UTC","content_view":{"composite":false,"component_ids":[],"default":false,"version_count":0,"latest_version":null,"latest_version_id":null,"auto_publish":false,"solve_dependencies":false,"import_only":false,"generated_for":"none","related_cv_count":0,"related_composite_cvs":[],"needs_publish":true,"filtered":false,"repository_ids":[18],"id":10,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":5,"organization":{"name":"Test - Organization","label":"Test_Organization","id":5},"created_at":"2023-11-15 - 09:55:08 UTC","updated_at":"2023-11-15 09:55:08 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":18,"name":"Test - Repository","label":"Test_Repository","content_type":"yum","product":{"id":10,"name":"Test + string: ' {"inclusion":false,"id":79,"name":"Test Errata id Content View Filter","description":null,"created_at":"2024-07-25 + 07:24:48 UTC","updated_at":"2024-07-25 07:24:48 UTC","content_view":{"composite":false,"component_ids":[],"duplicate_repositories_to_publish":[],"default":false,"version_count":0,"latest_version":null,"latest_version_id":null,"auto_publish":false,"solve_dependencies":false,"import_only":false,"generated_for":"none","related_cv_count":0,"related_composite_cvs":[],"filtered":false,"repository_ids":[20],"id":17,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":10,"organization":{"name":"Test + Organization","label":"Test_Organization","id":10},"created_at":"2024-07-25 + 07:24:40 UTC","updated_at":"2024-07-25 07:24:40 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":20,"name":"Test + Repository","label":"Test_Repository","content_type":"yum","product":{"id":8,"name":"Test Product"},"content_counts":{"docker_manifest":0,"docker_tag":0,"rpm":32,"package":32,"package_group":2,"erratum":4,"module_stream":0}}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]},"repositories":[],"type":"erratum","rules":[]} ' @@ -329,7 +267,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '1276' + - '1296' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -343,9 +281,9 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.1 + - 3.12.0-develop Keep-Alive: - - timeout=15, max=95 + - timeout=15, max=96 Strict-Transport-Security: - max-age=631139040; includeSubdomains X-Content-Type-Options: diff --git a/tests/test_playbooks/fixtures/content_view_filter-11.yml b/tests/test_playbooks/fixtures/content_view_filter-11.yml index 74cb129f..be089567 100644 --- a/tests/test_playbooks/fixtures/content_view_filter-11.yml +++ b/tests/test_playbooks/fixtures/content_view_filter-11.yml @@ -14,14 +14,14 @@ interactions: uri: https://foreman.example.org/api/status response: body: - string: '{"result":"ok","status":200,"version":"3.7.1","api_version":2}' + string: '{"result":"ok","status":200,"version":"3.12.0-develop","api_version":2}' headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive Content-Length: - - '62' + - '71' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -35,7 +35,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.1 + - 3.12.0-develop Keep-Alive: - timeout=15, max=100 Strict-Transport-Security: @@ -70,8 +70,8 @@ interactions: body: string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": 4294967296,\n \"search\": \"name=\\\"Test Organization\\\"\",\n \"sort\": - {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\":\"Test_Organization\",\"created_at\":\"2023-11-15 - 09:54:22 UTC\",\"updated_at\":\"2023-11-15 09:54:23 UTC\",\"id\":5,\"name\":\"Test + {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\":\"Test_Organization\",\"created_at\":\"2024-07-25 + 07:24:10 UTC\",\"updated_at\":\"2024-07-25 07:24:12 UTC\",\"id\":10,\"name\":\"Test Organization\",\"title\":\"Test Organization\",\"description\":\"A test organization\"}]\n}\n" headers: Cache-Control: @@ -79,7 +79,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '388' + - '389' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -93,7 +93,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.1 + - 3.12.0-develop Keep-Alive: - timeout=15, max=99 Strict-Transport-Security: @@ -123,14 +123,14 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/organizations/5/content_views?search=name%3D%22Test+Content+View%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/organizations/10/content_views?search=name%3D%22Test+Content+View%22&per_page=4294967296 response: body: string: '{"total":2,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Content View\"","sort":{"by":"name","order":"asc"},"results":[{"composite":false,"component_ids":[],"default":false,"version_count":0,"latest_version":null,"latest_version_id":null,"auto_publish":false,"solve_dependencies":false,"import_only":false,"generated_for":"none","related_cv_count":0,"related_composite_cvs":[],"needs_publish":true,"filtered":false,"repository_ids":[18],"id":10,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":5,"organization":{"name":"Test - Organization","label":"Test_Organization","id":5},"created_at":"2023-11-15 - 09:55:08 UTC","updated_at":"2023-11-15 09:55:08 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":18,"name":"Test + Content View\"","sort":{"by":"name","order":"asc"},"results":[{"composite":false,"component_ids":[],"duplicate_repositories_to_publish":[],"default":false,"version_count":0,"latest_version":null,"latest_version_id":null,"auto_publish":false,"solve_dependencies":false,"import_only":false,"generated_for":"none","related_cv_count":0,"related_composite_cvs":[],"filtered":false,"repository_ids":[20],"id":17,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":10,"organization":{"name":"Test + Organization","label":"Test_Organization","id":10},"created_at":"2024-07-25 + 07:24:40 UTC","updated_at":"2024-07-25 07:24:40 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":20,"name":"Test Repository","label":"Test_Repository","content_type":"yum"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]}]} ' @@ -140,7 +140,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '1050' + - '1070' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -152,9 +152,9 @@ interactions: Foreman_current_location: - ; ANY Foreman_current_organization: - - 5; Test Organization + - 10; Test Organization Foreman_version: - - 3.7.1 + - 3.12.0-develop Keep-Alive: - timeout=15, max=98 Strict-Transport-Security: @@ -184,14 +184,14 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/organizations/5/products?search=name%3D%22Test+Product%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/organizations/10/products?search=name%3D%22Test+Product%22&per_page=4294967296 response: body: string: '{"total":1,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Product\"","sort":{"by":"name","order":"asc"},"results":[{"id":10,"cp_id":"347380074197","name":"Test - Product","label":"Test_Product","description":"A happy little test product","provider_id":7,"sync_plan_id":null,"sync_summary":{"success":3},"gpg_key_id":null,"ssl_ca_cert_id":null,"ssl_client_cert_id":null,"ssl_client_key_id":null,"sync_state":"Syncing - Complete.","last_sync":"2023-11-15 09:54:59 UTC","last_sync_words":"less than - a minute","organization_id":5,"organization":{"name":"Test Organization","label":"Test_Organization","id":5},"sync_plan":null,"repository_count":3}]} + Product\"","sort":{"by":"name","order":"asc"},"results":[{"id":8,"cp_id":"527370220153","name":"Test + Product","label":"Test_Product","description":"A happy little test product","provider_id":17,"sync_plan_id":null,"sync_summary":{"success":2},"gpg_key_id":null,"ssl_ca_cert_id":null,"ssl_client_cert_id":null,"ssl_client_key_id":null,"sync_state":"Syncing + Complete.","last_sync":"2024-07-25 07:24:35 UTC","last_sync_words":"less than + a minute","organization_id":10,"organization":{"name":"Test Organization","label":"Test_Organization","id":10},"sync_plan":null,"repository_count":2}]} ' headers: @@ -200,7 +200,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '691' + - '693' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -212,9 +212,9 @@ interactions: Foreman_current_location: - ; ANY Foreman_current_organization: - - 5; Test Organization + - 10; Test Organization Foreman_version: - - 3.7.1 + - 3.12.0-develop Keep-Alive: - timeout=15, max=97 Strict-Transport-Security: @@ -244,17 +244,17 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/products/10/repositories?search=name%3D%22Test+Repository%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/products/8/repositories?search=name%3D%22Test+Repository%22&per_page=4294967296 response: body: - string: '{"total":3,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Repository\"","sort":{"by":"name","order":"asc"},"results":[{"backend_identifier":"29b3d88f-d4d9-4411-b1db-69f3a9c7df12","relative_path":"Test_Organization/Library/custom/Test_Product/Test_Repository","container_repository_name":null,"full_path":"https://centos8-stream-katello-4-9.tanso.example.com/pulp/content/Test_Organization/Library/custom/Test_Product/Test_Repository/","library_instance_id":null,"version_href":"/pulp/api/v3/repositories/rpm/rpm/00e6944a-841e-4bfe-9416-070861ef58fb/versions/1/","remote_href":"/pulp/api/v3/remotes/rpm/rpm/7e1e16ba-4432-4a52-988e-3da939154cbe/","publication_href":"/pulp/api/v3/publications/rpm/rpm/9695e87f-67d7-4765-9f98-e9a13987baef/","content_counts":{"rpm":32,"erratum":4,"package_group":2,"srpm":0,"module_stream":0},"mirroring_policy":"mirror_content_only","id":18,"name":"Test - Repository","label":"Test_Repository","description":null,"content_view_versions":[],"filters":[],"last_sync":{"id":"0c110a6a-16e1-487f-a587-0ab648d99eda","username":"admin","started_at":"2023-11-15 - 09:54:33 UTC","ended_at":"2023-11-15 09:54:46 UTC","state":"stopped","result":"success","progress":1.0},"content_view":{"id":9,"name":"Default - Organization View"},"content_view_version":{"id":8,"name":"Default Organization - View 1.0","content_view_id":9},"kt_environment":{"id":4,"name":"Library"},"content_type":"yum","url":"https://repos.fedorapeople.org/pulp/pulp/demo_repos/zoo/","arch":"noarch","os_versions":[],"content_id":"1700042066424","generic_remote_options":null,"major":null,"minor":null,"product":{"id":10,"cp_id":"347380074197","name":"Test - Product","orphaned":false,"redhat":false,"sync_plan":null},"content_label":"Test_Organization_Test_Product_Test_Repository","last_sync_words":"1 - minute"}],"org_repository_count":3} + string: '{"total":2,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test + Repository\"","sort":{"by":"name","order":"asc"},"results":[{"backend_identifier":"c42d6bfb-3280-4660-9f2c-c76c786fa382","relative_path":"Test_Organization/Library/custom/Test_Product/Test_Repository","container_repository_name":"test_organization-test_product-test_repository","full_path":"https://centos8-stream-katello-nightly.tanso.example.com/pulp/content/Test_Organization/Library/custom/Test_Product/Test_Repository/","library_instance_id":null,"version_href":"/pulp/api/v3/repositories/rpm/rpm/0190e8c6-b36d-7e8e-80f0-a0b6470e39c9/versions/1/","remote_href":"/pulp/api/v3/remotes/rpm/rpm/0190e8c6-b9d8-7aa7-a1d8-f8f81d2e719a/","publication_href":"/pulp/api/v3/publications/rpm/rpm/0190e8c6-d0e6-72f6-84b8-8a095de927df/","content_counts":{"rpm":32,"erratum":4,"package_group":2,"srpm":0,"module_stream":0},"mirroring_policy":"mirror_content_only","id":20,"name":"Test + Repository","label":"Test_Repository","description":null,"content_view_versions":[],"filters":[],"last_sync":{"id":"13c7ce53-a0e4-4a3c-9a5e-27f4671e300d","username":"admin","started_at":"2024-07-25 + 07:24:18 UTC","ended_at":"2024-07-25 07:24:23 UTC","state":"stopped","result":"success","progress":1.0},"content_view":{"id":16,"name":"Default + Organization View"},"content_view_version":{"id":9,"name":"Default Organization + View 1.0","content_view_id":16},"kt_environment":{"id":9,"name":"Library"},"content_type":"yum","url":"https://repos.fedorapeople.org/pulp/pulp/demo_repos/zoo/","arch":"noarch","os_versions":[],"content_id":"1721892254686","generic_remote_options":null,"major":null,"minor":null,"product":{"id":8,"cp_id":"527370220153","name":"Test + Product","orphaned":false,"redhat":false,"sync_plan":null},"content_label":"Test_Organization_Test_Product_Test_Repository","last_sync_words":"less + than a minute"}],"org_repository_count":2} ' headers: @@ -263,7 +263,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '1869' + - '1928' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -277,7 +277,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.1 + - 3.12.0-develop Keep-Alive: - timeout=15, max=96 Strict-Transport-Security: @@ -307,7 +307,7 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/content_views/10/filters?search=name%3D%22Test+Errata+date+Content+View+Filter%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/content_views/17/filters?search=name%3D%22Test+Errata+date+Content+View+Filter%22&per_page=4294967296 response: body: string: '{"total":0,"subtotal":0,"selectable":0,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test @@ -334,7 +334,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.1 + - 3.12.0-develop Keep-Alive: - timeout=15, max=95 Strict-Transport-Security: @@ -354,7 +354,7 @@ interactions: message: OK - request: body: '{"name": "Test Errata date Content View Filter", "type": "erratum", "inclusion": - false, "repository_ids": [18]}' + false, "repository_ids": [20]}' headers: Accept: - application/json;version=2 @@ -369,25 +369,25 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: POST - uri: https://foreman.example.org/katello/api/content_views/10/filters + uri: https://foreman.example.org/katello/api/content_views/17/filters response: body: - string: ' {"inclusion":false,"id":10,"name":"Test Errata date Content View - Filter","description":null,"created_at":"2023-11-15 09:55:19 UTC","updated_at":"2023-11-15 - 09:55:19 UTC","content_view":{"composite":false,"component_ids":[],"default":false,"version_count":0,"latest_version":null,"latest_version_id":null,"auto_publish":false,"solve_dependencies":false,"import_only":false,"generated_for":"none","related_cv_count":0,"related_composite_cvs":[],"needs_publish":true,"filtered":true,"repository_ids":[18],"id":10,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":5,"organization":{"name":"Test - Organization","label":"Test_Organization","id":5},"created_at":"2023-11-15 - 09:55:08 UTC","updated_at":"2023-11-15 09:55:08 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":18,"name":"Test - Repository","label":"Test_Repository","content_type":"yum","product":{"id":10,"name":"Test - Product"},"content_counts":{"docker_manifest":0,"docker_tag":0,"rpm":32,"package":32,"package_group":2,"erratum":4,"module_stream":0}}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]},"repositories":[{"backend_identifier":"29b3d88f-d4d9-4411-b1db-69f3a9c7df12","relative_path":"Test_Organization/Library/custom/Test_Product/Test_Repository","container_repository_name":null,"full_path":"https://centos8-stream-katello-4-9.tanso.example.com/pulp/content/Test_Organization/Library/custom/Test_Product/Test_Repository/","library_instance_id":null,"version_href":"/pulp/api/v3/repositories/rpm/rpm/00e6944a-841e-4bfe-9416-070861ef58fb/versions/1/","remote_href":"/pulp/api/v3/remotes/rpm/rpm/7e1e16ba-4432-4a52-988e-3da939154cbe/","publication_href":"/pulp/api/v3/publications/rpm/rpm/9695e87f-67d7-4765-9f98-e9a13987baef/","content_counts":{"rpm":32,"erratum":4,"package_group":2,"srpm":0,"module_stream":0},"mirroring_policy":"mirror_content_only","id":18,"name":"Test - Repository","label":"Test_Repository","description":null,"content_view_versions":[],"filters":[{"content_view_filter_id":10,"content_view_filter_name":"Test - Errata date Content View Filter","content_view_id":10,"content_view_name":"Test - Content View","last_affected_repo":true}],"last_sync":{"id":"0c110a6a-16e1-487f-a587-0ab648d99eda","username":"admin","started_at":"2023-11-15 - 09:54:33 UTC","ended_at":"2023-11-15 09:54:46 UTC","state":"stopped","result":"success","progress":1.0},"content_view":{"id":9,"name":"Default - Organization View"},"content_view_version":{"id":8,"name":"Default Organization - View 1.0","content_view_id":9},"kt_environment":{"id":4,"name":"Library"},"content_type":"yum","url":"https://repos.fedorapeople.org/pulp/pulp/demo_repos/zoo/","arch":"noarch","os_versions":[],"content_id":"1700042066424","generic_remote_options":null,"major":null,"minor":null,"product":{"id":10,"cp_id":"347380074197","name":"Test - Product","orphaned":false,"redhat":false,"sync_plan":null},"content_label":"Test_Organization_Test_Product_Test_Repository","last_sync_words":"1 - minute"}],"type":"erratum","rules":[]} + string: ' {"inclusion":false,"id":80,"name":"Test Errata date Content View + Filter","description":null,"created_at":"2024-07-25 07:24:50 UTC","updated_at":"2024-07-25 + 07:24:50 UTC","content_view":{"composite":false,"component_ids":[],"duplicate_repositories_to_publish":[],"default":false,"version_count":0,"latest_version":null,"latest_version_id":null,"auto_publish":false,"solve_dependencies":false,"import_only":false,"generated_for":"none","related_cv_count":0,"related_composite_cvs":[],"filtered":true,"repository_ids":[20],"id":17,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":10,"organization":{"name":"Test + Organization","label":"Test_Organization","id":10},"created_at":"2024-07-25 + 07:24:40 UTC","updated_at":"2024-07-25 07:24:40 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":20,"name":"Test + Repository","label":"Test_Repository","content_type":"yum","product":{"id":8,"name":"Test + Product"},"content_counts":{"docker_manifest":0,"docker_tag":0,"rpm":32,"package":32,"package_group":2,"erratum":4,"module_stream":0}}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]},"repositories":[{"backend_identifier":"c42d6bfb-3280-4660-9f2c-c76c786fa382","relative_path":"Test_Organization/Library/custom/Test_Product/Test_Repository","container_repository_name":"test_organization-test_product-test_repository","full_path":"https://centos8-stream-katello-nightly.tanso.example.com/pulp/content/Test_Organization/Library/custom/Test_Product/Test_Repository/","library_instance_id":null,"version_href":"/pulp/api/v3/repositories/rpm/rpm/0190e8c6-b36d-7e8e-80f0-a0b6470e39c9/versions/1/","remote_href":"/pulp/api/v3/remotes/rpm/rpm/0190e8c6-b9d8-7aa7-a1d8-f8f81d2e719a/","publication_href":"/pulp/api/v3/publications/rpm/rpm/0190e8c6-d0e6-72f6-84b8-8a095de927df/","content_counts":{"rpm":32,"erratum":4,"package_group":2,"srpm":0,"module_stream":0},"mirroring_policy":"mirror_content_only","id":20,"name":"Test + Repository","label":"Test_Repository","description":null,"content_view_versions":[],"filters":[{"content_view_filter_id":80,"content_view_filter_name":"Test + Errata date Content View Filter","content_view_id":17,"content_view_name":"Test + Content View","last_affected_repo":true}],"last_sync":{"id":"13c7ce53-a0e4-4a3c-9a5e-27f4671e300d","username":"admin","started_at":"2024-07-25 + 07:24:18 UTC","ended_at":"2024-07-25 07:24:23 UTC","state":"stopped","result":"success","progress":1.0},"content_view":{"id":16,"name":"Default + Organization View"},"content_view_version":{"id":9,"name":"Default Organization + View 1.0","content_view_id":16},"kt_environment":{"id":9,"name":"Library"},"content_type":"yum","url":"https://repos.fedorapeople.org/pulp/pulp/demo_repos/zoo/","arch":"noarch","os_versions":[],"content_id":"1721892254686","generic_remote_options":null,"major":null,"minor":null,"product":{"id":8,"cp_id":"527370220153","name":"Test + Product","orphaned":false,"redhat":false,"sync_plan":null},"content_label":"Test_Organization_Test_Product_Test_Repository","last_sync_words":"less + than a minute"}],"type":"erratum","rules":[]} ' headers: @@ -396,7 +396,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '3134' + - '3212' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -410,7 +410,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.1 + - 3.12.0-develop Keep-Alive: - timeout=15, max=94 Strict-Transport-Security: diff --git a/tests/test_playbooks/fixtures/content_view_filter-12.yml b/tests/test_playbooks/fixtures/content_view_filter-12.yml index 2a233a22..fa2b387c 100644 --- a/tests/test_playbooks/fixtures/content_view_filter-12.yml +++ b/tests/test_playbooks/fixtures/content_view_filter-12.yml @@ -14,14 +14,14 @@ interactions: uri: https://foreman.example.org/api/status response: body: - string: '{"result":"ok","status":200,"version":"3.7.1","api_version":2}' + string: '{"result":"ok","status":200,"version":"3.12.0-develop","api_version":2}' headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive Content-Length: - - '62' + - '71' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -35,7 +35,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.1 + - 3.12.0-develop Keep-Alive: - timeout=15, max=100 Strict-Transport-Security: @@ -70,8 +70,8 @@ interactions: body: string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": 4294967296,\n \"search\": \"name=\\\"Test Organization\\\"\",\n \"sort\": - {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\":\"Test_Organization\",\"created_at\":\"2023-11-15 - 09:54:22 UTC\",\"updated_at\":\"2023-11-15 09:54:23 UTC\",\"id\":5,\"name\":\"Test + {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\":\"Test_Organization\",\"created_at\":\"2024-07-25 + 07:24:10 UTC\",\"updated_at\":\"2024-07-25 07:24:12 UTC\",\"id\":10,\"name\":\"Test Organization\",\"title\":\"Test Organization\",\"description\":\"A test organization\"}]\n}\n" headers: Cache-Control: @@ -79,7 +79,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '388' + - '389' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -93,7 +93,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.1 + - 3.12.0-develop Keep-Alive: - timeout=15, max=99 Strict-Transport-Security: @@ -123,14 +123,14 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/organizations/5/content_views?search=name%3D%22Test+Content+View%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/organizations/10/content_views?search=name%3D%22Test+Content+View%22&per_page=4294967296 response: body: string: '{"total":2,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Content View\"","sort":{"by":"name","order":"asc"},"results":[{"composite":false,"component_ids":[],"default":false,"version_count":0,"latest_version":null,"latest_version_id":null,"auto_publish":false,"solve_dependencies":false,"import_only":false,"generated_for":"none","related_cv_count":0,"related_composite_cvs":[],"needs_publish":true,"filtered":true,"repository_ids":[18],"id":10,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":5,"organization":{"name":"Test - Organization","label":"Test_Organization","id":5},"created_at":"2023-11-15 - 09:55:08 UTC","updated_at":"2023-11-15 09:55:08 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":18,"name":"Test + Content View\"","sort":{"by":"name","order":"asc"},"results":[{"composite":false,"component_ids":[],"duplicate_repositories_to_publish":[],"default":false,"version_count":0,"latest_version":null,"latest_version_id":null,"auto_publish":false,"solve_dependencies":false,"import_only":false,"generated_for":"none","related_cv_count":0,"related_composite_cvs":[],"filtered":true,"repository_ids":[20],"id":17,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":10,"organization":{"name":"Test + Organization","label":"Test_Organization","id":10},"created_at":"2024-07-25 + 07:24:40 UTC","updated_at":"2024-07-25 07:24:40 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":20,"name":"Test Repository","label":"Test_Repository","content_type":"yum"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]}]} ' @@ -140,7 +140,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '1049' + - '1069' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -152,9 +152,9 @@ interactions: Foreman_current_location: - ; ANY Foreman_current_organization: - - 5; Test Organization + - 10; Test Organization Foreman_version: - - 3.7.1 + - 3.12.0-develop Keep-Alive: - timeout=15, max=98 Strict-Transport-Security: @@ -184,14 +184,14 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/organizations/5/products?search=name%3D%22Test+Product%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/organizations/10/products?search=name%3D%22Test+Product%22&per_page=4294967296 response: body: string: '{"total":1,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Product\"","sort":{"by":"name","order":"asc"},"results":[{"id":10,"cp_id":"347380074197","name":"Test - Product","label":"Test_Product","description":"A happy little test product","provider_id":7,"sync_plan_id":null,"sync_summary":{"success":3},"gpg_key_id":null,"ssl_ca_cert_id":null,"ssl_client_cert_id":null,"ssl_client_key_id":null,"sync_state":"Syncing - Complete.","last_sync":"2023-11-15 09:54:59 UTC","last_sync_words":"less than - a minute","organization_id":5,"organization":{"name":"Test Organization","label":"Test_Organization","id":5},"sync_plan":null,"repository_count":3}]} + Product\"","sort":{"by":"name","order":"asc"},"results":[{"id":8,"cp_id":"527370220153","name":"Test + Product","label":"Test_Product","description":"A happy little test product","provider_id":17,"sync_plan_id":null,"sync_summary":{"success":2},"gpg_key_id":null,"ssl_ca_cert_id":null,"ssl_client_cert_id":null,"ssl_client_key_id":null,"sync_state":"Syncing + Complete.","last_sync":"2024-07-25 07:24:35 UTC","last_sync_words":"less than + a minute","organization_id":10,"organization":{"name":"Test Organization","label":"Test_Organization","id":10},"sync_plan":null,"repository_count":2}]} ' headers: @@ -200,7 +200,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '691' + - '693' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -212,9 +212,9 @@ interactions: Foreman_current_location: - ; ANY Foreman_current_organization: - - 5; Test Organization + - 10; Test Organization Foreman_version: - - 3.7.1 + - 3.12.0-develop Keep-Alive: - timeout=15, max=97 Strict-Transport-Security: @@ -244,19 +244,19 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/products/10/repositories?search=name%3D%22Test+Repository%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/products/8/repositories?search=name%3D%22Test+Repository%22&per_page=4294967296 response: body: - string: '{"total":3,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Repository\"","sort":{"by":"name","order":"asc"},"results":[{"backend_identifier":"29b3d88f-d4d9-4411-b1db-69f3a9c7df12","relative_path":"Test_Organization/Library/custom/Test_Product/Test_Repository","container_repository_name":null,"full_path":"https://centos8-stream-katello-4-9.tanso.example.com/pulp/content/Test_Organization/Library/custom/Test_Product/Test_Repository/","library_instance_id":null,"version_href":"/pulp/api/v3/repositories/rpm/rpm/00e6944a-841e-4bfe-9416-070861ef58fb/versions/1/","remote_href":"/pulp/api/v3/remotes/rpm/rpm/7e1e16ba-4432-4a52-988e-3da939154cbe/","publication_href":"/pulp/api/v3/publications/rpm/rpm/9695e87f-67d7-4765-9f98-e9a13987baef/","content_counts":{"rpm":32,"erratum":4,"package_group":2,"srpm":0,"module_stream":0},"mirroring_policy":"mirror_content_only","id":18,"name":"Test - Repository","label":"Test_Repository","description":null,"content_view_versions":[],"filters":[{"content_view_filter_id":10,"content_view_filter_name":"Test - Errata date Content View Filter","content_view_id":10,"content_view_name":"Test - Content View","last_affected_repo":true}],"last_sync":{"id":"0c110a6a-16e1-487f-a587-0ab648d99eda","username":"admin","started_at":"2023-11-15 - 09:54:33 UTC","ended_at":"2023-11-15 09:54:46 UTC","state":"stopped","result":"success","progress":1.0},"content_view":{"id":9,"name":"Default - Organization View"},"content_view_version":{"id":8,"name":"Default Organization - View 1.0","content_view_id":9},"kt_environment":{"id":4,"name":"Library"},"content_type":"yum","url":"https://repos.fedorapeople.org/pulp/pulp/demo_repos/zoo/","arch":"noarch","os_versions":[],"content_id":"1700042066424","generic_remote_options":null,"major":null,"minor":null,"product":{"id":10,"cp_id":"347380074197","name":"Test - Product","orphaned":false,"redhat":false,"sync_plan":null},"content_label":"Test_Organization_Test_Product_Test_Repository","last_sync_words":"1 - minute"}],"org_repository_count":3} + string: '{"total":2,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test + Repository\"","sort":{"by":"name","order":"asc"},"results":[{"backend_identifier":"c42d6bfb-3280-4660-9f2c-c76c786fa382","relative_path":"Test_Organization/Library/custom/Test_Product/Test_Repository","container_repository_name":"test_organization-test_product-test_repository","full_path":"https://centos8-stream-katello-nightly.tanso.example.com/pulp/content/Test_Organization/Library/custom/Test_Product/Test_Repository/","library_instance_id":null,"version_href":"/pulp/api/v3/repositories/rpm/rpm/0190e8c6-b36d-7e8e-80f0-a0b6470e39c9/versions/1/","remote_href":"/pulp/api/v3/remotes/rpm/rpm/0190e8c6-b9d8-7aa7-a1d8-f8f81d2e719a/","publication_href":"/pulp/api/v3/publications/rpm/rpm/0190e8c6-d0e6-72f6-84b8-8a095de927df/","content_counts":{"rpm":32,"erratum":4,"package_group":2,"srpm":0,"module_stream":0},"mirroring_policy":"mirror_content_only","id":20,"name":"Test + Repository","label":"Test_Repository","description":null,"content_view_versions":[],"filters":[{"content_view_filter_id":80,"content_view_filter_name":"Test + Errata date Content View Filter","content_view_id":17,"content_view_name":"Test + Content View","last_affected_repo":true}],"last_sync":{"id":"13c7ce53-a0e4-4a3c-9a5e-27f4671e300d","username":"admin","started_at":"2024-07-25 + 07:24:18 UTC","ended_at":"2024-07-25 07:24:23 UTC","state":"stopped","result":"success","progress":1.0},"content_view":{"id":16,"name":"Default + Organization View"},"content_view_version":{"id":9,"name":"Default Organization + View 1.0","content_view_id":16},"kt_environment":{"id":9,"name":"Library"},"content_type":"yum","url":"https://repos.fedorapeople.org/pulp/pulp/demo_repos/zoo/","arch":"noarch","os_versions":[],"content_id":"1721892254686","generic_remote_options":null,"major":null,"minor":null,"product":{"id":8,"cp_id":"527370220153","name":"Test + Product","orphaned":false,"redhat":false,"sync_plan":null},"content_label":"Test_Organization_Test_Product_Test_Repository","last_sync_words":"less + than a minute"}],"org_repository_count":2} ' headers: @@ -265,7 +265,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '2051' + - '2110' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -279,7 +279,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.1 + - 3.12.0-develop Keep-Alive: - timeout=15, max=96 Strict-Transport-Security: @@ -309,25 +309,25 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/content_views/10/filters?search=name%3D%22Test+Errata+date+Content+View+Filter%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/content_views/17/filters?search=name%3D%22Test+Errata+date+Content+View+Filter%22&per_page=4294967296 response: body: string: '{"total":1,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Errata date Content View Filter\"","sort":{"by":"name","order":"asc"},"results":[{"inclusion":false,"id":10,"name":"Test - Errata date Content View Filter","description":null,"created_at":"2023-11-15 - 09:55:19 UTC","updated_at":"2023-11-15 09:55:19 UTC","content_view":{"composite":false,"component_ids":[],"default":false,"version_count":0,"latest_version":null,"latest_version_id":null,"auto_publish":false,"solve_dependencies":false,"import_only":false,"generated_for":"none","related_cv_count":0,"related_composite_cvs":[],"needs_publish":true,"filtered":true,"repository_ids":[18],"id":10,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":5,"organization":{"name":"Test - Organization","label":"Test_Organization","id":5},"created_at":"2023-11-15 - 09:55:08 UTC","updated_at":"2023-11-15 09:55:08 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":18,"name":"Test - Repository","label":"Test_Repository","content_type":"yum"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]},"repositories":[{"backend_identifier":"29b3d88f-d4d9-4411-b1db-69f3a9c7df12","relative_path":"Test_Organization/Library/custom/Test_Product/Test_Repository","container_repository_name":null,"full_path":"https://centos8-stream-katello-4-9.tanso.example.com/pulp/content/Test_Organization/Library/custom/Test_Product/Test_Repository/","library_instance_id":null,"version_href":"/pulp/api/v3/repositories/rpm/rpm/00e6944a-841e-4bfe-9416-070861ef58fb/versions/1/","remote_href":"/pulp/api/v3/remotes/rpm/rpm/7e1e16ba-4432-4a52-988e-3da939154cbe/","publication_href":"/pulp/api/v3/publications/rpm/rpm/9695e87f-67d7-4765-9f98-e9a13987baef/","content_counts":{"rpm":32,"erratum":4,"package_group":2,"srpm":0,"module_stream":0},"mirroring_policy":"mirror_content_only","id":18,"name":"Test - Repository","label":"Test_Repository","description":null,"content_view_versions":[],"filters":[{"content_view_filter_id":10,"content_view_filter_name":"Test - Errata date Content View Filter","content_view_id":10,"content_view_name":"Test - Content View","last_affected_repo":true}],"last_sync":{"id":"0c110a6a-16e1-487f-a587-0ab648d99eda","username":"admin","started_at":"2023-11-15 - 09:54:33 UTC","ended_at":"2023-11-15 09:54:46 UTC","state":"stopped","result":"success","progress":1.0},"content_view":{"id":9,"name":"Default - Organization View"},"content_view_version":{"id":8,"name":"Default Organization - View 1.0","content_view_id":9},"kt_environment":{"id":4,"name":"Library"},"content_type":"yum","url":"https://repos.fedorapeople.org/pulp/pulp/demo_repos/zoo/","arch":"noarch","os_versions":[],"content_id":"1700042066424","generic_remote_options":null,"major":null,"minor":null,"product":{"id":10,"cp_id":"347380074197","name":"Test - Product","orphaned":false,"redhat":false,"sync_plan":null},"content_label":"Test_Organization_Test_Product_Test_Repository","last_sync_words":"1 - minute"}],"type":"erratum","rules":[]}]} + Errata date Content View Filter\"","sort":{"by":"name","order":"asc"},"results":[{"inclusion":false,"id":80,"name":"Test + Errata date Content View Filter","description":null,"created_at":"2024-07-25 + 07:24:50 UTC","updated_at":"2024-07-25 07:24:50 UTC","content_view":{"composite":false,"component_ids":[],"duplicate_repositories_to_publish":[],"default":false,"version_count":0,"latest_version":null,"latest_version_id":null,"auto_publish":false,"solve_dependencies":false,"import_only":false,"generated_for":"none","related_cv_count":0,"related_composite_cvs":[],"filtered":true,"repository_ids":[20],"id":17,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":10,"organization":{"name":"Test + Organization","label":"Test_Organization","id":10},"created_at":"2024-07-25 + 07:24:40 UTC","updated_at":"2024-07-25 07:24:40 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":20,"name":"Test + Repository","label":"Test_Repository","content_type":"yum"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]},"repositories":[{"backend_identifier":"c42d6bfb-3280-4660-9f2c-c76c786fa382","relative_path":"Test_Organization/Library/custom/Test_Product/Test_Repository","container_repository_name":"test_organization-test_product-test_repository","full_path":"https://centos8-stream-katello-nightly.tanso.example.com/pulp/content/Test_Organization/Library/custom/Test_Product/Test_Repository/","library_instance_id":null,"version_href":"/pulp/api/v3/repositories/rpm/rpm/0190e8c6-b36d-7e8e-80f0-a0b6470e39c9/versions/1/","remote_href":"/pulp/api/v3/remotes/rpm/rpm/0190e8c6-b9d8-7aa7-a1d8-f8f81d2e719a/","publication_href":"/pulp/api/v3/publications/rpm/rpm/0190e8c6-d0e6-72f6-84b8-8a095de927df/","content_counts":{"rpm":32,"erratum":4,"package_group":2,"srpm":0,"module_stream":0},"mirroring_policy":"mirror_content_only","id":20,"name":"Test + Repository","label":"Test_Repository","description":null,"content_view_versions":[],"filters":[{"content_view_filter_id":80,"content_view_filter_name":"Test + Errata date Content View Filter","content_view_id":17,"content_view_name":"Test + Content View","last_affected_repo":true}],"last_sync":{"id":"13c7ce53-a0e4-4a3c-9a5e-27f4671e300d","username":"admin","started_at":"2024-07-25 + 07:24:18 UTC","ended_at":"2024-07-25 07:24:23 UTC","state":"stopped","result":"success","progress":1.0},"content_view":{"id":16,"name":"Default + Organization View"},"content_view_version":{"id":9,"name":"Default Organization + View 1.0","content_view_id":16},"kt_environment":{"id":9,"name":"Library"},"content_type":"yum","url":"https://repos.fedorapeople.org/pulp/pulp/demo_repos/zoo/","arch":"noarch","os_versions":[],"content_id":"1721892254686","generic_remote_options":null,"major":null,"minor":null,"product":{"id":8,"cp_id":"527370220153","name":"Test + Product","orphaned":false,"redhat":false,"sync_plan":null},"content_label":"Test_Organization_Test_Product_Test_Repository","last_sync_words":"less + than a minute"}],"type":"erratum","rules":[]}]} ' headers: @@ -336,7 +336,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '3156' + - '3235' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -350,7 +350,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.1 + - 3.12.0-develop Keep-Alive: - timeout=15, max=95 Strict-Transport-Security: @@ -380,25 +380,25 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/content_views/10/filters/10 + uri: https://foreman.example.org/katello/api/content_views/17/filters/80 response: body: - string: ' {"inclusion":false,"id":10,"name":"Test Errata date Content View - Filter","description":null,"created_at":"2023-11-15 09:55:19 UTC","updated_at":"2023-11-15 - 09:55:19 UTC","content_view":{"composite":false,"component_ids":[],"default":false,"version_count":0,"latest_version":null,"latest_version_id":null,"auto_publish":false,"solve_dependencies":false,"import_only":false,"generated_for":"none","related_cv_count":0,"related_composite_cvs":[],"needs_publish":true,"filtered":true,"repository_ids":[18],"id":10,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":5,"organization":{"name":"Test - Organization","label":"Test_Organization","id":5},"created_at":"2023-11-15 - 09:55:08 UTC","updated_at":"2023-11-15 09:55:08 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":18,"name":"Test - Repository","label":"Test_Repository","content_type":"yum","product":{"id":10,"name":"Test - Product"},"content_counts":{"docker_manifest":0,"docker_tag":0,"rpm":32,"package":32,"package_group":2,"erratum":4,"module_stream":0}}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]},"repositories":[{"backend_identifier":"29b3d88f-d4d9-4411-b1db-69f3a9c7df12","relative_path":"Test_Organization/Library/custom/Test_Product/Test_Repository","container_repository_name":null,"full_path":"https://centos8-stream-katello-4-9.tanso.example.com/pulp/content/Test_Organization/Library/custom/Test_Product/Test_Repository/","library_instance_id":null,"version_href":"/pulp/api/v3/repositories/rpm/rpm/00e6944a-841e-4bfe-9416-070861ef58fb/versions/1/","remote_href":"/pulp/api/v3/remotes/rpm/rpm/7e1e16ba-4432-4a52-988e-3da939154cbe/","publication_href":"/pulp/api/v3/publications/rpm/rpm/9695e87f-67d7-4765-9f98-e9a13987baef/","content_counts":{"rpm":32,"erratum":4,"package_group":2,"srpm":0,"module_stream":0},"mirroring_policy":"mirror_content_only","id":18,"name":"Test - Repository","label":"Test_Repository","description":null,"content_view_versions":[],"filters":[{"content_view_filter_id":10,"content_view_filter_name":"Test - Errata date Content View Filter","content_view_id":10,"content_view_name":"Test - Content View","last_affected_repo":true}],"last_sync":{"id":"0c110a6a-16e1-487f-a587-0ab648d99eda","username":"admin","started_at":"2023-11-15 - 09:54:33 UTC","ended_at":"2023-11-15 09:54:46 UTC","state":"stopped","result":"success","progress":1.0},"content_view":{"id":9,"name":"Default - Organization View"},"content_view_version":{"id":8,"name":"Default Organization - View 1.0","content_view_id":9},"kt_environment":{"id":4,"name":"Library"},"content_type":"yum","url":"https://repos.fedorapeople.org/pulp/pulp/demo_repos/zoo/","arch":"noarch","os_versions":[],"content_id":"1700042066424","generic_remote_options":null,"major":null,"minor":null,"product":{"id":10,"cp_id":"347380074197","name":"Test - Product","orphaned":false,"redhat":false,"sync_plan":null},"content_label":"Test_Organization_Test_Product_Test_Repository","last_sync_words":"1 - minute"}],"type":"erratum","rules":[]} + string: ' {"inclusion":false,"id":80,"name":"Test Errata date Content View + Filter","description":null,"created_at":"2024-07-25 07:24:50 UTC","updated_at":"2024-07-25 + 07:24:50 UTC","content_view":{"composite":false,"component_ids":[],"duplicate_repositories_to_publish":[],"default":false,"version_count":0,"latest_version":null,"latest_version_id":null,"auto_publish":false,"solve_dependencies":false,"import_only":false,"generated_for":"none","related_cv_count":0,"related_composite_cvs":[],"filtered":true,"repository_ids":[20],"id":17,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":10,"organization":{"name":"Test + Organization","label":"Test_Organization","id":10},"created_at":"2024-07-25 + 07:24:40 UTC","updated_at":"2024-07-25 07:24:40 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":20,"name":"Test + Repository","label":"Test_Repository","content_type":"yum","product":{"id":8,"name":"Test + Product"},"content_counts":{"docker_manifest":0,"docker_tag":0,"rpm":32,"package":32,"package_group":2,"erratum":4,"module_stream":0}}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]},"repositories":[{"backend_identifier":"c42d6bfb-3280-4660-9f2c-c76c786fa382","relative_path":"Test_Organization/Library/custom/Test_Product/Test_Repository","container_repository_name":"test_organization-test_product-test_repository","full_path":"https://centos8-stream-katello-nightly.tanso.example.com/pulp/content/Test_Organization/Library/custom/Test_Product/Test_Repository/","library_instance_id":null,"version_href":"/pulp/api/v3/repositories/rpm/rpm/0190e8c6-b36d-7e8e-80f0-a0b6470e39c9/versions/1/","remote_href":"/pulp/api/v3/remotes/rpm/rpm/0190e8c6-b9d8-7aa7-a1d8-f8f81d2e719a/","publication_href":"/pulp/api/v3/publications/rpm/rpm/0190e8c6-d0e6-72f6-84b8-8a095de927df/","content_counts":{"rpm":32,"erratum":4,"package_group":2,"srpm":0,"module_stream":0},"mirroring_policy":"mirror_content_only","id":20,"name":"Test + Repository","label":"Test_Repository","description":null,"content_view_versions":[],"filters":[{"content_view_filter_id":80,"content_view_filter_name":"Test + Errata date Content View Filter","content_view_id":17,"content_view_name":"Test + Content View","last_affected_repo":true}],"last_sync":{"id":"13c7ce53-a0e4-4a3c-9a5e-27f4671e300d","username":"admin","started_at":"2024-07-25 + 07:24:18 UTC","ended_at":"2024-07-25 07:24:23 UTC","state":"stopped","result":"success","progress":1.0},"content_view":{"id":16,"name":"Default + Organization View"},"content_view_version":{"id":9,"name":"Default Organization + View 1.0","content_view_id":16},"kt_environment":{"id":9,"name":"Library"},"content_type":"yum","url":"https://repos.fedorapeople.org/pulp/pulp/demo_repos/zoo/","arch":"noarch","os_versions":[],"content_id":"1721892254686","generic_remote_options":null,"major":null,"minor":null,"product":{"id":8,"cp_id":"527370220153","name":"Test + Product","orphaned":false,"redhat":false,"sync_plan":null},"content_label":"Test_Organization_Test_Product_Test_Repository","last_sync_words":"less + than a minute"}],"type":"erratum","rules":[]} ' headers: @@ -407,7 +407,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '3134' + - '3212' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -421,7 +421,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.1 + - 3.12.0-develop Keep-Alive: - timeout=15, max=94 Strict-Transport-Security: diff --git a/tests/test_playbooks/fixtures/content_view_filter-13.yml b/tests/test_playbooks/fixtures/content_view_filter-13.yml index 1e0727b4..cdefc421 100644 --- a/tests/test_playbooks/fixtures/content_view_filter-13.yml +++ b/tests/test_playbooks/fixtures/content_view_filter-13.yml @@ -14,14 +14,14 @@ interactions: uri: https://foreman.example.org/api/status response: body: - string: '{"result":"ok","status":200,"version":"3.7.1","api_version":2}' + string: '{"result":"ok","status":200,"version":"3.12.0-develop","api_version":2}' headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive Content-Length: - - '62' + - '71' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -35,7 +35,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.1 + - 3.12.0-develop Keep-Alive: - timeout=15, max=100 Strict-Transport-Security: @@ -70,8 +70,8 @@ interactions: body: string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": 4294967296,\n \"search\": \"name=\\\"Test Organization\\\"\",\n \"sort\": - {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\":\"Test_Organization\",\"created_at\":\"2023-11-15 - 09:54:22 UTC\",\"updated_at\":\"2023-11-15 09:54:23 UTC\",\"id\":5,\"name\":\"Test + {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\":\"Test_Organization\",\"created_at\":\"2024-07-25 + 07:24:10 UTC\",\"updated_at\":\"2024-07-25 07:24:12 UTC\",\"id\":10,\"name\":\"Test Organization\",\"title\":\"Test Organization\",\"description\":\"A test organization\"}]\n}\n" headers: Cache-Control: @@ -79,7 +79,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '388' + - '389' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -93,7 +93,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.1 + - 3.12.0-develop Keep-Alive: - timeout=15, max=99 Strict-Transport-Security: @@ -123,14 +123,14 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/organizations/5/content_views?search=name%3D%22Test+Content+View%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/organizations/10/content_views?search=name%3D%22Test+Content+View%22&per_page=4294967296 response: body: string: '{"total":2,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Content View\"","sort":{"by":"name","order":"asc"},"results":[{"composite":false,"component_ids":[],"default":false,"version_count":0,"latest_version":null,"latest_version_id":null,"auto_publish":false,"solve_dependencies":false,"import_only":false,"generated_for":"none","related_cv_count":0,"related_composite_cvs":[],"needs_publish":true,"filtered":true,"repository_ids":[18],"id":10,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":5,"organization":{"name":"Test - Organization","label":"Test_Organization","id":5},"created_at":"2023-11-15 - 09:55:08 UTC","updated_at":"2023-11-15 09:55:08 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":18,"name":"Test + Content View\"","sort":{"by":"name","order":"asc"},"results":[{"composite":false,"component_ids":[],"duplicate_repositories_to_publish":[],"default":false,"version_count":0,"latest_version":null,"latest_version_id":null,"auto_publish":false,"solve_dependencies":false,"import_only":false,"generated_for":"none","related_cv_count":0,"related_composite_cvs":[],"filtered":true,"repository_ids":[20],"id":17,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":10,"organization":{"name":"Test + Organization","label":"Test_Organization","id":10},"created_at":"2024-07-25 + 07:24:40 UTC","updated_at":"2024-07-25 07:24:40 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":20,"name":"Test Repository","label":"Test_Repository","content_type":"yum"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]}]} ' @@ -140,7 +140,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '1049' + - '1069' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -152,9 +152,9 @@ interactions: Foreman_current_location: - ; ANY Foreman_current_organization: - - 5; Test Organization + - 10; Test Organization Foreman_version: - - 3.7.1 + - 3.12.0-develop Keep-Alive: - timeout=15, max=98 Strict-Transport-Security: @@ -184,14 +184,14 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/organizations/5/products?search=name%3D%22Test+Product%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/organizations/10/products?search=name%3D%22Test+Product%22&per_page=4294967296 response: body: string: '{"total":1,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Product\"","sort":{"by":"name","order":"asc"},"results":[{"id":10,"cp_id":"347380074197","name":"Test - Product","label":"Test_Product","description":"A happy little test product","provider_id":7,"sync_plan_id":null,"sync_summary":{"success":3},"gpg_key_id":null,"ssl_ca_cert_id":null,"ssl_client_cert_id":null,"ssl_client_key_id":null,"sync_state":"Syncing - Complete.","last_sync":"2023-11-15 09:54:59 UTC","last_sync_words":"less than - a minute","organization_id":5,"organization":{"name":"Test Organization","label":"Test_Organization","id":5},"sync_plan":null,"repository_count":3}]} + Product\"","sort":{"by":"name","order":"asc"},"results":[{"id":8,"cp_id":"527370220153","name":"Test + Product","label":"Test_Product","description":"A happy little test product","provider_id":17,"sync_plan_id":null,"sync_summary":{"success":2},"gpg_key_id":null,"ssl_ca_cert_id":null,"ssl_client_cert_id":null,"ssl_client_key_id":null,"sync_state":"Syncing + Complete.","last_sync":"2024-07-25 07:24:35 UTC","last_sync_words":"less than + a minute","organization_id":10,"organization":{"name":"Test Organization","label":"Test_Organization","id":10},"sync_plan":null,"repository_count":2}]} ' headers: @@ -200,7 +200,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '691' + - '693' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -212,9 +212,9 @@ interactions: Foreman_current_location: - ; ANY Foreman_current_organization: - - 5; Test Organization + - 10; Test Organization Foreman_version: - - 3.7.1 + - 3.12.0-develop Keep-Alive: - timeout=15, max=97 Strict-Transport-Security: @@ -244,19 +244,19 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/products/10/repositories?search=name%3D%22Test+Repository%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/products/8/repositories?search=name%3D%22Test+Repository%22&per_page=4294967296 response: body: - string: '{"total":3,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Repository\"","sort":{"by":"name","order":"asc"},"results":[{"backend_identifier":"29b3d88f-d4d9-4411-b1db-69f3a9c7df12","relative_path":"Test_Organization/Library/custom/Test_Product/Test_Repository","container_repository_name":null,"full_path":"https://centos8-stream-katello-4-9.tanso.example.com/pulp/content/Test_Organization/Library/custom/Test_Product/Test_Repository/","library_instance_id":null,"version_href":"/pulp/api/v3/repositories/rpm/rpm/00e6944a-841e-4bfe-9416-070861ef58fb/versions/1/","remote_href":"/pulp/api/v3/remotes/rpm/rpm/7e1e16ba-4432-4a52-988e-3da939154cbe/","publication_href":"/pulp/api/v3/publications/rpm/rpm/9695e87f-67d7-4765-9f98-e9a13987baef/","content_counts":{"rpm":32,"erratum":4,"package_group":2,"srpm":0,"module_stream":0},"mirroring_policy":"mirror_content_only","id":18,"name":"Test - Repository","label":"Test_Repository","description":null,"content_view_versions":[],"filters":[{"content_view_filter_id":10,"content_view_filter_name":"Test - Errata date Content View Filter","content_view_id":10,"content_view_name":"Test - Content View","last_affected_repo":true}],"last_sync":{"id":"0c110a6a-16e1-487f-a587-0ab648d99eda","username":"admin","started_at":"2023-11-15 - 09:54:33 UTC","ended_at":"2023-11-15 09:54:46 UTC","state":"stopped","result":"success","progress":1.0},"content_view":{"id":9,"name":"Default - Organization View"},"content_view_version":{"id":8,"name":"Default Organization - View 1.0","content_view_id":9},"kt_environment":{"id":4,"name":"Library"},"content_type":"yum","url":"https://repos.fedorapeople.org/pulp/pulp/demo_repos/zoo/","arch":"noarch","os_versions":[],"content_id":"1700042066424","generic_remote_options":null,"major":null,"minor":null,"product":{"id":10,"cp_id":"347380074197","name":"Test - Product","orphaned":false,"redhat":false,"sync_plan":null},"content_label":"Test_Organization_Test_Product_Test_Repository","last_sync_words":"1 - minute"}],"org_repository_count":3} + string: '{"total":2,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test + Repository\"","sort":{"by":"name","order":"asc"},"results":[{"backend_identifier":"c42d6bfb-3280-4660-9f2c-c76c786fa382","relative_path":"Test_Organization/Library/custom/Test_Product/Test_Repository","container_repository_name":"test_organization-test_product-test_repository","full_path":"https://centos8-stream-katello-nightly.tanso.example.com/pulp/content/Test_Organization/Library/custom/Test_Product/Test_Repository/","library_instance_id":null,"version_href":"/pulp/api/v3/repositories/rpm/rpm/0190e8c6-b36d-7e8e-80f0-a0b6470e39c9/versions/1/","remote_href":"/pulp/api/v3/remotes/rpm/rpm/0190e8c6-b9d8-7aa7-a1d8-f8f81d2e719a/","publication_href":"/pulp/api/v3/publications/rpm/rpm/0190e8c6-d0e6-72f6-84b8-8a095de927df/","content_counts":{"rpm":32,"erratum":4,"package_group":2,"srpm":0,"module_stream":0},"mirroring_policy":"mirror_content_only","id":20,"name":"Test + Repository","label":"Test_Repository","description":null,"content_view_versions":[],"filters":[{"content_view_filter_id":80,"content_view_filter_name":"Test + Errata date Content View Filter","content_view_id":17,"content_view_name":"Test + Content View","last_affected_repo":true}],"last_sync":{"id":"13c7ce53-a0e4-4a3c-9a5e-27f4671e300d","username":"admin","started_at":"2024-07-25 + 07:24:18 UTC","ended_at":"2024-07-25 07:24:23 UTC","state":"stopped","result":"success","progress":1.0},"content_view":{"id":16,"name":"Default + Organization View"},"content_view_version":{"id":9,"name":"Default Organization + View 1.0","content_view_id":16},"kt_environment":{"id":9,"name":"Library"},"content_type":"yum","url":"https://repos.fedorapeople.org/pulp/pulp/demo_repos/zoo/","arch":"noarch","os_versions":[],"content_id":"1721892254686","generic_remote_options":null,"major":null,"minor":null,"product":{"id":8,"cp_id":"527370220153","name":"Test + Product","orphaned":false,"redhat":false,"sync_plan":null},"content_label":"Test_Organization_Test_Product_Test_Repository","last_sync_words":"less + than a minute"}],"org_repository_count":2} ' headers: @@ -265,7 +265,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '2051' + - '2110' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -279,7 +279,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.1 + - 3.12.0-develop Keep-Alive: - timeout=15, max=96 Strict-Transport-Security: @@ -309,25 +309,25 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/content_views/10/filters?search=name%3D%22Test+Errata+date+Content+View+Filter%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/content_views/17/filters?search=name%3D%22Test+Errata+date+Content+View+Filter%22&per_page=4294967296 response: body: string: '{"total":1,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Errata date Content View Filter\"","sort":{"by":"name","order":"asc"},"results":[{"inclusion":false,"id":10,"name":"Test - Errata date Content View Filter","description":null,"created_at":"2023-11-15 - 09:55:19 UTC","updated_at":"2023-11-15 09:55:19 UTC","content_view":{"composite":false,"component_ids":[],"default":false,"version_count":0,"latest_version":null,"latest_version_id":null,"auto_publish":false,"solve_dependencies":false,"import_only":false,"generated_for":"none","related_cv_count":0,"related_composite_cvs":[],"needs_publish":true,"filtered":true,"repository_ids":[18],"id":10,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":5,"organization":{"name":"Test - Organization","label":"Test_Organization","id":5},"created_at":"2023-11-15 - 09:55:08 UTC","updated_at":"2023-11-15 09:55:08 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":18,"name":"Test - Repository","label":"Test_Repository","content_type":"yum"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]},"repositories":[{"backend_identifier":"29b3d88f-d4d9-4411-b1db-69f3a9c7df12","relative_path":"Test_Organization/Library/custom/Test_Product/Test_Repository","container_repository_name":null,"full_path":"https://centos8-stream-katello-4-9.tanso.example.com/pulp/content/Test_Organization/Library/custom/Test_Product/Test_Repository/","library_instance_id":null,"version_href":"/pulp/api/v3/repositories/rpm/rpm/00e6944a-841e-4bfe-9416-070861ef58fb/versions/1/","remote_href":"/pulp/api/v3/remotes/rpm/rpm/7e1e16ba-4432-4a52-988e-3da939154cbe/","publication_href":"/pulp/api/v3/publications/rpm/rpm/9695e87f-67d7-4765-9f98-e9a13987baef/","content_counts":{"rpm":32,"erratum":4,"package_group":2,"srpm":0,"module_stream":0},"mirroring_policy":"mirror_content_only","id":18,"name":"Test - Repository","label":"Test_Repository","description":null,"content_view_versions":[],"filters":[{"content_view_filter_id":10,"content_view_filter_name":"Test - Errata date Content View Filter","content_view_id":10,"content_view_name":"Test - Content View","last_affected_repo":true}],"last_sync":{"id":"0c110a6a-16e1-487f-a587-0ab648d99eda","username":"admin","started_at":"2023-11-15 - 09:54:33 UTC","ended_at":"2023-11-15 09:54:46 UTC","state":"stopped","result":"success","progress":1.0},"content_view":{"id":9,"name":"Default - Organization View"},"content_view_version":{"id":8,"name":"Default Organization - View 1.0","content_view_id":9},"kt_environment":{"id":4,"name":"Library"},"content_type":"yum","url":"https://repos.fedorapeople.org/pulp/pulp/demo_repos/zoo/","arch":"noarch","os_versions":[],"content_id":"1700042066424","generic_remote_options":null,"major":null,"minor":null,"product":{"id":10,"cp_id":"347380074197","name":"Test - Product","orphaned":false,"redhat":false,"sync_plan":null},"content_label":"Test_Organization_Test_Product_Test_Repository","last_sync_words":"1 - minute"}],"type":"erratum","rules":[]}]} + Errata date Content View Filter\"","sort":{"by":"name","order":"asc"},"results":[{"inclusion":false,"id":80,"name":"Test + Errata date Content View Filter","description":null,"created_at":"2024-07-25 + 07:24:50 UTC","updated_at":"2024-07-25 07:24:50 UTC","content_view":{"composite":false,"component_ids":[],"duplicate_repositories_to_publish":[],"default":false,"version_count":0,"latest_version":null,"latest_version_id":null,"auto_publish":false,"solve_dependencies":false,"import_only":false,"generated_for":"none","related_cv_count":0,"related_composite_cvs":[],"filtered":true,"repository_ids":[20],"id":17,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":10,"organization":{"name":"Test + Organization","label":"Test_Organization","id":10},"created_at":"2024-07-25 + 07:24:40 UTC","updated_at":"2024-07-25 07:24:40 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":20,"name":"Test + Repository","label":"Test_Repository","content_type":"yum"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]},"repositories":[{"backend_identifier":"c42d6bfb-3280-4660-9f2c-c76c786fa382","relative_path":"Test_Organization/Library/custom/Test_Product/Test_Repository","container_repository_name":"test_organization-test_product-test_repository","full_path":"https://centos8-stream-katello-nightly.tanso.example.com/pulp/content/Test_Organization/Library/custom/Test_Product/Test_Repository/","library_instance_id":null,"version_href":"/pulp/api/v3/repositories/rpm/rpm/0190e8c6-b36d-7e8e-80f0-a0b6470e39c9/versions/1/","remote_href":"/pulp/api/v3/remotes/rpm/rpm/0190e8c6-b9d8-7aa7-a1d8-f8f81d2e719a/","publication_href":"/pulp/api/v3/publications/rpm/rpm/0190e8c6-d0e6-72f6-84b8-8a095de927df/","content_counts":{"rpm":32,"erratum":4,"package_group":2,"srpm":0,"module_stream":0},"mirroring_policy":"mirror_content_only","id":20,"name":"Test + Repository","label":"Test_Repository","description":null,"content_view_versions":[],"filters":[{"content_view_filter_id":80,"content_view_filter_name":"Test + Errata date Content View Filter","content_view_id":17,"content_view_name":"Test + Content View","last_affected_repo":true}],"last_sync":{"id":"13c7ce53-a0e4-4a3c-9a5e-27f4671e300d","username":"admin","started_at":"2024-07-25 + 07:24:18 UTC","ended_at":"2024-07-25 07:24:23 UTC","state":"stopped","result":"success","progress":1.0},"content_view":{"id":16,"name":"Default + Organization View"},"content_view_version":{"id":9,"name":"Default Organization + View 1.0","content_view_id":16},"kt_environment":{"id":9,"name":"Library"},"content_type":"yum","url":"https://repos.fedorapeople.org/pulp/pulp/demo_repos/zoo/","arch":"noarch","os_versions":[],"content_id":"1721892254686","generic_remote_options":null,"major":null,"minor":null,"product":{"id":8,"cp_id":"527370220153","name":"Test + Product","orphaned":false,"redhat":false,"sync_plan":null},"content_label":"Test_Organization_Test_Product_Test_Repository","last_sync_words":"less + than a minute"}],"type":"erratum","rules":[]}]} ' headers: @@ -336,7 +336,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '3156' + - '3235' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -350,7 +350,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.1 + - 3.12.0-develop Keep-Alive: - timeout=15, max=95 Strict-Transport-Security: @@ -368,77 +368,6 @@ interactions: status: code: 200 message: OK -- request: - body: null - headers: - Accept: - - application/json;version=2 - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - apypie (https://github.com/Apipie/apypie) - method: GET - uri: https://foreman.example.org/katello/api/content_views/10/filters/10 - response: - body: - string: ' {"inclusion":false,"id":10,"name":"Test Errata date Content View - Filter","description":null,"created_at":"2023-11-15 09:55:19 UTC","updated_at":"2023-11-15 - 09:55:19 UTC","content_view":{"composite":false,"component_ids":[],"default":false,"version_count":0,"latest_version":null,"latest_version_id":null,"auto_publish":false,"solve_dependencies":false,"import_only":false,"generated_for":"none","related_cv_count":0,"related_composite_cvs":[],"needs_publish":true,"filtered":true,"repository_ids":[18],"id":10,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":5,"organization":{"name":"Test - Organization","label":"Test_Organization","id":5},"created_at":"2023-11-15 - 09:55:08 UTC","updated_at":"2023-11-15 09:55:08 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":18,"name":"Test - Repository","label":"Test_Repository","content_type":"yum","product":{"id":10,"name":"Test - Product"},"content_counts":{"docker_manifest":0,"docker_tag":0,"rpm":32,"package":32,"package_group":2,"erratum":4,"module_stream":0}}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]},"repositories":[{"backend_identifier":"29b3d88f-d4d9-4411-b1db-69f3a9c7df12","relative_path":"Test_Organization/Library/custom/Test_Product/Test_Repository","container_repository_name":null,"full_path":"https://centos8-stream-katello-4-9.tanso.example.com/pulp/content/Test_Organization/Library/custom/Test_Product/Test_Repository/","library_instance_id":null,"version_href":"/pulp/api/v3/repositories/rpm/rpm/00e6944a-841e-4bfe-9416-070861ef58fb/versions/1/","remote_href":"/pulp/api/v3/remotes/rpm/rpm/7e1e16ba-4432-4a52-988e-3da939154cbe/","publication_href":"/pulp/api/v3/publications/rpm/rpm/9695e87f-67d7-4765-9f98-e9a13987baef/","content_counts":{"rpm":32,"erratum":4,"package_group":2,"srpm":0,"module_stream":0},"mirroring_policy":"mirror_content_only","id":18,"name":"Test - Repository","label":"Test_Repository","description":null,"content_view_versions":[],"filters":[{"content_view_filter_id":10,"content_view_filter_name":"Test - Errata date Content View Filter","content_view_id":10,"content_view_name":"Test - Content View","last_affected_repo":true}],"last_sync":{"id":"0c110a6a-16e1-487f-a587-0ab648d99eda","username":"admin","started_at":"2023-11-15 - 09:54:33 UTC","ended_at":"2023-11-15 09:54:46 UTC","state":"stopped","result":"success","progress":1.0},"content_view":{"id":9,"name":"Default - Organization View"},"content_view_version":{"id":8,"name":"Default Organization - View 1.0","content_view_id":9},"kt_environment":{"id":4,"name":"Library"},"content_type":"yum","url":"https://repos.fedorapeople.org/pulp/pulp/demo_repos/zoo/","arch":"noarch","os_versions":[],"content_id":"1700042066424","generic_remote_options":null,"major":null,"minor":null,"product":{"id":10,"cp_id":"347380074197","name":"Test - Product","orphaned":false,"redhat":false,"sync_plan":null},"content_label":"Test_Organization_Test_Product_Test_Repository","last_sync_words":"1 - minute"}],"type":"erratum","rules":[]} - - ' - headers: - Cache-Control: - - max-age=0, private, must-revalidate - Connection: - - Keep-Alive - Content-Length: - - '3134' - Content-Security-Policy: - - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; - style-src ''unsafe-inline'' ''self''' - Content-Type: - - application/json; charset=utf-8 - Foreman_api_version: - - '2' - Foreman_current_location: - - ; ANY - Foreman_current_organization: - - ; ANY - Foreman_version: - - 3.7.1 - Keep-Alive: - - timeout=15, max=94 - Strict-Transport-Security: - - max-age=631139040; includeSubdomains - X-Content-Type-Options: - - nosniff - X-Download-Options: - - noopen - X-Frame-Options: - - sameorigin - X-Permitted-Cross-Domain-Policies: - - none - X-XSS-Protection: - - 1; mode=block - status: - code: 200 - message: OK - request: body: null headers: @@ -453,16 +382,16 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: DELETE - uri: https://foreman.example.org/katello/api/content_views/10/filters/10 + uri: https://foreman.example.org/katello/api/content_views/17/filters/80 response: body: - string: ' {"inclusion":false,"id":10,"name":"Test Errata date Content View - Filter","description":null,"created_at":"2023-11-15 09:55:19 UTC","updated_at":"2023-11-15 - 09:55:19 UTC","content_view":{"composite":false,"component_ids":[],"default":false,"version_count":0,"latest_version":null,"latest_version_id":null,"auto_publish":false,"solve_dependencies":false,"import_only":false,"generated_for":"none","related_cv_count":0,"related_composite_cvs":[],"needs_publish":true,"filtered":false,"repository_ids":[18],"id":10,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":5,"organization":{"name":"Test - Organization","label":"Test_Organization","id":5},"created_at":"2023-11-15 - 09:55:08 UTC","updated_at":"2023-11-15 09:55:08 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":18,"name":"Test - Repository","label":"Test_Repository","content_type":"yum","product":{"id":10,"name":"Test + string: ' {"inclusion":false,"id":80,"name":"Test Errata date Content View + Filter","description":null,"created_at":"2024-07-25 07:24:50 UTC","updated_at":"2024-07-25 + 07:24:50 UTC","content_view":{"composite":false,"component_ids":[],"duplicate_repositories_to_publish":[],"default":false,"version_count":0,"latest_version":null,"latest_version_id":null,"auto_publish":false,"solve_dependencies":false,"import_only":false,"generated_for":"none","related_cv_count":0,"related_composite_cvs":[],"filtered":false,"repository_ids":[20],"id":17,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":10,"organization":{"name":"Test + Organization","label":"Test_Organization","id":10},"created_at":"2024-07-25 + 07:24:40 UTC","updated_at":"2024-07-25 07:24:40 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":20,"name":"Test + Repository","label":"Test_Repository","content_type":"yum","product":{"id":8,"name":"Test Product"},"content_counts":{"docker_manifest":0,"docker_tag":0,"rpm":32,"package":32,"package_group":2,"erratum":4,"module_stream":0}}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]},"repositories":[],"type":"erratum","rules":[]} ' @@ -472,7 +401,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '1279' + - '1298' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -486,9 +415,9 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.1 + - 3.12.0-develop Keep-Alive: - - timeout=15, max=93 + - timeout=15, max=94 Strict-Transport-Security: - max-age=631139040; includeSubdomains X-Content-Type-Options: diff --git a/tests/test_playbooks/fixtures/content_view_filter-14.yml b/tests/test_playbooks/fixtures/content_view_filter-14.yml index 021428a6..b4fa515d 100644 --- a/tests/test_playbooks/fixtures/content_view_filter-14.yml +++ b/tests/test_playbooks/fixtures/content_view_filter-14.yml @@ -14,14 +14,14 @@ interactions: uri: https://foreman.example.org/api/status response: body: - string: '{"result":"ok","status":200,"version":"3.7.1","api_version":2}' + string: '{"result":"ok","status":200,"version":"3.12.0-develop","api_version":2}' headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive Content-Length: - - '62' + - '71' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -35,7 +35,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.1 + - 3.12.0-develop Keep-Alive: - timeout=15, max=100 Strict-Transport-Security: @@ -70,8 +70,8 @@ interactions: body: string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": 4294967296,\n \"search\": \"name=\\\"Test Organization\\\"\",\n \"sort\": - {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\":\"Test_Organization\",\"created_at\":\"2023-11-15 - 09:54:22 UTC\",\"updated_at\":\"2023-11-15 09:54:23 UTC\",\"id\":5,\"name\":\"Test + {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\":\"Test_Organization\",\"created_at\":\"2024-07-25 + 07:24:10 UTC\",\"updated_at\":\"2024-07-25 07:24:12 UTC\",\"id\":10,\"name\":\"Test Organization\",\"title\":\"Test Organization\",\"description\":\"A test organization\"}]\n}\n" headers: Cache-Control: @@ -79,7 +79,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '388' + - '389' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -93,7 +93,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.1 + - 3.12.0-develop Keep-Alive: - timeout=15, max=99 Strict-Transport-Security: @@ -123,14 +123,14 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/organizations/5/content_views?search=name%3D%22Test+Content+View%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/organizations/10/content_views?search=name%3D%22Test+Content+View%22&per_page=4294967296 response: body: string: '{"total":2,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Content View\"","sort":{"by":"name","order":"asc"},"results":[{"composite":false,"component_ids":[],"default":false,"version_count":0,"latest_version":null,"latest_version_id":null,"auto_publish":false,"solve_dependencies":false,"import_only":false,"generated_for":"none","related_cv_count":0,"related_composite_cvs":[],"needs_publish":true,"filtered":false,"repository_ids":[18],"id":10,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":5,"organization":{"name":"Test - Organization","label":"Test_Organization","id":5},"created_at":"2023-11-15 - 09:55:08 UTC","updated_at":"2023-11-15 09:55:08 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":18,"name":"Test + Content View\"","sort":{"by":"name","order":"asc"},"results":[{"composite":false,"component_ids":[],"duplicate_repositories_to_publish":[],"default":false,"version_count":0,"latest_version":null,"latest_version_id":null,"auto_publish":false,"solve_dependencies":false,"import_only":false,"generated_for":"none","related_cv_count":0,"related_composite_cvs":[],"filtered":false,"repository_ids":[20],"id":17,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":10,"organization":{"name":"Test + Organization","label":"Test_Organization","id":10},"created_at":"2024-07-25 + 07:24:40 UTC","updated_at":"2024-07-25 07:24:40 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":20,"name":"Test Repository","label":"Test_Repository","content_type":"yum"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]}]} ' @@ -140,7 +140,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '1050' + - '1070' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -152,9 +152,9 @@ interactions: Foreman_current_location: - ; ANY Foreman_current_organization: - - 5; Test Organization + - 10; Test Organization Foreman_version: - - 3.7.1 + - 3.12.0-develop Keep-Alive: - timeout=15, max=98 Strict-Transport-Security: @@ -184,7 +184,7 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/content_views/10/filters?search=name%3D%22Test+Package+Group+Content+View+Filter%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/content_views/17/filters?search=name%3D%22Test+Package+Group+Content+View+Filter%22&per_page=4294967296 response: body: string: '{"total":0,"subtotal":0,"selectable":0,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test @@ -211,7 +211,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.1 + - 3.12.0-develop Keep-Alive: - timeout=15, max=97 Strict-Transport-Security: @@ -246,16 +246,16 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: POST - uri: https://foreman.example.org/katello/api/content_views/10/filters + uri: https://foreman.example.org/katello/api/content_views/17/filters response: body: - string: ' {"inclusion":false,"id":11,"name":"Test Package Group Content View - Filter","description":null,"created_at":"2023-11-15 09:55:21 UTC","updated_at":"2023-11-15 - 09:55:21 UTC","content_view":{"composite":false,"component_ids":[],"default":false,"version_count":0,"latest_version":null,"latest_version_id":null,"auto_publish":false,"solve_dependencies":false,"import_only":false,"generated_for":"none","related_cv_count":0,"related_composite_cvs":[],"needs_publish":true,"filtered":true,"repository_ids":[18],"id":10,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":5,"organization":{"name":"Test - Organization","label":"Test_Organization","id":5},"created_at":"2023-11-15 - 09:55:08 UTC","updated_at":"2023-11-15 09:55:08 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":18,"name":"Test - Repository","label":"Test_Repository","content_type":"yum","product":{"id":10,"name":"Test + string: ' {"inclusion":false,"id":81,"name":"Test Package Group Content View + Filter","description":null,"created_at":"2024-07-25 07:24:52 UTC","updated_at":"2024-07-25 + 07:24:52 UTC","content_view":{"composite":false,"component_ids":[],"duplicate_repositories_to_publish":[],"default":false,"version_count":0,"latest_version":null,"latest_version_id":null,"auto_publish":false,"solve_dependencies":false,"import_only":false,"generated_for":"none","related_cv_count":0,"related_composite_cvs":[],"filtered":true,"repository_ids":[20],"id":17,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":10,"organization":{"name":"Test + Organization","label":"Test_Organization","id":10},"created_at":"2024-07-25 + 07:24:40 UTC","updated_at":"2024-07-25 07:24:40 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":20,"name":"Test + Repository","label":"Test_Repository","content_type":"yum","product":{"id":8,"name":"Test Product"},"content_counts":{"docker_manifest":0,"docker_tag":0,"rpm":32,"package":32,"package_group":2,"erratum":4,"module_stream":0}}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]},"repositories":[],"type":"package_group","rules":[]} ' @@ -265,7 +265,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '1286' + - '1305' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -279,7 +279,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.1 + - 3.12.0-develop Keep-Alive: - timeout=15, max=96 Strict-Transport-Security: diff --git a/tests/test_playbooks/fixtures/content_view_filter-15.yml b/tests/test_playbooks/fixtures/content_view_filter-15.yml index e529f595..9d836ed6 100644 --- a/tests/test_playbooks/fixtures/content_view_filter-15.yml +++ b/tests/test_playbooks/fixtures/content_view_filter-15.yml @@ -14,14 +14,14 @@ interactions: uri: https://foreman.example.org/api/status response: body: - string: '{"result":"ok","status":200,"version":"3.7.1","api_version":2}' + string: '{"result":"ok","status":200,"version":"3.12.0-develop","api_version":2}' headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive Content-Length: - - '62' + - '71' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -35,7 +35,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.1 + - 3.12.0-develop Keep-Alive: - timeout=15, max=100 Strict-Transport-Security: @@ -70,8 +70,8 @@ interactions: body: string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": 4294967296,\n \"search\": \"name=\\\"Test Organization\\\"\",\n \"sort\": - {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\":\"Test_Organization\",\"created_at\":\"2023-11-15 - 09:54:22 UTC\",\"updated_at\":\"2023-11-15 09:54:23 UTC\",\"id\":5,\"name\":\"Test + {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\":\"Test_Organization\",\"created_at\":\"2024-07-25 + 07:24:10 UTC\",\"updated_at\":\"2024-07-25 07:24:12 UTC\",\"id\":10,\"name\":\"Test Organization\",\"title\":\"Test Organization\",\"description\":\"A test organization\"}]\n}\n" headers: Cache-Control: @@ -79,7 +79,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '388' + - '389' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -93,7 +93,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.1 + - 3.12.0-develop Keep-Alive: - timeout=15, max=99 Strict-Transport-Security: @@ -123,14 +123,14 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/organizations/5/content_views?search=name%3D%22Test+Content+View%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/organizations/10/content_views?search=name%3D%22Test+Content+View%22&per_page=4294967296 response: body: string: '{"total":2,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Content View\"","sort":{"by":"name","order":"asc"},"results":[{"composite":false,"component_ids":[],"default":false,"version_count":0,"latest_version":null,"latest_version_id":null,"auto_publish":false,"solve_dependencies":false,"import_only":false,"generated_for":"none","related_cv_count":0,"related_composite_cvs":[],"needs_publish":true,"filtered":true,"repository_ids":[18],"id":10,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":5,"organization":{"name":"Test - Organization","label":"Test_Organization","id":5},"created_at":"2023-11-15 - 09:55:08 UTC","updated_at":"2023-11-15 09:55:08 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":18,"name":"Test + Content View\"","sort":{"by":"name","order":"asc"},"results":[{"composite":false,"component_ids":[],"duplicate_repositories_to_publish":[],"default":false,"version_count":0,"latest_version":null,"latest_version_id":null,"auto_publish":false,"solve_dependencies":false,"import_only":false,"generated_for":"none","related_cv_count":0,"related_composite_cvs":[],"filtered":true,"repository_ids":[20],"id":17,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":10,"organization":{"name":"Test + Organization","label":"Test_Organization","id":10},"created_at":"2024-07-25 + 07:24:40 UTC","updated_at":"2024-07-25 07:24:40 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":20,"name":"Test Repository","label":"Test_Repository","content_type":"yum"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]}]} ' @@ -140,7 +140,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '1049' + - '1069' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -152,9 +152,9 @@ interactions: Foreman_current_location: - ; ANY Foreman_current_organization: - - 5; Test Organization + - 10; Test Organization Foreman_version: - - 3.7.1 + - 3.12.0-develop Keep-Alive: - timeout=15, max=98 Strict-Transport-Security: @@ -184,16 +184,16 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/content_views/10/filters?search=name%3D%22Test+Package+Group+Content+View+Filter%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/content_views/17/filters?search=name%3D%22Test+Package+Group+Content+View+Filter%22&per_page=4294967296 response: body: string: '{"total":1,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Package Group Content View Filter\"","sort":{"by":"name","order":"asc"},"results":[{"inclusion":false,"id":11,"name":"Test - Package Group Content View Filter","description":null,"created_at":"2023-11-15 - 09:55:21 UTC","updated_at":"2023-11-15 09:55:21 UTC","content_view":{"composite":false,"component_ids":[],"default":false,"version_count":0,"latest_version":null,"latest_version_id":null,"auto_publish":false,"solve_dependencies":false,"import_only":false,"generated_for":"none","related_cv_count":0,"related_composite_cvs":[],"needs_publish":true,"filtered":true,"repository_ids":[18],"id":10,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":5,"organization":{"name":"Test - Organization","label":"Test_Organization","id":5},"created_at":"2023-11-15 - 09:55:08 UTC","updated_at":"2023-11-15 09:55:08 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":18,"name":"Test + Package Group Content View Filter\"","sort":{"by":"name","order":"asc"},"results":[{"inclusion":false,"id":81,"name":"Test + Package Group Content View Filter","description":null,"created_at":"2024-07-25 + 07:24:52 UTC","updated_at":"2024-07-25 07:24:52 UTC","content_view":{"composite":false,"component_ids":[],"duplicate_repositories_to_publish":[],"default":false,"version_count":0,"latest_version":null,"latest_version_id":null,"auto_publish":false,"solve_dependencies":false,"import_only":false,"generated_for":"none","related_cv_count":0,"related_composite_cvs":[],"filtered":true,"repository_ids":[20],"id":17,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":10,"organization":{"name":"Test + Organization","label":"Test_Organization","id":10},"created_at":"2024-07-25 + 07:24:40 UTC","updated_at":"2024-07-25 07:24:40 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":20,"name":"Test Repository","label":"Test_Repository","content_type":"yum"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]},"repositories":[],"type":"package_group","rules":[]}]} ' @@ -203,7 +203,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '1310' + - '1330' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -217,7 +217,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.1 + - 3.12.0-develop Keep-Alive: - timeout=15, max=97 Strict-Transport-Security: @@ -247,16 +247,16 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/content_views/10/filters/11 + uri: https://foreman.example.org/katello/api/content_views/17/filters/81 response: body: - string: ' {"inclusion":false,"id":11,"name":"Test Package Group Content View - Filter","description":null,"created_at":"2023-11-15 09:55:21 UTC","updated_at":"2023-11-15 - 09:55:21 UTC","content_view":{"composite":false,"component_ids":[],"default":false,"version_count":0,"latest_version":null,"latest_version_id":null,"auto_publish":false,"solve_dependencies":false,"import_only":false,"generated_for":"none","related_cv_count":0,"related_composite_cvs":[],"needs_publish":true,"filtered":true,"repository_ids":[18],"id":10,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":5,"organization":{"name":"Test - Organization","label":"Test_Organization","id":5},"created_at":"2023-11-15 - 09:55:08 UTC","updated_at":"2023-11-15 09:55:08 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":18,"name":"Test - Repository","label":"Test_Repository","content_type":"yum","product":{"id":10,"name":"Test + string: ' {"inclusion":false,"id":81,"name":"Test Package Group Content View + Filter","description":null,"created_at":"2024-07-25 07:24:52 UTC","updated_at":"2024-07-25 + 07:24:52 UTC","content_view":{"composite":false,"component_ids":[],"duplicate_repositories_to_publish":[],"default":false,"version_count":0,"latest_version":null,"latest_version_id":null,"auto_publish":false,"solve_dependencies":false,"import_only":false,"generated_for":"none","related_cv_count":0,"related_composite_cvs":[],"filtered":true,"repository_ids":[20],"id":17,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":10,"organization":{"name":"Test + Organization","label":"Test_Organization","id":10},"created_at":"2024-07-25 + 07:24:40 UTC","updated_at":"2024-07-25 07:24:40 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":20,"name":"Test + Repository","label":"Test_Repository","content_type":"yum","product":{"id":8,"name":"Test Product"},"content_counts":{"docker_manifest":0,"docker_tag":0,"rpm":32,"package":32,"package_group":2,"erratum":4,"module_stream":0}}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]},"repositories":[],"type":"package_group","rules":[]} ' @@ -266,7 +266,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '1286' + - '1305' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -280,7 +280,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.1 + - 3.12.0-develop Keep-Alive: - timeout=15, max=96 Strict-Transport-Security: diff --git a/tests/test_playbooks/fixtures/content_view_filter-16.yml b/tests/test_playbooks/fixtures/content_view_filter-16.yml index a62048fc..4f4edb1a 100644 --- a/tests/test_playbooks/fixtures/content_view_filter-16.yml +++ b/tests/test_playbooks/fixtures/content_view_filter-16.yml @@ -14,14 +14,14 @@ interactions: uri: https://foreman.example.org/api/status response: body: - string: '{"result":"ok","status":200,"version":"3.7.1","api_version":2}' + string: '{"result":"ok","status":200,"version":"3.12.0-develop","api_version":2}' headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive Content-Length: - - '62' + - '71' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -35,7 +35,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.1 + - 3.12.0-develop Keep-Alive: - timeout=15, max=100 Strict-Transport-Security: @@ -70,8 +70,8 @@ interactions: body: string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": 4294967296,\n \"search\": \"name=\\\"Test Organization\\\"\",\n \"sort\": - {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\":\"Test_Organization\",\"created_at\":\"2023-11-15 - 09:54:22 UTC\",\"updated_at\":\"2023-11-15 09:54:23 UTC\",\"id\":5,\"name\":\"Test + {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\":\"Test_Organization\",\"created_at\":\"2024-07-25 + 07:24:10 UTC\",\"updated_at\":\"2024-07-25 07:24:12 UTC\",\"id\":10,\"name\":\"Test Organization\",\"title\":\"Test Organization\",\"description\":\"A test organization\"}]\n}\n" headers: Cache-Control: @@ -79,7 +79,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '388' + - '389' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -93,7 +93,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.1 + - 3.12.0-develop Keep-Alive: - timeout=15, max=99 Strict-Transport-Security: @@ -123,14 +123,14 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/organizations/5/content_views?search=name%3D%22Test+Content+View%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/organizations/10/content_views?search=name%3D%22Test+Content+View%22&per_page=4294967296 response: body: string: '{"total":2,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Content View\"","sort":{"by":"name","order":"asc"},"results":[{"composite":false,"component_ids":[],"default":false,"version_count":0,"latest_version":null,"latest_version_id":null,"auto_publish":false,"solve_dependencies":false,"import_only":false,"generated_for":"none","related_cv_count":0,"related_composite_cvs":[],"needs_publish":true,"filtered":true,"repository_ids":[18],"id":10,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":5,"organization":{"name":"Test - Organization","label":"Test_Organization","id":5},"created_at":"2023-11-15 - 09:55:08 UTC","updated_at":"2023-11-15 09:55:08 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":18,"name":"Test + Content View\"","sort":{"by":"name","order":"asc"},"results":[{"composite":false,"component_ids":[],"duplicate_repositories_to_publish":[],"default":false,"version_count":0,"latest_version":null,"latest_version_id":null,"auto_publish":false,"solve_dependencies":false,"import_only":false,"generated_for":"none","related_cv_count":0,"related_composite_cvs":[],"filtered":true,"repository_ids":[20],"id":17,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":10,"organization":{"name":"Test + Organization","label":"Test_Organization","id":10},"created_at":"2024-07-25 + 07:24:40 UTC","updated_at":"2024-07-25 07:24:40 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":20,"name":"Test Repository","label":"Test_Repository","content_type":"yum"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]}]} ' @@ -140,7 +140,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '1049' + - '1069' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -152,9 +152,9 @@ interactions: Foreman_current_location: - ; ANY Foreman_current_organization: - - 5; Test Organization + - 10; Test Organization Foreman_version: - - 3.7.1 + - 3.12.0-develop Keep-Alive: - timeout=15, max=98 Strict-Transport-Security: @@ -184,16 +184,16 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/content_views/10/filters?search=name%3D%22Test+Package+Group+Content+View+Filter%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/content_views/17/filters?search=name%3D%22Test+Package+Group+Content+View+Filter%22&per_page=4294967296 response: body: string: '{"total":1,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Package Group Content View Filter\"","sort":{"by":"name","order":"asc"},"results":[{"inclusion":false,"id":11,"name":"Test - Package Group Content View Filter","description":null,"created_at":"2023-11-15 - 09:55:21 UTC","updated_at":"2023-11-15 09:55:21 UTC","content_view":{"composite":false,"component_ids":[],"default":false,"version_count":0,"latest_version":null,"latest_version_id":null,"auto_publish":false,"solve_dependencies":false,"import_only":false,"generated_for":"none","related_cv_count":0,"related_composite_cvs":[],"needs_publish":true,"filtered":true,"repository_ids":[18],"id":10,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":5,"organization":{"name":"Test - Organization","label":"Test_Organization","id":5},"created_at":"2023-11-15 - 09:55:08 UTC","updated_at":"2023-11-15 09:55:08 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":18,"name":"Test + Package Group Content View Filter\"","sort":{"by":"name","order":"asc"},"results":[{"inclusion":false,"id":81,"name":"Test + Package Group Content View Filter","description":null,"created_at":"2024-07-25 + 07:24:52 UTC","updated_at":"2024-07-25 07:24:52 UTC","content_view":{"composite":false,"component_ids":[],"duplicate_repositories_to_publish":[],"default":false,"version_count":0,"latest_version":null,"latest_version_id":null,"auto_publish":false,"solve_dependencies":false,"import_only":false,"generated_for":"none","related_cv_count":0,"related_composite_cvs":[],"filtered":true,"repository_ids":[20],"id":17,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":10,"organization":{"name":"Test + Organization","label":"Test_Organization","id":10},"created_at":"2024-07-25 + 07:24:40 UTC","updated_at":"2024-07-25 07:24:40 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":20,"name":"Test Repository","label":"Test_Repository","content_type":"yum"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]},"repositories":[],"type":"package_group","rules":[]}]} ' @@ -203,7 +203,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '1310' + - '1330' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -217,7 +217,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.1 + - 3.12.0-develop Keep-Alive: - timeout=15, max=97 Strict-Transport-Security: @@ -235,69 +235,6 @@ interactions: status: code: 200 message: OK -- request: - body: null - headers: - Accept: - - application/json;version=2 - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - apypie (https://github.com/Apipie/apypie) - method: GET - uri: https://foreman.example.org/katello/api/content_views/10/filters/11 - response: - body: - string: ' {"inclusion":false,"id":11,"name":"Test Package Group Content View - Filter","description":null,"created_at":"2023-11-15 09:55:21 UTC","updated_at":"2023-11-15 - 09:55:21 UTC","content_view":{"composite":false,"component_ids":[],"default":false,"version_count":0,"latest_version":null,"latest_version_id":null,"auto_publish":false,"solve_dependencies":false,"import_only":false,"generated_for":"none","related_cv_count":0,"related_composite_cvs":[],"needs_publish":true,"filtered":true,"repository_ids":[18],"id":10,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":5,"organization":{"name":"Test - Organization","label":"Test_Organization","id":5},"created_at":"2023-11-15 - 09:55:08 UTC","updated_at":"2023-11-15 09:55:08 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":18,"name":"Test - Repository","label":"Test_Repository","content_type":"yum","product":{"id":10,"name":"Test - Product"},"content_counts":{"docker_manifest":0,"docker_tag":0,"rpm":32,"package":32,"package_group":2,"erratum":4,"module_stream":0}}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]},"repositories":[],"type":"package_group","rules":[]} - - ' - headers: - Cache-Control: - - max-age=0, private, must-revalidate - Connection: - - Keep-Alive - Content-Length: - - '1286' - Content-Security-Policy: - - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; - style-src ''unsafe-inline'' ''self''' - Content-Type: - - application/json; charset=utf-8 - Foreman_api_version: - - '2' - Foreman_current_location: - - ; ANY - Foreman_current_organization: - - ; ANY - Foreman_version: - - 3.7.1 - Keep-Alive: - - timeout=15, max=96 - Strict-Transport-Security: - - max-age=631139040; includeSubdomains - X-Content-Type-Options: - - nosniff - X-Download-Options: - - noopen - X-Frame-Options: - - sameorigin - X-Permitted-Cross-Domain-Policies: - - none - X-XSS-Protection: - - 1; mode=block - status: - code: 200 - message: OK - request: body: null headers: @@ -312,16 +249,16 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: DELETE - uri: https://foreman.example.org/katello/api/content_views/10/filters/11 + uri: https://foreman.example.org/katello/api/content_views/17/filters/81 response: body: - string: ' {"inclusion":false,"id":11,"name":"Test Package Group Content View - Filter","description":null,"created_at":"2023-11-15 09:55:21 UTC","updated_at":"2023-11-15 - 09:55:21 UTC","content_view":{"composite":false,"component_ids":[],"default":false,"version_count":0,"latest_version":null,"latest_version_id":null,"auto_publish":false,"solve_dependencies":false,"import_only":false,"generated_for":"none","related_cv_count":0,"related_composite_cvs":[],"needs_publish":true,"filtered":false,"repository_ids":[18],"id":10,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":5,"organization":{"name":"Test - Organization","label":"Test_Organization","id":5},"created_at":"2023-11-15 - 09:55:08 UTC","updated_at":"2023-11-15 09:55:08 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":18,"name":"Test - Repository","label":"Test_Repository","content_type":"yum","product":{"id":10,"name":"Test + string: ' {"inclusion":false,"id":81,"name":"Test Package Group Content View + Filter","description":null,"created_at":"2024-07-25 07:24:52 UTC","updated_at":"2024-07-25 + 07:24:52 UTC","content_view":{"composite":false,"component_ids":[],"duplicate_repositories_to_publish":[],"default":false,"version_count":0,"latest_version":null,"latest_version_id":null,"auto_publish":false,"solve_dependencies":false,"import_only":false,"generated_for":"none","related_cv_count":0,"related_composite_cvs":[],"filtered":false,"repository_ids":[20],"id":17,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":10,"organization":{"name":"Test + Organization","label":"Test_Organization","id":10},"created_at":"2024-07-25 + 07:24:40 UTC","updated_at":"2024-07-25 07:24:40 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":20,"name":"Test + Repository","label":"Test_Repository","content_type":"yum","product":{"id":8,"name":"Test Product"},"content_counts":{"docker_manifest":0,"docker_tag":0,"rpm":32,"package":32,"package_group":2,"erratum":4,"module_stream":0}}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]},"repositories":[],"type":"package_group","rules":[]} ' @@ -331,7 +268,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '1287' + - '1306' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -345,9 +282,9 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.1 + - 3.12.0-develop Keep-Alive: - - timeout=15, max=95 + - timeout=15, max=96 Strict-Transport-Security: - max-age=631139040; includeSubdomains X-Content-Type-Options: diff --git a/tests/test_playbooks/fixtures/content_view_filter-17.yml b/tests/test_playbooks/fixtures/content_view_filter-17.yml index 0a7b8fbf..adf3a659 100644 --- a/tests/test_playbooks/fixtures/content_view_filter-17.yml +++ b/tests/test_playbooks/fixtures/content_view_filter-17.yml @@ -14,14 +14,14 @@ interactions: uri: https://foreman.example.org/api/status response: body: - string: '{"result":"ok","status":200,"version":"3.7.1","api_version":2}' + string: '{"result":"ok","status":200,"version":"3.12.0-develop","api_version":2}' headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive Content-Length: - - '62' + - '71' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -35,7 +35,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.1 + - 3.12.0-develop Keep-Alive: - timeout=15, max=100 Strict-Transport-Security: @@ -70,8 +70,8 @@ interactions: body: string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": 4294967296,\n \"search\": \"name=\\\"Test Organization\\\"\",\n \"sort\": - {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\":\"Test_Organization\",\"created_at\":\"2023-11-15 - 09:54:22 UTC\",\"updated_at\":\"2023-11-15 09:54:23 UTC\",\"id\":5,\"name\":\"Test + {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\":\"Test_Organization\",\"created_at\":\"2024-07-25 + 07:24:10 UTC\",\"updated_at\":\"2024-07-25 07:24:12 UTC\",\"id\":10,\"name\":\"Test Organization\",\"title\":\"Test Organization\",\"description\":\"A test organization\"}]\n}\n" headers: Cache-Control: @@ -79,7 +79,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '388' + - '389' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -93,7 +93,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.1 + - 3.12.0-develop Keep-Alive: - timeout=15, max=99 Strict-Transport-Security: @@ -123,14 +123,14 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/organizations/5/content_views?search=name%3D%22Test+Content+View%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/organizations/10/content_views?search=name%3D%22Test+Content+View%22&per_page=4294967296 response: body: string: '{"total":2,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Content View\"","sort":{"by":"name","order":"asc"},"results":[{"composite":false,"component_ids":[],"default":false,"version_count":0,"latest_version":null,"latest_version_id":null,"auto_publish":false,"solve_dependencies":false,"import_only":false,"generated_for":"none","related_cv_count":0,"related_composite_cvs":[],"needs_publish":true,"filtered":false,"repository_ids":[18],"id":10,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":5,"organization":{"name":"Test - Organization","label":"Test_Organization","id":5},"created_at":"2023-11-15 - 09:55:08 UTC","updated_at":"2023-11-15 09:55:08 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":18,"name":"Test + Content View\"","sort":{"by":"name","order":"asc"},"results":[{"composite":false,"component_ids":[],"duplicate_repositories_to_publish":[],"default":false,"version_count":0,"latest_version":null,"latest_version_id":null,"auto_publish":false,"solve_dependencies":false,"import_only":false,"generated_for":"none","related_cv_count":0,"related_composite_cvs":[],"filtered":false,"repository_ids":[20],"id":17,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":10,"organization":{"name":"Test + Organization","label":"Test_Organization","id":10},"created_at":"2024-07-25 + 07:24:40 UTC","updated_at":"2024-07-25 07:24:40 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":20,"name":"Test Repository","label":"Test_Repository","content_type":"yum"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]}]} ' @@ -140,7 +140,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '1050' + - '1070' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -152,9 +152,9 @@ interactions: Foreman_current_location: - ; ANY Foreman_current_organization: - - 5; Test Organization + - 10; Test Organization Foreman_version: - - 3.7.1 + - 3.12.0-develop Keep-Alive: - timeout=15, max=98 Strict-Transport-Security: @@ -184,7 +184,7 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/content_views/10/filters?search=name%3D%22Test+Docker+Content+View+Filter%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/content_views/17/filters?search=name%3D%22Test+Docker+Content+View+Filter%22&per_page=4294967296 response: body: string: '{"total":0,"subtotal":0,"selectable":0,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test @@ -211,7 +211,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.1 + - 3.12.0-develop Keep-Alive: - timeout=15, max=97 Strict-Transport-Security: @@ -246,15 +246,15 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: POST - uri: https://foreman.example.org/katello/api/content_views/10/filters + uri: https://foreman.example.org/katello/api/content_views/17/filters response: body: - string: ' {"inclusion":false,"id":12,"name":"Test Docker Content View Filter","description":null,"created_at":"2023-11-15 - 09:55:24 UTC","updated_at":"2023-11-15 09:55:24 UTC","content_view":{"composite":false,"component_ids":[],"default":false,"version_count":0,"latest_version":null,"latest_version_id":null,"auto_publish":false,"solve_dependencies":false,"import_only":false,"generated_for":"none","related_cv_count":0,"related_composite_cvs":[],"needs_publish":true,"filtered":true,"repository_ids":[18],"id":10,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":5,"organization":{"name":"Test - Organization","label":"Test_Organization","id":5},"created_at":"2023-11-15 - 09:55:08 UTC","updated_at":"2023-11-15 09:55:08 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":18,"name":"Test - Repository","label":"Test_Repository","content_type":"yum","product":{"id":10,"name":"Test + string: ' {"inclusion":false,"id":82,"name":"Test Docker Content View Filter","description":null,"created_at":"2024-07-25 + 07:24:54 UTC","updated_at":"2024-07-25 07:24:54 UTC","content_view":{"composite":false,"component_ids":[],"duplicate_repositories_to_publish":[],"default":false,"version_count":0,"latest_version":null,"latest_version_id":null,"auto_publish":false,"solve_dependencies":false,"import_only":false,"generated_for":"none","related_cv_count":0,"related_composite_cvs":[],"filtered":true,"repository_ids":[20],"id":17,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":10,"organization":{"name":"Test + Organization","label":"Test_Organization","id":10},"created_at":"2024-07-25 + 07:24:40 UTC","updated_at":"2024-07-25 07:24:40 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":20,"name":"Test + Repository","label":"Test_Repository","content_type":"yum","product":{"id":8,"name":"Test Product"},"content_counts":{"docker_manifest":0,"docker_tag":0,"rpm":32,"package":32,"package_group":2,"erratum":4,"module_stream":0}}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]},"repositories":[],"type":"docker","rules":[]} ' @@ -264,7 +264,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '1272' + - '1291' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -278,7 +278,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.1 + - 3.12.0-develop Keep-Alive: - timeout=15, max=96 Strict-Transport-Security: diff --git a/tests/test_playbooks/fixtures/content_view_filter-18.yml b/tests/test_playbooks/fixtures/content_view_filter-18.yml index 0a9eb24e..e2156692 100644 --- a/tests/test_playbooks/fixtures/content_view_filter-18.yml +++ b/tests/test_playbooks/fixtures/content_view_filter-18.yml @@ -14,14 +14,14 @@ interactions: uri: https://foreman.example.org/api/status response: body: - string: '{"result":"ok","status":200,"version":"3.7.1","api_version":2}' + string: '{"result":"ok","status":200,"version":"3.12.0-develop","api_version":2}' headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive Content-Length: - - '62' + - '71' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -35,7 +35,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.1 + - 3.12.0-develop Keep-Alive: - timeout=15, max=100 Strict-Transport-Security: @@ -70,8 +70,8 @@ interactions: body: string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": 4294967296,\n \"search\": \"name=\\\"Test Organization\\\"\",\n \"sort\": - {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\":\"Test_Organization\",\"created_at\":\"2023-11-15 - 09:54:22 UTC\",\"updated_at\":\"2023-11-15 09:54:23 UTC\",\"id\":5,\"name\":\"Test + {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\":\"Test_Organization\",\"created_at\":\"2024-07-25 + 07:24:10 UTC\",\"updated_at\":\"2024-07-25 07:24:12 UTC\",\"id\":10,\"name\":\"Test Organization\",\"title\":\"Test Organization\",\"description\":\"A test organization\"}]\n}\n" headers: Cache-Control: @@ -79,7 +79,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '388' + - '389' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -93,7 +93,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.1 + - 3.12.0-develop Keep-Alive: - timeout=15, max=99 Strict-Transport-Security: @@ -123,14 +123,14 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/organizations/5/content_views?search=name%3D%22Test+Content+View%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/organizations/10/content_views?search=name%3D%22Test+Content+View%22&per_page=4294967296 response: body: string: '{"total":2,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Content View\"","sort":{"by":"name","order":"asc"},"results":[{"composite":false,"component_ids":[],"default":false,"version_count":0,"latest_version":null,"latest_version_id":null,"auto_publish":false,"solve_dependencies":false,"import_only":false,"generated_for":"none","related_cv_count":0,"related_composite_cvs":[],"needs_publish":true,"filtered":true,"repository_ids":[18],"id":10,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":5,"organization":{"name":"Test - Organization","label":"Test_Organization","id":5},"created_at":"2023-11-15 - 09:55:08 UTC","updated_at":"2023-11-15 09:55:08 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":18,"name":"Test + Content View\"","sort":{"by":"name","order":"asc"},"results":[{"composite":false,"component_ids":[],"duplicate_repositories_to_publish":[],"default":false,"version_count":0,"latest_version":null,"latest_version_id":null,"auto_publish":false,"solve_dependencies":false,"import_only":false,"generated_for":"none","related_cv_count":0,"related_composite_cvs":[],"filtered":true,"repository_ids":[20],"id":17,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":10,"organization":{"name":"Test + Organization","label":"Test_Organization","id":10},"created_at":"2024-07-25 + 07:24:40 UTC","updated_at":"2024-07-25 07:24:40 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":20,"name":"Test Repository","label":"Test_Repository","content_type":"yum"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]}]} ' @@ -140,7 +140,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '1049' + - '1069' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -152,9 +152,9 @@ interactions: Foreman_current_location: - ; ANY Foreman_current_organization: - - 5; Test Organization + - 10; Test Organization Foreman_version: - - 3.7.1 + - 3.12.0-develop Keep-Alive: - timeout=15, max=98 Strict-Transport-Security: @@ -184,16 +184,16 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/content_views/10/filters?search=name%3D%22Test+Docker+Content+View+Filter%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/content_views/17/filters?search=name%3D%22Test+Docker+Content+View+Filter%22&per_page=4294967296 response: body: string: '{"total":1,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Docker Content View Filter\"","sort":{"by":"name","order":"asc"},"results":[{"inclusion":false,"id":12,"name":"Test - Docker Content View Filter","description":null,"created_at":"2023-11-15 09:55:24 - UTC","updated_at":"2023-11-15 09:55:24 UTC","content_view":{"composite":false,"component_ids":[],"default":false,"version_count":0,"latest_version":null,"latest_version_id":null,"auto_publish":false,"solve_dependencies":false,"import_only":false,"generated_for":"none","related_cv_count":0,"related_composite_cvs":[],"needs_publish":true,"filtered":true,"repository_ids":[18],"id":10,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":5,"organization":{"name":"Test - Organization","label":"Test_Organization","id":5},"created_at":"2023-11-15 - 09:55:08 UTC","updated_at":"2023-11-15 09:55:08 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":18,"name":"Test + Docker Content View Filter\"","sort":{"by":"name","order":"asc"},"results":[{"inclusion":false,"id":82,"name":"Test + Docker Content View Filter","description":null,"created_at":"2024-07-25 07:24:54 + UTC","updated_at":"2024-07-25 07:24:54 UTC","content_view":{"composite":false,"component_ids":[],"duplicate_repositories_to_publish":[],"default":false,"version_count":0,"latest_version":null,"latest_version_id":null,"auto_publish":false,"solve_dependencies":false,"import_only":false,"generated_for":"none","related_cv_count":0,"related_composite_cvs":[],"filtered":true,"repository_ids":[20],"id":17,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":10,"organization":{"name":"Test + Organization","label":"Test_Organization","id":10},"created_at":"2024-07-25 + 07:24:40 UTC","updated_at":"2024-07-25 07:24:40 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":20,"name":"Test Repository","label":"Test_Repository","content_type":"yum"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]},"repositories":[],"type":"docker","rules":[]}]} ' @@ -203,7 +203,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '1289' + - '1309' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -217,7 +217,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.1 + - 3.12.0-develop Keep-Alive: - timeout=15, max=97 Strict-Transport-Security: @@ -247,15 +247,15 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/content_views/10/filters/12 + uri: https://foreman.example.org/katello/api/content_views/17/filters/82 response: body: - string: ' {"inclusion":false,"id":12,"name":"Test Docker Content View Filter","description":null,"created_at":"2023-11-15 - 09:55:24 UTC","updated_at":"2023-11-15 09:55:24 UTC","content_view":{"composite":false,"component_ids":[],"default":false,"version_count":0,"latest_version":null,"latest_version_id":null,"auto_publish":false,"solve_dependencies":false,"import_only":false,"generated_for":"none","related_cv_count":0,"related_composite_cvs":[],"needs_publish":true,"filtered":true,"repository_ids":[18],"id":10,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":5,"organization":{"name":"Test - Organization","label":"Test_Organization","id":5},"created_at":"2023-11-15 - 09:55:08 UTC","updated_at":"2023-11-15 09:55:08 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":18,"name":"Test - Repository","label":"Test_Repository","content_type":"yum","product":{"id":10,"name":"Test + string: ' {"inclusion":false,"id":82,"name":"Test Docker Content View Filter","description":null,"created_at":"2024-07-25 + 07:24:54 UTC","updated_at":"2024-07-25 07:24:54 UTC","content_view":{"composite":false,"component_ids":[],"duplicate_repositories_to_publish":[],"default":false,"version_count":0,"latest_version":null,"latest_version_id":null,"auto_publish":false,"solve_dependencies":false,"import_only":false,"generated_for":"none","related_cv_count":0,"related_composite_cvs":[],"filtered":true,"repository_ids":[20],"id":17,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":10,"organization":{"name":"Test + Organization","label":"Test_Organization","id":10},"created_at":"2024-07-25 + 07:24:40 UTC","updated_at":"2024-07-25 07:24:40 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":20,"name":"Test + Repository","label":"Test_Repository","content_type":"yum","product":{"id":8,"name":"Test Product"},"content_counts":{"docker_manifest":0,"docker_tag":0,"rpm":32,"package":32,"package_group":2,"erratum":4,"module_stream":0}}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]},"repositories":[],"type":"docker","rules":[]} ' @@ -265,7 +265,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '1272' + - '1291' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -279,7 +279,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.1 + - 3.12.0-develop Keep-Alive: - timeout=15, max=96 Strict-Transport-Security: diff --git a/tests/test_playbooks/fixtures/content_view_filter-19.yml b/tests/test_playbooks/fixtures/content_view_filter-19.yml index f36ce96e..63a1ab4f 100644 --- a/tests/test_playbooks/fixtures/content_view_filter-19.yml +++ b/tests/test_playbooks/fixtures/content_view_filter-19.yml @@ -14,14 +14,14 @@ interactions: uri: https://foreman.example.org/api/status response: body: - string: '{"result":"ok","status":200,"version":"3.7.1","api_version":2}' + string: '{"result":"ok","status":200,"version":"3.12.0-develop","api_version":2}' headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive Content-Length: - - '62' + - '71' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -35,7 +35,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.1 + - 3.12.0-develop Keep-Alive: - timeout=15, max=100 Strict-Transport-Security: @@ -70,8 +70,8 @@ interactions: body: string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": 4294967296,\n \"search\": \"name=\\\"Test Organization\\\"\",\n \"sort\": - {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\":\"Test_Organization\",\"created_at\":\"2023-11-15 - 09:54:22 UTC\",\"updated_at\":\"2023-11-15 09:54:23 UTC\",\"id\":5,\"name\":\"Test + {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\":\"Test_Organization\",\"created_at\":\"2024-07-25 + 07:24:10 UTC\",\"updated_at\":\"2024-07-25 07:24:12 UTC\",\"id\":10,\"name\":\"Test Organization\",\"title\":\"Test Organization\",\"description\":\"A test organization\"}]\n}\n" headers: Cache-Control: @@ -79,7 +79,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '388' + - '389' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -93,7 +93,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.1 + - 3.12.0-develop Keep-Alive: - timeout=15, max=99 Strict-Transport-Security: @@ -123,14 +123,14 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/organizations/5/content_views?search=name%3D%22Test+Content+View%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/organizations/10/content_views?search=name%3D%22Test+Content+View%22&per_page=4294967296 response: body: string: '{"total":2,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Content View\"","sort":{"by":"name","order":"asc"},"results":[{"composite":false,"component_ids":[],"default":false,"version_count":0,"latest_version":null,"latest_version_id":null,"auto_publish":false,"solve_dependencies":false,"import_only":false,"generated_for":"none","related_cv_count":0,"related_composite_cvs":[],"needs_publish":true,"filtered":true,"repository_ids":[18],"id":10,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":5,"organization":{"name":"Test - Organization","label":"Test_Organization","id":5},"created_at":"2023-11-15 - 09:55:08 UTC","updated_at":"2023-11-15 09:55:08 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":18,"name":"Test + Content View\"","sort":{"by":"name","order":"asc"},"results":[{"composite":false,"component_ids":[],"duplicate_repositories_to_publish":[],"default":false,"version_count":0,"latest_version":null,"latest_version_id":null,"auto_publish":false,"solve_dependencies":false,"import_only":false,"generated_for":"none","related_cv_count":0,"related_composite_cvs":[],"filtered":true,"repository_ids":[20],"id":17,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":10,"organization":{"name":"Test + Organization","label":"Test_Organization","id":10},"created_at":"2024-07-25 + 07:24:40 UTC","updated_at":"2024-07-25 07:24:40 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":20,"name":"Test Repository","label":"Test_Repository","content_type":"yum"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]}]} ' @@ -140,7 +140,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '1049' + - '1069' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -152,9 +152,9 @@ interactions: Foreman_current_location: - ; ANY Foreman_current_organization: - - 5; Test Organization + - 10; Test Organization Foreman_version: - - 3.7.1 + - 3.12.0-develop Keep-Alive: - timeout=15, max=98 Strict-Transport-Security: @@ -184,16 +184,16 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/content_views/10/filters?search=name%3D%22Test+Docker+Content+View+Filter%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/content_views/17/filters?search=name%3D%22Test+Docker+Content+View+Filter%22&per_page=4294967296 response: body: string: '{"total":1,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Docker Content View Filter\"","sort":{"by":"name","order":"asc"},"results":[{"inclusion":false,"id":12,"name":"Test - Docker Content View Filter","description":null,"created_at":"2023-11-15 09:55:24 - UTC","updated_at":"2023-11-15 09:55:24 UTC","content_view":{"composite":false,"component_ids":[],"default":false,"version_count":0,"latest_version":null,"latest_version_id":null,"auto_publish":false,"solve_dependencies":false,"import_only":false,"generated_for":"none","related_cv_count":0,"related_composite_cvs":[],"needs_publish":true,"filtered":true,"repository_ids":[18],"id":10,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":5,"organization":{"name":"Test - Organization","label":"Test_Organization","id":5},"created_at":"2023-11-15 - 09:55:08 UTC","updated_at":"2023-11-15 09:55:08 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":18,"name":"Test + Docker Content View Filter\"","sort":{"by":"name","order":"asc"},"results":[{"inclusion":false,"id":82,"name":"Test + Docker Content View Filter","description":null,"created_at":"2024-07-25 07:24:54 + UTC","updated_at":"2024-07-25 07:24:54 UTC","content_view":{"composite":false,"component_ids":[],"duplicate_repositories_to_publish":[],"default":false,"version_count":0,"latest_version":null,"latest_version_id":null,"auto_publish":false,"solve_dependencies":false,"import_only":false,"generated_for":"none","related_cv_count":0,"related_composite_cvs":[],"filtered":true,"repository_ids":[20],"id":17,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":10,"organization":{"name":"Test + Organization","label":"Test_Organization","id":10},"created_at":"2024-07-25 + 07:24:40 UTC","updated_at":"2024-07-25 07:24:40 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":20,"name":"Test Repository","label":"Test_Repository","content_type":"yum"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]},"repositories":[],"type":"docker","rules":[]}]} ' @@ -203,7 +203,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '1289' + - '1309' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -217,7 +217,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.1 + - 3.12.0-develop Keep-Alive: - timeout=15, max=97 Strict-Transport-Security: @@ -235,68 +235,6 @@ interactions: status: code: 200 message: OK -- request: - body: null - headers: - Accept: - - application/json;version=2 - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - apypie (https://github.com/Apipie/apypie) - method: GET - uri: https://foreman.example.org/katello/api/content_views/10/filters/12 - response: - body: - string: ' {"inclusion":false,"id":12,"name":"Test Docker Content View Filter","description":null,"created_at":"2023-11-15 - 09:55:24 UTC","updated_at":"2023-11-15 09:55:24 UTC","content_view":{"composite":false,"component_ids":[],"default":false,"version_count":0,"latest_version":null,"latest_version_id":null,"auto_publish":false,"solve_dependencies":false,"import_only":false,"generated_for":"none","related_cv_count":0,"related_composite_cvs":[],"needs_publish":true,"filtered":true,"repository_ids":[18],"id":10,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":5,"organization":{"name":"Test - Organization","label":"Test_Organization","id":5},"created_at":"2023-11-15 - 09:55:08 UTC","updated_at":"2023-11-15 09:55:08 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":18,"name":"Test - Repository","label":"Test_Repository","content_type":"yum","product":{"id":10,"name":"Test - Product"},"content_counts":{"docker_manifest":0,"docker_tag":0,"rpm":32,"package":32,"package_group":2,"erratum":4,"module_stream":0}}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]},"repositories":[],"type":"docker","rules":[]} - - ' - headers: - Cache-Control: - - max-age=0, private, must-revalidate - Connection: - - Keep-Alive - Content-Length: - - '1272' - Content-Security-Policy: - - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; - style-src ''unsafe-inline'' ''self''' - Content-Type: - - application/json; charset=utf-8 - Foreman_api_version: - - '2' - Foreman_current_location: - - ; ANY - Foreman_current_organization: - - ; ANY - Foreman_version: - - 3.7.1 - Keep-Alive: - - timeout=15, max=96 - Strict-Transport-Security: - - max-age=631139040; includeSubdomains - X-Content-Type-Options: - - nosniff - X-Download-Options: - - noopen - X-Frame-Options: - - sameorigin - X-Permitted-Cross-Domain-Policies: - - none - X-XSS-Protection: - - 1; mode=block - status: - code: 200 - message: OK - request: body: null headers: @@ -311,15 +249,15 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: DELETE - uri: https://foreman.example.org/katello/api/content_views/10/filters/12 + uri: https://foreman.example.org/katello/api/content_views/17/filters/82 response: body: - string: ' {"inclusion":false,"id":12,"name":"Test Docker Content View Filter","description":null,"created_at":"2023-11-15 - 09:55:24 UTC","updated_at":"2023-11-15 09:55:24 UTC","content_view":{"composite":false,"component_ids":[],"default":false,"version_count":0,"latest_version":null,"latest_version_id":null,"auto_publish":false,"solve_dependencies":false,"import_only":false,"generated_for":"none","related_cv_count":0,"related_composite_cvs":[],"needs_publish":true,"filtered":false,"repository_ids":[18],"id":10,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":5,"organization":{"name":"Test - Organization","label":"Test_Organization","id":5},"created_at":"2023-11-15 - 09:55:08 UTC","updated_at":"2023-11-15 09:55:08 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":18,"name":"Test - Repository","label":"Test_Repository","content_type":"yum","product":{"id":10,"name":"Test + string: ' {"inclusion":false,"id":82,"name":"Test Docker Content View Filter","description":null,"created_at":"2024-07-25 + 07:24:54 UTC","updated_at":"2024-07-25 07:24:54 UTC","content_view":{"composite":false,"component_ids":[],"duplicate_repositories_to_publish":[],"default":false,"version_count":0,"latest_version":null,"latest_version_id":null,"auto_publish":false,"solve_dependencies":false,"import_only":false,"generated_for":"none","related_cv_count":0,"related_composite_cvs":[],"filtered":false,"repository_ids":[20],"id":17,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":10,"organization":{"name":"Test + Organization","label":"Test_Organization","id":10},"created_at":"2024-07-25 + 07:24:40 UTC","updated_at":"2024-07-25 07:24:40 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":20,"name":"Test + Repository","label":"Test_Repository","content_type":"yum","product":{"id":8,"name":"Test Product"},"content_counts":{"docker_manifest":0,"docker_tag":0,"rpm":32,"package":32,"package_group":2,"erratum":4,"module_stream":0}}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]},"repositories":[],"type":"docker","rules":[]} ' @@ -329,7 +267,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '1273' + - '1292' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -343,9 +281,9 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.1 + - 3.12.0-develop Keep-Alive: - - timeout=15, max=95 + - timeout=15, max=96 Strict-Transport-Security: - max-age=631139040; includeSubdomains X-Content-Type-Options: diff --git a/tests/test_playbooks/fixtures/content_view_filter-2.yml b/tests/test_playbooks/fixtures/content_view_filter-2.yml index 2f19f462..6a7f8107 100644 --- a/tests/test_playbooks/fixtures/content_view_filter-2.yml +++ b/tests/test_playbooks/fixtures/content_view_filter-2.yml @@ -14,14 +14,14 @@ interactions: uri: https://foreman.example.org/api/status response: body: - string: '{"result":"ok","status":200,"version":"3.7.1","api_version":2}' + string: '{"result":"ok","status":200,"version":"3.12.0-develop","api_version":2}' headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive Content-Length: - - '62' + - '71' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -35,7 +35,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.1 + - 3.12.0-develop Keep-Alive: - timeout=15, max=100 Strict-Transport-Security: @@ -70,8 +70,8 @@ interactions: body: string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": 4294967296,\n \"search\": \"name=\\\"Test Organization\\\"\",\n \"sort\": - {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\":\"Test_Organization\",\"created_at\":\"2023-11-15 - 09:54:22 UTC\",\"updated_at\":\"2023-11-15 09:54:23 UTC\",\"id\":5,\"name\":\"Test + {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\":\"Test_Organization\",\"created_at\":\"2024-07-25 + 07:24:10 UTC\",\"updated_at\":\"2024-07-25 07:24:12 UTC\",\"id\":10,\"name\":\"Test Organization\",\"title\":\"Test Organization\",\"description\":\"A test organization\"}]\n}\n" headers: Cache-Control: @@ -79,7 +79,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '388' + - '389' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -93,7 +93,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.1 + - 3.12.0-develop Keep-Alive: - timeout=15, max=99 Strict-Transport-Security: @@ -123,14 +123,14 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/organizations/5/content_views?search=name%3D%22Test+Content+View%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/organizations/10/content_views?search=name%3D%22Test+Content+View%22&per_page=4294967296 response: body: string: '{"total":2,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Content View\"","sort":{"by":"name","order":"asc"},"results":[{"composite":false,"component_ids":[],"default":false,"version_count":0,"latest_version":null,"latest_version_id":null,"auto_publish":false,"solve_dependencies":false,"import_only":false,"generated_for":"none","related_cv_count":0,"related_composite_cvs":[],"needs_publish":true,"filtered":true,"repository_ids":[18],"id":10,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":5,"organization":{"name":"Test - Organization","label":"Test_Organization","id":5},"created_at":"2023-11-15 - 09:55:08 UTC","updated_at":"2023-11-15 09:55:08 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":18,"name":"Test + Content View\"","sort":{"by":"name","order":"asc"},"results":[{"composite":false,"component_ids":[],"duplicate_repositories_to_publish":[],"default":false,"version_count":0,"latest_version":null,"latest_version_id":null,"auto_publish":false,"solve_dependencies":false,"import_only":false,"generated_for":"none","related_cv_count":0,"related_composite_cvs":[],"filtered":true,"repository_ids":[20],"id":17,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":10,"organization":{"name":"Test + Organization","label":"Test_Organization","id":10},"created_at":"2024-07-25 + 07:24:40 UTC","updated_at":"2024-07-25 07:24:40 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":20,"name":"Test Repository","label":"Test_Repository","content_type":"yum"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]}]} ' @@ -140,7 +140,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '1049' + - '1069' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -152,9 +152,9 @@ interactions: Foreman_current_location: - ; ANY Foreman_current_organization: - - 5; Test Organization + - 10; Test Organization Foreman_version: - - 3.7.1 + - 3.12.0-develop Keep-Alive: - timeout=15, max=98 Strict-Transport-Security: @@ -184,14 +184,14 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/organizations/5/products?search=name%3D%22Test+Product%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/organizations/10/products?search=name%3D%22Test+Product%22&per_page=4294967296 response: body: string: '{"total":1,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Product\"","sort":{"by":"name","order":"asc"},"results":[{"id":10,"cp_id":"347380074197","name":"Test - Product","label":"Test_Product","description":"A happy little test product","provider_id":7,"sync_plan_id":null,"sync_summary":{"success":3},"gpg_key_id":null,"ssl_ca_cert_id":null,"ssl_client_cert_id":null,"ssl_client_key_id":null,"sync_state":"Syncing - Complete.","last_sync":"2023-11-15 09:54:59 UTC","last_sync_words":"less than - a minute","organization_id":5,"organization":{"name":"Test Organization","label":"Test_Organization","id":5},"sync_plan":null,"repository_count":3}]} + Product\"","sort":{"by":"name","order":"asc"},"results":[{"id":8,"cp_id":"527370220153","name":"Test + Product","label":"Test_Product","description":"A happy little test product","provider_id":17,"sync_plan_id":null,"sync_summary":{"success":2},"gpg_key_id":null,"ssl_ca_cert_id":null,"ssl_client_cert_id":null,"ssl_client_key_id":null,"sync_state":"Syncing + Complete.","last_sync":"2024-07-25 07:24:35 UTC","last_sync_words":"less than + a minute","organization_id":10,"organization":{"name":"Test Organization","label":"Test_Organization","id":10},"sync_plan":null,"repository_count":2}]} ' headers: @@ -200,7 +200,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '691' + - '693' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -212,9 +212,9 @@ interactions: Foreman_current_location: - ; ANY Foreman_current_organization: - - 5; Test Organization + - 10; Test Organization Foreman_version: - - 3.7.1 + - 3.12.0-develop Keep-Alive: - timeout=15, max=97 Strict-Transport-Security: @@ -244,19 +244,19 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/products/10/repositories?search=name%3D%22Test+Repository%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/products/8/repositories?search=name%3D%22Test+Repository%22&per_page=4294967296 response: body: - string: '{"total":3,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Repository\"","sort":{"by":"name","order":"asc"},"results":[{"backend_identifier":"29b3d88f-d4d9-4411-b1db-69f3a9c7df12","relative_path":"Test_Organization/Library/custom/Test_Product/Test_Repository","container_repository_name":null,"full_path":"https://centos8-stream-katello-4-9.tanso.example.com/pulp/content/Test_Organization/Library/custom/Test_Product/Test_Repository/","library_instance_id":null,"version_href":"/pulp/api/v3/repositories/rpm/rpm/00e6944a-841e-4bfe-9416-070861ef58fb/versions/1/","remote_href":"/pulp/api/v3/remotes/rpm/rpm/7e1e16ba-4432-4a52-988e-3da939154cbe/","publication_href":"/pulp/api/v3/publications/rpm/rpm/9695e87f-67d7-4765-9f98-e9a13987baef/","content_counts":{"rpm":32,"erratum":4,"package_group":2,"srpm":0,"module_stream":0},"mirroring_policy":"mirror_content_only","id":18,"name":"Test - Repository","label":"Test_Repository","description":null,"content_view_versions":[],"filters":[{"content_view_filter_id":8,"content_view_filter_name":"Test - Package Content View Filter","content_view_id":10,"content_view_name":"Test - Content View","last_affected_repo":true}],"last_sync":{"id":"0c110a6a-16e1-487f-a587-0ab648d99eda","username":"admin","started_at":"2023-11-15 - 09:54:33 UTC","ended_at":"2023-11-15 09:54:46 UTC","state":"stopped","result":"success","progress":1.0},"content_view":{"id":9,"name":"Default - Organization View"},"content_view_version":{"id":8,"name":"Default Organization - View 1.0","content_view_id":9},"kt_environment":{"id":4,"name":"Library"},"content_type":"yum","url":"https://repos.fedorapeople.org/pulp/pulp/demo_repos/zoo/","arch":"noarch","os_versions":[],"content_id":"1700042066424","generic_remote_options":null,"major":null,"minor":null,"product":{"id":10,"cp_id":"347380074197","name":"Test + string: '{"total":2,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test + Repository\"","sort":{"by":"name","order":"asc"},"results":[{"backend_identifier":"c42d6bfb-3280-4660-9f2c-c76c786fa382","relative_path":"Test_Organization/Library/custom/Test_Product/Test_Repository","container_repository_name":"test_organization-test_product-test_repository","full_path":"https://centos8-stream-katello-nightly.tanso.example.com/pulp/content/Test_Organization/Library/custom/Test_Product/Test_Repository/","library_instance_id":null,"version_href":"/pulp/api/v3/repositories/rpm/rpm/0190e8c6-b36d-7e8e-80f0-a0b6470e39c9/versions/1/","remote_href":"/pulp/api/v3/remotes/rpm/rpm/0190e8c6-b9d8-7aa7-a1d8-f8f81d2e719a/","publication_href":"/pulp/api/v3/publications/rpm/rpm/0190e8c6-d0e6-72f6-84b8-8a095de927df/","content_counts":{"rpm":32,"erratum":4,"package_group":2,"srpm":0,"module_stream":0},"mirroring_policy":"mirror_content_only","id":20,"name":"Test + Repository","label":"Test_Repository","description":null,"content_view_versions":[],"filters":[{"content_view_filter_id":78,"content_view_filter_name":"Test + Package Content View Filter","content_view_id":17,"content_view_name":"Test + Content View","last_affected_repo":true}],"last_sync":{"id":"13c7ce53-a0e4-4a3c-9a5e-27f4671e300d","username":"admin","started_at":"2024-07-25 + 07:24:18 UTC","ended_at":"2024-07-25 07:24:23 UTC","state":"stopped","result":"success","progress":1.0},"content_view":{"id":16,"name":"Default + Organization View"},"content_view_version":{"id":9,"name":"Default Organization + View 1.0","content_view_id":16},"kt_environment":{"id":9,"name":"Library"},"content_type":"yum","url":"https://repos.fedorapeople.org/pulp/pulp/demo_repos/zoo/","arch":"noarch","os_versions":[],"content_id":"1721892254686","generic_remote_options":null,"major":null,"minor":null,"product":{"id":8,"cp_id":"527370220153","name":"Test Product","orphaned":false,"redhat":false,"sync_plan":null},"content_label":"Test_Organization_Test_Product_Test_Repository","last_sync_words":"less - than a minute"}],"org_repository_count":3} + than a minute"}],"org_repository_count":2} ' headers: @@ -265,7 +265,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '2056' + - '2106' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -279,7 +279,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.1 + - 3.12.0-develop Keep-Alive: - timeout=15, max=96 Strict-Transport-Security: @@ -309,23 +309,23 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/content_views/10/filters?search=name%3D%22Test+Package+Content+View+Filter%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/content_views/17/filters?search=name%3D%22Test+Package+Content+View+Filter%22&per_page=4294967296 response: body: string: '{"total":1,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Package Content View Filter\"","sort":{"by":"name","order":"asc"},"results":[{"inclusion":false,"id":8,"name":"Test - Package Content View Filter","description":null,"created_at":"2023-11-15 09:55:10 - UTC","updated_at":"2023-11-15 09:55:10 UTC","content_view":{"composite":false,"component_ids":[],"default":false,"version_count":0,"latest_version":null,"latest_version_id":null,"auto_publish":false,"solve_dependencies":false,"import_only":false,"generated_for":"none","related_cv_count":0,"related_composite_cvs":[],"needs_publish":true,"filtered":true,"repository_ids":[18],"id":10,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":5,"organization":{"name":"Test - Organization","label":"Test_Organization","id":5},"created_at":"2023-11-15 - 09:55:08 UTC","updated_at":"2023-11-15 09:55:08 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":18,"name":"Test - Repository","label":"Test_Repository","content_type":"yum"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]},"repositories":[{"backend_identifier":"29b3d88f-d4d9-4411-b1db-69f3a9c7df12","relative_path":"Test_Organization/Library/custom/Test_Product/Test_Repository","container_repository_name":null,"full_path":"https://centos8-stream-katello-4-9.tanso.example.com/pulp/content/Test_Organization/Library/custom/Test_Product/Test_Repository/","library_instance_id":null,"version_href":"/pulp/api/v3/repositories/rpm/rpm/00e6944a-841e-4bfe-9416-070861ef58fb/versions/1/","remote_href":"/pulp/api/v3/remotes/rpm/rpm/7e1e16ba-4432-4a52-988e-3da939154cbe/","publication_href":"/pulp/api/v3/publications/rpm/rpm/9695e87f-67d7-4765-9f98-e9a13987baef/","content_counts":{"rpm":32,"erratum":4,"package_group":2,"srpm":0,"module_stream":0},"mirroring_policy":"mirror_content_only","id":18,"name":"Test - Repository","label":"Test_Repository","description":null,"content_view_versions":[],"filters":[{"content_view_filter_id":8,"content_view_filter_name":"Test - Package Content View Filter","content_view_id":10,"content_view_name":"Test - Content View","last_affected_repo":true}],"last_sync":{"id":"0c110a6a-16e1-487f-a587-0ab648d99eda","username":"admin","started_at":"2023-11-15 - 09:54:33 UTC","ended_at":"2023-11-15 09:54:46 UTC","state":"stopped","result":"success","progress":1.0},"content_view":{"id":9,"name":"Default - Organization View"},"content_view_version":{"id":8,"name":"Default Organization - View 1.0","content_view_id":9},"kt_environment":{"id":4,"name":"Library"},"content_type":"yum","url":"https://repos.fedorapeople.org/pulp/pulp/demo_repos/zoo/","arch":"noarch","os_versions":[],"content_id":"1700042066424","generic_remote_options":null,"major":null,"minor":null,"product":{"id":10,"cp_id":"347380074197","name":"Test + Package Content View Filter\"","sort":{"by":"name","order":"asc"},"results":[{"inclusion":false,"id":78,"name":"Test + Package Content View Filter","description":null,"created_at":"2024-07-25 07:24:41 + UTC","updated_at":"2024-07-25 07:24:41 UTC","content_view":{"composite":false,"component_ids":[],"duplicate_repositories_to_publish":[],"default":false,"version_count":0,"latest_version":null,"latest_version_id":null,"auto_publish":false,"solve_dependencies":false,"import_only":false,"generated_for":"none","related_cv_count":0,"related_composite_cvs":[],"filtered":true,"repository_ids":[20],"id":17,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":10,"organization":{"name":"Test + Organization","label":"Test_Organization","id":10},"created_at":"2024-07-25 + 07:24:40 UTC","updated_at":"2024-07-25 07:24:40 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":20,"name":"Test + Repository","label":"Test_Repository","content_type":"yum"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]},"repositories":[{"backend_identifier":"c42d6bfb-3280-4660-9f2c-c76c786fa382","relative_path":"Test_Organization/Library/custom/Test_Product/Test_Repository","container_repository_name":"test_organization-test_product-test_repository","full_path":"https://centos8-stream-katello-nightly.tanso.example.com/pulp/content/Test_Organization/Library/custom/Test_Product/Test_Repository/","library_instance_id":null,"version_href":"/pulp/api/v3/repositories/rpm/rpm/0190e8c6-b36d-7e8e-80f0-a0b6470e39c9/versions/1/","remote_href":"/pulp/api/v3/remotes/rpm/rpm/0190e8c6-b9d8-7aa7-a1d8-f8f81d2e719a/","publication_href":"/pulp/api/v3/publications/rpm/rpm/0190e8c6-d0e6-72f6-84b8-8a095de927df/","content_counts":{"rpm":32,"erratum":4,"package_group":2,"srpm":0,"module_stream":0},"mirroring_policy":"mirror_content_only","id":20,"name":"Test + Repository","label":"Test_Repository","description":null,"content_view_versions":[],"filters":[{"content_view_filter_id":78,"content_view_filter_name":"Test + Package Content View Filter","content_view_id":17,"content_view_name":"Test + Content View","last_affected_repo":true}],"last_sync":{"id":"13c7ce53-a0e4-4a3c-9a5e-27f4671e300d","username":"admin","started_at":"2024-07-25 + 07:24:18 UTC","ended_at":"2024-07-25 07:24:23 UTC","state":"stopped","result":"success","progress":1.0},"content_view":{"id":16,"name":"Default + Organization View"},"content_view_version":{"id":9,"name":"Default Organization + View 1.0","content_view_id":16},"kt_environment":{"id":9,"name":"Library"},"content_type":"yum","url":"https://repos.fedorapeople.org/pulp/pulp/demo_repos/zoo/","arch":"noarch","os_versions":[],"content_id":"1721892254686","generic_remote_options":null,"major":null,"minor":null,"product":{"id":8,"cp_id":"527370220153","name":"Test Product","orphaned":false,"redhat":false,"sync_plan":null},"content_label":"Test_Organization_Test_Product_Test_Repository","last_sync_words":"less than a minute"}],"type":"rpm","rules":[]}]} @@ -336,7 +336,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '3148' + - '3219' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -350,7 +350,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.1 + - 3.12.0-develop Keep-Alive: - timeout=15, max=95 Strict-Transport-Security: @@ -380,23 +380,23 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/content_views/10/filters/8 + uri: https://foreman.example.org/katello/api/content_views/17/filters/78 response: body: - string: ' {"inclusion":false,"original_packages":false,"id":8,"name":"Test - Package Content View Filter","description":null,"created_at":"2023-11-15 09:55:10 - UTC","updated_at":"2023-11-15 09:55:10 UTC","content_view":{"composite":false,"component_ids":[],"default":false,"version_count":0,"latest_version":null,"latest_version_id":null,"auto_publish":false,"solve_dependencies":false,"import_only":false,"generated_for":"none","related_cv_count":0,"related_composite_cvs":[],"needs_publish":true,"filtered":true,"repository_ids":[18],"id":10,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":5,"organization":{"name":"Test - Organization","label":"Test_Organization","id":5},"created_at":"2023-11-15 - 09:55:08 UTC","updated_at":"2023-11-15 09:55:08 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":18,"name":"Test - Repository","label":"Test_Repository","content_type":"yum","product":{"id":10,"name":"Test - Product"},"content_counts":{"docker_manifest":0,"docker_tag":0,"rpm":32,"package":32,"package_group":2,"erratum":4,"module_stream":0}}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]},"repositories":[{"backend_identifier":"29b3d88f-d4d9-4411-b1db-69f3a9c7df12","relative_path":"Test_Organization/Library/custom/Test_Product/Test_Repository","container_repository_name":null,"full_path":"https://centos8-stream-katello-4-9.tanso.example.com/pulp/content/Test_Organization/Library/custom/Test_Product/Test_Repository/","library_instance_id":null,"version_href":"/pulp/api/v3/repositories/rpm/rpm/00e6944a-841e-4bfe-9416-070861ef58fb/versions/1/","remote_href":"/pulp/api/v3/remotes/rpm/rpm/7e1e16ba-4432-4a52-988e-3da939154cbe/","publication_href":"/pulp/api/v3/publications/rpm/rpm/9695e87f-67d7-4765-9f98-e9a13987baef/","content_counts":{"rpm":32,"erratum":4,"package_group":2,"srpm":0,"module_stream":0},"mirroring_policy":"mirror_content_only","id":18,"name":"Test - Repository","label":"Test_Repository","description":null,"content_view_versions":[],"filters":[{"content_view_filter_id":8,"content_view_filter_name":"Test - Package Content View Filter","content_view_id":10,"content_view_name":"Test - Content View","last_affected_repo":true}],"last_sync":{"id":"0c110a6a-16e1-487f-a587-0ab648d99eda","username":"admin","started_at":"2023-11-15 - 09:54:33 UTC","ended_at":"2023-11-15 09:54:46 UTC","state":"stopped","result":"success","progress":1.0},"content_view":{"id":9,"name":"Default - Organization View"},"content_view_version":{"id":8,"name":"Default Organization - View 1.0","content_view_id":9},"kt_environment":{"id":4,"name":"Library"},"content_type":"yum","url":"https://repos.fedorapeople.org/pulp/pulp/demo_repos/zoo/","arch":"noarch","os_versions":[],"content_id":"1700042066424","generic_remote_options":null,"major":null,"minor":null,"product":{"id":10,"cp_id":"347380074197","name":"Test + string: ' {"inclusion":false,"original_packages":false,"id":78,"name":"Test + Package Content View Filter","description":null,"created_at":"2024-07-25 07:24:41 + UTC","updated_at":"2024-07-25 07:24:41 UTC","content_view":{"composite":false,"component_ids":[],"duplicate_repositories_to_publish":[],"default":false,"version_count":0,"latest_version":null,"latest_version_id":null,"auto_publish":false,"solve_dependencies":false,"import_only":false,"generated_for":"none","related_cv_count":0,"related_composite_cvs":[],"filtered":true,"repository_ids":[20],"id":17,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":10,"organization":{"name":"Test + Organization","label":"Test_Organization","id":10},"created_at":"2024-07-25 + 07:24:40 UTC","updated_at":"2024-07-25 07:24:40 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":20,"name":"Test + Repository","label":"Test_Repository","content_type":"yum","product":{"id":8,"name":"Test + Product"},"content_counts":{"docker_manifest":0,"docker_tag":0,"rpm":32,"package":32,"package_group":2,"erratum":4,"module_stream":0}}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]},"repositories":[{"backend_identifier":"c42d6bfb-3280-4660-9f2c-c76c786fa382","relative_path":"Test_Organization/Library/custom/Test_Product/Test_Repository","container_repository_name":"test_organization-test_product-test_repository","full_path":"https://centos8-stream-katello-nightly.tanso.example.com/pulp/content/Test_Organization/Library/custom/Test_Product/Test_Repository/","library_instance_id":null,"version_href":"/pulp/api/v3/repositories/rpm/rpm/0190e8c6-b36d-7e8e-80f0-a0b6470e39c9/versions/1/","remote_href":"/pulp/api/v3/remotes/rpm/rpm/0190e8c6-b9d8-7aa7-a1d8-f8f81d2e719a/","publication_href":"/pulp/api/v3/publications/rpm/rpm/0190e8c6-d0e6-72f6-84b8-8a095de927df/","content_counts":{"rpm":32,"erratum":4,"package_group":2,"srpm":0,"module_stream":0},"mirroring_policy":"mirror_content_only","id":20,"name":"Test + Repository","label":"Test_Repository","description":null,"content_view_versions":[],"filters":[{"content_view_filter_id":78,"content_view_filter_name":"Test + Package Content View Filter","content_view_id":17,"content_view_name":"Test + Content View","last_affected_repo":true}],"last_sync":{"id":"13c7ce53-a0e4-4a3c-9a5e-27f4671e300d","username":"admin","started_at":"2024-07-25 + 07:24:18 UTC","ended_at":"2024-07-25 07:24:23 UTC","state":"stopped","result":"success","progress":1.0},"content_view":{"id":16,"name":"Default + Organization View"},"content_view_version":{"id":9,"name":"Default Organization + View 1.0","content_view_id":16},"kt_environment":{"id":9,"name":"Library"},"content_type":"yum","url":"https://repos.fedorapeople.org/pulp/pulp/demo_repos/zoo/","arch":"noarch","os_versions":[],"content_id":"1721892254686","generic_remote_options":null,"major":null,"minor":null,"product":{"id":8,"cp_id":"527370220153","name":"Test Product","orphaned":false,"redhat":false,"sync_plan":null},"content_label":"Test_Organization_Test_Product_Test_Repository","last_sync_words":"less than a minute"}],"type":"rpm","rules":[]} @@ -407,7 +407,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '3156' + - '3226' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -421,7 +421,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.1 + - 3.12.0-develop Keep-Alive: - timeout=15, max=94 Strict-Transport-Security: @@ -455,23 +455,23 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: PUT - uri: https://foreman.example.org/katello/api/content_views/10/filters/8 + uri: https://foreman.example.org/katello/api/content_views/17/filters/78 response: body: - string: ' {"inclusion":false,"original_packages":true,"id":8,"name":"Test Package - Content View Filter","description":null,"created_at":"2023-11-15 09:55:10 - UTC","updated_at":"2023-11-15 09:55:11 UTC","content_view":{"composite":false,"component_ids":[],"default":false,"version_count":0,"latest_version":null,"latest_version_id":null,"auto_publish":false,"solve_dependencies":false,"import_only":false,"generated_for":"none","related_cv_count":0,"related_composite_cvs":[],"needs_publish":true,"filtered":true,"repository_ids":[18],"id":10,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":5,"organization":{"name":"Test - Organization","label":"Test_Organization","id":5},"created_at":"2023-11-15 - 09:55:08 UTC","updated_at":"2023-11-15 09:55:08 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":18,"name":"Test - Repository","label":"Test_Repository","content_type":"yum","product":{"id":10,"name":"Test - Product"},"content_counts":{"docker_manifest":0,"docker_tag":0,"rpm":32,"package":32,"package_group":2,"erratum":4,"module_stream":0}}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]},"repositories":[{"backend_identifier":"29b3d88f-d4d9-4411-b1db-69f3a9c7df12","relative_path":"Test_Organization/Library/custom/Test_Product/Test_Repository","container_repository_name":null,"full_path":"https://centos8-stream-katello-4-9.tanso.example.com/pulp/content/Test_Organization/Library/custom/Test_Product/Test_Repository/","library_instance_id":null,"version_href":"/pulp/api/v3/repositories/rpm/rpm/00e6944a-841e-4bfe-9416-070861ef58fb/versions/1/","remote_href":"/pulp/api/v3/remotes/rpm/rpm/7e1e16ba-4432-4a52-988e-3da939154cbe/","publication_href":"/pulp/api/v3/publications/rpm/rpm/9695e87f-67d7-4765-9f98-e9a13987baef/","content_counts":{"rpm":32,"erratum":4,"package_group":2,"srpm":0,"module_stream":0},"mirroring_policy":"mirror_content_only","id":18,"name":"Test - Repository","label":"Test_Repository","description":null,"content_view_versions":[],"filters":[{"content_view_filter_id":8,"content_view_filter_name":"Test - Package Content View Filter","content_view_id":10,"content_view_name":"Test - Content View","last_affected_repo":true}],"last_sync":{"id":"0c110a6a-16e1-487f-a587-0ab648d99eda","username":"admin","started_at":"2023-11-15 - 09:54:33 UTC","ended_at":"2023-11-15 09:54:46 UTC","state":"stopped","result":"success","progress":1.0},"content_view":{"id":9,"name":"Default - Organization View"},"content_view_version":{"id":8,"name":"Default Organization - View 1.0","content_view_id":9},"kt_environment":{"id":4,"name":"Library"},"content_type":"yum","url":"https://repos.fedorapeople.org/pulp/pulp/demo_repos/zoo/","arch":"noarch","os_versions":[],"content_id":"1700042066424","generic_remote_options":null,"major":null,"minor":null,"product":{"id":10,"cp_id":"347380074197","name":"Test + string: ' {"inclusion":false,"original_packages":true,"id":78,"name":"Test + Package Content View Filter","description":null,"created_at":"2024-07-25 07:24:41 + UTC","updated_at":"2024-07-25 07:24:43 UTC","content_view":{"composite":false,"component_ids":[],"duplicate_repositories_to_publish":[],"default":false,"version_count":0,"latest_version":null,"latest_version_id":null,"auto_publish":false,"solve_dependencies":false,"import_only":false,"generated_for":"none","related_cv_count":0,"related_composite_cvs":[],"filtered":true,"repository_ids":[20],"id":17,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":10,"organization":{"name":"Test + Organization","label":"Test_Organization","id":10},"created_at":"2024-07-25 + 07:24:40 UTC","updated_at":"2024-07-25 07:24:40 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":20,"name":"Test + Repository","label":"Test_Repository","content_type":"yum","product":{"id":8,"name":"Test + Product"},"content_counts":{"docker_manifest":0,"docker_tag":0,"rpm":32,"package":32,"package_group":2,"erratum":4,"module_stream":0}}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]},"repositories":[{"backend_identifier":"c42d6bfb-3280-4660-9f2c-c76c786fa382","relative_path":"Test_Organization/Library/custom/Test_Product/Test_Repository","container_repository_name":"test_organization-test_product-test_repository","full_path":"https://centos8-stream-katello-nightly.tanso.example.com/pulp/content/Test_Organization/Library/custom/Test_Product/Test_Repository/","library_instance_id":null,"version_href":"/pulp/api/v3/repositories/rpm/rpm/0190e8c6-b36d-7e8e-80f0-a0b6470e39c9/versions/1/","remote_href":"/pulp/api/v3/remotes/rpm/rpm/0190e8c6-b9d8-7aa7-a1d8-f8f81d2e719a/","publication_href":"/pulp/api/v3/publications/rpm/rpm/0190e8c6-d0e6-72f6-84b8-8a095de927df/","content_counts":{"rpm":32,"erratum":4,"package_group":2,"srpm":0,"module_stream":0},"mirroring_policy":"mirror_content_only","id":20,"name":"Test + Repository","label":"Test_Repository","description":null,"content_view_versions":[],"filters":[{"content_view_filter_id":78,"content_view_filter_name":"Test + Package Content View Filter","content_view_id":17,"content_view_name":"Test + Content View","last_affected_repo":true}],"last_sync":{"id":"13c7ce53-a0e4-4a3c-9a5e-27f4671e300d","username":"admin","started_at":"2024-07-25 + 07:24:18 UTC","ended_at":"2024-07-25 07:24:23 UTC","state":"stopped","result":"success","progress":1.0},"content_view":{"id":16,"name":"Default + Organization View"},"content_view_version":{"id":9,"name":"Default Organization + View 1.0","content_view_id":16},"kt_environment":{"id":9,"name":"Library"},"content_type":"yum","url":"https://repos.fedorapeople.org/pulp/pulp/demo_repos/zoo/","arch":"noarch","os_versions":[],"content_id":"1721892254686","generic_remote_options":null,"major":null,"minor":null,"product":{"id":8,"cp_id":"527370220153","name":"Test Product","orphaned":false,"redhat":false,"sync_plan":null},"content_label":"Test_Organization_Test_Product_Test_Repository","last_sync_words":"less than a minute"}],"type":"rpm","rules":[]} @@ -482,7 +482,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '3155' + - '3225' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -496,7 +496,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.1 + - 3.12.0-develop Keep-Alive: - timeout=15, max=93 Strict-Transport-Security: diff --git a/tests/test_playbooks/fixtures/content_view_filter-20.yml b/tests/test_playbooks/fixtures/content_view_filter-20.yml index e3ea8a48..0d04dbd0 100644 --- a/tests/test_playbooks/fixtures/content_view_filter-20.yml +++ b/tests/test_playbooks/fixtures/content_view_filter-20.yml @@ -14,14 +14,14 @@ interactions: uri: https://foreman.example.org/api/status response: body: - string: '{"result":"ok","status":200,"version":"3.7.1","api_version":2}' + string: '{"result":"ok","status":200,"version":"3.12.0-develop","api_version":2}' headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive Content-Length: - - '62' + - '71' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -35,7 +35,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.1 + - 3.12.0-develop Keep-Alive: - timeout=15, max=100 Strict-Transport-Security: @@ -70,8 +70,8 @@ interactions: body: string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": 4294967296,\n \"search\": \"name=\\\"Test Organization\\\"\",\n \"sort\": - {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\":\"Test_Organization\",\"created_at\":\"2023-11-15 - 09:54:22 UTC\",\"updated_at\":\"2023-11-15 09:54:23 UTC\",\"id\":5,\"name\":\"Test + {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\":\"Test_Organization\",\"created_at\":\"2024-07-25 + 07:24:10 UTC\",\"updated_at\":\"2024-07-25 07:24:12 UTC\",\"id\":10,\"name\":\"Test Organization\",\"title\":\"Test Organization\",\"description\":\"A test organization\"}]\n}\n" headers: Cache-Control: @@ -79,7 +79,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '388' + - '389' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -93,7 +93,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.1 + - 3.12.0-develop Keep-Alive: - timeout=15, max=99 Strict-Transport-Security: @@ -123,14 +123,14 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/organizations/5/content_views?search=name%3D%22Test+Content+View%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/organizations/10/content_views?search=name%3D%22Test+Content+View%22&per_page=4294967296 response: body: string: '{"total":2,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Content View\"","sort":{"by":"name","order":"asc"},"results":[{"composite":false,"component_ids":[],"default":false,"version_count":0,"latest_version":null,"latest_version_id":null,"auto_publish":false,"solve_dependencies":false,"import_only":false,"generated_for":"none","related_cv_count":0,"related_composite_cvs":[],"needs_publish":true,"filtered":false,"repository_ids":[18],"id":10,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":5,"organization":{"name":"Test - Organization","label":"Test_Organization","id":5},"created_at":"2023-11-15 - 09:55:08 UTC","updated_at":"2023-11-15 09:55:08 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":18,"name":"Test + Content View\"","sort":{"by":"name","order":"asc"},"results":[{"composite":false,"component_ids":[],"duplicate_repositories_to_publish":[],"default":false,"version_count":0,"latest_version":null,"latest_version_id":null,"auto_publish":false,"solve_dependencies":false,"import_only":false,"generated_for":"none","related_cv_count":0,"related_composite_cvs":[],"filtered":false,"repository_ids":[20],"id":17,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":10,"organization":{"name":"Test + Organization","label":"Test_Organization","id":10},"created_at":"2024-07-25 + 07:24:40 UTC","updated_at":"2024-07-25 07:24:40 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":20,"name":"Test Repository","label":"Test_Repository","content_type":"yum"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]}]} ' @@ -140,7 +140,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '1050' + - '1070' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -152,9 +152,9 @@ interactions: Foreman_current_location: - ; ANY Foreman_current_organization: - - 5; Test Organization + - 10; Test Organization Foreman_version: - - 3.7.1 + - 3.12.0-develop Keep-Alive: - timeout=15, max=98 Strict-Transport-Security: @@ -184,7 +184,7 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/content_views/10/filters?search=name%3D%22Test+Content+View+Filter+-+modulemd%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/content_views/17/filters?search=name%3D%22Test+Content+View+Filter+-+modulemd%22&per_page=4294967296 response: body: string: '{"total":0,"subtotal":0,"selectable":0,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test @@ -211,7 +211,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.1 + - 3.12.0-develop Keep-Alive: - timeout=15, max=97 Strict-Transport-Security: @@ -246,16 +246,16 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: POST - uri: https://foreman.example.org/katello/api/content_views/10/filters + uri: https://foreman.example.org/katello/api/content_views/17/filters response: body: - string: ' {"inclusion":false,"original_module_streams":false,"id":13,"name":"Test - Content View Filter - modulemd","description":null,"created_at":"2023-11-15 - 09:55:26 UTC","updated_at":"2023-11-15 09:55:26 UTC","content_view":{"composite":false,"component_ids":[],"default":false,"version_count":0,"latest_version":null,"latest_version_id":null,"auto_publish":false,"solve_dependencies":false,"import_only":false,"generated_for":"none","related_cv_count":0,"related_composite_cvs":[],"needs_publish":true,"filtered":true,"repository_ids":[18],"id":10,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":5,"organization":{"name":"Test - Organization","label":"Test_Organization","id":5},"created_at":"2023-11-15 - 09:55:08 UTC","updated_at":"2023-11-15 09:55:08 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":18,"name":"Test - Repository","label":"Test_Repository","content_type":"yum","product":{"id":10,"name":"Test + string: ' {"inclusion":false,"original_module_streams":false,"id":83,"name":"Test + Content View Filter - modulemd","description":null,"created_at":"2024-07-25 + 07:24:56 UTC","updated_at":"2024-07-25 07:24:56 UTC","content_view":{"composite":false,"component_ids":[],"duplicate_repositories_to_publish":[],"default":false,"version_count":0,"latest_version":null,"latest_version_id":null,"auto_publish":false,"solve_dependencies":false,"import_only":false,"generated_for":"none","related_cv_count":0,"related_composite_cvs":[],"filtered":true,"repository_ids":[20],"id":17,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":10,"organization":{"name":"Test + Organization","label":"Test_Organization","id":10},"created_at":"2024-07-25 + 07:24:40 UTC","updated_at":"2024-07-25 07:24:40 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":20,"name":"Test + Repository","label":"Test_Repository","content_type":"yum","product":{"id":8,"name":"Test Product"},"content_counts":{"docker_manifest":0,"docker_tag":0,"rpm":32,"package":32,"package_group":2,"erratum":4,"module_stream":0}}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]},"repositories":[],"type":"modulemd","rules":[]} ' @@ -265,7 +265,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '1310' + - '1329' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -279,7 +279,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.1 + - 3.12.0-develop Keep-Alive: - timeout=15, max=96 Strict-Transport-Security: diff --git a/tests/test_playbooks/fixtures/content_view_filter-21.yml b/tests/test_playbooks/fixtures/content_view_filter-21.yml index 09268d1f..2394d5c6 100644 --- a/tests/test_playbooks/fixtures/content_view_filter-21.yml +++ b/tests/test_playbooks/fixtures/content_view_filter-21.yml @@ -14,14 +14,14 @@ interactions: uri: https://foreman.example.org/api/status response: body: - string: '{"result":"ok","status":200,"version":"3.7.1","api_version":2}' + string: '{"result":"ok","status":200,"version":"3.12.0-develop","api_version":2}' headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive Content-Length: - - '62' + - '71' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -35,7 +35,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.1 + - 3.12.0-develop Keep-Alive: - timeout=15, max=100 Strict-Transport-Security: @@ -70,8 +70,8 @@ interactions: body: string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": 4294967296,\n \"search\": \"name=\\\"Test Organization\\\"\",\n \"sort\": - {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\":\"Test_Organization\",\"created_at\":\"2023-11-15 - 09:54:22 UTC\",\"updated_at\":\"2023-11-15 09:54:23 UTC\",\"id\":5,\"name\":\"Test + {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\":\"Test_Organization\",\"created_at\":\"2024-07-25 + 07:24:10 UTC\",\"updated_at\":\"2024-07-25 07:24:12 UTC\",\"id\":10,\"name\":\"Test Organization\",\"title\":\"Test Organization\",\"description\":\"A test organization\"}]\n}\n" headers: Cache-Control: @@ -79,7 +79,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '388' + - '389' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -93,7 +93,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.1 + - 3.12.0-develop Keep-Alive: - timeout=15, max=99 Strict-Transport-Security: @@ -123,14 +123,14 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/organizations/5/content_views?search=name%3D%22Test+Content+View%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/organizations/10/content_views?search=name%3D%22Test+Content+View%22&per_page=4294967296 response: body: string: '{"total":2,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Content View\"","sort":{"by":"name","order":"asc"},"results":[{"composite":false,"component_ids":[],"default":false,"version_count":0,"latest_version":null,"latest_version_id":null,"auto_publish":false,"solve_dependencies":false,"import_only":false,"generated_for":"none","related_cv_count":0,"related_composite_cvs":[],"needs_publish":true,"filtered":true,"repository_ids":[18],"id":10,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":5,"organization":{"name":"Test - Organization","label":"Test_Organization","id":5},"created_at":"2023-11-15 - 09:55:08 UTC","updated_at":"2023-11-15 09:55:08 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":18,"name":"Test + Content View\"","sort":{"by":"name","order":"asc"},"results":[{"composite":false,"component_ids":[],"duplicate_repositories_to_publish":[],"default":false,"version_count":0,"latest_version":null,"latest_version_id":null,"auto_publish":false,"solve_dependencies":false,"import_only":false,"generated_for":"none","related_cv_count":0,"related_composite_cvs":[],"filtered":true,"repository_ids":[20],"id":17,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":10,"organization":{"name":"Test + Organization","label":"Test_Organization","id":10},"created_at":"2024-07-25 + 07:24:40 UTC","updated_at":"2024-07-25 07:24:40 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":20,"name":"Test Repository","label":"Test_Repository","content_type":"yum"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]}]} ' @@ -140,7 +140,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '1049' + - '1069' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -152,9 +152,9 @@ interactions: Foreman_current_location: - ; ANY Foreman_current_organization: - - 5; Test Organization + - 10; Test Organization Foreman_version: - - 3.7.1 + - 3.12.0-develop Keep-Alive: - timeout=15, max=98 Strict-Transport-Security: @@ -184,16 +184,16 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/content_views/10/filters?search=name%3D%22Test+Content+View+Filter+-+modulemd%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/content_views/17/filters?search=name%3D%22Test+Content+View+Filter+-+modulemd%22&per_page=4294967296 response: body: string: '{"total":1,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Content View Filter - modulemd\"","sort":{"by":"name","order":"asc"},"results":[{"inclusion":false,"id":13,"name":"Test - Content View Filter - modulemd","description":null,"created_at":"2023-11-15 - 09:55:26 UTC","updated_at":"2023-11-15 09:55:26 UTC","content_view":{"composite":false,"component_ids":[],"default":false,"version_count":0,"latest_version":null,"latest_version_id":null,"auto_publish":false,"solve_dependencies":false,"import_only":false,"generated_for":"none","related_cv_count":0,"related_composite_cvs":[],"needs_publish":true,"filtered":true,"repository_ids":[18],"id":10,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":5,"organization":{"name":"Test - Organization","label":"Test_Organization","id":5},"created_at":"2023-11-15 - 09:55:08 UTC","updated_at":"2023-11-15 09:55:08 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":18,"name":"Test + Content View Filter - modulemd\"","sort":{"by":"name","order":"asc"},"results":[{"inclusion":false,"id":83,"name":"Test + Content View Filter - modulemd","description":null,"created_at":"2024-07-25 + 07:24:56 UTC","updated_at":"2024-07-25 07:24:56 UTC","content_view":{"composite":false,"component_ids":[],"duplicate_repositories_to_publish":[],"default":false,"version_count":0,"latest_version":null,"latest_version_id":null,"auto_publish":false,"solve_dependencies":false,"import_only":false,"generated_for":"none","related_cv_count":0,"related_composite_cvs":[],"filtered":true,"repository_ids":[20],"id":17,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":10,"organization":{"name":"Test + Organization","label":"Test_Organization","id":10},"created_at":"2024-07-25 + 07:24:40 UTC","updated_at":"2024-07-25 07:24:40 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":20,"name":"Test Repository","label":"Test_Repository","content_type":"yum"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]},"repositories":[],"type":"modulemd","rules":[]}]} ' @@ -203,7 +203,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '1299' + - '1319' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -217,7 +217,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.1 + - 3.12.0-develop Keep-Alive: - timeout=15, max=97 Strict-Transport-Security: @@ -247,16 +247,16 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/content_views/10/filters/13 + uri: https://foreman.example.org/katello/api/content_views/17/filters/83 response: body: - string: ' {"inclusion":false,"original_module_streams":false,"id":13,"name":"Test - Content View Filter - modulemd","description":null,"created_at":"2023-11-15 - 09:55:26 UTC","updated_at":"2023-11-15 09:55:26 UTC","content_view":{"composite":false,"component_ids":[],"default":false,"version_count":0,"latest_version":null,"latest_version_id":null,"auto_publish":false,"solve_dependencies":false,"import_only":false,"generated_for":"none","related_cv_count":0,"related_composite_cvs":[],"needs_publish":true,"filtered":true,"repository_ids":[18],"id":10,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":5,"organization":{"name":"Test - Organization","label":"Test_Organization","id":5},"created_at":"2023-11-15 - 09:55:08 UTC","updated_at":"2023-11-15 09:55:08 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":18,"name":"Test - Repository","label":"Test_Repository","content_type":"yum","product":{"id":10,"name":"Test + string: ' {"inclusion":false,"original_module_streams":false,"id":83,"name":"Test + Content View Filter - modulemd","description":null,"created_at":"2024-07-25 + 07:24:56 UTC","updated_at":"2024-07-25 07:24:56 UTC","content_view":{"composite":false,"component_ids":[],"duplicate_repositories_to_publish":[],"default":false,"version_count":0,"latest_version":null,"latest_version_id":null,"auto_publish":false,"solve_dependencies":false,"import_only":false,"generated_for":"none","related_cv_count":0,"related_composite_cvs":[],"filtered":true,"repository_ids":[20],"id":17,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":10,"organization":{"name":"Test + Organization","label":"Test_Organization","id":10},"created_at":"2024-07-25 + 07:24:40 UTC","updated_at":"2024-07-25 07:24:40 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":20,"name":"Test + Repository","label":"Test_Repository","content_type":"yum","product":{"id":8,"name":"Test Product"},"content_counts":{"docker_manifest":0,"docker_tag":0,"rpm":32,"package":32,"package_group":2,"erratum":4,"module_stream":0}}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]},"repositories":[],"type":"modulemd","rules":[]} ' @@ -266,7 +266,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '1310' + - '1329' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -280,7 +280,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.1 + - 3.12.0-develop Keep-Alive: - timeout=15, max=96 Strict-Transport-Security: diff --git a/tests/test_playbooks/fixtures/content_view_filter-22.yml b/tests/test_playbooks/fixtures/content_view_filter-22.yml index 51d44b2d..39c71183 100644 --- a/tests/test_playbooks/fixtures/content_view_filter-22.yml +++ b/tests/test_playbooks/fixtures/content_view_filter-22.yml @@ -14,14 +14,14 @@ interactions: uri: https://foreman.example.org/api/status response: body: - string: '{"result":"ok","status":200,"version":"3.7.1","api_version":2}' + string: '{"result":"ok","status":200,"version":"3.12.0-develop","api_version":2}' headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive Content-Length: - - '62' + - '71' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -35,7 +35,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.1 + - 3.12.0-develop Keep-Alive: - timeout=15, max=100 Strict-Transport-Security: @@ -70,8 +70,8 @@ interactions: body: string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": 4294967296,\n \"search\": \"name=\\\"Test Organization\\\"\",\n \"sort\": - {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\":\"Test_Organization\",\"created_at\":\"2023-11-15 - 09:54:22 UTC\",\"updated_at\":\"2023-11-15 09:54:23 UTC\",\"id\":5,\"name\":\"Test + {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\":\"Test_Organization\",\"created_at\":\"2024-07-25 + 07:24:10 UTC\",\"updated_at\":\"2024-07-25 07:24:12 UTC\",\"id\":10,\"name\":\"Test Organization\",\"title\":\"Test Organization\",\"description\":\"A test organization\"}]\n}\n" headers: Cache-Control: @@ -79,7 +79,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '388' + - '389' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -93,7 +93,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.1 + - 3.12.0-develop Keep-Alive: - timeout=15, max=99 Strict-Transport-Security: @@ -123,14 +123,14 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/organizations/5/content_views?search=name%3D%22Test+Content+View%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/organizations/10/content_views?search=name%3D%22Test+Content+View%22&per_page=4294967296 response: body: string: '{"total":2,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Content View\"","sort":{"by":"name","order":"asc"},"results":[{"composite":false,"component_ids":[],"default":false,"version_count":0,"latest_version":null,"latest_version_id":null,"auto_publish":false,"solve_dependencies":false,"import_only":false,"generated_for":"none","related_cv_count":0,"related_composite_cvs":[],"needs_publish":true,"filtered":true,"repository_ids":[18],"id":10,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":5,"organization":{"name":"Test - Organization","label":"Test_Organization","id":5},"created_at":"2023-11-15 - 09:55:08 UTC","updated_at":"2023-11-15 09:55:08 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":18,"name":"Test + Content View\"","sort":{"by":"name","order":"asc"},"results":[{"composite":false,"component_ids":[],"duplicate_repositories_to_publish":[],"default":false,"version_count":0,"latest_version":null,"latest_version_id":null,"auto_publish":false,"solve_dependencies":false,"import_only":false,"generated_for":"none","related_cv_count":0,"related_composite_cvs":[],"filtered":true,"repository_ids":[20],"id":17,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":10,"organization":{"name":"Test + Organization","label":"Test_Organization","id":10},"created_at":"2024-07-25 + 07:24:40 UTC","updated_at":"2024-07-25 07:24:40 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":20,"name":"Test Repository","label":"Test_Repository","content_type":"yum"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]}]} ' @@ -140,7 +140,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '1049' + - '1069' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -152,9 +152,9 @@ interactions: Foreman_current_location: - ; ANY Foreman_current_organization: - - 5; Test Organization + - 10; Test Organization Foreman_version: - - 3.7.1 + - 3.12.0-develop Keep-Alive: - timeout=15, max=98 Strict-Transport-Security: @@ -184,16 +184,16 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/content_views/10/filters?search=name%3D%22Test+Content+View+Filter+-+modulemd%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/content_views/17/filters?search=name%3D%22Test+Content+View+Filter+-+modulemd%22&per_page=4294967296 response: body: string: '{"total":1,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Content View Filter - modulemd\"","sort":{"by":"name","order":"asc"},"results":[{"inclusion":false,"id":13,"name":"Test - Content View Filter - modulemd","description":null,"created_at":"2023-11-15 - 09:55:26 UTC","updated_at":"2023-11-15 09:55:26 UTC","content_view":{"composite":false,"component_ids":[],"default":false,"version_count":0,"latest_version":null,"latest_version_id":null,"auto_publish":false,"solve_dependencies":false,"import_only":false,"generated_for":"none","related_cv_count":0,"related_composite_cvs":[],"needs_publish":true,"filtered":true,"repository_ids":[18],"id":10,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":5,"organization":{"name":"Test - Organization","label":"Test_Organization","id":5},"created_at":"2023-11-15 - 09:55:08 UTC","updated_at":"2023-11-15 09:55:08 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":18,"name":"Test + Content View Filter - modulemd\"","sort":{"by":"name","order":"asc"},"results":[{"inclusion":false,"id":83,"name":"Test + Content View Filter - modulemd","description":null,"created_at":"2024-07-25 + 07:24:56 UTC","updated_at":"2024-07-25 07:24:56 UTC","content_view":{"composite":false,"component_ids":[],"duplicate_repositories_to_publish":[],"default":false,"version_count":0,"latest_version":null,"latest_version_id":null,"auto_publish":false,"solve_dependencies":false,"import_only":false,"generated_for":"none","related_cv_count":0,"related_composite_cvs":[],"filtered":true,"repository_ids":[20],"id":17,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":10,"organization":{"name":"Test + Organization","label":"Test_Organization","id":10},"created_at":"2024-07-25 + 07:24:40 UTC","updated_at":"2024-07-25 07:24:40 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":20,"name":"Test Repository","label":"Test_Repository","content_type":"yum"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]},"repositories":[],"type":"modulemd","rules":[]}]} ' @@ -203,7 +203,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '1299' + - '1319' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -217,7 +217,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.1 + - 3.12.0-develop Keep-Alive: - timeout=15, max=97 Strict-Transport-Security: @@ -235,69 +235,6 @@ interactions: status: code: 200 message: OK -- request: - body: null - headers: - Accept: - - application/json;version=2 - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - apypie (https://github.com/Apipie/apypie) - method: GET - uri: https://foreman.example.org/katello/api/content_views/10/filters/13 - response: - body: - string: ' {"inclusion":false,"original_module_streams":false,"id":13,"name":"Test - Content View Filter - modulemd","description":null,"created_at":"2023-11-15 - 09:55:26 UTC","updated_at":"2023-11-15 09:55:26 UTC","content_view":{"composite":false,"component_ids":[],"default":false,"version_count":0,"latest_version":null,"latest_version_id":null,"auto_publish":false,"solve_dependencies":false,"import_only":false,"generated_for":"none","related_cv_count":0,"related_composite_cvs":[],"needs_publish":true,"filtered":true,"repository_ids":[18],"id":10,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":5,"organization":{"name":"Test - Organization","label":"Test_Organization","id":5},"created_at":"2023-11-15 - 09:55:08 UTC","updated_at":"2023-11-15 09:55:08 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":18,"name":"Test - Repository","label":"Test_Repository","content_type":"yum","product":{"id":10,"name":"Test - Product"},"content_counts":{"docker_manifest":0,"docker_tag":0,"rpm":32,"package":32,"package_group":2,"erratum":4,"module_stream":0}}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]},"repositories":[],"type":"modulemd","rules":[]} - - ' - headers: - Cache-Control: - - max-age=0, private, must-revalidate - Connection: - - Keep-Alive - Content-Length: - - '1310' - Content-Security-Policy: - - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; - style-src ''unsafe-inline'' ''self''' - Content-Type: - - application/json; charset=utf-8 - Foreman_api_version: - - '2' - Foreman_current_location: - - ; ANY - Foreman_current_organization: - - ; ANY - Foreman_version: - - 3.7.1 - Keep-Alive: - - timeout=15, max=96 - Strict-Transport-Security: - - max-age=631139040; includeSubdomains - X-Content-Type-Options: - - nosniff - X-Download-Options: - - noopen - X-Frame-Options: - - sameorigin - X-Permitted-Cross-Domain-Policies: - - none - X-XSS-Protection: - - 1; mode=block - status: - code: 200 - message: OK - request: body: null headers: @@ -312,16 +249,16 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: DELETE - uri: https://foreman.example.org/katello/api/content_views/10/filters/13 + uri: https://foreman.example.org/katello/api/content_views/17/filters/83 response: body: - string: ' {"inclusion":false,"original_module_streams":false,"id":13,"name":"Test - Content View Filter - modulemd","description":null,"created_at":"2023-11-15 - 09:55:26 UTC","updated_at":"2023-11-15 09:55:26 UTC","content_view":{"composite":false,"component_ids":[],"default":false,"version_count":0,"latest_version":null,"latest_version_id":null,"auto_publish":false,"solve_dependencies":false,"import_only":false,"generated_for":"none","related_cv_count":0,"related_composite_cvs":[],"needs_publish":true,"filtered":false,"repository_ids":[18],"id":10,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":5,"organization":{"name":"Test - Organization","label":"Test_Organization","id":5},"created_at":"2023-11-15 - 09:55:08 UTC","updated_at":"2023-11-15 09:55:08 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":18,"name":"Test - Repository","label":"Test_Repository","content_type":"yum","product":{"id":10,"name":"Test + string: ' {"inclusion":false,"original_module_streams":false,"id":83,"name":"Test + Content View Filter - modulemd","description":null,"created_at":"2024-07-25 + 07:24:56 UTC","updated_at":"2024-07-25 07:24:56 UTC","content_view":{"composite":false,"component_ids":[],"duplicate_repositories_to_publish":[],"default":false,"version_count":0,"latest_version":null,"latest_version_id":null,"auto_publish":false,"solve_dependencies":false,"import_only":false,"generated_for":"none","related_cv_count":0,"related_composite_cvs":[],"filtered":false,"repository_ids":[20],"id":17,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":10,"organization":{"name":"Test + Organization","label":"Test_Organization","id":10},"created_at":"2024-07-25 + 07:24:40 UTC","updated_at":"2024-07-25 07:24:40 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":20,"name":"Test + Repository","label":"Test_Repository","content_type":"yum","product":{"id":8,"name":"Test Product"},"content_counts":{"docker_manifest":0,"docker_tag":0,"rpm":32,"package":32,"package_group":2,"erratum":4,"module_stream":0}}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]},"repositories":[],"type":"modulemd","rules":[]} ' @@ -331,7 +268,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '1311' + - '1330' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -345,9 +282,9 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.1 + - 3.12.0-develop Keep-Alive: - - timeout=15, max=95 + - timeout=15, max=96 Strict-Transport-Security: - max-age=631139040; includeSubdomains X-Content-Type-Options: diff --git a/tests/test_playbooks/fixtures/content_view_filter-23.yml b/tests/test_playbooks/fixtures/content_view_filter-23.yml deleted file mode 100644 index fea5f028..00000000 --- a/tests/test_playbooks/fixtures/content_view_filter-23.yml +++ /dev/null @@ -1,430 +0,0 @@ -interactions: -- request: - body: null - headers: - Accept: - - application/json;version=2 - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - apypie (https://github.com/Apipie/apypie) - method: GET - uri: https://foreman.example.org/api/status - response: - body: - string: '{"result":"ok","status":200,"version":"3.7.1","api_version":2}' - headers: - Cache-Control: - - max-age=0, private, must-revalidate - Connection: - - Keep-Alive - Content-Length: - - '62' - Content-Security-Policy: - - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; - style-src ''unsafe-inline'' ''self''' - Content-Type: - - application/json; charset=utf-8 - Foreman_api_version: - - '2' - Foreman_current_location: - - ; ANY - Foreman_current_organization: - - ; ANY - Foreman_version: - - 3.7.1 - Keep-Alive: - - timeout=15, max=100 - Strict-Transport-Security: - - max-age=631139040; includeSubdomains - X-Content-Type-Options: - - nosniff - X-Download-Options: - - noopen - X-Frame-Options: - - sameorigin - X-Permitted-Cross-Domain-Policies: - - none - X-XSS-Protection: - - 1; mode=block - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json;version=2 - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - apypie (https://github.com/Apipie/apypie) - method: GET - uri: https://foreman.example.org/katello/api/organizations?search=name%3D%22Test+Organization%22&per_page=4294967296 - response: - body: - string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": - 4294967296,\n \"search\": \"name=\\\"Test Organization\\\"\",\n \"sort\": - {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\":\"Test_Organization\",\"created_at\":\"2023-11-15 - 09:54:22 UTC\",\"updated_at\":\"2023-11-15 09:54:23 UTC\",\"id\":5,\"name\":\"Test - Organization\",\"title\":\"Test Organization\",\"description\":\"A test organization\"}]\n}\n" - headers: - Cache-Control: - - max-age=0, private, must-revalidate - Connection: - - Keep-Alive - Content-Length: - - '388' - Content-Security-Policy: - - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; - style-src ''unsafe-inline'' ''self''' - Content-Type: - - application/json; charset=utf-8 - Foreman_api_version: - - '2' - Foreman_current_location: - - ; ANY - Foreman_current_organization: - - ; ANY - Foreman_version: - - 3.7.1 - Keep-Alive: - - timeout=15, max=99 - Strict-Transport-Security: - - max-age=631139040; includeSubdomains - X-Content-Type-Options: - - nosniff - X-Download-Options: - - noopen - X-Frame-Options: - - sameorigin - X-Permitted-Cross-Domain-Policies: - - none - X-XSS-Protection: - - 1; mode=block - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json;version=2 - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - apypie (https://github.com/Apipie/apypie) - method: GET - uri: https://foreman.example.org/katello/api/organizations/5/content_views?search=name%3D%22Test+Content+View%22&per_page=4294967296 - response: - body: - string: '{"total":2,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Content View\"","sort":{"by":"name","order":"asc"},"results":[{"composite":false,"component_ids":[],"default":false,"version_count":0,"latest_version":null,"latest_version_id":null,"auto_publish":false,"solve_dependencies":false,"import_only":false,"generated_for":"none","related_cv_count":0,"related_composite_cvs":[],"needs_publish":true,"filtered":false,"repository_ids":[18],"id":10,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":5,"organization":{"name":"Test - Organization","label":"Test_Organization","id":5},"created_at":"2023-11-15 - 09:55:08 UTC","updated_at":"2023-11-15 09:55:08 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":18,"name":"Test - Repository","label":"Test_Repository","content_type":"yum"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]}]} - - ' - headers: - Cache-Control: - - max-age=0, private, must-revalidate - Connection: - - Keep-Alive - Content-Length: - - '1050' - Content-Security-Policy: - - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; - style-src ''unsafe-inline'' ''self''' - Content-Type: - - application/json; charset=utf-8 - Foreman_api_version: - - '2' - Foreman_current_location: - - ; ANY - Foreman_current_organization: - - 5; Test Organization - Foreman_version: - - 3.7.1 - Keep-Alive: - - timeout=15, max=98 - Strict-Transport-Security: - - max-age=631139040; includeSubdomains - X-Content-Type-Options: - - nosniff - X-Download-Options: - - noopen - X-Frame-Options: - - sameorigin - X-Permitted-Cross-Domain-Policies: - - none - X-XSS-Protection: - - 1; mode=block - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json;version=2 - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - apypie (https://github.com/Apipie/apypie) - method: GET - uri: https://foreman.example.org/katello/api/organizations/5/products?search=name%3D%22Test+Product%22&per_page=4294967296 - response: - body: - string: '{"total":1,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Product\"","sort":{"by":"name","order":"asc"},"results":[{"id":10,"cp_id":"347380074197","name":"Test - Product","label":"Test_Product","description":"A happy little test product","provider_id":7,"sync_plan_id":null,"sync_summary":{"success":3},"gpg_key_id":null,"ssl_ca_cert_id":null,"ssl_client_cert_id":null,"ssl_client_key_id":null,"sync_state":"Syncing - Complete.","last_sync":"2023-11-15 09:54:59 UTC","last_sync_words":"less than - a minute","organization_id":5,"organization":{"name":"Test Organization","label":"Test_Organization","id":5},"sync_plan":null,"repository_count":3}]} - - ' - headers: - Cache-Control: - - max-age=0, private, must-revalidate - Connection: - - Keep-Alive - Content-Length: - - '691' - Content-Security-Policy: - - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; - style-src ''unsafe-inline'' ''self''' - Content-Type: - - application/json; charset=utf-8 - Foreman_api_version: - - '2' - Foreman_current_location: - - ; ANY - Foreman_current_organization: - - 5; Test Organization - Foreman_version: - - 3.7.1 - Keep-Alive: - - timeout=15, max=97 - Strict-Transport-Security: - - max-age=631139040; includeSubdomains - X-Content-Type-Options: - - nosniff - X-Download-Options: - - noopen - X-Frame-Options: - - sameorigin - X-Permitted-Cross-Domain-Policies: - - none - X-XSS-Protection: - - 1; mode=block - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json;version=2 - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - apypie (https://github.com/Apipie/apypie) - method: GET - uri: https://foreman.example.org/katello/api/products/10/repositories?search=name%3D%22Test+Repository%22&per_page=4294967296 - response: - body: - string: '{"total":3,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Repository\"","sort":{"by":"name","order":"asc"},"results":[{"backend_identifier":"29b3d88f-d4d9-4411-b1db-69f3a9c7df12","relative_path":"Test_Organization/Library/custom/Test_Product/Test_Repository","container_repository_name":null,"full_path":"https://centos8-stream-katello-4-9.tanso.example.com/pulp/content/Test_Organization/Library/custom/Test_Product/Test_Repository/","library_instance_id":null,"version_href":"/pulp/api/v3/repositories/rpm/rpm/00e6944a-841e-4bfe-9416-070861ef58fb/versions/1/","remote_href":"/pulp/api/v3/remotes/rpm/rpm/7e1e16ba-4432-4a52-988e-3da939154cbe/","publication_href":"/pulp/api/v3/publications/rpm/rpm/9695e87f-67d7-4765-9f98-e9a13987baef/","content_counts":{"rpm":32,"erratum":4,"package_group":2,"srpm":0,"module_stream":0},"mirroring_policy":"mirror_content_only","id":18,"name":"Test - Repository","label":"Test_Repository","description":null,"content_view_versions":[],"filters":[],"last_sync":{"id":"0c110a6a-16e1-487f-a587-0ab648d99eda","username":"admin","started_at":"2023-11-15 - 09:54:33 UTC","ended_at":"2023-11-15 09:54:46 UTC","state":"stopped","result":"success","progress":1.0},"content_view":{"id":9,"name":"Default - Organization View"},"content_view_version":{"id":8,"name":"Default Organization - View 1.0","content_view_id":9},"kt_environment":{"id":4,"name":"Library"},"content_type":"yum","url":"https://repos.fedorapeople.org/pulp/pulp/demo_repos/zoo/","arch":"noarch","os_versions":[],"content_id":"1700042066424","generic_remote_options":null,"major":null,"minor":null,"product":{"id":10,"cp_id":"347380074197","name":"Test - Product","orphaned":false,"redhat":false,"sync_plan":null},"content_label":"Test_Organization_Test_Product_Test_Repository","last_sync_words":"1 - minute"}],"org_repository_count":3} - - ' - headers: - Cache-Control: - - max-age=0, private, must-revalidate - Connection: - - Keep-Alive - Content-Length: - - '1869' - Content-Security-Policy: - - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; - style-src ''unsafe-inline'' ''self''' - Content-Type: - - application/json; charset=utf-8 - Foreman_api_version: - - '2' - Foreman_current_location: - - ; ANY - Foreman_current_organization: - - ; ANY - Foreman_version: - - 3.7.1 - Keep-Alive: - - timeout=15, max=96 - Strict-Transport-Security: - - max-age=631139040; includeSubdomains - X-Content-Type-Options: - - nosniff - X-Download-Options: - - noopen - X-Frame-Options: - - sameorigin - X-Permitted-Cross-Domain-Policies: - - none - X-XSS-Protection: - - 1; mode=block - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json;version=2 - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - apypie (https://github.com/Apipie/apypie) - method: GET - uri: https://foreman.example.org/katello/api/content_views/10/filters?search=name%3D%22Test+Deb+Content+View+Filter%22&per_page=4294967296 - response: - body: - string: '{"total":0,"subtotal":0,"selectable":0,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Deb Content View Filter\"","sort":{"by":"name","order":"asc"},"results":[]} - - ' - headers: - Cache-Control: - - max-age=0, private, must-revalidate - Connection: - - Keep-Alive - Content-Length: - - '183' - Content-Security-Policy: - - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; - style-src ''unsafe-inline'' ''self''' - Content-Type: - - application/json; charset=utf-8 - Foreman_api_version: - - '2' - Foreman_current_location: - - ; ANY - Foreman_current_organization: - - ; ANY - Foreman_version: - - 3.7.1 - Keep-Alive: - - timeout=15, max=95 - Strict-Transport-Security: - - max-age=631139040; includeSubdomains - X-Content-Type-Options: - - nosniff - X-Download-Options: - - noopen - X-Frame-Options: - - sameorigin - X-Permitted-Cross-Domain-Policies: - - none - X-XSS-Protection: - - 1; mode=block - status: - code: 200 - message: OK -- request: - body: '{"name": "Test Deb Content View Filter", "type": "deb", "inclusion": false, - "repository_ids": [18]}' - headers: - Accept: - - application/json;version=2 - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '99' - Content-Type: - - application/json - User-Agent: - - apypie (https://github.com/Apipie/apypie) - method: POST - uri: https://foreman.example.org/katello/api/content_views/10/filters - response: - body: - string: ' {"inclusion":false,"id":14,"name":"Test Deb Content View Filter","description":null,"created_at":"2023-11-15 - 09:55:28 UTC","updated_at":"2023-11-15 09:55:28 UTC","content_view":{"composite":false,"component_ids":[],"default":false,"version_count":0,"latest_version":null,"latest_version_id":null,"auto_publish":false,"solve_dependencies":false,"import_only":false,"generated_for":"none","related_cv_count":0,"related_composite_cvs":[],"needs_publish":true,"filtered":true,"repository_ids":[18],"id":10,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":5,"organization":{"name":"Test - Organization","label":"Test_Organization","id":5},"created_at":"2023-11-15 - 09:55:08 UTC","updated_at":"2023-11-15 09:55:08 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":18,"name":"Test - Repository","label":"Test_Repository","content_type":"yum","product":{"id":10,"name":"Test - Product"},"content_counts":{"docker_manifest":0,"docker_tag":0,"rpm":32,"package":32,"package_group":2,"erratum":4,"module_stream":0}}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]},"repositories":[{"backend_identifier":"29b3d88f-d4d9-4411-b1db-69f3a9c7df12","relative_path":"Test_Organization/Library/custom/Test_Product/Test_Repository","container_repository_name":null,"full_path":"https://centos8-stream-katello-4-9.tanso.example.com/pulp/content/Test_Organization/Library/custom/Test_Product/Test_Repository/","library_instance_id":null,"version_href":"/pulp/api/v3/repositories/rpm/rpm/00e6944a-841e-4bfe-9416-070861ef58fb/versions/1/","remote_href":"/pulp/api/v3/remotes/rpm/rpm/7e1e16ba-4432-4a52-988e-3da939154cbe/","publication_href":"/pulp/api/v3/publications/rpm/rpm/9695e87f-67d7-4765-9f98-e9a13987baef/","content_counts":{"rpm":32,"erratum":4,"package_group":2,"srpm":0,"module_stream":0},"mirroring_policy":"mirror_content_only","id":18,"name":"Test - Repository","label":"Test_Repository","description":null,"content_view_versions":[],"filters":[{"content_view_filter_id":14,"content_view_filter_name":"Test - Deb Content View Filter","content_view_id":10,"content_view_name":"Test Content - View","last_affected_repo":true}],"last_sync":{"id":"0c110a6a-16e1-487f-a587-0ab648d99eda","username":"admin","started_at":"2023-11-15 - 09:54:33 UTC","ended_at":"2023-11-15 09:54:46 UTC","state":"stopped","result":"success","progress":1.0},"content_view":{"id":9,"name":"Default - Organization View"},"content_view_version":{"id":8,"name":"Default Organization - View 1.0","content_view_id":9},"kt_environment":{"id":4,"name":"Library"},"content_type":"yum","url":"https://repos.fedorapeople.org/pulp/pulp/demo_repos/zoo/","arch":"noarch","os_versions":[],"content_id":"1700042066424","generic_remote_options":null,"major":null,"minor":null,"product":{"id":10,"cp_id":"347380074197","name":"Test - Product","orphaned":false,"redhat":false,"sync_plan":null},"content_label":"Test_Organization_Test_Product_Test_Repository","last_sync_words":"1 - minute"}],"type":"deb","rules":[]} - - ' - headers: - Cache-Control: - - max-age=0, private, must-revalidate - Connection: - - Keep-Alive - Content-Length: - - '3114' - Content-Security-Policy: - - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; - style-src ''unsafe-inline'' ''self''' - Content-Type: - - application/json; charset=utf-8 - Foreman_api_version: - - '2' - Foreman_current_location: - - ; ANY - Foreman_current_organization: - - ; ANY - Foreman_version: - - 3.7.1 - Keep-Alive: - - timeout=15, max=94 - Strict-Transport-Security: - - max-age=631139040; includeSubdomains - X-Content-Type-Options: - - nosniff - X-Download-Options: - - noopen - X-Frame-Options: - - sameorigin - X-Permitted-Cross-Domain-Policies: - - none - X-XSS-Protection: - - 1; mode=block - status: - code: 201 - message: Created -version: 1 diff --git a/tests/test_playbooks/fixtures/content_view_filter-24.yml b/tests/test_playbooks/fixtures/content_view_filter-24.yml deleted file mode 100644 index bab95eba..00000000 --- a/tests/test_playbooks/fixtures/content_view_filter-24.yml +++ /dev/null @@ -1,441 +0,0 @@ -interactions: -- request: - body: null - headers: - Accept: - - application/json;version=2 - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - apypie (https://github.com/Apipie/apypie) - method: GET - uri: https://foreman.example.org/api/status - response: - body: - string: '{"result":"ok","status":200,"version":"3.7.1","api_version":2}' - headers: - Cache-Control: - - max-age=0, private, must-revalidate - Connection: - - Keep-Alive - Content-Length: - - '62' - Content-Security-Policy: - - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; - style-src ''unsafe-inline'' ''self''' - Content-Type: - - application/json; charset=utf-8 - Foreman_api_version: - - '2' - Foreman_current_location: - - ; ANY - Foreman_current_organization: - - ; ANY - Foreman_version: - - 3.7.1 - Keep-Alive: - - timeout=15, max=100 - Strict-Transport-Security: - - max-age=631139040; includeSubdomains - X-Content-Type-Options: - - nosniff - X-Download-Options: - - noopen - X-Frame-Options: - - sameorigin - X-Permitted-Cross-Domain-Policies: - - none - X-XSS-Protection: - - 1; mode=block - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json;version=2 - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - apypie (https://github.com/Apipie/apypie) - method: GET - uri: https://foreman.example.org/katello/api/organizations?search=name%3D%22Test+Organization%22&per_page=4294967296 - response: - body: - string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": - 4294967296,\n \"search\": \"name=\\\"Test Organization\\\"\",\n \"sort\": - {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\":\"Test_Organization\",\"created_at\":\"2023-11-15 - 09:54:22 UTC\",\"updated_at\":\"2023-11-15 09:54:23 UTC\",\"id\":5,\"name\":\"Test - Organization\",\"title\":\"Test Organization\",\"description\":\"A test organization\"}]\n}\n" - headers: - Cache-Control: - - max-age=0, private, must-revalidate - Connection: - - Keep-Alive - Content-Length: - - '388' - Content-Security-Policy: - - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; - style-src ''unsafe-inline'' ''self''' - Content-Type: - - application/json; charset=utf-8 - Foreman_api_version: - - '2' - Foreman_current_location: - - ; ANY - Foreman_current_organization: - - ; ANY - Foreman_version: - - 3.7.1 - Keep-Alive: - - timeout=15, max=99 - Strict-Transport-Security: - - max-age=631139040; includeSubdomains - X-Content-Type-Options: - - nosniff - X-Download-Options: - - noopen - X-Frame-Options: - - sameorigin - X-Permitted-Cross-Domain-Policies: - - none - X-XSS-Protection: - - 1; mode=block - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json;version=2 - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - apypie (https://github.com/Apipie/apypie) - method: GET - uri: https://foreman.example.org/katello/api/organizations/5/content_views?search=name%3D%22Test+Content+View%22&per_page=4294967296 - response: - body: - string: '{"total":2,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Content View\"","sort":{"by":"name","order":"asc"},"results":[{"composite":false,"component_ids":[],"default":false,"version_count":0,"latest_version":null,"latest_version_id":null,"auto_publish":false,"solve_dependencies":false,"import_only":false,"generated_for":"none","related_cv_count":0,"related_composite_cvs":[],"needs_publish":true,"filtered":true,"repository_ids":[18],"id":10,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":5,"organization":{"name":"Test - Organization","label":"Test_Organization","id":5},"created_at":"2023-11-15 - 09:55:08 UTC","updated_at":"2023-11-15 09:55:08 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":18,"name":"Test - Repository","label":"Test_Repository","content_type":"yum"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]}]} - - ' - headers: - Cache-Control: - - max-age=0, private, must-revalidate - Connection: - - Keep-Alive - Content-Length: - - '1049' - Content-Security-Policy: - - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; - style-src ''unsafe-inline'' ''self''' - Content-Type: - - application/json; charset=utf-8 - Foreman_api_version: - - '2' - Foreman_current_location: - - ; ANY - Foreman_current_organization: - - 5; Test Organization - Foreman_version: - - 3.7.1 - Keep-Alive: - - timeout=15, max=98 - Strict-Transport-Security: - - max-age=631139040; includeSubdomains - X-Content-Type-Options: - - nosniff - X-Download-Options: - - noopen - X-Frame-Options: - - sameorigin - X-Permitted-Cross-Domain-Policies: - - none - X-XSS-Protection: - - 1; mode=block - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json;version=2 - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - apypie (https://github.com/Apipie/apypie) - method: GET - uri: https://foreman.example.org/katello/api/organizations/5/products?search=name%3D%22Test+Product%22&per_page=4294967296 - response: - body: - string: '{"total":1,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Product\"","sort":{"by":"name","order":"asc"},"results":[{"id":10,"cp_id":"347380074197","name":"Test - Product","label":"Test_Product","description":"A happy little test product","provider_id":7,"sync_plan_id":null,"sync_summary":{"success":3},"gpg_key_id":null,"ssl_ca_cert_id":null,"ssl_client_cert_id":null,"ssl_client_key_id":null,"sync_state":"Syncing - Complete.","last_sync":"2023-11-15 09:54:59 UTC","last_sync_words":"1 minute","organization_id":5,"organization":{"name":"Test - Organization","label":"Test_Organization","id":5},"sync_plan":null,"repository_count":3}]} - - ' - headers: - Cache-Control: - - max-age=0, private, must-revalidate - Connection: - - Keep-Alive - Content-Length: - - '681' - Content-Security-Policy: - - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; - style-src ''unsafe-inline'' ''self''' - Content-Type: - - application/json; charset=utf-8 - Foreman_api_version: - - '2' - Foreman_current_location: - - ; ANY - Foreman_current_organization: - - 5; Test Organization - Foreman_version: - - 3.7.1 - Keep-Alive: - - timeout=15, max=97 - Strict-Transport-Security: - - max-age=631139040; includeSubdomains - X-Content-Type-Options: - - nosniff - X-Download-Options: - - noopen - X-Frame-Options: - - sameorigin - X-Permitted-Cross-Domain-Policies: - - none - X-XSS-Protection: - - 1; mode=block - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json;version=2 - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - apypie (https://github.com/Apipie/apypie) - method: GET - uri: https://foreman.example.org/katello/api/products/10/repositories?search=name%3D%22Test+Repository%22&per_page=4294967296 - response: - body: - string: '{"total":3,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Repository\"","sort":{"by":"name","order":"asc"},"results":[{"backend_identifier":"29b3d88f-d4d9-4411-b1db-69f3a9c7df12","relative_path":"Test_Organization/Library/custom/Test_Product/Test_Repository","container_repository_name":null,"full_path":"https://centos8-stream-katello-4-9.tanso.example.com/pulp/content/Test_Organization/Library/custom/Test_Product/Test_Repository/","library_instance_id":null,"version_href":"/pulp/api/v3/repositories/rpm/rpm/00e6944a-841e-4bfe-9416-070861ef58fb/versions/1/","remote_href":"/pulp/api/v3/remotes/rpm/rpm/7e1e16ba-4432-4a52-988e-3da939154cbe/","publication_href":"/pulp/api/v3/publications/rpm/rpm/9695e87f-67d7-4765-9f98-e9a13987baef/","content_counts":{"rpm":32,"erratum":4,"package_group":2,"srpm":0,"module_stream":0},"mirroring_policy":"mirror_content_only","id":18,"name":"Test - Repository","label":"Test_Repository","description":null,"content_view_versions":[],"filters":[{"content_view_filter_id":14,"content_view_filter_name":"Test - Deb Content View Filter","content_view_id":10,"content_view_name":"Test Content - View","last_affected_repo":true}],"last_sync":{"id":"0c110a6a-16e1-487f-a587-0ab648d99eda","username":"admin","started_at":"2023-11-15 - 09:54:33 UTC","ended_at":"2023-11-15 09:54:46 UTC","state":"stopped","result":"success","progress":1.0},"content_view":{"id":9,"name":"Default - Organization View"},"content_view_version":{"id":8,"name":"Default Organization - View 1.0","content_view_id":9},"kt_environment":{"id":4,"name":"Library"},"content_type":"yum","url":"https://repos.fedorapeople.org/pulp/pulp/demo_repos/zoo/","arch":"noarch","os_versions":[],"content_id":"1700042066424","generic_remote_options":null,"major":null,"minor":null,"product":{"id":10,"cp_id":"347380074197","name":"Test - Product","orphaned":false,"redhat":false,"sync_plan":null},"content_label":"Test_Organization_Test_Product_Test_Repository","last_sync_words":"1 - minute"}],"org_repository_count":3} - - ' - headers: - Cache-Control: - - max-age=0, private, must-revalidate - Connection: - - Keep-Alive - Content-Length: - - '2043' - Content-Security-Policy: - - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; - style-src ''unsafe-inline'' ''self''' - Content-Type: - - application/json; charset=utf-8 - Foreman_api_version: - - '2' - Foreman_current_location: - - ; ANY - Foreman_current_organization: - - ; ANY - Foreman_version: - - 3.7.1 - Keep-Alive: - - timeout=15, max=96 - Strict-Transport-Security: - - max-age=631139040; includeSubdomains - X-Content-Type-Options: - - nosniff - X-Download-Options: - - noopen - X-Frame-Options: - - sameorigin - X-Permitted-Cross-Domain-Policies: - - none - X-XSS-Protection: - - 1; mode=block - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json;version=2 - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - apypie (https://github.com/Apipie/apypie) - method: GET - uri: https://foreman.example.org/katello/api/content_views/10/filters?search=name%3D%22Test+Deb+Content+View+Filter%22&per_page=4294967296 - response: - body: - string: '{"total":1,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Deb Content View Filter\"","sort":{"by":"name","order":"asc"},"results":[{"inclusion":false,"id":14,"name":"Test - Deb Content View Filter","description":null,"created_at":"2023-11-15 09:55:28 - UTC","updated_at":"2023-11-15 09:55:28 UTC","content_view":{"composite":false,"component_ids":[],"default":false,"version_count":0,"latest_version":null,"latest_version_id":null,"auto_publish":false,"solve_dependencies":false,"import_only":false,"generated_for":"none","related_cv_count":0,"related_composite_cvs":[],"needs_publish":true,"filtered":true,"repository_ids":[18],"id":10,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":5,"organization":{"name":"Test - Organization","label":"Test_Organization","id":5},"created_at":"2023-11-15 - 09:55:08 UTC","updated_at":"2023-11-15 09:55:08 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":18,"name":"Test - Repository","label":"Test_Repository","content_type":"yum"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]},"repositories":[{"backend_identifier":"29b3d88f-d4d9-4411-b1db-69f3a9c7df12","relative_path":"Test_Organization/Library/custom/Test_Product/Test_Repository","container_repository_name":null,"full_path":"https://centos8-stream-katello-4-9.tanso.example.com/pulp/content/Test_Organization/Library/custom/Test_Product/Test_Repository/","library_instance_id":null,"version_href":"/pulp/api/v3/repositories/rpm/rpm/00e6944a-841e-4bfe-9416-070861ef58fb/versions/1/","remote_href":"/pulp/api/v3/remotes/rpm/rpm/7e1e16ba-4432-4a52-988e-3da939154cbe/","publication_href":"/pulp/api/v3/publications/rpm/rpm/9695e87f-67d7-4765-9f98-e9a13987baef/","content_counts":{"rpm":32,"erratum":4,"package_group":2,"srpm":0,"module_stream":0},"mirroring_policy":"mirror_content_only","id":18,"name":"Test - Repository","label":"Test_Repository","description":null,"content_view_versions":[],"filters":[{"content_view_filter_id":14,"content_view_filter_name":"Test - Deb Content View Filter","content_view_id":10,"content_view_name":"Test Content - View","last_affected_repo":true}],"last_sync":{"id":"0c110a6a-16e1-487f-a587-0ab648d99eda","username":"admin","started_at":"2023-11-15 - 09:54:33 UTC","ended_at":"2023-11-15 09:54:46 UTC","state":"stopped","result":"success","progress":1.0},"content_view":{"id":9,"name":"Default - Organization View"},"content_view_version":{"id":8,"name":"Default Organization - View 1.0","content_view_id":9},"kt_environment":{"id":4,"name":"Library"},"content_type":"yum","url":"https://repos.fedorapeople.org/pulp/pulp/demo_repos/zoo/","arch":"noarch","os_versions":[],"content_id":"1700042066424","generic_remote_options":null,"major":null,"minor":null,"product":{"id":10,"cp_id":"347380074197","name":"Test - Product","orphaned":false,"redhat":false,"sync_plan":null},"content_label":"Test_Organization_Test_Product_Test_Repository","last_sync_words":"1 - minute"}],"type":"deb","rules":[]}]} - - ' - headers: - Cache-Control: - - max-age=0, private, must-revalidate - Connection: - - Keep-Alive - Content-Length: - - '3128' - Content-Security-Policy: - - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; - style-src ''unsafe-inline'' ''self''' - Content-Type: - - application/json; charset=utf-8 - Foreman_api_version: - - '2' - Foreman_current_location: - - ; ANY - Foreman_current_organization: - - ; ANY - Foreman_version: - - 3.7.1 - Keep-Alive: - - timeout=15, max=95 - Strict-Transport-Security: - - max-age=631139040; includeSubdomains - X-Content-Type-Options: - - nosniff - X-Download-Options: - - noopen - X-Frame-Options: - - sameorigin - X-Permitted-Cross-Domain-Policies: - - none - X-XSS-Protection: - - 1; mode=block - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json;version=2 - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - apypie (https://github.com/Apipie/apypie) - method: GET - uri: https://foreman.example.org/katello/api/content_views/10/filters/14 - response: - body: - string: ' {"inclusion":false,"id":14,"name":"Test Deb Content View Filter","description":null,"created_at":"2023-11-15 - 09:55:28 UTC","updated_at":"2023-11-15 09:55:28 UTC","content_view":{"composite":false,"component_ids":[],"default":false,"version_count":0,"latest_version":null,"latest_version_id":null,"auto_publish":false,"solve_dependencies":false,"import_only":false,"generated_for":"none","related_cv_count":0,"related_composite_cvs":[],"needs_publish":true,"filtered":true,"repository_ids":[18],"id":10,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":5,"organization":{"name":"Test - Organization","label":"Test_Organization","id":5},"created_at":"2023-11-15 - 09:55:08 UTC","updated_at":"2023-11-15 09:55:08 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":18,"name":"Test - Repository","label":"Test_Repository","content_type":"yum","product":{"id":10,"name":"Test - Product"},"content_counts":{"docker_manifest":0,"docker_tag":0,"rpm":32,"package":32,"package_group":2,"erratum":4,"module_stream":0}}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]},"repositories":[{"backend_identifier":"29b3d88f-d4d9-4411-b1db-69f3a9c7df12","relative_path":"Test_Organization/Library/custom/Test_Product/Test_Repository","container_repository_name":null,"full_path":"https://centos8-stream-katello-4-9.tanso.example.com/pulp/content/Test_Organization/Library/custom/Test_Product/Test_Repository/","library_instance_id":null,"version_href":"/pulp/api/v3/repositories/rpm/rpm/00e6944a-841e-4bfe-9416-070861ef58fb/versions/1/","remote_href":"/pulp/api/v3/remotes/rpm/rpm/7e1e16ba-4432-4a52-988e-3da939154cbe/","publication_href":"/pulp/api/v3/publications/rpm/rpm/9695e87f-67d7-4765-9f98-e9a13987baef/","content_counts":{"rpm":32,"erratum":4,"package_group":2,"srpm":0,"module_stream":0},"mirroring_policy":"mirror_content_only","id":18,"name":"Test - Repository","label":"Test_Repository","description":null,"content_view_versions":[],"filters":[{"content_view_filter_id":14,"content_view_filter_name":"Test - Deb Content View Filter","content_view_id":10,"content_view_name":"Test Content - View","last_affected_repo":true}],"last_sync":{"id":"0c110a6a-16e1-487f-a587-0ab648d99eda","username":"admin","started_at":"2023-11-15 - 09:54:33 UTC","ended_at":"2023-11-15 09:54:46 UTC","state":"stopped","result":"success","progress":1.0},"content_view":{"id":9,"name":"Default - Organization View"},"content_view_version":{"id":8,"name":"Default Organization - View 1.0","content_view_id":9},"kt_environment":{"id":4,"name":"Library"},"content_type":"yum","url":"https://repos.fedorapeople.org/pulp/pulp/demo_repos/zoo/","arch":"noarch","os_versions":[],"content_id":"1700042066424","generic_remote_options":null,"major":null,"minor":null,"product":{"id":10,"cp_id":"347380074197","name":"Test - Product","orphaned":false,"redhat":false,"sync_plan":null},"content_label":"Test_Organization_Test_Product_Test_Repository","last_sync_words":"1 - minute"}],"type":"deb","rules":[]} - - ' - headers: - Cache-Control: - - max-age=0, private, must-revalidate - Connection: - - Keep-Alive - Content-Length: - - '3114' - Content-Security-Policy: - - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; - style-src ''unsafe-inline'' ''self''' - Content-Type: - - application/json; charset=utf-8 - Foreman_api_version: - - '2' - Foreman_current_location: - - ; ANY - Foreman_current_organization: - - ; ANY - Foreman_version: - - 3.7.1 - Keep-Alive: - - timeout=15, max=94 - Strict-Transport-Security: - - max-age=631139040; includeSubdomains - X-Content-Type-Options: - - nosniff - X-Download-Options: - - noopen - X-Frame-Options: - - sameorigin - X-Permitted-Cross-Domain-Policies: - - none - X-XSS-Protection: - - 1; mode=block - status: - code: 200 - message: OK -version: 1 diff --git a/tests/test_playbooks/fixtures/content_view_filter-25.yml b/tests/test_playbooks/fixtures/content_view_filter-25.yml deleted file mode 100644 index e94e4b2e..00000000 --- a/tests/test_playbooks/fixtures/content_view_filter-25.yml +++ /dev/null @@ -1,515 +0,0 @@ -interactions: -- request: - body: null - headers: - Accept: - - application/json;version=2 - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - apypie (https://github.com/Apipie/apypie) - method: GET - uri: https://foreman.example.org/api/status - response: - body: - string: '{"result":"ok","status":200,"version":"3.7.1","api_version":2}' - headers: - Cache-Control: - - max-age=0, private, must-revalidate - Connection: - - Keep-Alive - Content-Length: - - '62' - Content-Security-Policy: - - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; - style-src ''unsafe-inline'' ''self''' - Content-Type: - - application/json; charset=utf-8 - Foreman_api_version: - - '2' - Foreman_current_location: - - ; ANY - Foreman_current_organization: - - ; ANY - Foreman_version: - - 3.7.1 - Keep-Alive: - - timeout=15, max=100 - Strict-Transport-Security: - - max-age=631139040; includeSubdomains - X-Content-Type-Options: - - nosniff - X-Download-Options: - - noopen - X-Frame-Options: - - sameorigin - X-Permitted-Cross-Domain-Policies: - - none - X-XSS-Protection: - - 1; mode=block - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json;version=2 - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - apypie (https://github.com/Apipie/apypie) - method: GET - uri: https://foreman.example.org/katello/api/organizations?search=name%3D%22Test+Organization%22&per_page=4294967296 - response: - body: - string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": - 4294967296,\n \"search\": \"name=\\\"Test Organization\\\"\",\n \"sort\": - {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\":\"Test_Organization\",\"created_at\":\"2023-11-15 - 09:54:22 UTC\",\"updated_at\":\"2023-11-15 09:54:23 UTC\",\"id\":5,\"name\":\"Test - Organization\",\"title\":\"Test Organization\",\"description\":\"A test organization\"}]\n}\n" - headers: - Cache-Control: - - max-age=0, private, must-revalidate - Connection: - - Keep-Alive - Content-Length: - - '388' - Content-Security-Policy: - - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; - style-src ''unsafe-inline'' ''self''' - Content-Type: - - application/json; charset=utf-8 - Foreman_api_version: - - '2' - Foreman_current_location: - - ; ANY - Foreman_current_organization: - - ; ANY - Foreman_version: - - 3.7.1 - Keep-Alive: - - timeout=15, max=99 - Strict-Transport-Security: - - max-age=631139040; includeSubdomains - X-Content-Type-Options: - - nosniff - X-Download-Options: - - noopen - X-Frame-Options: - - sameorigin - X-Permitted-Cross-Domain-Policies: - - none - X-XSS-Protection: - - 1; mode=block - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json;version=2 - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - apypie (https://github.com/Apipie/apypie) - method: GET - uri: https://foreman.example.org/katello/api/organizations/5/content_views?search=name%3D%22Test+Content+View%22&per_page=4294967296 - response: - body: - string: '{"total":2,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Content View\"","sort":{"by":"name","order":"asc"},"results":[{"composite":false,"component_ids":[],"default":false,"version_count":0,"latest_version":null,"latest_version_id":null,"auto_publish":false,"solve_dependencies":false,"import_only":false,"generated_for":"none","related_cv_count":0,"related_composite_cvs":[],"needs_publish":true,"filtered":true,"repository_ids":[18],"id":10,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":5,"organization":{"name":"Test - Organization","label":"Test_Organization","id":5},"created_at":"2023-11-15 - 09:55:08 UTC","updated_at":"2023-11-15 09:55:08 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":18,"name":"Test - Repository","label":"Test_Repository","content_type":"yum"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]}]} - - ' - headers: - Cache-Control: - - max-age=0, private, must-revalidate - Connection: - - Keep-Alive - Content-Length: - - '1049' - Content-Security-Policy: - - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; - style-src ''unsafe-inline'' ''self''' - Content-Type: - - application/json; charset=utf-8 - Foreman_api_version: - - '2' - Foreman_current_location: - - ; ANY - Foreman_current_organization: - - 5; Test Organization - Foreman_version: - - 3.7.1 - Keep-Alive: - - timeout=15, max=98 - Strict-Transport-Security: - - max-age=631139040; includeSubdomains - X-Content-Type-Options: - - nosniff - X-Download-Options: - - noopen - X-Frame-Options: - - sameorigin - X-Permitted-Cross-Domain-Policies: - - none - X-XSS-Protection: - - 1; mode=block - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json;version=2 - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - apypie (https://github.com/Apipie/apypie) - method: GET - uri: https://foreman.example.org/katello/api/organizations/5/products?search=name%3D%22Test+Product%22&per_page=4294967296 - response: - body: - string: '{"total":1,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Product\"","sort":{"by":"name","order":"asc"},"results":[{"id":10,"cp_id":"347380074197","name":"Test - Product","label":"Test_Product","description":"A happy little test product","provider_id":7,"sync_plan_id":null,"sync_summary":{"success":3},"gpg_key_id":null,"ssl_ca_cert_id":null,"ssl_client_cert_id":null,"ssl_client_key_id":null,"sync_state":"Syncing - Complete.","last_sync":"2023-11-15 09:54:59 UTC","last_sync_words":"1 minute","organization_id":5,"organization":{"name":"Test - Organization","label":"Test_Organization","id":5},"sync_plan":null,"repository_count":3}]} - - ' - headers: - Cache-Control: - - max-age=0, private, must-revalidate - Connection: - - Keep-Alive - Content-Length: - - '681' - Content-Security-Policy: - - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; - style-src ''unsafe-inline'' ''self''' - Content-Type: - - application/json; charset=utf-8 - Foreman_api_version: - - '2' - Foreman_current_location: - - ; ANY - Foreman_current_organization: - - 5; Test Organization - Foreman_version: - - 3.7.1 - Keep-Alive: - - timeout=15, max=97 - Strict-Transport-Security: - - max-age=631139040; includeSubdomains - X-Content-Type-Options: - - nosniff - X-Download-Options: - - noopen - X-Frame-Options: - - sameorigin - X-Permitted-Cross-Domain-Policies: - - none - X-XSS-Protection: - - 1; mode=block - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json;version=2 - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - apypie (https://github.com/Apipie/apypie) - method: GET - uri: https://foreman.example.org/katello/api/products/10/repositories?search=name%3D%22Test+Repository%22&per_page=4294967296 - response: - body: - string: '{"total":3,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Repository\"","sort":{"by":"name","order":"asc"},"results":[{"backend_identifier":"29b3d88f-d4d9-4411-b1db-69f3a9c7df12","relative_path":"Test_Organization/Library/custom/Test_Product/Test_Repository","container_repository_name":null,"full_path":"https://centos8-stream-katello-4-9.tanso.example.com/pulp/content/Test_Organization/Library/custom/Test_Product/Test_Repository/","library_instance_id":null,"version_href":"/pulp/api/v3/repositories/rpm/rpm/00e6944a-841e-4bfe-9416-070861ef58fb/versions/1/","remote_href":"/pulp/api/v3/remotes/rpm/rpm/7e1e16ba-4432-4a52-988e-3da939154cbe/","publication_href":"/pulp/api/v3/publications/rpm/rpm/9695e87f-67d7-4765-9f98-e9a13987baef/","content_counts":{"rpm":32,"erratum":4,"package_group":2,"srpm":0,"module_stream":0},"mirroring_policy":"mirror_content_only","id":18,"name":"Test - Repository","label":"Test_Repository","description":null,"content_view_versions":[],"filters":[{"content_view_filter_id":14,"content_view_filter_name":"Test - Deb Content View Filter","content_view_id":10,"content_view_name":"Test Content - View","last_affected_repo":true}],"last_sync":{"id":"0c110a6a-16e1-487f-a587-0ab648d99eda","username":"admin","started_at":"2023-11-15 - 09:54:33 UTC","ended_at":"2023-11-15 09:54:46 UTC","state":"stopped","result":"success","progress":1.0},"content_view":{"id":9,"name":"Default - Organization View"},"content_view_version":{"id":8,"name":"Default Organization - View 1.0","content_view_id":9},"kt_environment":{"id":4,"name":"Library"},"content_type":"yum","url":"https://repos.fedorapeople.org/pulp/pulp/demo_repos/zoo/","arch":"noarch","os_versions":[],"content_id":"1700042066424","generic_remote_options":null,"major":null,"minor":null,"product":{"id":10,"cp_id":"347380074197","name":"Test - Product","orphaned":false,"redhat":false,"sync_plan":null},"content_label":"Test_Organization_Test_Product_Test_Repository","last_sync_words":"1 - minute"}],"org_repository_count":3} - - ' - headers: - Cache-Control: - - max-age=0, private, must-revalidate - Connection: - - Keep-Alive - Content-Length: - - '2043' - Content-Security-Policy: - - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; - style-src ''unsafe-inline'' ''self''' - Content-Type: - - application/json; charset=utf-8 - Foreman_api_version: - - '2' - Foreman_current_location: - - ; ANY - Foreman_current_organization: - - ; ANY - Foreman_version: - - 3.7.1 - Keep-Alive: - - timeout=15, max=96 - Strict-Transport-Security: - - max-age=631139040; includeSubdomains - X-Content-Type-Options: - - nosniff - X-Download-Options: - - noopen - X-Frame-Options: - - sameorigin - X-Permitted-Cross-Domain-Policies: - - none - X-XSS-Protection: - - 1; mode=block - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json;version=2 - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - apypie (https://github.com/Apipie/apypie) - method: GET - uri: https://foreman.example.org/katello/api/content_views/10/filters?search=name%3D%22Test+Deb+Content+View+Filter%22&per_page=4294967296 - response: - body: - string: '{"total":1,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Deb Content View Filter\"","sort":{"by":"name","order":"asc"},"results":[{"inclusion":false,"id":14,"name":"Test - Deb Content View Filter","description":null,"created_at":"2023-11-15 09:55:28 - UTC","updated_at":"2023-11-15 09:55:28 UTC","content_view":{"composite":false,"component_ids":[],"default":false,"version_count":0,"latest_version":null,"latest_version_id":null,"auto_publish":false,"solve_dependencies":false,"import_only":false,"generated_for":"none","related_cv_count":0,"related_composite_cvs":[],"needs_publish":true,"filtered":true,"repository_ids":[18],"id":10,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":5,"organization":{"name":"Test - Organization","label":"Test_Organization","id":5},"created_at":"2023-11-15 - 09:55:08 UTC","updated_at":"2023-11-15 09:55:08 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":18,"name":"Test - Repository","label":"Test_Repository","content_type":"yum"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]},"repositories":[{"backend_identifier":"29b3d88f-d4d9-4411-b1db-69f3a9c7df12","relative_path":"Test_Organization/Library/custom/Test_Product/Test_Repository","container_repository_name":null,"full_path":"https://centos8-stream-katello-4-9.tanso.example.com/pulp/content/Test_Organization/Library/custom/Test_Product/Test_Repository/","library_instance_id":null,"version_href":"/pulp/api/v3/repositories/rpm/rpm/00e6944a-841e-4bfe-9416-070861ef58fb/versions/1/","remote_href":"/pulp/api/v3/remotes/rpm/rpm/7e1e16ba-4432-4a52-988e-3da939154cbe/","publication_href":"/pulp/api/v3/publications/rpm/rpm/9695e87f-67d7-4765-9f98-e9a13987baef/","content_counts":{"rpm":32,"erratum":4,"package_group":2,"srpm":0,"module_stream":0},"mirroring_policy":"mirror_content_only","id":18,"name":"Test - Repository","label":"Test_Repository","description":null,"content_view_versions":[],"filters":[{"content_view_filter_id":14,"content_view_filter_name":"Test - Deb Content View Filter","content_view_id":10,"content_view_name":"Test Content - View","last_affected_repo":true}],"last_sync":{"id":"0c110a6a-16e1-487f-a587-0ab648d99eda","username":"admin","started_at":"2023-11-15 - 09:54:33 UTC","ended_at":"2023-11-15 09:54:46 UTC","state":"stopped","result":"success","progress":1.0},"content_view":{"id":9,"name":"Default - Organization View"},"content_view_version":{"id":8,"name":"Default Organization - View 1.0","content_view_id":9},"kt_environment":{"id":4,"name":"Library"},"content_type":"yum","url":"https://repos.fedorapeople.org/pulp/pulp/demo_repos/zoo/","arch":"noarch","os_versions":[],"content_id":"1700042066424","generic_remote_options":null,"major":null,"minor":null,"product":{"id":10,"cp_id":"347380074197","name":"Test - Product","orphaned":false,"redhat":false,"sync_plan":null},"content_label":"Test_Organization_Test_Product_Test_Repository","last_sync_words":"1 - minute"}],"type":"deb","rules":[]}]} - - ' - headers: - Cache-Control: - - max-age=0, private, must-revalidate - Connection: - - Keep-Alive - Content-Length: - - '3128' - Content-Security-Policy: - - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; - style-src ''unsafe-inline'' ''self''' - Content-Type: - - application/json; charset=utf-8 - Foreman_api_version: - - '2' - Foreman_current_location: - - ; ANY - Foreman_current_organization: - - ; ANY - Foreman_version: - - 3.7.1 - Keep-Alive: - - timeout=15, max=95 - Strict-Transport-Security: - - max-age=631139040; includeSubdomains - X-Content-Type-Options: - - nosniff - X-Download-Options: - - noopen - X-Frame-Options: - - sameorigin - X-Permitted-Cross-Domain-Policies: - - none - X-XSS-Protection: - - 1; mode=block - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json;version=2 - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - apypie (https://github.com/Apipie/apypie) - method: GET - uri: https://foreman.example.org/katello/api/content_views/10/filters/14 - response: - body: - string: ' {"inclusion":false,"id":14,"name":"Test Deb Content View Filter","description":null,"created_at":"2023-11-15 - 09:55:28 UTC","updated_at":"2023-11-15 09:55:28 UTC","content_view":{"composite":false,"component_ids":[],"default":false,"version_count":0,"latest_version":null,"latest_version_id":null,"auto_publish":false,"solve_dependencies":false,"import_only":false,"generated_for":"none","related_cv_count":0,"related_composite_cvs":[],"needs_publish":true,"filtered":true,"repository_ids":[18],"id":10,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":5,"organization":{"name":"Test - Organization","label":"Test_Organization","id":5},"created_at":"2023-11-15 - 09:55:08 UTC","updated_at":"2023-11-15 09:55:08 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":18,"name":"Test - Repository","label":"Test_Repository","content_type":"yum","product":{"id":10,"name":"Test - Product"},"content_counts":{"docker_manifest":0,"docker_tag":0,"rpm":32,"package":32,"package_group":2,"erratum":4,"module_stream":0}}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]},"repositories":[{"backend_identifier":"29b3d88f-d4d9-4411-b1db-69f3a9c7df12","relative_path":"Test_Organization/Library/custom/Test_Product/Test_Repository","container_repository_name":null,"full_path":"https://centos8-stream-katello-4-9.tanso.example.com/pulp/content/Test_Organization/Library/custom/Test_Product/Test_Repository/","library_instance_id":null,"version_href":"/pulp/api/v3/repositories/rpm/rpm/00e6944a-841e-4bfe-9416-070861ef58fb/versions/1/","remote_href":"/pulp/api/v3/remotes/rpm/rpm/7e1e16ba-4432-4a52-988e-3da939154cbe/","publication_href":"/pulp/api/v3/publications/rpm/rpm/9695e87f-67d7-4765-9f98-e9a13987baef/","content_counts":{"rpm":32,"erratum":4,"package_group":2,"srpm":0,"module_stream":0},"mirroring_policy":"mirror_content_only","id":18,"name":"Test - Repository","label":"Test_Repository","description":null,"content_view_versions":[],"filters":[{"content_view_filter_id":14,"content_view_filter_name":"Test - Deb Content View Filter","content_view_id":10,"content_view_name":"Test Content - View","last_affected_repo":true}],"last_sync":{"id":"0c110a6a-16e1-487f-a587-0ab648d99eda","username":"admin","started_at":"2023-11-15 - 09:54:33 UTC","ended_at":"2023-11-15 09:54:46 UTC","state":"stopped","result":"success","progress":1.0},"content_view":{"id":9,"name":"Default - Organization View"},"content_view_version":{"id":8,"name":"Default Organization - View 1.0","content_view_id":9},"kt_environment":{"id":4,"name":"Library"},"content_type":"yum","url":"https://repos.fedorapeople.org/pulp/pulp/demo_repos/zoo/","arch":"noarch","os_versions":[],"content_id":"1700042066424","generic_remote_options":null,"major":null,"minor":null,"product":{"id":10,"cp_id":"347380074197","name":"Test - Product","orphaned":false,"redhat":false,"sync_plan":null},"content_label":"Test_Organization_Test_Product_Test_Repository","last_sync_words":"1 - minute"}],"type":"deb","rules":[]} - - ' - headers: - Cache-Control: - - max-age=0, private, must-revalidate - Connection: - - Keep-Alive - Content-Length: - - '3114' - Content-Security-Policy: - - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; - style-src ''unsafe-inline'' ''self''' - Content-Type: - - application/json; charset=utf-8 - Foreman_api_version: - - '2' - Foreman_current_location: - - ; ANY - Foreman_current_organization: - - ; ANY - Foreman_version: - - 3.7.1 - Keep-Alive: - - timeout=15, max=94 - Strict-Transport-Security: - - max-age=631139040; includeSubdomains - X-Content-Type-Options: - - nosniff - X-Download-Options: - - noopen - X-Frame-Options: - - sameorigin - X-Permitted-Cross-Domain-Policies: - - none - X-XSS-Protection: - - 1; mode=block - status: - code: 200 - message: OK -- request: - body: '{"inclusion": true}' - headers: - Accept: - - application/json;version=2 - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '19' - Content-Type: - - application/json - User-Agent: - - apypie (https://github.com/Apipie/apypie) - method: PUT - uri: https://foreman.example.org/katello/api/content_views/10/filters/14 - response: - body: - string: ' {"inclusion":true,"id":14,"name":"Test Deb Content View Filter","description":null,"created_at":"2023-11-15 - 09:55:28 UTC","updated_at":"2023-11-15 09:55:30 UTC","content_view":{"composite":false,"component_ids":[],"default":false,"version_count":0,"latest_version":null,"latest_version_id":null,"auto_publish":false,"solve_dependencies":false,"import_only":false,"generated_for":"none","related_cv_count":0,"related_composite_cvs":[],"needs_publish":true,"filtered":true,"repository_ids":[18],"id":10,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":5,"organization":{"name":"Test - Organization","label":"Test_Organization","id":5},"created_at":"2023-11-15 - 09:55:08 UTC","updated_at":"2023-11-15 09:55:08 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":18,"name":"Test - Repository","label":"Test_Repository","content_type":"yum","product":{"id":10,"name":"Test - Product"},"content_counts":{"docker_manifest":0,"docker_tag":0,"rpm":32,"package":32,"package_group":2,"erratum":4,"module_stream":0}}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]},"repositories":[{"backend_identifier":"29b3d88f-d4d9-4411-b1db-69f3a9c7df12","relative_path":"Test_Organization/Library/custom/Test_Product/Test_Repository","container_repository_name":null,"full_path":"https://centos8-stream-katello-4-9.tanso.example.com/pulp/content/Test_Organization/Library/custom/Test_Product/Test_Repository/","library_instance_id":null,"version_href":"/pulp/api/v3/repositories/rpm/rpm/00e6944a-841e-4bfe-9416-070861ef58fb/versions/1/","remote_href":"/pulp/api/v3/remotes/rpm/rpm/7e1e16ba-4432-4a52-988e-3da939154cbe/","publication_href":"/pulp/api/v3/publications/rpm/rpm/9695e87f-67d7-4765-9f98-e9a13987baef/","content_counts":{"rpm":32,"erratum":4,"package_group":2,"srpm":0,"module_stream":0},"mirroring_policy":"mirror_content_only","id":18,"name":"Test - Repository","label":"Test_Repository","description":null,"content_view_versions":[],"filters":[{"content_view_filter_id":14,"content_view_filter_name":"Test - Deb Content View Filter","content_view_id":10,"content_view_name":"Test Content - View","last_affected_repo":true}],"last_sync":{"id":"0c110a6a-16e1-487f-a587-0ab648d99eda","username":"admin","started_at":"2023-11-15 - 09:54:33 UTC","ended_at":"2023-11-15 09:54:46 UTC","state":"stopped","result":"success","progress":1.0},"content_view":{"id":9,"name":"Default - Organization View"},"content_view_version":{"id":8,"name":"Default Organization - View 1.0","content_view_id":9},"kt_environment":{"id":4,"name":"Library"},"content_type":"yum","url":"https://repos.fedorapeople.org/pulp/pulp/demo_repos/zoo/","arch":"noarch","os_versions":[],"content_id":"1700042066424","generic_remote_options":null,"major":null,"minor":null,"product":{"id":10,"cp_id":"347380074197","name":"Test - Product","orphaned":false,"redhat":false,"sync_plan":null},"content_label":"Test_Organization_Test_Product_Test_Repository","last_sync_words":"1 - minute"}],"type":"deb","rules":[]} - - ' - headers: - Cache-Control: - - max-age=0, private, must-revalidate - Connection: - - Keep-Alive - Content-Length: - - '3113' - Content-Security-Policy: - - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; - style-src ''unsafe-inline'' ''self''' - Content-Type: - - application/json; charset=utf-8 - Foreman_api_version: - - '2' - Foreman_current_location: - - ; ANY - Foreman_current_organization: - - ; ANY - Foreman_version: - - 3.7.1 - Keep-Alive: - - timeout=15, max=93 - Strict-Transport-Security: - - max-age=631139040; includeSubdomains - X-Content-Type-Options: - - nosniff - X-Download-Options: - - noopen - X-Frame-Options: - - sameorigin - X-Permitted-Cross-Domain-Policies: - - none - X-XSS-Protection: - - 1; mode=block - status: - code: 200 - message: OK -version: 1 diff --git a/tests/test_playbooks/fixtures/content_view_filter-26.yml b/tests/test_playbooks/fixtures/content_view_filter-26.yml deleted file mode 100644 index e9042ad3..00000000 --- a/tests/test_playbooks/fixtures/content_view_filter-26.yml +++ /dev/null @@ -1,505 +0,0 @@ -interactions: -- request: - body: null - headers: - Accept: - - application/json;version=2 - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - apypie (https://github.com/Apipie/apypie) - method: GET - uri: https://foreman.example.org/api/status - response: - body: - string: '{"result":"ok","status":200,"version":"3.7.1","api_version":2}' - headers: - Cache-Control: - - max-age=0, private, must-revalidate - Connection: - - Keep-Alive - Content-Length: - - '62' - Content-Security-Policy: - - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; - style-src ''unsafe-inline'' ''self''' - Content-Type: - - application/json; charset=utf-8 - Foreman_api_version: - - '2' - Foreman_current_location: - - ; ANY - Foreman_current_organization: - - ; ANY - Foreman_version: - - 3.7.1 - Keep-Alive: - - timeout=15, max=100 - Strict-Transport-Security: - - max-age=631139040; includeSubdomains - X-Content-Type-Options: - - nosniff - X-Download-Options: - - noopen - X-Frame-Options: - - sameorigin - X-Permitted-Cross-Domain-Policies: - - none - X-XSS-Protection: - - 1; mode=block - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json;version=2 - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - apypie (https://github.com/Apipie/apypie) - method: GET - uri: https://foreman.example.org/katello/api/organizations?search=name%3D%22Test+Organization%22&per_page=4294967296 - response: - body: - string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": - 4294967296,\n \"search\": \"name=\\\"Test Organization\\\"\",\n \"sort\": - {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\":\"Test_Organization\",\"created_at\":\"2023-11-15 - 09:54:22 UTC\",\"updated_at\":\"2023-11-15 09:54:23 UTC\",\"id\":5,\"name\":\"Test - Organization\",\"title\":\"Test Organization\",\"description\":\"A test organization\"}]\n}\n" - headers: - Cache-Control: - - max-age=0, private, must-revalidate - Connection: - - Keep-Alive - Content-Length: - - '388' - Content-Security-Policy: - - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; - style-src ''unsafe-inline'' ''self''' - Content-Type: - - application/json; charset=utf-8 - Foreman_api_version: - - '2' - Foreman_current_location: - - ; ANY - Foreman_current_organization: - - ; ANY - Foreman_version: - - 3.7.1 - Keep-Alive: - - timeout=15, max=99 - Strict-Transport-Security: - - max-age=631139040; includeSubdomains - X-Content-Type-Options: - - nosniff - X-Download-Options: - - noopen - X-Frame-Options: - - sameorigin - X-Permitted-Cross-Domain-Policies: - - none - X-XSS-Protection: - - 1; mode=block - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json;version=2 - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - apypie (https://github.com/Apipie/apypie) - method: GET - uri: https://foreman.example.org/katello/api/organizations/5/content_views?search=name%3D%22Test+Content+View%22&per_page=4294967296 - response: - body: - string: '{"total":2,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Content View\"","sort":{"by":"name","order":"asc"},"results":[{"composite":false,"component_ids":[],"default":false,"version_count":0,"latest_version":null,"latest_version_id":null,"auto_publish":false,"solve_dependencies":false,"import_only":false,"generated_for":"none","related_cv_count":0,"related_composite_cvs":[],"needs_publish":true,"filtered":true,"repository_ids":[18],"id":10,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":5,"organization":{"name":"Test - Organization","label":"Test_Organization","id":5},"created_at":"2023-11-15 - 09:55:08 UTC","updated_at":"2023-11-15 09:55:08 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":18,"name":"Test - Repository","label":"Test_Repository","content_type":"yum"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]}]} - - ' - headers: - Cache-Control: - - max-age=0, private, must-revalidate - Connection: - - Keep-Alive - Content-Length: - - '1049' - Content-Security-Policy: - - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; - style-src ''unsafe-inline'' ''self''' - Content-Type: - - application/json; charset=utf-8 - Foreman_api_version: - - '2' - Foreman_current_location: - - ; ANY - Foreman_current_organization: - - 5; Test Organization - Foreman_version: - - 3.7.1 - Keep-Alive: - - timeout=15, max=98 - Strict-Transport-Security: - - max-age=631139040; includeSubdomains - X-Content-Type-Options: - - nosniff - X-Download-Options: - - noopen - X-Frame-Options: - - sameorigin - X-Permitted-Cross-Domain-Policies: - - none - X-XSS-Protection: - - 1; mode=block - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json;version=2 - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - apypie (https://github.com/Apipie/apypie) - method: GET - uri: https://foreman.example.org/katello/api/organizations/5/products?search=name%3D%22Test+Product%22&per_page=4294967296 - response: - body: - string: '{"total":1,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Product\"","sort":{"by":"name","order":"asc"},"results":[{"id":10,"cp_id":"347380074197","name":"Test - Product","label":"Test_Product","description":"A happy little test product","provider_id":7,"sync_plan_id":null,"sync_summary":{"success":3},"gpg_key_id":null,"ssl_ca_cert_id":null,"ssl_client_cert_id":null,"ssl_client_key_id":null,"sync_state":"Syncing - Complete.","last_sync":"2023-11-15 09:54:59 UTC","last_sync_words":"1 minute","organization_id":5,"organization":{"name":"Test - Organization","label":"Test_Organization","id":5},"sync_plan":null,"repository_count":3}]} - - ' - headers: - Cache-Control: - - max-age=0, private, must-revalidate - Connection: - - Keep-Alive - Content-Length: - - '681' - Content-Security-Policy: - - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; - style-src ''unsafe-inline'' ''self''' - Content-Type: - - application/json; charset=utf-8 - Foreman_api_version: - - '2' - Foreman_current_location: - - ; ANY - Foreman_current_organization: - - 5; Test Organization - Foreman_version: - - 3.7.1 - Keep-Alive: - - timeout=15, max=97 - Strict-Transport-Security: - - max-age=631139040; includeSubdomains - X-Content-Type-Options: - - nosniff - X-Download-Options: - - noopen - X-Frame-Options: - - sameorigin - X-Permitted-Cross-Domain-Policies: - - none - X-XSS-Protection: - - 1; mode=block - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json;version=2 - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - apypie (https://github.com/Apipie/apypie) - method: GET - uri: https://foreman.example.org/katello/api/products/10/repositories?search=name%3D%22Test+Repository%22&per_page=4294967296 - response: - body: - string: '{"total":3,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Repository\"","sort":{"by":"name","order":"asc"},"results":[{"backend_identifier":"29b3d88f-d4d9-4411-b1db-69f3a9c7df12","relative_path":"Test_Organization/Library/custom/Test_Product/Test_Repository","container_repository_name":null,"full_path":"https://centos8-stream-katello-4-9.tanso.example.com/pulp/content/Test_Organization/Library/custom/Test_Product/Test_Repository/","library_instance_id":null,"version_href":"/pulp/api/v3/repositories/rpm/rpm/00e6944a-841e-4bfe-9416-070861ef58fb/versions/1/","remote_href":"/pulp/api/v3/remotes/rpm/rpm/7e1e16ba-4432-4a52-988e-3da939154cbe/","publication_href":"/pulp/api/v3/publications/rpm/rpm/9695e87f-67d7-4765-9f98-e9a13987baef/","content_counts":{"rpm":32,"erratum":4,"package_group":2,"srpm":0,"module_stream":0},"mirroring_policy":"mirror_content_only","id":18,"name":"Test - Repository","label":"Test_Repository","description":null,"content_view_versions":[],"filters":[{"content_view_filter_id":14,"content_view_filter_name":"Test - Deb Content View Filter","content_view_id":10,"content_view_name":"Test Content - View","last_affected_repo":true}],"last_sync":{"id":"0c110a6a-16e1-487f-a587-0ab648d99eda","username":"admin","started_at":"2023-11-15 - 09:54:33 UTC","ended_at":"2023-11-15 09:54:46 UTC","state":"stopped","result":"success","progress":1.0},"content_view":{"id":9,"name":"Default - Organization View"},"content_view_version":{"id":8,"name":"Default Organization - View 1.0","content_view_id":9},"kt_environment":{"id":4,"name":"Library"},"content_type":"yum","url":"https://repos.fedorapeople.org/pulp/pulp/demo_repos/zoo/","arch":"noarch","os_versions":[],"content_id":"1700042066424","generic_remote_options":null,"major":null,"minor":null,"product":{"id":10,"cp_id":"347380074197","name":"Test - Product","orphaned":false,"redhat":false,"sync_plan":null},"content_label":"Test_Organization_Test_Product_Test_Repository","last_sync_words":"1 - minute"}],"org_repository_count":3} - - ' - headers: - Cache-Control: - - max-age=0, private, must-revalidate - Connection: - - Keep-Alive - Content-Length: - - '2043' - Content-Security-Policy: - - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; - style-src ''unsafe-inline'' ''self''' - Content-Type: - - application/json; charset=utf-8 - Foreman_api_version: - - '2' - Foreman_current_location: - - ; ANY - Foreman_current_organization: - - ; ANY - Foreman_version: - - 3.7.1 - Keep-Alive: - - timeout=15, max=96 - Strict-Transport-Security: - - max-age=631139040; includeSubdomains - X-Content-Type-Options: - - nosniff - X-Download-Options: - - noopen - X-Frame-Options: - - sameorigin - X-Permitted-Cross-Domain-Policies: - - none - X-XSS-Protection: - - 1; mode=block - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json;version=2 - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - apypie (https://github.com/Apipie/apypie) - method: GET - uri: https://foreman.example.org/katello/api/content_views/10/filters?search=name%3D%22Test+Deb+Content+View+Filter%22&per_page=4294967296 - response: - body: - string: '{"total":1,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Deb Content View Filter\"","sort":{"by":"name","order":"asc"},"results":[{"inclusion":true,"id":14,"name":"Test - Deb Content View Filter","description":null,"created_at":"2023-11-15 09:55:28 - UTC","updated_at":"2023-11-15 09:55:30 UTC","content_view":{"composite":false,"component_ids":[],"default":false,"version_count":0,"latest_version":null,"latest_version_id":null,"auto_publish":false,"solve_dependencies":false,"import_only":false,"generated_for":"none","related_cv_count":0,"related_composite_cvs":[],"needs_publish":true,"filtered":true,"repository_ids":[18],"id":10,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":5,"organization":{"name":"Test - Organization","label":"Test_Organization","id":5},"created_at":"2023-11-15 - 09:55:08 UTC","updated_at":"2023-11-15 09:55:08 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":18,"name":"Test - Repository","label":"Test_Repository","content_type":"yum"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]},"repositories":[{"backend_identifier":"29b3d88f-d4d9-4411-b1db-69f3a9c7df12","relative_path":"Test_Organization/Library/custom/Test_Product/Test_Repository","container_repository_name":null,"full_path":"https://centos8-stream-katello-4-9.tanso.example.com/pulp/content/Test_Organization/Library/custom/Test_Product/Test_Repository/","library_instance_id":null,"version_href":"/pulp/api/v3/repositories/rpm/rpm/00e6944a-841e-4bfe-9416-070861ef58fb/versions/1/","remote_href":"/pulp/api/v3/remotes/rpm/rpm/7e1e16ba-4432-4a52-988e-3da939154cbe/","publication_href":"/pulp/api/v3/publications/rpm/rpm/9695e87f-67d7-4765-9f98-e9a13987baef/","content_counts":{"rpm":32,"erratum":4,"package_group":2,"srpm":0,"module_stream":0},"mirroring_policy":"mirror_content_only","id":18,"name":"Test - Repository","label":"Test_Repository","description":null,"content_view_versions":[],"filters":[{"content_view_filter_id":14,"content_view_filter_name":"Test - Deb Content View Filter","content_view_id":10,"content_view_name":"Test Content - View","last_affected_repo":true}],"last_sync":{"id":"0c110a6a-16e1-487f-a587-0ab648d99eda","username":"admin","started_at":"2023-11-15 - 09:54:33 UTC","ended_at":"2023-11-15 09:54:46 UTC","state":"stopped","result":"success","progress":1.0},"content_view":{"id":9,"name":"Default - Organization View"},"content_view_version":{"id":8,"name":"Default Organization - View 1.0","content_view_id":9},"kt_environment":{"id":4,"name":"Library"},"content_type":"yum","url":"https://repos.fedorapeople.org/pulp/pulp/demo_repos/zoo/","arch":"noarch","os_versions":[],"content_id":"1700042066424","generic_remote_options":null,"major":null,"minor":null,"product":{"id":10,"cp_id":"347380074197","name":"Test - Product","orphaned":false,"redhat":false,"sync_plan":null},"content_label":"Test_Organization_Test_Product_Test_Repository","last_sync_words":"1 - minute"}],"type":"deb","rules":[]}]} - - ' - headers: - Cache-Control: - - max-age=0, private, must-revalidate - Connection: - - Keep-Alive - Content-Length: - - '3127' - Content-Security-Policy: - - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; - style-src ''unsafe-inline'' ''self''' - Content-Type: - - application/json; charset=utf-8 - Foreman_api_version: - - '2' - Foreman_current_location: - - ; ANY - Foreman_current_organization: - - ; ANY - Foreman_version: - - 3.7.1 - Keep-Alive: - - timeout=15, max=95 - Strict-Transport-Security: - - max-age=631139040; includeSubdomains - X-Content-Type-Options: - - nosniff - X-Download-Options: - - noopen - X-Frame-Options: - - sameorigin - X-Permitted-Cross-Domain-Policies: - - none - X-XSS-Protection: - - 1; mode=block - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json;version=2 - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - apypie (https://github.com/Apipie/apypie) - method: GET - uri: https://foreman.example.org/katello/api/content_views/10/filters/14 - response: - body: - string: ' {"inclusion":true,"id":14,"name":"Test Deb Content View Filter","description":null,"created_at":"2023-11-15 - 09:55:28 UTC","updated_at":"2023-11-15 09:55:30 UTC","content_view":{"composite":false,"component_ids":[],"default":false,"version_count":0,"latest_version":null,"latest_version_id":null,"auto_publish":false,"solve_dependencies":false,"import_only":false,"generated_for":"none","related_cv_count":0,"related_composite_cvs":[],"needs_publish":true,"filtered":true,"repository_ids":[18],"id":10,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":5,"organization":{"name":"Test - Organization","label":"Test_Organization","id":5},"created_at":"2023-11-15 - 09:55:08 UTC","updated_at":"2023-11-15 09:55:08 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":18,"name":"Test - Repository","label":"Test_Repository","content_type":"yum","product":{"id":10,"name":"Test - Product"},"content_counts":{"docker_manifest":0,"docker_tag":0,"rpm":32,"package":32,"package_group":2,"erratum":4,"module_stream":0}}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]},"repositories":[{"backend_identifier":"29b3d88f-d4d9-4411-b1db-69f3a9c7df12","relative_path":"Test_Organization/Library/custom/Test_Product/Test_Repository","container_repository_name":null,"full_path":"https://centos8-stream-katello-4-9.tanso.example.com/pulp/content/Test_Organization/Library/custom/Test_Product/Test_Repository/","library_instance_id":null,"version_href":"/pulp/api/v3/repositories/rpm/rpm/00e6944a-841e-4bfe-9416-070861ef58fb/versions/1/","remote_href":"/pulp/api/v3/remotes/rpm/rpm/7e1e16ba-4432-4a52-988e-3da939154cbe/","publication_href":"/pulp/api/v3/publications/rpm/rpm/9695e87f-67d7-4765-9f98-e9a13987baef/","content_counts":{"rpm":32,"erratum":4,"package_group":2,"srpm":0,"module_stream":0},"mirroring_policy":"mirror_content_only","id":18,"name":"Test - Repository","label":"Test_Repository","description":null,"content_view_versions":[],"filters":[{"content_view_filter_id":14,"content_view_filter_name":"Test - Deb Content View Filter","content_view_id":10,"content_view_name":"Test Content - View","last_affected_repo":true}],"last_sync":{"id":"0c110a6a-16e1-487f-a587-0ab648d99eda","username":"admin","started_at":"2023-11-15 - 09:54:33 UTC","ended_at":"2023-11-15 09:54:46 UTC","state":"stopped","result":"success","progress":1.0},"content_view":{"id":9,"name":"Default - Organization View"},"content_view_version":{"id":8,"name":"Default Organization - View 1.0","content_view_id":9},"kt_environment":{"id":4,"name":"Library"},"content_type":"yum","url":"https://repos.fedorapeople.org/pulp/pulp/demo_repos/zoo/","arch":"noarch","os_versions":[],"content_id":"1700042066424","generic_remote_options":null,"major":null,"minor":null,"product":{"id":10,"cp_id":"347380074197","name":"Test - Product","orphaned":false,"redhat":false,"sync_plan":null},"content_label":"Test_Organization_Test_Product_Test_Repository","last_sync_words":"1 - minute"}],"type":"deb","rules":[]} - - ' - headers: - Cache-Control: - - max-age=0, private, must-revalidate - Connection: - - Keep-Alive - Content-Length: - - '3113' - Content-Security-Policy: - - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; - style-src ''unsafe-inline'' ''self''' - Content-Type: - - application/json; charset=utf-8 - Foreman_api_version: - - '2' - Foreman_current_location: - - ; ANY - Foreman_current_organization: - - ; ANY - Foreman_version: - - 3.7.1 - Keep-Alive: - - timeout=15, max=94 - Strict-Transport-Security: - - max-age=631139040; includeSubdomains - X-Content-Type-Options: - - nosniff - X-Download-Options: - - noopen - X-Frame-Options: - - sameorigin - X-Permitted-Cross-Domain-Policies: - - none - X-XSS-Protection: - - 1; mode=block - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json;version=2 - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '0' - User-Agent: - - apypie (https://github.com/Apipie/apypie) - method: DELETE - uri: https://foreman.example.org/katello/api/content_views/10/filters/14 - response: - body: - string: ' {"inclusion":true,"id":14,"name":"Test Deb Content View Filter","description":null,"created_at":"2023-11-15 - 09:55:28 UTC","updated_at":"2023-11-15 09:55:30 UTC","content_view":{"composite":false,"component_ids":[],"default":false,"version_count":0,"latest_version":null,"latest_version_id":null,"auto_publish":false,"solve_dependencies":false,"import_only":false,"generated_for":"none","related_cv_count":0,"related_composite_cvs":[],"needs_publish":true,"filtered":false,"repository_ids":[18],"id":10,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":5,"organization":{"name":"Test - Organization","label":"Test_Organization","id":5},"created_at":"2023-11-15 - 09:55:08 UTC","updated_at":"2023-11-15 09:55:08 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":18,"name":"Test - Repository","label":"Test_Repository","content_type":"yum","product":{"id":10,"name":"Test - Product"},"content_counts":{"docker_manifest":0,"docker_tag":0,"rpm":32,"package":32,"package_group":2,"erratum":4,"module_stream":0}}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]},"repositories":[],"type":"deb","rules":[]} - - ' - headers: - Cache-Control: - - max-age=0, private, must-revalidate - Connection: - - Keep-Alive - Content-Length: - - '1266' - Content-Security-Policy: - - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; - style-src ''unsafe-inline'' ''self''' - Content-Type: - - application/json; charset=utf-8 - Foreman_api_version: - - '2' - Foreman_current_location: - - ; ANY - Foreman_current_organization: - - ; ANY - Foreman_version: - - 3.7.1 - Keep-Alive: - - timeout=15, max=93 - Strict-Transport-Security: - - max-age=631139040; includeSubdomains - X-Content-Type-Options: - - nosniff - X-Download-Options: - - noopen - X-Frame-Options: - - sameorigin - X-Permitted-Cross-Domain-Policies: - - none - X-XSS-Protection: - - 1; mode=block - status: - code: 200 - message: OK -version: 1 diff --git a/tests/test_playbooks/fixtures/content_view_filter-3.yml b/tests/test_playbooks/fixtures/content_view_filter-3.yml index cc1ff58f..84b75cf0 100644 --- a/tests/test_playbooks/fixtures/content_view_filter-3.yml +++ b/tests/test_playbooks/fixtures/content_view_filter-3.yml @@ -14,14 +14,14 @@ interactions: uri: https://foreman.example.org/api/status response: body: - string: '{"result":"ok","status":200,"version":"3.7.1","api_version":2}' + string: '{"result":"ok","status":200,"version":"3.12.0-develop","api_version":2}' headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive Content-Length: - - '62' + - '71' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -35,7 +35,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.1 + - 3.12.0-develop Keep-Alive: - timeout=15, max=100 Strict-Transport-Security: @@ -70,8 +70,8 @@ interactions: body: string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": 4294967296,\n \"search\": \"name=\\\"Test Organization\\\"\",\n \"sort\": - {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\":\"Test_Organization\",\"created_at\":\"2023-11-15 - 09:54:22 UTC\",\"updated_at\":\"2023-11-15 09:54:23 UTC\",\"id\":5,\"name\":\"Test + {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\":\"Test_Organization\",\"created_at\":\"2024-07-25 + 07:24:10 UTC\",\"updated_at\":\"2024-07-25 07:24:12 UTC\",\"id\":10,\"name\":\"Test Organization\",\"title\":\"Test Organization\",\"description\":\"A test organization\"}]\n}\n" headers: Cache-Control: @@ -79,7 +79,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '388' + - '389' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -93,7 +93,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.1 + - 3.12.0-develop Keep-Alive: - timeout=15, max=99 Strict-Transport-Security: @@ -123,14 +123,14 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/organizations/5/content_views?search=name%3D%22Test+Content+View%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/organizations/10/content_views?search=name%3D%22Test+Content+View%22&per_page=4294967296 response: body: string: '{"total":2,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Content View\"","sort":{"by":"name","order":"asc"},"results":[{"composite":false,"component_ids":[],"default":false,"version_count":0,"latest_version":null,"latest_version_id":null,"auto_publish":false,"solve_dependencies":false,"import_only":false,"generated_for":"none","related_cv_count":0,"related_composite_cvs":[],"needs_publish":true,"filtered":true,"repository_ids":[18],"id":10,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":5,"organization":{"name":"Test - Organization","label":"Test_Organization","id":5},"created_at":"2023-11-15 - 09:55:08 UTC","updated_at":"2023-11-15 09:55:08 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":18,"name":"Test + Content View\"","sort":{"by":"name","order":"asc"},"results":[{"composite":false,"component_ids":[],"duplicate_repositories_to_publish":[],"default":false,"version_count":0,"latest_version":null,"latest_version_id":null,"auto_publish":false,"solve_dependencies":false,"import_only":false,"generated_for":"none","related_cv_count":0,"related_composite_cvs":[],"filtered":true,"repository_ids":[20],"id":17,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":10,"organization":{"name":"Test + Organization","label":"Test_Organization","id":10},"created_at":"2024-07-25 + 07:24:40 UTC","updated_at":"2024-07-25 07:24:40 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":20,"name":"Test Repository","label":"Test_Repository","content_type":"yum"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]}]} ' @@ -140,7 +140,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '1049' + - '1069' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -152,9 +152,9 @@ interactions: Foreman_current_location: - ; ANY Foreman_current_organization: - - 5; Test Organization + - 10; Test Organization Foreman_version: - - 3.7.1 + - 3.12.0-develop Keep-Alive: - timeout=15, max=98 Strict-Transport-Security: @@ -184,14 +184,14 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/organizations/5/products?search=name%3D%22Test+Product%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/organizations/10/products?search=name%3D%22Test+Product%22&per_page=4294967296 response: body: string: '{"total":1,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Product\"","sort":{"by":"name","order":"asc"},"results":[{"id":10,"cp_id":"347380074197","name":"Test - Product","label":"Test_Product","description":"A happy little test product","provider_id":7,"sync_plan_id":null,"sync_summary":{"success":3},"gpg_key_id":null,"ssl_ca_cert_id":null,"ssl_client_cert_id":null,"ssl_client_key_id":null,"sync_state":"Syncing - Complete.","last_sync":"2023-11-15 09:54:59 UTC","last_sync_words":"less than - a minute","organization_id":5,"organization":{"name":"Test Organization","label":"Test_Organization","id":5},"sync_plan":null,"repository_count":3}]} + Product\"","sort":{"by":"name","order":"asc"},"results":[{"id":8,"cp_id":"527370220153","name":"Test + Product","label":"Test_Product","description":"A happy little test product","provider_id":17,"sync_plan_id":null,"sync_summary":{"success":2},"gpg_key_id":null,"ssl_ca_cert_id":null,"ssl_client_cert_id":null,"ssl_client_key_id":null,"sync_state":"Syncing + Complete.","last_sync":"2024-07-25 07:24:35 UTC","last_sync_words":"less than + a minute","organization_id":10,"organization":{"name":"Test Organization","label":"Test_Organization","id":10},"sync_plan":null,"repository_count":2}]} ' headers: @@ -200,7 +200,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '691' + - '693' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -212,9 +212,9 @@ interactions: Foreman_current_location: - ; ANY Foreman_current_organization: - - 5; Test Organization + - 10; Test Organization Foreman_version: - - 3.7.1 + - 3.12.0-develop Keep-Alive: - timeout=15, max=97 Strict-Transport-Security: @@ -244,19 +244,19 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/products/10/repositories?search=name%3D%22Test+Repository%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/products/8/repositories?search=name%3D%22Test+Repository%22&per_page=4294967296 response: body: - string: '{"total":3,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Repository\"","sort":{"by":"name","order":"asc"},"results":[{"backend_identifier":"29b3d88f-d4d9-4411-b1db-69f3a9c7df12","relative_path":"Test_Organization/Library/custom/Test_Product/Test_Repository","container_repository_name":null,"full_path":"https://centos8-stream-katello-4-9.tanso.example.com/pulp/content/Test_Organization/Library/custom/Test_Product/Test_Repository/","library_instance_id":null,"version_href":"/pulp/api/v3/repositories/rpm/rpm/00e6944a-841e-4bfe-9416-070861ef58fb/versions/1/","remote_href":"/pulp/api/v3/remotes/rpm/rpm/7e1e16ba-4432-4a52-988e-3da939154cbe/","publication_href":"/pulp/api/v3/publications/rpm/rpm/9695e87f-67d7-4765-9f98-e9a13987baef/","content_counts":{"rpm":32,"erratum":4,"package_group":2,"srpm":0,"module_stream":0},"mirroring_policy":"mirror_content_only","id":18,"name":"Test - Repository","label":"Test_Repository","description":null,"content_view_versions":[],"filters":[{"content_view_filter_id":8,"content_view_filter_name":"Test - Package Content View Filter","content_view_id":10,"content_view_name":"Test - Content View","last_affected_repo":true}],"last_sync":{"id":"0c110a6a-16e1-487f-a587-0ab648d99eda","username":"admin","started_at":"2023-11-15 - 09:54:33 UTC","ended_at":"2023-11-15 09:54:46 UTC","state":"stopped","result":"success","progress":1.0},"content_view":{"id":9,"name":"Default - Organization View"},"content_view_version":{"id":8,"name":"Default Organization - View 1.0","content_view_id":9},"kt_environment":{"id":4,"name":"Library"},"content_type":"yum","url":"https://repos.fedorapeople.org/pulp/pulp/demo_repos/zoo/","arch":"noarch","os_versions":[],"content_id":"1700042066424","generic_remote_options":null,"major":null,"minor":null,"product":{"id":10,"cp_id":"347380074197","name":"Test + string: '{"total":2,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test + Repository\"","sort":{"by":"name","order":"asc"},"results":[{"backend_identifier":"c42d6bfb-3280-4660-9f2c-c76c786fa382","relative_path":"Test_Organization/Library/custom/Test_Product/Test_Repository","container_repository_name":"test_organization-test_product-test_repository","full_path":"https://centos8-stream-katello-nightly.tanso.example.com/pulp/content/Test_Organization/Library/custom/Test_Product/Test_Repository/","library_instance_id":null,"version_href":"/pulp/api/v3/repositories/rpm/rpm/0190e8c6-b36d-7e8e-80f0-a0b6470e39c9/versions/1/","remote_href":"/pulp/api/v3/remotes/rpm/rpm/0190e8c6-b9d8-7aa7-a1d8-f8f81d2e719a/","publication_href":"/pulp/api/v3/publications/rpm/rpm/0190e8c6-d0e6-72f6-84b8-8a095de927df/","content_counts":{"rpm":32,"erratum":4,"package_group":2,"srpm":0,"module_stream":0},"mirroring_policy":"mirror_content_only","id":20,"name":"Test + Repository","label":"Test_Repository","description":null,"content_view_versions":[],"filters":[{"content_view_filter_id":78,"content_view_filter_name":"Test + Package Content View Filter","content_view_id":17,"content_view_name":"Test + Content View","last_affected_repo":true}],"last_sync":{"id":"13c7ce53-a0e4-4a3c-9a5e-27f4671e300d","username":"admin","started_at":"2024-07-25 + 07:24:18 UTC","ended_at":"2024-07-25 07:24:23 UTC","state":"stopped","result":"success","progress":1.0},"content_view":{"id":16,"name":"Default + Organization View"},"content_view_version":{"id":9,"name":"Default Organization + View 1.0","content_view_id":16},"kt_environment":{"id":9,"name":"Library"},"content_type":"yum","url":"https://repos.fedorapeople.org/pulp/pulp/demo_repos/zoo/","arch":"noarch","os_versions":[],"content_id":"1721892254686","generic_remote_options":null,"major":null,"minor":null,"product":{"id":8,"cp_id":"527370220153","name":"Test Product","orphaned":false,"redhat":false,"sync_plan":null},"content_label":"Test_Organization_Test_Product_Test_Repository","last_sync_words":"less - than a minute"}],"org_repository_count":3} + than a minute"}],"org_repository_count":2} ' headers: @@ -265,7 +265,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '2056' + - '2106' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -279,7 +279,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.1 + - 3.12.0-develop Keep-Alive: - timeout=15, max=96 Strict-Transport-Security: @@ -309,23 +309,23 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/content_views/10/filters?search=name%3D%22Test+Package+Content+View+Filter%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/content_views/17/filters?search=name%3D%22Test+Package+Content+View+Filter%22&per_page=4294967296 response: body: string: '{"total":1,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Package Content View Filter\"","sort":{"by":"name","order":"asc"},"results":[{"inclusion":false,"id":8,"name":"Test - Package Content View Filter","description":null,"created_at":"2023-11-15 09:55:10 - UTC","updated_at":"2023-11-15 09:55:11 UTC","content_view":{"composite":false,"component_ids":[],"default":false,"version_count":0,"latest_version":null,"latest_version_id":null,"auto_publish":false,"solve_dependencies":false,"import_only":false,"generated_for":"none","related_cv_count":0,"related_composite_cvs":[],"needs_publish":true,"filtered":true,"repository_ids":[18],"id":10,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":5,"organization":{"name":"Test - Organization","label":"Test_Organization","id":5},"created_at":"2023-11-15 - 09:55:08 UTC","updated_at":"2023-11-15 09:55:08 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":18,"name":"Test - Repository","label":"Test_Repository","content_type":"yum"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]},"repositories":[{"backend_identifier":"29b3d88f-d4d9-4411-b1db-69f3a9c7df12","relative_path":"Test_Organization/Library/custom/Test_Product/Test_Repository","container_repository_name":null,"full_path":"https://centos8-stream-katello-4-9.tanso.example.com/pulp/content/Test_Organization/Library/custom/Test_Product/Test_Repository/","library_instance_id":null,"version_href":"/pulp/api/v3/repositories/rpm/rpm/00e6944a-841e-4bfe-9416-070861ef58fb/versions/1/","remote_href":"/pulp/api/v3/remotes/rpm/rpm/7e1e16ba-4432-4a52-988e-3da939154cbe/","publication_href":"/pulp/api/v3/publications/rpm/rpm/9695e87f-67d7-4765-9f98-e9a13987baef/","content_counts":{"rpm":32,"erratum":4,"package_group":2,"srpm":0,"module_stream":0},"mirroring_policy":"mirror_content_only","id":18,"name":"Test - Repository","label":"Test_Repository","description":null,"content_view_versions":[],"filters":[{"content_view_filter_id":8,"content_view_filter_name":"Test - Package Content View Filter","content_view_id":10,"content_view_name":"Test - Content View","last_affected_repo":true}],"last_sync":{"id":"0c110a6a-16e1-487f-a587-0ab648d99eda","username":"admin","started_at":"2023-11-15 - 09:54:33 UTC","ended_at":"2023-11-15 09:54:46 UTC","state":"stopped","result":"success","progress":1.0},"content_view":{"id":9,"name":"Default - Organization View"},"content_view_version":{"id":8,"name":"Default Organization - View 1.0","content_view_id":9},"kt_environment":{"id":4,"name":"Library"},"content_type":"yum","url":"https://repos.fedorapeople.org/pulp/pulp/demo_repos/zoo/","arch":"noarch","os_versions":[],"content_id":"1700042066424","generic_remote_options":null,"major":null,"minor":null,"product":{"id":10,"cp_id":"347380074197","name":"Test + Package Content View Filter\"","sort":{"by":"name","order":"asc"},"results":[{"inclusion":false,"id":78,"name":"Test + Package Content View Filter","description":null,"created_at":"2024-07-25 07:24:41 + UTC","updated_at":"2024-07-25 07:24:43 UTC","content_view":{"composite":false,"component_ids":[],"duplicate_repositories_to_publish":[],"default":false,"version_count":0,"latest_version":null,"latest_version_id":null,"auto_publish":false,"solve_dependencies":false,"import_only":false,"generated_for":"none","related_cv_count":0,"related_composite_cvs":[],"filtered":true,"repository_ids":[20],"id":17,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":10,"organization":{"name":"Test + Organization","label":"Test_Organization","id":10},"created_at":"2024-07-25 + 07:24:40 UTC","updated_at":"2024-07-25 07:24:40 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":20,"name":"Test + Repository","label":"Test_Repository","content_type":"yum"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]},"repositories":[{"backend_identifier":"c42d6bfb-3280-4660-9f2c-c76c786fa382","relative_path":"Test_Organization/Library/custom/Test_Product/Test_Repository","container_repository_name":"test_organization-test_product-test_repository","full_path":"https://centos8-stream-katello-nightly.tanso.example.com/pulp/content/Test_Organization/Library/custom/Test_Product/Test_Repository/","library_instance_id":null,"version_href":"/pulp/api/v3/repositories/rpm/rpm/0190e8c6-b36d-7e8e-80f0-a0b6470e39c9/versions/1/","remote_href":"/pulp/api/v3/remotes/rpm/rpm/0190e8c6-b9d8-7aa7-a1d8-f8f81d2e719a/","publication_href":"/pulp/api/v3/publications/rpm/rpm/0190e8c6-d0e6-72f6-84b8-8a095de927df/","content_counts":{"rpm":32,"erratum":4,"package_group":2,"srpm":0,"module_stream":0},"mirroring_policy":"mirror_content_only","id":20,"name":"Test + Repository","label":"Test_Repository","description":null,"content_view_versions":[],"filters":[{"content_view_filter_id":78,"content_view_filter_name":"Test + Package Content View Filter","content_view_id":17,"content_view_name":"Test + Content View","last_affected_repo":true}],"last_sync":{"id":"13c7ce53-a0e4-4a3c-9a5e-27f4671e300d","username":"admin","started_at":"2024-07-25 + 07:24:18 UTC","ended_at":"2024-07-25 07:24:23 UTC","state":"stopped","result":"success","progress":1.0},"content_view":{"id":16,"name":"Default + Organization View"},"content_view_version":{"id":9,"name":"Default Organization + View 1.0","content_view_id":16},"kt_environment":{"id":9,"name":"Library"},"content_type":"yum","url":"https://repos.fedorapeople.org/pulp/pulp/demo_repos/zoo/","arch":"noarch","os_versions":[],"content_id":"1721892254686","generic_remote_options":null,"major":null,"minor":null,"product":{"id":8,"cp_id":"527370220153","name":"Test Product","orphaned":false,"redhat":false,"sync_plan":null},"content_label":"Test_Organization_Test_Product_Test_Repository","last_sync_words":"less than a minute"}],"type":"rpm","rules":[]}]} @@ -336,7 +336,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '3148' + - '3219' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -350,7 +350,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.1 + - 3.12.0-develop Keep-Alive: - timeout=15, max=95 Strict-Transport-Security: @@ -380,23 +380,23 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/content_views/10/filters/8 + uri: https://foreman.example.org/katello/api/content_views/17/filters/78 response: body: - string: ' {"inclusion":false,"original_packages":true,"id":8,"name":"Test Package - Content View Filter","description":null,"created_at":"2023-11-15 09:55:10 - UTC","updated_at":"2023-11-15 09:55:11 UTC","content_view":{"composite":false,"component_ids":[],"default":false,"version_count":0,"latest_version":null,"latest_version_id":null,"auto_publish":false,"solve_dependencies":false,"import_only":false,"generated_for":"none","related_cv_count":0,"related_composite_cvs":[],"needs_publish":true,"filtered":true,"repository_ids":[18],"id":10,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":5,"organization":{"name":"Test - Organization","label":"Test_Organization","id":5},"created_at":"2023-11-15 - 09:55:08 UTC","updated_at":"2023-11-15 09:55:08 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":18,"name":"Test - Repository","label":"Test_Repository","content_type":"yum","product":{"id":10,"name":"Test - Product"},"content_counts":{"docker_manifest":0,"docker_tag":0,"rpm":32,"package":32,"package_group":2,"erratum":4,"module_stream":0}}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]},"repositories":[{"backend_identifier":"29b3d88f-d4d9-4411-b1db-69f3a9c7df12","relative_path":"Test_Organization/Library/custom/Test_Product/Test_Repository","container_repository_name":null,"full_path":"https://centos8-stream-katello-4-9.tanso.example.com/pulp/content/Test_Organization/Library/custom/Test_Product/Test_Repository/","library_instance_id":null,"version_href":"/pulp/api/v3/repositories/rpm/rpm/00e6944a-841e-4bfe-9416-070861ef58fb/versions/1/","remote_href":"/pulp/api/v3/remotes/rpm/rpm/7e1e16ba-4432-4a52-988e-3da939154cbe/","publication_href":"/pulp/api/v3/publications/rpm/rpm/9695e87f-67d7-4765-9f98-e9a13987baef/","content_counts":{"rpm":32,"erratum":4,"package_group":2,"srpm":0,"module_stream":0},"mirroring_policy":"mirror_content_only","id":18,"name":"Test - Repository","label":"Test_Repository","description":null,"content_view_versions":[],"filters":[{"content_view_filter_id":8,"content_view_filter_name":"Test - Package Content View Filter","content_view_id":10,"content_view_name":"Test - Content View","last_affected_repo":true}],"last_sync":{"id":"0c110a6a-16e1-487f-a587-0ab648d99eda","username":"admin","started_at":"2023-11-15 - 09:54:33 UTC","ended_at":"2023-11-15 09:54:46 UTC","state":"stopped","result":"success","progress":1.0},"content_view":{"id":9,"name":"Default - Organization View"},"content_view_version":{"id":8,"name":"Default Organization - View 1.0","content_view_id":9},"kt_environment":{"id":4,"name":"Library"},"content_type":"yum","url":"https://repos.fedorapeople.org/pulp/pulp/demo_repos/zoo/","arch":"noarch","os_versions":[],"content_id":"1700042066424","generic_remote_options":null,"major":null,"minor":null,"product":{"id":10,"cp_id":"347380074197","name":"Test + string: ' {"inclusion":false,"original_packages":true,"id":78,"name":"Test + Package Content View Filter","description":null,"created_at":"2024-07-25 07:24:41 + UTC","updated_at":"2024-07-25 07:24:43 UTC","content_view":{"composite":false,"component_ids":[],"duplicate_repositories_to_publish":[],"default":false,"version_count":0,"latest_version":null,"latest_version_id":null,"auto_publish":false,"solve_dependencies":false,"import_only":false,"generated_for":"none","related_cv_count":0,"related_composite_cvs":[],"filtered":true,"repository_ids":[20],"id":17,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":10,"organization":{"name":"Test + Organization","label":"Test_Organization","id":10},"created_at":"2024-07-25 + 07:24:40 UTC","updated_at":"2024-07-25 07:24:40 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":20,"name":"Test + Repository","label":"Test_Repository","content_type":"yum","product":{"id":8,"name":"Test + Product"},"content_counts":{"docker_manifest":0,"docker_tag":0,"rpm":32,"package":32,"package_group":2,"erratum":4,"module_stream":0}}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]},"repositories":[{"backend_identifier":"c42d6bfb-3280-4660-9f2c-c76c786fa382","relative_path":"Test_Organization/Library/custom/Test_Product/Test_Repository","container_repository_name":"test_organization-test_product-test_repository","full_path":"https://centos8-stream-katello-nightly.tanso.example.com/pulp/content/Test_Organization/Library/custom/Test_Product/Test_Repository/","library_instance_id":null,"version_href":"/pulp/api/v3/repositories/rpm/rpm/0190e8c6-b36d-7e8e-80f0-a0b6470e39c9/versions/1/","remote_href":"/pulp/api/v3/remotes/rpm/rpm/0190e8c6-b9d8-7aa7-a1d8-f8f81d2e719a/","publication_href":"/pulp/api/v3/publications/rpm/rpm/0190e8c6-d0e6-72f6-84b8-8a095de927df/","content_counts":{"rpm":32,"erratum":4,"package_group":2,"srpm":0,"module_stream":0},"mirroring_policy":"mirror_content_only","id":20,"name":"Test + Repository","label":"Test_Repository","description":null,"content_view_versions":[],"filters":[{"content_view_filter_id":78,"content_view_filter_name":"Test + Package Content View Filter","content_view_id":17,"content_view_name":"Test + Content View","last_affected_repo":true}],"last_sync":{"id":"13c7ce53-a0e4-4a3c-9a5e-27f4671e300d","username":"admin","started_at":"2024-07-25 + 07:24:18 UTC","ended_at":"2024-07-25 07:24:23 UTC","state":"stopped","result":"success","progress":1.0},"content_view":{"id":16,"name":"Default + Organization View"},"content_view_version":{"id":9,"name":"Default Organization + View 1.0","content_view_id":16},"kt_environment":{"id":9,"name":"Library"},"content_type":"yum","url":"https://repos.fedorapeople.org/pulp/pulp/demo_repos/zoo/","arch":"noarch","os_versions":[],"content_id":"1721892254686","generic_remote_options":null,"major":null,"minor":null,"product":{"id":8,"cp_id":"527370220153","name":"Test Product","orphaned":false,"redhat":false,"sync_plan":null},"content_label":"Test_Organization_Test_Product_Test_Repository","last_sync_words":"less than a minute"}],"type":"rpm","rules":[]} @@ -407,7 +407,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '3155' + - '3225' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -421,7 +421,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.1 + - 3.12.0-develop Keep-Alive: - timeout=15, max=94 Strict-Transport-Security: diff --git a/tests/test_playbooks/fixtures/content_view_filter-4.yml b/tests/test_playbooks/fixtures/content_view_filter-4.yml index 1eacb557..74821406 100644 --- a/tests/test_playbooks/fixtures/content_view_filter-4.yml +++ b/tests/test_playbooks/fixtures/content_view_filter-4.yml @@ -14,14 +14,14 @@ interactions: uri: https://foreman.example.org/api/status response: body: - string: '{"result":"ok","status":200,"version":"3.7.1","api_version":2}' + string: '{"result":"ok","status":200,"version":"3.12.0-develop","api_version":2}' headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive Content-Length: - - '62' + - '71' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -35,7 +35,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.1 + - 3.12.0-develop Keep-Alive: - timeout=15, max=100 Strict-Transport-Security: @@ -70,8 +70,8 @@ interactions: body: string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": 4294967296,\n \"search\": \"name=\\\"Test Organization\\\"\",\n \"sort\": - {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\":\"Test_Organization\",\"created_at\":\"2023-11-15 - 09:54:22 UTC\",\"updated_at\":\"2023-11-15 09:54:23 UTC\",\"id\":5,\"name\":\"Test + {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\":\"Test_Organization\",\"created_at\":\"2024-07-25 + 07:24:10 UTC\",\"updated_at\":\"2024-07-25 07:24:12 UTC\",\"id\":10,\"name\":\"Test Organization\",\"title\":\"Test Organization\",\"description\":\"A test organization\"}]\n}\n" headers: Cache-Control: @@ -79,7 +79,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '388' + - '389' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -93,7 +93,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.1 + - 3.12.0-develop Keep-Alive: - timeout=15, max=99 Strict-Transport-Security: @@ -123,14 +123,14 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/organizations/5/content_views?search=name%3D%22Test+Content+View%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/organizations/10/content_views?search=name%3D%22Test+Content+View%22&per_page=4294967296 response: body: string: '{"total":2,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Content View\"","sort":{"by":"name","order":"asc"},"results":[{"composite":false,"component_ids":[],"default":false,"version_count":0,"latest_version":null,"latest_version_id":null,"auto_publish":false,"solve_dependencies":false,"import_only":false,"generated_for":"none","related_cv_count":0,"related_composite_cvs":[],"needs_publish":true,"filtered":true,"repository_ids":[18],"id":10,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":5,"organization":{"name":"Test - Organization","label":"Test_Organization","id":5},"created_at":"2023-11-15 - 09:55:08 UTC","updated_at":"2023-11-15 09:55:08 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":18,"name":"Test + Content View\"","sort":{"by":"name","order":"asc"},"results":[{"composite":false,"component_ids":[],"duplicate_repositories_to_publish":[],"default":false,"version_count":0,"latest_version":null,"latest_version_id":null,"auto_publish":false,"solve_dependencies":false,"import_only":false,"generated_for":"none","related_cv_count":0,"related_composite_cvs":[],"filtered":true,"repository_ids":[20],"id":17,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":10,"organization":{"name":"Test + Organization","label":"Test_Organization","id":10},"created_at":"2024-07-25 + 07:24:40 UTC","updated_at":"2024-07-25 07:24:40 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":20,"name":"Test Repository","label":"Test_Repository","content_type":"yum"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]}]} ' @@ -140,7 +140,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '1049' + - '1069' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -152,9 +152,9 @@ interactions: Foreman_current_location: - ; ANY Foreman_current_organization: - - 5; Test Organization + - 10; Test Organization Foreman_version: - - 3.7.1 + - 3.12.0-develop Keep-Alive: - timeout=15, max=98 Strict-Transport-Security: @@ -184,14 +184,14 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/organizations/5/products?search=name%3D%22Test+Product%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/organizations/10/products?search=name%3D%22Test+Product%22&per_page=4294967296 response: body: string: '{"total":1,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Product\"","sort":{"by":"name","order":"asc"},"results":[{"id":10,"cp_id":"347380074197","name":"Test - Product","label":"Test_Product","description":"A happy little test product","provider_id":7,"sync_plan_id":null,"sync_summary":{"success":3},"gpg_key_id":null,"ssl_ca_cert_id":null,"ssl_client_cert_id":null,"ssl_client_key_id":null,"sync_state":"Syncing - Complete.","last_sync":"2023-11-15 09:54:59 UTC","last_sync_words":"less than - a minute","organization_id":5,"organization":{"name":"Test Organization","label":"Test_Organization","id":5},"sync_plan":null,"repository_count":3}]} + Product\"","sort":{"by":"name","order":"asc"},"results":[{"id":8,"cp_id":"527370220153","name":"Test + Product","label":"Test_Product","description":"A happy little test product","provider_id":17,"sync_plan_id":null,"sync_summary":{"success":2},"gpg_key_id":null,"ssl_ca_cert_id":null,"ssl_client_cert_id":null,"ssl_client_key_id":null,"sync_state":"Syncing + Complete.","last_sync":"2024-07-25 07:24:35 UTC","last_sync_words":"less than + a minute","organization_id":10,"organization":{"name":"Test Organization","label":"Test_Organization","id":10},"sync_plan":null,"repository_count":2}]} ' headers: @@ -200,7 +200,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '691' + - '693' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -212,9 +212,9 @@ interactions: Foreman_current_location: - ; ANY Foreman_current_organization: - - 5; Test Organization + - 10; Test Organization Foreman_version: - - 3.7.1 + - 3.12.0-develop Keep-Alive: - timeout=15, max=97 Strict-Transport-Security: @@ -244,19 +244,19 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/products/10/repositories?search=name%3D%22Test+Repository%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/products/8/repositories?search=name%3D%22Test+Repository%22&per_page=4294967296 response: body: - string: '{"total":3,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Repository\"","sort":{"by":"name","order":"asc"},"results":[{"backend_identifier":"29b3d88f-d4d9-4411-b1db-69f3a9c7df12","relative_path":"Test_Organization/Library/custom/Test_Product/Test_Repository","container_repository_name":null,"full_path":"https://centos8-stream-katello-4-9.tanso.example.com/pulp/content/Test_Organization/Library/custom/Test_Product/Test_Repository/","library_instance_id":null,"version_href":"/pulp/api/v3/repositories/rpm/rpm/00e6944a-841e-4bfe-9416-070861ef58fb/versions/1/","remote_href":"/pulp/api/v3/remotes/rpm/rpm/7e1e16ba-4432-4a52-988e-3da939154cbe/","publication_href":"/pulp/api/v3/publications/rpm/rpm/9695e87f-67d7-4765-9f98-e9a13987baef/","content_counts":{"rpm":32,"erratum":4,"package_group":2,"srpm":0,"module_stream":0},"mirroring_policy":"mirror_content_only","id":18,"name":"Test - Repository","label":"Test_Repository","description":null,"content_view_versions":[],"filters":[{"content_view_filter_id":8,"content_view_filter_name":"Test - Package Content View Filter","content_view_id":10,"content_view_name":"Test - Content View","last_affected_repo":true}],"last_sync":{"id":"0c110a6a-16e1-487f-a587-0ab648d99eda","username":"admin","started_at":"2023-11-15 - 09:54:33 UTC","ended_at":"2023-11-15 09:54:46 UTC","state":"stopped","result":"success","progress":1.0},"content_view":{"id":9,"name":"Default - Organization View"},"content_view_version":{"id":8,"name":"Default Organization - View 1.0","content_view_id":9},"kt_environment":{"id":4,"name":"Library"},"content_type":"yum","url":"https://repos.fedorapeople.org/pulp/pulp/demo_repos/zoo/","arch":"noarch","os_versions":[],"content_id":"1700042066424","generic_remote_options":null,"major":null,"minor":null,"product":{"id":10,"cp_id":"347380074197","name":"Test + string: '{"total":2,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test + Repository\"","sort":{"by":"name","order":"asc"},"results":[{"backend_identifier":"c42d6bfb-3280-4660-9f2c-c76c786fa382","relative_path":"Test_Organization/Library/custom/Test_Product/Test_Repository","container_repository_name":"test_organization-test_product-test_repository","full_path":"https://centos8-stream-katello-nightly.tanso.example.com/pulp/content/Test_Organization/Library/custom/Test_Product/Test_Repository/","library_instance_id":null,"version_href":"/pulp/api/v3/repositories/rpm/rpm/0190e8c6-b36d-7e8e-80f0-a0b6470e39c9/versions/1/","remote_href":"/pulp/api/v3/remotes/rpm/rpm/0190e8c6-b9d8-7aa7-a1d8-f8f81d2e719a/","publication_href":"/pulp/api/v3/publications/rpm/rpm/0190e8c6-d0e6-72f6-84b8-8a095de927df/","content_counts":{"rpm":32,"erratum":4,"package_group":2,"srpm":0,"module_stream":0},"mirroring_policy":"mirror_content_only","id":20,"name":"Test + Repository","label":"Test_Repository","description":null,"content_view_versions":[],"filters":[{"content_view_filter_id":78,"content_view_filter_name":"Test + Package Content View Filter","content_view_id":17,"content_view_name":"Test + Content View","last_affected_repo":true}],"last_sync":{"id":"13c7ce53-a0e4-4a3c-9a5e-27f4671e300d","username":"admin","started_at":"2024-07-25 + 07:24:18 UTC","ended_at":"2024-07-25 07:24:23 UTC","state":"stopped","result":"success","progress":1.0},"content_view":{"id":16,"name":"Default + Organization View"},"content_view_version":{"id":9,"name":"Default Organization + View 1.0","content_view_id":16},"kt_environment":{"id":9,"name":"Library"},"content_type":"yum","url":"https://repos.fedorapeople.org/pulp/pulp/demo_repos/zoo/","arch":"noarch","os_versions":[],"content_id":"1721892254686","generic_remote_options":null,"major":null,"minor":null,"product":{"id":8,"cp_id":"527370220153","name":"Test Product","orphaned":false,"redhat":false,"sync_plan":null},"content_label":"Test_Organization_Test_Product_Test_Repository","last_sync_words":"less - than a minute"}],"org_repository_count":3} + than a minute"}],"org_repository_count":2} ' headers: @@ -265,7 +265,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '2056' + - '2106' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -279,7 +279,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.1 + - 3.12.0-develop Keep-Alive: - timeout=15, max=96 Strict-Transport-Security: @@ -309,23 +309,23 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/content_views/10/filters?search=name%3D%22Test+Package+Content+View+Filter%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/content_views/17/filters?search=name%3D%22Test+Package+Content+View+Filter%22&per_page=4294967296 response: body: string: '{"total":1,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Package Content View Filter\"","sort":{"by":"name","order":"asc"},"results":[{"inclusion":false,"id":8,"name":"Test - Package Content View Filter","description":null,"created_at":"2023-11-15 09:55:10 - UTC","updated_at":"2023-11-15 09:55:11 UTC","content_view":{"composite":false,"component_ids":[],"default":false,"version_count":0,"latest_version":null,"latest_version_id":null,"auto_publish":false,"solve_dependencies":false,"import_only":false,"generated_for":"none","related_cv_count":0,"related_composite_cvs":[],"needs_publish":true,"filtered":true,"repository_ids":[18],"id":10,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":5,"organization":{"name":"Test - Organization","label":"Test_Organization","id":5},"created_at":"2023-11-15 - 09:55:08 UTC","updated_at":"2023-11-15 09:55:08 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":18,"name":"Test - Repository","label":"Test_Repository","content_type":"yum"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]},"repositories":[{"backend_identifier":"29b3d88f-d4d9-4411-b1db-69f3a9c7df12","relative_path":"Test_Organization/Library/custom/Test_Product/Test_Repository","container_repository_name":null,"full_path":"https://centos8-stream-katello-4-9.tanso.example.com/pulp/content/Test_Organization/Library/custom/Test_Product/Test_Repository/","library_instance_id":null,"version_href":"/pulp/api/v3/repositories/rpm/rpm/00e6944a-841e-4bfe-9416-070861ef58fb/versions/1/","remote_href":"/pulp/api/v3/remotes/rpm/rpm/7e1e16ba-4432-4a52-988e-3da939154cbe/","publication_href":"/pulp/api/v3/publications/rpm/rpm/9695e87f-67d7-4765-9f98-e9a13987baef/","content_counts":{"rpm":32,"erratum":4,"package_group":2,"srpm":0,"module_stream":0},"mirroring_policy":"mirror_content_only","id":18,"name":"Test - Repository","label":"Test_Repository","description":null,"content_view_versions":[],"filters":[{"content_view_filter_id":8,"content_view_filter_name":"Test - Package Content View Filter","content_view_id":10,"content_view_name":"Test - Content View","last_affected_repo":true}],"last_sync":{"id":"0c110a6a-16e1-487f-a587-0ab648d99eda","username":"admin","started_at":"2023-11-15 - 09:54:33 UTC","ended_at":"2023-11-15 09:54:46 UTC","state":"stopped","result":"success","progress":1.0},"content_view":{"id":9,"name":"Default - Organization View"},"content_view_version":{"id":8,"name":"Default Organization - View 1.0","content_view_id":9},"kt_environment":{"id":4,"name":"Library"},"content_type":"yum","url":"https://repos.fedorapeople.org/pulp/pulp/demo_repos/zoo/","arch":"noarch","os_versions":[],"content_id":"1700042066424","generic_remote_options":null,"major":null,"minor":null,"product":{"id":10,"cp_id":"347380074197","name":"Test + Package Content View Filter\"","sort":{"by":"name","order":"asc"},"results":[{"inclusion":false,"id":78,"name":"Test + Package Content View Filter","description":null,"created_at":"2024-07-25 07:24:41 + UTC","updated_at":"2024-07-25 07:24:43 UTC","content_view":{"composite":false,"component_ids":[],"duplicate_repositories_to_publish":[],"default":false,"version_count":0,"latest_version":null,"latest_version_id":null,"auto_publish":false,"solve_dependencies":false,"import_only":false,"generated_for":"none","related_cv_count":0,"related_composite_cvs":[],"filtered":true,"repository_ids":[20],"id":17,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":10,"organization":{"name":"Test + Organization","label":"Test_Organization","id":10},"created_at":"2024-07-25 + 07:24:40 UTC","updated_at":"2024-07-25 07:24:40 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":20,"name":"Test + Repository","label":"Test_Repository","content_type":"yum"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]},"repositories":[{"backend_identifier":"c42d6bfb-3280-4660-9f2c-c76c786fa382","relative_path":"Test_Organization/Library/custom/Test_Product/Test_Repository","container_repository_name":"test_organization-test_product-test_repository","full_path":"https://centos8-stream-katello-nightly.tanso.example.com/pulp/content/Test_Organization/Library/custom/Test_Product/Test_Repository/","library_instance_id":null,"version_href":"/pulp/api/v3/repositories/rpm/rpm/0190e8c6-b36d-7e8e-80f0-a0b6470e39c9/versions/1/","remote_href":"/pulp/api/v3/remotes/rpm/rpm/0190e8c6-b9d8-7aa7-a1d8-f8f81d2e719a/","publication_href":"/pulp/api/v3/publications/rpm/rpm/0190e8c6-d0e6-72f6-84b8-8a095de927df/","content_counts":{"rpm":32,"erratum":4,"package_group":2,"srpm":0,"module_stream":0},"mirroring_policy":"mirror_content_only","id":20,"name":"Test + Repository","label":"Test_Repository","description":null,"content_view_versions":[],"filters":[{"content_view_filter_id":78,"content_view_filter_name":"Test + Package Content View Filter","content_view_id":17,"content_view_name":"Test + Content View","last_affected_repo":true}],"last_sync":{"id":"13c7ce53-a0e4-4a3c-9a5e-27f4671e300d","username":"admin","started_at":"2024-07-25 + 07:24:18 UTC","ended_at":"2024-07-25 07:24:23 UTC","state":"stopped","result":"success","progress":1.0},"content_view":{"id":16,"name":"Default + Organization View"},"content_view_version":{"id":9,"name":"Default Organization + View 1.0","content_view_id":16},"kt_environment":{"id":9,"name":"Library"},"content_type":"yum","url":"https://repos.fedorapeople.org/pulp/pulp/demo_repos/zoo/","arch":"noarch","os_versions":[],"content_id":"1721892254686","generic_remote_options":null,"major":null,"minor":null,"product":{"id":8,"cp_id":"527370220153","name":"Test Product","orphaned":false,"redhat":false,"sync_plan":null},"content_label":"Test_Organization_Test_Product_Test_Repository","last_sync_words":"less than a minute"}],"type":"rpm","rules":[]}]} @@ -336,7 +336,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '3148' + - '3219' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -350,7 +350,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.1 + - 3.12.0-develop Keep-Alive: - timeout=15, max=95 Strict-Transport-Security: @@ -380,23 +380,23 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/content_views/10/filters/8 + uri: https://foreman.example.org/katello/api/content_views/17/filters/78 response: body: - string: ' {"inclusion":false,"original_packages":true,"id":8,"name":"Test Package - Content View Filter","description":null,"created_at":"2023-11-15 09:55:10 - UTC","updated_at":"2023-11-15 09:55:11 UTC","content_view":{"composite":false,"component_ids":[],"default":false,"version_count":0,"latest_version":null,"latest_version_id":null,"auto_publish":false,"solve_dependencies":false,"import_only":false,"generated_for":"none","related_cv_count":0,"related_composite_cvs":[],"needs_publish":true,"filtered":true,"repository_ids":[18],"id":10,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":5,"organization":{"name":"Test - Organization","label":"Test_Organization","id":5},"created_at":"2023-11-15 - 09:55:08 UTC","updated_at":"2023-11-15 09:55:08 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":18,"name":"Test - Repository","label":"Test_Repository","content_type":"yum","product":{"id":10,"name":"Test - Product"},"content_counts":{"docker_manifest":0,"docker_tag":0,"rpm":32,"package":32,"package_group":2,"erratum":4,"module_stream":0}}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]},"repositories":[{"backend_identifier":"29b3d88f-d4d9-4411-b1db-69f3a9c7df12","relative_path":"Test_Organization/Library/custom/Test_Product/Test_Repository","container_repository_name":null,"full_path":"https://centos8-stream-katello-4-9.tanso.example.com/pulp/content/Test_Organization/Library/custom/Test_Product/Test_Repository/","library_instance_id":null,"version_href":"/pulp/api/v3/repositories/rpm/rpm/00e6944a-841e-4bfe-9416-070861ef58fb/versions/1/","remote_href":"/pulp/api/v3/remotes/rpm/rpm/7e1e16ba-4432-4a52-988e-3da939154cbe/","publication_href":"/pulp/api/v3/publications/rpm/rpm/9695e87f-67d7-4765-9f98-e9a13987baef/","content_counts":{"rpm":32,"erratum":4,"package_group":2,"srpm":0,"module_stream":0},"mirroring_policy":"mirror_content_only","id":18,"name":"Test - Repository","label":"Test_Repository","description":null,"content_view_versions":[],"filters":[{"content_view_filter_id":8,"content_view_filter_name":"Test - Package Content View Filter","content_view_id":10,"content_view_name":"Test - Content View","last_affected_repo":true}],"last_sync":{"id":"0c110a6a-16e1-487f-a587-0ab648d99eda","username":"admin","started_at":"2023-11-15 - 09:54:33 UTC","ended_at":"2023-11-15 09:54:46 UTC","state":"stopped","result":"success","progress":1.0},"content_view":{"id":9,"name":"Default - Organization View"},"content_view_version":{"id":8,"name":"Default Organization - View 1.0","content_view_id":9},"kt_environment":{"id":4,"name":"Library"},"content_type":"yum","url":"https://repos.fedorapeople.org/pulp/pulp/demo_repos/zoo/","arch":"noarch","os_versions":[],"content_id":"1700042066424","generic_remote_options":null,"major":null,"minor":null,"product":{"id":10,"cp_id":"347380074197","name":"Test + string: ' {"inclusion":false,"original_packages":true,"id":78,"name":"Test + Package Content View Filter","description":null,"created_at":"2024-07-25 07:24:41 + UTC","updated_at":"2024-07-25 07:24:43 UTC","content_view":{"composite":false,"component_ids":[],"duplicate_repositories_to_publish":[],"default":false,"version_count":0,"latest_version":null,"latest_version_id":null,"auto_publish":false,"solve_dependencies":false,"import_only":false,"generated_for":"none","related_cv_count":0,"related_composite_cvs":[],"filtered":true,"repository_ids":[20],"id":17,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":10,"organization":{"name":"Test + Organization","label":"Test_Organization","id":10},"created_at":"2024-07-25 + 07:24:40 UTC","updated_at":"2024-07-25 07:24:40 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":20,"name":"Test + Repository","label":"Test_Repository","content_type":"yum","product":{"id":8,"name":"Test + Product"},"content_counts":{"docker_manifest":0,"docker_tag":0,"rpm":32,"package":32,"package_group":2,"erratum":4,"module_stream":0}}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]},"repositories":[{"backend_identifier":"c42d6bfb-3280-4660-9f2c-c76c786fa382","relative_path":"Test_Organization/Library/custom/Test_Product/Test_Repository","container_repository_name":"test_organization-test_product-test_repository","full_path":"https://centos8-stream-katello-nightly.tanso.example.com/pulp/content/Test_Organization/Library/custom/Test_Product/Test_Repository/","library_instance_id":null,"version_href":"/pulp/api/v3/repositories/rpm/rpm/0190e8c6-b36d-7e8e-80f0-a0b6470e39c9/versions/1/","remote_href":"/pulp/api/v3/remotes/rpm/rpm/0190e8c6-b9d8-7aa7-a1d8-f8f81d2e719a/","publication_href":"/pulp/api/v3/publications/rpm/rpm/0190e8c6-d0e6-72f6-84b8-8a095de927df/","content_counts":{"rpm":32,"erratum":4,"package_group":2,"srpm":0,"module_stream":0},"mirroring_policy":"mirror_content_only","id":20,"name":"Test + Repository","label":"Test_Repository","description":null,"content_view_versions":[],"filters":[{"content_view_filter_id":78,"content_view_filter_name":"Test + Package Content View Filter","content_view_id":17,"content_view_name":"Test + Content View","last_affected_repo":true}],"last_sync":{"id":"13c7ce53-a0e4-4a3c-9a5e-27f4671e300d","username":"admin","started_at":"2024-07-25 + 07:24:18 UTC","ended_at":"2024-07-25 07:24:23 UTC","state":"stopped","result":"success","progress":1.0},"content_view":{"id":16,"name":"Default + Organization View"},"content_view_version":{"id":9,"name":"Default Organization + View 1.0","content_view_id":16},"kt_environment":{"id":9,"name":"Library"},"content_type":"yum","url":"https://repos.fedorapeople.org/pulp/pulp/demo_repos/zoo/","arch":"noarch","os_versions":[],"content_id":"1721892254686","generic_remote_options":null,"major":null,"minor":null,"product":{"id":8,"cp_id":"527370220153","name":"Test Product","orphaned":false,"redhat":false,"sync_plan":null},"content_label":"Test_Organization_Test_Product_Test_Repository","last_sync_words":"less than a minute"}],"type":"rpm","rules":[]} @@ -407,7 +407,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '3155' + - '3225' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -421,7 +421,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.1 + - 3.12.0-develop Keep-Alive: - timeout=15, max=94 Strict-Transport-Security: @@ -455,23 +455,23 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: PUT - uri: https://foreman.example.org/katello/api/content_views/10/filters/8 + uri: https://foreman.example.org/katello/api/content_views/17/filters/78 response: body: - string: ' {"inclusion":false,"original_packages":false,"id":8,"name":"Test - Package Content View Filter","description":null,"created_at":"2023-11-15 09:55:10 - UTC","updated_at":"2023-11-15 09:55:13 UTC","content_view":{"composite":false,"component_ids":[],"default":false,"version_count":0,"latest_version":null,"latest_version_id":null,"auto_publish":false,"solve_dependencies":false,"import_only":false,"generated_for":"none","related_cv_count":0,"related_composite_cvs":[],"needs_publish":true,"filtered":true,"repository_ids":[18],"id":10,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":5,"organization":{"name":"Test - Organization","label":"Test_Organization","id":5},"created_at":"2023-11-15 - 09:55:08 UTC","updated_at":"2023-11-15 09:55:08 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":18,"name":"Test - Repository","label":"Test_Repository","content_type":"yum","product":{"id":10,"name":"Test - Product"},"content_counts":{"docker_manifest":0,"docker_tag":0,"rpm":32,"package":32,"package_group":2,"erratum":4,"module_stream":0}}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]},"repositories":[{"backend_identifier":"29b3d88f-d4d9-4411-b1db-69f3a9c7df12","relative_path":"Test_Organization/Library/custom/Test_Product/Test_Repository","container_repository_name":null,"full_path":"https://centos8-stream-katello-4-9.tanso.example.com/pulp/content/Test_Organization/Library/custom/Test_Product/Test_Repository/","library_instance_id":null,"version_href":"/pulp/api/v3/repositories/rpm/rpm/00e6944a-841e-4bfe-9416-070861ef58fb/versions/1/","remote_href":"/pulp/api/v3/remotes/rpm/rpm/7e1e16ba-4432-4a52-988e-3da939154cbe/","publication_href":"/pulp/api/v3/publications/rpm/rpm/9695e87f-67d7-4765-9f98-e9a13987baef/","content_counts":{"rpm":32,"erratum":4,"package_group":2,"srpm":0,"module_stream":0},"mirroring_policy":"mirror_content_only","id":18,"name":"Test - Repository","label":"Test_Repository","description":null,"content_view_versions":[],"filters":[{"content_view_filter_id":8,"content_view_filter_name":"Test - Package Content View Filter","content_view_id":10,"content_view_name":"Test - Content View","last_affected_repo":true}],"last_sync":{"id":"0c110a6a-16e1-487f-a587-0ab648d99eda","username":"admin","started_at":"2023-11-15 - 09:54:33 UTC","ended_at":"2023-11-15 09:54:46 UTC","state":"stopped","result":"success","progress":1.0},"content_view":{"id":9,"name":"Default - Organization View"},"content_view_version":{"id":8,"name":"Default Organization - View 1.0","content_view_id":9},"kt_environment":{"id":4,"name":"Library"},"content_type":"yum","url":"https://repos.fedorapeople.org/pulp/pulp/demo_repos/zoo/","arch":"noarch","os_versions":[],"content_id":"1700042066424","generic_remote_options":null,"major":null,"minor":null,"product":{"id":10,"cp_id":"347380074197","name":"Test + string: ' {"inclusion":false,"original_packages":false,"id":78,"name":"Test + Package Content View Filter","description":null,"created_at":"2024-07-25 07:24:41 + UTC","updated_at":"2024-07-25 07:24:45 UTC","content_view":{"composite":false,"component_ids":[],"duplicate_repositories_to_publish":[],"default":false,"version_count":0,"latest_version":null,"latest_version_id":null,"auto_publish":false,"solve_dependencies":false,"import_only":false,"generated_for":"none","related_cv_count":0,"related_composite_cvs":[],"filtered":true,"repository_ids":[20],"id":17,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":10,"organization":{"name":"Test + Organization","label":"Test_Organization","id":10},"created_at":"2024-07-25 + 07:24:40 UTC","updated_at":"2024-07-25 07:24:40 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":20,"name":"Test + Repository","label":"Test_Repository","content_type":"yum","product":{"id":8,"name":"Test + Product"},"content_counts":{"docker_manifest":0,"docker_tag":0,"rpm":32,"package":32,"package_group":2,"erratum":4,"module_stream":0}}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]},"repositories":[{"backend_identifier":"c42d6bfb-3280-4660-9f2c-c76c786fa382","relative_path":"Test_Organization/Library/custom/Test_Product/Test_Repository","container_repository_name":"test_organization-test_product-test_repository","full_path":"https://centos8-stream-katello-nightly.tanso.example.com/pulp/content/Test_Organization/Library/custom/Test_Product/Test_Repository/","library_instance_id":null,"version_href":"/pulp/api/v3/repositories/rpm/rpm/0190e8c6-b36d-7e8e-80f0-a0b6470e39c9/versions/1/","remote_href":"/pulp/api/v3/remotes/rpm/rpm/0190e8c6-b9d8-7aa7-a1d8-f8f81d2e719a/","publication_href":"/pulp/api/v3/publications/rpm/rpm/0190e8c6-d0e6-72f6-84b8-8a095de927df/","content_counts":{"rpm":32,"erratum":4,"package_group":2,"srpm":0,"module_stream":0},"mirroring_policy":"mirror_content_only","id":20,"name":"Test + Repository","label":"Test_Repository","description":null,"content_view_versions":[],"filters":[{"content_view_filter_id":78,"content_view_filter_name":"Test + Package Content View Filter","content_view_id":17,"content_view_name":"Test + Content View","last_affected_repo":true}],"last_sync":{"id":"13c7ce53-a0e4-4a3c-9a5e-27f4671e300d","username":"admin","started_at":"2024-07-25 + 07:24:18 UTC","ended_at":"2024-07-25 07:24:23 UTC","state":"stopped","result":"success","progress":1.0},"content_view":{"id":16,"name":"Default + Organization View"},"content_view_version":{"id":9,"name":"Default Organization + View 1.0","content_view_id":16},"kt_environment":{"id":9,"name":"Library"},"content_type":"yum","url":"https://repos.fedorapeople.org/pulp/pulp/demo_repos/zoo/","arch":"noarch","os_versions":[],"content_id":"1721892254686","generic_remote_options":null,"major":null,"minor":null,"product":{"id":8,"cp_id":"527370220153","name":"Test Product","orphaned":false,"redhat":false,"sync_plan":null},"content_label":"Test_Organization_Test_Product_Test_Repository","last_sync_words":"less than a minute"}],"type":"rpm","rules":[]} @@ -482,7 +482,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '3156' + - '3226' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -496,7 +496,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.1 + - 3.12.0-develop Keep-Alive: - timeout=15, max=93 Strict-Transport-Security: diff --git a/tests/test_playbooks/fixtures/content_view_filter-5.yml b/tests/test_playbooks/fixtures/content_view_filter-5.yml index a1ccd2fb..ff2aad51 100644 --- a/tests/test_playbooks/fixtures/content_view_filter-5.yml +++ b/tests/test_playbooks/fixtures/content_view_filter-5.yml @@ -14,14 +14,14 @@ interactions: uri: https://foreman.example.org/api/status response: body: - string: '{"result":"ok","status":200,"version":"3.7.1","api_version":2}' + string: '{"result":"ok","status":200,"version":"3.12.0-develop","api_version":2}' headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive Content-Length: - - '62' + - '71' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -35,7 +35,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.1 + - 3.12.0-develop Keep-Alive: - timeout=15, max=100 Strict-Transport-Security: @@ -70,8 +70,8 @@ interactions: body: string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": 4294967296,\n \"search\": \"name=\\\"Test Organization\\\"\",\n \"sort\": - {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\":\"Test_Organization\",\"created_at\":\"2023-11-15 - 09:54:22 UTC\",\"updated_at\":\"2023-11-15 09:54:23 UTC\",\"id\":5,\"name\":\"Test + {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\":\"Test_Organization\",\"created_at\":\"2024-07-25 + 07:24:10 UTC\",\"updated_at\":\"2024-07-25 07:24:12 UTC\",\"id\":10,\"name\":\"Test Organization\",\"title\":\"Test Organization\",\"description\":\"A test organization\"}]\n}\n" headers: Cache-Control: @@ -79,7 +79,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '388' + - '389' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -93,7 +93,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.1 + - 3.12.0-develop Keep-Alive: - timeout=15, max=99 Strict-Transport-Security: @@ -123,14 +123,14 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/organizations/5/content_views?search=name%3D%22Test+Content+View%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/organizations/10/content_views?search=name%3D%22Test+Content+View%22&per_page=4294967296 response: body: string: '{"total":2,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Content View\"","sort":{"by":"name","order":"asc"},"results":[{"composite":false,"component_ids":[],"default":false,"version_count":0,"latest_version":null,"latest_version_id":null,"auto_publish":false,"solve_dependencies":false,"import_only":false,"generated_for":"none","related_cv_count":0,"related_composite_cvs":[],"needs_publish":true,"filtered":true,"repository_ids":[18],"id":10,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":5,"organization":{"name":"Test - Organization","label":"Test_Organization","id":5},"created_at":"2023-11-15 - 09:55:08 UTC","updated_at":"2023-11-15 09:55:08 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":18,"name":"Test + Content View\"","sort":{"by":"name","order":"asc"},"results":[{"composite":false,"component_ids":[],"duplicate_repositories_to_publish":[],"default":false,"version_count":0,"latest_version":null,"latest_version_id":null,"auto_publish":false,"solve_dependencies":false,"import_only":false,"generated_for":"none","related_cv_count":0,"related_composite_cvs":[],"filtered":true,"repository_ids":[20],"id":17,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":10,"organization":{"name":"Test + Organization","label":"Test_Organization","id":10},"created_at":"2024-07-25 + 07:24:40 UTC","updated_at":"2024-07-25 07:24:40 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":20,"name":"Test Repository","label":"Test_Repository","content_type":"yum"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]}]} ' @@ -140,7 +140,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '1049' + - '1069' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -152,9 +152,9 @@ interactions: Foreman_current_location: - ; ANY Foreman_current_organization: - - 5; Test Organization + - 10; Test Organization Foreman_version: - - 3.7.1 + - 3.12.0-develop Keep-Alive: - timeout=15, max=98 Strict-Transport-Security: @@ -184,14 +184,14 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/organizations/5/products?search=name%3D%22Test+Product%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/organizations/10/products?search=name%3D%22Test+Product%22&per_page=4294967296 response: body: string: '{"total":1,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Product\"","sort":{"by":"name","order":"asc"},"results":[{"id":10,"cp_id":"347380074197","name":"Test - Product","label":"Test_Product","description":"A happy little test product","provider_id":7,"sync_plan_id":null,"sync_summary":{"success":3},"gpg_key_id":null,"ssl_ca_cert_id":null,"ssl_client_cert_id":null,"ssl_client_key_id":null,"sync_state":"Syncing - Complete.","last_sync":"2023-11-15 09:54:59 UTC","last_sync_words":"less than - a minute","organization_id":5,"organization":{"name":"Test Organization","label":"Test_Organization","id":5},"sync_plan":null,"repository_count":3}]} + Product\"","sort":{"by":"name","order":"asc"},"results":[{"id":8,"cp_id":"527370220153","name":"Test + Product","label":"Test_Product","description":"A happy little test product","provider_id":17,"sync_plan_id":null,"sync_summary":{"success":2},"gpg_key_id":null,"ssl_ca_cert_id":null,"ssl_client_cert_id":null,"ssl_client_key_id":null,"sync_state":"Syncing + Complete.","last_sync":"2024-07-25 07:24:35 UTC","last_sync_words":"less than + a minute","organization_id":10,"organization":{"name":"Test Organization","label":"Test_Organization","id":10},"sync_plan":null,"repository_count":2}]} ' headers: @@ -200,7 +200,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '691' + - '693' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -212,9 +212,9 @@ interactions: Foreman_current_location: - ; ANY Foreman_current_organization: - - 5; Test Organization + - 10; Test Organization Foreman_version: - - 3.7.1 + - 3.12.0-develop Keep-Alive: - timeout=15, max=97 Strict-Transport-Security: @@ -244,19 +244,19 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/products/10/repositories?search=name%3D%22Test+Repository%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/products/8/repositories?search=name%3D%22Test+Repository%22&per_page=4294967296 response: body: - string: '{"total":3,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Repository\"","sort":{"by":"name","order":"asc"},"results":[{"backend_identifier":"29b3d88f-d4d9-4411-b1db-69f3a9c7df12","relative_path":"Test_Organization/Library/custom/Test_Product/Test_Repository","container_repository_name":null,"full_path":"https://centos8-stream-katello-4-9.tanso.example.com/pulp/content/Test_Organization/Library/custom/Test_Product/Test_Repository/","library_instance_id":null,"version_href":"/pulp/api/v3/repositories/rpm/rpm/00e6944a-841e-4bfe-9416-070861ef58fb/versions/1/","remote_href":"/pulp/api/v3/remotes/rpm/rpm/7e1e16ba-4432-4a52-988e-3da939154cbe/","publication_href":"/pulp/api/v3/publications/rpm/rpm/9695e87f-67d7-4765-9f98-e9a13987baef/","content_counts":{"rpm":32,"erratum":4,"package_group":2,"srpm":0,"module_stream":0},"mirroring_policy":"mirror_content_only","id":18,"name":"Test - Repository","label":"Test_Repository","description":null,"content_view_versions":[],"filters":[{"content_view_filter_id":8,"content_view_filter_name":"Test - Package Content View Filter","content_view_id":10,"content_view_name":"Test - Content View","last_affected_repo":true}],"last_sync":{"id":"0c110a6a-16e1-487f-a587-0ab648d99eda","username":"admin","started_at":"2023-11-15 - 09:54:33 UTC","ended_at":"2023-11-15 09:54:46 UTC","state":"stopped","result":"success","progress":1.0},"content_view":{"id":9,"name":"Default - Organization View"},"content_view_version":{"id":8,"name":"Default Organization - View 1.0","content_view_id":9},"kt_environment":{"id":4,"name":"Library"},"content_type":"yum","url":"https://repos.fedorapeople.org/pulp/pulp/demo_repos/zoo/","arch":"noarch","os_versions":[],"content_id":"1700042066424","generic_remote_options":null,"major":null,"minor":null,"product":{"id":10,"cp_id":"347380074197","name":"Test + string: '{"total":2,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test + Repository\"","sort":{"by":"name","order":"asc"},"results":[{"backend_identifier":"c42d6bfb-3280-4660-9f2c-c76c786fa382","relative_path":"Test_Organization/Library/custom/Test_Product/Test_Repository","container_repository_name":"test_organization-test_product-test_repository","full_path":"https://centos8-stream-katello-nightly.tanso.example.com/pulp/content/Test_Organization/Library/custom/Test_Product/Test_Repository/","library_instance_id":null,"version_href":"/pulp/api/v3/repositories/rpm/rpm/0190e8c6-b36d-7e8e-80f0-a0b6470e39c9/versions/1/","remote_href":"/pulp/api/v3/remotes/rpm/rpm/0190e8c6-b9d8-7aa7-a1d8-f8f81d2e719a/","publication_href":"/pulp/api/v3/publications/rpm/rpm/0190e8c6-d0e6-72f6-84b8-8a095de927df/","content_counts":{"rpm":32,"erratum":4,"package_group":2,"srpm":0,"module_stream":0},"mirroring_policy":"mirror_content_only","id":20,"name":"Test + Repository","label":"Test_Repository","description":null,"content_view_versions":[],"filters":[{"content_view_filter_id":78,"content_view_filter_name":"Test + Package Content View Filter","content_view_id":17,"content_view_name":"Test + Content View","last_affected_repo":true}],"last_sync":{"id":"13c7ce53-a0e4-4a3c-9a5e-27f4671e300d","username":"admin","started_at":"2024-07-25 + 07:24:18 UTC","ended_at":"2024-07-25 07:24:23 UTC","state":"stopped","result":"success","progress":1.0},"content_view":{"id":16,"name":"Default + Organization View"},"content_view_version":{"id":9,"name":"Default Organization + View 1.0","content_view_id":16},"kt_environment":{"id":9,"name":"Library"},"content_type":"yum","url":"https://repos.fedorapeople.org/pulp/pulp/demo_repos/zoo/","arch":"noarch","os_versions":[],"content_id":"1721892254686","generic_remote_options":null,"major":null,"minor":null,"product":{"id":8,"cp_id":"527370220153","name":"Test Product","orphaned":false,"redhat":false,"sync_plan":null},"content_label":"Test_Organization_Test_Product_Test_Repository","last_sync_words":"less - than a minute"}],"org_repository_count":3} + than a minute"}],"org_repository_count":2} ' headers: @@ -265,7 +265,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '2056' + - '2106' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -279,7 +279,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.1 + - 3.12.0-develop Keep-Alive: - timeout=15, max=96 Strict-Transport-Security: @@ -309,23 +309,23 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/content_views/10/filters?search=name%3D%22Test+Package+Content+View+Filter%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/content_views/17/filters?search=name%3D%22Test+Package+Content+View+Filter%22&per_page=4294967296 response: body: string: '{"total":1,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Package Content View Filter\"","sort":{"by":"name","order":"asc"},"results":[{"inclusion":false,"id":8,"name":"Test - Package Content View Filter","description":null,"created_at":"2023-11-15 09:55:10 - UTC","updated_at":"2023-11-15 09:55:13 UTC","content_view":{"composite":false,"component_ids":[],"default":false,"version_count":0,"latest_version":null,"latest_version_id":null,"auto_publish":false,"solve_dependencies":false,"import_only":false,"generated_for":"none","related_cv_count":0,"related_composite_cvs":[],"needs_publish":true,"filtered":true,"repository_ids":[18],"id":10,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":5,"organization":{"name":"Test - Organization","label":"Test_Organization","id":5},"created_at":"2023-11-15 - 09:55:08 UTC","updated_at":"2023-11-15 09:55:08 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":18,"name":"Test - Repository","label":"Test_Repository","content_type":"yum"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]},"repositories":[{"backend_identifier":"29b3d88f-d4d9-4411-b1db-69f3a9c7df12","relative_path":"Test_Organization/Library/custom/Test_Product/Test_Repository","container_repository_name":null,"full_path":"https://centos8-stream-katello-4-9.tanso.example.com/pulp/content/Test_Organization/Library/custom/Test_Product/Test_Repository/","library_instance_id":null,"version_href":"/pulp/api/v3/repositories/rpm/rpm/00e6944a-841e-4bfe-9416-070861ef58fb/versions/1/","remote_href":"/pulp/api/v3/remotes/rpm/rpm/7e1e16ba-4432-4a52-988e-3da939154cbe/","publication_href":"/pulp/api/v3/publications/rpm/rpm/9695e87f-67d7-4765-9f98-e9a13987baef/","content_counts":{"rpm":32,"erratum":4,"package_group":2,"srpm":0,"module_stream":0},"mirroring_policy":"mirror_content_only","id":18,"name":"Test - Repository","label":"Test_Repository","description":null,"content_view_versions":[],"filters":[{"content_view_filter_id":8,"content_view_filter_name":"Test - Package Content View Filter","content_view_id":10,"content_view_name":"Test - Content View","last_affected_repo":true}],"last_sync":{"id":"0c110a6a-16e1-487f-a587-0ab648d99eda","username":"admin","started_at":"2023-11-15 - 09:54:33 UTC","ended_at":"2023-11-15 09:54:46 UTC","state":"stopped","result":"success","progress":1.0},"content_view":{"id":9,"name":"Default - Organization View"},"content_view_version":{"id":8,"name":"Default Organization - View 1.0","content_view_id":9},"kt_environment":{"id":4,"name":"Library"},"content_type":"yum","url":"https://repos.fedorapeople.org/pulp/pulp/demo_repos/zoo/","arch":"noarch","os_versions":[],"content_id":"1700042066424","generic_remote_options":null,"major":null,"minor":null,"product":{"id":10,"cp_id":"347380074197","name":"Test + Package Content View Filter\"","sort":{"by":"name","order":"asc"},"results":[{"inclusion":false,"id":78,"name":"Test + Package Content View Filter","description":null,"created_at":"2024-07-25 07:24:41 + UTC","updated_at":"2024-07-25 07:24:45 UTC","content_view":{"composite":false,"component_ids":[],"duplicate_repositories_to_publish":[],"default":false,"version_count":0,"latest_version":null,"latest_version_id":null,"auto_publish":false,"solve_dependencies":false,"import_only":false,"generated_for":"none","related_cv_count":0,"related_composite_cvs":[],"filtered":true,"repository_ids":[20],"id":17,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":10,"organization":{"name":"Test + Organization","label":"Test_Organization","id":10},"created_at":"2024-07-25 + 07:24:40 UTC","updated_at":"2024-07-25 07:24:40 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":20,"name":"Test + Repository","label":"Test_Repository","content_type":"yum"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]},"repositories":[{"backend_identifier":"c42d6bfb-3280-4660-9f2c-c76c786fa382","relative_path":"Test_Organization/Library/custom/Test_Product/Test_Repository","container_repository_name":"test_organization-test_product-test_repository","full_path":"https://centos8-stream-katello-nightly.tanso.example.com/pulp/content/Test_Organization/Library/custom/Test_Product/Test_Repository/","library_instance_id":null,"version_href":"/pulp/api/v3/repositories/rpm/rpm/0190e8c6-b36d-7e8e-80f0-a0b6470e39c9/versions/1/","remote_href":"/pulp/api/v3/remotes/rpm/rpm/0190e8c6-b9d8-7aa7-a1d8-f8f81d2e719a/","publication_href":"/pulp/api/v3/publications/rpm/rpm/0190e8c6-d0e6-72f6-84b8-8a095de927df/","content_counts":{"rpm":32,"erratum":4,"package_group":2,"srpm":0,"module_stream":0},"mirroring_policy":"mirror_content_only","id":20,"name":"Test + Repository","label":"Test_Repository","description":null,"content_view_versions":[],"filters":[{"content_view_filter_id":78,"content_view_filter_name":"Test + Package Content View Filter","content_view_id":17,"content_view_name":"Test + Content View","last_affected_repo":true}],"last_sync":{"id":"13c7ce53-a0e4-4a3c-9a5e-27f4671e300d","username":"admin","started_at":"2024-07-25 + 07:24:18 UTC","ended_at":"2024-07-25 07:24:23 UTC","state":"stopped","result":"success","progress":1.0},"content_view":{"id":16,"name":"Default + Organization View"},"content_view_version":{"id":9,"name":"Default Organization + View 1.0","content_view_id":16},"kt_environment":{"id":9,"name":"Library"},"content_type":"yum","url":"https://repos.fedorapeople.org/pulp/pulp/demo_repos/zoo/","arch":"noarch","os_versions":[],"content_id":"1721892254686","generic_remote_options":null,"major":null,"minor":null,"product":{"id":8,"cp_id":"527370220153","name":"Test Product","orphaned":false,"redhat":false,"sync_plan":null},"content_label":"Test_Organization_Test_Product_Test_Repository","last_sync_words":"less than a minute"}],"type":"rpm","rules":[]}]} @@ -336,7 +336,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '3148' + - '3219' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -350,7 +350,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.1 + - 3.12.0-develop Keep-Alive: - timeout=15, max=95 Strict-Transport-Security: @@ -380,23 +380,23 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/content_views/10/filters/8 + uri: https://foreman.example.org/katello/api/content_views/17/filters/78 response: body: - string: ' {"inclusion":false,"original_packages":false,"id":8,"name":"Test - Package Content View Filter","description":null,"created_at":"2023-11-15 09:55:10 - UTC","updated_at":"2023-11-15 09:55:13 UTC","content_view":{"composite":false,"component_ids":[],"default":false,"version_count":0,"latest_version":null,"latest_version_id":null,"auto_publish":false,"solve_dependencies":false,"import_only":false,"generated_for":"none","related_cv_count":0,"related_composite_cvs":[],"needs_publish":true,"filtered":true,"repository_ids":[18],"id":10,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":5,"organization":{"name":"Test - Organization","label":"Test_Organization","id":5},"created_at":"2023-11-15 - 09:55:08 UTC","updated_at":"2023-11-15 09:55:08 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":18,"name":"Test - Repository","label":"Test_Repository","content_type":"yum","product":{"id":10,"name":"Test - Product"},"content_counts":{"docker_manifest":0,"docker_tag":0,"rpm":32,"package":32,"package_group":2,"erratum":4,"module_stream":0}}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]},"repositories":[{"backend_identifier":"29b3d88f-d4d9-4411-b1db-69f3a9c7df12","relative_path":"Test_Organization/Library/custom/Test_Product/Test_Repository","container_repository_name":null,"full_path":"https://centos8-stream-katello-4-9.tanso.example.com/pulp/content/Test_Organization/Library/custom/Test_Product/Test_Repository/","library_instance_id":null,"version_href":"/pulp/api/v3/repositories/rpm/rpm/00e6944a-841e-4bfe-9416-070861ef58fb/versions/1/","remote_href":"/pulp/api/v3/remotes/rpm/rpm/7e1e16ba-4432-4a52-988e-3da939154cbe/","publication_href":"/pulp/api/v3/publications/rpm/rpm/9695e87f-67d7-4765-9f98-e9a13987baef/","content_counts":{"rpm":32,"erratum":4,"package_group":2,"srpm":0,"module_stream":0},"mirroring_policy":"mirror_content_only","id":18,"name":"Test - Repository","label":"Test_Repository","description":null,"content_view_versions":[],"filters":[{"content_view_filter_id":8,"content_view_filter_name":"Test - Package Content View Filter","content_view_id":10,"content_view_name":"Test - Content View","last_affected_repo":true}],"last_sync":{"id":"0c110a6a-16e1-487f-a587-0ab648d99eda","username":"admin","started_at":"2023-11-15 - 09:54:33 UTC","ended_at":"2023-11-15 09:54:46 UTC","state":"stopped","result":"success","progress":1.0},"content_view":{"id":9,"name":"Default - Organization View"},"content_view_version":{"id":8,"name":"Default Organization - View 1.0","content_view_id":9},"kt_environment":{"id":4,"name":"Library"},"content_type":"yum","url":"https://repos.fedorapeople.org/pulp/pulp/demo_repos/zoo/","arch":"noarch","os_versions":[],"content_id":"1700042066424","generic_remote_options":null,"major":null,"minor":null,"product":{"id":10,"cp_id":"347380074197","name":"Test + string: ' {"inclusion":false,"original_packages":false,"id":78,"name":"Test + Package Content View Filter","description":null,"created_at":"2024-07-25 07:24:41 + UTC","updated_at":"2024-07-25 07:24:45 UTC","content_view":{"composite":false,"component_ids":[],"duplicate_repositories_to_publish":[],"default":false,"version_count":0,"latest_version":null,"latest_version_id":null,"auto_publish":false,"solve_dependencies":false,"import_only":false,"generated_for":"none","related_cv_count":0,"related_composite_cvs":[],"filtered":true,"repository_ids":[20],"id":17,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":10,"organization":{"name":"Test + Organization","label":"Test_Organization","id":10},"created_at":"2024-07-25 + 07:24:40 UTC","updated_at":"2024-07-25 07:24:40 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":20,"name":"Test + Repository","label":"Test_Repository","content_type":"yum","product":{"id":8,"name":"Test + Product"},"content_counts":{"docker_manifest":0,"docker_tag":0,"rpm":32,"package":32,"package_group":2,"erratum":4,"module_stream":0}}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]},"repositories":[{"backend_identifier":"c42d6bfb-3280-4660-9f2c-c76c786fa382","relative_path":"Test_Organization/Library/custom/Test_Product/Test_Repository","container_repository_name":"test_organization-test_product-test_repository","full_path":"https://centos8-stream-katello-nightly.tanso.example.com/pulp/content/Test_Organization/Library/custom/Test_Product/Test_Repository/","library_instance_id":null,"version_href":"/pulp/api/v3/repositories/rpm/rpm/0190e8c6-b36d-7e8e-80f0-a0b6470e39c9/versions/1/","remote_href":"/pulp/api/v3/remotes/rpm/rpm/0190e8c6-b9d8-7aa7-a1d8-f8f81d2e719a/","publication_href":"/pulp/api/v3/publications/rpm/rpm/0190e8c6-d0e6-72f6-84b8-8a095de927df/","content_counts":{"rpm":32,"erratum":4,"package_group":2,"srpm":0,"module_stream":0},"mirroring_policy":"mirror_content_only","id":20,"name":"Test + Repository","label":"Test_Repository","description":null,"content_view_versions":[],"filters":[{"content_view_filter_id":78,"content_view_filter_name":"Test + Package Content View Filter","content_view_id":17,"content_view_name":"Test + Content View","last_affected_repo":true}],"last_sync":{"id":"13c7ce53-a0e4-4a3c-9a5e-27f4671e300d","username":"admin","started_at":"2024-07-25 + 07:24:18 UTC","ended_at":"2024-07-25 07:24:23 UTC","state":"stopped","result":"success","progress":1.0},"content_view":{"id":16,"name":"Default + Organization View"},"content_view_version":{"id":9,"name":"Default Organization + View 1.0","content_view_id":16},"kt_environment":{"id":9,"name":"Library"},"content_type":"yum","url":"https://repos.fedorapeople.org/pulp/pulp/demo_repos/zoo/","arch":"noarch","os_versions":[],"content_id":"1721892254686","generic_remote_options":null,"major":null,"minor":null,"product":{"id":8,"cp_id":"527370220153","name":"Test Product","orphaned":false,"redhat":false,"sync_plan":null},"content_label":"Test_Organization_Test_Product_Test_Repository","last_sync_words":"less than a minute"}],"type":"rpm","rules":[]} @@ -407,7 +407,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '3156' + - '3226' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -421,7 +421,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.1 + - 3.12.0-develop Keep-Alive: - timeout=15, max=94 Strict-Transport-Security: diff --git a/tests/test_playbooks/fixtures/content_view_filter-6.yml b/tests/test_playbooks/fixtures/content_view_filter-6.yml index 8e5f4e59..31e09309 100644 --- a/tests/test_playbooks/fixtures/content_view_filter-6.yml +++ b/tests/test_playbooks/fixtures/content_view_filter-6.yml @@ -14,14 +14,14 @@ interactions: uri: https://foreman.example.org/api/status response: body: - string: '{"result":"ok","status":200,"version":"3.7.1","api_version":2}' + string: '{"result":"ok","status":200,"version":"3.12.0-develop","api_version":2}' headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive Content-Length: - - '62' + - '71' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -35,7 +35,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.1 + - 3.12.0-develop Keep-Alive: - timeout=15, max=100 Strict-Transport-Security: @@ -70,8 +70,8 @@ interactions: body: string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": 4294967296,\n \"search\": \"name=\\\"Test Organization\\\"\",\n \"sort\": - {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\":\"Test_Organization\",\"created_at\":\"2023-11-15 - 09:54:22 UTC\",\"updated_at\":\"2023-11-15 09:54:23 UTC\",\"id\":5,\"name\":\"Test + {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\":\"Test_Organization\",\"created_at\":\"2024-07-25 + 07:24:10 UTC\",\"updated_at\":\"2024-07-25 07:24:12 UTC\",\"id\":10,\"name\":\"Test Organization\",\"title\":\"Test Organization\",\"description\":\"A test organization\"}]\n}\n" headers: Cache-Control: @@ -79,7 +79,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '388' + - '389' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -93,7 +93,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.1 + - 3.12.0-develop Keep-Alive: - timeout=15, max=99 Strict-Transport-Security: @@ -123,14 +123,14 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/organizations/5/content_views?search=name%3D%22Test+Content+View%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/organizations/10/content_views?search=name%3D%22Test+Content+View%22&per_page=4294967296 response: body: string: '{"total":2,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Content View\"","sort":{"by":"name","order":"asc"},"results":[{"composite":false,"component_ids":[],"default":false,"version_count":0,"latest_version":null,"latest_version_id":null,"auto_publish":false,"solve_dependencies":false,"import_only":false,"generated_for":"none","related_cv_count":0,"related_composite_cvs":[],"needs_publish":true,"filtered":true,"repository_ids":[18],"id":10,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":5,"organization":{"name":"Test - Organization","label":"Test_Organization","id":5},"created_at":"2023-11-15 - 09:55:08 UTC","updated_at":"2023-11-15 09:55:08 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":18,"name":"Test + Content View\"","sort":{"by":"name","order":"asc"},"results":[{"composite":false,"component_ids":[],"duplicate_repositories_to_publish":[],"default":false,"version_count":0,"latest_version":null,"latest_version_id":null,"auto_publish":false,"solve_dependencies":false,"import_only":false,"generated_for":"none","related_cv_count":0,"related_composite_cvs":[],"filtered":true,"repository_ids":[20],"id":17,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":10,"organization":{"name":"Test + Organization","label":"Test_Organization","id":10},"created_at":"2024-07-25 + 07:24:40 UTC","updated_at":"2024-07-25 07:24:40 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":20,"name":"Test Repository","label":"Test_Repository","content_type":"yum"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]}]} ' @@ -140,7 +140,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '1049' + - '1069' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -152,9 +152,9 @@ interactions: Foreman_current_location: - ; ANY Foreman_current_organization: - - 5; Test Organization + - 10; Test Organization Foreman_version: - - 3.7.1 + - 3.12.0-develop Keep-Alive: - timeout=15, max=98 Strict-Transport-Security: @@ -184,14 +184,14 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/organizations/5/products?search=name%3D%22Test+Product%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/organizations/10/products?search=name%3D%22Test+Product%22&per_page=4294967296 response: body: string: '{"total":1,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Product\"","sort":{"by":"name","order":"asc"},"results":[{"id":10,"cp_id":"347380074197","name":"Test - Product","label":"Test_Product","description":"A happy little test product","provider_id":7,"sync_plan_id":null,"sync_summary":{"success":3},"gpg_key_id":null,"ssl_ca_cert_id":null,"ssl_client_cert_id":null,"ssl_client_key_id":null,"sync_state":"Syncing - Complete.","last_sync":"2023-11-15 09:54:59 UTC","last_sync_words":"less than - a minute","organization_id":5,"organization":{"name":"Test Organization","label":"Test_Organization","id":5},"sync_plan":null,"repository_count":3}]} + Product\"","sort":{"by":"name","order":"asc"},"results":[{"id":8,"cp_id":"527370220153","name":"Test + Product","label":"Test_Product","description":"A happy little test product","provider_id":17,"sync_plan_id":null,"sync_summary":{"success":2},"gpg_key_id":null,"ssl_ca_cert_id":null,"ssl_client_cert_id":null,"ssl_client_key_id":null,"sync_state":"Syncing + Complete.","last_sync":"2024-07-25 07:24:35 UTC","last_sync_words":"less than + a minute","organization_id":10,"organization":{"name":"Test Organization","label":"Test_Organization","id":10},"sync_plan":null,"repository_count":2}]} ' headers: @@ -200,7 +200,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '691' + - '693' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -212,9 +212,9 @@ interactions: Foreman_current_location: - ; ANY Foreman_current_organization: - - 5; Test Organization + - 10; Test Organization Foreman_version: - - 3.7.1 + - 3.12.0-develop Keep-Alive: - timeout=15, max=97 Strict-Transport-Security: @@ -244,19 +244,19 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/products/10/repositories?search=name%3D%22Test+Repository%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/products/8/repositories?search=name%3D%22Test+Repository%22&per_page=4294967296 response: body: - string: '{"total":3,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Repository\"","sort":{"by":"name","order":"asc"},"results":[{"backend_identifier":"29b3d88f-d4d9-4411-b1db-69f3a9c7df12","relative_path":"Test_Organization/Library/custom/Test_Product/Test_Repository","container_repository_name":null,"full_path":"https://centos8-stream-katello-4-9.tanso.example.com/pulp/content/Test_Organization/Library/custom/Test_Product/Test_Repository/","library_instance_id":null,"version_href":"/pulp/api/v3/repositories/rpm/rpm/00e6944a-841e-4bfe-9416-070861ef58fb/versions/1/","remote_href":"/pulp/api/v3/remotes/rpm/rpm/7e1e16ba-4432-4a52-988e-3da939154cbe/","publication_href":"/pulp/api/v3/publications/rpm/rpm/9695e87f-67d7-4765-9f98-e9a13987baef/","content_counts":{"rpm":32,"erratum":4,"package_group":2,"srpm":0,"module_stream":0},"mirroring_policy":"mirror_content_only","id":18,"name":"Test - Repository","label":"Test_Repository","description":null,"content_view_versions":[],"filters":[{"content_view_filter_id":8,"content_view_filter_name":"Test - Package Content View Filter","content_view_id":10,"content_view_name":"Test - Content View","last_affected_repo":true}],"last_sync":{"id":"0c110a6a-16e1-487f-a587-0ab648d99eda","username":"admin","started_at":"2023-11-15 - 09:54:33 UTC","ended_at":"2023-11-15 09:54:46 UTC","state":"stopped","result":"success","progress":1.0},"content_view":{"id":9,"name":"Default - Organization View"},"content_view_version":{"id":8,"name":"Default Organization - View 1.0","content_view_id":9},"kt_environment":{"id":4,"name":"Library"},"content_type":"yum","url":"https://repos.fedorapeople.org/pulp/pulp/demo_repos/zoo/","arch":"noarch","os_versions":[],"content_id":"1700042066424","generic_remote_options":null,"major":null,"minor":null,"product":{"id":10,"cp_id":"347380074197","name":"Test + string: '{"total":2,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test + Repository\"","sort":{"by":"name","order":"asc"},"results":[{"backend_identifier":"c42d6bfb-3280-4660-9f2c-c76c786fa382","relative_path":"Test_Organization/Library/custom/Test_Product/Test_Repository","container_repository_name":"test_organization-test_product-test_repository","full_path":"https://centos8-stream-katello-nightly.tanso.example.com/pulp/content/Test_Organization/Library/custom/Test_Product/Test_Repository/","library_instance_id":null,"version_href":"/pulp/api/v3/repositories/rpm/rpm/0190e8c6-b36d-7e8e-80f0-a0b6470e39c9/versions/1/","remote_href":"/pulp/api/v3/remotes/rpm/rpm/0190e8c6-b9d8-7aa7-a1d8-f8f81d2e719a/","publication_href":"/pulp/api/v3/publications/rpm/rpm/0190e8c6-d0e6-72f6-84b8-8a095de927df/","content_counts":{"rpm":32,"erratum":4,"package_group":2,"srpm":0,"module_stream":0},"mirroring_policy":"mirror_content_only","id":20,"name":"Test + Repository","label":"Test_Repository","description":null,"content_view_versions":[],"filters":[{"content_view_filter_id":78,"content_view_filter_name":"Test + Package Content View Filter","content_view_id":17,"content_view_name":"Test + Content View","last_affected_repo":true}],"last_sync":{"id":"13c7ce53-a0e4-4a3c-9a5e-27f4671e300d","username":"admin","started_at":"2024-07-25 + 07:24:18 UTC","ended_at":"2024-07-25 07:24:23 UTC","state":"stopped","result":"success","progress":1.0},"content_view":{"id":16,"name":"Default + Organization View"},"content_view_version":{"id":9,"name":"Default Organization + View 1.0","content_view_id":16},"kt_environment":{"id":9,"name":"Library"},"content_type":"yum","url":"https://repos.fedorapeople.org/pulp/pulp/demo_repos/zoo/","arch":"noarch","os_versions":[],"content_id":"1721892254686","generic_remote_options":null,"major":null,"minor":null,"product":{"id":8,"cp_id":"527370220153","name":"Test Product","orphaned":false,"redhat":false,"sync_plan":null},"content_label":"Test_Organization_Test_Product_Test_Repository","last_sync_words":"less - than a minute"}],"org_repository_count":3} + than a minute"}],"org_repository_count":2} ' headers: @@ -265,7 +265,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '2056' + - '2106' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -279,7 +279,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.1 + - 3.12.0-develop Keep-Alive: - timeout=15, max=96 Strict-Transport-Security: @@ -309,23 +309,23 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/content_views/10/filters?search=name%3D%22Test+Package+Content+View+Filter%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/content_views/17/filters?search=name%3D%22Test+Package+Content+View+Filter%22&per_page=4294967296 response: body: string: '{"total":1,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Package Content View Filter\"","sort":{"by":"name","order":"asc"},"results":[{"inclusion":false,"id":8,"name":"Test - Package Content View Filter","description":null,"created_at":"2023-11-15 09:55:10 - UTC","updated_at":"2023-11-15 09:55:13 UTC","content_view":{"composite":false,"component_ids":[],"default":false,"version_count":0,"latest_version":null,"latest_version_id":null,"auto_publish":false,"solve_dependencies":false,"import_only":false,"generated_for":"none","related_cv_count":0,"related_composite_cvs":[],"needs_publish":true,"filtered":true,"repository_ids":[18],"id":10,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":5,"organization":{"name":"Test - Organization","label":"Test_Organization","id":5},"created_at":"2023-11-15 - 09:55:08 UTC","updated_at":"2023-11-15 09:55:08 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":18,"name":"Test - Repository","label":"Test_Repository","content_type":"yum"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]},"repositories":[{"backend_identifier":"29b3d88f-d4d9-4411-b1db-69f3a9c7df12","relative_path":"Test_Organization/Library/custom/Test_Product/Test_Repository","container_repository_name":null,"full_path":"https://centos8-stream-katello-4-9.tanso.example.com/pulp/content/Test_Organization/Library/custom/Test_Product/Test_Repository/","library_instance_id":null,"version_href":"/pulp/api/v3/repositories/rpm/rpm/00e6944a-841e-4bfe-9416-070861ef58fb/versions/1/","remote_href":"/pulp/api/v3/remotes/rpm/rpm/7e1e16ba-4432-4a52-988e-3da939154cbe/","publication_href":"/pulp/api/v3/publications/rpm/rpm/9695e87f-67d7-4765-9f98-e9a13987baef/","content_counts":{"rpm":32,"erratum":4,"package_group":2,"srpm":0,"module_stream":0},"mirroring_policy":"mirror_content_only","id":18,"name":"Test - Repository","label":"Test_Repository","description":null,"content_view_versions":[],"filters":[{"content_view_filter_id":8,"content_view_filter_name":"Test - Package Content View Filter","content_view_id":10,"content_view_name":"Test - Content View","last_affected_repo":true}],"last_sync":{"id":"0c110a6a-16e1-487f-a587-0ab648d99eda","username":"admin","started_at":"2023-11-15 - 09:54:33 UTC","ended_at":"2023-11-15 09:54:46 UTC","state":"stopped","result":"success","progress":1.0},"content_view":{"id":9,"name":"Default - Organization View"},"content_view_version":{"id":8,"name":"Default Organization - View 1.0","content_view_id":9},"kt_environment":{"id":4,"name":"Library"},"content_type":"yum","url":"https://repos.fedorapeople.org/pulp/pulp/demo_repos/zoo/","arch":"noarch","os_versions":[],"content_id":"1700042066424","generic_remote_options":null,"major":null,"minor":null,"product":{"id":10,"cp_id":"347380074197","name":"Test + Package Content View Filter\"","sort":{"by":"name","order":"asc"},"results":[{"inclusion":false,"id":78,"name":"Test + Package Content View Filter","description":null,"created_at":"2024-07-25 07:24:41 + UTC","updated_at":"2024-07-25 07:24:45 UTC","content_view":{"composite":false,"component_ids":[],"duplicate_repositories_to_publish":[],"default":false,"version_count":0,"latest_version":null,"latest_version_id":null,"auto_publish":false,"solve_dependencies":false,"import_only":false,"generated_for":"none","related_cv_count":0,"related_composite_cvs":[],"filtered":true,"repository_ids":[20],"id":17,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":10,"organization":{"name":"Test + Organization","label":"Test_Organization","id":10},"created_at":"2024-07-25 + 07:24:40 UTC","updated_at":"2024-07-25 07:24:40 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":20,"name":"Test + Repository","label":"Test_Repository","content_type":"yum"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]},"repositories":[{"backend_identifier":"c42d6bfb-3280-4660-9f2c-c76c786fa382","relative_path":"Test_Organization/Library/custom/Test_Product/Test_Repository","container_repository_name":"test_organization-test_product-test_repository","full_path":"https://centos8-stream-katello-nightly.tanso.example.com/pulp/content/Test_Organization/Library/custom/Test_Product/Test_Repository/","library_instance_id":null,"version_href":"/pulp/api/v3/repositories/rpm/rpm/0190e8c6-b36d-7e8e-80f0-a0b6470e39c9/versions/1/","remote_href":"/pulp/api/v3/remotes/rpm/rpm/0190e8c6-b9d8-7aa7-a1d8-f8f81d2e719a/","publication_href":"/pulp/api/v3/publications/rpm/rpm/0190e8c6-d0e6-72f6-84b8-8a095de927df/","content_counts":{"rpm":32,"erratum":4,"package_group":2,"srpm":0,"module_stream":0},"mirroring_policy":"mirror_content_only","id":20,"name":"Test + Repository","label":"Test_Repository","description":null,"content_view_versions":[],"filters":[{"content_view_filter_id":78,"content_view_filter_name":"Test + Package Content View Filter","content_view_id":17,"content_view_name":"Test + Content View","last_affected_repo":true}],"last_sync":{"id":"13c7ce53-a0e4-4a3c-9a5e-27f4671e300d","username":"admin","started_at":"2024-07-25 + 07:24:18 UTC","ended_at":"2024-07-25 07:24:23 UTC","state":"stopped","result":"success","progress":1.0},"content_view":{"id":16,"name":"Default + Organization View"},"content_view_version":{"id":9,"name":"Default Organization + View 1.0","content_view_id":16},"kt_environment":{"id":9,"name":"Library"},"content_type":"yum","url":"https://repos.fedorapeople.org/pulp/pulp/demo_repos/zoo/","arch":"noarch","os_versions":[],"content_id":"1721892254686","generic_remote_options":null,"major":null,"minor":null,"product":{"id":8,"cp_id":"527370220153","name":"Test Product","orphaned":false,"redhat":false,"sync_plan":null},"content_label":"Test_Organization_Test_Product_Test_Repository","last_sync_words":"less than a minute"}],"type":"rpm","rules":[]}]} @@ -336,7 +336,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '3148' + - '3219' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -350,7 +350,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.1 + - 3.12.0-develop Keep-Alive: - timeout=15, max=95 Strict-Transport-Security: @@ -380,23 +380,23 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/content_views/10/filters/8 + uri: https://foreman.example.org/katello/api/content_views/17/filters/78 response: body: - string: ' {"inclusion":false,"original_packages":false,"id":8,"name":"Test - Package Content View Filter","description":null,"created_at":"2023-11-15 09:55:10 - UTC","updated_at":"2023-11-15 09:55:13 UTC","content_view":{"composite":false,"component_ids":[],"default":false,"version_count":0,"latest_version":null,"latest_version_id":null,"auto_publish":false,"solve_dependencies":false,"import_only":false,"generated_for":"none","related_cv_count":0,"related_composite_cvs":[],"needs_publish":true,"filtered":true,"repository_ids":[18],"id":10,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":5,"organization":{"name":"Test - Organization","label":"Test_Organization","id":5},"created_at":"2023-11-15 - 09:55:08 UTC","updated_at":"2023-11-15 09:55:08 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":18,"name":"Test - Repository","label":"Test_Repository","content_type":"yum","product":{"id":10,"name":"Test - Product"},"content_counts":{"docker_manifest":0,"docker_tag":0,"rpm":32,"package":32,"package_group":2,"erratum":4,"module_stream":0}}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]},"repositories":[{"backend_identifier":"29b3d88f-d4d9-4411-b1db-69f3a9c7df12","relative_path":"Test_Organization/Library/custom/Test_Product/Test_Repository","container_repository_name":null,"full_path":"https://centos8-stream-katello-4-9.tanso.example.com/pulp/content/Test_Organization/Library/custom/Test_Product/Test_Repository/","library_instance_id":null,"version_href":"/pulp/api/v3/repositories/rpm/rpm/00e6944a-841e-4bfe-9416-070861ef58fb/versions/1/","remote_href":"/pulp/api/v3/remotes/rpm/rpm/7e1e16ba-4432-4a52-988e-3da939154cbe/","publication_href":"/pulp/api/v3/publications/rpm/rpm/9695e87f-67d7-4765-9f98-e9a13987baef/","content_counts":{"rpm":32,"erratum":4,"package_group":2,"srpm":0,"module_stream":0},"mirroring_policy":"mirror_content_only","id":18,"name":"Test - Repository","label":"Test_Repository","description":null,"content_view_versions":[],"filters":[{"content_view_filter_id":8,"content_view_filter_name":"Test - Package Content View Filter","content_view_id":10,"content_view_name":"Test - Content View","last_affected_repo":true}],"last_sync":{"id":"0c110a6a-16e1-487f-a587-0ab648d99eda","username":"admin","started_at":"2023-11-15 - 09:54:33 UTC","ended_at":"2023-11-15 09:54:46 UTC","state":"stopped","result":"success","progress":1.0},"content_view":{"id":9,"name":"Default - Organization View"},"content_view_version":{"id":8,"name":"Default Organization - View 1.0","content_view_id":9},"kt_environment":{"id":4,"name":"Library"},"content_type":"yum","url":"https://repos.fedorapeople.org/pulp/pulp/demo_repos/zoo/","arch":"noarch","os_versions":[],"content_id":"1700042066424","generic_remote_options":null,"major":null,"minor":null,"product":{"id":10,"cp_id":"347380074197","name":"Test + string: ' {"inclusion":false,"original_packages":false,"id":78,"name":"Test + Package Content View Filter","description":null,"created_at":"2024-07-25 07:24:41 + UTC","updated_at":"2024-07-25 07:24:45 UTC","content_view":{"composite":false,"component_ids":[],"duplicate_repositories_to_publish":[],"default":false,"version_count":0,"latest_version":null,"latest_version_id":null,"auto_publish":false,"solve_dependencies":false,"import_only":false,"generated_for":"none","related_cv_count":0,"related_composite_cvs":[],"filtered":true,"repository_ids":[20],"id":17,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":10,"organization":{"name":"Test + Organization","label":"Test_Organization","id":10},"created_at":"2024-07-25 + 07:24:40 UTC","updated_at":"2024-07-25 07:24:40 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":20,"name":"Test + Repository","label":"Test_Repository","content_type":"yum","product":{"id":8,"name":"Test + Product"},"content_counts":{"docker_manifest":0,"docker_tag":0,"rpm":32,"package":32,"package_group":2,"erratum":4,"module_stream":0}}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]},"repositories":[{"backend_identifier":"c42d6bfb-3280-4660-9f2c-c76c786fa382","relative_path":"Test_Organization/Library/custom/Test_Product/Test_Repository","container_repository_name":"test_organization-test_product-test_repository","full_path":"https://centos8-stream-katello-nightly.tanso.example.com/pulp/content/Test_Organization/Library/custom/Test_Product/Test_Repository/","library_instance_id":null,"version_href":"/pulp/api/v3/repositories/rpm/rpm/0190e8c6-b36d-7e8e-80f0-a0b6470e39c9/versions/1/","remote_href":"/pulp/api/v3/remotes/rpm/rpm/0190e8c6-b9d8-7aa7-a1d8-f8f81d2e719a/","publication_href":"/pulp/api/v3/publications/rpm/rpm/0190e8c6-d0e6-72f6-84b8-8a095de927df/","content_counts":{"rpm":32,"erratum":4,"package_group":2,"srpm":0,"module_stream":0},"mirroring_policy":"mirror_content_only","id":20,"name":"Test + Repository","label":"Test_Repository","description":null,"content_view_versions":[],"filters":[{"content_view_filter_id":78,"content_view_filter_name":"Test + Package Content View Filter","content_view_id":17,"content_view_name":"Test + Content View","last_affected_repo":true}],"last_sync":{"id":"13c7ce53-a0e4-4a3c-9a5e-27f4671e300d","username":"admin","started_at":"2024-07-25 + 07:24:18 UTC","ended_at":"2024-07-25 07:24:23 UTC","state":"stopped","result":"success","progress":1.0},"content_view":{"id":16,"name":"Default + Organization View"},"content_view_version":{"id":9,"name":"Default Organization + View 1.0","content_view_id":16},"kt_environment":{"id":9,"name":"Library"},"content_type":"yum","url":"https://repos.fedorapeople.org/pulp/pulp/demo_repos/zoo/","arch":"noarch","os_versions":[],"content_id":"1721892254686","generic_remote_options":null,"major":null,"minor":null,"product":{"id":8,"cp_id":"527370220153","name":"Test Product","orphaned":false,"redhat":false,"sync_plan":null},"content_label":"Test_Organization_Test_Product_Test_Repository","last_sync_words":"less than a minute"}],"type":"rpm","rules":[]} @@ -407,7 +407,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '3156' + - '3226' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -421,7 +421,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.1 + - 3.12.0-develop Keep-Alive: - timeout=15, max=94 Strict-Transport-Security: @@ -455,23 +455,23 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: PUT - uri: https://foreman.example.org/katello/api/content_views/10/filters/8 + uri: https://foreman.example.org/katello/api/content_views/17/filters/78 response: body: - string: ' {"inclusion":true,"original_packages":false,"id":8,"name":"Test Package - Content View Filter","description":null,"created_at":"2023-11-15 09:55:10 - UTC","updated_at":"2023-11-15 09:55:15 UTC","content_view":{"composite":false,"component_ids":[],"default":false,"version_count":0,"latest_version":null,"latest_version_id":null,"auto_publish":false,"solve_dependencies":false,"import_only":false,"generated_for":"none","related_cv_count":0,"related_composite_cvs":[],"needs_publish":true,"filtered":true,"repository_ids":[18],"id":10,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":5,"organization":{"name":"Test - Organization","label":"Test_Organization","id":5},"created_at":"2023-11-15 - 09:55:08 UTC","updated_at":"2023-11-15 09:55:08 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":18,"name":"Test - Repository","label":"Test_Repository","content_type":"yum","product":{"id":10,"name":"Test - Product"},"content_counts":{"docker_manifest":0,"docker_tag":0,"rpm":32,"package":32,"package_group":2,"erratum":4,"module_stream":0}}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]},"repositories":[{"backend_identifier":"29b3d88f-d4d9-4411-b1db-69f3a9c7df12","relative_path":"Test_Organization/Library/custom/Test_Product/Test_Repository","container_repository_name":null,"full_path":"https://centos8-stream-katello-4-9.tanso.example.com/pulp/content/Test_Organization/Library/custom/Test_Product/Test_Repository/","library_instance_id":null,"version_href":"/pulp/api/v3/repositories/rpm/rpm/00e6944a-841e-4bfe-9416-070861ef58fb/versions/1/","remote_href":"/pulp/api/v3/remotes/rpm/rpm/7e1e16ba-4432-4a52-988e-3da939154cbe/","publication_href":"/pulp/api/v3/publications/rpm/rpm/9695e87f-67d7-4765-9f98-e9a13987baef/","content_counts":{"rpm":32,"erratum":4,"package_group":2,"srpm":0,"module_stream":0},"mirroring_policy":"mirror_content_only","id":18,"name":"Test - Repository","label":"Test_Repository","description":null,"content_view_versions":[],"filters":[{"content_view_filter_id":8,"content_view_filter_name":"Test - Package Content View Filter","content_view_id":10,"content_view_name":"Test - Content View","last_affected_repo":true}],"last_sync":{"id":"0c110a6a-16e1-487f-a587-0ab648d99eda","username":"admin","started_at":"2023-11-15 - 09:54:33 UTC","ended_at":"2023-11-15 09:54:46 UTC","state":"stopped","result":"success","progress":1.0},"content_view":{"id":9,"name":"Default - Organization View"},"content_view_version":{"id":8,"name":"Default Organization - View 1.0","content_view_id":9},"kt_environment":{"id":4,"name":"Library"},"content_type":"yum","url":"https://repos.fedorapeople.org/pulp/pulp/demo_repos/zoo/","arch":"noarch","os_versions":[],"content_id":"1700042066424","generic_remote_options":null,"major":null,"minor":null,"product":{"id":10,"cp_id":"347380074197","name":"Test + string: ' {"inclusion":true,"original_packages":false,"id":78,"name":"Test + Package Content View Filter","description":null,"created_at":"2024-07-25 07:24:41 + UTC","updated_at":"2024-07-25 07:24:46 UTC","content_view":{"composite":false,"component_ids":[],"duplicate_repositories_to_publish":[],"default":false,"version_count":0,"latest_version":null,"latest_version_id":null,"auto_publish":false,"solve_dependencies":false,"import_only":false,"generated_for":"none","related_cv_count":0,"related_composite_cvs":[],"filtered":true,"repository_ids":[20],"id":17,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":10,"organization":{"name":"Test + Organization","label":"Test_Organization","id":10},"created_at":"2024-07-25 + 07:24:40 UTC","updated_at":"2024-07-25 07:24:40 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":20,"name":"Test + Repository","label":"Test_Repository","content_type":"yum","product":{"id":8,"name":"Test + Product"},"content_counts":{"docker_manifest":0,"docker_tag":0,"rpm":32,"package":32,"package_group":2,"erratum":4,"module_stream":0}}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]},"repositories":[{"backend_identifier":"c42d6bfb-3280-4660-9f2c-c76c786fa382","relative_path":"Test_Organization/Library/custom/Test_Product/Test_Repository","container_repository_name":"test_organization-test_product-test_repository","full_path":"https://centos8-stream-katello-nightly.tanso.example.com/pulp/content/Test_Organization/Library/custom/Test_Product/Test_Repository/","library_instance_id":null,"version_href":"/pulp/api/v3/repositories/rpm/rpm/0190e8c6-b36d-7e8e-80f0-a0b6470e39c9/versions/1/","remote_href":"/pulp/api/v3/remotes/rpm/rpm/0190e8c6-b9d8-7aa7-a1d8-f8f81d2e719a/","publication_href":"/pulp/api/v3/publications/rpm/rpm/0190e8c6-d0e6-72f6-84b8-8a095de927df/","content_counts":{"rpm":32,"erratum":4,"package_group":2,"srpm":0,"module_stream":0},"mirroring_policy":"mirror_content_only","id":20,"name":"Test + Repository","label":"Test_Repository","description":null,"content_view_versions":[],"filters":[{"content_view_filter_id":78,"content_view_filter_name":"Test + Package Content View Filter","content_view_id":17,"content_view_name":"Test + Content View","last_affected_repo":true}],"last_sync":{"id":"13c7ce53-a0e4-4a3c-9a5e-27f4671e300d","username":"admin","started_at":"2024-07-25 + 07:24:18 UTC","ended_at":"2024-07-25 07:24:23 UTC","state":"stopped","result":"success","progress":1.0},"content_view":{"id":16,"name":"Default + Organization View"},"content_view_version":{"id":9,"name":"Default Organization + View 1.0","content_view_id":16},"kt_environment":{"id":9,"name":"Library"},"content_type":"yum","url":"https://repos.fedorapeople.org/pulp/pulp/demo_repos/zoo/","arch":"noarch","os_versions":[],"content_id":"1721892254686","generic_remote_options":null,"major":null,"minor":null,"product":{"id":8,"cp_id":"527370220153","name":"Test Product","orphaned":false,"redhat":false,"sync_plan":null},"content_label":"Test_Organization_Test_Product_Test_Repository","last_sync_words":"less than a minute"}],"type":"rpm","rules":[]} @@ -482,7 +482,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '3155' + - '3225' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -496,7 +496,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.1 + - 3.12.0-develop Keep-Alive: - timeout=15, max=93 Strict-Transport-Security: diff --git a/tests/test_playbooks/fixtures/content_view_filter-7.yml b/tests/test_playbooks/fixtures/content_view_filter-7.yml index e9bc8519..51b73331 100644 --- a/tests/test_playbooks/fixtures/content_view_filter-7.yml +++ b/tests/test_playbooks/fixtures/content_view_filter-7.yml @@ -14,14 +14,14 @@ interactions: uri: https://foreman.example.org/api/status response: body: - string: '{"result":"ok","status":200,"version":"3.7.1","api_version":2}' + string: '{"result":"ok","status":200,"version":"3.12.0-develop","api_version":2}' headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive Content-Length: - - '62' + - '71' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -35,7 +35,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.1 + - 3.12.0-develop Keep-Alive: - timeout=15, max=100 Strict-Transport-Security: @@ -70,8 +70,8 @@ interactions: body: string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": 4294967296,\n \"search\": \"name=\\\"Test Organization\\\"\",\n \"sort\": - {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\":\"Test_Organization\",\"created_at\":\"2023-11-15 - 09:54:22 UTC\",\"updated_at\":\"2023-11-15 09:54:23 UTC\",\"id\":5,\"name\":\"Test + {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\":\"Test_Organization\",\"created_at\":\"2024-07-25 + 07:24:10 UTC\",\"updated_at\":\"2024-07-25 07:24:12 UTC\",\"id\":10,\"name\":\"Test Organization\",\"title\":\"Test Organization\",\"description\":\"A test organization\"}]\n}\n" headers: Cache-Control: @@ -79,7 +79,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '388' + - '389' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -93,7 +93,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.1 + - 3.12.0-develop Keep-Alive: - timeout=15, max=99 Strict-Transport-Security: @@ -123,14 +123,14 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/organizations/5/content_views?search=name%3D%22Test+Content+View%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/organizations/10/content_views?search=name%3D%22Test+Content+View%22&per_page=4294967296 response: body: string: '{"total":2,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Content View\"","sort":{"by":"name","order":"asc"},"results":[{"composite":false,"component_ids":[],"default":false,"version_count":0,"latest_version":null,"latest_version_id":null,"auto_publish":false,"solve_dependencies":false,"import_only":false,"generated_for":"none","related_cv_count":0,"related_composite_cvs":[],"needs_publish":true,"filtered":true,"repository_ids":[18],"id":10,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":5,"organization":{"name":"Test - Organization","label":"Test_Organization","id":5},"created_at":"2023-11-15 - 09:55:08 UTC","updated_at":"2023-11-15 09:55:08 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":18,"name":"Test + Content View\"","sort":{"by":"name","order":"asc"},"results":[{"composite":false,"component_ids":[],"duplicate_repositories_to_publish":[],"default":false,"version_count":0,"latest_version":null,"latest_version_id":null,"auto_publish":false,"solve_dependencies":false,"import_only":false,"generated_for":"none","related_cv_count":0,"related_composite_cvs":[],"filtered":true,"repository_ids":[20],"id":17,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":10,"organization":{"name":"Test + Organization","label":"Test_Organization","id":10},"created_at":"2024-07-25 + 07:24:40 UTC","updated_at":"2024-07-25 07:24:40 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":20,"name":"Test Repository","label":"Test_Repository","content_type":"yum"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]}]} ' @@ -140,7 +140,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '1049' + - '1069' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -152,9 +152,9 @@ interactions: Foreman_current_location: - ; ANY Foreman_current_organization: - - 5; Test Organization + - 10; Test Organization Foreman_version: - - 3.7.1 + - 3.12.0-develop Keep-Alive: - timeout=15, max=98 Strict-Transport-Security: @@ -184,14 +184,14 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/organizations/5/products?search=name%3D%22Test+Product%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/organizations/10/products?search=name%3D%22Test+Product%22&per_page=4294967296 response: body: string: '{"total":1,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Product\"","sort":{"by":"name","order":"asc"},"results":[{"id":10,"cp_id":"347380074197","name":"Test - Product","label":"Test_Product","description":"A happy little test product","provider_id":7,"sync_plan_id":null,"sync_summary":{"success":3},"gpg_key_id":null,"ssl_ca_cert_id":null,"ssl_client_cert_id":null,"ssl_client_key_id":null,"sync_state":"Syncing - Complete.","last_sync":"2023-11-15 09:54:59 UTC","last_sync_words":"less than - a minute","organization_id":5,"organization":{"name":"Test Organization","label":"Test_Organization","id":5},"sync_plan":null,"repository_count":3}]} + Product\"","sort":{"by":"name","order":"asc"},"results":[{"id":8,"cp_id":"527370220153","name":"Test + Product","label":"Test_Product","description":"A happy little test product","provider_id":17,"sync_plan_id":null,"sync_summary":{"success":2},"gpg_key_id":null,"ssl_ca_cert_id":null,"ssl_client_cert_id":null,"ssl_client_key_id":null,"sync_state":"Syncing + Complete.","last_sync":"2024-07-25 07:24:35 UTC","last_sync_words":"less than + a minute","organization_id":10,"organization":{"name":"Test Organization","label":"Test_Organization","id":10},"sync_plan":null,"repository_count":2}]} ' headers: @@ -200,7 +200,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '691' + - '693' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -212,9 +212,9 @@ interactions: Foreman_current_location: - ; ANY Foreman_current_organization: - - 5; Test Organization + - 10; Test Organization Foreman_version: - - 3.7.1 + - 3.12.0-develop Keep-Alive: - timeout=15, max=97 Strict-Transport-Security: @@ -244,19 +244,19 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/products/10/repositories?search=name%3D%22Test+Repository%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/products/8/repositories?search=name%3D%22Test+Repository%22&per_page=4294967296 response: body: - string: '{"total":3,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Repository\"","sort":{"by":"name","order":"asc"},"results":[{"backend_identifier":"29b3d88f-d4d9-4411-b1db-69f3a9c7df12","relative_path":"Test_Organization/Library/custom/Test_Product/Test_Repository","container_repository_name":null,"full_path":"https://centos8-stream-katello-4-9.tanso.example.com/pulp/content/Test_Organization/Library/custom/Test_Product/Test_Repository/","library_instance_id":null,"version_href":"/pulp/api/v3/repositories/rpm/rpm/00e6944a-841e-4bfe-9416-070861ef58fb/versions/1/","remote_href":"/pulp/api/v3/remotes/rpm/rpm/7e1e16ba-4432-4a52-988e-3da939154cbe/","publication_href":"/pulp/api/v3/publications/rpm/rpm/9695e87f-67d7-4765-9f98-e9a13987baef/","content_counts":{"rpm":32,"erratum":4,"package_group":2,"srpm":0,"module_stream":0},"mirroring_policy":"mirror_content_only","id":18,"name":"Test - Repository","label":"Test_Repository","description":null,"content_view_versions":[],"filters":[{"content_view_filter_id":8,"content_view_filter_name":"Test - Package Content View Filter","content_view_id":10,"content_view_name":"Test - Content View","last_affected_repo":true}],"last_sync":{"id":"0c110a6a-16e1-487f-a587-0ab648d99eda","username":"admin","started_at":"2023-11-15 - 09:54:33 UTC","ended_at":"2023-11-15 09:54:46 UTC","state":"stopped","result":"success","progress":1.0},"content_view":{"id":9,"name":"Default - Organization View"},"content_view_version":{"id":8,"name":"Default Organization - View 1.0","content_view_id":9},"kt_environment":{"id":4,"name":"Library"},"content_type":"yum","url":"https://repos.fedorapeople.org/pulp/pulp/demo_repos/zoo/","arch":"noarch","os_versions":[],"content_id":"1700042066424","generic_remote_options":null,"major":null,"minor":null,"product":{"id":10,"cp_id":"347380074197","name":"Test + string: '{"total":2,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test + Repository\"","sort":{"by":"name","order":"asc"},"results":[{"backend_identifier":"c42d6bfb-3280-4660-9f2c-c76c786fa382","relative_path":"Test_Organization/Library/custom/Test_Product/Test_Repository","container_repository_name":"test_organization-test_product-test_repository","full_path":"https://centos8-stream-katello-nightly.tanso.example.com/pulp/content/Test_Organization/Library/custom/Test_Product/Test_Repository/","library_instance_id":null,"version_href":"/pulp/api/v3/repositories/rpm/rpm/0190e8c6-b36d-7e8e-80f0-a0b6470e39c9/versions/1/","remote_href":"/pulp/api/v3/remotes/rpm/rpm/0190e8c6-b9d8-7aa7-a1d8-f8f81d2e719a/","publication_href":"/pulp/api/v3/publications/rpm/rpm/0190e8c6-d0e6-72f6-84b8-8a095de927df/","content_counts":{"rpm":32,"erratum":4,"package_group":2,"srpm":0,"module_stream":0},"mirroring_policy":"mirror_content_only","id":20,"name":"Test + Repository","label":"Test_Repository","description":null,"content_view_versions":[],"filters":[{"content_view_filter_id":78,"content_view_filter_name":"Test + Package Content View Filter","content_view_id":17,"content_view_name":"Test + Content View","last_affected_repo":true}],"last_sync":{"id":"13c7ce53-a0e4-4a3c-9a5e-27f4671e300d","username":"admin","started_at":"2024-07-25 + 07:24:18 UTC","ended_at":"2024-07-25 07:24:23 UTC","state":"stopped","result":"success","progress":1.0},"content_view":{"id":16,"name":"Default + Organization View"},"content_view_version":{"id":9,"name":"Default Organization + View 1.0","content_view_id":16},"kt_environment":{"id":9,"name":"Library"},"content_type":"yum","url":"https://repos.fedorapeople.org/pulp/pulp/demo_repos/zoo/","arch":"noarch","os_versions":[],"content_id":"1721892254686","generic_remote_options":null,"major":null,"minor":null,"product":{"id":8,"cp_id":"527370220153","name":"Test Product","orphaned":false,"redhat":false,"sync_plan":null},"content_label":"Test_Organization_Test_Product_Test_Repository","last_sync_words":"less - than a minute"}],"org_repository_count":3} + than a minute"}],"org_repository_count":2} ' headers: @@ -265,7 +265,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '2056' + - '2106' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -279,7 +279,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.1 + - 3.12.0-develop Keep-Alive: - timeout=15, max=96 Strict-Transport-Security: @@ -309,25 +309,25 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/content_views/10/filters?search=name%3D%22Test+Package+Content+View+Filter%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/content_views/17/filters?search=name%3D%22Test+Package+Content+View+Filter%22&per_page=4294967296 response: body: string: '{"total":1,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Package Content View Filter\"","sort":{"by":"name","order":"asc"},"results":[{"inclusion":true,"id":8,"name":"Test - Package Content View Filter","description":null,"created_at":"2023-11-15 09:55:10 - UTC","updated_at":"2023-11-15 09:55:15 UTC","content_view":{"composite":false,"component_ids":[],"default":false,"version_count":0,"latest_version":null,"latest_version_id":null,"auto_publish":false,"solve_dependencies":false,"import_only":false,"generated_for":"none","related_cv_count":0,"related_composite_cvs":[],"needs_publish":true,"filtered":true,"repository_ids":[18],"id":10,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":5,"organization":{"name":"Test - Organization","label":"Test_Organization","id":5},"created_at":"2023-11-15 - 09:55:08 UTC","updated_at":"2023-11-15 09:55:08 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":18,"name":"Test - Repository","label":"Test_Repository","content_type":"yum"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]},"repositories":[{"backend_identifier":"29b3d88f-d4d9-4411-b1db-69f3a9c7df12","relative_path":"Test_Organization/Library/custom/Test_Product/Test_Repository","container_repository_name":null,"full_path":"https://centos8-stream-katello-4-9.tanso.example.com/pulp/content/Test_Organization/Library/custom/Test_Product/Test_Repository/","library_instance_id":null,"version_href":"/pulp/api/v3/repositories/rpm/rpm/00e6944a-841e-4bfe-9416-070861ef58fb/versions/1/","remote_href":"/pulp/api/v3/remotes/rpm/rpm/7e1e16ba-4432-4a52-988e-3da939154cbe/","publication_href":"/pulp/api/v3/publications/rpm/rpm/9695e87f-67d7-4765-9f98-e9a13987baef/","content_counts":{"rpm":32,"erratum":4,"package_group":2,"srpm":0,"module_stream":0},"mirroring_policy":"mirror_content_only","id":18,"name":"Test - Repository","label":"Test_Repository","description":null,"content_view_versions":[],"filters":[{"content_view_filter_id":8,"content_view_filter_name":"Test - Package Content View Filter","content_view_id":10,"content_view_name":"Test - Content View","last_affected_repo":true}],"last_sync":{"id":"0c110a6a-16e1-487f-a587-0ab648d99eda","username":"admin","started_at":"2023-11-15 - 09:54:33 UTC","ended_at":"2023-11-15 09:54:46 UTC","state":"stopped","result":"success","progress":1.0},"content_view":{"id":9,"name":"Default - Organization View"},"content_view_version":{"id":8,"name":"Default Organization - View 1.0","content_view_id":9},"kt_environment":{"id":4,"name":"Library"},"content_type":"yum","url":"https://repos.fedorapeople.org/pulp/pulp/demo_repos/zoo/","arch":"noarch","os_versions":[],"content_id":"1700042066424","generic_remote_options":null,"major":null,"minor":null,"product":{"id":10,"cp_id":"347380074197","name":"Test - Product","orphaned":false,"redhat":false,"sync_plan":null},"content_label":"Test_Organization_Test_Product_Test_Repository","last_sync_words":"1 - minute"}],"type":"rpm","rules":[]}]} + Package Content View Filter\"","sort":{"by":"name","order":"asc"},"results":[{"inclusion":true,"id":78,"name":"Test + Package Content View Filter","description":null,"created_at":"2024-07-25 07:24:41 + UTC","updated_at":"2024-07-25 07:24:46 UTC","content_view":{"composite":false,"component_ids":[],"duplicate_repositories_to_publish":[],"default":false,"version_count":0,"latest_version":null,"latest_version_id":null,"auto_publish":false,"solve_dependencies":false,"import_only":false,"generated_for":"none","related_cv_count":0,"related_composite_cvs":[],"filtered":true,"repository_ids":[20],"id":17,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":10,"organization":{"name":"Test + Organization","label":"Test_Organization","id":10},"created_at":"2024-07-25 + 07:24:40 UTC","updated_at":"2024-07-25 07:24:40 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":20,"name":"Test + Repository","label":"Test_Repository","content_type":"yum"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]},"repositories":[{"backend_identifier":"c42d6bfb-3280-4660-9f2c-c76c786fa382","relative_path":"Test_Organization/Library/custom/Test_Product/Test_Repository","container_repository_name":"test_organization-test_product-test_repository","full_path":"https://centos8-stream-katello-nightly.tanso.example.com/pulp/content/Test_Organization/Library/custom/Test_Product/Test_Repository/","library_instance_id":null,"version_href":"/pulp/api/v3/repositories/rpm/rpm/0190e8c6-b36d-7e8e-80f0-a0b6470e39c9/versions/1/","remote_href":"/pulp/api/v3/remotes/rpm/rpm/0190e8c6-b9d8-7aa7-a1d8-f8f81d2e719a/","publication_href":"/pulp/api/v3/publications/rpm/rpm/0190e8c6-d0e6-72f6-84b8-8a095de927df/","content_counts":{"rpm":32,"erratum":4,"package_group":2,"srpm":0,"module_stream":0},"mirroring_policy":"mirror_content_only","id":20,"name":"Test + Repository","label":"Test_Repository","description":null,"content_view_versions":[],"filters":[{"content_view_filter_id":78,"content_view_filter_name":"Test + Package Content View Filter","content_view_id":17,"content_view_name":"Test + Content View","last_affected_repo":true}],"last_sync":{"id":"13c7ce53-a0e4-4a3c-9a5e-27f4671e300d","username":"admin","started_at":"2024-07-25 + 07:24:18 UTC","ended_at":"2024-07-25 07:24:23 UTC","state":"stopped","result":"success","progress":1.0},"content_view":{"id":16,"name":"Default + Organization View"},"content_view_version":{"id":9,"name":"Default Organization + View 1.0","content_view_id":16},"kt_environment":{"id":9,"name":"Library"},"content_type":"yum","url":"https://repos.fedorapeople.org/pulp/pulp/demo_repos/zoo/","arch":"noarch","os_versions":[],"content_id":"1721892254686","generic_remote_options":null,"major":null,"minor":null,"product":{"id":8,"cp_id":"527370220153","name":"Test + Product","orphaned":false,"redhat":false,"sync_plan":null},"content_label":"Test_Organization_Test_Product_Test_Repository","last_sync_words":"less + than a minute"}],"type":"rpm","rules":[]}]} ' headers: @@ -336,7 +336,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '3137' + - '3218' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -350,7 +350,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.1 + - 3.12.0-develop Keep-Alive: - timeout=15, max=95 Strict-Transport-Security: @@ -368,77 +368,6 @@ interactions: status: code: 200 message: OK -- request: - body: null - headers: - Accept: - - application/json;version=2 - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - apypie (https://github.com/Apipie/apypie) - method: GET - uri: https://foreman.example.org/katello/api/content_views/10/filters/8 - response: - body: - string: ' {"inclusion":true,"original_packages":false,"id":8,"name":"Test Package - Content View Filter","description":null,"created_at":"2023-11-15 09:55:10 - UTC","updated_at":"2023-11-15 09:55:15 UTC","content_view":{"composite":false,"component_ids":[],"default":false,"version_count":0,"latest_version":null,"latest_version_id":null,"auto_publish":false,"solve_dependencies":false,"import_only":false,"generated_for":"none","related_cv_count":0,"related_composite_cvs":[],"needs_publish":true,"filtered":true,"repository_ids":[18],"id":10,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":5,"organization":{"name":"Test - Organization","label":"Test_Organization","id":5},"created_at":"2023-11-15 - 09:55:08 UTC","updated_at":"2023-11-15 09:55:08 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":18,"name":"Test - Repository","label":"Test_Repository","content_type":"yum","product":{"id":10,"name":"Test - Product"},"content_counts":{"docker_manifest":0,"docker_tag":0,"rpm":32,"package":32,"package_group":2,"erratum":4,"module_stream":0}}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]},"repositories":[{"backend_identifier":"29b3d88f-d4d9-4411-b1db-69f3a9c7df12","relative_path":"Test_Organization/Library/custom/Test_Product/Test_Repository","container_repository_name":null,"full_path":"https://centos8-stream-katello-4-9.tanso.example.com/pulp/content/Test_Organization/Library/custom/Test_Product/Test_Repository/","library_instance_id":null,"version_href":"/pulp/api/v3/repositories/rpm/rpm/00e6944a-841e-4bfe-9416-070861ef58fb/versions/1/","remote_href":"/pulp/api/v3/remotes/rpm/rpm/7e1e16ba-4432-4a52-988e-3da939154cbe/","publication_href":"/pulp/api/v3/publications/rpm/rpm/9695e87f-67d7-4765-9f98-e9a13987baef/","content_counts":{"rpm":32,"erratum":4,"package_group":2,"srpm":0,"module_stream":0},"mirroring_policy":"mirror_content_only","id":18,"name":"Test - Repository","label":"Test_Repository","description":null,"content_view_versions":[],"filters":[{"content_view_filter_id":8,"content_view_filter_name":"Test - Package Content View Filter","content_view_id":10,"content_view_name":"Test - Content View","last_affected_repo":true}],"last_sync":{"id":"0c110a6a-16e1-487f-a587-0ab648d99eda","username":"admin","started_at":"2023-11-15 - 09:54:33 UTC","ended_at":"2023-11-15 09:54:46 UTC","state":"stopped","result":"success","progress":1.0},"content_view":{"id":9,"name":"Default - Organization View"},"content_view_version":{"id":8,"name":"Default Organization - View 1.0","content_view_id":9},"kt_environment":{"id":4,"name":"Library"},"content_type":"yum","url":"https://repos.fedorapeople.org/pulp/pulp/demo_repos/zoo/","arch":"noarch","os_versions":[],"content_id":"1700042066424","generic_remote_options":null,"major":null,"minor":null,"product":{"id":10,"cp_id":"347380074197","name":"Test - Product","orphaned":false,"redhat":false,"sync_plan":null},"content_label":"Test_Organization_Test_Product_Test_Repository","last_sync_words":"1 - minute"}],"type":"rpm","rules":[]} - - ' - headers: - Cache-Control: - - max-age=0, private, must-revalidate - Connection: - - Keep-Alive - Content-Length: - - '3145' - Content-Security-Policy: - - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; - style-src ''unsafe-inline'' ''self''' - Content-Type: - - application/json; charset=utf-8 - Foreman_api_version: - - '2' - Foreman_current_location: - - ; ANY - Foreman_current_organization: - - ; ANY - Foreman_version: - - 3.7.1 - Keep-Alive: - - timeout=15, max=94 - Strict-Transport-Security: - - max-age=631139040; includeSubdomains - X-Content-Type-Options: - - nosniff - X-Download-Options: - - noopen - X-Frame-Options: - - sameorigin - X-Permitted-Cross-Domain-Policies: - - none - X-XSS-Protection: - - 1; mode=block - status: - code: 200 - message: OK - request: body: null headers: @@ -453,16 +382,16 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: DELETE - uri: https://foreman.example.org/katello/api/content_views/10/filters/8 + uri: https://foreman.example.org/katello/api/content_views/17/filters/78 response: body: - string: ' {"inclusion":true,"original_packages":false,"id":8,"name":"Test Package - Content View Filter","description":null,"created_at":"2023-11-15 09:55:10 - UTC","updated_at":"2023-11-15 09:55:15 UTC","content_view":{"composite":false,"component_ids":[],"default":false,"version_count":0,"latest_version":null,"latest_version_id":null,"auto_publish":false,"solve_dependencies":false,"import_only":false,"generated_for":"none","related_cv_count":0,"related_composite_cvs":[],"needs_publish":true,"filtered":false,"repository_ids":[18],"id":10,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":5,"organization":{"name":"Test - Organization","label":"Test_Organization","id":5},"created_at":"2023-11-15 - 09:55:08 UTC","updated_at":"2023-11-15 09:55:08 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":18,"name":"Test - Repository","label":"Test_Repository","content_type":"yum","product":{"id":10,"name":"Test + string: ' {"inclusion":true,"original_packages":false,"id":78,"name":"Test + Package Content View Filter","description":null,"created_at":"2024-07-25 07:24:41 + UTC","updated_at":"2024-07-25 07:24:46 UTC","content_view":{"composite":false,"component_ids":[],"duplicate_repositories_to_publish":[],"default":false,"version_count":0,"latest_version":null,"latest_version_id":null,"auto_publish":false,"solve_dependencies":false,"import_only":false,"generated_for":"none","related_cv_count":0,"related_composite_cvs":[],"filtered":false,"repository_ids":[20],"id":17,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":10,"organization":{"name":"Test + Organization","label":"Test_Organization","id":10},"created_at":"2024-07-25 + 07:24:40 UTC","updated_at":"2024-07-25 07:24:40 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":20,"name":"Test + Repository","label":"Test_Repository","content_type":"yum","product":{"id":8,"name":"Test Product"},"content_counts":{"docker_manifest":0,"docker_tag":0,"rpm":32,"package":32,"package_group":2,"erratum":4,"module_stream":0}}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]},"repositories":[],"type":"rpm","rules":[]} ' @@ -472,7 +401,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '1295' + - '1315' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -486,9 +415,9 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.1 + - 3.12.0-develop Keep-Alive: - - timeout=15, max=93 + - timeout=15, max=94 Strict-Transport-Security: - max-age=631139040; includeSubdomains X-Content-Type-Options: diff --git a/tests/test_playbooks/fixtures/content_view_filter-8.yml b/tests/test_playbooks/fixtures/content_view_filter-8.yml index 3a6a23a3..3218ba0b 100644 --- a/tests/test_playbooks/fixtures/content_view_filter-8.yml +++ b/tests/test_playbooks/fixtures/content_view_filter-8.yml @@ -14,14 +14,14 @@ interactions: uri: https://foreman.example.org/api/status response: body: - string: '{"result":"ok","status":200,"version":"3.7.1","api_version":2}' + string: '{"result":"ok","status":200,"version":"3.12.0-develop","api_version":2}' headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive Content-Length: - - '62' + - '71' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -35,7 +35,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.1 + - 3.12.0-develop Keep-Alive: - timeout=15, max=100 Strict-Transport-Security: @@ -70,8 +70,8 @@ interactions: body: string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": 4294967296,\n \"search\": \"name=\\\"Test Organization\\\"\",\n \"sort\": - {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\":\"Test_Organization\",\"created_at\":\"2023-11-15 - 09:54:22 UTC\",\"updated_at\":\"2023-11-15 09:54:23 UTC\",\"id\":5,\"name\":\"Test + {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\":\"Test_Organization\",\"created_at\":\"2024-07-25 + 07:24:10 UTC\",\"updated_at\":\"2024-07-25 07:24:12 UTC\",\"id\":10,\"name\":\"Test Organization\",\"title\":\"Test Organization\",\"description\":\"A test organization\"}]\n}\n" headers: Cache-Control: @@ -79,7 +79,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '388' + - '389' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -93,7 +93,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.1 + - 3.12.0-develop Keep-Alive: - timeout=15, max=99 Strict-Transport-Security: @@ -123,14 +123,14 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/organizations/5/content_views?search=name%3D%22Test+Content+View%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/organizations/10/content_views?search=name%3D%22Test+Content+View%22&per_page=4294967296 response: body: string: '{"total":2,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Content View\"","sort":{"by":"name","order":"asc"},"results":[{"composite":false,"component_ids":[],"default":false,"version_count":0,"latest_version":null,"latest_version_id":null,"auto_publish":false,"solve_dependencies":false,"import_only":false,"generated_for":"none","related_cv_count":0,"related_composite_cvs":[],"needs_publish":true,"filtered":false,"repository_ids":[18],"id":10,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":5,"organization":{"name":"Test - Organization","label":"Test_Organization","id":5},"created_at":"2023-11-15 - 09:55:08 UTC","updated_at":"2023-11-15 09:55:08 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":18,"name":"Test + Content View\"","sort":{"by":"name","order":"asc"},"results":[{"composite":false,"component_ids":[],"duplicate_repositories_to_publish":[],"default":false,"version_count":0,"latest_version":null,"latest_version_id":null,"auto_publish":false,"solve_dependencies":false,"import_only":false,"generated_for":"none","related_cv_count":0,"related_composite_cvs":[],"filtered":false,"repository_ids":[20],"id":17,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":10,"organization":{"name":"Test + Organization","label":"Test_Organization","id":10},"created_at":"2024-07-25 + 07:24:40 UTC","updated_at":"2024-07-25 07:24:40 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":20,"name":"Test Repository","label":"Test_Repository","content_type":"yum"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]}]} ' @@ -140,7 +140,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '1050' + - '1070' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -152,9 +152,9 @@ interactions: Foreman_current_location: - ; ANY Foreman_current_organization: - - 5; Test Organization + - 10; Test Organization Foreman_version: - - 3.7.1 + - 3.12.0-develop Keep-Alive: - timeout=15, max=98 Strict-Transport-Security: @@ -184,7 +184,7 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/content_views/10/filters?search=name%3D%22Test+Errata+id+Content+View+Filter%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/content_views/17/filters?search=name%3D%22Test+Errata+id+Content+View+Filter%22&per_page=4294967296 response: body: string: '{"total":0,"subtotal":0,"selectable":0,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test @@ -211,7 +211,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.1 + - 3.12.0-develop Keep-Alive: - timeout=15, max=97 Strict-Transport-Security: @@ -246,15 +246,15 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: POST - uri: https://foreman.example.org/katello/api/content_views/10/filters + uri: https://foreman.example.org/katello/api/content_views/17/filters response: body: - string: ' {"inclusion":false,"id":9,"name":"Test Errata id Content View Filter","description":null,"created_at":"2023-11-15 - 09:55:16 UTC","updated_at":"2023-11-15 09:55:16 UTC","content_view":{"composite":false,"component_ids":[],"default":false,"version_count":0,"latest_version":null,"latest_version_id":null,"auto_publish":false,"solve_dependencies":false,"import_only":false,"generated_for":"none","related_cv_count":0,"related_composite_cvs":[],"needs_publish":true,"filtered":true,"repository_ids":[18],"id":10,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":5,"organization":{"name":"Test - Organization","label":"Test_Organization","id":5},"created_at":"2023-11-15 - 09:55:08 UTC","updated_at":"2023-11-15 09:55:08 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":18,"name":"Test - Repository","label":"Test_Repository","content_type":"yum","product":{"id":10,"name":"Test + string: ' {"inclusion":false,"id":79,"name":"Test Errata id Content View Filter","description":null,"created_at":"2024-07-25 + 07:24:48 UTC","updated_at":"2024-07-25 07:24:48 UTC","content_view":{"composite":false,"component_ids":[],"duplicate_repositories_to_publish":[],"default":false,"version_count":0,"latest_version":null,"latest_version_id":null,"auto_publish":false,"solve_dependencies":false,"import_only":false,"generated_for":"none","related_cv_count":0,"related_composite_cvs":[],"filtered":true,"repository_ids":[20],"id":17,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":10,"organization":{"name":"Test + Organization","label":"Test_Organization","id":10},"created_at":"2024-07-25 + 07:24:40 UTC","updated_at":"2024-07-25 07:24:40 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":20,"name":"Test + Repository","label":"Test_Repository","content_type":"yum","product":{"id":8,"name":"Test Product"},"content_counts":{"docker_manifest":0,"docker_tag":0,"rpm":32,"package":32,"package_group":2,"erratum":4,"module_stream":0}}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]},"repositories":[],"type":"erratum","rules":[]} ' @@ -264,7 +264,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '1275' + - '1295' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -278,7 +278,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.1 + - 3.12.0-develop Keep-Alive: - timeout=15, max=96 Strict-Transport-Security: diff --git a/tests/test_playbooks/fixtures/content_view_filter-9.yml b/tests/test_playbooks/fixtures/content_view_filter-9.yml index f8817253..34b555f3 100644 --- a/tests/test_playbooks/fixtures/content_view_filter-9.yml +++ b/tests/test_playbooks/fixtures/content_view_filter-9.yml @@ -14,14 +14,14 @@ interactions: uri: https://foreman.example.org/api/status response: body: - string: '{"result":"ok","status":200,"version":"3.7.1","api_version":2}' + string: '{"result":"ok","status":200,"version":"3.12.0-develop","api_version":2}' headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive Content-Length: - - '62' + - '71' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -35,7 +35,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.1 + - 3.12.0-develop Keep-Alive: - timeout=15, max=100 Strict-Transport-Security: @@ -70,8 +70,8 @@ interactions: body: string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": 4294967296,\n \"search\": \"name=\\\"Test Organization\\\"\",\n \"sort\": - {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\":\"Test_Organization\",\"created_at\":\"2023-11-15 - 09:54:22 UTC\",\"updated_at\":\"2023-11-15 09:54:23 UTC\",\"id\":5,\"name\":\"Test + {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\":\"Test_Organization\",\"created_at\":\"2024-07-25 + 07:24:10 UTC\",\"updated_at\":\"2024-07-25 07:24:12 UTC\",\"id\":10,\"name\":\"Test Organization\",\"title\":\"Test Organization\",\"description\":\"A test organization\"}]\n}\n" headers: Cache-Control: @@ -79,7 +79,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '388' + - '389' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -93,7 +93,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.1 + - 3.12.0-develop Keep-Alive: - timeout=15, max=99 Strict-Transport-Security: @@ -123,14 +123,14 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/organizations/5/content_views?search=name%3D%22Test+Content+View%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/organizations/10/content_views?search=name%3D%22Test+Content+View%22&per_page=4294967296 response: body: string: '{"total":2,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Content View\"","sort":{"by":"name","order":"asc"},"results":[{"composite":false,"component_ids":[],"default":false,"version_count":0,"latest_version":null,"latest_version_id":null,"auto_publish":false,"solve_dependencies":false,"import_only":false,"generated_for":"none","related_cv_count":0,"related_composite_cvs":[],"needs_publish":true,"filtered":true,"repository_ids":[18],"id":10,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":5,"organization":{"name":"Test - Organization","label":"Test_Organization","id":5},"created_at":"2023-11-15 - 09:55:08 UTC","updated_at":"2023-11-15 09:55:08 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":18,"name":"Test + Content View\"","sort":{"by":"name","order":"asc"},"results":[{"composite":false,"component_ids":[],"duplicate_repositories_to_publish":[],"default":false,"version_count":0,"latest_version":null,"latest_version_id":null,"auto_publish":false,"solve_dependencies":false,"import_only":false,"generated_for":"none","related_cv_count":0,"related_composite_cvs":[],"filtered":true,"repository_ids":[20],"id":17,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":10,"organization":{"name":"Test + Organization","label":"Test_Organization","id":10},"created_at":"2024-07-25 + 07:24:40 UTC","updated_at":"2024-07-25 07:24:40 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":20,"name":"Test Repository","label":"Test_Repository","content_type":"yum"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]}]} ' @@ -140,7 +140,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '1049' + - '1069' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -152,9 +152,9 @@ interactions: Foreman_current_location: - ; ANY Foreman_current_organization: - - 5; Test Organization + - 10; Test Organization Foreman_version: - - 3.7.1 + - 3.12.0-develop Keep-Alive: - timeout=15, max=98 Strict-Transport-Security: @@ -184,16 +184,16 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/content_views/10/filters?search=name%3D%22Test+Errata+id+Content+View+Filter%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/content_views/17/filters?search=name%3D%22Test+Errata+id+Content+View+Filter%22&per_page=4294967296 response: body: string: '{"total":1,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Errata id Content View Filter\"","sort":{"by":"name","order":"asc"},"results":[{"inclusion":false,"id":9,"name":"Test - Errata id Content View Filter","description":null,"created_at":"2023-11-15 - 09:55:16 UTC","updated_at":"2023-11-15 09:55:16 UTC","content_view":{"composite":false,"component_ids":[],"default":false,"version_count":0,"latest_version":null,"latest_version_id":null,"auto_publish":false,"solve_dependencies":false,"import_only":false,"generated_for":"none","related_cv_count":0,"related_composite_cvs":[],"needs_publish":true,"filtered":true,"repository_ids":[18],"id":10,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":5,"organization":{"name":"Test - Organization","label":"Test_Organization","id":5},"created_at":"2023-11-15 - 09:55:08 UTC","updated_at":"2023-11-15 09:55:08 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":18,"name":"Test + Errata id Content View Filter\"","sort":{"by":"name","order":"asc"},"results":[{"inclusion":false,"id":79,"name":"Test + Errata id Content View Filter","description":null,"created_at":"2024-07-25 + 07:24:48 UTC","updated_at":"2024-07-25 07:24:48 UTC","content_view":{"composite":false,"component_ids":[],"duplicate_repositories_to_publish":[],"default":false,"version_count":0,"latest_version":null,"latest_version_id":null,"auto_publish":false,"solve_dependencies":false,"import_only":false,"generated_for":"none","related_cv_count":0,"related_composite_cvs":[],"filtered":true,"repository_ids":[20],"id":17,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":10,"organization":{"name":"Test + Organization","label":"Test_Organization","id":10},"created_at":"2024-07-25 + 07:24:40 UTC","updated_at":"2024-07-25 07:24:40 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":20,"name":"Test Repository","label":"Test_Repository","content_type":"yum"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]},"repositories":[],"type":"erratum","rules":[]}]} ' @@ -203,7 +203,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '1295' + - '1316' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -217,7 +217,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.1 + - 3.12.0-develop Keep-Alive: - timeout=15, max=97 Strict-Transport-Security: @@ -247,15 +247,15 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/content_views/10/filters/9 + uri: https://foreman.example.org/katello/api/content_views/17/filters/79 response: body: - string: ' {"inclusion":false,"id":9,"name":"Test Errata id Content View Filter","description":null,"created_at":"2023-11-15 - 09:55:16 UTC","updated_at":"2023-11-15 09:55:16 UTC","content_view":{"composite":false,"component_ids":[],"default":false,"version_count":0,"latest_version":null,"latest_version_id":null,"auto_publish":false,"solve_dependencies":false,"import_only":false,"generated_for":"none","related_cv_count":0,"related_composite_cvs":[],"needs_publish":true,"filtered":true,"repository_ids":[18],"id":10,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":5,"organization":{"name":"Test - Organization","label":"Test_Organization","id":5},"created_at":"2023-11-15 - 09:55:08 UTC","updated_at":"2023-11-15 09:55:08 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":18,"name":"Test - Repository","label":"Test_Repository","content_type":"yum","product":{"id":10,"name":"Test + string: ' {"inclusion":false,"id":79,"name":"Test Errata id Content View Filter","description":null,"created_at":"2024-07-25 + 07:24:48 UTC","updated_at":"2024-07-25 07:24:48 UTC","content_view":{"composite":false,"component_ids":[],"duplicate_repositories_to_publish":[],"default":false,"version_count":0,"latest_version":null,"latest_version_id":null,"auto_publish":false,"solve_dependencies":false,"import_only":false,"generated_for":"none","related_cv_count":0,"related_composite_cvs":[],"filtered":true,"repository_ids":[20],"id":17,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":10,"organization":{"name":"Test + Organization","label":"Test_Organization","id":10},"created_at":"2024-07-25 + 07:24:40 UTC","updated_at":"2024-07-25 07:24:40 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":20,"name":"Test + Repository","label":"Test_Repository","content_type":"yum","product":{"id":8,"name":"Test Product"},"content_counts":{"docker_manifest":0,"docker_tag":0,"rpm":32,"package":32,"package_group":2,"erratum":4,"module_stream":0}}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]},"repositories":[],"type":"erratum","rules":[]} ' @@ -265,7 +265,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '1275' + - '1295' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -279,7 +279,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.1 + - 3.12.0-develop Keep-Alive: - timeout=15, max=96 Strict-Transport-Security: From 963d0d510e5fe645f44dcc3b8c2d321c281ecd5d Mon Sep 17 00:00:00 2001 From: Evgeni Golov Date: Thu, 25 Jul 2024 09:30:11 +0200 Subject: [PATCH 21/36] record content_view_filter_deb --- .../fixtures/content_view_filter_deb-0.yml | 430 +++++++++++++++ .../fixtures/content_view_filter_deb-1.yml | 441 +++++++++++++++ .../fixtures/content_view_filter_deb-2.yml | 515 ++++++++++++++++++ .../fixtures/content_view_filter_deb-3.yml | 435 +++++++++++++++ 4 files changed, 1821 insertions(+) create mode 100644 tests/test_playbooks/fixtures/content_view_filter_deb-0.yml create mode 100644 tests/test_playbooks/fixtures/content_view_filter_deb-1.yml create mode 100644 tests/test_playbooks/fixtures/content_view_filter_deb-2.yml create mode 100644 tests/test_playbooks/fixtures/content_view_filter_deb-3.yml diff --git a/tests/test_playbooks/fixtures/content_view_filter_deb-0.yml b/tests/test_playbooks/fixtures/content_view_filter_deb-0.yml new file mode 100644 index 00000000..9e1c824c --- /dev/null +++ b/tests/test_playbooks/fixtures/content_view_filter_deb-0.yml @@ -0,0 +1,430 @@ +interactions: +- request: + body: null + headers: + Accept: + - application/json;version=2 + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - apypie (https://github.com/Apipie/apypie) + method: GET + uri: https://foreman.example.org/api/status + response: + body: + string: '{"result":"ok","status":200,"version":"3.12.0-develop","api_version":2}' + headers: + Cache-Control: + - max-age=0, private, must-revalidate + Connection: + - Keep-Alive + Content-Length: + - '71' + Content-Security-Policy: + - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: + - application/json; charset=utf-8 + Foreman_api_version: + - '2' + Foreman_current_location: + - ; ANY + Foreman_current_organization: + - ; ANY + Foreman_version: + - 3.12.0-develop + Keep-Alive: + - timeout=15, max=100 + Strict-Transport-Security: + - max-age=631139040; includeSubdomains + X-Content-Type-Options: + - nosniff + X-Download-Options: + - noopen + X-Frame-Options: + - sameorigin + X-Permitted-Cross-Domain-Policies: + - none + X-XSS-Protection: + - 1; mode=block + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json;version=2 + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - apypie (https://github.com/Apipie/apypie) + method: GET + uri: https://foreman.example.org/katello/api/organizations?search=name%3D%22Test+Organization%22&per_page=4294967296 + response: + body: + string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": + 4294967296,\n \"search\": \"name=\\\"Test Organization\\\"\",\n \"sort\": + {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\":\"Test_Organization\",\"created_at\":\"2024-07-25 + 07:26:09 UTC\",\"updated_at\":\"2024-07-25 07:26:11 UTC\",\"id\":11,\"name\":\"Test + Organization\",\"title\":\"Test Organization\",\"description\":\"A test organization\"}]\n}\n" + headers: + Cache-Control: + - max-age=0, private, must-revalidate + Connection: + - Keep-Alive + Content-Length: + - '389' + Content-Security-Policy: + - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: + - application/json; charset=utf-8 + Foreman_api_version: + - '2' + Foreman_current_location: + - ; ANY + Foreman_current_organization: + - ; ANY + Foreman_version: + - 3.12.0-develop + Keep-Alive: + - timeout=15, max=99 + Strict-Transport-Security: + - max-age=631139040; includeSubdomains + X-Content-Type-Options: + - nosniff + X-Download-Options: + - noopen + X-Frame-Options: + - sameorigin + X-Permitted-Cross-Domain-Policies: + - none + X-XSS-Protection: + - 1; mode=block + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json;version=2 + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - apypie (https://github.com/Apipie/apypie) + method: GET + uri: https://foreman.example.org/katello/api/organizations/11/content_views?search=name%3D%22Test+Content+View%22&per_page=4294967296 + response: + body: + string: '{"total":2,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test + Content View\"","sort":{"by":"name","order":"asc"},"results":[{"composite":false,"component_ids":[],"duplicate_repositories_to_publish":[],"default":false,"version_count":0,"latest_version":null,"latest_version_id":null,"auto_publish":false,"solve_dependencies":false,"import_only":false,"generated_for":"none","related_cv_count":0,"related_composite_cvs":[],"filtered":false,"repository_ids":[22],"id":19,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":11,"organization":{"name":"Test + Organization","label":"Test_Organization","id":11},"created_at":"2024-07-25 + 07:26:27 UTC","updated_at":"2024-07-25 07:26:27 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":22,"name":"Test + Debian Repository","label":"Test_Debian_Repository","content_type":"deb"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]}]} + + ' + headers: + Cache-Control: + - max-age=0, private, must-revalidate + Connection: + - Keep-Alive + Content-Length: + - '1084' + Content-Security-Policy: + - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: + - application/json; charset=utf-8 + Foreman_api_version: + - '2' + Foreman_current_location: + - ; ANY + Foreman_current_organization: + - 11; Test Organization + Foreman_version: + - 3.12.0-develop + Keep-Alive: + - timeout=15, max=98 + Strict-Transport-Security: + - max-age=631139040; includeSubdomains + X-Content-Type-Options: + - nosniff + X-Download-Options: + - noopen + X-Frame-Options: + - sameorigin + X-Permitted-Cross-Domain-Policies: + - none + X-XSS-Protection: + - 1; mode=block + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json;version=2 + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - apypie (https://github.com/Apipie/apypie) + method: GET + uri: https://foreman.example.org/katello/api/organizations/11/products?search=name%3D%22Test+Product%22&per_page=4294967296 + response: + body: + string: '{"total":1,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test + Product\"","sort":{"by":"name","order":"asc"},"results":[{"id":9,"cp_id":"322281955515","name":"Test + Product","label":"Test_Product","description":"A happy little test product","provider_id":19,"sync_plan_id":null,"sync_summary":{"success":1},"gpg_key_id":null,"ssl_ca_cert_id":null,"ssl_client_cert_id":null,"ssl_client_key_id":null,"sync_state":"Syncing + Complete.","last_sync":"2024-07-25 07:29:39 UTC","last_sync_words":"less than + a minute","organization_id":11,"organization":{"name":"Test Organization","label":"Test_Organization","id":11},"sync_plan":null,"repository_count":1}]} + + ' + headers: + Cache-Control: + - max-age=0, private, must-revalidate + Connection: + - Keep-Alive + Content-Length: + - '693' + Content-Security-Policy: + - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: + - application/json; charset=utf-8 + Foreman_api_version: + - '2' + Foreman_current_location: + - ; ANY + Foreman_current_organization: + - 11; Test Organization + Foreman_version: + - 3.12.0-develop + Keep-Alive: + - timeout=15, max=97 + Strict-Transport-Security: + - max-age=631139040; includeSubdomains + X-Content-Type-Options: + - nosniff + X-Download-Options: + - noopen + X-Frame-Options: + - sameorigin + X-Permitted-Cross-Domain-Policies: + - none + X-XSS-Protection: + - 1; mode=block + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json;version=2 + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - apypie (https://github.com/Apipie/apypie) + method: GET + uri: https://foreman.example.org/katello/api/products/9/repositories?search=name%3D%22Test+Debian+Repository%22&per_page=4294967296 + response: + body: + string: '{"total":1,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test + Debian Repository\"","sort":{"by":"name","order":"asc"},"results":[{"backend_identifier":"fb721752-18f2-4a0f-affc-964a8f34e999","relative_path":"Test_Organization/Library/custom/Test_Product/Test_Debian_Repository","container_repository_name":"test_organization-test_product-test_debian_repository","full_path":"https://centos8-stream-katello-nightly.tanso.example.com/pulp/content/Test_Organization/Library/custom/Test_Product/Test_Debian_Repository/","library_instance_id":null,"version_href":"/pulp/api/v3/repositories/deb/apt/0190e8c8-8431-7cd7-bb85-df33dcafcb51/versions/1/","remote_href":"/pulp/api/v3/remotes/deb/apt/0190e8c8-836f-7d29-93f2-a0de99de4f56/","publication_href":"/pulp/api/v3/publications/deb/apt/0190e8c8-9fed-7071-9bb3-8f81e2f73dfd/","content_counts":{"deb":289},"mirroring_policy":"mirror_content_only","id":22,"name":"Test + Debian Repository","label":"Test_Debian_Repository","description":null,"content_view_versions":[],"filters":[],"last_sync":{"id":"dfd3a9ea-7e5f-41ed-8d0f-87e09774c234","username":"admin","started_at":"2024-07-25 + 07:29:39 UTC","ended_at":"2024-07-25 07:29:41 UTC","state":"stopped","result":"success","progress":1.0},"content_view":{"id":18,"name":"Default + Organization View"},"content_view_version":{"id":10,"name":"Default Organization + View 1.0","content_view_id":18},"kt_environment":{"id":10,"name":"Library"},"content_type":"deb","url":"https://ftp.debian.org/debian","arch":"noarch","os_versions":null,"content_id":"1721892373658","generic_remote_options":null,"major":null,"minor":null,"product":{"id":9,"cp_id":"322281955515","name":"Test + Product","orphaned":false,"redhat":false,"sync_plan":null},"content_label":"Test_Organization_Test_Product_Test_Debian_Repository","last_sync_words":"less + than a minute"}],"org_repository_count":1} + + ' + headers: + Cache-Control: + - max-age=0, private, must-revalidate + Connection: + - Keep-Alive + Content-Length: + - '1898' + Content-Security-Policy: + - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: + - application/json; charset=utf-8 + Foreman_api_version: + - '2' + Foreman_current_location: + - ; ANY + Foreman_current_organization: + - ; ANY + Foreman_version: + - 3.12.0-develop + Keep-Alive: + - timeout=15, max=96 + Strict-Transport-Security: + - max-age=631139040; includeSubdomains + X-Content-Type-Options: + - nosniff + X-Download-Options: + - noopen + X-Frame-Options: + - sameorigin + X-Permitted-Cross-Domain-Policies: + - none + X-XSS-Protection: + - 1; mode=block + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json;version=2 + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - apypie (https://github.com/Apipie/apypie) + method: GET + uri: https://foreman.example.org/katello/api/content_views/19/filters?search=name%3D%22Test+Deb+Content+View+Filter%22&per_page=4294967296 + response: + body: + string: '{"total":0,"subtotal":0,"selectable":0,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test + Deb Content View Filter\"","sort":{"by":"name","order":"asc"},"results":[]} + + ' + headers: + Cache-Control: + - max-age=0, private, must-revalidate + Connection: + - Keep-Alive + Content-Length: + - '183' + Content-Security-Policy: + - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: + - application/json; charset=utf-8 + Foreman_api_version: + - '2' + Foreman_current_location: + - ; ANY + Foreman_current_organization: + - ; ANY + Foreman_version: + - 3.12.0-develop + Keep-Alive: + - timeout=15, max=95 + Strict-Transport-Security: + - max-age=631139040; includeSubdomains + X-Content-Type-Options: + - nosniff + X-Download-Options: + - noopen + X-Frame-Options: + - sameorigin + X-Permitted-Cross-Domain-Policies: + - none + X-XSS-Protection: + - 1; mode=block + status: + code: 200 + message: OK +- request: + body: '{"name": "Test Deb Content View Filter", "type": "deb", "inclusion": false, + "repository_ids": [22]}' + headers: + Accept: + - application/json;version=2 + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '99' + Content-Type: + - application/json + User-Agent: + - apypie (https://github.com/Apipie/apypie) + method: POST + uri: https://foreman.example.org/katello/api/content_views/19/filters + response: + body: + string: ' {"inclusion":false,"id":84,"name":"Test Deb Content View Filter","description":null,"created_at":"2024-07-25 + 07:29:45 UTC","updated_at":"2024-07-25 07:29:45 UTC","content_view":{"composite":false,"component_ids":[],"duplicate_repositories_to_publish":[],"default":false,"version_count":0,"latest_version":null,"latest_version_id":null,"auto_publish":false,"solve_dependencies":false,"import_only":false,"generated_for":"none","related_cv_count":0,"related_composite_cvs":[],"filtered":true,"repository_ids":[22],"id":19,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":11,"organization":{"name":"Test + Organization","label":"Test_Organization","id":11},"created_at":"2024-07-25 + 07:26:27 UTC","updated_at":"2024-07-25 07:26:27 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":22,"name":"Test + Debian Repository","label":"Test_Debian_Repository","content_type":"deb","product":{"id":9,"name":"Test + Product"},"content_counts":{"docker_manifest":0,"docker_tag":0,"rpm":0,"package":0,"package_group":0,"erratum":0,"module_stream":0}}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]},"repositories":[{"backend_identifier":"fb721752-18f2-4a0f-affc-964a8f34e999","relative_path":"Test_Organization/Library/custom/Test_Product/Test_Debian_Repository","container_repository_name":"test_organization-test_product-test_debian_repository","full_path":"https://centos8-stream-katello-nightly.tanso.example.com/pulp/content/Test_Organization/Library/custom/Test_Product/Test_Debian_Repository/","library_instance_id":null,"version_href":"/pulp/api/v3/repositories/deb/apt/0190e8c8-8431-7cd7-bb85-df33dcafcb51/versions/1/","remote_href":"/pulp/api/v3/remotes/deb/apt/0190e8c8-836f-7d29-93f2-a0de99de4f56/","publication_href":"/pulp/api/v3/publications/deb/apt/0190e8c8-9fed-7071-9bb3-8f81e2f73dfd/","content_counts":{"deb":289},"mirroring_policy":"mirror_content_only","id":22,"name":"Test + Debian Repository","label":"Test_Debian_Repository","description":null,"content_view_versions":[],"filters":[{"content_view_filter_id":84,"content_view_filter_name":"Test + Deb Content View Filter","content_view_id":19,"content_view_name":"Test Content + View","last_affected_repo":true}],"last_sync":{"id":"dfd3a9ea-7e5f-41ed-8d0f-87e09774c234","username":"admin","started_at":"2024-07-25 + 07:29:39 UTC","ended_at":"2024-07-25 07:29:41 UTC","state":"stopped","result":"success","progress":1.0},"content_view":{"id":18,"name":"Default + Organization View"},"content_view_version":{"id":10,"name":"Default Organization + View 1.0","content_view_id":18},"kt_environment":{"id":10,"name":"Library"},"content_type":"deb","url":"https://ftp.debian.org/debian","arch":"noarch","os_versions":null,"content_id":"1721892373658","generic_remote_options":null,"major":null,"minor":null,"product":{"id":9,"cp_id":"322281955515","name":"Test + Product","orphaned":false,"redhat":false,"sync_plan":null},"content_label":"Test_Organization_Test_Product_Test_Debian_Repository","last_sync_words":"less + than a minute"}],"type":"deb","rules":[]} + + ' + headers: + Cache-Control: + - max-age=0, private, must-revalidate + Connection: + - Keep-Alive + Content-Length: + - '3167' + Content-Security-Policy: + - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: + - application/json; charset=utf-8 + Foreman_api_version: + - '2' + Foreman_current_location: + - ; ANY + Foreman_current_organization: + - ; ANY + Foreman_version: + - 3.12.0-develop + Keep-Alive: + - timeout=15, max=94 + Strict-Transport-Security: + - max-age=631139040; includeSubdomains + X-Content-Type-Options: + - nosniff + X-Download-Options: + - noopen + X-Frame-Options: + - sameorigin + X-Permitted-Cross-Domain-Policies: + - none + X-XSS-Protection: + - 1; mode=block + status: + code: 201 + message: Created +version: 1 diff --git a/tests/test_playbooks/fixtures/content_view_filter_deb-1.yml b/tests/test_playbooks/fixtures/content_view_filter_deb-1.yml new file mode 100644 index 00000000..a57bfc24 --- /dev/null +++ b/tests/test_playbooks/fixtures/content_view_filter_deb-1.yml @@ -0,0 +1,441 @@ +interactions: +- request: + body: null + headers: + Accept: + - application/json;version=2 + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - apypie (https://github.com/Apipie/apypie) + method: GET + uri: https://foreman.example.org/api/status + response: + body: + string: '{"result":"ok","status":200,"version":"3.12.0-develop","api_version":2}' + headers: + Cache-Control: + - max-age=0, private, must-revalidate + Connection: + - Keep-Alive + Content-Length: + - '71' + Content-Security-Policy: + - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: + - application/json; charset=utf-8 + Foreman_api_version: + - '2' + Foreman_current_location: + - ; ANY + Foreman_current_organization: + - ; ANY + Foreman_version: + - 3.12.0-develop + Keep-Alive: + - timeout=15, max=100 + Strict-Transport-Security: + - max-age=631139040; includeSubdomains + X-Content-Type-Options: + - nosniff + X-Download-Options: + - noopen + X-Frame-Options: + - sameorigin + X-Permitted-Cross-Domain-Policies: + - none + X-XSS-Protection: + - 1; mode=block + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json;version=2 + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - apypie (https://github.com/Apipie/apypie) + method: GET + uri: https://foreman.example.org/katello/api/organizations?search=name%3D%22Test+Organization%22&per_page=4294967296 + response: + body: + string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": + 4294967296,\n \"search\": \"name=\\\"Test Organization\\\"\",\n \"sort\": + {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\":\"Test_Organization\",\"created_at\":\"2024-07-25 + 07:26:09 UTC\",\"updated_at\":\"2024-07-25 07:26:11 UTC\",\"id\":11,\"name\":\"Test + Organization\",\"title\":\"Test Organization\",\"description\":\"A test organization\"}]\n}\n" + headers: + Cache-Control: + - max-age=0, private, must-revalidate + Connection: + - Keep-Alive + Content-Length: + - '389' + Content-Security-Policy: + - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: + - application/json; charset=utf-8 + Foreman_api_version: + - '2' + Foreman_current_location: + - ; ANY + Foreman_current_organization: + - ; ANY + Foreman_version: + - 3.12.0-develop + Keep-Alive: + - timeout=15, max=99 + Strict-Transport-Security: + - max-age=631139040; includeSubdomains + X-Content-Type-Options: + - nosniff + X-Download-Options: + - noopen + X-Frame-Options: + - sameorigin + X-Permitted-Cross-Domain-Policies: + - none + X-XSS-Protection: + - 1; mode=block + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json;version=2 + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - apypie (https://github.com/Apipie/apypie) + method: GET + uri: https://foreman.example.org/katello/api/organizations/11/content_views?search=name%3D%22Test+Content+View%22&per_page=4294967296 + response: + body: + string: '{"total":2,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test + Content View\"","sort":{"by":"name","order":"asc"},"results":[{"composite":false,"component_ids":[],"duplicate_repositories_to_publish":[],"default":false,"version_count":0,"latest_version":null,"latest_version_id":null,"auto_publish":false,"solve_dependencies":false,"import_only":false,"generated_for":"none","related_cv_count":0,"related_composite_cvs":[],"filtered":true,"repository_ids":[22],"id":19,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":11,"organization":{"name":"Test + Organization","label":"Test_Organization","id":11},"created_at":"2024-07-25 + 07:26:27 UTC","updated_at":"2024-07-25 07:26:27 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":22,"name":"Test + Debian Repository","label":"Test_Debian_Repository","content_type":"deb"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]}]} + + ' + headers: + Cache-Control: + - max-age=0, private, must-revalidate + Connection: + - Keep-Alive + Content-Length: + - '1083' + Content-Security-Policy: + - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: + - application/json; charset=utf-8 + Foreman_api_version: + - '2' + Foreman_current_location: + - ; ANY + Foreman_current_organization: + - 11; Test Organization + Foreman_version: + - 3.12.0-develop + Keep-Alive: + - timeout=15, max=98 + Strict-Transport-Security: + - max-age=631139040; includeSubdomains + X-Content-Type-Options: + - nosniff + X-Download-Options: + - noopen + X-Frame-Options: + - sameorigin + X-Permitted-Cross-Domain-Policies: + - none + X-XSS-Protection: + - 1; mode=block + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json;version=2 + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - apypie (https://github.com/Apipie/apypie) + method: GET + uri: https://foreman.example.org/katello/api/organizations/11/products?search=name%3D%22Test+Product%22&per_page=4294967296 + response: + body: + string: '{"total":1,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test + Product\"","sort":{"by":"name","order":"asc"},"results":[{"id":9,"cp_id":"322281955515","name":"Test + Product","label":"Test_Product","description":"A happy little test product","provider_id":19,"sync_plan_id":null,"sync_summary":{"success":1},"gpg_key_id":null,"ssl_ca_cert_id":null,"ssl_client_cert_id":null,"ssl_client_key_id":null,"sync_state":"Syncing + Complete.","last_sync":"2024-07-25 07:29:39 UTC","last_sync_words":"less than + a minute","organization_id":11,"organization":{"name":"Test Organization","label":"Test_Organization","id":11},"sync_plan":null,"repository_count":1}]} + + ' + headers: + Cache-Control: + - max-age=0, private, must-revalidate + Connection: + - Keep-Alive + Content-Length: + - '693' + Content-Security-Policy: + - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: + - application/json; charset=utf-8 + Foreman_api_version: + - '2' + Foreman_current_location: + - ; ANY + Foreman_current_organization: + - 11; Test Organization + Foreman_version: + - 3.12.0-develop + Keep-Alive: + - timeout=15, max=97 + Strict-Transport-Security: + - max-age=631139040; includeSubdomains + X-Content-Type-Options: + - nosniff + X-Download-Options: + - noopen + X-Frame-Options: + - sameorigin + X-Permitted-Cross-Domain-Policies: + - none + X-XSS-Protection: + - 1; mode=block + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json;version=2 + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - apypie (https://github.com/Apipie/apypie) + method: GET + uri: https://foreman.example.org/katello/api/products/9/repositories?search=name%3D%22Test+Debian+Repository%22&per_page=4294967296 + response: + body: + string: '{"total":1,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test + Debian Repository\"","sort":{"by":"name","order":"asc"},"results":[{"backend_identifier":"fb721752-18f2-4a0f-affc-964a8f34e999","relative_path":"Test_Organization/Library/custom/Test_Product/Test_Debian_Repository","container_repository_name":"test_organization-test_product-test_debian_repository","full_path":"https://centos8-stream-katello-nightly.tanso.example.com/pulp/content/Test_Organization/Library/custom/Test_Product/Test_Debian_Repository/","library_instance_id":null,"version_href":"/pulp/api/v3/repositories/deb/apt/0190e8c8-8431-7cd7-bb85-df33dcafcb51/versions/1/","remote_href":"/pulp/api/v3/remotes/deb/apt/0190e8c8-836f-7d29-93f2-a0de99de4f56/","publication_href":"/pulp/api/v3/publications/deb/apt/0190e8c8-9fed-7071-9bb3-8f81e2f73dfd/","content_counts":{"deb":289},"mirroring_policy":"mirror_content_only","id":22,"name":"Test + Debian Repository","label":"Test_Debian_Repository","description":null,"content_view_versions":[],"filters":[{"content_view_filter_id":84,"content_view_filter_name":"Test + Deb Content View Filter","content_view_id":19,"content_view_name":"Test Content + View","last_affected_repo":true}],"last_sync":{"id":"dfd3a9ea-7e5f-41ed-8d0f-87e09774c234","username":"admin","started_at":"2024-07-25 + 07:29:39 UTC","ended_at":"2024-07-25 07:29:41 UTC","state":"stopped","result":"success","progress":1.0},"content_view":{"id":18,"name":"Default + Organization View"},"content_view_version":{"id":10,"name":"Default Organization + View 1.0","content_view_id":18},"kt_environment":{"id":10,"name":"Library"},"content_type":"deb","url":"https://ftp.debian.org/debian","arch":"noarch","os_versions":null,"content_id":"1721892373658","generic_remote_options":null,"major":null,"minor":null,"product":{"id":9,"cp_id":"322281955515","name":"Test + Product","orphaned":false,"redhat":false,"sync_plan":null},"content_label":"Test_Organization_Test_Product_Test_Debian_Repository","last_sync_words":"less + than a minute"}],"org_repository_count":1} + + ' + headers: + Cache-Control: + - max-age=0, private, must-revalidate + Connection: + - Keep-Alive + Content-Length: + - '2072' + Content-Security-Policy: + - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: + - application/json; charset=utf-8 + Foreman_api_version: + - '2' + Foreman_current_location: + - ; ANY + Foreman_current_organization: + - ; ANY + Foreman_version: + - 3.12.0-develop + Keep-Alive: + - timeout=15, max=96 + Strict-Transport-Security: + - max-age=631139040; includeSubdomains + X-Content-Type-Options: + - nosniff + X-Download-Options: + - noopen + X-Frame-Options: + - sameorigin + X-Permitted-Cross-Domain-Policies: + - none + X-XSS-Protection: + - 1; mode=block + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json;version=2 + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - apypie (https://github.com/Apipie/apypie) + method: GET + uri: https://foreman.example.org/katello/api/content_views/19/filters?search=name%3D%22Test+Deb+Content+View+Filter%22&per_page=4294967296 + response: + body: + string: '{"total":1,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test + Deb Content View Filter\"","sort":{"by":"name","order":"asc"},"results":[{"inclusion":false,"id":84,"name":"Test + Deb Content View Filter","description":null,"created_at":"2024-07-25 07:29:45 + UTC","updated_at":"2024-07-25 07:29:45 UTC","content_view":{"composite":false,"component_ids":[],"duplicate_repositories_to_publish":[],"default":false,"version_count":0,"latest_version":null,"latest_version_id":null,"auto_publish":false,"solve_dependencies":false,"import_only":false,"generated_for":"none","related_cv_count":0,"related_composite_cvs":[],"filtered":true,"repository_ids":[22],"id":19,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":11,"organization":{"name":"Test + Organization","label":"Test_Organization","id":11},"created_at":"2024-07-25 + 07:26:27 UTC","updated_at":"2024-07-25 07:26:27 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":22,"name":"Test + Debian Repository","label":"Test_Debian_Repository","content_type":"deb"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]},"repositories":[{"backend_identifier":"fb721752-18f2-4a0f-affc-964a8f34e999","relative_path":"Test_Organization/Library/custom/Test_Product/Test_Debian_Repository","container_repository_name":"test_organization-test_product-test_debian_repository","full_path":"https://centos8-stream-katello-nightly.tanso.example.com/pulp/content/Test_Organization/Library/custom/Test_Product/Test_Debian_Repository/","library_instance_id":null,"version_href":"/pulp/api/v3/repositories/deb/apt/0190e8c8-8431-7cd7-bb85-df33dcafcb51/versions/1/","remote_href":"/pulp/api/v3/remotes/deb/apt/0190e8c8-836f-7d29-93f2-a0de99de4f56/","publication_href":"/pulp/api/v3/publications/deb/apt/0190e8c8-9fed-7071-9bb3-8f81e2f73dfd/","content_counts":{"deb":289},"mirroring_policy":"mirror_content_only","id":22,"name":"Test + Debian Repository","label":"Test_Debian_Repository","description":null,"content_view_versions":[],"filters":[{"content_view_filter_id":84,"content_view_filter_name":"Test + Deb Content View Filter","content_view_id":19,"content_view_name":"Test Content + View","last_affected_repo":true}],"last_sync":{"id":"dfd3a9ea-7e5f-41ed-8d0f-87e09774c234","username":"admin","started_at":"2024-07-25 + 07:29:39 UTC","ended_at":"2024-07-25 07:29:41 UTC","state":"stopped","result":"success","progress":1.0},"content_view":{"id":18,"name":"Default + Organization View"},"content_view_version":{"id":10,"name":"Default Organization + View 1.0","content_view_id":18},"kt_environment":{"id":10,"name":"Library"},"content_type":"deb","url":"https://ftp.debian.org/debian","arch":"noarch","os_versions":null,"content_id":"1721892373658","generic_remote_options":null,"major":null,"minor":null,"product":{"id":9,"cp_id":"322281955515","name":"Test + Product","orphaned":false,"redhat":false,"sync_plan":null},"content_label":"Test_Organization_Test_Product_Test_Debian_Repository","last_sync_words":"less + than a minute"}],"type":"deb","rules":[]}]} + + ' + headers: + Cache-Control: + - max-age=0, private, must-revalidate + Connection: + - Keep-Alive + Content-Length: + - '3184' + Content-Security-Policy: + - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: + - application/json; charset=utf-8 + Foreman_api_version: + - '2' + Foreman_current_location: + - ; ANY + Foreman_current_organization: + - ; ANY + Foreman_version: + - 3.12.0-develop + Keep-Alive: + - timeout=15, max=95 + Strict-Transport-Security: + - max-age=631139040; includeSubdomains + X-Content-Type-Options: + - nosniff + X-Download-Options: + - noopen + X-Frame-Options: + - sameorigin + X-Permitted-Cross-Domain-Policies: + - none + X-XSS-Protection: + - 1; mode=block + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json;version=2 + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - apypie (https://github.com/Apipie/apypie) + method: GET + uri: https://foreman.example.org/katello/api/content_views/19/filters/84 + response: + body: + string: ' {"inclusion":false,"id":84,"name":"Test Deb Content View Filter","description":null,"created_at":"2024-07-25 + 07:29:45 UTC","updated_at":"2024-07-25 07:29:45 UTC","content_view":{"composite":false,"component_ids":[],"duplicate_repositories_to_publish":[],"default":false,"version_count":0,"latest_version":null,"latest_version_id":null,"auto_publish":false,"solve_dependencies":false,"import_only":false,"generated_for":"none","related_cv_count":0,"related_composite_cvs":[],"filtered":true,"repository_ids":[22],"id":19,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":11,"organization":{"name":"Test + Organization","label":"Test_Organization","id":11},"created_at":"2024-07-25 + 07:26:27 UTC","updated_at":"2024-07-25 07:26:27 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":22,"name":"Test + Debian Repository","label":"Test_Debian_Repository","content_type":"deb","product":{"id":9,"name":"Test + Product"},"content_counts":{"docker_manifest":0,"docker_tag":0,"rpm":0,"package":0,"package_group":0,"erratum":0,"module_stream":0}}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]},"repositories":[{"backend_identifier":"fb721752-18f2-4a0f-affc-964a8f34e999","relative_path":"Test_Organization/Library/custom/Test_Product/Test_Debian_Repository","container_repository_name":"test_organization-test_product-test_debian_repository","full_path":"https://centos8-stream-katello-nightly.tanso.example.com/pulp/content/Test_Organization/Library/custom/Test_Product/Test_Debian_Repository/","library_instance_id":null,"version_href":"/pulp/api/v3/repositories/deb/apt/0190e8c8-8431-7cd7-bb85-df33dcafcb51/versions/1/","remote_href":"/pulp/api/v3/remotes/deb/apt/0190e8c8-836f-7d29-93f2-a0de99de4f56/","publication_href":"/pulp/api/v3/publications/deb/apt/0190e8c8-9fed-7071-9bb3-8f81e2f73dfd/","content_counts":{"deb":289},"mirroring_policy":"mirror_content_only","id":22,"name":"Test + Debian Repository","label":"Test_Debian_Repository","description":null,"content_view_versions":[],"filters":[{"content_view_filter_id":84,"content_view_filter_name":"Test + Deb Content View Filter","content_view_id":19,"content_view_name":"Test Content + View","last_affected_repo":true}],"last_sync":{"id":"dfd3a9ea-7e5f-41ed-8d0f-87e09774c234","username":"admin","started_at":"2024-07-25 + 07:29:39 UTC","ended_at":"2024-07-25 07:29:41 UTC","state":"stopped","result":"success","progress":1.0},"content_view":{"id":18,"name":"Default + Organization View"},"content_view_version":{"id":10,"name":"Default Organization + View 1.0","content_view_id":18},"kt_environment":{"id":10,"name":"Library"},"content_type":"deb","url":"https://ftp.debian.org/debian","arch":"noarch","os_versions":null,"content_id":"1721892373658","generic_remote_options":null,"major":null,"minor":null,"product":{"id":9,"cp_id":"322281955515","name":"Test + Product","orphaned":false,"redhat":false,"sync_plan":null},"content_label":"Test_Organization_Test_Product_Test_Debian_Repository","last_sync_words":"less + than a minute"}],"type":"deb","rules":[]} + + ' + headers: + Cache-Control: + - max-age=0, private, must-revalidate + Connection: + - Keep-Alive + Content-Length: + - '3167' + Content-Security-Policy: + - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: + - application/json; charset=utf-8 + Foreman_api_version: + - '2' + Foreman_current_location: + - ; ANY + Foreman_current_organization: + - ; ANY + Foreman_version: + - 3.12.0-develop + Keep-Alive: + - timeout=15, max=94 + Strict-Transport-Security: + - max-age=631139040; includeSubdomains + X-Content-Type-Options: + - nosniff + X-Download-Options: + - noopen + X-Frame-Options: + - sameorigin + X-Permitted-Cross-Domain-Policies: + - none + X-XSS-Protection: + - 1; mode=block + status: + code: 200 + message: OK +version: 1 diff --git a/tests/test_playbooks/fixtures/content_view_filter_deb-2.yml b/tests/test_playbooks/fixtures/content_view_filter_deb-2.yml new file mode 100644 index 00000000..98ba0bfb --- /dev/null +++ b/tests/test_playbooks/fixtures/content_view_filter_deb-2.yml @@ -0,0 +1,515 @@ +interactions: +- request: + body: null + headers: + Accept: + - application/json;version=2 + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - apypie (https://github.com/Apipie/apypie) + method: GET + uri: https://foreman.example.org/api/status + response: + body: + string: '{"result":"ok","status":200,"version":"3.12.0-develop","api_version":2}' + headers: + Cache-Control: + - max-age=0, private, must-revalidate + Connection: + - Keep-Alive + Content-Length: + - '71' + Content-Security-Policy: + - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: + - application/json; charset=utf-8 + Foreman_api_version: + - '2' + Foreman_current_location: + - ; ANY + Foreman_current_organization: + - ; ANY + Foreman_version: + - 3.12.0-develop + Keep-Alive: + - timeout=15, max=100 + Strict-Transport-Security: + - max-age=631139040; includeSubdomains + X-Content-Type-Options: + - nosniff + X-Download-Options: + - noopen + X-Frame-Options: + - sameorigin + X-Permitted-Cross-Domain-Policies: + - none + X-XSS-Protection: + - 1; mode=block + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json;version=2 + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - apypie (https://github.com/Apipie/apypie) + method: GET + uri: https://foreman.example.org/katello/api/organizations?search=name%3D%22Test+Organization%22&per_page=4294967296 + response: + body: + string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": + 4294967296,\n \"search\": \"name=\\\"Test Organization\\\"\",\n \"sort\": + {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\":\"Test_Organization\",\"created_at\":\"2024-07-25 + 07:26:09 UTC\",\"updated_at\":\"2024-07-25 07:26:11 UTC\",\"id\":11,\"name\":\"Test + Organization\",\"title\":\"Test Organization\",\"description\":\"A test organization\"}]\n}\n" + headers: + Cache-Control: + - max-age=0, private, must-revalidate + Connection: + - Keep-Alive + Content-Length: + - '389' + Content-Security-Policy: + - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: + - application/json; charset=utf-8 + Foreman_api_version: + - '2' + Foreman_current_location: + - ; ANY + Foreman_current_organization: + - ; ANY + Foreman_version: + - 3.12.0-develop + Keep-Alive: + - timeout=15, max=99 + Strict-Transport-Security: + - max-age=631139040; includeSubdomains + X-Content-Type-Options: + - nosniff + X-Download-Options: + - noopen + X-Frame-Options: + - sameorigin + X-Permitted-Cross-Domain-Policies: + - none + X-XSS-Protection: + - 1; mode=block + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json;version=2 + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - apypie (https://github.com/Apipie/apypie) + method: GET + uri: https://foreman.example.org/katello/api/organizations/11/content_views?search=name%3D%22Test+Content+View%22&per_page=4294967296 + response: + body: + string: '{"total":2,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test + Content View\"","sort":{"by":"name","order":"asc"},"results":[{"composite":false,"component_ids":[],"duplicate_repositories_to_publish":[],"default":false,"version_count":0,"latest_version":null,"latest_version_id":null,"auto_publish":false,"solve_dependencies":false,"import_only":false,"generated_for":"none","related_cv_count":0,"related_composite_cvs":[],"filtered":true,"repository_ids":[22],"id":19,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":11,"organization":{"name":"Test + Organization","label":"Test_Organization","id":11},"created_at":"2024-07-25 + 07:26:27 UTC","updated_at":"2024-07-25 07:26:27 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":22,"name":"Test + Debian Repository","label":"Test_Debian_Repository","content_type":"deb"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]}]} + + ' + headers: + Cache-Control: + - max-age=0, private, must-revalidate + Connection: + - Keep-Alive + Content-Length: + - '1083' + Content-Security-Policy: + - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: + - application/json; charset=utf-8 + Foreman_api_version: + - '2' + Foreman_current_location: + - ; ANY + Foreman_current_organization: + - 11; Test Organization + Foreman_version: + - 3.12.0-develop + Keep-Alive: + - timeout=15, max=98 + Strict-Transport-Security: + - max-age=631139040; includeSubdomains + X-Content-Type-Options: + - nosniff + X-Download-Options: + - noopen + X-Frame-Options: + - sameorigin + X-Permitted-Cross-Domain-Policies: + - none + X-XSS-Protection: + - 1; mode=block + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json;version=2 + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - apypie (https://github.com/Apipie/apypie) + method: GET + uri: https://foreman.example.org/katello/api/organizations/11/products?search=name%3D%22Test+Product%22&per_page=4294967296 + response: + body: + string: '{"total":1,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test + Product\"","sort":{"by":"name","order":"asc"},"results":[{"id":9,"cp_id":"322281955515","name":"Test + Product","label":"Test_Product","description":"A happy little test product","provider_id":19,"sync_plan_id":null,"sync_summary":{"success":1},"gpg_key_id":null,"ssl_ca_cert_id":null,"ssl_client_cert_id":null,"ssl_client_key_id":null,"sync_state":"Syncing + Complete.","last_sync":"2024-07-25 07:29:39 UTC","last_sync_words":"less than + a minute","organization_id":11,"organization":{"name":"Test Organization","label":"Test_Organization","id":11},"sync_plan":null,"repository_count":1}]} + + ' + headers: + Cache-Control: + - max-age=0, private, must-revalidate + Connection: + - Keep-Alive + Content-Length: + - '693' + Content-Security-Policy: + - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: + - application/json; charset=utf-8 + Foreman_api_version: + - '2' + Foreman_current_location: + - ; ANY + Foreman_current_organization: + - 11; Test Organization + Foreman_version: + - 3.12.0-develop + Keep-Alive: + - timeout=15, max=97 + Strict-Transport-Security: + - max-age=631139040; includeSubdomains + X-Content-Type-Options: + - nosniff + X-Download-Options: + - noopen + X-Frame-Options: + - sameorigin + X-Permitted-Cross-Domain-Policies: + - none + X-XSS-Protection: + - 1; mode=block + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json;version=2 + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - apypie (https://github.com/Apipie/apypie) + method: GET + uri: https://foreman.example.org/katello/api/products/9/repositories?search=name%3D%22Test+Debian+Repository%22&per_page=4294967296 + response: + body: + string: '{"total":1,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test + Debian Repository\"","sort":{"by":"name","order":"asc"},"results":[{"backend_identifier":"fb721752-18f2-4a0f-affc-964a8f34e999","relative_path":"Test_Organization/Library/custom/Test_Product/Test_Debian_Repository","container_repository_name":"test_organization-test_product-test_debian_repository","full_path":"https://centos8-stream-katello-nightly.tanso.example.com/pulp/content/Test_Organization/Library/custom/Test_Product/Test_Debian_Repository/","library_instance_id":null,"version_href":"/pulp/api/v3/repositories/deb/apt/0190e8c8-8431-7cd7-bb85-df33dcafcb51/versions/1/","remote_href":"/pulp/api/v3/remotes/deb/apt/0190e8c8-836f-7d29-93f2-a0de99de4f56/","publication_href":"/pulp/api/v3/publications/deb/apt/0190e8c8-9fed-7071-9bb3-8f81e2f73dfd/","content_counts":{"deb":289},"mirroring_policy":"mirror_content_only","id":22,"name":"Test + Debian Repository","label":"Test_Debian_Repository","description":null,"content_view_versions":[],"filters":[{"content_view_filter_id":84,"content_view_filter_name":"Test + Deb Content View Filter","content_view_id":19,"content_view_name":"Test Content + View","last_affected_repo":true}],"last_sync":{"id":"dfd3a9ea-7e5f-41ed-8d0f-87e09774c234","username":"admin","started_at":"2024-07-25 + 07:29:39 UTC","ended_at":"2024-07-25 07:29:41 UTC","state":"stopped","result":"success","progress":1.0},"content_view":{"id":18,"name":"Default + Organization View"},"content_view_version":{"id":10,"name":"Default Organization + View 1.0","content_view_id":18},"kt_environment":{"id":10,"name":"Library"},"content_type":"deb","url":"https://ftp.debian.org/debian","arch":"noarch","os_versions":null,"content_id":"1721892373658","generic_remote_options":null,"major":null,"minor":null,"product":{"id":9,"cp_id":"322281955515","name":"Test + Product","orphaned":false,"redhat":false,"sync_plan":null},"content_label":"Test_Organization_Test_Product_Test_Debian_Repository","last_sync_words":"less + than a minute"}],"org_repository_count":1} + + ' + headers: + Cache-Control: + - max-age=0, private, must-revalidate + Connection: + - Keep-Alive + Content-Length: + - '2072' + Content-Security-Policy: + - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: + - application/json; charset=utf-8 + Foreman_api_version: + - '2' + Foreman_current_location: + - ; ANY + Foreman_current_organization: + - ; ANY + Foreman_version: + - 3.12.0-develop + Keep-Alive: + - timeout=15, max=96 + Strict-Transport-Security: + - max-age=631139040; includeSubdomains + X-Content-Type-Options: + - nosniff + X-Download-Options: + - noopen + X-Frame-Options: + - sameorigin + X-Permitted-Cross-Domain-Policies: + - none + X-XSS-Protection: + - 1; mode=block + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json;version=2 + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - apypie (https://github.com/Apipie/apypie) + method: GET + uri: https://foreman.example.org/katello/api/content_views/19/filters?search=name%3D%22Test+Deb+Content+View+Filter%22&per_page=4294967296 + response: + body: + string: '{"total":1,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test + Deb Content View Filter\"","sort":{"by":"name","order":"asc"},"results":[{"inclusion":false,"id":84,"name":"Test + Deb Content View Filter","description":null,"created_at":"2024-07-25 07:29:45 + UTC","updated_at":"2024-07-25 07:29:45 UTC","content_view":{"composite":false,"component_ids":[],"duplicate_repositories_to_publish":[],"default":false,"version_count":0,"latest_version":null,"latest_version_id":null,"auto_publish":false,"solve_dependencies":false,"import_only":false,"generated_for":"none","related_cv_count":0,"related_composite_cvs":[],"filtered":true,"repository_ids":[22],"id":19,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":11,"organization":{"name":"Test + Organization","label":"Test_Organization","id":11},"created_at":"2024-07-25 + 07:26:27 UTC","updated_at":"2024-07-25 07:26:27 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":22,"name":"Test + Debian Repository","label":"Test_Debian_Repository","content_type":"deb"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]},"repositories":[{"backend_identifier":"fb721752-18f2-4a0f-affc-964a8f34e999","relative_path":"Test_Organization/Library/custom/Test_Product/Test_Debian_Repository","container_repository_name":"test_organization-test_product-test_debian_repository","full_path":"https://centos8-stream-katello-nightly.tanso.example.com/pulp/content/Test_Organization/Library/custom/Test_Product/Test_Debian_Repository/","library_instance_id":null,"version_href":"/pulp/api/v3/repositories/deb/apt/0190e8c8-8431-7cd7-bb85-df33dcafcb51/versions/1/","remote_href":"/pulp/api/v3/remotes/deb/apt/0190e8c8-836f-7d29-93f2-a0de99de4f56/","publication_href":"/pulp/api/v3/publications/deb/apt/0190e8c8-9fed-7071-9bb3-8f81e2f73dfd/","content_counts":{"deb":289},"mirroring_policy":"mirror_content_only","id":22,"name":"Test + Debian Repository","label":"Test_Debian_Repository","description":null,"content_view_versions":[],"filters":[{"content_view_filter_id":84,"content_view_filter_name":"Test + Deb Content View Filter","content_view_id":19,"content_view_name":"Test Content + View","last_affected_repo":true}],"last_sync":{"id":"dfd3a9ea-7e5f-41ed-8d0f-87e09774c234","username":"admin","started_at":"2024-07-25 + 07:29:39 UTC","ended_at":"2024-07-25 07:29:41 UTC","state":"stopped","result":"success","progress":1.0},"content_view":{"id":18,"name":"Default + Organization View"},"content_view_version":{"id":10,"name":"Default Organization + View 1.0","content_view_id":18},"kt_environment":{"id":10,"name":"Library"},"content_type":"deb","url":"https://ftp.debian.org/debian","arch":"noarch","os_versions":null,"content_id":"1721892373658","generic_remote_options":null,"major":null,"minor":null,"product":{"id":9,"cp_id":"322281955515","name":"Test + Product","orphaned":false,"redhat":false,"sync_plan":null},"content_label":"Test_Organization_Test_Product_Test_Debian_Repository","last_sync_words":"less + than a minute"}],"type":"deb","rules":[]}]} + + ' + headers: + Cache-Control: + - max-age=0, private, must-revalidate + Connection: + - Keep-Alive + Content-Length: + - '3184' + Content-Security-Policy: + - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: + - application/json; charset=utf-8 + Foreman_api_version: + - '2' + Foreman_current_location: + - ; ANY + Foreman_current_organization: + - ; ANY + Foreman_version: + - 3.12.0-develop + Keep-Alive: + - timeout=15, max=95 + Strict-Transport-Security: + - max-age=631139040; includeSubdomains + X-Content-Type-Options: + - nosniff + X-Download-Options: + - noopen + X-Frame-Options: + - sameorigin + X-Permitted-Cross-Domain-Policies: + - none + X-XSS-Protection: + - 1; mode=block + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json;version=2 + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - apypie (https://github.com/Apipie/apypie) + method: GET + uri: https://foreman.example.org/katello/api/content_views/19/filters/84 + response: + body: + string: ' {"inclusion":false,"id":84,"name":"Test Deb Content View Filter","description":null,"created_at":"2024-07-25 + 07:29:45 UTC","updated_at":"2024-07-25 07:29:45 UTC","content_view":{"composite":false,"component_ids":[],"duplicate_repositories_to_publish":[],"default":false,"version_count":0,"latest_version":null,"latest_version_id":null,"auto_publish":false,"solve_dependencies":false,"import_only":false,"generated_for":"none","related_cv_count":0,"related_composite_cvs":[],"filtered":true,"repository_ids":[22],"id":19,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":11,"organization":{"name":"Test + Organization","label":"Test_Organization","id":11},"created_at":"2024-07-25 + 07:26:27 UTC","updated_at":"2024-07-25 07:26:27 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":22,"name":"Test + Debian Repository","label":"Test_Debian_Repository","content_type":"deb","product":{"id":9,"name":"Test + Product"},"content_counts":{"docker_manifest":0,"docker_tag":0,"rpm":0,"package":0,"package_group":0,"erratum":0,"module_stream":0}}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]},"repositories":[{"backend_identifier":"fb721752-18f2-4a0f-affc-964a8f34e999","relative_path":"Test_Organization/Library/custom/Test_Product/Test_Debian_Repository","container_repository_name":"test_organization-test_product-test_debian_repository","full_path":"https://centos8-stream-katello-nightly.tanso.example.com/pulp/content/Test_Organization/Library/custom/Test_Product/Test_Debian_Repository/","library_instance_id":null,"version_href":"/pulp/api/v3/repositories/deb/apt/0190e8c8-8431-7cd7-bb85-df33dcafcb51/versions/1/","remote_href":"/pulp/api/v3/remotes/deb/apt/0190e8c8-836f-7d29-93f2-a0de99de4f56/","publication_href":"/pulp/api/v3/publications/deb/apt/0190e8c8-9fed-7071-9bb3-8f81e2f73dfd/","content_counts":{"deb":289},"mirroring_policy":"mirror_content_only","id":22,"name":"Test + Debian Repository","label":"Test_Debian_Repository","description":null,"content_view_versions":[],"filters":[{"content_view_filter_id":84,"content_view_filter_name":"Test + Deb Content View Filter","content_view_id":19,"content_view_name":"Test Content + View","last_affected_repo":true}],"last_sync":{"id":"dfd3a9ea-7e5f-41ed-8d0f-87e09774c234","username":"admin","started_at":"2024-07-25 + 07:29:39 UTC","ended_at":"2024-07-25 07:29:41 UTC","state":"stopped","result":"success","progress":1.0},"content_view":{"id":18,"name":"Default + Organization View"},"content_view_version":{"id":10,"name":"Default Organization + View 1.0","content_view_id":18},"kt_environment":{"id":10,"name":"Library"},"content_type":"deb","url":"https://ftp.debian.org/debian","arch":"noarch","os_versions":null,"content_id":"1721892373658","generic_remote_options":null,"major":null,"minor":null,"product":{"id":9,"cp_id":"322281955515","name":"Test + Product","orphaned":false,"redhat":false,"sync_plan":null},"content_label":"Test_Organization_Test_Product_Test_Debian_Repository","last_sync_words":"less + than a minute"}],"type":"deb","rules":[]} + + ' + headers: + Cache-Control: + - max-age=0, private, must-revalidate + Connection: + - Keep-Alive + Content-Length: + - '3167' + Content-Security-Policy: + - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: + - application/json; charset=utf-8 + Foreman_api_version: + - '2' + Foreman_current_location: + - ; ANY + Foreman_current_organization: + - ; ANY + Foreman_version: + - 3.12.0-develop + Keep-Alive: + - timeout=15, max=94 + Strict-Transport-Security: + - max-age=631139040; includeSubdomains + X-Content-Type-Options: + - nosniff + X-Download-Options: + - noopen + X-Frame-Options: + - sameorigin + X-Permitted-Cross-Domain-Policies: + - none + X-XSS-Protection: + - 1; mode=block + status: + code: 200 + message: OK +- request: + body: '{"inclusion": true}' + headers: + Accept: + - application/json;version=2 + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '19' + Content-Type: + - application/json + User-Agent: + - apypie (https://github.com/Apipie/apypie) + method: PUT + uri: https://foreman.example.org/katello/api/content_views/19/filters/84 + response: + body: + string: ' {"inclusion":true,"id":84,"name":"Test Deb Content View Filter","description":null,"created_at":"2024-07-25 + 07:29:45 UTC","updated_at":"2024-07-25 07:29:47 UTC","content_view":{"composite":false,"component_ids":[],"duplicate_repositories_to_publish":[],"default":false,"version_count":0,"latest_version":null,"latest_version_id":null,"auto_publish":false,"solve_dependencies":false,"import_only":false,"generated_for":"none","related_cv_count":0,"related_composite_cvs":[],"filtered":true,"repository_ids":[22],"id":19,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":11,"organization":{"name":"Test + Organization","label":"Test_Organization","id":11},"created_at":"2024-07-25 + 07:26:27 UTC","updated_at":"2024-07-25 07:26:27 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":22,"name":"Test + Debian Repository","label":"Test_Debian_Repository","content_type":"deb","product":{"id":9,"name":"Test + Product"},"content_counts":{"docker_manifest":0,"docker_tag":0,"rpm":0,"package":0,"package_group":0,"erratum":0,"module_stream":0}}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]},"repositories":[{"backend_identifier":"fb721752-18f2-4a0f-affc-964a8f34e999","relative_path":"Test_Organization/Library/custom/Test_Product/Test_Debian_Repository","container_repository_name":"test_organization-test_product-test_debian_repository","full_path":"https://centos8-stream-katello-nightly.tanso.example.com/pulp/content/Test_Organization/Library/custom/Test_Product/Test_Debian_Repository/","library_instance_id":null,"version_href":"/pulp/api/v3/repositories/deb/apt/0190e8c8-8431-7cd7-bb85-df33dcafcb51/versions/1/","remote_href":"/pulp/api/v3/remotes/deb/apt/0190e8c8-836f-7d29-93f2-a0de99de4f56/","publication_href":"/pulp/api/v3/publications/deb/apt/0190e8c8-9fed-7071-9bb3-8f81e2f73dfd/","content_counts":{"deb":289},"mirroring_policy":"mirror_content_only","id":22,"name":"Test + Debian Repository","label":"Test_Debian_Repository","description":null,"content_view_versions":[],"filters":[{"content_view_filter_id":84,"content_view_filter_name":"Test + Deb Content View Filter","content_view_id":19,"content_view_name":"Test Content + View","last_affected_repo":true}],"last_sync":{"id":"dfd3a9ea-7e5f-41ed-8d0f-87e09774c234","username":"admin","started_at":"2024-07-25 + 07:29:39 UTC","ended_at":"2024-07-25 07:29:41 UTC","state":"stopped","result":"success","progress":1.0},"content_view":{"id":18,"name":"Default + Organization View"},"content_view_version":{"id":10,"name":"Default Organization + View 1.0","content_view_id":18},"kt_environment":{"id":10,"name":"Library"},"content_type":"deb","url":"https://ftp.debian.org/debian","arch":"noarch","os_versions":null,"content_id":"1721892373658","generic_remote_options":null,"major":null,"minor":null,"product":{"id":9,"cp_id":"322281955515","name":"Test + Product","orphaned":false,"redhat":false,"sync_plan":null},"content_label":"Test_Organization_Test_Product_Test_Debian_Repository","last_sync_words":"less + than a minute"}],"type":"deb","rules":[]} + + ' + headers: + Cache-Control: + - max-age=0, private, must-revalidate + Connection: + - Keep-Alive + Content-Length: + - '3166' + Content-Security-Policy: + - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: + - application/json; charset=utf-8 + Foreman_api_version: + - '2' + Foreman_current_location: + - ; ANY + Foreman_current_organization: + - ; ANY + Foreman_version: + - 3.12.0-develop + Keep-Alive: + - timeout=15, max=93 + Strict-Transport-Security: + - max-age=631139040; includeSubdomains + X-Content-Type-Options: + - nosniff + X-Download-Options: + - noopen + X-Frame-Options: + - sameorigin + X-Permitted-Cross-Domain-Policies: + - none + X-XSS-Protection: + - 1; mode=block + status: + code: 200 + message: OK +version: 1 diff --git a/tests/test_playbooks/fixtures/content_view_filter_deb-3.yml b/tests/test_playbooks/fixtures/content_view_filter_deb-3.yml new file mode 100644 index 00000000..fafd18ce --- /dev/null +++ b/tests/test_playbooks/fixtures/content_view_filter_deb-3.yml @@ -0,0 +1,435 @@ +interactions: +- request: + body: null + headers: + Accept: + - application/json;version=2 + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - apypie (https://github.com/Apipie/apypie) + method: GET + uri: https://foreman.example.org/api/status + response: + body: + string: '{"result":"ok","status":200,"version":"3.12.0-develop","api_version":2}' + headers: + Cache-Control: + - max-age=0, private, must-revalidate + Connection: + - Keep-Alive + Content-Length: + - '71' + Content-Security-Policy: + - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: + - application/json; charset=utf-8 + Foreman_api_version: + - '2' + Foreman_current_location: + - ; ANY + Foreman_current_organization: + - ; ANY + Foreman_version: + - 3.12.0-develop + Keep-Alive: + - timeout=15, max=100 + Strict-Transport-Security: + - max-age=631139040; includeSubdomains + X-Content-Type-Options: + - nosniff + X-Download-Options: + - noopen + X-Frame-Options: + - sameorigin + X-Permitted-Cross-Domain-Policies: + - none + X-XSS-Protection: + - 1; mode=block + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json;version=2 + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - apypie (https://github.com/Apipie/apypie) + method: GET + uri: https://foreman.example.org/katello/api/organizations?search=name%3D%22Test+Organization%22&per_page=4294967296 + response: + body: + string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": + 4294967296,\n \"search\": \"name=\\\"Test Organization\\\"\",\n \"sort\": + {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\":\"Test_Organization\",\"created_at\":\"2024-07-25 + 07:26:09 UTC\",\"updated_at\":\"2024-07-25 07:26:11 UTC\",\"id\":11,\"name\":\"Test + Organization\",\"title\":\"Test Organization\",\"description\":\"A test organization\"}]\n}\n" + headers: + Cache-Control: + - max-age=0, private, must-revalidate + Connection: + - Keep-Alive + Content-Length: + - '389' + Content-Security-Policy: + - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: + - application/json; charset=utf-8 + Foreman_api_version: + - '2' + Foreman_current_location: + - ; ANY + Foreman_current_organization: + - ; ANY + Foreman_version: + - 3.12.0-develop + Keep-Alive: + - timeout=15, max=99 + Strict-Transport-Security: + - max-age=631139040; includeSubdomains + X-Content-Type-Options: + - nosniff + X-Download-Options: + - noopen + X-Frame-Options: + - sameorigin + X-Permitted-Cross-Domain-Policies: + - none + X-XSS-Protection: + - 1; mode=block + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json;version=2 + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - apypie (https://github.com/Apipie/apypie) + method: GET + uri: https://foreman.example.org/katello/api/organizations/11/content_views?search=name%3D%22Test+Content+View%22&per_page=4294967296 + response: + body: + string: '{"total":2,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test + Content View\"","sort":{"by":"name","order":"asc"},"results":[{"composite":false,"component_ids":[],"duplicate_repositories_to_publish":[],"default":false,"version_count":0,"latest_version":null,"latest_version_id":null,"auto_publish":false,"solve_dependencies":false,"import_only":false,"generated_for":"none","related_cv_count":0,"related_composite_cvs":[],"filtered":true,"repository_ids":[22],"id":19,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":11,"organization":{"name":"Test + Organization","label":"Test_Organization","id":11},"created_at":"2024-07-25 + 07:26:27 UTC","updated_at":"2024-07-25 07:26:27 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":22,"name":"Test + Debian Repository","label":"Test_Debian_Repository","content_type":"deb"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]}]} + + ' + headers: + Cache-Control: + - max-age=0, private, must-revalidate + Connection: + - Keep-Alive + Content-Length: + - '1083' + Content-Security-Policy: + - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: + - application/json; charset=utf-8 + Foreman_api_version: + - '2' + Foreman_current_location: + - ; ANY + Foreman_current_organization: + - 11; Test Organization + Foreman_version: + - 3.12.0-develop + Keep-Alive: + - timeout=15, max=98 + Strict-Transport-Security: + - max-age=631139040; includeSubdomains + X-Content-Type-Options: + - nosniff + X-Download-Options: + - noopen + X-Frame-Options: + - sameorigin + X-Permitted-Cross-Domain-Policies: + - none + X-XSS-Protection: + - 1; mode=block + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json;version=2 + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - apypie (https://github.com/Apipie/apypie) + method: GET + uri: https://foreman.example.org/katello/api/organizations/11/products?search=name%3D%22Test+Product%22&per_page=4294967296 + response: + body: + string: '{"total":1,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test + Product\"","sort":{"by":"name","order":"asc"},"results":[{"id":9,"cp_id":"322281955515","name":"Test + Product","label":"Test_Product","description":"A happy little test product","provider_id":19,"sync_plan_id":null,"sync_summary":{"success":1},"gpg_key_id":null,"ssl_ca_cert_id":null,"ssl_client_cert_id":null,"ssl_client_key_id":null,"sync_state":"Syncing + Complete.","last_sync":"2024-07-25 07:29:39 UTC","last_sync_words":"less than + a minute","organization_id":11,"organization":{"name":"Test Organization","label":"Test_Organization","id":11},"sync_plan":null,"repository_count":1}]} + + ' + headers: + Cache-Control: + - max-age=0, private, must-revalidate + Connection: + - Keep-Alive + Content-Length: + - '693' + Content-Security-Policy: + - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: + - application/json; charset=utf-8 + Foreman_api_version: + - '2' + Foreman_current_location: + - ; ANY + Foreman_current_organization: + - 11; Test Organization + Foreman_version: + - 3.12.0-develop + Keep-Alive: + - timeout=15, max=97 + Strict-Transport-Security: + - max-age=631139040; includeSubdomains + X-Content-Type-Options: + - nosniff + X-Download-Options: + - noopen + X-Frame-Options: + - sameorigin + X-Permitted-Cross-Domain-Policies: + - none + X-XSS-Protection: + - 1; mode=block + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json;version=2 + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - apypie (https://github.com/Apipie/apypie) + method: GET + uri: https://foreman.example.org/katello/api/products/9/repositories?search=name%3D%22Test+Debian+Repository%22&per_page=4294967296 + response: + body: + string: '{"total":1,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test + Debian Repository\"","sort":{"by":"name","order":"asc"},"results":[{"backend_identifier":"fb721752-18f2-4a0f-affc-964a8f34e999","relative_path":"Test_Organization/Library/custom/Test_Product/Test_Debian_Repository","container_repository_name":"test_organization-test_product-test_debian_repository","full_path":"https://centos8-stream-katello-nightly.tanso.example.com/pulp/content/Test_Organization/Library/custom/Test_Product/Test_Debian_Repository/","library_instance_id":null,"version_href":"/pulp/api/v3/repositories/deb/apt/0190e8c8-8431-7cd7-bb85-df33dcafcb51/versions/1/","remote_href":"/pulp/api/v3/remotes/deb/apt/0190e8c8-836f-7d29-93f2-a0de99de4f56/","publication_href":"/pulp/api/v3/publications/deb/apt/0190e8c8-9fed-7071-9bb3-8f81e2f73dfd/","content_counts":{"deb":289},"mirroring_policy":"mirror_content_only","id":22,"name":"Test + Debian Repository","label":"Test_Debian_Repository","description":null,"content_view_versions":[],"filters":[{"content_view_filter_id":84,"content_view_filter_name":"Test + Deb Content View Filter","content_view_id":19,"content_view_name":"Test Content + View","last_affected_repo":true}],"last_sync":{"id":"dfd3a9ea-7e5f-41ed-8d0f-87e09774c234","username":"admin","started_at":"2024-07-25 + 07:29:39 UTC","ended_at":"2024-07-25 07:29:41 UTC","state":"stopped","result":"success","progress":1.0},"content_view":{"id":18,"name":"Default + Organization View"},"content_view_version":{"id":10,"name":"Default Organization + View 1.0","content_view_id":18},"kt_environment":{"id":10,"name":"Library"},"content_type":"deb","url":"https://ftp.debian.org/debian","arch":"noarch","os_versions":null,"content_id":"1721892373658","generic_remote_options":null,"major":null,"minor":null,"product":{"id":9,"cp_id":"322281955515","name":"Test + Product","orphaned":false,"redhat":false,"sync_plan":null},"content_label":"Test_Organization_Test_Product_Test_Debian_Repository","last_sync_words":"less + than a minute"}],"org_repository_count":1} + + ' + headers: + Cache-Control: + - max-age=0, private, must-revalidate + Connection: + - Keep-Alive + Content-Length: + - '2072' + Content-Security-Policy: + - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: + - application/json; charset=utf-8 + Foreman_api_version: + - '2' + Foreman_current_location: + - ; ANY + Foreman_current_organization: + - ; ANY + Foreman_version: + - 3.12.0-develop + Keep-Alive: + - timeout=15, max=96 + Strict-Transport-Security: + - max-age=631139040; includeSubdomains + X-Content-Type-Options: + - nosniff + X-Download-Options: + - noopen + X-Frame-Options: + - sameorigin + X-Permitted-Cross-Domain-Policies: + - none + X-XSS-Protection: + - 1; mode=block + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json;version=2 + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - apypie (https://github.com/Apipie/apypie) + method: GET + uri: https://foreman.example.org/katello/api/content_views/19/filters?search=name%3D%22Test+Deb+Content+View+Filter%22&per_page=4294967296 + response: + body: + string: '{"total":1,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test + Deb Content View Filter\"","sort":{"by":"name","order":"asc"},"results":[{"inclusion":true,"id":84,"name":"Test + Deb Content View Filter","description":null,"created_at":"2024-07-25 07:29:45 + UTC","updated_at":"2024-07-25 07:29:47 UTC","content_view":{"composite":false,"component_ids":[],"duplicate_repositories_to_publish":[],"default":false,"version_count":0,"latest_version":null,"latest_version_id":null,"auto_publish":false,"solve_dependencies":false,"import_only":false,"generated_for":"none","related_cv_count":0,"related_composite_cvs":[],"filtered":true,"repository_ids":[22],"id":19,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":11,"organization":{"name":"Test + Organization","label":"Test_Organization","id":11},"created_at":"2024-07-25 + 07:26:27 UTC","updated_at":"2024-07-25 07:26:27 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":22,"name":"Test + Debian Repository","label":"Test_Debian_Repository","content_type":"deb"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]},"repositories":[{"backend_identifier":"fb721752-18f2-4a0f-affc-964a8f34e999","relative_path":"Test_Organization/Library/custom/Test_Product/Test_Debian_Repository","container_repository_name":"test_organization-test_product-test_debian_repository","full_path":"https://centos8-stream-katello-nightly.tanso.example.com/pulp/content/Test_Organization/Library/custom/Test_Product/Test_Debian_Repository/","library_instance_id":null,"version_href":"/pulp/api/v3/repositories/deb/apt/0190e8c8-8431-7cd7-bb85-df33dcafcb51/versions/1/","remote_href":"/pulp/api/v3/remotes/deb/apt/0190e8c8-836f-7d29-93f2-a0de99de4f56/","publication_href":"/pulp/api/v3/publications/deb/apt/0190e8c8-9fed-7071-9bb3-8f81e2f73dfd/","content_counts":{"deb":289},"mirroring_policy":"mirror_content_only","id":22,"name":"Test + Debian Repository","label":"Test_Debian_Repository","description":null,"content_view_versions":[],"filters":[{"content_view_filter_id":84,"content_view_filter_name":"Test + Deb Content View Filter","content_view_id":19,"content_view_name":"Test Content + View","last_affected_repo":true}],"last_sync":{"id":"dfd3a9ea-7e5f-41ed-8d0f-87e09774c234","username":"admin","started_at":"2024-07-25 + 07:29:39 UTC","ended_at":"2024-07-25 07:29:41 UTC","state":"stopped","result":"success","progress":1.0},"content_view":{"id":18,"name":"Default + Organization View"},"content_view_version":{"id":10,"name":"Default Organization + View 1.0","content_view_id":18},"kt_environment":{"id":10,"name":"Library"},"content_type":"deb","url":"https://ftp.debian.org/debian","arch":"noarch","os_versions":null,"content_id":"1721892373658","generic_remote_options":null,"major":null,"minor":null,"product":{"id":9,"cp_id":"322281955515","name":"Test + Product","orphaned":false,"redhat":false,"sync_plan":null},"content_label":"Test_Organization_Test_Product_Test_Debian_Repository","last_sync_words":"less + than a minute"}],"type":"deb","rules":[]}]} + + ' + headers: + Cache-Control: + - max-age=0, private, must-revalidate + Connection: + - Keep-Alive + Content-Length: + - '3183' + Content-Security-Policy: + - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: + - application/json; charset=utf-8 + Foreman_api_version: + - '2' + Foreman_current_location: + - ; ANY + Foreman_current_organization: + - ; ANY + Foreman_version: + - 3.12.0-develop + Keep-Alive: + - timeout=15, max=95 + Strict-Transport-Security: + - max-age=631139040; includeSubdomains + X-Content-Type-Options: + - nosniff + X-Download-Options: + - noopen + X-Frame-Options: + - sameorigin + X-Permitted-Cross-Domain-Policies: + - none + X-XSS-Protection: + - 1; mode=block + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json;version=2 + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '0' + User-Agent: + - apypie (https://github.com/Apipie/apypie) + method: DELETE + uri: https://foreman.example.org/katello/api/content_views/19/filters/84 + response: + body: + string: ' {"inclusion":true,"id":84,"name":"Test Deb Content View Filter","description":null,"created_at":"2024-07-25 + 07:29:45 UTC","updated_at":"2024-07-25 07:29:47 UTC","content_view":{"composite":false,"component_ids":[],"duplicate_repositories_to_publish":[],"default":false,"version_count":0,"latest_version":null,"latest_version_id":null,"auto_publish":false,"solve_dependencies":false,"import_only":false,"generated_for":"none","related_cv_count":0,"related_composite_cvs":[],"filtered":false,"repository_ids":[22],"id":19,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":11,"organization":{"name":"Test + Organization","label":"Test_Organization","id":11},"created_at":"2024-07-25 + 07:26:27 UTC","updated_at":"2024-07-25 07:26:27 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":22,"name":"Test + Debian Repository","label":"Test_Debian_Repository","content_type":"deb","product":{"id":9,"name":"Test + Product"},"content_counts":{"docker_manifest":0,"docker_tag":0,"rpm":0,"package":0,"package_group":0,"erratum":0,"module_stream":0}}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]},"repositories":[],"type":"deb","rules":[]} + + ' + headers: + Cache-Control: + - max-age=0, private, must-revalidate + Connection: + - Keep-Alive + Content-Length: + - '1297' + Content-Security-Policy: + - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: + - application/json; charset=utf-8 + Foreman_api_version: + - '2' + Foreman_current_location: + - ; ANY + Foreman_current_organization: + - ; ANY + Foreman_version: + - 3.12.0-develop + Keep-Alive: + - timeout=15, max=94 + Strict-Transport-Security: + - max-age=631139040; includeSubdomains + X-Content-Type-Options: + - nosniff + X-Download-Options: + - noopen + X-Frame-Options: + - sameorigin + X-Permitted-Cross-Domain-Policies: + - none + X-XSS-Protection: + - 1; mode=block + status: + code: 200 + message: OK +version: 1 From 46c2cd5f347e2b6540d631b4a15a58b15ab729a4 Mon Sep 17 00:00:00 2001 From: Evgeni Golov Date: Thu, 25 Jul 2024 09:36:53 +0200 Subject: [PATCH 22/36] set repositories to on_demand for cv_filter_info test --- tests/test_playbooks/content_view_filter_info.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tests/test_playbooks/content_view_filter_info.yml b/tests/test_playbooks/content_view_filter_info.yml index 346f16ce..a9a78422 100644 --- a/tests/test_playbooks/content_view_filter_info.yml +++ b/tests/test_playbooks/content_view_filter_info.yml @@ -21,12 +21,14 @@ ansible.builtin.include_tasks: tasks/repository.yml vars: repository_state: present + repository_download_policy: "on_demand" - name: "Create Additional Repository" ansible.builtin.include_tasks: tasks/repository.yml vars: repository_state: present repository_url: "https://repos.fedorapeople.org/pulp/pulp/demo_repos/zoo/" + repository_download_policy: "on_demand" - name: "Create Module repository" ansible.builtin.include_tasks: tasks/repository.yml @@ -35,6 +37,7 @@ repository_name: "Test Modular Repository" repository_content_type: yum repository_url: "https://dl.fedoraproject.org/pub/epel/8/Modular/x86_64" + repository_download_policy: "on_demand" - name: "Create Container Repository" ansible.builtin.include_tasks: tasks/repository.yml @@ -44,6 +47,7 @@ repository_content_type: docker repository_url: https://registry.access.redhat.com repository_docker_upstream_name: ubi9 + repository_download_policy: "on_demand" - name: "Create Deb Repository" ansible.builtin.include_tasks: tasks/repository.yml @@ -55,6 +59,7 @@ repository_deb_releases: buster repository_deb_components: contrib repository_deb_architectures: amd64 + repository_download_policy: "on_demand" - name: "Sync content" ansible.builtin.include_tasks: tasks/katello_sync.yml From f380a8e4f46f955c3057fba13f58751c822d7cd8 Mon Sep 17 00:00:00 2001 From: Evgeni Golov Date: Thu, 25 Jul 2024 09:37:11 +0200 Subject: [PATCH 23/36] don't assert sync times in cv_filter_info tests --- tests/test_playbooks/content_view_filter_info.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tests/test_playbooks/content_view_filter_info.yml b/tests/test_playbooks/content_view_filter_info.yml index a9a78422..02382284 100644 --- a/tests/test_playbooks/content_view_filter_info.yml +++ b/tests/test_playbooks/content_view_filter_info.yml @@ -63,21 +63,26 @@ - name: "Sync content" ansible.builtin.include_tasks: tasks/katello_sync.yml + vars: + expected_time: false - name: "Sync content" ansible.builtin.include_tasks: tasks/katello_sync.yml vars: repository: Test Docker Repository + expected_time: false - name: "Sync content" ansible.builtin.include_tasks: tasks/katello_sync.yml vars: repository: Test Modular Repository + expected_time: false - name: "Sync content" ansible.builtin.include_tasks: tasks/katello_sync.yml vars: repository: Test Debian Repository + expected_time: false - name: "Create Content View" ansible.builtin.include_tasks: tasks/content_view.yml From 238e7d2a97ffbd18c884b8657f676f43fd49d241 Mon Sep 17 00:00:00 2001 From: Evgeni Golov Date: Thu, 25 Jul 2024 09:46:40 +0200 Subject: [PATCH 24/36] Split out Debian tests for content_view_filter_info --- .../apidoc/content_view_filter_info_deb.json | 1 + .../content_view_filter_info.yml | 69 -------- .../content_view_filter_info_deb.yml | 149 ++++++++++++++++++ 3 files changed, 150 insertions(+), 69 deletions(-) create mode 120000 tests/fixtures/apidoc/content_view_filter_info_deb.json create mode 100644 tests/test_playbooks/content_view_filter_info_deb.yml diff --git a/tests/fixtures/apidoc/content_view_filter_info_deb.json b/tests/fixtures/apidoc/content_view_filter_info_deb.json new file mode 120000 index 00000000..8e89899a --- /dev/null +++ b/tests/fixtures/apidoc/content_view_filter_info_deb.json @@ -0,0 +1 @@ +katello.json \ No newline at end of file diff --git a/tests/test_playbooks/content_view_filter_info.yml b/tests/test_playbooks/content_view_filter_info.yml index 02382284..7dcd4fba 100644 --- a/tests/test_playbooks/content_view_filter_info.yml +++ b/tests/test_playbooks/content_view_filter_info.yml @@ -49,18 +49,6 @@ repository_docker_upstream_name: ubi9 repository_download_policy: "on_demand" - - name: "Create Deb Repository" - ansible.builtin.include_tasks: tasks/repository.yml - vars: - repository_state: present - repository_name: Test Debian Repository - repository_content_type: deb - repository_url: https://ftp.debian.org/debian - repository_deb_releases: buster - repository_deb_components: contrib - repository_deb_architectures: amd64 - repository_download_policy: "on_demand" - - name: "Sync content" ansible.builtin.include_tasks: tasks/katello_sync.yml vars: @@ -78,12 +66,6 @@ repository: Test Modular Repository expected_time: false - - name: "Sync content" - ansible.builtin.include_tasks: tasks/katello_sync.yml - vars: - repository: Test Debian Repository - expected_time: false - - name: "Create Content View" ansible.builtin.include_tasks: tasks/content_view.yml vars: @@ -94,8 +76,6 @@ product: "Test Product" - name: "Test Modular Repository" product: "Test Product" - - name: "Test Debian Repository" - product: "Test Product" - name: "Create content view filters" ansible.builtin.include_tasks: tasks/content_view_filter.yml @@ -159,30 +139,6 @@ - result['content_view_filter']['original_module_streams'] == True - - name: "Fetch content_view_filter_info - deb packages" - vars: - content_view_filter_name: "Test Content View Filter - AllDebs" - content_view_name: "Test Content View" - organization_name: "Test Organization" - content_view_filter_info: - username: "{{ foreman_username }}" - password: "{{ foreman_password }}" - server_url: "{{ foreman_server_url }}" - validate_certs: "{{ foreman_validate_certs }}" - organization: "{{ organization_name }}" - content_view: "{{ content_view_name }}" - name: "{{ content_view_filter_name }}" - register: result - - - name: "Assert Result" - ansible.builtin.assert: - fail_msg: "Ensuring content view filter info is valid failed!" - that: - - result['content_view_filter']['name'] == "Test Content View Filter - AllDebs" - - result['content_view_filter']['type'] == "deb" - - result['content_view_filter']['inclusion'] == True - - - name: "Fetch content_view_filter_info - rpm exlude" vars: content_view_filter_name: "Test Content View Filter - rpm" @@ -328,31 +284,6 @@ - result['content_view_filter']['inclusion'] == False - - name: "Fetch content_view_filter_info - deb exlude" - vars: - content_view_filter_name: "Test Content View Filter - deb" - content_view_name: "Test Content View" - organization_name: "Test Organization" - content_view_filter_info: - username: "{{ foreman_username }}" - password: "{{ foreman_password }}" - server_url: "{{ foreman_server_url }}" - validate_certs: "{{ foreman_validate_certs }}" - organization: "{{ organization_name }}" - content_view: "{{ content_view_name }}" - name: "{{ content_view_filter_name }}" - register: result - - - name: "Assert Result" - ansible.builtin.assert: - fail_msg: "Ensuring content view filter info is valid failed!" - that: - - result['content_view_filter']['name'] == "Test Content View Filter - deb" - - result['content_view_filter']['type'] == "deb" - - result['content_view_filter']['inclusion'] == False - - - - name: "Clean up test dependencies" hosts: localhost collections: diff --git a/tests/test_playbooks/content_view_filter_info_deb.yml b/tests/test_playbooks/content_view_filter_info_deb.yml new file mode 100644 index 00000000..1eb523cd --- /dev/null +++ b/tests/test_playbooks/content_view_filter_info_deb.yml @@ -0,0 +1,149 @@ +--- +- name: "Setup content_view_filter_info test prerequisites" + hosts: localhost + collections: + - theforeman.foreman + gather_facts: false + vars_files: + - vars/server.yml + tasks: + - name: "Create Test Organization" + ansible.builtin.include_tasks: tasks/organization.yml + vars: + organization_state: present + + - name: "Create Test Product" + ansible.builtin.include_tasks: tasks/product.yml + vars: + product_state: present + + - name: "Create Deb Repository" + ansible.builtin.include_tasks: tasks/repository.yml + vars: + repository_state: present + repository_name: Test Debian Repository + repository_content_type: deb + repository_url: https://ftp.debian.org/debian + repository_deb_releases: buster + repository_deb_components: contrib + repository_deb_architectures: amd64 + repository_download_policy: "on_demand" + + - name: "Sync content" + ansible.builtin.include_tasks: tasks/katello_sync.yml + vars: + repository: Test Debian Repository + expected_time: false + + - name: "Create Content View" + ansible.builtin.include_tasks: tasks/content_view.yml + vars: + repositories: + - name: "Test Debian Repository" + product: "Test Product" + + - name: "Create content view filters" + ansible.builtin.include_tasks: tasks/content_view_filter.yml + + +- name: "Test content_view_filter info" + hosts: tests + collections: + - theforeman.foreman + gather_facts: false + vars_files: + - vars/server.yml + tasks: + - name: "Fetch content_view_filter_info - deb packages" + vars: + content_view_filter_name: "Test Content View Filter - AllDebs" + content_view_name: "Test Content View" + organization_name: "Test Organization" + content_view_filter_info: + username: "{{ foreman_username }}" + password: "{{ foreman_password }}" + server_url: "{{ foreman_server_url }}" + validate_certs: "{{ foreman_validate_certs }}" + organization: "{{ organization_name }}" + content_view: "{{ content_view_name }}" + name: "{{ content_view_filter_name }}" + register: result + + - name: "Assert Result" + ansible.builtin.assert: + fail_msg: "Ensuring content view filter info is valid failed!" + that: + - result['content_view_filter']['name'] == "Test Content View Filter - AllDebs" + - result['content_view_filter']['type'] == "deb" + - result['content_view_filter']['inclusion'] == True + + + - name: "Fetch content_view_filter_info - deb exlude" + vars: + content_view_filter_name: "Test Content View Filter - deb" + content_view_name: "Test Content View" + organization_name: "Test Organization" + content_view_filter_info: + username: "{{ foreman_username }}" + password: "{{ foreman_password }}" + server_url: "{{ foreman_server_url }}" + validate_certs: "{{ foreman_validate_certs }}" + organization: "{{ organization_name }}" + content_view: "{{ content_view_name }}" + name: "{{ content_view_filter_name }}" + register: result + + - name: "Assert Result" + ansible.builtin.assert: + fail_msg: "Ensuring content view filter info is valid failed!" + that: + - result['content_view_filter']['name'] == "Test Content View Filter - deb" + - result['content_view_filter']['type'] == "deb" + - result['content_view_filter']['inclusion'] == False + +- name: "Clean up test dependencies" + hosts: localhost + collections: + - theforeman.foreman + gather_facts: false + vars_files: + - vars/server.yml + tasks: + + - name: "Cleanup Content View Filters" + ansible.builtin.include_tasks: tasks/content_view_filter.yml + vars: + filter_state: absent + + - name: Clean up the content view + ansible.builtin.include_tasks: tasks/content_view.yml + vars: + content_view_state: absent + + - name: "Clean up repositories" + ansible.builtin.include_tasks: tasks/repository.yml + vars: + repository_name: Test Modular Repository + repository_state: absent + + - name: "Clean up repositories" + ansible.builtin.include_tasks: tasks/repository.yml + vars: + repository_name: Test Docker Repository + repository_state: absent + + - name: "Clean up repositories" + ansible.builtin.include_tasks: tasks/repository.yml + vars: + repository_state: absent + + - name: "Clean up products" + ansible.builtin.include_tasks: tasks/product.yml + vars: + product_state: absent + + - name: "Clean up Organizations" + ansible.builtin.include_tasks: tasks/organization.yml + vars: + organization_state: absent +... From 3079fa50b6cc496493a9301c3f4ec7b48c8defde Mon Sep 17 00:00:00 2001 From: Evgeni Golov Date: Thu, 25 Jul 2024 09:51:20 +0200 Subject: [PATCH 25/36] re-record content_view_filter_info --- .../fixtures/content_view_filter_info-0.yml | 94 +++--- .../fixtures/content_view_filter_info-1.yml | 94 +++--- .../fixtures/content_view_filter_info-2.yml | 93 +++--- .../fixtures/content_view_filter_info-3.yml | 93 +++--- .../fixtures/content_view_filter_info-4.yml | 92 +++-- .../fixtures/content_view_filter_info-5.yml | 92 +++-- .../fixtures/content_view_filter_info-6.yml | 92 +++-- .../fixtures/content_view_filter_info-7.yml | 93 +++--- .../fixtures/content_view_filter_info-8.yml | 313 ------------------ .../fixtures/content_view_filter_info-9.yml | 312 ----------------- 10 files changed, 356 insertions(+), 1012 deletions(-) delete mode 100644 tests/test_playbooks/fixtures/content_view_filter_info-8.yml delete mode 100644 tests/test_playbooks/fixtures/content_view_filter_info-9.yml diff --git a/tests/test_playbooks/fixtures/content_view_filter_info-0.yml b/tests/test_playbooks/fixtures/content_view_filter_info-0.yml index 1dac3dbf..6c53a3ea 100644 --- a/tests/test_playbooks/fixtures/content_view_filter_info-0.yml +++ b/tests/test_playbooks/fixtures/content_view_filter_info-0.yml @@ -14,14 +14,14 @@ interactions: uri: https://foreman.example.org/api/status response: body: - string: '{"result":"ok","status":200,"version":"3.7.0-rc2","api_version":2}' + string: '{"result":"ok","status":200,"version":"3.12.0-develop","api_version":2}' headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive Content-Length: - - '66' + - '71' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -35,7 +35,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=100 Strict-Transport-Security: @@ -70,8 +70,8 @@ interactions: body: string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": 4294967296,\n \"search\": \"name=\\\"Test Organization\\\"\",\n \"sort\": - {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\":\"Test_Organization\",\"created_at\":\"2023-06-05 - 22:21:52 UTC\",\"updated_at\":\"2023-06-05 22:21:54 UTC\",\"id\":9,\"name\":\"Test + {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\":\"Test_Organization\",\"created_at\":\"2024-07-25 + 07:48:37 UTC\",\"updated_at\":\"2024-07-25 07:48:39 UTC\",\"id\":13,\"name\":\"Test Organization\",\"title\":\"Test Organization\",\"description\":\"A test organization\"}]\n}\n" headers: Cache-Control: @@ -79,7 +79,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '388' + - '389' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -93,7 +93,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=99 Strict-Transport-Security: @@ -123,18 +123,17 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/organizations/9/content_views?search=name%3D%22Test+Content+View%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/organizations/13/content_views?search=name%3D%22Test+Content+View%22&per_page=4294967296 response: body: string: '{"total":2,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Content View\"","sort":{"by":"name","order":"asc"},"results":[{"composite":false,"component_ids":[],"default":false,"version_count":0,"latest_version":null,"latest_version_id":null,"auto_publish":false,"solve_dependencies":false,"import_only":false,"generated_for":"none","related_cv_count":0,"related_composite_cvs":[],"needs_publish":true,"filtered":true,"repository_ids":[23,24,25,26],"id":15,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":9,"organization":{"name":"Test - Organization","label":"Test_Organization","id":9},"created_at":"2023-06-05 - 22:23:21 UTC","updated_at":"2023-06-05 22:23:21 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":23,"name":"Test - Repository","label":"Test_Repository","content_type":"yum"},{"id":24,"name":"Test - Modular Repository","label":"Test_Modular_Repository","content_type":"yum"},{"id":25,"name":"Test - Docker Repository","label":"Test_Docker_Repository","content_type":"docker"},{"id":26,"name":"Test - Debian Repository","label":"Test_Debian_Repository","content_type":"deb"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]}]} + Content View\"","sort":{"by":"name","order":"asc"},"results":[{"composite":false,"component_ids":[],"duplicate_repositories_to_publish":[],"default":false,"version_count":0,"latest_version":null,"latest_version_id":null,"auto_publish":false,"solve_dependencies":false,"import_only":false,"generated_for":"none","related_cv_count":0,"related_composite_cvs":[],"filtered":true,"repository_ids":[27,28,29],"id":23,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":13,"organization":{"name":"Test + Organization","label":"Test_Organization","id":13},"created_at":"2024-07-25 + 07:49:22 UTC","updated_at":"2024-07-25 07:49:22 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":27,"name":"Test + Repository","label":"Test_Repository","content_type":"yum"},{"id":28,"name":"Test + Modular Repository","label":"Test_Modular_Repository","content_type":"yum"},{"id":29,"name":"Test + Docker Repository","label":"Test_Docker_Repository","content_type":"docker"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]}]} ' headers: @@ -143,7 +142,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '1351' + - '1272' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -155,9 +154,9 @@ interactions: Foreman_current_location: - ; ANY Foreman_current_organization: - - 9; Test Organization + - 13; Test Organization Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=98 Strict-Transport-Security: @@ -187,20 +186,19 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/content_views/15/filters?search=name%3D%22Test+Content+View+Filter+-+AllRPMsNoErrata%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/content_views/23/filters?search=name%3D%22Test+Content+View+Filter+-+AllRPMsNoErrata%22&per_page=4294967296 response: body: string: '{"total":10,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Content View Filter - AllRPMsNoErrata\"","sort":{"by":"name","order":"asc"},"results":[{"inclusion":true,"id":35,"name":"Test - Content View Filter - AllRPMsNoErrata","description":null,"created_at":"2023-06-05 - 22:23:22 UTC","updated_at":"2023-06-05 22:23:22 UTC","content_view":{"composite":false,"component_ids":[],"default":false,"version_count":0,"latest_version":null,"latest_version_id":null,"auto_publish":false,"solve_dependencies":false,"import_only":false,"generated_for":"none","related_cv_count":0,"related_composite_cvs":[],"needs_publish":true,"filtered":true,"repository_ids":[23,24,25,26],"id":15,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":9,"organization":{"name":"Test - Organization","label":"Test_Organization","id":9},"created_at":"2023-06-05 - 22:23:21 UTC","updated_at":"2023-06-05 22:23:21 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":23,"name":"Test - Repository","label":"Test_Repository","content_type":"yum"},{"id":24,"name":"Test - Modular Repository","label":"Test_Modular_Repository","content_type":"yum"},{"id":25,"name":"Test - Docker Repository","label":"Test_Docker_Repository","content_type":"docker"},{"id":26,"name":"Test - Debian Repository","label":"Test_Debian_Repository","content_type":"deb"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]},"repositories":[],"type":"rpm","rules":[]}]} + Content View Filter - AllRPMsNoErrata\"","sort":{"by":"name","order":"asc"},"results":[{"inclusion":true,"id":95,"name":"Test + Content View Filter - AllRPMsNoErrata","description":null,"created_at":"2024-07-25 + 07:49:23 UTC","updated_at":"2024-07-25 07:49:23 UTC","content_view":{"composite":false,"component_ids":[],"duplicate_repositories_to_publish":[],"default":false,"version_count":0,"latest_version":null,"latest_version_id":null,"auto_publish":false,"solve_dependencies":false,"import_only":false,"generated_for":"none","related_cv_count":0,"related_composite_cvs":[],"filtered":true,"repository_ids":[29,27,28],"id":23,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":13,"organization":{"name":"Test + Organization","label":"Test_Organization","id":13},"created_at":"2024-07-25 + 07:49:22 UTC","updated_at":"2024-07-25 07:49:22 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":29,"name":"Test + Docker Repository","label":"Test_Docker_Repository","content_type":"docker"},{"id":27,"name":"Test + Repository","label":"Test_Repository","content_type":"yum"},{"id":28,"name":"Test + Modular Repository","label":"Test_Modular_Repository","content_type":"yum"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]},"repositories":[],"type":"rpm","rules":[]}]} ' headers: @@ -209,7 +207,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '1610' + - '1531' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -223,7 +221,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=97 Strict-Transport-Security: @@ -253,23 +251,21 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/content_views/15/filters/35 + uri: https://foreman.example.org/katello/api/content_views/23/filters/95 response: body: - string: ' {"inclusion":true,"original_packages":true,"id":35,"name":"Test Content - View Filter - AllRPMsNoErrata","description":null,"created_at":"2023-06-05 - 22:23:22 UTC","updated_at":"2023-06-05 22:23:22 UTC","content_view":{"composite":false,"component_ids":[],"default":false,"version_count":0,"latest_version":null,"latest_version_id":null,"auto_publish":false,"solve_dependencies":false,"import_only":false,"generated_for":"none","related_cv_count":0,"related_composite_cvs":[],"needs_publish":true,"filtered":true,"repository_ids":[23,24,25,26],"id":15,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":9,"organization":{"name":"Test - Organization","label":"Test_Organization","id":9},"created_at":"2023-06-05 - 22:23:21 UTC","updated_at":"2023-06-05 22:23:21 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":23,"name":"Test - Repository","label":"Test_Repository","content_type":"yum","product":{"id":8,"name":"Test - Product"},"content_counts":{"docker_manifest":0,"docker_tag":0,"rpm":32,"package":32,"package_group":2,"erratum":4,"module_stream":0}},{"id":24,"name":"Test - Modular Repository","label":"Test_Modular_Repository","content_type":"yum","product":{"id":8,"name":"Test - Product"},"content_counts":{"docker_manifest":0,"docker_tag":0,"rpm":290,"package":290,"package_group":0,"erratum":14,"module_stream":24}},{"id":25,"name":"Test - Docker Repository","label":"Test_Docker_Repository","content_type":"docker","product":{"id":8,"name":"Test - Product"},"content_counts":{"docker_manifest":72,"docker_tag":23,"rpm":0,"package":0,"package_group":0,"erratum":0,"module_stream":0}},{"id":26,"name":"Test - Debian Repository","label":"Test_Debian_Repository","content_type":"deb","product":{"id":8,"name":"Test - Product"},"content_counts":{"docker_manifest":0,"docker_tag":0,"rpm":0,"package":0,"package_group":0,"erratum":0,"module_stream":0}}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]},"repositories":[],"type":"rpm","rules":[]} + string: ' {"inclusion":true,"original_packages":true,"id":95,"name":"Test Content + View Filter - AllRPMsNoErrata","description":null,"created_at":"2024-07-25 + 07:49:23 UTC","updated_at":"2024-07-25 07:49:23 UTC","content_view":{"composite":false,"component_ids":[],"duplicate_repositories_to_publish":[],"default":false,"version_count":0,"latest_version":null,"latest_version_id":null,"auto_publish":false,"solve_dependencies":false,"import_only":false,"generated_for":"none","related_cv_count":0,"related_composite_cvs":[],"filtered":true,"repository_ids":[29,27,28],"id":23,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":13,"organization":{"name":"Test + Organization","label":"Test_Organization","id":13},"created_at":"2024-07-25 + 07:49:22 UTC","updated_at":"2024-07-25 07:49:22 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":29,"name":"Test + Docker Repository","label":"Test_Docker_Repository","content_type":"docker","product":{"id":11,"name":"Test + Product"},"content_counts":{"docker_manifest":177,"docker_tag":70,"rpm":0,"package":0,"package_group":0,"erratum":0,"module_stream":0}},{"id":27,"name":"Test + Repository","label":"Test_Repository","content_type":"yum","product":{"id":11,"name":"Test + Product"},"content_counts":{"docker_manifest":0,"docker_tag":0,"rpm":32,"package":32,"package_group":2,"erratum":4,"module_stream":0}},{"id":28,"name":"Test + Modular Repository","label":"Test_Modular_Repository","content_type":"yum","product":{"id":11,"name":"Test + Product"},"content_counts":{"docker_manifest":0,"docker_tag":0,"rpm":290,"package":290,"package_group":0,"erratum":14,"module_stream":24}}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]},"repositories":[],"type":"rpm","rules":[]} ' headers: @@ -278,7 +274,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '2102' + - '1864' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -292,7 +288,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=96 Strict-Transport-Security: diff --git a/tests/test_playbooks/fixtures/content_view_filter_info-1.yml b/tests/test_playbooks/fixtures/content_view_filter_info-1.yml index a08ba52e..f91204ec 100644 --- a/tests/test_playbooks/fixtures/content_view_filter_info-1.yml +++ b/tests/test_playbooks/fixtures/content_view_filter_info-1.yml @@ -14,14 +14,14 @@ interactions: uri: https://foreman.example.org/api/status response: body: - string: '{"result":"ok","status":200,"version":"3.7.0-rc2","api_version":2}' + string: '{"result":"ok","status":200,"version":"3.12.0-develop","api_version":2}' headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive Content-Length: - - '66' + - '71' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -35,7 +35,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=100 Strict-Transport-Security: @@ -70,8 +70,8 @@ interactions: body: string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": 4294967296,\n \"search\": \"name=\\\"Test Organization\\\"\",\n \"sort\": - {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\":\"Test_Organization\",\"created_at\":\"2023-06-05 - 22:21:52 UTC\",\"updated_at\":\"2023-06-05 22:21:54 UTC\",\"id\":9,\"name\":\"Test + {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\":\"Test_Organization\",\"created_at\":\"2024-07-25 + 07:48:37 UTC\",\"updated_at\":\"2024-07-25 07:48:39 UTC\",\"id\":13,\"name\":\"Test Organization\",\"title\":\"Test Organization\",\"description\":\"A test organization\"}]\n}\n" headers: Cache-Control: @@ -79,7 +79,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '388' + - '389' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -93,7 +93,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=99 Strict-Transport-Security: @@ -123,18 +123,17 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/organizations/9/content_views?search=name%3D%22Test+Content+View%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/organizations/13/content_views?search=name%3D%22Test+Content+View%22&per_page=4294967296 response: body: string: '{"total":2,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Content View\"","sort":{"by":"name","order":"asc"},"results":[{"composite":false,"component_ids":[],"default":false,"version_count":0,"latest_version":null,"latest_version_id":null,"auto_publish":false,"solve_dependencies":false,"import_only":false,"generated_for":"none","related_cv_count":0,"related_composite_cvs":[],"needs_publish":true,"filtered":true,"repository_ids":[23,24,25,26],"id":15,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":9,"organization":{"name":"Test - Organization","label":"Test_Organization","id":9},"created_at":"2023-06-05 - 22:23:21 UTC","updated_at":"2023-06-05 22:23:21 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":23,"name":"Test - Repository","label":"Test_Repository","content_type":"yum"},{"id":24,"name":"Test - Modular Repository","label":"Test_Modular_Repository","content_type":"yum"},{"id":25,"name":"Test - Docker Repository","label":"Test_Docker_Repository","content_type":"docker"},{"id":26,"name":"Test - Debian Repository","label":"Test_Debian_Repository","content_type":"deb"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]}]} + Content View\"","sort":{"by":"name","order":"asc"},"results":[{"composite":false,"component_ids":[],"duplicate_repositories_to_publish":[],"default":false,"version_count":0,"latest_version":null,"latest_version_id":null,"auto_publish":false,"solve_dependencies":false,"import_only":false,"generated_for":"none","related_cv_count":0,"related_composite_cvs":[],"filtered":true,"repository_ids":[27,28,29],"id":23,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":13,"organization":{"name":"Test + Organization","label":"Test_Organization","id":13},"created_at":"2024-07-25 + 07:49:22 UTC","updated_at":"2024-07-25 07:49:22 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":27,"name":"Test + Repository","label":"Test_Repository","content_type":"yum"},{"id":28,"name":"Test + Modular Repository","label":"Test_Modular_Repository","content_type":"yum"},{"id":29,"name":"Test + Docker Repository","label":"Test_Docker_Repository","content_type":"docker"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]}]} ' headers: @@ -143,7 +142,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '1351' + - '1272' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -155,9 +154,9 @@ interactions: Foreman_current_location: - ; ANY Foreman_current_organization: - - 9; Test Organization + - 13; Test Organization Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=98 Strict-Transport-Security: @@ -187,20 +186,19 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/content_views/15/filters?search=name%3D%22Test+Content+View+Filter+-+AllModuleStreamsNoErrata%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/content_views/23/filters?search=name%3D%22Test+Content+View+Filter+-+AllModuleStreamsNoErrata%22&per_page=4294967296 response: body: string: '{"total":10,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Content View Filter - AllModuleStreamsNoErrata\"","sort":{"by":"name","order":"asc"},"results":[{"inclusion":true,"id":36,"name":"Test - Content View Filter - AllModuleStreamsNoErrata","description":null,"created_at":"2023-06-05 - 22:23:23 UTC","updated_at":"2023-06-05 22:23:23 UTC","content_view":{"composite":false,"component_ids":[],"default":false,"version_count":0,"latest_version":null,"latest_version_id":null,"auto_publish":false,"solve_dependencies":false,"import_only":false,"generated_for":"none","related_cv_count":0,"related_composite_cvs":[],"needs_publish":true,"filtered":true,"repository_ids":[23,24,25,26],"id":15,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":9,"organization":{"name":"Test - Organization","label":"Test_Organization","id":9},"created_at":"2023-06-05 - 22:23:21 UTC","updated_at":"2023-06-05 22:23:21 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":23,"name":"Test - Repository","label":"Test_Repository","content_type":"yum"},{"id":24,"name":"Test - Modular Repository","label":"Test_Modular_Repository","content_type":"yum"},{"id":25,"name":"Test - Docker Repository","label":"Test_Docker_Repository","content_type":"docker"},{"id":26,"name":"Test - Debian Repository","label":"Test_Debian_Repository","content_type":"deb"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]},"repositories":[],"type":"modulemd","rules":[]}]} + Content View Filter - AllModuleStreamsNoErrata\"","sort":{"by":"name","order":"asc"},"results":[{"inclusion":true,"id":96,"name":"Test + Content View Filter - AllModuleStreamsNoErrata","description":null,"created_at":"2024-07-25 + 07:49:23 UTC","updated_at":"2024-07-25 07:49:23 UTC","content_view":{"composite":false,"component_ids":[],"duplicate_repositories_to_publish":[],"default":false,"version_count":0,"latest_version":null,"latest_version_id":null,"auto_publish":false,"solve_dependencies":false,"import_only":false,"generated_for":"none","related_cv_count":0,"related_composite_cvs":[],"filtered":true,"repository_ids":[29,27,28],"id":23,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":13,"organization":{"name":"Test + Organization","label":"Test_Organization","id":13},"created_at":"2024-07-25 + 07:49:22 UTC","updated_at":"2024-07-25 07:49:22 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":29,"name":"Test + Docker Repository","label":"Test_Docker_Repository","content_type":"docker"},{"id":27,"name":"Test + Repository","label":"Test_Repository","content_type":"yum"},{"id":28,"name":"Test + Modular Repository","label":"Test_Modular_Repository","content_type":"yum"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]},"repositories":[],"type":"modulemd","rules":[]}]} ' headers: @@ -209,7 +207,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '1633' + - '1554' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -223,7 +221,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=97 Strict-Transport-Security: @@ -253,23 +251,21 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/content_views/15/filters/36 + uri: https://foreman.example.org/katello/api/content_views/23/filters/96 response: body: - string: ' {"inclusion":true,"original_module_streams":true,"id":36,"name":"Test - Content View Filter - AllModuleStreamsNoErrata","description":null,"created_at":"2023-06-05 - 22:23:23 UTC","updated_at":"2023-06-05 22:23:23 UTC","content_view":{"composite":false,"component_ids":[],"default":false,"version_count":0,"latest_version":null,"latest_version_id":null,"auto_publish":false,"solve_dependencies":false,"import_only":false,"generated_for":"none","related_cv_count":0,"related_composite_cvs":[],"needs_publish":true,"filtered":true,"repository_ids":[23,24,25,26],"id":15,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":9,"organization":{"name":"Test - Organization","label":"Test_Organization","id":9},"created_at":"2023-06-05 - 22:23:21 UTC","updated_at":"2023-06-05 22:23:21 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":23,"name":"Test - Repository","label":"Test_Repository","content_type":"yum","product":{"id":8,"name":"Test - Product"},"content_counts":{"docker_manifest":0,"docker_tag":0,"rpm":32,"package":32,"package_group":2,"erratum":4,"module_stream":0}},{"id":24,"name":"Test - Modular Repository","label":"Test_Modular_Repository","content_type":"yum","product":{"id":8,"name":"Test - Product"},"content_counts":{"docker_manifest":0,"docker_tag":0,"rpm":290,"package":290,"package_group":0,"erratum":14,"module_stream":24}},{"id":25,"name":"Test - Docker Repository","label":"Test_Docker_Repository","content_type":"docker","product":{"id":8,"name":"Test - Product"},"content_counts":{"docker_manifest":72,"docker_tag":23,"rpm":0,"package":0,"package_group":0,"erratum":0,"module_stream":0}},{"id":26,"name":"Test - Debian Repository","label":"Test_Debian_Repository","content_type":"deb","product":{"id":8,"name":"Test - Product"},"content_counts":{"docker_manifest":0,"docker_tag":0,"rpm":0,"package":0,"package_group":0,"erratum":0,"module_stream":0}}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]},"repositories":[],"type":"modulemd","rules":[]} + string: ' {"inclusion":true,"original_module_streams":true,"id":96,"name":"Test + Content View Filter - AllModuleStreamsNoErrata","description":null,"created_at":"2024-07-25 + 07:49:23 UTC","updated_at":"2024-07-25 07:49:23 UTC","content_view":{"composite":false,"component_ids":[],"duplicate_repositories_to_publish":[],"default":false,"version_count":0,"latest_version":null,"latest_version_id":null,"auto_publish":false,"solve_dependencies":false,"import_only":false,"generated_for":"none","related_cv_count":0,"related_composite_cvs":[],"filtered":true,"repository_ids":[29,27,28],"id":23,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":13,"organization":{"name":"Test + Organization","label":"Test_Organization","id":13},"created_at":"2024-07-25 + 07:49:22 UTC","updated_at":"2024-07-25 07:49:22 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":29,"name":"Test + Docker Repository","label":"Test_Docker_Repository","content_type":"docker","product":{"id":11,"name":"Test + Product"},"content_counts":{"docker_manifest":177,"docker_tag":70,"rpm":0,"package":0,"package_group":0,"erratum":0,"module_stream":0}},{"id":27,"name":"Test + Repository","label":"Test_Repository","content_type":"yum","product":{"id":11,"name":"Test + Product"},"content_counts":{"docker_manifest":0,"docker_tag":0,"rpm":32,"package":32,"package_group":2,"erratum":4,"module_stream":0}},{"id":28,"name":"Test + Modular Repository","label":"Test_Modular_Repository","content_type":"yum","product":{"id":11,"name":"Test + Product"},"content_counts":{"docker_manifest":0,"docker_tag":0,"rpm":290,"package":290,"package_group":0,"erratum":14,"module_stream":24}}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]},"repositories":[],"type":"modulemd","rules":[]} ' headers: @@ -278,7 +274,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '2122' + - '1884' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -292,7 +288,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=96 Strict-Transport-Security: diff --git a/tests/test_playbooks/fixtures/content_view_filter_info-2.yml b/tests/test_playbooks/fixtures/content_view_filter_info-2.yml index bd664449..ec6bada4 100644 --- a/tests/test_playbooks/fixtures/content_view_filter_info-2.yml +++ b/tests/test_playbooks/fixtures/content_view_filter_info-2.yml @@ -14,14 +14,14 @@ interactions: uri: https://foreman.example.org/api/status response: body: - string: '{"result":"ok","status":200,"version":"3.7.0-rc2","api_version":2}' + string: '{"result":"ok","status":200,"version":"3.12.0-develop","api_version":2}' headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive Content-Length: - - '66' + - '71' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -35,7 +35,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=100 Strict-Transport-Security: @@ -70,8 +70,8 @@ interactions: body: string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": 4294967296,\n \"search\": \"name=\\\"Test Organization\\\"\",\n \"sort\": - {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\":\"Test_Organization\",\"created_at\":\"2023-06-05 - 22:21:52 UTC\",\"updated_at\":\"2023-06-05 22:21:54 UTC\",\"id\":9,\"name\":\"Test + {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\":\"Test_Organization\",\"created_at\":\"2024-07-25 + 07:48:37 UTC\",\"updated_at\":\"2024-07-25 07:48:39 UTC\",\"id\":13,\"name\":\"Test Organization\",\"title\":\"Test Organization\",\"description\":\"A test organization\"}]\n}\n" headers: Cache-Control: @@ -79,7 +79,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '388' + - '389' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -93,7 +93,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=99 Strict-Transport-Security: @@ -123,18 +123,17 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/organizations/9/content_views?search=name%3D%22Test+Content+View%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/organizations/13/content_views?search=name%3D%22Test+Content+View%22&per_page=4294967296 response: body: string: '{"total":2,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Content View\"","sort":{"by":"name","order":"asc"},"results":[{"composite":false,"component_ids":[],"default":false,"version_count":0,"latest_version":null,"latest_version_id":null,"auto_publish":false,"solve_dependencies":false,"import_only":false,"generated_for":"none","related_cv_count":0,"related_composite_cvs":[],"needs_publish":true,"filtered":true,"repository_ids":[23,24,25,26],"id":15,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":9,"organization":{"name":"Test - Organization","label":"Test_Organization","id":9},"created_at":"2023-06-05 - 22:23:21 UTC","updated_at":"2023-06-05 22:23:21 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":23,"name":"Test - Repository","label":"Test_Repository","content_type":"yum"},{"id":24,"name":"Test - Modular Repository","label":"Test_Modular_Repository","content_type":"yum"},{"id":25,"name":"Test - Docker Repository","label":"Test_Docker_Repository","content_type":"docker"},{"id":26,"name":"Test - Debian Repository","label":"Test_Debian_Repository","content_type":"deb"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]}]} + Content View\"","sort":{"by":"name","order":"asc"},"results":[{"composite":false,"component_ids":[],"duplicate_repositories_to_publish":[],"default":false,"version_count":0,"latest_version":null,"latest_version_id":null,"auto_publish":false,"solve_dependencies":false,"import_only":false,"generated_for":"none","related_cv_count":0,"related_composite_cvs":[],"filtered":true,"repository_ids":[27,28,29],"id":23,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":13,"organization":{"name":"Test + Organization","label":"Test_Organization","id":13},"created_at":"2024-07-25 + 07:49:22 UTC","updated_at":"2024-07-25 07:49:22 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":27,"name":"Test + Repository","label":"Test_Repository","content_type":"yum"},{"id":28,"name":"Test + Modular Repository","label":"Test_Modular_Repository","content_type":"yum"},{"id":29,"name":"Test + Docker Repository","label":"Test_Docker_Repository","content_type":"docker"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]}]} ' headers: @@ -143,7 +142,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '1351' + - '1272' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -155,9 +154,9 @@ interactions: Foreman_current_location: - ; ANY Foreman_current_organization: - - 9; Test Organization + - 13; Test Organization Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=98 Strict-Transport-Security: @@ -187,20 +186,19 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/content_views/15/filters?search=name%3D%22Test+Content+View+Filter+-+AllDebs%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/content_views/23/filters?search=name%3D%22Test+Content+View+Filter+-+rpm%22&per_page=4294967296 response: body: string: '{"total":10,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Content View Filter - AllDebs\"","sort":{"by":"name","order":"asc"},"results":[{"inclusion":true,"id":37,"name":"Test - Content View Filter - AllDebs","description":null,"created_at":"2023-06-05 - 22:23:24 UTC","updated_at":"2023-06-05 22:23:24 UTC","content_view":{"composite":false,"component_ids":[],"default":false,"version_count":0,"latest_version":null,"latest_version_id":null,"auto_publish":false,"solve_dependencies":false,"import_only":false,"generated_for":"none","related_cv_count":0,"related_composite_cvs":[],"needs_publish":true,"filtered":true,"repository_ids":[23,24,25,26],"id":15,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":9,"organization":{"name":"Test - Organization","label":"Test_Organization","id":9},"created_at":"2023-06-05 - 22:23:21 UTC","updated_at":"2023-06-05 22:23:21 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":23,"name":"Test - Repository","label":"Test_Repository","content_type":"yum"},{"id":24,"name":"Test - Modular Repository","label":"Test_Modular_Repository","content_type":"yum"},{"id":25,"name":"Test - Docker Repository","label":"Test_Docker_Repository","content_type":"docker"},{"id":26,"name":"Test - Debian Repository","label":"Test_Debian_Repository","content_type":"deb"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]},"repositories":[],"type":"deb","rules":[]}]} + Content View Filter - rpm\"","sort":{"by":"name","order":"asc"},"results":[{"inclusion":false,"id":98,"name":"Test + Content View Filter - rpm","description":null,"created_at":"2024-07-25 07:49:24 + UTC","updated_at":"2024-07-25 07:49:24 UTC","content_view":{"composite":false,"component_ids":[],"duplicate_repositories_to_publish":[],"default":false,"version_count":0,"latest_version":null,"latest_version_id":null,"auto_publish":false,"solve_dependencies":false,"import_only":false,"generated_for":"none","related_cv_count":0,"related_composite_cvs":[],"filtered":true,"repository_ids":[29,27,28],"id":23,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":13,"organization":{"name":"Test + Organization","label":"Test_Organization","id":13},"created_at":"2024-07-25 + 07:49:22 UTC","updated_at":"2024-07-25 07:49:22 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":29,"name":"Test + Docker Repository","label":"Test_Docker_Repository","content_type":"docker"},{"id":27,"name":"Test + Repository","label":"Test_Repository","content_type":"yum"},{"id":28,"name":"Test + Modular Repository","label":"Test_Modular_Repository","content_type":"yum"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]},"repositories":[],"type":"rpm","rules":[]}]} ' headers: @@ -209,7 +207,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '1594' + - '1508' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -223,7 +221,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=97 Strict-Transport-Security: @@ -253,22 +251,21 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/content_views/15/filters/37 + uri: https://foreman.example.org/katello/api/content_views/23/filters/98 response: body: - string: ' {"inclusion":true,"id":37,"name":"Test Content View Filter - AllDebs","description":null,"created_at":"2023-06-05 - 22:23:24 UTC","updated_at":"2023-06-05 22:23:24 UTC","content_view":{"composite":false,"component_ids":[],"default":false,"version_count":0,"latest_version":null,"latest_version_id":null,"auto_publish":false,"solve_dependencies":false,"import_only":false,"generated_for":"none","related_cv_count":0,"related_composite_cvs":[],"needs_publish":true,"filtered":true,"repository_ids":[23,24,25,26],"id":15,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":9,"organization":{"name":"Test - Organization","label":"Test_Organization","id":9},"created_at":"2023-06-05 - 22:23:21 UTC","updated_at":"2023-06-05 22:23:21 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":23,"name":"Test - Repository","label":"Test_Repository","content_type":"yum","product":{"id":8,"name":"Test - Product"},"content_counts":{"docker_manifest":0,"docker_tag":0,"rpm":32,"package":32,"package_group":2,"erratum":4,"module_stream":0}},{"id":24,"name":"Test - Modular Repository","label":"Test_Modular_Repository","content_type":"yum","product":{"id":8,"name":"Test - Product"},"content_counts":{"docker_manifest":0,"docker_tag":0,"rpm":290,"package":290,"package_group":0,"erratum":14,"module_stream":24}},{"id":25,"name":"Test - Docker Repository","label":"Test_Docker_Repository","content_type":"docker","product":{"id":8,"name":"Test - Product"},"content_counts":{"docker_manifest":72,"docker_tag":23,"rpm":0,"package":0,"package_group":0,"erratum":0,"module_stream":0}},{"id":26,"name":"Test - Debian Repository","label":"Test_Debian_Repository","content_type":"deb","product":{"id":8,"name":"Test - Product"},"content_counts":{"docker_manifest":0,"docker_tag":0,"rpm":0,"package":0,"package_group":0,"erratum":0,"module_stream":0}}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]},"repositories":[],"type":"deb","rules":[]} + string: ' {"inclusion":false,"original_packages":false,"id":98,"name":"Test + Content View Filter - rpm","description":null,"created_at":"2024-07-25 07:49:24 + UTC","updated_at":"2024-07-25 07:49:24 UTC","content_view":{"composite":false,"component_ids":[],"duplicate_repositories_to_publish":[],"default":false,"version_count":0,"latest_version":null,"latest_version_id":null,"auto_publish":false,"solve_dependencies":false,"import_only":false,"generated_for":"none","related_cv_count":0,"related_composite_cvs":[],"filtered":true,"repository_ids":[29,27,28],"id":23,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":13,"organization":{"name":"Test + Organization","label":"Test_Organization","id":13},"created_at":"2024-07-25 + 07:49:22 UTC","updated_at":"2024-07-25 07:49:22 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":29,"name":"Test + Docker Repository","label":"Test_Docker_Repository","content_type":"docker","product":{"id":11,"name":"Test + Product"},"content_counts":{"docker_manifest":177,"docker_tag":70,"rpm":0,"package":0,"package_group":0,"erratum":0,"module_stream":0}},{"id":27,"name":"Test + Repository","label":"Test_Repository","content_type":"yum","product":{"id":11,"name":"Test + Product"},"content_counts":{"docker_manifest":0,"docker_tag":0,"rpm":32,"package":32,"package_group":2,"erratum":4,"module_stream":0}},{"id":28,"name":"Test + Modular Repository","label":"Test_Modular_Repository","content_type":"yum","product":{"id":11,"name":"Test + Product"},"content_counts":{"docker_manifest":0,"docker_tag":0,"rpm":290,"package":290,"package_group":0,"erratum":14,"module_stream":24}}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]},"repositories":[],"type":"rpm","rules":[]} ' headers: @@ -277,7 +274,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '2069' + - '1854' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -291,7 +288,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=96 Strict-Transport-Security: diff --git a/tests/test_playbooks/fixtures/content_view_filter_info-3.yml b/tests/test_playbooks/fixtures/content_view_filter_info-3.yml index e2c22036..070e7d75 100644 --- a/tests/test_playbooks/fixtures/content_view_filter_info-3.yml +++ b/tests/test_playbooks/fixtures/content_view_filter_info-3.yml @@ -14,14 +14,14 @@ interactions: uri: https://foreman.example.org/api/status response: body: - string: '{"result":"ok","status":200,"version":"3.7.0-rc2","api_version":2}' + string: '{"result":"ok","status":200,"version":"3.12.0-develop","api_version":2}' headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive Content-Length: - - '66' + - '71' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -35,7 +35,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=100 Strict-Transport-Security: @@ -70,8 +70,8 @@ interactions: body: string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": 4294967296,\n \"search\": \"name=\\\"Test Organization\\\"\",\n \"sort\": - {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\":\"Test_Organization\",\"created_at\":\"2023-06-05 - 22:21:52 UTC\",\"updated_at\":\"2023-06-05 22:21:54 UTC\",\"id\":9,\"name\":\"Test + {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\":\"Test_Organization\",\"created_at\":\"2024-07-25 + 07:48:37 UTC\",\"updated_at\":\"2024-07-25 07:48:39 UTC\",\"id\":13,\"name\":\"Test Organization\",\"title\":\"Test Organization\",\"description\":\"A test organization\"}]\n}\n" headers: Cache-Control: @@ -79,7 +79,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '388' + - '389' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -93,7 +93,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=99 Strict-Transport-Security: @@ -123,18 +123,17 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/organizations/9/content_views?search=name%3D%22Test+Content+View%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/organizations/13/content_views?search=name%3D%22Test+Content+View%22&per_page=4294967296 response: body: string: '{"total":2,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Content View\"","sort":{"by":"name","order":"asc"},"results":[{"composite":false,"component_ids":[],"default":false,"version_count":0,"latest_version":null,"latest_version_id":null,"auto_publish":false,"solve_dependencies":false,"import_only":false,"generated_for":"none","related_cv_count":0,"related_composite_cvs":[],"needs_publish":true,"filtered":true,"repository_ids":[23,24,25,26],"id":15,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":9,"organization":{"name":"Test - Organization","label":"Test_Organization","id":9},"created_at":"2023-06-05 - 22:23:21 UTC","updated_at":"2023-06-05 22:23:21 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":23,"name":"Test - Repository","label":"Test_Repository","content_type":"yum"},{"id":24,"name":"Test - Modular Repository","label":"Test_Modular_Repository","content_type":"yum"},{"id":25,"name":"Test - Docker Repository","label":"Test_Docker_Repository","content_type":"docker"},{"id":26,"name":"Test - Debian Repository","label":"Test_Debian_Repository","content_type":"deb"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]}]} + Content View\"","sort":{"by":"name","order":"asc"},"results":[{"composite":false,"component_ids":[],"duplicate_repositories_to_publish":[],"default":false,"version_count":0,"latest_version":null,"latest_version_id":null,"auto_publish":false,"solve_dependencies":false,"import_only":false,"generated_for":"none","related_cv_count":0,"related_composite_cvs":[],"filtered":true,"repository_ids":[27,28,29],"id":23,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":13,"organization":{"name":"Test + Organization","label":"Test_Organization","id":13},"created_at":"2024-07-25 + 07:49:22 UTC","updated_at":"2024-07-25 07:49:22 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":27,"name":"Test + Repository","label":"Test_Repository","content_type":"yum"},{"id":28,"name":"Test + Modular Repository","label":"Test_Modular_Repository","content_type":"yum"},{"id":29,"name":"Test + Docker Repository","label":"Test_Docker_Repository","content_type":"docker"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]}]} ' headers: @@ -143,7 +142,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '1351' + - '1272' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -155,9 +154,9 @@ interactions: Foreman_current_location: - ; ANY Foreman_current_organization: - - 9; Test Organization + - 13; Test Organization Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=98 Strict-Transport-Security: @@ -187,20 +186,19 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/content_views/15/filters?search=name%3D%22Test+Content+View+Filter+-+rpm%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/content_views/23/filters?search=name%3D%22Test+Content+View+Filter+-+package_group%22&per_page=4294967296 response: body: string: '{"total":10,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Content View Filter - rpm\"","sort":{"by":"name","order":"asc"},"results":[{"inclusion":false,"id":38,"name":"Test - Content View Filter - rpm","description":null,"created_at":"2023-06-05 22:23:25 - UTC","updated_at":"2023-06-05 22:23:25 UTC","content_view":{"composite":false,"component_ids":[],"default":false,"version_count":0,"latest_version":null,"latest_version_id":null,"auto_publish":false,"solve_dependencies":false,"import_only":false,"generated_for":"none","related_cv_count":0,"related_composite_cvs":[],"needs_publish":true,"filtered":true,"repository_ids":[23,24,25,26],"id":15,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":9,"organization":{"name":"Test - Organization","label":"Test_Organization","id":9},"created_at":"2023-06-05 - 22:23:21 UTC","updated_at":"2023-06-05 22:23:21 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":23,"name":"Test - Repository","label":"Test_Repository","content_type":"yum"},{"id":24,"name":"Test - Modular Repository","label":"Test_Modular_Repository","content_type":"yum"},{"id":25,"name":"Test - Docker Repository","label":"Test_Docker_Repository","content_type":"docker"},{"id":26,"name":"Test - Debian Repository","label":"Test_Debian_Repository","content_type":"deb"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]},"repositories":[],"type":"rpm","rules":[]}]} + Content View Filter - package_group\"","sort":{"by":"name","order":"asc"},"results":[{"inclusion":false,"id":99,"name":"Test + Content View Filter - package_group","description":null,"created_at":"2024-07-25 + 07:49:25 UTC","updated_at":"2024-07-25 07:49:25 UTC","content_view":{"composite":false,"component_ids":[],"duplicate_repositories_to_publish":[],"default":false,"version_count":0,"latest_version":null,"latest_version_id":null,"auto_publish":false,"solve_dependencies":false,"import_only":false,"generated_for":"none","related_cv_count":0,"related_composite_cvs":[],"filtered":true,"repository_ids":[29,27,28],"id":23,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":13,"organization":{"name":"Test + Organization","label":"Test_Organization","id":13},"created_at":"2024-07-25 + 07:49:22 UTC","updated_at":"2024-07-25 07:49:22 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":29,"name":"Test + Docker Repository","label":"Test_Docker_Repository","content_type":"docker"},{"id":27,"name":"Test + Repository","label":"Test_Repository","content_type":"yum"},{"id":28,"name":"Test + Modular Repository","label":"Test_Modular_Repository","content_type":"yum"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]},"repositories":[],"type":"package_group","rules":[]}]} ' headers: @@ -209,7 +207,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '1587' + - '1538' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -223,7 +221,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=97 Strict-Transport-Security: @@ -253,23 +251,20 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/content_views/15/filters/38 + uri: https://foreman.example.org/katello/api/content_views/23/filters/99 response: body: - string: ' {"inclusion":false,"original_packages":false,"id":38,"name":"Test - Content View Filter - rpm","description":null,"created_at":"2023-06-05 22:23:25 - UTC","updated_at":"2023-06-05 22:23:25 UTC","content_view":{"composite":false,"component_ids":[],"default":false,"version_count":0,"latest_version":null,"latest_version_id":null,"auto_publish":false,"solve_dependencies":false,"import_only":false,"generated_for":"none","related_cv_count":0,"related_composite_cvs":[],"needs_publish":true,"filtered":true,"repository_ids":[23,24,25,26],"id":15,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":9,"organization":{"name":"Test - Organization","label":"Test_Organization","id":9},"created_at":"2023-06-05 - 22:23:21 UTC","updated_at":"2023-06-05 22:23:21 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":23,"name":"Test - Repository","label":"Test_Repository","content_type":"yum","product":{"id":8,"name":"Test - Product"},"content_counts":{"docker_manifest":0,"docker_tag":0,"rpm":32,"package":32,"package_group":2,"erratum":4,"module_stream":0}},{"id":24,"name":"Test - Modular Repository","label":"Test_Modular_Repository","content_type":"yum","product":{"id":8,"name":"Test - Product"},"content_counts":{"docker_manifest":0,"docker_tag":0,"rpm":290,"package":290,"package_group":0,"erratum":14,"module_stream":24}},{"id":25,"name":"Test - Docker Repository","label":"Test_Docker_Repository","content_type":"docker","product":{"id":8,"name":"Test - Product"},"content_counts":{"docker_manifest":72,"docker_tag":23,"rpm":0,"package":0,"package_group":0,"erratum":0,"module_stream":0}},{"id":26,"name":"Test - Debian Repository","label":"Test_Debian_Repository","content_type":"deb","product":{"id":8,"name":"Test - Product"},"content_counts":{"docker_manifest":0,"docker_tag":0,"rpm":0,"package":0,"package_group":0,"erratum":0,"module_stream":0}}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]},"repositories":[],"type":"rpm","rules":[]} + string: ' {"inclusion":false,"id":99,"name":"Test Content View Filter - package_group","description":null,"created_at":"2024-07-25 + 07:49:25 UTC","updated_at":"2024-07-25 07:49:25 UTC","content_view":{"composite":false,"component_ids":[],"duplicate_repositories_to_publish":[],"default":false,"version_count":0,"latest_version":null,"latest_version_id":null,"auto_publish":false,"solve_dependencies":false,"import_only":false,"generated_for":"none","related_cv_count":0,"related_composite_cvs":[],"filtered":true,"repository_ids":[29,27,28],"id":23,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":13,"organization":{"name":"Test + Organization","label":"Test_Organization","id":13},"created_at":"2024-07-25 + 07:49:22 UTC","updated_at":"2024-07-25 07:49:22 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":29,"name":"Test + Docker Repository","label":"Test_Docker_Repository","content_type":"docker","product":{"id":11,"name":"Test + Product"},"content_counts":{"docker_manifest":177,"docker_tag":70,"rpm":0,"package":0,"package_group":0,"erratum":0,"module_stream":0}},{"id":27,"name":"Test + Repository","label":"Test_Repository","content_type":"yum","product":{"id":11,"name":"Test + Product"},"content_counts":{"docker_manifest":0,"docker_tag":0,"rpm":32,"package":32,"package_group":2,"erratum":4,"module_stream":0}},{"id":28,"name":"Test + Modular Repository","label":"Test_Modular_Repository","content_type":"yum","product":{"id":11,"name":"Test + Product"},"content_counts":{"docker_manifest":0,"docker_tag":0,"rpm":290,"package":290,"package_group":0,"erratum":14,"module_stream":24}}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]},"repositories":[],"type":"package_group","rules":[]} ' headers: @@ -278,7 +273,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '2092' + - '1848' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -292,7 +287,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=96 Strict-Transport-Security: diff --git a/tests/test_playbooks/fixtures/content_view_filter_info-4.yml b/tests/test_playbooks/fixtures/content_view_filter_info-4.yml index ba804a2e..c5d256d5 100644 --- a/tests/test_playbooks/fixtures/content_view_filter_info-4.yml +++ b/tests/test_playbooks/fixtures/content_view_filter_info-4.yml @@ -14,14 +14,14 @@ interactions: uri: https://foreman.example.org/api/status response: body: - string: '{"result":"ok","status":200,"version":"3.7.0-rc2","api_version":2}' + string: '{"result":"ok","status":200,"version":"3.12.0-develop","api_version":2}' headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive Content-Length: - - '66' + - '71' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -35,7 +35,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=100 Strict-Transport-Security: @@ -70,8 +70,8 @@ interactions: body: string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": 4294967296,\n \"search\": \"name=\\\"Test Organization\\\"\",\n \"sort\": - {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\":\"Test_Organization\",\"created_at\":\"2023-06-05 - 22:21:52 UTC\",\"updated_at\":\"2023-06-05 22:21:54 UTC\",\"id\":9,\"name\":\"Test + {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\":\"Test_Organization\",\"created_at\":\"2024-07-25 + 07:48:37 UTC\",\"updated_at\":\"2024-07-25 07:48:39 UTC\",\"id\":13,\"name\":\"Test Organization\",\"title\":\"Test Organization\",\"description\":\"A test organization\"}]\n}\n" headers: Cache-Control: @@ -79,7 +79,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '388' + - '389' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -93,7 +93,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=99 Strict-Transport-Security: @@ -123,18 +123,17 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/organizations/9/content_views?search=name%3D%22Test+Content+View%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/organizations/13/content_views?search=name%3D%22Test+Content+View%22&per_page=4294967296 response: body: string: '{"total":2,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Content View\"","sort":{"by":"name","order":"asc"},"results":[{"composite":false,"component_ids":[],"default":false,"version_count":0,"latest_version":null,"latest_version_id":null,"auto_publish":false,"solve_dependencies":false,"import_only":false,"generated_for":"none","related_cv_count":0,"related_composite_cvs":[],"needs_publish":true,"filtered":true,"repository_ids":[23,24,25,26],"id":15,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":9,"organization":{"name":"Test - Organization","label":"Test_Organization","id":9},"created_at":"2023-06-05 - 22:23:21 UTC","updated_at":"2023-06-05 22:23:21 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":23,"name":"Test - Repository","label":"Test_Repository","content_type":"yum"},{"id":24,"name":"Test - Modular Repository","label":"Test_Modular_Repository","content_type":"yum"},{"id":25,"name":"Test - Docker Repository","label":"Test_Docker_Repository","content_type":"docker"},{"id":26,"name":"Test - Debian Repository","label":"Test_Debian_Repository","content_type":"deb"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]}]} + Content View\"","sort":{"by":"name","order":"asc"},"results":[{"composite":false,"component_ids":[],"duplicate_repositories_to_publish":[],"default":false,"version_count":0,"latest_version":null,"latest_version_id":null,"auto_publish":false,"solve_dependencies":false,"import_only":false,"generated_for":"none","related_cv_count":0,"related_composite_cvs":[],"filtered":true,"repository_ids":[27,28,29],"id":23,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":13,"organization":{"name":"Test + Organization","label":"Test_Organization","id":13},"created_at":"2024-07-25 + 07:49:22 UTC","updated_at":"2024-07-25 07:49:22 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":27,"name":"Test + Repository","label":"Test_Repository","content_type":"yum"},{"id":28,"name":"Test + Modular Repository","label":"Test_Modular_Repository","content_type":"yum"},{"id":29,"name":"Test + Docker Repository","label":"Test_Docker_Repository","content_type":"docker"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]}]} ' headers: @@ -143,7 +142,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '1351' + - '1272' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -155,9 +154,9 @@ interactions: Foreman_current_location: - ; ANY Foreman_current_organization: - - 9; Test Organization + - 13; Test Organization Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=98 Strict-Transport-Security: @@ -187,20 +186,19 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/content_views/15/filters?search=name%3D%22Test+Content+View+Filter+-+package_group%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/content_views/23/filters?search=name%3D%22Test+Content+View+Filter+-+erratum_by_id%22&per_page=4294967296 response: body: string: '{"total":10,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Content View Filter - package_group\"","sort":{"by":"name","order":"asc"},"results":[{"inclusion":false,"id":39,"name":"Test - Content View Filter - package_group","description":null,"created_at":"2023-06-05 - 22:23:26 UTC","updated_at":"2023-06-05 22:23:26 UTC","content_view":{"composite":false,"component_ids":[],"default":false,"version_count":0,"latest_version":null,"latest_version_id":null,"auto_publish":false,"solve_dependencies":false,"import_only":false,"generated_for":"none","related_cv_count":0,"related_composite_cvs":[],"needs_publish":true,"filtered":true,"repository_ids":[23,24,25,26],"id":15,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":9,"organization":{"name":"Test - Organization","label":"Test_Organization","id":9},"created_at":"2023-06-05 - 22:23:21 UTC","updated_at":"2023-06-05 22:23:21 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":23,"name":"Test - Repository","label":"Test_Repository","content_type":"yum"},{"id":24,"name":"Test - Modular Repository","label":"Test_Modular_Repository","content_type":"yum"},{"id":25,"name":"Test - Docker Repository","label":"Test_Docker_Repository","content_type":"docker"},{"id":26,"name":"Test - Debian Repository","label":"Test_Debian_Repository","content_type":"deb"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]},"repositories":[],"type":"package_group","rules":[]}]} + Content View Filter - erratum_by_id\"","sort":{"by":"name","order":"asc"},"results":[{"inclusion":false,"id":100,"name":"Test + Content View Filter - erratum_by_id","description":null,"created_at":"2024-07-25 + 07:49:25 UTC","updated_at":"2024-07-25 07:49:25 UTC","content_view":{"composite":false,"component_ids":[],"duplicate_repositories_to_publish":[],"default":false,"version_count":0,"latest_version":null,"latest_version_id":null,"auto_publish":false,"solve_dependencies":false,"import_only":false,"generated_for":"none","related_cv_count":0,"related_composite_cvs":[],"filtered":true,"repository_ids":[29,27,28],"id":23,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":13,"organization":{"name":"Test + Organization","label":"Test_Organization","id":13},"created_at":"2024-07-25 + 07:49:22 UTC","updated_at":"2024-07-25 07:49:22 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":29,"name":"Test + Docker Repository","label":"Test_Docker_Repository","content_type":"docker"},{"id":27,"name":"Test + Repository","label":"Test_Repository","content_type":"yum"},{"id":28,"name":"Test + Modular Repository","label":"Test_Modular_Repository","content_type":"yum"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]},"repositories":[],"type":"erratum","rules":[]}]} ' headers: @@ -209,7 +207,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '1617' + - '1533' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -223,7 +221,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=97 Strict-Transport-Security: @@ -253,22 +251,20 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/content_views/15/filters/39 + uri: https://foreman.example.org/katello/api/content_views/23/filters/100 response: body: - string: ' {"inclusion":false,"id":39,"name":"Test Content View Filter - package_group","description":null,"created_at":"2023-06-05 - 22:23:26 UTC","updated_at":"2023-06-05 22:23:26 UTC","content_view":{"composite":false,"component_ids":[],"default":false,"version_count":0,"latest_version":null,"latest_version_id":null,"auto_publish":false,"solve_dependencies":false,"import_only":false,"generated_for":"none","related_cv_count":0,"related_composite_cvs":[],"needs_publish":true,"filtered":true,"repository_ids":[23,24,25,26],"id":15,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":9,"organization":{"name":"Test - Organization","label":"Test_Organization","id":9},"created_at":"2023-06-05 - 22:23:21 UTC","updated_at":"2023-06-05 22:23:21 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":23,"name":"Test - Repository","label":"Test_Repository","content_type":"yum","product":{"id":8,"name":"Test - Product"},"content_counts":{"docker_manifest":0,"docker_tag":0,"rpm":32,"package":32,"package_group":2,"erratum":4,"module_stream":0}},{"id":24,"name":"Test - Modular Repository","label":"Test_Modular_Repository","content_type":"yum","product":{"id":8,"name":"Test - Product"},"content_counts":{"docker_manifest":0,"docker_tag":0,"rpm":290,"package":290,"package_group":0,"erratum":14,"module_stream":24}},{"id":25,"name":"Test - Docker Repository","label":"Test_Docker_Repository","content_type":"docker","product":{"id":8,"name":"Test - Product"},"content_counts":{"docker_manifest":72,"docker_tag":23,"rpm":0,"package":0,"package_group":0,"erratum":0,"module_stream":0}},{"id":26,"name":"Test - Debian Repository","label":"Test_Debian_Repository","content_type":"deb","product":{"id":8,"name":"Test - Product"},"content_counts":{"docker_manifest":0,"docker_tag":0,"rpm":0,"package":0,"package_group":0,"erratum":0,"module_stream":0}}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]},"repositories":[],"type":"package_group","rules":[]} + string: ' {"inclusion":false,"id":100,"name":"Test Content View Filter - erratum_by_id","description":null,"created_at":"2024-07-25 + 07:49:25 UTC","updated_at":"2024-07-25 07:49:25 UTC","content_view":{"composite":false,"component_ids":[],"duplicate_repositories_to_publish":[],"default":false,"version_count":0,"latest_version":null,"latest_version_id":null,"auto_publish":false,"solve_dependencies":false,"import_only":false,"generated_for":"none","related_cv_count":0,"related_composite_cvs":[],"filtered":true,"repository_ids":[29,27,28],"id":23,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":13,"organization":{"name":"Test + Organization","label":"Test_Organization","id":13},"created_at":"2024-07-25 + 07:49:22 UTC","updated_at":"2024-07-25 07:49:22 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":29,"name":"Test + Docker Repository","label":"Test_Docker_Repository","content_type":"docker","product":{"id":11,"name":"Test + Product"},"content_counts":{"docker_manifest":177,"docker_tag":70,"rpm":0,"package":0,"package_group":0,"erratum":0,"module_stream":0}},{"id":27,"name":"Test + Repository","label":"Test_Repository","content_type":"yum","product":{"id":11,"name":"Test + Product"},"content_counts":{"docker_manifest":0,"docker_tag":0,"rpm":32,"package":32,"package_group":2,"erratum":4,"module_stream":0}},{"id":28,"name":"Test + Modular Repository","label":"Test_Modular_Repository","content_type":"yum","product":{"id":11,"name":"Test + Product"},"content_counts":{"docker_manifest":0,"docker_tag":0,"rpm":290,"package":290,"package_group":0,"erratum":14,"module_stream":24}}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]},"repositories":[],"type":"erratum","rules":[]} ' headers: @@ -277,7 +273,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '2086' + - '1843' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -291,7 +287,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=96 Strict-Transport-Security: diff --git a/tests/test_playbooks/fixtures/content_view_filter_info-5.yml b/tests/test_playbooks/fixtures/content_view_filter_info-5.yml index 4f4e6a65..6154cc3c 100644 --- a/tests/test_playbooks/fixtures/content_view_filter_info-5.yml +++ b/tests/test_playbooks/fixtures/content_view_filter_info-5.yml @@ -14,14 +14,14 @@ interactions: uri: https://foreman.example.org/api/status response: body: - string: '{"result":"ok","status":200,"version":"3.7.0-rc2","api_version":2}' + string: '{"result":"ok","status":200,"version":"3.12.0-develop","api_version":2}' headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive Content-Length: - - '66' + - '71' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -35,7 +35,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=100 Strict-Transport-Security: @@ -70,8 +70,8 @@ interactions: body: string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": 4294967296,\n \"search\": \"name=\\\"Test Organization\\\"\",\n \"sort\": - {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\":\"Test_Organization\",\"created_at\":\"2023-06-05 - 22:21:52 UTC\",\"updated_at\":\"2023-06-05 22:21:54 UTC\",\"id\":9,\"name\":\"Test + {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\":\"Test_Organization\",\"created_at\":\"2024-07-25 + 07:48:37 UTC\",\"updated_at\":\"2024-07-25 07:48:39 UTC\",\"id\":13,\"name\":\"Test Organization\",\"title\":\"Test Organization\",\"description\":\"A test organization\"}]\n}\n" headers: Cache-Control: @@ -79,7 +79,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '388' + - '389' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -93,7 +93,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=99 Strict-Transport-Security: @@ -123,18 +123,17 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/organizations/9/content_views?search=name%3D%22Test+Content+View%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/organizations/13/content_views?search=name%3D%22Test+Content+View%22&per_page=4294967296 response: body: string: '{"total":2,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Content View\"","sort":{"by":"name","order":"asc"},"results":[{"composite":false,"component_ids":[],"default":false,"version_count":0,"latest_version":null,"latest_version_id":null,"auto_publish":false,"solve_dependencies":false,"import_only":false,"generated_for":"none","related_cv_count":0,"related_composite_cvs":[],"needs_publish":true,"filtered":true,"repository_ids":[23,24,25,26],"id":15,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":9,"organization":{"name":"Test - Organization","label":"Test_Organization","id":9},"created_at":"2023-06-05 - 22:23:21 UTC","updated_at":"2023-06-05 22:23:21 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":23,"name":"Test - Repository","label":"Test_Repository","content_type":"yum"},{"id":24,"name":"Test - Modular Repository","label":"Test_Modular_Repository","content_type":"yum"},{"id":25,"name":"Test - Docker Repository","label":"Test_Docker_Repository","content_type":"docker"},{"id":26,"name":"Test - Debian Repository","label":"Test_Debian_Repository","content_type":"deb"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]}]} + Content View\"","sort":{"by":"name","order":"asc"},"results":[{"composite":false,"component_ids":[],"duplicate_repositories_to_publish":[],"default":false,"version_count":0,"latest_version":null,"latest_version_id":null,"auto_publish":false,"solve_dependencies":false,"import_only":false,"generated_for":"none","related_cv_count":0,"related_composite_cvs":[],"filtered":true,"repository_ids":[27,28,29],"id":23,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":13,"organization":{"name":"Test + Organization","label":"Test_Organization","id":13},"created_at":"2024-07-25 + 07:49:22 UTC","updated_at":"2024-07-25 07:49:22 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":27,"name":"Test + Repository","label":"Test_Repository","content_type":"yum"},{"id":28,"name":"Test + Modular Repository","label":"Test_Modular_Repository","content_type":"yum"},{"id":29,"name":"Test + Docker Repository","label":"Test_Docker_Repository","content_type":"docker"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]}]} ' headers: @@ -143,7 +142,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '1351' + - '1272' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -155,9 +154,9 @@ interactions: Foreman_current_location: - ; ANY Foreman_current_organization: - - 9; Test Organization + - 13; Test Organization Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=98 Strict-Transport-Security: @@ -187,20 +186,19 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/content_views/15/filters?search=name%3D%22Test+Content+View+Filter+-+erratum_by_id%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/content_views/23/filters?search=name%3D%22Test+Content+View+Filter+-+erratum_by_date%22&per_page=4294967296 response: body: string: '{"total":10,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Content View Filter - erratum_by_id\"","sort":{"by":"name","order":"asc"},"results":[{"inclusion":false,"id":40,"name":"Test - Content View Filter - erratum_by_id","description":null,"created_at":"2023-06-05 - 22:23:27 UTC","updated_at":"2023-06-05 22:23:27 UTC","content_view":{"composite":false,"component_ids":[],"default":false,"version_count":0,"latest_version":null,"latest_version_id":null,"auto_publish":false,"solve_dependencies":false,"import_only":false,"generated_for":"none","related_cv_count":0,"related_composite_cvs":[],"needs_publish":true,"filtered":true,"repository_ids":[23,24,25,26],"id":15,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":9,"organization":{"name":"Test - Organization","label":"Test_Organization","id":9},"created_at":"2023-06-05 - 22:23:21 UTC","updated_at":"2023-06-05 22:23:21 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":23,"name":"Test - Repository","label":"Test_Repository","content_type":"yum"},{"id":24,"name":"Test - Modular Repository","label":"Test_Modular_Repository","content_type":"yum"},{"id":25,"name":"Test - Docker Repository","label":"Test_Docker_Repository","content_type":"docker"},{"id":26,"name":"Test - Debian Repository","label":"Test_Debian_Repository","content_type":"deb"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]},"repositories":[],"type":"erratum","rules":[]}]} + Content View Filter - erratum_by_date\"","sort":{"by":"name","order":"asc"},"results":[{"inclusion":false,"id":101,"name":"Test + Content View Filter - erratum_by_date","description":null,"created_at":"2024-07-25 + 07:49:26 UTC","updated_at":"2024-07-25 07:49:26 UTC","content_view":{"composite":false,"component_ids":[],"duplicate_repositories_to_publish":[],"default":false,"version_count":0,"latest_version":null,"latest_version_id":null,"auto_publish":false,"solve_dependencies":false,"import_only":false,"generated_for":"none","related_cv_count":0,"related_composite_cvs":[],"filtered":true,"repository_ids":[29,27,28],"id":23,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":13,"organization":{"name":"Test + Organization","label":"Test_Organization","id":13},"created_at":"2024-07-25 + 07:49:22 UTC","updated_at":"2024-07-25 07:49:22 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":29,"name":"Test + Docker Repository","label":"Test_Docker_Repository","content_type":"docker"},{"id":27,"name":"Test + Repository","label":"Test_Repository","content_type":"yum"},{"id":28,"name":"Test + Modular Repository","label":"Test_Modular_Repository","content_type":"yum"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]},"repositories":[],"type":"erratum","rules":[]}]} ' headers: @@ -209,7 +207,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '1611' + - '1537' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -223,7 +221,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=97 Strict-Transport-Security: @@ -253,22 +251,20 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/content_views/15/filters/40 + uri: https://foreman.example.org/katello/api/content_views/23/filters/101 response: body: - string: ' {"inclusion":false,"id":40,"name":"Test Content View Filter - erratum_by_id","description":null,"created_at":"2023-06-05 - 22:23:27 UTC","updated_at":"2023-06-05 22:23:27 UTC","content_view":{"composite":false,"component_ids":[],"default":false,"version_count":0,"latest_version":null,"latest_version_id":null,"auto_publish":false,"solve_dependencies":false,"import_only":false,"generated_for":"none","related_cv_count":0,"related_composite_cvs":[],"needs_publish":true,"filtered":true,"repository_ids":[23,24,25,26],"id":15,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":9,"organization":{"name":"Test - Organization","label":"Test_Organization","id":9},"created_at":"2023-06-05 - 22:23:21 UTC","updated_at":"2023-06-05 22:23:21 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":23,"name":"Test - Repository","label":"Test_Repository","content_type":"yum","product":{"id":8,"name":"Test - Product"},"content_counts":{"docker_manifest":0,"docker_tag":0,"rpm":32,"package":32,"package_group":2,"erratum":4,"module_stream":0}},{"id":24,"name":"Test - Modular Repository","label":"Test_Modular_Repository","content_type":"yum","product":{"id":8,"name":"Test - Product"},"content_counts":{"docker_manifest":0,"docker_tag":0,"rpm":290,"package":290,"package_group":0,"erratum":14,"module_stream":24}},{"id":25,"name":"Test - Docker Repository","label":"Test_Docker_Repository","content_type":"docker","product":{"id":8,"name":"Test - Product"},"content_counts":{"docker_manifest":72,"docker_tag":23,"rpm":0,"package":0,"package_group":0,"erratum":0,"module_stream":0}},{"id":26,"name":"Test - Debian Repository","label":"Test_Debian_Repository","content_type":"deb","product":{"id":8,"name":"Test - Product"},"content_counts":{"docker_manifest":0,"docker_tag":0,"rpm":0,"package":0,"package_group":0,"erratum":0,"module_stream":0}}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]},"repositories":[],"type":"erratum","rules":[]} + string: ' {"inclusion":false,"id":101,"name":"Test Content View Filter - erratum_by_date","description":null,"created_at":"2024-07-25 + 07:49:26 UTC","updated_at":"2024-07-25 07:49:26 UTC","content_view":{"composite":false,"component_ids":[],"duplicate_repositories_to_publish":[],"default":false,"version_count":0,"latest_version":null,"latest_version_id":null,"auto_publish":false,"solve_dependencies":false,"import_only":false,"generated_for":"none","related_cv_count":0,"related_composite_cvs":[],"filtered":true,"repository_ids":[29,27,28],"id":23,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":13,"organization":{"name":"Test + Organization","label":"Test_Organization","id":13},"created_at":"2024-07-25 + 07:49:22 UTC","updated_at":"2024-07-25 07:49:22 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":29,"name":"Test + Docker Repository","label":"Test_Docker_Repository","content_type":"docker","product":{"id":11,"name":"Test + Product"},"content_counts":{"docker_manifest":177,"docker_tag":70,"rpm":0,"package":0,"package_group":0,"erratum":0,"module_stream":0}},{"id":27,"name":"Test + Repository","label":"Test_Repository","content_type":"yum","product":{"id":11,"name":"Test + Product"},"content_counts":{"docker_manifest":0,"docker_tag":0,"rpm":32,"package":32,"package_group":2,"erratum":4,"module_stream":0}},{"id":28,"name":"Test + Modular Repository","label":"Test_Modular_Repository","content_type":"yum","product":{"id":11,"name":"Test + Product"},"content_counts":{"docker_manifest":0,"docker_tag":0,"rpm":290,"package":290,"package_group":0,"erratum":14,"module_stream":24}}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]},"repositories":[],"type":"erratum","rules":[]} ' headers: @@ -277,7 +273,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '2080' + - '1845' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -291,7 +287,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=96 Strict-Transport-Security: diff --git a/tests/test_playbooks/fixtures/content_view_filter_info-6.yml b/tests/test_playbooks/fixtures/content_view_filter_info-6.yml index fcc4abd6..80d414ca 100644 --- a/tests/test_playbooks/fixtures/content_view_filter_info-6.yml +++ b/tests/test_playbooks/fixtures/content_view_filter_info-6.yml @@ -14,14 +14,14 @@ interactions: uri: https://foreman.example.org/api/status response: body: - string: '{"result":"ok","status":200,"version":"3.7.0-rc2","api_version":2}' + string: '{"result":"ok","status":200,"version":"3.12.0-develop","api_version":2}' headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive Content-Length: - - '66' + - '71' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -35,7 +35,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=100 Strict-Transport-Security: @@ -70,8 +70,8 @@ interactions: body: string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": 4294967296,\n \"search\": \"name=\\\"Test Organization\\\"\",\n \"sort\": - {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\":\"Test_Organization\",\"created_at\":\"2023-06-05 - 22:21:52 UTC\",\"updated_at\":\"2023-06-05 22:21:54 UTC\",\"id\":9,\"name\":\"Test + {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\":\"Test_Organization\",\"created_at\":\"2024-07-25 + 07:48:37 UTC\",\"updated_at\":\"2024-07-25 07:48:39 UTC\",\"id\":13,\"name\":\"Test Organization\",\"title\":\"Test Organization\",\"description\":\"A test organization\"}]\n}\n" headers: Cache-Control: @@ -79,7 +79,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '388' + - '389' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -93,7 +93,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=99 Strict-Transport-Security: @@ -123,18 +123,17 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/organizations/9/content_views?search=name%3D%22Test+Content+View%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/organizations/13/content_views?search=name%3D%22Test+Content+View%22&per_page=4294967296 response: body: string: '{"total":2,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Content View\"","sort":{"by":"name","order":"asc"},"results":[{"composite":false,"component_ids":[],"default":false,"version_count":0,"latest_version":null,"latest_version_id":null,"auto_publish":false,"solve_dependencies":false,"import_only":false,"generated_for":"none","related_cv_count":0,"related_composite_cvs":[],"needs_publish":true,"filtered":true,"repository_ids":[23,24,25,26],"id":15,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":9,"organization":{"name":"Test - Organization","label":"Test_Organization","id":9},"created_at":"2023-06-05 - 22:23:21 UTC","updated_at":"2023-06-05 22:23:21 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":23,"name":"Test - Repository","label":"Test_Repository","content_type":"yum"},{"id":24,"name":"Test - Modular Repository","label":"Test_Modular_Repository","content_type":"yum"},{"id":25,"name":"Test - Docker Repository","label":"Test_Docker_Repository","content_type":"docker"},{"id":26,"name":"Test - Debian Repository","label":"Test_Debian_Repository","content_type":"deb"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]}]} + Content View\"","sort":{"by":"name","order":"asc"},"results":[{"composite":false,"component_ids":[],"duplicate_repositories_to_publish":[],"default":false,"version_count":0,"latest_version":null,"latest_version_id":null,"auto_publish":false,"solve_dependencies":false,"import_only":false,"generated_for":"none","related_cv_count":0,"related_composite_cvs":[],"filtered":true,"repository_ids":[27,28,29],"id":23,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":13,"organization":{"name":"Test + Organization","label":"Test_Organization","id":13},"created_at":"2024-07-25 + 07:49:22 UTC","updated_at":"2024-07-25 07:49:22 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":27,"name":"Test + Repository","label":"Test_Repository","content_type":"yum"},{"id":28,"name":"Test + Modular Repository","label":"Test_Modular_Repository","content_type":"yum"},{"id":29,"name":"Test + Docker Repository","label":"Test_Docker_Repository","content_type":"docker"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]}]} ' headers: @@ -143,7 +142,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '1351' + - '1272' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -155,9 +154,9 @@ interactions: Foreman_current_location: - ; ANY Foreman_current_organization: - - 9; Test Organization + - 13; Test Organization Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=98 Strict-Transport-Security: @@ -187,20 +186,19 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/content_views/15/filters?search=name%3D%22Test+Content+View+Filter+-+erratum_by_date%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/content_views/23/filters?search=name%3D%22Test+Content+View+Filter+-+docker%22&per_page=4294967296 response: body: string: '{"total":10,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Content View Filter - erratum_by_date\"","sort":{"by":"name","order":"asc"},"results":[{"inclusion":false,"id":41,"name":"Test - Content View Filter - erratum_by_date","description":null,"created_at":"2023-06-05 - 22:23:28 UTC","updated_at":"2023-06-05 22:23:28 UTC","content_view":{"composite":false,"component_ids":[],"default":false,"version_count":0,"latest_version":null,"latest_version_id":null,"auto_publish":false,"solve_dependencies":false,"import_only":false,"generated_for":"none","related_cv_count":0,"related_composite_cvs":[],"needs_publish":true,"filtered":true,"repository_ids":[23,24,25,26],"id":15,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":9,"organization":{"name":"Test - Organization","label":"Test_Organization","id":9},"created_at":"2023-06-05 - 22:23:21 UTC","updated_at":"2023-06-05 22:23:21 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":23,"name":"Test - Repository","label":"Test_Repository","content_type":"yum"},{"id":24,"name":"Test - Modular Repository","label":"Test_Modular_Repository","content_type":"yum"},{"id":25,"name":"Test - Docker Repository","label":"Test_Docker_Repository","content_type":"docker"},{"id":26,"name":"Test - Debian Repository","label":"Test_Debian_Repository","content_type":"deb"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]},"repositories":[],"type":"erratum","rules":[]}]} + Content View Filter - docker\"","sort":{"by":"name","order":"asc"},"results":[{"inclusion":false,"id":102,"name":"Test + Content View Filter - docker","description":null,"created_at":"2024-07-25 + 07:49:26 UTC","updated_at":"2024-07-25 07:49:26 UTC","content_view":{"composite":false,"component_ids":[],"duplicate_repositories_to_publish":[],"default":false,"version_count":0,"latest_version":null,"latest_version_id":null,"auto_publish":false,"solve_dependencies":false,"import_only":false,"generated_for":"none","related_cv_count":0,"related_composite_cvs":[],"filtered":true,"repository_ids":[29,27,28],"id":23,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":13,"organization":{"name":"Test + Organization","label":"Test_Organization","id":13},"created_at":"2024-07-25 + 07:49:22 UTC","updated_at":"2024-07-25 07:49:22 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":29,"name":"Test + Docker Repository","label":"Test_Docker_Repository","content_type":"docker"},{"id":27,"name":"Test + Repository","label":"Test_Repository","content_type":"yum"},{"id":28,"name":"Test + Modular Repository","label":"Test_Modular_Repository","content_type":"yum"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]},"repositories":[],"type":"docker","rules":[]}]} ' headers: @@ -209,7 +207,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '1615' + - '1518' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -223,7 +221,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=97 Strict-Transport-Security: @@ -253,22 +251,20 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/content_views/15/filters/41 + uri: https://foreman.example.org/katello/api/content_views/23/filters/102 response: body: - string: ' {"inclusion":false,"id":41,"name":"Test Content View Filter - erratum_by_date","description":null,"created_at":"2023-06-05 - 22:23:28 UTC","updated_at":"2023-06-05 22:23:28 UTC","content_view":{"composite":false,"component_ids":[],"default":false,"version_count":0,"latest_version":null,"latest_version_id":null,"auto_publish":false,"solve_dependencies":false,"import_only":false,"generated_for":"none","related_cv_count":0,"related_composite_cvs":[],"needs_publish":true,"filtered":true,"repository_ids":[23,24,25,26],"id":15,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":9,"organization":{"name":"Test - Organization","label":"Test_Organization","id":9},"created_at":"2023-06-05 - 22:23:21 UTC","updated_at":"2023-06-05 22:23:21 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":23,"name":"Test - Repository","label":"Test_Repository","content_type":"yum","product":{"id":8,"name":"Test - Product"},"content_counts":{"docker_manifest":0,"docker_tag":0,"rpm":32,"package":32,"package_group":2,"erratum":4,"module_stream":0}},{"id":24,"name":"Test - Modular Repository","label":"Test_Modular_Repository","content_type":"yum","product":{"id":8,"name":"Test - Product"},"content_counts":{"docker_manifest":0,"docker_tag":0,"rpm":290,"package":290,"package_group":0,"erratum":14,"module_stream":24}},{"id":25,"name":"Test - Docker Repository","label":"Test_Docker_Repository","content_type":"docker","product":{"id":8,"name":"Test - Product"},"content_counts":{"docker_manifest":72,"docker_tag":23,"rpm":0,"package":0,"package_group":0,"erratum":0,"module_stream":0}},{"id":26,"name":"Test - Debian Repository","label":"Test_Debian_Repository","content_type":"deb","product":{"id":8,"name":"Test - Product"},"content_counts":{"docker_manifest":0,"docker_tag":0,"rpm":0,"package":0,"package_group":0,"erratum":0,"module_stream":0}}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]},"repositories":[],"type":"erratum","rules":[]} + string: ' {"inclusion":false,"id":102,"name":"Test Content View Filter - docker","description":null,"created_at":"2024-07-25 + 07:49:26 UTC","updated_at":"2024-07-25 07:49:26 UTC","content_view":{"composite":false,"component_ids":[],"duplicate_repositories_to_publish":[],"default":false,"version_count":0,"latest_version":null,"latest_version_id":null,"auto_publish":false,"solve_dependencies":false,"import_only":false,"generated_for":"none","related_cv_count":0,"related_composite_cvs":[],"filtered":true,"repository_ids":[29,27,28],"id":23,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":13,"organization":{"name":"Test + Organization","label":"Test_Organization","id":13},"created_at":"2024-07-25 + 07:49:22 UTC","updated_at":"2024-07-25 07:49:22 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":29,"name":"Test + Docker Repository","label":"Test_Docker_Repository","content_type":"docker","product":{"id":11,"name":"Test + Product"},"content_counts":{"docker_manifest":177,"docker_tag":70,"rpm":0,"package":0,"package_group":0,"erratum":0,"module_stream":0}},{"id":27,"name":"Test + Repository","label":"Test_Repository","content_type":"yum","product":{"id":11,"name":"Test + Product"},"content_counts":{"docker_manifest":0,"docker_tag":0,"rpm":32,"package":32,"package_group":2,"erratum":4,"module_stream":0}},{"id":28,"name":"Test + Modular Repository","label":"Test_Modular_Repository","content_type":"yum","product":{"id":11,"name":"Test + Product"},"content_counts":{"docker_manifest":0,"docker_tag":0,"rpm":290,"package":290,"package_group":0,"erratum":14,"module_stream":24}}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]},"repositories":[],"type":"docker","rules":[]} ' headers: @@ -277,7 +273,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '2082' + - '1835' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -291,7 +287,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=96 Strict-Transport-Security: diff --git a/tests/test_playbooks/fixtures/content_view_filter_info-7.yml b/tests/test_playbooks/fixtures/content_view_filter_info-7.yml index d6ca93e5..4ad45558 100644 --- a/tests/test_playbooks/fixtures/content_view_filter_info-7.yml +++ b/tests/test_playbooks/fixtures/content_view_filter_info-7.yml @@ -14,14 +14,14 @@ interactions: uri: https://foreman.example.org/api/status response: body: - string: '{"result":"ok","status":200,"version":"3.7.0-rc2","api_version":2}' + string: '{"result":"ok","status":200,"version":"3.12.0-develop","api_version":2}' headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive Content-Length: - - '66' + - '71' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -35,7 +35,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=100 Strict-Transport-Security: @@ -70,8 +70,8 @@ interactions: body: string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": 4294967296,\n \"search\": \"name=\\\"Test Organization\\\"\",\n \"sort\": - {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\":\"Test_Organization\",\"created_at\":\"2023-06-05 - 22:21:52 UTC\",\"updated_at\":\"2023-06-05 22:21:54 UTC\",\"id\":9,\"name\":\"Test + {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\":\"Test_Organization\",\"created_at\":\"2024-07-25 + 07:48:37 UTC\",\"updated_at\":\"2024-07-25 07:48:39 UTC\",\"id\":13,\"name\":\"Test Organization\",\"title\":\"Test Organization\",\"description\":\"A test organization\"}]\n}\n" headers: Cache-Control: @@ -79,7 +79,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '388' + - '389' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -93,7 +93,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=99 Strict-Transport-Security: @@ -123,18 +123,17 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/organizations/9/content_views?search=name%3D%22Test+Content+View%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/organizations/13/content_views?search=name%3D%22Test+Content+View%22&per_page=4294967296 response: body: string: '{"total":2,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Content View\"","sort":{"by":"name","order":"asc"},"results":[{"composite":false,"component_ids":[],"default":false,"version_count":0,"latest_version":null,"latest_version_id":null,"auto_publish":false,"solve_dependencies":false,"import_only":false,"generated_for":"none","related_cv_count":0,"related_composite_cvs":[],"needs_publish":true,"filtered":true,"repository_ids":[23,24,25,26],"id":15,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":9,"organization":{"name":"Test - Organization","label":"Test_Organization","id":9},"created_at":"2023-06-05 - 22:23:21 UTC","updated_at":"2023-06-05 22:23:21 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":23,"name":"Test - Repository","label":"Test_Repository","content_type":"yum"},{"id":24,"name":"Test - Modular Repository","label":"Test_Modular_Repository","content_type":"yum"},{"id":25,"name":"Test - Docker Repository","label":"Test_Docker_Repository","content_type":"docker"},{"id":26,"name":"Test - Debian Repository","label":"Test_Debian_Repository","content_type":"deb"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]}]} + Content View\"","sort":{"by":"name","order":"asc"},"results":[{"composite":false,"component_ids":[],"duplicate_repositories_to_publish":[],"default":false,"version_count":0,"latest_version":null,"latest_version_id":null,"auto_publish":false,"solve_dependencies":false,"import_only":false,"generated_for":"none","related_cv_count":0,"related_composite_cvs":[],"filtered":true,"repository_ids":[27,28,29],"id":23,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":13,"organization":{"name":"Test + Organization","label":"Test_Organization","id":13},"created_at":"2024-07-25 + 07:49:22 UTC","updated_at":"2024-07-25 07:49:22 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":27,"name":"Test + Repository","label":"Test_Repository","content_type":"yum"},{"id":28,"name":"Test + Modular Repository","label":"Test_Modular_Repository","content_type":"yum"},{"id":29,"name":"Test + Docker Repository","label":"Test_Docker_Repository","content_type":"docker"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]}]} ' headers: @@ -143,7 +142,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '1351' + - '1272' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -155,9 +154,9 @@ interactions: Foreman_current_location: - ; ANY Foreman_current_organization: - - 9; Test Organization + - 13; Test Organization Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=98 Strict-Transport-Security: @@ -187,20 +186,19 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/content_views/15/filters?search=name%3D%22Test+Content+View+Filter+-+docker%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/content_views/23/filters?search=name%3D%22Test+Content+View+Filter+-+modulemd%22&per_page=4294967296 response: body: string: '{"total":10,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Content View Filter - docker\"","sort":{"by":"name","order":"asc"},"results":[{"inclusion":false,"id":42,"name":"Test - Content View Filter - docker","description":null,"created_at":"2023-06-05 - 22:23:29 UTC","updated_at":"2023-06-05 22:23:29 UTC","content_view":{"composite":false,"component_ids":[],"default":false,"version_count":0,"latest_version":null,"latest_version_id":null,"auto_publish":false,"solve_dependencies":false,"import_only":false,"generated_for":"none","related_cv_count":0,"related_composite_cvs":[],"needs_publish":true,"filtered":true,"repository_ids":[23,24,25,26],"id":15,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":9,"organization":{"name":"Test - Organization","label":"Test_Organization","id":9},"created_at":"2023-06-05 - 22:23:21 UTC","updated_at":"2023-06-05 22:23:21 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":23,"name":"Test - Repository","label":"Test_Repository","content_type":"yum"},{"id":24,"name":"Test - Modular Repository","label":"Test_Modular_Repository","content_type":"yum"},{"id":25,"name":"Test - Docker Repository","label":"Test_Docker_Repository","content_type":"docker"},{"id":26,"name":"Test - Debian Repository","label":"Test_Debian_Repository","content_type":"deb"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]},"repositories":[],"type":"docker","rules":[]}]} + Content View Filter - modulemd\"","sort":{"by":"name","order":"asc"},"results":[{"inclusion":false,"id":103,"name":"Test + Content View Filter - modulemd","description":null,"created_at":"2024-07-25 + 07:49:27 UTC","updated_at":"2024-07-25 07:49:27 UTC","content_view":{"composite":false,"component_ids":[],"duplicate_repositories_to_publish":[],"default":false,"version_count":0,"latest_version":null,"latest_version_id":null,"auto_publish":false,"solve_dependencies":false,"import_only":false,"generated_for":"none","related_cv_count":0,"related_composite_cvs":[],"filtered":true,"repository_ids":[29,27,28],"id":23,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":13,"organization":{"name":"Test + Organization","label":"Test_Organization","id":13},"created_at":"2024-07-25 + 07:49:22 UTC","updated_at":"2024-07-25 07:49:22 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":29,"name":"Test + Docker Repository","label":"Test_Docker_Repository","content_type":"docker"},{"id":27,"name":"Test + Repository","label":"Test_Repository","content_type":"yum"},{"id":28,"name":"Test + Modular Repository","label":"Test_Modular_Repository","content_type":"yum"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]},"repositories":[],"type":"modulemd","rules":[]}]} ' headers: @@ -209,7 +207,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '1596' + - '1524' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -223,7 +221,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=97 Strict-Transport-Security: @@ -253,22 +251,21 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/katello/api/content_views/15/filters/42 + uri: https://foreman.example.org/katello/api/content_views/23/filters/103 response: body: - string: ' {"inclusion":false,"id":42,"name":"Test Content View Filter - docker","description":null,"created_at":"2023-06-05 - 22:23:29 UTC","updated_at":"2023-06-05 22:23:29 UTC","content_view":{"composite":false,"component_ids":[],"default":false,"version_count":0,"latest_version":null,"latest_version_id":null,"auto_publish":false,"solve_dependencies":false,"import_only":false,"generated_for":"none","related_cv_count":0,"related_composite_cvs":[],"needs_publish":true,"filtered":true,"repository_ids":[23,24,25,26],"id":15,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":9,"organization":{"name":"Test - Organization","label":"Test_Organization","id":9},"created_at":"2023-06-05 - 22:23:21 UTC","updated_at":"2023-06-05 22:23:21 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":23,"name":"Test - Repository","label":"Test_Repository","content_type":"yum","product":{"id":8,"name":"Test - Product"},"content_counts":{"docker_manifest":0,"docker_tag":0,"rpm":32,"package":32,"package_group":2,"erratum":4,"module_stream":0}},{"id":24,"name":"Test - Modular Repository","label":"Test_Modular_Repository","content_type":"yum","product":{"id":8,"name":"Test - Product"},"content_counts":{"docker_manifest":0,"docker_tag":0,"rpm":290,"package":290,"package_group":0,"erratum":14,"module_stream":24}},{"id":25,"name":"Test - Docker Repository","label":"Test_Docker_Repository","content_type":"docker","product":{"id":8,"name":"Test - Product"},"content_counts":{"docker_manifest":72,"docker_tag":23,"rpm":0,"package":0,"package_group":0,"erratum":0,"module_stream":0}},{"id":26,"name":"Test - Debian Repository","label":"Test_Debian_Repository","content_type":"deb","product":{"id":8,"name":"Test - Product"},"content_counts":{"docker_manifest":0,"docker_tag":0,"rpm":0,"package":0,"package_group":0,"erratum":0,"module_stream":0}}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]},"repositories":[],"type":"docker","rules":[]} + string: ' {"inclusion":false,"original_module_streams":false,"id":103,"name":"Test + Content View Filter - modulemd","description":null,"created_at":"2024-07-25 + 07:49:27 UTC","updated_at":"2024-07-25 07:49:27 UTC","content_view":{"composite":false,"component_ids":[],"duplicate_repositories_to_publish":[],"default":false,"version_count":0,"latest_version":null,"latest_version_id":null,"auto_publish":false,"solve_dependencies":false,"import_only":false,"generated_for":"none","related_cv_count":0,"related_composite_cvs":[],"filtered":true,"repository_ids":[29,27,28],"id":23,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":13,"organization":{"name":"Test + Organization","label":"Test_Organization","id":13},"created_at":"2024-07-25 + 07:49:22 UTC","updated_at":"2024-07-25 07:49:22 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":29,"name":"Test + Docker Repository","label":"Test_Docker_Repository","content_type":"docker","product":{"id":11,"name":"Test + Product"},"content_counts":{"docker_manifest":177,"docker_tag":70,"rpm":0,"package":0,"package_group":0,"erratum":0,"module_stream":0}},{"id":27,"name":"Test + Repository","label":"Test_Repository","content_type":"yum","product":{"id":11,"name":"Test + Product"},"content_counts":{"docker_manifest":0,"docker_tag":0,"rpm":32,"package":32,"package_group":2,"erratum":4,"module_stream":0}},{"id":28,"name":"Test + Modular Repository","label":"Test_Modular_Repository","content_type":"yum","product":{"id":11,"name":"Test + Product"},"content_counts":{"docker_manifest":0,"docker_tag":0,"rpm":290,"package":290,"package_group":0,"erratum":14,"module_stream":24}}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]},"repositories":[],"type":"modulemd","rules":[]} ' headers: @@ -277,7 +274,7 @@ interactions: Connection: - Keep-Alive Content-Length: - - '2072' + - '1871' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; @@ -291,7 +288,7 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 3.7.0-rc2 + - 3.12.0-develop Keep-Alive: - timeout=15, max=96 Strict-Transport-Security: diff --git a/tests/test_playbooks/fixtures/content_view_filter_info-8.yml b/tests/test_playbooks/fixtures/content_view_filter_info-8.yml deleted file mode 100644 index 1570c8c0..00000000 --- a/tests/test_playbooks/fixtures/content_view_filter_info-8.yml +++ /dev/null @@ -1,313 +0,0 @@ -interactions: -- request: - body: null - headers: - Accept: - - application/json;version=2 - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - apypie (https://github.com/Apipie/apypie) - method: GET - uri: https://foreman.example.org/api/status - response: - body: - string: '{"result":"ok","status":200,"version":"3.7.0-rc2","api_version":2}' - headers: - Cache-Control: - - max-age=0, private, must-revalidate - Connection: - - Keep-Alive - Content-Length: - - '66' - Content-Security-Policy: - - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; - style-src ''unsafe-inline'' ''self''' - Content-Type: - - application/json; charset=utf-8 - Foreman_api_version: - - '2' - Foreman_current_location: - - ; ANY - Foreman_current_organization: - - ; ANY - Foreman_version: - - 3.7.0-rc2 - Keep-Alive: - - timeout=15, max=100 - Strict-Transport-Security: - - max-age=631139040; includeSubdomains - X-Content-Type-Options: - - nosniff - X-Download-Options: - - noopen - X-Frame-Options: - - sameorigin - X-Permitted-Cross-Domain-Policies: - - none - X-XSS-Protection: - - 1; mode=block - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json;version=2 - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - apypie (https://github.com/Apipie/apypie) - method: GET - uri: https://foreman.example.org/katello/api/organizations?search=name%3D%22Test+Organization%22&per_page=4294967296 - response: - body: - string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": - 4294967296,\n \"search\": \"name=\\\"Test Organization\\\"\",\n \"sort\": - {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\":\"Test_Organization\",\"created_at\":\"2023-06-05 - 22:21:52 UTC\",\"updated_at\":\"2023-06-05 22:21:54 UTC\",\"id\":9,\"name\":\"Test - Organization\",\"title\":\"Test Organization\",\"description\":\"A test organization\"}]\n}\n" - headers: - Cache-Control: - - max-age=0, private, must-revalidate - Connection: - - Keep-Alive - Content-Length: - - '388' - Content-Security-Policy: - - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; - style-src ''unsafe-inline'' ''self''' - Content-Type: - - application/json; charset=utf-8 - Foreman_api_version: - - '2' - Foreman_current_location: - - ; ANY - Foreman_current_organization: - - ; ANY - Foreman_version: - - 3.7.0-rc2 - Keep-Alive: - - timeout=15, max=99 - Strict-Transport-Security: - - max-age=631139040; includeSubdomains - X-Content-Type-Options: - - nosniff - X-Download-Options: - - noopen - X-Frame-Options: - - sameorigin - X-Permitted-Cross-Domain-Policies: - - none - X-XSS-Protection: - - 1; mode=block - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json;version=2 - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - apypie (https://github.com/Apipie/apypie) - method: GET - uri: https://foreman.example.org/katello/api/organizations/9/content_views?search=name%3D%22Test+Content+View%22&per_page=4294967296 - response: - body: - string: '{"total":2,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Content View\"","sort":{"by":"name","order":"asc"},"results":[{"composite":false,"component_ids":[],"default":false,"version_count":0,"latest_version":null,"latest_version_id":null,"auto_publish":false,"solve_dependencies":false,"import_only":false,"generated_for":"none","related_cv_count":0,"related_composite_cvs":[],"needs_publish":true,"filtered":true,"repository_ids":[23,24,25,26],"id":15,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":9,"organization":{"name":"Test - Organization","label":"Test_Organization","id":9},"created_at":"2023-06-05 - 22:23:21 UTC","updated_at":"2023-06-05 22:23:21 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":23,"name":"Test - Repository","label":"Test_Repository","content_type":"yum"},{"id":24,"name":"Test - Modular Repository","label":"Test_Modular_Repository","content_type":"yum"},{"id":25,"name":"Test - Docker Repository","label":"Test_Docker_Repository","content_type":"docker"},{"id":26,"name":"Test - Debian Repository","label":"Test_Debian_Repository","content_type":"deb"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]}]} - - ' - headers: - Cache-Control: - - max-age=0, private, must-revalidate - Connection: - - Keep-Alive - Content-Length: - - '1351' - Content-Security-Policy: - - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; - style-src ''unsafe-inline'' ''self''' - Content-Type: - - application/json; charset=utf-8 - Foreman_api_version: - - '2' - Foreman_current_location: - - ; ANY - Foreman_current_organization: - - 9; Test Organization - Foreman_version: - - 3.7.0-rc2 - Keep-Alive: - - timeout=15, max=98 - Strict-Transport-Security: - - max-age=631139040; includeSubdomains - X-Content-Type-Options: - - nosniff - X-Download-Options: - - noopen - X-Frame-Options: - - sameorigin - X-Permitted-Cross-Domain-Policies: - - none - X-XSS-Protection: - - 1; mode=block - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json;version=2 - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - apypie (https://github.com/Apipie/apypie) - method: GET - uri: https://foreman.example.org/katello/api/content_views/15/filters?search=name%3D%22Test+Content+View+Filter+-+modulemd%22&per_page=4294967296 - response: - body: - string: '{"total":10,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Content View Filter - modulemd\"","sort":{"by":"name","order":"asc"},"results":[{"inclusion":false,"id":43,"name":"Test - Content View Filter - modulemd","description":null,"created_at":"2023-06-05 - 22:23:30 UTC","updated_at":"2023-06-05 22:23:30 UTC","content_view":{"composite":false,"component_ids":[],"default":false,"version_count":0,"latest_version":null,"latest_version_id":null,"auto_publish":false,"solve_dependencies":false,"import_only":false,"generated_for":"none","related_cv_count":0,"related_composite_cvs":[],"needs_publish":true,"filtered":true,"repository_ids":[23,24,25,26],"id":15,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":9,"organization":{"name":"Test - Organization","label":"Test_Organization","id":9},"created_at":"2023-06-05 - 22:23:21 UTC","updated_at":"2023-06-05 22:23:21 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":23,"name":"Test - Repository","label":"Test_Repository","content_type":"yum"},{"id":24,"name":"Test - Modular Repository","label":"Test_Modular_Repository","content_type":"yum"},{"id":25,"name":"Test - Docker Repository","label":"Test_Docker_Repository","content_type":"docker"},{"id":26,"name":"Test - Debian Repository","label":"Test_Debian_Repository","content_type":"deb"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]},"repositories":[],"type":"modulemd","rules":[]}]} - - ' - headers: - Cache-Control: - - max-age=0, private, must-revalidate - Connection: - - Keep-Alive - Content-Length: - - '1602' - Content-Security-Policy: - - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; - style-src ''unsafe-inline'' ''self''' - Content-Type: - - application/json; charset=utf-8 - Foreman_api_version: - - '2' - Foreman_current_location: - - ; ANY - Foreman_current_organization: - - ; ANY - Foreman_version: - - 3.7.0-rc2 - Keep-Alive: - - timeout=15, max=97 - Strict-Transport-Security: - - max-age=631139040; includeSubdomains - X-Content-Type-Options: - - nosniff - X-Download-Options: - - noopen - X-Frame-Options: - - sameorigin - X-Permitted-Cross-Domain-Policies: - - none - X-XSS-Protection: - - 1; mode=block - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json;version=2 - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - apypie (https://github.com/Apipie/apypie) - method: GET - uri: https://foreman.example.org/katello/api/content_views/15/filters/43 - response: - body: - string: ' {"inclusion":false,"original_module_streams":false,"id":43,"name":"Test - Content View Filter - modulemd","description":null,"created_at":"2023-06-05 - 22:23:30 UTC","updated_at":"2023-06-05 22:23:30 UTC","content_view":{"composite":false,"component_ids":[],"default":false,"version_count":0,"latest_version":null,"latest_version_id":null,"auto_publish":false,"solve_dependencies":false,"import_only":false,"generated_for":"none","related_cv_count":0,"related_composite_cvs":[],"needs_publish":true,"filtered":true,"repository_ids":[23,24,25,26],"id":15,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":9,"organization":{"name":"Test - Organization","label":"Test_Organization","id":9},"created_at":"2023-06-05 - 22:23:21 UTC","updated_at":"2023-06-05 22:23:21 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":23,"name":"Test - Repository","label":"Test_Repository","content_type":"yum","product":{"id":8,"name":"Test - Product"},"content_counts":{"docker_manifest":0,"docker_tag":0,"rpm":32,"package":32,"package_group":2,"erratum":4,"module_stream":0}},{"id":24,"name":"Test - Modular Repository","label":"Test_Modular_Repository","content_type":"yum","product":{"id":8,"name":"Test - Product"},"content_counts":{"docker_manifest":0,"docker_tag":0,"rpm":290,"package":290,"package_group":0,"erratum":14,"module_stream":24}},{"id":25,"name":"Test - Docker Repository","label":"Test_Docker_Repository","content_type":"docker","product":{"id":8,"name":"Test - Product"},"content_counts":{"docker_manifest":72,"docker_tag":23,"rpm":0,"package":0,"package_group":0,"erratum":0,"module_stream":0}},{"id":26,"name":"Test - Debian Repository","label":"Test_Debian_Repository","content_type":"deb","product":{"id":8,"name":"Test - Product"},"content_counts":{"docker_manifest":0,"docker_tag":0,"rpm":0,"package":0,"package_group":0,"erratum":0,"module_stream":0}}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]},"repositories":[],"type":"modulemd","rules":[]} - - ' - headers: - Cache-Control: - - max-age=0, private, must-revalidate - Connection: - - Keep-Alive - Content-Length: - - '2108' - Content-Security-Policy: - - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; - style-src ''unsafe-inline'' ''self''' - Content-Type: - - application/json; charset=utf-8 - Foreman_api_version: - - '2' - Foreman_current_location: - - ; ANY - Foreman_current_organization: - - ; ANY - Foreman_version: - - 3.7.0-rc2 - Keep-Alive: - - timeout=15, max=96 - Strict-Transport-Security: - - max-age=631139040; includeSubdomains - X-Content-Type-Options: - - nosniff - X-Download-Options: - - noopen - X-Frame-Options: - - sameorigin - X-Permitted-Cross-Domain-Policies: - - none - X-XSS-Protection: - - 1; mode=block - status: - code: 200 - message: OK -version: 1 diff --git a/tests/test_playbooks/fixtures/content_view_filter_info-9.yml b/tests/test_playbooks/fixtures/content_view_filter_info-9.yml deleted file mode 100644 index 5fc0f22a..00000000 --- a/tests/test_playbooks/fixtures/content_view_filter_info-9.yml +++ /dev/null @@ -1,312 +0,0 @@ -interactions: -- request: - body: null - headers: - Accept: - - application/json;version=2 - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - apypie (https://github.com/Apipie/apypie) - method: GET - uri: https://foreman.example.org/api/status - response: - body: - string: '{"result":"ok","status":200,"version":"3.7.0-rc2","api_version":2}' - headers: - Cache-Control: - - max-age=0, private, must-revalidate - Connection: - - Keep-Alive - Content-Length: - - '66' - Content-Security-Policy: - - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; - style-src ''unsafe-inline'' ''self''' - Content-Type: - - application/json; charset=utf-8 - Foreman_api_version: - - '2' - Foreman_current_location: - - ; ANY - Foreman_current_organization: - - ; ANY - Foreman_version: - - 3.7.0-rc2 - Keep-Alive: - - timeout=15, max=100 - Strict-Transport-Security: - - max-age=631139040; includeSubdomains - X-Content-Type-Options: - - nosniff - X-Download-Options: - - noopen - X-Frame-Options: - - sameorigin - X-Permitted-Cross-Domain-Policies: - - none - X-XSS-Protection: - - 1; mode=block - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json;version=2 - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - apypie (https://github.com/Apipie/apypie) - method: GET - uri: https://foreman.example.org/katello/api/organizations?search=name%3D%22Test+Organization%22&per_page=4294967296 - response: - body: - string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": - 4294967296,\n \"search\": \"name=\\\"Test Organization\\\"\",\n \"sort\": - {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\":\"Test_Organization\",\"created_at\":\"2023-06-05 - 22:21:52 UTC\",\"updated_at\":\"2023-06-05 22:21:54 UTC\",\"id\":9,\"name\":\"Test - Organization\",\"title\":\"Test Organization\",\"description\":\"A test organization\"}]\n}\n" - headers: - Cache-Control: - - max-age=0, private, must-revalidate - Connection: - - Keep-Alive - Content-Length: - - '388' - Content-Security-Policy: - - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; - style-src ''unsafe-inline'' ''self''' - Content-Type: - - application/json; charset=utf-8 - Foreman_api_version: - - '2' - Foreman_current_location: - - ; ANY - Foreman_current_organization: - - ; ANY - Foreman_version: - - 3.7.0-rc2 - Keep-Alive: - - timeout=15, max=99 - Strict-Transport-Security: - - max-age=631139040; includeSubdomains - X-Content-Type-Options: - - nosniff - X-Download-Options: - - noopen - X-Frame-Options: - - sameorigin - X-Permitted-Cross-Domain-Policies: - - none - X-XSS-Protection: - - 1; mode=block - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json;version=2 - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - apypie (https://github.com/Apipie/apypie) - method: GET - uri: https://foreman.example.org/katello/api/organizations/9/content_views?search=name%3D%22Test+Content+View%22&per_page=4294967296 - response: - body: - string: '{"total":2,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Content View\"","sort":{"by":"name","order":"asc"},"results":[{"composite":false,"component_ids":[],"default":false,"version_count":0,"latest_version":null,"latest_version_id":null,"auto_publish":false,"solve_dependencies":false,"import_only":false,"generated_for":"none","related_cv_count":0,"related_composite_cvs":[],"needs_publish":true,"filtered":true,"repository_ids":[23,24,25,26],"id":15,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":9,"organization":{"name":"Test - Organization","label":"Test_Organization","id":9},"created_at":"2023-06-05 - 22:23:21 UTC","updated_at":"2023-06-05 22:23:21 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":23,"name":"Test - Repository","label":"Test_Repository","content_type":"yum"},{"id":24,"name":"Test - Modular Repository","label":"Test_Modular_Repository","content_type":"yum"},{"id":25,"name":"Test - Docker Repository","label":"Test_Docker_Repository","content_type":"docker"},{"id":26,"name":"Test - Debian Repository","label":"Test_Debian_Repository","content_type":"deb"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]}]} - - ' - headers: - Cache-Control: - - max-age=0, private, must-revalidate - Connection: - - Keep-Alive - Content-Length: - - '1351' - Content-Security-Policy: - - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; - style-src ''unsafe-inline'' ''self''' - Content-Type: - - application/json; charset=utf-8 - Foreman_api_version: - - '2' - Foreman_current_location: - - ; ANY - Foreman_current_organization: - - 9; Test Organization - Foreman_version: - - 3.7.0-rc2 - Keep-Alive: - - timeout=15, max=98 - Strict-Transport-Security: - - max-age=631139040; includeSubdomains - X-Content-Type-Options: - - nosniff - X-Download-Options: - - noopen - X-Frame-Options: - - sameorigin - X-Permitted-Cross-Domain-Policies: - - none - X-XSS-Protection: - - 1; mode=block - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json;version=2 - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - apypie (https://github.com/Apipie/apypie) - method: GET - uri: https://foreman.example.org/katello/api/content_views/15/filters?search=name%3D%22Test+Content+View+Filter+-+deb%22&per_page=4294967296 - response: - body: - string: '{"total":10,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Content View Filter - deb\"","sort":{"by":"name","order":"asc"},"results":[{"inclusion":false,"id":44,"name":"Test - Content View Filter - deb","description":null,"created_at":"2023-06-05 22:23:31 - UTC","updated_at":"2023-06-05 22:23:31 UTC","content_view":{"composite":false,"component_ids":[],"default":false,"version_count":0,"latest_version":null,"latest_version_id":null,"auto_publish":false,"solve_dependencies":false,"import_only":false,"generated_for":"none","related_cv_count":0,"related_composite_cvs":[],"needs_publish":true,"filtered":true,"repository_ids":[23,24,25,26],"id":15,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":9,"organization":{"name":"Test - Organization","label":"Test_Organization","id":9},"created_at":"2023-06-05 - 22:23:21 UTC","updated_at":"2023-06-05 22:23:21 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":23,"name":"Test - Repository","label":"Test_Repository","content_type":"yum"},{"id":24,"name":"Test - Modular Repository","label":"Test_Modular_Repository","content_type":"yum"},{"id":25,"name":"Test - Docker Repository","label":"Test_Docker_Repository","content_type":"docker"},{"id":26,"name":"Test - Debian Repository","label":"Test_Debian_Repository","content_type":"deb"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]},"repositories":[],"type":"deb","rules":[]}]} - - ' - headers: - Cache-Control: - - max-age=0, private, must-revalidate - Connection: - - Keep-Alive - Content-Length: - - '1587' - Content-Security-Policy: - - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; - style-src ''unsafe-inline'' ''self''' - Content-Type: - - application/json; charset=utf-8 - Foreman_api_version: - - '2' - Foreman_current_location: - - ; ANY - Foreman_current_organization: - - ; ANY - Foreman_version: - - 3.7.0-rc2 - Keep-Alive: - - timeout=15, max=97 - Strict-Transport-Security: - - max-age=631139040; includeSubdomains - X-Content-Type-Options: - - nosniff - X-Download-Options: - - noopen - X-Frame-Options: - - sameorigin - X-Permitted-Cross-Domain-Policies: - - none - X-XSS-Protection: - - 1; mode=block - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json;version=2 - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - apypie (https://github.com/Apipie/apypie) - method: GET - uri: https://foreman.example.org/katello/api/content_views/15/filters/44 - response: - body: - string: ' {"inclusion":false,"id":44,"name":"Test Content View Filter - deb","description":null,"created_at":"2023-06-05 - 22:23:31 UTC","updated_at":"2023-06-05 22:23:31 UTC","content_view":{"composite":false,"component_ids":[],"default":false,"version_count":0,"latest_version":null,"latest_version_id":null,"auto_publish":false,"solve_dependencies":false,"import_only":false,"generated_for":"none","related_cv_count":0,"related_composite_cvs":[],"needs_publish":true,"filtered":true,"repository_ids":[23,24,25,26],"id":15,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":9,"organization":{"name":"Test - Organization","label":"Test_Organization","id":9},"created_at":"2023-06-05 - 22:23:21 UTC","updated_at":"2023-06-05 22:23:21 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":23,"name":"Test - Repository","label":"Test_Repository","content_type":"yum","product":{"id":8,"name":"Test - Product"},"content_counts":{"docker_manifest":0,"docker_tag":0,"rpm":32,"package":32,"package_group":2,"erratum":4,"module_stream":0}},{"id":24,"name":"Test - Modular Repository","label":"Test_Modular_Repository","content_type":"yum","product":{"id":8,"name":"Test - Product"},"content_counts":{"docker_manifest":0,"docker_tag":0,"rpm":290,"package":290,"package_group":0,"erratum":14,"module_stream":24}},{"id":25,"name":"Test - Docker Repository","label":"Test_Docker_Repository","content_type":"docker","product":{"id":8,"name":"Test - Product"},"content_counts":{"docker_manifest":72,"docker_tag":23,"rpm":0,"package":0,"package_group":0,"erratum":0,"module_stream":0}},{"id":26,"name":"Test - Debian Repository","label":"Test_Debian_Repository","content_type":"deb","product":{"id":8,"name":"Test - Product"},"content_counts":{"docker_manifest":0,"docker_tag":0,"rpm":0,"package":0,"package_group":0,"erratum":0,"module_stream":0}}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]},"repositories":[],"type":"deb","rules":[]} - - ' - headers: - Cache-Control: - - max-age=0, private, must-revalidate - Connection: - - Keep-Alive - Content-Length: - - '2066' - Content-Security-Policy: - - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; - style-src ''unsafe-inline'' ''self''' - Content-Type: - - application/json; charset=utf-8 - Foreman_api_version: - - '2' - Foreman_current_location: - - ; ANY - Foreman_current_organization: - - ; ANY - Foreman_version: - - 3.7.0-rc2 - Keep-Alive: - - timeout=15, max=96 - Strict-Transport-Security: - - max-age=631139040; includeSubdomains - X-Content-Type-Options: - - nosniff - X-Download-Options: - - noopen - X-Frame-Options: - - sameorigin - X-Permitted-Cross-Domain-Policies: - - none - X-XSS-Protection: - - 1; mode=block - status: - code: 200 - message: OK -version: 1 From 5b6bcb378024109c91aebe95881dce07cd852b01 Mon Sep 17 00:00:00 2001 From: Evgeni Golov Date: Thu, 25 Jul 2024 09:53:00 +0200 Subject: [PATCH 26/36] record content_view_filter_info_deb --- .../content_view_filter_info_deb-0.yml | 300 ++++++++++++++++++ .../content_view_filter_info_deb-1.yml | 300 ++++++++++++++++++ 2 files changed, 600 insertions(+) create mode 100644 tests/test_playbooks/fixtures/content_view_filter_info_deb-0.yml create mode 100644 tests/test_playbooks/fixtures/content_view_filter_info_deb-1.yml diff --git a/tests/test_playbooks/fixtures/content_view_filter_info_deb-0.yml b/tests/test_playbooks/fixtures/content_view_filter_info_deb-0.yml new file mode 100644 index 00000000..cbffcd9e --- /dev/null +++ b/tests/test_playbooks/fixtures/content_view_filter_info_deb-0.yml @@ -0,0 +1,300 @@ +interactions: +- request: + body: null + headers: + Accept: + - application/json;version=2 + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - apypie (https://github.com/Apipie/apypie) + method: GET + uri: https://foreman.example.org/api/status + response: + body: + string: '{"result":"ok","status":200,"version":"3.12.0-develop","api_version":2}' + headers: + Cache-Control: + - max-age=0, private, must-revalidate + Connection: + - Keep-Alive + Content-Length: + - '71' + Content-Security-Policy: + - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: + - application/json; charset=utf-8 + Foreman_api_version: + - '2' + Foreman_current_location: + - ; ANY + Foreman_current_organization: + - ; ANY + Foreman_version: + - 3.12.0-develop + Keep-Alive: + - timeout=15, max=100 + Strict-Transport-Security: + - max-age=631139040; includeSubdomains + X-Content-Type-Options: + - nosniff + X-Download-Options: + - noopen + X-Frame-Options: + - sameorigin + X-Permitted-Cross-Domain-Policies: + - none + X-XSS-Protection: + - 1; mode=block + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json;version=2 + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - apypie (https://github.com/Apipie/apypie) + method: GET + uri: https://foreman.example.org/katello/api/organizations?search=name%3D%22Test+Organization%22&per_page=4294967296 + response: + body: + string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": + 4294967296,\n \"search\": \"name=\\\"Test Organization\\\"\",\n \"sort\": + {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\":\"Test_Organization\",\"created_at\":\"2024-07-25 + 07:51:35 UTC\",\"updated_at\":\"2024-07-25 07:51:37 UTC\",\"id\":14,\"name\":\"Test + Organization\",\"title\":\"Test Organization\",\"description\":\"A test organization\"}]\n}\n" + headers: + Cache-Control: + - max-age=0, private, must-revalidate + Connection: + - Keep-Alive + Content-Length: + - '389' + Content-Security-Policy: + - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: + - application/json; charset=utf-8 + Foreman_api_version: + - '2' + Foreman_current_location: + - ; ANY + Foreman_current_organization: + - ; ANY + Foreman_version: + - 3.12.0-develop + Keep-Alive: + - timeout=15, max=99 + Strict-Transport-Security: + - max-age=631139040; includeSubdomains + X-Content-Type-Options: + - nosniff + X-Download-Options: + - noopen + X-Frame-Options: + - sameorigin + X-Permitted-Cross-Domain-Policies: + - none + X-XSS-Protection: + - 1; mode=block + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json;version=2 + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - apypie (https://github.com/Apipie/apypie) + method: GET + uri: https://foreman.example.org/katello/api/organizations/14/content_views?search=name%3D%22Test+Content+View%22&per_page=4294967296 + response: + body: + string: '{"total":2,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test + Content View\"","sort":{"by":"name","order":"asc"},"results":[{"composite":false,"component_ids":[],"duplicate_repositories_to_publish":[],"default":false,"version_count":0,"latest_version":null,"latest_version_id":null,"auto_publish":false,"solve_dependencies":false,"import_only":false,"generated_for":"none","related_cv_count":0,"related_composite_cvs":[],"filtered":true,"repository_ids":[30],"id":25,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":14,"organization":{"name":"Test + Organization","label":"Test_Organization","id":14},"created_at":"2024-07-25 + 07:51:54 UTC","updated_at":"2024-07-25 07:51:54 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":30,"name":"Test + Debian Repository","label":"Test_Debian_Repository","content_type":"deb"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]}]} + + ' + headers: + Cache-Control: + - max-age=0, private, must-revalidate + Connection: + - Keep-Alive + Content-Length: + - '1083' + Content-Security-Policy: + - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: + - application/json; charset=utf-8 + Foreman_api_version: + - '2' + Foreman_current_location: + - ; ANY + Foreman_current_organization: + - 14; Test Organization + Foreman_version: + - 3.12.0-develop + Keep-Alive: + - timeout=15, max=98 + Strict-Transport-Security: + - max-age=631139040; includeSubdomains + X-Content-Type-Options: + - nosniff + X-Download-Options: + - noopen + X-Frame-Options: + - sameorigin + X-Permitted-Cross-Domain-Policies: + - none + X-XSS-Protection: + - 1; mode=block + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json;version=2 + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - apypie (https://github.com/Apipie/apypie) + method: GET + uri: https://foreman.example.org/katello/api/content_views/25/filters?search=name%3D%22Test+Content+View+Filter+-+AllDebs%22&per_page=4294967296 + response: + body: + string: '{"total":10,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test + Content View Filter - AllDebs\"","sort":{"by":"name","order":"asc"},"results":[{"inclusion":true,"id":107,"name":"Test + Content View Filter - AllDebs","description":null,"created_at":"2024-07-25 + 07:51:55 UTC","updated_at":"2024-07-25 07:51:55 UTC","content_view":{"composite":false,"component_ids":[],"duplicate_repositories_to_publish":[],"default":false,"version_count":0,"latest_version":null,"latest_version_id":null,"auto_publish":false,"solve_dependencies":false,"import_only":false,"generated_for":"none","related_cv_count":0,"related_composite_cvs":[],"filtered":true,"repository_ids":[30],"id":25,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":14,"organization":{"name":"Test + Organization","label":"Test_Organization","id":14},"created_at":"2024-07-25 + 07:51:54 UTC","updated_at":"2024-07-25 07:51:54 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":30,"name":"Test + Debian Repository","label":"Test_Debian_Repository","content_type":"deb"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]},"repositories":[],"type":"deb","rules":[]}]} + + ' + headers: + Cache-Control: + - max-age=0, private, must-revalidate + Connection: + - Keep-Alive + Content-Length: + - '1327' + Content-Security-Policy: + - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: + - application/json; charset=utf-8 + Foreman_api_version: + - '2' + Foreman_current_location: + - ; ANY + Foreman_current_organization: + - ; ANY + Foreman_version: + - 3.12.0-develop + Keep-Alive: + - timeout=15, max=97 + Strict-Transport-Security: + - max-age=631139040; includeSubdomains + X-Content-Type-Options: + - nosniff + X-Download-Options: + - noopen + X-Frame-Options: + - sameorigin + X-Permitted-Cross-Domain-Policies: + - none + X-XSS-Protection: + - 1; mode=block + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json;version=2 + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - apypie (https://github.com/Apipie/apypie) + method: GET + uri: https://foreman.example.org/katello/api/content_views/25/filters/107 + response: + body: + string: ' {"inclusion":true,"id":107,"name":"Test Content View Filter - AllDebs","description":null,"created_at":"2024-07-25 + 07:51:55 UTC","updated_at":"2024-07-25 07:51:55 UTC","content_view":{"composite":false,"component_ids":[],"duplicate_repositories_to_publish":[],"default":false,"version_count":0,"latest_version":null,"latest_version_id":null,"auto_publish":false,"solve_dependencies":false,"import_only":false,"generated_for":"none","related_cv_count":0,"related_composite_cvs":[],"filtered":true,"repository_ids":[30],"id":25,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":14,"organization":{"name":"Test + Organization","label":"Test_Organization","id":14},"created_at":"2024-07-25 + 07:51:54 UTC","updated_at":"2024-07-25 07:51:54 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":30,"name":"Test + Debian Repository","label":"Test_Debian_Repository","content_type":"deb","product":{"id":12,"name":"Test + Product"},"content_counts":{"docker_manifest":0,"docker_tag":0,"rpm":0,"package":0,"package_group":0,"erratum":0,"module_stream":0}}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]},"repositories":[],"type":"deb","rules":[]} + + ' + headers: + Cache-Control: + - max-age=0, private, must-revalidate + Connection: + - Keep-Alive + Content-Length: + - '1304' + Content-Security-Policy: + - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: + - application/json; charset=utf-8 + Foreman_api_version: + - '2' + Foreman_current_location: + - ; ANY + Foreman_current_organization: + - ; ANY + Foreman_version: + - 3.12.0-develop + Keep-Alive: + - timeout=15, max=96 + Strict-Transport-Security: + - max-age=631139040; includeSubdomains + X-Content-Type-Options: + - nosniff + X-Download-Options: + - noopen + X-Frame-Options: + - sameorigin + X-Permitted-Cross-Domain-Policies: + - none + X-XSS-Protection: + - 1; mode=block + status: + code: 200 + message: OK +version: 1 diff --git a/tests/test_playbooks/fixtures/content_view_filter_info_deb-1.yml b/tests/test_playbooks/fixtures/content_view_filter_info_deb-1.yml new file mode 100644 index 00000000..0a1df4ef --- /dev/null +++ b/tests/test_playbooks/fixtures/content_view_filter_info_deb-1.yml @@ -0,0 +1,300 @@ +interactions: +- request: + body: null + headers: + Accept: + - application/json;version=2 + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - apypie (https://github.com/Apipie/apypie) + method: GET + uri: https://foreman.example.org/api/status + response: + body: + string: '{"result":"ok","status":200,"version":"3.12.0-develop","api_version":2}' + headers: + Cache-Control: + - max-age=0, private, must-revalidate + Connection: + - Keep-Alive + Content-Length: + - '71' + Content-Security-Policy: + - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: + - application/json; charset=utf-8 + Foreman_api_version: + - '2' + Foreman_current_location: + - ; ANY + Foreman_current_organization: + - ; ANY + Foreman_version: + - 3.12.0-develop + Keep-Alive: + - timeout=15, max=100 + Strict-Transport-Security: + - max-age=631139040; includeSubdomains + X-Content-Type-Options: + - nosniff + X-Download-Options: + - noopen + X-Frame-Options: + - sameorigin + X-Permitted-Cross-Domain-Policies: + - none + X-XSS-Protection: + - 1; mode=block + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json;version=2 + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - apypie (https://github.com/Apipie/apypie) + method: GET + uri: https://foreman.example.org/katello/api/organizations?search=name%3D%22Test+Organization%22&per_page=4294967296 + response: + body: + string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": + 4294967296,\n \"search\": \"name=\\\"Test Organization\\\"\",\n \"sort\": + {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\":\"Test_Organization\",\"created_at\":\"2024-07-25 + 07:51:35 UTC\",\"updated_at\":\"2024-07-25 07:51:37 UTC\",\"id\":14,\"name\":\"Test + Organization\",\"title\":\"Test Organization\",\"description\":\"A test organization\"}]\n}\n" + headers: + Cache-Control: + - max-age=0, private, must-revalidate + Connection: + - Keep-Alive + Content-Length: + - '389' + Content-Security-Policy: + - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: + - application/json; charset=utf-8 + Foreman_api_version: + - '2' + Foreman_current_location: + - ; ANY + Foreman_current_organization: + - ; ANY + Foreman_version: + - 3.12.0-develop + Keep-Alive: + - timeout=15, max=99 + Strict-Transport-Security: + - max-age=631139040; includeSubdomains + X-Content-Type-Options: + - nosniff + X-Download-Options: + - noopen + X-Frame-Options: + - sameorigin + X-Permitted-Cross-Domain-Policies: + - none + X-XSS-Protection: + - 1; mode=block + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json;version=2 + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - apypie (https://github.com/Apipie/apypie) + method: GET + uri: https://foreman.example.org/katello/api/organizations/14/content_views?search=name%3D%22Test+Content+View%22&per_page=4294967296 + response: + body: + string: '{"total":2,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test + Content View\"","sort":{"by":"name","order":"asc"},"results":[{"composite":false,"component_ids":[],"duplicate_repositories_to_publish":[],"default":false,"version_count":0,"latest_version":null,"latest_version_id":null,"auto_publish":false,"solve_dependencies":false,"import_only":false,"generated_for":"none","related_cv_count":0,"related_composite_cvs":[],"filtered":true,"repository_ids":[30],"id":25,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":14,"organization":{"name":"Test + Organization","label":"Test_Organization","id":14},"created_at":"2024-07-25 + 07:51:54 UTC","updated_at":"2024-07-25 07:51:54 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":30,"name":"Test + Debian Repository","label":"Test_Debian_Repository","content_type":"deb"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]}]} + + ' + headers: + Cache-Control: + - max-age=0, private, must-revalidate + Connection: + - Keep-Alive + Content-Length: + - '1083' + Content-Security-Policy: + - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: + - application/json; charset=utf-8 + Foreman_api_version: + - '2' + Foreman_current_location: + - ; ANY + Foreman_current_organization: + - 14; Test Organization + Foreman_version: + - 3.12.0-develop + Keep-Alive: + - timeout=15, max=98 + Strict-Transport-Security: + - max-age=631139040; includeSubdomains + X-Content-Type-Options: + - nosniff + X-Download-Options: + - noopen + X-Frame-Options: + - sameorigin + X-Permitted-Cross-Domain-Policies: + - none + X-XSS-Protection: + - 1; mode=block + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json;version=2 + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - apypie (https://github.com/Apipie/apypie) + method: GET + uri: https://foreman.example.org/katello/api/content_views/25/filters?search=name%3D%22Test+Content+View+Filter+-+deb%22&per_page=4294967296 + response: + body: + string: '{"total":10,"subtotal":1,"selectable":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test + Content View Filter - deb\"","sort":{"by":"name","order":"asc"},"results":[{"inclusion":false,"id":114,"name":"Test + Content View Filter - deb","description":null,"created_at":"2024-07-25 07:51:58 + UTC","updated_at":"2024-07-25 07:51:58 UTC","content_view":{"composite":false,"component_ids":[],"duplicate_repositories_to_publish":[],"default":false,"version_count":0,"latest_version":null,"latest_version_id":null,"auto_publish":false,"solve_dependencies":false,"import_only":false,"generated_for":"none","related_cv_count":0,"related_composite_cvs":[],"filtered":true,"repository_ids":[30],"id":25,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":14,"organization":{"name":"Test + Organization","label":"Test_Organization","id":14},"created_at":"2024-07-25 + 07:51:54 UTC","updated_at":"2024-07-25 07:51:54 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":30,"name":"Test + Debian Repository","label":"Test_Debian_Repository","content_type":"deb"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]},"repositories":[],"type":"deb","rules":[]}]} + + ' + headers: + Cache-Control: + - max-age=0, private, must-revalidate + Connection: + - Keep-Alive + Content-Length: + - '1320' + Content-Security-Policy: + - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: + - application/json; charset=utf-8 + Foreman_api_version: + - '2' + Foreman_current_location: + - ; ANY + Foreman_current_organization: + - ; ANY + Foreman_version: + - 3.12.0-develop + Keep-Alive: + - timeout=15, max=97 + Strict-Transport-Security: + - max-age=631139040; includeSubdomains + X-Content-Type-Options: + - nosniff + X-Download-Options: + - noopen + X-Frame-Options: + - sameorigin + X-Permitted-Cross-Domain-Policies: + - none + X-XSS-Protection: + - 1; mode=block + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json;version=2 + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - apypie (https://github.com/Apipie/apypie) + method: GET + uri: https://foreman.example.org/katello/api/content_views/25/filters/114 + response: + body: + string: ' {"inclusion":false,"id":114,"name":"Test Content View Filter - deb","description":null,"created_at":"2024-07-25 + 07:51:58 UTC","updated_at":"2024-07-25 07:51:58 UTC","content_view":{"composite":false,"component_ids":[],"duplicate_repositories_to_publish":[],"default":false,"version_count":0,"latest_version":null,"latest_version_id":null,"auto_publish":false,"solve_dependencies":false,"import_only":false,"generated_for":"none","related_cv_count":0,"related_composite_cvs":[],"filtered":true,"repository_ids":[30],"id":25,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":14,"organization":{"name":"Test + Organization","label":"Test_Organization","id":14},"created_at":"2024-07-25 + 07:51:54 UTC","updated_at":"2024-07-25 07:51:54 UTC","last_task":null,"latest_version_environments":[],"repositories":[{"id":30,"name":"Test + Debian Repository","label":"Test_Debian_Repository","content_type":"deb","product":{"id":12,"name":"Test + Product"},"content_counts":{"docker_manifest":0,"docker_tag":0,"rpm":0,"package":0,"package_group":0,"erratum":0,"module_stream":0}}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"hosts":[],"next_version":"1.0","last_published":null,"environments":[]},"repositories":[],"type":"deb","rules":[]} + + ' + headers: + Cache-Control: + - max-age=0, private, must-revalidate + Connection: + - Keep-Alive + Content-Length: + - '1301' + Content-Security-Policy: + - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: + - application/json; charset=utf-8 + Foreman_api_version: + - '2' + Foreman_current_location: + - ; ANY + Foreman_current_organization: + - ; ANY + Foreman_version: + - 3.12.0-develop + Keep-Alive: + - timeout=15, max=96 + Strict-Transport-Security: + - max-age=631139040; includeSubdomains + X-Content-Type-Options: + - nosniff + X-Download-Options: + - noopen + X-Frame-Options: + - sameorigin + X-Permitted-Cross-Domain-Policies: + - none + X-XSS-Protection: + - 1; mode=block + status: + code: 200 + message: OK +version: 1 From a9c2c32643146a69bb06f9f17b9d6b458fcea79d Mon Sep 17 00:00:00 2001 From: Evgeni Golov Date: Thu, 25 Jul 2024 11:41:53 +0200 Subject: [PATCH 27/36] add packit --- .packit.yaml | 41 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 .packit.yaml diff --git a/.packit.yaml b/.packit.yaml new file mode 100644 index 00000000..47206ca4 --- /dev/null +++ b/.packit.yaml @@ -0,0 +1,41 @@ +# See the documentation for more information: +# https://packit.dev/docs/configuration/ + +specfile_path: ansible-collection-theforeman-foreman.spec + +# add or remove files that should be synced +files_to_sync: + - ansible-collection-theforeman-foreman.spec + - .packit.yaml + +# name in upstream package repository or registry (e.g. in PyPI) +upstream_package_name: theforeman.foreman +# downstream (Fedora) RPM package name +downstream_package_name: ansible-collection-theforeman-foreman + +upstream_tag_template: v{version} + +actions: + post-upstream-clone: + - "wget https://github.com/theforeman/foreman-packaging/raw/rpm/develop/packages/plugins/ansible-collection-theforeman-foreman/ansible-collection-theforeman-foreman.spec -O ansible-collection-theforeman-foreman.spec" + get-current-version: + - python3 -c 'import yaml; print(yaml.safe_load(open("galaxy.yml"))["version"].replace("-dev", ""))' + create-archive: + - make dist PYTHON_COMMAND=python3 + - bash -c "ls -1t ./theforeman-foreman-*.tar.gz | head -n 1" + +jobs: + - job: copr_build + trigger: pull_request + targets: + - rhel-8 + - rhel-9 + module_hotfixes: true + +srpm_build_deps: + - wget + - python3 + - python3-py + - python3-pyyaml + - make + - ansible-core From daaa50565fe9638e7ae9a38703f3f9cd6abec49d Mon Sep 17 00:00:00 2001 From: Richard J Osborne <20555769+rjo-uk@users.noreply.github.com> Date: Tue, 13 Aug 2024 14:57:01 +0100 Subject: [PATCH 28/36] repositories role -- allow additional product options --- roles/repositories/tasks/main.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/roles/repositories/tasks/main.yml b/roles/repositories/tasks/main.yml index 02e5f1af..1bfa4648 100644 --- a/roles/repositories/tasks/main.yml +++ b/roles/repositories/tasks/main.yml @@ -39,9 +39,14 @@ validate_certs: "{{ foreman_validate_certs | default(omit) }}" organization: "{{ foreman_organization }}" name: "{{ item.name }}" + description: "{{ item.description | default(omit) }}" label: "{{ item.label | default(omit) }}" gpg_key: "{{ item.gpg_key | default(omit) }}" + ssl_ca_cert: "{{ item.ssl_ca_cert | default(omit) }}" + ssl_client_cert: "{{ item.ssl_client_cert | default(omit) }}" + ssl_client_key: "{{ item.ssl_client_key | default(omit) }}" state: "{{ item.state | default(omit) }}" + sync_plan: "{{ item.sync_plan | default(omit) }}" with_items: - "{{ foreman_products | selectattr('repositories', 'defined') | map('combine', {'repositories': '[FILTERED]'}) | list }}" From 82b03fbd93f46137c88028cd3114b0a1b8b2903c Mon Sep 17 00:00:00 2001 From: Evgeni Golov Date: Mon, 19 Aug 2024 08:33:41 +0200 Subject: [PATCH 29/36] install community.docker from a direct link older ansible releases (2.11) have a problem to find the right version now that community.docker has more than 100 releases --- .github/workflows/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 95efeec0..8b2c8d3f 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -80,7 +80,7 @@ jobs: - name: prepare a redhat-uep.pem, even if we run on Ubuntu run: sudo mkdir -p /etc/rhsm/ca/ && sudo curl -o /etc/rhsm/ca/redhat-uep.pem https://ftp.redhat.com/redhat/convert2rhel/redhat-uep.pem - name: Install required collections for ansible-base (2.10+) - run: ansible-galaxy collection install community.docker + run: ansible-galaxy collection install https://galaxy.ansible.com/api/v3/plugin/ansible/content/published/collections/artifacts/community-docker-3.12.0.tar.gz if: matrix.ansible != 'v2.9.17' - name: Run crud tests run: make test-crud From 49e859b16af99af729bdf50e06cb981904ec7299 Mon Sep 17 00:00:00 2001 From: Evgeni Golov Date: Tue, 27 Aug 2024 21:01:48 +0200 Subject: [PATCH 30/36] don't send empty JSON body in GET requests to the portal Fixes: #1768 --- changelogs/fragments/1768-empty-get-body.yml | 2 ++ plugins/modules/redhat_manifest.py | 12 +++++----- .../fixtures/redhat_manifest-0.yml | 24 ++++--------------- .../fixtures/redhat_manifest-1.yml | 18 +++----------- .../fixtures/redhat_manifest-2.yml | 18 +++----------- 5 files changed, 18 insertions(+), 56 deletions(-) create mode 100644 changelogs/fragments/1768-empty-get-body.yml diff --git a/changelogs/fragments/1768-empty-get-body.yml b/changelogs/fragments/1768-empty-get-body.yml new file mode 100644 index 00000000..697bd850 --- /dev/null +++ b/changelogs/fragments/1768-empty-get-body.yml @@ -0,0 +1,2 @@ +bugfixes: + - redhat_manifest - do not send empty JSON bodies in GET requests which confuse the portal sometimes (https://github.com/theforeman/foreman-ansible-modules/issues/1768) diff --git a/plugins/modules/redhat_manifest.py b/plugins/modules/redhat_manifest.py index 7667e865..c4293220 100644 --- a/plugins/modules/redhat_manifest.py +++ b/plugins/modules/redhat_manifest.py @@ -146,16 +146,16 @@ def fetch_portal(module, path, method, data=None, accept_header='application/json'): - if data is None: - data = {} + headers = {'accept': accept_header} + if data is not None: + data = json.dumps(data) + headers['content-type'] = 'application/json' url = module.params['portal'] + path - headers = {'accept': accept_header, - 'content-type': 'application/json'} fetch_kwargs = {'timeout': 30} if os.path.exists(REDHAT_UEP): fetch_kwargs['ca_path'] = REDHAT_UEP try: - resp, info = fetch_url(module, url, json.dumps(data), headers, method, **fetch_kwargs) + resp, info = fetch_url(module, url, data, headers, method, **fetch_kwargs) except TypeError: # ca_path was added in Ansible 2.9 and backported to 2.8 in 2.8.6 # older Ansible releases don't support that and we have to omit the CA cert here @@ -163,7 +163,7 @@ def fetch_portal(module, path, method, data=None, accept_header='application/jso module.warn("Your Ansible version does not support providing custom CA certificates for HTTP requests. " "Talking to the Red Hat portal might fail without validate_certs=False. Please update.") del fetch_kwargs['ca_path'] - resp, info = fetch_url(module, url, json.dumps(data), headers, method, **fetch_kwargs) + resp, info = fetch_url(module, url, data, headers, method, **fetch_kwargs) if resp is None or info["status"] >= 400: try: error = json.loads(info['body'])['displayMessage'] diff --git a/tests/test_playbooks/fixtures/redhat_manifest-0.yml b/tests/test_playbooks/fixtures/redhat_manifest-0.yml index 45667107..0d360cd6 100644 --- a/tests/test_playbooks/fixtures/redhat_manifest-0.yml +++ b/tests/test_playbooks/fixtures/redhat_manifest-0.yml @@ -1,15 +1,11 @@ interactions: - request: - body: '{}' + body: null headers: Accept: - application/json Connection: - close - Content-Length: - - '2' - Content-Type: - - application/json Host: - subscription.rhsm.redhat.com User-Agent: @@ -34,16 +30,12 @@ interactions: code: 200 message: OK - request: - body: '{}' + body: null headers: Accept: - application/json Connection: - close - Content-Length: - - '2' - Content-Type: - - application/json Host: - subscription.rhsm.redhat.com User-Agent: @@ -107,16 +99,12 @@ interactions: code: 200 message: OK - request: - body: '{}' + body: null headers: Accept: - application/json Connection: - close - Content-Length: - - '2' - Content-Type: - - application/json Host: - subscription.rhsm.redhat.com User-Agent: @@ -141,16 +129,12 @@ interactions: code: 200 message: OK - request: - body: '{}' + body: null headers: Accept: - application/json Connection: - close - Content-Length: - - '2' - Content-Type: - - application/json Host: - subscription.rhsm.redhat.com User-Agent: diff --git a/tests/test_playbooks/fixtures/redhat_manifest-1.yml b/tests/test_playbooks/fixtures/redhat_manifest-1.yml index 555a10fe..20017436 100644 --- a/tests/test_playbooks/fixtures/redhat_manifest-1.yml +++ b/tests/test_playbooks/fixtures/redhat_manifest-1.yml @@ -1,15 +1,11 @@ interactions: - request: - body: '{}' + body: null headers: Accept: - application/json Connection: - close - Content-Length: - - '2' - Content-Type: - - application/json Host: - subscription.rhsm.redhat.com User-Agent: @@ -34,16 +30,12 @@ interactions: code: 200 message: OK - request: - body: '{}' + body: null headers: Accept: - application/json Connection: - close - Content-Length: - - '2' - Content-Type: - - application/json Host: - subscription.rhsm.redhat.com User-Agent: @@ -68,16 +60,12 @@ interactions: code: 200 message: OK - request: - body: '{}' + body: null headers: Accept: - application/json Connection: - close - Content-Length: - - '2' - Content-Type: - - application/json Host: - subscription.rhsm.redhat.com User-Agent: diff --git a/tests/test_playbooks/fixtures/redhat_manifest-2.yml b/tests/test_playbooks/fixtures/redhat_manifest-2.yml index e0d06689..be28bea0 100644 --- a/tests/test_playbooks/fixtures/redhat_manifest-2.yml +++ b/tests/test_playbooks/fixtures/redhat_manifest-2.yml @@ -1,15 +1,11 @@ interactions: - request: - body: '{}' + body: null headers: Accept: - application/json Connection: - close - Content-Length: - - '2' - Content-Type: - - application/json Host: - subscription.rhsm.redhat.com User-Agent: @@ -34,16 +30,12 @@ interactions: code: 200 message: OK - request: - body: '{}' + body: null headers: Accept: - application/json Connection: - close - Content-Length: - - '2' - Content-Type: - - application/json Host: - subscription.rhsm.redhat.com User-Agent: @@ -68,16 +60,12 @@ interactions: code: 200 message: OK - request: - body: '{}' + body: null headers: Accept: - application/json Connection: - close - Content-Length: - - '2' - Content-Type: - - application/json Host: - subscription.rhsm.redhat.com User-Agent: From d1bcd5a0919441a6331f0b89fcf186830c36f44a Mon Sep 17 00:00:00 2001 From: Evgeni Golov Date: Fri, 30 Aug 2024 12:39:26 +0200 Subject: [PATCH 31/36] allow setting `state` for the LCE, allowing deletion of existing ones --- changelogs/fragments/lce-role-state.yml | 2 ++ roles/lifecycle_environments/tasks/main.yml | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) create mode 100644 changelogs/fragments/lce-role-state.yml diff --git a/changelogs/fragments/lce-role-state.yml b/changelogs/fragments/lce-role-state.yml new file mode 100644 index 00000000..7e3514c8 --- /dev/null +++ b/changelogs/fragments/lce-role-state.yml @@ -0,0 +1,2 @@ +minor_changes: + - lifecycle_environments role - allow setting ``state`` for the LCE, allowing deletion of existing ones diff --git a/roles/lifecycle_environments/tasks/main.yml b/roles/lifecycle_environments/tasks/main.yml index f6f0ea1b..786d46a7 100644 --- a/roles/lifecycle_environments/tasks/main.yml +++ b/roles/lifecycle_environments/tasks/main.yml @@ -10,6 +10,6 @@ description: "{{ item.description | default(omit) }}" prior: "{{ item.prior }}" label: "{{ item.label | default(omit) }}" - state: present + state: "{{ item.state | default('present') }}" with_items: - "{{ foreman_lifecycle_environments }}" From 4097e5f5882e69960eb70874ce4fb5cfa71a74ec Mon Sep 17 00:00:00 2001 From: Evgeni Golov Date: Fri, 30 Aug 2024 14:10:08 +0200 Subject: [PATCH 32/36] Also wait for repository metadata in library export test Similar to cfb2bb0cbc79b49bc02b8f3677cf042dd5116850 --- tests/test_playbooks/content_export_library.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/test_playbooks/content_export_library.yml b/tests/test_playbooks/content_export_library.yml index 160f8fc8..a0b98822 100644 --- a/tests/test_playbooks/content_export_library.yml +++ b/tests/test_playbooks/content_export_library.yml @@ -15,6 +15,9 @@ - include_tasks: tasks/repository.yml vars: repository_state: present + - name: Wait for Repository metadata generation + ansible.builtin.pause: + seconds: 2 - hosts: tests collections: From bf3c9911b8c276748eca62dddc6862756c62895b Mon Sep 17 00:00:00 2001 From: Evgeni Golov Date: Mon, 26 Aug 2024 13:50:36 +0200 Subject: [PATCH 33/36] add tests for Vault variables --- plugins/callback/foreman.py | 2 +- tests/callback/three_hosts.yml | 14 +++ tests/callback/vault-pass | 1 + .../dir_store/foreman/testhost-facts.json | 10 ++ .../{testhost.json => testhost-report.json} | 24 ++++- .../{testhostA.json => testhostA-report.json} | 0 .../{testhostB.json => testhostB-report.json} | 0 .../{testhost.json => testhost-report.json} | 92 +++++++++++++------ .../{testhostA.json => testhostA-report.json} | 9 -- .../{testhostB.json => testhostB-report.json} | 9 -- tests/test_callback.py | 6 +- 11 files changed, 117 insertions(+), 50 deletions(-) create mode 100644 tests/callback/vault-pass create mode 100644 tests/fixtures/callback/dir_store/foreman/testhost-facts.json rename tests/fixtures/callback/dir_store/foreman/{testhost.json => testhost-report.json} (86%) rename tests/fixtures/callback/dir_store/foreman/{testhostA.json => testhostA-report.json} (100%) rename tests/fixtures/callback/dir_store/foreman/{testhostB.json => testhostB-report.json} (100%) rename tests/fixtures/callback/dir_store/proxy/{testhost.json => testhost-report.json} (86%) rename tests/fixtures/callback/dir_store/proxy/{testhostA.json => testhostA-report.json} (91%) rename tests/fixtures/callback/dir_store/proxy/{testhostB.json => testhostB-report.json} (91%) diff --git a/plugins/callback/foreman.py b/plugins/callback/foreman.py index e8be584c..6f70fb07 100644 --- a/plugins/callback/foreman.py +++ b/plugins/callback/foreman.py @@ -244,7 +244,7 @@ def _send_data(self, data_type, report_type, host, data): self._display.warning(u'Unknown report_type: {rt}'.format(rt=report_type)) if len(self.dir_store) > 0: - filename = u'{host}.json'.format(host=to_text(host)) + filename = u'{host}-{dt}.json'.format(host=to_text(host), dt=data_type) filename = os.path.join(self.dir_store, filename) with open(filename, 'w') as f: json.dump(data, f, indent=2, sort_keys=True) diff --git a/tests/callback/three_hosts.yml b/tests/callback/three_hosts.yml index cf9894fa..c333195c 100644 --- a/tests/callback/three_hosts.yml +++ b/tests/callback/three_hosts.yml @@ -3,6 +3,13 @@ gather_facts: false vars: foo: foo bar + crypt: !vault | + $ANSIBLE_VAULT;1.1;AES256 + 62343962363339363461373565656663663734393265636161313466326163666638333735303061 + 6134346238366533616262663462396332363535363662660a323339326635373330633230336332 + 38363334373037356466383063616532656632303636333839313831626264386132386661303535 + 3864663564356332390a633631363962353163316236323038363861623763616265343762366435 + 6237 tasks: - name: Changed task command: echo foo @@ -34,6 +41,13 @@ loop_control: label: foo-{{ item }} + - name: Vault command + command: echo {{ crypt }} + + - name: Vault fact + set_fact: + geheim: "{{ crypt }}" + handlers: - name: Test handler 1 command: echo foo diff --git a/tests/callback/vault-pass b/tests/callback/vault-pass new file mode 100644 index 00000000..dff0ae5a --- /dev/null +++ b/tests/callback/vault-pass @@ -0,0 +1 @@ +changeme diff --git a/tests/fixtures/callback/dir_store/foreman/testhost-facts.json b/tests/fixtures/callback/dir_store/foreman/testhost-facts.json new file mode 100644 index 00000000..d2b0ddb8 --- /dev/null +++ b/tests/fixtures/callback/dir_store/foreman/testhost-facts.json @@ -0,0 +1,10 @@ +{ + "facts": { + "_timestamp": "2000-01-01 12:00:00+00:00", + "_type": "ansible", + "ansible_facts": { + "geheim": "admin" + } + }, + "name": "testhost" +} \ No newline at end of file diff --git a/tests/fixtures/callback/dir_store/foreman/testhost.json b/tests/fixtures/callback/dir_store/foreman/testhost-report.json similarity index 86% rename from tests/fixtures/callback/dir_store/foreman/testhost.json rename to tests/fixtures/callback/dir_store/foreman/testhost-report.json index bc03bdea..95417e3b 100644 --- a/tests/fixtures/callback/dir_store/foreman/testhost.json +++ b/tests/fixtures/callback/dir_store/foreman/testhost-report.json @@ -58,6 +58,28 @@ } } }, + { + "log": { + "level": "notice", + "messages": { + "message": "{\"changed\": true, \"cmd\": [\"echo\", \"admin\"], \"delta\": \"12:00:00.0000\", \"end\": \"2000-01-01 12:00:00.0000\", \"failed\": false, \"invocation\": {\"module_args\": {\"_raw_params\": \"echo admin\", \"_uses_shell\": false, \"argv\": null, \"chdir\": null, \"creates\": null, \"executable\": null, \"removes\": null, \"stdin\": null, \"stdin_add_newline\": true, \"strip_empty_ends\": true}}, \"module\": \"command\", \"rc\": 0, \"start\": \"2000-01-01 12:00:00.0000\", \"stderr\": \"\", \"stderr_lines\": [], \"stdout\": \"admin\", \"stdout_lines\": [\"admin\"]}" + }, + "sources": { + "source": "Vault command" + } + } + }, + { + "log": { + "level": "info", + "messages": { + "message": "{\"ansible_facts\": {\"geheim\": \"admin\"}, \"changed\": false, \"failed\": false, \"module\": \"set_fact\"}" + }, + "sources": { + "source": "Vault fact" + } + } + }, { "log": { "level": "notice", @@ -100,7 +122,7 @@ "reported_at": "2000-01-01 12:00:00+00:00", "reporter": "ansible", "status": { - "applied": 5, + "applied": 6, "failed": 0, "skipped": 1 } diff --git a/tests/fixtures/callback/dir_store/foreman/testhostA.json b/tests/fixtures/callback/dir_store/foreman/testhostA-report.json similarity index 100% rename from tests/fixtures/callback/dir_store/foreman/testhostA.json rename to tests/fixtures/callback/dir_store/foreman/testhostA-report.json diff --git a/tests/fixtures/callback/dir_store/foreman/testhostB.json b/tests/fixtures/callback/dir_store/foreman/testhostB-report.json similarity index 100% rename from tests/fixtures/callback/dir_store/foreman/testhostB.json rename to tests/fixtures/callback/dir_store/foreman/testhostB-report.json diff --git a/tests/fixtures/callback/dir_store/proxy/testhost.json b/tests/fixtures/callback/dir_store/proxy/testhost-report.json similarity index 86% rename from tests/fixtures/callback/dir_store/proxy/testhost.json rename to tests/fixtures/callback/dir_store/proxy/testhost-report.json index 9a7ce00c..8b8af996 100644 --- a/tests/fixtures/callback/dir_store/proxy/testhost.json +++ b/tests/fixtures/callback/dir_store/proxy/testhost-report.json @@ -44,14 +44,11 @@ "check_mode": false, "delay": 5, "diff": false, - "finalized": true, "name": "Changed task", "notify": [ "test handlers" ], "poll": 15, - "retries": 3, - "squashed": true, "throttle": 0 } }, @@ -91,11 +88,8 @@ "check_mode": false, "delay": 5, "diff": false, - "finalized": true, "name": "Ok task", "poll": 15, - "retries": 3, - "squashed": true, "throttle": 0 } }, @@ -114,12 +108,9 @@ "check_mode": false, "delay": 5, "diff": false, - "finalized": true, "ignore_errors": true, "name": "Failed task", "poll": 15, - "retries": 3, - "squashed": true, "throttle": 0 } }, @@ -156,11 +147,8 @@ "check_mode": false, "delay": 5, "diff": false, - "finalized": true, "name": "Task with var in name (foo bar)", "poll": 15, - "retries": 3, - "squashed": true, "throttle": 0 } }, @@ -256,7 +244,6 @@ "check_mode": false, "delay": 5, "diff": false, - "finalized": true, "loop": [ 1, 2, @@ -264,8 +251,67 @@ ], "name": "Loop task", "poll": 15, - "retries": 3, - "squashed": true, + "throttle": 0 + } + }, + { + "failed": false, + "result": { + "changed": true, + "cmd": [ + "echo", + "admin" + ], + "invocation": { + "module_args": { + "_raw_params": "echo admin", + "_uses_shell": false, + "stdin_add_newline": true, + "strip_empty_ends": true + } + }, + "rc": 0, + "stderr": "", + "stdout": "admin", + "stdout_lines": [ + "admin" + ] + }, + "task": { + "action": "command", + "any_errors_fatal": false, + "async": 0, + "async_val": 0, + "become": false, + "become_method": "sudo", + "check_mode": false, + "delay": 5, + "diff": false, + "name": "Vault command", + "poll": 15, + "throttle": 0 + } + }, + { + "failed": false, + "result": { + "ansible_facts": { + "geheim": "admin" + }, + "changed": false + }, + "task": { + "action": "set_fact", + "any_errors_fatal": false, + "async": 0, + "async_val": 0, + "become": false, + "become_method": "sudo", + "check_mode": false, + "delay": 5, + "diff": false, + "name": "Vault fact", + "poll": 15, "throttle": 0 } }, @@ -302,13 +348,9 @@ "check_mode": false, "delay": 5, "diff": false, - "finalized": true, "is_handler": true, - "listen": "test handlers", "name": "Test handler 1", "poll": 15, - "retries": 3, - "squashed": true, "throttle": 0 } }, @@ -348,13 +390,9 @@ "check_mode": false, "delay": 5, "diff": false, - "finalized": true, "is_handler": true, - "listen": "test handlers", "name": "Test handler 2", "poll": 15, - "retries": 3, - "squashed": true, "throttle": 0 } }, @@ -391,22 +429,18 @@ "check_mode": false, "delay": 5, "diff": false, - "finalized": true, "is_handler": true, - "listen": "test handlers", "name": "Test handler 3", "poll": 15, - "retries": 3, - "squashed": true, "throttle": 0 } } ], "summary": { - "changed": 5, + "changed": 6, "failures": 0, "ignored": 1, - "ok": 8, + "ok": 10, "rescued": 0, "skipped": 1, "unreachable": 0 diff --git a/tests/fixtures/callback/dir_store/proxy/testhostA.json b/tests/fixtures/callback/dir_store/proxy/testhostA-report.json similarity index 91% rename from tests/fixtures/callback/dir_store/proxy/testhostA.json rename to tests/fixtures/callback/dir_store/proxy/testhostA-report.json index 5798dadb..b7c34c6d 100644 --- a/tests/fixtures/callback/dir_store/proxy/testhostA.json +++ b/tests/fixtures/callback/dir_store/proxy/testhostA-report.json @@ -44,11 +44,8 @@ "check_mode": false, "delay": 5, "diff": false, - "finalized": true, "name": "Changed task", "poll": 15, - "retries": 3, - "squashed": true, "throttle": 0 } }, @@ -88,11 +85,8 @@ "check_mode": false, "delay": 5, "diff": false, - "finalized": true, "name": "Ok task", "poll": 15, - "retries": 3, - "squashed": true, "throttle": 0 } }, @@ -111,12 +105,9 @@ "check_mode": false, "delay": 5, "diff": false, - "finalized": true, "ignore_errors": true, "name": "Failed task", "poll": 15, - "retries": 3, - "squashed": true, "throttle": 0 } } diff --git a/tests/fixtures/callback/dir_store/proxy/testhostB.json b/tests/fixtures/callback/dir_store/proxy/testhostB-report.json similarity index 91% rename from tests/fixtures/callback/dir_store/proxy/testhostB.json rename to tests/fixtures/callback/dir_store/proxy/testhostB-report.json index a78950d0..66f597eb 100644 --- a/tests/fixtures/callback/dir_store/proxy/testhostB.json +++ b/tests/fixtures/callback/dir_store/proxy/testhostB-report.json @@ -44,11 +44,8 @@ "check_mode": false, "delay": 5, "diff": false, - "finalized": true, "name": "Changed task", "poll": 15, - "retries": 3, - "squashed": true, "throttle": 0 } }, @@ -88,11 +85,8 @@ "check_mode": false, "delay": 5, "diff": false, - "finalized": true, "name": "Ok task", "poll": 15, - "retries": 3, - "squashed": true, "throttle": 0 } }, @@ -111,12 +105,9 @@ "check_mode": false, "delay": 5, "diff": false, - "finalized": true, "ignore_errors": true, "name": "Failed task", "poll": 15, - "retries": 3, - "squashed": true, "throttle": 0 } } diff --git a/tests/test_callback.py b/tests/test_callback.py index f6175cd6..6883e0c4 100644 --- a/tests/test_callback.py +++ b/tests/test_callback.py @@ -26,6 +26,7 @@ def run_playbook_callback(tmpdir, report_type): extra_env['FOREMAN_SSL_CERT'] = "/dev/zero" extra_env['FOREMAN_SSL_KEY'] = "/dev/zero" extra_env['FOREMAN_DIR_STORE'] = tmpdir.strpath + extra_env['ANSIBLE_VAULT_PASSWORD_FILE'] = os.path.join(os.getcwd(), 'tests', 'callback', 'vault-pass') playbook = os.path.join('..', 'callback', 'three_hosts') inventory = os.path.join(os.getcwd(), 'tests', 'callback', 'three_hosts') return run_playbook(playbook, inventory=inventory, extra_env=extra_env) @@ -71,7 +72,10 @@ def run_callback(tmpdir, report_type, vcrmode): contents = re.sub(r", \\\"expand_argument_vars\\\": true", "", contents) real_contents = json.loads(contents) if report_type == "foreman": - real_contents['config_report']['metrics']['time']['total'] = 1 + try: + real_contents['config_report']['metrics']['time']['total'] = 1 + except KeyError: + pass else: real_contents['metrics']['time']['total'] = 1 real_contents = drop_incompatible_items(real_contents) From 3d8d3e9748c2ab56a3faa4b5df2976f9d5d1df29 Mon Sep 17 00:00:00 2001 From: Evgeni Golov Date: Tue, 27 Aug 2024 08:53:43 +0200 Subject: [PATCH 34/36] correctly catch facts with vault and other ansible-specific data --- .../fragments/1769-callback-vault-facts.yml | 2 ++ plugins/callback/foreman.py | 17 +++++++++++++++-- tests/callback/three_hosts.yml | 9 +++++++++ .../dir_store/foreman/testhost-facts.json | 4 +++- .../dir_store/proxy/testhost-report.json | 4 +++- 5 files changed, 32 insertions(+), 4 deletions(-) create mode 100644 changelogs/fragments/1769-callback-vault-facts.yml diff --git a/changelogs/fragments/1769-callback-vault-facts.yml b/changelogs/fragments/1769-callback-vault-facts.yml new file mode 100644 index 00000000..6cf923b5 --- /dev/null +++ b/changelogs/fragments/1769-callback-vault-facts.yml @@ -0,0 +1,2 @@ +bugfixes: + - callback plugin - correctly catch facts with vault data and replace it with ``ENCRYPTED_VAULT_VALUE_NOT_REPORTED``, preventing ``Object of type AnsibleVaultEncryptedUnicode is not JSON serializable`` errors diff --git a/plugins/callback/foreman.py b/plugins/callback/foreman.py index 6f70fb07..2c976775 100644 --- a/plugins/callback/foreman.py +++ b/plugins/callback/foreman.py @@ -118,6 +118,7 @@ HAS_REQUESTS = False from ansible.module_utils._text import to_text +from ansible.module_utils.common.json import AnsibleJSONEncoder from ansible.module_utils.parsing.convert_bool import boolean as to_bool from ansible.plugins.callback import CallbackBase @@ -172,6 +173,15 @@ def get_now(): return datetime.utcnow().strftime("%Y-%m-%d %H:%M:%S+00:00") +class AnsibleNoVaultJSONEncoder(AnsibleJSONEncoder): + def default(self, o): + if getattr(o, '__ENCRYPTED__', False): + value = 'ENCRYPTED_VAULT_VALUE_NOT_REPORTED' + else: + value = super(AnsibleNoVaultJSONEncoder, self).default(o) + return value + + class CallbackModule(CallbackBase): CALLBACK_VERSION = 2.0 CALLBACK_TYPE = 'notification' @@ -243,14 +253,17 @@ def _send_data(self, data_type, report_type, host, data): else: self._display.warning(u'Unknown report_type: {rt}'.format(rt=report_type)) + json_data = json.dumps(data, indent=2, sort_keys=True, cls=AnsibleNoVaultJSONEncoder) + if len(self.dir_store) > 0: filename = u'{host}-{dt}.json'.format(host=to_text(host), dt=data_type) filename = os.path.join(self.dir_store, filename) with open(filename, 'w') as f: - json.dump(data, f, indent=2, sort_keys=True) + f.write(json_data) else: try: - response = self.session.post(url=url, json=data) + headers = {'content-type': 'application/json'} + response = self.session.post(url=url, data=json_data, headers=headers) response.raise_for_status() except requests.exceptions.RequestException as err: self._display.warning(u'Sending data to Foreman at {url} failed for {host}: {err}'.format( diff --git a/tests/callback/three_hosts.yml b/tests/callback/three_hosts.yml index c333195c..58432921 100644 --- a/tests/callback/three_hosts.yml +++ b/tests/callback/three_hosts.yml @@ -47,6 +47,15 @@ - name: Vault fact set_fact: geheim: "{{ crypt }}" + crypt: !vault | + $ANSIBLE_VAULT;1.1;AES256 + 62343962363339363461373565656663663734393265636161313466326163666638333735303061 + 6134346238366533616262663462396332363535363662660a323339326635373330633230336332 + 38363334373037356466383063616532656632303636333839313831626264386132386661303535 + 3864663564356332390a633631363962353163316236323038363861623763616265343762366435 + 6237 + unsafe: !unsafe | + THIS IS {{ crypt }} handlers: - name: Test handler 1 diff --git a/tests/fixtures/callback/dir_store/foreman/testhost-facts.json b/tests/fixtures/callback/dir_store/foreman/testhost-facts.json index d2b0ddb8..6270adc1 100644 --- a/tests/fixtures/callback/dir_store/foreman/testhost-facts.json +++ b/tests/fixtures/callback/dir_store/foreman/testhost-facts.json @@ -3,7 +3,9 @@ "_timestamp": "2000-01-01 12:00:00+00:00", "_type": "ansible", "ansible_facts": { - "geheim": "admin" + "crypt": "ENCRYPTED_VAULT_VALUE_NOT_REPORTED", + "geheim": "admin", + "unsafe": "THIS IS {{ crypt }}\n" } }, "name": "testhost" diff --git a/tests/fixtures/callback/dir_store/proxy/testhost-report.json b/tests/fixtures/callback/dir_store/proxy/testhost-report.json index 8b8af996..61de85ab 100644 --- a/tests/fixtures/callback/dir_store/proxy/testhost-report.json +++ b/tests/fixtures/callback/dir_store/proxy/testhost-report.json @@ -296,7 +296,9 @@ "failed": false, "result": { "ansible_facts": { - "geheim": "admin" + "crypt": "ENCRYPTED_VAULT_VALUE_NOT_REPORTED", + "geheim": "admin", + "unsafe": "THIS IS {{ crypt }}\n" }, "changed": false }, From 270736f6346c0dc18de07b8b162830409b3468af Mon Sep 17 00:00:00 2001 From: Evgeni Golov Date: Fri, 30 Aug 2024 19:40:40 +0200 Subject: [PATCH 35/36] Release 4.2.0 --- CHANGELOG.rst | 16 ++++++++++++++ changelogs/changelog.yaml | 21 +++++++++++++++++++ .../fragments/1724-location_description.yml | 2 -- .../fragments/1738-export_chunk_size.yml | 2 -- changelogs/fragments/1768-empty-get-body.yml | 2 -- .../fragments/1769-callback-vault-facts.yml | 2 -- changelogs/fragments/lce-role-state.yml | 2 -- galaxy.yml | 5 ++++- 8 files changed, 41 insertions(+), 11 deletions(-) delete mode 100644 changelogs/fragments/1724-location_description.yml delete mode 100644 changelogs/fragments/1738-export_chunk_size.yml delete mode 100644 changelogs/fragments/1768-empty-get-body.yml delete mode 100644 changelogs/fragments/1769-callback-vault-facts.yml delete mode 100644 changelogs/fragments/lce-role-state.yml diff --git a/CHANGELOG.rst b/CHANGELOG.rst index 17ca4b82..2f675e2a 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -6,6 +6,22 @@ theforeman.foreman Release Notes This changelog describes changes after version 0.8.1. +v4.2.0 +====== + +Minor Changes +------------- + +- content_export_* - document that ``chunk_size_gb`` parameter is only applicable for ``importable`` exports (https://github.com/theforeman/foreman-ansible-modules/issues/1738) +- lifecycle_environments role - allow setting ``state`` for the LCE, allowing deletion of existing ones +- location, locations role - add ``description`` parameter to set the description + +Bugfixes +-------- + +- callback plugin - correctly catch facts with vault data and replace it with ``ENCRYPTED_VAULT_VALUE_NOT_REPORTED``, preventing ``Object of type AnsibleVaultEncryptedUnicode is not JSON serializable`` errors +- redhat_manifest - do not send empty JSON bodies in GET requests which confuse the portal sometimes (https://github.com/theforeman/foreman-ansible-modules/issues/1768) + v4.1.0 ====== diff --git a/changelogs/changelog.yaml b/changelogs/changelog.yaml index 9288d20e..77deb170 100644 --- a/changelogs/changelog.yaml +++ b/changelogs/changelog.yaml @@ -894,3 +894,24 @@ releases: name: content_import_version namespace: '' release_date: '2024-07-12' + 4.2.0: + changes: + bugfixes: + - callback plugin - correctly catch facts with vault data and replace it with + ``ENCRYPTED_VAULT_VALUE_NOT_REPORTED``, preventing ``Object of type AnsibleVaultEncryptedUnicode + is not JSON serializable`` errors + - redhat_manifest - do not send empty JSON bodies in GET requests which confuse + the portal sometimes (https://github.com/theforeman/foreman-ansible-modules/issues/1768) + minor_changes: + - content_export_* - document that ``chunk_size_gb`` parameter is only applicable + for ``importable`` exports (https://github.com/theforeman/foreman-ansible-modules/issues/1738) + - lifecycle_environments role - allow setting ``state`` for the LCE, allowing + deletion of existing ones + - location, locations role - add ``description`` parameter to set the description + fragments: + - 1724-location_description.yml + - 1738-export_chunk_size.yml + - 1768-empty-get-body.yml + - 1769-callback-vault-facts.yml + - lce-role-state.yml + release_date: '2024-08-30' diff --git a/changelogs/fragments/1724-location_description.yml b/changelogs/fragments/1724-location_description.yml deleted file mode 100644 index 660d0411..00000000 --- a/changelogs/fragments/1724-location_description.yml +++ /dev/null @@ -1,2 +0,0 @@ -minor_changes: - - location, locations role - add ``description`` parameter to set the description diff --git a/changelogs/fragments/1738-export_chunk_size.yml b/changelogs/fragments/1738-export_chunk_size.yml deleted file mode 100644 index 89b6b97b..00000000 --- a/changelogs/fragments/1738-export_chunk_size.yml +++ /dev/null @@ -1,2 +0,0 @@ -minor_changes: - - content_export_* - document that ``chunk_size_gb`` parameter is only applicable for ``importable`` exports (https://github.com/theforeman/foreman-ansible-modules/issues/1738) diff --git a/changelogs/fragments/1768-empty-get-body.yml b/changelogs/fragments/1768-empty-get-body.yml deleted file mode 100644 index 697bd850..00000000 --- a/changelogs/fragments/1768-empty-get-body.yml +++ /dev/null @@ -1,2 +0,0 @@ -bugfixes: - - redhat_manifest - do not send empty JSON bodies in GET requests which confuse the portal sometimes (https://github.com/theforeman/foreman-ansible-modules/issues/1768) diff --git a/changelogs/fragments/1769-callback-vault-facts.yml b/changelogs/fragments/1769-callback-vault-facts.yml deleted file mode 100644 index 6cf923b5..00000000 --- a/changelogs/fragments/1769-callback-vault-facts.yml +++ /dev/null @@ -1,2 +0,0 @@ -bugfixes: - - callback plugin - correctly catch facts with vault data and replace it with ``ENCRYPTED_VAULT_VALUE_NOT_REPORTED``, preventing ``Object of type AnsibleVaultEncryptedUnicode is not JSON serializable`` errors diff --git a/changelogs/fragments/lce-role-state.yml b/changelogs/fragments/lce-role-state.yml deleted file mode 100644 index 7e3514c8..00000000 --- a/changelogs/fragments/lce-role-state.yml +++ /dev/null @@ -1,2 +0,0 @@ -minor_changes: - - lifecycle_environments role - allow setting ``state`` for the LCE, allowing deletion of existing ones diff --git a/galaxy.yml b/galaxy.yml index a4be1f36..c1cc06c1 100644 --- a/galaxy.yml +++ b/galaxy.yml @@ -70,12 +70,14 @@ authors: - "Partha Aji " - "Patrick C. F. Ernzer " - "Patrick Creech " + - "Patrick Pfurtscheller " - "Paul Armstrong " - "Paul Belanger " - "Paul Gration " - "Peter Ondrejka " - "Philipp " - "Quirin Pamp " + - "Richard J Osborne <20555769+rjo-uk@users.noreply.github.com>" - "Richard Stempfl " - "Richard Waax <40852459+riwael@users.noreply.github.com>" - "Sam " @@ -94,6 +96,7 @@ authors: - "alesc " - "bob <57952350+TheRedGreek@users.noreply.github.com>" - "calvingsmith <4283930+calvingsmith@users.noreply.github.com>" + - "cojmckee <32520575+cojmckee@users.noreply.github.com>" - "divialth <65872926+divialth@users.noreply.github.com>" - "furhouse " - "gardar " @@ -105,7 +108,7 @@ authors: - "russianguppie <46544650+russianguppie@users.noreply.github.com>" - "willtome " - "yuqo2450 <79540477+yuqo2450@users.noreply.github.com>" -version: "4.2.0-dev" +version: "4.2.0" license: - "GPL-3.0-or-later" tags: From b6bc9d8aed6b8e522f284d9da5ae5caf42845923 Mon Sep 17 00:00:00 2001 From: Evgeni Golov Date: Fri, 30 Aug 2024 20:23:46 +0200 Subject: [PATCH 36/36] drop packit during branding -- we do not have branded rpm spec (yet) --- .packit.yaml | 41 ----------------------------------------- Makefile | 1 + 2 files changed, 1 insertion(+), 41 deletions(-) delete mode 100644 .packit.yaml diff --git a/.packit.yaml b/.packit.yaml deleted file mode 100644 index 47206ca4..00000000 --- a/.packit.yaml +++ /dev/null @@ -1,41 +0,0 @@ -# See the documentation for more information: -# https://packit.dev/docs/configuration/ - -specfile_path: ansible-collection-theforeman-foreman.spec - -# add or remove files that should be synced -files_to_sync: - - ansible-collection-theforeman-foreman.spec - - .packit.yaml - -# name in upstream package repository or registry (e.g. in PyPI) -upstream_package_name: theforeman.foreman -# downstream (Fedora) RPM package name -downstream_package_name: ansible-collection-theforeman-foreman - -upstream_tag_template: v{version} - -actions: - post-upstream-clone: - - "wget https://github.com/theforeman/foreman-packaging/raw/rpm/develop/packages/plugins/ansible-collection-theforeman-foreman/ansible-collection-theforeman-foreman.spec -O ansible-collection-theforeman-foreman.spec" - get-current-version: - - python3 -c 'import yaml; print(yaml.safe_load(open("galaxy.yml"))["version"].replace("-dev", ""))' - create-archive: - - make dist PYTHON_COMMAND=python3 - - bash -c "ls -1t ./theforeman-foreman-*.tar.gz | head -n 1" - -jobs: - - job: copr_build - trigger: pull_request - targets: - - rhel-8 - - rhel-9 - module_hotfixes: true - -srpm_build_deps: - - wget - - python3 - - python3-py - - python3-pyyaml - - make - - ansible-core diff --git a/Makefile b/Makefile index f920dc72..fa264bcd 100644 --- a/Makefile +++ b/Makefile @@ -162,6 +162,7 @@ branding: rm -rf tests/test_playbooks/snapshot* tests/test_playbooks/tasks/snapshot* tests/test_playbooks/fixtures/snapshot* plugins/modules/snapshot*.py tests/fixtures/apidoc/snapshot*.json rm -rf tests/test_playbooks/*_deb.yml rm -rf tests/test_playbooks/*_ostree.yml + rm -rf .packit.yaml make $(RUNTIME_YML) FORCE: