aws-samples / aws-samples/aws-cdk-lambda-cloudwatch-dashboard
Error after running "npm run test"
- Lingua principale
- TypeScript
- Stelle
- 17
- Fork
- 3
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Descrizione
Is there any other step to follow?
# Below is the error message:
Lambda Dashboard Created (43 ms)
● Lambda Dashboard Created
None of 0 resources matches resource 'AWS::CloudWatch::Dashboard' with {
"$objectLike": {
"DashboardName": "myLambdaDashboard"
}
}.
10 | });
11 | // THEN
> 12 | expectCDK(stack).to(haveResource("AWS::CloudWatch::Dashboard", {
| ^
13 | DashboardName: "myLambdaDashboard"
14 | }));
15 | });
at HaveResourceAssertion.assertOrThrow (node_modules/@aws-cdk/assert/lib/assertions/have-resource.ts:100:13)
at StackInspector._to (node_modules/@aws-cdk/assert/lib/inspector.ts:25:15)
at StackInspector.to (node_modules/@aws-cdk/assert/lib/inspector.ts:15:14)
at Object. (test/cdk-lambda-dashboard.test.ts:12:22)
Test Suites: 1 failed, 1 total
Tests: 1 failed, 1 total
Guida per i contributori
Apri la guida per i contributori
Direzione di ricerca
Run npm run test and inspect test/cdk-lambda-dashboard.test.ts, especially the haveResource assertion at line 12. Trace the stack used by that test and determine why no AWS::CloudWatch::Dashboard resource with DashboardName myLambdaDashboard is synthesized. Done means the test passes with the expected dashboard resource present.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- aws, typescript
- Ambito
- cloud, testing-qa
- Tipo di issue
- Bug
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Stato di attività
- Ferma
- Chiarezza
- Da chiarire
- Idoneità per principianti
- 30/100