Skip to content

Commit aeb43f6

Browse files
BrewTestBotchenrui333
authored andcommitted
cagent 1.22.0
cagent: update test Signed-off-by: Rui Chen <rui@chenrui.dev>
1 parent 350a9b6 commit aeb43f6

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

Formula/c/cagent.rb

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
class Cagent < Formula
22
desc "Agent Builder and Runtime by Docker Engineering"
33
homepage "https://github.com/docker/cagent"
4-
url "https://github.com/docker/cagent/archive/refs/tags/v1.21.0.tar.gz"
5-
sha256 "12fdec39e613dcb4865df439ad0ec57c0f0441f1493f1a5f0c4d310a2b7086de"
4+
url "https://github.com/docker/cagent/archive/refs/tags/v1.22.0.tar.gz"
5+
sha256 "cffcee722e69ecb8111fda9e6f8e6d46da09299a57b74f11982780a5ecd27e90"
66
license "Apache-2.0"
77
head "https://github.com/docker/cagent.git", branch: "main"
88

@@ -40,6 +40,7 @@ def install
4040
YAML
4141

4242
assert_match("cagent version v#{version}", shell_output("#{bin}/cagent version"))
43-
assert_match(/must be set.*OPENAI_API_KEY/m, shell_output("#{bin}/cagent exec --dry-run agent.yaml 2>&1", 1))
43+
output = shell_output("#{bin}/cagent exec --dry-run agent.yaml hello 2>&1", 1)
44+
assert_match /must be set.*OPENAI_API_KEY/m, output
4445
end
4546
end

0 commit comments

Comments
 (0)