From 7136815135718d857a2e19fa904c5eb04dc8799e Mon Sep 17 00:00:00 2001 From: Marcelo Villa Date: Tue, 13 Aug 2024 17:41:35 -0500 Subject: [PATCH] Add gitlab parameter to test render --- tests/tests_unit/conftest.py | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/tests/tests_unit/conftest.py b/tests/tests_unit/conftest.py index d78dfdf1ec..ce60e44799 100644 --- a/tests/tests_unit/conftest.py +++ b/tests/tests_unit/conftest.py @@ -125,7 +125,7 @@ def _mock_return_value(return_value): "gcp.nebari.dev", schema.ProviderEnum.gcp, GCP_DEFAULT_REGION, - CiEnum.github_actions, + CiEnum.gitlab_ci, AuthenticationEnum.password, ), ( @@ -154,6 +154,11 @@ def nebari_config_options(request) -> schema.Main: auth_provider, ) = request.param + if ci_provider == CiEnum.github_actions: + repo = DEFAULT_GH_REPO + else: + repo = None + return dict( project_name=project, namespace=namespace, @@ -162,7 +167,7 @@ def nebari_config_options(request) -> schema.Main: region=region, ci_provider=ci_provider, auth_provider=auth_provider, - repository=DEFAULT_GH_REPO, + repository=repo, repository_auto_provision=False, auth_auto_provision=False, terraform_state=DEFAULT_TERRAFORM_STATE,