Project

General

Profile

Revision 524638e4

Added by Partha Aji over 5 years ago

Fixes #18076 - Can set OSTree repo depth

Enables one to set the importer depth value for the ostree repo.
look at http://projects.theforeman.org/issues/18076 for more info.

View differences:

README.md
5 5

  
6 6
Exposing Pulp's juiciest parts. http://www.pulpproject.org/
7 7

  
8
Latest Live Tested Version: **pulp-server-2.8.3-0.1.beta.el7.noarch**
8
Latest Live Tested Version: **pulp-server-2.11.0-1.el7.noarch**
9 9

  
10 10
Current stable Runcible: https://github.com/Katello/runcible/tree/0.3
11 11

  
lib/runcible/models/ostree_importer.rb
4 4
      ID = 'ostree_web_importer'.freeze
5 5
      REPO_TYPE = 'OSTREE'.freeze
6 6

  
7
      attr_accessor 'branches'
7
      attr_accessor 'branches', 'depth'
8 8

  
9 9
      def id
10 10
        OstreeImporter::ID
test/extensions/ostree_repository_test.rb
85 85
    def test_create_with_importer_and_distributors_objects
86 86
      distributors = [Runcible::Models::OstreeDistributor.new(:id => '123')]
87 87
      importer = Runcible::Models::OstreeImporter.new
88
      depth = -1
89
      importer.depth = depth
88 90
      response = @extension.create_with_importer_and_distributors(RepositorySupport.repo_id, importer, distributors)
89 91
      assert_equal 201, response.code
90 92

  
91 93
      response = @extension.retrieve(RepositorySupport.repo_id, :details => true)
92 94
      assert_equal RepositorySupport.repo_id, response['id']
93 95
      assert_equal 'ostree_web_importer', response['importers'].first['importer_type_id']
96
      assert_equal depth, response['importers'].first['config']['depth']
94 97
    end
95 98
  end
96 99

  
test/fixtures/vcr_cassettes/extensions/ostree_branch_repository_unit_list/ostree_branch_ids.yml
2 2
http_interactions:
3 3
- request:
4 4
    method: post
5
    uri: https://admin:HeQSzZgm6ZEKG8aHrJEGW7aGD85Wrj57@runcible.example.com/pulp/api/v2/repositories/integration_test_id/search/units/
5
    uri: https://admin:admin@obelix.example.com/pulp/api/v2/repositories/integration_test_id/search/units/
6 6
    body:
7 7
      encoding: UTF-8
8 8
      string: '{"criteria":{"type_ids":["ostree"],"fields":{"unit":[],"association":["unit_id"]}}}'
......
23 23
      message: OK
24 24
    headers:
25 25
      Date:
26
      - Fri, 29 Apr 2016 16:21:34 GMT
26
      - Wed, 01 Feb 2017 12:30:49 GMT
27 27
      Server:
28 28
      - Apache/2.4.6 (CentOS)
29 29
      Vary:
30 30
      - Accept-Encoding
31 31
      Content-Length:
32 32
      - '430'
33
      Connection:
34
      - close
33 35
      Content-Type:
34 36
      - application/json; charset=utf-8
35 37
    body:
36 38
      encoding: ASCII-8BIT
37
      string: '[{"metadata": {"_id": "1fcc2805-3663-4131-b174-75b6bc68ead1", "_content_type_id":
38
        "ostree"}, "_id": {"$oid": "57238a0d898f5c862fa3ea79"}, "unit_id": "1fcc2805-3663-4131-b174-75b6bc68ead1",
39
        "unit_type_id": "ostree"}, {"metadata": {"_id": "590cfad9-4ef7-4db8-a954-bf48591e074c",
40
        "_content_type_id": "ostree"}, "_id": {"$oid": "57238a0d898f5c862fa3ea7a"},
41
        "unit_id": "590cfad9-4ef7-4db8-a954-bf48591e074c", "unit_type_id": "ostree"}]'
39
      string: '[{"metadata": {"_id": "8f958529-8425-4a97-befd-3283e77665be", "_content_type_id":
40
        "ostree"}, "_id": {"$oid": "5891d4f94b92d9e3004e81da"}, "unit_id": "8f958529-8425-4a97-befd-3283e77665be",
41
        "unit_type_id": "ostree"}, {"metadata": {"_id": "f3f067ea-2fd6-40b3-b138-cc28117063ed",
42
        "_content_type_id": "ostree"}, "_id": {"$oid": "5891d4f94b92d9e3004e81d9"},
43
        "unit_id": "f3f067ea-2fd6-40b3-b138-cc28117063ed", "unit_type_id": "ostree"}]'
42 44
    http_version: 
43
  recorded_at: Fri, 29 Apr 2016 16:21:34 GMT
44
recorded_with: VCR 3.0.1
45
  recorded_at: Wed, 01 Feb 2017 12:30:49 GMT
46
recorded_with: VCR 3.0.3
test/fixtures/vcr_cassettes/extensions/ostree_branch_repository_unit_list/ostree_branches.yml
2 2
http_interactions:
3 3
- request:
4 4
    method: post
5
    uri: https://admin:HeQSzZgm6ZEKG8aHrJEGW7aGD85Wrj57@runcible.example.com/pulp/api/v2/repositories/integration_test_id/search/units/
5
    uri: https://admin:admin@obelix.example.com/pulp/api/v2/repositories/integration_test_id/search/units/
6 6
    body:
7 7
      encoding: UTF-8
8 8
      string: '{"criteria":{"type_ids":["ostree"]}}'
......
23 23
      message: OK
24 24
    headers:
25 25
      Date:
26
      - Fri, 29 Apr 2016 16:21:33 GMT
26
      - Wed, 01 Feb 2017 12:30:49 GMT
27 27
      Server:
28 28
      - Apache/2.4.6 (CentOS)
29 29
      Vary:
30 30
      - Accept-Encoding
31 31
      Content-Length:
32 32
      - '1702'
33
      Connection:
34
      - close
33 35
      Content-Type:
34 36
      - application/json; charset=utf-8
35 37
    body:
36 38
      encoding: ASCII-8BIT
37
      string: '[{"metadata": {"_storage_path": "/var/lib/pulp/content/shared/ostree/26760a9b7480dbfac877f6c0401a19da5e4d3e2292a5864b8820694f41cb5de9/links/1fcc2805-3663-4131-b174-75b6bc68ead1",
38
        "_ns": "units_ostree", "_last_updated": 1461946883, "remote_id": "b1046db191900ad624224c3826f095786a2a09b8c26968f30b81fd7e71aa632b",
39
        "_content_type_id": "ostree", "pulp_user_metadata": {}, "branch": "fedora-atomic/f21/x86_64/updates-testing/docker-host",
40
        "_created": "2016-04-29T16:21:23Z", "commit": "b954defc0c21b23705bf5776a78ca434b2569260e64e19fb61bdbd5526b3bf0f",
41
        "_id": "1fcc2805-3663-4131-b174-75b6bc68ead1", "metadata": {"version": "23.3"}},
42
        "updated": "2016-04-29T16:21:33Z", "repo_id": "integration_test_id", "created":
43
        "2016-04-29T16:21:33Z", "unit_type_id": "ostree", "unit_id": "1fcc2805-3663-4131-b174-75b6bc68ead1",
44
        "_id": {"$oid": "57238a0d898f5c862fa3ea79"}}, {"metadata": {"_storage_path":
45
        "/var/lib/pulp/content/shared/ostree/26760a9b7480dbfac877f6c0401a19da5e4d3e2292a5864b8820694f41cb5de9/links/590cfad9-4ef7-4db8-a954-bf48591e074c",
46
        "_ns": "units_ostree", "_last_updated": 1461946883, "remote_id": "b1046db191900ad624224c3826f095786a2a09b8c26968f30b81fd7e71aa632b",
39
      string: '[{"metadata": {"_storage_path": "/var/lib/pulp/content/shared/ostree/26760a9b7480dbfac877f6c0401a19da5e4d3e2292a5864b8820694f41cb5de9/links/8f958529-8425-4a97-befd-3283e77665be",
40
        "_ns": "units_ostree", "_last_updated": 1485952002, "remote_id": "b1046db191900ad624224c3826f095786a2a09b8c26968f30b81fd7e71aa632b",
47 41
        "_content_type_id": "ostree", "pulp_user_metadata": {}, "branch": "fedora-atomic/f21/x86_64/updates/docker-host",
48
        "_created": "2016-04-29T16:21:23Z", "commit": "b2179ef2c16343758ebebaa1dfdf40cca8a76d5418ad1780d19b708ff2202dcf",
49
        "_id": "590cfad9-4ef7-4db8-a954-bf48591e074c", "metadata": {"version": "23.3"}},
50
        "updated": "2016-04-29T16:21:33Z", "repo_id": "integration_test_id", "created":
51
        "2016-04-29T16:21:33Z", "unit_type_id": "ostree", "unit_id": "590cfad9-4ef7-4db8-a954-bf48591e074c",
52
        "_id": {"$oid": "57238a0d898f5c862fa3ea7a"}}]'
42
        "_created": "2017-02-01T12:26:42Z", "commit": "b2179ef2c16343758ebebaa1dfdf40cca8a76d5418ad1780d19b708ff2202dcf",
43
        "_id": "8f958529-8425-4a97-befd-3283e77665be", "metadata": {"version": "23.3"}},
44
        "updated": "2017-02-01T12:30:49Z", "repo_id": "integration_test_id", "created":
45
        "2017-02-01T12:30:49Z", "unit_type_id": "ostree", "unit_id": "8f958529-8425-4a97-befd-3283e77665be",
46
        "_id": {"$oid": "5891d4f94b92d9e3004e81da"}}, {"metadata": {"_storage_path":
47
        "/var/lib/pulp/content/shared/ostree/26760a9b7480dbfac877f6c0401a19da5e4d3e2292a5864b8820694f41cb5de9/links/f3f067ea-2fd6-40b3-b138-cc28117063ed",
48
        "_ns": "units_ostree", "_last_updated": 1485952002, "remote_id": "b1046db191900ad624224c3826f095786a2a09b8c26968f30b81fd7e71aa632b",
49
        "_content_type_id": "ostree", "pulp_user_metadata": {}, "branch": "fedora-atomic/f21/x86_64/updates-testing/docker-host",
50
        "_created": "2017-02-01T12:26:42Z", "commit": "b954defc0c21b23705bf5776a78ca434b2569260e64e19fb61bdbd5526b3bf0f",
51
        "_id": "f3f067ea-2fd6-40b3-b138-cc28117063ed", "metadata": {"version": "23.3"}},
52
        "updated": "2017-02-01T12:30:49Z", "repo_id": "integration_test_id", "created":
53
        "2017-02-01T12:30:49Z", "unit_type_id": "ostree", "unit_id": "f3f067ea-2fd6-40b3-b138-cc28117063ed",
54
        "_id": {"$oid": "5891d4f94b92d9e3004e81d9"}}]'
53 55
    http_version: 
54
  recorded_at: Fri, 29 Apr 2016 16:21:34 GMT
55
recorded_with: VCR 3.0.1
56
  recorded_at: Wed, 01 Feb 2017 12:30:49 GMT
57
recorded_with: VCR 3.0.3
test/fixtures/vcr_cassettes/extensions/ostree_branch_repository_unit_list/suite.yml
1 1
---
2 2
http_interactions:
3 3
- request:
4
    method: get
5
    uri: https://admin:HeQSzZgm6ZEKG8aHrJEGW7aGD85Wrj57@runcible.example.com/pulp/api/v2/tasks/71e0e628-f63c-408e-9ebf-0927050c5901/
6
    body:
7
      encoding: US-ASCII
8
      string: ''
9
    headers:
10
      Accept:
11
      - application/json
12
      Accept-Encoding:
13
      - gzip, deflate
14
      Content-Type:
15
      - application/json
16
      User-Agent:
17
      - Ruby
18
  response:
19
    status:
20
      code: 200
21
      message: OK
22
    headers:
23
      Date:
24
      - Fri, 29 Apr 2016 16:21:33 GMT
25
      Server:
26
      - Apache/2.4.6 (CentOS)
27
      Vary:
28
      - Accept-Encoding
29
      Content-Length:
30
      - '1955'
31
      Content-Type:
32
      - application/json; charset=utf-8
33
    body:
34
      encoding: ASCII-8BIT
35
      string: '{"exception": null, "task_type": "pulp.server.managers.repo.sync.sync",
36
        "_href": "/pulp/api/v2/tasks/71e0e628-f63c-408e-9ebf-0927050c5901/", "task_id":
37
        "71e0e628-f63c-408e-9ebf-0927050c5901", "tags": ["pulp:repository:integration_test_id",
38
        "pulp:action:sync"], "finish_time": null, "_ns": "task_status", "start_time":
39
        "2016-04-29T16:21:32Z", "traceback": null, "spawned_tasks": [], "progress_report":
40
        {"ostree_web_importer": [{"num_success": 1, "description": "Create Local Repository",
41
        "step_type": "import_create_repository", "items_total": 1, "state": "FINISHED",
42
        "error_details": [], "details": "", "num_failures": 0, "step_id": "d0438e72-d61f-495f-a1b8-c9b1466f0f0a",
43
        "num_processed": 1}, {"num_success": 1, "description": "Update Summary", "step_type":
44
        "import_summary", "items_total": 1, "state": "FINISHED", "error_details":
45
        [], "details": "", "num_failures": 0, "step_id": "5c51d057-1e78-4704-a8a2-78e2b9b68c91",
46
        "num_processed": 1}, {"num_success": 0, "description": "Pull Remote Branches",
47
        "step_type": "import_pull", "items_total": 1, "state": "IN_PROGRESS", "error_details":
48
        [], "details": "", "num_failures": 0, "step_id": "58a58555-6eb3-48e1-b9a5-a2b2595773f8",
49
        "num_processed": 0}, {"num_success": 0, "description": "Add Content Units",
50
        "step_type": "import_add_unit", "items_total": 1, "state": "NOT_STARTED",
51
        "error_details": [], "details": "", "num_failures": 0, "step_id": "70b735ae-76e3-4cfc-a4b0-ca3c4b239ec4",
52
        "num_processed": 0}, {"num_success": 0, "description": "Clean", "step_type":
53
        "import_clean", "items_total": 1, "state": "NOT_STARTED", "error_details":
54
        [], "details": "", "num_failures": 0, "step_id": "d5f6fa06-ed81-47da-968d-acf99f959707",
55
        "num_processed": 0}]}, "queue": "reserved_resource_worker-0@runcible.example.com.dq",
56
        "state": "running", "worker_name": "reserved_resource_worker-0@runcible.example.com",
57
        "result": null, "error": null, "_id": {"$oid": "57238a0c898f5c862fa3ea78"},
58
        "id": "57238a0c898f5c862fa3ea78"}'
59
    http_version: 
60
  recorded_at: Fri, 29 Apr 2016 16:21:33 GMT
61
- request:
62
    method: get
63
    uri: https://admin:HeQSzZgm6ZEKG8aHrJEGW7aGD85Wrj57@runcible.example.com/pulp/api/v2/tasks/71e0e628-f63c-408e-9ebf-0927050c5901/
64
    body:
65
      encoding: US-ASCII
66
      string: ''
67
    headers:
68
      Accept:
69
      - application/json
70
      Accept-Encoding:
71
      - gzip, deflate
72
      Content-Type:
73
      - application/json
74
      User-Agent:
75
      - Ruby
76
  response:
77
    status:
78
      code: 200
79
      message: OK
80
    headers:
81
      Date:
82
      - Fri, 29 Apr 2016 16:21:33 GMT
83
      Server:
84
      - Apache/2.4.6 (CentOS)
85
      Vary:
86
      - Accept-Encoding
87
      Content-Length:
88
      - '3792'
89
      Content-Type:
90
      - application/json; charset=utf-8
91
    body:
92
      encoding: ASCII-8BIT
93
      string: '{"exception": null, "task_type": "pulp.server.managers.repo.sync.sync",
94
        "_href": "/pulp/api/v2/tasks/71e0e628-f63c-408e-9ebf-0927050c5901/", "task_id":
95
        "71e0e628-f63c-408e-9ebf-0927050c5901", "tags": ["pulp:repository:integration_test_id",
96
        "pulp:action:sync"], "finish_time": "2016-04-29T16:21:33Z", "_ns": "task_status",
97
        "start_time": "2016-04-29T16:21:32Z", "traceback": null, "spawned_tasks":
98
        [], "progress_report": {"ostree_web_importer": [{"num_success": 1, "description":
99
        "Create Local Repository", "step_type": "import_create_repository", "items_total":
100
        1, "state": "FINISHED", "error_details": [], "details": "", "num_failures":
101
        0, "step_id": "d0438e72-d61f-495f-a1b8-c9b1466f0f0a", "num_processed": 1},
102
        {"num_success": 1, "description": "Update Summary", "step_type": "import_summary",
103
        "items_total": 1, "state": "FINISHED", "error_details": [], "details": "",
104
        "num_failures": 0, "step_id": "5c51d057-1e78-4704-a8a2-78e2b9b68c91", "num_processed":
105
        1}, {"num_success": 1, "description": "Pull Remote Branches", "step_type":
106
        "import_pull", "items_total": 1, "state": "FINISHED", "error_details": [],
107
        "details": "", "num_failures": 0, "step_id": "58a58555-6eb3-48e1-b9a5-a2b2595773f8",
108
        "num_processed": 1}, {"num_success": 1, "description": "Add Content Units",
109
        "step_type": "import_add_unit", "items_total": 1, "state": "FINISHED", "error_details":
110
        [], "details": "", "num_failures": 0, "step_id": "70b735ae-76e3-4cfc-a4b0-ca3c4b239ec4",
111
        "num_processed": 1}, {"num_success": 1, "description": "Clean", "step_type":
112
        "import_clean", "items_total": 1, "state": "FINISHED", "error_details": [],
113
        "details": "", "num_failures": 0, "step_id": "d5f6fa06-ed81-47da-968d-acf99f959707",
114
        "num_processed": 1}]}, "queue": "reserved_resource_worker-0@runcible.example.com.dq",
115
        "state": "finished", "worker_name": "reserved_resource_worker-0@runcible.example.com",
116
        "result": {"result": "success", "importer_id": "ostree_web_importer", "exception":
117
        null, "repo_id": "integration_test_id", "traceback": null, "started": "2016-04-29T16:21:32Z",
118
        "_ns": "repo_sync_results", "completed": "2016-04-29T16:21:33Z", "importer_type_id":
119
        "ostree_web_importer", "error_message": null, "summary": {"import_summary":
120
        "FINISHED", "import_create_repository": "FINISHED", "import_pull": "FINISHED",
121
        "import_clean": "FINISHED", "import_add_unit": "FINISHED"}, "added_count":
122
        2, "removed_count": 0, "updated_count": 0, "id": "57238a0daca4886e0c05c3b2",
123
        "details": [{"num_success": 1, "description": "Create Local Repository", "step_type":
124
        "import_create_repository", "items_total": 1, "state": "FINISHED", "error_details":
125
        [], "details": "", "num_failures": 0, "step_id": "d0438e72-d61f-495f-a1b8-c9b1466f0f0a",
126
        "num_processed": 1}, {"num_success": 1, "description": "Update Summary", "step_type":
127
        "import_summary", "items_total": 1, "state": "FINISHED", "error_details":
128
        [], "details": "", "num_failures": 0, "step_id": "5c51d057-1e78-4704-a8a2-78e2b9b68c91",
129
        "num_processed": 1}, {"num_success": 1, "description": "Pull Remote Branches",
130
        "step_type": "import_pull", "items_total": 1, "state": "FINISHED", "error_details":
131
        [], "details": "", "num_failures": 0, "step_id": "58a58555-6eb3-48e1-b9a5-a2b2595773f8",
132
        "num_processed": 1}, {"num_success": 1, "description": "Add Content Units",
133
        "step_type": "import_add_unit", "items_total": 1, "state": "FINISHED", "error_details":
134
        [], "details": "", "num_failures": 0, "step_id": "70b735ae-76e3-4cfc-a4b0-ca3c4b239ec4",
135
        "num_processed": 1}, {"num_success": 1, "description": "Clean", "step_type":
136
        "import_clean", "items_total": 1, "state": "FINISHED", "error_details": [],
137
        "details": "", "num_failures": 0, "step_id": "d5f6fa06-ed81-47da-968d-acf99f959707",
138
        "num_processed": 1}]}, "error": null, "_id": {"$oid": "57238a0c898f5c862fa3ea78"},
139
        "id": "57238a0c898f5c862fa3ea78"}'
140
    http_version: 
141
  recorded_at: Fri, 29 Apr 2016 16:21:33 GMT
142
- request:
143
    method: get
144
    uri: https://admin:HeQSzZgm6ZEKG8aHrJEGW7aGD85Wrj57@runcible.example.com/pulp/api/v2/tasks/beb04707-9cf7-4e3b-b7de-0dcaa4b30edc/
145
    body:
146
      encoding: US-ASCII
147
      string: ''
148
    headers:
149
      Accept:
150
      - application/json
151
      Accept-Encoding:
152
      - gzip, deflate
153
      Content-Type:
154
      - application/json
155
      User-Agent:
156
      - Ruby
157
  response:
158
    status:
159
      code: 200
160
      message: OK
161
    headers:
162
      Date:
163
      - Fri, 29 Apr 2016 16:21:34 GMT
164
      Server:
165
      - Apache/2.4.6 (CentOS)
166
      Vary:
167
      - Accept-Encoding
168
      Content-Length:
169
      - '684'
170
      Content-Type:
171
      - application/json; charset=utf-8
172
    body:
173
      encoding: ASCII-8BIT
174
      string: '{"exception": null, "task_type": "pulp.server.tasks.repository.delete",
175
        "_href": "/pulp/api/v2/tasks/beb04707-9cf7-4e3b-b7de-0dcaa4b30edc/", "task_id":
176
        "beb04707-9cf7-4e3b-b7de-0dcaa4b30edc", "tags": ["pulp:repository:integration_test_id",
177
        "pulp:action:delete"], "finish_time": "2016-04-29T16:21:34Z", "_ns": "task_status",
178
        "start_time": "2016-04-29T16:21:34Z", "traceback": null, "spawned_tasks":
179
        [], "progress_report": {}, "queue": "reserved_resource_worker-0@runcible.example.com.dq",
180
        "state": "finished", "worker_name": "reserved_resource_worker-0@runcible.example.com",
181
        "result": null, "error": null, "_id": {"$oid": "57238a0e898f5c862fa3ea7b"},
182
        "id": "57238a0e898f5c862fa3ea7b"}'
183
    http_version: 
184
  recorded_at: Fri, 29 Apr 2016 16:21:35 GMT
185
- request:
186
    method: get
187
    uri: https://admin:admin@obelix.example.com/pulp/api/v2/tasks/51081c12-5e67-4de6-b3e5-48e8324bb8d8/
188
    body:
189
      encoding: US-ASCII
190
      string: ''
191
    headers:
192
      Accept:
193
      - application/json
194
      Accept-Encoding:
195
      - gzip, deflate
196
      Content-Type:
197
      - application/json
198
      User-Agent:
199
      - Ruby
200
  response:
201
    status:
202
      code: 200
203
      message: OK
204
    headers:
205
      Date:
206
      - Wed, 01 Feb 2017 12:26:42 GMT
207
      Server:
208
      - Apache/2.4.6 (CentOS)
209
      Vary:
210
      - Accept-Encoding
211
      Content-Length:
212
      - '3788'
213
      Connection:
214
      - close
215
      Content-Type:
216
      - application/json; charset=utf-8
217
    body:
218
      encoding: ASCII-8BIT
219
      string: '{"exception": null, "task_type": "pulp.server.managers.repo.sync.sync",
220
        "_href": "/pulp/api/v2/tasks/51081c12-5e67-4de6-b3e5-48e8324bb8d8/", "task_id":
221
        "51081c12-5e67-4de6-b3e5-48e8324bb8d8", "tags": ["pulp:repository:integration_test_id",
222
        "pulp:action:sync"], "finish_time": "2017-02-01T12:26:42Z", "_ns": "task_status",
223
        "start_time": "2017-02-01T12:26:42Z", "traceback": null, "spawned_tasks":
224
        [], "progress_report": {"ostree_web_importer": [{"num_success": 1, "description":
225
        "Create Local Repository", "step_type": "import_create_repository", "items_total":
226
        1, "state": "FINISHED", "error_details": [], "details": "", "num_failures":
227
        0, "step_id": "e9ff2bf6-c899-46fa-ac6a-f12e1356a29f", "num_processed": 1},
228
        {"num_success": 1, "description": "Update Summary", "step_type": "import_summary",
229
        "items_total": 1, "state": "FINISHED", "error_details": [], "details": "",
230
        "num_failures": 0, "step_id": "44754389-a0fe-4fdb-aac9-0953a17483eb", "num_processed":
231
        1}, {"num_success": 1, "description": "Pull Remote Branches", "step_type":
232
        "import_pull", "items_total": 1, "state": "FINISHED", "error_details": [],
233
        "details": "", "num_failures": 0, "step_id": "a65083d3-adcd-49b3-b407-cb12165b7c92",
234
        "num_processed": 1}, {"num_success": 1, "description": "Add Content Units",
235
        "step_type": "import_add_unit", "items_total": 1, "state": "FINISHED", "error_details":
236
        [], "details": "", "num_failures": 0, "step_id": "1a3797ca-d63c-422a-b252-6bfc35b2483b",
237
        "num_processed": 1}, {"num_success": 1, "description": "Clean", "step_type":
238
        "import_clean", "items_total": 1, "state": "FINISHED", "error_details": [],
239
        "details": "", "num_failures": 0, "step_id": "47147fc1-9195-4701-9ec7-1626274541ee",
240
        "num_processed": 1}]}, "queue": "reserved_resource_worker-1@obelix.example.com.dq",
241
        "state": "finished", "worker_name": "reserved_resource_worker-1@obelix.example.com",
242
        "result": {"result": "success", "importer_id": "ostree_web_importer", "exception":
243
        null, "repo_id": "integration_test_id", "traceback": null, "started": "2017-02-01T12:26:42Z",
244
        "_ns": "repo_sync_results", "completed": "2017-02-01T12:26:42Z", "importer_type_id":
245
        "ostree_web_importer", "error_message": null, "summary": {"import_summary":
246
        "FINISHED", "import_create_repository": "FINISHED", "import_pull": "FINISHED",
247
        "import_clean": "FINISHED", "import_add_unit": "FINISHED"}, "added_count":
248
        2, "removed_count": 0, "updated_count": 0, "id": "5891d40270be6f14689afe13",
249
        "details": [{"num_success": 1, "description": "Create Local Repository", "step_type":
250
        "import_create_repository", "items_total": 1, "state": "FINISHED", "error_details":
251
        [], "details": "", "num_failures": 0, "step_id": "e9ff2bf6-c899-46fa-ac6a-f12e1356a29f",
252
        "num_processed": 1}, {"num_success": 1, "description": "Update Summary", "step_type":
253
        "import_summary", "items_total": 1, "state": "FINISHED", "error_details":
254
        [], "details": "", "num_failures": 0, "step_id": "44754389-a0fe-4fdb-aac9-0953a17483eb",
255
        "num_processed": 1}, {"num_success": 1, "description": "Pull Remote Branches",
256
        "step_type": "import_pull", "items_total": 1, "state": "FINISHED", "error_details":
257
        [], "details": "", "num_failures": 0, "step_id": "a65083d3-adcd-49b3-b407-cb12165b7c92",
258
        "num_processed": 1}, {"num_success": 1, "description": "Add Content Units",
259
        "step_type": "import_add_unit", "items_total": 1, "state": "FINISHED", "error_details":
260
        [], "details": "", "num_failures": 0, "step_id": "1a3797ca-d63c-422a-b252-6bfc35b2483b",
261
        "num_processed": 1}, {"num_success": 1, "description": "Clean", "step_type":
262
        "import_clean", "items_total": 1, "state": "FINISHED", "error_details": [],
263
        "details": "", "num_failures": 0, "step_id": "47147fc1-9195-4701-9ec7-1626274541ee",
264
        "num_processed": 1}]}, "error": null, "_id": {"$oid": "5891d4014b92d9e3004e81ba"},
265
        "id": "5891d4014b92d9e3004e81ba"}'
266
    http_version: 
267
  recorded_at: Wed, 01 Feb 2017 12:26:42 GMT
268
- request:
269
    method: get
270
    uri: https://admin:admin@obelix.example.com/pulp/api/v2/tasks/4e69d6a7-0859-450c-9f45-6963efebb55b/
271
    body:
272
      encoding: US-ASCII
273
      string: ''
274
    headers:
275
      Accept:
276
      - application/json
277
      Accept-Encoding:
278
      - gzip, deflate
279
      Content-Type:
280
      - application/json
281
      User-Agent:
282
      - Ruby
283
  response:
284
    status:
285
      code: 200
286
      message: OK
287
    headers:
288
      Date:
289
      - Wed, 01 Feb 2017 12:26:43 GMT
290
      Server:
291
      - Apache/2.4.6 (CentOS)
292
      Vary:
293
      - Accept-Encoding
294
      Content-Length:
295
      - '680'
296
      Connection:
297
      - close
298
      Content-Type:
299
      - application/json; charset=utf-8
300
    body:
301
      encoding: ASCII-8BIT
302
      string: '{"exception": null, "task_type": "pulp.server.tasks.repository.delete",
303
        "_href": "/pulp/api/v2/tasks/4e69d6a7-0859-450c-9f45-6963efebb55b/", "task_id":
304
        "4e69d6a7-0859-450c-9f45-6963efebb55b", "tags": ["pulp:repository:integration_test_id",
305
        "pulp:action:delete"], "finish_time": "2017-02-01T12:26:42Z", "_ns": "task_status",
306
        "start_time": "2017-02-01T12:26:42Z", "traceback": null, "spawned_tasks":
307
        [], "progress_report": {}, "queue": "reserved_resource_worker-1@obelix.example.com.dq",
308
        "state": "finished", "worker_name": "reserved_resource_worker-1@obelix.example.com",
309
        "result": null, "error": null, "_id": {"$oid": "5891d4024b92d9e3004e81bd"},
310
        "id": "5891d4024b92d9e3004e81bd"}'
311
    http_version: 
312
  recorded_at: Wed, 01 Feb 2017 12:26:43 GMT
313
- request:
314
    method: get
315
    uri: https://admin:admin@obelix.example.com/pulp/api/v2/tasks/53d8667c-6b00-49aa-ab3d-571a15bc1c52/
316
    body:
317
      encoding: US-ASCII
318
      string: ''
319
    headers:
320
      Accept:
321
      - application/json
322
      Accept-Encoding:
323
      - gzip, deflate
324
      Content-Type:
325
      - application/json
326
      User-Agent:
327
      - Ruby
328
  response:
329
    status:
330
      code: 200
331
      message: OK
332
    headers:
333
      Date:
334
      - Wed, 01 Feb 2017 12:28:29 GMT
335
      Server:
336
      - Apache/2.4.6 (CentOS)
337
      Vary:
338
      - Accept-Encoding
339
      Content-Length:
340
      - '3788'
341
      Connection:
342
      - close
343
      Content-Type:
344
      - application/json; charset=utf-8
345
    body:
346
      encoding: ASCII-8BIT
347
      string: '{"exception": null, "task_type": "pulp.server.managers.repo.sync.sync",
348
        "_href": "/pulp/api/v2/tasks/53d8667c-6b00-49aa-ab3d-571a15bc1c52/", "task_id":
349
        "53d8667c-6b00-49aa-ab3d-571a15bc1c52", "tags": ["pulp:repository:integration_test_id",
350
        "pulp:action:sync"], "finish_time": "2017-02-01T12:28:28Z", "_ns": "task_status",
351
        "start_time": "2017-02-01T12:28:28Z", "traceback": null, "spawned_tasks":
352
        [], "progress_report": {"ostree_web_importer": [{"num_success": 1, "description":
353
        "Create Local Repository", "step_type": "import_create_repository", "items_total":
354
        1, "state": "FINISHED", "error_details": [], "details": "", "num_failures":
355
        0, "step_id": "4dfc01c0-4c30-4642-bd82-e34c84ce49d4", "num_processed": 1},
356
        {"num_success": 1, "description": "Update Summary", "step_type": "import_summary",
357
        "items_total": 1, "state": "FINISHED", "error_details": [], "details": "",
358
        "num_failures": 0, "step_id": "ddeac109-28c4-4a5d-8fbf-3c89e27294d5", "num_processed":
359
        1}, {"num_success": 1, "description": "Pull Remote Branches", "step_type":
360
        "import_pull", "items_total": 1, "state": "FINISHED", "error_details": [],
361
        "details": "", "num_failures": 0, "step_id": "aa51789f-d883-404a-b3f3-ce55da79202d",
362
        "num_processed": 1}, {"num_success": 1, "description": "Add Content Units",
363
        "step_type": "import_add_unit", "items_total": 1, "state": "FINISHED", "error_details":
364
        [], "details": "", "num_failures": 0, "step_id": "7428f9e7-8ba9-48d4-a1fb-f0f2aa5df18e",
365
        "num_processed": 1}, {"num_success": 1, "description": "Clean", "step_type":
366
        "import_clean", "items_total": 1, "state": "FINISHED", "error_details": [],
367
        "details": "", "num_failures": 0, "step_id": "a4e6fb07-38fb-4853-ac4f-e70bf20392a5",
368
        "num_processed": 1}]}, "queue": "reserved_resource_worker-1@obelix.example.com.dq",
369
        "state": "finished", "worker_name": "reserved_resource_worker-1@obelix.example.com",
370
        "result": {"result": "success", "importer_id": "ostree_web_importer", "exception":
371
        null, "repo_id": "integration_test_id", "traceback": null, "started": "2017-02-01T12:28:28Z",
372
        "_ns": "repo_sync_results", "completed": "2017-02-01T12:28:28Z", "importer_type_id":
373
        "ostree_web_importer", "error_message": null, "summary": {"import_summary":
374
        "FINISHED", "import_create_repository": "FINISHED", "import_pull": "FINISHED",
375
        "import_clean": "FINISHED", "import_add_unit": "FINISHED"}, "added_count":
376
        2, "removed_count": 0, "updated_count": 0, "id": "5891d46c70be6f14689afe14",
377
        "details": [{"num_success": 1, "description": "Create Local Repository", "step_type":
378
        "import_create_repository", "items_total": 1, "state": "FINISHED", "error_details":
379
        [], "details": "", "num_failures": 0, "step_id": "4dfc01c0-4c30-4642-bd82-e34c84ce49d4",
380
        "num_processed": 1}, {"num_success": 1, "description": "Update Summary", "step_type":
381
        "import_summary", "items_total": 1, "state": "FINISHED", "error_details":
382
        [], "details": "", "num_failures": 0, "step_id": "ddeac109-28c4-4a5d-8fbf-3c89e27294d5",
383
        "num_processed": 1}, {"num_success": 1, "description": "Pull Remote Branches",
384
        "step_type": "import_pull", "items_total": 1, "state": "FINISHED", "error_details":
385
        [], "details": "", "num_failures": 0, "step_id": "aa51789f-d883-404a-b3f3-ce55da79202d",
386
        "num_processed": 1}, {"num_success": 1, "description": "Add Content Units",
387
        "step_type": "import_add_unit", "items_total": 1, "state": "FINISHED", "error_details":
388
        [], "details": "", "num_failures": 0, "step_id": "7428f9e7-8ba9-48d4-a1fb-f0f2aa5df18e",
389
        "num_processed": 1}, {"num_success": 1, "description": "Clean", "step_type":
390
        "import_clean", "items_total": 1, "state": "FINISHED", "error_details": [],
391
        "details": "", "num_failures": 0, "step_id": "a4e6fb07-38fb-4853-ac4f-e70bf20392a5",
392
        "num_processed": 1}]}, "error": null, "_id": {"$oid": "5891d46c4b92d9e3004e81c4"},
393
        "id": "5891d46c4b92d9e3004e81c4"}'
394
    http_version: 
395
  recorded_at: Wed, 01 Feb 2017 12:28:29 GMT
396
- request:
397
    method: get
398
    uri: https://admin:admin@obelix.example.com/pulp/api/v2/tasks/cc69e7ec-fa09-4e57-94e7-2e32884a50bc/
399
    body:
400
      encoding: US-ASCII
401
      string: ''
402
    headers:
403
      Accept:
404
      - application/json
405
      Accept-Encoding:
406
      - gzip, deflate
407
      Content-Type:
408
      - application/json
409
      User-Agent:
410
      - Ruby
411
  response:
412
    status:
413
      code: 200
414
      message: OK
415
    headers:
416
      Date:
417
      - Wed, 01 Feb 2017 12:28:29 GMT
418
      Server:
419
      - Apache/2.4.6 (CentOS)
420
      Vary:
421
      - Accept-Encoding
422
      Content-Length:
423
      - '680'
424
      Connection:
425
      - close
426
      Content-Type:
427
      - application/json; charset=utf-8
428
    body:
429
      encoding: ASCII-8BIT
430
      string: '{"exception": null, "task_type": "pulp.server.tasks.repository.delete",
431
        "_href": "/pulp/api/v2/tasks/cc69e7ec-fa09-4e57-94e7-2e32884a50bc/", "task_id":
432
        "cc69e7ec-fa09-4e57-94e7-2e32884a50bc", "tags": ["pulp:repository:integration_test_id",
433
        "pulp:action:delete"], "finish_time": "2017-02-01T12:28:29Z", "_ns": "task_status",
434
        "start_time": "2017-02-01T12:28:29Z", "traceback": null, "spawned_tasks":
435
        [], "progress_report": {}, "queue": "reserved_resource_worker-1@obelix.example.com.dq",
436
        "state": "finished", "worker_name": "reserved_resource_worker-1@obelix.example.com",
437
        "result": null, "error": null, "_id": {"$oid": "5891d46d4b92d9e3004e81c7"},
438
        "id": "5891d46d4b92d9e3004e81c7"}'
439
    http_version: 
440
  recorded_at: Wed, 01 Feb 2017 12:28:29 GMT
441
- request:
442
    method: get
443
    uri: https://admin:admin@obelix.example.com/pulp/api/v2/tasks/499fdbd8-cd89-4028-bbc0-7a4bf0f3b19b/
444
    body:
445
      encoding: US-ASCII
446
      string: ''
447
    headers:
448
      Accept:
449
      - application/json
450
      Accept-Encoding:
451
      - gzip, deflate
452
      Content-Type:
453
      - application/json
454
      User-Agent:
455
      - Ruby
456
  response:
457
    status:
458
      code: 200
459
      message: OK
460
    headers:
461
      Date:
462
      - Wed, 01 Feb 2017 12:28:56 GMT
463
      Server:
464
      - Apache/2.4.6 (CentOS)
465
      Vary:
466
      - Accept-Encoding
467
      Content-Length:
468
      - '3788'
469
      Connection:
470
      - close
471
      Content-Type:
472
      - application/json; charset=utf-8
473
    body:
474
      encoding: ASCII-8BIT
475
      string: '{"exception": null, "task_type": "pulp.server.managers.repo.sync.sync",
476
        "_href": "/pulp/api/v2/tasks/499fdbd8-cd89-4028-bbc0-7a4bf0f3b19b/", "task_id":
477
        "499fdbd8-cd89-4028-bbc0-7a4bf0f3b19b", "tags": ["pulp:repository:integration_test_id",
478
        "pulp:action:sync"], "finish_time": "2017-02-01T12:28:56Z", "_ns": "task_status",
479
        "start_time": "2017-02-01T12:28:55Z", "traceback": null, "spawned_tasks":
480
        [], "progress_report": {"ostree_web_importer": [{"num_success": 1, "description":
481
        "Create Local Repository", "step_type": "import_create_repository", "items_total":
482
        1, "state": "FINISHED", "error_details": [], "details": "", "num_failures":
483
        0, "step_id": "6b5b7f87-90b0-4901-bf40-6744708f9480", "num_processed": 1},
484
        {"num_success": 1, "description": "Update Summary", "step_type": "import_summary",
485
        "items_total": 1, "state": "FINISHED", "error_details": [], "details": "",
486
        "num_failures": 0, "step_id": "7f3626c6-586e-46d7-a54b-8379a921755c", "num_processed":
487
        1}, {"num_success": 1, "description": "Pull Remote Branches", "step_type":
488
        "import_pull", "items_total": 1, "state": "FINISHED", "error_details": [],
489
        "details": "", "num_failures": 0, "step_id": "f8e83813-bce2-4601-9408-20a256e748fa",
490
        "num_processed": 1}, {"num_success": 1, "description": "Add Content Units",
491
        "step_type": "import_add_unit", "items_total": 1, "state": "FINISHED", "error_details":
492
        [], "details": "", "num_failures": 0, "step_id": "49b22832-b7c0-4ef3-9638-4f2af3d78b7d",
493
        "num_processed": 1}, {"num_success": 1, "description": "Clean", "step_type":
494
        "import_clean", "items_total": 1, "state": "FINISHED", "error_details": [],
495
        "details": "", "num_failures": 0, "step_id": "045ea655-c9db-4a97-9375-0971fa6c5781",
496
        "num_processed": 1}]}, "queue": "reserved_resource_worker-1@obelix.example.com.dq",
497
        "state": "finished", "worker_name": "reserved_resource_worker-1@obelix.example.com",
498
        "result": {"result": "success", "importer_id": "ostree_web_importer", "exception":
499
        null, "repo_id": "integration_test_id", "traceback": null, "started": "2017-02-01T12:28:55Z",
500
        "_ns": "repo_sync_results", "completed": "2017-02-01T12:28:56Z", "importer_type_id":
501
        "ostree_web_importer", "error_message": null, "summary": {"import_summary":
502
        "FINISHED", "import_create_repository": "FINISHED", "import_pull": "FINISHED",
503
        "import_clean": "FINISHED", "import_add_unit": "FINISHED"}, "added_count":
504
        2, "removed_count": 0, "updated_count": 0, "id": "5891d48870be6f14689afe15",
505
        "details": [{"num_success": 1, "description": "Create Local Repository", "step_type":
506
        "import_create_repository", "items_total": 1, "state": "FINISHED", "error_details":
507
        [], "details": "", "num_failures": 0, "step_id": "6b5b7f87-90b0-4901-bf40-6744708f9480",
508
        "num_processed": 1}, {"num_success": 1, "description": "Update Summary", "step_type":
509
        "import_summary", "items_total": 1, "state": "FINISHED", "error_details":
510
        [], "details": "", "num_failures": 0, "step_id": "7f3626c6-586e-46d7-a54b-8379a921755c",
511
        "num_processed": 1}, {"num_success": 1, "description": "Pull Remote Branches",
512
        "step_type": "import_pull", "items_total": 1, "state": "FINISHED", "error_details":
513
        [], "details": "", "num_failures": 0, "step_id": "f8e83813-bce2-4601-9408-20a256e748fa",
514
        "num_processed": 1}, {"num_success": 1, "description": "Add Content Units",
515
        "step_type": "import_add_unit", "items_total": 1, "state": "FINISHED", "error_details":
516
        [], "details": "", "num_failures": 0, "step_id": "49b22832-b7c0-4ef3-9638-4f2af3d78b7d",
517
        "num_processed": 1}, {"num_success": 1, "description": "Clean", "step_type":
518
        "import_clean", "items_total": 1, "state": "FINISHED", "error_details": [],
519
        "details": "", "num_failures": 0, "step_id": "045ea655-c9db-4a97-9375-0971fa6c5781",
520
        "num_processed": 1}]}, "error": null, "_id": {"$oid": "5891d4874b92d9e3004e81ce"},
521
        "id": "5891d4874b92d9e3004e81ce"}'
522
    http_version: 
523
  recorded_at: Wed, 01 Feb 2017 12:28:56 GMT
524
- request:
525
    method: get
526
    uri: https://admin:admin@obelix.example.com/pulp/api/v2/tasks/a5f15245-7703-47f5-a354-e2ad5447f5cf/
527
    body:
528
      encoding: US-ASCII
529
      string: ''
530
    headers:
531
      Accept:
532
      - application/json
533
      Accept-Encoding:
534
      - gzip, deflate
535
      Content-Type:
536
      - application/json
537
      User-Agent:
538
      - Ruby
539
  response:
540
    status:
541
      code: 200
542
      message: OK
543
    headers:
544
      Date:
545
      - Wed, 01 Feb 2017 12:28:57 GMT
546
      Server:
547
      - Apache/2.4.6 (CentOS)
548
      Vary:
549
      - Accept-Encoding
550
      Content-Length:
551
      - '680'
552
      Connection:
553
      - close
554
      Content-Type:
555
      - application/json; charset=utf-8
556
    body:
557
      encoding: ASCII-8BIT
558
      string: '{"exception": null, "task_type": "pulp.server.tasks.repository.delete",
559
        "_href": "/pulp/api/v2/tasks/a5f15245-7703-47f5-a354-e2ad5447f5cf/", "task_id":
560
        "a5f15245-7703-47f5-a354-e2ad5447f5cf", "tags": ["pulp:repository:integration_test_id",
561
        "pulp:action:delete"], "finish_time": "2017-02-01T12:28:56Z", "_ns": "task_status",
562
        "start_time": "2017-02-01T12:28:56Z", "traceback": null, "spawned_tasks":
563
        [], "progress_report": {}, "queue": "reserved_resource_worker-1@obelix.example.com.dq",
564
        "state": "finished", "worker_name": "reserved_resource_worker-1@obelix.example.com",
565
        "result": null, "error": null, "_id": {"$oid": "5891d4884b92d9e3004e81d1"},
566
        "id": "5891d4884b92d9e3004e81d1"}'
567
    http_version: 
568
  recorded_at: Wed, 01 Feb 2017 12:28:57 GMT
569
- request:
4 570
    method: delete
5
    uri: https://admin:HeQSzZgm6ZEKG8aHrJEGW7aGD85Wrj57@runcible.example.com/pulp/api/v2/repositories/integration_test_id/
571
    uri: https://admin:admin@obelix.example.com/pulp/api/v2/repositories/integration_test_id/
6 572
    body:
7 573
      encoding: US-ASCII
8 574
      string: ''
......
21 587
      message: NOT FOUND
22 588
    headers:
23 589
      Date:
24
      - Fri, 29 Apr 2016 16:21:31 GMT
590
      - Wed, 01 Feb 2017 12:30:49 GMT
25 591
      Server:
26 592
      - Apache/2.4.6 (CentOS)
27
      Content-Encoding:
28
      - utf-8
29 593
      Content-Length:
30 594
      - '454'
595
      Connection:
596
      - close
31 597
      Content-Type:
32 598
      - application/json; charset=utf-8
33 599
    body:
......
38 604
        "integration_test_id"}}, "description": "Missing resource(s): repository=integration_test_id",
39 605
        "sub_errors": []}, "traceback": null, "resources": {"repository": "integration_test_id"}}'
40 606
    http_version: 
41
  recorded_at: Fri, 29 Apr 2016 16:21:31 GMT
607
  recorded_at: Wed, 01 Feb 2017 12:30:49 GMT
42 608
- request:
43 609
    method: get
44
    uri: https://admin:HeQSzZgm6ZEKG8aHrJEGW7aGD85Wrj57@runcible.example.com/pulp/api/v2/repositories/integration_test_id/
610
    uri: https://admin:admin@obelix.example.com/pulp/api/v2/repositories/integration_test_id/
45 611
    body:
46 612
      encoding: US-ASCII
47 613
      string: ''
......
60 626
      message: NOT FOUND
61 627
    headers:
62 628
      Date:
63
      - Fri, 29 Apr 2016 16:21:32 GMT
629
      - Wed, 01 Feb 2017 12:30:49 GMT
64 630
      Server:
65 631
      - Apache/2.4.6 (CentOS)
66
      Content-Encoding:
67
      - utf-8
68 632
      Content-Length:
69 633
      - '452'
634
      Connection:
635
      - close
70 636
      Content-Type:
71 637
      - application/json; charset=utf-8
72 638
    body:
......
77 643
        "integration_test_id"}}, "description": "Missing resource(s): repository=integration_test_id",
78 644
        "sub_errors": []}, "traceback": null, "resources": {"repository": "integration_test_id"}}'
79 645
    http_version: 
80
  recorded_at: Fri, 29 Apr 2016 16:21:32 GMT
646
  recorded_at: Wed, 01 Feb 2017 12:30:49 GMT
81 647
- request:
82 648
    method: post
83
    uri: https://admin:HeQSzZgm6ZEKG8aHrJEGW7aGD85Wrj57@runcible.example.com/pulp/api/v2/repositories/
649
    uri: https://admin:admin@obelix.example.com/pulp/api/v2/repositories/
84 650
    body:
85 651
      encoding: UTF-8
86 652
      string: '{"id":"integration_test_id","importer_type_id":"ostree_web_importer","importer_config":{"feed":"file:///var/www/repositories/ostree/fedora"}}'
......
101 667
      message: CREATED
102 668
    headers:
103 669
      Date:
104
      - Fri, 29 Apr 2016 16:21:32 GMT
670
      - Wed, 01 Feb 2017 12:30:49 GMT
105 671
      Server:
106 672
      - Apache/2.4.6 (CentOS)
107 673
      Content-Length:
108 674
      - '319'
109 675
      Location:
110
      - https://runcible.example.com/pulp/api/v2/repositories/integration_test_id/
676
      - https://obelix.example.com/pulp/api/v2/repositories/integration_test_id/
677
      Connection:
678
      - close
111 679
      Content-Type:
112 680
      - application/json; charset=utf-8
113 681
    body:
114 682
      encoding: UTF-8
115 683
      string: '{"scratchpad": {}, "display_name": "integration_test_id", "description":
116 684
        null, "last_unit_added": null, "notes": {}, "last_unit_removed": null, "content_unit_counts":
117
        {}, "_ns": "repos", "_id": {"$oid": "57238a0caca4886d952eea8f"}, "id": "integration_test_id",
685
        {}, "_ns": "repos", "_id": {"$oid": "5891d4f970be6f18c88f24bc"}, "id": "integration_test_id",
118 686
        "_href": "/pulp/api/v2/repositories/integration_test_id/"}'
119 687
    http_version: 
120
  recorded_at: Fri, 29 Apr 2016 16:21:32 GMT
688
  recorded_at: Wed, 01 Feb 2017 12:30:49 GMT
121 689
- request:
122 690
    method: post
123
    uri: https://admin:HeQSzZgm6ZEKG8aHrJEGW7aGD85Wrj57@runcible.example.com/pulp/api/v2/repositories/integration_test_id/actions/sync/
691
    uri: https://admin:admin@obelix.example.com/pulp/api/v2/repositories/integration_test_id/actions/sync/
124 692
    body:
125 693
      encoding: UTF-8
126 694
      string: "{}"
......
141 709
      message: ACCEPTED
142 710
    headers:
143 711
      Date:
144
      - Fri, 29 Apr 2016 16:21:32 GMT
712
      - Wed, 01 Feb 2017 12:30:49 GMT
145 713
      Server:
146 714
      - Apache/2.4.6 (CentOS)
147 715
      Content-Length:
148 716
      - '172'
717
      Connection:
718
      - close
149 719
      Content-Type:
150 720
      - application/json; charset=utf-8
151 721
    body:
152 722
      encoding: UTF-8
153
      string: '{"spawned_tasks": [{"_href": "/pulp/api/v2/tasks/71e0e628-f63c-408e-9ebf-0927050c5901/",
154
        "task_id": "71e0e628-f63c-408e-9ebf-0927050c5901"}], "result": null, "error":
723
      string: '{"spawned_tasks": [{"_href": "/pulp/api/v2/tasks/f35dc211-6431-491d-b0f4-b2ae59b0711e/",
724
        "task_id": "f35dc211-6431-491d-b0f4-b2ae59b0711e"}], "result": null, "error":
155 725
        null}'
156 726
    http_version: 
157
  recorded_at: Fri, 29 Apr 2016 16:21:32 GMT
158
- request:
159
    method: get
160
    uri: https://admin:HeQSzZgm6ZEKG8aHrJEGW7aGD85Wrj57@runcible.example.com/pulp/api/v2/tasks/71e0e628-f63c-408e-9ebf-0927050c5901/
161
    body:
162
      encoding: US-ASCII
163
      string: ''
164
    headers:
165
      Accept:
166
      - application/json
167
      Accept-Encoding:
168
      - gzip, deflate
169
      Content-Type:
170
      - application/json
171
      User-Agent:
172
      - Ruby
173
  response:
174
    status:
175
      code: 200
176
      message: OK
177
    headers:
178
      Date:
179
      - Fri, 29 Apr 2016 16:21:33 GMT
180
      Server:
181
      - Apache/2.4.6 (CentOS)
182
      Vary:
183
      - Accept-Encoding
184
      Content-Length:
185
      - '1955'
186
      Content-Type:
187
      - application/json; charset=utf-8
188
    body:
189
      encoding: ASCII-8BIT
190
      string: '{"exception": null, "task_type": "pulp.server.managers.repo.sync.sync",
191
        "_href": "/pulp/api/v2/tasks/71e0e628-f63c-408e-9ebf-0927050c5901/", "task_id":
192
        "71e0e628-f63c-408e-9ebf-0927050c5901", "tags": ["pulp:repository:integration_test_id",
193
        "pulp:action:sync"], "finish_time": null, "_ns": "task_status", "start_time":
194
        "2016-04-29T16:21:32Z", "traceback": null, "spawned_tasks": [], "progress_report":
195
        {"ostree_web_importer": [{"num_success": 1, "description": "Create Local Repository",
196
        "step_type": "import_create_repository", "items_total": 1, "state": "FINISHED",
197
        "error_details": [], "details": "", "num_failures": 0, "step_id": "d0438e72-d61f-495f-a1b8-c9b1466f0f0a",
198
        "num_processed": 1}, {"num_success": 1, "description": "Update Summary", "step_type":
199
        "import_summary", "items_total": 1, "state": "FINISHED", "error_details":
200
        [], "details": "", "num_failures": 0, "step_id": "5c51d057-1e78-4704-a8a2-78e2b9b68c91",
201
        "num_processed": 1}, {"num_success": 0, "description": "Pull Remote Branches",
202
        "step_type": "import_pull", "items_total": 1, "state": "IN_PROGRESS", "error_details":
203
        [], "details": "", "num_failures": 0, "step_id": "58a58555-6eb3-48e1-b9a5-a2b2595773f8",
204
        "num_processed": 0}, {"num_success": 0, "description": "Add Content Units",
205
        "step_type": "import_add_unit", "items_total": 1, "state": "NOT_STARTED",
206
        "error_details": [], "details": "", "num_failures": 0, "step_id": "70b735ae-76e3-4cfc-a4b0-ca3c4b239ec4",
207
        "num_processed": 0}, {"num_success": 0, "description": "Clean", "step_type":
208
        "import_clean", "items_total": 1, "state": "NOT_STARTED", "error_details":
209
        [], "details": "", "num_failures": 0, "step_id": "d5f6fa06-ed81-47da-968d-acf99f959707",
210
        "num_processed": 0}]}, "queue": "reserved_resource_worker-0@runcible.example.com.dq",
211
        "state": "running", "worker_name": "reserved_resource_worker-0@runcible.example.com",
212
        "result": null, "error": null, "_id": {"$oid": "57238a0c898f5c862fa3ea78"},
213
        "id": "57238a0c898f5c862fa3ea78"}'
214
    http_version: 
215
  recorded_at: Fri, 29 Apr 2016 16:21:33 GMT
727
  recorded_at: Wed, 01 Feb 2017 12:30:49 GMT
216 728
- request:
217 729
    method: get
218
    uri: https://admin:HeQSzZgm6ZEKG8aHrJEGW7aGD85Wrj57@runcible.example.com/pulp/api/v2/tasks/71e0e628-f63c-408e-9ebf-0927050c5901/
730
    uri: https://admin:admin@obelix.example.com/pulp/api/v2/tasks/f35dc211-6431-491d-b0f4-b2ae59b0711e/
219 731
    body:
220 732
      encoding: US-ASCII
221 733
      string: ''
......
234 746
      message: OK
235 747
    headers:
236 748
      Date:
237
      - Fri, 29 Apr 2016 16:21:33 GMT
749
      - Wed, 01 Feb 2017 12:30:49 GMT
238 750
      Server:
239 751
      - Apache/2.4.6 (CentOS)
240 752
      Vary:
241 753
      - Accept-Encoding
242 754
      Content-Length:
243
      - '3792'
755
      - '3788'
756
      Connection:
757
      - close
244 758
      Content-Type:
245 759
      - application/json; charset=utf-8
246 760
    body:
247 761
      encoding: ASCII-8BIT
248 762
      string: '{"exception": null, "task_type": "pulp.server.managers.repo.sync.sync",
249
        "_href": "/pulp/api/v2/tasks/71e0e628-f63c-408e-9ebf-0927050c5901/", "task_id":
250
        "71e0e628-f63c-408e-9ebf-0927050c5901", "tags": ["pulp:repository:integration_test_id",
251
        "pulp:action:sync"], "finish_time": "2016-04-29T16:21:33Z", "_ns": "task_status",
252
        "start_time": "2016-04-29T16:21:32Z", "traceback": null, "spawned_tasks":
763
        "_href": "/pulp/api/v2/tasks/f35dc211-6431-491d-b0f4-b2ae59b0711e/", "task_id":
764
        "f35dc211-6431-491d-b0f4-b2ae59b0711e", "tags": ["pulp:repository:integration_test_id",
765
        "pulp:action:sync"], "finish_time": "2017-02-01T12:30:49Z", "_ns": "task_status",
766
        "start_time": "2017-02-01T12:30:49Z", "traceback": null, "spawned_tasks":
253 767
        [], "progress_report": {"ostree_web_importer": [{"num_success": 1, "description":
254 768
        "Create Local Repository", "step_type": "import_create_repository", "items_total":
255 769
        1, "state": "FINISHED", "error_details": [], "details": "", "num_failures":
256
        0, "step_id": "d0438e72-d61f-495f-a1b8-c9b1466f0f0a", "num_processed": 1},
770
        0, "step_id": "97355570-9a6d-4cdb-b572-5d48eefd8062", "num_processed": 1},
257 771
        {"num_success": 1, "description": "Update Summary", "step_type": "import_summary",
258 772
        "items_total": 1, "state": "FINISHED", "error_details": [], "details": "",
259
        "num_failures": 0, "step_id": "5c51d057-1e78-4704-a8a2-78e2b9b68c91", "num_processed":
773
        "num_failures": 0, "step_id": "a3384995-f8e3-4608-9e44-84cc187a896e", "num_processed":
260 774
        1}, {"num_success": 1, "description": "Pull Remote Branches", "step_type":
261 775
        "import_pull", "items_total": 1, "state": "FINISHED", "error_details": [],
262
        "details": "", "num_failures": 0, "step_id": "58a58555-6eb3-48e1-b9a5-a2b2595773f8",
776
        "details": "", "num_failures": 0, "step_id": "d9eec91c-6718-4b01-ab18-0ac568b60beb",
263 777
        "num_processed": 1}, {"num_success": 1, "description": "Add Content Units",
264 778
        "step_type": "import_add_unit", "items_total": 1, "state": "FINISHED", "error_details":
265
        [], "details": "", "num_failures": 0, "step_id": "70b735ae-76e3-4cfc-a4b0-ca3c4b239ec4",
779
        [], "details": "", "num_failures": 0, "step_id": "d3d68002-417b-44e4-ae51-c9ee3c1eddb2",
266 780
        "num_processed": 1}, {"num_success": 1, "description": "Clean", "step_type":
267 781
        "import_clean", "items_total": 1, "state": "FINISHED", "error_details": [],
268
        "details": "", "num_failures": 0, "step_id": "d5f6fa06-ed81-47da-968d-acf99f959707",
269
        "num_processed": 1}]}, "queue": "reserved_resource_worker-0@runcible.example.com.dq",
270
        "state": "finished", "worker_name": "reserved_resource_worker-0@runcible.example.com",
782
        "details": "", "num_failures": 0, "step_id": "0b604aec-15e7-40b1-808c-36ad76566aad",
783
        "num_processed": 1}]}, "queue": "reserved_resource_worker-1@obelix.example.com.dq",
784
        "state": "finished", "worker_name": "reserved_resource_worker-1@obelix.example.com",
271 785
        "result": {"result": "success", "importer_id": "ostree_web_importer", "exception":
272
        null, "repo_id": "integration_test_id", "traceback": null, "started": "2016-04-29T16:21:32Z",
273
        "_ns": "repo_sync_results", "completed": "2016-04-29T16:21:33Z", "importer_type_id":
786
        null, "repo_id": "integration_test_id", "traceback": null, "started": "2017-02-01T12:30:49Z",
787
        "_ns": "repo_sync_results", "completed": "2017-02-01T12:30:49Z", "importer_type_id":
274 788
        "ostree_web_importer", "error_message": null, "summary": {"import_summary":
275 789
        "FINISHED", "import_create_repository": "FINISHED", "import_pull": "FINISHED",
276 790
        "import_clean": "FINISHED", "import_add_unit": "FINISHED"}, "added_count":
277
        2, "removed_count": 0, "updated_count": 0, "id": "57238a0daca4886e0c05c3b2",
791
        2, "removed_count": 0, "updated_count": 0, "id": "5891d4f970be6f14689afe16",
278 792
        "details": [{"num_success": 1, "description": "Create Local Repository", "step_type":
279 793
        "import_create_repository", "items_total": 1, "state": "FINISHED", "error_details":
280
        [], "details": "", "num_failures": 0, "step_id": "d0438e72-d61f-495f-a1b8-c9b1466f0f0a",
794
        [], "details": "", "num_failures": 0, "step_id": "97355570-9a6d-4cdb-b572-5d48eefd8062",
281 795
        "num_processed": 1}, {"num_success": 1, "description": "Update Summary", "step_type":
282 796
        "import_summary", "items_total": 1, "state": "FINISHED", "error_details":
283
        [], "details": "", "num_failures": 0, "step_id": "5c51d057-1e78-4704-a8a2-78e2b9b68c91",
797
        [], "details": "", "num_failures": 0, "step_id": "a3384995-f8e3-4608-9e44-84cc187a896e",
284 798
        "num_processed": 1}, {"num_success": 1, "description": "Pull Remote Branches",
285 799
        "step_type": "import_pull", "items_total": 1, "state": "FINISHED", "error_details":
286
        [], "details": "", "num_failures": 0, "step_id": "58a58555-6eb3-48e1-b9a5-a2b2595773f8",
800
        [], "details": "", "num_failures": 0, "step_id": "d9eec91c-6718-4b01-ab18-0ac568b60beb",
287 801
        "num_processed": 1}, {"num_success": 1, "description": "Add Content Units",
288 802
        "step_type": "import_add_unit", "items_total": 1, "state": "FINISHED", "error_details":
289
        [], "details": "", "num_failures": 0, "step_id": "70b735ae-76e3-4cfc-a4b0-ca3c4b239ec4",
803
        [], "details": "", "num_failures": 0, "step_id": "d3d68002-417b-44e4-ae51-c9ee3c1eddb2",
290 804
        "num_processed": 1}, {"num_success": 1, "description": "Clean", "step_type":
291 805
        "import_clean", "items_total": 1, "state": "FINISHED", "error_details": [],
292
        "details": "", "num_failures": 0, "step_id": "d5f6fa06-ed81-47da-968d-acf99f959707",
293
        "num_processed": 1}]}, "error": null, "_id": {"$oid": "57238a0c898f5c862fa3ea78"},
294
        "id": "57238a0c898f5c862fa3ea78"}'
806
        "details": "", "num_failures": 0, "step_id": "0b604aec-15e7-40b1-808c-36ad76566aad",
807
        "num_processed": 1}]}, "error": null, "_id": {"$oid": "5891d4f94b92d9e3004e81d8"},
808
        "id": "5891d4f94b92d9e3004e81d8"}'
295 809
    http_version: 
296
  recorded_at: Fri, 29 Apr 2016 16:21:33 GMT
810
  recorded_at: Wed, 01 Feb 2017 12:30:49 GMT
297 811
- request:
298 812
    method: delete
299
    uri: https://admin:HeQSzZgm6ZEKG8aHrJEGW7aGD85Wrj57@runcible.example.com/pulp/api/v2/repositories/integration_test_id/
813
    uri: https://admin:admin@obelix.example.com/pulp/api/v2/repositories/integration_test_id/
300 814
    body:
301 815
      encoding: US-ASCII
302 816
      string: ''
......
315 829
      message: ACCEPTED
316 830
    headers:
317 831
      Date:
318
      - Fri, 29 Apr 2016 16:21:34 GMT
832
      - Wed, 01 Feb 2017 12:30:50 GMT
319 833
      Server:
320 834
      - Apache/2.4.6 (CentOS)
321 835
      Content-Length:
322 836
      - '172'
837
      Connection:
838
      - close
323 839
      Content-Type:
324 840
      - application/json; charset=utf-8
325 841
    body:
326 842
      encoding: UTF-8
327
      string: '{"spawned_tasks": [{"_href": "/pulp/api/v2/tasks/beb04707-9cf7-4e3b-b7de-0dcaa4b30edc/",
328
        "task_id": "beb04707-9cf7-4e3b-b7de-0dcaa4b30edc"}], "result": null, "error":
843
      string: '{"spawned_tasks": [{"_href": "/pulp/api/v2/tasks/882cf2a6-101c-4fec-9505-99357aaca4f4/",
844
        "task_id": "882cf2a6-101c-4fec-9505-99357aaca4f4"}], "result": null, "error":
329 845
        null}'
330 846
    http_version: 
331
  recorded_at: Fri, 29 Apr 2016 16:21:34 GMT
847
  recorded_at: Wed, 01 Feb 2017 12:30:50 GMT
332 848
- request:
333 849
    method: get
334
    uri: https://admin:HeQSzZgm6ZEKG8aHrJEGW7aGD85Wrj57@runcible.example.com/pulp/api/v2/tasks/beb04707-9cf7-4e3b-b7de-0dcaa4b30edc/
850
    uri: https://admin:admin@obelix.example.com/pulp/api/v2/tasks/882cf2a6-101c-4fec-9505-99357aaca4f4/
335 851
    body:
336 852
      encoding: US-ASCII
337 853
      string: ''
......
350 866
      message: OK
351 867
    headers:
352 868
      Date:
353
      - Fri, 29 Apr 2016 16:21:34 GMT
869
      - Wed, 01 Feb 2017 12:30:50 GMT
354 870
      Server:
355 871
      - Apache/2.4.6 (CentOS)
356 872
      Vary:
357 873
      - Accept-Encoding
358 874
      Content-Length:
359
      - '684'
875
      - '680'
876
      Connection:
877
      - close
360 878
      Content-Type:
361 879
      - application/json; charset=utf-8
362 880
    body:
363 881
      encoding: ASCII-8BIT
364 882
      string: '{"exception": null, "task_type": "pulp.server.tasks.repository.delete",
365
        "_href": "/pulp/api/v2/tasks/beb04707-9cf7-4e3b-b7de-0dcaa4b30edc/", "task_id":
366
        "beb04707-9cf7-4e3b-b7de-0dcaa4b30edc", "tags": ["pulp:repository:integration_test_id",
367
        "pulp:action:delete"], "finish_time": "2016-04-29T16:21:34Z", "_ns": "task_status",
368
        "start_time": "2016-04-29T16:21:34Z", "traceback": null, "spawned_tasks":
369
        [], "progress_report": {}, "queue": "reserved_resource_worker-0@runcible.example.com.dq",
370
        "state": "finished", "worker_name": "reserved_resource_worker-0@runcible.example.com",
371
        "result": null, "error": null, "_id": {"$oid": "57238a0e898f5c862fa3ea7b"},
372
        "id": "57238a0e898f5c862fa3ea7b"}'
883
        "_href": "/pulp/api/v2/tasks/882cf2a6-101c-4fec-9505-99357aaca4f4/", "task_id":
884
        "882cf2a6-101c-4fec-9505-99357aaca4f4", "tags": ["pulp:repository:integration_test_id",
885
        "pulp:action:delete"], "finish_time": "2017-02-01T12:30:50Z", "_ns": "task_status",
886
        "start_time": "2017-02-01T12:30:50Z", "traceback": null, "spawned_tasks":
887
        [], "progress_report": {}, "queue": "reserved_resource_worker-1@obelix.example.com.dq",
888
        "state": "finished", "worker_name": "reserved_resource_worker-1@obelix.example.com",
889
        "result": null, "error": null, "_id": {"$oid": "5891d4fa4b92d9e3004e81db"},
890
        "id": "5891d4fa4b92d9e3004e81db"}'
373 891
    http_version: 
374
  recorded_at: Fri, 29 Apr 2016 16:21:35 GMT
375
recorded_with: VCR 3.0.1
892
  recorded_at: Wed, 01 Feb 2017 12:30:50 GMT
893
recorded_with: VCR 3.0.3
test/fixtures/vcr_cassettes/extensions/ostree_repository_create/create_with_distributor_object.yml
1 1
---
2 2
http_interactions:
3 3
- request:
4
    method: get
5
    uri: https://admin:HeQSzZgm6ZEKG8aHrJEGW7aGD85Wrj57@runcible.example.com/pulp/api/v2/tasks/946633c7-164b-42a1-9f22-eaec7b786778/
6
    body:
7
      encoding: US-ASCII
8
      string: ''
9
    headers:
10
      Accept:
11
      - application/json
12
      Accept-Encoding:
13
      - gzip, deflate
14
      Content-Type:
15
      - application/json
16
      User-Agent:
17
      - Ruby
18
  response:
19
    status:
20
      code: 200
21
      message: OK
22
    headers:
23
      Date:
24
      - Fri, 29 Apr 2016 16:21:37 GMT
25
      Server:
26
      - Apache/2.4.6 (CentOS)
27
      Vary:
28
      - Accept-Encoding
29
      Content-Length:
30
      - '691'
31
      Content-Type:
32
      - application/json; charset=utf-8
33
    body:
34
      encoding: ASCII-8BIT
35
      string: '{"exception": null, "task_type": "pulp.server.tasks.repository.delete",
36
        "_href": "/pulp/api/v2/tasks/946633c7-164b-42a1-9f22-eaec7b786778/", "task_id":
37
        "946633c7-164b-42a1-9f22-eaec7b786778", "tags": ["pulp:repository:integration_test_id_distro",
38
        "pulp:action:delete"], "finish_time": "2016-04-29T16:21:36Z", "_ns": "task_status",
39
        "start_time": "2016-04-29T16:21:36Z", "traceback": null, "spawned_tasks":
40
        [], "progress_report": {}, "queue": "reserved_resource_worker-0@runcible.example.com.dq",
41
        "state": "finished", "worker_name": "reserved_resource_worker-0@runcible.example.com",
42
        "result": null, "error": null, "_id": {"$oid": "57238a10898f5c862fa3ea7d"},
43
        "id": "57238a10898f5c862fa3ea7d"}'
44
    http_version: 
45
  recorded_at: Fri, 29 Apr 2016 16:21:37 GMT
46
- request:
47
    method: get
48
    uri: https://admin:admin@obelix.example.com/pulp/api/v2/tasks/bb4c26cd-c8c2-42cb-830e-15b415a5244d/
49
    body:
50
      encoding: US-ASCII
51
      string: ''
52
    headers:
53
      Accept:
54
      - application/json
55
      Accept-Encoding:
56
      - gzip, deflate
57
      Content-Type:
58
      - application/json
59
      User-Agent:
60
      - Ruby
61
  response:
62
    status:
63
      code: 200
64
      message: OK
65
    headers:
66
      Date:
67
      - Wed, 01 Feb 2017 12:26:46 GMT
68
      Server:
69
      - Apache/2.4.6 (CentOS)
70
      Vary:
71
      - Accept-Encoding
72
      Content-Length:
73
      - '687'
74
      Connection:
75
      - close
76
      Content-Type:
77
      - application/json; charset=utf-8
78
    body:
79
      encoding: ASCII-8BIT
80
      string: '{"exception": null, "task_type": "pulp.server.tasks.repository.delete",
81
        "_href": "/pulp/api/v2/tasks/bb4c26cd-c8c2-42cb-830e-15b415a5244d/", "task_id":
82
        "bb4c26cd-c8c2-42cb-830e-15b415a5244d", "tags": ["pulp:repository:integration_test_id_distro",
83
        "pulp:action:delete"], "finish_time": "2017-02-01T12:26:45Z", "_ns": "task_status",
84
        "start_time": "2017-02-01T12:26:45Z", "traceback": null, "spawned_tasks":
85
        [], "progress_report": {}, "queue": "reserved_resource_worker-1@obelix.example.com.dq",
86
        "state": "finished", "worker_name": "reserved_resource_worker-1@obelix.example.com",
87
        "result": null, "error": null, "_id": {"$oid": "5891d4054b92d9e3004e81c1"},
88
        "id": "5891d4054b92d9e3004e81c1"}'
89
    http_version: 
90
  recorded_at: Wed, 01 Feb 2017 12:26:46 GMT
91
- request:
92
    method: get
93
    uri: https://admin:admin@obelix.example.com/pulp/api/v2/tasks/fe06bccb-f168-4152-b65b-173a4a8fd97f/
94
    body:
95
      encoding: US-ASCII
96
      string: ''
97
    headers:
98
      Accept:
99
      - application/json
100
      Accept-Encoding:
101
      - gzip, deflate
102
      Content-Type:
103
      - application/json
104
      User-Agent:
105
      - Ruby
106
  response:
107
    status:
108
      code: 200
109
      message: OK
110
    headers:
111
      Date:
112
      - Wed, 01 Feb 2017 12:28:31 GMT
113
      Server:
114
      - Apache/2.4.6 (CentOS)
115
      Vary:
116
      - Accept-Encoding
117
      Content-Length:
118
      - '687'
119
      Connection:
120
      - close
121
      Content-Type:
122
      - application/json; charset=utf-8
123
    body:
124
      encoding: ASCII-8BIT
125
      string: '{"exception": null, "task_type": "pulp.server.tasks.repository.delete",
126
        "_href": "/pulp/api/v2/tasks/fe06bccb-f168-4152-b65b-173a4a8fd97f/", "task_id":
127
        "fe06bccb-f168-4152-b65b-173a4a8fd97f", "tags": ["pulp:repository:integration_test_id_distro",
128
        "pulp:action:delete"], "finish_time": "2017-02-01T12:28:30Z", "_ns": "task_status",
129
        "start_time": "2017-02-01T12:28:30Z", "traceback": null, "spawned_tasks":
130
        [], "progress_report": {}, "queue": "reserved_resource_worker-1@obelix.example.com.dq",
131
        "state": "finished", "worker_name": "reserved_resource_worker-1@obelix.example.com",
132
        "result": null, "error": null, "_id": {"$oid": "5891d46e4b92d9e3004e81c9"},
133
        "id": "5891d46e4b92d9e3004e81c9"}'
134
    http_version: 
135
  recorded_at: Wed, 01 Feb 2017 12:28:31 GMT
136
- request:
137
    method: get
138
    uri: https://admin:admin@obelix.example.com/pulp/api/v2/tasks/44d05a49-53d1-430d-812a-82429747e4cb/
139
    body:
140
      encoding: US-ASCII
141
      string: ''
142
    headers:
143
      Accept:
144
      - application/json
145
      Accept-Encoding:
146
      - gzip, deflate
147
      Content-Type:
148
      - application/json
149
      User-Agent:
150
      - Ruby
151
  response:
152
    status:
153
      code: 200
154
      message: OK
155
    headers:
156
      Date:
157
      - Wed, 01 Feb 2017 12:29:00 GMT
158
      Server:
159
      - Apache/2.4.6 (CentOS)
160
      Vary:
161
      - Accept-Encoding
162
      Content-Length:
163
      - '687'
164
      Connection:
165
      - close
166
      Content-Type:
167
      - application/json; charset=utf-8
168
    body:
169
      encoding: ASCII-8BIT
170
      string: '{"exception": null, "task_type": "pulp.server.tasks.repository.delete",
171
        "_href": "/pulp/api/v2/tasks/44d05a49-53d1-430d-812a-82429747e4cb/", "task_id":
172
        "44d05a49-53d1-430d-812a-82429747e4cb", "tags": ["pulp:repository:integration_test_id_distro",
173
        "pulp:action:delete"], "finish_time": "2017-02-01T12:28:59Z", "_ns": "task_status",
174
        "start_time": "2017-02-01T12:28:59Z", "traceback": null, "spawned_tasks":
175
        [], "progress_report": {}, "queue": "reserved_resource_worker-1@obelix.example.com.dq",
176
        "state": "finished", "worker_name": "reserved_resource_worker-1@obelix.example.com",
177
        "result": null, "error": null, "_id": {"$oid": "5891d48b4b92d9e3004e81d5"},
178
        "id": "5891d48b4b92d9e3004e81d5"}'
179
    http_version: 
180
  recorded_at: Wed, 01 Feb 2017 12:29:00 GMT
181
- request:
4 182
    method: post
5
    uri: https://admin:HeQSzZgm6ZEKG8aHrJEGW7aGD85Wrj57@runcible.example.com/pulp/api/v2/repositories/
183
    uri: https://admin:admin@obelix.example.com/pulp/api/v2/repositories/
6 184
    body:
7 185
      encoding: UTF-8
8 186
      string: '{"id":"integration_test_id_distro","distributors":[{"distributor_type_id":"ostree_web_distributor","distributor_config":{"ostree_publish_directory":"/path","relative_path":"/relative_path"},"auto_publish":false,"distributor_id":"123"}]}'
......
23 201
      message: CREATED
24 202
    headers:
25 203
      Date:
26
      - Fri, 29 Apr 2016 16:21:36 GMT
204
      - Wed, 01 Feb 2017 12:30:52 GMT
27 205
      Server:
28 206
      - Apache/2.4.6 (CentOS)
29 207
      Content-Length:
30 208
      - '340'
31 209
      Location:
32
      - https://runcible.example.com/pulp/api/v2/repositories/integration_test_id_distro/
210
      - https://obelix.example.com/pulp/api/v2/repositories/integration_test_id_distro/
211
      Connection:
212
      - close
33 213
      Content-Type:
34 214
      - application/json; charset=utf-8
35 215
    body:
36 216
      encoding: UTF-8
37 217
      string: '{"scratchpad": {}, "display_name": "integration_test_id_distro", "description":
38 218
        null, "last_unit_added": null, "notes": {}, "last_unit_removed": null, "content_unit_counts":
39
        {}, "_ns": "repos", "_id": {"$oid": "57238a10aca4886d96d97ebc"}, "id": "integration_test_id_distro",
219
        {}, "_ns": "repos", "_id": {"$oid": "5891d4fc70be6f18c88f24be"}, "id": "integration_test_id_distro",
40 220
        "_href": "/pulp/api/v2/repositories/integration_test_id_distro/"}'
41 221
    http_version: 
42
  recorded_at: Fri, 29 Apr 2016 16:21:36 GMT
222
  recorded_at: Wed, 01 Feb 2017 12:30:52 GMT
43 223
- request:
44 224
    method: get
45
    uri: https://admin:HeQSzZgm6ZEKG8aHrJEGW7aGD85Wrj57@runcible.example.com/pulp/api/v2/repositories/integration_test_id_distro/?details=true
225
    uri: https://admin:admin@obelix.example.com/pulp/api/v2/repositories/integration_test_id_distro/?details=true
46 226
    body:
47 227
      encoding: US-ASCII
48 228
      string: ''
......
61 241
      message: OK
62 242
    headers:
63 243
      Date:
64
      - Fri, 29 Apr 2016 16:21:36 GMT
244
      - Wed, 01 Feb 2017 12:30:52 GMT
65 245
      Server:
66 246
      - Apache/2.4.6 (CentOS)
67 247
      Vary:
68 248
      - Accept-Encoding
69 249
      Content-Length:
70
      - '839'
250
      - '907'
251
      Connection:
252
      - close
71 253
      Content-Type:
72 254
      - application/json; charset=utf-8
73 255
    body:
74 256
      encoding: ASCII-8BIT
75 257
      string: '{"scratchpad": {}, "display_name": "integration_test_id_distro", "description":
76
        null, "distributors": [{"repo_id": "integration_test_id_distro", "_href":
77
        "/pulp/api/v2/repositories/integration_test_id_distro/distributors/123/",
78
        "_ns": "repo_distributors", "last_publish": null, "distributor_type_id": "ostree_web_distributor",
79
        "auto_publish": false, "scratchpad": {}, "_id": {"$oid": "57238a10aca4886d96d97ebd"},
80
        "config": {"ostree_publish_directory": "/path", "relative_path": "/relative_path"},
81
        "id": "123"}], "last_unit_added": null, "notes": {}, "last_unit_removed":
82
        null, "content_unit_counts": {}, "_ns": "repos", "importers": [], "locally_stored_units":
83
        0, "_id": {"$oid": "57238a10aca4886d96d97ebc"}, "total_repository_units":
84
        0, "id": "integration_test_id_distro", "_href": "/pulp/api/v2/repositories/integration_test_id_distro/"}'
258
        null, "distributors": [{"repo_id": "integration_test_id_distro", "last_updated":
259
        "2017-02-01T12:30:52Z", "_href": "/pulp/api/v2/repositories/integration_test_id_distro/distributors/123/",
260
        "last_override_config": {}, "last_publish": null, "distributor_type_id": "ostree_web_distributor",
261
        "auto_publish": false, "scratchpad": {}, "_ns": "repo_distributors", "_id":
262
        {"$oid": "5891d4fc70be6f18c88f24bf"}, "config": {"ostree_publish_directory":
263
        "/path", "relative_path": "/relative_path"}, "id": "123"}], "last_unit_added":
264
        null, "notes": {}, "last_unit_removed": null, "content_unit_counts": {}, "_ns":
265
        "repos", "importers": [], "locally_stored_units": 0, "_id": {"$oid": "5891d4fc70be6f18c88f24be"},
266
        "total_repository_units": 0, "id": "integration_test_id_distro", "_href":
267
        "/pulp/api/v2/repositories/integration_test_id_distro/"}'
85 268
    http_version: 
86
  recorded_at: Fri, 29 Apr 2016 16:21:36 GMT
269
  recorded_at: Wed, 01 Feb 2017 12:30:52 GMT
87 270
- request:
88 271
    method: delete
89
    uri: https://admin:HeQSzZgm6ZEKG8aHrJEGW7aGD85Wrj57@runcible.example.com/pulp/api/v2/repositories/integration_test_id_distro/
272
    uri: https://admin:admin@obelix.example.com/pulp/api/v2/repositories/integration_test_id_distro/
90 273
    body:
91 274
      encoding: US-ASCII
92 275
      string: ''
......
105 288
      message: ACCEPTED
106 289
    headers:
107 290
      Date:
108
      - Fri, 29 Apr 2016 16:21:36 GMT
291
      - Wed, 01 Feb 2017 12:30:52 GMT
109 292
      Server:
110 293
      - Apache/2.4.6 (CentOS)
111 294
      Content-Length:
112 295
      - '172'
296
      Connection:
297
      - close
113 298
      Content-Type:
114 299
      - application/json; charset=utf-8
115 300
    body:
116 301
      encoding: UTF-8
117
      string: '{"spawned_tasks": [{"_href": "/pulp/api/v2/tasks/946633c7-164b-42a1-9f22-eaec7b786778/",
118
        "task_id": "946633c7-164b-42a1-9f22-eaec7b786778"}], "result": null, "error":
302
      string: '{"spawned_tasks": [{"_href": "/pulp/api/v2/tasks/2b1c7820-9365-4fec-b2cd-0ff5295bb1c0/",
303
        "task_id": "2b1c7820-9365-4fec-b2cd-0ff5295bb1c0"}], "result": null, "error":
119 304
        null}'
120 305
    http_version: 
121
  recorded_at: Fri, 29 Apr 2016 16:21:36 GMT
306
  recorded_at: Wed, 01 Feb 2017 12:30:52 GMT
122 307
- request:
123 308
    method: get
124
    uri: https://admin:HeQSzZgm6ZEKG8aHrJEGW7aGD85Wrj57@runcible.example.com/pulp/api/v2/tasks/946633c7-164b-42a1-9f22-eaec7b786778/
309
    uri: https://admin:admin@obelix.example.com/pulp/api/v2/tasks/2b1c7820-9365-4fec-b2cd-0ff5295bb1c0/
125 310
    body:
126 311
      encoding: US-ASCII
127 312
      string: ''
......
140 325
      message: OK
141 326
    headers:
142 327
      Date:
143
      - Fri, 29 Apr 2016 16:21:37 GMT
328
      - Wed, 01 Feb 2017 12:30:52 GMT
144 329
      Server:
145 330
      - Apache/2.4.6 (CentOS)
146 331
      Vary:
147 332
      - Accept-Encoding
148 333
      Content-Length:
149
      - '691'
334
      - '687'
335
      Connection:
336
      - close
150 337
      Content-Type:
151 338
      - application/json; charset=utf-8
152 339
    body:
153 340
      encoding: ASCII-8BIT
154 341
      string: '{"exception": null, "task_type": "pulp.server.tasks.repository.delete",
155
        "_href": "/pulp/api/v2/tasks/946633c7-164b-42a1-9f22-eaec7b786778/", "task_id":
156
        "946633c7-164b-42a1-9f22-eaec7b786778", "tags": ["pulp:repository:integration_test_id_distro",
157
        "pulp:action:delete"], "finish_time": "2016-04-29T16:21:36Z", "_ns": "task_status",
158
        "start_time": "2016-04-29T16:21:36Z", "traceback": null, "spawned_tasks":
159
        [], "progress_report": {}, "queue": "reserved_resource_worker-0@runcible.example.com.dq",
160
        "state": "finished", "worker_name": "reserved_resource_worker-0@runcible.example.com",
161
        "result": null, "error": null, "_id": {"$oid": "57238a10898f5c862fa3ea7d"},
162
        "id": "57238a10898f5c862fa3ea7d"}'
342
        "_href": "/pulp/api/v2/tasks/2b1c7820-9365-4fec-b2cd-0ff5295bb1c0/", "task_id":
343
        "2b1c7820-9365-4fec-b2cd-0ff5295bb1c0", "tags": ["pulp:repository:integration_test_id_distro",
344
        "pulp:action:delete"], "finish_time": "2017-02-01T12:30:52Z", "_ns": "task_status",
345
        "start_time": "2017-02-01T12:30:52Z", "traceback": null, "spawned_tasks":
346
        [], "progress_report": {}, "queue": "reserved_resource_worker-1@obelix.example.com.dq",
347
        "state": "finished", "worker_name": "reserved_resource_worker-1@obelix.example.com",
348
        "result": null, "error": null, "_id": {"$oid": "5891d4fc4b92d9e3004e81de"},
349
        "id": "5891d4fc4b92d9e3004e81de"}'
163 350
    http_version: 
164
  recorded_at: Fri, 29 Apr 2016 16:21:37 GMT
351
  recorded_at: Wed, 01 Feb 2017 12:30:52 GMT
165 352
- request:
166 353
    method: delete
167
    uri: https://admin:HeQSzZgm6ZEKG8aHrJEGW7aGD85Wrj57@runcible.example.com/pulp/api/v2/repositories/integration_test_id/
354
    uri: https://admin:admin@obelix.example.com/pulp/api/v2/repositories/integration_test_id/
168 355
    body:
169 356
      encoding: US-ASCII
170 357
      string: ''
......
183 370
      message: NOT FOUND
184 371
    headers:
185 372
      Date:
186
      - Fri, 29 Apr 2016 16:21:37 GMT
373
      - Wed, 01 Feb 2017 12:30:52 GMT
187 374
      Server:
188 375
      - Apache/2.4.6 (CentOS)
189
      Content-Encoding:
190
      - utf-8
191 376
      Content-Length:
192 377
      - '454'
378
      Connection:
379
      - close
193 380
      Content-Type:
194 381
      - application/json; charset=utf-8
195 382
    body:
......
200 387
        "integration_test_id"}}, "description": "Missing resource(s): repository=integration_test_id",
201 388
        "sub_errors": []}, "traceback": null, "resources": {"repository": "integration_test_id"}}'
202 389
    http_version: 
203
  recorded_at: Fri, 29 Apr 2016 16:21:37 GMT
204
recorded_with: VCR 3.0.1
390
  recorded_at: Wed, 01 Feb 2017 12:30:52 GMT
391
recorded_with: VCR 3.0.3
test/fixtures/vcr_cassettes/extensions/ostree_repository_create/create_with_distributors.yml
1 1
---
2 2
http_interactions:
3 3
- request:
4
    method: get
5
    uri: https://admin:HeQSzZgm6ZEKG8aHrJEGW7aGD85Wrj57@runcible.example.com/pulp/api/v2/tasks/6bf88f13-ec96-4bbd-a9d1-350aaddf7217/
6
    body:
7
      encoding: US-ASCII
8
      string: ''
9
    headers:
10
      Accept:
11
      - application/json
12
      Accept-Encoding:
13
      - gzip, deflate
14
      Content-Type:
15
      - application/json
16
      User-Agent:
17
      - Ruby
18
  response:
19
    status:
... This diff was truncated because it exceeds the maximum size that can be displayed.

Also available in: Unified diff