Skip to content

Partially onboard folder command (alpha) - #1737

Open
mszadkow wants to merge 2 commits into
stackitcloud:mainfrom
mszadkow:feat/add-folder-command
Open

mszadkow wants to merge 2 commits into
stackitcloud:mainfrom
mszadkow:feat/add-folder-command

Conversation

@mszadkow

@mszadkow mszadkow commented Nov 6, 2026

Copy link
Copy Markdown

Description

Partially onboard folder command as for internal purposes only folder information retrieval is required.

relates to #1736

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)

Comment thread internal/cmd/alpha/folder/list/list.go Resolved
Comment thread internal/cmd/alpha/folder/list/list.go Resolved
Comment thread internal/cmd/alpha/folder/list/list.go Resolved
Comment thread internal/cmd/alpha/folder/list/list.go Resolved
Comment thread internal/cmd/alpha/folder/list/list.go Resolved
}

func TestBuildRequest(t *testing.T) {
keyring.MockInit()

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Same as below, use the mock client implementation from the SDK instead

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

With the keyring mock I don't know, it seems that is the way to go actually...
There is no interface and no mock for the auth, if I want to test auth.GetAuthEmail() branch

Are there any examples for alternative mocking of this path?
So far, I mimic the existing tests

@mszadkow
mszadkow force-pushed the feat/add-folder-command branch from 0f0f70c to a2c52a4 Compare November 12, 2026 16:11
@mszadkow
mszadkow marked this pull request as ready for review November 12, 2026 16:11
@mszadkow
mszadkow requested a review from a team as a code owner November 12, 2026 16:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants