mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
Update tests
Signed-off-by: Sebastian Malton <sebastian@malton.name>
This commit is contained in:
parent
129eb3283e
commit
01487ad307
@ -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 },
|
||||
);
|
||||
});
|
||||
|
||||
|
||||
@ -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 },
|
||||
);
|
||||
});
|
||||
|
||||
|
||||
@ -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", () => {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user