From 3aeb7cf288319e35eb9c5e26ea18d97452462c1e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ond=C5=99ej=20M=C3=ADchal?= Date: Sun, 7 Nov 2021 15:11:05 +0200 Subject: [PATCH] test/system: Add test placeholders for entering containers These tests need to be implemented in the future but they require some magic with socat or similar tools as entering a container is creating a new subshell and that is hard to monitor from a bash script. Better not to forget then. https://github.com/containers/toolbox/pull/915 --- test/system/100-root.bats | 5 +++++ test/system/105-enter.bats | 15 +++++++++++++++ 2 files changed, 20 insertions(+) diff --git a/test/system/100-root.bats b/test/system/100-root.bats index 5782e9a..5eb5ab5 100644 --- a/test/system/100-root.bats +++ b/test/system/100-root.bats @@ -20,3 +20,8 @@ teardown() { assert_line --index 0 "No toolbox containers found. Create now? [y/N] A container can be created later with the 'create' command." assert_line --index 1 "Run 'toolbox --help' for usage." } + +# TODO: Write the test +@test "root: Enter the default container when 1 non-default container is present" { + skip "Testing of entering toolboxes is not implemented" +} diff --git a/test/system/105-enter.bats b/test/system/105-enter.bats index da1168f..4914e0e 100644 --- a/test/system/105-enter.bats +++ b/test/system/105-enter.bats @@ -53,3 +53,18 @@ teardown() { assert_line --index 1 "Use the '--container' option to select a toolbox." assert_line --index 2 "Run 'toolbox --help' for usage." } + +# TODO: Write the test +@test "enter: Enter the default toolbox" { + skip "Testing of entering toolboxes is not implemented" +} + +# TODO: Write the test +@test "enter: Enter the default toolbox when only 1 non-default toolbox is present" { + skip "Testing of entering toolboxes is not implemented" +} + +# TODO: Write the test +@test "enter: Enter a specific toolbox" { + skip "Testing of entering toolboxes is not implemented" +}