@@ -526,29 +526,16 @@ fn test_fdb_dirty_flag() {
526526
527527#[ test]
528528#[ ignore = "requires FDB libraries" ]
529- fn test_fdb_config_methods ( ) {
529+ fn test_fdb_id_and_name ( ) {
530530 let tmpdir = tempfile:: tempdir ( ) . expect ( "failed to create temp dir" ) ;
531531 let config = create_test_config ( tmpdir. path ( ) ) ;
532532
533533 let fdb = Fdb :: from_yaml ( & config) . expect ( "failed to create FDB from YAML" ) ;
534534
535- // Test config()
536- let cfg = fdb. config ( ) ;
537- println ! (
538- "Config: schema_path={}, config_path={}" ,
539- cfg. schema_path, cfg. config_path
540- ) ;
541-
542- // Test id() and name()
543535 let id = fdb. id ( ) ;
544536 let name = fdb. name ( ) ;
545537 println ! ( "FDB id={id}, name={name}" ) ;
546538 assert ! ( !name. is_empty( ) , "expected non-empty FDB name" ) ;
547-
548- // Test config_has
549- // Note: available keys depend on the configuration
550- let has_type = fdb. config_has ( "type" ) ;
551- println ! ( "config_has('type') = {has_type}" ) ;
552539}
553540
554541#[ test]
@@ -960,14 +947,10 @@ spaces:
960947
961948 let fdb = Fdb :: from_yaml ( & config) . expect ( "failed to create FDB from YAML" ) ;
962949
963- // Verify config was parsed
950+ // Verify the FDB handle came up cleanly with the YAML we built.
964951 let name = fdb. name ( ) ;
965952 assert ! ( !name. is_empty( ) , "expected non-empty FDB name" ) ;
966953 println ! ( "FDB type/name: {name}" ) ;
967-
968- // Test config accessors
969- let has_type = fdb. config_has ( "type" ) ;
970- println ! ( "config_has('type') = {has_type}" ) ;
971954}
972955
973956#[ test]
@@ -1226,36 +1209,6 @@ fn test_fdb_control_lock_unlock() {
12261209 }
12271210}
12281211
1229- #[ test]
1230- #[ ignore = "requires FDB libraries" ]
1231- fn test_fdb_config_accessors ( ) {
1232- let tmpdir = tempfile:: tempdir ( ) . expect ( "failed to create temp dir" ) ;
1233- let config = create_test_config ( tmpdir. path ( ) ) ;
1234-
1235- let fdb = Fdb :: from_yaml ( & config) . expect ( "failed to create FDB from YAML" ) ;
1236-
1237- // Test config_string - try to get a string config value
1238- let type_str = fdb. config_string ( "type" ) ;
1239- println ! ( "config_string('type') = {type_str:?}" ) ;
1240-
1241- // Test config_int - returns None if key doesn't exist
1242- let some_int = fdb. config_int ( "nonexistent_key" ) ;
1243- assert ! ( some_int. is_none( ) , "nonexistent key should return None" ) ;
1244- println ! ( "config_int('nonexistent_key') = {some_int:?}" ) ;
1245-
1246- // Test config_bool - returns None if key doesn't exist
1247- let some_bool = fdb. config_bool ( "nonexistent_key" ) ;
1248- assert ! ( some_bool. is_none( ) , "nonexistent key should return None" ) ;
1249- println ! ( "config_bool('nonexistent_key') = {some_bool:?}" ) ;
1250-
1251- // Test config_has for various keys
1252- let has_type = fdb. config_has ( "type" ) ;
1253- let has_schema = fdb. config_has ( "schema" ) ;
1254- let has_nonexistent = fdb. config_has ( "definitely_not_a_key" ) ;
1255- println ! ( "config_has: type={has_type}, schema={has_schema}, nonexistent={has_nonexistent}" ) ;
1256- assert ! ( !has_nonexistent, "nonexistent key should return false" ) ;
1257- }
1258-
12591212#[ test]
12601213#[ ignore = "requires FDB libraries" ]
12611214fn test_fdb_enabled_identifiers ( ) {
0 commit comments