Skip to content

Add List and Get method for bgp/speakers#2238

Merged
jtopjian merged 2 commits intogophercloud:masterfrom
shhgs:20211020
Oct 23, 2021
Merged

Add List and Get method for bgp/speakers#2238
jtopjian merged 2 commits intogophercloud:masterfrom
shhgs:20211020

Conversation

@shhgs
Copy link
Copy Markdown
Contributor

@shhgs shhgs commented Oct 20, 2021

For: Neutron V2: BGP Dynamic Routing #2208

https://github.com/shhgs/gophercloud/tree/20211020

 11:05:30 ~/ext/src/github.com/shhgs/gophercloud/openstack/networking/v2/extensions/bgp/speakers $ git diff --stat official/master                                                                      
 openstack/networking/v2/extensions/bgp/speakers/doc.go                   | 34 ++++++++++++++++++++++++++++++++++                                                                                                  
 openstack/networking/v2/extensions/bgp/speakers/requests.go              | 21 +++++++++++++++++++++
 openstack/networking/v2/extensions/bgp/speakers/results.go               | 20 +++++++++++++++++++-
 openstack/networking/v2/extensions/bgp/speakers/testing/doc.go           |  2 ++
 openstack/networking/v2/extensions/bgp/speakers/testing/fixture.go       | 63 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 openstack/networking/v2/extensions/bgp/speakers/testing/requests_test.go | 59 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 openstack/networking/v2/extensions/bgp/speakers/urls.go                  | 25 +++++++++++++++++++++++++
 7 files changed, 223 insertions(+), 1 deletion(-)

@theopenlab-ci
Copy link
Copy Markdown

theopenlab-ci bot commented Oct 20, 2021

Build succeeded.

@jtopjian
Copy link
Copy Markdown
Contributor

@shhgs It looks like go fmt needs to be run on these files:

https://github.com/gophercloud/gophercloud/runs/3953332128?check_suite_focus=true

If it's possible for your editor to automatically run go fmt when you save, it'll help with this.

@shhgs
Copy link
Copy Markdown
Contributor Author

shhgs commented Oct 21, 2021

Interesting. Can you please give me the gofmt version on your system? I have double checked. On my system, gofmt is good with the original commit.

[CL-DESKTOP] 03:44:36 ~/src/github.com/shhgs/gophercloud $ git diff --name-only official/master | while read f; do  diff -u $f <(gofmt $f); done~/src/github.com/shhgs/gophercloud [20211020|✔ ]
[CL-DESKTOP] 03:44:38 ~/src/github.com/shhgs/gophercloud $ 

And if I manually take the advice from CI/CD, gofmt is good with it also

[CL-DESKTOP] 03:48:45 ~/src/github.com/shhgs/gophercloud $ git diff 
diff --git a/openstack/networking/v2/extensions/bgp/speakers/testing/requests_test.go b/openstack/networking/v2/extensions/bgp/speakers/testing/requests_test.go
index 3bd335de..4f257302 100644
--- a/openstack/networking/v2/extensions/bgp/speakers/testing/requests_test.go
+++ b/openstack/networking/v2/extensions/bgp/speakers/testing/requests_test.go
@@ -2,12 +2,13 @@ package testing
 
 import (
        "fmt"
+       "net/http"
+       "testing"
+
        fake "github.com/gophercloud/gophercloud/openstack/networking/v2/common"
        "github.com/gophercloud/gophercloud/openstack/networking/v2/extensions/bgp/speakers"
        "github.com/gophercloud/gophercloud/pagination"
        th "github.com/gophercloud/gophercloud/testhelper"
-       "net/http"
-       "testing"
 )
 
 func TestList(t *testing.T) {
✔  ~/src/github.com/shhgs/gophercloud [20211020|✚ 1]                                                            
[CL-DESKTOP] 03:48:49 ~/src/github.com/shhgs/gophercloud $ git diff --name-only official/master | while read f; do  diff -u $f <(gofmt $f); done~/src/github.com/shhgs/gophercloud [20211020|✚ 1]                                                            
[CL-DESKTOP] 03:48:56 ~/src/github.com/shhgs/gophercloud $  

@coveralls
Copy link
Copy Markdown

Coverage Status

Coverage increased (+0.03%) to 79.861% when pulling 5fddbab on shhgs:20211020 into 05e8ab1 on gophercloud:master.

@jtopjian
Copy link
Copy Markdown
Contributor

@theopenlab-ci
Copy link
Copy Markdown

theopenlab-ci bot commented Oct 22, 2021

Build succeeded.

Copy link
Copy Markdown
Contributor

@jtopjian jtopjian left a comment

Choose a reason for hiding this comment

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

LGTM - thank you

@jtopjian jtopjian merged commit 44fac00 into gophercloud:master Oct 23, 2021
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