Confirm that you are taken to the /public panel as a logged in user. All features for signed-in users should be functional (My Tales, Shared Tales, Create Tale, etc).
Logout, confirm "Sign In" button appears and only "Public Tales" is accessible
Open a public tale (e.g., LIGO)
Select "Sign In", confirm that you are accessing the tale as a signed-in user
Logout, confirm that you are accessing the tale as an unauthenticated user
[x] Confirm auth providers
Select "Sign In" button
Select "Access Whole Tale" button. You should be prompted to login via Globus Auth.
Confirm institutional login
Confirm Google login
Confirm ORCID login
[x] Basic logout flow
As an authenticated user, select the "User" menu
Select the "Log out" menu item. You should be taken to the Public Tales catalog.
Select "Sign In"
Note that you are not prompted to login to Globus again
On "Public Tales", click "Run" on LIGO tale (Copy on Launch)
Select "Run Tale" to start the instance
Confirm you are redirected to the Run page
Confirm that the Run panel displays the Tale image, title, and author
Confirm that the Run page displays the Interact, Files, Metadata and Share tabs
Confirm that Interact tab is displayed by default
Confirm notification panel displays and progression is correct
Select the "..." menu.
Confirm that menu options exist for "Rebuild Tale", "Restart Tale", "Save Tale Version", "Recorded Run", "Duplicate Tale", "Publish Tale", "Export Tale", "Connect to Git Repository..."
g = Graph().parse(source="manifest.json", format="json-ld")
print(g.serialize(format='turtle', indent=2).decode())
* [ ] environment.json
1. Open the archive from the manifest.json test
1. Navigate to `metadata/environment.json`
1. Open the girder web API
1. Locate and GET the Image that the Tale used
1. Confirm that the `config` section from girder matches the `config` section in `environment.json`
* [ ] LICENSE
1. Open the archive from the manifest.json test
1. Open the `LICENSE` file
1. Navigate to Run > metadata
1. Confirm that the opened `LICENSE` file matches the selected license on the metadata page
1. Change the Tale's license
1. Export the Tale
1. Confirm that the `LICENSE` changed appropriately
## Tale Sharing Tests
These tests are centered around the feature for sharing Tales with other Whole Tale
users. To run these tests, register at least one other account, referred to as User B.
* [x] Case 1: Sharing with 'Can View' permissions
1. Create a new Tale
1. Add data to the workspace and add at least one dataset
1. Navigate to the 'Share' tab
1. Share the Tale with User B
1. Confirm that the default permission is 'Can View'
1. Switch the account to User B
1. Navigate to the 'Shared with Me' tab on the Browse page
1. Confirm that you see the Tale from step 1
1. Confirm that you can't edit the Workspace, External Data, or metadata
1. Unshare tale with User B
1. Note modal displays that tale has been unshared.
* [x] Case 2: Sharing with 'Can Edit' permissions
1. Create a new Tale
1. Add data to the workspace and add at least one dataset
1. Navigate to the 'Share' tab
1. Share the Tale with User B
1. Set the permissions to 'Can Edit'
1. Switch the account to User B
1. Navigate to the 'Shared with Me' tab on the Browse page
1. Confirm that you see the Tale from step 1
1. Remove one of the files from the Workspace
1. Add a dataset to External Data
1. Change a field in the metadata (title, description, etc)
1. Switch to User A
1. Confirm that the changes made to the Tale persisted
* [x] Case 3: Edit sync modal
1. Login as User A and User B in separate browser sessions
1. As User B, select "Shared with me"
1. As User A, share a tale with User B; as User B confirm the tale appears
1. As User B, select "View" on the shared tale
1. As User A and B edit the tale metadata
1. As User A change title, author, category, description; save changes
1. As User B confirm Tale edited modal, select Yes, confirm updates to metadata
## Publishing tests
* [x] Case 1: No Accounts Configured
1. Disconnect all of your external accounts
1. Open a Tale that you own
1. Click the ellipsis dropdown on the Run page
1. Click `Publish tale...`
1. Confirm that your are notified to link accounts on the settings page
1. Click `Go to Settings`
1. Confirm you are re-directed to settings
* [x] Case 2: Publishing to DataONE
1. Connect to DataONE (dev server)
1. Open a Tale that you own
1. Add some data to it
1. Click `Publish tale...`
1. Confirm that the publishing modal opens
1. Confirm that the third party that you are connected to appears in the dropdown
1. Select the third party
1. Click `Publish`
1. Once complete, navigate to the metadata page
1. Confirm that the published location is present
1. Visit the published location
1. Confirm that you see the following files plus yours
1. `metadata.xml`
1. `LICENSE`
1. `README.md`
1. `manifest.json`
1. `environment.json`
1. After publishing to DataONE, use girder to query the Tale
1. Ensure that the 'pid' field in the 'publishInfo' object has an identifier in a doi format
* [x] Case 3: Re-publish Tale to DataONE
1. Launch a Tale that has been published before
1. Take note of the `Published Location` in Run > metadata
1. Re-publish the Tale to the third party
1. Confirm that the `Published Location` has changed to the correct package landing page
## Zenodo integration tests
* [x] Register Zenodo data
1. On a new or existing tale, select "Files" > "External Data"
1. Select "+" > "Web (DOI or URL)"
1. Search for Concept DOI `doi:10.5281/zenodo.16384`
1. Confirm "Belmont Forum..." dataset is found on Zenodo with suffix `ver_1`
1. Search for URL `https://zenodo.org/record/1172960#.XidIvlNKh24`
1. Confirm "Belmont Forum..." dataset is found on Zenodo with suffix `ver_2`
1. Search for DOI `doi:10.5281/zenodo.1172960`
1. Confirm "Belmont Forum..." dataset is found on Zenodo with suffix `ver_2`
1. Search for Concept DOI `doi:10.5281/zenodo.608984`
1. Confirm "Belmont Forum..." dataset is found on Zenodo with suffix `ver_2`
1. Select Register
1. Select "+" > "WT Data Catalog"
1. Add "Belmot Forum..." dataset to Tale
1. Run Tale and confirm contents on file system match Zenodo
The register tests the following cases.
* Datasets with multiple files
* Datasets with multiple versions
* Concept DOI
* [x] Zenodo dataset via AiWT
1. Open https://dashboard.stage.wholetale.org/mine?uri=https%3A%2F%2Fdoi.org%2F10.5281%2Fzenodo.820575&name=Automotive%20Sensor%20Data
1. Confirm Source Data URL and Title match above URL and "READ ONLY" is selected
1. Select JupyterLab environment
1. Select 'Create New Tale'
1. Confirm dataset is mounted read-only, citation and related ids are as expected,
1. Run IDE and use terminal to `ls ../data/Auto*` to confirm zipfile is not extracted
The register tests the following cases.
* Dataset with single file (zipfile)
* [x] Zenodo Binder via AiWT
1. Open https://dashboard.stage.wholetale.org/mine?uri=https%3A%2F%2Fdoi.org%2F10.5281%2Fzenodo.3242073&environment=JupyterLab&name=Simple%20requirements.txt%20based%20example%20for%20repo2docker&asTale=true
1. COnfirm Source Data and Title match URL and "READ WRITE" is selected
1. Select 'Create Tale'
1. Confirm image builds and notebook can run
* [x] Zenodo Tale via AiWT
1. Open https://girder.stage.wholetale.org/api/v1/integration/zenodo?doi=10.5281%2Fzenodo.490449&resource_server=sandbox.zenodo.org
1. Confirm Water Tale is created.
1. Confirm citation on Metadata view
1. Confirm DOI matches above
1. Use the Swagger UI to confirm the `publishInfo` field on the tale object contains pid, repository, repository_id, uri
1. Run the tale and and notebook, confirm it works as expected (produces glorious map of Texas)
* [x] Publish/import to/from Zenodo Sandbox
1. Follow instructions above to configure your API key for Zenodo sandbox
1. Create your own Tale and publish to sandbox.zenodo.org
1. Confirm publishInfo contains Sandbox entry
1. Delete tale
1. Import tale from Zenodo
1. Confirm publishInfo
1. Modify the tale
1. Re-publish to sandbox.zenodo.org
1. Delete tale
1. Import tale from Zenodo
1. Confirm publishInfo
1. Download and extract the exported Tale
1. Execute the `run-local.sh` command to run the Tale locally
## OpenICPSR integration tests
* [ ] OpenICPSR via AinWT
1. Go to Settings, configure ICPSR provider. Select "www.openicpsr.org". Provide you password for icpsr login. (Assumption: your globus/girder account uses the same email as icpsr entity.)
1. Go to: https://dashboard.stage.wholetale.org/mine?name=AEAREP-3198-Stata&environment=STATA%2016%20%28Desktop%29&uri=https%3A%2F%2Fwww.openicpsr.org%2Fopenicpsr%2Fproject%2F132081%2Fversion%2FV1%2Fview&asTale=true
1. Confirm import
* [ ] Register OpenICPSR dataset?
1. This isn't an officially supported use case, but register https://www.openicpsr.org/openicpsr/project/132081/version/V1/view and confirm it works.
## Git Integration Tests
* [x] Compose Tale from Git Repository
Covered by other tests
1. Select the Create New Tale button on the 'Browse' page
1. Select the `Create Tale from Git Repository` option
1. Paste a link to a Git repository in the correct field
1. Add a name and pick a compute environment
1. Create the Tale
1. Confirm notification progress and success
1. Confirm that the git repository was cloned to the `workspace/` root
1. Run the tale
1. Confirm interaction via git tools (may require environment customization)
* [x] Connect to Git
1. Create a new empty tale
1. Select "Connect to Git Repository" menu item from Tale menu
1. Confirm notification progress and success
1. Once complete, navigate to the Tale workspace and confirm that the repository has been cloned
## Other tests
* [x] Citations
1. Add files from multiple external datasets (e.g.: doi:10.5281/zenodo.3381658, doi:10.5065/D6862DM8, doi:10.5063/F10K26VR)
1. Confirm `Datasets Used` citations and related identifiers are updated
### Event Notification Tests
* [x] Tale sharing/unsharing
1. Login as user1 and user2 in separate browser sessions
1. As user2, select "Shared with me"
1. As user1, share a tale with user2; as user2 confirm the tale appears
1. As user2, select "View" on the shared tale
1. As user1 and 2 edit the tale metadata
1. As user1 save changes; as user2 confirm Tale edited modal
1. As user1, unshare the tale; as user2 confirm Tale unshared modal
1. As user1, re-share with user2
1. As user2, select "Shared with Me"
1. As user1, delete the shared tale; as user2 confirm that the tale disappears
* [x] Import tale
1. Import a tale from Github, Zenodo, and as Binder
1. Confirm metadata updates accordingly after import completes
## Vocabulary Tests
* [ ] Vocabularies
1. Go to https://vocabularies.stage.wholetale.org/wt/1.0/index.html
1. Confirm that it matches https://whole-tale.github.io/serialization-format/wt/1.0/
## Forward Authentication Test
* [x] Forward authentication
1. Start a tale
1. Confirm that the tale is accessible via iframe and popout
1. Right click popout icon and copy URL (this is necessary to get JupyterLab token)
1. Open an incognito window and paste the copied URL
1. Confirm that you are prompted for authentication and can access the tale once authenciated
1. Login as a user who does not have permission to access the tale
1. Confirm that they receive an access denied errror
## Changing the Environment
* [x] Changing the environment
1. Create a new JupyterLab tale
1. Run the Tale, confirm JupyterLab IDE displays
1. Edit metadata, change environment to "RStudio"
1. Confirm icon changes in title bar and Environment section
1. Stop/run tale or rebuild/restart and confirm RStudio IDE displays
## Idle Instances
* [ ] Idle instance culling
1. Create and start a MATLAB tale and a JupyterLab tale
1. Confirm both instances start and IDEs are accessible
1. Close all IDE tabs/windows
1. Wait for 2 hours and 24 hours respectively
1. Confirm both instances are stopped automatically
## Upload folder
* [ ] Upload folder to home
1. Create local folder containing files, folders, etc.
1. Upload folder to home. Confirm contents match local folder.
1. Download folder. Confirm contents match.
1. Repeat in workspace
## Advanced settings
* [x] Advanced settings
1. Create a new tale
1. Edit Metadata > Advanced, enter:
~Jupyter Example failing to build because "ImportError: cannot import name 'Markup' from 'jinja2'" during postBuild~ (fixed in example repo by p)
DataONE integration doesn't handle asTale case?
Settings > DataONE > Connect Account getting bad cert on stage-2 CN. Needed to change to cn-stage.
DataOne: Create version > publish; recorded run > publish -- fails because version already published. However, changing metadata and creating a version and publishing ... there's no run in the zipfile?
Zenodo Binder via AiWT fails with "Copying files to workspaceCreateFailed: CreateFailed('unable to create filesystem, File is not a zip")
Pyspark example failing: Import pyspark fails during Spark/Jupyter test (TypeError: an integer is required (got type bytes))
Can't repeat:
Interact frame doesn't always display the IDE when I'm not looking? No spinner, no IDE, but it opens fine on refresh or popup.
Also more oddities with instance state and notifications. Stepped away while spark/matlab images built and came back to them in progress but logs unviewable. After refresh both appeared with "stop tale" on catalog but not in "Currently running". But both IDEs were accessible.
Signing out while viewing a private tale still shows me the tale metadata page
Observations:
Remove menu option displays on versions/runs for user without owner permissions, but error displays when I try to remove it.
AinWT with "browse" target fail silently. Can we redirect to "mine"?
"Tale Dashboard" could just be "Dashboard" and should match "wholetale.org" header
Having a message that you need to sign in would be nicer than the tooltip over the run button
DERIVA not listed on register data, but that's probably OK
Do we really need to test travis.yml?
I still wish ORCID field was autopopulated or at least remembered by browser
"Upload folder (TODO)" (test case needs writing)
Should we just add bdbag validation to run-local?
It would be nice to be able to see versions/runs in Jupyter without using terminal
Need test case for imageInfo?
What happens when DV token expires or is revoked?
"Create JupyterLab Tale" is redundant
Do we need to add RStudio / MATLAB / STATA versions with this release?
Too bad we don't have a way to add datasets to a Git repo... (Jupyter Example)
There isn't an easy way to pull a Git repo if the one I imported fails to build. I must delete and recreate or remove r2d config (another case for "Safemode"?)
Remove openrefine test?
MATLAB Jupyter test warns "Warning: The system time zone setting, '/UTC', is unrecognized and 'UTC' will be used instead. Accessing the current time, e.g. datetime('now'), or setting the time zone property of a datetime array, e.g. datetime(Y,M,D,'TimeZone','local'), might return incorrect results."
Remove DataONE alternate sites test case?
"Run Tale" should really be "Copy Tale" if you can't run it, right?
Automate tale metadata test... or do we really need it?
It would be nice to have access to the container instance logs while my session is running. Also should keep a copy of the build log as part of the exported/published tale.
Test plan walkthrough on Staging
Test Plan
https://github.com/whole-tale/wt-design-docs/issues/new?template=TEST_PLAN.md
Note: For all tests, repeat for supported browser/OS combinations.
Preconditions:
End-to-End Test
sh run.sh
, confirm no errorsrun.sh
, confirm SUCCESSrun.sh
, confirm SUCCESSsh run-local.sh
and access the interactive environmentsh run.sh
, confirm no errorsNotes:
Unauthenticated access
Signing in
[x] Basic login flow
[x] Confirm auth providers
[x] Basic logout flow
[x] Return-route for non-logged in users
[x] Forward auth
[x] Analyze in WT (unauthenticated user)
Navigation
Tale Dashboard
Preconditions:
Authenticated user
Assumes production Tales present (e.g., LIGO, Materials, etc).
No running instances
[x] General
[x] Search
[x] View tale
[x] Launch instance
Managing Data
Preconditions
Empty home directory
No registered data
[x] Register General
[x] Register DataONE data
10.5065/D6862DM8
[x] Dataverse
[x] Globus/MDF
[x] DERIVA
Run Tale
Preconditions:
No running Tale instances
[x] General
[x] Interact tab
[x] Files tab
[x] Metadata tab - Owned Tale
Published Location
readsThis Tale has not been published
Environment
dropdown menuLicense
dropdown (CC4 and CC0)[x] Metadata tab - Non-Owned Tale (e.g., Public LIGO Tale)
[ ] Home
[x] External data
doi:10.18739/A29G5GD0V
)[ ] Tale Workspace
[x] Files - Non-Owned Tale
[x] Export Tale
bdbag --resolve-fetch all .
bdbag --validate full .
Versions
[ ] Tale Versioning
init
modified
init
- you should see no datasetsmodified
Version tosomething else
something else
- you should see the dataset you added../versions
in-container and that the contents including metadata are as expected[x] Publish/export version
Recorded Runs
[x] Create tale from Github
[x] Copy versions and runs
Settings
[x] Default State
[x] Connect to Zenodo
[x] Connect to Dataverse
[x] Connect to DataONE
[x] Connect to ICPSR
[x] Confirm tokens retained across logins #370
/user/me
endpoint to confirm tokens are still presentTale Creation
[x] Create JupyterLab Tale
[x] Create RStudio Tale
[x] Compose Jupyter Notebook Tale
[x] Compose JupyterLab Tale
[ ] Compose JupyterLab with Spark
[x] Compose MATLAB Desktop Tale
multiplicative_arima_example_script.m
, confirm outputsmultiplicative_arima_example_livescript.m
, confirm outputs[ ] Compose MATLAB Jupyter Kernel Tale
multiplicative_arima_example.ipynb
, confirm outputs matchmultiplicative_arima_example.html
[ ] Compose MATLAB Linux Desktop Tale
multiplicative_arima_example_script.m
, confirm outputs[x] Compose STATA Desktop Tale
example.do
, confirm outputs[x] Compose STATA Jupyter Kernel Tale
example.ipynb
, confirm outputs matchexample.html
[ ] Compose OpenRefine Tale
[x] Too many instances
Analyze in Whole Tale
These test cases cover potential situations that can occur when importing datasets from Dataverse.
[x] Import dataset from Dataverse
Replication Data for: "Agricultural Fires and Health at Birth"
Input data
section matches the uri withData Source
appendedCreate New Tale
button is disabledCreate New Tale
science
[x] Import dataset from DataONE: READ-ONLY
Fire influences on forest recovery and associated climate feedbacks in Siberian Larch Forests, Russia
Selected data
section matches the uri withData Source
appendedRstudio
is selected in the Environments widgetCreate New Tale
button is enabledCreate New Tale
science
[ ] Import from DataONE: READ-WRITE
Selected data
section matches the uri withData Source
appendedCreate New Tale
button is disabledREAD/WRITE
Create New Tale
[ ] Import from DataONE: alternate sites
Create New Tale
[x] Import from Zipfile
Tale metadata tests
The purpose of these tests are to confirm that the metadata files (manifest.json, environment.json, LICENSE) we generate are correct.
manifest.json
file undermetadata/
wt
context present@id
references the correct Tale IDschema:author
createdBy
aggregates
aggregates
wt:usesDataset
dct:hasVersion
is present and matches your created versionrdflib
can parse:import urllib.parse urllib.parse.uses_relative.append('arcp') urllib.parse.uses_netloc.append('arcp')
g = Graph().parse(source="manifest.json", format="json-ld") print(g.serialize(format='turtle', indent=2).decode())
{ "environment": [ "MY_ENV=value" ], "memLimit":"12gb" }
cat /sys/fs/cgroup/memory.max
, confirm 12gbecho $MY_ENV
, confirm valueCreate Tale from DOI
Public image registry
run-local.sh
. Image should be built locally using r2d.run-local.sh
. Image should be pulled fromimages.stage.wholetale.org
run-local.sh
run-local.sh
matches