Skip to content
This repository has been archived by the owner on Jun 13, 2024. It is now read-only.

Commit

Permalink
proxy
Browse files Browse the repository at this point in the history
  • Loading branch information
pyramation committed Apr 20, 2024
1 parent e2ad822 commit 646163b
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 13 deletions.
6 changes: 0 additions & 6 deletions ci/utils/__tests__/__snapshots__/client.deps.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -2,24 +2,19 @@

exports[`StarshipClient has all deps 1`] = `
"Call: exec(["something"])
Call: checkDependencies()
something"
`;

exports[`StarshipClient has all deps 2`] = `"something"`;

exports[`StarshipClient missing deps 1`] = `
"Call: exec(["something"])
Call: checkDependencies()
Call: log("\\u001b[31mx\\u001b[39mkubectl\\n\\u001b[31mx\\u001b[39mdocker\\n\\u001b[32m✓\\u001b[39mhelm\\n\\u001b[32m✓\\u001b[39myq")
xkubectl
xdocker
✓helm
✓yq
Call: log("\\nPlease install the missing dependencies:")
Please install the missing dependencies:
Call: log("\\n\\n\\u001b[1m\\u001b[37mkubectl: \\u001b[39m\\u001b[22m\\u001b[36mhttps://kubernetes.io/docs/tasks/tools/\\u001b[39m\\n\\u001b[90mAlternatively, you can install Docker for Mac which includes Kubernetes: \\u001b[39m\\u001b[37m\\u001b[1mhttps://docs.docker.com/desktop/install/mac-install/\\u001b[22m\\u001b[39m\\n\\n\\n\\u001b[1m\\u001b[37mdocker: \\u001b[39m\\u001b[22m\\u001b[36mhttps://docs.docker.com/get-docker/\\u001b[39m\\n\\u001b[90mFor macOS, you may also consider Docker for Mac: \\u001b[39m\\u001b[37m\\u001b[1mhttps://docs.docker.com/desktop/install/mac-install/\\u001b[22m\\u001b[39m\\n\\n")
kubectl: https://kubernetes.io/docs/tasks/tools/
Expand All @@ -30,7 +25,6 @@ docker: https://docs.docker.com/get-docker/
For macOS, you may also consider Docker for Mac: https://docs.docker.com/desktop/install/mac-install/
Call: exit(1)
something"
`;

Expand Down
5 changes: 0 additions & 5 deletions ci/utils/__tests__/__snapshots__/client.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -4,26 +4,21 @@ exports[`StarshipClient setup 1`] = `
"Call: setup()
Call: setupHelm()
Call: exec(["helm","repo","add","starship","https://cosmology-tech.github.io/starship/"])
Call: checkDependencies()
helm repo add starship https://cosmology-tech.github.io/starship/
Call: exec(["helm","repo","update"])
Call: checkDependencies()
helm repo update
Call: exec(["helm","search","repo","starship/devnet","--version","v0.1.38"])
Call: checkDependencies()
helm search repo starship/devnet --version v0.1.38
Call: install()
Call: log("Installing the helm chart. This is going to take a while.....")
Installing the helm chart. This is going to take a while.....
Call: exec(["helm","install","-f","../../__fixtures__/config.yaml","osmojs","starship/devnet","--version","v0.1.38"])
Call: checkDependencies()
helm install -f ../../__fixtures__/config.yaml osmojs starship/devnet --version v0.1.38
Call: log("Run \\"kubectl get pods\\" to check the status of the cluster")
Run "kubectl get pods" to check the status of the cluster
Call: teardown()
Call: removeHelm()
Call: exec(["helm","repo","remove","starship"])
Call: checkDependencies()
helm repo remove starship"
`;

Expand Down
2 changes: 1 addition & 1 deletion ci/utils/test-utils/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ export const createClient = () => {
// @ts-ignore
proxiedClient.exec = (cmd: string[]) => {
// @ts-ignore
proxiedClient.checkDependencies();
client.checkDependencies();
ctx.commands.push(cmd.join(' '));
ctx.logs.push(cmd.join(' '));
};
Expand Down
2 changes: 1 addition & 1 deletion yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2385,7 +2385,7 @@ deep-is@^0.1.3:
resolved "https://registry.yarnpkg.com/deep-is/-/deep-is-0.1.4.tgz#a6f2dce612fadd2ef1f519b73551f17e85199831"
integrity sha512-oIPzksmTg4/MriiaYGO+okXDT7ztn/w3Eptv/+gSIdMdKsJo0u4CfYNFJPy+4SKMuCqGw2wxnA+URMg3t8a/bQ==

deepmerge@^4.2.2, deepmerge@^4.3.1:
deepmerge@^4.2.2:
version "4.3.1"
resolved "https://registry.yarnpkg.com/deepmerge/-/deepmerge-4.3.1.tgz#44b5f2147cd3b00d4b56137685966f26fd25dd4a"
integrity sha512-3sUqbMEc77XqpdNO7FRyRog+eW3ph+GYCbj+rK+uYyRMuwsVy0rMiVtPn+QJlKFvWP/1PYpapqYn0Me2knFn+A==
Expand Down

0 comments on commit 646163b

Please sign in to comment.