From 2bd716ece40ef552f2da52aa20888553e23aaec7 Mon Sep 17 00:00:00 2001 From: Donal McBreen Date: Fri, 17 Jan 2025 12:37:12 +0000 Subject: [PATCH] Drop the TestOptionalAccount adapter It's included in the gem lib which is best to avoid and we can infer that it works account optional adapters. --- lib/kamal/secrets/adapters/test_optional_account.rb | 5 ----- test/cli/secrets_test.rb | 6 ------ 2 files changed, 11 deletions(-) delete mode 100644 lib/kamal/secrets/adapters/test_optional_account.rb diff --git a/lib/kamal/secrets/adapters/test_optional_account.rb b/lib/kamal/secrets/adapters/test_optional_account.rb deleted file mode 100644 index 3a252e68..00000000 --- a/lib/kamal/secrets/adapters/test_optional_account.rb +++ /dev/null @@ -1,5 +0,0 @@ -class Kamal::Secrets::Adapters::TestOptionalAccount < Kamal::Secrets::Adapters::Test - def requires_account? - false - end -end diff --git a/test/cli/secrets_test.rb b/test/cli/secrets_test.rb index bd412862..74f309f7 100644 --- a/test/cli/secrets_test.rb +++ b/test/cli/secrets_test.rb @@ -13,12 +13,6 @@ class CliSecretsTest < CliTestCase run_command("fetch", "foo", "bar", "baz", "--adapter", "test") end - test "fetch without required --account" do - assert_equal \ - "\\{\\\"foo\\\":\\\"oof\\\",\\\"bar\\\":\\\"rab\\\",\\\"baz\\\":\\\"zab\\\"\\}", - run_command("fetch", "foo", "bar", "baz", "--adapter", "test_optional_account") - end - test "extract" do assert_equal "oof", run_command("extract", "foo", "{\"foo\":\"oof\", \"bar\":\"rab\", \"baz\":\"zab\"}") end