mirror of
https://github.com/nosqlbench/nosqlbench.git
synced 2024-11-21 16:27:51 -06:00
Allow Empty Scenarios (#2078)
This commit is contained in:
parent
99f43db475
commit
071ddbf9c2
@ -39,9 +39,10 @@ public class RawScenarios {
|
||||
String scenarioName = namedEntry.getKey();
|
||||
Object scenarioObj = namedEntry.getValue();
|
||||
if (scenarioObj == null) {
|
||||
throw new BasicError("Unable to use a null value for scenario named " + scenarioName + " in yaml.");
|
||||
}
|
||||
if (scenarioObj instanceof CharSequence) {
|
||||
//throw new BasicError("Unable to use a null value for scenario named " + scenarioName + " in yaml.");
|
||||
Map<String, String> scenarioMap = new LinkedHashMap<>();
|
||||
scenarios.put(scenarioName, scenarioMap);
|
||||
} else if (scenarioObj instanceof CharSequence) {
|
||||
scenarios.put(scenarioName, Map.of(String.format(STEPNAME, 1), scenarioObj.toString()));
|
||||
} else if (scenarioObj instanceof List) {
|
||||
List<String> list = (List<String>) scenarioObj;
|
||||
|
Loading…
Reference in New Issue
Block a user