Revision 0030fb46
Added by Thomas McKay almost 7 years ago
test/fixtures/vcr_cassettes/resources/content_hosts/export.yml | ||
---|---|---|
message: OK
|
||
headers:
|
||
Date:
|
||
- Mon, 27 Mar 2017 18:34:10 GMT
|
||
- Thu, 06 Apr 2017 01:37:23 GMT
|
||
Server:
|
||
- Apache/2.4.6 (Red Hat Enterprise Linux)
|
||
X-Frame-Options:
|
||
... | ... | |
Cache-Control:
|
||
- max-age=0, private, must-revalidate
|
||
X-Request-Id:
|
||
- d26402c2-bca7-4710-9d1b-ada288f15ce4
|
||
- ae126d89-86cd-43ef-bc5b-012d3ca151c5
|
||
X-Runtime:
|
||
- '0.055796'
|
||
- '0.062907'
|
||
X-Powered-By:
|
||
- Phusion Passenger 4.0.18
|
||
Etag:
|
||
... | ... | |
Content-Type:
|
||
- application/json; charset=utf-8
|
||
Set-Cookie:
|
||
- _session_id=62452072a98d25fab340ccab4bd5208a; path=/; secure; HttpOnly
|
||
- _session_id=b22afb207374407d9ae10b71c0696c11; path=/; secure; HttpOnly
|
||
body:
|
||
encoding: UTF-8
|
||
string: '{"result":"ok","status":200,"version":"1.11.0.54","api_version":2}'
|
||
http_version:
|
||
recorded_at: Mon, 27 Mar 2017 18:34:16 GMT
|
||
recorded_at: Thu, 06 Apr 2017 01:37:35 GMT
|
||
- request:
|
||
method: get
|
||
uri: https://admin:changeme@devel.example.com:50083/api/v2/plugins
|
||
... | ... | |
message: OK
|
||
headers:
|
||
Date:
|
||
- Mon, 27 Mar 2017 18:34:10 GMT
|
||
- Thu, 06 Apr 2017 01:37:23 GMT
|
||
Server:
|
||
- Apache/2.4.6 (Red Hat Enterprise Linux)
|
||
X-Frame-Options:
|
||
... | ... | |
Cache-Control:
|
||
- max-age=0, private, must-revalidate
|
||
X-Request-Id:
|
||
- 2c6b6ac5-3707-4074-a130-04482d84a35d
|
||
- ce4a3134-f67a-41da-b735-2a11f7c43050
|
||
X-Runtime:
|
||
- '0.030810'
|
||
- '0.073573'
|
||
X-Powered-By:
|
||
- Phusion Passenger 4.0.18
|
||
Etag:
|
||
... | ... | |
Content-Type:
|
||
- application/json; charset=utf-8
|
||
Set-Cookie:
|
||
- _session_id=f1f351b064b23f44fc793dec250fb18a; path=/; secure; HttpOnly
|
||
- _session_id=e980555c21da791503bce50da7c7dffe; path=/; secure; HttpOnly
|
||
body:
|
||
encoding: ASCII-8BIT
|
||
string: !binary |-
|
||
... | ... | |
ZW1hbiIsInVybCI6Imh0dHA6Ly93d3cubHBoaXJpLnJlZGhhdC5jb20iLCJ2
|
||
ZXJzaW9uIjoiMS4wLjEzIn1dCn0K
|
||
http_version:
|
||
recorded_at: Mon, 27 Mar 2017 18:34:16 GMT
|
||
recorded_at: Thu, 06 Apr 2017 01:37:35 GMT
|
||
- request:
|
||
method: get
|
||
uri: https://devel.example.com:50083/apidoc/v2.en.json
|
||
... | ... | |
message: OK
|
||
headers:
|
||
Date:
|
||
- Mon, 27 Mar 2017 18:34:10 GMT
|
||
- Thu, 06 Apr 2017 01:37:23 GMT
|
||
Server:
|
||
- Apache/2.4.6 (Red Hat Enterprise Linux)
|
||
X-Frame-Options:
|
||
... | ... | |
Apipie-Checksum:
|
||
- e1df2e8d43e22495b02a53b48e3b5298
|
||
X-Request-Id:
|
||
- 7b9bbf18-870d-4326-bb60-9548e7653492
|
||
- f4b347a8-6f11-4dc8-ba08-696d385d5093
|
||
X-Runtime:
|
||
- '0.004609'
|
||
- '0.006580'
|
||
X-Powered-By:
|
||
- Phusion Passenger 4.0.18
|
||
Status:
|
||
... | ... | |
Ijp0cnVlfV0sImhlYWRlcnMiOm51bGx9fSwibGlua19leHRlbnNpb24iOiIu
|
||
ZW4uaHRtbCJ9fQ==
|
||
http_version:
|
||
recorded_at: Mon, 27 Mar 2017 18:34:16 GMT
|
||
recorded_at: Thu, 06 Apr 2017 01:37:35 GMT
|
||
- request:
|
||
method: get
|
||
uri: https://admin:changeme@devel.example.com:50083/katello/api/organizations?full_results=true
|
||
... | ... | |
message: OK
|
||
headers:
|
||
Date:
|
||
- Mon, 27 Mar 2017 18:34:10 GMT
|
||
- Thu, 06 Apr 2017 01:37:23 GMT
|
||
Server:
|
||
- Apache/2.4.6 (Red Hat Enterprise Linux)
|
||
X-Frame-Options:
|
||
... | ... | |
Cache-Control:
|
||
- max-age=0, private, must-revalidate
|
||
X-Request-Id:
|
||
- 9e1033ee-3f9e-4722-ae9c-1412c87519f4
|
||
- df26776e-48fc-4b7c-adb3-898a48a3ad2a
|
||
X-Runtime:
|
||
- '0.068337'
|
||
- '0.072164'
|
||
X-Powered-By:
|
||
- Phusion Passenger 4.0.18
|
||
Etag:
|
||
- '"73a5bc88d138c8b8b28447e7d89ee3cd-gzip"'
|
||
- '"ffee47ad15c7fec31c37fd0e7c1971eb-gzip"'
|
||
Status:
|
||
- 200 OK
|
||
Vary:
|
||
... | ... | |
Content-Type:
|
||
- application/json; charset=utf-8
|
||
Set-Cookie:
|
||
- _session_id=f3cfc50c93e9fca1924f11a5c22289bf; path=/; secure; HttpOnly
|
||
- _session_id=818014e4577176053051f3955b72aa45; path=/; secure; HttpOnly
|
||
body:
|
||
encoding: ASCII-8BIT
|
||
string: |
|
||
... | ... | |
"by": null,
|
||
"order": null
|
||
},
|
||
"results": [{"label":"Default_Organization","created_at":"2016-12-01 19:25:05 UTC","updated_at":"2016-12-01 19:25:08 UTC","id":1,"name":"Default Organization","title":"Default Organization","description":null},{"label":"testcorp","created_at":"2016-12-01 19:35:26 UTC","updated_at":"2017-03-27 18:28:18 UTC","id":3,"name":"Test Corporation","title":"Test Corporation","description":"Testing today for a better tomorrow"}]
|
||
"results": [{"label":"Default_Organization","created_at":"2016-12-01 19:25:05 UTC","updated_at":"2016-12-01 19:25:08 UTC","id":1,"name":"Default Organization","title":"Default Organization","description":null},{"label":"testcorp","created_at":"2016-12-01 19:35:26 UTC","updated_at":"2017-03-27 18:36:51 UTC","id":3,"name":"Test Corporation","title":"Test Corporation","description":"Testing today for a better tomorrow"}]
|
||
}
|
||
http_version:
|
||
recorded_at: Mon, 27 Mar 2017 18:34:16 GMT
|
||
recorded_at: Thu, 06 Apr 2017 01:37:35 GMT
|
||
- request:
|
||
method: get
|
||
uri: https://admin:changeme@devel.example.com:50083/katello/api/organizations?per_page=999999&search=name=%22Test%20Corporation%22
|
||
... | ... | |
message: OK
|
||
headers:
|
||
Date:
|
||
- Mon, 27 Mar 2017 18:34:10 GMT
|
||
- Thu, 06 Apr 2017 01:37:24 GMT
|
||
Server:
|
||
- Apache/2.4.6 (Red Hat Enterprise Linux)
|
||
X-Frame-Options:
|
||
... | ... | |
Cache-Control:
|
||
- max-age=0, private, must-revalidate
|
||
X-Request-Id:
|
||
- 7e6775fe-f71e-4a79-bab0-41b97c5e1bbe
|
||
- 6c0033e1-a9cf-4da7-9e1c-e561a095220d
|
||
X-Runtime:
|
||
- '0.042830'
|
||
- '0.055515'
|
||
X-Powered-By:
|
||
- Phusion Passenger 4.0.18
|
||
Etag:
|
||
- '"45c0a1d1908621d8a984de3fe2b76754-gzip"'
|
||
- '"442ba11ec0703ed2d5c48129111cd2c5-gzip"'
|
||
Status:
|
||
- 200 OK
|
||
Vary:
|
||
... | ... | |
Content-Type:
|
||
- application/json; charset=utf-8
|
||
Set-Cookie:
|
||
- _session_id=30d797d2dbaa71f3572b979231ab1aa4; path=/; secure; HttpOnly
|
||
- _session_id=de42b79eb6f1f33c2b5f3acc806366b0; path=/; secure; HttpOnly
|
||
body:
|
||
encoding: ASCII-8BIT
|
||
string: |
|
||
... | ... | |
"by": null,
|
||
"order": null
|
||
},
|
||
"results": [{"label":"testcorp","created_at":"2016-12-01 19:35:26 UTC","updated_at":"2017-03-27 18:28:18 UTC","id":3,"name":"Test Corporation","title":"Test Corporation","description":"Testing today for a better tomorrow"}]
|
||
"results": [{"label":"testcorp","created_at":"2016-12-01 19:35:26 UTC","updated_at":"2017-03-27 18:36:51 UTC","id":3,"name":"Test Corporation","title":"Test Corporation","description":"Testing today for a better tomorrow"}]
|
||
}
|
||
http_version:
|
||
recorded_at: Mon, 27 Mar 2017 18:34:17 GMT
|
||
recorded_at: Thu, 06 Apr 2017 01:37:35 GMT
|
||
- request:
|
||
method: get
|
||
uri: https://admin:changeme@devel.example.com:50083/api/organizations/3/hosts?per_page=1&search
|
||
... | ... | |
message: OK
|
||
headers:
|
||
Date:
|
||
- Mon, 27 Mar 2017 18:34:10 GMT
|
||
- Thu, 06 Apr 2017 01:37:24 GMT
|
||
Server:
|
||
- Apache/2.4.6 (Red Hat Enterprise Linux)
|
||
X-Frame-Options:
|
||
... | ... | |
Cache-Control:
|
||
- max-age=0, private, must-revalidate
|
||
X-Request-Id:
|
||
- 35e0e6ae-899c-4e18-ae7f-8890aa49cd50
|
||
- 7526ed2e-52b1-4bdb-b1c2-5bdb7344a46b
|
||
X-Runtime:
|
||
- '0.266477'
|
||
- '0.138460'
|
||
X-Powered-By:
|
||
- Phusion Passenger 4.0.18
|
||
Etag:
|
||
- '"aa071a3b0682e7e6e0310fa5e49927ac-gzip"'
|
||
- '"016efd2aca19cc468ad9dcd3a9f4ebe4-gzip"'
|
||
Status:
|
||
- 200 OK
|
||
Vary:
|
||
... | ... | |
Content-Type:
|
||
- application/json; charset=utf-8
|
||
Set-Cookie:
|
||
- _session_id=59abb8819b742584b3ec9d12a1aa469a; path=/; secure; HttpOnly
|
||
- _session_id=4f030e42d0e36a831d7d186b561901cf; path=/; secure; HttpOnly
|
||
body:
|
||
encoding: ASCII-8BIT
|
||
string: |
|
||
... | ... | |
"by": null,
|
||
"order": null
|
||
},
|
||
"results": [{"ip":null,"environment_id":null,"environment_name":null,"last_report":null,"mac":null,"realm_id":null,"realm_name":null,"sp_mac":null,"sp_ip":null,"sp_name":null,"domain_id":null,"domain_name":null,"architecture_id":null,"architecture_name":null,"operatingsystem_id":null,"operatingsystem_name":null,"subnet_id":null,"subnet_name":null,"sp_subnet_id":null,"ptable_id":null,"ptable_name":null,"medium_id":null,"medium_name":null,"build":false,"comment":null,"disk":null,"installed_at":null,"model_id":null,"hostgroup_id":null,"owner_id":3,"owner_type":"User","enabled":true,"puppet_ca_proxy_id":null,"managed":false,"use_image":null,"image_file":"","uuid":null,"compute_resource_id":null,"compute_resource_name":null,"compute_profile_id":null,"compute_profile_name":null,"capabilities":["build"],"provision_method":"build","puppet_proxy_id":null,"certname":"testphysical","image_id":null,"image_name":null,"created_at":"2016-12-01 19:38:28 UTC","updated_at":"2017-03-27 18:21:56 UTC","last_compile":"2016-12-01 19:38:30 UTC","global_status":0,"global_status_label":"Warning","organization_id":3,"organization_name":"Test Corporation","location_id":2,"location_name":"Default Location","puppet_status":0,"model_name":null,"errata_status":0,"errata_status_label":"Could not calculate errata status, ensure host is registered and katello-agent is installed","subscription_status":0,"subscription_status_label":"Fully entitled","name":"testphysical","id":7,"hostgroup_name":null,"hostgroup_title":null,"content_facet_attributes":{"id":6,"uuid":"22955fb7-7b12-4db8-83be-6443ba725d77","content_view_id":2,"content_view_name":"Default Organization View","lifecycle_environment_id":2,"lifecycle_environment_name":"Library","content_view":{"id":2,"name":"Default Organization View"},"lifecycle_environment":{"id":2,"name":"Library"},"errata_counts":{"security":0,"bugfix":0,"enhancement":0,"total":0}},"subscription_facet_attributes":{"id":6,"uuid":"22955fb7-7b12-4db8-83be-6443ba725d77","last_checkin":"2016-12-01 19:38:28 UTC","service_level":null,"release_version":null,"autoheal":true,"registered_at":"2016-12-01 19:38:28 UTC"},"content_host_id":6}]
|
||
"results": [{"ip":null,"environment_id":null,"environment_name":null,"last_report":null,"mac":null,"realm_id":null,"realm_name":null,"sp_mac":null,"sp_ip":null,"sp_name":null,"domain_id":null,"domain_name":null,"architecture_id":null,"architecture_name":null,"operatingsystem_id":null,"operatingsystem_name":null,"subnet_id":null,"subnet_name":null,"sp_subnet_id":null,"ptable_id":null,"ptable_name":null,"medium_id":null,"medium_name":null,"build":false,"comment":null,"disk":null,"installed_at":null,"model_id":null,"hostgroup_id":null,"owner_id":3,"owner_type":"User","enabled":true,"puppet_ca_proxy_id":null,"managed":false,"use_image":null,"image_file":"","uuid":null,"compute_resource_id":null,"compute_resource_name":null,"compute_profile_id":null,"compute_profile_name":null,"capabilities":["build"],"provision_method":"build","puppet_proxy_id":null,"certname":"testphysical","image_id":null,"image_name":null,"created_at":"2016-12-01 19:38:28 UTC","updated_at":"2017-03-27 18:36:46 UTC","last_compile":"2016-12-01 19:38:30 UTC","global_status":0,"global_status_label":"Warning","organization_id":3,"organization_name":"Test Corporation","location_id":2,"location_name":"Default Location","puppet_status":0,"model_name":null,"errata_status":0,"errata_status_label":"Could not calculate errata status, ensure host is registered and katello-agent is installed","subscription_status":0,"subscription_status_label":"Fully entitled","name":"testphysical","id":7,"hostgroup_name":null,"hostgroup_title":null,"content_facet_attributes":{"id":6,"uuid":"22955fb7-7b12-4db8-83be-6443ba725d77","content_view_id":2,"content_view_name":"Default Organization View","lifecycle_environment_id":2,"lifecycle_environment_name":"Library","content_view":{"id":2,"name":"Default Organization View"},"lifecycle_environment":{"id":2,"name":"Library"},"errata_counts":{"security":0,"bugfix":0,"enhancement":0,"total":0}},"subscription_facet_attributes":{"id":6,"uuid":"22955fb7-7b12-4db8-83be-6443ba725d77","last_checkin":"2016-12-01 19:38:28 UTC","service_level":null,"release_version":null,"autoheal":true,"registered_at":"2016-12-01 19:38:28 UTC"},"content_host_id":6}]
|
||
}
|
||
http_version:
|
||
recorded_at: Mon, 27 Mar 2017 18:34:17 GMT
|
||
recorded_at: Thu, 06 Apr 2017 01:37:35 GMT
|
||
- request:
|
||
method: get
|
||
uri: https://admin:changeme@devel.example.com:50083/api/organizations/3/hosts?page=1&per_page=20&search
|
||
... | ... | |
message: OK
|
||
headers:
|
||
Date:
|
||
- Mon, 27 Mar 2017 18:34:11 GMT
|
||
- Thu, 06 Apr 2017 01:37:24 GMT
|
||
Server:
|
||
- Apache/2.4.6 (Red Hat Enterprise Linux)
|
||
X-Frame-Options:
|
||
... | ... | |
Cache-Control:
|
||
- max-age=0, private, must-revalidate
|
||
X-Request-Id:
|
||
- 9429dee4-d18d-4156-a68d-7cb5bb4d1249
|
||
- e1ba1d2d-04a1-4895-9f50-b66daad03f0e
|
||
X-Runtime:
|
||
- '0.181439'
|
||
- '0.153484'
|
||
X-Powered-By:
|
||
- Phusion Passenger 4.0.18
|
||
Etag:
|
||
- '"790c22d6d1fcf8c0b08afacb06f8909f-gzip"'
|
||
- '"2b47c4b023943c23c0498d4d80e46da7-gzip"'
|
||
Status:
|
||
- 200 OK
|
||
Vary:
|
||
... | ... | |
Content-Type:
|
||
- application/json; charset=utf-8
|
||
Set-Cookie:
|
||
- _session_id=f9d713f10cb58c1b4e6aa1546d7fd130; path=/; secure; HttpOnly
|
||
- _session_id=6ff889f1aef03d130e4c01f423a047dd; path=/; secure; HttpOnly
|
||
body:
|
||
encoding: ASCII-8BIT
|
||
string: |
|
||
... | ... | |
"by": null,
|
||
"order": null
|
||
},
|
||
"results": [{"ip":null,"environment_id":null,"environment_name":null,"last_report":null,"mac":null,"realm_id":null,"realm_name":null,"sp_mac":null,"sp_ip":null,"sp_name":null,"domain_id":null,"domain_name":null,"architecture_id":null,"architecture_name":null,"operatingsystem_id":null,"operatingsystem_name":null,"subnet_id":null,"subnet_name":null,"sp_subnet_id":null,"ptable_id":null,"ptable_name":null,"medium_id":null,"medium_name":null,"build":false,"comment":null,"disk":null,"installed_at":null,"model_id":null,"hostgroup_id":null,"owner_id":3,"owner_type":"User","enabled":true,"puppet_ca_proxy_id":null,"managed":false,"use_image":null,"image_file":"","uuid":null,"compute_resource_id":null,"compute_resource_name":null,"compute_profile_id":null,"compute_profile_name":null,"capabilities":["build"],"provision_method":"build","puppet_proxy_id":null,"certname":"testphysical","image_id":null,"image_name":null,"created_at":"2016-12-01 19:38:28 UTC","updated_at":"2017-03-27 18:21:56 UTC","last_compile":"2016-12-01 19:38:30 UTC","global_status":0,"global_status_label":"Warning","organization_id":3,"organization_name":"Test Corporation","location_id":2,"location_name":"Default Location","puppet_status":0,"model_name":null,"errata_status":0,"errata_status_label":"Could not calculate errata status, ensure host is registered and katello-agent is installed","subscription_status":0,"subscription_status_label":"Fully entitled","name":"testphysical","id":7,"hostgroup_name":null,"hostgroup_title":null,"content_facet_attributes":{"id":6,"uuid":"22955fb7-7b12-4db8-83be-6443ba725d77","content_view_id":2,"content_view_name":"Default Organization View","lifecycle_environment_id":2,"lifecycle_environment_name":"Library","content_view":{"id":2,"name":"Default Organization View"},"lifecycle_environment":{"id":2,"name":"Library"},"errata_counts":{"security":0,"bugfix":0,"enhancement":0,"total":0}},"subscription_facet_attributes":{"id":6,"uuid":"22955fb7-7b12-4db8-83be-6443ba725d77","last_checkin":"2016-12-01 19:38:28 UTC","service_level":null,"release_version":null,"autoheal":true,"registered_at":"2016-12-01 19:38:28 UTC"},"content_host_id":6},{"ip":null,"environment_id":null,"environment_name":null,"last_report":null,"mac":null,"realm_id":null,"realm_name":null,"sp_mac":null,"sp_ip":null,"sp_name":null,"domain_id":null,"domain_name":null,"architecture_id":null,"architecture_name":null,"operatingsystem_id":null,"operatingsystem_name":null,"subnet_id":null,"subnet_name":null,"sp_subnet_id":null,"ptable_id":null,"ptable_name":null,"medium_id":null,"medium_name":null,"build":false,"comment":null,"disk":null,"installed_at":null,"model_id":null,"hostgroup_id":null,"owner_id":3,"owner_type":"User","enabled":true,"puppet_ca_proxy_id":null,"managed":false,"use_image":null,"image_file":"","uuid":null,"compute_resource_id":null,"compute_resource_name":null,"compute_profile_id":null,"compute_profile_name":null,"capabilities":["build"],"provision_method":"build","puppet_proxy_id":null,"certname":"testvm","image_id":null,"image_name":null,"created_at":"2016-12-01 19:37:05 UTC","updated_at":"2017-03-27 18:28:09 UTC","last_compile":"2016-12-01 19:37:06 UTC","global_status":0,"global_status_label":"Warning","organization_id":3,"organization_name":"Test Corporation","location_id":2,"location_name":"Default Location","puppet_status":0,"model_name":null,"errata_status":0,"errata_status_label":"Could not calculate errata status, ensure host is registered and katello-agent is installed","subscription_status":0,"subscription_status_label":"Fully entitled","name":"testvm","id":6,"hostgroup_name":null,"hostgroup_title":null,"content_facet_attributes":{"id":5,"uuid":"2b996a62-2be7-4cb6-adaa-0933a69cb9bc","content_view_id":2,"content_view_name":"Default Organization View","lifecycle_environment_id":2,"lifecycle_environment_name":"Library","content_view":{"id":2,"name":"Default Organization View"},"lifecycle_environment":{"id":2,"name":"Library"},"errata_counts":{"security":0,"bugfix":0,"enhancement":0,"total":0}},"subscription_facet_attributes":{"id":5,"uuid":"2b996a62-2be7-4cb6-adaa-0933a69cb9bc","last_checkin":"2016-12-01 19:37:05 UTC","service_level":null,"release_version":null,"autoheal":true,"registered_at":"2016-12-01 19:37:05 UTC"},"content_host_id":5}]
|
||
"results": [{"ip":null,"environment_id":null,"environment_name":null,"last_report":null,"mac":null,"realm_id":null,"realm_name":null,"sp_mac":null,"sp_ip":null,"sp_name":null,"domain_id":null,"domain_name":null,"architecture_id":null,"architecture_name":null,"operatingsystem_id":null,"operatingsystem_name":null,"subnet_id":null,"subnet_name":null,"sp_subnet_id":null,"ptable_id":null,"ptable_name":null,"medium_id":null,"medium_name":null,"build":false,"comment":null,"disk":null,"installed_at":null,"model_id":null,"hostgroup_id":null,"owner_id":3,"owner_type":"User","enabled":true,"puppet_ca_proxy_id":null,"managed":false,"use_image":null,"image_file":"","uuid":null,"compute_resource_id":null,"compute_resource_name":null,"compute_profile_id":null,"compute_profile_name":null,"capabilities":["build"],"provision_method":"build","puppet_proxy_id":null,"certname":"testphysical","image_id":null,"image_name":null,"created_at":"2016-12-01 19:38:28 UTC","updated_at":"2017-03-27 18:36:46 UTC","last_compile":"2016-12-01 19:38:30 UTC","global_status":0,"global_status_label":"Warning","organization_id":3,"organization_name":"Test Corporation","location_id":2,"location_name":"Default Location","puppet_status":0,"model_name":null,"errata_status":0,"errata_status_label":"Could not calculate errata status, ensure host is registered and katello-agent is installed","subscription_status":0,"subscription_status_label":"Fully entitled","name":"testphysical","id":7,"hostgroup_name":null,"hostgroup_title":null,"content_facet_attributes":{"id":6,"uuid":"22955fb7-7b12-4db8-83be-6443ba725d77","content_view_id":2,"content_view_name":"Default Organization View","lifecycle_environment_id":2,"lifecycle_environment_name":"Library","content_view":{"id":2,"name":"Default Organization View"},"lifecycle_environment":{"id":2,"name":"Library"},"errata_counts":{"security":0,"bugfix":0,"enhancement":0,"total":0}},"subscription_facet_attributes":{"id":6,"uuid":"22955fb7-7b12-4db8-83be-6443ba725d77","last_checkin":"2016-12-01 19:38:28 UTC","service_level":null,"release_version":null,"autoheal":true,"registered_at":"2016-12-01 19:38:28 UTC"},"content_host_id":6},{"ip":null,"environment_id":null,"environment_name":null,"last_report":null,"mac":null,"realm_id":null,"realm_name":null,"sp_mac":null,"sp_ip":null,"sp_name":null,"domain_id":null,"domain_name":null,"architecture_id":null,"architecture_name":null,"operatingsystem_id":null,"operatingsystem_name":null,"subnet_id":null,"subnet_name":null,"sp_subnet_id":null,"ptable_id":null,"ptable_name":null,"medium_id":null,"medium_name":null,"build":false,"comment":null,"disk":null,"installed_at":null,"model_id":null,"hostgroup_id":null,"owner_id":3,"owner_type":"User","enabled":true,"puppet_ca_proxy_id":null,"managed":false,"use_image":null,"image_file":"","uuid":null,"compute_resource_id":null,"compute_resource_name":null,"compute_profile_id":null,"compute_profile_name":null,"capabilities":["build"],"provision_method":"build","puppet_proxy_id":null,"certname":"testvm","image_id":null,"image_name":null,"created_at":"2016-12-01 19:37:05 UTC","updated_at":"2017-03-27 18:36:41 UTC","last_compile":"2016-12-01 19:37:06 UTC","global_status":0,"global_status_label":"Warning","organization_id":3,"organization_name":"Test Corporation","location_id":2,"location_name":"Default Location","puppet_status":0,"model_name":null,"errata_status":0,"errata_status_label":"Could not calculate errata status, ensure host is registered and katello-agent is installed","subscription_status":0,"subscription_status_label":"Fully entitled","name":"testvm","id":6,"hostgroup_name":null,"hostgroup_title":null,"content_facet_attributes":{"id":5,"uuid":"2b996a62-2be7-4cb6-adaa-0933a69cb9bc","content_view_id":2,"content_view_name":"Default Organization View","lifecycle_environment_id":2,"lifecycle_environment_name":"Library","content_view":{"id":2,"name":"Default Organization View"},"lifecycle_environment":{"id":2,"name":"Library"},"errata_counts":{"security":0,"bugfix":0,"enhancement":0,"total":0}},"subscription_facet_attributes":{"id":5,"uuid":"2b996a62-2be7-4cb6-adaa-0933a69cb9bc","last_checkin":"2016-12-01 19:37:05 UTC","service_level":null,"release_version":null,"autoheal":true,"registered_at":"2016-12-01 19:37:05 UTC"},"content_host_id":5}]
|
||
}
|
||
http_version:
|
||
recorded_at: Mon, 27 Mar 2017 18:34:17 GMT
|
||
recorded_at: Thu, 06 Apr 2017 01:37:35 GMT
|
||
- request:
|
||
method: get
|
||
uri: https://admin:changeme@devel.example.com:50083/api/hosts/7
|
||
... | ... | |
message: OK
|
||
headers:
|
||
Date:
|
||
- Mon, 27 Mar 2017 18:34:11 GMT
|
||
- Thu, 06 Apr 2017 01:37:24 GMT
|
||
Server:
|
||
- Apache/2.4.6 (Red Hat Enterprise Linux)
|
||
X-Frame-Options:
|
||
... | ... | |
Cache-Control:
|
||
- max-age=0, private, must-revalidate
|
||
X-Request-Id:
|
||
- ef24f59f-5ffb-47bf-a00d-552379d045e0
|
||
- d1543ba3-16b7-4117-93d5-654dbb7e2dee
|
||
X-Runtime:
|
||
- '0.339828'
|
||
- '0.287828'
|
||
X-Powered-By:
|
||
- Phusion Passenger 4.0.18
|
||
Etag:
|
||
- '"f06552997466e07602f8d7e5d026e2db-gzip"'
|
||
- '"d1bd330786b43b9d31b0b79861fa893d-gzip"'
|
||
Status:
|
||
- 200 OK
|
||
Vary:
|
||
... | ... | |
Content-Type:
|
||
- application/json; charset=utf-8
|
||
Set-Cookie:
|
||
- _session_id=109becb14232cd21d6f874fbe447c997; path=/; secure; HttpOnly
|
||
- _session_id=bbb73d7e4083346c6e519f9dcbe51b82; path=/; secure; HttpOnly
|
||
body:
|
||
encoding: ASCII-8BIT
|
||
string: '{"ip":null,"environment_id":null,"environment_name":null,"last_report":null,"mac":null,"realm_id":null,"realm_name":null,"sp_mac":null,"sp_ip":null,"sp_name":null,"domain_id":null,"domain_name":null,"architecture_id":null,"architecture_name":null,"operatingsystem_id":null,"operatingsystem_name":null,"subnet_id":null,"subnet_name":null,"sp_subnet_id":null,"ptable_id":null,"ptable_name":null,"medium_id":null,"medium_name":null,"build":false,"comment":null,"disk":null,"installed_at":null,"model_id":null,"hostgroup_id":null,"owner_id":3,"owner_type":"User","enabled":true,"puppet_ca_proxy_id":null,"managed":false,"use_image":null,"image_file":"","uuid":null,"compute_resource_id":null,"compute_resource_name":null,"compute_profile_id":null,"compute_profile_name":null,"capabilities":["build"],"provision_method":"build","puppet_proxy_id":null,"certname":"testphysical","image_id":null,"image_name":null,"created_at":"2016-12-01
|
||
19:38:28 UTC","updated_at":"2017-03-27 18:21:56 UTC","last_compile":"2016-12-01
|
||
19:38:28 UTC","updated_at":"2017-03-27 18:36:46 UTC","last_compile":"2016-12-01
|
||
19:38:30 UTC","global_status":0,"global_status_label":"Warning","organization_id":3,"organization_name":"Test
|
||
Corporation","location_id":2,"location_name":"Default Location","puppet_status":0,"model_name":null,"errata_status":0,"errata_status_label":"Could
|
||
not calculate errata status, ensure host is registered and katello-agent is
|
||
... | ... | |
Hat Enterprise Linux Server","version":"7Server","arch":"x86_64","status":"green","startDate":"2016-06-20T04:00:00.000+0000","endDate":"2017-06-20T03:59:59.000+0000","created":"2016-12-01T19:38:31.891+0000","updated":"2016-12-01T19:38:31.891+0000"}]},"content_host_id":6,"parameters":[],"interfaces":[{"id":7,"name":"testphysical","ip":null,"mac":null,"identifier":null,"primary":true,"provision":true,"type":"interface"}],"puppetclasses":[],"config_groups":[],"all_parameters":[],"all_puppetclasses":[],"facts":{"system::certificate_version":"3.2","network::hostname":"testphysical","cpu::core(s)_per_socket":"1","cpu::cpu_socket(s)":"8","memory::memtotal":"4GB","uname::machine":"x86_64","distribution::name":"RHEL","distribution::version":"7Server","virt::is_guest":"true","virt::uuid":"Test
|
||
Corporation/testphysical","cpu::cpu(s)":"1","system":null,"network":null,"cpu":null,"memory":null,"uname":null,"distribution":null,"virt":null,"_timestamp":"2016-12-01T19:38:30+00:00"},"host_collections":[],"permissions":{"view_hosts":true,"create_hosts":true,"edit_hosts":true,"destroy_hosts":true,"build_hosts":true,"power_hosts":true,"console_hosts":true,"ipmi_boot":true,"puppetrun_hosts":true,"view_discovered_hosts":true,"submit_discovered_hosts":true,"auto_provision_discovered_hosts":true,"provision_discovered_hosts":true,"edit_discovered_hosts":true,"destroy_discovered_hosts":true}}'
|
||
http_version:
|
||
recorded_at: Mon, 27 Mar 2017 18:34:17 GMT
|
||
recorded_at: Thu, 06 Apr 2017 01:37:36 GMT
|
||
- request:
|
||
method: get
|
||
uri: https://admin:changeme@devel.example.com:50083/api/hosts/6
|
||
... | ... | |
message: OK
|
||
headers:
|
||
Date:
|
||
- Mon, 27 Mar 2017 18:34:11 GMT
|
||
- Thu, 06 Apr 2017 01:37:24 GMT
|
||
Server:
|
||
- Apache/2.4.6 (Red Hat Enterprise Linux)
|
||
X-Frame-Options:
|
||
... | ... | |
Cache-Control:
|
||
- max-age=0, private, must-revalidate
|
||
X-Request-Id:
|
||
- 17929cf2-7f3c-4334-8ab9-6b426c26ea64
|
||
- 0d416dd2-77b1-49c8-a553-5fceaef4e4f4
|
||
X-Runtime:
|
||
- '0.296081'
|
||
- '0.299828'
|
||
X-Powered-By:
|
||
- Phusion Passenger 4.0.18
|
||
Etag:
|
||
- '"645c7a2212b1806ef5700003b42abd8f-gzip"'
|
||
- '"d9bfb4fc49314a77563018898d05854d-gzip"'
|
||
Status:
|
||
- 200 OK
|
||
Vary:
|
||
... | ... | |
Content-Type:
|
||
- application/json; charset=utf-8
|
||
Set-Cookie:
|
||
- _session_id=0cd1c5164287df483b545975f404135c; path=/; secure; HttpOnly
|
||
- _session_id=42fa5da9a426d9c9d6bbe613961c7d30; path=/; secure; HttpOnly
|
||
body:
|
||
encoding: ASCII-8BIT
|
||
string: '{"ip":null,"environment_id":null,"environment_name":null,"last_report":null,"mac":null,"realm_id":null,"realm_name":null,"sp_mac":null,"sp_ip":null,"sp_name":null,"domain_id":null,"domain_name":null,"architecture_id":null,"architecture_name":null,"operatingsystem_id":null,"operatingsystem_name":null,"subnet_id":null,"subnet_name":null,"sp_subnet_id":null,"ptable_id":null,"ptable_name":null,"medium_id":null,"medium_name":null,"build":false,"comment":null,"disk":null,"installed_at":null,"model_id":null,"hostgroup_id":null,"owner_id":3,"owner_type":"User","enabled":true,"puppet_ca_proxy_id":null,"managed":false,"use_image":null,"image_file":"","uuid":null,"compute_resource_id":null,"compute_resource_name":null,"compute_profile_id":null,"compute_profile_name":null,"capabilities":["build"],"provision_method":"build","puppet_proxy_id":null,"certname":"testvm","image_id":null,"image_name":null,"created_at":"2016-12-01
|
||
19:37:05 UTC","updated_at":"2017-03-27 18:28:09 UTC","last_compile":"2016-12-01
|
||
19:37:05 UTC","updated_at":"2017-03-27 18:36:41 UTC","last_compile":"2016-12-01
|
||
19:37:06 UTC","global_status":0,"global_status_label":"Warning","organization_id":3,"organization_name":"Test
|
||
Corporation","location_id":2,"location_name":"Default Location","puppet_status":0,"model_name":null,"errata_status":0,"errata_status_label":"Could
|
||
not calculate errata status, ensure host is registered and katello-agent is
|
||
... | ... | |
Hat Enterprise Linux Server","version":"7Server","arch":"x86_64","status":"green","startDate":"2016-06-20T04:00:00.000+0000","endDate":"2017-06-20T03:59:59.000+0000","created":"2016-12-01T19:37:19.374+0000","updated":"2016-12-01T19:37:19.374+0000"}]},"content_host_id":5,"parameters":[],"interfaces":[{"id":6,"name":"testvm","ip":null,"mac":null,"identifier":null,"primary":true,"provision":true,"type":"interface"}],"puppetclasses":[],"config_groups":[],"all_parameters":[],"all_puppetclasses":[],"facts":{"system::certificate_version":"3.2","network::hostname":"testvm","cpu::core(s)_per_socket":"1","cpu::cpu_socket(s)":"4","memory::memtotal":"4GB","uname::machine":"x86_64","distribution::name":"RHEL","distribution::version":"7Server","virt::is_guest":"true","virt::uuid":"Test
|
||
Corporation/testvm","cpu::cpu(s)":"1","system":null,"network":null,"cpu":null,"memory":null,"uname":null,"distribution":null,"virt":null,"_timestamp":"2016-12-01T19:37:06+00:00"},"host_collections":[],"permissions":{"view_hosts":true,"create_hosts":true,"edit_hosts":true,"destroy_hosts":true,"build_hosts":true,"power_hosts":true,"console_hosts":true,"ipmi_boot":true,"puppetrun_hosts":true,"view_discovered_hosts":true,"submit_discovered_hosts":true,"auto_provision_discovered_hosts":true,"provision_discovered_hosts":true,"edit_discovered_hosts":true,"destroy_discovered_hosts":true}}'
|
||
http_version:
|
||
recorded_at: Mon, 27 Mar 2017 18:34:18 GMT
|
||
recorded_at: Thu, 06 Apr 2017 01:37:36 GMT
|
||
- request:
|
||
method: get
|
||
uri: https://admin:changeme@devel.example.com:50083/api/hosts/7/subscriptions?organization_id=3
|
||
... | ... | |
message: OK
|
||
headers:
|
||
Date:
|
||
- Mon, 27 Mar 2017 18:34:12 GMT
|
||
- Thu, 06 Apr 2017 01:37:25 GMT
|
||
Server:
|
||
- Apache/2.4.6 (Red Hat Enterprise Linux)
|
||
X-Frame-Options:
|
||
... | ... | |
Cache-Control:
|
||
- max-age=0, private, must-revalidate
|
||
X-Request-Id:
|
||
- 626484c0-8970-472e-b6bd-0f62f427f5a1
|
||
- e7f58c7d-1883-4bb1-ada7-69347faae764
|
||
X-Runtime:
|
||
- '0.236908'
|
||
- '0.217964'
|
||
X-Powered-By:
|
||
- Phusion Passenger 4.0.18
|
||
Etag:
|
||
... | ... | |
Content-Type:
|
||
- application/json; charset=utf-8
|
||
Set-Cookie:
|
||
- _session_id=5137bb4dca7d7cdbd3724cb7ad1c265d; path=/; secure; HttpOnly
|
||
- _session_id=f2826f2dd485bdc6730676faeca35117; path=/; secure; HttpOnly
|
||
body:
|
||
encoding: ASCII-8BIT
|
||
string: '{"total":1,"subtotal":1,"page":1,"per_page":1,"error":null,"search":null,"sort":{"by":null,"order":null},"results":[{"quantity_consumed":1,"id":19,"cp_id":"ff80808158bbd8b50158bbe4a4a204a3","subscription_id":13,"name":"Red
|
||
... | ... | |
|
||
'
|
||
http_version:
|
||
recorded_at: Mon, 27 Mar 2017 18:34:18 GMT
|
||
recorded_at: Thu, 06 Apr 2017 01:37:36 GMT
|
||
- request:
|
||
method: get
|
||
uri: https://admin:changeme@devel.example.com:50083/api/hosts/6/subscriptions?organization_id=3
|
||
... | ... | |
message: OK
|
||
headers:
|
||
Date:
|
||
- Mon, 27 Mar 2017 18:34:12 GMT
|
||
- Thu, 06 Apr 2017 01:37:25 GMT
|
||
Server:
|
||
- Apache/2.4.6 (Red Hat Enterprise Linux)
|
||
X-Frame-Options:
|
||
... | ... | |
Cache-Control:
|
||
- max-age=0, private, must-revalidate
|
||
X-Request-Id:
|
||
- 2f7f8292-117b-4463-a44d-a1dae662a031
|
||
- c1d76e24-3fdb-4233-a2e1-3c59957cc8db
|
||
X-Runtime:
|
||
- '0.238960'
|
||
- '0.239982'
|
||
X-Powered-By:
|
||
- Phusion Passenger 4.0.18
|
||
Etag:
|
||
... | ... | |
Content-Type:
|
||
- application/json; charset=utf-8
|
||
Set-Cookie:
|
||
- _session_id=d7e410bc02379b50d071a1d7f3ce54d3; path=/; secure; HttpOnly
|
||
- _session_id=3cb670857b5ec9470c2b7d6eced3c130; path=/; secure; HttpOnly
|
||
body:
|
||
encoding: ASCII-8BIT
|
||
string: '{"total":1,"subtotal":1,"page":1,"per_page":1,"error":null,"search":null,"sort":{"by":null,"order":null},"results":[{"quantity_consumed":1,"id":19,"cp_id":"ff80808158bbd8b50158bbe4a4a204a3","subscription_id":13,"name":"Red
|
||
... | ... | |
|
||
'
|
||
http_version:
|
||
recorded_at: Mon, 27 Mar 2017 18:34:18 GMT
|
||
recorded_at: Thu, 06 Apr 2017 01:37:36 GMT
|
||
recorded_with: VCR 3.0.3
|
Also available in: Unified diff
vcr - re-record content_hosts tests