fix(deploy): generate internal tenant key automatically
This commit is contained in:
@@ -69,4 +69,14 @@ func TestRDSCredentialConfiguratorPromptsForExternalDatabase(t *testing.T) {
|
||||
t.Errorf("RDS configurator missing %q", required)
|
||||
}
|
||||
}
|
||||
if strings.Contains(source, "DobotAI租户键") {
|
||||
t.Fatal("operator must not be prompted for the internal DobotAI tenant key")
|
||||
}
|
||||
installer, err := os.ReadFile("../deploy/dobotai-dingtalk/install-docker.sh")
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
if !strings.Contains(string(installer), "secrets.token_hex") || !strings.Contains(string(installer), "DOBOTAI_TENANT_KEY=dobotai-") {
|
||||
t.Fatal("installer must generate and persist the internal DobotAI tenant key")
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user