[
https://issues.apache.org/jira/browse/AMBARI-22996?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16370734#comment-16370734
]
Hudson commented on AMBARI-22996:
---------------------------------
FAILURE: Integrated in Jenkins build Ambari-trunk-Commit #8759 (See
[https://builds.apache.org/job/Ambari-trunk-Commit/8759/])
[AMBARI-22996] ViewInstanceResourceProviderTest, (6454655+adoroszlai:
[https://gitbox.apache.org/repos/asf?p=ambari.git&a=commit&h=78df59c1380d770dbc053063b0368ce89b8907ea])
* (edit)
ambari-server/src/test/java/org/apache/ambari/server/controller/internal/ViewInstanceResourceProviderTest.java
* (edit)
ambari-server/src/test/java/org/apache/ambari/server/controller/internal/ViewURLResourceProviderTest.java
* (edit)
ambari-server/src/test/java/org/apache/ambari/server/controller/internal/ViewPermissionResourceProviderTest.java
> ViewInstanceResourceProviderTest, ViewPermissionResourceProviderTest, and
> ViewURLResourceProviderTest fail unexpectedly
> ------------------------------------------------------------------------------------------------------------------------
>
> Key: AMBARI-22996
> URL: https://issues.apache.org/jira/browse/AMBARI-22996
> Project: Ambari
> Issue Type: Bug
> Components: ambari-server
> Affects Versions: trunk
> Environment: Ubuntu, 16.04 LTS
> Reporter: Wing Lam
> Priority: Minor
> Labels: pull-request-available
> Fix For: trunk
>
> Time Spent: 1h
> Remaining Estimate: 0h
>
> The tests in ViewInstanceResourceProviderTest,
> ViewPermissionResourceProviderTest, and ViewURLResourceProviderTest rely on a
> ViewRegistry that is set up in a static initializer block. However, if the
> another test sets the ViewRegistry after the class is initialized, then the
> test class will use the wrong ViewRegistry and fail, despite there being no
> changes in code. This can be fixed by setting the ViewRegistry in the @Before
> method in each of the three test classes as shown in the pull request.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)