mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
Fix cluster-store tests
Signed-off-by: Sebastian Malton <sebastian@malton.name>
This commit is contained in:
parent
8704067244
commit
9539c1c8c0
@ -27,6 +27,7 @@ import type { WriteFileSync } from "../fs/write-file-sync.injectable";
|
|||||||
import writeFileSyncInjectable from "../fs/write-file-sync.injectable";
|
import writeFileSyncInjectable from "../fs/write-file-sync.injectable";
|
||||||
import type { WriteBufferSync } from "../fs/write-buffer-sync.injectable";
|
import type { WriteBufferSync } from "../fs/write-buffer-sync.injectable";
|
||||||
import writeBufferSyncInjectable from "../fs/write-buffer-sync.injectable";
|
import writeBufferSyncInjectable from "../fs/write-buffer-sync.injectable";
|
||||||
|
import lensProxyCertificateInjectable from "../certificate/lens-proxy-certificate.injectable";
|
||||||
|
|
||||||
// NOTE: this is intended to read the actual file system
|
// NOTE: this is intended to read the actual file system
|
||||||
const testDataIcon = readFileSync("test-data/cluster-store-migration-icon.png");
|
const testDataIcon = readFileSync("test-data/cluster-store-migration-icon.png");
|
||||||
@ -74,6 +75,13 @@ describe("cluster-store", () => {
|
|||||||
di.override(kubectlBinaryNameInjectable, () => "kubectl");
|
di.override(kubectlBinaryNameInjectable, () => "kubectl");
|
||||||
di.override(kubectlDownloadingNormalizedArchInjectable, () => "amd64");
|
di.override(kubectlDownloadingNormalizedArchInjectable, () => "amd64");
|
||||||
di.override(normalizedPlatformInjectable, () => "darwin");
|
di.override(normalizedPlatformInjectable, () => "darwin");
|
||||||
|
|
||||||
|
di.inject(lensProxyCertificateInjectable).set({
|
||||||
|
public: "<public-data>",
|
||||||
|
private: "<private-data>",
|
||||||
|
cert: "<ca-data>",
|
||||||
|
});
|
||||||
|
|
||||||
createCluster = di.inject(createClusterInjectionToken);
|
createCluster = di.inject(createClusterInjectionToken);
|
||||||
getCustomKubeConfigFilePath = di.inject(getCustomKubeConfigFilePathInjectable);
|
getCustomKubeConfigFilePath = di.inject(getCustomKubeConfigFilePathInjectable);
|
||||||
writeJsonSync = di.inject(writeJsonSyncInjectable);
|
writeJsonSync = di.inject(writeJsonSyncInjectable);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user