TUN-4062: Read component tests config from yaml file

This commit is contained in:
cthuang
2021-03-08 14:09:10 +00:00
committed by Chung Ting Huang
parent 206523344f
commit a7344435a5
7 changed files with 155 additions and 21 deletions

View File

@@ -5,7 +5,17 @@
- `conda activate component-tests`
- `pip3 install -r requirements.txt`
2. Create a config yaml file, for example:
```
cloudflared_binary: "cloudflared"
tunnel: "3d539f97-cd3a-4d8e-c33b-65e9099c7a8d"
credentials_file: "/Users/tunnel/.cloudflared/3d539f97-cd3a-4d8e-c33b-65e9099c7a8d.json"
classic_hostname: "classic-tunnel-component-tests.example.com"
origincert: "/Users/tunnel/.cloudflared/cert.pem"
```
# How to run
Specify path to config file via env var `COMPONENT_TESTS_CONFIG`. This is required.
## All tests
Run `pytest` inside this(component-tests) folder