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

[WIP] AEROGEAR-1881 Delete service instance via CLI #44

Conversation

pyates86
Copy link
Contributor

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

@pyates86 pyates86 changed the title Created unit tests for Delete service instance method and added long [WIP] AEROGEAR-1881 Delete service instance via CLI Jan 22, 2018
Copy link
Contributor

@maleck13 maleck13 left a 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) {
Copy link
Contributor

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?

@@ -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".

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

@pyates86 pyates86 force-pushed the AEROGEAR-1881-review-delete-service-via-cli branch from bfc1b9d to 54bdafc Compare January 22, 2018 16:25
@pyates86 pyates86 requested a review from dimitraz January 22, 2018 16:26
description to deleteServiceInstance and listServiceInstance methods
@pyates86 pyates86 force-pushed the AEROGEAR-1881-review-delete-service-via-cli branch from 7d7c97b to dbdfc3a Compare January 22, 2018 17:09
@maleck13 maleck13 merged commit f069fec into aerogear-attic:master Jan 22, 2018
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.

4 participants