Skip to content

test: preserve comment lines to hanlde big multi-line yamls#2019

Merged
shivaygupta-dotcom merged 8 commits intomainfrom
fix/render-template-comment-handling
Apr 28, 2026
Merged

test: preserve comment lines to hanlde big multi-line yamls#2019
shivaygupta-dotcom merged 8 commits intomainfrom
fix/render-template-comment-handling

Conversation

@shivaygupta-dotcom
Copy link
Copy Markdown
Contributor

@shivaygupta-dotcom shivaygupta-dotcom commented Apr 20, 2026

@codecov-commenter
Copy link
Copy Markdown

codecov-commenter commented Apr 20, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 32.87%. Comparing base (cb976a7) to head (6992aed).

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #2019   +/-   ##
=======================================
  Coverage   32.87%   32.87%           
=======================================
  Files          77       77           
  Lines        7064     7064           
=======================================
  Hits         2322     2322           
  Misses       4546     4546           
  Partials      196      196           

☔ 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.

@shivaygupta-dotcom shivaygupta-dotcom force-pushed the fix/render-template-comment-handling branch from cfa8798 to 7e7c243 Compare April 22, 2026 06:40
@gitguardian
Copy link
Copy Markdown

gitguardian Bot commented Apr 22, 2026

⚠️ GitGuardian has uncovered 1 secret following the scan of your pull request.

Please consider investigating the findings and remediating the incidents. Failure to do so may lead to compromising the associated services or software components.

🔎 Detected hardcoded secret in your pull request
GitGuardian id GitGuardian status Secret Commit Filename
30400066 Triggered Generic High Entropy Secret 1565eb5 tests/integration/testdata/diff/004-no-diff-plugin/kong.yaml View secret
🛠 Guidelines to remediate hardcoded secrets
  1. Understand the implications of revoking this secret by investigating where it is used in your code.
  2. Replace and store your secret safely. Learn here the best practices.
  3. Revoke and rotate this secret.
  4. If possible, rewrite git history. Rewriting git history is not a trivial act. You might completely break other contributing developers' workflow and you risk accidentally deleting legitimate data.

To avoid such incidents in the future consider


🦉 GitGuardian detects secrets in your source code to help developers and security teams secure the modern development process. You are seeing this because you or someone else with access to this repository has authorized GitGuardian to scan your pull request.

@shivaygupta-dotcom shivaygupta-dotcom marked this pull request as ready for review April 22, 2026 09:24
Comment thread tests/integration/sync_test.go Outdated
// test scope:
// - kong >=3.0.0
func Test_RequestTermination_Dump_Diff(t *testing.T) {
runWhen(t, "kong", ">=3.0.0")
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's run this for konnect as well?

Copy link
Copy Markdown
Contributor

@harshadixit12 harshadixit12 Apr 27, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

unless it is only happening when created via admin API

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is only happening when created with adminAPI/ UI.

Comment thread tests/integration/sync_test.go Outdated
testKongState(t, client, true, false, expectedStatePostSync, nil)
}

// Test_RequestTermination_Dump_Diff ensures that a create-via-API → dump → diff
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM - but lets move this to diff_test.go

@shivaygupta-dotcom shivaygupta-dotcom merged commit bb2d0a6 into main Apr 28, 2026
42 checks passed
@shivaygupta-dotcom shivaygupta-dotcom deleted the fix/render-template-comment-handling branch April 28, 2026 03:44
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.

3 participants