-
Notifications
You must be signed in to change notification settings - Fork 160
Feature/rteco 456 implement groups api amnd versions ap is #1246
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: master
Are you sure you want to change the base?
Feature/rteco 456 implement groups api amnd versions ap is #1246
Conversation
lifecycle/services/rbSearch.go
Outdated
} | ||
return response, sendErr | ||
} | ||
log.Debug("Artifactory response status:", resp.Status) |
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.
is this required? from the error returned it should be obvious.
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.
Actually all the existing APIs are having this response output line.
lifecycle/lifecycle_test.go
Outdated
} | ||
|
||
func TestReleaseBundlesSearchGroups(t *testing.T) { | ||
mockServer, rbService := createMockServer(t, func(w http.ResponseWriter, r *http.Request) { |
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.
suggestion: check if using this package helps instead of creating mock server
https://pkg.go.dev/net/http/httptest
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.
I am using only existing style for testing. createMockServer function is used by all unit tests.
What: Added logic for handling input and structure.