Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
S
swh-deposit
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Antoine R. Dumont
swh-deposit
Commits
ce2ed8b1
Commit
ce2ed8b1
authored
5 years ago
by
Morane Otilia Gruenpeter
Browse files
Options
Downloads
Patches
Plain Diff
Added test scenarios with HAL
parent
55496651
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
docs/index.rst
+1
-0
1 addition, 0 deletions
docs/index.rst
docs/tests/tests_HAL.rst
+65
-0
65 additions, 0 deletions
docs/tests/tests_HAL.rst
with
66 additions
and
0 deletions
docs/index.rst
+
1
−
0
View file @
ce2ed8b1
...
...
@@ -16,6 +16,7 @@ Push-based deposit of software source code artifacts to the archive.
dev-info
sys-info
specs/specs
tests/tests_HAL.rst
Reference Documentation
...
...
This diff is collapsed.
Click to expand it.
docs/tests/tests_HAL.rst
0 → 100644
+
65
−
0
View file @
ce2ed8b1
Tests scenarios for client
==========================
Scenarios for HAL- on HAL's platform
------------------------------------
The same procedure is used for all tests:
Software Author:
#. prepare content
#. fill out form
#. submit
HAL moderator:
#. review content submitted
#. check metadata fields on HAL
#. validate submission
SWH side:
1. check content in SWH:
- directory was created
- revision was created
- release was created when releaseNotes and softwareVersion was included (new feature!)
- origin corresponds to HAL url
2. check metadata fields on SWH (in revision)
3. check directory
4. check swh-id on HAL
5. check browsability when entering SWH artifact from HAL
6. check vault artifact recreation
7. access deposit's origin from SWH
+-----------+------------------------------------------+----------+-------+-----------------------------------------+
|scenario |test case |data |result |exceptions or specific checks |
+===========+==========================================+==========+=======+=========================================+
|submit code|content: .tar.gz |.zip |success| |
+-----------+------------------------------------------+----------+-------+-----------------------------------------+
|submit code|content: .zip |.tar.gz |success| |
+-----------+------------------------------------------+----------+-------+-----------------------------------------+
|submit code|content: no content |empty |fail |blocked on HAL |
+-----------+------------------------------------------+----------+-------+-----------------------------------------+
|submit code|content: double compression (.zip in .zip)|.zip x 2 |fail |status `failed` on SWH |
+-----------+------------------------------------------+----------+-------+-----------------------------------------+
|submit code|all metadata-single entry |metadata |success|check that all metadata is transmitted |
+-----------+------------------------------------------+----------+-------+-----------------------------------------+
|submit code|multiple entries |metadata |success|languages / authors / descriptions |
+-----------+------------------------------------------+----------+-------+-----------------------------------------+
|new version|new content- same metadata |content |success|check new swh-id in SWH and HAL |
+-----------+------------------------------------------+----------+-------+-----------------------------------------+
|new version|same content- new metadata |metadata | ? |dead angle- doesn't arrives to SWH |
+-----------+------------------------------------------+----------+-------+-----------------------------------------+
|new version|new content-new metadata | C & M |success|check artifacts history in revisions |
+-----------+------------------------------------------+----------+-------+-----------------------------------------+
|submit code+ deposit on another hal platform + C & M +success+ |
+-----------+------------------------------------------+----------+-------+-----------------------------------------+
Past known bugs:
- v2 problem keeps swh-id from first version
- when deposit workers are down- error 500 is returned on HAL without real
explanation (because there is no error on SWH- deposit status stays `deposited`)
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment