Skip to content

Conversation

@Igor-splunk
Copy link
Collaborator

@Igor-splunk Igor-splunk commented Nov 5, 2025

Description

Refactors test suite to use JSON fixture files instead of inline JSON strings.

Key Changes

  • Added loadFixture() helper in util.go that loads and compacts JSON from fixture files

Testing and Verification

How did you test these changes? What automated tests are added?

Related Issues

Jira tickets, GitHub issues, Support tickets...

PR Checklist

  • Code changes adhere to the project's coding standards.
  • Relevant unit and integration tests are included.
  • Documentation has been updated accordingly.
  • All tests pass locally.
  • The PR description follows the project's guidelines.

igor.grzankowski added 4 commits November 5, 2025 12:42
- Added bytes and encoding/json imports
- Modified loadFixture() to use json.Compact() to minify fixture files
- This allows pretty-printed fixture files to match compact json.Marshal output
- Fixes TestApplySmartstoreConfigMap and other tests using configTester2
Copy link
Collaborator

@patrykw-splunk patrykw-splunk left a comment

Choose a reason for hiding this comment

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

LGTM!

@rlieberman-splunk
Copy link
Collaborator

Please update the description of the PR.

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.

4 participants