Skip to content

Commit

Permalink
re-record luna_hostgroup
Browse files Browse the repository at this point in the history
  • Loading branch information
evgeni committed Oct 15, 2024
1 parent 605d407 commit 5c455d2
Show file tree
Hide file tree
Showing 7 changed files with 338 additions and 375 deletions.
163 changes: 79 additions & 84 deletions tests/test_playbooks/fixtures/luna_hostgroup-0.yml

Large diffs are not rendered by default.

167 changes: 79 additions & 88 deletions tests/test_playbooks/fixtures/luna_hostgroup-1.yml

Large diffs are not rendered by default.

171 changes: 82 additions & 89 deletions tests/test_playbooks/fixtures/luna_hostgroup-2.yml

Large diffs are not rendered by default.

151 changes: 72 additions & 79 deletions tests/test_playbooks/fixtures/luna_hostgroup-3.yml

Large diffs are not rendered by default.

40 changes: 17 additions & 23 deletions tests/test_playbooks/fixtures/luna_hostgroup-4.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.0-develop","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.0-develop
- 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:
- '70'
status:
code: 200
message: OK
Expand All @@ -72,14 +70,16 @@ interactions:
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-03-16
17:51:22 UTC\",\"updated_at\":\"2021-03-16 17:51:22 UTC\",\"id\":10,\"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,\"openscap_proxy_id\":1,\"openscap_proxy_name\":\"centos7-luna.shu.example.com\",\"puppet_proxy\":null,\"puppet_ca_proxy\":null,\"openscap_proxy\":{\"name\":\"centos7-luna.shu.example.com\",\"id\":1,\"url\":\"https://centos7-luna.shu.example.com:9090\"},\"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"
{\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:49:57 UTC\",\"updated_at\":\"2024-10-15 08:49:57 UTC\",\"id\":31,\"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,\"openscap_proxy_id\":1,\"openscap_proxy_name\":\"centos9-stream-katello-nightly.tanso.example.com\",\"puppet_proxy\":null,\"puppet_ca_proxy\":null,\"openscap_proxy\":{\"name\":\"centos9-stream-katello-nightly.tanso.example.com\",\"id\":1,\"url\":\"https://centos9-stream-katello-nightly.tanso.example.com:9090\"},\"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:
- '1629'
Content-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 @@ -93,13 +93,11 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- 2.5.0-develop
- 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 @@ -110,8 +108,6 @@ interactions:
- none
X-XSS-Protection:
- 1; mode=block
content-length:
- '1647'
status:
code: 200
message: OK
Expand All @@ -129,17 +125,19 @@ interactions:
User-Agent:
- apypie (https://github.com/Apipie/apypie)
method: DELETE
uri: https://foreman.example.org/api/hostgroups/10
uri: https://foreman.example.org/api/hostgroups/31
response:
body:
string: '{"id":10,"name":"New host group","created_at":"2021-03-16T17:51:22.493Z","updated_at":"2021-03-16T17:51:22.493Z","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","openscap_proxy_id":1,"subnet6_id":null,"pxe_loader":null,"description":null,"compute_resource_id":null}'
string: '{"id":31,"name":"New host group","created_at":"2024-10-15T08:49:57.383Z","updated_at":"2024-10-15T08:49:57.383Z","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,"openscap_proxy_id":1}'
headers:
Cache-Control:
- max-age=0, private, must-revalidate
Connection:
- Keep-Alive
Content-Length:
- '650'
Content-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 @@ -153,13 +151,11 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- 2.5.0-develop
- 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 @@ -170,8 +166,6 @@ interactions:
- none
X-XSS-Protection:
- 1; mode=block
content-length:
- '622'
status:
code: 200
message: OK
Expand Down
18 changes: 7 additions & 11 deletions tests/test_playbooks/fixtures/luna_hostgroup-5.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.0-develop","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.0-develop
- 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:
- '70'
status:
code: 200
message: OK
Expand All @@ -78,6 +76,8 @@ interactions:
- 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.0-develop
- 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
3 changes: 2 additions & 1 deletion tests/test_playbooks/luna_hostgroup.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# `ansible-galaxy role install thulium_drake.motd -p /usr/share/ansible/roles`
# ansible-galaxy role install thulium_drake.motd -p /usr/share/ansible/roles
# hammer ansible roles sync --proxy-id 1 --role-names thulium_drake.motd
---
- hosts: localhost
collections:
Expand Down

0 comments on commit 5c455d2

Please sign in to comment.