Skip to content

feat(CIS): Add Support for AI Security for Apps - #338

Merged
DevxNetworkServices merged 8 commits into
masterfrom
ai-security-for-apps
Oct 19, 2026
Merged

DevxNetworkServices merged 8 commits into
masterfrom
ai-security-for-apps

Conversation

@sridhargk

Copy link
Copy Markdown
Collaborator

PR summary

Fixes: AI Security for Apps

PR Checklist

Please make sure that your PR fulfills the following requirements:

  • The commit message follows the Angular Commit Message Guidelines.
  • Tests for the changes have been added (for bug fixes / features)
  • Docs have been added / updated (for bug fixes / features)

PR Type

  • Bugfix
  • Feature
  • Code style update (formatting, local variables)
  • Refactoring (no functional changes, no api changes)
  • New tests
  • Build/CI related changes
  • Documentation content changes
  • Other (please describe)

What is the current behavior?

What is the new behavior?

Does this PR introduce a breaking change?

  • Yes
  • No

Other information

Signed-off-by: Sridhar G K <gksridhar09@gmail.com>
@sridhargk sridhargk self-assigned this Sep 21, 2026
… label response handling

Signed-off-by: Sridhar G K <gksridhar09@gmail.com>
@sridhargk
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>
@sridhargk

Copy link
Copy Markdown
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.

@sridhargk sridhargk closed this Oct 18, 2026
@sridhargk sridhargk reopened this Oct 18, 2026
@DevxNetworkServices
DevxNetworkServices merged commit d0edc78 into master Oct 19, 2026
6 checks passed
@DevxNetworkServices
DevxNetworkServices deleted the ai-security-for-apps branch October 19, 2026 18:10
@DevxNetworkServices

Copy link
Copy Markdown
Member

🎉 This PR is included in version 0.42.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants