Skip to content

Unittest coverage#75

Open
RahulRengeshOfficial wants to merge 40 commits into
developfrom
unittest_coverage
Open

Unittest coverage#75
RahulRengeshOfficial wants to merge 40 commits into
developfrom
unittest_coverage

Conversation

@RahulRengeshOfficial
Copy link
Copy Markdown
Contributor

No description provided.

vishnuajayccst and others added 30 commits October 28, 2025 12:14
- Increase coverage for estb_firmware_handler.go functions
- GetCheckMinFirmwareHandler: 71.9% → 100% (+28.1%)
- GetEstbFirmwareVersionInfoPath: 69.7% → 100% (+30.3%)
- Added comprehensive edge case tests for:
  * IP parsing paths (query param vs body)
  * Query parameter filtering (clientProtocol, cert expiry)
  * Body parameter parsing
  * Security token manager code path
  * Cert expiry handling
  * Multi-value query parameters
  * Application type extraction
  * MAC normalization

Impact:
- Main dataapi package: 51.1% → 52.2% (+1.1%)
- Overall coverage: 38.2% → 38.9% (+0.7%)
- 20 new test functions, all passing
- Proper mocking to avoid DB/service dependencies

Files:
- dataapi/estb_firmware_handler_test.go: +20 tests
- PROGRESS_SUMMARY_ESTB_FIRMWARE_HANDLER.md: detailed analysis
@github-actions
Copy link
Copy Markdown

github-actions Bot commented Dec 8, 2025

All contributors have signed the CLA ✍️ ✅
Posted by the CLA Assistant Lite bot.

@rdkcmf-jenkins
Copy link
Copy Markdown
Contributor

b'## Blackduck scan failure details

Summary: 0 violations, 0 files pending approval, 4 files pending identification.

  • Protex Server Path: /home/blackduck/github/xconfwebconfig/75/rdkcentral/xconfwebconfig

  • Commit: a19d244

Report detail: gist'

@RahulRengeshOfficial
Copy link
Copy Markdown
Contributor Author

I have read the CLA Document and I hereby sign the CLA

vishnuajayccst
vishnuajayccst previously approved these changes Dec 9, 2025
@rdkcmf-jenkins
Copy link
Copy Markdown
Contributor

b'## Blackduck scan failure details

Summary: 0 violations, 0 files pending approval, 4 files pending identification.

  • Protex Server Path: /home/blackduck/github/xconfwebconfig/75/rdkcentral/xconfwebconfig

  • Commit: cfe6da6

Report detail: gist'

@mhughesacn
Copy link
Copy Markdown

Please address my comment in PR#74 - the same "secrets" are here.

@vishnuajayccst
Copy link
Copy Markdown
Contributor

@rdkcmf-jenkins @mhughesacn The tokens included in the test case files are sample values used solely for unit testing purposes. They are not real or production tokens.

@RahulRengeshOfficial RahulRengeshOfficial dismissed vishnuajayccst’s stale review January 5, 2026 07:53

The merge-base changed after approval.

@rdkcmf-jenkins
Copy link
Copy Markdown
Contributor

b'## Blackduck scan failure details

Summary: 0 violations, 0 files pending approval, 3 files pending identification.

  • Protex Server Path: /home/blackduck/github/xconfwebconfig/75/rdkcentral/xconfwebconfig

  • Commit: cfe6da6

Report detail: gist'

@mhughesacn
Copy link
Copy Markdown

mhughesacn commented Jan 5, 2026

Hi @RahulRengeshOfficial : Please will you add a comment in the affected files (sat_token_manager_test.go, group_service_connector_test.go) to say that all tokens are test values only. This can be a comment after the file header. This is important for future users, audits etc. - in effect, "We have considered that this value looks plausible but we are making it clear that it is not a real secret."

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