@@ -56,6 +56,7 @@ describe('getCreateArgs', () => {
56
56
[ 'use' , 'true' ] ,
57
57
[ 'cache-binary' , 'true' ] ,
58
58
[ 'cleanup' , 'true' ] ,
59
+ [ 'keep-state' , 'false' ]
59
60
] ) ,
60
61
[
61
62
'create' ,
@@ -74,6 +75,7 @@ describe('getCreateArgs', () => {
74
75
[ 'use' , 'true' ] ,
75
76
[ 'cache-binary' , 'true' ] ,
76
77
[ 'cleanup' , 'true' ] ,
78
+ [ 'keep-state' , 'false' ]
77
79
] ) ,
78
80
[
79
81
'create' ,
@@ -92,6 +94,7 @@ describe('getCreateArgs', () => {
92
94
[ 'driver-opts' , 'image=moby/buildkit:master\nnetwork=host' ] ,
93
95
[ 'cache-binary' , 'true' ] ,
94
96
[ 'cleanup' , 'true' ] ,
97
+ [ 'keep-state' , 'false' ]
95
98
] ) ,
96
99
[
97
100
'create' ,
@@ -112,6 +115,7 @@ describe('getCreateArgs', () => {
112
115
[ 'use' , 'true' ] ,
113
116
[ 'cache-binary' , 'true' ] ,
114
117
[ 'cleanup' , 'true' ] ,
118
+ [ 'keep-state' , 'false' ]
115
119
] ) ,
116
120
[
117
121
'create' ,
@@ -132,6 +136,7 @@ describe('getCreateArgs', () => {
132
136
[ 'use' , 'true' ] ,
133
137
[ 'cache-binary' , 'true' ] ,
134
138
[ 'cleanup' , 'true' ] ,
139
+ [ 'keep-state' , 'false' ]
135
140
] ) ,
136
141
[
137
142
'create' ,
@@ -151,6 +156,7 @@ describe('getCreateArgs', () => {
151
156
[ 'driver-opts' , `"env.no_proxy=localhost,127.0.0.1,.mydomain"` ] ,
152
157
[ 'cache-binary' , 'true' ] ,
153
158
[ 'cleanup' , 'true' ] ,
159
+ [ 'keep-state' , 'false' ] ,
154
160
] ) ,
155
161
[
156
162
'create' ,
@@ -169,6 +175,7 @@ describe('getCreateArgs', () => {
169
175
[ 'platforms' , 'linux/amd64\n"linux/arm64,linux/arm/v7"' ] ,
170
176
[ 'cache-binary' , 'true' ] ,
171
177
[ 'cleanup' , 'true' ] ,
178
+ [ 'keep-state' , 'false' ] ,
172
179
] ) ,
173
180
[
174
181
'create' ,
@@ -187,6 +194,7 @@ describe('getCreateArgs', () => {
187
194
[ 'driver' , 'unknown' ] ,
188
195
[ 'cache-binary' , 'true' ] ,
189
196
[ 'cleanup' , 'true' ] ,
197
+ [ 'keep-state' , 'false' ] ,
190
198
] ) ,
191
199
[
192
200
'create' ,
@@ -203,6 +211,7 @@ describe('getCreateArgs', () => {
203
211
[ 'buildkitd-config' , path . join ( fixturesDir , 'buildkitd.toml' ) ] ,
204
212
[ 'cache-binary' , 'true' ] ,
205
213
[ 'cleanup' , 'true' ] ,
214
+ [ 'keep-state' , 'false' ] ,
206
215
] ) ,
207
216
[
208
217
'create' ,
@@ -221,6 +230,7 @@ describe('getCreateArgs', () => {
221
230
[ 'buildkitd-config-inline' , 'debug = true' ] ,
222
231
[ 'cache-binary' , 'true' ] ,
223
232
[ 'cleanup' , 'true' ] ,
233
+ [ 'keep-state' , 'false' ] ,
224
234
] ) ,
225
235
[
226
236
'create' ,
@@ -240,14 +250,53 @@ describe('getCreateArgs', () => {
240
250
[ 'buildkitd-flags' , '--allow-insecure-entitlement network.host' ] ,
241
251
[ 'cache-binary' , 'true' ] ,
242
252
[ 'cleanup' , 'true' ] ,
253
+ [ 'keep-state' , 'false' ] ,
243
254
] ) ,
244
255
[
245
256
'create' ,
246
257
'--name' , 'builder-9b1deb4d-3b7d-4bad-9bdd-2b0d7b3dcb6d' ,
247
258
'--driver' , 'cloud' ,
248
259
'--buildkitd-flags' , '--allow-insecure-entitlement network.host' ,
249
260
]
250
- ]
261
+ ] ,
262
+ [
263
+ 11 ,
264
+ 'v0.10.3' ,
265
+ new Map < string , string > ( [
266
+ [ 'install' , 'false' ] ,
267
+ [ 'use' , 'true' ] ,
268
+ [ 'cleanup' , 'true' ] ,
269
+ [ 'cache-binary' , 'true' ] ,
270
+ [ 'keep-state' , 'false' ] ,
271
+ [ 'name' , 'test-builder-name' ] ,
272
+ ] ) ,
273
+ [
274
+ 'create' ,
275
+ '--name' , 'test-builder-name' ,
276
+ '--driver' , 'docker-container' ,
277
+ '--buildkitd-flags' , '--allow-insecure-entitlement security.insecure --allow-insecure-entitlement network.host' ,
278
+ '--use'
279
+ ]
280
+ ] ,
281
+ [
282
+ 12 ,
283
+ 'v0.10.3' ,
284
+ new Map < string , string > ( [
285
+ [ 'install' , 'false' ] ,
286
+ [ 'use' , 'true' ] ,
287
+ [ 'cleanup' , 'true' ] ,
288
+ [ 'cache-binary' , 'true' ] ,
289
+ [ 'keep-state' , 'true' ] ,
290
+ [ 'name' , 'test-builder-name' ] ,
291
+ ] ) ,
292
+ [
293
+ 'create' ,
294
+ '--name' , 'test-builder-name' ,
295
+ '--driver' , 'docker-container' ,
296
+ '--buildkitd-flags' , '--allow-insecure-entitlement security.insecure --allow-insecure-entitlement network.host' ,
297
+ '--use' ,
298
+ ]
299
+ ] ,
251
300
] ) (
252
301
'[%d] given buildx %s and %p as inputs, returns %p' ,
253
302
async ( num : number , buildxVersion : string , inputs : Map < string , string > , expected : Array < string > ) => {
@@ -285,6 +334,7 @@ describe('getAppendArgs', () => {
285
334
[ 'use' , 'true' ] ,
286
335
[ 'cache-binary' , 'true' ] ,
287
336
[ 'cleanup' , 'true' ] ,
337
+ [ 'keep-state' , 'false' ]
288
338
] ) ,
289
339
{
290
340
"name" : "aws_graviton2" ,
0 commit comments