forked from theforeman/foreman-ansible-modules
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make smart_proxy testing work on a live server
- Loading branch information
1 parent
73ab49e
commit 610b32a
Showing
22 changed files
with
2,360 additions
and
1,559 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
439 changes: 259 additions & 180 deletions
439
tests/test_playbooks/fixtures/katello_smart_proxy-0.yml
Large diffs are not rendered by default.
Oops, something went wrong.
402 changes: 258 additions & 144 deletions
402
tests/test_playbooks/fixtures/katello_smart_proxy-1.yml
Large diffs are not rendered by default.
Oops, something went wrong.
577 changes: 369 additions & 208 deletions
577
tests/test_playbooks/fixtures/katello_smart_proxy-2.yml
Large diffs are not rendered by default.
Oops, something went wrong.
402 changes: 258 additions & 144 deletions
402
tests/test_playbooks/fixtures/katello_smart_proxy-3.yml
Large diffs are not rendered by default.
Oops, something went wrong.
334 changes: 214 additions & 120 deletions
334
tests/test_playbooks/fixtures/katello_smart_proxy-4.yml
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,106 +2,176 @@ 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)'] | ||
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: !!python/unicode '{"result":"ok","status":200,"version":"2.2.0-rc3","api_version":2}'} | ||
body: | ||
string: '{"satellite_version":"6.16.0","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'] | ||
content-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: [2.2.0-rc3] | ||
keep-alive: ['timeout=15, max=100'] | ||
strict-transport-security: [max-age=631139040; includeSubdomains] | ||
vary: [Accept-Encoding] | ||
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} | ||
Cache-Control: | ||
- max-age=0, private, must-revalidate | ||
Connection: | ||
- Keep-Alive | ||
Content-Length: | ||
- '100' | ||
Content-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)'] | ||
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/smart_proxies?per_page=4294967296&search=name%3D%22Smart+Proxy%22 | ||
uri: https://foreman.example.org/api/smart_proxies?search=name%3D%22Smart+Proxy%22&per_page=4294967296 | ||
response: | ||
body: {string: !!python/unicode "{\n \"total\": 3,\n \"subtotal\": 1,\n \"page\": | ||
1,\n \"per_page\": 4294967296,\n \"search\": \"name=\\\"Smart Proxy\\\"\",\n | ||
\ \"sort\": {\n \"by\": null,\n \"order\": null\n },\n \"results\": | ||
[{\"created_at\":\"2020-10-21 09:15:38 UTC\",\"updated_at\":\"2020-10-21 09:15:45 | ||
UTC\",\"name\":\"Smart Proxy\",\"id\":15,\"url\":\"http://foreman-proxy.example.com:8000\",\"remote_execution_pubkey\":null,\"download_policy\":\"background\",\"supported_pulp_types\":{\"pulp2\":{\"supported_types\":[\"deb\",\"docker\",\"file\",\"puppet\",\"yum\"]},\"pulp3\":{\"supported_types\":[],\"overriden_to_pulp2\":[]}},\"features\":[{\"capabilities\":[],\"name\":\"Pulp | ||
Node\",\"id\":3},{\"capabilities\":[],\"name\":\"Templates\",\"id\":1},{\"capabilities\":[],\"name\":\"Puppet | ||
CA\",\"id\":9},{\"capabilities\":[],\"name\":\"Puppet\",\"id\":8},{\"capabilities\":[],\"name\":\"Logs\",\"id\":13}]}]\n}\n"} | ||
body: | ||
string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": | ||
4294967296,\n \"search\": \"name=\\\"Smart Proxy\\\"\",\n \"sort\": {\n | ||
\ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"created_at\":\"2024-07-10 | ||
14:13:12 UTC\",\"updated_at\":\"2024-07-10 14:13:18 UTC\",\"hosts_count\":0,\"name\":\"Smart | ||
Proxy\",\"id\":12,\"url\":\"https://foreman-proxy.example.com:9090\",\"remote_execution_pubkey\":\"ssh-rsa | ||
AAAAB3NzaC1yc2EAAAADAQABAAABgQCkn5pNuZ47pHDMpL1or9cDtaDJaJXn2EdrmcQBiXQOhoWjSn3R2da7ThZkjXGTirQrMeU8FeDpZUso368rUGU4PFg8JHCwuNF7X+mcOeodK3EJyGHIfsj172xF8wAHUc4tK2MSIKDfVd8MvX4M3qPN80290wmhCh4YrKFA30az96eSP4RDt19m3/qxTXpcmSRyuw1NKr0DUs4lCG08uV4hMpheypT21HM8eb3NSic73fY0nTLOerTwo9BUdQugjdiBNjlA9o9MzSZ6acCiOqAxqYEnVlWKqfgsy/55uBCAi4rO78sIKptvb+g1i1l86HNj/6xtwlrsXNft1p6MwcGDb66naRDARhzNLWUlrM6yqXpOkHEK1w76zaNw0RfwsxFSbZx5TueQQ1QI/DIxcIX0bIBSiVsp39TneEwFQqXu0a7dvst4LAKIOii6GtEc6FIcuCX49x6qe0VsJvHBS3LgKBcfTUUvWkm67qNX3Xaik1MKjvredkcH+7byxL+TiDE= | ||
[email protected]\",\"download_policy\":\"immediate\",\"supported_pulp_types\":[\"ansible_collection\",\"docker\",\"file\",\"yum\"],\"lifecycle_environments\":[{\"id\":7,\"name\":\"Test\",\"description\":null,\"library\":false,\"organization_id\":6,\"created_at\":\"2024-07-10 | ||
14:13:11 UTC\",\"updated_at\":\"2024-07-10 14:13:11 UTC\",\"label\":\"test\",\"registry_name_pattern\":null,\"registry_unauthenticated_pull\":false,\"prior\":\"Dev\",\"prior_id\":6,\"organization\":\"Test | ||
Organization\"}],\"features\":[{\"capabilities\":[],\"name\":\"Container_Gateway\",\"id\":4},{\"capabilities\":[\"single\",\"ssh\"],\"name\":\"Dynflow\",\"id\":17},{\"capabilities\":[\"cockpit\"],\"name\":\"Script\",\"id\":19},{\"capabilities\":[\"ansible\",\"certguard\",\"container\",\"core\",\"file\",\"rpm\"],\"name\":\"Pulpcore\",\"id\":3},{\"capabilities\":[],\"name\":\"Templates\",\"id\":5},{\"capabilities\":[],\"name\":\"Logs\",\"id\":13},{\"capabilities\":[],\"name\":\"Registration\",\"id\":16}]}]\n}\n" | ||
headers: | ||
cache-control: ['max-age=0, private, must-revalidate'] | ||
connection: [Keep-Alive] | ||
content-length: ['776'] | ||
content-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: [2.2.0-rc3] | ||
keep-alive: ['timeout=15, max=99'] | ||
strict-transport-security: [max-age=631139040; includeSubdomains] | ||
vary: [Accept-Encoding] | ||
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} | ||
Cache-Control: | ||
- max-age=0, private, must-revalidate | ||
Connection: | ||
- Keep-Alive | ||
Content-Length: | ||
- '1853' | ||
Content-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)'] | ||
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/smart_proxies/15 | ||
uri: https://foreman.example.org/api/smart_proxies/12 | ||
response: | ||
body: {string: !!python/unicode '{"created_at":"2020-10-21 09:15:38 UTC","updated_at":"2020-10-21 | ||
09:15:45 UTC","name":"Smart Proxy","id":15,"url":"http://foreman-proxy.example.com:8000","remote_execution_pubkey":null,"download_policy":"background","supported_pulp_types":{"pulp2":{"supported_types":["deb","docker","file","puppet","yum"]},"pulp3":{"supported_types":[],"overriden_to_pulp2":[]}},"features":[{"capabilities":[],"name":"Pulp | ||
Node","id":3},{"capabilities":[],"name":"Templates","id":1},{"capabilities":[],"name":"Puppet | ||
CA","id":9},{"capabilities":[],"name":"Puppet","id":8},{"capabilities":[],"name":"Logs","id":13}],"locations":[],"organizations":[]}'} | ||
body: | ||
string: '{"created_at":"2024-07-10 14:13:12 UTC","updated_at":"2024-07-10 14:13:18 | ||
UTC","hosts_count":0,"name":"Smart Proxy","id":12,"url":"https://foreman-proxy.example.com:9090","remote_execution_pubkey":"ssh-rsa | ||
AAAAB3NzaC1yc2EAAAADAQABAAABgQCkn5pNuZ47pHDMpL1or9cDtaDJaJXn2EdrmcQBiXQOhoWjSn3R2da7ThZkjXGTirQrMeU8FeDpZUso368rUGU4PFg8JHCwuNF7X+mcOeodK3EJyGHIfsj172xF8wAHUc4tK2MSIKDfVd8MvX4M3qPN80290wmhCh4YrKFA30az96eSP4RDt19m3/qxTXpcmSRyuw1NKr0DUs4lCG08uV4hMpheypT21HM8eb3NSic73fY0nTLOerTwo9BUdQugjdiBNjlA9o9MzSZ6acCiOqAxqYEnVlWKqfgsy/55uBCAi4rO78sIKptvb+g1i1l86HNj/6xtwlrsXNft1p6MwcGDb66naRDARhzNLWUlrM6yqXpOkHEK1w76zaNw0RfwsxFSbZx5TueQQ1QI/DIxcIX0bIBSiVsp39TneEwFQqXu0a7dvst4LAKIOii6GtEc6FIcuCX49x6qe0VsJvHBS3LgKBcfTUUvWkm67qNX3Xaik1MKjvredkcH+7byxL+TiDE= | ||
[email protected]","download_policy":"immediate","supported_pulp_types":["ansible_collection","docker","file","yum"],"lifecycle_environments":[{"id":7,"name":"Test","description":null,"library":false,"organization_id":6,"created_at":"2024-07-10 | ||
14:13:11 UTC","updated_at":"2024-07-10 14:13:11 UTC","label":"test","registry_name_pattern":null,"registry_unauthenticated_pull":false,"prior":"Dev","prior_id":6,"organization":"Test | ||
Organization"}],"features":[{"capabilities":[],"name":"Container_Gateway","id":4},{"capabilities":["single","ssh"],"name":"Dynflow","id":17},{"capabilities":["cockpit"],"name":"Script","id":19},{"capabilities":["ansible","certguard","container","core","file","rpm"],"name":"Pulpcore","id":3},{"capabilities":[],"name":"Templates","id":5},{"capabilities":[],"name":"Logs","id":13},{"capabilities":[],"name":"Registration","id":16}],"locations":[],"organizations":[]}' | ||
headers: | ||
cache-control: ['max-age=0, private, must-revalidate'] | ||
connection: [Keep-Alive] | ||
content-length: ['633'] | ||
content-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: [2.2.0-rc3] | ||
keep-alive: ['timeout=15, max=98'] | ||
strict-transport-security: [max-age=631139040; includeSubdomains] | ||
vary: [Accept-Encoding] | ||
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} | ||
Cache-Control: | ||
- max-age=0, private, must-revalidate | ||
Connection: | ||
- Keep-Alive | ||
Content-Length: | ||
- '1710' | ||
Content-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=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 |
Oops, something went wrong.