Skip to content

Commit

Permalink
re-record katello_hostgroup
Browse files Browse the repository at this point in the history
  • Loading branch information
evgeni committed Oct 28, 2024
1 parent 7bbd011 commit a0aa2f4
Show file tree
Hide file tree
Showing 8 changed files with 459 additions and 657 deletions.
251 changes: 115 additions & 136 deletions tests/test_playbooks/fixtures/katello_hostgroup-0.yml

Large diffs are not rendered by default.

268 changes: 115 additions & 153 deletions tests/test_playbooks/fixtures/katello_hostgroup-1.yml

Large diffs are not rendered by default.

124 changes: 48 additions & 76 deletions tests/test_playbooks/fixtures/katello_hostgroup-2.yml

Large diffs are not rendered by default.

124 changes: 48 additions & 76 deletions tests/test_playbooks/fixtures/katello_hostgroup-3.yml

Large diffs are not rendered by default.

145 changes: 58 additions & 87 deletions tests/test_playbooks/fixtures/katello_hostgroup-4.yml

Large diffs are not rendered by default.

121 changes: 46 additions & 75 deletions tests/test_playbooks/fixtures/katello_hostgroup-5.yml

Large diffs are not rendered by default.

59 changes: 19 additions & 40 deletions tests/test_playbooks/fixtures/katello_hostgroup-6.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,14 @@ interactions:
uri: https://foreman.example.org/api/status
response:
body:
string: '{"result":"ok","status":200,"version":"2.5.2","api_version":2}'
string: '{"result":"ok","status":200,"version":"3.13.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'';
Expand All @@ -33,13 +35,11 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- 2.5.2
- 3.13.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:
Expand All @@ -50,8 +50,6 @@ interactions:
- none
X-XSS-Protection:
- 1; mode=block
content-length:
- '62'
status:
code: 200
message: OK
Expand All @@ -70,31 +68,18 @@ interactions:
uri: https://foreman.example.org/api/hostgroups?search=title%3D%22New+host+group%22&per_page=4294967296
response:
body:
string: "{\n \"total\": 1,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\
: 4294967296,\n \"search\": \"title=\\\"New host group\\\"\",\n \"sort\"\
: {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"subnet_id\"\
:null,\"subnet_name\":null,\"operatingsystem_id\":null,\"operatingsystem_name\"\
:null,\"domain_id\":null,\"domain_name\":null,\"environment_id\":null,\"environment_name\"\
:null,\"compute_profile_id\":null,\"compute_profile_name\":null,\"ancestry\"\
:null,\"parent_id\":null,\"parent_name\":null,\"ptable_id\":null,\"ptable_name\"\
:null,\"medium_id\":null,\"medium_name\":null,\"pxe_loader\":null,\"subnet6_id\"\
:null,\"subnet6_name\":null,\"compute_resource_id\":null,\"compute_resource_name\"\
:null,\"architecture_id\":null,\"architecture_name\":null,\"realm_id\":null,\"\
realm_name\":null,\"created_at\":\"2021-08-24 14:14:04 UTC\",\"updated_at\"\
:\"2021-08-24 14:14:04 UTC\",\"id\":2,\"name\":\"New host group\",\"title\"\
:\"New host group\",\"description\":null,\"puppet_proxy_id\":null,\"puppet_proxy_name\"\
:null,\"puppet_ca_proxy_id\":null,\"puppet_ca_proxy_name\":null,\"puppet_proxy\"\
:null,\"puppet_ca_proxy\":null,\"inherited_compute_profile_id\":null,\"inherited_environment_id\"\
:null,\"inherited_domain_id\":null,\"inherited_puppet_proxy_id\":null,\"inherited_puppet_ca_proxy_id\"\
:null,\"inherited_compute_resource_id\":null,\"inherited_operatingsystem_id\"\
:null,\"inherited_architecture_id\":null,\"inherited_medium_id\":null,\"inherited_ptable_id\"\
:null,\"inherited_subnet_id\":null,\"inherited_subnet6_id\":null,\"inherited_realm_id\"\
:null,\"inherited_pxe_loader\":null}]\n}\n"
string: "{\n \"total\": 1,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\":
4294967296,\n \"search\": \"title=\\\"New host group\\\"\",\n \"sort\":
{\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"subnet_id\":null,\"subnet_name\":null,\"operatingsystem_id\":null,\"operatingsystem_name\":null,\"domain_id\":null,\"domain_name\":null,\"compute_profile_id\":null,\"compute_profile_name\":null,\"ancestry\":null,\"parent_id\":null,\"parent_name\":null,\"ptable_id\":null,\"ptable_name\":null,\"medium_id\":null,\"medium_name\":null,\"pxe_loader\":null,\"subnet6_id\":null,\"subnet6_name\":null,\"compute_resource_id\":null,\"compute_resource_name\":null,\"architecture_id\":null,\"architecture_name\":null,\"realm_id\":null,\"realm_name\":null,\"created_at\":\"2024-10-15
08:36:42 UTC\",\"updated_at\":\"2024-10-15 08:36:42 UTC\",\"id\":30,\"name\":\"New
host group\",\"title\":\"New host group\",\"description\":null,\"puppet_proxy_id\":null,\"puppet_proxy_name\":null,\"puppet_ca_proxy_id\":null,\"puppet_ca_proxy_name\":null,\"puppet_proxy\":null,\"puppet_ca_proxy\":null,\"inherited_compute_profile_id\":null,\"inherited_domain_id\":null,\"inherited_puppet_proxy_id\":null,\"inherited_puppet_ca_proxy_id\":null,\"inherited_compute_resource_id\":null,\"inherited_operatingsystem_id\":null,\"inherited_architecture_id\":null,\"inherited_medium_id\":null,\"inherited_ptable_id\":null,\"inherited_subnet_id\":null,\"inherited_subnet6_id\":null,\"inherited_realm_id\":null,\"inherited_pxe_loader\":null}]\n}\n"
headers:
Cache-Control:
- max-age=0, private, must-revalidate
Connection:
- Keep-Alive
Content-Length:
- '1380'
Content-Security-Policy:
- 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:;
img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self'';
Expand All @@ -108,13 +93,11 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- 2.5.2
- 3.13.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:
Expand All @@ -125,8 +108,6 @@ interactions:
- none
X-XSS-Protection:
- 1; mode=block
content-length:
- '1457'
status:
code: 200
message: OK
Expand All @@ -144,17 +125,19 @@ interactions:
User-Agent:
- apypie (https://github.com/Apipie/apypie)
method: DELETE
uri: https://foreman.example.org/api/hostgroups/2
uri: https://foreman.example.org/api/hostgroups/30
response:
body:
string: '{"id":2,"name":"New host group","created_at":"2021-08-24T14:14:04.230Z","updated_at":"2021-08-24T14:14:04.230Z","environment_id":null,"operatingsystem_id":null,"architecture_id":null,"medium_id":null,"ptable_id":null,"root_pass":null,"puppet_ca_proxy_id":null,"use_image":null,"image_file":"","ancestry":null,"vm_defaults":null,"subnet_id":null,"domain_id":null,"puppet_proxy_id":null,"title":"New
host group","realm_id":null,"compute_profile_id":null,"grub_pass":"","lookup_value_matcher":"hostgroup=New
host group","subnet6_id":null,"pxe_loader":null,"description":null,"compute_resource_id":null,"content_facet_attributes":{"id":2,"hostgroup_id":2,"kickstart_repository_id":null,"content_source_id":1,"content_view_id":5,"lifecycle_environment_id":3}}'
string: '{"id":30,"name":"New host group","created_at":"2024-10-15T08:36:42.179Z","updated_at":"2024-10-15T08:36:42.179Z","operatingsystem_id":null,"architecture_id":null,"medium_id":null,"ptable_id":null,"root_pass":null,"puppet_ca_proxy_id":null,"use_image":null,"image_file":"","ancestry":null,"vm_defaults":null,"subnet_id":null,"domain_id":null,"puppet_proxy_id":null,"title":"New
host group","realm_id":null,"compute_profile_id":null,"grub_pass":null,"lookup_value_matcher":"hostgroup=New
host group","subnet6_id":null,"pxe_loader":null,"description":null,"compute_resource_id":null,"salt_proxy_id":null,"salt_environment_id":null,"content_facet_attributes":{"id":1,"hostgroup_id":30,"kickstart_repository_id":null,"content_source_id":1,"content_view_id":15,"lifecycle_environment_id":13}}'
headers:
Cache-Control:
- max-age=0, private, must-revalidate
Connection:
- Keep-Alive
Content-Length:
- '786'
Content-Security-Policy:
- 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:;
img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self'';
Expand All @@ -168,13 +151,11 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- 2.5.2
- 3.13.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:
Expand All @@ -185,8 +166,6 @@ interactions:
- none
X-XSS-Protection:
- 1; mode=block
content-length:
- '754'
status:
code: 200
message: OK
Expand Down
24 changes: 10 additions & 14 deletions tests/test_playbooks/fixtures/katello_hostgroup-7.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,14 @@ interactions:
uri: https://foreman.example.org/api/status
response:
body:
string: '{"result":"ok","status":200,"version":"2.5.2","api_version":2}'
string: '{"result":"ok","status":200,"version":"3.13.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'';
Expand All @@ -33,13 +35,11 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- 2.5.2
- 3.13.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:
Expand All @@ -50,8 +50,6 @@ interactions:
- none
X-XSS-Protection:
- 1; mode=block
content-length:
- '62'
status:
code: 200
message: OK
Expand All @@ -70,14 +68,16 @@ interactions:
uri: https://foreman.example.org/api/hostgroups?search=title%3D%22New+host+group%22&per_page=4294967296
response:
body:
string: "{\n \"total\": 0,\n \"subtotal\": 0,\n \"page\": 1,\n \"per_page\"\
: 4294967296,\n \"search\": \"title=\\\"New host group\\\"\",\n \"sort\"\
: {\n \"by\": null,\n \"order\": null\n },\n \"results\": []\n}\n"
string: "{\n \"total\": 0,\n \"subtotal\": 0,\n \"page\": 1,\n \"per_page\":
4294967296,\n \"search\": \"title=\\\"New host group\\\"\",\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:
- '181'
Content-Security-Policy:
- 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:;
img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self'';
Expand All @@ -91,13 +91,11 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- 2.5.2
- 3.13.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:
Expand All @@ -108,8 +106,6 @@ interactions:
- none
X-XSS-Protection:
- 1; mode=block
content-length:
- '181'
status:
code: 200
message: OK
Expand Down

0 comments on commit a0aa2f4

Please sign in to comment.