Skip to content

Commit 151ebc7

Browse files
committed
fix testsuite: replace the 'config' path for the 'secdist' instead of 'default-secdist-provider'
1 parent 853b869 commit 151ebc7

File tree

1 file changed

+3
-3
lines changed
  • testsuite/pytest_plugins/pytest_userver/plugins

1 file changed

+3
-3
lines changed

testsuite/pytest_plugins/pytest_userver/plugins/config.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -510,7 +510,7 @@ def patch_config(config, config_vars) -> None:
510510
def userver_config_secdist(service_secdist_path):
511511
"""
512512
Returns a function that adjusts the static configuration file for testsuite.
513-
Sets the `default-secdist-provider.config` to the value of
513+
Sets the `secdist.config` to the value of
514514
@ref pytest_userver.plugins.config.service_secdist_path "service_secdist_path"
515515
fixture.
516516
@@ -522,7 +522,7 @@ def _patch_config(config_yaml, config_vars):
522522
return
523523

524524
components = config_yaml['components_manager']['components']
525-
if 'default-secdist-provider' not in components:
525+
if 'secdist' not in components:
526526
return
527527

528528
if not service_secdist_path.is_file():
@@ -531,7 +531,7 @@ def _patch_config(config_yaml, config_vars):
531531
f'"--service-secdist" pytest option or override the '
532532
f'"service_secdist_path" fixture.',
533533
)
534-
components['default-secdist-provider']['config'] = str(
534+
components['secdist']['config'] = str(
535535
service_secdist_path,
536536
)
537537

0 commit comments

Comments
 (0)