Skip to content

Commit

Permalink
Using CI for test
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrewgdewar committed Dec 13, 2024
1 parent 1af7b8a commit c509dfd
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
4 changes: 4 additions & 0 deletions pkg/handler/repositories.go
Original file line number Diff line number Diff line change
Expand Up @@ -612,6 +612,10 @@ func (rh *RepositoryHandler) createUpload(c echo.Context) error {

existingUUID, completedChunks, err := ph.DaoRegistry.Uploads.GetExistingUploadIDAndCompletedChunks(c.Request().Context(), orgId, req.Sha256, req.ChunkSize)

if err != nil {
return err
}

if existingUUID != "" {
resp := &api.UploadResponse{
UploadUuid: &existingUUID,
Expand Down
8 changes: 6 additions & 2 deletions test/integration/pulp_upload_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,9 @@ func (s *UploadSuite) CreateUploadRequestInternal(size int64) zest.UploadRespons
t := s.T()
// Create an upload
createRequest := api.CreateUploadRequest{
Size: size,
ChunkSize: 16000,
Sha256: "UploadSha256" + fmt.Sprint(size),
Size: size,
}
var uploadResponse zest.UploadResponse

Expand Down Expand Up @@ -342,7 +344,9 @@ func (s *UploadSuite) UploadChunksPublic(fileContent []byte, uploadResponse api.
func (s *UploadSuite) CreateUploadRequestPublic(size int64) api.UploadResponse {
t := s.T()
createRequest := api.CreateUploadRequest{
Size: size,
ChunkSize: 16000,
Sha256: "UploadSha256" + fmt.Sprint(size),
Size: size,
}
var uploadResponse api.UploadResponse

Expand Down

0 comments on commit c509dfd

Please sign in to comment.