|
1 | 1 | import { VendorPortalApi } from "./configuration"; |
2 | 2 | import { createCluster, createClusterWithLicense, upgradeCluster, pollForStatus } from "."; |
3 | | -import { Addon, Cluster, ClusterPort, StatusError, createAddonObjectStore, createAddonPostgres, exposeClusterPort, pollForAddonStatus } from "./clusters"; |
| 3 | +import { Addon, Cluster, ClusterPort, StatusError, createAddonObjectStore, exposeClusterPort, pollForAddonStatus } from "./clusters"; |
4 | 4 | import * as mockttp from "mockttp"; |
5 | 5 |
|
6 | 6 | describe("ClusterService", () => { |
@@ -226,29 +226,6 @@ describe("Cluster Add-ons", () => { |
226 | 226 | expect(addon.object_store).toEqual(expectedAddon.addon.object_store); |
227 | 227 | }); |
228 | 228 |
|
229 | | - test("should return postgres add-on", async () => { |
230 | | - const clusterId = "1234abcd"; |
231 | | - const expectedAddon = { |
232 | | - addon: { |
233 | | - id: "abcd1234", |
234 | | - status: "applied", |
235 | | - postgres: { |
236 | | - uri: "postgres://postgres:1234@test:5432", |
237 | | - version: "16.2", |
238 | | - instance_type: "db.t3.micro", |
239 | | - disk_gib: 200 |
240 | | - } |
241 | | - } |
242 | | - }; |
243 | | - |
244 | | - await mockServer.forPost(`/cluster/${clusterId}/addons/postgres`).thenReply(201, JSON.stringify(expectedAddon)); |
245 | | - |
246 | | - const addon: Addon = await createAddonPostgres(apiClient, clusterId); |
247 | | - expect(addon.id).toEqual(expectedAddon.addon.id); |
248 | | - expect(addon.status).toEqual(expectedAddon.addon.status); |
249 | | - expect(addon.postgres).toEqual(expectedAddon.addon.postgres); |
250 | | - }); |
251 | | - |
252 | 229 | test("should eventually return success with expected status", async () => { |
253 | 230 | const clusterId = "1234abcd"; |
254 | 231 | const expectedAddon = { id: "1234abcd", status: "ready" }; |
|
0 commit comments