@@ -79,15 +79,15 @@ describe.skipIf(!CLOUDFLARE_ACCOUNT_ID)(
7979 const output = await helper . run ( `wrangler deployments list` ) ;
8080
8181 expect ( normalize ( output . stdout ) ) . toMatchInlineSnapshot ( `
82- "Created: TIMESTAMP
83- 84- Source: Upload
85- Message: Automatic deployment on upload.
86- Version(s): (100%) 00000000-0000-0000-0000-000000000000
87- Created: TIMESTAMP
88- Tag: -
89- Message: -"
90- ` ) ;
82+ "Created: TIMESTAMP
83+ 84+ Source: Upload
85+ Message: Automatic deployment on upload.
86+ Version(s): (100%) 00000000-0000-0000-0000-000000000000
87+ Created: TIMESTAMP
88+ Tag: -
89+ Message: -"
90+ ` ) ;
9191 } ) ;
9292
9393 it ( "modifies & deploys a Worker" , async ( ) => {
@@ -117,92 +117,92 @@ describe.skipIf(!CLOUDFLARE_ACCOUNT_ID)(
117117 it ( "lists 2 deployments" , async ( ) => {
118118 const dep = await helper . run ( `wrangler deployments list` ) ;
119119 expect ( normalize ( dep . stdout ) ) . toMatchInlineSnapshot ( `
120- "Created: TIMESTAMP
121- 122- Source: Upload
123- Message: Automatic deployment on upload.
124- Version(s): (100%) 00000000-0000-0000-0000-000000000000
125- Created: TIMESTAMP
126- Tag: -
127- Message: -
128- Created: TIMESTAMP
129- 130- Source: Unknown (deployment)
131- Message: -
132- Version(s): (100%) 00000000-0000-0000-0000-000000000000
133- Created: TIMESTAMP
134- Tag: -
135- Message: -"
136- ` ) ;
120+ "Created: TIMESTAMP
121+ 122+ Source: Upload
123+ Message: Automatic deployment on upload.
124+ Version(s): (100%) 00000000-0000-0000-0000-000000000000
125+ Created: TIMESTAMP
126+ Tag: -
127+ Message: -
128+ Created: TIMESTAMP
129+ 130+ Source: Unknown (deployment)
131+ Message: -
132+ Version(s): (100%) 00000000-0000-0000-0000-000000000000
133+ Created: TIMESTAMP
134+ Tag: -
135+ Message: -"
136+ ` ) ;
137137 } ) ;
138138
139139 it ( "rolls back" , async ( ) => {
140140 const output = await helper . run (
141141 `wrangler rollback --message "A test message"`
142142 ) ;
143143 expect ( normalize ( output . stdout ) ) . toMatchInlineSnapshot ( `
144- "├ Fetching latest deployment
145- │
146- ├ Your current deployment has 1 version(s):
147- │
148- │ (100%) 00000000-0000-0000-0000-000000000000
149- │ Created: TIMESTAMP
150- │ Tag: -
151- │ Message: -
152- │
153- ├ Finding latest stable Worker Version to rollback to
154- │
155- │
156- ? Please provide an optional message for this rollback (120 characters max)
157- 🤖 Using default value in non-interactive context: A test message
158- │
159- ├ WARNING You are about to rollback to Worker Version 00000000-0000-0000-0000-000000000000.
160- │ This will immediately replace the current deployment and become the active deployment across all your deployed triggers.
161- │ However, your local development environment will not be affected by this rollback.
162- │ Rolling back to a previous deployment will not rollback any of the bound resources (Durable Object, D1, R2, KV, etc).
163- │
164- │ (100%) 00000000-0000-0000-0000-000000000000
165- │ Created: TIMESTAMP
166- │ Tag: -
167- │ Message: -
168- │
169- ? Are you sure you want to deploy this Worker Version to 100% of traffic?
170- 🤖 Using fallback value in non-interactive context: yes
171- Performing rollback...
172- │
173- ╰ SUCCESS Worker Version 00000000-0000-0000-0000-000000000000 has been deployed to 100% of traffic.
174- Current Version ID: 00000000-0000-0000-0000-000000000000"
175- ` ) ;
144+ "├ Fetching latest deployment
145+ │
146+ ├ Your current deployment has 1 version(s):
147+ │
148+ │ (100%) 00000000-0000-0000-0000-000000000000
149+ │ Created: TIMESTAMP
150+ │ Tag: -
151+ │ Message: -
152+ │
153+ ├ Finding latest stable Worker Version to rollback to
154+ │
155+ │
156+ ? Please provide an optional message for this rollback (120 characters max)
157+ 🤖 Using default value in non-interactive context: A test message
158+ │
159+ ├ WARNING You are about to rollback to Worker Version 00000000-0000-0000-0000-000000000000.
160+ │ This will immediately replace the current deployment and become the active deployment across all your deployed triggers.
161+ │ However, your local development environment will not be affected by this rollback.
162+ │ Rolling back to a previous deployment will not rollback any of the bound resources (Durable Object, D1, R2, KV, etc).
163+ │
164+ │ (100%) 00000000-0000-0000-0000-000000000000
165+ │ Created: TIMESTAMP
166+ │ Tag: -
167+ │ Message: -
168+ │
169+ ? Are you sure you want to deploy this Worker Version to 100% of traffic?
170+ 🤖 Using fallback value in non-interactive context: yes
171+ Performing rollback...
172+ │
173+ ╰ SUCCESS Worker Version 00000000-0000-0000-0000-000000000000 has been deployed to 100% of traffic.
174+ Current Version ID: 00000000-0000-0000-0000-000000000000"
175+ ` ) ;
176176 } ) ;
177177
178178 it ( "lists deployments" , async ( ) => {
179179 const dep = await helper . run ( `wrangler deployments list` ) ;
180180 expect ( normalize ( dep . stdout ) ) . toMatchInlineSnapshot ( `
181- "Created: TIMESTAMP
182- 183- Source: Upload
184- Message: Automatic deployment on upload.
185- Version(s): (100%) 00000000-0000-0000-0000-000000000000
186- Created: TIMESTAMP
187- Tag: -
188- Message: -
189- Created: TIMESTAMP
190- 191- Source: Unknown (deployment)
192- Message: -
193- Version(s): (100%) 00000000-0000-0000-0000-000000000000
194- Created: TIMESTAMP
195- Tag: -
196- Message: -
197- Created: TIMESTAMP
198- 199- Source: Unknown (deployment)
200- Message: A test message
201- Version(s): (100%) 00000000-0000-0000-0000-000000000000
202- Created: TIMESTAMP
203- Tag: -
204- Message: -"
205- ` ) ;
181+ "Created: TIMESTAMP
182+ 183+ Source: Upload
184+ Message: Automatic deployment on upload.
185+ Version(s): (100%) 00000000-0000-0000-0000-000000000000
186+ Created: TIMESTAMP
187+ Tag: -
188+ Message: -
189+ Created: TIMESTAMP
190+ 191+ Source: Unknown (deployment)
192+ Message: -
193+ Version(s): (100%) 00000000-0000-0000-0000-000000000000
194+ Created: TIMESTAMP
195+ Tag: -
196+ Message: -
197+ Created: TIMESTAMP
198+ 199+ Source: Unknown (deployment)
200+ Message: A test message
201+ Version(s): (100%) 00000000-0000-0000-0000-000000000000
202+ Created: TIMESTAMP
203+ Tag: -
204+ Message: -"
205+ ` ) ;
206206 } ) ;
207207 }
208208) ;
0 commit comments