ftest tests for the Nodeinfo protocol
Find a file
2023-10-01 13:36:43 +05:30
.reuse feat: init 2023-10-01 13:36:43 +05:30
LICENSES feat: init 2023-10-01 13:36:43 +05:30
.gitignore feat: init 2023-10-01 13:36:43 +05:30
README.md feat: init 2023-10-01 13:36:43 +05:30

status-badge


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