feat: recover interrupted installation preparation safely
This commit is contained in:
@@ -490,3 +490,11 @@ func containsSequence(values, wanted []string) bool {
|
||||
}
|
||||
return false
|
||||
}
|
||||
func TestPreparedGitRemoteRejectsPortsUnsupportedByRuntimeRegistry(t *testing.T) {
|
||||
if validateRepositoryRemote("https://git.example.test:8443/workspaces.git", "https") == nil {
|
||||
t.Fatal("runtime-rejected Git port accepted during document preparation")
|
||||
}
|
||||
if err := validateRepositoryRemote("https://git.example.test:443/workspaces.git", "https"); err != nil {
|
||||
t.Fatal("standard HTTPS port must match URL normalization")
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user