Install native Asterisk as a verified user systemd service
This commit is contained in:
@@ -12,7 +12,7 @@ func TestDeploymentHasOneCanonicalDirectory(t *testing.T) {
|
||||
if _, err := os.Stat(filepath.Join(root, "deploy")); !errors.Is(err, os.ErrNotExist) {
|
||||
t.Fatalf("obsolete deploy directory must not remain: %v", err)
|
||||
}
|
||||
for _, path := range []string{"README.md", "build-package.sh", "install.sh", "versions.lock.json", "cell/install-asterisk-native.sh", "test/nonprod-call-evidence.sh", "test/README.md", "systemd/sip-go-agent-agent.service", "systemd/sip-go-agent-dispatcher.service", "config/agent-endpoints.example.json"} {
|
||||
for _, path := range []string{"README.md", "build-package.sh", "install.sh", "versions.lock.json", "cell/install-asterisk-user.sh", "test/nonprod-call-evidence.sh", "test/README.md", "systemd/sip-go-agent-agent.service", "systemd/sip-go-agent-dispatcher.service", "config/agent-endpoints.example.json"} {
|
||||
info, err := os.Stat(filepath.Join(root, "deploys", path))
|
||||
if err != nil {
|
||||
t.Errorf("canonical deployment entry %s: %v", path, err)
|
||||
@@ -22,7 +22,7 @@ func TestDeploymentHasOneCanonicalDirectory(t *testing.T) {
|
||||
t.Errorf("deployment entry %s is not a regular file", path)
|
||||
}
|
||||
}
|
||||
for _, path := range []string{"config/dispatcher.json.example", "config/static-cell-artifact-v2.json", "config/static-cell-runtime-v1.json", "test/ai-dental-meiba-v1.json"} {
|
||||
for _, path := range []string{"config/dispatcher.json.example", "config/static-cell-artifact-v2.json", "config/static-cell-runtime-v1.json", "test/ai-dental-meiba-v1.json", "cell/install-asterisk-native.sh", "cell/asterisk.service"} {
|
||||
if _, err := os.Lstat(filepath.Join(root, "deploys", path)); !errors.Is(err, os.ErrNotExist) {
|
||||
t.Errorf("retired deployment example %s still active: %v", path, err)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user