Revision d9498f54
Added by Thomas McKay over 7 years ago
test/fixtures/vcr_cassettes/resources/content_hosts_import/create_and_update.yml | ||
---|---|---|
{"id":15,"name":"host00001","content_view":"Default Organization View","content_view_id":null,"environment":"Library"}
|
||
http_version:
|
||
recorded_at: Tue, 16 Aug 2016 18:52:06 GMT
|
||
- request:
|
||
method: get
|
||
uri: http://admin:changeme@katello:3000/api/hosts/15/subscriptions
|
||
body:
|
||
encoding: US-ASCII
|
||
string: ''
|
||
headers:
|
||
Accept:
|
||
- application/json;version=2
|
||
Accept-Encoding:
|
||
- gzip, deflate
|
||
Content-Type:
|
||
- application/json
|
||
User-Agent:
|
||
- Ruby
|
||
response:
|
||
status:
|
||
code: 200
|
||
message: OK
|
||
headers:
|
||
X-Frame-Options:
|
||
- SAMEORIGIN
|
||
X-Xss-Protection:
|
||
- 1; mode=block
|
||
X-Content-Type-Options:
|
||
- nosniff
|
||
Foreman-Version:
|
||
- 1.13.0-develop
|
||
Foreman-Api-Version:
|
||
- '2'
|
||
Content-Type:
|
||
- application/json; charset=utf-8
|
||
Apipie-Checksum:
|
||
- e98945ba1db6bdbb4c25ce4988912344
|
||
Etag:
|
||
- W/"28f980ca6d7d7d8bdbe90747a65a208f"
|
||
Cache-Control:
|
||
- max-age=0, private, must-revalidate
|
||
Set-Cookie:
|
||
- _session_id=ecc8b173ae72fd2f63d0a4b6d922e758; path=/; HttpOnly
|
||
X-Request-Id:
|
||
- 313a45c7-c6bd-425c-9f34-86eeedd98f52
|
||
X-Runtime:
|
||
- '0.474664'
|
||
Transfer-Encoding:
|
||
- chunked
|
||
body:
|
||
encoding: UTF-8
|
||
string: |
|
||
{"total":0,"subtotal":0,"page":1,"per_page":0,"error":null,"search":null,"sort":{"by":null,"order":null},"results":[]}
|
||
http_version:
|
||
recorded_at: Tue, 16 Aug 2016 18:52:07 GMT
|
||
- request:
|
||
method: put
|
||
uri: http://admin:changeme@katello:3000/api/hosts/15
|
||
... | ... | |
18:52:15 UTC","registered_through":null,"activation_keys":[],"compliance_reasons":[],"virtual_host":null,"virtual_guests":[],"installed_products":[]},"content_host_id":16,"interfaces":[{"id":17,"name":"host00001","ip":null,"mac":null,"identifier":null,"primary":true,"provision":true,"type":"interface"}],"puppetclasses":[],"config_groups":[],"parameters":[],"all_parameters":[],"all_puppetclasses":[],"facts":{"virt":null,"distribution":null,"uname":null,"memory":null,"cpu":null,"network":null,"system":null,"_timestamp":"2016-08-16T14:52:16-04:00","cpu::cpu(s)":"1","virt::is_guest":"false","distribution::version":"6.4","distribution::name":"RHEL","uname::machine":"x86_64","memory::memtotal":"4","cpu::cpu_socket(s)":"1","cpu::core(s)_per_socket":"1","network::hostname":"host00001","system::certificate_version":"3.2"},"content_source_id":null,"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}}'
|
||
http_version:
|
||
recorded_at: Tue, 16 Aug 2016 18:52:19 GMT
|
||
- request:
|
||
method: get
|
||
uri: http://admin:changeme@katello:3000/api/hosts/15/subscriptions
|
||
body:
|
||
encoding: US-ASCII
|
||
string: ''
|
||
headers:
|
||
Accept:
|
||
- application/json;version=2
|
||
Accept-Encoding:
|
||
- gzip, deflate
|
||
Content-Type:
|
||
- application/json
|
||
User-Agent:
|
||
- Ruby
|
||
response:
|
||
status:
|
||
code: 200
|
||
message: OK
|
||
headers:
|
||
X-Frame-Options:
|
||
- SAMEORIGIN
|
||
X-Xss-Protection:
|
||
- 1; mode=block
|
||
X-Content-Type-Options:
|
||
- nosniff
|
||
Foreman-Version:
|
||
- 1.13.0-develop
|
||
Foreman-Api-Version:
|
||
- '2'
|
||
Content-Type:
|
||
- application/json; charset=utf-8
|
||
Apipie-Checksum:
|
||
- e98945ba1db6bdbb4c25ce4988912344
|
||
Etag:
|
||
- W/"28f980ca6d7d7d8bdbe90747a65a208f"
|
||
Cache-Control:
|
||
- max-age=0, private, must-revalidate
|
||
Set-Cookie:
|
||
- _session_id=2199db30517fd3753fe5c08089272a5a; path=/; HttpOnly
|
||
X-Request-Id:
|
||
- f3569a11-6d91-44de-89d4-f870517dc8e7
|
||
X-Runtime:
|
||
- '0.319119'
|
||
Transfer-Encoding:
|
||
- chunked
|
||
body:
|
||
encoding: UTF-8
|
||
string: |
|
||
{"total":0,"subtotal":0,"page":1,"per_page":0,"error":null,"search":null,"sort":{"by":null,"order":null},"results":[]}
|
||
http_version:
|
||
recorded_at: Tue, 16 Aug 2016 18:52:20 GMT
|
||
- request:
|
||
method: get
|
||
uri: http://admin:changeme@katello:3000/api/hosts?page=1&per_page=20&search=name=host00001
|
||
... | ... | |
recorded_at: Tue, 16 Aug 2016 19:25:14 GMT
|
||
- request:
|
||
method: get
|
||
uri: http://admin:changeme@katello:3000/api/status
|
||
uri: http://admin:changeme@katello:3000/api/organizations/4/hosts?per_page=1
|
||
body:
|
||
encoding: US-ASCII
|
||
string: ''
|
||
headers:
|
||
Accept-Encoding:
|
||
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
||
Accept:
|
||
- '*/*'
|
||
- application/json;version=2
|
||
Accept-Encoding:
|
||
- gzip, deflate
|
||
Content-Type:
|
||
- application/json
|
||
User-Agent:
|
||
- Ruby
|
||
response:
|
||
... | ... | |
Apipie-Checksum:
|
||
- e98945ba1db6bdbb4c25ce4988912344
|
||
Etag:
|
||
- W/"f536fd8685b76bb26a943d472593c93e"
|
||
- W/"fbf1fa8a986e4e3334253da1af35ebb9"
|
||
Cache-Control:
|
||
- max-age=0, private, must-revalidate
|
||
Set-Cookie:
|
||
- _session_id=0ae902524c2faa68c29f3085d9fa4e12; path=/; HttpOnly
|
||
- _session_id=3202f577ed3c7f5de099eb27c25b14a1; path=/; HttpOnly
|
||
X-Request-Id:
|
||
- edc32150-a1e0-43c7-beed-960c16b6b935
|
||
- 859dd154-91f0-4a59-b61f-025c591828dc
|
||
X-Runtime:
|
||
- '0.227081'
|
||
- '1.382861'
|
||
Transfer-Encoding:
|
||
- chunked
|
||
body:
|
||
encoding: UTF-8
|
||
string: '{"result":"ok","status":200,"version":"1.13.0-develop","api_version":2}'
|
||
string: |
|
||
{
|
||
"total": 0,
|
||
"subtotal": 0,
|
||
"page": 1,
|
||
"per_page": 1,
|
||
"search": null,
|
||
"sort": {
|
||
"by": null,
|
||
"order": null
|
||
},
|
||
"results": []
|
||
}
|
||
http_version:
|
||
recorded_at: Tue, 16 Aug 2016 19:37:58 GMT
|
||
recorded_at: Tue, 16 Aug 2016 19:38:00 GMT
|
||
- request:
|
||
method: get
|
||
uri: http://admin:changeme@katello:3000/api/v2/plugins
|
||
uri: http://admin:changeme@katello:3000/api/organizations/4/hosts?page=1&per_page=20
|
||
body:
|
||
encoding: US-ASCII
|
||
string: ''
|
||
headers:
|
||
Accept-Encoding:
|
||
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
||
Accept:
|
||
- '*/*'
|
||
- application/json;version=2
|
||
Accept-Encoding:
|
||
- gzip, deflate
|
||
Content-Type:
|
||
- application/json
|
||
User-Agent:
|
||
- Ruby
|
||
response:
|
||
... | ... | |
Apipie-Checksum:
|
||
- e98945ba1db6bdbb4c25ce4988912344
|
||
Etag:
|
||
- W/"dc4a8351c6668134273bfe99879f93b1"
|
||
- W/"6e37b0ba5b6460980307fe3763599b4d"
|
||
Cache-Control:
|
||
- max-age=0, private, must-revalidate
|
||
Set-Cookie:
|
||
- _session_id=3be0856b990278152fb87b67e0de00d4; path=/; HttpOnly
|
||
- _session_id=9c638981ad08331c8054b53477905739; path=/; HttpOnly
|
||
X-Request-Id:
|
||
- 5129e391-9ba1-48cc-9e0c-347c7dba7fae
|
||
- 2756ad68-e6b4-4578-90b6-59893f3d0c06
|
||
X-Runtime:
|
||
- '0.199887'
|
||
- '0.266310'
|
||
Transfer-Encoding:
|
||
- chunked
|
||
body:
|
||
encoding: ASCII-8BIT
|
||
string: !binary |-
|
||
ewogICJ0b3RhbCI6IDQsCiAgInN1YnRvdGFsIjogNCwKICAicGFnZSI6IDEs
|
||
CiAgInBlcl9wYWdlIjogMjAsCiAgInNlYXJjaCI6IG51bGwsCiAgInNvcnQi
|
||
OiB7CiAgICAiYnkiOiBudWxsLAogICAgIm9yZGVyIjogbnVsbAogIH0sCiAg
|
||
InJlc3VsdHMiOiBbeyJpZCI6ImZvcmVtYW4tdGFza3MiLCJuYW1lIjoiZm9y
|
||
ZW1hbi10YXNrcyIsImF1dGhvciI6Ikl2YW4gTmXEjWFzIiwiZGVzY3JpcHRp
|
||
b24iOiJUaGUgZ29hbCBvZiB0aGlzIHBsdWdpbiBpcyB0byB1bmlmeSB0aGUg
|
||
d2F5IG9mIHNob3dpbmcgdGFzayBzdGF0dXNlcyBhY3Jvc3MgdGhlIEZvcmVt
|
||
YW4gaW5zdGFuY2UuXG5JdCBkZWZpbmVzIFRhc2sgbW9kZWwgZm9yIGtlZXBp
|
||
bmcgdGhlIGluZm9ybWF0aW9uIGFib3V0IHRoZSB0YXNrcyBhbmQgTG9jayBm
|
||
b3IgYXNzaWduaW5nIHRoZSB0YXNrc1xudG8gcmVzb3VyY2VzLiBUaGUgbG9j
|
||
a2luZyBhbGxvd3MgZGVhbGluZyB3aXRoIHByZXZlbnRpbmcgbXVsdGlwbGUg
|
||
Y29sbGlkaW5nIHRhc2tzIHRvIGJlIHJ1biBvbiB0aGVcbnNhbWUgcmVzb3Vy
|
||
Y2UuIEl0IGFsc28gb3B0aW9uYWxseSBwcm92aWRlcyBEeW5mbG93IGluZnJh
|
||
c3RydWN0dXJlIGZvciB1c2luZyBpdCBmb3IgbWFuYWdpbmcgdGhlIHRhc2tz
|
||
LlxuIiwidXJsIjoiaHR0cHM6Ly9naXRodWIuY29tL3RoZWZvcmVtYW4vZm9y
|
||
ZW1hbi10YXNrcyIsInZlcnNpb24iOiIwLjcuMjAifSx7ImlkIjoiZm9yZW1h
|
||
bl9kb2NrZXIiLCJuYW1lIjoiZm9yZW1hbl9kb2NrZXIiLCJhdXRob3IiOiJE
|
||
YW5pZWwgTG9iYXRvLCBBbW9zIEJlbmFyaSIsImRlc2NyaXB0aW9uIjoiUHJv
|
||
dmlzaW9uIGFuZCBtYW5hZ2UgRG9ja2VyIGNvbnRhaW5lcnMgYW5kIGltYWdl
|
||
cyBmcm9tIEZvcmVtYW4uIiwidXJsIjoiaHR0cDovL2dpdGh1Yi5jb20vdGhl
|
||
Zm9yZW1hbi9mb3JlbWFuLWRvY2tlciIsInZlcnNpb24iOiIzLjAuMCJ9LHsi
|
||
aWQiOiJmb3JlbWFuX3JlbW90ZV9leGVjdXRpb24iLCJuYW1lIjoiZm9yZW1h
|
||
bl9yZW1vdGVfZXhlY3V0aW9uIiwiYXV0aG9yIjoiRm9yZW1hbiBSZW1vdGUg
|
||
RXhlY3V0aW9uIHRlYW0iLCJkZXNjcmlwdGlvbiI6IkEgcGx1Z2luIGJyaW5n
|
||
aW5nIHJlbW90ZSBleGVjdXRpb24gdG8gdGhlIEZvcmVtYW4sIGNvbXBsZXRp
|
||
bmcgdGhlIGNvbmZpZyBtYW5hZ2VtZW50IGZ1bmN0aW9uYWxpdHkgd2l0aCBy
|
||
ZW1vdGUgbWFuYWdlbWVudCBmdW5jdGlvbmFsaXR5LiIsInVybCI6Imh0dHBz
|
||
Oi8vZ2l0aHViLmNvbS90aGVmb3JlbWFuL2ZvcmVtYW5fcmVtb3RlX2V4ZWN1
|
||
dGlvbiIsInZlcnNpb24iOiIxLjAuMCJ9LHsiaWQiOiJrYXRlbGxvIiwibmFt
|
||
ZSI6ImthdGVsbG8iLCJhdXRob3IiOiJOL0EiLCJkZXNjcmlwdGlvbiI6IkNv
|
||
bnRlbnQgYW5kIFN1YnNjcmlwdGlvbiBNYW5hZ2VtZW50IHBsdWdpbiBmb3Ig
|
||
Rm9yZW1hbiIsInVybCI6Imh0dHA6Ly93d3cua2F0ZWxsby5vcmciLCJ2ZXJz
|
||
aW9uIjoiMy4yLjAifV0KfQo=
|
||
encoding: UTF-8
|
||
string: |
|
||
{
|
||
"total": 0,
|
||
"subtotal": 0,
|
||
"page": 1,
|
||
"per_page": 20,
|
||
"search": null,
|
||
"sort": {
|
||
"by": null,
|
||
"order": null
|
||
},
|
||
"results": []
|
||
}
|
||
http_version:
|
||
recorded_at: Tue, 16 Aug 2016 19:37:58 GMT
|
||
recorded_at: Tue, 16 Aug 2016 19:38:00 GMT
|
||
- request:
|
||
method: get
|
||
uri: http://admin:changeme@katello:3000/katello/api/organizations?per_page=999999&search=name=%22Test%20Corporation%22
|
||
uri: http://admin:changeme@katello:3000/katello/api/organizations/4/environments?per_page=999999
|
||
body:
|
||
encoding: US-ASCII
|
||
string: ''
|
||
... | ... | |
Apipie-Checksum:
|
||
- e98945ba1db6bdbb4c25ce4988912344
|
||
Etag:
|
||
- W/"dec57c653102523d2cd2de13cb7fee01"
|
||
- W/"1d6d0a90056c90ea9a3cb6391d18c584"
|
||
Cache-Control:
|
||
- max-age=0, private, must-revalidate
|
||
Set-Cookie:
|
||
- _session_id=584f66c427bfe95e945cedba5aaeadf6; path=/; HttpOnly
|
||
- _session_id=b2146b32b63cf8999c87cc37eb960c17; path=/; HttpOnly
|
||
X-Request-Id:
|
||
- cfa77176-5357-41fb-b9e2-b9e52e7e1e3f
|
||
- f910dd05-a53e-48f8-a570-66b2c5c25785
|
||
X-Runtime:
|
||
- '0.242620'
|
||
- '3.560044'
|
||
Transfer-Encoding:
|
||
- chunked
|
||
body:
|
||
encoding: UTF-8
|
||
string: |
|
||
{
|
||
"total": 3,
|
||
"subtotal": 1,
|
||
"page": 1,
|
||
"per_page": 999999,
|
||
"search": "name=\"Test Corporation\"",
|
||
"sort": {
|
||
"by": null,
|
||
"order": null
|
||
},
|
||
"results": [{"label":"testcorp","created_at":"2016-08-16 12:46:24 UTC","updated_at":"2016-08-16 12:46:24 UTC","id":4,"name":"Test Corporation","title":"Test Corporation","description":"Testing today for a better tomorrow"}]
|
||
}
|
||
{"total":6,"subtotal":6,"page":1,"per_page":"999999","error":null,"search":null,"sort":{"by":null,"order":null},"results":[{"library":false,"id":12,"name":"TestEnv","label":"TestEnv","description":"","organization":{"name":"Test Corporation","label":"testcorp","id":4},"created_at":"2016-08-16 15:07:36 UTC","updated_at":"2016-08-16 15:07:36 UTC","prior":{"name":"Library","id":7},"successor":null,"counts":{"content_hosts":0,"content_views":0},"permissions":{"create_lifecycle_environments":true,"view_lifecycle_environments":true,"edit_lifecycle_environments":true,"destroy_lifecycle_environments":true,"promote_or_remove_content_views_to_environments":true}},{"library":false,"id":9,"name":"Test","label":"Test","description":"Test, manual promotions from Development","organization":{"name":"Test Corporation","label":"testcorp","id":4},"created_at":"2016-08-16 12:47:15 UTC","updated_at":"2016-08-16 12:47:15 UTC","prior":{"name":"Development","id":8},"successor":{"name":"Production","id":10},"counts":{"content_hosts":0,"content_views":0},"permissions":{"create_lifecycle_environments":true,"view_lifecycle_environments":true,"edit_lifecycle_environments":true,"destroy_lifecycle_environments":false,"promote_or_remove_content_views_to_environments":true}},{"library":false,"id":10,"name":"Production","label":"Production","description":"Production, manual promotions from Test","organization":{"name":"Test Corporation","label":"testcorp","id":4},"created_at":"2016-08-16 12:47:17 UTC","updated_at":"2016-08-16 12:47:17 UTC","prior":{"name":"Test","id":9},"successor":{"name":"Archive","id":11},"counts":{"content_hosts":0,"content_views":0},"permissions":{"create_lifecycle_environments":true,"view_lifecycle_environments":true,"edit_lifecycle_environments":true,"destroy_lifecycle_environments":false,"promote_or_remove_content_views_to_environments":true}},{"library":true,"id":7,"name":"Library","label":"Library","description":null,"organization":{"name":"Test Corporation","label":"testcorp","id":4},"created_at":"2016-08-16 12:46:28 UTC","updated_at":"2016-08-16 12:46:28 UTC","prior":null,"successor":null,"counts":{"content_hosts":0,"content_views":1,"packages":0,"puppet_modules":0,"errata":{"security":0,"bugfix":0,"enhancement":0,"total":0},"yum_repositories":0,"docker_repositories":0,"ostree_repositories":0,"products":0},"permissions":{"create_lifecycle_environments":true,"view_lifecycle_environments":true,"edit_lifecycle_environments":true,"destroy_lifecycle_environments":false,"promote_or_remove_content_views_to_environments":true}},{"library":false,"id":8,"name":"Development","label":"Development","description":"Development, automated promotes from Library","organization":{"name":"Test Corporation","label":"testcorp","id":4},"created_at":"2016-08-16 12:47:11 UTC","updated_at":"2016-08-16 12:47:11 UTC","prior":{"name":"Library","id":7},"successor":{"name":"Test","id":9},"counts":{"content_hosts":0,"content_views":0},"permissions":{"create_lifecycle_environments":true,"view_lifecycle_environments":true,"edit_lifecycle_environments":true,"destroy_lifecycle_environments":false,"promote_or_remove_content_views_to_environments":true}},{"library":false,"id":11,"name":"Archive","label":"Archive","description":"Archive, no longer in Production","organization":{"name":"Test Corporation","label":"testcorp","id":4},"created_at":"2016-08-16 12:47:21 UTC","updated_at":"2016-08-16 12:47:21 UTC","prior":{"name":"Production","id":10},"successor":null,"counts":{"content_hosts":0,"content_views":0},"permissions":{"create_lifecycle_environments":true,"view_lifecycle_environments":true,"edit_lifecycle_environments":true,"destroy_lifecycle_environments":true,"promote_or_remove_content_views_to_environments":true}}]}
|
||
http_version:
|
||
recorded_at: Tue, 16 Aug 2016 19:37:59 GMT
|
||
recorded_at: Tue, 16 Aug 2016 19:38:04 GMT
|
||
- request:
|
||
method: get
|
||
uri: http://admin:changeme@katello:3000/api/organizations/4/hosts?per_page=1
|
||
uri: http://admin:changeme@katello:3000/katello/api/organizations/4/content_views?per_page=999999
|
||
body:
|
||
encoding: US-ASCII
|
||
string: ''
|
||
... | ... | |
Apipie-Checksum:
|
||
- e98945ba1db6bdbb4c25ce4988912344
|
||
Etag:
|
||
- W/"fbf1fa8a986e4e3334253da1af35ebb9"
|
||
- W/"78f281b5e8f17b3a8ec943cb506fb9ac"
|
||
Cache-Control:
|
||
- max-age=0, private, must-revalidate
|
||
Set-Cookie:
|
||
- _session_id=3202f577ed3c7f5de099eb27c25b14a1; path=/; HttpOnly
|
||
- _session_id=3c9f67828c62852c813a04f8d9485128; path=/; HttpOnly
|
||
X-Request-Id:
|
||
- 859dd154-91f0-4a59-b61f-025c591828dc
|
||
- c04636e1-d24e-4485-b313-57707309eb11
|
||
X-Runtime:
|
||
- '1.382861'
|
||
- '0.755146'
|
||
Transfer-Encoding:
|
||
- chunked
|
||
body:
|
||
encoding: UTF-8
|
||
string: |
|
||
{
|
||
"total": 0,
|
||
"subtotal": 0,
|
||
"page": 1,
|
||
"per_page": 1,
|
||
"search": null,
|
||
"sort": {
|
||
"by": null,
|
||
"order": null
|
||
},
|
||
"results": []
|
||
}
|
||
{"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":5,"name":"Test Puppet Modules","label":"Test_Puppet_Modules","description":null,"organization":{"name":"Test Corporation","label":"testcorp","id":4},"created_at":"2016-08-16 15:07:07 UTC","updated_at":"2016-08-16 15:07:10 UTC","environments":[{"id":7,"name":"Library","label":"Library","permissions":{"readable":true}}],"repositories":[],"puppet_modules":[],"versions":[{"id":5,"version":"1.0","published":"2016-08-16 15:07:10 UTC","environment_ids":[7]}],"components":[],"activation_keys":[],"last_published":"2016-08-16 15:07:10 UTC","permissions":{"view_content_views":true,"edit_content_views":true,"destroy_content_views":true,"publish_content_views":true,"promote_or_remove_content_views":true}},{"composite":false,"repository_ids":[],"component_ids":[],"default":true,"next_version":1,"id":4,"name":"Default Organization View","label":"fb70f149-819c-4307-a904-65de05450eb0","description":null,"organization":{"name":"Test Corporation","label":"testcorp","id":4},"created_at":"2016-08-16 12:46:29 UTC","updated_at":"2016-08-16 12:46:29 UTC","environments":[{"id":7,"name":"Library","label":"Library","permissions":{"readable":true}}],"repositories":[],"puppet_modules":[],"versions":[{"id":4,"version":"1.0","published":"2016-08-16 12:46:29 UTC","environment_ids":[7]}],"components":[],"activation_keys":[],"last_published":"2016-08-16 12:46:29 UTC","permissions":{"view_content_views":true,"edit_content_views":true,"destroy_content_views":true,"publish_content_views":true,"promote_or_remove_content_views":true}}]}
|
||
http_version:
|
||
recorded_at: Tue, 16 Aug 2016 19:38:00 GMT
|
||
recorded_at: Tue, 16 Aug 2016 19:38:05 GMT
|
||
- request:
|
||
method: get
|
||
uri: http://admin:changeme@katello:3000/api/organizations/4/hosts?page=1&per_page=20
|
||
uri: http://admin:changeme@katello:3000/api/hosts/22/subscriptions
|
||
body:
|
||
encoding: US-ASCII
|
||
string: ''
|
||
... | ... | |
Apipie-Checksum:
|
||
- e98945ba1db6bdbb4c25ce4988912344
|
||
Etag:
|
||
- W/"6e37b0ba5b6460980307fe3763599b4d"
|
||
- W/"28f980ca6d7d7d8bdbe90747a65a208f"
|
||
Cache-Control:
|
||
- max-age=0, private, must-revalidate
|
||
Set-Cookie:
|
||
- _session_id=9c638981ad08331c8054b53477905739; path=/; HttpOnly
|
||
- _session_id=c475a200728a55465718244e1a3cad71; path=/; HttpOnly
|
||
X-Request-Id:
|
||
- 2756ad68-e6b4-4578-90b6-59893f3d0c06
|
||
- 157b8764-2981-4e2e-947e-09e1501b7f25
|
||
X-Runtime:
|
||
- '0.266310'
|
||
- '0.470037'
|
||
Transfer-Encoding:
|
||
- chunked
|
||
body:
|
||
encoding: UTF-8
|
||
string: |
|
||
{
|
||
"total": 0,
|
||
"subtotal": 0,
|
||
"page": 1,
|
||
"per_page": 20,
|
||
"search": null,
|
||
"sort": {
|
||
"by": null,
|
||
"order": null
|
||
},
|
||
"results": []
|
||
}
|
||
{"total":0,"subtotal":0,"page":1,"per_page":0,"error":null,"search":null,"sort":{"by":null,"order":null},"results":[]}
|
||
http_version:
|
||
recorded_at: Tue, 16 Aug 2016 19:38:00 GMT
|
||
recorded_at: Tue, 16 Aug 2016 19:38:11 GMT
|
||
- request:
|
||
method: get
|
||
uri: http://admin:changeme@katello:3000/katello/api/organizations/4/environments?per_page=999999
|
||
uri: http://admin:changeme@katello:3000/api/organizations/4/hosts?per_page=1
|
||
body:
|
||
encoding: US-ASCII
|
||
string: ''
|
||
... | ... | |
Apipie-Checksum:
|
||
- e98945ba1db6bdbb4c25ce4988912344
|
||
Etag:
|
||
- W/"1d6d0a90056c90ea9a3cb6391d18c584"
|
||
- W/"2bda6958827309224f622476ea7d3b94"
|
||
Cache-Control:
|
||
- max-age=0, private, must-revalidate
|
||
Set-Cookie:
|
||
- _session_id=b2146b32b63cf8999c87cc37eb960c17; path=/; HttpOnly
|
||
- _session_id=40e11f1fbd10be75a845ed264ac6f14f; path=/; HttpOnly
|
||
X-Request-Id:
|
||
- f910dd05-a53e-48f8-a570-66b2c5c25785
|
||
- bed94f1f-0618-44aa-9129-10f81dfad185
|
||
X-Runtime:
|
||
- '3.560044'
|
||
- '1.753525'
|
||
Transfer-Encoding:
|
||
- chunked
|
||
body:
|
||
encoding: UTF-8
|
||
string: |
|
||
{"total":6,"subtotal":6,"page":1,"per_page":"999999","error":null,"search":null,"sort":{"by":null,"order":null},"results":[{"library":false,"id":12,"name":"TestEnv","label":"TestEnv","description":"","organization":{"name":"Test Corporation","label":"testcorp","id":4},"created_at":"2016-08-16 15:07:36 UTC","updated_at":"2016-08-16 15:07:36 UTC","prior":{"name":"Library","id":7},"successor":null,"counts":{"content_hosts":0,"content_views":0},"permissions":{"create_lifecycle_environments":true,"view_lifecycle_environments":true,"edit_lifecycle_environments":true,"destroy_lifecycle_environments":true,"promote_or_remove_content_views_to_environments":true}},{"library":false,"id":9,"name":"Test","label":"Test","description":"Test, manual promotions from Development","organization":{"name":"Test Corporation","label":"testcorp","id":4},"created_at":"2016-08-16 12:47:15 UTC","updated_at":"2016-08-16 12:47:15 UTC","prior":{"name":"Development","id":8},"successor":{"name":"Production","id":10},"counts":{"content_hosts":0,"content_views":0},"permissions":{"create_lifecycle_environments":true,"view_lifecycle_environments":true,"edit_lifecycle_environments":true,"destroy_lifecycle_environments":false,"promote_or_remove_content_views_to_environments":true}},{"library":false,"id":10,"name":"Production","label":"Production","description":"Production, manual promotions from Test","organization":{"name":"Test Corporation","label":"testcorp","id":4},"created_at":"2016-08-16 12:47:17 UTC","updated_at":"2016-08-16 12:47:17 UTC","prior":{"name":"Test","id":9},"successor":{"name":"Archive","id":11},"counts":{"content_hosts":0,"content_views":0},"permissions":{"create_lifecycle_environments":true,"view_lifecycle_environments":true,"edit_lifecycle_environments":true,"destroy_lifecycle_environments":false,"promote_or_remove_content_views_to_environments":true}},{"library":true,"id":7,"name":"Library","label":"Library","description":null,"organization":{"name":"Test Corporation","label":"testcorp","id":4},"created_at":"2016-08-16 12:46:28 UTC","updated_at":"2016-08-16 12:46:28 UTC","prior":null,"successor":null,"counts":{"content_hosts":0,"content_views":1,"packages":0,"puppet_modules":0,"errata":{"security":0,"bugfix":0,"enhancement":0,"total":0},"yum_repositories":0,"docker_repositories":0,"ostree_repositories":0,"products":0},"permissions":{"create_lifecycle_environments":true,"view_lifecycle_environments":true,"edit_lifecycle_environments":true,"destroy_lifecycle_environments":false,"promote_or_remove_content_views_to_environments":true}},{"library":false,"id":8,"name":"Development","label":"Development","description":"Development, automated promotes from Library","organization":{"name":"Test Corporation","label":"testcorp","id":4},"created_at":"2016-08-16 12:47:11 UTC","updated_at":"2016-08-16 12:47:11 UTC","prior":{"name":"Library","id":7},"successor":{"name":"Test","id":9},"counts":{"content_hosts":0,"content_views":0},"permissions":{"create_lifecycle_environments":true,"view_lifecycle_environments":true,"edit_lifecycle_environments":true,"destroy_lifecycle_environments":false,"promote_or_remove_content_views_to_environments":true}},{"library":false,"id":11,"name":"Archive","label":"Archive","description":"Archive, no longer in Production","organization":{"name":"Test Corporation","label":"testcorp","id":4},"created_at":"2016-08-16 12:47:21 UTC","updated_at":"2016-08-16 12:47:21 UTC","prior":{"name":"Production","id":10},"successor":null,"counts":{"content_hosts":0,"content_views":0},"permissions":{"create_lifecycle_environments":true,"view_lifecycle_environments":true,"edit_lifecycle_environments":true,"destroy_lifecycle_environments":true,"promote_or_remove_content_views_to_environments":true}}]}
|
||
{
|
||
"total": 1,
|
||
"subtotal": 1,
|
||
"page": 1,
|
||
"per_page": 1,
|
||
"search": null,
|
||
"sort": {
|
||
"by": null,
|
||
"order": null
|
||
},
|
||
"results": [{"ip":null,"ip6":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,"subnet6_id":null,"subnet6_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":"testhost1","image_id":null,"image_name":null,"created_at":"2016-08-16 19:38:17 UTC","updated_at":"2016-08-16 19:38:20 UTC","last_compile":"2016-08-16 19:38:20 UTC","global_status":1,"global_status_label":"Warning","organization_id":4,"organization_name":"Test Corporation","location_id":2,"location_name":"Default Location","puppet_status":0,"model_name":null,"errata_status":1,"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":"testhost1","id":22,"hostgroup_name":null,"hostgroup_title":null,"content_facet_attributes":{"id":22,"uuid":"2ebc1c18-ed69-4d1b-b9ce-3dcc5057d4be","content_view_id":4,"content_view_name":"Default Organization View","lifecycle_environment_id":7,"lifecycle_environment_name":"Library","content_view":{"id":4,"name":"Default Organization View"},"lifecycle_environment":{"id":7,"name":"Library"},"errata_counts":{"security":0,"bugfix":0,"enhancement":0,"total":0}},"subscription_global_status":0,"subscription_facet_attributes":{"id":23,"uuid":"2ebc1c18-ed69-4d1b-b9ce-3dcc5057d4be","last_checkin":"2016-08-16 19:38:17 UTC","service_level":null,"release_version":null,"autoheal":true,"registered_at":"2016-08-16 19:38:19 UTC","registered_through":null},"content_host_id":23}]
|
||
}
|
||
http_version:
|
||
recorded_at: Tue, 16 Aug 2016 19:38:04 GMT
|
||
recorded_at: Tue, 16 Aug 2016 19:38:14 GMT
|
||
- request:
|
||
method: get
|
||
uri: http://admin:changeme@katello:3000/katello/api/organizations/4/content_views?per_page=999999
|
||
uri: http://admin:changeme@katello:3000/api/organizations/4/hosts?page=1&per_page=20
|
||
body:
|
||
encoding: US-ASCII
|
||
string: ''
|
||
... | ... | |
Apipie-Checksum:
|
||
- e98945ba1db6bdbb4c25ce4988912344
|
||
Etag:
|
||
- W/"78f281b5e8f17b3a8ec943cb506fb9ac"
|
||
- W/"87d60dc66d80969e15abf37095f39fcb"
|
||
Cache-Control:
|
||
- max-age=0, private, must-revalidate
|
||
Set-Cookie:
|
||
- _session_id=3c9f67828c62852c813a04f8d9485128; path=/; HttpOnly
|
||
- _session_id=7f6f0d19a528af678bb45c81978b82ba; path=/; HttpOnly
|
||
X-Request-Id:
|
||
- c04636e1-d24e-4485-b313-57707309eb11
|
||
- 5adb69f6-7a3a-4f32-9f1a-0e9ea8a8e44f
|
||
X-Runtime:
|
||
- '0.755146'
|
||
- '1.893858'
|
||
Transfer-Encoding:
|
||
- chunked
|
||
body:
|
||
encoding: UTF-8
|
||
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":5,"name":"Test Puppet Modules","label":"Test_Puppet_Modules","description":null,"organization":{"name":"Test Corporation","label":"testcorp","id":4},"created_at":"2016-08-16 15:07:07 UTC","updated_at":"2016-08-16 15:07:10 UTC","environments":[{"id":7,"name":"Library","label":"Library","permissions":{"readable":true}}],"repositories":[],"puppet_modules":[],"versions":[{"id":5,"version":"1.0","published":"2016-08-16 15:07:10 UTC","environment_ids":[7]}],"components":[],"activation_keys":[],"last_published":"2016-08-16 15:07:10 UTC","permissions":{"view_content_views":true,"edit_content_views":true,"destroy_content_views":true,"publish_content_views":true,"promote_or_remove_content_views":true}},{"composite":false,"repository_ids":[],"component_ids":[],"default":true,"next_version":1,"id":4,"name":"Default Organization View","label":"fb70f149-819c-4307-a904-65de05450eb0","description":null,"organization":{"name":"Test Corporation","label":"testcorp","id":4},"created_at":"2016-08-16 12:46:29 UTC","updated_at":"2016-08-16 12:46:29 UTC","environments":[{"id":7,"name":"Library","label":"Library","permissions":{"readable":true}}],"repositories":[],"puppet_modules":[],"versions":[{"id":4,"version":"1.0","published":"2016-08-16 12:46:29 UTC","environment_ids":[7]}],"components":[],"activation_keys":[],"last_published":"2016-08-16 12:46:29 UTC","permissions":{"view_content_views":true,"edit_content_views":true,"destroy_content_views":true,"publish_content_views":true,"promote_or_remove_content_views":true}}]}
|
||
{
|
||
"total": 1,
|
||
"subtotal": 1,
|
||
"page": 1,
|
||
"per_page": 20,
|
||
"search": null,
|
||
"sort": {
|
||
"by": null,
|
||
"order": null
|
||
},
|
||
"results": [{"ip":null,"ip6":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,"subnet6_id":null,"subnet6_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":"testhost1","image_id":null,"image_name":null,"created_at":"2016-08-16 19:38:17 UTC","updated_at":"2016-08-16 19:38:20 UTC","last_compile":"2016-08-16 19:38:20 UTC","global_status":1,"global_status_label":"Warning","organization_id":4,"organization_name":"Test Corporation","location_id":2,"location_name":"Default Location","puppet_status":0,"model_name":null,"errata_status":1,"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":"testhost1","id":22,"hostgroup_name":null,"hostgroup_title":null,"content_facet_attributes":{"id":22,"uuid":"2ebc1c18-ed69-4d1b-b9ce-3dcc5057d4be","content_view_id":4,"content_view_name":"Default Organization View","lifecycle_environment_id":7,"lifecycle_environment_name":"Library","content_view":{"id":4,"name":"Default Organization View"},"lifecycle_environment":{"id":7,"name":"Library"},"errata_counts":{"security":0,"bugfix":0,"enhancement":0,"total":0}},"subscription_global_status":0,"subscription_facet_attributes":{"id":23,"uuid":"2ebc1c18-ed69-4d1b-b9ce-3dcc5057d4be","last_checkin":"2016-08-16 19:38:17 UTC","service_level":null,"release_version":null,"autoheal":true,"registered_at":"2016-08-16 19:38:19 UTC","registered_through":null},"content_host_id":23}]
|
||
}
|
||
http_version:
|
||
recorded_at: Tue, 16 Aug 2016 19:38:05 GMT
|
||
recorded_at: Tue, 16 Aug 2016 19:38:16 GMT
|
||
- request:
|
||
method: post
|
||
uri: http://admin:changeme@katello:3000/api/hosts/subscriptions
|
||
method: get
|
||
uri: http://admin:changeme@katello:3000/katello/api/organizations/4/environments?per_page=999999
|
||
body:
|
||
encoding: UTF-8
|
||
string: '{"name":"testhost1","facts":{"system.certificate_version":"3.2","network.hostname":"testhost1","cpu.core(s)_per_socket":"1","cpu.cpu_socket(s)":"1","memory.memtotal":"4","uname.machine":"x86_64","distribution.name":"RHEL","distribution.version":"6.4","virt.is_guest":false,"cpu.cpu(s)":1},"lifecycle_environment_id":7,"content_view_id":4}'
|
||
encoding: US-ASCII
|
||
string: ''
|
||
headers:
|
||
Accept:
|
||
- application/json;version=2
|
||
... | ... | |
- gzip, deflate
|
||
Content-Type:
|
||
- application/json
|
||
Content-Length:
|
||
- '338'
|
||
User-Agent:
|
||
- Ruby
|
||
response:
|
||
... | ... | |
Apipie-Checksum:
|
||
- e98945ba1db6bdbb4c25ce4988912344
|
||
Etag:
|
||
- W/"44d32d3d7a56a9495ee7b39f88e9a444"
|
||
- W/"34e50039ba53c6e080d8457289dd3d59"
|
||
Cache-Control:
|
||
- max-age=0, private, must-revalidate
|
||
Set-Cookie:
|
||
- _session_id=0ed680afac50f838843f5a5a229d6a87; path=/; HttpOnly
|
||
- request_method=POST; path=/
|
||
- _session_id=ade3b3f81cb5de614b73698bcba2a6ae; path=/; HttpOnly
|
||
X-Request-Id:
|
||
- 30e63d34-ab74-426f-93f8-f08b6c4738ee
|
||
- abb7b16d-0a2c-4fe0-a2b3-29c9c301f732
|
||
X-Runtime:
|
||
- '5.426110'
|
||
- '2.664604'
|
||
Transfer-Encoding:
|
||
- chunked
|
||
body:
|
||
encoding: UTF-8
|
||
string: |2
|
||
{"id":22,"name":"testhost1","content_view":"Default Organization View","content_view_id":null,"environment":"Library"}
|
||
string: |
|
||
{"total":6,"subtotal":6,"page":1,"per_page":"999999","error":null,"search":null,"sort":{"by":null,"order":null},"results":[{"library":false,"id":12,"name":"TestEnv","label":"TestEnv","description":"","organization":{"name":"Test Corporation","label":"testcorp","id":4},"created_at":"2016-08-16 15:07:36 UTC","updated_at":"2016-08-16 15:07:36 UTC","prior":{"name":"Library","id":7},"successor":null,"counts":{"content_hosts":0,"content_views":0},"permissions":{"create_lifecycle_environments":true,"view_lifecycle_environments":true,"edit_lifecycle_environments":true,"destroy_lifecycle_environments":true,"promote_or_remove_content_views_to_environments":true}},{"library":false,"id":9,"name":"Test","label":"Test","description":"Test, manual promotions from Development","organization":{"name":"Test Corporation","label":"testcorp","id":4},"created_at":"2016-08-16 12:47:15 UTC","updated_at":"2016-08-16 12:47:15 UTC","prior":{"name":"Development","id":8},"successor":{"name":"Production","id":10},"counts":{"content_hosts":0,"content_views":0},"permissions":{"create_lifecycle_environments":true,"view_lifecycle_environments":true,"edit_lifecycle_environments":true,"destroy_lifecycle_environments":false,"promote_or_remove_content_views_to_environments":true}},{"library":false,"id":10,"name":"Production","label":"Production","description":"Production, manual promotions from Test","organization":{"name":"Test Corporation","label":"testcorp","id":4},"created_at":"2016-08-16 12:47:17 UTC","updated_at":"2016-08-16 12:47:17 UTC","prior":{"name":"Test","id":9},"successor":{"name":"Archive","id":11},"counts":{"content_hosts":0,"content_views":0},"permissions":{"create_lifecycle_environments":true,"view_lifecycle_environments":true,"edit_lifecycle_environments":true,"destroy_lifecycle_environments":false,"promote_or_remove_content_views_to_environments":true}},{"library":true,"id":7,"name":"Library","label":"Library","description":null,"organization":{"name":"Test Corporation","label":"testcorp","id":4},"created_at":"2016-08-16 12:46:28 UTC","updated_at":"2016-08-16 12:46:28 UTC","prior":null,"successor":null,"counts":{"content_hosts":1,"content_views":1,"packages":0,"puppet_modules":0,"errata":{"security":0,"bugfix":0,"enhancement":0,"total":0},"yum_repositories":0,"docker_repositories":0,"ostree_repositories":0,"products":0},"permissions":{"create_lifecycle_environments":true,"view_lifecycle_environments":true,"edit_lifecycle_environments":true,"destroy_lifecycle_environments":false,"promote_or_remove_content_views_to_environments":true}},{"library":false,"id":8,"name":"Development","label":"Development","description":"Development, automated promotes from Library","organization":{"name":"Test Corporation","label":"testcorp","id":4},"created_at":"2016-08-16 12:47:11 UTC","updated_at":"2016-08-16 12:47:11 UTC","prior":{"name":"Library","id":7},"successor":{"name":"Test","id":9},"counts":{"content_hosts":0,"content_views":0},"permissions":{"create_lifecycle_environments":true,"view_lifecycle_environments":true,"edit_lifecycle_environments":true,"destroy_lifecycle_environments":false,"promote_or_remove_content_views_to_environments":true}},{"library":false,"id":11,"name":"Archive","label":"Archive","description":"Archive, no longer in Production","organization":{"name":"Test Corporation","label":"testcorp","id":4},"created_at":"2016-08-16 12:47:21 UTC","updated_at":"2016-08-16 12:47:21 UTC","prior":{"name":"Production","id":10},"successor":null,"counts":{"content_hosts":0,"content_views":0},"permissions":{"create_lifecycle_environments":true,"view_lifecycle_environments":true,"edit_lifecycle_environments":true,"destroy_lifecycle_environments":true,"promote_or_remove_content_views_to_environments":true}}]}
|
||
http_version:
|
||
recorded_at: Tue, 16 Aug 2016 19:38:10 GMT
|
||
recorded_at: Tue, 16 Aug 2016 19:38:19 GMT
|
||
- request:
|
||
method: get
|
||
uri: http://admin:changeme@katello:3000/api/hosts/22/subscriptions
|
||
uri: http://admin:changeme@katello:3000/katello/api/organizations/4/content_views?per_page=999999
|
||
body:
|
||
encoding: US-ASCII
|
||
string: ''
|
||
... | ... | |
Apipie-Checksum:
|
||
- e98945ba1db6bdbb4c25ce4988912344
|
||
Etag:
|
||
- W/"28f980ca6d7d7d8bdbe90747a65a208f"
|
||
- W/"78f281b5e8f17b3a8ec943cb506fb9ac"
|
||
Cache-Control:
|
||
- max-age=0, private, must-revalidate
|
||
Set-Cookie:
|
||
- _session_id=c475a200728a55465718244e1a3cad71; path=/; HttpOnly
|
||
- _session_id=ce3a7f63029f43cbb4fba88e5ffb7653; path=/; HttpOnly
|
||
X-Request-Id:
|
||
- 157b8764-2981-4e2e-947e-09e1501b7f25
|
||
- 72d8d370-d914-4b26-a9b8-7f17a83d390c
|
||
X-Runtime:
|
||
- '0.470037'
|
||
- '1.776450'
|
||
Transfer-Encoding:
|
||
- chunked
|
||
body:
|
||
encoding: UTF-8
|
||
string: |
|
||
{"total":0,"subtotal":0,"page":1,"per_page":0,"error":null,"search":null,"sort":{"by":null,"order":null},"results":[]}
|
||
{"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":5,"name":"Test Puppet Modules","label":"Test_Puppet_Modules","description":null,"organization":{"name":"Test Corporation","label":"testcorp","id":4},"created_at":"2016-08-16 15:07:07 UTC","updated_at":"2016-08-16 15:07:10 UTC","environments":[{"id":7,"name":"Library","label":"Library","permissions":{"readable":true}}],"repositories":[],"puppet_modules":[],"versions":[{"id":5,"version":"1.0","published":"2016-08-16 15:07:10 UTC","environment_ids":[7]}],"components":[],"activation_keys":[],"last_published":"2016-08-16 15:07:10 UTC","permissions":{"view_content_views":true,"edit_content_views":true,"destroy_content_views":true,"publish_content_views":true,"promote_or_remove_content_views":true}},{"composite":false,"repository_ids":[],"component_ids":[],"default":true,"next_version":1,"id":4,"name":"Default Organization View","label":"fb70f149-819c-4307-a904-65de05450eb0","description":null,"organization":{"name":"Test Corporation","label":"testcorp","id":4},"created_at":"2016-08-16 12:46:29 UTC","updated_at":"2016-08-16 12:46:29 UTC","environments":[{"id":7,"name":"Library","label":"Library","permissions":{"readable":true}}],"repositories":[],"puppet_modules":[],"versions":[{"id":4,"version":"1.0","published":"2016-08-16 12:46:29 UTC","environment_ids":[7]}],"components":[],"activation_keys":[],"last_published":"2016-08-16 12:46:29 UTC","permissions":{"view_content_views":true,"edit_content_views":true,"destroy_content_views":true,"publish_content_views":true,"promote_or_remove_content_views":true}}]}
|
||
http_version:
|
||
recorded_at: Tue, 16 Aug 2016 19:38:11 GMT
|
||
recorded_at: Tue, 16 Aug 2016 19:38:21 GMT
|
||
- request:
|
||
method: get
|
||
uri: http://admin:changeme@katello:3000/api/status
|
||
method: put
|
||
uri: http://admin:changeme@katello:3000/api/hosts/22
|
||
body:
|
||
encoding: US-ASCII
|
||
string: ''
|
||
encoding: UTF-8
|
||
string: '{"host":{"content_facet_attributes":{"lifecycle_environment_id":7,"content_view_id":4},"subscription_facet_attributes":{"facts":{"system.certificate_version":"3.2","network.hostname":"testhost1","cpu.core(s)_per_socket":"1","cpu.cpu_socket(s)":"1","memory.memtotal":"4","uname.machine":"x86_64","distribution.name":"RHEL","distribution.version":"6.4","virt.is_guest":false,"cpu.cpu(s)":1},"installed_products":null,"service_level":null}}}'
|
||
headers:
|
||
Accept-Encoding:
|
||
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
||
Accept:
|
||
- '*/*'
|
||
- application/json;version=2
|
||
Accept-Encoding:
|
||
- gzip, deflate
|
||
Content-Type:
|
||
- application/json
|
||
Content-Length:
|
||
- '438'
|
||
User-Agent:
|
||
- Ruby
|
||
response:
|
||
... | ... | |
Apipie-Checksum:
|
||
- e98945ba1db6bdbb4c25ce4988912344
|
||
Etag:
|
||
- W/"f536fd8685b76bb26a943d472593c93e"
|
||
- W/"03640cb248f3c75b46a1c6663934e2b3"
|
||
Cache-Control:
|
||
- max-age=0, private, must-revalidate
|
||
Set-Cookie:
|
||
- _session_id=ad015568d1dfd05ad2b6c5cd1a11e77a; path=/; HttpOnly
|
||
- _session_id=cf6d94f3a53c3e714604a99b89556cc2; path=/; HttpOnly
|
||
- request_method=PUT; path=/
|
||
X-Request-Id:
|
||
- 17b5bc34-ca02-42c5-a2e6-78ff17d83415
|
||
- c25f736b-edcf-4e68-9569-43425bf7d27f
|
||
X-Runtime:
|
||
- '0.207032'
|
||
- '3.457859'
|
||
Transfer-Encoding:
|
||
- chunked
|
||
body:
|
||
encoding: UTF-8
|
||
string: '{"result":"ok","status":200,"version":"1.13.0-develop","api_version":2}'
|
||
string: '{"ip":null,"ip6":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,"subnet6_id":null,"subnet6_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":"testhost1","image_id":null,"image_name":null,"created_at":"2016-08-16
|
||
19:38:17 UTC","updated_at":"2016-08-16 19:38:20 UTC","last_compile":"2016-08-16
|
||
19:38:20 UTC","global_status":1,"global_status_label":"Warning","organization_id":4,"organization_name":"Test
|
||
Corporation","location_id":2,"location_name":"Default Location","puppet_status":0,"model_name":null,"errata_status":1,"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":"testhost1","id":22,"hostgroup_name":null,"hostgroup_title":null,"content_facet_attributes":{"id":22,"uuid":"2ebc1c18-ed69-4d1b-b9ce-3dcc5057d4be","content_view_id":4,"content_view_name":"Default
|
||
Organization View","lifecycle_environment_id":7,"lifecycle_environment_name":"Library","content_view":{"id":4,"name":"Default
|
||
Organization View"},"lifecycle_environment":{"id":7,"name":"Library"},"errata_counts":{"security":0,"bugfix":0,"enhancement":0,"total":0},"content_view_version":"1.0","content_view_version_id":4,"content_view_default?":true,"lifecycle_environment_library?":true,"katello_agent_installed":false},"subscription_global_status":0,"subscription_facet_attributes":{"id":23,"uuid":"2ebc1c18-ed69-4d1b-b9ce-3dcc5057d4be","last_checkin":"2016-08-16
|
||
19:38:17 UTC","service_level":null,"release_version":null,"autoheal":true,"registered_at":"2016-08-16
|
||
19:38:19 UTC","registered_through":null,"activation_keys":[],"compliance_reasons":[],"virtual_host":null,"virtual_guests":[],"installed_products":[]},"content_host_id":23,"interfaces":[{"id":24,"name":"testhost1","ip":null,"mac":null,"identifier":null,"primary":true,"provision":true,"type":"interface"}],"puppetclasses":[],"config_groups":[],"parameters":[],"all_parameters":[],"all_puppetclasses":[],"facts":{"system::certificate_version":"3.2","network::hostname":"testhost1","cpu::core(s)_per_socket":"1","cpu::cpu_socket(s)":"1","memory::memtotal":"4","uname::machine":"x86_64","distribution::name":"RHEL","distribution::version":"6.4","virt::is_guest":"false","cpu::cpu(s)":"1","system":null,"network":null,"cpu":null,"memory":null,"uname":null,"distribution":null,"virt":null,"_timestamp":"2016-08-16T15:38:20-04:00"},"content_source_id":null,"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}}'
|
||
http_version:
|
||
recorded_at: Tue, 16 Aug 2016 19:38:11 GMT
|
||
recorded_at: Tue, 16 Aug 2016 19:38:24 GMT
|
||
- request:
|
||
method: get
|
||
uri: http://admin:changeme@katello:3000/api/v2/plugins
|
||
uri: http://admin:changeme@katello:3000/api/hosts/22/subscriptions
|
||
body:
|
||
encoding: US-ASCII
|
||
string: ''
|
||
headers:
|
||
Accept-Encoding:
|
||
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
||
Accept:
|
||
- '*/*'
|
||
- application/json;version=2
|
||
Accept-Encoding:
|
||
- gzip, deflate
|
||
Content-Type:
|
||
- application/json
|
||
User-Agent:
|
||
- Ruby
|
||
response:
|
||
... | ... | |
Apipie-Checksum:
|
||
- e98945ba1db6bdbb4c25ce4988912344
|
||
Etag:
|
||
- W/"dc4a8351c6668134273bfe99879f93b1"
|
||
- W/"28f980ca6d7d7d8bdbe90747a65a208f"
|
||
Cache-Control:
|
||
- max-age=0, private, must-revalidate
|
||
Set-Cookie:
|
||
- _session_id=d93bc2d2d0e7633c989dfcc25e1c1b51; path=/; HttpOnly
|
||
- _session_id=7e8ba73515b83916489d204dd50142d5; path=/; HttpOnly
|
||
X-Request-Id:
|
||
- b582db9e-96e5-4ba2-b310-bd929c2f7a93
|
||
- d0924e9c-c7f6-4b09-bdfb-25ac007e15dc
|
||
X-Runtime:
|
||
- '1.248856'
|
||
- '0.470872'
|
||
Transfer-Encoding:
|
||
- chunked
|
||
body:
|
||
encoding: ASCII-8BIT
|
||
string: !binary |-
|
||
ewogICJ0b3RhbCI6IDQsCiAgInN1YnRvdGFsIjogNCwKICAicGFnZSI6IDEs
|
||
CiAgInBlcl9wYWdlIjogMjAsCiAgInNlYXJjaCI6IG51bGwsCiAgInNvcnQi
|
||
OiB7CiAgICAiYnkiOiBudWxsLAogICAgIm9yZGVyIjogbnVsbAogIH0sCiAg
|
||
InJlc3VsdHMiOiBbeyJpZCI6ImZvcmVtYW4tdGFza3MiLCJuYW1lIjoiZm9y
|
||
ZW1hbi10YXNrcyIsImF1dGhvciI6Ikl2YW4gTmXEjWFzIiwiZGVzY3JpcHRp
|
||
b24iOiJUaGUgZ29hbCBvZiB0aGlzIHBsdWdpbiBpcyB0byB1bmlmeSB0aGUg
|
||
d2F5IG9mIHNob3dpbmcgdGFzayBzdGF0dXNlcyBhY3Jvc3MgdGhlIEZvcmVt
|
||
YW4gaW5zdGFuY2UuXG5JdCBkZWZpbmVzIFRhc2sgbW9kZWwgZm9yIGtlZXBp
|
||
bmcgdGhlIGluZm9ybWF0aW9uIGFib3V0IHRoZSB0YXNrcyBhbmQgTG9jayBm
|
||
b3IgYXNzaWduaW5nIHRoZSB0YXNrc1xudG8gcmVzb3VyY2VzLiBUaGUgbG9j
|
||
a2luZyBhbGxvd3MgZGVhbGluZyB3aXRoIHByZXZlbnRpbmcgbXVsdGlwbGUg
|
||
Y29sbGlkaW5nIHRhc2tzIHRvIGJlIHJ1biBvbiB0aGVcbnNhbWUgcmVzb3Vy
|
||
Y2UuIEl0IGFsc28gb3B0aW9uYWxseSBwcm92aWRlcyBEeW5mbG93IGluZnJh
|
||
c3RydWN0dXJlIGZvciB1c2luZyBpdCBmb3IgbWFuYWdpbmcgdGhlIHRhc2tz
|
||
LlxuIiwidXJsIjoiaHR0cHM6Ly9naXRodWIuY29tL3RoZWZvcmVtYW4vZm9y
|
||
ZW1hbi10YXNrcyIsInZlcnNpb24iOiIwLjcuMjAifSx7ImlkIjoiZm9yZW1h
|
||
bl9kb2NrZXIiLCJuYW1lIjoiZm9yZW1hbl9kb2NrZXIiLCJhdXRob3IiOiJE
|
||
YW5pZWwgTG9iYXRvLCBBbW9zIEJlbmFyaSIsImRlc2NyaXB0aW9uIjoiUHJv
|
||
dmlzaW9uIGFuZCBtYW5hZ2UgRG9ja2VyIGNvbnRhaW5lcnMgYW5kIGltYWdl
|
||
cyBmcm9tIEZvcmVtYW4uIiwidXJsIjoiaHR0cDovL2dpdGh1Yi5jb20vdGhl
|
||
Zm9yZW1hbi9mb3JlbWFuLWRvY2tlciIsInZlcnNpb24iOiIzLjAuMCJ9LHsi
|
||
aWQiOiJmb3JlbWFuX3JlbW90ZV9leGVjdXRpb24iLCJuYW1lIjoiZm9yZW1h
|
||
bl9yZW1vdGVfZXhlY3V0aW9uIiwiYXV0aG9yIjoiRm9yZW1hbiBSZW1vdGUg
|
||
RXhlY3V0aW9uIHRlYW0iLCJkZXNjcmlwdGlvbiI6IkEgcGx1Z2luIGJyaW5n
|
||
aW5nIHJlbW90ZSBleGVjdXRpb24gdG8gdGhlIEZvcmVtYW4sIGNvbXBsZXRp
|
||
bmcgdGhlIGNvbmZpZyBtYW5hZ2VtZW50IGZ1bmN0aW9uYWxpdHkgd2l0aCBy
|
||
ZW1vdGUgbWFuYWdlbWVudCBmdW5jdGlvbmFsaXR5LiIsInVybCI6Imh0dHBz
|
||
Oi8vZ2l0aHViLmNvbS90aGVmb3JlbWFuL2ZvcmVtYW5fcmVtb3RlX2V4ZWN1
|
||
dGlvbiIsInZlcnNpb24iOiIxLjAuMCJ9LHsiaWQiOiJrYXRlbGxvIiwibmFt
|
||
ZSI6ImthdGVsbG8iLCJhdXRob3IiOiJOL0EiLCJkZXNjcmlwdGlvbiI6IkNv
|
||
bnRlbnQgYW5kIFN1YnNjcmlwdGlvbiBNYW5hZ2VtZW50IHBsdWdpbiBmb3Ig
|
||
Rm9yZW1hbiIsInVybCI6Imh0dHA6Ly93d3cua2F0ZWxsby5vcmciLCJ2ZXJz
|
||
aW9uIjoiMy4yLjAifV0KfQo=
|
||
encoding: UTF-8
|
||
string: |
|
||
{"total":0,"subtotal":0,"page":1,"per_page":0,"error":null,"search":null,"sort":{"by":null,"order":null},"results":[]}
|
||
http_version:
|
||
recorded_at: Tue, 16 Aug 2016 19:38:12 GMT
|
||
recorded_at: Tue, 16 Aug 2016 19:38:25 GMT
|
||
- request:
|
||
method: get
|
||
uri: http://admin:changeme@katello:3000/katello/api/organizations?per_page=999999&search=name=%22Test%20Corporation%22
|
||
method: delete
|
||
uri: http://admin:changeme@katello:3000/api/hosts/22
|
||
body:
|
||
encoding: US-ASCII
|
||
string: ''
|
||
... | ... | |
- gzip, deflate
|
||
Content-Type:
|
||
- application/json
|
||
Accept-Language:
|
||
- en
|
||
User-Agent:
|
||
- Ruby
|
||
response:
|
||
... | ... | |
Apipie-Checksum:
|
||
- e98945ba1db6bdbb4c25ce4988912344
|
||
Etag:
|
||
- W/"dec57c653102523d2cd2de13cb7fee01"
|
||
- W/"2376cd3b45087823c076663e09276638"
|
||
Cache-Control:
|
||
- max-age=0, private, must-revalidate
|
||
Set-Cookie:
|
||
- _session_id=46ac9451054ae9c8bf404f3774ca7f7d; path=/; HttpOnly
|
||
- _session_id=fb5da93cfa9b9771cd4a5025d2bc36f5; path=/; HttpOnly
|
||
- request_method=DELETE; path=/
|
||
X-Request-Id:
|
||
- 09c43fcb-6e68-4c3c-b636-aa8cf49fa613
|
||
- 7e8de0c2-4e2b-44f4-8082-c9ce96d902d7
|
||
X-Runtime:
|
||
- '0.429003'
|
||
- '2.923235'
|
||
Transfer-Encoding:
|
||
- chunked
|
||
body:
|
||
encoding: UTF-8
|
||
string: |
|
||
{
|
||
"total": 3,
|
||
"subtotal": 1,
|
||
"page": 1,
|
||
"per_page": 999999,
|
||
"search": "name=\"Test Corporation\"",
|
||
"sort": {
|
||
"by": null,
|
||
"order": null
|
||
},
|
||
"results": [{"label":"testcorp","created_at":"2016-08-16 12:46:24 UTC","updated_at":"2016-08-16 12:46:24 UTC","id":4,"name":"Test Corporation","title":"Test Corporation","description":"Testing today for a better tomorrow"}]
|
||
}
|
||
string: '{"id":22,"name":"testhost1","last_compile":"2016-08-16T19:38:20.000Z","last_report":null,"updated_at":"2016-08-16T19:38:20.662Z","created_at":"2016-08-16T19:38:17.160Z","root_pass":null,"architecture_id":null,"operatingsystem_id":null,"environment_id":null,"ptable_id":null,"medium_id":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,"puppet_proxy_id":null,"certname":"testhost1","image_id":null,"organization_id":4,"location_id":2,"otp":null,"realm_id":null,"compute_profile_id":null,"provision_method":"build","content_source_id":null,"grub_pass":"","content_view_id":null,"lifecycle_environment_id":null,"global_status":1,"lookup_value_matcher":"fqdn=testhost1","content_facet_attributes":{"id":22,"host_id":22,"uuid":"2ebc1c18-ed69-4d1b-b9ce-3dcc5057d4be","content_view_id":4,"lifecycle_environment_id":7,"kickstart_repository_id":null},"subscription_facet_attributes":{"id":23,"host_id":22,"uuid":"2ebc1c18-ed69-4d1b-b9ce-3dcc5057d4be","last_checkin":"2016-08-16T19:38:17.365Z","service_level":null,"release_version":null,"autoheal":true,"registered_at":"2016-08-16T19:38:19.246Z","registered_through":null}}'
|
||
http_version:
|
||
recorded_at: Tue, 16 Aug 2016 19:38:13 GMT
|
||
recorded_at: Tue, 16 Aug 2016 19:38:32 GMT
|
||
- request:
|
||
method: get
|
||
uri: http://admin:changeme@katello:3000/api/organizations/4/hosts?per_page=1
|
||
uri: https://admin:changeme@katello.example.com:50191/api/status
|
||
body:
|
||
encoding: US-ASCII
|
||
string: ''
|
||
headers:
|
||
Accept:
|
||
- application/json;version=2
|
||
Accept-Encoding:
|
||
- gzip, deflate
|
||
Content-Type:
|
||
- application/json
|
||
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
||
Accept:
|
||
- "*/*"
|
||
User-Agent:
|
||
- Ruby
|
||
response:
|
||
... | ... | |
code: 200
|
||
message: OK
|
||
headers:
|
||
Date:
|
||
- Wed, 07 Sep 2016 12:00:50 GMT
|
||
Server:
|
||
- Apache/2.4.6 (CentOS)
|
||
X-Frame-Options:
|
||
- SAMEORIGIN
|
||
X-Xss-Protection:
|
||
... | ... | |
Content-Type:
|
||
- application/json; charset=utf-8
|
||
Apipie-Checksum:
|
||
- e98945ba1db6bdbb4c25ce4988912344
|
||
- 9544abef9cf8343005f07ed8c9f1f8e7
|
||
Etag:
|
||
- W/"2bda6958827309224f622476ea7d3b94"
|
||
- W/"f536fd8685b76bb26a943d472593c93e-gzip"
|
||
Cache-Control:
|
||
- max-age=0, private, must-revalidate
|
||
Set-Cookie:
|
||
- _session_id=40e11f1fbd10be75a845ed264ac6f14f; path=/; HttpOnly
|
||
X-Request-Id:
|
||
- bed94f1f-0618-44aa-9129-10f81dfad185
|
||
- 9b11448d-01d2-4b1c-9157-b0b82bc501a6
|
||
X-Runtime:
|
||
- '1.753525'
|
||
Transfer-Encoding:
|
||
- chunked
|
||
- '0.192219'
|
||
Via:
|
||
- 1.1 katello.example.com:50191
|
||
Vary:
|
||
- Accept-Encoding
|
||
Content-Length:
|
||
- '81'
|
||
Set-Cookie:
|
||
- _session_id=2c0be6883ff864b09149573f6b6224f1; path=/; HttpOnly
|
||
body:
|
||
encoding: UTF-8
|
||
string: |
|
||
{
|
||
"total": 1,
|
||
"subtotal": 1,
|
||
"page": 1,
|
||
"per_page": 1,
|
||
"search": null,
|
||
"sort": {
|
||
"by": null,
|
||
"order": null
|
||
},
|
||
"results": [{"ip":null,"ip6":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,"subnet6_id":null,"subnet6_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":"testhost1","image_id":null,"image_name":null,"created_at":"2016-08-16 19:38:17 UTC","updated_at":"2016-08-16 19:38:20 UTC","last_compile":"2016-08-16 19:38:20 UTC","global_status":1,"global_status_label":"Warning","organization_id":4,"organization_name":"Test Corporation","location_id":2,"location_name":"Default Location","puppet_status":0,"model_name":null,"errata_status":1,"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":"testhost1","id":22,"hostgroup_name":null,"hostgroup_title":null,"content_facet_attributes":{"id":22,"uuid":"2ebc1c18-ed69-4d1b-b9ce-3dcc5057d4be","content_view_id":4,"content_view_name":"Default Organization View","lifecycle_environment_id":7,"lifecycle_environment_name":"Library","content_view":{"id":4,"name":"Default Organization View"},"lifecycle_environment":{"id":7,"name":"Library"},"errata_counts":{"security":0,"bugfix":0,"enhancement":0,"total":0}},"subscription_global_status":0,"subscription_facet_attributes":{"id":23,"uuid":"2ebc1c18-ed69-4d1b-b9ce-3dcc5057d4be","last_checkin":"2016-08-16 19:38:17 UTC","service_level":null,"release_version":null,"autoheal":true,"registered_at":"2016-08-16 19:38:19 UTC","registered_through":null},"content_host_id":23}]
|
||
}
|
||
string: '{"result":"ok","status":200,"version":"1.13.0-develop","api_version":2}'
|
||
http_version:
|
||
recorded_at: Tue, 16 Aug 2016 19:38:14 GMT
|
||
recorded_at: Wed, 07 Sep 2016 12:00:50 GMT
|
||
- request:
|
||
method: get
|
||
uri: http://admin:changeme@katello:3000/api/organizations/4/hosts?page=1&per_page=20
|
||
uri: https://admin:changeme@katello.example.com:50191/api/v2/plugins
|
||
body:
|
||
encoding: US-ASCII
|
||
string: ''
|
||
headers:
|
||
Accept:
|
||
- application/json;version=2
|
||
Accept-Encoding:
|
||
- gzip, deflate
|
||
Content-Type:
|
||
- application/json
|
||
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
||
Accept:
|
||
- "*/*"
|
||
User-Agent:
|
||
- Ruby
|
||
response:
|
||
... | ... | |
code: 200
|
||
message: OK
|
||
headers:
|
||
Date:
|
||
- Wed, 07 Sep 2016 12:00:50 GMT
|
||
Server:
|
||
- Apache/2.4.6 (CentOS)
|
||
X-Frame-Options:
|
||
- SAMEORIGIN
|
||
X-Xss-Protection:
|
||
... | ... | |
Content-Type:
|
||
- application/json; charset=utf-8
|
||
Apipie-Checksum:
|
||
- e98945ba1db6bdbb4c25ce4988912344
|
||
- 9544abef9cf8343005f07ed8c9f1f8e7
|
||
Etag:
|
||
- W/"87d60dc66d80969e15abf37095f39fcb"
|
||
- W/"de0a55a439f41ab6fcd72b3d74503dcc-gzip"
|
||
Cache-Control:
|
||
- max-age=0, private, must-revalidate
|
||
Set-Cookie:
|
||
- _session_id=7f6f0d19a528af678bb45c81978b82ba; path=/; HttpOnly
|
||
X-Request-Id:
|
||
- 5adb69f6-7a3a-4f32-9f1a-0e9ea8a8e44f
|
||
- 53ecc5a8-a1bf-4e2e-b52c-2166448b1a90
|
||
X-Runtime:
|
||
- '1.893858'
|
||
Transfer-Encoding:
|
||
- chunked
|
||
- '0.162804'
|
||
Via:
|
||
- 1.1 katello.example.com:50191
|
||
Vary:
|
||
- Accept-Encoding
|
||
Content-Length:
|
||
- '564'
|
||
Set-Cookie:
|
||
- _session_id=6ed20e08722a1590793d8f94d20d2e1f; path=/; HttpOnly
|
||
body:
|
||
encoding: UTF-8
|
||
string: |
|
||
{
|
||
"total": 1,
|
||
"subtotal": 1,
|
||
"page": 1,
|
||
"per_page": 20,
|
||
"search": null,
|
||
"sort": {
|
||
"by": null,
|
||
"order": null
|
||
},
|
||
"results": [{"ip":null,"ip6":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,"subnet6_id":null,"subnet6_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":"testhost1","image_id":null,"image_name":null,"created_at":"2016-08-16 19:38:17 UTC","updated_at":"2016-08-16 19:38:20 UTC","last_compile":"2016-08-16 19:38:20 UTC","global_status":1,"global_status_label":"Warning","organization_id":4,"organization_name":"Test Corporation","location_id":2,"location_name":"Default Location","puppet_status":0,"model_name":null,"errata_status":1,"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":"testhost1","id":22,"hostgroup_name":null,"hostgroup_title":null,"content_facet_attributes":{"id":22,"uuid":"2ebc1c18-ed69-4d1b-b9ce-3dcc5057d4be","content_view_id":4,"content_view_name":"Default Organization View","lifecycle_environment_id":7,"lifecycle_environment_name":"Library","content_view":{"id":4,"name":"Default Organization View"},"lifecycle_environment":{"id":7,"name":"Library"},"errata_counts":{"security":0,"bugfix":0,"enhancement":0,"total":0}},"subscription_global_status":0,"subscription_facet_attributes":{"id":23,"uuid":"2ebc1c18-ed69-4d1b-b9ce-3dcc5057d4be","last_checkin":"2016-08-16 19:38:17 UTC","service_level":null,"release_version":null,"autoheal":true,"registered_at":"2016-08-16 19:38:19 UTC","registered_through":null},"content_host_id":23}]
|
||
}
|
||
encoding: ASCII-8BIT
|
||
string: !binary |-
|
||
ewogICJ0b3RhbCI6IDMsCiAgInN1YnRvdGFsIjogMywKICAicGFnZSI6IDEs
|
||
CiAgInBlcl9wYWdlIjogMjAsCiAgInNlYXJjaCI6IG51bGwsCiAgInNvcnQi
|
||
OiB7CiAgICAiYnkiOiBudWxsLAogICAgIm9yZGVyIjogbnVsbAogIH0sCiAg
|
||
InJlc3VsdHMiOiBbeyJpZCI6ImZvcmVtYW4tdGFza3MiLCJuYW1lIjoiZm9y
|
||
ZW1hbi10YXNrcyIsImF1dGhvciI6Ikl2YW4gTmXEjWFzIiwiZGVzY3JpcHRp
|
||
b24iOiJUaGUgZ29hbCBvZiB0aGlzIHBsdWdpbiBpcyB0byB1bmlmeSB0aGUg
|
||
d2F5IG9mIHNob3dpbmcgdGFzayBzdGF0dXNlcyBhY3Jvc3MgdGhlIEZvcmVt
|
||
YW4gaW5zdGFuY2UuXG5JdCBkZWZpbmVzIFRhc2sgbW9kZWwgZm9yIGtlZXBp
|
||
bmcgdGhlIGluZm9ybWF0aW9uIGFib3V0IHRoZSB0YXNrcyBhbmQgTG9jayBm
|
||
b3IgYXNzaWduaW5nIHRoZSB0YXNrc1xudG8gcmVzb3VyY2VzLiBUaGUgbG9j
|
||
a2luZyBhbGxvd3MgZGVhbGluZyB3aXRoIHByZXZlbnRpbmcgbXVsdGlwbGUg
|
||
Y29sbGlkaW5nIHRhc2tzIHRvIGJlIHJ1biBvbiB0aGVcbnNhbWUgcmVzb3Vy
|
||
Y2UuIEl0IGFsc28gb3B0aW9uYWxseSBwcm92aWRlcyBEeW5mbG93IGluZnJh
|
||
c3RydWN0dXJlIGZvciB1c2luZyBpdCBmb3IgbWFuYWdpbmcgdGhlIHRhc2tz
|
||
LlxuIiwidXJsIjoiaHR0cHM6Ly9naXRodWIuY29tL3RoZWZvcmVtYW4vZm9y
|
||
ZW1hbi10YXNrcyIsInZlcnNpb24iOiIwLjguMCJ9LHsiaWQiOiJmb3JlbWFu
|
||
X2RvY2tlciIsIm5hbWUiOiJmb3JlbWFuX2RvY2tlciIsImF1dGhvciI6IkRh
|
||
bmllbCBMb2JhdG8sIEFtb3MgQmVuYXJpIiwiZGVzY3JpcHRpb24iOiJQcm92
|
||
aXNpb24gYW5kIG1hbmFnZSBEb2NrZXIgY29udGFpbmVycyBhbmQgaW1hZ2Vz
|
||
IGZyb20gRm9yZW1hbi4iLCJ1cmwiOiJodHRwOi8vZ2l0aHViLmNvbS90aGVm
|
||
b3JlbWFuL2ZvcmVtYW4tZG9ja2VyIiwidmVyc2lvbiI6IjMuMC4wIn0seyJp
|
||
ZCI6ImthdGVsbG8iLCJuYW1lIjoia2F0ZWxsbyIsImF1dGhvciI6Ik4vQSIs
|
||
ImRlc2NyaXB0aW9uIjoiQ29udGVudCBhbmQgU3Vic2NyaXB0aW9uIE1hbmFn
|
||
ZW1lbnQgcGx1Z2luIGZvciBGb3JlbWFuIiwidXJsIjoiaHR0cDovL3d3dy5r
|
||
YXRlbGxvLm9yZyIsInZlcnNpb24iOiIzLjIuMCJ9XQp9Cg==
|
||
http_version:
|
||
recorded_at: Tue, 16 Aug 2016 19:38:16 GMT
|
||
recorded_at: Wed, 07 Sep 2016 12:00:50 GMT
|
||
- request:
|
||
method: get
|
||
uri: http://admin:changeme@katello:3000/katello/api/organizations/4/environments?per_page=999999
|
||
uri: https://admin:changeme@katello.example.com:50191/katello/api/organizations?per_page=999999&search=name=%22Test%20Corporation%22
|
||
body:
|
||
encoding: US-ASCII
|
||
string: ''
|
||
... | ... | |
- application/json;version=2
|
||
Accept-Encoding:
|
||
- gzip, deflate
|
||
User-Agent:
|
||
- rest-client/2.0.0 (linux-gnu x86_64) ruby/2.1.10p492
|
||
Content-Type:
|
||
- application/json
|
||
User-Agent:
|
||
- Ruby
|
||
Host:
|
||
- katello.example.com:50191
|
||
response:
|
||
status:
|
||
code: 200
|
||
message: OK
|
||
headers:
|
||
Date:
|
||
- Wed, 07 Sep 2016 12:00:50 GMT
|
||
Server:
|
||
- Apache/2.4.6 (CentOS)
|
||
X-Frame-Options:
|
||
- SAMEORIGIN
|
||
X-Xss-Protection:
|
||
... | ... | |
Content-Type:
|
||
- application/json; charset=utf-8
|
||
Apipie-Checksum:
|
||
- e98945ba1db6bdbb4c25ce4988912344
|
||
- 9544abef9cf8343005f07ed8c9f1f8e7
|
||
Etag:
|
||
- W/"34e50039ba53c6e080d8457289dd3d59"
|
||
- W/"471e8acb2053be2e7a823cbd174ec330-gzip"
|
||
Cache-Control:
|
||
- max-age=0, private, must-revalidate
|
||
Set-Cookie:
|
||
- _session_id=ade3b3f81cb5de614b73698bcba2a6ae; path=/; HttpOnly
|
||
X-Request-Id:
|
||
- abb7b16d-0a2c-4fe0-a2b3-29c9c301f732
|
||
- 9206a46b-0b18-460e-8991-16f93021b9e2
|
||
X-Runtime:
|
||
- '2.664604'
|
||
Transfer-Encoding:
|
||
- chunked
|
||
- '0.209069'
|
||
Via:
|
||
- 1.1 katello.example.com:50191
|
||
Vary:
|
||
- Accept-Encoding
|
||
Content-Length:
|
||
- '388'
|
||
Set-Cookie:
|
||
- _session_id=00e00f4c78a90bfee99cf5a563a95f61; path=/; HttpOnly
|
||
body:
|
||
encoding: UTF-8
|
||
encoding: ASCII-8BIT
|
||
string: |
|
||
{"total":6,"subtotal":6,"page":1,"per_page":"999999","error":null,"search":null,"sort":{"by":null,"order":null},"results":[{"library":false,"id":12,"name":"TestEnv","label":"TestEnv","description":"","organization":{"name":"Test Corporation","label":"testcorp","id":4},"created_at":"2016-08-16 15:07:36 UTC","updated_at":"2016-08-16 15:07:36 UTC","prior":{"name":"Library","id":7},"successor":null,"counts":{"content_hosts":0,"content_views":0},"permissions":{"create_lifecycle_environments":true,"view_lifecycle_environments":true,"edit_lifecycle_environments":true,"destroy_lifecycle_environments":true,"promote_or_remove_content_views_to_environments":true}},{"library":false,"id":9,"name":"Test","label":"Test","description":"Test, manual promotions from Development","organization":{"name":"Test Corporation","label":"testcorp","id":4},"created_at":"2016-08-16 12:47:15 UTC","updated_at":"2016-08-16 12:47:15 UTC","prior":{"name":"Development","id":8},"successor":{"name":"Production","id":10},"counts":{"content_hosts":0,"content_views":0},"permissions":{"create_lifecycle_environments":true,"view_lifecycle_environments":true,"edit_lifecycle_environments":true,"destroy_lifecycle_environments":false,"promote_or_remove_content_views_to_environments":true}},{"library":false,"id":10,"name":"Production","label":"Production","description":"Production, manual promotions from Test","organization":{"name":"Test Corporation","label":"testcorp","id":4},"created_at":"2016-08-16 12:47:17 UTC","updated_at":"2016-08-16 12:47:17 UTC","prior":{"name":"Test","id":9},"successor":{"name":"Archive","id":11},"counts":{"content_hosts":0,"content_views":0},"permissions":{"create_lifecycle_environments":true,"view_lifecycle_environments":true,"edit_lifecycle_environments":true,"destroy_lifecycle_environments":false,"promote_or_remove_content_views_to_environments":true}},{"library":true,"id":7,"name":"Library","label":"Library","description":null,"organization":{"name":"Test Corporation","label":"testcorp","id":4},"created_at":"2016-08-16 12:46:28 UTC","updated_at":"2016-08-16 12:46:28 UTC","prior":null,"successor":null,"counts":{"content_hosts":1,"content_views":1,"packages":0,"puppet_modules":0,"errata":{"security":0,"bugfix":0,"enhancement":0,"total":0},"yum_repositories":0,"docker_repositories":0,"ostree_repositories":0,"products":0},"permissions":{"create_lifecycle_environments":true,"view_lifecycle_environments":true,"edit_lifecycle_environments":true,"destroy_lifecycle_environments":false,"promote_or_remove_content_views_to_environments":true}},{"library":false,"id":8,"name":"Development","label":"Development","description":"Development, automated promotes from Library","organization":{"name":"Test Corporation","label":"testcorp","id":4},"created_at":"2016-08-16 12:47:11 UTC","updated_at":"2016-08-16 12:47:11 UTC","prior":{"name":"Library","id":7},"successor":{"name":"Test","id":9},"counts":{"content_hosts":0,"content_views":0},"permissions":{"create_lifecycle_environments":true,"view_lifecycle_environments":true,"edit_lifecycle_environments":true,"destroy_lifecycle_environments":false,"promote_or_remove_content_views_to_environments":true}},{"library":false,"id":11,"name":"Archive","label":"Archive","description":"Archive, no longer in Production","organization":{"name":"Test Corporation","label":"testcorp","id":4},"created_at":"2016-08-16 12:47:21 UTC","updated_at":"2016-08-16 12:47:21 UTC","prior":{"name":"Production","id":10},"successor":null,"counts":{"content_hosts":0,"content_views":0},"permissions":{"create_lifecycle_environments":true,"view_lifecycle_environments":true,"edit_lifecycle_environments":true,"destroy_lifecycle_environments":true,"promote_or_remove_content_views_to_environments":true}}]}
|
||
http_version:
|
||
recorded_at: Tue, 16 Aug 2016 19:38:19 GMT
|
||
- request:
|
||
method: get
|
||
uri: http://admin:changeme@katello:3000/katello/api/organizations/4/content_views?per_page=999999
|
||
body:
|
||
encoding: US-ASCII
|
||
string: ''
|
||
{
|
||
"total": 3,
|
||
"subtotal": 1,
|
||
"page": 1,
|
||
"per_page": 999999,
|
||
"search": "name=\"Test Corporation\"",
|
||
"sort": {
|
||
"by": null,
|
||
"order": null
|
||
},
|
||
"results": [{"label":"testcorp","created_at":"2016-09-07 01:39:03 UTC","updated_at":"2016-09-07 01:39:03 UTC","id":9,"name":"Test Corporation","title":"Test Corporation","description":"Testing today for a better tomorrow"}]
|
||
}
|
||
http_version:
|
||
recorded_at: Wed, 07 Sep 2016 12:00:51 GMT
|
||
- request:
|
||
method: get
|
||
uri: https://admin:changeme@katello.example.com:50191/api/organizations/9/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.1.10p492
|
||
Content-Type:
|
||
- application/json
|
||
User-Agent:
|
||
- Ruby
|
||
Host:
|
||
- katello.example.com:50191
|
||
response:
|
||
status:
|
||
code: 200
|
||
message: OK
|
||
headers:
|
||
Date:
|
||
- Wed, 07 Sep 2016 12:00:50 GMT
|
||
Server:
|
||
- Apache/2.4.6 (CentOS)
|
||
X-Frame-Options:
|
||
- SAMEORIGIN
|
||
X-Xss-Protection:
|
||
... | ... | |
Content-Type:
|
||
- application/json; charset=utf-8
|
||
Apipie-Checksum:
|
||
- e98945ba1db6bdbb4c25ce4988912344
|
||
- 9544abef9cf8343005f07ed8c9f1f8e7
|
||
Etag:
|
||
- W/"78f281b5e8f17b3a8ec943cb506fb9ac"
|
||
- W/"fbf1fa8a986e4e3334253da1af35ebb9-gzip"
|
||
Cache-Control:
|
||
- max-age=0, private, must-revalidate
|
||
Set-Cookie:
|
||
- _session_id=ce3a7f63029f43cbb4fba88e5ffb7653; path=/; HttpOnly
|
||
X-Request-Id:
|
||
- 72d8d370-d914-4b26-a9b8-7f17a83d390c
|
||
- 62bd044e-fb74-457e-8297-bb1348588bc3
|
||
X-Runtime:
|
||
- '1.776450'
|
||
Transfer-Encoding:
|
||
- chunked
|
||
- '1.227261'
|
||
Via:
|
||
- 1.1 katello.example.com:50191
|
||
Vary:
|
||
- Accept-Encoding
|
||
Content-Length:
|
||
- '150'
|
||
Set-Cookie:
|
||
- _session_id=e088f3324ea9451f28c76d7e257beaf3; path=/; HttpOnly
|
||
body:
|
||
encoding: UTF-8
|
||
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":5,"name":"Test Puppet Modules","label":"Test_Puppet_Modules","description":null,"organization":{"name":"Test Corporation","label":"testcorp","id":4},"created_at":"2016-08-16 15:07:07 UTC","updated_at":"2016-08-16 15:07:10 UTC","environments":[{"id":7,"name":"Library","label":"Library","permissions":{"readable":true}}],"repositories":[],"puppet_modules":[],"versions":[{"id":5,"version":"1.0","published":"2016-08-16 15:07:10 UTC","environment_ids":[7]}],"components":[],"activation_keys":[],"last_published":"2016-08-16 15:07:10 UTC","permissions":{"view_content_views":true,"edit_content_views":true,"destroy_content_views":true,"publish_content_views":true,"promote_or_remove_content_views":true}},{"composite":false,"repository_ids":[],"component_ids":[],"default":true,"next_version":1,"id":4,"name":"Default Organization View","label":"fb70f149-819c-4307-a904-65de05450eb0","description":null,"organization":{"name":"Test Corporation","label":"testcorp","id":4},"created_at":"2016-08-16 12:46:29 UTC","updated_at":"2016-08-16 12:46:29 UTC","environments":[{"id":7,"name":"Library","label":"Library","permissions":{"readable":true}}],"repositories":[],"puppet_modules":[],"versions":[{"id":4,"version":"1.0","published":"2016-08-16 12:46:29 UTC","environment_ids":[7]}],"components":[],"activation_keys":[],"last_published":"2016-08-16 12:46:29 UTC","permissions":{"view_content_views":true,"edit_content_views":true,"destroy_content_views":true,"publish_content_views":true,"promote_or_remove_content_views":true}}]}
|
||
{
|
||
"total": 0,
|
||
"subtotal": 0,
|
||
"page": 1,
|
||
"per_page": 1,
|
||
"search": null,
|
||
"sort": {
|
||
"by": null,
|
||
"order": null
|
||
},
|
||
"results": []
|
||
}
|
||
http_version:
|
||
recorded_at: Tue, 16 Aug 2016 19:38:21 GMT
|
||
recorded_at: Wed, 07 Sep 2016 12:00:52 GMT
|
||
- request:
|
||
method: put
|
||
uri: http://admin:changeme@katello:3000/api/hosts/22
|
||
method: get
|
||
uri: https://admin:changeme@katello.example.com:50191/api/organizations/9/hosts?page=1&per_page=20
|
||
body:
|
||
encoding: UTF-8
|
||
string: '{"host":{"content_facet_attributes":{"lifecycle_environment_id":7,"content_view_id":4},"subscription_facet_attributes":{"facts":{"system.certificate_version":"3.2","network.hostname":"testhost1","cpu.core(s)_per_socket":"1","cpu.cpu_socket(s)":"1","memory.memtotal":"4","uname.machine":"x86_64","distribution.name":"RHEL","distribution.version":"6.4","virt.is_guest":false,"cpu.cpu(s)":1},"installed_products":null,"service_level":null}}}'
|
||
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.1.10p492
|
||
Content-Type:
|
||
- application/json
|
||
Content-Length:
|
||
- '438'
|
||
User-Agent:
|
||
- Ruby
|
||
Host:
|
||
- katello.example.com:50191
|
||
response:
|
||
status:
|
||
code: 200
|
||
message: OK
|
||
headers:
|
||
Date:
|
||
- Wed, 07 Sep 2016 12:00:51 GMT
|
||
Server:
|
||
- Apache/2.4.6 (CentOS)
|
||
X-Frame-Options:
|
||
- SAMEORIGIN
|
||
X-Xss-Protection:
|
||
... | ... | |
Content-Type:
|
||
- application/json; charset=utf-8
|
||
Apipie-Checksum:
|
||
- e98945ba1db6bdbb4c25ce4988912344
|
||
- 9544abef9cf8343005f07ed8c9f1f8e7
|
||
Etag:
|
||
- W/"03640cb248f3c75b46a1c6663934e2b3"
|
||
- W/"6e37b0ba5b6460980307fe3763599b4d-gzip"
|
||
Cache-Control:
|
||
- max-age=0, private, must-revalidate
|
||
Set-Cookie:
|
||
- _session_id=cf6d94f3a53c3e714604a99b89556cc2; path=/; HttpOnly
|
||
- request_method=PUT; path=/
|
||
X-Request-Id:
|
||
- c25f736b-edcf-4e68-9569-43425bf7d27f
|
||
- dffd2d73-324c-4c11-a8bc-096c8773e625
|
||
X-Runtime:
|
||
- '3.457859'
|
||
Transfer-Encoding:
|
||
- chunked
|
||
- '0.228356'
|
||
Via:
|
||
- 1.1 katello.example.com:50191
|
||
Vary:
|
||
- Accept-Encoding
|
||
Content-Length:
|
||
- '151'
|
||
Set-Cookie:
|
||
- _session_id=7bbe7b129d302ef44380301bb2781e06; path=/; HttpOnly
|
||
body:
|
||
encoding: UTF-8
|
||
string: '{"ip":null,"ip6":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,"subnet6_id":null,"subnet6_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":"testhost1","image_id":null,"image_name":null,"created_at":"2016-08-16
|
||
19:38:17 UTC","updated_at":"2016-08-16 19:38:20 UTC","last_compile":"2016-08-16
|
||
19:38:20 UTC","global_status":1,"global_status_label":"Warning","organization_id":4,"organization_name":"Test
|
||
Corporation","location_id":2,"location_name":"Default Location","puppet_status":0,"model_name":null,"errata_status":1,"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":"testhost1","id":22,"hostgroup_name":null,"hostgroup_title":null,"content_facet_attributes":{"id":22,"uuid":"2ebc1c18-ed69-4d1b-b9ce-3dcc5057d4be","content_view_id":4,"content_view_name":"Default
|
||
Organization View","lifecycle_environment_id":7,"lifecycle_environment_name":"Library","content_view":{"id":4,"name":"Default
|
||
Organization View"},"lifecycle_environment":{"id":7,"name":"Library"},"errata_counts":{"security":0,"bugfix":0,"enhancement":0,"total":0},"content_view_version":"1.0","content_view_version_id":4,"content_view_default?":true,"lifecycle_environment_library?":true,"katello_agent_installed":false},"subscription_global_status":0,"subscription_facet_attributes":{"id":23,"uuid":"2ebc1c18-ed69-4d1b-b9ce-3dcc5057d4be","last_checkin":"2016-08-16
|
||
19:38:17 UTC","service_level":null,"release_version":null,"autoheal":true,"registered_at":"2016-08-16
|
||
19:38:19 UTC","registered_through":null,"activation_keys":[],"compliance_reasons":[],"virtual_host":null,"virtual_guests":[],"installed_products":[]},"content_host_id":23,"interfaces":[{"id":24,"name":"testhost1","ip":null,"mac":null,"identifier":null,"primary":true,"provision":true,"type":"interface"}],"puppetclasses":[],"config_groups":[],"parameters":[],"all_parameters":[],"all_puppetclasses":[],"facts":{"system::certificate_version":"3.2","network::hostname":"testhost1","cpu::core(s)_per_socket":"1","cpu::cpu_socket(s)":"1","memory::memtotal":"4","uname::machine":"x86_64","distribution::name":"RHEL","distribution::version":"6.4","virt::is_guest":"false","cpu::cpu(s)":"1","system":null,"network":null,"cpu":null,"memory":null,"uname":null,"distribution":null,"virt":null,"_timestamp":"2016-08-16T15:38:20-04:00"},"content_source_id":null,"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}}'
|
||
encoding: ASCII-8BIT
|
||
string: |
|
||
{
|
||
"total": 0,
|
||
"subtotal": 0,
|
||
"page": 1,
|
||
"per_page": 20,
|
||
"search": null,
|
||
"sort": {
|
||
"by": null,
|
||
"order": null
|
||
},
|
||
"results": []
|
||
}
|
||
http_version:
|
||
recorded_at: Tue, 16 Aug 2016 19:38:24 GMT
|
||
recorded_at: Wed, 07 Sep 2016 12:00:52 GMT
|
||
- request:
|
||
method: get
|
||
uri: http://admin:changeme@katello:3000/api/hosts/22/subscriptions
|
||
uri: https://admin:changeme@katello.example.com:50191/katello/api/organizations/9/environments?per_page=999999
|
||
body:
|
||
encoding: US-ASCII
|
||
string: ''
|
||
... | ... | |
- application/json;version=2
|
||
Accept-Encoding:
|
||
- gzip, deflate
|
||
User-Agent:
|
||
- rest-client/2.0.0 (linux-gnu x86_64) ruby/2.1.10p492
|
||
Content-Type:
|
||
- application/json
|
||
User-Agent:
|
||
- Ruby
|
||
Host:
|
||
- katello.example.com:50191
|
||
response:
|
||
status:
|
||
code: 200
|
||
message: OK
|
||
headers:
|
||
Date:
|
||
- Wed, 07 Sep 2016 12:00:52 GMT
|
||
Server:
|
||
- Apache/2.4.6 (CentOS)
|
||
X-Frame-Options:
|
||
- SAMEORIGIN
|
||
X-Xss-Protection:
|
||
... | ... | |
Content-Type:
|
||
- application/json; charset=utf-8
|
||
Apipie-Checksum:
|
||
- e98945ba1db6bdbb4c25ce4988912344
|
||
- 9544abef9cf8343005f07ed8c9f1f8e7
|
||
Etag:
|
||
- W/"28f980ca6d7d7d8bdbe90747a65a208f"
|
||
- W/"72eb5189b58585476c18e6ca0a61e065-gzip"
|
||
Cache-Control:
|
||
- max-age=0, private, must-revalidate
|
||
Set-Cookie:
|
||
- _session_id=7e8ba73515b83916489d204dd50142d5; path=/; HttpOnly
|
||
X-Request-Id:
|
||
- d0924e9c-c7f6-4b09-bdfb-25ac007e15dc
|
||
- 9293e409-a9f2-4b9e-b50b-5cf4fe8fa0a4
|
||
X-Runtime:
|
||
- '0.470872'
|
||
Transfer-Encoding:
|
||
- chunked
|
||
- '0.395284'
|
||
Via:
|
||
- 1.1 katello.example.com:50191
|
||
Vary:
|
||
- Accept-Encoding
|
||
Content-Length:
|
||
- '819'
|
||
Set-Cookie:
|
||
- _session_id=dd82e6391e15419418427d85ce2d2e35; path=/; HttpOnly
|
||
body:
|
||
encoding: UTF-8
|
||
encoding: ASCII-8BIT
|
||
string: |
|
||
{"total":0,"subtotal":0,"page":1,"per_page":0,"error":null,"search":null,"sort":{"by":null,"order":null},"results":[]}
|
||
{"total":1,"subtotal":1,"page":1,"per_page":"999999","error":null,"search":null,"sort":{"by":null,"order":null},"results":[{"library":true,"id":7,"name":"Library","label":"Library","description":null,"organization":{"name":"Test Corporation","label":"testcorp","id":9},"created_at":"2016-09-07 01:39:05 UTC","updated_at":"2016-09-07 01:39:05 UTC","prior":null,"successor":null,"counts":{"content_hosts":0,"content_views":0,"packages":0,"puppet_modules":0,"errata":{"security":0,"bugfix":0,"enhancement":0,"total":0},"yum_repositories":0,"docker_repositories":0,"ostree_repositories":0,"products":0},"permissions":{"create_lifecycle_environments":true,"view_lifecycle_environments":true,"edit_lifecycle_environments":true,"destroy_lifecycle_environments":false,"promote_or_remove_content_views_to_environments":true}}]}
|
||
http_version:
|
||
recorded_at: Tue, 16 Aug 2016 19:38:25 GMT
|
||
recorded_at: Wed, 07 Sep 2016 12:00:53 GMT
|
||
- request:
|
||
method: get
|
||
uri: http://katello:3000/apidoc/v2.en.json
|
||
uri: https://admin:changeme@katello.example.com:50191/katello/api/organizations/9/content_views?per_page=999999
|
||
body:
|
||
encoding: US-ASCII
|
||
string: ''
|
||
headers:
|
||
Accept:
|
||
- application/json
|
||
- application/json;version=2
|
||
Accept-Encoding:
|
||
- gzip, deflate
|
||
User-Agent:
|
||
- rest-client/2.0.0 (linux-gnu x86_64) ruby/2.1.10p492
|
||
Content-Type:
|
||
- application/json
|
||
Accept-Language:
|
||
- en
|
||
Host:
|
||
- katello.example.com:50191
|
||
response:
|
||
status:
|
||
code: 200
|
||
message: OK
|
||
headers:
|
||
Date:
|
||
- Wed, 07 Sep 2016 12:00:52 GMT
|
||
Server:
|
||
- Apache/2.4.6 (CentOS)
|
||
X-Frame-Options:
|
||
- SAMEORIGIN
|
||
X-Xss-Protection:
|
||
- 1; mode=block
|
||
X-Content-Type-Options:
|
||
- nosniff
|
||
Foreman-Version:
|
||
- 1.13.0-develop
|
||
Foreman-Api-Version:
|
||
- '2'
|
||
Content-Type:
|
||
- application/json; charset=utf-8
|
||
Apipie-Checksum:
|
||
- 9544abef9cf8343005f07ed8c9f1f8e7
|
||
Etag:
|
||
- W/"743c4dd5d90a19943d91f0ad8dc36aff-gzip"
|
||
Cache-Control:
|
||
- max-age=0, private, must-revalidate
|
||
X-Request-Id:
|
||
- 3287b600-ccf3-48fe-8cc6-e5fbec4dab70
|
||
X-Runtime:
|
||
- '1.328581'
|
||
Via:
|
||
- 1.1 katello.example.com:50191
|
||
Vary:
|
||
- Accept-Encoding
|
||
Content-Length:
|
||
- '945'
|
||
Set-Cookie:
|
||
- _session_id=89a583c7f604b07f0157cde3e3a89e5b; path=/; HttpOnly
|
||
body:
|
||
encoding: ASCII-8BIT
|
||
string: |
|
||
{"total":1,"subtotal":1,"page":1,"per_page":"999999","error":null,"search":null,"sort":{"by":null,"order":null},"results":[{"composite":false,"repository_ids":[],"component_ids":[],"default":true,"next_version":1,"id":4,"name":"Default Organization View","label":"bd072dcb-fc48-4a08-87c5-4f09acf4c936","description":null,"organization":{"name":"Test Corporation","label":"testcorp","id":9},"created_at":"2016-09-07 01:39:06 UTC","updated_at":"2016-09-07 01:39:06 UTC","environments":[{"id":7,"name":"Library","label":"Library","permissions":{"readable":true}}],"repositories":[],"puppet_modules":[],"versions":[{"id":4,"version":"1.0","published":"2016-09-07 01:39:06 UTC","environment_ids":[7]}],"components":[],"activation_keys":[],"last_published":"2016-09-07 01:39:06 UTC","permissions":{"view_content_views":true,"edit_content_views":true,"destroy_content_views":true,"publish_content_views":true,"promote_or_remove_content_views":true}}]}
|
||
http_version:
|
||
recorded_at: Wed, 07 Sep 2016 12:00:54 GMT
|
||
- request:
|
||
method: post
|
||
uri: https://admin:changeme@katello.example.com:50191/api/hosts/subscriptions
|
||
body:
|
||
encoding: UTF-8
|
||
string: '{"name":"testhost1","facts":{"system.certificate_version":"3.2","network.hostname":"testhost1","cpu.core(s)_per_socket":"1","cpu.cpu_socket(s)":"1","memory.memtotal":"4","uname.machine":"x86_64","distribution.name":"RHEL","distribution.version":"6.4","virt.is_guest":false,"cpu.cpu(s)":1},"lifecycle_environment_id":7,"content_view_id":4}'
|
||
headers:
|
||
Accept:
|
||
- application/json;version=2
|
||
Accept-Encoding:
|
||
- gzip, deflate
|
||
User-Agent:
|
||
- Ruby
|
||
- rest-client/2.0.0 (linux-gnu x86_64) ruby/2.1.10p492
|
||
Content-Type:
|
||
- application/json
|
||
Content-Length:
|
||
- '338'
|
||
Host:
|
||
- katello.example.com:50191
|
||
response:
|
||
status:
|
||
code: 200
|
||
message: OK
|
||
headers:
|
||
Date:
|
||
- Wed, 07 Sep 2016 12:00:53 GMT
|
||
Server:
|
||
- Apache/2.4.6 (CentOS)
|
||
X-Frame-Options:
|
||
- SAMEORIGIN
|
||
X-Xss-Protection:
|
||
- 1; mode=block
|
||
X-Content-Type-Options:
|
||
- nosniff
|
||
Content-Disposition:
|
||
- inline; filename="v2.en.json"
|
||
Content-Transfer-Encoding:
|
||
- binary
|
||
Foreman-Version:
|
||
- 1.13.0-develop
|
||
Foreman-Api-Version:
|
||
- '2'
|
||
Content-Type:
|
||
- text/html
|
||
- application/json; charset=utf-8
|
||
Apipie-Checksum:
|
||
- 9544abef9cf8343005f07ed8c9f1f8e7
|
||
Etag:
|
||
- W/"cf8b16149de7cb8565ab5ba23ff95475-gzip"
|
||
Cache-Control:
|
||
- private
|
||
- max-age=0, private, must-revalidate
|
||
X-Request-Id:
|
||
- 814ddcc1-7f3d-42e8-af6f-a1d53afcf097
|
||
X-Runtime:
|
||
- '4.458503'
|
||
Via:
|
||
- 1.1 katello.example.com:50191
|
||
Vary:
|
||
- Accept-Encoding
|
||
Content-Length:
|
||
- '121'
|
||
Set-Cookie:
|
||
- _session_id=87699a497590e4fbcb3f8f5cb5913357; path=/; HttpOnly
|
||
- request_method=POST; path=/
|
||
body:
|
||
encoding: ASCII-8BIT
|
||
string: |2
|
||
{"id":15,"name":"testhost1","content_view":"Default Organization View","content_view_id":null,"environment":"Library"}
|
||
http_version:
|
||
recorded_at: Wed, 07 Sep 2016 12:00:59 GMT
|
||
- request:
|
||
method: get
|
||
uri: https://admin:changeme@katello.example.com:50191/api/hosts/15/subscriptions
|
||
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.1.10p492
|
||
Content-Type:
|
||
- application/json
|
||
Host:
|
||
- katello.example.com:50191
|
||
response:
|
||
status:
|
||
code: 200
|
||
message: OK
|
||
headers:
|
||
Date:
|
||
- Wed, 07 Sep 2016 12:00:58 GMT
|
||
Server:
|
||
- Apache/2.4.6 (CentOS)
|
||
X-Frame-Options:
|
||
- SAMEORIGIN
|
||
X-Xss-Protection:
|
||
- 1; mode=block
|
||
X-Content-Type-Options:
|
||
- nosniff
|
||
Foreman-Version:
|
||
- 1.13.0-develop
|
||
Foreman-Api-Version:
|
||
- '2'
|
||
Content-Type:
|
||
- application/json; charset=utf-8
|
||
Apipie-Checksum:
|
||
- e98945ba1db6bdbb4c25ce4988912344
|
||
- 9544abef9cf8343005f07ed8c9f1f8e7
|
||
Etag:
|
||
- W/"28f980ca6d7d7d8bdbe90747a65a208f-gzip"
|
||
Cache-Control:
|
||
- max-age=0, private, must-revalidate
|
||
X-Request-Id:
|
||
- e2dad94b-22c2-46ae-8fce-9cb20e17dab0
|
||
- ae8b5e7a-cf97-4137-9195-2fff1a2a1e10
|
||
X-Runtime:
|
||
- '0.158890'
|
||
Transfer-Encoding:
|
||
- chunked
|
||
- '0.268705'
|
||
Via:
|
||
- 1.1 katello.example.com:50191
|
||
Vary:
|
Also available in: Unified diff
fixes #16428 - set domain FastGettext
+ Initialize FastGettext properly when called under Thread.new()
+ Changed pot/po files from _ to -