perf(deploy): flatten-session caching, bulk DeploySiteAsync, paged management queries
This commit is contained in:
@@ -141,6 +141,22 @@ public class CommandTreeTests
|
||||
Assert.Contains("remove", subNames);
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void Deploy_HasSiteVerb_WithRequiredSiteId()
|
||||
{
|
||||
// WP2.5: bulk site deploy. Named `deploy site` to sit alongside
|
||||
// `deploy instance` / `deploy artifacts` — the group's convention is that
|
||||
// the verb names the SCOPE of the deploy.
|
||||
var deploy = DeployCommands.Build(Url, Format, Username, Password);
|
||||
var site = deploy.Subcommands.Single(c => c.Name == "site");
|
||||
|
||||
// --site-id is REQUIRED here, unlike `deploy artifacts` where omitting it
|
||||
// means fleet-wide. A bulk instance deploy must never be accidentally
|
||||
// fleet-wide.
|
||||
Assert.NotEmpty(site.Parse([]).Errors);
|
||||
Assert.Empty(site.Parse(["--site-id", "3"]).Errors);
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void InstanceNativeAlarmSource_HasSetAndClear()
|
||||
{
|
||||
@@ -323,6 +339,7 @@ public class CommandTreeTests
|
||||
[InlineData(typeof(SetInstanceOverridesCommand))]
|
||||
[InlineData(typeof(DebugSnapshotCommand))]
|
||||
[InlineData(typeof(MgmtDeployInstanceCommand))]
|
||||
[InlineData(typeof(MgmtDeploySiteCommand))]
|
||||
[InlineData(typeof(QueryAuditLogCommand))]
|
||||
[InlineData(typeof(ExportBundleCommand))]
|
||||
[InlineData(typeof(PreviewBundleCommand))]
|
||||
|
||||
Reference in New Issue
Block a user