promote rate to the preferred name for cyclerate

This commit is contained in:
Jonathan Shook 2020-12-02 14:19:07 -06:00
parent 0b03da159c
commit 5c8c5d9c9c

View File

@ -1,6 +1,5 @@
package io.nosqlbench.nb.api.config;
import io.nosqlbench.nb.api.config.Synonyms;
import org.junit.Test;
import static org.assertj.core.api.Assertions.assertThat;
@ -13,10 +12,10 @@ public class SynonymsTest {
StringBuilder sb = new StringBuilder();
String result = Synonyms.canonicalize(before, Synonyms.PARAM_SYNONYMS,
(s, s2) -> sb.append("replaced ").append(s).append(" with ").append(s2).append("\n"));
assertThat(result).isEqualTo("test workload ayamlfoo driver btype typea cyclerate");
assertThat(result).isEqualTo("test workload ayamlfoo driver btype typea rate");
assertThat(sb.toString()).isEqualTo("replaced type with driver\n" +
"replaced targetrate with cyclerate\n" +
"replaced yaml with workload\n");
"replaced targetrate with rate\n" +
"replaced yaml with workload\n");
}
}