> On Jan. 14, 2015, 7:27 p.m., Bill Farner wrote: > > src/test/python/apache/aurora/client/cli/test_kill.py, line 146 > > <https://reviews.apache.org/r/29873/diff/1/?file=820323#file820323line146> > > > > While you're in here, can you take a stab at renaming > > `create_mock_task` to `create_task`, and not using mocks (ditto for > > `create_scheduled_tasks`)? This aligns with the desired pattern of > > avoiding unnecessary use of mocks. > > > > You can borrow from `test_inspect.py` for an example: > > https://reviews.apache.org/r/29696 > > Maxim Khutornenko wrote: > Sure, will do.
Refactored as much as I could find. There is still plenty of refactoring left but I have to stop here to avoid a larger yak shave. - Maxim ----------------------------------------------------------- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/29873/#review68083 ----------------------------------------------------------- On Jan. 14, 2015, 1:16 a.m., Maxim Khutornenko wrote: > > ----------------------------------------------------------- > This is an automatically generated e-mail. To reply, visit: > https://reviews.apache.org/r/29873/ > ----------------------------------------------------------- > > (Updated Jan. 14, 2015, 1:16 a.m.) > > > Review request for Aurora and Bill Farner. > > > Bugs: AURORA-996 > https://issues.apache.org/jira/browse/AURORA-996 > > > Repository: aurora > > > Description > ------- > > Fixed job status quering in client context to return active tasks where > needed. > > Also, dropped active instance validation from both updater calls as it was > hiding a legitimate feature: add new job instances with instance_spec. > > > Diffs > ----- > > src/main/python/apache/aurora/client/cli/context.py > 93587c616afb0b7493a509197361cd76af2e2c97 > src/main/python/apache/aurora/client/cli/jobs.py > 508c9be556998e47bddcec8dee43f1595497b354 > src/main/python/apache/aurora/client/cli/update.py > a1617325f08ca252bdba38618aef141504ba7272 > src/test/python/apache/aurora/client/cli/test_kill.py > b475d737ede8ff0a669a9a9229196a76b43b46b6 > src/test/python/apache/aurora/client/cli/test_restart.py > a532ead256869c620e6bd96886ce9681b3423d0c > > Diff: https://reviews.apache.org/r/29873/diff/ > > > Testing > ------- > > ./pants src/test/python:all > > vagrant@vagrant-ubuntu-trusty-64:~$ aurora job killall > devcluster/www-data/prod/hello > INFO] Checking status of devcluster/www-data/prod/hello > INFO] > No tasks to kill found for job devcluster/www-data/prod/hello > Job killall succeeded > > > Thanks, > > Maxim Khutornenko > >
