Skip to content

Commit cf71d04

Browse files
committed
fix testsuite: replace the 'config' path for the 'secdist' instead of 'default-secdist-provider'
1 parent 2c48e34 commit cf71d04

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
@@ -516,7 +516,7 @@ def patch_config(config, config_vars) -> None:
516516
def userver_config_secdist(service_secdist_path):
517517
"""
518518
Returns a function that adjusts the static configuration file for testsuite.
519-
Sets the `default-secdist-provider.config` to the value of
519+
Sets the `secdist.config` to the value of
520520
@ref pytest_userver.plugins.config.service_secdist_path "service_secdist_path"
521521
fixture.
522522
@@ -528,7 +528,7 @@ def _patch_config(config_yaml, config_vars):
528528
return
529529

530530
components = config_yaml['components_manager']['components']
531-
if 'default-secdist-provider' not in components:
531+
if 'secdist' not in components:
532532
return
533533

534534
if not service_secdist_path.is_file():
@@ -537,7 +537,7 @@ def _patch_config(config_yaml, config_vars):
537537
f'"--service-secdist" pytest option or override the '
538538
f'"service_secdist_path" fixture.',
539539
)
540-
components['default-secdist-provider']['config'] = str(
540+
components['secdist']['config'] = str(
541541
service_secdist_path,
542542
)
543543

0 commit comments

Comments
 (0)