Project

General

Profile

Revision f5d21adb

Added by Thomas McKay over 5 years ago

fixes #15581 - configuration based on foreman stanza

View differences:

test/fixtures/vcr_cassettes/setup/setup_subscriptions/setup.yml
2 2
http_interactions:
3 3
- request:
4 4
    method: get
5
    uri: https://admin:changeme@katello.example.com:50191/api/status
5
    uri: https://admin:changeme@katello.example.com:50191/katello/api/organizations/9
6 6
    body:
7 7
      encoding: US-ASCII
8 8
      string: ''
9 9
    headers:
10
      Accept-Encoding:
11
      - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
12 10
      Accept:
13
      - "*/*"
11
      - application/json;version=2
12
      Accept-Encoding:
13
      - gzip, deflate
14 14
      User-Agent:
15
      - Ruby
15
      - rest-client/2.0.0 (linux-gnu x86_64) ruby/2.1.10p492
16
      Content-Type:
17
      - application/json
18
      Host:
19
      - katello.example.com:50191
16 20
  response:
17 21
    status:
18 22
      code: 200
19 23
      message: OK
20 24
    headers:
21 25
      Date:
22
      - Mon, 12 Sep 2016 15:40:22 GMT
26
      - Mon, 12 Sep 2016 15:40:24 GMT
23 27
      Server:
24 28
      - Apache/2.4.6 (CentOS)
25 29
      X-Frame-Options:
......
37 41
      Apipie-Checksum:
38 42
      - 9544abef9cf8343005f07ed8c9f1f8e7
39 43
      Etag:
40
      - W/"1316c9d778b9181476af8a9546423fb1-gzip"
44
      - W/"253ac9fa8c0d829e51da8f57b05de99d-gzip"
41 45
      Cache-Control:
42 46
      - max-age=0, private, must-revalidate
43 47
      X-Request-Id:
44
      - 955f8b7a-305c-456d-9187-401f67aa2ffe
48
      - fd352d8f-a41f-4caa-bc21-dfe57de89f31
45 49
      X-Runtime:
46
      - '0.218424'
50
      - '2.694657'
47 51
      Via:
48 52
      - 1.1 katello.example.com:50191
49 53
      Vary:
50 54
      - Accept-Encoding
51 55
      Content-Length:
52
      - '81'
56
      - '21851'
53 57
      Set-Cookie:
54
      - _session_id=c21a6bcb7a3c6d94d6baedeadd900b5d; path=/; HttpOnly
58
      - _session_id=5f61dc21f88e42483446199bbc08c9c4; path=/; HttpOnly
55 59
    body:
56
      encoding: UTF-8
57
      string: '{"result":"ok","status":200,"version":"1.14.0-develop","api_version":2}'
60
      encoding: ASCII-8BIT
61
      string: '{"label":"testcorp","owner_details":{"parentOwner":null,"id":"ff80808156eb30a60157024c785205e2","key":"testcorp","displayName":"Test
62
        Corporation","contentPrefix":"/testcorp/$env","defaultServiceLevel":null,"upstreamConsumer":{"id":"ff80808156eb30a6015704818a920660","uuid":"d45ac754-56e8-425e-a6ef-2028953f6f2c","name":"TestCorp","idCert":{"key":"-----BEGIN
63
        RSA PRIVATE KEY-----\nMIIEowIBAAKCAQEAnR41trDH6LJ4Tobp73rsvM7Sl+nMItXNW7HSjhKQg78nFotM\naGRB9XS3z7wzKtunqIHcj38UwGBE01qLIO7aBXJHAeDiZVJdRaq03fcpQU3OywCw\nzjzfIRxYP8u5S1bjE60QXwv+ao0nbEYJ45EBmFybL6NJBcATsvPTadRzy236kk0h\nnOJl+IXXU+29eGjY7GWXjm+QYf//CHN+ngEh8g/sxSafDM6w7ZlPi9HJSaXK363R\n/nuy+4KqYE0MHa/7Iyb+HnyQEn/XTuFLJk3/EKr7gwxOVV2in6CQEeXLNuWek1Xt\nUzBDL/jPNoowFM18kmYBBg5/M3gqMX4eXBVfxQIDAQABAoIBAAeWduecv/rH67F3\nKIMNP7OalWcKvnYMNz+vZcjAssP6Dkwza/w6o0jUWzAoGZx/QSiNJPa1H25u98Px\nQnjTsCnFLBK2JpjYEnMT3Go/znk95be+D8vV+ryhns1t7EPsLUk8+WZtsNq6eGXt\nN/sKfLY7+q6hRxyE+y6QQeyBexoe4OnELeeb9KFxpE9H8TV67Ed9jqLbtXsR/8Nq\nWZW7ZYHBuvYuGHgZQWY9wWks3HW1ygC+y1BpfeYA9z85HH+t1x7mG8lOBoe0eV95\nhmHDwQInPPdBB20szGTRB2UjKmFCIGX/EYn/RJZvi/kxlpTzSLTiBDDUKqjAyWC/\ngdRhp/0CgYEA7qh1ng34FXT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SjYlUJle0cykonMBMGA1UdJQQMMAoGCCsGAQUFBwMCMBYGA1UdEQQPMA2GC0NO\nPVRlc3RDb3JwMA0GCSqGSIb3DQEBBQUAA4ICAQBp4djGKuE+NCfYE0Br3IlpKnrm\nCpDF8qs4/r9A/tr+PLLhDnRmzkygSJ7KsIUXYV8oW+QhU5fe2ggPaJFfynY2AVOc\nZHbwvHKoQoUUrVlZFkcwhWcL7vvTEJQUONaOOLUgAzGIdfAmBYPWBqbwf80croGh\nY5xBcNqRw3cxfi0joE+LY4brEW5vJF8DnxhEX0eIJtjas+zb3ckeUJgYIyirXdHJ\nqrAANWjUfh9JFehwjAigx6TnGK+pr+zpbKTX9O7lhmvsCf+82NVlZmY342IUE8Ss\npWjhsydl8NT80fGJV/1fwpgyos9EvpjayXh9bYxZhDkiHaUUL/WBInEdyi4xFJgf\nPXnaV+2q48/3oOVZa2Ng/vcaBG5nEZYvK+jTG205t9d9X9Tp46iH/mvyIH8VIF0H\np/OtIoRnGLjliYP0dHp91G4UTTEpg8Cxa77r77qlwASORsFF8MJGMKMJg/YNO7fQ\nCskpqb7UZfSXmvZ5AIZ/Kzncuj1IvZMLhjMr/QAwSO0/v/GnmSqLwMamM2viq8un\nef2TQy9Xcuxcp0n7mcDHUUaTpiW1tPc5ikUmCUQ2ZuNTjE6Noa0kSV3AHG3TbSkU\n+qT9B5RSL1YBAEw5xwttvjlju2jaYaYT6xI4LioXIVJ8lEwdrggxmqTj1ArgqP2c\nHAtS6vziTnwbP+sS3g==\n-----END
65
        CERTIFICATE-----\n","id":"ff80808156eb30a6015704818a91065f","serial":{"id":8261278538809906032,"revoked":false,"collected":false,"expiration":"2017-08-16T12:29:31.000+0000","serial":8261278538809906032,"created":"2016-09-07T11:56:21.009+0000","updated":"2016-09-07T11:56:21.009+0000"},"created":"2016-09-07T11:56:21.009+0000","updated":"2016-09-07T11:56:21.009+0000"},"type":{"id":"ff80808156eb30a60156ebcdc4930005","label":"satellite","manifest":true,"created":"2016-09-02T16:49:06.195+0000","updated":"2016-09-02T16:49:06.195+0000"},"ownerId":"ff80808156eb30a60157024c785205e2","webUrl":"access.stage.redhat.com/management/distributors/","apiUrl":"https://subscription.rhn.stage.redhat.com/subscription/consumers/","created":"2016-09-07T11:56:21.010+0000","updated":"2016-09-07T11:56:21.010+0000"},"logLevel":null,"href":"/owners/testcorp","created":"2016-09-07T01:39:08.498+0000","updated":"2016-09-07T11:56:21.159+0000"},"redhat_repository_url":"https://cdn.redhat.com","service_levels":["Premium","Standard"],"service_level":null,"select_all_types":[],"description":"Testing
66
        today for a better tomorrow","created_at":"2016-09-07 01:39:03 UTC","updated_at":"2016-09-07
67
        01:39:03 UTC","ancestry":null,"parent_id":null,"parent_name":null,"id":9,"name":"Test
68
        Corporation","title":"Test Corporation","users":[],"smart_proxies":[{"name":"katello.example.com","id":1,"url":"https://katello.example.com:9090"}],"subnets":[{"id":5,"name":"Test
69
        Subnet","network_address":"192.168.100.1/24"}],"compute_resources":[],"media":[],"config_templates":[{"id":90,"name":"Katello
70
        Atomic Kickstart Default","template_kind_id":5,"template_kind_name":"provision"},{"id":89,"name":"subscription_manager_registration","template_kind_id":null,"template_kind_name":null},{"id":88,"name":"Katello
71
        Kickstart Default Finish","template_kind_id":6,"template_kind_name":"finish"},{"id":87,"name":"Katello
72
        Kickstart Default User Data","template_kind_id":8,"template_kind_name":"user_data"},{"id":86,"name":"Katello
73
        Kickstart Default","template_kind_id":5,"template_kind_name":"provision"},{"id":72,"name":"pxegrub2_discovery","template_kind_id":null,"template_kind_name":null},{"id":71,"name":"pxegrub_discovery","template_kind_id":null,"template_kind_name":null},{"id":70,"name":"pxegrub2_chainload","template_kind_id":null,"template_kind_name":null},{"id":69,"name":"pxegrub_chainload","template_kind_id":null,"template_kind_name":null},{"id":68,"name":"pxelinux_chainload","template_kind_id":null,"template_kind_name":null},{"id":67,"name":"kickstart_cmdline","template_kind_id":null,"template_kind_name":null},{"id":66,"name":"saltstack_setup","template_kind_id":null,"template_kind_name":null},{"id":61,"name":"puppetlabs_repo","template_kind_id":null,"template_kind_name":null},{"id":60,"name":"puppet_setup","template_kind_id":null,"template_kind_name":null},{"id":59,"name":"puppet.conf","template_kind_id":null,"template_kind_name":null},{"id":58,"name":"preseed_networking_setup","template_kind_id":null,"template_kind_name":null},{"id":57,"name":"kickstart_networking_setup","template_kind_id":null,"template_kind_name":null},{"id":56,"name":"http_proxy","template_kind_id":null,"template_kind_name":null},{"id":55,"name":"freeipa_register","template_kind_id":null,"template_kind_name":null},{"id":54,"name":"fix_hosts","template_kind_id":null,"template_kind_name":null},{"id":53,"name":"epel","template_kind_id":null,"template_kind_name":null},{"id":52,"name":"coreos_cloudconfig","template_kind_id":null,"template_kind_name":null},{"id":51,"name":"chef_client","template_kind_id":null,"template_kind_name":null},{"id":50,"name":"bmc_nic_setup","template_kind_id":null,"template_kind_name":null},{"id":49,"name":"alterator_pkglist","template_kind_id":null,"template_kind_name":null},{"id":48,"name":"XenServer
74
        default PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":47,"name":"XenServer
75
        default finish","template_kind_id":6,"template_kind_name":"finish"},{"id":46,"name":"XenServer
76
        default answerfile","template_kind_id":5,"template_kind_name":"provision"},{"id":45,"name":"WAIK
77
        default PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":44,"name":"UserData
78
        default","template_kind_id":8,"template_kind_name":"user_data"},{"id":64,"name":"remote_execution_ssh_keys","template_kind_id":null,"template_kind_name":null},{"id":43,"name":"Preseed
79
        default user data","template_kind_id":8,"template_kind_name":"user_data"},{"id":42,"name":"Preseed
80
        default iPXE","template_kind_id":4,"template_kind_name":"iPXE"},{"id":41,"name":"Preseed
81
        default PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":40,"name":"Preseed
82
        default finish","template_kind_id":6,"template_kind_name":"finish"},{"id":39,"name":"Preseed
83
        default","template_kind_id":5,"template_kind_name":"provision"},{"id":38,"name":"NX-OS
84
        default POAP setup","template_kind_id":10,"template_kind_name":"POAP"},{"id":37,"name":"Kickstart
85
        default user data","template_kind_id":8,"template_kind_name":"user_data"},{"id":65,"name":"saltstack_minion","template_kind_id":null,"template_kind_name":null},{"id":36,"name":"Kickstart
86
        default iPXE","template_kind_id":4,"template_kind_name":"iPXE"},{"id":35,"name":"Kickstart
87
        default PXEGrub2","template_kind_id":3,"template_kind_name":"PXEGrub2"},{"id":34,"name":"Kickstart
88
        default PXEGrub","template_kind_id":2,"template_kind_name":"PXEGrub"},{"id":33,"name":"Kickstart
89
        default PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":32,"name":"Kickstart
90
        default finish","template_kind_id":6,"template_kind_name":"finish"},{"id":31,"name":"Kickstart
91
        RHEL default","template_kind_id":5,"template_kind_name":"provision"},{"id":30,"name":"Kickstart
92
        default","template_kind_id":5,"template_kind_name":"provision"},{"id":29,"name":"Junos
93
        default finish","template_kind_id":6,"template_kind_name":"finish"},{"id":63,"name":"redhat_register","template_kind_id":null,"template_kind_name":null},{"id":62,"name":"pxelinux_discovery","template_kind_id":null,"template_kind_name":null},{"id":28,"name":"Junos
94
        default ZTP config","template_kind_id":9,"template_kind_name":"ZTP"},{"id":27,"name":"Junos
95
        default SLAX","template_kind_id":5,"template_kind_name":"provision"},{"id":26,"name":"Jumpstart
96
        default PXEGrub","template_kind_id":2,"template_kind_name":"PXEGrub"},{"id":25,"name":"Jumpstart
97
        default finish","template_kind_id":6,"template_kind_name":"finish"},{"id":24,"name":"Jumpstart
98
        default","template_kind_id":5,"template_kind_name":"provision"},{"id":23,"name":"Grubby
99
        default","template_kind_id":7,"template_kind_name":"script"},{"id":22,"name":"FreeBSD
100
        (mfsBSD) PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":21,"name":"FreeBSD
101
        (mfsBSD) provision","template_kind_id":5,"template_kind_name":"provision"},{"id":20,"name":"FreeBSD
102
        (mfsBSD) finish","template_kind_id":6,"template_kind_name":"finish"},{"id":19,"name":"CoreOS
103
        PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":18,"name":"CoreOS
104
        provision","template_kind_id":5,"template_kind_name":"provision"},{"id":17,"name":"AutoYaST
105
        default iPXE","template_kind_id":4,"template_kind_name":"iPXE"},{"id":16,"name":"AutoYaST
106
        default PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":15,"name":"AutoYaST
107
        SLES default","template_kind_id":5,"template_kind_name":"provision"},{"id":14,"name":"AutoYaST
108
        default","template_kind_id":5,"template_kind_name":"provision"},{"id":13,"name":"Atomic
109
        Kickstart default","template_kind_id":5,"template_kind_name":"provision"},{"id":12,"name":"Alterator
110
        default PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":11,"name":"Alterator
111
        default finish","template_kind_id":6,"template_kind_name":"finish"},{"id":10,"name":"Alterator
112
        default","template_kind_id":5,"template_kind_name":"provision"},{"id":9,"name":"PXELinux
113
        chain iPXE UNDI","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":8,"name":"PXELinux
114
        chain iPXE","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":7,"name":"PXELinux
115
        default memdisk","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":6,"name":"PXEGrub2
116
        default local boot","template_kind_id":3,"template_kind_name":"PXEGrub2"},{"id":5,"name":"PXEGrub
117
        default local boot","template_kind_id":2,"template_kind_name":"PXEGrub"},{"id":4,"name":"PXELinux
118
        default local boot","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":3,"name":"PXEGrub2
119
        global default","template_kind_id":3,"template_kind_name":"PXEGrub2"},{"id":2,"name":"PXEGrub
120
        global default","template_kind_id":2,"template_kind_name":"PXEGrub"},{"id":1,"name":"PXELinux
121
        global default","template_kind_id":1,"template_kind_name":"PXELinux"}],"ptables":[{"os_family":"Xenserver","created_at":"2016-09-02
122
        14:01:03 UTC","updated_at":"2016-09-02 14:01:03 UTC","name":"XenServer default","id":85},{"os_family":"Debian","created_at":"2016-09-02
123
        14:01:03 UTC","updated_at":"2016-09-02 14:01:03 UTC","name":"Preseed custom
124
        LVM","id":84},{"os_family":"Debian","created_at":"2016-09-02 14:01:03 UTC","updated_at":"2016-09-02
125
        14:01:03 UTC","name":"Preseed default","id":83},{"os_family":"NXOS","created_at":"2016-09-02
126
        14:01:03 UTC","updated_at":"2016-09-02 14:01:03 UTC","name":"NX-OS default
127
        fake","id":82},{"os_family":"Redhat","created_at":"2016-09-02 14:01:03 UTC","updated_at":"2016-09-02
128
        14:01:03 UTC","name":"Kickstart default","id":81},{"os_family":"Junos","created_at":"2016-09-02
129
        14:01:03 UTC","updated_at":"2016-09-02 14:01:03 UTC","name":"Junos default
130
        fake","id":80},{"os_family":"Solaris","created_at":"2016-09-02 14:01:03 UTC","updated_at":"2016-09-02
131
        14:01:03 UTC","name":"Jumpstart mirrored","id":79},{"os_family":"Solaris","created_at":"2016-09-02
132
        14:01:03 UTC","updated_at":"2016-09-02 14:01:03 UTC","name":"Jumpstart default","id":78},{"os_family":"Freebsd","created_at":"2016-09-02
133
        14:01:03 UTC","updated_at":"2016-09-02 14:01:03 UTC","name":"FreeBSD","id":77},{"os_family":"Coreos","created_at":"2016-09-02
134
        14:01:03 UTC","updated_at":"2016-09-02 14:01:03 UTC","name":"CoreOS default
135
        fake","id":76},{"os_family":"Suse","created_at":"2016-09-02 14:01:02 UTC","updated_at":"2016-09-02
136
        14:01:02 UTC","name":"AutoYaST LVM","id":75},{"os_family":"Suse","created_at":"2016-09-02
137
        14:01:02 UTC","updated_at":"2016-09-02 14:01:02 UTC","name":"AutoYaST entire
138
        virtual disk","id":74},{"os_family":"Suse","created_at":"2016-09-02 14:01:02
139
        UTC","updated_at":"2016-09-02 14:01:02 UTC","name":"AutoYaST entire SCSI disk","id":73}],"provisioning_templates":[{"id":90,"name":"Katello
140
        Atomic Kickstart Default","template_kind_id":5,"template_kind_name":"provision"},{"id":89,"name":"subscription_manager_registration","template_kind_id":null,"template_kind_name":null},{"id":88,"name":"Katello
141
        Kickstart Default Finish","template_kind_id":6,"template_kind_name":"finish"},{"id":87,"name":"Katello
142
        Kickstart Default User Data","template_kind_id":8,"template_kind_name":"user_data"},{"id":86,"name":"Katello
143
        Kickstart Default","template_kind_id":5,"template_kind_name":"provision"},{"id":72,"name":"pxegrub2_discovery","template_kind_id":null,"template_kind_name":null},{"id":71,"name":"pxegrub_discovery","template_kind_id":null,"template_kind_name":null},{"id":70,"name":"pxegrub2_chainload","template_kind_id":null,"template_kind_name":null},{"id":69,"name":"pxegrub_chainload","template_kind_id":null,"template_kind_name":null},{"id":68,"name":"pxelinux_chainload","template_kind_id":null,"template_kind_name":null},{"id":67,"name":"kickstart_cmdline","template_kind_id":null,"template_kind_name":null},{"id":66,"name":"saltstack_setup","template_kind_id":null,"template_kind_name":null},{"id":61,"name":"puppetlabs_repo","template_kind_id":null,"template_kind_name":null},{"id":60,"name":"puppet_setup","template_kind_id":null,"template_kind_name":null},{"id":59,"name":"puppet.conf","template_kind_id":null,"template_kind_name":null},{"id":58,"name":"preseed_networking_setup","template_kind_id":null,"template_kind_name":null},{"id":57,"name":"kickstart_networking_setup","template_kind_id":null,"template_kind_name":null},{"id":56,"name":"http_proxy","template_kind_id":null,"template_kind_name":null},{"id":55,"name":"freeipa_register","template_kind_id":null,"template_kind_name":null},{"id":54,"name":"fix_hosts","template_kind_id":null,"template_kind_name":null},{"id":53,"name":"epel","template_kind_id":null,"template_kind_name":null},{"id":52,"name":"coreos_cloudconfig","template_kind_id":null,"template_kind_name":null},{"id":51,"name":"chef_client","template_kind_id":null,"template_kind_name":null},{"id":50,"name":"bmc_nic_setup","template_kind_id":null,"template_kind_name":null},{"id":49,"name":"alterator_pkglist","template_kind_id":null,"template_kind_name":null},{"id":48,"name":"XenServer
144
        default PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":47,"name":"XenServer
145
        default finish","template_kind_id":6,"template_kind_name":"finish"},{"id":46,"name":"XenServer
146
        default answerfile","template_kind_id":5,"template_kind_name":"provision"},{"id":45,"name":"WAIK
147
        default PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":44,"name":"UserData
148
        default","template_kind_id":8,"template_kind_name":"user_data"},{"id":64,"name":"remote_execution_ssh_keys","template_kind_id":null,"template_kind_name":null},{"id":43,"name":"Preseed
149
        default user data","template_kind_id":8,"template_kind_name":"user_data"},{"id":42,"name":"Preseed
150
        default iPXE","template_kind_id":4,"template_kind_name":"iPXE"},{"id":41,"name":"Preseed
151
        default PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":40,"name":"Preseed
152
        default finish","template_kind_id":6,"template_kind_name":"finish"},{"id":39,"name":"Preseed
153
        default","template_kind_id":5,"template_kind_name":"provision"},{"id":38,"name":"NX-OS
154
        default POAP setup","template_kind_id":10,"template_kind_name":"POAP"},{"id":37,"name":"Kickstart
155
        default user data","template_kind_id":8,"template_kind_name":"user_data"},{"id":65,"name":"saltstack_minion","template_kind_id":null,"template_kind_name":null},{"id":36,"name":"Kickstart
156
        default iPXE","template_kind_id":4,"template_kind_name":"iPXE"},{"id":35,"name":"Kickstart
157
        default PXEGrub2","template_kind_id":3,"template_kind_name":"PXEGrub2"},{"id":34,"name":"Kickstart
158
        default PXEGrub","template_kind_id":2,"template_kind_name":"PXEGrub"},{"id":33,"name":"Kickstart
159
        default PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":32,"name":"Kickstart
160
        default finish","template_kind_id":6,"template_kind_name":"finish"},{"id":31,"name":"Kickstart
161
        RHEL default","template_kind_id":5,"template_kind_name":"provision"},{"id":30,"name":"Kickstart
162
        default","template_kind_id":5,"template_kind_name":"provision"},{"id":29,"name":"Junos
163
        default finish","template_kind_id":6,"template_kind_name":"finish"},{"id":63,"name":"redhat_register","template_kind_id":null,"template_kind_name":null},{"id":62,"name":"pxelinux_discovery","template_kind_id":null,"template_kind_name":null},{"id":28,"name":"Junos
164
        default ZTP config","template_kind_id":9,"template_kind_name":"ZTP"},{"id":27,"name":"Junos
165
        default SLAX","template_kind_id":5,"template_kind_name":"provision"},{"id":26,"name":"Jumpstart
166
        default PXEGrub","template_kind_id":2,"template_kind_name":"PXEGrub"},{"id":25,"name":"Jumpstart
167
        default finish","template_kind_id":6,"template_kind_name":"finish"},{"id":24,"name":"Jumpstart
168
        default","template_kind_id":5,"template_kind_name":"provision"},{"id":23,"name":"Grubby
169
        default","template_kind_id":7,"template_kind_name":"script"},{"id":22,"name":"FreeBSD
170
        (mfsBSD) PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":21,"name":"FreeBSD
171
        (mfsBSD) provision","template_kind_id":5,"template_kind_name":"provision"},{"id":20,"name":"FreeBSD
172
        (mfsBSD) finish","template_kind_id":6,"template_kind_name":"finish"},{"id":19,"name":"CoreOS
173
        PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":18,"name":"CoreOS
174
        provision","template_kind_id":5,"template_kind_name":"provision"},{"id":17,"name":"AutoYaST
175
        default iPXE","template_kind_id":4,"template_kind_name":"iPXE"},{"id":16,"name":"AutoYaST
176
        default PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":15,"name":"AutoYaST
177
        SLES default","template_kind_id":5,"template_kind_name":"provision"},{"id":14,"name":"AutoYaST
178
        default","template_kind_id":5,"template_kind_name":"provision"},{"id":13,"name":"Atomic
179
        Kickstart default","template_kind_id":5,"template_kind_name":"provision"},{"id":12,"name":"Alterator
180
        default PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":11,"name":"Alterator
181
        default finish","template_kind_id":6,"template_kind_name":"finish"},{"id":10,"name":"Alterator
182
        default","template_kind_id":5,"template_kind_name":"provision"},{"id":9,"name":"PXELinux
183
        chain iPXE UNDI","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":8,"name":"PXELinux
184
        chain iPXE","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":7,"name":"PXELinux
185
        default memdisk","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":6,"name":"PXEGrub2
186
        default local boot","template_kind_id":3,"template_kind_name":"PXEGrub2"},{"id":5,"name":"PXEGrub
187
        default local boot","template_kind_id":2,"template_kind_name":"PXEGrub"},{"id":4,"name":"PXELinux
188
        default local boot","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":3,"name":"PXEGrub2
189
        global default","template_kind_id":3,"template_kind_name":"PXEGrub2"},{"id":2,"name":"PXEGrub
190
        global default","template_kind_id":2,"template_kind_name":"PXEGrub"},{"id":1,"name":"PXELinux
191
        global default","template_kind_id":1,"template_kind_name":"PXELinux"}],"domains":[{"id":2,"name":"test.com"}],"realms":[],"environments":[],"hostgroups":[],"locations":[],"parameters":[],"default_content_view_id":4,"library_id":7}'
58 192
    http_version: 
59
  recorded_at: Mon, 12 Sep 2016 15:40:22 GMT
193
  recorded_at: Mon, 12 Sep 2016 15:40:27 GMT
60 194
- request:
61 195
    method: get
62
    uri: https://admin:changeme@katello.example.com:50191/api/v2/plugins
196
    uri: https://admin:changeme@katello.example.com:50191/katello/api/organizations/9/subscriptions?per_page=999999
63 197
    body:
64 198
      encoding: US-ASCII
65 199
      string: ''
66 200
    headers:
67
      Accept-Encoding:
68
      - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
69 201
      Accept:
70
      - "*/*"
202
      - application/json;version=2
203
      Accept-Encoding:
204
      - gzip, deflate
71 205
      User-Agent:
72
      - Ruby
206
      - rest-client/2.0.0 (linux-gnu x86_64) ruby/2.1.10p492
207
      Content-Type:
208
      - application/json
209
      Host:
210
      - katello.example.com:50191
73 211
  response:
74 212
    status:
75 213
      code: 200
76 214
      message: OK
77 215
    headers:
78 216
      Date:
79
      - Mon, 12 Sep 2016 15:40:22 GMT
217
      - Mon, 12 Sep 2016 15:40:26 GMT
80 218
      Server:
81 219
      - Apache/2.4.6 (CentOS)
82 220
      X-Frame-Options:
......
94 232
      Apipie-Checksum:
95 233
      - 9544abef9cf8343005f07ed8c9f1f8e7
96 234
      Etag:
97
      - W/"c547959b2afaff0cf0a8d731005e9365-gzip"
235
      - W/"22309c664532ad9ee442f845849cabec-gzip"
98 236
      Cache-Control:
99 237
      - max-age=0, private, must-revalidate
100 238
      X-Request-Id:
101
      - c4b4c0fb-1fcf-4fb7-aaae-459b1f4d9b59
239
      - 04f4189b-6ce9-45ea-9928-75b72a7acdc6
102 240
      X-Runtime:
103
      - '0.186518'
241
      - '0.824280'
104 242
      Via:
105 243
      - 1.1 katello.example.com:50191
106 244
      Vary:
107 245
      - Accept-Encoding
108 246
      Content-Length:
109
      - '566'
247
      - '1348'
110 248
      Set-Cookie:
111
      - _session_id=1fb7dcb6cd0af8453d9b53f6344f0567; path=/; HttpOnly
249
      - _session_id=31ffa02d4dd6cde01aae36c75fb2bf5c; path=/; HttpOnly
250
    body:
251
      encoding: ASCII-8BIT
252
      string: |
253
        {"organization":{},"total":2,"subtotal":2,"page":1,"per_page":"999999","error":null,"search":null,"sort":{"by":null,"order":null},"results":[{"id":19,"cp_id":"ff80808156eb30a6015704818e8706e1","subscription_id":11,"name":"Red Hat Enterprise Linux for Virtual Datacenters, Standard","start_date":"2016-06-20T04:00:00.000+0000","end_date":"2017-06-20T03:59:59.000+0000","available":1,"quantity":1,"consumed":0,"account_number":5700573,"contract_number":10999110,"support_level":"Standard","product_id":"RH00002","sockets":2,"cores":null,"ram":null,"instance_multiplier":1,"stacking_id":0,"multi_entitlement":true,"type":"NORMAL","product_name":"Red Hat Enterprise Linux for Virtual Datacenters, Standard","unmapped_guest":false,"virt_only":false},{"id":21,"cp_id":"ff80808156eb30a6015704818f330733","subscription_id":12,"name":"Red Hat Enterprise Linux for Virtual Datacenters, Premium","start_date":"2016-06-20T04:00:00.000+0000","end_date":"2017-06-20T03:59:59.000+0000","available":1,"quantity":1,"consumed":0,"account_number":5700573,"contract_number":10999116,"support_level":"Premium","product_id":"RH00001","sockets":2,"cores":null,"ram":null,"instance_multiplier":1,"stacking_id":0,"multi_entitlement":true,"type":"NORMAL","product_name":"Red Hat Enterprise Linux for Virtual Datacenters, Premium","unmapped_guest":false,"virt_only":false}]}
254
    http_version: 
255
  recorded_at: Mon, 12 Sep 2016 15:40:29 GMT
256
- request:
257
    method: get
258
    uri: https://admin:changeme@katello.example.com:50218/api/status
259
    body:
260
      encoding: US-ASCII
261
      string: ''
262
    headers:
263
      Accept-Encoding:
264
      - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
265
      Accept:
266
      - "*/*"
267
      User-Agent:
268
      - Ruby
269
  response:
270
    status:
271
      code: 200
272
      message: 'OK '
273
    headers:
274
      Date:
275
      - Fri, 30 Sep 2016 15:40:11 GMT
276
      Server:
277
      - WEBrick/1.3.1 (Ruby/2.2.4/2015-12-16)
278
      Foreman-Version:
279
      - 1.14.0-develop
280
      Foreman-Api-Version:
281
      - '2'
282
      Content-Type:
283
      - application/json; charset=utf-8
284
      Apipie-Checksum:
285
      - 68d37bf606b9a03df6e1e749d6054009
286
      Etag:
287
      - W/"1316c9d778b9181476af8a9546423fb1-gzip"
288
      Cache-Control:
289
      - max-age=0, private, must-revalidate
290
      X-Request-Id:
291
      - 6495c008-c2e6-4030-99ca-f874d5abdce7
292
      X-Runtime:
293
      - '0.063115'
294
      Content-Security-Policy:
295
      - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:;
296
        img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline''
297
        ''self''; style-src ''unsafe-inline'' ''self'''
298
      Strict-Transport-Security:
299
      - max-age=631152000; includeSubdomains
300
      X-Content-Type-Options:
301
      - nosniff
302
      X-Download-Options:
303
      - noopen
304
      X-Frame-Options:
305
      - sameorigin
306
      X-Permitted-Cross-Domain-Policies:
307
      - none
308
      X-Xss-Protection:
309
      - 1; mode=block
310
      Via:
311
      - 1.1 testing.example.com:50218
312
      Vary:
313
      - Accept-Encoding
314
      Content-Length:
315
      - '81'
316
      Set-Cookie:
317
      - _session_id=e0bb9e4d97611f5612401cee55ba54b0; path=/; HttpOnly
318
    body:
319
      encoding: UTF-8
320
      string: '{"result":"ok","status":200,"version":"1.14.0-develop","api_version":2}'
321
    http_version: 
322
  recorded_at: Fri, 30 Sep 2016 15:40:12 GMT
323
- request:
324
    method: get
325
    uri: https://admin:changeme@katello.example.com:50218/api/v2/plugins
326
    body:
327
      encoding: US-ASCII
328
      string: ''
329
    headers:
330
      Accept-Encoding:
331
      - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
332
      Accept:
333
      - "*/*"
334
      User-Agent:
335
      - Ruby
336
  response:
337
    status:
338
      code: 200
339
      message: 'OK '
340
    headers:
341
      Date:
342
      - Fri, 30 Sep 2016 15:40:11 GMT
343
      Server:
344
      - WEBrick/1.3.1 (Ruby/2.2.4/2015-12-16)
345
      Foreman-Version:
346
      - 1.14.0-develop
347
      Foreman-Api-Version:
348
      - '2'
349
      Content-Type:
350
      - application/json; charset=utf-8
351
      Apipie-Checksum:
352
      - 68d37bf606b9a03df6e1e749d6054009
353
      Etag:
354
      - W/"8f0162a4d2fd78df40b7f264aee93d64-gzip"
355
      Cache-Control:
356
      - max-age=0, private, must-revalidate
357
      X-Request-Id:
358
      - 68ed4e1f-8060-425b-ba07-722a30ab686a
359
      X-Runtime:
360
      - '0.067810'
361
      Content-Security-Policy:
362
      - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:;
363
        img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline''
364
        ''self''; style-src ''unsafe-inline'' ''self'''
365
      Strict-Transport-Security:
366
      - max-age=631152000; includeSubdomains
367
      X-Content-Type-Options:
368
      - nosniff
369
      X-Download-Options:
370
      - noopen
371
      X-Frame-Options:
372
      - sameorigin
373
      X-Permitted-Cross-Domain-Policies:
374
      - none
375
      X-Xss-Protection:
376
      - 1; mode=block
377
      Via:
378
      - 1.1 testing.example.com:50218
379
      Vary:
380
      - Accept-Encoding
381
      Content-Length:
382
      - '565'
383
      Set-Cookie:
384
      - _session_id=ea8cf838ed73f23e356c7035169bced5; path=/; HttpOnly
112 385
    body:
113 386
      encoding: ASCII-8BIT
114 387
      string: !binary |-
......
127 400
        Y2UuIEl0IGFsc28gb3B0aW9uYWxseSBwcm92aWRlcyBEeW5mbG93IGluZnJh
128 401
        c3RydWN0dXJlIGZvciB1c2luZyBpdCBmb3IgbWFuYWdpbmcgdGhlIHRhc2tz
129 402
        LlxuIiwidXJsIjoiaHR0cHM6Ly9naXRodWIuY29tL3RoZWZvcmVtYW4vZm9y
130
        ZW1hbi10YXNrcyIsInZlcnNpb24iOiIwLjguMSJ9LHsiaWQiOiJmb3JlbWFu
403
        ZW1hbi10YXNrcyIsInZlcnNpb24iOiIwLjguMiJ9LHsiaWQiOiJmb3JlbWFu
131 404
        X2RvY2tlciIsIm5hbWUiOiJmb3JlbWFuX2RvY2tlciIsImF1dGhvciI6IkRh
132 405
        bmllbCBMb2JhdG8sIEFtb3MgQmVuYXJpIiwiZGVzY3JpcHRpb24iOiJQcm92
133 406
        aXNpb24gYW5kIG1hbmFnZSBEb2NrZXIgY29udGFpbmVycyBhbmQgaW1hZ2Vz
......
136 409
        ZCI6ImthdGVsbG8iLCJuYW1lIjoia2F0ZWxsbyIsImF1dGhvciI6Ik4vQSIs
137 410
        ImRlc2NyaXB0aW9uIjoiQ29udGVudCBhbmQgU3Vic2NyaXB0aW9uIE1hbmFn
138 411
        ZW1lbnQgcGx1Z2luIGZvciBGb3JlbWFuIiwidXJsIjoiaHR0cDovL3d3dy5r
139
        YXRlbGxvLm9yZyIsInZlcnNpb24iOiIzLjIuMCJ9XQp9Cg==
412
        YXRlbGxvLm9yZyIsInZlcnNpb24iOiIzLjMuMCJ9XQp9Cg==
140 413
    http_version: 
141
  recorded_at: Mon, 12 Sep 2016 15:40:23 GMT
414
  recorded_at: Fri, 30 Sep 2016 15:40:12 GMT
142 415
- request:
143 416
    method: get
144
    uri: https://admin:changeme@katello.example.com:50191/katello/api/organizations?per_page=999999
417
    uri: https://admin:changeme@katello.example.com:50218/katello/api/organizations?per_page=999999
145 418
    body:
146 419
      encoding: US-ASCII
147 420
      string: ''
......
154 427
      - rest-client/2.0.0 (linux-gnu x86_64) ruby/2.1.10p492
155 428
      Content-Type:
156 429
      - application/json
430
      Accept-Language:
431
      - en
157 432
      Host:
158
      - katello.example.com:50191
433
      - katello.example.com:50218
159 434
  response:
160 435
    status:
161 436
      code: 200
162
      message: OK
437
      message: 'OK '
163 438
    headers:
164 439
      Date:
165
      - Mon, 12 Sep 2016 15:40:22 GMT
440
      - Fri, 30 Sep 2016 15:40:11 GMT
166 441
      Server:
167
      - Apache/2.4.6 (CentOS)
168
      X-Frame-Options:
169
      - SAMEORIGIN
170
      X-Xss-Protection:
171
      - 1; mode=block
172
      X-Content-Type-Options:
173
      - nosniff
442
      - WEBrick/1.3.1 (Ruby/2.2.4/2015-12-16)
174 443
      Foreman-Version:
175 444
      - 1.14.0-develop
176 445
      Foreman-Api-Version:
......
178 447
      Content-Type:
179 448
      - application/json; charset=utf-8
180 449
      Apipie-Checksum:
181
      - 9544abef9cf8343005f07ed8c9f1f8e7
450
      - 68d37bf606b9a03df6e1e749d6054009
182 451
      Etag:
183
      - W/"6f6e523169508346de19ea518f842d6f-gzip"
452
      - W/"758d82fead8e0302548ed1a70bdf6bca-gzip"
184 453
      Cache-Control:
185 454
      - max-age=0, private, must-revalidate
186 455
      X-Request-Id:
187
      - 1da026cd-4312-42e9-8420-663bb6a7fedb
456
      - 10301bde-4924-4486-b8ef-930c05f14c6d
188 457
      X-Runtime:
189
      - '1.254092'
458
      - '0.083312'
459
      Content-Security-Policy:
460
      - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:;
461
        img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline''
462
        ''self''; style-src ''unsafe-inline'' ''self'''
463
      Strict-Transport-Security:
464
      - max-age=631152000; includeSubdomains
465
      X-Content-Type-Options:
466
      - nosniff
467
      X-Download-Options:
468
      - noopen
469
      X-Frame-Options:
470
      - sameorigin
471
      X-Permitted-Cross-Domain-Policies:
472
      - none
473
      X-Xss-Protection:
474
      - 1; mode=block
190 475
      Via:
191
      - 1.1 katello.example.com:50191
476
      - 1.1 testing.example.com:50218
192 477
      Vary:
193 478
      - Accept-Encoding
194 479
      Content-Length:
195
      - '792'
480
      - '563'
196 481
      Set-Cookie:
197
      - _session_id=39f6a25981325a6a875475d711311569; path=/; HttpOnly
482
      - _session_id=9abf44b82978e6b79fd2bf9d480281f6; path=/; HttpOnly
198 483
    body:
199 484
      encoding: ASCII-8BIT
200 485
      string: |
201 486
        {
202
          "total": 3,
203
          "subtotal": 3,
487
          "total": 2,
488
          "subtotal": 2,
204 489
          "page": 1,
205 490
          "per_page": 999999,
206 491
          "search": null,
......
208 493
            "by": null,
209 494
            "order": null
210 495
          },
211
          "results": [{"label":"Default_Organization","created_at":"2016-09-02 14:00:59 UTC","updated_at":"2016-09-02 14:00:59 UTC","id":1,"name":"Default Organization","title":"Default Organization","description":null},{"label":"examplecorp","created_at":"2016-09-02 15:00:24 UTC","updated_at":"2016-09-02 15:00:24 UTC","id":3,"name":"Example Corporation","title":"Example Corporation","description":"The number one example company in the world!"},{"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"}]
496
          "results": [{"label":"Default_Organization","created_at":"2016-09-30 14:47:05 UTC","updated_at":"2016-09-30 14:47:05 UTC","id":1,"name":"Default Organization","title":"Default Organization","description":null},{"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"}]
212 497
        }
213 498
    http_version: 
214
  recorded_at: Mon, 12 Sep 2016 15:40:24 GMT
499
  recorded_at: Fri, 30 Sep 2016 15:40:12 GMT
215 500
- request:
216 501
    method: get
217
    uri: https://admin:changeme@katello.example.com:50191/katello/api/organizations/9
502
    uri: https://admin:changeme@katello.example.com:50218/katello/api/organizations/8
218 503
    body:
219 504
      encoding: US-ASCII
220 505
      string: ''
......
227 512
      - rest-client/2.0.0 (linux-gnu x86_64) ruby/2.1.10p492
228 513
      Content-Type:
229 514
      - application/json
515
      Accept-Language:
516
      - en
230 517
      Host:
231
      - katello.example.com:50191
518
      - katello.example.com:50218
232 519
  response:
233 520
    status:
234 521
      code: 200
235
      message: OK
522
      message: 'OK '
236 523
    headers:
237 524
      Date:
238
      - Mon, 12 Sep 2016 15:40:24 GMT
525
      - Fri, 30 Sep 2016 15:40:11 GMT
239 526
      Server:
240
      - Apache/2.4.6 (CentOS)
241
      X-Frame-Options:
242
      - SAMEORIGIN
243
      X-Xss-Protection:
244
      - 1; mode=block
245
      X-Content-Type-Options:
246
      - nosniff
527
      - WEBrick/1.3.1 (Ruby/2.2.4/2015-12-16)
247 528
      Foreman-Version:
248 529
      - 1.14.0-develop
249 530
      Foreman-Api-Version:
......
251 532
      Content-Type:
252 533
      - application/json; charset=utf-8
253 534
      Apipie-Checksum:
254
      - 9544abef9cf8343005f07ed8c9f1f8e7
535
      - 68d37bf606b9a03df6e1e749d6054009
255 536
      Etag:
256
      - W/"253ac9fa8c0d829e51da8f57b05de99d-gzip"
537
      - W/"6a598bc5d5d61c73496d98f399fce58f-gzip"
257 538
      Cache-Control:
258 539
      - max-age=0, private, must-revalidate
259 540
      X-Request-Id:
260
      - fd352d8f-a41f-4caa-bc21-dfe57de89f31
541
      - f54f61f3-a8c7-426d-b261-f2250e2f66b8
261 542
      X-Runtime:
262
      - '2.694657'
543
      - '0.369487'
544
      Content-Security-Policy:
545
      - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:;
546
        img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline''
547
        ''self''; style-src ''unsafe-inline'' ''self'''
548
      Strict-Transport-Security:
549
      - max-age=631152000; includeSubdomains
550
      X-Content-Type-Options:
551
      - nosniff
552
      X-Download-Options:
553
      - noopen
554
      X-Frame-Options:
555
      - sameorigin
556
      X-Permitted-Cross-Domain-Policies:
557
      - none
558
      X-Xss-Protection:
559
      - 1; mode=block
263 560
      Via:
264
      - 1.1 katello.example.com:50191
561
      - 1.1 testing.example.com:50218
265 562
      Vary:
266 563
      - Accept-Encoding
267 564
      Content-Length:
268
      - '21851'
565
      - '21677'
269 566
      Set-Cookie:
270
      - _session_id=5f61dc21f88e42483446199bbc08c9c4; path=/; HttpOnly
567
      - _session_id=63752383ed17bdcf6fcdfa7f765afbb1; path=/; HttpOnly
271 568
    body:
272 569
      encoding: ASCII-8BIT
273
      string: '{"label":"testcorp","owner_details":{"parentOwner":null,"id":"ff80808156eb30a60157024c785205e2","key":"testcorp","displayName":"Test
274
        Corporation","contentPrefix":"/testcorp/$env","defaultServiceLevel":null,"upstreamConsumer":{"id":"ff80808156eb30a6015704818a920660","uuid":"d45ac754-56e8-425e-a6ef-2028953f6f2c","name":"TestCorp","idCert":{"key":"-----BEGIN
570
      string: '{"label":"testcorp","owner_details":{"parentOwner":null,"id":"ff808081577b8f0201577ba5d9850003","key":"testcorp","displayName":"Test
571
        Corporation","contentPrefix":"/testcorp/$env","defaultServiceLevel":null,"upstreamConsumer":{"id":"ff808081577bae9001577bc066890294","uuid":"d45ac754-56e8-425e-a6ef-2028953f6f2c","name":"TestCorp","idCert":{"key":"-----BEGIN
275 572
        RSA PRIVATE KEY-----\nMIIEowIBAAKCAQEAnR41trDH6LJ4Tobp73rsvM7Sl+nMItXNW7HSjhKQg78nFotM\naGRB9XS3z7wzKtunqIHcj38UwGBE01qLIO7aBXJHAeDiZVJdRaq03fcpQU3OywCw\nzjzfIRxYP8u5S1bjE60QXwv+ao0nbEYJ45EBmFybL6NJBcATsvPTadRzy236kk0h\nnOJl+IXXU+29eGjY7GWXjm+QYf//CHN+ngEh8g/sxSafDM6w7ZlPi9HJSaXK363R\n/nuy+4KqYE0MHa/7Iyb+HnyQEn/XTuFLJk3/EKr7gwxOVV2in6CQEeXLNuWek1Xt\nUzBDL/jPNoowFM18kmYBBg5/M3gqMX4eXBVfxQIDAQABAoIBAAeWduecv/r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0kSV3AHG3TbSkU\n+qT9B5RSL1YBAEw5xwttvjlju2jaYaYT6xI4LioXIVJ8lEwdrggxmqTj1ArgqP2c\nHAtS6vziTnwbP+sS3g==\n-----END
277
        CERTIFICATE-----\n","id":"ff80808156eb30a6015704818a91065f","serial":{"id":8261278538809906032,"revoked":false,"collected":false,"expiration":"2017-08-16T12:29:31.000+0000","serial":8261278538809906032,"created":"2016-09-07T11:56:21.009+0000","updated":"2016-09-07T11:56:21.009+0000"},"created":"2016-09-07T11:56:21.009+0000","updated":"2016-09-07T11:56:21.009+0000"},"type":{"id":"ff80808156eb30a60156ebcdc4930005","label":"satellite","manifest":true,"created":"2016-09-02T16:49:06.195+0000","updated":"2016-09-02T16:49:06.195+0000"},"ownerId":"ff80808156eb30a60157024c785205e2","webUrl":"access.stage.redhat.com/management/distributors/","apiUrl":"https://subscription.rhn.stage.redhat.com/subscription/consumers/","created":"2016-09-07T11:56:21.010+0000","updated":"2016-09-07T11:56:21.010+0000"},"logLevel":null,"href":"/owners/testcorp","created":"2016-09-07T01:39:08.498+0000","updated":"2016-09-07T11:56:21.159+0000"},"redhat_repository_url":"https://cdn.redhat.com","service_levels":["Premium","Standard"],"service_level":null,"select_all_types":[],"description":"Testing
278
        today for a better tomorrow","created_at":"2016-09-07 01:39:03 UTC","updated_at":"2016-09-07
279
        01:39:03 UTC","ancestry":null,"parent_id":null,"parent_name":null,"id":9,"name":"Test
280
        Corporation","title":"Test Corporation","users":[],"smart_proxies":[{"name":"katello.example.com","id":1,"url":"https://katello.example.com:9090"}],"subnets":[{"id":5,"name":"Test
281
        Subnet","network_address":"192.168.100.1/24"}],"compute_resources":[],"media":[],"config_templates":[{"id":90,"name":"Katello
282
        Atomic Kickstart Default","template_kind_id":5,"template_kind_name":"provision"},{"id":89,"name":"subscription_manager_registration","template_kind_id":null,"template_kind_name":null},{"id":88,"name":"Katello
283
        Kickstart Default Finish","template_kind_id":6,"template_kind_name":"finish"},{"id":87,"name":"Katello
284
        Kickstart Default User Data","template_kind_id":8,"template_kind_name":"user_data"},{"id":86,"name":"Katello
285
        Kickstart Default","template_kind_id":5,"template_kind_name":"provision"},{"id":72,"name":"pxegrub2_discovery","template_kind_id":null,"template_kind_name":null},{"id":71,"name":"pxegrub_discovery","template_kind_id":null,"template_kind_name":null},{"id":70,"name":"pxegrub2_chainload","template_kind_id":null,"template_kind_name":null},{"id":69,"name":"pxegrub_chainload","template_kind_id":null,"template_kind_name":null},{"id":68,"name":"pxelinux_chainload","template_kind_id":null,"template_kind_name":null},{"id":67,"name":"kickstart_cmdline","template_kind_id":null,"template_kind_name":null},{"id":66,"name":"saltstack_setup","template_kind_id":null,"template_kind_name":null},{"id":61,"name":"puppetlabs_repo","template_kind_id":null,"template_kind_name":null},{"id":60,"name":"puppet_setup","template_kind_id":null,"template_kind_name":null},{"id":59,"name":"puppet.conf","template_kind_id":null,"template_kind_name":null},{"id":58,"name":"preseed_networking_setup","template_kind_id":null,"template_kind_name":null},{"id":57,"name":"kickstart_networking_setup","template_kind_id":null,"template_kind_name":null},{"id":56,"name":"http_proxy","template_kind_id":null,"template_kind_name":null},{"id":55,"name":"freeipa_register","template_kind_id":null,"template_kind_name":null},{"id":54,"name":"fix_hosts","template_kind_id":null,"template_kind_name":null},{"id":53,"name":"epel","template_kind_id":null,"template_kind_name":null},{"id":52,"name":"coreos_cloudconfig","template_kind_id":null,"template_kind_name":null},{"id":51,"name":"chef_client","template_kind_id":null,"template_kind_name":null},{"id":50,"name":"bmc_nic_setup","template_kind_id":null,"template_kind_name":null},{"id":49,"name":"alterator_pkglist","template_kind_id":null,"template_kind_name":null},{"id":48,"name":"XenServer
574
        CERTIFICATE-----\n","id":"ff808081577bae9001577bc066890293","serial":{"id":1063893136250440125,"revoked":false,"collected":false,"expiration":"2017-08-16T12:29:31.000+0000","serial":1063893136250440125,"created":"2016-09-30T15:39:49.256+0000","updated":"2016-09-30T15:39:49.256+0000"},"created":"2016-09-30T15:39:49.257+0000","updated":"2016-09-30T15:39:49.257+0000"},"type":{"id":"ff808081577bae9001577bb6eb940000","label":"satellite","manifest":true,"created":"2016-09-30T15:29:27.954+0000","updated":"2016-09-30T15:29:27.954+0000"},"ownerId":"ff808081577b8f0201577ba5d9850003","webUrl":"access.stage.redhat.com/management/distributors/","apiUrl":"https://subscription.rhn.stage.redhat.com/subscription/consumers/","created":"2016-09-30T15:39:49.257+0000","updated":"2016-09-30T15:39:49.257+0000"},"logLevel":null,"href":"/owners/testcorp","created":"2016-09-30T15:10:49.221+0000","updated":"2016-09-30T15:39:49.608+0000"},"redhat_repository_url":"https://cdn.redhat.com","service_levels":["Premium","Standard"],"service_level":null,"select_all_types":[],"description":"Testing
575
        today for a better tomorrow","created_at":"2016-09-30 15:10:48 UTC","updated_at":"2016-09-30
576
        15:10:48 UTC","ancestry":null,"parent_id":null,"parent_name":null,"id":8,"name":"Test
577
        Corporation","title":"Test Corporation","users":[],"smart_proxies":[{"name":"testing.example.com","id":1,"url":"https://testing.example.com:9090"}],"subnets":[{"id":1,"name":"Test
578
        Subnet","network_address":"192.168.100.1/24"}],"compute_resources":[],"media":[],"config_templates":[{"id":89,"name":"Katello
579
        Atomic Kickstart Default","template_kind_id":5,"template_kind_name":"provision"},{"id":88,"name":"subscription_manager_registration","template_kind_id":null,"template_kind_name":null},{"id":87,"name":"Katello
580
        Kickstart Default Finish","template_kind_id":6,"template_kind_name":"finish"},{"id":86,"name":"Katello
581
        Kickstart Default User Data","template_kind_id":8,"template_kind_name":"user_data"},{"id":85,"name":"Katello
582
        Kickstart Default","template_kind_id":5,"template_kind_name":"provision"},{"id":71,"name":"pxegrub2_discovery","template_kind_id":null,"template_kind_name":null},{"id":70,"name":"pxegrub_discovery","template_kind_id":null,"template_kind_name":null},{"id":69,"name":"pxegrub2_chainload","template_kind_id":null,"template_kind_name":null},{"id":68,"name":"pxegrub_chainload","template_kind_id":null,"template_kind_name":null},{"id":67,"name":"pxelinux_chainload","template_kind_id":null,"template_kind_name":null},{"id":66,"name":"saltstack_setup","template_kind_id":null,"template_kind_name":null},{"id":61,"name":"puppetlabs_repo","template_kind_id":null,"template_kind_name":null},{"id":60,"name":"puppet_setup","template_kind_id":null,"template_kind_name":null},{"id":59,"name":"puppet.conf","template_kind_id":null,"template_kind_name":null},{"id":58,"name":"preseed_networking_setup","template_kind_id":null,"template_kind_name":null},{"id":57,"name":"kickstart_networking_setup","template_kind_id":null,"template_kind_name":null},{"id":56,"name":"http_proxy","template_kind_id":null,"template_kind_name":null},{"id":55,"name":"freeipa_register","template_kind_id":null,"template_kind_name":null},{"id":54,"name":"fix_hosts","template_kind_id":null,"template_kind_name":null},{"id":53,"name":"epel","template_kind_id":null,"template_kind_name":null},{"id":52,"name":"coreos_cloudconfig","template_kind_id":null,"template_kind_name":null},{"id":51,"name":"chef_client","template_kind_id":null,"template_kind_name":null},{"id":50,"name":"bmc_nic_setup","template_kind_id":null,"template_kind_name":null},{"id":49,"name":"alterator_pkglist","template_kind_id":null,"template_kind_name":null},{"id":48,"name":"XenServer
286 583
        default PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":47,"name":"XenServer
287 584
        default finish","template_kind_id":6,"template_kind_name":"finish"},{"id":46,"name":"XenServer
288 585
        default answerfile","template_kind_id":5,"template_kind_name":"provision"},{"id":45,"name":"WAIK
......
330 627
        default local boot","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":3,"name":"PXEGrub2
331 628
        global default","template_kind_id":3,"template_kind_name":"PXEGrub2"},{"id":2,"name":"PXEGrub
332 629
        global default","template_kind_id":2,"template_kind_name":"PXEGrub"},{"id":1,"name":"PXELinux
333
        global default","template_kind_id":1,"template_kind_name":"PXELinux"}],"ptables":[{"os_family":"Xenserver","created_at":"2016-09-02
334
        14:01:03 UTC","updated_at":"2016-09-02 14:01:03 UTC","name":"XenServer default","id":85},{"os_family":"Debian","created_at":"2016-09-02
335
        14:01:03 UTC","updated_at":"2016-09-02 14:01:03 UTC","name":"Preseed custom
336
        LVM","id":84},{"os_family":"Debian","created_at":"2016-09-02 14:01:03 UTC","updated_at":"2016-09-02
337
        14:01:03 UTC","name":"Preseed default","id":83},{"os_family":"NXOS","created_at":"2016-09-02
338
        14:01:03 UTC","updated_at":"2016-09-02 14:01:03 UTC","name":"NX-OS default
339
        fake","id":82},{"os_family":"Redhat","created_at":"2016-09-02 14:01:03 UTC","updated_at":"2016-09-02
340
        14:01:03 UTC","name":"Kickstart default","id":81},{"os_family":"Junos","created_at":"2016-09-02
341
        14:01:03 UTC","updated_at":"2016-09-02 14:01:03 UTC","name":"Junos default
342
        fake","id":80},{"os_family":"Solaris","created_at":"2016-09-02 14:01:03 UTC","updated_at":"2016-09-02
343
        14:01:03 UTC","name":"Jumpstart mirrored","id":79},{"os_family":"Solaris","created_at":"2016-09-02
344
        14:01:03 UTC","updated_at":"2016-09-02 14:01:03 UTC","name":"Jumpstart default","id":78},{"os_family":"Freebsd","created_at":"2016-09-02
345
        14:01:03 UTC","updated_at":"2016-09-02 14:01:03 UTC","name":"FreeBSD","id":77},{"os_family":"Coreos","created_at":"2016-09-02
346
        14:01:03 UTC","updated_at":"2016-09-02 14:01:03 UTC","name":"CoreOS default
347
        fake","id":76},{"os_family":"Suse","created_at":"2016-09-02 14:01:02 UTC","updated_at":"2016-09-02
348
        14:01:02 UTC","name":"AutoYaST LVM","id":75},{"os_family":"Suse","created_at":"2016-09-02
349
        14:01:02 UTC","updated_at":"2016-09-02 14:01:02 UTC","name":"AutoYaST entire
350
        virtual disk","id":74},{"os_family":"Suse","created_at":"2016-09-02 14:01:02
351
        UTC","updated_at":"2016-09-02 14:01:02 UTC","name":"AutoYaST entire SCSI disk","id":73}],"provisioning_templates":[{"id":90,"name":"Katello
352
        Atomic Kickstart Default","template_kind_id":5,"template_kind_name":"provision"},{"id":89,"name":"subscription_manager_registration","template_kind_id":null,"template_kind_name":null},{"id":88,"name":"Katello
353
        Kickstart Default Finish","template_kind_id":6,"template_kind_name":"finish"},{"id":87,"name":"Katello
354
        Kickstart Default User Data","template_kind_id":8,"template_kind_name":"user_data"},{"id":86,"name":"Katello
355
        Kickstart Default","template_kind_id":5,"template_kind_name":"provision"},{"id":72,"name":"pxegrub2_discovery","template_kind_id":null,"template_kind_name":null},{"id":71,"name":"pxegrub_discovery","template_kind_id":null,"template_kind_name":null},{"id":70,"name":"pxegrub2_chainload","template_kind_id":null,"template_kind_name":null},{"id":69,"name":"pxegrub_chainload","template_kind_id":null,"template_kind_name":null},{"id":68,"name":"pxelinux_chainload","template_kind_id":null,"template_kind_name":null},{"id":67,"name":"kickstart_cmdline","template_kind_id":null,"template_kind_name":null},{"id":66,"name":"saltstack_setup","template_kind_id":null,"template_kind_name":null},{"id":61,"name":"puppetlabs_repo","template_kind_id":null,"template_kind_name":null},{"id":60,"name":"puppet_setup","template_kind_id":null,"template_kind_name":null},{"id":59,"name":"puppet.conf","template_kind_id":null,"template_kind_name":null},{"id":58,"name":"preseed_networking_setup","template_kind_id":null,"template_kind_name":null},{"id":57,"name":"kickstart_networking_setup","template_kind_id":null,"template_kind_name":null},{"id":56,"name":"http_proxy","template_kind_id":null,"template_kind_name":null},{"id":55,"name":"freeipa_register","template_kind_id":null,"template_kind_name":null},{"id":54,"name":"fix_hosts","template_kind_id":null,"template_kind_name":null},{"id":53,"name":"epel","template_kind_id":null,"template_kind_name":null},{"id":52,"name":"coreos_cloudconfig","template_kind_id":null,"template_kind_name":null},{"id":51,"name":"chef_client","template_kind_id":null,"template_kind_name":null},{"id":50,"name":"bmc_nic_setup","template_kind_id":null,"template_kind_name":null},{"id":49,"name":"alterator_pkglist","template_kind_id":null,"template_kind_name":null},{"id":48,"name":"XenServer
630
        global default","template_kind_id":1,"template_kind_name":"PXELinux"}],"ptables":[{"os_family":"Xenserver","created_at":"2016-09-30
631
        14:47:09 UTC","updated_at":"2016-09-30 14:47:09 UTC","name":"XenServer default","id":84},{"os_family":"Debian","created_at":"2016-09-30
632
        14:47:09 UTC","updated_at":"2016-09-30 14:47:09 UTC","name":"Preseed custom
633
        LVM","id":83},{"os_family":"Debian","created_at":"2016-09-30 14:47:09 UTC","updated_at":"2016-09-30
634
        14:47:09 UTC","name":"Preseed default","id":82},{"os_family":"NXOS","created_at":"2016-09-30
635
        14:47:09 UTC","updated_at":"2016-09-30 14:47:09 UTC","name":"NX-OS default
636
        fake","id":81},{"os_family":"Redhat","created_at":"2016-09-30 14:47:09 UTC","updated_at":"2016-09-30
637
        14:47:09 UTC","name":"Kickstart default","id":80},{"os_family":"Junos","created_at":"2016-09-30
638
        14:47:09 UTC","updated_at":"2016-09-30 14:47:09 UTC","name":"Junos default
639
        fake","id":79},{"os_family":"Solaris","created_at":"2016-09-30 14:47:09 UTC","updated_at":"2016-09-30
640
        14:47:09 UTC","name":"Jumpstart mirrored","id":78},{"os_family":"Solaris","created_at":"2016-09-30
641
        14:47:09 UTC","updated_at":"2016-09-30 14:47:09 UTC","name":"Jumpstart default","id":77},{"os_family":"Freebsd","created_at":"2016-09-30
642
        14:47:09 UTC","updated_at":"2016-09-30 14:47:09 UTC","name":"FreeBSD","id":76},{"os_family":"Coreos","created_at":"2016-09-30
643
        14:47:09 UTC","updated_at":"2016-09-30 14:47:09 UTC","name":"CoreOS default
644
        fake","id":75},{"os_family":"Suse","created_at":"2016-09-30 14:47:09 UTC","updated_at":"2016-09-30
645
        14:47:09 UTC","name":"AutoYaST LVM","id":74},{"os_family":"Suse","created_at":"2016-09-30
646
        14:47:09 UTC","updated_at":"2016-09-30 14:47:09 UTC","name":"AutoYaST entire
647
        virtual disk","id":73},{"os_family":"Suse","created_at":"2016-09-30 14:47:09
648
        UTC","updated_at":"2016-09-30 14:47:09 UTC","name":"AutoYaST entire SCSI disk","id":72}],"provisioning_templates":[{"id":89,"name":"Katello
649
        Atomic Kickstart Default","template_kind_id":5,"template_kind_name":"provision"},{"id":88,"name":"subscription_manager_registration","template_kind_id":null,"template_kind_name":null},{"id":87,"name":"Katello
650
        Kickstart Default Finish","template_kind_id":6,"template_kind_name":"finish"},{"id":86,"name":"Katello
651
        Kickstart Default User Data","template_kind_id":8,"template_kind_name":"user_data"},{"id":85,"name":"Katello
652
        Kickstart Default","template_kind_id":5,"template_kind_name":"provision"},{"id":71,"name":"pxegrub2_discovery","template_kind_id":null,"template_kind_name":null},{"id":70,"name":"pxegrub_discovery","template_kind_id":null,"template_kind_name":null},{"id":69,"name":"pxegrub2_chainload","template_kind_id":null,"template_kind_name":null},{"id":68,"name":"pxegrub_chainload","template_kind_id":null,"template_kind_name":null},{"id":67,"name":"pxelinux_chainload","template_kind_id":null,"template_kind_name":null},{"id":66,"name":"saltstack_setup","template_kind_id":null,"template_kind_name":null},{"id":61,"name":"puppetlabs_repo","template_kind_id":null,"template_kind_name":null},{"id":60,"name":"puppet_setup","template_kind_id":null,"template_kind_name":null},{"id":59,"name":"puppet.conf","template_kind_id":null,"template_kind_name":null},{"id":58,"name":"preseed_networking_setup","template_kind_id":null,"template_kind_name":null},{"id":57,"name":"kickstart_networking_setup","template_kind_id":null,"template_kind_name":null},{"id":56,"name":"http_proxy","template_kind_id":null,"template_kind_name":null},{"id":55,"name":"freeipa_register","template_kind_id":null,"template_kind_name":null},{"id":54,"name":"fix_hosts","template_kind_id":null,"template_kind_name":null},{"id":53,"name":"epel","template_kind_id":null,"template_kind_name":null},{"id":52,"name":"coreos_cloudconfig","template_kind_id":null,"template_kind_name":null},{"id":51,"name":"chef_client","template_kind_id":null,"template_kind_name":null},{"id":50,"name":"bmc_nic_setup","template_kind_id":null,"template_kind_name":null},{"id":49,"name":"alterator_pkglist","template_kind_id":null,"template_kind_name":null},{"id":48,"name":"XenServer
356 653
        default PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":47,"name":"XenServer
357 654
        default finish","template_kind_id":6,"template_kind_name":"finish"},{"id":46,"name":"XenServer
358 655
        default answerfile","template_kind_id":5,"template_kind_name":"provision"},{"id":45,"name":"WAIK
......
400 697
        default local boot","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":3,"name":"PXEGrub2
401 698
        global default","template_kind_id":3,"template_kind_name":"PXEGrub2"},{"id":2,"name":"PXEGrub
402 699
        global default","template_kind_id":2,"template_kind_name":"PXEGrub"},{"id":1,"name":"PXELinux
403
        global default","template_kind_id":1,"template_kind_name":"PXELinux"}],"domains":[{"id":2,"name":"test.com"}],"realms":[],"environments":[],"hostgroups":[],"locations":[],"parameters":[],"default_content_view_id":4,"library_id":7}'
700
        global default","template_kind_id":1,"template_kind_name":"PXELinux"}],"domains":[{"id":1,"name":"test.com"}],"realms":[],"environments":[],"hostgroups":[],"locations":[],"parameters":[],"default_content_view_id":2,"library_id":2}'
404 701
    http_version: 
405
  recorded_at: Mon, 12 Sep 2016 15:40:27 GMT
702
  recorded_at: Fri, 30 Sep 2016 15:40:12 GMT
406 703
- request:
407 704
    method: get
408
    uri: https://admin:changeme@katello.example.com:50191/katello/api/organizations/9/subscriptions?per_page=999999
705
    uri: https://admin:changeme@katello.example.com:50218/katello/api/organizations/8/subscriptions?per_page=999999
409 706
    body:
410 707
      encoding: US-ASCII
411 708
      string: ''
......
418 715
      - rest-client/2.0.0 (linux-gnu x86_64) ruby/2.1.10p492
419 716
      Content-Type:
420 717
      - application/json
718
      Accept-Language:
719
      - en
421 720
      Host:
422
      - katello.example.com:50191
721
      - katello.example.com:50218
423 722
  response:
424 723
    status:
425 724
      code: 200
426
      message: OK
725
      message: 'OK '
427 726
    headers:
428 727
      Date:
429
      - Mon, 12 Sep 2016 15:40:26 GMT
728
      - Fri, 30 Sep 2016 15:40:13 GMT
430 729
      Server:
431
      - Apache/2.4.6 (CentOS)
432
      X-Frame-Options:
433
      - SAMEORIGIN
434
      X-Xss-Protection:
435
      - 1; mode=block
436
      X-Content-Type-Options:
437
      - nosniff
730
      - WEBrick/1.3.1 (Ruby/2.2.4/2015-12-16)
438 731
      Foreman-Version:
439 732
      - 1.14.0-develop
440 733
      Foreman-Api-Version:
......
442 735
      Content-Type:
443 736
      - application/json; charset=utf-8
444 737
      Apipie-Checksum:
445
      - 9544abef9cf8343005f07ed8c9f1f8e7
738
      - 68d37bf606b9a03df6e1e749d6054009
446 739
      Etag:
447
      - W/"22309c664532ad9ee442f845849cabec-gzip"
740
      - W/"57aba53041e469a8eed527f59d001b40-gzip"
448 741
      Cache-Control:
449 742
      - max-age=0, private, must-revalidate
450 743
      X-Request-Id:
451
      - 04f4189b-6ce9-45ea-9928-75b72a7acdc6
744
      - 3476277f-000d-4cde-9981-628275b2687e
452 745
      X-Runtime:
453
      - '0.824280'
746
      - '1.649381'
747
      Content-Security-Policy:
748
      - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:;
749
        img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline''
750
        ''self''; style-src ''unsafe-inline'' ''self'''
751
      Strict-Transport-Security:
752
      - max-age=631152000; includeSubdomains
753
      X-Content-Type-Options:
754
      - nosniff
755
      X-Download-Options:
756
      - noopen
757
      X-Frame-Options:
758
      - sameorigin
759
      X-Permitted-Cross-Domain-Policies:
760
      - none
761
      X-Xss-Protection:
762
      - 1; mode=block
454 763
      Via:
455
      - 1.1 katello.example.com:50191
764
      - 1.1 testing.example.com:50218
456 765
      Vary:
457 766
      - Accept-Encoding
458 767
      Content-Length:
459
      - '1348'
768
      - '1972'
460 769
      Set-Cookie:
461
      - _session_id=31ffa02d4dd6cde01aae36c75fb2bf5c; path=/; HttpOnly
770
      - _session_id=49589b6d1414c6d82bfabe4682045e60; path=/; HttpOnly
462 771
    body:
463 772
      encoding: ASCII-8BIT
464 773
      string: |
465
        {"organization":{},"total":2,"subtotal":2,"page":1,"per_page":"999999","error":null,"search":null,"sort":{"by":null,"order":null},"results":[{"id":19,"cp_id":"ff80808156eb30a6015704818e8706e1","subscription_id":11,"name":"Red Hat Enterprise Linux for Virtual Datacenters, Standard","start_date":"2016-06-20T04:00:00.000+0000","end_date":"2017-06-20T03:59:59.000+0000","available":1,"quantity":1,"consumed":0,"account_number":5700573,"contract_number":10999110,"support_level":"Standard","product_id":"RH00002","sockets":2,"cores":null,"ram":null,"instance_multiplier":1,"stacking_id":0,"multi_entitlement":true,"type":"NORMAL","product_name":"Red Hat Enterprise Linux for Virtual Datacenters, Standard","unmapped_guest":false,"virt_only":false},{"id":21,"cp_id":"ff80808156eb30a6015704818f330733","subscription_id":12,"name":"Red Hat Enterprise Linux for Virtual Datacenters, Premium","start_date":"2016-06-20T04:00:00.000+0000","end_date":"2017-06-20T03:59:59.000+0000","available":1,"quantity":1,"consumed":0,"account_number":5700573,"contract_number":10999116,"support_level":"Premium","product_id":"RH00001","sockets":2,"cores":null,"ram":null,"instance_multiplier":1,"stacking_id":0,"multi_entitlement":true,"type":"NORMAL","product_name":"Red Hat Enterprise Linux for Virtual Datacenters, Premium","unmapped_guest":false,"virt_only":false}]}
774
        {"organization":{},"total":3,"subtotal":3,"page":1,"per_page":"999999","error":null,"search":null,"sort":{"by":null,"order":null},"results":[{"id":1,"cp_id":"ff808081577bae9001577bb702c100da","subscription_id":1,"name":"Red Hat Enterprise Linux for Virtual Datacenters, Premium","start_date":"2016-06-20T04:00:00.000+0000","end_date":"2017-06-20T03:59:59.000+0000","available":1,"quantity":1,"consumed":0,"account_number":5700573,"contract_number":10999116,"support_level":"Premium","product_id":"RH00001","sockets":2,"cores":null,"ram":null,"instance_multiplier":1,"stacking_id":0,"multi_entitlement":true,"type":"NORMAL","product_name":"Red Hat Enterprise Linux for Virtual Datacenters, Premium","unmapped_guest":false,"virt_only":false},{"id":4,"cp_id":"ff808081577bae9001577bb703900138","subscription_id":2,"name":"Red Hat Enterprise Linux for Virtual Datacenters, Standard","start_date":"2016-06-20T04:00:00.000+0000","end_date":"2017-06-20T03:59:59.000+0000","available":1,"quantity":1,"consumed":0,"account_number":5700573,"contract_number":10999110,"support_level":"Standard","product_id":"RH00002","sockets":2,"cores":null,"ram":null,"instance_multiplier":1,"stacking_id":0,"multi_entitlement":true,"type":"NORMAL","product_name":"Red Hat Enterprise Linux for Virtual Datacenters, Standard","unmapped_guest":false,"virt_only":false},{"id":2,"cp_id":"ff808081577bae9001577bb70420018a","subscription_id":3,"name":"Red Hat Enterprise Linux Server, Standard (Physical or Virtual Nodes)","start_date":"2016-06-20T04:00:00.000+0000","end_date":"2017-06-20T03:59:59.000+0000","available":200,"quantity":200,"consumed":0,"account_number":5700573,"contract_number":10999113,"support_level":"Standard","product_id":"RH00004","sockets":2,"cores":null,"ram":null,"instance_multiplier":1,"stacking_id":0,"multi_entitlement":true,"type":"NORMAL","product_name":"Red Hat Enterprise Linux Server, Standard (Physical or Virtual Nodes)","unmapped_guest":false,"virt_only":false}]}
466 775
    http_version: 
467
  recorded_at: Mon, 12 Sep 2016 15:40:29 GMT
776
  recorded_at: Fri, 30 Sep 2016 15:40:14 GMT
468 777
recorded_with: VCR 3.0.3

Also available in: Unified diff