From 167fcb5bca306f55ab949090e099bb4515fbba73 Mon Sep 17 00:00:00 2001 From: Daniel Stahl Date: Thu, 23 Feb 2017 14:29:10 +0100 Subject: [PATCH 1/2] Added data.recipeId to EiffelTestCaseStartedEvent As per issue #122. --- eiffel-vocabulary/EiffelTestCaseStartedEvent.md | 5 +++++ examples/events/EiffelTestCaseStartedEvent/simple.json | 1 + schemas/EiffelTestCaseStartedEvent/1.0.0.json | 4 ++++ 3 files changed, 10 insertions(+) diff --git a/eiffel-vocabulary/EiffelTestCaseStartedEvent.md b/eiffel-vocabulary/EiffelTestCaseStartedEvent.md index 508ea561..b219e67d 100644 --- a/eiffel-vocabulary/EiffelTestCaseStartedEvent.md +++ b/eiffel-vocabulary/EiffelTestCaseStartedEvent.md @@ -27,6 +27,11 @@ __Type:__ String __Required:__ No __Description:__ The name of the test case executor, if applicable. This property can be used to identify tests executed by a particular test framework. +### data.recipeId +__Type:__ String +__Required:__ No +__Description:__ If this test case execution was the result of an Execution Recipe, as defined by an [EiffelTestExecutionRecipeCollectionCreatedEvent](./EiffelTestExecutionRecipeCollectionCreatedEvent.md), this UUID SHALL match the relevant __data.batches.recipes.id__ in that event. + ### data.parameters __Type:__ Object[] __Required:__ No diff --git a/examples/events/EiffelTestCaseStartedEvent/simple.json b/examples/events/EiffelTestCaseStartedEvent/simple.json index f802b34b..b8fc5782 100644 --- a/examples/events/EiffelTestCaseStartedEvent/simple.json +++ b/examples/events/EiffelTestCaseStartedEvent/simple.json @@ -12,6 +12,7 @@ "uri": "http://tm.company.com/browse/TC-1234" }, "executor": "My Test Framework", + "recipeId": "aaaaaaaa-bbbb-5ccc-addd-eeeeeeeeeee0", "parameters": [ { "name": "login", diff --git a/schemas/EiffelTestCaseStartedEvent/1.0.0.json b/schemas/EiffelTestCaseStartedEvent/1.0.0.json index 178f3930..ccc89a09 100644 --- a/schemas/EiffelTestCaseStartedEvent/1.0.0.json +++ b/schemas/EiffelTestCaseStartedEvent/1.0.0.json @@ -97,6 +97,10 @@ "executor": { "type": "string" }, + "id": { + "type": "string", + "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$" + }, "parameters": { "type": "array", "items": { From bc3b915ea3f08a2527f9f5a1410385a442f33829 Mon Sep 17 00:00:00 2001 From: Daniel Stahl Date: Thu, 23 Feb 2017 14:32:55 +0100 Subject: [PATCH 2/2] Fixed bad property name in schema. --- schemas/EiffelTestCaseStartedEvent/1.0.0.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/schemas/EiffelTestCaseStartedEvent/1.0.0.json b/schemas/EiffelTestCaseStartedEvent/1.0.0.json index ccc89a09..e7af629c 100644 --- a/schemas/EiffelTestCaseStartedEvent/1.0.0.json +++ b/schemas/EiffelTestCaseStartedEvent/1.0.0.json @@ -97,7 +97,7 @@ "executor": { "type": "string" }, - "id": { + "recipeId": { "type": "string", "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$" },