Multiplayer agent harness for work.
Fix MicroVM image tag parsing to read the capitalized Tags response key (#16)
Regan Bell34baba8273d3
diff --git a/cli/src/commands/infra.ts b/cli/src/commands/infra.tsindex 48a483990..195362711 100644--- a/cli/src/commands/infra.ts+++ b/cli/src/commands/infra.ts@@ -298,8 +298,8 @@ function imageTags(awsBin: string, region: string, imageArn: string): Record<str"json","--no-cli-pager",]),- ) as { tags?: Record<string, string> };- return parsed.tags ?? {};+ ) as { Tags?: Record<string, string> };+ return parsed.Tags ?? {};}function assertImageIdentity(config: QmConfig, awsBin: string, image: ImageSummary): ImageSummary {diff --git a/cli/test/infra-image.test.ts b/cli/test/infra-image.test.tsindex f9e4c2e8b..8ade027be 100644--- a/cli/test/infra-image.test.ts+++ b/cli/test/infra-image.test.ts@@ -103,7 +103,7 @@ else if (command === "s3api put-object") {console.log(JSON.stringify({items:[image()]}));}} else if (command === "lambda-microvms list-tags") {- console.log(JSON.stringify({tags:{ManagedBy:"qm-cli",Deployment:process.env.FAKE_DEPLOYMENT_TAG || "acme"}}));+ console.log(JSON.stringify({Tags:{ManagedBy:"qm-cli",Deployment:process.env.FAKE_DEPLOYMENT_TAG || "acme"}}));} else if (command === "lambda-microvms create-microvm-image" || command === "lambda-microvms update-microvm-image") {state = state || {version:0,state:"CREATED"};if (process.env.FAKE_CONFLICT === "1" && !state.conflictUsed) {