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

Conversation

sillydong
Copy link

This PR is add ECS api into the project:

We use compute directory to keep ECS apis. This includes the apis from OpenStack.

All unit tests have passed. Acceptances have few error cause some resource can not be requested.

We'll mail detail to ZhangDong later.

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.

thanks for your contributing, could you please fix the CI issue first.


"github.com/huaweicloud/golangsdk"
"github.com/huaweicloud/golangsdk/openstack"
"net/http"
Copy link
Contributor

Choose a reason for hiding this comment

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

please fix the failed format check

"github.com/huaweicloud/golangsdk"
"github.com/huaweicloud/golangsdk/acceptance/clients"
"github.com/huaweicloud/golangsdk/acceptance/tools"
//"github.com/gophercloud/gophercloud/openstack/blockstorage/v2/volumes"
Copy link
Contributor

Choose a reason for hiding this comment

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

there are many lines commented out, I am not sure I understand completely. but it would be better removing them away.


/*
func TestFlavorsCreateDelete(t *testing.T) {
clients.RequireAdmin(t)
Copy link
Contributor

Choose a reason for hiding this comment

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

ditto

Copy link
Author

Choose a reason for hiding this comment

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

the original openstack have these apis, but according to the task document and huawei api document, these functions are not used. We commented it in case that one day you may need them. Should I delete them or leave them there?

Copy link
Contributor

Choose a reason for hiding this comment

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

@liyongle I think that would be a question which you can give the right suggestion.
IMHO, if they are all from original repository, we should keep them as they were. especially the copy-right.

@freesky-edward
Copy link
Contributor

BTW, please rebase your branch to the newest version before checking CI issue.

@coveralls
Copy link

coveralls commented May 21, 2018

Pull Request Test Coverage Report for Build 104

  • 1004 of 1416 (70.9%) changed or added relevant lines in 38 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage increased (+1.2%) to 67.044%

Changes Missing Coverage Covered Lines Changed/Added Lines %
openstack/compute/v2/images/results.go 25 27 92.59%
openstack/compute/v2/extensions/floatingips/results.go 34 36 94.44%
openstack/compute/v2/flavors/urls.go 9 12 75.0%
openstack/compute/v2/extensions/volumeattach/requests.go 22 25 88.0%
openstack/compute/v2/servers/urls.go 21 24 87.5%
openstack/compute/v2/extensions/attachinterfaces/requests.go 24 27 88.89%
openstack/compute/v2/extensions/secgroups/results.go 63 67 94.03%
openstack/compute/v2/extensions/secgroups/requests.go 65 74 87.84%
openstack/compute/v2/extensions/floatingips/requests.go 38 47 80.85%
openstack/compute/v2/flavors/results.go 50 60 83.33%
Totals Coverage Status
Change from base Build 102: 1.2%
Covered Lines: 4028
Relevant Lines: 6008

💛 - Coveralls

@freesky-edward
Copy link
Contributor

LGTM

@freesky-edward freesky-edward added this to the M0.0.1 milestone Feb 13, 2019
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