Skip to content

Commit

Permalink
Merge branch 'dev' of github.com:isd-sgcu/rpkm67-store into dev
Browse files Browse the repository at this point in the history
  • Loading branch information
bookpanda committed Jul 16, 2024
2 parents f803a68 + 1f204b1 commit 4f7336a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions internal/object/object.repository_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ func (t *ObjectRepositoryTest) TestCreateObjectSuccess() {
url, key, err := repo.Upload([]byte{}, "mock-bucket", "mock-key")
t.Nil(err)
t.Equal("mock-key", key)
t.Equal(repo.GetURL("mock-bucket", "mock-key"), url)
t.Equal(repo.GetURL("mock-key"), url)
}

func (t *ObjectRepositoryTest) TestUploadSuccess() {
Expand All @@ -57,7 +57,7 @@ func (t *ObjectRepositoryTest) TestUploadSuccess() {
url, key, err := repo.Upload([]byte{}, "bucket", "object")
t.Nil(err)
t.Equal("object", key)
t.Equal(repo.GetURL("bucket", "object"), url)
t.Equal(repo.GetURL("object"), url)
}

func (t *ObjectRepositoryTest) TestUploadError() {
Expand Down Expand Up @@ -101,7 +101,7 @@ func (t *ObjectRepositoryTest) TestGetSuccess() {

url, err := repo.Get("bucket", "object")
t.Nil(err)
t.Equal(repo.GetURL("bucket", "object"), url)
t.Equal(repo.GetURL("object"), url)
}

func (t *ObjectRepositoryTest) TestGetError() {
Expand Down Expand Up @@ -130,6 +130,6 @@ func (t *ObjectRepositoryTest) TestGetStatusNotOK() {

func (t *ObjectRepositoryTest) TestGetURL() {
repo := object.NewRepository(t.conf, nil, nil)
url := repo.GetURL("bucket", "object")
url := repo.GetURL("object")
t.Equal(t.mockEndpoint, url)
}
8 changes: 4 additions & 4 deletions mocks/object/object.repository.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 4f7336a

Please sign in to comment.