- Review now checks the server before deploying (SSH, root access, OS, CPU, Python, memory, disk, ports 80/443/8448) and resolves every DNS record against the server's addresses. Enter asks twice when a check failed. - Deploys end with the playbook's self-check; results list the services that answered and what failed. Certificate validation is turned off for self-signed setups. - Welcome offers a Manage menu once a server is installed: update, self-check, restart, add a user, close/open registration, back up Postgres to this computer, and view any service's logs. - `interzone bundle` packs the playbook with its roles, Ansible's Python packages and the binary for machines without internet; `unbundle` installs it, and deploys fall back to the bundled copy. - `interzone apply` and `interzone check` run without the TUI. - Invalid YAML in the extra vars and YAML fields is caught on Review. - Screens are roomier: padded body, spaced form fields and sections, two-line component rows, wider cards and separators. - The Server step no longer turns the domain matrix.org into org. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
21 lines
467 B
Go
21 lines
467 B
Go
package config
|
|
|
|
import (
|
|
"strings"
|
|
"testing"
|
|
)
|
|
|
|
func TestMissingFlagsInvalidExtraYAML(t *testing.T) {
|
|
c := Default()
|
|
c.Domain = "example.org"
|
|
c.ExtraYAML = "sss\ns\ns"
|
|
got := strings.Join(c.Missing(), "\n")
|
|
if !strings.Contains(got, "aren't valid YAML") {
|
|
t.Fatalf("invalid extra YAML not reported: %q", got)
|
|
}
|
|
c.ExtraYAML = "matrix_synapse_max_upload_size_mb: 200\n"
|
|
if m := c.Missing(); len(m) != 0 {
|
|
t.Fatalf("valid extra YAML reported: %v", m)
|
|
}
|
|
}
|