Unverified Commit 3daff806 authored by Jonathan Davies's avatar Jonathan Davies
Browse files

nixos/temporal: tests: Add grpc-health-probe checks

parent d342a4a6
Loading
Loading
Loading
Loading
+13 −0
Original line number Diff line number Diff line
@@ -95,6 +95,7 @@
                    asyncio.run(main())
              ''
            )
            pkgs.grpc-health-probe
            pkgs.temporal-cli
          ];

@@ -267,6 +268,18 @@
      temporal.wait_for_open_port(7234)
      temporal.wait_for_open_port(7235)

      temporal.wait_until_succeeds(
        "grpc-health-probe -addr=localhost:7233 -service=temporal.api.workflowservice.v1.WorkflowService"
      )

      temporal.wait_until_succeeds(
        "grpc-health-probe -addr=localhost:7234 -service=temporal.api.workflowservice.v1.HistoryService"
      )

      temporal.wait_until_succeeds(
        "grpc-health-probe -addr=localhost:7235 -service=temporal.api.workflowservice.v1.MatchingService"
      )

      temporal.wait_until_succeeds(
        "journalctl -o cat -u temporal.service | grep 'server-version' | grep '${pkgs.temporal.version}'"
      )