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_content_views/setup.yml
2 2
http_interactions:
3 3
- request:
4 4
    method: get
5
    uri: https://admin:changeme@katello.example.com:50191/api/status
6
    body:
7
      encoding: US-ASCII
8
      string: ''
9
    headers:
10
      Accept-Encoding:
11
      - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
12
      Accept:
13
      - "*/*"
14
      User-Agent:
15
      - Ruby
16
  response:
17
    status:
18
      code: 200
19
      message: OK
20
    headers:
21
      Date:
22
      - Mon, 12 Sep 2016 15:39:24 GMT
23
      Server:
24
      - Apache/2.4.6 (CentOS)
25
      X-Frame-Options:
26
      - SAMEORIGIN
27
      X-Xss-Protection:
28
      - 1; mode=block
29
      X-Content-Type-Options:
30
      - nosniff
31
      Foreman-Version:
32
      - 1.14.0-develop
33
      Foreman-Api-Version:
34
      - '2'
35
      Content-Type:
36
      - application/json; charset=utf-8
37
      Apipie-Checksum:
38
      - 9544abef9cf8343005f07ed8c9f1f8e7
39
      Etag:
40
      - W/"1316c9d778b9181476af8a9546423fb1-gzip"
41
      Cache-Control:
42
      - max-age=0, private, must-revalidate
43
      X-Request-Id:
44
      - f06c2ff0-fd65-433b-8ed1-c6202fbe8c01
45
      X-Runtime:
46
      - '0.243469'
47
      Via:
48
      - 1.1 katello.example.com:50191
49
      Vary:
50
      - Accept-Encoding
51
      Content-Length:
52
      - '81'
53
      Set-Cookie:
54
      - _session_id=ae463237fa28978511b71e023521a097; path=/; HttpOnly
55
    body:
56
      encoding: UTF-8
57
      string: '{"result":"ok","status":200,"version":"1.14.0-develop","api_version":2}'
58
    http_version: 
59
  recorded_at: Mon, 12 Sep 2016 15:39:26 GMT
60
- request:
61
    method: get
62
    uri: https://admin:changeme@katello.example.com:50191/api/v2/plugins
63
    body:
64
      encoding: US-ASCII
65
      string: ''
66
    headers:
67
      Accept-Encoding:
68
      - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
69
      Accept:
70
      - "*/*"
71
      User-Agent:
72
      - Ruby
73
  response:
74
    status:
75
      code: 200
76
      message: OK
77
    headers:
78
      Date:
79
      - Mon, 12 Sep 2016 15:39:25 GMT
80
      Server:
81
      - Apache/2.4.6 (CentOS)
82
      X-Frame-Options:
83
      - SAMEORIGIN
84
      X-Xss-Protection:
85
      - 1; mode=block
86
      X-Content-Type-Options:
87
      - nosniff
88
      Foreman-Version:
89
      - 1.14.0-develop
90
      Foreman-Api-Version:
91
      - '2'
92
      Content-Type:
93
      - application/json; charset=utf-8
94
      Apipie-Checksum:
95
      - 9544abef9cf8343005f07ed8c9f1f8e7
96
      Etag:
97
      - W/"c547959b2afaff0cf0a8d731005e9365-gzip"
98
      Cache-Control:
99
      - max-age=0, private, must-revalidate
100
      X-Request-Id:
101
      - c03ccc30-e60a-44ff-8c3c-df5ca919ec12
102
      X-Runtime:
103
      - '0.183479'
104
      Via:
105
      - 1.1 katello.example.com:50191
106
      Vary:
107
      - Accept-Encoding
108
      Content-Length:
109
      - '566'
110
      Set-Cookie:
111
      - _session_id=03aefcf9dca9db25976cb2b5f57a4f78; path=/; HttpOnly
112
    body:
113
      encoding: ASCII-8BIT
114
      string: !binary |-
115
        ewogICJ0b3RhbCI6IDMsCiAgInN1YnRvdGFsIjogMywKICAicGFnZSI6IDEs
116
        CiAgInBlcl9wYWdlIjogMjAsCiAgInNlYXJjaCI6IG51bGwsCiAgInNvcnQi
117
        OiB7CiAgICAiYnkiOiBudWxsLAogICAgIm9yZGVyIjogbnVsbAogIH0sCiAg
118
        InJlc3VsdHMiOiBbeyJpZCI6ImZvcmVtYW4tdGFza3MiLCJuYW1lIjoiZm9y
119
        ZW1hbi10YXNrcyIsImF1dGhvciI6Ikl2YW4gTmXEjWFzIiwiZGVzY3JpcHRp
120
        b24iOiJUaGUgZ29hbCBvZiB0aGlzIHBsdWdpbiBpcyB0byB1bmlmeSB0aGUg
121
        d2F5IG9mIHNob3dpbmcgdGFzayBzdGF0dXNlcyBhY3Jvc3MgdGhlIEZvcmVt
122
        YW4gaW5zdGFuY2UuXG5JdCBkZWZpbmVzIFRhc2sgbW9kZWwgZm9yIGtlZXBp
123
        bmcgdGhlIGluZm9ybWF0aW9uIGFib3V0IHRoZSB0YXNrcyBhbmQgTG9jayBm
124
        b3IgYXNzaWduaW5nIHRoZSB0YXNrc1xudG8gcmVzb3VyY2VzLiBUaGUgbG9j
125
        a2luZyBhbGxvd3MgZGVhbGluZyB3aXRoIHByZXZlbnRpbmcgbXVsdGlwbGUg
126
        Y29sbGlkaW5nIHRhc2tzIHRvIGJlIHJ1biBvbiB0aGVcbnNhbWUgcmVzb3Vy
127
        Y2UuIEl0IGFsc28gb3B0aW9uYWxseSBwcm92aWRlcyBEeW5mbG93IGluZnJh
128
        c3RydWN0dXJlIGZvciB1c2luZyBpdCBmb3IgbWFuYWdpbmcgdGhlIHRhc2tz
129
        LlxuIiwidXJsIjoiaHR0cHM6Ly9naXRodWIuY29tL3RoZWZvcmVtYW4vZm9y
130
        ZW1hbi10YXNrcyIsInZlcnNpb24iOiIwLjguMSJ9LHsiaWQiOiJmb3JlbWFu
131
        X2RvY2tlciIsIm5hbWUiOiJmb3JlbWFuX2RvY2tlciIsImF1dGhvciI6IkRh
132
        bmllbCBMb2JhdG8sIEFtb3MgQmVuYXJpIiwiZGVzY3JpcHRpb24iOiJQcm92
133
        aXNpb24gYW5kIG1hbmFnZSBEb2NrZXIgY29udGFpbmVycyBhbmQgaW1hZ2Vz
134
        IGZyb20gRm9yZW1hbi4iLCJ1cmwiOiJodHRwOi8vZ2l0aHViLmNvbS90aGVm
135
        b3JlbWFuL2ZvcmVtYW4tZG9ja2VyIiwidmVyc2lvbiI6IjMuMC4wIn0seyJp
136
        ZCI6ImthdGVsbG8iLCJuYW1lIjoia2F0ZWxsbyIsImF1dGhvciI6Ik4vQSIs
137
        ImRlc2NyaXB0aW9uIjoiQ29udGVudCBhbmQgU3Vic2NyaXB0aW9uIE1hbmFn
138
        ZW1lbnQgcGx1Z2luIGZvciBGb3JlbWFuIiwidXJsIjoiaHR0cDovL3d3dy5r
139
        YXRlbGxvLm9yZyIsInZlcnNpb24iOiIzLjIuMCJ9XQp9Cg==
140
    http_version: 
141
  recorded_at: Mon, 12 Sep 2016 15:39:26 GMT
142
- request:
143
    method: get
144
    uri: https://admin:changeme@katello.example.com:50191/katello/api/organizations?per_page=999999&search=name=%22Test%20Corporation%22
145
    body:
146
      encoding: US-ASCII
147
      string: ''
148
    headers:
149
      Accept:
150
      - application/json;version=2
151
      Accept-Encoding:
152
      - gzip, deflate
153
      User-Agent:
154
      - rest-client/2.0.0 (linux-gnu x86_64) ruby/2.1.10p492
155
      Content-Type:
156
      - application/json
157
      Host:
158
      - katello.example.com:50191
159
  response:
160
    status:
161
      code: 200
162
      message: OK
163
    headers:
164
      Date:
165
      - Mon, 12 Sep 2016 15:39:25 GMT
166
      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
174
      Foreman-Version:
175
      - 1.14.0-develop
176
      Foreman-Api-Version:
177
      - '2'
178
      Content-Type:
179
      - application/json; charset=utf-8
180
      Apipie-Checksum:
181
      - 9544abef9cf8343005f07ed8c9f1f8e7
182
      Etag:
183
      - W/"471e8acb2053be2e7a823cbd174ec330-gzip"
184
      Cache-Control:
185
      - max-age=0, private, must-revalidate
186
      X-Request-Id:
187
      - 80b9896d-48f8-423a-ba1b-9199e1bdcef1
188
      X-Runtime:
189
      - '0.220995'
190
      Via:
191
      - 1.1 katello.example.com:50191
192
      Vary:
193
      - Accept-Encoding
194
      Content-Length:
195
      - '388'
196
      Set-Cookie:
197
      - _session_id=ba766f8604895fcfa1aaab0ffd814849; path=/; HttpOnly
198
    body:
199
      encoding: ASCII-8BIT
200
      string: |
201
        {
202
          "total": 3,
203
          "subtotal": 1,
204
          "page": 1,
205
          "per_page": 999999,
206
          "search": "name=\"Test Corporation\"",
207
          "sort": {
208
            "by": null,
209
            "order": null
210
          },
211
          "results": [{"label":"testcorp","created_at":"2016-09-07 01:39:03 UTC","updated_at":"2016-09-07 01:39:03 UTC","id":9,"name":"Test Corporation","title":"Test Corporation","description":"Testing today for a better tomorrow"}]
212
        }
213
    http_version: 
214
  recorded_at: Mon, 12 Sep 2016 15:39:26 GMT
215
- request:
216
    method: get
217 5
    uri: https://admin:changeme@katello.example.com:50191/apidoc/v2.json
218 6
    body:
219 7
      encoding: US-ASCII
......
18111 17899
          {"library":true,"id":7,"name":"Library","label":"Library","description":null,"organization":{"name":"Test Corporation","label":"testcorp","id":9},"created_at":"2016-09-07 01:39:05 UTC","updated_at":"2016-09-07 01:39:05 UTC","prior":null,"successor":null,"counts":{"content_hosts":0,"content_views":1,"packages":0,"puppet_modules":0,"errata":{"security":0,"bugfix":0,"enhancement":0,"total":0},"yum_repositories":2,"docker_repositories":0,"ostree_repositories":0,"products":1},"permissions":{"create_lifecycle_environments":true,"view_lifecycle_environments":true,"edit_lifecycle_environments":true,"destroy_lifecycle_environments":false,"promote_or_remove_content_views_to_environments":true}}
18112 17900
    http_version: 
18113 17901
  recorded_at: Mon, 12 Sep 2016 15:39:31 GMT
17902
- request:
17903
    method: get
17904
    uri: https://admin:changeme@katello.example.com:50218/api/status
17905
    body:
17906
      encoding: US-ASCII
17907
      string: ''
17908
    headers:
17909
      Accept-Encoding:
17910
      - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
17911
      Accept:
17912
      - "*/*"
17913
      User-Agent:
17914
      - Ruby
17915
  response:
17916
    status:
17917
      code: 200
17918
      message: 'OK '
17919
    headers:
17920
      Date:
17921
      - Fri, 30 Sep 2016 15:39:55 GMT
17922
      Server:
17923
      - WEBrick/1.3.1 (Ruby/2.2.4/2015-12-16)
17924
      Foreman-Version:
17925
      - 1.14.0-develop
17926
      Foreman-Api-Version:
17927
      - '2'
17928
      Content-Type:
17929
      - application/json; charset=utf-8
17930
      Apipie-Checksum:
17931
      - 68d37bf606b9a03df6e1e749d6054009
17932
      Etag:
17933
      - W/"1316c9d778b9181476af8a9546423fb1-gzip"
17934
      Cache-Control:
17935
      - max-age=0, private, must-revalidate
17936
      X-Request-Id:
17937
      - 7231172b-db5e-45cb-81d9-b6fac18c8afa
17938
      X-Runtime:
17939
      - '0.079191'
17940
      Content-Security-Policy:
17941
      - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:;
17942
        img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline''
17943
        ''self''; style-src ''unsafe-inline'' ''self'''
17944
      Strict-Transport-Security:
17945
      - max-age=631152000; includeSubdomains
17946
      X-Content-Type-Options:
17947
      - nosniff
17948
      X-Download-Options:
17949
      - noopen
17950
      X-Frame-Options:
17951
      - sameorigin
17952
      X-Permitted-Cross-Domain-Policies:
17953
      - none
17954
      X-Xss-Protection:
17955
      - 1; mode=block
17956
      Via:
17957
      - 1.1 testing.example.com:50218
17958
      Vary:
17959
      - Accept-Encoding
17960
      Content-Length:
17961
      - '81'
17962
      Set-Cookie:
17963
      - _session_id=d7682a7428f8909d364e6c819d2889ec; path=/; HttpOnly
17964
    body:
17965
      encoding: UTF-8
17966
      string: '{"result":"ok","status":200,"version":"1.14.0-develop","api_version":2}'
17967
    http_version: 
17968
  recorded_at: Fri, 30 Sep 2016 15:39:56 GMT
17969
- request:
17970
    method: get
17971
    uri: https://admin:changeme@katello.example.com:50218/api/v2/plugins
17972
    body:
17973
      encoding: US-ASCII
17974
      string: ''
17975
    headers:
17976
      Accept-Encoding:
17977
      - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
17978
      Accept:
17979
      - "*/*"
17980
      User-Agent:
17981
      - Ruby
17982
  response:
17983
    status:
17984
      code: 200
17985
      message: 'OK '
17986
    headers:
17987
      Date:
17988
      - Fri, 30 Sep 2016 15:39:55 GMT
17989
      Server:
17990
      - WEBrick/1.3.1 (Ruby/2.2.4/2015-12-16)
17991
      Foreman-Version:
17992
      - 1.14.0-develop
17993
      Foreman-Api-Version:
17994
      - '2'
17995
      Content-Type:
17996
      - application/json; charset=utf-8
17997
      Apipie-Checksum:
17998
      - 68d37bf606b9a03df6e1e749d6054009
17999
      Etag:
18000
      - W/"8f0162a4d2fd78df40b7f264aee93d64-gzip"
18001
      Cache-Control:
18002
      - max-age=0, private, must-revalidate
18003
      X-Request-Id:
18004
      - f73419f2-d088-4d41-a2c2-01719446361d
18005
      X-Runtime:
18006
      - '0.061947'
18007
      Content-Security-Policy:
18008
      - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:;
18009
        img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline''
18010
        ''self''; style-src ''unsafe-inline'' ''self'''
18011
      Strict-Transport-Security:
18012
      - max-age=631152000; includeSubdomains
18013
      X-Content-Type-Options:
18014
      - nosniff
18015
      X-Download-Options:
18016
      - noopen
18017
      X-Frame-Options:
18018
      - sameorigin
18019
      X-Permitted-Cross-Domain-Policies:
18020
      - none
18021
      X-Xss-Protection:
18022
      - 1; mode=block
18023
      Via:
18024
      - 1.1 testing.example.com:50218
18025
      Vary:
18026
      - Accept-Encoding
18027
      Content-Length:
18028
      - '565'
18029
      Set-Cookie:
18030
      - _session_id=ad3fef31a0f3c103f3e68f5b9076f9c8; path=/; HttpOnly
18031
    body:
18032
      encoding: ASCII-8BIT
18033
      string: !binary |-
18034
        ewogICJ0b3RhbCI6IDMsCiAgInN1YnRvdGFsIjogMywKICAicGFnZSI6IDEs
18035
        CiAgInBlcl9wYWdlIjogMjAsCiAgInNlYXJjaCI6IG51bGwsCiAgInNvcnQi
18036
        OiB7CiAgICAiYnkiOiBudWxsLAogICAgIm9yZGVyIjogbnVsbAogIH0sCiAg
18037
        InJlc3VsdHMiOiBbeyJpZCI6ImZvcmVtYW4tdGFza3MiLCJuYW1lIjoiZm9y
18038
        ZW1hbi10YXNrcyIsImF1dGhvciI6Ikl2YW4gTmXEjWFzIiwiZGVzY3JpcHRp
18039
        b24iOiJUaGUgZ29hbCBvZiB0aGlzIHBsdWdpbiBpcyB0byB1bmlmeSB0aGUg
18040
        d2F5IG9mIHNob3dpbmcgdGFzayBzdGF0dXNlcyBhY3Jvc3MgdGhlIEZvcmVt
18041
        YW4gaW5zdGFuY2UuXG5JdCBkZWZpbmVzIFRhc2sgbW9kZWwgZm9yIGtlZXBp
18042
        bmcgdGhlIGluZm9ybWF0aW9uIGFib3V0IHRoZSB0YXNrcyBhbmQgTG9jayBm
18043
        b3IgYXNzaWduaW5nIHRoZSB0YXNrc1xudG8gcmVzb3VyY2VzLiBUaGUgbG9j
18044
        a2luZyBhbGxvd3MgZGVhbGluZyB3aXRoIHByZXZlbnRpbmcgbXVsdGlwbGUg
18045
        Y29sbGlkaW5nIHRhc2tzIHRvIGJlIHJ1biBvbiB0aGVcbnNhbWUgcmVzb3Vy
18046
        Y2UuIEl0IGFsc28gb3B0aW9uYWxseSBwcm92aWRlcyBEeW5mbG93IGluZnJh
18047
        c3RydWN0dXJlIGZvciB1c2luZyBpdCBmb3IgbWFuYWdpbmcgdGhlIHRhc2tz
18048
        LlxuIiwidXJsIjoiaHR0cHM6Ly9naXRodWIuY29tL3RoZWZvcmVtYW4vZm9y
18049
        ZW1hbi10YXNrcyIsInZlcnNpb24iOiIwLjguMiJ9LHsiaWQiOiJmb3JlbWFu
18050
        X2RvY2tlciIsIm5hbWUiOiJmb3JlbWFuX2RvY2tlciIsImF1dGhvciI6IkRh
18051
        bmllbCBMb2JhdG8sIEFtb3MgQmVuYXJpIiwiZGVzY3JpcHRpb24iOiJQcm92
18052
        aXNpb24gYW5kIG1hbmFnZSBEb2NrZXIgY29udGFpbmVycyBhbmQgaW1hZ2Vz
18053
        IGZyb20gRm9yZW1hbi4iLCJ1cmwiOiJodHRwOi8vZ2l0aHViLmNvbS90aGVm
18054
        b3JlbWFuL2ZvcmVtYW4tZG9ja2VyIiwidmVyc2lvbiI6IjMuMC4wIn0seyJp
18055
        ZCI6ImthdGVsbG8iLCJuYW1lIjoia2F0ZWxsbyIsImF1dGhvciI6Ik4vQSIs
18056
        ImRlc2NyaXB0aW9uIjoiQ29udGVudCBhbmQgU3Vic2NyaXB0aW9uIE1hbmFn
18057
        ZW1lbnQgcGx1Z2luIGZvciBGb3JlbWFuIiwidXJsIjoiaHR0cDovL3d3dy5r
18058
        YXRlbGxvLm9yZyIsInZlcnNpb24iOiIzLjMuMCJ9XQp9Cg==
18059
    http_version: 
18060
  recorded_at: Fri, 30 Sep 2016 15:39:56 GMT
18061
- request:
18062
    method: get
18063
    uri: https://admin:changeme@katello.example.com:50218/katello/api/organizations?per_page=999999&search=name=%22Test%20Corporation%22
18064
    body:
18065
      encoding: US-ASCII
18066
      string: ''
18067
    headers:
18068
      Accept:
18069
      - application/json;version=2
18070
      Accept-Encoding:
18071
      - gzip, deflate
18072
      User-Agent:
18073
      - rest-client/2.0.0 (linux-gnu x86_64) ruby/2.1.10p492
18074
      Content-Type:
18075
      - application/json
18076
      Accept-Language:
18077
      - en
18078
      Host:
18079
      - katello.example.com:50218
18080
  response:
18081
    status:
18082
      code: 200
18083
      message: 'OK '
18084
    headers:
18085
      Date:
18086
      - Fri, 30 Sep 2016 15:39:55 GMT
18087
      Server:
18088
      - WEBrick/1.3.1 (Ruby/2.2.4/2015-12-16)
18089
      Foreman-Version:
18090
      - 1.14.0-develop
18091
      Foreman-Api-Version:
18092
      - '2'
18093
      Content-Type:
18094
      - application/json; charset=utf-8
18095
      Apipie-Checksum:
18096
      - 68d37bf606b9a03df6e1e749d6054009
18097
      Etag:
18098
      - W/"d409184974d814dc55ce7ccb1cac5fd0-gzip"
18099
      Cache-Control:
18100
      - max-age=0, private, must-revalidate
18101
      X-Request-Id:
18102
      - a2745d21-f180-4ad4-ad60-640aafd9dee4
18103
      X-Runtime:
18104
      - '0.079015'
18105
      Content-Security-Policy:
18106
      - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:;
18107
        img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline''
18108
        ''self''; style-src ''unsafe-inline'' ''self'''
18109
      Strict-Transport-Security:
18110
      - max-age=631152000; includeSubdomains
18111
      X-Content-Type-Options:
18112
      - nosniff
18113
      X-Download-Options:
18114
      - noopen
18115
      X-Frame-Options:
18116
      - sameorigin
18117
      X-Permitted-Cross-Domain-Policies:
18118
      - none
18119
      X-Xss-Protection:
18120
      - 1; mode=block
18121
      Via:
18122
      - 1.1 testing.example.com:50218
18123
      Vary:
18124
      - Accept-Encoding
18125
      Content-Length:
18126
      - '388'
18127
      Set-Cookie:
18128
      - _session_id=2f05a7f241f5252bc861fd5699abb413; path=/; HttpOnly
18129
    body:
18130
      encoding: ASCII-8BIT
18131
      string: |
18132
        {
18133
          "total": 2,
18134
          "subtotal": 1,
18135
          "page": 1,
18136
          "per_page": 999999,
18137
          "search": "name=\"Test Corporation\"",
18138
          "sort": {
18139
            "by": null,
18140
            "order": null
18141
          },
18142
          "results": [{"label":"testcorp","created_at":"2016-09-30 15:10:48 UTC","updated_at":"2016-09-30 15:10:48 UTC","id":8,"name":"Test Corporation","title":"Test Corporation","description":"Testing today for a better tomorrow"}]
18143
        }
18144
    http_version: 
18145
  recorded_at: Fri, 30 Sep 2016 15:39:56 GMT
18146
- request:
18147
    method: get
18148
    uri: https://admin:changeme@katello.example.com:50218/katello/api/organizations/8/content_views?nondefault=true&per_page=999999
18149
    body:
18150
      encoding: US-ASCII
18151
      string: ''
18152
    headers:
18153
      Accept:
18154
      - application/json;version=2
18155
      Accept-Encoding:
18156
      - gzip, deflate
18157
      User-Agent:
18158
      - rest-client/2.0.0 (linux-gnu x86_64) ruby/2.1.10p492
18159
      Content-Type:
18160
      - application/json
18161
      Accept-Language:
18162
      - en
18163
      Host:
18164
      - katello.example.com:50218
18165
  response:
18166
    status:
18167
      code: 200
18168
      message: 'OK '
18169
    headers:
18170
      Date:
18171
      - Fri, 30 Sep 2016 15:39:55 GMT
18172
      Server:
18173
      - WEBrick/1.3.1 (Ruby/2.2.4/2015-12-16)
18174
      Foreman-Version:
18175
      - 1.14.0-develop
18176
      Foreman-Api-Version:
18177
      - '2'
18178
      Content-Type:
18179
      - application/json; charset=utf-8
18180
      Apipie-Checksum:
18181
      - 68d37bf606b9a03df6e1e749d6054009
18182
      Etag:
18183
      - W/"2c1c48ba932f9ca0726f7ee5cf96d964-gzip"
18184
      Cache-Control:
18185
      - max-age=0, private, must-revalidate
18186
      X-Request-Id:
18187
      - 0d458b0a-7eb1-4f16-89e3-bc4b552cab87
18188
      X-Runtime:
18189
      - '0.135687'
18190
      Content-Security-Policy:
18191
      - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:;
18192
        img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline''
18193
        ''self''; style-src ''unsafe-inline'' ''self'''
18194
      Strict-Transport-Security:
18195
      - max-age=631152000; includeSubdomains
18196
      X-Content-Type-Options:
18197
      - nosniff
18198
      X-Download-Options:
18199
      - noopen
18200
      X-Frame-Options:
18201
      - sameorigin
18202
      X-Permitted-Cross-Domain-Policies:
18203
      - none
18204
      X-Xss-Protection:
18205
      - 1; mode=block
18206
      Via:
18207
      - 1.1 testing.example.com:50218
18208
      Vary:
18209
      - Accept-Encoding
18210
      Content-Length:
18211
      - '923'
18212
      Set-Cookie:
18213
      - _session_id=17516e3963e6ce8a38a9bd2de57c2642; path=/; HttpOnly
18214
    body:
18215
      encoding: ASCII-8BIT
18216
      string: |
18217
        {"total":1,"subtotal":1,"page":1,"per_page":"999999","error":null,"search":null,"sort":{"by":null,"order":null},"results":[{"composite":false,"repository_ids":[],"component_ids":[],"default":false,"next_version":2,"id":3,"name":"Test Puppet Modules","label":"Test_Puppet_Modules","description":null,"organization":{"name":"Test Corporation","label":"testcorp","id":8},"created_at":"2016-09-30 15:12:15 UTC","updated_at":"2016-09-30 15:25:51 UTC","environments":[{"id":2,"name":"Library","label":"Library","permissions":{"readable":true}}],"repositories":[],"puppet_modules":[],"versions":[{"id":4,"version":"1.0","published":"2016-09-30 15:25:51 UTC","environment_ids":[2]}],"components":[],"activation_keys":[],"last_published":"2016-09-30 15:25:51 UTC","permissions":{"view_content_views":true,"edit_content_views":true,"destroy_content_views":true,"publish_content_views":true,"promote_or_remove_content_views":true}}]}
18218
    http_version: 
18219
  recorded_at: Fri, 30 Sep 2016 15:39:56 GMT
18220
- request:
18221
    method: put
18222
    uri: https://admin:changeme@katello.example.com:50218/katello/api/content_views/3
18223
    body:
18224
      encoding: UTF-8
18225
      string: '{"description":null,"repository_ids":[]}'
18226
    headers:
18227
      Accept:
18228
      - application/json;version=2
18229
      Accept-Encoding:
18230
      - gzip, deflate
18231
      User-Agent:
18232
      - rest-client/2.0.0 (linux-gnu x86_64) ruby/2.1.10p492
18233
      Content-Type:
18234
      - application/json
18235
      Accept-Language:
18236
      - en
18237
      Content-Length:
18238
      - '40'
18239
      Host:
18240
      - katello.example.com:50218
18241
  response:
18242
    status:
18243
      code: 200
18244
      message: 'OK '
18245
    headers:
18246
      Date:
18247
      - Fri, 30 Sep 2016 15:39:57 GMT
18248
      Server:
18249
      - WEBrick/1.3.1 (Ruby/2.2.4/2015-12-16)
18250
      Foreman-Version:
18251
      - 1.14.0-develop
18252
      Foreman-Api-Version:
18253
      - '2'
18254
      Content-Type:
18255
      - application/json; charset=utf-8
18256
      Apipie-Checksum:
18257
      - 68d37bf606b9a03df6e1e749d6054009
18258
      Etag:
18259
      - W/"6bd7a60b92889ea0bb657ee48cfae9f5-gzip"
18260
      Cache-Control:
18261
      - max-age=0, private, must-revalidate
18262
      X-Request-Id:
18263
      - 4cb4026b-0ab4-4d10-8a7a-2e234113f88b
18264
      X-Runtime:
18265
      - '1.432936'
18266
      Content-Security-Policy:
18267
      - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:;
18268
        img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline''
18269
        ''self''; style-src ''unsafe-inline'' ''self'''
18270
      Strict-Transport-Security:
18271
      - max-age=631152000; includeSubdomains
18272
      X-Content-Type-Options:
18273
      - nosniff
18274
      X-Download-Options:
18275
      - noopen
18276
      X-Frame-Options:
18277
      - sameorigin
18278
      X-Permitted-Cross-Domain-Policies:
18279
      - none
18280
      X-Xss-Protection:
18281
      - 1; mode=block
18282
      Via:
18283
      - 1.1 testing.example.com:50218
18284
      Vary:
18285
      - Accept-Encoding
18286
      Content-Length:
18287
      - '823'
18288
      Set-Cookie:
18289
      - _session_id=a1b68abbff424da90d9c255b0625bb33; path=/; HttpOnly
18290
      - request_method=PUT; path=/
18291
    body:
18292
      encoding: ASCII-8BIT
18293
      string: |2
18294
          {"content_host_count":0,"composite":false,"repository_ids":[],"component_ids":[],"default":false,"next_version":2,"id":3,"name":"Test Puppet Modules","label":"Test_Puppet_Modules","description":null,"organization":{"name":"Test Corporation","label":"testcorp","id":8},"created_at":"2016-09-30 15:12:15 UTC","updated_at":"2016-09-30 15:25:51 UTC","environments":[{"id":2,"name":"Library","label":"Library","permissions":{"readable":true}}],"repositories":[],"puppet_modules":[],"versions":[{"id":4,"version":"1.0","published":"2016-09-30 15:25:51 UTC","environment_ids":[2]}],"components":[],"activation_keys":[],"last_published":"2016-09-30 15:25:51 UTC","permissions":{"view_content_views":true,"edit_content_views":true,"destroy_content_views":true,"publish_content_views":true,"promote_or_remove_content_views":true}}
18295
    http_version: 
18296
  recorded_at: Fri, 30 Sep 2016 15:39:57 GMT
18297
- request:
18298
    method: get
18299
    uri: https://admin:changeme@katello.example.com:50218/katello/api/content_views/3
18300
    body:
18301
      encoding: US-ASCII
18302
      string: ''
18303
    headers:
18304
      Accept:
18305
      - application/json;version=2
18306
      Accept-Encoding:
18307
      - gzip, deflate
18308
      User-Agent:
18309
      - rest-client/2.0.0 (linux-gnu x86_64) ruby/2.1.10p492
18310
      Content-Type:
18311
      - application/json
18312
      Accept-Language:
18313
      - en
18314
      Host:
18315
      - katello.example.com:50218
18316
  response:
18317
    status:
18318
      code: 200
18319
      message: 'OK '
18320
    headers:
18321
      Date:
18322
      - Fri, 30 Sep 2016 15:39:57 GMT
18323
      Server:
18324
      - WEBrick/1.3.1 (Ruby/2.2.4/2015-12-16)
18325
      Foreman-Version:
18326
      - 1.14.0-develop
18327
      Foreman-Api-Version:
18328
      - '2'
18329
      Content-Type:
18330
      - application/json; charset=utf-8
18331
      Apipie-Checksum:
18332
      - 68d37bf606b9a03df6e1e749d6054009
18333
      Etag:
18334
      - W/"6bd7a60b92889ea0bb657ee48cfae9f5-gzip"
18335
      Cache-Control:
18336
      - max-age=0, private, must-revalidate
18337
      X-Request-Id:
18338
      - be9ff58c-6384-4bc6-9820-00f9f2a41e02
18339
      X-Runtime:
18340
      - '0.124553'
18341
      Content-Security-Policy:
18342
      - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:;
18343
        img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline''
18344
        ''self''; style-src ''unsafe-inline'' ''self'''
18345
      Strict-Transport-Security:
18346
      - max-age=631152000; includeSubdomains
18347
      X-Content-Type-Options:
18348
      - nosniff
18349
      X-Download-Options:
18350
      - noopen
18351
      X-Frame-Options:
18352
      - sameorigin
18353
      X-Permitted-Cross-Domain-Policies:
18354
      - none
18355
      X-Xss-Protection:
18356
      - 1; mode=block
18357
      Via:
18358
      - 1.1 testing.example.com:50218
18359
      Vary:
18360
      - Accept-Encoding
18361
      Content-Length:
18362
      - '823'
18363
      Set-Cookie:
18364
      - _session_id=d4f8b41041d76610fa9c4c8f1870a2ec; path=/; HttpOnly
18365
    body:
18366
      encoding: ASCII-8BIT
18367
      string: |2
18368
          {"content_host_count":0,"composite":false,"repository_ids":[],"component_ids":[],"default":false,"next_version":2,"id":3,"name":"Test Puppet Modules","label":"Test_Puppet_Modules","description":null,"organization":{"name":"Test Corporation","label":"testcorp","id":8},"created_at":"2016-09-30 15:12:15 UTC","updated_at":"2016-09-30 15:25:51 UTC","environments":[{"id":2,"name":"Library","label":"Library","permissions":{"readable":true}}],"repositories":[],"puppet_modules":[],"versions":[{"id":4,"version":"1.0","published":"2016-09-30 15:25:51 UTC","environment_ids":[2]}],"components":[],"activation_keys":[],"last_published":"2016-09-30 15:25:51 UTC","permissions":{"view_content_views":true,"edit_content_views":true,"destroy_content_views":true,"publish_content_views":true,"promote_or_remove_content_views":true}}
18369
    http_version: 
18370
  recorded_at: Fri, 30 Sep 2016 15:39:58 GMT
18371
- request:
18372
    method: get
18373
    uri: https://admin:changeme@katello.example.com:50218/katello/api/environments/2
18374
    body:
18375
      encoding: US-ASCII
18376
      string: ''
18377
    headers:
18378
      Accept:
18379
      - application/json;version=2
18380
      Accept-Encoding:
18381
      - gzip, deflate
18382
      User-Agent:
18383
      - rest-client/2.0.0 (linux-gnu x86_64) ruby/2.1.10p492
18384
      Content-Type:
18385
      - application/json
18386
      Accept-Language:
18387
      - en
18388
      Host:
18389
      - katello.example.com:50218
18390
  response:
18391
    status:
18392
      code: 200
18393
      message: 'OK '
18394
    headers:
18395
      Date:
18396
      - Fri, 30 Sep 2016 15:39:57 GMT
18397
      Server:
18398
      - WEBrick/1.3.1 (Ruby/2.2.4/2015-12-16)
18399
      Foreman-Version:
18400
      - 1.14.0-develop
18401
      Foreman-Api-Version:
18402
      - '2'
18403
      Content-Type:
18404
      - application/json; charset=utf-8
18405
      Apipie-Checksum:
18406
      - 68d37bf606b9a03df6e1e749d6054009
18407
      Etag:
18408
      - W/"5cbd1d86505200817b949a6af3b9653e-gzip"
18409
      Cache-Control:
18410
      - max-age=0, private, must-revalidate
18411
      X-Request-Id:
18412
      - 91401449-eba2-4dc2-be6b-40cf8e7ee3e4
18413
      X-Runtime:
18414
      - '0.111696'
18415
      Content-Security-Policy:
18416
      - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:;
18417
        img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline''
18418
        ''self''; style-src ''unsafe-inline'' ''self'''
18419
      Strict-Transport-Security:
18420
      - max-age=631152000; includeSubdomains
18421
      X-Content-Type-Options:
18422
      - nosniff
18423
      X-Download-Options:
18424
      - noopen
18425
      X-Frame-Options:
18426
      - sameorigin
18427
      X-Permitted-Cross-Domain-Policies:
18428
      - none
18429
      X-Xss-Protection:
18430
      - 1; mode=block
18431
      Via:
18432
      - 1.1 testing.example.com:50218
18433
      Vary:
18434
      - Accept-Encoding
18435
      Content-Length:
18436
      - '696'
18437
      Set-Cookie:
18438
      - _session_id=7b54bcbb2a52bec0264d69fc0646906e; path=/; HttpOnly
18439
    body:
18440
      encoding: ASCII-8BIT
18441
      string: |2
18442
          {"library":true,"id":2,"name":"Library","label":"Library","description":null,"organization":{"name":"Test Corporation","label":"testcorp","id":8},"created_at":"2016-09-30 15:10:48 UTC","updated_at":"2016-09-30 15:10:48 UTC","prior":null,"successor":null,"counts":{"content_hosts":0,"content_views":1,"packages":0,"puppet_modules":0,"errata":{"security":0,"bugfix":0,"enhancement":0,"total":0},"yum_repositories":0,"docker_repositories":0,"ostree_repositories":0,"products":0},"permissions":{"create_lifecycle_environments":true,"view_lifecycle_environments":true,"edit_lifecycle_environments":true,"destroy_lifecycle_environments":false,"promote_or_remove_content_views_to_environments":true}}
18443
    http_version: 
18444
  recorded_at: Fri, 30 Sep 2016 15:39:58 GMT
18114 18445
recorded_with: VCR 3.0.3

Also available in: Unified diff