You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
chrislu 15620dda68 Fix #7575: Correct interface check for filer address function in admin server 2 days ago
..
README.md Fix #7575: Correct interface check for filer address function in admin server 2 days ago
user_creation_integration_test.go Fix #7575: Correct interface check for filer address function in admin server 2 days ago

README.md

Admin Integration Tests

This directory contains integration tests for the SeaweedFS admin server functionality.

Tests

user_creation_integration_test.go

Integration tests for user creation and credential management, specifically testing:

  • Issue #7575: Fixed bug where user creation failed with "filer address function not configured" error
  • Verification that the FilerEtcStore correctly implements the SetFilerAddressFunc interface
  • Admin server setup process with filer_etc credential store

Running Tests

Run all integration tests:

go test -v ./test/admin

Run specific tests:

go test -v ./test/admin -run TestUserCreationWithFilerEtcStore

Skip integration tests (short mode):

go test -short ./test/admin

Test Requirements

These tests do not require a running filer instance. They verify that:

  1. The credential store interface is correctly implemented
  2. The filer address function can be properly configured
  3. Errors are appropriate (connection errors, not configuration errors)
  • weed/admin/dash/admin_server.go - Admin server initialization with credential manager setup
  • weed/credential/filer_etc/filer_etc_store.go - FilerEtcStore implementation
  • weed/admin/dash/user_management.go - User management operations
  • weed/admin/dash/user_management_test.go - Unit tests for user management