- Updated login configuration tests to clarify endpoint descriptions. - Introduced team configuration loading and retrieval functionality, including new endpoints for public access to team configurations. - Refactored team management routes to standardize parameter usage and improve clarity. - Added error handling for missing environment variables in client configuration. - Implemented team configuration types and related structures for better organization and usability.
24 lines
803 B
Go
24 lines
803 B
Go
package user_test
|
|
|
|
import (
|
|
"os"
|
|
"testing"
|
|
|
|
"github.com/stretchr/testify/assert"
|
|
)
|
|
|
|
func TestEnvironmentVariables(t *testing.T) {
|
|
// Test that environment variables are available
|
|
signinClientID := os.Getenv("SIGNIN_CLIENT_ID")
|
|
signinClientSecret := os.Getenv("SIGNIN_CLIENT_SECRET")
|
|
|
|
t.Logf("SIGNIN_CLIENT_ID: %s (length: %d)", signinClientID, len(signinClientID))
|
|
t.Logf("SIGNIN_CLIENT_SECRET: %s (length: %d)", signinClientSecret, len(signinClientSecret))
|
|
|
|
// Check if environment variables are set
|
|
assert.NotEmpty(t, signinClientID, "SIGNIN_CLIENT_ID should be set")
|
|
assert.NotEmpty(t, signinClientSecret, "SIGNIN_CLIENT_SECRET should be set")
|
|
|
|
// Check if client ID is exactly 32 characters
|
|
assert.Equal(t, 32, len(signinClientID), "SIGNIN_CLIENT_ID should be exactly 32 characters")
|
|
}
|