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
-
Install latest endly
Copy endly to /usr/local/bin
-
Set endly credentials
- local SSH
- mysql (endly -c=mysql-e2e root/dev)
-
Install secrets manager
-
Checkout this repo
git clone https://github.com/viant/datly.git
Running local test
- Running (init,build,test)
git clone https://github.com/viant/datly.git
cd datly
cd e2e/local
endly
- 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
- 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
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.
- Running (init,build,test)
git clone https://github.com/viant/datly.git
cd datly
cd e2e/cloud
endly authWith=mycompany-e2e