Project

General

Profile

« Previous | Next » 

Revision 0889fa03

Added by Justin Sherrill over 8 years ago

fixes #11773 - allow false values for :include_repos

View differences:

test/fixtures/vcr_cassettes/extensions/rpm_copy/copy_with_filters.yml
---
http_interactions:
- request:
method: get
uri: https://admin:admin@box.devel.com/pulp/api/v2/tasks/9442cdeb-6d13-452d-b7d7-bcc15fc8bb8a/
body:
encoding: US-ASCII
string: ''
headers:
Accept:
- application/json
Accept-Encoding:
- gzip, deflate
Content-Type:
- application/json
User-Agent:
- Ruby
response:
status:
code: 200
message: OK
headers:
Date:
- Wed, 15 Oct 2014 14:25:51 GMT
Server:
- Apache/2.2.15 (Red Hat)
Vary:
- Accept-Encoding
Content-Length:
- '706'
Connection:
- close
Content-Type:
- application/json
body:
encoding: ASCII-8BIT
string: '{"exception": null, "task_type": "pulp.server.managers.repo.unit_association.associate_from_repo",
"_href": "/pulp/api/v2/tasks/9442cdeb-6d13-452d-b7d7-bcc15fc8bb8a/", "task_id":
"9442cdeb-6d13-452d-b7d7-bcc15fc8bb8a", "tags": ["pulp:repository:integration_test_id_clone",
"pulp:repository:integration_test_id", "pulp:action:associate"], "finish_time":
"2014-10-15T14:25:51Z", "_ns": "task_status", "start_time": "2014-10-15T14:25:51Z",
"traceback": null, "spawned_tasks": [], "progress_report": {}, "queue": "reserved_resource_worker-0@box.devel.com.dq",
"state": "finished", "result": {"units_successful": []}, "error": null, "_id":
{"$oid": "543e83ef505c6f3b4b509b85"}, "id": "543e83ef47078708d9ecb5d6"}'
http_version:
recorded_at: Wed, 15 Oct 2014 14:25:51 GMT
- request:
method: get
uri: https://admin:eYo5Dh2rR6jQayB4vFLEpqUwMcXosuXg@kt1.local/pulp/api/v2/tasks/c8cefe1c-46db-4db9-b370-ed48391ff02b/
body:
encoding: US-ASCII
string: ''
headers:
Accept:
- application/json
Accept-Encoding:
- gzip, deflate
Content-Type:
- application/json
User-Agent:
- Ruby
response:
status:
code: 200
message: OK
headers:
Date:
- Sun, 01 Feb 2015 18:28:54 GMT
Server:
- Apache/2.2.15 (Red Hat)
Vary:
- Accept-Encoding
Content-Length:
- '757'
Content-Type:
- application/json
body:
encoding: ASCII-8BIT
string: '{"exception": null, "task_type": "pulp.server.managers.repo.unit_association.associate_from_repo",
"_href": "/pulp/api/v2/tasks/c8cefe1c-46db-4db9-b370-ed48391ff02b/", "task_id":
"c8cefe1c-46db-4db9-b370-ed48391ff02b", "tags": ["pulp:repository:integration_test_id_clone",
"pulp:repository:integration_test_id", "pulp:action:associate"], "finish_time":
"2015-02-01T18:28:53Z", "_ns": "task_status", "start_time": "2015-02-01T18:28:53Z",
"traceback": null, "spawned_tasks": [], "progress_report": {}, "queue": "reserved_resource_worker-0@kt1.local.dq",
"state": "finished", "worker_name": "reserved_resource_worker-0@kt1.local",
"result": {"units_successful": []}, "error": null, "_id": {"$oid": "54ce7065962f40ae3501a2b4"},
"id": "54ce7065b2ff981dcc43fe79"}'
http_version:
recorded_at: Sun, 01 Feb 2015 18:28:54 GMT
- request:
method: get
uri: https://admin:eYo5Dh2rR6jQayB4vFLEpqUwMcXosuXg@kt1.local/pulp/api/v2/tasks/62ba2dd7-398e-473d-8e73-23a0fa2e89c1/
body:
encoding: US-ASCII
string: ''
headers:
Accept:
- application/json
Accept-Encoding:
- gzip, deflate
Content-Type:
- application/json
User-Agent:
- Ruby
response:
status:
code: 200
message: OK
headers:
Date:
- Mon, 02 Feb 2015 06:40:07 GMT
Server:
- Apache/2.2.15 (Red Hat)
Vary:
- Accept-Encoding
Content-Length:
- '757'
Content-Type:
- application/json
body:
encoding: ASCII-8BIT
string: '{"exception": null, "task_type": "pulp.server.managers.repo.unit_association.associate_from_repo",
"_href": "/pulp/api/v2/tasks/62ba2dd7-398e-473d-8e73-23a0fa2e89c1/", "task_id":
"62ba2dd7-398e-473d-8e73-23a0fa2e89c1", "tags": ["pulp:repository:integration_test_id_clone",
"pulp:repository:integration_test_id", "pulp:action:associate"], "finish_time":
"2015-02-02T06:40:07Z", "_ns": "task_status", "start_time": "2015-02-02T06:40:07Z",
"traceback": null, "spawned_tasks": [], "progress_report": {}, "queue": "reserved_resource_worker-0@kt1.local.dq",
"state": "finished", "worker_name": "reserved_resource_worker-0@kt1.local",
"result": {"units_successful": []}, "error": null, "_id": {"$oid": "54cf1bc7962f40ae3501a3b8"},
"id": "54cf1bc7b2ff981dcc44047f"}'
http_version:
recorded_at: Mon, 02 Feb 2015 06:40:07 GMT
- request:
method: get
uri: https://admin:eYo5Dh2rR6jQayB4vFLEpqUwMcXosuXg@kt1.local/pulp/api/v2/tasks/0688c405-b053-47e3-aad9-9f5a541ae64e/
body:
encoding: US-ASCII
string: ''
headers:
Accept:
- application/json
Accept-Encoding:
- gzip, deflate
Content-Type:
- application/json
User-Agent:
- Ruby
response:
status:
code: 200
message: OK
headers:
Date:
- Tue, 03 Feb 2015 20:24:28 GMT
Server:
- Apache/2.2.15 (Red Hat)
Vary:
- Accept-Encoding
Content-Length:
- '757'
Connection:
- close
Content-Type:
- application/json
body:
encoding: ASCII-8BIT
string: '{"exception": null, "task_type": "pulp.server.managers.repo.unit_association.associate_from_repo",
"_href": "/pulp/api/v2/tasks/0688c405-b053-47e3-aad9-9f5a541ae64e/", "task_id":
"0688c405-b053-47e3-aad9-9f5a541ae64e", "tags": ["pulp:repository:integration_test_id_clone",
"pulp:repository:integration_test_id", "pulp:action:associate"], "finish_time":
"2015-02-03T20:24:28Z", "_ns": "task_status", "start_time": "2015-02-03T20:24:28Z",
"traceback": null, "spawned_tasks": [], "progress_report": {}, "queue": "reserved_resource_worker-0@kt1.local.dq",
"state": "finished", "worker_name": "reserved_resource_worker-0@kt1.local",
"result": {"units_successful": []}, "error": null, "_id": {"$oid": "54d12e7cdb087ce12b11fd16"},
"id": "54d12e7cb2ff980faeab9f3a"}'
http_version:
recorded_at: Tue, 03 Feb 2015 20:24:28 GMT
- request:
method: get
uri: https://admin:7HLGDTSxNnAEEtqKgjecYCvftjzNmoRE@katello-kant.example.com/pulp/api/v2/tasks/87c8cc85-0152-460c-a426-a3750ea77e4d/
body:
encoding: US-ASCII
string: ''
headers:
Accept:
- application/json
Accept-Encoding:
- gzip, deflate
Content-Type:
- application/json
User-Agent:
- Ruby
response:
status:
code: 200
message: OK
headers:
Date:
- Tue, 23 Jun 2015 22:38:13 GMT
Server:
- Apache/2.4.6 (CentOS)
Content-Length:
- '787'
Connection:
- close
Content-Type:
- application/json
body:
encoding: UTF-8
string: '{"exception": null, "task_type": "pulp.server.managers.repo.unit_association.associate_from_repo",
"_href": "/pulp/api/v2/tasks/87c8cc85-0152-460c-a426-a3750ea77e4d/", "task_id":
"87c8cc85-0152-460c-a426-a3750ea77e4d", "tags": ["pulp:repository:integration_test_id_clone",
"pulp:repository:integration_test_id", "pulp:action:associate"], "finish_time":
"2015-06-23T22:38:13Z", "_ns": "task_status", "start_time": "2015-06-23T22:38:13Z",
"traceback": null, "spawned_tasks": [], "progress_report": {}, "queue": "reserved_resource_worker-0@katello-kant.example.com.dq",
"state": "finished", "worker_name": "reserved_resource_worker-0@katello-kant.example.com",
"result": {"units_successful": []}, "error": null, "_id": {"$oid": "5589dfd52812e3d33cf1002d"},
"id": "5589dfd52812e3d33cf1002d"}'
http_version:
recorded_at: Tue, 23 Jun 2015 22:38:13 GMT
- request:
method: post
uri: https://admin:7HLGDTSxNnAEEtqKgjecYCvftjzNmoRE@katello-kant.example.com/pulp/api/v2/repositories/integration_test_id_clone/actions/associate/
uri: https://admin:BR3uiXAURH8xrhnyd4e2aiFfgqPzzj69@troy.usersys.redhat.com/pulp/api/v2/repositories/integration_test_id_clone/actions/associate/
body:
encoding: UTF-8
string: '{"source_repo_id":"integration_test_id","criteria":{"type_ids":["rpm"],"filters":{"unit":{"$and":[{"name":{"$regex":"p.*"}},{"version":{"$gt":"1.0"}}]}}}}'
encoding: US-ASCII
string: ! '{"source_repo_id":"integration_test_id","criteria":{"type_ids":["rpm"],"filters":{"unit":{"$and":[{"name":{"$regex":"p.*"}},{"version":{"$gt":"1.0"}}]}}}}'
headers:
Accept:
- application/json
......
response:
status:
code: 202
message: ACCEPTED
message: Accepted
headers:
Date:
- Tue, 23 Jun 2015 22:45:39 GMT
- Fri, 11 Sep 2015 17:39:05 GMT
Server:
- Apache/2.4.6 (CentOS)
Content-Encoding:
......
Content-Type:
- application/json
body:
encoding: UTF-8
string: '{"spawned_tasks": [{"_href": "/pulp/api/v2/tasks/d13d3a8e-93f1-439a-b879-627f6773fb32/",
"task_id": "d13d3a8e-93f1-439a-b879-627f6773fb32"}], "result": null, "error":
encoding: US-ASCII
string: ! '{"spawned_tasks": [{"_href": "/pulp/api/v2/tasks/2151606c-2a8e-4c97-b272-d15437691fde/",
"task_id": "2151606c-2a8e-4c97-b272-d15437691fde"}], "result": null, "error":
null}'
http_version:
recorded_at: Tue, 23 Jun 2015 22:45:39 GMT
recorded_at: Fri, 11 Sep 2015 17:39:05 GMT
- request:
method: get
uri: https://admin:7HLGDTSxNnAEEtqKgjecYCvftjzNmoRE@katello-kant.example.com/pulp/api/v2/tasks/d13d3a8e-93f1-439a-b879-627f6773fb32/
uri: https://admin:BR3uiXAURH8xrhnyd4e2aiFfgqPzzj69@troy.usersys.redhat.com/pulp/api/v2/tasks/2151606c-2a8e-4c97-b272-d15437691fde/
body:
encoding: US-ASCII
string: ''
......
message: OK
headers:
Date:
- Tue, 23 Jun 2015 22:45:39 GMT
- Fri, 11 Sep 2015 17:39:06 GMT
Server:
- Apache/2.4.6 (CentOS)
Content-Length:
- '787'
- '785'
Connection:
- close
Content-Type:
- application/json
body:
encoding: UTF-8
string: '{"exception": null, "task_type": "pulp.server.managers.repo.unit_association.associate_from_repo",
"_href": "/pulp/api/v2/tasks/d13d3a8e-93f1-439a-b879-627f6773fb32/", "task_id":
"d13d3a8e-93f1-439a-b879-627f6773fb32", "tags": ["pulp:repository:integration_test_id_clone",
encoding: US-ASCII
string: ! '{"exception": null, "task_type": "pulp.server.managers.repo.unit_association.associate_from_repo",
"_href": "/pulp/api/v2/tasks/2151606c-2a8e-4c97-b272-d15437691fde/", "task_id":
"2151606c-2a8e-4c97-b272-d15437691fde", "tags": ["pulp:repository:integration_test_id_clone",
"pulp:repository:integration_test_id", "pulp:action:associate"], "finish_time":
"2015-06-23T22:45:39Z", "_ns": "task_status", "start_time": "2015-06-23T22:45:39Z",
"traceback": null, "spawned_tasks": [], "progress_report": {}, "queue": "reserved_resource_worker-0@katello-kant.example.com.dq",
"state": "finished", "worker_name": "reserved_resource_worker-0@katello-kant.example.com",
"result": {"units_successful": []}, "error": null, "_id": {"$oid": "5589e1932812e3d33cf1040f"},
"id": "5589e1932812e3d33cf1040f"}'
"2015-09-11T17:39:05Z", "_ns": "task_status", "start_time": "2015-09-11T17:39:05Z",
"traceback": null, "spawned_tasks": [], "progress_report": {}, "queue": "reserved_resource_worker-0@troy.usersys.redhat.com.dq",
"state": "finished", "worker_name": "reserved_resource_worker-0@troy.usersys.redhat.com",
"result": {"units_successful": []}, "error": null, "_id": {"$oid": "55f311b9b10ecb3a07a0d02e"},
"id": "55f311b92601393080e4e4aa"}'
http_version:
recorded_at: Tue, 23 Jun 2015 22:45:39 GMT
recorded_at: Fri, 11 Sep 2015 17:39:06 GMT
recorded_with: VCR 2.9.3

Also available in: Unified diff