Skip to content

fix: handle app download dir stat errors#1817

Open
vivekr-splunk wants to merge 1 commit intomainfrom
fix/test-create-app-download-dir-root-runner
Open

fix: handle app download dir stat errors#1817
vivekr-splunk wants to merge 1 commit intomainfrom
fix/test-create-app-download-dir-root-runner

Conversation

@vivekr-splunk
Copy link
Copy Markdown
Collaborator

Summary

  • return non-ErrNotExist path access errors from createAppDownloadDir
  • make TestCreateAppDownloadDir use a portable ENOTDIR case instead of relying on root path permissions

Why

GitLab CI runs the unit tests inside a root-capable container, so the old test assumption that /xyzzz.txt creation must fail is not portable. The function also swallowed non-ErrNotExist stat errors, which the portable test exposes.

Validation

  • go test ./pkg/splunk/enterprise -run TestCreateAppDownloadDir -count=1

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