Project

General

Profile

« Previous | Next » 

Revision f5d21adb

Added by Thomas McKay over 7 years ago

fixes #15581 - configuration based on foreman stanza

View differences:

test/fixtures/vcr_cassettes/setup/setup_content_views/setup.yml
---
http_interactions:
- request:
method: get
uri: https://admin:changeme@katello.example.com:50191/api/status
body:
encoding: US-ASCII
string: ''
headers:
Accept-Encoding:
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
Accept:
- "*/*"
User-Agent:
- Ruby
response:
status:
code: 200
message: OK
headers:
Date:
- Mon, 12 Sep 2016 15:39:24 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.14.0-develop
Foreman-Api-Version:
- '2'
Content-Type:
- application/json; charset=utf-8
Apipie-Checksum:
- 9544abef9cf8343005f07ed8c9f1f8e7
Etag:
- W/"1316c9d778b9181476af8a9546423fb1-gzip"
Cache-Control:
- max-age=0, private, must-revalidate
X-Request-Id:
- f06c2ff0-fd65-433b-8ed1-c6202fbe8c01
X-Runtime:
- '0.243469'
Via:
- 1.1 katello.example.com:50191
Vary:
- Accept-Encoding
Content-Length:
- '81'
Set-Cookie:
- _session_id=ae463237fa28978511b71e023521a097; path=/; HttpOnly
body:
encoding: UTF-8
string: '{"result":"ok","status":200,"version":"1.14.0-develop","api_version":2}'
http_version:
recorded_at: Mon, 12 Sep 2016 15:39:26 GMT
- request:
method: get
uri: https://admin:changeme@katello.example.com:50191/api/v2/plugins
body:
encoding: US-ASCII
string: ''
headers:
Accept-Encoding:
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
Accept:
- "*/*"
User-Agent:
- Ruby
response:
status:
code: 200
message: OK
headers:
Date:
- Mon, 12 Sep 2016 15:39:25 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.14.0-develop
Foreman-Api-Version:
- '2'
Content-Type:
- application/json; charset=utf-8
Apipie-Checksum:
- 9544abef9cf8343005f07ed8c9f1f8e7
Etag:
- W/"c547959b2afaff0cf0a8d731005e9365-gzip"
Cache-Control:
- max-age=0, private, must-revalidate
X-Request-Id:
- c03ccc30-e60a-44ff-8c3c-df5ca919ec12
X-Runtime:
- '0.183479'
Via:
- 1.1 katello.example.com:50191
Vary:
- Accept-Encoding
Content-Length:
- '566'
Set-Cookie:
- _session_id=03aefcf9dca9db25976cb2b5f57a4f78; path=/; HttpOnly
body:
encoding: ASCII-8BIT
string: !binary |-
ewogICJ0b3RhbCI6IDMsCiAgInN1YnRvdGFsIjogMywKICAicGFnZSI6IDEs
CiAgInBlcl9wYWdlIjogMjAsCiAgInNlYXJjaCI6IG51bGwsCiAgInNvcnQi
OiB7CiAgICAiYnkiOiBudWxsLAogICAgIm9yZGVyIjogbnVsbAogIH0sCiAg
InJlc3VsdHMiOiBbeyJpZCI6ImZvcmVtYW4tdGFza3MiLCJuYW1lIjoiZm9y
ZW1hbi10YXNrcyIsImF1dGhvciI6Ikl2YW4gTmXEjWFzIiwiZGVzY3JpcHRp
b24iOiJUaGUgZ29hbCBvZiB0aGlzIHBsdWdpbiBpcyB0byB1bmlmeSB0aGUg
d2F5IG9mIHNob3dpbmcgdGFzayBzdGF0dXNlcyBhY3Jvc3MgdGhlIEZvcmVt
YW4gaW5zdGFuY2UuXG5JdCBkZWZpbmVzIFRhc2sgbW9kZWwgZm9yIGtlZXBp
bmcgdGhlIGluZm9ybWF0aW9uIGFib3V0IHRoZSB0YXNrcyBhbmQgTG9jayBm
b3IgYXNzaWduaW5nIHRoZSB0YXNrc1xudG8gcmVzb3VyY2VzLiBUaGUgbG9j
a2luZyBhbGxvd3MgZGVhbGluZyB3aXRoIHByZXZlbnRpbmcgbXVsdGlwbGUg
Y29sbGlkaW5nIHRhc2tzIHRvIGJlIHJ1biBvbiB0aGVcbnNhbWUgcmVzb3Vy
Y2UuIEl0IGFsc28gb3B0aW9uYWxseSBwcm92aWRlcyBEeW5mbG93IGluZnJh
c3RydWN0dXJlIGZvciB1c2luZyBpdCBmb3IgbWFuYWdpbmcgdGhlIHRhc2tz
LlxuIiwidXJsIjoiaHR0cHM6Ly9naXRodWIuY29tL3RoZWZvcmVtYW4vZm9y
ZW1hbi10YXNrcyIsInZlcnNpb24iOiIwLjguMSJ9LHsiaWQiOiJmb3JlbWFu
X2RvY2tlciIsIm5hbWUiOiJmb3JlbWFuX2RvY2tlciIsImF1dGhvciI6IkRh
bmllbCBMb2JhdG8sIEFtb3MgQmVuYXJpIiwiZGVzY3JpcHRpb24iOiJQcm92
aXNpb24gYW5kIG1hbmFnZSBEb2NrZXIgY29udGFpbmVycyBhbmQgaW1hZ2Vz
IGZyb20gRm9yZW1hbi4iLCJ1cmwiOiJodHRwOi8vZ2l0aHViLmNvbS90aGVm
b3JlbWFuL2ZvcmVtYW4tZG9ja2VyIiwidmVyc2lvbiI6IjMuMC4wIn0seyJp
ZCI6ImthdGVsbG8iLCJuYW1lIjoia2F0ZWxsbyIsImF1dGhvciI6Ik4vQSIs
ImRlc2NyaXB0aW9uIjoiQ29udGVudCBhbmQgU3Vic2NyaXB0aW9uIE1hbmFn
ZW1lbnQgcGx1Z2luIGZvciBGb3JlbWFuIiwidXJsIjoiaHR0cDovL3d3dy5r
YXRlbGxvLm9yZyIsInZlcnNpb24iOiIzLjIuMCJ9XQp9Cg==
http_version:
recorded_at: Mon, 12 Sep 2016 15:39:26 GMT
- request:
method: get
uri: https://admin:changeme@katello.example.com:50191/katello/api/organizations?per_page=999999&search=name=%22Test%20Corporation%22
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:
- Mon, 12 Sep 2016 15:39:25 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.14.0-develop
Foreman-Api-Version:
- '2'
Content-Type:
- application/json; charset=utf-8
Apipie-Checksum:
- 9544abef9cf8343005f07ed8c9f1f8e7
Etag:
- W/"471e8acb2053be2e7a823cbd174ec330-gzip"
Cache-Control:
- max-age=0, private, must-revalidate
X-Request-Id:
- 80b9896d-48f8-423a-ba1b-9199e1bdcef1
X-Runtime:
- '0.220995'
Via:
- 1.1 katello.example.com:50191
Vary:
- Accept-Encoding
Content-Length:
- '388'
Set-Cookie:
- _session_id=ba766f8604895fcfa1aaab0ffd814849; path=/; HttpOnly
body:
encoding: ASCII-8BIT
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: Mon, 12 Sep 2016 15:39:26 GMT
- request:
method: get
uri: https://admin:changeme@katello.example.com:50191/apidoc/v2.json
......
{"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":1,"packages":0,"puppet_modules":0,"errata":{"security":0,"bugfix":0,"enhancement":0,"total":0},"yum_repositories":2,"docker_repositories":0,"ostree_repositories":0,"products":1},"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: Mon, 12 Sep 2016 15:39:31 GMT
- request:
method: get
uri: https://admin:changeme@katello.example.com:50218/api/status
body:
encoding: US-ASCII
string: ''
headers:
Accept-Encoding:
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
Accept:
- "*/*"
User-Agent:
- Ruby
response:
status:
code: 200
message: 'OK '
headers:
Date:
- Fri, 30 Sep 2016 15:39:55 GMT
Server:
- WEBrick/1.3.1 (Ruby/2.2.4/2015-12-16)
Foreman-Version:
- 1.14.0-develop
Foreman-Api-Version:
- '2'
Content-Type:
- application/json; charset=utf-8
Apipie-Checksum:
- 68d37bf606b9a03df6e1e749d6054009
Etag:
- W/"1316c9d778b9181476af8a9546423fb1-gzip"
Cache-Control:
- max-age=0, private, must-revalidate
X-Request-Id:
- 7231172b-db5e-45cb-81d9-b6fac18c8afa
X-Runtime:
- '0.079191'
Content-Security-Policy:
- 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:;
img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline''
''self''; style-src ''unsafe-inline'' ''self'''
Strict-Transport-Security:
- max-age=631152000; includeSubdomains
X-Content-Type-Options:
- nosniff
X-Download-Options:
- noopen
X-Frame-Options:
- sameorigin
X-Permitted-Cross-Domain-Policies:
- none
X-Xss-Protection:
- 1; mode=block
Via:
- 1.1 testing.example.com:50218
Vary:
- Accept-Encoding
Content-Length:
- '81'
Set-Cookie:
- _session_id=d7682a7428f8909d364e6c819d2889ec; path=/; HttpOnly
body:
encoding: UTF-8
string: '{"result":"ok","status":200,"version":"1.14.0-develop","api_version":2}'
http_version:
recorded_at: Fri, 30 Sep 2016 15:39:56 GMT
- request:
method: get
uri: https://admin:changeme@katello.example.com:50218/api/v2/plugins
body:
encoding: US-ASCII
string: ''
headers:
Accept-Encoding:
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
Accept:
- "*/*"
User-Agent:
- Ruby
response:
status:
code: 200
message: 'OK '
headers:
Date:
- Fri, 30 Sep 2016 15:39:55 GMT
Server:
- WEBrick/1.3.1 (Ruby/2.2.4/2015-12-16)
Foreman-Version:
- 1.14.0-develop
Foreman-Api-Version:
- '2'
Content-Type:
- application/json; charset=utf-8
Apipie-Checksum:
- 68d37bf606b9a03df6e1e749d6054009
Etag:
- W/"8f0162a4d2fd78df40b7f264aee93d64-gzip"
Cache-Control:
- max-age=0, private, must-revalidate
X-Request-Id:
- f73419f2-d088-4d41-a2c2-01719446361d
X-Runtime:
- '0.061947'
Content-Security-Policy:
- 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:;
img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline''
''self''; style-src ''unsafe-inline'' ''self'''
Strict-Transport-Security:
- max-age=631152000; includeSubdomains
X-Content-Type-Options:
- nosniff
X-Download-Options:
- noopen
X-Frame-Options:
- sameorigin
X-Permitted-Cross-Domain-Policies:
- none
X-Xss-Protection:
- 1; mode=block
Via:
- 1.1 testing.example.com:50218
Vary:
- Accept-Encoding
Content-Length:
- '565'
Set-Cookie:
- _session_id=ad3fef31a0f3c103f3e68f5b9076f9c8; path=/; HttpOnly
body:
encoding: ASCII-8BIT
string: !binary |-
ewogICJ0b3RhbCI6IDMsCiAgInN1YnRvdGFsIjogMywKICAicGFnZSI6IDEs
CiAgInBlcl9wYWdlIjogMjAsCiAgInNlYXJjaCI6IG51bGwsCiAgInNvcnQi
OiB7CiAgICAiYnkiOiBudWxsLAogICAgIm9yZGVyIjogbnVsbAogIH0sCiAg
InJlc3VsdHMiOiBbeyJpZCI6ImZvcmVtYW4tdGFza3MiLCJuYW1lIjoiZm9y
ZW1hbi10YXNrcyIsImF1dGhvciI6Ikl2YW4gTmXEjWFzIiwiZGVzY3JpcHRp
b24iOiJUaGUgZ29hbCBvZiB0aGlzIHBsdWdpbiBpcyB0byB1bmlmeSB0aGUg
d2F5IG9mIHNob3dpbmcgdGFzayBzdGF0dXNlcyBhY3Jvc3MgdGhlIEZvcmVt
YW4gaW5zdGFuY2UuXG5JdCBkZWZpbmVzIFRhc2sgbW9kZWwgZm9yIGtlZXBp
bmcgdGhlIGluZm9ybWF0aW9uIGFib3V0IHRoZSB0YXNrcyBhbmQgTG9jayBm
b3IgYXNzaWduaW5nIHRoZSB0YXNrc1xudG8gcmVzb3VyY2VzLiBUaGUgbG9j
a2luZyBhbGxvd3MgZGVhbGluZyB3aXRoIHByZXZlbnRpbmcgbXVsdGlwbGUg
Y29sbGlkaW5nIHRhc2tzIHRvIGJlIHJ1biBvbiB0aGVcbnNhbWUgcmVzb3Vy
Y2UuIEl0IGFsc28gb3B0aW9uYWxseSBwcm92aWRlcyBEeW5mbG93IGluZnJh
c3RydWN0dXJlIGZvciB1c2luZyBpdCBmb3IgbWFuYWdpbmcgdGhlIHRhc2tz
LlxuIiwidXJsIjoiaHR0cHM6Ly9naXRodWIuY29tL3RoZWZvcmVtYW4vZm9y
ZW1hbi10YXNrcyIsInZlcnNpb24iOiIwLjguMiJ9LHsiaWQiOiJmb3JlbWFu
X2RvY2tlciIsIm5hbWUiOiJmb3JlbWFuX2RvY2tlciIsImF1dGhvciI6IkRh
bmllbCBMb2JhdG8sIEFtb3MgQmVuYXJpIiwiZGVzY3JpcHRpb24iOiJQcm92
aXNpb24gYW5kIG1hbmFnZSBEb2NrZXIgY29udGFpbmVycyBhbmQgaW1hZ2Vz
IGZyb20gRm9yZW1hbi4iLCJ1cmwiOiJodHRwOi8vZ2l0aHViLmNvbS90aGVm
b3JlbWFuL2ZvcmVtYW4tZG9ja2VyIiwidmVyc2lvbiI6IjMuMC4wIn0seyJp
ZCI6ImthdGVsbG8iLCJuYW1lIjoia2F0ZWxsbyIsImF1dGhvciI6Ik4vQSIs
ImRlc2NyaXB0aW9uIjoiQ29udGVudCBhbmQgU3Vic2NyaXB0aW9uIE1hbmFn
ZW1lbnQgcGx1Z2luIGZvciBGb3JlbWFuIiwidXJsIjoiaHR0cDovL3d3dy5r
YXRlbGxvLm9yZyIsInZlcnNpb24iOiIzLjMuMCJ9XQp9Cg==
http_version:
recorded_at: Fri, 30 Sep 2016 15:39:56 GMT
- request:
method: get
uri: https://admin:changeme@katello.example.com:50218/katello/api/organizations?per_page=999999&search=name=%22Test%20Corporation%22
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
Accept-Language:
- en
Host:
- katello.example.com:50218
response:
status:
code: 200
message: 'OK '
headers:
Date:
- Fri, 30 Sep 2016 15:39:55 GMT
Server:
- WEBrick/1.3.1 (Ruby/2.2.4/2015-12-16)
Foreman-Version:
- 1.14.0-develop
Foreman-Api-Version:
- '2'
Content-Type:
- application/json; charset=utf-8
Apipie-Checksum:
- 68d37bf606b9a03df6e1e749d6054009
Etag:
- W/"d409184974d814dc55ce7ccb1cac5fd0-gzip"
Cache-Control:
- max-age=0, private, must-revalidate
X-Request-Id:
- a2745d21-f180-4ad4-ad60-640aafd9dee4
X-Runtime:
- '0.079015'
Content-Security-Policy:
- 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:;
img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline''
''self''; style-src ''unsafe-inline'' ''self'''
Strict-Transport-Security:
- max-age=631152000; includeSubdomains
X-Content-Type-Options:
- nosniff
X-Download-Options:
- noopen
X-Frame-Options:
- sameorigin
X-Permitted-Cross-Domain-Policies:
- none
X-Xss-Protection:
- 1; mode=block
Via:
- 1.1 testing.example.com:50218
Vary:
- Accept-Encoding
Content-Length:
- '388'
Set-Cookie:
- _session_id=2f05a7f241f5252bc861fd5699abb413; path=/; HttpOnly
body:
encoding: ASCII-8BIT
string: |
{
"total": 2,
"subtotal": 1,
"page": 1,
"per_page": 999999,
"search": "name=\"Test Corporation\"",
"sort": {
"by": null,
"order": null
},
"results": [{"label":"testcorp","created_at":"2016-09-30 15:10:48 UTC","updated_at":"2016-09-30 15:10:48 UTC","id":8,"name":"Test Corporation","title":"Test Corporation","description":"Testing today for a better tomorrow"}]
}
http_version:
recorded_at: Fri, 30 Sep 2016 15:39:56 GMT
- request:
method: get
uri: https://admin:changeme@katello.example.com:50218/katello/api/organizations/8/content_views?nondefault=true&per_page=999999
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
Accept-Language:
- en
Host:
- katello.example.com:50218
response:
status:
code: 200
message: 'OK '
headers:
Date:
- Fri, 30 Sep 2016 15:39:55 GMT
Server:
- WEBrick/1.3.1 (Ruby/2.2.4/2015-12-16)
Foreman-Version:
- 1.14.0-develop
Foreman-Api-Version:
- '2'
Content-Type:
- application/json; charset=utf-8
Apipie-Checksum:
- 68d37bf606b9a03df6e1e749d6054009
Etag:
- W/"2c1c48ba932f9ca0726f7ee5cf96d964-gzip"
Cache-Control:
- max-age=0, private, must-revalidate
X-Request-Id:
- 0d458b0a-7eb1-4f16-89e3-bc4b552cab87
X-Runtime:
- '0.135687'
Content-Security-Policy:
- 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:;
img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline''
''self''; style-src ''unsafe-inline'' ''self'''
Strict-Transport-Security:
- max-age=631152000; includeSubdomains
X-Content-Type-Options:
- nosniff
X-Download-Options:
- noopen
X-Frame-Options:
- sameorigin
X-Permitted-Cross-Domain-Policies:
- none
X-Xss-Protection:
- 1; mode=block
Via:
- 1.1 testing.example.com:50218
Vary:
- Accept-Encoding
Content-Length:
- '923'
Set-Cookie:
- _session_id=17516e3963e6ce8a38a9bd2de57c2642; 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":false,"next_version":2,"id":3,"name":"Test Puppet Modules","label":"Test_Puppet_Modules","description":null,"organization":{"name":"Test Corporation","label":"testcorp","id":8},"created_at":"2016-09-30 15:12:15 UTC","updated_at":"2016-09-30 15:25:51 UTC","environments":[{"id":2,"name":"Library","label":"Library","permissions":{"readable":true}}],"repositories":[],"puppet_modules":[],"versions":[{"id":4,"version":"1.0","published":"2016-09-30 15:25:51 UTC","environment_ids":[2]}],"components":[],"activation_keys":[],"last_published":"2016-09-30 15:25:51 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: Fri, 30 Sep 2016 15:39:56 GMT
- request:
method: put
uri: https://admin:changeme@katello.example.com:50218/katello/api/content_views/3
body:
encoding: UTF-8
string: '{"description":null,"repository_ids":[]}'
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
Accept-Language:
- en
Content-Length:
- '40'
Host:
- katello.example.com:50218
response:
status:
code: 200
message: 'OK '
headers:
Date:
- Fri, 30 Sep 2016 15:39:57 GMT
Server:
- WEBrick/1.3.1 (Ruby/2.2.4/2015-12-16)
Foreman-Version:
- 1.14.0-develop
Foreman-Api-Version:
- '2'
Content-Type:
- application/json; charset=utf-8
Apipie-Checksum:
- 68d37bf606b9a03df6e1e749d6054009
Etag:
- W/"6bd7a60b92889ea0bb657ee48cfae9f5-gzip"
Cache-Control:
- max-age=0, private, must-revalidate
X-Request-Id:
- 4cb4026b-0ab4-4d10-8a7a-2e234113f88b
X-Runtime:
- '1.432936'
Content-Security-Policy:
- 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:;
img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline''
''self''; style-src ''unsafe-inline'' ''self'''
Strict-Transport-Security:
- max-age=631152000; includeSubdomains
X-Content-Type-Options:
- nosniff
X-Download-Options:
- noopen
X-Frame-Options:
- sameorigin
X-Permitted-Cross-Domain-Policies:
- none
X-Xss-Protection:
- 1; mode=block
Via:
- 1.1 testing.example.com:50218
Vary:
- Accept-Encoding
Content-Length:
- '823'
Set-Cookie:
- _session_id=a1b68abbff424da90d9c255b0625bb33; path=/; HttpOnly
- request_method=PUT; path=/
body:
encoding: ASCII-8BIT
string: |2
{"content_host_count":0,"composite":false,"repository_ids":[],"component_ids":[],"default":false,"next_version":2,"id":3,"name":"Test Puppet Modules","label":"Test_Puppet_Modules","description":null,"organization":{"name":"Test Corporation","label":"testcorp","id":8},"created_at":"2016-09-30 15:12:15 UTC","updated_at":"2016-09-30 15:25:51 UTC","environments":[{"id":2,"name":"Library","label":"Library","permissions":{"readable":true}}],"repositories":[],"puppet_modules":[],"versions":[{"id":4,"version":"1.0","published":"2016-09-30 15:25:51 UTC","environment_ids":[2]}],"components":[],"activation_keys":[],"last_published":"2016-09-30 15:25:51 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: Fri, 30 Sep 2016 15:39:57 GMT
- request:
method: get
uri: https://admin:changeme@katello.example.com:50218/katello/api/content_views/3
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
Accept-Language:
- en
Host:
- katello.example.com:50218
response:
status:
code: 200
message: 'OK '
headers:
Date:
- Fri, 30 Sep 2016 15:39:57 GMT
Server:
- WEBrick/1.3.1 (Ruby/2.2.4/2015-12-16)
Foreman-Version:
- 1.14.0-develop
Foreman-Api-Version:
- '2'
Content-Type:
- application/json; charset=utf-8
Apipie-Checksum:
- 68d37bf606b9a03df6e1e749d6054009
Etag:
- W/"6bd7a60b92889ea0bb657ee48cfae9f5-gzip"
Cache-Control:
- max-age=0, private, must-revalidate
X-Request-Id:
- be9ff58c-6384-4bc6-9820-00f9f2a41e02
X-Runtime:
- '0.124553'
Content-Security-Policy:
- 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:;
img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline''
''self''; style-src ''unsafe-inline'' ''self'''
Strict-Transport-Security:
- max-age=631152000; includeSubdomains
X-Content-Type-Options:
- nosniff
X-Download-Options:
- noopen
X-Frame-Options:
- sameorigin
X-Permitted-Cross-Domain-Policies:
- none
X-Xss-Protection:
- 1; mode=block
Via:
- 1.1 testing.example.com:50218
Vary:
- Accept-Encoding
Content-Length:
- '823'
Set-Cookie:
- _session_id=d4f8b41041d76610fa9c4c8f1870a2ec; path=/; HttpOnly
body:
encoding: ASCII-8BIT
string: |2
{"content_host_count":0,"composite":false,"repository_ids":[],"component_ids":[],"default":false,"next_version":2,"id":3,"name":"Test Puppet Modules","label":"Test_Puppet_Modules","description":null,"organization":{"name":"Test Corporation","label":"testcorp","id":8},"created_at":"2016-09-30 15:12:15 UTC","updated_at":"2016-09-30 15:25:51 UTC","environments":[{"id":2,"name":"Library","label":"Library","permissions":{"readable":true}}],"repositories":[],"puppet_modules":[],"versions":[{"id":4,"version":"1.0","published":"2016-09-30 15:25:51 UTC","environment_ids":[2]}],"components":[],"activation_keys":[],"last_published":"2016-09-30 15:25:51 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: Fri, 30 Sep 2016 15:39:58 GMT
- request:
method: get
uri: https://admin:changeme@katello.example.com:50218/katello/api/environments/2
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
Accept-Language:
- en
Host:
- katello.example.com:50218
response:
status:
code: 200
message: 'OK '
headers:
Date:
- Fri, 30 Sep 2016 15:39:57 GMT
Server:
- WEBrick/1.3.1 (Ruby/2.2.4/2015-12-16)
Foreman-Version:
- 1.14.0-develop
Foreman-Api-Version:
- '2'
Content-Type:
- application/json; charset=utf-8
Apipie-Checksum:
- 68d37bf606b9a03df6e1e749d6054009
Etag:
- W/"5cbd1d86505200817b949a6af3b9653e-gzip"
Cache-Control:
- max-age=0, private, must-revalidate
X-Request-Id:
- 91401449-eba2-4dc2-be6b-40cf8e7ee3e4
X-Runtime:
- '0.111696'
Content-Security-Policy:
- 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:;
img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline''
''self''; style-src ''unsafe-inline'' ''self'''
Strict-Transport-Security:
- max-age=631152000; includeSubdomains
X-Content-Type-Options:
- nosniff
X-Download-Options:
- noopen
X-Frame-Options:
- sameorigin
X-Permitted-Cross-Domain-Policies:
- none
X-Xss-Protection:
- 1; mode=block
Via:
- 1.1 testing.example.com:50218
Vary:
- Accept-Encoding
Content-Length:
- '696'
Set-Cookie:
- _session_id=7b54bcbb2a52bec0264d69fc0646906e; path=/; HttpOnly
body:
encoding: ASCII-8BIT
string: |2
{"library":true,"id":2,"name":"Library","label":"Library","description":null,"organization":{"name":"Test Corporation","label":"testcorp","id":8},"created_at":"2016-09-30 15:10:48 UTC","updated_at":"2016-09-30 15:10:48 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}}
http_version:
recorded_at: Fri, 30 Sep 2016 15:39:58 GMT
recorded_with: VCR 3.0.3

Also available in: Unified diff