Skip to content
Merged
Show file tree
Hide file tree
Changes from all 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
2 changes: 1 addition & 1 deletion elements/flatcar/flatcar-usr.bst
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ variables:
sources:
- kind: remote
url: flatcar:stable/%{flatcar-board}/%{flatcar-version}/flatcar-container.tar.gz
ref: c533ff576e128d11ce240e01f818c358d75b9ff118b2dd9199fbf4684547a32c
ref: "%{flatcar-kernel-container-sha256}"

config:
install-commands:
Expand Down
8 changes: 5 additions & 3 deletions tests/unit/test_flatcar_usr.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,14 +104,16 @@ def test_flatcar_usr_element_structure() -> None:
"variables.strip-binaries must be empty string to prevent stripping"
)

# Exactly one remote source for flatcar-container.tar.gz pinned by sha256
# Exactly one remote source for flatcar-container.tar.gz pinned via include/flatcar.yml
sources = data.get("sources", [])
assert len(sources) == 1, "Must declare exactly one source"
src = sources[0]
assert src.get("kind") == "remote"
assert src.get("url") == "flatcar:stable/%{flatcar-board}/%{flatcar-version}/flatcar-container.tar.gz"
assert len(src.get("ref", "")) == 64, "Source ref must be a valid sha256 hash"

ref = src.get("ref", "")
assert ref == "%{flatcar-kernel-container-sha256}" or len(ref) == 64, (
"Source ref must reference %{flatcar-kernel-container-sha256} or be a valid sha256 hash"
)

def test_flatcar_usr_explicit_removals_and_replacements() -> None:
"""Verify explicit rm lines and Bluefin replacement documentation."""
Expand Down
Loading