Skip to content

Commit

Permalink
Fix provisioning_template removal
Browse files Browse the repository at this point in the history
  • Loading branch information
Griffin-Sullivan authored and evgeni committed Jul 9, 2024
1 parent 5698781 commit 847c7cb
Show file tree
Hide file tree
Showing 20 changed files with 17,211 additions and 38,101 deletions.
428 changes: 159 additions & 269 deletions tests/test_playbooks/fixtures/provisioning_template-0.yml

Large diffs are not rendered by default.

422 changes: 156 additions & 266 deletions tests/test_playbooks/fixtures/provisioning_template-1.yml

Large diffs are not rendered by default.

498 changes: 184 additions & 314 deletions tests/test_playbooks/fixtures/provisioning_template-10.yml

Large diffs are not rendered by default.

498 changes: 184 additions & 314 deletions tests/test_playbooks/fixtures/provisioning_template-11.yml

Large diffs are not rendered by default.

348 changes: 129 additions & 219 deletions tests/test_playbooks/fixtures/provisioning_template-12.yml

Large diffs are not rendered by default.

274 changes: 100 additions & 174 deletions tests/test_playbooks/fixtures/provisioning_template-13.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,60 +11,44 @@ interactions:
User-Agent:
- apypie (https://github.com/Apipie/apypie)
method: GET
uri: https://centos7-foreman-1-23.yatsu.example.com/api/status
uri: https://foreman.example.org/api/status
response:
body:
string: !!python/unicode '{"result":"ok","status":200,"version":"1.23.1","api_version":2}'
string: '{"satellite_version":"6.16.0","result":"ok","status":200,"version":"3.12.0-develop","api_version":2}'
headers:
cache-control:
Cache-Control:
- max-age=0, private, must-revalidate
connection:
Connection:
- Keep-Alive
content-length:
- '63'
content-security-policy:
Content-Length:
- '100'
Content-Security-Policy:
- 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:;
img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline''
''self''; style-src ''unsafe-inline'' ''self'''
content-type:
img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self'';
style-src ''unsafe-inline'' ''self'''
Content-Type:
- application/json; charset=utf-8
date:
- Fri, 22 Nov 2019 12:29:56 GMT
etag:
- W/"f26fab35869f9a602399f2f56dc6b2ef"
foreman_api_version:
Foreman_api_version:
- '2'
foreman_current_location:
Foreman_current_location:
- ; ANY
foreman_current_organization:
Foreman_current_organization:
- ; ANY
foreman_version:
- 1.23.1
keep-alive:
- timeout=5, max=100
server:
- Apache
set-cookie:
- _session_id=c8f0b960dc52a71b1e98351770090b9f; path=/; secure; HttpOnly; SameSite=Lax
status:
- 200 OK
strict-transport-security:
Foreman_version:
- 3.12.0-develop
Keep-Alive:
- timeout=15, max=100
Strict-Transport-Security:
- max-age=631139040; includeSubdomains
x-content-type-options:
X-Content-Type-Options:
- nosniff
x-download-options:
X-Download-Options:
- noopen
x-frame-options:
X-Frame-Options:
- sameorigin
x-permitted-cross-domain-policies:
X-Permitted-Cross-Domain-Policies:
- none
x-powered-by:
- Phusion Passenger 4.0.53
x-request-id:
- a4ccf829-ad0f-41d3-a226-f79ce5705ab1
x-runtime:
- '0.094523'
x-xss-protection:
X-XSS-Protection:
- 1; mode=block
status:
code: 200
Expand All @@ -78,70 +62,50 @@ interactions:
- gzip, deflate
Connection:
- keep-alive
Cookie:
- _session_id=c8f0b960dc52a71b1e98351770090b9f
User-Agent:
- apypie (https://github.com/Apipie/apypie)
method: GET
uri: https://centos7-foreman-1-23.yatsu.example.com/api/provisioning_templates?per_page=4294967296&search=name%3D%22Timetravel+finish%22
uri: https://foreman.example.org/api/template_kinds?search=name%3D%22finish%22&per_page=4294967296
response:
body:
string: !!python/unicode "{\n \"total\": 100,\n \"subtotal\": 1,\n \"page\":
1,\n \"per_page\": 4294967296,\n \"search\": \"name=\\\"Timetravel finish\\\"\",\n
\ \"sort\": {\n \"by\": null,\n \"order\": null\n },\n \"results\":
[{\"snippet\":false,\"audit_comment\":null,\"created_at\":\"2019-11-22 12:29:47
UTC\",\"updated_at\":\"2019-11-22 12:29:55 UTC\",\"id\":128,\"name\":\"Timetravel
finish\",\"template_kind_id\":6,\"template_kind_name\":\"finish\"}]\n}\n"
string: "{\n \"total\": 15,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\":
4294967296,\n \"search\": \"name=\\\"finish\\\"\",\n \"sort\": {\n \"by\":
null,\n \"order\": null\n },\n \"results\": [{\"created_at\":\"2024-06-27
17:28:07 UTC\",\"updated_at\":\"2024-06-27 17:28:07 UTC\",\"name\":\"finish\",\"id\":8}]\n}\n"
headers:
cache-control:
Cache-Control:
- max-age=0, private, must-revalidate
connection:
Connection:
- Keep-Alive
content-length:
- '388'
content-security-policy:
Content-Length:
- '275'
Content-Security-Policy:
- 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:;
img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline''
''self''; style-src ''unsafe-inline'' ''self'''
content-type:
img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self'';
style-src ''unsafe-inline'' ''self'''
Content-Type:
- application/json; charset=utf-8
date:
- Fri, 22 Nov 2019 12:29:56 GMT
etag:
- W/"3769581f25f3c01f15dd81304f3dcb50-gzip"
foreman_api_version:
Foreman_api_version:
- '2'
foreman_current_location:
Foreman_current_location:
- ; ANY
foreman_current_organization:
Foreman_current_organization:
- ; ANY
foreman_version:
- 1.23.1
keep-alive:
- timeout=5, max=99
server:
- Apache
status:
- 200 OK
strict-transport-security:
Foreman_version:
- 3.12.0-develop
Keep-Alive:
- timeout=15, max=99
Strict-Transport-Security:
- max-age=631139040; includeSubdomains
vary:
- Accept-Encoding
x-content-type-options:
X-Content-Type-Options:
- nosniff
x-download-options:
X-Download-Options:
- noopen
x-frame-options:
X-Frame-Options:
- sameorigin
x-permitted-cross-domain-policies:
X-Permitted-Cross-Domain-Policies:
- none
x-powered-by:
- Phusion Passenger 4.0.53
x-request-id:
- 2ad3e7d8-be4c-4f03-bfb8-b89848be9170
x-runtime:
- '0.014369'
x-xss-protection:
X-XSS-Protection:
- 1; mode=block
status:
code: 200
Expand All @@ -155,69 +119,51 @@ interactions:
- gzip, deflate
Connection:
- keep-alive
Cookie:
- _session_id=c8f0b960dc52a71b1e98351770090b9f
User-Agent:
- apypie (https://github.com/Apipie/apypie)
method: GET
uri: https://centos7-foreman-1-23.yatsu.example.com/api/template_kinds?per_page=4294967296&search=name%3D%22finish%22
uri: https://foreman.example.org/api/provisioning_templates?search=name%3D%22Timetravel+finish%22&per_page=4294967296
response:
body:
string: !!python/unicode "{\n \"total\": 11,\n \"subtotal\": 1,\n \"page\":
1,\n \"per_page\": 4294967296,\n \"search\": \"name=\\\"finish\\\"\",\n
\ \"sort\": {\n \"by\": null,\n \"order\": null\n },\n \"results\":
[{\"created_at\":\"2019-10-18 08:35:37 UTC\",\"updated_at\":\"2019-10-18 08:35:37
UTC\",\"name\":\"finish\",\"id\":6}]\n}\n"
string: "{\n \"total\": 108,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\":
4294967296,\n \"search\": \"name=\\\"Timetravel finish\\\"\",\n \"sort\":
{\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"snippet\":false,\"description\":null,\"created_at\":\"2024-07-03
15:23:50 UTC\",\"updated_at\":\"2024-07-03 15:24:03 UTC\",\"id\":255,\"name\":\"Timetravel
finish\",\"template_kind_id\":8,\"template_kind_name\":\"finish\"}]\n}\n"
headers:
cache-control:
Cache-Control:
- max-age=0, private, must-revalidate
connection:
Connection:
- Keep-Alive
content-length:
- '275'
content-security-policy:
Content-Length:
- '386'
Content-Security-Policy:
- 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:;
img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline''
''self''; style-src ''unsafe-inline'' ''self'''
content-type:
img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self'';
style-src ''unsafe-inline'' ''self'''
Content-Type:
- application/json; charset=utf-8
date:
- Fri, 22 Nov 2019 12:29:56 GMT
etag:
- W/"3dd998c984078b2a1f7807ff9e7a4a59-gzip"
foreman_api_version:
Foreman_api_version:
- '2'
foreman_current_location:
Foreman_current_location:
- ; ANY
foreman_current_organization:
Foreman_current_organization:
- ; ANY
foreman_version:
- 1.23.1
keep-alive:
- timeout=5, max=98
server:
- Apache
status:
- 200 OK
strict-transport-security:
Foreman_version:
- 3.12.0-develop
Keep-Alive:
- timeout=15, max=98
Strict-Transport-Security:
- max-age=631139040; includeSubdomains
vary:
- Accept-Encoding
x-content-type-options:
X-Content-Type-Options:
- nosniff
x-download-options:
X-Download-Options:
- noopen
x-frame-options:
X-Frame-Options:
- sameorigin
x-permitted-cross-domain-policies:
X-Permitted-Cross-Domain-Policies:
- none
x-powered-by:
- Phusion Passenger 4.0.53
x-request-id:
- 02a0c0bb-39c8-43d5-b8bb-7a7b8f4e1289
x-runtime:
- '0.012237'
x-xss-protection:
X-XSS-Protection:
- 1; mode=block
status:
code: 200
Expand All @@ -233,68 +179,48 @@ interactions:
- keep-alive
Content-Length:
- '0'
Cookie:
- _session_id=c8f0b960dc52a71b1e98351770090b9f
User-Agent:
- apypie (https://github.com/Apipie/apypie)
method: DELETE
uri: https://centos7-foreman-1-23.yatsu.example.com/api/provisioning_templates/128
uri: https://foreman.example.org/api/provisioning_templates/255
response:
body:
string: !!python/unicode '{"id":128,"name":"Timetravel finish","template":"A
provisioning template with an template","snippet":false,"template_kind_id":6,"created_at":"2019-11-22T12:29:47.837Z","updated_at":"2019-11-22T12:29:55.155Z","locked":false,"default":false,"vendor":null,"os_family":null,"job_category":"Miscellaneous","provider_type":null,"description_format":null,"execution_timeout_interval":null}'
string: '{"id":255,"name":"Timetravel finish","template":"A provisioning template
with an template","snippet":false,"template_kind_id":8,"created_at":"2024-07-03T15:23:50.779Z","updated_at":"2024-07-03T15:24:03.068Z","locked":false,"default":false,"vendor":null,"os_family":null,"job_category":"Miscellaneous","provider_type":null,"description_format":null,"execution_timeout_interval":null,"description":null,"ansible_callback_enabled":false}'
headers:
cache-control:
Cache-Control:
- max-age=0, private, must-revalidate
connection:
Connection:
- Keep-Alive
content-length:
- '382'
content-security-policy:
Content-Length:
- '434'
Content-Security-Policy:
- 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:;
img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline''
''self''; style-src ''unsafe-inline'' ''self'''
content-type:
img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self'';
style-src ''unsafe-inline'' ''self'''
Content-Type:
- application/json; charset=utf-8
date:
- Fri, 22 Nov 2019 12:29:56 GMT
etag:
- W/"cf37e490c07ea58fc43c9b40055a82ed-gzip"
foreman_api_version:
Foreman_api_version:
- '2'
foreman_current_location:
Foreman_current_location:
- ; ANY
foreman_current_organization:
Foreman_current_organization:
- ; ANY
foreman_version:
- 1.23.1
keep-alive:
- timeout=5, max=97
server:
- Apache
set-cookie:
- request_method=DELETE; path=/; secure; HttpOnly; SameSite=Lax
status:
- 200 OK
strict-transport-security:
Foreman_version:
- 3.12.0-develop
Keep-Alive:
- timeout=15, max=97
Strict-Transport-Security:
- max-age=631139040; includeSubdomains
vary:
- Accept-Encoding
x-content-type-options:
X-Content-Type-Options:
- nosniff
x-download-options:
X-Download-Options:
- noopen
x-frame-options:
X-Frame-Options:
- sameorigin
x-permitted-cross-domain-policies:
X-Permitted-Cross-Domain-Policies:
- none
x-powered-by:
- Phusion Passenger 4.0.53
x-request-id:
- 9ad26aca-32fd-47e5-9010-d91e04e3059c
x-runtime:
- '0.036177'
x-xss-protection:
X-XSS-Protection:
- 1; mode=block
status:
code: 200
Expand Down
Loading

0 comments on commit 847c7cb

Please sign in to comment.