Repository: ambari Updated Branches: refs/heads/branch-2.2 0423e7b4a -> c27c8001c
AMBARI-14614 - Hosts in Maintenance Mode Are Included in Client Service Checks During Upgrade (part3) (jonathanhurley) Project: http://git-wip-us.apache.org/repos/asf/ambari/repo Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/c27c8001 Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/c27c8001 Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/c27c8001 Branch: refs/heads/branch-2.2 Commit: c27c8001c08fe20088b6095c4b54af6b71cb5527 Parents: 0423e7b Author: Jonathan Hurley <jhur...@hortonworks.com> Authored: Tue Jan 12 15:29:58 2016 -0500 Committer: Jonathan Hurley <jhur...@hortonworks.com> Committed: Tue Jan 12 15:29:58 2016 -0500 ---------------------------------------------------------------------- .../controller/AmbariCustomCommandExecutionHelperTest.java | 4 ---- 1 file changed, 4 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/ambari/blob/c27c8001/ambari-server/src/test/java/org/apache/ambari/server/controller/AmbariCustomCommandExecutionHelperTest.java ---------------------------------------------------------------------- diff --git a/ambari-server/src/test/java/org/apache/ambari/server/controller/AmbariCustomCommandExecutionHelperTest.java b/ambari-server/src/test/java/org/apache/ambari/server/controller/AmbariCustomCommandExecutionHelperTest.java index 4b5224d..86dc750 100644 --- a/ambari-server/src/test/java/org/apache/ambari/server/controller/AmbariCustomCommandExecutionHelperTest.java +++ b/ambari-server/src/test/java/org/apache/ambari/server/controller/AmbariCustomCommandExecutionHelperTest.java @@ -59,7 +59,6 @@ import org.mockito.Captor; import org.mockito.Mock; import org.mockito.Mockito; import org.mockito.runners.MockitoJUnitRunner; -import org.springframework.security.core.context.SecurityContextHolder; import com.google.inject.Guice; import com.google.inject.Injector; @@ -331,9 +330,6 @@ public class AmbariCustomCommandExecutionHelperTest { */ @Test(expected = AmbariException.class) public void testServiceCheckMaintenanceModeWithMissingComponentName() throws Exception { - SecurityContextHolder.getContext().setAuthentication( - TestAuthenticationFactory.createAdministrator()); - createClusterFixture("HDP-2.0.6"); long clusterId = clusters.getCluster("c1").getClusterId();