The EiffelTestExecutionRecipeCollectionCreatedEvent declares that a collection of test execution recipes has been created. In order to clarify what that means, several concepts need to be explained.
Just as Eiffel is an opinionated protocol, EiffelTestExecutionRecipeCollectionCreatedEvent is an opinionated event, and to a certain extent that opinion goes against the grain of traditional test management. This event assumes that activity configurations and test scope definitions are two separate things. To exemplify, when one's CI server triggers the Acceptance Test activity in the pipeline, there is nothing in that activity that says which tests to execute where or with what parameters: that is a separate concern. Instead, it will query a test selection service for that information. This information is encapsulated by the EiffelTestExecutionRecipeCollectionCreatedEvent, which contains all the information needed to configure and execute the tests.
How the test selection service generates the recipe collection is, from the point of view of the Eiffel protocol, irrelevant. It may very well be from a statically defined list of test cases, or from an elaborate test selection algorithm weighing together a host of factors to determine the optimal set of test cases to execute at any particular time, or a combination of the two.
The data object consists of two main parts. data.selectionStrategy identifies the strategy used to select the test cases and generate the recipe collection, while data.batches or data.batchesUri contain or reference, respectively, the recipes. The recipes are grouped in batches, which are used to control the order of execution of test cases. Every batch has a priority to let the test executor order them in sequence, but within each batch no assumptions are made as to the execution order the test cases. This way the recipe collection can either allow the executor a high degree of freedom in scheduling the test executions, and/or prescribe the exact sequential order in which they must be executed. Each event SHALL include one and only one of data.batches and data.batchesUri.
Finally, each recipe (data.batches.recipes) consists of two parts: the test case to execute, and the constraints of that execution. The EiffelTestExecutionRecipeCollectionCreatedEvent does not control the syntax of these constraints, as the nature of such constraints are highly dependent on technology domain and test execution framework. That being said, there are three questions that typically need to be answered: what is the implementation under test, in what kind of environment is it to be tested, and what are the test parameters? Note the distinction between test case and test execution: it is perfectly legal for a single test case to appear multiple times within the same EiffelTestExecutionRecipeCollectionCreatedEvent, but (presumably) with different constraints.
Type: Object
Required: Yes
Description: The strategy used to select the test cases and generate the recipe collection.
Type: String
Required: No
Description: The name of the selection strategy that generated the test execution recipe collection.
Type: String
Required: Yes
Description: The unique identity of the selection strategy that generated the test execution recipe collection.
Type: String
Required: No
Description: The URI at which the the selection strategy that generated the test execution recipe collection can be retrieved.
Type: String
Required: No
Description: A URI at which at which the array of test execution batches can be fetched. The format of the document at this URI SHALL be on the format prescribed by data.batches (i.e. [ { "name": "Batch 1", ...}, {...}]
). Each event SHALL include one and only one of data.batches and data.batchesUri.
Type: Object[]
Required: No
Description: A list of batches of recipes. Each event SHALL include one and only one of data.batches and data.batchesUri. In the interest of keeping message sizes small, it is recommended to use data.batches only for limited numbers of test cases (on the order of ten executions). For larger numbers of executions, data.batchesUri SHOULD be used instead.
Type: String
Required: No
Description: The name of the recipe batch.
Type: Integer
Required: Yes
Description: The execution priority of the batch, as compared to other batches in the collection. A lower value SHALL be interpreted as a higher priority.
Type: Object[]
Required: Yes
Description: The collection of test execution recipes within the batch.
Type: String
Required: Yes
Description: A UUID identifying the unique execution. Note that this is different from the id of a test case, in two ways. First, a test case is a (presumably) persistent entity, whereas an execution is transient in nature. Second, a test case may be executed any number of times in any given recipe collection.
Type: Object
Required: Yes
Description: The test case to be executed in this execution recipe.
Type: String
Required: No
Description: The name of the test case tracker - typically a test management system.
Type: String
Required: Yes
Description: The unique identity of the test case to be executed.
Type: String
Required: No
Description: The unique version of the identified test case to be executed. Where this property is not used it is assumed that test cases are not version controlled.
Type: String
Required: No
Description: A location where a description of the test case can be retrieved. To the extent that multiple versions of the same test case co-exist, this property SHALL identify the exact version to be executed.
Type: Object[]
Required: No
Description: Any constraints of the execution. The nature of such constraints is highly dependent on technology domain and test execution framework. Consequently, there are no pre-defined or required constraints. Instead, this property is a list of key-value pairs on the same format as data.customData. That being said, there are three questions that typically need to be answered: what is the implementation under test, in what kind of environment is it to be tested, and what are the test parameters?
Type: String
Required: Yes
Description: The key name of constraint.
Type: Any
Required: Yes
Description: The value of the constraint.
Type: Object[]
Required: No
Description: A list of test case execution dependencies. Ideally, test cases are atomic and can be executed in isolation. In cases where a test case assumes that another test case has been executed previously in the same environment, however, this property can be used to specify that. It serves as an instruction to the test executor to place two executions subsequent to one another in the same environment.
Type: String
Required: Yes
Description: The UUID of the dependent execution (data.batches.recipes.id), i.e. the execution that shall be performed only after that of the dependency.
Type: String
Required: Yes
Description: The UUID of the dependency execution (data.batches.recipes.id), i.e. the execution that shall be performed prior to that of the dependent.
This section describes which link types are valid for this event type. For details on how to express the link objects themselves see The Links Object.
Required: No
Legal targets: Any
Multiple allowed: Yes
Description: Identifies a cause of the event occurring. SHOULD not be used in conjunction with CONTEXT: individual events providing CAUSE within a larger context gives rise to ambiguity. It is instead recommended to let the root event of the context declare CAUSE.
Required: No
Legal targets: EiffelActivityTriggeredEvent, EiffelTestSuiteStartedEvent
Multiple allowed: No
Description: Identifies the activity or test suite of which this event constitutes a part.
Required: No
Legal targets: EiffelFlowContextDefinedEvent
Multiple allowed: Yes
Description: Identifies the flow context of the event: which is the continuous integration and delivery flow in which this occurred – e.g. which product, project, track or version this is applicable to.
Type: String
Format: UUID
Required: Yes
Description: The unique identity of the event, generated at event creation.
Type: String
Format: An event type name
Required: Yes
Description: The type of event. This field is required by the recipient of the event, as each event type has a specific meaning and a specific set of members in the data and links objects.
Type: String
Format: Semantic Versioning 2.0.0
Required: Yes
Description: The version of the event type. This field is required by the recipient of the event to interpret the contents. Please see Versioning for more information.
Type: Integer
Format: UNIX Epoch time, in milliseconds.
Required: Yes
Description: The event creation timestamp.
Type: String[]
Format: Free text
Required: No
Description: Any tags or keywords associated with the events, for searchability purposes.
Type: Object
Required: No
Description: A description of the source of the event. This object is primarily for traceability purposes, and while optional, some form of identification of the source is HIGHLY RECOMMENDED. It offers multiple methods of identifying the source of the event, techniques which may be select from based on the technology domain and needs in any particular use case.
Type: String
Format: Free text
Required: No
Description: Identifies the domain that produced an event.
Type: String
Format: Hostname
Required: No
Description: The hostname of the event sender.
Type: String
Format: Free text
Required: No
Description: The name of the event sender.
Type: String
Format: purl specification
Required: No
Description: The identity of the serializer software used to construct the event, in purl format.
Type: String
Format: URI
Required: No
Description: The URI of, related to or describing the event sender.
Type: Object
Required: No
Description: An optional object for enclosing security related information, particularly supporting data integrity. See Security for further information.
Type: String
Format: Distinguished Name
Required: Yes
Description: The identity of the author of the event. This property is intended to enable the recipient to identify the author of the event contents and/or look up the appropriate public key for decrypting the meta.security.integrityProtection.signature value and thereby verifying author identity and data integrity.
Type: Object
Required: No
Description: An optional object for enabling information integrity protection via cryptographic signing. To generate a correct meta.security.integrityProtection object:
- Generate the entire event, but with the meta.security.integrityProtection.signature value set to an empty string.
- Serialize the event on Canonical JSON Form.
- Generate the signature using the meta.security.integrityProtection.alg algorithm.
- Set the meta.security.integrityProtection.signature value to the resulting signature while maintaining Canonical JSON Form. To verify the integrity of the event, the consumer then resets meta.security.integrityProtection.signature to an empty string and ensures Canonical JSON Form before verifying the signature.
Type: String
Required: Yes
Description: The signature produced by the signing algorithm.
Type: String
Format: A valid JWA RFC 7518 alg parameter value, excluding "none"
Required: Yes
Description: The cryptographic algorithm used to digitally sign the event. If no signing is performed, the meta.security.integrityProtection SHALL be omitted rather than setting meta.security.integrityProtection.alg to "none".
Type: String
Required: No
Description: The producer of the event may include the relevant public key for convenience, rather than relying a separate key distribution mechanism. Note that this property, along with the rest of the event, is encompassed by the integrity protection offered via meta.security.integrityProtection.
Type: Object[]
Required: No
Description: An optional object for enabling verification of intact event sequences in a distributed environment, thereby protecting against data loss, race conditions and replay attacks. It allows event publishers to state the order in which they produce a certain set of events. In other words, it cannot provide any global guarantees as to event sequencing, but rather per-publisher guarantees. Every object in the array represents a named sequence of which this event forms a part. For every event including a given named sequence, the publisher SHALL increment meta.security.sequenceProtection.position by 1. The first event produced in a given named sequence SHALL numbered 1.
Type: String
Required: Yes
Description: The name of the sequence. There MUST not be two identical meta.security.sequenceProtection.sequenceName values in the same event.
Type: Integer
Required: Yes
Description: The number of the event within the named sequence.
Type: String
Format: URI
Required: No
Description: A URI pointing at a location from where the schema used when creating this event can be retrieved. It can be used to parse event data for validation and extraction purposes, for example. Note, that the schema on that URI should be considered immutable.
Version | Introduced in | Changes |
---|---|---|
5.0.0 | Not yet released in an edition | Update meta schema to Draft 2020-12 and add link validation. |
4.3.1 | Not yet released in an edition | Change IUT to Implementation Under Test (see Issue 235). |
4.3.0 | edition-arica | Add schema URL to the meta object (see Issue 280). |
4.2.0 | edition-arica | Add missing testCase.version member (see Issue 288). |
4.1.1 | edition-lyon | Add missing validation pattern to links.target member (see Issue 271). |
4.1.0 | edition-lyon | Add links.domainId member (see Issue 233). |
4.0.0 | edition-agen | Improved information integrity protection (see Issue 185). |
3.0.0 | edition-agen | Introduced purl identifiers instead of GAVs (see Issue 182) |
2.1.0 | edition-toulouse | Multiple links of type FLOW_CONTEXT allowed. |
2.0.0 | edition-toulouse | Changed syntax of data.batches.recipes.constraints from an uncontrolled object to a list of key-value pairs to comply with design guidelines. |
1.0.0 | edition-bordeaux | Initial version. |