-
Notifications
You must be signed in to change notification settings - Fork 14
[OGUI-1777] Create command for alerting central system on security risks #3117
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: dev
Are you sure you want to change the base?
[OGUI-1777] Create command for alerting central system on security risks #3117
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 3 days 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