Repository navigation
Tmp test 2 #638
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
Closed
Closed
Tmp test 2 #638
Changes from all commits
Commits
Show all changes
25 commits
Select commit
Hold shift + click to select a range
ceb3256
Use CI runners for integration tests
yhaliaw 0e09875
Change end 2 end test to use pfe-ci runners
yhaliaw 98fd6a3
Update the microk8s version
yhaliaw 41524ec
Use tmp integration tests args for now
yhaliaw b84fd3d
Test pfe-ci runners
yhaliaw 71c1fcb
Merge branch 'main' into ci-runners
yhaliaw b0f00c8
Disable some workflow during testing
yhaliaw 2476ad1
Debug
yhaliaw f5c675d
Debug
yhaliaw 9381880
Debug
yhaliaw c803eb0
Debug
yhaliaw 1778af3
Using a temp fix branch of image builder
yhaliaw a07bd75
Test with image builder revision 111
yhaliaw eb5804f
Fix revision arg in integration test
yhaliaw fd3acce
Change the test image builder revision
yhaliaw 6c43ca0
Update the image builder fix
yhaliaw 422da6e
Try fix for the image building proxy config
yhaliaw 6dc69d9
Test image builder fix
yhaliaw b1f7e66
Test new version of image builder
yhaliaw 815fac9
Fix image builder
yhaliaw f97cc50
Try temp fix
yhaliaw 8428dfa
test
yhaliaw ddf88c8
Test fix with rebuild
yhaliaw 7cc8d2c
Trigger workflow
yhaliaw 6aa4882
Test
yhaliaw File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -4,3 +4,6 @@ kombu==5.* | |
| pygithub | ||
| pymongo==4.* | ||
| tenacity==9.1.2 | ||
| # TODO: Remove | ||
| openstacksdk==4.5.0 | ||
| requests==2.32.5 | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,23 @@ | ||
| import requests | ||
| from openstack.connection import Connection | ||
|
|
||
| def test_openstack(openstack_connection: Connection): | ||
| output_filename = "test.image" | ||
|
|
||
| request = requests.get( | ||
| "https://cloud-images.ubuntu.com/jammy/current/jammy-server-cloudimg-amd64.img", | ||
| timeout=60 * 20, | ||
| stream=True, | ||
| ) # nosec: B310, B113 | ||
|
|
||
| with open(output_filename, "wb") as file: | ||
| for chunk in request.iter_content(1024 * 1024): # 1 MB chunks | ||
| file.write(chunk) | ||
|
|
||
| openstack_connection.create_image( | ||
| name="tmp_test", | ||
| filename=output_filename, | ||
| properties={"architecture": "amd64"}, | ||
| allow_duplicates=True, | ||
| wait=True, | ||
| ) | ||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.