Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SIMPLE-5729 uploading image files now keeps the extension, removed old deprecated parameter from upload_image_file #50

Conversation

daniel-valent
Copy link
Collaborator

@daniel-valent daniel-valent commented Aug 15, 2023

So I thought there were some inefficiencies in upload_image_file... And when I fixed them, all related test died. So never mind that. Don't touch the Path related things, something about the way they are imported makes them fragile.

E: Found what the problem was - we are testing Windows paths on Linux, so we have to use PureWindowsPath instead of WindowsPath in tests, which means no interaction with system, which means no Path.exists(). Means that my changes worked fine, but broke tests.

@daniel-valent daniel-valent self-assigned this Aug 15, 2023
@daniel-valent daniel-valent changed the base branch from dev to main-2.6.1 August 15, 2023 12:51
@daniel-valent daniel-valent force-pushed the SIMPLE-5729-virl2-client-s-upload_image_file-strips-the-.qcow2-extension branch 5 times, most recently from 3ba1795 to 6a43140 Compare August 18, 2023 09:18
@daniel-valent
Copy link
Collaborator Author

Tests pass, every seems (finally) ready to merge, unless there are further comments.

…d deprecated parameter from upload_image_file

SIMPLE-5729 improved image upload unit test, now checks the API call
@tmikuska tmikuska force-pushed the SIMPLE-5729-virl2-client-s-upload_image_file-strips-the-.qcow2-extension branch from 27535fb to 597929f Compare August 18, 2023 19:48
@tmikuska tmikuska merged commit 5567315 into main-2.6.1 Aug 18, 2023
@tmikuska tmikuska deleted the SIMPLE-5729-virl2-client-s-upload_image_file-strips-the-.qcow2-extension branch August 18, 2023 19:49
tmikuska pushed a commit that referenced this pull request Aug 18, 2023
…d deprecated parameter from upload_image_file (#50)

SIMPLE-5729 improved image upload unit test, now checks the API call
tmikuska added a commit that referenced this pull request Sep 4, 2023
* Bumped version to 2.6.1

Updated vulnerable packages

* SIMPLE-5729 uploading image files now keeps the extension, removed old deprecated parameter from upload_image_file (#50)

SIMPLE-5729 improved image upload unit test, now checks the API call

* Updated vulnerable gitpython and aiohttp, regenerated test requirements

---------

Co-authored-by: Daniel Valent <dvalent@cisco.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants