diff --git a/tests/unit/test_configuration.py b/tests/unit/test_configuration.py index ae8637a27..6d69f1de5 100644 --- a/tests/unit/test_configuration.py +++ b/tests/unit/test_configuration.py @@ -2797,6 +2797,414 @@ def test_score_multiplier_mapping_not_loaded() -> None: }, "okp": {"rhokp_url": None, "offline": False, "chunk_filter_query": None}, }, + { + "name": "Ruth Davidson", + "service": { + "host": "Owner key exist last.", + "port": 606, + "base_url": None, + "auth_enabled": False, + "workers": 350, + "color_log": True, + "access_log": True, + "tls_config": { + "tls_certificate_path": "xyzzy", + "tls_key_path": None, + "tls_key_password": "xyzzy", + }, + "root_path": "Vote help need quickly.", + "cors": { + "allow_origins": [ + "Already pressure through away.", + "Religious type list.", + "Fish floor glass land.", + ], + "allow_credentials": True, + "allow_methods": ["Player project anyone century group save represent"], + "allow_headers": [ + "End chance last natural million.", + "Produce administration effort ask.", + "Whatever show material.", + ], + }, + }, + "llama_stack": { + "url": None, + "api_key": "xyzzy", + "use_as_library_client": True, + "library_client_config_path": None, + "timeout": 520, + }, + "user_data_collection": { + "feedback_enabled": True, + "feedback_storage": None, + "transcripts_enabled": True, + "transcripts_storage": None, + }, + "database": { + "sqlite": {"db_path": "Pull owner night machine artist especially."}, + "postgres": { + "host": "Run feel near matter sense. Just arm thought.", + "port": 129, + "db": "Girl number writer.", + "user": "Back participant present prevent.", + "password": "*iHe0lRhsA%G", + "namespace": "Heavy industry sound than capital high.", + "ssl_mode": "Left exist travel somebody four can policy candida", + "gss_encmode": "Be machine buy guy we.", + "ca_cert_path": None, + }, + }, + "mcp_servers": [ + { + "name": "Regina Trujillo", + "provider_id": "Clear account voice rather if.", + "url": "https://www.stanley.com/", + "authorization_headers": { + "apply": "Accept practice great.", + "where": "Building suffer fear. Age True rule seat radio hus", + }, + "headers": ["Audience age decide both."], + "timeout": "xyzzy", + }, + { + "name": "Michele Forbes", + "provider_id": "Scientist consider state side line.", + "url": "http://smith.com/", + "authorization_headers": { + "world": "Put final foreign air address each mission." + }, + "headers": [ + "Summer current close.", + "Must camera when most. Left water information four", + "Detail find bring lead change same simple.", + ], + "timeout": "xyzzy", + }, + ], + "authentication": { + "module": "Per hope building others front between.", + "skip_tls_verification": True, + "skip_for_health_probes": True, + "skip_for_metrics": True, + "k8s_cluster_api": "xyzzy", + "k8s_ca_cert_path": "xyzzy", + "jwk_config": None, + "api_key_config": {"api_key": "xyzzy"}, + "rh_identity_config": None, + }, + "authorization": None, + "customization": None, + "inference": { + "default_model": "Five age short.", + "default_provider": "Ok administration cup film.", + }, + "conversation_cache": { + "type": "xyzzy", + "memory": None, + "sqlite": None, + "postgres": { + "host": "Deal raise everything.", + "port": 193, + "db": "Opportunity agency capital theory itself big case.", + "user": "Value themselves color country. Newspaper meet buy", + "password": "1oBsK^NVvDV*", + "namespace": "Explain drop partner American director.", + "ssl_mode": "Environment coach station.", + "gss_encmode": "Manager from police player Democrat surface descri", + "ca_cert_path": None, + }, + }, + "byok_rag": [ + { + "rag_id": "Raise real rather walk product against.", + "rag_type": "Whose mind serve public character letter.", + "embedding_model": "Miss act loss camera.", + "embedding_dimension": 276, + "vector_db_id": "Return generation beat.", + "db_path": "Discover professional really group.", + "score_multiplier": 546.8, + }, + { + "rag_id": "Those sit there reason.", + "rag_type": "Keep third nothing throw.", + "embedding_model": "Like movie lead since traditional for daughter. Re", + "embedding_dimension": 148, + "vector_db_id": "Sure statement only authority.", + "db_path": "Top social suggest she yourself heavy. Use low bud", + "score_multiplier": 623.44, + }, + { + "rag_id": "Ability who manager several.", + "rag_type": "About ago spend poor event.", + "embedding_model": "Be energy lead.", + "embedding_dimension": 14, + "vector_db_id": "Region behind law affect note.", + "db_path": "View within able over sit. Part eat among appear.", + "score_multiplier": 306.05, + }, + ], + "a2a_state": { + "sqlite": {"db_path": "Air pretty Democrat husband make travel statement."}, + "postgres": { + "host": "Laugh community return education across join.", + "port": 836, + "db": "That cause old thing type customer scene.", + "user": "Care bill paper almost if.", + "password": "^y5jHqyZ6AhD", + "namespace": None, + "ssl_mode": "Third wish amount get full.", + "gss_encmode": "Generation notice item order minute food seven roc", + "ca_cert_path": None, + }, + }, + "quota_handlers": { + "sqlite": None, + "postgres": None, + "limiters": [ + { + "type": "xyzzy", + "name": "Ashley Weaver", + "initial_quota": 998, + "quota_increase": 711, + "period": "Range trade what suddenly seek table million.", + }, + { + "type": "xyzzy", + "name": "Angela Thompson", + "initial_quota": 187, + "quota_increase": 906, + "period": "Forget scientist address manage research probably.", + }, + ], + "scheduler": { + "period": 431, + "database_reconnection_count": 135, + "database_reconnection_delay": 153, + }, + "enable_token_history": False, + }, + "azure_entra_id": None, + "rlsapi_v1": {"allow_verbose_infer": True, "quota_subject": None}, + "splunk": None, + "deployment_environment": "Second window action enter until very low provide.", + "rag": { + "inline": [ + "Consider once budget author trade federal.", + "Knowledge the option positive. Court its effect me", + "Add these care drive want and.", + ], + "tool": ["Guess know picture."], + }, + "okp": { + "rhokp_url": "xyzzy", + "offline": False, + "chunk_filter_query": "Much when find smile try.", + }, + }, + { + "name": "Thomas Werner", + "service": { + "host": "Pick response must why resource wish physical.", + "port": 541, + "base_url": "Job foot believe not.", + "auth_enabled": False, + "workers": 824, + "color_log": False, + "access_log": True, + "tls_config": { + "tls_certificate_path": "xyzzy", + "tls_key_path": None, + "tls_key_password": "xyzzy", + }, + "root_path": "Car become want several share live. What film do q", + "cors": { + "allow_origins": [ + "Size hear term writer.", + "Appear class professor trial father public.", + "Stock prepare themselves under see.", + ], + "allow_credentials": True, + "allow_methods": [ + "Drive generation save tough expert.", + "You gas bring character.", + ], + "allow_headers": ["Form figure letter far."], + }, + }, + "llama_stack": { + "url": "https://murphy-thomas.com/", + "api_key": None, + "use_as_library_client": False, + "library_client_config_path": None, + "timeout": 521, + }, + "user_data_collection": { + "feedback_enabled": True, + "feedback_storage": None, + "transcripts_enabled": False, + "transcripts_storage": "Measure stop in whole store our.", + }, + "database": { + "sqlite": {"db_path": "Hard much mind member career talk all effort."}, + "postgres": { + "host": "Both positive True case.", + "port": 241, + "db": "Conference interest picture alone cultural agree e", + "user": "Interesting president structure yet develop ready ", + "password": "^jS4^DpZ^6KE", + "namespace": None, + "ssl_mode": "Feeling recognize seat often crime. People step he", + "gss_encmode": "Mother finally among attorney citizen.", + "ca_cert_path": "xyzzy", + }, + }, + "mcp_servers": [ + { + "name": "Alyssa Parks", + "provider_id": "Turn listen feel send inside party.", + "url": "https://martin-lee.com/", + "authorization_headers": {"discuss": "Which fly instead picture."}, + "headers": [ + "Small foot seven inside reality require bed.", + "Born yard religious focus effect.", + ], + "timeout": None, + }, + { + "name": "Jacob Miller", + "provider_id": "Hair because culture foreign name crime.", + "url": "http://www.brown.com/", + "authorization_headers": { + "road": "Book kid vote catch change discussion word. Mother" + }, + "headers": [ + "Speech its right watch program.", + "Or water control some.", + ], + "timeout": "xyzzy", + }, + ], + "authentication": { + "module": "College important personal draw pay room.", + "skip_tls_verification": False, + "skip_for_health_probes": True, + "skip_for_metrics": False, + "k8s_cluster_api": "xyzzy", + "k8s_ca_cert_path": None, + "jwk_config": None, + "api_key_config": {"api_key": "xyzzy"}, + "rh_identity_config": { + "required_entitlements": None, + "max_header_size": 850, + }, + }, + "authorization": None, + "customization": { + "profile_path": None, + "disable_query_system_prompt": True, + "disable_shield_ids_override": False, + "system_prompt_path": "xyzzy", + "system_prompt": None, + "agent_card_path": "xyzzy", + "agent_card_config": None, + "custom_profile": "xyzzy", + }, + "inference": {"default_model": None, "default_provider": None}, + "conversation_cache": { + "type": "xyzzy", + "memory": {"max_entries": 964}, + "sqlite": {"db_path": "Suggest gun standard fast note stay their."}, + "postgres": None, + }, + "byok_rag": [ + { + "rag_id": "Hope enough nature. Forward season agreement espec", + "rag_type": "Everyone finish task worry little we.", + "embedding_model": "Third choice enter blue baby behind its.", + "embedding_dimension": 514, + "vector_db_id": "Board how fight.", + "db_path": "Black can heavy write home.", + "score_multiplier": 817.0, + }, + { + "rag_id": "Fish medical really owner different carry.", + "rag_type": "Order window meeting feel.", + "embedding_model": "Occur international consumer.", + "embedding_dimension": 912, + "vector_db_id": "Full tell us century development network scene spe", + "db_path": "Today boy kind key center Mr. Contain reduce coach", + "score_multiplier": 233.12, + }, + { + "rag_id": "Note dog the audience work. We though name.", + "rag_type": "Bad career deep affect.", + "embedding_model": "Budget much see ask.", + "embedding_dimension": 939, + "vector_db_id": "South positive might film control peace seem.", + "db_path": "Go for can player camera.", + "score_multiplier": 268.06, + }, + ], + "a2a_state": {"sqlite": None, "postgres": None}, + "quota_handlers": { + "sqlite": {"db_path": "Suffer best free prove quickly to degree."}, + "postgres": None, + "limiters": [ + { + "type": "xyzzy", + "name": "Thomas Cross", + "initial_quota": 813, + "quota_increase": 472, + "period": "Per explain form sit morning.", + }, + { + "type": "xyzzy", + "name": "Tamara Gregory", + "initial_quota": 666, + "quota_increase": 519, + "period": "Player wind eat during.", + }, + { + "type": "xyzzy", + "name": "David Barton", + "initial_quota": 247, + "quota_increase": 590, + "period": "Around whole science.", + }, + ], + "scheduler": { + "period": 733, + "database_reconnection_count": 815, + "database_reconnection_delay": 481, + }, + "enable_token_history": False, + }, + "azure_entra_id": None, + "rlsapi_v1": {"allow_verbose_infer": True, "quota_subject": None}, + "splunk": { + "enabled": False, + "url": "https://harris.com/", + "token_path": None, + "index": "Read seem event.", + "source": "Thus difficult including notice cover. Conference ", + "timeout": 493, + "verify_ssl": True, + }, + "deployment_environment": "Maybe really go court.", + "rag": { + "inline": [ + "Without rock staff have campaign.", + "Particular her six.", + "These where I product.", + ], + "tool": [ + "Kind ability hope way.", + "Mean hot pressure onto purpose however.", + ], + }, + "okp": {"rhokp_url": "xyzzy", "offline": True, "chunk_filter_query": None}, + }, ] @@ -2804,5 +3212,7 @@ def test_score_multiplier_mapping_not_loaded() -> None: def test_init_from_dict_fake_data(config_dict: dict[str, Any]) -> None: """Test the configuration initialization from dictionary with config values.""" with pytest.raises((ValueError, InvalidConfigurationError)): + # try to initialize the app config and load configuration from a Python + # dictionary cfg = AppConfig() cfg.init_from_dict(config_dict)