From 6dd13a8beea9c8f90ed2452f5c642d9bdf38b729 Mon Sep 17 00:00:00 2001 From: Nicolas Belouin Date: Fri, 18 Aug 2023 10:00:34 +0200 Subject: [PATCH] Fix e2e tests for local version with discovery handlers Signed-off-by: Nicolas Belouin --- test/e2e/conftest.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/test/e2e/conftest.py b/test/e2e/conftest.py index 7abfe75ca..f34a159c6 100644 --- a/test/e2e/conftest.py +++ b/test/e2e/conftest.py @@ -100,6 +100,14 @@ def install_akri(request, distribution_config, pytestconfig, akri_version): "agent.allowDebugEcho=true,debugEcho.configuration.shared=false", ] ) + if pytestconfig.getoption("--use-local"): + local_tag = pytestconfig.getoption("--local-tag", "pr-amd64") + helm_install_command.extend( + [ + "--set", + f"{discovery_handler}.discovery.image.pullPolicy=Never," + f"{discovery_handler}.discovery.image.tag={local_tag}" + ]) helm_install_command.extend( [ "--set",