-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow to match product versions from Koji build target
There is a new option for subject type definitions that allows Greenwave to "guess" multiple product versions from Koji build target for given Koji build. Example: --- !SubjectType id: koji_build is_koji_build: true product_version_from_koji_build_target: - match: '^(rhel-\d+\.\d+).*' product_version: '\1' - match: '^(rhel-\d+).*' product_version: '\1' Multiple product versions can now also be matched from subject identifier with `product_version_match`. JIRA: RHELWF-383
- Loading branch information
Showing
14 changed files
with
160 additions
and
108 deletions.
There are no files selected for viewing
This file contains 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 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 |
---|---|---|
@@ -1,8 +1,15 @@ | ||
# SPDX-License-Identifier: GPL-2.0+ | ||
|
||
import mock | ||
import pytest | ||
|
||
|
||
@pytest.fixture(autouse=True) | ||
def set_environment_variable(monkeypatch): | ||
monkeypatch.setenv('TEST', 'true') | ||
|
||
|
||
@pytest.fixture | ||
def koji_proxy(): | ||
mock_proxy = mock.Mock() | ||
with mock.patch('greenwave.resources.get_server_proxy', return_value=mock_proxy): | ||
yield mock_proxy |
This file contains 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 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 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 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 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 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 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 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
Oops, something went wrong.