Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ public void testValidate(@Mocked Env env, @Mocked AccessControllerManager access
};

// test validate normal
ImmutableMap<String, String> properties = ImmutableMap.of("type", "spark", "host", "http://127.0.0.1:29200");
ImmutableMap<String, String> properties = ImmutableMap.of("type", "es", "host", "http://127.0.0.1:29200");
CreateResourceInfo info = new CreateResourceInfo(true, false, "test", properties);
CreateResourceCommand createResourceCommand = new CreateResourceCommand(info);
Assertions.assertDoesNotThrow(() -> createResourceCommand.getInfo().validate());
Expand All @@ -68,12 +68,6 @@ public void testValidate(@Mocked Env env, @Mocked AccessControllerManager access
info = new CreateResourceInfo(false, false, "test", properties);
CreateResourceCommand createResourceCommand3 = new CreateResourceCommand(info);
Assertions.assertThrows(AnalysisException.class, () -> createResourceCommand3.getInfo().validate());

// test spark is external resource
properties = ImmutableMap.of("type", "spark", "host", "http://127.0.0.1:29200");
info = new CreateResourceInfo(false, false, "test", properties);
CreateResourceCommand createResourceCommand4 = new CreateResourceCommand(info);
Assertions.assertThrows(AnalysisException.class, () -> createResourceCommand4.getInfo().validate());
}

@Test
Expand Down