Project

General

Profile

« Previous | Next » 

Revision 0030fb46

Added by Thomas McKay almost 7 years ago

vcr - re-record content_hosts tests

View differences:

test/fixtures/vcr_cassettes/setup/setup_content_hosts/setup.yml
'
http_version:
recorded_at: Mon, 19 Dec 2016 16:43:34 GMT
- request:
method: get
uri: https://admin:changeme@devel.example.com:50083/api/organizations/3/hosts?per_page=1
body:
encoding: US-ASCII
string: ''
headers:
Accept:
- application/json;version=2
Accept-Encoding:
- gzip, deflate
User-Agent:
- rest-client/2.0.0 (linux-gnu x86_64) ruby/2.3.1p112
Content-Type:
- application/json
Accept-Language:
- en
Host:
- devel.example.com:50083
response:
status:
code: 200
message: OK
headers:
Date:
- Mon, 27 Mar 2017 18:36:35 GMT
Server:
- Apache/2.4.6 (Red Hat Enterprise Linux)
X-Frame-Options:
- SAMEORIGIN
X-Xss-Protection:
- 1; mode=block
X-Content-Type-Options:
- nosniff
Foreman-Version:
- 1.11.0.54
Foreman-Api-Version:
- '2'
Apipie-Checksum:
- e1df2e8d43e22495b02a53b48e3b5298
Cache-Control:
- max-age=0, private, must-revalidate
X-Request-Id:
- 69122023-1a01-4646-a7e0-c6dea28580da
X-Runtime:
- '0.122034'
X-Powered-By:
- Phusion Passenger 4.0.18
Etag:
- '"aa071a3b0682e7e6e0310fa5e49927ac-gzip"'
Status:
- 200 OK
Vary:
- Accept-Encoding
Content-Length:
- '2293'
Content-Type:
- application/json; charset=utf-8
Set-Cookie:
- _session_id=f4e266c3d1ec445e7e7d5b6527a5844f; path=/; secure; HttpOnly
body:
encoding: ASCII-8BIT
string: |
{
"total": 2,
"subtotal": 2,
"page": 1,
"per_page": 1,
"search": null,
"sort": {
"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}]
}
http_version:
recorded_at: Mon, 27 Mar 2017 18:36:42 GMT
- request:
method: get
uri: https://admin:changeme@devel.example.com:50083/api/organizations/3/hosts?page=1&per_page=20
body:
encoding: US-ASCII
string: ''
headers:
Accept:
- application/json;version=2
Accept-Encoding:
- gzip, deflate
User-Agent:
- rest-client/2.0.0 (linux-gnu x86_64) ruby/2.3.1p112
Content-Type:
- application/json
Accept-Language:
- en
Host:
- devel.example.com:50083
response:
status:
code: 200
message: OK
headers:
Date:
- Mon, 27 Mar 2017 18:36:36 GMT
Server:
- Apache/2.4.6 (Red Hat Enterprise Linux)
X-Frame-Options:
- SAMEORIGIN
X-Xss-Protection:
- 1; mode=block
X-Content-Type-Options:
- nosniff
Foreman-Version:
- 1.11.0.54
Foreman-Api-Version:
- '2'
Apipie-Checksum:
- e1df2e8d43e22495b02a53b48e3b5298
Cache-Control:
- max-age=0, private, must-revalidate
X-Request-Id:
- a5e58060-6e40-4caa-8b6a-b55dc38bae4b
X-Runtime:
- '0.155206'
X-Powered-By:
- Phusion Passenger 4.0.18
Etag:
- '"790c22d6d1fcf8c0b08afacb06f8909f-gzip"'
Status:
- 200 OK
Vary:
- Accept-Encoding
Content-Length:
- '4426'
Content-Type:
- application/json; charset=utf-8
Set-Cookie:
- _session_id=9578f1339c01167f6c6129a91fff314d; path=/; secure; HttpOnly
body:
encoding: ASCII-8BIT
string: |
{
"total": 2,
"subtotal": 2,
"page": 1,
"per_page": 20,
"search": null,
"sort": {
"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}]
}
http_version:
recorded_at: Mon, 27 Mar 2017 18:36:42 GMT
- request:
method: get
uri: https://admin:changeme@devel.example.com:50083/api/status
......
message: OK
headers:
Date:
- Mon, 27 Mar 2017 18:36:35 GMT
- Thu, 06 Apr 2017 01:50:04 GMT
Server:
- Apache/2.4.6 (Red Hat Enterprise Linux)
X-Frame-Options:
......
Cache-Control:
- max-age=0, private, must-revalidate
X-Request-Id:
- 6b588dbb-593e-47a7-97f8-f350f3ee4bda
- 5818bb99-db52-4f88-bd26-0703b205925b
X-Runtime:
- '0.051589'
- '0.063787'
X-Powered-By:
- Phusion Passenger 4.0.18
Etag:
......
Content-Type:
- application/json; charset=utf-8
Set-Cookie:
- _session_id=952b4130aa49c2124eb9197f64004f61; path=/; secure; HttpOnly
- _session_id=5827f8e52279352e24f55562557970af; 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:36:41 GMT
recorded_at: Thu, 06 Apr 2017 01:50:16 GMT
- request:
method: get
uri: https://admin:changeme@devel.example.com:50083/api/v2/plugins
......
message: OK
headers:
Date:
- Mon, 27 Mar 2017 18:36:35 GMT
- Thu, 06 Apr 2017 01:50:04 GMT
Server:
- Apache/2.4.6 (Red Hat Enterprise Linux)
X-Frame-Options:
......
Cache-Control:
- max-age=0, private, must-revalidate
X-Request-Id:
- 49652b5f-8d3e-4246-9810-ed1002ab0a0b
- 8ef27e91-ef51-402c-b954-d95e7cddc0d8
X-Runtime:
- '0.050198'
- '0.057892'
X-Powered-By:
- Phusion Passenger 4.0.18
Etag:
......
Content-Type:
- application/json; charset=utf-8
Set-Cookie:
- _session_id=6c44194cdf56e7405b42c75cfcbc9e5e; path=/; secure; HttpOnly
- _session_id=edee913f8b170da3f820ae905d0e9c60; path=/; secure; HttpOnly
body:
encoding: ASCII-8BIT
string: !binary |-
......
ZW1hbiIsInVybCI6Imh0dHA6Ly93d3cubHBoaXJpLnJlZGhhdC5jb20iLCJ2
ZXJzaW9uIjoiMS4wLjEzIn1dCn0K
http_version:
recorded_at: Mon, 27 Mar 2017 18:36:41 GMT
recorded_at: Thu, 06 Apr 2017 01:50:16 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:36:35 GMT
- Thu, 06 Apr 2017 01:50:05 GMT
Server:
- Apache/2.4.6 (Red Hat Enterprise Linux)
X-Frame-Options:
......
Cache-Control:
- max-age=0, private, must-revalidate
X-Request-Id:
- 2daeb4a0-ae26-40f8-b6b2-099a20e3e723
- 2688d955-607a-4247-95fd-878bdd1f291d
X-Runtime:
- '0.060023'
- '0.173960'
X-Powered-By:
- Phusion Passenger 4.0.18
Etag:
- '"889d59438c9dbada3bd3c0b258f7a13e-gzip"'
- '"442ba11ec0703ed2d5c48129111cd2c5-gzip"'
Status:
- 200 OK
Vary:
......
Content-Type:
- application/json; charset=utf-8
Set-Cookie:
- _session_id=a253affaddc12a3273ed9f8eb77765c7; path=/; secure; HttpOnly
- _session_id=e1cdeb745511512db66fc5b0f82f9fe0; 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:36:07 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:36:42 GMT
recorded_at: Thu, 06 Apr 2017 01:50:16 GMT
- request:
method: get
uri: https://admin:changeme@devel.example.com:50083/api/organizations/3/hosts?per_page=1
uri: https://admin:changeme@devel.example.com:50083/api/organizations/3/hosts?per_page=1&search
body:
encoding: US-ASCII
string: ''
......
message: OK
headers:
Date:
- Mon, 27 Mar 2017 18:36:35 GMT
- Thu, 06 Apr 2017 01:50:05 GMT
Server:
- Apache/2.4.6 (Red Hat Enterprise Linux)
X-Frame-Options:
......
Cache-Control:
- max-age=0, private, must-revalidate
X-Request-Id:
- 69122023-1a01-4646-a7e0-c6dea28580da
- ad83b658-d29c-4645-9f81-675f0f336ba4
X-Runtime:
- '0.122034'
- '0.226090'
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=f4e266c3d1ec445e7e7d5b6527a5844f; path=/; secure; HttpOnly
- _session_id=9caa00c7fc5b9025a867494a2a97533a; 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:36:42 GMT
recorded_at: Thu, 06 Apr 2017 01:50:16 GMT
- request:
method: get
uri: https://admin:changeme@devel.example.com:50083/api/organizations/3/hosts?page=1&per_page=20
uri: https://admin:changeme@devel.example.com:50083/api/organizations/3/hosts?page=1&per_page=20&search
body:
encoding: US-ASCII
string: ''
......
message: OK
headers:
Date:
- Mon, 27 Mar 2017 18:36:36 GMT
- Thu, 06 Apr 2017 01:50:05 GMT
Server:
- Apache/2.4.6 (Red Hat Enterprise Linux)
X-Frame-Options:
......
Cache-Control:
- max-age=0, private, must-revalidate
X-Request-Id:
- a5e58060-6e40-4caa-8b6a-b55dc38bae4b
- eca858a1-1079-48cd-8a22-c20453995efe
X-Runtime:
- '0.155206'
- '0.220000'
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=9578f1339c01167f6c6129a91fff314d; path=/; secure; HttpOnly
- _session_id=49f9ba8e1ef2f8c3f4387a4f335db9eb; 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:36:42 GMT
recorded_at: Thu, 06 Apr 2017 01:50:16 GMT
- request:
method: get
uri: https://admin:changeme@devel.example.com:50083/katello/api/organizations/3/environments?per_page=999999
......
message: OK
headers:
Date:
- Mon, 27 Mar 2017 18:36:36 GMT
- Thu, 06 Apr 2017 01:50:05 GMT
Server:
- Apache/2.4.6 (Red Hat Enterprise Linux)
X-Frame-Options:
......
Cache-Control:
- max-age=0, private, must-revalidate
X-Request-Id:
- 4436fcd9-5023-4cfb-9bed-3c42d2380ae9
- f10c1ae7-face-4be2-a395-4fb93c3b4bf3
X-Runtime:
- '0.156618'
- '0.154430'
X-Powered-By:
- Phusion Passenger 4.0.18
Etag:
......
Content-Type:
- application/json; charset=utf-8
Set-Cookie:
- _session_id=316f0e68644dc7e289ae9cd6d4a199ab; path=/; secure; HttpOnly
- _session_id=63eeb7dcfec5ef66c4d499a26cebfc92; path=/; secure; HttpOnly
body:
encoding: ASCII-8BIT
string: '{"total":5,"subtotal":5,"page":1,"per_page":"999999","error":null,"search":null,"sort":{"by":null,"order":null},"results":[{"library":false,"id":4,"name":"Test","label":"Test","description":"Test,
......
'
http_version:
recorded_at: Mon, 27 Mar 2017 18:36:42 GMT
recorded_at: Thu, 06 Apr 2017 01:50:17 GMT
- request:
method: get
uri: https://admin:changeme@devel.example.com:50083/katello/api/organizations/3/content_views?per_page=999999
......
message: OK
headers:
Date:
- Mon, 27 Mar 2017 18:36:36 GMT
- Thu, 06 Apr 2017 01:50:05 GMT
Server:
- Apache/2.4.6 (Red Hat Enterprise Linux)
X-Frame-Options:
......
Cache-Control:
- max-age=0, private, must-revalidate
X-Request-Id:
- 4e49de78-5a77-4bdb-ac8b-e689d4bca645
- 84568f2a-2203-4d66-a3d4-910064af829d
X-Runtime:
- '0.098444'
- '0.159389'
X-Powered-By:
- Phusion Passenger 4.0.18
Etag:
......
Content-Type:
- application/json; charset=utf-8
Set-Cookie:
- _session_id=05361998ba67fc8d543bb9a818ba5acf; path=/; secure; HttpOnly
- _session_id=7e36db1d957f51b33edf044b2864d716; path=/; secure; HttpOnly
body:
encoding: ASCII-8BIT
string: '{"total":2,"subtotal":2,"page":1,"per_page":"999999","error":null,"search":null,"sort":{"by":null,"order":null},"results":[{"composite":false,"repository_ids":[],"component_ids":[],"default":false,"next_version":2,"id":3,"name":"Test
......
'
http_version:
recorded_at: Mon, 27 Mar 2017 18:36:42 GMT
recorded_at: Thu, 06 Apr 2017 01:50:17 GMT
- request:
method: put
uri: https://admin:changeme@devel.example.com:50083/api/hosts/6
......
message: OK
headers:
Date:
- Mon, 27 Mar 2017 18:36:36 GMT
- Thu, 06 Apr 2017 01:50:06 GMT
Server:
- Apache/2.4.6 (Red Hat Enterprise Linux)
X-Frame-Options:
......
Cache-Control:
- max-age=0, private, must-revalidate
X-Request-Id:
- 2a43c223-7eed-4cc3-9580-e2c3894513e7
- d850fad9-9002-4ed3-9c46-0527080652db
X-Runtime:
- '0.708308'
- '0.740959'
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=a769fa5a1d340f055f2ae800a8bab226; path=/; secure; HttpOnly
- _session_id=4002523659ded8952ecec6b5d8abd228; path=/; secure; HttpOnly
- request_method=PUT; path=/
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:36:43 GMT
recorded_at: Thu, 06 Apr 2017 01:50:18 GMT
- request:
method: get
uri: https://admin:changeme@devel.example.com:50083/rhsm/consumers/2b996a62-2be7-4cb6-adaa-0933a69cb9bc
......
message: OK
headers:
Date:
- Mon, 27 Mar 2017 18:36:37 GMT
- Thu, 06 Apr 2017 01:50:06 GMT
Server:
- Apache/2.4.6 (Red Hat Enterprise Linux)
X-Frame-Options:
......
Cache-Control:
- max-age=0, private, must-revalidate
X-Request-Id:
- 2cb9da32-4595-4781-9226-110c995cdfd4
- 23a18dfa-1060-466e-a446-2e8987161bcd
X-Runtime:
- '0.115915'
- '0.113758'
X-Powered-By:
- Phusion Passenger 4.0.18
Etag:
- '"4efe3563b4ad8e5243099dd9878081de-gzip"'
- '"f5927d87761a928ee8dbf4ec5f476605-gzip"'
Status:
- 200 OK
Vary:
- Accept-Encoding
Content-Length:
- '3312'
- '3311'
Content-Type:
- application/json; charset=utf-8
Set-Cookie:
- _session_id=f3c8925eee3a9a9c9fe72ff6ff0af56a; path=/; secure; HttpOnly
- _session_id=22c768c83287f7a814fbfa170a690b8a; path=/; secure; HttpOnly
body:
encoding: ASCII-8BIT
string: '{"id":"ff80808158bbd8b50158bbe3e86203f1","uuid":"2b996a62-2be7-4cb6-adaa-0933a69cb9bc","name":"testvm","username":"foreman_admin","entitlementStatus":"valid","serviceLevel":"","releaseVer":{"releaseVer":null},"idCert":{"key":"-----BEGIN
......
Corporation","href":"/owners/testcorp"},"environment":{"owner":{"id":"ff80808158bbd8b50158bbe26aef03c2","key":"testcorp","displayName":"Test
Corporation","href":"/owners/testcorp"},"name":"Library","description":null,"id":"2","environmentContent":[{"id":"ff8080815adcc9a9015b110dba7b0e0d","contentId":"1490639748543","enabled":null,"created":"2017-03-27T18:36:04.091+0000","updated":"2017-03-27T18:36:04.091+0000"}],"created":"2016-12-01T19:35:27.852+0000","updated":"2016-12-01T19:35:27.852+0000"},"entitlementCount":1,"facts":{"virt.uuid":"Test
Corporation/testvm","network.hostname":"testvm","distribution.name":"RHEL","distribution.version":"7Server","system.certificate_version":"3.2","_timestamp":"2016-12-01T19:37:05+00:00","uname.machine":"x86_64","cpu.cpu_socket(s)":"4","memory.memtotal":"4GB","cpu.core(s)_per_socket":"1","cpu.cpu(s)":"1","virt.is_guest":"true"},"lastCheckin":null,"installedProducts":[{"id":"ff80808158bbd8b50158bbe41f0e03f7","productId":"69","productName":"Red
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"}],"canActivate":false,"guestIds":[],"capabilities":[],"hypervisorId":null,"contentTags":[],"autoheal":true,"dev":false,"href":"/consumers/2b996a62-2be7-4cb6-adaa-0933a69cb9bc","created":"2016-12-01T19:37:05.378+0000","updated":"2017-03-27T18:36:37.186+0000"}'
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"}],"canActivate":false,"guestIds":[],"capabilities":[],"hypervisorId":null,"contentTags":[],"autoheal":true,"dev":false,"href":"/consumers/2b996a62-2be7-4cb6-adaa-0933a69cb9bc","created":"2016-12-01T19:37:05.378+0000","updated":"2017-03-27T18:36:40.118+0000"}'
http_version:
recorded_at: Mon, 27 Mar 2017 18:36:43 GMT
recorded_at: Thu, 06 Apr 2017 01:50:18 GMT
- request:
method: put
uri: https://admin:changeme@devel.example.com:50083/rhsm/consumers/2b996a62-2be7-4cb6-adaa-0933a69cb9bc
......
message: Forbidden
headers:
Date:
- Mon, 27 Mar 2017 18:36:37 GMT
- Thu, 06 Apr 2017 01:50:06 GMT
Server:
- Apache/2.4.6 (Red Hat Enterprise Linux)
X-Frame-Options:
......
Cache-Control:
- no-cache
X-Request-Id:
- 9641c5ab-f81b-4d17-b6a8-c1ca9d4e9c8b
- ae0c9817-3046-442a-aadc-32491e63fb9e
X-Runtime:
- '0.015887'
- '0.013205'
X-Powered-By:
- Phusion Passenger 4.0.18
Status:
......
Content-Type:
- application/json; charset=utf-8
Set-Cookie:
- _session_id=9787154fe7b316ce7f3617244f2ff598; path=/; secure; HttpOnly
- _session_id=8526685030fedfded9c567186c3f5d34; path=/; secure; HttpOnly
- request_method=PUT; path=/
Transfer-Encoding:
- chunked
......
encoding: UTF-8
string: '{"displayMessage":"Access denied","errors":["Access denied"]}'
http_version:
recorded_at: Mon, 27 Mar 2017 18:36:43 GMT
recorded_at: Thu, 06 Apr 2017 01:50:18 GMT
- request:
method: get
uri: https://admin:changeme@devel.example.com:50083/api/hosts/6/subscriptions?full_results=true
......
message: OK
headers:
Date:
- Mon, 27 Mar 2017 18:36:37 GMT
- Thu, 06 Apr 2017 01:50:06 GMT
Server:
- Apache/2.4.6 (Red Hat Enterprise Linux)
X-Frame-Options:
......
Cache-Control:
- max-age=0, private, must-revalidate
X-Request-Id:
- f57ef53b-dc74-432b-8ddc-86ef268c6caf
- 8a229268-b800-45f4-9906-5fb37e3faafd
X-Runtime:
- '0.238194'
- '0.334984'
X-Powered-By:
- Phusion Passenger 4.0.18
Etag:
......
Content-Type:
- application/json; charset=utf-8
Set-Cookie:
- _session_id=265d11e7612e6602a1303b92a3dcdf2f; path=/; secure; HttpOnly
- _session_id=11620dfa9236816df38ea409b86614d4; 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:36:43 GMT
recorded_at: Thu, 06 Apr 2017 01:50:18 GMT
- request:
method: put
uri: https://admin:changeme@devel.example.com:50083/api/hosts/6/subscriptions/remove_subscriptions
......
message: OK
headers:
Date:
- Mon, 27 Mar 2017 18:36:37 GMT
- Thu, 06 Apr 2017 01:50:07 GMT
Server:
- Apache/2.4.6 (Red Hat Enterprise Linux)
X-Frame-Options:
......
Cache-Control:
- max-age=0, private, must-revalidate
X-Request-Id:
- bf07fc28-7ae2-43ea-9972-1aae4df85a89
- 8bd909a8-6ea9-480c-a45a-f4c9b5985c13
X-Runtime:
- '1.034431'
- '1.532547'
X-Powered-By:
- Phusion Passenger 4.0.18
Etag:
......
Content-Type:
- application/json; charset=utf-8
Set-Cookie:
- _session_id=79f14dea7a8e85773c5ff56f1dbf4b5c; path=/; secure; HttpOnly
- _session_id=24ad07fff077bc2e3c835502a33edb20; path=/; secure; HttpOnly
- request_method=PUT; path=/
body:
encoding: ASCII-8BIT
......
'
http_version:
recorded_at: Mon, 27 Mar 2017 18:36:44 GMT
recorded_at: Thu, 06 Apr 2017 01:50:20 GMT
- request:
method: get
uri: https://admin:changeme@devel.example.com:50083/katello/api/organizations/3/subscriptions?full_results=true
......
message: OK
headers:
Date:
- Mon, 27 Mar 2017 18:36:38 GMT
- Thu, 06 Apr 2017 01:50:08 GMT
Server:
- Apache/2.4.6 (Red Hat Enterprise Linux)
X-Frame-Options:
......
Cache-Control:
- max-age=0, private, must-revalidate
X-Request-Id:
- 049ca970-dbc1-4ab0-b70c-03bb387fe7e9
- e4702a3c-6aa7-4f54-ac6c-bf1227ab957f
X-Runtime:
- '0.662522'
- '0.500178'
X-Powered-By:
- Phusion Passenger 4.0.18
Etag:
......
Content-Type:
- application/json; charset=utf-8
Set-Cookie:
- _session_id=bb82f2e4cae86e706a66c6e6614d1cdb; path=/; secure; HttpOnly
- _session_id=8631b23205fb1d381940c3e487231710; path=/; secure; HttpOnly
body:
encoding: ASCII-8BIT
string: '{"organization":{},"total":3,"subtotal":3,"page":1,"per_page":20,"error":null,"search":null,"sort":{"by":null,"order":null},"results":[{"id":19,"cp_id":"ff80808158bbd8b50158bbe4a4a204a3","subscription_id":13,"name":"Red
......
'
http_version:
recorded_at: Mon, 27 Mar 2017 18:36:45 GMT
recorded_at: Thu, 06 Apr 2017 01:50:20 GMT
- request:
method: put
uri: https://admin:changeme@devel.example.com:50083/api/hosts/6/subscriptions/add_subscriptions
......
message: OK
headers:
Date:
- Mon, 27 Mar 2017 18:36:39 GMT
- Thu, 06 Apr 2017 01:50:09 GMT
Server:
- Apache/2.4.6 (Red Hat Enterprise Linux)
X-Frame-Options:
......
Cache-Control:
- max-age=0, private, must-revalidate
X-Request-Id:
- 45f77e95-8937-4b51-a60f-a39d133c58f1
- 55ab2392-0783-4a70-b563-1ec7dbb3d1ec
X-Runtime:
- '1.457457'
- '0.948460'
X-Powered-By:
- Phusion Passenger 4.0.18
Etag:
......
Content-Type:
- application/json; charset=utf-8
Set-Cookie:
- _session_id=ba38252f907d4fd64ce0a175adb0163f; path=/; secure; HttpOnly
- _session_id=cfcc9843ed4855e71756126523e65203; path=/; secure; HttpOnly
- request_method=PUT; path=/
body:
encoding: ASCII-8BIT
......
'
http_version:
recorded_at: Mon, 27 Mar 2017 18:36:47 GMT
recorded_at: Thu, 06 Apr 2017 01:50:21 GMT
- request:
method: put
uri: https://admin:changeme@devel.example.com:50083/api/hosts/7
......
message: OK
headers:
Date:
- Mon, 27 Mar 2017 18:36:40 GMT
- Thu, 06 Apr 2017 01:50:10 GMT
Server:
- Apache/2.4.6 (Red Hat Enterprise Linux)
X-Frame-Options:
......
Cache-Control:
- max-age=0, private, must-revalidate
X-Request-Id:
- 565179ca-7f37-4a84-bf5f-f5c5b848f029
- 80bab39b-ceba-4dce-acbe-40f606e17871
X-Runtime:
- '1.105027'
- '0.725517'
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=7fd12a6fda65b12ed7eee98b946f25e4; path=/; secure; HttpOnly
- _session_id=c363dce6fbdb0b9dd9b27d1a5d3aef76; path=/; secure; HttpOnly
- request_method=PUT; path=/
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:36:48 GMT
recorded_at: Thu, 06 Apr 2017 01:50:22 GMT
- request:
method: get
uri: https://admin:changeme@devel.example.com:50083/rhsm/consumers/22955fb7-7b12-4db8-83be-6443ba725d77
......
message: OK
headers:
Date:
- Mon, 27 Mar 2017 18:36:42 GMT
- Thu, 06 Apr 2017 01:50:11 GMT
Server:
- Apache/2.4.6 (Red Hat Enterprise Linux)
X-Frame-Options:
......
Cache-Control:
- max-age=0, private, must-revalidate
X-Request-Id:
- 8a0508c2-ed48-4177-9449-32445a8940f3
- 5969a3bc-875a-40d0-8d37-6513202435c6
X-Runtime:
- '0.103003'
- '0.089622'
X-Powered-By:
- Phusion Passenger 4.0.18
Etag:
- '"8a61317cc30599121b89abb880ffdeb5-gzip"'
- '"1e3867cd496bb90e76b074ab3f8dfc0a-gzip"'
Status:
- 200 OK
Vary:
- Accept-Encoding
Content-Length:
- '3324'
- '3334'
Content-Type:
- application/json; charset=utf-8
Set-Cookie:
- _session_id=25f6f6110ff8027d893ddc49eabf610b; path=/; secure; HttpOnly
- _session_id=a3af49634e09f59cabe33f23a3105cc6; path=/; secure; HttpOnly
body:
encoding: ASCII-8BIT
string: '{"id":"ff80808158bbd8b50158bbe52eeb058f","uuid":"22955fb7-7b12-4db8-83be-6443ba725d77","name":"testphysical","username":"foreman_admin","entitlementStatus":"valid","serviceLevel":"","releaseVer":{"releaseVer":null},"idCert":{"key":"-----BEGIN
......
Corporation","href":"/owners/testcorp"},"environment":{"owner":{"id":"ff80808158bbd8b50158bbe26aef03c2","key":"testcorp","displayName":"Test
Corporation","href":"/owners/testcorp"},"name":"Library","description":null,"id":"2","environmentContent":[{"id":"ff8080815adcc9a9015b110dba7b0e0d","contentId":"1490639748543","enabled":null,"created":"2017-03-27T18:36:04.091+0000","updated":"2017-03-27T18:36:04.091+0000"}],"created":"2016-12-01T19:35:27.852+0000","updated":"2016-12-01T19:35:27.852+0000"},"entitlementCount":1,"facts":{"virt.uuid":"Test
Corporation/testphysical","network.hostname":"testphysical","distribution.name":"RHEL","distribution.version":"7Server","system.certificate_version":"3.2","_timestamp":"2016-12-01T19:38:28+00:00","uname.machine":"x86_64","cpu.cpu_socket(s)":"8","memory.memtotal":"4GB","cpu.core(s)_per_socket":"1","cpu.cpu(s)":"1","virt.is_guest":"true"},"lastCheckin":null,"installedProducts":[{"id":"ff80808158bbd8b50158bbe53a530599","productId":"69","productName":"Red
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"}],"canActivate":false,"guestIds":[],"capabilities":[],"hypervisorId":null,"contentTags":[],"autoheal":true,"dev":false,"href":"/consumers/22955fb7-7b12-4db8-83be-6443ba725d77","created":"2016-12-01T19:38:28.971+0000","updated":"2017-03-27T18:36:41.832+0000"}'
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"}],"canActivate":false,"guestIds":[],"capabilities":[],"hypervisorId":null,"contentTags":[],"autoheal":true,"dev":false,"href":"/consumers/22955fb7-7b12-4db8-83be-6443ba725d77","created":"2016-12-01T19:38:28.971+0000","updated":"2017-04-06T01:50:10.923+0000"}'
http_version:
recorded_at: Mon, 27 Mar 2017 18:36:48 GMT
recorded_at: Thu, 06 Apr 2017 01:50:22 GMT
- request:
method: put
uri: https://admin:changeme@devel.example.com:50083/rhsm/consumers/22955fb7-7b12-4db8-83be-6443ba725d77
......
message: Forbidden
headers:
Date:
- Mon, 27 Mar 2017 18:36:42 GMT
- Thu, 06 Apr 2017 01:50:11 GMT
Server:
- Apache/2.4.6 (Red Hat Enterprise Linux)
X-Frame-Options:
......
Cache-Control:
- no-cache
X-Request-Id:
- 4b5a986c-72b4-4b4e-9d04-84b0f78a74d8
- ab001cf6-84bb-4d9c-9195-f8a20075b3ec
X-Runtime:
- '0.014309'
- '0.014416'
X-Powered-By:
- Phusion Passenger 4.0.18
Status:
......
Content-Type:
- application/json; charset=utf-8
Set-Cookie:
- _session_id=3000dd52ce536decf70a889b215e5007; path=/; secure; HttpOnly
- _session_id=0fa5c5cbe1d136c8ac34b22917d871c6; path=/; secure; HttpOnly
- request_method=PUT; path=/
Transfer-Encoding:
- chunked
......
encoding: UTF-8
string: '{"displayMessage":"Access denied","errors":["Access denied"]}'
http_version:
recorded_at: Mon, 27 Mar 2017 18:36:48 GMT
recorded_at: Thu, 06 Apr 2017 01:50:22 GMT
- request:
method: get
uri: https://admin:changeme@devel.example.com:50083/api/hosts/7/subscriptions?full_results=true
......
message: OK
headers:
Date:
- Mon, 27 Mar 2017 18:36:42 GMT
- Thu, 06 Apr 2017 01:50:11 GMT
Server:
- Apache/2.4.6 (Red Hat Enterprise Linux)
X-Frame-Options:
......
Cache-Control:
- max-age=0, private, must-revalidate
X-Request-Id:
- e7580e5f-9241-47d8-b37a-126b64bcca0b
- ea69c271-e2ce-448d-9783-c48041760055
X-Runtime:
- '0.226982'
- '0.248185'
X-Powered-By:
- Phusion Passenger 4.0.18
Etag:
......
Content-Type:
- application/json; charset=utf-8
Set-Cookie:
- _session_id=fa7c591f9bc1b67765733a90c9801215; path=/; secure; HttpOnly
- _session_id=ffea29ee07c8c15518c8c2229f4a6bf9; 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:36:48 GMT
recorded_at: Thu, 06 Apr 2017 01:50:22 GMT
- request:
method: put
uri: https://admin:changeme@devel.example.com:50083/api/hosts/7/subscriptions/remove_subscriptions
......
message: OK
headers:
Date:
- Mon, 27 Mar 2017 18:36:42 GMT
- Thu, 06 Apr 2017 01:50:11 GMT
Server:
- Apache/2.4.6 (Red Hat Enterprise Linux)
X-Frame-Options:
......
Cache-Control:
- max-age=0, private, must-revalidate
X-Request-Id:
- 0dfee00c-50ad-4b27-a5c7-6ca4245c59d6
- 10f44196-a0dc-4e50-a1f6-bc5362c26ad9
X-Runtime:
- '1.020586'
- '1.079689'
X-Powered-By:
- Phusion Passenger 4.0.18
Etag:
......
Content-Type:
- application/json; charset=utf-8
Set-Cookie:
- _session_id=e24eb691a03d5719b1317ef4fe33e87f; path=/; secure; HttpOnly
- _session_id=7191d59b1b5c2789bdb18c39ae10846a; path=/; secure; HttpOnly
- request_method=PUT; path=/
body:
encoding: ASCII-8BIT
......
'
http_version:
recorded_at: Mon, 27 Mar 2017 18:36:49 GMT
recorded_at: Thu, 06 Apr 2017 01:50:23 GMT
- request:
method: get
uri: https://admin:changeme@devel.example.com:50083/katello/api/organizations/3/subscriptions?full_results=true
......
message: OK
headers:
Date:
- Mon, 27 Mar 2017 18:36:43 GMT
- Thu, 06 Apr 2017 01:50:12 GMT
Server:
- Apache/2.4.6 (Red Hat Enterprise Linux)
X-Frame-Options:
......
Cache-Control:
- max-age=0, private, must-revalidate
X-Request-Id:
- d5fad3d3-1fcd-4cbc-a11d-0e2015ec2edf
- 554c64d9-356e-4596-8f52-a4b5fdbf6878
X-Runtime:
- '0.607675'
- '0.527691'
X-Powered-By:
- Phusion Passenger 4.0.18
Etag:
......
Content-Type:
- application/json; charset=utf-8
Set-Cookie:
- _session_id=68cce5218c43922f76a63075e807971d; path=/; secure; HttpOnly
- _session_id=bb42410c2e6668185f351f7f8fc5dcc7; path=/; secure; HttpOnly
body:
encoding: ASCII-8BIT
string: '{"organization":{},"total":3,"subtotal":3,"page":1,"per_page":20,"error":null,"search":null,"sort":{"by":null,"order":null},"results":[{"id":19,"cp_id":"ff80808158bbd8b50158bbe4a4a204a3","subscription_id":13,"name":"Red
......
'
http_version:
recorded_at: Mon, 27 Mar 2017 18:36:50 GMT
recorded_at: Thu, 06 Apr 2017 01:50:24 GMT
- request:
method: put
uri: https://admin:changeme@devel.example.com:50083/api/hosts/7/subscriptions/add_subscriptions
......
message: OK
headers:
Date:
- Mon, 27 Mar 2017 18:36:44 GMT
- Thu, 06 Apr 2017 01:50:13 GMT
Server:
- Apache/2.4.6 (Red Hat Enterprise Linux)
X-Frame-Options:
......
Cache-Control:
- max-age=0, private, must-revalidate
X-Request-Id:
- d17b8b92-4602-4a52-82eb-ac0b44621476
- ac073c1b-ef7f-45b7-a133-c3062ddeb858
X-Runtime:
- '1.401255'
- '1.027600'
X-Powered-By:
- Phusion Passenger 4.0.18
Etag:
......
Content-Type:
- application/json; charset=utf-8
Set-Cookie:
- _session_id=6179f5c0f1ece401ab8fe181be3e0fd3; path=/; secure; HttpOnly
- _session_id=9a98f2caf17129717786d6aa997d5595; path=/; secure; HttpOnly
- request_method=PUT; path=/
body:
encoding: ASCII-8BIT
......
'
http_version:
recorded_at: Mon, 27 Mar 2017 18:36:51 GMT
recorded_at: Thu, 06 Apr 2017 01:50:25 GMT
recorded_with: VCR 3.0.3

Also available in: Unified diff