fix: expose implemented async relay executors

This commit is contained in:
wlx committed 2026-09-30 12:50:27 +08:00
1 parent d8e05beb13
commit ea9069e332
2 files changed
+34 -5

No files matched your search

@@ -0,0 +1,19 @@
package com.moyi.controlplane.catalog;
import static org.junit.jupiter.api.Assertions.assertFalse;
import static org.junit.jupiter.api.Assertions.assertTrue;
import org.junit.jupiter.api.Test;
class CatalogServiceTest {
@Test
void asyncReadinessMatchesImplementedAdapters() {
assertTrue(CatalogService.asyncExecutorReady("provider-vast", "http", "3d"));
assertTrue(CatalogService.asyncExecutorReady("provider-bytedance", "http", "video"));
assertTrue(CatalogService.asyncExecutorReady("relay-provider", "openai-compatible", "image"));
assertTrue(CatalogService.asyncExecutorReady("relay-provider", "OPENAI-COMPATIBLE", "video"));
assertTrue(CatalogService.asyncExecutorReady("relay-provider", "openai-compatible", "audio"));
assertFalse(CatalogService.asyncExecutorReady("relay-provider", "openai-compatible", "3d"));
assertFalse(CatalogService.asyncExecutorReady("relay-provider", "http", "video"));
}
}