e2e/

directory
v0.10.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 14, 2024 License: Apache-2.0

README

End-to-end testing

This package define local and cloud e2e test cases The first use local docker mysql, the latter uses mysql and BigQuery

Prerequisites
  1. Install latest endly Copy endly to /usr/local/bin

  2. Set endly credentials

  • local SSH
  • mysql (endly -c=mysql-e2e root/dev)
  1. Install secrets manager

  2. Checkout this repo

git clone https://github.com/viant/datly.git
Running local test
  1. Running (init,build,test)
git clone https://github.com/viant/datly.git
cd datly
cd e2e/local
endly
  1. To build datly binary and run test use the following
git clone https://github.com/viant/datly.git
cd datly
cd e2e/local
endly -t=build,test
  1. To run specific test case only
git clone https://github.com/viant/datly.git
cd datly
cd e2e/local
endly -t=test -i=uri_param
Generating custom Authorization header with JWT claims

Some test use manually OAuth security Authorization Bearer token, you can sign JWT claims with the following command

echo '{"user_id":123,"email":"dev@test.me"}' > claims.json
scy -m=singJWT -s=claims.json -r='<datly_root>/e2e/local/jwt/public.enc|blowfish://default'
Running cloud test

Generate google secrets with for service account that has full access to a test project i.e mycompny.json Store it locally on ~/.secret/mycompany-e2e.json

Note that name of the file should be also GCP test project.

  1. Running (init,build,test)
git clone https://github.com/viant/datly.git
cd datly
cd e2e/cloud
endly authWith=mycompany-e2e 

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL