Add bobcat:reef mapping

Signed-off-by: Peter Sabaini <peter.sabaini@canonical.com>
Change-Id: I042e3ce9d17e5060b8f1f46f877ef06d8d95613c
This commit is contained in:
Peter Sabaini 2023-09-19 14:40:45 +02:00 committed by Luciano Lo Giudice
parent 9efdf505b3
commit 48a2ce2fb9
2 changed files with 8 additions and 7 deletions

View File

@ -53,6 +53,7 @@ UCA_CODENAME_MAP = {
'yoga': 'quincy',
'zed': 'quincy',
'antelope': 'quincy',
'bobcat': 'reef',
}

View File

@ -303,13 +303,13 @@ class TestOSBaseCharm(CharmTestCase):
self.harness.charm.unit.status,
BlockedStatus)
self.os_utils.ows_check_services_running.assert_called_once_with(
['apache2', 'ks-api'], ports=[])
self.harness.charm.services(), ports=[])
def test_services(self):
self.harness.begin()
self.assertEqual(
self.harness.charm.services(),
['apache2', 'ks-api'])
set(self.harness.charm.services()),
set(['apache2', 'ks-api']))
def test_pre_series_upgrade(self):
self.os_utils.manage_payload_services.return_value = ('a', 'b')
@ -321,7 +321,7 @@ class TestOSBaseCharm(CharmTestCase):
self.assertTrue(self.harness.charm._stored.is_paused)
self.os_utils.manage_payload_services.assert_called_once_with(
'pause',
services=['apache2', 'ks-api'],
services=self.harness.charm.services(),
charm_func=None)
def test_post_series_upgrade(self):
@ -334,7 +334,7 @@ class TestOSBaseCharm(CharmTestCase):
self.assertFalse(self.harness.charm._stored.is_paused)
self.os_utils.manage_payload_services.assert_called_once_with(
'resume',
services=['apache2', 'ks-api'],
services=self.harness.charm.services(),
charm_func=None)
def test_pause(self):
@ -345,7 +345,7 @@ class TestOSBaseCharm(CharmTestCase):
self.assertTrue(self.harness.charm._stored.is_paused)
self.os_utils.manage_payload_services.assert_called_once_with(
'pause',
services=['apache2', 'ks-api'],
services=self.harness.charm.services(),
charm_func=None)
def test_resume(self):
@ -356,7 +356,7 @@ class TestOSBaseCharm(CharmTestCase):
self.assertFalse(self.harness.charm._stored.is_paused)
self.os_utils.manage_payload_services.assert_called_once_with(
'resume',
services=['apache2', 'ks-api'],
services=self.harness.charm.services(),
charm_func=None)
def test_mandatory_config(self):