Skip to content

Commit

Permalink
Enabling the update connnector setting in corresponding unit test
Browse files Browse the repository at this point in the history
Signed-off-by: Sicheng Song <[email protected]>
  • Loading branch information
b4sjoo committed Oct 7, 2023
1 parent 949ebeb commit 1189d5c
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,6 @@ public class RestMLCreateConnectorActionTests extends OpenSearchTestCase {
public void setup() {
MockitoAnnotations.openMocks(this);
when(mlFeatureEnabledSetting.isRemoteInferenceEnabled()).thenReturn(true);
when(mlFeatureEnabledSetting.isUpdateConnectorEnabled()).thenReturn(true);
restMLCreateConnectorAction = new RestMLCreateConnectorAction(mlFeatureEnabledSetting);

threadPool = new TestThreadPool(this.getClass().getSimpleName() + "ThreadPool");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ public void setup() {
client = spy(new NodeClient(Settings.EMPTY, threadPool));

when(mlFeatureEnabledSetting.isRemoteInferenceEnabled()).thenReturn(true);
when(mlFeatureEnabledSetting.isUpdateConnectorEnabled()).thenReturn(true);
restMLUpdateConnectorAction = new RestMLUpdateConnectorAction(mlFeatureEnabledSetting);

doAnswer(invocation -> {
Expand Down

0 comments on commit 1189d5c

Please sign in to comment.