Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Work out test data after test strategy #84

Open
1 of 17 tasks
skasberger opened this issue Feb 12, 2021 · 1 comment
Open
1 of 17 tasks

Work out test data after test strategy #84

skasberger opened this issue Feb 12, 2021 · 1 comment
Assignees
Labels
pkg:api api related activities pkg:models models related activities pkg:testing test related activities prio:high status:wip Work in progress type:feature New feature

Comments

@skasberger
Copy link
Member

skasberger commented Feb 12, 2021

Prepare

Steps

  • define requirements
  • define tree structure for the API tests
    • define creator with user-rights
    • define states
  • Define convention for file naming and directory structure
  • Define test data
    • Metadata
    • ??
  • Create required data
    • store as JSON

Tree Structure

Dataverses

  • parent
    • alias:
    • status:
    • metadata:
    • parent dataverse:
    • user:
  • full metadata
    • alias:
    • status:
    • metadata: full
    • parent dataverse:
    • user:
  • min metadata
    • alias:
    • status:
    • metadata: min
    • parent dataverse:
    • user:
  • published
    • alias:
    • status: published
    • metadata:
    • parent dataverse:
    • user:
  • draft
    • alias:
    • status: unpublished
    • metadata:
    • parent dataverse:
    • user:
  • child-dataverse unpublished
  • child-dataverse published
    • alias:
    • status: unpublished
    • metadata:
    • parent dataverse:
    • user:
  • user non-superuser
    • alias:
    • status: unpublished
    • metadata:
    • parent dataverse:
    • user:
  • user-superuser

Datasets

  • full metadata
    • title:
    • status:
    • metadata: full
    • parent dataverse:
    • user:
  • min metadata
    • title:
    • status:
    • metadata: min
    • parent dataverse:
    • user:
  • published
    • title:
    • status: published
    • metadata:
    • parent dataverse:
    • user:
  • draft
    • title:
    • status: draft
    • metadata:
    • parent dataverse:
    • user:
  • created for publishing
    • title:
    • status:
    • metadata:
    • parent dataverse:
    • user:
  • created for private url creation
    • title:
    • status:
    • metadata:
    • parent dataverse:
    • user:
  • created for private url deletion
    • title:
    • status:
    • metadata:
    • parent dataverse:
    • user:
  • created for deletion
    • title:
    • status:
    • metadata:
    • parent dataverse:
    • user:
  • created for lock testing
    • title:
    • status:
    • metadata:
    • parent dataverse:
    • user:
  • created for destroying
    • title:
    • status:
    • metadata:
    • parent dataverse:
    • user:
  • created for metadata update
    • title:
    • status:
    • metadata:
    • parent dataverse:
    • user:
  • user non-superuser
    • title:
    • status:
    • metadata:
    • parent dataverse:
    • user:

Datafiles

  • published dataset
    • title:
    • status:
    • metadata:
    • parent dataverse:
    • restrictions:
    • user:
  • unpublished dataset
    • title:
    • status:
    • metadata:
    • parent dataverse:
    • restrictions:
    • user:
  • created for datafile replacement
    • title:
    • status:
    • metadata:
    • parent dataverse:
    • restrictions:
    • user:
  • created to create a new major release
    • title:
    • status:
    • metadata:
    • parent dataverse:
    • restrictions:
    • user:
  • created to create a new minor release
    • title:
    • status:
    • metadata:
    • parent dataverse:
    • restrictions:
    • user:
  • user non-superuser
    • title:
    • status:
    • metadata:
    • parent dataverse:
    • restrictions:
    • user:

User

  • to get api token expiration date
    • title:
    • status:
    • metadata:
    • parent dataverse:
    • user:
  • to recreate api token
    • title:
    • status:
    • metadata:
    • parent dataverse:
    • user:
  • to create api token
    • title:
    • status:
    • metadata:
    • parent dataverse:
    • user:
  • one for each role
    • title:
    • status:
    • metadata:
    • parent dataverse:
    • user:

Role

  • one to show
    • title:
    • status:
    • metadata:
    • parent dataverse:
    • user:
  • one to delete
    • title:
    • status:
    • metadata:
    • parent dataverse:
    • user:

Files

  • dataverse metadata full
    • Description:
    • Source:
    • License:
    • GDPR compliance
    • Creation:
  • dataverse metadata min
    • Description:
    • Source:
    • License:
    • GDPR compliance
    • Creation:
  • dataset metadata full
    • Description:
    • Source:
    • License:
    • GDPR compliance
    • Creation:
  • dataset metadata min
    • Description:
    • Source:
    • License:
    • GDPR compliance
    • Creation:
  • datafile metadata full
    • Description:
    • Source:
    • License:
    • GDPR compliance
    • Creation:
  • datafile metadata min
    • Description:
    • Source:
    • License:
    • GDPR compliance
    • Creation:

Review

  • Documentation

Follow Ups

@skasberger skasberger added type:feature New feature pkg:testing test related activities pkg:models models related activities pkg:api api related activities prio:high status:wip Work in progress labels Feb 12, 2021
@skasberger skasberger added this to the v0.4.0 milestone Feb 12, 2021
@skasberger skasberger self-assigned this Feb 12, 2021
@skasberger skasberger changed the title Work out testdata after test strategy Work out test data after test strategy Feb 12, 2021
@skasberger skasberger mentioned this issue Mar 14, 2021
35 tasks
@pdurbin
Copy link
Member

pdurbin commented Feb 14, 2024

As discussed during the 2024-02-14 meeting of the pyDataverse working group, we are closing old milestones in favor of a new project board at https://github.com/orgs/gdcc/projects/1 and removing issues (like this one) from those old milestones. Please feel free to join the working group! You can find us at https://py.gdcc.io and https://dataverse.zulipchat.com/#narrow/stream/377090-python

@pdurbin pdurbin removed this from the v0.4.0 milestone Feb 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pkg:api api related activities pkg:models models related activities pkg:testing test related activities prio:high status:wip Work in progress type:feature New feature
Projects
None yet
Development

No branches or pull requests

2 participants