You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ambari.apache.org by Jonathan Hurley <jh...@hortonworks.com> on 2015/04/30 14:38:04 UTC
Re: Review Request 32326: Enable unit tests to run on Mac
> On March 22, 2015, 8:46 a.m., Jonathan Hurley wrote:
> > Ship It!
>
> Jonathan Hurley wrote:
> Ping. This issue seems to be closed, can we close the review?
Ping again.
- Jonathan
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/32326/#review77350
-----------------------------------------------------------
On March 20, 2015, 7:57 p.m., Sumit Mohanty wrote:
>
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/32326/
> -----------------------------------------------------------
>
> (Updated March 20, 2015, 7:57 p.m.)
>
>
> Review request for Ambari and Jonathan Hurley.
>
>
> Bugs: AMBARI-10166
> https://issues.apache.org/jira/browse/AMBARI-10166
>
>
> Repository: ambari
>
>
> Description
> -------
>
> Enable unit tests to run on Mac
>
>
> Diffs
> -----
>
> ambari-agent/src/test/python/ambari_agent/TestActionQueue.py 6c14e33
> ambari-agent/src/test/python/ambari_agent/TestController.py e2fd7a7
> ambari-agent/src/test/python/unitTests.py 0fd6b49
> ambari-common/src/main/python/ambari_commons/os_check.py 4e93feb
>
> Diff: https://reviews.apache.org/r/32326/diff/
>
>
> Testing
> -------
>
> Ran the agent unit tests and ensured that new tests got enabled. I will progressively enable other tests verifying that they do not start failing on mac.
>
> The failed test was failing earlier for me as well.
>
> ======================================================================
> FAIL: test_dump_command_to_json (TestCustomServiceOrchestrator.TestCustomServiceOrchestrator)
> ----------------------------------------------------------------------
> Traceback (most recent call last):
> File "/Users/smohanty/enlistments/asf-ambari/ambari-common/src/test/python/mock/mock.py", line 1199, in patched
> return func(*args, **keywargs)
> File "/Users/smohanty/enlistments/asf-ambari/ambari-agent/src/test/python/ambari_agent/TestCustomServiceOrchestrator.py", line 126, in test_dump_command_to_json
> self.assertEqual(oct(os.stat(json_file).st_mode & 0777), '0600')
> AssertionError: '0644' != '0600'
>
> ----------------------------------------------------------------------
> Ran 307 tests in 19.563s
>
> FAILED (failures=1)
>
>
> Thanks,
>
> Sumit Mohanty
>
>