-
Notifications
You must be signed in to change notification settings - Fork 110
Redis data generation. #1487
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Redis data generation. #1487
Changes from 4 commits
bbd0b8d
283c947
0ffc9ee
bbf4c03
22ad83d
8611b5a
7d65fb7
55f8eb6
85f5bdf
a76d6ce
b8a6962
278a188
889d451
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,12 @@ | ||
| package org.evomaster.client.java.controller.api.dto.database.execution; | ||
|
|
||
|
|
||
| import java.util.ArrayList; | ||
| import java.util.List; | ||
|
|
||
| public class RedisExecutionsDto { | ||
|
|
||
| public RedisExecutionsDto() {} | ||
|
|
||
| public List<RedisFailedCommand> failedCommands = new ArrayList<>(); | ||
| } | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,19 @@ | ||
| package org.evomaster.client.java.controller.api.dto.database.execution; | ||
|
|
||
| public class RedisFailedCommand { | ||
|
aszyrej marked this conversation as resolved.
|
||
| public String command; | ||
| public String type; | ||
| public String key; | ||
|
jgaleotti marked this conversation as resolved.
|
||
|
|
||
| public RedisFailedCommand() {} | ||
|
|
||
| public RedisFailedCommand(String command, String key, String type) { | ||
| this.command = command; | ||
| this.key = key; | ||
| this.type = type; | ||
| } | ||
|
|
||
| public String getType() { | ||
|
aszyrej marked this conversation as resolved.
Outdated
|
||
| return type; | ||
| } | ||
| } | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,8 @@ | ||
| package org.evomaster.client.java.controller.api.dto.database.operations; | ||
|
|
||
| import java.util.ArrayList; | ||
| import java.util.List; | ||
|
|
||
| public class RedisDatabaseCommandDto { | ||
|
aszyrej marked this conversation as resolved.
Outdated
|
||
| public List<RedisInsertionDto> insertions = new ArrayList<>(); | ||
| } | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,13 @@ | ||
| package org.evomaster.client.java.controller.api.dto.database.operations; | ||
|
|
||
| public class RedisInsertionDto { | ||
|
jgaleotti marked this conversation as resolved.
|
||
|
|
||
| /** The Redis key.*/ | ||
| public String key; | ||
|
|
||
| /** The serialized value to set for that key. */ | ||
| public String value; | ||
|
|
||
| /** Keyspace index, default 0. */ | ||
| public int keyspace = 0; | ||
| } | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,10 @@ | ||
| package org.evomaster.client.java.controller.api.dto.database.operations; | ||
|
|
||
| import java.util.List; | ||
|
|
||
| public class RedisInsertionResultsDto { | ||
|
aszyrej marked this conversation as resolved.
|
||
|
|
||
| public RedisInsertionResultsDto() {} | ||
|
|
||
| public List<Boolean> executionResults; | ||
| } | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -522,6 +522,14 @@ public final void setExecutingInitMongo(boolean executingInitMongo) { | |
| ExecutionTracer.setExecutingInitMongo(executingInitMongo); | ||
| } | ||
|
|
||
| @Override | ||
| public final void setExecutingInitRedis(boolean executingInitRedis) { | ||
| checkInstrumentation(); | ||
| serverController.setExecutingInitMongo(executingInitRedis); | ||
| // sync executingInitMongo on the local ExecutionTracer | ||
| ExecutionTracer.setExecutingInitMongo(executingInitRedis); | ||
| } | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. why are those functions calling
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Sorry I missed these copy-paste errors in my review. And yes, there should be a test failing due to this.
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I apologize for this copy paste error, already changed the code. Since we do not generate heuristics on insertion commands, this didn't affect the logic for Redis data generation. |
||
|
|
||
| @Override | ||
| public final void setExecutingAction(boolean executingAction){ | ||
| checkInstrumentation(); | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.