Prerequisites:
This is a Swift package, it can be installed using the Swift Package Manager and imported in your code as follows:
import VoltaserveCore
Format code:
swift format -i -r .
Lint code:
swift format lint -r .
swiftlint lint --strict .
The test suite expects the following accounts to exist:
Password | |
---|---|
test@koupr.com | Passw0rd! |
test+1@koupr.com | Passw0rd! |
Build and run with Docker:
docker build -t voltaserve/swift-tests . && docker run --rm \
-e API_HOST=host.docker.internal \
-e IDP_HOST=host.docker.internal \
-e USERNAME='test@koupr.com' \
-e PASSWORD='Passw0rd!' \
-e OTHER_USERNAME='test+1@koupr.com' \
-e OTHER_PASSWORD='Passw0rd!' \
voltaserve/swift-tests
In Linux you should replace host.docker.internal
with the host IP address, it can be found as follows:
ip route | grep default | awk '{print $3}'
Voltaserve Swift is released under the MIT License.