Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test: storage catalog #1872

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

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
@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