mirror of
https://github.com/Start9Labs/start-os.git
synced 2026-03-30 04:01:58 +00:00
make service interfaces and hosts one to one
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import { NetworkInterfaceBuilder } from "../interfaces/NetworkInterfaceBuilder"
|
||||
import { ServiceInterfaceBuilder } from "../interfaces/ServiceInterfaceBuilder"
|
||||
import { Effects } from "../types"
|
||||
import { createUtils } from "../util"
|
||||
|
||||
@@ -8,7 +8,7 @@ describe("host", () => {
|
||||
const utils = createUtils<never, never>(effects)
|
||||
const foo = utils.host.multi("foo")
|
||||
const fooOrigin = await foo.bindPort(80, { protocol: "http" as const })
|
||||
const fooInterface = new NetworkInterfaceBuilder({
|
||||
const fooInterface = new ServiceInterfaceBuilder({
|
||||
effects,
|
||||
name: "Foo",
|
||||
id: "foo",
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { getHostname } from "../util/getNetworkInterface"
|
||||
import { getHostname } from "../util/getServiceInterface"
|
||||
|
||||
describe("getHostname ", () => {
|
||||
const inputToExpected = [
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { getHostname } from "../util/getNetworkInterface"
|
||||
import { getHostname } from "../util/getServiceInterface"
|
||||
import { splitCommand } from "../util/splitCommand"
|
||||
|
||||
describe("splitCommand ", () => {
|
||||
|
||||
Reference in New Issue
Block a user