mirror of
https://github.com/nosqlbench/nosqlbench.git
synced 2025-02-25 18:55:28 -06:00
nosqlbench-2149 Label values should not be constrained (#2150)
This commit is contained in:
@@ -83,16 +83,22 @@ class ActivityExecutorTest {
|
||||
// }
|
||||
|
||||
@Test
|
||||
synchronized void testAdvisorError() {
|
||||
synchronized void testLabelingError() {
|
||||
|
||||
// TODO improve contextual labeling assertions
|
||||
|
||||
try {
|
||||
ActivityDef activityDef = ActivityDef.parseActivityDef("driver=diag;alias=test-delayed-start;cycles=1000;initdelay=2000;");
|
||||
ActivityDef activityDef = ActivityDef.parseActivityDef("driver=diag;"
|
||||
+ "alias=test-delayed-start;"
|
||||
+ "cycles=1000;initdelay=2000;"
|
||||
+ "labels=invalid-name:valid"
|
||||
+ "-value");
|
||||
new ActivityTypeLoader().load(activityDef, TestComponent.INSTANCE);
|
||||
Activity activity = new DelayedInitActivity(activityDef);
|
||||
fail("Expected an Advisor exception");
|
||||
} catch (NBAdvisorException e) {
|
||||
} catch (RuntimeException e) {
|
||||
assertThat(e.toString().contains("error"));
|
||||
assertThat(e.getExitCode() == 2);
|
||||
// assertThat(e.getExitCode() == 2);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user