Skip to content

Pulp_file content for repository version no. 0 should be empty after syncing #415

@lubosmj

Description

@lubosmj

Summary

After syncing a clean pulp_file repository, the content in repository version no. 0 should be always empty.

Steps to reproduce

pulp file repository create --name foo
pulp file remote create --name foo --url https://fixtures.pulpproject.org/file/PULP_MANIFEST
pulp file repository sync --name foo --remote foo
(pulp) [vagrant@pulp3-source-fedora34 devel]$ pulp file repository content list --repository foo --version 0
[
  {
    "pulp_href": "/pulp/api/v3/content/file/files/9a4bac54-0fca-4a0c-a460-1ad4f0405ef5/",
    "pulp_created": "2021-11-05T09:53:30.106659Z",
    "artifact": "/pulp/api/v3/artifacts/b46dc9dc-5fea-41a2-9367-e304f6879ea9/",
    "relative_path": "3.iso",
    "md5": null,
    "sha1": null,
    "sha224": "f8cb654de26f8a1c236f6c66722f50785a1cca295aaff3dbe41b31f6",
    "sha256": "f18ab30fc5c52fc5206d9f87ee8b5f4adcb1f09ee452920e6e2ee2ba42600651",
    "sha384": "76e250e95cce15916a10d73a92886de141e320eb5d420d7caf8493db366b67a2c86359f50f98a590213d2a8e919670b6",
    "sha512": "fe80cc520088100990b90abebf5b637a9febfc0033dc69aeeded77d0d099be9ff1495aebaa36517c946dfa79beab6141764202bfae10f66c702e16d185abb467"
  },
  {
    "pulp_href": "/pulp/api/v3/content/file/files/3d2c4b66-1a76-48fe-badb-a276e41c03ec/",
    "pulp_created": "2021-11-05T09:53:30.105093Z",
    "artifact": "/pulp/api/v3/artifacts/e2d09e46-f792-445e-a791-5d95d04dcb99/",
    "relative_path": "2.iso",
    "md5": null,
    "sha1": null,
    "sha224": "9574a87c33657b3deb829b55d3e72859ea5ee752b1f10736a27ce9f4",
    "sha256": "327ac83861f3e3fcaa115ddd7f91f8d796f55bb1013ea1bd1cc377e28e3ee9cf",
    "sha384": "c7a067d0222966f1a3f9e157b33025826d74fcc47e89db8c3f9ed79ec6aa28632d61e5a5bb4585735c11afdf961af474",
    "sha512": "ab10f6e0f189365b9bda9a9e06f4588f420e57112c40f455e65c15603adf068388a8c603abf0740f9f5f8efc2734e4462ae48956f35b212a2b6717d671d89ff6"
  },
  {
    "pulp_href": "/pulp/api/v3/content/file/files/fcad7395-a4bc-48fd-8042-e14e504ad889/",
    "pulp_created": "2021-11-05T09:53:30.102662Z",
    "artifact": "/pulp/api/v3/artifacts/f43b5de2-82da-4542-8e80-01f137df4d06/",
    "relative_path": "1.iso",
    "md5": null,
    "sha1": null,
    "sha224": "f3ca9c7a7018adad7e49c403c3043379fafc2244c2df8a32830d6b2b",
    "sha256": "cbd074de731a7a28fc3257769c417dc2f579ac7a9e072423305033a2bed79033",
    "sha384": "93120442e279509fa41c30722922a3c04b5a40acbd893672dfc2d3987299016000f799432b3361b8baefaf9a0cfaf0a9",
    "sha512": "d17d393e59fb439176e61f3bae105e423196817da7da8efbba3e6d304359f50bb212f98c5bf8e39fd7e6ffa50b59cafcf11a43100aed4366c997908dc95e20c0"
  }
]

Expected behaviour

(pulp) [vagrant@pulp3-source-fedora34 devel]$ pulp file repository content list --repository foo --version 0
[]

Metadata

Metadata

Assignees

Labels

bugSomething isn't working (template-set)

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions