From a92554193c193fe3226059223a648d214608d3b2 Mon Sep 17 00:00:00 2001 From: Siak Hooi <73884114+siakhooi@users.noreply.github.com> Date: Thu, 18 Apr 2024 01:42:47 +0000 Subject: [PATCH] bats - update shed-config-get usage test --- .../shed-config-get/shed-config-get.bats | 8 ++++++++ .../shed-config-get/shed_config-get.bats | 8 ++++++++ tests/bats-test-scripts/shed-config-get/usage.expected | 1 + 3 files changed, 17 insertions(+) create mode 100644 tests/bats-test-scripts/shed-config-get/usage.expected diff --git a/tests/bats-test-scripts/shed-config-get/shed-config-get.bats b/tests/bats-test-scripts/shed-config-get/shed-config-get.bats index bf81bb7..325aa46 100644 --- a/tests/bats-test-scripts/shed-config-get/shed-config-get.bats +++ b/tests/bats-test-scripts/shed-config-get/shed-config-get.bats @@ -2,6 +2,14 @@ setup(){ load '../common-setup' common_setup } +@test "shed-config-get" { + run shed-config-get + cat_expected "usage" |assert_output - +} +@test "shed-config-get .xxx .yyy" { + run shed-config-get xxx yyy + cat_expected "usage" |assert_output - +} @test "shed-config-get .shed-init.shed" { run shed-config-get .shed-init.shed echo "D" | assert_output - diff --git a/tests/bats-test-scripts/shed-config-get/shed_config-get.bats b/tests/bats-test-scripts/shed-config-get/shed_config-get.bats index f34c8d4..16bfd65 100644 --- a/tests/bats-test-scripts/shed-config-get/shed_config-get.bats +++ b/tests/bats-test-scripts/shed-config-get/shed_config-get.bats @@ -2,6 +2,14 @@ setup(){ load '../common-setup' common_setup } +@test "shed config-get" { + run shed config-get + cat_expected "usage" |assert_output - +} +@test "shed config-get .xxx .yyy" { + run shed config-get xxx yyy + cat_expected "usage" |assert_output - +} @test "shed config-get .shed-init.shed" { run shed config-get .shed-init.shed echo "D" | assert_output - diff --git a/tests/bats-test-scripts/shed-config-get/usage.expected b/tests/bats-test-scripts/shed-config-get/usage.expected new file mode 100644 index 0000000..1a67f5a --- /dev/null +++ b/tests/bats-test-scripts/shed-config-get/usage.expected @@ -0,0 +1 @@ +Usage: shed-config-get yamlPath \ No newline at end of file