G-Node / tonic

Framework for building services that interact with GIN
BSD 3-Clause "New" or "Revised" License
6 stars 4 forks source link

Tests and examples #9

Closed achilleas-k closed 3 years ago

achilleas-k commented 3 years ago

This PR got a little out of hand.

The main purpose is to introduce two (almost) fully featured sample services.

The PR also includes tests for most of the functionality of the main packages.

All changes to the library functionality were made to accommodate the above. Some features needed to be introduced or changed to support the functionality we need (like having gogs Clients in the custom function). A lot of things were also planned from the start, like having session IDs stored in the browser cookie which link to the GIN token instead of storing the token directly. Some changes were made when writing the tests, after said tests revealed issues with the original implementation.

I hope to keep future PRs much smaller moving forward.

EDIT: This PR also enables GH workflows for automated testing.