fix: validate deployment rollback and server topology
This commit is contained in:
@@ -17,6 +17,21 @@ import (
|
||||
"github.com/aritmolab/thothii/tools/thothctl/internal/testsupport"
|
||||
)
|
||||
|
||||
func TestInstallationRunnerMapsProfileToSessionInventoryScope(t *testing.T) {
|
||||
for _, test := range []struct {
|
||||
profile string
|
||||
want string
|
||||
}{
|
||||
{profile: "local", want: "mine"},
|
||||
{profile: "server", want: "all"},
|
||||
} {
|
||||
runner := installationRunner{installation: config.Installation{Profile: test.profile}}
|
||||
if got := runner.SessionInventoryScope(); got != test.want {
|
||||
t.Fatalf("profile %q maps to session scope %q, want %q", test.profile, got, test.want)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Catches interactive configuration prompts that use retired model-only data instead of the
|
||||
// provider, model, and reasoning choices supplied by the dedicated Pi Management API.
|
||||
func TestResolvePiConfigureUsesNumberedClosedChoicesOnlyForTTY(t *testing.T) {
|
||||
|
||||
Reference in New Issue
Block a user