-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* update mockery version * fix typos in Authentication, resource and constructor * fix route for auth unit tests * remove error that is always nil * add TODO to the changes to be done in the session service * add error management to middlewareJSON * add CommandInitializer to init configuration keys * init database configuration keys * init session configuration keys * init initialization configuration keys * init server configuration keys * init logger configuration keys * remove unused r.md file in commands * move time to utils * create super user when adding the auth controller * update info controller and routes creation * change the way badaas server is created * move test e2e to test_e2e/ and docker to docker/ * do not run auto migration on test e2e execution + automigration refactor * update docs and developers utils * remove unnecesary init.sh for cockroach and add health check * move db connection to orm module and make automigration possible by fx * info and auth modules now also provide the corresponding services and middlewares * use gotestsum to run tests + create tests report + tool to install dependencies * add base models to orm * add crud services and repositories in orm module * adapt existing services and controllers to use orm module * add integration tests * update documentation * update changelog * cli: gorm compilable queries * fix ci
- Loading branch information
1 parent
502d9db
commit 59786d2
Showing
161 changed files
with
7,196 additions
and
1,799 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,20 @@ | ||
PATHS = $(shell go list ./... | grep -v testintegration) | ||
|
||
install_dependencies: | ||
go install gotest.tools/gotestsum@latest | ||
go install github.com/vektra/mockery/[email protected] | ||
go install github.com/ditrit/badaas-cli@latest | ||
|
||
lint: | ||
golangci-lint run | ||
|
||
test_unit: | ||
go test ./... -v | ||
gotestsum --format pkgname $(PATHS) | ||
|
||
test_integration: | ||
docker compose -f "docker/test_db/docker-compose.yml" up -d | ||
./docker/wait_for_db.sh | ||
gotestsum --format testname ./testintegration | ||
|
||
test_e2e: | ||
docker compose -f "docker/test_db/docker-compose.yml" -f "docker/test_api/docker-compose.yml" up -d | ||
|
@@ -12,5 +24,5 @@ test_e2e: | |
test_generate_mocks: | ||
mockery --all --keeptree | ||
|
||
.PHONY: test_unit test_e2e | ||
.PHONY: test_unit test_integration test_e2e | ||
|
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
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.