-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
Skip test on all OS's but linux #36124
Conversation
Why are we testing this functionality on OS X when |
@cachedout Apparently it does work on Mac... |
The Linux module in question requires |
@cachedout I'm just saying the tests are passing on OSX. I'm happy to "skipif" the whole test. |
ACLs are supported on MacOS, but they are interacted with in an entirely different way than on Linux. For more info, see here: http://www.techrepublic.com/blog/apple-in-the-enterprise/introduction-to-os-x-access-control-lists-acls/ Whether or not one can get a unit test to pass by altering a single value is immaterial, especially when mocking is being used. I guess I just don't understand why the proposed solution isn't simply to skip the test on non-linux platforms. It certainly seems to be the path of lesser resistance when compared to altering the test itself. |
@terminalmage is correct. Attempting to alter this test so that it runs on OS X when the code under test is not designed to work there just leads to confusion and technical debt down the road. |
@twangboy it seems that your reasoning is simply "tests are passing", thus ACLs are supported. But you don't appear to have dug any further than that. The link I posted in my previous comment is literally the first search result for mac os acls. The I could get this test to pass on Windows by changing the lines you did to have Windows paths in them. Getting the tests to pass shouldn't be more important than ensuring they're being run correctly. |
Yep. I'll remove them. On Sep 8, 2016 10:22 AM, "Erik Johnson" notifications@github.com wrote:
|
* upstream/develop: (92 commits) Switch the order of the decorator Back-port saltstack#36273 to 2016.3 (saltstack#36295) Back-port saltstack#36124 to 2016.3 (saltstack#36296) Fix pkg group test by passing a list instead of str Report the reason that a module did not load to the user via remote-ex (saltstack#36259) Gate the pkg.group_installed state test: not all pkg modules have group_install Filter out pub kwargs from cloud runner (saltstack#36178) Add append_newline flag for saltstack#33686 (saltstack#36273) Don't stop to failover if all masters not reachable. Schema test requires jsonschema 2.5.0 or above Fix pkg group test by passing a list instead of str Improved gitfs/git_pillar error logging Integration tests fixes for 2015.8 (saltstack#36262) Protect the dbus import for a loader stacktrace in avahi_announce beacon Fix for new integration test for fileserver.clear_file_list_cache salt.utils.gitfs: Check for existence of ssh keys Pylint fix Integration tests fixes for 2016.3 (saltstack#36263) Fix misspelling of "occurred" in log messages/exceptions (saltstack#36270) Pass the key kwarg through to the flush function ...
What does this PR do?
Skip test on anything but linux
What issues does this PR fix or reference?
https://github.com/saltstack/qa/issues/236