Skip to content

Commit

Permalink
Add gitlab parameter to test render
Browse files Browse the repository at this point in the history
  • Loading branch information
marcelovilla committed Aug 13, 2024
1 parent a382d1c commit 7136815
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions tests/tests_unit/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
),
(
Expand Down Expand Up @@ -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,
Expand All @@ -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,
Expand Down

0 comments on commit 7136815

Please sign in to comment.