Skip to content
GitLab
  • Menu
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • D debexpo
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 42
    • Issues 42
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 2
    • Merge requests 2
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • mentors.debian.net
  • debexpo
  • Merge requests
  • !19

Add test coverage for debexpo_importer.py

  • Review changes

  • Download
  • Email patches
  • Plain diff
Merged Baptiste Beauplat requested to merge lyknode/debexpo:importer-tests into live Dec 04, 2018
  • Overview 3
  • Commits 17
  • Pipelines 1
  • Changes 104

This MR adds test coverage of the importation process.

For each test case:

  • corrupted-changes: Invalid change file
  • debian-orig-too-big: Debian orig.tar.gz is too big to be downloaded
  • emtpy-changes: Changes file is emtpy
  • hello: Correct package importation
  • invalid-dist: Use of unsupported dist
  • missing-file-in-changes: Missing files from the upload
  • no-dsc: No dsc in the upload
  • no-orig: No orig.tar.gz in the upload and existing
  • not-signed: Upload not signed
  • unknown-key: GPG key not in debexpo keyring
  • wrong-checksum-in-changes: File corrupted in the upload
  • wrong-gpg-uid: Attempt to forge signed package (with GPG key matching a user registered email)

It will assert:

  • Importer status (success/failure)
  • Email report (matching content/no mail)
  • Database modification (Package has been added or not)
  • Repo modification (Package has been added or not)

This MR relates #6 (closed)

Assignee
Assign to
Reviewer
Request review from
Time tracking
Source branch: importer-tests