mirror of
https://github.com/stablyai/orca.git
synced 2026-11-15 10:27:33 +00:00
Align store test fixtures and await pairing replacement
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import '../../shared/remote-runtime/host-store/environment-store-worker.test-support'
|
||||
import '../../shared/remote-runtime/host-store/environment-store-worker-test-fixture'
|
||||
import { afterEach, beforeEach, describe, expect, it, vi } from 'vitest'
|
||||
|
||||
const { spawnMock, reclaimStaleLockMock, printReclaimResultMock } = vi.hoisted(() => ({
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import '../../shared/remote-runtime/host-store/environment-store-worker.test-support'
|
||||
import '../../shared/remote-runtime/host-store/environment-store-worker-test-fixture'
|
||||
import type * as nodeFs from 'node:fs'
|
||||
import { mkdtempSync, rmSync } from 'node:fs'
|
||||
import { tmpdir } from 'node:os'
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import '../../shared/remote-runtime/host-store/environment-store-worker.test-support'
|
||||
import '../../shared/remote-runtime/host-store/environment-store-worker-test-fixture'
|
||||
import { createServer, type Server } from 'node:net'
|
||||
import { mkdtempSync, writeFileSync } from 'node:fs'
|
||||
import { tmpdir } from 'node:os'
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import '../../shared/remote-runtime/host-store/environment-store-worker.test-support'
|
||||
import '../../shared/remote-runtime/host-store/environment-store-worker-test-fixture'
|
||||
import { mkdtempSync, rmSync, writeFileSync } from 'node:fs'
|
||||
import { tmpdir } from 'node:os'
|
||||
import { join } from 'node:path'
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import '../../shared/remote-runtime/host-store/environment-store-worker.test-support'
|
||||
import '../../shared/remote-runtime/host-store/environment-store-worker-test-fixture'
|
||||
import { describe, expect, it } from 'vitest'
|
||||
import { RuntimeRpcEnvelopeSchema } from './envelope-schema'
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import '../../shared/remote-runtime/host-store/environment-store-worker.test-support'
|
||||
import '../../shared/remote-runtime/host-store/environment-store-worker-test-fixture'
|
||||
import { describe, expect, it, vi } from 'vitest'
|
||||
import { encodePairingOffer } from '../../shared/remote-runtime/pairing/pairing'
|
||||
import { RemoteRuntimeClientError } from '../../shared/remote-runtime/remote-runtime-client-error'
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import '../../shared/remote-runtime/host-store/environment-store-worker.test-support'
|
||||
import '../../shared/remote-runtime/host-store/environment-store-worker-test-fixture'
|
||||
import { mkdtempSync, rmSync, statSync } from 'node:fs'
|
||||
import { tmpdir } from 'node:os'
|
||||
import { join } from 'node:path'
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import '../../shared/remote-runtime/host-store/environment-store-worker.test-support'
|
||||
import '../../shared/remote-runtime/host-store/environment-store-worker-test-fixture'
|
||||
import { EventEmitter } from 'node:events'
|
||||
import { mkdtempSync, rmSync, writeFileSync } from 'node:fs'
|
||||
import { createServer, type Socket } from 'node:net'
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import '../../shared/remote-runtime/host-store/environment-store-worker.test-support'
|
||||
import '../../shared/remote-runtime/host-store/environment-store-worker-test-fixture'
|
||||
import { EventEmitter } from 'node:events'
|
||||
import { chmod, mkdir, mkdtemp, rename, rm, writeFile } from 'node:fs/promises'
|
||||
import { tmpdir } from 'node:os'
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import '../../shared/remote-runtime/host-store/environment-store-worker.test-support'
|
||||
import '../../shared/remote-runtime/host-store/environment-store-worker-test-fixture'
|
||||
import { EventEmitter } from 'node:events'
|
||||
import { rm } from 'node:fs/promises'
|
||||
import 'node:os'
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import '../../shared/remote-runtime/host-store/environment-store-worker.test-support'
|
||||
import '../../shared/remote-runtime/host-store/environment-store-worker-test-fixture'
|
||||
import { existsSync, mkdirSync, mkdtempSync, readFileSync, rmSync, writeFileSync } from 'node:fs'
|
||||
import { createServer, type Socket } from 'node:net'
|
||||
import { tmpdir } from 'node:os'
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import '../../shared/remote-runtime/host-store/environment-store-worker.test-support'
|
||||
import '../../shared/remote-runtime/host-store/environment-store-worker-test-fixture'
|
||||
import { realpathSync } from 'node:fs'
|
||||
import { afterEach, beforeEach, describe, expect, it, vi } from 'vitest'
|
||||
import {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import '../../shared/remote-runtime/host-store/environment-store-worker.test-support'
|
||||
import '../../shared/remote-runtime/host-store/environment-store-worker-test-fixture'
|
||||
// #36923: the CLI reaches a recipe VM's server directly, so it asks the desktop that owns the
|
||||
// VM to wake it, and only for a command that opens the workspace.
|
||||
import { mkdtempSync, rmSync } from 'node:fs'
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import '../../shared/remote-runtime/host-store/environment-store-worker.test-support'
|
||||
import '../../shared/remote-runtime/host-store/environment-store-worker-test-fixture'
|
||||
import { spawn } from 'node:child_process'
|
||||
import { chmodSync, mkdirSync, mkdtempSync } from 'node:fs'
|
||||
import { createServer, type Server, type Socket } from 'node:net'
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import '../../shared/remote-runtime/host-store/environment-store-worker.test-support'
|
||||
import '../../shared/remote-runtime/host-store/environment-store-worker-test-fixture'
|
||||
import { createServer, type Server } from 'node:net'
|
||||
import { randomUUID } from 'node:crypto'
|
||||
import { mkdtempSync, writeFileSync } from 'node:fs'
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import '../../shared/remote-runtime/host-store/environment-store-worker.test-support'
|
||||
import '../../shared/remote-runtime/host-store/environment-store-worker-test-fixture'
|
||||
import { mkdir, mkdtemp, readFile, rename, rm, utimes, writeFile } from 'node:fs/promises'
|
||||
import { tmpdir } from 'node:os'
|
||||
import { join } from 'node:path'
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import '../../shared/remote-runtime/host-store/environment-store-worker.test-support'
|
||||
import '../../shared/remote-runtime/host-store/environment-store-worker-test-fixture'
|
||||
import { mkdir, mkdtemp, readFile, readdir, rm, stat, writeFile } from 'node:fs/promises'
|
||||
import { realpathSync } from 'node:fs'
|
||||
import { tmpdir } from 'node:os'
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import '../../shared/remote-runtime/host-store/environment-store-worker.test-support'
|
||||
import '../../shared/remote-runtime/host-store/environment-store-worker-test-fixture'
|
||||
import { mkdtempSync, rmSync, unlinkSync, writeFileSync } from 'node:fs'
|
||||
import { createServer, type Socket } from 'node:net'
|
||||
import { tmpdir } from 'node:os'
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import '../../shared/remote-runtime/host-store/environment-store-worker.test-support'
|
||||
import '../../shared/remote-runtime/host-store/environment-store-worker-test-fixture'
|
||||
import { PassThrough } from 'node:stream'
|
||||
import { ChildProcess } from 'node:child_process'
|
||||
import { once } from 'node:events'
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import '../../shared/remote-runtime/host-store/environment-store-worker.test-support'
|
||||
import '../../shared/remote-runtime/host-store/environment-store-worker-test-fixture'
|
||||
import { spawnSync } from 'node:child_process'
|
||||
import { existsSync } from 'node:fs'
|
||||
import { describe, expect, it, vi } from 'vitest'
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import '../../shared/remote-runtime/host-store/environment-store-worker.test-support'
|
||||
import '../../shared/remote-runtime/host-store/environment-store-worker-test-fixture'
|
||||
import { MacServeStartupAbortError, serveSignalExitError } from './serve-signal-exit-diagnostic'
|
||||
import { EventEmitter } from 'node:events'
|
||||
import { mkdtemp, rm } from 'node:fs/promises'
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import '../../shared/remote-runtime/host-store/environment-store-worker.test-support'
|
||||
import '../../shared/remote-runtime/host-store/environment-store-worker-test-fixture'
|
||||
import { mkdirSync, mkdtempSync, rmSync, writeFileSync } from 'node:fs'
|
||||
import { tmpdir } from 'node:os'
|
||||
import { join } from 'node:path'
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import '../../shared/remote-runtime/host-store/environment-store-worker.test-support'
|
||||
import '../../shared/remote-runtime/host-store/environment-store-worker-test-fixture'
|
||||
import { mkdtemp, rm } from 'node:fs/promises'
|
||||
import { tmpdir } from 'node:os'
|
||||
import { join } from 'node:path'
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import '../../shared/remote-runtime/host-store/environment-store-worker.test-support'
|
||||
import '../../shared/remote-runtime/host-store/environment-store-worker-test-fixture'
|
||||
import { describe, expect, it } from 'vitest'
|
||||
import { decideAfterServeChildExit, type ServeChildExit } from './serve-supervisor-policy'
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import '../../shared/remote-runtime/host-store/environment-store-worker.test-support'
|
||||
import '../../shared/remote-runtime/host-store/environment-store-worker-test-fixture'
|
||||
import {
|
||||
chmod,
|
||||
lstat,
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import '../../shared/remote-runtime/host-store/environment-store-worker.test-support'
|
||||
import '../../shared/remote-runtime/host-store/environment-store-worker-test-fixture'
|
||||
import { mkdtemp, rm } from 'node:fs/promises'
|
||||
import { tmpdir } from 'node:os'
|
||||
import { join } from 'node:path'
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import '../../shared/remote-runtime/host-store/environment-store-worker.test-support'
|
||||
import '../../shared/remote-runtime/host-store/environment-store-worker-test-fixture'
|
||||
import { mkdtempSync, rmSync, writeFileSync } from 'node:fs'
|
||||
import { createServer, type Server, type Socket } from 'node:net'
|
||||
import { tmpdir } from 'node:os'
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import '../../shared/remote-runtime/host-store/environment-store-worker.test-support'
|
||||
import '../../shared/remote-runtime/host-store/environment-store-worker-test-fixture'
|
||||
import { mkdtempSync, writeFileSync } from 'node:fs'
|
||||
import { createServer, type Socket } from 'node:net'
|
||||
import { tmpdir } from 'node:os'
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import '../../shared/remote-runtime/host-store/environment-store-worker.test-support'
|
||||
import '../../shared/remote-runtime/host-store/environment-store-worker-test-fixture'
|
||||
import { EventEmitter } from 'node:events'
|
||||
import { afterEach, beforeEach, describe, expect, it, vi } from 'vitest'
|
||||
import type { RuntimeMetadata } from '../../shared/runtime-bootstrap'
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import '../../shared/remote-runtime/host-store/environment-store-worker.test-support'
|
||||
import '../../shared/remote-runtime/host-store/environment-store-worker-test-fixture'
|
||||
import { mkdtempSync, rmSync, writeFileSync } from 'node:fs'
|
||||
import { once } from 'node:events'
|
||||
import { tmpdir } from 'node:os'
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import '../../shared/remote-runtime/host-store/environment-store-worker.test-support'
|
||||
import '../../shared/remote-runtime/host-store/environment-store-worker-test-fixture'
|
||||
import { describe, expect, it } from 'vitest'
|
||||
import { RuntimeRpcFailureError } from './types'
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import '../../shared/remote-runtime/host-store/environment-store-worker.test-support'
|
||||
import '../../shared/remote-runtime/host-store/environment-store-worker-test-fixture'
|
||||
import { describe, expect, it } from 'vitest'
|
||||
import {
|
||||
PendingVmCheckoutRegistry,
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import '../../shared/remote-runtime/host-store/environment-store-worker.test-support'
|
||||
import '../../shared/remote-runtime/host-store/environment-store-worker-test-fixture'
|
||||
import { mkdtempSync, realpathSync, writeFileSync } from 'node:fs'
|
||||
import { tmpdir } from 'node:os'
|
||||
import { join } from 'node:path'
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import '../../shared/remote-runtime/host-store/environment-store-worker.test-support'
|
||||
import '../../shared/remote-runtime/host-store/environment-store-worker-test-fixture'
|
||||
import { mkdtempSync, readFileSync, writeFileSync } from 'node:fs'
|
||||
import { tmpdir } from 'node:os'
|
||||
import { join } from 'node:path'
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import '../../shared/remote-runtime/host-store/environment-store-worker.test-support'
|
||||
import '../../shared/remote-runtime/host-store/environment-store-worker-test-fixture'
|
||||
import { mkdtempSync } from 'node:fs'
|
||||
import { tmpdir } from 'node:os'
|
||||
import { join } from 'node:path'
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import '../../shared/remote-runtime/host-store/environment-store-worker.test-support'
|
||||
import '../../shared/remote-runtime/host-store/environment-store-worker-test-fixture'
|
||||
import { mkdtempSync, readFileSync, writeFileSync } from 'node:fs'
|
||||
import { tmpdir } from 'node:os'
|
||||
import { join } from 'node:path'
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import '../../shared/remote-runtime/host-store/environment-store-worker.test-support'
|
||||
import '../../shared/remote-runtime/host-store/environment-store-worker-test-fixture'
|
||||
import { mkdtempSync } from 'node:fs'
|
||||
import { tmpdir } from 'node:os'
|
||||
import { join } from 'node:path'
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import '../../shared/remote-runtime/host-store/environment-store-worker.test-support'
|
||||
import '../../shared/remote-runtime/host-store/environment-store-worker-test-fixture'
|
||||
import { mkdtempSync } from 'node:fs'
|
||||
import { tmpdir } from 'node:os'
|
||||
import { join } from 'node:path'
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import '../../shared/remote-runtime/host-store/environment-store-worker.test-support'
|
||||
import '../../shared/remote-runtime/host-store/environment-store-worker-test-fixture'
|
||||
// #34089 for VMs reached as paired Orca servers: a VM its provider stopped or reclaimed stays
|
||||
// recorded as running. Once Orca's own probes have failed for minutes, opening the workspace runs
|
||||
// the recipe's resume and keeps the device pairing unless the server came back with a new host key.
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import '../../shared/remote-runtime/host-store/environment-store-worker.test-support'
|
||||
import '../../shared/remote-runtime/host-store/environment-store-worker-test-fixture'
|
||||
// #36923: a remote open can wake an SSH-connected recipe VM. If the user disconnects its host while
|
||||
// the recipe resumes, the wake must not reconnect it: the VM is up, and the host stays held.
|
||||
import { afterEach, describe, expect, it, vi } from 'vitest'
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import '../../shared/remote-runtime/host-store/environment-store-worker.test-support'
|
||||
import '../../shared/remote-runtime/host-store/environment-store-worker-test-fixture'
|
||||
import { existsSync, mkdtempSync, writeFileSync } from 'node:fs'
|
||||
import { tmpdir } from 'node:os'
|
||||
import { join } from 'node:path'
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
import '../../../../shared/remote-runtime/host-store/environment-store-worker.test-support'
|
||||
import '../../../../shared/remote-runtime/host-store/environment-store-worker-test-fixture'
|
||||
import { beforeEach, describe, expect, it, vi } from 'vitest'
|
||||
import '../../../../shared/protocol-version'
|
||||
import {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import '../../../../shared/remote-runtime/host-store/environment-store-worker.test-support'
|
||||
import '../../../../shared/remote-runtime/host-store/environment-store-worker-test-fixture'
|
||||
import { describe, expect, it } from 'vitest'
|
||||
import type { KnownRuntimeEnvironment } from '../../../../shared/remote-runtime/host-catalog/runtime-environments'
|
||||
import { publicRuntimeEnvironmentWithHostKey } from './runtime-environment-host-key'
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import '../../../../shared/remote-runtime/host-store/environment-store-worker.test-support'
|
||||
import '../../../../shared/remote-runtime/host-store/environment-store-worker-test-fixture'
|
||||
import { mkdirSync, mkdtempSync, rmSync, writeFileSync } from 'node:fs'
|
||||
import { tmpdir } from 'node:os'
|
||||
import { join } from 'node:path'
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
import '../../../../shared/remote-runtime/host-store/environment-store-worker.test-support'
|
||||
import '../../../../shared/remote-runtime/host-store/environment-store-worker-test-fixture'
|
||||
import { mkdtempSync, writeFileSync } from 'node:fs'
|
||||
import * as fs from 'node:fs'
|
||||
import { tmpdir } from 'node:os'
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
import '../../../../shared/remote-runtime/host-store/environment-store-worker.test-support'
|
||||
import '../../../../shared/remote-runtime/host-store/environment-store-worker-test-fixture'
|
||||
import { pairedRuntimeConnectionFromOffer } from '../../../../shared/remote-runtime/pairing/paired-runtime-connection'
|
||||
import { beforeEach, describe, expect, it } from 'vitest'
|
||||
import type { PairingOffer } from '../../../../shared/remote-runtime/pairing/mobile-relay-pairing-offer'
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
import '../../../../shared/remote-runtime/host-store/environment-store-worker.test-support'
|
||||
import '../../../../shared/remote-runtime/host-store/environment-store-worker-test-fixture'
|
||||
import { RemoteRuntimeSharedControlConnection } from '../../../../shared/remote-runtime/control/remote-runtime-shared-control-connection'
|
||||
import type { RuntimeRpcResponse } from '../../../../shared/runtime-rpc-envelope'
|
||||
import { afterEach, describe, expect, it, vi } from 'vitest'
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
import '../../../../shared/remote-runtime/host-store/environment-store-worker.test-support'
|
||||
import '../../../../shared/remote-runtime/host-store/environment-store-worker-test-fixture'
|
||||
// #36923: a client reaches a recipe VM's workspace through the VM's own server, which is gone
|
||||
// while the VM sleeps. Opening the workspace wakes it; any other request leaves it asleep.
|
||||
import { mkdtempSync } from 'node:fs'
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
import '../../../../shared/remote-runtime/host-store/environment-store-worker.test-support'
|
||||
import '../../../../shared/remote-runtime/host-store/environment-store-worker-test-fixture'
|
||||
import { beforeEach, describe, expect, it, vi } from 'vitest'
|
||||
import { OrcadManagedIdentityError } from '../../../managed-server/lifecycle/orcad-managed-tunnel-identity'
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import '../../../../shared/remote-runtime/host-store/environment-store-worker.test-support'
|
||||
import '../../../../shared/remote-runtime/host-store/environment-store-worker-test-fixture'
|
||||
import { resetRuntimeEnvironmentStatusOwners } from '../connections/runtime-environment-request-connections'
|
||||
import { mkdtempSync, rmSync } from 'node:fs'
|
||||
import { tmpdir } from 'node:os'
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import '../../../../shared/remote-runtime/host-store/environment-store-worker.test-support'
|
||||
import '../../../../shared/remote-runtime/host-store/environment-store-worker-test-fixture'
|
||||
import { mkdtempSync, rmSync } from 'node:fs'
|
||||
import { tmpdir } from 'node:os'
|
||||
import { join } from 'node:path'
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
import '../../../../shared/remote-runtime/host-store/environment-store-worker.test-support'
|
||||
import '../../../../shared/remote-runtime/host-store/environment-store-worker-test-fixture'
|
||||
import { resetRuntimeEnvironmentStatusOwners } from '../connections/runtime-environment-request-connections'
|
||||
vi.mock('electron', () => ({ BrowserWindow: { getAllWindows: () => [] } }))
|
||||
import { mkdtempSync, rmSync } from 'node:fs'
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
import '../../../../shared/remote-runtime/host-store/environment-store-worker.test-support'
|
||||
import '../../../../shared/remote-runtime/host-store/environment-store-worker-test-fixture'
|
||||
// #36923: opening a sleeping paired recipe VM wakes it, and the wake re-pairs its server. The
|
||||
// opening request is held to its caller's pairing as of before that wake, then to the pairing the
|
||||
// wake made; any other change still refuses it.
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import '../../../../shared/remote-runtime/host-store/environment-store-worker.test-support'
|
||||
import '../../../../shared/remote-runtime/host-store/environment-store-worker-test-fixture'
|
||||
// #34089: whether a paired server's host may be gone comes only from dials Orca already makes:
|
||||
// its health probes and its control socket's reconnects.
|
||||
import { afterEach, describe, expect, it, vi } from 'vitest'
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
import '../../../../shared/remote-runtime/host-store/environment-store-worker.test-support'
|
||||
import '../../../../shared/remote-runtime/host-store/environment-store-worker-test-fixture'
|
||||
import { mkdtempSync, rmSync } from 'node:fs'
|
||||
import { tmpdir } from 'node:os'
|
||||
import { join } from 'node:path'
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
import '../../../../shared/remote-runtime/host-store/environment-store-worker.test-support'
|
||||
import '../../../../shared/remote-runtime/host-store/environment-store-worker-test-fixture'
|
||||
import { mkdtempSync, rmSync } from 'node:fs'
|
||||
import { tmpdir } from 'node:os'
|
||||
import { join } from 'node:path'
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
import '../../../../shared/remote-runtime/host-store/environment-store-worker.test-support'
|
||||
import '../../../../shared/remote-runtime/host-store/environment-store-worker-test-fixture'
|
||||
import * as environmentStore from '../../../../shared/remote-runtime/host-store/runtime-environment-store'
|
||||
import * as setup from './runtime-environment-subscription-setup'
|
||||
import { resetRuntimeEnvironmentStatusOwners } from '../connections/runtime-environment-request-connections'
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import '../../../shared/remote-runtime/host-store/environment-store-worker.test-support'
|
||||
import '../../../shared/remote-runtime/host-store/environment-store-worker-test-fixture'
|
||||
import { vi } from 'vitest'
|
||||
import type { Mock } from 'vitest'
|
||||
import { registerSshHandlers, resetSshHandlerStateForTests } from './ssh'
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import '../../../shared/remote-runtime/host-store/environment-store-worker.test-support'
|
||||
import '../../../shared/remote-runtime/host-store/environment-store-worker-test-fixture'
|
||||
import { mkdtempSync, rmSync } from 'node:fs'
|
||||
import { tmpdir } from 'node:os'
|
||||
import { join } from 'node:path'
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import '../../../shared/remote-runtime/host-store/environment-store-worker.test-support'
|
||||
import '../../../shared/remote-runtime/host-store/environment-store-worker-test-fixture'
|
||||
import { mkdtempSync, rmSync } from 'node:fs'
|
||||
import { createServer, type Server } from 'node:net'
|
||||
import { tmpdir } from 'node:os'
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import '../../../shared/remote-runtime/host-store/environment-store-worker.test-support'
|
||||
import '../../../shared/remote-runtime/host-store/environment-store-worker-test-fixture'
|
||||
import { rmSync } from 'node:fs'
|
||||
import { afterEach, beforeEach, describe, expect, it, vi } from 'vitest'
|
||||
import { getManagedOrcadFenceEnvironmentId } from '../../../shared/managed-orcad-ssh-owner'
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import '../../../shared/remote-runtime/host-store/environment-store-worker.test-support'
|
||||
import '../../../shared/remote-runtime/host-store/environment-store-worker-test-fixture'
|
||||
import { rmSync } from 'node:fs'
|
||||
import { afterEach, beforeEach, describe, expect, it, vi } from 'vitest'
|
||||
import { listEnvironments } from '../../../shared/remote-runtime/host-store/runtime-environment-store'
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import '../../../../shared/remote-runtime/host-store/environment-store-worker.test-support'
|
||||
import '../../../../shared/remote-runtime/host-store/environment-store-worker-test-fixture'
|
||||
import { mkdtempSync, rmSync } from 'node:fs'
|
||||
import { tmpdir } from 'node:os'
|
||||
import { join } from 'node:path'
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import '../../../../shared/remote-runtime/host-store/environment-store-worker.test-support'
|
||||
import '../../../../shared/remote-runtime/host-store/environment-store-worker-test-fixture'
|
||||
import { mkdtempSync, rmSync } from 'node:fs'
|
||||
import { tmpdir } from 'node:os'
|
||||
import { join } from 'node:path'
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import '../../../../shared/remote-runtime/host-store/environment-store-worker.test-support'
|
||||
import '../../../../shared/remote-runtime/host-store/environment-store-worker-test-fixture'
|
||||
import { mkdtempSync, rmSync } from 'node:fs'
|
||||
import { tmpdir } from 'node:os'
|
||||
import { join } from 'node:path'
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import '../../../../shared/remote-runtime/host-store/environment-store-worker.test-support'
|
||||
import '../../../../shared/remote-runtime/host-store/environment-store-worker-test-fixture'
|
||||
import { mkdtempSync, rmSync } from 'node:fs'
|
||||
import { tmpdir } from 'node:os'
|
||||
import { join } from 'node:path'
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import '../../../../shared/remote-runtime/host-store/environment-store-worker.test-support'
|
||||
import '../../../../shared/remote-runtime/host-store/environment-store-worker-test-fixture'
|
||||
import nacl from 'tweetnacl'
|
||||
import { chmodSync, mkdtempSync, readdirSync, statSync, writeFileSync } from 'node:fs'
|
||||
import { tmpdir } from 'node:os'
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import '../../../../shared/remote-runtime/host-store/environment-store-worker.test-support'
|
||||
import '../../../../shared/remote-runtime/host-store/environment-store-worker-test-fixture'
|
||||
import { mkdtempSync, rmSync } from 'node:fs'
|
||||
import { tmpdir } from 'node:os'
|
||||
import { join } from 'node:path'
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import '../../../shared/remote-runtime/host-store/environment-store-worker.test-support'
|
||||
import '../../../shared/remote-runtime/host-store/environment-store-worker-test-fixture'
|
||||
import { pairedRuntimeConnectionFromOffer } from '../../../shared/remote-runtime/pairing/paired-runtime-connection'
|
||||
import { mkdtempSync, rmSync } from 'node:fs'
|
||||
import { tmpdir } from 'node:os'
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import '../../../shared/remote-runtime/host-store/environment-store-worker.test-support'
|
||||
import '../../../shared/remote-runtime/host-store/environment-store-worker-test-fixture'
|
||||
import { beforeEach, describe, expect, it, vi } from 'vitest'
|
||||
|
||||
const hostRows = vi.hoisted(() => new Map<string, { enabled: boolean; updatedAt: number }>())
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import '../../../shared/remote-runtime/host-store/environment-store-worker.test-support'
|
||||
import '../../../shared/remote-runtime/host-store/environment-store-worker-test-fixture'
|
||||
import { describe, expect, it, vi } from 'vitest'
|
||||
import { listWslHostDistros } from './wsl-host-distro-list'
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import '../../../shared/remote-runtime/host-store/environment-store-worker.test-support'
|
||||
import '../../../shared/remote-runtime/host-store/environment-store-worker-test-fixture'
|
||||
import { mkdtempSync, rmSync } from 'node:fs'
|
||||
import { tmpdir } from 'node:os'
|
||||
import { join } from 'node:path'
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import '../../../shared/remote-runtime/host-store/environment-store-worker.test-support'
|
||||
import '../../../shared/remote-runtime/host-store/environment-store-worker-test-fixture'
|
||||
import { mkdtempSync, rmSync } from 'node:fs'
|
||||
import { tmpdir } from 'node:os'
|
||||
import { join } from 'node:path'
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import '../../../shared/remote-runtime/host-store/environment-store-worker.test-support'
|
||||
import '../../../shared/remote-runtime/host-store/environment-store-worker-test-fixture'
|
||||
import { describe, expect, it, vi } from 'vitest'
|
||||
import type { OrcadDecommissionResult } from '../../../shared/orcad-decommission'
|
||||
import type { OrcadTerminalCensus } from '../../../shared/orcad-terminal-census'
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import '../../../shared/remote-runtime/host-store/environment-store-worker.test-support'
|
||||
import '../../../shared/remote-runtime/host-store/environment-store-worker-test-fixture'
|
||||
import { mkdtempSync, rmSync } from 'node:fs'
|
||||
import { tmpdir } from 'node:os'
|
||||
import { join } from 'node:path'
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import '../../../shared/remote-runtime/host-store/environment-store-worker.test-support'
|
||||
import '../../../shared/remote-runtime/host-store/environment-store-worker-test-fixture'
|
||||
import { mkdtempSync, rmSync } from 'node:fs'
|
||||
import { tmpdir } from 'node:os'
|
||||
import { join } from 'node:path'
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import '../../../shared/remote-runtime/host-store/environment-store-worker.test-support'
|
||||
import '../../../shared/remote-runtime/host-store/environment-store-worker-test-fixture'
|
||||
import { spawnSync } from 'node:child_process'
|
||||
import { chmodSync, mkdirSync, mkdtempSync, readFileSync, rmSync, writeFileSync } from 'node:fs'
|
||||
import { tmpdir } from 'node:os'
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import '../../../shared/remote-runtime/host-store/environment-store-worker.test-support'
|
||||
import '../../../shared/remote-runtime/host-store/environment-store-worker-test-fixture'
|
||||
import { mkdtempSync, readFileSync, rmSync, writeFileSync } from 'node:fs'
|
||||
import { tmpdir } from 'node:os'
|
||||
import { join } from 'node:path'
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import '../../../shared/remote-runtime/host-store/environment-store-worker.test-support'
|
||||
import '../../../shared/remote-runtime/host-store/environment-store-worker-test-fixture'
|
||||
import { mkdirSync, mkdtempSync, rmSync, writeFileSync } from 'node:fs'
|
||||
import { tmpdir } from 'node:os'
|
||||
import { join } from 'node:path'
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import '../../../../shared/remote-runtime/host-store/environment-store-worker.test-support'
|
||||
import '../../../../shared/remote-runtime/host-store/environment-store-worker-test-fixture'
|
||||
import { beforeEach, describe, expect, it, vi } from 'vitest'
|
||||
|
||||
const { callRuntimeRpc, supportsCapability, store } = vi.hoisted(() => {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import '../../../../../shared/remote-runtime/host-store/environment-store-worker.test-support'
|
||||
import '../../../../../shared/remote-runtime/host-store/environment-store-worker-test-fixture'
|
||||
import { afterEach, describe, expect, it, vi } from 'vitest'
|
||||
import { create } from 'zustand'
|
||||
import type { AppState } from '../../types'
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import './environment-store-worker.test-support'
|
||||
import './environment-store-worker-test-fixture'
|
||||
import {
|
||||
closeEnvironmentStore,
|
||||
environmentStoreWriteCount
|
||||
|
||||
@@ -20,7 +20,7 @@ export async function replaceRuntimePairingInPlace(args: {
|
||||
await args.page.evaluate(async (selector) => {
|
||||
await window.api.runtimeEnvironments.disconnect({ selector })
|
||||
}, args.environmentId)
|
||||
const updated = updateEnvironmentFromPairingCode(args.userDataDir, args.environmentId, {
|
||||
const updated = await updateEnvironmentFromPairingCode(args.userDataDir, args.environmentId, {
|
||||
pairingCode: args.pairingUrl
|
||||
})
|
||||
const hydrated = await args.page.evaluate(async (selector) => {
|
||||
|
||||
Reference in New Issue
Block a user