Files
peardock/test/gitops.test.js
T
snxraven 02f25e0981
CI / test (push) Successful in 9m58s
Complete roadmap optionals: Holesail, Swarm UI, GitOps, virtualization.
Add tunnel persistence and container one-click tunnels with local
Holesail client bind, Swarm services/nodes/tasks view, GitOps stack
sync from git, deploy wizard step chrome, virtualized container lists,
and structure regression tests. Mark Tracks A–D and optional future done.
2026-07-10 22:53:30 -04:00

14 lines
436 B
JavaScript

import test from 'brittle'
import { fetchComposeFromGit } from '../server/utils/gitops.js'
test('fetchComposeFromGit rejects bad URLs', async (t) => {
await t.exception(() => fetchComposeFromGit({ repoUrl: '' }))
await t.exception(() => fetchComposeFromGit({ repoUrl: 'ftp://evil' }))
await t.exception(() =>
fetchComposeFromGit({
repoUrl: 'https://example.com/x.git',
composePath: '../etc/passwd',
})
)
})