Actions
action #61991
closed[y][functional] Add test module for 'snapper create: branch from different snapshot'
Status:
Resolved
Priority:
Normal
Assignee:
Category:
New test
Target version:
SUSE QA - Milestone 32
Start date:
2020-01-10
Due date:
2020-04-21
% Done:
0%
Estimated time:
3.00 h
Difficulty:
Description
See https://jira.suse.com/browse/SLE-7373 and https://jira.suse.com/browse/SLE-7333 and related progress ticket in case more details is needed.
Automated tests¶
Test 1 (Read-write snapshot).¶
Pre-condition: Install OS with btrfs File System and snapshots enabled (or use one of already installed).
- Create snapshot with
--read-write
parameter (e.g. `snapper create --read-write -d "Snapshot with read-write") - Verify, that the snapshot does not have
readonly
flag (e.g.btrfs subvolume show /.snapshots/4/snapshot
and then check that "Flags:" is "-", because in case if it is read-only, the "Flags: readonly" will be shown).
Test 2 (Create snapshot from another one).¶
Pre-condition: Install OS with btrfs File System and snapshots enabled (or use one of already installed).
- Create new snapshot (e.g. `snapper create -d "Parent Snapshot");
- Create another snapshot, using recently created one as a parent (e.g.
snapper create --from <number of parent> -d "Child Snapshot
); - Verify, that the child snapshot's parent_uuid is the same as parent's uuid (e.g.
btrfs subvolume list / -qu
).
Test 3 (Message is shown if try to create child snapshot from non existing parent one)¶
Pre-condition: Install OS with btrfs File System and snapshots enabled (or use one of already installed).
- Note the number of the existing snapshots (e.g.
snapper list
); - Execute
snapper --from
command with the snapshot number that does not exist (e.g.snapper --from 100
); - Verify the output (Expected result: Snapshot '100' not found).
Commands, that might be useful while implementing the test:¶
- Show snapper snapshots list:
snapper list
- Show snapshots with btrfs:
btrfs subvolume list / -s
- Show parameters of snapshot:
btrfs subvolume show /.snapshots/4/snapshot
- Change read-write to read-only:
btrfs property set /.snapshots/4/snapshot ro true
- Check parent_uuid:
btrfs subvolume list / -qu
Updated by oorlov over 4 years ago
- Related to action #60605: [functional][y][SLE-7373][SLE-7333][timeboxed:30h] snapper create: branch from different snapshot added
Updated by riafarov over 4 years ago
- Due date set to 2020-02-11
- Target version set to Milestone 31
We don't have transactional-update package in SLES yet to test functionality there, as we can simply reuse transactional server installation image.
Updated by riafarov about 4 years ago
- Due date changed from 2020-02-11 to 2020-02-25
- Priority changed from Normal to High
Updated by riafarov about 4 years ago
- Status changed from New to Blocked
- Assignee set to riafarov
Build 314.1 still contains version 2.15-3.3.2 of transactional-update
Updated by riafarov about 4 years ago
- Due date changed from 2020-02-25 to 2020-03-10
Updated by JERiveraMoya about 4 years ago
- Due date changed from 2020-03-10 to 2020-03-24
Updated by JERiveraMoya about 4 years ago
- Status changed from Blocked to Workable
- Assignee deleted (
riafarov)
Updated by JERiveraMoya about 4 years ago
- Due date changed from 2020-03-24 to 2020-04-07
Updated by riafarov about 4 years ago
- Target version changed from Milestone 31 to Milestone 32
Updated by riafarov about 4 years ago
- Due date changed from 2020-04-07 to 2020-04-21
Updated by JERiveraMoya about 4 years ago
- Status changed from Workable to In Progress
- Assignee set to JERiveraMoya
Updated by JERiveraMoya about 4 years ago
Updated by JERiveraMoya about 4 years ago
- Status changed from In Progress to Feedback
Updated by JERiveraMoya about 4 years ago
Updated by JERiveraMoya about 4 years ago
- Status changed from Feedback to Resolved
Actions