Skip to content

Commit

Permalink
Remove pulp-smash from test_pull_content
Browse files Browse the repository at this point in the history
  • Loading branch information
gerrod3 committed Feb 10, 2025
1 parent cea2e35 commit 3f2d394
Show file tree
Hide file tree
Showing 3 changed files with 148 additions and 312 deletions.
9 changes: 9 additions & 0 deletions pulp_container/app/serializers.py
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,15 @@ class BlobSerializer(SingleArtifactContentSerializer):

digest = serializers.CharField(help_text="sha256 of the Blob file")

def __init__(self, *args, **kwargs):
"""Fix for bindings to allow for on-demand blobs."""
# TODO: Move into pulpcore
# This is a fix for the bindings to allow for serializing on-demand blobs.
# There is no create API for blobs, so this doesn't affect the API.
super().__init__(*args, **kwargs)
if "artifact" in self.fields:
self.fields["artifact"].allow_null = True

class Meta:
fields = SingleArtifactContentSerializer.Meta.fields + ("digest",)
model = models.Blob
Expand Down
Loading

0 comments on commit 3f2d394

Please sign in to comment.