Refresh HiveGrid Cloud reference snapshot
This commit is contained in:
1 parent
5e99e14772
commit
7f88026f79
5955 files changed
+1177325
-188362
No files matched your search
@@ -33,6 +33,16 @@ describe("validateMetricsTokenAuth", () => {
|
||||
).toEqual({ ok: false, status: 500, code: "token_misconfigured" });
|
||||
});
|
||||
|
||||
it("returns 500 when the configured token is too short", () => {
|
||||
expect(
|
||||
validateMetricsTokenAuth({
|
||||
metricsEnabled: true,
|
||||
configuredToken: "too-short",
|
||||
authorizationHeader: "Bearer too-short",
|
||||
}),
|
||||
).toEqual({ ok: false, status: 500, code: "token_misconfigured" });
|
||||
});
|
||||
|
||||
it("returns 401 missing_token when header is absent", () => {
|
||||
expect(
|
||||
validateMetricsTokenAuth({
|
||||
|
||||
Reference in new issue
Block a user