Remove legacy steamcmd and SCUM runtime coupling
This commit is contained in:
@@ -155,6 +155,16 @@ func TestVerifiedDependencyDownloadUsesHTTPSChecksumAndScopedDestination(t *test
|
||||
}
|
||||
}
|
||||
|
||||
func TestDependencyInstallRejectsLegacySteamCMDAppAdapter(t *testing.T) {
|
||||
executor := NewLifecycleExecutor(WithLifecycleWorkspaceRoot(t.TempDir()), WithDependencyCommandRunner(&dependencyTestSupervisor{}))
|
||||
assignment := dependencyAssignment(protocol.RunCapabilityDependenciesInstall)
|
||||
input := dependencyInputForAssignment(assignment)
|
||||
step := protocol.DependencyInstallStep{Type: "steamcmd-app", TargetKey: "server/install-root", PackageManager: "steamcmd", PackageName: "123456"}
|
||||
if err := executor.runDependencyInstallStep(context.Background(), assignment, input, step, 0); err == nil || !strings.Contains(err.Error(), "unsupported") {
|
||||
t.Fatalf("expected legacy SteamCMD app adapter rejection, got %v", err)
|
||||
}
|
||||
}
|
||||
|
||||
func dependencyAssignment(capability string) protocol.RunJobAssignment {
|
||||
assignment := workerJobAssignment(capability)
|
||||
assignment.LeaseToken = "lease-dependency"
|
||||
|
||||
Reference in New Issue
Block a user