Skip to content

Commit

Permalink
fix e2e demo cluster test
Browse files Browse the repository at this point in the history
  • Loading branch information
ghkadim committed Jul 23, 2024
1 parent 16dd70f commit 4ed4e27
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions integration-test/DemoClusterService.test.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { ForbiddenException } from "../src";
import { config } from "./configuration";
import { testPlatformFactory } from "./utils";
import type { TestPlatform } from "./utils";
Expand All @@ -13,11 +14,10 @@ describe("DemoClusterService", () => {
});

describe("getConfig", () => {
it("returns kubeconfig file", async () => {
const config = await bobPlatform.client.demoCluster.getConfig();

expect(config.startsWith("apiVersion: v1")).toBeTruthy();
expect(typeof config).toBe("string");
it("doesn't return democluster config for old users", async () => {
return expect(bobPlatform.client.demoCluster.getConfig()).rejects.toThrowError(
ForbiddenException,
);
});
});
});

0 comments on commit 4ed4e27

Please sign in to comment.