From e811745e5c37dd38a8fb9f4bc2892525401eabbd Mon Sep 17 00:00:00 2001 From: Dan Engelbrecht Date: Fri, 27 Mar 2026 09:51:29 +0100 Subject: hub instance state refactor (#892) - Improvement: Provisioning a hibernated instance now automatically wakes it instead of requiring an explicit wake call first - Improvement: Deprovisioning now accepts instances in Crashed or Hibernated states, not just Provisioned - Improvement: Added `--consul-health-interval-seconds` and `--consul-deregister-after-seconds` options to control Consul health check behavior (defaults: 10s and 30s) - Improvement: Consul registration now occurs when provisioning starts; health check intervals are applied once provisioning completes --- src/zenhttp/httpclient_test.cpp | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'src/zenhttp/httpclient_test.cpp') diff --git a/src/zenhttp/httpclient_test.cpp b/src/zenhttp/httpclient_test.cpp index 7a657c464..af653cbb2 100644 --- a/src/zenhttp/httpclient_test.cpp +++ b/src/zenhttp/httpclient_test.cpp @@ -492,6 +492,17 @@ TEST_CASE("httpclient.put") CHECK_EQ(Resp.StatusCode, HttpResponseCode::Created); CHECK_EQ(Resp.AsText(), "resource created"); } + + SUBCASE("PUT with payload and query parameters") + { + const char* Payload = "put payload data"; + IoBuffer Buf(IoBuffer::Clone, Payload, strlen(Payload)); + Buf.SetContentType(ZenContentType::kText); + + HttpClient::Response Resp = Client.Put("/api/test/echo/uri", Buf, {}, {{"key", "value"}}); + CHECK(Resp.IsSuccess()); + CHECK_EQ(Resp.AsText(), "echo/uri\nkey=value"); + } } TEST_CASE("httpclient.upload") -- cgit v1.2.3