Skip to content

Conversation

@Kirdock
Copy link
Contributor

@Kirdock Kirdock commented Jan 14, 2026

Why this PR?

If a group has some environments defined, the environment name is required. This is not checked when loading the group. Therefore, we should add a check.

What has changed?

An error is returned when loading a group if the environment name is empty

How does it do it?

By adding a non-empty check for the environment name of groups.

How is it tested?

New test added that checks if a missing environment name returns an error.

How does it affect users?

They will now get an error if the environment name is not defined

Issue: CA-17625

@Kirdock Kirdock requested a review from a team as a code owner January 14, 2026 10:27
Adds a check to ensure each environment in a group has a name. Updates tests to cover the case where the environment name is missing and adds a corresponding test YAML file.
@Kirdock Kirdock force-pushed the fix/account/validate-group-environment-name branch from b0c587e to ba15929 Compare January 14, 2026 10:41
@sonarqubecloud
Copy link

@Kirdock Kirdock merged commit 1a96f93 into main Jan 14, 2026
9 checks passed
@Kirdock Kirdock deleted the fix/account/validate-group-environment-name branch January 14, 2026 12:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants