Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: re-enable file permissions test on darwin #5380

Merged
merged 1 commit into from
Apr 18, 2024

Conversation

lzap
Copy link
Contributor

@lzap lzap commented Apr 17, 2024

Greetings,

the TestPermissionDenied was disabled on Darwin because it was accessing /root which does not exist on Mac. Well, MacOS is not UNIX I guess.

A "good first issue" ticket was created:

#2563

I wanted to take a stab on this, however, unfortunately it looks like TestPermissionDenied was already fixed. It now creates a proper temporary file and drops permissions via Chomod. The only thing that was left to be done was to remove the build tags.

And this is exactly what this PR does. Tested on the latest MacOS on Macbook Pro M1, I believe Intel should be the same story.

Have a good one. Cheers.

@tdiesler
Copy link
Contributor

There is another such test, which now works too
https://github.com/apache/camel-k/blob/main/pkg/cmd/source/util_test.go

Perhaps you'd like to remove those build tags there as well

@squakez squakez merged commit c9f6c2a into apache:main Apr 18, 2024
14 checks passed
@lzap lzap deleted the enhance-file-test-2563 branch April 18, 2024 07:50
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