Skip to content

Commit 6eadfca

Browse files
committed
Test: add getContainerId in CLITest.swift
Signed-off-by: ChengHao Yang <17496418+tico88612@users.noreply.github.com>
1 parent 79c4f5e commit 6eadfca

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Tests/CLITests/Utilities/CLITest.swift

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -312,6 +312,10 @@ class CLITest {
312312
try inspectContainer(name).status
313313
}
314314

315+
func getContainerId(_ name: String) throws -> String {
316+
try inspectContainer(name).configuration.id
317+
}
318+
315319
func inspectContainer(_ name: String) throws -> inspectOutput {
316320
let response = try run(arguments: [
317321
"inspect",

0 commit comments

Comments
 (0)