Skip to content

Bug list size overload #107

Bug list size overload

Bug list size overload #107

Workflow file for this run

name: E2E tests
on:
push:
branches: [main]
pull_request:
workflow_dispatch:
jobs:
newman-tests:
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v3
- name: Create env file
run: |
touch .env
echo KEYCLOAK_PUBLIC_KEYS_URL='https://auth.dewberryanalytics.com/auth/realms/testing/protocol/openid-connect/certs' >> .env
echo MINIO_S3_ENDPOINT='http://minio:9000' >> .env
echo AWS_REGION='us-east-1' >> .env
echo MINIO_S3_DISABLE_SSL='true' >> .env
echo MINIO_S3_FORCE_PATH_STYLE='true' >> .env
echo MINIO_ACCESS_KEY_ID=user >> .env
echo MINIO_SECRET_ACCESS_KEY=password >> .env
echo MINIO_S3_REGION='us-east-1' >> .env
echo S3_MOCK=1 >> .env
echo AWS_S3_BUCKET='test-bucket' >> .env
echo S3API_SERVICE_PORT='5005' >> .env
echo AUTH_LEVEL=0 >> .env
echo POSTGRES_CONN_STRING='postgres://user:password@postgres:5432/db?sslmode=disable' >> .env
echo POSTGRES_PASSWORD='password' >> .env
echo POSTGRES_USER='user' >> .env
echo POSTGRES_DB='db' >> .env
echo PG_LOG_CHECKPOINTS='off' >> .env
- name: Substitute secret variables in JSON
env:
auth_password: ${{ secrets.AUTH_PASSWORD }}
KEYCLOAK_SECRET: ${{ secrets.KEYCLOAK_SECRET }}
run: |
echo "Is auth_password set: $(if [ -z "$auth_password" ]; then echo "No"; else echo "Yes"; fi)"
echo "Is KEYCLOAK_SECRET set: $(if [ -z "$KEYCLOAK_SECRET" ]; then echo "No"; else echo "Yes"; fi)"
envsubst < e2e-test/e2eEnv.template.json > e2e-test/e2eEnv.json
- name: Build the docker-compose stack
run: docker-compose build -d
- name: Create network
run: docker network create s3_net
- name: Build and Run the docker-compose stack
run: docker-compose up -d
- name: Run newman tests
run: >
docker run --network="host" -v /home/runner/work/s3api/s3api/e2e-test:/etc/newman postman/newman:5.3.1-alpine run /etc/newman/e2eCollection.json -e /etc/newman/e2eEnv.json --reporters cli --bail --color on
# Uncomment to print logs for debugging
# - name: Display docker-compose logs
# run: |
# docker-compose logs
# if: always()