Skip to main content
Glama
issue-3-remote-urls.test.ts1.53 kB
import { describe, it, expect } from '@jest/globals'; import { SvnService } from '../tools/svn-service'; describe('Issue #3 - Error en svn_info con URLs remotas', () => { let svnService: SvnService; beforeEach(() => { svnService = new SvnService(); }); it('should handle the exact URL from the issue without validation error', async () => { const remoteUrl = 'http://octopus/svnayg/repo/crm-boot'; try { // This should not throw a validation error await svnService.getInfo(remoteUrl); } catch (error: any) { // The fix should prevent the "Invalid path" error expect(error.message).not.toContain('Invalid path: http://octopus/svnayg/repo/crm-boot'); expect(error.message).not.toContain('Invalid path or URL:'); // It might fail for other reasons (network, auth, etc.), but not validation console.log('Note: SVN command may fail due to network/auth, but validation passed'); } }); it('should accept various SVN URL formats', async () => { const urlFormats = [ 'http://octopus/svnayg/repo/crm-boot', 'https://svn.example.com/repo/trunk', 'svn://server.example.com/repo', 'file:///local/repo/path' ]; for (const url of urlFormats) { try { await svnService.getInfo(url); } catch (error: any) { // Should not be validation errors expect(error.message).not.toContain('Invalid path:'); expect(error.message).not.toContain('Invalid path or URL:'); } } }); });

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/gcorroto/mcp-svn'

If you have feedback or need assistance with the MCP directory API, please join our Discord server