Skip to content

armgit / orca

Public Imported from GitHub
0

Orca is the place for working with a fleet of agents (e.g. Grok Bot, Claude Code). Run any coding agent with your own subscription. Available on desktop, mobile and remote runtime.

951 B
Raw Blame
import { describe, expect, it } from 'vitest'
import { getProvisionedRootRecipeRepoUrl } from './ephemeral-vm-recipe-repo-url'

describe('getProvisionedRootRecipeRepoUrl', () => {
  it('does not expose the repository URL to ordinary recipes', () => {
    expect(
      getProvisionedRootRecipeRepoUrl(
        undefined,
        'https://recipe-user:[email protected]/team/repo.git'
      )
    ).toBeUndefined()
  })

  it('removes credentials before exposing the URL to a provisioned-root recipe', () => {
    expect(
      getProvisionedRootRecipeRepoUrl(
        'provisioned-root',
        'https://recipe-user:[email protected]/team/repo.git'
      )
    ).toBe('https://git.example.com/team/repo.git')
  })

  it('preserves the SSH username required by scp-style remotes', () => {
    expect(getProvisionedRootRecipeRepoUrl('provisioned-root', 'git@host:team/repo.git')).toBe(
      'git@host:team/repo.git'
    )
  })
})