Skip to content

Commit

Permalink
re-record hostgroup on recent nightly
Browse files Browse the repository at this point in the history
  • Loading branch information
evgeni committed Oct 4, 2024
1 parent c972e56 commit ff0d153
Show file tree
Hide file tree
Showing 34 changed files with 1,963 additions and 1,935 deletions.
248 changes: 125 additions & 123 deletions tests/test_playbooks/fixtures/hostgroup-0.yml

Large diffs are not rendered by default.

270 changes: 136 additions & 134 deletions tests/test_playbooks/fixtures/hostgroup-1.yml

Large diffs are not rendered by default.

204 changes: 102 additions & 102 deletions tests/test_playbooks/fixtures/hostgroup-10.yml

Large diffs are not rendered by default.

210 changes: 105 additions & 105 deletions tests/test_playbooks/fixtures/hostgroup-11.yml

Large diffs are not rendered by default.

152 changes: 76 additions & 76 deletions tests/test_playbooks/fixtures/hostgroup-12.yml

Large diffs are not rendered by default.

158 changes: 79 additions & 79 deletions tests/test_playbooks/fixtures/hostgroup-13.yml

Large diffs are not rendered by default.

90 changes: 47 additions & 43 deletions tests/test_playbooks/fixtures/hostgroup-14.yml

Large diffs are not rendered by default.

56 changes: 29 additions & 27 deletions tests/test_playbooks/fixtures/hostgroup-15.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":"3.5.0-rc1","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:
- 3.5.0-rc1
- 3.13.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:
Expand Down Expand Up @@ -71,16 +71,18 @@ interactions:
string: "{\n \"total\": 4,\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\":2,\"subnet_name\":\"Test
subnet4\",\"operatingsystem_id\":2,\"operatingsystem_name\":\"TestOS 7.6\",\"domain_id\":3,\"domain_name\":\"foo.example.com\",\"compute_profile_id\":4,\"compute_profile_name\":\"myprofile\",\"ancestry\":null,\"parent_id\":null,\"parent_name\":null,\"ptable_id\":144,\"ptable_name\":\"Part
subnet4\",\"operatingsystem_id\":3,\"operatingsystem_name\":\"TestOS 7.6\",\"domain_id\":4,\"domain_name\":\"foo.example.com\",\"compute_profile_id\":5,\"compute_profile_name\":\"myprofile\",\"ancestry\":null,\"parent_id\":null,\"parent_name\":null,\"ptable_id\":158,\"ptable_name\":\"Part
table\",\"medium_id\":17,\"medium_name\":\"TestOS Mirror\",\"pxe_loader\":\"Grub2
UEFI\",\"subnet6_id\":null,\"subnet6_name\":null,\"compute_resource_id\":1,\"compute_resource_name\":\"libvirt-cr\",\"architecture_id\":1,\"architecture_name\":\"x86_64\",\"realm_id\":null,\"realm_name\":null,\"created_at\":\"2022-11-28
08:31:20 UTC\",\"updated_at\":\"2022-11-28 08:31:20 UTC\",\"id\":4,\"name\":\"New
host group\",\"title\":\"New host group\",\"description\":\"New host group\",\"puppet_proxy_id\":1,\"puppet_proxy_name\":\"centos8-stream-foreman-3-5.tanso.example.com\",\"puppet_ca_proxy_id\":1,\"puppet_ca_proxy_name\":\"centos8-stream-foreman-3-5.tanso.example.com\",\"puppet_proxy\":{\"name\":\"centos8-stream-foreman-3-5.tanso.example.com\",\"id\":1,\"url\":\"https://centos8-stream-foreman-3-5.tanso.example.com:8443\"},\"puppet_ca_proxy\":{\"name\":\"centos8-stream-foreman-3-5.tanso.example.com\",\"id\":1,\"url\":\"https://centos8-stream-foreman-3-5.tanso.example.com:8443\"},\"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,\"environment_id\":1,\"environment_name\":\"production\",\"inherited_environment_id\":null}]\n}\n"
UEFI\",\"subnet6_id\":null,\"subnet6_name\":null,\"compute_resource_id\":1,\"compute_resource_name\":\"libvirt-cr\",\"architecture_id\":1,\"architecture_name\":\"x86_64\",\"realm_id\":null,\"realm_name\":null,\"created_at\":\"2024-10-04
11:30:33 UTC\",\"updated_at\":\"2024-10-04 11:30:33 UTC\",\"id\":8,\"name\":\"New
host group\",\"title\":\"New host group\",\"description\":\"New host group\",\"puppet_proxy_id\":1,\"puppet_proxy_name\":\"almalinux8-foreman-nightly.tanso.example.com\",\"puppet_ca_proxy_id\":1,\"puppet_ca_proxy_name\":\"almalinux8-foreman-nightly.tanso.example.com\",\"puppet_proxy\":{\"name\":\"almalinux8-foreman-nightly.tanso.example.com\",\"id\":1,\"url\":\"https://almalinux8-foreman-nightly.tanso.example.com:8443\"},\"puppet_ca_proxy\":{\"name\":\"almalinux8-foreman-nightly.tanso.example.com\",\"id\":1,\"url\":\"https://almalinux8-foreman-nightly.tanso.example.com:8443\"},\"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,\"environment_id\":1,\"environment_name\":\"production\",\"inherited_environment_id\":null}]\n}\n"
headers:
Cache-Control:
- max-age=0, private, must-revalidate
Connection:
- Keep-Alive
Content-Length:
- '1856'
Content-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 @@ -94,13 +96,11 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- 3.5.0-rc1
- 3.13.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:
Expand All @@ -126,27 +126,31 @@ interactions:
User-Agent:
- apypie (https://github.com/Apipie/apypie)
method: GET
uri: https://foreman.example.org/api/hostgroups/4
uri: https://foreman.example.org/api/hostgroups/8
response:
body:
string: '{"subnet_id":2,"subnet_name":"Test subnet4","operatingsystem_id":2,"operatingsystem_name":"TestOS
7.6","domain_id":3,"domain_name":"foo.example.com","compute_profile_id":4,"compute_profile_name":"myprofile","ancestry":null,"parent_id":null,"parent_name":null,"ptable_id":144,"ptable_name":"Part
table","medium_id":17,"medium_name":"TestOS Mirror","pxe_loader":"Grub2 UEFI","subnet6_id":null,"subnet6_name":null,"compute_resource_id":1,"compute_resource_name":"libvirt-cr","architecture_id":1,"architecture_name":"x86_64","realm_id":null,"realm_name":null,"created_at":"2022-11-28
08:31:20 UTC","updated_at":"2022-11-28 08:31:20 UTC","id":4,"name":"New host
group","title":"New host group","description":"New host group","puppet_proxy_id":1,"puppet_proxy_name":"centos8-stream-foreman-3-5.tanso.example.com","puppet_ca_proxy_id":1,"puppet_ca_proxy_name":"centos8-stream-foreman-3-5.tanso.example.com","puppet_proxy":{"name":"centos8-stream-foreman-3-5.tanso.example.com","id":1,"url":"https://centos8-stream-foreman-3-5.tanso.example.com:8443"},"puppet_ca_proxy":{"name":"centos8-stream-foreman-3-5.tanso.example.com","id":1,"url":"https://centos8-stream-foreman-3-5.tanso.example.com:8443"},"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,"parameters":[{"priority":60,"created_at":"2022-11-28
08:31:20 UTC","updated_at":"2022-11-28 08:31:33 UTC","id":4,"name":"subnet_param1","parameter_type":"string","value":"new_value1"},{"priority":60,"created_at":"2022-11-28
08:31:33 UTC","updated_at":"2022-11-28 08:31:33 UTC","id":8,"name":"subnet_param3","parameter_type":"string","value":"value3"}],"environment_id":1,"environment_name":"production","inherited_environment_id":null,"template_combinations":[],"puppet":{"puppetclasses":[],"config_groups":[{"created_at":"2022-11-25
12:00:02 UTC","updated_at":"2022-11-25 12:00:02 UTC","id":3,"name":"cfg_group1","puppetclasses":[]},{"created_at":"2022-11-25
12:00:02 UTC","updated_at":"2022-11-25 12:00:02 UTC","id":4,"name":"cfg_group2","puppetclasses":[]}],"all_puppetclasses":[]},"puppetclasses":[],"config_groups":[{"created_at":"2022-11-25
12:00:02 UTC","updated_at":"2022-11-25 12:00:02 UTC","id":3,"name":"cfg_group1","puppetclasses":[]},{"created_at":"2022-11-25
12:00:02 UTC","updated_at":"2022-11-25 12:00:02 UTC","id":4,"name":"cfg_group2","puppetclasses":[]}],"all_puppetclasses":[],"locations":[{"id":11,"name":"Bar","title":"Bar","description":null},{"id":9,"name":"Foo","title":"Foo","description":null},{"id":10,"name":"Baz","title":"Foo/Baz","description":null}],"organizations":[{"id":12,"name":"Test
Org1","title":"Test Org1","description":"A test organization"},{"id":13,"name":"Test
string: '{"subnet_id":2,"subnet_name":"Test subnet4","operatingsystem_id":3,"operatingsystem_name":"TestOS
7.6","domain_id":4,"domain_name":"foo.example.com","compute_profile_id":5,"compute_profile_name":"myprofile","ancestry":null,"parent_id":null,"parent_name":null,"ptable_id":158,"ptable_name":"Part
table","medium_id":17,"medium_name":"TestOS Mirror","pxe_loader":"Grub2 UEFI","subnet6_id":null,"subnet6_name":null,"compute_resource_id":1,"compute_resource_name":"libvirt-cr","architecture_id":1,"architecture_name":"x86_64","realm_id":null,"realm_name":null,"created_at":"2024-10-04
11:30:33 UTC","updated_at":"2024-10-04 11:30:33 UTC","id":8,"name":"New host
group","title":"New host group","description":"New host group","puppet_proxy_id":1,"puppet_proxy_name":"almalinux8-foreman-nightly.tanso.example.com","puppet_ca_proxy_id":1,"puppet_ca_proxy_name":"almalinux8-foreman-nightly.tanso.example.com","puppet_proxy":{"name":"almalinux8-foreman-nightly.tanso.example.com","id":1,"url":"https://almalinux8-foreman-nightly.tanso.example.com:8443"},"puppet_ca_proxy":{"name":"almalinux8-foreman-nightly.tanso.example.com","id":1,"url":"https://almalinux8-foreman-nightly.tanso.example.com:8443"},"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,"parameters":[{"priority":60,"created_at":"2024-10-04
11:30:33 UTC","updated_at":"2024-10-04 11:30:47 UTC","id":9,"name":"subnet_param1","parameter_type":"string","associated_type":"host
group","hidden_value?":false,"value":"new_value1"},{"priority":60,"created_at":"2024-10-04
11:30:47 UTC","updated_at":"2024-10-04 11:30:47 UTC","id":13,"name":"subnet_param3","parameter_type":"string","associated_type":"host
group","hidden_value?":false,"value":"value3"}],"environment_id":1,"environment_name":"production","inherited_environment_id":null,"template_combinations":[],"puppet":{"puppetclasses":[],"config_groups":[{"created_at":"2024-10-04
11:30:25 UTC","updated_at":"2024-10-04 11:30:25 UTC","id":3,"name":"cfg_group1","puppetclasses":[]},{"created_at":"2024-10-04
11:30:26 UTC","updated_at":"2024-10-04 11:30:26 UTC","id":4,"name":"cfg_group2","puppetclasses":[]}],"all_puppetclasses":[]},"puppetclasses":[],"config_groups":[{"created_at":"2024-10-04
11:30:25 UTC","updated_at":"2024-10-04 11:30:25 UTC","id":3,"name":"cfg_group1","puppetclasses":[]},{"created_at":"2024-10-04
11:30:26 UTC","updated_at":"2024-10-04 11:30:26 UTC","id":4,"name":"cfg_group2","puppetclasses":[]}],"all_puppetclasses":[],"locations":[{"id":10,"name":"Bar","title":"Bar","description":null},{"id":8,"name":"Foo","title":"Foo","description":null},{"id":9,"name":"Baz","title":"Foo/Baz","description":null}],"organizations":[{"id":11,"name":"Test
Org1","title":"Test Org1","description":"A test organization"},{"id":12,"name":"Test
Org2","title":"Test Org2","description":"A test organization"}]}'
headers:
Cache-Control:
- max-age=0, private, must-revalidate
Connection:
- Keep-Alive
Content-Length:
- '3169'
Content-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 @@ -160,13 +164,11 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- 3.5.0-rc1
- 3.13.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:
Expand Down
24 changes: 12 additions & 12 deletions tests/test_playbooks/fixtures/hostgroup-16.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":"3.5.0-rc1","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:
- 3.5.0-rc1
- 3.13.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:
Expand Down Expand Up @@ -76,6 +76,8 @@ interactions:
- max-age=0, private, must-revalidate
Connection:
- Keep-Alive
Content-Length:
- '187'
Content-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 @@ -89,13 +91,11 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- 3.5.0-rc1
- 3.13.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:
Expand Down Expand Up @@ -128,14 +128,16 @@ interactions:
uri: https://foreman.example.org/api/hostgroups
response:
body:
string: '{"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":"2022-11-28
08:31:34 UTC","updated_at":"2022-11-28 08:31:34 UTC","id":9,"name":"Super
string: '{"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-04
11:30:49 UTC","updated_at":"2024-10-04 11:30:49 UTC","id":13,"name":"Super
New host group","title":"Super 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,"parameters":[],"template_combinations":[],"locations":[],"organizations":[]}'
headers:
Cache-Control:
- max-age=0, private, must-revalidate
Connection:
- Keep-Alive
Content-Length:
- '1288'
Content-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 @@ -149,13 +151,11 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- 3.5.0-rc1
- 3.13.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:
Expand Down
Loading

0 comments on commit ff0d153

Please sign in to comment.