(assertions): Annotations should support hasNoXxx()
APIs
#18874
Labels
@aws-cdk/assertions
Related to the @aws-cdk/assertv2 package
effort/small
Small work item – less than a day of effort
feature-request
A feature should be added or improved.
good first issue
Related to contributions. See CONTRIBUTING.md
p2
Description
Add
has_no_error
,has_no_warning
, andhas_no_info
methods to the Annotations assertions toolkit.Use Case
I'm testing some EC2 constructs and lettings users pass in block volumes, adding errors if any volumes are unencrypted.
The test for something that produces an error is easy:
The test for a value that doesn't produce an error is awkward:
I would like to easily assert that there are no errors in the stack
Proposed Solution
Add a
has_no_error
method next to thehas_error
andfind_error
methods (as well asinfo
andwarning
variants).Other information
No response
Acknowledge
The text was updated successfully, but these errors were encountered: