Details
-
Type:
Story
-
Status: Done
-
Resolution: Done
-
Fix Version/s: None
-
Component/s: None
-
Labels:None
-
Story Points:2.8
-
Epic Link:
-
Team:SQuaRE
Description
We need a squash API acceptance test suite that can be run against the SQuaSH test client implemented on DM-9741 that exercises the the entire REST API.
It should use for example "real world" fixture data include the large (>50MiB) HSC measurement data set.
Attachments
Issue Links
- is blocked by
-
DM-9741 Implement a minimal viable REST API in Flask with a test client
- Done
Activity
Field | Original Value | New Value |
---|---|---|
Epic Link |
|
Status | To Do [ 10001 ] | In Progress [ 3 ] |
Resolution | Done [ 10000 ] | |
Status | In Progress [ 3 ] | Done [ 10002 ] |
Implemented basic tests on PR https://github.com/lsst-sqre/squash-rest-api/pull/3
$ make test
flake8 app tests
coverage run --source=app test.py
test_job (tests.tests.TestAPI) ... ok
test_measurement (tests.tests.TestAPI) ... ok
test_metric (tests.tests.TestAPI) ... ok
test_user (tests.tests.TestAPI) ... ok
----------------------------------------------------------------------
Ran 4 tests in 1.829s
OK
Name Stmts Miss Branch BrPart Cover
------------------------------------------------------------------
app/__init__.py 33 0 0 0 100%
app/auth.py 8 0 2 1 90%
app/config.py 20 0 0 0 100%
app/db.py 2 0 0 0 100%
app/models.py 212 45 7 1 77%
app/resources/__init__.py 0 0 0 0 100%
app/resources/jenkins.py 12 8 4 0 25%
app/resources/job.py 82 44 28 9 45%
app/resources/measurement.py 34 7 10 2 75%
app/resources/metric.py 59 26 16 4 52%
app/resources/specification.py 69 54 20 0 17%
app/resources/user.py 30 6 8 1 76%
------------------------------------------------------------------
TOTAL 561 190 95 18 61%