-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e121daa
commit ff75470
Showing
12 changed files
with
124 additions
and
41 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
import { describe, test, expect } from "vitest"; | ||
import { getStarterSetupItems } from "./onboarding"; | ||
|
||
describe("returns the correct items for the starter setup based on the deployment type", () => { | ||
test("doesnt return connect step for local deployment", () => { | ||
const isLocal = true; | ||
const items = getStarterSetupItems(isLocal); | ||
expect(items).toEqual(["run_first_pipeline"]); | ||
}); | ||
|
||
test("includes the connect step for non-local deployments", () => { | ||
const isLocal = false; | ||
const items = getStarterSetupItems(isLocal); | ||
expect(items).toEqual(["connect_zenml", "run_first_pipeline"]); | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
import { DeploymentType } from "@/types/server"; | ||
import { describe, test, expect } from "vitest"; | ||
import { checkIsLocalServer } from "./server"; | ||
|
||
describe("returns if the server is deployed locally or not", () => { | ||
test("returns true if the deployment type is local", () => { | ||
const deploymentType: DeploymentType = "local"; | ||
const isLocal = checkIsLocalServer(deploymentType); | ||
expect(isLocal).toBe(true); | ||
}); | ||
|
||
test("returns true if the deployment type is docker", () => { | ||
const deploymentType: DeploymentType = "docker"; | ||
const isLocal = checkIsLocalServer(deploymentType); | ||
expect(isLocal).toBe(true); | ||
}); | ||
|
||
test("returns false if the deployment type is not local and not docker", () => { | ||
const deploymentType: DeploymentType = "other"; | ||
const isLocal = checkIsLocalServer(deploymentType); | ||
expect(isLocal).toBe(false); | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
import { DeploymentType } from "@/types/server"; | ||
|
||
export function checkIsLocalServer(deploymentType: DeploymentType) { | ||
return deploymentType === "local" || deploymentType === "docker"; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters