The best way to control Claude Code, Codex and more from any computer or phone
Mirrored from https://github.com/Camo67/t3code.git
Synced Nov 21, 06:00 UTC
| 1 | import * as AWS from "@alchemy.run/aws"; |
| 2 | import { isNukeableHealthCheck } from "@alchemy.run/aws/Route53/HealthCheck"; |
| 3 | import { expect } from "@alchemy.run/test"; |
| 4 | import * as Test from "@alchemy.run/test/Alchemy"; |
| 5 | import * as Effect from "effect/Effect"; |
| 6 | |
| 7 | const { test } = Test.make({ providers: AWS.providers() }); |
| 8 | |
| 9 | test( |
| 10 | "nuke inventory excludes AWS-service-owned health checks", |
| 11 | Effect.sync(() => { |
| 12 | expect(isNukeableHealthCheck({})).toBe(true); |
| 13 | expect( |
| 14 | isNukeableHealthCheck({ |
| 15 | LinkedService: { |
| 16 | ServicePrincipal: "servicediscovery.amazonaws.com", |
| 17 | Description: "Cloud Map managed health check", |
| 18 | }, |
| 19 | }), |
| 20 | ).toBe(false); |
| 21 | expect(isNukeableHealthCheck({ LinkedService: {} })).toBe(false); |
| 22 | }), |
| 23 | { tags: ["provider:aws", "provider:aws:route53", "live"] }, |
| 24 | ); |