/*
 * Copyright 2014 Cask Data, Inc.
 *
 * Licensed under the Apache License, Version 2.0 (the "License"); you may not
 * use this file except in compliance with the License. You may obtain a copy of
 * the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
 * License for the specific language governing permissions and limitations under
 * the License.
 */

package co.cask.cdap.security.server;

import co.cask.cdap.common.conf.CConfiguration;
import co.cask.cdap.common.conf.Constants;
import org.apache.http.client.HttpClient;
import org.apache.http.impl.client.DefaultHttpClient;
import org.junit.BeforeClass;

/**
 * Test External Authentication Server
 */
public class ExternalAuthenticationServerTest extends ExternalAuthenticationServerTestBase {

  @BeforeClass
  public static void beforeClass() throws Exception {
    CConfiguration cConf = CConfiguration.create();
    cConf.set(Constants.Security.AuthenticationServer.SSL_ENABLED, "false");

    configuration = cConf;

    setup();
  }

  @Override
  protected String getProtocol() {
    return "http";
  }

  @Override
  protected HttpClient getHTTPClient() throws Exception {
    return new DefaultHttpClient();
  }
}

@@ -719,16 +719,64 @@
 stants;%0A
+import co.cask.cdap.common.conf.SConfiguration;%0A
 import o
@@ -1261,16 +1261,61 @@
  cConf;%0A
+    sConfiguration = SConfiguration.create();
 %0A    set

test case fix