Project

General

Profile

Revision d76bdbc0

Added by Andrew Kofink over 6 years ago

Fixes #17051 - PUT quantity to attach for AK subs (#134)

PUT the quantity to attach to the activation key rather than the
total quantity attached

`activation-keys --itemized-subscriptions --file ak_subs.csv`

View differences:

test/fixtures/vcr_cassettes/resources/subscriptions/portal_incorrect_login.yml
35 35
      Transfer-Encoding:
36 36
      - chunked
37 37
      Date:
38
      - Fri, 30 Sep 2016 13:59:17 GMT
39
    body:
40
      encoding: UTF-8
41
      string: '{"displayMessage":"Invalid username or password. To create a login,
42
        please visit https://www.redhat.com/wapps/ugc/register.html","requestUuid":"6d79dc99-f01c-4df4-bc1e-4cf2434366b0"}'
43
    http_version: 
44
  recorded_at: Fri, 30 Sep 2016 13:59:18 GMT
45
- request:
46
    method: get
47
    uri: https://username:password@subscription.rhn.redhat.com/subscription/users/username/owners
48
    body:
49
      encoding: US-ASCII
50
      string: ''
51
    headers:
52
      Accept:
53
      - application/json
54
      Accept-Encoding:
55
      - gzip, deflate
56
      User-Agent:
57
      - rest-client/2.0.0 (linux-gnu x86_64) ruby/2.1.10p492
58
      Accept-Language:
59
      - en
60
      Content-Type:
61
      - application/json
62
      Host:
63
      - subscription.rhn.redhat.com
64
  response:
65
    status:
66
      code: 401
67
      message: Unauthorized
68
    headers:
69
      Server:
70
      - Apache-Coyote/1.1
71
      X-Version:
72
      - 0.9.51.15-1
73
      Www-Authenticate:
74
      - Basic Realm=candlepin
75
      Content-Type:
76
      - application/json
77
      Transfer-Encoding:
78
      - chunked
79
      Date:
80 38
      - Fri, 30 Sep 2016 14:22:22 GMT
81 39
    body:
82 40
      encoding: UTF-8
......
411 369
        please visit https://www.redhat.com/wapps/ugc/register.html","requestUuid":"c70de44c-abaa-4fe7-a454-691e0f801332"}'
412 370
    http_version: 
413 371
  recorded_at: Wed, 12 Oct 2016 14:16:39 GMT
372
- request:
373
    method: get
374
    uri: https://username:password@subscription.rhn.redhat.com/subscription/users/username/owners
375
    body:
376
      encoding: US-ASCII
377
      string: ''
378
    headers:
379
      Accept:
380
      - application/json
381
      Accept-Encoding:
382
      - gzip, deflate
383
      User-Agent:
384
      - rest-client/2.0.0 (linux-gnu x86_64) ruby/2.3.0p0
385
      Accept-Language:
386
      - en
387
      Content-Type:
388
      - application/json
389
      Host:
390
      - subscription.rhn.redhat.com
391
  response:
392
    status:
393
      code: 401
394
      message: Unauthorized
395
    headers:
396
      Server:
397
      - Apache-Coyote/1.1
398
      X-Version:
399
      - 0.9.51.15-1
400
      Www-Authenticate:
401
      - Basic Realm=candlepin
402
      Content-Type:
403
      - application/json
404
      Transfer-Encoding:
405
      - chunked
406
      Date:
407
      - Fri, 21 Oct 2016 13:32:18 GMT
408
    body:
409
      encoding: UTF-8
410
      string: '{"displayMessage":"Invalid username or password. To create a login,
411
        please visit https://www.redhat.com/wapps/ugc/register.html","requestUuid":"df6d6228-d88b-4ce6-914e-1f94239433af"}'
412
    http_version: 
413
  recorded_at: Fri, 21 Oct 2016 13:32:17 GMT
414 414
recorded_with: VCR 3.0.3

Also available in: Unified diff