You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: service_test.go
    path of file: ./repos/flyte/flyteadmin/dataproxy
    
    the code of the file until where you have to start completion: package dataproxy

import (
	"bytes"
	"context"
	"crypto/md5" // #nosec
	"net/url"
	"testing"
	"time"

	"github.com/golang/protobuf/proto"
	"github.com/stretchr/testify/assert"
	"google.golang.org/protobuf/types/known/durationpb"

	commonMocks "github.com/flyteorg/flyte/flyteadmin/pkg/common/mocks"
	"git
    
func TestCreateUploadLocationMore(t *testing.T) {
	dataStore, err := storage.NewDataStore(&storage.Config{Type: storage.TypeMemory}, promutils.NewTestScope())
	// Overwrite the CreateSignedURL function to return a fixed value
	uploadable := &UploadableMemProtobufStore{
		dataStore.ComposedProtobufStore,
	}

	ds := storage.DataStore{
		ComposedProtobufStore: uploadable,
		ReferenceConstructor:  dataStore.ReferenceConstructor,
	}

	assert.NoError(t, err)
	nodeExecutionManager := &mocks.MockNodeExecutionManager{}
	taskExecutionManager := &mocks.MockTaskExecutionManager{}
	s, err := NewService(config.DataProxyConfig{}, nodeExecutionManager, &ds, taskExecutionManager)
	assert.NoError(t, err)

	exists, err := createStorageLocation(context.TODO(), s.dataStore, s.cfg.Upload,
		"flytesnacks", "development", "known_parent_folder", "myfile.txt")
	assert.NoError(t, err)
	err = dataStore.WriteRaw(context.TODO(), exists, 5, storage.Options{}, bytes.NewReader([]byte("hello")))
	assert.NoError(t, err)

	t.Run("no need for content md5", func(t *testing.T) {
		_, err = s.CreateUploadLocation(context.Background(), &service.CreateUploadLocationRequest{
			Project:      "flytesnacks",
			Domain:       "development",
			Filename:     "myotherfile.txt",
			ContentMd5:   nil,
			FilenameRoot: "known_parent_folder",
		})
		assert.NoError(t, err)
	})

	t.Run("already exists errors", func(t *testing.T) {
		_, err = s.CreateUploadLocation(context.Background(), &service.CreateUploadLocationRequest{
			Project:      "flytesnacks",
			Domain:       "development",
			Filename:     "myfile.txt",
			ContentMd5:   nil,
			FilenameRoot: "known_parent_folder",
		})
		assert.ErrorContainsf(t, err, "already exists", "expected error to contain already exists")
	})

	t.Run("already exists but matching content md5", func(t *testing.T) {
		m := md5.Sum([]byte("hello")) // #nosec
		resp, err := s.CreateUploadLocation(context.Background(), &service.CreateUploadLocationRequest{
			Project:      "flytesnacks",
			Domain:       "development",
			Filename:     "myfile.txt",
			ContentMd5:   m[:],
			FilenameRoot: "known_parent_folder",
		})
		assert.NoError(t, err)
		assert.Equal(t, "/flytesnacks/development/known_parent_folder/myfile.txt", resp.GetNativeUrl())
	})
}