Skip to content

Commit

Permalink
switch to docker compose
Browse files Browse the repository at this point in the history
  • Loading branch information
hummerdmag committed Aug 17, 2024
1 parent 18d7910 commit d0f23c4
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 0 additions & 2 deletions test/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
# this is compose for test environment

version: "3"
services:
minio:
image: quay.io/minio/minio:latest
Expand Down
4 changes: 2 additions & 2 deletions test/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export IDENTIFO_STORAGE_MONGO_TEST_INTEGRATION=1
export IDENTIFO_STORAGE_MONGO_CONN="mongodb://admin:password@localhost:27017/billing-local?authSource=admin"
export IDENTIFO_REDIS_HOST="127.0.0.1:6379"

docker-compose up -d
docker compose up -d

sleep 1
echo "dependencies started"
Expand All @@ -20,6 +20,6 @@ go test -race -timeout=60s -count=1 ../...
test_exit=$?

# docker-compose down -v
docker-compose rm -s -f -v
docker compose rm -s -f -v

exit $test_exit
2 changes: 2 additions & 0 deletions web/api/audit.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ package api
import "log"

func journal(userID, appID, action string, scopes []string) {
// TODO: Create an interface for the audit log
// Implement it for logging to stdout, a database, or a remote service
log.Printf("audit record | %s | userID=%s appID=%s scopes=%v\n",
action, userID, appID, scopes)
}

0 comments on commit d0f23c4

Please sign in to comment.