From 7a527f0b17d6bebc150b5cac7fabe7b5341127bf Mon Sep 17 00:00:00 2001 From: Tobias Persson Date: Wed, 7 Feb 2024 10:12:10 +0100 Subject: [PATCH] Update to Orizaba (#57) --- .../events/eiffel_activity_triggered_event.py | 12 +- .../eiffel_confidence_level_modified_event.py | 12 +- .../events/eiffel_issue_verified_event.py | 12 +- .../eiffel_test_case_triggered_event.py | 12 +- .../events/eiffel_test_suite_started_event.py | 12 +- .../EiffelActivityTriggeredEvent/4.3.0.json | 231 +++++++++++++++ .../EiffelArtifactDeployedEvent/0.1.0.json | 191 +++++++++++++ .../3.3.0.json | 218 ++++++++++++++ .../EiffelIssueVerifiedEvent/4.3.0.json | 185 ++++++++++++ .../EiffelTestCaseTriggeredEvent/3.3.0.json | 266 ++++++++++++++++++ .../EiffelTestCaseTriggeredEvent/3.4.0.json | 266 ++++++++++++++++++ .../EiffelTestCaseTriggeredEvent/3.5.0.json | 266 ++++++++++++++++++ .../EiffelTestSuiteStartedEvent/3.4.0.json | 250 ++++++++++++++++ 13 files changed, 1913 insertions(+), 20 deletions(-) create mode 100644 src/eiffellib/schemas/EiffelActivityTriggeredEvent/4.3.0.json create mode 100644 src/eiffellib/schemas/EiffelArtifactDeployedEvent/0.1.0.json create mode 100644 src/eiffellib/schemas/EiffelConfidenceLevelModifiedEvent/3.3.0.json create mode 100644 src/eiffellib/schemas/EiffelIssueVerifiedEvent/4.3.0.json create mode 100644 src/eiffellib/schemas/EiffelTestCaseTriggeredEvent/3.3.0.json create mode 100644 src/eiffellib/schemas/EiffelTestCaseTriggeredEvent/3.4.0.json create mode 100644 src/eiffellib/schemas/EiffelTestCaseTriggeredEvent/3.5.0.json create mode 100644 src/eiffellib/schemas/EiffelTestSuiteStartedEvent/3.4.0.json diff --git a/src/eiffellib/events/eiffel_activity_triggered_event.py b/src/eiffellib/events/eiffel_activity_triggered_event.py index d588a54..de149d5 100644 --- a/src/eiffellib/events/eiffel_activity_triggered_event.py +++ b/src/eiffellib/events/eiffel_activity_triggered_event.py @@ -1,4 +1,4 @@ -# Copyright 2019-2022 Axis Communications AB and others. +# Copyright 2019-2024 Axis Communications AB and others. # # For a full list of individual contributors, please see the commit history. # @@ -17,8 +17,12 @@ https://github.com/eiffel-community/eiffel/blob/master/eiffel-vocabulary/EiffelActivityTriggeredEvent.md """ -from eiffellib.events.eiffel_base_event import (EiffelBaseEvent, EiffelBaseLink, - EiffelBaseData, EiffelBaseMeta) +from eiffellib.events.eiffel_base_event import ( + EiffelBaseData, + EiffelBaseEvent, + EiffelBaseLink, + EiffelBaseMeta, +) class EiffelActivityTriggeredLink(EiffelBaseLink): @@ -32,7 +36,7 @@ class EiffelActivityTriggeredData(EiffelBaseData): class EiffelActivityTriggeredEvent(EiffelBaseEvent): """Eiffel activity triggered event.""" - version = "4.2.0" + version = "4.3.0" def __init__(self, *args, **kwargs): """Initialize data, meta and links.""" diff --git a/src/eiffellib/events/eiffel_confidence_level_modified_event.py b/src/eiffellib/events/eiffel_confidence_level_modified_event.py index 982a009..f39b0b6 100644 --- a/src/eiffellib/events/eiffel_confidence_level_modified_event.py +++ b/src/eiffellib/events/eiffel_confidence_level_modified_event.py @@ -1,4 +1,4 @@ -# Copyright 2019-2022 Axis Communications AB and others. +# Copyright 2019-2024 Axis Communications AB and others. # # For a full list of individual contributors, please see the commit history. # @@ -17,8 +17,12 @@ https://github.com/eiffel-community/eiffel/blob/master/eiffel-vocabulary/EiffelConfidenceLevelModifiedEvent.md """ -from eiffellib.events.eiffel_base_event import (EiffelBaseEvent, EiffelBaseLink, - EiffelBaseData, EiffelBaseMeta) +from eiffellib.events.eiffel_base_event import ( + EiffelBaseData, + EiffelBaseEvent, + EiffelBaseLink, + EiffelBaseMeta, +) class EiffelConfidenceLevelModifiedLink(EiffelBaseLink): @@ -32,7 +36,7 @@ class EiffelConfidenceLevelModifiedData(EiffelBaseData): class EiffelConfidenceLevelModifiedEvent(EiffelBaseEvent): """Eiffel confidence level modified event.""" - version = "3.2.0" + version = "3.3.0" def __init__(self, *args, **kwargs): """Initialize data, meta and links.""" diff --git a/src/eiffellib/events/eiffel_issue_verified_event.py b/src/eiffellib/events/eiffel_issue_verified_event.py index 3488a95..b0a533e 100644 --- a/src/eiffellib/events/eiffel_issue_verified_event.py +++ b/src/eiffellib/events/eiffel_issue_verified_event.py @@ -1,4 +1,4 @@ -# Copyright 2019-2022 Axis Communications AB and others. +# Copyright 2019-2024 Axis Communications AB and others. # # For a full list of individual contributors, please see the commit history. # @@ -17,8 +17,12 @@ https://github.com/eiffel-community/eiffel/blob/master/eiffel-vocabulary/EiffelIssueVerifiedEvent.md """ -from eiffellib.events.eiffel_base_event import (EiffelBaseEvent, EiffelBaseLink, - EiffelBaseData, EiffelBaseMeta) +from eiffellib.events.eiffel_base_event import ( + EiffelBaseData, + EiffelBaseEvent, + EiffelBaseLink, + EiffelBaseMeta, +) class EiffelIssueVerifiedLink(EiffelBaseLink): @@ -32,7 +36,7 @@ class EiffelIssueVerifiedData(EiffelBaseData): class EiffelIssueVerifiedEvent(EiffelBaseEvent): """Eiffel issue verified event.""" - version = "4.2.0" + version = "4.3.0" def __init__(self, *args, **kwargs): """Initialize data, meta and links.""" diff --git a/src/eiffellib/events/eiffel_test_case_triggered_event.py b/src/eiffellib/events/eiffel_test_case_triggered_event.py index a3f4d88..457702c 100644 --- a/src/eiffellib/events/eiffel_test_case_triggered_event.py +++ b/src/eiffellib/events/eiffel_test_case_triggered_event.py @@ -1,4 +1,4 @@ -# Copyright 2019-2022 Axis Communications AB and others. +# Copyright 2019-2024 Axis Communications AB and others. # # For a full list of individual contributors, please see the commit history. # @@ -17,8 +17,12 @@ https://github.com/eiffel-community/eiffel/blob/master/eiffel-vocabulary/EiffelTestCaseTriggeredEvent.md """ -from eiffellib.events.eiffel_base_event import (EiffelBaseEvent, EiffelBaseLink, - EiffelBaseData, EiffelBaseMeta) +from eiffellib.events.eiffel_base_event import ( + EiffelBaseData, + EiffelBaseEvent, + EiffelBaseLink, + EiffelBaseMeta, +) class EiffelTestCaseTriggeredLink(EiffelBaseLink): @@ -32,7 +36,7 @@ class EiffelTestCaseTriggeredData(EiffelBaseData): class EiffelTestCaseTriggeredEvent(EiffelBaseEvent): """Eiffel test case triggered event.""" - version = "3.2.0" + version = "3.5.0" def __init__(self, *args, **kwargs): """Initialize data, meta and links.""" diff --git a/src/eiffellib/events/eiffel_test_suite_started_event.py b/src/eiffellib/events/eiffel_test_suite_started_event.py index 5b8ca6c..c6f6bb4 100644 --- a/src/eiffellib/events/eiffel_test_suite_started_event.py +++ b/src/eiffellib/events/eiffel_test_suite_started_event.py @@ -1,4 +1,4 @@ -# Copyright 2019-2022 Axis Communications AB and others. +# Copyright 2019-2024 Axis Communications AB and others. # # For a full list of individual contributors, please see the commit history. # @@ -17,8 +17,12 @@ https://github.com/eiffel-community/eiffel/blob/master/eiffel-vocabulary/EiffelTestSuiteStartedEvent.md """ -from eiffellib.events.eiffel_base_event import (EiffelBaseEvent, EiffelBaseLink, - EiffelBaseData, EiffelBaseMeta) +from eiffellib.events.eiffel_base_event import ( + EiffelBaseData, + EiffelBaseEvent, + EiffelBaseLink, + EiffelBaseMeta, +) class EiffelTestSuiteStartedLink(EiffelBaseLink): @@ -32,7 +36,7 @@ class EiffelTestSuiteStartedData(EiffelBaseData): class EiffelTestSuiteStartedEvent(EiffelBaseEvent): """Eiffel test suite started event.""" - version = "3.3.0" + version = "3.4.0" def __init__(self, *args, **kwargs): """Initialize data, meta and links.""" diff --git a/src/eiffellib/schemas/EiffelActivityTriggeredEvent/4.3.0.json b/src/eiffellib/schemas/EiffelActivityTriggeredEvent/4.3.0.json new file mode 100644 index 0000000..73d631c --- /dev/null +++ b/src/eiffellib/schemas/EiffelActivityTriggeredEvent/4.3.0.json @@ -0,0 +1,231 @@ +{ + "$schema": "http://json-schema.org/draft-04/schema#", + "type": "object", + "properties": { + "meta": { + "type": "object", + "properties": { + "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}$" + }, + "type": { + "type": "string", + "enum": [ + "EiffelActivityTriggeredEvent" + ] + }, + "version": { + "type": "string", + "enum": [ + "4.3.0" + ], + "default": "4.3.0" + }, + "time": { + "type": "integer" + }, + "tags": { + "type": "array", + "items": { + "type": "string" + } + }, + "source": { + "type": "object", + "properties": { + "domainId": { + "type": "string" + }, + "host": { + "type": "string" + }, + "name": { + "type": "string" + }, + "serializer": { + "type": "string", + "pattern": "^pkg:" + }, + "uri": { + "type": "string" + } + }, + "additionalProperties": false + }, + "security": { + "type": "object", + "properties": { + "authorIdentity": { + "type": "string" + }, + "integrityProtection": { + "type": "object", + "properties": { + "signature": { + "type": "string" + }, + "alg": { + "type": "string", + "enum": [ + "HS256", + "HS384", + "HS512", + "RS256", + "RS384", + "RS512", + "ES256", + "ES384", + "ES512", + "PS256", + "PS384", + "PS512" + ] + }, + "publicKey": { + "type": "string" + } + }, + "required": [ + "signature", + "alg" + ], + "additionalProperties": false + }, + "sequenceProtection": { + "type": "array", + "items": { + "type": "object", + "properties": { + "sequenceName": { + "type": "string" + }, + "position": { + "type": "integer" + } + }, + "additionalProperties": false, + "required": [ + "sequenceName", + "position" + ] + } + } + }, + "additionalProperties": false, + "required": [ + "authorIdentity" + ] + }, + "schemaUri": { + "type": "string" + } + }, + "required": [ + "id", + "type", + "version", + "time" + ], + "additionalProperties": false + }, + "data": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "categories": { + "type": "array", + "items": { + "type": "string" + } + }, + "triggers": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "MANUAL", + "EIFFEL_EVENT", + "SOURCE_CHANGE", + "TIMER", + "OTHER" + ] + }, + "description": { + "type": "string" + } + }, + "required": [ + "type" + ], + "additionalProperties": false + } + }, + "executionType": { + "type": "string", + "enum": [ + "MANUAL", + "SEMI_AUTOMATED", + "AUTOMATED", + "OTHER" + ] + }, + "customData": { + "type": "array", + "items": { + "type": "object", + "properties": { + "key": { + "type": "string" + }, + "value": {} + }, + "required": [ + "key", + "value" + ], + "additionalProperties": false + } + } + }, + "required": [ + "name" + ], + "additionalProperties": false + }, + "links": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string" + }, + "target": { + "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}$" + }, + "domainId": { + "type": "string" + } + }, + "required": [ + "type", + "target" + ], + "additionalProperties": false + } + } + }, + "required": [ + "meta", + "data", + "links" + ], + "additionalProperties": false +} diff --git a/src/eiffellib/schemas/EiffelArtifactDeployedEvent/0.1.0.json b/src/eiffellib/schemas/EiffelArtifactDeployedEvent/0.1.0.json new file mode 100644 index 0000000..a26aa65 --- /dev/null +++ b/src/eiffellib/schemas/EiffelArtifactDeployedEvent/0.1.0.json @@ -0,0 +1,191 @@ +{ + "$schema": "http://json-schema.org/draft-04/schema#", + "type": "object", + "properties": { + "meta": { + "type": "object", + "properties": { + "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}$" + }, + "type": { + "type": "string", + "enum": [ + "EiffelArtifactDeployedEvent" + ] + }, + "version": { + "type": "string", + "enum": [ + "0.1.0" + ], + "default": "0.1.0" + }, + "time": { + "type": "integer" + }, + "tags": { + "type": "array", + "items": { + "type": "string" + } + }, + "source": { + "type": "object", + "properties": { + "domainId": { + "type": "string" + }, + "host": { + "type": "string" + }, + "name": { + "type": "string" + }, + "serializer": { + "type": "string", + "pattern": "^pkg:" + }, + "uri": { + "type": "string" + } + }, + "additionalProperties": false + }, + "security": { + "type": "object", + "properties": { + "authorIdentity": { + "type": "string" + }, + "integrityProtection": { + "type": "object", + "properties": { + "signature": { + "type": "string" + }, + "alg": { + "type": "string", + "enum": [ + "HS256", + "HS384", + "HS512", + "RS256", + "RS384", + "RS512", + "ES256", + "ES384", + "ES512", + "PS256", + "PS384", + "PS512" + ] + }, + "publicKey": { + "type": "string" + } + }, + "required": [ + "signature", + "alg" + ], + "additionalProperties": false + }, + "sequenceProtection": { + "type": "array", + "items": { + "type": "object", + "properties": { + "sequenceName": { + "type": "string" + }, + "position": { + "type": "integer" + } + }, + "additionalProperties": false, + "required": [ + "sequenceName", + "position" + ] + } + } + }, + "additionalProperties": false, + "required": [ + "authorIdentity" + ] + }, + "schemaUri": { + "type": "string" + } + }, + "required": [ + "id", + "type", + "version", + "time" + ], + "additionalProperties": false + }, + "data": { + "type": "object", + "properties": { + "description": { + "type": "string" + }, + "uri": { + "type": "string" + }, + "customData": { + "type": "array", + "items": { + "type": "object", + "properties": { + "key": { + "type": "string" + }, + "value": {} + }, + "required": [ + "key", + "value" + ], + "additionalProperties": false + } + } + }, + "additionalProperties": false + }, + "links": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string" + }, + "target": { + "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}$" + }, + "domainId": { + "type": "string" + } + }, + "required": [ + "type", + "target" + ], + "additionalProperties": false + } + } + }, + "required": [ + "meta", + "data", + "links" + ], + "additionalProperties": false +} diff --git a/src/eiffellib/schemas/EiffelConfidenceLevelModifiedEvent/3.3.0.json b/src/eiffellib/schemas/EiffelConfidenceLevelModifiedEvent/3.3.0.json new file mode 100644 index 0000000..46b7817 --- /dev/null +++ b/src/eiffellib/schemas/EiffelConfidenceLevelModifiedEvent/3.3.0.json @@ -0,0 +1,218 @@ +{ + "$schema": "http://json-schema.org/draft-04/schema#", + "type": "object", + "properties": { + "meta": { + "type": "object", + "properties": { + "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}$" + }, + "type": { + "type": "string", + "enum": [ + "EiffelConfidenceLevelModifiedEvent" + ] + }, + "version": { + "type": "string", + "enum": [ + "3.3.0" + ], + "default": "3.3.0" + }, + "time": { + "type": "integer" + }, + "tags": { + "type": "array", + "items": { + "type": "string" + } + }, + "source": { + "type": "object", + "properties": { + "domainId": { + "type": "string" + }, + "host": { + "type": "string" + }, + "name": { + "type": "string" + }, + "serializer": { + "type": "string", + "pattern": "^pkg:" + }, + "uri": { + "type": "string" + } + }, + "additionalProperties": false + }, + "security": { + "type": "object", + "properties": { + "authorIdentity": { + "type": "string" + }, + "integrityProtection": { + "type": "object", + "properties": { + "signature": { + "type": "string" + }, + "alg": { + "type": "string", + "enum": [ + "HS256", + "HS384", + "HS512", + "RS256", + "RS384", + "RS512", + "ES256", + "ES384", + "ES512", + "PS256", + "PS384", + "PS512" + ] + }, + "publicKey": { + "type": "string" + } + }, + "required": [ + "signature", + "alg" + ], + "additionalProperties": false + }, + "sequenceProtection": { + "type": "array", + "items": { + "type": "object", + "properties": { + "sequenceName": { + "type": "string" + }, + "position": { + "type": "integer" + } + }, + "additionalProperties": false, + "required": [ + "sequenceName", + "position" + ] + } + } + }, + "additionalProperties": false, + "required": [ + "authorIdentity" + ] + }, + "schemaUri": { + "type": "string" + } + }, + "required": [ + "id", + "type", + "version", + "time" + ], + "additionalProperties": false + }, + "data": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "value": { + "type": "string", + "enum": [ + "SUCCESS", + "FAILURE", + "INCONCLUSIVE" + ] + }, + "issuer": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "email": { + "type": "string" + }, + "id": { + "type": "string" + }, + "group": { + "type": "string" + } + }, + "additionalProperties": false + }, + "customData": { + "type": "array", + "items": { + "type": "object", + "properties": { + "key": { + "type": "string" + }, + "value": {} + }, + "required": [ + "key", + "value" + ], + "additionalProperties": false + } + } + }, + "required": [ + "name", + "value" + ], + "additionalProperties": false + }, + "links": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string" + }, + "target": { + "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}$" + }, + "domainId": { + "type": "string" + } + }, + "required": [ + "type", + "target" + ], + "additionalProperties": false + } + } + }, + "required": [ + "meta", + "data", + "links" + ], + "additionalProperties": false +} diff --git a/src/eiffellib/schemas/EiffelIssueVerifiedEvent/4.3.0.json b/src/eiffellib/schemas/EiffelIssueVerifiedEvent/4.3.0.json new file mode 100644 index 0000000..97e105b --- /dev/null +++ b/src/eiffellib/schemas/EiffelIssueVerifiedEvent/4.3.0.json @@ -0,0 +1,185 @@ +{ + "$schema": "http://json-schema.org/draft-04/schema#", + "type": "object", + "properties": { + "meta": { + "type": "object", + "properties": { + "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}$" + }, + "type": { + "type": "string", + "enum": [ + "EiffelIssueVerifiedEvent" + ] + }, + "version": { + "type": "string", + "enum": [ + "4.3.0" + ], + "default": "4.3.0" + }, + "time": { + "type": "integer" + }, + "tags": { + "type": "array", + "items": { + "type": "string" + } + }, + "source": { + "type": "object", + "properties": { + "domainId": { + "type": "string" + }, + "host": { + "type": "string" + }, + "name": { + "type": "string" + }, + "serializer": { + "type": "string", + "pattern": "^pkg:" + }, + "uri": { + "type": "string" + } + }, + "additionalProperties": false + }, + "security": { + "type": "object", + "properties": { + "authorIdentity": { + "type": "string" + }, + "integrityProtection": { + "type": "object", + "properties": { + "signature": { + "type": "string" + }, + "alg": { + "type": "string", + "enum": [ + "HS256", + "HS384", + "HS512", + "RS256", + "RS384", + "RS512", + "ES256", + "ES384", + "ES512", + "PS256", + "PS384", + "PS512" + ] + }, + "publicKey": { + "type": "string" + } + }, + "required": [ + "signature", + "alg" + ], + "additionalProperties": false + }, + "sequenceProtection": { + "type": "array", + "items": { + "type": "object", + "properties": { + "sequenceName": { + "type": "string" + }, + "position": { + "type": "integer" + } + }, + "additionalProperties": false, + "required": [ + "sequenceName", + "position" + ] + } + } + }, + "additionalProperties": false, + "required": [ + "authorIdentity" + ] + }, + "schemaUri": { + "type": "string" + } + }, + "required": [ + "id", + "type", + "version", + "time" + ], + "additionalProperties": false + }, + "data": { + "type": "object", + "properties": { + "customData": { + "type": "array", + "items": { + "type": "object", + "properties": { + "key": { + "type": "string" + }, + "value": {} + }, + "required": [ + "key", + "value" + ], + "additionalProperties": false + } + } + }, + "additionalProperties": false + }, + "links": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string" + }, + "target": { + "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}$" + }, + "domainId": { + "type": "string" + } + }, + "required": [ + "type", + "target" + ], + "additionalProperties": false + } + } + }, + "required": [ + "meta", + "data", + "links" + ], + "additionalProperties": false +} diff --git a/src/eiffellib/schemas/EiffelTestCaseTriggeredEvent/3.3.0.json b/src/eiffellib/schemas/EiffelTestCaseTriggeredEvent/3.3.0.json new file mode 100644 index 0000000..1b7b14f --- /dev/null +++ b/src/eiffellib/schemas/EiffelTestCaseTriggeredEvent/3.3.0.json @@ -0,0 +1,266 @@ +{ + "$schema": "http://json-schema.org/draft-04/schema#", + "type": "object", + "properties": { + "meta": { + "type": "object", + "properties": { + "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}$" + }, + "type": { + "type": "string", + "enum": [ + "EiffelTestCaseTriggeredEvent" + ] + }, + "version": { + "type": "string", + "enum": [ + "3.3.0" + ], + "default": "3.3.0" + }, + "time": { + "type": "integer" + }, + "tags": { + "type": "array", + "items": { + "type": "string" + } + }, + "source": { + "type": "object", + "properties": { + "domainId": { + "type": "string" + }, + "host": { + "type": "string" + }, + "name": { + "type": "string" + }, + "serializer": { + "type": "string", + "pattern": "^pkg:" + }, + "uri": { + "type": "string" + } + }, + "additionalProperties": false + }, + "security": { + "type": "object", + "properties": { + "authorIdentity": { + "type": "string" + }, + "integrityProtection": { + "type": "object", + "properties": { + "signature": { + "type": "string" + }, + "alg": { + "type": "string", + "enum": [ + "HS256", + "HS384", + "HS512", + "RS256", + "RS384", + "RS512", + "ES256", + "ES384", + "ES512", + "PS256", + "PS384", + "PS512" + ] + }, + "publicKey": { + "type": "string" + } + }, + "required": [ + "signature", + "alg" + ], + "additionalProperties": false + }, + "sequenceProtection": { + "type": "array", + "items": { + "type": "object", + "properties": { + "sequenceName": { + "type": "string" + }, + "position": { + "type": "integer" + } + }, + "additionalProperties": false, + "required": [ + "sequenceName", + "position" + ] + } + } + }, + "additionalProperties": false, + "required": [ + "authorIdentity" + ] + }, + "schemaUri": { + "type": "string" + } + }, + "required": [ + "id", + "type", + "version", + "time" + ], + "additionalProperties": false + }, + "data": { + "type": "object", + "properties": { + "testCase": { + "type": "object", + "properties": { + "tracker": { + "type": "string" + }, + "id": { + "type": "string" + }, + "version": { + "type": "string" + }, + "uri": { + "type": "string" + } + }, + "required": [ + "id" + ], + "additionalProperties": false + }, + "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}$" + }, + "triggers": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "MANUAL", + "EIFFEL_EVENT", + "SOURCE_CHANGE", + "TIMER", + "OTHER" + ] + }, + "description": { + "type": "string" + } + }, + "required": [ + "type" + ], + "additionalProperties": false + } + }, + "executionType": { + "type": "string", + "enum": [ + "MANUAL", + "SEMI_AUTOMATED", + "AUTOMATED", + "OTHER" + ] + }, + "parameters": { + "type": "array", + "items": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "value": { + "type": "string" + } + }, + "required": [ + "name", + "value" + ], + "additionalProperties": false + } + }, + "customData": { + "type": "array", + "items": { + "type": "object", + "properties": { + "key": { + "type": "string" + }, + "value": {} + }, + "required": [ + "key", + "value" + ], + "additionalProperties": false + } + } + }, + "required": [ + "testCase" + ], + "additionalProperties": false + }, + "links": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string" + }, + "target": { + "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}$" + }, + "domainId": { + "type": "string" + } + }, + "required": [ + "type", + "target" + ], + "additionalProperties": false + } + } + }, + "required": [ + "meta", + "data", + "links" + ], + "additionalProperties": false +} diff --git a/src/eiffellib/schemas/EiffelTestCaseTriggeredEvent/3.4.0.json b/src/eiffellib/schemas/EiffelTestCaseTriggeredEvent/3.4.0.json new file mode 100644 index 0000000..ac2db8e --- /dev/null +++ b/src/eiffellib/schemas/EiffelTestCaseTriggeredEvent/3.4.0.json @@ -0,0 +1,266 @@ +{ + "$schema": "http://json-schema.org/draft-04/schema#", + "type": "object", + "properties": { + "meta": { + "type": "object", + "properties": { + "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}$" + }, + "type": { + "type": "string", + "enum": [ + "EiffelTestCaseTriggeredEvent" + ] + }, + "version": { + "type": "string", + "enum": [ + "3.4.0" + ], + "default": "3.4.0" + }, + "time": { + "type": "integer" + }, + "tags": { + "type": "array", + "items": { + "type": "string" + } + }, + "source": { + "type": "object", + "properties": { + "domainId": { + "type": "string" + }, + "host": { + "type": "string" + }, + "name": { + "type": "string" + }, + "serializer": { + "type": "string", + "pattern": "^pkg:" + }, + "uri": { + "type": "string" + } + }, + "additionalProperties": false + }, + "security": { + "type": "object", + "properties": { + "authorIdentity": { + "type": "string" + }, + "integrityProtection": { + "type": "object", + "properties": { + "signature": { + "type": "string" + }, + "alg": { + "type": "string", + "enum": [ + "HS256", + "HS384", + "HS512", + "RS256", + "RS384", + "RS512", + "ES256", + "ES384", + "ES512", + "PS256", + "PS384", + "PS512" + ] + }, + "publicKey": { + "type": "string" + } + }, + "required": [ + "signature", + "alg" + ], + "additionalProperties": false + }, + "sequenceProtection": { + "type": "array", + "items": { + "type": "object", + "properties": { + "sequenceName": { + "type": "string" + }, + "position": { + "type": "integer" + } + }, + "additionalProperties": false, + "required": [ + "sequenceName", + "position" + ] + } + } + }, + "additionalProperties": false, + "required": [ + "authorIdentity" + ] + }, + "schemaUri": { + "type": "string" + } + }, + "required": [ + "id", + "type", + "version", + "time" + ], + "additionalProperties": false + }, + "data": { + "type": "object", + "properties": { + "testCase": { + "type": "object", + "properties": { + "tracker": { + "type": "string" + }, + "id": { + "type": "string" + }, + "version": { + "type": "string" + }, + "uri": { + "type": "string" + } + }, + "required": [ + "id" + ], + "additionalProperties": false + }, + "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}$" + }, + "triggers": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "MANUAL", + "EIFFEL_EVENT", + "SOURCE_CHANGE", + "TIMER", + "OTHER" + ] + }, + "description": { + "type": "string" + } + }, + "required": [ + "type" + ], + "additionalProperties": false + } + }, + "executionType": { + "type": "string", + "enum": [ + "MANUAL", + "SEMI_AUTOMATED", + "AUTOMATED", + "OTHER" + ] + }, + "parameters": { + "type": "array", + "items": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "value": { + "type": "string" + } + }, + "required": [ + "name", + "value" + ], + "additionalProperties": false + } + }, + "customData": { + "type": "array", + "items": { + "type": "object", + "properties": { + "key": { + "type": "string" + }, + "value": {} + }, + "required": [ + "key", + "value" + ], + "additionalProperties": false + } + } + }, + "required": [ + "testCase" + ], + "additionalProperties": false + }, + "links": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string" + }, + "target": { + "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}$" + }, + "domainId": { + "type": "string" + } + }, + "required": [ + "type", + "target" + ], + "additionalProperties": false + } + } + }, + "required": [ + "meta", + "data", + "links" + ], + "additionalProperties": false +} diff --git a/src/eiffellib/schemas/EiffelTestCaseTriggeredEvent/3.5.0.json b/src/eiffellib/schemas/EiffelTestCaseTriggeredEvent/3.5.0.json new file mode 100644 index 0000000..b6171e3 --- /dev/null +++ b/src/eiffellib/schemas/EiffelTestCaseTriggeredEvent/3.5.0.json @@ -0,0 +1,266 @@ +{ + "$schema": "http://json-schema.org/draft-04/schema#", + "type": "object", + "properties": { + "meta": { + "type": "object", + "properties": { + "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}$" + }, + "type": { + "type": "string", + "enum": [ + "EiffelTestCaseTriggeredEvent" + ] + }, + "version": { + "type": "string", + "enum": [ + "3.5.0" + ], + "default": "3.5.0" + }, + "time": { + "type": "integer" + }, + "tags": { + "type": "array", + "items": { + "type": "string" + } + }, + "source": { + "type": "object", + "properties": { + "domainId": { + "type": "string" + }, + "host": { + "type": "string" + }, + "name": { + "type": "string" + }, + "serializer": { + "type": "string", + "pattern": "^pkg:" + }, + "uri": { + "type": "string" + } + }, + "additionalProperties": false + }, + "security": { + "type": "object", + "properties": { + "authorIdentity": { + "type": "string" + }, + "integrityProtection": { + "type": "object", + "properties": { + "signature": { + "type": "string" + }, + "alg": { + "type": "string", + "enum": [ + "HS256", + "HS384", + "HS512", + "RS256", + "RS384", + "RS512", + "ES256", + "ES384", + "ES512", + "PS256", + "PS384", + "PS512" + ] + }, + "publicKey": { + "type": "string" + } + }, + "required": [ + "signature", + "alg" + ], + "additionalProperties": false + }, + "sequenceProtection": { + "type": "array", + "items": { + "type": "object", + "properties": { + "sequenceName": { + "type": "string" + }, + "position": { + "type": "integer" + } + }, + "additionalProperties": false, + "required": [ + "sequenceName", + "position" + ] + } + } + }, + "additionalProperties": false, + "required": [ + "authorIdentity" + ] + }, + "schemaUri": { + "type": "string" + } + }, + "required": [ + "id", + "type", + "version", + "time" + ], + "additionalProperties": false + }, + "data": { + "type": "object", + "properties": { + "testCase": { + "type": "object", + "properties": { + "tracker": { + "type": "string" + }, + "id": { + "type": "string" + }, + "version": { + "type": "string" + }, + "uri": { + "type": "string" + } + }, + "required": [ + "id" + ], + "additionalProperties": false + }, + "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}$" + }, + "triggers": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "MANUAL", + "EIFFEL_EVENT", + "SOURCE_CHANGE", + "TIMER", + "OTHER" + ] + }, + "description": { + "type": "string" + } + }, + "required": [ + "type" + ], + "additionalProperties": false + } + }, + "executionType": { + "type": "string", + "enum": [ + "MANUAL", + "SEMI_AUTOMATED", + "AUTOMATED", + "OTHER" + ] + }, + "parameters": { + "type": "array", + "items": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "value": { + "type": "string" + } + }, + "required": [ + "name", + "value" + ], + "additionalProperties": false + } + }, + "customData": { + "type": "array", + "items": { + "type": "object", + "properties": { + "key": { + "type": "string" + }, + "value": {} + }, + "required": [ + "key", + "value" + ], + "additionalProperties": false + } + } + }, + "required": [ + "testCase" + ], + "additionalProperties": false + }, + "links": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string" + }, + "target": { + "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}$" + }, + "domainId": { + "type": "string" + } + }, + "required": [ + "type", + "target" + ], + "additionalProperties": false + } + } + }, + "required": [ + "meta", + "data", + "links" + ], + "additionalProperties": false +} diff --git a/src/eiffellib/schemas/EiffelTestSuiteStartedEvent/3.4.0.json b/src/eiffellib/schemas/EiffelTestSuiteStartedEvent/3.4.0.json new file mode 100644 index 0000000..5d21260 --- /dev/null +++ b/src/eiffellib/schemas/EiffelTestSuiteStartedEvent/3.4.0.json @@ -0,0 +1,250 @@ +{ + "$schema": "http://json-schema.org/draft-04/schema#", + "type": "object", + "properties": { + "meta": { + "type": "object", + "properties": { + "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}$" + }, + "type": { + "type": "string", + "enum": [ + "EiffelTestSuiteStartedEvent" + ] + }, + "version": { + "type": "string", + "enum": [ + "3.4.0" + ], + "default": "3.4.0" + }, + "time": { + "type": "integer" + }, + "tags": { + "type": "array", + "items": { + "type": "string" + } + }, + "source": { + "type": "object", + "properties": { + "domainId": { + "type": "string" + }, + "host": { + "type": "string" + }, + "name": { + "type": "string" + }, + "serializer": { + "type": "string", + "pattern": "^pkg:" + }, + "uri": { + "type": "string" + } + }, + "additionalProperties": false + }, + "security": { + "type": "object", + "properties": { + "authorIdentity": { + "type": "string" + }, + "integrityProtection": { + "type": "object", + "properties": { + "signature": { + "type": "string" + }, + "alg": { + "type": "string", + "enum": [ + "HS256", + "HS384", + "HS512", + "RS256", + "RS384", + "RS512", + "ES256", + "ES384", + "ES512", + "PS256", + "PS384", + "PS512" + ] + }, + "publicKey": { + "type": "string" + } + }, + "required": [ + "signature", + "alg" + ], + "additionalProperties": false + }, + "sequenceProtection": { + "type": "array", + "items": { + "type": "object", + "properties": { + "sequenceName": { + "type": "string" + }, + "position": { + "type": "integer" + } + }, + "additionalProperties": false, + "required": [ + "sequenceName", + "position" + ] + } + } + }, + "additionalProperties": false, + "required": [ + "authorIdentity" + ] + }, + "schemaUri": { + "type": "string" + } + }, + "required": [ + "id", + "type", + "version", + "time" + ], + "additionalProperties": false + }, + "data": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "categories": { + "type": "array", + "items": { + "type": "string" + } + }, + "types": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "ACCESSIBILITY", + "BACKUP_RECOVERY", + "COMPATIBILITY", + "CONVERSION", + "DISASTER_RECOVERY", + "FUNCTIONAL", + "INSTALLABILITY", + "INTEROPERABILITY", + "LOCALIZATION", + "MAINTAINABILITY", + "PERFORMANCE", + "PORTABILITY", + "PROCEDURE", + "RELIABILITY", + "SECURITY", + "STABILITY", + "USABILITY" + ] + } + }, + "liveLogs": { + "type": "array", + "items": { + "type": "object", + "properties": { + "mediaType": { + "type": "string" + }, + "name": { + "type": "string" + }, + "tags": { + "type": "array", + "items": { + "type": "string" + } + }, + "uri": { + "type": "string" + } + }, + "required": [ + "name", + "uri" + ], + "additionalProperties": false + } + }, + "customData": { + "type": "array", + "items": { + "type": "object", + "properties": { + "key": { + "type": "string" + }, + "value": {} + }, + "required": [ + "key", + "value" + ], + "additionalProperties": false + } + } + }, + "required": [ + "name" + ], + "additionalProperties": false + }, + "links": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string" + }, + "target": { + "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}$" + }, + "domainId": { + "type": "string" + } + }, + "required": [ + "type", + "target" + ], + "additionalProperties": false + } + } + }, + "required": [ + "meta", + "data", + "links" + ], + "additionalProperties": false +}