mirror of
https://github.com/langgenius/dify.git
synced 2026-06-11 02:31:13 +08:00
70 lines
3.6 KiB
Plaintext
70 lines
3.6 KiB
Plaintext
# E2E test environment template — copy to ../.env.e2e or cli/.env.e2e
|
|
# depending on the test command working directory, then fill in values.
|
|
#
|
|
# .env.e2e is git-ignored; this file is safe to commit.
|
|
#
|
|
# ── Run mode ────────────────────────────────────────────────────────────────
|
|
# Leave unset for real staging E2E. Set to "local" only for local-mode suites.
|
|
# DIFY_E2E_MODE=local
|
|
|
|
# ── Edition selector ────────────────────────────────────────────────────────
|
|
# ce = Community Edition (default)
|
|
# ee = Enterprise Edition; requires workspaces named exactly auto_test0/auto_test1.
|
|
DIFY_E2E_EDITION=ee
|
|
|
|
# ── Required for real staging E2E ───────────────────────────────────────────
|
|
# DIFY_E2E_HOST is the OpenAPI / console base URL unless DIFY_E2E_CONSOLE_URL is set.
|
|
DIFY_E2E_HOST=
|
|
DIFY_E2E_EMAIL=
|
|
DIFY_E2E_PASSWORD=
|
|
|
|
# ── Enterprise workspace contract ───────────────────────────────────────────
|
|
# For DIFY_E2E_EDITION=ee, the logged-in account must already have:
|
|
# auto_test0 → primary workspace; global-setup checks 8 fixture apps here.
|
|
# auto_test1 → secondary workspace; global-setup checks 1 fixture app here.
|
|
#
|
|
# If either workspace is missing, global-setup does not import DSL fixtures.
|
|
# If a fixture app is missing, global-setup imports it from test/e2e/fixtures/apps.
|
|
# If it already exists by exact app name, import is skipped.
|
|
#
|
|
# auto_test0 fixture apps:
|
|
# echo-chat.yml → echo-bot
|
|
# echo-workflow.yml → basic_auto_test
|
|
# file-upload.yml → file_auto_test
|
|
# hitl-main.yml → hitl_auto_test
|
|
# hitl-external.yml → DIFY_E2E_HITL_EXTERNAL
|
|
# hitl-single-action.yml → DIFY_E2E_HITL_SINGLE_ACTION
|
|
# hitl-multi-node.yml → DIFY_E2E_HITL_MULTI_NODE
|
|
# file-chat.yml → DIFY_E2E_FILE_CHAT
|
|
#
|
|
# auto_test1 fixture app:
|
|
# ws2-workflow.yml → auto_test_workspace2
|
|
|
|
# ── Optional host override ──────────────────────────────────────────────────
|
|
# Use only when console login/provisioning URL differs from DIFY_E2E_HOST.
|
|
# DIFY_E2E_CONSOLE_URL=
|
|
|
|
# ── Optional tokens ─────────────────────────────────────────────────────────
|
|
# Primary internal bearer token (dfoa_). When unset, global-setup mints/caches one.
|
|
# DIFY_E2E_TOKEN=
|
|
#
|
|
# External SSO bearer token (dfoe_). Required only for SSO-specific cases.
|
|
# DIFY_E2E_SSO_TOKEN=
|
|
|
|
# ── Optional manual fallbacks ────────────────────────────────────────────────
|
|
# Normally leave these blank: global-setup discovers workspaces and fixture app IDs.
|
|
# They are fallback values for debugging or when provisioning is intentionally skipped.
|
|
# DIFY_E2E_WORKSPACE_ID=
|
|
# DIFY_E2E_WORKSPACE_NAME=auto_test0
|
|
# DIFY_E2E_WS2_ID=
|
|
#
|
|
# DIFY_E2E_CHAT_APP_ID=
|
|
# DIFY_E2E_WORKFLOW_APP_ID=
|
|
# DIFY_E2E_FILE_APP_ID=
|
|
# DIFY_E2E_FILE_CHAT_APP_ID=
|
|
# DIFY_E2E_HITL_APP_ID=
|
|
# DIFY_E2E_HITL_EXTERNAL_APP_ID=
|
|
# DIFY_E2E_HITL_SINGLE_ACTION_APP_ID=
|
|
# DIFY_E2E_HITL_MULTI_NODE_APP_ID=
|
|
# DIFY_E2E_WS2_APP_ID=
|