Skip to content

Conversation

@Manuelvaas
Copy link
Contributor

@Manuelvaas Manuelvaas commented Jan 30, 2026

Description

relates to STACKITCLI-293

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)

return fmt.Errorf("create log access-token : %w", err)
}

if resp == nil || resp.Id == nil {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As soon as you implement your unit tests you will note that this if statement belongs into outputResult 😉

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

after taking a second look: This check does not belong here. Belongs into outputResult IMO. No discussion needed from my perspective.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

After taking a look at outputResult: This check isn't needed at all I guess

Copy link
Member

@rubenhoenle rubenhoenle left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Before I even look into your next PR I will ask for implemented unit tests. It's ok this time. Just that you're aware for the future 😅

@rubenhoenle rubenhoenle added the needs-work PR needs work from author. label Jan 30, 2026
@github-actions
Copy link

github-actions bot commented Feb 7, 2026

This PR was marked as stale after 7 days of inactivity and will be closed after another 7 days of further inactivity. If this PR should be kept open, just add a comment, remove the stale label or push new commits to it.

@github-actions github-actions bot added the Stale label Feb 7, 2026
@Manuelvaas Manuelvaas force-pushed the feature/STACKITCLI-293-onboarding-logs-service-access-token-cmd branch from 89d667c to d4bf7d2 Compare February 11, 2026 13:15
@github-actions
Copy link

Merging this branch will increase overall coverage

Impacted Packages Coverage Δ 🤖
github.com/stackitcloud/stackit-cli/internal/cmd/beta/logs 0.00% (ø)
github.com/stackitcloud/stackit-cli/internal/cmd/beta/logs/access_token 0.00% (ø)
github.com/stackitcloud/stackit-cli/internal/cmd/beta/logs/access_token/create 45.10% (+45.10%) 🌟
github.com/stackitcloud/stackit-cli/internal/cmd/beta/logs/access_token/delete 38.89% (+38.89%) 🌟
github.com/stackitcloud/stackit-cli/internal/cmd/beta/logs/access_token/delete_all 38.24% (+38.24%) 🌟
github.com/stackitcloud/stackit-cli/internal/cmd/beta/logs/access_token/delete_all_expired 38.24% (+38.24%) 🌟
github.com/stackitcloud/stackit-cli/internal/cmd/beta/logs/access_token/describe 74.00% (+74.00%) 🌟
github.com/stackitcloud/stackit-cli/internal/cmd/beta/logs/access_token/list 56.86% (+56.86%) 🌟
github.com/stackitcloud/stackit-cli/internal/cmd/beta/logs/access_token/update 40.00% (+40.00%) 🌟
github.com/stackitcloud/stackit-cli/internal/pkg/services/logs/utils 100.00% (ø)

Coverage by file

Changed files (no unit tests)

Changed File Coverage Δ Total Covered Missed 🤖
github.com/stackitcloud/stackit-cli/internal/cmd/beta/logs/access_token/access_token.go 0.00% (ø) 10 (+10) 0 10 (+10)
github.com/stackitcloud/stackit-cli/internal/cmd/beta/logs/access_token/create/create.go 45.10% (+45.10%) 51 (+51) 23 (+23) 28 (+28) 🌟
github.com/stackitcloud/stackit-cli/internal/cmd/beta/logs/access_token/delete/delete.go 38.89% (+38.89%) 36 (+36) 14 (+14) 22 (+22) 🌟
github.com/stackitcloud/stackit-cli/internal/cmd/beta/logs/access_token/delete_all/delete_all.go 38.24% (+38.24%) 34 (+34) 13 (+13) 21 (+21) 🌟
github.com/stackitcloud/stackit-cli/internal/cmd/beta/logs/access_token/delete_all_expired/delete_all_expired.go 38.24% (+38.24%) 34 (+34) 13 (+13) 21 (+21) 🌟
github.com/stackitcloud/stackit-cli/internal/cmd/beta/logs/access_token/describe/describe.go 74.00% (+74.00%) 50 (+50) 37 (+37) 13 (+13) 🌟
github.com/stackitcloud/stackit-cli/internal/cmd/beta/logs/access_token/list/list.go 56.86% (+56.86%) 51 (+51) 29 (+29) 22 (+22) 🌟
github.com/stackitcloud/stackit-cli/internal/cmd/beta/logs/access_token/update/update.go 40.00% (+40.00%) 45 (+45) 18 (+18) 27 (+27) 🌟
github.com/stackitcloud/stackit-cli/internal/cmd/beta/logs/logs.go 0.00% (ø) 5 (+1) 0 5 (+1)
github.com/stackitcloud/stackit-cli/internal/pkg/services/logs/utils/utils.go 100.00% (ø) 16 (+8) 16 (+8) 0

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/logs/access_token/create/create_test.go
  • github.com/stackitcloud/stackit-cli/internal/cmd/beta/logs/access_token/delete/delete_test.go
  • github.com/stackitcloud/stackit-cli/internal/cmd/beta/logs/access_token/delete_all/delete_all_test.go
  • github.com/stackitcloud/stackit-cli/internal/cmd/beta/logs/access_token/delete_all_expired/delete_all_expired_test.go
  • github.com/stackitcloud/stackit-cli/internal/cmd/beta/logs/access_token/describe/describe_test.go
  • github.com/stackitcloud/stackit-cli/internal/cmd/beta/logs/access_token/list/list_test.go
  • github.com/stackitcloud/stackit-cli/internal/cmd/beta/logs/access_token/update/update_test.go
  • github.com/stackitcloud/stackit-cli/internal/pkg/services/logs/utils/utils_test.go

@Manuelvaas Manuelvaas marked this pull request as ready for review February 11, 2026 13:38
@Manuelvaas Manuelvaas requested a review from a team as a code owner February 11, 2026 13:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

needs-work PR needs work from author. Stale

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants