Skip to content

Commit 9b78632

Browse files
Adding test stub
1 parent 26ecddb commit 9b78632

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

x-pack/plugin/inference/src/internalClusterTest/java/org/elasticsearch/xpack/inference/integration/AuthorizationTaskExecutorIT.java

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616
import org.elasticsearch.xpack.inference.LocalStateInferencePlugin;
1717
import org.elasticsearch.xpack.inference.registry.ModelRegistry;
1818
import org.elasticsearch.xpack.inference.services.elastic.ElasticInferenceServiceSettings;
19-
import org.elasticsearch.xpack.inference.services.elastic.authorization.AuthorizationTaskExecutor;
2019
import org.junit.After;
2120
import org.junit.Before;
2221
import org.junit.BeforeClass;
@@ -39,6 +38,7 @@ public class AuthorizationTaskExecutorIT extends ESSingleNodeTestCase {
3938
public static void initClass() throws IOException {
4039
webServer.start();
4140
gatewayUrl = getUrl(webServer);
41+
// TODO add response to the web server to return no authorized models
4242
}
4343

4444
@Before
@@ -67,6 +67,11 @@ protected Collection<Class<? extends Plugin>> getPlugins() {
6767
}
6868

6969
public void testCreateEndpoints() {
70-
var executor = new AuthorizationTaskExecutor();
70+
// verify that no models are authorized
71+
// add request to return an authorized model
72+
// cancel the task
73+
// ensure the task is recreated?
74+
// verify that the authorized model is present
75+
fail("Not implemented yet");
7176
}
7277
}

0 commit comments

Comments
 (0)