-
Notifications
You must be signed in to change notification settings - Fork 0
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
badaas as library #61
base: main
Are you sure you want to change the base?
Conversation
logger, | ||
userService, | ||
sessionService, | ||
) | ||
response := httptest.NewRecorder() | ||
request := httptest.NewRequest( | ||
"POST", | ||
"/v1/auth/basic/login", |
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.
Remove this changes from commit "fix typo in Authentication" because it's not a typo.
logger, | ||
userService, | ||
sessionService, | ||
) | ||
response := httptest.NewRecorder() | ||
request := httptest.NewRequest( | ||
"POST", | ||
"/v1/auth/basic/login", |
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.
Remove this changes from commit "fix typo in Authentication" because it's not a typo.
@@ -86,7 +86,7 @@ func Test_BasicLoginHandler_LoginFailed(t *testing.T) { | |||
response := httptest.NewRecorder() | |||
request := httptest.NewRequest( | |||
"POST", | |||
"/v1/auth/basic/login", |
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.
Remove this changes from commit "fix typo in Authentication" because it's not a typo.
@@ -129,7 +129,7 @@ func Test_BasicLoginHandler_LoginSuccess(t *testing.T) { | |||
response := httptest.NewRecorder() | |||
request := httptest.NewRequest( | |||
"POST", | |||
"/v1/auth/basic/login", |
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.
Remove this changes from commit "fix typo in Authentication" because it's not a typo.
httperrors/httperrors.go
Outdated
@@ -125,3 +125,8 @@ func NewUnauthorizedError(errorName string, msg string) HTTPError { | |||
true, | |||
) | |||
} | |||
|
|||
// A constructor for an HTTPError "Bad Request" | |||
func NewBadRequestError(err string, msg string) HTTPError { |
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.
Remove this changes from commit "fix typo in Authentication" because it's not a typo.
tools/badctl/README.md
Outdated
@@ -0,0 +1,84 @@ | |||
# badctl: the BadAas controller |
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.
replace all "BadAas" by "Badaas"
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.
To be done in new repo
tools/badctl/README.md
Outdated
@@ -0,0 +1,84 @@ | |||
# badctl: the BadAas controller | |||
|
|||
`badctl` is the command line tool that makes it possible to configure and run your BadAas applications easily. |
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.
rename "badctl" by "badaas-cli"
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.
To be done in new repo
tools/badctl/README.md
Outdated
badctl help [command] | ||
``` | ||
|
||
### gen |
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.
Rework on title to make it comprehensible
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.
To be done in new repo
tools/badctl/cmd/gen.go
Outdated
@@ -0,0 +1,94 @@ | |||
package cmd |
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.
Missing all documentation on this file
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.
To be done in new repo
tools/badctl/cmd/gen_test.go
Outdated
@@ -0,0 +1,41 @@ | |||
package cmd |
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.
bad test file, because we want to have readable scenario like:
generateDockerFiles should generate all wanted file
copyDir should stop if os.IsNotExists
(...)
I don't see any test case in your test, for me you don't check success or errors cases.
02962d5
to
3c6cee9
Compare
3c6cee9
to
f523952
Compare
Kudos, SonarCloud Quality Gate passed! |
230dff8
to
f523952
Compare
Related with the pull requests ditrit/badaas-example#8 and ditrit/badaas-cli#1