Skip to content
This repository was archived by the owner on Aug 31, 2021. It is now read-only.

Conversation

frisky-dis
Copy link
Contributor

What this PR does / why we need it: This PR adds BMS interfaces

Which issue this PR fixes (optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format, will close that issue when PR gets merged): fixes #

Special notes for your reviewer: NONE

Release note: NONE

@coveralls
Copy link

coveralls commented Jul 20, 2018

Pull Request Test Coverage Report for Build 178

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage increased (+0.2%) to 63.467%

Totals Coverage Status
Change from base Build 176: 0.2%
Covered Lines: 4232
Relevant Lines: 6668

💛 - Coveralls

Copy link
Contributor

@freesky-edward freesky-edward left a comment

Choose a reason for hiding this comment

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

could you please confirm two inline questions?


func ServiceClient() *golangsdk.ServiceClient {
sc := client.ServiceClient()
e := strings.Replace(sc.Endpoint, "v2", "v2.1", 1)
Copy link
Contributor

Choose a reason for hiding this comment

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

any case will check this?

Copy link
Contributor

Choose a reason for hiding this comment

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

@freesky-edward can you please elaborate your question

Copy link
Contributor

Choose a reason for hiding this comment

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

I mean if any case will use the special endpoint as a case to test, if not, why replace the version?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@freesky-edward we have a fake client in testhelper, which came to my notice, which is directly used here so do not need this file, hence deleting this.

Copy link
Contributor

Choose a reason for hiding this comment

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

thanks, we are going to remove all the replacement code like this party. that is why I ask this question.

// Get requests details on a single server, by ID.
func Get(client *golangsdk.ServiceClient, id string) (r GetResult) {
_, r.Err = client.Get(getURL(client, id), &r.Body, &golangsdk.RequestOpts{
OkCodes: []int{200},
Copy link
Contributor

Choose a reason for hiding this comment

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

the default ok code of Get is 200, it isn't necessary to list here. please refer to https://github.com/huaweicloud/golangsdk/blob/aef01041fa9cf1fa8844a490cac4ded3fceec9a7/provider_client.go#L356:2

@freesky-edward
Copy link
Contributor

LGTM

@freesky-edward freesky-edward merged commit 6aa721c into huaweicloud:master Jul 24, 2018
@simrannagra simrannagra deleted the bms_dev branch August 6, 2018 07:55
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants