mirror of
https://github.com/openobserve/openobserve.git
synced 2026-11-06 08:09:24 +00:00
fix: update the endpoint
This commit is contained in:
committed by
ByteBaker
parent
484c4a953a
commit
c1820e5612
@@ -103,7 +103,7 @@ describe("incidents service", () => {
|
||||
|
||||
expect(http).toHaveBeenCalled();
|
||||
expect(mockHttp.patch).toHaveBeenCalledWith(
|
||||
"/api/v2/test-org/alerts/incidents/incident-123/status",
|
||||
"/api/v2/test-org/alerts/incidents/incident-123/update",
|
||||
{ status: "acknowledged" }
|
||||
);
|
||||
});
|
||||
@@ -114,7 +114,7 @@ describe("incidents service", () => {
|
||||
incidents.updateStatus("test-org", "incident-123", "open");
|
||||
|
||||
expect(mockHttp.patch).toHaveBeenCalledWith(
|
||||
"/api/v2/test-org/alerts/incidents/incident-123/status",
|
||||
"/api/v2/test-org/alerts/incidents/incident-123/update",
|
||||
{ status: "open" }
|
||||
);
|
||||
});
|
||||
@@ -125,7 +125,7 @@ describe("incidents service", () => {
|
||||
incidents.updateStatus("test-org", "incident-123", "resolved");
|
||||
|
||||
expect(mockHttp.patch).toHaveBeenCalledWith(
|
||||
"/api/v2/test-org/alerts/incidents/incident-123/status",
|
||||
"/api/v2/test-org/alerts/incidents/incident-123/update",
|
||||
{ status: "resolved" }
|
||||
);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user