ftest tests for the Nodeinfo protocol
Aravinth Manivannan
97b1c04036
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
|
||
---|---|---|
.reuse | ||
LICENSES | ||
.dockerignore | ||
.env_sample | ||
.gitignore | ||
.woodpecker.yml | ||
Dockerfile | ||
README.md | ||
requirements.txt | ||
run.py |
Nodeinfo tests for ForgeFlux/ftest
TODO
- Write code to upload to ftest server
- Package Docker container
- Upload to Docker Hub
Environment Variables
Please see .env_sample
NAME | Purpose | Example |
---|---|---|
FTEST_AUTH |
Authorization token for uploading test results to ftest server | a random-generated string that will be provided by ftest server |
FTEST_HOST |
The URL of the ftest's instance to which tests results should be uploaded | http://localhost:5000 , if an ftest implementation is running on localhost at port 5000 |
FTEST_TARGET_HOST |
The URL of the implementation's instance against which tests will be run | http://localhost:3000 , if Forgejo or any other Nodeinfo implementation is running on localhost at port 3000 |
Usage
cp .env_sample .env # edit and populate .env with the right values
source .env
python run.py
Docker
cp .env_sample .env # edit and populate .env with the right values
source .env
docker run \
-e FTEST_AUTH=$FTEST_AUTH \
-e FTEST_TARGET_HOST=$FTEST_TARGET_HOST \
-e FTEST_HOST=FTEST_HOST forgeflux/nodeinfo-test
Demo
Successful run:
TODO
Please open to see logs
Failed run:
TODO
Please open to see logs