refactor: rename clawdbot to moltbot with legacy compat
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import ClawdbotDiscovery
|
||||
import MoltbotDiscovery
|
||||
import Testing
|
||||
|
||||
@Suite
|
||||
@@ -35,7 +35,7 @@ struct GatewayDiscoveryModelTests {
|
||||
#expect(GatewayDiscoveryModel.isLocalGateway(
|
||||
lanHost: nil,
|
||||
tailnetDns: nil,
|
||||
displayName: "Peter's Mac Studio (Clawdbot)",
|
||||
displayName: "Peter's Mac Studio (Moltbot)",
|
||||
serviceName: nil,
|
||||
local: local))
|
||||
}
|
||||
@@ -72,13 +72,13 @@ struct GatewayDiscoveryModelTests {
|
||||
lanHost: nil,
|
||||
tailnetDns: nil,
|
||||
displayName: nil,
|
||||
serviceName: "steipetacstudio (Clawdbot)",
|
||||
serviceName: "steipetacstudio (Moltbot)",
|
||||
local: local))
|
||||
#expect(GatewayDiscoveryModel.isLocalGateway(
|
||||
lanHost: nil,
|
||||
tailnetDns: nil,
|
||||
displayName: nil,
|
||||
serviceName: "steipete (Clawdbot)",
|
||||
serviceName: "steipete (Moltbot)",
|
||||
local: local))
|
||||
}
|
||||
|
||||
@@ -88,13 +88,13 @@ struct GatewayDiscoveryModelTests {
|
||||
"tailnetDns": " peters-mac-studio-1.ts.net ",
|
||||
"sshPort": " 2222 ",
|
||||
"gatewayPort": " 18799 ",
|
||||
"cliPath": " /opt/clawdbot ",
|
||||
"cliPath": " /opt/moltbot ",
|
||||
])
|
||||
#expect(parsed.lanHost == "studio.local")
|
||||
#expect(parsed.tailnetDns == "peters-mac-studio-1.ts.net")
|
||||
#expect(parsed.sshPort == 2222)
|
||||
#expect(parsed.gatewayPort == 18799)
|
||||
#expect(parsed.cliPath == "/opt/clawdbot")
|
||||
#expect(parsed.cliPath == "/opt/moltbot")
|
||||
}
|
||||
|
||||
@Test func parsesGatewayTXTDefaults() {
|
||||
|
||||
Reference in New Issue
Block a user