Skip to content

Commit aa29526

Browse files
authored
Merge pull request #1879 from tisnik/lcore-2504
LCORE-2504: Updated configuration loading unit tests
2 parents 5578c78 + 7bd3f69 commit aa29526

1 file changed

Lines changed: 235 additions & 0 deletions

File tree

tests/unit/test_configuration.py

Lines changed: 235 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3640,6 +3640,241 @@ def test_score_multiplier_mapping_not_loaded() -> None:
36403640
"chunk_filter_query": "Maybe assume region thus.",
36413641
},
36423642
},
3643+
{
3644+
"name": "Mary Strong",
3645+
"service": {
3646+
"host": "Air customer red.",
3647+
"port": 590,
3648+
"base_url": None,
3649+
"auth_enabled": True,
3650+
"workers": 389,
3651+
"color_log": True,
3652+
"access_log": False,
3653+
"tls_config": {
3654+
"tls_certificate_path": None,
3655+
"tls_key_path": "/",
3656+
"tls_key_password": None,
3657+
},
3658+
"root_path": "Close him reach political two while throw.",
3659+
"cors": {
3660+
"allow_origins": [
3661+
"Everybody now each clearly my hold receive.",
3662+
"Nature past high middle.",
3663+
"What have police activity.",
3664+
],
3665+
"allow_credentials": False,
3666+
"allow_methods": [
3667+
"Assume apply traditional. Himself radio for build.",
3668+
"Resource almost I difference long spend.",
3669+
"Goal world positive long.",
3670+
],
3671+
"allow_headers": [
3672+
"Paper save of others between we.",
3673+
"Look until clear up look.",
3674+
"Out paper pick race.",
3675+
],
3676+
},
3677+
},
3678+
"llama_stack": {
3679+
"url": "https://carroll.com/",
3680+
"api_key": "/",
3681+
"use_as_library_client": None,
3682+
"library_client_config_path": None,
3683+
"timeout": 683,
3684+
"max_retries": 624,
3685+
"retry_delay": 497,
3686+
"allow_degraded_mode": None,
3687+
},
3688+
"user_data_collection": {
3689+
"feedback_enabled": False,
3690+
"feedback_storage": None,
3691+
"transcripts_enabled": True,
3692+
"transcripts_storage": "Air commercial.",
3693+
},
3694+
"database": {
3695+
"sqlite": {"db_path": "Goal majority summer environmental thing sell visi"},
3696+
"postgres": {
3697+
"host": "Pretty become instead.",
3698+
"port": 679,
3699+
"db": "Black hear again blood.",
3700+
"user": "Administration represent compare official contain.",
3701+
"password": "VSP#VO*jt)13",
3702+
"namespace": "By mind industry box memory. See step window bar P",
3703+
"ssl_mode": "disable",
3704+
"gss_encmode": "prefer",
3705+
"ca_cert_path": "/",
3706+
},
3707+
},
3708+
"mcp_servers": [
3709+
{
3710+
"name": "Christopher Davis",
3711+
"provider_id": "Able tonight pretty author try finally. Act operat",
3712+
"url": "http://www.alvarez.com/",
3713+
"authorization_headers": {
3714+
"he": "TV board give town.",
3715+
"contain": "Away carry role by. Style majority case.",
3716+
"data": "North attack every than.",
3717+
},
3718+
"headers": [
3719+
"Child expect put.",
3720+
"Better cultural indeed True hear.",
3721+
"Including those choose.",
3722+
],
3723+
"require_approval": "always",
3724+
"timeout": "10",
3725+
},
3726+
{
3727+
"name": "Isaac Fry",
3728+
"provider_id": "Voice account car gun wear.",
3729+
"url": "http://torres.com/",
3730+
"authorization_headers": {
3731+
"tax": "Dog father outside according onto.",
3732+
"system": "Ground while both else break. You believe ask visi",
3733+
},
3734+
"headers": [
3735+
"Shake water be.",
3736+
"Fine whether pass can question identify.",
3737+
"Area realize pay son also loss.",
3738+
],
3739+
"require_approval": "always",
3740+
"timeout": None,
3741+
},
3742+
],
3743+
"authentication": {
3744+
"module": "Commercial important.",
3745+
"skip_tls_verification": True,
3746+
"skip_for_health_probes": True,
3747+
"skip_for_metrics": True,
3748+
"k8s_cluster_api": "/",
3749+
"k8s_ca_cert_path": None,
3750+
"jwk_config": None,
3751+
"api_key_config": None,
3752+
"rh_identity_config": {
3753+
"required_entitlements": [
3754+
"Interview magazine summer start smile beyond.",
3755+
"Reflect reduce cause various.",
3756+
"Imagine not cold change.",
3757+
],
3758+
"max_header_size": 47,
3759+
},
3760+
},
3761+
"authorization": None,
3762+
"customization": None,
3763+
"inference": {
3764+
"default_model": None,
3765+
"default_provider": None,
3766+
"context_windows": {
3767+
"we": "10",
3768+
"when": "20",
3769+
},
3770+
},
3771+
"conversation_cache": {
3772+
"type": None,
3773+
"memory": {"max_entries": 5},
3774+
"sqlite": {"db_path": "Argue total again party."},
3775+
"postgres": {
3776+
"host": "Like bad land difference force hope. Fine movie if",
3777+
"port": 515,
3778+
"db": "Keep shoulder reason more can you street. Fly spen",
3779+
"user": "Structure feel sea last task human.",
3780+
"password": "P@F*6PwbB2HI",
3781+
"namespace": None,
3782+
"ssl_mode": "allow",
3783+
"gss_encmode": "disable",
3784+
"ca_cert_path": "/",
3785+
},
3786+
},
3787+
"compaction": {
3788+
"enabled": True,
3789+
"threshold_ratio": 933.66,
3790+
"token_floor": 998,
3791+
"buffer_turns": 998,
3792+
"buffer_max_ratio": 743.59,
3793+
},
3794+
"approvals": {"approval_timeout_seconds": 898, "approval_retention_days": 414},
3795+
"byok_rag": [
3796+
{
3797+
"rag_id": "Moment program career provide discuss suddenly.",
3798+
"rag_type": "Would total admit out behind country.",
3799+
"embedding_model": "Over decide simple girl so animal never near.",
3800+
"embedding_dimension": 556,
3801+
"vector_db_id": "Ground cut current civil better.",
3802+
"db_path": "Local major deep go necessary.",
3803+
"score_multiplier": 405.6,
3804+
},
3805+
{
3806+
"rag_id": "The charge there break call information.",
3807+
"rag_type": "Money for but give but amount. Buy community your ",
3808+
"embedding_model": "President performance activity doctor.",
3809+
"embedding_dimension": 571,
3810+
"vector_db_id": "Station past election mouth.",
3811+
"db_path": "But song owner use. Special deal against crime pus",
3812+
"score_multiplier": 481.85,
3813+
},
3814+
],
3815+
"a2a_state": {
3816+
"sqlite": {"db_path": "Theory that enough party child."},
3817+
"postgres": {
3818+
"host": "Never enjoy present letter.",
3819+
"port": 106,
3820+
"db": "Item control one than store word. Word social issu",
3821+
"user": "Question body building believe.",
3822+
"password": "@ist@dmIfs7G",
3823+
"namespace": "Run fall family best whose.",
3824+
"ssl_mode": "allow",
3825+
"gss_encmode": "require",
3826+
"ca_cert_path": None,
3827+
},
3828+
},
3829+
"quota_handlers": {
3830+
"sqlite": {"db_path": "Word push guess mind."},
3831+
"postgres": None,
3832+
"limiters": [
3833+
{
3834+
"type": "user_limiter",
3835+
"name": "Sarah Lyons",
3836+
"initial_quota": 291,
3837+
"quota_increase": 630,
3838+
"period": "Not power manage trial task south within.",
3839+
},
3840+
{
3841+
"type": "cluster_limiter",
3842+
"name": "Rachel Jackson",
3843+
"initial_quota": 134,
3844+
"quota_increase": 978,
3845+
"period": "Ready concern everybody skin present natural.",
3846+
},
3847+
],
3848+
"scheduler": {
3849+
"period": 623,
3850+
"database_reconnection_count": 172,
3851+
"database_reconnection_delay": 267,
3852+
},
3853+
"enable_token_history": True,
3854+
},
3855+
"azure_entra_id": {
3856+
"tenant_id": "tenant",
3857+
"client_id": "client",
3858+
"client_secret": "secret",
3859+
"scope": "High ability soon of still worry nice.",
3860+
},
3861+
"rlsapi_v1": {"allow_verbose_infer": True, "quota_subject": None},
3862+
"splunk": None,
3863+
"deployment_environment": "Father hit rise.",
3864+
"rag": {
3865+
"inline": ["Raise explain traditional boy world medical."],
3866+
"tool": ["North prepare recognize.", "Cold including arm tough pull."],
3867+
},
3868+
"okp": {"rhokp_url": None, "offline": True, "chunk_filter_query": None},
3869+
"reranker": {"enabled": True, "model": "Team serious benefit traditional."},
3870+
"skills": {
3871+
"paths": [
3872+
"/",
3873+
"/foo",
3874+
"/bar",
3875+
]
3876+
},
3877+
},
36433878
]
36443879

36453880

0 commit comments

Comments
 (0)