Skip to content

Complete Lack of Unit/Integration Tests for the pkg/config Package - #498

Merged
Harsh4902 merged 1 commit into
microcks:masterfrom
aniket866:adding-missing-config-test
Aug 5, 2026
Merged

Complete Lack of Unit/Integration Tests for the pkg/config Package#498
Harsh4902 merged 1 commit into
microcks:masterfrom
aniket866:adding-missing-config-test

Conversation

@aniket866

Copy link
Copy Markdown
Contributor

Closes #497

  • Location: pkg/config directory (contains config.go, localconfig.go, and file permission helper files)
  • Reason: The configuration layer parses contexts, updates client configurations, and performs file permission checks (getFilePermission). Without tests, config validation and context switching logic can easily break during updates, which directly impacts all other client-dependent commands (like import and test).

Reproduction Flow

graph TD
    A["Developer modifies context validation/permission checks"] --> B["Runs tests with 'go test ./pkg/config'"]
    B --> C["CLI outputs: 'no test files'"]
    C --> D["Changes cause invalid configurations to pass validation unchecked"]
Loading

Signed-off-by: aniket866 <iamaniketkumarmaner@gmail.com>

@Harsh4902 Harsh4902 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM

@Harsh4902
Harsh4902 merged commit 661229e into microcks:master Aug 5, 2026
8 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.

Complete Lack of Unit/Integration Tests for the pkg/config Package

2 participants