-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #20 from wzslr321/users-ms-tests
Users ms tests
- Loading branch information
Showing
19 changed files
with
392 additions
and
78 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,9 @@ | ||
[server] | ||
RunMode = "debug" | ||
Address = 8081 | ||
ReadTimeout = 60 | ||
WriteTimeout = 60 | ||
MaxHeaderBytes = 1 << 20 | ||
|
||
[mongodb] | ||
Uri = mongodb://root:example@mongodb:27017 | ||
Uri = mongodb://root:example@mongodb:27017 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
[server] | ||
RunMode = "release" | ||
Address = 8081 | ||
ReadTimeout = 60 | ||
WriteTimeout = 60 | ||
MaxHeaderBytes = 1 << 20 | ||
|
||
[mongodb] | ||
Uri = mongodb://root:example@mongodb:27017 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
package conf | ||
|
||
import ( | ||
"github.com/stretchr/testify/assert" | ||
"testing" | ||
) | ||
|
||
func TestGetConfDir(t *testing.T) { | ||
result, ok := GetConfDir() | ||
assert.NotEmpty(t, result) | ||
assert.IsType(t, ok, true) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,10 @@ | ||
FROM golang:alpine | ||
|
||
WORKDIR /docs/server | ||
|
||
WORKDIR /go/src/users | ||
|
||
RUN go get golang.org/x/tools/cmd/godoc | ||
|
||
COPY . . | ||
|
||
CMD ["godoc", "-http=:8080"] | ||
CMD ["godoc", "-http=:8082"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.