Skip to content

Conversation

@ofekatr
Copy link

@ofekatr ofekatr commented May 8, 2023

What is the problem I am trying to address?

  • Creates a test for the Catalog method of the MinIO storage implementation, to ensure the authentication token is passed as expected.

How is the fix applied?

  • Creating a corresponding test that will fail if the change in 50a3a92 is reverted.

What GitHub issue(s) does this PR fix or close?

Fixes #1213

@ofekatr ofekatr requested a review from a team as a code owner May 8, 2023 22:05
@ofekatr ofekatr force-pushed the test/storage-catalog branch 2 times, most recently from 1fe8da8 to b1d4e58 Compare May 8, 2023 22:18
@ofekatr ofekatr force-pushed the test/storage-catalog branch from b1d4e58 to e4517de Compare May 8, 2023 22:25
@DrPsychick DrPsychick added this to the 0.13.x thereafter milestone Jun 23, 2023
"github.com/stretchr/testify/require"
)

func TestCatalog(t *testing.T) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Instead of mocks can we use a real minio set up like here

https://github.com/gomods/athens/blob/main/pkg/storage/minio/minio_test.go

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Write a test for the continuation token on the minio storage driver

3 participants