Skip to content

Share the test database lifecycle in auth and resource specs #9725

Done

Description

@aglinxinyuan

Task Summary

Fourteen specs that run against the embedded test database still open it, close its connection pool and clean up after themselves by hand: the Apple, Google and ORCID sign-in specs, the local and external account provisioning specs, the feedback, Gmail and user config resource specs and the workflow email notifier spec in amber, SiteSettingsSpec, three computing-unit resource specs, and the notebook migration resource spec. The sign-in and provisioning specs also repeat the same user lookup, provider-row query, user cleanup and invite-only switch, and several specs, including the email template and email code specs, build the same request or message in every case.

DatabaseFlatSpec (#9718) already does this setup for the dashboard and Hub specs. Moving these specs onto it, with a small shared base for the sign-in specs, keeps every test's name, inputs and expected values. About 280 lines go away.

Task Type

  • Refactor / Cleanup

Activity

  1. github-actions commented on Nov 27, 2026

    @github-actions
    Contributor

    👋 Thanks for opening this issue, @aglinxinyuan!

    It looks like the issue description doesn't quite follow our template yet:

    • This issue doesn't appear to use one of our templates (Bug, Feature, or Task). Please open it using a template so the required details are captured.

    Filling out the template helps reviewers understand and triage your contribution faster. Please edit the description to complete it. This message will disappear automatically once the template is followed.

    You can find the template prompts by editing the description, or see CONTRIBUTING.md for the full contribution flow.

  2. added a commit that references this issue on Nov 27, 2026
    923c982
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

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