From 23d565003b732f5757abf073572ce1ae0dfedba7 Mon Sep 17 00:00:00 2001 From: Julien Ruaux Date: Wed, 7 Jun 2023 09:35:57 -0700 Subject: [PATCH] test: Fixed faker-import tests --- .../java/com/redis/riot/cli/AbstractRiotTests.java | 14 +++++++------- ...er-tsadd-options => faker-import-tsadd-options} | 0 2 files changed, 7 insertions(+), 7 deletions(-) rename plugins/riot/src/test/resources/{faker-tsadd-options => faker-import-tsadd-options} (100%) diff --git a/plugins/riot/src/test/java/com/redis/riot/cli/AbstractRiotTests.java b/plugins/riot/src/test/java/com/redis/riot/cli/AbstractRiotTests.java index 550f294f5..29d78a14b 100644 --- a/plugins/riot/src/test/java/com/redis/riot/cli/AbstractRiotTests.java +++ b/plugins/riot/src/test/java/com/redis/riot/cli/AbstractRiotTests.java @@ -620,7 +620,7 @@ void fakerIncludeMetadata() throws Exception { @Test void fakerHash() throws Exception { - List keys = testImport("faker-hset", "person:*", 1000); + List keys = testImport("faker-import-hset", "person:*", 1000); Map person = connection.sync().hgetall(keys.get(0)); Assertions.assertTrue(person.containsKey("firstName")); Assertions.assertTrue(person.containsKey("lastName")); @@ -629,7 +629,7 @@ void fakerHash() throws Exception { @Test void fakerSet() throws Exception { - execute("faker-sadd"); + execute("faker-import-sadd"); RedisSetCommands sync = connection.sync(); Set names = sync.smembers("got:characters"); Assertions.assertTrue(names.size() > 10); @@ -640,7 +640,7 @@ void fakerSet() throws Exception { @Test void fakerZset() throws Exception { - execute("faker-zadd"); + execute("faker-import-zadd"); RedisKeyCommands sync = connection.sync(); List keys = sync.keys("leases:*"); Assertions.assertTrue(keys.size() > 100); @@ -650,7 +650,7 @@ void fakerZset() throws Exception { @Test void fakerStream() throws Exception { - execute("faker-xadd"); + execute("faker-import-xadd"); RedisStreamCommands sync = connection.sync(); List> messages = sync.xrange("teststream:1", Range.unbounded()); Assertions.assertTrue(messages.size() > 0); @@ -668,7 +668,7 @@ void fakerInfer() throws Exception { Field.tag(FIELD_ID).sortable().build(), Field.text(FIELD_NAME).sortable().build(), Field.text(FIELD_STYLE).matcher(PhoneticMatcher.ENGLISH).sortable().build(), Field.numeric(FIELD_ABV).sortable().build(), Field.numeric(FIELD_OUNCES).sortable().build()); - execute("faker-infer"); + execute("faker-import-infer"); SearchResults results = connection.sync().ftSearch(INDEX, "*"); Assertions.assertEquals(1000, results.getCount()); Document doc1 = results.get(0); @@ -677,14 +677,14 @@ void fakerInfer() throws Exception { @Test void fakerTsAdd() throws Exception { - execute("faker-tsadd"); + execute("faker-import-tsadd"); List samples = connection.sync().tsRange("ts:gen", TimeRange.unbounded(), null); Assertions.assertEquals(10, samples.size()); } @Test void fakerTsAddWithOptions() throws Exception { - execute("faker-tsadd-options"); + execute("faker-import-tsadd-options"); List> results = connection.sync().tsMrange(TimeRange.unbounded(), MRangeOptions.filters("character1=Einstein").build()); Assertions.assertFalse(results.isEmpty()); diff --git a/plugins/riot/src/test/resources/faker-tsadd-options b/plugins/riot/src/test/resources/faker-import-tsadd-options similarity index 100% rename from plugins/riot/src/test/resources/faker-tsadd-options rename to plugins/riot/src/test/resources/faker-import-tsadd-options