mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
1 parent
129eb3283e
commit
01487ad307
5 files changed
+12
-2
No files matched your search
@@ -167,6 +167,7 @@ describe("add custom helm repository in preferences", () => {
|
||||
expect(execFileMock).toHaveBeenCalledWith(
|
||||
"some-helm-binary-path",
|
||||
["repo", "add", "some-custom-repository", "http://some.url"],
|
||||
{ "maxBuffer": 34359738368 },
|
||||
);
|
||||
});
|
||||
|
||||
@@ -365,6 +366,7 @@ describe("add custom helm repository in preferences", () => {
|
||||
"--cert-file",
|
||||
"some-cert-file",
|
||||
],
|
||||
{ "maxBuffer": 34359738368 },
|
||||
);
|
||||
});
|
||||
});
|
||||
|
||||
@@ -119,6 +119,7 @@ describe("add helm repository from list in preferences", () => {
|
||||
expect(execFileMock).toHaveBeenCalledWith(
|
||||
"some-helm-binary-path",
|
||||
["repo", "add", "Some to be added repository", "some-other-url"],
|
||||
{ "maxBuffer": 34359738368 },
|
||||
);
|
||||
});
|
||||
|
||||
@@ -227,6 +228,7 @@ describe("add helm repository from list in preferences", () => {
|
||||
expect(execFileMock).toHaveBeenCalledWith(
|
||||
"some-helm-binary-path",
|
||||
["repo", "remove", "Some already active repository"],
|
||||
{ "maxBuffer": 34359738368 },
|
||||
);
|
||||
});
|
||||
|
||||
|
||||
@@ -69,6 +69,7 @@ describe("listing active helm repositories in preferences", () => {
|
||||
expect(execFileMock).toHaveBeenCalledWith(
|
||||
"some-helm-binary-path",
|
||||
["env"],
|
||||
{ "maxBuffer": 34359738368 },
|
||||
);
|
||||
});
|
||||
|
||||
@@ -76,6 +77,7 @@ describe("listing active helm repositories in preferences", () => {
|
||||
expect(execFileMock).not.toHaveBeenCalledWith(
|
||||
"some-helm-binary-path",
|
||||
["repo", "update"],
|
||||
{ "maxBuffer": 34359738368 },
|
||||
);
|
||||
});
|
||||
|
||||
@@ -207,6 +209,7 @@ describe("listing active helm repositories in preferences", () => {
|
||||
expect(execFileMock).toHaveBeenCalledWith(
|
||||
"some-helm-binary-path",
|
||||
["repo", "update"],
|
||||
{ "maxBuffer": 34359738368 },
|
||||
);
|
||||
});
|
||||
|
||||
@@ -265,6 +268,7 @@ describe("listing active helm repositories in preferences", () => {
|
||||
expect(execFileMock).toHaveBeenCalledWith(
|
||||
"some-helm-binary-path",
|
||||
["repo", "add", "bitnami", "https://charts.bitnami.com/bitnami"],
|
||||
{ "maxBuffer": 34359738368 },
|
||||
);
|
||||
});
|
||||
|
||||
@@ -400,6 +404,7 @@ describe("listing active helm repositories in preferences", () => {
|
||||
expect(execFileMock).not.toHaveBeenCalledWith(
|
||||
"some-helm-binary-path",
|
||||
["repo", "add", "bitnami", "https://charts.bitnami.com/bitnami"],
|
||||
{ "maxBuffer": 34359738368 },
|
||||
);
|
||||
});
|
||||
|
||||
|
||||
+1
@@ -86,6 +86,7 @@ describe("remove helm repository from list of active repositories in preferences
|
||||
expect(execFileMock).toHaveBeenCalledWith(
|
||||
"some-helm-binary-path",
|
||||
["repo", "remove", "some-active-repository"],
|
||||
{ "maxBuffer": 34359738368 },
|
||||
);
|
||||
});
|
||||
|
||||
|
||||
+2
-2
@@ -48,9 +48,9 @@ describe("get helm release resources", () => {
|
||||
});
|
||||
|
||||
it("calls for release manifest", () => {
|
||||
expect(execHelmMock).toHaveBeenCalledWith(
|
||||
expect(execHelmMock).toHaveBeenCalledWith([
|
||||
"get", "manifest", "some-release", "--namespace", "some-namespace", "--kubeconfig", "/some-kubeconfig-path",
|
||||
);
|
||||
]);
|
||||
});
|
||||
|
||||
it("does not call for resources yet", () => {
|
||||
|
||||
Reference in new issue
Block a user