Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
DataCatalog
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
Container 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
eFlows4HPC WP2
DataCatalog
Commits
013502b4
Commit
013502b4
authored
3 years ago
by
Christian Boettcher
Browse files
Options
Downloads
Patches
Plain Diff
rename testing files, add comments for future tests
parent
9d9dbe70
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
tests/apiserver_tests/context.py
+0
-0
0 additions, 0 deletions
tests/apiserver_tests/context.py
tests/apiserver_tests/test_put.py
+12
-0
12 additions, 0 deletions
tests/apiserver_tests/test_put.py
tests/apiserver_tests/test_responsiveness.py
+7
-1
7 additions, 1 deletion
tests/apiserver_tests/test_responsiveness.py
with
19 additions
and
1 deletion
apiserver_tests/context.py
→
tests/
apiserver_tests/context.py
+
0
−
0
View file @
013502b4
File moved
This diff is collapsed.
Click to expand it.
tests/apiserver_tests/test_put.py
0 → 100644
+
12
−
0
View file @
013502b4
# These Tests check if the PUT calls work as intended, checking both valid puts and invalid puts
from
fastapi.testclient
import
TestClient
from
context
import
apiserver
from
context
import
storage
client
=
TestClient
(
apiserver
.
app
)
# PUT a new dataset, store the id in global variable, verify via a GET if it worked
# PUT an invalid type (i.e. a type not in the enum)
This diff is collapsed.
Click to expand it.
apiserver_tests/test_responsiveness.py
→
tests/
apiserver_tests/test_responsiveness.py
+
7
−
1
View file @
013502b4
...
...
@@ -17,4 +17,10 @@ def test_root():
def
test_types
():
for
location_type
in
storage
.
LocationDataType
:
rsp
=
client
.
get
(
'
/
'
+
location_type
.
value
)
assert
rsp
.
status_code
>=
200
and
rsp
.
status_code
<
300
# any 200 response is fine, as a get to the datatypes should not return any error
\ No newline at end of file
assert
rsp
.
status_code
>=
200
and
rsp
.
status_code
<
300
# any 200 response is fine, as a get to the datatypes should not return any error
# PUT a new dataset, store the id in global variable
# GET the specific dataset
# DELETE the specific dataset
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