|
---
|
|
http_interactions:
|
|
- request:
|
|
method: get
|
|
uri: https://username:password@subscription.rhn.redhat.com/subscription/users/username/owners
|
|
body:
|
|
encoding: US-ASCII
|
|
string: ''
|
|
headers:
|
|
Accept:
|
|
- application/json
|
|
Accept-Encoding:
|
|
- gzip, deflate
|
|
User-Agent:
|
|
- rest-client/2.0.0 (linux-gnu x86_64) ruby/2.1.10p492
|
|
Accept-Language:
|
|
- en
|
|
Content-Type:
|
|
- application/json
|
|
Host:
|
|
- subscription.rhn.redhat.com
|
|
response:
|
|
status:
|
|
code: 401
|
|
message: Unauthorized
|
|
headers:
|
|
Server:
|
|
- Apache-Coyote/1.1
|
|
X-Version:
|
|
- 0.9.51.15-1
|
|
Www-Authenticate:
|
|
- Basic Realm=candlepin
|
|
Content-Type:
|
|
- application/json
|
|
Transfer-Encoding:
|
|
- chunked
|
|
Date:
|
|
- Mon, 12 Sep 2016 15:33:43 GMT
|
|
body:
|
|
encoding: UTF-8
|
|
string: '{"displayMessage":"Invalid username or password. To create a login,
|
|
please visit https://www.redhat.com/wapps/ugc/register.html","requestUuid":"84fd38d6-df64-4d53-add9-02ec1d05f090"}'
|
|
http_version:
|
|
recorded_at: Mon, 12 Sep 2016 15:33:43 GMT
|
|
- 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:22 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:
|
|
- ab806b0f-1bee-4810-9990-1162bdadaecb
|
|
X-Runtime:
|
|
- '0.297591'
|
|
Via:
|
|
- 1.1 katello.example.com:50191
|
|
Vary:
|
|
- Accept-Encoding
|
|
Content-Length:
|
|
- '81'
|
|
Set-Cookie:
|
|
- _session_id=e946926e20fef9b182a714fc27eb755a; 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:22 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:22 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:
|
|
- 788bf023-0241-4c35-9fe9-8cb532afca33
|
|
X-Runtime:
|
|
- '1.196359'
|
|
Via:
|
|
- 1.1 katello.example.com:50191
|
|
Vary:
|
|
- Accept-Encoding
|
|
Content-Length:
|
|
- '566'
|
|
Set-Cookie:
|
|
- _session_id=0e758cfed039812caa5d9d8deaed3185; 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:23 GMT
|
|
- request:
|
|
method: get
|
|
uri: https://username:password@subscription.rhn.redhat.com/subscription/users/username/owners
|
|
body:
|
|
encoding: US-ASCII
|
|
string: ''
|
|
headers:
|
|
Accept:
|
|
- application/json
|
|
Accept-Encoding:
|
|
- gzip, deflate
|
|
User-Agent:
|
|
- rest-client/2.0.0 (linux-gnu x86_64) ruby/2.1.10p492
|
|
Accept-Language:
|
|
- en
|
|
Content-Type:
|
|
- application/json
|
|
Host:
|
|
- subscription.rhn.redhat.com
|
|
response:
|
|
status:
|
|
code: 401
|
|
message: Unauthorized
|
|
headers:
|
|
Server:
|
|
- Apache-Coyote/1.1
|
|
X-Version:
|
|
- 0.9.51.15-1
|
|
Www-Authenticate:
|
|
- Basic Realm=candlepin
|
|
Content-Type:
|
|
- application/json
|
|
Transfer-Encoding:
|
|
- chunked
|
|
Date:
|
|
- Mon, 12 Sep 2016 15:39:24 GMT
|
|
body:
|
|
encoding: UTF-8
|
|
string: '{"displayMessage":"Invalid username or password. To create a login,
|
|
please visit https://www.redhat.com/wapps/ugc/register.html","requestUuid":"b68563c7-0e7a-4573-b767-dbdd21da146c"}'
|
|
http_version:
|
|
recorded_at: Mon, 12 Sep 2016 15:39:24 GMT
|
|
recorded_with: VCR 3.0.3
|