Skip to content

Commit 7a8f150

Browse files
committed
Unit test to check configuration reading
1 parent 269fdec commit 7a8f150

1 file changed

Lines changed: 213 additions & 0 deletions

File tree

tests/unit/test_configuration.py

Lines changed: 213 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3205,6 +3205,219 @@ def test_score_multiplier_mapping_not_loaded() -> None:
32053205
},
32063206
"okp": {"rhokp_url": "xyzzy", "offline": True, "chunk_filter_query": None},
32073207
},
3208+
{
3209+
"name": "William Riley",
3210+
"service": {
3211+
"host": "Guy perform turn hundred college sometimes.",
3212+
"port": 976,
3213+
"base_url": None,
3214+
"auth_enabled": True,
3215+
"workers": 264,
3216+
"color_log": False,
3217+
"access_log": True,
3218+
"tls_config": {
3219+
"tls_certificate_path": None,
3220+
"tls_key_path": None,
3221+
"tls_key_password": None,
3222+
},
3223+
"root_path": "Know if board difference.",
3224+
"cors": {
3225+
"allow_origins": ["Wish garden where make middle."],
3226+
"allow_credentials": False,
3227+
"allow_methods": ["Challenge rule range beautiful compare. Ok picture"],
3228+
"allow_headers": ["Site build professor affect consider."],
3229+
},
3230+
},
3231+
"llama_stack": {
3232+
"url": None,
3233+
"api_key": "xyzzy",
3234+
"use_as_library_client": False,
3235+
"library_client_config_path": "Effect wonder century for.",
3236+
"timeout": 306,
3237+
},
3238+
"user_data_collection": {
3239+
"feedback_enabled": False,
3240+
"feedback_storage": "Watch argue issue these space may. Positive feel s",
3241+
"transcripts_enabled": False,
3242+
"transcripts_storage": "Thousand argue place reach.",
3243+
},
3244+
"database": {"sqlite": None, "postgres": None},
3245+
"mcp_servers": [
3246+
{
3247+
"name": "Patricia Moore",
3248+
"provider_id": "Quite official social necessary use.",
3249+
"url": "http://www.curry.com/",
3250+
"authorization_headers": {
3251+
"special": "Outside such just firm mention.",
3252+
"out": "Democrat mouth country author view.",
3253+
},
3254+
"headers": [
3255+
"Not report to road however up once shoulder. Stand",
3256+
"Writer nation various so within.",
3257+
"Goal democratic night simple treat cause marriage.",
3258+
],
3259+
"timeout": "xyzzy",
3260+
},
3261+
{
3262+
"name": "Kayla Lopez",
3263+
"provider_id": "Environmental card evening go wish foot.",
3264+
"url": "http://irwin-vang.com/",
3265+
"authorization_headers": {
3266+
"decade": "Manager military party just east growth. House add",
3267+
"foot": "Training probably including.",
3268+
"organization": "Care in live response member of discuss later.",
3269+
},
3270+
"headers": [
3271+
"Animal now effort tonight player after.",
3272+
"Various risk pressure social mean.",
3273+
],
3274+
"timeout": "xyzzy",
3275+
},
3276+
{
3277+
"name": "Katie Davis",
3278+
"provider_id": "Almost teacher itself property appear later style.",
3279+
"url": "https://hill.com/",
3280+
"authorization_headers": {"view": "Young something spend."},
3281+
"headers": [
3282+
"Purpose family good coach family beat area.",
3283+
"Somebody head agent language.",
3284+
],
3285+
"timeout": "xyzzy",
3286+
},
3287+
],
3288+
"authentication": {
3289+
"module": "Author someone behind.",
3290+
"skip_tls_verification": False,
3291+
"skip_for_health_probes": True,
3292+
"skip_for_metrics": True,
3293+
"k8s_cluster_api": None,
3294+
"k8s_ca_cert_path": None,
3295+
"jwk_config": None,
3296+
"api_key_config": None,
3297+
"rh_identity_config": None,
3298+
},
3299+
"authorization": {
3300+
"access_rules": [
3301+
{
3302+
"role": "Culture spend science site change local.",
3303+
"actions": ["xyzzy", "xyzzy", "xyzzy"],
3304+
},
3305+
{
3306+
"role": "Civil window house expert spend hope card dog.",
3307+
"actions": ["xyzzy", "xyzzy", "xyzzy"],
3308+
},
3309+
]
3310+
},
3311+
"customization": None,
3312+
"inference": {
3313+
"default_model": None,
3314+
"default_provider": "Ask center garden race thing.",
3315+
},
3316+
"conversation_cache": {
3317+
"type": None,
3318+
"memory": {"max_entries": 845},
3319+
"sqlite": None,
3320+
"postgres": None,
3321+
},
3322+
"byok_rag": [
3323+
{
3324+
"rag_id": "Charge herself where impact say billion.",
3325+
"rag_type": "Blood thus member soldier.",
3326+
"embedding_model": "Sound hotel save.",
3327+
"embedding_dimension": 922,
3328+
"vector_db_id": "Down simple suffer civil. Modern service scene pas",
3329+
"db_path": "Ten fall fine firm.",
3330+
"score_multiplier": 671.28,
3331+
},
3332+
{
3333+
"rag_id": "Include space evidence benefit loss skin.",
3334+
"rag_type": "Green anyone be.",
3335+
"embedding_model": "Focus clearly physical six.",
3336+
"embedding_dimension": 237,
3337+
"vector_db_id": "Company put eight.",
3338+
"db_path": "Step at let oil leave agreement this.",
3339+
"score_multiplier": 368.33,
3340+
},
3341+
],
3342+
"a2a_state": {
3343+
"sqlite": None,
3344+
"postgres": {
3345+
"host": "Ball drug fight place.",
3346+
"port": 273,
3347+
"db": "Like unit money every.",
3348+
"user": "Once offer fire loss one.",
3349+
"password": "XsI3UvH9%#V5",
3350+
"namespace": "House establish network.",
3351+
"ssl_mode": "Agree within describe have.",
3352+
"gss_encmode": "Give choose challenge away.",
3353+
"ca_cert_path": None,
3354+
},
3355+
},
3356+
"quota_handlers": {
3357+
"sqlite": {"db_path": "Speak maintain here among."},
3358+
"postgres": {
3359+
"host": "Him agree successful should.",
3360+
"port": 976,
3361+
"db": "In possible once food happy.",
3362+
"user": "Much military four.",
3363+
"password": "J58*k!chxA%R",
3364+
"namespace": "Ground instead tax seven True make industry.",
3365+
"ssl_mode": "Five so take continue.",
3366+
"gss_encmode": "Add piece you brother on.",
3367+
"ca_cert_path": "xyzzy",
3368+
},
3369+
"limiters": [
3370+
{
3371+
"type": "xyzzy",
3372+
"name": "Jonathan Clark",
3373+
"initial_quota": 720,
3374+
"quota_increase": 955,
3375+
"period": "Relationship the study whether try sell.",
3376+
},
3377+
{
3378+
"type": "xyzzy",
3379+
"name": "Robert Smith",
3380+
"initial_quota": 363,
3381+
"quota_increase": 907,
3382+
"period": "Later health agreement.",
3383+
},
3384+
{
3385+
"type": "xyzzy",
3386+
"name": "Emily Perry",
3387+
"initial_quota": 138,
3388+
"quota_increase": 495,
3389+
"period": "Middle day he result performance.",
3390+
},
3391+
],
3392+
"scheduler": {
3393+
"period": 564,
3394+
"database_reconnection_count": 904,
3395+
"database_reconnection_delay": 407,
3396+
},
3397+
"enable_token_history": True,
3398+
},
3399+
"azure_entra_id": None,
3400+
"rlsapi_v1": {"allow_verbose_infer": False, "quota_subject": "xyzzy"},
3401+
"splunk": {
3402+
"enabled": True,
3403+
"url": "https://www.thompson-wright.com/",
3404+
"token_path": None,
3405+
"index": None,
3406+
"source": "Entire wear several sit.",
3407+
"timeout": 402,
3408+
"verify_ssl": False,
3409+
},
3410+
"deployment_environment": "Wonder though writer allow instead.",
3411+
"rag": {
3412+
"inline": [
3413+
"Onto political artist.",
3414+
"Trip writer half. Amount south give parent.",
3415+
"We thought American exist. Nearly cell case partic",
3416+
],
3417+
"tool": ["School of book next man short responsibility able."],
3418+
},
3419+
"okp": {"rhokp_url": "xyzzy", "offline": True, "chunk_filter_query": None},
3420+
},
32083421
]
32093422

32103423

0 commit comments

Comments
 (0)