Skip to content

Implement comprehensive Zenodo sandbox testing strategy #76

Closed

Description

@neuromechanist

Overview

Establish a testing strategy using Zenodo sandbox to validate DOI workflows without polluting production Zenodo.

Background

  • Zenodo production token: stored in ZENODO_API_KEY
  • Zenodo sandbox token: stored in ZENODO_SANDBOX_API_KEY
  • Existing test infrastructure: test/zenodo-sandbox.test.ts
  • Backend already supports sandbox: true parameter in all Zenodo operations

Requirements

1. Test Environment Configuration

  • All Zenodo tests should default to sandbox
  • Production Zenodo should only be used when explicitly opted-in
  • CI/CD should run sandbox tests on every PR
  • Document when to use sandbox vs production

2. Test Coverage

  • Concept DOI creation (admin-only)
  • Version DOI publishing via webhook
  • DOI metadata updates
  • Error handling for invalid tokens
  • Rate limiting behavior
  • Deposition state transitions (draft → published)

3. Test Data Management

  • Use nm099999 as disposable test dataset for E2E
  • Clean up sandbox depositions after tests (delete unpublished drafts)
  • Document that published sandbox DOIs are permanent
  • Prevent accidental production DOI creation in tests

4. CLI Integration

  • Add --sandbox flag to admin DOI commands
  • Show clear warnings when using sandbox
  • Validate sandbox flag works for all DOI operations

5. Documentation

  • Update README with sandbox testing instructions
  • Document Zenodo service account setup
  • Add examples of sandbox vs production usage
  • CI environment variables guide

Implementation Notes

Acceptance Criteria

  • All DOI-related tests run against sandbox by default
  • CI pipeline includes sandbox tests
  • Documentation clearly explains sandbox vs production
  • Zero risk of accidental production DOI creation during development
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions