t3-code-android-nightly/.repos/alchemy-effect/packages/alchemy/test/AWS/Route53/HealthCheckNuke.test.ts
Julius Marminge 6f9cea00ae
chore(refs): sync Effect and Alchemy references to 4.0.1 and beta.80 (#16170)
Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-10-05 13:22:30 -07:00

24 lines
788 B
TypeScript

import * as AWS from "@/AWS";
import { isNukeableHealthCheck } from "@/AWS/Route53/HealthCheck.ts";
import * as Test from "@/Test/Alchemy";
import { expect } from "alchemy-test";
import * as Effect from "effect/Effect";
const { test } = Test.make({ providers: AWS.providers() });
test(
"nuke inventory excludes AWS-service-owned health checks",
Effect.sync(() => {
expect(isNukeableHealthCheck({})).toBe(true);
expect(
isNukeableHealthCheck({
LinkedService: {
ServicePrincipal: "servicediscovery.amazonaws.com",
Description: "Cloud Map managed health check",
},
}),
).toBe(false);
expect(isNukeableHealthCheck({ LinkedService: {} })).toBe(false);
}),
{ tags: ["provider:aws", "provider:aws:route53", "live"] },
);