Skip to content
This repository has been archived by the owner on Oct 13, 2023. It is now read-only.

Commit

Permalink
remove invalid ut
Browse files Browse the repository at this point in the history
  • Loading branch information
Ximinhan committed Sep 8, 2022
1 parent 5fadc9f commit b3446e4
Showing 1 changed file with 0 additions and 18 deletions.
18 changes: 0 additions & 18 deletions tests/test_olm_bundle.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,21 +15,3 @@ def test_get_bundle_image_name_no_ose_prefix(self):
def test_get_bundle_image_name_with_ose_prefix(self):
obj = flexmock(OLMBundle(None, dry_run=False, brew_session=MagicMock()), bundle_name='ose-foo')
self.assertEqual(obj.get_bundle_image_name(), 'openshift/ose-foo')

def test_valid_subscription_label_is_present(self):
expected_key = 'operators.openshift.io/valid-subscription'
expected_val = '["My", "Subscription", "Label"]'

# mocking
config = {'update-csv': {'valid-subscription-label': expected_val}}
runtime = flexmock(
group_config=flexmock(operator_channel_stable='default'),
image_map={'myimage': flexmock(config=config)}
)
obj = flexmock(OLMBundle(runtime, dry_run=False, brew_session=MagicMock()), operator_name='myimage')
obj.channel = '...'
obj.package = '...'

self.assertIn(expected_key, obj.operator_framework_tags.keys())
actual_val = obj.operator_framework_tags[expected_key]
self.assertEqual(expected_val, actual_val)

0 comments on commit b3446e4

Please sign in to comment.