diff options
| author | Zuul <zuul@review.opendev.org> | 2026-12-01 21:08:57 +0000 |
|---|---|---|
| committer | Gerrit Code Review <review@openstack.org> | 2026-12-01 21:08:57 +0000 |
| commit | a4d22d6969f3c9f11ab22aa3fd914b449e128962 (patch) | |
| tree | 3524b88d1a9c066878aa3b98e974e51b4b62df64 /kolla/tests/test_methods.py | |
| parent | 7a550658e2a0f414d4337aa7b7d3b14d5c148d2e (diff) | |
| parent | 19ba94c42e3030693077b9c364f979a751e193f7 (diff) | |
| download | kolla-a4d22d6969f3c9f11ab22aa3fd914b449e128962.tar.gz kolla-a4d22d6969f3c9f11ab22aa3fd914b449e128962.zip | |
Merge "ceph: Upgrade to Umbrella"
Diffstat (limited to 'kolla/tests/test_methods.py')
| -rw-r--r-- | kolla/tests/test_methods.py | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/kolla/tests/test_methods.py b/kolla/tests/test_methods.py index 9b5dd212a..c4a44706e 100644 --- a/kolla/tests/test_methods.py +++ b/kolla/tests/test_methods.py @@ -57,7 +57,20 @@ class MethodsTest(base.TestCase): } result = methods.handle_repos(template_vars, ["ceph"], "enable") - expectCmd = "RUN dnf config-manager --enable centos-ceph-squid || true" + expectCmd = "RUN grep -rlF '[centos-ceph-umbrella]' " + expectCmd += "/etc/yum.repos.d/ 2>/dev/null | xargs -r rm -f && " + expectCmd += "echo '[centos-ceph-umbrella]' " + expectCmd += ">/etc/yum.repos.d/ceph.repo && " + expectCmd += "echo 'name=centos-ceph-umbrella' " + expectCmd += ">>/etc/yum.repos.d/ceph.repo && " + expectCmd += "echo 'enabled=1' " + expectCmd += ">>/etc/yum.repos.d/ceph.repo && " + expectCmd += "echo 'gpgkey=https://download.ceph.com/keys/" + expectCmd += "release.gpg' " + expectCmd += ">>/etc/yum.repos.d/ceph.repo && " + expectCmd += "echo 'baseurl=https://download.ceph.com/" + expectCmd += "rpm-umbrella/el10/$basearch' " + expectCmd += ">>/etc/yum.repos.d/ceph.repo" self.assertEqual(expectCmd, result) def test_enable_repos_rocky_arch(self): |
