-
Notifications
You must be signed in to change notification settings - Fork 4
Docker image for username service #131
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?
Conversation
fb18f96 to
f45d149
Compare
Docker image for the username service used to generate fedid accounts on VMs
Add golangci-lint job to ci pipeline for username service docker image
f45d149 to
9e874cd
Compare
Stop using init() not recommended method to set up connections also made it difficult to add tests. Use client struct instead. Add user handler to a service struct so the function can use the client
Add success and failure tests for getting user details from openstack for the username service
e9464e2 to
2ccb128
Compare
Add a stage to run go tests in the docker image build process. This was following steps from docker docs here: https://docs.docker.com/guides/golang/run-tests/
Rename stage names to conform to linting requirments
Add additional job to the github workflow for the username service which runs the tests inside the conainer, make build and push stages depend on the test and lint jobs
Add error checks in the go tests
d6d801a to
f34937d
Compare
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.
Could you add docstrings to the functions?
| return userDetails.Name, nil | ||
| } | ||
|
|
||
| func main() { |
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.
Could you add a docstring for this method?
| } | ||
| } | ||
|
|
||
| func (s service) getUserHandler(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.
Could you add a docstring for this function?
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.
Could you add docstrings to the unit tests?
Docker image for the username service used to generate fedid accounts on VMs