silverbullet/common/spaces/s3_space_primitives.test.ts

25 lines
734 B
TypeScript
Raw Normal View History

2024-07-30 21:17:34 +08:00
// deno-lint-ignore-file no-unreachable
import { S3SpacePrimitives } from "./s3_space_primitives.ts";
import { MemoryKvPrimitives } from "$lib/data/memory_kv_primitives.ts";
import { testSpacePrimitives } from "$common/spaces/space_primitives.test.ts";
Deno.test("s3_space_primitives", async () => {
return;
2024-07-30 21:17:34 +08:00
const options = {
accessKey: Deno.env.get("AWS_ACCESS_KEY_ID")!,
secretKey: Deno.env.get("AWS_SECRET_ACCESS_KEY")!,
endPoint: Deno.env.get("AWS_ENDPOINT")!,
region: Deno.env.get("AWS_REGION")!,
bucket: Deno.env.get("AWS_BUCKET")!,
};
const primitives = new S3SpacePrimitives(
new MemoryKvPrimitives(),
["meta"],
"test",
options,
);
await testSpacePrimitives(primitives);
});