Skip to content

Commit

Permalink
Update to Orizaba (#57)
Browse files Browse the repository at this point in the history
  • Loading branch information
t-persson authored Feb 7, 2024
1 parent 4cfcb35 commit 7a527f0
Show file tree
Hide file tree
Showing 13 changed files with 1,913 additions and 20 deletions.
12 changes: 8 additions & 4 deletions src/eiffellib/events/eiffel_activity_triggered_event.py
Original file line number Diff line number Diff line change
@@ -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.
#
Expand All @@ -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):
Expand All @@ -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."""
Expand Down
12 changes: 8 additions & 4 deletions src/eiffellib/events/eiffel_confidence_level_modified_event.py
Original file line number Diff line number Diff line change
@@ -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.
#
Expand All @@ -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):
Expand All @@ -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."""
Expand Down
12 changes: 8 additions & 4 deletions src/eiffellib/events/eiffel_issue_verified_event.py
Original file line number Diff line number Diff line change
@@ -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.
#
Expand All @@ -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):
Expand All @@ -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."""
Expand Down
12 changes: 8 additions & 4 deletions src/eiffellib/events/eiffel_test_case_triggered_event.py
Original file line number Diff line number Diff line change
@@ -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.
#
Expand All @@ -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):
Expand All @@ -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."""
Expand Down
12 changes: 8 additions & 4 deletions src/eiffellib/events/eiffel_test_suite_started_event.py
Original file line number Diff line number Diff line change
@@ -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.
#
Expand All @@ -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):
Expand All @@ -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."""
Expand Down
231 changes: 231 additions & 0 deletions src/eiffellib/schemas/EiffelActivityTriggeredEvent/4.3.0.json
Original file line number Diff line number Diff line change
@@ -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
}
Loading

0 comments on commit 7a527f0

Please sign in to comment.