Skip to content

Commit 97a4527

Browse files
author
Julien Ruaux
committed
test: fix config tests
1 parent 1962b47 commit 97a4527

File tree

2 files changed

+14
-9
lines changed

2 files changed

+14
-9
lines changed

README.adoc

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -96,35 +96,39 @@ The allowed configuration values are:
9696

9797
== Docker Example
9898

99-
1. Launch the containers
100-
+
99+
.Clone the project
100+
[source,console]
101+
----
102+
git clone {project-url}.git
103+
cd {project-name}
104+
----
105+
106+
.Launch the containers
101107
[source,console]
102108
----
103109
docker-compose up
104110
----
105111

106-
2. Create a RediSearch index
107-
+
112+
.Create a RediSearch index
108113
[source,console]
109114
----
110115
docker exec redismod /usr/local/bin/redis-cli FT.CREATE beers ON HASH PREFIX 1 beer: SCHEMA id TAG SORTABLE brewery_id TAG SORTABLE name TEXT SORTABLE abv NUMERIC SORTABLE descript TEXT style_name TAG SORTABLE cat_name TAG SORTABLE
111116
----
112117

113-
3. Add documents to the index
114-
+
118+
.Add documents to the index
115119
[source,console]
116120
----
117121
docker run --add-host=host.docker.internal:host-gateway jruaux/riot-file -h host.docker.internal import https://storage.googleapis.com/jrx/beers.json hset --keyspace beer --keys id
118122
----
119123

120-
4. Run the Trino CLI
124+
.Run the Trino CLI
121125
+
122126
[source,console]
123127
----
124128
docker exec -it trino trino --catalog redisearch --schema default
125129
----
126130

127-
5. Run a SQL query
131+
.Run a SQL query
128132
+
129133
[source,console]
130134
----

src/test/java/com/redis/trino/TestRediSearchConfig.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@ public class TestRediSearchConfig {
1818
public void testDefaults() {
1919
assertRecordedDefaults(recordDefaults(RediSearchConfig.class).setUri(null).setInsecure(false).setUsername(null)
2020
.setPassword(null).setDefaultSchema(RediSearchConfig.DEFAULT_SCHEMA)
21-
.setDefaultLimit(RediSearchConfig.DEFAULT_LIMIT).setCaseInsensitiveNames(false).setCursorCount(0)
21+
.setDefaultLimit(RediSearchConfig.DEFAULT_LIMIT).setCaseInsensitiveNames(false)
22+
.setCursorCount(RediSearchConfig.DEFAULT_CURSOR_COUNT)
2223
.setTableCacheExpiration(RediSearchConfig.DEFAULT_TABLE_CACHE_EXPIRATION.toSeconds())
2324
.setTableCacheRefresh(RediSearchConfig.DEFAULT_TABLE_CACHE_REFRESH.toSeconds()).setCluster(false)
2425
.setCaCertPath(null).setKeyPassword(null).setKeyPath(null).setCertPath(null));

0 commit comments

Comments
 (0)