forked from web3infra-foundation/libra
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.test.example
More file actions
57 lines (54 loc) · 2.27 KB
/
.env.test.example
File metadata and controls
57 lines (54 loc) · 2.27 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
# =============================================================
# L2 — Network tests (GitHub)
# =============================================================
# Create a personal access token at https://github.com/settings/tokens
# Required scope: public_repo (only public repos — avoids accidental deletion of private repos)
# The test creates a temporary repo named "libra-test-<random>" under this namespace,
# runs all network tests against it, and deletes it on completion.
LIBRA_TEST_GITHUB_TOKEN=
LIBRA_TEST_GITHUB_NAMESPACE=
# =============================================================
# L3 — AI tests
# =============================================================
# Get your key at https://aistudio.google.com/apikey
GEMINI_API_KEY=
# =============================================================
# L3 — Cloud feature tests (D1 + R2)
# =============================================================
# Used by: cloud sync/restore workflow, D1 CRUD, R2 object storage
# Cloudflare Dashboard → Workers & Pages → Overview → Account ID
LIBRA_D1_ACCOUNT_ID=
# Cloudflare Dashboard → API Tokens → Create Token
LIBRA_D1_API_TOKEN=
# Cloudflare Dashboard → Workers & Pages → D1 → your database
LIBRA_D1_DATABASE_ID=
# Cloudflare Dashboard → R2 → Bucket → Settings → S3 API
LIBRA_STORAGE_ENDPOINT=
LIBRA_STORAGE_BUCKET=
LIBRA_STORAGE_ACCESS_KEY=
LIBRA_STORAGE_SECRET_KEY=
LIBRA_STORAGE_REGION=auto
# =============================================================
# L3 — S3 storage object tests
# =============================================================
# Tests S3 protocol features: PUT/GET/DELETE, multipart upload,
# list with prefix, tiered storage, error handling, etc.
#
# Uses a SEPARATE S3-compatible endpoint (can be different from R2 above).
# Supports: AWS S3, MinIO, or any S3-compatible service.
#
# --- AWS S3 ---
# LIBRA_TEST_S3_ENDPOINT=https://s3.<region>.amazonaws.com
#
# --- Local MinIO (for offline development) ---
# docker run -p 9000:9000 minio/minio server /data
# LIBRA_TEST_S3_ENDPOINT=http://127.0.0.1:9000
# LIBRA_TEST_S3_ALLOW_HTTP=true
#
LIBRA_TEST_S3_ENDPOINT=
LIBRA_TEST_S3_BUCKET=
LIBRA_TEST_S3_ACCESS_KEY=
LIBRA_TEST_S3_SECRET_KEY=
LIBRA_TEST_S3_REGION=
# Set to "true" when using HTTP endpoints (e.g. local MinIO)
# LIBRA_TEST_S3_ALLOW_HTTP=true