Page MenuHomeSoftware Heritage

tests: Start testing migration scripts
ClosedPublic

Authored by ardumont on Mar 10 2021, 10:07 AM.

Details

Summary

This adds the tools and the last 2 scripts to demonstrate how to start testing the
migration scripts.

This is a preparatory work for testing the keycloak migration.

Note that a new arborescence tree swh/deposit/tests_migration got added to
avoid conflict with the other tests. The new folder path got chosen to avoid moving
too much files.

Related to T2858

Diff Detail

Repository
rDDEP Push deposit
Branch
master
Lint
No Linters Available
Unit
No Unit Test Coverage
Build Status
Buildable 19812
Build 30765: Phabricator diff pipeline on jenkinsJenkins console · Jenkins
Build 30764: arc lint + arc unit

Event Timeline

Build is green

Patch application report for D5228 (id=18717)

Rebasing onto e26aab74cc...

Current branch diff-target is up to date.
Changes applied before test
commit 8e603a3176ba003939c214e7699ed1a6aeaffd49
Author: Antoine R. Dumont (@ardumont) <ardumont@softwareheritage.org>
Date:   Wed Mar 10 10:02:25 2021 +0100

    tests: Start testing migration scripts
    
    This adds the tools and the last 2 scripts to demonstrate how to start testing the
    migration scripts.
    
    This is a preparatory work for testing the keycloak migration.
    
    Related to T2858

See https://jenkins.softwareheritage.org/job/DDEP/job/tests-on-diff/553/ for more details.

  • Drop unneeded requirement change
  • Merge unnecessary extra comment into the docstring test

Build is green

Patch application report for D5228 (id=18719)

Rebasing onto e26aab74cc...

Current branch diff-target is up to date.
Changes applied before test
commit 4353a323f6e038f3553ca8dc8928408966415f75
Author: Antoine R. Dumont (@ardumont) <ardumont@softwareheritage.org>
Date:   Wed Mar 10 10:02:25 2021 +0100

    tests: Start testing migration scripts
    
    This adds the tools and the last 2 scripts to demonstrate how to start testing the
    migration scripts.
    
    This is a preparatory work for testing the keycloak migration.
    
    Related to T2858

See https://jenkins.softwareheritage.org/job/DDEP/job/tests-on-diff/554/ for more details.

anlambert added a subscriber: anlambert.

Good to know that django-test-migrations package exists.

This revision is now accepted and ready to land.Mar 10 2021, 10:44 AM
This revision was automatically updated to reflect the committed changes.