Skip to content

Commit b0b2f06

Browse files
BrewTestBotchenrui333
authored andcommitted
chamber 3.0.0
chamber: update test Signed-off-by: Rui Chen <rui@chenrui.dev>
1 parent c1cb900 commit b0b2f06

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

Formula/c/chamber.rb

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
class Chamber < Formula
22
desc "CLI for managing secrets through AWS SSM Parameter Store"
33
homepage "https://github.com/segmentio/chamber"
4-
url "https://github.com/segmentio/chamber/archive/refs/tags/v2.14.1.tar.gz"
5-
sha256 "f3bc8391a789c79d40aef28196a857a82dc39fb51bd3851074344cdc2dc819b8"
4+
url "https://github.com/segmentio/chamber/archive/refs/tags/v3.0.0.tar.gz"
5+
sha256 "3d45592fa87cfe4ad4dea14297d4c67087b4cf8f47729301c551ff51ef24f5dd"
66
license "MIT"
77
head "https://github.com/segmentio/chamber.git", branch: "master"
88

@@ -30,12 +30,10 @@ def install
3030
end
3131

3232
test do
33-
ENV.delete "AWS_REGION"
33+
ENV["AWS_REGION"] = "us-east-1"
3434
output = shell_output("#{bin}/chamber list service 2>&1", 1)
35-
assert_match "MissingRegion", output
35+
assert_match "Error: Failed to list store contents: operation error SSM", output
3636

37-
ENV["AWS_REGION"] = "us-west-2"
38-
output = shell_output("#{bin}/chamber list service 2>&1", 1)
39-
assert_match "NoCredentialProviders", output
37+
assert_match version.to_s, shell_output("#{bin}/chamber version")
4038
end
4139
end

0 commit comments

Comments
 (0)