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

Implement test strategy for API tests #83

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

Implement test strategy for API tests #83

skasberger opened this issue Feb 12, 2021 · 1 comment
Assignees
Labels
pkg:api api 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

  • Get test base directory as variable
  • create query strings by hand, as in helper functions.
  • Passing empty string as base_url should create an error
  • token = None oder empty sollte auch einen error werfen
  • Use @pytest.mark.skipif() when os.getenv(TRAVIS) == True
  • Run tests
  • Update test strategy
    • Docs
    • Endpoint availability
  • Define Tests
    • Prioritize behavior to be tested and define tests for it
      • Define test data for each test: input data, expected
    • Define fixtures
  • Check: private information in VCR cassettes: API Token,
  • Remove old JSON test data files
  • Update Test Strategy Work out test strategy and test plan #70
  • pytest pandas geht. pytest pyDataverse machen!

Write fixtures

  • Fixtures
    • Docs
    • define scope for each fixture, if not default.
    • for all input data

Fixtures:

  • native_api
  • dataaccess_api
  • metrics_api
  • search_api
  • get_info_version
    • setup
      • native_api
  • Create Dataverse
    • Scope
    • setup
      • create_dataverse()
    • teardown
      • delete_dataverse()
  • Create Dataset min
    • Scope
    • setup
      • create_dataset()
    • teardown
      • delete_dataset()
  • Publish Dataset
    • Scope
    • setup
      • Create Dataset
      • publish_dataset()
    • teardown
      • destroy_dataset()
  • Upload Datafile
    • Scope
    • setup
      • upload_datafile()
    • teardown
      • delete_datafile()

Write tests

  • check out notes_api.md
  • different test-cases

Review

  • Risk Assessment
    • Content
    • Documentation

Follow Ups

@skasberger skasberger added type:feature New feature pkg:testing test 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 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: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