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

test-plan/git-lite/consumer #44

Open
1 of 10 tasks
bwalsh opened this issue Jan 19, 2024 · 0 comments
Open
1 of 10 tasks

test-plan/git-lite/consumer #44

bwalsh opened this issue Jan 19, 2024 · 0 comments

Comments

@bwalsh
Copy link
Collaborator

bwalsh commented Jan 19, 2024

Epic

As a release manager , I want a test script to ensure comprehensive and repeatable testing of the new feature(s).

Use case

As a testing engineer, I want a data download and replication script to facilitate efficient testing of data synchronization and replication processes.

Definition of Done:

  • Test script is created and documented.
  • The script is reviewed and approved by the testing team.
  • optional The script is integrated into the testing process and automated frameworks.
  • script is executed and all acceptance criteria are met.

Considerations

  • The system should generate clear error messages for users in case of invalid data submissions, guiding them on how to correct the issues.
  • It should perform thorough validation of data integrity to prevent corruption or loss during the upload process.
  • Security measures should be implemented to protect against potential data breaches or unauthorized access during the submission and upload process.
  • It must log relevant information, including successful uploads and any errors encountered, for auditing and debugging purposes.
  • The system should be version-controlled to track changes and updates over time.
  • The validation and upload process should be easily integrable into automated testing frameworks for continuous integration.

consumer test script

# Use case: As a data consumer, I will need download a project.

## test should work with or without environment variables

#export G3T_PROFILE=local
#export G3T_PROJECT_ID=ohsu-test002b
#g3t clone

unset G3T_PROJECT_ID
unset G3T_PROFILE
g3t --profile local clone --project_id ohsu-test001b

## test: the project should exist
cd ohsu-test001b
## test: the meta data should be in place with the latest changes
grep male META/Patient.ndjson |  jq '[.id, .gender]'
#"20d7d7eb-46f9-5175-b474-cb504f66e10e"
## test by default, the files should not be downloaded
ls tests
# ls: tests: No such file or directory

## Use case: I should be able to download files
g3t pull
## test directory should now contain
tree tests
#tests
#└── fixtures
#    └── dir_to_study
#        ├── file-1.txt
#        ├── file-2.csv
#        └── sub-dir
#            └── file-3.pdf
#
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant