Project

General

Profile

Download (5.94 KB) Statistics
| Branch: | Tag: | Revision:

runcible / test / fixtures / vcr_cassettes / resources / profiles / upload_profile.yml @ df1b6e2a

1
---
2
http_interactions:
3
- request:
4
    method: post
5
    uri: https://admin:admin@obelix.example.com/pulp/api/v2/consumers/
6
    body:
7
      encoding: UTF-8
8
      string: '{"id":"integration_test_consumer","name":"boo"}'
9
    headers:
10
      Accept:
11
      - application/json
12
      Accept-Encoding:
13
      - gzip, deflate
14
      User-Agent:
15
      - rest-client/2.0.2 (linux-gnu x86_64) ruby/2.2.4p230
16
      Content-Type:
17
      - application/json
18
      Content-Length:
19
      - '47'
20
      Host:
21
      - obelix.example.com
22
  response:
23
    status:
24
      code: 201
25
      message: CREATED
26
    headers:
27
      Date:
28
      - Tue, 14 Nov 2017 20:18:58 GMT
29
      Server:
30
      - Apache/2.4.6 (CentOS)
31
      Content-Length:
32
      - '2497'
33
      Location:
34
      - https://obelix.example.com/pulp/api/v2/consumers/integration_test_consumer/
35
      Connection:
36
      - close
37
      Content-Type:
38
      - application/json; charset=utf-8
39
    body:
40
      encoding: UTF-8
41
      string: '{"consumer": {"display_name": "integration_test_consumer", "description":
42
        null, "_ns": "consumers", "notes": {}, "rsa_pub": null, "capabilities": {},
43
        "_id": {"$oid": "5a0b4fb270be6f049d38d865"}, "id": "integration_test_consumer",
44
        "_href": "/pulp/api/v2/consumers/integration_test_consumer/"}, "certificate":
45
        "-----BEGIN RSA PRIVATE KEY-----\nMIICXAIBAAKBgQCjXX5uLsCvwBLt06nbAaNi1ZRSMWCRkGERjkzgI0OCa+JSUmhn\nY8F2WfTsZbfWYE5sEBQtebl9T1QEOD2qKvkzACYVHwF1MAJew02gezoExRsHxveT\nzH33q0wRiU4kUy9CFxTbwThIyE1PMgMwsGo+QNtasHGIbvPF1zfX93R6KwIDAQAB\nAoGAC7LFO/SjHbK+aENw9VrfrVMoBN6+UI4rNUugW6iKzAsXsNdv3H97OhNlA4yh\nJnvNAdYA6+S8kKmelZLFb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ITU8y\nAzCwaj5A21qwcYhu88XXN9f3dHorAgMBAAEwDQYJKoZIhvcNAQEFBQADggIBAJFH\nvsrJHeFWgIfed052rTf35S1YPLvKfRObXvnGGcYyoE52aVF+jY3dhN4NJAVsPXTn\n3ErnqBM9WgZitJW4DkeFR+ZZwdTS4/rNXPK5HesaQ+CUs4lDfHU0LxCWPeMz0aDP\ntWvBo5L3zh92H1gAGXd2FQ9tS+4cg/l7VILPvV4o+Aq0ZOlJUM4QyaJmF4wMDlX5\nqJ6S2Y2wWOmtAVtXBdnLBp1uFepjQXFDt2j36qyBWA+17sSkH+I/TzsB2RYHPnmm\neaZnAZKcQPhJtyPecSsKC2RvgKOiYeVjKBVjrL32LW7zzVQz+KjjM3gpTIbW5Wsm\nakRlSD5ZmRAx5TrVu+eFc7Ydsu8HJqr94uRXUDDfYrvuU4ye1lRvKk2yU9k/T4nO\ny33Enzj2u8nk0zt4tR5u4vXJSoz9iZrVPW/M+3BldFEoPGKfRsEGuzQrQoetr9CL\n4WLlu6+U1VI2oz3p2wsbJXZxbbukXsgQPgb+10KztbV7XfDkkV2fdMqc0+a1iukO\nWVd/JjzTzmOLNTl9O9gV7Qlq8V25uunMDYZhVTKGJ2i61hUYuNmefCatbRiBP4w6\nyH7aNqcvWUTqdSCaNizhKgo/gYLuq0HCvf03/jye8ggbRKokkL0tEp8tqDDsDkxN\n+rQNUszZYfTp1HT79dWlBoxw0X6mkrgpekiW/XgT\n-----END
47
        CERTIFICATE-----"}'
48
    http_version: 
49
  recorded_at: Tue, 14 Nov 2017 20:18:58 GMT
50
- request:
51
    method: post
52
    uri: https://admin:admin@obelix.example.com/pulp/api/v2/consumers/integration_test_consumer/profiles//
53
    body:
54
      encoding: UTF-8
55
      string: '{"content_type":"rpm","profile":[{"vendor":"FedoraHosted","name":"elephant","version":"0.3","release":"0.8","arch":"noarch","epoch":""}]}'
56
    headers:
57
      Accept:
58
      - application/json
59
      Accept-Encoding:
60
      - gzip, deflate
61
      User-Agent:
62
      - rest-client/2.0.2 (linux-gnu x86_64) ruby/2.2.4p230
63
      Content-Type:
64
      - application/json
65
      Content-Length:
66
      - '137'
67
      Host:
68
      - obelix.example.com
69
  response:
70
    status:
71
      code: 201
72
      message: CREATED
73
    headers:
74
      Date:
75
      - Tue, 14 Nov 2017 20:18:58 GMT
76
      Server:
77
      - Apache/2.4.6 (CentOS)
78
      Content-Length:
79
      - '466'
80
      Location:
81
      - https://obelix.example.com/pulp/api/v2/consumers/integration_test_consumer/profiles/rpm/
82
      Connection:
83
      - close
84
      Content-Type:
85
      - application/json; charset=utf-8
86
    body:
87
      encoding: UTF-8
88
      string: '{"profile": [{"vendor": "FedoraHosted", "name": "elephant", "epoch":
89
        "", "version": "0.3", "release": "0.8", "arch": "noarch"}], "_href": "/pulp/api/v2/consumers/integration_test_consumer/profiles/rpm/",
90
        "_ns": "consumer_unit_profiles", "profile_hash": "0d63d9eddb6aacc1705bdc39b3ad249885462b93474d388699eef263de0f190f",
91
        "consumer_id": "integration_test_consumer", "content_type": "rpm", "_id":
92
        {"$oid": "5a0b4fb270be6f049ca06fdb"}, "id": "5a0b4fb270be6f049ca06fdb"}'
93
    http_version: 
94
  recorded_at: Tue, 14 Nov 2017 20:18:58 GMT
95
- request:
96
    method: delete
97
    uri: https://admin:admin@obelix.example.com/pulp/api/v2/consumers/integration_test_consumer/
98
    body:
99
      encoding: US-ASCII
100
      string: ''
101
    headers:
102
      Accept:
103
      - application/json
104
      Accept-Encoding:
105
      - gzip, deflate
106
      User-Agent:
107
      - rest-client/2.0.2 (linux-gnu x86_64) ruby/2.2.4p230
108
      Content-Type:
109
      - application/json
110
      Host:
111
      - obelix.example.com
112
  response:
113
    status:
114
      code: 200
115
      message: OK
116
    headers:
117
      Date:
118
      - Tue, 14 Nov 2017 20:18:58 GMT
119
      Server:
120
      - Apache/2.4.6 (CentOS)
121
      Content-Length:
122
      - '4'
123
      Connection:
124
      - close
125
      Content-Type:
126
      - application/json; charset=utf-8
127
    body:
128
      encoding: UTF-8
129
      string: 'null'
130
    http_version: 
131
  recorded_at: Tue, 14 Nov 2017 20:18:58 GMT
132
recorded_with: VCR 3.0.3