(realm, zone, frontend_type, raise_exception, msg)
| 314 | ('realm', 'zone', 'invalid-civetweb', True, '^Invalid rgw_frontend_type value'), |
| 315 | ]) |
| 316 | def 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 | |
| 327 | def test_osd_unmanaged(): |
| 328 | osd_spec = {"placement": {"host_pattern": "*"}, |