Skip to content

Commit 81e1990

Browse files
nicohrubecclaude
andcommitted
fix(e2e): Restore wrangler.toml comments, update test names for streaming
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 2d12aaf commit 81e1990

2 files changed

Lines changed: 99 additions & 0 deletions

File tree

dev-packages/e2e-tests/test-applications/cloudflare-workers-streaming/tests/index.test.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,7 @@ test.describe('Alarm instrumentation', () => {
148148
const setAlarmSpan = await setAlarmSpanPromise;
149149
const alarmSpan = await alarmSpanPromise;
150150

151+
// Alarm creates a streamed span with correct attributes
151152
expect(getSpanOp(alarmSpan)).toBe('function');
152153
expect(alarmSpan.attributes?.['sentry.origin']?.value).toBe('auto.faas.cloudflare.durable_object');
153154

dev-packages/e2e-tests/test-applications/cloudflare-workers-streaming/wrangler.toml

Lines changed: 98 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,108 @@ main = "src/index.ts"
44
compatibility_date = "2024-07-25"
55
compatibility_flags = ["nodejs_compat"]
66

7+
# [vars]
8+
# E2E_TEST_DSN = ""
9+
10+
# Automatically place your workloads in an optimal location to minimize latency.
11+
# If you are running back-end logic in a Worker, running it closer to your back-end infrastructure
12+
# rather than the end user may result in better performance.
13+
# Docs: https://developers.cloudflare.com/workers/configuration/smart-placement/#smart-placement
14+
# [placement]
15+
# mode = "smart"
16+
17+
# Variable bindings. These are arbitrary, plaintext strings (similar to environment variables)
18+
# Docs:
19+
# - https://developers.cloudflare.com/workers/wrangler/configuration/#environment-variables
20+
# Note: Use secrets to store sensitive data.
21+
# - https://developers.cloudflare.com/workers/configuration/secrets/
22+
# [vars]
23+
# MY_VARIABLE = "production_value"
24+
25+
# Bind the Workers AI model catalog. Run machine learning models, powered by serverless GPUs, on Cloudflare’s global network
26+
# Docs: https://developers.cloudflare.com/workers/wrangler/configuration/#workers-ai
27+
# [ai]
28+
# binding = "AI"
29+
30+
# Bind an Analytics Engine dataset. Use Analytics Engine to write analytics within your Pages Function.
31+
# Docs: https://developers.cloudflare.com/workers/wrangler/configuration/#analytics-engine-datasets
32+
# [[analytics_engine_datasets]]
33+
# binding = "MY_DATASET"
34+
35+
# Bind a headless browser instance running on Cloudflare's global network.
36+
# Docs: https://developers.cloudflare.com/workers/wrangler/configuration/#browser-rendering
37+
# [browser]
38+
# binding = "MY_BROWSER"
39+
40+
# Bind a D1 database. D1 is Cloudflare’s native serverless SQL database.
41+
# Docs: https://developers.cloudflare.com/workers/wrangler/configuration/#d1-databases
42+
# [[d1_databases]]
43+
# binding = "MY_DB"
44+
# database_name = "my-database"
45+
# database_id = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
46+
47+
# Bind a dispatch namespace. Use Workers for Platforms to deploy serverless functions programmatically on behalf of your customers.
48+
# Docs: https://developers.cloudflare.com/workers/wrangler/configuration/#dispatch-namespace-bindings-workers-for-platforms
49+
# [[dispatch_namespaces]]
50+
# binding = "MY_DISPATCHER"
51+
# namespace = "my-namespace"
52+
53+
# Bind a Durable Object. Durable objects are a scale-to-zero compute primitive based on the actor model.
54+
# Durable Objects can live for as long as needed. Use these when you need a long-running "server", such as in realtime apps.
55+
# Docs: https://developers.cloudflare.com/workers/wrangler/configuration/#durable-objects
756
[[durable_objects.bindings]]
857
name = "MY_DURABLE_OBJECT"
958
class_name = "MyDurableObject"
1059

60+
# Durable Object migrations.
61+
# Docs: https://developers.cloudflare.com/workers/wrangler/configuration/#migrations
1162
[[migrations]]
1263
tag = "v1"
1364
new_sqlite_classes = ["MyDurableObject"]
65+
66+
# Bind a Hyperdrive configuration. Use to accelerate access to your existing databases from Cloudflare Workers.
67+
# Docs: https://developers.cloudflare.com/workers/wrangler/configuration/#hyperdrive
68+
# [[hyperdrive]]
69+
# binding = "MY_HYPERDRIVE"
70+
# id = "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
71+
72+
# Bind a KV Namespace. Use KV as persistent storage for small key-value pairs.
73+
# Docs: https://developers.cloudflare.com/workers/wrangler/configuration/#kv-namespaces
74+
# [[kv_namespaces]]
75+
# binding = "MY_KV_NAMESPACE"
76+
# id = "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
77+
78+
# Bind an mTLS certificate. Use to present a client certificate when communicating with another service.
79+
# Docs: https://developers.cloudflare.com/workers/wrangler/configuration/#mtls-certificates
80+
# [[mtls_certificates]]
81+
# binding = "MY_CERTIFICATE"
82+
# certificate_id = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
83+
84+
# Bind a Queue producer. Use this binding to schedule an arbitrary task that may be processed later by a Queue consumer.
85+
# Docs: https://developers.cloudflare.com/workers/wrangler/configuration/#queues
86+
# [[queues.producers]]
87+
# binding = "MY_QUEUE"
88+
# queue = "my-queue"
89+
90+
# Bind a Queue consumer. Queue Consumers can retrieve tasks scheduled by Producers to act on them.
91+
# Docs: https://developers.cloudflare.com/workers/wrangler/configuration/#queues
92+
# [[queues.consumers]]
93+
# queue = "my-queue"
94+
95+
# Bind an R2 Bucket. Use R2 to store arbitrarily large blobs of data, such as files.
96+
# Docs: https://developers.cloudflare.com/workers/wrangler/configuration/#r2-buckets
97+
# [[r2_buckets]]
98+
# binding = "MY_BUCKET"
99+
# bucket_name = "my-bucket"
100+
101+
# Bind another Worker service. Use this binding to call another Worker without network overhead.
102+
# Docs: https://developers.cloudflare.com/workers/wrangler/configuration/#service-bindings
103+
# [[services]]
104+
# binding = "MY_SERVICE"
105+
# service = "my-service"
106+
107+
# Bind a Vectorize index. Use to store and query vector embeddings for semantic search, classification and other vector search use-cases.
108+
# Docs: https://developers.cloudflare.com/workers/wrangler/configuration/#vectorize-indexes
109+
# [[vectorize]]
110+
# binding = "MY_INDEX"
111+
# index_name = "my-index"

0 commit comments

Comments
 (0)