mirror of
https://github.com/getcompanion-ai/computer-host.git
synced 2026-04-15 05:02:05 +00:00
feat: update pure prompt zsh naming nad other guest os files (#6)
This commit is contained in:
parent
9acbf232eb
commit
9382de7eba
4 changed files with 88 additions and 0 deletions
|
|
@ -153,6 +153,20 @@ func TestCreateMachineStagesArtifactsAndPersistsState(t *testing.T) {
|
|||
if !strings.Contains(authorizedKeys, "daemon-test") {
|
||||
t.Fatalf("authorized_keys missing request override key: %q", authorizedKeys)
|
||||
}
|
||||
machineName, err := readExt4File(runtime.lastSpec.RootFSPath, "/etc/microagent/machine-name")
|
||||
if err != nil {
|
||||
t.Fatalf("read injected machine-name: %v", err)
|
||||
}
|
||||
if machineName != "vm-1\n" {
|
||||
t.Fatalf("machine-name mismatch: got %q want %q", machineName, "vm-1\n")
|
||||
}
|
||||
hosts, err := readExt4File(runtime.lastSpec.RootFSPath, "/etc/hosts")
|
||||
if err != nil {
|
||||
t.Fatalf("read injected hosts: %v", err)
|
||||
}
|
||||
if !strings.Contains(hosts, "127.0.1.1 vm-1") {
|
||||
t.Fatalf("hosts missing machine identity: %q", hosts)
|
||||
}
|
||||
|
||||
artifact, err := fileStore.GetArtifact(context.Background(), response.Machine.Artifact)
|
||||
if err != nil {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue