Project

General

Profile

Revision c06f1783

Added by Thomas McKay over 6 years ago

fixes #15743 - import and export of subscriptions one-per-line

View differences:

test/fixtures/vcr_cassettes/resources/content_hosts_import/create_and_update.yml
1757 1757
  recorded_at: Wed, 03 Aug 2016 18:36:06 GMT
1758 1758
- request:
1759 1759
    method: get
1760
    uri: http://admin:changeme@katello:3000/api/status
1761
    body:
1762
      encoding: US-ASCII
1763
      string: ''
1764
    headers:
1765
      Accept-Encoding:
1766
      - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
1767
      Accept:
1768
      - '*/*'
1769
      User-Agent:
1770
      - Ruby
1771
  response:
1772
    status:
1773
      code: 200
1774
      message: OK
1775
    headers:
1776
      X-Frame-Options:
1777
      - SAMEORIGIN
1778
      X-Xss-Protection:
1779
      - 1; mode=block
1780
      X-Content-Type-Options:
1781
      - nosniff
1782
      Foreman-Version:
1783
      - 1.13.0-develop
1784
      Foreman-Api-Version:
1785
      - '2'
1786
      Content-Type:
1787
      - application/json; charset=utf-8
1788
      Apipie-Checksum:
1789
      - e98945ba1db6bdbb4c25ce4988912344
1790
      Etag:
1791
      - W/"f536fd8685b76bb26a943d472593c93e"
1792
      Cache-Control:
1793
      - max-age=0, private, must-revalidate
1794
      Set-Cookie:
1795
      - _session_id=8b76035c69590fee448f280efe51d90c; path=/; HttpOnly
1796
      X-Request-Id:
1797
      - 25fbb93d-db06-40c6-a148-bd17e0afb16f
1798
      X-Runtime:
1799
      - '0.184638'
1800
      Transfer-Encoding:
1801
      - chunked
1802
    body:
1803
      encoding: UTF-8
1804
      string: '{"result":"ok","status":200,"version":"1.13.0-develop","api_version":2}'
1805
    http_version: 
1806
  recorded_at: Wed, 03 Aug 2016 18:36:06 GMT
1807
- request:
1808
    method: get
1809
    uri: http://admin:changeme@katello:3000/api/v2/plugins
1810
    body:
1811
      encoding: US-ASCII
1812
      string: ''
1813
    headers:
1814
      Accept-Encoding:
1815
      - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
1816
      Accept:
1817
      - '*/*'
1818
      User-Agent:
1819
      - Ruby
1820
  response:
1821
    status:
1822
      code: 200
1823
      message: OK
1824
    headers:
1825
      X-Frame-Options:
1826
      - SAMEORIGIN
1827
      X-Xss-Protection:
1828
      - 1; mode=block
1829
      X-Content-Type-Options:
1830
      - nosniff
1831
      Foreman-Version:
1832
      - 1.13.0-develop
1833
      Foreman-Api-Version:
1834
      - '2'
1835
      Content-Type:
1836
      - application/json; charset=utf-8
1837
      Apipie-Checksum:
1838
      - e98945ba1db6bdbb4c25ce4988912344
1839
      Etag:
1840
      - W/"85abe67b01ef6683a42df854df2005a3"
1841
      Cache-Control:
1842
      - max-age=0, private, must-revalidate
1843
      Set-Cookie:
1844
      - _session_id=da386f5d477029aa48dbfefdd7d2a230; path=/; HttpOnly
1845
      X-Request-Id:
1846
      - 183065c8-2e1d-46e5-9395-55060882713b
1847
      X-Runtime:
1848
      - '0.190284'
1849
      Transfer-Encoding:
1850
      - chunked
1851
    body:
1852
      encoding: ASCII-8BIT
1853
      string: !binary |-
1854
        ewogICJ0b3RhbCI6IDQsCiAgInN1YnRvdGFsIjogNCwKICAicGFnZSI6IDEs
1855
        CiAgInBlcl9wYWdlIjogMjAsCiAgInNlYXJjaCI6IG51bGwsCiAgInNvcnQi
1856
        OiB7CiAgICAiYnkiOiBudWxsLAogICAgIm9yZGVyIjogbnVsbAogIH0sCiAg
1857
        InJlc3VsdHMiOiBbeyJpZCI6ImZvcmVtYW4tdGFza3MiLCJuYW1lIjoiZm9y
1858
        ZW1hbi10YXNrcyIsImF1dGhvciI6Ikl2YW4gTmXEjWFzIiwiZGVzY3JpcHRp
1859
        b24iOiJUaGUgZ29hbCBvZiB0aGlzIHBsdWdpbiBpcyB0byB1bmlmeSB0aGUg
1860
        d2F5IG9mIHNob3dpbmcgdGFzayBzdGF0dXNlcyBhY3Jvc3MgdGhlIEZvcmVt
1861
        YW4gaW5zdGFuY2UuXG5JdCBkZWZpbmVzIFRhc2sgbW9kZWwgZm9yIGtlZXBp
1862
        bmcgdGhlIGluZm9ybWF0aW9uIGFib3V0IHRoZSB0YXNrcyBhbmQgTG9jayBm
1863
        b3IgYXNzaWduaW5nIHRoZSB0YXNrc1xudG8gcmVzb3VyY2VzLiBUaGUgbG9j
1864
        a2luZyBhbGxvd3MgZGVhbGluZyB3aXRoIHByZXZlbnRpbmcgbXVsdGlwbGUg
1865
        Y29sbGlkaW5nIHRhc2tzIHRvIGJlIHJ1biBvbiB0aGVcbnNhbWUgcmVzb3Vy
1866
        Y2UuIEl0IGFsc28gb3B0aW9uYWxseSBwcm92aWRlcyBEeW5mbG93IGluZnJh
1867
        c3RydWN0dXJlIGZvciB1c2luZyBpdCBmb3IgbWFuYWdpbmcgdGhlIHRhc2tz
1868
        LlxuIiwidXJsIjoiaHR0cHM6Ly9naXRodWIuY29tL3RoZWZvcmVtYW4vZm9y
1869
        ZW1hbi10YXNrcyIsInZlcnNpb24iOiIwLjcuMTkifSx7ImlkIjoiZm9yZW1h
1870
        bl9kb2NrZXIiLCJuYW1lIjoiZm9yZW1hbl9kb2NrZXIiLCJhdXRob3IiOiJE
1871
        YW5pZWwgTG9iYXRvLCBBbW9zIEJlbmFyaSIsImRlc2NyaXB0aW9uIjoiUHJv
1872
        dmlzaW9uIGFuZCBtYW5hZ2UgRG9ja2VyIGNvbnRhaW5lcnMgYW5kIGltYWdl
1873
        cyBmcm9tIEZvcmVtYW4uIiwidXJsIjoiaHR0cDovL2dpdGh1Yi5jb20vdGhl
1874
        Zm9yZW1hbi9mb3JlbWFuLWRvY2tlciIsInZlcnNpb24iOiIyLjEuMSJ9LHsi
1875
        aWQiOiJmb3JlbWFuX3JlbW90ZV9leGVjdXRpb24iLCJuYW1lIjoiZm9yZW1h
1876
        bl9yZW1vdGVfZXhlY3V0aW9uIiwiYXV0aG9yIjoiRm9yZW1hbiBSZW1vdGUg
1877
        RXhlY3V0aW9uIHRlYW0iLCJkZXNjcmlwdGlvbiI6IkEgcGx1Z2luIGJyaW5n
1878
        aW5nIHJlbW90ZSBleGVjdXRpb24gdG8gdGhlIEZvcmVtYW4sIGNvbXBsZXRp
1879
        bmcgdGhlIGNvbmZpZyBtYW5hZ2VtZW50IGZ1bmN0aW9uYWxpdHkgd2l0aCBy
1880
        ZW1vdGUgbWFuYWdlbWVudCBmdW5jdGlvbmFsaXR5LiIsInVybCI6Imh0dHBz
1881
        Oi8vZ2l0aHViLmNvbS90aGVmb3JlbWFuL2ZvcmVtYW5fcmVtb3RlX2V4ZWN1
1882
        dGlvbiIsInZlcnNpb24iOiIxLjAuMCJ9LHsiaWQiOiJrYXRlbGxvIiwibmFt
1883
        ZSI6ImthdGVsbG8iLCJhdXRob3IiOiJOL0EiLCJkZXNjcmlwdGlvbiI6IkNv
1884
        bnRlbnQgYW5kIFN1YnNjcmlwdGlvbiBNYW5hZ2VtZW50IHBsdWdpbiBmb3Ig
1885
        Rm9yZW1hbiIsInVybCI6Imh0dHA6Ly93d3cua2F0ZWxsby5vcmciLCJ2ZXJz
1886
        aW9uIjoiMy4yLjAifV0KfQo=
1887
    http_version: 
1888
  recorded_at: Wed, 03 Aug 2016 18:36:07 GMT
1889
- request:
1890
    method: get
1891 1760
    uri: http://admin:changeme@katello:3000/katello/api/organizations?per_page=999999&search=name=%22Example%20Corporation%22
1892 1761
    body:
1893 1762
      encoding: US-ASCII
......
20811 20680
  recorded_at: Wed, 03 Aug 2016 18:36:33 GMT
20812 20681
- request:
20813 20682
    method: get
20814
    uri: http://admin:changeme@katello:3000/api/status
20815
    body:
20816
      encoding: US-ASCII
20817
      string: ''
20818
    headers:
20819
      Accept-Encoding:
20820
      - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
20821
      Accept:
20822
      - '*/*'
20823
      User-Agent:
20824
      - Ruby
20825
  response:
20826
    status:
20827
      code: 200
20828
      message: OK
20829
    headers:
20830
      X-Frame-Options:
20831
      - SAMEORIGIN
20832
      X-Xss-Protection:
20833
      - 1; mode=block
20834
      X-Content-Type-Options:
20835
      - nosniff
20836
      Foreman-Version:
20837
      - 1.13.0-develop
20838
      Foreman-Api-Version:
20839
      - '2'
20840
      Content-Type:
20841
      - application/json; charset=utf-8
20842
      Apipie-Checksum:
20843
      - e98945ba1db6bdbb4c25ce4988912344
20844
      Etag:
20845
      - W/"f536fd8685b76bb26a943d472593c93e"
20846
      Cache-Control:
20847
      - max-age=0, private, must-revalidate
20848
      Set-Cookie:
20849
      - _session_id=2be8e97de672145376865fdda1f2687a; path=/; HttpOnly
20850
      X-Request-Id:
20851
      - be0ca479-f255-4936-bf5e-ebcc899660f3
20852
      X-Runtime:
20853
      - '0.220555'
20854
      Transfer-Encoding:
20855
      - chunked
20856
    body:
20857
      encoding: UTF-8
20858
      string: '{"result":"ok","status":200,"version":"1.13.0-develop","api_version":2}'
20859
    http_version: 
20860
  recorded_at: Wed, 03 Aug 2016 18:36:33 GMT
20861
- request:
20862
    method: get
20863
    uri: http://admin:changeme@katello:3000/api/v2/plugins
20864
    body:
20865
      encoding: US-ASCII
20866
      string: ''
20867
    headers:
20868
      Accept-Encoding:
20869
      - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
20870
      Accept:
20871
      - '*/*'
20872
      User-Agent:
20873
      - Ruby
20874
  response:
20875
    status:
20876
      code: 200
20877
      message: OK
20878
    headers:
20879
      X-Frame-Options:
20880
      - SAMEORIGIN
20881
      X-Xss-Protection:
20882
      - 1; mode=block
20883
      X-Content-Type-Options:
20884
      - nosniff
20885
      Foreman-Version:
20886
      - 1.13.0-develop
20887
      Foreman-Api-Version:
20888
      - '2'
20889
      Content-Type:
20890
      - application/json; charset=utf-8
20891
      Apipie-Checksum:
20892
      - e98945ba1db6bdbb4c25ce4988912344
20893
      Etag:
20894
      - W/"85abe67b01ef6683a42df854df2005a3"
20895
      Cache-Control:
20896
      - max-age=0, private, must-revalidate
20897
      Set-Cookie:
20898
      - _session_id=7b408acb00d7339c734b889c2d9782d7; path=/; HttpOnly
20899
      X-Request-Id:
20900
      - 879f5ec8-e979-4d08-84a5-622805f35a52
20901
      X-Runtime:
20902
      - '1.181933'
20903
      Transfer-Encoding:
20904
      - chunked
20905
    body:
20906
      encoding: ASCII-8BIT
20907
      string: !binary |-
20908
        ewogICJ0b3RhbCI6IDQsCiAgInN1YnRvdGFsIjogNCwKICAicGFnZSI6IDEs
20909
        CiAgInBlcl9wYWdlIjogMjAsCiAgInNlYXJjaCI6IG51bGwsCiAgInNvcnQi
20910
        OiB7CiAgICAiYnkiOiBudWxsLAogICAgIm9yZGVyIjogbnVsbAogIH0sCiAg
20911
        InJlc3VsdHMiOiBbeyJpZCI6ImZvcmVtYW4tdGFza3MiLCJuYW1lIjoiZm9y
20912
        ZW1hbi10YXNrcyIsImF1dGhvciI6Ikl2YW4gTmXEjWFzIiwiZGVzY3JpcHRp
20913
        b24iOiJUaGUgZ29hbCBvZiB0aGlzIHBsdWdpbiBpcyB0byB1bmlmeSB0aGUg
20914
        d2F5IG9mIHNob3dpbmcgdGFzayBzdGF0dXNlcyBhY3Jvc3MgdGhlIEZvcmVt
20915
        YW4gaW5zdGFuY2UuXG5JdCBkZWZpbmVzIFRhc2sgbW9kZWwgZm9yIGtlZXBp
20916
        bmcgdGhlIGluZm9ybWF0aW9uIGFib3V0IHRoZSB0YXNrcyBhbmQgTG9jayBm
20917
        b3IgYXNzaWduaW5nIHRoZSB0YXNrc1xudG8gcmVzb3VyY2VzLiBUaGUgbG9j
20918
        a2luZyBhbGxvd3MgZGVhbGluZyB3aXRoIHByZXZlbnRpbmcgbXVsdGlwbGUg
20919
        Y29sbGlkaW5nIHRhc2tzIHRvIGJlIHJ1biBvbiB0aGVcbnNhbWUgcmVzb3Vy
20920
        Y2UuIEl0IGFsc28gb3B0aW9uYWxseSBwcm92aWRlcyBEeW5mbG93IGluZnJh
20921
        c3RydWN0dXJlIGZvciB1c2luZyBpdCBmb3IgbWFuYWdpbmcgdGhlIHRhc2tz
20922
        LlxuIiwidXJsIjoiaHR0cHM6Ly9naXRodWIuY29tL3RoZWZvcmVtYW4vZm9y
20923
        ZW1hbi10YXNrcyIsInZlcnNpb24iOiIwLjcuMTkifSx7ImlkIjoiZm9yZW1h
20924
        bl9kb2NrZXIiLCJuYW1lIjoiZm9yZW1hbl9kb2NrZXIiLCJhdXRob3IiOiJE
20925
        YW5pZWwgTG9iYXRvLCBBbW9zIEJlbmFyaSIsImRlc2NyaXB0aW9uIjoiUHJv
20926
        dmlzaW9uIGFuZCBtYW5hZ2UgRG9ja2VyIGNvbnRhaW5lcnMgYW5kIGltYWdl
20927
        cyBmcm9tIEZvcmVtYW4uIiwidXJsIjoiaHR0cDovL2dpdGh1Yi5jb20vdGhl
20928
        Zm9yZW1hbi9mb3JlbWFuLWRvY2tlciIsInZlcnNpb24iOiIyLjEuMSJ9LHsi
20929
        aWQiOiJmb3JlbWFuX3JlbW90ZV9leGVjdXRpb24iLCJuYW1lIjoiZm9yZW1h
20930
        bl9yZW1vdGVfZXhlY3V0aW9uIiwiYXV0aG9yIjoiRm9yZW1hbiBSZW1vdGUg
20931
        RXhlY3V0aW9uIHRlYW0iLCJkZXNjcmlwdGlvbiI6IkEgcGx1Z2luIGJyaW5n
20932
        aW5nIHJlbW90ZSBleGVjdXRpb24gdG8gdGhlIEZvcmVtYW4sIGNvbXBsZXRp
20933
        bmcgdGhlIGNvbmZpZyBtYW5hZ2VtZW50IGZ1bmN0aW9uYWxpdHkgd2l0aCBy
20934
        ZW1vdGUgbWFuYWdlbWVudCBmdW5jdGlvbmFsaXR5LiIsInVybCI6Imh0dHBz
20935
        Oi8vZ2l0aHViLmNvbS90aGVmb3JlbWFuL2ZvcmVtYW5fcmVtb3RlX2V4ZWN1
20936
        dGlvbiIsInZlcnNpb24iOiIxLjAuMCJ9LHsiaWQiOiJrYXRlbGxvIiwibmFt
20937
        ZSI6ImthdGVsbG8iLCJhdXRob3IiOiJOL0EiLCJkZXNjcmlwdGlvbiI6IkNv
20938
        bnRlbnQgYW5kIFN1YnNjcmlwdGlvbiBNYW5hZ2VtZW50IHBsdWdpbiBmb3Ig
20939
        Rm9yZW1hbiIsInVybCI6Imh0dHA6Ly93d3cua2F0ZWxsby5vcmciLCJ2ZXJz
20940
        aW9uIjoiMy4yLjAifV0KfQo=
20941
    http_version: 
20942
  recorded_at: Wed, 03 Aug 2016 18:36:34 GMT
20943
- request:
20944
    method: get
20945 20683
    uri: http://admin:changeme@katello:3000/katello/api/organizations?per_page=999999&search=name=%22Example%20Corporation%22
20946 20684
    body:
20947 20685
      encoding: US-ASCII
......
21349 21087
    http_version: 
21350 21088
  recorded_at: Wed, 03 Aug 2016 18:36:58 GMT
21351 21089
- request:
21352
    method: get
21353
    uri: http://admin:changeme@katello:3000/api/hosts?page=1&per_page=20&search=name=host00001
21090
    method: delete
21091
    uri: http://admin:changeme@katello:3000/api/hosts/31
21354 21092
    body:
21355 21093
      encoding: US-ASCII
21356 21094
      string: ''
......
21385 21123
      Apipie-Checksum:
21386 21124
      - e98945ba1db6bdbb4c25ce4988912344
21387 21125
      Etag:
21388
      - W/"ad666a1a52e4bbab80fb8b2983902a5e"
21126
      - W/"50c04f54430dfad61a5f29a773916f4d"
21389 21127
      Cache-Control:
21390 21128
      - max-age=0, private, must-revalidate
21391 21129
      Set-Cookie:
21392
      - _session_id=4ed2b771c95bddd4e55c9a2fa5f09fa5; path=/; HttpOnly
21130
      - _session_id=96196e2c40c2f9af755d2c29290f6ffd; path=/; HttpOnly
21131
      - request_method=DELETE; path=/
21393 21132
      X-Request-Id:
21394
      - b0380bdd-044f-402e-9dd2-0319a98797c3
21133
      - 23518db9-95f7-427d-ad6b-6f71c5f7435a
21395 21134
      X-Runtime:
21396
      - '0.594777'
21135
      - '2.295530'
21397 21136
      Transfer-Encoding:
21398 21137
      - chunked
21399 21138
    body:
21400 21139
      encoding: UTF-8
21401
      string: |
21402
        {
21403
          "total": 13,
21404
          "subtotal": 1,
21140
      string: '{"id":31,"name":"host00001","last_compile":"2016-08-03T18:37:05.000Z","last_report":null,"updated_at":"2016-08-03T18:37:05.976Z","created_at":"2016-08-03T18:37:02.489Z","root_pass":null,"architecture_id":null,"operatingsystem_id":null,"environment_id":null,"ptable_id":null,"medium_id":null,"build":false,"comment":null,"disk":null,"installed_at":null,"model_id":null,"hostgroup_id":null,"owner_id":3,"owner_type":"User","enabled":true,"puppet_ca_proxy_id":null,"managed":false,"use_image":null,"image_file":"","uuid":null,"compute_resource_id":null,"puppet_proxy_id":null,"certname":"host00001","image_id":null,"organization_id":3,"location_id":2,"otp":null,"realm_id":null,"compute_profile_id":null,"provision_method":"build","content_source_id":null,"grub_pass":"","content_view_id":null,"lifecycle_environment_id":null,"global_status":0,"lookup_value_matcher":"fqdn=host00001","content_facet_attributes":{"id":31,"host_id":31,"uuid":"56f53611-2d09-4bfd-8bb8-31a385b2322e","content_view_id":2,"lifecycle_environment_id":2,"kickstart_repository_id":null},"subscription_facet_attributes":{"id":32,"host_id":31,"uuid":"56f53611-2d09-4bfd-8bb8-31a385b2322e","last_checkin":"2016-08-03T18:37:02.678Z","service_level":null,"release_version":null,"autoheal":true,"registered_at":"2016-08-03T18:37:04.472Z"}}'
21141
    http_version: 
21142
  recorded_at: Wed, 03 Aug 2016 18:37:03 GMT
21143
- request:
21144
    method: post
21145
    uri: http://admin:changeme@katello:3000/api/hosts/subscriptions
21146
    body:
21147
      encoding: UTF-8
21148
      string: '{"name":"host00001","facts":{"system.certificate_version":"3.2","network.hostname":"host00001","cpu.core(s)_per_socket":"1","cpu.cpu_socket(s)":"1","memory.memtotal":"4","uname.machine":"x86_64","distribution.name":"RHEL","distribution.version":"6.4","virt.is_guest":false,"cpu.cpu(s)":1},"lifecycle_environment_id":7,"content_view_id":8}'
21149
    headers:
21150
      Accept:
21151
      - application/json;version=2
21152
      Accept-Encoding:
21153
      - gzip, deflate
21154
      Content-Type:
21155
      - application/json
21156
      Content-Length:
21157
      - '338'
21158
      User-Agent:
21159
      - Ruby
21160
  response:
21161
    status:
21162
      code: 200
21163
      message: OK
21164
    headers:
21165
      X-Frame-Options:
21166
      - SAMEORIGIN
21167
      X-Xss-Protection:
21168
      - 1; mode=block
21169
      X-Content-Type-Options:
21170
      - nosniff
21171
      Foreman-Version:
21172
      - 1.13.0-develop
21173
      Foreman-Api-Version:
21174
      - '2'
21175
      Content-Type:
21176
      - application/json; charset=utf-8
21177
      Apipie-Checksum:
21178
      - e98945ba1db6bdbb4c25ce4988912344
21179
      Etag:
21180
      - W/"e8da8510f4eb9c482aeeb16857ac987e"
21181
      Cache-Control:
21182
      - max-age=0, private, must-revalidate
21183
      Set-Cookie:
21184
      - _session_id=8c76cf5512fc05f8c604fd1e675ac35f; path=/; HttpOnly
21185
      - request_method=POST; path=/
21186
      X-Request-Id:
21187
      - 71b4935f-87a7-4ab7-99af-9738cbdd9e0d
21188
      X-Runtime:
21189
      - '5.422351'
21190
      Transfer-Encoding:
21191
      - chunked
21192
    body:
21193
      encoding: UTF-8
21194
      string: |2
21195
          {"id":40,"name":"host00001","content_view":"Default Organization View","content_view_id":null,"environment":"Library"}
21196
    http_version: 
21197
  recorded_at: Thu, 04 Aug 2016 16:48:02 GMT
21198
- request:
21199
    method: get
21200
    uri: http://admin:changeme@katello:3000/api/hosts/40/subscriptions
21201
    body:
21202
      encoding: US-ASCII
21203
      string: ''
21204
    headers:
21205
      Accept:
21206
      - application/json;version=2
21207
      Accept-Encoding:
21208
      - gzip, deflate
21209
      Content-Type:
21210
      - application/json
21211
      User-Agent:
21212
      - Ruby
21213
  response:
21214
    status:
21215
      code: 200
21216
      message: OK
21217
    headers:
21218
      X-Frame-Options:
21219
      - SAMEORIGIN
21220
      X-Xss-Protection:
21221
      - 1; mode=block
21222
      X-Content-Type-Options:
21223
      - nosniff
21224
      Foreman-Version:
21225
      - 1.13.0-develop
21226
      Foreman-Api-Version:
21227
      - '2'
21228
      Content-Type:
21229
      - application/json; charset=utf-8
21230
      Apipie-Checksum:
21231
      - e98945ba1db6bdbb4c25ce4988912344
21232
      Etag:
21233
      - W/"28f980ca6d7d7d8bdbe90747a65a208f"
21234
      Cache-Control:
21235
      - max-age=0, private, must-revalidate
21236
      Set-Cookie:
21237
      - _session_id=d8e27f6a069875ccecef039ab745420f; path=/; HttpOnly
21238
      X-Request-Id:
21239
      - cd459de3-e3bd-45e0-8bfa-c33ad7d2e719
21240
      X-Runtime:
21241
      - '0.520135'
21242
      Transfer-Encoding:
21243
      - chunked
21244
    body:
21245
      encoding: UTF-8
21246
      string: |
21247
        {"total":0,"subtotal":0,"page":1,"per_page":0,"error":null,"search":null,"sort":{"by":null,"order":null},"results":[]}
21248
    http_version: 
21249
  recorded_at: Thu, 04 Aug 2016 16:48:02 GMT
21250
- request:
21251
    method: put
21252
    uri: http://admin:changeme@katello:3000/api/hosts/40
21253
    body:
21254
      encoding: UTF-8
21255
      string: '{"host":{"content_facet_attributes":{"lifecycle_environment_id":7,"content_view_id":8},"subscription_facet_attributes":{"facts":{"system.certificate_version":"3.2","network.hostname":"host00001","cpu.core(s)_per_socket":"1","cpu.cpu_socket(s)":"1","memory.memtotal":"4","uname.machine":"x86_64","distribution.name":"RHEL","distribution.version":"6.4","virt.is_guest":false,"cpu.cpu(s)":1},"installed_products":null,"service_level":null}}}'
21256
    headers:
21257
      Accept:
21258
      - application/json;version=2
21259
      Accept-Encoding:
21260
      - gzip, deflate
21261
      Content-Type:
21262
      - application/json
21263
      Content-Length:
21264
      - '438'
21265
      User-Agent:
21266
      - Ruby
21267
  response:
21268
    status:
21269
      code: 200
21270
      message: OK
21271
    headers:
21272
      X-Frame-Options:
21273
      - SAMEORIGIN
21274
      X-Xss-Protection:
21275
      - 1; mode=block
21276
      X-Content-Type-Options:
21277
      - nosniff
21278
      Foreman-Version:
21279
      - 1.13.0-develop
21280
      Foreman-Api-Version:
21281
      - '2'
21282
      Content-Type:
21283
      - application/json; charset=utf-8
21284
      Apipie-Checksum:
21285
      - e98945ba1db6bdbb4c25ce4988912344
21286
      Etag:
21287
      - W/"a2352f6fef89ed77312265b72d147169"
21288
      Cache-Control:
21289
      - max-age=0, private, must-revalidate
21290
      Set-Cookie:
21291
      - _session_id=52f881dbbf3f3c1e942dd674800724cb; path=/; HttpOnly
21292
      - request_method=PUT; path=/
21293
      X-Request-Id:
21294
      - 087a38b1-8847-488d-8eb8-a8c141bde3d8
21295
      X-Runtime:
21296
      - '2.417189'
21297
      Transfer-Encoding:
21298
      - chunked
21299
    body:
21300
      encoding: UTF-8
21301
      string: '{"ip":null,"ip6":null,"environment_id":null,"environment_name":null,"last_report":null,"mac":null,"realm_id":null,"realm_name":null,"sp_mac":null,"sp_ip":null,"sp_name":null,"domain_id":null,"domain_name":null,"architecture_id":null,"architecture_name":null,"operatingsystem_id":null,"operatingsystem_name":null,"subnet_id":null,"subnet_name":null,"subnet6_id":null,"subnet6_name":null,"sp_subnet_id":null,"ptable_id":null,"ptable_name":null,"medium_id":null,"medium_name":null,"build":false,"comment":null,"disk":null,"installed_at":null,"model_id":null,"hostgroup_id":null,"owner_id":3,"owner_type":"User","enabled":true,"puppet_ca_proxy_id":null,"managed":false,"use_image":null,"image_file":"","uuid":null,"compute_resource_id":null,"compute_resource_name":null,"compute_profile_id":null,"compute_profile_name":null,"capabilities":["build"],"provision_method":"build","puppet_proxy_id":null,"certname":"host00001","image_id":null,"image_name":null,"created_at":"2016-08-04
21302
        16:48:33 UTC","updated_at":"2016-08-04 16:48:37 UTC","last_compile":"2016-08-04
21303
        16:48:37 UTC","global_status":0,"global_status_label":"Warning","organization_id":4,"organization_name":"Test
21304
        Corporation","location_id":2,"location_name":"Default Location","puppet_status":0,"model_name":null,"errata_status":0,"errata_status_label":"Could
21305
        not calculate errata status, ensure host is registered and katello-agent is
21306
        installed","subscription_status":0,"subscription_status_label":"Fully entitled","name":"host00001","id":40,"hostgroup_name":null,"hostgroup_title":null,"content_facet_attributes":{"id":40,"uuid":"74e31154-1884-417e-b8f3-419320724690","content_view_id":8,"content_view_name":"Default
21307
        Organization View","lifecycle_environment_id":7,"lifecycle_environment_name":"Library","content_view":{"id":8,"name":"Default
21308
        Organization View"},"lifecycle_environment":{"id":7,"name":"Library"},"errata_counts":{"security":0,"bugfix":0,"enhancement":0,"total":0},"content_view_version":"1.0","content_view_version_id":8,"content_view_default?":true,"lifecycle_environment_library?":true,"katello_agent_installed":false},"subscription_global_status":0,"subscription_facet_attributes":{"id":41,"uuid":"74e31154-1884-417e-b8f3-419320724690","last_checkin":"2016-08-04
21309
        16:48:34 UTC","service_level":null,"release_version":null,"autoheal":true,"registered_at":"2016-08-04
21310
        16:48:35 UTC","activation_keys":[],"compliance_reasons":[],"virtual_host":null,"virtual_guests":[],"installed_products":[]},"content_host_id":41,"interfaces":[{"id":42,"name":"host00001","ip":null,"mac":null,"identifier":null,"primary":true,"provision":true,"type":"interface"}],"puppetclasses":[],"config_groups":[],"parameters":[],"all_parameters":[],"all_puppetclasses":[],"facts":{"system::certificate_version":"3.2","network::hostname":"host00001","cpu::core(s)_per_socket":"1","cpu::cpu_socket(s)":"1","memory::memtotal":"4","uname::machine":"x86_64","distribution::name":"RHEL","distribution::version":"6.4","virt::is_guest":"false","cpu::cpu(s)":"1","_timestamp":"2016-08-04T12:48:37-04:00","system":null,"network":null,"cpu":null,"memory":null,"uname":null,"distribution":null,"virt":null},"host_collections":[],"permissions":{"view_hosts":true,"create_hosts":true,"edit_hosts":true,"destroy_hosts":true,"build_hosts":true,"power_hosts":true,"console_hosts":true,"ipmi_boot":true,"puppetrun_hosts":true}}'
21311
    http_version: 
21312
  recorded_at: Thu, 04 Aug 2016 16:48:13 GMT
21313
- request:
21314
    method: get
21315
    uri: http://admin:changeme@katello:3000/api/hosts/40/subscriptions
21316
    body:
21317
      encoding: US-ASCII
21318
      string: ''
21319
    headers:
21320
      Accept:
21321
      - application/json;version=2
21322
      Accept-Encoding:
21323
      - gzip, deflate
21324
      Content-Type:
21325
      - application/json
21326
      User-Agent:
21327
      - Ruby
21328
  response:
21329
    status:
21330
      code: 200
21331
      message: OK
21332
    headers:
21333
      X-Frame-Options:
21334
      - SAMEORIGIN
21335
      X-Xss-Protection:
21336
      - 1; mode=block
21337
      X-Content-Type-Options:
21338
      - nosniff
21339
      Foreman-Version:
21340
      - 1.13.0-develop
21341
      Foreman-Api-Version:
21342
      - '2'
21343
      Content-Type:
21344
      - application/json; charset=utf-8
21345
      Apipie-Checksum:
21346
      - e98945ba1db6bdbb4c25ce4988912344
21347
      Etag:
21348
      - W/"28f980ca6d7d7d8bdbe90747a65a208f"
21349
      Cache-Control:
21350
      - max-age=0, private, must-revalidate
21351
      Set-Cookie:
21352
      - _session_id=d6e260d882ec014d4c90243dd86cfb19; path=/; HttpOnly
21353
      X-Request-Id:
21354
      - b904b850-37e2-4f81-b296-3142638bcf5a
21355
      X-Runtime:
21356
      - '1.440279'
21357
      Transfer-Encoding:
21358
      - chunked
21359
    body:
21360
      encoding: UTF-8
21361
      string: |
21362
        {"total":0,"subtotal":0,"page":1,"per_page":0,"error":null,"search":null,"sort":{"by":null,"order":null},"results":[]}
21363
    http_version: 
21364
  recorded_at: Thu, 04 Aug 2016 16:48:14 GMT
21365
- request:
21366
    method: get
21367
    uri: http://admin:changeme@katello:3000/api/hosts?search=name%20=%20%22host00001%22
21368
    body:
21369
      encoding: US-ASCII
21370
      string: ''
21371
    headers:
21372
      Accept:
21373
      - application/json;version=2
21374
      Accept-Encoding:
21375
      - gzip, deflate
21376
      Content-Type:
21377
      - application/json
21378
      Accept-Language:
21379
      - en
21380
      User-Agent:
21381
      - Ruby
21382
  response:
21383
    status:
21384
      code: 200
21385
      message: OK
21386
    headers:
21387
      X-Frame-Options:
21388
      - SAMEORIGIN
21389
      X-Xss-Protection:
21390
      - 1; mode=block
21391
      X-Content-Type-Options:
21392
      - nosniff
21393
      Foreman-Version:
21394
      - 1.13.0-develop
21395
      Foreman-Api-Version:
21396
      - '2'
21397
      Content-Type:
21398
      - application/json; charset=utf-8
21399
      Apipie-Checksum:
21400
      - e98945ba1db6bdbb4c25ce4988912344
21401
      Etag:
21402
      - W/"b5285cca715e00a37528b23e6b7fbd8c"
21403
      Cache-Control:
21404
      - max-age=0, private, must-revalidate
21405
      Set-Cookie:
21406
      - _session_id=a507bdf7737d8753fe6cfd5eba4b12b4; path=/; HttpOnly
21407
      X-Request-Id:
21408
      - ebd5b2e2-853b-4c10-a7cb-150b01c6b78b
21409
      X-Runtime:
21410
      - '0.700565'
21411
      Transfer-Encoding:
21412
      - chunked
21413
    body:
21414
      encoding: UTF-8
21415
      string: |
21416
        {
21417
          "total": 13,
21418
          "subtotal": 1,
21419
          "page": 1,
21420
          "per_page": 20,
21421
          "search": "name = \"host00001\"",
21422
          "sort": {
21423
            "by": null,
21424
            "order": null
21425
          },
21426
          "results": [{"ip":null,"ip6":null,"environment_id":null,"environment_name":null,"last_report":null,"mac":null,"realm_id":null,"realm_name":null,"sp_mac":null,"sp_ip":null,"sp_name":null,"domain_id":null,"domain_name":null,"architecture_id":null,"architecture_name":null,"operatingsystem_id":null,"operatingsystem_name":null,"subnet_id":null,"subnet_name":null,"subnet6_id":null,"subnet6_name":null,"sp_subnet_id":null,"ptable_id":null,"ptable_name":null,"medium_id":null,"medium_name":null,"build":false,"comment":null,"disk":null,"installed_at":null,"model_id":null,"hostgroup_id":null,"owner_id":3,"owner_type":"User","enabled":true,"puppet_ca_proxy_id":null,"managed":false,"use_image":null,"image_file":"","uuid":null,"compute_resource_id":null,"compute_resource_name":null,"compute_profile_id":null,"compute_profile_name":null,"capabilities":["build"],"provision_method":"build","puppet_proxy_id":null,"certname":"host00001","image_id":null,"image_name":null,"created_at":"2016-08-04 16:48:33 UTC","updated_at":"2016-08-04 16:48:37 UTC","last_compile":"2016-08-04 16:48:37 UTC","global_status":0,"global_status_label":"Warning","organization_id":4,"organization_name":"Test Corporation","location_id":2,"location_name":"Default Location","puppet_status":0,"model_name":null,"errata_status":0,"errata_status_label":"Could not calculate errata status, ensure host is registered and katello-agent is installed","subscription_status":0,"subscription_status_label":"Fully entitled","name":"host00001","id":40,"hostgroup_name":null,"hostgroup_title":null,"content_facet_attributes":{"id":40,"uuid":"74e31154-1884-417e-b8f3-419320724690","content_view_id":8,"content_view_name":"Default Organization View","lifecycle_environment_id":7,"lifecycle_environment_name":"Library","content_view":{"id":8,"name":"Default Organization View"},"lifecycle_environment":{"id":7,"name":"Library"},"errata_counts":{"security":0,"bugfix":0,"enhancement":0,"total":0}},"subscription_global_status":0,"subscription_facet_attributes":{"id":41,"uuid":"74e31154-1884-417e-b8f3-419320724690","last_checkin":"2016-08-04 16:48:34 UTC","service_level":null,"release_version":null,"autoheal":true,"registered_at":"2016-08-04 16:48:35 UTC"},"content_host_id":41}]
21427
        }
21428
    http_version: 
21429
  recorded_at: Thu, 04 Aug 2016 16:48:17 GMT
21430
- request:
21431
    method: delete
21432
    uri: http://admin:changeme@katello:3000/api/hosts/40
21433
    body:
21434
      encoding: US-ASCII
21435
      string: ''
21436
    headers:
21437
      Accept:
21438
      - application/json;version=2
21439
      Accept-Encoding:
21440
      - gzip, deflate
21441
      Content-Type:
21442
      - application/json
21443
      Accept-Language:
21444
      - en
21445
      User-Agent:
21446
      - Ruby
21447
  response:
21448
    status:
21449
      code: 200
21450
      message: OK
21451
    headers:
21452
      X-Frame-Options:
21453
      - SAMEORIGIN
21454
      X-Xss-Protection:
21455
      - 1; mode=block
21456
      X-Content-Type-Options:
21457
      - nosniff
21458
      Foreman-Version:
21459
      - 1.13.0-develop
21460
      Foreman-Api-Version:
21461
      - '2'
21462
      Content-Type:
21463
      - application/json; charset=utf-8
21464
      Apipie-Checksum:
21465
      - e98945ba1db6bdbb4c25ce4988912344
21466
      Etag:
21467
      - W/"423217ee4dbd55f45731194ff7493aab"
21468
      Cache-Control:
21469
      - max-age=0, private, must-revalidate
21470
      Set-Cookie:
21471
      - _session_id=bc1cfa987b48e27a0412435407d919d4; path=/; HttpOnly
21472
      - request_method=DELETE; path=/
21473
      X-Request-Id:
21474
      - 0f35f596-096a-4a46-82f7-ee5cf62fa5dc
21475
      X-Runtime:
21476
      - '2.323895'
21477
      Transfer-Encoding:
21478
      - chunked
21479
    body:
21480
      encoding: UTF-8
21481
      string: '{"id":40,"name":"host00001","last_compile":"2016-08-04T16:48:37.000Z","last_report":null,"updated_at":"2016-08-04T16:48:37.486Z","created_at":"2016-08-04T16:48:33.789Z","root_pass":null,"architecture_id":null,"operatingsystem_id":null,"environment_id":null,"ptable_id":null,"medium_id":null,"build":false,"comment":null,"disk":null,"installed_at":null,"model_id":null,"hostgroup_id":null,"owner_id":3,"owner_type":"User","enabled":true,"puppet_ca_proxy_id":null,"managed":false,"use_image":null,"image_file":"","uuid":null,"compute_resource_id":null,"puppet_proxy_id":null,"certname":"host00001","image_id":null,"organization_id":4,"location_id":2,"otp":null,"realm_id":null,"compute_profile_id":null,"provision_method":"build","content_source_id":null,"grub_pass":"","content_view_id":null,"lifecycle_environment_id":null,"global_status":0,"lookup_value_matcher":"fqdn=host00001","content_facet_attributes":{"id":40,"host_id":40,"uuid":"74e31154-1884-417e-b8f3-419320724690","content_view_id":8,"lifecycle_environment_id":7,"kickstart_repository_id":null},"subscription_facet_attributes":{"id":41,"host_id":40,"uuid":"74e31154-1884-417e-b8f3-419320724690","last_checkin":"2016-08-04T16:48:34.044Z","service_level":null,"release_version":null,"autoheal":true,"registered_at":"2016-08-04T16:48:35.843Z"}}'
21482
    http_version: 
21483
  recorded_at: Thu, 04 Aug 2016 16:48:19 GMT
21484
- request:
21485
    method: post
21486
    uri: http://admin:changeme@katello:3000/api/hosts/subscriptions
21487
    body:
21488
      encoding: UTF-8
21489
      string: '{"name":"host00001","facts":{"system.certificate_version":"3.2","network.hostname":"host00001","cpu.core(s)_per_socket":"1","cpu.cpu_socket(s)":"1","memory.memtotal":"4","uname.machine":"x86_64","distribution.name":"RHEL","distribution.version":"6.4","virt.is_guest":false,"cpu.cpu(s)":1},"lifecycle_environment_id":7,"content_view_id":4}'
21490
    headers:
21491
      Accept:
21492
      - application/json;version=2
21493
      Accept-Encoding:
21494
      - gzip, deflate
21495
      Content-Type:
21496
      - application/json
21497
      Content-Length:
21498
      - '338'
21499
      User-Agent:
21500
      - Ruby
21501
  response:
21502
    status:
21503
      code: 200
21504
      message: OK
21505
    headers:
21506
      X-Frame-Options:
21507
      - SAMEORIGIN
21508
      X-Xss-Protection:
21509
      - 1; mode=block
21510
      X-Content-Type-Options:
21511
      - nosniff
21512
      Foreman-Version:
21513
      - 1.13.0-develop
21514
      Foreman-Api-Version:
21515
      - '2'
21516
      Content-Type:
21517
      - application/json; charset=utf-8
21518
      Apipie-Checksum:
21519
      - e98945ba1db6bdbb4c25ce4988912344
21520
      Etag:
21521
      - W/"6389b9337b3291d049b4d7bd74a4d402"
21522
      Cache-Control:
21523
      - max-age=0, private, must-revalidate
21524
      Set-Cookie:
21525
      - _session_id=23735df4c0e26d2cdb39406fb0d9caf8; path=/; HttpOnly
21526
      - request_method=POST; path=/
21527
      X-Request-Id:
21528
      - 5ed91bea-b13f-403a-b491-08b7e539ed3a
21529
      X-Runtime:
21530
      - '5.253447'
21531
      Transfer-Encoding:
21532
      - chunked
21533
    body:
21534
      encoding: UTF-8
21535
      string: |2
21536
          {"id":15,"name":"host00001","content_view":"Default Organization View","content_view_id":null,"environment":"Library"}
21537
    http_version: 
21538
  recorded_at: Tue, 16 Aug 2016 18:52:06 GMT
21539
- request:
21540
    method: get
21541
    uri: http://admin:changeme@katello:3000/api/hosts/15/subscriptions
21542
    body:
21543
      encoding: US-ASCII
21544
      string: ''
21545
    headers:
21546
      Accept:
21547
      - application/json;version=2
21548
      Accept-Encoding:
21549
      - gzip, deflate
21550
      Content-Type:
21551
      - application/json
21552
      User-Agent:
21553
      - Ruby
21554
  response:
21555
    status:
21556
      code: 200
21557
      message: OK
21558
    headers:
21559
      X-Frame-Options:
21560
      - SAMEORIGIN
21561
      X-Xss-Protection:
21562
      - 1; mode=block
21563
      X-Content-Type-Options:
21564
      - nosniff
21565
      Foreman-Version:
21566
      - 1.13.0-develop
21567
      Foreman-Api-Version:
21568
      - '2'
21569
      Content-Type:
21570
      - application/json; charset=utf-8
21571
      Apipie-Checksum:
21572
      - e98945ba1db6bdbb4c25ce4988912344
21573
      Etag:
21574
      - W/"28f980ca6d7d7d8bdbe90747a65a208f"
21575
      Cache-Control:
21576
      - max-age=0, private, must-revalidate
21577
      Set-Cookie:
21578
      - _session_id=ecc8b173ae72fd2f63d0a4b6d922e758; path=/; HttpOnly
21579
      X-Request-Id:
21580
      - 313a45c7-c6bd-425c-9f34-86eeedd98f52
21581
      X-Runtime:
21582
      - '0.474664'
21583
      Transfer-Encoding:
21584
      - chunked
21585
    body:
21586
      encoding: UTF-8
21587
      string: |
21588
        {"total":0,"subtotal":0,"page":1,"per_page":0,"error":null,"search":null,"sort":{"by":null,"order":null},"results":[]}
21589
    http_version: 
21590
  recorded_at: Tue, 16 Aug 2016 18:52:07 GMT
21591
- request:
21592
    method: put
21593
    uri: http://admin:changeme@katello:3000/api/hosts/15
21594
    body:
21595
      encoding: UTF-8
21596
      string: '{"host":{"content_facet_attributes":{"lifecycle_environment_id":7,"content_view_id":4},"subscription_facet_attributes":{"facts":{"system.certificate_version":"3.2","network.hostname":"host00001","cpu.core(s)_per_socket":"1","cpu.cpu_socket(s)":"1","memory.memtotal":"4","uname.machine":"x86_64","distribution.name":"RHEL","distribution.version":"6.4","virt.is_guest":false,"cpu.cpu(s)":1},"installed_products":null,"service_level":null}}}'
21597
    headers:
21598
      Accept:
21599
      - application/json;version=2
21600
      Accept-Encoding:
21601
      - gzip, deflate
21602
      Content-Type:
21603
      - application/json
21604
      Content-Length:
21605
      - '438'
21606
      User-Agent:
21607
      - Ruby
21608
  response:
21609
    status:
21610
      code: 200
21611
      message: OK
21612
    headers:
21613
      X-Frame-Options:
21614
      - SAMEORIGIN
21615
      X-Xss-Protection:
21616
      - 1; mode=block
21617
      X-Content-Type-Options:
21618
      - nosniff
21619
      Foreman-Version:
21620
      - 1.13.0-develop
21621
      Foreman-Api-Version:
21622
      - '2'
21623
      Content-Type:
21624
      - application/json; charset=utf-8
21625
      Apipie-Checksum:
21626
      - e98945ba1db6bdbb4c25ce4988912344
21627
      Etag:
21628
      - W/"0023e6eb07f7cecd49382d647a98bba1"
21629
      Cache-Control:
21630
      - max-age=0, private, must-revalidate
21631
      Set-Cookie:
21632
      - _session_id=36dba9309f09894b15b4b81b0e9627b8; path=/; HttpOnly
21633
      - request_method=PUT; path=/
21634
      X-Request-Id:
21635
      - 1952c612-5b79-4cb6-be7d-f4d49da41a40
21636
      X-Runtime:
21637
      - '2.432493'
21638
      Transfer-Encoding:
21639
      - chunked
21640
    body:
21641
      encoding: UTF-8
21642
      string: '{"ip":null,"ip6":null,"environment_id":null,"environment_name":null,"last_report":null,"mac":null,"realm_id":null,"realm_name":null,"sp_mac":null,"sp_ip":null,"sp_name":null,"domain_id":null,"domain_name":null,"architecture_id":null,"architecture_name":null,"operatingsystem_id":null,"operatingsystem_name":null,"subnet_id":null,"subnet_name":null,"subnet6_id":null,"subnet6_name":null,"sp_subnet_id":null,"ptable_id":null,"ptable_name":null,"medium_id":null,"medium_name":null,"build":false,"comment":null,"disk":null,"installed_at":null,"model_id":null,"hostgroup_id":null,"owner_id":3,"owner_type":"User","enabled":true,"puppet_ca_proxy_id":null,"managed":false,"use_image":null,"image_file":"","uuid":null,"compute_resource_id":null,"compute_resource_name":null,"compute_profile_id":null,"compute_profile_name":null,"capabilities":["build"],"provision_method":"build","puppet_proxy_id":null,"certname":"host00001","image_id":null,"image_name":null,"created_at":"2016-08-16
21643
        18:52:13 UTC","updated_at":"2016-08-16 18:52:16 UTC","last_compile":"2016-08-16
21644
        18:52:16 UTC","global_status":1,"global_status_label":"Warning","organization_id":4,"organization_name":"Test
21645
        Corporation","location_id":2,"location_name":"Default Location","puppet_status":0,"model_name":null,"errata_status":1,"errata_status_label":"Could
21646
        not calculate errata status, ensure host is registered and katello-agent is
21647
        installed","subscription_status":0,"subscription_status_label":"Fully entitled","name":"host00001","id":15,"hostgroup_name":null,"hostgroup_title":null,"content_facet_attributes":{"id":15,"uuid":"d14000cc-9ce8-4050-a5ae-ee45f60d5ed3","content_view_id":4,"content_view_name":"Default
21648
        Organization View","lifecycle_environment_id":7,"lifecycle_environment_name":"Library","content_view":{"id":4,"name":"Default
21649
        Organization View"},"lifecycle_environment":{"id":7,"name":"Library"},"errata_counts":{"security":0,"bugfix":0,"enhancement":0,"total":0},"content_view_version":"1.0","content_view_version_id":4,"content_view_default?":true,"lifecycle_environment_library?":true,"katello_agent_installed":false},"subscription_global_status":0,"subscription_facet_attributes":{"id":16,"uuid":"d14000cc-9ce8-4050-a5ae-ee45f60d5ed3","last_checkin":"2016-08-16
21650
        18:52:13 UTC","service_level":null,"release_version":null,"autoheal":true,"registered_at":"2016-08-16
21651
        18:52:15 UTC","registered_through":null,"activation_keys":[],"compliance_reasons":[],"virtual_host":null,"virtual_guests":[],"installed_products":[]},"content_host_id":16,"interfaces":[{"id":17,"name":"host00001","ip":null,"mac":null,"identifier":null,"primary":true,"provision":true,"type":"interface"}],"puppetclasses":[],"config_groups":[],"parameters":[],"all_parameters":[],"all_puppetclasses":[],"facts":{"virt":null,"distribution":null,"uname":null,"memory":null,"cpu":null,"network":null,"system":null,"_timestamp":"2016-08-16T14:52:16-04:00","cpu::cpu(s)":"1","virt::is_guest":"false","distribution::version":"6.4","distribution::name":"RHEL","uname::machine":"x86_64","memory::memtotal":"4","cpu::cpu_socket(s)":"1","cpu::core(s)_per_socket":"1","network::hostname":"host00001","system::certificate_version":"3.2"},"content_source_id":null,"host_collections":[],"permissions":{"view_hosts":true,"create_hosts":true,"edit_hosts":true,"destroy_hosts":true,"build_hosts":true,"power_hosts":true,"console_hosts":true,"ipmi_boot":true,"puppetrun_hosts":true}}'
21652
    http_version: 
21653
  recorded_at: Tue, 16 Aug 2016 18:52:19 GMT
21654
- request:
21655
    method: get
21656
    uri: http://admin:changeme@katello:3000/api/hosts/15/subscriptions
21657
    body:
21658
      encoding: US-ASCII
21659
      string: ''
21660
    headers:
21661
      Accept:
21662
      - application/json;version=2
21663
      Accept-Encoding:
21664
      - gzip, deflate
21665
      Content-Type:
21666
      - application/json
21667
      User-Agent:
21668
      - Ruby
21669
  response:
21670
    status:
21671
      code: 200
21672
      message: OK
21673
    headers:
21674
      X-Frame-Options:
21675
      - SAMEORIGIN
21676
      X-Xss-Protection:
21677
      - 1; mode=block
21678
      X-Content-Type-Options:
21679
      - nosniff
21680
      Foreman-Version:
21681
      - 1.13.0-develop
21682
      Foreman-Api-Version:
21683
      - '2'
21684
      Content-Type:
21685
      - application/json; charset=utf-8
21686
      Apipie-Checksum:
21687
      - e98945ba1db6bdbb4c25ce4988912344
21688
      Etag:
21689
      - W/"28f980ca6d7d7d8bdbe90747a65a208f"
21690
      Cache-Control:
21691
      - max-age=0, private, must-revalidate
21692
      Set-Cookie:
21693
      - _session_id=2199db30517fd3753fe5c08089272a5a; path=/; HttpOnly
21694
      X-Request-Id:
21695
      - f3569a11-6d91-44de-89d4-f870517dc8e7
21696
      X-Runtime:
21697
      - '0.319119'
21698
      Transfer-Encoding:
21699
      - chunked
21700
    body:
21701
      encoding: UTF-8
21702
      string: |
21703
        {"total":0,"subtotal":0,"page":1,"per_page":0,"error":null,"search":null,"sort":{"by":null,"order":null},"results":[]}
21704
    http_version: 
21705
  recorded_at: Tue, 16 Aug 2016 18:52:20 GMT
21706
- request:
21707
    method: get
21708
    uri: http://admin:changeme@katello:3000/api/hosts?page=1&per_page=20&search=name=host00001
21709
    body:
21710
      encoding: US-ASCII
21711
      string: ''
21712
    headers:
21713
      Accept:
21714
      - application/json;version=2
21715
      Accept-Encoding:
21716
      - gzip, deflate
21717
      Content-Type:
21718
      - application/json
21719
      Accept-Language:
21720
      - en
21721
      User-Agent:
21722
      - Ruby
21723
  response:
21724
    status:
21725
      code: 200
21726
      message: OK
21727
    headers:
21728
      X-Frame-Options:
21729
      - SAMEORIGIN
21730
      X-Xss-Protection:
21731
      - 1; mode=block
21732
      X-Content-Type-Options:
21733
      - nosniff
21734
      Foreman-Version:
21735
      - 1.13.0-develop
21736
      Foreman-Api-Version:
21737
      - '2'
21738
      Content-Type:
21739
      - application/json; charset=utf-8
21740
      Apipie-Checksum:
21741
      - e98945ba1db6bdbb4c25ce4988912344
21742
      Etag:
21743
      - W/"d5026071f2ff114cb0303b22d8b002f9"
21744
      Cache-Control:
21745
      - max-age=0, private, must-revalidate
21746
      Set-Cookie:
21747
      - _session_id=71d48a1efedf83f4c3ac0dedeeaca632; path=/; HttpOnly
21748
      X-Request-Id:
21749
      - a267e754-5081-44fb-93c2-6faa21ee7a45
21750
      X-Runtime:
21751
      - '1.691916'
21752
      Transfer-Encoding:
21753
      - chunked
21754
    body:
21755
      encoding: UTF-8
21756
      string: |
21757
        {
21758
          "total": 2,
21759
          "subtotal": 1,
21760
          "page": 1,
21761
          "per_page": 20,
21762
          "search": "name=host00001",
21763
          "sort": {
21764
            "by": null,
21765
            "order": null
21766
          },
21767
          "results": [{"ip":null,"ip6":null,"environment_id":null,"environment_name":null,"last_report":null,"mac":null,"realm_id":null,"realm_name":null,"sp_mac":null,"sp_ip":null,"sp_name":null,"domain_id":null,"domain_name":null,"architecture_id":null,"architecture_name":null,"operatingsystem_id":null,"operatingsystem_name":null,"subnet_id":null,"subnet_name":null,"subnet6_id":null,"subnet6_name":null,"sp_subnet_id":null,"ptable_id":null,"ptable_name":null,"medium_id":null,"medium_name":null,"build":false,"comment":null,"disk":null,"installed_at":null,"model_id":null,"hostgroup_id":null,"owner_id":3,"owner_type":"User","enabled":true,"puppet_ca_proxy_id":null,"managed":false,"use_image":null,"image_file":"","uuid":null,"compute_resource_id":null,"compute_resource_name":null,"compute_profile_id":null,"compute_profile_name":null,"capabilities":["build"],"provision_method":"build","puppet_proxy_id":null,"certname":"host00001","image_id":null,"image_name":null,"created_at":"2016-08-16 18:52:13 UTC","updated_at":"2016-08-16 18:52:16 UTC","last_compile":"2016-08-16 18:52:16 UTC","global_status":1,"global_status_label":"Warning","organization_id":4,"organization_name":"Test Corporation","location_id":2,"location_name":"Default Location","puppet_status":0,"model_name":null,"errata_status":1,"errata_status_label":"Could not calculate errata status, ensure host is registered and katello-agent is installed","subscription_status":0,"subscription_status_label":"Fully entitled","name":"host00001","id":15,"hostgroup_name":null,"hostgroup_title":null,"content_facet_attributes":{"id":15,"uuid":"d14000cc-9ce8-4050-a5ae-ee45f60d5ed3","content_view_id":4,"content_view_name":"Default Organization View","lifecycle_environment_id":7,"lifecycle_environment_name":"Library","content_view":{"id":4,"name":"Default Organization View"},"lifecycle_environment":{"id":7,"name":"Library"},"errata_counts":{"security":0,"bugfix":0,"enhancement":0,"total":0}},"subscription_global_status":0,"subscription_facet_attributes":{"id":16,"uuid":"d14000cc-9ce8-4050-a5ae-ee45f60d5ed3","last_checkin":"2016-08-16 18:52:13 UTC","service_level":null,"release_version":null,"autoheal":true,"registered_at":"2016-08-16 18:52:15 UTC","registered_through":null},"content_host_id":16}]
21768
        }
21769
    http_version: 
21770
  recorded_at: Tue, 16 Aug 2016 18:52:22 GMT
21771
- request:
21772
    method: get
21773
    uri: http://admin:changeme@katello:3000/api/hosts/16/subscriptions
21774
    body:
21775
      encoding: US-ASCII
21776
      string: ''
21777
    headers:
21778
      Accept:
21779
      - application/json;version=2
21780
      Accept-Encoding:
21781
      - gzip, deflate
21782
      Content-Type:
21783
      - application/json
21784
      User-Agent:
21785
      - Ruby
21786
  response:
21787
    status:
21788
      code: 200
21789
      message: OK
21790
    headers:
21791
      X-Frame-Options:
21792
      - SAMEORIGIN
21793
      X-Xss-Protection:
21794
      - 1; mode=block
21795
      X-Content-Type-Options:
21796
      - nosniff
21797
      Foreman-Version:
21798
      - 1.13.0-develop
21799
      Foreman-Api-Version:
21800
      - '2'
21801
      Content-Type:
21802
      - application/json; charset=utf-8
21803
      Apipie-Checksum:
21804
      - e98945ba1db6bdbb4c25ce4988912344
21805
      Etag:
21806
      - W/"28f980ca6d7d7d8bdbe90747a65a208f"
21807
      Cache-Control:
21808
      - max-age=0, private, must-revalidate
21809
      Set-Cookie:
21810
      - _session_id=4ab0f8df5c94d7f4378e0459429a04ee; path=/; HttpOnly
21811
      X-Request-Id:
21812
      - ee58cc8f-c19d-4372-be6d-5b598f52627a
21813
      X-Runtime:
21814
      - '0.597772'
21815
      Transfer-Encoding:
21816
      - chunked
21817
    body:
21818
      encoding: UTF-8
21819
      string: |
21820
        {"total":0,"subtotal":0,"page":1,"per_page":0,"error":null,"search":null,"sort":{"by":null,"order":null},"results":[]}
21821
    http_version: 
21822
  recorded_at: Tue, 16 Aug 2016 19:12:05 GMT
21823
- request:
21824
    method: put
21825
    uri: http://admin:changeme@katello:3000/api/hosts/16
21826
    body:
21827
      encoding: UTF-8
21828
      string: '{"host":{"content_facet_attributes":{"lifecycle_environment_id":7,"content_view_id":4},"subscription_facet_attributes":{"facts":{"system.certificate_version":"3.2","network.hostname":"testhost1","cpu.core(s)_per_socket":"1","cpu.cpu_socket(s)":"1","memory.memtotal":"4","uname.machine":"x86_64","distribution.name":"RHEL","distribution.version":"6.4","virt.is_guest":false,"cpu.cpu(s)":1},"installed_products":null,"service_level":null}}}'
21829
    headers:
21830
      Accept:
21831
      - application/json;version=2
21832
      Accept-Encoding:
21833
      - gzip, deflate
21834
      Content-Type:
21835
      - application/json
21836
      Content-Length:
21837
      - '438'
21838
      User-Agent:
21839
      - Ruby
21840
  response:
21841
    status:
21842
      code: 200
21843
      message: OK
21844
    headers:
21845
      X-Frame-Options:
21846
      - SAMEORIGIN
21847
      X-Xss-Protection:
21848
      - 1; mode=block
21849
      X-Content-Type-Options:
21850
      - nosniff
21851
      Foreman-Version:
21852
      - 1.13.0-develop
21853
      Foreman-Api-Version:
21854
      - '2'
21855
      Content-Type:
21856
      - application/json; charset=utf-8
21857
      Apipie-Checksum:
21858
      - e98945ba1db6bdbb4c25ce4988912344
21859
      Etag:
21860
      - W/"656516334b0956a1f9dd8506c421a89e"
21861
      Cache-Control:
21862
      - max-age=0, private, must-revalidate
21863
      Set-Cookie:
21864
      - _session_id=da991af5109c5ae83f10c18bf25a4632; path=/; HttpOnly
21865
      - request_method=PUT; path=/
21866
      X-Request-Id:
21867
      - ea777fd5-4a9a-462d-a628-bf1f1c47ac2e
21868
      X-Runtime:
21869
      - '2.367032'
21870
      Transfer-Encoding:
21871
      - chunked
21872
    body:
21873
      encoding: UTF-8
21874
      string: '{"ip":null,"ip6":null,"environment_id":null,"environment_name":null,"last_report":null,"mac":null,"realm_id":null,"realm_name":null,"sp_mac":null,"sp_ip":null,"sp_name":null,"domain_id":null,"domain_name":null,"architecture_id":null,"architecture_name":null,"operatingsystem_id":null,"operatingsystem_name":null,"subnet_id":null,"subnet_name":null,"subnet6_id":null,"subnet6_name":null,"sp_subnet_id":null,"ptable_id":null,"ptable_name":null,"medium_id":null,"medium_name":null,"build":false,"comment":null,"disk":null,"installed_at":null,"model_id":null,"hostgroup_id":null,"owner_id":3,"owner_type":"User","enabled":true,"puppet_ca_proxy_id":null,"managed":false,"use_image":null,"image_file":"","uuid":null,"compute_resource_id":null,"compute_resource_name":null,"compute_profile_id":null,"compute_profile_name":null,"capabilities":["build"],"provision_method":"build","puppet_proxy_id":null,"certname":"testhost1","image_id":null,"image_name":null,"created_at":"2016-08-16
21875
        19:12:10 UTC","updated_at":"2016-08-16 19:12:14 UTC","last_compile":"2016-08-16
21876
        19:12:14 UTC","global_status":1,"global_status_label":"Warning","organization_id":4,"organization_name":"Test
21877
        Corporation","location_id":2,"location_name":"Default Location","puppet_status":0,"model_name":null,"errata_status":1,"errata_status_label":"Could
21878
        not calculate errata status, ensure host is registered and katello-agent is
21879
        installed","subscription_status":0,"subscription_status_label":"Fully entitled","name":"testhost1","id":16,"hostgroup_name":null,"hostgroup_title":null,"content_facet_attributes":{"id":16,"uuid":"e88a681b-0c58-4011-909f-bb95f31dbc68","content_view_id":4,"content_view_name":"Default
21880
        Organization View","lifecycle_environment_id":7,"lifecycle_environment_name":"Library","content_view":{"id":4,"name":"Default
21881
        Organization View"},"lifecycle_environment":{"id":7,"name":"Library"},"errata_counts":{"security":0,"bugfix":0,"enhancement":0,"total":0},"content_view_version":"1.0","content_view_version_id":4,"content_view_default?":true,"lifecycle_environment_library?":true,"katello_agent_installed":false},"subscription_global_status":0,"subscription_facet_attributes":{"id":17,"uuid":"e88a681b-0c58-4011-909f-bb95f31dbc68","last_checkin":"2016-08-16
21882
        19:12:11 UTC","service_level":null,"release_version":null,"autoheal":true,"registered_at":"2016-08-16
21883
        19:12:12 UTC","registered_through":null,"activation_keys":[],"compliance_reasons":[],"virtual_host":null,"virtual_guests":[],"installed_products":[]},"content_host_id":17,"interfaces":[{"id":18,"name":"testhost1","ip":null,"mac":null,"identifier":null,"primary":true,"provision":true,"type":"interface"}],"puppetclasses":[],"config_groups":[],"parameters":[],"all_parameters":[],"all_puppetclasses":[],"facts":{"system::certificate_version":"3.2","network::hostname":"testhost1","cpu::core(s)_per_socket":"1","cpu::cpu_socket(s)":"1","memory::memtotal":"4","uname::machine":"x86_64","distribution::name":"RHEL","distribution::version":"6.4","virt::is_guest":"false","cpu::cpu(s)":"1","_timestamp":"2016-08-16T15:12:14-04:00","system":null,"network":null,"cpu":null,"memory":null,"uname":null,"distribution":null,"virt":null},"content_source_id":null,"host_collections":[],"permissions":{"view_hosts":true,"create_hosts":true,"edit_hosts":true,"destroy_hosts":true,"build_hosts":true,"power_hosts":true,"console_hosts":true,"ipmi_boot":true,"puppetrun_hosts":true}}'
21884
    http_version: 
21885
  recorded_at: Tue, 16 Aug 2016 19:12:17 GMT
21886
- request:
21887
    method: get
21888
    uri: http://admin:changeme@katello:3000/api/hosts/16/subscriptions
21889
    body:
21890
      encoding: US-ASCII
21891
      string: ''
21892
    headers:
21893
      Accept:
21894
      - application/json;version=2
21895
      Accept-Encoding:
21896
      - gzip, deflate
21897
      Content-Type:
21898
      - application/json
21899
      User-Agent:
21900
      - Ruby
21901
  response:
21902
    status:
21903
      code: 200
21904
      message: OK
21905
    headers:
21906
      X-Frame-Options:
21907
      - SAMEORIGIN
21908
      X-Xss-Protection:
21909
      - 1; mode=block
21910
      X-Content-Type-Options:
21911
      - nosniff
21912
      Foreman-Version:
21913
      - 1.13.0-develop
21914
      Foreman-Api-Version:
21915
      - '2'
21916
      Content-Type:
21917
      - application/json; charset=utf-8
21918
      Apipie-Checksum:
21919
      - e98945ba1db6bdbb4c25ce4988912344
21920
      Etag:
21921
      - W/"28f980ca6d7d7d8bdbe90747a65a208f"
21922
      Cache-Control:
21923
      - max-age=0, private, must-revalidate
21924
      Set-Cookie:
21925
      - _session_id=572f1ac794ba4fdf83ddba0a114a1c28; path=/; HttpOnly
21926
      X-Request-Id:
21927
      - 6bfeb46b-c7dc-4d6e-a089-bcd95ac0eb94
21928
      X-Runtime:
21929
      - '1.325332'
21930
      Transfer-Encoding:
21931
      - chunked
21932
    body:
21933
      encoding: UTF-8
21934
      string: |
21935
        {"total":0,"subtotal":0,"page":1,"per_page":0,"error":null,"search":null,"sort":{"by":null,"order":null},"results":[]}
21936
    http_version: 
21937
  recorded_at: Tue, 16 Aug 2016 19:12:18 GMT
21938
- request:
21939
    method: get
21940
    uri: http://admin:changeme@katello:3000/api/hosts/18/subscriptions
21941
    body:
21942
      encoding: US-ASCII
21943
      string: ''
21944
    headers:
21945
      Accept:
21946
      - application/json;version=2
21947
      Accept-Encoding:
21948
      - gzip, deflate
21949
      Content-Type:
21950
      - application/json
21951
      User-Agent:
21952
      - Ruby
21953
  response:
21954
    status:
21955
      code: 200
21956
      message: OK
21957
    headers:
21958
      X-Frame-Options:
21959
      - SAMEORIGIN
21960
      X-Xss-Protection:
21961
      - 1; mode=block
21962
      X-Content-Type-Options:
21963
      - nosniff
21964
      Foreman-Version:
21965
      - 1.13.0-develop
21966
      Foreman-Api-Version:
21967
      - '2'
21968
      Content-Type:
21969
      - application/json; charset=utf-8
21970
      Apipie-Checksum:
21971
      - e98945ba1db6bdbb4c25ce4988912344
21972
      Etag:
21973
      - W/"28f980ca6d7d7d8bdbe90747a65a208f"
21974
      Cache-Control:
21975
      - max-age=0, private, must-revalidate
21976
      Set-Cookie:
21977
      - _session_id=05cb6c21bdf737b3c21a08c786270415; path=/; HttpOnly
21978
      X-Request-Id:
21979
      - 08ba99bc-5170-488f-b0e3-a9e735dae893
21980
      X-Runtime:
21981
      - '1.376122'
21982
      Transfer-Encoding:
21983
      - chunked
21984
    body:
21985
      encoding: UTF-8
21986
      string: |
21987
        {"total":0,"subtotal":0,"page":1,"per_page":0,"error":null,"search":null,"sort":{"by":null,"order":null},"results":[]}
21988
    http_version: 
21989
  recorded_at: Tue, 16 Aug 2016 19:25:02 GMT
21990
- request:
21991
    method: put
21992
    uri: http://admin:changeme@katello:3000/api/hosts/18
21993
    body:
21994
      encoding: UTF-8
21995
      string: '{"host":{"content_facet_attributes":{"lifecycle_environment_id":7,"content_view_id":4},"subscription_facet_attributes":{"facts":{"system.certificate_version":"3.2","network.hostname":"testhost1","cpu.core(s)_per_socket":"1","cpu.cpu_socket(s)":"1","memory.memtotal":"4","uname.machine":"x86_64","distribution.name":"RHEL","distribution.version":"6.4","virt.is_guest":false,"cpu.cpu(s)":1},"installed_products":null,"service_level":null}}}'
21996
    headers:
21997
      Accept:
21998
      - application/json;version=2
21999
      Accept-Encoding:
22000
      - gzip, deflate
22001
      Content-Type:
22002
      - application/json
22003
      Content-Length:
22004
      - '438'
22005
      User-Agent:
22006
      - Ruby
22007
  response:
22008
    status:
22009
      code: 200
22010
      message: OK
22011
    headers:
22012
      X-Frame-Options:
22013
      - SAMEORIGIN
22014
      X-Xss-Protection:
22015
      - 1; mode=block
22016
      X-Content-Type-Options:
22017
      - nosniff
22018
      Foreman-Version:
22019
      - 1.13.0-develop
22020
      Foreman-Api-Version:
22021
      - '2'
22022
      Content-Type:
22023
      - application/json; charset=utf-8
22024
      Apipie-Checksum:
22025
      - e98945ba1db6bdbb4c25ce4988912344
22026
      Etag:
22027
      - W/"57543965ee415eac5a096f3b55e0fbd6"
22028
      Cache-Control:
22029
      - max-age=0, private, must-revalidate
22030
      Set-Cookie:
22031
      - _session_id=d1619a7b356c9fd0f99dc6404894b0e4; path=/; HttpOnly
22032
      - request_method=PUT; path=/
22033
      X-Request-Id:
22034
      - 47583779-aa5b-4d3a-a06f-6434c99c2838
22035
      X-Runtime:
22036
      - '3.484729'
22037
      Transfer-Encoding:
22038
      - chunked
22039
    body:
22040
      encoding: UTF-8
22041
      string: '{"ip":null,"ip6":null,"environment_id":null,"environment_name":null,"last_report":null,"mac":null,"realm_id":null,"realm_name":null,"sp_mac":null,"sp_ip":null,"sp_name":null,"domain_id":null,"domain_name":null,"architecture_id":null,"architecture_name":null,"operatingsystem_id":null,"operatingsystem_name":null,"subnet_id":null,"subnet_name":null,"subnet6_id":null,"subnet6_name":null,"sp_subnet_id":null,"ptable_id":null,"ptable_name":null,"medium_id":null,"medium_name":null,"build":false,"comment":null,"disk":null,"installed_at":null,"model_id":null,"hostgroup_id":null,"owner_id":3,"owner_type":"User","enabled":true,"puppet_ca_proxy_id":null,"managed":false,"use_image":null,"image_file":"","uuid":null,"compute_resource_id":null,"compute_resource_name":null,"compute_profile_id":null,"compute_profile_name":null,"capabilities":["build"],"provision_method":"build","puppet_proxy_id":null,"certname":"testhost1","image_id":null,"image_name":null,"created_at":"2016-08-16
22042
        19:25:06 UTC","updated_at":"2016-08-16 19:25:10 UTC","last_compile":"2016-08-16
22043
        19:25:10 UTC","global_status":1,"global_status_label":"Warning","organization_id":4,"organization_name":"Test
22044
        Corporation","location_id":2,"location_name":"Default Location","puppet_status":0,"model_name":null,"errata_status":1,"errata_status_label":"Could
22045
        not calculate errata status, ensure host is registered and katello-agent is
22046
        installed","subscription_status":0,"subscription_status_label":"Fully entitled","name":"testhost1","id":18,"hostgroup_name":null,"hostgroup_title":null,"content_facet_attributes":{"id":18,"uuid":"9c9f6698-33ac-45ed-950f-9273071cd631","content_view_id":4,"content_view_name":"Default
22047
        Organization View","lifecycle_environment_id":7,"lifecycle_environment_name":"Library","content_view":{"id":4,"name":"Default
22048
        Organization View"},"lifecycle_environment":{"id":7,"name":"Library"},"errata_counts":{"security":0,"bugfix":0,"enhancement":0,"total":0},"content_view_version":"1.0","content_view_version_id":4,"content_view_default?":true,"lifecycle_environment_library?":true,"katello_agent_installed":false},"subscription_global_status":0,"subscription_facet_attributes":{"id":19,"uuid":"9c9f6698-33ac-45ed-950f-9273071cd631","last_checkin":"2016-08-16
22049
        19:25:06 UTC","service_level":null,"release_version":null,"autoheal":true,"registered_at":"2016-08-16
22050
        19:25:08 UTC","registered_through":null,"activation_keys":[],"compliance_reasons":[],"virtual_host":null,"virtual_guests":[],"installed_products":[]},"content_host_id":19,"interfaces":[{"id":20,"name":"testhost1","ip":null,"mac":null,"identifier":null,"primary":true,"provision":true,"type":"interface"}],"puppetclasses":[],"config_groups":[],"parameters":[],"all_parameters":[],"all_puppetclasses":[],"facts":{"system::certificate_version":"3.2","network::hostname":"testhost1","cpu::core(s)_per_socket":"1","cpu::cpu_socket(s)":"1","memory::memtotal":"4","uname::machine":"x86_64","distribution::name":"RHEL","distribution::version":"6.4","virt::is_guest":"false","cpu::cpu(s)":"1","system":null,"network":null,"cpu":null,"memory":null,"uname":null,"distribution":null,"virt":null,"_timestamp":"2016-08-16T15:25:10-04:00"},"content_source_id":null,"host_collections":[],"permissions":{"view_hosts":true,"create_hosts":true,"edit_hosts":true,"destroy_hosts":true,"build_hosts":true,"power_hosts":true,"console_hosts":true,"ipmi_boot":true,"puppetrun_hosts":true}}'
22051
    http_version: 
22052
  recorded_at: Tue, 16 Aug 2016 19:25:14 GMT
22053
- request:
22054
    method: get
22055
    uri: http://admin:changeme@katello:3000/api/hosts/18/subscriptions
22056
    body:
22057
      encoding: US-ASCII
22058
      string: ''
22059
    headers:
22060
      Accept:
22061
      - application/json;version=2
22062
      Accept-Encoding:
22063
      - gzip, deflate
22064
      Content-Type:
22065
      - application/json
22066
      User-Agent:
22067
      - Ruby
22068
  response:
22069
    status:
22070
      code: 200
22071
      message: OK
22072
    headers:
22073
      X-Frame-Options:
22074
      - SAMEORIGIN
22075
      X-Xss-Protection:
22076
      - 1; mode=block
22077
      X-Content-Type-Options:
22078
      - nosniff
22079
      Foreman-Version:
22080
      - 1.13.0-develop
22081
      Foreman-Api-Version:
22082
      - '2'
22083
      Content-Type:
22084
      - application/json; charset=utf-8
22085
      Apipie-Checksum:
22086
      - e98945ba1db6bdbb4c25ce4988912344
22087
      Etag:
22088
      - W/"28f980ca6d7d7d8bdbe90747a65a208f"
22089
      Cache-Control:
22090
      - max-age=0, private, must-revalidate
22091
      Set-Cookie:
22092
      - _session_id=501774993bd636351b400f7bd103b8a6; path=/; HttpOnly
22093
      X-Request-Id:
22094
      - 4e9f4aec-f3a9-45d6-8402-22fa2879fd0b
22095
      X-Runtime:
22096
      - '0.349227'
22097
      Transfer-Encoding:
22098
      - chunked
22099
    body:
22100
      encoding: UTF-8
22101
      string: |
22102
        {"total":0,"subtotal":0,"page":1,"per_page":0,"error":null,"search":null,"sort":{"by":null,"order":null},"results":[]}
22103
    http_version: 
22104
  recorded_at: Tue, 16 Aug 2016 19:25:14 GMT
22105
- request:
22106
    method: get
22107
    uri: http://admin:changeme@katello:3000/api/status
22108
    body:
22109
      encoding: US-ASCII
22110
      string: ''
22111
    headers:
22112
      Accept-Encoding:
22113
      - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
22114
      Accept:
22115
      - '*/*'
22116
      User-Agent:
22117
      - Ruby
22118
  response:
22119
    status:
22120
      code: 200
22121
      message: OK
22122
    headers:
22123
      X-Frame-Options:
22124
      - SAMEORIGIN
22125
      X-Xss-Protection:
22126
      - 1; mode=block
22127
      X-Content-Type-Options:
22128
      - nosniff
22129
      Foreman-Version:
22130
      - 1.13.0-develop
22131
      Foreman-Api-Version:
22132
      - '2'
22133
      Content-Type:
22134
      - application/json; charset=utf-8
22135
      Apipie-Checksum:
22136
      - e98945ba1db6bdbb4c25ce4988912344
22137
      Etag:
22138
      - W/"f536fd8685b76bb26a943d472593c93e"
22139
      Cache-Control:
22140
      - max-age=0, private, must-revalidate
22141
      Set-Cookie:
22142
      - _session_id=0ae902524c2faa68c29f3085d9fa4e12; path=/; HttpOnly
22143
      X-Request-Id:
22144
      - edc32150-a1e0-43c7-beed-960c16b6b935
22145
      X-Runtime:
22146
      - '0.227081'
22147
      Transfer-Encoding:
22148
      - chunked
22149
    body:
22150
      encoding: UTF-8
22151
      string: '{"result":"ok","status":200,"version":"1.13.0-develop","api_version":2}'
22152
    http_version: 
22153
  recorded_at: Tue, 16 Aug 2016 19:37:58 GMT
22154
- request:
22155
    method: get
22156
    uri: http://admin:changeme@katello:3000/api/v2/plugins
22157
    body:
22158
      encoding: US-ASCII
22159
      string: ''
22160
    headers:
22161
      Accept-Encoding:
22162
      - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
22163
      Accept:
22164
      - '*/*'
22165
      User-Agent:
22166
      - Ruby
22167
  response:
22168
    status:
22169
      code: 200
22170
      message: OK
22171
    headers:
22172
      X-Frame-Options:
22173
      - SAMEORIGIN
22174
      X-Xss-Protection:
22175
      - 1; mode=block
22176
      X-Content-Type-Options:
22177
      - nosniff
22178
      Foreman-Version:
22179
      - 1.13.0-develop
22180
      Foreman-Api-Version:
22181
      - '2'
22182
      Content-Type:
22183
      - application/json; charset=utf-8
22184
      Apipie-Checksum:
22185
      - e98945ba1db6bdbb4c25ce4988912344
22186
      Etag:
22187
      - W/"dc4a8351c6668134273bfe99879f93b1"
22188
      Cache-Control:
22189
      - max-age=0, private, must-revalidate
22190
      Set-Cookie:
22191
      - _session_id=3be0856b990278152fb87b67e0de00d4; path=/; HttpOnly
22192
      X-Request-Id:
22193
      - 5129e391-9ba1-48cc-9e0c-347c7dba7fae
22194
      X-Runtime:
22195
      - '0.199887'
22196
      Transfer-Encoding:
22197
      - chunked
22198
    body:
22199
      encoding: ASCII-8BIT
22200
      string: !binary |-
22201
        ewogICJ0b3RhbCI6IDQsCiAgInN1YnRvdGFsIjogNCwKICAicGFnZSI6IDEs
22202
        CiAgInBlcl9wYWdlIjogMjAsCiAgInNlYXJjaCI6IG51bGwsCiAgInNvcnQi
22203
        OiB7CiAgICAiYnkiOiBudWxsLAogICAgIm9yZGVyIjogbnVsbAogIH0sCiAg
22204
        InJlc3VsdHMiOiBbeyJpZCI6ImZvcmVtYW4tdGFza3MiLCJuYW1lIjoiZm9y
22205
        ZW1hbi10YXNrcyIsImF1dGhvciI6Ikl2YW4gTmXEjWFzIiwiZGVzY3JpcHRp
22206
        b24iOiJUaGUgZ29hbCBvZiB0aGlzIHBsdWdpbiBpcyB0byB1bmlmeSB0aGUg
22207
        d2F5IG9mIHNob3dpbmcgdGFzayBzdGF0dXNlcyBhY3Jvc3MgdGhlIEZvcmVt
22208
        YW4gaW5zdGFuY2UuXG5JdCBkZWZpbmVzIFRhc2sgbW9kZWwgZm9yIGtlZXBp
22209
        bmcgdGhlIGluZm9ybWF0aW9uIGFib3V0IHRoZSB0YXNrcyBhbmQgTG9jayBm
22210
        b3IgYXNzaWduaW5nIHRoZSB0YXNrc1xudG8gcmVzb3VyY2VzLiBUaGUgbG9j
22211
        a2luZyBhbGxvd3MgZGVhbGluZyB3aXRoIHByZXZlbnRpbmcgbXVsdGlwbGUg
22212
        Y29sbGlkaW5nIHRhc2tzIHRvIGJlIHJ1biBvbiB0aGVcbnNhbWUgcmVzb3Vy
22213
        Y2UuIEl0IGFsc28gb3B0aW9uYWxseSBwcm92aWRlcyBEeW5mbG93IGluZnJh
22214
        c3RydWN0dXJlIGZvciB1c2luZyBpdCBmb3IgbWFuYWdpbmcgdGhlIHRhc2tz
22215
        LlxuIiwidXJsIjoiaHR0cHM6Ly9naXRodWIuY29tL3RoZWZvcmVtYW4vZm9y
22216
        ZW1hbi10YXNrcyIsInZlcnNpb24iOiIwLjcuMjAifSx7ImlkIjoiZm9yZW1h
22217
        bl9kb2NrZXIiLCJuYW1lIjoiZm9yZW1hbl9kb2NrZXIiLCJhdXRob3IiOiJE
22218
        YW5pZWwgTG9iYXRvLCBBbW9zIEJlbmFyaSIsImRlc2NyaXB0aW9uIjoiUHJv
22219
        dmlzaW9uIGFuZCBtYW5hZ2UgRG9ja2VyIGNvbnRhaW5lcnMgYW5kIGltYWdl
22220
        cyBmcm9tIEZvcmVtYW4uIiwidXJsIjoiaHR0cDovL2dpdGh1Yi5jb20vdGhl
22221
        Zm9yZW1hbi9mb3JlbWFuLWRvY2tlciIsInZlcnNpb24iOiIzLjAuMCJ9LHsi
22222
        aWQiOiJmb3JlbWFuX3JlbW90ZV9leGVjdXRpb24iLCJuYW1lIjoiZm9yZW1h
22223
        bl9yZW1vdGVfZXhlY3V0aW9uIiwiYXV0aG9yIjoiRm9yZW1hbiBSZW1vdGUg
22224
        RXhlY3V0aW9uIHRlYW0iLCJkZXNjcmlwdGlvbiI6IkEgcGx1Z2luIGJyaW5n
22225
        aW5nIHJlbW90ZSBleGVjdXRpb24gdG8gdGhlIEZvcmVtYW4sIGNvbXBsZXRp
22226
        bmcgdGhlIGNvbmZpZyBtYW5hZ2VtZW50IGZ1bmN0aW9uYWxpdHkgd2l0aCBy
22227
        ZW1vdGUgbWFuYWdlbWVudCBmdW5jdGlvbmFsaXR5LiIsInVybCI6Imh0dHBz
22228
        Oi8vZ2l0aHViLmNvbS90aGVmb3JlbWFuL2ZvcmVtYW5fcmVtb3RlX2V4ZWN1
22229
        dGlvbiIsInZlcnNpb24iOiIxLjAuMCJ9LHsiaWQiOiJrYXRlbGxvIiwibmFt
22230
        ZSI6ImthdGVsbG8iLCJhdXRob3IiOiJOL0EiLCJkZXNjcmlwdGlvbiI6IkNv
22231
        bnRlbnQgYW5kIFN1YnNjcmlwdGlvbiBNYW5hZ2VtZW50IHBsdWdpbiBmb3Ig
22232
        Rm9yZW1hbiIsInVybCI6Imh0dHA6Ly93d3cua2F0ZWxsby5vcmciLCJ2ZXJz
22233
        aW9uIjoiMy4yLjAifV0KfQo=
22234
    http_version: 
22235
  recorded_at: Tue, 16 Aug 2016 19:37:58 GMT
22236
- request:
22237
    method: get
22238
    uri: http://admin:changeme@katello:3000/katello/api/organizations?per_page=999999&search=name=%22Test%20Corporation%22
22239
    body:
22240
      encoding: US-ASCII
22241
      string: ''
22242
    headers:
22243
      Accept:
22244
      - application/json;version=2
22245
      Accept-Encoding:
22246
      - gzip, deflate
22247
      Content-Type:
22248
      - application/json
22249
      User-Agent:
22250
      - Ruby
22251
  response:
22252
    status:
22253
      code: 200
22254
      message: OK
22255
    headers:
22256
      X-Frame-Options:
22257
      - SAMEORIGIN
22258
      X-Xss-Protection:
22259
      - 1; mode=block
22260
      X-Content-Type-Options:
22261
      - nosniff
22262
      Foreman-Version:
22263
      - 1.13.0-develop
22264
      Foreman-Api-Version:
22265
      - '2'
22266
      Content-Type:
22267
      - application/json; charset=utf-8
22268
      Apipie-Checksum:
22269
      - e98945ba1db6bdbb4c25ce4988912344
22270
      Etag:
22271
      - W/"dec57c653102523d2cd2de13cb7fee01"
22272
      Cache-Control:
22273
      - max-age=0, private, must-revalidate
22274
      Set-Cookie:
22275
      - _session_id=584f66c427bfe95e945cedba5aaeadf6; path=/; HttpOnly
22276
      X-Request-Id:
22277
      - cfa77176-5357-41fb-b9e2-b9e52e7e1e3f
22278
      X-Runtime:
22279
      - '0.242620'
22280
      Transfer-Encoding:
22281
      - chunked
22282
    body:
22283
      encoding: UTF-8
22284
      string: |
22285
        {
22286
          "total": 3,
22287
          "subtotal": 1,
22288
          "page": 1,
22289
          "per_page": 999999,
22290
          "search": "name=\"Test Corporation\"",
22291
          "sort": {
22292
            "by": null,
22293
            "order": null
22294
          },
22295
          "results": [{"label":"testcorp","created_at":"2016-08-16 12:46:24 UTC","updated_at":"2016-08-16 12:46:24 UTC","id":4,"name":"Test Corporation","title":"Test Corporation","description":"Testing today for a better tomorrow"}]
22296
        }
22297
    http_version: 
22298
  recorded_at: Tue, 16 Aug 2016 19:37:59 GMT
22299
- request:
22300
    method: get
22301
    uri: http://admin:changeme@katello:3000/api/organizations/4/hosts?per_page=1
22302
    body:
22303
      encoding: US-ASCII
22304
      string: ''
22305
    headers:
22306
      Accept:
22307
      - application/json;version=2
22308
      Accept-Encoding:
22309
      - gzip, deflate
22310
      Content-Type:
22311
      - application/json
22312
      User-Agent:
22313
      - Ruby
22314
  response:
22315
    status:
22316
      code: 200
22317
      message: OK
... This diff was truncated because it exceeds the maximum size that can be displayed.

Also available in: Unified diff