Skip to content
Merged
Show file tree
Hide file tree
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions spec/changelog.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,11 @@
- description: Add support for semantic_text field definition.
type: enhancement
link: https://github.com/elastic/package-spec/pull/807
- version: 3.3.4-next
changes:
- description: Remove slo assets when spec versions are less than 3.4.0.
type: bugfix
link: https://github.com/elastic/package-spec/pull/884
- version: 3.3.3
changes:
- description: Introduce siem category.
Expand Down
5 changes: 5 additions & 0 deletions spec/content/kibana/spec.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,3 +29,8 @@ spec:
pattern: '^{PACKAGE_NAME}-.+\.json$'
forbiddenPatterns:
- '^.+-(ecs|ECS)\.json$' # ECS suffix is forbidden
versions:
- before: 3.4.0
patch:
- op: remove
path: "/contents/2" # remove SLO definitions
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
{
"attributes": {
"name": "Admin Console Availability",
"description": "",
"indicator": {
"type": "sli.kql.custom",
"params": {
"index": "kbn-data-forge-fake_stack.admin-console-*",
"filter": "",
"good": "http.response.status_code < 500",
"total": "http.response.status_code : *",
"timestampField": "@timestamp"
}
},
"budgetingMethod": "occurrences",
"timeWindow": {
"duration": "7d",
"type": "rolling"
},
"objective": {
"target": 0.99
},
"tags": [],
"groupBy": "url.domain"
},
"id": "good_content-slo-abc-1",
"references": [],
"type": "slo"
}
2 changes: 1 addition & 1 deletion test/packages/good_content/manifest.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
format_version: 3.3.1
format_version: 3.4.0

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should it be updated the spec version for the compliance test here ?

@3.3.0
Scenario: Content package can be installed
Given the "good_content" package is installed
#Then there are no errors.

That test is running successfully even if that spec version is not updated.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If the package has SLOs it should be updated, yes.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If that spec version is updated to be @3.4.0, I guess it should be needed to add a new compliance test for 3.4.0.

Or should it be updated the one with stack 9.1.0-SNAPSHOT to 3.4.0 ? @jsoriano

compliance_test 9.1.0-SNAPSHOT 3.3.3

Would it be better to create a new content package without SLO , so it can be tested that scenario with previous spec versions 3.3.0 ?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added a new basic_content test package , to be able to keep testing content packages with spec version 3.3.0 (and previous Elastic stacks). Added in 6250bd1

name: good_content
title: Good content package
description: >
Expand Down
3 changes: 3 additions & 0 deletions test/packages/good_content/validation.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
errors:
exclude_checks:
- PSR00001 # Allow to use unreleased features in GA package.
Comment on lines +1 to +3

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added since 3.4.0 is not released yet (-next prerelease tag)