feat: implement authentication routes with login, logout, and user info retrieval
feat: add S3 bucket versioning support and related XML response handling refactor: rename temporary file paths from 'teleuploader' to 'filedrop' for consistency fix: update Swagger documentation to reflect new API name and descriptions test: add unit tests for authentication routes and utilities test: implement end-to-end tests for S3 bucket configuration and versioning chore: update environment variable defaults for new service name
This commit is contained in:
@@ -45,6 +45,12 @@ mock.module('../src/routes/health', () => ({
|
||||
handleHealth: mock(),
|
||||
}));
|
||||
|
||||
mock.module('../src/routes/auth', () => ({
|
||||
handleLogin: mock(),
|
||||
handleLogout: mock(),
|
||||
handleMe: mock(),
|
||||
}));
|
||||
|
||||
mock.module('../src/utils/rateLimit', () => ({
|
||||
cleanupRateLimitCache: mock(),
|
||||
withRateLimit: <T extends Request>(
|
||||
@@ -76,5 +82,9 @@ describe('Bootstrap Server', () => {
|
||||
expect(serveCallArgs.routes).toHaveProperty('/f/:public_id');
|
||||
expect(serveCallArgs.routes).toHaveProperty('/file/:public_id/info');
|
||||
expect(serveCallArgs.routes).toHaveProperty('/health');
|
||||
expect(serveCallArgs.routes).toHaveProperty('/api/v1/auth/login');
|
||||
expect(serveCallArgs.routes).toHaveProperty('/api/v1/auth/logout');
|
||||
expect(serveCallArgs.routes).toHaveProperty('/api/v1/auth/me');
|
||||
expect(serveCallArgs.routes).toHaveProperty('/api/v1/*');
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user