[
https://issues.apache.org/jira/browse/OOZIE-975?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13445266#comment-13445266
]
Virag Kothari commented on OOZIE-975:
-------------------------------------
Different ways to not load all services classes in a test case:
1) Split the current 'oozie.services' property in two 1) oozie.services and 2)
oozie.services.toBeNotUsedbyTestCases (name can be changed). The 'Services'
class will load classes using both these values. XTestCase will set
oozie.services.NotToBeUsedbyTestCases to empty. So by default, they will not be
loaded by any test case. If a particular test case requires a service to be
loaded from 'nottobeused' list, they can override this value.
2) Maintain a list of services to be loaded only for testCases in XTestCase.
But, this would require maintaining the list when a service is added
3) Have a configuration in oozie-default like
'oozie.services.toBeLoadedByTestCases' and use this in XTestCase. However,
XTestCase doesn't have a services instance, so there is no clean to get the
value of conf.
4) By default load all services classes and make the failing test cases remove
the conflicting test cases. But this would require maintaining the list of all
flaky test cases.
Comments are appreciated..
> Test cases should not load all the services classes
> ---------------------------------------------------
>
> Key: OOZIE-975
> URL: https://issues.apache.org/jira/browse/OOZIE-975
> Project: Oozie
> Issue Type: Bug
> Reporter: Virag Kothari
> Assignee: Virag Kothari
> Attachments: kill-output.txt
>
>
> Some services classes loaded as part of services.init() interfere with the
> actual test case causing them to break.
> TestPauseTransitSErvice, TestPurgeService, TestActionCheckerService keep
> failing intermittently.
> Related pre-commit build links:
> https://builds.apache.org/job/oozie-trunk-precommit-build/58/testReport/junit/org.apache.oozie.service/TestPauseTransitService/testUnpauseBundleAndCoordinator/
> https://builds.apache.org/job/oozie-trunk-precommit-build/55/testReport/junit/org.apache.oozie.service/TestActionCheckerService/testActionCheckerServiceCoord/
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira