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/resources/subscriptions/portal_incorrect_login.yml
35 35
      Transfer-Encoding:
36 36
      - chunked
37 37
      Date:
38
      - Thu, 22 Sep 2016 19:50:32 GMT
38
      - Fri, 30 Sep 2016 13:59:17 GMT
39 39
    body:
40 40
      encoding: UTF-8
41 41
      string: '{"displayMessage":"Invalid username or password. To create a login,
42
        please visit https://www.redhat.com/wapps/ugc/register.html","requestUuid":"ebbd753e-22e6-4fc5-9737-a091ebcc1dfd"}'
42
        please visit https://www.redhat.com/wapps/ugc/register.html","requestUuid":"6d79dc99-f01c-4df4-bc1e-4cf2434366b0"}'
43 43
    http_version: 
44
  recorded_at: Thu, 22 Sep 2016 19:50:33 GMT
44
  recorded_at: Fri, 30 Sep 2016 13:59:18 GMT
45 45
- request:
46 46
    method: get
47 47
    uri: https://username:password@subscription.rhn.redhat.com/subscription/users/username/owners
......
77 77
      Transfer-Encoding:
78 78
      - chunked
79 79
      Date:
80
      - Thu, 22 Sep 2016 19:59:39 GMT
80
      - Fri, 30 Sep 2016 14:22:22 GMT
81 81
    body:
82 82
      encoding: UTF-8
83 83
      string: '{"displayMessage":"Invalid username or password. To create a login,
84
        please visit https://www.redhat.com/wapps/ugc/register.html","requestUuid":"8b0ccb2b-563a-4ecd-960c-adbd3e1f6c65"}'
84
        please visit https://www.redhat.com/wapps/ugc/register.html","requestUuid":"6c16773a-c912-4b50-bf99-e03b0f288878"}'
85 85
    http_version: 
86
  recorded_at: Thu, 22 Sep 2016 19:59:40 GMT
86
  recorded_at: Fri, 30 Sep 2016 14:22:23 GMT
87 87
- request:
88 88
    method: get
89 89
    uri: https://username:password@subscription.rhn.redhat.com/subscription/users/username/owners
......
119 119
      Transfer-Encoding:
120 120
      - chunked
121 121
      Date:
122
      - Thu, 22 Sep 2016 20:01:32 GMT
122
      - Fri, 30 Sep 2016 14:37:55 GMT
123 123
    body:
124 124
      encoding: UTF-8
125 125
      string: '{"displayMessage":"Invalid username or password. To create a login,
126
        please visit https://www.redhat.com/wapps/ugc/register.html","requestUuid":"c03672fc-91fa-496b-8753-3881b7746f40"}'
126
        please visit https://www.redhat.com/wapps/ugc/register.html","requestUuid":"f74c0ba9-f155-4464-99a1-41e5e18f5981"}'
127 127
    http_version: 
128
  recorded_at: Thu, 22 Sep 2016 20:01:33 GMT
128
  recorded_at: Fri, 30 Sep 2016 14:37:56 GMT
129 129
- request:
130 130
    method: get
131
    uri: https://admin:changeme@katello.example.com:50219/api/status
131
    uri: https://username:password@subscription.rhn.redhat.com/subscription/users/username/owners
132
    body:
133
      encoding: US-ASCII
134
      string: ''
135
    headers:
136
      Accept:
137
      - application/json
138
      Accept-Encoding:
139
      - gzip, deflate
140
      User-Agent:
141
      - rest-client/2.0.0 (linux-gnu x86_64) ruby/2.1.10p492
142
      Accept-Language:
143
      - en
144
      Content-Type:
145
      - application/json
146
      Host:
147
      - subscription.rhn.redhat.com
148
  response:
149
    status:
150
      code: 401
151
      message: Unauthorized
152
    headers:
153
      Server:
154
      - Apache-Coyote/1.1
155
      X-Version:
156
      - 0.9.51.15-1
157
      Www-Authenticate:
158
      - Basic Realm=candlepin
159
      Content-Type:
160
      - application/json
161
      Transfer-Encoding:
162
      - chunked
163
      Date:
164
      - Fri, 30 Sep 2016 15:31:03 GMT
165
    body:
166
      encoding: UTF-8
167
      string: '{"displayMessage":"Invalid username or password. To create a login,
168
        please visit https://www.redhat.com/wapps/ugc/register.html","requestUuid":"fbe6c328-2205-43e0-a4a8-3aa4013ba62c"}'
169
    http_version: 
170
  recorded_at: Fri, 30 Sep 2016 15:31:03 GMT
171
- request:
172
    method: get
173
    uri: https://admin:changeme@katello.example.com:50218/api/status
132 174
    body:
133 175
      encoding: US-ASCII
134 176
      string: ''
......
142 184
  response:
143 185
    status:
144 186
      code: 200
145
      message: OK
187
      message: 'OK '
146 188
    headers:
147 189
      Date:
148
      - Thu, 22 Sep 2016 21:04:59 GMT
190
      - Fri, 30 Sep 2016 15:39:40 GMT
149 191
      Server:
150
      - Apache/2.4.6 (CentOS)
192
      - WEBrick/1.3.1 (Ruby/2.2.4/2015-12-16)
151 193
      Foreman-Version:
152 194
      - 1.14.0-develop
153 195
      Foreman-Api-Version:
......
155 197
      Content-Type:
156 198
      - application/json; charset=utf-8
157 199
      Apipie-Checksum:
158
      - 9544abef9cf8343005f07ed8c9f1f8e7
200
      - 68d37bf606b9a03df6e1e749d6054009
159 201
      Etag:
160 202
      - W/"1316c9d778b9181476af8a9546423fb1-gzip"
161 203
      Cache-Control:
162 204
      - max-age=0, private, must-revalidate
163 205
      X-Request-Id:
164
      - 7c78f9ce-d162-497d-bf33-a75a01415f5b
206
      - 747f0c0c-879e-45d1-98c9-db54fbdfeda4
165 207
      X-Runtime:
166
      - '0.220851'
208
      - '0.087741'
167 209
      Content-Security-Policy:
168 210
      - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:;
169
        img-src ''self'' *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline''
211
        img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline''
170 212
        ''self''; style-src ''unsafe-inline'' ''self'''
171 213
      Strict-Transport-Security:
172 214
      - max-age=631152000; includeSubdomains
......
181 223
      X-Xss-Protection:
182 224
      - 1; mode=block
183 225
      Via:
184
      - 1.1 katello.example.com:50219
226
      - 1.1 testing.example.com:50218
185 227
      Vary:
186 228
      - Accept-Encoding
187 229
      Content-Length:
188 230
      - '81'
189 231
      Set-Cookie:
190
      - _session_id=8e1c3015f2b4ab84b732fd0f8332ccc2; path=/; HttpOnly
232
      - _session_id=a854d36efe049cbddbd1d5f1d70a160c; path=/; HttpOnly
191 233
    body:
192 234
      encoding: UTF-8
193 235
      string: '{"result":"ok","status":200,"version":"1.14.0-develop","api_version":2}'
194 236
    http_version: 
195
  recorded_at: Thu, 22 Sep 2016 21:05:01 GMT
237
  recorded_at: Fri, 30 Sep 2016 15:39:41 GMT
196 238
- request:
197 239
    method: get
198
    uri: https://admin:changeme@katello.example.com:50219/api/v2/plugins
240
    uri: https://admin:changeme@katello.example.com:50218/api/v2/plugins
199 241
    body:
200 242
      encoding: US-ASCII
201 243
      string: ''
......
209 251
  response:
210 252
    status:
211 253
      code: 200
212
      message: OK
254
      message: 'OK '
213 255
    headers:
214 256
      Date:
215
      - Thu, 22 Sep 2016 21:05:00 GMT
257
      - Fri, 30 Sep 2016 15:39:40 GMT
216 258
      Server:
217
      - Apache/2.4.6 (CentOS)
259
      - WEBrick/1.3.1 (Ruby/2.2.4/2015-12-16)
218 260
      Foreman-Version:
219 261
      - 1.14.0-develop
220 262
      Foreman-Api-Version:
......
222 264
      Content-Type:
223 265
      - application/json; charset=utf-8
224 266
      Apipie-Checksum:
225
      - 9544abef9cf8343005f07ed8c9f1f8e7
267
      - 68d37bf606b9a03df6e1e749d6054009
226 268
      Etag:
227
      - W/"1f3be6be9a21bcf6d5ba90bd77fcb5ca-gzip"
269
      - W/"8f0162a4d2fd78df40b7f264aee93d64-gzip"
228 270
      Cache-Control:
229 271
      - max-age=0, private, must-revalidate
230 272
      X-Request-Id:
231
      - ee6c8579-d33b-4e36-8a95-b98790143b21
273
      - bc995454-daac-4737-9b85-34ddbc44573f
232 274
      X-Runtime:
233
      - '0.186687'
275
      - '0.069535'
234 276
      Content-Security-Policy:
235 277
      - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:;
236
        img-src ''self'' *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline''
278
        img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline''
237 279
        ''self''; style-src ''unsafe-inline'' ''self'''
238 280
      Strict-Transport-Security:
239 281
      - max-age=631152000; includeSubdomains
......
248 290
      X-Xss-Protection:
249 291
      - 1; mode=block
250 292
      Via:
251
      - 1.1 katello.example.com:50219
293
      - 1.1 testing.example.com:50218
252 294
      Vary:
253 295
      - Accept-Encoding
254 296
      Content-Length:
255
      - '721'
297
      - '565'
256 298
      Set-Cookie:
257
      - _session_id=d01ec4665b4e9e7e7ba8e40ec389c87f; path=/; HttpOnly
299
      - _session_id=b8b25bbaa306542857ce68b3416fa590; path=/; HttpOnly
258 300
    body:
259 301
      encoding: ASCII-8BIT
260 302
      string: !binary |-
261
        ewogICJ0b3RhbCI6IDUsCiAgInN1YnRvdGFsIjogNSwKICAicGFnZSI6IDEs
303
        ewogICJ0b3RhbCI6IDMsCiAgInN1YnRvdGFsIjogMywKICAicGFnZSI6IDEs
262 304
        CiAgInBlcl9wYWdlIjogMjAsCiAgInNlYXJjaCI6IG51bGwsCiAgInNvcnQi
263 305
        OiB7CiAgICAiYnkiOiBudWxsLAogICAgIm9yZGVyIjogbnVsbAogIH0sCiAg
264 306
        InJlc3VsdHMiOiBbeyJpZCI6ImZvcmVtYW4tdGFza3MiLCJuYW1lIjoiZm9y
......
279 321
        aXNpb24gYW5kIG1hbmFnZSBEb2NrZXIgY29udGFpbmVycyBhbmQgaW1hZ2Vz
280 322
        IGZyb20gRm9yZW1hbi4iLCJ1cmwiOiJodHRwOi8vZ2l0aHViLmNvbS90aGVm
281 323
        b3JlbWFuL2ZvcmVtYW4tZG9ja2VyIiwidmVyc2lvbiI6IjMuMC4wIn0seyJp
282
        ZCI6ImZvcmVtYW5fcmVtb3RlX2V4ZWN1dGlvbiIsIm5hbWUiOiJmb3JlbWFu
283
        X3JlbW90ZV9leGVjdXRpb24iLCJhdXRob3IiOiJGb3JlbWFuIFJlbW90ZSBF
284
        eGVjdXRpb24gdGVhbSIsImRlc2NyaXB0aW9uIjoiQSBwbHVnaW4gYnJpbmdp
285
        bmcgcmVtb3RlIGV4ZWN1dGlvbiB0byB0aGUgRm9yZW1hbiwgY29tcGxldGlu
286
        ZyB0aGUgY29uZmlnIG1hbmFnZW1lbnQgZnVuY3Rpb25hbGl0eSB3aXRoIHJl
287
        bW90ZSBtYW5hZ2VtZW50IGZ1bmN0aW9uYWxpdHkuIiwidXJsIjoiaHR0cHM6
288
        Ly9naXRodWIuY29tL3RoZWZvcmVtYW4vZm9yZW1hbl9yZW1vdGVfZXhlY3V0
289
        aW9uIiwidmVyc2lvbiI6IjEuMi4xIn0seyJpZCI6ImZvcmVtYW5fdGVtcGxh
290
        dGVzIiwibmFtZSI6ImZvcmVtYW5fdGVtcGxhdGVzIiwiYXV0aG9yIjoiR3Jl
291
        ZyBTdXRjbGlmZmUiLCJkZXNjcmlwdGlvbiI6IkVuZ2luZSB0byBzeW5jaHJv
292
        bmlzZSBwcm92aXNpb25pbmcgdGVtcGxhdGVzIGZyb20gR2l0SHViIiwidXJs
293
        IjoiaHR0cDovL2dpdGh1Yi5jb20vdGhlZm9yZW1hbi9mb3JlbWFuX3RlbXBs
294
        YXRlcyIsInZlcnNpb24iOiIzLjAuMCJ9LHsiaWQiOiJrYXRlbGxvIiwibmFt
295
        ZSI6ImthdGVsbG8iLCJhdXRob3IiOiJOL0EiLCJkZXNjcmlwdGlvbiI6IkNv
296
        bnRlbnQgYW5kIFN1YnNjcmlwdGlvbiBNYW5hZ2VtZW50IHBsdWdpbiBmb3Ig
297
        Rm9yZW1hbiIsInVybCI6Imh0dHA6Ly93d3cua2F0ZWxsby5vcmciLCJ2ZXJz
298
        aW9uIjoiMy4zLjAifV0KfQo=
324
        ZCI6ImthdGVsbG8iLCJuYW1lIjoia2F0ZWxsbyIsImF1dGhvciI6Ik4vQSIs
325
        ImRlc2NyaXB0aW9uIjoiQ29udGVudCBhbmQgU3Vic2NyaXB0aW9uIE1hbmFn
326
        ZW1lbnQgcGx1Z2luIGZvciBGb3JlbWFuIiwidXJsIjoiaHR0cDovL3d3dy5r
327
        YXRlbGxvLm9yZyIsInZlcnNpb24iOiIzLjMuMCJ9XQp9Cg==
299 328
    http_version: 
300
  recorded_at: Thu, 22 Sep 2016 21:05:01 GMT
329
  recorded_at: Fri, 30 Sep 2016 15:39:41 GMT
301 330
- request:
302 331
    method: get
303 332
    uri: https://username:password@subscription.rhn.redhat.com/subscription/users/username/owners
......
333 362
      Transfer-Encoding:
334 363
      - chunked
335 364
      Date:
336
      - Thu, 22 Sep 2016 21:05:01 GMT
365
      - Fri, 30 Sep 2016 15:39:41 GMT
337 366
    body:
338 367
      encoding: UTF-8
339 368
      string: '{"displayMessage":"Invalid username or password. To create a login,
340
        please visit https://www.redhat.com/wapps/ugc/register.html","requestUuid":"18635078-c0c0-44b6-8ad5-d10344c44139"}'
369
        please visit https://www.redhat.com/wapps/ugc/register.html","requestUuid":"3996a9f6-7ba7-40b3-9784-8a53292ca798"}'
341 370
    http_version: 
342
  recorded_at: Thu, 22 Sep 2016 21:05:02 GMT
371
  recorded_at: Fri, 30 Sep 2016 15:39:42 GMT
343 372
recorded_with: VCR 3.0.3

Also available in: Unified diff