File tree Expand file tree Collapse file tree 3 files changed +9
-5
lines changed
Expand file tree Collapse file tree 3 files changed +9
-5
lines changed Original file line number Diff line number Diff line change @@ -5,6 +5,8 @@ on: [pull_request]
55jobs :
66 unittest :
77 runs-on : ubuntu-latest
8+ env :
9+ YETI_ENDPOINT : ' http://localhost:80'
810 strategy :
911 matrix :
1012 os : [ubuntu-latest]
2123 cache : poetry
2224 - name : Install a Yeti prod deployment
2325 run : git clone https://github.com/yeti-platform/yeti-docker && cd yeti-docker/prod && ./init.sh
26+ run : sleep 10
27+ run : export YETI_API_KEY=$(docker compose run --rm api create-user test test --admin | awk -F'test:' '{print $2}')
2428 - name : Install Python dependencies
2529 run : poetry install --no-root
2630 - name : e2e testing
Original file line number Diff line number Diff line change 2323 run : poetry install --no-root
2424 - name : Test with unittest
2525 run : |
26- poetry run python -m unittest discover -s tests/ -p '* .py'
26+ poetry run python -m unittest tests/api .py
Original file line number Diff line number Diff line change 88from yeti import errors
99from yeti .api import YetiApi
1010
11- os .environ ["YETI_ENDPOINT" ] = "http://dev-frontend-1:3000"
12- os .environ ["YETI_API_KEY" ] = (
13- "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJuYW1lIjoidGVzdGluZyIsInN1YiI6InlldGkiLCJzY29wZXMiOlsiYWxsIl0sImNyZWF0ZWQiOiIyMDI1LTAzLTExVDIzOjQ1OjU5Ljg3OTQ1OVoiLCJleHAiOm51bGwsImxhc3RfdXNlZCI6bnVsbCwiZW5hYmxlZCI6dHJ1ZSwiZXhwaXJlZCI6ZmFsc2V9.yTidlJ5r8mURLpV9ER3APpO5MlPoG30Z0PqtMLbY1Vg"
14- )
11+ # os.environ["YETI_ENDPOINT"] = "http://dev-frontend-1:3000"
12+ # os.environ["YETI_API_KEY"] = (
13+ # "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJuYW1lIjoidGVzdGluZyIsInN1YiI6InlldGkiLCJzY29wZXMiOlsiYWxsIl0sImNyZWF0ZWQiOiIyMDI1LTAzLTExVDIzOjQ1OjU5Ljg3OTQ1OVoiLCJleHAiOm51bGwsImxhc3RfdXNlZCI6bnVsbCwiZW5hYmxlZCI6dHJ1ZSwiZXhwaXJlZCI6ZmFsc2V9.yTidlJ5r8mURLpV9ER3APpO5MlPoG30Z0PqtMLbY1Vg"
14+ # )
1515
1616
1717class YetiEndToEndTest (unittest .TestCase ):
You can’t perform that action at this time.
0 commit comments