Uploaded image for project: 'ListenBrainz'
  1. ListenBrainz
  2. LB-117

Add comprehensive submission/retrieval test

    • Icon: Task Task
    • Resolution: Fixed
    • Icon: Normal Normal
    • None
    • data store
    • None

      The LB codebase needs to have an example submission (or multiples) that test all the various data features that we allow and disallow in our submission system. We need tests that will ensure that the right data is accepted and the wrong data is rejected.

      The tests should also ensure that the submitted data is 100% intact when retrieved and that nothing gets lost. 

          [LB-117] Add comprehensive submission/retrieval test

          Robert Kaye added a comment -

          Added LB-148 so we can close this issue – most of the tests are now in place.

          Robert Kaye added a comment - Added LB-148 so we can close this issue – most of the tests are now in place.

          Param Singh added a comment - - edited

          I will try to keep a list of stuff to test in this comment. After it is comprehensive enough, I'll get to work on adding the tests.

          1. Number of tags should not be greater than 50.
          2. Listens should not be larger than 10240 characters.
          3. Submissions with no listen type should be rejected.
          4. Submissions of type `playing_now` and `listen` should not contain more than one listen in payload.
          5. Length of a tag must not be more than 64 characters.
          6. Track MBID in additional_info should be a valid UUID
          7. Any Artist MBIDs should also be valid UUIDs.

          Param Singh added a comment - - edited I will try to keep a list of stuff to test in this comment. After it is comprehensive enough, I'll get to work on adding the tests. Number of tags should not be greater than 50. Listens should not be larger than 10240 characters. Submissions with no listen type should be rejected. Submissions of type `playing_now` and `listen` should not contain more than one listen in payload. Length of a tag must not be more than 64 characters. Track MBID in additional_info should be a valid UUID Any Artist MBIDs should also be valid UUIDs.

            iliekcomputers Param Singh
            rob Robert Kaye
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                Version Package