]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
mgr/cephadm: adapting python-common UT to the spec changes
authorRedouane Kachach <rkachach@ibm.com>
Tue, 12 Aug 2025 15:29:53 +0000 (17:29 +0200)
committerRedouane Kachach <rkachach@ibm.com>
Sat, 6 Sep 2025 21:39:39 +0000 (23:39 +0200)
Signed-off-by: Redouane Kachach <rkachach@ibm.com>
src/python-common/ceph/tests/test_service_spec.py

index 0c5cd313013c6ec5b62914866d97141f7a6ad585..89b608f1314aa5b783ba4fbd181a1c51f711ffba 100644 (file)
@@ -335,6 +335,7 @@ networks:
 - 10.0.0.0/8
 - 192.168.0.0/16
 spec:
+  certificate_source: cephadm-signed
   rgw_exit_timeout_secs: 60
   rgw_frontend_type: civetweb
   rgw_realm: default-rgw-realm
@@ -358,7 +359,9 @@ spec:
 service_type: alertmanager
 service_name: alertmanager
 spec:
+  certificate_source: cephadm-signed
   port: 1234
+  ssl: true
   user_data:
     default_webhook_urls:
     - foo
@@ -367,16 +370,20 @@ service_type: grafana
 service_name: grafana
 spec:
   anonymous_access: true
+  certificate_source: cephadm-signed
   port: 1234
   protocol: https
+  ssl: true
 ---
 service_type: grafana
 service_name: grafana
 spec:
   anonymous_access: true
+  certificate_source: cephadm-signed
   initial_admin_password: secure
   port: 1234
   protocol: https
+  ssl: true
 ---
 service_type: ingress
 service_id: rgw.foo
@@ -388,6 +395,7 @@ placement:
   - host3
 spec:
   backend_service: rgw.foo
+  certificate_source: cephadm-signed
   first_virtual_router_id: 50
   frontend_port: 8080
   monitor_port: 8081
@@ -414,6 +422,7 @@ spec:
   api_password: admin
   api_port: 5000
   api_user: admin
+  certificate_source: cephadm-signed
   pool: pool
   trusted_ip_list:
   - ::1
@@ -496,8 +505,10 @@ placement:
   count: 1
 spec:
   anonymous_access: false
+  certificate_source: cephadm-signed
   initial_admin_password: password
   protocol: https
+  ssl: true
 """.split('---\n'))
 def test_yaml(y):
     data = yaml.safe_load(y)