Uploaded image for project: 'Automation Hub'
  1. Automation Hub
  2. AAH-2601

Improve tests so that we get all distributions and not only the first 100

    • Icon: Task Task
    • Resolution: Unresolved
    • Icon: Undefined Undefined
    • None
    • None
    • QE
    • None
    • False
    • Hide

      None

      Show
      None
    • False

      https://github.com/ansible/galaxy_ng/blob/master/galaxy_ng/tests/integration/api/test_ui_paths.py#L168

       

      in this test we make this request 

      _ui/v1/distributions/?limit=1000

      but the limit is too high (max is 100) so we are not seeing all distributions available

      later in the test, when we try to assert the existence of rh-certified distribution it fails because it appears on a different page. This is only reproducible when the whole test suite is run multiple times against the same hub instance, because a lot of test data is created every time.

      We need to improve the test so that all distributions are retrieved and not only the first 100.

            Unassigned Unassigned
            ctorrens@redhat.com Christian Torrens
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: