-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adds "skipped" as a new predicate for testcaserun events. A final outcome of "skip" is common for many test frameworks, so adding it as a possible outcome will improve interoperability. See further discussion in #140. Signed-off-by: Daniel Han <dhan17@bloomberg.net>
- Loading branch information
1 parent
f1aafdb
commit 699dfa2
Showing
3 changed files
with
225 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
{ | ||
"context": { | ||
"version": "0.4.0-draft", | ||
"id": "271069a8-fc18-44f1-b38f-9d70a1695819", | ||
"source": "/event/source/123", | ||
"type": "dev.cdevents.testcaserun.skipped.0.1.0-draft", | ||
"timestamp": "2023-03-20T14:27:05.315384Z" | ||
}, | ||
"subject": { | ||
"id": "myTestCaseRun123", | ||
"source": "/event/source/123", | ||
"type": "testCaseRun", | ||
"content": { | ||
"reason": "Not running in this environment", | ||
"environment": { | ||
"id": "dev", | ||
"source": "testkube-dev-123" | ||
}, | ||
"testSuiteRun": { | ||
"id": "test-suite-111", | ||
"source": "testkube-dev-123" | ||
}, | ||
"testCase": { | ||
"id": "92834723894", | ||
"version": "1.0", | ||
"name": "Login Test", | ||
"type": "integration" | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,168 @@ | ||
{ | ||
"$schema": "https://json-schema.org/draft/2020-12/schema", | ||
"$id": "https://cdevents.dev/0.4.0-draft/schema/test-case-run-skipped-event", | ||
"properties": { | ||
"context": { | ||
"properties": { | ||
"version": { | ||
"type": "string", | ||
"minLength": 1 | ||
}, | ||
"id": { | ||
"type": "string", | ||
"minLength": 1 | ||
}, | ||
"source": { | ||
"type": "string", | ||
"minLength": 1 | ||
}, | ||
"type": { | ||
"type": "string", | ||
"enum": [ | ||
"dev.cdevents.testcaserun.skipped.0.1.0-draft" | ||
], | ||
"default": "dev.cdevents.testcaserun.skipped.0.1.0-draft" | ||
}, | ||
"timestamp": { | ||
"type": "string", | ||
"format": "date-time" | ||
} | ||
}, | ||
"additionalProperties": false, | ||
"type": "object", | ||
"required": [ | ||
"version", | ||
"id", | ||
"source", | ||
"type", | ||
"timestamp" | ||
] | ||
}, | ||
"subject": { | ||
"properties": { | ||
"id": { | ||
"type": "string", | ||
"minLength": 1 | ||
}, | ||
"source": { | ||
"type": "string" | ||
}, | ||
"type": { | ||
"type": "string", | ||
"minLength": 1, | ||
"enum": [ | ||
"testCaseRun" | ||
], | ||
"default": "testCaseRun" | ||
}, | ||
"content": { | ||
"properties": { | ||
"reason": { | ||
"type": "string" | ||
}, | ||
"environment": { | ||
"properties": { | ||
"id": { | ||
"type": "string", | ||
"minLength": 1 | ||
}, | ||
"source": { | ||
"type": "string", | ||
"minLength": 1, | ||
"format": "uri-reference" | ||
} | ||
}, | ||
"additionalProperties": false, | ||
"type": "object", | ||
"required": [ | ||
"id" | ||
] | ||
}, | ||
"testSuiteRun": { | ||
"type": "object", | ||
"properties": { | ||
"id": { | ||
"type": "string", | ||
"minLength": 1 | ||
}, | ||
"source": { | ||
"type": "string" | ||
} | ||
}, | ||
"additionalProperties": false, | ||
"required": [ | ||
"id" | ||
] | ||
}, | ||
"testCase": { | ||
"type": "object", | ||
"additionalProperties": false, | ||
"required": [ | ||
"id" | ||
], | ||
"properties": { | ||
"id": { | ||
"type": "string", | ||
"minLength": 1 | ||
}, | ||
"version": { | ||
"type": "string" | ||
}, | ||
"name": { | ||
"type": "string" | ||
}, | ||
"type": { | ||
"type": "string", | ||
"enum": [ | ||
"performance", | ||
"functional", | ||
"unit", | ||
"security", | ||
"compliance", | ||
"integration", | ||
"e2e", | ||
"other" | ||
] | ||
}, | ||
"uri": { | ||
"type": "string", | ||
"format": "uri" | ||
} | ||
} | ||
} | ||
}, | ||
"additionalProperties": false, | ||
"type": "object", | ||
"required": [] | ||
} | ||
}, | ||
"additionalProperties": false, | ||
"type": "object", | ||
"required": [ | ||
"id", | ||
"type", | ||
"content" | ||
] | ||
}, | ||
"customData": { | ||
"oneOf": [ | ||
{ | ||
"type": "object" | ||
}, | ||
{ | ||
"type": "string", | ||
"contentEncoding": "base64" | ||
} | ||
] | ||
}, | ||
"customDataContentType": { | ||
"type": "string" | ||
} | ||
}, | ||
"additionalProperties": false, | ||
"type": "object", | ||
"required": [ | ||
"context", | ||
"subject" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters