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:

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

Also available in: Unified diff