Skip to content

Commit

Permalink
move dir
Browse files Browse the repository at this point in the history
Signed-off-by: Stephen Crawford <steecraw@amazon.com>
  • Loading branch information
stephen-crawford committed Apr 19, 2023
1 parent b12300c commit 9891f85
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
* compatible open source license.
*/

package org.opensearch.identity.shiro;
package org.opensearch.identity;

import org.opensearch.client.Request;
import org.opensearch.client.RequestOptions;
Expand All @@ -23,7 +23,7 @@
import static org.hamcrest.core.StringContains.containsString;
import static org.junit.Assert.assertThat;

@ClusterScope(scope = OpenSearchIntegTestCase.Scope.TEST, numDataNodes = 0)
@OpenSearchIntegTestCase.ClusterScope(numDataNodes = 0, numClientNodes = 0, scope = OpenSearchIntegTestCase.Scope.TEST)
public class BasicAuthenticationIT extends HttpSmokeTestCaseWithIdentity {

public void testBasicAuthSuccess() throws Exception {
Expand All @@ -32,7 +32,6 @@ public void testBasicAuthSuccess() throws Exception {

assertThat(content, response.getStatusLine().getStatusCode(), equalTo(RestStatus.OK.getStatus()));
assertThat(content, containsString("green"));
System.out.println("Successfully passed assertions in basic auth success");
}

public void testBasicAuthUnauthorized_invalidHeader() throws Exception {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,11 @@
* compatible open source license.
*/

package org.opensearch.identity.shiro;
package org.opensearch.identity;

import org.opensearch.common.network.NetworkModule;
import org.opensearch.common.settings.Settings;
import org.opensearch.identity.shiro.ShiroIdentityPlugin;
import org.opensearch.plugins.Plugin;
import org.opensearch.test.OpenSearchIntegTestCase;
import org.opensearch.transport.Netty4ModulePlugin;
Expand All @@ -27,6 +28,7 @@
*
* @opensearch.experimental
*/
@OpenSearchIntegTestCase.ClusterScope(numDataNodes = 0, numClientNodes = 0, scope = OpenSearchIntegTestCase.Scope.TEST)
public abstract class HttpSmokeTestCaseWithIdentity extends OpenSearchIntegTestCase {

private static String nodeTransportTypeKey;
Expand Down

0 comments on commit 9891f85

Please sign in to comment.