Skip to content

Commit

Permalink
Added IT
Browse files Browse the repository at this point in the history
Signed-off-by: Vamsi Manohar <[email protected]>
  • Loading branch information
vamsi-amazon committed Jul 10, 2023
1 parent a816a58 commit eab4344
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,10 @@
import java.util.ArrayList;
import java.util.List;
import lombok.SneakyThrows;
import org.apache.commons.lang3.StringUtils;
import org.junit.AfterClass;
import org.junit.Assert;
import org.junit.BeforeClass;
import org.junit.Test;
import org.opensearch.action.update.UpdateRequest;
import org.opensearch.client.Request;
import org.opensearch.client.RequestOptions;
import org.opensearch.client.Response;
import org.opensearch.client.ResponseException;
import org.opensearch.sql.datasource.model.DataSourceMetadata;
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
package org.opensearch.sql.datasource;

import static org.hamcrest.Matchers.equalTo;

import java.io.IOException;
import org.json.JSONObject;
import org.junit.Test;
import org.opensearch.sql.ppl.PPLIntegTestCase;

public class DatasourceClusterSettingsIT extends PPLIntegTestCase {

@Test
public void testDatasourceClusterSettings() throws IOException {
// Assert default cursor settings
JSONObject clusterSettings = getAllClusterSettings();
assertThat(clusterSettings.query("/persistent/plugins.query.datasources.encryption.masterkey"),
equalTo("0000000000000000"));
}

}

0 comments on commit eab4344

Please sign in to comment.