1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27
|
summary: Check that the refresh command uses deltas
details: Check that the refresh command uses deltas when downloading a snap.
environment:
SNAP_NAME: test-snapd-delta-refresh
SNAP_VERSION_PATTERN: \d+\.\d+\+fake1
# on core systems, the test was seen to misbehave when memory limit is set
SNAPD_NO_MEMORY_LIMIT: 1
prepare: |
# The store currently only calculates deltas in the same channel,
# so we need to setup the test first with two edge uploads, then
# set on of the edge snaps to beta. This was done with r3 -> r5.
#
# We have edge as r3, beta as r5 and the store has a delta for
# r3 -> r5b
#
echo "Given a snap is installed"
snap install --edge "$SNAP_NAME"
execute: |
echo "When the snap is refreshed"
snap refresh --beta "$SNAP_NAME"
echo "Then deltas are successfully applied"
"$TESTSTOOLS"/journal-state match-log "Successfully applied delta"
|