Skip to content

Commit 1dbb95b

Browse files
committed
Second unit test to check configuration reading
1 parent 7a8f150 commit 1dbb95b

1 file changed

Lines changed: 222 additions & 0 deletions

File tree

tests/unit/test_configuration.py

Lines changed: 222 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3418,6 +3418,228 @@ def test_score_multiplier_mapping_not_loaded() -> None:
34183418
},
34193419
"okp": {"rhokp_url": "xyzzy", "offline": True, "chunk_filter_query": None},
34203420
},
3421+
{
3422+
"name": "Rodney Scott",
3423+
"service": {
3424+
"host": "Account blue each real child guy. Thing tree expec",
3425+
"port": 481,
3426+
"base_url": "Learn development choice matter.",
3427+
"auth_enabled": True,
3428+
"workers": 106,
3429+
"color_log": True,
3430+
"access_log": True,
3431+
"tls_config": {
3432+
"tls_certificate_path": "xyzzy",
3433+
"tls_key_path": None,
3434+
"tls_key_password": None,
3435+
},
3436+
"root_path": "Foot anything coach window return wife.",
3437+
"cors": {
3438+
"allow_origins": ["Option table world friend.", "Maybe reality want."],
3439+
"allow_credentials": True,
3440+
"allow_methods": [
3441+
"Article resource skill include. Scene center huge ",
3442+
"Maintain home newspaper fish.",
3443+
"Smile yourself make career.",
3444+
],
3445+
"allow_headers": [
3446+
"Writer change building brother test.",
3447+
"Draw less customer with data product.",
3448+
"Mrs however purpose so performance.",
3449+
],
3450+
},
3451+
},
3452+
"llama_stack": {
3453+
"url": "http://willis-jensen.com/",
3454+
"api_key": "xyzzy",
3455+
"use_as_library_client": None,
3456+
"library_client_config_path": None,
3457+
"timeout": 365,
3458+
},
3459+
"user_data_collection": {
3460+
"feedback_enabled": True,
3461+
"feedback_storage": None,
3462+
"transcripts_enabled": True,
3463+
"transcripts_storage": None,
3464+
},
3465+
"database": {
3466+
"sqlite": None,
3467+
"postgres": {
3468+
"host": "Positive once activity scientist possible rise art",
3469+
"port": 991,
3470+
"db": "Would indeed another defense song.",
3471+
"user": "One finally size product.",
3472+
"password": "$C7KCoSKvh_f",
3473+
"namespace": "Night surface whom.",
3474+
"ssl_mode": "Affect federal thing accept party perform.",
3475+
"gss_encmode": "Soon easy manager arm suffer.",
3476+
"ca_cert_path": "xyzzy",
3477+
},
3478+
},
3479+
"mcp_servers": [
3480+
{
3481+
"name": "Wendy Ramirez",
3482+
"provider_id": "Else speak time recent.",
3483+
"url": "http://hahn.org/",
3484+
"authorization_headers": {
3485+
"politics": "Free teach dark born. Sport spend hair require eco"
3486+
},
3487+
"headers": [
3488+
"Hair team school.",
3489+
"Oil war ok much war movement.",
3490+
"Example arm test hundred.",
3491+
],
3492+
"timeout": None,
3493+
},
3494+
{
3495+
"name": "Ronnie Johnson",
3496+
"provider_id": "Turn kind body draw will again.",
3497+
"url": "http://www.cannon.biz/",
3498+
"authorization_headers": {
3499+
"baby": "Discover manage democratic how.",
3500+
"daughter": "Of firm everybody project. Language interest metho",
3501+
},
3502+
"headers": ["They financial artist."],
3503+
"timeout": None,
3504+
},
3505+
],
3506+
"authentication": {
3507+
"module": "Nearly local really commercial.",
3508+
"skip_tls_verification": True,
3509+
"skip_for_health_probes": False,
3510+
"skip_for_metrics": True,
3511+
"k8s_cluster_api": None,
3512+
"k8s_ca_cert_path": None,
3513+
"jwk_config": None,
3514+
"api_key_config": None,
3515+
"rh_identity_config": {
3516+
"required_entitlements": [
3517+
"Shake parent degree turn wind language.",
3518+
"Military several move least realize.",
3519+
"Word these group tax spend yes.",
3520+
],
3521+
"max_header_size": 19,
3522+
},
3523+
},
3524+
"authorization": {
3525+
"access_rules": [
3526+
{
3527+
"role": "Per charge white street painting continue yet choo",
3528+
"actions": ["xyzzy"],
3529+
},
3530+
{"role": "Model evening life.", "actions": ["xyzzy"]},
3531+
{
3532+
"role": "Should explain join father expert able minute stoc",
3533+
"actions": ["xyzzy", "xyzzy", "xyzzy"],
3534+
},
3535+
]
3536+
},
3537+
"customization": None,
3538+
"inference": {"default_model": None, "default_provider": None},
3539+
"conversation_cache": {
3540+
"type": "xyzzy",
3541+
"memory": {"max_entries": 138},
3542+
"sqlite": {"db_path": "Also describe later garden."},
3543+
"postgres": {
3544+
"host": "Apply attention board century.",
3545+
"port": 940,
3546+
"db": "Often boy also never.",
3547+
"user": "Financial a program matter.",
3548+
"password": "K78mJGlP(#qV",
3549+
"namespace": "Relationship science team business same wall.",
3550+
"ssl_mode": "There base meet.",
3551+
"gss_encmode": "Why realize five view.",
3552+
"ca_cert_path": "xyzzy",
3553+
},
3554+
},
3555+
"byok_rag": [
3556+
{
3557+
"rag_id": "Stop choice sing prepare our both traditional.",
3558+
"rag_type": "Four account action. Herself measure speech full t",
3559+
"embedding_model": "Positive now since middle.",
3560+
"embedding_dimension": 799,
3561+
"vector_db_id": "Movie word mouth major identify law manage they.",
3562+
"db_path": "Finally hot investment role attorney meet husband.",
3563+
"score_multiplier": 515.98,
3564+
},
3565+
{
3566+
"rag_id": "Throw two action station store respond among.",
3567+
"rag_type": "Accept exist also happy.",
3568+
"embedding_model": "Box structure arrive. Front suffer civil fund invo",
3569+
"embedding_dimension": 443,
3570+
"vector_db_id": "Begin born decade instead.",
3571+
"db_path": "Interest easy remember here fast win. Despite budg",
3572+
"score_multiplier": 2.92,
3573+
},
3574+
],
3575+
"a2a_state": {
3576+
"sqlite": {"db_path": "Trouble stop speech traditional."},
3577+
"postgres": {
3578+
"host": "Buy change blue despite.",
3579+
"port": 252,
3580+
"db": "Lot kitchen start fire challenge build.",
3581+
"user": "Mission new grow people prepare too new. Blood may",
3582+
"password": "F4LJgEg#leA+",
3583+
"namespace": None,
3584+
"ssl_mode": "Home worry beautiful camera economy.",
3585+
"gss_encmode": "Tend none vote image. North identify power.",
3586+
"ca_cert_path": None,
3587+
},
3588+
},
3589+
"quota_handlers": {
3590+
"sqlite": {"db_path": "Movement great always True."},
3591+
"postgres": None,
3592+
"limiters": [
3593+
{
3594+
"type": "xyzzy",
3595+
"name": "Ricardo Collier",
3596+
"initial_quota": 741,
3597+
"quota_increase": 379,
3598+
"period": "Hotel whatever important its society take add ente",
3599+
},
3600+
{
3601+
"type": "xyzzy",
3602+
"name": "Nicole Turner",
3603+
"initial_quota": 571,
3604+
"quota_increase": 166,
3605+
"period": "Newspaper parent get result.",
3606+
},
3607+
],
3608+
"scheduler": {
3609+
"period": 99,
3610+
"database_reconnection_count": 132,
3611+
"database_reconnection_delay": 701,
3612+
},
3613+
"enable_token_history": False,
3614+
},
3615+
"azure_entra_id": None,
3616+
"rlsapi_v1": {"allow_verbose_infer": False, "quota_subject": "xyzzy"},
3617+
"splunk": {
3618+
"enabled": False,
3619+
"url": None,
3620+
"token_path": "xyzzy",
3621+
"index": None,
3622+
"source": "Anyone wrong increase over hundred.",
3623+
"timeout": 155,
3624+
"verify_ssl": True,
3625+
},
3626+
"deployment_environment": "West local subject clearly. Push question in.",
3627+
"rag": {
3628+
"inline": [
3629+
"Garden up certain success student others may.",
3630+
"Face can produce.",
3631+
],
3632+
"tool": [
3633+
"Though appear collection night message high.",
3634+
"Knowledge cup fact.",
3635+
],
3636+
},
3637+
"okp": {
3638+
"rhokp_url": "xyzzy",
3639+
"offline": False,
3640+
"chunk_filter_query": "Maybe assume region thus.",
3641+
},
3642+
},
34213643
]
34223644

34233645

0 commit comments

Comments
 (0)