@@ -50,6 +50,14 @@ teardown() {
50
50
51
51
assert_success
52
52
assert_output --regexp " Created[[:blank:]]+$default_container "
53
+
54
+ run podman inspect \
55
+ --format ' {{index .Config.Labels "com.github.containers.toolbox"}}' \
56
+ --type container \
57
+ " $default_container "
58
+
59
+ assert_success
60
+ assert_output " true"
53
61
}
54
62
55
63
@test " create: With a custom name (using option --container)" {
@@ -69,6 +77,14 @@ teardown() {
69
77
70
78
assert_success
71
79
assert_output --regexp " Created[[:blank:]]+$container "
80
+
81
+ run podman inspect \
82
+ --format ' {{index .Config.Labels "com.github.containers.toolbox"}}' \
83
+ --type container \
84
+ " $container "
85
+
86
+ assert_success
87
+ assert_output " true"
72
88
}
73
89
74
90
@test " create: With a custom image and name (using option --container)" {
@@ -88,6 +104,14 @@ teardown() {
88
104
89
105
assert_success
90
106
assert_output --regexp " Created[[:blank:]]+$container "
107
+
108
+ run podman inspect \
109
+ --format ' {{index .Config.Labels "com.github.containers.toolbox"}}' \
110
+ --type container \
111
+ " $container "
112
+
113
+ assert_success
114
+ assert_output " true"
91
115
}
92
116
93
117
@test " create: Try without --assumeyes" {
@@ -182,6 +206,14 @@ teardown() {
182
206
183
207
assert_success
184
208
assert_output --regexp " Created[[:blank:]]+$container "
209
+
210
+ run podman inspect \
211
+ --format ' {{index .Config.Labels "com.github.containers.toolbox"}}' \
212
+ --type container \
213
+ " $container "
214
+
215
+ assert_success
216
+ assert_output " true"
185
217
}
186
218
187
219
@test " create: Arch Linux ('--release latest')" {
@@ -210,6 +242,14 @@ teardown() {
210
242
211
243
assert_success
212
244
assert_output --regexp " Created[[:blank:]]+$container "
245
+
246
+ run podman inspect \
247
+ --format ' {{index .Config.Labels "com.github.containers.toolbox"}}' \
248
+ --type container \
249
+ " $container "
250
+
251
+ assert_success
252
+ assert_output " true"
213
253
}
214
254
215
255
@test " create: Arch Linux ('--release rolling')" {
@@ -238,6 +278,14 @@ teardown() {
238
278
239
279
assert_success
240
280
assert_output --regexp " Created[[:blank:]]+$container "
281
+
282
+ run podman inspect \
283
+ --format ' {{index .Config.Labels "com.github.containers.toolbox"}}' \
284
+ --type container \
285
+ " $container "
286
+
287
+ assert_success
288
+ assert_output " true"
241
289
}
242
290
243
291
@test " create: Fedora 34" {
@@ -257,6 +305,14 @@ teardown() {
257
305
258
306
assert_success
259
307
assert_output --regexp " Created[[:blank:]]+$container "
308
+
309
+ run podman inspect \
310
+ --format ' {{index .Config.Labels "com.github.containers.toolbox"}}' \
311
+ --type container \
312
+ " $container "
313
+
314
+ assert_success
315
+ assert_output " true"
260
316
}
261
317
262
318
@test " create: RHEL 8.10" {
@@ -276,6 +332,14 @@ teardown() {
276
332
277
333
assert_success
278
334
assert_output --regexp " Created[[:blank:]]+$container "
335
+
336
+ run podman inspect \
337
+ --format ' {{index .Config.Labels "com.github.containers.toolbox"}}' \
338
+ --type container \
339
+ " $container "
340
+
341
+ assert_success
342
+ assert_output " true"
279
343
}
280
344
281
345
@test " create: Ubuntu 16.04" {
@@ -295,6 +359,14 @@ teardown() {
295
359
296
360
assert_success
297
361
assert_output --regexp " Created[[:blank:]]+$container "
362
+
363
+ run podman inspect \
364
+ --format ' {{index .Config.Labels "com.github.containers.toolbox"}}' \
365
+ --type container \
366
+ " $container "
367
+
368
+ assert_success
369
+ assert_output " true"
298
370
}
299
371
300
372
@test " create: Ubuntu 18.04" {
@@ -314,6 +386,14 @@ teardown() {
314
386
315
387
assert_success
316
388
assert_output --regexp " Created[[:blank:]]+$container "
389
+
390
+ run podman inspect \
391
+ --format ' {{index .Config.Labels "com.github.containers.toolbox"}}' \
392
+ --type container \
393
+ " $container "
394
+
395
+ assert_success
396
+ assert_output " true"
317
397
}
318
398
319
399
@test " create: Ubuntu 20.04" {
@@ -333,6 +413,14 @@ teardown() {
333
413
334
414
assert_success
335
415
assert_output --regexp " Created[[:blank:]]+$container "
416
+
417
+ run podman inspect \
418
+ --format ' {{index .Config.Labels "com.github.containers.toolbox"}}' \
419
+ --type container \
420
+ " $container "
421
+
422
+ assert_success
423
+ assert_output " true"
336
424
}
337
425
338
426
@test " create: With a custom image without a name" {
@@ -350,6 +438,14 @@ teardown() {
350
438
351
439
assert_success
352
440
assert_output --regexp " Created[[:blank:]]+$image "
441
+
442
+ run podman inspect \
443
+ --format ' {{index .Config.Labels "com.github.containers.toolbox"}}' \
444
+ --type container \
445
+ " $image "
446
+
447
+ assert_success
448
+ assert_output " true"
353
449
}
354
450
355
451
@test " create: With a custom image without a name, and container name (using positional argument)" {
@@ -369,6 +465,14 @@ teardown() {
369
465
370
466
assert_success
371
467
assert_output --regexp " Created[[:blank:]]+$container "
468
+
469
+ run podman inspect \
470
+ --format ' {{index .Config.Labels "com.github.containers.toolbox"}}' \
471
+ --type container \
472
+ " $container "
473
+
474
+ assert_success
475
+ assert_output " true"
372
476
}
373
477
374
478
@test " create: With a custom image without a name, and container name (using option --container)" {
@@ -388,6 +492,14 @@ teardown() {
388
492
389
493
assert_success
390
494
assert_output --regexp " Created[[:blank:]]+$container "
495
+
496
+ run podman inspect \
497
+ --format ' {{index .Config.Labels "com.github.containers.toolbox"}}' \
498
+ --type container \
499
+ " $container "
500
+
501
+ assert_success
502
+ assert_output " true"
391
503
}
392
504
393
505
@test " create: Try the same name again" {
@@ -1069,4 +1181,12 @@ teardown() {
1069
1181
1070
1182
assert_success
1071
1183
assert_output --regexp " Created[[:blank:]]+$container "
1184
+
1185
+ run podman inspect \
1186
+ --format ' {{index .Config.Labels "com.github.containers.toolbox"}}' \
1187
+ --type container \
1188
+ " $container "
1189
+
1190
+ assert_success
1191
+ assert_output " true"
1072
1192
}
0 commit comments