aboutsummaryrefslogtreecommitdiff
path: root/kolla/tests
diff options
context:
space:
mode:
Diffstat (limited to 'kolla/tests')
-rw-r--r--kolla/tests/test_methods.py15
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):