-
Notifications
You must be signed in to change notification settings - Fork 21
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
[WIP] AEROGEAR-1881 Delete service instance via CLI #44
[WIP] AEROGEAR-1881 Delete service instance via CLI #44
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One minor comment
return &kFake.Clientset{} | ||
}, | ||
ExpectError: false, | ||
ValidateErr: func(t *testing.T, err error) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I see a defined ValidateOutput
in the struct but not seeing it used here. Is there any none error output to validate?
pkg/cmd/services.go
Outdated
@@ -362,6 +363,12 @@ func (sc *ServicesCmd) DeleteServiceInstanceCmd() *cobra.Command { | |||
return &cobra.Command{ | |||
Use: "serviceinstance <serviceInstanceID>", | |||
Short: "deletes a service instance and other objects created when provisioning the services instance such as pod presets", | |||
Long: `Delete service instance, allows you to delete a service instance and other objects created when provisioning the services instance such as pod presets". |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would remove the comma after instance and the " after presets
bfc1b9d
to
54bdafc
Compare
description to deleteServiceInstance and listServiceInstance methods
7d7c97b
to
dbdfc3a
Compare
Describe what this PR does and why we need it:
Added unit tests for delete service method, and added Long description to the method.
Changes proposed in this pull request
unit tests
updated description
Does this PR depend on another PR (Use this to track when PRs should be merged)
depends-on
no
Which issue this PR fixes (This will close that issue when PR gets merged)
fixes Aerogear 1881