Skip to content

Commit

Permalink
Remove TUV from supported target channels
Browse files Browse the repository at this point in the history
TUS (mispelled as TUV) is not suported channel for inplace upgrade,
removed from the code.

Jira: OAMG-7288
  • Loading branch information
mkluson authored and pirat89 committed Oct 16, 2023
1 parent d74ff90 commit 84d6ce3
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion commands/preupgrade/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
help='Enable specified repository. Can be used multiple times.')
@command_opt('channel',
help='Set preferred channel for the IPU target.',
choices=['ga', 'tuv', 'e4s', 'eus', 'aus'],
choices=['ga', 'e4s', 'eus', 'aus'],
value_type=str.lower) # This allows the choices to be case insensitive
@command_opt('iso', help='Use provided target RHEL installation image to perform the in-place upgrade.')
@command_opt('target', choices=command_utils.get_supported_target_versions(),
Expand Down
2 changes: 1 addition & 1 deletion commands/upgrade/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
help='Enable specified repository. Can be used multiple times.')
@command_opt('channel',
help='Set preferred channel for the IPU target.',
choices=['ga', 'tuv', 'e4s', 'eus', 'aus'],
choices=['ga', 'e4s', 'eus', 'aus'],
value_type=str.lower) # This allows the choices to be case insensitive
@command_opt('iso', help='Use provided target RHEL installation image to perform the in-place upgrade.')
@command_opt('target', choices=command_utils.get_supported_target_versions(),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -614,14 +614,14 @@ def test_get_expected_target_pesid_repos_with_priority_channel_set(monkeypatch):
make_pesid_repo('pesid1', '7', 'pesid1-repoid-ga'),
make_pesid_repo('pesid2', '8', 'pesid2-repoid-ga'),
make_pesid_repo('pesid2', '8', 'pesid2-repoid-eus', channel='eus'),
make_pesid_repo('pesid2', '8', 'pesid2-repoid-tuv', channel='tuv'),
make_pesid_repo('pesid2', '8', 'pesid2-repoid-aus', channel='aus'),
make_pesid_repo('pesid3', '8', 'pesid3-repoid-ga')
]
)

handler = RepoMapDataHandler(repositories_mapping)
# Set defaults to verify that the priority channel is not overwritten by defaults
handler.set_default_channels(['tuv', 'ga'])
handler.set_default_channels(['aus', 'ga'])
target_repoids = handler.get_expected_target_pesid_repos(['pesid1-repoid-ga'])

fail_description = 'get_expected_target_peid_repos does not correctly respect preferred channel.'
Expand Down
2 changes: 1 addition & 1 deletion repos/system_upgrade/common/libraries/config/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
from leapp.libraries.stdlib import api

# The devel variable for target product channel can also contain 'beta'
SUPPORTED_TARGET_CHANNELS = {'ga', 'tuv', 'e4s', 'eus', 'aus'}
SUPPORTED_TARGET_CHANNELS = {'ga', 'e4s', 'eus', 'aus'}
CONSUMED_DATA_STREAM_ID = '2.0'


Expand Down
2 changes: 1 addition & 1 deletion repos/system_upgrade/common/models/repositoriesmap.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ class PESIDRepositoryEntry(Model):
too.
"""

channel = fields.StringEnum(['ga', 'tuv', 'e4s', 'eus', 'aus', 'beta'])
channel = fields.StringEnum(['ga', 'e4s', 'eus', 'aus', 'beta'])
"""
The 'channel' of the repository.
Expand Down

0 comments on commit 84d6ce3

Please sign in to comment.