Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions docs/changelog.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
<!-- vale Canonical.007-Headings-sentence-case = NO -->

## [#213 Fix proxy setup]

- Fix proxy setup for image-relation joined hook.

## [#222 Add PPA for .NET backport during image building](https://github.com/canonical/github-runner-image-builder-operator/pull/222) (2026-05-22)

- Add .NET PPA in image building. This allows wider range of .NET version to be installed.
Expand Down
6 changes: 5 additions & 1 deletion tests/unit/test_image.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,11 @@ def test__on_image_relation_joined(
act: when _on_image_relation_joined hook is fired.
assert: update_relation_data is called.
"""
monkeypatch.setattr(state.BuilderConfig, "from_charm", MagicMock())
mock_build_config = MagicMock()
mock_build_config.proxy = None
monkeypatch.setattr(
state.BuilderConfig, "from_charm", MagicMock(return_value=mock_build_config)
)
monkeypatch.setattr(state.CloudsAuthConfig, "from_unit_relation_data", MagicMock())
monkeypatch.setattr(builder, "install_clouds_yaml", MagicMock())
monkeypatch.setattr(builder, "get_latest_images", MagicMock(return_value="test-id"))
Expand Down
Loading