harvester / tests

Harvester test cases
Apache License 2.0
10 stars 31 forks source link

Add TestImageWithStorageNetwork #1395

Closed albinsun closed 2 months ago

albinsun commented 2 months ago

Which issue(s) this PR fixes:

Issue harvester/tests#1083

What this PR does / why we need it:

  1. Add test_1_images.py::TestImageWithStorageNetwork to test image operations within storage-network context, includes:
    • create_image_by_file
    • download_image
    • delete_image
  2. Set raise_on_status=False on session retry_strategy to let requests return 5XX response instead of Max retries exceeded ... error for handy testing.

Special notes for your reviewer:

  1. Use small size fake_image_file fixture to test both upload and download quickly.

Additional documentation or context

Positive Tests

Negtive Tests