Repository navigation
feat(CIS): Add Support for AI Security for Apps - #338
Merged
Merged
Conversation
Signed-off-by: Sridhar G K <gksridhar09@gmail.com>
… label response handling Signed-off-by: Sridhar G K <gksridhar09@gmail.com>
sridhargk
marked this pull request as ready for review
September 23, 2026 22:13
Signed-off-by: Sridhar G K <gksridhar09@gmail.com>
Signed-off-by: Sridhar G K <gksridhar09@gmail.com>
Collaborator
Author
|
Test Results: ❯ npx jest test/integration/cis/ai-security-for-apps.v1.test.js
npm notice run ibm-networking-services@0.40.0 npx
npm notice run 'jest' test/integration/cis/ai-security-for-apps.v1.test.js
console.warn
Skipping: no discovered operations in 'review' state
127 |
128 | if (!listResponse.result.result || listResponse.result.result.length === 0) {
> 129 | console.warn("Skipping: no discovered operations in 'review' state");
| ^
130 | return;
131 | }
132 |
at Object.warn (test/integration/cis/ai-security-for-apps.v1.test.js:129:17)
console.warn
deleteZoneApiGatewayOperations returned error (may be unsupported on this zone): invalid JSON: '' cannot be a object
184 | ids = [];
185 | } catch (err) {
> 186 | console.warn(
| ^
187 | `deleteZoneApiGatewayOperations returned error (may be unsupported on this zone): ${err.message}`
188 | );
189 | } finally {
at Object.warn (test/integration/cis/ai-security-for-apps.v1.test.js:186:17)
PASS test/integration/cis/ai-security-for-apps.v1.test.js (43.811 s)
AiSecurityForAppsV1
✓ Initialize service (1 ms)
AI Security Settings
✓ should get AI security settings (3688 ms)
✓ should update AI security settings (2046 ms)
API Gateway Discovery
✓ should get API Gateway discovery (850 ms)
✓ should list API Gateway discovery operations (740 ms)
✓ should list API Gateway discovery operations with filters (621 ms)
API Gateway Schemas
✓ should get API Gateway schemas (800 ms)
API Gateway Discovery Operations - Update
✓ should bulk-update discovered operation state (ignored -> review) (1169 ms)
API Gateway Operations - List
✓ should list zone API Gateway operations (725 ms)
API Gateway Operations - Bulk delete
✓ should create two operations then bulk-delete them (6291 ms)
API Gateway Operation Labels — per-operation lifecycle
✓ should create a single operation for label tests (1636 ms)
✓ should add labels to a single operation (createApiGatewayOperationLabels) (1030 ms)
✓ should replace labels on a single operation (setZoneApiGatewayOperationLabels) (912 ms)
✓ should bulk-replace labels via selector (replaceZoneApiGatewayOperationLabels) (1216 ms)
✓ should remove labels from a single operation (unsetZoneApiGatewayOperationLabels) (1137 ms)
✓ should bulk-delete labels via selector (deleteZoneApiGatewayOperationLabels) (853 ms)
✓ should delete the label-test operation (1739 ms)
API Gateway Operations - Single operation lifecycle
✓ Create a single API Gateway operation, retrieve it by operation ID, delete it, and verify deletion (6969 ms)
API Gateway Operations - Bulk lifecycle
✓ Scenario 1: Create 3 operations in bulk and retrieve the second one (2488 ms)
✓ Scenario 2: Update operation labels — add to all, remove one, verify label persists for remaining (1722 ms)
✓ Scenario 2b: Bulk-replace and bulk-delete labels on all operations (2082 ms)
✓ Scenario 3: Delete all bulk-created operations (4418 ms)
--------------------------|---------|----------|---------|---------|-------------------------------------------------------------------------------------------
File | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s
--------------------------|---------|----------|---------|---------|-------------------------------------------------------------------------------------------
All files | 90.54 | 70.65 | 97.61 | 90.51 |
cis/ai-security-for-apps | 90.25 | 70.65 | 97.56 | 90.22 |
v1.ts | 90.25 | 70.65 | 97.56 | 90.22 | 65,99,105,132,185,247,313,376-416,440,507,572,630,694,758,824,888,952,1015,1076,1130,1185
lib | 100 | 100 | 100 | 100 |
common.ts | 100 | 100 | 100 | 100 |
--------------------------|---------|----------|---------|---------|-------------------------------------------------------------------------------------------
Test Suites: 1 passed, 1 total
Tests: 22 passed, 22 total
Snapshots: 0 total
Time: 43.901 s
Ran all test suites matching test/integration/cis/ai-security-for-apps.v1.test.js. |
Signed-off-by: Sridhar G K <gksridhar09@gmail.com>
sirijaibm
approved these changes
Oct 19, 2026
Member
|
🎉 This PR is included in version 0.42.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
PR summary
Fixes: AI Security for Apps
PR Checklist
Please make sure that your PR fulfills the following requirements:
PR Type
What is the current behavior?
What is the new behavior?
Does this PR introduce a breaking change?
Other information