Test #5508
closedCreate a set of tests to run with every PR for the migration plugin
Description
Motivation¶
Migration plugin is under active development, incl. code refactors, new features.
There is a need to have tests which can run for every PR and which can give at least level of confidence that migration works as expected and new changes didn't introduce regressions.
Proposal¶
Setup:
- Pulp 3
- MongoDB
Idea:
- Use pre-prepared "snapshots" of Pulp 2 to mimic Pulp 2 existence and certain behaviour.
Deliverables:
- Create fixtures which will contain mongodumps and corresponding tar balls of /var/lib/pulp/content (Pulp 2 content).
- Add ability to the pulp-smash to optionally use newly created fixtures at test setup time.
- Write tests (they can also be used in a more complicated setup with the real Pulp 2 running)
Tests:
1. One Pulp 2 snapshot.
- Test that downloaded content is migrated properly (content is created, hardlinks are created, artifatcs are created in DB)
- Test that on_demand content is migrated properly (content is created, remote artifacts are created)
- Test that migration happened according to the Migration Plan
- Test that migrated resources are created correctly (repos, repo versions, remotes, distributions, etc)
- Test that the migrated content is consumable.
2. Multiple Pulp 2 snapshots
- Test that migrated resources are created correctly after changes in Pulp2
- Test that the migrated content is consumable after changes in Pulp 2
Related issues
Updated by bherring about 5 years ago
- Related to Test #5194: [Epic] Test migration from Pulp 2 to Pulp 3 added
Updated by bherring about 5 years ago
- Status changed from NEW to ASSIGNED
- Assignee set to bherring
Updated by ttereshc almost 5 years ago
- Project changed from Pulp to Migration Plugin
Updated by ipanova@redhat.com almost 5 years ago
- Status changed from ASSIGNED to NEW
Updated by bmbouter over 4 years ago
- Tags deleted (
Pulp 2 to 3 Migrate)
We're removing the 'Pulp 2 to 3 Migrate' tag to allow membership of the Migration Plugin project in Redmine to be the controlling area https://pulp.plan.io/projects/migration
Updated by ttereshc over 3 years ago
- Status changed from NEW to CLOSED - COMPLETE