Skip to content

Commit

Permalink
Revert "AMBARI-19741. Ambari Server Unit Test failure on branch-2.5/t…
Browse files Browse the repository at this point in the history
…runk for testUpdateConfigForceSecurityEnabled (echekanskiy via dlysnichenko)"

This reverts commit 31527a0.

(cherry picked from commit 687d701)

Change-Id: Ic8c55ee1f64ffe28afc4a472396226a195ed0973
  • Loading branch information
rlevas authored and sumitmohanty committed Jan 28, 2017
1 parent 76a9514 commit 6a17137
Showing 1 changed file with 3 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
import static org.easymock.EasyMock.capture;
import static org.easymock.EasyMock.expect;
import static org.easymock.EasyMock.expectLastCall;
import static org.junit.Assert.assertTrue;
import static org.junit.Assert.assertEquals;

import java.io.File;
import java.util.Collection;
Expand Down Expand Up @@ -163,15 +163,8 @@ public void testUpdateConfigForceSecurityEnabled() throws Exception {
action.setExecutionCommand(executionCommand);
action.execute(null);

assertTrue(configTypes.getValues().contains("cluster-env"));
boolean containsSecurityEnabled = false;
for(Map<String, String> properties: configUpdates.getValues()) {
if(properties.containsKey("security_enabled")) {
containsSecurityEnabled = true;
break;
}
}
assertTrue(containsSecurityEnabled);
assertEquals(configTypes.getValue(), "cluster-env");
assertEquals(configUpdates.getValue().get("security_enabled"), "false");
verifyAll();
}

Expand Down

0 comments on commit 6a17137

Please sign in to comment.