Skip to content

Commit

Permalink
Added a check in the job "test-store-config" for missing store field
Browse files Browse the repository at this point in the history
  • Loading branch information
fernando79513 committed Dec 19, 2024
1 parent f6f1b9b commit 28a1327
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions checkbox-support/checkbox_support/snap_utils/asserts.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,10 @@ def model_to_resource(model_assertion):
resource["{}_track".format(key)] = track
else:
resource[key] = val

# Check if the model has a store
if "store" not in resource:
resource["store"] = "unknown"
return resource


Expand Down
1 change: 1 addition & 0 deletions providers/base/units/snapd/snapd.pxu
Original file line number Diff line number Diff line change
Expand Up @@ -254,6 +254,7 @@ environ: TEST_SNAP SNAPD_TASK_TIMEOUT SNAPD_POLL_INTERVAL CHECKBOX_RUNTIME
unit: template
template-resource: com.canonical.certification::model_assertion
template-unit: job
template-filter: model_assertion.store not in ('unknown')
id: snappy/test-store-config-{store}
template-id: snappy/test-store-config-store
_summary: Test that image is using the correct snappy store configuration.
Expand Down

0 comments on commit 28a1327

Please sign in to comment.