Project

General

Profile

Revision c022bb6f

Added by Matthias Dellweg almost 5 years ago

Add tests for debian extension

View differences:

test/extensions/deb_repository_test.rb
1
require 'rubygems'
2
require 'minitest/autorun'
3

  
4
require './test/support/repository_support'
5
require './lib/runcible'
6

  
7
module Extensions
8
  module TestDebRepositoryBase
9
    def setup
10
      @support = RepositorySupport.new('deb')
11
      @extension = TestRuncible.server.extensions.repository
12
    end
13
  end
14

  
15
  class TestDebRepositoryCreate < MiniTest::Unit::TestCase
16
    include TestDebRepositoryBase
17

  
18
    def teardown
19
      @support.destroy_repo
20
      super
21
    end
22

  
23
    def test_create_with_importer
24
      response = @extension.create_with_importer(RepositorySupport.repo_id, :id => 'deb_importer')
25
      assert_equal 201, response.code
26

  
27
      response = @extension.retrieve(RepositorySupport.repo_id, :details => true)
28
      assert_equal RepositorySupport.repo_id, response['id']
29
      assert_equal 'deb_importer', response['importers'].first['importer_type_id']
30
    end
31

  
32
    def test_create_with_importer_object
33
      response = @extension.create_with_importer(RepositorySupport.repo_id, Runcible::Models::DebImporter.new)
34
      assert_equal 201, response.code
35

  
36
      response = @extension.retrieve(RepositorySupport.repo_id, :details => true)
37
      assert_equal RepositorySupport.repo_id, response['id']
38
      assert_equal 'deb_importer', response['importers'].first['importer_type_id']
39

  
40
      @extension.expects(:create).with(RepositorySupport.repo_id, has_entry(:notes, anything)).returns(true)
41
      @extension.create_with_importer(RepositorySupport.repo_id, Runcible::Models::DebImporter.new)
42
    end
43

  
44
    def test_create_with_distributors
45
      distributors = [{'type_id' => 'deb_distributor', 'id' => '123', 'auto_publish' => true,
46
                       'config' => {'relative_url' => '/path', 'http' => true, 'https' => true}}]
47
      response = @extension.create_with_distributors(RepositorySupport.repo_id, distributors)
48

  
49
      assert_equal 201, response.code
50
      assert_equal RepositorySupport.repo_id, response['id']
51
    end
52

  
53
    def test_create_with_distributor_object
54
      repo_id = RepositorySupport.repo_id + '_distro'
55
      response = @extension.create_with_distributors(repo_id, [Runcible::Models::DebDistributor.new(
56
        '/path', true, true, :id => '123')])
57
      assert_equal 201, response.code
58

  
59
      response = @extension.retrieve(repo_id, :details => true)
60
      assert_equal repo_id, response['id']
61
      assert_equal 'deb_distributor', response['distributors'].first['distributor_type_id']
62
    ensure
63
      @support.destroy_repo(repo_id)
64
    end
65

  
66
    def test_create_with_importer_and_distributors
67
      distributors = [{'type_id' => 'deb_distributor', 'id' => '234', 'auto_publish' => true,
68
                       'config' => {'relative_url' => '/path', 'http' => true, 'https' => true}}]
69
      response = @extension.create_with_importer_and_distributors(RepositorySupport.repo_id,
70
                                                                 {:id => 'deb_importer'}, distributors)
71
      assert_equal 201, response.code
72

  
73
      response = @extension.retrieve(RepositorySupport.repo_id, :details => true)
74
      assert_equal RepositorySupport.repo_id, response['id']
75
      assert_equal 'deb_distributor', response['distributors'].first['distributor_type_id']
76
    end
77

  
78
    def test_create_with_importer_and_distributors_objects
79
      distributors = [Runcible::Models::DebDistributor.new('/path', true, true, :id => '123')]
80
      importer = Runcible::Models::DebImporter.new
81
      response = @extension.create_with_importer_and_distributors(RepositorySupport.repo_id, importer, distributors)
82
      assert_equal 201, response.code
83

  
84
      response = @extension.retrieve(RepositorySupport.repo_id, :details => true)
85
      assert_equal RepositorySupport.repo_id, response['id']
86
      assert_equal 'deb_importer', response['importers'].first['importer_type_id']
87
    end
88
  end
89
end
test/fixtures/vcr_cassettes/extensions/deb_repository_create/create_with_distributor_object.yml
1
---
2
http_interactions:
3
- request:
4
    method: post
5
    uri: https://admin:admin@localhost/pulp/api/v2/repositories/
6
    body:
7
      encoding: UTF-8
8
      string: '{"id":"integration_test_id_distro","distributors":[{"distributor_type_id":"deb_distributor","distributor_config":{"relative_url":"/path","http":true,"https":true},"auto_publish":false,"distributor_id":"123"}]}'
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
      - '209'
20
      Host:
21
      - localhost
22
  response:
23
    status:
24
      code: 201
25
      message: CREATED
26
    headers:
27
      Date:
28
      - Fri, 10 Nov 2017 12:53:02 GMT
29
      Server:
30
      - Apache/2.4.6 (CentOS)
31
      Content-Length:
32
      - '340'
33
      Location:
34
      - https://localhost/pulp/api/v2/repositories/integration_test_id_distro/
35
      Content-Type:
36
      - application/json; charset=utf-8
37
    body:
38
      encoding: UTF-8
39
      string: '{"scratchpad": {}, "display_name": "integration_test_id_distro", "description":
40
        null, "last_unit_added": null, "notes": {}, "last_unit_removed": null, "content_unit_counts":
41
        {}, "_ns": "repos", "_id": {"$oid": "5a05a12e3ca9a00419d21f0c"}, "id": "integration_test_id_distro",
42
        "_href": "/pulp/api/v2/repositories/integration_test_id_distro/"}'
43
    http_version: 
44
  recorded_at: Fri, 10 Nov 2017 12:53:02 GMT
45
- request:
46
    method: get
47
    uri: https://admin:admin@localhost/pulp/api/v2/repositories/integration_test_id_distro/?details=true
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.2 (linux-gnu x86_64) ruby/2.2.4p230
58
      Content-Type:
59
      - application/json
60
      Host:
61
      - localhost
62
  response:
63
    status:
64
      code: 200
65
      message: OK
66
    headers:
67
      Date:
68
      - Fri, 10 Nov 2017 12:53:02 GMT
69
      Server:
70
      - Apache/2.4.6 (CentOS)
71
      Vary:
72
      - Accept-Encoding
73
      Content-Length:
74
      - '882'
75
      Content-Type:
76
      - application/json; charset=utf-8
77
    body:
78
      encoding: ASCII-8BIT
79
      string: '{"scratchpad": {}, "display_name": "integration_test_id_distro", "description":
80
        null, "distributors": [{"repo_id": "integration_test_id_distro", "last_updated":
81
        "2017-11-10T12:53:02Z", "_href": "/pulp/api/v2/repositories/integration_test_id_distro/distributors/123/",
82
        "last_override_config": {}, "last_publish": null, "distributor_type_id": "deb_distributor",
83
        "auto_publish": false, "scratchpad": {}, "_ns": "repo_distributors", "_id":
84
        {"$oid": "5a05a12e3ca9a00419d21f0d"}, "config": {"http": true, "https": true,
85
        "relative_url": "/path"}, "id": "123"}], "last_unit_added": null, "notes":
86
        {}, "last_unit_removed": null, "content_unit_counts": {}, "_ns": "repos",
87
        "importers": [], "locally_stored_units": 0, "_id": {"$oid": "5a05a12e3ca9a00419d21f0c"},
88
        "total_repository_units": 0, "id": "integration_test_id_distro", "_href":
89
        "/pulp/api/v2/repositories/integration_test_id_distro/"}'
90
    http_version: 
91
  recorded_at: Fri, 10 Nov 2017 12:53:02 GMT
92
- request:
93
    method: delete
94
    uri: https://admin:admin@localhost/pulp/api/v2/repositories/integration_test_id_distro/
95
    body:
96
      encoding: US-ASCII
97
      string: ''
98
    headers:
99
      Accept:
100
      - application/json
101
      Accept-Encoding:
102
      - gzip, deflate
103
      User-Agent:
104
      - rest-client/2.0.2 (linux-gnu x86_64) ruby/2.2.4p230
105
      Content-Type:
106
      - application/json
107
      Host:
108
      - localhost
109
  response:
110
    status:
111
      code: 202
112
      message: ACCEPTED
113
    headers:
114
      Date:
115
      - Fri, 10 Nov 2017 12:53:02 GMT
116
      Server:
117
      - Apache/2.4.6 (CentOS)
118
      Content-Length:
119
      - '172'
120
      Content-Type:
121
      - application/json; charset=utf-8
122
    body:
123
      encoding: UTF-8
124
      string: '{"spawned_tasks": [{"_href": "/pulp/api/v2/tasks/872a0661-1d67-46bb-ad31-b806a969fbb6/",
125
        "task_id": "872a0661-1d67-46bb-ad31-b806a969fbb6"}], "result": null, "error":
126
        null}'
127
    http_version: 
128
  recorded_at: Fri, 10 Nov 2017 12:53:02 GMT
129
- request:
130
    method: get
131
    uri: https://admin:admin@localhost/pulp/api/v2/tasks/872a0661-1d67-46bb-ad31-b806a969fbb6/
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.2 (linux-gnu x86_64) ruby/2.2.4p230
142
      Content-Type:
143
      - application/json
144
      Host:
145
      - localhost
146
  response:
147
    status:
148
      code: 200
149
      message: OK
150
    headers:
151
      Date:
152
      - Fri, 10 Nov 2017 12:53:03 GMT
153
      Server:
154
      - Apache/2.4.6 (CentOS)
155
      Vary:
156
      - Accept-Encoding
157
      Content-Length:
158
      - '715'
159
      Content-Type:
160
      - application/json; charset=utf-8
161
    body:
162
      encoding: ASCII-8BIT
163
      string: '{"exception": null, "task_type": "pulp.server.tasks.repository.delete",
164
        "_href": "/pulp/api/v2/tasks/872a0661-1d67-46bb-ad31-b806a969fbb6/", "task_id":
165
        "872a0661-1d67-46bb-ad31-b806a969fbb6", "tags": ["pulp:repository:integration_test_id_distro",
166
        "pulp:action:delete"], "finish_time": "2017-11-10T12:53:02Z", "_ns": "task_status",
167
        "start_time": "2017-11-10T12:53:02Z", "traceback": null, "spawned_tasks":
168
        [], "progress_report": {}, "queue": "reserved_resource_worker-0@centos7-devel.anubis.example.com.dq",
169
        "state": "finished", "worker_name": "reserved_resource_worker-0@centos7-devel.anubis.example.com",
170
        "result": null, "error": null, "_id": {"$oid": "5a05a12ed1897cd5b1e4abe0"},
171
        "id": "5a05a12ed1897cd5b1e4abe0"}'
172
    http_version: 
173
  recorded_at: Fri, 10 Nov 2017 12:53:03 GMT
174
- request:
175
    method: delete
176
    uri: https://admin:admin@localhost/pulp/api/v2/repositories/integration_test_id/
177
    body:
178
      encoding: US-ASCII
179
      string: ''
180
    headers:
181
      Accept:
182
      - application/json
183
      Accept-Encoding:
184
      - gzip, deflate
185
      User-Agent:
186
      - rest-client/2.0.2 (linux-gnu x86_64) ruby/2.2.4p230
187
      Content-Type:
188
      - application/json
189
      Host:
190
      - localhost
191
  response:
192
    status:
193
      code: 404
194
      message: NOT FOUND
195
    headers:
196
      Date:
197
      - Fri, 10 Nov 2017 12:53:03 GMT
198
      Server:
199
      - Apache/2.4.6 (CentOS)
200
      Content-Length:
201
      - '454'
202
      Content-Type:
203
      - application/json; charset=utf-8
204
    body:
205
      encoding: UTF-8
206
      string: '{"http_request_method": "DELETE", "exception": null, "error_message":
207
        "Missing resource(s): repository=integration_test_id", "_href": "/pulp/api/v2/repositories/integration_test_id/",
208
        "http_status": 404, "error": {"code": "PLP0009", "data": {"resources": {"repository":
209
        "integration_test_id"}}, "description": "Missing resource(s): repository=integration_test_id",
210
        "sub_errors": []}, "traceback": null, "resources": {"repository": "integration_test_id"}}'
211
    http_version: 
212
  recorded_at: Fri, 10 Nov 2017 12:53:03 GMT
213
recorded_with: VCR 3.0.3
test/fixtures/vcr_cassettes/extensions/deb_repository_create/create_with_distributors.yml
1
---
2
http_interactions:
3
- request:
4
    method: post
5
    uri: https://admin:admin@localhost/pulp/api/v2/repositories/
6
    body:
7
      encoding: UTF-8
8
      string: '{"id":"integration_test_id","distributors":[{"distributor_type_id":"deb_distributor","distributor_config":{"relative_url":"/path","http":true,"https":true},"auto_publish":true,"distributor_id":"123"}]}'
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
      - '201'
20
      Host:
21
      - localhost
22
  response:
23
    status:
24
      code: 201
25
      message: CREATED
26
    headers:
27
      Date:
28
      - Fri, 10 Nov 2017 12:53:03 GMT
29
      Server:
30
      - Apache/2.4.6 (CentOS)
31
      Content-Length:
32
      - '319'
33
      Location:
34
      - https://localhost/pulp/api/v2/repositories/integration_test_id/
35
      Content-Type:
36
      - application/json; charset=utf-8
37
    body:
38
      encoding: UTF-8
39
      string: '{"scratchpad": {}, "display_name": "integration_test_id", "description":
40
        null, "last_unit_added": null, "notes": {}, "last_unit_removed": null, "content_unit_counts":
41
        {}, "_ns": "repos", "_id": {"$oid": "5a05a12f3ca9a00418176fcf"}, "id": "integration_test_id",
42
        "_href": "/pulp/api/v2/repositories/integration_test_id/"}'
43
    http_version: 
44
  recorded_at: Fri, 10 Nov 2017 12:53:03 GMT
45
- request:
46
    method: delete
47
    uri: https://admin:admin@localhost/pulp/api/v2/repositories/integration_test_id/
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.2 (linux-gnu x86_64) ruby/2.2.4p230
58
      Content-Type:
59
      - application/json
60
      Host:
61
      - localhost
62
  response:
63
    status:
64
      code: 202
65
      message: ACCEPTED
66
    headers:
67
      Date:
68
      - Fri, 10 Nov 2017 12:53:03 GMT
69
      Server:
70
      - Apache/2.4.6 (CentOS)
71
      Content-Length:
72
      - '172'
73
      Content-Type:
74
      - application/json; charset=utf-8
75
    body:
76
      encoding: UTF-8
77
      string: '{"spawned_tasks": [{"_href": "/pulp/api/v2/tasks/9c98b1bd-20bc-4950-a818-1e529e0fdd14/",
78
        "task_id": "9c98b1bd-20bc-4950-a818-1e529e0fdd14"}], "result": null, "error":
79
        null}'
80
    http_version: 
81
  recorded_at: Fri, 10 Nov 2017 12:53:03 GMT
82
- request:
83
    method: get
84
    uri: https://admin:admin@localhost/pulp/api/v2/tasks/9c98b1bd-20bc-4950-a818-1e529e0fdd14/
85
    body:
86
      encoding: US-ASCII
87
      string: ''
88
    headers:
89
      Accept:
90
      - application/json
91
      Accept-Encoding:
92
      - gzip, deflate
93
      User-Agent:
94
      - rest-client/2.0.2 (linux-gnu x86_64) ruby/2.2.4p230
95
      Content-Type:
96
      - application/json
97
      Host:
98
      - localhost
99
  response:
100
    status:
101
      code: 200
102
      message: OK
103
    headers:
104
      Date:
105
      - Fri, 10 Nov 2017 12:53:04 GMT
106
      Server:
107
      - Apache/2.4.6 (CentOS)
108
      Vary:
109
      - Accept-Encoding
110
      Content-Length:
111
      - '708'
112
      Content-Type:
113
      - application/json; charset=utf-8
114
    body:
115
      encoding: ASCII-8BIT
116
      string: '{"exception": null, "task_type": "pulp.server.tasks.repository.delete",
117
        "_href": "/pulp/api/v2/tasks/9c98b1bd-20bc-4950-a818-1e529e0fdd14/", "task_id":
118
        "9c98b1bd-20bc-4950-a818-1e529e0fdd14", "tags": ["pulp:repository:integration_test_id",
119
        "pulp:action:delete"], "finish_time": "2017-11-10T12:53:03Z", "_ns": "task_status",
120
        "start_time": "2017-11-10T12:53:03Z", "traceback": null, "spawned_tasks":
121
        [], "progress_report": {}, "queue": "reserved_resource_worker-0@centos7-devel.anubis.example.com.dq",
122
        "state": "finished", "worker_name": "reserved_resource_worker-0@centos7-devel.anubis.example.com",
123
        "result": null, "error": null, "_id": {"$oid": "5a05a12fd1897cd5b1e4abe1"},
124
        "id": "5a05a12fd1897cd5b1e4abe1"}'
125
    http_version: 
126
  recorded_at: Fri, 10 Nov 2017 12:53:04 GMT
127
recorded_with: VCR 3.0.3
test/fixtures/vcr_cassettes/extensions/deb_repository_create/create_with_importer.yml
1
---
2
http_interactions:
3
- request:
4
    method: post
5
    uri: https://admin:admin@localhost/pulp/api/v2/repositories/
6
    body:
7
      encoding: UTF-8
8
      string: '{"id":"integration_test_id","importer_type_id":"deb_importer","importer_config":{}}'
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
      - '83'
20
      Host:
21
      - localhost
22
  response:
23
    status:
24
      code: 201
25
      message: CREATED
26
    headers:
27
      Date:
28
      - Fri, 10 Nov 2017 12:53:05 GMT
29
      Server:
30
      - Apache/2.4.6 (CentOS)
31
      Content-Length:
32
      - '319'
33
      Location:
34
      - https://localhost/pulp/api/v2/repositories/integration_test_id/
35
      Content-Type:
36
      - application/json; charset=utf-8
37
    body:
38
      encoding: UTF-8
39
      string: '{"scratchpad": {}, "display_name": "integration_test_id", "description":
40
        null, "last_unit_added": null, "notes": {}, "last_unit_removed": null, "content_unit_counts":
41
        {}, "_ns": "repos", "_id": {"$oid": "5a05a1313ca9a004163109be"}, "id": "integration_test_id",
42
        "_href": "/pulp/api/v2/repositories/integration_test_id/"}'
43
    http_version: 
44
  recorded_at: Fri, 10 Nov 2017 12:53:05 GMT
45
- request:
46
    method: get
47
    uri: https://admin:admin@localhost/pulp/api/v2/repositories/integration_test_id/?details=true
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.2 (linux-gnu x86_64) ruby/2.2.4p230
58
      Content-Type:
59
      - application/json
60
      Host:
61
      - localhost
62
  response:
63
    status:
64
      code: 200
65
      message: OK
66
    headers:
67
      Date:
68
      - Fri, 10 Nov 2017 12:53:05 GMT
69
      Server:
70
      - Apache/2.4.6 (CentOS)
71
      Vary:
72
      - Accept-Encoding
73
      Content-Length:
74
      - '777'
75
      Content-Type:
76
      - application/json; charset=utf-8
77
    body:
78
      encoding: ASCII-8BIT
79
      string: '{"scratchpad": {}, "display_name": "integration_test_id", "description":
80
        null, "distributors": [], "last_unit_added": null, "notes": {}, "last_unit_removed":
81
        null, "content_unit_counts": {}, "_ns": "repos", "importers": [{"repo_id":
82
        "integration_test_id", "last_updated": "2017-11-10T12:53:05Z", "_href": "/pulp/api/v2/repositories/integration_test_id/importers/deb_importer/",
83
        "_ns": "repo_importers", "importer_type_id": "deb_importer", "last_override_config":
84
        {}, "last_sync": null, "scratchpad": null, "_id": {"$oid": "5a05a1313ca9a004163109bf"},
85
        "config": {}, "id": "deb_importer"}], "locally_stored_units": 0, "_id": {"$oid":
86
        "5a05a1313ca9a004163109be"}, "total_repository_units": 0, "id": "integration_test_id",
87
        "_href": "/pulp/api/v2/repositories/integration_test_id/"}'
88
    http_version: 
89
  recorded_at: Fri, 10 Nov 2017 12:53:05 GMT
90
- request:
91
    method: delete
92
    uri: https://admin:admin@localhost/pulp/api/v2/repositories/integration_test_id/
93
    body:
94
      encoding: US-ASCII
95
      string: ''
96
    headers:
97
      Accept:
98
      - application/json
99
      Accept-Encoding:
100
      - gzip, deflate
101
      User-Agent:
102
      - rest-client/2.0.2 (linux-gnu x86_64) ruby/2.2.4p230
103
      Content-Type:
104
      - application/json
105
      Host:
106
      - localhost
107
  response:
108
    status:
109
      code: 202
110
      message: ACCEPTED
111
    headers:
112
      Date:
113
      - Fri, 10 Nov 2017 12:53:05 GMT
114
      Server:
115
      - Apache/2.4.6 (CentOS)
116
      Content-Length:
117
      - '172'
118
      Content-Type:
119
      - application/json; charset=utf-8
120
    body:
121
      encoding: UTF-8
122
      string: '{"spawned_tasks": [{"_href": "/pulp/api/v2/tasks/13e5af46-8c98-4d67-829e-eb57e286ad3c/",
123
        "task_id": "13e5af46-8c98-4d67-829e-eb57e286ad3c"}], "result": null, "error":
124
        null}'
125
    http_version: 
126
  recorded_at: Fri, 10 Nov 2017 12:53:05 GMT
127
- request:
128
    method: get
129
    uri: https://admin:admin@localhost/pulp/api/v2/tasks/13e5af46-8c98-4d67-829e-eb57e286ad3c/
130
    body:
131
      encoding: US-ASCII
132
      string: ''
133
    headers:
134
      Accept:
135
      - application/json
136
      Accept-Encoding:
137
      - gzip, deflate
138
      User-Agent:
139
      - rest-client/2.0.2 (linux-gnu x86_64) ruby/2.2.4p230
140
      Content-Type:
141
      - application/json
142
      Host:
143
      - localhost
144
  response:
145
    status:
146
      code: 200
147
      message: OK
148
    headers:
149
      Date:
150
      - Fri, 10 Nov 2017 12:53:05 GMT
151
      Server:
152
      - Apache/2.4.6 (CentOS)
153
      Vary:
154
      - Accept-Encoding
155
      Content-Length:
156
      - '708'
157
      Content-Type:
158
      - application/json; charset=utf-8
159
    body:
160
      encoding: ASCII-8BIT
161
      string: '{"exception": null, "task_type": "pulp.server.tasks.repository.delete",
162
        "_href": "/pulp/api/v2/tasks/13e5af46-8c98-4d67-829e-eb57e286ad3c/", "task_id":
163
        "13e5af46-8c98-4d67-829e-eb57e286ad3c", "tags": ["pulp:repository:integration_test_id",
164
        "pulp:action:delete"], "finish_time": "2017-11-10T12:53:05Z", "_ns": "task_status",
165
        "start_time": "2017-11-10T12:53:05Z", "traceback": null, "spawned_tasks":
166
        [], "progress_report": {}, "queue": "reserved_resource_worker-0@centos7-devel.anubis.example.com.dq",
167
        "state": "finished", "worker_name": "reserved_resource_worker-0@centos7-devel.anubis.example.com",
168
        "result": null, "error": null, "_id": {"$oid": "5a05a131d1897cd5b1e4abe3"},
169
        "id": "5a05a131d1897cd5b1e4abe3"}'
170
    http_version: 
171
  recorded_at: Fri, 10 Nov 2017 12:53:05 GMT
172
recorded_with: VCR 3.0.3
test/fixtures/vcr_cassettes/extensions/deb_repository_create/create_with_importer_and_distributors.yml
1
---
2
http_interactions:
3
- request:
4
    method: post
5
    uri: https://admin:admin@localhost/pulp/api/v2/repositories/
6
    body:
7
      encoding: UTF-8
8
      string: '{"id":"integration_test_id","importer_type_id":"deb_importer","importer_config":{},"distributors":[{"distributor_type_id":"deb_distributor","distributor_config":{"relative_url":"/","http":true,"https":true},"auto_publish":true,"distributor_id":"234"}]}'
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
      - '252'
20
      Host:
21
      - localhost
22
  response:
23
    status:
24
      code: 500
25
      message: INTERNAL SERVER ERROR
26
    headers:
27
      Date:
28
      - Fri, 10 Nov 2017 13:07:22 GMT
29
      Server:
30
      - Apache/2.4.6 (CentOS)
31
      Content-Length:
32
      - '2560'
33
      Connection:
34
      - close
35
      Content-Type:
36
      - application/json; charset=utf-8
37
    body:
38
      encoding: UTF-8
39
      string: '{"http_request_method": "POST", "exception": ["IndexError: list index
40
        out of range\n"], "error_message": "list index out of range", "_href": "/pulp/api/v2/repositories/",
41
        "http_status": 500, "traceback": ["  File \"/usr/lib/python2.7/site-packages/django/core/handlers/base.py\",
42
        line 112, in get_response\n    response = wrapped_callback(request, *callback_args,
43
        **callback_kwargs)\n", "  File \"/usr/lib/python2.7/site-packages/django/views/generic/base.py\",
44
        line 69, in view\n    return self.dispatch(request, *args, **kwargs)\n", "  File
45
        \"/usr/lib/python2.7/site-packages/django/views/generic/base.py\", line 87,
46
        in dispatch\n    return handler(request, *args, **kwargs)\n", "  File \"/usr/lib/python2.7/site-packages/pulp/server/webservices/views/decorators.py\",
47
        line 241, in _auth_decorator\n    return _verify_auth(self, operation, super_user_only,
48
        method, *args, **kwargs)\n", "  File \"/usr/lib/python2.7/site-packages/pulp/server/webservices/views/decorators.py\",
49
        line 195, in _verify_auth\n    value = method(self, *args, **kwargs)\n", "  File
50
        \"/usr/lib/python2.7/site-packages/pulp/server/webservices/views/util.py\",
51
        line 130, in wrapper\n    return func(*args, **kwargs)\n", "  File \"/usr/lib/python2.7/site-packages/pulp/server/webservices/views/repositories.py\",
52
        line 128, in post\n    distributor_list=repo_data.get(''distributors'')\n",
53
        "  File \"/usr/lib/python2.7/site-packages/pulp/server/controllers/repository.py\",
54
        line 433, in create_repo\n    dist_controller.add_distributor(repo_id, type_id,
55
        plugin_config, auto_publish, dist_id)\n", "  File \"/usr/lib/python2.7/site-packages/pulp/server/controllers/distributor.py\",
56
        line 67, in add_distributor\n    result = distributor_instance.validate_config(transfer_repo,
57
        call_config, config_conduit)\n", "  File \"/usr/lib/python2.7/site-packages/pulp_deb/plugins/distributors/distributor.py\",
58
        line 168, in validate_config\n    return configuration.validate_config(repo,
59
        config, config_conduit)\n", "  File \"/usr/lib/python2.7/site-packages/pulp_deb/plugins/distributors/configuration.py\",
60
        line 90, in validate_config\n    error_messages)\n", "  File \"/usr/lib/python2.7/site-packages/pulp_deb/plugins/distributors/configuration.py\",
61
        line 257, in _check_for_relative_path_conflicts\n    conflicting_distributors
62
        = config_conduit.get_repo_distributors_by_relative_url(relative_path, repo.id)  #
63
        noqa\n", "  File \"/usr/lib/python2.7/site-packages/pulp/plugins/conduits/repo_config.py\",
64
        line 46, in get_repo_distributors_by_relative_url\n    repo_id_url = current_url_pieces[0]\n"]}'
65
    http_version: 
66
  recorded_at: Fri, 10 Nov 2017 13:07:22 GMT
67
- request:
68
    method: delete
69
    uri: https://admin:admin@localhost/pulp/api/v2/repositories/integration_test_id/
70
    body:
71
      encoding: US-ASCII
72
      string: ''
73
    headers:
74
      Accept:
75
      - application/json
76
      Accept-Encoding:
77
      - gzip, deflate
78
      User-Agent:
79
      - rest-client/2.0.2 (linux-gnu x86_64) ruby/2.2.4p230
80
      Content-Type:
81
      - application/json
82
      Host:
83
      - localhost
84
  response:
85
    status:
86
      code: 404
87
      message: NOT FOUND
88
    headers:
89
      Date:
90
      - Fri, 10 Nov 2017 13:07:22 GMT
91
      Server:
92
      - Apache/2.4.6 (CentOS)
93
      Content-Length:
94
      - '454'
95
      Content-Type:
96
      - application/json; charset=utf-8
97
    body:
98
      encoding: UTF-8
99
      string: '{"http_request_method": "DELETE", "exception": null, "error_message":
100
        "Missing resource(s): repository=integration_test_id", "_href": "/pulp/api/v2/repositories/integration_test_id/",
101
        "http_status": 404, "error": {"code": "PLP0009", "data": {"resources": {"repository":
102
        "integration_test_id"}}, "description": "Missing resource(s): repository=integration_test_id",
103
        "sub_errors": []}, "traceback": null, "resources": {"repository": "integration_test_id"}}'
104
    http_version: 
105
  recorded_at: Fri, 10 Nov 2017 13:07:22 GMT
106
- request:
107
    method: post
108
    uri: https://admin:admin@localhost/pulp/api/v2/repositories/
109
    body:
110
      encoding: UTF-8
111
      string: '{"id":"integration_test_id","importer_type_id":"deb_importer","importer_config":{},"distributors":[{"distributor_type_id":"deb_distributor","distributor_config":{"relative_url":"/path","http":true,"https":true},"auto_publish":true,"distributor_id":"234"}]}'
112
    headers:
113
      Accept:
114
      - application/json
115
      Accept-Encoding:
116
      - gzip, deflate
117
      User-Agent:
118
      - rest-client/2.0.2 (linux-gnu x86_64) ruby/2.2.4p230
119
      Content-Type:
120
      - application/json
121
      Content-Length:
122
      - '256'
123
      Host:
124
      - localhost
125
  response:
126
    status:
127
      code: 201
128
      message: CREATED
129
    headers:
130
      Date:
131
      - Fri, 10 Nov 2017 13:15:12 GMT
132
      Server:
133
      - Apache/2.4.6 (CentOS)
134
      Content-Length:
135
      - '319'
136
      Location:
137
      - https://localhost/pulp/api/v2/repositories/integration_test_id/
138
      Content-Type:
139
      - application/json; charset=utf-8
140
    body:
141
      encoding: UTF-8
142
      string: '{"scratchpad": {}, "display_name": "integration_test_id", "description":
143
        null, "last_unit_added": null, "notes": {}, "last_unit_removed": null, "content_unit_counts":
144
        {}, "_ns": "repos", "_id": {"$oid": "5a05a6603ca9a004163109c0"}, "id": "integration_test_id",
145
        "_href": "/pulp/api/v2/repositories/integration_test_id/"}'
146
    http_version: 
147
  recorded_at: Fri, 10 Nov 2017 13:15:12 GMT
148
- request:
149
    method: get
150
    uri: https://admin:admin@localhost/pulp/api/v2/repositories/integration_test_id/?details=true
151
    body:
152
      encoding: US-ASCII
153
      string: ''
154
    headers:
155
      Accept:
156
      - application/json
157
      Accept-Encoding:
158
      - gzip, deflate
159
      User-Agent:
160
      - rest-client/2.0.2 (linux-gnu x86_64) ruby/2.2.4p230
161
      Content-Type:
162
      - application/json
163
      Host:
164
      - localhost
165
  response:
166
    status:
167
      code: 200
168
      message: OK
169
    headers:
170
      Date:
171
      - Fri, 10 Nov 2017 13:15:12 GMT
172
      Server:
173
      - Apache/2.4.6 (CentOS)
174
      Vary:
175
      - Accept-Encoding
176
      Content-Length:
177
      - '1211'
178
      Content-Type:
179
      - application/json; charset=utf-8
180
    body:
181
      encoding: ASCII-8BIT
182
      string: '{"scratchpad": {}, "display_name": "integration_test_id", "description":
183
        null, "distributors": [{"repo_id": "integration_test_id", "last_updated":
184
        "2017-11-10T13:15:12Z", "_href": "/pulp/api/v2/repositories/integration_test_id/distributors/234/",
185
        "last_override_config": {}, "last_publish": null, "distributor_type_id": "deb_distributor",
186
        "auto_publish": true, "scratchpad": {}, "_ns": "repo_distributors", "_id":
187
        {"$oid": "5a05a6603ca9a004163109c2"}, "config": {"http": true, "https": true,
188
        "relative_url": "/path"}, "id": "234"}], "last_unit_added": null, "notes":
189
        {}, "last_unit_removed": null, "content_unit_counts": {}, "_ns": "repos",
190
        "importers": [{"repo_id": "integration_test_id", "last_updated": "2017-11-10T13:15:12Z",
191
        "_href": "/pulp/api/v2/repositories/integration_test_id/importers/deb_importer/",
192
        "_ns": "repo_importers", "importer_type_id": "deb_importer", "last_override_config":
193
        {}, "last_sync": null, "scratchpad": null, "_id": {"$oid": "5a05a6603ca9a004163109c1"},
194
        "config": {}, "id": "deb_importer"}], "locally_stored_units": 0, "_id": {"$oid":
195
        "5a05a6603ca9a004163109c0"}, "total_repository_units": 0, "id": "integration_test_id",
196
        "_href": "/pulp/api/v2/repositories/integration_test_id/"}'
197
    http_version: 
198
  recorded_at: Fri, 10 Nov 2017 13:15:12 GMT
199
recorded_with: VCR 3.0.3
test/fixtures/vcr_cassettes/extensions/deb_repository_create/create_with_importer_and_distributors_objects.yml
1
---
2
http_interactions:
3
- request:
4
    method: post
5
    uri: https://admin:admin@localhost/pulp/api/v2/repositories/
6
    body:
7
      encoding: UTF-8
8
      string: '{"id":"integration_test_id","importer_type_id":"deb_importer","importer_config":{},"notes":{"_repo-type":"deb-repo"},"distributors":[{"distributor_type_id":"deb_distributor","distributor_config":{"relative_url":"/path","http":true,"https":true},"auto_publish":false,"distributor_id":"123"}]}'
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
      - '291'
20
      Host:
21
      - localhost
22
  response:
23
    status:
24
      code: 201
25
      message: CREATED
26
    headers:
27
      Date:
28
      - Fri, 10 Nov 2017 12:53:04 GMT
29
      Server:
30
      - Apache/2.4.6 (CentOS)
31
      Content-Length:
32
      - '343'
33
      Location:
34
      - https://localhost/pulp/api/v2/repositories/integration_test_id/
35
      Content-Type:
36
      - application/json; charset=utf-8
37
    body:
38
      encoding: UTF-8
39
      string: '{"scratchpad": {}, "display_name": "integration_test_id", "description":
40
        null, "last_unit_added": null, "notes": {"_repo-type": "deb-repo"}, "last_unit_removed":
41
        null, "content_unit_counts": {}, "_ns": "repos", "_id": {"$oid": "5a05a1303ca9a004163109bb"},
42
        "id": "integration_test_id", "_href": "/pulp/api/v2/repositories/integration_test_id/"}'
43
    http_version: 
44
  recorded_at: Fri, 10 Nov 2017 12:53:04 GMT
45
- request:
46
    method: get
47
    uri: https://admin:admin@localhost/pulp/api/v2/repositories/integration_test_id/?details=true
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.2 (linux-gnu x86_64) ruby/2.2.4p230
58
      Content-Type:
59
      - application/json
60
      Host:
61
      - localhost
62
  response:
63
    status:
64
      code: 200
65
      message: OK
66
    headers:
67
      Date:
68
      - Fri, 10 Nov 2017 12:53:04 GMT
69
      Server:
70
      - Apache/2.4.6 (CentOS)
71
      Vary:
72
      - Accept-Encoding
73
      Content-Length:
74
      - '1236'
75
      Content-Type:
76
      - application/json; charset=utf-8
77
    body:
78
      encoding: ASCII-8BIT
79
      string: '{"scratchpad": {}, "display_name": "integration_test_id", "description":
80
        null, "distributors": [{"repo_id": "integration_test_id", "last_updated":
81
        "2017-11-10T12:53:04Z", "_href": "/pulp/api/v2/repositories/integration_test_id/distributors/123/",
82
        "last_override_config": {}, "last_publish": null, "distributor_type_id": "deb_distributor",
83
        "auto_publish": false, "scratchpad": {}, "_ns": "repo_distributors", "_id":
84
        {"$oid": "5a05a1303ca9a004163109bd"}, "config": {"http": true, "https": true,
85
        "relative_url": "/path"}, "id": "123"}], "last_unit_added": null, "notes":
86
        {"_repo-type": "deb-repo"}, "last_unit_removed": null, "content_unit_counts":
87
        {}, "_ns": "repos", "importers": [{"repo_id": "integration_test_id", "last_updated":
88
        "2017-11-10T12:53:04Z", "_href": "/pulp/api/v2/repositories/integration_test_id/importers/deb_importer/",
89
        "_ns": "repo_importers", "importer_type_id": "deb_importer", "last_override_config":
90
        {}, "last_sync": null, "scratchpad": null, "_id": {"$oid": "5a05a1303ca9a004163109bc"},
91
        "config": {}, "id": "deb_importer"}], "locally_stored_units": 0, "_id": {"$oid":
92
        "5a05a1303ca9a004163109bb"}, "total_repository_units": 0, "id": "integration_test_id",
93
        "_href": "/pulp/api/v2/repositories/integration_test_id/"}'
94
    http_version: 
95
  recorded_at: Fri, 10 Nov 2017 12:53:04 GMT
96
- request:
97
    method: delete
98
    uri: https://admin:admin@localhost/pulp/api/v2/repositories/integration_test_id/
99
    body:
100
      encoding: US-ASCII
101
      string: ''
102
    headers:
103
      Accept:
104
      - application/json
105
      Accept-Encoding:
106
      - gzip, deflate
107
      User-Agent:
108
      - rest-client/2.0.2 (linux-gnu x86_64) ruby/2.2.4p230
109
      Content-Type:
110
      - application/json
111
      Host:
112
      - localhost
113
  response:
114
    status:
115
      code: 202
116
      message: ACCEPTED
117
    headers:
118
      Date:
119
      - Fri, 10 Nov 2017 12:53:04 GMT
120
      Server:
121
      - Apache/2.4.6 (CentOS)
122
      Content-Length:
123
      - '172'
124
      Content-Type:
125
      - application/json; charset=utf-8
126
    body:
127
      encoding: UTF-8
128
      string: '{"spawned_tasks": [{"_href": "/pulp/api/v2/tasks/c1166bb0-a5b6-40df-a938-5971b86fc2db/",
129
        "task_id": "c1166bb0-a5b6-40df-a938-5971b86fc2db"}], "result": null, "error":
130
        null}'
131
    http_version: 
132
  recorded_at: Fri, 10 Nov 2017 12:53:04 GMT
133
- request:
134
    method: get
135
    uri: https://admin:admin@localhost/pulp/api/v2/tasks/c1166bb0-a5b6-40df-a938-5971b86fc2db/
136
    body:
137
      encoding: US-ASCII
138
      string: ''
139
    headers:
140
      Accept:
141
      - application/json
142
      Accept-Encoding:
143
      - gzip, deflate
144
      User-Agent:
145
      - rest-client/2.0.2 (linux-gnu x86_64) ruby/2.2.4p230
146
      Content-Type:
147
      - application/json
148
      Host:
149
      - localhost
150
  response:
151
    status:
152
      code: 200
153
      message: OK
154
    headers:
155
      Date:
156
      - Fri, 10 Nov 2017 12:53:05 GMT
157
      Server:
158
      - Apache/2.4.6 (CentOS)
159
      Vary:
160
      - Accept-Encoding
161
      Content-Length:
162
      - '708'
163
      Content-Type:
164
      - application/json; charset=utf-8
165
    body:
166
      encoding: ASCII-8BIT
167
      string: '{"exception": null, "task_type": "pulp.server.tasks.repository.delete",
168
        "_href": "/pulp/api/v2/tasks/c1166bb0-a5b6-40df-a938-5971b86fc2db/", "task_id":
169
        "c1166bb0-a5b6-40df-a938-5971b86fc2db", "tags": ["pulp:repository:integration_test_id",
170
        "pulp:action:delete"], "finish_time": "2017-11-10T12:53:04Z", "_ns": "task_status",
171
        "start_time": "2017-11-10T12:53:04Z", "traceback": null, "spawned_tasks":
172
        [], "progress_report": {}, "queue": "reserved_resource_worker-0@centos7-devel.anubis.example.com.dq",
173
        "state": "finished", "worker_name": "reserved_resource_worker-0@centos7-devel.anubis.example.com",
174
        "result": null, "error": null, "_id": {"$oid": "5a05a130d1897cd5b1e4abe2"},
175
        "id": "5a05a130d1897cd5b1e4abe2"}'
176
    http_version: 
177
  recorded_at: Fri, 10 Nov 2017 12:53:05 GMT
178
recorded_with: VCR 3.0.3
test/fixtures/vcr_cassettes/extensions/deb_repository_create/create_with_importer_object.yml
1
---
2
http_interactions:
3
- request:
4
    method: post
5
    uri: https://admin:admin@localhost/pulp/api/v2/repositories/
6
    body:
7
      encoding: UTF-8
8
      string: '{"id":"integration_test_id","importer_type_id":"deb_importer","importer_config":{},"notes":{"_repo-type":"deb-repo"}}'
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
      - '117'
20
      Host:
21
      - localhost
22
  response:
23
    status:
24
      code: 201
25
      message: CREATED
26
    headers:
27
      Date:
28
      - Fri, 10 Nov 2017 12:53:05 GMT
29
      Server:
30
      - Apache/2.4.6 (CentOS)
31
      Content-Length:
32
      - '343'
33
      Location:
34
      - https://localhost/pulp/api/v2/repositories/integration_test_id/
35
      Content-Type:
36
      - application/json; charset=utf-8
37
    body:
38
      encoding: UTF-8
39
      string: '{"scratchpad": {}, "display_name": "integration_test_id", "description":
40
        null, "last_unit_added": null, "notes": {"_repo-type": "deb-repo"}, "last_unit_removed":
41
        null, "content_unit_counts": {}, "_ns": "repos", "_id": {"$oid": "5a05a1323ca9a00418176fd3"},
42
        "id": "integration_test_id", "_href": "/pulp/api/v2/repositories/integration_test_id/"}'
43
    http_version: 
44
  recorded_at: Fri, 10 Nov 2017 12:53:06 GMT
45
- request:
46
    method: get
47
    uri: https://admin:admin@localhost/pulp/api/v2/repositories/integration_test_id/?details=true
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.2 (linux-gnu x86_64) ruby/2.2.4p230
58
      Content-Type:
59
      - application/json
60
      Host:
61
      - localhost
62
  response:
63
    status:
64
      code: 200
65
      message: OK
66
    headers:
67
      Date:
68
      - Fri, 10 Nov 2017 12:53:06 GMT
69
      Server:
70
      - Apache/2.4.6 (CentOS)
71
      Vary:
72
      - Accept-Encoding
73
      Content-Length:
74
      - '801'
75
      Content-Type:
76
      - application/json; charset=utf-8
77
    body:
78
      encoding: ASCII-8BIT
79
      string: '{"scratchpad": {}, "display_name": "integration_test_id", "description":
80
        null, "distributors": [], "last_unit_added": null, "notes": {"_repo-type":
81
        "deb-repo"}, "last_unit_removed": null, "content_unit_counts": {}, "_ns":
82
        "repos", "importers": [{"repo_id": "integration_test_id", "last_updated":
83
        "2017-11-10T12:53:06Z", "_href": "/pulp/api/v2/repositories/integration_test_id/importers/deb_importer/",
84
        "_ns": "repo_importers", "importer_type_id": "deb_importer", "last_override_config":
85
        {}, "last_sync": null, "scratchpad": null, "_id": {"$oid": "5a05a1323ca9a00418176fd4"},
86
        "config": {}, "id": "deb_importer"}], "locally_stored_units": 0, "_id": {"$oid":
87
        "5a05a1323ca9a00418176fd3"}, "total_repository_units": 0, "id": "integration_test_id",
88
        "_href": "/pulp/api/v2/repositories/integration_test_id/"}'
89
    http_version: 
90
  recorded_at: Fri, 10 Nov 2017 12:53:06 GMT
91
- request:
92
    method: delete
93
    uri: https://admin:admin@localhost/pulp/api/v2/repositories/integration_test_id/
94
    body:
95
      encoding: US-ASCII
96
      string: ''
97
    headers:
98
      Accept:
99
      - application/json
100
      Accept-Encoding:
101
      - gzip, deflate
102
      User-Agent:
103
      - rest-client/2.0.2 (linux-gnu x86_64) ruby/2.2.4p230
104
      Content-Type:
105
      - application/json
106
      Host:
107
      - localhost
108
  response:
109
    status:
110
      code: 202
111
      message: ACCEPTED
112
    headers:
113
      Date:
114
      - Fri, 10 Nov 2017 12:53:06 GMT
115
      Server:
116
      - Apache/2.4.6 (CentOS)
117
      Content-Length:
118
      - '172'
119
      Content-Type:
120
      - application/json; charset=utf-8
121
    body:
122
      encoding: UTF-8
123
      string: '{"spawned_tasks": [{"_href": "/pulp/api/v2/tasks/d9d9322d-7491-4c3f-a077-882edb14ba15/",
124
        "task_id": "d9d9322d-7491-4c3f-a077-882edb14ba15"}], "result": null, "error":
125
        null}'
126
    http_version: 
127
  recorded_at: Fri, 10 Nov 2017 12:53:06 GMT
128
- request:
129
    method: get
130
    uri: https://admin:admin@localhost/pulp/api/v2/tasks/d9d9322d-7491-4c3f-a077-882edb14ba15/
131
    body:
132
      encoding: US-ASCII
133
      string: ''
134
    headers:
135
      Accept:
136
      - application/json
137
      Accept-Encoding:
138
      - gzip, deflate
139
      User-Agent:
140
      - rest-client/2.0.2 (linux-gnu x86_64) ruby/2.2.4p230
141
      Content-Type:
142
      - application/json
143
      Host:
144
      - localhost
145
  response:
146
    status:
147
      code: 200
148
      message: OK
149
    headers:
150
      Date:
151
      - Fri, 10 Nov 2017 12:53:06 GMT
152
      Server:
153
      - Apache/2.4.6 (CentOS)
154
      Vary:
155
      - Accept-Encoding
156
      Content-Length:
157
      - '708'
158
      Content-Type:
159
      - application/json; charset=utf-8
160
    body:
161
      encoding: ASCII-8BIT
162
      string: '{"exception": null, "task_type": "pulp.server.tasks.repository.delete",
163
        "_href": "/pulp/api/v2/tasks/d9d9322d-7491-4c3f-a077-882edb14ba15/", "task_id":
164
        "d9d9322d-7491-4c3f-a077-882edb14ba15", "tags": ["pulp:repository:integration_test_id",
165
        "pulp:action:delete"], "finish_time": "2017-11-10T12:53:06Z", "_ns": "task_status",
166
        "start_time": "2017-11-10T12:53:06Z", "traceback": null, "spawned_tasks":
167
        [], "progress_report": {}, "queue": "reserved_resource_worker-0@centos7-devel.anubis.example.com.dq",
168
        "state": "finished", "worker_name": "reserved_resource_worker-0@centos7-devel.anubis.example.com",
169
        "result": null, "error": null, "_id": {"$oid": "5a05a132d1897cd5b1e4abe4"},
170
        "id": "5a05a132d1897cd5b1e4abe4"}'
171
    http_version: 
172
  recorded_at: Fri, 10 Nov 2017 12:53:06 GMT
173
recorded_with: VCR 3.0.3

Also available in: Unified diff