Skip to content

Open-source Grok Bot alternative for named AI teammates. Local-first desktop, web, and mobile clients with per-bot tools, instructions, and memory. Independent fork of T3 Code.

1.1 KB
Raw Blame
import * as AWS from "@/AWS";
import { Job } from "@/AWS/EKS/Job.ts";
import * as Provider from "@/Provider";
import * as Test from "@/Test/Alchemy";
import { expect } from "alchemy-test";
import * as Effect from "effect/Effect";

const testOptions = { providers: AWS.providers() };
const { test } = Test.make(testOptions);

// Ungated probe: `Job` is a composite host (ECR repo + pod-identity role +
// PodIdentityAssociation + in-cluster batch/v1 Job or CronJob) with no
// faithful single-API enumeration, so `list()` is intentionally empty. The
// probe proves the provider is registered and its record type-checks without
// paying the ~15-minute EKS control-plane create. Full lifecycle coverage
// requires a live cluster and rides the gated Deployment E2E budget
// (AWS_TEST_SLOW) — see Deployment.test.ts.
test.provider(
  "list returns an empty array (composite host, not enumerable)",
  () =>
    Effect.gen(function* () {
      const provider = yield* Provider.findProvider(Job);
      const all = yield* provider.list();
      expect(Array.isArray(all)).toBe(true);
      expect(all).toEqual([]);
    }),
);