test(installer): cover PowerShell latest Docker run
Heimdall Gitea / Detect CI scope (pull_request) Successful in 24s
Heimdall Gitea / Build and tests (pull_request) Successful in 16m15s
Heimdall Gitea / Build and scan agent image (pull_request) Skipped
Heimdall Gitea / Build and scan NVIDIA Agent image (pull_request) Skipped
Heimdall Gitea / Build and scan server image (pull_request) Successful in 6m49s
Heimdall Gitea / Publish versioned installer release (pull_request) Skipped
Heimdall Gitea / CI policy (pull_request) Successful in 3s
Heimdall Gitea / Detect CI scope (pull_request) Successful in 24s
Heimdall Gitea / Build and tests (pull_request) Successful in 16m15s
Heimdall Gitea / Build and scan agent image (pull_request) Skipped
Heimdall Gitea / Build and scan NVIDIA Agent image (pull_request) Skipped
Heimdall Gitea / Build and scan server image (pull_request) Successful in 6m49s
Heimdall Gitea / Publish versioned installer release (pull_request) Skipped
Heimdall Gitea / CI policy (pull_request) Successful in 3s
This commit is contained in:
1 parent
36d4045387
commit
7cb69721c5
1 file changed
+15
@@ -106,6 +106,19 @@ public class SiteDetailTests : PageTestBase
|
||||
var environment = (YamlMappingNode)agent.Children[new YamlScalarNode("environment")];
|
||||
((YamlScalarNode)environment.Children[new YamlScalarNode("Agent__InferenceExecutionProvider")]).Value.ShouldBe("CPU");
|
||||
});
|
||||
|
||||
cut.FindAll("button").Single(b => b.TextContent.Contains("Docker Run", StringComparison.OrdinalIgnoreCase)).Click();
|
||||
cut.WaitForAssertion(() =>
|
||||
{
|
||||
var commands = cut.FindAll("pre code").Select(code => code.TextContent).ToArray();
|
||||
commands.Length.ShouldBe(6);
|
||||
commands[0].ShouldContain("docker pull registry.example/heimdall-agent:latest");
|
||||
commands[1].ShouldContain("--pull always");
|
||||
commands[1].ShouldContain("registry.example/heimdall-agent:latest");
|
||||
commands[3].ShouldContain("docker pull 'registry.example/heimdall-agent:latest'");
|
||||
commands[4].ShouldContain("'--pull','always'");
|
||||
commands[4].ShouldContain("'registry.example/heimdall-agent:latest'");
|
||||
});
|
||||
}
|
||||
|
||||
[Fact]
|
||||
@@ -175,6 +188,8 @@ public class SiteDetailTests : PageTestBase
|
||||
run.ShouldContain("registry.example/heimdall-agent-gpu:latest");
|
||||
run.ShouldContain("--group-add \"$(stat -c '%g' /var/run/docker.sock)\"");
|
||||
run.ShouldContain("-v /var/run/docker.sock:/var/run/docker.sock");
|
||||
commands[4].ShouldContain("'--pull','always'");
|
||||
commands[4].ShouldContain("'registry.example/heimdall-agent-gpu:latest'");
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user