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

Add XML tests for Unit and Description fields

    XMLWordPrintable

    Details

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

      Description

      Add tests on ts_xml for <Unit> and <Description> fields, in accordance with https://confluence.lsstcorp.org/display/LTS/SAL+XML+Unit+Definition+-+Discussion.  Also, add tests for XML Version; see VERSION file in the repo.

        Attachments

          Activity

          Show
          rbovill Rob Bovill added a comment - - edited Added parameter Unit tests.  See https://github.com/lsst-ts/robotframework_ts_xml/commit/a6eeea6c218e700ff8d052a7eb4849be14ac19be   And handling of dimensionless parameters: https://github.com/lsst-ts/robotframework_ts_xml/commit/6f5306c95637e9f0e7d50b2100a25aed1bd991a9
          Hide
          rbovill Rob Bovill added a comment -
          Show
          rbovill Rob Bovill added a comment - Added tests for Attribute/Parameter Descriptions: https://github.com/lsst-ts/robotframework_ts_xml/commit/52d5afa30ef1e9f5a5804b28bdbdea3cf8e383fb
          Hide
          rbovill Rob Bovill added a comment -

          While I have added these tests, I have not yet pushed them to the Jenkins build, as we still need to announce the changes and give people a chance to make the updates.

          Show
          rbovill Rob Bovill added a comment - While I have added these tests, I have not yet pushed them to the Jenkins build, as we still need to announce the changes and give people a chance to make the updates.
          Show
          rbovill Rob Bovill added a comment - Here are the Unit test scripts: https://github.com/lsst-ts/robotframework_ts_xml/blob/units_valid/Validate_Units.robot https://github.com/lsst-ts/robotframework_ts_xml/blob/units_valid/scripts/Units.py https://github.com/lsst-ts/robotframework_ts_xml/blob/units_valid/Unit_Validator.py   Here are the attribute description tests: https://github.com/lsst-ts/robotframework_ts_xml/blob/units_valid/Validate_Attribute_Descriptions.robot https://github.com/lsst-ts/robotframework_ts_xml/blob/units_valid/scripts/Attribute_Description.py  
          Hide
          rbovill Rob Bovill added a comment -

          This work is currently in a branch;

          https://github.com/lsst-ts/robotframework_ts_xml/tree/units_valid

          And will be pushed to master once the new standard is announced and people have a chance to update their XMLs accordingly.

          Show
          rbovill Rob Bovill added a comment - This work is currently in a branch; https://github.com/lsst-ts/robotframework_ts_xml/tree/units_valid And will be pushed to master once the new standard is announced and people have a chance to update their XMLs accordingly.
          Hide
          aheyer Andrew Heyer [X] (Inactive) added a comment -

          Code reviewed, awaiting to be merged and view the results of the tests. The scripts were ran locally by Rob, they run however many failures due to XML not being updated, XML to be updated by developers.

          Show
          aheyer Andrew Heyer [X] (Inactive) added a comment - Code reviewed, awaiting to be merged and view the results of the tests. The scripts were ran locally by Rob, they run however many failures due to XML not being updated, XML to be updated by developers.
          Hide
          rbovill Rob Bovill added a comment -

          Task complete.

          Show
          rbovill Rob Bovill added a comment - Task complete.

            People

            Assignee:
            rbovill Rob Bovill
            Reporter:
            rbovill Rob Bovill
            Reviewers:
            Andrew Heyer [X] (Inactive)
            Watchers:
            Andrew Heyer [X] (Inactive), Rob Bovill
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Jenkins

                No builds found.