Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CSS-6952 add service account command #1141

Conversation

kian99
Copy link
Contributor

@kian99 kian99 commented Jan 29, 2024

Description

Adds a CLI command and test for addServiceAccount, the method that grants a user with permission to a service account.

The PR is larger than expected because testing the new CLI application uses the same test suite as the one that existed in cmd/jimmctl/cmd/jimmsuite_test.go. To avoid duplication this code has been moved to internal/cmdtest/jimmsuite.go and imported from cmd/jimmctl/cmd tests and cmd/serviceaccounts/cmd tests.

Fixes CSS-6952

Engineering checklist

Check only items that apply

  • Documentation updated
  • Covered by unit tests
  • Covered by integration tests

internal/cmdtest/jimmsuite.go Outdated Show resolved Hide resolved
cmd/serviceaccounts/cmd/addserviceaccount.go Outdated Show resolved Hide resolved
cmd/serviceaccounts/cmd/addserviceaccount.go Outdated Show resolved Hide resolved
Copy link
Contributor

@ale8k ale8k left a comment

Choose a reason for hiding this comment

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

lgtm, some chore cleanups though

cmd/serviceaccounts/cmd/addserviceaccount.go Show resolved Hide resolved
cmd/serviceaccounts/cmd/addserviceaccount.go Show resolved Hide resolved
cmd/serviceaccounts/cmd/addserviceaccount.go Outdated Show resolved Hide resolved
cmd/serviceaccounts/cmd/addserviceaccount.go Outdated Show resolved Hide resolved
updated godoc
@kian99 kian99 merged commit 31e87ee into canonical:feature-serviceaccounts Jan 30, 2024
4 checks passed
@kian99 kian99 deleted the CSS-6952-add-service-account-command branch January 30, 2024 12:50
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.

3 participants