MCPcopy Create free account
hub / github.com/ceph/ceph / test_rgw_servicespec_parse

Function test_rgw_servicespec_parse

src/python-common/ceph/tests/test_service_spec.py:316–325  ·  view source on GitHub ↗
(realm, zone, frontend_type, raise_exception, msg)

Source from the content-addressed store, hash-verified

314 ('realm', 'zone', 'invalid-civetweb', True, '^Invalid rgw_frontend_type value'),
315 ])
316def test_rgw_servicespec_parse(realm, zone, frontend_type, raise_exception, msg):
317 spec = RGWSpec(service_id='foo',
318 rgw_realm=realm,
319 rgw_zone=zone,
320 rgw_frontend_type=frontend_type)
321 if raise_exception:
322 with pytest.raises(SpecValidationError, match=msg):
323 spec.validate()
324 else:
325 spec.validate()
326
327def test_osd_unmanaged():
328 osd_spec = {"placement": {"host_pattern": "*"},

Callers

nothing calls this directly

Calls 2

validateMethod · 0.95
RGWSpecClass · 0.90

Tested by

no test coverage detected