Skip to content

Commit

Permalink
Add conformance tests for scs-0210-v2 version policy (#488)
Browse files Browse the repository at this point in the history
This adds the missing conformance tests for the version policy in scs-0210-v2, reusing the CVE collection and parsing code from the scs-0210-v1 Python script written by @cah-hbaum.

Refs: #481
Closes: SovereignCloudStack/issues#505

Co-authored-by: Hannes Baum <[email protected]>
Co-authored-by: Matthias Büchse <[email protected]>
Signed-off-by: Martin Morgenstern <[email protected]>
  • Loading branch information
3 people authored Mar 5, 2024
1 parent ccefe8e commit 55cdcb0
Show file tree
Hide file tree
Showing 8 changed files with 603 additions and 476 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,20 +5,20 @@ logging:
version: 1
disable_existing_loggers: False
formatters:
k8s-version-recency-check:
k8s_version_policy:
format: "%(levelname)s: %(message)s"
handlers:
console:
class: logging.StreamHandler
formatter: k8s-version-recency-check
formatter: k8s_version_policy
stream: ext://sys.stdout
file:
class: logging.handlers.WatchedFileHandler
formatter: k8s-version-recency-check
formatter: k8s_version_policy
filename: MY-LOG-FILE-NAME.log
root: # Configuring the default (root) logger is highly recommended
handlers: [console]
loggers:
k8s-version-recency-check:
k8s_version_policy:
handlers: [console, file]
propagate: no
propagate: no
12 changes: 12 additions & 0 deletions Tests/kaas/k8s-version-policy/k8s-eol-data.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# https://kubernetes.io/releases/patch-releases/#detailed-release-history-for-active-branches

- branch: '1.29'
end-of-life: '2025-02-28'
- branch: '1.28'
end-of-life: '2024-10-28'
- branch: '1.27'
end-of-life: '2024-06-28'
- branch: '1.26'
end-of-life: '2024-02-28'
- branch: '1.25'
end-of-life: '2023-10-28'
Loading

0 comments on commit 55cdcb0

Please sign in to comment.