[OGUI-1777] Create command for alerting central system on security risks#3117
[OGUI-1777] Create command for alerting central system on security risks#3117OmegaCreations wants to merge 159 commits intodevfrom
Conversation
…sending connections in ConnectionManager
…liceO2Group/WebUi into feature/TKN/OGUI-1703/basic-typescript-interfaces
…liceO2Group/WebUi into feature/TKN/OGUI-1703/basic-typescript-interfaces
…ithub.com:AliceO2Group/WebUi into feature/TKN/OGUI-1704/data-serialization-utils
…ub.com:AliceO2Group/WebUi into feature/TKN/OGUI-1705/client-central-basic-stream
…github.com:AliceO2Group/WebUi into feature/TKN/OGUI-1754/create-reconnection-scheduler
… github.com:AliceO2Group/WebUi into feature/TKN/OGUI-1755/secure-connections-with-certificates
…tes' of github.com:AliceO2Group/WebUi into feature/TKN/OGUI-1773/handle-token-validation-for-p2p-connections
…onnections' of github.com:AliceO2Group/WebUi into feature/TKN/OGUI-1773/handle-token-validation-for-p2p-connections
…OGUI-1755/secure-connections-with-certificates
…tes' of github.com:AliceO2Group/WebUi into feature/TKN/OGUI-1773/handle-token-validation-for-p2p-connections
…-for-p2p-connections
…onnections' of github.com:AliceO2Group/WebUi into feature/TKN/OGUI-1777/command-for-security-alerts
… improve type safety, add race condition protection and memore leak prevention
| }); | ||
|
|
||
| describe('isRequestAllowed', () => { | ||
| const mockCallback = jest.fn(); |
Check notice
Code scanning / CodeQL
Unused variable, import, function or class Note test
This autofix suggestion was applied.
Show autofix suggestion
Hide autofix suggestion
Copilot Autofix
AI about 2 months ago
In general, unused variables should be removed to improve readability and avoid confusion. Here, mockCallback is defined but never used inside the describe('isRequestAllowed', ...) block, so the best fix is to delete its declaration line and leave the rest of the tests unchanged.
Concretely, in Tokenization/backend/wrapper/src/test/client/ConnectionManager/Interceptors/grpc.auth.interceptor.test.ts, within the describe('isRequestAllowed', () => { ... }) block, remove line 335: const mockCallback = jest.fn();. No additional imports, methods, or definitions are required because the variable is not used anywhere.
| @@ -332,7 +332,6 @@ | ||
| }); | ||
|
|
||
| describe('isRequestAllowed', () => { | ||
| const mockCallback = jest.fn(); | ||
|
|
||
| beforeEach(() => { | ||
| jest.restoreAllMocks(); |
...backend/wrapper/src/test/client/ConnectionManager/Interceptors/grpc.auth.interceptor.test.ts
Fixed
Show fixed
Hide fixed
…t, function or class Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
I have JIRA issue created