← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1508868] [NEW] Certain tests require network access to http://example.com

 

Public bug reported:

Following tests require networking and they actually request
http://example.com

    sed -i 's/test_get_image_data_http/noop/' glance/tests/unit/common/scripts/test_scripts_utils.py
    sed -i 's/test_set_image_data_http/noop/' glance/tests/unit/common/scripts/image_import/test_main.py
    sed -i 's/test_create_image_with_nonexistent_location_url/noop/' glance/tests/unit/v1/test_api.py
    sed -i 's/test_upload_image_http_nonexistent_location_url/noop/' glance/tests/unit/v1/test_api.py

Is that intentional (that unittest actually trigger a request?).

I'm packaging OpenStack for https://nixos.org and we don't allow
netowork access during testing phase.

** Affects: glance
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to Glance.
https://bugs.launchpad.net/bugs/1508868

Title:
  Certain tests require network access to http://example.com

Status in Glance:
  New

Bug description:
  Following tests require networking and they actually request
  http://example.com

      sed -i 's/test_get_image_data_http/noop/' glance/tests/unit/common/scripts/test_scripts_utils.py
      sed -i 's/test_set_image_data_http/noop/' glance/tests/unit/common/scripts/image_import/test_main.py
      sed -i 's/test_create_image_with_nonexistent_location_url/noop/' glance/tests/unit/v1/test_api.py
      sed -i 's/test_upload_image_http_nonexistent_location_url/noop/' glance/tests/unit/v1/test_api.py

  Is that intentional (that unittest actually trigger a request?).

  I'm packaging OpenStack for https://nixos.org and we don't allow
  netowork access during testing phase.

To manage notifications about this bug go to:
https://bugs.launchpad.net/glance/+bug/1508868/+subscriptions


Follow ups