Skip to content

Conversation

Piumal1999
Copy link
Contributor

Purpose

Purpose of this PR is to add the integration tests for the API policies with secret type policy attributes
which is the feature developed under wso2/api-manager#3797

Approach

  • Added a new policy with secret type policy attributes
  • Added tests for create, attach, retrieval, and update scenarios

Added the following tests:

testAddAPISpecificOperationPolicyWithSecrets (Add API specific operation policy with secret attributes)
testAPIBeforeAttachingPolicyWithSecretAttributes (Test API before attaching secret policy)
testAPIAfterAttachingPolicyWithSecretAttributes (Test API after attaching policy with secret attributes)
testRetrievePolicyWithSecretAttributes (Test secret policy attribute retrieval)
testUpdatePolicyWithSecretAttributes (Test updating secret policy attributes with preserve option)
testVersionCreationWithPolicyWithSecretAttributes (Test version creation with secret policy attributes)
testDeleteAPISpecificOperationPolicyWithSecrets (Delete API specific operation policy with secret attributes)

@Piumal1999 Piumal1999 marked this pull request as draft August 12, 2025 09:25
@Piumal1999 Piumal1999 marked this pull request as ready for review August 12, 2025 18:56
Copy link

codecov bot commented Aug 18, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 10.36%. Comparing base (7bbc46d) to head (9f38194).
⚠️ Report is 11 commits behind head on master.

Additional details and impacted files
@@             Coverage Diff              @@
##             master   #13797      +/-   ##
============================================
- Coverage     12.77%   10.36%   -2.41%     
+ Complexity      728      625     -103     
============================================
  Files           295      295              
  Lines         14089    14123      +34     
  Branches       1504     1508       +4     
============================================
- Hits           1800     1464     -336     
- Misses        12263    12641     +378     
+ Partials         26       18       -8     
Flag Coverage Δ
integration_tests 10.36% <ø> (-2.41%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@HeshanSudarshana HeshanSudarshana merged commit 6951d0e into wso2:master Aug 18, 2025
8 of 9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants