Skip to content

test-store-config fails because of new template checks. #1663

@fernando79513

Description

@fernando79513

Bug Description

With the new template checks, we discovered an error with the "snappy/test-store-config-store" test. The test was trying to be created even if no store was declared.

13:22:10 ------[ Test that image is using the correct snappy store configuration. ]------
13:22:10 ID: com.canonical.certification::snappy/test-store-config-MISSING_PARAM_1
13:22:10 Category: Snapd
13:22:10 --------------------------------------------------------------------------------
13:22:10 Template 'com.canonical.certification::snappy/test-store-config-store' generated an invalid unit. Field 'command' has value 'echo "Expected store ID:"
13:22:10 $STORE_ID"
13:22:10 
13:22:10 Store ID in model assertion:"
13:22:10 {store}"
13:22:10 ORE_ID" == "{store}" ]' but the template-resource didn't generate any value for 'store'
13:22:10 --------------------------------------------------------------------------------
13:22:10 Outcome: job failed

Cert-blocker Test Case

  • cert-blocker

To Reproduce

Run:
checkbox-cli run com.canonical.certification::snappy-snap-automated

Expected Result

The "snappy/test-store-config-.*" test is not run in devices that don't declare the store in the model_resource

Actual Result

The job fails with a template error

Environment

  • Snap: core20
  • Snap version: 20241206
  • Snap revision: 2497
  • Snap channel: beta
  • Kernel version: 5.4.0-1120-raspi
  • Checkbox-version: 4.3.0-dev36

Relevant log output

No response

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions