Uploaded image for project: 'Data Management'
  1. Data Management
  2. DM-12964

Implement tests for the SQuaSH REST API

    XMLWordPrintable

    Details

    • Type: Story
    • Status: Done
    • Resolution: Done
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None

      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

            Activity

            No builds found.
            afausti Angelo Fausti created issue -
            afausti Angelo Fausti made changes -
            Field Original Value New Value
            Epic Link DM-10181 [ 31811 ]
            afausti Angelo Fausti made changes -
            Link This issue is blocked by DM-9741 [ DM-9741 ]
            afausti Angelo Fausti made changes -
            Status To Do [ 10001 ] In Progress [ 3 ]
            Hide
            afausti Angelo Fausti added a comment -

            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%
            

            Show
            afausti Angelo Fausti added a comment - 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%
            afausti Angelo Fausti made changes -
            Resolution Done [ 10000 ]
            Status In Progress [ 3 ] Done [ 10002 ]
            afausti Angelo Fausti made changes -
            Epic Link DM-10181 [ 31811 ] DM-12787 [ 36405 ]

              People

              Assignee:
              afausti Angelo Fausti
              Reporter:
              afausti Angelo Fausti
              Watchers:
              Angelo Fausti
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Jenkins

                  No builds found.