| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
parent directory.. | ||||
From a module directory, such as modules/app-auth-module:
make docker-up
make test
make docker-downThe manual workflow starts the module's PostgreSQL services, runs the tests locally, and then removes the services and their volumes.
To build and run the tests in Docker instead:
make docker-testThis starts the required services, runs the test container, and cleans up the containers and volumes afterward.
docker-compose up --build
docker-compose up --build web
docker build -t swift-docker-image . -f ./Dockerfile && docker run --rm swift-docker-imagecurl --header "Content-Type: application/json" \
--request POST \
--data '{"title":"xyz"}' \
http://localhost:8080/todoswork.method = "POST"
wrk.body = "foo.json"
wrk.headers["Content-Type"] = "application/json; charset=utf-8;"wrk "http://localhost:8080/todos" -s ./test.lua --latency -t 8 -c 16 -d 10scurl -i -X POST "http://localhost:8080/test" --data-raw "file.json"curl -i -X POST \
-H "Content-Type: image/png" \
-H "File-Name: logo.png" \
-T ./logo.png \
http://localhost:8080/filescurl -OLJfs http://localhost:8080/files/logo.png
curl -LJfs http://localhost:8080/files/logo.png -o logo.pngcurl -i -X 'POST' \
'http://127.0.0.1:8080/api/v1/user/auth/login' \
-H 'Accept: application/json' \
-H 'Content-Type: application/json' \
-d '{"email":"user@example.com","password":"user","isPersistent":true}'
curl -i -X 'GET' \
'http://127.0.0.1:8080/api/v1/user/auth/me' \
-H 'Accept: application/json' \
-H 'Content-Type: application/json' \
-H 'Cookie: session=aQhOaYxaEqPkf_-R13l2U1nRUkQJsga9Avd-RT8u3X4'
curl -i -X 'GET' \
'http://127.0.0.1:8080/v1/management/user/accounts/me' \
-H 'Accept: application/json' \
-H 'Content-Type: application/json' \
-H 'Authorization: Bearer oVjo8zmcj2GB-QCXOiiH2'| Back | FazBrowse Home | New Git URL |