Skip to content

(assertions): Mapping and Output section assertions should accept the key #16242

@nija-at

Description

@nija-at

Take the sample CFN template -

{
  "Outputs": {
    "Out1": { "Value": "Val1" },
    "Out2": { "Value": "Val2" }
  }
}

The assertion here currently looks like -

template.hasOutput({
  Value: "Val1",
});

This is ambiguous and makes it impossible to assert that the correct values are present beside the correct keys.

The API should be corrected to include the key so as to fix this.


This is 🐛 Bug Report

Metadata

Metadata

Assignees

Labels

@aws-cdk/assertionsRelated to the @aws-cdk/assertv2 packagebugThis issue is a bug.effort/smallSmall work item – less than a day of effortp1

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions