use of junitparams.Parameters in project geode by apache.
the class LuceneIndexCreationDUnitTest method verifyDifferentFieldAnalyzersFails3.
@Test
@Parameters({ "PARTITION" })
public void verifyDifferentFieldAnalyzersFails3(RegionTestableType regionType) {
SerializableRunnableIF createIndex1 = getAnalyzersIndexWithNullField2();
dataStore1.invoke(() -> initDataStore(createIndex1, regionType));
SerializableRunnableIF createIndex2 = getAnalyzersIndexWithNullField1();
dataStore2.invoke(() -> initDataStore(createIndex2, regionType, LuceneTestUtilities.CANNOT_CREATE_LUCENE_INDEX_DIFFERENT_ANALYZERS_3));
}
use of junitparams.Parameters in project geode by apache.
the class LuceneIndexCreationDUnitTest method verifyStandardAnalyzerAndNullOnSameFieldPasses2.
@Test
@Parameters("PARTITION")
public void verifyStandardAnalyzerAndNullOnSameFieldPasses2(RegionTestableType regionType) {
SerializableRunnableIF createIndex1 = getAnalyzersIndexWithTwoFields2();
dataStore1.invoke(() -> initDataStore(createIndex1, regionType));
SerializableRunnableIF createIndex2 = getAnalyzersIndexWithNullField1();
dataStore2.invoke(() -> initDataStore(createIndex2, regionType));
}
use of junitparams.Parameters in project geode by apache.
the class LuceneIndexCreationDUnitTest method verifyStandardAnalyzerAndNullOnSameFieldPasses.
@Test
@Parameters("PARTITION")
public void verifyStandardAnalyzerAndNullOnSameFieldPasses(RegionTestableType regionType) {
SerializableRunnableIF createIndex1 = getAnalyzersIndexWithNullField1();
dataStore1.invoke(() -> initDataStore(createIndex1, regionType));
SerializableRunnableIF createIndex2 = getAnalyzersIndexWithTwoFields2();
dataStore2.invoke(() -> initDataStore(createIndex2, regionType));
}
use of junitparams.Parameters in project geode by apache.
the class LuceneCommandsSecurityDUnitTest method verifyListIndexesPermissions.
@Test
@Parameters(method = "getListIndexesUserNameAndExpectedResponses")
public void verifyListIndexesPermissions(UserNameAndExpectedResponse user) throws Exception {
// Create index and region
createIndexAndRegion();
// Connect gfsh
this.gfshShell.secureConnectAndVerify(this.locator.getPort(), GfshShellConnectionRule.PortType.locator, user.getUserName(), user.getUserName());
// Attempt to search lucene index
CommandResult result = this.gfshShell.executeCommand(getListIndexesCommand());
// Verify result
verifyResult(user, result);
}
use of junitparams.Parameters in project geode by apache.
the class LuceneCommandsSecurityDUnitTest method verifyCreateIndexPermissions.
@Test
@Parameters(method = "getCreateIndexUserNameAndExpectedResponses")
public void verifyCreateIndexPermissions(UserNameAndExpectedResponse user) throws Exception {
// Connect gfsh
this.gfshShell.secureConnectAndVerify(this.locator.getPort(), GfshShellConnectionRule.PortType.locator, user.getUserName(), user.getUserName());
// Attempt to create lucene index
CommandResult result = this.gfshShell.executeCommand(getCreateIndexCommand());
// Verify result
verifyResult(user, result);
}
Aggregations