Tests for OpenTDF
Automated checks for vulnerabilities identified during penetration testing
Place to run frontend and backend together locally. Check Backend "Quick Start and Development" for Prerequisites
- delete
ctlptl delete cluster kind-kind
and clear saved related images in docker if you've run integration tests locally from other folder - run
ctlptl create cluster kind --registry=ctlptl-registry
cd vulnerability
tilt up
If you are running locally on mac frontend 'npm run build' step may take too long. Possible solution is run this
command npm run build
and change frontend/Dockerfile line RUN npm run build
to COPY build/ build/
so it won`t
run it inside docker. Be careful not to push this changes, we won't need that to CI machines that runs on linux.
Automated Playwright tests for Abacus application run against the latest versions of frontend and backend together + API tests for OpenTDF backend services
Check Backend "Quick Start and Development" for Prerequisites
- delete
ctlptl delete cluster kind-kind
and clear saved related images in docker if you've run integration tests locally from other folder - run
ctlptl create cluster kind --registry=ctlptl-registry
cd abacus-and-api-integration-tests
tilt up
cd xtest
npm ci && npm i @opentdf/client@CLIENT_VERSION
pip3 install -r ./requirements.txt
tilt up
Before doing theabove, configure Github packages as the scope provider for opentdf
npm login --scope=@opentdf --registry=https://npm.pkg.github.com
https://github.com/nektos/act
brew install act
- Create
secrets.env
- Create new personal access token https://github.com/settings/tokens/new
- Copy token and paste in
secrets.env
- Configure SSO for new token https://github.com/settings/tokens
secrets.env
GITHUB_TOKEN=<ghp_...>
Need about 80 GB space
colima start --disk 80
Image takes time to download (Note update tag if updated by act
)
export DOCKER_HOST=$(docker context inspect --format '{{.Endpoints.docker.Host}}')
docker pull image=catthehacker/ubuntu:full-20.04
export DOCKER_HOST=$(docker context inspect --format '{{.Endpoints.docker.Host}}')
act --action-offline-mode --container-architecture linux/amd64 --secret-file secrets.env --container-options "--group-add $(stat -c %g /var/run/docker.sock)"
act --action-offline-mode --container-architecture linux/amd64 --secret-file secrets.env --privileged
To run individual workflow, see top of some yaml in .github/workflows