test(observability-proxy): cover stalled reviews on the application roots

Application roots take two access reviews before any body is read; a
POST to either must answer 503 within the request timeout when
kube-apiserver stalls on them.

Assisted-by: LLM
Signed-off-by: ZverGuy <maximbel2003@gmail.com>
This commit is contained in:
ZverGuy committed 2026-11-10 04:03:24 +07:00
1 parent 19dbee15fc
commit 3a5eb4fbf2
1 file changed
+2
@@ -428,6 +428,8 @@ func TestServerStalledReviewAnswersInTime(t *testing.T) {
{"logs subject access review", logsRoot + "query", false},
{"metrics token review", metricsRoot + "api/v1/query", true},
{"metrics subject access review", metricsRoot + "api/v1/query", false},
{"application logs subject access review", appRoot + "db/log/select/logsql/query", false},
{"application metrics subject access review", appRoot + "db/metrics/api/v1/query", false},
} {
t.Run(tc.name, func(t *testing.T) {
h := newHarness(t, Config{RequestTimeout: 200 * time.Millisecond}, nil)