Skip to content

Commit

Permalink
adding another test event via @virtuoushub in Issue #44
Browse files Browse the repository at this point in the history
  • Loading branch information
homeyjd committed Feb 20, 2019
1 parent 805d6b2 commit d9ca09c
Showing 1 changed file with 30 additions and 1 deletion.
31 changes: 30 additions & 1 deletion test/parsers/codepipelineCloudWatch.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,35 @@ const exampleEvent = {
}
};

const exampleEvent2 = {
"version": "0",
"id": "d2ec51b0-119e-bd9f-9602-81679b3a0dcf",
"detail-type": "CodePipeline Action Execution State Change",
"source": "aws.codepipeline",
"account": "012345678901",
"time": "2019-02-20T16:34:46Z",
"region": "us-east-1",
"resources": [
"arn:aws:codepipeline:us-east-1:012345678901:foo-pipeline"
],
"detail": {
"pipeline": "foo-pipeline",
"execution-id": "4b02612a-1b13-4d4f-bc78-1fb45dc6376e",
"stage": "FooStage",
"action": "PackageExport",
"state": "STARTED",
"region": "us-east-1",
"type": {
"owner": "AWS",
"provider": "CodeBuild",
"category": "Build",
"version": "1"
},
"version": 3
}
};

require("./_parser_mock")
.named("codepipelineCloudWatch")
.matchesEvent(exampleEvent);
.matchesEvent(exampleEvent)
.matchesEvent(exampleEvent2);

0 comments on commit d9ca09c

Please sign in to comment.