-
Notifications
You must be signed in to change notification settings - Fork 2
feat(storage): storage getInfo #351
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
base: main
Are you sure you want to change the base?
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #351 +/- ##
=======================================
Coverage 91.31% 91.31%
=======================================
Files 22 22
Lines 1635 1635
=======================================
Hits 1493 1493
Misses 106 106
Partials 36 36 🚀 New features to boost your workflow:
|
…into feat_test_report
| @@ -0,0 +1,41 @@ | |||
| // SPDX-License-Identifier: Apache-2.0 | |||
|
|
|||
| package vela | |||
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.
🚫 [golangci] reported by reviewdog 🐶
3-41 lines are duplicate of vela/testreport.go:3-41 (dupl)
| @@ -0,0 +1,41 @@ | |||
| // SPDX-License-Identifier: Apache-2.0 | |||
|
|
|||
| package vela | |||
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.
🚫 [golangci] reported by reviewdog 🐶
3-41 lines are duplicate of vela/testattachment.go:3-41 (dupl)
|
|
||
| import ( | ||
| "encoding/json" | ||
| "github.com/gin-gonic/gin" |
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.
🚫 [golangci] reported by reviewdog 🐶
File is not properly formatted (gci)
|
|
||
| import ( | ||
| "encoding/json" | ||
| "github.com/gin-gonic/gin" |
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.
🚫 [golangci] reported by reviewdog 🐶
File is not properly formatted (gci)
| // from the server methods of the Vela API. | ||
| AdminSettingsService service | ||
|
|
||
| // AdminStorageSettingsService handles managing admin storage settings functionality |
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.
🚫 [golangci] reported by reviewdog 🐶
Comment should end in a period (godot)
| @@ -0,0 +1,58 @@ | |||
| package vela | |||
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.
🚫 [golangci] reported by reviewdog 🐶
Missed header for check (goheader)
| @@ -0,0 +1,58 @@ | |||
| package vela | |||
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.
🚫 [golangci] reported by reviewdog 🐶
Missed header for check (goheader)
| s := httptest.NewServer(server.FakeHandler()) | ||
| c, _ := NewClient(s.URL, "", nil) | ||
| c.Authentication.SetPersonalAccessTokenAuth("token") | ||
| data := []byte(server.StorageInfoResp) |
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.
🚫 [golangci] reported by reviewdog 🐶
missing whitespace above this line (invalid statement above assign) (wsl_v5)
| if err == nil { | ||
| t.Errorf("GetInfo should have returned err %v", resp.StatusCode) | ||
| } | ||
| if resp.StatusCode != http.StatusUnauthorized { |
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.
🚫 [golangci] reported by reviewdog 🐶
missing whitespace above this line (invalid statement above if) (wsl_v5)
| s := httptest.NewServer(server.FakeHandler()) | ||
| c, _ := NewClient(s.URL, "", nil) | ||
| c.Authentication.SetPersonalAccessTokenAuth("token") | ||
| data := []byte(server.TestReportResp) |
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.
🚫 [golangci] reported by reviewdog 🐶
missing whitespace above this line (invalid statement above assign) (wsl_v5)
Functionality to retrieve storage credentials from server
Depends on go-vela/server#1271