Skip to content

Commit

Permalink
kubehound 1.6.4
Browse files Browse the repository at this point in the history
kubehound: update test

Signed-off-by: Rui Chen <[email protected]>
  • Loading branch information
BrewTestBot authored and chenrui333 committed Jan 28, 2025
1 parent 0051663 commit 8f6c32a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Formula/k/kubehound.rb
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
class Kubehound < Formula
desc "Tool for building Kubernetes attack paths"
homepage "https://kubehound.io"
url "https://github.com/DataDog/KubeHound/archive/refs/tags/v1.6.3.tar.gz"
sha256 "e1858065aeb44d6dccb002bc909be9fd8b9b228ae004c4d74bfebe80fa8c13fa"
url "https://github.com/DataDog/KubeHound/archive/refs/tags/v1.6.4.tar.gz"
sha256 "63cb38cc12f33842a255852a45d2c795f8b20cd7de546154af1dc6a7c9fa0441"
license "Apache-2.0"

livecheck do
Expand Down Expand Up @@ -32,7 +32,7 @@ def install
-X github.com/DataDog/KubeHound/pkg/config.BuildOs=#{goos}
-X github.com/DataDog/KubeHound/pkg/config.BuildArch=#{goarch}
]
system "go", "build", *std_go_args(ldflags:), "./cmd/kubehound/"
system "go", "build", *std_go_args(ldflags:), "-tags", "no_backend", "./cmd/kubehound/"

generate_completions_from_executable(bin/"kubehound", "completion")
end
Expand All @@ -41,7 +41,7 @@ def install
assert_match "kubehound version: v#{version}", shell_output("#{bin}/kubehound version")

ENV["DOCKER_HOST"] = "unix://#{testpath}/invalid.sock"
error_message = "error starting the kubehound stack: Cannot connect to the Docker daemon"
error_message = "error starting the kubehound stack"
assert_match error_message, shell_output("#{bin}/kubehound backend up 2>&1", 1)
end
end

0 comments on commit 8f6c32a

Please sign in to comment.