Add assertion asserting that the 'principalNameIndex' OQL Index is a FUNCTIONAL/RANGE Index and not a HASH Index.

Resolves gh-45.
This commit is contained in:
John Blum
2019-11-20 16:02:27 -08:00
parent c0e778cc9a
commit 72b257abb3

View File

@@ -37,6 +37,7 @@ import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.ConfigurableApplicationContext;
import org.springframework.context.annotation.Bean;
import org.springframework.data.gemfire.GemfireTemplate;
import org.springframework.data.gemfire.IndexType;
import org.springframework.data.gemfire.config.annotation.ClientCacheApplication;
import org.springframework.data.gemfire.tests.integration.SpringApplicationContextIntegrationTestsSupport;
import org.springframework.data.gemfire.tests.mock.annotation.EnableGemFireMockObjects;
@@ -90,6 +91,7 @@ public class GemFireHttpSessionConfigurationIntegrationTests extends SpringAppli
assertThat(sessionsRegion.getName()).isEqualTo(GemFireHttpSessionConfiguration.DEFAULT_SESSION_REGION_NAME);
assertThat(principleNameIndex).isNotNull();
assertThat(principleNameIndex.getName()).isEqualTo("principalNameIndex");
assertThat(principleNameIndex.getType()).isEqualTo(IndexType.FUNCTIONAL.getGemfireIndexType());
assertThat(principleNameIndex.getRegion()).isEqualTo(sessionsRegion);
assertThat(getApplicationContext().getBean(SessionRepository.class)).isInstanceOf(GemFireOperationsSessionRepository.class);
assertThat(sessionsRegionTemplate).isNotNull();