feat(jdbc): add managed Apache Phoenix profile

This commit is contained in:
Guoyu Su authored and GitHub committed 2026-08-06 23:16:12 +08:00
1 parent c835deb3f9
commit 69f4450aee
38 files changed
+1651 -77

No files matched your search

+11
View File
@@ -19,4 +19,15 @@ describe("DatabaseIcon", () => {
expect(container.querySelector("img")?.getAttribute("src")).toBe("/icons/database/oceanbase.svg");
app.unmount();
});
it("uses the Apache Phoenix asset for the Phoenix JDBC profile", async () => {
const container = document.createElement("div");
document.body.appendChild(container);
const app = createApp(DatabaseIcon, { dbType: "phoenix" });
app.mount(container);
await nextTick();
expect(container.querySelector("img")?.getAttribute("src")).toBe("/icons/database/phoenix.svg");
app.unmount();
});
});
@@ -55,6 +55,7 @@ const assetIcons: Record<string, string> = {
prestosql: "presto",
hive: "hive",
hbase: "hbase",
phoenix: "phoenix",
spark: "spark-logo.png",
apache_kylin: "apache_kylin",
sundb: "sundb",