From 2cf8e348c44f82b96a63113fc08ea815fa1871cb Mon Sep 17 00:00:00 2001 From: Nathaniel Young Date: Sat, 21 Sep 2024 16:11:15 -0700 Subject: [PATCH] test(functions): adds case for apt_get_packages (#22) --- .../functions/apt_get_packages/runners.toml | 16 ++++++++++++++++ .../functions/apt_get_packages/test_config.toml | 5 +++++ 2 files changed, 21 insertions(+) create mode 100644 test/resources/functions/apt_get_packages/runners.toml create mode 100644 test/resources/functions/apt_get_packages/test_config.toml diff --git a/test/resources/functions/apt_get_packages/runners.toml b/test/resources/functions/apt_get_packages/runners.toml new file mode 100644 index 0000000..00a5cc4 --- /dev/null +++ b/test/resources/functions/apt_get_packages/runners.toml @@ -0,0 +1,16 @@ +[common.test] + +assert-install-names = ["apt_get_packages"] + +[[common.test.commands]] + +command = "bash" +arguments = [ + "-ceu", + "which jq", +] +assert-stdout-equals = "/usr/bin/jq" + +[case.common] +os = "ubuntu-22.04" +image = "phusion/baseimage:jammy-1.0.4" diff --git a/test/resources/functions/apt_get_packages/test_config.toml b/test/resources/functions/apt_get_packages/test_config.toml new file mode 100644 index 0000000..f98f70c --- /dev/null +++ b/test/resources/functions/apt_get_packages/test_config.toml @@ -0,0 +1,5 @@ +[ apt_get_packages ] +options = [ + "--no-install-recommends", + "jq" +]