Skip to content

fix(cdn): add command validation for mutually exculsive flags - #1771

Open
SerseusWasTaken wants to merge 1 commit into
mainfrom
fix/cdn-backend-type-validations
Open

SerseusWasTaken wants to merge 1 commit into
mainfrom
fix/cdn-backend-type-validations

Conversation

@SerseusWasTaken

Copy link
Copy Markdown
Contributor

Description

Relates to STACKITCLI-550

Checklist

  • Issue was linked above
  • Code format was applied: make fmt
  • Examples were added / adjusted (see e.g. here)
  • Docs are up-to-date: make generate-docs (will be checked by CI)
  • Unit tests got implemented or updated
  • Unit tests are passing: make test (will be checked by CI)
  • No linter issues: make lint (will be checked by CI)

@github-actions

github-actions Bot commented Dec 2, 2026

Copy link
Copy Markdown

Merging this branch will increase overall coverage

Impacted Packages Coverage Δ 🤖
github.com/stackitcloud/stackit-cli/internal/cmd/beta/cdn/distribution/create 84.06% (+2.24%) 👍
github.com/stackitcloud/stackit-cli/internal/cmd/beta/cdn/distribution/update 86.34% (+2.44%) 👍
Coverage details

Compared to commit ab7ed76 (run #46400792019)

Changed File Coverage Δ Total Covered Missed 🤖
github.com/stackitcloud/stackit-cli/internal/cmd/beta/cdn/distribution/create/create.go 84.06% (+2.24%) 138 (+17) 116 (+17) 22 👍
github.com/stackitcloud/stackit-cli/internal/cmd/beta/cdn/distribution/update/update.go 86.34% (+2.44%) 161 (+12) 139 (+14) 22 (-2) 👍

Please note that the "Total", "Covered", and "Missed" counts above refer to code statements instead of lines of code. The value in brackets refers to the test coverage of that file in the old version of the code.

Changed unit test files:

  • github.com/stackitcloud/stackit-cli/internal/cmd/beta/cdn/distribution/create/create_test.go
  • github.com/stackitcloud/stackit-cli/internal/cmd/beta/cdn/distribution/update/update_test.go

@SerseusWasTaken
SerseusWasTaken marked this pull request as ready for review December 2, 2026 14:53
@SerseusWasTaken
SerseusWasTaken requested a review from a team as a code owner December 2, 2026 14:53
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.

1 participant