mirror of
https://github.com/VibedByKaKi/t3-code-android-nightly.git
synced 2026-10-21 17:57:44 +02:00
24 lines
788 B
TypeScript
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"] },
|
|
);
|