metadata:
    name: lmp-device-register-disable-aktualizr-lite
    format: "Manual Test Definition 1.0"
    description: "Disable aktualizr-lite and attempt to re-register device"
    maintainer:
        - brendan.wood@foundries.io
    os:
        - ubuntu
        - openembedded
    scope:
        - functional
    devices:
        - imx6mm-evk
        - imx8mm-evk
        - imx8mm-evk-sec
        - imx8mp-evk
        - imx8mq-evk
        - bcm2711-rpi-4-b
        - stm32mp32mp157c-dk2
    environment:
        - manual-test

run:
    steps:
        - Boot up the device
        - Ensure device is registered to a factory
          Check /var/sota/sql.db is present on device
        - Run "sytemctl mask aktualizr-lite"
        - Run "lmp-device-register -n <name>"

    expected:
        - Device should not register
        - Expected error Device appears to already be registered in /var/sota/sql.db
