generated from coulomb/repo-seed
- flake.nix adapted from inter-hub: appName=ihp-railiance-probe, stripped to core packages, GHC 9.10.3 Bug 1+2 overlays carried verbatim (pname check updated to ihp-railiance-probe-models) - IHP project scaffold: Main.hs, Config.hs, App.cabal, Setup.hs, Makefile - Schema: probes table (id, name, created_at) - Health endpoint: GET /healthz → "ok" (HealthController) - Probes CRUD: ProbesController + 4 views (Index, New, Show, Edit) - Hspec test suite: Test/ProbeControllerSpec covers /probes and /healthz - Helm chart in chart/: deployment, service, ingress, secret templates - devenv.nix, devenv.yaml, .ghci, tailwind config Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
15 lines
350 B
Haskell
15 lines
350 B
Haskell
module Test.ProbeControllerSpec where
|
|
|
|
import Test.Hspec
|
|
import IHP.HSpec
|
|
|
|
spec :: Spec
|
|
spec = describe "ProbeController" do
|
|
it "GET /probes returns 200" do
|
|
response <- get "/probes"
|
|
response `shouldRespondWith` 200
|
|
|
|
it "GET /healthz returns 200" do
|
|
response <- get "/healthz"
|
|
response `shouldRespondWith` 200
|