Skip to content

Commit 2116f19

Browse files
committed
change references to pipeline id to name
1 parent 9394ab5 commit 2116f19

File tree

3 files changed

+6
-8
lines changed

3 files changed

+6
-8
lines changed

packages/wrangler/e2e/dev-with-resources.test.ts

-2
Original file line numberDiff line numberDiff line change
@@ -573,8 +573,6 @@ describe.sequential.each(RUNTIMES)("Bindings: $flags", ({ runtime, flags }) => {
573573
pipeline = "my-pipeline"
574574
`,
575575
"src/index.ts": dedent`
576-
import { Pipeline } from "cloudflare:workers";
577-
578576
export default {
579577
async fetch(request, env, ctx) {
580578
if (env.PIPELINE === undefined) {

packages/wrangler/src/__tests__/deploy.test.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -11239,7 +11239,7 @@ export default{
1123911239
pipelines: [
1124011240
{
1124111241
binding: "MY_PIPELINE",
11242-
pipeline: "0123456789ABCDEF0123456789ABCDEF",
11242+
pipeline: "my-pipeline",
1124311243
},
1124411244
],
1124511245
});
@@ -11250,7 +11250,7 @@ export default{
1125011250
{
1125111251
type: "pipelines",
1125211252
name: "MY_PIPELINE",
11253-
id: "0123456789ABCDEF0123456789ABCDEF",
11253+
pipeline: "my-pipeline",
1125411254
},
1125511255
],
1125611256
});
@@ -11261,7 +11261,7 @@ export default{
1126111261
Worker Startup Time: 100 ms
1126211262
Your worker has access to the following bindings:
1126311263
- Pipelines:
11264-
- MY_PIPELINE: 0123456789ABCDEF0123456789ABCDEF
11264+
- MY_PIPELINE: my-pipeline
1126511265
Uploaded test-name (TIMINGS)
1126611266
Deployed test-name triggers (TIMINGS)
1126711267
https://test-name.test-sub-domain.workers.dev

packages/wrangler/src/__tests__/init.test.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -2445,7 +2445,7 @@ describe("init", () => {
24452445
{
24462446
type: "pipelines",
24472447
name: "PIPELINE_BINDING",
2448-
id: "some-id",
2448+
pipeline: "some-name",
24492449
},
24502450
{
24512451
type: "mtls_certificate",
@@ -2670,7 +2670,7 @@ describe("init", () => {
26702670
pipelines: [
26712671
{
26722672
binding: "PIPELINE_BINDING",
2673-
pipeline: "some-id",
2673+
pipeline: "some-name",
26742674
},
26752675
],
26762676
queues: {
@@ -3212,7 +3212,7 @@ describe("init", () => {
32123212
32133213
[[pipelines]]
32143214
binding = \\"PIPELINE_BINDING\\"
3215-
pipeline = \\"some-id\\"
3215+
pipeline = \\"some-name\\"
32163216
32173217
[[mtls_certificates]]
32183218
binding = \\"MTLS_BINDING\\"

0 commit comments

Comments
 (0)