Skip to content

Commit f224695

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

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

531531
components = config_yaml['components_manager']['components']
532-
if 'default-secdist-provider' not in components:
532+
if 'secdist' not in components:
533533
return
534534

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

0 commit comments

Comments
 (0)